opencode-v2-openapi.json 621 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "opencode HttpApi",
  5. "version": "0.0.1",
  6. "description": "Experimental HttpApi surface for selected instance routes."
  7. },
  8. "paths": {
  9. "/api/health": {
  10. "get": {
  11. "tags": ["health"],
  12. "operationId": "v2.health.get",
  13. "parameters": [],
  14. "security": [],
  15. "responses": {
  16. "200": {
  17. "description": "Success",
  18. "content": {
  19. "application/json": {
  20. "schema": {
  21. "type": "object",
  22. "properties": {
  23. "healthy": {
  24. "type": "boolean",
  25. "enum": [true]
  26. },
  27. "version": {
  28. "type": "string"
  29. },
  30. "pid": {
  31. "type": "integer",
  32. "allOf": [
  33. {
  34. "exclusiveMinimum": 0
  35. }
  36. ]
  37. }
  38. },
  39. "required": ["healthy", "version", "pid"],
  40. "additionalProperties": false
  41. }
  42. }
  43. }
  44. },
  45. "400": {
  46. "description": "InvalidRequestError",
  47. "content": {
  48. "application/json": {
  49. "schema": {
  50. "$ref": "#/components/schemas/InvalidRequestError"
  51. }
  52. }
  53. }
  54. },
  55. "401": {
  56. "description": "UnauthorizedError",
  57. "content": {
  58. "application/json": {
  59. "schema": {
  60. "$ref": "#/components/schemas/UnauthorizedError"
  61. }
  62. }
  63. }
  64. }
  65. },
  66. "description": "Check whether the API server is ready to accept requests.",
  67. "summary": "Check server health"
  68. }
  69. },
  70. "/api/server": {
  71. "get": {
  72. "tags": ["server"],
  73. "operationId": "v2.server.get",
  74. "parameters": [],
  75. "security": [],
  76. "responses": {
  77. "200": {
  78. "description": "Success",
  79. "content": {
  80. "application/json": {
  81. "schema": {
  82. "type": "object",
  83. "properties": {
  84. "urls": {
  85. "type": "array",
  86. "items": {
  87. "type": "string"
  88. }
  89. }
  90. },
  91. "required": ["urls"],
  92. "additionalProperties": false
  93. }
  94. }
  95. }
  96. },
  97. "400": {
  98. "description": "InvalidRequestError",
  99. "content": {
  100. "application/json": {
  101. "schema": {
  102. "$ref": "#/components/schemas/InvalidRequestError"
  103. }
  104. }
  105. }
  106. },
  107. "401": {
  108. "description": "UnauthorizedError",
  109. "content": {
  110. "application/json": {
  111. "schema": {
  112. "$ref": "#/components/schemas/UnauthorizedError"
  113. }
  114. }
  115. }
  116. }
  117. },
  118. "description": "Return the URLs that can be used to connect to this server.",
  119. "summary": "Get server information"
  120. }
  121. },
  122. "/api/location": {
  123. "get": {
  124. "tags": ["location"],
  125. "operationId": "v2.location.get",
  126. "parameters": [
  127. {
  128. "name": "location",
  129. "in": "query",
  130. "schema": {
  131. "anyOf": [
  132. {
  133. "type": "object",
  134. "properties": {
  135. "directory": {
  136. "anyOf": [
  137. {
  138. "type": "string"
  139. },
  140. {
  141. "type": "null"
  142. }
  143. ]
  144. },
  145. "workspace": {
  146. "anyOf": [
  147. {
  148. "type": "string"
  149. },
  150. {
  151. "type": "null"
  152. }
  153. ]
  154. }
  155. },
  156. "additionalProperties": false
  157. },
  158. {
  159. "type": "null"
  160. }
  161. ]
  162. },
  163. "required": false,
  164. "style": "deepObject",
  165. "explode": true
  166. }
  167. ],
  168. "security": [],
  169. "responses": {
  170. "200": {
  171. "description": "Location.Info",
  172. "content": {
  173. "application/json": {
  174. "schema": {
  175. "$ref": "#/components/schemas/Location.Info"
  176. }
  177. }
  178. }
  179. },
  180. "400": {
  181. "description": "InvalidRequestError",
  182. "content": {
  183. "application/json": {
  184. "schema": {
  185. "$ref": "#/components/schemas/InvalidRequestError"
  186. }
  187. }
  188. }
  189. },
  190. "401": {
  191. "description": "UnauthorizedError",
  192. "content": {
  193. "application/json": {
  194. "schema": {
  195. "$ref": "#/components/schemas/UnauthorizedError"
  196. }
  197. }
  198. }
  199. }
  200. },
  201. "description": "Resolve the requested location or the server default location.",
  202. "summary": "Get location"
  203. }
  204. },
  205. "/api/agent": {
  206. "get": {
  207. "tags": ["agent"],
  208. "operationId": "v2.agent.list",
  209. "parameters": [
  210. {
  211. "name": "location",
  212. "in": "query",
  213. "schema": {
  214. "anyOf": [
  215. {
  216. "type": "object",
  217. "properties": {
  218. "directory": {
  219. "anyOf": [
  220. {
  221. "type": "string"
  222. },
  223. {
  224. "type": "null"
  225. }
  226. ]
  227. },
  228. "workspace": {
  229. "anyOf": [
  230. {
  231. "type": "string"
  232. },
  233. {
  234. "type": "null"
  235. }
  236. ]
  237. }
  238. },
  239. "additionalProperties": false
  240. },
  241. {
  242. "type": "null"
  243. }
  244. ]
  245. },
  246. "required": false,
  247. "style": "deepObject",
  248. "explode": true
  249. }
  250. ],
  251. "security": [],
  252. "responses": {
  253. "200": {
  254. "description": "Success",
  255. "content": {
  256. "application/json": {
  257. "schema": {
  258. "type": "object",
  259. "properties": {
  260. "location": {
  261. "$ref": "#/components/schemas/Location.Info"
  262. },
  263. "data": {
  264. "type": "array",
  265. "items": {
  266. "$ref": "#/components/schemas/Agent.Info"
  267. }
  268. }
  269. },
  270. "required": ["location", "data"],
  271. "additionalProperties": false
  272. }
  273. }
  274. }
  275. },
  276. "400": {
  277. "description": "InvalidRequestError",
  278. "content": {
  279. "application/json": {
  280. "schema": {
  281. "$ref": "#/components/schemas/InvalidRequestError"
  282. }
  283. }
  284. }
  285. },
  286. "401": {
  287. "description": "UnauthorizedError",
  288. "content": {
  289. "application/json": {
  290. "schema": {
  291. "$ref": "#/components/schemas/UnauthorizedError"
  292. }
  293. }
  294. }
  295. }
  296. },
  297. "description": "Retrieve currently registered agents.",
  298. "summary": "List agents"
  299. }
  300. },
  301. "/api/plugin": {
  302. "get": {
  303. "tags": ["plugin"],
  304. "operationId": "v2.plugin.list",
  305. "parameters": [
  306. {
  307. "name": "location",
  308. "in": "query",
  309. "schema": {
  310. "anyOf": [
  311. {
  312. "type": "object",
  313. "properties": {
  314. "directory": {
  315. "anyOf": [
  316. {
  317. "type": "string"
  318. },
  319. {
  320. "type": "null"
  321. }
  322. ]
  323. },
  324. "workspace": {
  325. "anyOf": [
  326. {
  327. "type": "string"
  328. },
  329. {
  330. "type": "null"
  331. }
  332. ]
  333. }
  334. },
  335. "additionalProperties": false
  336. },
  337. {
  338. "type": "null"
  339. }
  340. ]
  341. },
  342. "required": false,
  343. "style": "deepObject",
  344. "explode": true
  345. }
  346. ],
  347. "security": [],
  348. "responses": {
  349. "200": {
  350. "description": "Success",
  351. "content": {
  352. "application/json": {
  353. "schema": {
  354. "type": "object",
  355. "properties": {
  356. "location": {
  357. "$ref": "#/components/schemas/Location.Info"
  358. },
  359. "data": {
  360. "type": "array",
  361. "items": {
  362. "$ref": "#/components/schemas/Plugin.Info"
  363. }
  364. }
  365. },
  366. "required": ["location", "data"],
  367. "additionalProperties": false
  368. }
  369. }
  370. }
  371. },
  372. "400": {
  373. "description": "InvalidRequestError",
  374. "content": {
  375. "application/json": {
  376. "schema": {
  377. "$ref": "#/components/schemas/InvalidRequestError"
  378. }
  379. }
  380. }
  381. },
  382. "401": {
  383. "description": "UnauthorizedError",
  384. "content": {
  385. "application/json": {
  386. "schema": {
  387. "$ref": "#/components/schemas/UnauthorizedError"
  388. }
  389. }
  390. }
  391. }
  392. },
  393. "description": "Retrieve currently loaded plugins.",
  394. "summary": "List plugins"
  395. }
  396. },
  397. "/api/session": {
  398. "get": {
  399. "tags": ["session"],
  400. "operationId": "v2.session.list",
  401. "parameters": [
  402. {
  403. "name": "workspace",
  404. "in": "query",
  405. "schema": {
  406. "anyOf": [
  407. {
  408. "type": "string",
  409. "allOf": [
  410. {
  411. "pattern": "^wrk"
  412. }
  413. ]
  414. },
  415. {
  416. "type": "null"
  417. }
  418. ]
  419. },
  420. "required": false
  421. },
  422. {
  423. "name": "limit",
  424. "in": "query",
  425. "schema": {
  426. "anyOf": [
  427. {
  428. "type": "string"
  429. },
  430. {
  431. "type": "null"
  432. }
  433. ],
  434. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  435. },
  436. "required": false
  437. },
  438. {
  439. "name": "order",
  440. "in": "query",
  441. "schema": {
  442. "anyOf": [
  443. {
  444. "type": "string",
  445. "enum": ["asc", "desc"]
  446. },
  447. {
  448. "type": "null"
  449. }
  450. ],
  451. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  452. },
  453. "required": false
  454. },
  455. {
  456. "name": "search",
  457. "in": "query",
  458. "schema": {
  459. "anyOf": [
  460. {
  461. "type": "string"
  462. },
  463. {
  464. "type": "null"
  465. }
  466. ]
  467. },
  468. "required": false
  469. },
  470. {
  471. "name": "parentID",
  472. "in": "query",
  473. "schema": {
  474. "anyOf": [
  475. {
  476. "anyOf": [
  477. {
  478. "type": "string",
  479. "allOf": [
  480. {
  481. "pattern": "^ses"
  482. }
  483. ]
  484. },
  485. {
  486. "type": "string",
  487. "enum": ["null"]
  488. }
  489. ],
  490. "description": "Filter by parent session. Use null to return only root sessions."
  491. },
  492. {
  493. "type": "null"
  494. }
  495. ]
  496. },
  497. "required": false
  498. },
  499. {
  500. "name": "directory",
  501. "in": "query",
  502. "schema": {
  503. "anyOf": [
  504. {
  505. "type": "string"
  506. },
  507. {
  508. "type": "null"
  509. }
  510. ]
  511. },
  512. "required": false
  513. },
  514. {
  515. "name": "project",
  516. "in": "query",
  517. "schema": {
  518. "anyOf": [
  519. {
  520. "type": "string"
  521. },
  522. {
  523. "type": "null"
  524. }
  525. ]
  526. },
  527. "required": false
  528. },
  529. {
  530. "name": "subpath",
  531. "in": "query",
  532. "schema": {
  533. "anyOf": [
  534. {
  535. "type": "string"
  536. },
  537. {
  538. "type": "null"
  539. }
  540. ]
  541. },
  542. "required": false
  543. },
  544. {
  545. "name": "cursor",
  546. "in": "query",
  547. "schema": {
  548. "anyOf": [
  549. {
  550. "type": "string",
  551. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  552. },
  553. {
  554. "type": "null"
  555. }
  556. ]
  557. },
  558. "required": false
  559. }
  560. ],
  561. "security": [],
  562. "responses": {
  563. "200": {
  564. "description": "SessionsResponse",
  565. "content": {
  566. "application/json": {
  567. "schema": {
  568. "$ref": "#/components/schemas/SessionsResponse"
  569. }
  570. }
  571. }
  572. },
  573. "400": {
  574. "description": "InvalidCursorError | InvalidRequestError",
  575. "content": {
  576. "application/json": {
  577. "schema": {
  578. "anyOf": [
  579. {
  580. "$ref": "#/components/schemas/InvalidCursorError"
  581. },
  582. {
  583. "$ref": "#/components/schemas/InvalidRequestError1"
  584. },
  585. {
  586. "$ref": "#/components/schemas/InvalidRequestError"
  587. }
  588. ]
  589. }
  590. }
  591. }
  592. },
  593. "401": {
  594. "description": "UnauthorizedError",
  595. "content": {
  596. "application/json": {
  597. "schema": {
  598. "$ref": "#/components/schemas/UnauthorizedError"
  599. }
  600. }
  601. }
  602. }
  603. },
  604. "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.",
  605. "summary": "List sessions"
  606. },
  607. "post": {
  608. "tags": ["session"],
  609. "operationId": "v2.session.create",
  610. "parameters": [],
  611. "security": [],
  612. "responses": {
  613. "200": {
  614. "description": "Success",
  615. "content": {
  616. "application/json": {
  617. "schema": {
  618. "type": "object",
  619. "properties": {
  620. "data": {
  621. "$ref": "#/components/schemas/Session.Info"
  622. }
  623. },
  624. "required": ["data"],
  625. "additionalProperties": false
  626. }
  627. }
  628. }
  629. },
  630. "400": {
  631. "description": "InvalidRequestError",
  632. "content": {
  633. "application/json": {
  634. "schema": {
  635. "$ref": "#/components/schemas/InvalidRequestError"
  636. }
  637. }
  638. }
  639. },
  640. "401": {
  641. "description": "UnauthorizedError",
  642. "content": {
  643. "application/json": {
  644. "schema": {
  645. "$ref": "#/components/schemas/UnauthorizedError"
  646. }
  647. }
  648. }
  649. }
  650. },
  651. "description": "Create a session at the requested location.",
  652. "summary": "Create session",
  653. "requestBody": {
  654. "content": {
  655. "application/json": {
  656. "schema": {
  657. "type": "object",
  658. "properties": {
  659. "id": {
  660. "anyOf": [
  661. {
  662. "type": "string",
  663. "allOf": [
  664. {
  665. "pattern": "^ses"
  666. }
  667. ]
  668. },
  669. {
  670. "type": "null"
  671. }
  672. ]
  673. },
  674. "agent": {
  675. "anyOf": [
  676. {
  677. "type": "string"
  678. },
  679. {
  680. "type": "null"
  681. }
  682. ]
  683. },
  684. "model": {
  685. "anyOf": [
  686. {
  687. "$ref": "#/components/schemas/Model.Ref"
  688. },
  689. {
  690. "type": "null"
  691. }
  692. ]
  693. },
  694. "location": {
  695. "anyOf": [
  696. {
  697. "$ref": "#/components/schemas/Location.Ref"
  698. },
  699. {
  700. "type": "null"
  701. }
  702. ]
  703. }
  704. },
  705. "additionalProperties": false
  706. }
  707. }
  708. },
  709. "required": true
  710. }
  711. }
  712. },
  713. "/api/session/active": {
  714. "get": {
  715. "tags": ["session"],
  716. "operationId": "v2.session.active",
  717. "parameters": [],
  718. "security": [],
  719. "responses": {
  720. "200": {
  721. "description": "Success",
  722. "content": {
  723. "application/json": {
  724. "schema": {
  725. "type": "object",
  726. "properties": {
  727. "data": {
  728. "type": "object",
  729. "patternProperties": {
  730. "^ses": {
  731. "$ref": "#/components/schemas/SessionActive"
  732. }
  733. }
  734. }
  735. },
  736. "required": ["data"],
  737. "additionalProperties": false
  738. }
  739. }
  740. }
  741. },
  742. "400": {
  743. "description": "InvalidRequestError",
  744. "content": {
  745. "application/json": {
  746. "schema": {
  747. "$ref": "#/components/schemas/InvalidRequestError"
  748. }
  749. }
  750. }
  751. },
  752. "401": {
  753. "description": "UnauthorizedError",
  754. "content": {
  755. "application/json": {
  756. "schema": {
  757. "$ref": "#/components/schemas/UnauthorizedError"
  758. }
  759. }
  760. }
  761. }
  762. },
  763. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  764. "summary": "List active sessions"
  765. }
  766. },
  767. "/api/session/{sessionID}": {
  768. "get": {
  769. "tags": ["session"],
  770. "operationId": "v2.session.get",
  771. "parameters": [
  772. {
  773. "name": "sessionID",
  774. "in": "path",
  775. "schema": {
  776. "type": "string",
  777. "allOf": [
  778. {
  779. "pattern": "^ses"
  780. }
  781. ]
  782. },
  783. "required": true
  784. }
  785. ],
  786. "security": [],
  787. "responses": {
  788. "200": {
  789. "description": "Success",
  790. "content": {
  791. "application/json": {
  792. "schema": {
  793. "type": "object",
  794. "properties": {
  795. "data": {
  796. "$ref": "#/components/schemas/Session.Info"
  797. }
  798. },
  799. "required": ["data"],
  800. "additionalProperties": false
  801. }
  802. }
  803. }
  804. },
  805. "400": {
  806. "description": "InvalidRequestError",
  807. "content": {
  808. "application/json": {
  809. "schema": {
  810. "$ref": "#/components/schemas/InvalidRequestError"
  811. }
  812. }
  813. }
  814. },
  815. "401": {
  816. "description": "UnauthorizedError",
  817. "content": {
  818. "application/json": {
  819. "schema": {
  820. "$ref": "#/components/schemas/UnauthorizedError"
  821. }
  822. }
  823. }
  824. },
  825. "404": {
  826. "description": "SessionNotFoundError",
  827. "content": {
  828. "application/json": {
  829. "schema": {
  830. "anyOf": [
  831. {
  832. "$ref": "#/components/schemas/SessionNotFoundError"
  833. },
  834. {
  835. "$ref": "#/components/schemas/SessionNotFoundError"
  836. }
  837. ]
  838. }
  839. }
  840. }
  841. }
  842. },
  843. "description": "Retrieve a session by ID.",
  844. "summary": "Get session"
  845. },
  846. "delete": {
  847. "tags": ["session"],
  848. "operationId": "v2.session.remove",
  849. "parameters": [
  850. {
  851. "name": "sessionID",
  852. "in": "path",
  853. "schema": {
  854. "type": "string",
  855. "allOf": [
  856. {
  857. "pattern": "^ses"
  858. }
  859. ]
  860. },
  861. "required": true
  862. }
  863. ],
  864. "security": [],
  865. "responses": {
  866. "204": {
  867. "description": "<No Content>"
  868. },
  869. "400": {
  870. "description": "InvalidRequestError",
  871. "content": {
  872. "application/json": {
  873. "schema": {
  874. "$ref": "#/components/schemas/InvalidRequestError"
  875. }
  876. }
  877. }
  878. },
  879. "401": {
  880. "description": "UnauthorizedError",
  881. "content": {
  882. "application/json": {
  883. "schema": {
  884. "$ref": "#/components/schemas/UnauthorizedError"
  885. }
  886. }
  887. }
  888. },
  889. "404": {
  890. "description": "SessionNotFoundError",
  891. "content": {
  892. "application/json": {
  893. "schema": {
  894. "anyOf": [
  895. {
  896. "$ref": "#/components/schemas/SessionNotFoundError"
  897. },
  898. {
  899. "$ref": "#/components/schemas/SessionNotFoundError"
  900. }
  901. ]
  902. }
  903. }
  904. }
  905. }
  906. },
  907. "description": "Delete a session and its child sessions.",
  908. "summary": "Delete session"
  909. }
  910. },
  911. "/api/session/{sessionID}/fork": {
  912. "post": {
  913. "tags": ["session"],
  914. "operationId": "v2.session.fork",
  915. "parameters": [
  916. {
  917. "name": "sessionID",
  918. "in": "path",
  919. "schema": {
  920. "type": "string",
  921. "allOf": [
  922. {
  923. "pattern": "^ses"
  924. }
  925. ]
  926. },
  927. "required": true
  928. }
  929. ],
  930. "security": [],
  931. "responses": {
  932. "200": {
  933. "description": "Success",
  934. "content": {
  935. "application/json": {
  936. "schema": {
  937. "type": "object",
  938. "properties": {
  939. "data": {
  940. "$ref": "#/components/schemas/Session.Info"
  941. }
  942. },
  943. "required": ["data"],
  944. "additionalProperties": false
  945. }
  946. }
  947. }
  948. },
  949. "400": {
  950. "description": "InvalidRequestError",
  951. "content": {
  952. "application/json": {
  953. "schema": {
  954. "$ref": "#/components/schemas/InvalidRequestError"
  955. }
  956. }
  957. }
  958. },
  959. "401": {
  960. "description": "UnauthorizedError",
  961. "content": {
  962. "application/json": {
  963. "schema": {
  964. "$ref": "#/components/schemas/UnauthorizedError"
  965. }
  966. }
  967. }
  968. },
  969. "404": {
  970. "description": "SessionNotFoundError | MessageNotFoundError",
  971. "content": {
  972. "application/json": {
  973. "schema": {
  974. "anyOf": [
  975. {
  976. "$ref": "#/components/schemas/MessageNotFoundError"
  977. },
  978. {
  979. "$ref": "#/components/schemas/SessionNotFoundError"
  980. },
  981. {
  982. "$ref": "#/components/schemas/SessionNotFoundError"
  983. }
  984. ]
  985. }
  986. }
  987. }
  988. }
  989. },
  990. "description": "Create a child session by copying projected history from the parent. When messageID is supplied, copy messages before that boundary.",
  991. "summary": "Fork session",
  992. "requestBody": {
  993. "content": {
  994. "application/json": {
  995. "schema": {
  996. "type": "object",
  997. "properties": {
  998. "messageID": {
  999. "anyOf": [
  1000. {
  1001. "type": "string",
  1002. "allOf": [
  1003. {
  1004. "pattern": "^msg_"
  1005. }
  1006. ]
  1007. },
  1008. {
  1009. "type": "null"
  1010. }
  1011. ]
  1012. }
  1013. },
  1014. "additionalProperties": false
  1015. }
  1016. }
  1017. },
  1018. "required": true
  1019. }
  1020. }
  1021. },
  1022. "/api/session/{sessionID}/agent": {
  1023. "post": {
  1024. "tags": ["session"],
  1025. "operationId": "v2.session.switchAgent",
  1026. "parameters": [
  1027. {
  1028. "name": "sessionID",
  1029. "in": "path",
  1030. "schema": {
  1031. "type": "string",
  1032. "allOf": [
  1033. {
  1034. "pattern": "^ses"
  1035. }
  1036. ]
  1037. },
  1038. "required": true
  1039. }
  1040. ],
  1041. "security": [],
  1042. "responses": {
  1043. "204": {
  1044. "description": "<No Content>"
  1045. },
  1046. "400": {
  1047. "description": "InvalidRequestError",
  1048. "content": {
  1049. "application/json": {
  1050. "schema": {
  1051. "$ref": "#/components/schemas/InvalidRequestError"
  1052. }
  1053. }
  1054. }
  1055. },
  1056. "401": {
  1057. "description": "UnauthorizedError",
  1058. "content": {
  1059. "application/json": {
  1060. "schema": {
  1061. "$ref": "#/components/schemas/UnauthorizedError"
  1062. }
  1063. }
  1064. }
  1065. },
  1066. "404": {
  1067. "description": "SessionNotFoundError",
  1068. "content": {
  1069. "application/json": {
  1070. "schema": {
  1071. "anyOf": [
  1072. {
  1073. "$ref": "#/components/schemas/SessionNotFoundError"
  1074. },
  1075. {
  1076. "$ref": "#/components/schemas/SessionNotFoundError"
  1077. }
  1078. ]
  1079. }
  1080. }
  1081. }
  1082. }
  1083. },
  1084. "description": "Switch the agent used by subsequent provider turns.",
  1085. "summary": "Switch session agent",
  1086. "requestBody": {
  1087. "content": {
  1088. "application/json": {
  1089. "schema": {
  1090. "type": "object",
  1091. "properties": {
  1092. "agent": {
  1093. "type": "string"
  1094. }
  1095. },
  1096. "required": ["agent"],
  1097. "additionalProperties": false
  1098. }
  1099. }
  1100. },
  1101. "required": true
  1102. }
  1103. }
  1104. },
  1105. "/api/session/{sessionID}/model": {
  1106. "post": {
  1107. "tags": ["session"],
  1108. "operationId": "v2.session.switchModel",
  1109. "parameters": [
  1110. {
  1111. "name": "sessionID",
  1112. "in": "path",
  1113. "schema": {
  1114. "type": "string",
  1115. "allOf": [
  1116. {
  1117. "pattern": "^ses"
  1118. }
  1119. ]
  1120. },
  1121. "required": true
  1122. }
  1123. ],
  1124. "security": [],
  1125. "responses": {
  1126. "204": {
  1127. "description": "<No Content>"
  1128. },
  1129. "400": {
  1130. "description": "InvalidRequestError",
  1131. "content": {
  1132. "application/json": {
  1133. "schema": {
  1134. "$ref": "#/components/schemas/InvalidRequestError"
  1135. }
  1136. }
  1137. }
  1138. },
  1139. "401": {
  1140. "description": "UnauthorizedError",
  1141. "content": {
  1142. "application/json": {
  1143. "schema": {
  1144. "$ref": "#/components/schemas/UnauthorizedError"
  1145. }
  1146. }
  1147. }
  1148. },
  1149. "404": {
  1150. "description": "SessionNotFoundError",
  1151. "content": {
  1152. "application/json": {
  1153. "schema": {
  1154. "anyOf": [
  1155. {
  1156. "$ref": "#/components/schemas/SessionNotFoundError"
  1157. },
  1158. {
  1159. "$ref": "#/components/schemas/SessionNotFoundError"
  1160. }
  1161. ]
  1162. }
  1163. }
  1164. }
  1165. }
  1166. },
  1167. "description": "Switch the model used by subsequent provider turns.",
  1168. "summary": "Switch session model",
  1169. "requestBody": {
  1170. "content": {
  1171. "application/json": {
  1172. "schema": {
  1173. "type": "object",
  1174. "properties": {
  1175. "model": {
  1176. "$ref": "#/components/schemas/Model.Ref"
  1177. }
  1178. },
  1179. "required": ["model"],
  1180. "additionalProperties": false
  1181. }
  1182. }
  1183. },
  1184. "required": true
  1185. }
  1186. }
  1187. },
  1188. "/api/session/{sessionID}/rename": {
  1189. "post": {
  1190. "tags": ["session"],
  1191. "operationId": "v2.session.rename",
  1192. "parameters": [
  1193. {
  1194. "name": "sessionID",
  1195. "in": "path",
  1196. "schema": {
  1197. "type": "string",
  1198. "allOf": [
  1199. {
  1200. "pattern": "^ses"
  1201. }
  1202. ]
  1203. },
  1204. "required": true
  1205. }
  1206. ],
  1207. "security": [],
  1208. "responses": {
  1209. "204": {
  1210. "description": "<No Content>"
  1211. },
  1212. "400": {
  1213. "description": "InvalidRequestError",
  1214. "content": {
  1215. "application/json": {
  1216. "schema": {
  1217. "$ref": "#/components/schemas/InvalidRequestError"
  1218. }
  1219. }
  1220. }
  1221. },
  1222. "401": {
  1223. "description": "UnauthorizedError",
  1224. "content": {
  1225. "application/json": {
  1226. "schema": {
  1227. "$ref": "#/components/schemas/UnauthorizedError"
  1228. }
  1229. }
  1230. }
  1231. },
  1232. "404": {
  1233. "description": "SessionNotFoundError",
  1234. "content": {
  1235. "application/json": {
  1236. "schema": {
  1237. "anyOf": [
  1238. {
  1239. "$ref": "#/components/schemas/SessionNotFoundError"
  1240. },
  1241. {
  1242. "$ref": "#/components/schemas/SessionNotFoundError"
  1243. }
  1244. ]
  1245. }
  1246. }
  1247. }
  1248. }
  1249. },
  1250. "description": "Update the session title.",
  1251. "summary": "Rename session",
  1252. "requestBody": {
  1253. "content": {
  1254. "application/json": {
  1255. "schema": {
  1256. "type": "object",
  1257. "properties": {
  1258. "title": {
  1259. "type": "string"
  1260. }
  1261. },
  1262. "required": ["title"],
  1263. "additionalProperties": false
  1264. }
  1265. }
  1266. },
  1267. "required": true
  1268. }
  1269. }
  1270. },
  1271. "/api/session/{sessionID}/move": {
  1272. "post": {
  1273. "tags": ["session"],
  1274. "operationId": "v2.session.move",
  1275. "parameters": [
  1276. {
  1277. "name": "sessionID",
  1278. "in": "path",
  1279. "schema": {
  1280. "type": "string",
  1281. "allOf": [
  1282. {
  1283. "pattern": "^ses"
  1284. }
  1285. ]
  1286. },
  1287. "required": true
  1288. }
  1289. ],
  1290. "security": [],
  1291. "responses": {
  1292. "204": {
  1293. "description": "<No Content>"
  1294. },
  1295. "400": {
  1296. "description": "InvalidRequestError",
  1297. "content": {
  1298. "application/json": {
  1299. "schema": {
  1300. "anyOf": [
  1301. {
  1302. "$ref": "#/components/schemas/InvalidRequestError1"
  1303. },
  1304. {
  1305. "$ref": "#/components/schemas/InvalidRequestError"
  1306. }
  1307. ]
  1308. }
  1309. }
  1310. }
  1311. },
  1312. "401": {
  1313. "description": "UnauthorizedError",
  1314. "content": {
  1315. "application/json": {
  1316. "schema": {
  1317. "$ref": "#/components/schemas/UnauthorizedError"
  1318. }
  1319. }
  1320. }
  1321. },
  1322. "404": {
  1323. "description": "SessionNotFoundError",
  1324. "content": {
  1325. "application/json": {
  1326. "schema": {
  1327. "anyOf": [
  1328. {
  1329. "$ref": "#/components/schemas/SessionNotFoundError"
  1330. },
  1331. {
  1332. "$ref": "#/components/schemas/SessionNotFoundError"
  1333. }
  1334. ]
  1335. }
  1336. }
  1337. }
  1338. }
  1339. },
  1340. "description": "Move a session to another project directory, optionally transferring local changes.",
  1341. "summary": "Move session",
  1342. "requestBody": {
  1343. "content": {
  1344. "application/json": {
  1345. "schema": {
  1346. "type": "object",
  1347. "properties": {
  1348. "destination": {
  1349. "type": "object",
  1350. "properties": {
  1351. "directory": {
  1352. "type": "string"
  1353. }
  1354. },
  1355. "required": ["directory"],
  1356. "additionalProperties": false
  1357. },
  1358. "moveChanges": {
  1359. "anyOf": [
  1360. {
  1361. "type": "boolean"
  1362. },
  1363. {
  1364. "type": "null"
  1365. }
  1366. ]
  1367. }
  1368. },
  1369. "required": ["destination"],
  1370. "additionalProperties": false
  1371. }
  1372. }
  1373. },
  1374. "required": true
  1375. }
  1376. }
  1377. },
  1378. "/api/session/{sessionID}/prompt": {
  1379. "post": {
  1380. "tags": ["session"],
  1381. "operationId": "v2.session.prompt",
  1382. "parameters": [
  1383. {
  1384. "name": "sessionID",
  1385. "in": "path",
  1386. "schema": {
  1387. "type": "string",
  1388. "allOf": [
  1389. {
  1390. "pattern": "^ses"
  1391. }
  1392. ]
  1393. },
  1394. "required": true
  1395. }
  1396. ],
  1397. "security": [],
  1398. "responses": {
  1399. "200": {
  1400. "description": "Success",
  1401. "content": {
  1402. "application/json": {
  1403. "schema": {
  1404. "type": "object",
  1405. "properties": {
  1406. "data": {
  1407. "$ref": "#/components/schemas/SessionInput.Admitted"
  1408. }
  1409. },
  1410. "required": ["data"],
  1411. "additionalProperties": false
  1412. }
  1413. }
  1414. }
  1415. },
  1416. "400": {
  1417. "description": "InvalidRequestError",
  1418. "content": {
  1419. "application/json": {
  1420. "schema": {
  1421. "anyOf": [
  1422. {
  1423. "$ref": "#/components/schemas/InvalidRequestError1"
  1424. },
  1425. {
  1426. "$ref": "#/components/schemas/InvalidRequestError"
  1427. }
  1428. ]
  1429. }
  1430. }
  1431. }
  1432. },
  1433. "401": {
  1434. "description": "UnauthorizedError",
  1435. "content": {
  1436. "application/json": {
  1437. "schema": {
  1438. "$ref": "#/components/schemas/UnauthorizedError"
  1439. }
  1440. }
  1441. }
  1442. },
  1443. "404": {
  1444. "description": "SessionNotFoundError",
  1445. "content": {
  1446. "application/json": {
  1447. "schema": {
  1448. "anyOf": [
  1449. {
  1450. "$ref": "#/components/schemas/SessionNotFoundError"
  1451. },
  1452. {
  1453. "$ref": "#/components/schemas/SessionNotFoundError"
  1454. }
  1455. ]
  1456. }
  1457. }
  1458. }
  1459. },
  1460. "409": {
  1461. "description": "ConflictError",
  1462. "content": {
  1463. "application/json": {
  1464. "schema": {
  1465. "$ref": "#/components/schemas/ConflictError"
  1466. }
  1467. }
  1468. }
  1469. }
  1470. },
  1471. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1472. "summary": "Send message",
  1473. "requestBody": {
  1474. "content": {
  1475. "application/json": {
  1476. "schema": {
  1477. "type": "object",
  1478. "properties": {
  1479. "id": {
  1480. "anyOf": [
  1481. {
  1482. "type": "string",
  1483. "allOf": [
  1484. {
  1485. "pattern": "^msg_"
  1486. }
  1487. ]
  1488. },
  1489. {
  1490. "type": "null"
  1491. }
  1492. ]
  1493. },
  1494. "prompt": {
  1495. "$ref": "#/components/schemas/PromptInput"
  1496. },
  1497. "delivery": {
  1498. "anyOf": [
  1499. {
  1500. "type": "string",
  1501. "enum": ["steer", "queue"]
  1502. },
  1503. {
  1504. "type": "null"
  1505. }
  1506. ]
  1507. },
  1508. "resume": {
  1509. "anyOf": [
  1510. {
  1511. "type": "boolean"
  1512. },
  1513. {
  1514. "type": "null"
  1515. }
  1516. ]
  1517. }
  1518. },
  1519. "required": ["prompt"],
  1520. "additionalProperties": false
  1521. }
  1522. }
  1523. },
  1524. "required": true
  1525. }
  1526. }
  1527. },
  1528. "/api/session/{sessionID}/command": {
  1529. "post": {
  1530. "tags": ["session"],
  1531. "operationId": "v2.session.command",
  1532. "parameters": [
  1533. {
  1534. "name": "sessionID",
  1535. "in": "path",
  1536. "schema": {
  1537. "type": "string",
  1538. "allOf": [
  1539. {
  1540. "pattern": "^ses"
  1541. }
  1542. ]
  1543. },
  1544. "required": true
  1545. }
  1546. ],
  1547. "security": [],
  1548. "responses": {
  1549. "200": {
  1550. "description": "Success",
  1551. "content": {
  1552. "application/json": {
  1553. "schema": {
  1554. "type": "object",
  1555. "properties": {
  1556. "data": {
  1557. "$ref": "#/components/schemas/SessionInput.Admitted"
  1558. }
  1559. },
  1560. "required": ["data"],
  1561. "additionalProperties": false
  1562. }
  1563. }
  1564. }
  1565. },
  1566. "400": {
  1567. "description": "InvalidRequestError",
  1568. "content": {
  1569. "application/json": {
  1570. "schema": {
  1571. "anyOf": [
  1572. {
  1573. "$ref": "#/components/schemas/InvalidRequestError1"
  1574. },
  1575. {
  1576. "$ref": "#/components/schemas/InvalidRequestError"
  1577. }
  1578. ]
  1579. }
  1580. }
  1581. }
  1582. },
  1583. "401": {
  1584. "description": "UnauthorizedError",
  1585. "content": {
  1586. "application/json": {
  1587. "schema": {
  1588. "$ref": "#/components/schemas/UnauthorizedError"
  1589. }
  1590. }
  1591. }
  1592. },
  1593. "404": {
  1594. "description": "SessionNotFoundError | CommandNotFoundError",
  1595. "content": {
  1596. "application/json": {
  1597. "schema": {
  1598. "anyOf": [
  1599. {
  1600. "$ref": "#/components/schemas/CommandNotFoundError"
  1601. },
  1602. {
  1603. "$ref": "#/components/schemas/SessionNotFoundError"
  1604. },
  1605. {
  1606. "$ref": "#/components/schemas/SessionNotFoundError"
  1607. }
  1608. ]
  1609. }
  1610. }
  1611. }
  1612. },
  1613. "409": {
  1614. "description": "ConflictError",
  1615. "content": {
  1616. "application/json": {
  1617. "schema": {
  1618. "$ref": "#/components/schemas/ConflictError"
  1619. }
  1620. }
  1621. }
  1622. },
  1623. "500": {
  1624. "description": "CommandEvaluationError",
  1625. "content": {
  1626. "application/json": {
  1627. "schema": {
  1628. "$ref": "#/components/schemas/CommandEvaluationError"
  1629. }
  1630. }
  1631. }
  1632. }
  1633. },
  1634. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1635. "summary": "Run command",
  1636. "requestBody": {
  1637. "content": {
  1638. "application/json": {
  1639. "schema": {
  1640. "type": "object",
  1641. "properties": {
  1642. "id": {
  1643. "anyOf": [
  1644. {
  1645. "type": "string",
  1646. "allOf": [
  1647. {
  1648. "pattern": "^msg_"
  1649. }
  1650. ]
  1651. },
  1652. {
  1653. "type": "null"
  1654. }
  1655. ]
  1656. },
  1657. "command": {
  1658. "type": "string"
  1659. },
  1660. "arguments": {
  1661. "anyOf": [
  1662. {
  1663. "type": "string"
  1664. },
  1665. {
  1666. "type": "null"
  1667. }
  1668. ]
  1669. },
  1670. "agent": {
  1671. "anyOf": [
  1672. {
  1673. "type": "string"
  1674. },
  1675. {
  1676. "type": "null"
  1677. }
  1678. ]
  1679. },
  1680. "model": {
  1681. "anyOf": [
  1682. {
  1683. "$ref": "#/components/schemas/Model.Ref"
  1684. },
  1685. {
  1686. "type": "null"
  1687. }
  1688. ]
  1689. },
  1690. "files": {
  1691. "type": "array",
  1692. "items": {
  1693. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1694. }
  1695. },
  1696. "agents": {
  1697. "type": "array",
  1698. "items": {
  1699. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1700. }
  1701. },
  1702. "delivery": {
  1703. "anyOf": [
  1704. {
  1705. "type": "string",
  1706. "enum": ["steer", "queue"]
  1707. },
  1708. {
  1709. "type": "null"
  1710. }
  1711. ]
  1712. },
  1713. "resume": {
  1714. "anyOf": [
  1715. {
  1716. "type": "boolean"
  1717. },
  1718. {
  1719. "type": "null"
  1720. }
  1721. ]
  1722. }
  1723. },
  1724. "required": ["command"],
  1725. "additionalProperties": false
  1726. }
  1727. }
  1728. },
  1729. "required": true
  1730. }
  1731. }
  1732. },
  1733. "/api/session/{sessionID}/skill": {
  1734. "post": {
  1735. "tags": ["session"],
  1736. "operationId": "v2.session.skill",
  1737. "parameters": [
  1738. {
  1739. "name": "sessionID",
  1740. "in": "path",
  1741. "schema": {
  1742. "type": "string",
  1743. "allOf": [
  1744. {
  1745. "pattern": "^ses"
  1746. }
  1747. ]
  1748. },
  1749. "required": true
  1750. }
  1751. ],
  1752. "security": [],
  1753. "responses": {
  1754. "204": {
  1755. "description": "<No Content>"
  1756. },
  1757. "400": {
  1758. "description": "InvalidRequestError",
  1759. "content": {
  1760. "application/json": {
  1761. "schema": {
  1762. "$ref": "#/components/schemas/InvalidRequestError"
  1763. }
  1764. }
  1765. }
  1766. },
  1767. "401": {
  1768. "description": "UnauthorizedError",
  1769. "content": {
  1770. "application/json": {
  1771. "schema": {
  1772. "$ref": "#/components/schemas/UnauthorizedError"
  1773. }
  1774. }
  1775. }
  1776. },
  1777. "404": {
  1778. "description": "SessionNotFoundError | SkillNotFoundError",
  1779. "content": {
  1780. "application/json": {
  1781. "schema": {
  1782. "anyOf": [
  1783. {
  1784. "$ref": "#/components/schemas/SkillNotFoundError"
  1785. },
  1786. {
  1787. "$ref": "#/components/schemas/SessionNotFoundError"
  1788. },
  1789. {
  1790. "$ref": "#/components/schemas/SessionNotFoundError"
  1791. }
  1792. ]
  1793. }
  1794. }
  1795. }
  1796. }
  1797. },
  1798. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  1799. "summary": "Activate skill",
  1800. "requestBody": {
  1801. "content": {
  1802. "application/json": {
  1803. "schema": {
  1804. "type": "object",
  1805. "properties": {
  1806. "id": {
  1807. "anyOf": [
  1808. {
  1809. "type": "string",
  1810. "allOf": [
  1811. {
  1812. "pattern": "^msg_"
  1813. }
  1814. ]
  1815. },
  1816. {
  1817. "type": "null"
  1818. }
  1819. ]
  1820. },
  1821. "skill": {
  1822. "type": "string"
  1823. },
  1824. "resume": {
  1825. "anyOf": [
  1826. {
  1827. "type": "boolean"
  1828. },
  1829. {
  1830. "type": "null"
  1831. }
  1832. ]
  1833. }
  1834. },
  1835. "required": ["skill"],
  1836. "additionalProperties": false
  1837. }
  1838. }
  1839. },
  1840. "required": true
  1841. }
  1842. }
  1843. },
  1844. "/api/session/{sessionID}/synthetic": {
  1845. "post": {
  1846. "tags": ["session"],
  1847. "operationId": "v2.session.synthetic",
  1848. "parameters": [
  1849. {
  1850. "name": "sessionID",
  1851. "in": "path",
  1852. "schema": {
  1853. "type": "string",
  1854. "allOf": [
  1855. {
  1856. "pattern": "^ses"
  1857. }
  1858. ]
  1859. },
  1860. "required": true
  1861. }
  1862. ],
  1863. "security": [],
  1864. "responses": {
  1865. "204": {
  1866. "description": "<No Content>"
  1867. },
  1868. "400": {
  1869. "description": "InvalidRequestError",
  1870. "content": {
  1871. "application/json": {
  1872. "schema": {
  1873. "$ref": "#/components/schemas/InvalidRequestError"
  1874. }
  1875. }
  1876. }
  1877. },
  1878. "401": {
  1879. "description": "UnauthorizedError",
  1880. "content": {
  1881. "application/json": {
  1882. "schema": {
  1883. "$ref": "#/components/schemas/UnauthorizedError"
  1884. }
  1885. }
  1886. }
  1887. },
  1888. "404": {
  1889. "description": "SessionNotFoundError",
  1890. "content": {
  1891. "application/json": {
  1892. "schema": {
  1893. "anyOf": [
  1894. {
  1895. "$ref": "#/components/schemas/SessionNotFoundError"
  1896. },
  1897. {
  1898. "$ref": "#/components/schemas/SessionNotFoundError"
  1899. }
  1900. ]
  1901. }
  1902. }
  1903. }
  1904. }
  1905. },
  1906. "description": "Append a synthetic message to a session and resume execution.",
  1907. "summary": "Add synthetic message",
  1908. "requestBody": {
  1909. "content": {
  1910. "application/json": {
  1911. "schema": {
  1912. "type": "object",
  1913. "properties": {
  1914. "text": {
  1915. "type": "string"
  1916. },
  1917. "description": {
  1918. "anyOf": [
  1919. {
  1920. "type": "string"
  1921. },
  1922. {
  1923. "type": "null"
  1924. }
  1925. ]
  1926. },
  1927. "metadata": {
  1928. "type": "object"
  1929. },
  1930. "resume": {
  1931. "anyOf": [
  1932. {
  1933. "type": "boolean"
  1934. },
  1935. {
  1936. "type": "null"
  1937. }
  1938. ]
  1939. }
  1940. },
  1941. "required": ["text"],
  1942. "additionalProperties": false
  1943. }
  1944. }
  1945. },
  1946. "required": true
  1947. }
  1948. }
  1949. },
  1950. "/api/session/{sessionID}/shell": {
  1951. "post": {
  1952. "tags": ["session"],
  1953. "operationId": "v2.session.shell",
  1954. "parameters": [
  1955. {
  1956. "name": "sessionID",
  1957. "in": "path",
  1958. "schema": {
  1959. "type": "string",
  1960. "allOf": [
  1961. {
  1962. "pattern": "^ses"
  1963. }
  1964. ]
  1965. },
  1966. "required": true
  1967. }
  1968. ],
  1969. "security": [],
  1970. "responses": {
  1971. "204": {
  1972. "description": "<No Content>"
  1973. },
  1974. "400": {
  1975. "description": "InvalidRequestError",
  1976. "content": {
  1977. "application/json": {
  1978. "schema": {
  1979. "$ref": "#/components/schemas/InvalidRequestError"
  1980. }
  1981. }
  1982. }
  1983. },
  1984. "401": {
  1985. "description": "UnauthorizedError",
  1986. "content": {
  1987. "application/json": {
  1988. "schema": {
  1989. "$ref": "#/components/schemas/UnauthorizedError"
  1990. }
  1991. }
  1992. }
  1993. },
  1994. "404": {
  1995. "description": "SessionNotFoundError",
  1996. "content": {
  1997. "application/json": {
  1998. "schema": {
  1999. "anyOf": [
  2000. {
  2001. "$ref": "#/components/schemas/SessionNotFoundError"
  2002. },
  2003. {
  2004. "$ref": "#/components/schemas/SessionNotFoundError"
  2005. }
  2006. ]
  2007. }
  2008. }
  2009. }
  2010. }
  2011. },
  2012. "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.",
  2013. "summary": "Run shell command",
  2014. "requestBody": {
  2015. "content": {
  2016. "application/json": {
  2017. "schema": {
  2018. "type": "object",
  2019. "properties": {
  2020. "id": {
  2021. "anyOf": [
  2022. {
  2023. "type": "string",
  2024. "allOf": [
  2025. {
  2026. "pattern": "^evt_"
  2027. }
  2028. ]
  2029. },
  2030. {
  2031. "type": "null"
  2032. }
  2033. ]
  2034. },
  2035. "command": {
  2036. "type": "string"
  2037. }
  2038. },
  2039. "required": ["command"],
  2040. "additionalProperties": false
  2041. }
  2042. }
  2043. },
  2044. "required": true
  2045. }
  2046. }
  2047. },
  2048. "/api/session/{sessionID}/compact": {
  2049. "post": {
  2050. "tags": ["session"],
  2051. "operationId": "v2.session.compact",
  2052. "parameters": [
  2053. {
  2054. "name": "sessionID",
  2055. "in": "path",
  2056. "schema": {
  2057. "type": "string",
  2058. "allOf": [
  2059. {
  2060. "pattern": "^ses"
  2061. }
  2062. ]
  2063. },
  2064. "required": true
  2065. }
  2066. ],
  2067. "security": [],
  2068. "responses": {
  2069. "200": {
  2070. "description": "Success",
  2071. "content": {
  2072. "application/json": {
  2073. "schema": {
  2074. "type": "object",
  2075. "properties": {
  2076. "data": {
  2077. "$ref": "#/components/schemas/SessionInput.Compaction"
  2078. }
  2079. },
  2080. "required": ["data"],
  2081. "additionalProperties": false
  2082. }
  2083. }
  2084. }
  2085. },
  2086. "400": {
  2087. "description": "InvalidRequestError",
  2088. "content": {
  2089. "application/json": {
  2090. "schema": {
  2091. "$ref": "#/components/schemas/InvalidRequestError"
  2092. }
  2093. }
  2094. }
  2095. },
  2096. "401": {
  2097. "description": "UnauthorizedError",
  2098. "content": {
  2099. "application/json": {
  2100. "schema": {
  2101. "$ref": "#/components/schemas/UnauthorizedError"
  2102. }
  2103. }
  2104. }
  2105. },
  2106. "404": {
  2107. "description": "SessionNotFoundError",
  2108. "content": {
  2109. "application/json": {
  2110. "schema": {
  2111. "anyOf": [
  2112. {
  2113. "$ref": "#/components/schemas/SessionNotFoundError"
  2114. },
  2115. {
  2116. "$ref": "#/components/schemas/SessionNotFoundError"
  2117. }
  2118. ]
  2119. }
  2120. }
  2121. }
  2122. },
  2123. "409": {
  2124. "description": "ConflictError",
  2125. "content": {
  2126. "application/json": {
  2127. "schema": {
  2128. "$ref": "#/components/schemas/ConflictError"
  2129. }
  2130. }
  2131. }
  2132. }
  2133. },
  2134. "description": "Queue a durable session compaction request.",
  2135. "summary": "Compact session",
  2136. "requestBody": {
  2137. "content": {
  2138. "application/json": {
  2139. "schema": {
  2140. "type": "object",
  2141. "properties": {
  2142. "id": {
  2143. "anyOf": [
  2144. {
  2145. "type": "string",
  2146. "allOf": [
  2147. {
  2148. "pattern": "^msg_"
  2149. }
  2150. ]
  2151. },
  2152. {
  2153. "type": "null"
  2154. }
  2155. ]
  2156. }
  2157. },
  2158. "additionalProperties": false
  2159. }
  2160. }
  2161. },
  2162. "required": true
  2163. }
  2164. }
  2165. },
  2166. "/api/session/{sessionID}/wait": {
  2167. "post": {
  2168. "tags": ["session"],
  2169. "operationId": "v2.session.wait",
  2170. "parameters": [
  2171. {
  2172. "name": "sessionID",
  2173. "in": "path",
  2174. "schema": {
  2175. "type": "string",
  2176. "allOf": [
  2177. {
  2178. "pattern": "^ses"
  2179. }
  2180. ]
  2181. },
  2182. "required": true
  2183. }
  2184. ],
  2185. "security": [],
  2186. "responses": {
  2187. "204": {
  2188. "description": "<No Content>"
  2189. },
  2190. "400": {
  2191. "description": "InvalidRequestError",
  2192. "content": {
  2193. "application/json": {
  2194. "schema": {
  2195. "$ref": "#/components/schemas/InvalidRequestError"
  2196. }
  2197. }
  2198. }
  2199. },
  2200. "401": {
  2201. "description": "UnauthorizedError",
  2202. "content": {
  2203. "application/json": {
  2204. "schema": {
  2205. "$ref": "#/components/schemas/UnauthorizedError"
  2206. }
  2207. }
  2208. }
  2209. },
  2210. "404": {
  2211. "description": "SessionNotFoundError",
  2212. "content": {
  2213. "application/json": {
  2214. "schema": {
  2215. "anyOf": [
  2216. {
  2217. "$ref": "#/components/schemas/SessionNotFoundError"
  2218. },
  2219. {
  2220. "$ref": "#/components/schemas/SessionNotFoundError"
  2221. }
  2222. ]
  2223. }
  2224. }
  2225. }
  2226. },
  2227. "503": {
  2228. "description": "ServiceUnavailableError",
  2229. "content": {
  2230. "application/json": {
  2231. "schema": {
  2232. "$ref": "#/components/schemas/ServiceUnavailableError"
  2233. }
  2234. }
  2235. }
  2236. }
  2237. },
  2238. "description": "Wait for a session agent loop to become idle.",
  2239. "summary": "Wait for session"
  2240. }
  2241. },
  2242. "/api/session/{sessionID}/revert/stage": {
  2243. "post": {
  2244. "tags": ["session"],
  2245. "operationId": "v2.session.revert.stage",
  2246. "parameters": [
  2247. {
  2248. "name": "sessionID",
  2249. "in": "path",
  2250. "schema": {
  2251. "type": "string",
  2252. "allOf": [
  2253. {
  2254. "pattern": "^ses"
  2255. }
  2256. ]
  2257. },
  2258. "required": true
  2259. }
  2260. ],
  2261. "security": [],
  2262. "responses": {
  2263. "200": {
  2264. "description": "Success",
  2265. "content": {
  2266. "application/json": {
  2267. "schema": {
  2268. "type": "object",
  2269. "properties": {
  2270. "data": {
  2271. "$ref": "#/components/schemas/Session.Revert"
  2272. }
  2273. },
  2274. "required": ["data"],
  2275. "additionalProperties": false
  2276. }
  2277. }
  2278. }
  2279. },
  2280. "400": {
  2281. "description": "InvalidRequestError",
  2282. "content": {
  2283. "application/json": {
  2284. "schema": {
  2285. "$ref": "#/components/schemas/InvalidRequestError"
  2286. }
  2287. }
  2288. }
  2289. },
  2290. "401": {
  2291. "description": "UnauthorizedError",
  2292. "content": {
  2293. "application/json": {
  2294. "schema": {
  2295. "$ref": "#/components/schemas/UnauthorizedError"
  2296. }
  2297. }
  2298. }
  2299. },
  2300. "404": {
  2301. "description": "MessageNotFoundError | SessionNotFoundError",
  2302. "content": {
  2303. "application/json": {
  2304. "schema": {
  2305. "anyOf": [
  2306. {
  2307. "$ref": "#/components/schemas/MessageNotFoundError"
  2308. },
  2309. {
  2310. "$ref": "#/components/schemas/SessionNotFoundError"
  2311. },
  2312. {
  2313. "$ref": "#/components/schemas/SessionNotFoundError"
  2314. }
  2315. ]
  2316. }
  2317. }
  2318. }
  2319. },
  2320. "409": {
  2321. "description": "SessionBusyError",
  2322. "content": {
  2323. "application/json": {
  2324. "schema": {
  2325. "$ref": "#/components/schemas/SessionBusyError"
  2326. }
  2327. }
  2328. }
  2329. },
  2330. "500": {
  2331. "description": "UnknownError",
  2332. "content": {
  2333. "application/json": {
  2334. "schema": {
  2335. "$ref": "#/components/schemas/UnknownError"
  2336. }
  2337. }
  2338. }
  2339. }
  2340. },
  2341. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2342. "summary": "Stage session revert",
  2343. "requestBody": {
  2344. "content": {
  2345. "application/json": {
  2346. "schema": {
  2347. "type": "object",
  2348. "properties": {
  2349. "messageID": {
  2350. "type": "string",
  2351. "allOf": [
  2352. {
  2353. "pattern": "^msg_"
  2354. }
  2355. ]
  2356. },
  2357. "files": {
  2358. "anyOf": [
  2359. {
  2360. "type": "boolean"
  2361. },
  2362. {
  2363. "type": "null"
  2364. }
  2365. ]
  2366. }
  2367. },
  2368. "required": ["messageID"],
  2369. "additionalProperties": false
  2370. }
  2371. }
  2372. },
  2373. "required": true
  2374. }
  2375. }
  2376. },
  2377. "/api/session/{sessionID}/revert/clear": {
  2378. "post": {
  2379. "tags": ["session"],
  2380. "operationId": "v2.session.revert.clear",
  2381. "parameters": [
  2382. {
  2383. "name": "sessionID",
  2384. "in": "path",
  2385. "schema": {
  2386. "type": "string",
  2387. "allOf": [
  2388. {
  2389. "pattern": "^ses"
  2390. }
  2391. ]
  2392. },
  2393. "required": true
  2394. }
  2395. ],
  2396. "security": [],
  2397. "responses": {
  2398. "204": {
  2399. "description": "<No Content>"
  2400. },
  2401. "400": {
  2402. "description": "InvalidRequestError",
  2403. "content": {
  2404. "application/json": {
  2405. "schema": {
  2406. "$ref": "#/components/schemas/InvalidRequestError"
  2407. }
  2408. }
  2409. }
  2410. },
  2411. "401": {
  2412. "description": "UnauthorizedError",
  2413. "content": {
  2414. "application/json": {
  2415. "schema": {
  2416. "$ref": "#/components/schemas/UnauthorizedError"
  2417. }
  2418. }
  2419. }
  2420. },
  2421. "404": {
  2422. "description": "SessionNotFoundError",
  2423. "content": {
  2424. "application/json": {
  2425. "schema": {
  2426. "anyOf": [
  2427. {
  2428. "$ref": "#/components/schemas/SessionNotFoundError"
  2429. },
  2430. {
  2431. "$ref": "#/components/schemas/SessionNotFoundError"
  2432. }
  2433. ]
  2434. }
  2435. }
  2436. }
  2437. },
  2438. "409": {
  2439. "description": "SessionBusyError",
  2440. "content": {
  2441. "application/json": {
  2442. "schema": {
  2443. "$ref": "#/components/schemas/SessionBusyError"
  2444. }
  2445. }
  2446. }
  2447. },
  2448. "500": {
  2449. "description": "UnknownError",
  2450. "content": {
  2451. "application/json": {
  2452. "schema": {
  2453. "$ref": "#/components/schemas/UnknownError"
  2454. }
  2455. }
  2456. }
  2457. }
  2458. },
  2459. "summary": "Clear staged revert"
  2460. }
  2461. },
  2462. "/api/session/{sessionID}/revert/commit": {
  2463. "post": {
  2464. "tags": ["session"],
  2465. "operationId": "v2.session.revert.commit",
  2466. "parameters": [
  2467. {
  2468. "name": "sessionID",
  2469. "in": "path",
  2470. "schema": {
  2471. "type": "string",
  2472. "allOf": [
  2473. {
  2474. "pattern": "^ses"
  2475. }
  2476. ]
  2477. },
  2478. "required": true
  2479. }
  2480. ],
  2481. "security": [],
  2482. "responses": {
  2483. "204": {
  2484. "description": "<No Content>"
  2485. },
  2486. "400": {
  2487. "description": "InvalidRequestError",
  2488. "content": {
  2489. "application/json": {
  2490. "schema": {
  2491. "$ref": "#/components/schemas/InvalidRequestError"
  2492. }
  2493. }
  2494. }
  2495. },
  2496. "401": {
  2497. "description": "UnauthorizedError",
  2498. "content": {
  2499. "application/json": {
  2500. "schema": {
  2501. "$ref": "#/components/schemas/UnauthorizedError"
  2502. }
  2503. }
  2504. }
  2505. },
  2506. "404": {
  2507. "description": "SessionNotFoundError",
  2508. "content": {
  2509. "application/json": {
  2510. "schema": {
  2511. "anyOf": [
  2512. {
  2513. "$ref": "#/components/schemas/SessionNotFoundError"
  2514. },
  2515. {
  2516. "$ref": "#/components/schemas/SessionNotFoundError"
  2517. }
  2518. ]
  2519. }
  2520. }
  2521. }
  2522. },
  2523. "409": {
  2524. "description": "SessionBusyError",
  2525. "content": {
  2526. "application/json": {
  2527. "schema": {
  2528. "$ref": "#/components/schemas/SessionBusyError"
  2529. }
  2530. }
  2531. }
  2532. }
  2533. },
  2534. "summary": "Commit staged revert"
  2535. }
  2536. },
  2537. "/api/session/{sessionID}/context": {
  2538. "get": {
  2539. "tags": ["session"],
  2540. "operationId": "v2.session.context",
  2541. "parameters": [
  2542. {
  2543. "name": "sessionID",
  2544. "in": "path",
  2545. "schema": {
  2546. "type": "string",
  2547. "allOf": [
  2548. {
  2549. "pattern": "^ses"
  2550. }
  2551. ]
  2552. },
  2553. "required": true
  2554. }
  2555. ],
  2556. "security": [],
  2557. "responses": {
  2558. "200": {
  2559. "description": "Success",
  2560. "content": {
  2561. "application/json": {
  2562. "schema": {
  2563. "type": "object",
  2564. "properties": {
  2565. "data": {
  2566. "type": "array",
  2567. "items": {
  2568. "$ref": "#/components/schemas/Session.Message.Info"
  2569. }
  2570. }
  2571. },
  2572. "required": ["data"],
  2573. "additionalProperties": false
  2574. }
  2575. }
  2576. }
  2577. },
  2578. "400": {
  2579. "description": "InvalidRequestError",
  2580. "content": {
  2581. "application/json": {
  2582. "schema": {
  2583. "$ref": "#/components/schemas/InvalidRequestError"
  2584. }
  2585. }
  2586. }
  2587. },
  2588. "401": {
  2589. "description": "UnauthorizedError",
  2590. "content": {
  2591. "application/json": {
  2592. "schema": {
  2593. "$ref": "#/components/schemas/UnauthorizedError"
  2594. }
  2595. }
  2596. }
  2597. },
  2598. "404": {
  2599. "description": "SessionNotFoundError",
  2600. "content": {
  2601. "application/json": {
  2602. "schema": {
  2603. "anyOf": [
  2604. {
  2605. "$ref": "#/components/schemas/SessionNotFoundError"
  2606. },
  2607. {
  2608. "$ref": "#/components/schemas/SessionNotFoundError"
  2609. }
  2610. ]
  2611. }
  2612. }
  2613. }
  2614. },
  2615. "500": {
  2616. "description": "UnknownError",
  2617. "content": {
  2618. "application/json": {
  2619. "schema": {
  2620. "$ref": "#/components/schemas/UnknownError"
  2621. }
  2622. }
  2623. }
  2624. }
  2625. },
  2626. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2627. "summary": "Get session context"
  2628. }
  2629. },
  2630. "/api/session/{sessionID}/instructions/entries": {
  2631. "get": {
  2632. "tags": ["session"],
  2633. "operationId": "v2.session.instructions.entry.list",
  2634. "parameters": [
  2635. {
  2636. "name": "sessionID",
  2637. "in": "path",
  2638. "schema": {
  2639. "type": "string",
  2640. "allOf": [
  2641. {
  2642. "pattern": "^ses"
  2643. }
  2644. ]
  2645. },
  2646. "required": true
  2647. }
  2648. ],
  2649. "security": [],
  2650. "responses": {
  2651. "200": {
  2652. "description": "Success",
  2653. "content": {
  2654. "application/json": {
  2655. "schema": {
  2656. "type": "object",
  2657. "properties": {
  2658. "data": {
  2659. "type": "array",
  2660. "items": {
  2661. "$ref": "#/components/schemas/InstructionEntry.Info"
  2662. }
  2663. }
  2664. },
  2665. "required": ["data"],
  2666. "additionalProperties": false
  2667. }
  2668. }
  2669. }
  2670. },
  2671. "400": {
  2672. "description": "InvalidRequestError",
  2673. "content": {
  2674. "application/json": {
  2675. "schema": {
  2676. "$ref": "#/components/schemas/InvalidRequestError"
  2677. }
  2678. }
  2679. }
  2680. },
  2681. "401": {
  2682. "description": "UnauthorizedError",
  2683. "content": {
  2684. "application/json": {
  2685. "schema": {
  2686. "$ref": "#/components/schemas/UnauthorizedError"
  2687. }
  2688. }
  2689. }
  2690. },
  2691. "404": {
  2692. "description": "SessionNotFoundError",
  2693. "content": {
  2694. "application/json": {
  2695. "schema": {
  2696. "anyOf": [
  2697. {
  2698. "$ref": "#/components/schemas/SessionNotFoundError"
  2699. },
  2700. {
  2701. "$ref": "#/components/schemas/SessionNotFoundError"
  2702. }
  2703. ]
  2704. }
  2705. }
  2706. }
  2707. }
  2708. },
  2709. "description": "List API-managed instruction entries attached to the session.",
  2710. "summary": "List instruction entries"
  2711. }
  2712. },
  2713. "/api/session/{sessionID}/instructions/entries/{key}": {
  2714. "put": {
  2715. "tags": ["session"],
  2716. "operationId": "v2.session.instructions.entry.put",
  2717. "parameters": [
  2718. {
  2719. "name": "sessionID",
  2720. "in": "path",
  2721. "schema": {
  2722. "type": "string",
  2723. "allOf": [
  2724. {
  2725. "pattern": "^ses"
  2726. }
  2727. ]
  2728. },
  2729. "required": true
  2730. },
  2731. {
  2732. "name": "key",
  2733. "in": "path",
  2734. "schema": {
  2735. "$ref": "#/components/schemas/InstructionEntry.Key"
  2736. },
  2737. "required": true
  2738. }
  2739. ],
  2740. "security": [],
  2741. "responses": {
  2742. "204": {
  2743. "description": "<No Content>"
  2744. },
  2745. "400": {
  2746. "description": "InvalidRequestError",
  2747. "content": {
  2748. "application/json": {
  2749. "schema": {
  2750. "$ref": "#/components/schemas/InvalidRequestError"
  2751. }
  2752. }
  2753. }
  2754. },
  2755. "401": {
  2756. "description": "UnauthorizedError",
  2757. "content": {
  2758. "application/json": {
  2759. "schema": {
  2760. "$ref": "#/components/schemas/UnauthorizedError"
  2761. }
  2762. }
  2763. }
  2764. },
  2765. "404": {
  2766. "description": "SessionNotFoundError",
  2767. "content": {
  2768. "application/json": {
  2769. "schema": {
  2770. "anyOf": [
  2771. {
  2772. "$ref": "#/components/schemas/SessionNotFoundError"
  2773. },
  2774. {
  2775. "$ref": "#/components/schemas/SessionNotFoundError"
  2776. }
  2777. ]
  2778. }
  2779. }
  2780. }
  2781. }
  2782. },
  2783. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  2784. "summary": "Put instruction entry",
  2785. "requestBody": {
  2786. "content": {
  2787. "application/json": {
  2788. "schema": {
  2789. "type": "object",
  2790. "properties": {
  2791. "value": {}
  2792. },
  2793. "required": ["value"],
  2794. "additionalProperties": false
  2795. }
  2796. }
  2797. },
  2798. "required": true
  2799. }
  2800. },
  2801. "delete": {
  2802. "tags": ["session"],
  2803. "operationId": "v2.session.instructions.entry.remove",
  2804. "parameters": [
  2805. {
  2806. "name": "sessionID",
  2807. "in": "path",
  2808. "schema": {
  2809. "type": "string",
  2810. "allOf": [
  2811. {
  2812. "pattern": "^ses"
  2813. }
  2814. ]
  2815. },
  2816. "required": true
  2817. },
  2818. {
  2819. "name": "key",
  2820. "in": "path",
  2821. "schema": {
  2822. "$ref": "#/components/schemas/InstructionEntry.Key"
  2823. },
  2824. "required": true
  2825. }
  2826. ],
  2827. "security": [],
  2828. "responses": {
  2829. "204": {
  2830. "description": "<No Content>"
  2831. },
  2832. "400": {
  2833. "description": "InvalidRequestError",
  2834. "content": {
  2835. "application/json": {
  2836. "schema": {
  2837. "$ref": "#/components/schemas/InvalidRequestError"
  2838. }
  2839. }
  2840. }
  2841. },
  2842. "401": {
  2843. "description": "UnauthorizedError",
  2844. "content": {
  2845. "application/json": {
  2846. "schema": {
  2847. "$ref": "#/components/schemas/UnauthorizedError"
  2848. }
  2849. }
  2850. }
  2851. },
  2852. "404": {
  2853. "description": "SessionNotFoundError",
  2854. "content": {
  2855. "application/json": {
  2856. "schema": {
  2857. "anyOf": [
  2858. {
  2859. "$ref": "#/components/schemas/SessionNotFoundError"
  2860. },
  2861. {
  2862. "$ref": "#/components/schemas/SessionNotFoundError"
  2863. }
  2864. ]
  2865. }
  2866. }
  2867. }
  2868. }
  2869. },
  2870. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  2871. "summary": "Remove instruction entry"
  2872. }
  2873. },
  2874. "/api/experimental/session/{sessionID}/log": {
  2875. "get": {
  2876. "tags": ["session"],
  2877. "operationId": "v2.session.log",
  2878. "parameters": [
  2879. {
  2880. "name": "sessionID",
  2881. "in": "path",
  2882. "schema": {
  2883. "type": "string",
  2884. "allOf": [
  2885. {
  2886. "pattern": "^ses"
  2887. }
  2888. ]
  2889. },
  2890. "required": true
  2891. },
  2892. {
  2893. "name": "after",
  2894. "in": "query",
  2895. "schema": {
  2896. "anyOf": [
  2897. {
  2898. "type": "string"
  2899. },
  2900. {
  2901. "type": "null"
  2902. }
  2903. ]
  2904. },
  2905. "required": false
  2906. },
  2907. {
  2908. "name": "follow",
  2909. "in": "query",
  2910. "schema": {
  2911. "anyOf": [
  2912. {
  2913. "type": "string",
  2914. "enum": ["true", "false"]
  2915. },
  2916. {
  2917. "type": "null"
  2918. }
  2919. ]
  2920. },
  2921. "required": false
  2922. }
  2923. ],
  2924. "security": [],
  2925. "responses": {
  2926. "200": {
  2927. "description": "Success",
  2928. "content": {
  2929. "text/event-stream": {
  2930. "schema": {
  2931. "type": "object",
  2932. "properties": {
  2933. "id": {
  2934. "anyOf": [
  2935. {
  2936. "type": "string"
  2937. },
  2938. {
  2939. "type": "null"
  2940. }
  2941. ]
  2942. },
  2943. "event": {
  2944. "type": "string"
  2945. },
  2946. "data": {
  2947. "$ref": "#/components/schemas/SessionLogItemStream"
  2948. }
  2949. },
  2950. "required": ["id", "event", "data"],
  2951. "additionalProperties": false
  2952. },
  2953. "x-effect-stream": {
  2954. "encoding": "sse",
  2955. "causeSchema": {
  2956. "type": "array",
  2957. "items": {
  2958. "anyOf": [
  2959. {
  2960. "type": "object",
  2961. "properties": {
  2962. "_tag": {
  2963. "type": "string",
  2964. "enum": ["Fail"]
  2965. },
  2966. "error": {
  2967. "not": {}
  2968. }
  2969. },
  2970. "required": ["_tag", "error"],
  2971. "additionalProperties": false
  2972. },
  2973. {
  2974. "type": "object",
  2975. "properties": {
  2976. "_tag": {
  2977. "type": "string",
  2978. "enum": ["Die"]
  2979. },
  2980. "defect": {}
  2981. },
  2982. "required": ["_tag", "defect"],
  2983. "additionalProperties": false
  2984. },
  2985. {
  2986. "type": "object",
  2987. "properties": {
  2988. "_tag": {
  2989. "type": "string",
  2990. "enum": ["Interrupt"]
  2991. },
  2992. "fiberId": {
  2993. "anyOf": [
  2994. {
  2995. "type": "number"
  2996. },
  2997. {
  2998. "type": "null"
  2999. }
  3000. ]
  3001. }
  3002. },
  3003. "required": ["_tag", "fiberId"],
  3004. "additionalProperties": false
  3005. }
  3006. ]
  3007. }
  3008. },
  3009. "errorSchema": {
  3010. "not": {}
  3011. },
  3012. "failureEvent": "effect/httpapi/stream/failure"
  3013. }
  3014. }
  3015. }
  3016. },
  3017. "400": {
  3018. "description": "InvalidRequestError",
  3019. "content": {
  3020. "application/json": {
  3021. "schema": {
  3022. "$ref": "#/components/schemas/InvalidRequestError"
  3023. }
  3024. }
  3025. }
  3026. },
  3027. "401": {
  3028. "description": "UnauthorizedError",
  3029. "content": {
  3030. "application/json": {
  3031. "schema": {
  3032. "$ref": "#/components/schemas/UnauthorizedError"
  3033. }
  3034. }
  3035. }
  3036. },
  3037. "404": {
  3038. "description": "SessionNotFoundError",
  3039. "content": {
  3040. "application/json": {
  3041. "schema": {
  3042. "anyOf": [
  3043. {
  3044. "$ref": "#/components/schemas/SessionNotFoundError"
  3045. },
  3046. {
  3047. "$ref": "#/components/schemas/SessionNotFoundError"
  3048. }
  3049. ]
  3050. }
  3051. }
  3052. }
  3053. }
  3054. },
  3055. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3056. "summary": "Read the session log"
  3057. }
  3058. },
  3059. "/api/session/{sessionID}/interrupt": {
  3060. "post": {
  3061. "tags": ["session"],
  3062. "operationId": "v2.session.interrupt",
  3063. "parameters": [
  3064. {
  3065. "name": "sessionID",
  3066. "in": "path",
  3067. "schema": {
  3068. "type": "string",
  3069. "allOf": [
  3070. {
  3071. "pattern": "^ses"
  3072. }
  3073. ]
  3074. },
  3075. "required": true
  3076. }
  3077. ],
  3078. "security": [],
  3079. "responses": {
  3080. "204": {
  3081. "description": "<No Content>"
  3082. },
  3083. "400": {
  3084. "description": "InvalidRequestError",
  3085. "content": {
  3086. "application/json": {
  3087. "schema": {
  3088. "$ref": "#/components/schemas/InvalidRequestError"
  3089. }
  3090. }
  3091. }
  3092. },
  3093. "401": {
  3094. "description": "UnauthorizedError",
  3095. "content": {
  3096. "application/json": {
  3097. "schema": {
  3098. "$ref": "#/components/schemas/UnauthorizedError"
  3099. }
  3100. }
  3101. }
  3102. },
  3103. "404": {
  3104. "description": "SessionNotFoundError",
  3105. "content": {
  3106. "application/json": {
  3107. "schema": {
  3108. "anyOf": [
  3109. {
  3110. "$ref": "#/components/schemas/SessionNotFoundError"
  3111. },
  3112. {
  3113. "$ref": "#/components/schemas/SessionNotFoundError"
  3114. }
  3115. ]
  3116. }
  3117. }
  3118. }
  3119. }
  3120. },
  3121. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3122. "summary": "Interrupt session execution"
  3123. }
  3124. },
  3125. "/api/session/{sessionID}/background": {
  3126. "post": {
  3127. "tags": ["session"],
  3128. "operationId": "v2.session.background",
  3129. "parameters": [
  3130. {
  3131. "name": "sessionID",
  3132. "in": "path",
  3133. "schema": {
  3134. "type": "string",
  3135. "allOf": [
  3136. {
  3137. "pattern": "^ses"
  3138. }
  3139. ]
  3140. },
  3141. "required": true
  3142. }
  3143. ],
  3144. "security": [],
  3145. "responses": {
  3146. "204": {
  3147. "description": "<No Content>"
  3148. },
  3149. "400": {
  3150. "description": "InvalidRequestError",
  3151. "content": {
  3152. "application/json": {
  3153. "schema": {
  3154. "$ref": "#/components/schemas/InvalidRequestError"
  3155. }
  3156. }
  3157. }
  3158. },
  3159. "401": {
  3160. "description": "UnauthorizedError",
  3161. "content": {
  3162. "application/json": {
  3163. "schema": {
  3164. "$ref": "#/components/schemas/UnauthorizedError"
  3165. }
  3166. }
  3167. }
  3168. },
  3169. "404": {
  3170. "description": "SessionNotFoundError",
  3171. "content": {
  3172. "application/json": {
  3173. "schema": {
  3174. "anyOf": [
  3175. {
  3176. "$ref": "#/components/schemas/SessionNotFoundError"
  3177. },
  3178. {
  3179. "$ref": "#/components/schemas/SessionNotFoundError"
  3180. }
  3181. ]
  3182. }
  3183. }
  3184. }
  3185. }
  3186. },
  3187. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3188. "summary": "Background blocking session tools"
  3189. }
  3190. },
  3191. "/api/session/{sessionID}/message/{messageID}": {
  3192. "get": {
  3193. "tags": ["session"],
  3194. "operationId": "v2.session.message",
  3195. "parameters": [
  3196. {
  3197. "name": "sessionID",
  3198. "in": "path",
  3199. "schema": {
  3200. "type": "string",
  3201. "allOf": [
  3202. {
  3203. "pattern": "^ses"
  3204. }
  3205. ]
  3206. },
  3207. "required": true
  3208. },
  3209. {
  3210. "name": "messageID",
  3211. "in": "path",
  3212. "schema": {
  3213. "type": "string",
  3214. "allOf": [
  3215. {
  3216. "pattern": "^msg_"
  3217. }
  3218. ]
  3219. },
  3220. "required": true
  3221. }
  3222. ],
  3223. "security": [],
  3224. "responses": {
  3225. "200": {
  3226. "description": "Success",
  3227. "content": {
  3228. "application/json": {
  3229. "schema": {
  3230. "type": "object",
  3231. "properties": {
  3232. "data": {
  3233. "$ref": "#/components/schemas/Session.Message.Info"
  3234. }
  3235. },
  3236. "required": ["data"],
  3237. "additionalProperties": false
  3238. }
  3239. }
  3240. }
  3241. },
  3242. "400": {
  3243. "description": "InvalidRequestError",
  3244. "content": {
  3245. "application/json": {
  3246. "schema": {
  3247. "$ref": "#/components/schemas/InvalidRequestError"
  3248. }
  3249. }
  3250. }
  3251. },
  3252. "401": {
  3253. "description": "UnauthorizedError",
  3254. "content": {
  3255. "application/json": {
  3256. "schema": {
  3257. "$ref": "#/components/schemas/UnauthorizedError"
  3258. }
  3259. }
  3260. }
  3261. },
  3262. "404": {
  3263. "description": "SessionNotFoundError | MessageNotFoundError",
  3264. "content": {
  3265. "application/json": {
  3266. "schema": {
  3267. "anyOf": [
  3268. {
  3269. "$ref": "#/components/schemas/MessageNotFoundError"
  3270. },
  3271. {
  3272. "$ref": "#/components/schemas/SessionNotFoundError"
  3273. },
  3274. {
  3275. "$ref": "#/components/schemas/SessionNotFoundError"
  3276. }
  3277. ]
  3278. }
  3279. }
  3280. }
  3281. }
  3282. },
  3283. "description": "Retrieve one projected message owned by the Session.",
  3284. "summary": "Get session message"
  3285. }
  3286. },
  3287. "/api/session/{sessionID}/message": {
  3288. "get": {
  3289. "tags": ["session"],
  3290. "operationId": "v2.message.list",
  3291. "parameters": [
  3292. {
  3293. "name": "sessionID",
  3294. "in": "path",
  3295. "schema": {
  3296. "type": "string",
  3297. "allOf": [
  3298. {
  3299. "pattern": "^ses"
  3300. }
  3301. ]
  3302. },
  3303. "required": true
  3304. },
  3305. {
  3306. "name": "limit",
  3307. "in": "query",
  3308. "schema": {
  3309. "anyOf": [
  3310. {
  3311. "type": "string"
  3312. },
  3313. {
  3314. "type": "null"
  3315. }
  3316. ],
  3317. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3318. },
  3319. "required": false
  3320. },
  3321. {
  3322. "name": "order",
  3323. "in": "query",
  3324. "schema": {
  3325. "anyOf": [
  3326. {
  3327. "type": "string",
  3328. "enum": ["asc", "desc"]
  3329. },
  3330. {
  3331. "type": "null"
  3332. }
  3333. ],
  3334. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3335. },
  3336. "required": false
  3337. },
  3338. {
  3339. "name": "cursor",
  3340. "in": "query",
  3341. "schema": {
  3342. "anyOf": [
  3343. {
  3344. "type": "string",
  3345. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3346. },
  3347. {
  3348. "type": "null"
  3349. }
  3350. ]
  3351. },
  3352. "required": false
  3353. }
  3354. ],
  3355. "security": [],
  3356. "responses": {
  3357. "200": {
  3358. "description": "SessionMessagesResponse",
  3359. "content": {
  3360. "application/json": {
  3361. "schema": {
  3362. "$ref": "#/components/schemas/SessionMessagesResponse"
  3363. }
  3364. }
  3365. }
  3366. },
  3367. "400": {
  3368. "description": "InvalidCursorError | InvalidRequestError",
  3369. "content": {
  3370. "application/json": {
  3371. "schema": {
  3372. "anyOf": [
  3373. {
  3374. "$ref": "#/components/schemas/InvalidCursorError"
  3375. },
  3376. {
  3377. "$ref": "#/components/schemas/InvalidRequestError"
  3378. }
  3379. ]
  3380. }
  3381. }
  3382. }
  3383. },
  3384. "401": {
  3385. "description": "UnauthorizedError",
  3386. "content": {
  3387. "application/json": {
  3388. "schema": {
  3389. "$ref": "#/components/schemas/UnauthorizedError"
  3390. }
  3391. }
  3392. }
  3393. },
  3394. "404": {
  3395. "description": "SessionNotFoundError",
  3396. "content": {
  3397. "application/json": {
  3398. "schema": {
  3399. "anyOf": [
  3400. {
  3401. "$ref": "#/components/schemas/SessionNotFoundError"
  3402. },
  3403. {
  3404. "$ref": "#/components/schemas/SessionNotFoundError"
  3405. }
  3406. ]
  3407. }
  3408. }
  3409. }
  3410. },
  3411. "500": {
  3412. "description": "UnknownError",
  3413. "content": {
  3414. "application/json": {
  3415. "schema": {
  3416. "$ref": "#/components/schemas/UnknownError"
  3417. }
  3418. }
  3419. }
  3420. }
  3421. },
  3422. "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.",
  3423. "summary": "Get session messages"
  3424. }
  3425. },
  3426. "/api/model": {
  3427. "get": {
  3428. "tags": ["model"],
  3429. "operationId": "v2.model.list",
  3430. "parameters": [
  3431. {
  3432. "name": "location",
  3433. "in": "query",
  3434. "schema": {
  3435. "anyOf": [
  3436. {
  3437. "type": "object",
  3438. "properties": {
  3439. "directory": {
  3440. "anyOf": [
  3441. {
  3442. "type": "string"
  3443. },
  3444. {
  3445. "type": "null"
  3446. }
  3447. ]
  3448. },
  3449. "workspace": {
  3450. "anyOf": [
  3451. {
  3452. "type": "string"
  3453. },
  3454. {
  3455. "type": "null"
  3456. }
  3457. ]
  3458. }
  3459. },
  3460. "additionalProperties": false
  3461. },
  3462. {
  3463. "type": "null"
  3464. }
  3465. ]
  3466. },
  3467. "required": false,
  3468. "style": "deepObject",
  3469. "explode": true
  3470. }
  3471. ],
  3472. "security": [],
  3473. "responses": {
  3474. "200": {
  3475. "description": "Success",
  3476. "content": {
  3477. "application/json": {
  3478. "schema": {
  3479. "type": "object",
  3480. "properties": {
  3481. "location": {
  3482. "$ref": "#/components/schemas/Location.Info"
  3483. },
  3484. "data": {
  3485. "type": "array",
  3486. "items": {
  3487. "$ref": "#/components/schemas/Model.Info"
  3488. }
  3489. }
  3490. },
  3491. "required": ["location", "data"],
  3492. "additionalProperties": false
  3493. }
  3494. }
  3495. }
  3496. },
  3497. "400": {
  3498. "description": "InvalidRequestError",
  3499. "content": {
  3500. "application/json": {
  3501. "schema": {
  3502. "$ref": "#/components/schemas/InvalidRequestError"
  3503. }
  3504. }
  3505. }
  3506. },
  3507. "401": {
  3508. "description": "UnauthorizedError",
  3509. "content": {
  3510. "application/json": {
  3511. "schema": {
  3512. "$ref": "#/components/schemas/UnauthorizedError"
  3513. }
  3514. }
  3515. }
  3516. },
  3517. "503": {
  3518. "description": "ServiceUnavailableError",
  3519. "content": {
  3520. "application/json": {
  3521. "schema": {
  3522. "$ref": "#/components/schemas/ServiceUnavailableError"
  3523. }
  3524. }
  3525. }
  3526. }
  3527. },
  3528. "description": "Retrieve available models ordered by release date.",
  3529. "summary": "List models"
  3530. }
  3531. },
  3532. "/api/model/default": {
  3533. "get": {
  3534. "tags": ["model"],
  3535. "operationId": "v2.model.default",
  3536. "parameters": [
  3537. {
  3538. "name": "location",
  3539. "in": "query",
  3540. "schema": {
  3541. "anyOf": [
  3542. {
  3543. "type": "object",
  3544. "properties": {
  3545. "directory": {
  3546. "anyOf": [
  3547. {
  3548. "type": "string"
  3549. },
  3550. {
  3551. "type": "null"
  3552. }
  3553. ]
  3554. },
  3555. "workspace": {
  3556. "anyOf": [
  3557. {
  3558. "type": "string"
  3559. },
  3560. {
  3561. "type": "null"
  3562. }
  3563. ]
  3564. }
  3565. },
  3566. "additionalProperties": false
  3567. },
  3568. {
  3569. "type": "null"
  3570. }
  3571. ]
  3572. },
  3573. "required": false,
  3574. "style": "deepObject",
  3575. "explode": true
  3576. }
  3577. ],
  3578. "security": [],
  3579. "responses": {
  3580. "200": {
  3581. "description": "Success",
  3582. "content": {
  3583. "application/json": {
  3584. "schema": {
  3585. "type": "object",
  3586. "properties": {
  3587. "location": {
  3588. "$ref": "#/components/schemas/Location.Info"
  3589. },
  3590. "data": {
  3591. "anyOf": [
  3592. {
  3593. "$ref": "#/components/schemas/Model.Info"
  3594. },
  3595. {
  3596. "type": "null"
  3597. }
  3598. ]
  3599. }
  3600. },
  3601. "required": ["location", "data"],
  3602. "additionalProperties": false
  3603. }
  3604. }
  3605. }
  3606. },
  3607. "400": {
  3608. "description": "InvalidRequestError",
  3609. "content": {
  3610. "application/json": {
  3611. "schema": {
  3612. "$ref": "#/components/schemas/InvalidRequestError"
  3613. }
  3614. }
  3615. }
  3616. },
  3617. "401": {
  3618. "description": "UnauthorizedError",
  3619. "content": {
  3620. "application/json": {
  3621. "schema": {
  3622. "$ref": "#/components/schemas/UnauthorizedError"
  3623. }
  3624. }
  3625. }
  3626. },
  3627. "503": {
  3628. "description": "ServiceUnavailableError",
  3629. "content": {
  3630. "application/json": {
  3631. "schema": {
  3632. "$ref": "#/components/schemas/ServiceUnavailableError"
  3633. }
  3634. }
  3635. }
  3636. }
  3637. },
  3638. "description": "Retrieve the model used when a session has no explicit model selection.",
  3639. "summary": "Get default model"
  3640. }
  3641. },
  3642. "/api/generate": {
  3643. "post": {
  3644. "tags": ["generate"],
  3645. "operationId": "v2.generate.text",
  3646. "parameters": [
  3647. {
  3648. "name": "location",
  3649. "in": "query",
  3650. "schema": {
  3651. "anyOf": [
  3652. {
  3653. "type": "object",
  3654. "properties": {
  3655. "directory": {
  3656. "anyOf": [
  3657. {
  3658. "type": "string"
  3659. },
  3660. {
  3661. "type": "null"
  3662. }
  3663. ]
  3664. },
  3665. "workspace": {
  3666. "anyOf": [
  3667. {
  3668. "type": "string"
  3669. },
  3670. {
  3671. "type": "null"
  3672. }
  3673. ]
  3674. }
  3675. },
  3676. "additionalProperties": false
  3677. },
  3678. {
  3679. "type": "null"
  3680. }
  3681. ]
  3682. },
  3683. "required": false,
  3684. "style": "deepObject",
  3685. "explode": true
  3686. }
  3687. ],
  3688. "security": [],
  3689. "responses": {
  3690. "200": {
  3691. "description": "GenerateTextResponse",
  3692. "content": {
  3693. "application/json": {
  3694. "schema": {
  3695. "$ref": "#/components/schemas/GenerateTextResponse"
  3696. }
  3697. }
  3698. }
  3699. },
  3700. "400": {
  3701. "description": "InvalidRequestError",
  3702. "content": {
  3703. "application/json": {
  3704. "schema": {
  3705. "anyOf": [
  3706. {
  3707. "$ref": "#/components/schemas/InvalidRequestError1"
  3708. },
  3709. {
  3710. "$ref": "#/components/schemas/InvalidRequestError"
  3711. }
  3712. ]
  3713. }
  3714. }
  3715. }
  3716. },
  3717. "401": {
  3718. "description": "UnauthorizedError",
  3719. "content": {
  3720. "application/json": {
  3721. "schema": {
  3722. "$ref": "#/components/schemas/UnauthorizedError"
  3723. }
  3724. }
  3725. }
  3726. },
  3727. "503": {
  3728. "description": "ServiceUnavailableError",
  3729. "content": {
  3730. "application/json": {
  3731. "schema": {
  3732. "$ref": "#/components/schemas/ServiceUnavailableError"
  3733. }
  3734. }
  3735. }
  3736. }
  3737. },
  3738. "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.",
  3739. "summary": "Generate text",
  3740. "requestBody": {
  3741. "content": {
  3742. "application/json": {
  3743. "schema": {
  3744. "type": "object",
  3745. "properties": {
  3746. "prompt": {
  3747. "type": "string"
  3748. },
  3749. "model": {
  3750. "anyOf": [
  3751. {
  3752. "$ref": "#/components/schemas/Model.Ref"
  3753. },
  3754. {
  3755. "type": "null"
  3756. }
  3757. ]
  3758. }
  3759. },
  3760. "required": ["prompt"],
  3761. "additionalProperties": false
  3762. }
  3763. }
  3764. },
  3765. "required": true
  3766. }
  3767. }
  3768. },
  3769. "/api/provider": {
  3770. "get": {
  3771. "tags": ["provider"],
  3772. "operationId": "v2.provider.list",
  3773. "parameters": [
  3774. {
  3775. "name": "location",
  3776. "in": "query",
  3777. "schema": {
  3778. "anyOf": [
  3779. {
  3780. "type": "object",
  3781. "properties": {
  3782. "directory": {
  3783. "anyOf": [
  3784. {
  3785. "type": "string"
  3786. },
  3787. {
  3788. "type": "null"
  3789. }
  3790. ]
  3791. },
  3792. "workspace": {
  3793. "anyOf": [
  3794. {
  3795. "type": "string"
  3796. },
  3797. {
  3798. "type": "null"
  3799. }
  3800. ]
  3801. }
  3802. },
  3803. "additionalProperties": false
  3804. },
  3805. {
  3806. "type": "null"
  3807. }
  3808. ]
  3809. },
  3810. "required": false,
  3811. "style": "deepObject",
  3812. "explode": true
  3813. }
  3814. ],
  3815. "security": [],
  3816. "responses": {
  3817. "200": {
  3818. "description": "Success",
  3819. "content": {
  3820. "application/json": {
  3821. "schema": {
  3822. "type": "object",
  3823. "properties": {
  3824. "location": {
  3825. "$ref": "#/components/schemas/Location.Info"
  3826. },
  3827. "data": {
  3828. "type": "array",
  3829. "items": {
  3830. "$ref": "#/components/schemas/ProviderV2.Info"
  3831. }
  3832. }
  3833. },
  3834. "required": ["location", "data"],
  3835. "additionalProperties": false
  3836. }
  3837. }
  3838. }
  3839. },
  3840. "400": {
  3841. "description": "InvalidRequestError",
  3842. "content": {
  3843. "application/json": {
  3844. "schema": {
  3845. "$ref": "#/components/schemas/InvalidRequestError"
  3846. }
  3847. }
  3848. }
  3849. },
  3850. "401": {
  3851. "description": "UnauthorizedError",
  3852. "content": {
  3853. "application/json": {
  3854. "schema": {
  3855. "$ref": "#/components/schemas/UnauthorizedError"
  3856. }
  3857. }
  3858. }
  3859. },
  3860. "503": {
  3861. "description": "ServiceUnavailableError",
  3862. "content": {
  3863. "application/json": {
  3864. "schema": {
  3865. "$ref": "#/components/schemas/ServiceUnavailableError"
  3866. }
  3867. }
  3868. }
  3869. }
  3870. },
  3871. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  3872. "summary": "List providers"
  3873. }
  3874. },
  3875. "/api/provider/{providerID}": {
  3876. "get": {
  3877. "tags": ["provider"],
  3878. "operationId": "v2.provider.get",
  3879. "parameters": [
  3880. {
  3881. "name": "providerID",
  3882. "in": "path",
  3883. "schema": {
  3884. "type": "string"
  3885. },
  3886. "required": true
  3887. },
  3888. {
  3889. "name": "location",
  3890. "in": "query",
  3891. "schema": {
  3892. "anyOf": [
  3893. {
  3894. "type": "object",
  3895. "properties": {
  3896. "directory": {
  3897. "anyOf": [
  3898. {
  3899. "type": "string"
  3900. },
  3901. {
  3902. "type": "null"
  3903. }
  3904. ]
  3905. },
  3906. "workspace": {
  3907. "anyOf": [
  3908. {
  3909. "type": "string"
  3910. },
  3911. {
  3912. "type": "null"
  3913. }
  3914. ]
  3915. }
  3916. },
  3917. "additionalProperties": false
  3918. },
  3919. {
  3920. "type": "null"
  3921. }
  3922. ]
  3923. },
  3924. "required": false,
  3925. "style": "deepObject",
  3926. "explode": true
  3927. }
  3928. ],
  3929. "security": [],
  3930. "responses": {
  3931. "200": {
  3932. "description": "Success",
  3933. "content": {
  3934. "application/json": {
  3935. "schema": {
  3936. "type": "object",
  3937. "properties": {
  3938. "location": {
  3939. "$ref": "#/components/schemas/Location.Info"
  3940. },
  3941. "data": {
  3942. "$ref": "#/components/schemas/ProviderV2.Info"
  3943. }
  3944. },
  3945. "required": ["location", "data"],
  3946. "additionalProperties": false
  3947. }
  3948. }
  3949. }
  3950. },
  3951. "400": {
  3952. "description": "InvalidRequestError",
  3953. "content": {
  3954. "application/json": {
  3955. "schema": {
  3956. "$ref": "#/components/schemas/InvalidRequestError"
  3957. }
  3958. }
  3959. }
  3960. },
  3961. "401": {
  3962. "description": "UnauthorizedError",
  3963. "content": {
  3964. "application/json": {
  3965. "schema": {
  3966. "$ref": "#/components/schemas/UnauthorizedError"
  3967. }
  3968. }
  3969. }
  3970. },
  3971. "404": {
  3972. "description": "ProviderNotFoundError",
  3973. "content": {
  3974. "application/json": {
  3975. "schema": {
  3976. "$ref": "#/components/schemas/ProviderNotFoundError"
  3977. }
  3978. }
  3979. }
  3980. },
  3981. "503": {
  3982. "description": "ServiceUnavailableError",
  3983. "content": {
  3984. "application/json": {
  3985. "schema": {
  3986. "$ref": "#/components/schemas/ServiceUnavailableError"
  3987. }
  3988. }
  3989. }
  3990. }
  3991. },
  3992. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  3993. "summary": "Get provider"
  3994. }
  3995. },
  3996. "/api/integration": {
  3997. "get": {
  3998. "tags": ["integration"],
  3999. "operationId": "v2.integration.list",
  4000. "parameters": [
  4001. {
  4002. "name": "location",
  4003. "in": "query",
  4004. "schema": {
  4005. "anyOf": [
  4006. {
  4007. "type": "object",
  4008. "properties": {
  4009. "directory": {
  4010. "anyOf": [
  4011. {
  4012. "type": "string"
  4013. },
  4014. {
  4015. "type": "null"
  4016. }
  4017. ]
  4018. },
  4019. "workspace": {
  4020. "anyOf": [
  4021. {
  4022. "type": "string"
  4023. },
  4024. {
  4025. "type": "null"
  4026. }
  4027. ]
  4028. }
  4029. },
  4030. "additionalProperties": false
  4031. },
  4032. {
  4033. "type": "null"
  4034. }
  4035. ]
  4036. },
  4037. "required": false,
  4038. "style": "deepObject",
  4039. "explode": true
  4040. }
  4041. ],
  4042. "security": [],
  4043. "responses": {
  4044. "200": {
  4045. "description": "Success",
  4046. "content": {
  4047. "application/json": {
  4048. "schema": {
  4049. "type": "object",
  4050. "properties": {
  4051. "location": {
  4052. "$ref": "#/components/schemas/Location.Info"
  4053. },
  4054. "data": {
  4055. "type": "array",
  4056. "items": {
  4057. "$ref": "#/components/schemas/Integration.Info"
  4058. }
  4059. }
  4060. },
  4061. "required": ["location", "data"],
  4062. "additionalProperties": false
  4063. }
  4064. }
  4065. }
  4066. },
  4067. "400": {
  4068. "description": "InvalidRequestError",
  4069. "content": {
  4070. "application/json": {
  4071. "schema": {
  4072. "$ref": "#/components/schemas/InvalidRequestError"
  4073. }
  4074. }
  4075. }
  4076. },
  4077. "401": {
  4078. "description": "UnauthorizedError",
  4079. "content": {
  4080. "application/json": {
  4081. "schema": {
  4082. "$ref": "#/components/schemas/UnauthorizedError"
  4083. }
  4084. }
  4085. }
  4086. }
  4087. },
  4088. "description": "Retrieve available integrations and their authentication methods.",
  4089. "summary": "List integrations"
  4090. }
  4091. },
  4092. "/api/integration/{integrationID}": {
  4093. "get": {
  4094. "tags": ["integration"],
  4095. "operationId": "v2.integration.get",
  4096. "parameters": [
  4097. {
  4098. "name": "integrationID",
  4099. "in": "path",
  4100. "schema": {
  4101. "type": "string"
  4102. },
  4103. "required": true
  4104. },
  4105. {
  4106. "name": "location",
  4107. "in": "query",
  4108. "schema": {
  4109. "anyOf": [
  4110. {
  4111. "type": "object",
  4112. "properties": {
  4113. "directory": {
  4114. "anyOf": [
  4115. {
  4116. "type": "string"
  4117. },
  4118. {
  4119. "type": "null"
  4120. }
  4121. ]
  4122. },
  4123. "workspace": {
  4124. "anyOf": [
  4125. {
  4126. "type": "string"
  4127. },
  4128. {
  4129. "type": "null"
  4130. }
  4131. ]
  4132. }
  4133. },
  4134. "additionalProperties": false
  4135. },
  4136. {
  4137. "type": "null"
  4138. }
  4139. ]
  4140. },
  4141. "required": false,
  4142. "style": "deepObject",
  4143. "explode": true
  4144. }
  4145. ],
  4146. "security": [],
  4147. "responses": {
  4148. "200": {
  4149. "description": "Success",
  4150. "content": {
  4151. "application/json": {
  4152. "schema": {
  4153. "type": "object",
  4154. "properties": {
  4155. "location": {
  4156. "$ref": "#/components/schemas/Location.Info"
  4157. },
  4158. "data": {
  4159. "anyOf": [
  4160. {
  4161. "$ref": "#/components/schemas/Integration.Info"
  4162. },
  4163. {
  4164. "type": "null"
  4165. }
  4166. ]
  4167. }
  4168. },
  4169. "required": ["location", "data"],
  4170. "additionalProperties": false
  4171. }
  4172. }
  4173. }
  4174. },
  4175. "400": {
  4176. "description": "InvalidRequestError",
  4177. "content": {
  4178. "application/json": {
  4179. "schema": {
  4180. "$ref": "#/components/schemas/InvalidRequestError"
  4181. }
  4182. }
  4183. }
  4184. },
  4185. "401": {
  4186. "description": "UnauthorizedError",
  4187. "content": {
  4188. "application/json": {
  4189. "schema": {
  4190. "$ref": "#/components/schemas/UnauthorizedError"
  4191. }
  4192. }
  4193. }
  4194. }
  4195. },
  4196. "description": "Retrieve one integration and its authentication methods.",
  4197. "summary": "Get integration"
  4198. }
  4199. },
  4200. "/api/integration/{integrationID}/connect/key": {
  4201. "post": {
  4202. "tags": ["integration"],
  4203. "operationId": "v2.integration.connect.key",
  4204. "parameters": [
  4205. {
  4206. "name": "integrationID",
  4207. "in": "path",
  4208. "schema": {
  4209. "type": "string"
  4210. },
  4211. "required": true
  4212. },
  4213. {
  4214. "name": "location",
  4215. "in": "query",
  4216. "schema": {
  4217. "anyOf": [
  4218. {
  4219. "type": "object",
  4220. "properties": {
  4221. "directory": {
  4222. "anyOf": [
  4223. {
  4224. "type": "string"
  4225. },
  4226. {
  4227. "type": "null"
  4228. }
  4229. ]
  4230. },
  4231. "workspace": {
  4232. "anyOf": [
  4233. {
  4234. "type": "string"
  4235. },
  4236. {
  4237. "type": "null"
  4238. }
  4239. ]
  4240. }
  4241. },
  4242. "additionalProperties": false
  4243. },
  4244. {
  4245. "type": "null"
  4246. }
  4247. ]
  4248. },
  4249. "required": false,
  4250. "style": "deepObject",
  4251. "explode": true
  4252. }
  4253. ],
  4254. "security": [],
  4255. "responses": {
  4256. "204": {
  4257. "description": "<No Content>"
  4258. },
  4259. "400": {
  4260. "description": "InvalidRequestError",
  4261. "content": {
  4262. "application/json": {
  4263. "schema": {
  4264. "anyOf": [
  4265. {
  4266. "$ref": "#/components/schemas/InvalidRequestError1"
  4267. },
  4268. {
  4269. "$ref": "#/components/schemas/InvalidRequestError"
  4270. }
  4271. ]
  4272. }
  4273. }
  4274. }
  4275. },
  4276. "401": {
  4277. "description": "UnauthorizedError",
  4278. "content": {
  4279. "application/json": {
  4280. "schema": {
  4281. "$ref": "#/components/schemas/UnauthorizedError"
  4282. }
  4283. }
  4284. }
  4285. }
  4286. },
  4287. "description": "Run a key authentication method and store the resulting credential.",
  4288. "summary": "Connect with key",
  4289. "requestBody": {
  4290. "content": {
  4291. "application/json": {
  4292. "schema": {
  4293. "type": "object",
  4294. "properties": {
  4295. "key": {
  4296. "type": "string"
  4297. },
  4298. "label": {
  4299. "anyOf": [
  4300. {
  4301. "type": "string"
  4302. },
  4303. {
  4304. "type": "null"
  4305. }
  4306. ]
  4307. }
  4308. },
  4309. "required": ["key"],
  4310. "additionalProperties": false
  4311. }
  4312. }
  4313. },
  4314. "required": true
  4315. }
  4316. }
  4317. },
  4318. "/api/integration/{integrationID}/connect/oauth": {
  4319. "post": {
  4320. "tags": ["integration"],
  4321. "operationId": "v2.integration.connect.oauth",
  4322. "parameters": [
  4323. {
  4324. "name": "integrationID",
  4325. "in": "path",
  4326. "schema": {
  4327. "type": "string"
  4328. },
  4329. "required": true
  4330. },
  4331. {
  4332. "name": "location",
  4333. "in": "query",
  4334. "schema": {
  4335. "anyOf": [
  4336. {
  4337. "type": "object",
  4338. "properties": {
  4339. "directory": {
  4340. "anyOf": [
  4341. {
  4342. "type": "string"
  4343. },
  4344. {
  4345. "type": "null"
  4346. }
  4347. ]
  4348. },
  4349. "workspace": {
  4350. "anyOf": [
  4351. {
  4352. "type": "string"
  4353. },
  4354. {
  4355. "type": "null"
  4356. }
  4357. ]
  4358. }
  4359. },
  4360. "additionalProperties": false
  4361. },
  4362. {
  4363. "type": "null"
  4364. }
  4365. ]
  4366. },
  4367. "required": false,
  4368. "style": "deepObject",
  4369. "explode": true
  4370. }
  4371. ],
  4372. "security": [],
  4373. "responses": {
  4374. "200": {
  4375. "description": "Success",
  4376. "content": {
  4377. "application/json": {
  4378. "schema": {
  4379. "type": "object",
  4380. "properties": {
  4381. "location": {
  4382. "$ref": "#/components/schemas/Location.Info"
  4383. },
  4384. "data": {
  4385. "$ref": "#/components/schemas/Integration.Attempt"
  4386. }
  4387. },
  4388. "required": ["location", "data"],
  4389. "additionalProperties": false
  4390. }
  4391. }
  4392. }
  4393. },
  4394. "400": {
  4395. "description": "InvalidRequestError",
  4396. "content": {
  4397. "application/json": {
  4398. "schema": {
  4399. "anyOf": [
  4400. {
  4401. "$ref": "#/components/schemas/InvalidRequestError1"
  4402. },
  4403. {
  4404. "$ref": "#/components/schemas/InvalidRequestError"
  4405. }
  4406. ]
  4407. }
  4408. }
  4409. }
  4410. },
  4411. "401": {
  4412. "description": "UnauthorizedError",
  4413. "content": {
  4414. "application/json": {
  4415. "schema": {
  4416. "$ref": "#/components/schemas/UnauthorizedError"
  4417. }
  4418. }
  4419. }
  4420. }
  4421. },
  4422. "description": "Start an OAuth attempt and return the authorization details.",
  4423. "summary": "Begin OAuth connection",
  4424. "requestBody": {
  4425. "content": {
  4426. "application/json": {
  4427. "schema": {
  4428. "type": "object",
  4429. "properties": {
  4430. "methodID": {
  4431. "type": "string"
  4432. },
  4433. "inputs": {
  4434. "type": "object",
  4435. "additionalProperties": {
  4436. "type": "string"
  4437. }
  4438. },
  4439. "label": {
  4440. "anyOf": [
  4441. {
  4442. "type": "string"
  4443. },
  4444. {
  4445. "type": "null"
  4446. }
  4447. ]
  4448. }
  4449. },
  4450. "required": ["methodID", "inputs"],
  4451. "additionalProperties": false
  4452. }
  4453. }
  4454. },
  4455. "required": true
  4456. }
  4457. }
  4458. },
  4459. "/api/integration/attempt/{attemptID}": {
  4460. "get": {
  4461. "tags": ["integration"],
  4462. "operationId": "v2.integration.attempt.status",
  4463. "parameters": [
  4464. {
  4465. "name": "attemptID",
  4466. "in": "path",
  4467. "schema": {
  4468. "type": "string"
  4469. },
  4470. "required": true
  4471. },
  4472. {
  4473. "name": "location",
  4474. "in": "query",
  4475. "schema": {
  4476. "anyOf": [
  4477. {
  4478. "type": "object",
  4479. "properties": {
  4480. "directory": {
  4481. "anyOf": [
  4482. {
  4483. "type": "string"
  4484. },
  4485. {
  4486. "type": "null"
  4487. }
  4488. ]
  4489. },
  4490. "workspace": {
  4491. "anyOf": [
  4492. {
  4493. "type": "string"
  4494. },
  4495. {
  4496. "type": "null"
  4497. }
  4498. ]
  4499. }
  4500. },
  4501. "additionalProperties": false
  4502. },
  4503. {
  4504. "type": "null"
  4505. }
  4506. ]
  4507. },
  4508. "required": false,
  4509. "style": "deepObject",
  4510. "explode": true
  4511. }
  4512. ],
  4513. "security": [],
  4514. "responses": {
  4515. "200": {
  4516. "description": "Success",
  4517. "content": {
  4518. "application/json": {
  4519. "schema": {
  4520. "type": "object",
  4521. "properties": {
  4522. "location": {
  4523. "$ref": "#/components/schemas/Location.Info"
  4524. },
  4525. "data": {
  4526. "$ref": "#/components/schemas/Integration.AttemptStatus"
  4527. }
  4528. },
  4529. "required": ["location", "data"],
  4530. "additionalProperties": false
  4531. }
  4532. }
  4533. }
  4534. },
  4535. "400": {
  4536. "description": "InvalidRequestError",
  4537. "content": {
  4538. "application/json": {
  4539. "schema": {
  4540. "$ref": "#/components/schemas/InvalidRequestError"
  4541. }
  4542. }
  4543. }
  4544. },
  4545. "401": {
  4546. "description": "UnauthorizedError",
  4547. "content": {
  4548. "application/json": {
  4549. "schema": {
  4550. "$ref": "#/components/schemas/UnauthorizedError"
  4551. }
  4552. }
  4553. }
  4554. }
  4555. },
  4556. "description": "Poll the current status of an OAuth attempt.",
  4557. "summary": "Get OAuth attempt status"
  4558. },
  4559. "delete": {
  4560. "tags": ["integration"],
  4561. "operationId": "v2.integration.attempt.cancel",
  4562. "parameters": [
  4563. {
  4564. "name": "attemptID",
  4565. "in": "path",
  4566. "schema": {
  4567. "type": "string"
  4568. },
  4569. "required": true
  4570. },
  4571. {
  4572. "name": "location",
  4573. "in": "query",
  4574. "schema": {
  4575. "anyOf": [
  4576. {
  4577. "type": "object",
  4578. "properties": {
  4579. "directory": {
  4580. "anyOf": [
  4581. {
  4582. "type": "string"
  4583. },
  4584. {
  4585. "type": "null"
  4586. }
  4587. ]
  4588. },
  4589. "workspace": {
  4590. "anyOf": [
  4591. {
  4592. "type": "string"
  4593. },
  4594. {
  4595. "type": "null"
  4596. }
  4597. ]
  4598. }
  4599. },
  4600. "additionalProperties": false
  4601. },
  4602. {
  4603. "type": "null"
  4604. }
  4605. ]
  4606. },
  4607. "required": false,
  4608. "style": "deepObject",
  4609. "explode": true
  4610. }
  4611. ],
  4612. "security": [],
  4613. "responses": {
  4614. "204": {
  4615. "description": "<No Content>"
  4616. },
  4617. "400": {
  4618. "description": "InvalidRequestError",
  4619. "content": {
  4620. "application/json": {
  4621. "schema": {
  4622. "$ref": "#/components/schemas/InvalidRequestError"
  4623. }
  4624. }
  4625. }
  4626. },
  4627. "401": {
  4628. "description": "UnauthorizedError",
  4629. "content": {
  4630. "application/json": {
  4631. "schema": {
  4632. "$ref": "#/components/schemas/UnauthorizedError"
  4633. }
  4634. }
  4635. }
  4636. }
  4637. },
  4638. "description": "Cancel an OAuth attempt and release its resources.",
  4639. "summary": "Cancel OAuth connection"
  4640. }
  4641. },
  4642. "/api/integration/attempt/{attemptID}/complete": {
  4643. "post": {
  4644. "tags": ["integration"],
  4645. "operationId": "v2.integration.attempt.complete",
  4646. "parameters": [
  4647. {
  4648. "name": "attemptID",
  4649. "in": "path",
  4650. "schema": {
  4651. "type": "string"
  4652. },
  4653. "required": true
  4654. },
  4655. {
  4656. "name": "location",
  4657. "in": "query",
  4658. "schema": {
  4659. "anyOf": [
  4660. {
  4661. "type": "object",
  4662. "properties": {
  4663. "directory": {
  4664. "anyOf": [
  4665. {
  4666. "type": "string"
  4667. },
  4668. {
  4669. "type": "null"
  4670. }
  4671. ]
  4672. },
  4673. "workspace": {
  4674. "anyOf": [
  4675. {
  4676. "type": "string"
  4677. },
  4678. {
  4679. "type": "null"
  4680. }
  4681. ]
  4682. }
  4683. },
  4684. "additionalProperties": false
  4685. },
  4686. {
  4687. "type": "null"
  4688. }
  4689. ]
  4690. },
  4691. "required": false,
  4692. "style": "deepObject",
  4693. "explode": true
  4694. }
  4695. ],
  4696. "security": [],
  4697. "responses": {
  4698. "204": {
  4699. "description": "<No Content>"
  4700. },
  4701. "400": {
  4702. "description": "InvalidRequestError",
  4703. "content": {
  4704. "application/json": {
  4705. "schema": {
  4706. "anyOf": [
  4707. {
  4708. "$ref": "#/components/schemas/InvalidRequestError1"
  4709. },
  4710. {
  4711. "$ref": "#/components/schemas/InvalidRequestError"
  4712. }
  4713. ]
  4714. }
  4715. }
  4716. }
  4717. },
  4718. "401": {
  4719. "description": "UnauthorizedError",
  4720. "content": {
  4721. "application/json": {
  4722. "schema": {
  4723. "$ref": "#/components/schemas/UnauthorizedError"
  4724. }
  4725. }
  4726. }
  4727. }
  4728. },
  4729. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  4730. "summary": "Complete OAuth connection",
  4731. "requestBody": {
  4732. "content": {
  4733. "application/json": {
  4734. "schema": {
  4735. "type": "object",
  4736. "properties": {
  4737. "code": {
  4738. "anyOf": [
  4739. {
  4740. "type": "string"
  4741. },
  4742. {
  4743. "type": "null"
  4744. }
  4745. ]
  4746. }
  4747. },
  4748. "additionalProperties": false
  4749. }
  4750. }
  4751. },
  4752. "required": true
  4753. }
  4754. }
  4755. },
  4756. "/api/mcp": {
  4757. "get": {
  4758. "tags": ["mcp"],
  4759. "operationId": "v2.mcp.list",
  4760. "parameters": [
  4761. {
  4762. "name": "location",
  4763. "in": "query",
  4764. "schema": {
  4765. "anyOf": [
  4766. {
  4767. "type": "object",
  4768. "properties": {
  4769. "directory": {
  4770. "anyOf": [
  4771. {
  4772. "type": "string"
  4773. },
  4774. {
  4775. "type": "null"
  4776. }
  4777. ]
  4778. },
  4779. "workspace": {
  4780. "anyOf": [
  4781. {
  4782. "type": "string"
  4783. },
  4784. {
  4785. "type": "null"
  4786. }
  4787. ]
  4788. }
  4789. },
  4790. "additionalProperties": false
  4791. },
  4792. {
  4793. "type": "null"
  4794. }
  4795. ]
  4796. },
  4797. "required": false,
  4798. "style": "deepObject",
  4799. "explode": true
  4800. }
  4801. ],
  4802. "security": [],
  4803. "responses": {
  4804. "200": {
  4805. "description": "Success",
  4806. "content": {
  4807. "application/json": {
  4808. "schema": {
  4809. "type": "object",
  4810. "properties": {
  4811. "location": {
  4812. "$ref": "#/components/schemas/Location.Info"
  4813. },
  4814. "data": {
  4815. "type": "array",
  4816. "items": {
  4817. "$ref": "#/components/schemas/Mcp.Server"
  4818. }
  4819. }
  4820. },
  4821. "required": ["location", "data"],
  4822. "additionalProperties": false
  4823. }
  4824. }
  4825. }
  4826. },
  4827. "400": {
  4828. "description": "InvalidRequestError",
  4829. "content": {
  4830. "application/json": {
  4831. "schema": {
  4832. "$ref": "#/components/schemas/InvalidRequestError"
  4833. }
  4834. }
  4835. }
  4836. },
  4837. "401": {
  4838. "description": "UnauthorizedError",
  4839. "content": {
  4840. "application/json": {
  4841. "schema": {
  4842. "$ref": "#/components/schemas/UnauthorizedError"
  4843. }
  4844. }
  4845. }
  4846. }
  4847. },
  4848. "description": "Retrieve configured MCP servers and their connection status.",
  4849. "summary": "List MCP servers"
  4850. }
  4851. },
  4852. "/api/mcp/resource": {
  4853. "get": {
  4854. "tags": ["mcp"],
  4855. "operationId": "v2.mcp.resource.catalog",
  4856. "parameters": [
  4857. {
  4858. "name": "location",
  4859. "in": "query",
  4860. "schema": {
  4861. "anyOf": [
  4862. {
  4863. "type": "object",
  4864. "properties": {
  4865. "directory": {
  4866. "anyOf": [
  4867. {
  4868. "type": "string"
  4869. },
  4870. {
  4871. "type": "null"
  4872. }
  4873. ]
  4874. },
  4875. "workspace": {
  4876. "anyOf": [
  4877. {
  4878. "type": "string"
  4879. },
  4880. {
  4881. "type": "null"
  4882. }
  4883. ]
  4884. }
  4885. },
  4886. "additionalProperties": false
  4887. },
  4888. {
  4889. "type": "null"
  4890. }
  4891. ]
  4892. },
  4893. "required": false,
  4894. "style": "deepObject",
  4895. "explode": true
  4896. }
  4897. ],
  4898. "security": [],
  4899. "responses": {
  4900. "200": {
  4901. "description": "Success",
  4902. "content": {
  4903. "application/json": {
  4904. "schema": {
  4905. "type": "object",
  4906. "properties": {
  4907. "location": {
  4908. "$ref": "#/components/schemas/Location.Info"
  4909. },
  4910. "data": {
  4911. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  4912. }
  4913. },
  4914. "required": ["location", "data"],
  4915. "additionalProperties": false
  4916. }
  4917. }
  4918. }
  4919. },
  4920. "400": {
  4921. "description": "InvalidRequestError",
  4922. "content": {
  4923. "application/json": {
  4924. "schema": {
  4925. "$ref": "#/components/schemas/InvalidRequestError"
  4926. }
  4927. }
  4928. }
  4929. },
  4930. "401": {
  4931. "description": "UnauthorizedError",
  4932. "content": {
  4933. "application/json": {
  4934. "schema": {
  4935. "$ref": "#/components/schemas/UnauthorizedError"
  4936. }
  4937. }
  4938. }
  4939. }
  4940. },
  4941. "description": "Retrieve resources and resource templates from connected MCP servers.",
  4942. "summary": "List MCP resources"
  4943. }
  4944. },
  4945. "/api/credential/{credentialID}": {
  4946. "patch": {
  4947. "tags": ["credential"],
  4948. "operationId": "v2.credential.update",
  4949. "parameters": [
  4950. {
  4951. "name": "credentialID",
  4952. "in": "path",
  4953. "schema": {
  4954. "type": "string"
  4955. },
  4956. "required": true
  4957. },
  4958. {
  4959. "name": "location",
  4960. "in": "query",
  4961. "schema": {
  4962. "anyOf": [
  4963. {
  4964. "type": "object",
  4965. "properties": {
  4966. "directory": {
  4967. "anyOf": [
  4968. {
  4969. "type": "string"
  4970. },
  4971. {
  4972. "type": "null"
  4973. }
  4974. ]
  4975. },
  4976. "workspace": {
  4977. "anyOf": [
  4978. {
  4979. "type": "string"
  4980. },
  4981. {
  4982. "type": "null"
  4983. }
  4984. ]
  4985. }
  4986. },
  4987. "additionalProperties": false
  4988. },
  4989. {
  4990. "type": "null"
  4991. }
  4992. ]
  4993. },
  4994. "required": false,
  4995. "style": "deepObject",
  4996. "explode": true
  4997. }
  4998. ],
  4999. "security": [],
  5000. "responses": {
  5001. "204": {
  5002. "description": "<No Content>"
  5003. },
  5004. "400": {
  5005. "description": "InvalidRequestError",
  5006. "content": {
  5007. "application/json": {
  5008. "schema": {
  5009. "$ref": "#/components/schemas/InvalidRequestError"
  5010. }
  5011. }
  5012. }
  5013. },
  5014. "401": {
  5015. "description": "UnauthorizedError",
  5016. "content": {
  5017. "application/json": {
  5018. "schema": {
  5019. "$ref": "#/components/schemas/UnauthorizedError"
  5020. }
  5021. }
  5022. }
  5023. }
  5024. },
  5025. "description": "Update a stored credential label.",
  5026. "summary": "Update credential",
  5027. "requestBody": {
  5028. "content": {
  5029. "application/json": {
  5030. "schema": {
  5031. "type": "object",
  5032. "properties": {
  5033. "label": {
  5034. "type": "string"
  5035. }
  5036. },
  5037. "required": ["label"],
  5038. "additionalProperties": false
  5039. }
  5040. }
  5041. },
  5042. "required": true
  5043. }
  5044. },
  5045. "delete": {
  5046. "tags": ["credential"],
  5047. "operationId": "v2.credential.remove",
  5048. "parameters": [
  5049. {
  5050. "name": "credentialID",
  5051. "in": "path",
  5052. "schema": {
  5053. "type": "string"
  5054. },
  5055. "required": true
  5056. },
  5057. {
  5058. "name": "location",
  5059. "in": "query",
  5060. "schema": {
  5061. "anyOf": [
  5062. {
  5063. "type": "object",
  5064. "properties": {
  5065. "directory": {
  5066. "anyOf": [
  5067. {
  5068. "type": "string"
  5069. },
  5070. {
  5071. "type": "null"
  5072. }
  5073. ]
  5074. },
  5075. "workspace": {
  5076. "anyOf": [
  5077. {
  5078. "type": "string"
  5079. },
  5080. {
  5081. "type": "null"
  5082. }
  5083. ]
  5084. }
  5085. },
  5086. "additionalProperties": false
  5087. },
  5088. {
  5089. "type": "null"
  5090. }
  5091. ]
  5092. },
  5093. "required": false,
  5094. "style": "deepObject",
  5095. "explode": true
  5096. }
  5097. ],
  5098. "security": [],
  5099. "responses": {
  5100. "204": {
  5101. "description": "<No Content>"
  5102. },
  5103. "400": {
  5104. "description": "InvalidRequestError",
  5105. "content": {
  5106. "application/json": {
  5107. "schema": {
  5108. "$ref": "#/components/schemas/InvalidRequestError"
  5109. }
  5110. }
  5111. }
  5112. },
  5113. "401": {
  5114. "description": "UnauthorizedError",
  5115. "content": {
  5116. "application/json": {
  5117. "schema": {
  5118. "$ref": "#/components/schemas/UnauthorizedError"
  5119. }
  5120. }
  5121. }
  5122. }
  5123. },
  5124. "description": "Remove a stored integration credential.",
  5125. "summary": "Remove credential"
  5126. }
  5127. },
  5128. "/api/project": {
  5129. "get": {
  5130. "tags": ["project"],
  5131. "operationId": "v2.project.list",
  5132. "parameters": [],
  5133. "security": [],
  5134. "responses": {
  5135. "200": {
  5136. "description": "Success",
  5137. "content": {
  5138. "application/json": {
  5139. "schema": {
  5140. "type": "array",
  5141. "items": {
  5142. "$ref": "#/components/schemas/Project"
  5143. }
  5144. }
  5145. }
  5146. }
  5147. },
  5148. "400": {
  5149. "description": "InvalidRequestError",
  5150. "content": {
  5151. "application/json": {
  5152. "schema": {
  5153. "$ref": "#/components/schemas/InvalidRequestError"
  5154. }
  5155. }
  5156. }
  5157. },
  5158. "401": {
  5159. "description": "UnauthorizedError",
  5160. "content": {
  5161. "application/json": {
  5162. "schema": {
  5163. "$ref": "#/components/schemas/UnauthorizedError"
  5164. }
  5165. }
  5166. }
  5167. }
  5168. },
  5169. "description": "List known projects.",
  5170. "summary": "List projects"
  5171. }
  5172. },
  5173. "/api/project/current": {
  5174. "get": {
  5175. "tags": ["project"],
  5176. "operationId": "v2.project.current",
  5177. "parameters": [
  5178. {
  5179. "name": "location",
  5180. "in": "query",
  5181. "schema": {
  5182. "anyOf": [
  5183. {
  5184. "type": "object",
  5185. "properties": {
  5186. "directory": {
  5187. "anyOf": [
  5188. {
  5189. "type": "string"
  5190. },
  5191. {
  5192. "type": "null"
  5193. }
  5194. ]
  5195. },
  5196. "workspace": {
  5197. "anyOf": [
  5198. {
  5199. "type": "string"
  5200. },
  5201. {
  5202. "type": "null"
  5203. }
  5204. ]
  5205. }
  5206. },
  5207. "additionalProperties": false
  5208. },
  5209. {
  5210. "type": "null"
  5211. }
  5212. ]
  5213. },
  5214. "required": false,
  5215. "style": "deepObject",
  5216. "explode": true
  5217. }
  5218. ],
  5219. "security": [],
  5220. "responses": {
  5221. "200": {
  5222. "description": "Project.Current",
  5223. "content": {
  5224. "application/json": {
  5225. "schema": {
  5226. "$ref": "#/components/schemas/Project.Current"
  5227. }
  5228. }
  5229. }
  5230. },
  5231. "400": {
  5232. "description": "InvalidRequestError",
  5233. "content": {
  5234. "application/json": {
  5235. "schema": {
  5236. "$ref": "#/components/schemas/InvalidRequestError"
  5237. }
  5238. }
  5239. }
  5240. },
  5241. "401": {
  5242. "description": "UnauthorizedError",
  5243. "content": {
  5244. "application/json": {
  5245. "schema": {
  5246. "$ref": "#/components/schemas/UnauthorizedError"
  5247. }
  5248. }
  5249. }
  5250. }
  5251. },
  5252. "description": "Resolve the project for the requested location.",
  5253. "summary": "Get current project"
  5254. }
  5255. },
  5256. "/api/project/{projectID}/directories": {
  5257. "get": {
  5258. "tags": ["project"],
  5259. "operationId": "v2.project.directories",
  5260. "parameters": [
  5261. {
  5262. "name": "projectID",
  5263. "in": "path",
  5264. "schema": {
  5265. "type": "string"
  5266. },
  5267. "required": true
  5268. },
  5269. {
  5270. "name": "location",
  5271. "in": "query",
  5272. "schema": {
  5273. "anyOf": [
  5274. {
  5275. "type": "object",
  5276. "properties": {
  5277. "directory": {
  5278. "anyOf": [
  5279. {
  5280. "type": "string"
  5281. },
  5282. {
  5283. "type": "null"
  5284. }
  5285. ]
  5286. },
  5287. "workspace": {
  5288. "anyOf": [
  5289. {
  5290. "type": "string"
  5291. },
  5292. {
  5293. "type": "null"
  5294. }
  5295. ]
  5296. }
  5297. },
  5298. "additionalProperties": false
  5299. },
  5300. {
  5301. "type": "null"
  5302. }
  5303. ]
  5304. },
  5305. "required": false,
  5306. "style": "deepObject",
  5307. "explode": true
  5308. }
  5309. ],
  5310. "security": [],
  5311. "responses": {
  5312. "200": {
  5313. "description": "Project.Directories",
  5314. "content": {
  5315. "application/json": {
  5316. "schema": {
  5317. "$ref": "#/components/schemas/Project.Directories"
  5318. }
  5319. }
  5320. }
  5321. },
  5322. "400": {
  5323. "description": "InvalidRequestError",
  5324. "content": {
  5325. "application/json": {
  5326. "schema": {
  5327. "$ref": "#/components/schemas/InvalidRequestError"
  5328. }
  5329. }
  5330. }
  5331. },
  5332. "401": {
  5333. "description": "UnauthorizedError",
  5334. "content": {
  5335. "application/json": {
  5336. "schema": {
  5337. "$ref": "#/components/schemas/UnauthorizedError"
  5338. }
  5339. }
  5340. }
  5341. }
  5342. },
  5343. "description": "List known local absolute directories for a project.",
  5344. "summary": "List project directories"
  5345. }
  5346. },
  5347. "/api/form/request": {
  5348. "get": {
  5349. "tags": ["form"],
  5350. "operationId": "v2.form.request.list",
  5351. "parameters": [
  5352. {
  5353. "name": "location",
  5354. "in": "query",
  5355. "schema": {
  5356. "anyOf": [
  5357. {
  5358. "type": "object",
  5359. "properties": {
  5360. "directory": {
  5361. "anyOf": [
  5362. {
  5363. "type": "string"
  5364. },
  5365. {
  5366. "type": "null"
  5367. }
  5368. ]
  5369. },
  5370. "workspace": {
  5371. "anyOf": [
  5372. {
  5373. "type": "string"
  5374. },
  5375. {
  5376. "type": "null"
  5377. }
  5378. ]
  5379. }
  5380. },
  5381. "additionalProperties": false
  5382. },
  5383. {
  5384. "type": "null"
  5385. }
  5386. ]
  5387. },
  5388. "required": false,
  5389. "style": "deepObject",
  5390. "explode": true
  5391. }
  5392. ],
  5393. "security": [],
  5394. "responses": {
  5395. "200": {
  5396. "description": "Success",
  5397. "content": {
  5398. "application/json": {
  5399. "schema": {
  5400. "type": "object",
  5401. "properties": {
  5402. "location": {
  5403. "$ref": "#/components/schemas/Location.Info"
  5404. },
  5405. "data": {
  5406. "type": "array",
  5407. "items": {
  5408. "anyOf": [
  5409. {
  5410. "$ref": "#/components/schemas/Form.FormInfo"
  5411. },
  5412. {
  5413. "$ref": "#/components/schemas/Form.UrlInfo"
  5414. }
  5415. ]
  5416. }
  5417. }
  5418. },
  5419. "required": ["location", "data"],
  5420. "additionalProperties": false
  5421. }
  5422. }
  5423. }
  5424. },
  5425. "400": {
  5426. "description": "InvalidRequestError",
  5427. "content": {
  5428. "application/json": {
  5429. "schema": {
  5430. "$ref": "#/components/schemas/InvalidRequestError"
  5431. }
  5432. }
  5433. }
  5434. },
  5435. "401": {
  5436. "description": "UnauthorizedError",
  5437. "content": {
  5438. "application/json": {
  5439. "schema": {
  5440. "$ref": "#/components/schemas/UnauthorizedError"
  5441. }
  5442. }
  5443. }
  5444. }
  5445. },
  5446. "description": "Retrieve pending forms for a location.",
  5447. "summary": "List pending form requests"
  5448. }
  5449. },
  5450. "/api/session/{sessionID}/form": {
  5451. "get": {
  5452. "tags": ["form"],
  5453. "operationId": "v2.session.form.list",
  5454. "parameters": [
  5455. {
  5456. "name": "sessionID",
  5457. "in": "path",
  5458. "schema": {
  5459. "type": "string"
  5460. },
  5461. "required": true
  5462. }
  5463. ],
  5464. "security": [],
  5465. "responses": {
  5466. "200": {
  5467. "description": "Success",
  5468. "content": {
  5469. "application/json": {
  5470. "schema": {
  5471. "type": "object",
  5472. "properties": {
  5473. "data": {
  5474. "type": "array",
  5475. "items": {
  5476. "anyOf": [
  5477. {
  5478. "$ref": "#/components/schemas/Form.FormInfo"
  5479. },
  5480. {
  5481. "$ref": "#/components/schemas/Form.UrlInfo"
  5482. }
  5483. ]
  5484. }
  5485. }
  5486. },
  5487. "required": ["data"],
  5488. "additionalProperties": false
  5489. }
  5490. }
  5491. }
  5492. },
  5493. "400": {
  5494. "description": "InvalidRequestError",
  5495. "content": {
  5496. "application/json": {
  5497. "schema": {
  5498. "$ref": "#/components/schemas/InvalidRequestError"
  5499. }
  5500. }
  5501. }
  5502. },
  5503. "401": {
  5504. "description": "UnauthorizedError",
  5505. "content": {
  5506. "application/json": {
  5507. "schema": {
  5508. "$ref": "#/components/schemas/UnauthorizedError"
  5509. }
  5510. }
  5511. }
  5512. },
  5513. "404": {
  5514. "description": "SessionNotFoundError",
  5515. "content": {
  5516. "application/json": {
  5517. "schema": {
  5518. "anyOf": [
  5519. {
  5520. "$ref": "#/components/schemas/SessionNotFoundError"
  5521. },
  5522. {
  5523. "$ref": "#/components/schemas/SessionNotFoundError"
  5524. }
  5525. ]
  5526. }
  5527. }
  5528. }
  5529. }
  5530. },
  5531. "description": "Retrieve pending forms for a session.",
  5532. "summary": "List session forms"
  5533. },
  5534. "post": {
  5535. "tags": ["form"],
  5536. "operationId": "v2.session.form.create",
  5537. "parameters": [
  5538. {
  5539. "name": "sessionID",
  5540. "in": "path",
  5541. "schema": {
  5542. "type": "string"
  5543. },
  5544. "required": true
  5545. }
  5546. ],
  5547. "security": [],
  5548. "responses": {
  5549. "200": {
  5550. "description": "Success",
  5551. "content": {
  5552. "application/json": {
  5553. "schema": {
  5554. "type": "object",
  5555. "properties": {
  5556. "data": {
  5557. "anyOf": [
  5558. {
  5559. "$ref": "#/components/schemas/Form.FormInfo"
  5560. },
  5561. {
  5562. "$ref": "#/components/schemas/Form.UrlInfo"
  5563. }
  5564. ]
  5565. }
  5566. },
  5567. "required": ["data"],
  5568. "additionalProperties": false
  5569. }
  5570. }
  5571. }
  5572. },
  5573. "400": {
  5574. "description": "InvalidRequestError",
  5575. "content": {
  5576. "application/json": {
  5577. "schema": {
  5578. "anyOf": [
  5579. {
  5580. "$ref": "#/components/schemas/InvalidRequestError1"
  5581. },
  5582. {
  5583. "$ref": "#/components/schemas/InvalidRequestError"
  5584. }
  5585. ]
  5586. }
  5587. }
  5588. }
  5589. },
  5590. "401": {
  5591. "description": "UnauthorizedError",
  5592. "content": {
  5593. "application/json": {
  5594. "schema": {
  5595. "$ref": "#/components/schemas/UnauthorizedError"
  5596. }
  5597. }
  5598. }
  5599. },
  5600. "404": {
  5601. "description": "SessionNotFoundError",
  5602. "content": {
  5603. "application/json": {
  5604. "schema": {
  5605. "anyOf": [
  5606. {
  5607. "$ref": "#/components/schemas/SessionNotFoundError"
  5608. },
  5609. {
  5610. "$ref": "#/components/schemas/SessionNotFoundError"
  5611. }
  5612. ]
  5613. }
  5614. }
  5615. }
  5616. },
  5617. "409": {
  5618. "description": "ConflictError",
  5619. "content": {
  5620. "application/json": {
  5621. "schema": {
  5622. "$ref": "#/components/schemas/ConflictError"
  5623. }
  5624. }
  5625. }
  5626. }
  5627. },
  5628. "description": "Create a form for a session.",
  5629. "summary": "Create session form",
  5630. "requestBody": {
  5631. "content": {
  5632. "application/json": {
  5633. "schema": {
  5634. "$ref": "#/components/schemas/Form.CreatePayload"
  5635. }
  5636. }
  5637. },
  5638. "required": true
  5639. }
  5640. }
  5641. },
  5642. "/api/session/{sessionID}/form/{formID}": {
  5643. "get": {
  5644. "tags": ["form"],
  5645. "operationId": "v2.session.form.get",
  5646. "parameters": [
  5647. {
  5648. "name": "sessionID",
  5649. "in": "path",
  5650. "schema": {
  5651. "type": "string"
  5652. },
  5653. "required": true
  5654. },
  5655. {
  5656. "name": "formID",
  5657. "in": "path",
  5658. "schema": {
  5659. "type": "string",
  5660. "allOf": [
  5661. {
  5662. "pattern": "^frm_"
  5663. }
  5664. ]
  5665. },
  5666. "required": true
  5667. }
  5668. ],
  5669. "security": [],
  5670. "responses": {
  5671. "200": {
  5672. "description": "Success",
  5673. "content": {
  5674. "application/json": {
  5675. "schema": {
  5676. "type": "object",
  5677. "properties": {
  5678. "data": {
  5679. "anyOf": [
  5680. {
  5681. "$ref": "#/components/schemas/Form.FormInfo"
  5682. },
  5683. {
  5684. "$ref": "#/components/schemas/Form.UrlInfo"
  5685. }
  5686. ]
  5687. }
  5688. },
  5689. "required": ["data"],
  5690. "additionalProperties": false
  5691. }
  5692. }
  5693. }
  5694. },
  5695. "400": {
  5696. "description": "InvalidRequestError",
  5697. "content": {
  5698. "application/json": {
  5699. "schema": {
  5700. "$ref": "#/components/schemas/InvalidRequestError"
  5701. }
  5702. }
  5703. }
  5704. },
  5705. "401": {
  5706. "description": "UnauthorizedError",
  5707. "content": {
  5708. "application/json": {
  5709. "schema": {
  5710. "$ref": "#/components/schemas/UnauthorizedError"
  5711. }
  5712. }
  5713. }
  5714. },
  5715. "404": {
  5716. "description": "SessionNotFoundError | FormNotFoundError",
  5717. "content": {
  5718. "application/json": {
  5719. "schema": {
  5720. "anyOf": [
  5721. {
  5722. "$ref": "#/components/schemas/FormNotFoundError"
  5723. },
  5724. {
  5725. "$ref": "#/components/schemas/SessionNotFoundError"
  5726. },
  5727. {
  5728. "$ref": "#/components/schemas/SessionNotFoundError"
  5729. }
  5730. ]
  5731. }
  5732. }
  5733. }
  5734. }
  5735. },
  5736. "description": "Retrieve a form for a session.",
  5737. "summary": "Get session form"
  5738. }
  5739. },
  5740. "/api/session/{sessionID}/form/{formID}/state": {
  5741. "get": {
  5742. "tags": ["form"],
  5743. "operationId": "v2.session.form.state",
  5744. "parameters": [
  5745. {
  5746. "name": "sessionID",
  5747. "in": "path",
  5748. "schema": {
  5749. "type": "string"
  5750. },
  5751. "required": true
  5752. },
  5753. {
  5754. "name": "formID",
  5755. "in": "path",
  5756. "schema": {
  5757. "type": "string",
  5758. "allOf": [
  5759. {
  5760. "pattern": "^frm_"
  5761. }
  5762. ]
  5763. },
  5764. "required": true
  5765. }
  5766. ],
  5767. "security": [],
  5768. "responses": {
  5769. "200": {
  5770. "description": "Success",
  5771. "content": {
  5772. "application/json": {
  5773. "schema": {
  5774. "type": "object",
  5775. "properties": {
  5776. "data": {
  5777. "$ref": "#/components/schemas/Form.State"
  5778. }
  5779. },
  5780. "required": ["data"],
  5781. "additionalProperties": false
  5782. }
  5783. }
  5784. }
  5785. },
  5786. "400": {
  5787. "description": "InvalidRequestError",
  5788. "content": {
  5789. "application/json": {
  5790. "schema": {
  5791. "$ref": "#/components/schemas/InvalidRequestError"
  5792. }
  5793. }
  5794. }
  5795. },
  5796. "401": {
  5797. "description": "UnauthorizedError",
  5798. "content": {
  5799. "application/json": {
  5800. "schema": {
  5801. "$ref": "#/components/schemas/UnauthorizedError"
  5802. }
  5803. }
  5804. }
  5805. },
  5806. "404": {
  5807. "description": "SessionNotFoundError | FormNotFoundError",
  5808. "content": {
  5809. "application/json": {
  5810. "schema": {
  5811. "anyOf": [
  5812. {
  5813. "$ref": "#/components/schemas/FormNotFoundError"
  5814. },
  5815. {
  5816. "$ref": "#/components/schemas/SessionNotFoundError"
  5817. },
  5818. {
  5819. "$ref": "#/components/schemas/SessionNotFoundError"
  5820. }
  5821. ]
  5822. }
  5823. }
  5824. }
  5825. }
  5826. },
  5827. "description": "Retrieve the current state for a form.",
  5828. "summary": "Get form state"
  5829. }
  5830. },
  5831. "/api/session/{sessionID}/form/{formID}/reply": {
  5832. "post": {
  5833. "tags": ["form"],
  5834. "operationId": "v2.session.form.reply",
  5835. "parameters": [
  5836. {
  5837. "name": "sessionID",
  5838. "in": "path",
  5839. "schema": {
  5840. "type": "string"
  5841. },
  5842. "required": true
  5843. },
  5844. {
  5845. "name": "formID",
  5846. "in": "path",
  5847. "schema": {
  5848. "type": "string",
  5849. "allOf": [
  5850. {
  5851. "pattern": "^frm_"
  5852. }
  5853. ]
  5854. },
  5855. "required": true
  5856. }
  5857. ],
  5858. "security": [],
  5859. "responses": {
  5860. "204": {
  5861. "description": "<No Content>"
  5862. },
  5863. "400": {
  5864. "description": "FormInvalidAnswerError | InvalidRequestError",
  5865. "content": {
  5866. "application/json": {
  5867. "schema": {
  5868. "anyOf": [
  5869. {
  5870. "$ref": "#/components/schemas/FormInvalidAnswerError"
  5871. },
  5872. {
  5873. "$ref": "#/components/schemas/InvalidRequestError"
  5874. }
  5875. ]
  5876. }
  5877. }
  5878. }
  5879. },
  5880. "401": {
  5881. "description": "UnauthorizedError",
  5882. "content": {
  5883. "application/json": {
  5884. "schema": {
  5885. "$ref": "#/components/schemas/UnauthorizedError"
  5886. }
  5887. }
  5888. }
  5889. },
  5890. "404": {
  5891. "description": "SessionNotFoundError | FormNotFoundError",
  5892. "content": {
  5893. "application/json": {
  5894. "schema": {
  5895. "anyOf": [
  5896. {
  5897. "$ref": "#/components/schemas/FormNotFoundError"
  5898. },
  5899. {
  5900. "$ref": "#/components/schemas/SessionNotFoundError"
  5901. },
  5902. {
  5903. "$ref": "#/components/schemas/SessionNotFoundError"
  5904. }
  5905. ]
  5906. }
  5907. }
  5908. }
  5909. },
  5910. "409": {
  5911. "description": "FormAlreadySettledError",
  5912. "content": {
  5913. "application/json": {
  5914. "schema": {
  5915. "$ref": "#/components/schemas/FormAlreadySettledError"
  5916. }
  5917. }
  5918. }
  5919. }
  5920. },
  5921. "description": "Submit an answer to a pending form.",
  5922. "summary": "Reply to form",
  5923. "requestBody": {
  5924. "content": {
  5925. "application/json": {
  5926. "schema": {
  5927. "$ref": "#/components/schemas/Form.Reply"
  5928. }
  5929. }
  5930. },
  5931. "required": true
  5932. }
  5933. }
  5934. },
  5935. "/api/session/{sessionID}/form/{formID}/cancel": {
  5936. "post": {
  5937. "tags": ["form"],
  5938. "operationId": "v2.session.form.cancel",
  5939. "parameters": [
  5940. {
  5941. "name": "sessionID",
  5942. "in": "path",
  5943. "schema": {
  5944. "type": "string"
  5945. },
  5946. "required": true
  5947. },
  5948. {
  5949. "name": "formID",
  5950. "in": "path",
  5951. "schema": {
  5952. "type": "string",
  5953. "allOf": [
  5954. {
  5955. "pattern": "^frm_"
  5956. }
  5957. ]
  5958. },
  5959. "required": true
  5960. }
  5961. ],
  5962. "security": [],
  5963. "responses": {
  5964. "204": {
  5965. "description": "<No Content>"
  5966. },
  5967. "400": {
  5968. "description": "InvalidRequestError",
  5969. "content": {
  5970. "application/json": {
  5971. "schema": {
  5972. "$ref": "#/components/schemas/InvalidRequestError"
  5973. }
  5974. }
  5975. }
  5976. },
  5977. "401": {
  5978. "description": "UnauthorizedError",
  5979. "content": {
  5980. "application/json": {
  5981. "schema": {
  5982. "$ref": "#/components/schemas/UnauthorizedError"
  5983. }
  5984. }
  5985. }
  5986. },
  5987. "404": {
  5988. "description": "SessionNotFoundError | FormNotFoundError",
  5989. "content": {
  5990. "application/json": {
  5991. "schema": {
  5992. "anyOf": [
  5993. {
  5994. "$ref": "#/components/schemas/FormNotFoundError"
  5995. },
  5996. {
  5997. "$ref": "#/components/schemas/SessionNotFoundError"
  5998. },
  5999. {
  6000. "$ref": "#/components/schemas/SessionNotFoundError"
  6001. }
  6002. ]
  6003. }
  6004. }
  6005. }
  6006. },
  6007. "409": {
  6008. "description": "FormAlreadySettledError",
  6009. "content": {
  6010. "application/json": {
  6011. "schema": {
  6012. "$ref": "#/components/schemas/FormAlreadySettledError"
  6013. }
  6014. }
  6015. }
  6016. }
  6017. },
  6018. "description": "Cancel a pending form.",
  6019. "summary": "Cancel form"
  6020. }
  6021. },
  6022. "/api/permission/request": {
  6023. "get": {
  6024. "tags": ["permission"],
  6025. "operationId": "v2.permission.request.list",
  6026. "parameters": [
  6027. {
  6028. "name": "location",
  6029. "in": "query",
  6030. "schema": {
  6031. "anyOf": [
  6032. {
  6033. "type": "object",
  6034. "properties": {
  6035. "directory": {
  6036. "anyOf": [
  6037. {
  6038. "type": "string"
  6039. },
  6040. {
  6041. "type": "null"
  6042. }
  6043. ]
  6044. },
  6045. "workspace": {
  6046. "anyOf": [
  6047. {
  6048. "type": "string"
  6049. },
  6050. {
  6051. "type": "null"
  6052. }
  6053. ]
  6054. }
  6055. },
  6056. "additionalProperties": false
  6057. },
  6058. {
  6059. "type": "null"
  6060. }
  6061. ]
  6062. },
  6063. "required": false,
  6064. "style": "deepObject",
  6065. "explode": true
  6066. }
  6067. ],
  6068. "security": [],
  6069. "responses": {
  6070. "200": {
  6071. "description": "Success",
  6072. "content": {
  6073. "application/json": {
  6074. "schema": {
  6075. "type": "object",
  6076. "properties": {
  6077. "location": {
  6078. "$ref": "#/components/schemas/Location.Info"
  6079. },
  6080. "data": {
  6081. "type": "array",
  6082. "items": {
  6083. "$ref": "#/components/schemas/PermissionV2.Request"
  6084. }
  6085. }
  6086. },
  6087. "required": ["location", "data"],
  6088. "additionalProperties": false
  6089. }
  6090. }
  6091. }
  6092. },
  6093. "400": {
  6094. "description": "InvalidRequestError",
  6095. "content": {
  6096. "application/json": {
  6097. "schema": {
  6098. "$ref": "#/components/schemas/InvalidRequestError"
  6099. }
  6100. }
  6101. }
  6102. },
  6103. "401": {
  6104. "description": "UnauthorizedError",
  6105. "content": {
  6106. "application/json": {
  6107. "schema": {
  6108. "$ref": "#/components/schemas/UnauthorizedError"
  6109. }
  6110. }
  6111. }
  6112. }
  6113. },
  6114. "description": "Retrieve pending permission requests for a location.",
  6115. "summary": "List pending permission requests"
  6116. }
  6117. },
  6118. "/api/permission/saved": {
  6119. "get": {
  6120. "tags": ["permission"],
  6121. "operationId": "v2.permission.saved.list",
  6122. "parameters": [
  6123. {
  6124. "name": "projectID",
  6125. "in": "query",
  6126. "schema": {
  6127. "anyOf": [
  6128. {
  6129. "type": "string"
  6130. },
  6131. {
  6132. "type": "null"
  6133. }
  6134. ]
  6135. },
  6136. "required": false
  6137. }
  6138. ],
  6139. "security": [],
  6140. "responses": {
  6141. "200": {
  6142. "description": "Success",
  6143. "content": {
  6144. "application/json": {
  6145. "schema": {
  6146. "type": "object",
  6147. "properties": {
  6148. "data": {
  6149. "type": "array",
  6150. "items": {
  6151. "$ref": "#/components/schemas/PermissionSaved.Info"
  6152. }
  6153. }
  6154. },
  6155. "required": ["data"],
  6156. "additionalProperties": false
  6157. }
  6158. }
  6159. }
  6160. },
  6161. "400": {
  6162. "description": "InvalidRequestError",
  6163. "content": {
  6164. "application/json": {
  6165. "schema": {
  6166. "$ref": "#/components/schemas/InvalidRequestError"
  6167. }
  6168. }
  6169. }
  6170. },
  6171. "401": {
  6172. "description": "UnauthorizedError",
  6173. "content": {
  6174. "application/json": {
  6175. "schema": {
  6176. "$ref": "#/components/schemas/UnauthorizedError"
  6177. }
  6178. }
  6179. }
  6180. }
  6181. },
  6182. "description": "Retrieve saved permissions, optionally filtered by project.",
  6183. "summary": "List saved permissions"
  6184. }
  6185. },
  6186. "/api/permission/saved/{id}": {
  6187. "delete": {
  6188. "tags": ["permission"],
  6189. "operationId": "v2.permission.saved.remove",
  6190. "parameters": [
  6191. {
  6192. "name": "id",
  6193. "in": "path",
  6194. "schema": {
  6195. "type": "string"
  6196. },
  6197. "required": true
  6198. }
  6199. ],
  6200. "security": [],
  6201. "responses": {
  6202. "204": {
  6203. "description": "<No Content>"
  6204. },
  6205. "400": {
  6206. "description": "InvalidRequestError",
  6207. "content": {
  6208. "application/json": {
  6209. "schema": {
  6210. "$ref": "#/components/schemas/InvalidRequestError"
  6211. }
  6212. }
  6213. }
  6214. },
  6215. "401": {
  6216. "description": "UnauthorizedError",
  6217. "content": {
  6218. "application/json": {
  6219. "schema": {
  6220. "$ref": "#/components/schemas/UnauthorizedError"
  6221. }
  6222. }
  6223. }
  6224. }
  6225. },
  6226. "description": "Remove a saved permission by ID.",
  6227. "summary": "Remove saved permission"
  6228. }
  6229. },
  6230. "/api/session/{sessionID}/permission": {
  6231. "post": {
  6232. "tags": ["permission"],
  6233. "operationId": "v2.session.permission.create",
  6234. "parameters": [
  6235. {
  6236. "name": "sessionID",
  6237. "in": "path",
  6238. "schema": {
  6239. "type": "string",
  6240. "allOf": [
  6241. {
  6242. "pattern": "^ses"
  6243. }
  6244. ]
  6245. },
  6246. "required": true
  6247. }
  6248. ],
  6249. "security": [],
  6250. "responses": {
  6251. "200": {
  6252. "description": "Success",
  6253. "content": {
  6254. "application/json": {
  6255. "schema": {
  6256. "type": "object",
  6257. "properties": {
  6258. "data": {
  6259. "type": "object",
  6260. "properties": {
  6261. "id": {
  6262. "type": "string",
  6263. "allOf": [
  6264. {
  6265. "pattern": "^per"
  6266. }
  6267. ]
  6268. },
  6269. "effect": {
  6270. "$ref": "#/components/schemas/PermissionV2.Effect"
  6271. }
  6272. },
  6273. "required": ["id", "effect"],
  6274. "additionalProperties": false
  6275. }
  6276. },
  6277. "required": ["data"],
  6278. "additionalProperties": false
  6279. }
  6280. }
  6281. }
  6282. },
  6283. "400": {
  6284. "description": "InvalidRequestError",
  6285. "content": {
  6286. "application/json": {
  6287. "schema": {
  6288. "$ref": "#/components/schemas/InvalidRequestError"
  6289. }
  6290. }
  6291. }
  6292. },
  6293. "401": {
  6294. "description": "UnauthorizedError",
  6295. "content": {
  6296. "application/json": {
  6297. "schema": {
  6298. "$ref": "#/components/schemas/UnauthorizedError"
  6299. }
  6300. }
  6301. }
  6302. },
  6303. "404": {
  6304. "description": "SessionNotFoundError",
  6305. "content": {
  6306. "application/json": {
  6307. "schema": {
  6308. "anyOf": [
  6309. {
  6310. "$ref": "#/components/schemas/SessionNotFoundError"
  6311. },
  6312. {
  6313. "$ref": "#/components/schemas/SessionNotFoundError"
  6314. }
  6315. ]
  6316. }
  6317. }
  6318. }
  6319. }
  6320. },
  6321. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  6322. "summary": "Create permission request",
  6323. "requestBody": {
  6324. "content": {
  6325. "application/json": {
  6326. "schema": {
  6327. "type": "object",
  6328. "properties": {
  6329. "id": {
  6330. "anyOf": [
  6331. {
  6332. "type": "string",
  6333. "allOf": [
  6334. {
  6335. "pattern": "^per"
  6336. }
  6337. ]
  6338. },
  6339. {
  6340. "type": "null"
  6341. }
  6342. ]
  6343. },
  6344. "action": {
  6345. "type": "string"
  6346. },
  6347. "resources": {
  6348. "type": "array",
  6349. "items": {
  6350. "type": "string"
  6351. }
  6352. },
  6353. "save": {
  6354. "type": "array",
  6355. "items": {
  6356. "type": "string"
  6357. }
  6358. },
  6359. "metadata": {
  6360. "type": "object"
  6361. },
  6362. "source": {
  6363. "$ref": "#/components/schemas/PermissionV2.Source"
  6364. },
  6365. "agent": {
  6366. "anyOf": [
  6367. {
  6368. "type": "string"
  6369. },
  6370. {
  6371. "type": "null"
  6372. }
  6373. ]
  6374. }
  6375. },
  6376. "required": ["action", "resources"],
  6377. "additionalProperties": false
  6378. }
  6379. }
  6380. },
  6381. "required": true
  6382. }
  6383. },
  6384. "get": {
  6385. "tags": ["permission"],
  6386. "operationId": "v2.session.permission.list",
  6387. "parameters": [
  6388. {
  6389. "name": "sessionID",
  6390. "in": "path",
  6391. "schema": {
  6392. "type": "string",
  6393. "allOf": [
  6394. {
  6395. "pattern": "^ses"
  6396. }
  6397. ]
  6398. },
  6399. "required": true
  6400. }
  6401. ],
  6402. "security": [],
  6403. "responses": {
  6404. "200": {
  6405. "description": "Success",
  6406. "content": {
  6407. "application/json": {
  6408. "schema": {
  6409. "type": "object",
  6410. "properties": {
  6411. "data": {
  6412. "type": "array",
  6413. "items": {
  6414. "$ref": "#/components/schemas/PermissionV2.Request"
  6415. }
  6416. }
  6417. },
  6418. "required": ["data"],
  6419. "additionalProperties": false
  6420. }
  6421. }
  6422. }
  6423. },
  6424. "400": {
  6425. "description": "InvalidRequestError",
  6426. "content": {
  6427. "application/json": {
  6428. "schema": {
  6429. "$ref": "#/components/schemas/InvalidRequestError"
  6430. }
  6431. }
  6432. }
  6433. },
  6434. "401": {
  6435. "description": "UnauthorizedError",
  6436. "content": {
  6437. "application/json": {
  6438. "schema": {
  6439. "$ref": "#/components/schemas/UnauthorizedError"
  6440. }
  6441. }
  6442. }
  6443. },
  6444. "404": {
  6445. "description": "SessionNotFoundError",
  6446. "content": {
  6447. "application/json": {
  6448. "schema": {
  6449. "anyOf": [
  6450. {
  6451. "$ref": "#/components/schemas/SessionNotFoundError"
  6452. },
  6453. {
  6454. "$ref": "#/components/schemas/SessionNotFoundError"
  6455. }
  6456. ]
  6457. }
  6458. }
  6459. }
  6460. }
  6461. },
  6462. "description": "Retrieve pending permission requests owned by a session.",
  6463. "summary": "List session permission requests"
  6464. }
  6465. },
  6466. "/api/session/{sessionID}/permission/{requestID}": {
  6467. "get": {
  6468. "tags": ["permission"],
  6469. "operationId": "v2.session.permission.get",
  6470. "parameters": [
  6471. {
  6472. "name": "sessionID",
  6473. "in": "path",
  6474. "schema": {
  6475. "type": "string",
  6476. "allOf": [
  6477. {
  6478. "pattern": "^ses"
  6479. }
  6480. ]
  6481. },
  6482. "required": true
  6483. },
  6484. {
  6485. "name": "requestID",
  6486. "in": "path",
  6487. "schema": {
  6488. "type": "string",
  6489. "allOf": [
  6490. {
  6491. "pattern": "^per"
  6492. }
  6493. ]
  6494. },
  6495. "required": true
  6496. }
  6497. ],
  6498. "security": [],
  6499. "responses": {
  6500. "200": {
  6501. "description": "Success",
  6502. "content": {
  6503. "application/json": {
  6504. "schema": {
  6505. "type": "object",
  6506. "properties": {
  6507. "data": {
  6508. "$ref": "#/components/schemas/PermissionV2.Request"
  6509. }
  6510. },
  6511. "required": ["data"],
  6512. "additionalProperties": false
  6513. }
  6514. }
  6515. }
  6516. },
  6517. "400": {
  6518. "description": "InvalidRequestError",
  6519. "content": {
  6520. "application/json": {
  6521. "schema": {
  6522. "$ref": "#/components/schemas/InvalidRequestError"
  6523. }
  6524. }
  6525. }
  6526. },
  6527. "401": {
  6528. "description": "UnauthorizedError",
  6529. "content": {
  6530. "application/json": {
  6531. "schema": {
  6532. "$ref": "#/components/schemas/UnauthorizedError"
  6533. }
  6534. }
  6535. }
  6536. },
  6537. "404": {
  6538. "description": "SessionNotFoundError | PermissionNotFoundError",
  6539. "content": {
  6540. "application/json": {
  6541. "schema": {
  6542. "anyOf": [
  6543. {
  6544. "$ref": "#/components/schemas/PermissionNotFoundError"
  6545. },
  6546. {
  6547. "$ref": "#/components/schemas/SessionNotFoundError"
  6548. },
  6549. {
  6550. "$ref": "#/components/schemas/SessionNotFoundError"
  6551. }
  6552. ]
  6553. }
  6554. }
  6555. }
  6556. }
  6557. },
  6558. "description": "Retrieve a pending permission request owned by a session.",
  6559. "summary": "Get permission request"
  6560. }
  6561. },
  6562. "/api/session/{sessionID}/permission/{requestID}/reply": {
  6563. "post": {
  6564. "tags": ["permission"],
  6565. "operationId": "v2.session.permission.reply",
  6566. "parameters": [
  6567. {
  6568. "name": "sessionID",
  6569. "in": "path",
  6570. "schema": {
  6571. "type": "string",
  6572. "allOf": [
  6573. {
  6574. "pattern": "^ses"
  6575. }
  6576. ]
  6577. },
  6578. "required": true
  6579. },
  6580. {
  6581. "name": "requestID",
  6582. "in": "path",
  6583. "schema": {
  6584. "type": "string",
  6585. "allOf": [
  6586. {
  6587. "pattern": "^per"
  6588. }
  6589. ]
  6590. },
  6591. "required": true
  6592. }
  6593. ],
  6594. "security": [],
  6595. "responses": {
  6596. "204": {
  6597. "description": "<No Content>"
  6598. },
  6599. "400": {
  6600. "description": "InvalidRequestError",
  6601. "content": {
  6602. "application/json": {
  6603. "schema": {
  6604. "$ref": "#/components/schemas/InvalidRequestError"
  6605. }
  6606. }
  6607. }
  6608. },
  6609. "401": {
  6610. "description": "UnauthorizedError",
  6611. "content": {
  6612. "application/json": {
  6613. "schema": {
  6614. "$ref": "#/components/schemas/UnauthorizedError"
  6615. }
  6616. }
  6617. }
  6618. },
  6619. "404": {
  6620. "description": "SessionNotFoundError | PermissionNotFoundError",
  6621. "content": {
  6622. "application/json": {
  6623. "schema": {
  6624. "anyOf": [
  6625. {
  6626. "$ref": "#/components/schemas/PermissionNotFoundError"
  6627. },
  6628. {
  6629. "$ref": "#/components/schemas/SessionNotFoundError"
  6630. },
  6631. {
  6632. "$ref": "#/components/schemas/SessionNotFoundError"
  6633. }
  6634. ]
  6635. }
  6636. }
  6637. }
  6638. }
  6639. },
  6640. "description": "Respond to a pending permission request owned by a session.",
  6641. "summary": "Reply to pending permission request",
  6642. "requestBody": {
  6643. "content": {
  6644. "application/json": {
  6645. "schema": {
  6646. "type": "object",
  6647. "properties": {
  6648. "reply": {
  6649. "$ref": "#/components/schemas/PermissionV2.Reply"
  6650. },
  6651. "message": {
  6652. "anyOf": [
  6653. {
  6654. "type": "string"
  6655. },
  6656. {
  6657. "type": "null"
  6658. }
  6659. ]
  6660. }
  6661. },
  6662. "required": ["reply"],
  6663. "additionalProperties": false
  6664. }
  6665. }
  6666. },
  6667. "required": true
  6668. }
  6669. }
  6670. },
  6671. "/api/fs/read/*": {
  6672. "get": {
  6673. "tags": ["filesystem"],
  6674. "operationId": "v2.fs.read",
  6675. "parameters": [
  6676. {
  6677. "name": "location",
  6678. "in": "query",
  6679. "schema": {
  6680. "anyOf": [
  6681. {
  6682. "type": "object",
  6683. "properties": {
  6684. "directory": {
  6685. "anyOf": [
  6686. {
  6687. "type": "string"
  6688. },
  6689. {
  6690. "type": "null"
  6691. }
  6692. ]
  6693. },
  6694. "workspace": {
  6695. "anyOf": [
  6696. {
  6697. "type": "string"
  6698. },
  6699. {
  6700. "type": "null"
  6701. }
  6702. ]
  6703. }
  6704. },
  6705. "additionalProperties": false
  6706. },
  6707. {
  6708. "type": "null"
  6709. }
  6710. ]
  6711. },
  6712. "required": false,
  6713. "style": "deepObject",
  6714. "explode": true
  6715. }
  6716. ],
  6717. "security": [],
  6718. "responses": {
  6719. "200": {
  6720. "description": "Success",
  6721. "content": {
  6722. "application/octet-stream": {
  6723. "schema": {
  6724. "type": "string",
  6725. "format": "binary"
  6726. }
  6727. }
  6728. }
  6729. },
  6730. "400": {
  6731. "description": "InvalidRequestError",
  6732. "content": {
  6733. "application/json": {
  6734. "schema": {
  6735. "$ref": "#/components/schemas/InvalidRequestError"
  6736. }
  6737. }
  6738. }
  6739. },
  6740. "401": {
  6741. "description": "UnauthorizedError",
  6742. "content": {
  6743. "application/json": {
  6744. "schema": {
  6745. "$ref": "#/components/schemas/UnauthorizedError"
  6746. }
  6747. }
  6748. }
  6749. }
  6750. },
  6751. "description": "Serve one file relative to the requested location.",
  6752. "summary": "Read file"
  6753. }
  6754. },
  6755. "/api/fs/list": {
  6756. "get": {
  6757. "tags": ["filesystem"],
  6758. "operationId": "v2.fs.list",
  6759. "parameters": [
  6760. {
  6761. "name": "location",
  6762. "in": "query",
  6763. "schema": {
  6764. "anyOf": [
  6765. {
  6766. "type": "object",
  6767. "properties": {
  6768. "directory": {
  6769. "anyOf": [
  6770. {
  6771. "type": "string"
  6772. },
  6773. {
  6774. "type": "null"
  6775. }
  6776. ]
  6777. },
  6778. "workspace": {
  6779. "anyOf": [
  6780. {
  6781. "type": "string"
  6782. },
  6783. {
  6784. "type": "null"
  6785. }
  6786. ]
  6787. }
  6788. },
  6789. "additionalProperties": false
  6790. },
  6791. {
  6792. "type": "null"
  6793. }
  6794. ]
  6795. },
  6796. "required": false,
  6797. "style": "deepObject",
  6798. "explode": true
  6799. },
  6800. {
  6801. "name": "path",
  6802. "in": "query",
  6803. "schema": {
  6804. "anyOf": [
  6805. {
  6806. "type": "string"
  6807. },
  6808. {
  6809. "type": "null"
  6810. }
  6811. ]
  6812. },
  6813. "required": false
  6814. }
  6815. ],
  6816. "security": [],
  6817. "responses": {
  6818. "200": {
  6819. "description": "Success",
  6820. "content": {
  6821. "application/json": {
  6822. "schema": {
  6823. "type": "object",
  6824. "properties": {
  6825. "location": {
  6826. "$ref": "#/components/schemas/Location.Info"
  6827. },
  6828. "data": {
  6829. "type": "array",
  6830. "items": {
  6831. "$ref": "#/components/schemas/FileSystem.Entry"
  6832. }
  6833. }
  6834. },
  6835. "required": ["location", "data"],
  6836. "additionalProperties": false
  6837. }
  6838. }
  6839. }
  6840. },
  6841. "400": {
  6842. "description": "InvalidRequestError",
  6843. "content": {
  6844. "application/json": {
  6845. "schema": {
  6846. "$ref": "#/components/schemas/InvalidRequestError"
  6847. }
  6848. }
  6849. }
  6850. },
  6851. "401": {
  6852. "description": "UnauthorizedError",
  6853. "content": {
  6854. "application/json": {
  6855. "schema": {
  6856. "$ref": "#/components/schemas/UnauthorizedError"
  6857. }
  6858. }
  6859. }
  6860. }
  6861. },
  6862. "description": "List direct children of one directory relative to the requested location.",
  6863. "summary": "List directory"
  6864. }
  6865. },
  6866. "/api/fs/find": {
  6867. "get": {
  6868. "tags": ["filesystem"],
  6869. "operationId": "v2.fs.find",
  6870. "parameters": [
  6871. {
  6872. "name": "location",
  6873. "in": "query",
  6874. "schema": {
  6875. "anyOf": [
  6876. {
  6877. "type": "object",
  6878. "properties": {
  6879. "directory": {
  6880. "anyOf": [
  6881. {
  6882. "type": "string"
  6883. },
  6884. {
  6885. "type": "null"
  6886. }
  6887. ]
  6888. },
  6889. "workspace": {
  6890. "anyOf": [
  6891. {
  6892. "type": "string"
  6893. },
  6894. {
  6895. "type": "null"
  6896. }
  6897. ]
  6898. }
  6899. },
  6900. "additionalProperties": false
  6901. },
  6902. {
  6903. "type": "null"
  6904. }
  6905. ]
  6906. },
  6907. "required": false,
  6908. "style": "deepObject",
  6909. "explode": true
  6910. },
  6911. {
  6912. "name": "query",
  6913. "in": "query",
  6914. "schema": {
  6915. "type": "string"
  6916. },
  6917. "required": true
  6918. },
  6919. {
  6920. "name": "type",
  6921. "in": "query",
  6922. "schema": {
  6923. "type": "string",
  6924. "enum": ["file", "directory"]
  6925. },
  6926. "required": false
  6927. },
  6928. {
  6929. "name": "limit",
  6930. "in": "query",
  6931. "schema": {
  6932. "anyOf": [
  6933. {
  6934. "type": "string"
  6935. },
  6936. {
  6937. "type": "null"
  6938. }
  6939. ]
  6940. },
  6941. "required": false
  6942. }
  6943. ],
  6944. "security": [],
  6945. "responses": {
  6946. "200": {
  6947. "description": "Success",
  6948. "content": {
  6949. "application/json": {
  6950. "schema": {
  6951. "type": "object",
  6952. "properties": {
  6953. "location": {
  6954. "$ref": "#/components/schemas/Location.Info"
  6955. },
  6956. "data": {
  6957. "type": "array",
  6958. "items": {
  6959. "$ref": "#/components/schemas/FileSystem.Entry"
  6960. }
  6961. }
  6962. },
  6963. "required": ["location", "data"],
  6964. "additionalProperties": false
  6965. }
  6966. }
  6967. }
  6968. },
  6969. "400": {
  6970. "description": "InvalidRequestError",
  6971. "content": {
  6972. "application/json": {
  6973. "schema": {
  6974. "$ref": "#/components/schemas/InvalidRequestError"
  6975. }
  6976. }
  6977. }
  6978. },
  6979. "401": {
  6980. "description": "UnauthorizedError",
  6981. "content": {
  6982. "application/json": {
  6983. "schema": {
  6984. "$ref": "#/components/schemas/UnauthorizedError"
  6985. }
  6986. }
  6987. }
  6988. }
  6989. },
  6990. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  6991. "summary": "Find files"
  6992. }
  6993. },
  6994. "/api/command": {
  6995. "get": {
  6996. "tags": ["command"],
  6997. "operationId": "v2.command.list",
  6998. "parameters": [
  6999. {
  7000. "name": "location",
  7001. "in": "query",
  7002. "schema": {
  7003. "anyOf": [
  7004. {
  7005. "type": "object",
  7006. "properties": {
  7007. "directory": {
  7008. "anyOf": [
  7009. {
  7010. "type": "string"
  7011. },
  7012. {
  7013. "type": "null"
  7014. }
  7015. ]
  7016. },
  7017. "workspace": {
  7018. "anyOf": [
  7019. {
  7020. "type": "string"
  7021. },
  7022. {
  7023. "type": "null"
  7024. }
  7025. ]
  7026. }
  7027. },
  7028. "additionalProperties": false
  7029. },
  7030. {
  7031. "type": "null"
  7032. }
  7033. ]
  7034. },
  7035. "required": false,
  7036. "style": "deepObject",
  7037. "explode": true
  7038. }
  7039. ],
  7040. "security": [],
  7041. "responses": {
  7042. "200": {
  7043. "description": "Success",
  7044. "content": {
  7045. "application/json": {
  7046. "schema": {
  7047. "type": "object",
  7048. "properties": {
  7049. "location": {
  7050. "$ref": "#/components/schemas/Location.Info"
  7051. },
  7052. "data": {
  7053. "type": "array",
  7054. "items": {
  7055. "$ref": "#/components/schemas/Command.Info"
  7056. }
  7057. }
  7058. },
  7059. "required": ["location", "data"],
  7060. "additionalProperties": false
  7061. }
  7062. }
  7063. }
  7064. },
  7065. "400": {
  7066. "description": "InvalidRequestError",
  7067. "content": {
  7068. "application/json": {
  7069. "schema": {
  7070. "$ref": "#/components/schemas/InvalidRequestError"
  7071. }
  7072. }
  7073. }
  7074. },
  7075. "401": {
  7076. "description": "UnauthorizedError",
  7077. "content": {
  7078. "application/json": {
  7079. "schema": {
  7080. "$ref": "#/components/schemas/UnauthorizedError"
  7081. }
  7082. }
  7083. }
  7084. }
  7085. },
  7086. "description": "Retrieve currently registered commands.",
  7087. "summary": "List commands"
  7088. }
  7089. },
  7090. "/api/skill": {
  7091. "get": {
  7092. "tags": ["skill"],
  7093. "operationId": "v2.skill.list",
  7094. "parameters": [
  7095. {
  7096. "name": "location",
  7097. "in": "query",
  7098. "schema": {
  7099. "anyOf": [
  7100. {
  7101. "type": "object",
  7102. "properties": {
  7103. "directory": {
  7104. "anyOf": [
  7105. {
  7106. "type": "string"
  7107. },
  7108. {
  7109. "type": "null"
  7110. }
  7111. ]
  7112. },
  7113. "workspace": {
  7114. "anyOf": [
  7115. {
  7116. "type": "string"
  7117. },
  7118. {
  7119. "type": "null"
  7120. }
  7121. ]
  7122. }
  7123. },
  7124. "additionalProperties": false
  7125. },
  7126. {
  7127. "type": "null"
  7128. }
  7129. ]
  7130. },
  7131. "required": false,
  7132. "style": "deepObject",
  7133. "explode": true
  7134. }
  7135. ],
  7136. "security": [],
  7137. "responses": {
  7138. "200": {
  7139. "description": "Success",
  7140. "content": {
  7141. "application/json": {
  7142. "schema": {
  7143. "type": "object",
  7144. "properties": {
  7145. "location": {
  7146. "$ref": "#/components/schemas/Location.Info"
  7147. },
  7148. "data": {
  7149. "type": "array",
  7150. "items": {
  7151. "$ref": "#/components/schemas/Skill.Info"
  7152. }
  7153. }
  7154. },
  7155. "required": ["location", "data"],
  7156. "additionalProperties": false
  7157. }
  7158. }
  7159. }
  7160. },
  7161. "400": {
  7162. "description": "InvalidRequestError",
  7163. "content": {
  7164. "application/json": {
  7165. "schema": {
  7166. "$ref": "#/components/schemas/InvalidRequestError"
  7167. }
  7168. }
  7169. }
  7170. },
  7171. "401": {
  7172. "description": "UnauthorizedError",
  7173. "content": {
  7174. "application/json": {
  7175. "schema": {
  7176. "$ref": "#/components/schemas/UnauthorizedError"
  7177. }
  7178. }
  7179. }
  7180. }
  7181. },
  7182. "description": "Retrieve currently registered skills.",
  7183. "summary": "List skills"
  7184. }
  7185. },
  7186. "/api/event": {
  7187. "get": {
  7188. "tags": ["event"],
  7189. "operationId": "v2.event.subscribe",
  7190. "parameters": [],
  7191. "security": [],
  7192. "responses": {
  7193. "200": {
  7194. "description": "Success",
  7195. "content": {
  7196. "text/event-stream": {
  7197. "schema": {
  7198. "type": "object",
  7199. "properties": {
  7200. "id": {
  7201. "anyOf": [
  7202. {
  7203. "type": "string"
  7204. },
  7205. {
  7206. "type": "null"
  7207. }
  7208. ]
  7209. },
  7210. "event": {
  7211. "type": "string"
  7212. },
  7213. "data": {
  7214. "$ref": "#/components/schemas/V2EventStream"
  7215. }
  7216. },
  7217. "required": ["id", "event", "data"],
  7218. "additionalProperties": false
  7219. },
  7220. "x-effect-stream": {
  7221. "encoding": "sse",
  7222. "causeSchema": {
  7223. "type": "array",
  7224. "items": {
  7225. "anyOf": [
  7226. {
  7227. "type": "object",
  7228. "properties": {
  7229. "_tag": {
  7230. "type": "string",
  7231. "enum": ["Fail"]
  7232. },
  7233. "error": {
  7234. "not": {}
  7235. }
  7236. },
  7237. "required": ["_tag", "error"],
  7238. "additionalProperties": false
  7239. },
  7240. {
  7241. "type": "object",
  7242. "properties": {
  7243. "_tag": {
  7244. "type": "string",
  7245. "enum": ["Die"]
  7246. },
  7247. "defect": {}
  7248. },
  7249. "required": ["_tag", "defect"],
  7250. "additionalProperties": false
  7251. },
  7252. {
  7253. "type": "object",
  7254. "properties": {
  7255. "_tag": {
  7256. "type": "string",
  7257. "enum": ["Interrupt"]
  7258. },
  7259. "fiberId": {
  7260. "anyOf": [
  7261. {
  7262. "type": "number"
  7263. },
  7264. {
  7265. "type": "null"
  7266. }
  7267. ]
  7268. }
  7269. },
  7270. "required": ["_tag", "fiberId"],
  7271. "additionalProperties": false
  7272. }
  7273. ]
  7274. }
  7275. },
  7276. "errorSchema": {
  7277. "not": {}
  7278. },
  7279. "failureEvent": "effect/httpapi/stream/failure"
  7280. }
  7281. }
  7282. }
  7283. },
  7284. "400": {
  7285. "description": "InvalidRequestError",
  7286. "content": {
  7287. "application/json": {
  7288. "schema": {
  7289. "$ref": "#/components/schemas/InvalidRequestError"
  7290. }
  7291. }
  7292. }
  7293. },
  7294. "401": {
  7295. "description": "UnauthorizedError",
  7296. "content": {
  7297. "application/json": {
  7298. "schema": {
  7299. "$ref": "#/components/schemas/UnauthorizedError"
  7300. }
  7301. }
  7302. }
  7303. }
  7304. },
  7305. "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.",
  7306. "summary": "Subscribe to events"
  7307. }
  7308. },
  7309. "/api/pty": {
  7310. "get": {
  7311. "tags": ["pty"],
  7312. "operationId": "v2.pty.list",
  7313. "parameters": [
  7314. {
  7315. "name": "location",
  7316. "in": "query",
  7317. "schema": {
  7318. "anyOf": [
  7319. {
  7320. "type": "object",
  7321. "properties": {
  7322. "directory": {
  7323. "anyOf": [
  7324. {
  7325. "type": "string"
  7326. },
  7327. {
  7328. "type": "null"
  7329. }
  7330. ]
  7331. },
  7332. "workspace": {
  7333. "anyOf": [
  7334. {
  7335. "type": "string"
  7336. },
  7337. {
  7338. "type": "null"
  7339. }
  7340. ]
  7341. }
  7342. },
  7343. "additionalProperties": false
  7344. },
  7345. {
  7346. "type": "null"
  7347. }
  7348. ]
  7349. },
  7350. "required": false,
  7351. "style": "deepObject",
  7352. "explode": true
  7353. }
  7354. ],
  7355. "security": [],
  7356. "responses": {
  7357. "200": {
  7358. "description": "Success",
  7359. "content": {
  7360. "application/json": {
  7361. "schema": {
  7362. "type": "object",
  7363. "properties": {
  7364. "location": {
  7365. "$ref": "#/components/schemas/Location.Info"
  7366. },
  7367. "data": {
  7368. "type": "array",
  7369. "items": {
  7370. "$ref": "#/components/schemas/Pty"
  7371. }
  7372. }
  7373. },
  7374. "required": ["location", "data"],
  7375. "additionalProperties": false
  7376. }
  7377. }
  7378. }
  7379. },
  7380. "400": {
  7381. "description": "InvalidRequestError",
  7382. "content": {
  7383. "application/json": {
  7384. "schema": {
  7385. "$ref": "#/components/schemas/InvalidRequestError"
  7386. }
  7387. }
  7388. }
  7389. },
  7390. "401": {
  7391. "description": "UnauthorizedError",
  7392. "content": {
  7393. "application/json": {
  7394. "schema": {
  7395. "$ref": "#/components/schemas/UnauthorizedError"
  7396. }
  7397. }
  7398. }
  7399. }
  7400. },
  7401. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  7402. "summary": "List PTY sessions"
  7403. },
  7404. "post": {
  7405. "tags": ["pty"],
  7406. "operationId": "v2.pty.create",
  7407. "parameters": [
  7408. {
  7409. "name": "location",
  7410. "in": "query",
  7411. "schema": {
  7412. "anyOf": [
  7413. {
  7414. "type": "object",
  7415. "properties": {
  7416. "directory": {
  7417. "anyOf": [
  7418. {
  7419. "type": "string"
  7420. },
  7421. {
  7422. "type": "null"
  7423. }
  7424. ]
  7425. },
  7426. "workspace": {
  7427. "anyOf": [
  7428. {
  7429. "type": "string"
  7430. },
  7431. {
  7432. "type": "null"
  7433. }
  7434. ]
  7435. }
  7436. },
  7437. "additionalProperties": false
  7438. },
  7439. {
  7440. "type": "null"
  7441. }
  7442. ]
  7443. },
  7444. "required": false,
  7445. "style": "deepObject",
  7446. "explode": true
  7447. }
  7448. ],
  7449. "security": [],
  7450. "responses": {
  7451. "200": {
  7452. "description": "Success",
  7453. "content": {
  7454. "application/json": {
  7455. "schema": {
  7456. "type": "object",
  7457. "properties": {
  7458. "location": {
  7459. "$ref": "#/components/schemas/Location.Info"
  7460. },
  7461. "data": {
  7462. "$ref": "#/components/schemas/Pty"
  7463. }
  7464. },
  7465. "required": ["location", "data"],
  7466. "additionalProperties": false
  7467. }
  7468. }
  7469. }
  7470. },
  7471. "400": {
  7472. "description": "InvalidRequestError",
  7473. "content": {
  7474. "application/json": {
  7475. "schema": {
  7476. "$ref": "#/components/schemas/InvalidRequestError"
  7477. }
  7478. }
  7479. }
  7480. },
  7481. "401": {
  7482. "description": "UnauthorizedError",
  7483. "content": {
  7484. "application/json": {
  7485. "schema": {
  7486. "$ref": "#/components/schemas/UnauthorizedError"
  7487. }
  7488. }
  7489. }
  7490. }
  7491. },
  7492. "description": "Create a pseudo-terminal session for a location.",
  7493. "summary": "Create PTY session",
  7494. "requestBody": {
  7495. "content": {
  7496. "application/json": {
  7497. "schema": {
  7498. "type": "object",
  7499. "properties": {
  7500. "command": {
  7501. "type": "string"
  7502. },
  7503. "args": {
  7504. "type": "array",
  7505. "items": {
  7506. "type": "string"
  7507. }
  7508. },
  7509. "cwd": {
  7510. "type": "string"
  7511. },
  7512. "title": {
  7513. "type": "string"
  7514. },
  7515. "env": {
  7516. "type": "object",
  7517. "additionalProperties": {
  7518. "type": "string"
  7519. }
  7520. }
  7521. },
  7522. "additionalProperties": false
  7523. }
  7524. }
  7525. },
  7526. "required": true
  7527. }
  7528. }
  7529. },
  7530. "/api/pty/{ptyID}": {
  7531. "get": {
  7532. "tags": ["pty"],
  7533. "operationId": "v2.pty.get",
  7534. "parameters": [
  7535. {
  7536. "name": "ptyID",
  7537. "in": "path",
  7538. "schema": {
  7539. "type": "string",
  7540. "allOf": [
  7541. {
  7542. "pattern": "^pty"
  7543. }
  7544. ]
  7545. },
  7546. "required": true
  7547. },
  7548. {
  7549. "name": "location",
  7550. "in": "query",
  7551. "schema": {
  7552. "anyOf": [
  7553. {
  7554. "type": "object",
  7555. "properties": {
  7556. "directory": {
  7557. "anyOf": [
  7558. {
  7559. "type": "string"
  7560. },
  7561. {
  7562. "type": "null"
  7563. }
  7564. ]
  7565. },
  7566. "workspace": {
  7567. "anyOf": [
  7568. {
  7569. "type": "string"
  7570. },
  7571. {
  7572. "type": "null"
  7573. }
  7574. ]
  7575. }
  7576. },
  7577. "additionalProperties": false
  7578. },
  7579. {
  7580. "type": "null"
  7581. }
  7582. ]
  7583. },
  7584. "required": false,
  7585. "style": "deepObject",
  7586. "explode": true
  7587. }
  7588. ],
  7589. "security": [],
  7590. "responses": {
  7591. "200": {
  7592. "description": "Success",
  7593. "content": {
  7594. "application/json": {
  7595. "schema": {
  7596. "type": "object",
  7597. "properties": {
  7598. "location": {
  7599. "$ref": "#/components/schemas/Location.Info"
  7600. },
  7601. "data": {
  7602. "$ref": "#/components/schemas/Pty"
  7603. }
  7604. },
  7605. "required": ["location", "data"],
  7606. "additionalProperties": false
  7607. }
  7608. }
  7609. }
  7610. },
  7611. "400": {
  7612. "description": "InvalidRequestError",
  7613. "content": {
  7614. "application/json": {
  7615. "schema": {
  7616. "$ref": "#/components/schemas/InvalidRequestError"
  7617. }
  7618. }
  7619. }
  7620. },
  7621. "401": {
  7622. "description": "UnauthorizedError",
  7623. "content": {
  7624. "application/json": {
  7625. "schema": {
  7626. "$ref": "#/components/schemas/UnauthorizedError"
  7627. }
  7628. }
  7629. }
  7630. },
  7631. "404": {
  7632. "description": "PtyNotFoundError",
  7633. "content": {
  7634. "application/json": {
  7635. "schema": {
  7636. "$ref": "#/components/schemas/PtyNotFoundError"
  7637. }
  7638. }
  7639. }
  7640. }
  7641. },
  7642. "description": "Get one PTY session, including its exit code once exited.",
  7643. "summary": "Get PTY session"
  7644. },
  7645. "put": {
  7646. "tags": ["pty"],
  7647. "operationId": "v2.pty.update",
  7648. "parameters": [
  7649. {
  7650. "name": "ptyID",
  7651. "in": "path",
  7652. "schema": {
  7653. "type": "string",
  7654. "allOf": [
  7655. {
  7656. "pattern": "^pty"
  7657. }
  7658. ]
  7659. },
  7660. "required": true
  7661. },
  7662. {
  7663. "name": "location",
  7664. "in": "query",
  7665. "schema": {
  7666. "anyOf": [
  7667. {
  7668. "type": "object",
  7669. "properties": {
  7670. "directory": {
  7671. "anyOf": [
  7672. {
  7673. "type": "string"
  7674. },
  7675. {
  7676. "type": "null"
  7677. }
  7678. ]
  7679. },
  7680. "workspace": {
  7681. "anyOf": [
  7682. {
  7683. "type": "string"
  7684. },
  7685. {
  7686. "type": "null"
  7687. }
  7688. ]
  7689. }
  7690. },
  7691. "additionalProperties": false
  7692. },
  7693. {
  7694. "type": "null"
  7695. }
  7696. ]
  7697. },
  7698. "required": false,
  7699. "style": "deepObject",
  7700. "explode": true
  7701. }
  7702. ],
  7703. "security": [],
  7704. "responses": {
  7705. "200": {
  7706. "description": "Success",
  7707. "content": {
  7708. "application/json": {
  7709. "schema": {
  7710. "type": "object",
  7711. "properties": {
  7712. "location": {
  7713. "$ref": "#/components/schemas/Location.Info"
  7714. },
  7715. "data": {
  7716. "$ref": "#/components/schemas/Pty"
  7717. }
  7718. },
  7719. "required": ["location", "data"],
  7720. "additionalProperties": false
  7721. }
  7722. }
  7723. }
  7724. },
  7725. "400": {
  7726. "description": "InvalidRequestError",
  7727. "content": {
  7728. "application/json": {
  7729. "schema": {
  7730. "$ref": "#/components/schemas/InvalidRequestError"
  7731. }
  7732. }
  7733. }
  7734. },
  7735. "401": {
  7736. "description": "UnauthorizedError",
  7737. "content": {
  7738. "application/json": {
  7739. "schema": {
  7740. "$ref": "#/components/schemas/UnauthorizedError"
  7741. }
  7742. }
  7743. }
  7744. },
  7745. "404": {
  7746. "description": "PtyNotFoundError",
  7747. "content": {
  7748. "application/json": {
  7749. "schema": {
  7750. "$ref": "#/components/schemas/PtyNotFoundError"
  7751. }
  7752. }
  7753. }
  7754. }
  7755. },
  7756. "description": "Update the title or viewport size of one PTY session.",
  7757. "summary": "Update PTY session",
  7758. "requestBody": {
  7759. "content": {
  7760. "application/json": {
  7761. "schema": {
  7762. "type": "object",
  7763. "properties": {
  7764. "title": {
  7765. "type": "string"
  7766. },
  7767. "size": {
  7768. "type": "object",
  7769. "properties": {
  7770. "rows": {
  7771. "type": "integer",
  7772. "allOf": [
  7773. {
  7774. "exclusiveMinimum": 0
  7775. }
  7776. ]
  7777. },
  7778. "cols": {
  7779. "type": "integer",
  7780. "allOf": [
  7781. {
  7782. "exclusiveMinimum": 0
  7783. }
  7784. ]
  7785. }
  7786. },
  7787. "required": ["rows", "cols"],
  7788. "additionalProperties": false
  7789. }
  7790. },
  7791. "additionalProperties": false
  7792. }
  7793. }
  7794. },
  7795. "required": true
  7796. }
  7797. },
  7798. "delete": {
  7799. "tags": ["pty"],
  7800. "operationId": "v2.pty.remove",
  7801. "parameters": [
  7802. {
  7803. "name": "ptyID",
  7804. "in": "path",
  7805. "schema": {
  7806. "type": "string",
  7807. "allOf": [
  7808. {
  7809. "pattern": "^pty"
  7810. }
  7811. ]
  7812. },
  7813. "required": true
  7814. },
  7815. {
  7816. "name": "location",
  7817. "in": "query",
  7818. "schema": {
  7819. "anyOf": [
  7820. {
  7821. "type": "object",
  7822. "properties": {
  7823. "directory": {
  7824. "anyOf": [
  7825. {
  7826. "type": "string"
  7827. },
  7828. {
  7829. "type": "null"
  7830. }
  7831. ]
  7832. },
  7833. "workspace": {
  7834. "anyOf": [
  7835. {
  7836. "type": "string"
  7837. },
  7838. {
  7839. "type": "null"
  7840. }
  7841. ]
  7842. }
  7843. },
  7844. "additionalProperties": false
  7845. },
  7846. {
  7847. "type": "null"
  7848. }
  7849. ]
  7850. },
  7851. "required": false,
  7852. "style": "deepObject",
  7853. "explode": true
  7854. }
  7855. ],
  7856. "security": [],
  7857. "responses": {
  7858. "204": {
  7859. "description": "<No Content>"
  7860. },
  7861. "400": {
  7862. "description": "InvalidRequestError",
  7863. "content": {
  7864. "application/json": {
  7865. "schema": {
  7866. "$ref": "#/components/schemas/InvalidRequestError"
  7867. }
  7868. }
  7869. }
  7870. },
  7871. "401": {
  7872. "description": "UnauthorizedError",
  7873. "content": {
  7874. "application/json": {
  7875. "schema": {
  7876. "$ref": "#/components/schemas/UnauthorizedError"
  7877. }
  7878. }
  7879. }
  7880. },
  7881. "404": {
  7882. "description": "PtyNotFoundError",
  7883. "content": {
  7884. "application/json": {
  7885. "schema": {
  7886. "$ref": "#/components/schemas/PtyNotFoundError"
  7887. }
  7888. }
  7889. }
  7890. }
  7891. },
  7892. "description": "Terminate and remove one PTY session.",
  7893. "summary": "Remove PTY session"
  7894. }
  7895. },
  7896. "/api/pty/{ptyID}/connect-token": {
  7897. "post": {
  7898. "tags": ["pty"],
  7899. "operationId": "v2.pty.connect.token",
  7900. "parameters": [
  7901. {
  7902. "name": "ptyID",
  7903. "in": "path",
  7904. "schema": {
  7905. "type": "string",
  7906. "allOf": [
  7907. {
  7908. "pattern": "^pty"
  7909. }
  7910. ]
  7911. },
  7912. "required": true
  7913. },
  7914. {
  7915. "name": "location",
  7916. "in": "query",
  7917. "schema": {
  7918. "anyOf": [
  7919. {
  7920. "type": "object",
  7921. "properties": {
  7922. "directory": {
  7923. "anyOf": [
  7924. {
  7925. "type": "string"
  7926. },
  7927. {
  7928. "type": "null"
  7929. }
  7930. ]
  7931. },
  7932. "workspace": {
  7933. "anyOf": [
  7934. {
  7935. "type": "string"
  7936. },
  7937. {
  7938. "type": "null"
  7939. }
  7940. ]
  7941. }
  7942. },
  7943. "additionalProperties": false
  7944. },
  7945. {
  7946. "type": "null"
  7947. }
  7948. ]
  7949. },
  7950. "required": false,
  7951. "style": "deepObject",
  7952. "explode": true
  7953. }
  7954. ],
  7955. "security": [],
  7956. "responses": {
  7957. "200": {
  7958. "description": "Success",
  7959. "content": {
  7960. "application/json": {
  7961. "schema": {
  7962. "type": "object",
  7963. "properties": {
  7964. "location": {
  7965. "$ref": "#/components/schemas/Location.Info"
  7966. },
  7967. "data": {
  7968. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  7969. }
  7970. },
  7971. "required": ["location", "data"],
  7972. "additionalProperties": false
  7973. }
  7974. }
  7975. }
  7976. },
  7977. "400": {
  7978. "description": "InvalidRequestError",
  7979. "content": {
  7980. "application/json": {
  7981. "schema": {
  7982. "$ref": "#/components/schemas/InvalidRequestError"
  7983. }
  7984. }
  7985. }
  7986. },
  7987. "401": {
  7988. "description": "UnauthorizedError",
  7989. "content": {
  7990. "application/json": {
  7991. "schema": {
  7992. "$ref": "#/components/schemas/UnauthorizedError"
  7993. }
  7994. }
  7995. }
  7996. },
  7997. "403": {
  7998. "description": "ForbiddenError",
  7999. "content": {
  8000. "application/json": {
  8001. "schema": {
  8002. "$ref": "#/components/schemas/ForbiddenError"
  8003. }
  8004. }
  8005. }
  8006. },
  8007. "404": {
  8008. "description": "PtyNotFoundError",
  8009. "content": {
  8010. "application/json": {
  8011. "schema": {
  8012. "$ref": "#/components/schemas/PtyNotFoundError"
  8013. }
  8014. }
  8015. }
  8016. }
  8017. },
  8018. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  8019. "summary": "Create PTY WebSocket token"
  8020. }
  8021. },
  8022. "/api/pty/{ptyID}/connect": {
  8023. "get": {
  8024. "tags": ["pty"],
  8025. "operationId": "v2.pty.connect",
  8026. "parameters": [
  8027. {
  8028. "name": "ptyID",
  8029. "in": "path",
  8030. "schema": {
  8031. "type": "string",
  8032. "allOf": [
  8033. {
  8034. "pattern": "^pty"
  8035. }
  8036. ]
  8037. },
  8038. "required": true
  8039. },
  8040. {
  8041. "in": "query",
  8042. "name": "location[directory]",
  8043. "schema": {
  8044. "type": "string"
  8045. }
  8046. },
  8047. {
  8048. "in": "query",
  8049. "name": "location[workspace]",
  8050. "schema": {
  8051. "type": "string"
  8052. }
  8053. },
  8054. {
  8055. "in": "query",
  8056. "name": "cursor",
  8057. "schema": {
  8058. "type": "string"
  8059. }
  8060. },
  8061. {
  8062. "in": "query",
  8063. "name": "ticket",
  8064. "schema": {
  8065. "type": "string"
  8066. }
  8067. }
  8068. ],
  8069. "security": [],
  8070. "responses": {
  8071. "200": {
  8072. "description": "Success",
  8073. "content": {
  8074. "application/json": {
  8075. "schema": {
  8076. "type": "boolean"
  8077. }
  8078. }
  8079. }
  8080. },
  8081. "400": {
  8082. "description": "InvalidRequestError",
  8083. "content": {
  8084. "application/json": {
  8085. "schema": {
  8086. "$ref": "#/components/schemas/InvalidRequestError"
  8087. }
  8088. }
  8089. }
  8090. },
  8091. "401": {
  8092. "description": "UnauthorizedError",
  8093. "content": {
  8094. "application/json": {
  8095. "schema": {
  8096. "$ref": "#/components/schemas/UnauthorizedError"
  8097. }
  8098. }
  8099. }
  8100. },
  8101. "403": {
  8102. "description": "ForbiddenError",
  8103. "content": {
  8104. "application/json": {
  8105. "schema": {
  8106. "$ref": "#/components/schemas/ForbiddenError"
  8107. }
  8108. }
  8109. }
  8110. },
  8111. "404": {
  8112. "description": "PtyNotFoundError",
  8113. "content": {
  8114. "application/json": {
  8115. "schema": {
  8116. "$ref": "#/components/schemas/PtyNotFoundError"
  8117. }
  8118. }
  8119. }
  8120. }
  8121. },
  8122. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  8123. "summary": "Connect to PTY session",
  8124. "x-websocket": true
  8125. }
  8126. },
  8127. "/api/shell": {
  8128. "get": {
  8129. "tags": ["shell"],
  8130. "operationId": "v2.shell.list",
  8131. "parameters": [
  8132. {
  8133. "name": "location",
  8134. "in": "query",
  8135. "schema": {
  8136. "anyOf": [
  8137. {
  8138. "type": "object",
  8139. "properties": {
  8140. "directory": {
  8141. "anyOf": [
  8142. {
  8143. "type": "string"
  8144. },
  8145. {
  8146. "type": "null"
  8147. }
  8148. ]
  8149. },
  8150. "workspace": {
  8151. "anyOf": [
  8152. {
  8153. "type": "string"
  8154. },
  8155. {
  8156. "type": "null"
  8157. }
  8158. ]
  8159. }
  8160. },
  8161. "additionalProperties": false
  8162. },
  8163. {
  8164. "type": "null"
  8165. }
  8166. ]
  8167. },
  8168. "required": false,
  8169. "style": "deepObject",
  8170. "explode": true
  8171. }
  8172. ],
  8173. "security": [],
  8174. "responses": {
  8175. "200": {
  8176. "description": "Success",
  8177. "content": {
  8178. "application/json": {
  8179. "schema": {
  8180. "type": "object",
  8181. "properties": {
  8182. "location": {
  8183. "$ref": "#/components/schemas/Location.Info"
  8184. },
  8185. "data": {
  8186. "type": "array",
  8187. "items": {
  8188. "$ref": "#/components/schemas/Shell1"
  8189. }
  8190. }
  8191. },
  8192. "required": ["location", "data"],
  8193. "additionalProperties": false
  8194. }
  8195. }
  8196. }
  8197. },
  8198. "400": {
  8199. "description": "InvalidRequestError",
  8200. "content": {
  8201. "application/json": {
  8202. "schema": {
  8203. "$ref": "#/components/schemas/InvalidRequestError"
  8204. }
  8205. }
  8206. }
  8207. },
  8208. "401": {
  8209. "description": "UnauthorizedError",
  8210. "content": {
  8211. "application/json": {
  8212. "schema": {
  8213. "$ref": "#/components/schemas/UnauthorizedError"
  8214. }
  8215. }
  8216. }
  8217. }
  8218. },
  8219. "description": "List currently running shell commands for a location. Exited commands are not included.",
  8220. "summary": "List running shell commands"
  8221. },
  8222. "post": {
  8223. "tags": ["shell"],
  8224. "operationId": "v2.shell.create",
  8225. "parameters": [
  8226. {
  8227. "name": "location",
  8228. "in": "query",
  8229. "schema": {
  8230. "anyOf": [
  8231. {
  8232. "type": "object",
  8233. "properties": {
  8234. "directory": {
  8235. "anyOf": [
  8236. {
  8237. "type": "string"
  8238. },
  8239. {
  8240. "type": "null"
  8241. }
  8242. ]
  8243. },
  8244. "workspace": {
  8245. "anyOf": [
  8246. {
  8247. "type": "string"
  8248. },
  8249. {
  8250. "type": "null"
  8251. }
  8252. ]
  8253. }
  8254. },
  8255. "additionalProperties": false
  8256. },
  8257. {
  8258. "type": "null"
  8259. }
  8260. ]
  8261. },
  8262. "required": false,
  8263. "style": "deepObject",
  8264. "explode": true
  8265. }
  8266. ],
  8267. "security": [],
  8268. "responses": {
  8269. "200": {
  8270. "description": "Success",
  8271. "content": {
  8272. "application/json": {
  8273. "schema": {
  8274. "type": "object",
  8275. "properties": {
  8276. "location": {
  8277. "$ref": "#/components/schemas/Location.Info"
  8278. },
  8279. "data": {
  8280. "$ref": "#/components/schemas/Shell1"
  8281. }
  8282. },
  8283. "required": ["location", "data"],
  8284. "additionalProperties": false
  8285. }
  8286. }
  8287. }
  8288. },
  8289. "400": {
  8290. "description": "InvalidRequestError",
  8291. "content": {
  8292. "application/json": {
  8293. "schema": {
  8294. "$ref": "#/components/schemas/InvalidRequestError"
  8295. }
  8296. }
  8297. }
  8298. },
  8299. "401": {
  8300. "description": "UnauthorizedError",
  8301. "content": {
  8302. "application/json": {
  8303. "schema": {
  8304. "$ref": "#/components/schemas/UnauthorizedError"
  8305. }
  8306. }
  8307. }
  8308. }
  8309. },
  8310. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  8311. "summary": "Run shell command",
  8312. "requestBody": {
  8313. "content": {
  8314. "application/json": {
  8315. "schema": {
  8316. "type": "object",
  8317. "properties": {
  8318. "command": {
  8319. "type": "string"
  8320. },
  8321. "cwd": {
  8322. "type": "string"
  8323. },
  8324. "timeout": {
  8325. "type": "integer",
  8326. "allOf": [
  8327. {
  8328. "minimum": 0
  8329. }
  8330. ]
  8331. },
  8332. "metadata": {
  8333. "type": "object"
  8334. }
  8335. },
  8336. "required": ["command", "timeout"],
  8337. "additionalProperties": false
  8338. }
  8339. }
  8340. },
  8341. "required": true
  8342. }
  8343. }
  8344. },
  8345. "/api/shell/{id}": {
  8346. "get": {
  8347. "tags": ["shell"],
  8348. "operationId": "v2.shell.get",
  8349. "parameters": [
  8350. {
  8351. "name": "id",
  8352. "in": "path",
  8353. "schema": {
  8354. "type": "string",
  8355. "allOf": [
  8356. {
  8357. "pattern": "^sh_"
  8358. }
  8359. ]
  8360. },
  8361. "required": true
  8362. },
  8363. {
  8364. "name": "location",
  8365. "in": "query",
  8366. "schema": {
  8367. "anyOf": [
  8368. {
  8369. "type": "object",
  8370. "properties": {
  8371. "directory": {
  8372. "anyOf": [
  8373. {
  8374. "type": "string"
  8375. },
  8376. {
  8377. "type": "null"
  8378. }
  8379. ]
  8380. },
  8381. "workspace": {
  8382. "anyOf": [
  8383. {
  8384. "type": "string"
  8385. },
  8386. {
  8387. "type": "null"
  8388. }
  8389. ]
  8390. }
  8391. },
  8392. "additionalProperties": false
  8393. },
  8394. {
  8395. "type": "null"
  8396. }
  8397. ]
  8398. },
  8399. "required": false,
  8400. "style": "deepObject",
  8401. "explode": true
  8402. }
  8403. ],
  8404. "security": [],
  8405. "responses": {
  8406. "200": {
  8407. "description": "Success",
  8408. "content": {
  8409. "application/json": {
  8410. "schema": {
  8411. "type": "object",
  8412. "properties": {
  8413. "location": {
  8414. "$ref": "#/components/schemas/Location.Info"
  8415. },
  8416. "data": {
  8417. "$ref": "#/components/schemas/Shell1"
  8418. }
  8419. },
  8420. "required": ["location", "data"],
  8421. "additionalProperties": false
  8422. }
  8423. }
  8424. }
  8425. },
  8426. "400": {
  8427. "description": "InvalidRequestError",
  8428. "content": {
  8429. "application/json": {
  8430. "schema": {
  8431. "$ref": "#/components/schemas/InvalidRequestError"
  8432. }
  8433. }
  8434. }
  8435. },
  8436. "401": {
  8437. "description": "UnauthorizedError",
  8438. "content": {
  8439. "application/json": {
  8440. "schema": {
  8441. "$ref": "#/components/schemas/UnauthorizedError"
  8442. }
  8443. }
  8444. }
  8445. },
  8446. "404": {
  8447. "description": "ShellNotFoundError",
  8448. "content": {
  8449. "application/json": {
  8450. "schema": {
  8451. "$ref": "#/components/schemas/ShellNotFoundError"
  8452. }
  8453. }
  8454. }
  8455. }
  8456. },
  8457. "description": "Get one shell command, including its status and exit code once exited.",
  8458. "summary": "Get shell command"
  8459. },
  8460. "delete": {
  8461. "tags": ["shell"],
  8462. "operationId": "v2.shell.remove",
  8463. "parameters": [
  8464. {
  8465. "name": "id",
  8466. "in": "path",
  8467. "schema": {
  8468. "type": "string",
  8469. "allOf": [
  8470. {
  8471. "pattern": "^sh_"
  8472. }
  8473. ]
  8474. },
  8475. "required": true
  8476. },
  8477. {
  8478. "name": "location",
  8479. "in": "query",
  8480. "schema": {
  8481. "anyOf": [
  8482. {
  8483. "type": "object",
  8484. "properties": {
  8485. "directory": {
  8486. "anyOf": [
  8487. {
  8488. "type": "string"
  8489. },
  8490. {
  8491. "type": "null"
  8492. }
  8493. ]
  8494. },
  8495. "workspace": {
  8496. "anyOf": [
  8497. {
  8498. "type": "string"
  8499. },
  8500. {
  8501. "type": "null"
  8502. }
  8503. ]
  8504. }
  8505. },
  8506. "additionalProperties": false
  8507. },
  8508. {
  8509. "type": "null"
  8510. }
  8511. ]
  8512. },
  8513. "required": false,
  8514. "style": "deepObject",
  8515. "explode": true
  8516. }
  8517. ],
  8518. "security": [],
  8519. "responses": {
  8520. "204": {
  8521. "description": "<No Content>"
  8522. },
  8523. "400": {
  8524. "description": "InvalidRequestError",
  8525. "content": {
  8526. "application/json": {
  8527. "schema": {
  8528. "$ref": "#/components/schemas/InvalidRequestError"
  8529. }
  8530. }
  8531. }
  8532. },
  8533. "401": {
  8534. "description": "UnauthorizedError",
  8535. "content": {
  8536. "application/json": {
  8537. "schema": {
  8538. "$ref": "#/components/schemas/UnauthorizedError"
  8539. }
  8540. }
  8541. }
  8542. },
  8543. "404": {
  8544. "description": "ShellNotFoundError",
  8545. "content": {
  8546. "application/json": {
  8547. "schema": {
  8548. "$ref": "#/components/schemas/ShellNotFoundError"
  8549. }
  8550. }
  8551. }
  8552. }
  8553. },
  8554. "description": "Terminate and remove one shell command and its retained output.",
  8555. "summary": "Remove shell command"
  8556. }
  8557. },
  8558. "/api/shell/{id}/timeout": {
  8559. "patch": {
  8560. "tags": ["shell"],
  8561. "operationId": "v2.shell.timeout",
  8562. "parameters": [
  8563. {
  8564. "name": "id",
  8565. "in": "path",
  8566. "schema": {
  8567. "type": "string",
  8568. "allOf": [
  8569. {
  8570. "pattern": "^sh_"
  8571. }
  8572. ]
  8573. },
  8574. "required": true
  8575. },
  8576. {
  8577. "name": "location",
  8578. "in": "query",
  8579. "schema": {
  8580. "anyOf": [
  8581. {
  8582. "type": "object",
  8583. "properties": {
  8584. "directory": {
  8585. "anyOf": [
  8586. {
  8587. "type": "string"
  8588. },
  8589. {
  8590. "type": "null"
  8591. }
  8592. ]
  8593. },
  8594. "workspace": {
  8595. "anyOf": [
  8596. {
  8597. "type": "string"
  8598. },
  8599. {
  8600. "type": "null"
  8601. }
  8602. ]
  8603. }
  8604. },
  8605. "additionalProperties": false
  8606. },
  8607. {
  8608. "type": "null"
  8609. }
  8610. ]
  8611. },
  8612. "required": false,
  8613. "style": "deepObject",
  8614. "explode": true
  8615. }
  8616. ],
  8617. "security": [],
  8618. "responses": {
  8619. "200": {
  8620. "description": "Success",
  8621. "content": {
  8622. "application/json": {
  8623. "schema": {
  8624. "type": "object",
  8625. "properties": {
  8626. "location": {
  8627. "$ref": "#/components/schemas/Location.Info"
  8628. },
  8629. "data": {
  8630. "$ref": "#/components/schemas/Shell1"
  8631. }
  8632. },
  8633. "required": ["location", "data"],
  8634. "additionalProperties": false
  8635. }
  8636. }
  8637. }
  8638. },
  8639. "400": {
  8640. "description": "InvalidRequestError",
  8641. "content": {
  8642. "application/json": {
  8643. "schema": {
  8644. "$ref": "#/components/schemas/InvalidRequestError"
  8645. }
  8646. }
  8647. }
  8648. },
  8649. "401": {
  8650. "description": "UnauthorizedError",
  8651. "content": {
  8652. "application/json": {
  8653. "schema": {
  8654. "$ref": "#/components/schemas/UnauthorizedError"
  8655. }
  8656. }
  8657. }
  8658. },
  8659. "404": {
  8660. "description": "ShellNotFoundError",
  8661. "content": {
  8662. "application/json": {
  8663. "schema": {
  8664. "$ref": "#/components/schemas/ShellNotFoundError"
  8665. }
  8666. }
  8667. }
  8668. }
  8669. },
  8670. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  8671. "summary": "Update shell timeout",
  8672. "requestBody": {
  8673. "content": {
  8674. "application/json": {
  8675. "schema": {
  8676. "type": "object",
  8677. "properties": {
  8678. "timeout": {
  8679. "type": "integer",
  8680. "allOf": [
  8681. {
  8682. "minimum": 0
  8683. }
  8684. ]
  8685. }
  8686. },
  8687. "required": ["timeout"],
  8688. "additionalProperties": false
  8689. }
  8690. }
  8691. },
  8692. "required": true
  8693. }
  8694. }
  8695. },
  8696. "/api/shell/{id}/output": {
  8697. "get": {
  8698. "tags": ["shell"],
  8699. "operationId": "v2.shell.output",
  8700. "parameters": [
  8701. {
  8702. "name": "id",
  8703. "in": "path",
  8704. "schema": {
  8705. "type": "string",
  8706. "allOf": [
  8707. {
  8708. "pattern": "^sh_"
  8709. }
  8710. ]
  8711. },
  8712. "required": true
  8713. },
  8714. {
  8715. "name": "location",
  8716. "in": "query",
  8717. "schema": {
  8718. "anyOf": [
  8719. {
  8720. "type": "object",
  8721. "properties": {
  8722. "directory": {
  8723. "anyOf": [
  8724. {
  8725. "type": "string"
  8726. },
  8727. {
  8728. "type": "null"
  8729. }
  8730. ]
  8731. },
  8732. "workspace": {
  8733. "anyOf": [
  8734. {
  8735. "type": "string"
  8736. },
  8737. {
  8738. "type": "null"
  8739. }
  8740. ]
  8741. }
  8742. },
  8743. "additionalProperties": false
  8744. },
  8745. {
  8746. "type": "null"
  8747. }
  8748. ]
  8749. },
  8750. "required": false,
  8751. "style": "deepObject",
  8752. "explode": true
  8753. },
  8754. {
  8755. "name": "cursor",
  8756. "in": "query",
  8757. "schema": {
  8758. "type": "string",
  8759. "allOf": [
  8760. {
  8761. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  8762. }
  8763. ]
  8764. },
  8765. "required": false
  8766. },
  8767. {
  8768. "name": "limit",
  8769. "in": "query",
  8770. "schema": {
  8771. "type": "string",
  8772. "allOf": [
  8773. {
  8774. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  8775. }
  8776. ]
  8777. },
  8778. "required": false
  8779. }
  8780. ],
  8781. "security": [],
  8782. "responses": {
  8783. "200": {
  8784. "description": "Success",
  8785. "content": {
  8786. "application/json": {
  8787. "schema": {
  8788. "type": "object",
  8789. "properties": {
  8790. "location": {
  8791. "$ref": "#/components/schemas/Location.Info"
  8792. },
  8793. "data": {
  8794. "type": "object",
  8795. "properties": {
  8796. "output": {
  8797. "type": "string"
  8798. },
  8799. "cursor": {
  8800. "type": "integer",
  8801. "allOf": [
  8802. {
  8803. "minimum": 0
  8804. }
  8805. ]
  8806. },
  8807. "size": {
  8808. "type": "integer",
  8809. "allOf": [
  8810. {
  8811. "minimum": 0
  8812. }
  8813. ]
  8814. },
  8815. "truncated": {
  8816. "type": "boolean"
  8817. }
  8818. },
  8819. "required": ["output", "cursor", "size", "truncated"],
  8820. "additionalProperties": false
  8821. }
  8822. },
  8823. "required": ["location", "data"],
  8824. "additionalProperties": false
  8825. }
  8826. }
  8827. }
  8828. },
  8829. "400": {
  8830. "description": "InvalidRequestError",
  8831. "content": {
  8832. "application/json": {
  8833. "schema": {
  8834. "$ref": "#/components/schemas/InvalidRequestError"
  8835. }
  8836. }
  8837. }
  8838. },
  8839. "401": {
  8840. "description": "UnauthorizedError",
  8841. "content": {
  8842. "application/json": {
  8843. "schema": {
  8844. "$ref": "#/components/schemas/UnauthorizedError"
  8845. }
  8846. }
  8847. }
  8848. },
  8849. "404": {
  8850. "description": "ShellNotFoundError",
  8851. "content": {
  8852. "application/json": {
  8853. "schema": {
  8854. "$ref": "#/components/schemas/ShellNotFoundError"
  8855. }
  8856. }
  8857. }
  8858. }
  8859. },
  8860. "description": "Page through captured combined output by absolute byte cursor.",
  8861. "summary": "Read shell output"
  8862. }
  8863. },
  8864. "/api/question/request": {
  8865. "get": {
  8866. "tags": ["question"],
  8867. "operationId": "v2.question.request.list",
  8868. "parameters": [
  8869. {
  8870. "name": "location",
  8871. "in": "query",
  8872. "schema": {
  8873. "anyOf": [
  8874. {
  8875. "type": "object",
  8876. "properties": {
  8877. "directory": {
  8878. "anyOf": [
  8879. {
  8880. "type": "string"
  8881. },
  8882. {
  8883. "type": "null"
  8884. }
  8885. ]
  8886. },
  8887. "workspace": {
  8888. "anyOf": [
  8889. {
  8890. "type": "string"
  8891. },
  8892. {
  8893. "type": "null"
  8894. }
  8895. ]
  8896. }
  8897. },
  8898. "additionalProperties": false
  8899. },
  8900. {
  8901. "type": "null"
  8902. }
  8903. ]
  8904. },
  8905. "required": false,
  8906. "style": "deepObject",
  8907. "explode": true
  8908. }
  8909. ],
  8910. "security": [],
  8911. "responses": {
  8912. "200": {
  8913. "description": "Success",
  8914. "content": {
  8915. "application/json": {
  8916. "schema": {
  8917. "type": "object",
  8918. "properties": {
  8919. "location": {
  8920. "$ref": "#/components/schemas/Location.Info"
  8921. },
  8922. "data": {
  8923. "type": "array",
  8924. "items": {
  8925. "$ref": "#/components/schemas/QuestionV2.Request"
  8926. }
  8927. }
  8928. },
  8929. "required": ["location", "data"],
  8930. "additionalProperties": false
  8931. }
  8932. }
  8933. }
  8934. },
  8935. "400": {
  8936. "description": "InvalidRequestError",
  8937. "content": {
  8938. "application/json": {
  8939. "schema": {
  8940. "$ref": "#/components/schemas/InvalidRequestError"
  8941. }
  8942. }
  8943. }
  8944. },
  8945. "401": {
  8946. "description": "UnauthorizedError",
  8947. "content": {
  8948. "application/json": {
  8949. "schema": {
  8950. "$ref": "#/components/schemas/UnauthorizedError"
  8951. }
  8952. }
  8953. }
  8954. }
  8955. },
  8956. "description": "Retrieve pending question requests for a location.",
  8957. "summary": "List pending question requests"
  8958. }
  8959. },
  8960. "/api/session/{sessionID}/question": {
  8961. "get": {
  8962. "tags": ["question"],
  8963. "operationId": "v2.session.question.list",
  8964. "parameters": [
  8965. {
  8966. "name": "sessionID",
  8967. "in": "path",
  8968. "schema": {
  8969. "type": "string",
  8970. "allOf": [
  8971. {
  8972. "pattern": "^ses"
  8973. }
  8974. ]
  8975. },
  8976. "required": true
  8977. }
  8978. ],
  8979. "security": [],
  8980. "responses": {
  8981. "200": {
  8982. "description": "Success",
  8983. "content": {
  8984. "application/json": {
  8985. "schema": {
  8986. "type": "object",
  8987. "properties": {
  8988. "data": {
  8989. "type": "array",
  8990. "items": {
  8991. "$ref": "#/components/schemas/QuestionV2.Request"
  8992. }
  8993. }
  8994. },
  8995. "required": ["data"],
  8996. "additionalProperties": false
  8997. }
  8998. }
  8999. }
  9000. },
  9001. "400": {
  9002. "description": "InvalidRequestError",
  9003. "content": {
  9004. "application/json": {
  9005. "schema": {
  9006. "$ref": "#/components/schemas/InvalidRequestError"
  9007. }
  9008. }
  9009. }
  9010. },
  9011. "401": {
  9012. "description": "UnauthorizedError",
  9013. "content": {
  9014. "application/json": {
  9015. "schema": {
  9016. "$ref": "#/components/schemas/UnauthorizedError"
  9017. }
  9018. }
  9019. }
  9020. },
  9021. "404": {
  9022. "description": "SessionNotFoundError",
  9023. "content": {
  9024. "application/json": {
  9025. "schema": {
  9026. "anyOf": [
  9027. {
  9028. "$ref": "#/components/schemas/SessionNotFoundError"
  9029. },
  9030. {
  9031. "$ref": "#/components/schemas/SessionNotFoundError"
  9032. }
  9033. ]
  9034. }
  9035. }
  9036. }
  9037. }
  9038. },
  9039. "description": "Retrieve pending question requests owned by a session.",
  9040. "summary": "List session question requests"
  9041. }
  9042. },
  9043. "/api/session/{sessionID}/question/{requestID}/reply": {
  9044. "post": {
  9045. "tags": ["question"],
  9046. "operationId": "v2.session.question.reply",
  9047. "parameters": [
  9048. {
  9049. "name": "sessionID",
  9050. "in": "path",
  9051. "schema": {
  9052. "type": "string",
  9053. "allOf": [
  9054. {
  9055. "pattern": "^ses"
  9056. }
  9057. ]
  9058. },
  9059. "required": true
  9060. },
  9061. {
  9062. "name": "requestID",
  9063. "in": "path",
  9064. "schema": {
  9065. "type": "string",
  9066. "allOf": [
  9067. {
  9068. "pattern": "^que"
  9069. }
  9070. ]
  9071. },
  9072. "required": true
  9073. }
  9074. ],
  9075. "security": [],
  9076. "responses": {
  9077. "204": {
  9078. "description": "<No Content>"
  9079. },
  9080. "400": {
  9081. "description": "InvalidRequestError",
  9082. "content": {
  9083. "application/json": {
  9084. "schema": {
  9085. "$ref": "#/components/schemas/InvalidRequestError"
  9086. }
  9087. }
  9088. }
  9089. },
  9090. "401": {
  9091. "description": "UnauthorizedError",
  9092. "content": {
  9093. "application/json": {
  9094. "schema": {
  9095. "$ref": "#/components/schemas/UnauthorizedError"
  9096. }
  9097. }
  9098. }
  9099. },
  9100. "404": {
  9101. "description": "SessionNotFoundError | QuestionNotFoundError",
  9102. "content": {
  9103. "application/json": {
  9104. "schema": {
  9105. "anyOf": [
  9106. {
  9107. "$ref": "#/components/schemas/QuestionNotFoundError"
  9108. },
  9109. {
  9110. "$ref": "#/components/schemas/SessionNotFoundError"
  9111. },
  9112. {
  9113. "$ref": "#/components/schemas/SessionNotFoundError"
  9114. }
  9115. ]
  9116. }
  9117. }
  9118. }
  9119. }
  9120. },
  9121. "description": "Answer a pending question request owned by a session.",
  9122. "summary": "Reply to pending question request",
  9123. "requestBody": {
  9124. "content": {
  9125. "application/json": {
  9126. "schema": {
  9127. "$ref": "#/components/schemas/QuestionV2.Reply"
  9128. }
  9129. }
  9130. },
  9131. "required": true
  9132. }
  9133. }
  9134. },
  9135. "/api/session/{sessionID}/question/{requestID}/reject": {
  9136. "post": {
  9137. "tags": ["question"],
  9138. "operationId": "v2.session.question.reject",
  9139. "parameters": [
  9140. {
  9141. "name": "sessionID",
  9142. "in": "path",
  9143. "schema": {
  9144. "type": "string",
  9145. "allOf": [
  9146. {
  9147. "pattern": "^ses"
  9148. }
  9149. ]
  9150. },
  9151. "required": true
  9152. },
  9153. {
  9154. "name": "requestID",
  9155. "in": "path",
  9156. "schema": {
  9157. "type": "string",
  9158. "allOf": [
  9159. {
  9160. "pattern": "^que"
  9161. }
  9162. ]
  9163. },
  9164. "required": true
  9165. }
  9166. ],
  9167. "security": [],
  9168. "responses": {
  9169. "204": {
  9170. "description": "<No Content>"
  9171. },
  9172. "400": {
  9173. "description": "InvalidRequestError",
  9174. "content": {
  9175. "application/json": {
  9176. "schema": {
  9177. "$ref": "#/components/schemas/InvalidRequestError"
  9178. }
  9179. }
  9180. }
  9181. },
  9182. "401": {
  9183. "description": "UnauthorizedError",
  9184. "content": {
  9185. "application/json": {
  9186. "schema": {
  9187. "$ref": "#/components/schemas/UnauthorizedError"
  9188. }
  9189. }
  9190. }
  9191. },
  9192. "404": {
  9193. "description": "SessionNotFoundError | QuestionNotFoundError",
  9194. "content": {
  9195. "application/json": {
  9196. "schema": {
  9197. "anyOf": [
  9198. {
  9199. "$ref": "#/components/schemas/QuestionNotFoundError"
  9200. },
  9201. {
  9202. "$ref": "#/components/schemas/SessionNotFoundError"
  9203. },
  9204. {
  9205. "$ref": "#/components/schemas/SessionNotFoundError"
  9206. }
  9207. ]
  9208. }
  9209. }
  9210. }
  9211. }
  9212. },
  9213. "description": "Reject a pending question request owned by a session.",
  9214. "summary": "Reject pending question request"
  9215. }
  9216. },
  9217. "/api/reference": {
  9218. "get": {
  9219. "tags": ["reference"],
  9220. "operationId": "v2.reference.list",
  9221. "parameters": [
  9222. {
  9223. "name": "location",
  9224. "in": "query",
  9225. "schema": {
  9226. "anyOf": [
  9227. {
  9228. "type": "object",
  9229. "properties": {
  9230. "directory": {
  9231. "anyOf": [
  9232. {
  9233. "type": "string"
  9234. },
  9235. {
  9236. "type": "null"
  9237. }
  9238. ]
  9239. },
  9240. "workspace": {
  9241. "anyOf": [
  9242. {
  9243. "type": "string"
  9244. },
  9245. {
  9246. "type": "null"
  9247. }
  9248. ]
  9249. }
  9250. },
  9251. "additionalProperties": false
  9252. },
  9253. {
  9254. "type": "null"
  9255. }
  9256. ]
  9257. },
  9258. "required": false,
  9259. "style": "deepObject",
  9260. "explode": true
  9261. }
  9262. ],
  9263. "security": [],
  9264. "responses": {
  9265. "200": {
  9266. "description": "Success",
  9267. "content": {
  9268. "application/json": {
  9269. "schema": {
  9270. "type": "object",
  9271. "properties": {
  9272. "location": {
  9273. "$ref": "#/components/schemas/Location.Info"
  9274. },
  9275. "data": {
  9276. "type": "array",
  9277. "items": {
  9278. "$ref": "#/components/schemas/Reference.Info"
  9279. }
  9280. }
  9281. },
  9282. "required": ["location", "data"],
  9283. "additionalProperties": false
  9284. }
  9285. }
  9286. }
  9287. },
  9288. "400": {
  9289. "description": "InvalidRequestError",
  9290. "content": {
  9291. "application/json": {
  9292. "schema": {
  9293. "$ref": "#/components/schemas/InvalidRequestError"
  9294. }
  9295. }
  9296. }
  9297. },
  9298. "401": {
  9299. "description": "UnauthorizedError",
  9300. "content": {
  9301. "application/json": {
  9302. "schema": {
  9303. "$ref": "#/components/schemas/UnauthorizedError"
  9304. }
  9305. }
  9306. }
  9307. }
  9308. },
  9309. "description": "List references available in the requested location.",
  9310. "summary": "List references"
  9311. }
  9312. },
  9313. "/experimental/project/{projectID}/copy": {
  9314. "post": {
  9315. "tags": ["projectCopy"],
  9316. "operationId": "v2.projectCopy.create",
  9317. "parameters": [
  9318. {
  9319. "name": "projectID",
  9320. "in": "path",
  9321. "schema": {
  9322. "type": "string"
  9323. },
  9324. "required": true
  9325. },
  9326. {
  9327. "name": "location",
  9328. "in": "query",
  9329. "schema": {
  9330. "anyOf": [
  9331. {
  9332. "type": "object",
  9333. "properties": {
  9334. "directory": {
  9335. "anyOf": [
  9336. {
  9337. "type": "string"
  9338. },
  9339. {
  9340. "type": "null"
  9341. }
  9342. ]
  9343. },
  9344. "workspace": {
  9345. "anyOf": [
  9346. {
  9347. "type": "string"
  9348. },
  9349. {
  9350. "type": "null"
  9351. }
  9352. ]
  9353. }
  9354. },
  9355. "additionalProperties": false
  9356. },
  9357. {
  9358. "type": "null"
  9359. }
  9360. ]
  9361. },
  9362. "required": false,
  9363. "style": "deepObject",
  9364. "explode": true
  9365. }
  9366. ],
  9367. "security": [],
  9368. "responses": {
  9369. "200": {
  9370. "description": "ProjectCopy.Copy",
  9371. "content": {
  9372. "application/json": {
  9373. "schema": {
  9374. "$ref": "#/components/schemas/ProjectCopy.Copy"
  9375. }
  9376. }
  9377. }
  9378. },
  9379. "400": {
  9380. "description": "ProjectCopyError | InvalidRequestError",
  9381. "content": {
  9382. "application/json": {
  9383. "schema": {
  9384. "anyOf": [
  9385. {
  9386. "$ref": "#/components/schemas/ProjectCopyError"
  9387. },
  9388. {
  9389. "$ref": "#/components/schemas/InvalidRequestError"
  9390. }
  9391. ]
  9392. }
  9393. }
  9394. }
  9395. },
  9396. "401": {
  9397. "description": "UnauthorizedError",
  9398. "content": {
  9399. "application/json": {
  9400. "schema": {
  9401. "$ref": "#/components/schemas/UnauthorizedError"
  9402. }
  9403. }
  9404. }
  9405. }
  9406. },
  9407. "requestBody": {
  9408. "content": {
  9409. "application/json": {
  9410. "schema": {
  9411. "type": "object",
  9412. "properties": {
  9413. "strategy": {
  9414. "type": "string"
  9415. },
  9416. "directory": {
  9417. "type": "string"
  9418. },
  9419. "name": {
  9420. "type": "string"
  9421. }
  9422. },
  9423. "required": ["strategy", "directory"],
  9424. "additionalProperties": false
  9425. }
  9426. }
  9427. },
  9428. "required": true
  9429. }
  9430. },
  9431. "delete": {
  9432. "tags": ["projectCopy"],
  9433. "operationId": "v2.projectCopy.remove",
  9434. "parameters": [
  9435. {
  9436. "name": "projectID",
  9437. "in": "path",
  9438. "schema": {
  9439. "type": "string"
  9440. },
  9441. "required": true
  9442. },
  9443. {
  9444. "name": "location",
  9445. "in": "query",
  9446. "schema": {
  9447. "anyOf": [
  9448. {
  9449. "type": "object",
  9450. "properties": {
  9451. "directory": {
  9452. "anyOf": [
  9453. {
  9454. "type": "string"
  9455. },
  9456. {
  9457. "type": "null"
  9458. }
  9459. ]
  9460. },
  9461. "workspace": {
  9462. "anyOf": [
  9463. {
  9464. "type": "string"
  9465. },
  9466. {
  9467. "type": "null"
  9468. }
  9469. ]
  9470. }
  9471. },
  9472. "additionalProperties": false
  9473. },
  9474. {
  9475. "type": "null"
  9476. }
  9477. ]
  9478. },
  9479. "required": false,
  9480. "style": "deepObject",
  9481. "explode": true
  9482. }
  9483. ],
  9484. "security": [],
  9485. "responses": {
  9486. "204": {
  9487. "description": "<No Content>"
  9488. },
  9489. "400": {
  9490. "description": "ProjectCopyError | InvalidRequestError",
  9491. "content": {
  9492. "application/json": {
  9493. "schema": {
  9494. "anyOf": [
  9495. {
  9496. "$ref": "#/components/schemas/ProjectCopyError"
  9497. },
  9498. {
  9499. "$ref": "#/components/schemas/InvalidRequestError"
  9500. }
  9501. ]
  9502. }
  9503. }
  9504. }
  9505. },
  9506. "401": {
  9507. "description": "UnauthorizedError",
  9508. "content": {
  9509. "application/json": {
  9510. "schema": {
  9511. "$ref": "#/components/schemas/UnauthorizedError"
  9512. }
  9513. }
  9514. }
  9515. }
  9516. },
  9517. "requestBody": {
  9518. "content": {
  9519. "application/json": {
  9520. "schema": {
  9521. "type": "object",
  9522. "properties": {
  9523. "directory": {
  9524. "type": "string"
  9525. },
  9526. "force": {
  9527. "type": "boolean"
  9528. }
  9529. },
  9530. "required": ["directory", "force"],
  9531. "additionalProperties": false
  9532. }
  9533. }
  9534. },
  9535. "required": true
  9536. }
  9537. }
  9538. },
  9539. "/experimental/project/{projectID}/copy/refresh": {
  9540. "post": {
  9541. "tags": ["projectCopy"],
  9542. "operationId": "v2.projectCopy.refresh",
  9543. "parameters": [
  9544. {
  9545. "name": "projectID",
  9546. "in": "path",
  9547. "schema": {
  9548. "type": "string"
  9549. },
  9550. "required": true
  9551. },
  9552. {
  9553. "name": "location",
  9554. "in": "query",
  9555. "schema": {
  9556. "anyOf": [
  9557. {
  9558. "type": "object",
  9559. "properties": {
  9560. "directory": {
  9561. "anyOf": [
  9562. {
  9563. "type": "string"
  9564. },
  9565. {
  9566. "type": "null"
  9567. }
  9568. ]
  9569. },
  9570. "workspace": {
  9571. "anyOf": [
  9572. {
  9573. "type": "string"
  9574. },
  9575. {
  9576. "type": "null"
  9577. }
  9578. ]
  9579. }
  9580. },
  9581. "additionalProperties": false
  9582. },
  9583. {
  9584. "type": "null"
  9585. }
  9586. ]
  9587. },
  9588. "required": false,
  9589. "style": "deepObject",
  9590. "explode": true
  9591. }
  9592. ],
  9593. "security": [],
  9594. "responses": {
  9595. "204": {
  9596. "description": "<No Content>"
  9597. },
  9598. "400": {
  9599. "description": "ProjectCopyError | InvalidRequestError",
  9600. "content": {
  9601. "application/json": {
  9602. "schema": {
  9603. "anyOf": [
  9604. {
  9605. "$ref": "#/components/schemas/ProjectCopyError"
  9606. },
  9607. {
  9608. "$ref": "#/components/schemas/InvalidRequestError"
  9609. }
  9610. ]
  9611. }
  9612. }
  9613. }
  9614. },
  9615. "401": {
  9616. "description": "UnauthorizedError",
  9617. "content": {
  9618. "application/json": {
  9619. "schema": {
  9620. "$ref": "#/components/schemas/UnauthorizedError"
  9621. }
  9622. }
  9623. }
  9624. }
  9625. }
  9626. }
  9627. },
  9628. "/api/vcs/status": {
  9629. "get": {
  9630. "tags": ["vcs"],
  9631. "operationId": "v2.vcs.status",
  9632. "parameters": [
  9633. {
  9634. "name": "location",
  9635. "in": "query",
  9636. "schema": {
  9637. "anyOf": [
  9638. {
  9639. "type": "object",
  9640. "properties": {
  9641. "directory": {
  9642. "anyOf": [
  9643. {
  9644. "type": "string"
  9645. },
  9646. {
  9647. "type": "null"
  9648. }
  9649. ]
  9650. },
  9651. "workspace": {
  9652. "anyOf": [
  9653. {
  9654. "type": "string"
  9655. },
  9656. {
  9657. "type": "null"
  9658. }
  9659. ]
  9660. }
  9661. },
  9662. "additionalProperties": false
  9663. },
  9664. {
  9665. "type": "null"
  9666. }
  9667. ]
  9668. },
  9669. "required": false,
  9670. "style": "deepObject",
  9671. "explode": true
  9672. }
  9673. ],
  9674. "security": [],
  9675. "responses": {
  9676. "200": {
  9677. "description": "Success",
  9678. "content": {
  9679. "application/json": {
  9680. "schema": {
  9681. "type": "object",
  9682. "properties": {
  9683. "location": {
  9684. "$ref": "#/components/schemas/Location.Info"
  9685. },
  9686. "data": {
  9687. "type": "array",
  9688. "items": {
  9689. "$ref": "#/components/schemas/Vcs.FileStatus"
  9690. }
  9691. }
  9692. },
  9693. "required": ["location", "data"],
  9694. "additionalProperties": false
  9695. }
  9696. }
  9697. }
  9698. },
  9699. "400": {
  9700. "description": "InvalidRequestError",
  9701. "content": {
  9702. "application/json": {
  9703. "schema": {
  9704. "$ref": "#/components/schemas/InvalidRequestError"
  9705. }
  9706. }
  9707. }
  9708. },
  9709. "401": {
  9710. "description": "UnauthorizedError",
  9711. "content": {
  9712. "application/json": {
  9713. "schema": {
  9714. "$ref": "#/components/schemas/UnauthorizedError"
  9715. }
  9716. }
  9717. }
  9718. }
  9719. },
  9720. "description": "List uncommitted working-copy changes relative to the requested location.",
  9721. "summary": "VCS status"
  9722. }
  9723. },
  9724. "/api/vcs/diff": {
  9725. "get": {
  9726. "tags": ["vcs"],
  9727. "operationId": "v2.vcs.diff",
  9728. "parameters": [
  9729. {
  9730. "name": "location",
  9731. "in": "query",
  9732. "schema": {
  9733. "anyOf": [
  9734. {
  9735. "type": "object",
  9736. "properties": {
  9737. "directory": {
  9738. "anyOf": [
  9739. {
  9740. "type": "string"
  9741. },
  9742. {
  9743. "type": "null"
  9744. }
  9745. ]
  9746. },
  9747. "workspace": {
  9748. "anyOf": [
  9749. {
  9750. "type": "string"
  9751. },
  9752. {
  9753. "type": "null"
  9754. }
  9755. ]
  9756. }
  9757. },
  9758. "additionalProperties": false
  9759. },
  9760. {
  9761. "type": "null"
  9762. }
  9763. ]
  9764. },
  9765. "required": false,
  9766. "style": "deepObject",
  9767. "explode": true
  9768. },
  9769. {
  9770. "name": "mode",
  9771. "in": "query",
  9772. "schema": {
  9773. "$ref": "#/components/schemas/Vcs.Mode"
  9774. },
  9775. "required": true
  9776. },
  9777. {
  9778. "name": "context",
  9779. "in": "query",
  9780. "schema": {
  9781. "anyOf": [
  9782. {
  9783. "type": "string"
  9784. },
  9785. {
  9786. "type": "null"
  9787. }
  9788. ]
  9789. },
  9790. "required": false
  9791. }
  9792. ],
  9793. "security": [],
  9794. "responses": {
  9795. "200": {
  9796. "description": "Success",
  9797. "content": {
  9798. "application/json": {
  9799. "schema": {
  9800. "type": "object",
  9801. "properties": {
  9802. "location": {
  9803. "$ref": "#/components/schemas/Location.Info"
  9804. },
  9805. "data": {
  9806. "type": "array",
  9807. "items": {
  9808. "$ref": "#/components/schemas/FileDiff.Info"
  9809. }
  9810. }
  9811. },
  9812. "required": ["location", "data"],
  9813. "additionalProperties": false
  9814. }
  9815. }
  9816. }
  9817. },
  9818. "400": {
  9819. "description": "InvalidRequestError",
  9820. "content": {
  9821. "application/json": {
  9822. "schema": {
  9823. "$ref": "#/components/schemas/InvalidRequestError"
  9824. }
  9825. }
  9826. }
  9827. },
  9828. "401": {
  9829. "description": "UnauthorizedError",
  9830. "content": {
  9831. "application/json": {
  9832. "schema": {
  9833. "$ref": "#/components/schemas/UnauthorizedError"
  9834. }
  9835. }
  9836. }
  9837. }
  9838. },
  9839. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  9840. "summary": "VCS diff"
  9841. }
  9842. },
  9843. "/api/debug/location": {
  9844. "get": {
  9845. "tags": ["debug"],
  9846. "operationId": "v2.debug.location.list",
  9847. "parameters": [],
  9848. "security": [],
  9849. "responses": {
  9850. "200": {
  9851. "description": "Success",
  9852. "content": {
  9853. "application/json": {
  9854. "schema": {
  9855. "type": "array",
  9856. "items": {
  9857. "$ref": "#/components/schemas/Location.Ref"
  9858. }
  9859. }
  9860. }
  9861. }
  9862. },
  9863. "400": {
  9864. "description": "InvalidRequestError",
  9865. "content": {
  9866. "application/json": {
  9867. "schema": {
  9868. "$ref": "#/components/schemas/InvalidRequestError"
  9869. }
  9870. }
  9871. }
  9872. },
  9873. "401": {
  9874. "description": "UnauthorizedError",
  9875. "content": {
  9876. "application/json": {
  9877. "schema": {
  9878. "$ref": "#/components/schemas/UnauthorizedError"
  9879. }
  9880. }
  9881. }
  9882. }
  9883. },
  9884. "description": "List locations currently loaded by the server.",
  9885. "summary": "List loaded locations"
  9886. },
  9887. "delete": {
  9888. "tags": ["debug"],
  9889. "operationId": "v2.debug.location.evict",
  9890. "parameters": [
  9891. {
  9892. "name": "location",
  9893. "in": "query",
  9894. "schema": {
  9895. "anyOf": [
  9896. {
  9897. "type": "object",
  9898. "properties": {
  9899. "directory": {
  9900. "anyOf": [
  9901. {
  9902. "type": "string"
  9903. },
  9904. {
  9905. "type": "null"
  9906. }
  9907. ]
  9908. },
  9909. "workspace": {
  9910. "anyOf": [
  9911. {
  9912. "type": "string"
  9913. },
  9914. {
  9915. "type": "null"
  9916. }
  9917. ]
  9918. }
  9919. },
  9920. "additionalProperties": false
  9921. },
  9922. {
  9923. "type": "null"
  9924. }
  9925. ]
  9926. },
  9927. "required": false,
  9928. "style": "deepObject",
  9929. "explode": true
  9930. }
  9931. ],
  9932. "security": [],
  9933. "responses": {
  9934. "204": {
  9935. "description": "<No Content>"
  9936. },
  9937. "400": {
  9938. "description": "InvalidRequestError",
  9939. "content": {
  9940. "application/json": {
  9941. "schema": {
  9942. "$ref": "#/components/schemas/InvalidRequestError"
  9943. }
  9944. }
  9945. }
  9946. },
  9947. "401": {
  9948. "description": "UnauthorizedError",
  9949. "content": {
  9950. "application/json": {
  9951. "schema": {
  9952. "$ref": "#/components/schemas/UnauthorizedError"
  9953. }
  9954. }
  9955. }
  9956. }
  9957. },
  9958. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  9959. "summary": "Evict a loaded location"
  9960. }
  9961. }
  9962. },
  9963. "components": {
  9964. "schemas": {
  9965. "UnauthorizedError": {
  9966. "type": "object",
  9967. "properties": {
  9968. "_tag": {
  9969. "type": "string",
  9970. "enum": ["UnauthorizedError"]
  9971. },
  9972. "message": {
  9973. "type": "string"
  9974. }
  9975. },
  9976. "required": ["_tag", "message"],
  9977. "additionalProperties": false
  9978. },
  9979. "InvalidRequestError": {
  9980. "type": "object",
  9981. "properties": {
  9982. "_tag": {
  9983. "type": "string",
  9984. "enum": ["InvalidRequestError"]
  9985. },
  9986. "message": {
  9987. "type": "string"
  9988. },
  9989. "kind": {
  9990. "anyOf": [
  9991. {
  9992. "type": "string"
  9993. },
  9994. {
  9995. "type": "null"
  9996. }
  9997. ]
  9998. },
  9999. "field": {
  10000. "anyOf": [
  10001. {
  10002. "type": "string"
  10003. },
  10004. {
  10005. "type": "null"
  10006. }
  10007. ]
  10008. }
  10009. },
  10010. "required": ["_tag", "message"],
  10011. "additionalProperties": false
  10012. },
  10013. "Location.Info": {
  10014. "type": "object",
  10015. "properties": {
  10016. "directory": {
  10017. "type": "string"
  10018. },
  10019. "workspaceID": {
  10020. "type": "string",
  10021. "allOf": [
  10022. {
  10023. "pattern": "^wrk"
  10024. }
  10025. ]
  10026. },
  10027. "project": {
  10028. "type": "object",
  10029. "properties": {
  10030. "id": {
  10031. "type": "string"
  10032. },
  10033. "directory": {
  10034. "type": "string"
  10035. }
  10036. },
  10037. "required": ["id", "directory"],
  10038. "additionalProperties": false
  10039. }
  10040. },
  10041. "required": ["directory", "project"],
  10042. "additionalProperties": false
  10043. },
  10044. "Model.Ref": {
  10045. "type": "object",
  10046. "properties": {
  10047. "id": {
  10048. "type": "string"
  10049. },
  10050. "providerID": {
  10051. "type": "string"
  10052. },
  10053. "variant": {
  10054. "type": "string"
  10055. }
  10056. },
  10057. "required": ["id", "providerID"],
  10058. "additionalProperties": false
  10059. },
  10060. "Provider.Settings": {
  10061. "type": "object"
  10062. },
  10063. "Provider.Request": {
  10064. "type": "object",
  10065. "properties": {
  10066. "settings": {
  10067. "$ref": "#/components/schemas/Provider.Settings"
  10068. },
  10069. "headers": {
  10070. "type": "object",
  10071. "additionalProperties": {
  10072. "type": "string"
  10073. }
  10074. },
  10075. "body": {
  10076. "type": "object"
  10077. }
  10078. },
  10079. "required": ["settings", "headers", "body"],
  10080. "additionalProperties": false
  10081. },
  10082. "Agent.Color": {
  10083. "type": "string",
  10084. "allOf": [
  10085. {
  10086. "pattern": "^#[0-9a-fA-F]{6}$"
  10087. }
  10088. ]
  10089. },
  10090. "PermissionV2.Effect": {
  10091. "type": "string",
  10092. "enum": ["allow", "deny", "ask"]
  10093. },
  10094. "PermissionV2.Rule": {
  10095. "type": "object",
  10096. "properties": {
  10097. "action": {
  10098. "type": "string"
  10099. },
  10100. "resource": {
  10101. "type": "string"
  10102. },
  10103. "effect": {
  10104. "$ref": "#/components/schemas/PermissionV2.Effect"
  10105. }
  10106. },
  10107. "required": ["action", "resource", "effect"],
  10108. "additionalProperties": false
  10109. },
  10110. "PermissionV2.Ruleset": {
  10111. "type": "array",
  10112. "items": {
  10113. "$ref": "#/components/schemas/PermissionV2.Rule"
  10114. }
  10115. },
  10116. "Agent.Info": {
  10117. "type": "object",
  10118. "properties": {
  10119. "id": {
  10120. "type": "string"
  10121. },
  10122. "name": {
  10123. "type": "string"
  10124. },
  10125. "model": {
  10126. "$ref": "#/components/schemas/Model.Ref"
  10127. },
  10128. "request": {
  10129. "$ref": "#/components/schemas/Provider.Request"
  10130. },
  10131. "system": {
  10132. "type": "string"
  10133. },
  10134. "description": {
  10135. "type": "string"
  10136. },
  10137. "mode": {
  10138. "type": "string",
  10139. "enum": ["subagent", "primary", "all"]
  10140. },
  10141. "hidden": {
  10142. "type": "boolean"
  10143. },
  10144. "color": {
  10145. "$ref": "#/components/schemas/Agent.Color"
  10146. },
  10147. "steps": {
  10148. "type": "integer",
  10149. "allOf": [
  10150. {
  10151. "exclusiveMinimum": 0
  10152. }
  10153. ]
  10154. },
  10155. "permissions": {
  10156. "$ref": "#/components/schemas/PermissionV2.Ruleset"
  10157. }
  10158. },
  10159. "required": ["id", "name", "request", "mode", "hidden", "permissions"],
  10160. "additionalProperties": false
  10161. },
  10162. "Plugin.Info": {
  10163. "type": "object",
  10164. "properties": {
  10165. "id": {
  10166. "type": "string"
  10167. }
  10168. },
  10169. "required": ["id"],
  10170. "additionalProperties": false
  10171. },
  10172. "Money.USD": {
  10173. "type": "number"
  10174. },
  10175. "TokenUsage.Info": {
  10176. "type": "object",
  10177. "properties": {
  10178. "input": {
  10179. "type": "number"
  10180. },
  10181. "output": {
  10182. "type": "number"
  10183. },
  10184. "reasoning": {
  10185. "type": "number"
  10186. },
  10187. "cache": {
  10188. "type": "object",
  10189. "properties": {
  10190. "read": {
  10191. "type": "number"
  10192. },
  10193. "write": {
  10194. "type": "number"
  10195. }
  10196. },
  10197. "required": ["read", "write"],
  10198. "additionalProperties": false
  10199. }
  10200. },
  10201. "required": ["input", "output", "reasoning", "cache"],
  10202. "additionalProperties": false
  10203. },
  10204. "Location.Ref": {
  10205. "type": "object",
  10206. "properties": {
  10207. "directory": {
  10208. "type": "string"
  10209. },
  10210. "workspaceID": {
  10211. "type": "string",
  10212. "allOf": [
  10213. {
  10214. "pattern": "^wrk"
  10215. }
  10216. ]
  10217. }
  10218. },
  10219. "required": ["directory"],
  10220. "additionalProperties": false
  10221. },
  10222. "FileDiff.Info": {
  10223. "type": "object",
  10224. "properties": {
  10225. "file": {
  10226. "type": "string"
  10227. },
  10228. "patch": {
  10229. "type": "string"
  10230. },
  10231. "additions": {
  10232. "type": "integer",
  10233. "allOf": [
  10234. {
  10235. "minimum": 0
  10236. }
  10237. ]
  10238. },
  10239. "deletions": {
  10240. "type": "integer",
  10241. "allOf": [
  10242. {
  10243. "minimum": 0
  10244. }
  10245. ]
  10246. },
  10247. "status": {
  10248. "type": "string",
  10249. "enum": ["added", "deleted", "modified"]
  10250. }
  10251. },
  10252. "required": ["file", "patch", "additions", "deletions", "status"],
  10253. "additionalProperties": false
  10254. },
  10255. "Session.Revert": {
  10256. "type": "object",
  10257. "properties": {
  10258. "messageID": {
  10259. "type": "string",
  10260. "allOf": [
  10261. {
  10262. "pattern": "^msg_"
  10263. }
  10264. ]
  10265. },
  10266. "partID": {
  10267. "type": "string"
  10268. },
  10269. "snapshot": {
  10270. "type": "string"
  10271. },
  10272. "files": {
  10273. "type": "array",
  10274. "items": {
  10275. "$ref": "#/components/schemas/FileDiff.Info"
  10276. }
  10277. }
  10278. },
  10279. "required": ["messageID"],
  10280. "additionalProperties": false
  10281. },
  10282. "Session.Info": {
  10283. "type": "object",
  10284. "properties": {
  10285. "id": {
  10286. "type": "string",
  10287. "allOf": [
  10288. {
  10289. "pattern": "^ses"
  10290. }
  10291. ]
  10292. },
  10293. "parentID": {
  10294. "type": "string",
  10295. "allOf": [
  10296. {
  10297. "pattern": "^ses"
  10298. }
  10299. ]
  10300. },
  10301. "fork": {
  10302. "type": "object",
  10303. "properties": {
  10304. "sessionID": {
  10305. "type": "string",
  10306. "allOf": [
  10307. {
  10308. "pattern": "^ses"
  10309. }
  10310. ]
  10311. },
  10312. "messageID": {
  10313. "type": "string",
  10314. "allOf": [
  10315. {
  10316. "pattern": "^msg_"
  10317. }
  10318. ]
  10319. }
  10320. },
  10321. "required": ["sessionID"],
  10322. "additionalProperties": false
  10323. },
  10324. "projectID": {
  10325. "type": "string"
  10326. },
  10327. "agent": {
  10328. "type": "string"
  10329. },
  10330. "model": {
  10331. "$ref": "#/components/schemas/Model.Ref"
  10332. },
  10333. "cost": {
  10334. "$ref": "#/components/schemas/Money.USD"
  10335. },
  10336. "tokens": {
  10337. "$ref": "#/components/schemas/TokenUsage.Info"
  10338. },
  10339. "time": {
  10340. "type": "object",
  10341. "properties": {
  10342. "created": {
  10343. "type": "number"
  10344. },
  10345. "updated": {
  10346. "type": "number"
  10347. },
  10348. "archived": {
  10349. "type": "number"
  10350. }
  10351. },
  10352. "required": ["created", "updated"],
  10353. "additionalProperties": false
  10354. },
  10355. "title": {
  10356. "type": "string"
  10357. },
  10358. "location": {
  10359. "$ref": "#/components/schemas/Location.Ref"
  10360. },
  10361. "subpath": {
  10362. "type": "string"
  10363. },
  10364. "revert": {
  10365. "$ref": "#/components/schemas/Session.Revert"
  10366. }
  10367. },
  10368. "required": ["id", "projectID", "cost", "tokens", "time", "title", "location"],
  10369. "additionalProperties": false
  10370. },
  10371. "SessionsResponse": {
  10372. "type": "object",
  10373. "properties": {
  10374. "data": {
  10375. "type": "array",
  10376. "items": {
  10377. "$ref": "#/components/schemas/Session.Info"
  10378. }
  10379. },
  10380. "cursor": {
  10381. "type": "object",
  10382. "properties": {
  10383. "previous": {
  10384. "anyOf": [
  10385. {
  10386. "type": "string"
  10387. },
  10388. {
  10389. "type": "null"
  10390. }
  10391. ]
  10392. },
  10393. "next": {
  10394. "anyOf": [
  10395. {
  10396. "type": "string"
  10397. },
  10398. {
  10399. "type": "null"
  10400. }
  10401. ]
  10402. }
  10403. },
  10404. "additionalProperties": false
  10405. }
  10406. },
  10407. "required": ["data", "cursor"],
  10408. "additionalProperties": false
  10409. },
  10410. "InvalidCursorError": {
  10411. "type": "object",
  10412. "properties": {
  10413. "_tag": {
  10414. "type": "string",
  10415. "enum": ["InvalidCursorError"]
  10416. },
  10417. "message": {
  10418. "type": "string"
  10419. }
  10420. },
  10421. "required": ["_tag", "message"],
  10422. "additionalProperties": false
  10423. },
  10424. "InvalidRequestError1": {
  10425. "type": "object",
  10426. "properties": {
  10427. "_tag": {
  10428. "type": "string",
  10429. "enum": ["InvalidRequestError"]
  10430. },
  10431. "message": {
  10432. "type": "string"
  10433. },
  10434. "kind": {
  10435. "anyOf": [
  10436. {
  10437. "type": "string"
  10438. },
  10439. {
  10440. "type": "null"
  10441. }
  10442. ]
  10443. },
  10444. "field": {
  10445. "anyOf": [
  10446. {
  10447. "type": "string"
  10448. },
  10449. {
  10450. "type": "null"
  10451. }
  10452. ]
  10453. }
  10454. },
  10455. "required": ["_tag", "message"],
  10456. "additionalProperties": false
  10457. },
  10458. "SessionActive": {
  10459. "type": "object",
  10460. "properties": {
  10461. "type": {
  10462. "type": "string",
  10463. "enum": ["running"]
  10464. }
  10465. },
  10466. "required": ["type"],
  10467. "additionalProperties": false
  10468. },
  10469. "SessionNotFoundError": {
  10470. "type": "object",
  10471. "properties": {
  10472. "_tag": {
  10473. "type": "string",
  10474. "enum": ["SessionNotFoundError"]
  10475. },
  10476. "sessionID": {
  10477. "type": "string"
  10478. },
  10479. "message": {
  10480. "type": "string"
  10481. }
  10482. },
  10483. "required": ["_tag", "sessionID", "message"],
  10484. "additionalProperties": false
  10485. },
  10486. "MessageNotFoundError": {
  10487. "type": "object",
  10488. "properties": {
  10489. "_tag": {
  10490. "type": "string",
  10491. "enum": ["MessageNotFoundError"]
  10492. },
  10493. "sessionID": {
  10494. "type": "string"
  10495. },
  10496. "messageID": {
  10497. "type": "string"
  10498. },
  10499. "message": {
  10500. "type": "string"
  10501. }
  10502. },
  10503. "required": ["_tag", "sessionID", "messageID", "message"],
  10504. "additionalProperties": false
  10505. },
  10506. "Prompt.Mention": {
  10507. "type": "object",
  10508. "properties": {
  10509. "start": {
  10510. "type": "number"
  10511. },
  10512. "end": {
  10513. "type": "number"
  10514. },
  10515. "text": {
  10516. "type": "string"
  10517. }
  10518. },
  10519. "required": ["start", "end", "text"],
  10520. "additionalProperties": false
  10521. },
  10522. "PromptInput.FileAttachment": {
  10523. "type": "object",
  10524. "properties": {
  10525. "uri": {
  10526. "type": "string"
  10527. },
  10528. "name": {
  10529. "type": "string"
  10530. },
  10531. "description": {
  10532. "type": "string"
  10533. },
  10534. "mention": {
  10535. "$ref": "#/components/schemas/Prompt.Mention"
  10536. }
  10537. },
  10538. "required": ["uri"],
  10539. "additionalProperties": false
  10540. },
  10541. "Prompt.AgentAttachment": {
  10542. "type": "object",
  10543. "properties": {
  10544. "name": {
  10545. "type": "string"
  10546. },
  10547. "mention": {
  10548. "$ref": "#/components/schemas/Prompt.Mention"
  10549. }
  10550. },
  10551. "required": ["name"],
  10552. "additionalProperties": false
  10553. },
  10554. "PromptInput": {
  10555. "type": "object",
  10556. "properties": {
  10557. "text": {
  10558. "type": "string"
  10559. },
  10560. "files": {
  10561. "type": "array",
  10562. "items": {
  10563. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  10564. }
  10565. },
  10566. "agents": {
  10567. "type": "array",
  10568. "items": {
  10569. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  10570. }
  10571. }
  10572. },
  10573. "required": ["text"],
  10574. "additionalProperties": false
  10575. },
  10576. "Prompt.Base64": {
  10577. "type": "string",
  10578. "allOf": [
  10579. {
  10580. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  10581. }
  10582. ]
  10583. },
  10584. "Prompt.FileSource": {
  10585. "anyOf": [
  10586. {
  10587. "type": "object",
  10588. "properties": {
  10589. "type": {
  10590. "type": "string",
  10591. "enum": ["inline"]
  10592. }
  10593. },
  10594. "required": ["type"],
  10595. "additionalProperties": false
  10596. },
  10597. {
  10598. "type": "object",
  10599. "properties": {
  10600. "type": {
  10601. "type": "string",
  10602. "enum": ["uri"]
  10603. },
  10604. "uri": {
  10605. "type": "string"
  10606. }
  10607. },
  10608. "required": ["type", "uri"],
  10609. "additionalProperties": false
  10610. }
  10611. ]
  10612. },
  10613. "Prompt.FileAttachment": {
  10614. "type": "object",
  10615. "properties": {
  10616. "data": {
  10617. "$ref": "#/components/schemas/Prompt.Base64"
  10618. },
  10619. "mime": {
  10620. "type": "string"
  10621. },
  10622. "source": {
  10623. "$ref": "#/components/schemas/Prompt.FileSource"
  10624. },
  10625. "name": {
  10626. "type": "string"
  10627. },
  10628. "description": {
  10629. "type": "string"
  10630. },
  10631. "mention": {
  10632. "$ref": "#/components/schemas/Prompt.Mention"
  10633. }
  10634. },
  10635. "required": ["data", "mime", "source"],
  10636. "additionalProperties": false
  10637. },
  10638. "Prompt": {
  10639. "type": "object",
  10640. "properties": {
  10641. "text": {
  10642. "type": "string"
  10643. },
  10644. "files": {
  10645. "type": "array",
  10646. "items": {
  10647. "$ref": "#/components/schemas/Prompt.FileAttachment"
  10648. }
  10649. },
  10650. "agents": {
  10651. "type": "array",
  10652. "items": {
  10653. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  10654. }
  10655. }
  10656. },
  10657. "required": ["text"],
  10658. "additionalProperties": false
  10659. },
  10660. "SessionInput.Admitted": {
  10661. "type": "object",
  10662. "properties": {
  10663. "admittedSeq": {
  10664. "type": "integer",
  10665. "allOf": [
  10666. {
  10667. "minimum": 0
  10668. }
  10669. ]
  10670. },
  10671. "id": {
  10672. "type": "string",
  10673. "allOf": [
  10674. {
  10675. "pattern": "^msg_"
  10676. }
  10677. ]
  10678. },
  10679. "sessionID": {
  10680. "type": "string",
  10681. "allOf": [
  10682. {
  10683. "pattern": "^ses"
  10684. }
  10685. ]
  10686. },
  10687. "prompt": {
  10688. "$ref": "#/components/schemas/Prompt"
  10689. },
  10690. "delivery": {
  10691. "type": "string",
  10692. "enum": ["steer", "queue"]
  10693. },
  10694. "timeCreated": {
  10695. "type": "number"
  10696. },
  10697. "promotedSeq": {
  10698. "type": "integer",
  10699. "allOf": [
  10700. {
  10701. "minimum": 0
  10702. }
  10703. ]
  10704. }
  10705. },
  10706. "required": ["admittedSeq", "id", "sessionID", "prompt", "delivery", "timeCreated"],
  10707. "additionalProperties": false
  10708. },
  10709. "ConflictError": {
  10710. "type": "object",
  10711. "properties": {
  10712. "_tag": {
  10713. "type": "string",
  10714. "enum": ["ConflictError"]
  10715. },
  10716. "message": {
  10717. "type": "string"
  10718. },
  10719. "resource": {
  10720. "anyOf": [
  10721. {
  10722. "type": "string"
  10723. },
  10724. {
  10725. "type": "null"
  10726. }
  10727. ]
  10728. }
  10729. },
  10730. "required": ["_tag", "message"],
  10731. "additionalProperties": false
  10732. },
  10733. "CommandNotFoundError": {
  10734. "type": "object",
  10735. "properties": {
  10736. "_tag": {
  10737. "type": "string",
  10738. "enum": ["CommandNotFoundError"]
  10739. },
  10740. "command": {
  10741. "type": "string"
  10742. },
  10743. "message": {
  10744. "type": "string"
  10745. }
  10746. },
  10747. "required": ["_tag", "command", "message"],
  10748. "additionalProperties": false
  10749. },
  10750. "CommandEvaluationError": {
  10751. "type": "object",
  10752. "properties": {
  10753. "_tag": {
  10754. "type": "string",
  10755. "enum": ["CommandEvaluationError"]
  10756. },
  10757. "command": {
  10758. "type": "string"
  10759. },
  10760. "message": {
  10761. "type": "string"
  10762. }
  10763. },
  10764. "required": ["_tag", "command", "message"],
  10765. "additionalProperties": false
  10766. },
  10767. "SkillNotFoundError": {
  10768. "type": "object",
  10769. "properties": {
  10770. "_tag": {
  10771. "type": "string",
  10772. "enum": ["SkillNotFoundError"]
  10773. },
  10774. "skill": {
  10775. "type": "string"
  10776. },
  10777. "message": {
  10778. "type": "string"
  10779. }
  10780. },
  10781. "required": ["_tag", "skill", "message"],
  10782. "additionalProperties": false
  10783. },
  10784. "SessionInput.Compaction": {
  10785. "type": "object",
  10786. "properties": {
  10787. "type": {
  10788. "type": "string",
  10789. "enum": ["compaction"]
  10790. },
  10791. "admittedSeq": {
  10792. "type": "integer",
  10793. "allOf": [
  10794. {
  10795. "minimum": 0
  10796. }
  10797. ]
  10798. },
  10799. "id": {
  10800. "type": "string",
  10801. "allOf": [
  10802. {
  10803. "pattern": "^msg_"
  10804. }
  10805. ]
  10806. },
  10807. "sessionID": {
  10808. "type": "string",
  10809. "allOf": [
  10810. {
  10811. "pattern": "^ses"
  10812. }
  10813. ]
  10814. },
  10815. "timeCreated": {
  10816. "type": "number"
  10817. },
  10818. "handledSeq": {
  10819. "type": "integer",
  10820. "allOf": [
  10821. {
  10822. "minimum": 0
  10823. }
  10824. ]
  10825. }
  10826. },
  10827. "required": ["type", "admittedSeq", "id", "sessionID", "timeCreated"],
  10828. "additionalProperties": false
  10829. },
  10830. "ServiceUnavailableError": {
  10831. "type": "object",
  10832. "properties": {
  10833. "_tag": {
  10834. "type": "string",
  10835. "enum": ["ServiceUnavailableError"]
  10836. },
  10837. "message": {
  10838. "type": "string"
  10839. },
  10840. "service": {
  10841. "anyOf": [
  10842. {
  10843. "type": "string"
  10844. },
  10845. {
  10846. "type": "null"
  10847. }
  10848. ]
  10849. }
  10850. },
  10851. "required": ["_tag", "message"],
  10852. "additionalProperties": false
  10853. },
  10854. "SessionBusyError": {
  10855. "type": "object",
  10856. "properties": {
  10857. "_tag": {
  10858. "type": "string",
  10859. "enum": ["SessionBusyError"]
  10860. },
  10861. "sessionID": {
  10862. "type": "string"
  10863. },
  10864. "message": {
  10865. "type": "string"
  10866. }
  10867. },
  10868. "required": ["_tag", "sessionID", "message"],
  10869. "additionalProperties": false
  10870. },
  10871. "UnknownError": {
  10872. "type": "object",
  10873. "properties": {
  10874. "_tag": {
  10875. "type": "string",
  10876. "enum": ["UnknownError"]
  10877. },
  10878. "message": {
  10879. "type": "string"
  10880. },
  10881. "ref": {
  10882. "anyOf": [
  10883. {
  10884. "type": "string"
  10885. },
  10886. {
  10887. "type": "null"
  10888. }
  10889. ]
  10890. }
  10891. },
  10892. "required": ["_tag", "message"],
  10893. "additionalProperties": false
  10894. },
  10895. "Session.Message.AgentSelected": {
  10896. "type": "object",
  10897. "properties": {
  10898. "id": {
  10899. "type": "string",
  10900. "allOf": [
  10901. {
  10902. "pattern": "^msg_"
  10903. }
  10904. ]
  10905. },
  10906. "metadata": {
  10907. "type": "object"
  10908. },
  10909. "time": {
  10910. "type": "object",
  10911. "properties": {
  10912. "created": {
  10913. "type": "number"
  10914. }
  10915. },
  10916. "required": ["created"],
  10917. "additionalProperties": false
  10918. },
  10919. "type": {
  10920. "type": "string",
  10921. "enum": ["agent-switched"]
  10922. },
  10923. "agent": {
  10924. "type": "string"
  10925. }
  10926. },
  10927. "required": ["id", "time", "type", "agent"],
  10928. "additionalProperties": false
  10929. },
  10930. "Session.Message.ModelSelected": {
  10931. "type": "object",
  10932. "properties": {
  10933. "id": {
  10934. "type": "string",
  10935. "allOf": [
  10936. {
  10937. "pattern": "^msg_"
  10938. }
  10939. ]
  10940. },
  10941. "metadata": {
  10942. "type": "object"
  10943. },
  10944. "time": {
  10945. "type": "object",
  10946. "properties": {
  10947. "created": {
  10948. "type": "number"
  10949. }
  10950. },
  10951. "required": ["created"],
  10952. "additionalProperties": false
  10953. },
  10954. "type": {
  10955. "type": "string",
  10956. "enum": ["model-switched"]
  10957. },
  10958. "model": {
  10959. "$ref": "#/components/schemas/Model.Ref"
  10960. },
  10961. "previous": {
  10962. "$ref": "#/components/schemas/Model.Ref"
  10963. }
  10964. },
  10965. "required": ["id", "time", "type", "model"],
  10966. "additionalProperties": false
  10967. },
  10968. "Session.Message.User": {
  10969. "type": "object",
  10970. "properties": {
  10971. "id": {
  10972. "type": "string",
  10973. "allOf": [
  10974. {
  10975. "pattern": "^msg_"
  10976. }
  10977. ]
  10978. },
  10979. "metadata": {
  10980. "type": "object"
  10981. },
  10982. "time": {
  10983. "type": "object",
  10984. "properties": {
  10985. "created": {
  10986. "type": "number"
  10987. }
  10988. },
  10989. "required": ["created"],
  10990. "additionalProperties": false
  10991. },
  10992. "text": {
  10993. "type": "string"
  10994. },
  10995. "files": {
  10996. "type": "array",
  10997. "items": {
  10998. "$ref": "#/components/schemas/Prompt.FileAttachment"
  10999. }
  11000. },
  11001. "agents": {
  11002. "type": "array",
  11003. "items": {
  11004. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11005. }
  11006. },
  11007. "type": {
  11008. "type": "string",
  11009. "enum": ["user"]
  11010. }
  11011. },
  11012. "required": ["id", "time", "text", "type"],
  11013. "additionalProperties": false
  11014. },
  11015. "Session.Message.Synthetic": {
  11016. "type": "object",
  11017. "properties": {
  11018. "id": {
  11019. "type": "string",
  11020. "allOf": [
  11021. {
  11022. "pattern": "^msg_"
  11023. }
  11024. ]
  11025. },
  11026. "metadata": {
  11027. "type": "object"
  11028. },
  11029. "time": {
  11030. "type": "object",
  11031. "properties": {
  11032. "created": {
  11033. "type": "number"
  11034. }
  11035. },
  11036. "required": ["created"],
  11037. "additionalProperties": false
  11038. },
  11039. "text": {
  11040. "type": "string"
  11041. },
  11042. "description": {
  11043. "type": "string"
  11044. },
  11045. "type": {
  11046. "type": "string",
  11047. "enum": ["synthetic"]
  11048. }
  11049. },
  11050. "required": ["id", "time", "text", "type"],
  11051. "additionalProperties": false
  11052. },
  11053. "Session.Message.System": {
  11054. "type": "object",
  11055. "properties": {
  11056. "id": {
  11057. "type": "string",
  11058. "allOf": [
  11059. {
  11060. "pattern": "^msg_"
  11061. }
  11062. ]
  11063. },
  11064. "metadata": {
  11065. "type": "object"
  11066. },
  11067. "time": {
  11068. "type": "object",
  11069. "properties": {
  11070. "created": {
  11071. "type": "number"
  11072. }
  11073. },
  11074. "required": ["created"],
  11075. "additionalProperties": false
  11076. },
  11077. "type": {
  11078. "type": "string",
  11079. "enum": ["system"]
  11080. },
  11081. "text": {
  11082. "type": "string"
  11083. }
  11084. },
  11085. "required": ["id", "time", "type", "text"],
  11086. "additionalProperties": false
  11087. },
  11088. "Session.Message.Skill": {
  11089. "type": "object",
  11090. "properties": {
  11091. "id": {
  11092. "type": "string",
  11093. "allOf": [
  11094. {
  11095. "pattern": "^msg_"
  11096. }
  11097. ]
  11098. },
  11099. "metadata": {
  11100. "type": "object"
  11101. },
  11102. "time": {
  11103. "type": "object",
  11104. "properties": {
  11105. "created": {
  11106. "type": "number"
  11107. }
  11108. },
  11109. "required": ["created"],
  11110. "additionalProperties": false
  11111. },
  11112. "type": {
  11113. "type": "string",
  11114. "enum": ["skill"]
  11115. },
  11116. "skill": {
  11117. "type": "string"
  11118. },
  11119. "name": {
  11120. "type": "string"
  11121. },
  11122. "text": {
  11123. "type": "string"
  11124. }
  11125. },
  11126. "required": ["id", "time", "type", "skill", "name", "text"],
  11127. "additionalProperties": false
  11128. },
  11129. "Session.Message.Shell": {
  11130. "type": "object",
  11131. "properties": {
  11132. "id": {
  11133. "type": "string",
  11134. "allOf": [
  11135. {
  11136. "pattern": "^msg_"
  11137. }
  11138. ]
  11139. },
  11140. "metadata": {
  11141. "type": "object"
  11142. },
  11143. "time": {
  11144. "type": "object",
  11145. "properties": {
  11146. "created": {
  11147. "type": "number"
  11148. },
  11149. "completed": {
  11150. "type": "number"
  11151. }
  11152. },
  11153. "required": ["created"],
  11154. "additionalProperties": false
  11155. },
  11156. "type": {
  11157. "type": "string",
  11158. "enum": ["shell"]
  11159. },
  11160. "shellID": {
  11161. "type": "string",
  11162. "allOf": [
  11163. {
  11164. "pattern": "^sh_"
  11165. }
  11166. ]
  11167. },
  11168. "command": {
  11169. "type": "string"
  11170. },
  11171. "status": {
  11172. "type": "string",
  11173. "enum": ["running", "exited", "timeout", "killed"]
  11174. },
  11175. "exit": {
  11176. "anyOf": [
  11177. {
  11178. "anyOf": [
  11179. {
  11180. "type": "number"
  11181. },
  11182. {
  11183. "type": "string",
  11184. "enum": ["NaN"]
  11185. },
  11186. {
  11187. "type": "string",
  11188. "enum": ["Infinity"]
  11189. },
  11190. {
  11191. "type": "string",
  11192. "enum": ["-Infinity"]
  11193. }
  11194. ]
  11195. },
  11196. {
  11197. "type": "string",
  11198. "enum": ["Infinity", "-Infinity", "NaN"]
  11199. }
  11200. ]
  11201. },
  11202. "output": {
  11203. "type": "object",
  11204. "properties": {
  11205. "output": {
  11206. "type": "string"
  11207. },
  11208. "cursor": {
  11209. "type": "integer",
  11210. "allOf": [
  11211. {
  11212. "minimum": 0
  11213. }
  11214. ]
  11215. },
  11216. "size": {
  11217. "type": "integer",
  11218. "allOf": [
  11219. {
  11220. "minimum": 0
  11221. }
  11222. ]
  11223. },
  11224. "truncated": {
  11225. "type": "boolean"
  11226. }
  11227. },
  11228. "required": ["output", "cursor", "size", "truncated"],
  11229. "additionalProperties": false
  11230. }
  11231. },
  11232. "required": ["id", "time", "type", "shellID", "command", "status"],
  11233. "additionalProperties": false
  11234. },
  11235. "Session.Message.Assistant.Text": {
  11236. "type": "object",
  11237. "properties": {
  11238. "type": {
  11239. "type": "string",
  11240. "enum": ["text"]
  11241. },
  11242. "text": {
  11243. "type": "string"
  11244. }
  11245. },
  11246. "required": ["type", "text"],
  11247. "additionalProperties": false
  11248. },
  11249. "Session.Message.ProviderState": {
  11250. "type": "object"
  11251. },
  11252. "Session.Message.Assistant.Reasoning": {
  11253. "type": "object",
  11254. "properties": {
  11255. "type": {
  11256. "type": "string",
  11257. "enum": ["reasoning"]
  11258. },
  11259. "text": {
  11260. "type": "string"
  11261. },
  11262. "state": {
  11263. "$ref": "#/components/schemas/Session.Message.ProviderState"
  11264. },
  11265. "time": {
  11266. "type": "object",
  11267. "properties": {
  11268. "created": {
  11269. "type": "number"
  11270. },
  11271. "completed": {
  11272. "type": "number"
  11273. }
  11274. },
  11275. "required": ["created"],
  11276. "additionalProperties": false
  11277. }
  11278. },
  11279. "required": ["type", "text"],
  11280. "additionalProperties": false
  11281. },
  11282. "Session.Message.ToolState.Streaming": {
  11283. "type": "object",
  11284. "properties": {
  11285. "status": {
  11286. "type": "string",
  11287. "enum": ["streaming"]
  11288. },
  11289. "input": {
  11290. "type": "string"
  11291. }
  11292. },
  11293. "required": ["status", "input"],
  11294. "additionalProperties": false
  11295. },
  11296. "Tool.TextContent": {
  11297. "type": "object",
  11298. "properties": {
  11299. "type": {
  11300. "type": "string",
  11301. "enum": ["text"]
  11302. },
  11303. "text": {
  11304. "type": "string"
  11305. }
  11306. },
  11307. "required": ["type", "text"],
  11308. "additionalProperties": false
  11309. },
  11310. "Tool.FileContent": {
  11311. "type": "object",
  11312. "properties": {
  11313. "type": {
  11314. "type": "string",
  11315. "enum": ["file"]
  11316. },
  11317. "uri": {
  11318. "type": "string"
  11319. },
  11320. "mime": {
  11321. "type": "string"
  11322. },
  11323. "name": {
  11324. "type": "string"
  11325. }
  11326. },
  11327. "required": ["type", "uri", "mime"],
  11328. "additionalProperties": false
  11329. },
  11330. "LLM.ToolContent": {
  11331. "anyOf": [
  11332. {
  11333. "$ref": "#/components/schemas/Tool.TextContent"
  11334. },
  11335. {
  11336. "$ref": "#/components/schemas/Tool.FileContent"
  11337. }
  11338. ]
  11339. },
  11340. "Session.Message.ToolState.Running": {
  11341. "type": "object",
  11342. "properties": {
  11343. "status": {
  11344. "type": "string",
  11345. "enum": ["running"]
  11346. },
  11347. "input": {
  11348. "type": "object"
  11349. },
  11350. "structured": {
  11351. "type": "object"
  11352. },
  11353. "content": {
  11354. "type": "array",
  11355. "items": {
  11356. "$ref": "#/components/schemas/LLM.ToolContent"
  11357. }
  11358. }
  11359. },
  11360. "required": ["status", "input", "structured", "content"],
  11361. "additionalProperties": false
  11362. },
  11363. "Session.Message.ToolState.Completed": {
  11364. "type": "object",
  11365. "properties": {
  11366. "status": {
  11367. "type": "string",
  11368. "enum": ["completed"]
  11369. },
  11370. "input": {
  11371. "type": "object"
  11372. },
  11373. "content": {
  11374. "type": "array",
  11375. "items": {
  11376. "$ref": "#/components/schemas/LLM.ToolContent"
  11377. }
  11378. },
  11379. "structured": {
  11380. "type": "object"
  11381. },
  11382. "result": {}
  11383. },
  11384. "required": ["status", "input", "content", "structured"],
  11385. "additionalProperties": false
  11386. },
  11387. "Session.StructuredError": {
  11388. "type": "object",
  11389. "properties": {
  11390. "type": {
  11391. "type": "string"
  11392. },
  11393. "message": {
  11394. "type": "string"
  11395. }
  11396. },
  11397. "required": ["type", "message"],
  11398. "additionalProperties": false
  11399. },
  11400. "Session.Message.ToolState.Error": {
  11401. "type": "object",
  11402. "properties": {
  11403. "status": {
  11404. "type": "string",
  11405. "enum": ["error"]
  11406. },
  11407. "input": {
  11408. "type": "object"
  11409. },
  11410. "content": {
  11411. "type": "array",
  11412. "items": {
  11413. "$ref": "#/components/schemas/LLM.ToolContent"
  11414. }
  11415. },
  11416. "structured": {
  11417. "type": "object"
  11418. },
  11419. "error": {
  11420. "$ref": "#/components/schemas/Session.StructuredError"
  11421. },
  11422. "result": {}
  11423. },
  11424. "required": ["status", "input", "content", "structured", "error"],
  11425. "additionalProperties": false
  11426. },
  11427. "Session.Message.Assistant.Tool": {
  11428. "type": "object",
  11429. "properties": {
  11430. "type": {
  11431. "type": "string",
  11432. "enum": ["tool"]
  11433. },
  11434. "id": {
  11435. "type": "string"
  11436. },
  11437. "name": {
  11438. "type": "string"
  11439. },
  11440. "executed": {
  11441. "type": "boolean"
  11442. },
  11443. "providerState": {
  11444. "$ref": "#/components/schemas/Session.Message.ProviderState"
  11445. },
  11446. "providerResultState": {
  11447. "$ref": "#/components/schemas/Session.Message.ProviderState"
  11448. },
  11449. "state": {
  11450. "anyOf": [
  11451. {
  11452. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  11453. },
  11454. {
  11455. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  11456. },
  11457. {
  11458. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  11459. },
  11460. {
  11461. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  11462. }
  11463. ]
  11464. },
  11465. "time": {
  11466. "type": "object",
  11467. "properties": {
  11468. "created": {
  11469. "type": "number"
  11470. },
  11471. "ran": {
  11472. "type": "number"
  11473. },
  11474. "completed": {
  11475. "type": "number"
  11476. }
  11477. },
  11478. "required": ["created"],
  11479. "additionalProperties": false
  11480. }
  11481. },
  11482. "required": ["type", "id", "name", "state", "time"],
  11483. "additionalProperties": false
  11484. },
  11485. "Session.Message.Assistant.Retry": {
  11486. "type": "object",
  11487. "properties": {
  11488. "attempt": {
  11489. "type": "integer",
  11490. "allOf": [
  11491. {
  11492. "exclusiveMinimum": 0
  11493. }
  11494. ]
  11495. },
  11496. "at": {
  11497. "type": "number"
  11498. },
  11499. "error": {
  11500. "$ref": "#/components/schemas/Session.StructuredError"
  11501. }
  11502. },
  11503. "required": ["attempt", "at", "error"],
  11504. "additionalProperties": false
  11505. },
  11506. "Session.Message.Assistant": {
  11507. "type": "object",
  11508. "properties": {
  11509. "id": {
  11510. "type": "string",
  11511. "allOf": [
  11512. {
  11513. "pattern": "^msg_"
  11514. }
  11515. ]
  11516. },
  11517. "metadata": {
  11518. "type": "object"
  11519. },
  11520. "time": {
  11521. "type": "object",
  11522. "properties": {
  11523. "created": {
  11524. "type": "number"
  11525. },
  11526. "completed": {
  11527. "type": "number"
  11528. }
  11529. },
  11530. "required": ["created"],
  11531. "additionalProperties": false
  11532. },
  11533. "type": {
  11534. "type": "string",
  11535. "enum": ["assistant"]
  11536. },
  11537. "agent": {
  11538. "type": "string"
  11539. },
  11540. "model": {
  11541. "$ref": "#/components/schemas/Model.Ref"
  11542. },
  11543. "content": {
  11544. "type": "array",
  11545. "items": {
  11546. "anyOf": [
  11547. {
  11548. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  11549. },
  11550. {
  11551. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  11552. },
  11553. {
  11554. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  11555. }
  11556. ]
  11557. }
  11558. },
  11559. "snapshot": {
  11560. "type": "object",
  11561. "properties": {
  11562. "start": {
  11563. "type": "string"
  11564. },
  11565. "end": {
  11566. "type": "string"
  11567. },
  11568. "files": {
  11569. "type": "array",
  11570. "items": {
  11571. "type": "string"
  11572. }
  11573. }
  11574. },
  11575. "additionalProperties": false
  11576. },
  11577. "finish": {
  11578. "type": "string",
  11579. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  11580. },
  11581. "cost": {
  11582. "$ref": "#/components/schemas/Money.USD"
  11583. },
  11584. "tokens": {
  11585. "$ref": "#/components/schemas/TokenUsage.Info"
  11586. },
  11587. "error": {
  11588. "$ref": "#/components/schemas/Session.StructuredError"
  11589. },
  11590. "retry": {
  11591. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  11592. }
  11593. },
  11594. "required": ["id", "time", "type", "agent", "model", "content"],
  11595. "additionalProperties": false
  11596. },
  11597. "Session.Message.Compaction.Running": {
  11598. "type": "object",
  11599. "properties": {
  11600. "type": {
  11601. "type": "string",
  11602. "enum": ["compaction"]
  11603. },
  11604. "id": {
  11605. "type": "string",
  11606. "allOf": [
  11607. {
  11608. "pattern": "^msg_"
  11609. }
  11610. ]
  11611. },
  11612. "metadata": {
  11613. "type": "object"
  11614. },
  11615. "time": {
  11616. "type": "object",
  11617. "properties": {
  11618. "created": {
  11619. "type": "number"
  11620. }
  11621. },
  11622. "required": ["created"],
  11623. "additionalProperties": false
  11624. },
  11625. "status": {
  11626. "type": "string",
  11627. "enum": ["running"]
  11628. },
  11629. "reason": {
  11630. "type": "string",
  11631. "enum": ["auto", "manual"]
  11632. },
  11633. "summary": {
  11634. "type": "string"
  11635. },
  11636. "recent": {
  11637. "type": "string"
  11638. }
  11639. },
  11640. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  11641. "additionalProperties": false
  11642. },
  11643. "Session.Message.Compaction.Completed": {
  11644. "type": "object",
  11645. "properties": {
  11646. "type": {
  11647. "type": "string",
  11648. "enum": ["compaction"]
  11649. },
  11650. "id": {
  11651. "type": "string",
  11652. "allOf": [
  11653. {
  11654. "pattern": "^msg_"
  11655. }
  11656. ]
  11657. },
  11658. "metadata": {
  11659. "type": "object"
  11660. },
  11661. "time": {
  11662. "type": "object",
  11663. "properties": {
  11664. "created": {
  11665. "type": "number"
  11666. }
  11667. },
  11668. "required": ["created"],
  11669. "additionalProperties": false
  11670. },
  11671. "status": {
  11672. "type": "string",
  11673. "enum": ["completed"]
  11674. },
  11675. "reason": {
  11676. "type": "string",
  11677. "enum": ["auto", "manual"]
  11678. },
  11679. "summary": {
  11680. "type": "string"
  11681. },
  11682. "recent": {
  11683. "type": "string"
  11684. }
  11685. },
  11686. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  11687. "additionalProperties": false
  11688. },
  11689. "Session.Message.Compaction.Failed": {
  11690. "type": "object",
  11691. "properties": {
  11692. "type": {
  11693. "type": "string",
  11694. "enum": ["compaction"]
  11695. },
  11696. "id": {
  11697. "type": "string",
  11698. "allOf": [
  11699. {
  11700. "pattern": "^msg_"
  11701. }
  11702. ]
  11703. },
  11704. "metadata": {
  11705. "type": "object"
  11706. },
  11707. "time": {
  11708. "type": "object",
  11709. "properties": {
  11710. "created": {
  11711. "type": "number"
  11712. }
  11713. },
  11714. "required": ["created"],
  11715. "additionalProperties": false
  11716. },
  11717. "status": {
  11718. "type": "string",
  11719. "enum": ["failed"]
  11720. },
  11721. "reason": {
  11722. "type": "string",
  11723. "enum": ["auto", "manual"]
  11724. },
  11725. "error": {
  11726. "$ref": "#/components/schemas/Session.StructuredError"
  11727. }
  11728. },
  11729. "required": ["type", "id", "time", "status", "reason", "error"],
  11730. "additionalProperties": false
  11731. },
  11732. "Session.Message.Compaction": {
  11733. "anyOf": [
  11734. {
  11735. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  11736. },
  11737. {
  11738. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  11739. },
  11740. {
  11741. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  11742. }
  11743. ]
  11744. },
  11745. "Session.Message.Info": {
  11746. "anyOf": [
  11747. {
  11748. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  11749. },
  11750. {
  11751. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  11752. },
  11753. {
  11754. "$ref": "#/components/schemas/Session.Message.User"
  11755. },
  11756. {
  11757. "$ref": "#/components/schemas/Session.Message.Synthetic"
  11758. },
  11759. {
  11760. "$ref": "#/components/schemas/Session.Message.System"
  11761. },
  11762. {
  11763. "$ref": "#/components/schemas/Session.Message.Skill"
  11764. },
  11765. {
  11766. "$ref": "#/components/schemas/Session.Message.Shell"
  11767. },
  11768. {
  11769. "$ref": "#/components/schemas/Session.Message.Assistant"
  11770. },
  11771. {
  11772. "$ref": "#/components/schemas/Session.Message.Compaction"
  11773. }
  11774. ]
  11775. },
  11776. "InstructionEntry.Key": {
  11777. "type": "string",
  11778. "allOf": [
  11779. {
  11780. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  11781. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  11782. }
  11783. ]
  11784. },
  11785. "InstructionEntry.Info": {
  11786. "type": "object",
  11787. "properties": {
  11788. "key": {
  11789. "$ref": "#/components/schemas/InstructionEntry.Key"
  11790. },
  11791. "value": {}
  11792. },
  11793. "required": ["key", "value"],
  11794. "additionalProperties": false
  11795. },
  11796. "session.agent.selected": {
  11797. "type": "object",
  11798. "properties": {
  11799. "id": {
  11800. "type": "string",
  11801. "allOf": [
  11802. {
  11803. "pattern": "^evt_"
  11804. }
  11805. ]
  11806. },
  11807. "created": {
  11808. "type": "number"
  11809. },
  11810. "metadata": {
  11811. "type": "object"
  11812. },
  11813. "type": {
  11814. "type": "string",
  11815. "enum": ["session.agent.selected"]
  11816. },
  11817. "durable": {
  11818. "type": "object",
  11819. "properties": {
  11820. "aggregateID": {
  11821. "type": "string"
  11822. },
  11823. "seq": {
  11824. "type": "integer",
  11825. "allOf": [
  11826. {
  11827. "minimum": 0
  11828. }
  11829. ]
  11830. },
  11831. "version": {
  11832. "type": "number",
  11833. "enum": [1]
  11834. }
  11835. },
  11836. "required": ["aggregateID", "seq", "version"],
  11837. "additionalProperties": false
  11838. },
  11839. "location": {
  11840. "$ref": "#/components/schemas/Location.Ref"
  11841. },
  11842. "data": {
  11843. "type": "object",
  11844. "properties": {
  11845. "sessionID": {
  11846. "type": "string",
  11847. "allOf": [
  11848. {
  11849. "pattern": "^ses"
  11850. }
  11851. ]
  11852. },
  11853. "agent": {
  11854. "type": "string"
  11855. }
  11856. },
  11857. "required": ["sessionID", "agent"],
  11858. "additionalProperties": false
  11859. }
  11860. },
  11861. "required": ["id", "created", "type", "durable", "data"],
  11862. "additionalProperties": false
  11863. },
  11864. "session.model.selected": {
  11865. "type": "object",
  11866. "properties": {
  11867. "id": {
  11868. "type": "string",
  11869. "allOf": [
  11870. {
  11871. "pattern": "^evt_"
  11872. }
  11873. ]
  11874. },
  11875. "created": {
  11876. "type": "number"
  11877. },
  11878. "metadata": {
  11879. "type": "object"
  11880. },
  11881. "type": {
  11882. "type": "string",
  11883. "enum": ["session.model.selected"]
  11884. },
  11885. "durable": {
  11886. "type": "object",
  11887. "properties": {
  11888. "aggregateID": {
  11889. "type": "string"
  11890. },
  11891. "seq": {
  11892. "type": "integer",
  11893. "allOf": [
  11894. {
  11895. "minimum": 0
  11896. }
  11897. ]
  11898. },
  11899. "version": {
  11900. "type": "number",
  11901. "enum": [1]
  11902. }
  11903. },
  11904. "required": ["aggregateID", "seq", "version"],
  11905. "additionalProperties": false
  11906. },
  11907. "location": {
  11908. "$ref": "#/components/schemas/Location.Ref"
  11909. },
  11910. "data": {
  11911. "type": "object",
  11912. "properties": {
  11913. "sessionID": {
  11914. "type": "string",
  11915. "allOf": [
  11916. {
  11917. "pattern": "^ses"
  11918. }
  11919. ]
  11920. },
  11921. "model": {
  11922. "$ref": "#/components/schemas/Model.Ref"
  11923. }
  11924. },
  11925. "required": ["sessionID", "model"],
  11926. "additionalProperties": false
  11927. }
  11928. },
  11929. "required": ["id", "created", "type", "durable", "data"],
  11930. "additionalProperties": false
  11931. },
  11932. "session.moved": {
  11933. "type": "object",
  11934. "properties": {
  11935. "id": {
  11936. "type": "string",
  11937. "allOf": [
  11938. {
  11939. "pattern": "^evt_"
  11940. }
  11941. ]
  11942. },
  11943. "created": {
  11944. "type": "number"
  11945. },
  11946. "metadata": {
  11947. "type": "object"
  11948. },
  11949. "type": {
  11950. "type": "string",
  11951. "enum": ["session.moved"]
  11952. },
  11953. "durable": {
  11954. "type": "object",
  11955. "properties": {
  11956. "aggregateID": {
  11957. "type": "string"
  11958. },
  11959. "seq": {
  11960. "type": "integer",
  11961. "allOf": [
  11962. {
  11963. "minimum": 0
  11964. }
  11965. ]
  11966. },
  11967. "version": {
  11968. "type": "number",
  11969. "enum": [1]
  11970. }
  11971. },
  11972. "required": ["aggregateID", "seq", "version"],
  11973. "additionalProperties": false
  11974. },
  11975. "location": {
  11976. "$ref": "#/components/schemas/Location.Ref"
  11977. },
  11978. "data": {
  11979. "type": "object",
  11980. "properties": {
  11981. "sessionID": {
  11982. "type": "string",
  11983. "allOf": [
  11984. {
  11985. "pattern": "^ses"
  11986. }
  11987. ]
  11988. },
  11989. "location": {
  11990. "$ref": "#/components/schemas/Location.Ref"
  11991. },
  11992. "subpath": {
  11993. "type": "string"
  11994. }
  11995. },
  11996. "required": ["sessionID", "location"],
  11997. "additionalProperties": false
  11998. }
  11999. },
  12000. "required": ["id", "created", "type", "durable", "data"],
  12001. "additionalProperties": false
  12002. },
  12003. "session.renamed": {
  12004. "type": "object",
  12005. "properties": {
  12006. "id": {
  12007. "type": "string",
  12008. "allOf": [
  12009. {
  12010. "pattern": "^evt_"
  12011. }
  12012. ]
  12013. },
  12014. "created": {
  12015. "type": "number"
  12016. },
  12017. "metadata": {
  12018. "type": "object"
  12019. },
  12020. "type": {
  12021. "type": "string",
  12022. "enum": ["session.renamed"]
  12023. },
  12024. "durable": {
  12025. "type": "object",
  12026. "properties": {
  12027. "aggregateID": {
  12028. "type": "string"
  12029. },
  12030. "seq": {
  12031. "type": "integer",
  12032. "allOf": [
  12033. {
  12034. "minimum": 0
  12035. }
  12036. ]
  12037. },
  12038. "version": {
  12039. "type": "number",
  12040. "enum": [1]
  12041. }
  12042. },
  12043. "required": ["aggregateID", "seq", "version"],
  12044. "additionalProperties": false
  12045. },
  12046. "location": {
  12047. "$ref": "#/components/schemas/Location.Ref"
  12048. },
  12049. "data": {
  12050. "type": "object",
  12051. "properties": {
  12052. "sessionID": {
  12053. "type": "string",
  12054. "allOf": [
  12055. {
  12056. "pattern": "^ses"
  12057. }
  12058. ]
  12059. },
  12060. "title": {
  12061. "type": "string"
  12062. }
  12063. },
  12064. "required": ["sessionID", "title"],
  12065. "additionalProperties": false
  12066. }
  12067. },
  12068. "required": ["id", "created", "type", "durable", "data"],
  12069. "additionalProperties": false
  12070. },
  12071. "session.deleted": {
  12072. "type": "object",
  12073. "properties": {
  12074. "id": {
  12075. "type": "string",
  12076. "allOf": [
  12077. {
  12078. "pattern": "^evt_"
  12079. }
  12080. ]
  12081. },
  12082. "created": {
  12083. "type": "number"
  12084. },
  12085. "metadata": {
  12086. "type": "object"
  12087. },
  12088. "type": {
  12089. "type": "string",
  12090. "enum": ["session.deleted"]
  12091. },
  12092. "durable": {
  12093. "type": "object",
  12094. "properties": {
  12095. "aggregateID": {
  12096. "type": "string"
  12097. },
  12098. "seq": {
  12099. "type": "integer",
  12100. "allOf": [
  12101. {
  12102. "minimum": 0
  12103. }
  12104. ]
  12105. },
  12106. "version": {
  12107. "type": "number",
  12108. "enum": [2]
  12109. }
  12110. },
  12111. "required": ["aggregateID", "seq", "version"],
  12112. "additionalProperties": false
  12113. },
  12114. "location": {
  12115. "$ref": "#/components/schemas/Location.Ref"
  12116. },
  12117. "data": {
  12118. "type": "object",
  12119. "properties": {
  12120. "sessionID": {
  12121. "type": "string",
  12122. "allOf": [
  12123. {
  12124. "pattern": "^ses"
  12125. }
  12126. ]
  12127. }
  12128. },
  12129. "required": ["sessionID"],
  12130. "additionalProperties": false
  12131. }
  12132. },
  12133. "required": ["id", "created", "type", "durable", "data"],
  12134. "additionalProperties": false
  12135. },
  12136. "session.forked": {
  12137. "type": "object",
  12138. "properties": {
  12139. "id": {
  12140. "type": "string",
  12141. "allOf": [
  12142. {
  12143. "pattern": "^evt_"
  12144. }
  12145. ]
  12146. },
  12147. "created": {
  12148. "type": "number"
  12149. },
  12150. "metadata": {
  12151. "type": "object"
  12152. },
  12153. "type": {
  12154. "type": "string",
  12155. "enum": ["session.forked"]
  12156. },
  12157. "durable": {
  12158. "type": "object",
  12159. "properties": {
  12160. "aggregateID": {
  12161. "type": "string"
  12162. },
  12163. "seq": {
  12164. "type": "integer",
  12165. "allOf": [
  12166. {
  12167. "minimum": 0
  12168. }
  12169. ]
  12170. },
  12171. "version": {
  12172. "type": "number",
  12173. "enum": [1]
  12174. }
  12175. },
  12176. "required": ["aggregateID", "seq", "version"],
  12177. "additionalProperties": false
  12178. },
  12179. "location": {
  12180. "$ref": "#/components/schemas/Location.Ref"
  12181. },
  12182. "data": {
  12183. "type": "object",
  12184. "properties": {
  12185. "sessionID": {
  12186. "type": "string",
  12187. "allOf": [
  12188. {
  12189. "pattern": "^ses"
  12190. }
  12191. ]
  12192. },
  12193. "parentID": {
  12194. "type": "string",
  12195. "allOf": [
  12196. {
  12197. "pattern": "^ses"
  12198. }
  12199. ]
  12200. },
  12201. "from": {
  12202. "type": "string",
  12203. "allOf": [
  12204. {
  12205. "pattern": "^msg_"
  12206. }
  12207. ]
  12208. }
  12209. },
  12210. "required": ["sessionID", "parentID"],
  12211. "additionalProperties": false
  12212. }
  12213. },
  12214. "required": ["id", "created", "type", "durable", "data"],
  12215. "additionalProperties": false
  12216. },
  12217. "session.prompt.promoted": {
  12218. "type": "object",
  12219. "properties": {
  12220. "id": {
  12221. "type": "string",
  12222. "allOf": [
  12223. {
  12224. "pattern": "^evt_"
  12225. }
  12226. ]
  12227. },
  12228. "created": {
  12229. "type": "number"
  12230. },
  12231. "metadata": {
  12232. "type": "object"
  12233. },
  12234. "type": {
  12235. "type": "string",
  12236. "enum": ["session.prompt.promoted"]
  12237. },
  12238. "durable": {
  12239. "type": "object",
  12240. "properties": {
  12241. "aggregateID": {
  12242. "type": "string"
  12243. },
  12244. "seq": {
  12245. "type": "integer",
  12246. "allOf": [
  12247. {
  12248. "minimum": 0
  12249. }
  12250. ]
  12251. },
  12252. "version": {
  12253. "type": "number",
  12254. "enum": [1]
  12255. }
  12256. },
  12257. "required": ["aggregateID", "seq", "version"],
  12258. "additionalProperties": false
  12259. },
  12260. "location": {
  12261. "$ref": "#/components/schemas/Location.Ref"
  12262. },
  12263. "data": {
  12264. "type": "object",
  12265. "properties": {
  12266. "sessionID": {
  12267. "type": "string",
  12268. "allOf": [
  12269. {
  12270. "pattern": "^ses"
  12271. }
  12272. ]
  12273. },
  12274. "inputID": {
  12275. "type": "string",
  12276. "allOf": [
  12277. {
  12278. "pattern": "^msg_"
  12279. }
  12280. ]
  12281. }
  12282. },
  12283. "required": ["sessionID", "inputID"],
  12284. "additionalProperties": false
  12285. }
  12286. },
  12287. "required": ["id", "created", "type", "durable", "data"],
  12288. "additionalProperties": false
  12289. },
  12290. "session.prompt.admitted": {
  12291. "type": "object",
  12292. "properties": {
  12293. "id": {
  12294. "type": "string",
  12295. "allOf": [
  12296. {
  12297. "pattern": "^evt_"
  12298. }
  12299. ]
  12300. },
  12301. "created": {
  12302. "type": "number"
  12303. },
  12304. "metadata": {
  12305. "type": "object"
  12306. },
  12307. "type": {
  12308. "type": "string",
  12309. "enum": ["session.prompt.admitted"]
  12310. },
  12311. "durable": {
  12312. "type": "object",
  12313. "properties": {
  12314. "aggregateID": {
  12315. "type": "string"
  12316. },
  12317. "seq": {
  12318. "type": "integer",
  12319. "allOf": [
  12320. {
  12321. "minimum": 0
  12322. }
  12323. ]
  12324. },
  12325. "version": {
  12326. "type": "number",
  12327. "enum": [1]
  12328. }
  12329. },
  12330. "required": ["aggregateID", "seq", "version"],
  12331. "additionalProperties": false
  12332. },
  12333. "location": {
  12334. "$ref": "#/components/schemas/Location.Ref"
  12335. },
  12336. "data": {
  12337. "type": "object",
  12338. "properties": {
  12339. "sessionID": {
  12340. "type": "string",
  12341. "allOf": [
  12342. {
  12343. "pattern": "^ses"
  12344. }
  12345. ]
  12346. },
  12347. "inputID": {
  12348. "type": "string",
  12349. "allOf": [
  12350. {
  12351. "pattern": "^msg_"
  12352. }
  12353. ]
  12354. },
  12355. "prompt": {
  12356. "$ref": "#/components/schemas/Prompt"
  12357. },
  12358. "delivery": {
  12359. "type": "string",
  12360. "enum": ["steer", "queue"]
  12361. }
  12362. },
  12363. "required": ["sessionID", "inputID", "prompt", "delivery"],
  12364. "additionalProperties": false
  12365. }
  12366. },
  12367. "required": ["id", "created", "type", "durable", "data"],
  12368. "additionalProperties": false
  12369. },
  12370. "session.execution.started": {
  12371. "type": "object",
  12372. "properties": {
  12373. "id": {
  12374. "type": "string",
  12375. "allOf": [
  12376. {
  12377. "pattern": "^evt_"
  12378. }
  12379. ]
  12380. },
  12381. "created": {
  12382. "type": "number"
  12383. },
  12384. "metadata": {
  12385. "type": "object"
  12386. },
  12387. "type": {
  12388. "type": "string",
  12389. "enum": ["session.execution.started"]
  12390. },
  12391. "durable": {
  12392. "type": "object",
  12393. "properties": {
  12394. "aggregateID": {
  12395. "type": "string"
  12396. },
  12397. "seq": {
  12398. "type": "integer",
  12399. "allOf": [
  12400. {
  12401. "minimum": 0
  12402. }
  12403. ]
  12404. },
  12405. "version": {
  12406. "type": "number",
  12407. "enum": [1]
  12408. }
  12409. },
  12410. "required": ["aggregateID", "seq", "version"],
  12411. "additionalProperties": false
  12412. },
  12413. "location": {
  12414. "$ref": "#/components/schemas/Location.Ref"
  12415. },
  12416. "data": {
  12417. "type": "object",
  12418. "properties": {
  12419. "sessionID": {
  12420. "type": "string",
  12421. "allOf": [
  12422. {
  12423. "pattern": "^ses"
  12424. }
  12425. ]
  12426. }
  12427. },
  12428. "required": ["sessionID"],
  12429. "additionalProperties": false
  12430. }
  12431. },
  12432. "required": ["id", "created", "type", "durable", "data"],
  12433. "additionalProperties": false
  12434. },
  12435. "session.execution.succeeded": {
  12436. "type": "object",
  12437. "properties": {
  12438. "id": {
  12439. "type": "string",
  12440. "allOf": [
  12441. {
  12442. "pattern": "^evt_"
  12443. }
  12444. ]
  12445. },
  12446. "created": {
  12447. "type": "number"
  12448. },
  12449. "metadata": {
  12450. "type": "object"
  12451. },
  12452. "type": {
  12453. "type": "string",
  12454. "enum": ["session.execution.succeeded"]
  12455. },
  12456. "durable": {
  12457. "type": "object",
  12458. "properties": {
  12459. "aggregateID": {
  12460. "type": "string"
  12461. },
  12462. "seq": {
  12463. "type": "integer",
  12464. "allOf": [
  12465. {
  12466. "minimum": 0
  12467. }
  12468. ]
  12469. },
  12470. "version": {
  12471. "type": "number",
  12472. "enum": [1]
  12473. }
  12474. },
  12475. "required": ["aggregateID", "seq", "version"],
  12476. "additionalProperties": false
  12477. },
  12478. "location": {
  12479. "$ref": "#/components/schemas/Location.Ref"
  12480. },
  12481. "data": {
  12482. "type": "object",
  12483. "properties": {
  12484. "sessionID": {
  12485. "type": "string",
  12486. "allOf": [
  12487. {
  12488. "pattern": "^ses"
  12489. }
  12490. ]
  12491. }
  12492. },
  12493. "required": ["sessionID"],
  12494. "additionalProperties": false
  12495. }
  12496. },
  12497. "required": ["id", "created", "type", "durable", "data"],
  12498. "additionalProperties": false
  12499. },
  12500. "session.execution.failed": {
  12501. "type": "object",
  12502. "properties": {
  12503. "id": {
  12504. "type": "string",
  12505. "allOf": [
  12506. {
  12507. "pattern": "^evt_"
  12508. }
  12509. ]
  12510. },
  12511. "created": {
  12512. "type": "number"
  12513. },
  12514. "metadata": {
  12515. "type": "object"
  12516. },
  12517. "type": {
  12518. "type": "string",
  12519. "enum": ["session.execution.failed"]
  12520. },
  12521. "durable": {
  12522. "type": "object",
  12523. "properties": {
  12524. "aggregateID": {
  12525. "type": "string"
  12526. },
  12527. "seq": {
  12528. "type": "integer",
  12529. "allOf": [
  12530. {
  12531. "minimum": 0
  12532. }
  12533. ]
  12534. },
  12535. "version": {
  12536. "type": "number",
  12537. "enum": [1]
  12538. }
  12539. },
  12540. "required": ["aggregateID", "seq", "version"],
  12541. "additionalProperties": false
  12542. },
  12543. "location": {
  12544. "$ref": "#/components/schemas/Location.Ref"
  12545. },
  12546. "data": {
  12547. "type": "object",
  12548. "properties": {
  12549. "sessionID": {
  12550. "type": "string",
  12551. "allOf": [
  12552. {
  12553. "pattern": "^ses"
  12554. }
  12555. ]
  12556. },
  12557. "error": {
  12558. "$ref": "#/components/schemas/Session.StructuredError"
  12559. }
  12560. },
  12561. "required": ["sessionID", "error"],
  12562. "additionalProperties": false
  12563. }
  12564. },
  12565. "required": ["id", "created", "type", "durable", "data"],
  12566. "additionalProperties": false
  12567. },
  12568. "session.execution.interrupted": {
  12569. "type": "object",
  12570. "properties": {
  12571. "id": {
  12572. "type": "string",
  12573. "allOf": [
  12574. {
  12575. "pattern": "^evt_"
  12576. }
  12577. ]
  12578. },
  12579. "created": {
  12580. "type": "number"
  12581. },
  12582. "metadata": {
  12583. "type": "object"
  12584. },
  12585. "type": {
  12586. "type": "string",
  12587. "enum": ["session.execution.interrupted"]
  12588. },
  12589. "durable": {
  12590. "type": "object",
  12591. "properties": {
  12592. "aggregateID": {
  12593. "type": "string"
  12594. },
  12595. "seq": {
  12596. "type": "integer",
  12597. "allOf": [
  12598. {
  12599. "minimum": 0
  12600. }
  12601. ]
  12602. },
  12603. "version": {
  12604. "type": "number",
  12605. "enum": [1]
  12606. }
  12607. },
  12608. "required": ["aggregateID", "seq", "version"],
  12609. "additionalProperties": false
  12610. },
  12611. "location": {
  12612. "$ref": "#/components/schemas/Location.Ref"
  12613. },
  12614. "data": {
  12615. "type": "object",
  12616. "properties": {
  12617. "sessionID": {
  12618. "type": "string",
  12619. "allOf": [
  12620. {
  12621. "pattern": "^ses"
  12622. }
  12623. ]
  12624. },
  12625. "reason": {
  12626. "type": "string",
  12627. "enum": ["user", "shutdown", "superseded"]
  12628. }
  12629. },
  12630. "required": ["sessionID", "reason"],
  12631. "additionalProperties": false
  12632. }
  12633. },
  12634. "required": ["id", "created", "type", "durable", "data"],
  12635. "additionalProperties": false
  12636. },
  12637. "session.instructions.updated": {
  12638. "type": "object",
  12639. "properties": {
  12640. "id": {
  12641. "type": "string",
  12642. "allOf": [
  12643. {
  12644. "pattern": "^evt_"
  12645. }
  12646. ]
  12647. },
  12648. "created": {
  12649. "type": "number"
  12650. },
  12651. "metadata": {
  12652. "type": "object"
  12653. },
  12654. "type": {
  12655. "type": "string",
  12656. "enum": ["session.instructions.updated"]
  12657. },
  12658. "durable": {
  12659. "type": "object",
  12660. "properties": {
  12661. "aggregateID": {
  12662. "type": "string"
  12663. },
  12664. "seq": {
  12665. "type": "integer",
  12666. "allOf": [
  12667. {
  12668. "minimum": 0
  12669. }
  12670. ]
  12671. },
  12672. "version": {
  12673. "type": "number",
  12674. "enum": [1]
  12675. }
  12676. },
  12677. "required": ["aggregateID", "seq", "version"],
  12678. "additionalProperties": false
  12679. },
  12680. "location": {
  12681. "$ref": "#/components/schemas/Location.Ref"
  12682. },
  12683. "data": {
  12684. "type": "object",
  12685. "properties": {
  12686. "sessionID": {
  12687. "type": "string",
  12688. "allOf": [
  12689. {
  12690. "pattern": "^ses"
  12691. }
  12692. ]
  12693. },
  12694. "text": {
  12695. "type": "string"
  12696. }
  12697. },
  12698. "required": ["sessionID", "text"],
  12699. "additionalProperties": false
  12700. }
  12701. },
  12702. "required": ["id", "created", "type", "durable", "data"],
  12703. "additionalProperties": false
  12704. },
  12705. "session.synthetic": {
  12706. "type": "object",
  12707. "properties": {
  12708. "id": {
  12709. "type": "string",
  12710. "allOf": [
  12711. {
  12712. "pattern": "^evt_"
  12713. }
  12714. ]
  12715. },
  12716. "created": {
  12717. "type": "number"
  12718. },
  12719. "metadata": {
  12720. "type": "object"
  12721. },
  12722. "type": {
  12723. "type": "string",
  12724. "enum": ["session.synthetic"]
  12725. },
  12726. "durable": {
  12727. "type": "object",
  12728. "properties": {
  12729. "aggregateID": {
  12730. "type": "string"
  12731. },
  12732. "seq": {
  12733. "type": "integer",
  12734. "allOf": [
  12735. {
  12736. "minimum": 0
  12737. }
  12738. ]
  12739. },
  12740. "version": {
  12741. "type": "number",
  12742. "enum": [1]
  12743. }
  12744. },
  12745. "required": ["aggregateID", "seq", "version"],
  12746. "additionalProperties": false
  12747. },
  12748. "location": {
  12749. "$ref": "#/components/schemas/Location.Ref"
  12750. },
  12751. "data": {
  12752. "type": "object",
  12753. "properties": {
  12754. "sessionID": {
  12755. "type": "string",
  12756. "allOf": [
  12757. {
  12758. "pattern": "^ses"
  12759. }
  12760. ]
  12761. },
  12762. "text": {
  12763. "type": "string"
  12764. },
  12765. "description": {
  12766. "type": "string"
  12767. },
  12768. "metadata": {
  12769. "type": "object"
  12770. }
  12771. },
  12772. "required": ["sessionID", "text"],
  12773. "additionalProperties": false
  12774. }
  12775. },
  12776. "required": ["id", "created", "type", "durable", "data"],
  12777. "additionalProperties": false
  12778. },
  12779. "session.skill.activated": {
  12780. "type": "object",
  12781. "properties": {
  12782. "id": {
  12783. "type": "string",
  12784. "allOf": [
  12785. {
  12786. "pattern": "^evt_"
  12787. }
  12788. ]
  12789. },
  12790. "created": {
  12791. "type": "number"
  12792. },
  12793. "metadata": {
  12794. "type": "object"
  12795. },
  12796. "type": {
  12797. "type": "string",
  12798. "enum": ["session.skill.activated"]
  12799. },
  12800. "durable": {
  12801. "type": "object",
  12802. "properties": {
  12803. "aggregateID": {
  12804. "type": "string"
  12805. },
  12806. "seq": {
  12807. "type": "integer",
  12808. "allOf": [
  12809. {
  12810. "minimum": 0
  12811. }
  12812. ]
  12813. },
  12814. "version": {
  12815. "type": "number",
  12816. "enum": [1]
  12817. }
  12818. },
  12819. "required": ["aggregateID", "seq", "version"],
  12820. "additionalProperties": false
  12821. },
  12822. "location": {
  12823. "$ref": "#/components/schemas/Location.Ref"
  12824. },
  12825. "data": {
  12826. "type": "object",
  12827. "properties": {
  12828. "sessionID": {
  12829. "type": "string",
  12830. "allOf": [
  12831. {
  12832. "pattern": "^ses"
  12833. }
  12834. ]
  12835. },
  12836. "id": {
  12837. "type": "string"
  12838. },
  12839. "name": {
  12840. "type": "string"
  12841. },
  12842. "text": {
  12843. "type": "string"
  12844. }
  12845. },
  12846. "required": ["sessionID", "id", "name", "text"],
  12847. "additionalProperties": false
  12848. }
  12849. },
  12850. "required": ["id", "created", "type", "durable", "data"],
  12851. "additionalProperties": false
  12852. },
  12853. "Shell": {
  12854. "type": "object",
  12855. "properties": {
  12856. "id": {
  12857. "type": "string",
  12858. "allOf": [
  12859. {
  12860. "pattern": "^sh_"
  12861. }
  12862. ]
  12863. },
  12864. "status": {
  12865. "type": "string",
  12866. "enum": ["running", "exited", "timeout", "killed"]
  12867. },
  12868. "command": {
  12869. "type": "string"
  12870. },
  12871. "cwd": {
  12872. "type": "string"
  12873. },
  12874. "shell": {
  12875. "type": "string"
  12876. },
  12877. "file": {
  12878. "type": "string"
  12879. },
  12880. "pid": {
  12881. "type": "integer",
  12882. "allOf": [
  12883. {
  12884. "minimum": 0
  12885. }
  12886. ]
  12887. },
  12888. "exit": {
  12889. "anyOf": [
  12890. {
  12891. "type": "number"
  12892. },
  12893. {
  12894. "type": "string",
  12895. "enum": ["NaN"]
  12896. },
  12897. {
  12898. "type": "string",
  12899. "enum": ["Infinity"]
  12900. },
  12901. {
  12902. "type": "string",
  12903. "enum": ["-Infinity"]
  12904. }
  12905. ]
  12906. },
  12907. "metadata": {
  12908. "type": "object"
  12909. },
  12910. "time": {
  12911. "type": "object",
  12912. "properties": {
  12913. "started": {
  12914. "anyOf": [
  12915. {
  12916. "type": "number"
  12917. },
  12918. {
  12919. "type": "string",
  12920. "enum": ["NaN"]
  12921. },
  12922. {
  12923. "type": "string",
  12924. "enum": ["Infinity"]
  12925. },
  12926. {
  12927. "type": "string",
  12928. "enum": ["-Infinity"]
  12929. }
  12930. ]
  12931. },
  12932. "completed": {
  12933. "anyOf": [
  12934. {
  12935. "type": "number"
  12936. },
  12937. {
  12938. "type": "string",
  12939. "enum": ["NaN"]
  12940. },
  12941. {
  12942. "type": "string",
  12943. "enum": ["Infinity"]
  12944. },
  12945. {
  12946. "type": "string",
  12947. "enum": ["-Infinity"]
  12948. }
  12949. ]
  12950. }
  12951. },
  12952. "required": ["started"],
  12953. "additionalProperties": false
  12954. }
  12955. },
  12956. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  12957. "additionalProperties": false
  12958. },
  12959. "session.shell.started": {
  12960. "type": "object",
  12961. "properties": {
  12962. "id": {
  12963. "type": "string",
  12964. "allOf": [
  12965. {
  12966. "pattern": "^evt_"
  12967. }
  12968. ]
  12969. },
  12970. "created": {
  12971. "type": "number"
  12972. },
  12973. "metadata": {
  12974. "type": "object"
  12975. },
  12976. "type": {
  12977. "type": "string",
  12978. "enum": ["session.shell.started"]
  12979. },
  12980. "durable": {
  12981. "type": "object",
  12982. "properties": {
  12983. "aggregateID": {
  12984. "type": "string"
  12985. },
  12986. "seq": {
  12987. "type": "integer",
  12988. "allOf": [
  12989. {
  12990. "minimum": 0
  12991. }
  12992. ]
  12993. },
  12994. "version": {
  12995. "type": "number",
  12996. "enum": [1]
  12997. }
  12998. },
  12999. "required": ["aggregateID", "seq", "version"],
  13000. "additionalProperties": false
  13001. },
  13002. "location": {
  13003. "$ref": "#/components/schemas/Location.Ref"
  13004. },
  13005. "data": {
  13006. "type": "object",
  13007. "properties": {
  13008. "sessionID": {
  13009. "type": "string",
  13010. "allOf": [
  13011. {
  13012. "pattern": "^ses"
  13013. }
  13014. ]
  13015. },
  13016. "shell": {
  13017. "$ref": "#/components/schemas/Shell"
  13018. }
  13019. },
  13020. "required": ["sessionID", "shell"],
  13021. "additionalProperties": false
  13022. }
  13023. },
  13024. "required": ["id", "created", "type", "durable", "data"],
  13025. "additionalProperties": false
  13026. },
  13027. "session.shell.ended": {
  13028. "type": "object",
  13029. "properties": {
  13030. "id": {
  13031. "type": "string",
  13032. "allOf": [
  13033. {
  13034. "pattern": "^evt_"
  13035. }
  13036. ]
  13037. },
  13038. "created": {
  13039. "type": "number"
  13040. },
  13041. "metadata": {
  13042. "type": "object"
  13043. },
  13044. "type": {
  13045. "type": "string",
  13046. "enum": ["session.shell.ended"]
  13047. },
  13048. "durable": {
  13049. "type": "object",
  13050. "properties": {
  13051. "aggregateID": {
  13052. "type": "string"
  13053. },
  13054. "seq": {
  13055. "type": "integer",
  13056. "allOf": [
  13057. {
  13058. "minimum": 0
  13059. }
  13060. ]
  13061. },
  13062. "version": {
  13063. "type": "number",
  13064. "enum": [1]
  13065. }
  13066. },
  13067. "required": ["aggregateID", "seq", "version"],
  13068. "additionalProperties": false
  13069. },
  13070. "location": {
  13071. "$ref": "#/components/schemas/Location.Ref"
  13072. },
  13073. "data": {
  13074. "type": "object",
  13075. "properties": {
  13076. "sessionID": {
  13077. "type": "string",
  13078. "allOf": [
  13079. {
  13080. "pattern": "^ses"
  13081. }
  13082. ]
  13083. },
  13084. "shell": {
  13085. "$ref": "#/components/schemas/Shell"
  13086. },
  13087. "output": {
  13088. "type": "object",
  13089. "properties": {
  13090. "output": {
  13091. "type": "string"
  13092. },
  13093. "cursor": {
  13094. "type": "integer",
  13095. "allOf": [
  13096. {
  13097. "minimum": 0
  13098. }
  13099. ]
  13100. },
  13101. "size": {
  13102. "type": "integer",
  13103. "allOf": [
  13104. {
  13105. "minimum": 0
  13106. }
  13107. ]
  13108. },
  13109. "truncated": {
  13110. "type": "boolean"
  13111. }
  13112. },
  13113. "required": ["output", "cursor", "size", "truncated"],
  13114. "additionalProperties": false
  13115. }
  13116. },
  13117. "required": ["sessionID", "shell", "output"],
  13118. "additionalProperties": false
  13119. }
  13120. },
  13121. "required": ["id", "created", "type", "durable", "data"],
  13122. "additionalProperties": false
  13123. },
  13124. "session.step.started": {
  13125. "type": "object",
  13126. "properties": {
  13127. "id": {
  13128. "type": "string",
  13129. "allOf": [
  13130. {
  13131. "pattern": "^evt_"
  13132. }
  13133. ]
  13134. },
  13135. "created": {
  13136. "type": "number"
  13137. },
  13138. "metadata": {
  13139. "type": "object"
  13140. },
  13141. "type": {
  13142. "type": "string",
  13143. "enum": ["session.step.started"]
  13144. },
  13145. "durable": {
  13146. "type": "object",
  13147. "properties": {
  13148. "aggregateID": {
  13149. "type": "string"
  13150. },
  13151. "seq": {
  13152. "type": "integer",
  13153. "allOf": [
  13154. {
  13155. "minimum": 0
  13156. }
  13157. ]
  13158. },
  13159. "version": {
  13160. "type": "number",
  13161. "enum": [1]
  13162. }
  13163. },
  13164. "required": ["aggregateID", "seq", "version"],
  13165. "additionalProperties": false
  13166. },
  13167. "location": {
  13168. "$ref": "#/components/schemas/Location.Ref"
  13169. },
  13170. "data": {
  13171. "type": "object",
  13172. "properties": {
  13173. "sessionID": {
  13174. "type": "string",
  13175. "allOf": [
  13176. {
  13177. "pattern": "^ses"
  13178. }
  13179. ]
  13180. },
  13181. "assistantMessageID": {
  13182. "type": "string",
  13183. "allOf": [
  13184. {
  13185. "pattern": "^msg_"
  13186. }
  13187. ]
  13188. },
  13189. "agent": {
  13190. "type": "string"
  13191. },
  13192. "model": {
  13193. "$ref": "#/components/schemas/Model.Ref"
  13194. },
  13195. "snapshot": {
  13196. "type": "string"
  13197. }
  13198. },
  13199. "required": ["sessionID", "assistantMessageID", "agent", "model"],
  13200. "additionalProperties": false
  13201. }
  13202. },
  13203. "required": ["id", "created", "type", "durable", "data"],
  13204. "additionalProperties": false
  13205. },
  13206. "session.step.ended": {
  13207. "type": "object",
  13208. "properties": {
  13209. "id": {
  13210. "type": "string",
  13211. "allOf": [
  13212. {
  13213. "pattern": "^evt_"
  13214. }
  13215. ]
  13216. },
  13217. "created": {
  13218. "type": "number"
  13219. },
  13220. "metadata": {
  13221. "type": "object"
  13222. },
  13223. "type": {
  13224. "type": "string",
  13225. "enum": ["session.step.ended"]
  13226. },
  13227. "durable": {
  13228. "type": "object",
  13229. "properties": {
  13230. "aggregateID": {
  13231. "type": "string"
  13232. },
  13233. "seq": {
  13234. "type": "integer",
  13235. "allOf": [
  13236. {
  13237. "minimum": 0
  13238. }
  13239. ]
  13240. },
  13241. "version": {
  13242. "type": "number",
  13243. "enum": [1]
  13244. }
  13245. },
  13246. "required": ["aggregateID", "seq", "version"],
  13247. "additionalProperties": false
  13248. },
  13249. "location": {
  13250. "$ref": "#/components/schemas/Location.Ref"
  13251. },
  13252. "data": {
  13253. "type": "object",
  13254. "properties": {
  13255. "sessionID": {
  13256. "type": "string",
  13257. "allOf": [
  13258. {
  13259. "pattern": "^ses"
  13260. }
  13261. ]
  13262. },
  13263. "assistantMessageID": {
  13264. "type": "string",
  13265. "allOf": [
  13266. {
  13267. "pattern": "^msg_"
  13268. }
  13269. ]
  13270. },
  13271. "finish": {
  13272. "type": "string",
  13273. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  13274. },
  13275. "cost": {
  13276. "$ref": "#/components/schemas/Money.USD"
  13277. },
  13278. "tokens": {
  13279. "$ref": "#/components/schemas/TokenUsage.Info"
  13280. },
  13281. "snapshot": {
  13282. "type": "string"
  13283. },
  13284. "files": {
  13285. "type": "array",
  13286. "items": {
  13287. "type": "string"
  13288. }
  13289. }
  13290. },
  13291. "required": ["sessionID", "assistantMessageID", "finish", "cost", "tokens"],
  13292. "additionalProperties": false
  13293. }
  13294. },
  13295. "required": ["id", "created", "type", "durable", "data"],
  13296. "additionalProperties": false
  13297. },
  13298. "session.step.failed": {
  13299. "type": "object",
  13300. "properties": {
  13301. "id": {
  13302. "type": "string",
  13303. "allOf": [
  13304. {
  13305. "pattern": "^evt_"
  13306. }
  13307. ]
  13308. },
  13309. "created": {
  13310. "type": "number"
  13311. },
  13312. "metadata": {
  13313. "type": "object"
  13314. },
  13315. "type": {
  13316. "type": "string",
  13317. "enum": ["session.step.failed"]
  13318. },
  13319. "durable": {
  13320. "type": "object",
  13321. "properties": {
  13322. "aggregateID": {
  13323. "type": "string"
  13324. },
  13325. "seq": {
  13326. "type": "integer",
  13327. "allOf": [
  13328. {
  13329. "minimum": 0
  13330. }
  13331. ]
  13332. },
  13333. "version": {
  13334. "type": "number",
  13335. "enum": [1]
  13336. }
  13337. },
  13338. "required": ["aggregateID", "seq", "version"],
  13339. "additionalProperties": false
  13340. },
  13341. "location": {
  13342. "$ref": "#/components/schemas/Location.Ref"
  13343. },
  13344. "data": {
  13345. "type": "object",
  13346. "properties": {
  13347. "sessionID": {
  13348. "type": "string",
  13349. "allOf": [
  13350. {
  13351. "pattern": "^ses"
  13352. }
  13353. ]
  13354. },
  13355. "assistantMessageID": {
  13356. "type": "string",
  13357. "allOf": [
  13358. {
  13359. "pattern": "^msg_"
  13360. }
  13361. ]
  13362. },
  13363. "error": {
  13364. "$ref": "#/components/schemas/Session.StructuredError"
  13365. },
  13366. "cost": {
  13367. "$ref": "#/components/schemas/Money.USD"
  13368. },
  13369. "tokens": {
  13370. "$ref": "#/components/schemas/TokenUsage.Info"
  13371. }
  13372. },
  13373. "required": ["sessionID", "assistantMessageID", "error"],
  13374. "additionalProperties": false
  13375. }
  13376. },
  13377. "required": ["id", "created", "type", "durable", "data"],
  13378. "additionalProperties": false
  13379. },
  13380. "session.text.started": {
  13381. "type": "object",
  13382. "properties": {
  13383. "id": {
  13384. "type": "string",
  13385. "allOf": [
  13386. {
  13387. "pattern": "^evt_"
  13388. }
  13389. ]
  13390. },
  13391. "created": {
  13392. "type": "number"
  13393. },
  13394. "metadata": {
  13395. "type": "object"
  13396. },
  13397. "type": {
  13398. "type": "string",
  13399. "enum": ["session.text.started"]
  13400. },
  13401. "durable": {
  13402. "type": "object",
  13403. "properties": {
  13404. "aggregateID": {
  13405. "type": "string"
  13406. },
  13407. "seq": {
  13408. "type": "integer",
  13409. "allOf": [
  13410. {
  13411. "minimum": 0
  13412. }
  13413. ]
  13414. },
  13415. "version": {
  13416. "type": "number",
  13417. "enum": [1]
  13418. }
  13419. },
  13420. "required": ["aggregateID", "seq", "version"],
  13421. "additionalProperties": false
  13422. },
  13423. "location": {
  13424. "$ref": "#/components/schemas/Location.Ref"
  13425. },
  13426. "data": {
  13427. "type": "object",
  13428. "properties": {
  13429. "sessionID": {
  13430. "type": "string",
  13431. "allOf": [
  13432. {
  13433. "pattern": "^ses"
  13434. }
  13435. ]
  13436. },
  13437. "assistantMessageID": {
  13438. "type": "string",
  13439. "allOf": [
  13440. {
  13441. "pattern": "^msg_"
  13442. }
  13443. ]
  13444. },
  13445. "ordinal": {
  13446. "type": "integer",
  13447. "allOf": [
  13448. {
  13449. "minimum": 0
  13450. }
  13451. ]
  13452. }
  13453. },
  13454. "required": ["sessionID", "assistantMessageID", "ordinal"],
  13455. "additionalProperties": false
  13456. }
  13457. },
  13458. "required": ["id", "created", "type", "durable", "data"],
  13459. "additionalProperties": false
  13460. },
  13461. "session.text.ended": {
  13462. "type": "object",
  13463. "properties": {
  13464. "id": {
  13465. "type": "string",
  13466. "allOf": [
  13467. {
  13468. "pattern": "^evt_"
  13469. }
  13470. ]
  13471. },
  13472. "created": {
  13473. "type": "number"
  13474. },
  13475. "metadata": {
  13476. "type": "object"
  13477. },
  13478. "type": {
  13479. "type": "string",
  13480. "enum": ["session.text.ended"]
  13481. },
  13482. "durable": {
  13483. "type": "object",
  13484. "properties": {
  13485. "aggregateID": {
  13486. "type": "string"
  13487. },
  13488. "seq": {
  13489. "type": "integer",
  13490. "allOf": [
  13491. {
  13492. "minimum": 0
  13493. }
  13494. ]
  13495. },
  13496. "version": {
  13497. "type": "number",
  13498. "enum": [1]
  13499. }
  13500. },
  13501. "required": ["aggregateID", "seq", "version"],
  13502. "additionalProperties": false
  13503. },
  13504. "location": {
  13505. "$ref": "#/components/schemas/Location.Ref"
  13506. },
  13507. "data": {
  13508. "type": "object",
  13509. "properties": {
  13510. "sessionID": {
  13511. "type": "string",
  13512. "allOf": [
  13513. {
  13514. "pattern": "^ses"
  13515. }
  13516. ]
  13517. },
  13518. "assistantMessageID": {
  13519. "type": "string",
  13520. "allOf": [
  13521. {
  13522. "pattern": "^msg_"
  13523. }
  13524. ]
  13525. },
  13526. "ordinal": {
  13527. "type": "integer",
  13528. "allOf": [
  13529. {
  13530. "minimum": 0
  13531. }
  13532. ]
  13533. },
  13534. "text": {
  13535. "type": "string"
  13536. }
  13537. },
  13538. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  13539. "additionalProperties": false
  13540. }
  13541. },
  13542. "required": ["id", "created", "type", "durable", "data"],
  13543. "additionalProperties": false
  13544. },
  13545. "Session.Message.ProviderState3": {
  13546. "type": "object"
  13547. },
  13548. "session.reasoning.started": {
  13549. "type": "object",
  13550. "properties": {
  13551. "id": {
  13552. "type": "string",
  13553. "allOf": [
  13554. {
  13555. "pattern": "^evt_"
  13556. }
  13557. ]
  13558. },
  13559. "created": {
  13560. "type": "number"
  13561. },
  13562. "metadata": {
  13563. "type": "object"
  13564. },
  13565. "type": {
  13566. "type": "string",
  13567. "enum": ["session.reasoning.started"]
  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": [1]
  13586. }
  13587. },
  13588. "required": ["aggregateID", "seq", "version"],
  13589. "additionalProperties": false
  13590. },
  13591. "location": {
  13592. "$ref": "#/components/schemas/Location.Ref"
  13593. },
  13594. "data": {
  13595. "type": "object",
  13596. "properties": {
  13597. "sessionID": {
  13598. "type": "string",
  13599. "allOf": [
  13600. {
  13601. "pattern": "^ses"
  13602. }
  13603. ]
  13604. },
  13605. "assistantMessageID": {
  13606. "type": "string",
  13607. "allOf": [
  13608. {
  13609. "pattern": "^msg_"
  13610. }
  13611. ]
  13612. },
  13613. "ordinal": {
  13614. "type": "integer",
  13615. "allOf": [
  13616. {
  13617. "minimum": 0
  13618. }
  13619. ]
  13620. },
  13621. "state": {
  13622. "$ref": "#/components/schemas/Session.Message.ProviderState3"
  13623. }
  13624. },
  13625. "required": ["sessionID", "assistantMessageID", "ordinal"],
  13626. "additionalProperties": false
  13627. }
  13628. },
  13629. "required": ["id", "created", "type", "durable", "data"],
  13630. "additionalProperties": false
  13631. },
  13632. "Session.Message.ProviderState4": {
  13633. "type": "object"
  13634. },
  13635. "session.reasoning.ended": {
  13636. "type": "object",
  13637. "properties": {
  13638. "id": {
  13639. "type": "string",
  13640. "allOf": [
  13641. {
  13642. "pattern": "^evt_"
  13643. }
  13644. ]
  13645. },
  13646. "created": {
  13647. "type": "number"
  13648. },
  13649. "metadata": {
  13650. "type": "object"
  13651. },
  13652. "type": {
  13653. "type": "string",
  13654. "enum": ["session.reasoning.ended"]
  13655. },
  13656. "durable": {
  13657. "type": "object",
  13658. "properties": {
  13659. "aggregateID": {
  13660. "type": "string"
  13661. },
  13662. "seq": {
  13663. "type": "integer",
  13664. "allOf": [
  13665. {
  13666. "minimum": 0
  13667. }
  13668. ]
  13669. },
  13670. "version": {
  13671. "type": "number",
  13672. "enum": [1]
  13673. }
  13674. },
  13675. "required": ["aggregateID", "seq", "version"],
  13676. "additionalProperties": false
  13677. },
  13678. "location": {
  13679. "$ref": "#/components/schemas/Location.Ref"
  13680. },
  13681. "data": {
  13682. "type": "object",
  13683. "properties": {
  13684. "sessionID": {
  13685. "type": "string",
  13686. "allOf": [
  13687. {
  13688. "pattern": "^ses"
  13689. }
  13690. ]
  13691. },
  13692. "assistantMessageID": {
  13693. "type": "string",
  13694. "allOf": [
  13695. {
  13696. "pattern": "^msg_"
  13697. }
  13698. ]
  13699. },
  13700. "ordinal": {
  13701. "type": "integer",
  13702. "allOf": [
  13703. {
  13704. "minimum": 0
  13705. }
  13706. ]
  13707. },
  13708. "text": {
  13709. "type": "string"
  13710. },
  13711. "state": {
  13712. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  13713. }
  13714. },
  13715. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  13716. "additionalProperties": false
  13717. }
  13718. },
  13719. "required": ["id", "created", "type", "durable", "data"],
  13720. "additionalProperties": false
  13721. },
  13722. "session.tool.input.started": {
  13723. "type": "object",
  13724. "properties": {
  13725. "id": {
  13726. "type": "string",
  13727. "allOf": [
  13728. {
  13729. "pattern": "^evt_"
  13730. }
  13731. ]
  13732. },
  13733. "created": {
  13734. "type": "number"
  13735. },
  13736. "metadata": {
  13737. "type": "object"
  13738. },
  13739. "type": {
  13740. "type": "string",
  13741. "enum": ["session.tool.input.started"]
  13742. },
  13743. "durable": {
  13744. "type": "object",
  13745. "properties": {
  13746. "aggregateID": {
  13747. "type": "string"
  13748. },
  13749. "seq": {
  13750. "type": "integer",
  13751. "allOf": [
  13752. {
  13753. "minimum": 0
  13754. }
  13755. ]
  13756. },
  13757. "version": {
  13758. "type": "number",
  13759. "enum": [1]
  13760. }
  13761. },
  13762. "required": ["aggregateID", "seq", "version"],
  13763. "additionalProperties": false
  13764. },
  13765. "location": {
  13766. "$ref": "#/components/schemas/Location.Ref"
  13767. },
  13768. "data": {
  13769. "type": "object",
  13770. "properties": {
  13771. "sessionID": {
  13772. "type": "string",
  13773. "allOf": [
  13774. {
  13775. "pattern": "^ses"
  13776. }
  13777. ]
  13778. },
  13779. "assistantMessageID": {
  13780. "type": "string",
  13781. "allOf": [
  13782. {
  13783. "pattern": "^msg_"
  13784. }
  13785. ]
  13786. },
  13787. "callID": {
  13788. "type": "string"
  13789. },
  13790. "name": {
  13791. "type": "string"
  13792. }
  13793. },
  13794. "required": ["sessionID", "assistantMessageID", "callID", "name"],
  13795. "additionalProperties": false
  13796. }
  13797. },
  13798. "required": ["id", "created", "type", "durable", "data"],
  13799. "additionalProperties": false
  13800. },
  13801. "session.tool.input.ended": {
  13802. "type": "object",
  13803. "properties": {
  13804. "id": {
  13805. "type": "string",
  13806. "allOf": [
  13807. {
  13808. "pattern": "^evt_"
  13809. }
  13810. ]
  13811. },
  13812. "created": {
  13813. "type": "number"
  13814. },
  13815. "metadata": {
  13816. "type": "object"
  13817. },
  13818. "type": {
  13819. "type": "string",
  13820. "enum": ["session.tool.input.ended"]
  13821. },
  13822. "durable": {
  13823. "type": "object",
  13824. "properties": {
  13825. "aggregateID": {
  13826. "type": "string"
  13827. },
  13828. "seq": {
  13829. "type": "integer",
  13830. "allOf": [
  13831. {
  13832. "minimum": 0
  13833. }
  13834. ]
  13835. },
  13836. "version": {
  13837. "type": "number",
  13838. "enum": [1]
  13839. }
  13840. },
  13841. "required": ["aggregateID", "seq", "version"],
  13842. "additionalProperties": false
  13843. },
  13844. "location": {
  13845. "$ref": "#/components/schemas/Location.Ref"
  13846. },
  13847. "data": {
  13848. "type": "object",
  13849. "properties": {
  13850. "sessionID": {
  13851. "type": "string",
  13852. "allOf": [
  13853. {
  13854. "pattern": "^ses"
  13855. }
  13856. ]
  13857. },
  13858. "assistantMessageID": {
  13859. "type": "string",
  13860. "allOf": [
  13861. {
  13862. "pattern": "^msg_"
  13863. }
  13864. ]
  13865. },
  13866. "callID": {
  13867. "type": "string"
  13868. },
  13869. "text": {
  13870. "type": "string"
  13871. }
  13872. },
  13873. "required": ["sessionID", "assistantMessageID", "callID", "text"],
  13874. "additionalProperties": false
  13875. }
  13876. },
  13877. "required": ["id", "created", "type", "durable", "data"],
  13878. "additionalProperties": false
  13879. },
  13880. "Session.Message.ProviderState5": {
  13881. "type": "object"
  13882. },
  13883. "session.tool.called": {
  13884. "type": "object",
  13885. "properties": {
  13886. "id": {
  13887. "type": "string",
  13888. "allOf": [
  13889. {
  13890. "pattern": "^evt_"
  13891. }
  13892. ]
  13893. },
  13894. "created": {
  13895. "type": "number"
  13896. },
  13897. "metadata": {
  13898. "type": "object"
  13899. },
  13900. "type": {
  13901. "type": "string",
  13902. "enum": ["session.tool.called"]
  13903. },
  13904. "durable": {
  13905. "type": "object",
  13906. "properties": {
  13907. "aggregateID": {
  13908. "type": "string"
  13909. },
  13910. "seq": {
  13911. "type": "integer",
  13912. "allOf": [
  13913. {
  13914. "minimum": 0
  13915. }
  13916. ]
  13917. },
  13918. "version": {
  13919. "type": "number",
  13920. "enum": [1]
  13921. }
  13922. },
  13923. "required": ["aggregateID", "seq", "version"],
  13924. "additionalProperties": false
  13925. },
  13926. "location": {
  13927. "$ref": "#/components/schemas/Location.Ref"
  13928. },
  13929. "data": {
  13930. "type": "object",
  13931. "properties": {
  13932. "sessionID": {
  13933. "type": "string",
  13934. "allOf": [
  13935. {
  13936. "pattern": "^ses"
  13937. }
  13938. ]
  13939. },
  13940. "assistantMessageID": {
  13941. "type": "string",
  13942. "allOf": [
  13943. {
  13944. "pattern": "^msg_"
  13945. }
  13946. ]
  13947. },
  13948. "callID": {
  13949. "type": "string"
  13950. },
  13951. "input": {
  13952. "type": "object"
  13953. },
  13954. "executed": {
  13955. "type": "boolean"
  13956. },
  13957. "state": {
  13958. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  13959. }
  13960. },
  13961. "required": ["sessionID", "assistantMessageID", "callID", "input", "executed"],
  13962. "additionalProperties": false
  13963. }
  13964. },
  13965. "required": ["id", "created", "type", "durable", "data"],
  13966. "additionalProperties": false
  13967. },
  13968. "session.tool.progress": {
  13969. "type": "object",
  13970. "properties": {
  13971. "id": {
  13972. "type": "string",
  13973. "allOf": [
  13974. {
  13975. "pattern": "^evt_"
  13976. }
  13977. ]
  13978. },
  13979. "created": {
  13980. "type": "number"
  13981. },
  13982. "metadata": {
  13983. "type": "object"
  13984. },
  13985. "type": {
  13986. "type": "string",
  13987. "enum": ["session.tool.progress"]
  13988. },
  13989. "durable": {
  13990. "type": "object",
  13991. "properties": {
  13992. "aggregateID": {
  13993. "type": "string"
  13994. },
  13995. "seq": {
  13996. "type": "integer",
  13997. "allOf": [
  13998. {
  13999. "minimum": 0
  14000. }
  14001. ]
  14002. },
  14003. "version": {
  14004. "type": "number",
  14005. "enum": [1]
  14006. }
  14007. },
  14008. "required": ["aggregateID", "seq", "version"],
  14009. "additionalProperties": false
  14010. },
  14011. "location": {
  14012. "$ref": "#/components/schemas/Location.Ref"
  14013. },
  14014. "data": {
  14015. "type": "object",
  14016. "properties": {
  14017. "sessionID": {
  14018. "type": "string",
  14019. "allOf": [
  14020. {
  14021. "pattern": "^ses"
  14022. }
  14023. ]
  14024. },
  14025. "assistantMessageID": {
  14026. "type": "string",
  14027. "allOf": [
  14028. {
  14029. "pattern": "^msg_"
  14030. }
  14031. ]
  14032. },
  14033. "callID": {
  14034. "type": "string"
  14035. },
  14036. "structured": {
  14037. "type": "object"
  14038. },
  14039. "content": {
  14040. "type": "array",
  14041. "items": {
  14042. "$ref": "#/components/schemas/LLM.ToolContent"
  14043. }
  14044. }
  14045. },
  14046. "required": ["sessionID", "assistantMessageID", "callID", "structured", "content"],
  14047. "additionalProperties": false
  14048. }
  14049. },
  14050. "required": ["id", "created", "type", "durable", "data"],
  14051. "additionalProperties": false
  14052. },
  14053. "Session.Message.ProviderState6": {
  14054. "type": "object"
  14055. },
  14056. "session.tool.success": {
  14057. "type": "object",
  14058. "properties": {
  14059. "id": {
  14060. "type": "string",
  14061. "allOf": [
  14062. {
  14063. "pattern": "^evt_"
  14064. }
  14065. ]
  14066. },
  14067. "created": {
  14068. "type": "number"
  14069. },
  14070. "metadata": {
  14071. "type": "object"
  14072. },
  14073. "type": {
  14074. "type": "string",
  14075. "enum": ["session.tool.success"]
  14076. },
  14077. "durable": {
  14078. "type": "object",
  14079. "properties": {
  14080. "aggregateID": {
  14081. "type": "string"
  14082. },
  14083. "seq": {
  14084. "type": "integer",
  14085. "allOf": [
  14086. {
  14087. "minimum": 0
  14088. }
  14089. ]
  14090. },
  14091. "version": {
  14092. "type": "number",
  14093. "enum": [1]
  14094. }
  14095. },
  14096. "required": ["aggregateID", "seq", "version"],
  14097. "additionalProperties": false
  14098. },
  14099. "location": {
  14100. "$ref": "#/components/schemas/Location.Ref"
  14101. },
  14102. "data": {
  14103. "type": "object",
  14104. "properties": {
  14105. "sessionID": {
  14106. "type": "string",
  14107. "allOf": [
  14108. {
  14109. "pattern": "^ses"
  14110. }
  14111. ]
  14112. },
  14113. "assistantMessageID": {
  14114. "type": "string",
  14115. "allOf": [
  14116. {
  14117. "pattern": "^msg_"
  14118. }
  14119. ]
  14120. },
  14121. "callID": {
  14122. "type": "string"
  14123. },
  14124. "structured": {
  14125. "type": "object"
  14126. },
  14127. "content": {
  14128. "type": "array",
  14129. "items": {
  14130. "$ref": "#/components/schemas/LLM.ToolContent"
  14131. }
  14132. },
  14133. "result": {},
  14134. "executed": {
  14135. "type": "boolean"
  14136. },
  14137. "resultState": {
  14138. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  14139. }
  14140. },
  14141. "required": ["sessionID", "assistantMessageID", "callID", "structured", "content", "executed"],
  14142. "additionalProperties": false
  14143. }
  14144. },
  14145. "required": ["id", "created", "type", "durable", "data"],
  14146. "additionalProperties": false
  14147. },
  14148. "Session.Message.ProviderState7": {
  14149. "type": "object"
  14150. },
  14151. "session.tool.failed": {
  14152. "type": "object",
  14153. "properties": {
  14154. "id": {
  14155. "type": "string",
  14156. "allOf": [
  14157. {
  14158. "pattern": "^evt_"
  14159. }
  14160. ]
  14161. },
  14162. "created": {
  14163. "type": "number"
  14164. },
  14165. "metadata": {
  14166. "type": "object"
  14167. },
  14168. "type": {
  14169. "type": "string",
  14170. "enum": ["session.tool.failed"]
  14171. },
  14172. "durable": {
  14173. "type": "object",
  14174. "properties": {
  14175. "aggregateID": {
  14176. "type": "string"
  14177. },
  14178. "seq": {
  14179. "type": "integer",
  14180. "allOf": [
  14181. {
  14182. "minimum": 0
  14183. }
  14184. ]
  14185. },
  14186. "version": {
  14187. "type": "number",
  14188. "enum": [1]
  14189. }
  14190. },
  14191. "required": ["aggregateID", "seq", "version"],
  14192. "additionalProperties": false
  14193. },
  14194. "location": {
  14195. "$ref": "#/components/schemas/Location.Ref"
  14196. },
  14197. "data": {
  14198. "type": "object",
  14199. "properties": {
  14200. "sessionID": {
  14201. "type": "string",
  14202. "allOf": [
  14203. {
  14204. "pattern": "^ses"
  14205. }
  14206. ]
  14207. },
  14208. "assistantMessageID": {
  14209. "type": "string",
  14210. "allOf": [
  14211. {
  14212. "pattern": "^msg_"
  14213. }
  14214. ]
  14215. },
  14216. "callID": {
  14217. "type": "string"
  14218. },
  14219. "error": {
  14220. "$ref": "#/components/schemas/Session.StructuredError"
  14221. },
  14222. "result": {},
  14223. "executed": {
  14224. "type": "boolean"
  14225. },
  14226. "resultState": {
  14227. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  14228. }
  14229. },
  14230. "required": ["sessionID", "assistantMessageID", "callID", "error", "executed"],
  14231. "additionalProperties": false
  14232. }
  14233. },
  14234. "required": ["id", "created", "type", "durable", "data"],
  14235. "additionalProperties": false
  14236. },
  14237. "session.retry.scheduled": {
  14238. "type": "object",
  14239. "properties": {
  14240. "id": {
  14241. "type": "string",
  14242. "allOf": [
  14243. {
  14244. "pattern": "^evt_"
  14245. }
  14246. ]
  14247. },
  14248. "created": {
  14249. "type": "number"
  14250. },
  14251. "metadata": {
  14252. "type": "object"
  14253. },
  14254. "type": {
  14255. "type": "string",
  14256. "enum": ["session.retry.scheduled"]
  14257. },
  14258. "durable": {
  14259. "type": "object",
  14260. "properties": {
  14261. "aggregateID": {
  14262. "type": "string"
  14263. },
  14264. "seq": {
  14265. "type": "integer",
  14266. "allOf": [
  14267. {
  14268. "minimum": 0
  14269. }
  14270. ]
  14271. },
  14272. "version": {
  14273. "type": "number",
  14274. "enum": [1]
  14275. }
  14276. },
  14277. "required": ["aggregateID", "seq", "version"],
  14278. "additionalProperties": false
  14279. },
  14280. "location": {
  14281. "$ref": "#/components/schemas/Location.Ref"
  14282. },
  14283. "data": {
  14284. "type": "object",
  14285. "properties": {
  14286. "sessionID": {
  14287. "type": "string",
  14288. "allOf": [
  14289. {
  14290. "pattern": "^ses"
  14291. }
  14292. ]
  14293. },
  14294. "assistantMessageID": {
  14295. "type": "string",
  14296. "allOf": [
  14297. {
  14298. "pattern": "^msg_"
  14299. }
  14300. ]
  14301. },
  14302. "attempt": {
  14303. "type": "integer",
  14304. "allOf": [
  14305. {
  14306. "exclusiveMinimum": 0
  14307. }
  14308. ]
  14309. },
  14310. "at": {
  14311. "type": "integer",
  14312. "allOf": [
  14313. {
  14314. "minimum": 0
  14315. }
  14316. ]
  14317. },
  14318. "error": {
  14319. "$ref": "#/components/schemas/Session.StructuredError"
  14320. }
  14321. },
  14322. "required": ["sessionID", "assistantMessageID", "attempt", "at", "error"],
  14323. "additionalProperties": false
  14324. }
  14325. },
  14326. "required": ["id", "created", "type", "durable", "data"],
  14327. "additionalProperties": false
  14328. },
  14329. "session.compaction.admitted": {
  14330. "type": "object",
  14331. "properties": {
  14332. "id": {
  14333. "type": "string",
  14334. "allOf": [
  14335. {
  14336. "pattern": "^evt_"
  14337. }
  14338. ]
  14339. },
  14340. "created": {
  14341. "type": "number"
  14342. },
  14343. "metadata": {
  14344. "type": "object"
  14345. },
  14346. "type": {
  14347. "type": "string",
  14348. "enum": ["session.compaction.admitted"]
  14349. },
  14350. "durable": {
  14351. "type": "object",
  14352. "properties": {
  14353. "aggregateID": {
  14354. "type": "string"
  14355. },
  14356. "seq": {
  14357. "type": "integer",
  14358. "allOf": [
  14359. {
  14360. "minimum": 0
  14361. }
  14362. ]
  14363. },
  14364. "version": {
  14365. "type": "number",
  14366. "enum": [1]
  14367. }
  14368. },
  14369. "required": ["aggregateID", "seq", "version"],
  14370. "additionalProperties": false
  14371. },
  14372. "location": {
  14373. "$ref": "#/components/schemas/Location.Ref"
  14374. },
  14375. "data": {
  14376. "type": "object",
  14377. "properties": {
  14378. "sessionID": {
  14379. "type": "string",
  14380. "allOf": [
  14381. {
  14382. "pattern": "^ses"
  14383. }
  14384. ]
  14385. },
  14386. "inputID": {
  14387. "type": "string",
  14388. "allOf": [
  14389. {
  14390. "pattern": "^msg_"
  14391. }
  14392. ]
  14393. }
  14394. },
  14395. "required": ["sessionID", "inputID"],
  14396. "additionalProperties": false
  14397. }
  14398. },
  14399. "required": ["id", "created", "type", "durable", "data"],
  14400. "additionalProperties": false
  14401. },
  14402. "session.compaction.started": {
  14403. "type": "object",
  14404. "properties": {
  14405. "id": {
  14406. "type": "string",
  14407. "allOf": [
  14408. {
  14409. "pattern": "^evt_"
  14410. }
  14411. ]
  14412. },
  14413. "created": {
  14414. "type": "number"
  14415. },
  14416. "metadata": {
  14417. "type": "object"
  14418. },
  14419. "type": {
  14420. "type": "string",
  14421. "enum": ["session.compaction.started"]
  14422. },
  14423. "durable": {
  14424. "type": "object",
  14425. "properties": {
  14426. "aggregateID": {
  14427. "type": "string"
  14428. },
  14429. "seq": {
  14430. "type": "integer",
  14431. "allOf": [
  14432. {
  14433. "minimum": 0
  14434. }
  14435. ]
  14436. },
  14437. "version": {
  14438. "type": "number",
  14439. "enum": [1]
  14440. }
  14441. },
  14442. "required": ["aggregateID", "seq", "version"],
  14443. "additionalProperties": false
  14444. },
  14445. "location": {
  14446. "$ref": "#/components/schemas/Location.Ref"
  14447. },
  14448. "data": {
  14449. "type": "object",
  14450. "properties": {
  14451. "sessionID": {
  14452. "type": "string",
  14453. "allOf": [
  14454. {
  14455. "pattern": "^ses"
  14456. }
  14457. ]
  14458. },
  14459. "reason": {
  14460. "type": "string",
  14461. "enum": ["auto", "manual"]
  14462. },
  14463. "recent": {
  14464. "type": "string"
  14465. },
  14466. "inputID": {
  14467. "type": "string",
  14468. "allOf": [
  14469. {
  14470. "pattern": "^msg_"
  14471. }
  14472. ]
  14473. }
  14474. },
  14475. "required": ["sessionID", "reason", "recent"],
  14476. "additionalProperties": false
  14477. }
  14478. },
  14479. "required": ["id", "created", "type", "durable", "data"],
  14480. "additionalProperties": false
  14481. },
  14482. "session.compaction.ended": {
  14483. "type": "object",
  14484. "properties": {
  14485. "id": {
  14486. "type": "string",
  14487. "allOf": [
  14488. {
  14489. "pattern": "^evt_"
  14490. }
  14491. ]
  14492. },
  14493. "created": {
  14494. "type": "number"
  14495. },
  14496. "metadata": {
  14497. "type": "object"
  14498. },
  14499. "type": {
  14500. "type": "string",
  14501. "enum": ["session.compaction.ended"]
  14502. },
  14503. "durable": {
  14504. "type": "object",
  14505. "properties": {
  14506. "aggregateID": {
  14507. "type": "string"
  14508. },
  14509. "seq": {
  14510. "type": "integer",
  14511. "allOf": [
  14512. {
  14513. "minimum": 0
  14514. }
  14515. ]
  14516. },
  14517. "version": {
  14518. "type": "number",
  14519. "enum": [1]
  14520. }
  14521. },
  14522. "required": ["aggregateID", "seq", "version"],
  14523. "additionalProperties": false
  14524. },
  14525. "location": {
  14526. "$ref": "#/components/schemas/Location.Ref"
  14527. },
  14528. "data": {
  14529. "type": "object",
  14530. "properties": {
  14531. "sessionID": {
  14532. "type": "string",
  14533. "allOf": [
  14534. {
  14535. "pattern": "^ses"
  14536. }
  14537. ]
  14538. },
  14539. "reason": {
  14540. "type": "string",
  14541. "enum": ["auto", "manual"]
  14542. },
  14543. "text": {
  14544. "type": "string"
  14545. },
  14546. "recent": {
  14547. "type": "string"
  14548. }
  14549. },
  14550. "required": ["sessionID", "reason", "text", "recent"],
  14551. "additionalProperties": false
  14552. }
  14553. },
  14554. "required": ["id", "created", "type", "durable", "data"],
  14555. "additionalProperties": false
  14556. },
  14557. "session.compaction.failed": {
  14558. "type": "object",
  14559. "properties": {
  14560. "id": {
  14561. "type": "string",
  14562. "allOf": [
  14563. {
  14564. "pattern": "^evt_"
  14565. }
  14566. ]
  14567. },
  14568. "created": {
  14569. "type": "number"
  14570. },
  14571. "metadata": {
  14572. "type": "object"
  14573. },
  14574. "type": {
  14575. "type": "string",
  14576. "enum": ["session.compaction.failed"]
  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": [1]
  14595. }
  14596. },
  14597. "required": ["aggregateID", "seq", "version"],
  14598. "additionalProperties": false
  14599. },
  14600. "location": {
  14601. "$ref": "#/components/schemas/Location.Ref"
  14602. },
  14603. "data": {
  14604. "type": "object",
  14605. "properties": {
  14606. "sessionID": {
  14607. "type": "string",
  14608. "allOf": [
  14609. {
  14610. "pattern": "^ses"
  14611. }
  14612. ]
  14613. },
  14614. "reason": {
  14615. "type": "string",
  14616. "enum": ["auto", "manual"]
  14617. },
  14618. "error": {
  14619. "$ref": "#/components/schemas/Session.StructuredError"
  14620. },
  14621. "inputID": {
  14622. "type": "string",
  14623. "allOf": [
  14624. {
  14625. "pattern": "^msg_"
  14626. }
  14627. ]
  14628. }
  14629. },
  14630. "required": ["sessionID", "reason", "error"],
  14631. "additionalProperties": false
  14632. }
  14633. },
  14634. "required": ["id", "created", "type", "durable", "data"],
  14635. "additionalProperties": false
  14636. },
  14637. "session.revert.staged": {
  14638. "type": "object",
  14639. "properties": {
  14640. "id": {
  14641. "type": "string",
  14642. "allOf": [
  14643. {
  14644. "pattern": "^evt_"
  14645. }
  14646. ]
  14647. },
  14648. "created": {
  14649. "type": "number"
  14650. },
  14651. "metadata": {
  14652. "type": "object"
  14653. },
  14654. "type": {
  14655. "type": "string",
  14656. "enum": ["session.revert.staged"]
  14657. },
  14658. "durable": {
  14659. "type": "object",
  14660. "properties": {
  14661. "aggregateID": {
  14662. "type": "string"
  14663. },
  14664. "seq": {
  14665. "type": "integer",
  14666. "allOf": [
  14667. {
  14668. "minimum": 0
  14669. }
  14670. ]
  14671. },
  14672. "version": {
  14673. "type": "number",
  14674. "enum": [1]
  14675. }
  14676. },
  14677. "required": ["aggregateID", "seq", "version"],
  14678. "additionalProperties": false
  14679. },
  14680. "location": {
  14681. "$ref": "#/components/schemas/Location.Ref"
  14682. },
  14683. "data": {
  14684. "type": "object",
  14685. "properties": {
  14686. "sessionID": {
  14687. "type": "string",
  14688. "allOf": [
  14689. {
  14690. "pattern": "^ses"
  14691. }
  14692. ]
  14693. },
  14694. "revert": {
  14695. "$ref": "#/components/schemas/Session.Revert"
  14696. }
  14697. },
  14698. "required": ["sessionID", "revert"],
  14699. "additionalProperties": false
  14700. }
  14701. },
  14702. "required": ["id", "created", "type", "durable", "data"],
  14703. "additionalProperties": false
  14704. },
  14705. "session.revert.cleared": {
  14706. "type": "object",
  14707. "properties": {
  14708. "id": {
  14709. "type": "string",
  14710. "allOf": [
  14711. {
  14712. "pattern": "^evt_"
  14713. }
  14714. ]
  14715. },
  14716. "created": {
  14717. "type": "number"
  14718. },
  14719. "metadata": {
  14720. "type": "object"
  14721. },
  14722. "type": {
  14723. "type": "string",
  14724. "enum": ["session.revert.cleared"]
  14725. },
  14726. "durable": {
  14727. "type": "object",
  14728. "properties": {
  14729. "aggregateID": {
  14730. "type": "string"
  14731. },
  14732. "seq": {
  14733. "type": "integer",
  14734. "allOf": [
  14735. {
  14736. "minimum": 0
  14737. }
  14738. ]
  14739. },
  14740. "version": {
  14741. "type": "number",
  14742. "enum": [1]
  14743. }
  14744. },
  14745. "required": ["aggregateID", "seq", "version"],
  14746. "additionalProperties": false
  14747. },
  14748. "location": {
  14749. "$ref": "#/components/schemas/Location.Ref"
  14750. },
  14751. "data": {
  14752. "type": "object",
  14753. "properties": {
  14754. "sessionID": {
  14755. "type": "string",
  14756. "allOf": [
  14757. {
  14758. "pattern": "^ses"
  14759. }
  14760. ]
  14761. }
  14762. },
  14763. "required": ["sessionID"],
  14764. "additionalProperties": false
  14765. }
  14766. },
  14767. "required": ["id", "created", "type", "durable", "data"],
  14768. "additionalProperties": false
  14769. },
  14770. "session.revert.committed": {
  14771. "type": "object",
  14772. "properties": {
  14773. "id": {
  14774. "type": "string",
  14775. "allOf": [
  14776. {
  14777. "pattern": "^evt_"
  14778. }
  14779. ]
  14780. },
  14781. "created": {
  14782. "type": "number"
  14783. },
  14784. "metadata": {
  14785. "type": "object"
  14786. },
  14787. "type": {
  14788. "type": "string",
  14789. "enum": ["session.revert.committed"]
  14790. },
  14791. "durable": {
  14792. "type": "object",
  14793. "properties": {
  14794. "aggregateID": {
  14795. "type": "string"
  14796. },
  14797. "seq": {
  14798. "type": "integer",
  14799. "allOf": [
  14800. {
  14801. "minimum": 0
  14802. }
  14803. ]
  14804. },
  14805. "version": {
  14806. "type": "number",
  14807. "enum": [1]
  14808. }
  14809. },
  14810. "required": ["aggregateID", "seq", "version"],
  14811. "additionalProperties": false
  14812. },
  14813. "location": {
  14814. "$ref": "#/components/schemas/Location.Ref"
  14815. },
  14816. "data": {
  14817. "type": "object",
  14818. "properties": {
  14819. "sessionID": {
  14820. "type": "string",
  14821. "allOf": [
  14822. {
  14823. "pattern": "^ses"
  14824. }
  14825. ]
  14826. },
  14827. "to": {
  14828. "type": "string",
  14829. "allOf": [
  14830. {
  14831. "pattern": "^msg_"
  14832. }
  14833. ]
  14834. }
  14835. },
  14836. "required": ["sessionID", "to"],
  14837. "additionalProperties": false
  14838. }
  14839. },
  14840. "required": ["id", "created", "type", "durable", "data"],
  14841. "additionalProperties": false
  14842. },
  14843. "Session.Event.Durable": {
  14844. "oneOf": [
  14845. {
  14846. "$ref": "#/components/schemas/session.agent.selected"
  14847. },
  14848. {
  14849. "$ref": "#/components/schemas/session.model.selected"
  14850. },
  14851. {
  14852. "$ref": "#/components/schemas/session.moved"
  14853. },
  14854. {
  14855. "$ref": "#/components/schemas/session.renamed"
  14856. },
  14857. {
  14858. "$ref": "#/components/schemas/session.deleted"
  14859. },
  14860. {
  14861. "$ref": "#/components/schemas/session.forked"
  14862. },
  14863. {
  14864. "$ref": "#/components/schemas/session.prompt.promoted"
  14865. },
  14866. {
  14867. "$ref": "#/components/schemas/session.prompt.admitted"
  14868. },
  14869. {
  14870. "$ref": "#/components/schemas/session.execution.started"
  14871. },
  14872. {
  14873. "$ref": "#/components/schemas/session.execution.succeeded"
  14874. },
  14875. {
  14876. "$ref": "#/components/schemas/session.execution.failed"
  14877. },
  14878. {
  14879. "$ref": "#/components/schemas/session.execution.interrupted"
  14880. },
  14881. {
  14882. "$ref": "#/components/schemas/session.instructions.updated"
  14883. },
  14884. {
  14885. "$ref": "#/components/schemas/session.synthetic"
  14886. },
  14887. {
  14888. "$ref": "#/components/schemas/session.skill.activated"
  14889. },
  14890. {
  14891. "$ref": "#/components/schemas/session.shell.started"
  14892. },
  14893. {
  14894. "$ref": "#/components/schemas/session.shell.ended"
  14895. },
  14896. {
  14897. "$ref": "#/components/schemas/session.step.started"
  14898. },
  14899. {
  14900. "$ref": "#/components/schemas/session.step.ended"
  14901. },
  14902. {
  14903. "$ref": "#/components/schemas/session.step.failed"
  14904. },
  14905. {
  14906. "$ref": "#/components/schemas/session.text.started"
  14907. },
  14908. {
  14909. "$ref": "#/components/schemas/session.text.ended"
  14910. },
  14911. {
  14912. "$ref": "#/components/schemas/session.reasoning.started"
  14913. },
  14914. {
  14915. "$ref": "#/components/schemas/session.reasoning.ended"
  14916. },
  14917. {
  14918. "$ref": "#/components/schemas/session.tool.input.started"
  14919. },
  14920. {
  14921. "$ref": "#/components/schemas/session.tool.input.ended"
  14922. },
  14923. {
  14924. "$ref": "#/components/schemas/session.tool.called"
  14925. },
  14926. {
  14927. "$ref": "#/components/schemas/session.tool.progress"
  14928. },
  14929. {
  14930. "$ref": "#/components/schemas/session.tool.success"
  14931. },
  14932. {
  14933. "$ref": "#/components/schemas/session.tool.failed"
  14934. },
  14935. {
  14936. "$ref": "#/components/schemas/session.retry.scheduled"
  14937. },
  14938. {
  14939. "$ref": "#/components/schemas/session.compaction.admitted"
  14940. },
  14941. {
  14942. "$ref": "#/components/schemas/session.compaction.started"
  14943. },
  14944. {
  14945. "$ref": "#/components/schemas/session.compaction.ended"
  14946. },
  14947. {
  14948. "$ref": "#/components/schemas/session.compaction.failed"
  14949. },
  14950. {
  14951. "$ref": "#/components/schemas/session.revert.staged"
  14952. },
  14953. {
  14954. "$ref": "#/components/schemas/session.revert.cleared"
  14955. },
  14956. {
  14957. "$ref": "#/components/schemas/session.revert.committed"
  14958. }
  14959. ]
  14960. },
  14961. "EventLog.Synced": {
  14962. "type": "object",
  14963. "properties": {
  14964. "type": {
  14965. "type": "string",
  14966. "enum": ["log.synced"]
  14967. },
  14968. "aggregateID": {
  14969. "type": "string"
  14970. },
  14971. "seq": {
  14972. "type": "integer",
  14973. "allOf": [
  14974. {
  14975. "minimum": 0
  14976. }
  14977. ]
  14978. }
  14979. },
  14980. "required": ["type", "aggregateID"],
  14981. "additionalProperties": false,
  14982. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  14983. },
  14984. "SessionLogItem": {
  14985. "anyOf": [
  14986. {
  14987. "$ref": "#/components/schemas/Session.Event.Durable"
  14988. },
  14989. {
  14990. "$ref": "#/components/schemas/EventLog.Synced"
  14991. }
  14992. ]
  14993. },
  14994. "SessionLogItemStream": {
  14995. "type": "string",
  14996. "contentSchema": {
  14997. "$ref": "#/components/schemas/SessionLogItem"
  14998. },
  14999. "contentMediaType": "application/json"
  15000. },
  15001. "SessionMessagesResponse": {
  15002. "type": "object",
  15003. "properties": {
  15004. "data": {
  15005. "type": "array",
  15006. "items": {
  15007. "$ref": "#/components/schemas/Session.Message.Info"
  15008. }
  15009. },
  15010. "cursor": {
  15011. "type": "object",
  15012. "properties": {
  15013. "previous": {
  15014. "anyOf": [
  15015. {
  15016. "type": "string"
  15017. },
  15018. {
  15019. "type": "null"
  15020. }
  15021. ]
  15022. },
  15023. "next": {
  15024. "anyOf": [
  15025. {
  15026. "type": "string"
  15027. },
  15028. {
  15029. "type": "null"
  15030. }
  15031. ]
  15032. }
  15033. },
  15034. "additionalProperties": false
  15035. }
  15036. },
  15037. "required": ["data", "cursor"],
  15038. "additionalProperties": false
  15039. },
  15040. "Model.Capabilities": {
  15041. "type": "object",
  15042. "properties": {
  15043. "tools": {
  15044. "type": "boolean"
  15045. },
  15046. "input": {
  15047. "type": "array",
  15048. "items": {
  15049. "type": "string"
  15050. }
  15051. },
  15052. "output": {
  15053. "type": "array",
  15054. "items": {
  15055. "type": "string"
  15056. }
  15057. }
  15058. },
  15059. "required": ["tools", "input", "output"],
  15060. "additionalProperties": false
  15061. },
  15062. "Model.Variant": {
  15063. "type": "object",
  15064. "properties": {
  15065. "id": {
  15066. "type": "string"
  15067. },
  15068. "settings": {
  15069. "type": "object"
  15070. },
  15071. "headers": {
  15072. "type": "object",
  15073. "additionalProperties": {
  15074. "type": "string"
  15075. }
  15076. },
  15077. "body": {
  15078. "type": "object"
  15079. }
  15080. },
  15081. "required": ["id"],
  15082. "additionalProperties": false
  15083. },
  15084. "Money.USDPerMillionTokens": {
  15085. "type": "number"
  15086. },
  15087. "Model.Cost": {
  15088. "type": "object",
  15089. "properties": {
  15090. "tier": {
  15091. "type": "object",
  15092. "properties": {
  15093. "type": {
  15094. "type": "string",
  15095. "enum": ["context"]
  15096. },
  15097. "size": {
  15098. "type": "integer"
  15099. }
  15100. },
  15101. "required": ["type", "size"],
  15102. "additionalProperties": false
  15103. },
  15104. "input": {
  15105. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  15106. },
  15107. "output": {
  15108. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  15109. },
  15110. "cache": {
  15111. "type": "object",
  15112. "properties": {
  15113. "read": {
  15114. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  15115. },
  15116. "write": {
  15117. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  15118. }
  15119. },
  15120. "required": ["read", "write"],
  15121. "additionalProperties": false
  15122. }
  15123. },
  15124. "required": ["input", "output", "cache"],
  15125. "additionalProperties": false
  15126. },
  15127. "Model.Info": {
  15128. "type": "object",
  15129. "properties": {
  15130. "id": {
  15131. "type": "string"
  15132. },
  15133. "modelID": {
  15134. "type": "string"
  15135. },
  15136. "providerID": {
  15137. "type": "string"
  15138. },
  15139. "family": {
  15140. "type": "string"
  15141. },
  15142. "name": {
  15143. "type": "string"
  15144. },
  15145. "package": {
  15146. "type": "string"
  15147. },
  15148. "settings": {
  15149. "type": "object"
  15150. },
  15151. "headers": {
  15152. "type": "object",
  15153. "additionalProperties": {
  15154. "type": "string"
  15155. }
  15156. },
  15157. "body": {
  15158. "type": "object"
  15159. },
  15160. "capabilities": {
  15161. "$ref": "#/components/schemas/Model.Capabilities"
  15162. },
  15163. "variants": {
  15164. "type": "array",
  15165. "items": {
  15166. "$ref": "#/components/schemas/Model.Variant"
  15167. }
  15168. },
  15169. "time": {
  15170. "type": "object",
  15171. "properties": {
  15172. "released": {
  15173. "type": "number"
  15174. }
  15175. },
  15176. "required": ["released"],
  15177. "additionalProperties": false
  15178. },
  15179. "cost": {
  15180. "type": "array",
  15181. "items": {
  15182. "$ref": "#/components/schemas/Model.Cost"
  15183. }
  15184. },
  15185. "status": {
  15186. "type": "string",
  15187. "enum": ["alpha", "beta", "deprecated", "active"]
  15188. },
  15189. "enabled": {
  15190. "type": "boolean"
  15191. },
  15192. "limit": {
  15193. "type": "object",
  15194. "properties": {
  15195. "context": {
  15196. "type": "integer"
  15197. },
  15198. "input": {
  15199. "type": "integer"
  15200. },
  15201. "output": {
  15202. "type": "integer"
  15203. }
  15204. },
  15205. "required": ["context", "output"],
  15206. "additionalProperties": false
  15207. }
  15208. },
  15209. "required": [
  15210. "id",
  15211. "modelID",
  15212. "providerID",
  15213. "name",
  15214. "capabilities",
  15215. "variants",
  15216. "time",
  15217. "cost",
  15218. "status",
  15219. "enabled",
  15220. "limit"
  15221. ],
  15222. "additionalProperties": false
  15223. },
  15224. "GenerateTextResponse": {
  15225. "type": "object",
  15226. "properties": {
  15227. "data": {
  15228. "type": "object",
  15229. "properties": {
  15230. "text": {
  15231. "type": "string"
  15232. }
  15233. },
  15234. "required": ["text"],
  15235. "additionalProperties": false
  15236. }
  15237. },
  15238. "required": ["data"],
  15239. "additionalProperties": false
  15240. },
  15241. "ProviderV2.Info": {
  15242. "type": "object",
  15243. "properties": {
  15244. "id": {
  15245. "type": "string"
  15246. },
  15247. "integrationID": {
  15248. "type": "string"
  15249. },
  15250. "name": {
  15251. "type": "string"
  15252. },
  15253. "disabled": {
  15254. "type": "boolean"
  15255. },
  15256. "package": {
  15257. "type": "string"
  15258. },
  15259. "settings": {
  15260. "type": "object"
  15261. },
  15262. "headers": {
  15263. "type": "object",
  15264. "additionalProperties": {
  15265. "type": "string"
  15266. }
  15267. },
  15268. "body": {
  15269. "type": "object"
  15270. }
  15271. },
  15272. "required": ["id", "name", "package"],
  15273. "additionalProperties": false
  15274. },
  15275. "ProviderNotFoundError": {
  15276. "type": "object",
  15277. "properties": {
  15278. "_tag": {
  15279. "type": "string",
  15280. "enum": ["ProviderNotFoundError"]
  15281. },
  15282. "providerID": {
  15283. "type": "string"
  15284. },
  15285. "message": {
  15286. "type": "string"
  15287. }
  15288. },
  15289. "required": ["_tag", "providerID", "message"],
  15290. "additionalProperties": false
  15291. },
  15292. "Integration.When": {
  15293. "type": "object",
  15294. "properties": {
  15295. "key": {
  15296. "type": "string"
  15297. },
  15298. "op": {
  15299. "type": "string",
  15300. "enum": ["eq", "neq"]
  15301. },
  15302. "value": {
  15303. "type": "string"
  15304. }
  15305. },
  15306. "required": ["key", "op", "value"],
  15307. "additionalProperties": false
  15308. },
  15309. "Integration.TextPrompt": {
  15310. "type": "object",
  15311. "properties": {
  15312. "type": {
  15313. "type": "string",
  15314. "enum": ["text"]
  15315. },
  15316. "key": {
  15317. "type": "string"
  15318. },
  15319. "message": {
  15320. "type": "string"
  15321. },
  15322. "placeholder": {
  15323. "type": "string"
  15324. },
  15325. "when": {
  15326. "$ref": "#/components/schemas/Integration.When"
  15327. }
  15328. },
  15329. "required": ["type", "key", "message"],
  15330. "additionalProperties": false
  15331. },
  15332. "Integration.SelectPrompt": {
  15333. "type": "object",
  15334. "properties": {
  15335. "type": {
  15336. "type": "string",
  15337. "enum": ["select"]
  15338. },
  15339. "key": {
  15340. "type": "string"
  15341. },
  15342. "message": {
  15343. "type": "string"
  15344. },
  15345. "options": {
  15346. "type": "array",
  15347. "items": {
  15348. "type": "object",
  15349. "properties": {
  15350. "label": {
  15351. "type": "string"
  15352. },
  15353. "value": {
  15354. "type": "string"
  15355. },
  15356. "hint": {
  15357. "type": "string"
  15358. }
  15359. },
  15360. "required": ["label", "value"],
  15361. "additionalProperties": false
  15362. }
  15363. },
  15364. "when": {
  15365. "$ref": "#/components/schemas/Integration.When"
  15366. }
  15367. },
  15368. "required": ["type", "key", "message", "options"],
  15369. "additionalProperties": false
  15370. },
  15371. "Integration.OAuthMethod": {
  15372. "type": "object",
  15373. "properties": {
  15374. "id": {
  15375. "type": "string"
  15376. },
  15377. "type": {
  15378. "type": "string",
  15379. "enum": ["oauth"]
  15380. },
  15381. "label": {
  15382. "type": "string"
  15383. },
  15384. "prompts": {
  15385. "type": "array",
  15386. "items": {
  15387. "anyOf": [
  15388. {
  15389. "$ref": "#/components/schemas/Integration.TextPrompt"
  15390. },
  15391. {
  15392. "$ref": "#/components/schemas/Integration.SelectPrompt"
  15393. }
  15394. ]
  15395. }
  15396. }
  15397. },
  15398. "required": ["id", "type", "label"],
  15399. "additionalProperties": false
  15400. },
  15401. "Integration.KeyMethod": {
  15402. "type": "object",
  15403. "properties": {
  15404. "type": {
  15405. "type": "string",
  15406. "enum": ["key"]
  15407. },
  15408. "label": {
  15409. "type": "string"
  15410. }
  15411. },
  15412. "required": ["type"],
  15413. "additionalProperties": false
  15414. },
  15415. "Integration.EnvMethod": {
  15416. "type": "object",
  15417. "properties": {
  15418. "type": {
  15419. "type": "string",
  15420. "enum": ["env"]
  15421. },
  15422. "names": {
  15423. "type": "array",
  15424. "items": {
  15425. "type": "string"
  15426. }
  15427. }
  15428. },
  15429. "required": ["type", "names"],
  15430. "additionalProperties": false
  15431. },
  15432. "Integration.Method": {
  15433. "anyOf": [
  15434. {
  15435. "$ref": "#/components/schemas/Integration.OAuthMethod"
  15436. },
  15437. {
  15438. "$ref": "#/components/schemas/Integration.KeyMethod"
  15439. },
  15440. {
  15441. "$ref": "#/components/schemas/Integration.EnvMethod"
  15442. }
  15443. ]
  15444. },
  15445. "Connection.CredentialInfo": {
  15446. "type": "object",
  15447. "properties": {
  15448. "type": {
  15449. "type": "string",
  15450. "enum": ["credential"]
  15451. },
  15452. "id": {
  15453. "type": "string"
  15454. },
  15455. "label": {
  15456. "type": "string"
  15457. }
  15458. },
  15459. "required": ["type", "id", "label"],
  15460. "additionalProperties": false
  15461. },
  15462. "Connection.EnvInfo": {
  15463. "type": "object",
  15464. "properties": {
  15465. "type": {
  15466. "type": "string",
  15467. "enum": ["env"]
  15468. },
  15469. "name": {
  15470. "type": "string"
  15471. }
  15472. },
  15473. "required": ["type", "name"],
  15474. "additionalProperties": false
  15475. },
  15476. "Connection.Info": {
  15477. "anyOf": [
  15478. {
  15479. "$ref": "#/components/schemas/Connection.CredentialInfo"
  15480. },
  15481. {
  15482. "$ref": "#/components/schemas/Connection.EnvInfo"
  15483. }
  15484. ]
  15485. },
  15486. "Integration.Info": {
  15487. "type": "object",
  15488. "properties": {
  15489. "id": {
  15490. "type": "string"
  15491. },
  15492. "name": {
  15493. "type": "string"
  15494. },
  15495. "methods": {
  15496. "type": "array",
  15497. "items": {
  15498. "$ref": "#/components/schemas/Integration.Method"
  15499. }
  15500. },
  15501. "connections": {
  15502. "type": "array",
  15503. "items": {
  15504. "$ref": "#/components/schemas/Connection.Info"
  15505. }
  15506. }
  15507. },
  15508. "required": ["id", "name", "methods", "connections"],
  15509. "additionalProperties": false
  15510. },
  15511. "Integration.Attempt": {
  15512. "type": "object",
  15513. "properties": {
  15514. "attemptID": {
  15515. "type": "string"
  15516. },
  15517. "url": {
  15518. "type": "string"
  15519. },
  15520. "instructions": {
  15521. "type": "string"
  15522. },
  15523. "mode": {
  15524. "type": "string",
  15525. "enum": ["auto", "code"]
  15526. },
  15527. "time": {
  15528. "type": "object",
  15529. "properties": {
  15530. "created": {
  15531. "anyOf": [
  15532. {
  15533. "anyOf": [
  15534. {
  15535. "type": "number"
  15536. },
  15537. {
  15538. "type": "string",
  15539. "enum": ["NaN"]
  15540. },
  15541. {
  15542. "type": "string",
  15543. "enum": ["Infinity"]
  15544. },
  15545. {
  15546. "type": "string",
  15547. "enum": ["-Infinity"]
  15548. }
  15549. ]
  15550. },
  15551. {
  15552. "type": "string",
  15553. "enum": ["Infinity", "-Infinity", "NaN"]
  15554. }
  15555. ]
  15556. },
  15557. "expires": {
  15558. "anyOf": [
  15559. {
  15560. "anyOf": [
  15561. {
  15562. "type": "number"
  15563. },
  15564. {
  15565. "type": "string",
  15566. "enum": ["NaN"]
  15567. },
  15568. {
  15569. "type": "string",
  15570. "enum": ["Infinity"]
  15571. },
  15572. {
  15573. "type": "string",
  15574. "enum": ["-Infinity"]
  15575. }
  15576. ]
  15577. },
  15578. {
  15579. "type": "string",
  15580. "enum": ["Infinity", "-Infinity", "NaN"]
  15581. }
  15582. ]
  15583. }
  15584. },
  15585. "required": ["created", "expires"],
  15586. "additionalProperties": false
  15587. }
  15588. },
  15589. "required": ["attemptID", "url", "instructions", "mode", "time"],
  15590. "additionalProperties": false
  15591. },
  15592. "Integration.AttemptStatus": {
  15593. "anyOf": [
  15594. {
  15595. "type": "object",
  15596. "properties": {
  15597. "status": {
  15598. "type": "string",
  15599. "enum": ["pending"]
  15600. },
  15601. "time": {
  15602. "type": "object",
  15603. "properties": {
  15604. "created": {
  15605. "anyOf": [
  15606. {
  15607. "anyOf": [
  15608. {
  15609. "type": "number"
  15610. },
  15611. {
  15612. "type": "string",
  15613. "enum": ["NaN"]
  15614. },
  15615. {
  15616. "type": "string",
  15617. "enum": ["Infinity"]
  15618. },
  15619. {
  15620. "type": "string",
  15621. "enum": ["-Infinity"]
  15622. }
  15623. ]
  15624. },
  15625. {
  15626. "type": "string",
  15627. "enum": ["Infinity", "-Infinity", "NaN"]
  15628. }
  15629. ]
  15630. },
  15631. "expires": {
  15632. "anyOf": [
  15633. {
  15634. "anyOf": [
  15635. {
  15636. "type": "number"
  15637. },
  15638. {
  15639. "type": "string",
  15640. "enum": ["NaN"]
  15641. },
  15642. {
  15643. "type": "string",
  15644. "enum": ["Infinity"]
  15645. },
  15646. {
  15647. "type": "string",
  15648. "enum": ["-Infinity"]
  15649. }
  15650. ]
  15651. },
  15652. {
  15653. "type": "string",
  15654. "enum": ["Infinity", "-Infinity", "NaN"]
  15655. }
  15656. ]
  15657. }
  15658. },
  15659. "required": ["created", "expires"],
  15660. "additionalProperties": false
  15661. }
  15662. },
  15663. "required": ["status", "time"],
  15664. "additionalProperties": false
  15665. },
  15666. {
  15667. "type": "object",
  15668. "properties": {
  15669. "status": {
  15670. "type": "string",
  15671. "enum": ["complete"]
  15672. },
  15673. "time": {
  15674. "type": "object",
  15675. "properties": {
  15676. "created": {
  15677. "anyOf": [
  15678. {
  15679. "anyOf": [
  15680. {
  15681. "type": "number"
  15682. },
  15683. {
  15684. "type": "string",
  15685. "enum": ["NaN"]
  15686. },
  15687. {
  15688. "type": "string",
  15689. "enum": ["Infinity"]
  15690. },
  15691. {
  15692. "type": "string",
  15693. "enum": ["-Infinity"]
  15694. }
  15695. ]
  15696. },
  15697. {
  15698. "type": "string",
  15699. "enum": ["Infinity", "-Infinity", "NaN"]
  15700. }
  15701. ]
  15702. },
  15703. "expires": {
  15704. "anyOf": [
  15705. {
  15706. "anyOf": [
  15707. {
  15708. "type": "number"
  15709. },
  15710. {
  15711. "type": "string",
  15712. "enum": ["NaN"]
  15713. },
  15714. {
  15715. "type": "string",
  15716. "enum": ["Infinity"]
  15717. },
  15718. {
  15719. "type": "string",
  15720. "enum": ["-Infinity"]
  15721. }
  15722. ]
  15723. },
  15724. {
  15725. "type": "string",
  15726. "enum": ["Infinity", "-Infinity", "NaN"]
  15727. }
  15728. ]
  15729. }
  15730. },
  15731. "required": ["created", "expires"],
  15732. "additionalProperties": false
  15733. }
  15734. },
  15735. "required": ["status", "time"],
  15736. "additionalProperties": false
  15737. },
  15738. {
  15739. "type": "object",
  15740. "properties": {
  15741. "status": {
  15742. "type": "string",
  15743. "enum": ["failed"]
  15744. },
  15745. "message": {
  15746. "type": "string"
  15747. },
  15748. "time": {
  15749. "type": "object",
  15750. "properties": {
  15751. "created": {
  15752. "anyOf": [
  15753. {
  15754. "anyOf": [
  15755. {
  15756. "type": "number"
  15757. },
  15758. {
  15759. "type": "string",
  15760. "enum": ["NaN"]
  15761. },
  15762. {
  15763. "type": "string",
  15764. "enum": ["Infinity"]
  15765. },
  15766. {
  15767. "type": "string",
  15768. "enum": ["-Infinity"]
  15769. }
  15770. ]
  15771. },
  15772. {
  15773. "type": "string",
  15774. "enum": ["Infinity", "-Infinity", "NaN"]
  15775. }
  15776. ]
  15777. },
  15778. "expires": {
  15779. "anyOf": [
  15780. {
  15781. "anyOf": [
  15782. {
  15783. "type": "number"
  15784. },
  15785. {
  15786. "type": "string",
  15787. "enum": ["NaN"]
  15788. },
  15789. {
  15790. "type": "string",
  15791. "enum": ["Infinity"]
  15792. },
  15793. {
  15794. "type": "string",
  15795. "enum": ["-Infinity"]
  15796. }
  15797. ]
  15798. },
  15799. {
  15800. "type": "string",
  15801. "enum": ["Infinity", "-Infinity", "NaN"]
  15802. }
  15803. ]
  15804. }
  15805. },
  15806. "required": ["created", "expires"],
  15807. "additionalProperties": false
  15808. }
  15809. },
  15810. "required": ["status", "message", "time"],
  15811. "additionalProperties": false
  15812. },
  15813. {
  15814. "type": "object",
  15815. "properties": {
  15816. "status": {
  15817. "type": "string",
  15818. "enum": ["expired"]
  15819. },
  15820. "time": {
  15821. "type": "object",
  15822. "properties": {
  15823. "created": {
  15824. "anyOf": [
  15825. {
  15826. "anyOf": [
  15827. {
  15828. "type": "number"
  15829. },
  15830. {
  15831. "type": "string",
  15832. "enum": ["NaN"]
  15833. },
  15834. {
  15835. "type": "string",
  15836. "enum": ["Infinity"]
  15837. },
  15838. {
  15839. "type": "string",
  15840. "enum": ["-Infinity"]
  15841. }
  15842. ]
  15843. },
  15844. {
  15845. "type": "string",
  15846. "enum": ["Infinity", "-Infinity", "NaN"]
  15847. }
  15848. ]
  15849. },
  15850. "expires": {
  15851. "anyOf": [
  15852. {
  15853. "anyOf": [
  15854. {
  15855. "type": "number"
  15856. },
  15857. {
  15858. "type": "string",
  15859. "enum": ["NaN"]
  15860. },
  15861. {
  15862. "type": "string",
  15863. "enum": ["Infinity"]
  15864. },
  15865. {
  15866. "type": "string",
  15867. "enum": ["-Infinity"]
  15868. }
  15869. ]
  15870. },
  15871. {
  15872. "type": "string",
  15873. "enum": ["Infinity", "-Infinity", "NaN"]
  15874. }
  15875. ]
  15876. }
  15877. },
  15878. "required": ["created", "expires"],
  15879. "additionalProperties": false
  15880. }
  15881. },
  15882. "required": ["status", "time"],
  15883. "additionalProperties": false
  15884. }
  15885. ]
  15886. },
  15887. "Mcp.Status.Connected": {
  15888. "type": "object",
  15889. "properties": {
  15890. "status": {
  15891. "type": "string",
  15892. "enum": ["connected"]
  15893. }
  15894. },
  15895. "required": ["status"],
  15896. "additionalProperties": false
  15897. },
  15898. "Mcp.Status.Pending": {
  15899. "type": "object",
  15900. "properties": {
  15901. "status": {
  15902. "type": "string",
  15903. "enum": ["pending"]
  15904. }
  15905. },
  15906. "required": ["status"],
  15907. "additionalProperties": false
  15908. },
  15909. "Mcp.Status.Disabled": {
  15910. "type": "object",
  15911. "properties": {
  15912. "status": {
  15913. "type": "string",
  15914. "enum": ["disabled"]
  15915. }
  15916. },
  15917. "required": ["status"],
  15918. "additionalProperties": false
  15919. },
  15920. "Mcp.Status.Failed": {
  15921. "type": "object",
  15922. "properties": {
  15923. "status": {
  15924. "type": "string",
  15925. "enum": ["failed"]
  15926. },
  15927. "error": {
  15928. "type": "string"
  15929. }
  15930. },
  15931. "required": ["status", "error"],
  15932. "additionalProperties": false
  15933. },
  15934. "Mcp.Status.NeedsAuth": {
  15935. "type": "object",
  15936. "properties": {
  15937. "status": {
  15938. "type": "string",
  15939. "enum": ["needs_auth"]
  15940. }
  15941. },
  15942. "required": ["status"],
  15943. "additionalProperties": false
  15944. },
  15945. "Mcp.Status.NeedsClientRegistration": {
  15946. "type": "object",
  15947. "properties": {
  15948. "status": {
  15949. "type": "string",
  15950. "enum": ["needs_client_registration"]
  15951. },
  15952. "error": {
  15953. "type": "string"
  15954. }
  15955. },
  15956. "required": ["status", "error"],
  15957. "additionalProperties": false
  15958. },
  15959. "Mcp.Server": {
  15960. "type": "object",
  15961. "properties": {
  15962. "name": {
  15963. "type": "string"
  15964. },
  15965. "status": {
  15966. "anyOf": [
  15967. {
  15968. "$ref": "#/components/schemas/Mcp.Status.Connected"
  15969. },
  15970. {
  15971. "$ref": "#/components/schemas/Mcp.Status.Pending"
  15972. },
  15973. {
  15974. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  15975. },
  15976. {
  15977. "$ref": "#/components/schemas/Mcp.Status.Failed"
  15978. },
  15979. {
  15980. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  15981. },
  15982. {
  15983. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  15984. }
  15985. ]
  15986. },
  15987. "integrationID": {
  15988. "type": "string"
  15989. }
  15990. },
  15991. "required": ["name", "status"],
  15992. "additionalProperties": false
  15993. },
  15994. "Mcp.Resource": {
  15995. "type": "object",
  15996. "properties": {
  15997. "server": {
  15998. "type": "string"
  15999. },
  16000. "name": {
  16001. "type": "string"
  16002. },
  16003. "uri": {
  16004. "type": "string"
  16005. },
  16006. "description": {
  16007. "type": "string"
  16008. },
  16009. "mimeType": {
  16010. "type": "string"
  16011. }
  16012. },
  16013. "required": ["server", "name", "uri"],
  16014. "additionalProperties": false
  16015. },
  16016. "Mcp.ResourceTemplate": {
  16017. "type": "object",
  16018. "properties": {
  16019. "server": {
  16020. "type": "string"
  16021. },
  16022. "name": {
  16023. "type": "string"
  16024. },
  16025. "uriTemplate": {
  16026. "type": "string"
  16027. },
  16028. "description": {
  16029. "type": "string"
  16030. },
  16031. "mimeType": {
  16032. "type": "string"
  16033. }
  16034. },
  16035. "required": ["server", "name", "uriTemplate"],
  16036. "additionalProperties": false
  16037. },
  16038. "Mcp.ResourceCatalog": {
  16039. "type": "object",
  16040. "properties": {
  16041. "resources": {
  16042. "type": "array",
  16043. "items": {
  16044. "$ref": "#/components/schemas/Mcp.Resource"
  16045. }
  16046. },
  16047. "templates": {
  16048. "type": "array",
  16049. "items": {
  16050. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  16051. }
  16052. }
  16053. },
  16054. "required": ["resources", "templates"],
  16055. "additionalProperties": false
  16056. },
  16057. "Project.Vcs": {
  16058. "type": "string",
  16059. "enum": ["git", "hg"]
  16060. },
  16061. "Project.Icon": {
  16062. "type": "object",
  16063. "properties": {
  16064. "url": {
  16065. "type": "string"
  16066. },
  16067. "override": {
  16068. "type": "string"
  16069. },
  16070. "color": {
  16071. "type": "string"
  16072. }
  16073. },
  16074. "additionalProperties": false
  16075. },
  16076. "Project.Commands": {
  16077. "type": "object",
  16078. "properties": {
  16079. "start": {
  16080. "type": "string",
  16081. "description": "Startup script to run when creating a new workspace (worktree)"
  16082. }
  16083. },
  16084. "additionalProperties": false
  16085. },
  16086. "Project.Time": {
  16087. "type": "object",
  16088. "properties": {
  16089. "created": {
  16090. "type": "integer",
  16091. "allOf": [
  16092. {
  16093. "minimum": 0
  16094. }
  16095. ]
  16096. },
  16097. "updated": {
  16098. "type": "integer",
  16099. "allOf": [
  16100. {
  16101. "minimum": 0
  16102. }
  16103. ]
  16104. },
  16105. "initialized": {
  16106. "type": "integer",
  16107. "allOf": [
  16108. {
  16109. "minimum": 0
  16110. }
  16111. ]
  16112. }
  16113. },
  16114. "required": ["created", "updated"],
  16115. "additionalProperties": false
  16116. },
  16117. "Project": {
  16118. "type": "object",
  16119. "properties": {
  16120. "id": {
  16121. "type": "string"
  16122. },
  16123. "worktree": {
  16124. "type": "string"
  16125. },
  16126. "vcs": {
  16127. "$ref": "#/components/schemas/Project.Vcs"
  16128. },
  16129. "name": {
  16130. "type": "string"
  16131. },
  16132. "icon": {
  16133. "$ref": "#/components/schemas/Project.Icon"
  16134. },
  16135. "commands": {
  16136. "$ref": "#/components/schemas/Project.Commands"
  16137. },
  16138. "time": {
  16139. "$ref": "#/components/schemas/Project.Time"
  16140. },
  16141. "sandboxes": {
  16142. "type": "array",
  16143. "items": {
  16144. "type": "string"
  16145. }
  16146. }
  16147. },
  16148. "required": ["id", "worktree", "time", "sandboxes"],
  16149. "additionalProperties": false
  16150. },
  16151. "Project.Current": {
  16152. "type": "object",
  16153. "properties": {
  16154. "id": {
  16155. "type": "string"
  16156. },
  16157. "directory": {
  16158. "type": "string"
  16159. }
  16160. },
  16161. "required": ["id", "directory"],
  16162. "additionalProperties": false
  16163. },
  16164. "Project.Directory": {
  16165. "type": "object",
  16166. "properties": {
  16167. "directory": {
  16168. "type": "string"
  16169. },
  16170. "strategy": {
  16171. "type": "string"
  16172. }
  16173. },
  16174. "required": ["directory"],
  16175. "additionalProperties": false
  16176. },
  16177. "Project.Directories": {
  16178. "type": "array",
  16179. "items": {
  16180. "$ref": "#/components/schemas/Project.Directory"
  16181. }
  16182. },
  16183. "Form.Metadata": {
  16184. "type": "object"
  16185. },
  16186. "Form.When": {
  16187. "type": "object",
  16188. "properties": {
  16189. "key": {
  16190. "type": "string"
  16191. },
  16192. "op": {
  16193. "type": "string",
  16194. "enum": ["eq", "neq"]
  16195. },
  16196. "value": {
  16197. "anyOf": [
  16198. {
  16199. "type": "string"
  16200. },
  16201. {
  16202. "anyOf": [
  16203. {
  16204. "anyOf": [
  16205. {
  16206. "type": "number"
  16207. },
  16208. {
  16209. "type": "string",
  16210. "enum": ["NaN"]
  16211. },
  16212. {
  16213. "type": "string",
  16214. "enum": ["Infinity"]
  16215. },
  16216. {
  16217. "type": "string",
  16218. "enum": ["-Infinity"]
  16219. }
  16220. ]
  16221. },
  16222. {
  16223. "type": "string",
  16224. "enum": ["Infinity", "-Infinity", "NaN"]
  16225. }
  16226. ]
  16227. },
  16228. {
  16229. "type": "boolean"
  16230. }
  16231. ]
  16232. }
  16233. },
  16234. "required": ["key", "op", "value"],
  16235. "additionalProperties": false
  16236. },
  16237. "Form.Option": {
  16238. "type": "object",
  16239. "properties": {
  16240. "value": {
  16241. "type": "string"
  16242. },
  16243. "label": {
  16244. "type": "string"
  16245. },
  16246. "description": {
  16247. "type": "string"
  16248. }
  16249. },
  16250. "required": ["value", "label"],
  16251. "additionalProperties": false
  16252. },
  16253. "Form.StringField": {
  16254. "type": "object",
  16255. "properties": {
  16256. "key": {
  16257. "type": "string"
  16258. },
  16259. "title": {
  16260. "type": "string"
  16261. },
  16262. "description": {
  16263. "type": "string"
  16264. },
  16265. "required": {
  16266. "type": "boolean"
  16267. },
  16268. "when": {
  16269. "type": "array",
  16270. "items": {
  16271. "$ref": "#/components/schemas/Form.When"
  16272. }
  16273. },
  16274. "type": {
  16275. "type": "string",
  16276. "enum": ["string"]
  16277. },
  16278. "format": {
  16279. "type": "string",
  16280. "enum": ["email", "uri", "date", "date-time"]
  16281. },
  16282. "minLength": {
  16283. "type": "integer",
  16284. "allOf": [
  16285. {
  16286. "minimum": 0
  16287. }
  16288. ]
  16289. },
  16290. "maxLength": {
  16291. "type": "integer",
  16292. "allOf": [
  16293. {
  16294. "minimum": 0
  16295. }
  16296. ]
  16297. },
  16298. "pattern": {
  16299. "type": "string"
  16300. },
  16301. "placeholder": {
  16302. "type": "string"
  16303. },
  16304. "default": {
  16305. "type": "string"
  16306. },
  16307. "options": {
  16308. "type": "array",
  16309. "items": {
  16310. "$ref": "#/components/schemas/Form.Option"
  16311. }
  16312. },
  16313. "custom": {
  16314. "type": "boolean"
  16315. }
  16316. },
  16317. "required": ["key", "type"],
  16318. "additionalProperties": false
  16319. },
  16320. "Form.NumberField": {
  16321. "type": "object",
  16322. "properties": {
  16323. "key": {
  16324. "type": "string"
  16325. },
  16326. "title": {
  16327. "type": "string"
  16328. },
  16329. "description": {
  16330. "type": "string"
  16331. },
  16332. "required": {
  16333. "type": "boolean"
  16334. },
  16335. "when": {
  16336. "type": "array",
  16337. "items": {
  16338. "$ref": "#/components/schemas/Form.When"
  16339. }
  16340. },
  16341. "type": {
  16342. "type": "string",
  16343. "enum": ["number"]
  16344. },
  16345. "minimum": {
  16346. "anyOf": [
  16347. {
  16348. "anyOf": [
  16349. {
  16350. "type": "number"
  16351. },
  16352. {
  16353. "type": "string",
  16354. "enum": ["NaN"]
  16355. },
  16356. {
  16357. "type": "string",
  16358. "enum": ["Infinity"]
  16359. },
  16360. {
  16361. "type": "string",
  16362. "enum": ["-Infinity"]
  16363. }
  16364. ]
  16365. },
  16366. {
  16367. "type": "string",
  16368. "enum": ["Infinity", "-Infinity", "NaN"]
  16369. }
  16370. ]
  16371. },
  16372. "maximum": {
  16373. "anyOf": [
  16374. {
  16375. "anyOf": [
  16376. {
  16377. "type": "number"
  16378. },
  16379. {
  16380. "type": "string",
  16381. "enum": ["NaN"]
  16382. },
  16383. {
  16384. "type": "string",
  16385. "enum": ["Infinity"]
  16386. },
  16387. {
  16388. "type": "string",
  16389. "enum": ["-Infinity"]
  16390. }
  16391. ]
  16392. },
  16393. {
  16394. "type": "string",
  16395. "enum": ["Infinity", "-Infinity", "NaN"]
  16396. }
  16397. ]
  16398. },
  16399. "default": {
  16400. "anyOf": [
  16401. {
  16402. "anyOf": [
  16403. {
  16404. "type": "number"
  16405. },
  16406. {
  16407. "type": "string",
  16408. "enum": ["NaN"]
  16409. },
  16410. {
  16411. "type": "string",
  16412. "enum": ["Infinity"]
  16413. },
  16414. {
  16415. "type": "string",
  16416. "enum": ["-Infinity"]
  16417. }
  16418. ]
  16419. },
  16420. {
  16421. "type": "string",
  16422. "enum": ["Infinity", "-Infinity", "NaN"]
  16423. }
  16424. ]
  16425. }
  16426. },
  16427. "required": ["key", "type"],
  16428. "additionalProperties": false
  16429. },
  16430. "Form.IntegerField": {
  16431. "type": "object",
  16432. "properties": {
  16433. "key": {
  16434. "type": "string"
  16435. },
  16436. "title": {
  16437. "type": "string"
  16438. },
  16439. "description": {
  16440. "type": "string"
  16441. },
  16442. "required": {
  16443. "type": "boolean"
  16444. },
  16445. "when": {
  16446. "type": "array",
  16447. "items": {
  16448. "$ref": "#/components/schemas/Form.When"
  16449. }
  16450. },
  16451. "type": {
  16452. "type": "string",
  16453. "enum": ["integer"]
  16454. },
  16455. "minimum": {
  16456. "anyOf": [
  16457. {
  16458. "anyOf": [
  16459. {
  16460. "type": "number"
  16461. },
  16462. {
  16463. "type": "string",
  16464. "enum": ["NaN"]
  16465. },
  16466. {
  16467. "type": "string",
  16468. "enum": ["Infinity"]
  16469. },
  16470. {
  16471. "type": "string",
  16472. "enum": ["-Infinity"]
  16473. }
  16474. ]
  16475. },
  16476. {
  16477. "type": "string",
  16478. "enum": ["Infinity", "-Infinity", "NaN"]
  16479. }
  16480. ]
  16481. },
  16482. "maximum": {
  16483. "anyOf": [
  16484. {
  16485. "anyOf": [
  16486. {
  16487. "type": "number"
  16488. },
  16489. {
  16490. "type": "string",
  16491. "enum": ["NaN"]
  16492. },
  16493. {
  16494. "type": "string",
  16495. "enum": ["Infinity"]
  16496. },
  16497. {
  16498. "type": "string",
  16499. "enum": ["-Infinity"]
  16500. }
  16501. ]
  16502. },
  16503. {
  16504. "type": "string",
  16505. "enum": ["Infinity", "-Infinity", "NaN"]
  16506. }
  16507. ]
  16508. },
  16509. "default": {
  16510. "anyOf": [
  16511. {
  16512. "anyOf": [
  16513. {
  16514. "type": "number"
  16515. },
  16516. {
  16517. "type": "string",
  16518. "enum": ["NaN"]
  16519. },
  16520. {
  16521. "type": "string",
  16522. "enum": ["Infinity"]
  16523. },
  16524. {
  16525. "type": "string",
  16526. "enum": ["-Infinity"]
  16527. }
  16528. ]
  16529. },
  16530. {
  16531. "type": "string",
  16532. "enum": ["Infinity", "-Infinity", "NaN"]
  16533. }
  16534. ]
  16535. }
  16536. },
  16537. "required": ["key", "type"],
  16538. "additionalProperties": false
  16539. },
  16540. "Form.BooleanField": {
  16541. "type": "object",
  16542. "properties": {
  16543. "key": {
  16544. "type": "string"
  16545. },
  16546. "title": {
  16547. "type": "string"
  16548. },
  16549. "description": {
  16550. "type": "string"
  16551. },
  16552. "required": {
  16553. "type": "boolean"
  16554. },
  16555. "when": {
  16556. "type": "array",
  16557. "items": {
  16558. "$ref": "#/components/schemas/Form.When"
  16559. }
  16560. },
  16561. "type": {
  16562. "type": "string",
  16563. "enum": ["boolean"]
  16564. },
  16565. "default": {
  16566. "type": "boolean"
  16567. }
  16568. },
  16569. "required": ["key", "type"],
  16570. "additionalProperties": false
  16571. },
  16572. "Form.MultiselectField": {
  16573. "type": "object",
  16574. "properties": {
  16575. "key": {
  16576. "type": "string"
  16577. },
  16578. "title": {
  16579. "type": "string"
  16580. },
  16581. "description": {
  16582. "type": "string"
  16583. },
  16584. "required": {
  16585. "type": "boolean"
  16586. },
  16587. "when": {
  16588. "type": "array",
  16589. "items": {
  16590. "$ref": "#/components/schemas/Form.When"
  16591. }
  16592. },
  16593. "type": {
  16594. "type": "string",
  16595. "enum": ["multiselect"]
  16596. },
  16597. "options": {
  16598. "type": "array",
  16599. "items": {
  16600. "$ref": "#/components/schemas/Form.Option"
  16601. }
  16602. },
  16603. "minItems": {
  16604. "type": "integer",
  16605. "allOf": [
  16606. {
  16607. "minimum": 0
  16608. }
  16609. ]
  16610. },
  16611. "maxItems": {
  16612. "type": "integer",
  16613. "allOf": [
  16614. {
  16615. "minimum": 0
  16616. }
  16617. ]
  16618. },
  16619. "custom": {
  16620. "type": "boolean"
  16621. },
  16622. "default": {
  16623. "type": "array",
  16624. "items": {
  16625. "type": "string"
  16626. }
  16627. }
  16628. },
  16629. "required": ["key", "type", "options"],
  16630. "additionalProperties": false
  16631. },
  16632. "Form.FormInfo": {
  16633. "type": "object",
  16634. "properties": {
  16635. "id": {
  16636. "type": "string",
  16637. "allOf": [
  16638. {
  16639. "pattern": "^frm_"
  16640. }
  16641. ]
  16642. },
  16643. "sessionID": {
  16644. "type": "string"
  16645. },
  16646. "title": {
  16647. "type": "string"
  16648. },
  16649. "metadata": {
  16650. "$ref": "#/components/schemas/Form.Metadata"
  16651. },
  16652. "mode": {
  16653. "type": "string",
  16654. "enum": ["form"]
  16655. },
  16656. "fields": {
  16657. "type": "array",
  16658. "items": {
  16659. "anyOf": [
  16660. {
  16661. "$ref": "#/components/schemas/Form.StringField"
  16662. },
  16663. {
  16664. "$ref": "#/components/schemas/Form.NumberField"
  16665. },
  16666. {
  16667. "$ref": "#/components/schemas/Form.IntegerField"
  16668. },
  16669. {
  16670. "$ref": "#/components/schemas/Form.BooleanField"
  16671. },
  16672. {
  16673. "$ref": "#/components/schemas/Form.MultiselectField"
  16674. }
  16675. ]
  16676. }
  16677. }
  16678. },
  16679. "required": ["id", "sessionID", "title", "mode", "fields"],
  16680. "additionalProperties": false
  16681. },
  16682. "Form.UrlInfo": {
  16683. "type": "object",
  16684. "properties": {
  16685. "id": {
  16686. "type": "string",
  16687. "allOf": [
  16688. {
  16689. "pattern": "^frm_"
  16690. }
  16691. ]
  16692. },
  16693. "sessionID": {
  16694. "type": "string"
  16695. },
  16696. "title": {
  16697. "type": "string"
  16698. },
  16699. "metadata": {
  16700. "$ref": "#/components/schemas/Form.Metadata"
  16701. },
  16702. "mode": {
  16703. "type": "string",
  16704. "enum": ["url"]
  16705. },
  16706. "url": {
  16707. "type": "string"
  16708. }
  16709. },
  16710. "required": ["id", "sessionID", "title", "mode", "url"],
  16711. "additionalProperties": false
  16712. },
  16713. "Form.CreatePayload": {
  16714. "type": "object",
  16715. "properties": {
  16716. "id": {
  16717. "anyOf": [
  16718. {
  16719. "type": "string",
  16720. "allOf": [
  16721. {
  16722. "pattern": "^frm_"
  16723. }
  16724. ]
  16725. },
  16726. {
  16727. "type": "null"
  16728. }
  16729. ]
  16730. },
  16731. "title": {
  16732. "type": "string"
  16733. },
  16734. "metadata": {
  16735. "$ref": "#/components/schemas/Form.Metadata"
  16736. },
  16737. "mode": {
  16738. "type": "string",
  16739. "enum": ["form", "url"]
  16740. },
  16741. "fields": {
  16742. "anyOf": [
  16743. {
  16744. "type": "array",
  16745. "items": {
  16746. "anyOf": [
  16747. {
  16748. "$ref": "#/components/schemas/Form.StringField"
  16749. },
  16750. {
  16751. "$ref": "#/components/schemas/Form.NumberField"
  16752. },
  16753. {
  16754. "$ref": "#/components/schemas/Form.IntegerField"
  16755. },
  16756. {
  16757. "$ref": "#/components/schemas/Form.BooleanField"
  16758. },
  16759. {
  16760. "$ref": "#/components/schemas/Form.MultiselectField"
  16761. }
  16762. ]
  16763. }
  16764. },
  16765. {
  16766. "type": "null"
  16767. }
  16768. ]
  16769. },
  16770. "url": {
  16771. "anyOf": [
  16772. {
  16773. "type": "string"
  16774. },
  16775. {
  16776. "type": "null"
  16777. }
  16778. ]
  16779. }
  16780. },
  16781. "required": ["title", "mode"],
  16782. "additionalProperties": false
  16783. },
  16784. "FormNotFoundError": {
  16785. "type": "object",
  16786. "properties": {
  16787. "_tag": {
  16788. "type": "string",
  16789. "enum": ["FormNotFoundError"]
  16790. },
  16791. "id": {
  16792. "type": "string"
  16793. },
  16794. "message": {
  16795. "type": "string"
  16796. }
  16797. },
  16798. "required": ["_tag", "id", "message"],
  16799. "additionalProperties": false
  16800. },
  16801. "Form.Value": {
  16802. "anyOf": [
  16803. {
  16804. "type": "string"
  16805. },
  16806. {
  16807. "anyOf": [
  16808. {
  16809. "anyOf": [
  16810. {
  16811. "type": "number"
  16812. },
  16813. {
  16814. "type": "string",
  16815. "enum": ["NaN"]
  16816. },
  16817. {
  16818. "type": "string",
  16819. "enum": ["Infinity"]
  16820. },
  16821. {
  16822. "type": "string",
  16823. "enum": ["-Infinity"]
  16824. }
  16825. ]
  16826. },
  16827. {
  16828. "type": "string",
  16829. "enum": ["Infinity", "-Infinity", "NaN"]
  16830. }
  16831. ]
  16832. },
  16833. {
  16834. "type": "boolean"
  16835. },
  16836. {
  16837. "type": "array",
  16838. "items": {
  16839. "type": "string"
  16840. }
  16841. }
  16842. ]
  16843. },
  16844. "Form.Answer": {
  16845. "type": "object",
  16846. "additionalProperties": {
  16847. "$ref": "#/components/schemas/Form.Value"
  16848. }
  16849. },
  16850. "Form.State": {
  16851. "anyOf": [
  16852. {
  16853. "type": "object",
  16854. "properties": {
  16855. "status": {
  16856. "type": "string",
  16857. "enum": ["pending"]
  16858. }
  16859. },
  16860. "required": ["status"],
  16861. "additionalProperties": false
  16862. },
  16863. {
  16864. "type": "object",
  16865. "properties": {
  16866. "status": {
  16867. "type": "string",
  16868. "enum": ["answered"]
  16869. },
  16870. "answer": {
  16871. "$ref": "#/components/schemas/Form.Answer"
  16872. }
  16873. },
  16874. "required": ["status", "answer"],
  16875. "additionalProperties": false
  16876. },
  16877. {
  16878. "type": "object",
  16879. "properties": {
  16880. "status": {
  16881. "type": "string",
  16882. "enum": ["cancelled"]
  16883. }
  16884. },
  16885. "required": ["status"],
  16886. "additionalProperties": false
  16887. }
  16888. ]
  16889. },
  16890. "Form.Reply": {
  16891. "type": "object",
  16892. "properties": {
  16893. "answer": {
  16894. "$ref": "#/components/schemas/Form.Answer"
  16895. }
  16896. },
  16897. "required": ["answer"],
  16898. "additionalProperties": false
  16899. },
  16900. "FormAlreadySettledError": {
  16901. "type": "object",
  16902. "properties": {
  16903. "_tag": {
  16904. "type": "string",
  16905. "enum": ["FormAlreadySettledError"]
  16906. },
  16907. "id": {
  16908. "type": "string"
  16909. },
  16910. "message": {
  16911. "type": "string"
  16912. }
  16913. },
  16914. "required": ["_tag", "id", "message"],
  16915. "additionalProperties": false
  16916. },
  16917. "FormInvalidAnswerError": {
  16918. "type": "object",
  16919. "properties": {
  16920. "_tag": {
  16921. "type": "string",
  16922. "enum": ["FormInvalidAnswerError"]
  16923. },
  16924. "id": {
  16925. "type": "string"
  16926. },
  16927. "message": {
  16928. "type": "string"
  16929. }
  16930. },
  16931. "required": ["_tag", "id", "message"],
  16932. "additionalProperties": false
  16933. },
  16934. "PermissionV2.Source": {
  16935. "anyOf": [
  16936. {
  16937. "type": "object",
  16938. "properties": {
  16939. "type": {
  16940. "type": "string",
  16941. "enum": ["tool"]
  16942. },
  16943. "messageID": {
  16944. "type": "string"
  16945. },
  16946. "callID": {
  16947. "type": "string"
  16948. }
  16949. },
  16950. "required": ["type", "messageID", "callID"],
  16951. "additionalProperties": false
  16952. }
  16953. ]
  16954. },
  16955. "PermissionV2.Request": {
  16956. "type": "object",
  16957. "properties": {
  16958. "id": {
  16959. "type": "string",
  16960. "allOf": [
  16961. {
  16962. "pattern": "^per"
  16963. }
  16964. ]
  16965. },
  16966. "sessionID": {
  16967. "type": "string",
  16968. "allOf": [
  16969. {
  16970. "pattern": "^ses"
  16971. }
  16972. ]
  16973. },
  16974. "action": {
  16975. "type": "string"
  16976. },
  16977. "resources": {
  16978. "type": "array",
  16979. "items": {
  16980. "type": "string"
  16981. }
  16982. },
  16983. "save": {
  16984. "type": "array",
  16985. "items": {
  16986. "type": "string"
  16987. }
  16988. },
  16989. "metadata": {
  16990. "type": "object"
  16991. },
  16992. "source": {
  16993. "$ref": "#/components/schemas/PermissionV2.Source"
  16994. }
  16995. },
  16996. "required": ["id", "sessionID", "action", "resources"],
  16997. "additionalProperties": false
  16998. },
  16999. "PermissionSaved.Info": {
  17000. "type": "object",
  17001. "properties": {
  17002. "id": {
  17003. "type": "string"
  17004. },
  17005. "projectID": {
  17006. "type": "string"
  17007. },
  17008. "action": {
  17009. "type": "string"
  17010. },
  17011. "resource": {
  17012. "type": "string"
  17013. }
  17014. },
  17015. "required": ["id", "projectID", "action", "resource"],
  17016. "additionalProperties": false
  17017. },
  17018. "PermissionNotFoundError": {
  17019. "type": "object",
  17020. "properties": {
  17021. "_tag": {
  17022. "type": "string",
  17023. "enum": ["PermissionNotFoundError"]
  17024. },
  17025. "requestID": {
  17026. "type": "string"
  17027. },
  17028. "message": {
  17029. "type": "string"
  17030. }
  17031. },
  17032. "required": ["_tag", "requestID", "message"],
  17033. "additionalProperties": false
  17034. },
  17035. "PermissionV2.Reply": {
  17036. "type": "string",
  17037. "enum": ["once", "always", "reject"]
  17038. },
  17039. "FileSystem.Entry": {
  17040. "type": "object",
  17041. "properties": {
  17042. "path": {
  17043. "type": "string"
  17044. },
  17045. "type": {
  17046. "type": "string",
  17047. "enum": ["file", "directory"]
  17048. }
  17049. },
  17050. "required": ["path", "type"],
  17051. "additionalProperties": false
  17052. },
  17053. "Command.Info": {
  17054. "type": "object",
  17055. "properties": {
  17056. "name": {
  17057. "type": "string"
  17058. },
  17059. "template": {
  17060. "type": "string"
  17061. },
  17062. "description": {
  17063. "type": "string"
  17064. },
  17065. "agent": {
  17066. "type": "string"
  17067. },
  17068. "model": {
  17069. "$ref": "#/components/schemas/Model.Ref"
  17070. },
  17071. "subtask": {
  17072. "type": "boolean"
  17073. }
  17074. },
  17075. "required": ["name", "template"],
  17076. "additionalProperties": false
  17077. },
  17078. "Skill.Info": {
  17079. "type": "object",
  17080. "properties": {
  17081. "id": {
  17082. "type": "string"
  17083. },
  17084. "name": {
  17085. "type": "string"
  17086. },
  17087. "description": {
  17088. "type": "string"
  17089. },
  17090. "slash": {
  17091. "type": "boolean"
  17092. },
  17093. "autoinvoke": {
  17094. "type": "boolean"
  17095. },
  17096. "location": {
  17097. "type": "string"
  17098. },
  17099. "content": {
  17100. "type": "string"
  17101. }
  17102. },
  17103. "required": ["id", "name", "location", "content"],
  17104. "additionalProperties": false
  17105. },
  17106. "models-dev.refreshed": {
  17107. "type": "object",
  17108. "properties": {
  17109. "id": {
  17110. "type": "string",
  17111. "allOf": [
  17112. {
  17113. "pattern": "^evt_"
  17114. }
  17115. ]
  17116. },
  17117. "created": {
  17118. "type": "number"
  17119. },
  17120. "metadata": {
  17121. "type": "object"
  17122. },
  17123. "type": {
  17124. "type": "string",
  17125. "enum": ["models-dev.refreshed"]
  17126. },
  17127. "location": {
  17128. "$ref": "#/components/schemas/Location.Ref"
  17129. },
  17130. "data": {
  17131. "anyOf": [
  17132. {
  17133. "type": "object"
  17134. },
  17135. {
  17136. "type": "array"
  17137. }
  17138. ]
  17139. }
  17140. },
  17141. "required": ["id", "created", "type", "data"],
  17142. "additionalProperties": false
  17143. },
  17144. "integration.updated": {
  17145. "type": "object",
  17146. "properties": {
  17147. "id": {
  17148. "type": "string",
  17149. "allOf": [
  17150. {
  17151. "pattern": "^evt_"
  17152. }
  17153. ]
  17154. },
  17155. "created": {
  17156. "type": "number"
  17157. },
  17158. "metadata": {
  17159. "type": "object"
  17160. },
  17161. "type": {
  17162. "type": "string",
  17163. "enum": ["integration.updated"]
  17164. },
  17165. "location": {
  17166. "$ref": "#/components/schemas/Location.Ref"
  17167. },
  17168. "data": {
  17169. "anyOf": [
  17170. {
  17171. "type": "object"
  17172. },
  17173. {
  17174. "type": "array"
  17175. }
  17176. ]
  17177. }
  17178. },
  17179. "required": ["id", "created", "type", "data"],
  17180. "additionalProperties": false
  17181. },
  17182. "integration.connection.updated": {
  17183. "type": "object",
  17184. "properties": {
  17185. "id": {
  17186. "type": "string",
  17187. "allOf": [
  17188. {
  17189. "pattern": "^evt_"
  17190. }
  17191. ]
  17192. },
  17193. "created": {
  17194. "type": "number"
  17195. },
  17196. "metadata": {
  17197. "type": "object"
  17198. },
  17199. "type": {
  17200. "type": "string",
  17201. "enum": ["integration.connection.updated"]
  17202. },
  17203. "location": {
  17204. "$ref": "#/components/schemas/Location.Ref"
  17205. },
  17206. "data": {
  17207. "type": "object",
  17208. "properties": {
  17209. "integrationID": {
  17210. "type": "string"
  17211. }
  17212. },
  17213. "required": ["integrationID"],
  17214. "additionalProperties": false
  17215. }
  17216. },
  17217. "required": ["id", "created", "type", "data"],
  17218. "additionalProperties": false
  17219. },
  17220. "catalog.updated": {
  17221. "type": "object",
  17222. "properties": {
  17223. "id": {
  17224. "type": "string",
  17225. "allOf": [
  17226. {
  17227. "pattern": "^evt_"
  17228. }
  17229. ]
  17230. },
  17231. "created": {
  17232. "type": "number"
  17233. },
  17234. "metadata": {
  17235. "type": "object"
  17236. },
  17237. "type": {
  17238. "type": "string",
  17239. "enum": ["catalog.updated"]
  17240. },
  17241. "location": {
  17242. "$ref": "#/components/schemas/Location.Ref"
  17243. },
  17244. "data": {
  17245. "anyOf": [
  17246. {
  17247. "type": "object"
  17248. },
  17249. {
  17250. "type": "array"
  17251. }
  17252. ]
  17253. }
  17254. },
  17255. "required": ["id", "created", "type", "data"],
  17256. "additionalProperties": false
  17257. },
  17258. "agent.updated": {
  17259. "type": "object",
  17260. "properties": {
  17261. "id": {
  17262. "type": "string",
  17263. "allOf": [
  17264. {
  17265. "pattern": "^evt_"
  17266. }
  17267. ]
  17268. },
  17269. "created": {
  17270. "type": "number"
  17271. },
  17272. "metadata": {
  17273. "type": "object"
  17274. },
  17275. "type": {
  17276. "type": "string",
  17277. "enum": ["agent.updated"]
  17278. },
  17279. "location": {
  17280. "$ref": "#/components/schemas/Location.Ref"
  17281. },
  17282. "data": {
  17283. "anyOf": [
  17284. {
  17285. "type": "object"
  17286. },
  17287. {
  17288. "type": "array"
  17289. }
  17290. ]
  17291. }
  17292. },
  17293. "required": ["id", "created", "type", "data"],
  17294. "additionalProperties": false
  17295. },
  17296. "FileDiff.LegacyInfo": {
  17297. "type": "object",
  17298. "properties": {
  17299. "file": {
  17300. "type": "string"
  17301. },
  17302. "patch": {
  17303. "type": "string"
  17304. },
  17305. "additions": {
  17306. "type": "number"
  17307. },
  17308. "deletions": {
  17309. "type": "number"
  17310. },
  17311. "status": {
  17312. "type": "string",
  17313. "enum": ["added", "deleted", "modified"]
  17314. }
  17315. },
  17316. "required": ["additions", "deletions"],
  17317. "additionalProperties": false
  17318. },
  17319. "PermissionAction": {
  17320. "type": "string",
  17321. "enum": ["allow", "deny", "ask"]
  17322. },
  17323. "PermissionRule": {
  17324. "type": "object",
  17325. "properties": {
  17326. "permission": {
  17327. "type": "string"
  17328. },
  17329. "pattern": {
  17330. "type": "string"
  17331. },
  17332. "action": {
  17333. "$ref": "#/components/schemas/PermissionAction"
  17334. }
  17335. },
  17336. "required": ["permission", "pattern", "action"],
  17337. "additionalProperties": false
  17338. },
  17339. "PermissionRuleset": {
  17340. "type": "array",
  17341. "items": {
  17342. "$ref": "#/components/schemas/PermissionRule"
  17343. }
  17344. },
  17345. "SessionV1.Info": {
  17346. "type": "object",
  17347. "properties": {
  17348. "id": {
  17349. "type": "string",
  17350. "allOf": [
  17351. {
  17352. "pattern": "^ses"
  17353. }
  17354. ]
  17355. },
  17356. "slug": {
  17357. "type": "string"
  17358. },
  17359. "projectID": {
  17360. "type": "string"
  17361. },
  17362. "workspaceID": {
  17363. "type": "string",
  17364. "allOf": [
  17365. {
  17366. "pattern": "^wrk"
  17367. }
  17368. ]
  17369. },
  17370. "directory": {
  17371. "type": "string"
  17372. },
  17373. "path": {
  17374. "type": "string"
  17375. },
  17376. "parentID": {
  17377. "type": "string",
  17378. "allOf": [
  17379. {
  17380. "pattern": "^ses"
  17381. }
  17382. ]
  17383. },
  17384. "summary": {
  17385. "type": "object",
  17386. "properties": {
  17387. "additions": {
  17388. "type": "number"
  17389. },
  17390. "deletions": {
  17391. "type": "number"
  17392. },
  17393. "files": {
  17394. "type": "number"
  17395. },
  17396. "diffs": {
  17397. "type": "array",
  17398. "items": {
  17399. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  17400. }
  17401. }
  17402. },
  17403. "required": ["additions", "deletions", "files"],
  17404. "additionalProperties": false
  17405. },
  17406. "cost": {
  17407. "type": "number"
  17408. },
  17409. "tokens": {
  17410. "type": "object",
  17411. "properties": {
  17412. "input": {
  17413. "type": "number"
  17414. },
  17415. "output": {
  17416. "type": "number"
  17417. },
  17418. "reasoning": {
  17419. "type": "number"
  17420. },
  17421. "cache": {
  17422. "type": "object",
  17423. "properties": {
  17424. "read": {
  17425. "type": "number"
  17426. },
  17427. "write": {
  17428. "type": "number"
  17429. }
  17430. },
  17431. "required": ["read", "write"],
  17432. "additionalProperties": false
  17433. }
  17434. },
  17435. "required": ["input", "output", "reasoning", "cache"],
  17436. "additionalProperties": false
  17437. },
  17438. "share": {
  17439. "type": "object",
  17440. "properties": {
  17441. "url": {
  17442. "type": "string"
  17443. }
  17444. },
  17445. "required": ["url"],
  17446. "additionalProperties": false
  17447. },
  17448. "title": {
  17449. "type": "string"
  17450. },
  17451. "agent": {
  17452. "type": "string"
  17453. },
  17454. "model": {
  17455. "type": "object",
  17456. "properties": {
  17457. "id": {
  17458. "type": "string"
  17459. },
  17460. "providerID": {
  17461. "type": "string"
  17462. },
  17463. "variant": {
  17464. "type": "string"
  17465. }
  17466. },
  17467. "required": ["id", "providerID"],
  17468. "additionalProperties": false
  17469. },
  17470. "version": {
  17471. "type": "string"
  17472. },
  17473. "metadata": {
  17474. "type": "object"
  17475. },
  17476. "time": {
  17477. "type": "object",
  17478. "properties": {
  17479. "created": {
  17480. "type": "integer",
  17481. "allOf": [
  17482. {
  17483. "minimum": 0
  17484. }
  17485. ]
  17486. },
  17487. "updated": {
  17488. "type": "integer",
  17489. "allOf": [
  17490. {
  17491. "minimum": 0
  17492. }
  17493. ]
  17494. },
  17495. "compacting": {
  17496. "type": "integer",
  17497. "allOf": [
  17498. {
  17499. "minimum": 0
  17500. }
  17501. ]
  17502. },
  17503. "archived": {
  17504. "type": "number"
  17505. }
  17506. },
  17507. "required": ["created", "updated"],
  17508. "additionalProperties": false
  17509. },
  17510. "permission": {
  17511. "$ref": "#/components/schemas/PermissionRuleset"
  17512. },
  17513. "revert": {
  17514. "type": "object",
  17515. "properties": {
  17516. "messageID": {
  17517. "type": "string",
  17518. "allOf": [
  17519. {
  17520. "pattern": "^msg"
  17521. }
  17522. ]
  17523. },
  17524. "partID": {
  17525. "type": "string",
  17526. "allOf": [
  17527. {
  17528. "pattern": "^prt"
  17529. }
  17530. ]
  17531. },
  17532. "snapshot": {
  17533. "type": "string"
  17534. },
  17535. "diff": {
  17536. "type": "string"
  17537. }
  17538. },
  17539. "required": ["messageID"],
  17540. "additionalProperties": false
  17541. }
  17542. },
  17543. "required": ["id", "slug", "projectID", "directory", "title", "version", "time"],
  17544. "additionalProperties": false
  17545. },
  17546. "session.created": {
  17547. "type": "object",
  17548. "properties": {
  17549. "id": {
  17550. "type": "string",
  17551. "allOf": [
  17552. {
  17553. "pattern": "^evt_"
  17554. }
  17555. ]
  17556. },
  17557. "created": {
  17558. "type": "number"
  17559. },
  17560. "metadata": {
  17561. "type": "object"
  17562. },
  17563. "type": {
  17564. "type": "string",
  17565. "enum": ["session.created"]
  17566. },
  17567. "durable": {
  17568. "type": "object",
  17569. "properties": {
  17570. "aggregateID": {
  17571. "type": "string"
  17572. },
  17573. "seq": {
  17574. "type": "integer",
  17575. "allOf": [
  17576. {
  17577. "minimum": 0
  17578. }
  17579. ]
  17580. },
  17581. "version": {
  17582. "type": "number",
  17583. "enum": [1]
  17584. }
  17585. },
  17586. "required": ["aggregateID", "seq", "version"],
  17587. "additionalProperties": false
  17588. },
  17589. "location": {
  17590. "$ref": "#/components/schemas/Location.Ref"
  17591. },
  17592. "data": {
  17593. "type": "object",
  17594. "properties": {
  17595. "sessionID": {
  17596. "type": "string",
  17597. "allOf": [
  17598. {
  17599. "pattern": "^ses"
  17600. }
  17601. ]
  17602. },
  17603. "info": {
  17604. "$ref": "#/components/schemas/SessionV1.Info"
  17605. }
  17606. },
  17607. "required": ["sessionID", "info"],
  17608. "additionalProperties": false
  17609. }
  17610. },
  17611. "required": ["id", "created", "type", "durable", "data"],
  17612. "additionalProperties": false
  17613. },
  17614. "session.updated": {
  17615. "type": "object",
  17616. "properties": {
  17617. "id": {
  17618. "type": "string",
  17619. "allOf": [
  17620. {
  17621. "pattern": "^evt_"
  17622. }
  17623. ]
  17624. },
  17625. "created": {
  17626. "type": "number"
  17627. },
  17628. "metadata": {
  17629. "type": "object"
  17630. },
  17631. "type": {
  17632. "type": "string",
  17633. "enum": ["session.updated"]
  17634. },
  17635. "durable": {
  17636. "type": "object",
  17637. "properties": {
  17638. "aggregateID": {
  17639. "type": "string"
  17640. },
  17641. "seq": {
  17642. "type": "integer",
  17643. "allOf": [
  17644. {
  17645. "minimum": 0
  17646. }
  17647. ]
  17648. },
  17649. "version": {
  17650. "type": "number",
  17651. "enum": [1]
  17652. }
  17653. },
  17654. "required": ["aggregateID", "seq", "version"],
  17655. "additionalProperties": false
  17656. },
  17657. "location": {
  17658. "$ref": "#/components/schemas/Location.Ref"
  17659. },
  17660. "data": {
  17661. "type": "object",
  17662. "properties": {
  17663. "sessionID": {
  17664. "type": "string",
  17665. "allOf": [
  17666. {
  17667. "pattern": "^ses"
  17668. }
  17669. ]
  17670. },
  17671. "info": {
  17672. "$ref": "#/components/schemas/SessionV1.Info"
  17673. }
  17674. },
  17675. "required": ["sessionID", "info"],
  17676. "additionalProperties": false
  17677. }
  17678. },
  17679. "required": ["id", "created", "type", "durable", "data"],
  17680. "additionalProperties": false
  17681. },
  17682. "session.deleted1": {
  17683. "type": "object",
  17684. "properties": {
  17685. "id": {
  17686. "type": "string",
  17687. "allOf": [
  17688. {
  17689. "pattern": "^evt_"
  17690. }
  17691. ]
  17692. },
  17693. "created": {
  17694. "type": "number"
  17695. },
  17696. "metadata": {
  17697. "type": "object"
  17698. },
  17699. "type": {
  17700. "type": "string",
  17701. "enum": ["session.deleted"]
  17702. },
  17703. "durable": {
  17704. "type": "object",
  17705. "properties": {
  17706. "aggregateID": {
  17707. "type": "string"
  17708. },
  17709. "seq": {
  17710. "type": "integer",
  17711. "allOf": [
  17712. {
  17713. "minimum": 0
  17714. }
  17715. ]
  17716. },
  17717. "version": {
  17718. "type": "number",
  17719. "enum": [1]
  17720. }
  17721. },
  17722. "required": ["aggregateID", "seq", "version"],
  17723. "additionalProperties": false
  17724. },
  17725. "location": {
  17726. "$ref": "#/components/schemas/Location.Ref"
  17727. },
  17728. "data": {
  17729. "type": "object",
  17730. "properties": {
  17731. "sessionID": {
  17732. "type": "string",
  17733. "allOf": [
  17734. {
  17735. "pattern": "^ses"
  17736. }
  17737. ]
  17738. },
  17739. "info": {
  17740. "$ref": "#/components/schemas/SessionV1.Info"
  17741. }
  17742. },
  17743. "required": ["sessionID", "info"],
  17744. "additionalProperties": false
  17745. }
  17746. },
  17747. "required": ["id", "created", "type", "durable", "data"],
  17748. "additionalProperties": false
  17749. },
  17750. "JSONSchema": {
  17751. "type": "object"
  17752. },
  17753. "OutputFormat": {
  17754. "anyOf": [
  17755. {
  17756. "type": "object",
  17757. "properties": {
  17758. "type": {
  17759. "type": "string",
  17760. "enum": ["text"]
  17761. }
  17762. },
  17763. "required": ["type"],
  17764. "additionalProperties": false
  17765. },
  17766. {
  17767. "type": "object",
  17768. "properties": {
  17769. "type": {
  17770. "type": "string",
  17771. "enum": ["json_schema"]
  17772. },
  17773. "schema": {
  17774. "$ref": "#/components/schemas/JSONSchema"
  17775. },
  17776. "retryCount": {
  17777. "anyOf": [
  17778. {
  17779. "anyOf": [
  17780. {
  17781. "type": "integer",
  17782. "allOf": [
  17783. {
  17784. "minimum": 0
  17785. }
  17786. ]
  17787. },
  17788. {
  17789. "type": "null"
  17790. }
  17791. ]
  17792. },
  17793. {
  17794. "type": "null"
  17795. }
  17796. ]
  17797. }
  17798. },
  17799. "required": ["type", "schema"],
  17800. "additionalProperties": false
  17801. }
  17802. ]
  17803. },
  17804. "UserMessage": {
  17805. "type": "object",
  17806. "properties": {
  17807. "id": {
  17808. "type": "string",
  17809. "allOf": [
  17810. {
  17811. "pattern": "^msg"
  17812. }
  17813. ]
  17814. },
  17815. "sessionID": {
  17816. "type": "string",
  17817. "allOf": [
  17818. {
  17819. "pattern": "^ses"
  17820. }
  17821. ]
  17822. },
  17823. "role": {
  17824. "type": "string",
  17825. "enum": ["user"]
  17826. },
  17827. "time": {
  17828. "type": "object",
  17829. "properties": {
  17830. "created": {
  17831. "type": "number",
  17832. "allOf": [
  17833. {
  17834. "minimum": 0
  17835. }
  17836. ]
  17837. }
  17838. },
  17839. "required": ["created"],
  17840. "additionalProperties": false
  17841. },
  17842. "format": {
  17843. "anyOf": [
  17844. {
  17845. "$ref": "#/components/schemas/OutputFormat"
  17846. },
  17847. {
  17848. "type": "null"
  17849. }
  17850. ]
  17851. },
  17852. "summary": {
  17853. "anyOf": [
  17854. {
  17855. "type": "object",
  17856. "properties": {
  17857. "title": {
  17858. "anyOf": [
  17859. {
  17860. "type": "string"
  17861. },
  17862. {
  17863. "type": "null"
  17864. }
  17865. ]
  17866. },
  17867. "body": {
  17868. "anyOf": [
  17869. {
  17870. "type": "string"
  17871. },
  17872. {
  17873. "type": "null"
  17874. }
  17875. ]
  17876. },
  17877. "diffs": {
  17878. "type": "array",
  17879. "items": {
  17880. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  17881. }
  17882. }
  17883. },
  17884. "required": ["diffs"],
  17885. "additionalProperties": false
  17886. },
  17887. {
  17888. "type": "null"
  17889. }
  17890. ]
  17891. },
  17892. "agent": {
  17893. "type": "string"
  17894. },
  17895. "model": {
  17896. "type": "object",
  17897. "properties": {
  17898. "providerID": {
  17899. "type": "string"
  17900. },
  17901. "modelID": {
  17902. "type": "string"
  17903. },
  17904. "variant": {
  17905. "anyOf": [
  17906. {
  17907. "type": "string"
  17908. },
  17909. {
  17910. "type": "null"
  17911. }
  17912. ]
  17913. }
  17914. },
  17915. "required": ["providerID", "modelID"],
  17916. "additionalProperties": false
  17917. },
  17918. "system": {
  17919. "anyOf": [
  17920. {
  17921. "type": "string"
  17922. },
  17923. {
  17924. "type": "null"
  17925. }
  17926. ]
  17927. },
  17928. "tools": {
  17929. "anyOf": [
  17930. {
  17931. "type": "object",
  17932. "additionalProperties": {
  17933. "type": "boolean"
  17934. }
  17935. },
  17936. {
  17937. "type": "null"
  17938. }
  17939. ]
  17940. }
  17941. },
  17942. "required": ["id", "sessionID", "role", "time", "agent", "model"],
  17943. "additionalProperties": false
  17944. },
  17945. "ProviderAuthError": {
  17946. "type": "object",
  17947. "properties": {
  17948. "name": {
  17949. "type": "string",
  17950. "enum": ["ProviderAuthError"]
  17951. },
  17952. "data": {
  17953. "type": "object",
  17954. "properties": {
  17955. "providerID": {
  17956. "type": "string"
  17957. },
  17958. "message": {
  17959. "type": "string"
  17960. }
  17961. },
  17962. "required": ["providerID", "message"],
  17963. "additionalProperties": false
  17964. }
  17965. },
  17966. "required": ["name", "data"],
  17967. "additionalProperties": false
  17968. },
  17969. "UnknownError1": {
  17970. "type": "object",
  17971. "properties": {
  17972. "name": {
  17973. "type": "string",
  17974. "enum": ["UnknownError"]
  17975. },
  17976. "data": {
  17977. "type": "object",
  17978. "properties": {
  17979. "message": {
  17980. "type": "string"
  17981. },
  17982. "ref": {
  17983. "anyOf": [
  17984. {
  17985. "type": "string"
  17986. },
  17987. {
  17988. "type": "null"
  17989. }
  17990. ]
  17991. }
  17992. },
  17993. "required": ["message"],
  17994. "additionalProperties": false
  17995. }
  17996. },
  17997. "required": ["name", "data"],
  17998. "additionalProperties": false
  17999. },
  18000. "MessageOutputLengthError": {
  18001. "type": "object",
  18002. "properties": {
  18003. "name": {
  18004. "type": "string",
  18005. "enum": ["MessageOutputLengthError"]
  18006. },
  18007. "data": {
  18008. "anyOf": [
  18009. {
  18010. "type": "object"
  18011. },
  18012. {
  18013. "type": "array"
  18014. }
  18015. ]
  18016. }
  18017. },
  18018. "required": ["name", "data"],
  18019. "additionalProperties": false
  18020. },
  18021. "MessageAbortedError": {
  18022. "type": "object",
  18023. "properties": {
  18024. "name": {
  18025. "type": "string",
  18026. "enum": ["MessageAbortedError"]
  18027. },
  18028. "data": {
  18029. "type": "object",
  18030. "properties": {
  18031. "message": {
  18032. "type": "string"
  18033. }
  18034. },
  18035. "required": ["message"],
  18036. "additionalProperties": false
  18037. }
  18038. },
  18039. "required": ["name", "data"],
  18040. "additionalProperties": false
  18041. },
  18042. "StructuredOutputError": {
  18043. "type": "object",
  18044. "properties": {
  18045. "name": {
  18046. "type": "string",
  18047. "enum": ["StructuredOutputError"]
  18048. },
  18049. "data": {
  18050. "type": "object",
  18051. "properties": {
  18052. "message": {
  18053. "type": "string"
  18054. },
  18055. "retries": {
  18056. "type": "integer",
  18057. "allOf": [
  18058. {
  18059. "minimum": 0
  18060. }
  18061. ]
  18062. }
  18063. },
  18064. "required": ["message", "retries"],
  18065. "additionalProperties": false
  18066. }
  18067. },
  18068. "required": ["name", "data"],
  18069. "additionalProperties": false
  18070. },
  18071. "ContextOverflowError": {
  18072. "type": "object",
  18073. "properties": {
  18074. "name": {
  18075. "type": "string",
  18076. "enum": ["ContextOverflowError"]
  18077. },
  18078. "data": {
  18079. "type": "object",
  18080. "properties": {
  18081. "message": {
  18082. "type": "string"
  18083. },
  18084. "responseBody": {
  18085. "anyOf": [
  18086. {
  18087. "type": "string"
  18088. },
  18089. {
  18090. "type": "null"
  18091. }
  18092. ]
  18093. }
  18094. },
  18095. "required": ["message"],
  18096. "additionalProperties": false
  18097. }
  18098. },
  18099. "required": ["name", "data"],
  18100. "additionalProperties": false
  18101. },
  18102. "ContentFilterError": {
  18103. "type": "object",
  18104. "properties": {
  18105. "name": {
  18106. "type": "string",
  18107. "enum": ["ContentFilterError"]
  18108. },
  18109. "data": {
  18110. "type": "object",
  18111. "properties": {
  18112. "message": {
  18113. "type": "string"
  18114. }
  18115. },
  18116. "required": ["message"],
  18117. "additionalProperties": false
  18118. }
  18119. },
  18120. "required": ["name", "data"],
  18121. "additionalProperties": false
  18122. },
  18123. "APIError": {
  18124. "type": "object",
  18125. "properties": {
  18126. "name": {
  18127. "type": "string",
  18128. "enum": ["APIError"]
  18129. },
  18130. "data": {
  18131. "type": "object",
  18132. "properties": {
  18133. "message": {
  18134. "type": "string"
  18135. },
  18136. "statusCode": {
  18137. "anyOf": [
  18138. {
  18139. "type": "integer",
  18140. "allOf": [
  18141. {
  18142. "minimum": 0
  18143. }
  18144. ]
  18145. },
  18146. {
  18147. "type": "null"
  18148. }
  18149. ]
  18150. },
  18151. "isRetryable": {
  18152. "type": "boolean"
  18153. },
  18154. "responseHeaders": {
  18155. "anyOf": [
  18156. {
  18157. "type": "object",
  18158. "additionalProperties": {
  18159. "type": "string"
  18160. }
  18161. },
  18162. {
  18163. "type": "null"
  18164. }
  18165. ]
  18166. },
  18167. "responseBody": {
  18168. "anyOf": [
  18169. {
  18170. "type": "string"
  18171. },
  18172. {
  18173. "type": "null"
  18174. }
  18175. ]
  18176. },
  18177. "metadata": {
  18178. "anyOf": [
  18179. {
  18180. "type": "object",
  18181. "additionalProperties": {
  18182. "type": "string"
  18183. }
  18184. },
  18185. {
  18186. "type": "null"
  18187. }
  18188. ]
  18189. }
  18190. },
  18191. "required": ["message", "isRetryable"],
  18192. "additionalProperties": false
  18193. }
  18194. },
  18195. "required": ["name", "data"],
  18196. "additionalProperties": false
  18197. },
  18198. "AssistantMessage": {
  18199. "type": "object",
  18200. "properties": {
  18201. "id": {
  18202. "type": "string",
  18203. "allOf": [
  18204. {
  18205. "pattern": "^msg"
  18206. }
  18207. ]
  18208. },
  18209. "sessionID": {
  18210. "type": "string",
  18211. "allOf": [
  18212. {
  18213. "pattern": "^ses"
  18214. }
  18215. ]
  18216. },
  18217. "role": {
  18218. "type": "string",
  18219. "enum": ["assistant"]
  18220. },
  18221. "time": {
  18222. "type": "object",
  18223. "properties": {
  18224. "created": {
  18225. "type": "integer",
  18226. "allOf": [
  18227. {
  18228. "minimum": 0
  18229. }
  18230. ]
  18231. },
  18232. "completed": {
  18233. "anyOf": [
  18234. {
  18235. "type": "integer",
  18236. "allOf": [
  18237. {
  18238. "minimum": 0
  18239. }
  18240. ]
  18241. },
  18242. {
  18243. "type": "null"
  18244. }
  18245. ]
  18246. }
  18247. },
  18248. "required": ["created"],
  18249. "additionalProperties": false
  18250. },
  18251. "error": {
  18252. "anyOf": [
  18253. {
  18254. "anyOf": [
  18255. {
  18256. "$ref": "#/components/schemas/ProviderAuthError"
  18257. },
  18258. {
  18259. "$ref": "#/components/schemas/UnknownError1"
  18260. },
  18261. {
  18262. "$ref": "#/components/schemas/MessageOutputLengthError"
  18263. },
  18264. {
  18265. "$ref": "#/components/schemas/MessageAbortedError"
  18266. },
  18267. {
  18268. "$ref": "#/components/schemas/StructuredOutputError"
  18269. },
  18270. {
  18271. "$ref": "#/components/schemas/ContextOverflowError"
  18272. },
  18273. {
  18274. "$ref": "#/components/schemas/ContentFilterError"
  18275. },
  18276. {
  18277. "$ref": "#/components/schemas/APIError"
  18278. }
  18279. ]
  18280. },
  18281. {
  18282. "type": "null"
  18283. }
  18284. ]
  18285. },
  18286. "parentID": {
  18287. "type": "string",
  18288. "allOf": [
  18289. {
  18290. "pattern": "^msg"
  18291. }
  18292. ]
  18293. },
  18294. "modelID": {
  18295. "type": "string"
  18296. },
  18297. "providerID": {
  18298. "type": "string"
  18299. },
  18300. "mode": {
  18301. "type": "string"
  18302. },
  18303. "agent": {
  18304. "type": "string"
  18305. },
  18306. "path": {
  18307. "type": "object",
  18308. "properties": {
  18309. "cwd": {
  18310. "type": "string"
  18311. },
  18312. "root": {
  18313. "type": "string"
  18314. }
  18315. },
  18316. "required": ["cwd", "root"],
  18317. "additionalProperties": false
  18318. },
  18319. "summary": {
  18320. "anyOf": [
  18321. {
  18322. "type": "boolean"
  18323. },
  18324. {
  18325. "type": "null"
  18326. }
  18327. ]
  18328. },
  18329. "cost": {
  18330. "type": "number"
  18331. },
  18332. "tokens": {
  18333. "type": "object",
  18334. "properties": {
  18335. "total": {
  18336. "anyOf": [
  18337. {
  18338. "type": "number"
  18339. },
  18340. {
  18341. "type": "null"
  18342. }
  18343. ]
  18344. },
  18345. "input": {
  18346. "type": "number"
  18347. },
  18348. "output": {
  18349. "type": "number"
  18350. },
  18351. "reasoning": {
  18352. "type": "number"
  18353. },
  18354. "cache": {
  18355. "type": "object",
  18356. "properties": {
  18357. "read": {
  18358. "type": "number"
  18359. },
  18360. "write": {
  18361. "type": "number"
  18362. }
  18363. },
  18364. "required": ["read", "write"],
  18365. "additionalProperties": false
  18366. }
  18367. },
  18368. "required": ["input", "output", "reasoning", "cache"],
  18369. "additionalProperties": false
  18370. },
  18371. "structured": {
  18372. "anyOf": [
  18373. {},
  18374. {
  18375. "type": "null"
  18376. }
  18377. ]
  18378. },
  18379. "variant": {
  18380. "anyOf": [
  18381. {
  18382. "type": "string"
  18383. },
  18384. {
  18385. "type": "null"
  18386. }
  18387. ]
  18388. },
  18389. "finish": {
  18390. "anyOf": [
  18391. {
  18392. "type": "string"
  18393. },
  18394. {
  18395. "type": "null"
  18396. }
  18397. ]
  18398. }
  18399. },
  18400. "required": [
  18401. "id",
  18402. "sessionID",
  18403. "role",
  18404. "time",
  18405. "parentID",
  18406. "modelID",
  18407. "providerID",
  18408. "mode",
  18409. "agent",
  18410. "path",
  18411. "cost",
  18412. "tokens"
  18413. ],
  18414. "additionalProperties": false
  18415. },
  18416. "Message": {
  18417. "anyOf": [
  18418. {
  18419. "$ref": "#/components/schemas/UserMessage"
  18420. },
  18421. {
  18422. "$ref": "#/components/schemas/AssistantMessage"
  18423. }
  18424. ]
  18425. },
  18426. "message.updated": {
  18427. "type": "object",
  18428. "properties": {
  18429. "id": {
  18430. "type": "string",
  18431. "allOf": [
  18432. {
  18433. "pattern": "^evt_"
  18434. }
  18435. ]
  18436. },
  18437. "created": {
  18438. "type": "number"
  18439. },
  18440. "metadata": {
  18441. "type": "object"
  18442. },
  18443. "type": {
  18444. "type": "string",
  18445. "enum": ["message.updated"]
  18446. },
  18447. "durable": {
  18448. "type": "object",
  18449. "properties": {
  18450. "aggregateID": {
  18451. "type": "string"
  18452. },
  18453. "seq": {
  18454. "type": "integer",
  18455. "allOf": [
  18456. {
  18457. "minimum": 0
  18458. }
  18459. ]
  18460. },
  18461. "version": {
  18462. "type": "number",
  18463. "enum": [1]
  18464. }
  18465. },
  18466. "required": ["aggregateID", "seq", "version"],
  18467. "additionalProperties": false
  18468. },
  18469. "location": {
  18470. "$ref": "#/components/schemas/Location.Ref"
  18471. },
  18472. "data": {
  18473. "type": "object",
  18474. "properties": {
  18475. "sessionID": {
  18476. "type": "string",
  18477. "allOf": [
  18478. {
  18479. "pattern": "^ses"
  18480. }
  18481. ]
  18482. },
  18483. "info": {
  18484. "$ref": "#/components/schemas/Message"
  18485. }
  18486. },
  18487. "required": ["sessionID", "info"],
  18488. "additionalProperties": false
  18489. }
  18490. },
  18491. "required": ["id", "created", "type", "durable", "data"],
  18492. "additionalProperties": false
  18493. },
  18494. "message.removed": {
  18495. "type": "object",
  18496. "properties": {
  18497. "id": {
  18498. "type": "string",
  18499. "allOf": [
  18500. {
  18501. "pattern": "^evt_"
  18502. }
  18503. ]
  18504. },
  18505. "created": {
  18506. "type": "number"
  18507. },
  18508. "metadata": {
  18509. "type": "object"
  18510. },
  18511. "type": {
  18512. "type": "string",
  18513. "enum": ["message.removed"]
  18514. },
  18515. "durable": {
  18516. "type": "object",
  18517. "properties": {
  18518. "aggregateID": {
  18519. "type": "string"
  18520. },
  18521. "seq": {
  18522. "type": "integer",
  18523. "allOf": [
  18524. {
  18525. "minimum": 0
  18526. }
  18527. ]
  18528. },
  18529. "version": {
  18530. "type": "number",
  18531. "enum": [1]
  18532. }
  18533. },
  18534. "required": ["aggregateID", "seq", "version"],
  18535. "additionalProperties": false
  18536. },
  18537. "location": {
  18538. "$ref": "#/components/schemas/Location.Ref"
  18539. },
  18540. "data": {
  18541. "type": "object",
  18542. "properties": {
  18543. "sessionID": {
  18544. "type": "string",
  18545. "allOf": [
  18546. {
  18547. "pattern": "^ses"
  18548. }
  18549. ]
  18550. },
  18551. "messageID": {
  18552. "type": "string",
  18553. "allOf": [
  18554. {
  18555. "pattern": "^msg"
  18556. }
  18557. ]
  18558. }
  18559. },
  18560. "required": ["sessionID", "messageID"],
  18561. "additionalProperties": false
  18562. }
  18563. },
  18564. "required": ["id", "created", "type", "durable", "data"],
  18565. "additionalProperties": false
  18566. },
  18567. "TextPart": {
  18568. "type": "object",
  18569. "properties": {
  18570. "id": {
  18571. "type": "string",
  18572. "allOf": [
  18573. {
  18574. "pattern": "^prt"
  18575. }
  18576. ]
  18577. },
  18578. "sessionID": {
  18579. "type": "string",
  18580. "allOf": [
  18581. {
  18582. "pattern": "^ses"
  18583. }
  18584. ]
  18585. },
  18586. "messageID": {
  18587. "type": "string",
  18588. "allOf": [
  18589. {
  18590. "pattern": "^msg"
  18591. }
  18592. ]
  18593. },
  18594. "type": {
  18595. "type": "string",
  18596. "enum": ["text"]
  18597. },
  18598. "text": {
  18599. "type": "string"
  18600. },
  18601. "synthetic": {
  18602. "anyOf": [
  18603. {
  18604. "type": "boolean"
  18605. },
  18606. {
  18607. "type": "null"
  18608. }
  18609. ]
  18610. },
  18611. "ignored": {
  18612. "anyOf": [
  18613. {
  18614. "type": "boolean"
  18615. },
  18616. {
  18617. "type": "null"
  18618. }
  18619. ]
  18620. },
  18621. "time": {
  18622. "anyOf": [
  18623. {
  18624. "type": "object",
  18625. "properties": {
  18626. "start": {
  18627. "type": "integer",
  18628. "allOf": [
  18629. {
  18630. "minimum": 0
  18631. }
  18632. ]
  18633. },
  18634. "end": {
  18635. "anyOf": [
  18636. {
  18637. "type": "integer",
  18638. "allOf": [
  18639. {
  18640. "minimum": 0
  18641. }
  18642. ]
  18643. },
  18644. {
  18645. "type": "null"
  18646. }
  18647. ]
  18648. }
  18649. },
  18650. "required": ["start"],
  18651. "additionalProperties": false
  18652. },
  18653. {
  18654. "type": "null"
  18655. }
  18656. ]
  18657. },
  18658. "metadata": {
  18659. "anyOf": [
  18660. {
  18661. "type": "object"
  18662. },
  18663. {
  18664. "type": "null"
  18665. }
  18666. ]
  18667. }
  18668. },
  18669. "required": ["id", "sessionID", "messageID", "type", "text"],
  18670. "additionalProperties": false
  18671. },
  18672. "SubtaskPart": {
  18673. "type": "object",
  18674. "properties": {
  18675. "id": {
  18676. "type": "string",
  18677. "allOf": [
  18678. {
  18679. "pattern": "^prt"
  18680. }
  18681. ]
  18682. },
  18683. "sessionID": {
  18684. "type": "string",
  18685. "allOf": [
  18686. {
  18687. "pattern": "^ses"
  18688. }
  18689. ]
  18690. },
  18691. "messageID": {
  18692. "type": "string",
  18693. "allOf": [
  18694. {
  18695. "pattern": "^msg"
  18696. }
  18697. ]
  18698. },
  18699. "type": {
  18700. "type": "string",
  18701. "enum": ["subtask"]
  18702. },
  18703. "prompt": {
  18704. "type": "string"
  18705. },
  18706. "description": {
  18707. "type": "string"
  18708. },
  18709. "agent": {
  18710. "type": "string"
  18711. },
  18712. "model": {
  18713. "anyOf": [
  18714. {
  18715. "type": "object",
  18716. "properties": {
  18717. "providerID": {
  18718. "type": "string"
  18719. },
  18720. "modelID": {
  18721. "type": "string"
  18722. }
  18723. },
  18724. "required": ["providerID", "modelID"],
  18725. "additionalProperties": false
  18726. },
  18727. {
  18728. "type": "null"
  18729. }
  18730. ]
  18731. },
  18732. "command": {
  18733. "anyOf": [
  18734. {
  18735. "type": "string"
  18736. },
  18737. {
  18738. "type": "null"
  18739. }
  18740. ]
  18741. }
  18742. },
  18743. "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"],
  18744. "additionalProperties": false
  18745. },
  18746. "ReasoningPart": {
  18747. "type": "object",
  18748. "properties": {
  18749. "id": {
  18750. "type": "string",
  18751. "allOf": [
  18752. {
  18753. "pattern": "^prt"
  18754. }
  18755. ]
  18756. },
  18757. "sessionID": {
  18758. "type": "string",
  18759. "allOf": [
  18760. {
  18761. "pattern": "^ses"
  18762. }
  18763. ]
  18764. },
  18765. "messageID": {
  18766. "type": "string",
  18767. "allOf": [
  18768. {
  18769. "pattern": "^msg"
  18770. }
  18771. ]
  18772. },
  18773. "type": {
  18774. "type": "string",
  18775. "enum": ["reasoning"]
  18776. },
  18777. "text": {
  18778. "type": "string"
  18779. },
  18780. "metadata": {
  18781. "anyOf": [
  18782. {
  18783. "type": "object"
  18784. },
  18785. {
  18786. "type": "null"
  18787. }
  18788. ]
  18789. },
  18790. "time": {
  18791. "type": "object",
  18792. "properties": {
  18793. "start": {
  18794. "type": "integer",
  18795. "allOf": [
  18796. {
  18797. "minimum": 0
  18798. }
  18799. ]
  18800. },
  18801. "end": {
  18802. "anyOf": [
  18803. {
  18804. "type": "integer",
  18805. "allOf": [
  18806. {
  18807. "minimum": 0
  18808. }
  18809. ]
  18810. },
  18811. {
  18812. "type": "null"
  18813. }
  18814. ]
  18815. }
  18816. },
  18817. "required": ["start"],
  18818. "additionalProperties": false
  18819. }
  18820. },
  18821. "required": ["id", "sessionID", "messageID", "type", "text", "time"],
  18822. "additionalProperties": false
  18823. },
  18824. "FilePartSourceText": {
  18825. "type": "object",
  18826. "properties": {
  18827. "value": {
  18828. "type": "string"
  18829. },
  18830. "start": {
  18831. "type": "number"
  18832. },
  18833. "end": {
  18834. "type": "number"
  18835. }
  18836. },
  18837. "required": ["value", "start", "end"],
  18838. "additionalProperties": false
  18839. },
  18840. "FileSource": {
  18841. "type": "object",
  18842. "properties": {
  18843. "text": {
  18844. "$ref": "#/components/schemas/FilePartSourceText"
  18845. },
  18846. "type": {
  18847. "type": "string",
  18848. "enum": ["file"]
  18849. },
  18850. "path": {
  18851. "type": "string"
  18852. }
  18853. },
  18854. "required": ["text", "type", "path"],
  18855. "additionalProperties": false
  18856. },
  18857. "Range": {
  18858. "type": "object",
  18859. "properties": {
  18860. "start": {
  18861. "type": "object",
  18862. "properties": {
  18863. "line": {
  18864. "type": "integer",
  18865. "allOf": [
  18866. {
  18867. "minimum": 0
  18868. }
  18869. ]
  18870. },
  18871. "character": {
  18872. "type": "integer",
  18873. "allOf": [
  18874. {
  18875. "minimum": 0
  18876. }
  18877. ]
  18878. }
  18879. },
  18880. "required": ["line", "character"],
  18881. "additionalProperties": false
  18882. },
  18883. "end": {
  18884. "type": "object",
  18885. "properties": {
  18886. "line": {
  18887. "type": "integer",
  18888. "allOf": [
  18889. {
  18890. "minimum": 0
  18891. }
  18892. ]
  18893. },
  18894. "character": {
  18895. "type": "integer",
  18896. "allOf": [
  18897. {
  18898. "minimum": 0
  18899. }
  18900. ]
  18901. }
  18902. },
  18903. "required": ["line", "character"],
  18904. "additionalProperties": false
  18905. }
  18906. },
  18907. "required": ["start", "end"],
  18908. "additionalProperties": false
  18909. },
  18910. "SymbolSource": {
  18911. "type": "object",
  18912. "properties": {
  18913. "text": {
  18914. "$ref": "#/components/schemas/FilePartSourceText"
  18915. },
  18916. "type": {
  18917. "type": "string",
  18918. "enum": ["symbol"]
  18919. },
  18920. "path": {
  18921. "type": "string"
  18922. },
  18923. "range": {
  18924. "$ref": "#/components/schemas/Range"
  18925. },
  18926. "name": {
  18927. "type": "string"
  18928. },
  18929. "kind": {
  18930. "type": "integer",
  18931. "allOf": [
  18932. {
  18933. "minimum": 0
  18934. }
  18935. ]
  18936. }
  18937. },
  18938. "required": ["text", "type", "path", "range", "name", "kind"],
  18939. "additionalProperties": false
  18940. },
  18941. "ResourceSource": {
  18942. "type": "object",
  18943. "properties": {
  18944. "text": {
  18945. "$ref": "#/components/schemas/FilePartSourceText"
  18946. },
  18947. "type": {
  18948. "type": "string",
  18949. "enum": ["resource"]
  18950. },
  18951. "clientName": {
  18952. "type": "string"
  18953. },
  18954. "uri": {
  18955. "type": "string"
  18956. }
  18957. },
  18958. "required": ["text", "type", "clientName", "uri"],
  18959. "additionalProperties": false
  18960. },
  18961. "FilePartSource": {
  18962. "anyOf": [
  18963. {
  18964. "$ref": "#/components/schemas/FileSource"
  18965. },
  18966. {
  18967. "$ref": "#/components/schemas/SymbolSource"
  18968. },
  18969. {
  18970. "$ref": "#/components/schemas/ResourceSource"
  18971. }
  18972. ]
  18973. },
  18974. "FilePart": {
  18975. "type": "object",
  18976. "properties": {
  18977. "id": {
  18978. "type": "string",
  18979. "allOf": [
  18980. {
  18981. "pattern": "^prt"
  18982. }
  18983. ]
  18984. },
  18985. "sessionID": {
  18986. "type": "string",
  18987. "allOf": [
  18988. {
  18989. "pattern": "^ses"
  18990. }
  18991. ]
  18992. },
  18993. "messageID": {
  18994. "type": "string",
  18995. "allOf": [
  18996. {
  18997. "pattern": "^msg"
  18998. }
  18999. ]
  19000. },
  19001. "type": {
  19002. "type": "string",
  19003. "enum": ["file"]
  19004. },
  19005. "mime": {
  19006. "type": "string"
  19007. },
  19008. "filename": {
  19009. "anyOf": [
  19010. {
  19011. "type": "string"
  19012. },
  19013. {
  19014. "type": "null"
  19015. }
  19016. ]
  19017. },
  19018. "url": {
  19019. "type": "string"
  19020. },
  19021. "source": {
  19022. "anyOf": [
  19023. {
  19024. "$ref": "#/components/schemas/FilePartSource"
  19025. },
  19026. {
  19027. "type": "null"
  19028. }
  19029. ]
  19030. }
  19031. },
  19032. "required": ["id", "sessionID", "messageID", "type", "mime", "url"],
  19033. "additionalProperties": false
  19034. },
  19035. "ToolStatePending": {
  19036. "type": "object",
  19037. "properties": {
  19038. "status": {
  19039. "type": "string",
  19040. "enum": ["pending"]
  19041. },
  19042. "input": {
  19043. "type": "object"
  19044. },
  19045. "raw": {
  19046. "type": "string"
  19047. }
  19048. },
  19049. "required": ["status", "input", "raw"],
  19050. "additionalProperties": false
  19051. },
  19052. "ToolStateRunning": {
  19053. "type": "object",
  19054. "properties": {
  19055. "status": {
  19056. "type": "string",
  19057. "enum": ["running"]
  19058. },
  19059. "input": {
  19060. "type": "object"
  19061. },
  19062. "title": {
  19063. "anyOf": [
  19064. {
  19065. "type": "string"
  19066. },
  19067. {
  19068. "type": "null"
  19069. }
  19070. ]
  19071. },
  19072. "metadata": {
  19073. "anyOf": [
  19074. {
  19075. "type": "object"
  19076. },
  19077. {
  19078. "type": "null"
  19079. }
  19080. ]
  19081. },
  19082. "time": {
  19083. "type": "object",
  19084. "properties": {
  19085. "start": {
  19086. "type": "integer",
  19087. "allOf": [
  19088. {
  19089. "minimum": 0
  19090. }
  19091. ]
  19092. }
  19093. },
  19094. "required": ["start"],
  19095. "additionalProperties": false
  19096. }
  19097. },
  19098. "required": ["status", "input", "time"],
  19099. "additionalProperties": false
  19100. },
  19101. "ToolStateCompleted": {
  19102. "type": "object",
  19103. "properties": {
  19104. "status": {
  19105. "type": "string",
  19106. "enum": ["completed"]
  19107. },
  19108. "input": {
  19109. "type": "object"
  19110. },
  19111. "output": {
  19112. "type": "string"
  19113. },
  19114. "title": {
  19115. "type": "string"
  19116. },
  19117. "metadata": {
  19118. "type": "object"
  19119. },
  19120. "time": {
  19121. "type": "object",
  19122. "properties": {
  19123. "start": {
  19124. "type": "integer",
  19125. "allOf": [
  19126. {
  19127. "minimum": 0
  19128. }
  19129. ]
  19130. },
  19131. "end": {
  19132. "type": "integer",
  19133. "allOf": [
  19134. {
  19135. "minimum": 0
  19136. }
  19137. ]
  19138. },
  19139. "compacted": {
  19140. "anyOf": [
  19141. {
  19142. "type": "integer",
  19143. "allOf": [
  19144. {
  19145. "minimum": 0
  19146. }
  19147. ]
  19148. },
  19149. {
  19150. "type": "null"
  19151. }
  19152. ]
  19153. }
  19154. },
  19155. "required": ["start", "end"],
  19156. "additionalProperties": false
  19157. },
  19158. "attachments": {
  19159. "anyOf": [
  19160. {
  19161. "type": "array",
  19162. "items": {
  19163. "$ref": "#/components/schemas/FilePart"
  19164. }
  19165. },
  19166. {
  19167. "type": "null"
  19168. }
  19169. ]
  19170. }
  19171. },
  19172. "required": ["status", "input", "output", "title", "metadata", "time"],
  19173. "additionalProperties": false
  19174. },
  19175. "ToolStateError": {
  19176. "type": "object",
  19177. "properties": {
  19178. "status": {
  19179. "type": "string",
  19180. "enum": ["error"]
  19181. },
  19182. "input": {
  19183. "type": "object"
  19184. },
  19185. "error": {
  19186. "type": "string"
  19187. },
  19188. "metadata": {
  19189. "anyOf": [
  19190. {
  19191. "type": "object"
  19192. },
  19193. {
  19194. "type": "null"
  19195. }
  19196. ]
  19197. },
  19198. "time": {
  19199. "type": "object",
  19200. "properties": {
  19201. "start": {
  19202. "type": "integer",
  19203. "allOf": [
  19204. {
  19205. "minimum": 0
  19206. }
  19207. ]
  19208. },
  19209. "end": {
  19210. "type": "integer",
  19211. "allOf": [
  19212. {
  19213. "minimum": 0
  19214. }
  19215. ]
  19216. }
  19217. },
  19218. "required": ["start", "end"],
  19219. "additionalProperties": false
  19220. }
  19221. },
  19222. "required": ["status", "input", "error", "time"],
  19223. "additionalProperties": false
  19224. },
  19225. "ToolState": {
  19226. "anyOf": [
  19227. {
  19228. "$ref": "#/components/schemas/ToolStatePending"
  19229. },
  19230. {
  19231. "$ref": "#/components/schemas/ToolStateRunning"
  19232. },
  19233. {
  19234. "$ref": "#/components/schemas/ToolStateCompleted"
  19235. },
  19236. {
  19237. "$ref": "#/components/schemas/ToolStateError"
  19238. }
  19239. ]
  19240. },
  19241. "ToolPart": {
  19242. "type": "object",
  19243. "properties": {
  19244. "id": {
  19245. "type": "string",
  19246. "allOf": [
  19247. {
  19248. "pattern": "^prt"
  19249. }
  19250. ]
  19251. },
  19252. "sessionID": {
  19253. "type": "string",
  19254. "allOf": [
  19255. {
  19256. "pattern": "^ses"
  19257. }
  19258. ]
  19259. },
  19260. "messageID": {
  19261. "type": "string",
  19262. "allOf": [
  19263. {
  19264. "pattern": "^msg"
  19265. }
  19266. ]
  19267. },
  19268. "type": {
  19269. "type": "string",
  19270. "enum": ["tool"]
  19271. },
  19272. "callID": {
  19273. "type": "string"
  19274. },
  19275. "tool": {
  19276. "type": "string"
  19277. },
  19278. "state": {
  19279. "$ref": "#/components/schemas/ToolState"
  19280. },
  19281. "metadata": {
  19282. "anyOf": [
  19283. {
  19284. "type": "object"
  19285. },
  19286. {
  19287. "type": "null"
  19288. }
  19289. ]
  19290. }
  19291. },
  19292. "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"],
  19293. "additionalProperties": false
  19294. },
  19295. "StepStartPart": {
  19296. "type": "object",
  19297. "properties": {
  19298. "id": {
  19299. "type": "string",
  19300. "allOf": [
  19301. {
  19302. "pattern": "^prt"
  19303. }
  19304. ]
  19305. },
  19306. "sessionID": {
  19307. "type": "string",
  19308. "allOf": [
  19309. {
  19310. "pattern": "^ses"
  19311. }
  19312. ]
  19313. },
  19314. "messageID": {
  19315. "type": "string",
  19316. "allOf": [
  19317. {
  19318. "pattern": "^msg"
  19319. }
  19320. ]
  19321. },
  19322. "type": {
  19323. "type": "string",
  19324. "enum": ["step-start"]
  19325. },
  19326. "snapshot": {
  19327. "anyOf": [
  19328. {
  19329. "type": "string"
  19330. },
  19331. {
  19332. "type": "null"
  19333. }
  19334. ]
  19335. }
  19336. },
  19337. "required": ["id", "sessionID", "messageID", "type"],
  19338. "additionalProperties": false
  19339. },
  19340. "StepFinishPart": {
  19341. "type": "object",
  19342. "properties": {
  19343. "id": {
  19344. "type": "string",
  19345. "allOf": [
  19346. {
  19347. "pattern": "^prt"
  19348. }
  19349. ]
  19350. },
  19351. "sessionID": {
  19352. "type": "string",
  19353. "allOf": [
  19354. {
  19355. "pattern": "^ses"
  19356. }
  19357. ]
  19358. },
  19359. "messageID": {
  19360. "type": "string",
  19361. "allOf": [
  19362. {
  19363. "pattern": "^msg"
  19364. }
  19365. ]
  19366. },
  19367. "type": {
  19368. "type": "string",
  19369. "enum": ["step-finish"]
  19370. },
  19371. "reason": {
  19372. "type": "string"
  19373. },
  19374. "snapshot": {
  19375. "anyOf": [
  19376. {
  19377. "type": "string"
  19378. },
  19379. {
  19380. "type": "null"
  19381. }
  19382. ]
  19383. },
  19384. "cost": {
  19385. "type": "number"
  19386. },
  19387. "tokens": {
  19388. "type": "object",
  19389. "properties": {
  19390. "total": {
  19391. "anyOf": [
  19392. {
  19393. "type": "number"
  19394. },
  19395. {
  19396. "type": "null"
  19397. }
  19398. ]
  19399. },
  19400. "input": {
  19401. "type": "number"
  19402. },
  19403. "output": {
  19404. "type": "number"
  19405. },
  19406. "reasoning": {
  19407. "type": "number"
  19408. },
  19409. "cache": {
  19410. "type": "object",
  19411. "properties": {
  19412. "read": {
  19413. "type": "number"
  19414. },
  19415. "write": {
  19416. "type": "number"
  19417. }
  19418. },
  19419. "required": ["read", "write"],
  19420. "additionalProperties": false
  19421. }
  19422. },
  19423. "required": ["input", "output", "reasoning", "cache"],
  19424. "additionalProperties": false
  19425. }
  19426. },
  19427. "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"],
  19428. "additionalProperties": false
  19429. },
  19430. "SnapshotPart": {
  19431. "type": "object",
  19432. "properties": {
  19433. "id": {
  19434. "type": "string",
  19435. "allOf": [
  19436. {
  19437. "pattern": "^prt"
  19438. }
  19439. ]
  19440. },
  19441. "sessionID": {
  19442. "type": "string",
  19443. "allOf": [
  19444. {
  19445. "pattern": "^ses"
  19446. }
  19447. ]
  19448. },
  19449. "messageID": {
  19450. "type": "string",
  19451. "allOf": [
  19452. {
  19453. "pattern": "^msg"
  19454. }
  19455. ]
  19456. },
  19457. "type": {
  19458. "type": "string",
  19459. "enum": ["snapshot"]
  19460. },
  19461. "snapshot": {
  19462. "type": "string"
  19463. }
  19464. },
  19465. "required": ["id", "sessionID", "messageID", "type", "snapshot"],
  19466. "additionalProperties": false
  19467. },
  19468. "PatchPart": {
  19469. "type": "object",
  19470. "properties": {
  19471. "id": {
  19472. "type": "string",
  19473. "allOf": [
  19474. {
  19475. "pattern": "^prt"
  19476. }
  19477. ]
  19478. },
  19479. "sessionID": {
  19480. "type": "string",
  19481. "allOf": [
  19482. {
  19483. "pattern": "^ses"
  19484. }
  19485. ]
  19486. },
  19487. "messageID": {
  19488. "type": "string",
  19489. "allOf": [
  19490. {
  19491. "pattern": "^msg"
  19492. }
  19493. ]
  19494. },
  19495. "type": {
  19496. "type": "string",
  19497. "enum": ["patch"]
  19498. },
  19499. "hash": {
  19500. "type": "string"
  19501. },
  19502. "files": {
  19503. "type": "array",
  19504. "items": {
  19505. "type": "string"
  19506. }
  19507. }
  19508. },
  19509. "required": ["id", "sessionID", "messageID", "type", "hash", "files"],
  19510. "additionalProperties": false
  19511. },
  19512. "AgentPart": {
  19513. "type": "object",
  19514. "properties": {
  19515. "id": {
  19516. "type": "string",
  19517. "allOf": [
  19518. {
  19519. "pattern": "^prt"
  19520. }
  19521. ]
  19522. },
  19523. "sessionID": {
  19524. "type": "string",
  19525. "allOf": [
  19526. {
  19527. "pattern": "^ses"
  19528. }
  19529. ]
  19530. },
  19531. "messageID": {
  19532. "type": "string",
  19533. "allOf": [
  19534. {
  19535. "pattern": "^msg"
  19536. }
  19537. ]
  19538. },
  19539. "type": {
  19540. "type": "string",
  19541. "enum": ["agent"]
  19542. },
  19543. "name": {
  19544. "type": "string"
  19545. },
  19546. "source": {
  19547. "anyOf": [
  19548. {
  19549. "type": "object",
  19550. "properties": {
  19551. "value": {
  19552. "type": "string"
  19553. },
  19554. "start": {
  19555. "type": "integer",
  19556. "allOf": [
  19557. {
  19558. "minimum": 0
  19559. }
  19560. ]
  19561. },
  19562. "end": {
  19563. "type": "integer",
  19564. "allOf": [
  19565. {
  19566. "minimum": 0
  19567. }
  19568. ]
  19569. }
  19570. },
  19571. "required": ["value", "start", "end"],
  19572. "additionalProperties": false
  19573. },
  19574. {
  19575. "type": "null"
  19576. }
  19577. ]
  19578. }
  19579. },
  19580. "required": ["id", "sessionID", "messageID", "type", "name"],
  19581. "additionalProperties": false
  19582. },
  19583. "RetryPart": {
  19584. "type": "object",
  19585. "properties": {
  19586. "id": {
  19587. "type": "string",
  19588. "allOf": [
  19589. {
  19590. "pattern": "^prt"
  19591. }
  19592. ]
  19593. },
  19594. "sessionID": {
  19595. "type": "string",
  19596. "allOf": [
  19597. {
  19598. "pattern": "^ses"
  19599. }
  19600. ]
  19601. },
  19602. "messageID": {
  19603. "type": "string",
  19604. "allOf": [
  19605. {
  19606. "pattern": "^msg"
  19607. }
  19608. ]
  19609. },
  19610. "type": {
  19611. "type": "string",
  19612. "enum": ["retry"]
  19613. },
  19614. "attempt": {
  19615. "type": "integer",
  19616. "allOf": [
  19617. {
  19618. "minimum": 0
  19619. }
  19620. ]
  19621. },
  19622. "error": {
  19623. "$ref": "#/components/schemas/APIError"
  19624. },
  19625. "time": {
  19626. "type": "object",
  19627. "properties": {
  19628. "created": {
  19629. "type": "integer",
  19630. "allOf": [
  19631. {
  19632. "minimum": 0
  19633. }
  19634. ]
  19635. }
  19636. },
  19637. "required": ["created"],
  19638. "additionalProperties": false
  19639. }
  19640. },
  19641. "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"],
  19642. "additionalProperties": false
  19643. },
  19644. "CompactionPart": {
  19645. "type": "object",
  19646. "properties": {
  19647. "id": {
  19648. "type": "string",
  19649. "allOf": [
  19650. {
  19651. "pattern": "^prt"
  19652. }
  19653. ]
  19654. },
  19655. "sessionID": {
  19656. "type": "string",
  19657. "allOf": [
  19658. {
  19659. "pattern": "^ses"
  19660. }
  19661. ]
  19662. },
  19663. "messageID": {
  19664. "type": "string",
  19665. "allOf": [
  19666. {
  19667. "pattern": "^msg"
  19668. }
  19669. ]
  19670. },
  19671. "type": {
  19672. "type": "string",
  19673. "enum": ["compaction"]
  19674. },
  19675. "auto": {
  19676. "type": "boolean"
  19677. },
  19678. "overflow": {
  19679. "anyOf": [
  19680. {
  19681. "type": "boolean"
  19682. },
  19683. {
  19684. "type": "null"
  19685. }
  19686. ]
  19687. },
  19688. "tail_start_id": {
  19689. "anyOf": [
  19690. {
  19691. "type": "string",
  19692. "allOf": [
  19693. {
  19694. "pattern": "^msg"
  19695. }
  19696. ]
  19697. },
  19698. {
  19699. "type": "null"
  19700. }
  19701. ]
  19702. }
  19703. },
  19704. "required": ["id", "sessionID", "messageID", "type", "auto"],
  19705. "additionalProperties": false
  19706. },
  19707. "Part": {
  19708. "anyOf": [
  19709. {
  19710. "$ref": "#/components/schemas/TextPart"
  19711. },
  19712. {
  19713. "$ref": "#/components/schemas/SubtaskPart"
  19714. },
  19715. {
  19716. "$ref": "#/components/schemas/ReasoningPart"
  19717. },
  19718. {
  19719. "$ref": "#/components/schemas/FilePart"
  19720. },
  19721. {
  19722. "$ref": "#/components/schemas/ToolPart"
  19723. },
  19724. {
  19725. "$ref": "#/components/schemas/StepStartPart"
  19726. },
  19727. {
  19728. "$ref": "#/components/schemas/StepFinishPart"
  19729. },
  19730. {
  19731. "$ref": "#/components/schemas/SnapshotPart"
  19732. },
  19733. {
  19734. "$ref": "#/components/schemas/PatchPart"
  19735. },
  19736. {
  19737. "$ref": "#/components/schemas/AgentPart"
  19738. },
  19739. {
  19740. "$ref": "#/components/schemas/RetryPart"
  19741. },
  19742. {
  19743. "$ref": "#/components/schemas/CompactionPart"
  19744. }
  19745. ]
  19746. },
  19747. "message.part.updated": {
  19748. "type": "object",
  19749. "properties": {
  19750. "id": {
  19751. "type": "string",
  19752. "allOf": [
  19753. {
  19754. "pattern": "^evt_"
  19755. }
  19756. ]
  19757. },
  19758. "created": {
  19759. "type": "number"
  19760. },
  19761. "metadata": {
  19762. "type": "object"
  19763. },
  19764. "type": {
  19765. "type": "string",
  19766. "enum": ["message.part.updated"]
  19767. },
  19768. "durable": {
  19769. "type": "object",
  19770. "properties": {
  19771. "aggregateID": {
  19772. "type": "string"
  19773. },
  19774. "seq": {
  19775. "type": "integer",
  19776. "allOf": [
  19777. {
  19778. "minimum": 0
  19779. }
  19780. ]
  19781. },
  19782. "version": {
  19783. "type": "number",
  19784. "enum": [1]
  19785. }
  19786. },
  19787. "required": ["aggregateID", "seq", "version"],
  19788. "additionalProperties": false
  19789. },
  19790. "location": {
  19791. "$ref": "#/components/schemas/Location.Ref"
  19792. },
  19793. "data": {
  19794. "type": "object",
  19795. "properties": {
  19796. "sessionID": {
  19797. "type": "string",
  19798. "allOf": [
  19799. {
  19800. "pattern": "^ses"
  19801. }
  19802. ]
  19803. },
  19804. "part": {
  19805. "$ref": "#/components/schemas/Part"
  19806. },
  19807. "time": {
  19808. "type": "number"
  19809. }
  19810. },
  19811. "required": ["sessionID", "part", "time"],
  19812. "additionalProperties": false
  19813. }
  19814. },
  19815. "required": ["id", "created", "type", "durable", "data"],
  19816. "additionalProperties": false
  19817. },
  19818. "message.part.removed": {
  19819. "type": "object",
  19820. "properties": {
  19821. "id": {
  19822. "type": "string",
  19823. "allOf": [
  19824. {
  19825. "pattern": "^evt_"
  19826. }
  19827. ]
  19828. },
  19829. "created": {
  19830. "type": "number"
  19831. },
  19832. "metadata": {
  19833. "type": "object"
  19834. },
  19835. "type": {
  19836. "type": "string",
  19837. "enum": ["message.part.removed"]
  19838. },
  19839. "durable": {
  19840. "type": "object",
  19841. "properties": {
  19842. "aggregateID": {
  19843. "type": "string"
  19844. },
  19845. "seq": {
  19846. "type": "integer",
  19847. "allOf": [
  19848. {
  19849. "minimum": 0
  19850. }
  19851. ]
  19852. },
  19853. "version": {
  19854. "type": "number",
  19855. "enum": [1]
  19856. }
  19857. },
  19858. "required": ["aggregateID", "seq", "version"],
  19859. "additionalProperties": false
  19860. },
  19861. "location": {
  19862. "$ref": "#/components/schemas/Location.Ref"
  19863. },
  19864. "data": {
  19865. "type": "object",
  19866. "properties": {
  19867. "sessionID": {
  19868. "type": "string",
  19869. "allOf": [
  19870. {
  19871. "pattern": "^ses"
  19872. }
  19873. ]
  19874. },
  19875. "messageID": {
  19876. "type": "string",
  19877. "allOf": [
  19878. {
  19879. "pattern": "^msg"
  19880. }
  19881. ]
  19882. },
  19883. "partID": {
  19884. "type": "string",
  19885. "allOf": [
  19886. {
  19887. "pattern": "^prt"
  19888. }
  19889. ]
  19890. }
  19891. },
  19892. "required": ["sessionID", "messageID", "partID"],
  19893. "additionalProperties": false
  19894. }
  19895. },
  19896. "required": ["id", "created", "type", "durable", "data"],
  19897. "additionalProperties": false
  19898. },
  19899. "session.usage.updated": {
  19900. "type": "object",
  19901. "properties": {
  19902. "id": {
  19903. "type": "string",
  19904. "allOf": [
  19905. {
  19906. "pattern": "^evt_"
  19907. }
  19908. ]
  19909. },
  19910. "created": {
  19911. "type": "number"
  19912. },
  19913. "metadata": {
  19914. "type": "object"
  19915. },
  19916. "type": {
  19917. "type": "string",
  19918. "enum": ["session.usage.updated"]
  19919. },
  19920. "location": {
  19921. "$ref": "#/components/schemas/Location.Ref"
  19922. },
  19923. "data": {
  19924. "type": "object",
  19925. "properties": {
  19926. "sessionID": {
  19927. "type": "string",
  19928. "allOf": [
  19929. {
  19930. "pattern": "^ses"
  19931. }
  19932. ]
  19933. },
  19934. "cost": {
  19935. "$ref": "#/components/schemas/Money.USD"
  19936. },
  19937. "tokens": {
  19938. "$ref": "#/components/schemas/TokenUsage.Info"
  19939. }
  19940. },
  19941. "required": ["sessionID", "cost", "tokens"],
  19942. "additionalProperties": false
  19943. }
  19944. },
  19945. "required": ["id", "created", "type", "data"],
  19946. "additionalProperties": false
  19947. },
  19948. "session.text.delta": {
  19949. "type": "object",
  19950. "properties": {
  19951. "id": {
  19952. "type": "string",
  19953. "allOf": [
  19954. {
  19955. "pattern": "^evt_"
  19956. }
  19957. ]
  19958. },
  19959. "created": {
  19960. "type": "number"
  19961. },
  19962. "metadata": {
  19963. "type": "object"
  19964. },
  19965. "type": {
  19966. "type": "string",
  19967. "enum": ["session.text.delta"]
  19968. },
  19969. "location": {
  19970. "$ref": "#/components/schemas/Location.Ref"
  19971. },
  19972. "data": {
  19973. "type": "object",
  19974. "properties": {
  19975. "sessionID": {
  19976. "type": "string",
  19977. "allOf": [
  19978. {
  19979. "pattern": "^ses"
  19980. }
  19981. ]
  19982. },
  19983. "assistantMessageID": {
  19984. "type": "string",
  19985. "allOf": [
  19986. {
  19987. "pattern": "^msg_"
  19988. }
  19989. ]
  19990. },
  19991. "ordinal": {
  19992. "type": "integer",
  19993. "allOf": [
  19994. {
  19995. "minimum": 0
  19996. }
  19997. ]
  19998. },
  19999. "delta": {
  20000. "type": "string"
  20001. }
  20002. },
  20003. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20004. "additionalProperties": false
  20005. }
  20006. },
  20007. "required": ["id", "created", "type", "data"],
  20008. "additionalProperties": false
  20009. },
  20010. "session.reasoning.delta": {
  20011. "type": "object",
  20012. "properties": {
  20013. "id": {
  20014. "type": "string",
  20015. "allOf": [
  20016. {
  20017. "pattern": "^evt_"
  20018. }
  20019. ]
  20020. },
  20021. "created": {
  20022. "type": "number"
  20023. },
  20024. "metadata": {
  20025. "type": "object"
  20026. },
  20027. "type": {
  20028. "type": "string",
  20029. "enum": ["session.reasoning.delta"]
  20030. },
  20031. "location": {
  20032. "$ref": "#/components/schemas/Location.Ref"
  20033. },
  20034. "data": {
  20035. "type": "object",
  20036. "properties": {
  20037. "sessionID": {
  20038. "type": "string",
  20039. "allOf": [
  20040. {
  20041. "pattern": "^ses"
  20042. }
  20043. ]
  20044. },
  20045. "assistantMessageID": {
  20046. "type": "string",
  20047. "allOf": [
  20048. {
  20049. "pattern": "^msg_"
  20050. }
  20051. ]
  20052. },
  20053. "ordinal": {
  20054. "type": "integer",
  20055. "allOf": [
  20056. {
  20057. "minimum": 0
  20058. }
  20059. ]
  20060. },
  20061. "delta": {
  20062. "type": "string"
  20063. }
  20064. },
  20065. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20066. "additionalProperties": false
  20067. }
  20068. },
  20069. "required": ["id", "created", "type", "data"],
  20070. "additionalProperties": false
  20071. },
  20072. "session.tool.input.delta": {
  20073. "type": "object",
  20074. "properties": {
  20075. "id": {
  20076. "type": "string",
  20077. "allOf": [
  20078. {
  20079. "pattern": "^evt_"
  20080. }
  20081. ]
  20082. },
  20083. "created": {
  20084. "type": "number"
  20085. },
  20086. "metadata": {
  20087. "type": "object"
  20088. },
  20089. "type": {
  20090. "type": "string",
  20091. "enum": ["session.tool.input.delta"]
  20092. },
  20093. "location": {
  20094. "$ref": "#/components/schemas/Location.Ref"
  20095. },
  20096. "data": {
  20097. "type": "object",
  20098. "properties": {
  20099. "sessionID": {
  20100. "type": "string",
  20101. "allOf": [
  20102. {
  20103. "pattern": "^ses"
  20104. }
  20105. ]
  20106. },
  20107. "assistantMessageID": {
  20108. "type": "string",
  20109. "allOf": [
  20110. {
  20111. "pattern": "^msg_"
  20112. }
  20113. ]
  20114. },
  20115. "callID": {
  20116. "type": "string"
  20117. },
  20118. "delta": {
  20119. "type": "string"
  20120. }
  20121. },
  20122. "required": ["sessionID", "assistantMessageID", "callID", "delta"],
  20123. "additionalProperties": false
  20124. }
  20125. },
  20126. "required": ["id", "created", "type", "data"],
  20127. "additionalProperties": false
  20128. },
  20129. "session.compaction.delta": {
  20130. "type": "object",
  20131. "properties": {
  20132. "id": {
  20133. "type": "string",
  20134. "allOf": [
  20135. {
  20136. "pattern": "^evt_"
  20137. }
  20138. ]
  20139. },
  20140. "created": {
  20141. "type": "number"
  20142. },
  20143. "metadata": {
  20144. "type": "object"
  20145. },
  20146. "type": {
  20147. "type": "string",
  20148. "enum": ["session.compaction.delta"]
  20149. },
  20150. "location": {
  20151. "$ref": "#/components/schemas/Location.Ref"
  20152. },
  20153. "data": {
  20154. "type": "object",
  20155. "properties": {
  20156. "sessionID": {
  20157. "type": "string",
  20158. "allOf": [
  20159. {
  20160. "pattern": "^ses"
  20161. }
  20162. ]
  20163. },
  20164. "text": {
  20165. "type": "string"
  20166. }
  20167. },
  20168. "required": ["sessionID", "text"],
  20169. "additionalProperties": false
  20170. }
  20171. },
  20172. "required": ["id", "created", "type", "data"],
  20173. "additionalProperties": false
  20174. },
  20175. "filesystem.changed": {
  20176. "type": "object",
  20177. "properties": {
  20178. "id": {
  20179. "type": "string",
  20180. "allOf": [
  20181. {
  20182. "pattern": "^evt_"
  20183. }
  20184. ]
  20185. },
  20186. "created": {
  20187. "type": "number"
  20188. },
  20189. "metadata": {
  20190. "type": "object"
  20191. },
  20192. "type": {
  20193. "type": "string",
  20194. "enum": ["filesystem.changed"]
  20195. },
  20196. "location": {
  20197. "$ref": "#/components/schemas/Location.Ref"
  20198. },
  20199. "data": {
  20200. "type": "object",
  20201. "properties": {
  20202. "file": {
  20203. "type": "string"
  20204. },
  20205. "event": {
  20206. "type": "string",
  20207. "enum": ["add", "change", "unlink"]
  20208. }
  20209. },
  20210. "required": ["file", "event"],
  20211. "additionalProperties": false
  20212. }
  20213. },
  20214. "required": ["id", "created", "type", "data"],
  20215. "additionalProperties": false
  20216. },
  20217. "reference.updated": {
  20218. "type": "object",
  20219. "properties": {
  20220. "id": {
  20221. "type": "string",
  20222. "allOf": [
  20223. {
  20224. "pattern": "^evt_"
  20225. }
  20226. ]
  20227. },
  20228. "created": {
  20229. "type": "number"
  20230. },
  20231. "metadata": {
  20232. "type": "object"
  20233. },
  20234. "type": {
  20235. "type": "string",
  20236. "enum": ["reference.updated"]
  20237. },
  20238. "location": {
  20239. "$ref": "#/components/schemas/Location.Ref"
  20240. },
  20241. "data": {
  20242. "anyOf": [
  20243. {
  20244. "type": "object"
  20245. },
  20246. {
  20247. "type": "array"
  20248. }
  20249. ]
  20250. }
  20251. },
  20252. "required": ["id", "created", "type", "data"],
  20253. "additionalProperties": false
  20254. },
  20255. "permission.v2.asked": {
  20256. "type": "object",
  20257. "properties": {
  20258. "id": {
  20259. "type": "string",
  20260. "allOf": [
  20261. {
  20262. "pattern": "^evt_"
  20263. }
  20264. ]
  20265. },
  20266. "created": {
  20267. "type": "number"
  20268. },
  20269. "metadata": {
  20270. "type": "object"
  20271. },
  20272. "type": {
  20273. "type": "string",
  20274. "enum": ["permission.v2.asked"]
  20275. },
  20276. "location": {
  20277. "$ref": "#/components/schemas/Location.Ref"
  20278. },
  20279. "data": {
  20280. "type": "object",
  20281. "properties": {
  20282. "id": {
  20283. "type": "string",
  20284. "allOf": [
  20285. {
  20286. "pattern": "^per"
  20287. }
  20288. ]
  20289. },
  20290. "sessionID": {
  20291. "type": "string",
  20292. "allOf": [
  20293. {
  20294. "pattern": "^ses"
  20295. }
  20296. ]
  20297. },
  20298. "action": {
  20299. "type": "string"
  20300. },
  20301. "resources": {
  20302. "type": "array",
  20303. "items": {
  20304. "type": "string"
  20305. }
  20306. },
  20307. "save": {
  20308. "type": "array",
  20309. "items": {
  20310. "type": "string"
  20311. }
  20312. },
  20313. "metadata": {
  20314. "type": "object"
  20315. },
  20316. "source": {
  20317. "$ref": "#/components/schemas/PermissionV2.Source"
  20318. }
  20319. },
  20320. "required": ["id", "sessionID", "action", "resources"],
  20321. "additionalProperties": false
  20322. }
  20323. },
  20324. "required": ["id", "created", "type", "data"],
  20325. "additionalProperties": false
  20326. },
  20327. "permission.v2.replied": {
  20328. "type": "object",
  20329. "properties": {
  20330. "id": {
  20331. "type": "string",
  20332. "allOf": [
  20333. {
  20334. "pattern": "^evt_"
  20335. }
  20336. ]
  20337. },
  20338. "created": {
  20339. "type": "number"
  20340. },
  20341. "metadata": {
  20342. "type": "object"
  20343. },
  20344. "type": {
  20345. "type": "string",
  20346. "enum": ["permission.v2.replied"]
  20347. },
  20348. "location": {
  20349. "$ref": "#/components/schemas/Location.Ref"
  20350. },
  20351. "data": {
  20352. "type": "object",
  20353. "properties": {
  20354. "sessionID": {
  20355. "type": "string",
  20356. "allOf": [
  20357. {
  20358. "pattern": "^ses"
  20359. }
  20360. ]
  20361. },
  20362. "requestID": {
  20363. "type": "string",
  20364. "allOf": [
  20365. {
  20366. "pattern": "^per"
  20367. }
  20368. ]
  20369. },
  20370. "reply": {
  20371. "$ref": "#/components/schemas/PermissionV2.Reply"
  20372. }
  20373. },
  20374. "required": ["sessionID", "requestID", "reply"],
  20375. "additionalProperties": false
  20376. }
  20377. },
  20378. "required": ["id", "created", "type", "data"],
  20379. "additionalProperties": false
  20380. },
  20381. "plugin.added": {
  20382. "type": "object",
  20383. "properties": {
  20384. "id": {
  20385. "type": "string",
  20386. "allOf": [
  20387. {
  20388. "pattern": "^evt_"
  20389. }
  20390. ]
  20391. },
  20392. "created": {
  20393. "type": "number"
  20394. },
  20395. "metadata": {
  20396. "type": "object"
  20397. },
  20398. "type": {
  20399. "type": "string",
  20400. "enum": ["plugin.added"]
  20401. },
  20402. "location": {
  20403. "$ref": "#/components/schemas/Location.Ref"
  20404. },
  20405. "data": {
  20406. "type": "object",
  20407. "properties": {
  20408. "id": {
  20409. "type": "string"
  20410. }
  20411. },
  20412. "required": ["id"],
  20413. "additionalProperties": false
  20414. }
  20415. },
  20416. "required": ["id", "created", "type", "data"],
  20417. "additionalProperties": false
  20418. },
  20419. "plugin.updated": {
  20420. "type": "object",
  20421. "properties": {
  20422. "id": {
  20423. "type": "string",
  20424. "allOf": [
  20425. {
  20426. "pattern": "^evt_"
  20427. }
  20428. ]
  20429. },
  20430. "created": {
  20431. "type": "number"
  20432. },
  20433. "metadata": {
  20434. "type": "object"
  20435. },
  20436. "type": {
  20437. "type": "string",
  20438. "enum": ["plugin.updated"]
  20439. },
  20440. "location": {
  20441. "$ref": "#/components/schemas/Location.Ref"
  20442. },
  20443. "data": {
  20444. "anyOf": [
  20445. {
  20446. "type": "object"
  20447. },
  20448. {
  20449. "type": "array"
  20450. }
  20451. ]
  20452. }
  20453. },
  20454. "required": ["id", "created", "type", "data"],
  20455. "additionalProperties": false
  20456. },
  20457. "project.directories.updated": {
  20458. "type": "object",
  20459. "properties": {
  20460. "id": {
  20461. "type": "string",
  20462. "allOf": [
  20463. {
  20464. "pattern": "^evt_"
  20465. }
  20466. ]
  20467. },
  20468. "created": {
  20469. "type": "number"
  20470. },
  20471. "metadata": {
  20472. "type": "object"
  20473. },
  20474. "type": {
  20475. "type": "string",
  20476. "enum": ["project.directories.updated"]
  20477. },
  20478. "location": {
  20479. "$ref": "#/components/schemas/Location.Ref"
  20480. },
  20481. "data": {
  20482. "type": "object",
  20483. "properties": {
  20484. "projectID": {
  20485. "type": "string"
  20486. }
  20487. },
  20488. "required": ["projectID"],
  20489. "additionalProperties": false
  20490. }
  20491. },
  20492. "required": ["id", "created", "type", "data"],
  20493. "additionalProperties": false
  20494. },
  20495. "command.updated": {
  20496. "type": "object",
  20497. "properties": {
  20498. "id": {
  20499. "type": "string",
  20500. "allOf": [
  20501. {
  20502. "pattern": "^evt_"
  20503. }
  20504. ]
  20505. },
  20506. "created": {
  20507. "type": "number"
  20508. },
  20509. "metadata": {
  20510. "type": "object"
  20511. },
  20512. "type": {
  20513. "type": "string",
  20514. "enum": ["command.updated"]
  20515. },
  20516. "location": {
  20517. "$ref": "#/components/schemas/Location.Ref"
  20518. },
  20519. "data": {
  20520. "anyOf": [
  20521. {
  20522. "type": "object"
  20523. },
  20524. {
  20525. "type": "array"
  20526. }
  20527. ]
  20528. }
  20529. },
  20530. "required": ["id", "created", "type", "data"],
  20531. "additionalProperties": false
  20532. },
  20533. "config.updated": {
  20534. "type": "object",
  20535. "properties": {
  20536. "id": {
  20537. "type": "string",
  20538. "allOf": [
  20539. {
  20540. "pattern": "^evt_"
  20541. }
  20542. ]
  20543. },
  20544. "created": {
  20545. "type": "number"
  20546. },
  20547. "metadata": {
  20548. "type": "object"
  20549. },
  20550. "type": {
  20551. "type": "string",
  20552. "enum": ["config.updated"]
  20553. },
  20554. "location": {
  20555. "$ref": "#/components/schemas/Location.Ref"
  20556. },
  20557. "data": {
  20558. "anyOf": [
  20559. {
  20560. "type": "object"
  20561. },
  20562. {
  20563. "type": "array"
  20564. }
  20565. ]
  20566. }
  20567. },
  20568. "required": ["id", "created", "type", "data"],
  20569. "additionalProperties": false
  20570. },
  20571. "skill.updated": {
  20572. "type": "object",
  20573. "properties": {
  20574. "id": {
  20575. "type": "string",
  20576. "allOf": [
  20577. {
  20578. "pattern": "^evt_"
  20579. }
  20580. ]
  20581. },
  20582. "created": {
  20583. "type": "number"
  20584. },
  20585. "metadata": {
  20586. "type": "object"
  20587. },
  20588. "type": {
  20589. "type": "string",
  20590. "enum": ["skill.updated"]
  20591. },
  20592. "location": {
  20593. "$ref": "#/components/schemas/Location.Ref"
  20594. },
  20595. "data": {
  20596. "anyOf": [
  20597. {
  20598. "type": "object"
  20599. },
  20600. {
  20601. "type": "array"
  20602. }
  20603. ]
  20604. }
  20605. },
  20606. "required": ["id", "created", "type", "data"],
  20607. "additionalProperties": false
  20608. },
  20609. "Pty": {
  20610. "type": "object",
  20611. "properties": {
  20612. "id": {
  20613. "type": "string",
  20614. "allOf": [
  20615. {
  20616. "pattern": "^pty"
  20617. }
  20618. ]
  20619. },
  20620. "title": {
  20621. "type": "string"
  20622. },
  20623. "command": {
  20624. "type": "string"
  20625. },
  20626. "args": {
  20627. "type": "array",
  20628. "items": {
  20629. "type": "string"
  20630. }
  20631. },
  20632. "cwd": {
  20633. "type": "string"
  20634. },
  20635. "status": {
  20636. "type": "string",
  20637. "enum": ["running", "exited"]
  20638. },
  20639. "pid": {
  20640. "type": "integer",
  20641. "allOf": [
  20642. {
  20643. "minimum": 0
  20644. }
  20645. ]
  20646. },
  20647. "exitCode": {
  20648. "type": "integer",
  20649. "allOf": [
  20650. {
  20651. "minimum": 0
  20652. }
  20653. ]
  20654. }
  20655. },
  20656. "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
  20657. "additionalProperties": false
  20658. },
  20659. "pty.created": {
  20660. "type": "object",
  20661. "properties": {
  20662. "id": {
  20663. "type": "string",
  20664. "allOf": [
  20665. {
  20666. "pattern": "^evt_"
  20667. }
  20668. ]
  20669. },
  20670. "created": {
  20671. "type": "number"
  20672. },
  20673. "metadata": {
  20674. "type": "object"
  20675. },
  20676. "type": {
  20677. "type": "string",
  20678. "enum": ["pty.created"]
  20679. },
  20680. "location": {
  20681. "$ref": "#/components/schemas/Location.Ref"
  20682. },
  20683. "data": {
  20684. "type": "object",
  20685. "properties": {
  20686. "info": {
  20687. "$ref": "#/components/schemas/Pty"
  20688. }
  20689. },
  20690. "required": ["info"],
  20691. "additionalProperties": false
  20692. }
  20693. },
  20694. "required": ["id", "created", "type", "data"],
  20695. "additionalProperties": false
  20696. },
  20697. "pty.updated": {
  20698. "type": "object",
  20699. "properties": {
  20700. "id": {
  20701. "type": "string",
  20702. "allOf": [
  20703. {
  20704. "pattern": "^evt_"
  20705. }
  20706. ]
  20707. },
  20708. "created": {
  20709. "type": "number"
  20710. },
  20711. "metadata": {
  20712. "type": "object"
  20713. },
  20714. "type": {
  20715. "type": "string",
  20716. "enum": ["pty.updated"]
  20717. },
  20718. "location": {
  20719. "$ref": "#/components/schemas/Location.Ref"
  20720. },
  20721. "data": {
  20722. "type": "object",
  20723. "properties": {
  20724. "info": {
  20725. "$ref": "#/components/schemas/Pty"
  20726. }
  20727. },
  20728. "required": ["info"],
  20729. "additionalProperties": false
  20730. }
  20731. },
  20732. "required": ["id", "created", "type", "data"],
  20733. "additionalProperties": false
  20734. },
  20735. "pty.exited": {
  20736. "type": "object",
  20737. "properties": {
  20738. "id": {
  20739. "type": "string",
  20740. "allOf": [
  20741. {
  20742. "pattern": "^evt_"
  20743. }
  20744. ]
  20745. },
  20746. "created": {
  20747. "type": "number"
  20748. },
  20749. "metadata": {
  20750. "type": "object"
  20751. },
  20752. "type": {
  20753. "type": "string",
  20754. "enum": ["pty.exited"]
  20755. },
  20756. "location": {
  20757. "$ref": "#/components/schemas/Location.Ref"
  20758. },
  20759. "data": {
  20760. "type": "object",
  20761. "properties": {
  20762. "id": {
  20763. "type": "string",
  20764. "allOf": [
  20765. {
  20766. "pattern": "^pty"
  20767. }
  20768. ]
  20769. },
  20770. "exitCode": {
  20771. "type": "integer",
  20772. "allOf": [
  20773. {
  20774. "minimum": 0
  20775. }
  20776. ]
  20777. }
  20778. },
  20779. "required": ["id", "exitCode"],
  20780. "additionalProperties": false
  20781. }
  20782. },
  20783. "required": ["id", "created", "type", "data"],
  20784. "additionalProperties": false
  20785. },
  20786. "pty.deleted": {
  20787. "type": "object",
  20788. "properties": {
  20789. "id": {
  20790. "type": "string",
  20791. "allOf": [
  20792. {
  20793. "pattern": "^evt_"
  20794. }
  20795. ]
  20796. },
  20797. "created": {
  20798. "type": "number"
  20799. },
  20800. "metadata": {
  20801. "type": "object"
  20802. },
  20803. "type": {
  20804. "type": "string",
  20805. "enum": ["pty.deleted"]
  20806. },
  20807. "location": {
  20808. "$ref": "#/components/schemas/Location.Ref"
  20809. },
  20810. "data": {
  20811. "type": "object",
  20812. "properties": {
  20813. "id": {
  20814. "type": "string",
  20815. "allOf": [
  20816. {
  20817. "pattern": "^pty"
  20818. }
  20819. ]
  20820. }
  20821. },
  20822. "required": ["id"],
  20823. "additionalProperties": false
  20824. }
  20825. },
  20826. "required": ["id", "created", "type", "data"],
  20827. "additionalProperties": false
  20828. },
  20829. "shell.created": {
  20830. "type": "object",
  20831. "properties": {
  20832. "id": {
  20833. "type": "string",
  20834. "allOf": [
  20835. {
  20836. "pattern": "^evt_"
  20837. }
  20838. ]
  20839. },
  20840. "created": {
  20841. "type": "number"
  20842. },
  20843. "metadata": {
  20844. "type": "object"
  20845. },
  20846. "type": {
  20847. "type": "string",
  20848. "enum": ["shell.created"]
  20849. },
  20850. "location": {
  20851. "$ref": "#/components/schemas/Location.Ref"
  20852. },
  20853. "data": {
  20854. "type": "object",
  20855. "properties": {
  20856. "info": {
  20857. "$ref": "#/components/schemas/Shell"
  20858. }
  20859. },
  20860. "required": ["info"],
  20861. "additionalProperties": false
  20862. }
  20863. },
  20864. "required": ["id", "created", "type", "data"],
  20865. "additionalProperties": false
  20866. },
  20867. "shell.exited": {
  20868. "type": "object",
  20869. "properties": {
  20870. "id": {
  20871. "type": "string",
  20872. "allOf": [
  20873. {
  20874. "pattern": "^evt_"
  20875. }
  20876. ]
  20877. },
  20878. "created": {
  20879. "type": "number"
  20880. },
  20881. "metadata": {
  20882. "type": "object"
  20883. },
  20884. "type": {
  20885. "type": "string",
  20886. "enum": ["shell.exited"]
  20887. },
  20888. "location": {
  20889. "$ref": "#/components/schemas/Location.Ref"
  20890. },
  20891. "data": {
  20892. "type": "object",
  20893. "properties": {
  20894. "id": {
  20895. "type": "string",
  20896. "allOf": [
  20897. {
  20898. "pattern": "^sh_"
  20899. }
  20900. ]
  20901. },
  20902. "exit": {
  20903. "anyOf": [
  20904. {
  20905. "type": "number"
  20906. },
  20907. {
  20908. "type": "string",
  20909. "enum": ["NaN"]
  20910. },
  20911. {
  20912. "type": "string",
  20913. "enum": ["Infinity"]
  20914. },
  20915. {
  20916. "type": "string",
  20917. "enum": ["-Infinity"]
  20918. }
  20919. ]
  20920. },
  20921. "status": {
  20922. "type": "string",
  20923. "enum": ["running", "exited", "timeout", "killed"]
  20924. }
  20925. },
  20926. "required": ["id", "status"],
  20927. "additionalProperties": false
  20928. }
  20929. },
  20930. "required": ["id", "created", "type", "data"],
  20931. "additionalProperties": false
  20932. },
  20933. "shell.deleted": {
  20934. "type": "object",
  20935. "properties": {
  20936. "id": {
  20937. "type": "string",
  20938. "allOf": [
  20939. {
  20940. "pattern": "^evt_"
  20941. }
  20942. ]
  20943. },
  20944. "created": {
  20945. "type": "number"
  20946. },
  20947. "metadata": {
  20948. "type": "object"
  20949. },
  20950. "type": {
  20951. "type": "string",
  20952. "enum": ["shell.deleted"]
  20953. },
  20954. "location": {
  20955. "$ref": "#/components/schemas/Location.Ref"
  20956. },
  20957. "data": {
  20958. "type": "object",
  20959. "properties": {
  20960. "id": {
  20961. "type": "string",
  20962. "allOf": [
  20963. {
  20964. "pattern": "^sh_"
  20965. }
  20966. ]
  20967. }
  20968. },
  20969. "required": ["id"],
  20970. "additionalProperties": false
  20971. }
  20972. },
  20973. "required": ["id", "created", "type", "data"],
  20974. "additionalProperties": false
  20975. },
  20976. "QuestionV2.Option": {
  20977. "type": "object",
  20978. "properties": {
  20979. "label": {
  20980. "type": "string",
  20981. "description": "Display text (1-5 words, concise)"
  20982. },
  20983. "description": {
  20984. "type": "string",
  20985. "description": "Explanation of choice"
  20986. }
  20987. },
  20988. "required": ["label", "description"],
  20989. "additionalProperties": false
  20990. },
  20991. "QuestionV2.Info": {
  20992. "type": "object",
  20993. "properties": {
  20994. "question": {
  20995. "type": "string",
  20996. "description": "Complete question"
  20997. },
  20998. "header": {
  20999. "type": "string",
  21000. "description": "Very short label (max 30 chars)"
  21001. },
  21002. "options": {
  21003. "type": "array",
  21004. "items": {
  21005. "$ref": "#/components/schemas/QuestionV2.Option"
  21006. },
  21007. "description": "Available choices"
  21008. },
  21009. "multiple": {
  21010. "type": "boolean"
  21011. },
  21012. "custom": {
  21013. "type": "boolean"
  21014. }
  21015. },
  21016. "required": ["question", "header", "options"],
  21017. "additionalProperties": false
  21018. },
  21019. "QuestionV2.Tool": {
  21020. "type": "object",
  21021. "properties": {
  21022. "messageID": {
  21023. "type": "string"
  21024. },
  21025. "callID": {
  21026. "type": "string"
  21027. }
  21028. },
  21029. "required": ["messageID", "callID"],
  21030. "additionalProperties": false
  21031. },
  21032. "question.v2.asked": {
  21033. "type": "object",
  21034. "properties": {
  21035. "id": {
  21036. "type": "string",
  21037. "allOf": [
  21038. {
  21039. "pattern": "^evt_"
  21040. }
  21041. ]
  21042. },
  21043. "created": {
  21044. "type": "number"
  21045. },
  21046. "metadata": {
  21047. "type": "object"
  21048. },
  21049. "type": {
  21050. "type": "string",
  21051. "enum": ["question.v2.asked"]
  21052. },
  21053. "location": {
  21054. "$ref": "#/components/schemas/Location.Ref"
  21055. },
  21056. "data": {
  21057. "type": "object",
  21058. "properties": {
  21059. "id": {
  21060. "type": "string",
  21061. "allOf": [
  21062. {
  21063. "pattern": "^que"
  21064. }
  21065. ]
  21066. },
  21067. "sessionID": {
  21068. "type": "string",
  21069. "allOf": [
  21070. {
  21071. "pattern": "^ses"
  21072. }
  21073. ]
  21074. },
  21075. "questions": {
  21076. "type": "array",
  21077. "items": {
  21078. "$ref": "#/components/schemas/QuestionV2.Info"
  21079. },
  21080. "description": "Questions to ask"
  21081. },
  21082. "tool": {
  21083. "$ref": "#/components/schemas/QuestionV2.Tool"
  21084. }
  21085. },
  21086. "required": ["id", "sessionID", "questions"],
  21087. "additionalProperties": false
  21088. }
  21089. },
  21090. "required": ["id", "created", "type", "data"],
  21091. "additionalProperties": false
  21092. },
  21093. "QuestionV2.Answer": {
  21094. "type": "array",
  21095. "items": {
  21096. "type": "string"
  21097. }
  21098. },
  21099. "question.v2.replied": {
  21100. "type": "object",
  21101. "properties": {
  21102. "id": {
  21103. "type": "string",
  21104. "allOf": [
  21105. {
  21106. "pattern": "^evt_"
  21107. }
  21108. ]
  21109. },
  21110. "created": {
  21111. "type": "number"
  21112. },
  21113. "metadata": {
  21114. "type": "object"
  21115. },
  21116. "type": {
  21117. "type": "string",
  21118. "enum": ["question.v2.replied"]
  21119. },
  21120. "location": {
  21121. "$ref": "#/components/schemas/Location.Ref"
  21122. },
  21123. "data": {
  21124. "type": "object",
  21125. "properties": {
  21126. "sessionID": {
  21127. "type": "string",
  21128. "allOf": [
  21129. {
  21130. "pattern": "^ses"
  21131. }
  21132. ]
  21133. },
  21134. "requestID": {
  21135. "type": "string",
  21136. "allOf": [
  21137. {
  21138. "pattern": "^que"
  21139. }
  21140. ]
  21141. },
  21142. "answers": {
  21143. "type": "array",
  21144. "items": {
  21145. "$ref": "#/components/schemas/QuestionV2.Answer"
  21146. }
  21147. }
  21148. },
  21149. "required": ["sessionID", "requestID", "answers"],
  21150. "additionalProperties": false
  21151. }
  21152. },
  21153. "required": ["id", "created", "type", "data"],
  21154. "additionalProperties": false
  21155. },
  21156. "question.v2.rejected": {
  21157. "type": "object",
  21158. "properties": {
  21159. "id": {
  21160. "type": "string",
  21161. "allOf": [
  21162. {
  21163. "pattern": "^evt_"
  21164. }
  21165. ]
  21166. },
  21167. "created": {
  21168. "type": "number"
  21169. },
  21170. "metadata": {
  21171. "type": "object"
  21172. },
  21173. "type": {
  21174. "type": "string",
  21175. "enum": ["question.v2.rejected"]
  21176. },
  21177. "location": {
  21178. "$ref": "#/components/schemas/Location.Ref"
  21179. },
  21180. "data": {
  21181. "type": "object",
  21182. "properties": {
  21183. "sessionID": {
  21184. "type": "string",
  21185. "allOf": [
  21186. {
  21187. "pattern": "^ses"
  21188. }
  21189. ]
  21190. },
  21191. "requestID": {
  21192. "type": "string",
  21193. "allOf": [
  21194. {
  21195. "pattern": "^que"
  21196. }
  21197. ]
  21198. }
  21199. },
  21200. "required": ["sessionID", "requestID"],
  21201. "additionalProperties": false
  21202. }
  21203. },
  21204. "required": ["id", "created", "type", "data"],
  21205. "additionalProperties": false
  21206. },
  21207. "Form.Metadata1": {
  21208. "type": "object"
  21209. },
  21210. "Form.When1": {
  21211. "type": "object",
  21212. "properties": {
  21213. "key": {
  21214. "type": "string"
  21215. },
  21216. "op": {
  21217. "type": "string",
  21218. "enum": ["eq", "neq"]
  21219. },
  21220. "value": {
  21221. "anyOf": [
  21222. {
  21223. "type": "string"
  21224. },
  21225. {
  21226. "anyOf": [
  21227. {
  21228. "type": "number"
  21229. },
  21230. {
  21231. "type": "string",
  21232. "enum": ["NaN"]
  21233. },
  21234. {
  21235. "type": "string",
  21236. "enum": ["Infinity"]
  21237. },
  21238. {
  21239. "type": "string",
  21240. "enum": ["-Infinity"]
  21241. }
  21242. ]
  21243. },
  21244. {
  21245. "type": "boolean"
  21246. }
  21247. ]
  21248. }
  21249. },
  21250. "required": ["key", "op", "value"],
  21251. "additionalProperties": false
  21252. },
  21253. "Form.StringField1": {
  21254. "type": "object",
  21255. "properties": {
  21256. "key": {
  21257. "type": "string"
  21258. },
  21259. "title": {
  21260. "type": "string"
  21261. },
  21262. "description": {
  21263. "type": "string"
  21264. },
  21265. "required": {
  21266. "type": "boolean"
  21267. },
  21268. "when": {
  21269. "type": "array",
  21270. "items": {
  21271. "$ref": "#/components/schemas/Form.When1"
  21272. }
  21273. },
  21274. "type": {
  21275. "type": "string",
  21276. "enum": ["string"]
  21277. },
  21278. "format": {
  21279. "type": "string",
  21280. "enum": ["email", "uri", "date", "date-time"]
  21281. },
  21282. "minLength": {
  21283. "type": "integer",
  21284. "allOf": [
  21285. {
  21286. "minimum": 0
  21287. }
  21288. ]
  21289. },
  21290. "maxLength": {
  21291. "type": "integer",
  21292. "allOf": [
  21293. {
  21294. "minimum": 0
  21295. }
  21296. ]
  21297. },
  21298. "pattern": {
  21299. "type": "string"
  21300. },
  21301. "placeholder": {
  21302. "type": "string"
  21303. },
  21304. "default": {
  21305. "type": "string"
  21306. },
  21307. "options": {
  21308. "type": "array",
  21309. "items": {
  21310. "$ref": "#/components/schemas/Form.Option"
  21311. }
  21312. },
  21313. "custom": {
  21314. "type": "boolean"
  21315. }
  21316. },
  21317. "required": ["key", "type"],
  21318. "additionalProperties": false
  21319. },
  21320. "Form.NumberField1": {
  21321. "type": "object",
  21322. "properties": {
  21323. "key": {
  21324. "type": "string"
  21325. },
  21326. "title": {
  21327. "type": "string"
  21328. },
  21329. "description": {
  21330. "type": "string"
  21331. },
  21332. "required": {
  21333. "type": "boolean"
  21334. },
  21335. "when": {
  21336. "type": "array",
  21337. "items": {
  21338. "$ref": "#/components/schemas/Form.When1"
  21339. }
  21340. },
  21341. "type": {
  21342. "type": "string",
  21343. "enum": ["number"]
  21344. },
  21345. "minimum": {
  21346. "anyOf": [
  21347. {
  21348. "type": "number"
  21349. },
  21350. {
  21351. "type": "string",
  21352. "enum": ["NaN"]
  21353. },
  21354. {
  21355. "type": "string",
  21356. "enum": ["Infinity"]
  21357. },
  21358. {
  21359. "type": "string",
  21360. "enum": ["-Infinity"]
  21361. }
  21362. ]
  21363. },
  21364. "maximum": {
  21365. "anyOf": [
  21366. {
  21367. "type": "number"
  21368. },
  21369. {
  21370. "type": "string",
  21371. "enum": ["NaN"]
  21372. },
  21373. {
  21374. "type": "string",
  21375. "enum": ["Infinity"]
  21376. },
  21377. {
  21378. "type": "string",
  21379. "enum": ["-Infinity"]
  21380. }
  21381. ]
  21382. },
  21383. "default": {
  21384. "anyOf": [
  21385. {
  21386. "type": "number"
  21387. },
  21388. {
  21389. "type": "string",
  21390. "enum": ["NaN"]
  21391. },
  21392. {
  21393. "type": "string",
  21394. "enum": ["Infinity"]
  21395. },
  21396. {
  21397. "type": "string",
  21398. "enum": ["-Infinity"]
  21399. }
  21400. ]
  21401. }
  21402. },
  21403. "required": ["key", "type"],
  21404. "additionalProperties": false
  21405. },
  21406. "Form.IntegerField1": {
  21407. "type": "object",
  21408. "properties": {
  21409. "key": {
  21410. "type": "string"
  21411. },
  21412. "title": {
  21413. "type": "string"
  21414. },
  21415. "description": {
  21416. "type": "string"
  21417. },
  21418. "required": {
  21419. "type": "boolean"
  21420. },
  21421. "when": {
  21422. "type": "array",
  21423. "items": {
  21424. "$ref": "#/components/schemas/Form.When1"
  21425. }
  21426. },
  21427. "type": {
  21428. "type": "string",
  21429. "enum": ["integer"]
  21430. },
  21431. "minimum": {
  21432. "anyOf": [
  21433. {
  21434. "type": "number"
  21435. },
  21436. {
  21437. "type": "string",
  21438. "enum": ["NaN"]
  21439. },
  21440. {
  21441. "type": "string",
  21442. "enum": ["Infinity"]
  21443. },
  21444. {
  21445. "type": "string",
  21446. "enum": ["-Infinity"]
  21447. }
  21448. ]
  21449. },
  21450. "maximum": {
  21451. "anyOf": [
  21452. {
  21453. "type": "number"
  21454. },
  21455. {
  21456. "type": "string",
  21457. "enum": ["NaN"]
  21458. },
  21459. {
  21460. "type": "string",
  21461. "enum": ["Infinity"]
  21462. },
  21463. {
  21464. "type": "string",
  21465. "enum": ["-Infinity"]
  21466. }
  21467. ]
  21468. },
  21469. "default": {
  21470. "anyOf": [
  21471. {
  21472. "type": "number"
  21473. },
  21474. {
  21475. "type": "string",
  21476. "enum": ["NaN"]
  21477. },
  21478. {
  21479. "type": "string",
  21480. "enum": ["Infinity"]
  21481. },
  21482. {
  21483. "type": "string",
  21484. "enum": ["-Infinity"]
  21485. }
  21486. ]
  21487. }
  21488. },
  21489. "required": ["key", "type"],
  21490. "additionalProperties": false
  21491. },
  21492. "Form.BooleanField1": {
  21493. "type": "object",
  21494. "properties": {
  21495. "key": {
  21496. "type": "string"
  21497. },
  21498. "title": {
  21499. "type": "string"
  21500. },
  21501. "description": {
  21502. "type": "string"
  21503. },
  21504. "required": {
  21505. "type": "boolean"
  21506. },
  21507. "when": {
  21508. "type": "array",
  21509. "items": {
  21510. "$ref": "#/components/schemas/Form.When1"
  21511. }
  21512. },
  21513. "type": {
  21514. "type": "string",
  21515. "enum": ["boolean"]
  21516. },
  21517. "default": {
  21518. "type": "boolean"
  21519. }
  21520. },
  21521. "required": ["key", "type"],
  21522. "additionalProperties": false
  21523. },
  21524. "Form.MultiselectField1": {
  21525. "type": "object",
  21526. "properties": {
  21527. "key": {
  21528. "type": "string"
  21529. },
  21530. "title": {
  21531. "type": "string"
  21532. },
  21533. "description": {
  21534. "type": "string"
  21535. },
  21536. "required": {
  21537. "type": "boolean"
  21538. },
  21539. "when": {
  21540. "type": "array",
  21541. "items": {
  21542. "$ref": "#/components/schemas/Form.When1"
  21543. }
  21544. },
  21545. "type": {
  21546. "type": "string",
  21547. "enum": ["multiselect"]
  21548. },
  21549. "options": {
  21550. "type": "array",
  21551. "items": {
  21552. "$ref": "#/components/schemas/Form.Option"
  21553. }
  21554. },
  21555. "minItems": {
  21556. "type": "integer",
  21557. "allOf": [
  21558. {
  21559. "minimum": 0
  21560. }
  21561. ]
  21562. },
  21563. "maxItems": {
  21564. "type": "integer",
  21565. "allOf": [
  21566. {
  21567. "minimum": 0
  21568. }
  21569. ]
  21570. },
  21571. "custom": {
  21572. "type": "boolean"
  21573. },
  21574. "default": {
  21575. "type": "array",
  21576. "items": {
  21577. "type": "string"
  21578. }
  21579. }
  21580. },
  21581. "required": ["key", "type", "options"],
  21582. "additionalProperties": false
  21583. },
  21584. "Form.FormInfo1": {
  21585. "type": "object",
  21586. "properties": {
  21587. "id": {
  21588. "type": "string",
  21589. "allOf": [
  21590. {
  21591. "pattern": "^frm_"
  21592. }
  21593. ]
  21594. },
  21595. "sessionID": {
  21596. "type": "string"
  21597. },
  21598. "title": {
  21599. "type": "string"
  21600. },
  21601. "metadata": {
  21602. "$ref": "#/components/schemas/Form.Metadata1"
  21603. },
  21604. "mode": {
  21605. "type": "string",
  21606. "enum": ["form"]
  21607. },
  21608. "fields": {
  21609. "type": "array",
  21610. "items": {
  21611. "anyOf": [
  21612. {
  21613. "$ref": "#/components/schemas/Form.StringField1"
  21614. },
  21615. {
  21616. "$ref": "#/components/schemas/Form.NumberField1"
  21617. },
  21618. {
  21619. "$ref": "#/components/schemas/Form.IntegerField1"
  21620. },
  21621. {
  21622. "$ref": "#/components/schemas/Form.BooleanField1"
  21623. },
  21624. {
  21625. "$ref": "#/components/schemas/Form.MultiselectField1"
  21626. }
  21627. ]
  21628. }
  21629. }
  21630. },
  21631. "required": ["id", "sessionID", "title", "mode", "fields"],
  21632. "additionalProperties": false
  21633. },
  21634. "Form.UrlInfo1": {
  21635. "type": "object",
  21636. "properties": {
  21637. "id": {
  21638. "type": "string",
  21639. "allOf": [
  21640. {
  21641. "pattern": "^frm_"
  21642. }
  21643. ]
  21644. },
  21645. "sessionID": {
  21646. "type": "string"
  21647. },
  21648. "title": {
  21649. "type": "string"
  21650. },
  21651. "metadata": {
  21652. "$ref": "#/components/schemas/Form.Metadata1"
  21653. },
  21654. "mode": {
  21655. "type": "string",
  21656. "enum": ["url"]
  21657. },
  21658. "url": {
  21659. "type": "string"
  21660. }
  21661. },
  21662. "required": ["id", "sessionID", "title", "mode", "url"],
  21663. "additionalProperties": false
  21664. },
  21665. "form.created": {
  21666. "type": "object",
  21667. "properties": {
  21668. "id": {
  21669. "type": "string",
  21670. "allOf": [
  21671. {
  21672. "pattern": "^evt_"
  21673. }
  21674. ]
  21675. },
  21676. "created": {
  21677. "type": "number"
  21678. },
  21679. "metadata": {
  21680. "type": "object"
  21681. },
  21682. "type": {
  21683. "type": "string",
  21684. "enum": ["form.created"]
  21685. },
  21686. "location": {
  21687. "$ref": "#/components/schemas/Location.Ref"
  21688. },
  21689. "data": {
  21690. "type": "object",
  21691. "properties": {
  21692. "form": {
  21693. "anyOf": [
  21694. {
  21695. "$ref": "#/components/schemas/Form.FormInfo1"
  21696. },
  21697. {
  21698. "$ref": "#/components/schemas/Form.UrlInfo1"
  21699. }
  21700. ]
  21701. }
  21702. },
  21703. "required": ["form"],
  21704. "additionalProperties": false
  21705. }
  21706. },
  21707. "required": ["id", "created", "type", "data"],
  21708. "additionalProperties": false
  21709. },
  21710. "Form.Value1": {
  21711. "anyOf": [
  21712. {
  21713. "type": "string"
  21714. },
  21715. {
  21716. "anyOf": [
  21717. {
  21718. "type": "number"
  21719. },
  21720. {
  21721. "type": "string",
  21722. "enum": ["NaN"]
  21723. },
  21724. {
  21725. "type": "string",
  21726. "enum": ["Infinity"]
  21727. },
  21728. {
  21729. "type": "string",
  21730. "enum": ["-Infinity"]
  21731. }
  21732. ]
  21733. },
  21734. {
  21735. "type": "boolean"
  21736. },
  21737. {
  21738. "type": "array",
  21739. "items": {
  21740. "type": "string"
  21741. }
  21742. }
  21743. ]
  21744. },
  21745. "Form.Answer1": {
  21746. "type": "object",
  21747. "additionalProperties": {
  21748. "$ref": "#/components/schemas/Form.Value1"
  21749. }
  21750. },
  21751. "form.replied": {
  21752. "type": "object",
  21753. "properties": {
  21754. "id": {
  21755. "type": "string",
  21756. "allOf": [
  21757. {
  21758. "pattern": "^evt_"
  21759. }
  21760. ]
  21761. },
  21762. "created": {
  21763. "type": "number"
  21764. },
  21765. "metadata": {
  21766. "type": "object"
  21767. },
  21768. "type": {
  21769. "type": "string",
  21770. "enum": ["form.replied"]
  21771. },
  21772. "location": {
  21773. "$ref": "#/components/schemas/Location.Ref"
  21774. },
  21775. "data": {
  21776. "type": "object",
  21777. "properties": {
  21778. "id": {
  21779. "type": "string",
  21780. "allOf": [
  21781. {
  21782. "pattern": "^frm_"
  21783. }
  21784. ]
  21785. },
  21786. "sessionID": {
  21787. "type": "string"
  21788. },
  21789. "answer": {
  21790. "$ref": "#/components/schemas/Form.Answer1"
  21791. }
  21792. },
  21793. "required": ["id", "sessionID", "answer"],
  21794. "additionalProperties": false
  21795. }
  21796. },
  21797. "required": ["id", "created", "type", "data"],
  21798. "additionalProperties": false
  21799. },
  21800. "form.cancelled": {
  21801. "type": "object",
  21802. "properties": {
  21803. "id": {
  21804. "type": "string",
  21805. "allOf": [
  21806. {
  21807. "pattern": "^evt_"
  21808. }
  21809. ]
  21810. },
  21811. "created": {
  21812. "type": "number"
  21813. },
  21814. "metadata": {
  21815. "type": "object"
  21816. },
  21817. "type": {
  21818. "type": "string",
  21819. "enum": ["form.cancelled"]
  21820. },
  21821. "location": {
  21822. "$ref": "#/components/schemas/Location.Ref"
  21823. },
  21824. "data": {
  21825. "type": "object",
  21826. "properties": {
  21827. "id": {
  21828. "type": "string",
  21829. "allOf": [
  21830. {
  21831. "pattern": "^frm_"
  21832. }
  21833. ]
  21834. },
  21835. "sessionID": {
  21836. "type": "string"
  21837. }
  21838. },
  21839. "required": ["id", "sessionID"],
  21840. "additionalProperties": false
  21841. }
  21842. },
  21843. "required": ["id", "created", "type", "data"],
  21844. "additionalProperties": false
  21845. },
  21846. "SessionStatus": {
  21847. "anyOf": [
  21848. {
  21849. "type": "object",
  21850. "properties": {
  21851. "type": {
  21852. "type": "string",
  21853. "enum": ["idle"]
  21854. }
  21855. },
  21856. "required": ["type"],
  21857. "additionalProperties": false
  21858. },
  21859. {
  21860. "type": "object",
  21861. "properties": {
  21862. "type": {
  21863. "type": "string",
  21864. "enum": ["retry"]
  21865. },
  21866. "attempt": {
  21867. "type": "integer",
  21868. "allOf": [
  21869. {
  21870. "minimum": 0
  21871. }
  21872. ]
  21873. },
  21874. "message": {
  21875. "type": "string"
  21876. },
  21877. "action": {
  21878. "type": "object",
  21879. "properties": {
  21880. "reason": {
  21881. "type": "string"
  21882. },
  21883. "provider": {
  21884. "type": "string"
  21885. },
  21886. "title": {
  21887. "type": "string"
  21888. },
  21889. "message": {
  21890. "type": "string"
  21891. },
  21892. "label": {
  21893. "type": "string"
  21894. },
  21895. "link": {
  21896. "type": "string"
  21897. }
  21898. },
  21899. "required": ["reason", "provider", "title", "message", "label"],
  21900. "additionalProperties": false
  21901. },
  21902. "next": {
  21903. "type": "integer",
  21904. "allOf": [
  21905. {
  21906. "minimum": 0
  21907. }
  21908. ]
  21909. }
  21910. },
  21911. "required": ["type", "attempt", "message", "next"],
  21912. "additionalProperties": false
  21913. },
  21914. {
  21915. "type": "object",
  21916. "properties": {
  21917. "type": {
  21918. "type": "string",
  21919. "enum": ["busy"]
  21920. }
  21921. },
  21922. "required": ["type"],
  21923. "additionalProperties": false
  21924. }
  21925. ]
  21926. },
  21927. "session.status": {
  21928. "type": "object",
  21929. "properties": {
  21930. "id": {
  21931. "type": "string",
  21932. "allOf": [
  21933. {
  21934. "pattern": "^evt_"
  21935. }
  21936. ]
  21937. },
  21938. "created": {
  21939. "type": "number"
  21940. },
  21941. "metadata": {
  21942. "type": "object"
  21943. },
  21944. "type": {
  21945. "type": "string",
  21946. "enum": ["session.status"]
  21947. },
  21948. "location": {
  21949. "$ref": "#/components/schemas/Location.Ref"
  21950. },
  21951. "data": {
  21952. "type": "object",
  21953. "properties": {
  21954. "sessionID": {
  21955. "type": "string",
  21956. "allOf": [
  21957. {
  21958. "pattern": "^ses"
  21959. }
  21960. ]
  21961. },
  21962. "status": {
  21963. "$ref": "#/components/schemas/SessionStatus"
  21964. }
  21965. },
  21966. "required": ["sessionID", "status"],
  21967. "additionalProperties": false
  21968. }
  21969. },
  21970. "required": ["id", "created", "type", "data"],
  21971. "additionalProperties": false
  21972. },
  21973. "session.idle": {
  21974. "type": "object",
  21975. "properties": {
  21976. "id": {
  21977. "type": "string",
  21978. "allOf": [
  21979. {
  21980. "pattern": "^evt_"
  21981. }
  21982. ]
  21983. },
  21984. "created": {
  21985. "type": "number"
  21986. },
  21987. "metadata": {
  21988. "type": "object"
  21989. },
  21990. "type": {
  21991. "type": "string",
  21992. "enum": ["session.idle"]
  21993. },
  21994. "location": {
  21995. "$ref": "#/components/schemas/Location.Ref"
  21996. },
  21997. "data": {
  21998. "type": "object",
  21999. "properties": {
  22000. "sessionID": {
  22001. "type": "string",
  22002. "allOf": [
  22003. {
  22004. "pattern": "^ses"
  22005. }
  22006. ]
  22007. }
  22008. },
  22009. "required": ["sessionID"],
  22010. "additionalProperties": false
  22011. }
  22012. },
  22013. "required": ["id", "created", "type", "data"],
  22014. "additionalProperties": false
  22015. },
  22016. "tui.prompt.append": {
  22017. "type": "object",
  22018. "properties": {
  22019. "id": {
  22020. "type": "string",
  22021. "allOf": [
  22022. {
  22023. "pattern": "^evt_"
  22024. }
  22025. ]
  22026. },
  22027. "created": {
  22028. "type": "number"
  22029. },
  22030. "metadata": {
  22031. "type": "object"
  22032. },
  22033. "type": {
  22034. "type": "string",
  22035. "enum": ["tui.prompt.append"]
  22036. },
  22037. "location": {
  22038. "$ref": "#/components/schemas/Location.Ref"
  22039. },
  22040. "data": {
  22041. "type": "object",
  22042. "properties": {
  22043. "text": {
  22044. "type": "string"
  22045. }
  22046. },
  22047. "required": ["text"],
  22048. "additionalProperties": false
  22049. }
  22050. },
  22051. "required": ["id", "created", "type", "data"],
  22052. "additionalProperties": false
  22053. },
  22054. "tui.command.execute": {
  22055. "type": "object",
  22056. "properties": {
  22057. "id": {
  22058. "type": "string",
  22059. "allOf": [
  22060. {
  22061. "pattern": "^evt_"
  22062. }
  22063. ]
  22064. },
  22065. "created": {
  22066. "type": "number"
  22067. },
  22068. "metadata": {
  22069. "type": "object"
  22070. },
  22071. "type": {
  22072. "type": "string",
  22073. "enum": ["tui.command.execute"]
  22074. },
  22075. "location": {
  22076. "$ref": "#/components/schemas/Location.Ref"
  22077. },
  22078. "data": {
  22079. "type": "object",
  22080. "properties": {
  22081. "command": {
  22082. "anyOf": [
  22083. {
  22084. "type": "string",
  22085. "enum": [
  22086. "session.list",
  22087. "session.new",
  22088. "session.share",
  22089. "session.interrupt",
  22090. "session.background",
  22091. "session.compact",
  22092. "session.page.up",
  22093. "session.page.down",
  22094. "session.line.up",
  22095. "session.line.down",
  22096. "session.half.page.up",
  22097. "session.half.page.down",
  22098. "session.first",
  22099. "session.last",
  22100. "prompt.clear",
  22101. "prompt.submit",
  22102. "agent.cycle"
  22103. ]
  22104. },
  22105. {
  22106. "type": "string"
  22107. }
  22108. ]
  22109. }
  22110. },
  22111. "required": ["command"],
  22112. "additionalProperties": false
  22113. }
  22114. },
  22115. "required": ["id", "created", "type", "data"],
  22116. "additionalProperties": false
  22117. },
  22118. "tui.toast.show": {
  22119. "type": "object",
  22120. "properties": {
  22121. "id": {
  22122. "type": "string",
  22123. "allOf": [
  22124. {
  22125. "pattern": "^evt_"
  22126. }
  22127. ]
  22128. },
  22129. "created": {
  22130. "type": "number"
  22131. },
  22132. "metadata": {
  22133. "type": "object"
  22134. },
  22135. "type": {
  22136. "type": "string",
  22137. "enum": ["tui.toast.show"]
  22138. },
  22139. "location": {
  22140. "$ref": "#/components/schemas/Location.Ref"
  22141. },
  22142. "data": {
  22143. "type": "object",
  22144. "properties": {
  22145. "title": {
  22146. "type": "string"
  22147. },
  22148. "message": {
  22149. "type": "string"
  22150. },
  22151. "variant": {
  22152. "type": "string",
  22153. "enum": ["info", "success", "warning", "error"]
  22154. },
  22155. "duration": {
  22156. "anyOf": [
  22157. {
  22158. "type": "integer",
  22159. "allOf": [
  22160. {
  22161. "exclusiveMinimum": 0
  22162. }
  22163. ]
  22164. },
  22165. {
  22166. "type": "null"
  22167. }
  22168. ]
  22169. }
  22170. },
  22171. "required": ["message", "variant"],
  22172. "additionalProperties": false
  22173. }
  22174. },
  22175. "required": ["id", "created", "type", "data"],
  22176. "additionalProperties": false
  22177. },
  22178. "tui.session.select": {
  22179. "type": "object",
  22180. "properties": {
  22181. "id": {
  22182. "type": "string",
  22183. "allOf": [
  22184. {
  22185. "pattern": "^evt_"
  22186. }
  22187. ]
  22188. },
  22189. "created": {
  22190. "type": "number"
  22191. },
  22192. "metadata": {
  22193. "type": "object"
  22194. },
  22195. "type": {
  22196. "type": "string",
  22197. "enum": ["tui.session.select"]
  22198. },
  22199. "location": {
  22200. "$ref": "#/components/schemas/Location.Ref"
  22201. },
  22202. "data": {
  22203. "type": "object",
  22204. "properties": {
  22205. "sessionID": {
  22206. "type": "string",
  22207. "allOf": [
  22208. {
  22209. "pattern": "^ses",
  22210. "description": "Session ID to navigate to"
  22211. }
  22212. ]
  22213. }
  22214. },
  22215. "required": ["sessionID"],
  22216. "additionalProperties": false
  22217. }
  22218. },
  22219. "required": ["id", "created", "type", "data"],
  22220. "additionalProperties": false
  22221. },
  22222. "installation.updated": {
  22223. "type": "object",
  22224. "properties": {
  22225. "id": {
  22226. "type": "string",
  22227. "allOf": [
  22228. {
  22229. "pattern": "^evt_"
  22230. }
  22231. ]
  22232. },
  22233. "created": {
  22234. "type": "number"
  22235. },
  22236. "metadata": {
  22237. "type": "object"
  22238. },
  22239. "type": {
  22240. "type": "string",
  22241. "enum": ["installation.updated"]
  22242. },
  22243. "location": {
  22244. "$ref": "#/components/schemas/Location.Ref"
  22245. },
  22246. "data": {
  22247. "type": "object",
  22248. "properties": {
  22249. "version": {
  22250. "type": "string"
  22251. }
  22252. },
  22253. "required": ["version"],
  22254. "additionalProperties": false
  22255. }
  22256. },
  22257. "required": ["id", "created", "type", "data"],
  22258. "additionalProperties": false
  22259. },
  22260. "installation.update-available": {
  22261. "type": "object",
  22262. "properties": {
  22263. "id": {
  22264. "type": "string",
  22265. "allOf": [
  22266. {
  22267. "pattern": "^evt_"
  22268. }
  22269. ]
  22270. },
  22271. "created": {
  22272. "type": "number"
  22273. },
  22274. "metadata": {
  22275. "type": "object"
  22276. },
  22277. "type": {
  22278. "type": "string",
  22279. "enum": ["installation.update-available"]
  22280. },
  22281. "location": {
  22282. "$ref": "#/components/schemas/Location.Ref"
  22283. },
  22284. "data": {
  22285. "type": "object",
  22286. "properties": {
  22287. "version": {
  22288. "type": "string"
  22289. }
  22290. },
  22291. "required": ["version"],
  22292. "additionalProperties": false
  22293. }
  22294. },
  22295. "required": ["id", "created", "type", "data"],
  22296. "additionalProperties": false
  22297. },
  22298. "vcs.branch.updated": {
  22299. "type": "object",
  22300. "properties": {
  22301. "id": {
  22302. "type": "string",
  22303. "allOf": [
  22304. {
  22305. "pattern": "^evt_"
  22306. }
  22307. ]
  22308. },
  22309. "created": {
  22310. "type": "number"
  22311. },
  22312. "metadata": {
  22313. "type": "object"
  22314. },
  22315. "type": {
  22316. "type": "string",
  22317. "enum": ["vcs.branch.updated"]
  22318. },
  22319. "location": {
  22320. "$ref": "#/components/schemas/Location.Ref"
  22321. },
  22322. "data": {
  22323. "type": "object",
  22324. "properties": {
  22325. "branch": {
  22326. "type": "string"
  22327. }
  22328. },
  22329. "additionalProperties": false
  22330. }
  22331. },
  22332. "required": ["id", "created", "type", "data"],
  22333. "additionalProperties": false
  22334. },
  22335. "mcp.status.changed": {
  22336. "type": "object",
  22337. "properties": {
  22338. "id": {
  22339. "type": "string",
  22340. "allOf": [
  22341. {
  22342. "pattern": "^evt_"
  22343. }
  22344. ]
  22345. },
  22346. "created": {
  22347. "type": "number"
  22348. },
  22349. "metadata": {
  22350. "type": "object"
  22351. },
  22352. "type": {
  22353. "type": "string",
  22354. "enum": ["mcp.status.changed"]
  22355. },
  22356. "location": {
  22357. "$ref": "#/components/schemas/Location.Ref"
  22358. },
  22359. "data": {
  22360. "type": "object",
  22361. "properties": {
  22362. "server": {
  22363. "type": "string"
  22364. }
  22365. },
  22366. "required": ["server"],
  22367. "additionalProperties": false
  22368. }
  22369. },
  22370. "required": ["id", "created", "type", "data"],
  22371. "additionalProperties": false
  22372. },
  22373. "mcp.resources.changed": {
  22374. "type": "object",
  22375. "properties": {
  22376. "id": {
  22377. "type": "string",
  22378. "allOf": [
  22379. {
  22380. "pattern": "^evt_"
  22381. }
  22382. ]
  22383. },
  22384. "created": {
  22385. "type": "number"
  22386. },
  22387. "metadata": {
  22388. "type": "object"
  22389. },
  22390. "type": {
  22391. "type": "string",
  22392. "enum": ["mcp.resources.changed"]
  22393. },
  22394. "location": {
  22395. "$ref": "#/components/schemas/Location.Ref"
  22396. },
  22397. "data": {
  22398. "type": "object",
  22399. "properties": {
  22400. "server": {
  22401. "type": "string"
  22402. }
  22403. },
  22404. "required": ["server"],
  22405. "additionalProperties": false
  22406. }
  22407. },
  22408. "required": ["id", "created", "type", "data"],
  22409. "additionalProperties": false
  22410. },
  22411. "permission.asked": {
  22412. "type": "object",
  22413. "properties": {
  22414. "id": {
  22415. "type": "string",
  22416. "allOf": [
  22417. {
  22418. "pattern": "^evt_"
  22419. }
  22420. ]
  22421. },
  22422. "created": {
  22423. "type": "number"
  22424. },
  22425. "metadata": {
  22426. "type": "object"
  22427. },
  22428. "type": {
  22429. "type": "string",
  22430. "enum": ["permission.asked"]
  22431. },
  22432. "location": {
  22433. "$ref": "#/components/schemas/Location.Ref"
  22434. },
  22435. "data": {
  22436. "type": "object",
  22437. "properties": {
  22438. "id": {
  22439. "type": "string",
  22440. "allOf": [
  22441. {
  22442. "pattern": "^per"
  22443. }
  22444. ]
  22445. },
  22446. "sessionID": {
  22447. "type": "string",
  22448. "allOf": [
  22449. {
  22450. "pattern": "^ses"
  22451. }
  22452. ]
  22453. },
  22454. "permission": {
  22455. "type": "string"
  22456. },
  22457. "patterns": {
  22458. "type": "array",
  22459. "items": {
  22460. "type": "string"
  22461. }
  22462. },
  22463. "metadata": {
  22464. "type": "object"
  22465. },
  22466. "always": {
  22467. "type": "array",
  22468. "items": {
  22469. "type": "string"
  22470. }
  22471. },
  22472. "tool": {
  22473. "anyOf": [
  22474. {
  22475. "type": "object",
  22476. "properties": {
  22477. "messageID": {
  22478. "type": "string"
  22479. },
  22480. "callID": {
  22481. "type": "string"
  22482. }
  22483. },
  22484. "required": ["messageID", "callID"],
  22485. "additionalProperties": false
  22486. },
  22487. {
  22488. "type": "null"
  22489. }
  22490. ]
  22491. }
  22492. },
  22493. "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"],
  22494. "additionalProperties": false
  22495. }
  22496. },
  22497. "required": ["id", "created", "type", "data"],
  22498. "additionalProperties": false
  22499. },
  22500. "permission.replied": {
  22501. "type": "object",
  22502. "properties": {
  22503. "id": {
  22504. "type": "string",
  22505. "allOf": [
  22506. {
  22507. "pattern": "^evt_"
  22508. }
  22509. ]
  22510. },
  22511. "created": {
  22512. "type": "number"
  22513. },
  22514. "metadata": {
  22515. "type": "object"
  22516. },
  22517. "type": {
  22518. "type": "string",
  22519. "enum": ["permission.replied"]
  22520. },
  22521. "location": {
  22522. "$ref": "#/components/schemas/Location.Ref"
  22523. },
  22524. "data": {
  22525. "type": "object",
  22526. "properties": {
  22527. "sessionID": {
  22528. "type": "string",
  22529. "allOf": [
  22530. {
  22531. "pattern": "^ses"
  22532. }
  22533. ]
  22534. },
  22535. "requestID": {
  22536. "type": "string",
  22537. "allOf": [
  22538. {
  22539. "pattern": "^per"
  22540. }
  22541. ]
  22542. },
  22543. "reply": {
  22544. "type": "string",
  22545. "enum": ["once", "always", "reject"]
  22546. }
  22547. },
  22548. "required": ["sessionID", "requestID", "reply"],
  22549. "additionalProperties": false
  22550. }
  22551. },
  22552. "required": ["id", "created", "type", "data"],
  22553. "additionalProperties": false
  22554. },
  22555. "QuestionOption": {
  22556. "type": "object",
  22557. "properties": {
  22558. "label": {
  22559. "type": "string",
  22560. "description": "Display text (1-5 words, concise)"
  22561. },
  22562. "description": {
  22563. "type": "string",
  22564. "description": "Explanation of choice"
  22565. }
  22566. },
  22567. "required": ["label", "description"],
  22568. "additionalProperties": false
  22569. },
  22570. "QuestionInfo": {
  22571. "type": "object",
  22572. "properties": {
  22573. "question": {
  22574. "type": "string",
  22575. "description": "Complete question"
  22576. },
  22577. "header": {
  22578. "type": "string",
  22579. "description": "Very short label (max 30 chars)"
  22580. },
  22581. "options": {
  22582. "type": "array",
  22583. "items": {
  22584. "$ref": "#/components/schemas/QuestionOption"
  22585. },
  22586. "description": "Available choices"
  22587. },
  22588. "multiple": {
  22589. "anyOf": [
  22590. {
  22591. "type": "boolean"
  22592. },
  22593. {
  22594. "type": "null"
  22595. }
  22596. ],
  22597. "description": "Allow selecting multiple choices"
  22598. },
  22599. "custom": {
  22600. "anyOf": [
  22601. {
  22602. "type": "boolean"
  22603. },
  22604. {
  22605. "type": "null"
  22606. }
  22607. ],
  22608. "description": "Allow typing a custom answer (default: true)"
  22609. }
  22610. },
  22611. "required": ["question", "header", "options"],
  22612. "additionalProperties": false
  22613. },
  22614. "QuestionTool": {
  22615. "type": "object",
  22616. "properties": {
  22617. "messageID": {
  22618. "type": "string",
  22619. "allOf": [
  22620. {
  22621. "pattern": "^msg"
  22622. }
  22623. ]
  22624. },
  22625. "callID": {
  22626. "type": "string"
  22627. }
  22628. },
  22629. "required": ["messageID", "callID"],
  22630. "additionalProperties": false
  22631. },
  22632. "question.asked": {
  22633. "type": "object",
  22634. "properties": {
  22635. "id": {
  22636. "type": "string",
  22637. "allOf": [
  22638. {
  22639. "pattern": "^evt_"
  22640. }
  22641. ]
  22642. },
  22643. "created": {
  22644. "type": "number"
  22645. },
  22646. "metadata": {
  22647. "type": "object"
  22648. },
  22649. "type": {
  22650. "type": "string",
  22651. "enum": ["question.asked"]
  22652. },
  22653. "location": {
  22654. "$ref": "#/components/schemas/Location.Ref"
  22655. },
  22656. "data": {
  22657. "type": "object",
  22658. "properties": {
  22659. "id": {
  22660. "type": "string",
  22661. "allOf": [
  22662. {
  22663. "pattern": "^que"
  22664. }
  22665. ]
  22666. },
  22667. "sessionID": {
  22668. "type": "string",
  22669. "allOf": [
  22670. {
  22671. "pattern": "^ses"
  22672. }
  22673. ]
  22674. },
  22675. "questions": {
  22676. "type": "array",
  22677. "items": {
  22678. "$ref": "#/components/schemas/QuestionInfo"
  22679. },
  22680. "description": "Questions to ask"
  22681. },
  22682. "tool": {
  22683. "anyOf": [
  22684. {
  22685. "$ref": "#/components/schemas/QuestionTool"
  22686. },
  22687. {
  22688. "type": "null"
  22689. }
  22690. ]
  22691. }
  22692. },
  22693. "required": ["id", "sessionID", "questions"],
  22694. "additionalProperties": false
  22695. }
  22696. },
  22697. "required": ["id", "created", "type", "data"],
  22698. "additionalProperties": false
  22699. },
  22700. "QuestionAnswer": {
  22701. "type": "array",
  22702. "items": {
  22703. "type": "string"
  22704. }
  22705. },
  22706. "question.replied": {
  22707. "type": "object",
  22708. "properties": {
  22709. "id": {
  22710. "type": "string",
  22711. "allOf": [
  22712. {
  22713. "pattern": "^evt_"
  22714. }
  22715. ]
  22716. },
  22717. "created": {
  22718. "type": "number"
  22719. },
  22720. "metadata": {
  22721. "type": "object"
  22722. },
  22723. "type": {
  22724. "type": "string",
  22725. "enum": ["question.replied"]
  22726. },
  22727. "location": {
  22728. "$ref": "#/components/schemas/Location.Ref"
  22729. },
  22730. "data": {
  22731. "type": "object",
  22732. "properties": {
  22733. "sessionID": {
  22734. "type": "string",
  22735. "allOf": [
  22736. {
  22737. "pattern": "^ses"
  22738. }
  22739. ]
  22740. },
  22741. "requestID": {
  22742. "type": "string",
  22743. "allOf": [
  22744. {
  22745. "pattern": "^que"
  22746. }
  22747. ]
  22748. },
  22749. "answers": {
  22750. "type": "array",
  22751. "items": {
  22752. "$ref": "#/components/schemas/QuestionAnswer"
  22753. }
  22754. }
  22755. },
  22756. "required": ["sessionID", "requestID", "answers"],
  22757. "additionalProperties": false
  22758. }
  22759. },
  22760. "required": ["id", "created", "type", "data"],
  22761. "additionalProperties": false
  22762. },
  22763. "question.rejected": {
  22764. "type": "object",
  22765. "properties": {
  22766. "id": {
  22767. "type": "string",
  22768. "allOf": [
  22769. {
  22770. "pattern": "^evt_"
  22771. }
  22772. ]
  22773. },
  22774. "created": {
  22775. "type": "number"
  22776. },
  22777. "metadata": {
  22778. "type": "object"
  22779. },
  22780. "type": {
  22781. "type": "string",
  22782. "enum": ["question.rejected"]
  22783. },
  22784. "location": {
  22785. "$ref": "#/components/schemas/Location.Ref"
  22786. },
  22787. "data": {
  22788. "type": "object",
  22789. "properties": {
  22790. "sessionID": {
  22791. "type": "string",
  22792. "allOf": [
  22793. {
  22794. "pattern": "^ses"
  22795. }
  22796. ]
  22797. },
  22798. "requestID": {
  22799. "type": "string",
  22800. "allOf": [
  22801. {
  22802. "pattern": "^que"
  22803. }
  22804. ]
  22805. }
  22806. },
  22807. "required": ["sessionID", "requestID"],
  22808. "additionalProperties": false
  22809. }
  22810. },
  22811. "required": ["id", "created", "type", "data"],
  22812. "additionalProperties": false
  22813. },
  22814. "session.error": {
  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": ["session.error"]
  22834. },
  22835. "location": {
  22836. "$ref": "#/components/schemas/Location.Ref"
  22837. },
  22838. "data": {
  22839. "type": "object",
  22840. "properties": {
  22841. "sessionID": {
  22842. "anyOf": [
  22843. {
  22844. "type": "string",
  22845. "allOf": [
  22846. {
  22847. "pattern": "^ses"
  22848. }
  22849. ]
  22850. },
  22851. {
  22852. "type": "null"
  22853. }
  22854. ]
  22855. },
  22856. "error": {
  22857. "anyOf": [
  22858. {
  22859. "anyOf": [
  22860. {
  22861. "$ref": "#/components/schemas/ProviderAuthError"
  22862. },
  22863. {
  22864. "$ref": "#/components/schemas/UnknownError1"
  22865. },
  22866. {
  22867. "$ref": "#/components/schemas/MessageOutputLengthError"
  22868. },
  22869. {
  22870. "$ref": "#/components/schemas/MessageAbortedError"
  22871. },
  22872. {
  22873. "$ref": "#/components/schemas/StructuredOutputError"
  22874. },
  22875. {
  22876. "$ref": "#/components/schemas/ContextOverflowError"
  22877. },
  22878. {
  22879. "$ref": "#/components/schemas/ContentFilterError"
  22880. },
  22881. {
  22882. "$ref": "#/components/schemas/APIError"
  22883. }
  22884. ]
  22885. },
  22886. {
  22887. "type": "null"
  22888. }
  22889. ]
  22890. }
  22891. },
  22892. "additionalProperties": false
  22893. }
  22894. },
  22895. "required": ["id", "created", "type", "data"],
  22896. "additionalProperties": false
  22897. },
  22898. "V2Event.server.connected": {
  22899. "type": "object",
  22900. "properties": {
  22901. "id": {
  22902. "type": "string",
  22903. "allOf": [
  22904. {
  22905. "pattern": "^evt_"
  22906. }
  22907. ]
  22908. },
  22909. "metadata": {
  22910. "anyOf": [
  22911. {
  22912. "type": "object"
  22913. },
  22914. {
  22915. "type": "null"
  22916. }
  22917. ]
  22918. },
  22919. "location": {
  22920. "anyOf": [
  22921. {
  22922. "$ref": "#/components/schemas/Location.Ref"
  22923. },
  22924. {
  22925. "type": "null"
  22926. }
  22927. ]
  22928. },
  22929. "type": {
  22930. "type": "string",
  22931. "enum": ["server.connected"]
  22932. },
  22933. "data": {
  22934. "anyOf": [
  22935. {
  22936. "type": "object"
  22937. },
  22938. {
  22939. "type": "array"
  22940. }
  22941. ]
  22942. }
  22943. },
  22944. "required": ["id", "type", "data"],
  22945. "additionalProperties": false
  22946. },
  22947. "V2Event": {
  22948. "anyOf": [
  22949. {
  22950. "$ref": "#/components/schemas/models-dev.refreshed"
  22951. },
  22952. {
  22953. "$ref": "#/components/schemas/integration.updated"
  22954. },
  22955. {
  22956. "$ref": "#/components/schemas/integration.connection.updated"
  22957. },
  22958. {
  22959. "$ref": "#/components/schemas/catalog.updated"
  22960. },
  22961. {
  22962. "$ref": "#/components/schemas/agent.updated"
  22963. },
  22964. {
  22965. "$ref": "#/components/schemas/session.created"
  22966. },
  22967. {
  22968. "$ref": "#/components/schemas/session.updated"
  22969. },
  22970. {
  22971. "$ref": "#/components/schemas/session.deleted1"
  22972. },
  22973. {
  22974. "$ref": "#/components/schemas/message.updated"
  22975. },
  22976. {
  22977. "$ref": "#/components/schemas/message.removed"
  22978. },
  22979. {
  22980. "$ref": "#/components/schemas/message.part.updated"
  22981. },
  22982. {
  22983. "$ref": "#/components/schemas/message.part.removed"
  22984. },
  22985. {
  22986. "$ref": "#/components/schemas/session.agent.selected"
  22987. },
  22988. {
  22989. "$ref": "#/components/schemas/session.model.selected"
  22990. },
  22991. {
  22992. "$ref": "#/components/schemas/session.moved"
  22993. },
  22994. {
  22995. "$ref": "#/components/schemas/session.renamed"
  22996. },
  22997. {
  22998. "$ref": "#/components/schemas/session.usage.updated"
  22999. },
  23000. {
  23001. "$ref": "#/components/schemas/session.deleted"
  23002. },
  23003. {
  23004. "$ref": "#/components/schemas/session.forked"
  23005. },
  23006. {
  23007. "$ref": "#/components/schemas/session.prompt.promoted"
  23008. },
  23009. {
  23010. "$ref": "#/components/schemas/session.prompt.admitted"
  23011. },
  23012. {
  23013. "$ref": "#/components/schemas/session.execution.started"
  23014. },
  23015. {
  23016. "$ref": "#/components/schemas/session.execution.succeeded"
  23017. },
  23018. {
  23019. "$ref": "#/components/schemas/session.execution.failed"
  23020. },
  23021. {
  23022. "$ref": "#/components/schemas/session.execution.interrupted"
  23023. },
  23024. {
  23025. "$ref": "#/components/schemas/session.instructions.updated"
  23026. },
  23027. {
  23028. "$ref": "#/components/schemas/session.synthetic"
  23029. },
  23030. {
  23031. "$ref": "#/components/schemas/session.skill.activated"
  23032. },
  23033. {
  23034. "$ref": "#/components/schemas/session.shell.started"
  23035. },
  23036. {
  23037. "$ref": "#/components/schemas/session.shell.ended"
  23038. },
  23039. {
  23040. "$ref": "#/components/schemas/session.step.started"
  23041. },
  23042. {
  23043. "$ref": "#/components/schemas/session.step.ended"
  23044. },
  23045. {
  23046. "$ref": "#/components/schemas/session.step.failed"
  23047. },
  23048. {
  23049. "$ref": "#/components/schemas/session.text.started"
  23050. },
  23051. {
  23052. "$ref": "#/components/schemas/session.text.delta"
  23053. },
  23054. {
  23055. "$ref": "#/components/schemas/session.text.ended"
  23056. },
  23057. {
  23058. "$ref": "#/components/schemas/session.reasoning.started"
  23059. },
  23060. {
  23061. "$ref": "#/components/schemas/session.reasoning.delta"
  23062. },
  23063. {
  23064. "$ref": "#/components/schemas/session.reasoning.ended"
  23065. },
  23066. {
  23067. "$ref": "#/components/schemas/session.tool.input.started"
  23068. },
  23069. {
  23070. "$ref": "#/components/schemas/session.tool.input.delta"
  23071. },
  23072. {
  23073. "$ref": "#/components/schemas/session.tool.input.ended"
  23074. },
  23075. {
  23076. "$ref": "#/components/schemas/session.tool.called"
  23077. },
  23078. {
  23079. "$ref": "#/components/schemas/session.tool.progress"
  23080. },
  23081. {
  23082. "$ref": "#/components/schemas/session.tool.success"
  23083. },
  23084. {
  23085. "$ref": "#/components/schemas/session.tool.failed"
  23086. },
  23087. {
  23088. "$ref": "#/components/schemas/session.retry.scheduled"
  23089. },
  23090. {
  23091. "$ref": "#/components/schemas/session.compaction.admitted"
  23092. },
  23093. {
  23094. "$ref": "#/components/schemas/session.compaction.started"
  23095. },
  23096. {
  23097. "$ref": "#/components/schemas/session.compaction.delta"
  23098. },
  23099. {
  23100. "$ref": "#/components/schemas/session.compaction.ended"
  23101. },
  23102. {
  23103. "$ref": "#/components/schemas/session.compaction.failed"
  23104. },
  23105. {
  23106. "$ref": "#/components/schemas/session.revert.staged"
  23107. },
  23108. {
  23109. "$ref": "#/components/schemas/session.revert.cleared"
  23110. },
  23111. {
  23112. "$ref": "#/components/schemas/session.revert.committed"
  23113. },
  23114. {
  23115. "$ref": "#/components/schemas/filesystem.changed"
  23116. },
  23117. {
  23118. "$ref": "#/components/schemas/reference.updated"
  23119. },
  23120. {
  23121. "$ref": "#/components/schemas/permission.v2.asked"
  23122. },
  23123. {
  23124. "$ref": "#/components/schemas/permission.v2.replied"
  23125. },
  23126. {
  23127. "$ref": "#/components/schemas/plugin.added"
  23128. },
  23129. {
  23130. "$ref": "#/components/schemas/plugin.updated"
  23131. },
  23132. {
  23133. "$ref": "#/components/schemas/project.directories.updated"
  23134. },
  23135. {
  23136. "$ref": "#/components/schemas/command.updated"
  23137. },
  23138. {
  23139. "$ref": "#/components/schemas/config.updated"
  23140. },
  23141. {
  23142. "$ref": "#/components/schemas/skill.updated"
  23143. },
  23144. {
  23145. "$ref": "#/components/schemas/pty.created"
  23146. },
  23147. {
  23148. "$ref": "#/components/schemas/pty.updated"
  23149. },
  23150. {
  23151. "$ref": "#/components/schemas/pty.exited"
  23152. },
  23153. {
  23154. "$ref": "#/components/schemas/pty.deleted"
  23155. },
  23156. {
  23157. "$ref": "#/components/schemas/shell.created"
  23158. },
  23159. {
  23160. "$ref": "#/components/schemas/shell.exited"
  23161. },
  23162. {
  23163. "$ref": "#/components/schemas/shell.deleted"
  23164. },
  23165. {
  23166. "$ref": "#/components/schemas/question.v2.asked"
  23167. },
  23168. {
  23169. "$ref": "#/components/schemas/question.v2.replied"
  23170. },
  23171. {
  23172. "$ref": "#/components/schemas/question.v2.rejected"
  23173. },
  23174. {
  23175. "$ref": "#/components/schemas/form.created"
  23176. },
  23177. {
  23178. "$ref": "#/components/schemas/form.replied"
  23179. },
  23180. {
  23181. "$ref": "#/components/schemas/form.cancelled"
  23182. },
  23183. {
  23184. "$ref": "#/components/schemas/session.status"
  23185. },
  23186. {
  23187. "$ref": "#/components/schemas/session.idle"
  23188. },
  23189. {
  23190. "$ref": "#/components/schemas/tui.prompt.append"
  23191. },
  23192. {
  23193. "$ref": "#/components/schemas/tui.command.execute"
  23194. },
  23195. {
  23196. "$ref": "#/components/schemas/tui.toast.show"
  23197. },
  23198. {
  23199. "$ref": "#/components/schemas/tui.session.select"
  23200. },
  23201. {
  23202. "$ref": "#/components/schemas/installation.updated"
  23203. },
  23204. {
  23205. "$ref": "#/components/schemas/installation.update-available"
  23206. },
  23207. {
  23208. "$ref": "#/components/schemas/vcs.branch.updated"
  23209. },
  23210. {
  23211. "$ref": "#/components/schemas/mcp.status.changed"
  23212. },
  23213. {
  23214. "$ref": "#/components/schemas/mcp.resources.changed"
  23215. },
  23216. {
  23217. "$ref": "#/components/schemas/permission.asked"
  23218. },
  23219. {
  23220. "$ref": "#/components/schemas/permission.replied"
  23221. },
  23222. {
  23223. "$ref": "#/components/schemas/question.asked"
  23224. },
  23225. {
  23226. "$ref": "#/components/schemas/question.replied"
  23227. },
  23228. {
  23229. "$ref": "#/components/schemas/question.rejected"
  23230. },
  23231. {
  23232. "$ref": "#/components/schemas/session.error"
  23233. },
  23234. {
  23235. "$ref": "#/components/schemas/V2Event.server.connected"
  23236. }
  23237. ]
  23238. },
  23239. "V2EventStream": {
  23240. "type": "string",
  23241. "contentSchema": {
  23242. "$ref": "#/components/schemas/V2Event"
  23243. },
  23244. "contentMediaType": "application/json"
  23245. },
  23246. "PtyNotFoundError": {
  23247. "type": "object",
  23248. "properties": {
  23249. "_tag": {
  23250. "type": "string",
  23251. "enum": ["PtyNotFoundError"]
  23252. },
  23253. "ptyID": {
  23254. "type": "string"
  23255. },
  23256. "message": {
  23257. "type": "string"
  23258. }
  23259. },
  23260. "required": ["_tag", "ptyID", "message"],
  23261. "additionalProperties": false
  23262. },
  23263. "PtyTicket.ConnectToken": {
  23264. "type": "object",
  23265. "properties": {
  23266. "ticket": {
  23267. "type": "string"
  23268. },
  23269. "expires_in": {
  23270. "type": "integer",
  23271. "allOf": [
  23272. {
  23273. "exclusiveMinimum": 0
  23274. }
  23275. ]
  23276. }
  23277. },
  23278. "required": ["ticket", "expires_in"],
  23279. "additionalProperties": false
  23280. },
  23281. "ForbiddenError": {
  23282. "type": "object",
  23283. "properties": {
  23284. "_tag": {
  23285. "type": "string",
  23286. "enum": ["ForbiddenError"]
  23287. },
  23288. "message": {
  23289. "type": "string"
  23290. }
  23291. },
  23292. "required": ["_tag", "message"],
  23293. "additionalProperties": false
  23294. },
  23295. "Shell1": {
  23296. "type": "object",
  23297. "properties": {
  23298. "id": {
  23299. "type": "string",
  23300. "allOf": [
  23301. {
  23302. "pattern": "^sh_"
  23303. }
  23304. ]
  23305. },
  23306. "status": {
  23307. "type": "string",
  23308. "enum": ["running", "exited", "timeout", "killed"]
  23309. },
  23310. "command": {
  23311. "type": "string"
  23312. },
  23313. "cwd": {
  23314. "type": "string"
  23315. },
  23316. "shell": {
  23317. "type": "string"
  23318. },
  23319. "file": {
  23320. "type": "string"
  23321. },
  23322. "pid": {
  23323. "type": "integer",
  23324. "allOf": [
  23325. {
  23326. "minimum": 0
  23327. }
  23328. ]
  23329. },
  23330. "exit": {
  23331. "anyOf": [
  23332. {
  23333. "anyOf": [
  23334. {
  23335. "type": "number"
  23336. },
  23337. {
  23338. "type": "string",
  23339. "enum": ["NaN"]
  23340. },
  23341. {
  23342. "type": "string",
  23343. "enum": ["Infinity"]
  23344. },
  23345. {
  23346. "type": "string",
  23347. "enum": ["-Infinity"]
  23348. }
  23349. ]
  23350. },
  23351. {
  23352. "type": "string",
  23353. "enum": ["Infinity", "-Infinity", "NaN"]
  23354. }
  23355. ]
  23356. },
  23357. "metadata": {
  23358. "type": "object"
  23359. },
  23360. "time": {
  23361. "type": "object",
  23362. "properties": {
  23363. "started": {
  23364. "anyOf": [
  23365. {
  23366. "anyOf": [
  23367. {
  23368. "type": "number"
  23369. },
  23370. {
  23371. "type": "string",
  23372. "enum": ["NaN"]
  23373. },
  23374. {
  23375. "type": "string",
  23376. "enum": ["Infinity"]
  23377. },
  23378. {
  23379. "type": "string",
  23380. "enum": ["-Infinity"]
  23381. }
  23382. ]
  23383. },
  23384. {
  23385. "type": "string",
  23386. "enum": ["Infinity", "-Infinity", "NaN"]
  23387. }
  23388. ]
  23389. },
  23390. "completed": {
  23391. "anyOf": [
  23392. {
  23393. "anyOf": [
  23394. {
  23395. "type": "number"
  23396. },
  23397. {
  23398. "type": "string",
  23399. "enum": ["NaN"]
  23400. },
  23401. {
  23402. "type": "string",
  23403. "enum": ["Infinity"]
  23404. },
  23405. {
  23406. "type": "string",
  23407. "enum": ["-Infinity"]
  23408. }
  23409. ]
  23410. },
  23411. {
  23412. "type": "string",
  23413. "enum": ["Infinity", "-Infinity", "NaN"]
  23414. }
  23415. ]
  23416. }
  23417. },
  23418. "required": ["started"],
  23419. "additionalProperties": false
  23420. }
  23421. },
  23422. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  23423. "additionalProperties": false
  23424. },
  23425. "ShellNotFoundError": {
  23426. "type": "object",
  23427. "properties": {
  23428. "_tag": {
  23429. "type": "string",
  23430. "enum": ["ShellNotFoundError"]
  23431. },
  23432. "id": {
  23433. "type": "string"
  23434. },
  23435. "message": {
  23436. "type": "string"
  23437. }
  23438. },
  23439. "required": ["_tag", "id", "message"],
  23440. "additionalProperties": false
  23441. },
  23442. "QuestionV2.Request": {
  23443. "type": "object",
  23444. "properties": {
  23445. "id": {
  23446. "type": "string",
  23447. "allOf": [
  23448. {
  23449. "pattern": "^que"
  23450. }
  23451. ]
  23452. },
  23453. "sessionID": {
  23454. "type": "string",
  23455. "allOf": [
  23456. {
  23457. "pattern": "^ses"
  23458. }
  23459. ]
  23460. },
  23461. "questions": {
  23462. "type": "array",
  23463. "items": {
  23464. "$ref": "#/components/schemas/QuestionV2.Info"
  23465. },
  23466. "description": "Questions to ask"
  23467. },
  23468. "tool": {
  23469. "$ref": "#/components/schemas/QuestionV2.Tool"
  23470. }
  23471. },
  23472. "required": ["id", "sessionID", "questions"],
  23473. "additionalProperties": false
  23474. },
  23475. "QuestionV2.Reply": {
  23476. "type": "object",
  23477. "properties": {
  23478. "answers": {
  23479. "type": "array",
  23480. "items": {
  23481. "$ref": "#/components/schemas/QuestionV2.Answer"
  23482. },
  23483. "description": "User answers in order of questions (each answer is an array of selected labels)"
  23484. }
  23485. },
  23486. "required": ["answers"],
  23487. "additionalProperties": false
  23488. },
  23489. "QuestionNotFoundError": {
  23490. "type": "object",
  23491. "properties": {
  23492. "_tag": {
  23493. "type": "string",
  23494. "enum": ["QuestionNotFoundError"]
  23495. },
  23496. "requestID": {
  23497. "type": "string"
  23498. },
  23499. "message": {
  23500. "type": "string"
  23501. }
  23502. },
  23503. "required": ["_tag", "requestID", "message"],
  23504. "additionalProperties": false
  23505. },
  23506. "Reference.LocalSource": {
  23507. "type": "object",
  23508. "properties": {
  23509. "type": {
  23510. "type": "string",
  23511. "enum": ["local"]
  23512. },
  23513. "path": {
  23514. "type": "string"
  23515. },
  23516. "description": {
  23517. "type": "string"
  23518. },
  23519. "hidden": {
  23520. "type": "boolean"
  23521. }
  23522. },
  23523. "required": ["type", "path"],
  23524. "additionalProperties": false
  23525. },
  23526. "Reference.GitSource": {
  23527. "type": "object",
  23528. "properties": {
  23529. "type": {
  23530. "type": "string",
  23531. "enum": ["git"]
  23532. },
  23533. "repository": {
  23534. "type": "string"
  23535. },
  23536. "branch": {
  23537. "type": "string"
  23538. },
  23539. "description": {
  23540. "type": "string"
  23541. },
  23542. "hidden": {
  23543. "type": "boolean"
  23544. }
  23545. },
  23546. "required": ["type", "repository"],
  23547. "additionalProperties": false
  23548. },
  23549. "Reference.Source": {
  23550. "anyOf": [
  23551. {
  23552. "$ref": "#/components/schemas/Reference.LocalSource"
  23553. },
  23554. {
  23555. "$ref": "#/components/schemas/Reference.GitSource"
  23556. }
  23557. ]
  23558. },
  23559. "Reference.Info": {
  23560. "type": "object",
  23561. "properties": {
  23562. "name": {
  23563. "type": "string"
  23564. },
  23565. "path": {
  23566. "type": "string"
  23567. },
  23568. "description": {
  23569. "type": "string"
  23570. },
  23571. "hidden": {
  23572. "type": "boolean"
  23573. },
  23574. "source": {
  23575. "$ref": "#/components/schemas/Reference.Source"
  23576. }
  23577. },
  23578. "required": ["name", "path", "source"],
  23579. "additionalProperties": false
  23580. },
  23581. "ProjectCopy.Copy": {
  23582. "type": "object",
  23583. "properties": {
  23584. "directory": {
  23585. "type": "string"
  23586. }
  23587. },
  23588. "required": ["directory"],
  23589. "additionalProperties": false
  23590. },
  23591. "ProjectCopyError": {
  23592. "type": "object",
  23593. "properties": {
  23594. "name": {
  23595. "type": "string",
  23596. "enum": ["ProjectCopyError"]
  23597. },
  23598. "data": {
  23599. "type": "object",
  23600. "properties": {
  23601. "message": {
  23602. "type": "string"
  23603. },
  23604. "forceRequired": {
  23605. "anyOf": [
  23606. {
  23607. "type": "boolean"
  23608. },
  23609. {
  23610. "type": "null"
  23611. }
  23612. ]
  23613. }
  23614. },
  23615. "required": ["message"],
  23616. "additionalProperties": false
  23617. }
  23618. },
  23619. "required": ["name", "data"],
  23620. "additionalProperties": false
  23621. },
  23622. "Vcs.FileStatus": {
  23623. "type": "object",
  23624. "properties": {
  23625. "file": {
  23626. "type": "string"
  23627. },
  23628. "additions": {
  23629. "type": "integer",
  23630. "allOf": [
  23631. {
  23632. "minimum": 0
  23633. }
  23634. ]
  23635. },
  23636. "deletions": {
  23637. "type": "integer",
  23638. "allOf": [
  23639. {
  23640. "minimum": 0
  23641. }
  23642. ]
  23643. },
  23644. "status": {
  23645. "type": "string",
  23646. "enum": ["added", "deleted", "modified"]
  23647. }
  23648. },
  23649. "required": ["file", "additions", "deletions", "status"],
  23650. "additionalProperties": false
  23651. },
  23652. "Vcs.Mode": {
  23653. "type": "string",
  23654. "enum": ["working", "branch"]
  23655. }
  23656. },
  23657. "securitySchemes": {}
  23658. },
  23659. "security": [],
  23660. "tags": [
  23661. {
  23662. "name": "health"
  23663. },
  23664. {
  23665. "name": "server"
  23666. },
  23667. {
  23668. "name": "location"
  23669. },
  23670. {
  23671. "name": "agent"
  23672. },
  23673. {
  23674. "name": "plugin",
  23675. "description": "Experimental plugin routes."
  23676. },
  23677. {
  23678. "name": "session",
  23679. "description": "Experimental session routes."
  23680. },
  23681. {
  23682. "name": "session",
  23683. "description": "Experimental message routes."
  23684. },
  23685. {
  23686. "name": "model",
  23687. "description": "Experimental model routes."
  23688. },
  23689. {
  23690. "name": "generate",
  23691. "description": "Experimental one-shot generation routes."
  23692. },
  23693. {
  23694. "name": "provider",
  23695. "description": "Experimental provider routes."
  23696. },
  23697. {
  23698. "name": "integration",
  23699. "description": "Integration discovery and authentication routes."
  23700. },
  23701. {
  23702. "name": "mcp",
  23703. "description": "MCP server and resource routes."
  23704. },
  23705. {
  23706. "name": "credential"
  23707. },
  23708. {
  23709. "name": "project",
  23710. "description": "Location-scoped project routes."
  23711. },
  23712. {
  23713. "name": "form",
  23714. "description": "Session form routes."
  23715. },
  23716. {
  23717. "name": "permission",
  23718. "description": "Experimental permission routes."
  23719. },
  23720. {
  23721. "name": "filesystem",
  23722. "description": "Experimental location-scoped filesystem routes."
  23723. },
  23724. {
  23725. "name": "command",
  23726. "description": "Experimental command routes."
  23727. },
  23728. {
  23729. "name": "skill",
  23730. "description": "Experimental skill routes."
  23731. },
  23732. {
  23733. "name": "event",
  23734. "description": "Experimental event stream routes."
  23735. },
  23736. {
  23737. "name": "pty",
  23738. "description": "Experimental location-scoped PTY routes."
  23739. },
  23740. {
  23741. "name": "shell",
  23742. "description": "Experimental location-scoped shell command routes."
  23743. },
  23744. {
  23745. "name": "question",
  23746. "description": "Experimental session question routes."
  23747. },
  23748. {
  23749. "name": "reference",
  23750. "description": "Location-scoped project references."
  23751. },
  23752. {
  23753. "name": "projectCopy",
  23754. "description": "Project copy management routes."
  23755. },
  23756. {
  23757. "name": "vcs",
  23758. "description": "Location-scoped version control routes."
  23759. },
  23760. {
  23761. "name": "debug"
  23762. }
  23763. ]
  23764. }