opencode-v2-openapi.json 666 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135
  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": [
  12. "health"
  13. ],
  14. "operationId": "v2.health.get",
  15. "parameters": [],
  16. "security": [],
  17. "responses": {
  18. "200": {
  19. "description": "Success",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "type": "object",
  24. "properties": {
  25. "healthy": {
  26. "type": "boolean",
  27. "enum": [
  28. true
  29. ]
  30. },
  31. "version": {
  32. "type": "string"
  33. },
  34. "pid": {
  35. "type": "integer",
  36. "allOf": [
  37. {
  38. "exclusiveMinimum": 0
  39. }
  40. ]
  41. }
  42. },
  43. "required": [
  44. "healthy",
  45. "version",
  46. "pid"
  47. ],
  48. "additionalProperties": false
  49. }
  50. }
  51. }
  52. },
  53. "400": {
  54. "description": "InvalidRequestError",
  55. "content": {
  56. "application/json": {
  57. "schema": {
  58. "$ref": "#/components/schemas/InvalidRequestError"
  59. }
  60. }
  61. }
  62. },
  63. "401": {
  64. "description": "UnauthorizedError",
  65. "content": {
  66. "application/json": {
  67. "schema": {
  68. "$ref": "#/components/schemas/UnauthorizedError"
  69. }
  70. }
  71. }
  72. }
  73. },
  74. "description": "Check whether the API server is ready to accept requests.",
  75. "summary": "Check server health"
  76. }
  77. },
  78. "/api/server": {
  79. "get": {
  80. "tags": [
  81. "server"
  82. ],
  83. "operationId": "v2.server.get",
  84. "parameters": [],
  85. "security": [],
  86. "responses": {
  87. "200": {
  88. "description": "Success",
  89. "content": {
  90. "application/json": {
  91. "schema": {
  92. "type": "object",
  93. "properties": {
  94. "urls": {
  95. "type": "array",
  96. "items": {
  97. "type": "string"
  98. }
  99. }
  100. },
  101. "required": [
  102. "urls"
  103. ],
  104. "additionalProperties": false
  105. }
  106. }
  107. }
  108. },
  109. "400": {
  110. "description": "InvalidRequestError",
  111. "content": {
  112. "application/json": {
  113. "schema": {
  114. "$ref": "#/components/schemas/InvalidRequestError"
  115. }
  116. }
  117. }
  118. },
  119. "401": {
  120. "description": "UnauthorizedError",
  121. "content": {
  122. "application/json": {
  123. "schema": {
  124. "$ref": "#/components/schemas/UnauthorizedError"
  125. }
  126. }
  127. }
  128. }
  129. },
  130. "description": "Return the URLs that can be used to connect to this server.",
  131. "summary": "Get server information"
  132. }
  133. },
  134. "/api/location": {
  135. "get": {
  136. "tags": [
  137. "location"
  138. ],
  139. "operationId": "v2.location.get",
  140. "parameters": [
  141. {
  142. "name": "location",
  143. "in": "query",
  144. "schema": {
  145. "anyOf": [
  146. {
  147. "type": "object",
  148. "properties": {
  149. "directory": {
  150. "anyOf": [
  151. {
  152. "type": "string"
  153. },
  154. {
  155. "type": "null"
  156. }
  157. ]
  158. },
  159. "workspace": {
  160. "anyOf": [
  161. {
  162. "type": "string"
  163. },
  164. {
  165. "type": "null"
  166. }
  167. ]
  168. }
  169. },
  170. "additionalProperties": false
  171. },
  172. {
  173. "type": "null"
  174. }
  175. ]
  176. },
  177. "required": false,
  178. "style": "deepObject",
  179. "explode": true
  180. }
  181. ],
  182. "security": [],
  183. "responses": {
  184. "200": {
  185. "description": "Location.Info",
  186. "content": {
  187. "application/json": {
  188. "schema": {
  189. "$ref": "#/components/schemas/Location.Info"
  190. }
  191. }
  192. }
  193. },
  194. "400": {
  195. "description": "InvalidRequestError",
  196. "content": {
  197. "application/json": {
  198. "schema": {
  199. "$ref": "#/components/schemas/InvalidRequestError"
  200. }
  201. }
  202. }
  203. },
  204. "401": {
  205. "description": "UnauthorizedError",
  206. "content": {
  207. "application/json": {
  208. "schema": {
  209. "$ref": "#/components/schemas/UnauthorizedError"
  210. }
  211. }
  212. }
  213. }
  214. },
  215. "description": "Resolve the requested location or the server default location.",
  216. "summary": "Get location"
  217. }
  218. },
  219. "/api/agent": {
  220. "get": {
  221. "tags": [
  222. "agent"
  223. ],
  224. "operationId": "v2.agent.list",
  225. "parameters": [
  226. {
  227. "name": "location",
  228. "in": "query",
  229. "schema": {
  230. "anyOf": [
  231. {
  232. "type": "object",
  233. "properties": {
  234. "directory": {
  235. "anyOf": [
  236. {
  237. "type": "string"
  238. },
  239. {
  240. "type": "null"
  241. }
  242. ]
  243. },
  244. "workspace": {
  245. "anyOf": [
  246. {
  247. "type": "string"
  248. },
  249. {
  250. "type": "null"
  251. }
  252. ]
  253. }
  254. },
  255. "additionalProperties": false
  256. },
  257. {
  258. "type": "null"
  259. }
  260. ]
  261. },
  262. "required": false,
  263. "style": "deepObject",
  264. "explode": true
  265. }
  266. ],
  267. "security": [],
  268. "responses": {
  269. "200": {
  270. "description": "Success",
  271. "content": {
  272. "application/json": {
  273. "schema": {
  274. "type": "object",
  275. "properties": {
  276. "location": {
  277. "$ref": "#/components/schemas/Location.Info"
  278. },
  279. "data": {
  280. "type": "array",
  281. "items": {
  282. "$ref": "#/components/schemas/Agent.Info"
  283. }
  284. }
  285. },
  286. "required": [
  287. "location",
  288. "data"
  289. ],
  290. "additionalProperties": false
  291. }
  292. }
  293. }
  294. },
  295. "400": {
  296. "description": "InvalidRequestError",
  297. "content": {
  298. "application/json": {
  299. "schema": {
  300. "$ref": "#/components/schemas/InvalidRequestError"
  301. }
  302. }
  303. }
  304. },
  305. "401": {
  306. "description": "UnauthorizedError",
  307. "content": {
  308. "application/json": {
  309. "schema": {
  310. "$ref": "#/components/schemas/UnauthorizedError"
  311. }
  312. }
  313. }
  314. }
  315. },
  316. "description": "Retrieve currently registered agents.",
  317. "summary": "List agents"
  318. }
  319. },
  320. "/api/plugin": {
  321. "get": {
  322. "tags": [
  323. "plugin"
  324. ],
  325. "operationId": "v2.plugin.list",
  326. "parameters": [
  327. {
  328. "name": "location",
  329. "in": "query",
  330. "schema": {
  331. "anyOf": [
  332. {
  333. "type": "object",
  334. "properties": {
  335. "directory": {
  336. "anyOf": [
  337. {
  338. "type": "string"
  339. },
  340. {
  341. "type": "null"
  342. }
  343. ]
  344. },
  345. "workspace": {
  346. "anyOf": [
  347. {
  348. "type": "string"
  349. },
  350. {
  351. "type": "null"
  352. }
  353. ]
  354. }
  355. },
  356. "additionalProperties": false
  357. },
  358. {
  359. "type": "null"
  360. }
  361. ]
  362. },
  363. "required": false,
  364. "style": "deepObject",
  365. "explode": true
  366. }
  367. ],
  368. "security": [],
  369. "responses": {
  370. "200": {
  371. "description": "Success",
  372. "content": {
  373. "application/json": {
  374. "schema": {
  375. "type": "object",
  376. "properties": {
  377. "location": {
  378. "$ref": "#/components/schemas/Location.Info"
  379. },
  380. "data": {
  381. "type": "array",
  382. "items": {
  383. "$ref": "#/components/schemas/Plugin.Info"
  384. }
  385. }
  386. },
  387. "required": [
  388. "location",
  389. "data"
  390. ],
  391. "additionalProperties": false
  392. }
  393. }
  394. }
  395. },
  396. "400": {
  397. "description": "InvalidRequestError",
  398. "content": {
  399. "application/json": {
  400. "schema": {
  401. "$ref": "#/components/schemas/InvalidRequestError"
  402. }
  403. }
  404. }
  405. },
  406. "401": {
  407. "description": "UnauthorizedError",
  408. "content": {
  409. "application/json": {
  410. "schema": {
  411. "$ref": "#/components/schemas/UnauthorizedError"
  412. }
  413. }
  414. }
  415. }
  416. },
  417. "description": "Retrieve currently loaded plugins.",
  418. "summary": "List plugins"
  419. }
  420. },
  421. "/api/session": {
  422. "get": {
  423. "tags": [
  424. "session"
  425. ],
  426. "operationId": "v2.session.list",
  427. "parameters": [
  428. {
  429. "name": "workspace",
  430. "in": "query",
  431. "schema": {
  432. "anyOf": [
  433. {
  434. "type": "string",
  435. "allOf": [
  436. {
  437. "pattern": "^wrk"
  438. }
  439. ]
  440. },
  441. {
  442. "type": "null"
  443. }
  444. ]
  445. },
  446. "required": false
  447. },
  448. {
  449. "name": "limit",
  450. "in": "query",
  451. "schema": {
  452. "anyOf": [
  453. {
  454. "type": "string"
  455. },
  456. {
  457. "type": "null"
  458. }
  459. ],
  460. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  461. },
  462. "required": false
  463. },
  464. {
  465. "name": "order",
  466. "in": "query",
  467. "schema": {
  468. "anyOf": [
  469. {
  470. "type": "string",
  471. "enum": [
  472. "asc",
  473. "desc"
  474. ]
  475. },
  476. {
  477. "type": "null"
  478. }
  479. ],
  480. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  481. },
  482. "required": false
  483. },
  484. {
  485. "name": "search",
  486. "in": "query",
  487. "schema": {
  488. "anyOf": [
  489. {
  490. "type": "string"
  491. },
  492. {
  493. "type": "null"
  494. }
  495. ]
  496. },
  497. "required": false
  498. },
  499. {
  500. "name": "parentID",
  501. "in": "query",
  502. "schema": {
  503. "anyOf": [
  504. {
  505. "anyOf": [
  506. {
  507. "type": "string",
  508. "allOf": [
  509. {
  510. "pattern": "^ses"
  511. }
  512. ]
  513. },
  514. {
  515. "type": "string",
  516. "enum": [
  517. "null"
  518. ]
  519. }
  520. ],
  521. "description": "Filter by parent session. Use null to return only root sessions."
  522. },
  523. {
  524. "type": "null"
  525. }
  526. ]
  527. },
  528. "required": false
  529. },
  530. {
  531. "name": "directory",
  532. "in": "query",
  533. "schema": {
  534. "anyOf": [
  535. {
  536. "type": "string"
  537. },
  538. {
  539. "type": "null"
  540. }
  541. ]
  542. },
  543. "required": false
  544. },
  545. {
  546. "name": "project",
  547. "in": "query",
  548. "schema": {
  549. "anyOf": [
  550. {
  551. "type": "string"
  552. },
  553. {
  554. "type": "null"
  555. }
  556. ]
  557. },
  558. "required": false
  559. },
  560. {
  561. "name": "subpath",
  562. "in": "query",
  563. "schema": {
  564. "anyOf": [
  565. {
  566. "type": "string"
  567. },
  568. {
  569. "type": "null"
  570. }
  571. ]
  572. },
  573. "required": false
  574. },
  575. {
  576. "name": "cursor",
  577. "in": "query",
  578. "schema": {
  579. "anyOf": [
  580. {
  581. "type": "string",
  582. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  583. },
  584. {
  585. "type": "null"
  586. }
  587. ]
  588. },
  589. "required": false
  590. }
  591. ],
  592. "security": [],
  593. "responses": {
  594. "200": {
  595. "description": "SessionsResponse",
  596. "content": {
  597. "application/json": {
  598. "schema": {
  599. "$ref": "#/components/schemas/SessionsResponse"
  600. }
  601. }
  602. }
  603. },
  604. "400": {
  605. "description": "InvalidCursorError | InvalidRequestError",
  606. "content": {
  607. "application/json": {
  608. "schema": {
  609. "anyOf": [
  610. {
  611. "$ref": "#/components/schemas/InvalidCursorError"
  612. },
  613. {
  614. "$ref": "#/components/schemas/InvalidRequestError1"
  615. },
  616. {
  617. "$ref": "#/components/schemas/InvalidRequestError"
  618. }
  619. ]
  620. }
  621. }
  622. }
  623. },
  624. "401": {
  625. "description": "UnauthorizedError",
  626. "content": {
  627. "application/json": {
  628. "schema": {
  629. "$ref": "#/components/schemas/UnauthorizedError"
  630. }
  631. }
  632. }
  633. }
  634. },
  635. "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.",
  636. "summary": "List sessions"
  637. },
  638. "post": {
  639. "tags": [
  640. "session"
  641. ],
  642. "operationId": "v2.session.create",
  643. "parameters": [],
  644. "security": [],
  645. "responses": {
  646. "200": {
  647. "description": "Success",
  648. "content": {
  649. "application/json": {
  650. "schema": {
  651. "type": "object",
  652. "properties": {
  653. "data": {
  654. "$ref": "#/components/schemas/Session.Info"
  655. }
  656. },
  657. "required": [
  658. "data"
  659. ],
  660. "additionalProperties": false
  661. }
  662. }
  663. }
  664. },
  665. "400": {
  666. "description": "InvalidRequestError",
  667. "content": {
  668. "application/json": {
  669. "schema": {
  670. "$ref": "#/components/schemas/InvalidRequestError"
  671. }
  672. }
  673. }
  674. },
  675. "401": {
  676. "description": "UnauthorizedError",
  677. "content": {
  678. "application/json": {
  679. "schema": {
  680. "$ref": "#/components/schemas/UnauthorizedError"
  681. }
  682. }
  683. }
  684. }
  685. },
  686. "description": "Create a session at the requested location.",
  687. "summary": "Create session",
  688. "requestBody": {
  689. "content": {
  690. "application/json": {
  691. "schema": {
  692. "type": "object",
  693. "properties": {
  694. "id": {
  695. "anyOf": [
  696. {
  697. "type": "string",
  698. "allOf": [
  699. {
  700. "pattern": "^ses"
  701. }
  702. ]
  703. },
  704. {
  705. "type": "null"
  706. }
  707. ]
  708. },
  709. "agent": {
  710. "anyOf": [
  711. {
  712. "type": "string"
  713. },
  714. {
  715. "type": "null"
  716. }
  717. ]
  718. },
  719. "model": {
  720. "anyOf": [
  721. {
  722. "$ref": "#/components/schemas/Model.Ref"
  723. },
  724. {
  725. "type": "null"
  726. }
  727. ]
  728. },
  729. "location": {
  730. "anyOf": [
  731. {
  732. "$ref": "#/components/schemas/Location.Ref"
  733. },
  734. {
  735. "type": "null"
  736. }
  737. ]
  738. }
  739. },
  740. "additionalProperties": false
  741. }
  742. }
  743. },
  744. "required": true
  745. }
  746. }
  747. },
  748. "/api/session/active": {
  749. "get": {
  750. "tags": [
  751. "session"
  752. ],
  753. "operationId": "v2.session.active",
  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. "type": "object",
  766. "patternProperties": {
  767. "^ses": {
  768. "$ref": "#/components/schemas/SessionActive"
  769. }
  770. }
  771. }
  772. },
  773. "required": [
  774. "data"
  775. ],
  776. "additionalProperties": false
  777. }
  778. }
  779. }
  780. },
  781. "400": {
  782. "description": "InvalidRequestError",
  783. "content": {
  784. "application/json": {
  785. "schema": {
  786. "$ref": "#/components/schemas/InvalidRequestError"
  787. }
  788. }
  789. }
  790. },
  791. "401": {
  792. "description": "UnauthorizedError",
  793. "content": {
  794. "application/json": {
  795. "schema": {
  796. "$ref": "#/components/schemas/UnauthorizedError"
  797. }
  798. }
  799. }
  800. }
  801. },
  802. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  803. "summary": "List active sessions"
  804. }
  805. },
  806. "/api/session/{sessionID}": {
  807. "get": {
  808. "tags": [
  809. "session"
  810. ],
  811. "operationId": "v2.session.get",
  812. "parameters": [
  813. {
  814. "name": "sessionID",
  815. "in": "path",
  816. "schema": {
  817. "type": "string",
  818. "allOf": [
  819. {
  820. "pattern": "^ses"
  821. }
  822. ]
  823. },
  824. "required": true
  825. }
  826. ],
  827. "security": [],
  828. "responses": {
  829. "200": {
  830. "description": "Success",
  831. "content": {
  832. "application/json": {
  833. "schema": {
  834. "type": "object",
  835. "properties": {
  836. "data": {
  837. "$ref": "#/components/schemas/Session.Info"
  838. }
  839. },
  840. "required": [
  841. "data"
  842. ],
  843. "additionalProperties": false
  844. }
  845. }
  846. }
  847. },
  848. "400": {
  849. "description": "InvalidRequestError",
  850. "content": {
  851. "application/json": {
  852. "schema": {
  853. "$ref": "#/components/schemas/InvalidRequestError"
  854. }
  855. }
  856. }
  857. },
  858. "401": {
  859. "description": "UnauthorizedError",
  860. "content": {
  861. "application/json": {
  862. "schema": {
  863. "$ref": "#/components/schemas/UnauthorizedError"
  864. }
  865. }
  866. }
  867. },
  868. "404": {
  869. "description": "SessionNotFoundError",
  870. "content": {
  871. "application/json": {
  872. "schema": {
  873. "anyOf": [
  874. {
  875. "$ref": "#/components/schemas/SessionNotFoundError"
  876. },
  877. {
  878. "$ref": "#/components/schemas/SessionNotFoundError"
  879. }
  880. ]
  881. }
  882. }
  883. }
  884. }
  885. },
  886. "description": "Retrieve a session by ID.",
  887. "summary": "Get session"
  888. },
  889. "delete": {
  890. "tags": [
  891. "session"
  892. ],
  893. "operationId": "v2.session.remove",
  894. "parameters": [
  895. {
  896. "name": "sessionID",
  897. "in": "path",
  898. "schema": {
  899. "type": "string",
  900. "allOf": [
  901. {
  902. "pattern": "^ses"
  903. }
  904. ]
  905. },
  906. "required": true
  907. }
  908. ],
  909. "security": [],
  910. "responses": {
  911. "204": {
  912. "description": "<No Content>"
  913. },
  914. "400": {
  915. "description": "InvalidRequestError",
  916. "content": {
  917. "application/json": {
  918. "schema": {
  919. "$ref": "#/components/schemas/InvalidRequestError"
  920. }
  921. }
  922. }
  923. },
  924. "401": {
  925. "description": "UnauthorizedError",
  926. "content": {
  927. "application/json": {
  928. "schema": {
  929. "$ref": "#/components/schemas/UnauthorizedError"
  930. }
  931. }
  932. }
  933. },
  934. "404": {
  935. "description": "SessionNotFoundError",
  936. "content": {
  937. "application/json": {
  938. "schema": {
  939. "anyOf": [
  940. {
  941. "$ref": "#/components/schemas/SessionNotFoundError"
  942. },
  943. {
  944. "$ref": "#/components/schemas/SessionNotFoundError"
  945. }
  946. ]
  947. }
  948. }
  949. }
  950. }
  951. },
  952. "description": "Delete a session and its child sessions.",
  953. "summary": "Delete session"
  954. }
  955. },
  956. "/api/session/{sessionID}/fork": {
  957. "post": {
  958. "tags": [
  959. "session"
  960. ],
  961. "operationId": "v2.session.fork",
  962. "parameters": [
  963. {
  964. "name": "sessionID",
  965. "in": "path",
  966. "schema": {
  967. "type": "string",
  968. "allOf": [
  969. {
  970. "pattern": "^ses"
  971. }
  972. ]
  973. },
  974. "required": true
  975. }
  976. ],
  977. "security": [],
  978. "responses": {
  979. "200": {
  980. "description": "Success",
  981. "content": {
  982. "application/json": {
  983. "schema": {
  984. "type": "object",
  985. "properties": {
  986. "data": {
  987. "$ref": "#/components/schemas/Session.Info"
  988. }
  989. },
  990. "required": [
  991. "data"
  992. ],
  993. "additionalProperties": false
  994. }
  995. }
  996. }
  997. },
  998. "400": {
  999. "description": "InvalidRequestError",
  1000. "content": {
  1001. "application/json": {
  1002. "schema": {
  1003. "$ref": "#/components/schemas/InvalidRequestError"
  1004. }
  1005. }
  1006. }
  1007. },
  1008. "401": {
  1009. "description": "UnauthorizedError",
  1010. "content": {
  1011. "application/json": {
  1012. "schema": {
  1013. "$ref": "#/components/schemas/UnauthorizedError"
  1014. }
  1015. }
  1016. }
  1017. },
  1018. "404": {
  1019. "description": "SessionNotFoundError | MessageNotFoundError",
  1020. "content": {
  1021. "application/json": {
  1022. "schema": {
  1023. "anyOf": [
  1024. {
  1025. "$ref": "#/components/schemas/MessageNotFoundError"
  1026. },
  1027. {
  1028. "$ref": "#/components/schemas/SessionNotFoundError"
  1029. },
  1030. {
  1031. "$ref": "#/components/schemas/SessionNotFoundError"
  1032. }
  1033. ]
  1034. }
  1035. }
  1036. }
  1037. }
  1038. },
  1039. "description": "Create a child session by copying projected history from the parent. When messageID is supplied, copy messages before that boundary.",
  1040. "summary": "Fork session",
  1041. "requestBody": {
  1042. "content": {
  1043. "application/json": {
  1044. "schema": {
  1045. "type": "object",
  1046. "properties": {
  1047. "messageID": {
  1048. "anyOf": [
  1049. {
  1050. "type": "string",
  1051. "allOf": [
  1052. {
  1053. "pattern": "^msg_"
  1054. }
  1055. ]
  1056. },
  1057. {
  1058. "type": "null"
  1059. }
  1060. ]
  1061. }
  1062. },
  1063. "additionalProperties": false
  1064. }
  1065. }
  1066. },
  1067. "required": true
  1068. }
  1069. }
  1070. },
  1071. "/api/session/{sessionID}/agent": {
  1072. "post": {
  1073. "tags": [
  1074. "session"
  1075. ],
  1076. "operationId": "v2.session.switchAgent",
  1077. "parameters": [
  1078. {
  1079. "name": "sessionID",
  1080. "in": "path",
  1081. "schema": {
  1082. "type": "string",
  1083. "allOf": [
  1084. {
  1085. "pattern": "^ses"
  1086. }
  1087. ]
  1088. },
  1089. "required": true
  1090. }
  1091. ],
  1092. "security": [],
  1093. "responses": {
  1094. "204": {
  1095. "description": "<No Content>"
  1096. },
  1097. "400": {
  1098. "description": "InvalidRequestError",
  1099. "content": {
  1100. "application/json": {
  1101. "schema": {
  1102. "$ref": "#/components/schemas/InvalidRequestError"
  1103. }
  1104. }
  1105. }
  1106. },
  1107. "401": {
  1108. "description": "UnauthorizedError",
  1109. "content": {
  1110. "application/json": {
  1111. "schema": {
  1112. "$ref": "#/components/schemas/UnauthorizedError"
  1113. }
  1114. }
  1115. }
  1116. },
  1117. "404": {
  1118. "description": "SessionNotFoundError",
  1119. "content": {
  1120. "application/json": {
  1121. "schema": {
  1122. "anyOf": [
  1123. {
  1124. "$ref": "#/components/schemas/SessionNotFoundError"
  1125. },
  1126. {
  1127. "$ref": "#/components/schemas/SessionNotFoundError"
  1128. }
  1129. ]
  1130. }
  1131. }
  1132. }
  1133. }
  1134. },
  1135. "description": "Switch the agent used by subsequent provider turns.",
  1136. "summary": "Switch session agent",
  1137. "requestBody": {
  1138. "content": {
  1139. "application/json": {
  1140. "schema": {
  1141. "type": "object",
  1142. "properties": {
  1143. "agent": {
  1144. "type": "string"
  1145. }
  1146. },
  1147. "required": [
  1148. "agent"
  1149. ],
  1150. "additionalProperties": false
  1151. }
  1152. }
  1153. },
  1154. "required": true
  1155. }
  1156. }
  1157. },
  1158. "/api/session/{sessionID}/model": {
  1159. "post": {
  1160. "tags": [
  1161. "session"
  1162. ],
  1163. "operationId": "v2.session.switchModel",
  1164. "parameters": [
  1165. {
  1166. "name": "sessionID",
  1167. "in": "path",
  1168. "schema": {
  1169. "type": "string",
  1170. "allOf": [
  1171. {
  1172. "pattern": "^ses"
  1173. }
  1174. ]
  1175. },
  1176. "required": true
  1177. }
  1178. ],
  1179. "security": [],
  1180. "responses": {
  1181. "204": {
  1182. "description": "<No Content>"
  1183. },
  1184. "400": {
  1185. "description": "InvalidRequestError",
  1186. "content": {
  1187. "application/json": {
  1188. "schema": {
  1189. "$ref": "#/components/schemas/InvalidRequestError"
  1190. }
  1191. }
  1192. }
  1193. },
  1194. "401": {
  1195. "description": "UnauthorizedError",
  1196. "content": {
  1197. "application/json": {
  1198. "schema": {
  1199. "$ref": "#/components/schemas/UnauthorizedError"
  1200. }
  1201. }
  1202. }
  1203. },
  1204. "404": {
  1205. "description": "SessionNotFoundError",
  1206. "content": {
  1207. "application/json": {
  1208. "schema": {
  1209. "anyOf": [
  1210. {
  1211. "$ref": "#/components/schemas/SessionNotFoundError"
  1212. },
  1213. {
  1214. "$ref": "#/components/schemas/SessionNotFoundError"
  1215. }
  1216. ]
  1217. }
  1218. }
  1219. }
  1220. }
  1221. },
  1222. "description": "Switch the model used by subsequent provider turns.",
  1223. "summary": "Switch session model",
  1224. "requestBody": {
  1225. "content": {
  1226. "application/json": {
  1227. "schema": {
  1228. "type": "object",
  1229. "properties": {
  1230. "model": {
  1231. "$ref": "#/components/schemas/Model.Ref"
  1232. }
  1233. },
  1234. "required": [
  1235. "model"
  1236. ],
  1237. "additionalProperties": false
  1238. }
  1239. }
  1240. },
  1241. "required": true
  1242. }
  1243. }
  1244. },
  1245. "/api/session/{sessionID}/rename": {
  1246. "post": {
  1247. "tags": [
  1248. "session"
  1249. ],
  1250. "operationId": "v2.session.rename",
  1251. "parameters": [
  1252. {
  1253. "name": "sessionID",
  1254. "in": "path",
  1255. "schema": {
  1256. "type": "string",
  1257. "allOf": [
  1258. {
  1259. "pattern": "^ses"
  1260. }
  1261. ]
  1262. },
  1263. "required": true
  1264. }
  1265. ],
  1266. "security": [],
  1267. "responses": {
  1268. "204": {
  1269. "description": "<No Content>"
  1270. },
  1271. "400": {
  1272. "description": "InvalidRequestError",
  1273. "content": {
  1274. "application/json": {
  1275. "schema": {
  1276. "$ref": "#/components/schemas/InvalidRequestError"
  1277. }
  1278. }
  1279. }
  1280. },
  1281. "401": {
  1282. "description": "UnauthorizedError",
  1283. "content": {
  1284. "application/json": {
  1285. "schema": {
  1286. "$ref": "#/components/schemas/UnauthorizedError"
  1287. }
  1288. }
  1289. }
  1290. },
  1291. "404": {
  1292. "description": "SessionNotFoundError",
  1293. "content": {
  1294. "application/json": {
  1295. "schema": {
  1296. "anyOf": [
  1297. {
  1298. "$ref": "#/components/schemas/SessionNotFoundError"
  1299. },
  1300. {
  1301. "$ref": "#/components/schemas/SessionNotFoundError"
  1302. }
  1303. ]
  1304. }
  1305. }
  1306. }
  1307. }
  1308. },
  1309. "description": "Update the session title.",
  1310. "summary": "Rename session",
  1311. "requestBody": {
  1312. "content": {
  1313. "application/json": {
  1314. "schema": {
  1315. "type": "object",
  1316. "properties": {
  1317. "title": {
  1318. "type": "string"
  1319. }
  1320. },
  1321. "required": [
  1322. "title"
  1323. ],
  1324. "additionalProperties": false
  1325. }
  1326. }
  1327. },
  1328. "required": true
  1329. }
  1330. }
  1331. },
  1332. "/api/session/{sessionID}/move": {
  1333. "post": {
  1334. "tags": [
  1335. "session"
  1336. ],
  1337. "operationId": "v2.session.move",
  1338. "parameters": [
  1339. {
  1340. "name": "sessionID",
  1341. "in": "path",
  1342. "schema": {
  1343. "type": "string",
  1344. "allOf": [
  1345. {
  1346. "pattern": "^ses"
  1347. }
  1348. ]
  1349. },
  1350. "required": true
  1351. }
  1352. ],
  1353. "security": [],
  1354. "responses": {
  1355. "204": {
  1356. "description": "<No Content>"
  1357. },
  1358. "400": {
  1359. "description": "InvalidRequestError",
  1360. "content": {
  1361. "application/json": {
  1362. "schema": {
  1363. "anyOf": [
  1364. {
  1365. "$ref": "#/components/schemas/InvalidRequestError1"
  1366. },
  1367. {
  1368. "$ref": "#/components/schemas/InvalidRequestError"
  1369. }
  1370. ]
  1371. }
  1372. }
  1373. }
  1374. },
  1375. "401": {
  1376. "description": "UnauthorizedError",
  1377. "content": {
  1378. "application/json": {
  1379. "schema": {
  1380. "$ref": "#/components/schemas/UnauthorizedError"
  1381. }
  1382. }
  1383. }
  1384. },
  1385. "404": {
  1386. "description": "SessionNotFoundError",
  1387. "content": {
  1388. "application/json": {
  1389. "schema": {
  1390. "anyOf": [
  1391. {
  1392. "$ref": "#/components/schemas/SessionNotFoundError"
  1393. },
  1394. {
  1395. "$ref": "#/components/schemas/SessionNotFoundError"
  1396. }
  1397. ]
  1398. }
  1399. }
  1400. }
  1401. }
  1402. },
  1403. "description": "Move a session to another project directory, optionally transferring local changes.",
  1404. "summary": "Move session",
  1405. "requestBody": {
  1406. "content": {
  1407. "application/json": {
  1408. "schema": {
  1409. "type": "object",
  1410. "properties": {
  1411. "destination": {
  1412. "type": "object",
  1413. "properties": {
  1414. "directory": {
  1415. "type": "string"
  1416. }
  1417. },
  1418. "required": [
  1419. "directory"
  1420. ],
  1421. "additionalProperties": false
  1422. },
  1423. "moveChanges": {
  1424. "anyOf": [
  1425. {
  1426. "type": "boolean"
  1427. },
  1428. {
  1429. "type": "null"
  1430. }
  1431. ]
  1432. }
  1433. },
  1434. "required": [
  1435. "destination"
  1436. ],
  1437. "additionalProperties": false
  1438. }
  1439. }
  1440. },
  1441. "required": true
  1442. }
  1443. }
  1444. },
  1445. "/api/session/{sessionID}/prompt": {
  1446. "post": {
  1447. "tags": [
  1448. "session"
  1449. ],
  1450. "operationId": "v2.session.prompt",
  1451. "parameters": [
  1452. {
  1453. "name": "sessionID",
  1454. "in": "path",
  1455. "schema": {
  1456. "type": "string",
  1457. "allOf": [
  1458. {
  1459. "pattern": "^ses"
  1460. }
  1461. ]
  1462. },
  1463. "required": true
  1464. }
  1465. ],
  1466. "security": [],
  1467. "responses": {
  1468. "200": {
  1469. "description": "Success",
  1470. "content": {
  1471. "application/json": {
  1472. "schema": {
  1473. "type": "object",
  1474. "properties": {
  1475. "data": {
  1476. "$ref": "#/components/schemas/SessionInput.Admitted"
  1477. }
  1478. },
  1479. "required": [
  1480. "data"
  1481. ],
  1482. "additionalProperties": false
  1483. }
  1484. }
  1485. }
  1486. },
  1487. "400": {
  1488. "description": "InvalidRequestError",
  1489. "content": {
  1490. "application/json": {
  1491. "schema": {
  1492. "anyOf": [
  1493. {
  1494. "$ref": "#/components/schemas/InvalidRequestError1"
  1495. },
  1496. {
  1497. "$ref": "#/components/schemas/InvalidRequestError"
  1498. }
  1499. ]
  1500. }
  1501. }
  1502. }
  1503. },
  1504. "401": {
  1505. "description": "UnauthorizedError",
  1506. "content": {
  1507. "application/json": {
  1508. "schema": {
  1509. "$ref": "#/components/schemas/UnauthorizedError"
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "404": {
  1515. "description": "SessionNotFoundError",
  1516. "content": {
  1517. "application/json": {
  1518. "schema": {
  1519. "anyOf": [
  1520. {
  1521. "$ref": "#/components/schemas/SessionNotFoundError"
  1522. },
  1523. {
  1524. "$ref": "#/components/schemas/SessionNotFoundError"
  1525. }
  1526. ]
  1527. }
  1528. }
  1529. }
  1530. },
  1531. "409": {
  1532. "description": "ConflictError",
  1533. "content": {
  1534. "application/json": {
  1535. "schema": {
  1536. "$ref": "#/components/schemas/ConflictError"
  1537. }
  1538. }
  1539. }
  1540. }
  1541. },
  1542. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1543. "summary": "Send message",
  1544. "requestBody": {
  1545. "content": {
  1546. "application/json": {
  1547. "schema": {
  1548. "type": "object",
  1549. "properties": {
  1550. "id": {
  1551. "anyOf": [
  1552. {
  1553. "type": "string",
  1554. "allOf": [
  1555. {
  1556. "pattern": "^msg_"
  1557. }
  1558. ]
  1559. },
  1560. {
  1561. "type": "null"
  1562. }
  1563. ]
  1564. },
  1565. "prompt": {
  1566. "$ref": "#/components/schemas/PromptInput"
  1567. },
  1568. "delivery": {
  1569. "anyOf": [
  1570. {
  1571. "type": "string",
  1572. "enum": [
  1573. "steer",
  1574. "queue"
  1575. ]
  1576. },
  1577. {
  1578. "type": "null"
  1579. }
  1580. ]
  1581. },
  1582. "resume": {
  1583. "anyOf": [
  1584. {
  1585. "type": "boolean"
  1586. },
  1587. {
  1588. "type": "null"
  1589. }
  1590. ]
  1591. }
  1592. },
  1593. "required": [
  1594. "prompt"
  1595. ],
  1596. "additionalProperties": false
  1597. }
  1598. }
  1599. },
  1600. "required": true
  1601. }
  1602. }
  1603. },
  1604. "/api/session/{sessionID}/command": {
  1605. "post": {
  1606. "tags": [
  1607. "session"
  1608. ],
  1609. "operationId": "v2.session.command",
  1610. "parameters": [
  1611. {
  1612. "name": "sessionID",
  1613. "in": "path",
  1614. "schema": {
  1615. "type": "string",
  1616. "allOf": [
  1617. {
  1618. "pattern": "^ses"
  1619. }
  1620. ]
  1621. },
  1622. "required": true
  1623. }
  1624. ],
  1625. "security": [],
  1626. "responses": {
  1627. "200": {
  1628. "description": "Success",
  1629. "content": {
  1630. "application/json": {
  1631. "schema": {
  1632. "type": "object",
  1633. "properties": {
  1634. "data": {
  1635. "$ref": "#/components/schemas/SessionInput.Admitted"
  1636. }
  1637. },
  1638. "required": [
  1639. "data"
  1640. ],
  1641. "additionalProperties": false
  1642. }
  1643. }
  1644. }
  1645. },
  1646. "400": {
  1647. "description": "InvalidRequestError",
  1648. "content": {
  1649. "application/json": {
  1650. "schema": {
  1651. "anyOf": [
  1652. {
  1653. "$ref": "#/components/schemas/InvalidRequestError1"
  1654. },
  1655. {
  1656. "$ref": "#/components/schemas/InvalidRequestError"
  1657. }
  1658. ]
  1659. }
  1660. }
  1661. }
  1662. },
  1663. "401": {
  1664. "description": "UnauthorizedError",
  1665. "content": {
  1666. "application/json": {
  1667. "schema": {
  1668. "$ref": "#/components/schemas/UnauthorizedError"
  1669. }
  1670. }
  1671. }
  1672. },
  1673. "404": {
  1674. "description": "SessionNotFoundError | CommandNotFoundError",
  1675. "content": {
  1676. "application/json": {
  1677. "schema": {
  1678. "anyOf": [
  1679. {
  1680. "$ref": "#/components/schemas/CommandNotFoundError"
  1681. },
  1682. {
  1683. "$ref": "#/components/schemas/SessionNotFoundError"
  1684. },
  1685. {
  1686. "$ref": "#/components/schemas/SessionNotFoundError"
  1687. }
  1688. ]
  1689. }
  1690. }
  1691. }
  1692. },
  1693. "409": {
  1694. "description": "ConflictError",
  1695. "content": {
  1696. "application/json": {
  1697. "schema": {
  1698. "$ref": "#/components/schemas/ConflictError"
  1699. }
  1700. }
  1701. }
  1702. },
  1703. "500": {
  1704. "description": "CommandEvaluationError",
  1705. "content": {
  1706. "application/json": {
  1707. "schema": {
  1708. "$ref": "#/components/schemas/CommandEvaluationError"
  1709. }
  1710. }
  1711. }
  1712. }
  1713. },
  1714. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1715. "summary": "Run command",
  1716. "requestBody": {
  1717. "content": {
  1718. "application/json": {
  1719. "schema": {
  1720. "type": "object",
  1721. "properties": {
  1722. "id": {
  1723. "anyOf": [
  1724. {
  1725. "type": "string",
  1726. "allOf": [
  1727. {
  1728. "pattern": "^msg_"
  1729. }
  1730. ]
  1731. },
  1732. {
  1733. "type": "null"
  1734. }
  1735. ]
  1736. },
  1737. "command": {
  1738. "type": "string"
  1739. },
  1740. "arguments": {
  1741. "anyOf": [
  1742. {
  1743. "type": "string"
  1744. },
  1745. {
  1746. "type": "null"
  1747. }
  1748. ]
  1749. },
  1750. "agent": {
  1751. "anyOf": [
  1752. {
  1753. "type": "string"
  1754. },
  1755. {
  1756. "type": "null"
  1757. }
  1758. ]
  1759. },
  1760. "model": {
  1761. "anyOf": [
  1762. {
  1763. "$ref": "#/components/schemas/Model.Ref"
  1764. },
  1765. {
  1766. "type": "null"
  1767. }
  1768. ]
  1769. },
  1770. "files": {
  1771. "type": "array",
  1772. "items": {
  1773. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1774. }
  1775. },
  1776. "agents": {
  1777. "type": "array",
  1778. "items": {
  1779. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1780. }
  1781. },
  1782. "delivery": {
  1783. "anyOf": [
  1784. {
  1785. "type": "string",
  1786. "enum": [
  1787. "steer",
  1788. "queue"
  1789. ]
  1790. },
  1791. {
  1792. "type": "null"
  1793. }
  1794. ]
  1795. },
  1796. "resume": {
  1797. "anyOf": [
  1798. {
  1799. "type": "boolean"
  1800. },
  1801. {
  1802. "type": "null"
  1803. }
  1804. ]
  1805. }
  1806. },
  1807. "required": [
  1808. "command"
  1809. ],
  1810. "additionalProperties": false
  1811. }
  1812. }
  1813. },
  1814. "required": true
  1815. }
  1816. }
  1817. },
  1818. "/api/session/{sessionID}/skill": {
  1819. "post": {
  1820. "tags": [
  1821. "session"
  1822. ],
  1823. "operationId": "v2.session.skill",
  1824. "parameters": [
  1825. {
  1826. "name": "sessionID",
  1827. "in": "path",
  1828. "schema": {
  1829. "type": "string",
  1830. "allOf": [
  1831. {
  1832. "pattern": "^ses"
  1833. }
  1834. ]
  1835. },
  1836. "required": true
  1837. }
  1838. ],
  1839. "security": [],
  1840. "responses": {
  1841. "204": {
  1842. "description": "<No Content>"
  1843. },
  1844. "400": {
  1845. "description": "InvalidRequestError",
  1846. "content": {
  1847. "application/json": {
  1848. "schema": {
  1849. "$ref": "#/components/schemas/InvalidRequestError"
  1850. }
  1851. }
  1852. }
  1853. },
  1854. "401": {
  1855. "description": "UnauthorizedError",
  1856. "content": {
  1857. "application/json": {
  1858. "schema": {
  1859. "$ref": "#/components/schemas/UnauthorizedError"
  1860. }
  1861. }
  1862. }
  1863. },
  1864. "404": {
  1865. "description": "SessionNotFoundError | SkillNotFoundError",
  1866. "content": {
  1867. "application/json": {
  1868. "schema": {
  1869. "anyOf": [
  1870. {
  1871. "$ref": "#/components/schemas/SkillNotFoundError"
  1872. },
  1873. {
  1874. "$ref": "#/components/schemas/SessionNotFoundError"
  1875. },
  1876. {
  1877. "$ref": "#/components/schemas/SessionNotFoundError"
  1878. }
  1879. ]
  1880. }
  1881. }
  1882. }
  1883. }
  1884. },
  1885. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  1886. "summary": "Activate skill",
  1887. "requestBody": {
  1888. "content": {
  1889. "application/json": {
  1890. "schema": {
  1891. "type": "object",
  1892. "properties": {
  1893. "id": {
  1894. "anyOf": [
  1895. {
  1896. "type": "string",
  1897. "allOf": [
  1898. {
  1899. "pattern": "^msg_"
  1900. }
  1901. ]
  1902. },
  1903. {
  1904. "type": "null"
  1905. }
  1906. ]
  1907. },
  1908. "skill": {
  1909. "type": "string"
  1910. },
  1911. "resume": {
  1912. "anyOf": [
  1913. {
  1914. "type": "boolean"
  1915. },
  1916. {
  1917. "type": "null"
  1918. }
  1919. ]
  1920. }
  1921. },
  1922. "required": [
  1923. "skill"
  1924. ],
  1925. "additionalProperties": false
  1926. }
  1927. }
  1928. },
  1929. "required": true
  1930. }
  1931. }
  1932. },
  1933. "/api/session/{sessionID}/synthetic": {
  1934. "post": {
  1935. "tags": [
  1936. "session"
  1937. ],
  1938. "operationId": "v2.session.synthetic",
  1939. "parameters": [
  1940. {
  1941. "name": "sessionID",
  1942. "in": "path",
  1943. "schema": {
  1944. "type": "string",
  1945. "allOf": [
  1946. {
  1947. "pattern": "^ses"
  1948. }
  1949. ]
  1950. },
  1951. "required": true
  1952. }
  1953. ],
  1954. "security": [],
  1955. "responses": {
  1956. "204": {
  1957. "description": "<No Content>"
  1958. },
  1959. "400": {
  1960. "description": "InvalidRequestError",
  1961. "content": {
  1962. "application/json": {
  1963. "schema": {
  1964. "$ref": "#/components/schemas/InvalidRequestError"
  1965. }
  1966. }
  1967. }
  1968. },
  1969. "401": {
  1970. "description": "UnauthorizedError",
  1971. "content": {
  1972. "application/json": {
  1973. "schema": {
  1974. "$ref": "#/components/schemas/UnauthorizedError"
  1975. }
  1976. }
  1977. }
  1978. },
  1979. "404": {
  1980. "description": "SessionNotFoundError",
  1981. "content": {
  1982. "application/json": {
  1983. "schema": {
  1984. "anyOf": [
  1985. {
  1986. "$ref": "#/components/schemas/SessionNotFoundError"
  1987. },
  1988. {
  1989. "$ref": "#/components/schemas/SessionNotFoundError"
  1990. }
  1991. ]
  1992. }
  1993. }
  1994. }
  1995. }
  1996. },
  1997. "description": "Append a synthetic message to a session and resume execution.",
  1998. "summary": "Add synthetic message",
  1999. "requestBody": {
  2000. "content": {
  2001. "application/json": {
  2002. "schema": {
  2003. "type": "object",
  2004. "properties": {
  2005. "text": {
  2006. "type": "string"
  2007. },
  2008. "description": {
  2009. "anyOf": [
  2010. {
  2011. "type": "string"
  2012. },
  2013. {
  2014. "type": "null"
  2015. }
  2016. ]
  2017. },
  2018. "metadata": {
  2019. "type": "object"
  2020. },
  2021. "resume": {
  2022. "anyOf": [
  2023. {
  2024. "type": "boolean"
  2025. },
  2026. {
  2027. "type": "null"
  2028. }
  2029. ]
  2030. }
  2031. },
  2032. "required": [
  2033. "text"
  2034. ],
  2035. "additionalProperties": false
  2036. }
  2037. }
  2038. },
  2039. "required": true
  2040. }
  2041. }
  2042. },
  2043. "/api/session/{sessionID}/shell": {
  2044. "post": {
  2045. "tags": [
  2046. "session"
  2047. ],
  2048. "operationId": "v2.session.shell",
  2049. "parameters": [
  2050. {
  2051. "name": "sessionID",
  2052. "in": "path",
  2053. "schema": {
  2054. "type": "string",
  2055. "allOf": [
  2056. {
  2057. "pattern": "^ses"
  2058. }
  2059. ]
  2060. },
  2061. "required": true
  2062. }
  2063. ],
  2064. "security": [],
  2065. "responses": {
  2066. "204": {
  2067. "description": "<No Content>"
  2068. },
  2069. "400": {
  2070. "description": "InvalidRequestError",
  2071. "content": {
  2072. "application/json": {
  2073. "schema": {
  2074. "$ref": "#/components/schemas/InvalidRequestError"
  2075. }
  2076. }
  2077. }
  2078. },
  2079. "401": {
  2080. "description": "UnauthorizedError",
  2081. "content": {
  2082. "application/json": {
  2083. "schema": {
  2084. "$ref": "#/components/schemas/UnauthorizedError"
  2085. }
  2086. }
  2087. }
  2088. },
  2089. "404": {
  2090. "description": "SessionNotFoundError",
  2091. "content": {
  2092. "application/json": {
  2093. "schema": {
  2094. "anyOf": [
  2095. {
  2096. "$ref": "#/components/schemas/SessionNotFoundError"
  2097. },
  2098. {
  2099. "$ref": "#/components/schemas/SessionNotFoundError"
  2100. }
  2101. ]
  2102. }
  2103. }
  2104. }
  2105. }
  2106. },
  2107. "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.",
  2108. "summary": "Run shell command",
  2109. "requestBody": {
  2110. "content": {
  2111. "application/json": {
  2112. "schema": {
  2113. "type": "object",
  2114. "properties": {
  2115. "id": {
  2116. "anyOf": [
  2117. {
  2118. "type": "string",
  2119. "allOf": [
  2120. {
  2121. "pattern": "^evt_"
  2122. }
  2123. ]
  2124. },
  2125. {
  2126. "type": "null"
  2127. }
  2128. ]
  2129. },
  2130. "command": {
  2131. "type": "string"
  2132. }
  2133. },
  2134. "required": [
  2135. "command"
  2136. ],
  2137. "additionalProperties": false
  2138. }
  2139. }
  2140. },
  2141. "required": true
  2142. }
  2143. }
  2144. },
  2145. "/api/session/{sessionID}/compact": {
  2146. "post": {
  2147. "tags": [
  2148. "session"
  2149. ],
  2150. "operationId": "v2.session.compact",
  2151. "parameters": [
  2152. {
  2153. "name": "sessionID",
  2154. "in": "path",
  2155. "schema": {
  2156. "type": "string",
  2157. "allOf": [
  2158. {
  2159. "pattern": "^ses"
  2160. }
  2161. ]
  2162. },
  2163. "required": true
  2164. }
  2165. ],
  2166. "security": [],
  2167. "responses": {
  2168. "200": {
  2169. "description": "Success",
  2170. "content": {
  2171. "application/json": {
  2172. "schema": {
  2173. "type": "object",
  2174. "properties": {
  2175. "data": {
  2176. "$ref": "#/components/schemas/SessionInput.Compaction"
  2177. }
  2178. },
  2179. "required": [
  2180. "data"
  2181. ],
  2182. "additionalProperties": false
  2183. }
  2184. }
  2185. }
  2186. },
  2187. "400": {
  2188. "description": "InvalidRequestError",
  2189. "content": {
  2190. "application/json": {
  2191. "schema": {
  2192. "$ref": "#/components/schemas/InvalidRequestError"
  2193. }
  2194. }
  2195. }
  2196. },
  2197. "401": {
  2198. "description": "UnauthorizedError",
  2199. "content": {
  2200. "application/json": {
  2201. "schema": {
  2202. "$ref": "#/components/schemas/UnauthorizedError"
  2203. }
  2204. }
  2205. }
  2206. },
  2207. "404": {
  2208. "description": "SessionNotFoundError",
  2209. "content": {
  2210. "application/json": {
  2211. "schema": {
  2212. "anyOf": [
  2213. {
  2214. "$ref": "#/components/schemas/SessionNotFoundError"
  2215. },
  2216. {
  2217. "$ref": "#/components/schemas/SessionNotFoundError"
  2218. }
  2219. ]
  2220. }
  2221. }
  2222. }
  2223. },
  2224. "409": {
  2225. "description": "ConflictError",
  2226. "content": {
  2227. "application/json": {
  2228. "schema": {
  2229. "$ref": "#/components/schemas/ConflictError"
  2230. }
  2231. }
  2232. }
  2233. }
  2234. },
  2235. "description": "Queue a durable session compaction request.",
  2236. "summary": "Compact session",
  2237. "requestBody": {
  2238. "content": {
  2239. "application/json": {
  2240. "schema": {
  2241. "type": "object",
  2242. "properties": {
  2243. "id": {
  2244. "anyOf": [
  2245. {
  2246. "type": "string",
  2247. "allOf": [
  2248. {
  2249. "pattern": "^msg_"
  2250. }
  2251. ]
  2252. },
  2253. {
  2254. "type": "null"
  2255. }
  2256. ]
  2257. }
  2258. },
  2259. "additionalProperties": false
  2260. }
  2261. }
  2262. },
  2263. "required": true
  2264. }
  2265. }
  2266. },
  2267. "/api/session/{sessionID}/wait": {
  2268. "post": {
  2269. "tags": [
  2270. "session"
  2271. ],
  2272. "operationId": "v2.session.wait",
  2273. "parameters": [
  2274. {
  2275. "name": "sessionID",
  2276. "in": "path",
  2277. "schema": {
  2278. "type": "string",
  2279. "allOf": [
  2280. {
  2281. "pattern": "^ses"
  2282. }
  2283. ]
  2284. },
  2285. "required": true
  2286. }
  2287. ],
  2288. "security": [],
  2289. "responses": {
  2290. "204": {
  2291. "description": "<No Content>"
  2292. },
  2293. "400": {
  2294. "description": "InvalidRequestError",
  2295. "content": {
  2296. "application/json": {
  2297. "schema": {
  2298. "$ref": "#/components/schemas/InvalidRequestError"
  2299. }
  2300. }
  2301. }
  2302. },
  2303. "401": {
  2304. "description": "UnauthorizedError",
  2305. "content": {
  2306. "application/json": {
  2307. "schema": {
  2308. "$ref": "#/components/schemas/UnauthorizedError"
  2309. }
  2310. }
  2311. }
  2312. },
  2313. "404": {
  2314. "description": "SessionNotFoundError",
  2315. "content": {
  2316. "application/json": {
  2317. "schema": {
  2318. "anyOf": [
  2319. {
  2320. "$ref": "#/components/schemas/SessionNotFoundError"
  2321. },
  2322. {
  2323. "$ref": "#/components/schemas/SessionNotFoundError"
  2324. }
  2325. ]
  2326. }
  2327. }
  2328. }
  2329. },
  2330. "503": {
  2331. "description": "ServiceUnavailableError",
  2332. "content": {
  2333. "application/json": {
  2334. "schema": {
  2335. "$ref": "#/components/schemas/ServiceUnavailableError"
  2336. }
  2337. }
  2338. }
  2339. }
  2340. },
  2341. "description": "Wait for a session agent loop to become idle.",
  2342. "summary": "Wait for session"
  2343. }
  2344. },
  2345. "/api/session/{sessionID}/revert/stage": {
  2346. "post": {
  2347. "tags": [
  2348. "session"
  2349. ],
  2350. "operationId": "v2.session.revert.stage",
  2351. "parameters": [
  2352. {
  2353. "name": "sessionID",
  2354. "in": "path",
  2355. "schema": {
  2356. "type": "string",
  2357. "allOf": [
  2358. {
  2359. "pattern": "^ses"
  2360. }
  2361. ]
  2362. },
  2363. "required": true
  2364. }
  2365. ],
  2366. "security": [],
  2367. "responses": {
  2368. "200": {
  2369. "description": "Success",
  2370. "content": {
  2371. "application/json": {
  2372. "schema": {
  2373. "type": "object",
  2374. "properties": {
  2375. "data": {
  2376. "$ref": "#/components/schemas/Session.Revert"
  2377. }
  2378. },
  2379. "required": [
  2380. "data"
  2381. ],
  2382. "additionalProperties": false
  2383. }
  2384. }
  2385. }
  2386. },
  2387. "400": {
  2388. "description": "InvalidRequestError",
  2389. "content": {
  2390. "application/json": {
  2391. "schema": {
  2392. "$ref": "#/components/schemas/InvalidRequestError"
  2393. }
  2394. }
  2395. }
  2396. },
  2397. "401": {
  2398. "description": "UnauthorizedError",
  2399. "content": {
  2400. "application/json": {
  2401. "schema": {
  2402. "$ref": "#/components/schemas/UnauthorizedError"
  2403. }
  2404. }
  2405. }
  2406. },
  2407. "404": {
  2408. "description": "MessageNotFoundError | SessionNotFoundError",
  2409. "content": {
  2410. "application/json": {
  2411. "schema": {
  2412. "anyOf": [
  2413. {
  2414. "$ref": "#/components/schemas/MessageNotFoundError"
  2415. },
  2416. {
  2417. "$ref": "#/components/schemas/SessionNotFoundError"
  2418. },
  2419. {
  2420. "$ref": "#/components/schemas/SessionNotFoundError"
  2421. }
  2422. ]
  2423. }
  2424. }
  2425. }
  2426. },
  2427. "409": {
  2428. "description": "SessionBusyError",
  2429. "content": {
  2430. "application/json": {
  2431. "schema": {
  2432. "$ref": "#/components/schemas/SessionBusyError"
  2433. }
  2434. }
  2435. }
  2436. },
  2437. "500": {
  2438. "description": "UnknownError",
  2439. "content": {
  2440. "application/json": {
  2441. "schema": {
  2442. "$ref": "#/components/schemas/UnknownError"
  2443. }
  2444. }
  2445. }
  2446. }
  2447. },
  2448. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2449. "summary": "Stage session revert",
  2450. "requestBody": {
  2451. "content": {
  2452. "application/json": {
  2453. "schema": {
  2454. "type": "object",
  2455. "properties": {
  2456. "messageID": {
  2457. "type": "string",
  2458. "allOf": [
  2459. {
  2460. "pattern": "^msg_"
  2461. }
  2462. ]
  2463. },
  2464. "files": {
  2465. "anyOf": [
  2466. {
  2467. "type": "boolean"
  2468. },
  2469. {
  2470. "type": "null"
  2471. }
  2472. ]
  2473. }
  2474. },
  2475. "required": [
  2476. "messageID"
  2477. ],
  2478. "additionalProperties": false
  2479. }
  2480. }
  2481. },
  2482. "required": true
  2483. }
  2484. }
  2485. },
  2486. "/api/session/{sessionID}/revert/clear": {
  2487. "post": {
  2488. "tags": [
  2489. "session"
  2490. ],
  2491. "operationId": "v2.session.revert.clear",
  2492. "parameters": [
  2493. {
  2494. "name": "sessionID",
  2495. "in": "path",
  2496. "schema": {
  2497. "type": "string",
  2498. "allOf": [
  2499. {
  2500. "pattern": "^ses"
  2501. }
  2502. ]
  2503. },
  2504. "required": true
  2505. }
  2506. ],
  2507. "security": [],
  2508. "responses": {
  2509. "204": {
  2510. "description": "<No Content>"
  2511. },
  2512. "400": {
  2513. "description": "InvalidRequestError",
  2514. "content": {
  2515. "application/json": {
  2516. "schema": {
  2517. "$ref": "#/components/schemas/InvalidRequestError"
  2518. }
  2519. }
  2520. }
  2521. },
  2522. "401": {
  2523. "description": "UnauthorizedError",
  2524. "content": {
  2525. "application/json": {
  2526. "schema": {
  2527. "$ref": "#/components/schemas/UnauthorizedError"
  2528. }
  2529. }
  2530. }
  2531. },
  2532. "404": {
  2533. "description": "SessionNotFoundError",
  2534. "content": {
  2535. "application/json": {
  2536. "schema": {
  2537. "anyOf": [
  2538. {
  2539. "$ref": "#/components/schemas/SessionNotFoundError"
  2540. },
  2541. {
  2542. "$ref": "#/components/schemas/SessionNotFoundError"
  2543. }
  2544. ]
  2545. }
  2546. }
  2547. }
  2548. },
  2549. "409": {
  2550. "description": "SessionBusyError",
  2551. "content": {
  2552. "application/json": {
  2553. "schema": {
  2554. "$ref": "#/components/schemas/SessionBusyError"
  2555. }
  2556. }
  2557. }
  2558. },
  2559. "500": {
  2560. "description": "UnknownError",
  2561. "content": {
  2562. "application/json": {
  2563. "schema": {
  2564. "$ref": "#/components/schemas/UnknownError"
  2565. }
  2566. }
  2567. }
  2568. }
  2569. },
  2570. "summary": "Clear staged revert"
  2571. }
  2572. },
  2573. "/api/session/{sessionID}/revert/commit": {
  2574. "post": {
  2575. "tags": [
  2576. "session"
  2577. ],
  2578. "operationId": "v2.session.revert.commit",
  2579. "parameters": [
  2580. {
  2581. "name": "sessionID",
  2582. "in": "path",
  2583. "schema": {
  2584. "type": "string",
  2585. "allOf": [
  2586. {
  2587. "pattern": "^ses"
  2588. }
  2589. ]
  2590. },
  2591. "required": true
  2592. }
  2593. ],
  2594. "security": [],
  2595. "responses": {
  2596. "204": {
  2597. "description": "<No Content>"
  2598. },
  2599. "400": {
  2600. "description": "InvalidRequestError",
  2601. "content": {
  2602. "application/json": {
  2603. "schema": {
  2604. "$ref": "#/components/schemas/InvalidRequestError"
  2605. }
  2606. }
  2607. }
  2608. },
  2609. "401": {
  2610. "description": "UnauthorizedError",
  2611. "content": {
  2612. "application/json": {
  2613. "schema": {
  2614. "$ref": "#/components/schemas/UnauthorizedError"
  2615. }
  2616. }
  2617. }
  2618. },
  2619. "404": {
  2620. "description": "SessionNotFoundError",
  2621. "content": {
  2622. "application/json": {
  2623. "schema": {
  2624. "anyOf": [
  2625. {
  2626. "$ref": "#/components/schemas/SessionNotFoundError"
  2627. },
  2628. {
  2629. "$ref": "#/components/schemas/SessionNotFoundError"
  2630. }
  2631. ]
  2632. }
  2633. }
  2634. }
  2635. },
  2636. "409": {
  2637. "description": "SessionBusyError",
  2638. "content": {
  2639. "application/json": {
  2640. "schema": {
  2641. "$ref": "#/components/schemas/SessionBusyError"
  2642. }
  2643. }
  2644. }
  2645. }
  2646. },
  2647. "summary": "Commit staged revert"
  2648. }
  2649. },
  2650. "/api/session/{sessionID}/context": {
  2651. "get": {
  2652. "tags": [
  2653. "session"
  2654. ],
  2655. "operationId": "v2.session.context",
  2656. "parameters": [
  2657. {
  2658. "name": "sessionID",
  2659. "in": "path",
  2660. "schema": {
  2661. "type": "string",
  2662. "allOf": [
  2663. {
  2664. "pattern": "^ses"
  2665. }
  2666. ]
  2667. },
  2668. "required": true
  2669. }
  2670. ],
  2671. "security": [],
  2672. "responses": {
  2673. "200": {
  2674. "description": "Success",
  2675. "content": {
  2676. "application/json": {
  2677. "schema": {
  2678. "type": "object",
  2679. "properties": {
  2680. "data": {
  2681. "type": "array",
  2682. "items": {
  2683. "$ref": "#/components/schemas/Session.Message.Info"
  2684. }
  2685. }
  2686. },
  2687. "required": [
  2688. "data"
  2689. ],
  2690. "additionalProperties": false
  2691. }
  2692. }
  2693. }
  2694. },
  2695. "400": {
  2696. "description": "InvalidRequestError",
  2697. "content": {
  2698. "application/json": {
  2699. "schema": {
  2700. "$ref": "#/components/schemas/InvalidRequestError"
  2701. }
  2702. }
  2703. }
  2704. },
  2705. "401": {
  2706. "description": "UnauthorizedError",
  2707. "content": {
  2708. "application/json": {
  2709. "schema": {
  2710. "$ref": "#/components/schemas/UnauthorizedError"
  2711. }
  2712. }
  2713. }
  2714. },
  2715. "404": {
  2716. "description": "SessionNotFoundError",
  2717. "content": {
  2718. "application/json": {
  2719. "schema": {
  2720. "anyOf": [
  2721. {
  2722. "$ref": "#/components/schemas/SessionNotFoundError"
  2723. },
  2724. {
  2725. "$ref": "#/components/schemas/SessionNotFoundError"
  2726. }
  2727. ]
  2728. }
  2729. }
  2730. }
  2731. },
  2732. "500": {
  2733. "description": "UnknownError",
  2734. "content": {
  2735. "application/json": {
  2736. "schema": {
  2737. "$ref": "#/components/schemas/UnknownError"
  2738. }
  2739. }
  2740. }
  2741. }
  2742. },
  2743. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2744. "summary": "Get session context"
  2745. }
  2746. },
  2747. "/api/session/{sessionID}/instructions/entries": {
  2748. "get": {
  2749. "tags": [
  2750. "session"
  2751. ],
  2752. "operationId": "v2.session.instructions.entry.list",
  2753. "parameters": [
  2754. {
  2755. "name": "sessionID",
  2756. "in": "path",
  2757. "schema": {
  2758. "type": "string",
  2759. "allOf": [
  2760. {
  2761. "pattern": "^ses"
  2762. }
  2763. ]
  2764. },
  2765. "required": true
  2766. }
  2767. ],
  2768. "security": [],
  2769. "responses": {
  2770. "200": {
  2771. "description": "Success",
  2772. "content": {
  2773. "application/json": {
  2774. "schema": {
  2775. "type": "object",
  2776. "properties": {
  2777. "data": {
  2778. "type": "array",
  2779. "items": {
  2780. "$ref": "#/components/schemas/InstructionEntry.Info"
  2781. }
  2782. }
  2783. },
  2784. "required": [
  2785. "data"
  2786. ],
  2787. "additionalProperties": false
  2788. }
  2789. }
  2790. }
  2791. },
  2792. "400": {
  2793. "description": "InvalidRequestError",
  2794. "content": {
  2795. "application/json": {
  2796. "schema": {
  2797. "$ref": "#/components/schemas/InvalidRequestError"
  2798. }
  2799. }
  2800. }
  2801. },
  2802. "401": {
  2803. "description": "UnauthorizedError",
  2804. "content": {
  2805. "application/json": {
  2806. "schema": {
  2807. "$ref": "#/components/schemas/UnauthorizedError"
  2808. }
  2809. }
  2810. }
  2811. },
  2812. "404": {
  2813. "description": "SessionNotFoundError",
  2814. "content": {
  2815. "application/json": {
  2816. "schema": {
  2817. "anyOf": [
  2818. {
  2819. "$ref": "#/components/schemas/SessionNotFoundError"
  2820. },
  2821. {
  2822. "$ref": "#/components/schemas/SessionNotFoundError"
  2823. }
  2824. ]
  2825. }
  2826. }
  2827. }
  2828. }
  2829. },
  2830. "description": "List API-managed instruction entries attached to the session.",
  2831. "summary": "List instruction entries"
  2832. }
  2833. },
  2834. "/api/session/{sessionID}/instructions/entries/{key}": {
  2835. "put": {
  2836. "tags": [
  2837. "session"
  2838. ],
  2839. "operationId": "v2.session.instructions.entry.put",
  2840. "parameters": [
  2841. {
  2842. "name": "sessionID",
  2843. "in": "path",
  2844. "schema": {
  2845. "type": "string",
  2846. "allOf": [
  2847. {
  2848. "pattern": "^ses"
  2849. }
  2850. ]
  2851. },
  2852. "required": true
  2853. },
  2854. {
  2855. "name": "key",
  2856. "in": "path",
  2857. "schema": {
  2858. "$ref": "#/components/schemas/InstructionEntry.Key"
  2859. },
  2860. "required": true
  2861. }
  2862. ],
  2863. "security": [],
  2864. "responses": {
  2865. "204": {
  2866. "description": "<No Content>"
  2867. },
  2868. "400": {
  2869. "description": "InvalidRequestError",
  2870. "content": {
  2871. "application/json": {
  2872. "schema": {
  2873. "$ref": "#/components/schemas/InvalidRequestError"
  2874. }
  2875. }
  2876. }
  2877. },
  2878. "401": {
  2879. "description": "UnauthorizedError",
  2880. "content": {
  2881. "application/json": {
  2882. "schema": {
  2883. "$ref": "#/components/schemas/UnauthorizedError"
  2884. }
  2885. }
  2886. }
  2887. },
  2888. "404": {
  2889. "description": "SessionNotFoundError",
  2890. "content": {
  2891. "application/json": {
  2892. "schema": {
  2893. "anyOf": [
  2894. {
  2895. "$ref": "#/components/schemas/SessionNotFoundError"
  2896. },
  2897. {
  2898. "$ref": "#/components/schemas/SessionNotFoundError"
  2899. }
  2900. ]
  2901. }
  2902. }
  2903. }
  2904. }
  2905. },
  2906. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  2907. "summary": "Put instruction entry",
  2908. "requestBody": {
  2909. "content": {
  2910. "application/json": {
  2911. "schema": {
  2912. "type": "object",
  2913. "properties": {
  2914. "value": {}
  2915. },
  2916. "required": [
  2917. "value"
  2918. ],
  2919. "additionalProperties": false
  2920. }
  2921. }
  2922. },
  2923. "required": true
  2924. }
  2925. },
  2926. "delete": {
  2927. "tags": [
  2928. "session"
  2929. ],
  2930. "operationId": "v2.session.instructions.entry.remove",
  2931. "parameters": [
  2932. {
  2933. "name": "sessionID",
  2934. "in": "path",
  2935. "schema": {
  2936. "type": "string",
  2937. "allOf": [
  2938. {
  2939. "pattern": "^ses"
  2940. }
  2941. ]
  2942. },
  2943. "required": true
  2944. },
  2945. {
  2946. "name": "key",
  2947. "in": "path",
  2948. "schema": {
  2949. "$ref": "#/components/schemas/InstructionEntry.Key"
  2950. },
  2951. "required": true
  2952. }
  2953. ],
  2954. "security": [],
  2955. "responses": {
  2956. "204": {
  2957. "description": "<No Content>"
  2958. },
  2959. "400": {
  2960. "description": "InvalidRequestError",
  2961. "content": {
  2962. "application/json": {
  2963. "schema": {
  2964. "$ref": "#/components/schemas/InvalidRequestError"
  2965. }
  2966. }
  2967. }
  2968. },
  2969. "401": {
  2970. "description": "UnauthorizedError",
  2971. "content": {
  2972. "application/json": {
  2973. "schema": {
  2974. "$ref": "#/components/schemas/UnauthorizedError"
  2975. }
  2976. }
  2977. }
  2978. },
  2979. "404": {
  2980. "description": "SessionNotFoundError",
  2981. "content": {
  2982. "application/json": {
  2983. "schema": {
  2984. "anyOf": [
  2985. {
  2986. "$ref": "#/components/schemas/SessionNotFoundError"
  2987. },
  2988. {
  2989. "$ref": "#/components/schemas/SessionNotFoundError"
  2990. }
  2991. ]
  2992. }
  2993. }
  2994. }
  2995. }
  2996. },
  2997. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  2998. "summary": "Remove instruction entry"
  2999. }
  3000. },
  3001. "/api/experimental/session/{sessionID}/log": {
  3002. "get": {
  3003. "tags": [
  3004. "session"
  3005. ],
  3006. "operationId": "v2.session.log",
  3007. "parameters": [
  3008. {
  3009. "name": "sessionID",
  3010. "in": "path",
  3011. "schema": {
  3012. "type": "string",
  3013. "allOf": [
  3014. {
  3015. "pattern": "^ses"
  3016. }
  3017. ]
  3018. },
  3019. "required": true
  3020. },
  3021. {
  3022. "name": "after",
  3023. "in": "query",
  3024. "schema": {
  3025. "anyOf": [
  3026. {
  3027. "type": "string"
  3028. },
  3029. {
  3030. "type": "null"
  3031. }
  3032. ]
  3033. },
  3034. "required": false
  3035. },
  3036. {
  3037. "name": "follow",
  3038. "in": "query",
  3039. "schema": {
  3040. "anyOf": [
  3041. {
  3042. "type": "string",
  3043. "enum": [
  3044. "true",
  3045. "false"
  3046. ]
  3047. },
  3048. {
  3049. "type": "null"
  3050. }
  3051. ]
  3052. },
  3053. "required": false
  3054. }
  3055. ],
  3056. "security": [],
  3057. "responses": {
  3058. "200": {
  3059. "description": "Success",
  3060. "content": {
  3061. "text/event-stream": {
  3062. "schema": {
  3063. "type": "object",
  3064. "properties": {
  3065. "id": {
  3066. "anyOf": [
  3067. {
  3068. "type": "string"
  3069. },
  3070. {
  3071. "type": "null"
  3072. }
  3073. ]
  3074. },
  3075. "event": {
  3076. "type": "string"
  3077. },
  3078. "data": {
  3079. "$ref": "#/components/schemas/SessionLogItemStream"
  3080. }
  3081. },
  3082. "required": [
  3083. "id",
  3084. "event",
  3085. "data"
  3086. ],
  3087. "additionalProperties": false
  3088. },
  3089. "x-effect-stream": {
  3090. "encoding": "sse",
  3091. "causeSchema": {
  3092. "type": "array",
  3093. "items": {
  3094. "anyOf": [
  3095. {
  3096. "type": "object",
  3097. "properties": {
  3098. "_tag": {
  3099. "type": "string",
  3100. "enum": [
  3101. "Fail"
  3102. ]
  3103. },
  3104. "error": {
  3105. "not": {}
  3106. }
  3107. },
  3108. "required": [
  3109. "_tag",
  3110. "error"
  3111. ],
  3112. "additionalProperties": false
  3113. },
  3114. {
  3115. "type": "object",
  3116. "properties": {
  3117. "_tag": {
  3118. "type": "string",
  3119. "enum": [
  3120. "Die"
  3121. ]
  3122. },
  3123. "defect": {}
  3124. },
  3125. "required": [
  3126. "_tag",
  3127. "defect"
  3128. ],
  3129. "additionalProperties": false
  3130. },
  3131. {
  3132. "type": "object",
  3133. "properties": {
  3134. "_tag": {
  3135. "type": "string",
  3136. "enum": [
  3137. "Interrupt"
  3138. ]
  3139. },
  3140. "fiberId": {
  3141. "anyOf": [
  3142. {
  3143. "type": "number"
  3144. },
  3145. {
  3146. "type": "null"
  3147. }
  3148. ]
  3149. }
  3150. },
  3151. "required": [
  3152. "_tag",
  3153. "fiberId"
  3154. ],
  3155. "additionalProperties": false
  3156. }
  3157. ]
  3158. }
  3159. },
  3160. "errorSchema": {
  3161. "not": {}
  3162. },
  3163. "failureEvent": "effect/httpapi/stream/failure"
  3164. }
  3165. }
  3166. }
  3167. },
  3168. "400": {
  3169. "description": "InvalidRequestError",
  3170. "content": {
  3171. "application/json": {
  3172. "schema": {
  3173. "$ref": "#/components/schemas/InvalidRequestError"
  3174. }
  3175. }
  3176. }
  3177. },
  3178. "401": {
  3179. "description": "UnauthorizedError",
  3180. "content": {
  3181. "application/json": {
  3182. "schema": {
  3183. "$ref": "#/components/schemas/UnauthorizedError"
  3184. }
  3185. }
  3186. }
  3187. },
  3188. "404": {
  3189. "description": "SessionNotFoundError",
  3190. "content": {
  3191. "application/json": {
  3192. "schema": {
  3193. "anyOf": [
  3194. {
  3195. "$ref": "#/components/schemas/SessionNotFoundError"
  3196. },
  3197. {
  3198. "$ref": "#/components/schemas/SessionNotFoundError"
  3199. }
  3200. ]
  3201. }
  3202. }
  3203. }
  3204. }
  3205. },
  3206. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3207. "summary": "Read the session log"
  3208. }
  3209. },
  3210. "/api/session/{sessionID}/interrupt": {
  3211. "post": {
  3212. "tags": [
  3213. "session"
  3214. ],
  3215. "operationId": "v2.session.interrupt",
  3216. "parameters": [
  3217. {
  3218. "name": "sessionID",
  3219. "in": "path",
  3220. "schema": {
  3221. "type": "string",
  3222. "allOf": [
  3223. {
  3224. "pattern": "^ses"
  3225. }
  3226. ]
  3227. },
  3228. "required": true
  3229. }
  3230. ],
  3231. "security": [],
  3232. "responses": {
  3233. "204": {
  3234. "description": "<No Content>"
  3235. },
  3236. "400": {
  3237. "description": "InvalidRequestError",
  3238. "content": {
  3239. "application/json": {
  3240. "schema": {
  3241. "$ref": "#/components/schemas/InvalidRequestError"
  3242. }
  3243. }
  3244. }
  3245. },
  3246. "401": {
  3247. "description": "UnauthorizedError",
  3248. "content": {
  3249. "application/json": {
  3250. "schema": {
  3251. "$ref": "#/components/schemas/UnauthorizedError"
  3252. }
  3253. }
  3254. }
  3255. },
  3256. "404": {
  3257. "description": "SessionNotFoundError",
  3258. "content": {
  3259. "application/json": {
  3260. "schema": {
  3261. "anyOf": [
  3262. {
  3263. "$ref": "#/components/schemas/SessionNotFoundError"
  3264. },
  3265. {
  3266. "$ref": "#/components/schemas/SessionNotFoundError"
  3267. }
  3268. ]
  3269. }
  3270. }
  3271. }
  3272. }
  3273. },
  3274. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3275. "summary": "Interrupt session execution"
  3276. }
  3277. },
  3278. "/api/session/{sessionID}/background": {
  3279. "post": {
  3280. "tags": [
  3281. "session"
  3282. ],
  3283. "operationId": "v2.session.background",
  3284. "parameters": [
  3285. {
  3286. "name": "sessionID",
  3287. "in": "path",
  3288. "schema": {
  3289. "type": "string",
  3290. "allOf": [
  3291. {
  3292. "pattern": "^ses"
  3293. }
  3294. ]
  3295. },
  3296. "required": true
  3297. }
  3298. ],
  3299. "security": [],
  3300. "responses": {
  3301. "204": {
  3302. "description": "<No Content>"
  3303. },
  3304. "400": {
  3305. "description": "InvalidRequestError",
  3306. "content": {
  3307. "application/json": {
  3308. "schema": {
  3309. "$ref": "#/components/schemas/InvalidRequestError"
  3310. }
  3311. }
  3312. }
  3313. },
  3314. "401": {
  3315. "description": "UnauthorizedError",
  3316. "content": {
  3317. "application/json": {
  3318. "schema": {
  3319. "$ref": "#/components/schemas/UnauthorizedError"
  3320. }
  3321. }
  3322. }
  3323. },
  3324. "404": {
  3325. "description": "SessionNotFoundError",
  3326. "content": {
  3327. "application/json": {
  3328. "schema": {
  3329. "anyOf": [
  3330. {
  3331. "$ref": "#/components/schemas/SessionNotFoundError"
  3332. },
  3333. {
  3334. "$ref": "#/components/schemas/SessionNotFoundError"
  3335. }
  3336. ]
  3337. }
  3338. }
  3339. }
  3340. }
  3341. },
  3342. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3343. "summary": "Background blocking session tools"
  3344. }
  3345. },
  3346. "/api/session/{sessionID}/message/{messageID}": {
  3347. "get": {
  3348. "tags": [
  3349. "session"
  3350. ],
  3351. "operationId": "v2.session.message",
  3352. "parameters": [
  3353. {
  3354. "name": "sessionID",
  3355. "in": "path",
  3356. "schema": {
  3357. "type": "string",
  3358. "allOf": [
  3359. {
  3360. "pattern": "^ses"
  3361. }
  3362. ]
  3363. },
  3364. "required": true
  3365. },
  3366. {
  3367. "name": "messageID",
  3368. "in": "path",
  3369. "schema": {
  3370. "type": "string",
  3371. "allOf": [
  3372. {
  3373. "pattern": "^msg_"
  3374. }
  3375. ]
  3376. },
  3377. "required": true
  3378. }
  3379. ],
  3380. "security": [],
  3381. "responses": {
  3382. "200": {
  3383. "description": "Success",
  3384. "content": {
  3385. "application/json": {
  3386. "schema": {
  3387. "type": "object",
  3388. "properties": {
  3389. "data": {
  3390. "$ref": "#/components/schemas/Session.Message.Info"
  3391. }
  3392. },
  3393. "required": [
  3394. "data"
  3395. ],
  3396. "additionalProperties": false
  3397. }
  3398. }
  3399. }
  3400. },
  3401. "400": {
  3402. "description": "InvalidRequestError",
  3403. "content": {
  3404. "application/json": {
  3405. "schema": {
  3406. "$ref": "#/components/schemas/InvalidRequestError"
  3407. }
  3408. }
  3409. }
  3410. },
  3411. "401": {
  3412. "description": "UnauthorizedError",
  3413. "content": {
  3414. "application/json": {
  3415. "schema": {
  3416. "$ref": "#/components/schemas/UnauthorizedError"
  3417. }
  3418. }
  3419. }
  3420. },
  3421. "404": {
  3422. "description": "SessionNotFoundError | MessageNotFoundError",
  3423. "content": {
  3424. "application/json": {
  3425. "schema": {
  3426. "anyOf": [
  3427. {
  3428. "$ref": "#/components/schemas/MessageNotFoundError"
  3429. },
  3430. {
  3431. "$ref": "#/components/schemas/SessionNotFoundError"
  3432. },
  3433. {
  3434. "$ref": "#/components/schemas/SessionNotFoundError"
  3435. }
  3436. ]
  3437. }
  3438. }
  3439. }
  3440. }
  3441. },
  3442. "description": "Retrieve one projected message owned by the Session.",
  3443. "summary": "Get session message"
  3444. }
  3445. },
  3446. "/api/session/{sessionID}/message": {
  3447. "get": {
  3448. "tags": [
  3449. "session"
  3450. ],
  3451. "operationId": "v2.message.list",
  3452. "parameters": [
  3453. {
  3454. "name": "sessionID",
  3455. "in": "path",
  3456. "schema": {
  3457. "type": "string",
  3458. "allOf": [
  3459. {
  3460. "pattern": "^ses"
  3461. }
  3462. ]
  3463. },
  3464. "required": true
  3465. },
  3466. {
  3467. "name": "limit",
  3468. "in": "query",
  3469. "schema": {
  3470. "anyOf": [
  3471. {
  3472. "type": "string"
  3473. },
  3474. {
  3475. "type": "null"
  3476. }
  3477. ],
  3478. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3479. },
  3480. "required": false
  3481. },
  3482. {
  3483. "name": "order",
  3484. "in": "query",
  3485. "schema": {
  3486. "anyOf": [
  3487. {
  3488. "type": "string",
  3489. "enum": [
  3490. "asc",
  3491. "desc"
  3492. ]
  3493. },
  3494. {
  3495. "type": "null"
  3496. }
  3497. ],
  3498. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3499. },
  3500. "required": false
  3501. },
  3502. {
  3503. "name": "cursor",
  3504. "in": "query",
  3505. "schema": {
  3506. "anyOf": [
  3507. {
  3508. "type": "string",
  3509. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3510. },
  3511. {
  3512. "type": "null"
  3513. }
  3514. ]
  3515. },
  3516. "required": false
  3517. }
  3518. ],
  3519. "security": [],
  3520. "responses": {
  3521. "200": {
  3522. "description": "SessionMessagesResponse",
  3523. "content": {
  3524. "application/json": {
  3525. "schema": {
  3526. "$ref": "#/components/schemas/SessionMessagesResponse"
  3527. }
  3528. }
  3529. }
  3530. },
  3531. "400": {
  3532. "description": "InvalidCursorError | InvalidRequestError",
  3533. "content": {
  3534. "application/json": {
  3535. "schema": {
  3536. "anyOf": [
  3537. {
  3538. "$ref": "#/components/schemas/InvalidCursorError"
  3539. },
  3540. {
  3541. "$ref": "#/components/schemas/InvalidRequestError"
  3542. }
  3543. ]
  3544. }
  3545. }
  3546. }
  3547. },
  3548. "401": {
  3549. "description": "UnauthorizedError",
  3550. "content": {
  3551. "application/json": {
  3552. "schema": {
  3553. "$ref": "#/components/schemas/UnauthorizedError"
  3554. }
  3555. }
  3556. }
  3557. },
  3558. "404": {
  3559. "description": "SessionNotFoundError",
  3560. "content": {
  3561. "application/json": {
  3562. "schema": {
  3563. "anyOf": [
  3564. {
  3565. "$ref": "#/components/schemas/SessionNotFoundError"
  3566. },
  3567. {
  3568. "$ref": "#/components/schemas/SessionNotFoundError"
  3569. }
  3570. ]
  3571. }
  3572. }
  3573. }
  3574. },
  3575. "500": {
  3576. "description": "UnknownError",
  3577. "content": {
  3578. "application/json": {
  3579. "schema": {
  3580. "$ref": "#/components/schemas/UnknownError"
  3581. }
  3582. }
  3583. }
  3584. }
  3585. },
  3586. "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.",
  3587. "summary": "Get session messages"
  3588. }
  3589. },
  3590. "/api/model": {
  3591. "get": {
  3592. "tags": [
  3593. "model"
  3594. ],
  3595. "operationId": "v2.model.list",
  3596. "parameters": [
  3597. {
  3598. "name": "location",
  3599. "in": "query",
  3600. "schema": {
  3601. "anyOf": [
  3602. {
  3603. "type": "object",
  3604. "properties": {
  3605. "directory": {
  3606. "anyOf": [
  3607. {
  3608. "type": "string"
  3609. },
  3610. {
  3611. "type": "null"
  3612. }
  3613. ]
  3614. },
  3615. "workspace": {
  3616. "anyOf": [
  3617. {
  3618. "type": "string"
  3619. },
  3620. {
  3621. "type": "null"
  3622. }
  3623. ]
  3624. }
  3625. },
  3626. "additionalProperties": false
  3627. },
  3628. {
  3629. "type": "null"
  3630. }
  3631. ]
  3632. },
  3633. "required": false,
  3634. "style": "deepObject",
  3635. "explode": true
  3636. }
  3637. ],
  3638. "security": [],
  3639. "responses": {
  3640. "200": {
  3641. "description": "Success",
  3642. "content": {
  3643. "application/json": {
  3644. "schema": {
  3645. "type": "object",
  3646. "properties": {
  3647. "location": {
  3648. "$ref": "#/components/schemas/Location.Info"
  3649. },
  3650. "data": {
  3651. "type": "array",
  3652. "items": {
  3653. "$ref": "#/components/schemas/Model.Info"
  3654. }
  3655. }
  3656. },
  3657. "required": [
  3658. "location",
  3659. "data"
  3660. ],
  3661. "additionalProperties": false
  3662. }
  3663. }
  3664. }
  3665. },
  3666. "400": {
  3667. "description": "InvalidRequestError",
  3668. "content": {
  3669. "application/json": {
  3670. "schema": {
  3671. "$ref": "#/components/schemas/InvalidRequestError"
  3672. }
  3673. }
  3674. }
  3675. },
  3676. "401": {
  3677. "description": "UnauthorizedError",
  3678. "content": {
  3679. "application/json": {
  3680. "schema": {
  3681. "$ref": "#/components/schemas/UnauthorizedError"
  3682. }
  3683. }
  3684. }
  3685. },
  3686. "503": {
  3687. "description": "ServiceUnavailableError",
  3688. "content": {
  3689. "application/json": {
  3690. "schema": {
  3691. "$ref": "#/components/schemas/ServiceUnavailableError"
  3692. }
  3693. }
  3694. }
  3695. }
  3696. },
  3697. "description": "Retrieve available models ordered by release date.",
  3698. "summary": "List models"
  3699. }
  3700. },
  3701. "/api/model/default": {
  3702. "get": {
  3703. "tags": [
  3704. "model"
  3705. ],
  3706. "operationId": "v2.model.default",
  3707. "parameters": [
  3708. {
  3709. "name": "location",
  3710. "in": "query",
  3711. "schema": {
  3712. "anyOf": [
  3713. {
  3714. "type": "object",
  3715. "properties": {
  3716. "directory": {
  3717. "anyOf": [
  3718. {
  3719. "type": "string"
  3720. },
  3721. {
  3722. "type": "null"
  3723. }
  3724. ]
  3725. },
  3726. "workspace": {
  3727. "anyOf": [
  3728. {
  3729. "type": "string"
  3730. },
  3731. {
  3732. "type": "null"
  3733. }
  3734. ]
  3735. }
  3736. },
  3737. "additionalProperties": false
  3738. },
  3739. {
  3740. "type": "null"
  3741. }
  3742. ]
  3743. },
  3744. "required": false,
  3745. "style": "deepObject",
  3746. "explode": true
  3747. }
  3748. ],
  3749. "security": [],
  3750. "responses": {
  3751. "200": {
  3752. "description": "Success",
  3753. "content": {
  3754. "application/json": {
  3755. "schema": {
  3756. "type": "object",
  3757. "properties": {
  3758. "location": {
  3759. "$ref": "#/components/schemas/Location.Info"
  3760. },
  3761. "data": {
  3762. "anyOf": [
  3763. {
  3764. "$ref": "#/components/schemas/Model.Info"
  3765. },
  3766. {
  3767. "type": "null"
  3768. }
  3769. ]
  3770. }
  3771. },
  3772. "required": [
  3773. "location",
  3774. "data"
  3775. ],
  3776. "additionalProperties": false
  3777. }
  3778. }
  3779. }
  3780. },
  3781. "400": {
  3782. "description": "InvalidRequestError",
  3783. "content": {
  3784. "application/json": {
  3785. "schema": {
  3786. "$ref": "#/components/schemas/InvalidRequestError"
  3787. }
  3788. }
  3789. }
  3790. },
  3791. "401": {
  3792. "description": "UnauthorizedError",
  3793. "content": {
  3794. "application/json": {
  3795. "schema": {
  3796. "$ref": "#/components/schemas/UnauthorizedError"
  3797. }
  3798. }
  3799. }
  3800. },
  3801. "503": {
  3802. "description": "ServiceUnavailableError",
  3803. "content": {
  3804. "application/json": {
  3805. "schema": {
  3806. "$ref": "#/components/schemas/ServiceUnavailableError"
  3807. }
  3808. }
  3809. }
  3810. }
  3811. },
  3812. "description": "Retrieve the model used when a session has no explicit model selection.",
  3813. "summary": "Get default model"
  3814. }
  3815. },
  3816. "/api/generate": {
  3817. "post": {
  3818. "tags": [
  3819. "generate"
  3820. ],
  3821. "operationId": "v2.generate.text",
  3822. "parameters": [
  3823. {
  3824. "name": "location",
  3825. "in": "query",
  3826. "schema": {
  3827. "anyOf": [
  3828. {
  3829. "type": "object",
  3830. "properties": {
  3831. "directory": {
  3832. "anyOf": [
  3833. {
  3834. "type": "string"
  3835. },
  3836. {
  3837. "type": "null"
  3838. }
  3839. ]
  3840. },
  3841. "workspace": {
  3842. "anyOf": [
  3843. {
  3844. "type": "string"
  3845. },
  3846. {
  3847. "type": "null"
  3848. }
  3849. ]
  3850. }
  3851. },
  3852. "additionalProperties": false
  3853. },
  3854. {
  3855. "type": "null"
  3856. }
  3857. ]
  3858. },
  3859. "required": false,
  3860. "style": "deepObject",
  3861. "explode": true
  3862. }
  3863. ],
  3864. "security": [],
  3865. "responses": {
  3866. "200": {
  3867. "description": "GenerateTextResponse",
  3868. "content": {
  3869. "application/json": {
  3870. "schema": {
  3871. "$ref": "#/components/schemas/GenerateTextResponse"
  3872. }
  3873. }
  3874. }
  3875. },
  3876. "400": {
  3877. "description": "InvalidRequestError",
  3878. "content": {
  3879. "application/json": {
  3880. "schema": {
  3881. "anyOf": [
  3882. {
  3883. "$ref": "#/components/schemas/InvalidRequestError1"
  3884. },
  3885. {
  3886. "$ref": "#/components/schemas/InvalidRequestError"
  3887. }
  3888. ]
  3889. }
  3890. }
  3891. }
  3892. },
  3893. "401": {
  3894. "description": "UnauthorizedError",
  3895. "content": {
  3896. "application/json": {
  3897. "schema": {
  3898. "$ref": "#/components/schemas/UnauthorizedError"
  3899. }
  3900. }
  3901. }
  3902. },
  3903. "503": {
  3904. "description": "ServiceUnavailableError",
  3905. "content": {
  3906. "application/json": {
  3907. "schema": {
  3908. "$ref": "#/components/schemas/ServiceUnavailableError"
  3909. }
  3910. }
  3911. }
  3912. }
  3913. },
  3914. "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.",
  3915. "summary": "Generate text",
  3916. "requestBody": {
  3917. "content": {
  3918. "application/json": {
  3919. "schema": {
  3920. "type": "object",
  3921. "properties": {
  3922. "prompt": {
  3923. "type": "string"
  3924. },
  3925. "model": {
  3926. "anyOf": [
  3927. {
  3928. "$ref": "#/components/schemas/Model.Ref"
  3929. },
  3930. {
  3931. "type": "null"
  3932. }
  3933. ]
  3934. }
  3935. },
  3936. "required": [
  3937. "prompt"
  3938. ],
  3939. "additionalProperties": false
  3940. }
  3941. }
  3942. },
  3943. "required": true
  3944. }
  3945. }
  3946. },
  3947. "/api/provider": {
  3948. "get": {
  3949. "tags": [
  3950. "provider"
  3951. ],
  3952. "operationId": "v2.provider.list",
  3953. "parameters": [
  3954. {
  3955. "name": "location",
  3956. "in": "query",
  3957. "schema": {
  3958. "anyOf": [
  3959. {
  3960. "type": "object",
  3961. "properties": {
  3962. "directory": {
  3963. "anyOf": [
  3964. {
  3965. "type": "string"
  3966. },
  3967. {
  3968. "type": "null"
  3969. }
  3970. ]
  3971. },
  3972. "workspace": {
  3973. "anyOf": [
  3974. {
  3975. "type": "string"
  3976. },
  3977. {
  3978. "type": "null"
  3979. }
  3980. ]
  3981. }
  3982. },
  3983. "additionalProperties": false
  3984. },
  3985. {
  3986. "type": "null"
  3987. }
  3988. ]
  3989. },
  3990. "required": false,
  3991. "style": "deepObject",
  3992. "explode": true
  3993. }
  3994. ],
  3995. "security": [],
  3996. "responses": {
  3997. "200": {
  3998. "description": "Success",
  3999. "content": {
  4000. "application/json": {
  4001. "schema": {
  4002. "type": "object",
  4003. "properties": {
  4004. "location": {
  4005. "$ref": "#/components/schemas/Location.Info"
  4006. },
  4007. "data": {
  4008. "type": "array",
  4009. "items": {
  4010. "$ref": "#/components/schemas/ProviderV2.Info"
  4011. }
  4012. }
  4013. },
  4014. "required": [
  4015. "location",
  4016. "data"
  4017. ],
  4018. "additionalProperties": false
  4019. }
  4020. }
  4021. }
  4022. },
  4023. "400": {
  4024. "description": "InvalidRequestError",
  4025. "content": {
  4026. "application/json": {
  4027. "schema": {
  4028. "$ref": "#/components/schemas/InvalidRequestError"
  4029. }
  4030. }
  4031. }
  4032. },
  4033. "401": {
  4034. "description": "UnauthorizedError",
  4035. "content": {
  4036. "application/json": {
  4037. "schema": {
  4038. "$ref": "#/components/schemas/UnauthorizedError"
  4039. }
  4040. }
  4041. }
  4042. },
  4043. "503": {
  4044. "description": "ServiceUnavailableError",
  4045. "content": {
  4046. "application/json": {
  4047. "schema": {
  4048. "$ref": "#/components/schemas/ServiceUnavailableError"
  4049. }
  4050. }
  4051. }
  4052. }
  4053. },
  4054. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4055. "summary": "List providers"
  4056. }
  4057. },
  4058. "/api/provider/{providerID}": {
  4059. "get": {
  4060. "tags": [
  4061. "provider"
  4062. ],
  4063. "operationId": "v2.provider.get",
  4064. "parameters": [
  4065. {
  4066. "name": "providerID",
  4067. "in": "path",
  4068. "schema": {
  4069. "type": "string"
  4070. },
  4071. "required": true
  4072. },
  4073. {
  4074. "name": "location",
  4075. "in": "query",
  4076. "schema": {
  4077. "anyOf": [
  4078. {
  4079. "type": "object",
  4080. "properties": {
  4081. "directory": {
  4082. "anyOf": [
  4083. {
  4084. "type": "string"
  4085. },
  4086. {
  4087. "type": "null"
  4088. }
  4089. ]
  4090. },
  4091. "workspace": {
  4092. "anyOf": [
  4093. {
  4094. "type": "string"
  4095. },
  4096. {
  4097. "type": "null"
  4098. }
  4099. ]
  4100. }
  4101. },
  4102. "additionalProperties": false
  4103. },
  4104. {
  4105. "type": "null"
  4106. }
  4107. ]
  4108. },
  4109. "required": false,
  4110. "style": "deepObject",
  4111. "explode": true
  4112. }
  4113. ],
  4114. "security": [],
  4115. "responses": {
  4116. "200": {
  4117. "description": "Success",
  4118. "content": {
  4119. "application/json": {
  4120. "schema": {
  4121. "type": "object",
  4122. "properties": {
  4123. "location": {
  4124. "$ref": "#/components/schemas/Location.Info"
  4125. },
  4126. "data": {
  4127. "$ref": "#/components/schemas/ProviderV2.Info"
  4128. }
  4129. },
  4130. "required": [
  4131. "location",
  4132. "data"
  4133. ],
  4134. "additionalProperties": false
  4135. }
  4136. }
  4137. }
  4138. },
  4139. "400": {
  4140. "description": "InvalidRequestError",
  4141. "content": {
  4142. "application/json": {
  4143. "schema": {
  4144. "$ref": "#/components/schemas/InvalidRequestError"
  4145. }
  4146. }
  4147. }
  4148. },
  4149. "401": {
  4150. "description": "UnauthorizedError",
  4151. "content": {
  4152. "application/json": {
  4153. "schema": {
  4154. "$ref": "#/components/schemas/UnauthorizedError"
  4155. }
  4156. }
  4157. }
  4158. },
  4159. "404": {
  4160. "description": "ProviderNotFoundError",
  4161. "content": {
  4162. "application/json": {
  4163. "schema": {
  4164. "$ref": "#/components/schemas/ProviderNotFoundError"
  4165. }
  4166. }
  4167. }
  4168. },
  4169. "503": {
  4170. "description": "ServiceUnavailableError",
  4171. "content": {
  4172. "application/json": {
  4173. "schema": {
  4174. "$ref": "#/components/schemas/ServiceUnavailableError"
  4175. }
  4176. }
  4177. }
  4178. }
  4179. },
  4180. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4181. "summary": "Get provider"
  4182. }
  4183. },
  4184. "/api/integration": {
  4185. "get": {
  4186. "tags": [
  4187. "integration"
  4188. ],
  4189. "operationId": "v2.integration.list",
  4190. "parameters": [
  4191. {
  4192. "name": "location",
  4193. "in": "query",
  4194. "schema": {
  4195. "anyOf": [
  4196. {
  4197. "type": "object",
  4198. "properties": {
  4199. "directory": {
  4200. "anyOf": [
  4201. {
  4202. "type": "string"
  4203. },
  4204. {
  4205. "type": "null"
  4206. }
  4207. ]
  4208. },
  4209. "workspace": {
  4210. "anyOf": [
  4211. {
  4212. "type": "string"
  4213. },
  4214. {
  4215. "type": "null"
  4216. }
  4217. ]
  4218. }
  4219. },
  4220. "additionalProperties": false
  4221. },
  4222. {
  4223. "type": "null"
  4224. }
  4225. ]
  4226. },
  4227. "required": false,
  4228. "style": "deepObject",
  4229. "explode": true
  4230. }
  4231. ],
  4232. "security": [],
  4233. "responses": {
  4234. "200": {
  4235. "description": "Success",
  4236. "content": {
  4237. "application/json": {
  4238. "schema": {
  4239. "type": "object",
  4240. "properties": {
  4241. "location": {
  4242. "$ref": "#/components/schemas/Location.Info"
  4243. },
  4244. "data": {
  4245. "type": "array",
  4246. "items": {
  4247. "$ref": "#/components/schemas/Integration.Info"
  4248. }
  4249. }
  4250. },
  4251. "required": [
  4252. "location",
  4253. "data"
  4254. ],
  4255. "additionalProperties": false
  4256. }
  4257. }
  4258. }
  4259. },
  4260. "400": {
  4261. "description": "InvalidRequestError",
  4262. "content": {
  4263. "application/json": {
  4264. "schema": {
  4265. "$ref": "#/components/schemas/InvalidRequestError"
  4266. }
  4267. }
  4268. }
  4269. },
  4270. "401": {
  4271. "description": "UnauthorizedError",
  4272. "content": {
  4273. "application/json": {
  4274. "schema": {
  4275. "$ref": "#/components/schemas/UnauthorizedError"
  4276. }
  4277. }
  4278. }
  4279. }
  4280. },
  4281. "description": "Retrieve available integrations and their authentication methods.",
  4282. "summary": "List integrations"
  4283. }
  4284. },
  4285. "/api/integration/{integrationID}": {
  4286. "get": {
  4287. "tags": [
  4288. "integration"
  4289. ],
  4290. "operationId": "v2.integration.get",
  4291. "parameters": [
  4292. {
  4293. "name": "integrationID",
  4294. "in": "path",
  4295. "schema": {
  4296. "type": "string"
  4297. },
  4298. "required": true
  4299. },
  4300. {
  4301. "name": "location",
  4302. "in": "query",
  4303. "schema": {
  4304. "anyOf": [
  4305. {
  4306. "type": "object",
  4307. "properties": {
  4308. "directory": {
  4309. "anyOf": [
  4310. {
  4311. "type": "string"
  4312. },
  4313. {
  4314. "type": "null"
  4315. }
  4316. ]
  4317. },
  4318. "workspace": {
  4319. "anyOf": [
  4320. {
  4321. "type": "string"
  4322. },
  4323. {
  4324. "type": "null"
  4325. }
  4326. ]
  4327. }
  4328. },
  4329. "additionalProperties": false
  4330. },
  4331. {
  4332. "type": "null"
  4333. }
  4334. ]
  4335. },
  4336. "required": false,
  4337. "style": "deepObject",
  4338. "explode": true
  4339. }
  4340. ],
  4341. "security": [],
  4342. "responses": {
  4343. "200": {
  4344. "description": "Success",
  4345. "content": {
  4346. "application/json": {
  4347. "schema": {
  4348. "type": "object",
  4349. "properties": {
  4350. "location": {
  4351. "$ref": "#/components/schemas/Location.Info"
  4352. },
  4353. "data": {
  4354. "anyOf": [
  4355. {
  4356. "$ref": "#/components/schemas/Integration.Info"
  4357. },
  4358. {
  4359. "type": "null"
  4360. }
  4361. ]
  4362. }
  4363. },
  4364. "required": [
  4365. "location",
  4366. "data"
  4367. ],
  4368. "additionalProperties": false
  4369. }
  4370. }
  4371. }
  4372. },
  4373. "400": {
  4374. "description": "InvalidRequestError",
  4375. "content": {
  4376. "application/json": {
  4377. "schema": {
  4378. "$ref": "#/components/schemas/InvalidRequestError"
  4379. }
  4380. }
  4381. }
  4382. },
  4383. "401": {
  4384. "description": "UnauthorizedError",
  4385. "content": {
  4386. "application/json": {
  4387. "schema": {
  4388. "$ref": "#/components/schemas/UnauthorizedError"
  4389. }
  4390. }
  4391. }
  4392. }
  4393. },
  4394. "description": "Retrieve one integration and its authentication methods.",
  4395. "summary": "Get integration"
  4396. }
  4397. },
  4398. "/api/integration/{integrationID}/connect/key": {
  4399. "post": {
  4400. "tags": [
  4401. "integration"
  4402. ],
  4403. "operationId": "v2.integration.connect.key",
  4404. "parameters": [
  4405. {
  4406. "name": "integrationID",
  4407. "in": "path",
  4408. "schema": {
  4409. "type": "string"
  4410. },
  4411. "required": true
  4412. },
  4413. {
  4414. "name": "location",
  4415. "in": "query",
  4416. "schema": {
  4417. "anyOf": [
  4418. {
  4419. "type": "object",
  4420. "properties": {
  4421. "directory": {
  4422. "anyOf": [
  4423. {
  4424. "type": "string"
  4425. },
  4426. {
  4427. "type": "null"
  4428. }
  4429. ]
  4430. },
  4431. "workspace": {
  4432. "anyOf": [
  4433. {
  4434. "type": "string"
  4435. },
  4436. {
  4437. "type": "null"
  4438. }
  4439. ]
  4440. }
  4441. },
  4442. "additionalProperties": false
  4443. },
  4444. {
  4445. "type": "null"
  4446. }
  4447. ]
  4448. },
  4449. "required": false,
  4450. "style": "deepObject",
  4451. "explode": true
  4452. }
  4453. ],
  4454. "security": [],
  4455. "responses": {
  4456. "204": {
  4457. "description": "<No Content>"
  4458. },
  4459. "400": {
  4460. "description": "InvalidRequestError",
  4461. "content": {
  4462. "application/json": {
  4463. "schema": {
  4464. "anyOf": [
  4465. {
  4466. "$ref": "#/components/schemas/InvalidRequestError1"
  4467. },
  4468. {
  4469. "$ref": "#/components/schemas/InvalidRequestError"
  4470. }
  4471. ]
  4472. }
  4473. }
  4474. }
  4475. },
  4476. "401": {
  4477. "description": "UnauthorizedError",
  4478. "content": {
  4479. "application/json": {
  4480. "schema": {
  4481. "$ref": "#/components/schemas/UnauthorizedError"
  4482. }
  4483. }
  4484. }
  4485. }
  4486. },
  4487. "description": "Run a key authentication method and store the resulting credential.",
  4488. "summary": "Connect with key",
  4489. "requestBody": {
  4490. "content": {
  4491. "application/json": {
  4492. "schema": {
  4493. "type": "object",
  4494. "properties": {
  4495. "key": {
  4496. "type": "string"
  4497. },
  4498. "label": {
  4499. "anyOf": [
  4500. {
  4501. "type": "string"
  4502. },
  4503. {
  4504. "type": "null"
  4505. }
  4506. ]
  4507. }
  4508. },
  4509. "required": [
  4510. "key"
  4511. ],
  4512. "additionalProperties": false
  4513. }
  4514. }
  4515. },
  4516. "required": true
  4517. }
  4518. }
  4519. },
  4520. "/api/integration/{integrationID}/connect/oauth": {
  4521. "post": {
  4522. "tags": [
  4523. "integration"
  4524. ],
  4525. "operationId": "v2.integration.connect.oauth",
  4526. "parameters": [
  4527. {
  4528. "name": "integrationID",
  4529. "in": "path",
  4530. "schema": {
  4531. "type": "string"
  4532. },
  4533. "required": true
  4534. },
  4535. {
  4536. "name": "location",
  4537. "in": "query",
  4538. "schema": {
  4539. "anyOf": [
  4540. {
  4541. "type": "object",
  4542. "properties": {
  4543. "directory": {
  4544. "anyOf": [
  4545. {
  4546. "type": "string"
  4547. },
  4548. {
  4549. "type": "null"
  4550. }
  4551. ]
  4552. },
  4553. "workspace": {
  4554. "anyOf": [
  4555. {
  4556. "type": "string"
  4557. },
  4558. {
  4559. "type": "null"
  4560. }
  4561. ]
  4562. }
  4563. },
  4564. "additionalProperties": false
  4565. },
  4566. {
  4567. "type": "null"
  4568. }
  4569. ]
  4570. },
  4571. "required": false,
  4572. "style": "deepObject",
  4573. "explode": true
  4574. }
  4575. ],
  4576. "security": [],
  4577. "responses": {
  4578. "200": {
  4579. "description": "Success",
  4580. "content": {
  4581. "application/json": {
  4582. "schema": {
  4583. "type": "object",
  4584. "properties": {
  4585. "location": {
  4586. "$ref": "#/components/schemas/Location.Info"
  4587. },
  4588. "data": {
  4589. "$ref": "#/components/schemas/Integration.Attempt"
  4590. }
  4591. },
  4592. "required": [
  4593. "location",
  4594. "data"
  4595. ],
  4596. "additionalProperties": false
  4597. }
  4598. }
  4599. }
  4600. },
  4601. "400": {
  4602. "description": "InvalidRequestError",
  4603. "content": {
  4604. "application/json": {
  4605. "schema": {
  4606. "anyOf": [
  4607. {
  4608. "$ref": "#/components/schemas/InvalidRequestError1"
  4609. },
  4610. {
  4611. "$ref": "#/components/schemas/InvalidRequestError"
  4612. }
  4613. ]
  4614. }
  4615. }
  4616. }
  4617. },
  4618. "401": {
  4619. "description": "UnauthorizedError",
  4620. "content": {
  4621. "application/json": {
  4622. "schema": {
  4623. "$ref": "#/components/schemas/UnauthorizedError"
  4624. }
  4625. }
  4626. }
  4627. }
  4628. },
  4629. "description": "Start an OAuth attempt and return the authorization details.",
  4630. "summary": "Begin OAuth connection",
  4631. "requestBody": {
  4632. "content": {
  4633. "application/json": {
  4634. "schema": {
  4635. "type": "object",
  4636. "properties": {
  4637. "methodID": {
  4638. "type": "string"
  4639. },
  4640. "inputs": {
  4641. "type": "object",
  4642. "additionalProperties": {
  4643. "type": "string"
  4644. }
  4645. },
  4646. "label": {
  4647. "anyOf": [
  4648. {
  4649. "type": "string"
  4650. },
  4651. {
  4652. "type": "null"
  4653. }
  4654. ]
  4655. }
  4656. },
  4657. "required": [
  4658. "methodID",
  4659. "inputs"
  4660. ],
  4661. "additionalProperties": false
  4662. }
  4663. }
  4664. },
  4665. "required": true
  4666. }
  4667. }
  4668. },
  4669. "/api/integration/attempt/{attemptID}": {
  4670. "get": {
  4671. "tags": [
  4672. "integration"
  4673. ],
  4674. "operationId": "v2.integration.attempt.status",
  4675. "parameters": [
  4676. {
  4677. "name": "attemptID",
  4678. "in": "path",
  4679. "schema": {
  4680. "type": "string"
  4681. },
  4682. "required": true
  4683. },
  4684. {
  4685. "name": "location",
  4686. "in": "query",
  4687. "schema": {
  4688. "anyOf": [
  4689. {
  4690. "type": "object",
  4691. "properties": {
  4692. "directory": {
  4693. "anyOf": [
  4694. {
  4695. "type": "string"
  4696. },
  4697. {
  4698. "type": "null"
  4699. }
  4700. ]
  4701. },
  4702. "workspace": {
  4703. "anyOf": [
  4704. {
  4705. "type": "string"
  4706. },
  4707. {
  4708. "type": "null"
  4709. }
  4710. ]
  4711. }
  4712. },
  4713. "additionalProperties": false
  4714. },
  4715. {
  4716. "type": "null"
  4717. }
  4718. ]
  4719. },
  4720. "required": false,
  4721. "style": "deepObject",
  4722. "explode": true
  4723. }
  4724. ],
  4725. "security": [],
  4726. "responses": {
  4727. "200": {
  4728. "description": "Success",
  4729. "content": {
  4730. "application/json": {
  4731. "schema": {
  4732. "type": "object",
  4733. "properties": {
  4734. "location": {
  4735. "$ref": "#/components/schemas/Location.Info"
  4736. },
  4737. "data": {
  4738. "$ref": "#/components/schemas/Integration.AttemptStatus"
  4739. }
  4740. },
  4741. "required": [
  4742. "location",
  4743. "data"
  4744. ],
  4745. "additionalProperties": false
  4746. }
  4747. }
  4748. }
  4749. },
  4750. "400": {
  4751. "description": "InvalidRequestError",
  4752. "content": {
  4753. "application/json": {
  4754. "schema": {
  4755. "$ref": "#/components/schemas/InvalidRequestError"
  4756. }
  4757. }
  4758. }
  4759. },
  4760. "401": {
  4761. "description": "UnauthorizedError",
  4762. "content": {
  4763. "application/json": {
  4764. "schema": {
  4765. "$ref": "#/components/schemas/UnauthorizedError"
  4766. }
  4767. }
  4768. }
  4769. }
  4770. },
  4771. "description": "Poll the current status of an OAuth attempt.",
  4772. "summary": "Get OAuth attempt status"
  4773. },
  4774. "delete": {
  4775. "tags": [
  4776. "integration"
  4777. ],
  4778. "operationId": "v2.integration.attempt.cancel",
  4779. "parameters": [
  4780. {
  4781. "name": "attemptID",
  4782. "in": "path",
  4783. "schema": {
  4784. "type": "string"
  4785. },
  4786. "required": true
  4787. },
  4788. {
  4789. "name": "location",
  4790. "in": "query",
  4791. "schema": {
  4792. "anyOf": [
  4793. {
  4794. "type": "object",
  4795. "properties": {
  4796. "directory": {
  4797. "anyOf": [
  4798. {
  4799. "type": "string"
  4800. },
  4801. {
  4802. "type": "null"
  4803. }
  4804. ]
  4805. },
  4806. "workspace": {
  4807. "anyOf": [
  4808. {
  4809. "type": "string"
  4810. },
  4811. {
  4812. "type": "null"
  4813. }
  4814. ]
  4815. }
  4816. },
  4817. "additionalProperties": false
  4818. },
  4819. {
  4820. "type": "null"
  4821. }
  4822. ]
  4823. },
  4824. "required": false,
  4825. "style": "deepObject",
  4826. "explode": true
  4827. }
  4828. ],
  4829. "security": [],
  4830. "responses": {
  4831. "204": {
  4832. "description": "<No Content>"
  4833. },
  4834. "400": {
  4835. "description": "InvalidRequestError",
  4836. "content": {
  4837. "application/json": {
  4838. "schema": {
  4839. "$ref": "#/components/schemas/InvalidRequestError"
  4840. }
  4841. }
  4842. }
  4843. },
  4844. "401": {
  4845. "description": "UnauthorizedError",
  4846. "content": {
  4847. "application/json": {
  4848. "schema": {
  4849. "$ref": "#/components/schemas/UnauthorizedError"
  4850. }
  4851. }
  4852. }
  4853. }
  4854. },
  4855. "description": "Cancel an OAuth attempt and release its resources.",
  4856. "summary": "Cancel OAuth connection"
  4857. }
  4858. },
  4859. "/api/integration/attempt/{attemptID}/complete": {
  4860. "post": {
  4861. "tags": [
  4862. "integration"
  4863. ],
  4864. "operationId": "v2.integration.attempt.complete",
  4865. "parameters": [
  4866. {
  4867. "name": "attemptID",
  4868. "in": "path",
  4869. "schema": {
  4870. "type": "string"
  4871. },
  4872. "required": true
  4873. },
  4874. {
  4875. "name": "location",
  4876. "in": "query",
  4877. "schema": {
  4878. "anyOf": [
  4879. {
  4880. "type": "object",
  4881. "properties": {
  4882. "directory": {
  4883. "anyOf": [
  4884. {
  4885. "type": "string"
  4886. },
  4887. {
  4888. "type": "null"
  4889. }
  4890. ]
  4891. },
  4892. "workspace": {
  4893. "anyOf": [
  4894. {
  4895. "type": "string"
  4896. },
  4897. {
  4898. "type": "null"
  4899. }
  4900. ]
  4901. }
  4902. },
  4903. "additionalProperties": false
  4904. },
  4905. {
  4906. "type": "null"
  4907. }
  4908. ]
  4909. },
  4910. "required": false,
  4911. "style": "deepObject",
  4912. "explode": true
  4913. }
  4914. ],
  4915. "security": [],
  4916. "responses": {
  4917. "204": {
  4918. "description": "<No Content>"
  4919. },
  4920. "400": {
  4921. "description": "InvalidRequestError",
  4922. "content": {
  4923. "application/json": {
  4924. "schema": {
  4925. "anyOf": [
  4926. {
  4927. "$ref": "#/components/schemas/InvalidRequestError1"
  4928. },
  4929. {
  4930. "$ref": "#/components/schemas/InvalidRequestError"
  4931. }
  4932. ]
  4933. }
  4934. }
  4935. }
  4936. },
  4937. "401": {
  4938. "description": "UnauthorizedError",
  4939. "content": {
  4940. "application/json": {
  4941. "schema": {
  4942. "$ref": "#/components/schemas/UnauthorizedError"
  4943. }
  4944. }
  4945. }
  4946. }
  4947. },
  4948. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  4949. "summary": "Complete OAuth connection",
  4950. "requestBody": {
  4951. "content": {
  4952. "application/json": {
  4953. "schema": {
  4954. "type": "object",
  4955. "properties": {
  4956. "code": {
  4957. "anyOf": [
  4958. {
  4959. "type": "string"
  4960. },
  4961. {
  4962. "type": "null"
  4963. }
  4964. ]
  4965. }
  4966. },
  4967. "additionalProperties": false
  4968. }
  4969. }
  4970. },
  4971. "required": true
  4972. }
  4973. }
  4974. },
  4975. "/api/mcp": {
  4976. "get": {
  4977. "tags": [
  4978. "mcp"
  4979. ],
  4980. "operationId": "v2.mcp.list",
  4981. "parameters": [
  4982. {
  4983. "name": "location",
  4984. "in": "query",
  4985. "schema": {
  4986. "anyOf": [
  4987. {
  4988. "type": "object",
  4989. "properties": {
  4990. "directory": {
  4991. "anyOf": [
  4992. {
  4993. "type": "string"
  4994. },
  4995. {
  4996. "type": "null"
  4997. }
  4998. ]
  4999. },
  5000. "workspace": {
  5001. "anyOf": [
  5002. {
  5003. "type": "string"
  5004. },
  5005. {
  5006. "type": "null"
  5007. }
  5008. ]
  5009. }
  5010. },
  5011. "additionalProperties": false
  5012. },
  5013. {
  5014. "type": "null"
  5015. }
  5016. ]
  5017. },
  5018. "required": false,
  5019. "style": "deepObject",
  5020. "explode": true
  5021. }
  5022. ],
  5023. "security": [],
  5024. "responses": {
  5025. "200": {
  5026. "description": "Success",
  5027. "content": {
  5028. "application/json": {
  5029. "schema": {
  5030. "type": "object",
  5031. "properties": {
  5032. "location": {
  5033. "$ref": "#/components/schemas/Location.Info"
  5034. },
  5035. "data": {
  5036. "type": "array",
  5037. "items": {
  5038. "$ref": "#/components/schemas/Mcp.Server"
  5039. }
  5040. }
  5041. },
  5042. "required": [
  5043. "location",
  5044. "data"
  5045. ],
  5046. "additionalProperties": false
  5047. }
  5048. }
  5049. }
  5050. },
  5051. "400": {
  5052. "description": "InvalidRequestError",
  5053. "content": {
  5054. "application/json": {
  5055. "schema": {
  5056. "$ref": "#/components/schemas/InvalidRequestError"
  5057. }
  5058. }
  5059. }
  5060. },
  5061. "401": {
  5062. "description": "UnauthorizedError",
  5063. "content": {
  5064. "application/json": {
  5065. "schema": {
  5066. "$ref": "#/components/schemas/UnauthorizedError"
  5067. }
  5068. }
  5069. }
  5070. }
  5071. },
  5072. "description": "Retrieve configured MCP servers and their connection status.",
  5073. "summary": "List MCP servers"
  5074. }
  5075. },
  5076. "/api/mcp/resource": {
  5077. "get": {
  5078. "tags": [
  5079. "mcp"
  5080. ],
  5081. "operationId": "v2.mcp.resource.catalog",
  5082. "parameters": [
  5083. {
  5084. "name": "location",
  5085. "in": "query",
  5086. "schema": {
  5087. "anyOf": [
  5088. {
  5089. "type": "object",
  5090. "properties": {
  5091. "directory": {
  5092. "anyOf": [
  5093. {
  5094. "type": "string"
  5095. },
  5096. {
  5097. "type": "null"
  5098. }
  5099. ]
  5100. },
  5101. "workspace": {
  5102. "anyOf": [
  5103. {
  5104. "type": "string"
  5105. },
  5106. {
  5107. "type": "null"
  5108. }
  5109. ]
  5110. }
  5111. },
  5112. "additionalProperties": false
  5113. },
  5114. {
  5115. "type": "null"
  5116. }
  5117. ]
  5118. },
  5119. "required": false,
  5120. "style": "deepObject",
  5121. "explode": true
  5122. }
  5123. ],
  5124. "security": [],
  5125. "responses": {
  5126. "200": {
  5127. "description": "Success",
  5128. "content": {
  5129. "application/json": {
  5130. "schema": {
  5131. "type": "object",
  5132. "properties": {
  5133. "location": {
  5134. "$ref": "#/components/schemas/Location.Info"
  5135. },
  5136. "data": {
  5137. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  5138. }
  5139. },
  5140. "required": [
  5141. "location",
  5142. "data"
  5143. ],
  5144. "additionalProperties": false
  5145. }
  5146. }
  5147. }
  5148. },
  5149. "400": {
  5150. "description": "InvalidRequestError",
  5151. "content": {
  5152. "application/json": {
  5153. "schema": {
  5154. "$ref": "#/components/schemas/InvalidRequestError"
  5155. }
  5156. }
  5157. }
  5158. },
  5159. "401": {
  5160. "description": "UnauthorizedError",
  5161. "content": {
  5162. "application/json": {
  5163. "schema": {
  5164. "$ref": "#/components/schemas/UnauthorizedError"
  5165. }
  5166. }
  5167. }
  5168. }
  5169. },
  5170. "description": "Retrieve resources and resource templates from connected MCP servers.",
  5171. "summary": "List MCP resources"
  5172. }
  5173. },
  5174. "/api/credential/{credentialID}": {
  5175. "patch": {
  5176. "tags": [
  5177. "credential"
  5178. ],
  5179. "operationId": "v2.credential.update",
  5180. "parameters": [
  5181. {
  5182. "name": "credentialID",
  5183. "in": "path",
  5184. "schema": {
  5185. "type": "string"
  5186. },
  5187. "required": true
  5188. },
  5189. {
  5190. "name": "location",
  5191. "in": "query",
  5192. "schema": {
  5193. "anyOf": [
  5194. {
  5195. "type": "object",
  5196. "properties": {
  5197. "directory": {
  5198. "anyOf": [
  5199. {
  5200. "type": "string"
  5201. },
  5202. {
  5203. "type": "null"
  5204. }
  5205. ]
  5206. },
  5207. "workspace": {
  5208. "anyOf": [
  5209. {
  5210. "type": "string"
  5211. },
  5212. {
  5213. "type": "null"
  5214. }
  5215. ]
  5216. }
  5217. },
  5218. "additionalProperties": false
  5219. },
  5220. {
  5221. "type": "null"
  5222. }
  5223. ]
  5224. },
  5225. "required": false,
  5226. "style": "deepObject",
  5227. "explode": true
  5228. }
  5229. ],
  5230. "security": [],
  5231. "responses": {
  5232. "204": {
  5233. "description": "<No Content>"
  5234. },
  5235. "400": {
  5236. "description": "InvalidRequestError",
  5237. "content": {
  5238. "application/json": {
  5239. "schema": {
  5240. "$ref": "#/components/schemas/InvalidRequestError"
  5241. }
  5242. }
  5243. }
  5244. },
  5245. "401": {
  5246. "description": "UnauthorizedError",
  5247. "content": {
  5248. "application/json": {
  5249. "schema": {
  5250. "$ref": "#/components/schemas/UnauthorizedError"
  5251. }
  5252. }
  5253. }
  5254. }
  5255. },
  5256. "description": "Update a stored credential label.",
  5257. "summary": "Update credential",
  5258. "requestBody": {
  5259. "content": {
  5260. "application/json": {
  5261. "schema": {
  5262. "type": "object",
  5263. "properties": {
  5264. "label": {
  5265. "type": "string"
  5266. }
  5267. },
  5268. "required": [
  5269. "label"
  5270. ],
  5271. "additionalProperties": false
  5272. }
  5273. }
  5274. },
  5275. "required": true
  5276. }
  5277. },
  5278. "delete": {
  5279. "tags": [
  5280. "credential"
  5281. ],
  5282. "operationId": "v2.credential.remove",
  5283. "parameters": [
  5284. {
  5285. "name": "credentialID",
  5286. "in": "path",
  5287. "schema": {
  5288. "type": "string"
  5289. },
  5290. "required": true
  5291. },
  5292. {
  5293. "name": "location",
  5294. "in": "query",
  5295. "schema": {
  5296. "anyOf": [
  5297. {
  5298. "type": "object",
  5299. "properties": {
  5300. "directory": {
  5301. "anyOf": [
  5302. {
  5303. "type": "string"
  5304. },
  5305. {
  5306. "type": "null"
  5307. }
  5308. ]
  5309. },
  5310. "workspace": {
  5311. "anyOf": [
  5312. {
  5313. "type": "string"
  5314. },
  5315. {
  5316. "type": "null"
  5317. }
  5318. ]
  5319. }
  5320. },
  5321. "additionalProperties": false
  5322. },
  5323. {
  5324. "type": "null"
  5325. }
  5326. ]
  5327. },
  5328. "required": false,
  5329. "style": "deepObject",
  5330. "explode": true
  5331. }
  5332. ],
  5333. "security": [],
  5334. "responses": {
  5335. "204": {
  5336. "description": "<No Content>"
  5337. },
  5338. "400": {
  5339. "description": "InvalidRequestError",
  5340. "content": {
  5341. "application/json": {
  5342. "schema": {
  5343. "$ref": "#/components/schemas/InvalidRequestError"
  5344. }
  5345. }
  5346. }
  5347. },
  5348. "401": {
  5349. "description": "UnauthorizedError",
  5350. "content": {
  5351. "application/json": {
  5352. "schema": {
  5353. "$ref": "#/components/schemas/UnauthorizedError"
  5354. }
  5355. }
  5356. }
  5357. }
  5358. },
  5359. "description": "Remove a stored integration credential.",
  5360. "summary": "Remove credential"
  5361. }
  5362. },
  5363. "/api/project": {
  5364. "get": {
  5365. "tags": [
  5366. "project"
  5367. ],
  5368. "operationId": "v2.project.list",
  5369. "parameters": [],
  5370. "security": [],
  5371. "responses": {
  5372. "200": {
  5373. "description": "Success",
  5374. "content": {
  5375. "application/json": {
  5376. "schema": {
  5377. "type": "array",
  5378. "items": {
  5379. "$ref": "#/components/schemas/Project"
  5380. }
  5381. }
  5382. }
  5383. }
  5384. },
  5385. "400": {
  5386. "description": "InvalidRequestError",
  5387. "content": {
  5388. "application/json": {
  5389. "schema": {
  5390. "$ref": "#/components/schemas/InvalidRequestError"
  5391. }
  5392. }
  5393. }
  5394. },
  5395. "401": {
  5396. "description": "UnauthorizedError",
  5397. "content": {
  5398. "application/json": {
  5399. "schema": {
  5400. "$ref": "#/components/schemas/UnauthorizedError"
  5401. }
  5402. }
  5403. }
  5404. }
  5405. },
  5406. "description": "List known projects.",
  5407. "summary": "List projects"
  5408. }
  5409. },
  5410. "/api/project/current": {
  5411. "get": {
  5412. "tags": [
  5413. "project"
  5414. ],
  5415. "operationId": "v2.project.current",
  5416. "parameters": [
  5417. {
  5418. "name": "location",
  5419. "in": "query",
  5420. "schema": {
  5421. "anyOf": [
  5422. {
  5423. "type": "object",
  5424. "properties": {
  5425. "directory": {
  5426. "anyOf": [
  5427. {
  5428. "type": "string"
  5429. },
  5430. {
  5431. "type": "null"
  5432. }
  5433. ]
  5434. },
  5435. "workspace": {
  5436. "anyOf": [
  5437. {
  5438. "type": "string"
  5439. },
  5440. {
  5441. "type": "null"
  5442. }
  5443. ]
  5444. }
  5445. },
  5446. "additionalProperties": false
  5447. },
  5448. {
  5449. "type": "null"
  5450. }
  5451. ]
  5452. },
  5453. "required": false,
  5454. "style": "deepObject",
  5455. "explode": true
  5456. }
  5457. ],
  5458. "security": [],
  5459. "responses": {
  5460. "200": {
  5461. "description": "Project.Current",
  5462. "content": {
  5463. "application/json": {
  5464. "schema": {
  5465. "$ref": "#/components/schemas/Project.Current"
  5466. }
  5467. }
  5468. }
  5469. },
  5470. "400": {
  5471. "description": "InvalidRequestError",
  5472. "content": {
  5473. "application/json": {
  5474. "schema": {
  5475. "$ref": "#/components/schemas/InvalidRequestError"
  5476. }
  5477. }
  5478. }
  5479. },
  5480. "401": {
  5481. "description": "UnauthorizedError",
  5482. "content": {
  5483. "application/json": {
  5484. "schema": {
  5485. "$ref": "#/components/schemas/UnauthorizedError"
  5486. }
  5487. }
  5488. }
  5489. }
  5490. },
  5491. "description": "Resolve the project for the requested location.",
  5492. "summary": "Get current project"
  5493. }
  5494. },
  5495. "/api/project/{projectID}/directories": {
  5496. "get": {
  5497. "tags": [
  5498. "project"
  5499. ],
  5500. "operationId": "v2.project.directories",
  5501. "parameters": [
  5502. {
  5503. "name": "projectID",
  5504. "in": "path",
  5505. "schema": {
  5506. "type": "string"
  5507. },
  5508. "required": true
  5509. },
  5510. {
  5511. "name": "location",
  5512. "in": "query",
  5513. "schema": {
  5514. "anyOf": [
  5515. {
  5516. "type": "object",
  5517. "properties": {
  5518. "directory": {
  5519. "anyOf": [
  5520. {
  5521. "type": "string"
  5522. },
  5523. {
  5524. "type": "null"
  5525. }
  5526. ]
  5527. },
  5528. "workspace": {
  5529. "anyOf": [
  5530. {
  5531. "type": "string"
  5532. },
  5533. {
  5534. "type": "null"
  5535. }
  5536. ]
  5537. }
  5538. },
  5539. "additionalProperties": false
  5540. },
  5541. {
  5542. "type": "null"
  5543. }
  5544. ]
  5545. },
  5546. "required": false,
  5547. "style": "deepObject",
  5548. "explode": true
  5549. }
  5550. ],
  5551. "security": [],
  5552. "responses": {
  5553. "200": {
  5554. "description": "Project.Directories",
  5555. "content": {
  5556. "application/json": {
  5557. "schema": {
  5558. "$ref": "#/components/schemas/Project.Directories"
  5559. }
  5560. }
  5561. }
  5562. },
  5563. "400": {
  5564. "description": "InvalidRequestError",
  5565. "content": {
  5566. "application/json": {
  5567. "schema": {
  5568. "$ref": "#/components/schemas/InvalidRequestError"
  5569. }
  5570. }
  5571. }
  5572. },
  5573. "401": {
  5574. "description": "UnauthorizedError",
  5575. "content": {
  5576. "application/json": {
  5577. "schema": {
  5578. "$ref": "#/components/schemas/UnauthorizedError"
  5579. }
  5580. }
  5581. }
  5582. }
  5583. },
  5584. "description": "List known local absolute directories for a project.",
  5585. "summary": "List project directories"
  5586. }
  5587. },
  5588. "/api/form/request": {
  5589. "get": {
  5590. "tags": [
  5591. "form"
  5592. ],
  5593. "operationId": "v2.form.request.list",
  5594. "parameters": [
  5595. {
  5596. "name": "location",
  5597. "in": "query",
  5598. "schema": {
  5599. "anyOf": [
  5600. {
  5601. "type": "object",
  5602. "properties": {
  5603. "directory": {
  5604. "anyOf": [
  5605. {
  5606. "type": "string"
  5607. },
  5608. {
  5609. "type": "null"
  5610. }
  5611. ]
  5612. },
  5613. "workspace": {
  5614. "anyOf": [
  5615. {
  5616. "type": "string"
  5617. },
  5618. {
  5619. "type": "null"
  5620. }
  5621. ]
  5622. }
  5623. },
  5624. "additionalProperties": false
  5625. },
  5626. {
  5627. "type": "null"
  5628. }
  5629. ]
  5630. },
  5631. "required": false,
  5632. "style": "deepObject",
  5633. "explode": true
  5634. }
  5635. ],
  5636. "security": [],
  5637. "responses": {
  5638. "200": {
  5639. "description": "Success",
  5640. "content": {
  5641. "application/json": {
  5642. "schema": {
  5643. "type": "object",
  5644. "properties": {
  5645. "location": {
  5646. "$ref": "#/components/schemas/Location.Info"
  5647. },
  5648. "data": {
  5649. "type": "array",
  5650. "items": {
  5651. "anyOf": [
  5652. {
  5653. "$ref": "#/components/schemas/Form.FormInfo"
  5654. },
  5655. {
  5656. "$ref": "#/components/schemas/Form.UrlInfo"
  5657. }
  5658. ]
  5659. }
  5660. }
  5661. },
  5662. "required": [
  5663. "location",
  5664. "data"
  5665. ],
  5666. "additionalProperties": false
  5667. }
  5668. }
  5669. }
  5670. },
  5671. "400": {
  5672. "description": "InvalidRequestError",
  5673. "content": {
  5674. "application/json": {
  5675. "schema": {
  5676. "$ref": "#/components/schemas/InvalidRequestError"
  5677. }
  5678. }
  5679. }
  5680. },
  5681. "401": {
  5682. "description": "UnauthorizedError",
  5683. "content": {
  5684. "application/json": {
  5685. "schema": {
  5686. "$ref": "#/components/schemas/UnauthorizedError"
  5687. }
  5688. }
  5689. }
  5690. }
  5691. },
  5692. "description": "Retrieve pending forms for a location.",
  5693. "summary": "List pending form requests"
  5694. }
  5695. },
  5696. "/api/session/{sessionID}/form": {
  5697. "get": {
  5698. "tags": [
  5699. "form"
  5700. ],
  5701. "operationId": "v2.session.form.list",
  5702. "parameters": [
  5703. {
  5704. "name": "sessionID",
  5705. "in": "path",
  5706. "schema": {
  5707. "type": "string"
  5708. },
  5709. "required": true
  5710. }
  5711. ],
  5712. "security": [],
  5713. "responses": {
  5714. "200": {
  5715. "description": "Success",
  5716. "content": {
  5717. "application/json": {
  5718. "schema": {
  5719. "type": "object",
  5720. "properties": {
  5721. "data": {
  5722. "type": "array",
  5723. "items": {
  5724. "anyOf": [
  5725. {
  5726. "$ref": "#/components/schemas/Form.FormInfo"
  5727. },
  5728. {
  5729. "$ref": "#/components/schemas/Form.UrlInfo"
  5730. }
  5731. ]
  5732. }
  5733. }
  5734. },
  5735. "required": [
  5736. "data"
  5737. ],
  5738. "additionalProperties": false
  5739. }
  5740. }
  5741. }
  5742. },
  5743. "400": {
  5744. "description": "InvalidRequestError",
  5745. "content": {
  5746. "application/json": {
  5747. "schema": {
  5748. "$ref": "#/components/schemas/InvalidRequestError"
  5749. }
  5750. }
  5751. }
  5752. },
  5753. "401": {
  5754. "description": "UnauthorizedError",
  5755. "content": {
  5756. "application/json": {
  5757. "schema": {
  5758. "$ref": "#/components/schemas/UnauthorizedError"
  5759. }
  5760. }
  5761. }
  5762. },
  5763. "404": {
  5764. "description": "SessionNotFoundError",
  5765. "content": {
  5766. "application/json": {
  5767. "schema": {
  5768. "anyOf": [
  5769. {
  5770. "$ref": "#/components/schemas/SessionNotFoundError"
  5771. },
  5772. {
  5773. "$ref": "#/components/schemas/SessionNotFoundError"
  5774. }
  5775. ]
  5776. }
  5777. }
  5778. }
  5779. }
  5780. },
  5781. "description": "Retrieve pending forms for a session.",
  5782. "summary": "List session forms"
  5783. },
  5784. "post": {
  5785. "tags": [
  5786. "form"
  5787. ],
  5788. "operationId": "v2.session.form.create",
  5789. "parameters": [
  5790. {
  5791. "name": "sessionID",
  5792. "in": "path",
  5793. "schema": {
  5794. "type": "string"
  5795. },
  5796. "required": true
  5797. }
  5798. ],
  5799. "security": [],
  5800. "responses": {
  5801. "200": {
  5802. "description": "Success",
  5803. "content": {
  5804. "application/json": {
  5805. "schema": {
  5806. "type": "object",
  5807. "properties": {
  5808. "data": {
  5809. "anyOf": [
  5810. {
  5811. "$ref": "#/components/schemas/Form.FormInfo"
  5812. },
  5813. {
  5814. "$ref": "#/components/schemas/Form.UrlInfo"
  5815. }
  5816. ]
  5817. }
  5818. },
  5819. "required": [
  5820. "data"
  5821. ],
  5822. "additionalProperties": false
  5823. }
  5824. }
  5825. }
  5826. },
  5827. "400": {
  5828. "description": "InvalidRequestError",
  5829. "content": {
  5830. "application/json": {
  5831. "schema": {
  5832. "anyOf": [
  5833. {
  5834. "$ref": "#/components/schemas/InvalidRequestError1"
  5835. },
  5836. {
  5837. "$ref": "#/components/schemas/InvalidRequestError"
  5838. }
  5839. ]
  5840. }
  5841. }
  5842. }
  5843. },
  5844. "401": {
  5845. "description": "UnauthorizedError",
  5846. "content": {
  5847. "application/json": {
  5848. "schema": {
  5849. "$ref": "#/components/schemas/UnauthorizedError"
  5850. }
  5851. }
  5852. }
  5853. },
  5854. "404": {
  5855. "description": "SessionNotFoundError",
  5856. "content": {
  5857. "application/json": {
  5858. "schema": {
  5859. "anyOf": [
  5860. {
  5861. "$ref": "#/components/schemas/SessionNotFoundError"
  5862. },
  5863. {
  5864. "$ref": "#/components/schemas/SessionNotFoundError"
  5865. }
  5866. ]
  5867. }
  5868. }
  5869. }
  5870. },
  5871. "409": {
  5872. "description": "ConflictError",
  5873. "content": {
  5874. "application/json": {
  5875. "schema": {
  5876. "$ref": "#/components/schemas/ConflictError"
  5877. }
  5878. }
  5879. }
  5880. }
  5881. },
  5882. "description": "Create a form for a session.",
  5883. "summary": "Create session form",
  5884. "requestBody": {
  5885. "content": {
  5886. "application/json": {
  5887. "schema": {
  5888. "$ref": "#/components/schemas/Form.CreatePayload"
  5889. }
  5890. }
  5891. },
  5892. "required": true
  5893. }
  5894. }
  5895. },
  5896. "/api/session/{sessionID}/form/{formID}": {
  5897. "get": {
  5898. "tags": [
  5899. "form"
  5900. ],
  5901. "operationId": "v2.session.form.get",
  5902. "parameters": [
  5903. {
  5904. "name": "sessionID",
  5905. "in": "path",
  5906. "schema": {
  5907. "type": "string"
  5908. },
  5909. "required": true
  5910. },
  5911. {
  5912. "name": "formID",
  5913. "in": "path",
  5914. "schema": {
  5915. "type": "string",
  5916. "allOf": [
  5917. {
  5918. "pattern": "^frm_"
  5919. }
  5920. ]
  5921. },
  5922. "required": true
  5923. }
  5924. ],
  5925. "security": [],
  5926. "responses": {
  5927. "200": {
  5928. "description": "Success",
  5929. "content": {
  5930. "application/json": {
  5931. "schema": {
  5932. "type": "object",
  5933. "properties": {
  5934. "data": {
  5935. "anyOf": [
  5936. {
  5937. "$ref": "#/components/schemas/Form.FormInfo"
  5938. },
  5939. {
  5940. "$ref": "#/components/schemas/Form.UrlInfo"
  5941. }
  5942. ]
  5943. }
  5944. },
  5945. "required": [
  5946. "data"
  5947. ],
  5948. "additionalProperties": false
  5949. }
  5950. }
  5951. }
  5952. },
  5953. "400": {
  5954. "description": "InvalidRequestError",
  5955. "content": {
  5956. "application/json": {
  5957. "schema": {
  5958. "$ref": "#/components/schemas/InvalidRequestError"
  5959. }
  5960. }
  5961. }
  5962. },
  5963. "401": {
  5964. "description": "UnauthorizedError",
  5965. "content": {
  5966. "application/json": {
  5967. "schema": {
  5968. "$ref": "#/components/schemas/UnauthorizedError"
  5969. }
  5970. }
  5971. }
  5972. },
  5973. "404": {
  5974. "description": "SessionNotFoundError | FormNotFoundError",
  5975. "content": {
  5976. "application/json": {
  5977. "schema": {
  5978. "anyOf": [
  5979. {
  5980. "$ref": "#/components/schemas/FormNotFoundError"
  5981. },
  5982. {
  5983. "$ref": "#/components/schemas/SessionNotFoundError"
  5984. },
  5985. {
  5986. "$ref": "#/components/schemas/SessionNotFoundError"
  5987. }
  5988. ]
  5989. }
  5990. }
  5991. }
  5992. }
  5993. },
  5994. "description": "Retrieve a form for a session.",
  5995. "summary": "Get session form"
  5996. }
  5997. },
  5998. "/api/session/{sessionID}/form/{formID}/state": {
  5999. "get": {
  6000. "tags": [
  6001. "form"
  6002. ],
  6003. "operationId": "v2.session.form.state",
  6004. "parameters": [
  6005. {
  6006. "name": "sessionID",
  6007. "in": "path",
  6008. "schema": {
  6009. "type": "string"
  6010. },
  6011. "required": true
  6012. },
  6013. {
  6014. "name": "formID",
  6015. "in": "path",
  6016. "schema": {
  6017. "type": "string",
  6018. "allOf": [
  6019. {
  6020. "pattern": "^frm_"
  6021. }
  6022. ]
  6023. },
  6024. "required": true
  6025. }
  6026. ],
  6027. "security": [],
  6028. "responses": {
  6029. "200": {
  6030. "description": "Success",
  6031. "content": {
  6032. "application/json": {
  6033. "schema": {
  6034. "type": "object",
  6035. "properties": {
  6036. "data": {
  6037. "$ref": "#/components/schemas/Form.State"
  6038. }
  6039. },
  6040. "required": [
  6041. "data"
  6042. ],
  6043. "additionalProperties": false
  6044. }
  6045. }
  6046. }
  6047. },
  6048. "400": {
  6049. "description": "InvalidRequestError",
  6050. "content": {
  6051. "application/json": {
  6052. "schema": {
  6053. "$ref": "#/components/schemas/InvalidRequestError"
  6054. }
  6055. }
  6056. }
  6057. },
  6058. "401": {
  6059. "description": "UnauthorizedError",
  6060. "content": {
  6061. "application/json": {
  6062. "schema": {
  6063. "$ref": "#/components/schemas/UnauthorizedError"
  6064. }
  6065. }
  6066. }
  6067. },
  6068. "404": {
  6069. "description": "SessionNotFoundError | FormNotFoundError",
  6070. "content": {
  6071. "application/json": {
  6072. "schema": {
  6073. "anyOf": [
  6074. {
  6075. "$ref": "#/components/schemas/FormNotFoundError"
  6076. },
  6077. {
  6078. "$ref": "#/components/schemas/SessionNotFoundError"
  6079. },
  6080. {
  6081. "$ref": "#/components/schemas/SessionNotFoundError"
  6082. }
  6083. ]
  6084. }
  6085. }
  6086. }
  6087. }
  6088. },
  6089. "description": "Retrieve the current state for a form.",
  6090. "summary": "Get form state"
  6091. }
  6092. },
  6093. "/api/session/{sessionID}/form/{formID}/reply": {
  6094. "post": {
  6095. "tags": [
  6096. "form"
  6097. ],
  6098. "operationId": "v2.session.form.reply",
  6099. "parameters": [
  6100. {
  6101. "name": "sessionID",
  6102. "in": "path",
  6103. "schema": {
  6104. "type": "string"
  6105. },
  6106. "required": true
  6107. },
  6108. {
  6109. "name": "formID",
  6110. "in": "path",
  6111. "schema": {
  6112. "type": "string",
  6113. "allOf": [
  6114. {
  6115. "pattern": "^frm_"
  6116. }
  6117. ]
  6118. },
  6119. "required": true
  6120. }
  6121. ],
  6122. "security": [],
  6123. "responses": {
  6124. "204": {
  6125. "description": "<No Content>"
  6126. },
  6127. "400": {
  6128. "description": "FormInvalidAnswerError | InvalidRequestError",
  6129. "content": {
  6130. "application/json": {
  6131. "schema": {
  6132. "anyOf": [
  6133. {
  6134. "$ref": "#/components/schemas/FormInvalidAnswerError"
  6135. },
  6136. {
  6137. "$ref": "#/components/schemas/InvalidRequestError"
  6138. }
  6139. ]
  6140. }
  6141. }
  6142. }
  6143. },
  6144. "401": {
  6145. "description": "UnauthorizedError",
  6146. "content": {
  6147. "application/json": {
  6148. "schema": {
  6149. "$ref": "#/components/schemas/UnauthorizedError"
  6150. }
  6151. }
  6152. }
  6153. },
  6154. "404": {
  6155. "description": "SessionNotFoundError | FormNotFoundError",
  6156. "content": {
  6157. "application/json": {
  6158. "schema": {
  6159. "anyOf": [
  6160. {
  6161. "$ref": "#/components/schemas/FormNotFoundError"
  6162. },
  6163. {
  6164. "$ref": "#/components/schemas/SessionNotFoundError"
  6165. },
  6166. {
  6167. "$ref": "#/components/schemas/SessionNotFoundError"
  6168. }
  6169. ]
  6170. }
  6171. }
  6172. }
  6173. },
  6174. "409": {
  6175. "description": "FormAlreadySettledError",
  6176. "content": {
  6177. "application/json": {
  6178. "schema": {
  6179. "$ref": "#/components/schemas/FormAlreadySettledError"
  6180. }
  6181. }
  6182. }
  6183. }
  6184. },
  6185. "description": "Submit an answer to a pending form.",
  6186. "summary": "Reply to form",
  6187. "requestBody": {
  6188. "content": {
  6189. "application/json": {
  6190. "schema": {
  6191. "$ref": "#/components/schemas/Form.Reply"
  6192. }
  6193. }
  6194. },
  6195. "required": true
  6196. }
  6197. }
  6198. },
  6199. "/api/session/{sessionID}/form/{formID}/cancel": {
  6200. "post": {
  6201. "tags": [
  6202. "form"
  6203. ],
  6204. "operationId": "v2.session.form.cancel",
  6205. "parameters": [
  6206. {
  6207. "name": "sessionID",
  6208. "in": "path",
  6209. "schema": {
  6210. "type": "string"
  6211. },
  6212. "required": true
  6213. },
  6214. {
  6215. "name": "formID",
  6216. "in": "path",
  6217. "schema": {
  6218. "type": "string",
  6219. "allOf": [
  6220. {
  6221. "pattern": "^frm_"
  6222. }
  6223. ]
  6224. },
  6225. "required": true
  6226. }
  6227. ],
  6228. "security": [],
  6229. "responses": {
  6230. "204": {
  6231. "description": "<No Content>"
  6232. },
  6233. "400": {
  6234. "description": "InvalidRequestError",
  6235. "content": {
  6236. "application/json": {
  6237. "schema": {
  6238. "$ref": "#/components/schemas/InvalidRequestError"
  6239. }
  6240. }
  6241. }
  6242. },
  6243. "401": {
  6244. "description": "UnauthorizedError",
  6245. "content": {
  6246. "application/json": {
  6247. "schema": {
  6248. "$ref": "#/components/schemas/UnauthorizedError"
  6249. }
  6250. }
  6251. }
  6252. },
  6253. "404": {
  6254. "description": "SessionNotFoundError | FormNotFoundError",
  6255. "content": {
  6256. "application/json": {
  6257. "schema": {
  6258. "anyOf": [
  6259. {
  6260. "$ref": "#/components/schemas/FormNotFoundError"
  6261. },
  6262. {
  6263. "$ref": "#/components/schemas/SessionNotFoundError"
  6264. },
  6265. {
  6266. "$ref": "#/components/schemas/SessionNotFoundError"
  6267. }
  6268. ]
  6269. }
  6270. }
  6271. }
  6272. },
  6273. "409": {
  6274. "description": "FormAlreadySettledError",
  6275. "content": {
  6276. "application/json": {
  6277. "schema": {
  6278. "$ref": "#/components/schemas/FormAlreadySettledError"
  6279. }
  6280. }
  6281. }
  6282. }
  6283. },
  6284. "description": "Cancel a pending form.",
  6285. "summary": "Cancel form"
  6286. }
  6287. },
  6288. "/api/permission/request": {
  6289. "get": {
  6290. "tags": [
  6291. "permission"
  6292. ],
  6293. "operationId": "v2.permission.request.list",
  6294. "parameters": [
  6295. {
  6296. "name": "location",
  6297. "in": "query",
  6298. "schema": {
  6299. "anyOf": [
  6300. {
  6301. "type": "object",
  6302. "properties": {
  6303. "directory": {
  6304. "anyOf": [
  6305. {
  6306. "type": "string"
  6307. },
  6308. {
  6309. "type": "null"
  6310. }
  6311. ]
  6312. },
  6313. "workspace": {
  6314. "anyOf": [
  6315. {
  6316. "type": "string"
  6317. },
  6318. {
  6319. "type": "null"
  6320. }
  6321. ]
  6322. }
  6323. },
  6324. "additionalProperties": false
  6325. },
  6326. {
  6327. "type": "null"
  6328. }
  6329. ]
  6330. },
  6331. "required": false,
  6332. "style": "deepObject",
  6333. "explode": true
  6334. }
  6335. ],
  6336. "security": [],
  6337. "responses": {
  6338. "200": {
  6339. "description": "Success",
  6340. "content": {
  6341. "application/json": {
  6342. "schema": {
  6343. "type": "object",
  6344. "properties": {
  6345. "location": {
  6346. "$ref": "#/components/schemas/Location.Info"
  6347. },
  6348. "data": {
  6349. "type": "array",
  6350. "items": {
  6351. "$ref": "#/components/schemas/PermissionV2.Request"
  6352. }
  6353. }
  6354. },
  6355. "required": [
  6356. "location",
  6357. "data"
  6358. ],
  6359. "additionalProperties": false
  6360. }
  6361. }
  6362. }
  6363. },
  6364. "400": {
  6365. "description": "InvalidRequestError",
  6366. "content": {
  6367. "application/json": {
  6368. "schema": {
  6369. "$ref": "#/components/schemas/InvalidRequestError"
  6370. }
  6371. }
  6372. }
  6373. },
  6374. "401": {
  6375. "description": "UnauthorizedError",
  6376. "content": {
  6377. "application/json": {
  6378. "schema": {
  6379. "$ref": "#/components/schemas/UnauthorizedError"
  6380. }
  6381. }
  6382. }
  6383. }
  6384. },
  6385. "description": "Retrieve pending permission requests for a location.",
  6386. "summary": "List pending permission requests"
  6387. }
  6388. },
  6389. "/api/permission/saved": {
  6390. "get": {
  6391. "tags": [
  6392. "permission"
  6393. ],
  6394. "operationId": "v2.permission.saved.list",
  6395. "parameters": [
  6396. {
  6397. "name": "projectID",
  6398. "in": "query",
  6399. "schema": {
  6400. "anyOf": [
  6401. {
  6402. "type": "string"
  6403. },
  6404. {
  6405. "type": "null"
  6406. }
  6407. ]
  6408. },
  6409. "required": false
  6410. }
  6411. ],
  6412. "security": [],
  6413. "responses": {
  6414. "200": {
  6415. "description": "Success",
  6416. "content": {
  6417. "application/json": {
  6418. "schema": {
  6419. "type": "object",
  6420. "properties": {
  6421. "data": {
  6422. "type": "array",
  6423. "items": {
  6424. "$ref": "#/components/schemas/PermissionSaved.Info"
  6425. }
  6426. }
  6427. },
  6428. "required": [
  6429. "data"
  6430. ],
  6431. "additionalProperties": false
  6432. }
  6433. }
  6434. }
  6435. },
  6436. "400": {
  6437. "description": "InvalidRequestError",
  6438. "content": {
  6439. "application/json": {
  6440. "schema": {
  6441. "$ref": "#/components/schemas/InvalidRequestError"
  6442. }
  6443. }
  6444. }
  6445. },
  6446. "401": {
  6447. "description": "UnauthorizedError",
  6448. "content": {
  6449. "application/json": {
  6450. "schema": {
  6451. "$ref": "#/components/schemas/UnauthorizedError"
  6452. }
  6453. }
  6454. }
  6455. }
  6456. },
  6457. "description": "Retrieve saved permissions, optionally filtered by project.",
  6458. "summary": "List saved permissions"
  6459. }
  6460. },
  6461. "/api/permission/saved/{id}": {
  6462. "delete": {
  6463. "tags": [
  6464. "permission"
  6465. ],
  6466. "operationId": "v2.permission.saved.remove",
  6467. "parameters": [
  6468. {
  6469. "name": "id",
  6470. "in": "path",
  6471. "schema": {
  6472. "type": "string"
  6473. },
  6474. "required": true
  6475. }
  6476. ],
  6477. "security": [],
  6478. "responses": {
  6479. "204": {
  6480. "description": "<No Content>"
  6481. },
  6482. "400": {
  6483. "description": "InvalidRequestError",
  6484. "content": {
  6485. "application/json": {
  6486. "schema": {
  6487. "$ref": "#/components/schemas/InvalidRequestError"
  6488. }
  6489. }
  6490. }
  6491. },
  6492. "401": {
  6493. "description": "UnauthorizedError",
  6494. "content": {
  6495. "application/json": {
  6496. "schema": {
  6497. "$ref": "#/components/schemas/UnauthorizedError"
  6498. }
  6499. }
  6500. }
  6501. }
  6502. },
  6503. "description": "Remove a saved permission by ID.",
  6504. "summary": "Remove saved permission"
  6505. }
  6506. },
  6507. "/api/session/{sessionID}/permission": {
  6508. "post": {
  6509. "tags": [
  6510. "permission"
  6511. ],
  6512. "operationId": "v2.session.permission.create",
  6513. "parameters": [
  6514. {
  6515. "name": "sessionID",
  6516. "in": "path",
  6517. "schema": {
  6518. "type": "string",
  6519. "allOf": [
  6520. {
  6521. "pattern": "^ses"
  6522. }
  6523. ]
  6524. },
  6525. "required": true
  6526. }
  6527. ],
  6528. "security": [],
  6529. "responses": {
  6530. "200": {
  6531. "description": "Success",
  6532. "content": {
  6533. "application/json": {
  6534. "schema": {
  6535. "type": "object",
  6536. "properties": {
  6537. "data": {
  6538. "type": "object",
  6539. "properties": {
  6540. "id": {
  6541. "type": "string",
  6542. "allOf": [
  6543. {
  6544. "pattern": "^per"
  6545. }
  6546. ]
  6547. },
  6548. "effect": {
  6549. "$ref": "#/components/schemas/PermissionV2.Effect"
  6550. }
  6551. },
  6552. "required": [
  6553. "id",
  6554. "effect"
  6555. ],
  6556. "additionalProperties": false
  6557. }
  6558. },
  6559. "required": [
  6560. "data"
  6561. ],
  6562. "additionalProperties": false
  6563. }
  6564. }
  6565. }
  6566. },
  6567. "400": {
  6568. "description": "InvalidRequestError",
  6569. "content": {
  6570. "application/json": {
  6571. "schema": {
  6572. "$ref": "#/components/schemas/InvalidRequestError"
  6573. }
  6574. }
  6575. }
  6576. },
  6577. "401": {
  6578. "description": "UnauthorizedError",
  6579. "content": {
  6580. "application/json": {
  6581. "schema": {
  6582. "$ref": "#/components/schemas/UnauthorizedError"
  6583. }
  6584. }
  6585. }
  6586. },
  6587. "404": {
  6588. "description": "SessionNotFoundError",
  6589. "content": {
  6590. "application/json": {
  6591. "schema": {
  6592. "anyOf": [
  6593. {
  6594. "$ref": "#/components/schemas/SessionNotFoundError"
  6595. },
  6596. {
  6597. "$ref": "#/components/schemas/SessionNotFoundError"
  6598. }
  6599. ]
  6600. }
  6601. }
  6602. }
  6603. }
  6604. },
  6605. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  6606. "summary": "Create permission request",
  6607. "requestBody": {
  6608. "content": {
  6609. "application/json": {
  6610. "schema": {
  6611. "type": "object",
  6612. "properties": {
  6613. "id": {
  6614. "anyOf": [
  6615. {
  6616. "type": "string",
  6617. "allOf": [
  6618. {
  6619. "pattern": "^per"
  6620. }
  6621. ]
  6622. },
  6623. {
  6624. "type": "null"
  6625. }
  6626. ]
  6627. },
  6628. "action": {
  6629. "type": "string"
  6630. },
  6631. "resources": {
  6632. "type": "array",
  6633. "items": {
  6634. "type": "string"
  6635. }
  6636. },
  6637. "save": {
  6638. "type": "array",
  6639. "items": {
  6640. "type": "string"
  6641. }
  6642. },
  6643. "metadata": {
  6644. "type": "object"
  6645. },
  6646. "source": {
  6647. "$ref": "#/components/schemas/PermissionV2.Source"
  6648. },
  6649. "agent": {
  6650. "anyOf": [
  6651. {
  6652. "type": "string"
  6653. },
  6654. {
  6655. "type": "null"
  6656. }
  6657. ]
  6658. }
  6659. },
  6660. "required": [
  6661. "action",
  6662. "resources"
  6663. ],
  6664. "additionalProperties": false
  6665. }
  6666. }
  6667. },
  6668. "required": true
  6669. }
  6670. },
  6671. "get": {
  6672. "tags": [
  6673. "permission"
  6674. ],
  6675. "operationId": "v2.session.permission.list",
  6676. "parameters": [
  6677. {
  6678. "name": "sessionID",
  6679. "in": "path",
  6680. "schema": {
  6681. "type": "string",
  6682. "allOf": [
  6683. {
  6684. "pattern": "^ses"
  6685. }
  6686. ]
  6687. },
  6688. "required": true
  6689. }
  6690. ],
  6691. "security": [],
  6692. "responses": {
  6693. "200": {
  6694. "description": "Success",
  6695. "content": {
  6696. "application/json": {
  6697. "schema": {
  6698. "type": "object",
  6699. "properties": {
  6700. "data": {
  6701. "type": "array",
  6702. "items": {
  6703. "$ref": "#/components/schemas/PermissionV2.Request"
  6704. }
  6705. }
  6706. },
  6707. "required": [
  6708. "data"
  6709. ],
  6710. "additionalProperties": false
  6711. }
  6712. }
  6713. }
  6714. },
  6715. "400": {
  6716. "description": "InvalidRequestError",
  6717. "content": {
  6718. "application/json": {
  6719. "schema": {
  6720. "$ref": "#/components/schemas/InvalidRequestError"
  6721. }
  6722. }
  6723. }
  6724. },
  6725. "401": {
  6726. "description": "UnauthorizedError",
  6727. "content": {
  6728. "application/json": {
  6729. "schema": {
  6730. "$ref": "#/components/schemas/UnauthorizedError"
  6731. }
  6732. }
  6733. }
  6734. },
  6735. "404": {
  6736. "description": "SessionNotFoundError",
  6737. "content": {
  6738. "application/json": {
  6739. "schema": {
  6740. "anyOf": [
  6741. {
  6742. "$ref": "#/components/schemas/SessionNotFoundError"
  6743. },
  6744. {
  6745. "$ref": "#/components/schemas/SessionNotFoundError"
  6746. }
  6747. ]
  6748. }
  6749. }
  6750. }
  6751. }
  6752. },
  6753. "description": "Retrieve pending permission requests owned by a session.",
  6754. "summary": "List session permission requests"
  6755. }
  6756. },
  6757. "/api/session/{sessionID}/permission/{requestID}": {
  6758. "get": {
  6759. "tags": [
  6760. "permission"
  6761. ],
  6762. "operationId": "v2.session.permission.get",
  6763. "parameters": [
  6764. {
  6765. "name": "sessionID",
  6766. "in": "path",
  6767. "schema": {
  6768. "type": "string",
  6769. "allOf": [
  6770. {
  6771. "pattern": "^ses"
  6772. }
  6773. ]
  6774. },
  6775. "required": true
  6776. },
  6777. {
  6778. "name": "requestID",
  6779. "in": "path",
  6780. "schema": {
  6781. "type": "string",
  6782. "allOf": [
  6783. {
  6784. "pattern": "^per"
  6785. }
  6786. ]
  6787. },
  6788. "required": true
  6789. }
  6790. ],
  6791. "security": [],
  6792. "responses": {
  6793. "200": {
  6794. "description": "Success",
  6795. "content": {
  6796. "application/json": {
  6797. "schema": {
  6798. "type": "object",
  6799. "properties": {
  6800. "data": {
  6801. "$ref": "#/components/schemas/PermissionV2.Request"
  6802. }
  6803. },
  6804. "required": [
  6805. "data"
  6806. ],
  6807. "additionalProperties": false
  6808. }
  6809. }
  6810. }
  6811. },
  6812. "400": {
  6813. "description": "InvalidRequestError",
  6814. "content": {
  6815. "application/json": {
  6816. "schema": {
  6817. "$ref": "#/components/schemas/InvalidRequestError"
  6818. }
  6819. }
  6820. }
  6821. },
  6822. "401": {
  6823. "description": "UnauthorizedError",
  6824. "content": {
  6825. "application/json": {
  6826. "schema": {
  6827. "$ref": "#/components/schemas/UnauthorizedError"
  6828. }
  6829. }
  6830. }
  6831. },
  6832. "404": {
  6833. "description": "SessionNotFoundError | PermissionNotFoundError",
  6834. "content": {
  6835. "application/json": {
  6836. "schema": {
  6837. "anyOf": [
  6838. {
  6839. "$ref": "#/components/schemas/PermissionNotFoundError"
  6840. },
  6841. {
  6842. "$ref": "#/components/schemas/SessionNotFoundError"
  6843. },
  6844. {
  6845. "$ref": "#/components/schemas/SessionNotFoundError"
  6846. }
  6847. ]
  6848. }
  6849. }
  6850. }
  6851. }
  6852. },
  6853. "description": "Retrieve a pending permission request owned by a session.",
  6854. "summary": "Get permission request"
  6855. }
  6856. },
  6857. "/api/session/{sessionID}/permission/{requestID}/reply": {
  6858. "post": {
  6859. "tags": [
  6860. "permission"
  6861. ],
  6862. "operationId": "v2.session.permission.reply",
  6863. "parameters": [
  6864. {
  6865. "name": "sessionID",
  6866. "in": "path",
  6867. "schema": {
  6868. "type": "string",
  6869. "allOf": [
  6870. {
  6871. "pattern": "^ses"
  6872. }
  6873. ]
  6874. },
  6875. "required": true
  6876. },
  6877. {
  6878. "name": "requestID",
  6879. "in": "path",
  6880. "schema": {
  6881. "type": "string",
  6882. "allOf": [
  6883. {
  6884. "pattern": "^per"
  6885. }
  6886. ]
  6887. },
  6888. "required": true
  6889. }
  6890. ],
  6891. "security": [],
  6892. "responses": {
  6893. "204": {
  6894. "description": "<No Content>"
  6895. },
  6896. "400": {
  6897. "description": "InvalidRequestError",
  6898. "content": {
  6899. "application/json": {
  6900. "schema": {
  6901. "$ref": "#/components/schemas/InvalidRequestError"
  6902. }
  6903. }
  6904. }
  6905. },
  6906. "401": {
  6907. "description": "UnauthorizedError",
  6908. "content": {
  6909. "application/json": {
  6910. "schema": {
  6911. "$ref": "#/components/schemas/UnauthorizedError"
  6912. }
  6913. }
  6914. }
  6915. },
  6916. "404": {
  6917. "description": "SessionNotFoundError | PermissionNotFoundError",
  6918. "content": {
  6919. "application/json": {
  6920. "schema": {
  6921. "anyOf": [
  6922. {
  6923. "$ref": "#/components/schemas/PermissionNotFoundError"
  6924. },
  6925. {
  6926. "$ref": "#/components/schemas/SessionNotFoundError"
  6927. },
  6928. {
  6929. "$ref": "#/components/schemas/SessionNotFoundError"
  6930. }
  6931. ]
  6932. }
  6933. }
  6934. }
  6935. }
  6936. },
  6937. "description": "Respond to a pending permission request owned by a session.",
  6938. "summary": "Reply to pending permission request",
  6939. "requestBody": {
  6940. "content": {
  6941. "application/json": {
  6942. "schema": {
  6943. "type": "object",
  6944. "properties": {
  6945. "reply": {
  6946. "$ref": "#/components/schemas/PermissionV2.Reply"
  6947. },
  6948. "message": {
  6949. "anyOf": [
  6950. {
  6951. "type": "string"
  6952. },
  6953. {
  6954. "type": "null"
  6955. }
  6956. ]
  6957. }
  6958. },
  6959. "required": [
  6960. "reply"
  6961. ],
  6962. "additionalProperties": false
  6963. }
  6964. }
  6965. },
  6966. "required": true
  6967. }
  6968. }
  6969. },
  6970. "/api/fs/read/*": {
  6971. "get": {
  6972. "tags": [
  6973. "filesystem"
  6974. ],
  6975. "operationId": "v2.fs.read",
  6976. "parameters": [
  6977. {
  6978. "name": "location",
  6979. "in": "query",
  6980. "schema": {
  6981. "anyOf": [
  6982. {
  6983. "type": "object",
  6984. "properties": {
  6985. "directory": {
  6986. "anyOf": [
  6987. {
  6988. "type": "string"
  6989. },
  6990. {
  6991. "type": "null"
  6992. }
  6993. ]
  6994. },
  6995. "workspace": {
  6996. "anyOf": [
  6997. {
  6998. "type": "string"
  6999. },
  7000. {
  7001. "type": "null"
  7002. }
  7003. ]
  7004. }
  7005. },
  7006. "additionalProperties": false
  7007. },
  7008. {
  7009. "type": "null"
  7010. }
  7011. ]
  7012. },
  7013. "required": false,
  7014. "style": "deepObject",
  7015. "explode": true
  7016. }
  7017. ],
  7018. "security": [],
  7019. "responses": {
  7020. "200": {
  7021. "description": "Success",
  7022. "content": {
  7023. "application/octet-stream": {
  7024. "schema": {
  7025. "type": "string",
  7026. "format": "binary"
  7027. }
  7028. }
  7029. }
  7030. },
  7031. "400": {
  7032. "description": "InvalidRequestError",
  7033. "content": {
  7034. "application/json": {
  7035. "schema": {
  7036. "$ref": "#/components/schemas/InvalidRequestError"
  7037. }
  7038. }
  7039. }
  7040. },
  7041. "401": {
  7042. "description": "UnauthorizedError",
  7043. "content": {
  7044. "application/json": {
  7045. "schema": {
  7046. "$ref": "#/components/schemas/UnauthorizedError"
  7047. }
  7048. }
  7049. }
  7050. }
  7051. },
  7052. "description": "Serve one file relative to the requested location.",
  7053. "summary": "Read file"
  7054. }
  7055. },
  7056. "/api/fs/list": {
  7057. "get": {
  7058. "tags": [
  7059. "filesystem"
  7060. ],
  7061. "operationId": "v2.fs.list",
  7062. "parameters": [
  7063. {
  7064. "name": "location",
  7065. "in": "query",
  7066. "schema": {
  7067. "anyOf": [
  7068. {
  7069. "type": "object",
  7070. "properties": {
  7071. "directory": {
  7072. "anyOf": [
  7073. {
  7074. "type": "string"
  7075. },
  7076. {
  7077. "type": "null"
  7078. }
  7079. ]
  7080. },
  7081. "workspace": {
  7082. "anyOf": [
  7083. {
  7084. "type": "string"
  7085. },
  7086. {
  7087. "type": "null"
  7088. }
  7089. ]
  7090. }
  7091. },
  7092. "additionalProperties": false
  7093. },
  7094. {
  7095. "type": "null"
  7096. }
  7097. ]
  7098. },
  7099. "required": false,
  7100. "style": "deepObject",
  7101. "explode": true
  7102. },
  7103. {
  7104. "name": "path",
  7105. "in": "query",
  7106. "schema": {
  7107. "anyOf": [
  7108. {
  7109. "type": "string"
  7110. },
  7111. {
  7112. "type": "null"
  7113. }
  7114. ]
  7115. },
  7116. "required": false
  7117. }
  7118. ],
  7119. "security": [],
  7120. "responses": {
  7121. "200": {
  7122. "description": "Success",
  7123. "content": {
  7124. "application/json": {
  7125. "schema": {
  7126. "type": "object",
  7127. "properties": {
  7128. "location": {
  7129. "$ref": "#/components/schemas/Location.Info"
  7130. },
  7131. "data": {
  7132. "type": "array",
  7133. "items": {
  7134. "$ref": "#/components/schemas/FileSystem.Entry"
  7135. }
  7136. }
  7137. },
  7138. "required": [
  7139. "location",
  7140. "data"
  7141. ],
  7142. "additionalProperties": false
  7143. }
  7144. }
  7145. }
  7146. },
  7147. "400": {
  7148. "description": "InvalidRequestError",
  7149. "content": {
  7150. "application/json": {
  7151. "schema": {
  7152. "$ref": "#/components/schemas/InvalidRequestError"
  7153. }
  7154. }
  7155. }
  7156. },
  7157. "401": {
  7158. "description": "UnauthorizedError",
  7159. "content": {
  7160. "application/json": {
  7161. "schema": {
  7162. "$ref": "#/components/schemas/UnauthorizedError"
  7163. }
  7164. }
  7165. }
  7166. }
  7167. },
  7168. "description": "List direct children of one directory relative to the requested location.",
  7169. "summary": "List directory"
  7170. }
  7171. },
  7172. "/api/fs/find": {
  7173. "get": {
  7174. "tags": [
  7175. "filesystem"
  7176. ],
  7177. "operationId": "v2.fs.find",
  7178. "parameters": [
  7179. {
  7180. "name": "location",
  7181. "in": "query",
  7182. "schema": {
  7183. "anyOf": [
  7184. {
  7185. "type": "object",
  7186. "properties": {
  7187. "directory": {
  7188. "anyOf": [
  7189. {
  7190. "type": "string"
  7191. },
  7192. {
  7193. "type": "null"
  7194. }
  7195. ]
  7196. },
  7197. "workspace": {
  7198. "anyOf": [
  7199. {
  7200. "type": "string"
  7201. },
  7202. {
  7203. "type": "null"
  7204. }
  7205. ]
  7206. }
  7207. },
  7208. "additionalProperties": false
  7209. },
  7210. {
  7211. "type": "null"
  7212. }
  7213. ]
  7214. },
  7215. "required": false,
  7216. "style": "deepObject",
  7217. "explode": true
  7218. },
  7219. {
  7220. "name": "query",
  7221. "in": "query",
  7222. "schema": {
  7223. "type": "string"
  7224. },
  7225. "required": true
  7226. },
  7227. {
  7228. "name": "type",
  7229. "in": "query",
  7230. "schema": {
  7231. "type": "string",
  7232. "enum": [
  7233. "file",
  7234. "directory"
  7235. ]
  7236. },
  7237. "required": false
  7238. },
  7239. {
  7240. "name": "limit",
  7241. "in": "query",
  7242. "schema": {
  7243. "anyOf": [
  7244. {
  7245. "type": "string"
  7246. },
  7247. {
  7248. "type": "null"
  7249. }
  7250. ]
  7251. },
  7252. "required": false
  7253. }
  7254. ],
  7255. "security": [],
  7256. "responses": {
  7257. "200": {
  7258. "description": "Success",
  7259. "content": {
  7260. "application/json": {
  7261. "schema": {
  7262. "type": "object",
  7263. "properties": {
  7264. "location": {
  7265. "$ref": "#/components/schemas/Location.Info"
  7266. },
  7267. "data": {
  7268. "type": "array",
  7269. "items": {
  7270. "$ref": "#/components/schemas/FileSystem.Entry"
  7271. }
  7272. }
  7273. },
  7274. "required": [
  7275. "location",
  7276. "data"
  7277. ],
  7278. "additionalProperties": false
  7279. }
  7280. }
  7281. }
  7282. },
  7283. "400": {
  7284. "description": "InvalidRequestError",
  7285. "content": {
  7286. "application/json": {
  7287. "schema": {
  7288. "$ref": "#/components/schemas/InvalidRequestError"
  7289. }
  7290. }
  7291. }
  7292. },
  7293. "401": {
  7294. "description": "UnauthorizedError",
  7295. "content": {
  7296. "application/json": {
  7297. "schema": {
  7298. "$ref": "#/components/schemas/UnauthorizedError"
  7299. }
  7300. }
  7301. }
  7302. }
  7303. },
  7304. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  7305. "summary": "Find files"
  7306. }
  7307. },
  7308. "/api/command": {
  7309. "get": {
  7310. "tags": [
  7311. "command"
  7312. ],
  7313. "operationId": "v2.command.list",
  7314. "parameters": [
  7315. {
  7316. "name": "location",
  7317. "in": "query",
  7318. "schema": {
  7319. "anyOf": [
  7320. {
  7321. "type": "object",
  7322. "properties": {
  7323. "directory": {
  7324. "anyOf": [
  7325. {
  7326. "type": "string"
  7327. },
  7328. {
  7329. "type": "null"
  7330. }
  7331. ]
  7332. },
  7333. "workspace": {
  7334. "anyOf": [
  7335. {
  7336. "type": "string"
  7337. },
  7338. {
  7339. "type": "null"
  7340. }
  7341. ]
  7342. }
  7343. },
  7344. "additionalProperties": false
  7345. },
  7346. {
  7347. "type": "null"
  7348. }
  7349. ]
  7350. },
  7351. "required": false,
  7352. "style": "deepObject",
  7353. "explode": true
  7354. }
  7355. ],
  7356. "security": [],
  7357. "responses": {
  7358. "200": {
  7359. "description": "Success",
  7360. "content": {
  7361. "application/json": {
  7362. "schema": {
  7363. "type": "object",
  7364. "properties": {
  7365. "location": {
  7366. "$ref": "#/components/schemas/Location.Info"
  7367. },
  7368. "data": {
  7369. "type": "array",
  7370. "items": {
  7371. "$ref": "#/components/schemas/Command.Info"
  7372. }
  7373. }
  7374. },
  7375. "required": [
  7376. "location",
  7377. "data"
  7378. ],
  7379. "additionalProperties": false
  7380. }
  7381. }
  7382. }
  7383. },
  7384. "400": {
  7385. "description": "InvalidRequestError",
  7386. "content": {
  7387. "application/json": {
  7388. "schema": {
  7389. "$ref": "#/components/schemas/InvalidRequestError"
  7390. }
  7391. }
  7392. }
  7393. },
  7394. "401": {
  7395. "description": "UnauthorizedError",
  7396. "content": {
  7397. "application/json": {
  7398. "schema": {
  7399. "$ref": "#/components/schemas/UnauthorizedError"
  7400. }
  7401. }
  7402. }
  7403. }
  7404. },
  7405. "description": "Retrieve currently registered commands.",
  7406. "summary": "List commands"
  7407. }
  7408. },
  7409. "/api/skill": {
  7410. "get": {
  7411. "tags": [
  7412. "skill"
  7413. ],
  7414. "operationId": "v2.skill.list",
  7415. "parameters": [
  7416. {
  7417. "name": "location",
  7418. "in": "query",
  7419. "schema": {
  7420. "anyOf": [
  7421. {
  7422. "type": "object",
  7423. "properties": {
  7424. "directory": {
  7425. "anyOf": [
  7426. {
  7427. "type": "string"
  7428. },
  7429. {
  7430. "type": "null"
  7431. }
  7432. ]
  7433. },
  7434. "workspace": {
  7435. "anyOf": [
  7436. {
  7437. "type": "string"
  7438. },
  7439. {
  7440. "type": "null"
  7441. }
  7442. ]
  7443. }
  7444. },
  7445. "additionalProperties": false
  7446. },
  7447. {
  7448. "type": "null"
  7449. }
  7450. ]
  7451. },
  7452. "required": false,
  7453. "style": "deepObject",
  7454. "explode": true
  7455. }
  7456. ],
  7457. "security": [],
  7458. "responses": {
  7459. "200": {
  7460. "description": "Success",
  7461. "content": {
  7462. "application/json": {
  7463. "schema": {
  7464. "type": "object",
  7465. "properties": {
  7466. "location": {
  7467. "$ref": "#/components/schemas/Location.Info"
  7468. },
  7469. "data": {
  7470. "type": "array",
  7471. "items": {
  7472. "$ref": "#/components/schemas/Skill.Info"
  7473. }
  7474. }
  7475. },
  7476. "required": [
  7477. "location",
  7478. "data"
  7479. ],
  7480. "additionalProperties": false
  7481. }
  7482. }
  7483. }
  7484. },
  7485. "400": {
  7486. "description": "InvalidRequestError",
  7487. "content": {
  7488. "application/json": {
  7489. "schema": {
  7490. "$ref": "#/components/schemas/InvalidRequestError"
  7491. }
  7492. }
  7493. }
  7494. },
  7495. "401": {
  7496. "description": "UnauthorizedError",
  7497. "content": {
  7498. "application/json": {
  7499. "schema": {
  7500. "$ref": "#/components/schemas/UnauthorizedError"
  7501. }
  7502. }
  7503. }
  7504. }
  7505. },
  7506. "description": "Retrieve currently registered skills.",
  7507. "summary": "List skills"
  7508. }
  7509. },
  7510. "/api/event": {
  7511. "get": {
  7512. "tags": [
  7513. "event"
  7514. ],
  7515. "operationId": "v2.event.subscribe",
  7516. "parameters": [],
  7517. "security": [],
  7518. "responses": {
  7519. "200": {
  7520. "description": "Success",
  7521. "content": {
  7522. "text/event-stream": {
  7523. "schema": {
  7524. "type": "object",
  7525. "properties": {
  7526. "id": {
  7527. "anyOf": [
  7528. {
  7529. "type": "string"
  7530. },
  7531. {
  7532. "type": "null"
  7533. }
  7534. ]
  7535. },
  7536. "event": {
  7537. "type": "string"
  7538. },
  7539. "data": {
  7540. "$ref": "#/components/schemas/V2EventStream"
  7541. }
  7542. },
  7543. "required": [
  7544. "id",
  7545. "event",
  7546. "data"
  7547. ],
  7548. "additionalProperties": false
  7549. },
  7550. "x-effect-stream": {
  7551. "encoding": "sse",
  7552. "causeSchema": {
  7553. "type": "array",
  7554. "items": {
  7555. "anyOf": [
  7556. {
  7557. "type": "object",
  7558. "properties": {
  7559. "_tag": {
  7560. "type": "string",
  7561. "enum": [
  7562. "Fail"
  7563. ]
  7564. },
  7565. "error": {
  7566. "not": {}
  7567. }
  7568. },
  7569. "required": [
  7570. "_tag",
  7571. "error"
  7572. ],
  7573. "additionalProperties": false
  7574. },
  7575. {
  7576. "type": "object",
  7577. "properties": {
  7578. "_tag": {
  7579. "type": "string",
  7580. "enum": [
  7581. "Die"
  7582. ]
  7583. },
  7584. "defect": {}
  7585. },
  7586. "required": [
  7587. "_tag",
  7588. "defect"
  7589. ],
  7590. "additionalProperties": false
  7591. },
  7592. {
  7593. "type": "object",
  7594. "properties": {
  7595. "_tag": {
  7596. "type": "string",
  7597. "enum": [
  7598. "Interrupt"
  7599. ]
  7600. },
  7601. "fiberId": {
  7602. "anyOf": [
  7603. {
  7604. "type": "number"
  7605. },
  7606. {
  7607. "type": "null"
  7608. }
  7609. ]
  7610. }
  7611. },
  7612. "required": [
  7613. "_tag",
  7614. "fiberId"
  7615. ],
  7616. "additionalProperties": false
  7617. }
  7618. ]
  7619. }
  7620. },
  7621. "errorSchema": {
  7622. "not": {}
  7623. },
  7624. "failureEvent": "effect/httpapi/stream/failure"
  7625. }
  7626. }
  7627. }
  7628. },
  7629. "400": {
  7630. "description": "InvalidRequestError",
  7631. "content": {
  7632. "application/json": {
  7633. "schema": {
  7634. "$ref": "#/components/schemas/InvalidRequestError"
  7635. }
  7636. }
  7637. }
  7638. },
  7639. "401": {
  7640. "description": "UnauthorizedError",
  7641. "content": {
  7642. "application/json": {
  7643. "schema": {
  7644. "$ref": "#/components/schemas/UnauthorizedError"
  7645. }
  7646. }
  7647. }
  7648. }
  7649. },
  7650. "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.",
  7651. "summary": "Subscribe to events"
  7652. }
  7653. },
  7654. "/api/pty": {
  7655. "get": {
  7656. "tags": [
  7657. "pty"
  7658. ],
  7659. "operationId": "v2.pty.list",
  7660. "parameters": [
  7661. {
  7662. "name": "location",
  7663. "in": "query",
  7664. "schema": {
  7665. "anyOf": [
  7666. {
  7667. "type": "object",
  7668. "properties": {
  7669. "directory": {
  7670. "anyOf": [
  7671. {
  7672. "type": "string"
  7673. },
  7674. {
  7675. "type": "null"
  7676. }
  7677. ]
  7678. },
  7679. "workspace": {
  7680. "anyOf": [
  7681. {
  7682. "type": "string"
  7683. },
  7684. {
  7685. "type": "null"
  7686. }
  7687. ]
  7688. }
  7689. },
  7690. "additionalProperties": false
  7691. },
  7692. {
  7693. "type": "null"
  7694. }
  7695. ]
  7696. },
  7697. "required": false,
  7698. "style": "deepObject",
  7699. "explode": true
  7700. }
  7701. ],
  7702. "security": [],
  7703. "responses": {
  7704. "200": {
  7705. "description": "Success",
  7706. "content": {
  7707. "application/json": {
  7708. "schema": {
  7709. "type": "object",
  7710. "properties": {
  7711. "location": {
  7712. "$ref": "#/components/schemas/Location.Info"
  7713. },
  7714. "data": {
  7715. "type": "array",
  7716. "items": {
  7717. "$ref": "#/components/schemas/Pty"
  7718. }
  7719. }
  7720. },
  7721. "required": [
  7722. "location",
  7723. "data"
  7724. ],
  7725. "additionalProperties": false
  7726. }
  7727. }
  7728. }
  7729. },
  7730. "400": {
  7731. "description": "InvalidRequestError",
  7732. "content": {
  7733. "application/json": {
  7734. "schema": {
  7735. "$ref": "#/components/schemas/InvalidRequestError"
  7736. }
  7737. }
  7738. }
  7739. },
  7740. "401": {
  7741. "description": "UnauthorizedError",
  7742. "content": {
  7743. "application/json": {
  7744. "schema": {
  7745. "$ref": "#/components/schemas/UnauthorizedError"
  7746. }
  7747. }
  7748. }
  7749. }
  7750. },
  7751. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  7752. "summary": "List PTY sessions"
  7753. },
  7754. "post": {
  7755. "tags": [
  7756. "pty"
  7757. ],
  7758. "operationId": "v2.pty.create",
  7759. "parameters": [
  7760. {
  7761. "name": "location",
  7762. "in": "query",
  7763. "schema": {
  7764. "anyOf": [
  7765. {
  7766. "type": "object",
  7767. "properties": {
  7768. "directory": {
  7769. "anyOf": [
  7770. {
  7771. "type": "string"
  7772. },
  7773. {
  7774. "type": "null"
  7775. }
  7776. ]
  7777. },
  7778. "workspace": {
  7779. "anyOf": [
  7780. {
  7781. "type": "string"
  7782. },
  7783. {
  7784. "type": "null"
  7785. }
  7786. ]
  7787. }
  7788. },
  7789. "additionalProperties": false
  7790. },
  7791. {
  7792. "type": "null"
  7793. }
  7794. ]
  7795. },
  7796. "required": false,
  7797. "style": "deepObject",
  7798. "explode": true
  7799. }
  7800. ],
  7801. "security": [],
  7802. "responses": {
  7803. "200": {
  7804. "description": "Success",
  7805. "content": {
  7806. "application/json": {
  7807. "schema": {
  7808. "type": "object",
  7809. "properties": {
  7810. "location": {
  7811. "$ref": "#/components/schemas/Location.Info"
  7812. },
  7813. "data": {
  7814. "$ref": "#/components/schemas/Pty"
  7815. }
  7816. },
  7817. "required": [
  7818. "location",
  7819. "data"
  7820. ],
  7821. "additionalProperties": false
  7822. }
  7823. }
  7824. }
  7825. },
  7826. "400": {
  7827. "description": "InvalidRequestError",
  7828. "content": {
  7829. "application/json": {
  7830. "schema": {
  7831. "$ref": "#/components/schemas/InvalidRequestError"
  7832. }
  7833. }
  7834. }
  7835. },
  7836. "401": {
  7837. "description": "UnauthorizedError",
  7838. "content": {
  7839. "application/json": {
  7840. "schema": {
  7841. "$ref": "#/components/schemas/UnauthorizedError"
  7842. }
  7843. }
  7844. }
  7845. }
  7846. },
  7847. "description": "Create a pseudo-terminal session for a location.",
  7848. "summary": "Create PTY session",
  7849. "requestBody": {
  7850. "content": {
  7851. "application/json": {
  7852. "schema": {
  7853. "type": "object",
  7854. "properties": {
  7855. "command": {
  7856. "type": "string"
  7857. },
  7858. "args": {
  7859. "type": "array",
  7860. "items": {
  7861. "type": "string"
  7862. }
  7863. },
  7864. "cwd": {
  7865. "type": "string"
  7866. },
  7867. "title": {
  7868. "type": "string"
  7869. },
  7870. "env": {
  7871. "type": "object",
  7872. "additionalProperties": {
  7873. "type": "string"
  7874. }
  7875. }
  7876. },
  7877. "additionalProperties": false
  7878. }
  7879. }
  7880. },
  7881. "required": true
  7882. }
  7883. }
  7884. },
  7885. "/api/pty/{ptyID}": {
  7886. "get": {
  7887. "tags": [
  7888. "pty"
  7889. ],
  7890. "operationId": "v2.pty.get",
  7891. "parameters": [
  7892. {
  7893. "name": "ptyID",
  7894. "in": "path",
  7895. "schema": {
  7896. "type": "string",
  7897. "allOf": [
  7898. {
  7899. "pattern": "^pty"
  7900. }
  7901. ]
  7902. },
  7903. "required": true
  7904. },
  7905. {
  7906. "name": "location",
  7907. "in": "query",
  7908. "schema": {
  7909. "anyOf": [
  7910. {
  7911. "type": "object",
  7912. "properties": {
  7913. "directory": {
  7914. "anyOf": [
  7915. {
  7916. "type": "string"
  7917. },
  7918. {
  7919. "type": "null"
  7920. }
  7921. ]
  7922. },
  7923. "workspace": {
  7924. "anyOf": [
  7925. {
  7926. "type": "string"
  7927. },
  7928. {
  7929. "type": "null"
  7930. }
  7931. ]
  7932. }
  7933. },
  7934. "additionalProperties": false
  7935. },
  7936. {
  7937. "type": "null"
  7938. }
  7939. ]
  7940. },
  7941. "required": false,
  7942. "style": "deepObject",
  7943. "explode": true
  7944. }
  7945. ],
  7946. "security": [],
  7947. "responses": {
  7948. "200": {
  7949. "description": "Success",
  7950. "content": {
  7951. "application/json": {
  7952. "schema": {
  7953. "type": "object",
  7954. "properties": {
  7955. "location": {
  7956. "$ref": "#/components/schemas/Location.Info"
  7957. },
  7958. "data": {
  7959. "$ref": "#/components/schemas/Pty"
  7960. }
  7961. },
  7962. "required": [
  7963. "location",
  7964. "data"
  7965. ],
  7966. "additionalProperties": false
  7967. }
  7968. }
  7969. }
  7970. },
  7971. "400": {
  7972. "description": "InvalidRequestError",
  7973. "content": {
  7974. "application/json": {
  7975. "schema": {
  7976. "$ref": "#/components/schemas/InvalidRequestError"
  7977. }
  7978. }
  7979. }
  7980. },
  7981. "401": {
  7982. "description": "UnauthorizedError",
  7983. "content": {
  7984. "application/json": {
  7985. "schema": {
  7986. "$ref": "#/components/schemas/UnauthorizedError"
  7987. }
  7988. }
  7989. }
  7990. },
  7991. "404": {
  7992. "description": "PtyNotFoundError",
  7993. "content": {
  7994. "application/json": {
  7995. "schema": {
  7996. "$ref": "#/components/schemas/PtyNotFoundError"
  7997. }
  7998. }
  7999. }
  8000. }
  8001. },
  8002. "description": "Get one PTY session, including its exit code once exited.",
  8003. "summary": "Get PTY session"
  8004. },
  8005. "put": {
  8006. "tags": [
  8007. "pty"
  8008. ],
  8009. "operationId": "v2.pty.update",
  8010. "parameters": [
  8011. {
  8012. "name": "ptyID",
  8013. "in": "path",
  8014. "schema": {
  8015. "type": "string",
  8016. "allOf": [
  8017. {
  8018. "pattern": "^pty"
  8019. }
  8020. ]
  8021. },
  8022. "required": true
  8023. },
  8024. {
  8025. "name": "location",
  8026. "in": "query",
  8027. "schema": {
  8028. "anyOf": [
  8029. {
  8030. "type": "object",
  8031. "properties": {
  8032. "directory": {
  8033. "anyOf": [
  8034. {
  8035. "type": "string"
  8036. },
  8037. {
  8038. "type": "null"
  8039. }
  8040. ]
  8041. },
  8042. "workspace": {
  8043. "anyOf": [
  8044. {
  8045. "type": "string"
  8046. },
  8047. {
  8048. "type": "null"
  8049. }
  8050. ]
  8051. }
  8052. },
  8053. "additionalProperties": false
  8054. },
  8055. {
  8056. "type": "null"
  8057. }
  8058. ]
  8059. },
  8060. "required": false,
  8061. "style": "deepObject",
  8062. "explode": true
  8063. }
  8064. ],
  8065. "security": [],
  8066. "responses": {
  8067. "200": {
  8068. "description": "Success",
  8069. "content": {
  8070. "application/json": {
  8071. "schema": {
  8072. "type": "object",
  8073. "properties": {
  8074. "location": {
  8075. "$ref": "#/components/schemas/Location.Info"
  8076. },
  8077. "data": {
  8078. "$ref": "#/components/schemas/Pty"
  8079. }
  8080. },
  8081. "required": [
  8082. "location",
  8083. "data"
  8084. ],
  8085. "additionalProperties": false
  8086. }
  8087. }
  8088. }
  8089. },
  8090. "400": {
  8091. "description": "InvalidRequestError",
  8092. "content": {
  8093. "application/json": {
  8094. "schema": {
  8095. "$ref": "#/components/schemas/InvalidRequestError"
  8096. }
  8097. }
  8098. }
  8099. },
  8100. "401": {
  8101. "description": "UnauthorizedError",
  8102. "content": {
  8103. "application/json": {
  8104. "schema": {
  8105. "$ref": "#/components/schemas/UnauthorizedError"
  8106. }
  8107. }
  8108. }
  8109. },
  8110. "404": {
  8111. "description": "PtyNotFoundError",
  8112. "content": {
  8113. "application/json": {
  8114. "schema": {
  8115. "$ref": "#/components/schemas/PtyNotFoundError"
  8116. }
  8117. }
  8118. }
  8119. }
  8120. },
  8121. "description": "Update the title or viewport size of one PTY session.",
  8122. "summary": "Update PTY session",
  8123. "requestBody": {
  8124. "content": {
  8125. "application/json": {
  8126. "schema": {
  8127. "type": "object",
  8128. "properties": {
  8129. "title": {
  8130. "type": "string"
  8131. },
  8132. "size": {
  8133. "type": "object",
  8134. "properties": {
  8135. "rows": {
  8136. "type": "integer",
  8137. "allOf": [
  8138. {
  8139. "exclusiveMinimum": 0
  8140. }
  8141. ]
  8142. },
  8143. "cols": {
  8144. "type": "integer",
  8145. "allOf": [
  8146. {
  8147. "exclusiveMinimum": 0
  8148. }
  8149. ]
  8150. }
  8151. },
  8152. "required": [
  8153. "rows",
  8154. "cols"
  8155. ],
  8156. "additionalProperties": false
  8157. }
  8158. },
  8159. "additionalProperties": false
  8160. }
  8161. }
  8162. },
  8163. "required": true
  8164. }
  8165. },
  8166. "delete": {
  8167. "tags": [
  8168. "pty"
  8169. ],
  8170. "operationId": "v2.pty.remove",
  8171. "parameters": [
  8172. {
  8173. "name": "ptyID",
  8174. "in": "path",
  8175. "schema": {
  8176. "type": "string",
  8177. "allOf": [
  8178. {
  8179. "pattern": "^pty"
  8180. }
  8181. ]
  8182. },
  8183. "required": true
  8184. },
  8185. {
  8186. "name": "location",
  8187. "in": "query",
  8188. "schema": {
  8189. "anyOf": [
  8190. {
  8191. "type": "object",
  8192. "properties": {
  8193. "directory": {
  8194. "anyOf": [
  8195. {
  8196. "type": "string"
  8197. },
  8198. {
  8199. "type": "null"
  8200. }
  8201. ]
  8202. },
  8203. "workspace": {
  8204. "anyOf": [
  8205. {
  8206. "type": "string"
  8207. },
  8208. {
  8209. "type": "null"
  8210. }
  8211. ]
  8212. }
  8213. },
  8214. "additionalProperties": false
  8215. },
  8216. {
  8217. "type": "null"
  8218. }
  8219. ]
  8220. },
  8221. "required": false,
  8222. "style": "deepObject",
  8223. "explode": true
  8224. }
  8225. ],
  8226. "security": [],
  8227. "responses": {
  8228. "204": {
  8229. "description": "<No Content>"
  8230. },
  8231. "400": {
  8232. "description": "InvalidRequestError",
  8233. "content": {
  8234. "application/json": {
  8235. "schema": {
  8236. "$ref": "#/components/schemas/InvalidRequestError"
  8237. }
  8238. }
  8239. }
  8240. },
  8241. "401": {
  8242. "description": "UnauthorizedError",
  8243. "content": {
  8244. "application/json": {
  8245. "schema": {
  8246. "$ref": "#/components/schemas/UnauthorizedError"
  8247. }
  8248. }
  8249. }
  8250. },
  8251. "404": {
  8252. "description": "PtyNotFoundError",
  8253. "content": {
  8254. "application/json": {
  8255. "schema": {
  8256. "$ref": "#/components/schemas/PtyNotFoundError"
  8257. }
  8258. }
  8259. }
  8260. }
  8261. },
  8262. "description": "Terminate and remove one PTY session.",
  8263. "summary": "Remove PTY session"
  8264. }
  8265. },
  8266. "/api/pty/{ptyID}/connect-token": {
  8267. "post": {
  8268. "tags": [
  8269. "pty"
  8270. ],
  8271. "operationId": "v2.pty.connect.token",
  8272. "parameters": [
  8273. {
  8274. "name": "ptyID",
  8275. "in": "path",
  8276. "schema": {
  8277. "type": "string",
  8278. "allOf": [
  8279. {
  8280. "pattern": "^pty"
  8281. }
  8282. ]
  8283. },
  8284. "required": true
  8285. },
  8286. {
  8287. "name": "location",
  8288. "in": "query",
  8289. "schema": {
  8290. "anyOf": [
  8291. {
  8292. "type": "object",
  8293. "properties": {
  8294. "directory": {
  8295. "anyOf": [
  8296. {
  8297. "type": "string"
  8298. },
  8299. {
  8300. "type": "null"
  8301. }
  8302. ]
  8303. },
  8304. "workspace": {
  8305. "anyOf": [
  8306. {
  8307. "type": "string"
  8308. },
  8309. {
  8310. "type": "null"
  8311. }
  8312. ]
  8313. }
  8314. },
  8315. "additionalProperties": false
  8316. },
  8317. {
  8318. "type": "null"
  8319. }
  8320. ]
  8321. },
  8322. "required": false,
  8323. "style": "deepObject",
  8324. "explode": true
  8325. }
  8326. ],
  8327. "security": [],
  8328. "responses": {
  8329. "200": {
  8330. "description": "Success",
  8331. "content": {
  8332. "application/json": {
  8333. "schema": {
  8334. "type": "object",
  8335. "properties": {
  8336. "location": {
  8337. "$ref": "#/components/schemas/Location.Info"
  8338. },
  8339. "data": {
  8340. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  8341. }
  8342. },
  8343. "required": [
  8344. "location",
  8345. "data"
  8346. ],
  8347. "additionalProperties": false
  8348. }
  8349. }
  8350. }
  8351. },
  8352. "400": {
  8353. "description": "InvalidRequestError",
  8354. "content": {
  8355. "application/json": {
  8356. "schema": {
  8357. "$ref": "#/components/schemas/InvalidRequestError"
  8358. }
  8359. }
  8360. }
  8361. },
  8362. "401": {
  8363. "description": "UnauthorizedError",
  8364. "content": {
  8365. "application/json": {
  8366. "schema": {
  8367. "$ref": "#/components/schemas/UnauthorizedError"
  8368. }
  8369. }
  8370. }
  8371. },
  8372. "403": {
  8373. "description": "ForbiddenError",
  8374. "content": {
  8375. "application/json": {
  8376. "schema": {
  8377. "$ref": "#/components/schemas/ForbiddenError"
  8378. }
  8379. }
  8380. }
  8381. },
  8382. "404": {
  8383. "description": "PtyNotFoundError",
  8384. "content": {
  8385. "application/json": {
  8386. "schema": {
  8387. "$ref": "#/components/schemas/PtyNotFoundError"
  8388. }
  8389. }
  8390. }
  8391. }
  8392. },
  8393. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  8394. "summary": "Create PTY WebSocket token"
  8395. }
  8396. },
  8397. "/api/pty/{ptyID}/connect": {
  8398. "get": {
  8399. "tags": [
  8400. "pty"
  8401. ],
  8402. "operationId": "v2.pty.connect",
  8403. "parameters": [
  8404. {
  8405. "name": "ptyID",
  8406. "in": "path",
  8407. "schema": {
  8408. "type": "string",
  8409. "allOf": [
  8410. {
  8411. "pattern": "^pty"
  8412. }
  8413. ]
  8414. },
  8415. "required": true
  8416. },
  8417. {
  8418. "in": "query",
  8419. "name": "location[directory]",
  8420. "schema": {
  8421. "type": "string"
  8422. }
  8423. },
  8424. {
  8425. "in": "query",
  8426. "name": "location[workspace]",
  8427. "schema": {
  8428. "type": "string"
  8429. }
  8430. },
  8431. {
  8432. "in": "query",
  8433. "name": "cursor",
  8434. "schema": {
  8435. "type": "string"
  8436. }
  8437. },
  8438. {
  8439. "in": "query",
  8440. "name": "ticket",
  8441. "schema": {
  8442. "type": "string"
  8443. }
  8444. }
  8445. ],
  8446. "security": [],
  8447. "responses": {
  8448. "200": {
  8449. "description": "Success",
  8450. "content": {
  8451. "application/json": {
  8452. "schema": {
  8453. "type": "boolean"
  8454. }
  8455. }
  8456. }
  8457. },
  8458. "400": {
  8459. "description": "InvalidRequestError",
  8460. "content": {
  8461. "application/json": {
  8462. "schema": {
  8463. "$ref": "#/components/schemas/InvalidRequestError"
  8464. }
  8465. }
  8466. }
  8467. },
  8468. "401": {
  8469. "description": "UnauthorizedError",
  8470. "content": {
  8471. "application/json": {
  8472. "schema": {
  8473. "$ref": "#/components/schemas/UnauthorizedError"
  8474. }
  8475. }
  8476. }
  8477. },
  8478. "403": {
  8479. "description": "ForbiddenError",
  8480. "content": {
  8481. "application/json": {
  8482. "schema": {
  8483. "$ref": "#/components/schemas/ForbiddenError"
  8484. }
  8485. }
  8486. }
  8487. },
  8488. "404": {
  8489. "description": "PtyNotFoundError",
  8490. "content": {
  8491. "application/json": {
  8492. "schema": {
  8493. "$ref": "#/components/schemas/PtyNotFoundError"
  8494. }
  8495. }
  8496. }
  8497. }
  8498. },
  8499. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  8500. "summary": "Connect to PTY session",
  8501. "x-websocket": true
  8502. }
  8503. },
  8504. "/api/shell": {
  8505. "get": {
  8506. "tags": [
  8507. "shell"
  8508. ],
  8509. "operationId": "v2.shell.list",
  8510. "parameters": [
  8511. {
  8512. "name": "location",
  8513. "in": "query",
  8514. "schema": {
  8515. "anyOf": [
  8516. {
  8517. "type": "object",
  8518. "properties": {
  8519. "directory": {
  8520. "anyOf": [
  8521. {
  8522. "type": "string"
  8523. },
  8524. {
  8525. "type": "null"
  8526. }
  8527. ]
  8528. },
  8529. "workspace": {
  8530. "anyOf": [
  8531. {
  8532. "type": "string"
  8533. },
  8534. {
  8535. "type": "null"
  8536. }
  8537. ]
  8538. }
  8539. },
  8540. "additionalProperties": false
  8541. },
  8542. {
  8543. "type": "null"
  8544. }
  8545. ]
  8546. },
  8547. "required": false,
  8548. "style": "deepObject",
  8549. "explode": true
  8550. }
  8551. ],
  8552. "security": [],
  8553. "responses": {
  8554. "200": {
  8555. "description": "Success",
  8556. "content": {
  8557. "application/json": {
  8558. "schema": {
  8559. "type": "object",
  8560. "properties": {
  8561. "location": {
  8562. "$ref": "#/components/schemas/Location.Info"
  8563. },
  8564. "data": {
  8565. "type": "array",
  8566. "items": {
  8567. "$ref": "#/components/schemas/Shell1"
  8568. }
  8569. }
  8570. },
  8571. "required": [
  8572. "location",
  8573. "data"
  8574. ],
  8575. "additionalProperties": false
  8576. }
  8577. }
  8578. }
  8579. },
  8580. "400": {
  8581. "description": "InvalidRequestError",
  8582. "content": {
  8583. "application/json": {
  8584. "schema": {
  8585. "$ref": "#/components/schemas/InvalidRequestError"
  8586. }
  8587. }
  8588. }
  8589. },
  8590. "401": {
  8591. "description": "UnauthorizedError",
  8592. "content": {
  8593. "application/json": {
  8594. "schema": {
  8595. "$ref": "#/components/schemas/UnauthorizedError"
  8596. }
  8597. }
  8598. }
  8599. }
  8600. },
  8601. "description": "List currently running shell commands for a location. Exited commands are not included.",
  8602. "summary": "List running shell commands"
  8603. },
  8604. "post": {
  8605. "tags": [
  8606. "shell"
  8607. ],
  8608. "operationId": "v2.shell.create",
  8609. "parameters": [
  8610. {
  8611. "name": "location",
  8612. "in": "query",
  8613. "schema": {
  8614. "anyOf": [
  8615. {
  8616. "type": "object",
  8617. "properties": {
  8618. "directory": {
  8619. "anyOf": [
  8620. {
  8621. "type": "string"
  8622. },
  8623. {
  8624. "type": "null"
  8625. }
  8626. ]
  8627. },
  8628. "workspace": {
  8629. "anyOf": [
  8630. {
  8631. "type": "string"
  8632. },
  8633. {
  8634. "type": "null"
  8635. }
  8636. ]
  8637. }
  8638. },
  8639. "additionalProperties": false
  8640. },
  8641. {
  8642. "type": "null"
  8643. }
  8644. ]
  8645. },
  8646. "required": false,
  8647. "style": "deepObject",
  8648. "explode": true
  8649. }
  8650. ],
  8651. "security": [],
  8652. "responses": {
  8653. "200": {
  8654. "description": "Success",
  8655. "content": {
  8656. "application/json": {
  8657. "schema": {
  8658. "type": "object",
  8659. "properties": {
  8660. "location": {
  8661. "$ref": "#/components/schemas/Location.Info"
  8662. },
  8663. "data": {
  8664. "$ref": "#/components/schemas/Shell1"
  8665. }
  8666. },
  8667. "required": [
  8668. "location",
  8669. "data"
  8670. ],
  8671. "additionalProperties": false
  8672. }
  8673. }
  8674. }
  8675. },
  8676. "400": {
  8677. "description": "InvalidRequestError",
  8678. "content": {
  8679. "application/json": {
  8680. "schema": {
  8681. "$ref": "#/components/schemas/InvalidRequestError"
  8682. }
  8683. }
  8684. }
  8685. },
  8686. "401": {
  8687. "description": "UnauthorizedError",
  8688. "content": {
  8689. "application/json": {
  8690. "schema": {
  8691. "$ref": "#/components/schemas/UnauthorizedError"
  8692. }
  8693. }
  8694. }
  8695. }
  8696. },
  8697. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  8698. "summary": "Run shell command",
  8699. "requestBody": {
  8700. "content": {
  8701. "application/json": {
  8702. "schema": {
  8703. "type": "object",
  8704. "properties": {
  8705. "command": {
  8706. "type": "string"
  8707. },
  8708. "cwd": {
  8709. "type": "string"
  8710. },
  8711. "timeout": {
  8712. "type": "integer",
  8713. "allOf": [
  8714. {
  8715. "minimum": 0
  8716. }
  8717. ]
  8718. },
  8719. "metadata": {
  8720. "type": "object"
  8721. }
  8722. },
  8723. "required": [
  8724. "command",
  8725. "timeout"
  8726. ],
  8727. "additionalProperties": false
  8728. }
  8729. }
  8730. },
  8731. "required": true
  8732. }
  8733. }
  8734. },
  8735. "/api/shell/{id}": {
  8736. "get": {
  8737. "tags": [
  8738. "shell"
  8739. ],
  8740. "operationId": "v2.shell.get",
  8741. "parameters": [
  8742. {
  8743. "name": "id",
  8744. "in": "path",
  8745. "schema": {
  8746. "type": "string",
  8747. "allOf": [
  8748. {
  8749. "pattern": "^sh_"
  8750. }
  8751. ]
  8752. },
  8753. "required": true
  8754. },
  8755. {
  8756. "name": "location",
  8757. "in": "query",
  8758. "schema": {
  8759. "anyOf": [
  8760. {
  8761. "type": "object",
  8762. "properties": {
  8763. "directory": {
  8764. "anyOf": [
  8765. {
  8766. "type": "string"
  8767. },
  8768. {
  8769. "type": "null"
  8770. }
  8771. ]
  8772. },
  8773. "workspace": {
  8774. "anyOf": [
  8775. {
  8776. "type": "string"
  8777. },
  8778. {
  8779. "type": "null"
  8780. }
  8781. ]
  8782. }
  8783. },
  8784. "additionalProperties": false
  8785. },
  8786. {
  8787. "type": "null"
  8788. }
  8789. ]
  8790. },
  8791. "required": false,
  8792. "style": "deepObject",
  8793. "explode": true
  8794. }
  8795. ],
  8796. "security": [],
  8797. "responses": {
  8798. "200": {
  8799. "description": "Success",
  8800. "content": {
  8801. "application/json": {
  8802. "schema": {
  8803. "type": "object",
  8804. "properties": {
  8805. "location": {
  8806. "$ref": "#/components/schemas/Location.Info"
  8807. },
  8808. "data": {
  8809. "$ref": "#/components/schemas/Shell1"
  8810. }
  8811. },
  8812. "required": [
  8813. "location",
  8814. "data"
  8815. ],
  8816. "additionalProperties": false
  8817. }
  8818. }
  8819. }
  8820. },
  8821. "400": {
  8822. "description": "InvalidRequestError",
  8823. "content": {
  8824. "application/json": {
  8825. "schema": {
  8826. "$ref": "#/components/schemas/InvalidRequestError"
  8827. }
  8828. }
  8829. }
  8830. },
  8831. "401": {
  8832. "description": "UnauthorizedError",
  8833. "content": {
  8834. "application/json": {
  8835. "schema": {
  8836. "$ref": "#/components/schemas/UnauthorizedError"
  8837. }
  8838. }
  8839. }
  8840. },
  8841. "404": {
  8842. "description": "ShellNotFoundError",
  8843. "content": {
  8844. "application/json": {
  8845. "schema": {
  8846. "$ref": "#/components/schemas/ShellNotFoundError"
  8847. }
  8848. }
  8849. }
  8850. }
  8851. },
  8852. "description": "Get one shell command, including its status and exit code once exited.",
  8853. "summary": "Get shell command"
  8854. },
  8855. "delete": {
  8856. "tags": [
  8857. "shell"
  8858. ],
  8859. "operationId": "v2.shell.remove",
  8860. "parameters": [
  8861. {
  8862. "name": "id",
  8863. "in": "path",
  8864. "schema": {
  8865. "type": "string",
  8866. "allOf": [
  8867. {
  8868. "pattern": "^sh_"
  8869. }
  8870. ]
  8871. },
  8872. "required": true
  8873. },
  8874. {
  8875. "name": "location",
  8876. "in": "query",
  8877. "schema": {
  8878. "anyOf": [
  8879. {
  8880. "type": "object",
  8881. "properties": {
  8882. "directory": {
  8883. "anyOf": [
  8884. {
  8885. "type": "string"
  8886. },
  8887. {
  8888. "type": "null"
  8889. }
  8890. ]
  8891. },
  8892. "workspace": {
  8893. "anyOf": [
  8894. {
  8895. "type": "string"
  8896. },
  8897. {
  8898. "type": "null"
  8899. }
  8900. ]
  8901. }
  8902. },
  8903. "additionalProperties": false
  8904. },
  8905. {
  8906. "type": "null"
  8907. }
  8908. ]
  8909. },
  8910. "required": false,
  8911. "style": "deepObject",
  8912. "explode": true
  8913. }
  8914. ],
  8915. "security": [],
  8916. "responses": {
  8917. "204": {
  8918. "description": "<No Content>"
  8919. },
  8920. "400": {
  8921. "description": "InvalidRequestError",
  8922. "content": {
  8923. "application/json": {
  8924. "schema": {
  8925. "$ref": "#/components/schemas/InvalidRequestError"
  8926. }
  8927. }
  8928. }
  8929. },
  8930. "401": {
  8931. "description": "UnauthorizedError",
  8932. "content": {
  8933. "application/json": {
  8934. "schema": {
  8935. "$ref": "#/components/schemas/UnauthorizedError"
  8936. }
  8937. }
  8938. }
  8939. },
  8940. "404": {
  8941. "description": "ShellNotFoundError",
  8942. "content": {
  8943. "application/json": {
  8944. "schema": {
  8945. "$ref": "#/components/schemas/ShellNotFoundError"
  8946. }
  8947. }
  8948. }
  8949. }
  8950. },
  8951. "description": "Terminate and remove one shell command and its retained output.",
  8952. "summary": "Remove shell command"
  8953. }
  8954. },
  8955. "/api/shell/{id}/timeout": {
  8956. "patch": {
  8957. "tags": [
  8958. "shell"
  8959. ],
  8960. "operationId": "v2.shell.timeout",
  8961. "parameters": [
  8962. {
  8963. "name": "id",
  8964. "in": "path",
  8965. "schema": {
  8966. "type": "string",
  8967. "allOf": [
  8968. {
  8969. "pattern": "^sh_"
  8970. }
  8971. ]
  8972. },
  8973. "required": true
  8974. },
  8975. {
  8976. "name": "location",
  8977. "in": "query",
  8978. "schema": {
  8979. "anyOf": [
  8980. {
  8981. "type": "object",
  8982. "properties": {
  8983. "directory": {
  8984. "anyOf": [
  8985. {
  8986. "type": "string"
  8987. },
  8988. {
  8989. "type": "null"
  8990. }
  8991. ]
  8992. },
  8993. "workspace": {
  8994. "anyOf": [
  8995. {
  8996. "type": "string"
  8997. },
  8998. {
  8999. "type": "null"
  9000. }
  9001. ]
  9002. }
  9003. },
  9004. "additionalProperties": false
  9005. },
  9006. {
  9007. "type": "null"
  9008. }
  9009. ]
  9010. },
  9011. "required": false,
  9012. "style": "deepObject",
  9013. "explode": true
  9014. }
  9015. ],
  9016. "security": [],
  9017. "responses": {
  9018. "200": {
  9019. "description": "Success",
  9020. "content": {
  9021. "application/json": {
  9022. "schema": {
  9023. "type": "object",
  9024. "properties": {
  9025. "location": {
  9026. "$ref": "#/components/schemas/Location.Info"
  9027. },
  9028. "data": {
  9029. "$ref": "#/components/schemas/Shell1"
  9030. }
  9031. },
  9032. "required": [
  9033. "location",
  9034. "data"
  9035. ],
  9036. "additionalProperties": false
  9037. }
  9038. }
  9039. }
  9040. },
  9041. "400": {
  9042. "description": "InvalidRequestError",
  9043. "content": {
  9044. "application/json": {
  9045. "schema": {
  9046. "$ref": "#/components/schemas/InvalidRequestError"
  9047. }
  9048. }
  9049. }
  9050. },
  9051. "401": {
  9052. "description": "UnauthorizedError",
  9053. "content": {
  9054. "application/json": {
  9055. "schema": {
  9056. "$ref": "#/components/schemas/UnauthorizedError"
  9057. }
  9058. }
  9059. }
  9060. },
  9061. "404": {
  9062. "description": "ShellNotFoundError",
  9063. "content": {
  9064. "application/json": {
  9065. "schema": {
  9066. "$ref": "#/components/schemas/ShellNotFoundError"
  9067. }
  9068. }
  9069. }
  9070. }
  9071. },
  9072. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  9073. "summary": "Update shell timeout",
  9074. "requestBody": {
  9075. "content": {
  9076. "application/json": {
  9077. "schema": {
  9078. "type": "object",
  9079. "properties": {
  9080. "timeout": {
  9081. "type": "integer",
  9082. "allOf": [
  9083. {
  9084. "minimum": 0
  9085. }
  9086. ]
  9087. }
  9088. },
  9089. "required": [
  9090. "timeout"
  9091. ],
  9092. "additionalProperties": false
  9093. }
  9094. }
  9095. },
  9096. "required": true
  9097. }
  9098. }
  9099. },
  9100. "/api/shell/{id}/output": {
  9101. "get": {
  9102. "tags": [
  9103. "shell"
  9104. ],
  9105. "operationId": "v2.shell.output",
  9106. "parameters": [
  9107. {
  9108. "name": "id",
  9109. "in": "path",
  9110. "schema": {
  9111. "type": "string",
  9112. "allOf": [
  9113. {
  9114. "pattern": "^sh_"
  9115. }
  9116. ]
  9117. },
  9118. "required": true
  9119. },
  9120. {
  9121. "name": "location",
  9122. "in": "query",
  9123. "schema": {
  9124. "anyOf": [
  9125. {
  9126. "type": "object",
  9127. "properties": {
  9128. "directory": {
  9129. "anyOf": [
  9130. {
  9131. "type": "string"
  9132. },
  9133. {
  9134. "type": "null"
  9135. }
  9136. ]
  9137. },
  9138. "workspace": {
  9139. "anyOf": [
  9140. {
  9141. "type": "string"
  9142. },
  9143. {
  9144. "type": "null"
  9145. }
  9146. ]
  9147. }
  9148. },
  9149. "additionalProperties": false
  9150. },
  9151. {
  9152. "type": "null"
  9153. }
  9154. ]
  9155. },
  9156. "required": false,
  9157. "style": "deepObject",
  9158. "explode": true
  9159. },
  9160. {
  9161. "name": "cursor",
  9162. "in": "query",
  9163. "schema": {
  9164. "type": "string",
  9165. "allOf": [
  9166. {
  9167. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  9168. }
  9169. ]
  9170. },
  9171. "required": false
  9172. },
  9173. {
  9174. "name": "limit",
  9175. "in": "query",
  9176. "schema": {
  9177. "type": "string",
  9178. "allOf": [
  9179. {
  9180. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  9181. }
  9182. ]
  9183. },
  9184. "required": false
  9185. }
  9186. ],
  9187. "security": [],
  9188. "responses": {
  9189. "200": {
  9190. "description": "Success",
  9191. "content": {
  9192. "application/json": {
  9193. "schema": {
  9194. "type": "object",
  9195. "properties": {
  9196. "location": {
  9197. "$ref": "#/components/schemas/Location.Info"
  9198. },
  9199. "data": {
  9200. "type": "object",
  9201. "properties": {
  9202. "output": {
  9203. "type": "string"
  9204. },
  9205. "cursor": {
  9206. "type": "integer",
  9207. "allOf": [
  9208. {
  9209. "minimum": 0
  9210. }
  9211. ]
  9212. },
  9213. "size": {
  9214. "type": "integer",
  9215. "allOf": [
  9216. {
  9217. "minimum": 0
  9218. }
  9219. ]
  9220. },
  9221. "truncated": {
  9222. "type": "boolean"
  9223. }
  9224. },
  9225. "required": [
  9226. "output",
  9227. "cursor",
  9228. "size",
  9229. "truncated"
  9230. ],
  9231. "additionalProperties": false
  9232. }
  9233. },
  9234. "required": [
  9235. "location",
  9236. "data"
  9237. ],
  9238. "additionalProperties": false
  9239. }
  9240. }
  9241. }
  9242. },
  9243. "400": {
  9244. "description": "InvalidRequestError",
  9245. "content": {
  9246. "application/json": {
  9247. "schema": {
  9248. "$ref": "#/components/schemas/InvalidRequestError"
  9249. }
  9250. }
  9251. }
  9252. },
  9253. "401": {
  9254. "description": "UnauthorizedError",
  9255. "content": {
  9256. "application/json": {
  9257. "schema": {
  9258. "$ref": "#/components/schemas/UnauthorizedError"
  9259. }
  9260. }
  9261. }
  9262. },
  9263. "404": {
  9264. "description": "ShellNotFoundError",
  9265. "content": {
  9266. "application/json": {
  9267. "schema": {
  9268. "$ref": "#/components/schemas/ShellNotFoundError"
  9269. }
  9270. }
  9271. }
  9272. }
  9273. },
  9274. "description": "Page through captured combined output by absolute byte cursor.",
  9275. "summary": "Read shell output"
  9276. }
  9277. },
  9278. "/api/question/request": {
  9279. "get": {
  9280. "tags": [
  9281. "question"
  9282. ],
  9283. "operationId": "v2.question.request.list",
  9284. "parameters": [
  9285. {
  9286. "name": "location",
  9287. "in": "query",
  9288. "schema": {
  9289. "anyOf": [
  9290. {
  9291. "type": "object",
  9292. "properties": {
  9293. "directory": {
  9294. "anyOf": [
  9295. {
  9296. "type": "string"
  9297. },
  9298. {
  9299. "type": "null"
  9300. }
  9301. ]
  9302. },
  9303. "workspace": {
  9304. "anyOf": [
  9305. {
  9306. "type": "string"
  9307. },
  9308. {
  9309. "type": "null"
  9310. }
  9311. ]
  9312. }
  9313. },
  9314. "additionalProperties": false
  9315. },
  9316. {
  9317. "type": "null"
  9318. }
  9319. ]
  9320. },
  9321. "required": false,
  9322. "style": "deepObject",
  9323. "explode": true
  9324. }
  9325. ],
  9326. "security": [],
  9327. "responses": {
  9328. "200": {
  9329. "description": "Success",
  9330. "content": {
  9331. "application/json": {
  9332. "schema": {
  9333. "type": "object",
  9334. "properties": {
  9335. "location": {
  9336. "$ref": "#/components/schemas/Location.Info"
  9337. },
  9338. "data": {
  9339. "type": "array",
  9340. "items": {
  9341. "$ref": "#/components/schemas/QuestionV2.Request"
  9342. }
  9343. }
  9344. },
  9345. "required": [
  9346. "location",
  9347. "data"
  9348. ],
  9349. "additionalProperties": false
  9350. }
  9351. }
  9352. }
  9353. },
  9354. "400": {
  9355. "description": "InvalidRequestError",
  9356. "content": {
  9357. "application/json": {
  9358. "schema": {
  9359. "$ref": "#/components/schemas/InvalidRequestError"
  9360. }
  9361. }
  9362. }
  9363. },
  9364. "401": {
  9365. "description": "UnauthorizedError",
  9366. "content": {
  9367. "application/json": {
  9368. "schema": {
  9369. "$ref": "#/components/schemas/UnauthorizedError"
  9370. }
  9371. }
  9372. }
  9373. }
  9374. },
  9375. "description": "Retrieve pending question requests for a location.",
  9376. "summary": "List pending question requests"
  9377. }
  9378. },
  9379. "/api/session/{sessionID}/question": {
  9380. "get": {
  9381. "tags": [
  9382. "question"
  9383. ],
  9384. "operationId": "v2.session.question.list",
  9385. "parameters": [
  9386. {
  9387. "name": "sessionID",
  9388. "in": "path",
  9389. "schema": {
  9390. "type": "string",
  9391. "allOf": [
  9392. {
  9393. "pattern": "^ses"
  9394. }
  9395. ]
  9396. },
  9397. "required": true
  9398. }
  9399. ],
  9400. "security": [],
  9401. "responses": {
  9402. "200": {
  9403. "description": "Success",
  9404. "content": {
  9405. "application/json": {
  9406. "schema": {
  9407. "type": "object",
  9408. "properties": {
  9409. "data": {
  9410. "type": "array",
  9411. "items": {
  9412. "$ref": "#/components/schemas/QuestionV2.Request"
  9413. }
  9414. }
  9415. },
  9416. "required": [
  9417. "data"
  9418. ],
  9419. "additionalProperties": false
  9420. }
  9421. }
  9422. }
  9423. },
  9424. "400": {
  9425. "description": "InvalidRequestError",
  9426. "content": {
  9427. "application/json": {
  9428. "schema": {
  9429. "$ref": "#/components/schemas/InvalidRequestError"
  9430. }
  9431. }
  9432. }
  9433. },
  9434. "401": {
  9435. "description": "UnauthorizedError",
  9436. "content": {
  9437. "application/json": {
  9438. "schema": {
  9439. "$ref": "#/components/schemas/UnauthorizedError"
  9440. }
  9441. }
  9442. }
  9443. },
  9444. "404": {
  9445. "description": "SessionNotFoundError",
  9446. "content": {
  9447. "application/json": {
  9448. "schema": {
  9449. "anyOf": [
  9450. {
  9451. "$ref": "#/components/schemas/SessionNotFoundError"
  9452. },
  9453. {
  9454. "$ref": "#/components/schemas/SessionNotFoundError"
  9455. }
  9456. ]
  9457. }
  9458. }
  9459. }
  9460. }
  9461. },
  9462. "description": "Retrieve pending question requests owned by a session.",
  9463. "summary": "List session question requests"
  9464. }
  9465. },
  9466. "/api/session/{sessionID}/question/{requestID}/reply": {
  9467. "post": {
  9468. "tags": [
  9469. "question"
  9470. ],
  9471. "operationId": "v2.session.question.reply",
  9472. "parameters": [
  9473. {
  9474. "name": "sessionID",
  9475. "in": "path",
  9476. "schema": {
  9477. "type": "string",
  9478. "allOf": [
  9479. {
  9480. "pattern": "^ses"
  9481. }
  9482. ]
  9483. },
  9484. "required": true
  9485. },
  9486. {
  9487. "name": "requestID",
  9488. "in": "path",
  9489. "schema": {
  9490. "type": "string",
  9491. "allOf": [
  9492. {
  9493. "pattern": "^que"
  9494. }
  9495. ]
  9496. },
  9497. "required": true
  9498. }
  9499. ],
  9500. "security": [],
  9501. "responses": {
  9502. "204": {
  9503. "description": "<No Content>"
  9504. },
  9505. "400": {
  9506. "description": "InvalidRequestError",
  9507. "content": {
  9508. "application/json": {
  9509. "schema": {
  9510. "$ref": "#/components/schemas/InvalidRequestError"
  9511. }
  9512. }
  9513. }
  9514. },
  9515. "401": {
  9516. "description": "UnauthorizedError",
  9517. "content": {
  9518. "application/json": {
  9519. "schema": {
  9520. "$ref": "#/components/schemas/UnauthorizedError"
  9521. }
  9522. }
  9523. }
  9524. },
  9525. "404": {
  9526. "description": "SessionNotFoundError | QuestionNotFoundError",
  9527. "content": {
  9528. "application/json": {
  9529. "schema": {
  9530. "anyOf": [
  9531. {
  9532. "$ref": "#/components/schemas/QuestionNotFoundError"
  9533. },
  9534. {
  9535. "$ref": "#/components/schemas/SessionNotFoundError"
  9536. },
  9537. {
  9538. "$ref": "#/components/schemas/SessionNotFoundError"
  9539. }
  9540. ]
  9541. }
  9542. }
  9543. }
  9544. }
  9545. },
  9546. "description": "Answer a pending question request owned by a session.",
  9547. "summary": "Reply to pending question request",
  9548. "requestBody": {
  9549. "content": {
  9550. "application/json": {
  9551. "schema": {
  9552. "$ref": "#/components/schemas/QuestionV2.Reply"
  9553. }
  9554. }
  9555. },
  9556. "required": true
  9557. }
  9558. }
  9559. },
  9560. "/api/session/{sessionID}/question/{requestID}/reject": {
  9561. "post": {
  9562. "tags": [
  9563. "question"
  9564. ],
  9565. "operationId": "v2.session.question.reject",
  9566. "parameters": [
  9567. {
  9568. "name": "sessionID",
  9569. "in": "path",
  9570. "schema": {
  9571. "type": "string",
  9572. "allOf": [
  9573. {
  9574. "pattern": "^ses"
  9575. }
  9576. ]
  9577. },
  9578. "required": true
  9579. },
  9580. {
  9581. "name": "requestID",
  9582. "in": "path",
  9583. "schema": {
  9584. "type": "string",
  9585. "allOf": [
  9586. {
  9587. "pattern": "^que"
  9588. }
  9589. ]
  9590. },
  9591. "required": true
  9592. }
  9593. ],
  9594. "security": [],
  9595. "responses": {
  9596. "204": {
  9597. "description": "<No Content>"
  9598. },
  9599. "400": {
  9600. "description": "InvalidRequestError",
  9601. "content": {
  9602. "application/json": {
  9603. "schema": {
  9604. "$ref": "#/components/schemas/InvalidRequestError"
  9605. }
  9606. }
  9607. }
  9608. },
  9609. "401": {
  9610. "description": "UnauthorizedError",
  9611. "content": {
  9612. "application/json": {
  9613. "schema": {
  9614. "$ref": "#/components/schemas/UnauthorizedError"
  9615. }
  9616. }
  9617. }
  9618. },
  9619. "404": {
  9620. "description": "SessionNotFoundError | QuestionNotFoundError",
  9621. "content": {
  9622. "application/json": {
  9623. "schema": {
  9624. "anyOf": [
  9625. {
  9626. "$ref": "#/components/schemas/QuestionNotFoundError"
  9627. },
  9628. {
  9629. "$ref": "#/components/schemas/SessionNotFoundError"
  9630. },
  9631. {
  9632. "$ref": "#/components/schemas/SessionNotFoundError"
  9633. }
  9634. ]
  9635. }
  9636. }
  9637. }
  9638. }
  9639. },
  9640. "description": "Reject a pending question request owned by a session.",
  9641. "summary": "Reject pending question request"
  9642. }
  9643. },
  9644. "/api/reference": {
  9645. "get": {
  9646. "tags": [
  9647. "reference"
  9648. ],
  9649. "operationId": "v2.reference.list",
  9650. "parameters": [
  9651. {
  9652. "name": "location",
  9653. "in": "query",
  9654. "schema": {
  9655. "anyOf": [
  9656. {
  9657. "type": "object",
  9658. "properties": {
  9659. "directory": {
  9660. "anyOf": [
  9661. {
  9662. "type": "string"
  9663. },
  9664. {
  9665. "type": "null"
  9666. }
  9667. ]
  9668. },
  9669. "workspace": {
  9670. "anyOf": [
  9671. {
  9672. "type": "string"
  9673. },
  9674. {
  9675. "type": "null"
  9676. }
  9677. ]
  9678. }
  9679. },
  9680. "additionalProperties": false
  9681. },
  9682. {
  9683. "type": "null"
  9684. }
  9685. ]
  9686. },
  9687. "required": false,
  9688. "style": "deepObject",
  9689. "explode": true
  9690. }
  9691. ],
  9692. "security": [],
  9693. "responses": {
  9694. "200": {
  9695. "description": "Success",
  9696. "content": {
  9697. "application/json": {
  9698. "schema": {
  9699. "type": "object",
  9700. "properties": {
  9701. "location": {
  9702. "$ref": "#/components/schemas/Location.Info"
  9703. },
  9704. "data": {
  9705. "type": "array",
  9706. "items": {
  9707. "$ref": "#/components/schemas/Reference.Info"
  9708. }
  9709. }
  9710. },
  9711. "required": [
  9712. "location",
  9713. "data"
  9714. ],
  9715. "additionalProperties": false
  9716. }
  9717. }
  9718. }
  9719. },
  9720. "400": {
  9721. "description": "InvalidRequestError",
  9722. "content": {
  9723. "application/json": {
  9724. "schema": {
  9725. "$ref": "#/components/schemas/InvalidRequestError"
  9726. }
  9727. }
  9728. }
  9729. },
  9730. "401": {
  9731. "description": "UnauthorizedError",
  9732. "content": {
  9733. "application/json": {
  9734. "schema": {
  9735. "$ref": "#/components/schemas/UnauthorizedError"
  9736. }
  9737. }
  9738. }
  9739. }
  9740. },
  9741. "description": "List references available in the requested location.",
  9742. "summary": "List references"
  9743. }
  9744. },
  9745. "/experimental/project/{projectID}/copy": {
  9746. "post": {
  9747. "tags": [
  9748. "projectCopy"
  9749. ],
  9750. "operationId": "v2.projectCopy.create",
  9751. "parameters": [
  9752. {
  9753. "name": "projectID",
  9754. "in": "path",
  9755. "schema": {
  9756. "type": "string"
  9757. },
  9758. "required": true
  9759. },
  9760. {
  9761. "name": "location",
  9762. "in": "query",
  9763. "schema": {
  9764. "anyOf": [
  9765. {
  9766. "type": "object",
  9767. "properties": {
  9768. "directory": {
  9769. "anyOf": [
  9770. {
  9771. "type": "string"
  9772. },
  9773. {
  9774. "type": "null"
  9775. }
  9776. ]
  9777. },
  9778. "workspace": {
  9779. "anyOf": [
  9780. {
  9781. "type": "string"
  9782. },
  9783. {
  9784. "type": "null"
  9785. }
  9786. ]
  9787. }
  9788. },
  9789. "additionalProperties": false
  9790. },
  9791. {
  9792. "type": "null"
  9793. }
  9794. ]
  9795. },
  9796. "required": false,
  9797. "style": "deepObject",
  9798. "explode": true
  9799. }
  9800. ],
  9801. "security": [],
  9802. "responses": {
  9803. "200": {
  9804. "description": "ProjectCopy.Copy",
  9805. "content": {
  9806. "application/json": {
  9807. "schema": {
  9808. "$ref": "#/components/schemas/ProjectCopy.Copy"
  9809. }
  9810. }
  9811. }
  9812. },
  9813. "400": {
  9814. "description": "ProjectCopyError | InvalidRequestError",
  9815. "content": {
  9816. "application/json": {
  9817. "schema": {
  9818. "anyOf": [
  9819. {
  9820. "$ref": "#/components/schemas/ProjectCopyError"
  9821. },
  9822. {
  9823. "$ref": "#/components/schemas/InvalidRequestError"
  9824. }
  9825. ]
  9826. }
  9827. }
  9828. }
  9829. },
  9830. "401": {
  9831. "description": "UnauthorizedError",
  9832. "content": {
  9833. "application/json": {
  9834. "schema": {
  9835. "$ref": "#/components/schemas/UnauthorizedError"
  9836. }
  9837. }
  9838. }
  9839. }
  9840. },
  9841. "requestBody": {
  9842. "content": {
  9843. "application/json": {
  9844. "schema": {
  9845. "type": "object",
  9846. "properties": {
  9847. "strategy": {
  9848. "type": "string"
  9849. },
  9850. "directory": {
  9851. "type": "string"
  9852. },
  9853. "name": {
  9854. "type": "string"
  9855. }
  9856. },
  9857. "required": [
  9858. "strategy",
  9859. "directory"
  9860. ],
  9861. "additionalProperties": false
  9862. }
  9863. }
  9864. },
  9865. "required": true
  9866. }
  9867. },
  9868. "delete": {
  9869. "tags": [
  9870. "projectCopy"
  9871. ],
  9872. "operationId": "v2.projectCopy.remove",
  9873. "parameters": [
  9874. {
  9875. "name": "projectID",
  9876. "in": "path",
  9877. "schema": {
  9878. "type": "string"
  9879. },
  9880. "required": true
  9881. },
  9882. {
  9883. "name": "location",
  9884. "in": "query",
  9885. "schema": {
  9886. "anyOf": [
  9887. {
  9888. "type": "object",
  9889. "properties": {
  9890. "directory": {
  9891. "anyOf": [
  9892. {
  9893. "type": "string"
  9894. },
  9895. {
  9896. "type": "null"
  9897. }
  9898. ]
  9899. },
  9900. "workspace": {
  9901. "anyOf": [
  9902. {
  9903. "type": "string"
  9904. },
  9905. {
  9906. "type": "null"
  9907. }
  9908. ]
  9909. }
  9910. },
  9911. "additionalProperties": false
  9912. },
  9913. {
  9914. "type": "null"
  9915. }
  9916. ]
  9917. },
  9918. "required": false,
  9919. "style": "deepObject",
  9920. "explode": true
  9921. }
  9922. ],
  9923. "security": [],
  9924. "responses": {
  9925. "204": {
  9926. "description": "<No Content>"
  9927. },
  9928. "400": {
  9929. "description": "ProjectCopyError | InvalidRequestError",
  9930. "content": {
  9931. "application/json": {
  9932. "schema": {
  9933. "anyOf": [
  9934. {
  9935. "$ref": "#/components/schemas/ProjectCopyError"
  9936. },
  9937. {
  9938. "$ref": "#/components/schemas/InvalidRequestError"
  9939. }
  9940. ]
  9941. }
  9942. }
  9943. }
  9944. },
  9945. "401": {
  9946. "description": "UnauthorizedError",
  9947. "content": {
  9948. "application/json": {
  9949. "schema": {
  9950. "$ref": "#/components/schemas/UnauthorizedError"
  9951. }
  9952. }
  9953. }
  9954. }
  9955. },
  9956. "requestBody": {
  9957. "content": {
  9958. "application/json": {
  9959. "schema": {
  9960. "type": "object",
  9961. "properties": {
  9962. "directory": {
  9963. "type": "string"
  9964. },
  9965. "force": {
  9966. "type": "boolean"
  9967. }
  9968. },
  9969. "required": [
  9970. "directory",
  9971. "force"
  9972. ],
  9973. "additionalProperties": false
  9974. }
  9975. }
  9976. },
  9977. "required": true
  9978. }
  9979. }
  9980. },
  9981. "/experimental/project/{projectID}/copy/refresh": {
  9982. "post": {
  9983. "tags": [
  9984. "projectCopy"
  9985. ],
  9986. "operationId": "v2.projectCopy.refresh",
  9987. "parameters": [
  9988. {
  9989. "name": "projectID",
  9990. "in": "path",
  9991. "schema": {
  9992. "type": "string"
  9993. },
  9994. "required": true
  9995. },
  9996. {
  9997. "name": "location",
  9998. "in": "query",
  9999. "schema": {
  10000. "anyOf": [
  10001. {
  10002. "type": "object",
  10003. "properties": {
  10004. "directory": {
  10005. "anyOf": [
  10006. {
  10007. "type": "string"
  10008. },
  10009. {
  10010. "type": "null"
  10011. }
  10012. ]
  10013. },
  10014. "workspace": {
  10015. "anyOf": [
  10016. {
  10017. "type": "string"
  10018. },
  10019. {
  10020. "type": "null"
  10021. }
  10022. ]
  10023. }
  10024. },
  10025. "additionalProperties": false
  10026. },
  10027. {
  10028. "type": "null"
  10029. }
  10030. ]
  10031. },
  10032. "required": false,
  10033. "style": "deepObject",
  10034. "explode": true
  10035. }
  10036. ],
  10037. "security": [],
  10038. "responses": {
  10039. "204": {
  10040. "description": "<No Content>"
  10041. },
  10042. "400": {
  10043. "description": "ProjectCopyError | InvalidRequestError",
  10044. "content": {
  10045. "application/json": {
  10046. "schema": {
  10047. "anyOf": [
  10048. {
  10049. "$ref": "#/components/schemas/ProjectCopyError"
  10050. },
  10051. {
  10052. "$ref": "#/components/schemas/InvalidRequestError"
  10053. }
  10054. ]
  10055. }
  10056. }
  10057. }
  10058. },
  10059. "401": {
  10060. "description": "UnauthorizedError",
  10061. "content": {
  10062. "application/json": {
  10063. "schema": {
  10064. "$ref": "#/components/schemas/UnauthorizedError"
  10065. }
  10066. }
  10067. }
  10068. }
  10069. }
  10070. }
  10071. },
  10072. "/api/vcs/status": {
  10073. "get": {
  10074. "tags": [
  10075. "vcs"
  10076. ],
  10077. "operationId": "v2.vcs.status",
  10078. "parameters": [
  10079. {
  10080. "name": "location",
  10081. "in": "query",
  10082. "schema": {
  10083. "anyOf": [
  10084. {
  10085. "type": "object",
  10086. "properties": {
  10087. "directory": {
  10088. "anyOf": [
  10089. {
  10090. "type": "string"
  10091. },
  10092. {
  10093. "type": "null"
  10094. }
  10095. ]
  10096. },
  10097. "workspace": {
  10098. "anyOf": [
  10099. {
  10100. "type": "string"
  10101. },
  10102. {
  10103. "type": "null"
  10104. }
  10105. ]
  10106. }
  10107. },
  10108. "additionalProperties": false
  10109. },
  10110. {
  10111. "type": "null"
  10112. }
  10113. ]
  10114. },
  10115. "required": false,
  10116. "style": "deepObject",
  10117. "explode": true
  10118. }
  10119. ],
  10120. "security": [],
  10121. "responses": {
  10122. "200": {
  10123. "description": "Success",
  10124. "content": {
  10125. "application/json": {
  10126. "schema": {
  10127. "type": "object",
  10128. "properties": {
  10129. "location": {
  10130. "$ref": "#/components/schemas/Location.Info"
  10131. },
  10132. "data": {
  10133. "type": "array",
  10134. "items": {
  10135. "$ref": "#/components/schemas/Vcs.FileStatus"
  10136. }
  10137. }
  10138. },
  10139. "required": [
  10140. "location",
  10141. "data"
  10142. ],
  10143. "additionalProperties": false
  10144. }
  10145. }
  10146. }
  10147. },
  10148. "400": {
  10149. "description": "InvalidRequestError",
  10150. "content": {
  10151. "application/json": {
  10152. "schema": {
  10153. "$ref": "#/components/schemas/InvalidRequestError"
  10154. }
  10155. }
  10156. }
  10157. },
  10158. "401": {
  10159. "description": "UnauthorizedError",
  10160. "content": {
  10161. "application/json": {
  10162. "schema": {
  10163. "$ref": "#/components/schemas/UnauthorizedError"
  10164. }
  10165. }
  10166. }
  10167. }
  10168. },
  10169. "description": "List uncommitted working-copy changes relative to the requested location.",
  10170. "summary": "VCS status"
  10171. }
  10172. },
  10173. "/api/vcs/diff": {
  10174. "get": {
  10175. "tags": [
  10176. "vcs"
  10177. ],
  10178. "operationId": "v2.vcs.diff",
  10179. "parameters": [
  10180. {
  10181. "name": "location",
  10182. "in": "query",
  10183. "schema": {
  10184. "anyOf": [
  10185. {
  10186. "type": "object",
  10187. "properties": {
  10188. "directory": {
  10189. "anyOf": [
  10190. {
  10191. "type": "string"
  10192. },
  10193. {
  10194. "type": "null"
  10195. }
  10196. ]
  10197. },
  10198. "workspace": {
  10199. "anyOf": [
  10200. {
  10201. "type": "string"
  10202. },
  10203. {
  10204. "type": "null"
  10205. }
  10206. ]
  10207. }
  10208. },
  10209. "additionalProperties": false
  10210. },
  10211. {
  10212. "type": "null"
  10213. }
  10214. ]
  10215. },
  10216. "required": false,
  10217. "style": "deepObject",
  10218. "explode": true
  10219. },
  10220. {
  10221. "name": "mode",
  10222. "in": "query",
  10223. "schema": {
  10224. "$ref": "#/components/schemas/Vcs.Mode"
  10225. },
  10226. "required": true
  10227. },
  10228. {
  10229. "name": "context",
  10230. "in": "query",
  10231. "schema": {
  10232. "anyOf": [
  10233. {
  10234. "type": "string"
  10235. },
  10236. {
  10237. "type": "null"
  10238. }
  10239. ]
  10240. },
  10241. "required": false
  10242. }
  10243. ],
  10244. "security": [],
  10245. "responses": {
  10246. "200": {
  10247. "description": "Success",
  10248. "content": {
  10249. "application/json": {
  10250. "schema": {
  10251. "type": "object",
  10252. "properties": {
  10253. "location": {
  10254. "$ref": "#/components/schemas/Location.Info"
  10255. },
  10256. "data": {
  10257. "type": "array",
  10258. "items": {
  10259. "$ref": "#/components/schemas/FileDiff.Info"
  10260. }
  10261. }
  10262. },
  10263. "required": [
  10264. "location",
  10265. "data"
  10266. ],
  10267. "additionalProperties": false
  10268. }
  10269. }
  10270. }
  10271. },
  10272. "400": {
  10273. "description": "InvalidRequestError",
  10274. "content": {
  10275. "application/json": {
  10276. "schema": {
  10277. "$ref": "#/components/schemas/InvalidRequestError"
  10278. }
  10279. }
  10280. }
  10281. },
  10282. "401": {
  10283. "description": "UnauthorizedError",
  10284. "content": {
  10285. "application/json": {
  10286. "schema": {
  10287. "$ref": "#/components/schemas/UnauthorizedError"
  10288. }
  10289. }
  10290. }
  10291. }
  10292. },
  10293. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  10294. "summary": "VCS diff"
  10295. }
  10296. },
  10297. "/api/debug/location": {
  10298. "get": {
  10299. "tags": [
  10300. "debug"
  10301. ],
  10302. "operationId": "v2.debug.location.list",
  10303. "parameters": [],
  10304. "security": [],
  10305. "responses": {
  10306. "200": {
  10307. "description": "Success",
  10308. "content": {
  10309. "application/json": {
  10310. "schema": {
  10311. "type": "array",
  10312. "items": {
  10313. "$ref": "#/components/schemas/Location.Ref"
  10314. }
  10315. }
  10316. }
  10317. }
  10318. },
  10319. "400": {
  10320. "description": "InvalidRequestError",
  10321. "content": {
  10322. "application/json": {
  10323. "schema": {
  10324. "$ref": "#/components/schemas/InvalidRequestError"
  10325. }
  10326. }
  10327. }
  10328. },
  10329. "401": {
  10330. "description": "UnauthorizedError",
  10331. "content": {
  10332. "application/json": {
  10333. "schema": {
  10334. "$ref": "#/components/schemas/UnauthorizedError"
  10335. }
  10336. }
  10337. }
  10338. }
  10339. },
  10340. "description": "List locations currently loaded by the server.",
  10341. "summary": "List loaded locations"
  10342. },
  10343. "delete": {
  10344. "tags": [
  10345. "debug"
  10346. ],
  10347. "operationId": "v2.debug.location.evict",
  10348. "parameters": [
  10349. {
  10350. "name": "location",
  10351. "in": "query",
  10352. "schema": {
  10353. "anyOf": [
  10354. {
  10355. "type": "object",
  10356. "properties": {
  10357. "directory": {
  10358. "anyOf": [
  10359. {
  10360. "type": "string"
  10361. },
  10362. {
  10363. "type": "null"
  10364. }
  10365. ]
  10366. },
  10367. "workspace": {
  10368. "anyOf": [
  10369. {
  10370. "type": "string"
  10371. },
  10372. {
  10373. "type": "null"
  10374. }
  10375. ]
  10376. }
  10377. },
  10378. "additionalProperties": false
  10379. },
  10380. {
  10381. "type": "null"
  10382. }
  10383. ]
  10384. },
  10385. "required": false,
  10386. "style": "deepObject",
  10387. "explode": true
  10388. }
  10389. ],
  10390. "security": [],
  10391. "responses": {
  10392. "204": {
  10393. "description": "<No Content>"
  10394. },
  10395. "400": {
  10396. "description": "InvalidRequestError",
  10397. "content": {
  10398. "application/json": {
  10399. "schema": {
  10400. "$ref": "#/components/schemas/InvalidRequestError"
  10401. }
  10402. }
  10403. }
  10404. },
  10405. "401": {
  10406. "description": "UnauthorizedError",
  10407. "content": {
  10408. "application/json": {
  10409. "schema": {
  10410. "$ref": "#/components/schemas/UnauthorizedError"
  10411. }
  10412. }
  10413. }
  10414. }
  10415. },
  10416. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  10417. "summary": "Evict a loaded location"
  10418. }
  10419. }
  10420. },
  10421. "components": {
  10422. "schemas": {
  10423. "UnauthorizedError": {
  10424. "type": "object",
  10425. "properties": {
  10426. "_tag": {
  10427. "type": "string",
  10428. "enum": [
  10429. "UnauthorizedError"
  10430. ]
  10431. },
  10432. "message": {
  10433. "type": "string"
  10434. }
  10435. },
  10436. "required": [
  10437. "_tag",
  10438. "message"
  10439. ],
  10440. "additionalProperties": false
  10441. },
  10442. "InvalidRequestError": {
  10443. "type": "object",
  10444. "properties": {
  10445. "_tag": {
  10446. "type": "string",
  10447. "enum": [
  10448. "InvalidRequestError"
  10449. ]
  10450. },
  10451. "message": {
  10452. "type": "string"
  10453. },
  10454. "kind": {
  10455. "anyOf": [
  10456. {
  10457. "type": "string"
  10458. },
  10459. {
  10460. "type": "null"
  10461. }
  10462. ]
  10463. },
  10464. "field": {
  10465. "anyOf": [
  10466. {
  10467. "type": "string"
  10468. },
  10469. {
  10470. "type": "null"
  10471. }
  10472. ]
  10473. }
  10474. },
  10475. "required": [
  10476. "_tag",
  10477. "message"
  10478. ],
  10479. "additionalProperties": false
  10480. },
  10481. "Location.Info": {
  10482. "type": "object",
  10483. "properties": {
  10484. "directory": {
  10485. "type": "string"
  10486. },
  10487. "workspaceID": {
  10488. "type": "string",
  10489. "allOf": [
  10490. {
  10491. "pattern": "^wrk"
  10492. }
  10493. ]
  10494. },
  10495. "project": {
  10496. "type": "object",
  10497. "properties": {
  10498. "id": {
  10499. "type": "string"
  10500. },
  10501. "directory": {
  10502. "type": "string"
  10503. }
  10504. },
  10505. "required": [
  10506. "id",
  10507. "directory"
  10508. ],
  10509. "additionalProperties": false
  10510. }
  10511. },
  10512. "required": [
  10513. "directory",
  10514. "project"
  10515. ],
  10516. "additionalProperties": false
  10517. },
  10518. "Model.Ref": {
  10519. "type": "object",
  10520. "properties": {
  10521. "id": {
  10522. "type": "string"
  10523. },
  10524. "providerID": {
  10525. "type": "string"
  10526. },
  10527. "variant": {
  10528. "type": "string"
  10529. }
  10530. },
  10531. "required": [
  10532. "id",
  10533. "providerID"
  10534. ],
  10535. "additionalProperties": false
  10536. },
  10537. "Provider.Settings": {
  10538. "type": "object"
  10539. },
  10540. "Provider.Request": {
  10541. "type": "object",
  10542. "properties": {
  10543. "settings": {
  10544. "$ref": "#/components/schemas/Provider.Settings"
  10545. },
  10546. "headers": {
  10547. "type": "object",
  10548. "additionalProperties": {
  10549. "type": "string"
  10550. }
  10551. },
  10552. "body": {
  10553. "type": "object"
  10554. }
  10555. },
  10556. "required": [
  10557. "settings",
  10558. "headers",
  10559. "body"
  10560. ],
  10561. "additionalProperties": false
  10562. },
  10563. "Agent.Color": {
  10564. "type": "string",
  10565. "allOf": [
  10566. {
  10567. "pattern": "^#[0-9a-fA-F]{6}$"
  10568. }
  10569. ]
  10570. },
  10571. "PermissionV2.Effect": {
  10572. "type": "string",
  10573. "enum": [
  10574. "allow",
  10575. "deny",
  10576. "ask"
  10577. ]
  10578. },
  10579. "PermissionV2.Rule": {
  10580. "type": "object",
  10581. "properties": {
  10582. "action": {
  10583. "type": "string"
  10584. },
  10585. "resource": {
  10586. "type": "string"
  10587. },
  10588. "effect": {
  10589. "$ref": "#/components/schemas/PermissionV2.Effect"
  10590. }
  10591. },
  10592. "required": [
  10593. "action",
  10594. "resource",
  10595. "effect"
  10596. ],
  10597. "additionalProperties": false
  10598. },
  10599. "PermissionV2.Ruleset": {
  10600. "type": "array",
  10601. "items": {
  10602. "$ref": "#/components/schemas/PermissionV2.Rule"
  10603. }
  10604. },
  10605. "Agent.Info": {
  10606. "type": "object",
  10607. "properties": {
  10608. "id": {
  10609. "type": "string"
  10610. },
  10611. "name": {
  10612. "type": "string"
  10613. },
  10614. "model": {
  10615. "$ref": "#/components/schemas/Model.Ref"
  10616. },
  10617. "request": {
  10618. "$ref": "#/components/schemas/Provider.Request"
  10619. },
  10620. "system": {
  10621. "type": "string"
  10622. },
  10623. "description": {
  10624. "type": "string"
  10625. },
  10626. "mode": {
  10627. "type": "string",
  10628. "enum": [
  10629. "subagent",
  10630. "primary",
  10631. "all"
  10632. ]
  10633. },
  10634. "hidden": {
  10635. "type": "boolean"
  10636. },
  10637. "color": {
  10638. "$ref": "#/components/schemas/Agent.Color"
  10639. },
  10640. "steps": {
  10641. "type": "integer",
  10642. "allOf": [
  10643. {
  10644. "exclusiveMinimum": 0
  10645. }
  10646. ]
  10647. },
  10648. "permissions": {
  10649. "$ref": "#/components/schemas/PermissionV2.Ruleset"
  10650. }
  10651. },
  10652. "required": [
  10653. "id",
  10654. "name",
  10655. "request",
  10656. "mode",
  10657. "hidden",
  10658. "permissions"
  10659. ],
  10660. "additionalProperties": false
  10661. },
  10662. "Plugin.Info": {
  10663. "type": "object",
  10664. "properties": {
  10665. "id": {
  10666. "type": "string"
  10667. }
  10668. },
  10669. "required": [
  10670. "id"
  10671. ],
  10672. "additionalProperties": false
  10673. },
  10674. "Money.USD": {
  10675. "type": "number"
  10676. },
  10677. "TokenUsage.Info": {
  10678. "type": "object",
  10679. "properties": {
  10680. "input": {
  10681. "type": "number"
  10682. },
  10683. "output": {
  10684. "type": "number"
  10685. },
  10686. "reasoning": {
  10687. "type": "number"
  10688. },
  10689. "cache": {
  10690. "type": "object",
  10691. "properties": {
  10692. "read": {
  10693. "type": "number"
  10694. },
  10695. "write": {
  10696. "type": "number"
  10697. }
  10698. },
  10699. "required": [
  10700. "read",
  10701. "write"
  10702. ],
  10703. "additionalProperties": false
  10704. }
  10705. },
  10706. "required": [
  10707. "input",
  10708. "output",
  10709. "reasoning",
  10710. "cache"
  10711. ],
  10712. "additionalProperties": false
  10713. },
  10714. "Location.Ref": {
  10715. "type": "object",
  10716. "properties": {
  10717. "directory": {
  10718. "type": "string"
  10719. },
  10720. "workspaceID": {
  10721. "type": "string",
  10722. "allOf": [
  10723. {
  10724. "pattern": "^wrk"
  10725. }
  10726. ]
  10727. }
  10728. },
  10729. "required": [
  10730. "directory"
  10731. ],
  10732. "additionalProperties": false
  10733. },
  10734. "FileDiff.Info": {
  10735. "type": "object",
  10736. "properties": {
  10737. "file": {
  10738. "type": "string"
  10739. },
  10740. "patch": {
  10741. "type": "string"
  10742. },
  10743. "additions": {
  10744. "type": "integer",
  10745. "allOf": [
  10746. {
  10747. "minimum": 0
  10748. }
  10749. ]
  10750. },
  10751. "deletions": {
  10752. "type": "integer",
  10753. "allOf": [
  10754. {
  10755. "minimum": 0
  10756. }
  10757. ]
  10758. },
  10759. "status": {
  10760. "type": "string",
  10761. "enum": [
  10762. "added",
  10763. "deleted",
  10764. "modified"
  10765. ]
  10766. }
  10767. },
  10768. "required": [
  10769. "file",
  10770. "patch",
  10771. "additions",
  10772. "deletions",
  10773. "status"
  10774. ],
  10775. "additionalProperties": false
  10776. },
  10777. "Session.Revert": {
  10778. "type": "object",
  10779. "properties": {
  10780. "messageID": {
  10781. "type": "string",
  10782. "allOf": [
  10783. {
  10784. "pattern": "^msg_"
  10785. }
  10786. ]
  10787. },
  10788. "partID": {
  10789. "type": "string"
  10790. },
  10791. "snapshot": {
  10792. "type": "string"
  10793. },
  10794. "files": {
  10795. "type": "array",
  10796. "items": {
  10797. "$ref": "#/components/schemas/FileDiff.Info"
  10798. }
  10799. }
  10800. },
  10801. "required": [
  10802. "messageID"
  10803. ],
  10804. "additionalProperties": false
  10805. },
  10806. "Session.Info": {
  10807. "type": "object",
  10808. "properties": {
  10809. "id": {
  10810. "type": "string",
  10811. "allOf": [
  10812. {
  10813. "pattern": "^ses"
  10814. }
  10815. ]
  10816. },
  10817. "parentID": {
  10818. "type": "string",
  10819. "allOf": [
  10820. {
  10821. "pattern": "^ses"
  10822. }
  10823. ]
  10824. },
  10825. "fork": {
  10826. "type": "object",
  10827. "properties": {
  10828. "sessionID": {
  10829. "type": "string",
  10830. "allOf": [
  10831. {
  10832. "pattern": "^ses"
  10833. }
  10834. ]
  10835. },
  10836. "messageID": {
  10837. "type": "string",
  10838. "allOf": [
  10839. {
  10840. "pattern": "^msg_"
  10841. }
  10842. ]
  10843. }
  10844. },
  10845. "required": [
  10846. "sessionID"
  10847. ],
  10848. "additionalProperties": false
  10849. },
  10850. "projectID": {
  10851. "type": "string"
  10852. },
  10853. "agent": {
  10854. "type": "string"
  10855. },
  10856. "model": {
  10857. "$ref": "#/components/schemas/Model.Ref"
  10858. },
  10859. "cost": {
  10860. "$ref": "#/components/schemas/Money.USD"
  10861. },
  10862. "tokens": {
  10863. "$ref": "#/components/schemas/TokenUsage.Info"
  10864. },
  10865. "time": {
  10866. "type": "object",
  10867. "properties": {
  10868. "created": {
  10869. "type": "number"
  10870. },
  10871. "updated": {
  10872. "type": "number"
  10873. },
  10874. "archived": {
  10875. "type": "number"
  10876. }
  10877. },
  10878. "required": [
  10879. "created",
  10880. "updated"
  10881. ],
  10882. "additionalProperties": false
  10883. },
  10884. "title": {
  10885. "type": "string"
  10886. },
  10887. "location": {
  10888. "$ref": "#/components/schemas/Location.Ref"
  10889. },
  10890. "subpath": {
  10891. "type": "string"
  10892. },
  10893. "revert": {
  10894. "$ref": "#/components/schemas/Session.Revert"
  10895. }
  10896. },
  10897. "required": [
  10898. "id",
  10899. "projectID",
  10900. "cost",
  10901. "tokens",
  10902. "time",
  10903. "title",
  10904. "location"
  10905. ],
  10906. "additionalProperties": false
  10907. },
  10908. "SessionsResponse": {
  10909. "type": "object",
  10910. "properties": {
  10911. "data": {
  10912. "type": "array",
  10913. "items": {
  10914. "$ref": "#/components/schemas/Session.Info"
  10915. }
  10916. },
  10917. "cursor": {
  10918. "type": "object",
  10919. "properties": {
  10920. "previous": {
  10921. "anyOf": [
  10922. {
  10923. "type": "string"
  10924. },
  10925. {
  10926. "type": "null"
  10927. }
  10928. ]
  10929. },
  10930. "next": {
  10931. "anyOf": [
  10932. {
  10933. "type": "string"
  10934. },
  10935. {
  10936. "type": "null"
  10937. }
  10938. ]
  10939. }
  10940. },
  10941. "additionalProperties": false
  10942. }
  10943. },
  10944. "required": [
  10945. "data",
  10946. "cursor"
  10947. ],
  10948. "additionalProperties": false
  10949. },
  10950. "InvalidCursorError": {
  10951. "type": "object",
  10952. "properties": {
  10953. "_tag": {
  10954. "type": "string",
  10955. "enum": [
  10956. "InvalidCursorError"
  10957. ]
  10958. },
  10959. "message": {
  10960. "type": "string"
  10961. }
  10962. },
  10963. "required": [
  10964. "_tag",
  10965. "message"
  10966. ],
  10967. "additionalProperties": false
  10968. },
  10969. "InvalidRequestError1": {
  10970. "type": "object",
  10971. "properties": {
  10972. "_tag": {
  10973. "type": "string",
  10974. "enum": [
  10975. "InvalidRequestError"
  10976. ]
  10977. },
  10978. "message": {
  10979. "type": "string"
  10980. },
  10981. "kind": {
  10982. "anyOf": [
  10983. {
  10984. "type": "string"
  10985. },
  10986. {
  10987. "type": "null"
  10988. }
  10989. ]
  10990. },
  10991. "field": {
  10992. "anyOf": [
  10993. {
  10994. "type": "string"
  10995. },
  10996. {
  10997. "type": "null"
  10998. }
  10999. ]
  11000. }
  11001. },
  11002. "required": [
  11003. "_tag",
  11004. "message"
  11005. ],
  11006. "additionalProperties": false
  11007. },
  11008. "SessionActive": {
  11009. "type": "object",
  11010. "properties": {
  11011. "type": {
  11012. "type": "string",
  11013. "enum": [
  11014. "running"
  11015. ]
  11016. }
  11017. },
  11018. "required": [
  11019. "type"
  11020. ],
  11021. "additionalProperties": false
  11022. },
  11023. "SessionNotFoundError": {
  11024. "type": "object",
  11025. "properties": {
  11026. "_tag": {
  11027. "type": "string",
  11028. "enum": [
  11029. "SessionNotFoundError"
  11030. ]
  11031. },
  11032. "sessionID": {
  11033. "type": "string"
  11034. },
  11035. "message": {
  11036. "type": "string"
  11037. }
  11038. },
  11039. "required": [
  11040. "_tag",
  11041. "sessionID",
  11042. "message"
  11043. ],
  11044. "additionalProperties": false
  11045. },
  11046. "MessageNotFoundError": {
  11047. "type": "object",
  11048. "properties": {
  11049. "_tag": {
  11050. "type": "string",
  11051. "enum": [
  11052. "MessageNotFoundError"
  11053. ]
  11054. },
  11055. "sessionID": {
  11056. "type": "string"
  11057. },
  11058. "messageID": {
  11059. "type": "string"
  11060. },
  11061. "message": {
  11062. "type": "string"
  11063. }
  11064. },
  11065. "required": [
  11066. "_tag",
  11067. "sessionID",
  11068. "messageID",
  11069. "message"
  11070. ],
  11071. "additionalProperties": false
  11072. },
  11073. "Prompt.Mention": {
  11074. "type": "object",
  11075. "properties": {
  11076. "start": {
  11077. "type": "number"
  11078. },
  11079. "end": {
  11080. "type": "number"
  11081. },
  11082. "text": {
  11083. "type": "string"
  11084. }
  11085. },
  11086. "required": [
  11087. "start",
  11088. "end",
  11089. "text"
  11090. ],
  11091. "additionalProperties": false
  11092. },
  11093. "PromptInput.FileAttachment": {
  11094. "type": "object",
  11095. "properties": {
  11096. "uri": {
  11097. "type": "string"
  11098. },
  11099. "name": {
  11100. "type": "string"
  11101. },
  11102. "description": {
  11103. "type": "string"
  11104. },
  11105. "mention": {
  11106. "$ref": "#/components/schemas/Prompt.Mention"
  11107. }
  11108. },
  11109. "required": [
  11110. "uri"
  11111. ],
  11112. "additionalProperties": false
  11113. },
  11114. "Prompt.AgentAttachment": {
  11115. "type": "object",
  11116. "properties": {
  11117. "name": {
  11118. "type": "string"
  11119. },
  11120. "mention": {
  11121. "$ref": "#/components/schemas/Prompt.Mention"
  11122. }
  11123. },
  11124. "required": [
  11125. "name"
  11126. ],
  11127. "additionalProperties": false
  11128. },
  11129. "PromptInput": {
  11130. "type": "object",
  11131. "properties": {
  11132. "text": {
  11133. "type": "string"
  11134. },
  11135. "files": {
  11136. "type": "array",
  11137. "items": {
  11138. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  11139. }
  11140. },
  11141. "agents": {
  11142. "type": "array",
  11143. "items": {
  11144. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11145. }
  11146. }
  11147. },
  11148. "required": [
  11149. "text"
  11150. ],
  11151. "additionalProperties": false
  11152. },
  11153. "Prompt.Base64": {
  11154. "type": "string",
  11155. "allOf": [
  11156. {
  11157. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  11158. }
  11159. ]
  11160. },
  11161. "Prompt.FileSource": {
  11162. "anyOf": [
  11163. {
  11164. "type": "object",
  11165. "properties": {
  11166. "type": {
  11167. "type": "string",
  11168. "enum": [
  11169. "inline"
  11170. ]
  11171. }
  11172. },
  11173. "required": [
  11174. "type"
  11175. ],
  11176. "additionalProperties": false
  11177. },
  11178. {
  11179. "type": "object",
  11180. "properties": {
  11181. "type": {
  11182. "type": "string",
  11183. "enum": [
  11184. "uri"
  11185. ]
  11186. },
  11187. "uri": {
  11188. "type": "string"
  11189. }
  11190. },
  11191. "required": [
  11192. "type",
  11193. "uri"
  11194. ],
  11195. "additionalProperties": false
  11196. }
  11197. ]
  11198. },
  11199. "Prompt.FileAttachment": {
  11200. "type": "object",
  11201. "properties": {
  11202. "data": {
  11203. "$ref": "#/components/schemas/Prompt.Base64"
  11204. },
  11205. "mime": {
  11206. "type": "string"
  11207. },
  11208. "source": {
  11209. "$ref": "#/components/schemas/Prompt.FileSource"
  11210. },
  11211. "name": {
  11212. "type": "string"
  11213. },
  11214. "description": {
  11215. "type": "string"
  11216. },
  11217. "mention": {
  11218. "$ref": "#/components/schemas/Prompt.Mention"
  11219. }
  11220. },
  11221. "required": [
  11222. "data",
  11223. "mime",
  11224. "source"
  11225. ],
  11226. "additionalProperties": false
  11227. },
  11228. "Prompt": {
  11229. "type": "object",
  11230. "properties": {
  11231. "text": {
  11232. "type": "string"
  11233. },
  11234. "files": {
  11235. "type": "array",
  11236. "items": {
  11237. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11238. }
  11239. },
  11240. "agents": {
  11241. "type": "array",
  11242. "items": {
  11243. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11244. }
  11245. }
  11246. },
  11247. "required": [
  11248. "text"
  11249. ],
  11250. "additionalProperties": false
  11251. },
  11252. "SessionInput.Admitted": {
  11253. "type": "object",
  11254. "properties": {
  11255. "admittedSeq": {
  11256. "type": "integer",
  11257. "allOf": [
  11258. {
  11259. "minimum": 0
  11260. }
  11261. ]
  11262. },
  11263. "id": {
  11264. "type": "string",
  11265. "allOf": [
  11266. {
  11267. "pattern": "^msg_"
  11268. }
  11269. ]
  11270. },
  11271. "sessionID": {
  11272. "type": "string",
  11273. "allOf": [
  11274. {
  11275. "pattern": "^ses"
  11276. }
  11277. ]
  11278. },
  11279. "prompt": {
  11280. "$ref": "#/components/schemas/Prompt"
  11281. },
  11282. "delivery": {
  11283. "type": "string",
  11284. "enum": [
  11285. "steer",
  11286. "queue"
  11287. ]
  11288. },
  11289. "timeCreated": {
  11290. "type": "number"
  11291. },
  11292. "promotedSeq": {
  11293. "type": "integer",
  11294. "allOf": [
  11295. {
  11296. "minimum": 0
  11297. }
  11298. ]
  11299. }
  11300. },
  11301. "required": [
  11302. "admittedSeq",
  11303. "id",
  11304. "sessionID",
  11305. "prompt",
  11306. "delivery",
  11307. "timeCreated"
  11308. ],
  11309. "additionalProperties": false
  11310. },
  11311. "ConflictError": {
  11312. "type": "object",
  11313. "properties": {
  11314. "_tag": {
  11315. "type": "string",
  11316. "enum": [
  11317. "ConflictError"
  11318. ]
  11319. },
  11320. "message": {
  11321. "type": "string"
  11322. },
  11323. "resource": {
  11324. "anyOf": [
  11325. {
  11326. "type": "string"
  11327. },
  11328. {
  11329. "type": "null"
  11330. }
  11331. ]
  11332. }
  11333. },
  11334. "required": [
  11335. "_tag",
  11336. "message"
  11337. ],
  11338. "additionalProperties": false
  11339. },
  11340. "CommandNotFoundError": {
  11341. "type": "object",
  11342. "properties": {
  11343. "_tag": {
  11344. "type": "string",
  11345. "enum": [
  11346. "CommandNotFoundError"
  11347. ]
  11348. },
  11349. "command": {
  11350. "type": "string"
  11351. },
  11352. "message": {
  11353. "type": "string"
  11354. }
  11355. },
  11356. "required": [
  11357. "_tag",
  11358. "command",
  11359. "message"
  11360. ],
  11361. "additionalProperties": false
  11362. },
  11363. "CommandEvaluationError": {
  11364. "type": "object",
  11365. "properties": {
  11366. "_tag": {
  11367. "type": "string",
  11368. "enum": [
  11369. "CommandEvaluationError"
  11370. ]
  11371. },
  11372. "command": {
  11373. "type": "string"
  11374. },
  11375. "message": {
  11376. "type": "string"
  11377. }
  11378. },
  11379. "required": [
  11380. "_tag",
  11381. "command",
  11382. "message"
  11383. ],
  11384. "additionalProperties": false
  11385. },
  11386. "SkillNotFoundError": {
  11387. "type": "object",
  11388. "properties": {
  11389. "_tag": {
  11390. "type": "string",
  11391. "enum": [
  11392. "SkillNotFoundError"
  11393. ]
  11394. },
  11395. "skill": {
  11396. "type": "string"
  11397. },
  11398. "message": {
  11399. "type": "string"
  11400. }
  11401. },
  11402. "required": [
  11403. "_tag",
  11404. "skill",
  11405. "message"
  11406. ],
  11407. "additionalProperties": false
  11408. },
  11409. "SessionInput.Compaction": {
  11410. "type": "object",
  11411. "properties": {
  11412. "type": {
  11413. "type": "string",
  11414. "enum": [
  11415. "compaction"
  11416. ]
  11417. },
  11418. "admittedSeq": {
  11419. "type": "integer",
  11420. "allOf": [
  11421. {
  11422. "minimum": 0
  11423. }
  11424. ]
  11425. },
  11426. "id": {
  11427. "type": "string",
  11428. "allOf": [
  11429. {
  11430. "pattern": "^msg_"
  11431. }
  11432. ]
  11433. },
  11434. "sessionID": {
  11435. "type": "string",
  11436. "allOf": [
  11437. {
  11438. "pattern": "^ses"
  11439. }
  11440. ]
  11441. },
  11442. "timeCreated": {
  11443. "type": "number"
  11444. },
  11445. "handledSeq": {
  11446. "type": "integer",
  11447. "allOf": [
  11448. {
  11449. "minimum": 0
  11450. }
  11451. ]
  11452. }
  11453. },
  11454. "required": [
  11455. "type",
  11456. "admittedSeq",
  11457. "id",
  11458. "sessionID",
  11459. "timeCreated"
  11460. ],
  11461. "additionalProperties": false
  11462. },
  11463. "ServiceUnavailableError": {
  11464. "type": "object",
  11465. "properties": {
  11466. "_tag": {
  11467. "type": "string",
  11468. "enum": [
  11469. "ServiceUnavailableError"
  11470. ]
  11471. },
  11472. "message": {
  11473. "type": "string"
  11474. },
  11475. "service": {
  11476. "anyOf": [
  11477. {
  11478. "type": "string"
  11479. },
  11480. {
  11481. "type": "null"
  11482. }
  11483. ]
  11484. }
  11485. },
  11486. "required": [
  11487. "_tag",
  11488. "message"
  11489. ],
  11490. "additionalProperties": false
  11491. },
  11492. "SessionBusyError": {
  11493. "type": "object",
  11494. "properties": {
  11495. "_tag": {
  11496. "type": "string",
  11497. "enum": [
  11498. "SessionBusyError"
  11499. ]
  11500. },
  11501. "sessionID": {
  11502. "type": "string"
  11503. },
  11504. "message": {
  11505. "type": "string"
  11506. }
  11507. },
  11508. "required": [
  11509. "_tag",
  11510. "sessionID",
  11511. "message"
  11512. ],
  11513. "additionalProperties": false
  11514. },
  11515. "UnknownError": {
  11516. "type": "object",
  11517. "properties": {
  11518. "_tag": {
  11519. "type": "string",
  11520. "enum": [
  11521. "UnknownError"
  11522. ]
  11523. },
  11524. "message": {
  11525. "type": "string"
  11526. },
  11527. "ref": {
  11528. "anyOf": [
  11529. {
  11530. "type": "string"
  11531. },
  11532. {
  11533. "type": "null"
  11534. }
  11535. ]
  11536. }
  11537. },
  11538. "required": [
  11539. "_tag",
  11540. "message"
  11541. ],
  11542. "additionalProperties": false
  11543. },
  11544. "Session.Message.AgentSelected": {
  11545. "type": "object",
  11546. "properties": {
  11547. "id": {
  11548. "type": "string",
  11549. "allOf": [
  11550. {
  11551. "pattern": "^msg_"
  11552. }
  11553. ]
  11554. },
  11555. "metadata": {
  11556. "type": "object"
  11557. },
  11558. "time": {
  11559. "type": "object",
  11560. "properties": {
  11561. "created": {
  11562. "type": "number"
  11563. }
  11564. },
  11565. "required": [
  11566. "created"
  11567. ],
  11568. "additionalProperties": false
  11569. },
  11570. "type": {
  11571. "type": "string",
  11572. "enum": [
  11573. "agent-switched"
  11574. ]
  11575. },
  11576. "agent": {
  11577. "type": "string"
  11578. }
  11579. },
  11580. "required": [
  11581. "id",
  11582. "time",
  11583. "type",
  11584. "agent"
  11585. ],
  11586. "additionalProperties": false
  11587. },
  11588. "Session.Message.ModelSelected": {
  11589. "type": "object",
  11590. "properties": {
  11591. "id": {
  11592. "type": "string",
  11593. "allOf": [
  11594. {
  11595. "pattern": "^msg_"
  11596. }
  11597. ]
  11598. },
  11599. "metadata": {
  11600. "type": "object"
  11601. },
  11602. "time": {
  11603. "type": "object",
  11604. "properties": {
  11605. "created": {
  11606. "type": "number"
  11607. }
  11608. },
  11609. "required": [
  11610. "created"
  11611. ],
  11612. "additionalProperties": false
  11613. },
  11614. "type": {
  11615. "type": "string",
  11616. "enum": [
  11617. "model-switched"
  11618. ]
  11619. },
  11620. "model": {
  11621. "$ref": "#/components/schemas/Model.Ref"
  11622. },
  11623. "previous": {
  11624. "$ref": "#/components/schemas/Model.Ref"
  11625. }
  11626. },
  11627. "required": [
  11628. "id",
  11629. "time",
  11630. "type",
  11631. "model"
  11632. ],
  11633. "additionalProperties": false
  11634. },
  11635. "Session.Message.User": {
  11636. "type": "object",
  11637. "properties": {
  11638. "id": {
  11639. "type": "string",
  11640. "allOf": [
  11641. {
  11642. "pattern": "^msg_"
  11643. }
  11644. ]
  11645. },
  11646. "metadata": {
  11647. "type": "object"
  11648. },
  11649. "time": {
  11650. "type": "object",
  11651. "properties": {
  11652. "created": {
  11653. "type": "number"
  11654. }
  11655. },
  11656. "required": [
  11657. "created"
  11658. ],
  11659. "additionalProperties": false
  11660. },
  11661. "text": {
  11662. "type": "string"
  11663. },
  11664. "files": {
  11665. "type": "array",
  11666. "items": {
  11667. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11668. }
  11669. },
  11670. "agents": {
  11671. "type": "array",
  11672. "items": {
  11673. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11674. }
  11675. },
  11676. "type": {
  11677. "type": "string",
  11678. "enum": [
  11679. "user"
  11680. ]
  11681. }
  11682. },
  11683. "required": [
  11684. "id",
  11685. "time",
  11686. "text",
  11687. "type"
  11688. ],
  11689. "additionalProperties": false
  11690. },
  11691. "Session.Message.Synthetic": {
  11692. "type": "object",
  11693. "properties": {
  11694. "id": {
  11695. "type": "string",
  11696. "allOf": [
  11697. {
  11698. "pattern": "^msg_"
  11699. }
  11700. ]
  11701. },
  11702. "metadata": {
  11703. "type": "object"
  11704. },
  11705. "time": {
  11706. "type": "object",
  11707. "properties": {
  11708. "created": {
  11709. "type": "number"
  11710. }
  11711. },
  11712. "required": [
  11713. "created"
  11714. ],
  11715. "additionalProperties": false
  11716. },
  11717. "text": {
  11718. "type": "string"
  11719. },
  11720. "description": {
  11721. "type": "string"
  11722. },
  11723. "type": {
  11724. "type": "string",
  11725. "enum": [
  11726. "synthetic"
  11727. ]
  11728. }
  11729. },
  11730. "required": [
  11731. "id",
  11732. "time",
  11733. "text",
  11734. "type"
  11735. ],
  11736. "additionalProperties": false
  11737. },
  11738. "Session.Message.System": {
  11739. "type": "object",
  11740. "properties": {
  11741. "id": {
  11742. "type": "string",
  11743. "allOf": [
  11744. {
  11745. "pattern": "^msg_"
  11746. }
  11747. ]
  11748. },
  11749. "metadata": {
  11750. "type": "object"
  11751. },
  11752. "time": {
  11753. "type": "object",
  11754. "properties": {
  11755. "created": {
  11756. "type": "number"
  11757. }
  11758. },
  11759. "required": [
  11760. "created"
  11761. ],
  11762. "additionalProperties": false
  11763. },
  11764. "type": {
  11765. "type": "string",
  11766. "enum": [
  11767. "system"
  11768. ]
  11769. },
  11770. "text": {
  11771. "type": "string"
  11772. }
  11773. },
  11774. "required": [
  11775. "id",
  11776. "time",
  11777. "type",
  11778. "text"
  11779. ],
  11780. "additionalProperties": false
  11781. },
  11782. "Session.Message.Skill": {
  11783. "type": "object",
  11784. "properties": {
  11785. "id": {
  11786. "type": "string",
  11787. "allOf": [
  11788. {
  11789. "pattern": "^msg_"
  11790. }
  11791. ]
  11792. },
  11793. "metadata": {
  11794. "type": "object"
  11795. },
  11796. "time": {
  11797. "type": "object",
  11798. "properties": {
  11799. "created": {
  11800. "type": "number"
  11801. }
  11802. },
  11803. "required": [
  11804. "created"
  11805. ],
  11806. "additionalProperties": false
  11807. },
  11808. "type": {
  11809. "type": "string",
  11810. "enum": [
  11811. "skill"
  11812. ]
  11813. },
  11814. "skill": {
  11815. "type": "string"
  11816. },
  11817. "name": {
  11818. "type": "string"
  11819. },
  11820. "text": {
  11821. "type": "string"
  11822. }
  11823. },
  11824. "required": [
  11825. "id",
  11826. "time",
  11827. "type",
  11828. "skill",
  11829. "name",
  11830. "text"
  11831. ],
  11832. "additionalProperties": false
  11833. },
  11834. "Session.Message.Shell": {
  11835. "type": "object",
  11836. "properties": {
  11837. "id": {
  11838. "type": "string",
  11839. "allOf": [
  11840. {
  11841. "pattern": "^msg_"
  11842. }
  11843. ]
  11844. },
  11845. "metadata": {
  11846. "type": "object"
  11847. },
  11848. "time": {
  11849. "type": "object",
  11850. "properties": {
  11851. "created": {
  11852. "type": "number"
  11853. },
  11854. "completed": {
  11855. "type": "number"
  11856. }
  11857. },
  11858. "required": [
  11859. "created"
  11860. ],
  11861. "additionalProperties": false
  11862. },
  11863. "type": {
  11864. "type": "string",
  11865. "enum": [
  11866. "shell"
  11867. ]
  11868. },
  11869. "shellID": {
  11870. "type": "string",
  11871. "allOf": [
  11872. {
  11873. "pattern": "^sh_"
  11874. }
  11875. ]
  11876. },
  11877. "command": {
  11878. "type": "string"
  11879. },
  11880. "status": {
  11881. "type": "string",
  11882. "enum": [
  11883. "running",
  11884. "exited",
  11885. "timeout",
  11886. "killed"
  11887. ]
  11888. },
  11889. "exit": {
  11890. "anyOf": [
  11891. {
  11892. "anyOf": [
  11893. {
  11894. "type": "number"
  11895. },
  11896. {
  11897. "type": "string",
  11898. "enum": [
  11899. "NaN"
  11900. ]
  11901. },
  11902. {
  11903. "type": "string",
  11904. "enum": [
  11905. "Infinity"
  11906. ]
  11907. },
  11908. {
  11909. "type": "string",
  11910. "enum": [
  11911. "-Infinity"
  11912. ]
  11913. }
  11914. ]
  11915. },
  11916. {
  11917. "type": "string",
  11918. "enum": [
  11919. "Infinity",
  11920. "-Infinity",
  11921. "NaN"
  11922. ]
  11923. }
  11924. ]
  11925. },
  11926. "output": {
  11927. "type": "object",
  11928. "properties": {
  11929. "output": {
  11930. "type": "string"
  11931. },
  11932. "cursor": {
  11933. "type": "integer",
  11934. "allOf": [
  11935. {
  11936. "minimum": 0
  11937. }
  11938. ]
  11939. },
  11940. "size": {
  11941. "type": "integer",
  11942. "allOf": [
  11943. {
  11944. "minimum": 0
  11945. }
  11946. ]
  11947. },
  11948. "truncated": {
  11949. "type": "boolean"
  11950. }
  11951. },
  11952. "required": [
  11953. "output",
  11954. "cursor",
  11955. "size",
  11956. "truncated"
  11957. ],
  11958. "additionalProperties": false
  11959. }
  11960. },
  11961. "required": [
  11962. "id",
  11963. "time",
  11964. "type",
  11965. "shellID",
  11966. "command",
  11967. "status"
  11968. ],
  11969. "additionalProperties": false
  11970. },
  11971. "Session.Message.Assistant.Text": {
  11972. "type": "object",
  11973. "properties": {
  11974. "type": {
  11975. "type": "string",
  11976. "enum": [
  11977. "text"
  11978. ]
  11979. },
  11980. "text": {
  11981. "type": "string"
  11982. }
  11983. },
  11984. "required": [
  11985. "type",
  11986. "text"
  11987. ],
  11988. "additionalProperties": false
  11989. },
  11990. "Session.Message.ProviderState": {
  11991. "type": "object"
  11992. },
  11993. "Session.Message.Assistant.Reasoning": {
  11994. "type": "object",
  11995. "properties": {
  11996. "type": {
  11997. "type": "string",
  11998. "enum": [
  11999. "reasoning"
  12000. ]
  12001. },
  12002. "text": {
  12003. "type": "string"
  12004. },
  12005. "state": {
  12006. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12007. },
  12008. "time": {
  12009. "type": "object",
  12010. "properties": {
  12011. "created": {
  12012. "type": "number"
  12013. },
  12014. "completed": {
  12015. "type": "number"
  12016. }
  12017. },
  12018. "required": [
  12019. "created"
  12020. ],
  12021. "additionalProperties": false
  12022. }
  12023. },
  12024. "required": [
  12025. "type",
  12026. "text"
  12027. ],
  12028. "additionalProperties": false
  12029. },
  12030. "Session.Message.ToolState.Streaming": {
  12031. "type": "object",
  12032. "properties": {
  12033. "status": {
  12034. "type": "string",
  12035. "enum": [
  12036. "streaming"
  12037. ]
  12038. },
  12039. "input": {
  12040. "type": "string"
  12041. }
  12042. },
  12043. "required": [
  12044. "status",
  12045. "input"
  12046. ],
  12047. "additionalProperties": false
  12048. },
  12049. "Tool.TextContent": {
  12050. "type": "object",
  12051. "properties": {
  12052. "type": {
  12053. "type": "string",
  12054. "enum": [
  12055. "text"
  12056. ]
  12057. },
  12058. "text": {
  12059. "type": "string"
  12060. }
  12061. },
  12062. "required": [
  12063. "type",
  12064. "text"
  12065. ],
  12066. "additionalProperties": false
  12067. },
  12068. "Tool.FileContent": {
  12069. "type": "object",
  12070. "properties": {
  12071. "type": {
  12072. "type": "string",
  12073. "enum": [
  12074. "file"
  12075. ]
  12076. },
  12077. "uri": {
  12078. "type": "string"
  12079. },
  12080. "mime": {
  12081. "type": "string"
  12082. },
  12083. "name": {
  12084. "type": "string"
  12085. }
  12086. },
  12087. "required": [
  12088. "type",
  12089. "uri",
  12090. "mime"
  12091. ],
  12092. "additionalProperties": false
  12093. },
  12094. "LLM.ToolContent": {
  12095. "anyOf": [
  12096. {
  12097. "$ref": "#/components/schemas/Tool.TextContent"
  12098. },
  12099. {
  12100. "$ref": "#/components/schemas/Tool.FileContent"
  12101. }
  12102. ]
  12103. },
  12104. "Session.Message.ToolState.Running": {
  12105. "type": "object",
  12106. "properties": {
  12107. "status": {
  12108. "type": "string",
  12109. "enum": [
  12110. "running"
  12111. ]
  12112. },
  12113. "input": {
  12114. "type": "object"
  12115. },
  12116. "structured": {
  12117. "type": "object"
  12118. },
  12119. "content": {
  12120. "type": "array",
  12121. "items": {
  12122. "$ref": "#/components/schemas/LLM.ToolContent"
  12123. }
  12124. }
  12125. },
  12126. "required": [
  12127. "status",
  12128. "input",
  12129. "structured",
  12130. "content"
  12131. ],
  12132. "additionalProperties": false
  12133. },
  12134. "Session.Message.ToolState.Completed": {
  12135. "type": "object",
  12136. "properties": {
  12137. "status": {
  12138. "type": "string",
  12139. "enum": [
  12140. "completed"
  12141. ]
  12142. },
  12143. "input": {
  12144. "type": "object"
  12145. },
  12146. "content": {
  12147. "type": "array",
  12148. "items": {
  12149. "$ref": "#/components/schemas/LLM.ToolContent"
  12150. }
  12151. },
  12152. "structured": {
  12153. "type": "object"
  12154. },
  12155. "result": {}
  12156. },
  12157. "required": [
  12158. "status",
  12159. "input",
  12160. "content",
  12161. "structured"
  12162. ],
  12163. "additionalProperties": false
  12164. },
  12165. "Session.StructuredError": {
  12166. "type": "object",
  12167. "properties": {
  12168. "type": {
  12169. "type": "string"
  12170. },
  12171. "message": {
  12172. "type": "string"
  12173. }
  12174. },
  12175. "required": [
  12176. "type",
  12177. "message"
  12178. ],
  12179. "additionalProperties": false
  12180. },
  12181. "Session.Message.ToolState.Error": {
  12182. "type": "object",
  12183. "properties": {
  12184. "status": {
  12185. "type": "string",
  12186. "enum": [
  12187. "error"
  12188. ]
  12189. },
  12190. "input": {
  12191. "type": "object"
  12192. },
  12193. "content": {
  12194. "type": "array",
  12195. "items": {
  12196. "$ref": "#/components/schemas/LLM.ToolContent"
  12197. }
  12198. },
  12199. "structured": {
  12200. "type": "object"
  12201. },
  12202. "error": {
  12203. "$ref": "#/components/schemas/Session.StructuredError"
  12204. },
  12205. "result": {}
  12206. },
  12207. "required": [
  12208. "status",
  12209. "input",
  12210. "content",
  12211. "structured",
  12212. "error"
  12213. ],
  12214. "additionalProperties": false
  12215. },
  12216. "Session.Message.Assistant.Tool": {
  12217. "type": "object",
  12218. "properties": {
  12219. "type": {
  12220. "type": "string",
  12221. "enum": [
  12222. "tool"
  12223. ]
  12224. },
  12225. "id": {
  12226. "type": "string"
  12227. },
  12228. "name": {
  12229. "type": "string"
  12230. },
  12231. "executed": {
  12232. "type": "boolean"
  12233. },
  12234. "providerState": {
  12235. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12236. },
  12237. "providerResultState": {
  12238. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12239. },
  12240. "state": {
  12241. "anyOf": [
  12242. {
  12243. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  12244. },
  12245. {
  12246. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  12247. },
  12248. {
  12249. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  12250. },
  12251. {
  12252. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  12253. }
  12254. ]
  12255. },
  12256. "time": {
  12257. "type": "object",
  12258. "properties": {
  12259. "created": {
  12260. "type": "number"
  12261. },
  12262. "ran": {
  12263. "type": "number"
  12264. },
  12265. "completed": {
  12266. "type": "number"
  12267. }
  12268. },
  12269. "required": [
  12270. "created"
  12271. ],
  12272. "additionalProperties": false
  12273. }
  12274. },
  12275. "required": [
  12276. "type",
  12277. "id",
  12278. "name",
  12279. "state",
  12280. "time"
  12281. ],
  12282. "additionalProperties": false
  12283. },
  12284. "Session.Message.Assistant.Retry": {
  12285. "type": "object",
  12286. "properties": {
  12287. "attempt": {
  12288. "type": "integer",
  12289. "allOf": [
  12290. {
  12291. "exclusiveMinimum": 0
  12292. }
  12293. ]
  12294. },
  12295. "at": {
  12296. "type": "number"
  12297. },
  12298. "error": {
  12299. "$ref": "#/components/schemas/Session.StructuredError"
  12300. }
  12301. },
  12302. "required": [
  12303. "attempt",
  12304. "at",
  12305. "error"
  12306. ],
  12307. "additionalProperties": false
  12308. },
  12309. "Session.Message.Assistant": {
  12310. "type": "object",
  12311. "properties": {
  12312. "id": {
  12313. "type": "string",
  12314. "allOf": [
  12315. {
  12316. "pattern": "^msg_"
  12317. }
  12318. ]
  12319. },
  12320. "metadata": {
  12321. "type": "object"
  12322. },
  12323. "time": {
  12324. "type": "object",
  12325. "properties": {
  12326. "created": {
  12327. "type": "number"
  12328. },
  12329. "completed": {
  12330. "type": "number"
  12331. }
  12332. },
  12333. "required": [
  12334. "created"
  12335. ],
  12336. "additionalProperties": false
  12337. },
  12338. "type": {
  12339. "type": "string",
  12340. "enum": [
  12341. "assistant"
  12342. ]
  12343. },
  12344. "agent": {
  12345. "type": "string"
  12346. },
  12347. "model": {
  12348. "$ref": "#/components/schemas/Model.Ref"
  12349. },
  12350. "content": {
  12351. "type": "array",
  12352. "items": {
  12353. "anyOf": [
  12354. {
  12355. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  12356. },
  12357. {
  12358. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  12359. },
  12360. {
  12361. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  12362. }
  12363. ]
  12364. }
  12365. },
  12366. "snapshot": {
  12367. "type": "object",
  12368. "properties": {
  12369. "start": {
  12370. "type": "string"
  12371. },
  12372. "end": {
  12373. "type": "string"
  12374. },
  12375. "files": {
  12376. "type": "array",
  12377. "items": {
  12378. "type": "string"
  12379. }
  12380. }
  12381. },
  12382. "additionalProperties": false
  12383. },
  12384. "finish": {
  12385. "type": "string",
  12386. "enum": [
  12387. "stop",
  12388. "length",
  12389. "tool-calls",
  12390. "content-filter",
  12391. "error",
  12392. "unknown"
  12393. ]
  12394. },
  12395. "cost": {
  12396. "$ref": "#/components/schemas/Money.USD"
  12397. },
  12398. "tokens": {
  12399. "$ref": "#/components/schemas/TokenUsage.Info"
  12400. },
  12401. "error": {
  12402. "$ref": "#/components/schemas/Session.StructuredError"
  12403. },
  12404. "retry": {
  12405. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  12406. }
  12407. },
  12408. "required": [
  12409. "id",
  12410. "time",
  12411. "type",
  12412. "agent",
  12413. "model",
  12414. "content"
  12415. ],
  12416. "additionalProperties": false
  12417. },
  12418. "Session.Message.Compaction.Running": {
  12419. "type": "object",
  12420. "properties": {
  12421. "type": {
  12422. "type": "string",
  12423. "enum": [
  12424. "compaction"
  12425. ]
  12426. },
  12427. "id": {
  12428. "type": "string",
  12429. "allOf": [
  12430. {
  12431. "pattern": "^msg_"
  12432. }
  12433. ]
  12434. },
  12435. "metadata": {
  12436. "type": "object"
  12437. },
  12438. "time": {
  12439. "type": "object",
  12440. "properties": {
  12441. "created": {
  12442. "type": "number"
  12443. }
  12444. },
  12445. "required": [
  12446. "created"
  12447. ],
  12448. "additionalProperties": false
  12449. },
  12450. "status": {
  12451. "type": "string",
  12452. "enum": [
  12453. "running"
  12454. ]
  12455. },
  12456. "reason": {
  12457. "type": "string",
  12458. "enum": [
  12459. "auto",
  12460. "manual"
  12461. ]
  12462. },
  12463. "summary": {
  12464. "type": "string"
  12465. },
  12466. "recent": {
  12467. "type": "string"
  12468. }
  12469. },
  12470. "required": [
  12471. "type",
  12472. "id",
  12473. "time",
  12474. "status",
  12475. "reason",
  12476. "summary",
  12477. "recent"
  12478. ],
  12479. "additionalProperties": false
  12480. },
  12481. "Session.Message.Compaction.Completed": {
  12482. "type": "object",
  12483. "properties": {
  12484. "type": {
  12485. "type": "string",
  12486. "enum": [
  12487. "compaction"
  12488. ]
  12489. },
  12490. "id": {
  12491. "type": "string",
  12492. "allOf": [
  12493. {
  12494. "pattern": "^msg_"
  12495. }
  12496. ]
  12497. },
  12498. "metadata": {
  12499. "type": "object"
  12500. },
  12501. "time": {
  12502. "type": "object",
  12503. "properties": {
  12504. "created": {
  12505. "type": "number"
  12506. }
  12507. },
  12508. "required": [
  12509. "created"
  12510. ],
  12511. "additionalProperties": false
  12512. },
  12513. "status": {
  12514. "type": "string",
  12515. "enum": [
  12516. "completed"
  12517. ]
  12518. },
  12519. "reason": {
  12520. "type": "string",
  12521. "enum": [
  12522. "auto",
  12523. "manual"
  12524. ]
  12525. },
  12526. "summary": {
  12527. "type": "string"
  12528. },
  12529. "recent": {
  12530. "type": "string"
  12531. }
  12532. },
  12533. "required": [
  12534. "type",
  12535. "id",
  12536. "time",
  12537. "status",
  12538. "reason",
  12539. "summary",
  12540. "recent"
  12541. ],
  12542. "additionalProperties": false
  12543. },
  12544. "Session.Message.Compaction.Failed": {
  12545. "type": "object",
  12546. "properties": {
  12547. "type": {
  12548. "type": "string",
  12549. "enum": [
  12550. "compaction"
  12551. ]
  12552. },
  12553. "id": {
  12554. "type": "string",
  12555. "allOf": [
  12556. {
  12557. "pattern": "^msg_"
  12558. }
  12559. ]
  12560. },
  12561. "metadata": {
  12562. "type": "object"
  12563. },
  12564. "time": {
  12565. "type": "object",
  12566. "properties": {
  12567. "created": {
  12568. "type": "number"
  12569. }
  12570. },
  12571. "required": [
  12572. "created"
  12573. ],
  12574. "additionalProperties": false
  12575. },
  12576. "status": {
  12577. "type": "string",
  12578. "enum": [
  12579. "failed"
  12580. ]
  12581. },
  12582. "reason": {
  12583. "type": "string",
  12584. "enum": [
  12585. "auto",
  12586. "manual"
  12587. ]
  12588. },
  12589. "error": {
  12590. "$ref": "#/components/schemas/Session.StructuredError"
  12591. }
  12592. },
  12593. "required": [
  12594. "type",
  12595. "id",
  12596. "time",
  12597. "status",
  12598. "reason",
  12599. "error"
  12600. ],
  12601. "additionalProperties": false
  12602. },
  12603. "Session.Message.Compaction": {
  12604. "anyOf": [
  12605. {
  12606. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  12607. },
  12608. {
  12609. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  12610. },
  12611. {
  12612. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  12613. }
  12614. ]
  12615. },
  12616. "Session.Message.Info": {
  12617. "anyOf": [
  12618. {
  12619. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  12620. },
  12621. {
  12622. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  12623. },
  12624. {
  12625. "$ref": "#/components/schemas/Session.Message.User"
  12626. },
  12627. {
  12628. "$ref": "#/components/schemas/Session.Message.Synthetic"
  12629. },
  12630. {
  12631. "$ref": "#/components/schemas/Session.Message.System"
  12632. },
  12633. {
  12634. "$ref": "#/components/schemas/Session.Message.Skill"
  12635. },
  12636. {
  12637. "$ref": "#/components/schemas/Session.Message.Shell"
  12638. },
  12639. {
  12640. "$ref": "#/components/schemas/Session.Message.Assistant"
  12641. },
  12642. {
  12643. "$ref": "#/components/schemas/Session.Message.Compaction"
  12644. }
  12645. ]
  12646. },
  12647. "InstructionEntry.Key": {
  12648. "type": "string",
  12649. "allOf": [
  12650. {
  12651. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  12652. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  12653. }
  12654. ]
  12655. },
  12656. "InstructionEntry.Info": {
  12657. "type": "object",
  12658. "properties": {
  12659. "key": {
  12660. "$ref": "#/components/schemas/InstructionEntry.Key"
  12661. },
  12662. "value": {}
  12663. },
  12664. "required": [
  12665. "key",
  12666. "value"
  12667. ],
  12668. "additionalProperties": false
  12669. },
  12670. "session.agent.selected": {
  12671. "type": "object",
  12672. "properties": {
  12673. "id": {
  12674. "type": "string",
  12675. "allOf": [
  12676. {
  12677. "pattern": "^evt_"
  12678. }
  12679. ]
  12680. },
  12681. "created": {
  12682. "type": "number"
  12683. },
  12684. "metadata": {
  12685. "type": "object"
  12686. },
  12687. "type": {
  12688. "type": "string",
  12689. "enum": [
  12690. "session.agent.selected"
  12691. ]
  12692. },
  12693. "durable": {
  12694. "type": "object",
  12695. "properties": {
  12696. "aggregateID": {
  12697. "type": "string"
  12698. },
  12699. "seq": {
  12700. "type": "integer",
  12701. "allOf": [
  12702. {
  12703. "minimum": 0
  12704. }
  12705. ]
  12706. },
  12707. "version": {
  12708. "type": "number",
  12709. "enum": [
  12710. 1
  12711. ]
  12712. }
  12713. },
  12714. "required": [
  12715. "aggregateID",
  12716. "seq",
  12717. "version"
  12718. ],
  12719. "additionalProperties": false
  12720. },
  12721. "location": {
  12722. "$ref": "#/components/schemas/Location.Ref"
  12723. },
  12724. "data": {
  12725. "type": "object",
  12726. "properties": {
  12727. "sessionID": {
  12728. "type": "string",
  12729. "allOf": [
  12730. {
  12731. "pattern": "^ses"
  12732. }
  12733. ]
  12734. },
  12735. "agent": {
  12736. "type": "string"
  12737. }
  12738. },
  12739. "required": [
  12740. "sessionID",
  12741. "agent"
  12742. ],
  12743. "additionalProperties": false
  12744. }
  12745. },
  12746. "required": [
  12747. "id",
  12748. "created",
  12749. "type",
  12750. "durable",
  12751. "data"
  12752. ],
  12753. "additionalProperties": false
  12754. },
  12755. "session.model.selected": {
  12756. "type": "object",
  12757. "properties": {
  12758. "id": {
  12759. "type": "string",
  12760. "allOf": [
  12761. {
  12762. "pattern": "^evt_"
  12763. }
  12764. ]
  12765. },
  12766. "created": {
  12767. "type": "number"
  12768. },
  12769. "metadata": {
  12770. "type": "object"
  12771. },
  12772. "type": {
  12773. "type": "string",
  12774. "enum": [
  12775. "session.model.selected"
  12776. ]
  12777. },
  12778. "durable": {
  12779. "type": "object",
  12780. "properties": {
  12781. "aggregateID": {
  12782. "type": "string"
  12783. },
  12784. "seq": {
  12785. "type": "integer",
  12786. "allOf": [
  12787. {
  12788. "minimum": 0
  12789. }
  12790. ]
  12791. },
  12792. "version": {
  12793. "type": "number",
  12794. "enum": [
  12795. 1
  12796. ]
  12797. }
  12798. },
  12799. "required": [
  12800. "aggregateID",
  12801. "seq",
  12802. "version"
  12803. ],
  12804. "additionalProperties": false
  12805. },
  12806. "location": {
  12807. "$ref": "#/components/schemas/Location.Ref"
  12808. },
  12809. "data": {
  12810. "type": "object",
  12811. "properties": {
  12812. "sessionID": {
  12813. "type": "string",
  12814. "allOf": [
  12815. {
  12816. "pattern": "^ses"
  12817. }
  12818. ]
  12819. },
  12820. "model": {
  12821. "$ref": "#/components/schemas/Model.Ref"
  12822. }
  12823. },
  12824. "required": [
  12825. "sessionID",
  12826. "model"
  12827. ],
  12828. "additionalProperties": false
  12829. }
  12830. },
  12831. "required": [
  12832. "id",
  12833. "created",
  12834. "type",
  12835. "durable",
  12836. "data"
  12837. ],
  12838. "additionalProperties": false
  12839. },
  12840. "session.moved": {
  12841. "type": "object",
  12842. "properties": {
  12843. "id": {
  12844. "type": "string",
  12845. "allOf": [
  12846. {
  12847. "pattern": "^evt_"
  12848. }
  12849. ]
  12850. },
  12851. "created": {
  12852. "type": "number"
  12853. },
  12854. "metadata": {
  12855. "type": "object"
  12856. },
  12857. "type": {
  12858. "type": "string",
  12859. "enum": [
  12860. "session.moved"
  12861. ]
  12862. },
  12863. "durable": {
  12864. "type": "object",
  12865. "properties": {
  12866. "aggregateID": {
  12867. "type": "string"
  12868. },
  12869. "seq": {
  12870. "type": "integer",
  12871. "allOf": [
  12872. {
  12873. "minimum": 0
  12874. }
  12875. ]
  12876. },
  12877. "version": {
  12878. "type": "number",
  12879. "enum": [
  12880. 1
  12881. ]
  12882. }
  12883. },
  12884. "required": [
  12885. "aggregateID",
  12886. "seq",
  12887. "version"
  12888. ],
  12889. "additionalProperties": false
  12890. },
  12891. "location": {
  12892. "$ref": "#/components/schemas/Location.Ref"
  12893. },
  12894. "data": {
  12895. "type": "object",
  12896. "properties": {
  12897. "sessionID": {
  12898. "type": "string",
  12899. "allOf": [
  12900. {
  12901. "pattern": "^ses"
  12902. }
  12903. ]
  12904. },
  12905. "location": {
  12906. "$ref": "#/components/schemas/Location.Ref"
  12907. },
  12908. "subpath": {
  12909. "type": "string"
  12910. }
  12911. },
  12912. "required": [
  12913. "sessionID",
  12914. "location"
  12915. ],
  12916. "additionalProperties": false
  12917. }
  12918. },
  12919. "required": [
  12920. "id",
  12921. "created",
  12922. "type",
  12923. "durable",
  12924. "data"
  12925. ],
  12926. "additionalProperties": false
  12927. },
  12928. "session.renamed": {
  12929. "type": "object",
  12930. "properties": {
  12931. "id": {
  12932. "type": "string",
  12933. "allOf": [
  12934. {
  12935. "pattern": "^evt_"
  12936. }
  12937. ]
  12938. },
  12939. "created": {
  12940. "type": "number"
  12941. },
  12942. "metadata": {
  12943. "type": "object"
  12944. },
  12945. "type": {
  12946. "type": "string",
  12947. "enum": [
  12948. "session.renamed"
  12949. ]
  12950. },
  12951. "durable": {
  12952. "type": "object",
  12953. "properties": {
  12954. "aggregateID": {
  12955. "type": "string"
  12956. },
  12957. "seq": {
  12958. "type": "integer",
  12959. "allOf": [
  12960. {
  12961. "minimum": 0
  12962. }
  12963. ]
  12964. },
  12965. "version": {
  12966. "type": "number",
  12967. "enum": [
  12968. 1
  12969. ]
  12970. }
  12971. },
  12972. "required": [
  12973. "aggregateID",
  12974. "seq",
  12975. "version"
  12976. ],
  12977. "additionalProperties": false
  12978. },
  12979. "location": {
  12980. "$ref": "#/components/schemas/Location.Ref"
  12981. },
  12982. "data": {
  12983. "type": "object",
  12984. "properties": {
  12985. "sessionID": {
  12986. "type": "string",
  12987. "allOf": [
  12988. {
  12989. "pattern": "^ses"
  12990. }
  12991. ]
  12992. },
  12993. "title": {
  12994. "type": "string"
  12995. }
  12996. },
  12997. "required": [
  12998. "sessionID",
  12999. "title"
  13000. ],
  13001. "additionalProperties": false
  13002. }
  13003. },
  13004. "required": [
  13005. "id",
  13006. "created",
  13007. "type",
  13008. "durable",
  13009. "data"
  13010. ],
  13011. "additionalProperties": false
  13012. },
  13013. "session.deleted": {
  13014. "type": "object",
  13015. "properties": {
  13016. "id": {
  13017. "type": "string",
  13018. "allOf": [
  13019. {
  13020. "pattern": "^evt_"
  13021. }
  13022. ]
  13023. },
  13024. "created": {
  13025. "type": "number"
  13026. },
  13027. "metadata": {
  13028. "type": "object"
  13029. },
  13030. "type": {
  13031. "type": "string",
  13032. "enum": [
  13033. "session.deleted"
  13034. ]
  13035. },
  13036. "durable": {
  13037. "type": "object",
  13038. "properties": {
  13039. "aggregateID": {
  13040. "type": "string"
  13041. },
  13042. "seq": {
  13043. "type": "integer",
  13044. "allOf": [
  13045. {
  13046. "minimum": 0
  13047. }
  13048. ]
  13049. },
  13050. "version": {
  13051. "type": "number",
  13052. "enum": [
  13053. 2
  13054. ]
  13055. }
  13056. },
  13057. "required": [
  13058. "aggregateID",
  13059. "seq",
  13060. "version"
  13061. ],
  13062. "additionalProperties": false
  13063. },
  13064. "location": {
  13065. "$ref": "#/components/schemas/Location.Ref"
  13066. },
  13067. "data": {
  13068. "type": "object",
  13069. "properties": {
  13070. "sessionID": {
  13071. "type": "string",
  13072. "allOf": [
  13073. {
  13074. "pattern": "^ses"
  13075. }
  13076. ]
  13077. }
  13078. },
  13079. "required": [
  13080. "sessionID"
  13081. ],
  13082. "additionalProperties": false
  13083. }
  13084. },
  13085. "required": [
  13086. "id",
  13087. "created",
  13088. "type",
  13089. "durable",
  13090. "data"
  13091. ],
  13092. "additionalProperties": false
  13093. },
  13094. "session.forked": {
  13095. "type": "object",
  13096. "properties": {
  13097. "id": {
  13098. "type": "string",
  13099. "allOf": [
  13100. {
  13101. "pattern": "^evt_"
  13102. }
  13103. ]
  13104. },
  13105. "created": {
  13106. "type": "number"
  13107. },
  13108. "metadata": {
  13109. "type": "object"
  13110. },
  13111. "type": {
  13112. "type": "string",
  13113. "enum": [
  13114. "session.forked"
  13115. ]
  13116. },
  13117. "durable": {
  13118. "type": "object",
  13119. "properties": {
  13120. "aggregateID": {
  13121. "type": "string"
  13122. },
  13123. "seq": {
  13124. "type": "integer",
  13125. "allOf": [
  13126. {
  13127. "minimum": 0
  13128. }
  13129. ]
  13130. },
  13131. "version": {
  13132. "type": "number",
  13133. "enum": [
  13134. 1
  13135. ]
  13136. }
  13137. },
  13138. "required": [
  13139. "aggregateID",
  13140. "seq",
  13141. "version"
  13142. ],
  13143. "additionalProperties": false
  13144. },
  13145. "location": {
  13146. "$ref": "#/components/schemas/Location.Ref"
  13147. },
  13148. "data": {
  13149. "type": "object",
  13150. "properties": {
  13151. "sessionID": {
  13152. "type": "string",
  13153. "allOf": [
  13154. {
  13155. "pattern": "^ses"
  13156. }
  13157. ]
  13158. },
  13159. "parentID": {
  13160. "type": "string",
  13161. "allOf": [
  13162. {
  13163. "pattern": "^ses"
  13164. }
  13165. ]
  13166. },
  13167. "from": {
  13168. "type": "string",
  13169. "allOf": [
  13170. {
  13171. "pattern": "^msg_"
  13172. }
  13173. ]
  13174. }
  13175. },
  13176. "required": [
  13177. "sessionID",
  13178. "parentID"
  13179. ],
  13180. "additionalProperties": false
  13181. }
  13182. },
  13183. "required": [
  13184. "id",
  13185. "created",
  13186. "type",
  13187. "durable",
  13188. "data"
  13189. ],
  13190. "additionalProperties": false
  13191. },
  13192. "session.prompt.promoted": {
  13193. "type": "object",
  13194. "properties": {
  13195. "id": {
  13196. "type": "string",
  13197. "allOf": [
  13198. {
  13199. "pattern": "^evt_"
  13200. }
  13201. ]
  13202. },
  13203. "created": {
  13204. "type": "number"
  13205. },
  13206. "metadata": {
  13207. "type": "object"
  13208. },
  13209. "type": {
  13210. "type": "string",
  13211. "enum": [
  13212. "session.prompt.promoted"
  13213. ]
  13214. },
  13215. "durable": {
  13216. "type": "object",
  13217. "properties": {
  13218. "aggregateID": {
  13219. "type": "string"
  13220. },
  13221. "seq": {
  13222. "type": "integer",
  13223. "allOf": [
  13224. {
  13225. "minimum": 0
  13226. }
  13227. ]
  13228. },
  13229. "version": {
  13230. "type": "number",
  13231. "enum": [
  13232. 1
  13233. ]
  13234. }
  13235. },
  13236. "required": [
  13237. "aggregateID",
  13238. "seq",
  13239. "version"
  13240. ],
  13241. "additionalProperties": false
  13242. },
  13243. "location": {
  13244. "$ref": "#/components/schemas/Location.Ref"
  13245. },
  13246. "data": {
  13247. "type": "object",
  13248. "properties": {
  13249. "sessionID": {
  13250. "type": "string",
  13251. "allOf": [
  13252. {
  13253. "pattern": "^ses"
  13254. }
  13255. ]
  13256. },
  13257. "inputID": {
  13258. "type": "string",
  13259. "allOf": [
  13260. {
  13261. "pattern": "^msg_"
  13262. }
  13263. ]
  13264. }
  13265. },
  13266. "required": [
  13267. "sessionID",
  13268. "inputID"
  13269. ],
  13270. "additionalProperties": false
  13271. }
  13272. },
  13273. "required": [
  13274. "id",
  13275. "created",
  13276. "type",
  13277. "durable",
  13278. "data"
  13279. ],
  13280. "additionalProperties": false
  13281. },
  13282. "session.prompt.admitted": {
  13283. "type": "object",
  13284. "properties": {
  13285. "id": {
  13286. "type": "string",
  13287. "allOf": [
  13288. {
  13289. "pattern": "^evt_"
  13290. }
  13291. ]
  13292. },
  13293. "created": {
  13294. "type": "number"
  13295. },
  13296. "metadata": {
  13297. "type": "object"
  13298. },
  13299. "type": {
  13300. "type": "string",
  13301. "enum": [
  13302. "session.prompt.admitted"
  13303. ]
  13304. },
  13305. "durable": {
  13306. "type": "object",
  13307. "properties": {
  13308. "aggregateID": {
  13309. "type": "string"
  13310. },
  13311. "seq": {
  13312. "type": "integer",
  13313. "allOf": [
  13314. {
  13315. "minimum": 0
  13316. }
  13317. ]
  13318. },
  13319. "version": {
  13320. "type": "number",
  13321. "enum": [
  13322. 1
  13323. ]
  13324. }
  13325. },
  13326. "required": [
  13327. "aggregateID",
  13328. "seq",
  13329. "version"
  13330. ],
  13331. "additionalProperties": false
  13332. },
  13333. "location": {
  13334. "$ref": "#/components/schemas/Location.Ref"
  13335. },
  13336. "data": {
  13337. "type": "object",
  13338. "properties": {
  13339. "sessionID": {
  13340. "type": "string",
  13341. "allOf": [
  13342. {
  13343. "pattern": "^ses"
  13344. }
  13345. ]
  13346. },
  13347. "inputID": {
  13348. "type": "string",
  13349. "allOf": [
  13350. {
  13351. "pattern": "^msg_"
  13352. }
  13353. ]
  13354. },
  13355. "prompt": {
  13356. "$ref": "#/components/schemas/Prompt"
  13357. },
  13358. "delivery": {
  13359. "type": "string",
  13360. "enum": [
  13361. "steer",
  13362. "queue"
  13363. ]
  13364. }
  13365. },
  13366. "required": [
  13367. "sessionID",
  13368. "inputID",
  13369. "prompt",
  13370. "delivery"
  13371. ],
  13372. "additionalProperties": false
  13373. }
  13374. },
  13375. "required": [
  13376. "id",
  13377. "created",
  13378. "type",
  13379. "durable",
  13380. "data"
  13381. ],
  13382. "additionalProperties": false
  13383. },
  13384. "session.execution.started": {
  13385. "type": "object",
  13386. "properties": {
  13387. "id": {
  13388. "type": "string",
  13389. "allOf": [
  13390. {
  13391. "pattern": "^evt_"
  13392. }
  13393. ]
  13394. },
  13395. "created": {
  13396. "type": "number"
  13397. },
  13398. "metadata": {
  13399. "type": "object"
  13400. },
  13401. "type": {
  13402. "type": "string",
  13403. "enum": [
  13404. "session.execution.started"
  13405. ]
  13406. },
  13407. "durable": {
  13408. "type": "object",
  13409. "properties": {
  13410. "aggregateID": {
  13411. "type": "string"
  13412. },
  13413. "seq": {
  13414. "type": "integer",
  13415. "allOf": [
  13416. {
  13417. "minimum": 0
  13418. }
  13419. ]
  13420. },
  13421. "version": {
  13422. "type": "number",
  13423. "enum": [
  13424. 1
  13425. ]
  13426. }
  13427. },
  13428. "required": [
  13429. "aggregateID",
  13430. "seq",
  13431. "version"
  13432. ],
  13433. "additionalProperties": false
  13434. },
  13435. "location": {
  13436. "$ref": "#/components/schemas/Location.Ref"
  13437. },
  13438. "data": {
  13439. "type": "object",
  13440. "properties": {
  13441. "sessionID": {
  13442. "type": "string",
  13443. "allOf": [
  13444. {
  13445. "pattern": "^ses"
  13446. }
  13447. ]
  13448. }
  13449. },
  13450. "required": [
  13451. "sessionID"
  13452. ],
  13453. "additionalProperties": false
  13454. }
  13455. },
  13456. "required": [
  13457. "id",
  13458. "created",
  13459. "type",
  13460. "durable",
  13461. "data"
  13462. ],
  13463. "additionalProperties": false
  13464. },
  13465. "session.execution.succeeded": {
  13466. "type": "object",
  13467. "properties": {
  13468. "id": {
  13469. "type": "string",
  13470. "allOf": [
  13471. {
  13472. "pattern": "^evt_"
  13473. }
  13474. ]
  13475. },
  13476. "created": {
  13477. "type": "number"
  13478. },
  13479. "metadata": {
  13480. "type": "object"
  13481. },
  13482. "type": {
  13483. "type": "string",
  13484. "enum": [
  13485. "session.execution.succeeded"
  13486. ]
  13487. },
  13488. "durable": {
  13489. "type": "object",
  13490. "properties": {
  13491. "aggregateID": {
  13492. "type": "string"
  13493. },
  13494. "seq": {
  13495. "type": "integer",
  13496. "allOf": [
  13497. {
  13498. "minimum": 0
  13499. }
  13500. ]
  13501. },
  13502. "version": {
  13503. "type": "number",
  13504. "enum": [
  13505. 1
  13506. ]
  13507. }
  13508. },
  13509. "required": [
  13510. "aggregateID",
  13511. "seq",
  13512. "version"
  13513. ],
  13514. "additionalProperties": false
  13515. },
  13516. "location": {
  13517. "$ref": "#/components/schemas/Location.Ref"
  13518. },
  13519. "data": {
  13520. "type": "object",
  13521. "properties": {
  13522. "sessionID": {
  13523. "type": "string",
  13524. "allOf": [
  13525. {
  13526. "pattern": "^ses"
  13527. }
  13528. ]
  13529. }
  13530. },
  13531. "required": [
  13532. "sessionID"
  13533. ],
  13534. "additionalProperties": false
  13535. }
  13536. },
  13537. "required": [
  13538. "id",
  13539. "created",
  13540. "type",
  13541. "durable",
  13542. "data"
  13543. ],
  13544. "additionalProperties": false
  13545. },
  13546. "session.execution.failed": {
  13547. "type": "object",
  13548. "properties": {
  13549. "id": {
  13550. "type": "string",
  13551. "allOf": [
  13552. {
  13553. "pattern": "^evt_"
  13554. }
  13555. ]
  13556. },
  13557. "created": {
  13558. "type": "number"
  13559. },
  13560. "metadata": {
  13561. "type": "object"
  13562. },
  13563. "type": {
  13564. "type": "string",
  13565. "enum": [
  13566. "session.execution.failed"
  13567. ]
  13568. },
  13569. "durable": {
  13570. "type": "object",
  13571. "properties": {
  13572. "aggregateID": {
  13573. "type": "string"
  13574. },
  13575. "seq": {
  13576. "type": "integer",
  13577. "allOf": [
  13578. {
  13579. "minimum": 0
  13580. }
  13581. ]
  13582. },
  13583. "version": {
  13584. "type": "number",
  13585. "enum": [
  13586. 1
  13587. ]
  13588. }
  13589. },
  13590. "required": [
  13591. "aggregateID",
  13592. "seq",
  13593. "version"
  13594. ],
  13595. "additionalProperties": false
  13596. },
  13597. "location": {
  13598. "$ref": "#/components/schemas/Location.Ref"
  13599. },
  13600. "data": {
  13601. "type": "object",
  13602. "properties": {
  13603. "sessionID": {
  13604. "type": "string",
  13605. "allOf": [
  13606. {
  13607. "pattern": "^ses"
  13608. }
  13609. ]
  13610. },
  13611. "error": {
  13612. "$ref": "#/components/schemas/Session.StructuredError"
  13613. }
  13614. },
  13615. "required": [
  13616. "sessionID",
  13617. "error"
  13618. ],
  13619. "additionalProperties": false
  13620. }
  13621. },
  13622. "required": [
  13623. "id",
  13624. "created",
  13625. "type",
  13626. "durable",
  13627. "data"
  13628. ],
  13629. "additionalProperties": false
  13630. },
  13631. "session.execution.interrupted": {
  13632. "type": "object",
  13633. "properties": {
  13634. "id": {
  13635. "type": "string",
  13636. "allOf": [
  13637. {
  13638. "pattern": "^evt_"
  13639. }
  13640. ]
  13641. },
  13642. "created": {
  13643. "type": "number"
  13644. },
  13645. "metadata": {
  13646. "type": "object"
  13647. },
  13648. "type": {
  13649. "type": "string",
  13650. "enum": [
  13651. "session.execution.interrupted"
  13652. ]
  13653. },
  13654. "durable": {
  13655. "type": "object",
  13656. "properties": {
  13657. "aggregateID": {
  13658. "type": "string"
  13659. },
  13660. "seq": {
  13661. "type": "integer",
  13662. "allOf": [
  13663. {
  13664. "minimum": 0
  13665. }
  13666. ]
  13667. },
  13668. "version": {
  13669. "type": "number",
  13670. "enum": [
  13671. 1
  13672. ]
  13673. }
  13674. },
  13675. "required": [
  13676. "aggregateID",
  13677. "seq",
  13678. "version"
  13679. ],
  13680. "additionalProperties": false
  13681. },
  13682. "location": {
  13683. "$ref": "#/components/schemas/Location.Ref"
  13684. },
  13685. "data": {
  13686. "type": "object",
  13687. "properties": {
  13688. "sessionID": {
  13689. "type": "string",
  13690. "allOf": [
  13691. {
  13692. "pattern": "^ses"
  13693. }
  13694. ]
  13695. },
  13696. "reason": {
  13697. "type": "string",
  13698. "enum": [
  13699. "user",
  13700. "shutdown",
  13701. "superseded"
  13702. ]
  13703. }
  13704. },
  13705. "required": [
  13706. "sessionID",
  13707. "reason"
  13708. ],
  13709. "additionalProperties": false
  13710. }
  13711. },
  13712. "required": [
  13713. "id",
  13714. "created",
  13715. "type",
  13716. "durable",
  13717. "data"
  13718. ],
  13719. "additionalProperties": false
  13720. },
  13721. "session.instructions.updated": {
  13722. "type": "object",
  13723. "properties": {
  13724. "id": {
  13725. "type": "string",
  13726. "allOf": [
  13727. {
  13728. "pattern": "^evt_"
  13729. }
  13730. ]
  13731. },
  13732. "created": {
  13733. "type": "number"
  13734. },
  13735. "metadata": {
  13736. "type": "object"
  13737. },
  13738. "type": {
  13739. "type": "string",
  13740. "enum": [
  13741. "session.instructions.updated"
  13742. ]
  13743. },
  13744. "durable": {
  13745. "type": "object",
  13746. "properties": {
  13747. "aggregateID": {
  13748. "type": "string"
  13749. },
  13750. "seq": {
  13751. "type": "integer",
  13752. "allOf": [
  13753. {
  13754. "minimum": 0
  13755. }
  13756. ]
  13757. },
  13758. "version": {
  13759. "type": "number",
  13760. "enum": [
  13761. 1
  13762. ]
  13763. }
  13764. },
  13765. "required": [
  13766. "aggregateID",
  13767. "seq",
  13768. "version"
  13769. ],
  13770. "additionalProperties": false
  13771. },
  13772. "location": {
  13773. "$ref": "#/components/schemas/Location.Ref"
  13774. },
  13775. "data": {
  13776. "type": "object",
  13777. "properties": {
  13778. "sessionID": {
  13779. "type": "string",
  13780. "allOf": [
  13781. {
  13782. "pattern": "^ses"
  13783. }
  13784. ]
  13785. },
  13786. "text": {
  13787. "type": "string"
  13788. }
  13789. },
  13790. "required": [
  13791. "sessionID",
  13792. "text"
  13793. ],
  13794. "additionalProperties": false
  13795. }
  13796. },
  13797. "required": [
  13798. "id",
  13799. "created",
  13800. "type",
  13801. "durable",
  13802. "data"
  13803. ],
  13804. "additionalProperties": false
  13805. },
  13806. "session.synthetic": {
  13807. "type": "object",
  13808. "properties": {
  13809. "id": {
  13810. "type": "string",
  13811. "allOf": [
  13812. {
  13813. "pattern": "^evt_"
  13814. }
  13815. ]
  13816. },
  13817. "created": {
  13818. "type": "number"
  13819. },
  13820. "metadata": {
  13821. "type": "object"
  13822. },
  13823. "type": {
  13824. "type": "string",
  13825. "enum": [
  13826. "session.synthetic"
  13827. ]
  13828. },
  13829. "durable": {
  13830. "type": "object",
  13831. "properties": {
  13832. "aggregateID": {
  13833. "type": "string"
  13834. },
  13835. "seq": {
  13836. "type": "integer",
  13837. "allOf": [
  13838. {
  13839. "minimum": 0
  13840. }
  13841. ]
  13842. },
  13843. "version": {
  13844. "type": "number",
  13845. "enum": [
  13846. 1
  13847. ]
  13848. }
  13849. },
  13850. "required": [
  13851. "aggregateID",
  13852. "seq",
  13853. "version"
  13854. ],
  13855. "additionalProperties": false
  13856. },
  13857. "location": {
  13858. "$ref": "#/components/schemas/Location.Ref"
  13859. },
  13860. "data": {
  13861. "type": "object",
  13862. "properties": {
  13863. "sessionID": {
  13864. "type": "string",
  13865. "allOf": [
  13866. {
  13867. "pattern": "^ses"
  13868. }
  13869. ]
  13870. },
  13871. "text": {
  13872. "type": "string"
  13873. },
  13874. "description": {
  13875. "type": "string"
  13876. },
  13877. "metadata": {
  13878. "type": "object"
  13879. }
  13880. },
  13881. "required": [
  13882. "sessionID",
  13883. "text"
  13884. ],
  13885. "additionalProperties": false
  13886. }
  13887. },
  13888. "required": [
  13889. "id",
  13890. "created",
  13891. "type",
  13892. "durable",
  13893. "data"
  13894. ],
  13895. "additionalProperties": false
  13896. },
  13897. "session.skill.activated": {
  13898. "type": "object",
  13899. "properties": {
  13900. "id": {
  13901. "type": "string",
  13902. "allOf": [
  13903. {
  13904. "pattern": "^evt_"
  13905. }
  13906. ]
  13907. },
  13908. "created": {
  13909. "type": "number"
  13910. },
  13911. "metadata": {
  13912. "type": "object"
  13913. },
  13914. "type": {
  13915. "type": "string",
  13916. "enum": [
  13917. "session.skill.activated"
  13918. ]
  13919. },
  13920. "durable": {
  13921. "type": "object",
  13922. "properties": {
  13923. "aggregateID": {
  13924. "type": "string"
  13925. },
  13926. "seq": {
  13927. "type": "integer",
  13928. "allOf": [
  13929. {
  13930. "minimum": 0
  13931. }
  13932. ]
  13933. },
  13934. "version": {
  13935. "type": "number",
  13936. "enum": [
  13937. 1
  13938. ]
  13939. }
  13940. },
  13941. "required": [
  13942. "aggregateID",
  13943. "seq",
  13944. "version"
  13945. ],
  13946. "additionalProperties": false
  13947. },
  13948. "location": {
  13949. "$ref": "#/components/schemas/Location.Ref"
  13950. },
  13951. "data": {
  13952. "type": "object",
  13953. "properties": {
  13954. "sessionID": {
  13955. "type": "string",
  13956. "allOf": [
  13957. {
  13958. "pattern": "^ses"
  13959. }
  13960. ]
  13961. },
  13962. "id": {
  13963. "type": "string"
  13964. },
  13965. "name": {
  13966. "type": "string"
  13967. },
  13968. "text": {
  13969. "type": "string"
  13970. }
  13971. },
  13972. "required": [
  13973. "sessionID",
  13974. "id",
  13975. "name",
  13976. "text"
  13977. ],
  13978. "additionalProperties": false
  13979. }
  13980. },
  13981. "required": [
  13982. "id",
  13983. "created",
  13984. "type",
  13985. "durable",
  13986. "data"
  13987. ],
  13988. "additionalProperties": false
  13989. },
  13990. "Shell": {
  13991. "type": "object",
  13992. "properties": {
  13993. "id": {
  13994. "type": "string",
  13995. "allOf": [
  13996. {
  13997. "pattern": "^sh_"
  13998. }
  13999. ]
  14000. },
  14001. "status": {
  14002. "type": "string",
  14003. "enum": [
  14004. "running",
  14005. "exited",
  14006. "timeout",
  14007. "killed"
  14008. ]
  14009. },
  14010. "command": {
  14011. "type": "string"
  14012. },
  14013. "cwd": {
  14014. "type": "string"
  14015. },
  14016. "shell": {
  14017. "type": "string"
  14018. },
  14019. "file": {
  14020. "type": "string"
  14021. },
  14022. "pid": {
  14023. "type": "integer",
  14024. "allOf": [
  14025. {
  14026. "minimum": 0
  14027. }
  14028. ]
  14029. },
  14030. "exit": {
  14031. "anyOf": [
  14032. {
  14033. "type": "number"
  14034. },
  14035. {
  14036. "type": "string",
  14037. "enum": [
  14038. "NaN"
  14039. ]
  14040. },
  14041. {
  14042. "type": "string",
  14043. "enum": [
  14044. "Infinity"
  14045. ]
  14046. },
  14047. {
  14048. "type": "string",
  14049. "enum": [
  14050. "-Infinity"
  14051. ]
  14052. }
  14053. ]
  14054. },
  14055. "metadata": {
  14056. "type": "object"
  14057. },
  14058. "time": {
  14059. "type": "object",
  14060. "properties": {
  14061. "started": {
  14062. "anyOf": [
  14063. {
  14064. "type": "number"
  14065. },
  14066. {
  14067. "type": "string",
  14068. "enum": [
  14069. "NaN"
  14070. ]
  14071. },
  14072. {
  14073. "type": "string",
  14074. "enum": [
  14075. "Infinity"
  14076. ]
  14077. },
  14078. {
  14079. "type": "string",
  14080. "enum": [
  14081. "-Infinity"
  14082. ]
  14083. }
  14084. ]
  14085. },
  14086. "completed": {
  14087. "anyOf": [
  14088. {
  14089. "type": "number"
  14090. },
  14091. {
  14092. "type": "string",
  14093. "enum": [
  14094. "NaN"
  14095. ]
  14096. },
  14097. {
  14098. "type": "string",
  14099. "enum": [
  14100. "Infinity"
  14101. ]
  14102. },
  14103. {
  14104. "type": "string",
  14105. "enum": [
  14106. "-Infinity"
  14107. ]
  14108. }
  14109. ]
  14110. }
  14111. },
  14112. "required": [
  14113. "started"
  14114. ],
  14115. "additionalProperties": false
  14116. }
  14117. },
  14118. "required": [
  14119. "id",
  14120. "status",
  14121. "command",
  14122. "cwd",
  14123. "shell",
  14124. "file",
  14125. "metadata",
  14126. "time"
  14127. ],
  14128. "additionalProperties": false
  14129. },
  14130. "session.shell.started": {
  14131. "type": "object",
  14132. "properties": {
  14133. "id": {
  14134. "type": "string",
  14135. "allOf": [
  14136. {
  14137. "pattern": "^evt_"
  14138. }
  14139. ]
  14140. },
  14141. "created": {
  14142. "type": "number"
  14143. },
  14144. "metadata": {
  14145. "type": "object"
  14146. },
  14147. "type": {
  14148. "type": "string",
  14149. "enum": [
  14150. "session.shell.started"
  14151. ]
  14152. },
  14153. "durable": {
  14154. "type": "object",
  14155. "properties": {
  14156. "aggregateID": {
  14157. "type": "string"
  14158. },
  14159. "seq": {
  14160. "type": "integer",
  14161. "allOf": [
  14162. {
  14163. "minimum": 0
  14164. }
  14165. ]
  14166. },
  14167. "version": {
  14168. "type": "number",
  14169. "enum": [
  14170. 1
  14171. ]
  14172. }
  14173. },
  14174. "required": [
  14175. "aggregateID",
  14176. "seq",
  14177. "version"
  14178. ],
  14179. "additionalProperties": false
  14180. },
  14181. "location": {
  14182. "$ref": "#/components/schemas/Location.Ref"
  14183. },
  14184. "data": {
  14185. "type": "object",
  14186. "properties": {
  14187. "sessionID": {
  14188. "type": "string",
  14189. "allOf": [
  14190. {
  14191. "pattern": "^ses"
  14192. }
  14193. ]
  14194. },
  14195. "shell": {
  14196. "$ref": "#/components/schemas/Shell"
  14197. }
  14198. },
  14199. "required": [
  14200. "sessionID",
  14201. "shell"
  14202. ],
  14203. "additionalProperties": false
  14204. }
  14205. },
  14206. "required": [
  14207. "id",
  14208. "created",
  14209. "type",
  14210. "durable",
  14211. "data"
  14212. ],
  14213. "additionalProperties": false
  14214. },
  14215. "session.shell.ended": {
  14216. "type": "object",
  14217. "properties": {
  14218. "id": {
  14219. "type": "string",
  14220. "allOf": [
  14221. {
  14222. "pattern": "^evt_"
  14223. }
  14224. ]
  14225. },
  14226. "created": {
  14227. "type": "number"
  14228. },
  14229. "metadata": {
  14230. "type": "object"
  14231. },
  14232. "type": {
  14233. "type": "string",
  14234. "enum": [
  14235. "session.shell.ended"
  14236. ]
  14237. },
  14238. "durable": {
  14239. "type": "object",
  14240. "properties": {
  14241. "aggregateID": {
  14242. "type": "string"
  14243. },
  14244. "seq": {
  14245. "type": "integer",
  14246. "allOf": [
  14247. {
  14248. "minimum": 0
  14249. }
  14250. ]
  14251. },
  14252. "version": {
  14253. "type": "number",
  14254. "enum": [
  14255. 1
  14256. ]
  14257. }
  14258. },
  14259. "required": [
  14260. "aggregateID",
  14261. "seq",
  14262. "version"
  14263. ],
  14264. "additionalProperties": false
  14265. },
  14266. "location": {
  14267. "$ref": "#/components/schemas/Location.Ref"
  14268. },
  14269. "data": {
  14270. "type": "object",
  14271. "properties": {
  14272. "sessionID": {
  14273. "type": "string",
  14274. "allOf": [
  14275. {
  14276. "pattern": "^ses"
  14277. }
  14278. ]
  14279. },
  14280. "shell": {
  14281. "$ref": "#/components/schemas/Shell"
  14282. },
  14283. "output": {
  14284. "type": "object",
  14285. "properties": {
  14286. "output": {
  14287. "type": "string"
  14288. },
  14289. "cursor": {
  14290. "type": "integer",
  14291. "allOf": [
  14292. {
  14293. "minimum": 0
  14294. }
  14295. ]
  14296. },
  14297. "size": {
  14298. "type": "integer",
  14299. "allOf": [
  14300. {
  14301. "minimum": 0
  14302. }
  14303. ]
  14304. },
  14305. "truncated": {
  14306. "type": "boolean"
  14307. }
  14308. },
  14309. "required": [
  14310. "output",
  14311. "cursor",
  14312. "size",
  14313. "truncated"
  14314. ],
  14315. "additionalProperties": false
  14316. }
  14317. },
  14318. "required": [
  14319. "sessionID",
  14320. "shell",
  14321. "output"
  14322. ],
  14323. "additionalProperties": false
  14324. }
  14325. },
  14326. "required": [
  14327. "id",
  14328. "created",
  14329. "type",
  14330. "durable",
  14331. "data"
  14332. ],
  14333. "additionalProperties": false
  14334. },
  14335. "session.step.started": {
  14336. "type": "object",
  14337. "properties": {
  14338. "id": {
  14339. "type": "string",
  14340. "allOf": [
  14341. {
  14342. "pattern": "^evt_"
  14343. }
  14344. ]
  14345. },
  14346. "created": {
  14347. "type": "number"
  14348. },
  14349. "metadata": {
  14350. "type": "object"
  14351. },
  14352. "type": {
  14353. "type": "string",
  14354. "enum": [
  14355. "session.step.started"
  14356. ]
  14357. },
  14358. "durable": {
  14359. "type": "object",
  14360. "properties": {
  14361. "aggregateID": {
  14362. "type": "string"
  14363. },
  14364. "seq": {
  14365. "type": "integer",
  14366. "allOf": [
  14367. {
  14368. "minimum": 0
  14369. }
  14370. ]
  14371. },
  14372. "version": {
  14373. "type": "number",
  14374. "enum": [
  14375. 1
  14376. ]
  14377. }
  14378. },
  14379. "required": [
  14380. "aggregateID",
  14381. "seq",
  14382. "version"
  14383. ],
  14384. "additionalProperties": false
  14385. },
  14386. "location": {
  14387. "$ref": "#/components/schemas/Location.Ref"
  14388. },
  14389. "data": {
  14390. "type": "object",
  14391. "properties": {
  14392. "sessionID": {
  14393. "type": "string",
  14394. "allOf": [
  14395. {
  14396. "pattern": "^ses"
  14397. }
  14398. ]
  14399. },
  14400. "assistantMessageID": {
  14401. "type": "string",
  14402. "allOf": [
  14403. {
  14404. "pattern": "^msg_"
  14405. }
  14406. ]
  14407. },
  14408. "agent": {
  14409. "type": "string"
  14410. },
  14411. "model": {
  14412. "$ref": "#/components/schemas/Model.Ref"
  14413. },
  14414. "snapshot": {
  14415. "type": "string"
  14416. }
  14417. },
  14418. "required": [
  14419. "sessionID",
  14420. "assistantMessageID",
  14421. "agent",
  14422. "model"
  14423. ],
  14424. "additionalProperties": false
  14425. }
  14426. },
  14427. "required": [
  14428. "id",
  14429. "created",
  14430. "type",
  14431. "durable",
  14432. "data"
  14433. ],
  14434. "additionalProperties": false
  14435. },
  14436. "session.step.ended": {
  14437. "type": "object",
  14438. "properties": {
  14439. "id": {
  14440. "type": "string",
  14441. "allOf": [
  14442. {
  14443. "pattern": "^evt_"
  14444. }
  14445. ]
  14446. },
  14447. "created": {
  14448. "type": "number"
  14449. },
  14450. "metadata": {
  14451. "type": "object"
  14452. },
  14453. "type": {
  14454. "type": "string",
  14455. "enum": [
  14456. "session.step.ended"
  14457. ]
  14458. },
  14459. "durable": {
  14460. "type": "object",
  14461. "properties": {
  14462. "aggregateID": {
  14463. "type": "string"
  14464. },
  14465. "seq": {
  14466. "type": "integer",
  14467. "allOf": [
  14468. {
  14469. "minimum": 0
  14470. }
  14471. ]
  14472. },
  14473. "version": {
  14474. "type": "number",
  14475. "enum": [
  14476. 1
  14477. ]
  14478. }
  14479. },
  14480. "required": [
  14481. "aggregateID",
  14482. "seq",
  14483. "version"
  14484. ],
  14485. "additionalProperties": false
  14486. },
  14487. "location": {
  14488. "$ref": "#/components/schemas/Location.Ref"
  14489. },
  14490. "data": {
  14491. "type": "object",
  14492. "properties": {
  14493. "sessionID": {
  14494. "type": "string",
  14495. "allOf": [
  14496. {
  14497. "pattern": "^ses"
  14498. }
  14499. ]
  14500. },
  14501. "assistantMessageID": {
  14502. "type": "string",
  14503. "allOf": [
  14504. {
  14505. "pattern": "^msg_"
  14506. }
  14507. ]
  14508. },
  14509. "finish": {
  14510. "type": "string",
  14511. "enum": [
  14512. "stop",
  14513. "length",
  14514. "tool-calls",
  14515. "content-filter",
  14516. "error",
  14517. "unknown"
  14518. ]
  14519. },
  14520. "cost": {
  14521. "$ref": "#/components/schemas/Money.USD"
  14522. },
  14523. "tokens": {
  14524. "$ref": "#/components/schemas/TokenUsage.Info"
  14525. },
  14526. "snapshot": {
  14527. "type": "string"
  14528. },
  14529. "files": {
  14530. "type": "array",
  14531. "items": {
  14532. "type": "string"
  14533. }
  14534. }
  14535. },
  14536. "required": [
  14537. "sessionID",
  14538. "assistantMessageID",
  14539. "finish",
  14540. "cost",
  14541. "tokens"
  14542. ],
  14543. "additionalProperties": false
  14544. }
  14545. },
  14546. "required": [
  14547. "id",
  14548. "created",
  14549. "type",
  14550. "durable",
  14551. "data"
  14552. ],
  14553. "additionalProperties": false
  14554. },
  14555. "session.step.failed": {
  14556. "type": "object",
  14557. "properties": {
  14558. "id": {
  14559. "type": "string",
  14560. "allOf": [
  14561. {
  14562. "pattern": "^evt_"
  14563. }
  14564. ]
  14565. },
  14566. "created": {
  14567. "type": "number"
  14568. },
  14569. "metadata": {
  14570. "type": "object"
  14571. },
  14572. "type": {
  14573. "type": "string",
  14574. "enum": [
  14575. "session.step.failed"
  14576. ]
  14577. },
  14578. "durable": {
  14579. "type": "object",
  14580. "properties": {
  14581. "aggregateID": {
  14582. "type": "string"
  14583. },
  14584. "seq": {
  14585. "type": "integer",
  14586. "allOf": [
  14587. {
  14588. "minimum": 0
  14589. }
  14590. ]
  14591. },
  14592. "version": {
  14593. "type": "number",
  14594. "enum": [
  14595. 1
  14596. ]
  14597. }
  14598. },
  14599. "required": [
  14600. "aggregateID",
  14601. "seq",
  14602. "version"
  14603. ],
  14604. "additionalProperties": false
  14605. },
  14606. "location": {
  14607. "$ref": "#/components/schemas/Location.Ref"
  14608. },
  14609. "data": {
  14610. "type": "object",
  14611. "properties": {
  14612. "sessionID": {
  14613. "type": "string",
  14614. "allOf": [
  14615. {
  14616. "pattern": "^ses"
  14617. }
  14618. ]
  14619. },
  14620. "assistantMessageID": {
  14621. "type": "string",
  14622. "allOf": [
  14623. {
  14624. "pattern": "^msg_"
  14625. }
  14626. ]
  14627. },
  14628. "error": {
  14629. "$ref": "#/components/schemas/Session.StructuredError"
  14630. },
  14631. "cost": {
  14632. "$ref": "#/components/schemas/Money.USD"
  14633. },
  14634. "tokens": {
  14635. "$ref": "#/components/schemas/TokenUsage.Info"
  14636. }
  14637. },
  14638. "required": [
  14639. "sessionID",
  14640. "assistantMessageID",
  14641. "error"
  14642. ],
  14643. "additionalProperties": false
  14644. }
  14645. },
  14646. "required": [
  14647. "id",
  14648. "created",
  14649. "type",
  14650. "durable",
  14651. "data"
  14652. ],
  14653. "additionalProperties": false
  14654. },
  14655. "session.text.started": {
  14656. "type": "object",
  14657. "properties": {
  14658. "id": {
  14659. "type": "string",
  14660. "allOf": [
  14661. {
  14662. "pattern": "^evt_"
  14663. }
  14664. ]
  14665. },
  14666. "created": {
  14667. "type": "number"
  14668. },
  14669. "metadata": {
  14670. "type": "object"
  14671. },
  14672. "type": {
  14673. "type": "string",
  14674. "enum": [
  14675. "session.text.started"
  14676. ]
  14677. },
  14678. "durable": {
  14679. "type": "object",
  14680. "properties": {
  14681. "aggregateID": {
  14682. "type": "string"
  14683. },
  14684. "seq": {
  14685. "type": "integer",
  14686. "allOf": [
  14687. {
  14688. "minimum": 0
  14689. }
  14690. ]
  14691. },
  14692. "version": {
  14693. "type": "number",
  14694. "enum": [
  14695. 1
  14696. ]
  14697. }
  14698. },
  14699. "required": [
  14700. "aggregateID",
  14701. "seq",
  14702. "version"
  14703. ],
  14704. "additionalProperties": false
  14705. },
  14706. "location": {
  14707. "$ref": "#/components/schemas/Location.Ref"
  14708. },
  14709. "data": {
  14710. "type": "object",
  14711. "properties": {
  14712. "sessionID": {
  14713. "type": "string",
  14714. "allOf": [
  14715. {
  14716. "pattern": "^ses"
  14717. }
  14718. ]
  14719. },
  14720. "assistantMessageID": {
  14721. "type": "string",
  14722. "allOf": [
  14723. {
  14724. "pattern": "^msg_"
  14725. }
  14726. ]
  14727. },
  14728. "ordinal": {
  14729. "type": "integer",
  14730. "allOf": [
  14731. {
  14732. "minimum": 0
  14733. }
  14734. ]
  14735. }
  14736. },
  14737. "required": [
  14738. "sessionID",
  14739. "assistantMessageID",
  14740. "ordinal"
  14741. ],
  14742. "additionalProperties": false
  14743. }
  14744. },
  14745. "required": [
  14746. "id",
  14747. "created",
  14748. "type",
  14749. "durable",
  14750. "data"
  14751. ],
  14752. "additionalProperties": false
  14753. },
  14754. "session.text.ended": {
  14755. "type": "object",
  14756. "properties": {
  14757. "id": {
  14758. "type": "string",
  14759. "allOf": [
  14760. {
  14761. "pattern": "^evt_"
  14762. }
  14763. ]
  14764. },
  14765. "created": {
  14766. "type": "number"
  14767. },
  14768. "metadata": {
  14769. "type": "object"
  14770. },
  14771. "type": {
  14772. "type": "string",
  14773. "enum": [
  14774. "session.text.ended"
  14775. ]
  14776. },
  14777. "durable": {
  14778. "type": "object",
  14779. "properties": {
  14780. "aggregateID": {
  14781. "type": "string"
  14782. },
  14783. "seq": {
  14784. "type": "integer",
  14785. "allOf": [
  14786. {
  14787. "minimum": 0
  14788. }
  14789. ]
  14790. },
  14791. "version": {
  14792. "type": "number",
  14793. "enum": [
  14794. 1
  14795. ]
  14796. }
  14797. },
  14798. "required": [
  14799. "aggregateID",
  14800. "seq",
  14801. "version"
  14802. ],
  14803. "additionalProperties": false
  14804. },
  14805. "location": {
  14806. "$ref": "#/components/schemas/Location.Ref"
  14807. },
  14808. "data": {
  14809. "type": "object",
  14810. "properties": {
  14811. "sessionID": {
  14812. "type": "string",
  14813. "allOf": [
  14814. {
  14815. "pattern": "^ses"
  14816. }
  14817. ]
  14818. },
  14819. "assistantMessageID": {
  14820. "type": "string",
  14821. "allOf": [
  14822. {
  14823. "pattern": "^msg_"
  14824. }
  14825. ]
  14826. },
  14827. "ordinal": {
  14828. "type": "integer",
  14829. "allOf": [
  14830. {
  14831. "minimum": 0
  14832. }
  14833. ]
  14834. },
  14835. "text": {
  14836. "type": "string"
  14837. }
  14838. },
  14839. "required": [
  14840. "sessionID",
  14841. "assistantMessageID",
  14842. "ordinal",
  14843. "text"
  14844. ],
  14845. "additionalProperties": false
  14846. }
  14847. },
  14848. "required": [
  14849. "id",
  14850. "created",
  14851. "type",
  14852. "durable",
  14853. "data"
  14854. ],
  14855. "additionalProperties": false
  14856. },
  14857. "Session.Message.ProviderState3": {
  14858. "type": "object"
  14859. },
  14860. "session.reasoning.started": {
  14861. "type": "object",
  14862. "properties": {
  14863. "id": {
  14864. "type": "string",
  14865. "allOf": [
  14866. {
  14867. "pattern": "^evt_"
  14868. }
  14869. ]
  14870. },
  14871. "created": {
  14872. "type": "number"
  14873. },
  14874. "metadata": {
  14875. "type": "object"
  14876. },
  14877. "type": {
  14878. "type": "string",
  14879. "enum": [
  14880. "session.reasoning.started"
  14881. ]
  14882. },
  14883. "durable": {
  14884. "type": "object",
  14885. "properties": {
  14886. "aggregateID": {
  14887. "type": "string"
  14888. },
  14889. "seq": {
  14890. "type": "integer",
  14891. "allOf": [
  14892. {
  14893. "minimum": 0
  14894. }
  14895. ]
  14896. },
  14897. "version": {
  14898. "type": "number",
  14899. "enum": [
  14900. 1
  14901. ]
  14902. }
  14903. },
  14904. "required": [
  14905. "aggregateID",
  14906. "seq",
  14907. "version"
  14908. ],
  14909. "additionalProperties": false
  14910. },
  14911. "location": {
  14912. "$ref": "#/components/schemas/Location.Ref"
  14913. },
  14914. "data": {
  14915. "type": "object",
  14916. "properties": {
  14917. "sessionID": {
  14918. "type": "string",
  14919. "allOf": [
  14920. {
  14921. "pattern": "^ses"
  14922. }
  14923. ]
  14924. },
  14925. "assistantMessageID": {
  14926. "type": "string",
  14927. "allOf": [
  14928. {
  14929. "pattern": "^msg_"
  14930. }
  14931. ]
  14932. },
  14933. "ordinal": {
  14934. "type": "integer",
  14935. "allOf": [
  14936. {
  14937. "minimum": 0
  14938. }
  14939. ]
  14940. },
  14941. "state": {
  14942. "$ref": "#/components/schemas/Session.Message.ProviderState3"
  14943. }
  14944. },
  14945. "required": [
  14946. "sessionID",
  14947. "assistantMessageID",
  14948. "ordinal"
  14949. ],
  14950. "additionalProperties": false
  14951. }
  14952. },
  14953. "required": [
  14954. "id",
  14955. "created",
  14956. "type",
  14957. "durable",
  14958. "data"
  14959. ],
  14960. "additionalProperties": false
  14961. },
  14962. "Session.Message.ProviderState4": {
  14963. "type": "object"
  14964. },
  14965. "session.reasoning.ended": {
  14966. "type": "object",
  14967. "properties": {
  14968. "id": {
  14969. "type": "string",
  14970. "allOf": [
  14971. {
  14972. "pattern": "^evt_"
  14973. }
  14974. ]
  14975. },
  14976. "created": {
  14977. "type": "number"
  14978. },
  14979. "metadata": {
  14980. "type": "object"
  14981. },
  14982. "type": {
  14983. "type": "string",
  14984. "enum": [
  14985. "session.reasoning.ended"
  14986. ]
  14987. },
  14988. "durable": {
  14989. "type": "object",
  14990. "properties": {
  14991. "aggregateID": {
  14992. "type": "string"
  14993. },
  14994. "seq": {
  14995. "type": "integer",
  14996. "allOf": [
  14997. {
  14998. "minimum": 0
  14999. }
  15000. ]
  15001. },
  15002. "version": {
  15003. "type": "number",
  15004. "enum": [
  15005. 1
  15006. ]
  15007. }
  15008. },
  15009. "required": [
  15010. "aggregateID",
  15011. "seq",
  15012. "version"
  15013. ],
  15014. "additionalProperties": false
  15015. },
  15016. "location": {
  15017. "$ref": "#/components/schemas/Location.Ref"
  15018. },
  15019. "data": {
  15020. "type": "object",
  15021. "properties": {
  15022. "sessionID": {
  15023. "type": "string",
  15024. "allOf": [
  15025. {
  15026. "pattern": "^ses"
  15027. }
  15028. ]
  15029. },
  15030. "assistantMessageID": {
  15031. "type": "string",
  15032. "allOf": [
  15033. {
  15034. "pattern": "^msg_"
  15035. }
  15036. ]
  15037. },
  15038. "ordinal": {
  15039. "type": "integer",
  15040. "allOf": [
  15041. {
  15042. "minimum": 0
  15043. }
  15044. ]
  15045. },
  15046. "text": {
  15047. "type": "string"
  15048. },
  15049. "state": {
  15050. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  15051. }
  15052. },
  15053. "required": [
  15054. "sessionID",
  15055. "assistantMessageID",
  15056. "ordinal",
  15057. "text"
  15058. ],
  15059. "additionalProperties": false
  15060. }
  15061. },
  15062. "required": [
  15063. "id",
  15064. "created",
  15065. "type",
  15066. "durable",
  15067. "data"
  15068. ],
  15069. "additionalProperties": false
  15070. },
  15071. "session.tool.input.started": {
  15072. "type": "object",
  15073. "properties": {
  15074. "id": {
  15075. "type": "string",
  15076. "allOf": [
  15077. {
  15078. "pattern": "^evt_"
  15079. }
  15080. ]
  15081. },
  15082. "created": {
  15083. "type": "number"
  15084. },
  15085. "metadata": {
  15086. "type": "object"
  15087. },
  15088. "type": {
  15089. "type": "string",
  15090. "enum": [
  15091. "session.tool.input.started"
  15092. ]
  15093. },
  15094. "durable": {
  15095. "type": "object",
  15096. "properties": {
  15097. "aggregateID": {
  15098. "type": "string"
  15099. },
  15100. "seq": {
  15101. "type": "integer",
  15102. "allOf": [
  15103. {
  15104. "minimum": 0
  15105. }
  15106. ]
  15107. },
  15108. "version": {
  15109. "type": "number",
  15110. "enum": [
  15111. 1
  15112. ]
  15113. }
  15114. },
  15115. "required": [
  15116. "aggregateID",
  15117. "seq",
  15118. "version"
  15119. ],
  15120. "additionalProperties": false
  15121. },
  15122. "location": {
  15123. "$ref": "#/components/schemas/Location.Ref"
  15124. },
  15125. "data": {
  15126. "type": "object",
  15127. "properties": {
  15128. "sessionID": {
  15129. "type": "string",
  15130. "allOf": [
  15131. {
  15132. "pattern": "^ses"
  15133. }
  15134. ]
  15135. },
  15136. "assistantMessageID": {
  15137. "type": "string",
  15138. "allOf": [
  15139. {
  15140. "pattern": "^msg_"
  15141. }
  15142. ]
  15143. },
  15144. "callID": {
  15145. "type": "string"
  15146. },
  15147. "name": {
  15148. "type": "string"
  15149. }
  15150. },
  15151. "required": [
  15152. "sessionID",
  15153. "assistantMessageID",
  15154. "callID",
  15155. "name"
  15156. ],
  15157. "additionalProperties": false
  15158. }
  15159. },
  15160. "required": [
  15161. "id",
  15162. "created",
  15163. "type",
  15164. "durable",
  15165. "data"
  15166. ],
  15167. "additionalProperties": false
  15168. },
  15169. "session.tool.input.ended": {
  15170. "type": "object",
  15171. "properties": {
  15172. "id": {
  15173. "type": "string",
  15174. "allOf": [
  15175. {
  15176. "pattern": "^evt_"
  15177. }
  15178. ]
  15179. },
  15180. "created": {
  15181. "type": "number"
  15182. },
  15183. "metadata": {
  15184. "type": "object"
  15185. },
  15186. "type": {
  15187. "type": "string",
  15188. "enum": [
  15189. "session.tool.input.ended"
  15190. ]
  15191. },
  15192. "durable": {
  15193. "type": "object",
  15194. "properties": {
  15195. "aggregateID": {
  15196. "type": "string"
  15197. },
  15198. "seq": {
  15199. "type": "integer",
  15200. "allOf": [
  15201. {
  15202. "minimum": 0
  15203. }
  15204. ]
  15205. },
  15206. "version": {
  15207. "type": "number",
  15208. "enum": [
  15209. 1
  15210. ]
  15211. }
  15212. },
  15213. "required": [
  15214. "aggregateID",
  15215. "seq",
  15216. "version"
  15217. ],
  15218. "additionalProperties": false
  15219. },
  15220. "location": {
  15221. "$ref": "#/components/schemas/Location.Ref"
  15222. },
  15223. "data": {
  15224. "type": "object",
  15225. "properties": {
  15226. "sessionID": {
  15227. "type": "string",
  15228. "allOf": [
  15229. {
  15230. "pattern": "^ses"
  15231. }
  15232. ]
  15233. },
  15234. "assistantMessageID": {
  15235. "type": "string",
  15236. "allOf": [
  15237. {
  15238. "pattern": "^msg_"
  15239. }
  15240. ]
  15241. },
  15242. "callID": {
  15243. "type": "string"
  15244. },
  15245. "text": {
  15246. "type": "string"
  15247. }
  15248. },
  15249. "required": [
  15250. "sessionID",
  15251. "assistantMessageID",
  15252. "callID",
  15253. "text"
  15254. ],
  15255. "additionalProperties": false
  15256. }
  15257. },
  15258. "required": [
  15259. "id",
  15260. "created",
  15261. "type",
  15262. "durable",
  15263. "data"
  15264. ],
  15265. "additionalProperties": false
  15266. },
  15267. "Session.Message.ProviderState5": {
  15268. "type": "object"
  15269. },
  15270. "session.tool.called": {
  15271. "type": "object",
  15272. "properties": {
  15273. "id": {
  15274. "type": "string",
  15275. "allOf": [
  15276. {
  15277. "pattern": "^evt_"
  15278. }
  15279. ]
  15280. },
  15281. "created": {
  15282. "type": "number"
  15283. },
  15284. "metadata": {
  15285. "type": "object"
  15286. },
  15287. "type": {
  15288. "type": "string",
  15289. "enum": [
  15290. "session.tool.called"
  15291. ]
  15292. },
  15293. "durable": {
  15294. "type": "object",
  15295. "properties": {
  15296. "aggregateID": {
  15297. "type": "string"
  15298. },
  15299. "seq": {
  15300. "type": "integer",
  15301. "allOf": [
  15302. {
  15303. "minimum": 0
  15304. }
  15305. ]
  15306. },
  15307. "version": {
  15308. "type": "number",
  15309. "enum": [
  15310. 1
  15311. ]
  15312. }
  15313. },
  15314. "required": [
  15315. "aggregateID",
  15316. "seq",
  15317. "version"
  15318. ],
  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. "assistantMessageID": {
  15336. "type": "string",
  15337. "allOf": [
  15338. {
  15339. "pattern": "^msg_"
  15340. }
  15341. ]
  15342. },
  15343. "callID": {
  15344. "type": "string"
  15345. },
  15346. "input": {
  15347. "type": "object"
  15348. },
  15349. "executed": {
  15350. "type": "boolean"
  15351. },
  15352. "state": {
  15353. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  15354. }
  15355. },
  15356. "required": [
  15357. "sessionID",
  15358. "assistantMessageID",
  15359. "callID",
  15360. "input",
  15361. "executed"
  15362. ],
  15363. "additionalProperties": false
  15364. }
  15365. },
  15366. "required": [
  15367. "id",
  15368. "created",
  15369. "type",
  15370. "durable",
  15371. "data"
  15372. ],
  15373. "additionalProperties": false
  15374. },
  15375. "session.tool.progress": {
  15376. "type": "object",
  15377. "properties": {
  15378. "id": {
  15379. "type": "string",
  15380. "allOf": [
  15381. {
  15382. "pattern": "^evt_"
  15383. }
  15384. ]
  15385. },
  15386. "created": {
  15387. "type": "number"
  15388. },
  15389. "metadata": {
  15390. "type": "object"
  15391. },
  15392. "type": {
  15393. "type": "string",
  15394. "enum": [
  15395. "session.tool.progress"
  15396. ]
  15397. },
  15398. "durable": {
  15399. "type": "object",
  15400. "properties": {
  15401. "aggregateID": {
  15402. "type": "string"
  15403. },
  15404. "seq": {
  15405. "type": "integer",
  15406. "allOf": [
  15407. {
  15408. "minimum": 0
  15409. }
  15410. ]
  15411. },
  15412. "version": {
  15413. "type": "number",
  15414. "enum": [
  15415. 1
  15416. ]
  15417. }
  15418. },
  15419. "required": [
  15420. "aggregateID",
  15421. "seq",
  15422. "version"
  15423. ],
  15424. "additionalProperties": false
  15425. },
  15426. "location": {
  15427. "$ref": "#/components/schemas/Location.Ref"
  15428. },
  15429. "data": {
  15430. "type": "object",
  15431. "properties": {
  15432. "sessionID": {
  15433. "type": "string",
  15434. "allOf": [
  15435. {
  15436. "pattern": "^ses"
  15437. }
  15438. ]
  15439. },
  15440. "assistantMessageID": {
  15441. "type": "string",
  15442. "allOf": [
  15443. {
  15444. "pattern": "^msg_"
  15445. }
  15446. ]
  15447. },
  15448. "callID": {
  15449. "type": "string"
  15450. },
  15451. "structured": {
  15452. "type": "object"
  15453. },
  15454. "content": {
  15455. "type": "array",
  15456. "items": {
  15457. "$ref": "#/components/schemas/LLM.ToolContent"
  15458. }
  15459. }
  15460. },
  15461. "required": [
  15462. "sessionID",
  15463. "assistantMessageID",
  15464. "callID",
  15465. "structured",
  15466. "content"
  15467. ],
  15468. "additionalProperties": false
  15469. }
  15470. },
  15471. "required": [
  15472. "id",
  15473. "created",
  15474. "type",
  15475. "durable",
  15476. "data"
  15477. ],
  15478. "additionalProperties": false
  15479. },
  15480. "Session.Message.ProviderState6": {
  15481. "type": "object"
  15482. },
  15483. "session.tool.success": {
  15484. "type": "object",
  15485. "properties": {
  15486. "id": {
  15487. "type": "string",
  15488. "allOf": [
  15489. {
  15490. "pattern": "^evt_"
  15491. }
  15492. ]
  15493. },
  15494. "created": {
  15495. "type": "number"
  15496. },
  15497. "metadata": {
  15498. "type": "object"
  15499. },
  15500. "type": {
  15501. "type": "string",
  15502. "enum": [
  15503. "session.tool.success"
  15504. ]
  15505. },
  15506. "durable": {
  15507. "type": "object",
  15508. "properties": {
  15509. "aggregateID": {
  15510. "type": "string"
  15511. },
  15512. "seq": {
  15513. "type": "integer",
  15514. "allOf": [
  15515. {
  15516. "minimum": 0
  15517. }
  15518. ]
  15519. },
  15520. "version": {
  15521. "type": "number",
  15522. "enum": [
  15523. 1
  15524. ]
  15525. }
  15526. },
  15527. "required": [
  15528. "aggregateID",
  15529. "seq",
  15530. "version"
  15531. ],
  15532. "additionalProperties": false
  15533. },
  15534. "location": {
  15535. "$ref": "#/components/schemas/Location.Ref"
  15536. },
  15537. "data": {
  15538. "type": "object",
  15539. "properties": {
  15540. "sessionID": {
  15541. "type": "string",
  15542. "allOf": [
  15543. {
  15544. "pattern": "^ses"
  15545. }
  15546. ]
  15547. },
  15548. "assistantMessageID": {
  15549. "type": "string",
  15550. "allOf": [
  15551. {
  15552. "pattern": "^msg_"
  15553. }
  15554. ]
  15555. },
  15556. "callID": {
  15557. "type": "string"
  15558. },
  15559. "structured": {
  15560. "type": "object"
  15561. },
  15562. "content": {
  15563. "type": "array",
  15564. "items": {
  15565. "$ref": "#/components/schemas/LLM.ToolContent"
  15566. }
  15567. },
  15568. "result": {},
  15569. "executed": {
  15570. "type": "boolean"
  15571. },
  15572. "resultState": {
  15573. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  15574. }
  15575. },
  15576. "required": [
  15577. "sessionID",
  15578. "assistantMessageID",
  15579. "callID",
  15580. "structured",
  15581. "content",
  15582. "executed"
  15583. ],
  15584. "additionalProperties": false
  15585. }
  15586. },
  15587. "required": [
  15588. "id",
  15589. "created",
  15590. "type",
  15591. "durable",
  15592. "data"
  15593. ],
  15594. "additionalProperties": false
  15595. },
  15596. "Session.Message.ProviderState7": {
  15597. "type": "object"
  15598. },
  15599. "session.tool.failed": {
  15600. "type": "object",
  15601. "properties": {
  15602. "id": {
  15603. "type": "string",
  15604. "allOf": [
  15605. {
  15606. "pattern": "^evt_"
  15607. }
  15608. ]
  15609. },
  15610. "created": {
  15611. "type": "number"
  15612. },
  15613. "metadata": {
  15614. "type": "object"
  15615. },
  15616. "type": {
  15617. "type": "string",
  15618. "enum": [
  15619. "session.tool.failed"
  15620. ]
  15621. },
  15622. "durable": {
  15623. "type": "object",
  15624. "properties": {
  15625. "aggregateID": {
  15626. "type": "string"
  15627. },
  15628. "seq": {
  15629. "type": "integer",
  15630. "allOf": [
  15631. {
  15632. "minimum": 0
  15633. }
  15634. ]
  15635. },
  15636. "version": {
  15637. "type": "number",
  15638. "enum": [
  15639. 1
  15640. ]
  15641. }
  15642. },
  15643. "required": [
  15644. "aggregateID",
  15645. "seq",
  15646. "version"
  15647. ],
  15648. "additionalProperties": false
  15649. },
  15650. "location": {
  15651. "$ref": "#/components/schemas/Location.Ref"
  15652. },
  15653. "data": {
  15654. "type": "object",
  15655. "properties": {
  15656. "sessionID": {
  15657. "type": "string",
  15658. "allOf": [
  15659. {
  15660. "pattern": "^ses"
  15661. }
  15662. ]
  15663. },
  15664. "assistantMessageID": {
  15665. "type": "string",
  15666. "allOf": [
  15667. {
  15668. "pattern": "^msg_"
  15669. }
  15670. ]
  15671. },
  15672. "callID": {
  15673. "type": "string"
  15674. },
  15675. "error": {
  15676. "$ref": "#/components/schemas/Session.StructuredError"
  15677. },
  15678. "result": {},
  15679. "executed": {
  15680. "type": "boolean"
  15681. },
  15682. "resultState": {
  15683. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  15684. }
  15685. },
  15686. "required": [
  15687. "sessionID",
  15688. "assistantMessageID",
  15689. "callID",
  15690. "error",
  15691. "executed"
  15692. ],
  15693. "additionalProperties": false
  15694. }
  15695. },
  15696. "required": [
  15697. "id",
  15698. "created",
  15699. "type",
  15700. "durable",
  15701. "data"
  15702. ],
  15703. "additionalProperties": false
  15704. },
  15705. "session.retry.scheduled": {
  15706. "type": "object",
  15707. "properties": {
  15708. "id": {
  15709. "type": "string",
  15710. "allOf": [
  15711. {
  15712. "pattern": "^evt_"
  15713. }
  15714. ]
  15715. },
  15716. "created": {
  15717. "type": "number"
  15718. },
  15719. "metadata": {
  15720. "type": "object"
  15721. },
  15722. "type": {
  15723. "type": "string",
  15724. "enum": [
  15725. "session.retry.scheduled"
  15726. ]
  15727. },
  15728. "durable": {
  15729. "type": "object",
  15730. "properties": {
  15731. "aggregateID": {
  15732. "type": "string"
  15733. },
  15734. "seq": {
  15735. "type": "integer",
  15736. "allOf": [
  15737. {
  15738. "minimum": 0
  15739. }
  15740. ]
  15741. },
  15742. "version": {
  15743. "type": "number",
  15744. "enum": [
  15745. 1
  15746. ]
  15747. }
  15748. },
  15749. "required": [
  15750. "aggregateID",
  15751. "seq",
  15752. "version"
  15753. ],
  15754. "additionalProperties": false
  15755. },
  15756. "location": {
  15757. "$ref": "#/components/schemas/Location.Ref"
  15758. },
  15759. "data": {
  15760. "type": "object",
  15761. "properties": {
  15762. "sessionID": {
  15763. "type": "string",
  15764. "allOf": [
  15765. {
  15766. "pattern": "^ses"
  15767. }
  15768. ]
  15769. },
  15770. "assistantMessageID": {
  15771. "type": "string",
  15772. "allOf": [
  15773. {
  15774. "pattern": "^msg_"
  15775. }
  15776. ]
  15777. },
  15778. "attempt": {
  15779. "type": "integer",
  15780. "allOf": [
  15781. {
  15782. "exclusiveMinimum": 0
  15783. }
  15784. ]
  15785. },
  15786. "at": {
  15787. "type": "integer",
  15788. "allOf": [
  15789. {
  15790. "minimum": 0
  15791. }
  15792. ]
  15793. },
  15794. "error": {
  15795. "$ref": "#/components/schemas/Session.StructuredError"
  15796. }
  15797. },
  15798. "required": [
  15799. "sessionID",
  15800. "assistantMessageID",
  15801. "attempt",
  15802. "at",
  15803. "error"
  15804. ],
  15805. "additionalProperties": false
  15806. }
  15807. },
  15808. "required": [
  15809. "id",
  15810. "created",
  15811. "type",
  15812. "durable",
  15813. "data"
  15814. ],
  15815. "additionalProperties": false
  15816. },
  15817. "session.compaction.admitted": {
  15818. "type": "object",
  15819. "properties": {
  15820. "id": {
  15821. "type": "string",
  15822. "allOf": [
  15823. {
  15824. "pattern": "^evt_"
  15825. }
  15826. ]
  15827. },
  15828. "created": {
  15829. "type": "number"
  15830. },
  15831. "metadata": {
  15832. "type": "object"
  15833. },
  15834. "type": {
  15835. "type": "string",
  15836. "enum": [
  15837. "session.compaction.admitted"
  15838. ]
  15839. },
  15840. "durable": {
  15841. "type": "object",
  15842. "properties": {
  15843. "aggregateID": {
  15844. "type": "string"
  15845. },
  15846. "seq": {
  15847. "type": "integer",
  15848. "allOf": [
  15849. {
  15850. "minimum": 0
  15851. }
  15852. ]
  15853. },
  15854. "version": {
  15855. "type": "number",
  15856. "enum": [
  15857. 1
  15858. ]
  15859. }
  15860. },
  15861. "required": [
  15862. "aggregateID",
  15863. "seq",
  15864. "version"
  15865. ],
  15866. "additionalProperties": false
  15867. },
  15868. "location": {
  15869. "$ref": "#/components/schemas/Location.Ref"
  15870. },
  15871. "data": {
  15872. "type": "object",
  15873. "properties": {
  15874. "sessionID": {
  15875. "type": "string",
  15876. "allOf": [
  15877. {
  15878. "pattern": "^ses"
  15879. }
  15880. ]
  15881. },
  15882. "inputID": {
  15883. "type": "string",
  15884. "allOf": [
  15885. {
  15886. "pattern": "^msg_"
  15887. }
  15888. ]
  15889. }
  15890. },
  15891. "required": [
  15892. "sessionID",
  15893. "inputID"
  15894. ],
  15895. "additionalProperties": false
  15896. }
  15897. },
  15898. "required": [
  15899. "id",
  15900. "created",
  15901. "type",
  15902. "durable",
  15903. "data"
  15904. ],
  15905. "additionalProperties": false
  15906. },
  15907. "session.compaction.started": {
  15908. "type": "object",
  15909. "properties": {
  15910. "id": {
  15911. "type": "string",
  15912. "allOf": [
  15913. {
  15914. "pattern": "^evt_"
  15915. }
  15916. ]
  15917. },
  15918. "created": {
  15919. "type": "number"
  15920. },
  15921. "metadata": {
  15922. "type": "object"
  15923. },
  15924. "type": {
  15925. "type": "string",
  15926. "enum": [
  15927. "session.compaction.started"
  15928. ]
  15929. },
  15930. "durable": {
  15931. "type": "object",
  15932. "properties": {
  15933. "aggregateID": {
  15934. "type": "string"
  15935. },
  15936. "seq": {
  15937. "type": "integer",
  15938. "allOf": [
  15939. {
  15940. "minimum": 0
  15941. }
  15942. ]
  15943. },
  15944. "version": {
  15945. "type": "number",
  15946. "enum": [
  15947. 1
  15948. ]
  15949. }
  15950. },
  15951. "required": [
  15952. "aggregateID",
  15953. "seq",
  15954. "version"
  15955. ],
  15956. "additionalProperties": false
  15957. },
  15958. "location": {
  15959. "$ref": "#/components/schemas/Location.Ref"
  15960. },
  15961. "data": {
  15962. "type": "object",
  15963. "properties": {
  15964. "sessionID": {
  15965. "type": "string",
  15966. "allOf": [
  15967. {
  15968. "pattern": "^ses"
  15969. }
  15970. ]
  15971. },
  15972. "reason": {
  15973. "type": "string",
  15974. "enum": [
  15975. "auto",
  15976. "manual"
  15977. ]
  15978. },
  15979. "recent": {
  15980. "type": "string"
  15981. },
  15982. "inputID": {
  15983. "type": "string",
  15984. "allOf": [
  15985. {
  15986. "pattern": "^msg_"
  15987. }
  15988. ]
  15989. }
  15990. },
  15991. "required": [
  15992. "sessionID",
  15993. "reason",
  15994. "recent"
  15995. ],
  15996. "additionalProperties": false
  15997. }
  15998. },
  15999. "required": [
  16000. "id",
  16001. "created",
  16002. "type",
  16003. "durable",
  16004. "data"
  16005. ],
  16006. "additionalProperties": false
  16007. },
  16008. "session.compaction.ended": {
  16009. "type": "object",
  16010. "properties": {
  16011. "id": {
  16012. "type": "string",
  16013. "allOf": [
  16014. {
  16015. "pattern": "^evt_"
  16016. }
  16017. ]
  16018. },
  16019. "created": {
  16020. "type": "number"
  16021. },
  16022. "metadata": {
  16023. "type": "object"
  16024. },
  16025. "type": {
  16026. "type": "string",
  16027. "enum": [
  16028. "session.compaction.ended"
  16029. ]
  16030. },
  16031. "durable": {
  16032. "type": "object",
  16033. "properties": {
  16034. "aggregateID": {
  16035. "type": "string"
  16036. },
  16037. "seq": {
  16038. "type": "integer",
  16039. "allOf": [
  16040. {
  16041. "minimum": 0
  16042. }
  16043. ]
  16044. },
  16045. "version": {
  16046. "type": "number",
  16047. "enum": [
  16048. 1
  16049. ]
  16050. }
  16051. },
  16052. "required": [
  16053. "aggregateID",
  16054. "seq",
  16055. "version"
  16056. ],
  16057. "additionalProperties": false
  16058. },
  16059. "location": {
  16060. "$ref": "#/components/schemas/Location.Ref"
  16061. },
  16062. "data": {
  16063. "type": "object",
  16064. "properties": {
  16065. "sessionID": {
  16066. "type": "string",
  16067. "allOf": [
  16068. {
  16069. "pattern": "^ses"
  16070. }
  16071. ]
  16072. },
  16073. "reason": {
  16074. "type": "string",
  16075. "enum": [
  16076. "auto",
  16077. "manual"
  16078. ]
  16079. },
  16080. "text": {
  16081. "type": "string"
  16082. },
  16083. "recent": {
  16084. "type": "string"
  16085. }
  16086. },
  16087. "required": [
  16088. "sessionID",
  16089. "reason",
  16090. "text",
  16091. "recent"
  16092. ],
  16093. "additionalProperties": false
  16094. }
  16095. },
  16096. "required": [
  16097. "id",
  16098. "created",
  16099. "type",
  16100. "durable",
  16101. "data"
  16102. ],
  16103. "additionalProperties": false
  16104. },
  16105. "session.compaction.failed": {
  16106. "type": "object",
  16107. "properties": {
  16108. "id": {
  16109. "type": "string",
  16110. "allOf": [
  16111. {
  16112. "pattern": "^evt_"
  16113. }
  16114. ]
  16115. },
  16116. "created": {
  16117. "type": "number"
  16118. },
  16119. "metadata": {
  16120. "type": "object"
  16121. },
  16122. "type": {
  16123. "type": "string",
  16124. "enum": [
  16125. "session.compaction.failed"
  16126. ]
  16127. },
  16128. "durable": {
  16129. "type": "object",
  16130. "properties": {
  16131. "aggregateID": {
  16132. "type": "string"
  16133. },
  16134. "seq": {
  16135. "type": "integer",
  16136. "allOf": [
  16137. {
  16138. "minimum": 0
  16139. }
  16140. ]
  16141. },
  16142. "version": {
  16143. "type": "number",
  16144. "enum": [
  16145. 1
  16146. ]
  16147. }
  16148. },
  16149. "required": [
  16150. "aggregateID",
  16151. "seq",
  16152. "version"
  16153. ],
  16154. "additionalProperties": false
  16155. },
  16156. "location": {
  16157. "$ref": "#/components/schemas/Location.Ref"
  16158. },
  16159. "data": {
  16160. "type": "object",
  16161. "properties": {
  16162. "sessionID": {
  16163. "type": "string",
  16164. "allOf": [
  16165. {
  16166. "pattern": "^ses"
  16167. }
  16168. ]
  16169. },
  16170. "reason": {
  16171. "type": "string",
  16172. "enum": [
  16173. "auto",
  16174. "manual"
  16175. ]
  16176. },
  16177. "error": {
  16178. "$ref": "#/components/schemas/Session.StructuredError"
  16179. },
  16180. "inputID": {
  16181. "type": "string",
  16182. "allOf": [
  16183. {
  16184. "pattern": "^msg_"
  16185. }
  16186. ]
  16187. }
  16188. },
  16189. "required": [
  16190. "sessionID",
  16191. "reason",
  16192. "error"
  16193. ],
  16194. "additionalProperties": false
  16195. }
  16196. },
  16197. "required": [
  16198. "id",
  16199. "created",
  16200. "type",
  16201. "durable",
  16202. "data"
  16203. ],
  16204. "additionalProperties": false
  16205. },
  16206. "session.revert.staged": {
  16207. "type": "object",
  16208. "properties": {
  16209. "id": {
  16210. "type": "string",
  16211. "allOf": [
  16212. {
  16213. "pattern": "^evt_"
  16214. }
  16215. ]
  16216. },
  16217. "created": {
  16218. "type": "number"
  16219. },
  16220. "metadata": {
  16221. "type": "object"
  16222. },
  16223. "type": {
  16224. "type": "string",
  16225. "enum": [
  16226. "session.revert.staged"
  16227. ]
  16228. },
  16229. "durable": {
  16230. "type": "object",
  16231. "properties": {
  16232. "aggregateID": {
  16233. "type": "string"
  16234. },
  16235. "seq": {
  16236. "type": "integer",
  16237. "allOf": [
  16238. {
  16239. "minimum": 0
  16240. }
  16241. ]
  16242. },
  16243. "version": {
  16244. "type": "number",
  16245. "enum": [
  16246. 1
  16247. ]
  16248. }
  16249. },
  16250. "required": [
  16251. "aggregateID",
  16252. "seq",
  16253. "version"
  16254. ],
  16255. "additionalProperties": false
  16256. },
  16257. "location": {
  16258. "$ref": "#/components/schemas/Location.Ref"
  16259. },
  16260. "data": {
  16261. "type": "object",
  16262. "properties": {
  16263. "sessionID": {
  16264. "type": "string",
  16265. "allOf": [
  16266. {
  16267. "pattern": "^ses"
  16268. }
  16269. ]
  16270. },
  16271. "revert": {
  16272. "$ref": "#/components/schemas/Session.Revert"
  16273. }
  16274. },
  16275. "required": [
  16276. "sessionID",
  16277. "revert"
  16278. ],
  16279. "additionalProperties": false
  16280. }
  16281. },
  16282. "required": [
  16283. "id",
  16284. "created",
  16285. "type",
  16286. "durable",
  16287. "data"
  16288. ],
  16289. "additionalProperties": false
  16290. },
  16291. "session.revert.cleared": {
  16292. "type": "object",
  16293. "properties": {
  16294. "id": {
  16295. "type": "string",
  16296. "allOf": [
  16297. {
  16298. "pattern": "^evt_"
  16299. }
  16300. ]
  16301. },
  16302. "created": {
  16303. "type": "number"
  16304. },
  16305. "metadata": {
  16306. "type": "object"
  16307. },
  16308. "type": {
  16309. "type": "string",
  16310. "enum": [
  16311. "session.revert.cleared"
  16312. ]
  16313. },
  16314. "durable": {
  16315. "type": "object",
  16316. "properties": {
  16317. "aggregateID": {
  16318. "type": "string"
  16319. },
  16320. "seq": {
  16321. "type": "integer",
  16322. "allOf": [
  16323. {
  16324. "minimum": 0
  16325. }
  16326. ]
  16327. },
  16328. "version": {
  16329. "type": "number",
  16330. "enum": [
  16331. 1
  16332. ]
  16333. }
  16334. },
  16335. "required": [
  16336. "aggregateID",
  16337. "seq",
  16338. "version"
  16339. ],
  16340. "additionalProperties": false
  16341. },
  16342. "location": {
  16343. "$ref": "#/components/schemas/Location.Ref"
  16344. },
  16345. "data": {
  16346. "type": "object",
  16347. "properties": {
  16348. "sessionID": {
  16349. "type": "string",
  16350. "allOf": [
  16351. {
  16352. "pattern": "^ses"
  16353. }
  16354. ]
  16355. }
  16356. },
  16357. "required": [
  16358. "sessionID"
  16359. ],
  16360. "additionalProperties": false
  16361. }
  16362. },
  16363. "required": [
  16364. "id",
  16365. "created",
  16366. "type",
  16367. "durable",
  16368. "data"
  16369. ],
  16370. "additionalProperties": false
  16371. },
  16372. "session.revert.committed": {
  16373. "type": "object",
  16374. "properties": {
  16375. "id": {
  16376. "type": "string",
  16377. "allOf": [
  16378. {
  16379. "pattern": "^evt_"
  16380. }
  16381. ]
  16382. },
  16383. "created": {
  16384. "type": "number"
  16385. },
  16386. "metadata": {
  16387. "type": "object"
  16388. },
  16389. "type": {
  16390. "type": "string",
  16391. "enum": [
  16392. "session.revert.committed"
  16393. ]
  16394. },
  16395. "durable": {
  16396. "type": "object",
  16397. "properties": {
  16398. "aggregateID": {
  16399. "type": "string"
  16400. },
  16401. "seq": {
  16402. "type": "integer",
  16403. "allOf": [
  16404. {
  16405. "minimum": 0
  16406. }
  16407. ]
  16408. },
  16409. "version": {
  16410. "type": "number",
  16411. "enum": [
  16412. 1
  16413. ]
  16414. }
  16415. },
  16416. "required": [
  16417. "aggregateID",
  16418. "seq",
  16419. "version"
  16420. ],
  16421. "additionalProperties": false
  16422. },
  16423. "location": {
  16424. "$ref": "#/components/schemas/Location.Ref"
  16425. },
  16426. "data": {
  16427. "type": "object",
  16428. "properties": {
  16429. "sessionID": {
  16430. "type": "string",
  16431. "allOf": [
  16432. {
  16433. "pattern": "^ses"
  16434. }
  16435. ]
  16436. },
  16437. "to": {
  16438. "type": "string",
  16439. "allOf": [
  16440. {
  16441. "pattern": "^msg_"
  16442. }
  16443. ]
  16444. }
  16445. },
  16446. "required": [
  16447. "sessionID",
  16448. "to"
  16449. ],
  16450. "additionalProperties": false
  16451. }
  16452. },
  16453. "required": [
  16454. "id",
  16455. "created",
  16456. "type",
  16457. "durable",
  16458. "data"
  16459. ],
  16460. "additionalProperties": false
  16461. },
  16462. "Session.Event.Durable": {
  16463. "oneOf": [
  16464. {
  16465. "$ref": "#/components/schemas/session.agent.selected"
  16466. },
  16467. {
  16468. "$ref": "#/components/schemas/session.model.selected"
  16469. },
  16470. {
  16471. "$ref": "#/components/schemas/session.moved"
  16472. },
  16473. {
  16474. "$ref": "#/components/schemas/session.renamed"
  16475. },
  16476. {
  16477. "$ref": "#/components/schemas/session.deleted"
  16478. },
  16479. {
  16480. "$ref": "#/components/schemas/session.forked"
  16481. },
  16482. {
  16483. "$ref": "#/components/schemas/session.prompt.promoted"
  16484. },
  16485. {
  16486. "$ref": "#/components/schemas/session.prompt.admitted"
  16487. },
  16488. {
  16489. "$ref": "#/components/schemas/session.execution.started"
  16490. },
  16491. {
  16492. "$ref": "#/components/schemas/session.execution.succeeded"
  16493. },
  16494. {
  16495. "$ref": "#/components/schemas/session.execution.failed"
  16496. },
  16497. {
  16498. "$ref": "#/components/schemas/session.execution.interrupted"
  16499. },
  16500. {
  16501. "$ref": "#/components/schemas/session.instructions.updated"
  16502. },
  16503. {
  16504. "$ref": "#/components/schemas/session.synthetic"
  16505. },
  16506. {
  16507. "$ref": "#/components/schemas/session.skill.activated"
  16508. },
  16509. {
  16510. "$ref": "#/components/schemas/session.shell.started"
  16511. },
  16512. {
  16513. "$ref": "#/components/schemas/session.shell.ended"
  16514. },
  16515. {
  16516. "$ref": "#/components/schemas/session.step.started"
  16517. },
  16518. {
  16519. "$ref": "#/components/schemas/session.step.ended"
  16520. },
  16521. {
  16522. "$ref": "#/components/schemas/session.step.failed"
  16523. },
  16524. {
  16525. "$ref": "#/components/schemas/session.text.started"
  16526. },
  16527. {
  16528. "$ref": "#/components/schemas/session.text.ended"
  16529. },
  16530. {
  16531. "$ref": "#/components/schemas/session.reasoning.started"
  16532. },
  16533. {
  16534. "$ref": "#/components/schemas/session.reasoning.ended"
  16535. },
  16536. {
  16537. "$ref": "#/components/schemas/session.tool.input.started"
  16538. },
  16539. {
  16540. "$ref": "#/components/schemas/session.tool.input.ended"
  16541. },
  16542. {
  16543. "$ref": "#/components/schemas/session.tool.called"
  16544. },
  16545. {
  16546. "$ref": "#/components/schemas/session.tool.progress"
  16547. },
  16548. {
  16549. "$ref": "#/components/schemas/session.tool.success"
  16550. },
  16551. {
  16552. "$ref": "#/components/schemas/session.tool.failed"
  16553. },
  16554. {
  16555. "$ref": "#/components/schemas/session.retry.scheduled"
  16556. },
  16557. {
  16558. "$ref": "#/components/schemas/session.compaction.admitted"
  16559. },
  16560. {
  16561. "$ref": "#/components/schemas/session.compaction.started"
  16562. },
  16563. {
  16564. "$ref": "#/components/schemas/session.compaction.ended"
  16565. },
  16566. {
  16567. "$ref": "#/components/schemas/session.compaction.failed"
  16568. },
  16569. {
  16570. "$ref": "#/components/schemas/session.revert.staged"
  16571. },
  16572. {
  16573. "$ref": "#/components/schemas/session.revert.cleared"
  16574. },
  16575. {
  16576. "$ref": "#/components/schemas/session.revert.committed"
  16577. }
  16578. ]
  16579. },
  16580. "EventLog.Synced": {
  16581. "type": "object",
  16582. "properties": {
  16583. "type": {
  16584. "type": "string",
  16585. "enum": [
  16586. "log.synced"
  16587. ]
  16588. },
  16589. "aggregateID": {
  16590. "type": "string"
  16591. },
  16592. "seq": {
  16593. "type": "integer",
  16594. "allOf": [
  16595. {
  16596. "minimum": 0
  16597. }
  16598. ]
  16599. }
  16600. },
  16601. "required": [
  16602. "type",
  16603. "aggregateID"
  16604. ],
  16605. "additionalProperties": false,
  16606. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  16607. },
  16608. "SessionLogItem": {
  16609. "anyOf": [
  16610. {
  16611. "$ref": "#/components/schemas/Session.Event.Durable"
  16612. },
  16613. {
  16614. "$ref": "#/components/schemas/EventLog.Synced"
  16615. }
  16616. ]
  16617. },
  16618. "SessionLogItemStream": {
  16619. "type": "string",
  16620. "contentSchema": {
  16621. "$ref": "#/components/schemas/SessionLogItem"
  16622. },
  16623. "contentMediaType": "application/json"
  16624. },
  16625. "SessionMessagesResponse": {
  16626. "type": "object",
  16627. "properties": {
  16628. "data": {
  16629. "type": "array",
  16630. "items": {
  16631. "$ref": "#/components/schemas/Session.Message.Info"
  16632. }
  16633. },
  16634. "cursor": {
  16635. "type": "object",
  16636. "properties": {
  16637. "previous": {
  16638. "anyOf": [
  16639. {
  16640. "type": "string"
  16641. },
  16642. {
  16643. "type": "null"
  16644. }
  16645. ]
  16646. },
  16647. "next": {
  16648. "anyOf": [
  16649. {
  16650. "type": "string"
  16651. },
  16652. {
  16653. "type": "null"
  16654. }
  16655. ]
  16656. }
  16657. },
  16658. "additionalProperties": false
  16659. }
  16660. },
  16661. "required": [
  16662. "data",
  16663. "cursor"
  16664. ],
  16665. "additionalProperties": false
  16666. },
  16667. "Model.Capabilities": {
  16668. "type": "object",
  16669. "properties": {
  16670. "tools": {
  16671. "type": "boolean"
  16672. },
  16673. "input": {
  16674. "type": "array",
  16675. "items": {
  16676. "type": "string"
  16677. }
  16678. },
  16679. "output": {
  16680. "type": "array",
  16681. "items": {
  16682. "type": "string"
  16683. }
  16684. }
  16685. },
  16686. "required": [
  16687. "tools",
  16688. "input",
  16689. "output"
  16690. ],
  16691. "additionalProperties": false
  16692. },
  16693. "Model.Variant": {
  16694. "type": "object",
  16695. "properties": {
  16696. "id": {
  16697. "type": "string"
  16698. },
  16699. "settings": {
  16700. "type": "object"
  16701. },
  16702. "headers": {
  16703. "type": "object",
  16704. "additionalProperties": {
  16705. "type": "string"
  16706. }
  16707. },
  16708. "body": {
  16709. "type": "object"
  16710. }
  16711. },
  16712. "required": [
  16713. "id"
  16714. ],
  16715. "additionalProperties": false
  16716. },
  16717. "Money.USDPerMillionTokens": {
  16718. "type": "number"
  16719. },
  16720. "Model.Cost": {
  16721. "type": "object",
  16722. "properties": {
  16723. "tier": {
  16724. "type": "object",
  16725. "properties": {
  16726. "type": {
  16727. "type": "string",
  16728. "enum": [
  16729. "context"
  16730. ]
  16731. },
  16732. "size": {
  16733. "type": "integer"
  16734. }
  16735. },
  16736. "required": [
  16737. "type",
  16738. "size"
  16739. ],
  16740. "additionalProperties": false
  16741. },
  16742. "input": {
  16743. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16744. },
  16745. "output": {
  16746. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16747. },
  16748. "cache": {
  16749. "type": "object",
  16750. "properties": {
  16751. "read": {
  16752. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16753. },
  16754. "write": {
  16755. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16756. }
  16757. },
  16758. "required": [
  16759. "read",
  16760. "write"
  16761. ],
  16762. "additionalProperties": false
  16763. }
  16764. },
  16765. "required": [
  16766. "input",
  16767. "output",
  16768. "cache"
  16769. ],
  16770. "additionalProperties": false
  16771. },
  16772. "Model.Info": {
  16773. "type": "object",
  16774. "properties": {
  16775. "id": {
  16776. "type": "string"
  16777. },
  16778. "modelID": {
  16779. "type": "string"
  16780. },
  16781. "providerID": {
  16782. "type": "string"
  16783. },
  16784. "family": {
  16785. "type": "string"
  16786. },
  16787. "name": {
  16788. "type": "string"
  16789. },
  16790. "package": {
  16791. "type": "string"
  16792. },
  16793. "settings": {
  16794. "type": "object"
  16795. },
  16796. "headers": {
  16797. "type": "object",
  16798. "additionalProperties": {
  16799. "type": "string"
  16800. }
  16801. },
  16802. "body": {
  16803. "type": "object"
  16804. },
  16805. "capabilities": {
  16806. "$ref": "#/components/schemas/Model.Capabilities"
  16807. },
  16808. "variants": {
  16809. "type": "array",
  16810. "items": {
  16811. "$ref": "#/components/schemas/Model.Variant"
  16812. }
  16813. },
  16814. "time": {
  16815. "type": "object",
  16816. "properties": {
  16817. "released": {
  16818. "type": "number"
  16819. }
  16820. },
  16821. "required": [
  16822. "released"
  16823. ],
  16824. "additionalProperties": false
  16825. },
  16826. "cost": {
  16827. "type": "array",
  16828. "items": {
  16829. "$ref": "#/components/schemas/Model.Cost"
  16830. }
  16831. },
  16832. "status": {
  16833. "type": "string",
  16834. "enum": [
  16835. "alpha",
  16836. "beta",
  16837. "deprecated",
  16838. "active"
  16839. ]
  16840. },
  16841. "enabled": {
  16842. "type": "boolean"
  16843. },
  16844. "limit": {
  16845. "type": "object",
  16846. "properties": {
  16847. "context": {
  16848. "type": "integer"
  16849. },
  16850. "input": {
  16851. "type": "integer"
  16852. },
  16853. "output": {
  16854. "type": "integer"
  16855. }
  16856. },
  16857. "required": [
  16858. "context",
  16859. "output"
  16860. ],
  16861. "additionalProperties": false
  16862. }
  16863. },
  16864. "required": [
  16865. "id",
  16866. "modelID",
  16867. "providerID",
  16868. "name",
  16869. "capabilities",
  16870. "variants",
  16871. "time",
  16872. "cost",
  16873. "status",
  16874. "enabled",
  16875. "limit"
  16876. ],
  16877. "additionalProperties": false
  16878. },
  16879. "GenerateTextResponse": {
  16880. "type": "object",
  16881. "properties": {
  16882. "data": {
  16883. "type": "object",
  16884. "properties": {
  16885. "text": {
  16886. "type": "string"
  16887. }
  16888. },
  16889. "required": [
  16890. "text"
  16891. ],
  16892. "additionalProperties": false
  16893. }
  16894. },
  16895. "required": [
  16896. "data"
  16897. ],
  16898. "additionalProperties": false
  16899. },
  16900. "ProviderV2.Info": {
  16901. "type": "object",
  16902. "properties": {
  16903. "id": {
  16904. "type": "string"
  16905. },
  16906. "integrationID": {
  16907. "type": "string"
  16908. },
  16909. "name": {
  16910. "type": "string"
  16911. },
  16912. "disabled": {
  16913. "type": "boolean"
  16914. },
  16915. "package": {
  16916. "type": "string"
  16917. },
  16918. "settings": {
  16919. "type": "object"
  16920. },
  16921. "headers": {
  16922. "type": "object",
  16923. "additionalProperties": {
  16924. "type": "string"
  16925. }
  16926. },
  16927. "body": {
  16928. "type": "object"
  16929. }
  16930. },
  16931. "required": [
  16932. "id",
  16933. "name",
  16934. "package"
  16935. ],
  16936. "additionalProperties": false
  16937. },
  16938. "ProviderNotFoundError": {
  16939. "type": "object",
  16940. "properties": {
  16941. "_tag": {
  16942. "type": "string",
  16943. "enum": [
  16944. "ProviderNotFoundError"
  16945. ]
  16946. },
  16947. "providerID": {
  16948. "type": "string"
  16949. },
  16950. "message": {
  16951. "type": "string"
  16952. }
  16953. },
  16954. "required": [
  16955. "_tag",
  16956. "providerID",
  16957. "message"
  16958. ],
  16959. "additionalProperties": false
  16960. },
  16961. "Integration.When": {
  16962. "type": "object",
  16963. "properties": {
  16964. "key": {
  16965. "type": "string"
  16966. },
  16967. "op": {
  16968. "type": "string",
  16969. "enum": [
  16970. "eq",
  16971. "neq"
  16972. ]
  16973. },
  16974. "value": {
  16975. "type": "string"
  16976. }
  16977. },
  16978. "required": [
  16979. "key",
  16980. "op",
  16981. "value"
  16982. ],
  16983. "additionalProperties": false
  16984. },
  16985. "Integration.TextPrompt": {
  16986. "type": "object",
  16987. "properties": {
  16988. "type": {
  16989. "type": "string",
  16990. "enum": [
  16991. "text"
  16992. ]
  16993. },
  16994. "key": {
  16995. "type": "string"
  16996. },
  16997. "message": {
  16998. "type": "string"
  16999. },
  17000. "placeholder": {
  17001. "type": "string"
  17002. },
  17003. "when": {
  17004. "$ref": "#/components/schemas/Integration.When"
  17005. }
  17006. },
  17007. "required": [
  17008. "type",
  17009. "key",
  17010. "message"
  17011. ],
  17012. "additionalProperties": false
  17013. },
  17014. "Integration.SelectPrompt": {
  17015. "type": "object",
  17016. "properties": {
  17017. "type": {
  17018. "type": "string",
  17019. "enum": [
  17020. "select"
  17021. ]
  17022. },
  17023. "key": {
  17024. "type": "string"
  17025. },
  17026. "message": {
  17027. "type": "string"
  17028. },
  17029. "options": {
  17030. "type": "array",
  17031. "items": {
  17032. "type": "object",
  17033. "properties": {
  17034. "label": {
  17035. "type": "string"
  17036. },
  17037. "value": {
  17038. "type": "string"
  17039. },
  17040. "hint": {
  17041. "type": "string"
  17042. }
  17043. },
  17044. "required": [
  17045. "label",
  17046. "value"
  17047. ],
  17048. "additionalProperties": false
  17049. }
  17050. },
  17051. "when": {
  17052. "$ref": "#/components/schemas/Integration.When"
  17053. }
  17054. },
  17055. "required": [
  17056. "type",
  17057. "key",
  17058. "message",
  17059. "options"
  17060. ],
  17061. "additionalProperties": false
  17062. },
  17063. "Integration.OAuthMethod": {
  17064. "type": "object",
  17065. "properties": {
  17066. "id": {
  17067. "type": "string"
  17068. },
  17069. "type": {
  17070. "type": "string",
  17071. "enum": [
  17072. "oauth"
  17073. ]
  17074. },
  17075. "label": {
  17076. "type": "string"
  17077. },
  17078. "prompts": {
  17079. "type": "array",
  17080. "items": {
  17081. "anyOf": [
  17082. {
  17083. "$ref": "#/components/schemas/Integration.TextPrompt"
  17084. },
  17085. {
  17086. "$ref": "#/components/schemas/Integration.SelectPrompt"
  17087. }
  17088. ]
  17089. }
  17090. }
  17091. },
  17092. "required": [
  17093. "id",
  17094. "type",
  17095. "label"
  17096. ],
  17097. "additionalProperties": false
  17098. },
  17099. "Integration.KeyMethod": {
  17100. "type": "object",
  17101. "properties": {
  17102. "type": {
  17103. "type": "string",
  17104. "enum": [
  17105. "key"
  17106. ]
  17107. },
  17108. "label": {
  17109. "type": "string"
  17110. }
  17111. },
  17112. "required": [
  17113. "type"
  17114. ],
  17115. "additionalProperties": false
  17116. },
  17117. "Integration.EnvMethod": {
  17118. "type": "object",
  17119. "properties": {
  17120. "type": {
  17121. "type": "string",
  17122. "enum": [
  17123. "env"
  17124. ]
  17125. },
  17126. "names": {
  17127. "type": "array",
  17128. "items": {
  17129. "type": "string"
  17130. }
  17131. }
  17132. },
  17133. "required": [
  17134. "type",
  17135. "names"
  17136. ],
  17137. "additionalProperties": false
  17138. },
  17139. "Integration.Method": {
  17140. "anyOf": [
  17141. {
  17142. "$ref": "#/components/schemas/Integration.OAuthMethod"
  17143. },
  17144. {
  17145. "$ref": "#/components/schemas/Integration.KeyMethod"
  17146. },
  17147. {
  17148. "$ref": "#/components/schemas/Integration.EnvMethod"
  17149. }
  17150. ]
  17151. },
  17152. "Connection.CredentialInfo": {
  17153. "type": "object",
  17154. "properties": {
  17155. "type": {
  17156. "type": "string",
  17157. "enum": [
  17158. "credential"
  17159. ]
  17160. },
  17161. "id": {
  17162. "type": "string"
  17163. },
  17164. "label": {
  17165. "type": "string"
  17166. }
  17167. },
  17168. "required": [
  17169. "type",
  17170. "id",
  17171. "label"
  17172. ],
  17173. "additionalProperties": false
  17174. },
  17175. "Connection.EnvInfo": {
  17176. "type": "object",
  17177. "properties": {
  17178. "type": {
  17179. "type": "string",
  17180. "enum": [
  17181. "env"
  17182. ]
  17183. },
  17184. "name": {
  17185. "type": "string"
  17186. }
  17187. },
  17188. "required": [
  17189. "type",
  17190. "name"
  17191. ],
  17192. "additionalProperties": false
  17193. },
  17194. "Connection.Info": {
  17195. "anyOf": [
  17196. {
  17197. "$ref": "#/components/schemas/Connection.CredentialInfo"
  17198. },
  17199. {
  17200. "$ref": "#/components/schemas/Connection.EnvInfo"
  17201. }
  17202. ]
  17203. },
  17204. "Integration.Info": {
  17205. "type": "object",
  17206. "properties": {
  17207. "id": {
  17208. "type": "string"
  17209. },
  17210. "name": {
  17211. "type": "string"
  17212. },
  17213. "methods": {
  17214. "type": "array",
  17215. "items": {
  17216. "$ref": "#/components/schemas/Integration.Method"
  17217. }
  17218. },
  17219. "connections": {
  17220. "type": "array",
  17221. "items": {
  17222. "$ref": "#/components/schemas/Connection.Info"
  17223. }
  17224. }
  17225. },
  17226. "required": [
  17227. "id",
  17228. "name",
  17229. "methods",
  17230. "connections"
  17231. ],
  17232. "additionalProperties": false
  17233. },
  17234. "Integration.Attempt": {
  17235. "type": "object",
  17236. "properties": {
  17237. "attemptID": {
  17238. "type": "string"
  17239. },
  17240. "url": {
  17241. "type": "string"
  17242. },
  17243. "instructions": {
  17244. "type": "string"
  17245. },
  17246. "mode": {
  17247. "type": "string",
  17248. "enum": [
  17249. "auto",
  17250. "code"
  17251. ]
  17252. },
  17253. "time": {
  17254. "type": "object",
  17255. "properties": {
  17256. "created": {
  17257. "anyOf": [
  17258. {
  17259. "anyOf": [
  17260. {
  17261. "type": "number"
  17262. },
  17263. {
  17264. "type": "string",
  17265. "enum": [
  17266. "NaN"
  17267. ]
  17268. },
  17269. {
  17270. "type": "string",
  17271. "enum": [
  17272. "Infinity"
  17273. ]
  17274. },
  17275. {
  17276. "type": "string",
  17277. "enum": [
  17278. "-Infinity"
  17279. ]
  17280. }
  17281. ]
  17282. },
  17283. {
  17284. "type": "string",
  17285. "enum": [
  17286. "Infinity",
  17287. "-Infinity",
  17288. "NaN"
  17289. ]
  17290. }
  17291. ]
  17292. },
  17293. "expires": {
  17294. "anyOf": [
  17295. {
  17296. "anyOf": [
  17297. {
  17298. "type": "number"
  17299. },
  17300. {
  17301. "type": "string",
  17302. "enum": [
  17303. "NaN"
  17304. ]
  17305. },
  17306. {
  17307. "type": "string",
  17308. "enum": [
  17309. "Infinity"
  17310. ]
  17311. },
  17312. {
  17313. "type": "string",
  17314. "enum": [
  17315. "-Infinity"
  17316. ]
  17317. }
  17318. ]
  17319. },
  17320. {
  17321. "type": "string",
  17322. "enum": [
  17323. "Infinity",
  17324. "-Infinity",
  17325. "NaN"
  17326. ]
  17327. }
  17328. ]
  17329. }
  17330. },
  17331. "required": [
  17332. "created",
  17333. "expires"
  17334. ],
  17335. "additionalProperties": false
  17336. }
  17337. },
  17338. "required": [
  17339. "attemptID",
  17340. "url",
  17341. "instructions",
  17342. "mode",
  17343. "time"
  17344. ],
  17345. "additionalProperties": false
  17346. },
  17347. "Integration.AttemptStatus": {
  17348. "anyOf": [
  17349. {
  17350. "type": "object",
  17351. "properties": {
  17352. "status": {
  17353. "type": "string",
  17354. "enum": [
  17355. "pending"
  17356. ]
  17357. },
  17358. "time": {
  17359. "type": "object",
  17360. "properties": {
  17361. "created": {
  17362. "anyOf": [
  17363. {
  17364. "anyOf": [
  17365. {
  17366. "type": "number"
  17367. },
  17368. {
  17369. "type": "string",
  17370. "enum": [
  17371. "NaN"
  17372. ]
  17373. },
  17374. {
  17375. "type": "string",
  17376. "enum": [
  17377. "Infinity"
  17378. ]
  17379. },
  17380. {
  17381. "type": "string",
  17382. "enum": [
  17383. "-Infinity"
  17384. ]
  17385. }
  17386. ]
  17387. },
  17388. {
  17389. "type": "string",
  17390. "enum": [
  17391. "Infinity",
  17392. "-Infinity",
  17393. "NaN"
  17394. ]
  17395. }
  17396. ]
  17397. },
  17398. "expires": {
  17399. "anyOf": [
  17400. {
  17401. "anyOf": [
  17402. {
  17403. "type": "number"
  17404. },
  17405. {
  17406. "type": "string",
  17407. "enum": [
  17408. "NaN"
  17409. ]
  17410. },
  17411. {
  17412. "type": "string",
  17413. "enum": [
  17414. "Infinity"
  17415. ]
  17416. },
  17417. {
  17418. "type": "string",
  17419. "enum": [
  17420. "-Infinity"
  17421. ]
  17422. }
  17423. ]
  17424. },
  17425. {
  17426. "type": "string",
  17427. "enum": [
  17428. "Infinity",
  17429. "-Infinity",
  17430. "NaN"
  17431. ]
  17432. }
  17433. ]
  17434. }
  17435. },
  17436. "required": [
  17437. "created",
  17438. "expires"
  17439. ],
  17440. "additionalProperties": false
  17441. }
  17442. },
  17443. "required": [
  17444. "status",
  17445. "time"
  17446. ],
  17447. "additionalProperties": false
  17448. },
  17449. {
  17450. "type": "object",
  17451. "properties": {
  17452. "status": {
  17453. "type": "string",
  17454. "enum": [
  17455. "complete"
  17456. ]
  17457. },
  17458. "time": {
  17459. "type": "object",
  17460. "properties": {
  17461. "created": {
  17462. "anyOf": [
  17463. {
  17464. "anyOf": [
  17465. {
  17466. "type": "number"
  17467. },
  17468. {
  17469. "type": "string",
  17470. "enum": [
  17471. "NaN"
  17472. ]
  17473. },
  17474. {
  17475. "type": "string",
  17476. "enum": [
  17477. "Infinity"
  17478. ]
  17479. },
  17480. {
  17481. "type": "string",
  17482. "enum": [
  17483. "-Infinity"
  17484. ]
  17485. }
  17486. ]
  17487. },
  17488. {
  17489. "type": "string",
  17490. "enum": [
  17491. "Infinity",
  17492. "-Infinity",
  17493. "NaN"
  17494. ]
  17495. }
  17496. ]
  17497. },
  17498. "expires": {
  17499. "anyOf": [
  17500. {
  17501. "anyOf": [
  17502. {
  17503. "type": "number"
  17504. },
  17505. {
  17506. "type": "string",
  17507. "enum": [
  17508. "NaN"
  17509. ]
  17510. },
  17511. {
  17512. "type": "string",
  17513. "enum": [
  17514. "Infinity"
  17515. ]
  17516. },
  17517. {
  17518. "type": "string",
  17519. "enum": [
  17520. "-Infinity"
  17521. ]
  17522. }
  17523. ]
  17524. },
  17525. {
  17526. "type": "string",
  17527. "enum": [
  17528. "Infinity",
  17529. "-Infinity",
  17530. "NaN"
  17531. ]
  17532. }
  17533. ]
  17534. }
  17535. },
  17536. "required": [
  17537. "created",
  17538. "expires"
  17539. ],
  17540. "additionalProperties": false
  17541. }
  17542. },
  17543. "required": [
  17544. "status",
  17545. "time"
  17546. ],
  17547. "additionalProperties": false
  17548. },
  17549. {
  17550. "type": "object",
  17551. "properties": {
  17552. "status": {
  17553. "type": "string",
  17554. "enum": [
  17555. "failed"
  17556. ]
  17557. },
  17558. "message": {
  17559. "type": "string"
  17560. },
  17561. "time": {
  17562. "type": "object",
  17563. "properties": {
  17564. "created": {
  17565. "anyOf": [
  17566. {
  17567. "anyOf": [
  17568. {
  17569. "type": "number"
  17570. },
  17571. {
  17572. "type": "string",
  17573. "enum": [
  17574. "NaN"
  17575. ]
  17576. },
  17577. {
  17578. "type": "string",
  17579. "enum": [
  17580. "Infinity"
  17581. ]
  17582. },
  17583. {
  17584. "type": "string",
  17585. "enum": [
  17586. "-Infinity"
  17587. ]
  17588. }
  17589. ]
  17590. },
  17591. {
  17592. "type": "string",
  17593. "enum": [
  17594. "Infinity",
  17595. "-Infinity",
  17596. "NaN"
  17597. ]
  17598. }
  17599. ]
  17600. },
  17601. "expires": {
  17602. "anyOf": [
  17603. {
  17604. "anyOf": [
  17605. {
  17606. "type": "number"
  17607. },
  17608. {
  17609. "type": "string",
  17610. "enum": [
  17611. "NaN"
  17612. ]
  17613. },
  17614. {
  17615. "type": "string",
  17616. "enum": [
  17617. "Infinity"
  17618. ]
  17619. },
  17620. {
  17621. "type": "string",
  17622. "enum": [
  17623. "-Infinity"
  17624. ]
  17625. }
  17626. ]
  17627. },
  17628. {
  17629. "type": "string",
  17630. "enum": [
  17631. "Infinity",
  17632. "-Infinity",
  17633. "NaN"
  17634. ]
  17635. }
  17636. ]
  17637. }
  17638. },
  17639. "required": [
  17640. "created",
  17641. "expires"
  17642. ],
  17643. "additionalProperties": false
  17644. }
  17645. },
  17646. "required": [
  17647. "status",
  17648. "message",
  17649. "time"
  17650. ],
  17651. "additionalProperties": false
  17652. },
  17653. {
  17654. "type": "object",
  17655. "properties": {
  17656. "status": {
  17657. "type": "string",
  17658. "enum": [
  17659. "expired"
  17660. ]
  17661. },
  17662. "time": {
  17663. "type": "object",
  17664. "properties": {
  17665. "created": {
  17666. "anyOf": [
  17667. {
  17668. "anyOf": [
  17669. {
  17670. "type": "number"
  17671. },
  17672. {
  17673. "type": "string",
  17674. "enum": [
  17675. "NaN"
  17676. ]
  17677. },
  17678. {
  17679. "type": "string",
  17680. "enum": [
  17681. "Infinity"
  17682. ]
  17683. },
  17684. {
  17685. "type": "string",
  17686. "enum": [
  17687. "-Infinity"
  17688. ]
  17689. }
  17690. ]
  17691. },
  17692. {
  17693. "type": "string",
  17694. "enum": [
  17695. "Infinity",
  17696. "-Infinity",
  17697. "NaN"
  17698. ]
  17699. }
  17700. ]
  17701. },
  17702. "expires": {
  17703. "anyOf": [
  17704. {
  17705. "anyOf": [
  17706. {
  17707. "type": "number"
  17708. },
  17709. {
  17710. "type": "string",
  17711. "enum": [
  17712. "NaN"
  17713. ]
  17714. },
  17715. {
  17716. "type": "string",
  17717. "enum": [
  17718. "Infinity"
  17719. ]
  17720. },
  17721. {
  17722. "type": "string",
  17723. "enum": [
  17724. "-Infinity"
  17725. ]
  17726. }
  17727. ]
  17728. },
  17729. {
  17730. "type": "string",
  17731. "enum": [
  17732. "Infinity",
  17733. "-Infinity",
  17734. "NaN"
  17735. ]
  17736. }
  17737. ]
  17738. }
  17739. },
  17740. "required": [
  17741. "created",
  17742. "expires"
  17743. ],
  17744. "additionalProperties": false
  17745. }
  17746. },
  17747. "required": [
  17748. "status",
  17749. "time"
  17750. ],
  17751. "additionalProperties": false
  17752. }
  17753. ]
  17754. },
  17755. "Mcp.Status.Connected": {
  17756. "type": "object",
  17757. "properties": {
  17758. "status": {
  17759. "type": "string",
  17760. "enum": [
  17761. "connected"
  17762. ]
  17763. }
  17764. },
  17765. "required": [
  17766. "status"
  17767. ],
  17768. "additionalProperties": false
  17769. },
  17770. "Mcp.Status.Pending": {
  17771. "type": "object",
  17772. "properties": {
  17773. "status": {
  17774. "type": "string",
  17775. "enum": [
  17776. "pending"
  17777. ]
  17778. }
  17779. },
  17780. "required": [
  17781. "status"
  17782. ],
  17783. "additionalProperties": false
  17784. },
  17785. "Mcp.Status.Disabled": {
  17786. "type": "object",
  17787. "properties": {
  17788. "status": {
  17789. "type": "string",
  17790. "enum": [
  17791. "disabled"
  17792. ]
  17793. }
  17794. },
  17795. "required": [
  17796. "status"
  17797. ],
  17798. "additionalProperties": false
  17799. },
  17800. "Mcp.Status.Failed": {
  17801. "type": "object",
  17802. "properties": {
  17803. "status": {
  17804. "type": "string",
  17805. "enum": [
  17806. "failed"
  17807. ]
  17808. },
  17809. "error": {
  17810. "type": "string"
  17811. }
  17812. },
  17813. "required": [
  17814. "status",
  17815. "error"
  17816. ],
  17817. "additionalProperties": false
  17818. },
  17819. "Mcp.Status.NeedsAuth": {
  17820. "type": "object",
  17821. "properties": {
  17822. "status": {
  17823. "type": "string",
  17824. "enum": [
  17825. "needs_auth"
  17826. ]
  17827. }
  17828. },
  17829. "required": [
  17830. "status"
  17831. ],
  17832. "additionalProperties": false
  17833. },
  17834. "Mcp.Status.NeedsClientRegistration": {
  17835. "type": "object",
  17836. "properties": {
  17837. "status": {
  17838. "type": "string",
  17839. "enum": [
  17840. "needs_client_registration"
  17841. ]
  17842. },
  17843. "error": {
  17844. "type": "string"
  17845. }
  17846. },
  17847. "required": [
  17848. "status",
  17849. "error"
  17850. ],
  17851. "additionalProperties": false
  17852. },
  17853. "Mcp.Server": {
  17854. "type": "object",
  17855. "properties": {
  17856. "name": {
  17857. "type": "string"
  17858. },
  17859. "status": {
  17860. "anyOf": [
  17861. {
  17862. "$ref": "#/components/schemas/Mcp.Status.Connected"
  17863. },
  17864. {
  17865. "$ref": "#/components/schemas/Mcp.Status.Pending"
  17866. },
  17867. {
  17868. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  17869. },
  17870. {
  17871. "$ref": "#/components/schemas/Mcp.Status.Failed"
  17872. },
  17873. {
  17874. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  17875. },
  17876. {
  17877. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  17878. }
  17879. ]
  17880. },
  17881. "integrationID": {
  17882. "type": "string"
  17883. }
  17884. },
  17885. "required": [
  17886. "name",
  17887. "status"
  17888. ],
  17889. "additionalProperties": false
  17890. },
  17891. "Mcp.Resource": {
  17892. "type": "object",
  17893. "properties": {
  17894. "server": {
  17895. "type": "string"
  17896. },
  17897. "name": {
  17898. "type": "string"
  17899. },
  17900. "uri": {
  17901. "type": "string"
  17902. },
  17903. "description": {
  17904. "type": "string"
  17905. },
  17906. "mimeType": {
  17907. "type": "string"
  17908. }
  17909. },
  17910. "required": [
  17911. "server",
  17912. "name",
  17913. "uri"
  17914. ],
  17915. "additionalProperties": false
  17916. },
  17917. "Mcp.ResourceTemplate": {
  17918. "type": "object",
  17919. "properties": {
  17920. "server": {
  17921. "type": "string"
  17922. },
  17923. "name": {
  17924. "type": "string"
  17925. },
  17926. "uriTemplate": {
  17927. "type": "string"
  17928. },
  17929. "description": {
  17930. "type": "string"
  17931. },
  17932. "mimeType": {
  17933. "type": "string"
  17934. }
  17935. },
  17936. "required": [
  17937. "server",
  17938. "name",
  17939. "uriTemplate"
  17940. ],
  17941. "additionalProperties": false
  17942. },
  17943. "Mcp.ResourceCatalog": {
  17944. "type": "object",
  17945. "properties": {
  17946. "resources": {
  17947. "type": "array",
  17948. "items": {
  17949. "$ref": "#/components/schemas/Mcp.Resource"
  17950. }
  17951. },
  17952. "templates": {
  17953. "type": "array",
  17954. "items": {
  17955. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  17956. }
  17957. }
  17958. },
  17959. "required": [
  17960. "resources",
  17961. "templates"
  17962. ],
  17963. "additionalProperties": false
  17964. },
  17965. "Project.Vcs": {
  17966. "type": "string",
  17967. "enum": [
  17968. "git",
  17969. "hg"
  17970. ]
  17971. },
  17972. "Project.Icon": {
  17973. "type": "object",
  17974. "properties": {
  17975. "url": {
  17976. "type": "string"
  17977. },
  17978. "override": {
  17979. "type": "string"
  17980. },
  17981. "color": {
  17982. "type": "string"
  17983. }
  17984. },
  17985. "additionalProperties": false
  17986. },
  17987. "Project.Commands": {
  17988. "type": "object",
  17989. "properties": {
  17990. "start": {
  17991. "type": "string",
  17992. "description": "Startup script to run when creating a new workspace (worktree)"
  17993. }
  17994. },
  17995. "additionalProperties": false
  17996. },
  17997. "Project.Time": {
  17998. "type": "object",
  17999. "properties": {
  18000. "created": {
  18001. "type": "integer",
  18002. "allOf": [
  18003. {
  18004. "minimum": 0
  18005. }
  18006. ]
  18007. },
  18008. "updated": {
  18009. "type": "integer",
  18010. "allOf": [
  18011. {
  18012. "minimum": 0
  18013. }
  18014. ]
  18015. },
  18016. "initialized": {
  18017. "type": "integer",
  18018. "allOf": [
  18019. {
  18020. "minimum": 0
  18021. }
  18022. ]
  18023. }
  18024. },
  18025. "required": [
  18026. "created",
  18027. "updated"
  18028. ],
  18029. "additionalProperties": false
  18030. },
  18031. "Project": {
  18032. "type": "object",
  18033. "properties": {
  18034. "id": {
  18035. "type": "string"
  18036. },
  18037. "worktree": {
  18038. "type": "string"
  18039. },
  18040. "vcs": {
  18041. "$ref": "#/components/schemas/Project.Vcs"
  18042. },
  18043. "name": {
  18044. "type": "string"
  18045. },
  18046. "icon": {
  18047. "$ref": "#/components/schemas/Project.Icon"
  18048. },
  18049. "commands": {
  18050. "$ref": "#/components/schemas/Project.Commands"
  18051. },
  18052. "time": {
  18053. "$ref": "#/components/schemas/Project.Time"
  18054. },
  18055. "sandboxes": {
  18056. "type": "array",
  18057. "items": {
  18058. "type": "string"
  18059. }
  18060. }
  18061. },
  18062. "required": [
  18063. "id",
  18064. "worktree",
  18065. "time",
  18066. "sandboxes"
  18067. ],
  18068. "additionalProperties": false
  18069. },
  18070. "Project.Current": {
  18071. "type": "object",
  18072. "properties": {
  18073. "id": {
  18074. "type": "string"
  18075. },
  18076. "directory": {
  18077. "type": "string"
  18078. }
  18079. },
  18080. "required": [
  18081. "id",
  18082. "directory"
  18083. ],
  18084. "additionalProperties": false
  18085. },
  18086. "Project.Directory": {
  18087. "type": "object",
  18088. "properties": {
  18089. "directory": {
  18090. "type": "string"
  18091. },
  18092. "strategy": {
  18093. "type": "string"
  18094. }
  18095. },
  18096. "required": [
  18097. "directory"
  18098. ],
  18099. "additionalProperties": false
  18100. },
  18101. "Project.Directories": {
  18102. "type": "array",
  18103. "items": {
  18104. "$ref": "#/components/schemas/Project.Directory"
  18105. }
  18106. },
  18107. "Form.Metadata": {
  18108. "type": "object"
  18109. },
  18110. "Form.When": {
  18111. "type": "object",
  18112. "properties": {
  18113. "key": {
  18114. "type": "string"
  18115. },
  18116. "op": {
  18117. "type": "string",
  18118. "enum": [
  18119. "eq",
  18120. "neq"
  18121. ]
  18122. },
  18123. "value": {
  18124. "anyOf": [
  18125. {
  18126. "type": "string"
  18127. },
  18128. {
  18129. "anyOf": [
  18130. {
  18131. "anyOf": [
  18132. {
  18133. "type": "number"
  18134. },
  18135. {
  18136. "type": "string",
  18137. "enum": [
  18138. "NaN"
  18139. ]
  18140. },
  18141. {
  18142. "type": "string",
  18143. "enum": [
  18144. "Infinity"
  18145. ]
  18146. },
  18147. {
  18148. "type": "string",
  18149. "enum": [
  18150. "-Infinity"
  18151. ]
  18152. }
  18153. ]
  18154. },
  18155. {
  18156. "type": "string",
  18157. "enum": [
  18158. "Infinity",
  18159. "-Infinity",
  18160. "NaN"
  18161. ]
  18162. }
  18163. ]
  18164. },
  18165. {
  18166. "type": "boolean"
  18167. }
  18168. ]
  18169. }
  18170. },
  18171. "required": [
  18172. "key",
  18173. "op",
  18174. "value"
  18175. ],
  18176. "additionalProperties": false
  18177. },
  18178. "Form.Option": {
  18179. "type": "object",
  18180. "properties": {
  18181. "value": {
  18182. "type": "string"
  18183. },
  18184. "label": {
  18185. "type": "string"
  18186. },
  18187. "description": {
  18188. "type": "string"
  18189. }
  18190. },
  18191. "required": [
  18192. "value",
  18193. "label"
  18194. ],
  18195. "additionalProperties": false
  18196. },
  18197. "Form.StringField": {
  18198. "type": "object",
  18199. "properties": {
  18200. "key": {
  18201. "type": "string"
  18202. },
  18203. "title": {
  18204. "type": "string"
  18205. },
  18206. "description": {
  18207. "type": "string"
  18208. },
  18209. "required": {
  18210. "type": "boolean"
  18211. },
  18212. "when": {
  18213. "type": "array",
  18214. "items": {
  18215. "$ref": "#/components/schemas/Form.When"
  18216. }
  18217. },
  18218. "type": {
  18219. "type": "string",
  18220. "enum": [
  18221. "string"
  18222. ]
  18223. },
  18224. "format": {
  18225. "type": "string",
  18226. "enum": [
  18227. "email",
  18228. "uri",
  18229. "date",
  18230. "date-time"
  18231. ]
  18232. },
  18233. "minLength": {
  18234. "type": "integer",
  18235. "allOf": [
  18236. {
  18237. "minimum": 0
  18238. }
  18239. ]
  18240. },
  18241. "maxLength": {
  18242. "type": "integer",
  18243. "allOf": [
  18244. {
  18245. "minimum": 0
  18246. }
  18247. ]
  18248. },
  18249. "pattern": {
  18250. "type": "string"
  18251. },
  18252. "placeholder": {
  18253. "type": "string"
  18254. },
  18255. "default": {
  18256. "type": "string"
  18257. },
  18258. "options": {
  18259. "type": "array",
  18260. "items": {
  18261. "$ref": "#/components/schemas/Form.Option"
  18262. }
  18263. },
  18264. "custom": {
  18265. "type": "boolean"
  18266. }
  18267. },
  18268. "required": [
  18269. "key",
  18270. "type"
  18271. ],
  18272. "additionalProperties": false
  18273. },
  18274. "Form.NumberField": {
  18275. "type": "object",
  18276. "properties": {
  18277. "key": {
  18278. "type": "string"
  18279. },
  18280. "title": {
  18281. "type": "string"
  18282. },
  18283. "description": {
  18284. "type": "string"
  18285. },
  18286. "required": {
  18287. "type": "boolean"
  18288. },
  18289. "when": {
  18290. "type": "array",
  18291. "items": {
  18292. "$ref": "#/components/schemas/Form.When"
  18293. }
  18294. },
  18295. "type": {
  18296. "type": "string",
  18297. "enum": [
  18298. "number"
  18299. ]
  18300. },
  18301. "minimum": {
  18302. "anyOf": [
  18303. {
  18304. "anyOf": [
  18305. {
  18306. "type": "number"
  18307. },
  18308. {
  18309. "type": "string",
  18310. "enum": [
  18311. "NaN"
  18312. ]
  18313. },
  18314. {
  18315. "type": "string",
  18316. "enum": [
  18317. "Infinity"
  18318. ]
  18319. },
  18320. {
  18321. "type": "string",
  18322. "enum": [
  18323. "-Infinity"
  18324. ]
  18325. }
  18326. ]
  18327. },
  18328. {
  18329. "type": "string",
  18330. "enum": [
  18331. "Infinity",
  18332. "-Infinity",
  18333. "NaN"
  18334. ]
  18335. }
  18336. ]
  18337. },
  18338. "maximum": {
  18339. "anyOf": [
  18340. {
  18341. "anyOf": [
  18342. {
  18343. "type": "number"
  18344. },
  18345. {
  18346. "type": "string",
  18347. "enum": [
  18348. "NaN"
  18349. ]
  18350. },
  18351. {
  18352. "type": "string",
  18353. "enum": [
  18354. "Infinity"
  18355. ]
  18356. },
  18357. {
  18358. "type": "string",
  18359. "enum": [
  18360. "-Infinity"
  18361. ]
  18362. }
  18363. ]
  18364. },
  18365. {
  18366. "type": "string",
  18367. "enum": [
  18368. "Infinity",
  18369. "-Infinity",
  18370. "NaN"
  18371. ]
  18372. }
  18373. ]
  18374. },
  18375. "default": {
  18376. "anyOf": [
  18377. {
  18378. "anyOf": [
  18379. {
  18380. "type": "number"
  18381. },
  18382. {
  18383. "type": "string",
  18384. "enum": [
  18385. "NaN"
  18386. ]
  18387. },
  18388. {
  18389. "type": "string",
  18390. "enum": [
  18391. "Infinity"
  18392. ]
  18393. },
  18394. {
  18395. "type": "string",
  18396. "enum": [
  18397. "-Infinity"
  18398. ]
  18399. }
  18400. ]
  18401. },
  18402. {
  18403. "type": "string",
  18404. "enum": [
  18405. "Infinity",
  18406. "-Infinity",
  18407. "NaN"
  18408. ]
  18409. }
  18410. ]
  18411. }
  18412. },
  18413. "required": [
  18414. "key",
  18415. "type"
  18416. ],
  18417. "additionalProperties": false
  18418. },
  18419. "Form.IntegerField": {
  18420. "type": "object",
  18421. "properties": {
  18422. "key": {
  18423. "type": "string"
  18424. },
  18425. "title": {
  18426. "type": "string"
  18427. },
  18428. "description": {
  18429. "type": "string"
  18430. },
  18431. "required": {
  18432. "type": "boolean"
  18433. },
  18434. "when": {
  18435. "type": "array",
  18436. "items": {
  18437. "$ref": "#/components/schemas/Form.When"
  18438. }
  18439. },
  18440. "type": {
  18441. "type": "string",
  18442. "enum": [
  18443. "integer"
  18444. ]
  18445. },
  18446. "minimum": {
  18447. "anyOf": [
  18448. {
  18449. "anyOf": [
  18450. {
  18451. "type": "number"
  18452. },
  18453. {
  18454. "type": "string",
  18455. "enum": [
  18456. "NaN"
  18457. ]
  18458. },
  18459. {
  18460. "type": "string",
  18461. "enum": [
  18462. "Infinity"
  18463. ]
  18464. },
  18465. {
  18466. "type": "string",
  18467. "enum": [
  18468. "-Infinity"
  18469. ]
  18470. }
  18471. ]
  18472. },
  18473. {
  18474. "type": "string",
  18475. "enum": [
  18476. "Infinity",
  18477. "-Infinity",
  18478. "NaN"
  18479. ]
  18480. }
  18481. ]
  18482. },
  18483. "maximum": {
  18484. "anyOf": [
  18485. {
  18486. "anyOf": [
  18487. {
  18488. "type": "number"
  18489. },
  18490. {
  18491. "type": "string",
  18492. "enum": [
  18493. "NaN"
  18494. ]
  18495. },
  18496. {
  18497. "type": "string",
  18498. "enum": [
  18499. "Infinity"
  18500. ]
  18501. },
  18502. {
  18503. "type": "string",
  18504. "enum": [
  18505. "-Infinity"
  18506. ]
  18507. }
  18508. ]
  18509. },
  18510. {
  18511. "type": "string",
  18512. "enum": [
  18513. "Infinity",
  18514. "-Infinity",
  18515. "NaN"
  18516. ]
  18517. }
  18518. ]
  18519. },
  18520. "default": {
  18521. "anyOf": [
  18522. {
  18523. "anyOf": [
  18524. {
  18525. "type": "number"
  18526. },
  18527. {
  18528. "type": "string",
  18529. "enum": [
  18530. "NaN"
  18531. ]
  18532. },
  18533. {
  18534. "type": "string",
  18535. "enum": [
  18536. "Infinity"
  18537. ]
  18538. },
  18539. {
  18540. "type": "string",
  18541. "enum": [
  18542. "-Infinity"
  18543. ]
  18544. }
  18545. ]
  18546. },
  18547. {
  18548. "type": "string",
  18549. "enum": [
  18550. "Infinity",
  18551. "-Infinity",
  18552. "NaN"
  18553. ]
  18554. }
  18555. ]
  18556. }
  18557. },
  18558. "required": [
  18559. "key",
  18560. "type"
  18561. ],
  18562. "additionalProperties": false
  18563. },
  18564. "Form.BooleanField": {
  18565. "type": "object",
  18566. "properties": {
  18567. "key": {
  18568. "type": "string"
  18569. },
  18570. "title": {
  18571. "type": "string"
  18572. },
  18573. "description": {
  18574. "type": "string"
  18575. },
  18576. "required": {
  18577. "type": "boolean"
  18578. },
  18579. "when": {
  18580. "type": "array",
  18581. "items": {
  18582. "$ref": "#/components/schemas/Form.When"
  18583. }
  18584. },
  18585. "type": {
  18586. "type": "string",
  18587. "enum": [
  18588. "boolean"
  18589. ]
  18590. },
  18591. "default": {
  18592. "type": "boolean"
  18593. }
  18594. },
  18595. "required": [
  18596. "key",
  18597. "type"
  18598. ],
  18599. "additionalProperties": false
  18600. },
  18601. "Form.MultiselectField": {
  18602. "type": "object",
  18603. "properties": {
  18604. "key": {
  18605. "type": "string"
  18606. },
  18607. "title": {
  18608. "type": "string"
  18609. },
  18610. "description": {
  18611. "type": "string"
  18612. },
  18613. "required": {
  18614. "type": "boolean"
  18615. },
  18616. "when": {
  18617. "type": "array",
  18618. "items": {
  18619. "$ref": "#/components/schemas/Form.When"
  18620. }
  18621. },
  18622. "type": {
  18623. "type": "string",
  18624. "enum": [
  18625. "multiselect"
  18626. ]
  18627. },
  18628. "options": {
  18629. "type": "array",
  18630. "items": {
  18631. "$ref": "#/components/schemas/Form.Option"
  18632. }
  18633. },
  18634. "minItems": {
  18635. "type": "integer",
  18636. "allOf": [
  18637. {
  18638. "minimum": 0
  18639. }
  18640. ]
  18641. },
  18642. "maxItems": {
  18643. "type": "integer",
  18644. "allOf": [
  18645. {
  18646. "minimum": 0
  18647. }
  18648. ]
  18649. },
  18650. "custom": {
  18651. "type": "boolean"
  18652. },
  18653. "default": {
  18654. "type": "array",
  18655. "items": {
  18656. "type": "string"
  18657. }
  18658. }
  18659. },
  18660. "required": [
  18661. "key",
  18662. "type",
  18663. "options"
  18664. ],
  18665. "additionalProperties": false
  18666. },
  18667. "Form.FormInfo": {
  18668. "type": "object",
  18669. "properties": {
  18670. "id": {
  18671. "type": "string",
  18672. "allOf": [
  18673. {
  18674. "pattern": "^frm_"
  18675. }
  18676. ]
  18677. },
  18678. "sessionID": {
  18679. "type": "string"
  18680. },
  18681. "title": {
  18682. "type": "string"
  18683. },
  18684. "metadata": {
  18685. "$ref": "#/components/schemas/Form.Metadata"
  18686. },
  18687. "mode": {
  18688. "type": "string",
  18689. "enum": [
  18690. "form"
  18691. ]
  18692. },
  18693. "fields": {
  18694. "type": "array",
  18695. "items": {
  18696. "anyOf": [
  18697. {
  18698. "$ref": "#/components/schemas/Form.StringField"
  18699. },
  18700. {
  18701. "$ref": "#/components/schemas/Form.NumberField"
  18702. },
  18703. {
  18704. "$ref": "#/components/schemas/Form.IntegerField"
  18705. },
  18706. {
  18707. "$ref": "#/components/schemas/Form.BooleanField"
  18708. },
  18709. {
  18710. "$ref": "#/components/schemas/Form.MultiselectField"
  18711. }
  18712. ]
  18713. }
  18714. }
  18715. },
  18716. "required": [
  18717. "id",
  18718. "sessionID",
  18719. "title",
  18720. "mode",
  18721. "fields"
  18722. ],
  18723. "additionalProperties": false
  18724. },
  18725. "Form.UrlInfo": {
  18726. "type": "object",
  18727. "properties": {
  18728. "id": {
  18729. "type": "string",
  18730. "allOf": [
  18731. {
  18732. "pattern": "^frm_"
  18733. }
  18734. ]
  18735. },
  18736. "sessionID": {
  18737. "type": "string"
  18738. },
  18739. "title": {
  18740. "type": "string"
  18741. },
  18742. "metadata": {
  18743. "$ref": "#/components/schemas/Form.Metadata"
  18744. },
  18745. "mode": {
  18746. "type": "string",
  18747. "enum": [
  18748. "url"
  18749. ]
  18750. },
  18751. "url": {
  18752. "type": "string"
  18753. }
  18754. },
  18755. "required": [
  18756. "id",
  18757. "sessionID",
  18758. "title",
  18759. "mode",
  18760. "url"
  18761. ],
  18762. "additionalProperties": false
  18763. },
  18764. "Form.CreatePayload": {
  18765. "type": "object",
  18766. "properties": {
  18767. "id": {
  18768. "anyOf": [
  18769. {
  18770. "type": "string",
  18771. "allOf": [
  18772. {
  18773. "pattern": "^frm_"
  18774. }
  18775. ]
  18776. },
  18777. {
  18778. "type": "null"
  18779. }
  18780. ]
  18781. },
  18782. "title": {
  18783. "type": "string"
  18784. },
  18785. "metadata": {
  18786. "$ref": "#/components/schemas/Form.Metadata"
  18787. },
  18788. "mode": {
  18789. "type": "string",
  18790. "enum": [
  18791. "form",
  18792. "url"
  18793. ]
  18794. },
  18795. "fields": {
  18796. "anyOf": [
  18797. {
  18798. "type": "array",
  18799. "items": {
  18800. "anyOf": [
  18801. {
  18802. "$ref": "#/components/schemas/Form.StringField"
  18803. },
  18804. {
  18805. "$ref": "#/components/schemas/Form.NumberField"
  18806. },
  18807. {
  18808. "$ref": "#/components/schemas/Form.IntegerField"
  18809. },
  18810. {
  18811. "$ref": "#/components/schemas/Form.BooleanField"
  18812. },
  18813. {
  18814. "$ref": "#/components/schemas/Form.MultiselectField"
  18815. }
  18816. ]
  18817. }
  18818. },
  18819. {
  18820. "type": "null"
  18821. }
  18822. ]
  18823. },
  18824. "url": {
  18825. "anyOf": [
  18826. {
  18827. "type": "string"
  18828. },
  18829. {
  18830. "type": "null"
  18831. }
  18832. ]
  18833. }
  18834. },
  18835. "required": [
  18836. "title",
  18837. "mode"
  18838. ],
  18839. "additionalProperties": false
  18840. },
  18841. "FormNotFoundError": {
  18842. "type": "object",
  18843. "properties": {
  18844. "_tag": {
  18845. "type": "string",
  18846. "enum": [
  18847. "FormNotFoundError"
  18848. ]
  18849. },
  18850. "id": {
  18851. "type": "string"
  18852. },
  18853. "message": {
  18854. "type": "string"
  18855. }
  18856. },
  18857. "required": [
  18858. "_tag",
  18859. "id",
  18860. "message"
  18861. ],
  18862. "additionalProperties": false
  18863. },
  18864. "Form.Value": {
  18865. "anyOf": [
  18866. {
  18867. "type": "string"
  18868. },
  18869. {
  18870. "anyOf": [
  18871. {
  18872. "anyOf": [
  18873. {
  18874. "type": "number"
  18875. },
  18876. {
  18877. "type": "string",
  18878. "enum": [
  18879. "NaN"
  18880. ]
  18881. },
  18882. {
  18883. "type": "string",
  18884. "enum": [
  18885. "Infinity"
  18886. ]
  18887. },
  18888. {
  18889. "type": "string",
  18890. "enum": [
  18891. "-Infinity"
  18892. ]
  18893. }
  18894. ]
  18895. },
  18896. {
  18897. "type": "string",
  18898. "enum": [
  18899. "Infinity",
  18900. "-Infinity",
  18901. "NaN"
  18902. ]
  18903. }
  18904. ]
  18905. },
  18906. {
  18907. "type": "boolean"
  18908. },
  18909. {
  18910. "type": "array",
  18911. "items": {
  18912. "type": "string"
  18913. }
  18914. }
  18915. ]
  18916. },
  18917. "Form.Answer": {
  18918. "type": "object",
  18919. "additionalProperties": {
  18920. "$ref": "#/components/schemas/Form.Value"
  18921. }
  18922. },
  18923. "Form.State": {
  18924. "anyOf": [
  18925. {
  18926. "type": "object",
  18927. "properties": {
  18928. "status": {
  18929. "type": "string",
  18930. "enum": [
  18931. "pending"
  18932. ]
  18933. }
  18934. },
  18935. "required": [
  18936. "status"
  18937. ],
  18938. "additionalProperties": false
  18939. },
  18940. {
  18941. "type": "object",
  18942. "properties": {
  18943. "status": {
  18944. "type": "string",
  18945. "enum": [
  18946. "answered"
  18947. ]
  18948. },
  18949. "answer": {
  18950. "$ref": "#/components/schemas/Form.Answer"
  18951. }
  18952. },
  18953. "required": [
  18954. "status",
  18955. "answer"
  18956. ],
  18957. "additionalProperties": false
  18958. },
  18959. {
  18960. "type": "object",
  18961. "properties": {
  18962. "status": {
  18963. "type": "string",
  18964. "enum": [
  18965. "cancelled"
  18966. ]
  18967. }
  18968. },
  18969. "required": [
  18970. "status"
  18971. ],
  18972. "additionalProperties": false
  18973. }
  18974. ]
  18975. },
  18976. "Form.Reply": {
  18977. "type": "object",
  18978. "properties": {
  18979. "answer": {
  18980. "$ref": "#/components/schemas/Form.Answer"
  18981. }
  18982. },
  18983. "required": [
  18984. "answer"
  18985. ],
  18986. "additionalProperties": false
  18987. },
  18988. "FormAlreadySettledError": {
  18989. "type": "object",
  18990. "properties": {
  18991. "_tag": {
  18992. "type": "string",
  18993. "enum": [
  18994. "FormAlreadySettledError"
  18995. ]
  18996. },
  18997. "id": {
  18998. "type": "string"
  18999. },
  19000. "message": {
  19001. "type": "string"
  19002. }
  19003. },
  19004. "required": [
  19005. "_tag",
  19006. "id",
  19007. "message"
  19008. ],
  19009. "additionalProperties": false
  19010. },
  19011. "FormInvalidAnswerError": {
  19012. "type": "object",
  19013. "properties": {
  19014. "_tag": {
  19015. "type": "string",
  19016. "enum": [
  19017. "FormInvalidAnswerError"
  19018. ]
  19019. },
  19020. "id": {
  19021. "type": "string"
  19022. },
  19023. "message": {
  19024. "type": "string"
  19025. }
  19026. },
  19027. "required": [
  19028. "_tag",
  19029. "id",
  19030. "message"
  19031. ],
  19032. "additionalProperties": false
  19033. },
  19034. "PermissionV2.Source": {
  19035. "anyOf": [
  19036. {
  19037. "type": "object",
  19038. "properties": {
  19039. "type": {
  19040. "type": "string",
  19041. "enum": [
  19042. "tool"
  19043. ]
  19044. },
  19045. "messageID": {
  19046. "type": "string"
  19047. },
  19048. "callID": {
  19049. "type": "string"
  19050. }
  19051. },
  19052. "required": [
  19053. "type",
  19054. "messageID",
  19055. "callID"
  19056. ],
  19057. "additionalProperties": false
  19058. }
  19059. ]
  19060. },
  19061. "PermissionV2.Request": {
  19062. "type": "object",
  19063. "properties": {
  19064. "id": {
  19065. "type": "string",
  19066. "allOf": [
  19067. {
  19068. "pattern": "^per"
  19069. }
  19070. ]
  19071. },
  19072. "sessionID": {
  19073. "type": "string",
  19074. "allOf": [
  19075. {
  19076. "pattern": "^ses"
  19077. }
  19078. ]
  19079. },
  19080. "action": {
  19081. "type": "string"
  19082. },
  19083. "resources": {
  19084. "type": "array",
  19085. "items": {
  19086. "type": "string"
  19087. }
  19088. },
  19089. "save": {
  19090. "type": "array",
  19091. "items": {
  19092. "type": "string"
  19093. }
  19094. },
  19095. "metadata": {
  19096. "type": "object"
  19097. },
  19098. "source": {
  19099. "$ref": "#/components/schemas/PermissionV2.Source"
  19100. }
  19101. },
  19102. "required": [
  19103. "id",
  19104. "sessionID",
  19105. "action",
  19106. "resources"
  19107. ],
  19108. "additionalProperties": false
  19109. },
  19110. "PermissionSaved.Info": {
  19111. "type": "object",
  19112. "properties": {
  19113. "id": {
  19114. "type": "string"
  19115. },
  19116. "projectID": {
  19117. "type": "string"
  19118. },
  19119. "action": {
  19120. "type": "string"
  19121. },
  19122. "resource": {
  19123. "type": "string"
  19124. }
  19125. },
  19126. "required": [
  19127. "id",
  19128. "projectID",
  19129. "action",
  19130. "resource"
  19131. ],
  19132. "additionalProperties": false
  19133. },
  19134. "PermissionNotFoundError": {
  19135. "type": "object",
  19136. "properties": {
  19137. "_tag": {
  19138. "type": "string",
  19139. "enum": [
  19140. "PermissionNotFoundError"
  19141. ]
  19142. },
  19143. "requestID": {
  19144. "type": "string"
  19145. },
  19146. "message": {
  19147. "type": "string"
  19148. }
  19149. },
  19150. "required": [
  19151. "_tag",
  19152. "requestID",
  19153. "message"
  19154. ],
  19155. "additionalProperties": false
  19156. },
  19157. "PermissionV2.Reply": {
  19158. "type": "string",
  19159. "enum": [
  19160. "once",
  19161. "always",
  19162. "reject"
  19163. ]
  19164. },
  19165. "FileSystem.Entry": {
  19166. "type": "object",
  19167. "properties": {
  19168. "path": {
  19169. "type": "string"
  19170. },
  19171. "type": {
  19172. "type": "string",
  19173. "enum": [
  19174. "file",
  19175. "directory"
  19176. ]
  19177. }
  19178. },
  19179. "required": [
  19180. "path",
  19181. "type"
  19182. ],
  19183. "additionalProperties": false
  19184. },
  19185. "Command.Info": {
  19186. "type": "object",
  19187. "properties": {
  19188. "name": {
  19189. "type": "string"
  19190. },
  19191. "template": {
  19192. "type": "string"
  19193. },
  19194. "description": {
  19195. "type": "string"
  19196. },
  19197. "agent": {
  19198. "type": "string"
  19199. },
  19200. "model": {
  19201. "$ref": "#/components/schemas/Model.Ref"
  19202. },
  19203. "subtask": {
  19204. "type": "boolean"
  19205. }
  19206. },
  19207. "required": [
  19208. "name",
  19209. "template"
  19210. ],
  19211. "additionalProperties": false
  19212. },
  19213. "Skill.Info": {
  19214. "type": "object",
  19215. "properties": {
  19216. "id": {
  19217. "type": "string"
  19218. },
  19219. "name": {
  19220. "type": "string"
  19221. },
  19222. "description": {
  19223. "type": "string"
  19224. },
  19225. "slash": {
  19226. "type": "boolean"
  19227. },
  19228. "autoinvoke": {
  19229. "type": "boolean"
  19230. },
  19231. "location": {
  19232. "type": "string"
  19233. },
  19234. "content": {
  19235. "type": "string"
  19236. }
  19237. },
  19238. "required": [
  19239. "id",
  19240. "name",
  19241. "location",
  19242. "content"
  19243. ],
  19244. "additionalProperties": false
  19245. },
  19246. "models-dev.refreshed": {
  19247. "type": "object",
  19248. "properties": {
  19249. "id": {
  19250. "type": "string",
  19251. "allOf": [
  19252. {
  19253. "pattern": "^evt_"
  19254. }
  19255. ]
  19256. },
  19257. "created": {
  19258. "type": "number"
  19259. },
  19260. "metadata": {
  19261. "type": "object"
  19262. },
  19263. "type": {
  19264. "type": "string",
  19265. "enum": [
  19266. "models-dev.refreshed"
  19267. ]
  19268. },
  19269. "location": {
  19270. "$ref": "#/components/schemas/Location.Ref"
  19271. },
  19272. "data": {
  19273. "anyOf": [
  19274. {
  19275. "type": "object"
  19276. },
  19277. {
  19278. "type": "array"
  19279. }
  19280. ]
  19281. }
  19282. },
  19283. "required": [
  19284. "id",
  19285. "created",
  19286. "type",
  19287. "data"
  19288. ],
  19289. "additionalProperties": false
  19290. },
  19291. "integration.updated": {
  19292. "type": "object",
  19293. "properties": {
  19294. "id": {
  19295. "type": "string",
  19296. "allOf": [
  19297. {
  19298. "pattern": "^evt_"
  19299. }
  19300. ]
  19301. },
  19302. "created": {
  19303. "type": "number"
  19304. },
  19305. "metadata": {
  19306. "type": "object"
  19307. },
  19308. "type": {
  19309. "type": "string",
  19310. "enum": [
  19311. "integration.updated"
  19312. ]
  19313. },
  19314. "location": {
  19315. "$ref": "#/components/schemas/Location.Ref"
  19316. },
  19317. "data": {
  19318. "anyOf": [
  19319. {
  19320. "type": "object"
  19321. },
  19322. {
  19323. "type": "array"
  19324. }
  19325. ]
  19326. }
  19327. },
  19328. "required": [
  19329. "id",
  19330. "created",
  19331. "type",
  19332. "data"
  19333. ],
  19334. "additionalProperties": false
  19335. },
  19336. "integration.connection.updated": {
  19337. "type": "object",
  19338. "properties": {
  19339. "id": {
  19340. "type": "string",
  19341. "allOf": [
  19342. {
  19343. "pattern": "^evt_"
  19344. }
  19345. ]
  19346. },
  19347. "created": {
  19348. "type": "number"
  19349. },
  19350. "metadata": {
  19351. "type": "object"
  19352. },
  19353. "type": {
  19354. "type": "string",
  19355. "enum": [
  19356. "integration.connection.updated"
  19357. ]
  19358. },
  19359. "location": {
  19360. "$ref": "#/components/schemas/Location.Ref"
  19361. },
  19362. "data": {
  19363. "type": "object",
  19364. "properties": {
  19365. "integrationID": {
  19366. "type": "string"
  19367. }
  19368. },
  19369. "required": [
  19370. "integrationID"
  19371. ],
  19372. "additionalProperties": false
  19373. }
  19374. },
  19375. "required": [
  19376. "id",
  19377. "created",
  19378. "type",
  19379. "data"
  19380. ],
  19381. "additionalProperties": false
  19382. },
  19383. "catalog.updated": {
  19384. "type": "object",
  19385. "properties": {
  19386. "id": {
  19387. "type": "string",
  19388. "allOf": [
  19389. {
  19390. "pattern": "^evt_"
  19391. }
  19392. ]
  19393. },
  19394. "created": {
  19395. "type": "number"
  19396. },
  19397. "metadata": {
  19398. "type": "object"
  19399. },
  19400. "type": {
  19401. "type": "string",
  19402. "enum": [
  19403. "catalog.updated"
  19404. ]
  19405. },
  19406. "location": {
  19407. "$ref": "#/components/schemas/Location.Ref"
  19408. },
  19409. "data": {
  19410. "anyOf": [
  19411. {
  19412. "type": "object"
  19413. },
  19414. {
  19415. "type": "array"
  19416. }
  19417. ]
  19418. }
  19419. },
  19420. "required": [
  19421. "id",
  19422. "created",
  19423. "type",
  19424. "data"
  19425. ],
  19426. "additionalProperties": false
  19427. },
  19428. "agent.updated": {
  19429. "type": "object",
  19430. "properties": {
  19431. "id": {
  19432. "type": "string",
  19433. "allOf": [
  19434. {
  19435. "pattern": "^evt_"
  19436. }
  19437. ]
  19438. },
  19439. "created": {
  19440. "type": "number"
  19441. },
  19442. "metadata": {
  19443. "type": "object"
  19444. },
  19445. "type": {
  19446. "type": "string",
  19447. "enum": [
  19448. "agent.updated"
  19449. ]
  19450. },
  19451. "location": {
  19452. "$ref": "#/components/schemas/Location.Ref"
  19453. },
  19454. "data": {
  19455. "anyOf": [
  19456. {
  19457. "type": "object"
  19458. },
  19459. {
  19460. "type": "array"
  19461. }
  19462. ]
  19463. }
  19464. },
  19465. "required": [
  19466. "id",
  19467. "created",
  19468. "type",
  19469. "data"
  19470. ],
  19471. "additionalProperties": false
  19472. },
  19473. "FileDiff.LegacyInfo": {
  19474. "type": "object",
  19475. "properties": {
  19476. "file": {
  19477. "type": "string"
  19478. },
  19479. "patch": {
  19480. "type": "string"
  19481. },
  19482. "additions": {
  19483. "type": "number"
  19484. },
  19485. "deletions": {
  19486. "type": "number"
  19487. },
  19488. "status": {
  19489. "type": "string",
  19490. "enum": [
  19491. "added",
  19492. "deleted",
  19493. "modified"
  19494. ]
  19495. }
  19496. },
  19497. "required": [
  19498. "additions",
  19499. "deletions"
  19500. ],
  19501. "additionalProperties": false
  19502. },
  19503. "PermissionAction": {
  19504. "type": "string",
  19505. "enum": [
  19506. "allow",
  19507. "deny",
  19508. "ask"
  19509. ]
  19510. },
  19511. "PermissionRule": {
  19512. "type": "object",
  19513. "properties": {
  19514. "permission": {
  19515. "type": "string"
  19516. },
  19517. "pattern": {
  19518. "type": "string"
  19519. },
  19520. "action": {
  19521. "$ref": "#/components/schemas/PermissionAction"
  19522. }
  19523. },
  19524. "required": [
  19525. "permission",
  19526. "pattern",
  19527. "action"
  19528. ],
  19529. "additionalProperties": false
  19530. },
  19531. "PermissionRuleset": {
  19532. "type": "array",
  19533. "items": {
  19534. "$ref": "#/components/schemas/PermissionRule"
  19535. }
  19536. },
  19537. "SessionV1.Info": {
  19538. "type": "object",
  19539. "properties": {
  19540. "id": {
  19541. "type": "string",
  19542. "allOf": [
  19543. {
  19544. "pattern": "^ses"
  19545. }
  19546. ]
  19547. },
  19548. "slug": {
  19549. "type": "string"
  19550. },
  19551. "projectID": {
  19552. "type": "string"
  19553. },
  19554. "workspaceID": {
  19555. "type": "string",
  19556. "allOf": [
  19557. {
  19558. "pattern": "^wrk"
  19559. }
  19560. ]
  19561. },
  19562. "directory": {
  19563. "type": "string"
  19564. },
  19565. "path": {
  19566. "type": "string"
  19567. },
  19568. "parentID": {
  19569. "type": "string",
  19570. "allOf": [
  19571. {
  19572. "pattern": "^ses"
  19573. }
  19574. ]
  19575. },
  19576. "summary": {
  19577. "type": "object",
  19578. "properties": {
  19579. "additions": {
  19580. "type": "number"
  19581. },
  19582. "deletions": {
  19583. "type": "number"
  19584. },
  19585. "files": {
  19586. "type": "number"
  19587. },
  19588. "diffs": {
  19589. "type": "array",
  19590. "items": {
  19591. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  19592. }
  19593. }
  19594. },
  19595. "required": [
  19596. "additions",
  19597. "deletions",
  19598. "files"
  19599. ],
  19600. "additionalProperties": false
  19601. },
  19602. "cost": {
  19603. "type": "number"
  19604. },
  19605. "tokens": {
  19606. "type": "object",
  19607. "properties": {
  19608. "input": {
  19609. "type": "number"
  19610. },
  19611. "output": {
  19612. "type": "number"
  19613. },
  19614. "reasoning": {
  19615. "type": "number"
  19616. },
  19617. "cache": {
  19618. "type": "object",
  19619. "properties": {
  19620. "read": {
  19621. "type": "number"
  19622. },
  19623. "write": {
  19624. "type": "number"
  19625. }
  19626. },
  19627. "required": [
  19628. "read",
  19629. "write"
  19630. ],
  19631. "additionalProperties": false
  19632. }
  19633. },
  19634. "required": [
  19635. "input",
  19636. "output",
  19637. "reasoning",
  19638. "cache"
  19639. ],
  19640. "additionalProperties": false
  19641. },
  19642. "share": {
  19643. "type": "object",
  19644. "properties": {
  19645. "url": {
  19646. "type": "string"
  19647. }
  19648. },
  19649. "required": [
  19650. "url"
  19651. ],
  19652. "additionalProperties": false
  19653. },
  19654. "title": {
  19655. "type": "string"
  19656. },
  19657. "agent": {
  19658. "type": "string"
  19659. },
  19660. "model": {
  19661. "type": "object",
  19662. "properties": {
  19663. "id": {
  19664. "type": "string"
  19665. },
  19666. "providerID": {
  19667. "type": "string"
  19668. },
  19669. "variant": {
  19670. "type": "string"
  19671. }
  19672. },
  19673. "required": [
  19674. "id",
  19675. "providerID"
  19676. ],
  19677. "additionalProperties": false
  19678. },
  19679. "version": {
  19680. "type": "string"
  19681. },
  19682. "metadata": {
  19683. "type": "object"
  19684. },
  19685. "time": {
  19686. "type": "object",
  19687. "properties": {
  19688. "created": {
  19689. "type": "integer",
  19690. "allOf": [
  19691. {
  19692. "minimum": 0
  19693. }
  19694. ]
  19695. },
  19696. "updated": {
  19697. "type": "integer",
  19698. "allOf": [
  19699. {
  19700. "minimum": 0
  19701. }
  19702. ]
  19703. },
  19704. "compacting": {
  19705. "type": "integer",
  19706. "allOf": [
  19707. {
  19708. "minimum": 0
  19709. }
  19710. ]
  19711. },
  19712. "archived": {
  19713. "type": "number"
  19714. }
  19715. },
  19716. "required": [
  19717. "created",
  19718. "updated"
  19719. ],
  19720. "additionalProperties": false
  19721. },
  19722. "permission": {
  19723. "$ref": "#/components/schemas/PermissionRuleset"
  19724. },
  19725. "revert": {
  19726. "type": "object",
  19727. "properties": {
  19728. "messageID": {
  19729. "type": "string",
  19730. "allOf": [
  19731. {
  19732. "pattern": "^msg"
  19733. }
  19734. ]
  19735. },
  19736. "partID": {
  19737. "type": "string",
  19738. "allOf": [
  19739. {
  19740. "pattern": "^prt"
  19741. }
  19742. ]
  19743. },
  19744. "snapshot": {
  19745. "type": "string"
  19746. },
  19747. "diff": {
  19748. "type": "string"
  19749. }
  19750. },
  19751. "required": [
  19752. "messageID"
  19753. ],
  19754. "additionalProperties": false
  19755. }
  19756. },
  19757. "required": [
  19758. "id",
  19759. "slug",
  19760. "projectID",
  19761. "directory",
  19762. "title",
  19763. "version",
  19764. "time"
  19765. ],
  19766. "additionalProperties": false
  19767. },
  19768. "session.created": {
  19769. "type": "object",
  19770. "properties": {
  19771. "id": {
  19772. "type": "string",
  19773. "allOf": [
  19774. {
  19775. "pattern": "^evt_"
  19776. }
  19777. ]
  19778. },
  19779. "created": {
  19780. "type": "number"
  19781. },
  19782. "metadata": {
  19783. "type": "object"
  19784. },
  19785. "type": {
  19786. "type": "string",
  19787. "enum": [
  19788. "session.created"
  19789. ]
  19790. },
  19791. "durable": {
  19792. "type": "object",
  19793. "properties": {
  19794. "aggregateID": {
  19795. "type": "string"
  19796. },
  19797. "seq": {
  19798. "type": "integer",
  19799. "allOf": [
  19800. {
  19801. "minimum": 0
  19802. }
  19803. ]
  19804. },
  19805. "version": {
  19806. "type": "number",
  19807. "enum": [
  19808. 1
  19809. ]
  19810. }
  19811. },
  19812. "required": [
  19813. "aggregateID",
  19814. "seq",
  19815. "version"
  19816. ],
  19817. "additionalProperties": false
  19818. },
  19819. "location": {
  19820. "$ref": "#/components/schemas/Location.Ref"
  19821. },
  19822. "data": {
  19823. "type": "object",
  19824. "properties": {
  19825. "sessionID": {
  19826. "type": "string",
  19827. "allOf": [
  19828. {
  19829. "pattern": "^ses"
  19830. }
  19831. ]
  19832. },
  19833. "info": {
  19834. "$ref": "#/components/schemas/SessionV1.Info"
  19835. }
  19836. },
  19837. "required": [
  19838. "sessionID",
  19839. "info"
  19840. ],
  19841. "additionalProperties": false
  19842. }
  19843. },
  19844. "required": [
  19845. "id",
  19846. "created",
  19847. "type",
  19848. "durable",
  19849. "data"
  19850. ],
  19851. "additionalProperties": false
  19852. },
  19853. "session.updated": {
  19854. "type": "object",
  19855. "properties": {
  19856. "id": {
  19857. "type": "string",
  19858. "allOf": [
  19859. {
  19860. "pattern": "^evt_"
  19861. }
  19862. ]
  19863. },
  19864. "created": {
  19865. "type": "number"
  19866. },
  19867. "metadata": {
  19868. "type": "object"
  19869. },
  19870. "type": {
  19871. "type": "string",
  19872. "enum": [
  19873. "session.updated"
  19874. ]
  19875. },
  19876. "durable": {
  19877. "type": "object",
  19878. "properties": {
  19879. "aggregateID": {
  19880. "type": "string"
  19881. },
  19882. "seq": {
  19883. "type": "integer",
  19884. "allOf": [
  19885. {
  19886. "minimum": 0
  19887. }
  19888. ]
  19889. },
  19890. "version": {
  19891. "type": "number",
  19892. "enum": [
  19893. 1
  19894. ]
  19895. }
  19896. },
  19897. "required": [
  19898. "aggregateID",
  19899. "seq",
  19900. "version"
  19901. ],
  19902. "additionalProperties": false
  19903. },
  19904. "location": {
  19905. "$ref": "#/components/schemas/Location.Ref"
  19906. },
  19907. "data": {
  19908. "type": "object",
  19909. "properties": {
  19910. "sessionID": {
  19911. "type": "string",
  19912. "allOf": [
  19913. {
  19914. "pattern": "^ses"
  19915. }
  19916. ]
  19917. },
  19918. "info": {
  19919. "$ref": "#/components/schemas/SessionV1.Info"
  19920. }
  19921. },
  19922. "required": [
  19923. "sessionID",
  19924. "info"
  19925. ],
  19926. "additionalProperties": false
  19927. }
  19928. },
  19929. "required": [
  19930. "id",
  19931. "created",
  19932. "type",
  19933. "durable",
  19934. "data"
  19935. ],
  19936. "additionalProperties": false
  19937. },
  19938. "session.deleted1": {
  19939. "type": "object",
  19940. "properties": {
  19941. "id": {
  19942. "type": "string",
  19943. "allOf": [
  19944. {
  19945. "pattern": "^evt_"
  19946. }
  19947. ]
  19948. },
  19949. "created": {
  19950. "type": "number"
  19951. },
  19952. "metadata": {
  19953. "type": "object"
  19954. },
  19955. "type": {
  19956. "type": "string",
  19957. "enum": [
  19958. "session.deleted"
  19959. ]
  19960. },
  19961. "durable": {
  19962. "type": "object",
  19963. "properties": {
  19964. "aggregateID": {
  19965. "type": "string"
  19966. },
  19967. "seq": {
  19968. "type": "integer",
  19969. "allOf": [
  19970. {
  19971. "minimum": 0
  19972. }
  19973. ]
  19974. },
  19975. "version": {
  19976. "type": "number",
  19977. "enum": [
  19978. 1
  19979. ]
  19980. }
  19981. },
  19982. "required": [
  19983. "aggregateID",
  19984. "seq",
  19985. "version"
  19986. ],
  19987. "additionalProperties": false
  19988. },
  19989. "location": {
  19990. "$ref": "#/components/schemas/Location.Ref"
  19991. },
  19992. "data": {
  19993. "type": "object",
  19994. "properties": {
  19995. "sessionID": {
  19996. "type": "string",
  19997. "allOf": [
  19998. {
  19999. "pattern": "^ses"
  20000. }
  20001. ]
  20002. },
  20003. "info": {
  20004. "$ref": "#/components/schemas/SessionV1.Info"
  20005. }
  20006. },
  20007. "required": [
  20008. "sessionID",
  20009. "info"
  20010. ],
  20011. "additionalProperties": false
  20012. }
  20013. },
  20014. "required": [
  20015. "id",
  20016. "created",
  20017. "type",
  20018. "durable",
  20019. "data"
  20020. ],
  20021. "additionalProperties": false
  20022. },
  20023. "JSONSchema": {
  20024. "type": "object"
  20025. },
  20026. "OutputFormat": {
  20027. "anyOf": [
  20028. {
  20029. "type": "object",
  20030. "properties": {
  20031. "type": {
  20032. "type": "string",
  20033. "enum": [
  20034. "text"
  20035. ]
  20036. }
  20037. },
  20038. "required": [
  20039. "type"
  20040. ],
  20041. "additionalProperties": false
  20042. },
  20043. {
  20044. "type": "object",
  20045. "properties": {
  20046. "type": {
  20047. "type": "string",
  20048. "enum": [
  20049. "json_schema"
  20050. ]
  20051. },
  20052. "schema": {
  20053. "$ref": "#/components/schemas/JSONSchema"
  20054. },
  20055. "retryCount": {
  20056. "anyOf": [
  20057. {
  20058. "anyOf": [
  20059. {
  20060. "type": "integer",
  20061. "allOf": [
  20062. {
  20063. "minimum": 0
  20064. }
  20065. ]
  20066. },
  20067. {
  20068. "type": "null"
  20069. }
  20070. ]
  20071. },
  20072. {
  20073. "type": "null"
  20074. }
  20075. ]
  20076. }
  20077. },
  20078. "required": [
  20079. "type",
  20080. "schema"
  20081. ],
  20082. "additionalProperties": false
  20083. }
  20084. ]
  20085. },
  20086. "UserMessage": {
  20087. "type": "object",
  20088. "properties": {
  20089. "id": {
  20090. "type": "string",
  20091. "allOf": [
  20092. {
  20093. "pattern": "^msg"
  20094. }
  20095. ]
  20096. },
  20097. "sessionID": {
  20098. "type": "string",
  20099. "allOf": [
  20100. {
  20101. "pattern": "^ses"
  20102. }
  20103. ]
  20104. },
  20105. "role": {
  20106. "type": "string",
  20107. "enum": [
  20108. "user"
  20109. ]
  20110. },
  20111. "time": {
  20112. "type": "object",
  20113. "properties": {
  20114. "created": {
  20115. "type": "number",
  20116. "allOf": [
  20117. {
  20118. "minimum": 0
  20119. }
  20120. ]
  20121. }
  20122. },
  20123. "required": [
  20124. "created"
  20125. ],
  20126. "additionalProperties": false
  20127. },
  20128. "format": {
  20129. "anyOf": [
  20130. {
  20131. "$ref": "#/components/schemas/OutputFormat"
  20132. },
  20133. {
  20134. "type": "null"
  20135. }
  20136. ]
  20137. },
  20138. "summary": {
  20139. "anyOf": [
  20140. {
  20141. "type": "object",
  20142. "properties": {
  20143. "title": {
  20144. "anyOf": [
  20145. {
  20146. "type": "string"
  20147. },
  20148. {
  20149. "type": "null"
  20150. }
  20151. ]
  20152. },
  20153. "body": {
  20154. "anyOf": [
  20155. {
  20156. "type": "string"
  20157. },
  20158. {
  20159. "type": "null"
  20160. }
  20161. ]
  20162. },
  20163. "diffs": {
  20164. "type": "array",
  20165. "items": {
  20166. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  20167. }
  20168. }
  20169. },
  20170. "required": [
  20171. "diffs"
  20172. ],
  20173. "additionalProperties": false
  20174. },
  20175. {
  20176. "type": "null"
  20177. }
  20178. ]
  20179. },
  20180. "agent": {
  20181. "type": "string"
  20182. },
  20183. "model": {
  20184. "type": "object",
  20185. "properties": {
  20186. "providerID": {
  20187. "type": "string"
  20188. },
  20189. "modelID": {
  20190. "type": "string"
  20191. },
  20192. "variant": {
  20193. "anyOf": [
  20194. {
  20195. "type": "string"
  20196. },
  20197. {
  20198. "type": "null"
  20199. }
  20200. ]
  20201. }
  20202. },
  20203. "required": [
  20204. "providerID",
  20205. "modelID"
  20206. ],
  20207. "additionalProperties": false
  20208. },
  20209. "system": {
  20210. "anyOf": [
  20211. {
  20212. "type": "string"
  20213. },
  20214. {
  20215. "type": "null"
  20216. }
  20217. ]
  20218. },
  20219. "tools": {
  20220. "anyOf": [
  20221. {
  20222. "type": "object",
  20223. "additionalProperties": {
  20224. "type": "boolean"
  20225. }
  20226. },
  20227. {
  20228. "type": "null"
  20229. }
  20230. ]
  20231. }
  20232. },
  20233. "required": [
  20234. "id",
  20235. "sessionID",
  20236. "role",
  20237. "time",
  20238. "agent",
  20239. "model"
  20240. ],
  20241. "additionalProperties": false
  20242. },
  20243. "ProviderAuthError": {
  20244. "type": "object",
  20245. "properties": {
  20246. "name": {
  20247. "type": "string",
  20248. "enum": [
  20249. "ProviderAuthError"
  20250. ]
  20251. },
  20252. "data": {
  20253. "type": "object",
  20254. "properties": {
  20255. "providerID": {
  20256. "type": "string"
  20257. },
  20258. "message": {
  20259. "type": "string"
  20260. }
  20261. },
  20262. "required": [
  20263. "providerID",
  20264. "message"
  20265. ],
  20266. "additionalProperties": false
  20267. }
  20268. },
  20269. "required": [
  20270. "name",
  20271. "data"
  20272. ],
  20273. "additionalProperties": false
  20274. },
  20275. "UnknownError1": {
  20276. "type": "object",
  20277. "properties": {
  20278. "name": {
  20279. "type": "string",
  20280. "enum": [
  20281. "UnknownError"
  20282. ]
  20283. },
  20284. "data": {
  20285. "type": "object",
  20286. "properties": {
  20287. "message": {
  20288. "type": "string"
  20289. },
  20290. "ref": {
  20291. "anyOf": [
  20292. {
  20293. "type": "string"
  20294. },
  20295. {
  20296. "type": "null"
  20297. }
  20298. ]
  20299. }
  20300. },
  20301. "required": [
  20302. "message"
  20303. ],
  20304. "additionalProperties": false
  20305. }
  20306. },
  20307. "required": [
  20308. "name",
  20309. "data"
  20310. ],
  20311. "additionalProperties": false
  20312. },
  20313. "MessageOutputLengthError": {
  20314. "type": "object",
  20315. "properties": {
  20316. "name": {
  20317. "type": "string",
  20318. "enum": [
  20319. "MessageOutputLengthError"
  20320. ]
  20321. },
  20322. "data": {
  20323. "anyOf": [
  20324. {
  20325. "type": "object"
  20326. },
  20327. {
  20328. "type": "array"
  20329. }
  20330. ]
  20331. }
  20332. },
  20333. "required": [
  20334. "name",
  20335. "data"
  20336. ],
  20337. "additionalProperties": false
  20338. },
  20339. "MessageAbortedError": {
  20340. "type": "object",
  20341. "properties": {
  20342. "name": {
  20343. "type": "string",
  20344. "enum": [
  20345. "MessageAbortedError"
  20346. ]
  20347. },
  20348. "data": {
  20349. "type": "object",
  20350. "properties": {
  20351. "message": {
  20352. "type": "string"
  20353. }
  20354. },
  20355. "required": [
  20356. "message"
  20357. ],
  20358. "additionalProperties": false
  20359. }
  20360. },
  20361. "required": [
  20362. "name",
  20363. "data"
  20364. ],
  20365. "additionalProperties": false
  20366. },
  20367. "StructuredOutputError": {
  20368. "type": "object",
  20369. "properties": {
  20370. "name": {
  20371. "type": "string",
  20372. "enum": [
  20373. "StructuredOutputError"
  20374. ]
  20375. },
  20376. "data": {
  20377. "type": "object",
  20378. "properties": {
  20379. "message": {
  20380. "type": "string"
  20381. },
  20382. "retries": {
  20383. "type": "integer",
  20384. "allOf": [
  20385. {
  20386. "minimum": 0
  20387. }
  20388. ]
  20389. }
  20390. },
  20391. "required": [
  20392. "message",
  20393. "retries"
  20394. ],
  20395. "additionalProperties": false
  20396. }
  20397. },
  20398. "required": [
  20399. "name",
  20400. "data"
  20401. ],
  20402. "additionalProperties": false
  20403. },
  20404. "ContextOverflowError": {
  20405. "type": "object",
  20406. "properties": {
  20407. "name": {
  20408. "type": "string",
  20409. "enum": [
  20410. "ContextOverflowError"
  20411. ]
  20412. },
  20413. "data": {
  20414. "type": "object",
  20415. "properties": {
  20416. "message": {
  20417. "type": "string"
  20418. },
  20419. "responseBody": {
  20420. "anyOf": [
  20421. {
  20422. "type": "string"
  20423. },
  20424. {
  20425. "type": "null"
  20426. }
  20427. ]
  20428. }
  20429. },
  20430. "required": [
  20431. "message"
  20432. ],
  20433. "additionalProperties": false
  20434. }
  20435. },
  20436. "required": [
  20437. "name",
  20438. "data"
  20439. ],
  20440. "additionalProperties": false
  20441. },
  20442. "ContentFilterError": {
  20443. "type": "object",
  20444. "properties": {
  20445. "name": {
  20446. "type": "string",
  20447. "enum": [
  20448. "ContentFilterError"
  20449. ]
  20450. },
  20451. "data": {
  20452. "type": "object",
  20453. "properties": {
  20454. "message": {
  20455. "type": "string"
  20456. }
  20457. },
  20458. "required": [
  20459. "message"
  20460. ],
  20461. "additionalProperties": false
  20462. }
  20463. },
  20464. "required": [
  20465. "name",
  20466. "data"
  20467. ],
  20468. "additionalProperties": false
  20469. },
  20470. "APIError": {
  20471. "type": "object",
  20472. "properties": {
  20473. "name": {
  20474. "type": "string",
  20475. "enum": [
  20476. "APIError"
  20477. ]
  20478. },
  20479. "data": {
  20480. "type": "object",
  20481. "properties": {
  20482. "message": {
  20483. "type": "string"
  20484. },
  20485. "statusCode": {
  20486. "anyOf": [
  20487. {
  20488. "type": "integer",
  20489. "allOf": [
  20490. {
  20491. "minimum": 0
  20492. }
  20493. ]
  20494. },
  20495. {
  20496. "type": "null"
  20497. }
  20498. ]
  20499. },
  20500. "isRetryable": {
  20501. "type": "boolean"
  20502. },
  20503. "responseHeaders": {
  20504. "anyOf": [
  20505. {
  20506. "type": "object",
  20507. "additionalProperties": {
  20508. "type": "string"
  20509. }
  20510. },
  20511. {
  20512. "type": "null"
  20513. }
  20514. ]
  20515. },
  20516. "responseBody": {
  20517. "anyOf": [
  20518. {
  20519. "type": "string"
  20520. },
  20521. {
  20522. "type": "null"
  20523. }
  20524. ]
  20525. },
  20526. "metadata": {
  20527. "anyOf": [
  20528. {
  20529. "type": "object",
  20530. "additionalProperties": {
  20531. "type": "string"
  20532. }
  20533. },
  20534. {
  20535. "type": "null"
  20536. }
  20537. ]
  20538. }
  20539. },
  20540. "required": [
  20541. "message",
  20542. "isRetryable"
  20543. ],
  20544. "additionalProperties": false
  20545. }
  20546. },
  20547. "required": [
  20548. "name",
  20549. "data"
  20550. ],
  20551. "additionalProperties": false
  20552. },
  20553. "AssistantMessage": {
  20554. "type": "object",
  20555. "properties": {
  20556. "id": {
  20557. "type": "string",
  20558. "allOf": [
  20559. {
  20560. "pattern": "^msg"
  20561. }
  20562. ]
  20563. },
  20564. "sessionID": {
  20565. "type": "string",
  20566. "allOf": [
  20567. {
  20568. "pattern": "^ses"
  20569. }
  20570. ]
  20571. },
  20572. "role": {
  20573. "type": "string",
  20574. "enum": [
  20575. "assistant"
  20576. ]
  20577. },
  20578. "time": {
  20579. "type": "object",
  20580. "properties": {
  20581. "created": {
  20582. "type": "integer",
  20583. "allOf": [
  20584. {
  20585. "minimum": 0
  20586. }
  20587. ]
  20588. },
  20589. "completed": {
  20590. "anyOf": [
  20591. {
  20592. "type": "integer",
  20593. "allOf": [
  20594. {
  20595. "minimum": 0
  20596. }
  20597. ]
  20598. },
  20599. {
  20600. "type": "null"
  20601. }
  20602. ]
  20603. }
  20604. },
  20605. "required": [
  20606. "created"
  20607. ],
  20608. "additionalProperties": false
  20609. },
  20610. "error": {
  20611. "anyOf": [
  20612. {
  20613. "anyOf": [
  20614. {
  20615. "$ref": "#/components/schemas/ProviderAuthError"
  20616. },
  20617. {
  20618. "$ref": "#/components/schemas/UnknownError1"
  20619. },
  20620. {
  20621. "$ref": "#/components/schemas/MessageOutputLengthError"
  20622. },
  20623. {
  20624. "$ref": "#/components/schemas/MessageAbortedError"
  20625. },
  20626. {
  20627. "$ref": "#/components/schemas/StructuredOutputError"
  20628. },
  20629. {
  20630. "$ref": "#/components/schemas/ContextOverflowError"
  20631. },
  20632. {
  20633. "$ref": "#/components/schemas/ContentFilterError"
  20634. },
  20635. {
  20636. "$ref": "#/components/schemas/APIError"
  20637. }
  20638. ]
  20639. },
  20640. {
  20641. "type": "null"
  20642. }
  20643. ]
  20644. },
  20645. "parentID": {
  20646. "type": "string",
  20647. "allOf": [
  20648. {
  20649. "pattern": "^msg"
  20650. }
  20651. ]
  20652. },
  20653. "modelID": {
  20654. "type": "string"
  20655. },
  20656. "providerID": {
  20657. "type": "string"
  20658. },
  20659. "mode": {
  20660. "type": "string"
  20661. },
  20662. "agent": {
  20663. "type": "string"
  20664. },
  20665. "path": {
  20666. "type": "object",
  20667. "properties": {
  20668. "cwd": {
  20669. "type": "string"
  20670. },
  20671. "root": {
  20672. "type": "string"
  20673. }
  20674. },
  20675. "required": [
  20676. "cwd",
  20677. "root"
  20678. ],
  20679. "additionalProperties": false
  20680. },
  20681. "summary": {
  20682. "anyOf": [
  20683. {
  20684. "type": "boolean"
  20685. },
  20686. {
  20687. "type": "null"
  20688. }
  20689. ]
  20690. },
  20691. "cost": {
  20692. "type": "number"
  20693. },
  20694. "tokens": {
  20695. "type": "object",
  20696. "properties": {
  20697. "total": {
  20698. "anyOf": [
  20699. {
  20700. "type": "number"
  20701. },
  20702. {
  20703. "type": "null"
  20704. }
  20705. ]
  20706. },
  20707. "input": {
  20708. "type": "number"
  20709. },
  20710. "output": {
  20711. "type": "number"
  20712. },
  20713. "reasoning": {
  20714. "type": "number"
  20715. },
  20716. "cache": {
  20717. "type": "object",
  20718. "properties": {
  20719. "read": {
  20720. "type": "number"
  20721. },
  20722. "write": {
  20723. "type": "number"
  20724. }
  20725. },
  20726. "required": [
  20727. "read",
  20728. "write"
  20729. ],
  20730. "additionalProperties": false
  20731. }
  20732. },
  20733. "required": [
  20734. "input",
  20735. "output",
  20736. "reasoning",
  20737. "cache"
  20738. ],
  20739. "additionalProperties": false
  20740. },
  20741. "structured": {
  20742. "anyOf": [
  20743. {},
  20744. {
  20745. "type": "null"
  20746. }
  20747. ]
  20748. },
  20749. "variant": {
  20750. "anyOf": [
  20751. {
  20752. "type": "string"
  20753. },
  20754. {
  20755. "type": "null"
  20756. }
  20757. ]
  20758. },
  20759. "finish": {
  20760. "anyOf": [
  20761. {
  20762. "type": "string"
  20763. },
  20764. {
  20765. "type": "null"
  20766. }
  20767. ]
  20768. }
  20769. },
  20770. "required": [
  20771. "id",
  20772. "sessionID",
  20773. "role",
  20774. "time",
  20775. "parentID",
  20776. "modelID",
  20777. "providerID",
  20778. "mode",
  20779. "agent",
  20780. "path",
  20781. "cost",
  20782. "tokens"
  20783. ],
  20784. "additionalProperties": false
  20785. },
  20786. "Message": {
  20787. "anyOf": [
  20788. {
  20789. "$ref": "#/components/schemas/UserMessage"
  20790. },
  20791. {
  20792. "$ref": "#/components/schemas/AssistantMessage"
  20793. }
  20794. ]
  20795. },
  20796. "message.updated": {
  20797. "type": "object",
  20798. "properties": {
  20799. "id": {
  20800. "type": "string",
  20801. "allOf": [
  20802. {
  20803. "pattern": "^evt_"
  20804. }
  20805. ]
  20806. },
  20807. "created": {
  20808. "type": "number"
  20809. },
  20810. "metadata": {
  20811. "type": "object"
  20812. },
  20813. "type": {
  20814. "type": "string",
  20815. "enum": [
  20816. "message.updated"
  20817. ]
  20818. },
  20819. "durable": {
  20820. "type": "object",
  20821. "properties": {
  20822. "aggregateID": {
  20823. "type": "string"
  20824. },
  20825. "seq": {
  20826. "type": "integer",
  20827. "allOf": [
  20828. {
  20829. "minimum": 0
  20830. }
  20831. ]
  20832. },
  20833. "version": {
  20834. "type": "number",
  20835. "enum": [
  20836. 1
  20837. ]
  20838. }
  20839. },
  20840. "required": [
  20841. "aggregateID",
  20842. "seq",
  20843. "version"
  20844. ],
  20845. "additionalProperties": false
  20846. },
  20847. "location": {
  20848. "$ref": "#/components/schemas/Location.Ref"
  20849. },
  20850. "data": {
  20851. "type": "object",
  20852. "properties": {
  20853. "sessionID": {
  20854. "type": "string",
  20855. "allOf": [
  20856. {
  20857. "pattern": "^ses"
  20858. }
  20859. ]
  20860. },
  20861. "info": {
  20862. "$ref": "#/components/schemas/Message"
  20863. }
  20864. },
  20865. "required": [
  20866. "sessionID",
  20867. "info"
  20868. ],
  20869. "additionalProperties": false
  20870. }
  20871. },
  20872. "required": [
  20873. "id",
  20874. "created",
  20875. "type",
  20876. "durable",
  20877. "data"
  20878. ],
  20879. "additionalProperties": false
  20880. },
  20881. "message.removed": {
  20882. "type": "object",
  20883. "properties": {
  20884. "id": {
  20885. "type": "string",
  20886. "allOf": [
  20887. {
  20888. "pattern": "^evt_"
  20889. }
  20890. ]
  20891. },
  20892. "created": {
  20893. "type": "number"
  20894. },
  20895. "metadata": {
  20896. "type": "object"
  20897. },
  20898. "type": {
  20899. "type": "string",
  20900. "enum": [
  20901. "message.removed"
  20902. ]
  20903. },
  20904. "durable": {
  20905. "type": "object",
  20906. "properties": {
  20907. "aggregateID": {
  20908. "type": "string"
  20909. },
  20910. "seq": {
  20911. "type": "integer",
  20912. "allOf": [
  20913. {
  20914. "minimum": 0
  20915. }
  20916. ]
  20917. },
  20918. "version": {
  20919. "type": "number",
  20920. "enum": [
  20921. 1
  20922. ]
  20923. }
  20924. },
  20925. "required": [
  20926. "aggregateID",
  20927. "seq",
  20928. "version"
  20929. ],
  20930. "additionalProperties": false
  20931. },
  20932. "location": {
  20933. "$ref": "#/components/schemas/Location.Ref"
  20934. },
  20935. "data": {
  20936. "type": "object",
  20937. "properties": {
  20938. "sessionID": {
  20939. "type": "string",
  20940. "allOf": [
  20941. {
  20942. "pattern": "^ses"
  20943. }
  20944. ]
  20945. },
  20946. "messageID": {
  20947. "type": "string",
  20948. "allOf": [
  20949. {
  20950. "pattern": "^msg"
  20951. }
  20952. ]
  20953. }
  20954. },
  20955. "required": [
  20956. "sessionID",
  20957. "messageID"
  20958. ],
  20959. "additionalProperties": false
  20960. }
  20961. },
  20962. "required": [
  20963. "id",
  20964. "created",
  20965. "type",
  20966. "durable",
  20967. "data"
  20968. ],
  20969. "additionalProperties": false
  20970. },
  20971. "TextPart": {
  20972. "type": "object",
  20973. "properties": {
  20974. "id": {
  20975. "type": "string",
  20976. "allOf": [
  20977. {
  20978. "pattern": "^prt"
  20979. }
  20980. ]
  20981. },
  20982. "sessionID": {
  20983. "type": "string",
  20984. "allOf": [
  20985. {
  20986. "pattern": "^ses"
  20987. }
  20988. ]
  20989. },
  20990. "messageID": {
  20991. "type": "string",
  20992. "allOf": [
  20993. {
  20994. "pattern": "^msg"
  20995. }
  20996. ]
  20997. },
  20998. "type": {
  20999. "type": "string",
  21000. "enum": [
  21001. "text"
  21002. ]
  21003. },
  21004. "text": {
  21005. "type": "string"
  21006. },
  21007. "synthetic": {
  21008. "anyOf": [
  21009. {
  21010. "type": "boolean"
  21011. },
  21012. {
  21013. "type": "null"
  21014. }
  21015. ]
  21016. },
  21017. "ignored": {
  21018. "anyOf": [
  21019. {
  21020. "type": "boolean"
  21021. },
  21022. {
  21023. "type": "null"
  21024. }
  21025. ]
  21026. },
  21027. "time": {
  21028. "anyOf": [
  21029. {
  21030. "type": "object",
  21031. "properties": {
  21032. "start": {
  21033. "type": "integer",
  21034. "allOf": [
  21035. {
  21036. "minimum": 0
  21037. }
  21038. ]
  21039. },
  21040. "end": {
  21041. "anyOf": [
  21042. {
  21043. "type": "integer",
  21044. "allOf": [
  21045. {
  21046. "minimum": 0
  21047. }
  21048. ]
  21049. },
  21050. {
  21051. "type": "null"
  21052. }
  21053. ]
  21054. }
  21055. },
  21056. "required": [
  21057. "start"
  21058. ],
  21059. "additionalProperties": false
  21060. },
  21061. {
  21062. "type": "null"
  21063. }
  21064. ]
  21065. },
  21066. "metadata": {
  21067. "anyOf": [
  21068. {
  21069. "type": "object"
  21070. },
  21071. {
  21072. "type": "null"
  21073. }
  21074. ]
  21075. }
  21076. },
  21077. "required": [
  21078. "id",
  21079. "sessionID",
  21080. "messageID",
  21081. "type",
  21082. "text"
  21083. ],
  21084. "additionalProperties": false
  21085. },
  21086. "SubtaskPart": {
  21087. "type": "object",
  21088. "properties": {
  21089. "id": {
  21090. "type": "string",
  21091. "allOf": [
  21092. {
  21093. "pattern": "^prt"
  21094. }
  21095. ]
  21096. },
  21097. "sessionID": {
  21098. "type": "string",
  21099. "allOf": [
  21100. {
  21101. "pattern": "^ses"
  21102. }
  21103. ]
  21104. },
  21105. "messageID": {
  21106. "type": "string",
  21107. "allOf": [
  21108. {
  21109. "pattern": "^msg"
  21110. }
  21111. ]
  21112. },
  21113. "type": {
  21114. "type": "string",
  21115. "enum": [
  21116. "subtask"
  21117. ]
  21118. },
  21119. "prompt": {
  21120. "type": "string"
  21121. },
  21122. "description": {
  21123. "type": "string"
  21124. },
  21125. "agent": {
  21126. "type": "string"
  21127. },
  21128. "model": {
  21129. "anyOf": [
  21130. {
  21131. "type": "object",
  21132. "properties": {
  21133. "providerID": {
  21134. "type": "string"
  21135. },
  21136. "modelID": {
  21137. "type": "string"
  21138. }
  21139. },
  21140. "required": [
  21141. "providerID",
  21142. "modelID"
  21143. ],
  21144. "additionalProperties": false
  21145. },
  21146. {
  21147. "type": "null"
  21148. }
  21149. ]
  21150. },
  21151. "command": {
  21152. "anyOf": [
  21153. {
  21154. "type": "string"
  21155. },
  21156. {
  21157. "type": "null"
  21158. }
  21159. ]
  21160. }
  21161. },
  21162. "required": [
  21163. "id",
  21164. "sessionID",
  21165. "messageID",
  21166. "type",
  21167. "prompt",
  21168. "description",
  21169. "agent"
  21170. ],
  21171. "additionalProperties": false
  21172. },
  21173. "ReasoningPart": {
  21174. "type": "object",
  21175. "properties": {
  21176. "id": {
  21177. "type": "string",
  21178. "allOf": [
  21179. {
  21180. "pattern": "^prt"
  21181. }
  21182. ]
  21183. },
  21184. "sessionID": {
  21185. "type": "string",
  21186. "allOf": [
  21187. {
  21188. "pattern": "^ses"
  21189. }
  21190. ]
  21191. },
  21192. "messageID": {
  21193. "type": "string",
  21194. "allOf": [
  21195. {
  21196. "pattern": "^msg"
  21197. }
  21198. ]
  21199. },
  21200. "type": {
  21201. "type": "string",
  21202. "enum": [
  21203. "reasoning"
  21204. ]
  21205. },
  21206. "text": {
  21207. "type": "string"
  21208. },
  21209. "metadata": {
  21210. "anyOf": [
  21211. {
  21212. "type": "object"
  21213. },
  21214. {
  21215. "type": "null"
  21216. }
  21217. ]
  21218. },
  21219. "time": {
  21220. "type": "object",
  21221. "properties": {
  21222. "start": {
  21223. "type": "integer",
  21224. "allOf": [
  21225. {
  21226. "minimum": 0
  21227. }
  21228. ]
  21229. },
  21230. "end": {
  21231. "anyOf": [
  21232. {
  21233. "type": "integer",
  21234. "allOf": [
  21235. {
  21236. "minimum": 0
  21237. }
  21238. ]
  21239. },
  21240. {
  21241. "type": "null"
  21242. }
  21243. ]
  21244. }
  21245. },
  21246. "required": [
  21247. "start"
  21248. ],
  21249. "additionalProperties": false
  21250. }
  21251. },
  21252. "required": [
  21253. "id",
  21254. "sessionID",
  21255. "messageID",
  21256. "type",
  21257. "text",
  21258. "time"
  21259. ],
  21260. "additionalProperties": false
  21261. },
  21262. "FilePartSourceText": {
  21263. "type": "object",
  21264. "properties": {
  21265. "value": {
  21266. "type": "string"
  21267. },
  21268. "start": {
  21269. "type": "number"
  21270. },
  21271. "end": {
  21272. "type": "number"
  21273. }
  21274. },
  21275. "required": [
  21276. "value",
  21277. "start",
  21278. "end"
  21279. ],
  21280. "additionalProperties": false
  21281. },
  21282. "FileSource": {
  21283. "type": "object",
  21284. "properties": {
  21285. "text": {
  21286. "$ref": "#/components/schemas/FilePartSourceText"
  21287. },
  21288. "type": {
  21289. "type": "string",
  21290. "enum": [
  21291. "file"
  21292. ]
  21293. },
  21294. "path": {
  21295. "type": "string"
  21296. }
  21297. },
  21298. "required": [
  21299. "text",
  21300. "type",
  21301. "path"
  21302. ],
  21303. "additionalProperties": false
  21304. },
  21305. "Range": {
  21306. "type": "object",
  21307. "properties": {
  21308. "start": {
  21309. "type": "object",
  21310. "properties": {
  21311. "line": {
  21312. "type": "integer",
  21313. "allOf": [
  21314. {
  21315. "minimum": 0
  21316. }
  21317. ]
  21318. },
  21319. "character": {
  21320. "type": "integer",
  21321. "allOf": [
  21322. {
  21323. "minimum": 0
  21324. }
  21325. ]
  21326. }
  21327. },
  21328. "required": [
  21329. "line",
  21330. "character"
  21331. ],
  21332. "additionalProperties": false
  21333. },
  21334. "end": {
  21335. "type": "object",
  21336. "properties": {
  21337. "line": {
  21338. "type": "integer",
  21339. "allOf": [
  21340. {
  21341. "minimum": 0
  21342. }
  21343. ]
  21344. },
  21345. "character": {
  21346. "type": "integer",
  21347. "allOf": [
  21348. {
  21349. "minimum": 0
  21350. }
  21351. ]
  21352. }
  21353. },
  21354. "required": [
  21355. "line",
  21356. "character"
  21357. ],
  21358. "additionalProperties": false
  21359. }
  21360. },
  21361. "required": [
  21362. "start",
  21363. "end"
  21364. ],
  21365. "additionalProperties": false
  21366. },
  21367. "SymbolSource": {
  21368. "type": "object",
  21369. "properties": {
  21370. "text": {
  21371. "$ref": "#/components/schemas/FilePartSourceText"
  21372. },
  21373. "type": {
  21374. "type": "string",
  21375. "enum": [
  21376. "symbol"
  21377. ]
  21378. },
  21379. "path": {
  21380. "type": "string"
  21381. },
  21382. "range": {
  21383. "$ref": "#/components/schemas/Range"
  21384. },
  21385. "name": {
  21386. "type": "string"
  21387. },
  21388. "kind": {
  21389. "type": "integer",
  21390. "allOf": [
  21391. {
  21392. "minimum": 0
  21393. }
  21394. ]
  21395. }
  21396. },
  21397. "required": [
  21398. "text",
  21399. "type",
  21400. "path",
  21401. "range",
  21402. "name",
  21403. "kind"
  21404. ],
  21405. "additionalProperties": false
  21406. },
  21407. "ResourceSource": {
  21408. "type": "object",
  21409. "properties": {
  21410. "text": {
  21411. "$ref": "#/components/schemas/FilePartSourceText"
  21412. },
  21413. "type": {
  21414. "type": "string",
  21415. "enum": [
  21416. "resource"
  21417. ]
  21418. },
  21419. "clientName": {
  21420. "type": "string"
  21421. },
  21422. "uri": {
  21423. "type": "string"
  21424. }
  21425. },
  21426. "required": [
  21427. "text",
  21428. "type",
  21429. "clientName",
  21430. "uri"
  21431. ],
  21432. "additionalProperties": false
  21433. },
  21434. "FilePartSource": {
  21435. "anyOf": [
  21436. {
  21437. "$ref": "#/components/schemas/FileSource"
  21438. },
  21439. {
  21440. "$ref": "#/components/schemas/SymbolSource"
  21441. },
  21442. {
  21443. "$ref": "#/components/schemas/ResourceSource"
  21444. }
  21445. ]
  21446. },
  21447. "FilePart": {
  21448. "type": "object",
  21449. "properties": {
  21450. "id": {
  21451. "type": "string",
  21452. "allOf": [
  21453. {
  21454. "pattern": "^prt"
  21455. }
  21456. ]
  21457. },
  21458. "sessionID": {
  21459. "type": "string",
  21460. "allOf": [
  21461. {
  21462. "pattern": "^ses"
  21463. }
  21464. ]
  21465. },
  21466. "messageID": {
  21467. "type": "string",
  21468. "allOf": [
  21469. {
  21470. "pattern": "^msg"
  21471. }
  21472. ]
  21473. },
  21474. "type": {
  21475. "type": "string",
  21476. "enum": [
  21477. "file"
  21478. ]
  21479. },
  21480. "mime": {
  21481. "type": "string"
  21482. },
  21483. "filename": {
  21484. "anyOf": [
  21485. {
  21486. "type": "string"
  21487. },
  21488. {
  21489. "type": "null"
  21490. }
  21491. ]
  21492. },
  21493. "url": {
  21494. "type": "string"
  21495. },
  21496. "source": {
  21497. "anyOf": [
  21498. {
  21499. "$ref": "#/components/schemas/FilePartSource"
  21500. },
  21501. {
  21502. "type": "null"
  21503. }
  21504. ]
  21505. }
  21506. },
  21507. "required": [
  21508. "id",
  21509. "sessionID",
  21510. "messageID",
  21511. "type",
  21512. "mime",
  21513. "url"
  21514. ],
  21515. "additionalProperties": false
  21516. },
  21517. "ToolStatePending": {
  21518. "type": "object",
  21519. "properties": {
  21520. "status": {
  21521. "type": "string",
  21522. "enum": [
  21523. "pending"
  21524. ]
  21525. },
  21526. "input": {
  21527. "type": "object"
  21528. },
  21529. "raw": {
  21530. "type": "string"
  21531. }
  21532. },
  21533. "required": [
  21534. "status",
  21535. "input",
  21536. "raw"
  21537. ],
  21538. "additionalProperties": false
  21539. },
  21540. "ToolStateRunning": {
  21541. "type": "object",
  21542. "properties": {
  21543. "status": {
  21544. "type": "string",
  21545. "enum": [
  21546. "running"
  21547. ]
  21548. },
  21549. "input": {
  21550. "type": "object"
  21551. },
  21552. "title": {
  21553. "anyOf": [
  21554. {
  21555. "type": "string"
  21556. },
  21557. {
  21558. "type": "null"
  21559. }
  21560. ]
  21561. },
  21562. "metadata": {
  21563. "anyOf": [
  21564. {
  21565. "type": "object"
  21566. },
  21567. {
  21568. "type": "null"
  21569. }
  21570. ]
  21571. },
  21572. "time": {
  21573. "type": "object",
  21574. "properties": {
  21575. "start": {
  21576. "type": "integer",
  21577. "allOf": [
  21578. {
  21579. "minimum": 0
  21580. }
  21581. ]
  21582. }
  21583. },
  21584. "required": [
  21585. "start"
  21586. ],
  21587. "additionalProperties": false
  21588. }
  21589. },
  21590. "required": [
  21591. "status",
  21592. "input",
  21593. "time"
  21594. ],
  21595. "additionalProperties": false
  21596. },
  21597. "ToolStateCompleted": {
  21598. "type": "object",
  21599. "properties": {
  21600. "status": {
  21601. "type": "string",
  21602. "enum": [
  21603. "completed"
  21604. ]
  21605. },
  21606. "input": {
  21607. "type": "object"
  21608. },
  21609. "output": {
  21610. "type": "string"
  21611. },
  21612. "title": {
  21613. "type": "string"
  21614. },
  21615. "metadata": {
  21616. "type": "object"
  21617. },
  21618. "time": {
  21619. "type": "object",
  21620. "properties": {
  21621. "start": {
  21622. "type": "integer",
  21623. "allOf": [
  21624. {
  21625. "minimum": 0
  21626. }
  21627. ]
  21628. },
  21629. "end": {
  21630. "type": "integer",
  21631. "allOf": [
  21632. {
  21633. "minimum": 0
  21634. }
  21635. ]
  21636. },
  21637. "compacted": {
  21638. "anyOf": [
  21639. {
  21640. "type": "integer",
  21641. "allOf": [
  21642. {
  21643. "minimum": 0
  21644. }
  21645. ]
  21646. },
  21647. {
  21648. "type": "null"
  21649. }
  21650. ]
  21651. }
  21652. },
  21653. "required": [
  21654. "start",
  21655. "end"
  21656. ],
  21657. "additionalProperties": false
  21658. },
  21659. "attachments": {
  21660. "anyOf": [
  21661. {
  21662. "type": "array",
  21663. "items": {
  21664. "$ref": "#/components/schemas/FilePart"
  21665. }
  21666. },
  21667. {
  21668. "type": "null"
  21669. }
  21670. ]
  21671. }
  21672. },
  21673. "required": [
  21674. "status",
  21675. "input",
  21676. "output",
  21677. "title",
  21678. "metadata",
  21679. "time"
  21680. ],
  21681. "additionalProperties": false
  21682. },
  21683. "ToolStateError": {
  21684. "type": "object",
  21685. "properties": {
  21686. "status": {
  21687. "type": "string",
  21688. "enum": [
  21689. "error"
  21690. ]
  21691. },
  21692. "input": {
  21693. "type": "object"
  21694. },
  21695. "error": {
  21696. "type": "string"
  21697. },
  21698. "metadata": {
  21699. "anyOf": [
  21700. {
  21701. "type": "object"
  21702. },
  21703. {
  21704. "type": "null"
  21705. }
  21706. ]
  21707. },
  21708. "time": {
  21709. "type": "object",
  21710. "properties": {
  21711. "start": {
  21712. "type": "integer",
  21713. "allOf": [
  21714. {
  21715. "minimum": 0
  21716. }
  21717. ]
  21718. },
  21719. "end": {
  21720. "type": "integer",
  21721. "allOf": [
  21722. {
  21723. "minimum": 0
  21724. }
  21725. ]
  21726. }
  21727. },
  21728. "required": [
  21729. "start",
  21730. "end"
  21731. ],
  21732. "additionalProperties": false
  21733. }
  21734. },
  21735. "required": [
  21736. "status",
  21737. "input",
  21738. "error",
  21739. "time"
  21740. ],
  21741. "additionalProperties": false
  21742. },
  21743. "ToolState": {
  21744. "anyOf": [
  21745. {
  21746. "$ref": "#/components/schemas/ToolStatePending"
  21747. },
  21748. {
  21749. "$ref": "#/components/schemas/ToolStateRunning"
  21750. },
  21751. {
  21752. "$ref": "#/components/schemas/ToolStateCompleted"
  21753. },
  21754. {
  21755. "$ref": "#/components/schemas/ToolStateError"
  21756. }
  21757. ]
  21758. },
  21759. "ToolPart": {
  21760. "type": "object",
  21761. "properties": {
  21762. "id": {
  21763. "type": "string",
  21764. "allOf": [
  21765. {
  21766. "pattern": "^prt"
  21767. }
  21768. ]
  21769. },
  21770. "sessionID": {
  21771. "type": "string",
  21772. "allOf": [
  21773. {
  21774. "pattern": "^ses"
  21775. }
  21776. ]
  21777. },
  21778. "messageID": {
  21779. "type": "string",
  21780. "allOf": [
  21781. {
  21782. "pattern": "^msg"
  21783. }
  21784. ]
  21785. },
  21786. "type": {
  21787. "type": "string",
  21788. "enum": [
  21789. "tool"
  21790. ]
  21791. },
  21792. "callID": {
  21793. "type": "string"
  21794. },
  21795. "tool": {
  21796. "type": "string"
  21797. },
  21798. "state": {
  21799. "$ref": "#/components/schemas/ToolState"
  21800. },
  21801. "metadata": {
  21802. "anyOf": [
  21803. {
  21804. "type": "object"
  21805. },
  21806. {
  21807. "type": "null"
  21808. }
  21809. ]
  21810. }
  21811. },
  21812. "required": [
  21813. "id",
  21814. "sessionID",
  21815. "messageID",
  21816. "type",
  21817. "callID",
  21818. "tool",
  21819. "state"
  21820. ],
  21821. "additionalProperties": false
  21822. },
  21823. "StepStartPart": {
  21824. "type": "object",
  21825. "properties": {
  21826. "id": {
  21827. "type": "string",
  21828. "allOf": [
  21829. {
  21830. "pattern": "^prt"
  21831. }
  21832. ]
  21833. },
  21834. "sessionID": {
  21835. "type": "string",
  21836. "allOf": [
  21837. {
  21838. "pattern": "^ses"
  21839. }
  21840. ]
  21841. },
  21842. "messageID": {
  21843. "type": "string",
  21844. "allOf": [
  21845. {
  21846. "pattern": "^msg"
  21847. }
  21848. ]
  21849. },
  21850. "type": {
  21851. "type": "string",
  21852. "enum": [
  21853. "step-start"
  21854. ]
  21855. },
  21856. "snapshot": {
  21857. "anyOf": [
  21858. {
  21859. "type": "string"
  21860. },
  21861. {
  21862. "type": "null"
  21863. }
  21864. ]
  21865. }
  21866. },
  21867. "required": [
  21868. "id",
  21869. "sessionID",
  21870. "messageID",
  21871. "type"
  21872. ],
  21873. "additionalProperties": false
  21874. },
  21875. "StepFinishPart": {
  21876. "type": "object",
  21877. "properties": {
  21878. "id": {
  21879. "type": "string",
  21880. "allOf": [
  21881. {
  21882. "pattern": "^prt"
  21883. }
  21884. ]
  21885. },
  21886. "sessionID": {
  21887. "type": "string",
  21888. "allOf": [
  21889. {
  21890. "pattern": "^ses"
  21891. }
  21892. ]
  21893. },
  21894. "messageID": {
  21895. "type": "string",
  21896. "allOf": [
  21897. {
  21898. "pattern": "^msg"
  21899. }
  21900. ]
  21901. },
  21902. "type": {
  21903. "type": "string",
  21904. "enum": [
  21905. "step-finish"
  21906. ]
  21907. },
  21908. "reason": {
  21909. "type": "string"
  21910. },
  21911. "snapshot": {
  21912. "anyOf": [
  21913. {
  21914. "type": "string"
  21915. },
  21916. {
  21917. "type": "null"
  21918. }
  21919. ]
  21920. },
  21921. "cost": {
  21922. "type": "number"
  21923. },
  21924. "tokens": {
  21925. "type": "object",
  21926. "properties": {
  21927. "total": {
  21928. "anyOf": [
  21929. {
  21930. "type": "number"
  21931. },
  21932. {
  21933. "type": "null"
  21934. }
  21935. ]
  21936. },
  21937. "input": {
  21938. "type": "number"
  21939. },
  21940. "output": {
  21941. "type": "number"
  21942. },
  21943. "reasoning": {
  21944. "type": "number"
  21945. },
  21946. "cache": {
  21947. "type": "object",
  21948. "properties": {
  21949. "read": {
  21950. "type": "number"
  21951. },
  21952. "write": {
  21953. "type": "number"
  21954. }
  21955. },
  21956. "required": [
  21957. "read",
  21958. "write"
  21959. ],
  21960. "additionalProperties": false
  21961. }
  21962. },
  21963. "required": [
  21964. "input",
  21965. "output",
  21966. "reasoning",
  21967. "cache"
  21968. ],
  21969. "additionalProperties": false
  21970. }
  21971. },
  21972. "required": [
  21973. "id",
  21974. "sessionID",
  21975. "messageID",
  21976. "type",
  21977. "reason",
  21978. "cost",
  21979. "tokens"
  21980. ],
  21981. "additionalProperties": false
  21982. },
  21983. "SnapshotPart": {
  21984. "type": "object",
  21985. "properties": {
  21986. "id": {
  21987. "type": "string",
  21988. "allOf": [
  21989. {
  21990. "pattern": "^prt"
  21991. }
  21992. ]
  21993. },
  21994. "sessionID": {
  21995. "type": "string",
  21996. "allOf": [
  21997. {
  21998. "pattern": "^ses"
  21999. }
  22000. ]
  22001. },
  22002. "messageID": {
  22003. "type": "string",
  22004. "allOf": [
  22005. {
  22006. "pattern": "^msg"
  22007. }
  22008. ]
  22009. },
  22010. "type": {
  22011. "type": "string",
  22012. "enum": [
  22013. "snapshot"
  22014. ]
  22015. },
  22016. "snapshot": {
  22017. "type": "string"
  22018. }
  22019. },
  22020. "required": [
  22021. "id",
  22022. "sessionID",
  22023. "messageID",
  22024. "type",
  22025. "snapshot"
  22026. ],
  22027. "additionalProperties": false
  22028. },
  22029. "PatchPart": {
  22030. "type": "object",
  22031. "properties": {
  22032. "id": {
  22033. "type": "string",
  22034. "allOf": [
  22035. {
  22036. "pattern": "^prt"
  22037. }
  22038. ]
  22039. },
  22040. "sessionID": {
  22041. "type": "string",
  22042. "allOf": [
  22043. {
  22044. "pattern": "^ses"
  22045. }
  22046. ]
  22047. },
  22048. "messageID": {
  22049. "type": "string",
  22050. "allOf": [
  22051. {
  22052. "pattern": "^msg"
  22053. }
  22054. ]
  22055. },
  22056. "type": {
  22057. "type": "string",
  22058. "enum": [
  22059. "patch"
  22060. ]
  22061. },
  22062. "hash": {
  22063. "type": "string"
  22064. },
  22065. "files": {
  22066. "type": "array",
  22067. "items": {
  22068. "type": "string"
  22069. }
  22070. }
  22071. },
  22072. "required": [
  22073. "id",
  22074. "sessionID",
  22075. "messageID",
  22076. "type",
  22077. "hash",
  22078. "files"
  22079. ],
  22080. "additionalProperties": false
  22081. },
  22082. "AgentPart": {
  22083. "type": "object",
  22084. "properties": {
  22085. "id": {
  22086. "type": "string",
  22087. "allOf": [
  22088. {
  22089. "pattern": "^prt"
  22090. }
  22091. ]
  22092. },
  22093. "sessionID": {
  22094. "type": "string",
  22095. "allOf": [
  22096. {
  22097. "pattern": "^ses"
  22098. }
  22099. ]
  22100. },
  22101. "messageID": {
  22102. "type": "string",
  22103. "allOf": [
  22104. {
  22105. "pattern": "^msg"
  22106. }
  22107. ]
  22108. },
  22109. "type": {
  22110. "type": "string",
  22111. "enum": [
  22112. "agent"
  22113. ]
  22114. },
  22115. "name": {
  22116. "type": "string"
  22117. },
  22118. "source": {
  22119. "anyOf": [
  22120. {
  22121. "type": "object",
  22122. "properties": {
  22123. "value": {
  22124. "type": "string"
  22125. },
  22126. "start": {
  22127. "type": "integer",
  22128. "allOf": [
  22129. {
  22130. "minimum": 0
  22131. }
  22132. ]
  22133. },
  22134. "end": {
  22135. "type": "integer",
  22136. "allOf": [
  22137. {
  22138. "minimum": 0
  22139. }
  22140. ]
  22141. }
  22142. },
  22143. "required": [
  22144. "value",
  22145. "start",
  22146. "end"
  22147. ],
  22148. "additionalProperties": false
  22149. },
  22150. {
  22151. "type": "null"
  22152. }
  22153. ]
  22154. }
  22155. },
  22156. "required": [
  22157. "id",
  22158. "sessionID",
  22159. "messageID",
  22160. "type",
  22161. "name"
  22162. ],
  22163. "additionalProperties": false
  22164. },
  22165. "RetryPart": {
  22166. "type": "object",
  22167. "properties": {
  22168. "id": {
  22169. "type": "string",
  22170. "allOf": [
  22171. {
  22172. "pattern": "^prt"
  22173. }
  22174. ]
  22175. },
  22176. "sessionID": {
  22177. "type": "string",
  22178. "allOf": [
  22179. {
  22180. "pattern": "^ses"
  22181. }
  22182. ]
  22183. },
  22184. "messageID": {
  22185. "type": "string",
  22186. "allOf": [
  22187. {
  22188. "pattern": "^msg"
  22189. }
  22190. ]
  22191. },
  22192. "type": {
  22193. "type": "string",
  22194. "enum": [
  22195. "retry"
  22196. ]
  22197. },
  22198. "attempt": {
  22199. "type": "integer",
  22200. "allOf": [
  22201. {
  22202. "minimum": 0
  22203. }
  22204. ]
  22205. },
  22206. "error": {
  22207. "$ref": "#/components/schemas/APIError"
  22208. },
  22209. "time": {
  22210. "type": "object",
  22211. "properties": {
  22212. "created": {
  22213. "type": "integer",
  22214. "allOf": [
  22215. {
  22216. "minimum": 0
  22217. }
  22218. ]
  22219. }
  22220. },
  22221. "required": [
  22222. "created"
  22223. ],
  22224. "additionalProperties": false
  22225. }
  22226. },
  22227. "required": [
  22228. "id",
  22229. "sessionID",
  22230. "messageID",
  22231. "type",
  22232. "attempt",
  22233. "error",
  22234. "time"
  22235. ],
  22236. "additionalProperties": false
  22237. },
  22238. "CompactionPart": {
  22239. "type": "object",
  22240. "properties": {
  22241. "id": {
  22242. "type": "string",
  22243. "allOf": [
  22244. {
  22245. "pattern": "^prt"
  22246. }
  22247. ]
  22248. },
  22249. "sessionID": {
  22250. "type": "string",
  22251. "allOf": [
  22252. {
  22253. "pattern": "^ses"
  22254. }
  22255. ]
  22256. },
  22257. "messageID": {
  22258. "type": "string",
  22259. "allOf": [
  22260. {
  22261. "pattern": "^msg"
  22262. }
  22263. ]
  22264. },
  22265. "type": {
  22266. "type": "string",
  22267. "enum": [
  22268. "compaction"
  22269. ]
  22270. },
  22271. "auto": {
  22272. "type": "boolean"
  22273. },
  22274. "overflow": {
  22275. "anyOf": [
  22276. {
  22277. "type": "boolean"
  22278. },
  22279. {
  22280. "type": "null"
  22281. }
  22282. ]
  22283. },
  22284. "tail_start_id": {
  22285. "anyOf": [
  22286. {
  22287. "type": "string",
  22288. "allOf": [
  22289. {
  22290. "pattern": "^msg"
  22291. }
  22292. ]
  22293. },
  22294. {
  22295. "type": "null"
  22296. }
  22297. ]
  22298. }
  22299. },
  22300. "required": [
  22301. "id",
  22302. "sessionID",
  22303. "messageID",
  22304. "type",
  22305. "auto"
  22306. ],
  22307. "additionalProperties": false
  22308. },
  22309. "Part": {
  22310. "anyOf": [
  22311. {
  22312. "$ref": "#/components/schemas/TextPart"
  22313. },
  22314. {
  22315. "$ref": "#/components/schemas/SubtaskPart"
  22316. },
  22317. {
  22318. "$ref": "#/components/schemas/ReasoningPart"
  22319. },
  22320. {
  22321. "$ref": "#/components/schemas/FilePart"
  22322. },
  22323. {
  22324. "$ref": "#/components/schemas/ToolPart"
  22325. },
  22326. {
  22327. "$ref": "#/components/schemas/StepStartPart"
  22328. },
  22329. {
  22330. "$ref": "#/components/schemas/StepFinishPart"
  22331. },
  22332. {
  22333. "$ref": "#/components/schemas/SnapshotPart"
  22334. },
  22335. {
  22336. "$ref": "#/components/schemas/PatchPart"
  22337. },
  22338. {
  22339. "$ref": "#/components/schemas/AgentPart"
  22340. },
  22341. {
  22342. "$ref": "#/components/schemas/RetryPart"
  22343. },
  22344. {
  22345. "$ref": "#/components/schemas/CompactionPart"
  22346. }
  22347. ]
  22348. },
  22349. "message.part.updated": {
  22350. "type": "object",
  22351. "properties": {
  22352. "id": {
  22353. "type": "string",
  22354. "allOf": [
  22355. {
  22356. "pattern": "^evt_"
  22357. }
  22358. ]
  22359. },
  22360. "created": {
  22361. "type": "number"
  22362. },
  22363. "metadata": {
  22364. "type": "object"
  22365. },
  22366. "type": {
  22367. "type": "string",
  22368. "enum": [
  22369. "message.part.updated"
  22370. ]
  22371. },
  22372. "durable": {
  22373. "type": "object",
  22374. "properties": {
  22375. "aggregateID": {
  22376. "type": "string"
  22377. },
  22378. "seq": {
  22379. "type": "integer",
  22380. "allOf": [
  22381. {
  22382. "minimum": 0
  22383. }
  22384. ]
  22385. },
  22386. "version": {
  22387. "type": "number",
  22388. "enum": [
  22389. 1
  22390. ]
  22391. }
  22392. },
  22393. "required": [
  22394. "aggregateID",
  22395. "seq",
  22396. "version"
  22397. ],
  22398. "additionalProperties": false
  22399. },
  22400. "location": {
  22401. "$ref": "#/components/schemas/Location.Ref"
  22402. },
  22403. "data": {
  22404. "type": "object",
  22405. "properties": {
  22406. "sessionID": {
  22407. "type": "string",
  22408. "allOf": [
  22409. {
  22410. "pattern": "^ses"
  22411. }
  22412. ]
  22413. },
  22414. "part": {
  22415. "$ref": "#/components/schemas/Part"
  22416. },
  22417. "time": {
  22418. "type": "number"
  22419. }
  22420. },
  22421. "required": [
  22422. "sessionID",
  22423. "part",
  22424. "time"
  22425. ],
  22426. "additionalProperties": false
  22427. }
  22428. },
  22429. "required": [
  22430. "id",
  22431. "created",
  22432. "type",
  22433. "durable",
  22434. "data"
  22435. ],
  22436. "additionalProperties": false
  22437. },
  22438. "message.part.removed": {
  22439. "type": "object",
  22440. "properties": {
  22441. "id": {
  22442. "type": "string",
  22443. "allOf": [
  22444. {
  22445. "pattern": "^evt_"
  22446. }
  22447. ]
  22448. },
  22449. "created": {
  22450. "type": "number"
  22451. },
  22452. "metadata": {
  22453. "type": "object"
  22454. },
  22455. "type": {
  22456. "type": "string",
  22457. "enum": [
  22458. "message.part.removed"
  22459. ]
  22460. },
  22461. "durable": {
  22462. "type": "object",
  22463. "properties": {
  22464. "aggregateID": {
  22465. "type": "string"
  22466. },
  22467. "seq": {
  22468. "type": "integer",
  22469. "allOf": [
  22470. {
  22471. "minimum": 0
  22472. }
  22473. ]
  22474. },
  22475. "version": {
  22476. "type": "number",
  22477. "enum": [
  22478. 1
  22479. ]
  22480. }
  22481. },
  22482. "required": [
  22483. "aggregateID",
  22484. "seq",
  22485. "version"
  22486. ],
  22487. "additionalProperties": false
  22488. },
  22489. "location": {
  22490. "$ref": "#/components/schemas/Location.Ref"
  22491. },
  22492. "data": {
  22493. "type": "object",
  22494. "properties": {
  22495. "sessionID": {
  22496. "type": "string",
  22497. "allOf": [
  22498. {
  22499. "pattern": "^ses"
  22500. }
  22501. ]
  22502. },
  22503. "messageID": {
  22504. "type": "string",
  22505. "allOf": [
  22506. {
  22507. "pattern": "^msg"
  22508. }
  22509. ]
  22510. },
  22511. "partID": {
  22512. "type": "string",
  22513. "allOf": [
  22514. {
  22515. "pattern": "^prt"
  22516. }
  22517. ]
  22518. }
  22519. },
  22520. "required": [
  22521. "sessionID",
  22522. "messageID",
  22523. "partID"
  22524. ],
  22525. "additionalProperties": false
  22526. }
  22527. },
  22528. "required": [
  22529. "id",
  22530. "created",
  22531. "type",
  22532. "durable",
  22533. "data"
  22534. ],
  22535. "additionalProperties": false
  22536. },
  22537. "session.usage.updated": {
  22538. "type": "object",
  22539. "properties": {
  22540. "id": {
  22541. "type": "string",
  22542. "allOf": [
  22543. {
  22544. "pattern": "^evt_"
  22545. }
  22546. ]
  22547. },
  22548. "created": {
  22549. "type": "number"
  22550. },
  22551. "metadata": {
  22552. "type": "object"
  22553. },
  22554. "type": {
  22555. "type": "string",
  22556. "enum": [
  22557. "session.usage.updated"
  22558. ]
  22559. },
  22560. "location": {
  22561. "$ref": "#/components/schemas/Location.Ref"
  22562. },
  22563. "data": {
  22564. "type": "object",
  22565. "properties": {
  22566. "sessionID": {
  22567. "type": "string",
  22568. "allOf": [
  22569. {
  22570. "pattern": "^ses"
  22571. }
  22572. ]
  22573. },
  22574. "cost": {
  22575. "$ref": "#/components/schemas/Money.USD"
  22576. },
  22577. "tokens": {
  22578. "$ref": "#/components/schemas/TokenUsage.Info"
  22579. }
  22580. },
  22581. "required": [
  22582. "sessionID",
  22583. "cost",
  22584. "tokens"
  22585. ],
  22586. "additionalProperties": false
  22587. }
  22588. },
  22589. "required": [
  22590. "id",
  22591. "created",
  22592. "type",
  22593. "data"
  22594. ],
  22595. "additionalProperties": false
  22596. },
  22597. "session.text.delta": {
  22598. "type": "object",
  22599. "properties": {
  22600. "id": {
  22601. "type": "string",
  22602. "allOf": [
  22603. {
  22604. "pattern": "^evt_"
  22605. }
  22606. ]
  22607. },
  22608. "created": {
  22609. "type": "number"
  22610. },
  22611. "metadata": {
  22612. "type": "object"
  22613. },
  22614. "type": {
  22615. "type": "string",
  22616. "enum": [
  22617. "session.text.delta"
  22618. ]
  22619. },
  22620. "location": {
  22621. "$ref": "#/components/schemas/Location.Ref"
  22622. },
  22623. "data": {
  22624. "type": "object",
  22625. "properties": {
  22626. "sessionID": {
  22627. "type": "string",
  22628. "allOf": [
  22629. {
  22630. "pattern": "^ses"
  22631. }
  22632. ]
  22633. },
  22634. "assistantMessageID": {
  22635. "type": "string",
  22636. "allOf": [
  22637. {
  22638. "pattern": "^msg_"
  22639. }
  22640. ]
  22641. },
  22642. "ordinal": {
  22643. "type": "integer",
  22644. "allOf": [
  22645. {
  22646. "minimum": 0
  22647. }
  22648. ]
  22649. },
  22650. "delta": {
  22651. "type": "string"
  22652. }
  22653. },
  22654. "required": [
  22655. "sessionID",
  22656. "assistantMessageID",
  22657. "ordinal",
  22658. "delta"
  22659. ],
  22660. "additionalProperties": false
  22661. }
  22662. },
  22663. "required": [
  22664. "id",
  22665. "created",
  22666. "type",
  22667. "data"
  22668. ],
  22669. "additionalProperties": false
  22670. },
  22671. "session.reasoning.delta": {
  22672. "type": "object",
  22673. "properties": {
  22674. "id": {
  22675. "type": "string",
  22676. "allOf": [
  22677. {
  22678. "pattern": "^evt_"
  22679. }
  22680. ]
  22681. },
  22682. "created": {
  22683. "type": "number"
  22684. },
  22685. "metadata": {
  22686. "type": "object"
  22687. },
  22688. "type": {
  22689. "type": "string",
  22690. "enum": [
  22691. "session.reasoning.delta"
  22692. ]
  22693. },
  22694. "location": {
  22695. "$ref": "#/components/schemas/Location.Ref"
  22696. },
  22697. "data": {
  22698. "type": "object",
  22699. "properties": {
  22700. "sessionID": {
  22701. "type": "string",
  22702. "allOf": [
  22703. {
  22704. "pattern": "^ses"
  22705. }
  22706. ]
  22707. },
  22708. "assistantMessageID": {
  22709. "type": "string",
  22710. "allOf": [
  22711. {
  22712. "pattern": "^msg_"
  22713. }
  22714. ]
  22715. },
  22716. "ordinal": {
  22717. "type": "integer",
  22718. "allOf": [
  22719. {
  22720. "minimum": 0
  22721. }
  22722. ]
  22723. },
  22724. "delta": {
  22725. "type": "string"
  22726. }
  22727. },
  22728. "required": [
  22729. "sessionID",
  22730. "assistantMessageID",
  22731. "ordinal",
  22732. "delta"
  22733. ],
  22734. "additionalProperties": false
  22735. }
  22736. },
  22737. "required": [
  22738. "id",
  22739. "created",
  22740. "type",
  22741. "data"
  22742. ],
  22743. "additionalProperties": false
  22744. },
  22745. "session.tool.input.delta": {
  22746. "type": "object",
  22747. "properties": {
  22748. "id": {
  22749. "type": "string",
  22750. "allOf": [
  22751. {
  22752. "pattern": "^evt_"
  22753. }
  22754. ]
  22755. },
  22756. "created": {
  22757. "type": "number"
  22758. },
  22759. "metadata": {
  22760. "type": "object"
  22761. },
  22762. "type": {
  22763. "type": "string",
  22764. "enum": [
  22765. "session.tool.input.delta"
  22766. ]
  22767. },
  22768. "location": {
  22769. "$ref": "#/components/schemas/Location.Ref"
  22770. },
  22771. "data": {
  22772. "type": "object",
  22773. "properties": {
  22774. "sessionID": {
  22775. "type": "string",
  22776. "allOf": [
  22777. {
  22778. "pattern": "^ses"
  22779. }
  22780. ]
  22781. },
  22782. "assistantMessageID": {
  22783. "type": "string",
  22784. "allOf": [
  22785. {
  22786. "pattern": "^msg_"
  22787. }
  22788. ]
  22789. },
  22790. "callID": {
  22791. "type": "string"
  22792. },
  22793. "delta": {
  22794. "type": "string"
  22795. }
  22796. },
  22797. "required": [
  22798. "sessionID",
  22799. "assistantMessageID",
  22800. "callID",
  22801. "delta"
  22802. ],
  22803. "additionalProperties": false
  22804. }
  22805. },
  22806. "required": [
  22807. "id",
  22808. "created",
  22809. "type",
  22810. "data"
  22811. ],
  22812. "additionalProperties": false
  22813. },
  22814. "session.compaction.delta": {
  22815. "type": "object",
  22816. "properties": {
  22817. "id": {
  22818. "type": "string",
  22819. "allOf": [
  22820. {
  22821. "pattern": "^evt_"
  22822. }
  22823. ]
  22824. },
  22825. "created": {
  22826. "type": "number"
  22827. },
  22828. "metadata": {
  22829. "type": "object"
  22830. },
  22831. "type": {
  22832. "type": "string",
  22833. "enum": [
  22834. "session.compaction.delta"
  22835. ]
  22836. },
  22837. "location": {
  22838. "$ref": "#/components/schemas/Location.Ref"
  22839. },
  22840. "data": {
  22841. "type": "object",
  22842. "properties": {
  22843. "sessionID": {
  22844. "type": "string",
  22845. "allOf": [
  22846. {
  22847. "pattern": "^ses"
  22848. }
  22849. ]
  22850. },
  22851. "text": {
  22852. "type": "string"
  22853. }
  22854. },
  22855. "required": [
  22856. "sessionID",
  22857. "text"
  22858. ],
  22859. "additionalProperties": false
  22860. }
  22861. },
  22862. "required": [
  22863. "id",
  22864. "created",
  22865. "type",
  22866. "data"
  22867. ],
  22868. "additionalProperties": false
  22869. },
  22870. "filesystem.changed": {
  22871. "type": "object",
  22872. "properties": {
  22873. "id": {
  22874. "type": "string",
  22875. "allOf": [
  22876. {
  22877. "pattern": "^evt_"
  22878. }
  22879. ]
  22880. },
  22881. "created": {
  22882. "type": "number"
  22883. },
  22884. "metadata": {
  22885. "type": "object"
  22886. },
  22887. "type": {
  22888. "type": "string",
  22889. "enum": [
  22890. "filesystem.changed"
  22891. ]
  22892. },
  22893. "location": {
  22894. "$ref": "#/components/schemas/Location.Ref"
  22895. },
  22896. "data": {
  22897. "type": "object",
  22898. "properties": {
  22899. "file": {
  22900. "type": "string"
  22901. },
  22902. "event": {
  22903. "type": "string",
  22904. "enum": [
  22905. "add",
  22906. "change",
  22907. "unlink"
  22908. ]
  22909. }
  22910. },
  22911. "required": [
  22912. "file",
  22913. "event"
  22914. ],
  22915. "additionalProperties": false
  22916. }
  22917. },
  22918. "required": [
  22919. "id",
  22920. "created",
  22921. "type",
  22922. "data"
  22923. ],
  22924. "additionalProperties": false
  22925. },
  22926. "reference.updated": {
  22927. "type": "object",
  22928. "properties": {
  22929. "id": {
  22930. "type": "string",
  22931. "allOf": [
  22932. {
  22933. "pattern": "^evt_"
  22934. }
  22935. ]
  22936. },
  22937. "created": {
  22938. "type": "number"
  22939. },
  22940. "metadata": {
  22941. "type": "object"
  22942. },
  22943. "type": {
  22944. "type": "string",
  22945. "enum": [
  22946. "reference.updated"
  22947. ]
  22948. },
  22949. "location": {
  22950. "$ref": "#/components/schemas/Location.Ref"
  22951. },
  22952. "data": {
  22953. "anyOf": [
  22954. {
  22955. "type": "object"
  22956. },
  22957. {
  22958. "type": "array"
  22959. }
  22960. ]
  22961. }
  22962. },
  22963. "required": [
  22964. "id",
  22965. "created",
  22966. "type",
  22967. "data"
  22968. ],
  22969. "additionalProperties": false
  22970. },
  22971. "permission.v2.asked": {
  22972. "type": "object",
  22973. "properties": {
  22974. "id": {
  22975. "type": "string",
  22976. "allOf": [
  22977. {
  22978. "pattern": "^evt_"
  22979. }
  22980. ]
  22981. },
  22982. "created": {
  22983. "type": "number"
  22984. },
  22985. "metadata": {
  22986. "type": "object"
  22987. },
  22988. "type": {
  22989. "type": "string",
  22990. "enum": [
  22991. "permission.v2.asked"
  22992. ]
  22993. },
  22994. "location": {
  22995. "$ref": "#/components/schemas/Location.Ref"
  22996. },
  22997. "data": {
  22998. "type": "object",
  22999. "properties": {
  23000. "id": {
  23001. "type": "string",
  23002. "allOf": [
  23003. {
  23004. "pattern": "^per"
  23005. }
  23006. ]
  23007. },
  23008. "sessionID": {
  23009. "type": "string",
  23010. "allOf": [
  23011. {
  23012. "pattern": "^ses"
  23013. }
  23014. ]
  23015. },
  23016. "action": {
  23017. "type": "string"
  23018. },
  23019. "resources": {
  23020. "type": "array",
  23021. "items": {
  23022. "type": "string"
  23023. }
  23024. },
  23025. "save": {
  23026. "type": "array",
  23027. "items": {
  23028. "type": "string"
  23029. }
  23030. },
  23031. "metadata": {
  23032. "type": "object"
  23033. },
  23034. "source": {
  23035. "$ref": "#/components/schemas/PermissionV2.Source"
  23036. }
  23037. },
  23038. "required": [
  23039. "id",
  23040. "sessionID",
  23041. "action",
  23042. "resources"
  23043. ],
  23044. "additionalProperties": false
  23045. }
  23046. },
  23047. "required": [
  23048. "id",
  23049. "created",
  23050. "type",
  23051. "data"
  23052. ],
  23053. "additionalProperties": false
  23054. },
  23055. "permission.v2.replied": {
  23056. "type": "object",
  23057. "properties": {
  23058. "id": {
  23059. "type": "string",
  23060. "allOf": [
  23061. {
  23062. "pattern": "^evt_"
  23063. }
  23064. ]
  23065. },
  23066. "created": {
  23067. "type": "number"
  23068. },
  23069. "metadata": {
  23070. "type": "object"
  23071. },
  23072. "type": {
  23073. "type": "string",
  23074. "enum": [
  23075. "permission.v2.replied"
  23076. ]
  23077. },
  23078. "location": {
  23079. "$ref": "#/components/schemas/Location.Ref"
  23080. },
  23081. "data": {
  23082. "type": "object",
  23083. "properties": {
  23084. "sessionID": {
  23085. "type": "string",
  23086. "allOf": [
  23087. {
  23088. "pattern": "^ses"
  23089. }
  23090. ]
  23091. },
  23092. "requestID": {
  23093. "type": "string",
  23094. "allOf": [
  23095. {
  23096. "pattern": "^per"
  23097. }
  23098. ]
  23099. },
  23100. "reply": {
  23101. "$ref": "#/components/schemas/PermissionV2.Reply"
  23102. }
  23103. },
  23104. "required": [
  23105. "sessionID",
  23106. "requestID",
  23107. "reply"
  23108. ],
  23109. "additionalProperties": false
  23110. }
  23111. },
  23112. "required": [
  23113. "id",
  23114. "created",
  23115. "type",
  23116. "data"
  23117. ],
  23118. "additionalProperties": false
  23119. },
  23120. "plugin.added": {
  23121. "type": "object",
  23122. "properties": {
  23123. "id": {
  23124. "type": "string",
  23125. "allOf": [
  23126. {
  23127. "pattern": "^evt_"
  23128. }
  23129. ]
  23130. },
  23131. "created": {
  23132. "type": "number"
  23133. },
  23134. "metadata": {
  23135. "type": "object"
  23136. },
  23137. "type": {
  23138. "type": "string",
  23139. "enum": [
  23140. "plugin.added"
  23141. ]
  23142. },
  23143. "location": {
  23144. "$ref": "#/components/schemas/Location.Ref"
  23145. },
  23146. "data": {
  23147. "type": "object",
  23148. "properties": {
  23149. "id": {
  23150. "type": "string"
  23151. }
  23152. },
  23153. "required": [
  23154. "id"
  23155. ],
  23156. "additionalProperties": false
  23157. }
  23158. },
  23159. "required": [
  23160. "id",
  23161. "created",
  23162. "type",
  23163. "data"
  23164. ],
  23165. "additionalProperties": false
  23166. },
  23167. "plugin.updated": {
  23168. "type": "object",
  23169. "properties": {
  23170. "id": {
  23171. "type": "string",
  23172. "allOf": [
  23173. {
  23174. "pattern": "^evt_"
  23175. }
  23176. ]
  23177. },
  23178. "created": {
  23179. "type": "number"
  23180. },
  23181. "metadata": {
  23182. "type": "object"
  23183. },
  23184. "type": {
  23185. "type": "string",
  23186. "enum": [
  23187. "plugin.updated"
  23188. ]
  23189. },
  23190. "location": {
  23191. "$ref": "#/components/schemas/Location.Ref"
  23192. },
  23193. "data": {
  23194. "anyOf": [
  23195. {
  23196. "type": "object"
  23197. },
  23198. {
  23199. "type": "array"
  23200. }
  23201. ]
  23202. }
  23203. },
  23204. "required": [
  23205. "id",
  23206. "created",
  23207. "type",
  23208. "data"
  23209. ],
  23210. "additionalProperties": false
  23211. },
  23212. "project.directories.updated": {
  23213. "type": "object",
  23214. "properties": {
  23215. "id": {
  23216. "type": "string",
  23217. "allOf": [
  23218. {
  23219. "pattern": "^evt_"
  23220. }
  23221. ]
  23222. },
  23223. "created": {
  23224. "type": "number"
  23225. },
  23226. "metadata": {
  23227. "type": "object"
  23228. },
  23229. "type": {
  23230. "type": "string",
  23231. "enum": [
  23232. "project.directories.updated"
  23233. ]
  23234. },
  23235. "location": {
  23236. "$ref": "#/components/schemas/Location.Ref"
  23237. },
  23238. "data": {
  23239. "type": "object",
  23240. "properties": {
  23241. "projectID": {
  23242. "type": "string"
  23243. }
  23244. },
  23245. "required": [
  23246. "projectID"
  23247. ],
  23248. "additionalProperties": false
  23249. }
  23250. },
  23251. "required": [
  23252. "id",
  23253. "created",
  23254. "type",
  23255. "data"
  23256. ],
  23257. "additionalProperties": false
  23258. },
  23259. "command.updated": {
  23260. "type": "object",
  23261. "properties": {
  23262. "id": {
  23263. "type": "string",
  23264. "allOf": [
  23265. {
  23266. "pattern": "^evt_"
  23267. }
  23268. ]
  23269. },
  23270. "created": {
  23271. "type": "number"
  23272. },
  23273. "metadata": {
  23274. "type": "object"
  23275. },
  23276. "type": {
  23277. "type": "string",
  23278. "enum": [
  23279. "command.updated"
  23280. ]
  23281. },
  23282. "location": {
  23283. "$ref": "#/components/schemas/Location.Ref"
  23284. },
  23285. "data": {
  23286. "anyOf": [
  23287. {
  23288. "type": "object"
  23289. },
  23290. {
  23291. "type": "array"
  23292. }
  23293. ]
  23294. }
  23295. },
  23296. "required": [
  23297. "id",
  23298. "created",
  23299. "type",
  23300. "data"
  23301. ],
  23302. "additionalProperties": false
  23303. },
  23304. "config.updated": {
  23305. "type": "object",
  23306. "properties": {
  23307. "id": {
  23308. "type": "string",
  23309. "allOf": [
  23310. {
  23311. "pattern": "^evt_"
  23312. }
  23313. ]
  23314. },
  23315. "created": {
  23316. "type": "number"
  23317. },
  23318. "metadata": {
  23319. "type": "object"
  23320. },
  23321. "type": {
  23322. "type": "string",
  23323. "enum": [
  23324. "config.updated"
  23325. ]
  23326. },
  23327. "location": {
  23328. "$ref": "#/components/schemas/Location.Ref"
  23329. },
  23330. "data": {
  23331. "anyOf": [
  23332. {
  23333. "type": "object"
  23334. },
  23335. {
  23336. "type": "array"
  23337. }
  23338. ]
  23339. }
  23340. },
  23341. "required": [
  23342. "id",
  23343. "created",
  23344. "type",
  23345. "data"
  23346. ],
  23347. "additionalProperties": false
  23348. },
  23349. "skill.updated": {
  23350. "type": "object",
  23351. "properties": {
  23352. "id": {
  23353. "type": "string",
  23354. "allOf": [
  23355. {
  23356. "pattern": "^evt_"
  23357. }
  23358. ]
  23359. },
  23360. "created": {
  23361. "type": "number"
  23362. },
  23363. "metadata": {
  23364. "type": "object"
  23365. },
  23366. "type": {
  23367. "type": "string",
  23368. "enum": [
  23369. "skill.updated"
  23370. ]
  23371. },
  23372. "location": {
  23373. "$ref": "#/components/schemas/Location.Ref"
  23374. },
  23375. "data": {
  23376. "anyOf": [
  23377. {
  23378. "type": "object"
  23379. },
  23380. {
  23381. "type": "array"
  23382. }
  23383. ]
  23384. }
  23385. },
  23386. "required": [
  23387. "id",
  23388. "created",
  23389. "type",
  23390. "data"
  23391. ],
  23392. "additionalProperties": false
  23393. },
  23394. "Pty": {
  23395. "type": "object",
  23396. "properties": {
  23397. "id": {
  23398. "type": "string",
  23399. "allOf": [
  23400. {
  23401. "pattern": "^pty"
  23402. }
  23403. ]
  23404. },
  23405. "title": {
  23406. "type": "string"
  23407. },
  23408. "command": {
  23409. "type": "string"
  23410. },
  23411. "args": {
  23412. "type": "array",
  23413. "items": {
  23414. "type": "string"
  23415. }
  23416. },
  23417. "cwd": {
  23418. "type": "string"
  23419. },
  23420. "status": {
  23421. "type": "string",
  23422. "enum": [
  23423. "running",
  23424. "exited"
  23425. ]
  23426. },
  23427. "pid": {
  23428. "type": "integer",
  23429. "allOf": [
  23430. {
  23431. "minimum": 0
  23432. }
  23433. ]
  23434. },
  23435. "exitCode": {
  23436. "type": "integer",
  23437. "allOf": [
  23438. {
  23439. "minimum": 0
  23440. }
  23441. ]
  23442. }
  23443. },
  23444. "required": [
  23445. "id",
  23446. "title",
  23447. "command",
  23448. "args",
  23449. "cwd",
  23450. "status",
  23451. "pid"
  23452. ],
  23453. "additionalProperties": false
  23454. },
  23455. "pty.created": {
  23456. "type": "object",
  23457. "properties": {
  23458. "id": {
  23459. "type": "string",
  23460. "allOf": [
  23461. {
  23462. "pattern": "^evt_"
  23463. }
  23464. ]
  23465. },
  23466. "created": {
  23467. "type": "number"
  23468. },
  23469. "metadata": {
  23470. "type": "object"
  23471. },
  23472. "type": {
  23473. "type": "string",
  23474. "enum": [
  23475. "pty.created"
  23476. ]
  23477. },
  23478. "location": {
  23479. "$ref": "#/components/schemas/Location.Ref"
  23480. },
  23481. "data": {
  23482. "type": "object",
  23483. "properties": {
  23484. "info": {
  23485. "$ref": "#/components/schemas/Pty"
  23486. }
  23487. },
  23488. "required": [
  23489. "info"
  23490. ],
  23491. "additionalProperties": false
  23492. }
  23493. },
  23494. "required": [
  23495. "id",
  23496. "created",
  23497. "type",
  23498. "data"
  23499. ],
  23500. "additionalProperties": false
  23501. },
  23502. "pty.updated": {
  23503. "type": "object",
  23504. "properties": {
  23505. "id": {
  23506. "type": "string",
  23507. "allOf": [
  23508. {
  23509. "pattern": "^evt_"
  23510. }
  23511. ]
  23512. },
  23513. "created": {
  23514. "type": "number"
  23515. },
  23516. "metadata": {
  23517. "type": "object"
  23518. },
  23519. "type": {
  23520. "type": "string",
  23521. "enum": [
  23522. "pty.updated"
  23523. ]
  23524. },
  23525. "location": {
  23526. "$ref": "#/components/schemas/Location.Ref"
  23527. },
  23528. "data": {
  23529. "type": "object",
  23530. "properties": {
  23531. "info": {
  23532. "$ref": "#/components/schemas/Pty"
  23533. }
  23534. },
  23535. "required": [
  23536. "info"
  23537. ],
  23538. "additionalProperties": false
  23539. }
  23540. },
  23541. "required": [
  23542. "id",
  23543. "created",
  23544. "type",
  23545. "data"
  23546. ],
  23547. "additionalProperties": false
  23548. },
  23549. "pty.exited": {
  23550. "type": "object",
  23551. "properties": {
  23552. "id": {
  23553. "type": "string",
  23554. "allOf": [
  23555. {
  23556. "pattern": "^evt_"
  23557. }
  23558. ]
  23559. },
  23560. "created": {
  23561. "type": "number"
  23562. },
  23563. "metadata": {
  23564. "type": "object"
  23565. },
  23566. "type": {
  23567. "type": "string",
  23568. "enum": [
  23569. "pty.exited"
  23570. ]
  23571. },
  23572. "location": {
  23573. "$ref": "#/components/schemas/Location.Ref"
  23574. },
  23575. "data": {
  23576. "type": "object",
  23577. "properties": {
  23578. "id": {
  23579. "type": "string",
  23580. "allOf": [
  23581. {
  23582. "pattern": "^pty"
  23583. }
  23584. ]
  23585. },
  23586. "exitCode": {
  23587. "type": "integer",
  23588. "allOf": [
  23589. {
  23590. "minimum": 0
  23591. }
  23592. ]
  23593. }
  23594. },
  23595. "required": [
  23596. "id",
  23597. "exitCode"
  23598. ],
  23599. "additionalProperties": false
  23600. }
  23601. },
  23602. "required": [
  23603. "id",
  23604. "created",
  23605. "type",
  23606. "data"
  23607. ],
  23608. "additionalProperties": false
  23609. },
  23610. "pty.deleted": {
  23611. "type": "object",
  23612. "properties": {
  23613. "id": {
  23614. "type": "string",
  23615. "allOf": [
  23616. {
  23617. "pattern": "^evt_"
  23618. }
  23619. ]
  23620. },
  23621. "created": {
  23622. "type": "number"
  23623. },
  23624. "metadata": {
  23625. "type": "object"
  23626. },
  23627. "type": {
  23628. "type": "string",
  23629. "enum": [
  23630. "pty.deleted"
  23631. ]
  23632. },
  23633. "location": {
  23634. "$ref": "#/components/schemas/Location.Ref"
  23635. },
  23636. "data": {
  23637. "type": "object",
  23638. "properties": {
  23639. "id": {
  23640. "type": "string",
  23641. "allOf": [
  23642. {
  23643. "pattern": "^pty"
  23644. }
  23645. ]
  23646. }
  23647. },
  23648. "required": [
  23649. "id"
  23650. ],
  23651. "additionalProperties": false
  23652. }
  23653. },
  23654. "required": [
  23655. "id",
  23656. "created",
  23657. "type",
  23658. "data"
  23659. ],
  23660. "additionalProperties": false
  23661. },
  23662. "shell.created": {
  23663. "type": "object",
  23664. "properties": {
  23665. "id": {
  23666. "type": "string",
  23667. "allOf": [
  23668. {
  23669. "pattern": "^evt_"
  23670. }
  23671. ]
  23672. },
  23673. "created": {
  23674. "type": "number"
  23675. },
  23676. "metadata": {
  23677. "type": "object"
  23678. },
  23679. "type": {
  23680. "type": "string",
  23681. "enum": [
  23682. "shell.created"
  23683. ]
  23684. },
  23685. "location": {
  23686. "$ref": "#/components/schemas/Location.Ref"
  23687. },
  23688. "data": {
  23689. "type": "object",
  23690. "properties": {
  23691. "info": {
  23692. "$ref": "#/components/schemas/Shell"
  23693. }
  23694. },
  23695. "required": [
  23696. "info"
  23697. ],
  23698. "additionalProperties": false
  23699. }
  23700. },
  23701. "required": [
  23702. "id",
  23703. "created",
  23704. "type",
  23705. "data"
  23706. ],
  23707. "additionalProperties": false
  23708. },
  23709. "shell.exited": {
  23710. "type": "object",
  23711. "properties": {
  23712. "id": {
  23713. "type": "string",
  23714. "allOf": [
  23715. {
  23716. "pattern": "^evt_"
  23717. }
  23718. ]
  23719. },
  23720. "created": {
  23721. "type": "number"
  23722. },
  23723. "metadata": {
  23724. "type": "object"
  23725. },
  23726. "type": {
  23727. "type": "string",
  23728. "enum": [
  23729. "shell.exited"
  23730. ]
  23731. },
  23732. "location": {
  23733. "$ref": "#/components/schemas/Location.Ref"
  23734. },
  23735. "data": {
  23736. "type": "object",
  23737. "properties": {
  23738. "id": {
  23739. "type": "string",
  23740. "allOf": [
  23741. {
  23742. "pattern": "^sh_"
  23743. }
  23744. ]
  23745. },
  23746. "exit": {
  23747. "anyOf": [
  23748. {
  23749. "type": "number"
  23750. },
  23751. {
  23752. "type": "string",
  23753. "enum": [
  23754. "NaN"
  23755. ]
  23756. },
  23757. {
  23758. "type": "string",
  23759. "enum": [
  23760. "Infinity"
  23761. ]
  23762. },
  23763. {
  23764. "type": "string",
  23765. "enum": [
  23766. "-Infinity"
  23767. ]
  23768. }
  23769. ]
  23770. },
  23771. "status": {
  23772. "type": "string",
  23773. "enum": [
  23774. "running",
  23775. "exited",
  23776. "timeout",
  23777. "killed"
  23778. ]
  23779. }
  23780. },
  23781. "required": [
  23782. "id",
  23783. "status"
  23784. ],
  23785. "additionalProperties": false
  23786. }
  23787. },
  23788. "required": [
  23789. "id",
  23790. "created",
  23791. "type",
  23792. "data"
  23793. ],
  23794. "additionalProperties": false
  23795. },
  23796. "shell.deleted": {
  23797. "type": "object",
  23798. "properties": {
  23799. "id": {
  23800. "type": "string",
  23801. "allOf": [
  23802. {
  23803. "pattern": "^evt_"
  23804. }
  23805. ]
  23806. },
  23807. "created": {
  23808. "type": "number"
  23809. },
  23810. "metadata": {
  23811. "type": "object"
  23812. },
  23813. "type": {
  23814. "type": "string",
  23815. "enum": [
  23816. "shell.deleted"
  23817. ]
  23818. },
  23819. "location": {
  23820. "$ref": "#/components/schemas/Location.Ref"
  23821. },
  23822. "data": {
  23823. "type": "object",
  23824. "properties": {
  23825. "id": {
  23826. "type": "string",
  23827. "allOf": [
  23828. {
  23829. "pattern": "^sh_"
  23830. }
  23831. ]
  23832. }
  23833. },
  23834. "required": [
  23835. "id"
  23836. ],
  23837. "additionalProperties": false
  23838. }
  23839. },
  23840. "required": [
  23841. "id",
  23842. "created",
  23843. "type",
  23844. "data"
  23845. ],
  23846. "additionalProperties": false
  23847. },
  23848. "QuestionV2.Option": {
  23849. "type": "object",
  23850. "properties": {
  23851. "label": {
  23852. "type": "string",
  23853. "description": "Display text (1-5 words, concise)"
  23854. },
  23855. "description": {
  23856. "type": "string",
  23857. "description": "Explanation of choice"
  23858. }
  23859. },
  23860. "required": [
  23861. "label",
  23862. "description"
  23863. ],
  23864. "additionalProperties": false
  23865. },
  23866. "QuestionV2.Info": {
  23867. "type": "object",
  23868. "properties": {
  23869. "question": {
  23870. "type": "string",
  23871. "description": "Complete question"
  23872. },
  23873. "header": {
  23874. "type": "string",
  23875. "description": "Very short label (max 30 chars)"
  23876. },
  23877. "options": {
  23878. "type": "array",
  23879. "items": {
  23880. "$ref": "#/components/schemas/QuestionV2.Option"
  23881. },
  23882. "description": "Available choices"
  23883. },
  23884. "multiple": {
  23885. "type": "boolean"
  23886. },
  23887. "custom": {
  23888. "type": "boolean"
  23889. }
  23890. },
  23891. "required": [
  23892. "question",
  23893. "header",
  23894. "options"
  23895. ],
  23896. "additionalProperties": false
  23897. },
  23898. "QuestionV2.Tool": {
  23899. "type": "object",
  23900. "properties": {
  23901. "messageID": {
  23902. "type": "string"
  23903. },
  23904. "callID": {
  23905. "type": "string"
  23906. }
  23907. },
  23908. "required": [
  23909. "messageID",
  23910. "callID"
  23911. ],
  23912. "additionalProperties": false
  23913. },
  23914. "question.v2.asked": {
  23915. "type": "object",
  23916. "properties": {
  23917. "id": {
  23918. "type": "string",
  23919. "allOf": [
  23920. {
  23921. "pattern": "^evt_"
  23922. }
  23923. ]
  23924. },
  23925. "created": {
  23926. "type": "number"
  23927. },
  23928. "metadata": {
  23929. "type": "object"
  23930. },
  23931. "type": {
  23932. "type": "string",
  23933. "enum": [
  23934. "question.v2.asked"
  23935. ]
  23936. },
  23937. "location": {
  23938. "$ref": "#/components/schemas/Location.Ref"
  23939. },
  23940. "data": {
  23941. "type": "object",
  23942. "properties": {
  23943. "id": {
  23944. "type": "string",
  23945. "allOf": [
  23946. {
  23947. "pattern": "^que"
  23948. }
  23949. ]
  23950. },
  23951. "sessionID": {
  23952. "type": "string",
  23953. "allOf": [
  23954. {
  23955. "pattern": "^ses"
  23956. }
  23957. ]
  23958. },
  23959. "questions": {
  23960. "type": "array",
  23961. "items": {
  23962. "$ref": "#/components/schemas/QuestionV2.Info"
  23963. },
  23964. "description": "Questions to ask"
  23965. },
  23966. "tool": {
  23967. "$ref": "#/components/schemas/QuestionV2.Tool"
  23968. }
  23969. },
  23970. "required": [
  23971. "id",
  23972. "sessionID",
  23973. "questions"
  23974. ],
  23975. "additionalProperties": false
  23976. }
  23977. },
  23978. "required": [
  23979. "id",
  23980. "created",
  23981. "type",
  23982. "data"
  23983. ],
  23984. "additionalProperties": false
  23985. },
  23986. "QuestionV2.Answer": {
  23987. "type": "array",
  23988. "items": {
  23989. "type": "string"
  23990. }
  23991. },
  23992. "question.v2.replied": {
  23993. "type": "object",
  23994. "properties": {
  23995. "id": {
  23996. "type": "string",
  23997. "allOf": [
  23998. {
  23999. "pattern": "^evt_"
  24000. }
  24001. ]
  24002. },
  24003. "created": {
  24004. "type": "number"
  24005. },
  24006. "metadata": {
  24007. "type": "object"
  24008. },
  24009. "type": {
  24010. "type": "string",
  24011. "enum": [
  24012. "question.v2.replied"
  24013. ]
  24014. },
  24015. "location": {
  24016. "$ref": "#/components/schemas/Location.Ref"
  24017. },
  24018. "data": {
  24019. "type": "object",
  24020. "properties": {
  24021. "sessionID": {
  24022. "type": "string",
  24023. "allOf": [
  24024. {
  24025. "pattern": "^ses"
  24026. }
  24027. ]
  24028. },
  24029. "requestID": {
  24030. "type": "string",
  24031. "allOf": [
  24032. {
  24033. "pattern": "^que"
  24034. }
  24035. ]
  24036. },
  24037. "answers": {
  24038. "type": "array",
  24039. "items": {
  24040. "$ref": "#/components/schemas/QuestionV2.Answer"
  24041. }
  24042. }
  24043. },
  24044. "required": [
  24045. "sessionID",
  24046. "requestID",
  24047. "answers"
  24048. ],
  24049. "additionalProperties": false
  24050. }
  24051. },
  24052. "required": [
  24053. "id",
  24054. "created",
  24055. "type",
  24056. "data"
  24057. ],
  24058. "additionalProperties": false
  24059. },
  24060. "question.v2.rejected": {
  24061. "type": "object",
  24062. "properties": {
  24063. "id": {
  24064. "type": "string",
  24065. "allOf": [
  24066. {
  24067. "pattern": "^evt_"
  24068. }
  24069. ]
  24070. },
  24071. "created": {
  24072. "type": "number"
  24073. },
  24074. "metadata": {
  24075. "type": "object"
  24076. },
  24077. "type": {
  24078. "type": "string",
  24079. "enum": [
  24080. "question.v2.rejected"
  24081. ]
  24082. },
  24083. "location": {
  24084. "$ref": "#/components/schemas/Location.Ref"
  24085. },
  24086. "data": {
  24087. "type": "object",
  24088. "properties": {
  24089. "sessionID": {
  24090. "type": "string",
  24091. "allOf": [
  24092. {
  24093. "pattern": "^ses"
  24094. }
  24095. ]
  24096. },
  24097. "requestID": {
  24098. "type": "string",
  24099. "allOf": [
  24100. {
  24101. "pattern": "^que"
  24102. }
  24103. ]
  24104. }
  24105. },
  24106. "required": [
  24107. "sessionID",
  24108. "requestID"
  24109. ],
  24110. "additionalProperties": false
  24111. }
  24112. },
  24113. "required": [
  24114. "id",
  24115. "created",
  24116. "type",
  24117. "data"
  24118. ],
  24119. "additionalProperties": false
  24120. },
  24121. "Form.Metadata1": {
  24122. "type": "object"
  24123. },
  24124. "Form.When1": {
  24125. "type": "object",
  24126. "properties": {
  24127. "key": {
  24128. "type": "string"
  24129. },
  24130. "op": {
  24131. "type": "string",
  24132. "enum": [
  24133. "eq",
  24134. "neq"
  24135. ]
  24136. },
  24137. "value": {
  24138. "anyOf": [
  24139. {
  24140. "type": "string"
  24141. },
  24142. {
  24143. "anyOf": [
  24144. {
  24145. "type": "number"
  24146. },
  24147. {
  24148. "type": "string",
  24149. "enum": [
  24150. "NaN"
  24151. ]
  24152. },
  24153. {
  24154. "type": "string",
  24155. "enum": [
  24156. "Infinity"
  24157. ]
  24158. },
  24159. {
  24160. "type": "string",
  24161. "enum": [
  24162. "-Infinity"
  24163. ]
  24164. }
  24165. ]
  24166. },
  24167. {
  24168. "type": "boolean"
  24169. }
  24170. ]
  24171. }
  24172. },
  24173. "required": [
  24174. "key",
  24175. "op",
  24176. "value"
  24177. ],
  24178. "additionalProperties": false
  24179. },
  24180. "Form.StringField1": {
  24181. "type": "object",
  24182. "properties": {
  24183. "key": {
  24184. "type": "string"
  24185. },
  24186. "title": {
  24187. "type": "string"
  24188. },
  24189. "description": {
  24190. "type": "string"
  24191. },
  24192. "required": {
  24193. "type": "boolean"
  24194. },
  24195. "when": {
  24196. "type": "array",
  24197. "items": {
  24198. "$ref": "#/components/schemas/Form.When1"
  24199. }
  24200. },
  24201. "type": {
  24202. "type": "string",
  24203. "enum": [
  24204. "string"
  24205. ]
  24206. },
  24207. "format": {
  24208. "type": "string",
  24209. "enum": [
  24210. "email",
  24211. "uri",
  24212. "date",
  24213. "date-time"
  24214. ]
  24215. },
  24216. "minLength": {
  24217. "type": "integer",
  24218. "allOf": [
  24219. {
  24220. "minimum": 0
  24221. }
  24222. ]
  24223. },
  24224. "maxLength": {
  24225. "type": "integer",
  24226. "allOf": [
  24227. {
  24228. "minimum": 0
  24229. }
  24230. ]
  24231. },
  24232. "pattern": {
  24233. "type": "string"
  24234. },
  24235. "placeholder": {
  24236. "type": "string"
  24237. },
  24238. "default": {
  24239. "type": "string"
  24240. },
  24241. "options": {
  24242. "type": "array",
  24243. "items": {
  24244. "$ref": "#/components/schemas/Form.Option"
  24245. }
  24246. },
  24247. "custom": {
  24248. "type": "boolean"
  24249. }
  24250. },
  24251. "required": [
  24252. "key",
  24253. "type"
  24254. ],
  24255. "additionalProperties": false
  24256. },
  24257. "Form.NumberField1": {
  24258. "type": "object",
  24259. "properties": {
  24260. "key": {
  24261. "type": "string"
  24262. },
  24263. "title": {
  24264. "type": "string"
  24265. },
  24266. "description": {
  24267. "type": "string"
  24268. },
  24269. "required": {
  24270. "type": "boolean"
  24271. },
  24272. "when": {
  24273. "type": "array",
  24274. "items": {
  24275. "$ref": "#/components/schemas/Form.When1"
  24276. }
  24277. },
  24278. "type": {
  24279. "type": "string",
  24280. "enum": [
  24281. "number"
  24282. ]
  24283. },
  24284. "minimum": {
  24285. "anyOf": [
  24286. {
  24287. "type": "number"
  24288. },
  24289. {
  24290. "type": "string",
  24291. "enum": [
  24292. "NaN"
  24293. ]
  24294. },
  24295. {
  24296. "type": "string",
  24297. "enum": [
  24298. "Infinity"
  24299. ]
  24300. },
  24301. {
  24302. "type": "string",
  24303. "enum": [
  24304. "-Infinity"
  24305. ]
  24306. }
  24307. ]
  24308. },
  24309. "maximum": {
  24310. "anyOf": [
  24311. {
  24312. "type": "number"
  24313. },
  24314. {
  24315. "type": "string",
  24316. "enum": [
  24317. "NaN"
  24318. ]
  24319. },
  24320. {
  24321. "type": "string",
  24322. "enum": [
  24323. "Infinity"
  24324. ]
  24325. },
  24326. {
  24327. "type": "string",
  24328. "enum": [
  24329. "-Infinity"
  24330. ]
  24331. }
  24332. ]
  24333. },
  24334. "default": {
  24335. "anyOf": [
  24336. {
  24337. "type": "number"
  24338. },
  24339. {
  24340. "type": "string",
  24341. "enum": [
  24342. "NaN"
  24343. ]
  24344. },
  24345. {
  24346. "type": "string",
  24347. "enum": [
  24348. "Infinity"
  24349. ]
  24350. },
  24351. {
  24352. "type": "string",
  24353. "enum": [
  24354. "-Infinity"
  24355. ]
  24356. }
  24357. ]
  24358. }
  24359. },
  24360. "required": [
  24361. "key",
  24362. "type"
  24363. ],
  24364. "additionalProperties": false
  24365. },
  24366. "Form.IntegerField1": {
  24367. "type": "object",
  24368. "properties": {
  24369. "key": {
  24370. "type": "string"
  24371. },
  24372. "title": {
  24373. "type": "string"
  24374. },
  24375. "description": {
  24376. "type": "string"
  24377. },
  24378. "required": {
  24379. "type": "boolean"
  24380. },
  24381. "when": {
  24382. "type": "array",
  24383. "items": {
  24384. "$ref": "#/components/schemas/Form.When1"
  24385. }
  24386. },
  24387. "type": {
  24388. "type": "string",
  24389. "enum": [
  24390. "integer"
  24391. ]
  24392. },
  24393. "minimum": {
  24394. "anyOf": [
  24395. {
  24396. "type": "number"
  24397. },
  24398. {
  24399. "type": "string",
  24400. "enum": [
  24401. "NaN"
  24402. ]
  24403. },
  24404. {
  24405. "type": "string",
  24406. "enum": [
  24407. "Infinity"
  24408. ]
  24409. },
  24410. {
  24411. "type": "string",
  24412. "enum": [
  24413. "-Infinity"
  24414. ]
  24415. }
  24416. ]
  24417. },
  24418. "maximum": {
  24419. "anyOf": [
  24420. {
  24421. "type": "number"
  24422. },
  24423. {
  24424. "type": "string",
  24425. "enum": [
  24426. "NaN"
  24427. ]
  24428. },
  24429. {
  24430. "type": "string",
  24431. "enum": [
  24432. "Infinity"
  24433. ]
  24434. },
  24435. {
  24436. "type": "string",
  24437. "enum": [
  24438. "-Infinity"
  24439. ]
  24440. }
  24441. ]
  24442. },
  24443. "default": {
  24444. "anyOf": [
  24445. {
  24446. "type": "number"
  24447. },
  24448. {
  24449. "type": "string",
  24450. "enum": [
  24451. "NaN"
  24452. ]
  24453. },
  24454. {
  24455. "type": "string",
  24456. "enum": [
  24457. "Infinity"
  24458. ]
  24459. },
  24460. {
  24461. "type": "string",
  24462. "enum": [
  24463. "-Infinity"
  24464. ]
  24465. }
  24466. ]
  24467. }
  24468. },
  24469. "required": [
  24470. "key",
  24471. "type"
  24472. ],
  24473. "additionalProperties": false
  24474. },
  24475. "Form.BooleanField1": {
  24476. "type": "object",
  24477. "properties": {
  24478. "key": {
  24479. "type": "string"
  24480. },
  24481. "title": {
  24482. "type": "string"
  24483. },
  24484. "description": {
  24485. "type": "string"
  24486. },
  24487. "required": {
  24488. "type": "boolean"
  24489. },
  24490. "when": {
  24491. "type": "array",
  24492. "items": {
  24493. "$ref": "#/components/schemas/Form.When1"
  24494. }
  24495. },
  24496. "type": {
  24497. "type": "string",
  24498. "enum": [
  24499. "boolean"
  24500. ]
  24501. },
  24502. "default": {
  24503. "type": "boolean"
  24504. }
  24505. },
  24506. "required": [
  24507. "key",
  24508. "type"
  24509. ],
  24510. "additionalProperties": false
  24511. },
  24512. "Form.MultiselectField1": {
  24513. "type": "object",
  24514. "properties": {
  24515. "key": {
  24516. "type": "string"
  24517. },
  24518. "title": {
  24519. "type": "string"
  24520. },
  24521. "description": {
  24522. "type": "string"
  24523. },
  24524. "required": {
  24525. "type": "boolean"
  24526. },
  24527. "when": {
  24528. "type": "array",
  24529. "items": {
  24530. "$ref": "#/components/schemas/Form.When1"
  24531. }
  24532. },
  24533. "type": {
  24534. "type": "string",
  24535. "enum": [
  24536. "multiselect"
  24537. ]
  24538. },
  24539. "options": {
  24540. "type": "array",
  24541. "items": {
  24542. "$ref": "#/components/schemas/Form.Option"
  24543. }
  24544. },
  24545. "minItems": {
  24546. "type": "integer",
  24547. "allOf": [
  24548. {
  24549. "minimum": 0
  24550. }
  24551. ]
  24552. },
  24553. "maxItems": {
  24554. "type": "integer",
  24555. "allOf": [
  24556. {
  24557. "minimum": 0
  24558. }
  24559. ]
  24560. },
  24561. "custom": {
  24562. "type": "boolean"
  24563. },
  24564. "default": {
  24565. "type": "array",
  24566. "items": {
  24567. "type": "string"
  24568. }
  24569. }
  24570. },
  24571. "required": [
  24572. "key",
  24573. "type",
  24574. "options"
  24575. ],
  24576. "additionalProperties": false
  24577. },
  24578. "Form.FormInfo1": {
  24579. "type": "object",
  24580. "properties": {
  24581. "id": {
  24582. "type": "string",
  24583. "allOf": [
  24584. {
  24585. "pattern": "^frm_"
  24586. }
  24587. ]
  24588. },
  24589. "sessionID": {
  24590. "type": "string"
  24591. },
  24592. "title": {
  24593. "type": "string"
  24594. },
  24595. "metadata": {
  24596. "$ref": "#/components/schemas/Form.Metadata1"
  24597. },
  24598. "mode": {
  24599. "type": "string",
  24600. "enum": [
  24601. "form"
  24602. ]
  24603. },
  24604. "fields": {
  24605. "type": "array",
  24606. "items": {
  24607. "anyOf": [
  24608. {
  24609. "$ref": "#/components/schemas/Form.StringField1"
  24610. },
  24611. {
  24612. "$ref": "#/components/schemas/Form.NumberField1"
  24613. },
  24614. {
  24615. "$ref": "#/components/schemas/Form.IntegerField1"
  24616. },
  24617. {
  24618. "$ref": "#/components/schemas/Form.BooleanField1"
  24619. },
  24620. {
  24621. "$ref": "#/components/schemas/Form.MultiselectField1"
  24622. }
  24623. ]
  24624. }
  24625. }
  24626. },
  24627. "required": [
  24628. "id",
  24629. "sessionID",
  24630. "title",
  24631. "mode",
  24632. "fields"
  24633. ],
  24634. "additionalProperties": false
  24635. },
  24636. "Form.UrlInfo1": {
  24637. "type": "object",
  24638. "properties": {
  24639. "id": {
  24640. "type": "string",
  24641. "allOf": [
  24642. {
  24643. "pattern": "^frm_"
  24644. }
  24645. ]
  24646. },
  24647. "sessionID": {
  24648. "type": "string"
  24649. },
  24650. "title": {
  24651. "type": "string"
  24652. },
  24653. "metadata": {
  24654. "$ref": "#/components/schemas/Form.Metadata1"
  24655. },
  24656. "mode": {
  24657. "type": "string",
  24658. "enum": [
  24659. "url"
  24660. ]
  24661. },
  24662. "url": {
  24663. "type": "string"
  24664. }
  24665. },
  24666. "required": [
  24667. "id",
  24668. "sessionID",
  24669. "title",
  24670. "mode",
  24671. "url"
  24672. ],
  24673. "additionalProperties": false
  24674. },
  24675. "form.created": {
  24676. "type": "object",
  24677. "properties": {
  24678. "id": {
  24679. "type": "string",
  24680. "allOf": [
  24681. {
  24682. "pattern": "^evt_"
  24683. }
  24684. ]
  24685. },
  24686. "created": {
  24687. "type": "number"
  24688. },
  24689. "metadata": {
  24690. "type": "object"
  24691. },
  24692. "type": {
  24693. "type": "string",
  24694. "enum": [
  24695. "form.created"
  24696. ]
  24697. },
  24698. "location": {
  24699. "$ref": "#/components/schemas/Location.Ref"
  24700. },
  24701. "data": {
  24702. "type": "object",
  24703. "properties": {
  24704. "form": {
  24705. "anyOf": [
  24706. {
  24707. "$ref": "#/components/schemas/Form.FormInfo1"
  24708. },
  24709. {
  24710. "$ref": "#/components/schemas/Form.UrlInfo1"
  24711. }
  24712. ]
  24713. }
  24714. },
  24715. "required": [
  24716. "form"
  24717. ],
  24718. "additionalProperties": false
  24719. }
  24720. },
  24721. "required": [
  24722. "id",
  24723. "created",
  24724. "type",
  24725. "data"
  24726. ],
  24727. "additionalProperties": false
  24728. },
  24729. "Form.Value1": {
  24730. "anyOf": [
  24731. {
  24732. "type": "string"
  24733. },
  24734. {
  24735. "anyOf": [
  24736. {
  24737. "type": "number"
  24738. },
  24739. {
  24740. "type": "string",
  24741. "enum": [
  24742. "NaN"
  24743. ]
  24744. },
  24745. {
  24746. "type": "string",
  24747. "enum": [
  24748. "Infinity"
  24749. ]
  24750. },
  24751. {
  24752. "type": "string",
  24753. "enum": [
  24754. "-Infinity"
  24755. ]
  24756. }
  24757. ]
  24758. },
  24759. {
  24760. "type": "boolean"
  24761. },
  24762. {
  24763. "type": "array",
  24764. "items": {
  24765. "type": "string"
  24766. }
  24767. }
  24768. ]
  24769. },
  24770. "Form.Answer1": {
  24771. "type": "object",
  24772. "additionalProperties": {
  24773. "$ref": "#/components/schemas/Form.Value1"
  24774. }
  24775. },
  24776. "form.replied": {
  24777. "type": "object",
  24778. "properties": {
  24779. "id": {
  24780. "type": "string",
  24781. "allOf": [
  24782. {
  24783. "pattern": "^evt_"
  24784. }
  24785. ]
  24786. },
  24787. "created": {
  24788. "type": "number"
  24789. },
  24790. "metadata": {
  24791. "type": "object"
  24792. },
  24793. "type": {
  24794. "type": "string",
  24795. "enum": [
  24796. "form.replied"
  24797. ]
  24798. },
  24799. "location": {
  24800. "$ref": "#/components/schemas/Location.Ref"
  24801. },
  24802. "data": {
  24803. "type": "object",
  24804. "properties": {
  24805. "id": {
  24806. "type": "string",
  24807. "allOf": [
  24808. {
  24809. "pattern": "^frm_"
  24810. }
  24811. ]
  24812. },
  24813. "sessionID": {
  24814. "type": "string"
  24815. },
  24816. "answer": {
  24817. "$ref": "#/components/schemas/Form.Answer1"
  24818. }
  24819. },
  24820. "required": [
  24821. "id",
  24822. "sessionID",
  24823. "answer"
  24824. ],
  24825. "additionalProperties": false
  24826. }
  24827. },
  24828. "required": [
  24829. "id",
  24830. "created",
  24831. "type",
  24832. "data"
  24833. ],
  24834. "additionalProperties": false
  24835. },
  24836. "form.cancelled": {
  24837. "type": "object",
  24838. "properties": {
  24839. "id": {
  24840. "type": "string",
  24841. "allOf": [
  24842. {
  24843. "pattern": "^evt_"
  24844. }
  24845. ]
  24846. },
  24847. "created": {
  24848. "type": "number"
  24849. },
  24850. "metadata": {
  24851. "type": "object"
  24852. },
  24853. "type": {
  24854. "type": "string",
  24855. "enum": [
  24856. "form.cancelled"
  24857. ]
  24858. },
  24859. "location": {
  24860. "$ref": "#/components/schemas/Location.Ref"
  24861. },
  24862. "data": {
  24863. "type": "object",
  24864. "properties": {
  24865. "id": {
  24866. "type": "string",
  24867. "allOf": [
  24868. {
  24869. "pattern": "^frm_"
  24870. }
  24871. ]
  24872. },
  24873. "sessionID": {
  24874. "type": "string"
  24875. }
  24876. },
  24877. "required": [
  24878. "id",
  24879. "sessionID"
  24880. ],
  24881. "additionalProperties": false
  24882. }
  24883. },
  24884. "required": [
  24885. "id",
  24886. "created",
  24887. "type",
  24888. "data"
  24889. ],
  24890. "additionalProperties": false
  24891. },
  24892. "SessionStatus": {
  24893. "anyOf": [
  24894. {
  24895. "type": "object",
  24896. "properties": {
  24897. "type": {
  24898. "type": "string",
  24899. "enum": [
  24900. "idle"
  24901. ]
  24902. }
  24903. },
  24904. "required": [
  24905. "type"
  24906. ],
  24907. "additionalProperties": false
  24908. },
  24909. {
  24910. "type": "object",
  24911. "properties": {
  24912. "type": {
  24913. "type": "string",
  24914. "enum": [
  24915. "retry"
  24916. ]
  24917. },
  24918. "attempt": {
  24919. "type": "integer",
  24920. "allOf": [
  24921. {
  24922. "minimum": 0
  24923. }
  24924. ]
  24925. },
  24926. "message": {
  24927. "type": "string"
  24928. },
  24929. "action": {
  24930. "type": "object",
  24931. "properties": {
  24932. "reason": {
  24933. "type": "string"
  24934. },
  24935. "provider": {
  24936. "type": "string"
  24937. },
  24938. "title": {
  24939. "type": "string"
  24940. },
  24941. "message": {
  24942. "type": "string"
  24943. },
  24944. "label": {
  24945. "type": "string"
  24946. },
  24947. "link": {
  24948. "type": "string"
  24949. }
  24950. },
  24951. "required": [
  24952. "reason",
  24953. "provider",
  24954. "title",
  24955. "message",
  24956. "label"
  24957. ],
  24958. "additionalProperties": false
  24959. },
  24960. "next": {
  24961. "type": "integer",
  24962. "allOf": [
  24963. {
  24964. "minimum": 0
  24965. }
  24966. ]
  24967. }
  24968. },
  24969. "required": [
  24970. "type",
  24971. "attempt",
  24972. "message",
  24973. "next"
  24974. ],
  24975. "additionalProperties": false
  24976. },
  24977. {
  24978. "type": "object",
  24979. "properties": {
  24980. "type": {
  24981. "type": "string",
  24982. "enum": [
  24983. "busy"
  24984. ]
  24985. }
  24986. },
  24987. "required": [
  24988. "type"
  24989. ],
  24990. "additionalProperties": false
  24991. }
  24992. ]
  24993. },
  24994. "session.status": {
  24995. "type": "object",
  24996. "properties": {
  24997. "id": {
  24998. "type": "string",
  24999. "allOf": [
  25000. {
  25001. "pattern": "^evt_"
  25002. }
  25003. ]
  25004. },
  25005. "created": {
  25006. "type": "number"
  25007. },
  25008. "metadata": {
  25009. "type": "object"
  25010. },
  25011. "type": {
  25012. "type": "string",
  25013. "enum": [
  25014. "session.status"
  25015. ]
  25016. },
  25017. "location": {
  25018. "$ref": "#/components/schemas/Location.Ref"
  25019. },
  25020. "data": {
  25021. "type": "object",
  25022. "properties": {
  25023. "sessionID": {
  25024. "type": "string",
  25025. "allOf": [
  25026. {
  25027. "pattern": "^ses"
  25028. }
  25029. ]
  25030. },
  25031. "status": {
  25032. "$ref": "#/components/schemas/SessionStatus"
  25033. }
  25034. },
  25035. "required": [
  25036. "sessionID",
  25037. "status"
  25038. ],
  25039. "additionalProperties": false
  25040. }
  25041. },
  25042. "required": [
  25043. "id",
  25044. "created",
  25045. "type",
  25046. "data"
  25047. ],
  25048. "additionalProperties": false
  25049. },
  25050. "session.idle": {
  25051. "type": "object",
  25052. "properties": {
  25053. "id": {
  25054. "type": "string",
  25055. "allOf": [
  25056. {
  25057. "pattern": "^evt_"
  25058. }
  25059. ]
  25060. },
  25061. "created": {
  25062. "type": "number"
  25063. },
  25064. "metadata": {
  25065. "type": "object"
  25066. },
  25067. "type": {
  25068. "type": "string",
  25069. "enum": [
  25070. "session.idle"
  25071. ]
  25072. },
  25073. "location": {
  25074. "$ref": "#/components/schemas/Location.Ref"
  25075. },
  25076. "data": {
  25077. "type": "object",
  25078. "properties": {
  25079. "sessionID": {
  25080. "type": "string",
  25081. "allOf": [
  25082. {
  25083. "pattern": "^ses"
  25084. }
  25085. ]
  25086. }
  25087. },
  25088. "required": [
  25089. "sessionID"
  25090. ],
  25091. "additionalProperties": false
  25092. }
  25093. },
  25094. "required": [
  25095. "id",
  25096. "created",
  25097. "type",
  25098. "data"
  25099. ],
  25100. "additionalProperties": false
  25101. },
  25102. "tui.prompt.append": {
  25103. "type": "object",
  25104. "properties": {
  25105. "id": {
  25106. "type": "string",
  25107. "allOf": [
  25108. {
  25109. "pattern": "^evt_"
  25110. }
  25111. ]
  25112. },
  25113. "created": {
  25114. "type": "number"
  25115. },
  25116. "metadata": {
  25117. "type": "object"
  25118. },
  25119. "type": {
  25120. "type": "string",
  25121. "enum": [
  25122. "tui.prompt.append"
  25123. ]
  25124. },
  25125. "location": {
  25126. "$ref": "#/components/schemas/Location.Ref"
  25127. },
  25128. "data": {
  25129. "type": "object",
  25130. "properties": {
  25131. "text": {
  25132. "type": "string"
  25133. }
  25134. },
  25135. "required": [
  25136. "text"
  25137. ],
  25138. "additionalProperties": false
  25139. }
  25140. },
  25141. "required": [
  25142. "id",
  25143. "created",
  25144. "type",
  25145. "data"
  25146. ],
  25147. "additionalProperties": false
  25148. },
  25149. "tui.command.execute": {
  25150. "type": "object",
  25151. "properties": {
  25152. "id": {
  25153. "type": "string",
  25154. "allOf": [
  25155. {
  25156. "pattern": "^evt_"
  25157. }
  25158. ]
  25159. },
  25160. "created": {
  25161. "type": "number"
  25162. },
  25163. "metadata": {
  25164. "type": "object"
  25165. },
  25166. "type": {
  25167. "type": "string",
  25168. "enum": [
  25169. "tui.command.execute"
  25170. ]
  25171. },
  25172. "location": {
  25173. "$ref": "#/components/schemas/Location.Ref"
  25174. },
  25175. "data": {
  25176. "type": "object",
  25177. "properties": {
  25178. "command": {
  25179. "anyOf": [
  25180. {
  25181. "type": "string",
  25182. "enum": [
  25183. "session.list",
  25184. "session.new",
  25185. "session.share",
  25186. "session.interrupt",
  25187. "session.background",
  25188. "session.compact",
  25189. "session.page.up",
  25190. "session.page.down",
  25191. "session.line.up",
  25192. "session.line.down",
  25193. "session.half.page.up",
  25194. "session.half.page.down",
  25195. "session.first",
  25196. "session.last",
  25197. "prompt.clear",
  25198. "prompt.submit",
  25199. "agent.cycle"
  25200. ]
  25201. },
  25202. {
  25203. "type": "string"
  25204. }
  25205. ]
  25206. }
  25207. },
  25208. "required": [
  25209. "command"
  25210. ],
  25211. "additionalProperties": false
  25212. }
  25213. },
  25214. "required": [
  25215. "id",
  25216. "created",
  25217. "type",
  25218. "data"
  25219. ],
  25220. "additionalProperties": false
  25221. },
  25222. "tui.toast.show": {
  25223. "type": "object",
  25224. "properties": {
  25225. "id": {
  25226. "type": "string",
  25227. "allOf": [
  25228. {
  25229. "pattern": "^evt_"
  25230. }
  25231. ]
  25232. },
  25233. "created": {
  25234. "type": "number"
  25235. },
  25236. "metadata": {
  25237. "type": "object"
  25238. },
  25239. "type": {
  25240. "type": "string",
  25241. "enum": [
  25242. "tui.toast.show"
  25243. ]
  25244. },
  25245. "location": {
  25246. "$ref": "#/components/schemas/Location.Ref"
  25247. },
  25248. "data": {
  25249. "type": "object",
  25250. "properties": {
  25251. "title": {
  25252. "type": "string"
  25253. },
  25254. "message": {
  25255. "type": "string"
  25256. },
  25257. "variant": {
  25258. "type": "string",
  25259. "enum": [
  25260. "info",
  25261. "success",
  25262. "warning",
  25263. "error"
  25264. ]
  25265. },
  25266. "duration": {
  25267. "anyOf": [
  25268. {
  25269. "type": "integer",
  25270. "allOf": [
  25271. {
  25272. "exclusiveMinimum": 0
  25273. }
  25274. ]
  25275. },
  25276. {
  25277. "type": "null"
  25278. }
  25279. ]
  25280. }
  25281. },
  25282. "required": [
  25283. "message",
  25284. "variant"
  25285. ],
  25286. "additionalProperties": false
  25287. }
  25288. },
  25289. "required": [
  25290. "id",
  25291. "created",
  25292. "type",
  25293. "data"
  25294. ],
  25295. "additionalProperties": false
  25296. },
  25297. "tui.session.select": {
  25298. "type": "object",
  25299. "properties": {
  25300. "id": {
  25301. "type": "string",
  25302. "allOf": [
  25303. {
  25304. "pattern": "^evt_"
  25305. }
  25306. ]
  25307. },
  25308. "created": {
  25309. "type": "number"
  25310. },
  25311. "metadata": {
  25312. "type": "object"
  25313. },
  25314. "type": {
  25315. "type": "string",
  25316. "enum": [
  25317. "tui.session.select"
  25318. ]
  25319. },
  25320. "location": {
  25321. "$ref": "#/components/schemas/Location.Ref"
  25322. },
  25323. "data": {
  25324. "type": "object",
  25325. "properties": {
  25326. "sessionID": {
  25327. "type": "string",
  25328. "allOf": [
  25329. {
  25330. "pattern": "^ses",
  25331. "description": "Session ID to navigate to"
  25332. }
  25333. ]
  25334. }
  25335. },
  25336. "required": [
  25337. "sessionID"
  25338. ],
  25339. "additionalProperties": false
  25340. }
  25341. },
  25342. "required": [
  25343. "id",
  25344. "created",
  25345. "type",
  25346. "data"
  25347. ],
  25348. "additionalProperties": false
  25349. },
  25350. "installation.updated": {
  25351. "type": "object",
  25352. "properties": {
  25353. "id": {
  25354. "type": "string",
  25355. "allOf": [
  25356. {
  25357. "pattern": "^evt_"
  25358. }
  25359. ]
  25360. },
  25361. "created": {
  25362. "type": "number"
  25363. },
  25364. "metadata": {
  25365. "type": "object"
  25366. },
  25367. "type": {
  25368. "type": "string",
  25369. "enum": [
  25370. "installation.updated"
  25371. ]
  25372. },
  25373. "location": {
  25374. "$ref": "#/components/schemas/Location.Ref"
  25375. },
  25376. "data": {
  25377. "type": "object",
  25378. "properties": {
  25379. "version": {
  25380. "type": "string"
  25381. }
  25382. },
  25383. "required": [
  25384. "version"
  25385. ],
  25386. "additionalProperties": false
  25387. }
  25388. },
  25389. "required": [
  25390. "id",
  25391. "created",
  25392. "type",
  25393. "data"
  25394. ],
  25395. "additionalProperties": false
  25396. },
  25397. "installation.update-available": {
  25398. "type": "object",
  25399. "properties": {
  25400. "id": {
  25401. "type": "string",
  25402. "allOf": [
  25403. {
  25404. "pattern": "^evt_"
  25405. }
  25406. ]
  25407. },
  25408. "created": {
  25409. "type": "number"
  25410. },
  25411. "metadata": {
  25412. "type": "object"
  25413. },
  25414. "type": {
  25415. "type": "string",
  25416. "enum": [
  25417. "installation.update-available"
  25418. ]
  25419. },
  25420. "location": {
  25421. "$ref": "#/components/schemas/Location.Ref"
  25422. },
  25423. "data": {
  25424. "type": "object",
  25425. "properties": {
  25426. "version": {
  25427. "type": "string"
  25428. }
  25429. },
  25430. "required": [
  25431. "version"
  25432. ],
  25433. "additionalProperties": false
  25434. }
  25435. },
  25436. "required": [
  25437. "id",
  25438. "created",
  25439. "type",
  25440. "data"
  25441. ],
  25442. "additionalProperties": false
  25443. },
  25444. "vcs.branch.updated": {
  25445. "type": "object",
  25446. "properties": {
  25447. "id": {
  25448. "type": "string",
  25449. "allOf": [
  25450. {
  25451. "pattern": "^evt_"
  25452. }
  25453. ]
  25454. },
  25455. "created": {
  25456. "type": "number"
  25457. },
  25458. "metadata": {
  25459. "type": "object"
  25460. },
  25461. "type": {
  25462. "type": "string",
  25463. "enum": [
  25464. "vcs.branch.updated"
  25465. ]
  25466. },
  25467. "location": {
  25468. "$ref": "#/components/schemas/Location.Ref"
  25469. },
  25470. "data": {
  25471. "type": "object",
  25472. "properties": {
  25473. "branch": {
  25474. "type": "string"
  25475. }
  25476. },
  25477. "additionalProperties": false
  25478. }
  25479. },
  25480. "required": [
  25481. "id",
  25482. "created",
  25483. "type",
  25484. "data"
  25485. ],
  25486. "additionalProperties": false
  25487. },
  25488. "mcp.status.changed": {
  25489. "type": "object",
  25490. "properties": {
  25491. "id": {
  25492. "type": "string",
  25493. "allOf": [
  25494. {
  25495. "pattern": "^evt_"
  25496. }
  25497. ]
  25498. },
  25499. "created": {
  25500. "type": "number"
  25501. },
  25502. "metadata": {
  25503. "type": "object"
  25504. },
  25505. "type": {
  25506. "type": "string",
  25507. "enum": [
  25508. "mcp.status.changed"
  25509. ]
  25510. },
  25511. "location": {
  25512. "$ref": "#/components/schemas/Location.Ref"
  25513. },
  25514. "data": {
  25515. "type": "object",
  25516. "properties": {
  25517. "server": {
  25518. "type": "string"
  25519. }
  25520. },
  25521. "required": [
  25522. "server"
  25523. ],
  25524. "additionalProperties": false
  25525. }
  25526. },
  25527. "required": [
  25528. "id",
  25529. "created",
  25530. "type",
  25531. "data"
  25532. ],
  25533. "additionalProperties": false
  25534. },
  25535. "mcp.resources.changed": {
  25536. "type": "object",
  25537. "properties": {
  25538. "id": {
  25539. "type": "string",
  25540. "allOf": [
  25541. {
  25542. "pattern": "^evt_"
  25543. }
  25544. ]
  25545. },
  25546. "created": {
  25547. "type": "number"
  25548. },
  25549. "metadata": {
  25550. "type": "object"
  25551. },
  25552. "type": {
  25553. "type": "string",
  25554. "enum": [
  25555. "mcp.resources.changed"
  25556. ]
  25557. },
  25558. "location": {
  25559. "$ref": "#/components/schemas/Location.Ref"
  25560. },
  25561. "data": {
  25562. "type": "object",
  25563. "properties": {
  25564. "server": {
  25565. "type": "string"
  25566. }
  25567. },
  25568. "required": [
  25569. "server"
  25570. ],
  25571. "additionalProperties": false
  25572. }
  25573. },
  25574. "required": [
  25575. "id",
  25576. "created",
  25577. "type",
  25578. "data"
  25579. ],
  25580. "additionalProperties": false
  25581. },
  25582. "permission.asked": {
  25583. "type": "object",
  25584. "properties": {
  25585. "id": {
  25586. "type": "string",
  25587. "allOf": [
  25588. {
  25589. "pattern": "^evt_"
  25590. }
  25591. ]
  25592. },
  25593. "created": {
  25594. "type": "number"
  25595. },
  25596. "metadata": {
  25597. "type": "object"
  25598. },
  25599. "type": {
  25600. "type": "string",
  25601. "enum": [
  25602. "permission.asked"
  25603. ]
  25604. },
  25605. "location": {
  25606. "$ref": "#/components/schemas/Location.Ref"
  25607. },
  25608. "data": {
  25609. "type": "object",
  25610. "properties": {
  25611. "id": {
  25612. "type": "string",
  25613. "allOf": [
  25614. {
  25615. "pattern": "^per"
  25616. }
  25617. ]
  25618. },
  25619. "sessionID": {
  25620. "type": "string",
  25621. "allOf": [
  25622. {
  25623. "pattern": "^ses"
  25624. }
  25625. ]
  25626. },
  25627. "permission": {
  25628. "type": "string"
  25629. },
  25630. "patterns": {
  25631. "type": "array",
  25632. "items": {
  25633. "type": "string"
  25634. }
  25635. },
  25636. "metadata": {
  25637. "type": "object"
  25638. },
  25639. "always": {
  25640. "type": "array",
  25641. "items": {
  25642. "type": "string"
  25643. }
  25644. },
  25645. "tool": {
  25646. "anyOf": [
  25647. {
  25648. "type": "object",
  25649. "properties": {
  25650. "messageID": {
  25651. "type": "string"
  25652. },
  25653. "callID": {
  25654. "type": "string"
  25655. }
  25656. },
  25657. "required": [
  25658. "messageID",
  25659. "callID"
  25660. ],
  25661. "additionalProperties": false
  25662. },
  25663. {
  25664. "type": "null"
  25665. }
  25666. ]
  25667. }
  25668. },
  25669. "required": [
  25670. "id",
  25671. "sessionID",
  25672. "permission",
  25673. "patterns",
  25674. "metadata",
  25675. "always"
  25676. ],
  25677. "additionalProperties": false
  25678. }
  25679. },
  25680. "required": [
  25681. "id",
  25682. "created",
  25683. "type",
  25684. "data"
  25685. ],
  25686. "additionalProperties": false
  25687. },
  25688. "permission.replied": {
  25689. "type": "object",
  25690. "properties": {
  25691. "id": {
  25692. "type": "string",
  25693. "allOf": [
  25694. {
  25695. "pattern": "^evt_"
  25696. }
  25697. ]
  25698. },
  25699. "created": {
  25700. "type": "number"
  25701. },
  25702. "metadata": {
  25703. "type": "object"
  25704. },
  25705. "type": {
  25706. "type": "string",
  25707. "enum": [
  25708. "permission.replied"
  25709. ]
  25710. },
  25711. "location": {
  25712. "$ref": "#/components/schemas/Location.Ref"
  25713. },
  25714. "data": {
  25715. "type": "object",
  25716. "properties": {
  25717. "sessionID": {
  25718. "type": "string",
  25719. "allOf": [
  25720. {
  25721. "pattern": "^ses"
  25722. }
  25723. ]
  25724. },
  25725. "requestID": {
  25726. "type": "string",
  25727. "allOf": [
  25728. {
  25729. "pattern": "^per"
  25730. }
  25731. ]
  25732. },
  25733. "reply": {
  25734. "type": "string",
  25735. "enum": [
  25736. "once",
  25737. "always",
  25738. "reject"
  25739. ]
  25740. }
  25741. },
  25742. "required": [
  25743. "sessionID",
  25744. "requestID",
  25745. "reply"
  25746. ],
  25747. "additionalProperties": false
  25748. }
  25749. },
  25750. "required": [
  25751. "id",
  25752. "created",
  25753. "type",
  25754. "data"
  25755. ],
  25756. "additionalProperties": false
  25757. },
  25758. "QuestionOption": {
  25759. "type": "object",
  25760. "properties": {
  25761. "label": {
  25762. "type": "string",
  25763. "description": "Display text (1-5 words, concise)"
  25764. },
  25765. "description": {
  25766. "type": "string",
  25767. "description": "Explanation of choice"
  25768. }
  25769. },
  25770. "required": [
  25771. "label",
  25772. "description"
  25773. ],
  25774. "additionalProperties": false
  25775. },
  25776. "QuestionInfo": {
  25777. "type": "object",
  25778. "properties": {
  25779. "question": {
  25780. "type": "string",
  25781. "description": "Complete question"
  25782. },
  25783. "header": {
  25784. "type": "string",
  25785. "description": "Very short label (max 30 chars)"
  25786. },
  25787. "options": {
  25788. "type": "array",
  25789. "items": {
  25790. "$ref": "#/components/schemas/QuestionOption"
  25791. },
  25792. "description": "Available choices"
  25793. },
  25794. "multiple": {
  25795. "anyOf": [
  25796. {
  25797. "type": "boolean"
  25798. },
  25799. {
  25800. "type": "null"
  25801. }
  25802. ],
  25803. "description": "Allow selecting multiple choices"
  25804. },
  25805. "custom": {
  25806. "anyOf": [
  25807. {
  25808. "type": "boolean"
  25809. },
  25810. {
  25811. "type": "null"
  25812. }
  25813. ],
  25814. "description": "Allow typing a custom answer (default: true)"
  25815. }
  25816. },
  25817. "required": [
  25818. "question",
  25819. "header",
  25820. "options"
  25821. ],
  25822. "additionalProperties": false
  25823. },
  25824. "QuestionTool": {
  25825. "type": "object",
  25826. "properties": {
  25827. "messageID": {
  25828. "type": "string",
  25829. "allOf": [
  25830. {
  25831. "pattern": "^msg"
  25832. }
  25833. ]
  25834. },
  25835. "callID": {
  25836. "type": "string"
  25837. }
  25838. },
  25839. "required": [
  25840. "messageID",
  25841. "callID"
  25842. ],
  25843. "additionalProperties": false
  25844. },
  25845. "question.asked": {
  25846. "type": "object",
  25847. "properties": {
  25848. "id": {
  25849. "type": "string",
  25850. "allOf": [
  25851. {
  25852. "pattern": "^evt_"
  25853. }
  25854. ]
  25855. },
  25856. "created": {
  25857. "type": "number"
  25858. },
  25859. "metadata": {
  25860. "type": "object"
  25861. },
  25862. "type": {
  25863. "type": "string",
  25864. "enum": [
  25865. "question.asked"
  25866. ]
  25867. },
  25868. "location": {
  25869. "$ref": "#/components/schemas/Location.Ref"
  25870. },
  25871. "data": {
  25872. "type": "object",
  25873. "properties": {
  25874. "id": {
  25875. "type": "string",
  25876. "allOf": [
  25877. {
  25878. "pattern": "^que"
  25879. }
  25880. ]
  25881. },
  25882. "sessionID": {
  25883. "type": "string",
  25884. "allOf": [
  25885. {
  25886. "pattern": "^ses"
  25887. }
  25888. ]
  25889. },
  25890. "questions": {
  25891. "type": "array",
  25892. "items": {
  25893. "$ref": "#/components/schemas/QuestionInfo"
  25894. },
  25895. "description": "Questions to ask"
  25896. },
  25897. "tool": {
  25898. "anyOf": [
  25899. {
  25900. "$ref": "#/components/schemas/QuestionTool"
  25901. },
  25902. {
  25903. "type": "null"
  25904. }
  25905. ]
  25906. }
  25907. },
  25908. "required": [
  25909. "id",
  25910. "sessionID",
  25911. "questions"
  25912. ],
  25913. "additionalProperties": false
  25914. }
  25915. },
  25916. "required": [
  25917. "id",
  25918. "created",
  25919. "type",
  25920. "data"
  25921. ],
  25922. "additionalProperties": false
  25923. },
  25924. "QuestionAnswer": {
  25925. "type": "array",
  25926. "items": {
  25927. "type": "string"
  25928. }
  25929. },
  25930. "question.replied": {
  25931. "type": "object",
  25932. "properties": {
  25933. "id": {
  25934. "type": "string",
  25935. "allOf": [
  25936. {
  25937. "pattern": "^evt_"
  25938. }
  25939. ]
  25940. },
  25941. "created": {
  25942. "type": "number"
  25943. },
  25944. "metadata": {
  25945. "type": "object"
  25946. },
  25947. "type": {
  25948. "type": "string",
  25949. "enum": [
  25950. "question.replied"
  25951. ]
  25952. },
  25953. "location": {
  25954. "$ref": "#/components/schemas/Location.Ref"
  25955. },
  25956. "data": {
  25957. "type": "object",
  25958. "properties": {
  25959. "sessionID": {
  25960. "type": "string",
  25961. "allOf": [
  25962. {
  25963. "pattern": "^ses"
  25964. }
  25965. ]
  25966. },
  25967. "requestID": {
  25968. "type": "string",
  25969. "allOf": [
  25970. {
  25971. "pattern": "^que"
  25972. }
  25973. ]
  25974. },
  25975. "answers": {
  25976. "type": "array",
  25977. "items": {
  25978. "$ref": "#/components/schemas/QuestionAnswer"
  25979. }
  25980. }
  25981. },
  25982. "required": [
  25983. "sessionID",
  25984. "requestID",
  25985. "answers"
  25986. ],
  25987. "additionalProperties": false
  25988. }
  25989. },
  25990. "required": [
  25991. "id",
  25992. "created",
  25993. "type",
  25994. "data"
  25995. ],
  25996. "additionalProperties": false
  25997. },
  25998. "question.rejected": {
  25999. "type": "object",
  26000. "properties": {
  26001. "id": {
  26002. "type": "string",
  26003. "allOf": [
  26004. {
  26005. "pattern": "^evt_"
  26006. }
  26007. ]
  26008. },
  26009. "created": {
  26010. "type": "number"
  26011. },
  26012. "metadata": {
  26013. "type": "object"
  26014. },
  26015. "type": {
  26016. "type": "string",
  26017. "enum": [
  26018. "question.rejected"
  26019. ]
  26020. },
  26021. "location": {
  26022. "$ref": "#/components/schemas/Location.Ref"
  26023. },
  26024. "data": {
  26025. "type": "object",
  26026. "properties": {
  26027. "sessionID": {
  26028. "type": "string",
  26029. "allOf": [
  26030. {
  26031. "pattern": "^ses"
  26032. }
  26033. ]
  26034. },
  26035. "requestID": {
  26036. "type": "string",
  26037. "allOf": [
  26038. {
  26039. "pattern": "^que"
  26040. }
  26041. ]
  26042. }
  26043. },
  26044. "required": [
  26045. "sessionID",
  26046. "requestID"
  26047. ],
  26048. "additionalProperties": false
  26049. }
  26050. },
  26051. "required": [
  26052. "id",
  26053. "created",
  26054. "type",
  26055. "data"
  26056. ],
  26057. "additionalProperties": false
  26058. },
  26059. "session.error": {
  26060. "type": "object",
  26061. "properties": {
  26062. "id": {
  26063. "type": "string",
  26064. "allOf": [
  26065. {
  26066. "pattern": "^evt_"
  26067. }
  26068. ]
  26069. },
  26070. "created": {
  26071. "type": "number"
  26072. },
  26073. "metadata": {
  26074. "type": "object"
  26075. },
  26076. "type": {
  26077. "type": "string",
  26078. "enum": [
  26079. "session.error"
  26080. ]
  26081. },
  26082. "location": {
  26083. "$ref": "#/components/schemas/Location.Ref"
  26084. },
  26085. "data": {
  26086. "type": "object",
  26087. "properties": {
  26088. "sessionID": {
  26089. "anyOf": [
  26090. {
  26091. "type": "string",
  26092. "allOf": [
  26093. {
  26094. "pattern": "^ses"
  26095. }
  26096. ]
  26097. },
  26098. {
  26099. "type": "null"
  26100. }
  26101. ]
  26102. },
  26103. "error": {
  26104. "anyOf": [
  26105. {
  26106. "anyOf": [
  26107. {
  26108. "$ref": "#/components/schemas/ProviderAuthError"
  26109. },
  26110. {
  26111. "$ref": "#/components/schemas/UnknownError1"
  26112. },
  26113. {
  26114. "$ref": "#/components/schemas/MessageOutputLengthError"
  26115. },
  26116. {
  26117. "$ref": "#/components/schemas/MessageAbortedError"
  26118. },
  26119. {
  26120. "$ref": "#/components/schemas/StructuredOutputError"
  26121. },
  26122. {
  26123. "$ref": "#/components/schemas/ContextOverflowError"
  26124. },
  26125. {
  26126. "$ref": "#/components/schemas/ContentFilterError"
  26127. },
  26128. {
  26129. "$ref": "#/components/schemas/APIError"
  26130. }
  26131. ]
  26132. },
  26133. {
  26134. "type": "null"
  26135. }
  26136. ]
  26137. }
  26138. },
  26139. "additionalProperties": false
  26140. }
  26141. },
  26142. "required": [
  26143. "id",
  26144. "created",
  26145. "type",
  26146. "data"
  26147. ],
  26148. "additionalProperties": false
  26149. },
  26150. "V2Event.server.connected": {
  26151. "type": "object",
  26152. "properties": {
  26153. "id": {
  26154. "type": "string",
  26155. "allOf": [
  26156. {
  26157. "pattern": "^evt_"
  26158. }
  26159. ]
  26160. },
  26161. "metadata": {
  26162. "anyOf": [
  26163. {
  26164. "type": "object"
  26165. },
  26166. {
  26167. "type": "null"
  26168. }
  26169. ]
  26170. },
  26171. "location": {
  26172. "anyOf": [
  26173. {
  26174. "$ref": "#/components/schemas/Location.Ref"
  26175. },
  26176. {
  26177. "type": "null"
  26178. }
  26179. ]
  26180. },
  26181. "type": {
  26182. "type": "string",
  26183. "enum": [
  26184. "server.connected"
  26185. ]
  26186. },
  26187. "data": {
  26188. "anyOf": [
  26189. {
  26190. "type": "object"
  26191. },
  26192. {
  26193. "type": "array"
  26194. }
  26195. ]
  26196. }
  26197. },
  26198. "required": [
  26199. "id",
  26200. "type",
  26201. "data"
  26202. ],
  26203. "additionalProperties": false
  26204. },
  26205. "V2Event": {
  26206. "anyOf": [
  26207. {
  26208. "$ref": "#/components/schemas/models-dev.refreshed"
  26209. },
  26210. {
  26211. "$ref": "#/components/schemas/integration.updated"
  26212. },
  26213. {
  26214. "$ref": "#/components/schemas/integration.connection.updated"
  26215. },
  26216. {
  26217. "$ref": "#/components/schemas/catalog.updated"
  26218. },
  26219. {
  26220. "$ref": "#/components/schemas/agent.updated"
  26221. },
  26222. {
  26223. "$ref": "#/components/schemas/session.created"
  26224. },
  26225. {
  26226. "$ref": "#/components/schemas/session.updated"
  26227. },
  26228. {
  26229. "$ref": "#/components/schemas/session.deleted1"
  26230. },
  26231. {
  26232. "$ref": "#/components/schemas/message.updated"
  26233. },
  26234. {
  26235. "$ref": "#/components/schemas/message.removed"
  26236. },
  26237. {
  26238. "$ref": "#/components/schemas/message.part.updated"
  26239. },
  26240. {
  26241. "$ref": "#/components/schemas/message.part.removed"
  26242. },
  26243. {
  26244. "$ref": "#/components/schemas/session.agent.selected"
  26245. },
  26246. {
  26247. "$ref": "#/components/schemas/session.model.selected"
  26248. },
  26249. {
  26250. "$ref": "#/components/schemas/session.moved"
  26251. },
  26252. {
  26253. "$ref": "#/components/schemas/session.renamed"
  26254. },
  26255. {
  26256. "$ref": "#/components/schemas/session.usage.updated"
  26257. },
  26258. {
  26259. "$ref": "#/components/schemas/session.deleted"
  26260. },
  26261. {
  26262. "$ref": "#/components/schemas/session.forked"
  26263. },
  26264. {
  26265. "$ref": "#/components/schemas/session.prompt.promoted"
  26266. },
  26267. {
  26268. "$ref": "#/components/schemas/session.prompt.admitted"
  26269. },
  26270. {
  26271. "$ref": "#/components/schemas/session.execution.started"
  26272. },
  26273. {
  26274. "$ref": "#/components/schemas/session.execution.succeeded"
  26275. },
  26276. {
  26277. "$ref": "#/components/schemas/session.execution.failed"
  26278. },
  26279. {
  26280. "$ref": "#/components/schemas/session.execution.interrupted"
  26281. },
  26282. {
  26283. "$ref": "#/components/schemas/session.instructions.updated"
  26284. },
  26285. {
  26286. "$ref": "#/components/schemas/session.synthetic"
  26287. },
  26288. {
  26289. "$ref": "#/components/schemas/session.skill.activated"
  26290. },
  26291. {
  26292. "$ref": "#/components/schemas/session.shell.started"
  26293. },
  26294. {
  26295. "$ref": "#/components/schemas/session.shell.ended"
  26296. },
  26297. {
  26298. "$ref": "#/components/schemas/session.step.started"
  26299. },
  26300. {
  26301. "$ref": "#/components/schemas/session.step.ended"
  26302. },
  26303. {
  26304. "$ref": "#/components/schemas/session.step.failed"
  26305. },
  26306. {
  26307. "$ref": "#/components/schemas/session.text.started"
  26308. },
  26309. {
  26310. "$ref": "#/components/schemas/session.text.delta"
  26311. },
  26312. {
  26313. "$ref": "#/components/schemas/session.text.ended"
  26314. },
  26315. {
  26316. "$ref": "#/components/schemas/session.reasoning.started"
  26317. },
  26318. {
  26319. "$ref": "#/components/schemas/session.reasoning.delta"
  26320. },
  26321. {
  26322. "$ref": "#/components/schemas/session.reasoning.ended"
  26323. },
  26324. {
  26325. "$ref": "#/components/schemas/session.tool.input.started"
  26326. },
  26327. {
  26328. "$ref": "#/components/schemas/session.tool.input.delta"
  26329. },
  26330. {
  26331. "$ref": "#/components/schemas/session.tool.input.ended"
  26332. },
  26333. {
  26334. "$ref": "#/components/schemas/session.tool.called"
  26335. },
  26336. {
  26337. "$ref": "#/components/schemas/session.tool.progress"
  26338. },
  26339. {
  26340. "$ref": "#/components/schemas/session.tool.success"
  26341. },
  26342. {
  26343. "$ref": "#/components/schemas/session.tool.failed"
  26344. },
  26345. {
  26346. "$ref": "#/components/schemas/session.retry.scheduled"
  26347. },
  26348. {
  26349. "$ref": "#/components/schemas/session.compaction.admitted"
  26350. },
  26351. {
  26352. "$ref": "#/components/schemas/session.compaction.started"
  26353. },
  26354. {
  26355. "$ref": "#/components/schemas/session.compaction.delta"
  26356. },
  26357. {
  26358. "$ref": "#/components/schemas/session.compaction.ended"
  26359. },
  26360. {
  26361. "$ref": "#/components/schemas/session.compaction.failed"
  26362. },
  26363. {
  26364. "$ref": "#/components/schemas/session.revert.staged"
  26365. },
  26366. {
  26367. "$ref": "#/components/schemas/session.revert.cleared"
  26368. },
  26369. {
  26370. "$ref": "#/components/schemas/session.revert.committed"
  26371. },
  26372. {
  26373. "$ref": "#/components/schemas/filesystem.changed"
  26374. },
  26375. {
  26376. "$ref": "#/components/schemas/reference.updated"
  26377. },
  26378. {
  26379. "$ref": "#/components/schemas/permission.v2.asked"
  26380. },
  26381. {
  26382. "$ref": "#/components/schemas/permission.v2.replied"
  26383. },
  26384. {
  26385. "$ref": "#/components/schemas/plugin.added"
  26386. },
  26387. {
  26388. "$ref": "#/components/schemas/plugin.updated"
  26389. },
  26390. {
  26391. "$ref": "#/components/schemas/project.directories.updated"
  26392. },
  26393. {
  26394. "$ref": "#/components/schemas/command.updated"
  26395. },
  26396. {
  26397. "$ref": "#/components/schemas/config.updated"
  26398. },
  26399. {
  26400. "$ref": "#/components/schemas/skill.updated"
  26401. },
  26402. {
  26403. "$ref": "#/components/schemas/pty.created"
  26404. },
  26405. {
  26406. "$ref": "#/components/schemas/pty.updated"
  26407. },
  26408. {
  26409. "$ref": "#/components/schemas/pty.exited"
  26410. },
  26411. {
  26412. "$ref": "#/components/schemas/pty.deleted"
  26413. },
  26414. {
  26415. "$ref": "#/components/schemas/shell.created"
  26416. },
  26417. {
  26418. "$ref": "#/components/schemas/shell.exited"
  26419. },
  26420. {
  26421. "$ref": "#/components/schemas/shell.deleted"
  26422. },
  26423. {
  26424. "$ref": "#/components/schemas/question.v2.asked"
  26425. },
  26426. {
  26427. "$ref": "#/components/schemas/question.v2.replied"
  26428. },
  26429. {
  26430. "$ref": "#/components/schemas/question.v2.rejected"
  26431. },
  26432. {
  26433. "$ref": "#/components/schemas/form.created"
  26434. },
  26435. {
  26436. "$ref": "#/components/schemas/form.replied"
  26437. },
  26438. {
  26439. "$ref": "#/components/schemas/form.cancelled"
  26440. },
  26441. {
  26442. "$ref": "#/components/schemas/session.status"
  26443. },
  26444. {
  26445. "$ref": "#/components/schemas/session.idle"
  26446. },
  26447. {
  26448. "$ref": "#/components/schemas/tui.prompt.append"
  26449. },
  26450. {
  26451. "$ref": "#/components/schemas/tui.command.execute"
  26452. },
  26453. {
  26454. "$ref": "#/components/schemas/tui.toast.show"
  26455. },
  26456. {
  26457. "$ref": "#/components/schemas/tui.session.select"
  26458. },
  26459. {
  26460. "$ref": "#/components/schemas/installation.updated"
  26461. },
  26462. {
  26463. "$ref": "#/components/schemas/installation.update-available"
  26464. },
  26465. {
  26466. "$ref": "#/components/schemas/vcs.branch.updated"
  26467. },
  26468. {
  26469. "$ref": "#/components/schemas/mcp.status.changed"
  26470. },
  26471. {
  26472. "$ref": "#/components/schemas/mcp.resources.changed"
  26473. },
  26474. {
  26475. "$ref": "#/components/schemas/permission.asked"
  26476. },
  26477. {
  26478. "$ref": "#/components/schemas/permission.replied"
  26479. },
  26480. {
  26481. "$ref": "#/components/schemas/question.asked"
  26482. },
  26483. {
  26484. "$ref": "#/components/schemas/question.replied"
  26485. },
  26486. {
  26487. "$ref": "#/components/schemas/question.rejected"
  26488. },
  26489. {
  26490. "$ref": "#/components/schemas/session.error"
  26491. },
  26492. {
  26493. "$ref": "#/components/schemas/V2Event.server.connected"
  26494. }
  26495. ]
  26496. },
  26497. "V2EventStream": {
  26498. "type": "string",
  26499. "contentSchema": {
  26500. "$ref": "#/components/schemas/V2Event"
  26501. },
  26502. "contentMediaType": "application/json"
  26503. },
  26504. "PtyNotFoundError": {
  26505. "type": "object",
  26506. "properties": {
  26507. "_tag": {
  26508. "type": "string",
  26509. "enum": [
  26510. "PtyNotFoundError"
  26511. ]
  26512. },
  26513. "ptyID": {
  26514. "type": "string"
  26515. },
  26516. "message": {
  26517. "type": "string"
  26518. }
  26519. },
  26520. "required": [
  26521. "_tag",
  26522. "ptyID",
  26523. "message"
  26524. ],
  26525. "additionalProperties": false
  26526. },
  26527. "PtyTicket.ConnectToken": {
  26528. "type": "object",
  26529. "properties": {
  26530. "ticket": {
  26531. "type": "string"
  26532. },
  26533. "expires_in": {
  26534. "type": "integer",
  26535. "allOf": [
  26536. {
  26537. "exclusiveMinimum": 0
  26538. }
  26539. ]
  26540. }
  26541. },
  26542. "required": [
  26543. "ticket",
  26544. "expires_in"
  26545. ],
  26546. "additionalProperties": false
  26547. },
  26548. "ForbiddenError": {
  26549. "type": "object",
  26550. "properties": {
  26551. "_tag": {
  26552. "type": "string",
  26553. "enum": [
  26554. "ForbiddenError"
  26555. ]
  26556. },
  26557. "message": {
  26558. "type": "string"
  26559. }
  26560. },
  26561. "required": [
  26562. "_tag",
  26563. "message"
  26564. ],
  26565. "additionalProperties": false
  26566. },
  26567. "Shell1": {
  26568. "type": "object",
  26569. "properties": {
  26570. "id": {
  26571. "type": "string",
  26572. "allOf": [
  26573. {
  26574. "pattern": "^sh_"
  26575. }
  26576. ]
  26577. },
  26578. "status": {
  26579. "type": "string",
  26580. "enum": [
  26581. "running",
  26582. "exited",
  26583. "timeout",
  26584. "killed"
  26585. ]
  26586. },
  26587. "command": {
  26588. "type": "string"
  26589. },
  26590. "cwd": {
  26591. "type": "string"
  26592. },
  26593. "shell": {
  26594. "type": "string"
  26595. },
  26596. "file": {
  26597. "type": "string"
  26598. },
  26599. "pid": {
  26600. "type": "integer",
  26601. "allOf": [
  26602. {
  26603. "minimum": 0
  26604. }
  26605. ]
  26606. },
  26607. "exit": {
  26608. "anyOf": [
  26609. {
  26610. "anyOf": [
  26611. {
  26612. "type": "number"
  26613. },
  26614. {
  26615. "type": "string",
  26616. "enum": [
  26617. "NaN"
  26618. ]
  26619. },
  26620. {
  26621. "type": "string",
  26622. "enum": [
  26623. "Infinity"
  26624. ]
  26625. },
  26626. {
  26627. "type": "string",
  26628. "enum": [
  26629. "-Infinity"
  26630. ]
  26631. }
  26632. ]
  26633. },
  26634. {
  26635. "type": "string",
  26636. "enum": [
  26637. "Infinity",
  26638. "-Infinity",
  26639. "NaN"
  26640. ]
  26641. }
  26642. ]
  26643. },
  26644. "metadata": {
  26645. "type": "object"
  26646. },
  26647. "time": {
  26648. "type": "object",
  26649. "properties": {
  26650. "started": {
  26651. "anyOf": [
  26652. {
  26653. "anyOf": [
  26654. {
  26655. "type": "number"
  26656. },
  26657. {
  26658. "type": "string",
  26659. "enum": [
  26660. "NaN"
  26661. ]
  26662. },
  26663. {
  26664. "type": "string",
  26665. "enum": [
  26666. "Infinity"
  26667. ]
  26668. },
  26669. {
  26670. "type": "string",
  26671. "enum": [
  26672. "-Infinity"
  26673. ]
  26674. }
  26675. ]
  26676. },
  26677. {
  26678. "type": "string",
  26679. "enum": [
  26680. "Infinity",
  26681. "-Infinity",
  26682. "NaN"
  26683. ]
  26684. }
  26685. ]
  26686. },
  26687. "completed": {
  26688. "anyOf": [
  26689. {
  26690. "anyOf": [
  26691. {
  26692. "type": "number"
  26693. },
  26694. {
  26695. "type": "string",
  26696. "enum": [
  26697. "NaN"
  26698. ]
  26699. },
  26700. {
  26701. "type": "string",
  26702. "enum": [
  26703. "Infinity"
  26704. ]
  26705. },
  26706. {
  26707. "type": "string",
  26708. "enum": [
  26709. "-Infinity"
  26710. ]
  26711. }
  26712. ]
  26713. },
  26714. {
  26715. "type": "string",
  26716. "enum": [
  26717. "Infinity",
  26718. "-Infinity",
  26719. "NaN"
  26720. ]
  26721. }
  26722. ]
  26723. }
  26724. },
  26725. "required": [
  26726. "started"
  26727. ],
  26728. "additionalProperties": false
  26729. }
  26730. },
  26731. "required": [
  26732. "id",
  26733. "status",
  26734. "command",
  26735. "cwd",
  26736. "shell",
  26737. "file",
  26738. "metadata",
  26739. "time"
  26740. ],
  26741. "additionalProperties": false
  26742. },
  26743. "ShellNotFoundError": {
  26744. "type": "object",
  26745. "properties": {
  26746. "_tag": {
  26747. "type": "string",
  26748. "enum": [
  26749. "ShellNotFoundError"
  26750. ]
  26751. },
  26752. "id": {
  26753. "type": "string"
  26754. },
  26755. "message": {
  26756. "type": "string"
  26757. }
  26758. },
  26759. "required": [
  26760. "_tag",
  26761. "id",
  26762. "message"
  26763. ],
  26764. "additionalProperties": false
  26765. },
  26766. "QuestionV2.Request": {
  26767. "type": "object",
  26768. "properties": {
  26769. "id": {
  26770. "type": "string",
  26771. "allOf": [
  26772. {
  26773. "pattern": "^que"
  26774. }
  26775. ]
  26776. },
  26777. "sessionID": {
  26778. "type": "string",
  26779. "allOf": [
  26780. {
  26781. "pattern": "^ses"
  26782. }
  26783. ]
  26784. },
  26785. "questions": {
  26786. "type": "array",
  26787. "items": {
  26788. "$ref": "#/components/schemas/QuestionV2.Info"
  26789. },
  26790. "description": "Questions to ask"
  26791. },
  26792. "tool": {
  26793. "$ref": "#/components/schemas/QuestionV2.Tool"
  26794. }
  26795. },
  26796. "required": [
  26797. "id",
  26798. "sessionID",
  26799. "questions"
  26800. ],
  26801. "additionalProperties": false
  26802. },
  26803. "QuestionV2.Reply": {
  26804. "type": "object",
  26805. "properties": {
  26806. "answers": {
  26807. "type": "array",
  26808. "items": {
  26809. "$ref": "#/components/schemas/QuestionV2.Answer"
  26810. },
  26811. "description": "User answers in order of questions (each answer is an array of selected labels)"
  26812. }
  26813. },
  26814. "required": [
  26815. "answers"
  26816. ],
  26817. "additionalProperties": false
  26818. },
  26819. "QuestionNotFoundError": {
  26820. "type": "object",
  26821. "properties": {
  26822. "_tag": {
  26823. "type": "string",
  26824. "enum": [
  26825. "QuestionNotFoundError"
  26826. ]
  26827. },
  26828. "requestID": {
  26829. "type": "string"
  26830. },
  26831. "message": {
  26832. "type": "string"
  26833. }
  26834. },
  26835. "required": [
  26836. "_tag",
  26837. "requestID",
  26838. "message"
  26839. ],
  26840. "additionalProperties": false
  26841. },
  26842. "Reference.LocalSource": {
  26843. "type": "object",
  26844. "properties": {
  26845. "type": {
  26846. "type": "string",
  26847. "enum": [
  26848. "local"
  26849. ]
  26850. },
  26851. "path": {
  26852. "type": "string"
  26853. },
  26854. "description": {
  26855. "type": "string"
  26856. },
  26857. "hidden": {
  26858. "type": "boolean"
  26859. }
  26860. },
  26861. "required": [
  26862. "type",
  26863. "path"
  26864. ],
  26865. "additionalProperties": false
  26866. },
  26867. "Reference.GitSource": {
  26868. "type": "object",
  26869. "properties": {
  26870. "type": {
  26871. "type": "string",
  26872. "enum": [
  26873. "git"
  26874. ]
  26875. },
  26876. "repository": {
  26877. "type": "string"
  26878. },
  26879. "branch": {
  26880. "type": "string"
  26881. },
  26882. "description": {
  26883. "type": "string"
  26884. },
  26885. "hidden": {
  26886. "type": "boolean"
  26887. }
  26888. },
  26889. "required": [
  26890. "type",
  26891. "repository"
  26892. ],
  26893. "additionalProperties": false
  26894. },
  26895. "Reference.Source": {
  26896. "anyOf": [
  26897. {
  26898. "$ref": "#/components/schemas/Reference.LocalSource"
  26899. },
  26900. {
  26901. "$ref": "#/components/schemas/Reference.GitSource"
  26902. }
  26903. ]
  26904. },
  26905. "Reference.Info": {
  26906. "type": "object",
  26907. "properties": {
  26908. "name": {
  26909. "type": "string"
  26910. },
  26911. "path": {
  26912. "type": "string"
  26913. },
  26914. "description": {
  26915. "type": "string"
  26916. },
  26917. "hidden": {
  26918. "type": "boolean"
  26919. },
  26920. "source": {
  26921. "$ref": "#/components/schemas/Reference.Source"
  26922. }
  26923. },
  26924. "required": [
  26925. "name",
  26926. "path",
  26927. "source"
  26928. ],
  26929. "additionalProperties": false
  26930. },
  26931. "ProjectCopy.Copy": {
  26932. "type": "object",
  26933. "properties": {
  26934. "directory": {
  26935. "type": "string"
  26936. }
  26937. },
  26938. "required": [
  26939. "directory"
  26940. ],
  26941. "additionalProperties": false
  26942. },
  26943. "ProjectCopyError": {
  26944. "type": "object",
  26945. "properties": {
  26946. "name": {
  26947. "type": "string",
  26948. "enum": [
  26949. "ProjectCopyError"
  26950. ]
  26951. },
  26952. "data": {
  26953. "type": "object",
  26954. "properties": {
  26955. "message": {
  26956. "type": "string"
  26957. },
  26958. "forceRequired": {
  26959. "anyOf": [
  26960. {
  26961. "type": "boolean"
  26962. },
  26963. {
  26964. "type": "null"
  26965. }
  26966. ]
  26967. }
  26968. },
  26969. "required": [
  26970. "message"
  26971. ],
  26972. "additionalProperties": false
  26973. }
  26974. },
  26975. "required": [
  26976. "name",
  26977. "data"
  26978. ],
  26979. "additionalProperties": false
  26980. },
  26981. "Vcs.FileStatus": {
  26982. "type": "object",
  26983. "properties": {
  26984. "file": {
  26985. "type": "string"
  26986. },
  26987. "additions": {
  26988. "type": "integer",
  26989. "allOf": [
  26990. {
  26991. "minimum": 0
  26992. }
  26993. ]
  26994. },
  26995. "deletions": {
  26996. "type": "integer",
  26997. "allOf": [
  26998. {
  26999. "minimum": 0
  27000. }
  27001. ]
  27002. },
  27003. "status": {
  27004. "type": "string",
  27005. "enum": [
  27006. "added",
  27007. "deleted",
  27008. "modified"
  27009. ]
  27010. }
  27011. },
  27012. "required": [
  27013. "file",
  27014. "additions",
  27015. "deletions",
  27016. "status"
  27017. ],
  27018. "additionalProperties": false
  27019. },
  27020. "Vcs.Mode": {
  27021. "type": "string",
  27022. "enum": [
  27023. "working",
  27024. "branch"
  27025. ]
  27026. }
  27027. },
  27028. "securitySchemes": {}
  27029. },
  27030. "security": [],
  27031. "tags": [
  27032. {
  27033. "name": "health"
  27034. },
  27035. {
  27036. "name": "server"
  27037. },
  27038. {
  27039. "name": "location"
  27040. },
  27041. {
  27042. "name": "agent"
  27043. },
  27044. {
  27045. "name": "plugin",
  27046. "description": "Experimental plugin routes."
  27047. },
  27048. {
  27049. "name": "session",
  27050. "description": "Experimental session routes."
  27051. },
  27052. {
  27053. "name": "session",
  27054. "description": "Experimental message routes."
  27055. },
  27056. {
  27057. "name": "model",
  27058. "description": "Experimental model routes."
  27059. },
  27060. {
  27061. "name": "generate",
  27062. "description": "Experimental one-shot generation routes."
  27063. },
  27064. {
  27065. "name": "provider",
  27066. "description": "Experimental provider routes."
  27067. },
  27068. {
  27069. "name": "integration",
  27070. "description": "Integration discovery and authentication routes."
  27071. },
  27072. {
  27073. "name": "mcp",
  27074. "description": "MCP server and resource routes."
  27075. },
  27076. {
  27077. "name": "credential"
  27078. },
  27079. {
  27080. "name": "project",
  27081. "description": "Location-scoped project routes."
  27082. },
  27083. {
  27084. "name": "form",
  27085. "description": "Session form routes."
  27086. },
  27087. {
  27088. "name": "permission",
  27089. "description": "Experimental permission routes."
  27090. },
  27091. {
  27092. "name": "filesystem",
  27093. "description": "Experimental location-scoped filesystem routes."
  27094. },
  27095. {
  27096. "name": "command",
  27097. "description": "Experimental command routes."
  27098. },
  27099. {
  27100. "name": "skill",
  27101. "description": "Experimental skill routes."
  27102. },
  27103. {
  27104. "name": "event",
  27105. "description": "Experimental event stream routes."
  27106. },
  27107. {
  27108. "name": "pty",
  27109. "description": "Experimental location-scoped PTY routes."
  27110. },
  27111. {
  27112. "name": "shell",
  27113. "description": "Experimental location-scoped shell command routes."
  27114. },
  27115. {
  27116. "name": "question",
  27117. "description": "Experimental session question routes."
  27118. },
  27119. {
  27120. "name": "reference",
  27121. "description": "Location-scoped project references."
  27122. },
  27123. {
  27124. "name": "projectCopy",
  27125. "description": "Project copy management routes."
  27126. },
  27127. {
  27128. "name": "vcs",
  27129. "description": "Location-scoped version control routes."
  27130. },
  27131. {
  27132. "name": "debug"
  27133. }
  27134. ]
  27135. }