opencode-v2-openapi.json 622 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730
  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": ["server.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. },
  28. "required": ["healthy"],
  29. "additionalProperties": false
  30. }
  31. }
  32. }
  33. },
  34. "400": {
  35. "description": "InvalidRequestError",
  36. "content": {
  37. "application/json": {
  38. "schema": {
  39. "$ref": "#/components/schemas/InvalidRequestError"
  40. }
  41. }
  42. }
  43. },
  44. "401": {
  45. "description": "UnauthorizedError",
  46. "content": {
  47. "application/json": {
  48. "schema": {
  49. "$ref": "#/components/schemas/UnauthorizedError"
  50. }
  51. }
  52. }
  53. }
  54. },
  55. "description": "Check whether the API server is ready to accept requests.",
  56. "summary": "Check server health"
  57. }
  58. },
  59. "/api/location": {
  60. "get": {
  61. "tags": ["server.location"],
  62. "operationId": "v2.location.get",
  63. "parameters": [
  64. {
  65. "name": "location",
  66. "in": "query",
  67. "schema": {
  68. "anyOf": [
  69. {
  70. "type": "object",
  71. "properties": {
  72. "directory": {
  73. "anyOf": [
  74. {
  75. "type": "string"
  76. },
  77. {
  78. "type": "null"
  79. }
  80. ]
  81. },
  82. "workspace": {
  83. "anyOf": [
  84. {
  85. "type": "string"
  86. },
  87. {
  88. "type": "null"
  89. }
  90. ]
  91. }
  92. },
  93. "additionalProperties": false
  94. },
  95. {
  96. "type": "null"
  97. }
  98. ]
  99. },
  100. "required": false,
  101. "style": "deepObject",
  102. "explode": true
  103. }
  104. ],
  105. "security": [],
  106. "responses": {
  107. "200": {
  108. "description": "Location.Info",
  109. "content": {
  110. "application/json": {
  111. "schema": {
  112. "$ref": "#/components/schemas/Location.Info"
  113. }
  114. }
  115. }
  116. },
  117. "400": {
  118. "description": "InvalidRequestError",
  119. "content": {
  120. "application/json": {
  121. "schema": {
  122. "$ref": "#/components/schemas/InvalidRequestError"
  123. }
  124. }
  125. }
  126. },
  127. "401": {
  128. "description": "UnauthorizedError",
  129. "content": {
  130. "application/json": {
  131. "schema": {
  132. "$ref": "#/components/schemas/UnauthorizedError"
  133. }
  134. }
  135. }
  136. }
  137. },
  138. "description": "Resolve the requested location or the server default location.",
  139. "summary": "Get location"
  140. }
  141. },
  142. "/api/agent": {
  143. "get": {
  144. "tags": ["server.agent"],
  145. "operationId": "v2.agent.list",
  146. "parameters": [
  147. {
  148. "name": "location",
  149. "in": "query",
  150. "schema": {
  151. "anyOf": [
  152. {
  153. "type": "object",
  154. "properties": {
  155. "directory": {
  156. "anyOf": [
  157. {
  158. "type": "string"
  159. },
  160. {
  161. "type": "null"
  162. }
  163. ]
  164. },
  165. "workspace": {
  166. "anyOf": [
  167. {
  168. "type": "string"
  169. },
  170. {
  171. "type": "null"
  172. }
  173. ]
  174. }
  175. },
  176. "additionalProperties": false
  177. },
  178. {
  179. "type": "null"
  180. }
  181. ]
  182. },
  183. "required": false,
  184. "style": "deepObject",
  185. "explode": true
  186. }
  187. ],
  188. "security": [],
  189. "responses": {
  190. "200": {
  191. "description": "Success",
  192. "content": {
  193. "application/json": {
  194. "schema": {
  195. "type": "object",
  196. "properties": {
  197. "location": {
  198. "$ref": "#/components/schemas/Location.Info"
  199. },
  200. "data": {
  201. "type": "array",
  202. "items": {
  203. "$ref": "#/components/schemas/AgentV2.Info"
  204. }
  205. }
  206. },
  207. "required": ["location", "data"],
  208. "additionalProperties": false
  209. }
  210. }
  211. }
  212. },
  213. "400": {
  214. "description": "InvalidRequestError",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "$ref": "#/components/schemas/InvalidRequestError"
  219. }
  220. }
  221. }
  222. },
  223. "401": {
  224. "description": "UnauthorizedError",
  225. "content": {
  226. "application/json": {
  227. "schema": {
  228. "$ref": "#/components/schemas/UnauthorizedError"
  229. }
  230. }
  231. }
  232. }
  233. },
  234. "description": "Retrieve currently registered agents.",
  235. "summary": "List agents"
  236. }
  237. },
  238. "/api/plugin": {
  239. "get": {
  240. "tags": ["plugins"],
  241. "operationId": "v2.plugin.list",
  242. "parameters": [
  243. {
  244. "name": "location",
  245. "in": "query",
  246. "schema": {
  247. "anyOf": [
  248. {
  249. "type": "object",
  250. "properties": {
  251. "directory": {
  252. "anyOf": [
  253. {
  254. "type": "string"
  255. },
  256. {
  257. "type": "null"
  258. }
  259. ]
  260. },
  261. "workspace": {
  262. "anyOf": [
  263. {
  264. "type": "string"
  265. },
  266. {
  267. "type": "null"
  268. }
  269. ]
  270. }
  271. },
  272. "additionalProperties": false
  273. },
  274. {
  275. "type": "null"
  276. }
  277. ]
  278. },
  279. "required": false,
  280. "style": "deepObject",
  281. "explode": true
  282. }
  283. ],
  284. "security": [],
  285. "responses": {
  286. "200": {
  287. "description": "Success",
  288. "content": {
  289. "application/json": {
  290. "schema": {
  291. "type": "object",
  292. "properties": {
  293. "location": {
  294. "$ref": "#/components/schemas/Location.Info"
  295. },
  296. "data": {
  297. "type": "array",
  298. "items": {
  299. "$ref": "#/components/schemas/Plugin.Info"
  300. }
  301. }
  302. },
  303. "required": ["location", "data"],
  304. "additionalProperties": false
  305. }
  306. }
  307. }
  308. },
  309. "400": {
  310. "description": "InvalidRequestError",
  311. "content": {
  312. "application/json": {
  313. "schema": {
  314. "$ref": "#/components/schemas/InvalidRequestError"
  315. }
  316. }
  317. }
  318. },
  319. "401": {
  320. "description": "UnauthorizedError",
  321. "content": {
  322. "application/json": {
  323. "schema": {
  324. "$ref": "#/components/schemas/UnauthorizedError"
  325. }
  326. }
  327. }
  328. }
  329. },
  330. "description": "Retrieve currently loaded plugins.",
  331. "summary": "List plugins"
  332. }
  333. },
  334. "/api/session": {
  335. "get": {
  336. "tags": ["sessions"],
  337. "operationId": "v2.session.list",
  338. "parameters": [
  339. {
  340. "name": "workspace",
  341. "in": "query",
  342. "schema": {
  343. "anyOf": [
  344. {
  345. "type": "string",
  346. "allOf": [
  347. {
  348. "pattern": "^wrk"
  349. }
  350. ]
  351. },
  352. {
  353. "type": "null"
  354. }
  355. ]
  356. },
  357. "required": false
  358. },
  359. {
  360. "name": "limit",
  361. "in": "query",
  362. "schema": {
  363. "anyOf": [
  364. {
  365. "type": "string"
  366. },
  367. {
  368. "type": "null"
  369. }
  370. ],
  371. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  372. },
  373. "required": false
  374. },
  375. {
  376. "name": "order",
  377. "in": "query",
  378. "schema": {
  379. "anyOf": [
  380. {
  381. "type": "string",
  382. "enum": ["asc", "desc"]
  383. },
  384. {
  385. "type": "null"
  386. }
  387. ],
  388. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  389. },
  390. "required": false
  391. },
  392. {
  393. "name": "search",
  394. "in": "query",
  395. "schema": {
  396. "anyOf": [
  397. {
  398. "type": "string"
  399. },
  400. {
  401. "type": "null"
  402. }
  403. ]
  404. },
  405. "required": false
  406. },
  407. {
  408. "name": "parentID",
  409. "in": "query",
  410. "schema": {
  411. "anyOf": [
  412. {
  413. "anyOf": [
  414. {
  415. "type": "string",
  416. "allOf": [
  417. {
  418. "pattern": "^ses"
  419. }
  420. ]
  421. },
  422. {
  423. "type": "string",
  424. "enum": ["null"]
  425. }
  426. ],
  427. "description": "Filter by parent session. Use null to return only root sessions."
  428. },
  429. {
  430. "type": "null"
  431. }
  432. ]
  433. },
  434. "required": false
  435. },
  436. {
  437. "name": "directory",
  438. "in": "query",
  439. "schema": {
  440. "anyOf": [
  441. {
  442. "type": "string"
  443. },
  444. {
  445. "type": "null"
  446. }
  447. ]
  448. },
  449. "required": false
  450. },
  451. {
  452. "name": "project",
  453. "in": "query",
  454. "schema": {
  455. "anyOf": [
  456. {
  457. "type": "string"
  458. },
  459. {
  460. "type": "null"
  461. }
  462. ]
  463. },
  464. "required": false
  465. },
  466. {
  467. "name": "subpath",
  468. "in": "query",
  469. "schema": {
  470. "anyOf": [
  471. {
  472. "type": "string"
  473. },
  474. {
  475. "type": "null"
  476. }
  477. ]
  478. },
  479. "required": false
  480. },
  481. {
  482. "name": "cursor",
  483. "in": "query",
  484. "schema": {
  485. "anyOf": [
  486. {
  487. "type": "string",
  488. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  489. },
  490. {
  491. "type": "null"
  492. }
  493. ]
  494. },
  495. "required": false
  496. }
  497. ],
  498. "security": [],
  499. "responses": {
  500. "200": {
  501. "description": "SessionsResponse",
  502. "content": {
  503. "application/json": {
  504. "schema": {
  505. "$ref": "#/components/schemas/SessionsResponse"
  506. }
  507. }
  508. }
  509. },
  510. "400": {
  511. "description": "InvalidCursorError | InvalidRequestError",
  512. "content": {
  513. "application/json": {
  514. "schema": {
  515. "anyOf": [
  516. {
  517. "$ref": "#/components/schemas/InvalidCursorError"
  518. },
  519. {
  520. "$ref": "#/components/schemas/InvalidRequestError1"
  521. },
  522. {
  523. "$ref": "#/components/schemas/InvalidRequestError"
  524. }
  525. ]
  526. }
  527. }
  528. }
  529. },
  530. "401": {
  531. "description": "UnauthorizedError",
  532. "content": {
  533. "application/json": {
  534. "schema": {
  535. "$ref": "#/components/schemas/UnauthorizedError"
  536. }
  537. }
  538. }
  539. }
  540. },
  541. "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.",
  542. "summary": "List sessions"
  543. },
  544. "post": {
  545. "tags": ["sessions"],
  546. "operationId": "v2.session.create",
  547. "parameters": [],
  548. "security": [],
  549. "responses": {
  550. "200": {
  551. "description": "Success",
  552. "content": {
  553. "application/json": {
  554. "schema": {
  555. "type": "object",
  556. "properties": {
  557. "data": {
  558. "$ref": "#/components/schemas/SessionV2.Info"
  559. }
  560. },
  561. "required": ["data"],
  562. "additionalProperties": false
  563. }
  564. }
  565. }
  566. },
  567. "400": {
  568. "description": "InvalidRequestError",
  569. "content": {
  570. "application/json": {
  571. "schema": {
  572. "$ref": "#/components/schemas/InvalidRequestError"
  573. }
  574. }
  575. }
  576. },
  577. "401": {
  578. "description": "UnauthorizedError",
  579. "content": {
  580. "application/json": {
  581. "schema": {
  582. "$ref": "#/components/schemas/UnauthorizedError"
  583. }
  584. }
  585. }
  586. }
  587. },
  588. "description": "Create a session at the requested location.",
  589. "summary": "Create session",
  590. "requestBody": {
  591. "content": {
  592. "application/json": {
  593. "schema": {
  594. "type": "object",
  595. "properties": {
  596. "id": {
  597. "anyOf": [
  598. {
  599. "type": "string",
  600. "allOf": [
  601. {
  602. "pattern": "^ses"
  603. }
  604. ]
  605. },
  606. {
  607. "type": "null"
  608. }
  609. ]
  610. },
  611. "agent": {
  612. "anyOf": [
  613. {
  614. "type": "string"
  615. },
  616. {
  617. "type": "null"
  618. }
  619. ]
  620. },
  621. "model": {
  622. "anyOf": [
  623. {
  624. "$ref": "#/components/schemas/Model.Ref"
  625. },
  626. {
  627. "type": "null"
  628. }
  629. ]
  630. },
  631. "location": {
  632. "anyOf": [
  633. {
  634. "$ref": "#/components/schemas/Location.Ref"
  635. },
  636. {
  637. "type": "null"
  638. }
  639. ]
  640. }
  641. },
  642. "additionalProperties": false
  643. }
  644. }
  645. },
  646. "required": true
  647. }
  648. }
  649. },
  650. "/api/session/active": {
  651. "get": {
  652. "tags": ["sessions"],
  653. "operationId": "v2.session.active",
  654. "parameters": [],
  655. "security": [],
  656. "responses": {
  657. "200": {
  658. "description": "Success",
  659. "content": {
  660. "application/json": {
  661. "schema": {
  662. "type": "object",
  663. "properties": {
  664. "data": {
  665. "type": "object",
  666. "patternProperties": {
  667. "^ses": {
  668. "$ref": "#/components/schemas/SessionActive"
  669. }
  670. }
  671. },
  672. "watermarks": {
  673. "$ref": "#/components/schemas/SessionWatermarks"
  674. }
  675. },
  676. "required": ["data", "watermarks"],
  677. "additionalProperties": false
  678. }
  679. }
  680. }
  681. },
  682. "400": {
  683. "description": "InvalidRequestError",
  684. "content": {
  685. "application/json": {
  686. "schema": {
  687. "$ref": "#/components/schemas/InvalidRequestError"
  688. }
  689. }
  690. }
  691. },
  692. "401": {
  693. "description": "UnauthorizedError",
  694. "content": {
  695. "application/json": {
  696. "schema": {
  697. "$ref": "#/components/schemas/UnauthorizedError"
  698. }
  699. }
  700. }
  701. }
  702. },
  703. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive. Watermarks are the durable log positions read alongside the activity snapshot; activity itself is process state, so the pairing is advisory rather than transactional.",
  704. "summary": "List active sessions"
  705. }
  706. },
  707. "/api/session/{sessionID}": {
  708. "get": {
  709. "tags": ["sessions"],
  710. "operationId": "v2.session.get",
  711. "parameters": [
  712. {
  713. "name": "sessionID",
  714. "in": "path",
  715. "schema": {
  716. "type": "string",
  717. "allOf": [
  718. {
  719. "pattern": "^ses"
  720. }
  721. ]
  722. },
  723. "required": true
  724. }
  725. ],
  726. "security": [],
  727. "responses": {
  728. "200": {
  729. "description": "Success",
  730. "content": {
  731. "application/json": {
  732. "schema": {
  733. "type": "object",
  734. "properties": {
  735. "data": {
  736. "$ref": "#/components/schemas/SessionV2.Info"
  737. }
  738. },
  739. "required": ["data"],
  740. "additionalProperties": false
  741. }
  742. }
  743. }
  744. },
  745. "400": {
  746. "description": "InvalidRequestError",
  747. "content": {
  748. "application/json": {
  749. "schema": {
  750. "$ref": "#/components/schemas/InvalidRequestError"
  751. }
  752. }
  753. }
  754. },
  755. "401": {
  756. "description": "UnauthorizedError",
  757. "content": {
  758. "application/json": {
  759. "schema": {
  760. "$ref": "#/components/schemas/UnauthorizedError"
  761. }
  762. }
  763. }
  764. },
  765. "404": {
  766. "description": "SessionNotFoundError",
  767. "content": {
  768. "application/json": {
  769. "schema": {
  770. "anyOf": [
  771. {
  772. "$ref": "#/components/schemas/SessionNotFoundError"
  773. },
  774. {
  775. "$ref": "#/components/schemas/SessionNotFoundError"
  776. }
  777. ]
  778. }
  779. }
  780. }
  781. }
  782. },
  783. "description": "Retrieve a session by ID.",
  784. "summary": "Get session"
  785. }
  786. },
  787. "/api/session/{sessionID}/fork": {
  788. "post": {
  789. "tags": ["sessions"],
  790. "operationId": "v2.session.fork",
  791. "parameters": [
  792. {
  793. "name": "sessionID",
  794. "in": "path",
  795. "schema": {
  796. "type": "string",
  797. "allOf": [
  798. {
  799. "pattern": "^ses"
  800. }
  801. ]
  802. },
  803. "required": true
  804. }
  805. ],
  806. "security": [],
  807. "responses": {
  808. "200": {
  809. "description": "Success",
  810. "content": {
  811. "application/json": {
  812. "schema": {
  813. "type": "object",
  814. "properties": {
  815. "data": {
  816. "$ref": "#/components/schemas/SessionV2.Info"
  817. }
  818. },
  819. "required": ["data"],
  820. "additionalProperties": false
  821. }
  822. }
  823. }
  824. },
  825. "400": {
  826. "description": "InvalidRequestError",
  827. "content": {
  828. "application/json": {
  829. "schema": {
  830. "$ref": "#/components/schemas/InvalidRequestError"
  831. }
  832. }
  833. }
  834. },
  835. "401": {
  836. "description": "UnauthorizedError",
  837. "content": {
  838. "application/json": {
  839. "schema": {
  840. "$ref": "#/components/schemas/UnauthorizedError"
  841. }
  842. }
  843. }
  844. },
  845. "404": {
  846. "description": "SessionNotFoundError | MessageNotFoundError",
  847. "content": {
  848. "application/json": {
  849. "schema": {
  850. "anyOf": [
  851. {
  852. "$ref": "#/components/schemas/MessageNotFoundError"
  853. },
  854. {
  855. "$ref": "#/components/schemas/SessionNotFoundError"
  856. },
  857. {
  858. "$ref": "#/components/schemas/SessionNotFoundError"
  859. }
  860. ]
  861. }
  862. }
  863. }
  864. }
  865. },
  866. "description": "Create a child session by copying projected history from the parent. When messageID is supplied, copy messages before that boundary.",
  867. "summary": "Fork session",
  868. "requestBody": {
  869. "content": {
  870. "application/json": {
  871. "schema": {
  872. "type": "object",
  873. "properties": {
  874. "messageID": {
  875. "anyOf": [
  876. {
  877. "type": "string",
  878. "allOf": [
  879. {
  880. "pattern": "^msg_"
  881. }
  882. ]
  883. },
  884. {
  885. "type": "null"
  886. }
  887. ]
  888. }
  889. },
  890. "additionalProperties": false
  891. }
  892. }
  893. },
  894. "required": true
  895. }
  896. }
  897. },
  898. "/api/session/{sessionID}/agent": {
  899. "post": {
  900. "tags": ["sessions"],
  901. "operationId": "v2.session.switchAgent",
  902. "parameters": [
  903. {
  904. "name": "sessionID",
  905. "in": "path",
  906. "schema": {
  907. "type": "string",
  908. "allOf": [
  909. {
  910. "pattern": "^ses"
  911. }
  912. ]
  913. },
  914. "required": true
  915. }
  916. ],
  917. "security": [],
  918. "responses": {
  919. "204": {
  920. "description": "<No Content>"
  921. },
  922. "400": {
  923. "description": "InvalidRequestError",
  924. "content": {
  925. "application/json": {
  926. "schema": {
  927. "$ref": "#/components/schemas/InvalidRequestError"
  928. }
  929. }
  930. }
  931. },
  932. "401": {
  933. "description": "UnauthorizedError",
  934. "content": {
  935. "application/json": {
  936. "schema": {
  937. "$ref": "#/components/schemas/UnauthorizedError"
  938. }
  939. }
  940. }
  941. },
  942. "404": {
  943. "description": "SessionNotFoundError",
  944. "content": {
  945. "application/json": {
  946. "schema": {
  947. "anyOf": [
  948. {
  949. "$ref": "#/components/schemas/SessionNotFoundError"
  950. },
  951. {
  952. "$ref": "#/components/schemas/SessionNotFoundError"
  953. }
  954. ]
  955. }
  956. }
  957. }
  958. }
  959. },
  960. "description": "Switch the agent used by subsequent provider turns.",
  961. "summary": "Switch session agent",
  962. "requestBody": {
  963. "content": {
  964. "application/json": {
  965. "schema": {
  966. "type": "object",
  967. "properties": {
  968. "agent": {
  969. "type": "string"
  970. }
  971. },
  972. "required": ["agent"],
  973. "additionalProperties": false
  974. }
  975. }
  976. },
  977. "required": true
  978. }
  979. }
  980. },
  981. "/api/session/{sessionID}/model": {
  982. "post": {
  983. "tags": ["sessions"],
  984. "operationId": "v2.session.switchModel",
  985. "parameters": [
  986. {
  987. "name": "sessionID",
  988. "in": "path",
  989. "schema": {
  990. "type": "string",
  991. "allOf": [
  992. {
  993. "pattern": "^ses"
  994. }
  995. ]
  996. },
  997. "required": true
  998. }
  999. ],
  1000. "security": [],
  1001. "responses": {
  1002. "204": {
  1003. "description": "<No Content>"
  1004. },
  1005. "400": {
  1006. "description": "InvalidRequestError",
  1007. "content": {
  1008. "application/json": {
  1009. "schema": {
  1010. "$ref": "#/components/schemas/InvalidRequestError"
  1011. }
  1012. }
  1013. }
  1014. },
  1015. "401": {
  1016. "description": "UnauthorizedError",
  1017. "content": {
  1018. "application/json": {
  1019. "schema": {
  1020. "$ref": "#/components/schemas/UnauthorizedError"
  1021. }
  1022. }
  1023. }
  1024. },
  1025. "404": {
  1026. "description": "SessionNotFoundError",
  1027. "content": {
  1028. "application/json": {
  1029. "schema": {
  1030. "anyOf": [
  1031. {
  1032. "$ref": "#/components/schemas/SessionNotFoundError"
  1033. },
  1034. {
  1035. "$ref": "#/components/schemas/SessionNotFoundError"
  1036. }
  1037. ]
  1038. }
  1039. }
  1040. }
  1041. }
  1042. },
  1043. "description": "Switch the model used by subsequent provider turns.",
  1044. "summary": "Switch session model",
  1045. "requestBody": {
  1046. "content": {
  1047. "application/json": {
  1048. "schema": {
  1049. "type": "object",
  1050. "properties": {
  1051. "model": {
  1052. "$ref": "#/components/schemas/Model.Ref"
  1053. }
  1054. },
  1055. "required": ["model"],
  1056. "additionalProperties": false
  1057. }
  1058. }
  1059. },
  1060. "required": true
  1061. }
  1062. }
  1063. },
  1064. "/api/session/{sessionID}/rename": {
  1065. "post": {
  1066. "tags": ["sessions"],
  1067. "operationId": "v2.session.rename",
  1068. "parameters": [
  1069. {
  1070. "name": "sessionID",
  1071. "in": "path",
  1072. "schema": {
  1073. "type": "string",
  1074. "allOf": [
  1075. {
  1076. "pattern": "^ses"
  1077. }
  1078. ]
  1079. },
  1080. "required": true
  1081. }
  1082. ],
  1083. "security": [],
  1084. "responses": {
  1085. "204": {
  1086. "description": "<No Content>"
  1087. },
  1088. "400": {
  1089. "description": "InvalidRequestError",
  1090. "content": {
  1091. "application/json": {
  1092. "schema": {
  1093. "$ref": "#/components/schemas/InvalidRequestError"
  1094. }
  1095. }
  1096. }
  1097. },
  1098. "401": {
  1099. "description": "UnauthorizedError",
  1100. "content": {
  1101. "application/json": {
  1102. "schema": {
  1103. "$ref": "#/components/schemas/UnauthorizedError"
  1104. }
  1105. }
  1106. }
  1107. },
  1108. "404": {
  1109. "description": "SessionNotFoundError",
  1110. "content": {
  1111. "application/json": {
  1112. "schema": {
  1113. "anyOf": [
  1114. {
  1115. "$ref": "#/components/schemas/SessionNotFoundError"
  1116. },
  1117. {
  1118. "$ref": "#/components/schemas/SessionNotFoundError"
  1119. }
  1120. ]
  1121. }
  1122. }
  1123. }
  1124. }
  1125. },
  1126. "description": "Update the session title.",
  1127. "summary": "Rename session",
  1128. "requestBody": {
  1129. "content": {
  1130. "application/json": {
  1131. "schema": {
  1132. "type": "object",
  1133. "properties": {
  1134. "title": {
  1135. "type": "string"
  1136. }
  1137. },
  1138. "required": ["title"],
  1139. "additionalProperties": false
  1140. }
  1141. }
  1142. },
  1143. "required": true
  1144. }
  1145. }
  1146. },
  1147. "/api/session/{sessionID}/prompt": {
  1148. "post": {
  1149. "tags": ["sessions"],
  1150. "operationId": "v2.session.prompt",
  1151. "parameters": [
  1152. {
  1153. "name": "sessionID",
  1154. "in": "path",
  1155. "schema": {
  1156. "type": "string",
  1157. "allOf": [
  1158. {
  1159. "pattern": "^ses"
  1160. }
  1161. ]
  1162. },
  1163. "required": true
  1164. }
  1165. ],
  1166. "security": [],
  1167. "responses": {
  1168. "200": {
  1169. "description": "Success",
  1170. "content": {
  1171. "application/json": {
  1172. "schema": {
  1173. "type": "object",
  1174. "properties": {
  1175. "data": {
  1176. "$ref": "#/components/schemas/SessionInput.Admitted"
  1177. }
  1178. },
  1179. "required": ["data"],
  1180. "additionalProperties": false
  1181. }
  1182. }
  1183. }
  1184. },
  1185. "400": {
  1186. "description": "InvalidRequestError",
  1187. "content": {
  1188. "application/json": {
  1189. "schema": {
  1190. "$ref": "#/components/schemas/InvalidRequestError"
  1191. }
  1192. }
  1193. }
  1194. },
  1195. "401": {
  1196. "description": "UnauthorizedError",
  1197. "content": {
  1198. "application/json": {
  1199. "schema": {
  1200. "$ref": "#/components/schemas/UnauthorizedError"
  1201. }
  1202. }
  1203. }
  1204. },
  1205. "404": {
  1206. "description": "SessionNotFoundError",
  1207. "content": {
  1208. "application/json": {
  1209. "schema": {
  1210. "anyOf": [
  1211. {
  1212. "$ref": "#/components/schemas/SessionNotFoundError"
  1213. },
  1214. {
  1215. "$ref": "#/components/schemas/SessionNotFoundError"
  1216. }
  1217. ]
  1218. }
  1219. }
  1220. }
  1221. },
  1222. "409": {
  1223. "description": "ConflictError",
  1224. "content": {
  1225. "application/json": {
  1226. "schema": {
  1227. "$ref": "#/components/schemas/ConflictError"
  1228. }
  1229. }
  1230. }
  1231. }
  1232. },
  1233. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1234. "summary": "Send message",
  1235. "requestBody": {
  1236. "content": {
  1237. "application/json": {
  1238. "schema": {
  1239. "type": "object",
  1240. "properties": {
  1241. "id": {
  1242. "anyOf": [
  1243. {
  1244. "type": "string",
  1245. "allOf": [
  1246. {
  1247. "pattern": "^msg_"
  1248. }
  1249. ]
  1250. },
  1251. {
  1252. "type": "null"
  1253. }
  1254. ]
  1255. },
  1256. "prompt": {
  1257. "$ref": "#/components/schemas/PromptInput"
  1258. },
  1259. "delivery": {
  1260. "anyOf": [
  1261. {
  1262. "type": "string",
  1263. "enum": ["steer", "queue"]
  1264. },
  1265. {
  1266. "type": "null"
  1267. }
  1268. ]
  1269. },
  1270. "resume": {
  1271. "anyOf": [
  1272. {
  1273. "type": "boolean"
  1274. },
  1275. {
  1276. "type": "null"
  1277. }
  1278. ]
  1279. }
  1280. },
  1281. "required": ["prompt"],
  1282. "additionalProperties": false
  1283. }
  1284. }
  1285. },
  1286. "required": true
  1287. }
  1288. }
  1289. },
  1290. "/api/session/{sessionID}/command": {
  1291. "post": {
  1292. "tags": ["sessions"],
  1293. "operationId": "v2.session.command",
  1294. "parameters": [
  1295. {
  1296. "name": "sessionID",
  1297. "in": "path",
  1298. "schema": {
  1299. "type": "string",
  1300. "allOf": [
  1301. {
  1302. "pattern": "^ses"
  1303. }
  1304. ]
  1305. },
  1306. "required": true
  1307. }
  1308. ],
  1309. "security": [],
  1310. "responses": {
  1311. "200": {
  1312. "description": "Success",
  1313. "content": {
  1314. "application/json": {
  1315. "schema": {
  1316. "type": "object",
  1317. "properties": {
  1318. "data": {
  1319. "$ref": "#/components/schemas/SessionInput.Admitted"
  1320. }
  1321. },
  1322. "required": ["data"],
  1323. "additionalProperties": false
  1324. }
  1325. }
  1326. }
  1327. },
  1328. "400": {
  1329. "description": "InvalidRequestError",
  1330. "content": {
  1331. "application/json": {
  1332. "schema": {
  1333. "$ref": "#/components/schemas/InvalidRequestError"
  1334. }
  1335. }
  1336. }
  1337. },
  1338. "401": {
  1339. "description": "UnauthorizedError",
  1340. "content": {
  1341. "application/json": {
  1342. "schema": {
  1343. "$ref": "#/components/schemas/UnauthorizedError"
  1344. }
  1345. }
  1346. }
  1347. },
  1348. "404": {
  1349. "description": "SessionNotFoundError | CommandNotFoundError",
  1350. "content": {
  1351. "application/json": {
  1352. "schema": {
  1353. "anyOf": [
  1354. {
  1355. "$ref": "#/components/schemas/CommandNotFoundError"
  1356. },
  1357. {
  1358. "$ref": "#/components/schemas/SessionNotFoundError"
  1359. },
  1360. {
  1361. "$ref": "#/components/schemas/SessionNotFoundError"
  1362. }
  1363. ]
  1364. }
  1365. }
  1366. }
  1367. },
  1368. "409": {
  1369. "description": "ConflictError",
  1370. "content": {
  1371. "application/json": {
  1372. "schema": {
  1373. "$ref": "#/components/schemas/ConflictError"
  1374. }
  1375. }
  1376. }
  1377. },
  1378. "500": {
  1379. "description": "CommandEvaluationError",
  1380. "content": {
  1381. "application/json": {
  1382. "schema": {
  1383. "$ref": "#/components/schemas/CommandEvaluationError"
  1384. }
  1385. }
  1386. }
  1387. }
  1388. },
  1389. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1390. "summary": "Run command",
  1391. "requestBody": {
  1392. "content": {
  1393. "application/json": {
  1394. "schema": {
  1395. "type": "object",
  1396. "properties": {
  1397. "id": {
  1398. "anyOf": [
  1399. {
  1400. "type": "string",
  1401. "allOf": [
  1402. {
  1403. "pattern": "^msg_"
  1404. }
  1405. ]
  1406. },
  1407. {
  1408. "type": "null"
  1409. }
  1410. ]
  1411. },
  1412. "command": {
  1413. "type": "string"
  1414. },
  1415. "arguments": {
  1416. "anyOf": [
  1417. {
  1418. "type": "string"
  1419. },
  1420. {
  1421. "type": "null"
  1422. }
  1423. ]
  1424. },
  1425. "agent": {
  1426. "anyOf": [
  1427. {
  1428. "type": "string"
  1429. },
  1430. {
  1431. "type": "null"
  1432. }
  1433. ]
  1434. },
  1435. "model": {
  1436. "anyOf": [
  1437. {
  1438. "$ref": "#/components/schemas/Model.Ref"
  1439. },
  1440. {
  1441. "type": "null"
  1442. }
  1443. ]
  1444. },
  1445. "files": {
  1446. "type": "array",
  1447. "items": {
  1448. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1449. }
  1450. },
  1451. "agents": {
  1452. "type": "array",
  1453. "items": {
  1454. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1455. }
  1456. },
  1457. "delivery": {
  1458. "anyOf": [
  1459. {
  1460. "type": "string",
  1461. "enum": ["steer", "queue"]
  1462. },
  1463. {
  1464. "type": "null"
  1465. }
  1466. ]
  1467. },
  1468. "resume": {
  1469. "anyOf": [
  1470. {
  1471. "type": "boolean"
  1472. },
  1473. {
  1474. "type": "null"
  1475. }
  1476. ]
  1477. }
  1478. },
  1479. "required": ["command"],
  1480. "additionalProperties": false
  1481. }
  1482. }
  1483. },
  1484. "required": true
  1485. }
  1486. }
  1487. },
  1488. "/api/session/{sessionID}/skill": {
  1489. "post": {
  1490. "tags": ["sessions"],
  1491. "operationId": "v2.session.skill",
  1492. "parameters": [
  1493. {
  1494. "name": "sessionID",
  1495. "in": "path",
  1496. "schema": {
  1497. "type": "string",
  1498. "allOf": [
  1499. {
  1500. "pattern": "^ses"
  1501. }
  1502. ]
  1503. },
  1504. "required": true
  1505. }
  1506. ],
  1507. "security": [],
  1508. "responses": {
  1509. "204": {
  1510. "description": "<No Content>"
  1511. },
  1512. "400": {
  1513. "description": "InvalidRequestError",
  1514. "content": {
  1515. "application/json": {
  1516. "schema": {
  1517. "$ref": "#/components/schemas/InvalidRequestError"
  1518. }
  1519. }
  1520. }
  1521. },
  1522. "401": {
  1523. "description": "UnauthorizedError",
  1524. "content": {
  1525. "application/json": {
  1526. "schema": {
  1527. "$ref": "#/components/schemas/UnauthorizedError"
  1528. }
  1529. }
  1530. }
  1531. },
  1532. "404": {
  1533. "description": "SessionNotFoundError | SkillNotFoundError",
  1534. "content": {
  1535. "application/json": {
  1536. "schema": {
  1537. "anyOf": [
  1538. {
  1539. "$ref": "#/components/schemas/SkillNotFoundError"
  1540. },
  1541. {
  1542. "$ref": "#/components/schemas/SessionNotFoundError"
  1543. },
  1544. {
  1545. "$ref": "#/components/schemas/SessionNotFoundError"
  1546. }
  1547. ]
  1548. }
  1549. }
  1550. }
  1551. }
  1552. },
  1553. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  1554. "summary": "Activate skill",
  1555. "requestBody": {
  1556. "content": {
  1557. "application/json": {
  1558. "schema": {
  1559. "type": "object",
  1560. "properties": {
  1561. "id": {
  1562. "anyOf": [
  1563. {
  1564. "type": "string",
  1565. "allOf": [
  1566. {
  1567. "pattern": "^msg_"
  1568. }
  1569. ]
  1570. },
  1571. {
  1572. "type": "null"
  1573. }
  1574. ]
  1575. },
  1576. "skill": {
  1577. "type": "string"
  1578. },
  1579. "resume": {
  1580. "anyOf": [
  1581. {
  1582. "type": "boolean"
  1583. },
  1584. {
  1585. "type": "null"
  1586. }
  1587. ]
  1588. }
  1589. },
  1590. "required": ["skill"],
  1591. "additionalProperties": false
  1592. }
  1593. }
  1594. },
  1595. "required": true
  1596. }
  1597. }
  1598. },
  1599. "/api/session/{sessionID}/synthetic": {
  1600. "post": {
  1601. "tags": ["sessions"],
  1602. "operationId": "v2.session.synthetic",
  1603. "parameters": [
  1604. {
  1605. "name": "sessionID",
  1606. "in": "path",
  1607. "schema": {
  1608. "type": "string",
  1609. "allOf": [
  1610. {
  1611. "pattern": "^ses"
  1612. }
  1613. ]
  1614. },
  1615. "required": true
  1616. }
  1617. ],
  1618. "security": [],
  1619. "responses": {
  1620. "204": {
  1621. "description": "<No Content>"
  1622. },
  1623. "400": {
  1624. "description": "InvalidRequestError",
  1625. "content": {
  1626. "application/json": {
  1627. "schema": {
  1628. "$ref": "#/components/schemas/InvalidRequestError"
  1629. }
  1630. }
  1631. }
  1632. },
  1633. "401": {
  1634. "description": "UnauthorizedError",
  1635. "content": {
  1636. "application/json": {
  1637. "schema": {
  1638. "$ref": "#/components/schemas/UnauthorizedError"
  1639. }
  1640. }
  1641. }
  1642. },
  1643. "404": {
  1644. "description": "SessionNotFoundError",
  1645. "content": {
  1646. "application/json": {
  1647. "schema": {
  1648. "anyOf": [
  1649. {
  1650. "$ref": "#/components/schemas/SessionNotFoundError"
  1651. },
  1652. {
  1653. "$ref": "#/components/schemas/SessionNotFoundError"
  1654. }
  1655. ]
  1656. }
  1657. }
  1658. }
  1659. }
  1660. },
  1661. "description": "Append a synthetic message to a session and resume execution.",
  1662. "summary": "Add synthetic message",
  1663. "requestBody": {
  1664. "content": {
  1665. "application/json": {
  1666. "schema": {
  1667. "type": "object",
  1668. "properties": {
  1669. "text": {
  1670. "type": "string"
  1671. },
  1672. "description": {
  1673. "anyOf": [
  1674. {
  1675. "type": "string"
  1676. },
  1677. {
  1678. "type": "null"
  1679. }
  1680. ]
  1681. },
  1682. "metadata": {
  1683. "type": "object"
  1684. }
  1685. },
  1686. "required": ["text"],
  1687. "additionalProperties": false
  1688. }
  1689. }
  1690. },
  1691. "required": true
  1692. }
  1693. }
  1694. },
  1695. "/api/session/{sessionID}/compact": {
  1696. "post": {
  1697. "tags": ["sessions"],
  1698. "operationId": "v2.session.compact",
  1699. "parameters": [
  1700. {
  1701. "name": "sessionID",
  1702. "in": "path",
  1703. "schema": {
  1704. "type": "string",
  1705. "allOf": [
  1706. {
  1707. "pattern": "^ses"
  1708. }
  1709. ]
  1710. },
  1711. "required": true
  1712. }
  1713. ],
  1714. "security": [],
  1715. "responses": {
  1716. "204": {
  1717. "description": "<No Content>"
  1718. },
  1719. "400": {
  1720. "description": "InvalidRequestError",
  1721. "content": {
  1722. "application/json": {
  1723. "schema": {
  1724. "$ref": "#/components/schemas/InvalidRequestError"
  1725. }
  1726. }
  1727. }
  1728. },
  1729. "401": {
  1730. "description": "UnauthorizedError",
  1731. "content": {
  1732. "application/json": {
  1733. "schema": {
  1734. "$ref": "#/components/schemas/UnauthorizedError"
  1735. }
  1736. }
  1737. }
  1738. },
  1739. "404": {
  1740. "description": "SessionNotFoundError",
  1741. "content": {
  1742. "application/json": {
  1743. "schema": {
  1744. "anyOf": [
  1745. {
  1746. "$ref": "#/components/schemas/SessionNotFoundError"
  1747. },
  1748. {
  1749. "$ref": "#/components/schemas/SessionNotFoundError"
  1750. }
  1751. ]
  1752. }
  1753. }
  1754. }
  1755. },
  1756. "409": {
  1757. "description": "SessionBusyError",
  1758. "content": {
  1759. "application/json": {
  1760. "schema": {
  1761. "$ref": "#/components/schemas/SessionBusyError"
  1762. }
  1763. }
  1764. }
  1765. },
  1766. "500": {
  1767. "description": "UnknownError",
  1768. "content": {
  1769. "application/json": {
  1770. "schema": {
  1771. "$ref": "#/components/schemas/UnknownError"
  1772. }
  1773. }
  1774. }
  1775. },
  1776. "503": {
  1777. "description": "ServiceUnavailableError",
  1778. "content": {
  1779. "application/json": {
  1780. "schema": {
  1781. "$ref": "#/components/schemas/ServiceUnavailableError"
  1782. }
  1783. }
  1784. }
  1785. }
  1786. },
  1787. "description": "Compact a session conversation.",
  1788. "summary": "Compact session"
  1789. }
  1790. },
  1791. "/api/session/{sessionID}/wait": {
  1792. "post": {
  1793. "tags": ["sessions"],
  1794. "operationId": "v2.session.wait",
  1795. "parameters": [
  1796. {
  1797. "name": "sessionID",
  1798. "in": "path",
  1799. "schema": {
  1800. "type": "string",
  1801. "allOf": [
  1802. {
  1803. "pattern": "^ses"
  1804. }
  1805. ]
  1806. },
  1807. "required": true
  1808. }
  1809. ],
  1810. "security": [],
  1811. "responses": {
  1812. "204": {
  1813. "description": "<No Content>"
  1814. },
  1815. "400": {
  1816. "description": "InvalidRequestError",
  1817. "content": {
  1818. "application/json": {
  1819. "schema": {
  1820. "$ref": "#/components/schemas/InvalidRequestError"
  1821. }
  1822. }
  1823. }
  1824. },
  1825. "401": {
  1826. "description": "UnauthorizedError",
  1827. "content": {
  1828. "application/json": {
  1829. "schema": {
  1830. "$ref": "#/components/schemas/UnauthorizedError"
  1831. }
  1832. }
  1833. }
  1834. },
  1835. "404": {
  1836. "description": "SessionNotFoundError",
  1837. "content": {
  1838. "application/json": {
  1839. "schema": {
  1840. "anyOf": [
  1841. {
  1842. "$ref": "#/components/schemas/SessionNotFoundError"
  1843. },
  1844. {
  1845. "$ref": "#/components/schemas/SessionNotFoundError"
  1846. }
  1847. ]
  1848. }
  1849. }
  1850. }
  1851. },
  1852. "503": {
  1853. "description": "ServiceUnavailableError",
  1854. "content": {
  1855. "application/json": {
  1856. "schema": {
  1857. "$ref": "#/components/schemas/ServiceUnavailableError"
  1858. }
  1859. }
  1860. }
  1861. }
  1862. },
  1863. "description": "Wait for a session agent loop to become idle.",
  1864. "summary": "Wait for session"
  1865. }
  1866. },
  1867. "/api/session/{sessionID}/revert/stage": {
  1868. "post": {
  1869. "tags": ["sessions"],
  1870. "operationId": "v2.session.revert.stage",
  1871. "parameters": [
  1872. {
  1873. "name": "sessionID",
  1874. "in": "path",
  1875. "schema": {
  1876. "type": "string",
  1877. "allOf": [
  1878. {
  1879. "pattern": "^ses"
  1880. }
  1881. ]
  1882. },
  1883. "required": true
  1884. }
  1885. ],
  1886. "security": [],
  1887. "responses": {
  1888. "200": {
  1889. "description": "Success",
  1890. "content": {
  1891. "application/json": {
  1892. "schema": {
  1893. "type": "object",
  1894. "properties": {
  1895. "data": {
  1896. "$ref": "#/components/schemas/Revert.State"
  1897. }
  1898. },
  1899. "required": ["data"],
  1900. "additionalProperties": false
  1901. }
  1902. }
  1903. }
  1904. },
  1905. "400": {
  1906. "description": "InvalidRequestError",
  1907. "content": {
  1908. "application/json": {
  1909. "schema": {
  1910. "$ref": "#/components/schemas/InvalidRequestError"
  1911. }
  1912. }
  1913. }
  1914. },
  1915. "401": {
  1916. "description": "UnauthorizedError",
  1917. "content": {
  1918. "application/json": {
  1919. "schema": {
  1920. "$ref": "#/components/schemas/UnauthorizedError"
  1921. }
  1922. }
  1923. }
  1924. },
  1925. "404": {
  1926. "description": "MessageNotFoundError | SessionNotFoundError",
  1927. "content": {
  1928. "application/json": {
  1929. "schema": {
  1930. "anyOf": [
  1931. {
  1932. "$ref": "#/components/schemas/MessageNotFoundError"
  1933. },
  1934. {
  1935. "$ref": "#/components/schemas/SessionNotFoundError"
  1936. },
  1937. {
  1938. "$ref": "#/components/schemas/SessionNotFoundError"
  1939. }
  1940. ]
  1941. }
  1942. }
  1943. }
  1944. },
  1945. "409": {
  1946. "description": "SessionBusyError",
  1947. "content": {
  1948. "application/json": {
  1949. "schema": {
  1950. "$ref": "#/components/schemas/SessionBusyError"
  1951. }
  1952. }
  1953. }
  1954. },
  1955. "500": {
  1956. "description": "UnknownError",
  1957. "content": {
  1958. "application/json": {
  1959. "schema": {
  1960. "$ref": "#/components/schemas/UnknownError"
  1961. }
  1962. }
  1963. }
  1964. }
  1965. },
  1966. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  1967. "summary": "Stage session revert",
  1968. "requestBody": {
  1969. "content": {
  1970. "application/json": {
  1971. "schema": {
  1972. "type": "object",
  1973. "properties": {
  1974. "messageID": {
  1975. "type": "string",
  1976. "allOf": [
  1977. {
  1978. "pattern": "^msg_"
  1979. }
  1980. ]
  1981. },
  1982. "files": {
  1983. "anyOf": [
  1984. {
  1985. "type": "boolean"
  1986. },
  1987. {
  1988. "type": "null"
  1989. }
  1990. ]
  1991. }
  1992. },
  1993. "required": ["messageID"],
  1994. "additionalProperties": false
  1995. }
  1996. }
  1997. },
  1998. "required": true
  1999. }
  2000. }
  2001. },
  2002. "/api/session/{sessionID}/revert/clear": {
  2003. "post": {
  2004. "tags": ["sessions"],
  2005. "operationId": "v2.session.revert.clear",
  2006. "parameters": [
  2007. {
  2008. "name": "sessionID",
  2009. "in": "path",
  2010. "schema": {
  2011. "type": "string",
  2012. "allOf": [
  2013. {
  2014. "pattern": "^ses"
  2015. }
  2016. ]
  2017. },
  2018. "required": true
  2019. }
  2020. ],
  2021. "security": [],
  2022. "responses": {
  2023. "204": {
  2024. "description": "<No Content>"
  2025. },
  2026. "400": {
  2027. "description": "InvalidRequestError",
  2028. "content": {
  2029. "application/json": {
  2030. "schema": {
  2031. "$ref": "#/components/schemas/InvalidRequestError"
  2032. }
  2033. }
  2034. }
  2035. },
  2036. "401": {
  2037. "description": "UnauthorizedError",
  2038. "content": {
  2039. "application/json": {
  2040. "schema": {
  2041. "$ref": "#/components/schemas/UnauthorizedError"
  2042. }
  2043. }
  2044. }
  2045. },
  2046. "404": {
  2047. "description": "SessionNotFoundError",
  2048. "content": {
  2049. "application/json": {
  2050. "schema": {
  2051. "anyOf": [
  2052. {
  2053. "$ref": "#/components/schemas/SessionNotFoundError"
  2054. },
  2055. {
  2056. "$ref": "#/components/schemas/SessionNotFoundError"
  2057. }
  2058. ]
  2059. }
  2060. }
  2061. }
  2062. },
  2063. "409": {
  2064. "description": "SessionBusyError",
  2065. "content": {
  2066. "application/json": {
  2067. "schema": {
  2068. "$ref": "#/components/schemas/SessionBusyError"
  2069. }
  2070. }
  2071. }
  2072. },
  2073. "500": {
  2074. "description": "UnknownError",
  2075. "content": {
  2076. "application/json": {
  2077. "schema": {
  2078. "$ref": "#/components/schemas/UnknownError"
  2079. }
  2080. }
  2081. }
  2082. }
  2083. },
  2084. "summary": "Clear staged revert"
  2085. }
  2086. },
  2087. "/api/session/{sessionID}/revert/commit": {
  2088. "post": {
  2089. "tags": ["sessions"],
  2090. "operationId": "v2.session.revert.commit",
  2091. "parameters": [
  2092. {
  2093. "name": "sessionID",
  2094. "in": "path",
  2095. "schema": {
  2096. "type": "string",
  2097. "allOf": [
  2098. {
  2099. "pattern": "^ses"
  2100. }
  2101. ]
  2102. },
  2103. "required": true
  2104. }
  2105. ],
  2106. "security": [],
  2107. "responses": {
  2108. "204": {
  2109. "description": "<No Content>"
  2110. },
  2111. "400": {
  2112. "description": "InvalidRequestError",
  2113. "content": {
  2114. "application/json": {
  2115. "schema": {
  2116. "$ref": "#/components/schemas/InvalidRequestError"
  2117. }
  2118. }
  2119. }
  2120. },
  2121. "401": {
  2122. "description": "UnauthorizedError",
  2123. "content": {
  2124. "application/json": {
  2125. "schema": {
  2126. "$ref": "#/components/schemas/UnauthorizedError"
  2127. }
  2128. }
  2129. }
  2130. },
  2131. "404": {
  2132. "description": "SessionNotFoundError",
  2133. "content": {
  2134. "application/json": {
  2135. "schema": {
  2136. "anyOf": [
  2137. {
  2138. "$ref": "#/components/schemas/SessionNotFoundError"
  2139. },
  2140. {
  2141. "$ref": "#/components/schemas/SessionNotFoundError"
  2142. }
  2143. ]
  2144. }
  2145. }
  2146. }
  2147. },
  2148. "409": {
  2149. "description": "SessionBusyError",
  2150. "content": {
  2151. "application/json": {
  2152. "schema": {
  2153. "$ref": "#/components/schemas/SessionBusyError"
  2154. }
  2155. }
  2156. }
  2157. }
  2158. },
  2159. "summary": "Commit staged revert"
  2160. }
  2161. },
  2162. "/api/session/{sessionID}/context": {
  2163. "get": {
  2164. "tags": ["sessions"],
  2165. "operationId": "v2.session.context",
  2166. "parameters": [
  2167. {
  2168. "name": "sessionID",
  2169. "in": "path",
  2170. "schema": {
  2171. "type": "string",
  2172. "allOf": [
  2173. {
  2174. "pattern": "^ses"
  2175. }
  2176. ]
  2177. },
  2178. "required": true
  2179. }
  2180. ],
  2181. "security": [],
  2182. "responses": {
  2183. "200": {
  2184. "description": "Success",
  2185. "content": {
  2186. "application/json": {
  2187. "schema": {
  2188. "type": "object",
  2189. "properties": {
  2190. "data": {
  2191. "type": "array",
  2192. "items": {
  2193. "$ref": "#/components/schemas/Session.Message"
  2194. }
  2195. }
  2196. },
  2197. "required": ["data"],
  2198. "additionalProperties": false
  2199. }
  2200. }
  2201. }
  2202. },
  2203. "400": {
  2204. "description": "InvalidRequestError",
  2205. "content": {
  2206. "application/json": {
  2207. "schema": {
  2208. "$ref": "#/components/schemas/InvalidRequestError"
  2209. }
  2210. }
  2211. }
  2212. },
  2213. "401": {
  2214. "description": "UnauthorizedError",
  2215. "content": {
  2216. "application/json": {
  2217. "schema": {
  2218. "$ref": "#/components/schemas/UnauthorizedError"
  2219. }
  2220. }
  2221. }
  2222. },
  2223. "404": {
  2224. "description": "SessionNotFoundError",
  2225. "content": {
  2226. "application/json": {
  2227. "schema": {
  2228. "anyOf": [
  2229. {
  2230. "$ref": "#/components/schemas/SessionNotFoundError"
  2231. },
  2232. {
  2233. "$ref": "#/components/schemas/SessionNotFoundError"
  2234. }
  2235. ]
  2236. }
  2237. }
  2238. }
  2239. },
  2240. "500": {
  2241. "description": "UnknownError",
  2242. "content": {
  2243. "application/json": {
  2244. "schema": {
  2245. "$ref": "#/components/schemas/UnknownError"
  2246. }
  2247. }
  2248. }
  2249. }
  2250. },
  2251. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2252. "summary": "Get session context"
  2253. }
  2254. },
  2255. "/api/session/{sessionID}/context-entry": {
  2256. "get": {
  2257. "tags": ["sessions"],
  2258. "operationId": "v2.session.context.entry.list",
  2259. "parameters": [
  2260. {
  2261. "name": "sessionID",
  2262. "in": "path",
  2263. "schema": {
  2264. "type": "string",
  2265. "allOf": [
  2266. {
  2267. "pattern": "^ses"
  2268. }
  2269. ]
  2270. },
  2271. "required": true
  2272. }
  2273. ],
  2274. "security": [],
  2275. "responses": {
  2276. "200": {
  2277. "description": "Success",
  2278. "content": {
  2279. "application/json": {
  2280. "schema": {
  2281. "type": "object",
  2282. "properties": {
  2283. "data": {
  2284. "type": "array",
  2285. "items": {
  2286. "$ref": "#/components/schemas/SessionContextEntry.Info"
  2287. }
  2288. }
  2289. },
  2290. "required": ["data"],
  2291. "additionalProperties": false
  2292. }
  2293. }
  2294. }
  2295. },
  2296. "400": {
  2297. "description": "InvalidRequestError",
  2298. "content": {
  2299. "application/json": {
  2300. "schema": {
  2301. "$ref": "#/components/schemas/InvalidRequestError"
  2302. }
  2303. }
  2304. }
  2305. },
  2306. "401": {
  2307. "description": "UnauthorizedError",
  2308. "content": {
  2309. "application/json": {
  2310. "schema": {
  2311. "$ref": "#/components/schemas/UnauthorizedError"
  2312. }
  2313. }
  2314. }
  2315. },
  2316. "404": {
  2317. "description": "SessionNotFoundError",
  2318. "content": {
  2319. "application/json": {
  2320. "schema": {
  2321. "anyOf": [
  2322. {
  2323. "$ref": "#/components/schemas/SessionNotFoundError"
  2324. },
  2325. {
  2326. "$ref": "#/components/schemas/SessionNotFoundError"
  2327. }
  2328. ]
  2329. }
  2330. }
  2331. }
  2332. }
  2333. },
  2334. "description": "List API-managed context entries attached to the session's system context.",
  2335. "summary": "List context entries"
  2336. }
  2337. },
  2338. "/api/session/{sessionID}/context-entry/{key}": {
  2339. "put": {
  2340. "tags": ["sessions"],
  2341. "operationId": "v2.session.context.entry.put",
  2342. "parameters": [
  2343. {
  2344. "name": "sessionID",
  2345. "in": "path",
  2346. "schema": {
  2347. "type": "string",
  2348. "allOf": [
  2349. {
  2350. "pattern": "^ses"
  2351. }
  2352. ]
  2353. },
  2354. "required": true
  2355. },
  2356. {
  2357. "name": "key",
  2358. "in": "path",
  2359. "schema": {
  2360. "$ref": "#/components/schemas/SessionContextEntry.Key"
  2361. },
  2362. "required": true
  2363. }
  2364. ],
  2365. "security": [],
  2366. "responses": {
  2367. "204": {
  2368. "description": "<No Content>"
  2369. },
  2370. "400": {
  2371. "description": "InvalidRequestError",
  2372. "content": {
  2373. "application/json": {
  2374. "schema": {
  2375. "$ref": "#/components/schemas/InvalidRequestError"
  2376. }
  2377. }
  2378. }
  2379. },
  2380. "401": {
  2381. "description": "UnauthorizedError",
  2382. "content": {
  2383. "application/json": {
  2384. "schema": {
  2385. "$ref": "#/components/schemas/UnauthorizedError"
  2386. }
  2387. }
  2388. }
  2389. },
  2390. "404": {
  2391. "description": "SessionNotFoundError",
  2392. "content": {
  2393. "application/json": {
  2394. "schema": {
  2395. "anyOf": [
  2396. {
  2397. "$ref": "#/components/schemas/SessionNotFoundError"
  2398. },
  2399. {
  2400. "$ref": "#/components/schemas/SessionNotFoundError"
  2401. }
  2402. ]
  2403. }
  2404. }
  2405. }
  2406. }
  2407. },
  2408. "description": "Attach or replace one durable context entry. The value is rendered into the session's system context; changes announce as updates at the next turn boundary.",
  2409. "summary": "Put context entry",
  2410. "requestBody": {
  2411. "content": {
  2412. "application/json": {
  2413. "schema": {
  2414. "type": "object",
  2415. "properties": {
  2416. "value": {}
  2417. },
  2418. "required": ["value"],
  2419. "additionalProperties": false
  2420. }
  2421. }
  2422. },
  2423. "required": true
  2424. }
  2425. },
  2426. "delete": {
  2427. "tags": ["sessions"],
  2428. "operationId": "v2.session.context.entry.remove",
  2429. "parameters": [
  2430. {
  2431. "name": "sessionID",
  2432. "in": "path",
  2433. "schema": {
  2434. "type": "string",
  2435. "allOf": [
  2436. {
  2437. "pattern": "^ses"
  2438. }
  2439. ]
  2440. },
  2441. "required": true
  2442. },
  2443. {
  2444. "name": "key",
  2445. "in": "path",
  2446. "schema": {
  2447. "$ref": "#/components/schemas/SessionContextEntry.Key"
  2448. },
  2449. "required": true
  2450. }
  2451. ],
  2452. "security": [],
  2453. "responses": {
  2454. "204": {
  2455. "description": "<No Content>"
  2456. },
  2457. "400": {
  2458. "description": "InvalidRequestError",
  2459. "content": {
  2460. "application/json": {
  2461. "schema": {
  2462. "$ref": "#/components/schemas/InvalidRequestError"
  2463. }
  2464. }
  2465. }
  2466. },
  2467. "401": {
  2468. "description": "UnauthorizedError",
  2469. "content": {
  2470. "application/json": {
  2471. "schema": {
  2472. "$ref": "#/components/schemas/UnauthorizedError"
  2473. }
  2474. }
  2475. }
  2476. },
  2477. "404": {
  2478. "description": "SessionNotFoundError",
  2479. "content": {
  2480. "application/json": {
  2481. "schema": {
  2482. "anyOf": [
  2483. {
  2484. "$ref": "#/components/schemas/SessionNotFoundError"
  2485. },
  2486. {
  2487. "$ref": "#/components/schemas/SessionNotFoundError"
  2488. }
  2489. ]
  2490. }
  2491. }
  2492. }
  2493. }
  2494. },
  2495. "description": "Remove one context entry; the removal is announced to the model at the next turn boundary.",
  2496. "summary": "Remove context entry"
  2497. }
  2498. },
  2499. "/api/session/{sessionID}/log": {
  2500. "get": {
  2501. "tags": ["sessions"],
  2502. "operationId": "v2.session.log",
  2503. "parameters": [
  2504. {
  2505. "name": "sessionID",
  2506. "in": "path",
  2507. "schema": {
  2508. "type": "string",
  2509. "allOf": [
  2510. {
  2511. "pattern": "^ses"
  2512. }
  2513. ]
  2514. },
  2515. "required": true
  2516. },
  2517. {
  2518. "name": "after",
  2519. "in": "query",
  2520. "schema": {
  2521. "anyOf": [
  2522. {
  2523. "type": "string"
  2524. },
  2525. {
  2526. "type": "null"
  2527. }
  2528. ]
  2529. },
  2530. "required": false
  2531. },
  2532. {
  2533. "name": "follow",
  2534. "in": "query",
  2535. "schema": {
  2536. "anyOf": [
  2537. {
  2538. "type": "string",
  2539. "enum": ["true", "false"]
  2540. },
  2541. {
  2542. "type": "null"
  2543. }
  2544. ]
  2545. },
  2546. "required": false
  2547. }
  2548. ],
  2549. "security": [],
  2550. "responses": {
  2551. "200": {
  2552. "description": "Success",
  2553. "content": {
  2554. "text/event-stream": {
  2555. "schema": {
  2556. "type": "object",
  2557. "properties": {
  2558. "id": {
  2559. "anyOf": [
  2560. {
  2561. "type": "string"
  2562. },
  2563. {
  2564. "type": "null"
  2565. }
  2566. ]
  2567. },
  2568. "event": {
  2569. "type": "string"
  2570. },
  2571. "data": {
  2572. "$ref": "#/components/schemas/SessionLogItemStream"
  2573. }
  2574. },
  2575. "required": ["id", "event", "data"],
  2576. "additionalProperties": false
  2577. },
  2578. "x-effect-stream": {
  2579. "encoding": "sse",
  2580. "causeSchema": {
  2581. "type": "array",
  2582. "items": {
  2583. "anyOf": [
  2584. {
  2585. "type": "object",
  2586. "properties": {
  2587. "_tag": {
  2588. "type": "string",
  2589. "enum": ["Fail"]
  2590. },
  2591. "error": {
  2592. "not": {}
  2593. }
  2594. },
  2595. "required": ["_tag", "error"],
  2596. "additionalProperties": false
  2597. },
  2598. {
  2599. "type": "object",
  2600. "properties": {
  2601. "_tag": {
  2602. "type": "string",
  2603. "enum": ["Die"]
  2604. },
  2605. "defect": {}
  2606. },
  2607. "required": ["_tag", "defect"],
  2608. "additionalProperties": false
  2609. },
  2610. {
  2611. "type": "object",
  2612. "properties": {
  2613. "_tag": {
  2614. "type": "string",
  2615. "enum": ["Interrupt"]
  2616. },
  2617. "fiberId": {
  2618. "anyOf": [
  2619. {
  2620. "type": "number"
  2621. },
  2622. {
  2623. "type": "null"
  2624. }
  2625. ]
  2626. }
  2627. },
  2628. "required": ["_tag", "fiberId"],
  2629. "additionalProperties": false
  2630. }
  2631. ]
  2632. }
  2633. },
  2634. "errorSchema": {
  2635. "not": {}
  2636. },
  2637. "failureEvent": "effect/httpapi/stream/failure"
  2638. }
  2639. }
  2640. }
  2641. },
  2642. "400": {
  2643. "description": "InvalidRequestError",
  2644. "content": {
  2645. "application/json": {
  2646. "schema": {
  2647. "$ref": "#/components/schemas/InvalidRequestError"
  2648. }
  2649. }
  2650. }
  2651. },
  2652. "401": {
  2653. "description": "UnauthorizedError",
  2654. "content": {
  2655. "application/json": {
  2656. "schema": {
  2657. "$ref": "#/components/schemas/UnauthorizedError"
  2658. }
  2659. }
  2660. }
  2661. },
  2662. "404": {
  2663. "description": "SessionNotFoundError",
  2664. "content": {
  2665. "application/json": {
  2666. "schema": {
  2667. "anyOf": [
  2668. {
  2669. "$ref": "#/components/schemas/SessionNotFoundError"
  2670. },
  2671. {
  2672. "$ref": "#/components/schemas/SessionNotFoundError"
  2673. }
  2674. ]
  2675. }
  2676. }
  2677. }
  2678. }
  2679. },
  2680. "description": "Durable, ordered, gap-free read of public session events after an exclusive aggregate sequence. Emits a synced marker once replay reaches the captured watermark, then completes; with follow=true it continues with live events instead. The only event API that promises reliability: attach after a snapshot watermark to compose fetch and stream without a race window.",
  2681. "summary": "Read the session log"
  2682. }
  2683. },
  2684. "/api/session/{sessionID}/interrupt": {
  2685. "post": {
  2686. "tags": ["sessions"],
  2687. "operationId": "v2.session.interrupt",
  2688. "parameters": [
  2689. {
  2690. "name": "sessionID",
  2691. "in": "path",
  2692. "schema": {
  2693. "type": "string",
  2694. "allOf": [
  2695. {
  2696. "pattern": "^ses"
  2697. }
  2698. ]
  2699. },
  2700. "required": true
  2701. }
  2702. ],
  2703. "security": [],
  2704. "responses": {
  2705. "204": {
  2706. "description": "<No Content>"
  2707. },
  2708. "400": {
  2709. "description": "InvalidRequestError",
  2710. "content": {
  2711. "application/json": {
  2712. "schema": {
  2713. "$ref": "#/components/schemas/InvalidRequestError"
  2714. }
  2715. }
  2716. }
  2717. },
  2718. "401": {
  2719. "description": "UnauthorizedError",
  2720. "content": {
  2721. "application/json": {
  2722. "schema": {
  2723. "$ref": "#/components/schemas/UnauthorizedError"
  2724. }
  2725. }
  2726. }
  2727. },
  2728. "404": {
  2729. "description": "SessionNotFoundError",
  2730. "content": {
  2731. "application/json": {
  2732. "schema": {
  2733. "anyOf": [
  2734. {
  2735. "$ref": "#/components/schemas/SessionNotFoundError"
  2736. },
  2737. {
  2738. "$ref": "#/components/schemas/SessionNotFoundError"
  2739. }
  2740. ]
  2741. }
  2742. }
  2743. }
  2744. }
  2745. },
  2746. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  2747. "summary": "Interrupt session execution"
  2748. }
  2749. },
  2750. "/api/session/{sessionID}/background": {
  2751. "post": {
  2752. "tags": ["sessions"],
  2753. "operationId": "v2.session.background",
  2754. "parameters": [
  2755. {
  2756. "name": "sessionID",
  2757. "in": "path",
  2758. "schema": {
  2759. "type": "string",
  2760. "allOf": [
  2761. {
  2762. "pattern": "^ses"
  2763. }
  2764. ]
  2765. },
  2766. "required": true
  2767. }
  2768. ],
  2769. "security": [],
  2770. "responses": {
  2771. "204": {
  2772. "description": "<No Content>"
  2773. },
  2774. "400": {
  2775. "description": "InvalidRequestError",
  2776. "content": {
  2777. "application/json": {
  2778. "schema": {
  2779. "$ref": "#/components/schemas/InvalidRequestError"
  2780. }
  2781. }
  2782. }
  2783. },
  2784. "401": {
  2785. "description": "UnauthorizedError",
  2786. "content": {
  2787. "application/json": {
  2788. "schema": {
  2789. "$ref": "#/components/schemas/UnauthorizedError"
  2790. }
  2791. }
  2792. }
  2793. },
  2794. "404": {
  2795. "description": "SessionNotFoundError",
  2796. "content": {
  2797. "application/json": {
  2798. "schema": {
  2799. "anyOf": [
  2800. {
  2801. "$ref": "#/components/schemas/SessionNotFoundError"
  2802. },
  2803. {
  2804. "$ref": "#/components/schemas/SessionNotFoundError"
  2805. }
  2806. ]
  2807. }
  2808. }
  2809. }
  2810. }
  2811. },
  2812. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  2813. "summary": "Background blocking session tools"
  2814. }
  2815. },
  2816. "/api/session/{sessionID}/message/{messageID}": {
  2817. "get": {
  2818. "tags": ["sessions"],
  2819. "operationId": "v2.session.message",
  2820. "parameters": [
  2821. {
  2822. "name": "sessionID",
  2823. "in": "path",
  2824. "schema": {
  2825. "type": "string",
  2826. "allOf": [
  2827. {
  2828. "pattern": "^ses"
  2829. }
  2830. ]
  2831. },
  2832. "required": true
  2833. },
  2834. {
  2835. "name": "messageID",
  2836. "in": "path",
  2837. "schema": {
  2838. "type": "string",
  2839. "allOf": [
  2840. {
  2841. "pattern": "^msg_"
  2842. }
  2843. ]
  2844. },
  2845. "required": true
  2846. }
  2847. ],
  2848. "security": [],
  2849. "responses": {
  2850. "200": {
  2851. "description": "Success",
  2852. "content": {
  2853. "application/json": {
  2854. "schema": {
  2855. "type": "object",
  2856. "properties": {
  2857. "data": {
  2858. "$ref": "#/components/schemas/Session.Message"
  2859. }
  2860. },
  2861. "required": ["data"],
  2862. "additionalProperties": false
  2863. }
  2864. }
  2865. }
  2866. },
  2867. "400": {
  2868. "description": "InvalidRequestError",
  2869. "content": {
  2870. "application/json": {
  2871. "schema": {
  2872. "$ref": "#/components/schemas/InvalidRequestError"
  2873. }
  2874. }
  2875. }
  2876. },
  2877. "401": {
  2878. "description": "UnauthorizedError",
  2879. "content": {
  2880. "application/json": {
  2881. "schema": {
  2882. "$ref": "#/components/schemas/UnauthorizedError"
  2883. }
  2884. }
  2885. }
  2886. },
  2887. "404": {
  2888. "description": "SessionNotFoundError | MessageNotFoundError",
  2889. "content": {
  2890. "application/json": {
  2891. "schema": {
  2892. "anyOf": [
  2893. {
  2894. "$ref": "#/components/schemas/MessageNotFoundError"
  2895. },
  2896. {
  2897. "$ref": "#/components/schemas/SessionNotFoundError"
  2898. },
  2899. {
  2900. "$ref": "#/components/schemas/SessionNotFoundError"
  2901. }
  2902. ]
  2903. }
  2904. }
  2905. }
  2906. }
  2907. },
  2908. "description": "Retrieve one projected message owned by the Session.",
  2909. "summary": "Get session message"
  2910. }
  2911. },
  2912. "/api/session/{sessionID}/message": {
  2913. "get": {
  2914. "tags": ["messages"],
  2915. "operationId": "v2.session.messages",
  2916. "parameters": [
  2917. {
  2918. "name": "sessionID",
  2919. "in": "path",
  2920. "schema": {
  2921. "type": "string",
  2922. "allOf": [
  2923. {
  2924. "pattern": "^ses"
  2925. }
  2926. ]
  2927. },
  2928. "required": true
  2929. },
  2930. {
  2931. "name": "limit",
  2932. "in": "query",
  2933. "schema": {
  2934. "anyOf": [
  2935. {
  2936. "type": "string"
  2937. },
  2938. {
  2939. "type": "null"
  2940. }
  2941. ],
  2942. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  2943. },
  2944. "required": false
  2945. },
  2946. {
  2947. "name": "order",
  2948. "in": "query",
  2949. "schema": {
  2950. "anyOf": [
  2951. {
  2952. "type": "string",
  2953. "enum": ["asc", "desc"]
  2954. },
  2955. {
  2956. "type": "null"
  2957. }
  2958. ],
  2959. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  2960. },
  2961. "required": false
  2962. },
  2963. {
  2964. "name": "cursor",
  2965. "in": "query",
  2966. "schema": {
  2967. "anyOf": [
  2968. {
  2969. "type": "string",
  2970. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  2971. },
  2972. {
  2973. "type": "null"
  2974. }
  2975. ]
  2976. },
  2977. "required": false
  2978. }
  2979. ],
  2980. "security": [],
  2981. "responses": {
  2982. "200": {
  2983. "description": "SessionMessagesResponse",
  2984. "content": {
  2985. "application/json": {
  2986. "schema": {
  2987. "$ref": "#/components/schemas/SessionMessagesResponse"
  2988. }
  2989. }
  2990. }
  2991. },
  2992. "400": {
  2993. "description": "InvalidCursorError | InvalidRequestError",
  2994. "content": {
  2995. "application/json": {
  2996. "schema": {
  2997. "anyOf": [
  2998. {
  2999. "$ref": "#/components/schemas/InvalidCursorError"
  3000. },
  3001. {
  3002. "$ref": "#/components/schemas/InvalidRequestError"
  3003. }
  3004. ]
  3005. }
  3006. }
  3007. }
  3008. },
  3009. "401": {
  3010. "description": "UnauthorizedError",
  3011. "content": {
  3012. "application/json": {
  3013. "schema": {
  3014. "$ref": "#/components/schemas/UnauthorizedError"
  3015. }
  3016. }
  3017. }
  3018. },
  3019. "404": {
  3020. "description": "SessionNotFoundError",
  3021. "content": {
  3022. "application/json": {
  3023. "schema": {
  3024. "anyOf": [
  3025. {
  3026. "$ref": "#/components/schemas/SessionNotFoundError"
  3027. },
  3028. {
  3029. "$ref": "#/components/schemas/SessionNotFoundError"
  3030. }
  3031. ]
  3032. }
  3033. }
  3034. }
  3035. },
  3036. "500": {
  3037. "description": "UnknownError",
  3038. "content": {
  3039. "application/json": {
  3040. "schema": {
  3041. "$ref": "#/components/schemas/UnknownError"
  3042. }
  3043. }
  3044. }
  3045. }
  3046. },
  3047. "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.",
  3048. "summary": "Get session messages"
  3049. }
  3050. },
  3051. "/api/model": {
  3052. "get": {
  3053. "tags": ["models"],
  3054. "operationId": "v2.model.list",
  3055. "parameters": [
  3056. {
  3057. "name": "location",
  3058. "in": "query",
  3059. "schema": {
  3060. "anyOf": [
  3061. {
  3062. "type": "object",
  3063. "properties": {
  3064. "directory": {
  3065. "anyOf": [
  3066. {
  3067. "type": "string"
  3068. },
  3069. {
  3070. "type": "null"
  3071. }
  3072. ]
  3073. },
  3074. "workspace": {
  3075. "anyOf": [
  3076. {
  3077. "type": "string"
  3078. },
  3079. {
  3080. "type": "null"
  3081. }
  3082. ]
  3083. }
  3084. },
  3085. "additionalProperties": false
  3086. },
  3087. {
  3088. "type": "null"
  3089. }
  3090. ]
  3091. },
  3092. "required": false,
  3093. "style": "deepObject",
  3094. "explode": true
  3095. }
  3096. ],
  3097. "security": [],
  3098. "responses": {
  3099. "200": {
  3100. "description": "Success",
  3101. "content": {
  3102. "application/json": {
  3103. "schema": {
  3104. "type": "object",
  3105. "properties": {
  3106. "location": {
  3107. "$ref": "#/components/schemas/Location.Info"
  3108. },
  3109. "data": {
  3110. "type": "array",
  3111. "items": {
  3112. "$ref": "#/components/schemas/ModelV2.Info"
  3113. }
  3114. }
  3115. },
  3116. "required": ["location", "data"],
  3117. "additionalProperties": false
  3118. }
  3119. }
  3120. }
  3121. },
  3122. "400": {
  3123. "description": "InvalidRequestError",
  3124. "content": {
  3125. "application/json": {
  3126. "schema": {
  3127. "$ref": "#/components/schemas/InvalidRequestError"
  3128. }
  3129. }
  3130. }
  3131. },
  3132. "401": {
  3133. "description": "UnauthorizedError",
  3134. "content": {
  3135. "application/json": {
  3136. "schema": {
  3137. "$ref": "#/components/schemas/UnauthorizedError"
  3138. }
  3139. }
  3140. }
  3141. },
  3142. "503": {
  3143. "description": "ServiceUnavailableError",
  3144. "content": {
  3145. "application/json": {
  3146. "schema": {
  3147. "$ref": "#/components/schemas/ServiceUnavailableError"
  3148. }
  3149. }
  3150. }
  3151. }
  3152. },
  3153. "description": "Retrieve available models ordered by release date.",
  3154. "summary": "List models"
  3155. }
  3156. },
  3157. "/api/model/default": {
  3158. "get": {
  3159. "tags": ["models"],
  3160. "operationId": "v2.model.default",
  3161. "parameters": [
  3162. {
  3163. "name": "location",
  3164. "in": "query",
  3165. "schema": {
  3166. "anyOf": [
  3167. {
  3168. "type": "object",
  3169. "properties": {
  3170. "directory": {
  3171. "anyOf": [
  3172. {
  3173. "type": "string"
  3174. },
  3175. {
  3176. "type": "null"
  3177. }
  3178. ]
  3179. },
  3180. "workspace": {
  3181. "anyOf": [
  3182. {
  3183. "type": "string"
  3184. },
  3185. {
  3186. "type": "null"
  3187. }
  3188. ]
  3189. }
  3190. },
  3191. "additionalProperties": false
  3192. },
  3193. {
  3194. "type": "null"
  3195. }
  3196. ]
  3197. },
  3198. "required": false,
  3199. "style": "deepObject",
  3200. "explode": true
  3201. }
  3202. ],
  3203. "security": [],
  3204. "responses": {
  3205. "200": {
  3206. "description": "Success",
  3207. "content": {
  3208. "application/json": {
  3209. "schema": {
  3210. "type": "object",
  3211. "properties": {
  3212. "location": {
  3213. "$ref": "#/components/schemas/Location.Info"
  3214. },
  3215. "data": {
  3216. "anyOf": [
  3217. {
  3218. "$ref": "#/components/schemas/ModelV2.Info"
  3219. },
  3220. {
  3221. "type": "null"
  3222. }
  3223. ]
  3224. }
  3225. },
  3226. "required": ["location", "data"],
  3227. "additionalProperties": false
  3228. }
  3229. }
  3230. }
  3231. },
  3232. "400": {
  3233. "description": "InvalidRequestError",
  3234. "content": {
  3235. "application/json": {
  3236. "schema": {
  3237. "$ref": "#/components/schemas/InvalidRequestError"
  3238. }
  3239. }
  3240. }
  3241. },
  3242. "401": {
  3243. "description": "UnauthorizedError",
  3244. "content": {
  3245. "application/json": {
  3246. "schema": {
  3247. "$ref": "#/components/schemas/UnauthorizedError"
  3248. }
  3249. }
  3250. }
  3251. },
  3252. "503": {
  3253. "description": "ServiceUnavailableError",
  3254. "content": {
  3255. "application/json": {
  3256. "schema": {
  3257. "$ref": "#/components/schemas/ServiceUnavailableError"
  3258. }
  3259. }
  3260. }
  3261. }
  3262. },
  3263. "description": "Retrieve the model used when a session has no explicit model selection.",
  3264. "summary": "Get default model"
  3265. }
  3266. },
  3267. "/api/generate": {
  3268. "post": {
  3269. "tags": ["generate"],
  3270. "operationId": "v2.generate.text",
  3271. "parameters": [
  3272. {
  3273. "name": "location",
  3274. "in": "query",
  3275. "schema": {
  3276. "anyOf": [
  3277. {
  3278. "type": "object",
  3279. "properties": {
  3280. "directory": {
  3281. "anyOf": [
  3282. {
  3283. "type": "string"
  3284. },
  3285. {
  3286. "type": "null"
  3287. }
  3288. ]
  3289. },
  3290. "workspace": {
  3291. "anyOf": [
  3292. {
  3293. "type": "string"
  3294. },
  3295. {
  3296. "type": "null"
  3297. }
  3298. ]
  3299. }
  3300. },
  3301. "additionalProperties": false
  3302. },
  3303. {
  3304. "type": "null"
  3305. }
  3306. ]
  3307. },
  3308. "required": false,
  3309. "style": "deepObject",
  3310. "explode": true
  3311. }
  3312. ],
  3313. "security": [],
  3314. "responses": {
  3315. "200": {
  3316. "description": "GenerateTextResponse",
  3317. "content": {
  3318. "application/json": {
  3319. "schema": {
  3320. "$ref": "#/components/schemas/GenerateTextResponse"
  3321. }
  3322. }
  3323. }
  3324. },
  3325. "400": {
  3326. "description": "InvalidRequestError",
  3327. "content": {
  3328. "application/json": {
  3329. "schema": {
  3330. "anyOf": [
  3331. {
  3332. "$ref": "#/components/schemas/InvalidRequestError1"
  3333. },
  3334. {
  3335. "$ref": "#/components/schemas/InvalidRequestError"
  3336. }
  3337. ]
  3338. }
  3339. }
  3340. }
  3341. },
  3342. "401": {
  3343. "description": "UnauthorizedError",
  3344. "content": {
  3345. "application/json": {
  3346. "schema": {
  3347. "$ref": "#/components/schemas/UnauthorizedError"
  3348. }
  3349. }
  3350. }
  3351. },
  3352. "503": {
  3353. "description": "ServiceUnavailableError",
  3354. "content": {
  3355. "application/json": {
  3356. "schema": {
  3357. "$ref": "#/components/schemas/ServiceUnavailableError"
  3358. }
  3359. }
  3360. }
  3361. }
  3362. },
  3363. "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.",
  3364. "summary": "Generate text",
  3365. "requestBody": {
  3366. "content": {
  3367. "application/json": {
  3368. "schema": {
  3369. "type": "object",
  3370. "properties": {
  3371. "prompt": {
  3372. "type": "string"
  3373. },
  3374. "model": {
  3375. "anyOf": [
  3376. {
  3377. "$ref": "#/components/schemas/Model.Ref"
  3378. },
  3379. {
  3380. "type": "null"
  3381. }
  3382. ]
  3383. }
  3384. },
  3385. "required": ["prompt"],
  3386. "additionalProperties": false
  3387. }
  3388. }
  3389. },
  3390. "required": true
  3391. }
  3392. }
  3393. },
  3394. "/api/provider": {
  3395. "get": {
  3396. "tags": ["providers"],
  3397. "operationId": "v2.provider.list",
  3398. "parameters": [
  3399. {
  3400. "name": "location",
  3401. "in": "query",
  3402. "schema": {
  3403. "anyOf": [
  3404. {
  3405. "type": "object",
  3406. "properties": {
  3407. "directory": {
  3408. "anyOf": [
  3409. {
  3410. "type": "string"
  3411. },
  3412. {
  3413. "type": "null"
  3414. }
  3415. ]
  3416. },
  3417. "workspace": {
  3418. "anyOf": [
  3419. {
  3420. "type": "string"
  3421. },
  3422. {
  3423. "type": "null"
  3424. }
  3425. ]
  3426. }
  3427. },
  3428. "additionalProperties": false
  3429. },
  3430. {
  3431. "type": "null"
  3432. }
  3433. ]
  3434. },
  3435. "required": false,
  3436. "style": "deepObject",
  3437. "explode": true
  3438. }
  3439. ],
  3440. "security": [],
  3441. "responses": {
  3442. "200": {
  3443. "description": "Success",
  3444. "content": {
  3445. "application/json": {
  3446. "schema": {
  3447. "type": "object",
  3448. "properties": {
  3449. "location": {
  3450. "$ref": "#/components/schemas/Location.Info"
  3451. },
  3452. "data": {
  3453. "type": "array",
  3454. "items": {
  3455. "$ref": "#/components/schemas/ProviderV2.Info"
  3456. }
  3457. }
  3458. },
  3459. "required": ["location", "data"],
  3460. "additionalProperties": false
  3461. }
  3462. }
  3463. }
  3464. },
  3465. "400": {
  3466. "description": "InvalidRequestError",
  3467. "content": {
  3468. "application/json": {
  3469. "schema": {
  3470. "$ref": "#/components/schemas/InvalidRequestError"
  3471. }
  3472. }
  3473. }
  3474. },
  3475. "401": {
  3476. "description": "UnauthorizedError",
  3477. "content": {
  3478. "application/json": {
  3479. "schema": {
  3480. "$ref": "#/components/schemas/UnauthorizedError"
  3481. }
  3482. }
  3483. }
  3484. },
  3485. "503": {
  3486. "description": "ServiceUnavailableError",
  3487. "content": {
  3488. "application/json": {
  3489. "schema": {
  3490. "$ref": "#/components/schemas/ServiceUnavailableError"
  3491. }
  3492. }
  3493. }
  3494. }
  3495. },
  3496. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  3497. "summary": "List providers"
  3498. }
  3499. },
  3500. "/api/provider/{providerID}": {
  3501. "get": {
  3502. "tags": ["providers"],
  3503. "operationId": "v2.provider.get",
  3504. "parameters": [
  3505. {
  3506. "name": "providerID",
  3507. "in": "path",
  3508. "schema": {
  3509. "type": "string"
  3510. },
  3511. "required": true
  3512. },
  3513. {
  3514. "name": "location",
  3515. "in": "query",
  3516. "schema": {
  3517. "anyOf": [
  3518. {
  3519. "type": "object",
  3520. "properties": {
  3521. "directory": {
  3522. "anyOf": [
  3523. {
  3524. "type": "string"
  3525. },
  3526. {
  3527. "type": "null"
  3528. }
  3529. ]
  3530. },
  3531. "workspace": {
  3532. "anyOf": [
  3533. {
  3534. "type": "string"
  3535. },
  3536. {
  3537. "type": "null"
  3538. }
  3539. ]
  3540. }
  3541. },
  3542. "additionalProperties": false
  3543. },
  3544. {
  3545. "type": "null"
  3546. }
  3547. ]
  3548. },
  3549. "required": false,
  3550. "style": "deepObject",
  3551. "explode": true
  3552. }
  3553. ],
  3554. "security": [],
  3555. "responses": {
  3556. "200": {
  3557. "description": "Success",
  3558. "content": {
  3559. "application/json": {
  3560. "schema": {
  3561. "type": "object",
  3562. "properties": {
  3563. "location": {
  3564. "$ref": "#/components/schemas/Location.Info"
  3565. },
  3566. "data": {
  3567. "$ref": "#/components/schemas/ProviderV2.Info"
  3568. }
  3569. },
  3570. "required": ["location", "data"],
  3571. "additionalProperties": false
  3572. }
  3573. }
  3574. }
  3575. },
  3576. "400": {
  3577. "description": "InvalidRequestError",
  3578. "content": {
  3579. "application/json": {
  3580. "schema": {
  3581. "$ref": "#/components/schemas/InvalidRequestError"
  3582. }
  3583. }
  3584. }
  3585. },
  3586. "401": {
  3587. "description": "UnauthorizedError",
  3588. "content": {
  3589. "application/json": {
  3590. "schema": {
  3591. "$ref": "#/components/schemas/UnauthorizedError"
  3592. }
  3593. }
  3594. }
  3595. },
  3596. "404": {
  3597. "description": "ProviderNotFoundError",
  3598. "content": {
  3599. "application/json": {
  3600. "schema": {
  3601. "$ref": "#/components/schemas/ProviderNotFoundError"
  3602. }
  3603. }
  3604. }
  3605. },
  3606. "503": {
  3607. "description": "ServiceUnavailableError",
  3608. "content": {
  3609. "application/json": {
  3610. "schema": {
  3611. "$ref": "#/components/schemas/ServiceUnavailableError"
  3612. }
  3613. }
  3614. }
  3615. }
  3616. },
  3617. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  3618. "summary": "Get provider"
  3619. }
  3620. },
  3621. "/api/integration": {
  3622. "get": {
  3623. "tags": ["integrations"],
  3624. "operationId": "v2.integration.list",
  3625. "parameters": [
  3626. {
  3627. "name": "location",
  3628. "in": "query",
  3629. "schema": {
  3630. "anyOf": [
  3631. {
  3632. "type": "object",
  3633. "properties": {
  3634. "directory": {
  3635. "anyOf": [
  3636. {
  3637. "type": "string"
  3638. },
  3639. {
  3640. "type": "null"
  3641. }
  3642. ]
  3643. },
  3644. "workspace": {
  3645. "anyOf": [
  3646. {
  3647. "type": "string"
  3648. },
  3649. {
  3650. "type": "null"
  3651. }
  3652. ]
  3653. }
  3654. },
  3655. "additionalProperties": false
  3656. },
  3657. {
  3658. "type": "null"
  3659. }
  3660. ]
  3661. },
  3662. "required": false,
  3663. "style": "deepObject",
  3664. "explode": true
  3665. }
  3666. ],
  3667. "security": [],
  3668. "responses": {
  3669. "200": {
  3670. "description": "Success",
  3671. "content": {
  3672. "application/json": {
  3673. "schema": {
  3674. "type": "object",
  3675. "properties": {
  3676. "location": {
  3677. "$ref": "#/components/schemas/Location.Info"
  3678. },
  3679. "data": {
  3680. "type": "array",
  3681. "items": {
  3682. "$ref": "#/components/schemas/Integration.Info"
  3683. }
  3684. }
  3685. },
  3686. "required": ["location", "data"],
  3687. "additionalProperties": false
  3688. }
  3689. }
  3690. }
  3691. },
  3692. "400": {
  3693. "description": "InvalidRequestError",
  3694. "content": {
  3695. "application/json": {
  3696. "schema": {
  3697. "$ref": "#/components/schemas/InvalidRequestError"
  3698. }
  3699. }
  3700. }
  3701. },
  3702. "401": {
  3703. "description": "UnauthorizedError",
  3704. "content": {
  3705. "application/json": {
  3706. "schema": {
  3707. "$ref": "#/components/schemas/UnauthorizedError"
  3708. }
  3709. }
  3710. }
  3711. }
  3712. },
  3713. "description": "Retrieve available integrations and their authentication methods.",
  3714. "summary": "List integrations"
  3715. }
  3716. },
  3717. "/api/integration/{integrationID}": {
  3718. "get": {
  3719. "tags": ["integrations"],
  3720. "operationId": "v2.integration.get",
  3721. "parameters": [
  3722. {
  3723. "name": "integrationID",
  3724. "in": "path",
  3725. "schema": {
  3726. "type": "string"
  3727. },
  3728. "required": true
  3729. },
  3730. {
  3731. "name": "location",
  3732. "in": "query",
  3733. "schema": {
  3734. "anyOf": [
  3735. {
  3736. "type": "object",
  3737. "properties": {
  3738. "directory": {
  3739. "anyOf": [
  3740. {
  3741. "type": "string"
  3742. },
  3743. {
  3744. "type": "null"
  3745. }
  3746. ]
  3747. },
  3748. "workspace": {
  3749. "anyOf": [
  3750. {
  3751. "type": "string"
  3752. },
  3753. {
  3754. "type": "null"
  3755. }
  3756. ]
  3757. }
  3758. },
  3759. "additionalProperties": false
  3760. },
  3761. {
  3762. "type": "null"
  3763. }
  3764. ]
  3765. },
  3766. "required": false,
  3767. "style": "deepObject",
  3768. "explode": true
  3769. }
  3770. ],
  3771. "security": [],
  3772. "responses": {
  3773. "200": {
  3774. "description": "Success",
  3775. "content": {
  3776. "application/json": {
  3777. "schema": {
  3778. "type": "object",
  3779. "properties": {
  3780. "location": {
  3781. "$ref": "#/components/schemas/Location.Info"
  3782. },
  3783. "data": {
  3784. "anyOf": [
  3785. {
  3786. "$ref": "#/components/schemas/Integration.Info"
  3787. },
  3788. {
  3789. "type": "null"
  3790. }
  3791. ]
  3792. }
  3793. },
  3794. "required": ["location", "data"],
  3795. "additionalProperties": false
  3796. }
  3797. }
  3798. }
  3799. },
  3800. "400": {
  3801. "description": "InvalidRequestError",
  3802. "content": {
  3803. "application/json": {
  3804. "schema": {
  3805. "$ref": "#/components/schemas/InvalidRequestError"
  3806. }
  3807. }
  3808. }
  3809. },
  3810. "401": {
  3811. "description": "UnauthorizedError",
  3812. "content": {
  3813. "application/json": {
  3814. "schema": {
  3815. "$ref": "#/components/schemas/UnauthorizedError"
  3816. }
  3817. }
  3818. }
  3819. }
  3820. },
  3821. "description": "Retrieve one integration and its authentication methods.",
  3822. "summary": "Get integration"
  3823. }
  3824. },
  3825. "/api/integration/{integrationID}/connect/key": {
  3826. "post": {
  3827. "tags": ["integrations"],
  3828. "operationId": "v2.integration.connect.key",
  3829. "parameters": [
  3830. {
  3831. "name": "integrationID",
  3832. "in": "path",
  3833. "schema": {
  3834. "type": "string"
  3835. },
  3836. "required": true
  3837. },
  3838. {
  3839. "name": "location",
  3840. "in": "query",
  3841. "schema": {
  3842. "anyOf": [
  3843. {
  3844. "type": "object",
  3845. "properties": {
  3846. "directory": {
  3847. "anyOf": [
  3848. {
  3849. "type": "string"
  3850. },
  3851. {
  3852. "type": "null"
  3853. }
  3854. ]
  3855. },
  3856. "workspace": {
  3857. "anyOf": [
  3858. {
  3859. "type": "string"
  3860. },
  3861. {
  3862. "type": "null"
  3863. }
  3864. ]
  3865. }
  3866. },
  3867. "additionalProperties": false
  3868. },
  3869. {
  3870. "type": "null"
  3871. }
  3872. ]
  3873. },
  3874. "required": false,
  3875. "style": "deepObject",
  3876. "explode": true
  3877. }
  3878. ],
  3879. "security": [],
  3880. "responses": {
  3881. "204": {
  3882. "description": "<No Content>"
  3883. },
  3884. "400": {
  3885. "description": "InvalidRequestError",
  3886. "content": {
  3887. "application/json": {
  3888. "schema": {
  3889. "anyOf": [
  3890. {
  3891. "$ref": "#/components/schemas/InvalidRequestError1"
  3892. },
  3893. {
  3894. "$ref": "#/components/schemas/InvalidRequestError"
  3895. }
  3896. ]
  3897. }
  3898. }
  3899. }
  3900. },
  3901. "401": {
  3902. "description": "UnauthorizedError",
  3903. "content": {
  3904. "application/json": {
  3905. "schema": {
  3906. "$ref": "#/components/schemas/UnauthorizedError"
  3907. }
  3908. }
  3909. }
  3910. }
  3911. },
  3912. "description": "Run a key authentication method and store the resulting credential.",
  3913. "summary": "Connect with key",
  3914. "requestBody": {
  3915. "content": {
  3916. "application/json": {
  3917. "schema": {
  3918. "type": "object",
  3919. "properties": {
  3920. "key": {
  3921. "type": "string"
  3922. },
  3923. "label": {
  3924. "anyOf": [
  3925. {
  3926. "type": "string"
  3927. },
  3928. {
  3929. "type": "null"
  3930. }
  3931. ]
  3932. }
  3933. },
  3934. "required": ["key"],
  3935. "additionalProperties": false
  3936. }
  3937. }
  3938. },
  3939. "required": true
  3940. }
  3941. }
  3942. },
  3943. "/api/integration/{integrationID}/connect/oauth": {
  3944. "post": {
  3945. "tags": ["integrations"],
  3946. "operationId": "v2.integration.connect.oauth",
  3947. "parameters": [
  3948. {
  3949. "name": "integrationID",
  3950. "in": "path",
  3951. "schema": {
  3952. "type": "string"
  3953. },
  3954. "required": true
  3955. },
  3956. {
  3957. "name": "location",
  3958. "in": "query",
  3959. "schema": {
  3960. "anyOf": [
  3961. {
  3962. "type": "object",
  3963. "properties": {
  3964. "directory": {
  3965. "anyOf": [
  3966. {
  3967. "type": "string"
  3968. },
  3969. {
  3970. "type": "null"
  3971. }
  3972. ]
  3973. },
  3974. "workspace": {
  3975. "anyOf": [
  3976. {
  3977. "type": "string"
  3978. },
  3979. {
  3980. "type": "null"
  3981. }
  3982. ]
  3983. }
  3984. },
  3985. "additionalProperties": false
  3986. },
  3987. {
  3988. "type": "null"
  3989. }
  3990. ]
  3991. },
  3992. "required": false,
  3993. "style": "deepObject",
  3994. "explode": true
  3995. }
  3996. ],
  3997. "security": [],
  3998. "responses": {
  3999. "200": {
  4000. "description": "Success",
  4001. "content": {
  4002. "application/json": {
  4003. "schema": {
  4004. "type": "object",
  4005. "properties": {
  4006. "location": {
  4007. "$ref": "#/components/schemas/Location.Info"
  4008. },
  4009. "data": {
  4010. "$ref": "#/components/schemas/Integration.Attempt"
  4011. }
  4012. },
  4013. "required": ["location", "data"],
  4014. "additionalProperties": false
  4015. }
  4016. }
  4017. }
  4018. },
  4019. "400": {
  4020. "description": "InvalidRequestError",
  4021. "content": {
  4022. "application/json": {
  4023. "schema": {
  4024. "anyOf": [
  4025. {
  4026. "$ref": "#/components/schemas/InvalidRequestError1"
  4027. },
  4028. {
  4029. "$ref": "#/components/schemas/InvalidRequestError"
  4030. }
  4031. ]
  4032. }
  4033. }
  4034. }
  4035. },
  4036. "401": {
  4037. "description": "UnauthorizedError",
  4038. "content": {
  4039. "application/json": {
  4040. "schema": {
  4041. "$ref": "#/components/schemas/UnauthorizedError"
  4042. }
  4043. }
  4044. }
  4045. }
  4046. },
  4047. "description": "Start an OAuth attempt and return the authorization details.",
  4048. "summary": "Begin OAuth connection",
  4049. "requestBody": {
  4050. "content": {
  4051. "application/json": {
  4052. "schema": {
  4053. "type": "object",
  4054. "properties": {
  4055. "methodID": {
  4056. "type": "string"
  4057. },
  4058. "inputs": {
  4059. "type": "object",
  4060. "additionalProperties": {
  4061. "type": "string"
  4062. }
  4063. },
  4064. "label": {
  4065. "anyOf": [
  4066. {
  4067. "type": "string"
  4068. },
  4069. {
  4070. "type": "null"
  4071. }
  4072. ]
  4073. }
  4074. },
  4075. "required": ["methodID", "inputs"],
  4076. "additionalProperties": false
  4077. }
  4078. }
  4079. },
  4080. "required": true
  4081. }
  4082. }
  4083. },
  4084. "/api/integration/attempt/{attemptID}": {
  4085. "get": {
  4086. "tags": ["integrations"],
  4087. "operationId": "v2.integration.attempt.status",
  4088. "parameters": [
  4089. {
  4090. "name": "attemptID",
  4091. "in": "path",
  4092. "schema": {
  4093. "type": "string"
  4094. },
  4095. "required": true
  4096. },
  4097. {
  4098. "name": "location",
  4099. "in": "query",
  4100. "schema": {
  4101. "anyOf": [
  4102. {
  4103. "type": "object",
  4104. "properties": {
  4105. "directory": {
  4106. "anyOf": [
  4107. {
  4108. "type": "string"
  4109. },
  4110. {
  4111. "type": "null"
  4112. }
  4113. ]
  4114. },
  4115. "workspace": {
  4116. "anyOf": [
  4117. {
  4118. "type": "string"
  4119. },
  4120. {
  4121. "type": "null"
  4122. }
  4123. ]
  4124. }
  4125. },
  4126. "additionalProperties": false
  4127. },
  4128. {
  4129. "type": "null"
  4130. }
  4131. ]
  4132. },
  4133. "required": false,
  4134. "style": "deepObject",
  4135. "explode": true
  4136. }
  4137. ],
  4138. "security": [],
  4139. "responses": {
  4140. "200": {
  4141. "description": "Success",
  4142. "content": {
  4143. "application/json": {
  4144. "schema": {
  4145. "type": "object",
  4146. "properties": {
  4147. "location": {
  4148. "$ref": "#/components/schemas/Location.Info"
  4149. },
  4150. "data": {
  4151. "$ref": "#/components/schemas/Integration.AttemptStatus"
  4152. }
  4153. },
  4154. "required": ["location", "data"],
  4155. "additionalProperties": false
  4156. }
  4157. }
  4158. }
  4159. },
  4160. "400": {
  4161. "description": "InvalidRequestError",
  4162. "content": {
  4163. "application/json": {
  4164. "schema": {
  4165. "$ref": "#/components/schemas/InvalidRequestError"
  4166. }
  4167. }
  4168. }
  4169. },
  4170. "401": {
  4171. "description": "UnauthorizedError",
  4172. "content": {
  4173. "application/json": {
  4174. "schema": {
  4175. "$ref": "#/components/schemas/UnauthorizedError"
  4176. }
  4177. }
  4178. }
  4179. }
  4180. },
  4181. "description": "Poll the current status of an OAuth attempt.",
  4182. "summary": "Get OAuth attempt status"
  4183. },
  4184. "delete": {
  4185. "tags": ["integrations"],
  4186. "operationId": "v2.integration.attempt.cancel",
  4187. "parameters": [
  4188. {
  4189. "name": "attemptID",
  4190. "in": "path",
  4191. "schema": {
  4192. "type": "string"
  4193. },
  4194. "required": true
  4195. },
  4196. {
  4197. "name": "location",
  4198. "in": "query",
  4199. "schema": {
  4200. "anyOf": [
  4201. {
  4202. "type": "object",
  4203. "properties": {
  4204. "directory": {
  4205. "anyOf": [
  4206. {
  4207. "type": "string"
  4208. },
  4209. {
  4210. "type": "null"
  4211. }
  4212. ]
  4213. },
  4214. "workspace": {
  4215. "anyOf": [
  4216. {
  4217. "type": "string"
  4218. },
  4219. {
  4220. "type": "null"
  4221. }
  4222. ]
  4223. }
  4224. },
  4225. "additionalProperties": false
  4226. },
  4227. {
  4228. "type": "null"
  4229. }
  4230. ]
  4231. },
  4232. "required": false,
  4233. "style": "deepObject",
  4234. "explode": true
  4235. }
  4236. ],
  4237. "security": [],
  4238. "responses": {
  4239. "204": {
  4240. "description": "<No Content>"
  4241. },
  4242. "400": {
  4243. "description": "InvalidRequestError",
  4244. "content": {
  4245. "application/json": {
  4246. "schema": {
  4247. "$ref": "#/components/schemas/InvalidRequestError"
  4248. }
  4249. }
  4250. }
  4251. },
  4252. "401": {
  4253. "description": "UnauthorizedError",
  4254. "content": {
  4255. "application/json": {
  4256. "schema": {
  4257. "$ref": "#/components/schemas/UnauthorizedError"
  4258. }
  4259. }
  4260. }
  4261. }
  4262. },
  4263. "description": "Cancel an OAuth attempt and release its resources.",
  4264. "summary": "Cancel OAuth connection"
  4265. }
  4266. },
  4267. "/api/integration/attempt/{attemptID}/complete": {
  4268. "post": {
  4269. "tags": ["integrations"],
  4270. "operationId": "v2.integration.attempt.complete",
  4271. "parameters": [
  4272. {
  4273. "name": "attemptID",
  4274. "in": "path",
  4275. "schema": {
  4276. "type": "string"
  4277. },
  4278. "required": true
  4279. },
  4280. {
  4281. "name": "location",
  4282. "in": "query",
  4283. "schema": {
  4284. "anyOf": [
  4285. {
  4286. "type": "object",
  4287. "properties": {
  4288. "directory": {
  4289. "anyOf": [
  4290. {
  4291. "type": "string"
  4292. },
  4293. {
  4294. "type": "null"
  4295. }
  4296. ]
  4297. },
  4298. "workspace": {
  4299. "anyOf": [
  4300. {
  4301. "type": "string"
  4302. },
  4303. {
  4304. "type": "null"
  4305. }
  4306. ]
  4307. }
  4308. },
  4309. "additionalProperties": false
  4310. },
  4311. {
  4312. "type": "null"
  4313. }
  4314. ]
  4315. },
  4316. "required": false,
  4317. "style": "deepObject",
  4318. "explode": true
  4319. }
  4320. ],
  4321. "security": [],
  4322. "responses": {
  4323. "204": {
  4324. "description": "<No Content>"
  4325. },
  4326. "400": {
  4327. "description": "InvalidRequestError",
  4328. "content": {
  4329. "application/json": {
  4330. "schema": {
  4331. "anyOf": [
  4332. {
  4333. "$ref": "#/components/schemas/InvalidRequestError1"
  4334. },
  4335. {
  4336. "$ref": "#/components/schemas/InvalidRequestError"
  4337. }
  4338. ]
  4339. }
  4340. }
  4341. }
  4342. },
  4343. "401": {
  4344. "description": "UnauthorizedError",
  4345. "content": {
  4346. "application/json": {
  4347. "schema": {
  4348. "$ref": "#/components/schemas/UnauthorizedError"
  4349. }
  4350. }
  4351. }
  4352. }
  4353. },
  4354. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  4355. "summary": "Complete OAuth connection",
  4356. "requestBody": {
  4357. "content": {
  4358. "application/json": {
  4359. "schema": {
  4360. "type": "object",
  4361. "properties": {
  4362. "code": {
  4363. "anyOf": [
  4364. {
  4365. "type": "string"
  4366. },
  4367. {
  4368. "type": "null"
  4369. }
  4370. ]
  4371. }
  4372. },
  4373. "additionalProperties": false
  4374. }
  4375. }
  4376. },
  4377. "required": true
  4378. }
  4379. }
  4380. },
  4381. "/api/mcp": {
  4382. "get": {
  4383. "tags": ["mcp"],
  4384. "operationId": "v2.mcp.list",
  4385. "parameters": [
  4386. {
  4387. "name": "location",
  4388. "in": "query",
  4389. "schema": {
  4390. "anyOf": [
  4391. {
  4392. "type": "object",
  4393. "properties": {
  4394. "directory": {
  4395. "anyOf": [
  4396. {
  4397. "type": "string"
  4398. },
  4399. {
  4400. "type": "null"
  4401. }
  4402. ]
  4403. },
  4404. "workspace": {
  4405. "anyOf": [
  4406. {
  4407. "type": "string"
  4408. },
  4409. {
  4410. "type": "null"
  4411. }
  4412. ]
  4413. }
  4414. },
  4415. "additionalProperties": false
  4416. },
  4417. {
  4418. "type": "null"
  4419. }
  4420. ]
  4421. },
  4422. "required": false,
  4423. "style": "deepObject",
  4424. "explode": true
  4425. }
  4426. ],
  4427. "security": [],
  4428. "responses": {
  4429. "200": {
  4430. "description": "Success",
  4431. "content": {
  4432. "application/json": {
  4433. "schema": {
  4434. "type": "object",
  4435. "properties": {
  4436. "location": {
  4437. "$ref": "#/components/schemas/Location.Info"
  4438. },
  4439. "data": {
  4440. "type": "array",
  4441. "items": {
  4442. "$ref": "#/components/schemas/Mcp.Server"
  4443. }
  4444. }
  4445. },
  4446. "required": ["location", "data"],
  4447. "additionalProperties": false
  4448. }
  4449. }
  4450. }
  4451. },
  4452. "400": {
  4453. "description": "InvalidRequestError",
  4454. "content": {
  4455. "application/json": {
  4456. "schema": {
  4457. "$ref": "#/components/schemas/InvalidRequestError"
  4458. }
  4459. }
  4460. }
  4461. },
  4462. "401": {
  4463. "description": "UnauthorizedError",
  4464. "content": {
  4465. "application/json": {
  4466. "schema": {
  4467. "$ref": "#/components/schemas/UnauthorizedError"
  4468. }
  4469. }
  4470. }
  4471. }
  4472. },
  4473. "description": "Retrieve configured MCP servers and their connection status.",
  4474. "summary": "List MCP servers"
  4475. }
  4476. },
  4477. "/api/credential/{credentialID}": {
  4478. "patch": {
  4479. "tags": ["server.credential"],
  4480. "operationId": "v2.credential.update",
  4481. "parameters": [
  4482. {
  4483. "name": "credentialID",
  4484. "in": "path",
  4485. "schema": {
  4486. "type": "string"
  4487. },
  4488. "required": true
  4489. },
  4490. {
  4491. "name": "location",
  4492. "in": "query",
  4493. "schema": {
  4494. "anyOf": [
  4495. {
  4496. "type": "object",
  4497. "properties": {
  4498. "directory": {
  4499. "anyOf": [
  4500. {
  4501. "type": "string"
  4502. },
  4503. {
  4504. "type": "null"
  4505. }
  4506. ]
  4507. },
  4508. "workspace": {
  4509. "anyOf": [
  4510. {
  4511. "type": "string"
  4512. },
  4513. {
  4514. "type": "null"
  4515. }
  4516. ]
  4517. }
  4518. },
  4519. "additionalProperties": false
  4520. },
  4521. {
  4522. "type": "null"
  4523. }
  4524. ]
  4525. },
  4526. "required": false,
  4527. "style": "deepObject",
  4528. "explode": true
  4529. }
  4530. ],
  4531. "security": [],
  4532. "responses": {
  4533. "204": {
  4534. "description": "<No Content>"
  4535. },
  4536. "400": {
  4537. "description": "InvalidRequestError",
  4538. "content": {
  4539. "application/json": {
  4540. "schema": {
  4541. "$ref": "#/components/schemas/InvalidRequestError"
  4542. }
  4543. }
  4544. }
  4545. },
  4546. "401": {
  4547. "description": "UnauthorizedError",
  4548. "content": {
  4549. "application/json": {
  4550. "schema": {
  4551. "$ref": "#/components/schemas/UnauthorizedError"
  4552. }
  4553. }
  4554. }
  4555. }
  4556. },
  4557. "description": "Update a stored credential label.",
  4558. "summary": "Update credential",
  4559. "requestBody": {
  4560. "content": {
  4561. "application/json": {
  4562. "schema": {
  4563. "type": "object",
  4564. "properties": {
  4565. "label": {
  4566. "type": "string"
  4567. }
  4568. },
  4569. "required": ["label"],
  4570. "additionalProperties": false
  4571. }
  4572. }
  4573. },
  4574. "required": true
  4575. }
  4576. },
  4577. "delete": {
  4578. "tags": ["server.credential"],
  4579. "operationId": "v2.credential.remove",
  4580. "parameters": [
  4581. {
  4582. "name": "credentialID",
  4583. "in": "path",
  4584. "schema": {
  4585. "type": "string"
  4586. },
  4587. "required": true
  4588. },
  4589. {
  4590. "name": "location",
  4591. "in": "query",
  4592. "schema": {
  4593. "anyOf": [
  4594. {
  4595. "type": "object",
  4596. "properties": {
  4597. "directory": {
  4598. "anyOf": [
  4599. {
  4600. "type": "string"
  4601. },
  4602. {
  4603. "type": "null"
  4604. }
  4605. ]
  4606. },
  4607. "workspace": {
  4608. "anyOf": [
  4609. {
  4610. "type": "string"
  4611. },
  4612. {
  4613. "type": "null"
  4614. }
  4615. ]
  4616. }
  4617. },
  4618. "additionalProperties": false
  4619. },
  4620. {
  4621. "type": "null"
  4622. }
  4623. ]
  4624. },
  4625. "required": false,
  4626. "style": "deepObject",
  4627. "explode": true
  4628. }
  4629. ],
  4630. "security": [],
  4631. "responses": {
  4632. "204": {
  4633. "description": "<No Content>"
  4634. },
  4635. "400": {
  4636. "description": "InvalidRequestError",
  4637. "content": {
  4638. "application/json": {
  4639. "schema": {
  4640. "$ref": "#/components/schemas/InvalidRequestError"
  4641. }
  4642. }
  4643. }
  4644. },
  4645. "401": {
  4646. "description": "UnauthorizedError",
  4647. "content": {
  4648. "application/json": {
  4649. "schema": {
  4650. "$ref": "#/components/schemas/UnauthorizedError"
  4651. }
  4652. }
  4653. }
  4654. }
  4655. },
  4656. "description": "Remove a stored integration credential.",
  4657. "summary": "Remove credential"
  4658. }
  4659. },
  4660. "/api/project/current": {
  4661. "get": {
  4662. "tags": ["projects"],
  4663. "operationId": "v2.project.current",
  4664. "parameters": [
  4665. {
  4666. "name": "location",
  4667. "in": "query",
  4668. "schema": {
  4669. "anyOf": [
  4670. {
  4671. "type": "object",
  4672. "properties": {
  4673. "directory": {
  4674. "anyOf": [
  4675. {
  4676. "type": "string"
  4677. },
  4678. {
  4679. "type": "null"
  4680. }
  4681. ]
  4682. },
  4683. "workspace": {
  4684. "anyOf": [
  4685. {
  4686. "type": "string"
  4687. },
  4688. {
  4689. "type": "null"
  4690. }
  4691. ]
  4692. }
  4693. },
  4694. "additionalProperties": false
  4695. },
  4696. {
  4697. "type": "null"
  4698. }
  4699. ]
  4700. },
  4701. "required": false,
  4702. "style": "deepObject",
  4703. "explode": true
  4704. }
  4705. ],
  4706. "security": [],
  4707. "responses": {
  4708. "200": {
  4709. "description": "Project.Current",
  4710. "content": {
  4711. "application/json": {
  4712. "schema": {
  4713. "$ref": "#/components/schemas/Project.Current"
  4714. }
  4715. }
  4716. }
  4717. },
  4718. "400": {
  4719. "description": "InvalidRequestError",
  4720. "content": {
  4721. "application/json": {
  4722. "schema": {
  4723. "$ref": "#/components/schemas/InvalidRequestError"
  4724. }
  4725. }
  4726. }
  4727. },
  4728. "401": {
  4729. "description": "UnauthorizedError",
  4730. "content": {
  4731. "application/json": {
  4732. "schema": {
  4733. "$ref": "#/components/schemas/UnauthorizedError"
  4734. }
  4735. }
  4736. }
  4737. }
  4738. },
  4739. "description": "Resolve the project for the requested location.",
  4740. "summary": "Get current project"
  4741. }
  4742. },
  4743. "/api/project/{projectID}/directories": {
  4744. "get": {
  4745. "tags": ["projects"],
  4746. "operationId": "v2.project.directories",
  4747. "parameters": [
  4748. {
  4749. "name": "projectID",
  4750. "in": "path",
  4751. "schema": {
  4752. "type": "string"
  4753. },
  4754. "required": true
  4755. },
  4756. {
  4757. "name": "location",
  4758. "in": "query",
  4759. "schema": {
  4760. "anyOf": [
  4761. {
  4762. "type": "object",
  4763. "properties": {
  4764. "directory": {
  4765. "anyOf": [
  4766. {
  4767. "type": "string"
  4768. },
  4769. {
  4770. "type": "null"
  4771. }
  4772. ]
  4773. },
  4774. "workspace": {
  4775. "anyOf": [
  4776. {
  4777. "type": "string"
  4778. },
  4779. {
  4780. "type": "null"
  4781. }
  4782. ]
  4783. }
  4784. },
  4785. "additionalProperties": false
  4786. },
  4787. {
  4788. "type": "null"
  4789. }
  4790. ]
  4791. },
  4792. "required": false,
  4793. "style": "deepObject",
  4794. "explode": true
  4795. }
  4796. ],
  4797. "security": [],
  4798. "responses": {
  4799. "200": {
  4800. "description": "Project.Directories",
  4801. "content": {
  4802. "application/json": {
  4803. "schema": {
  4804. "$ref": "#/components/schemas/Project.Directories"
  4805. }
  4806. }
  4807. }
  4808. },
  4809. "400": {
  4810. "description": "InvalidRequestError",
  4811. "content": {
  4812. "application/json": {
  4813. "schema": {
  4814. "$ref": "#/components/schemas/InvalidRequestError"
  4815. }
  4816. }
  4817. }
  4818. },
  4819. "401": {
  4820. "description": "UnauthorizedError",
  4821. "content": {
  4822. "application/json": {
  4823. "schema": {
  4824. "$ref": "#/components/schemas/UnauthorizedError"
  4825. }
  4826. }
  4827. }
  4828. }
  4829. },
  4830. "description": "List known local absolute directories for a project.",
  4831. "summary": "List project directories"
  4832. }
  4833. },
  4834. "/api/form/request": {
  4835. "get": {
  4836. "tags": ["forms"],
  4837. "operationId": "v2.form.request.list",
  4838. "parameters": [
  4839. {
  4840. "name": "location",
  4841. "in": "query",
  4842. "schema": {
  4843. "anyOf": [
  4844. {
  4845. "type": "object",
  4846. "properties": {
  4847. "directory": {
  4848. "anyOf": [
  4849. {
  4850. "type": "string"
  4851. },
  4852. {
  4853. "type": "null"
  4854. }
  4855. ]
  4856. },
  4857. "workspace": {
  4858. "anyOf": [
  4859. {
  4860. "type": "string"
  4861. },
  4862. {
  4863. "type": "null"
  4864. }
  4865. ]
  4866. }
  4867. },
  4868. "additionalProperties": false
  4869. },
  4870. {
  4871. "type": "null"
  4872. }
  4873. ]
  4874. },
  4875. "required": false,
  4876. "style": "deepObject",
  4877. "explode": true
  4878. }
  4879. ],
  4880. "security": [],
  4881. "responses": {
  4882. "200": {
  4883. "description": "Success",
  4884. "content": {
  4885. "application/json": {
  4886. "schema": {
  4887. "type": "object",
  4888. "properties": {
  4889. "location": {
  4890. "$ref": "#/components/schemas/Location.Info"
  4891. },
  4892. "data": {
  4893. "type": "array",
  4894. "items": {
  4895. "anyOf": [
  4896. {
  4897. "$ref": "#/components/schemas/Form.FormInfo"
  4898. },
  4899. {
  4900. "$ref": "#/components/schemas/Form.UrlInfo"
  4901. }
  4902. ]
  4903. }
  4904. }
  4905. },
  4906. "required": ["location", "data"],
  4907. "additionalProperties": false
  4908. }
  4909. }
  4910. }
  4911. },
  4912. "400": {
  4913. "description": "InvalidRequestError",
  4914. "content": {
  4915. "application/json": {
  4916. "schema": {
  4917. "$ref": "#/components/schemas/InvalidRequestError"
  4918. }
  4919. }
  4920. }
  4921. },
  4922. "401": {
  4923. "description": "UnauthorizedError",
  4924. "content": {
  4925. "application/json": {
  4926. "schema": {
  4927. "$ref": "#/components/schemas/UnauthorizedError"
  4928. }
  4929. }
  4930. }
  4931. }
  4932. },
  4933. "description": "Retrieve pending forms for a location.",
  4934. "summary": "List pending form requests"
  4935. }
  4936. },
  4937. "/api/session/{sessionID}/form": {
  4938. "get": {
  4939. "tags": ["forms"],
  4940. "operationId": "v2.session.form.list",
  4941. "parameters": [
  4942. {
  4943. "name": "sessionID",
  4944. "in": "path",
  4945. "schema": {
  4946. "type": "string"
  4947. },
  4948. "required": true
  4949. }
  4950. ],
  4951. "security": [],
  4952. "responses": {
  4953. "200": {
  4954. "description": "Success",
  4955. "content": {
  4956. "application/json": {
  4957. "schema": {
  4958. "type": "object",
  4959. "properties": {
  4960. "data": {
  4961. "type": "array",
  4962. "items": {
  4963. "anyOf": [
  4964. {
  4965. "$ref": "#/components/schemas/Form.FormInfo"
  4966. },
  4967. {
  4968. "$ref": "#/components/schemas/Form.UrlInfo"
  4969. }
  4970. ]
  4971. }
  4972. }
  4973. },
  4974. "required": ["data"],
  4975. "additionalProperties": false
  4976. }
  4977. }
  4978. }
  4979. },
  4980. "400": {
  4981. "description": "InvalidRequestError",
  4982. "content": {
  4983. "application/json": {
  4984. "schema": {
  4985. "$ref": "#/components/schemas/InvalidRequestError"
  4986. }
  4987. }
  4988. }
  4989. },
  4990. "401": {
  4991. "description": "UnauthorizedError",
  4992. "content": {
  4993. "application/json": {
  4994. "schema": {
  4995. "$ref": "#/components/schemas/UnauthorizedError"
  4996. }
  4997. }
  4998. }
  4999. },
  5000. "404": {
  5001. "description": "SessionNotFoundError",
  5002. "content": {
  5003. "application/json": {
  5004. "schema": {
  5005. "anyOf": [
  5006. {
  5007. "$ref": "#/components/schemas/SessionNotFoundError"
  5008. },
  5009. {
  5010. "$ref": "#/components/schemas/SessionNotFoundError"
  5011. }
  5012. ]
  5013. }
  5014. }
  5015. }
  5016. }
  5017. },
  5018. "description": "Retrieve pending forms for a session.",
  5019. "summary": "List session forms"
  5020. },
  5021. "post": {
  5022. "tags": ["forms"],
  5023. "operationId": "v2.session.form.create",
  5024. "parameters": [
  5025. {
  5026. "name": "sessionID",
  5027. "in": "path",
  5028. "schema": {
  5029. "type": "string"
  5030. },
  5031. "required": true
  5032. }
  5033. ],
  5034. "security": [],
  5035. "responses": {
  5036. "200": {
  5037. "description": "Success",
  5038. "content": {
  5039. "application/json": {
  5040. "schema": {
  5041. "type": "object",
  5042. "properties": {
  5043. "data": {
  5044. "anyOf": [
  5045. {
  5046. "$ref": "#/components/schemas/Form.FormInfo"
  5047. },
  5048. {
  5049. "$ref": "#/components/schemas/Form.UrlInfo"
  5050. }
  5051. ]
  5052. }
  5053. },
  5054. "required": ["data"],
  5055. "additionalProperties": false
  5056. }
  5057. }
  5058. }
  5059. },
  5060. "400": {
  5061. "description": "InvalidRequestError",
  5062. "content": {
  5063. "application/json": {
  5064. "schema": {
  5065. "anyOf": [
  5066. {
  5067. "$ref": "#/components/schemas/InvalidRequestError1"
  5068. },
  5069. {
  5070. "$ref": "#/components/schemas/InvalidRequestError"
  5071. }
  5072. ]
  5073. }
  5074. }
  5075. }
  5076. },
  5077. "401": {
  5078. "description": "UnauthorizedError",
  5079. "content": {
  5080. "application/json": {
  5081. "schema": {
  5082. "$ref": "#/components/schemas/UnauthorizedError"
  5083. }
  5084. }
  5085. }
  5086. },
  5087. "404": {
  5088. "description": "SessionNotFoundError",
  5089. "content": {
  5090. "application/json": {
  5091. "schema": {
  5092. "anyOf": [
  5093. {
  5094. "$ref": "#/components/schemas/SessionNotFoundError"
  5095. },
  5096. {
  5097. "$ref": "#/components/schemas/SessionNotFoundError"
  5098. }
  5099. ]
  5100. }
  5101. }
  5102. }
  5103. },
  5104. "409": {
  5105. "description": "ConflictError",
  5106. "content": {
  5107. "application/json": {
  5108. "schema": {
  5109. "$ref": "#/components/schemas/ConflictError"
  5110. }
  5111. }
  5112. }
  5113. }
  5114. },
  5115. "description": "Create a form for a session.",
  5116. "summary": "Create session form",
  5117. "requestBody": {
  5118. "content": {
  5119. "application/json": {
  5120. "schema": {
  5121. "$ref": "#/components/schemas/Form.CreatePayload"
  5122. }
  5123. }
  5124. },
  5125. "required": true
  5126. }
  5127. }
  5128. },
  5129. "/api/session/{sessionID}/form/{formID}": {
  5130. "get": {
  5131. "tags": ["forms"],
  5132. "operationId": "v2.session.form.get",
  5133. "parameters": [
  5134. {
  5135. "name": "sessionID",
  5136. "in": "path",
  5137. "schema": {
  5138. "type": "string"
  5139. },
  5140. "required": true
  5141. },
  5142. {
  5143. "name": "formID",
  5144. "in": "path",
  5145. "schema": {
  5146. "type": "string",
  5147. "allOf": [
  5148. {
  5149. "pattern": "^frm_"
  5150. }
  5151. ]
  5152. },
  5153. "required": true
  5154. }
  5155. ],
  5156. "security": [],
  5157. "responses": {
  5158. "200": {
  5159. "description": "Success",
  5160. "content": {
  5161. "application/json": {
  5162. "schema": {
  5163. "type": "object",
  5164. "properties": {
  5165. "data": {
  5166. "anyOf": [
  5167. {
  5168. "$ref": "#/components/schemas/Form.FormInfo"
  5169. },
  5170. {
  5171. "$ref": "#/components/schemas/Form.UrlInfo"
  5172. }
  5173. ]
  5174. }
  5175. },
  5176. "required": ["data"],
  5177. "additionalProperties": false
  5178. }
  5179. }
  5180. }
  5181. },
  5182. "400": {
  5183. "description": "InvalidRequestError",
  5184. "content": {
  5185. "application/json": {
  5186. "schema": {
  5187. "$ref": "#/components/schemas/InvalidRequestError"
  5188. }
  5189. }
  5190. }
  5191. },
  5192. "401": {
  5193. "description": "UnauthorizedError",
  5194. "content": {
  5195. "application/json": {
  5196. "schema": {
  5197. "$ref": "#/components/schemas/UnauthorizedError"
  5198. }
  5199. }
  5200. }
  5201. },
  5202. "404": {
  5203. "description": "SessionNotFoundError | FormNotFoundError",
  5204. "content": {
  5205. "application/json": {
  5206. "schema": {
  5207. "anyOf": [
  5208. {
  5209. "$ref": "#/components/schemas/FormNotFoundError"
  5210. },
  5211. {
  5212. "$ref": "#/components/schemas/SessionNotFoundError"
  5213. },
  5214. {
  5215. "$ref": "#/components/schemas/SessionNotFoundError"
  5216. }
  5217. ]
  5218. }
  5219. }
  5220. }
  5221. }
  5222. },
  5223. "description": "Retrieve a form for a session.",
  5224. "summary": "Get session form"
  5225. }
  5226. },
  5227. "/api/session/{sessionID}/form/{formID}/state": {
  5228. "get": {
  5229. "tags": ["forms"],
  5230. "operationId": "v2.session.form.state",
  5231. "parameters": [
  5232. {
  5233. "name": "sessionID",
  5234. "in": "path",
  5235. "schema": {
  5236. "type": "string"
  5237. },
  5238. "required": true
  5239. },
  5240. {
  5241. "name": "formID",
  5242. "in": "path",
  5243. "schema": {
  5244. "type": "string",
  5245. "allOf": [
  5246. {
  5247. "pattern": "^frm_"
  5248. }
  5249. ]
  5250. },
  5251. "required": true
  5252. }
  5253. ],
  5254. "security": [],
  5255. "responses": {
  5256. "200": {
  5257. "description": "Success",
  5258. "content": {
  5259. "application/json": {
  5260. "schema": {
  5261. "type": "object",
  5262. "properties": {
  5263. "data": {
  5264. "$ref": "#/components/schemas/Form.State"
  5265. }
  5266. },
  5267. "required": ["data"],
  5268. "additionalProperties": false
  5269. }
  5270. }
  5271. }
  5272. },
  5273. "400": {
  5274. "description": "InvalidRequestError",
  5275. "content": {
  5276. "application/json": {
  5277. "schema": {
  5278. "$ref": "#/components/schemas/InvalidRequestError"
  5279. }
  5280. }
  5281. }
  5282. },
  5283. "401": {
  5284. "description": "UnauthorizedError",
  5285. "content": {
  5286. "application/json": {
  5287. "schema": {
  5288. "$ref": "#/components/schemas/UnauthorizedError"
  5289. }
  5290. }
  5291. }
  5292. },
  5293. "404": {
  5294. "description": "SessionNotFoundError | FormNotFoundError",
  5295. "content": {
  5296. "application/json": {
  5297. "schema": {
  5298. "anyOf": [
  5299. {
  5300. "$ref": "#/components/schemas/FormNotFoundError"
  5301. },
  5302. {
  5303. "$ref": "#/components/schemas/SessionNotFoundError"
  5304. },
  5305. {
  5306. "$ref": "#/components/schemas/SessionNotFoundError"
  5307. }
  5308. ]
  5309. }
  5310. }
  5311. }
  5312. }
  5313. },
  5314. "description": "Retrieve the current state for a form.",
  5315. "summary": "Get form state"
  5316. }
  5317. },
  5318. "/api/session/{sessionID}/form/{formID}/reply": {
  5319. "post": {
  5320. "tags": ["forms"],
  5321. "operationId": "v2.session.form.reply",
  5322. "parameters": [
  5323. {
  5324. "name": "sessionID",
  5325. "in": "path",
  5326. "schema": {
  5327. "type": "string"
  5328. },
  5329. "required": true
  5330. },
  5331. {
  5332. "name": "formID",
  5333. "in": "path",
  5334. "schema": {
  5335. "type": "string",
  5336. "allOf": [
  5337. {
  5338. "pattern": "^frm_"
  5339. }
  5340. ]
  5341. },
  5342. "required": true
  5343. }
  5344. ],
  5345. "security": [],
  5346. "responses": {
  5347. "204": {
  5348. "description": "<No Content>"
  5349. },
  5350. "400": {
  5351. "description": "FormInvalidAnswerError | InvalidRequestError",
  5352. "content": {
  5353. "application/json": {
  5354. "schema": {
  5355. "anyOf": [
  5356. {
  5357. "$ref": "#/components/schemas/FormInvalidAnswerError"
  5358. },
  5359. {
  5360. "$ref": "#/components/schemas/InvalidRequestError"
  5361. }
  5362. ]
  5363. }
  5364. }
  5365. }
  5366. },
  5367. "401": {
  5368. "description": "UnauthorizedError",
  5369. "content": {
  5370. "application/json": {
  5371. "schema": {
  5372. "$ref": "#/components/schemas/UnauthorizedError"
  5373. }
  5374. }
  5375. }
  5376. },
  5377. "404": {
  5378. "description": "SessionNotFoundError | FormNotFoundError",
  5379. "content": {
  5380. "application/json": {
  5381. "schema": {
  5382. "anyOf": [
  5383. {
  5384. "$ref": "#/components/schemas/FormNotFoundError"
  5385. },
  5386. {
  5387. "$ref": "#/components/schemas/SessionNotFoundError"
  5388. },
  5389. {
  5390. "$ref": "#/components/schemas/SessionNotFoundError"
  5391. }
  5392. ]
  5393. }
  5394. }
  5395. }
  5396. },
  5397. "409": {
  5398. "description": "FormAlreadySettledError",
  5399. "content": {
  5400. "application/json": {
  5401. "schema": {
  5402. "$ref": "#/components/schemas/FormAlreadySettledError"
  5403. }
  5404. }
  5405. }
  5406. }
  5407. },
  5408. "description": "Submit an answer to a pending form.",
  5409. "summary": "Reply to form",
  5410. "requestBody": {
  5411. "content": {
  5412. "application/json": {
  5413. "schema": {
  5414. "$ref": "#/components/schemas/Form.Reply"
  5415. }
  5416. }
  5417. },
  5418. "required": true
  5419. }
  5420. }
  5421. },
  5422. "/api/session/{sessionID}/form/{formID}/cancel": {
  5423. "post": {
  5424. "tags": ["forms"],
  5425. "operationId": "v2.session.form.cancel",
  5426. "parameters": [
  5427. {
  5428. "name": "sessionID",
  5429. "in": "path",
  5430. "schema": {
  5431. "type": "string"
  5432. },
  5433. "required": true
  5434. },
  5435. {
  5436. "name": "formID",
  5437. "in": "path",
  5438. "schema": {
  5439. "type": "string",
  5440. "allOf": [
  5441. {
  5442. "pattern": "^frm_"
  5443. }
  5444. ]
  5445. },
  5446. "required": true
  5447. }
  5448. ],
  5449. "security": [],
  5450. "responses": {
  5451. "204": {
  5452. "description": "<No Content>"
  5453. },
  5454. "400": {
  5455. "description": "InvalidRequestError",
  5456. "content": {
  5457. "application/json": {
  5458. "schema": {
  5459. "$ref": "#/components/schemas/InvalidRequestError"
  5460. }
  5461. }
  5462. }
  5463. },
  5464. "401": {
  5465. "description": "UnauthorizedError",
  5466. "content": {
  5467. "application/json": {
  5468. "schema": {
  5469. "$ref": "#/components/schemas/UnauthorizedError"
  5470. }
  5471. }
  5472. }
  5473. },
  5474. "404": {
  5475. "description": "SessionNotFoundError | FormNotFoundError",
  5476. "content": {
  5477. "application/json": {
  5478. "schema": {
  5479. "anyOf": [
  5480. {
  5481. "$ref": "#/components/schemas/FormNotFoundError"
  5482. },
  5483. {
  5484. "$ref": "#/components/schemas/SessionNotFoundError"
  5485. },
  5486. {
  5487. "$ref": "#/components/schemas/SessionNotFoundError"
  5488. }
  5489. ]
  5490. }
  5491. }
  5492. }
  5493. },
  5494. "409": {
  5495. "description": "FormAlreadySettledError",
  5496. "content": {
  5497. "application/json": {
  5498. "schema": {
  5499. "$ref": "#/components/schemas/FormAlreadySettledError"
  5500. }
  5501. }
  5502. }
  5503. }
  5504. },
  5505. "description": "Cancel a pending form.",
  5506. "summary": "Cancel form"
  5507. }
  5508. },
  5509. "/api/permission/request": {
  5510. "get": {
  5511. "tags": ["permissions"],
  5512. "operationId": "v2.permission.request.list",
  5513. "parameters": [
  5514. {
  5515. "name": "location",
  5516. "in": "query",
  5517. "schema": {
  5518. "anyOf": [
  5519. {
  5520. "type": "object",
  5521. "properties": {
  5522. "directory": {
  5523. "anyOf": [
  5524. {
  5525. "type": "string"
  5526. },
  5527. {
  5528. "type": "null"
  5529. }
  5530. ]
  5531. },
  5532. "workspace": {
  5533. "anyOf": [
  5534. {
  5535. "type": "string"
  5536. },
  5537. {
  5538. "type": "null"
  5539. }
  5540. ]
  5541. }
  5542. },
  5543. "additionalProperties": false
  5544. },
  5545. {
  5546. "type": "null"
  5547. }
  5548. ]
  5549. },
  5550. "required": false,
  5551. "style": "deepObject",
  5552. "explode": true
  5553. }
  5554. ],
  5555. "security": [],
  5556. "responses": {
  5557. "200": {
  5558. "description": "Success",
  5559. "content": {
  5560. "application/json": {
  5561. "schema": {
  5562. "type": "object",
  5563. "properties": {
  5564. "location": {
  5565. "$ref": "#/components/schemas/Location.Info"
  5566. },
  5567. "data": {
  5568. "type": "array",
  5569. "items": {
  5570. "$ref": "#/components/schemas/PermissionV2.Request"
  5571. }
  5572. }
  5573. },
  5574. "required": ["location", "data"],
  5575. "additionalProperties": false
  5576. }
  5577. }
  5578. }
  5579. },
  5580. "400": {
  5581. "description": "InvalidRequestError",
  5582. "content": {
  5583. "application/json": {
  5584. "schema": {
  5585. "$ref": "#/components/schemas/InvalidRequestError"
  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. },
  5601. "description": "Retrieve pending permission requests for a location.",
  5602. "summary": "List pending permission requests"
  5603. }
  5604. },
  5605. "/api/permission/saved": {
  5606. "get": {
  5607. "tags": ["permissions"],
  5608. "operationId": "v2.permission.saved.list",
  5609. "parameters": [
  5610. {
  5611. "name": "projectID",
  5612. "in": "query",
  5613. "schema": {
  5614. "anyOf": [
  5615. {
  5616. "type": "string"
  5617. },
  5618. {
  5619. "type": "null"
  5620. }
  5621. ]
  5622. },
  5623. "required": false
  5624. }
  5625. ],
  5626. "security": [],
  5627. "responses": {
  5628. "200": {
  5629. "description": "Success",
  5630. "content": {
  5631. "application/json": {
  5632. "schema": {
  5633. "type": "object",
  5634. "properties": {
  5635. "data": {
  5636. "type": "array",
  5637. "items": {
  5638. "$ref": "#/components/schemas/PermissionSaved.Info"
  5639. }
  5640. }
  5641. },
  5642. "required": ["data"],
  5643. "additionalProperties": false
  5644. }
  5645. }
  5646. }
  5647. },
  5648. "400": {
  5649. "description": "InvalidRequestError",
  5650. "content": {
  5651. "application/json": {
  5652. "schema": {
  5653. "$ref": "#/components/schemas/InvalidRequestError"
  5654. }
  5655. }
  5656. }
  5657. },
  5658. "401": {
  5659. "description": "UnauthorizedError",
  5660. "content": {
  5661. "application/json": {
  5662. "schema": {
  5663. "$ref": "#/components/schemas/UnauthorizedError"
  5664. }
  5665. }
  5666. }
  5667. }
  5668. },
  5669. "description": "Retrieve saved permissions, optionally filtered by project.",
  5670. "summary": "List saved permissions"
  5671. }
  5672. },
  5673. "/api/permission/saved/{id}": {
  5674. "delete": {
  5675. "tags": ["permissions"],
  5676. "operationId": "v2.permission.saved.remove",
  5677. "parameters": [
  5678. {
  5679. "name": "id",
  5680. "in": "path",
  5681. "schema": {
  5682. "type": "string"
  5683. },
  5684. "required": true
  5685. }
  5686. ],
  5687. "security": [],
  5688. "responses": {
  5689. "204": {
  5690. "description": "<No Content>"
  5691. },
  5692. "400": {
  5693. "description": "InvalidRequestError",
  5694. "content": {
  5695. "application/json": {
  5696. "schema": {
  5697. "$ref": "#/components/schemas/InvalidRequestError"
  5698. }
  5699. }
  5700. }
  5701. },
  5702. "401": {
  5703. "description": "UnauthorizedError",
  5704. "content": {
  5705. "application/json": {
  5706. "schema": {
  5707. "$ref": "#/components/schemas/UnauthorizedError"
  5708. }
  5709. }
  5710. }
  5711. }
  5712. },
  5713. "description": "Remove a saved permission by ID.",
  5714. "summary": "Remove saved permission"
  5715. }
  5716. },
  5717. "/api/session/{sessionID}/permission": {
  5718. "post": {
  5719. "tags": ["permissions"],
  5720. "operationId": "v2.session.permission.create",
  5721. "parameters": [
  5722. {
  5723. "name": "sessionID",
  5724. "in": "path",
  5725. "schema": {
  5726. "type": "string",
  5727. "allOf": [
  5728. {
  5729. "pattern": "^ses"
  5730. }
  5731. ]
  5732. },
  5733. "required": true
  5734. }
  5735. ],
  5736. "security": [],
  5737. "responses": {
  5738. "200": {
  5739. "description": "Success",
  5740. "content": {
  5741. "application/json": {
  5742. "schema": {
  5743. "type": "object",
  5744. "properties": {
  5745. "data": {
  5746. "type": "object",
  5747. "properties": {
  5748. "id": {
  5749. "type": "string",
  5750. "allOf": [
  5751. {
  5752. "pattern": "^per"
  5753. }
  5754. ]
  5755. },
  5756. "effect": {
  5757. "$ref": "#/components/schemas/PermissionV2.Effect"
  5758. }
  5759. },
  5760. "required": ["id", "effect"],
  5761. "additionalProperties": false
  5762. }
  5763. },
  5764. "required": ["data"],
  5765. "additionalProperties": false
  5766. }
  5767. }
  5768. }
  5769. },
  5770. "400": {
  5771. "description": "InvalidRequestError",
  5772. "content": {
  5773. "application/json": {
  5774. "schema": {
  5775. "$ref": "#/components/schemas/InvalidRequestError"
  5776. }
  5777. }
  5778. }
  5779. },
  5780. "401": {
  5781. "description": "UnauthorizedError",
  5782. "content": {
  5783. "application/json": {
  5784. "schema": {
  5785. "$ref": "#/components/schemas/UnauthorizedError"
  5786. }
  5787. }
  5788. }
  5789. },
  5790. "404": {
  5791. "description": "SessionNotFoundError",
  5792. "content": {
  5793. "application/json": {
  5794. "schema": {
  5795. "anyOf": [
  5796. {
  5797. "$ref": "#/components/schemas/SessionNotFoundError"
  5798. },
  5799. {
  5800. "$ref": "#/components/schemas/SessionNotFoundError"
  5801. }
  5802. ]
  5803. }
  5804. }
  5805. }
  5806. }
  5807. },
  5808. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  5809. "summary": "Create permission request",
  5810. "requestBody": {
  5811. "content": {
  5812. "application/json": {
  5813. "schema": {
  5814. "type": "object",
  5815. "properties": {
  5816. "id": {
  5817. "anyOf": [
  5818. {
  5819. "type": "string",
  5820. "allOf": [
  5821. {
  5822. "pattern": "^per"
  5823. }
  5824. ]
  5825. },
  5826. {
  5827. "type": "null"
  5828. }
  5829. ]
  5830. },
  5831. "action": {
  5832. "type": "string"
  5833. },
  5834. "resources": {
  5835. "type": "array",
  5836. "items": {
  5837. "type": "string"
  5838. }
  5839. },
  5840. "save": {
  5841. "type": "array",
  5842. "items": {
  5843. "type": "string"
  5844. }
  5845. },
  5846. "metadata": {
  5847. "type": "object"
  5848. },
  5849. "source": {
  5850. "$ref": "#/components/schemas/PermissionV2.Source"
  5851. },
  5852. "agent": {
  5853. "anyOf": [
  5854. {
  5855. "type": "string"
  5856. },
  5857. {
  5858. "type": "null"
  5859. }
  5860. ]
  5861. }
  5862. },
  5863. "required": ["action", "resources"],
  5864. "additionalProperties": false
  5865. }
  5866. }
  5867. },
  5868. "required": true
  5869. }
  5870. },
  5871. "get": {
  5872. "tags": ["permissions"],
  5873. "operationId": "v2.session.permission.list",
  5874. "parameters": [
  5875. {
  5876. "name": "sessionID",
  5877. "in": "path",
  5878. "schema": {
  5879. "type": "string",
  5880. "allOf": [
  5881. {
  5882. "pattern": "^ses"
  5883. }
  5884. ]
  5885. },
  5886. "required": true
  5887. }
  5888. ],
  5889. "security": [],
  5890. "responses": {
  5891. "200": {
  5892. "description": "Success",
  5893. "content": {
  5894. "application/json": {
  5895. "schema": {
  5896. "type": "object",
  5897. "properties": {
  5898. "data": {
  5899. "type": "array",
  5900. "items": {
  5901. "$ref": "#/components/schemas/PermissionV2.Request"
  5902. }
  5903. }
  5904. },
  5905. "required": ["data"],
  5906. "additionalProperties": false
  5907. }
  5908. }
  5909. }
  5910. },
  5911. "400": {
  5912. "description": "InvalidRequestError",
  5913. "content": {
  5914. "application/json": {
  5915. "schema": {
  5916. "$ref": "#/components/schemas/InvalidRequestError"
  5917. }
  5918. }
  5919. }
  5920. },
  5921. "401": {
  5922. "description": "UnauthorizedError",
  5923. "content": {
  5924. "application/json": {
  5925. "schema": {
  5926. "$ref": "#/components/schemas/UnauthorizedError"
  5927. }
  5928. }
  5929. }
  5930. },
  5931. "404": {
  5932. "description": "SessionNotFoundError",
  5933. "content": {
  5934. "application/json": {
  5935. "schema": {
  5936. "anyOf": [
  5937. {
  5938. "$ref": "#/components/schemas/SessionNotFoundError"
  5939. },
  5940. {
  5941. "$ref": "#/components/schemas/SessionNotFoundError"
  5942. }
  5943. ]
  5944. }
  5945. }
  5946. }
  5947. }
  5948. },
  5949. "description": "Retrieve pending permission requests owned by a session.",
  5950. "summary": "List session permission requests"
  5951. }
  5952. },
  5953. "/api/session/{sessionID}/permission/{requestID}": {
  5954. "get": {
  5955. "tags": ["permissions"],
  5956. "operationId": "v2.session.permission.get",
  5957. "parameters": [
  5958. {
  5959. "name": "sessionID",
  5960. "in": "path",
  5961. "schema": {
  5962. "type": "string",
  5963. "allOf": [
  5964. {
  5965. "pattern": "^ses"
  5966. }
  5967. ]
  5968. },
  5969. "required": true
  5970. },
  5971. {
  5972. "name": "requestID",
  5973. "in": "path",
  5974. "schema": {
  5975. "type": "string",
  5976. "allOf": [
  5977. {
  5978. "pattern": "^per"
  5979. }
  5980. ]
  5981. },
  5982. "required": true
  5983. }
  5984. ],
  5985. "security": [],
  5986. "responses": {
  5987. "200": {
  5988. "description": "Success",
  5989. "content": {
  5990. "application/json": {
  5991. "schema": {
  5992. "type": "object",
  5993. "properties": {
  5994. "data": {
  5995. "$ref": "#/components/schemas/PermissionV2.Request"
  5996. }
  5997. },
  5998. "required": ["data"],
  5999. "additionalProperties": false
  6000. }
  6001. }
  6002. }
  6003. },
  6004. "400": {
  6005. "description": "InvalidRequestError",
  6006. "content": {
  6007. "application/json": {
  6008. "schema": {
  6009. "$ref": "#/components/schemas/InvalidRequestError"
  6010. }
  6011. }
  6012. }
  6013. },
  6014. "401": {
  6015. "description": "UnauthorizedError",
  6016. "content": {
  6017. "application/json": {
  6018. "schema": {
  6019. "$ref": "#/components/schemas/UnauthorizedError"
  6020. }
  6021. }
  6022. }
  6023. },
  6024. "404": {
  6025. "description": "SessionNotFoundError | PermissionNotFoundError",
  6026. "content": {
  6027. "application/json": {
  6028. "schema": {
  6029. "anyOf": [
  6030. {
  6031. "$ref": "#/components/schemas/PermissionNotFoundError"
  6032. },
  6033. {
  6034. "$ref": "#/components/schemas/SessionNotFoundError"
  6035. },
  6036. {
  6037. "$ref": "#/components/schemas/SessionNotFoundError"
  6038. }
  6039. ]
  6040. }
  6041. }
  6042. }
  6043. }
  6044. },
  6045. "description": "Retrieve a pending permission request owned by a session.",
  6046. "summary": "Get permission request"
  6047. }
  6048. },
  6049. "/api/session/{sessionID}/permission/{requestID}/reply": {
  6050. "post": {
  6051. "tags": ["permissions"],
  6052. "operationId": "v2.session.permission.reply",
  6053. "parameters": [
  6054. {
  6055. "name": "sessionID",
  6056. "in": "path",
  6057. "schema": {
  6058. "type": "string",
  6059. "allOf": [
  6060. {
  6061. "pattern": "^ses"
  6062. }
  6063. ]
  6064. },
  6065. "required": true
  6066. },
  6067. {
  6068. "name": "requestID",
  6069. "in": "path",
  6070. "schema": {
  6071. "type": "string",
  6072. "allOf": [
  6073. {
  6074. "pattern": "^per"
  6075. }
  6076. ]
  6077. },
  6078. "required": true
  6079. }
  6080. ],
  6081. "security": [],
  6082. "responses": {
  6083. "204": {
  6084. "description": "<No Content>"
  6085. },
  6086. "400": {
  6087. "description": "InvalidRequestError",
  6088. "content": {
  6089. "application/json": {
  6090. "schema": {
  6091. "$ref": "#/components/schemas/InvalidRequestError"
  6092. }
  6093. }
  6094. }
  6095. },
  6096. "401": {
  6097. "description": "UnauthorizedError",
  6098. "content": {
  6099. "application/json": {
  6100. "schema": {
  6101. "$ref": "#/components/schemas/UnauthorizedError"
  6102. }
  6103. }
  6104. }
  6105. },
  6106. "404": {
  6107. "description": "SessionNotFoundError | PermissionNotFoundError",
  6108. "content": {
  6109. "application/json": {
  6110. "schema": {
  6111. "anyOf": [
  6112. {
  6113. "$ref": "#/components/schemas/PermissionNotFoundError"
  6114. },
  6115. {
  6116. "$ref": "#/components/schemas/SessionNotFoundError"
  6117. },
  6118. {
  6119. "$ref": "#/components/schemas/SessionNotFoundError"
  6120. }
  6121. ]
  6122. }
  6123. }
  6124. }
  6125. }
  6126. },
  6127. "description": "Respond to a pending permission request owned by a session.",
  6128. "summary": "Reply to pending permission request",
  6129. "requestBody": {
  6130. "content": {
  6131. "application/json": {
  6132. "schema": {
  6133. "type": "object",
  6134. "properties": {
  6135. "reply": {
  6136. "$ref": "#/components/schemas/PermissionV2.Reply"
  6137. },
  6138. "message": {
  6139. "anyOf": [
  6140. {
  6141. "type": "string"
  6142. },
  6143. {
  6144. "type": "null"
  6145. }
  6146. ]
  6147. }
  6148. },
  6149. "required": ["reply"],
  6150. "additionalProperties": false
  6151. }
  6152. }
  6153. },
  6154. "required": true
  6155. }
  6156. }
  6157. },
  6158. "/api/fs/read/*": {
  6159. "get": {
  6160. "tags": ["filesystem"],
  6161. "operationId": "v2.fs.read",
  6162. "parameters": [
  6163. {
  6164. "name": "location",
  6165. "in": "query",
  6166. "schema": {
  6167. "anyOf": [
  6168. {
  6169. "type": "object",
  6170. "properties": {
  6171. "directory": {
  6172. "anyOf": [
  6173. {
  6174. "type": "string"
  6175. },
  6176. {
  6177. "type": "null"
  6178. }
  6179. ]
  6180. },
  6181. "workspace": {
  6182. "anyOf": [
  6183. {
  6184. "type": "string"
  6185. },
  6186. {
  6187. "type": "null"
  6188. }
  6189. ]
  6190. }
  6191. },
  6192. "additionalProperties": false
  6193. },
  6194. {
  6195. "type": "null"
  6196. }
  6197. ]
  6198. },
  6199. "required": false,
  6200. "style": "deepObject",
  6201. "explode": true
  6202. }
  6203. ],
  6204. "security": [],
  6205. "responses": {
  6206. "200": {
  6207. "description": "Success",
  6208. "content": {
  6209. "application/octet-stream": {
  6210. "schema": {
  6211. "type": "string",
  6212. "format": "binary"
  6213. }
  6214. }
  6215. }
  6216. },
  6217. "400": {
  6218. "description": "InvalidRequestError",
  6219. "content": {
  6220. "application/json": {
  6221. "schema": {
  6222. "$ref": "#/components/schemas/InvalidRequestError"
  6223. }
  6224. }
  6225. }
  6226. },
  6227. "401": {
  6228. "description": "UnauthorizedError",
  6229. "content": {
  6230. "application/json": {
  6231. "schema": {
  6232. "$ref": "#/components/schemas/UnauthorizedError"
  6233. }
  6234. }
  6235. }
  6236. }
  6237. },
  6238. "description": "Serve one file relative to the requested location.",
  6239. "summary": "Read file"
  6240. }
  6241. },
  6242. "/api/fs/list": {
  6243. "get": {
  6244. "tags": ["filesystem"],
  6245. "operationId": "v2.fs.list",
  6246. "parameters": [
  6247. {
  6248. "name": "location",
  6249. "in": "query",
  6250. "schema": {
  6251. "anyOf": [
  6252. {
  6253. "type": "object",
  6254. "properties": {
  6255. "directory": {
  6256. "anyOf": [
  6257. {
  6258. "type": "string"
  6259. },
  6260. {
  6261. "type": "null"
  6262. }
  6263. ]
  6264. },
  6265. "workspace": {
  6266. "anyOf": [
  6267. {
  6268. "type": "string"
  6269. },
  6270. {
  6271. "type": "null"
  6272. }
  6273. ]
  6274. }
  6275. },
  6276. "additionalProperties": false
  6277. },
  6278. {
  6279. "type": "null"
  6280. }
  6281. ]
  6282. },
  6283. "required": false,
  6284. "style": "deepObject",
  6285. "explode": true
  6286. },
  6287. {
  6288. "name": "path",
  6289. "in": "query",
  6290. "schema": {
  6291. "anyOf": [
  6292. {
  6293. "type": "string"
  6294. },
  6295. {
  6296. "type": "null"
  6297. }
  6298. ]
  6299. },
  6300. "required": false
  6301. }
  6302. ],
  6303. "security": [],
  6304. "responses": {
  6305. "200": {
  6306. "description": "Success",
  6307. "content": {
  6308. "application/json": {
  6309. "schema": {
  6310. "type": "object",
  6311. "properties": {
  6312. "location": {
  6313. "$ref": "#/components/schemas/Location.Info"
  6314. },
  6315. "data": {
  6316. "type": "array",
  6317. "items": {
  6318. "$ref": "#/components/schemas/FileSystem.Entry"
  6319. }
  6320. }
  6321. },
  6322. "required": ["location", "data"],
  6323. "additionalProperties": false
  6324. }
  6325. }
  6326. }
  6327. },
  6328. "400": {
  6329. "description": "InvalidRequestError",
  6330. "content": {
  6331. "application/json": {
  6332. "schema": {
  6333. "$ref": "#/components/schemas/InvalidRequestError"
  6334. }
  6335. }
  6336. }
  6337. },
  6338. "401": {
  6339. "description": "UnauthorizedError",
  6340. "content": {
  6341. "application/json": {
  6342. "schema": {
  6343. "$ref": "#/components/schemas/UnauthorizedError"
  6344. }
  6345. }
  6346. }
  6347. }
  6348. },
  6349. "description": "List direct children of one directory relative to the requested location.",
  6350. "summary": "List directory"
  6351. }
  6352. },
  6353. "/api/fs/find": {
  6354. "get": {
  6355. "tags": ["filesystem"],
  6356. "operationId": "v2.fs.find",
  6357. "parameters": [
  6358. {
  6359. "name": "location",
  6360. "in": "query",
  6361. "schema": {
  6362. "anyOf": [
  6363. {
  6364. "type": "object",
  6365. "properties": {
  6366. "directory": {
  6367. "anyOf": [
  6368. {
  6369. "type": "string"
  6370. },
  6371. {
  6372. "type": "null"
  6373. }
  6374. ]
  6375. },
  6376. "workspace": {
  6377. "anyOf": [
  6378. {
  6379. "type": "string"
  6380. },
  6381. {
  6382. "type": "null"
  6383. }
  6384. ]
  6385. }
  6386. },
  6387. "additionalProperties": false
  6388. },
  6389. {
  6390. "type": "null"
  6391. }
  6392. ]
  6393. },
  6394. "required": false,
  6395. "style": "deepObject",
  6396. "explode": true
  6397. },
  6398. {
  6399. "name": "query",
  6400. "in": "query",
  6401. "schema": {
  6402. "type": "string"
  6403. },
  6404. "required": true
  6405. },
  6406. {
  6407. "name": "type",
  6408. "in": "query",
  6409. "schema": {
  6410. "type": "string",
  6411. "enum": ["file", "directory"]
  6412. },
  6413. "required": false
  6414. },
  6415. {
  6416. "name": "limit",
  6417. "in": "query",
  6418. "schema": {
  6419. "anyOf": [
  6420. {
  6421. "type": "string"
  6422. },
  6423. {
  6424. "type": "null"
  6425. }
  6426. ]
  6427. },
  6428. "required": false
  6429. }
  6430. ],
  6431. "security": [],
  6432. "responses": {
  6433. "200": {
  6434. "description": "Success",
  6435. "content": {
  6436. "application/json": {
  6437. "schema": {
  6438. "type": "object",
  6439. "properties": {
  6440. "location": {
  6441. "$ref": "#/components/schemas/Location.Info"
  6442. },
  6443. "data": {
  6444. "type": "array",
  6445. "items": {
  6446. "$ref": "#/components/schemas/FileSystem.Entry"
  6447. }
  6448. }
  6449. },
  6450. "required": ["location", "data"],
  6451. "additionalProperties": false
  6452. }
  6453. }
  6454. }
  6455. },
  6456. "400": {
  6457. "description": "InvalidRequestError",
  6458. "content": {
  6459. "application/json": {
  6460. "schema": {
  6461. "$ref": "#/components/schemas/InvalidRequestError"
  6462. }
  6463. }
  6464. }
  6465. },
  6466. "401": {
  6467. "description": "UnauthorizedError",
  6468. "content": {
  6469. "application/json": {
  6470. "schema": {
  6471. "$ref": "#/components/schemas/UnauthorizedError"
  6472. }
  6473. }
  6474. }
  6475. }
  6476. },
  6477. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  6478. "summary": "Find files"
  6479. }
  6480. },
  6481. "/api/command": {
  6482. "get": {
  6483. "tags": ["commands"],
  6484. "operationId": "v2.command.list",
  6485. "parameters": [
  6486. {
  6487. "name": "location",
  6488. "in": "query",
  6489. "schema": {
  6490. "anyOf": [
  6491. {
  6492. "type": "object",
  6493. "properties": {
  6494. "directory": {
  6495. "anyOf": [
  6496. {
  6497. "type": "string"
  6498. },
  6499. {
  6500. "type": "null"
  6501. }
  6502. ]
  6503. },
  6504. "workspace": {
  6505. "anyOf": [
  6506. {
  6507. "type": "string"
  6508. },
  6509. {
  6510. "type": "null"
  6511. }
  6512. ]
  6513. }
  6514. },
  6515. "additionalProperties": false
  6516. },
  6517. {
  6518. "type": "null"
  6519. }
  6520. ]
  6521. },
  6522. "required": false,
  6523. "style": "deepObject",
  6524. "explode": true
  6525. }
  6526. ],
  6527. "security": [],
  6528. "responses": {
  6529. "200": {
  6530. "description": "Success",
  6531. "content": {
  6532. "application/json": {
  6533. "schema": {
  6534. "type": "object",
  6535. "properties": {
  6536. "location": {
  6537. "$ref": "#/components/schemas/Location.Info"
  6538. },
  6539. "data": {
  6540. "type": "array",
  6541. "items": {
  6542. "$ref": "#/components/schemas/CommandV2.Info"
  6543. }
  6544. }
  6545. },
  6546. "required": ["location", "data"],
  6547. "additionalProperties": false
  6548. }
  6549. }
  6550. }
  6551. },
  6552. "400": {
  6553. "description": "InvalidRequestError",
  6554. "content": {
  6555. "application/json": {
  6556. "schema": {
  6557. "$ref": "#/components/schemas/InvalidRequestError"
  6558. }
  6559. }
  6560. }
  6561. },
  6562. "401": {
  6563. "description": "UnauthorizedError",
  6564. "content": {
  6565. "application/json": {
  6566. "schema": {
  6567. "$ref": "#/components/schemas/UnauthorizedError"
  6568. }
  6569. }
  6570. }
  6571. }
  6572. },
  6573. "description": "Retrieve currently registered commands.",
  6574. "summary": "List commands"
  6575. }
  6576. },
  6577. "/api/skill": {
  6578. "get": {
  6579. "tags": ["skills"],
  6580. "operationId": "v2.skill.list",
  6581. "parameters": [
  6582. {
  6583. "name": "location",
  6584. "in": "query",
  6585. "schema": {
  6586. "anyOf": [
  6587. {
  6588. "type": "object",
  6589. "properties": {
  6590. "directory": {
  6591. "anyOf": [
  6592. {
  6593. "type": "string"
  6594. },
  6595. {
  6596. "type": "null"
  6597. }
  6598. ]
  6599. },
  6600. "workspace": {
  6601. "anyOf": [
  6602. {
  6603. "type": "string"
  6604. },
  6605. {
  6606. "type": "null"
  6607. }
  6608. ]
  6609. }
  6610. },
  6611. "additionalProperties": false
  6612. },
  6613. {
  6614. "type": "null"
  6615. }
  6616. ]
  6617. },
  6618. "required": false,
  6619. "style": "deepObject",
  6620. "explode": true
  6621. }
  6622. ],
  6623. "security": [],
  6624. "responses": {
  6625. "200": {
  6626. "description": "Success",
  6627. "content": {
  6628. "application/json": {
  6629. "schema": {
  6630. "type": "object",
  6631. "properties": {
  6632. "location": {
  6633. "$ref": "#/components/schemas/Location.Info"
  6634. },
  6635. "data": {
  6636. "type": "array",
  6637. "items": {
  6638. "$ref": "#/components/schemas/SkillV2.Info"
  6639. }
  6640. }
  6641. },
  6642. "required": ["location", "data"],
  6643. "additionalProperties": false
  6644. }
  6645. }
  6646. }
  6647. },
  6648. "400": {
  6649. "description": "InvalidRequestError",
  6650. "content": {
  6651. "application/json": {
  6652. "schema": {
  6653. "$ref": "#/components/schemas/InvalidRequestError"
  6654. }
  6655. }
  6656. }
  6657. },
  6658. "401": {
  6659. "description": "UnauthorizedError",
  6660. "content": {
  6661. "application/json": {
  6662. "schema": {
  6663. "$ref": "#/components/schemas/UnauthorizedError"
  6664. }
  6665. }
  6666. }
  6667. }
  6668. },
  6669. "description": "Retrieve currently registered skills.",
  6670. "summary": "List skills"
  6671. }
  6672. },
  6673. "/api/event": {
  6674. "get": {
  6675. "tags": ["events"],
  6676. "operationId": "v2.event.subscribe",
  6677. "parameters": [],
  6678. "security": [],
  6679. "responses": {
  6680. "200": {
  6681. "description": "Success",
  6682. "content": {
  6683. "text/event-stream": {
  6684. "schema": {
  6685. "type": "object",
  6686. "properties": {
  6687. "id": {
  6688. "anyOf": [
  6689. {
  6690. "type": "string"
  6691. },
  6692. {
  6693. "type": "null"
  6694. }
  6695. ]
  6696. },
  6697. "event": {
  6698. "type": "string"
  6699. },
  6700. "data": {
  6701. "$ref": "#/components/schemas/V2EventStream"
  6702. }
  6703. },
  6704. "required": ["id", "event", "data"],
  6705. "additionalProperties": false
  6706. },
  6707. "x-effect-stream": {
  6708. "encoding": "sse",
  6709. "causeSchema": {
  6710. "type": "array",
  6711. "items": {
  6712. "anyOf": [
  6713. {
  6714. "type": "object",
  6715. "properties": {
  6716. "_tag": {
  6717. "type": "string",
  6718. "enum": ["Fail"]
  6719. },
  6720. "error": {
  6721. "not": {}
  6722. }
  6723. },
  6724. "required": ["_tag", "error"],
  6725. "additionalProperties": false
  6726. },
  6727. {
  6728. "type": "object",
  6729. "properties": {
  6730. "_tag": {
  6731. "type": "string",
  6732. "enum": ["Die"]
  6733. },
  6734. "defect": {}
  6735. },
  6736. "required": ["_tag", "defect"],
  6737. "additionalProperties": false
  6738. },
  6739. {
  6740. "type": "object",
  6741. "properties": {
  6742. "_tag": {
  6743. "type": "string",
  6744. "enum": ["Interrupt"]
  6745. },
  6746. "fiberId": {
  6747. "anyOf": [
  6748. {
  6749. "type": "number"
  6750. },
  6751. {
  6752. "type": "null"
  6753. }
  6754. ]
  6755. }
  6756. },
  6757. "required": ["_tag", "fiberId"],
  6758. "additionalProperties": false
  6759. }
  6760. ]
  6761. }
  6762. },
  6763. "errorSchema": {
  6764. "not": {}
  6765. },
  6766. "failureEvent": "effect/httpapi/stream/failure"
  6767. }
  6768. }
  6769. }
  6770. },
  6771. "400": {
  6772. "description": "InvalidRequestError",
  6773. "content": {
  6774. "application/json": {
  6775. "schema": {
  6776. "$ref": "#/components/schemas/InvalidRequestError"
  6777. }
  6778. }
  6779. }
  6780. },
  6781. "401": {
  6782. "description": "UnauthorizedError",
  6783. "content": {
  6784. "application/json": {
  6785. "schema": {
  6786. "$ref": "#/components/schemas/UnauthorizedError"
  6787. }
  6788. }
  6789. }
  6790. }
  6791. },
  6792. "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. Consumers that need reliability should combine the changes feed with durable session log reads.",
  6793. "summary": "Subscribe to events"
  6794. }
  6795. },
  6796. "/api/event/changes": {
  6797. "get": {
  6798. "tags": ["events"],
  6799. "operationId": "v2.event.changes",
  6800. "parameters": [],
  6801. "security": [],
  6802. "responses": {
  6803. "200": {
  6804. "description": "Success",
  6805. "content": {
  6806. "text/event-stream": {
  6807. "schema": {
  6808. "type": "object",
  6809. "properties": {
  6810. "id": {
  6811. "anyOf": [
  6812. {
  6813. "type": "string"
  6814. },
  6815. {
  6816. "type": "null"
  6817. }
  6818. ]
  6819. },
  6820. "event": {
  6821. "type": "string"
  6822. },
  6823. "data": {
  6824. "$ref": "#/components/schemas/EventLog.ChangeStream"
  6825. }
  6826. },
  6827. "required": ["id", "event", "data"],
  6828. "additionalProperties": false
  6829. },
  6830. "x-effect-stream": {
  6831. "encoding": "sse",
  6832. "causeSchema": {
  6833. "type": "array",
  6834. "items": {
  6835. "anyOf": [
  6836. {
  6837. "type": "object",
  6838. "properties": {
  6839. "_tag": {
  6840. "type": "string",
  6841. "enum": ["Fail"]
  6842. },
  6843. "error": {
  6844. "not": {}
  6845. }
  6846. },
  6847. "required": ["_tag", "error"],
  6848. "additionalProperties": false
  6849. },
  6850. {
  6851. "type": "object",
  6852. "properties": {
  6853. "_tag": {
  6854. "type": "string",
  6855. "enum": ["Die"]
  6856. },
  6857. "defect": {}
  6858. },
  6859. "required": ["_tag", "defect"],
  6860. "additionalProperties": false
  6861. },
  6862. {
  6863. "type": "object",
  6864. "properties": {
  6865. "_tag": {
  6866. "type": "string",
  6867. "enum": ["Interrupt"]
  6868. },
  6869. "fiberId": {
  6870. "anyOf": [
  6871. {
  6872. "type": "number"
  6873. },
  6874. {
  6875. "type": "null"
  6876. }
  6877. ]
  6878. }
  6879. },
  6880. "required": ["_tag", "fiberId"],
  6881. "additionalProperties": false
  6882. }
  6883. ]
  6884. }
  6885. },
  6886. "errorSchema": {
  6887. "not": {}
  6888. },
  6889. "failureEvent": "effect/httpapi/stream/failure"
  6890. }
  6891. }
  6892. }
  6893. },
  6894. "400": {
  6895. "description": "InvalidRequestError",
  6896. "content": {
  6897. "application/json": {
  6898. "schema": {
  6899. "$ref": "#/components/schemas/InvalidRequestError"
  6900. }
  6901. }
  6902. }
  6903. },
  6904. "401": {
  6905. "description": "UnauthorizedError",
  6906. "content": {
  6907. "application/json": {
  6908. "schema": {
  6909. "$ref": "#/components/schemas/UnauthorizedError"
  6910. }
  6911. }
  6912. }
  6913. }
  6914. },
  6915. "description": "Payload-free hint channel: after an event commits, a subscriber eventually receives a hint for that aggregate with seq at or beyond the event, or a sweep-required marker. Hints coalesce to the latest seq per aggregate under backpressure and the stream never fails from overflow. No consumer may derive correctness from receiving a hint; correctness always comes from durable log reads plus the consumer's own checkpoint. A sweep-required marker is emitted first on every (re)subscribe and whenever hint retention is exceeded: treat every aggregate as potentially dirty and recover via bounded sweep plus log reads.",
  6916. "summary": "Subscribe to change hints"
  6917. }
  6918. },
  6919. "/api/pty": {
  6920. "get": {
  6921. "tags": ["pty"],
  6922. "operationId": "v2.pty.list",
  6923. "parameters": [
  6924. {
  6925. "name": "location",
  6926. "in": "query",
  6927. "schema": {
  6928. "anyOf": [
  6929. {
  6930. "type": "object",
  6931. "properties": {
  6932. "directory": {
  6933. "anyOf": [
  6934. {
  6935. "type": "string"
  6936. },
  6937. {
  6938. "type": "null"
  6939. }
  6940. ]
  6941. },
  6942. "workspace": {
  6943. "anyOf": [
  6944. {
  6945. "type": "string"
  6946. },
  6947. {
  6948. "type": "null"
  6949. }
  6950. ]
  6951. }
  6952. },
  6953. "additionalProperties": false
  6954. },
  6955. {
  6956. "type": "null"
  6957. }
  6958. ]
  6959. },
  6960. "required": false,
  6961. "style": "deepObject",
  6962. "explode": true
  6963. }
  6964. ],
  6965. "security": [],
  6966. "responses": {
  6967. "200": {
  6968. "description": "Success",
  6969. "content": {
  6970. "application/json": {
  6971. "schema": {
  6972. "type": "object",
  6973. "properties": {
  6974. "location": {
  6975. "$ref": "#/components/schemas/Location.Info"
  6976. },
  6977. "data": {
  6978. "type": "array",
  6979. "items": {
  6980. "$ref": "#/components/schemas/Pty"
  6981. }
  6982. }
  6983. },
  6984. "required": ["location", "data"],
  6985. "additionalProperties": false
  6986. }
  6987. }
  6988. }
  6989. },
  6990. "400": {
  6991. "description": "InvalidRequestError",
  6992. "content": {
  6993. "application/json": {
  6994. "schema": {
  6995. "$ref": "#/components/schemas/InvalidRequestError"
  6996. }
  6997. }
  6998. }
  6999. },
  7000. "401": {
  7001. "description": "UnauthorizedError",
  7002. "content": {
  7003. "application/json": {
  7004. "schema": {
  7005. "$ref": "#/components/schemas/UnauthorizedError"
  7006. }
  7007. }
  7008. }
  7009. }
  7010. },
  7011. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  7012. "summary": "List PTY sessions"
  7013. },
  7014. "post": {
  7015. "tags": ["pty"],
  7016. "operationId": "v2.pty.create",
  7017. "parameters": [
  7018. {
  7019. "name": "location",
  7020. "in": "query",
  7021. "schema": {
  7022. "anyOf": [
  7023. {
  7024. "type": "object",
  7025. "properties": {
  7026. "directory": {
  7027. "anyOf": [
  7028. {
  7029. "type": "string"
  7030. },
  7031. {
  7032. "type": "null"
  7033. }
  7034. ]
  7035. },
  7036. "workspace": {
  7037. "anyOf": [
  7038. {
  7039. "type": "string"
  7040. },
  7041. {
  7042. "type": "null"
  7043. }
  7044. ]
  7045. }
  7046. },
  7047. "additionalProperties": false
  7048. },
  7049. {
  7050. "type": "null"
  7051. }
  7052. ]
  7053. },
  7054. "required": false,
  7055. "style": "deepObject",
  7056. "explode": true
  7057. }
  7058. ],
  7059. "security": [],
  7060. "responses": {
  7061. "200": {
  7062. "description": "Success",
  7063. "content": {
  7064. "application/json": {
  7065. "schema": {
  7066. "type": "object",
  7067. "properties": {
  7068. "location": {
  7069. "$ref": "#/components/schemas/Location.Info"
  7070. },
  7071. "data": {
  7072. "$ref": "#/components/schemas/Pty"
  7073. }
  7074. },
  7075. "required": ["location", "data"],
  7076. "additionalProperties": false
  7077. }
  7078. }
  7079. }
  7080. },
  7081. "400": {
  7082. "description": "InvalidRequestError",
  7083. "content": {
  7084. "application/json": {
  7085. "schema": {
  7086. "$ref": "#/components/schemas/InvalidRequestError"
  7087. }
  7088. }
  7089. }
  7090. },
  7091. "401": {
  7092. "description": "UnauthorizedError",
  7093. "content": {
  7094. "application/json": {
  7095. "schema": {
  7096. "$ref": "#/components/schemas/UnauthorizedError"
  7097. }
  7098. }
  7099. }
  7100. }
  7101. },
  7102. "description": "Create a pseudo-terminal session for a location.",
  7103. "summary": "Create PTY session",
  7104. "requestBody": {
  7105. "content": {
  7106. "application/json": {
  7107. "schema": {
  7108. "type": "object",
  7109. "properties": {
  7110. "command": {
  7111. "type": "string"
  7112. },
  7113. "args": {
  7114. "type": "array",
  7115. "items": {
  7116. "type": "string"
  7117. }
  7118. },
  7119. "cwd": {
  7120. "type": "string"
  7121. },
  7122. "title": {
  7123. "type": "string"
  7124. },
  7125. "env": {
  7126. "type": "object",
  7127. "additionalProperties": {
  7128. "type": "string"
  7129. }
  7130. }
  7131. },
  7132. "additionalProperties": false
  7133. }
  7134. }
  7135. },
  7136. "required": true
  7137. }
  7138. }
  7139. },
  7140. "/api/pty/{ptyID}": {
  7141. "get": {
  7142. "tags": ["pty"],
  7143. "operationId": "v2.pty.get",
  7144. "parameters": [
  7145. {
  7146. "name": "ptyID",
  7147. "in": "path",
  7148. "schema": {
  7149. "type": "string",
  7150. "allOf": [
  7151. {
  7152. "pattern": "^pty"
  7153. }
  7154. ]
  7155. },
  7156. "required": true
  7157. },
  7158. {
  7159. "name": "location",
  7160. "in": "query",
  7161. "schema": {
  7162. "anyOf": [
  7163. {
  7164. "type": "object",
  7165. "properties": {
  7166. "directory": {
  7167. "anyOf": [
  7168. {
  7169. "type": "string"
  7170. },
  7171. {
  7172. "type": "null"
  7173. }
  7174. ]
  7175. },
  7176. "workspace": {
  7177. "anyOf": [
  7178. {
  7179. "type": "string"
  7180. },
  7181. {
  7182. "type": "null"
  7183. }
  7184. ]
  7185. }
  7186. },
  7187. "additionalProperties": false
  7188. },
  7189. {
  7190. "type": "null"
  7191. }
  7192. ]
  7193. },
  7194. "required": false,
  7195. "style": "deepObject",
  7196. "explode": true
  7197. }
  7198. ],
  7199. "security": [],
  7200. "responses": {
  7201. "200": {
  7202. "description": "Success",
  7203. "content": {
  7204. "application/json": {
  7205. "schema": {
  7206. "type": "object",
  7207. "properties": {
  7208. "location": {
  7209. "$ref": "#/components/schemas/Location.Info"
  7210. },
  7211. "data": {
  7212. "$ref": "#/components/schemas/Pty"
  7213. }
  7214. },
  7215. "required": ["location", "data"],
  7216. "additionalProperties": false
  7217. }
  7218. }
  7219. }
  7220. },
  7221. "400": {
  7222. "description": "InvalidRequestError",
  7223. "content": {
  7224. "application/json": {
  7225. "schema": {
  7226. "$ref": "#/components/schemas/InvalidRequestError"
  7227. }
  7228. }
  7229. }
  7230. },
  7231. "401": {
  7232. "description": "UnauthorizedError",
  7233. "content": {
  7234. "application/json": {
  7235. "schema": {
  7236. "$ref": "#/components/schemas/UnauthorizedError"
  7237. }
  7238. }
  7239. }
  7240. },
  7241. "404": {
  7242. "description": "PtyNotFoundError",
  7243. "content": {
  7244. "application/json": {
  7245. "schema": {
  7246. "$ref": "#/components/schemas/PtyNotFoundError"
  7247. }
  7248. }
  7249. }
  7250. }
  7251. },
  7252. "description": "Get one PTY session, including its exit code once exited.",
  7253. "summary": "Get PTY session"
  7254. },
  7255. "put": {
  7256. "tags": ["pty"],
  7257. "operationId": "v2.pty.update",
  7258. "parameters": [
  7259. {
  7260. "name": "ptyID",
  7261. "in": "path",
  7262. "schema": {
  7263. "type": "string",
  7264. "allOf": [
  7265. {
  7266. "pattern": "^pty"
  7267. }
  7268. ]
  7269. },
  7270. "required": true
  7271. },
  7272. {
  7273. "name": "location",
  7274. "in": "query",
  7275. "schema": {
  7276. "anyOf": [
  7277. {
  7278. "type": "object",
  7279. "properties": {
  7280. "directory": {
  7281. "anyOf": [
  7282. {
  7283. "type": "string"
  7284. },
  7285. {
  7286. "type": "null"
  7287. }
  7288. ]
  7289. },
  7290. "workspace": {
  7291. "anyOf": [
  7292. {
  7293. "type": "string"
  7294. },
  7295. {
  7296. "type": "null"
  7297. }
  7298. ]
  7299. }
  7300. },
  7301. "additionalProperties": false
  7302. },
  7303. {
  7304. "type": "null"
  7305. }
  7306. ]
  7307. },
  7308. "required": false,
  7309. "style": "deepObject",
  7310. "explode": true
  7311. }
  7312. ],
  7313. "security": [],
  7314. "responses": {
  7315. "200": {
  7316. "description": "Success",
  7317. "content": {
  7318. "application/json": {
  7319. "schema": {
  7320. "type": "object",
  7321. "properties": {
  7322. "location": {
  7323. "$ref": "#/components/schemas/Location.Info"
  7324. },
  7325. "data": {
  7326. "$ref": "#/components/schemas/Pty"
  7327. }
  7328. },
  7329. "required": ["location", "data"],
  7330. "additionalProperties": false
  7331. }
  7332. }
  7333. }
  7334. },
  7335. "400": {
  7336. "description": "InvalidRequestError",
  7337. "content": {
  7338. "application/json": {
  7339. "schema": {
  7340. "$ref": "#/components/schemas/InvalidRequestError"
  7341. }
  7342. }
  7343. }
  7344. },
  7345. "401": {
  7346. "description": "UnauthorizedError",
  7347. "content": {
  7348. "application/json": {
  7349. "schema": {
  7350. "$ref": "#/components/schemas/UnauthorizedError"
  7351. }
  7352. }
  7353. }
  7354. },
  7355. "404": {
  7356. "description": "PtyNotFoundError",
  7357. "content": {
  7358. "application/json": {
  7359. "schema": {
  7360. "$ref": "#/components/schemas/PtyNotFoundError"
  7361. }
  7362. }
  7363. }
  7364. }
  7365. },
  7366. "description": "Update the title or viewport size of one PTY session.",
  7367. "summary": "Update PTY session",
  7368. "requestBody": {
  7369. "content": {
  7370. "application/json": {
  7371. "schema": {
  7372. "type": "object",
  7373. "properties": {
  7374. "title": {
  7375. "type": "string"
  7376. },
  7377. "size": {
  7378. "type": "object",
  7379. "properties": {
  7380. "rows": {
  7381. "type": "integer",
  7382. "allOf": [
  7383. {
  7384. "exclusiveMinimum": 0
  7385. }
  7386. ]
  7387. },
  7388. "cols": {
  7389. "type": "integer",
  7390. "allOf": [
  7391. {
  7392. "exclusiveMinimum": 0
  7393. }
  7394. ]
  7395. }
  7396. },
  7397. "required": ["rows", "cols"],
  7398. "additionalProperties": false
  7399. }
  7400. },
  7401. "additionalProperties": false
  7402. }
  7403. }
  7404. },
  7405. "required": true
  7406. }
  7407. },
  7408. "delete": {
  7409. "tags": ["pty"],
  7410. "operationId": "v2.pty.remove",
  7411. "parameters": [
  7412. {
  7413. "name": "ptyID",
  7414. "in": "path",
  7415. "schema": {
  7416. "type": "string",
  7417. "allOf": [
  7418. {
  7419. "pattern": "^pty"
  7420. }
  7421. ]
  7422. },
  7423. "required": true
  7424. },
  7425. {
  7426. "name": "location",
  7427. "in": "query",
  7428. "schema": {
  7429. "anyOf": [
  7430. {
  7431. "type": "object",
  7432. "properties": {
  7433. "directory": {
  7434. "anyOf": [
  7435. {
  7436. "type": "string"
  7437. },
  7438. {
  7439. "type": "null"
  7440. }
  7441. ]
  7442. },
  7443. "workspace": {
  7444. "anyOf": [
  7445. {
  7446. "type": "string"
  7447. },
  7448. {
  7449. "type": "null"
  7450. }
  7451. ]
  7452. }
  7453. },
  7454. "additionalProperties": false
  7455. },
  7456. {
  7457. "type": "null"
  7458. }
  7459. ]
  7460. },
  7461. "required": false,
  7462. "style": "deepObject",
  7463. "explode": true
  7464. }
  7465. ],
  7466. "security": [],
  7467. "responses": {
  7468. "204": {
  7469. "description": "<No Content>"
  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. "404": {
  7492. "description": "PtyNotFoundError",
  7493. "content": {
  7494. "application/json": {
  7495. "schema": {
  7496. "$ref": "#/components/schemas/PtyNotFoundError"
  7497. }
  7498. }
  7499. }
  7500. }
  7501. },
  7502. "description": "Terminate and remove one PTY session.",
  7503. "summary": "Remove PTY session"
  7504. }
  7505. },
  7506. "/api/pty/{ptyID}/connect-token": {
  7507. "post": {
  7508. "tags": ["pty"],
  7509. "operationId": "v2.pty.connectToken",
  7510. "parameters": [
  7511. {
  7512. "name": "ptyID",
  7513. "in": "path",
  7514. "schema": {
  7515. "type": "string",
  7516. "allOf": [
  7517. {
  7518. "pattern": "^pty"
  7519. }
  7520. ]
  7521. },
  7522. "required": true
  7523. },
  7524. {
  7525. "name": "location",
  7526. "in": "query",
  7527. "schema": {
  7528. "anyOf": [
  7529. {
  7530. "type": "object",
  7531. "properties": {
  7532. "directory": {
  7533. "anyOf": [
  7534. {
  7535. "type": "string"
  7536. },
  7537. {
  7538. "type": "null"
  7539. }
  7540. ]
  7541. },
  7542. "workspace": {
  7543. "anyOf": [
  7544. {
  7545. "type": "string"
  7546. },
  7547. {
  7548. "type": "null"
  7549. }
  7550. ]
  7551. }
  7552. },
  7553. "additionalProperties": false
  7554. },
  7555. {
  7556. "type": "null"
  7557. }
  7558. ]
  7559. },
  7560. "required": false,
  7561. "style": "deepObject",
  7562. "explode": true
  7563. }
  7564. ],
  7565. "security": [],
  7566. "responses": {
  7567. "200": {
  7568. "description": "Success",
  7569. "content": {
  7570. "application/json": {
  7571. "schema": {
  7572. "type": "object",
  7573. "properties": {
  7574. "location": {
  7575. "$ref": "#/components/schemas/Location.Info"
  7576. },
  7577. "data": {
  7578. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  7579. }
  7580. },
  7581. "required": ["location", "data"],
  7582. "additionalProperties": false
  7583. }
  7584. }
  7585. }
  7586. },
  7587. "400": {
  7588. "description": "InvalidRequestError",
  7589. "content": {
  7590. "application/json": {
  7591. "schema": {
  7592. "$ref": "#/components/schemas/InvalidRequestError"
  7593. }
  7594. }
  7595. }
  7596. },
  7597. "401": {
  7598. "description": "UnauthorizedError",
  7599. "content": {
  7600. "application/json": {
  7601. "schema": {
  7602. "$ref": "#/components/schemas/UnauthorizedError"
  7603. }
  7604. }
  7605. }
  7606. },
  7607. "403": {
  7608. "description": "ForbiddenError",
  7609. "content": {
  7610. "application/json": {
  7611. "schema": {
  7612. "$ref": "#/components/schemas/ForbiddenError"
  7613. }
  7614. }
  7615. }
  7616. },
  7617. "404": {
  7618. "description": "PtyNotFoundError",
  7619. "content": {
  7620. "application/json": {
  7621. "schema": {
  7622. "$ref": "#/components/schemas/PtyNotFoundError"
  7623. }
  7624. }
  7625. }
  7626. }
  7627. },
  7628. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  7629. "summary": "Create PTY WebSocket token"
  7630. }
  7631. },
  7632. "/api/pty/{ptyID}/connect": {
  7633. "get": {
  7634. "tags": ["pty"],
  7635. "operationId": "v2.pty.connect",
  7636. "x-websocket": true,
  7637. "parameters": [
  7638. {
  7639. "name": "ptyID",
  7640. "in": "path",
  7641. "schema": {
  7642. "type": "string",
  7643. "allOf": [
  7644. {
  7645. "pattern": "^pty"
  7646. }
  7647. ]
  7648. },
  7649. "required": true
  7650. },
  7651. {
  7652. "in": "query",
  7653. "name": "location[directory]",
  7654. "schema": {
  7655. "type": "string"
  7656. }
  7657. },
  7658. {
  7659. "in": "query",
  7660. "name": "location[workspace]",
  7661. "schema": {
  7662. "type": "string"
  7663. }
  7664. },
  7665. {
  7666. "in": "query",
  7667. "name": "cursor",
  7668. "schema": {
  7669. "type": "string"
  7670. }
  7671. },
  7672. {
  7673. "in": "query",
  7674. "name": "ticket",
  7675. "schema": {
  7676. "type": "string"
  7677. }
  7678. }
  7679. ],
  7680. "security": [],
  7681. "responses": {
  7682. "200": {
  7683. "description": "Success",
  7684. "content": {
  7685. "application/json": {
  7686. "schema": {
  7687. "type": "boolean"
  7688. }
  7689. }
  7690. }
  7691. },
  7692. "400": {
  7693. "description": "InvalidRequestError",
  7694. "content": {
  7695. "application/json": {
  7696. "schema": {
  7697. "$ref": "#/components/schemas/InvalidRequestError"
  7698. }
  7699. }
  7700. }
  7701. },
  7702. "401": {
  7703. "description": "UnauthorizedError",
  7704. "content": {
  7705. "application/json": {
  7706. "schema": {
  7707. "$ref": "#/components/schemas/UnauthorizedError"
  7708. }
  7709. }
  7710. }
  7711. },
  7712. "403": {
  7713. "description": "ForbiddenError",
  7714. "content": {
  7715. "application/json": {
  7716. "schema": {
  7717. "$ref": "#/components/schemas/ForbiddenError"
  7718. }
  7719. }
  7720. }
  7721. },
  7722. "404": {
  7723. "description": "PtyNotFoundError",
  7724. "content": {
  7725. "application/json": {
  7726. "schema": {
  7727. "$ref": "#/components/schemas/PtyNotFoundError"
  7728. }
  7729. }
  7730. }
  7731. }
  7732. },
  7733. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  7734. "summary": "Connect to PTY session"
  7735. }
  7736. },
  7737. "/api/shell": {
  7738. "get": {
  7739. "tags": ["shell"],
  7740. "operationId": "v2.shell.list",
  7741. "parameters": [
  7742. {
  7743. "name": "location",
  7744. "in": "query",
  7745. "schema": {
  7746. "anyOf": [
  7747. {
  7748. "type": "object",
  7749. "properties": {
  7750. "directory": {
  7751. "anyOf": [
  7752. {
  7753. "type": "string"
  7754. },
  7755. {
  7756. "type": "null"
  7757. }
  7758. ]
  7759. },
  7760. "workspace": {
  7761. "anyOf": [
  7762. {
  7763. "type": "string"
  7764. },
  7765. {
  7766. "type": "null"
  7767. }
  7768. ]
  7769. }
  7770. },
  7771. "additionalProperties": false
  7772. },
  7773. {
  7774. "type": "null"
  7775. }
  7776. ]
  7777. },
  7778. "required": false,
  7779. "style": "deepObject",
  7780. "explode": true
  7781. }
  7782. ],
  7783. "security": [],
  7784. "responses": {
  7785. "200": {
  7786. "description": "Success",
  7787. "content": {
  7788. "application/json": {
  7789. "schema": {
  7790. "type": "object",
  7791. "properties": {
  7792. "location": {
  7793. "$ref": "#/components/schemas/Location.Info"
  7794. },
  7795. "data": {
  7796. "type": "array",
  7797. "items": {
  7798. "$ref": "#/components/schemas/Shell1"
  7799. }
  7800. }
  7801. },
  7802. "required": ["location", "data"],
  7803. "additionalProperties": false
  7804. }
  7805. }
  7806. }
  7807. },
  7808. "400": {
  7809. "description": "InvalidRequestError",
  7810. "content": {
  7811. "application/json": {
  7812. "schema": {
  7813. "$ref": "#/components/schemas/InvalidRequestError"
  7814. }
  7815. }
  7816. }
  7817. },
  7818. "401": {
  7819. "description": "UnauthorizedError",
  7820. "content": {
  7821. "application/json": {
  7822. "schema": {
  7823. "$ref": "#/components/schemas/UnauthorizedError"
  7824. }
  7825. }
  7826. }
  7827. }
  7828. },
  7829. "description": "List currently running shell commands for a location. Exited commands are not included.",
  7830. "summary": "List running shell commands"
  7831. },
  7832. "post": {
  7833. "tags": ["shell"],
  7834. "operationId": "v2.shell.create",
  7835. "parameters": [
  7836. {
  7837. "name": "location",
  7838. "in": "query",
  7839. "schema": {
  7840. "anyOf": [
  7841. {
  7842. "type": "object",
  7843. "properties": {
  7844. "directory": {
  7845. "anyOf": [
  7846. {
  7847. "type": "string"
  7848. },
  7849. {
  7850. "type": "null"
  7851. }
  7852. ]
  7853. },
  7854. "workspace": {
  7855. "anyOf": [
  7856. {
  7857. "type": "string"
  7858. },
  7859. {
  7860. "type": "null"
  7861. }
  7862. ]
  7863. }
  7864. },
  7865. "additionalProperties": false
  7866. },
  7867. {
  7868. "type": "null"
  7869. }
  7870. ]
  7871. },
  7872. "required": false,
  7873. "style": "deepObject",
  7874. "explode": true
  7875. }
  7876. ],
  7877. "security": [],
  7878. "responses": {
  7879. "200": {
  7880. "description": "Success",
  7881. "content": {
  7882. "application/json": {
  7883. "schema": {
  7884. "type": "object",
  7885. "properties": {
  7886. "location": {
  7887. "$ref": "#/components/schemas/Location.Info"
  7888. },
  7889. "data": {
  7890. "$ref": "#/components/schemas/Shell1"
  7891. }
  7892. },
  7893. "required": ["location", "data"],
  7894. "additionalProperties": false
  7895. }
  7896. }
  7897. }
  7898. },
  7899. "400": {
  7900. "description": "InvalidRequestError",
  7901. "content": {
  7902. "application/json": {
  7903. "schema": {
  7904. "$ref": "#/components/schemas/InvalidRequestError"
  7905. }
  7906. }
  7907. }
  7908. },
  7909. "401": {
  7910. "description": "UnauthorizedError",
  7911. "content": {
  7912. "application/json": {
  7913. "schema": {
  7914. "$ref": "#/components/schemas/UnauthorizedError"
  7915. }
  7916. }
  7917. }
  7918. }
  7919. },
  7920. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  7921. "summary": "Run shell command",
  7922. "requestBody": {
  7923. "content": {
  7924. "application/json": {
  7925. "schema": {
  7926. "type": "object",
  7927. "properties": {
  7928. "command": {
  7929. "type": "string"
  7930. },
  7931. "cwd": {
  7932. "type": "string"
  7933. },
  7934. "timeout": {
  7935. "type": "integer",
  7936. "allOf": [
  7937. {
  7938. "minimum": 0
  7939. }
  7940. ]
  7941. },
  7942. "metadata": {
  7943. "type": "object"
  7944. }
  7945. },
  7946. "required": ["command"],
  7947. "additionalProperties": false
  7948. }
  7949. }
  7950. },
  7951. "required": true
  7952. }
  7953. }
  7954. },
  7955. "/api/shell/{id}": {
  7956. "get": {
  7957. "tags": ["shell"],
  7958. "operationId": "v2.shell.get",
  7959. "parameters": [
  7960. {
  7961. "name": "id",
  7962. "in": "path",
  7963. "schema": {
  7964. "type": "string",
  7965. "allOf": [
  7966. {
  7967. "pattern": "^sh_"
  7968. }
  7969. ]
  7970. },
  7971. "required": true
  7972. },
  7973. {
  7974. "name": "location",
  7975. "in": "query",
  7976. "schema": {
  7977. "anyOf": [
  7978. {
  7979. "type": "object",
  7980. "properties": {
  7981. "directory": {
  7982. "anyOf": [
  7983. {
  7984. "type": "string"
  7985. },
  7986. {
  7987. "type": "null"
  7988. }
  7989. ]
  7990. },
  7991. "workspace": {
  7992. "anyOf": [
  7993. {
  7994. "type": "string"
  7995. },
  7996. {
  7997. "type": "null"
  7998. }
  7999. ]
  8000. }
  8001. },
  8002. "additionalProperties": false
  8003. },
  8004. {
  8005. "type": "null"
  8006. }
  8007. ]
  8008. },
  8009. "required": false,
  8010. "style": "deepObject",
  8011. "explode": true
  8012. }
  8013. ],
  8014. "security": [],
  8015. "responses": {
  8016. "200": {
  8017. "description": "Success",
  8018. "content": {
  8019. "application/json": {
  8020. "schema": {
  8021. "type": "object",
  8022. "properties": {
  8023. "location": {
  8024. "$ref": "#/components/schemas/Location.Info"
  8025. },
  8026. "data": {
  8027. "$ref": "#/components/schemas/Shell1"
  8028. }
  8029. },
  8030. "required": ["location", "data"],
  8031. "additionalProperties": false
  8032. }
  8033. }
  8034. }
  8035. },
  8036. "400": {
  8037. "description": "InvalidRequestError",
  8038. "content": {
  8039. "application/json": {
  8040. "schema": {
  8041. "$ref": "#/components/schemas/InvalidRequestError"
  8042. }
  8043. }
  8044. }
  8045. },
  8046. "401": {
  8047. "description": "UnauthorizedError",
  8048. "content": {
  8049. "application/json": {
  8050. "schema": {
  8051. "$ref": "#/components/schemas/UnauthorizedError"
  8052. }
  8053. }
  8054. }
  8055. },
  8056. "404": {
  8057. "description": "ShellNotFoundError",
  8058. "content": {
  8059. "application/json": {
  8060. "schema": {
  8061. "$ref": "#/components/schemas/ShellNotFoundError"
  8062. }
  8063. }
  8064. }
  8065. }
  8066. },
  8067. "description": "Get one shell command, including its status and exit code once exited.",
  8068. "summary": "Get shell command"
  8069. },
  8070. "delete": {
  8071. "tags": ["shell"],
  8072. "operationId": "v2.shell.remove",
  8073. "parameters": [
  8074. {
  8075. "name": "id",
  8076. "in": "path",
  8077. "schema": {
  8078. "type": "string",
  8079. "allOf": [
  8080. {
  8081. "pattern": "^sh_"
  8082. }
  8083. ]
  8084. },
  8085. "required": true
  8086. },
  8087. {
  8088. "name": "location",
  8089. "in": "query",
  8090. "schema": {
  8091. "anyOf": [
  8092. {
  8093. "type": "object",
  8094. "properties": {
  8095. "directory": {
  8096. "anyOf": [
  8097. {
  8098. "type": "string"
  8099. },
  8100. {
  8101. "type": "null"
  8102. }
  8103. ]
  8104. },
  8105. "workspace": {
  8106. "anyOf": [
  8107. {
  8108. "type": "string"
  8109. },
  8110. {
  8111. "type": "null"
  8112. }
  8113. ]
  8114. }
  8115. },
  8116. "additionalProperties": false
  8117. },
  8118. {
  8119. "type": "null"
  8120. }
  8121. ]
  8122. },
  8123. "required": false,
  8124. "style": "deepObject",
  8125. "explode": true
  8126. }
  8127. ],
  8128. "security": [],
  8129. "responses": {
  8130. "204": {
  8131. "description": "<No Content>"
  8132. },
  8133. "400": {
  8134. "description": "InvalidRequestError",
  8135. "content": {
  8136. "application/json": {
  8137. "schema": {
  8138. "$ref": "#/components/schemas/InvalidRequestError"
  8139. }
  8140. }
  8141. }
  8142. },
  8143. "401": {
  8144. "description": "UnauthorizedError",
  8145. "content": {
  8146. "application/json": {
  8147. "schema": {
  8148. "$ref": "#/components/schemas/UnauthorizedError"
  8149. }
  8150. }
  8151. }
  8152. },
  8153. "404": {
  8154. "description": "ShellNotFoundError",
  8155. "content": {
  8156. "application/json": {
  8157. "schema": {
  8158. "$ref": "#/components/schemas/ShellNotFoundError"
  8159. }
  8160. }
  8161. }
  8162. }
  8163. },
  8164. "description": "Terminate and remove one shell command and its retained output.",
  8165. "summary": "Remove shell command"
  8166. }
  8167. },
  8168. "/api/shell/{id}/output": {
  8169. "get": {
  8170. "tags": ["shell"],
  8171. "operationId": "v2.shell.output",
  8172. "parameters": [
  8173. {
  8174. "name": "id",
  8175. "in": "path",
  8176. "schema": {
  8177. "type": "string",
  8178. "allOf": [
  8179. {
  8180. "pattern": "^sh_"
  8181. }
  8182. ]
  8183. },
  8184. "required": true
  8185. },
  8186. {
  8187. "name": "location",
  8188. "in": "query",
  8189. "schema": {
  8190. "anyOf": [
  8191. {
  8192. "type": "object",
  8193. "properties": {
  8194. "directory": {
  8195. "anyOf": [
  8196. {
  8197. "type": "string"
  8198. },
  8199. {
  8200. "type": "null"
  8201. }
  8202. ]
  8203. },
  8204. "workspace": {
  8205. "anyOf": [
  8206. {
  8207. "type": "string"
  8208. },
  8209. {
  8210. "type": "null"
  8211. }
  8212. ]
  8213. }
  8214. },
  8215. "additionalProperties": false
  8216. },
  8217. {
  8218. "type": "null"
  8219. }
  8220. ]
  8221. },
  8222. "required": false,
  8223. "style": "deepObject",
  8224. "explode": true
  8225. },
  8226. {
  8227. "name": "cursor",
  8228. "in": "query",
  8229. "schema": {
  8230. "type": "string",
  8231. "allOf": [
  8232. {
  8233. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  8234. }
  8235. ]
  8236. },
  8237. "required": false
  8238. },
  8239. {
  8240. "name": "limit",
  8241. "in": "query",
  8242. "schema": {
  8243. "type": "string",
  8244. "allOf": [
  8245. {
  8246. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  8247. }
  8248. ]
  8249. },
  8250. "required": false
  8251. }
  8252. ],
  8253. "security": [],
  8254. "responses": {
  8255. "200": {
  8256. "description": "Success",
  8257. "content": {
  8258. "application/json": {
  8259. "schema": {
  8260. "type": "object",
  8261. "properties": {
  8262. "location": {
  8263. "$ref": "#/components/schemas/Location.Info"
  8264. },
  8265. "data": {
  8266. "type": "object",
  8267. "properties": {
  8268. "output": {
  8269. "type": "string"
  8270. },
  8271. "cursor": {
  8272. "type": "integer",
  8273. "allOf": [
  8274. {
  8275. "minimum": 0
  8276. }
  8277. ]
  8278. },
  8279. "size": {
  8280. "type": "integer",
  8281. "allOf": [
  8282. {
  8283. "minimum": 0
  8284. }
  8285. ]
  8286. },
  8287. "truncated": {
  8288. "type": "boolean"
  8289. }
  8290. },
  8291. "required": ["output", "cursor", "size", "truncated"],
  8292. "additionalProperties": false
  8293. }
  8294. },
  8295. "required": ["location", "data"],
  8296. "additionalProperties": false
  8297. }
  8298. }
  8299. }
  8300. },
  8301. "400": {
  8302. "description": "InvalidRequestError",
  8303. "content": {
  8304. "application/json": {
  8305. "schema": {
  8306. "$ref": "#/components/schemas/InvalidRequestError"
  8307. }
  8308. }
  8309. }
  8310. },
  8311. "401": {
  8312. "description": "UnauthorizedError",
  8313. "content": {
  8314. "application/json": {
  8315. "schema": {
  8316. "$ref": "#/components/schemas/UnauthorizedError"
  8317. }
  8318. }
  8319. }
  8320. },
  8321. "404": {
  8322. "description": "ShellNotFoundError",
  8323. "content": {
  8324. "application/json": {
  8325. "schema": {
  8326. "$ref": "#/components/schemas/ShellNotFoundError"
  8327. }
  8328. }
  8329. }
  8330. }
  8331. },
  8332. "description": "Page through captured combined output by absolute byte cursor.",
  8333. "summary": "Read shell output"
  8334. }
  8335. },
  8336. "/api/question/request": {
  8337. "get": {
  8338. "tags": ["session questions"],
  8339. "operationId": "v2.question.request.list",
  8340. "parameters": [
  8341. {
  8342. "name": "location",
  8343. "in": "query",
  8344. "schema": {
  8345. "anyOf": [
  8346. {
  8347. "type": "object",
  8348. "properties": {
  8349. "directory": {
  8350. "anyOf": [
  8351. {
  8352. "type": "string"
  8353. },
  8354. {
  8355. "type": "null"
  8356. }
  8357. ]
  8358. },
  8359. "workspace": {
  8360. "anyOf": [
  8361. {
  8362. "type": "string"
  8363. },
  8364. {
  8365. "type": "null"
  8366. }
  8367. ]
  8368. }
  8369. },
  8370. "additionalProperties": false
  8371. },
  8372. {
  8373. "type": "null"
  8374. }
  8375. ]
  8376. },
  8377. "required": false,
  8378. "style": "deepObject",
  8379. "explode": true
  8380. }
  8381. ],
  8382. "security": [],
  8383. "responses": {
  8384. "200": {
  8385. "description": "Success",
  8386. "content": {
  8387. "application/json": {
  8388. "schema": {
  8389. "type": "object",
  8390. "properties": {
  8391. "location": {
  8392. "$ref": "#/components/schemas/Location.Info"
  8393. },
  8394. "data": {
  8395. "type": "array",
  8396. "items": {
  8397. "$ref": "#/components/schemas/QuestionV2.Request"
  8398. }
  8399. }
  8400. },
  8401. "required": ["location", "data"],
  8402. "additionalProperties": false
  8403. }
  8404. }
  8405. }
  8406. },
  8407. "400": {
  8408. "description": "InvalidRequestError",
  8409. "content": {
  8410. "application/json": {
  8411. "schema": {
  8412. "$ref": "#/components/schemas/InvalidRequestError"
  8413. }
  8414. }
  8415. }
  8416. },
  8417. "401": {
  8418. "description": "UnauthorizedError",
  8419. "content": {
  8420. "application/json": {
  8421. "schema": {
  8422. "$ref": "#/components/schemas/UnauthorizedError"
  8423. }
  8424. }
  8425. }
  8426. }
  8427. },
  8428. "description": "Retrieve pending question requests for a location.",
  8429. "summary": "List pending question requests"
  8430. }
  8431. },
  8432. "/api/session/{sessionID}/question": {
  8433. "get": {
  8434. "tags": ["session questions"],
  8435. "operationId": "v2.session.question.list",
  8436. "parameters": [
  8437. {
  8438. "name": "sessionID",
  8439. "in": "path",
  8440. "schema": {
  8441. "type": "string",
  8442. "allOf": [
  8443. {
  8444. "pattern": "^ses"
  8445. }
  8446. ]
  8447. },
  8448. "required": true
  8449. }
  8450. ],
  8451. "security": [],
  8452. "responses": {
  8453. "200": {
  8454. "description": "Success",
  8455. "content": {
  8456. "application/json": {
  8457. "schema": {
  8458. "type": "object",
  8459. "properties": {
  8460. "data": {
  8461. "type": "array",
  8462. "items": {
  8463. "$ref": "#/components/schemas/QuestionV2.Request"
  8464. }
  8465. }
  8466. },
  8467. "required": ["data"],
  8468. "additionalProperties": false
  8469. }
  8470. }
  8471. }
  8472. },
  8473. "400": {
  8474. "description": "InvalidRequestError",
  8475. "content": {
  8476. "application/json": {
  8477. "schema": {
  8478. "$ref": "#/components/schemas/InvalidRequestError"
  8479. }
  8480. }
  8481. }
  8482. },
  8483. "401": {
  8484. "description": "UnauthorizedError",
  8485. "content": {
  8486. "application/json": {
  8487. "schema": {
  8488. "$ref": "#/components/schemas/UnauthorizedError"
  8489. }
  8490. }
  8491. }
  8492. },
  8493. "404": {
  8494. "description": "SessionNotFoundError",
  8495. "content": {
  8496. "application/json": {
  8497. "schema": {
  8498. "anyOf": [
  8499. {
  8500. "$ref": "#/components/schemas/SessionNotFoundError"
  8501. },
  8502. {
  8503. "$ref": "#/components/schemas/SessionNotFoundError"
  8504. }
  8505. ]
  8506. }
  8507. }
  8508. }
  8509. }
  8510. },
  8511. "description": "Retrieve pending question requests owned by a session.",
  8512. "summary": "List session question requests"
  8513. }
  8514. },
  8515. "/api/session/{sessionID}/question/{requestID}/reply": {
  8516. "post": {
  8517. "tags": ["session questions"],
  8518. "operationId": "v2.session.question.reply",
  8519. "parameters": [
  8520. {
  8521. "name": "sessionID",
  8522. "in": "path",
  8523. "schema": {
  8524. "type": "string",
  8525. "allOf": [
  8526. {
  8527. "pattern": "^ses"
  8528. }
  8529. ]
  8530. },
  8531. "required": true
  8532. },
  8533. {
  8534. "name": "requestID",
  8535. "in": "path",
  8536. "schema": {
  8537. "type": "string",
  8538. "allOf": [
  8539. {
  8540. "pattern": "^que"
  8541. }
  8542. ]
  8543. },
  8544. "required": true
  8545. }
  8546. ],
  8547. "security": [],
  8548. "responses": {
  8549. "204": {
  8550. "description": "<No Content>"
  8551. },
  8552. "400": {
  8553. "description": "InvalidRequestError",
  8554. "content": {
  8555. "application/json": {
  8556. "schema": {
  8557. "$ref": "#/components/schemas/InvalidRequestError"
  8558. }
  8559. }
  8560. }
  8561. },
  8562. "401": {
  8563. "description": "UnauthorizedError",
  8564. "content": {
  8565. "application/json": {
  8566. "schema": {
  8567. "$ref": "#/components/schemas/UnauthorizedError"
  8568. }
  8569. }
  8570. }
  8571. },
  8572. "404": {
  8573. "description": "SessionNotFoundError | QuestionNotFoundError",
  8574. "content": {
  8575. "application/json": {
  8576. "schema": {
  8577. "anyOf": [
  8578. {
  8579. "$ref": "#/components/schemas/QuestionNotFoundError"
  8580. },
  8581. {
  8582. "$ref": "#/components/schemas/SessionNotFoundError"
  8583. },
  8584. {
  8585. "$ref": "#/components/schemas/SessionNotFoundError"
  8586. }
  8587. ]
  8588. }
  8589. }
  8590. }
  8591. }
  8592. },
  8593. "description": "Answer a pending question request owned by a session.",
  8594. "summary": "Reply to pending question request",
  8595. "requestBody": {
  8596. "content": {
  8597. "application/json": {
  8598. "schema": {
  8599. "$ref": "#/components/schemas/QuestionV2.Reply"
  8600. }
  8601. }
  8602. },
  8603. "required": true
  8604. }
  8605. }
  8606. },
  8607. "/api/session/{sessionID}/question/{requestID}/reject": {
  8608. "post": {
  8609. "tags": ["session questions"],
  8610. "operationId": "v2.session.question.reject",
  8611. "parameters": [
  8612. {
  8613. "name": "sessionID",
  8614. "in": "path",
  8615. "schema": {
  8616. "type": "string",
  8617. "allOf": [
  8618. {
  8619. "pattern": "^ses"
  8620. }
  8621. ]
  8622. },
  8623. "required": true
  8624. },
  8625. {
  8626. "name": "requestID",
  8627. "in": "path",
  8628. "schema": {
  8629. "type": "string",
  8630. "allOf": [
  8631. {
  8632. "pattern": "^que"
  8633. }
  8634. ]
  8635. },
  8636. "required": true
  8637. }
  8638. ],
  8639. "security": [],
  8640. "responses": {
  8641. "204": {
  8642. "description": "<No Content>"
  8643. },
  8644. "400": {
  8645. "description": "InvalidRequestError",
  8646. "content": {
  8647. "application/json": {
  8648. "schema": {
  8649. "$ref": "#/components/schemas/InvalidRequestError"
  8650. }
  8651. }
  8652. }
  8653. },
  8654. "401": {
  8655. "description": "UnauthorizedError",
  8656. "content": {
  8657. "application/json": {
  8658. "schema": {
  8659. "$ref": "#/components/schemas/UnauthorizedError"
  8660. }
  8661. }
  8662. }
  8663. },
  8664. "404": {
  8665. "description": "SessionNotFoundError | QuestionNotFoundError",
  8666. "content": {
  8667. "application/json": {
  8668. "schema": {
  8669. "anyOf": [
  8670. {
  8671. "$ref": "#/components/schemas/QuestionNotFoundError"
  8672. },
  8673. {
  8674. "$ref": "#/components/schemas/SessionNotFoundError"
  8675. },
  8676. {
  8677. "$ref": "#/components/schemas/SessionNotFoundError"
  8678. }
  8679. ]
  8680. }
  8681. }
  8682. }
  8683. }
  8684. },
  8685. "description": "Reject a pending question request owned by a session.",
  8686. "summary": "Reject pending question request"
  8687. }
  8688. },
  8689. "/api/reference": {
  8690. "get": {
  8691. "tags": ["reference"],
  8692. "operationId": "v2.reference.list",
  8693. "parameters": [
  8694. {
  8695. "name": "location",
  8696. "in": "query",
  8697. "schema": {
  8698. "anyOf": [
  8699. {
  8700. "type": "object",
  8701. "properties": {
  8702. "directory": {
  8703. "anyOf": [
  8704. {
  8705. "type": "string"
  8706. },
  8707. {
  8708. "type": "null"
  8709. }
  8710. ]
  8711. },
  8712. "workspace": {
  8713. "anyOf": [
  8714. {
  8715. "type": "string"
  8716. },
  8717. {
  8718. "type": "null"
  8719. }
  8720. ]
  8721. }
  8722. },
  8723. "additionalProperties": false
  8724. },
  8725. {
  8726. "type": "null"
  8727. }
  8728. ]
  8729. },
  8730. "required": false,
  8731. "style": "deepObject",
  8732. "explode": true
  8733. }
  8734. ],
  8735. "security": [],
  8736. "responses": {
  8737. "200": {
  8738. "description": "Success",
  8739. "content": {
  8740. "application/json": {
  8741. "schema": {
  8742. "type": "object",
  8743. "properties": {
  8744. "location": {
  8745. "$ref": "#/components/schemas/Location.Info"
  8746. },
  8747. "data": {
  8748. "type": "array",
  8749. "items": {
  8750. "$ref": "#/components/schemas/Reference.Info"
  8751. }
  8752. }
  8753. },
  8754. "required": ["location", "data"],
  8755. "additionalProperties": false
  8756. }
  8757. }
  8758. }
  8759. },
  8760. "400": {
  8761. "description": "InvalidRequestError",
  8762. "content": {
  8763. "application/json": {
  8764. "schema": {
  8765. "$ref": "#/components/schemas/InvalidRequestError"
  8766. }
  8767. }
  8768. }
  8769. },
  8770. "401": {
  8771. "description": "UnauthorizedError",
  8772. "content": {
  8773. "application/json": {
  8774. "schema": {
  8775. "$ref": "#/components/schemas/UnauthorizedError"
  8776. }
  8777. }
  8778. }
  8779. }
  8780. },
  8781. "description": "List references available in the requested location.",
  8782. "summary": "List references"
  8783. }
  8784. },
  8785. "/experimental/project/{projectID}/copy": {
  8786. "post": {
  8787. "tags": ["projectCopy"],
  8788. "operationId": "v2.projectCopy.create",
  8789. "parameters": [
  8790. {
  8791. "name": "projectID",
  8792. "in": "path",
  8793. "schema": {
  8794. "type": "string"
  8795. },
  8796. "required": true
  8797. },
  8798. {
  8799. "name": "location",
  8800. "in": "query",
  8801. "schema": {
  8802. "anyOf": [
  8803. {
  8804. "type": "object",
  8805. "properties": {
  8806. "directory": {
  8807. "anyOf": [
  8808. {
  8809. "type": "string"
  8810. },
  8811. {
  8812. "type": "null"
  8813. }
  8814. ]
  8815. },
  8816. "workspace": {
  8817. "anyOf": [
  8818. {
  8819. "type": "string"
  8820. },
  8821. {
  8822. "type": "null"
  8823. }
  8824. ]
  8825. }
  8826. },
  8827. "additionalProperties": false
  8828. },
  8829. {
  8830. "type": "null"
  8831. }
  8832. ]
  8833. },
  8834. "required": false,
  8835. "style": "deepObject",
  8836. "explode": true
  8837. }
  8838. ],
  8839. "security": [],
  8840. "responses": {
  8841. "200": {
  8842. "description": "ProjectCopy.Copy",
  8843. "content": {
  8844. "application/json": {
  8845. "schema": {
  8846. "$ref": "#/components/schemas/ProjectCopy.Copy"
  8847. }
  8848. }
  8849. }
  8850. },
  8851. "400": {
  8852. "description": "ProjectCopyError | InvalidRequestError",
  8853. "content": {
  8854. "application/json": {
  8855. "schema": {
  8856. "anyOf": [
  8857. {
  8858. "$ref": "#/components/schemas/ProjectCopyError"
  8859. },
  8860. {
  8861. "$ref": "#/components/schemas/InvalidRequestError"
  8862. }
  8863. ]
  8864. }
  8865. }
  8866. }
  8867. },
  8868. "401": {
  8869. "description": "UnauthorizedError",
  8870. "content": {
  8871. "application/json": {
  8872. "schema": {
  8873. "$ref": "#/components/schemas/UnauthorizedError"
  8874. }
  8875. }
  8876. }
  8877. }
  8878. },
  8879. "requestBody": {
  8880. "content": {
  8881. "application/json": {
  8882. "schema": {
  8883. "type": "object",
  8884. "properties": {
  8885. "strategy": {
  8886. "type": "string"
  8887. },
  8888. "directory": {
  8889. "type": "string"
  8890. },
  8891. "name": {
  8892. "type": "string"
  8893. }
  8894. },
  8895. "required": ["strategy", "directory"],
  8896. "additionalProperties": false
  8897. }
  8898. }
  8899. },
  8900. "required": true
  8901. }
  8902. },
  8903. "delete": {
  8904. "tags": ["projectCopy"],
  8905. "operationId": "v2.projectCopy.remove",
  8906. "parameters": [
  8907. {
  8908. "name": "projectID",
  8909. "in": "path",
  8910. "schema": {
  8911. "type": "string"
  8912. },
  8913. "required": true
  8914. },
  8915. {
  8916. "name": "location",
  8917. "in": "query",
  8918. "schema": {
  8919. "anyOf": [
  8920. {
  8921. "type": "object",
  8922. "properties": {
  8923. "directory": {
  8924. "anyOf": [
  8925. {
  8926. "type": "string"
  8927. },
  8928. {
  8929. "type": "null"
  8930. }
  8931. ]
  8932. },
  8933. "workspace": {
  8934. "anyOf": [
  8935. {
  8936. "type": "string"
  8937. },
  8938. {
  8939. "type": "null"
  8940. }
  8941. ]
  8942. }
  8943. },
  8944. "additionalProperties": false
  8945. },
  8946. {
  8947. "type": "null"
  8948. }
  8949. ]
  8950. },
  8951. "required": false,
  8952. "style": "deepObject",
  8953. "explode": true
  8954. }
  8955. ],
  8956. "security": [],
  8957. "responses": {
  8958. "204": {
  8959. "description": "<No Content>"
  8960. },
  8961. "400": {
  8962. "description": "ProjectCopyError | InvalidRequestError",
  8963. "content": {
  8964. "application/json": {
  8965. "schema": {
  8966. "anyOf": [
  8967. {
  8968. "$ref": "#/components/schemas/ProjectCopyError"
  8969. },
  8970. {
  8971. "$ref": "#/components/schemas/InvalidRequestError"
  8972. }
  8973. ]
  8974. }
  8975. }
  8976. }
  8977. },
  8978. "401": {
  8979. "description": "UnauthorizedError",
  8980. "content": {
  8981. "application/json": {
  8982. "schema": {
  8983. "$ref": "#/components/schemas/UnauthorizedError"
  8984. }
  8985. }
  8986. }
  8987. }
  8988. },
  8989. "requestBody": {
  8990. "content": {
  8991. "application/json": {
  8992. "schema": {
  8993. "type": "object",
  8994. "properties": {
  8995. "directory": {
  8996. "type": "string"
  8997. },
  8998. "force": {
  8999. "type": "boolean"
  9000. }
  9001. },
  9002. "required": ["directory", "force"],
  9003. "additionalProperties": false
  9004. }
  9005. }
  9006. },
  9007. "required": true
  9008. }
  9009. }
  9010. },
  9011. "/experimental/project/{projectID}/copy/refresh": {
  9012. "post": {
  9013. "tags": ["projectCopy"],
  9014. "operationId": "v2.projectCopy.refresh",
  9015. "parameters": [
  9016. {
  9017. "name": "projectID",
  9018. "in": "path",
  9019. "schema": {
  9020. "type": "string"
  9021. },
  9022. "required": true
  9023. },
  9024. {
  9025. "name": "location",
  9026. "in": "query",
  9027. "schema": {
  9028. "anyOf": [
  9029. {
  9030. "type": "object",
  9031. "properties": {
  9032. "directory": {
  9033. "anyOf": [
  9034. {
  9035. "type": "string"
  9036. },
  9037. {
  9038. "type": "null"
  9039. }
  9040. ]
  9041. },
  9042. "workspace": {
  9043. "anyOf": [
  9044. {
  9045. "type": "string"
  9046. },
  9047. {
  9048. "type": "null"
  9049. }
  9050. ]
  9051. }
  9052. },
  9053. "additionalProperties": false
  9054. },
  9055. {
  9056. "type": "null"
  9057. }
  9058. ]
  9059. },
  9060. "required": false,
  9061. "style": "deepObject",
  9062. "explode": true
  9063. }
  9064. ],
  9065. "security": [],
  9066. "responses": {
  9067. "204": {
  9068. "description": "<No Content>"
  9069. },
  9070. "400": {
  9071. "description": "ProjectCopyError | InvalidRequestError",
  9072. "content": {
  9073. "application/json": {
  9074. "schema": {
  9075. "anyOf": [
  9076. {
  9077. "$ref": "#/components/schemas/ProjectCopyError"
  9078. },
  9079. {
  9080. "$ref": "#/components/schemas/InvalidRequestError"
  9081. }
  9082. ]
  9083. }
  9084. }
  9085. }
  9086. },
  9087. "401": {
  9088. "description": "UnauthorizedError",
  9089. "content": {
  9090. "application/json": {
  9091. "schema": {
  9092. "$ref": "#/components/schemas/UnauthorizedError"
  9093. }
  9094. }
  9095. }
  9096. }
  9097. }
  9098. }
  9099. },
  9100. "/api/vcs/status": {
  9101. "get": {
  9102. "tags": ["vcs"],
  9103. "operationId": "v2.vcs.status",
  9104. "parameters": [
  9105. {
  9106. "name": "location",
  9107. "in": "query",
  9108. "schema": {
  9109. "anyOf": [
  9110. {
  9111. "type": "object",
  9112. "properties": {
  9113. "directory": {
  9114. "anyOf": [
  9115. {
  9116. "type": "string"
  9117. },
  9118. {
  9119. "type": "null"
  9120. }
  9121. ]
  9122. },
  9123. "workspace": {
  9124. "anyOf": [
  9125. {
  9126. "type": "string"
  9127. },
  9128. {
  9129. "type": "null"
  9130. }
  9131. ]
  9132. }
  9133. },
  9134. "additionalProperties": false
  9135. },
  9136. {
  9137. "type": "null"
  9138. }
  9139. ]
  9140. },
  9141. "required": false,
  9142. "style": "deepObject",
  9143. "explode": true
  9144. }
  9145. ],
  9146. "security": [],
  9147. "responses": {
  9148. "200": {
  9149. "description": "Success",
  9150. "content": {
  9151. "application/json": {
  9152. "schema": {
  9153. "type": "object",
  9154. "properties": {
  9155. "location": {
  9156. "$ref": "#/components/schemas/Location.Info"
  9157. },
  9158. "data": {
  9159. "type": "array",
  9160. "items": {
  9161. "$ref": "#/components/schemas/Vcs.FileStatus"
  9162. }
  9163. }
  9164. },
  9165. "required": ["location", "data"],
  9166. "additionalProperties": false
  9167. }
  9168. }
  9169. }
  9170. },
  9171. "400": {
  9172. "description": "InvalidRequestError",
  9173. "content": {
  9174. "application/json": {
  9175. "schema": {
  9176. "$ref": "#/components/schemas/InvalidRequestError"
  9177. }
  9178. }
  9179. }
  9180. },
  9181. "401": {
  9182. "description": "UnauthorizedError",
  9183. "content": {
  9184. "application/json": {
  9185. "schema": {
  9186. "$ref": "#/components/schemas/UnauthorizedError"
  9187. }
  9188. }
  9189. }
  9190. }
  9191. },
  9192. "description": "List uncommitted working-copy changes relative to the requested location.",
  9193. "summary": "VCS status"
  9194. }
  9195. },
  9196. "/api/vcs/diff": {
  9197. "get": {
  9198. "tags": ["vcs"],
  9199. "operationId": "v2.vcs.diff",
  9200. "parameters": [
  9201. {
  9202. "name": "location",
  9203. "in": "query",
  9204. "schema": {
  9205. "anyOf": [
  9206. {
  9207. "type": "object",
  9208. "properties": {
  9209. "directory": {
  9210. "anyOf": [
  9211. {
  9212. "type": "string"
  9213. },
  9214. {
  9215. "type": "null"
  9216. }
  9217. ]
  9218. },
  9219. "workspace": {
  9220. "anyOf": [
  9221. {
  9222. "type": "string"
  9223. },
  9224. {
  9225. "type": "null"
  9226. }
  9227. ]
  9228. }
  9229. },
  9230. "additionalProperties": false
  9231. },
  9232. {
  9233. "type": "null"
  9234. }
  9235. ]
  9236. },
  9237. "required": false,
  9238. "style": "deepObject",
  9239. "explode": true
  9240. },
  9241. {
  9242. "name": "mode",
  9243. "in": "query",
  9244. "schema": {
  9245. "$ref": "#/components/schemas/Vcs.Mode"
  9246. },
  9247. "required": true
  9248. },
  9249. {
  9250. "name": "context",
  9251. "in": "query",
  9252. "schema": {
  9253. "anyOf": [
  9254. {
  9255. "type": "string"
  9256. },
  9257. {
  9258. "type": "null"
  9259. }
  9260. ]
  9261. },
  9262. "required": false
  9263. }
  9264. ],
  9265. "security": [],
  9266. "responses": {
  9267. "200": {
  9268. "description": "Success",
  9269. "content": {
  9270. "application/json": {
  9271. "schema": {
  9272. "type": "object",
  9273. "properties": {
  9274. "location": {
  9275. "$ref": "#/components/schemas/Location.Info"
  9276. },
  9277. "data": {
  9278. "type": "array",
  9279. "items": {
  9280. "$ref": "#/components/schemas/SnapshotFileDiff"
  9281. }
  9282. }
  9283. },
  9284. "required": ["location", "data"],
  9285. "additionalProperties": false
  9286. }
  9287. }
  9288. }
  9289. },
  9290. "400": {
  9291. "description": "InvalidRequestError",
  9292. "content": {
  9293. "application/json": {
  9294. "schema": {
  9295. "$ref": "#/components/schemas/InvalidRequestError"
  9296. }
  9297. }
  9298. }
  9299. },
  9300. "401": {
  9301. "description": "UnauthorizedError",
  9302. "content": {
  9303. "application/json": {
  9304. "schema": {
  9305. "$ref": "#/components/schemas/UnauthorizedError"
  9306. }
  9307. }
  9308. }
  9309. }
  9310. },
  9311. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  9312. "summary": "VCS diff"
  9313. }
  9314. }
  9315. },
  9316. "components": {
  9317. "schemas": {
  9318. "UnauthorizedError": {
  9319. "type": "object",
  9320. "properties": {
  9321. "_tag": {
  9322. "type": "string",
  9323. "enum": ["UnauthorizedError"]
  9324. },
  9325. "message": {
  9326. "type": "string"
  9327. }
  9328. },
  9329. "required": ["_tag", "message"],
  9330. "additionalProperties": false
  9331. },
  9332. "InvalidRequestError": {
  9333. "type": "object",
  9334. "properties": {
  9335. "_tag": {
  9336. "type": "string",
  9337. "enum": ["InvalidRequestError"]
  9338. },
  9339. "message": {
  9340. "type": "string"
  9341. },
  9342. "kind": {
  9343. "anyOf": [
  9344. {
  9345. "type": "string"
  9346. },
  9347. {
  9348. "type": "null"
  9349. }
  9350. ]
  9351. },
  9352. "field": {
  9353. "anyOf": [
  9354. {
  9355. "type": "string"
  9356. },
  9357. {
  9358. "type": "null"
  9359. }
  9360. ]
  9361. }
  9362. },
  9363. "required": ["_tag", "message"],
  9364. "additionalProperties": false
  9365. },
  9366. "Location.Info": {
  9367. "type": "object",
  9368. "properties": {
  9369. "directory": {
  9370. "type": "string"
  9371. },
  9372. "workspaceID": {
  9373. "type": "string",
  9374. "allOf": [
  9375. {
  9376. "pattern": "^wrk"
  9377. }
  9378. ]
  9379. },
  9380. "project": {
  9381. "type": "object",
  9382. "properties": {
  9383. "id": {
  9384. "type": "string"
  9385. },
  9386. "directory": {
  9387. "type": "string"
  9388. }
  9389. },
  9390. "required": ["id", "directory"],
  9391. "additionalProperties": false
  9392. }
  9393. },
  9394. "required": ["directory", "project"],
  9395. "additionalProperties": false
  9396. },
  9397. "Model.Ref": {
  9398. "type": "object",
  9399. "properties": {
  9400. "id": {
  9401. "type": "string"
  9402. },
  9403. "providerID": {
  9404. "type": "string"
  9405. },
  9406. "variant": {
  9407. "type": "string"
  9408. }
  9409. },
  9410. "required": ["id", "providerID"],
  9411. "additionalProperties": false
  9412. },
  9413. "Provider.Settings": {
  9414. "type": "object"
  9415. },
  9416. "Provider.Request": {
  9417. "type": "object",
  9418. "properties": {
  9419. "settings": {
  9420. "$ref": "#/components/schemas/Provider.Settings"
  9421. },
  9422. "headers": {
  9423. "type": "object",
  9424. "additionalProperties": {
  9425. "type": "string"
  9426. }
  9427. },
  9428. "body": {
  9429. "type": "object"
  9430. }
  9431. },
  9432. "required": ["settings", "headers", "body"],
  9433. "additionalProperties": false
  9434. },
  9435. "Agent.Color": {
  9436. "anyOf": [
  9437. {
  9438. "type": "string",
  9439. "allOf": [
  9440. {
  9441. "pattern": "^#[0-9a-fA-F]{6}$"
  9442. }
  9443. ]
  9444. },
  9445. {
  9446. "type": "string",
  9447. "enum": ["primary", "secondary", "accent", "success", "warning", "error", "info"]
  9448. }
  9449. ]
  9450. },
  9451. "PermissionV2.Effect": {
  9452. "type": "string",
  9453. "enum": ["allow", "deny", "ask"]
  9454. },
  9455. "PermissionV2.Rule": {
  9456. "type": "object",
  9457. "properties": {
  9458. "action": {
  9459. "type": "string"
  9460. },
  9461. "resource": {
  9462. "type": "string"
  9463. },
  9464. "effect": {
  9465. "$ref": "#/components/schemas/PermissionV2.Effect"
  9466. }
  9467. },
  9468. "required": ["action", "resource", "effect"],
  9469. "additionalProperties": false
  9470. },
  9471. "PermissionV2.Ruleset": {
  9472. "type": "array",
  9473. "items": {
  9474. "$ref": "#/components/schemas/PermissionV2.Rule"
  9475. }
  9476. },
  9477. "AgentV2.Info": {
  9478. "type": "object",
  9479. "properties": {
  9480. "id": {
  9481. "type": "string"
  9482. },
  9483. "model": {
  9484. "$ref": "#/components/schemas/Model.Ref"
  9485. },
  9486. "request": {
  9487. "$ref": "#/components/schemas/Provider.Request"
  9488. },
  9489. "system": {
  9490. "type": "string"
  9491. },
  9492. "description": {
  9493. "type": "string"
  9494. },
  9495. "mode": {
  9496. "type": "string",
  9497. "enum": ["subagent", "primary", "all"]
  9498. },
  9499. "hidden": {
  9500. "type": "boolean"
  9501. },
  9502. "color": {
  9503. "$ref": "#/components/schemas/Agent.Color"
  9504. },
  9505. "steps": {
  9506. "type": "integer",
  9507. "allOf": [
  9508. {
  9509. "exclusiveMinimum": 0
  9510. }
  9511. ]
  9512. },
  9513. "permissions": {
  9514. "$ref": "#/components/schemas/PermissionV2.Ruleset"
  9515. }
  9516. },
  9517. "required": ["id", "request", "mode", "hidden", "permissions"],
  9518. "additionalProperties": false
  9519. },
  9520. "Plugin.Info": {
  9521. "type": "object",
  9522. "properties": {
  9523. "id": {
  9524. "type": "string"
  9525. }
  9526. },
  9527. "required": ["id"],
  9528. "additionalProperties": false
  9529. },
  9530. "Location.Ref": {
  9531. "type": "object",
  9532. "properties": {
  9533. "directory": {
  9534. "type": "string"
  9535. },
  9536. "workspaceID": {
  9537. "type": "string",
  9538. "allOf": [
  9539. {
  9540. "pattern": "^wrk"
  9541. }
  9542. ]
  9543. }
  9544. },
  9545. "required": ["directory"],
  9546. "additionalProperties": false
  9547. },
  9548. "File.Diff": {
  9549. "type": "object",
  9550. "properties": {
  9551. "path": {
  9552. "type": "string"
  9553. },
  9554. "status": {
  9555. "type": "string",
  9556. "enum": ["added", "modified", "deleted"]
  9557. },
  9558. "additions": {
  9559. "type": "integer",
  9560. "allOf": [
  9561. {
  9562. "minimum": 0
  9563. }
  9564. ]
  9565. },
  9566. "deletions": {
  9567. "type": "integer",
  9568. "allOf": [
  9569. {
  9570. "minimum": 0
  9571. }
  9572. ]
  9573. },
  9574. "patch": {
  9575. "type": "string"
  9576. }
  9577. },
  9578. "required": ["path", "status", "additions", "deletions", "patch"],
  9579. "additionalProperties": false
  9580. },
  9581. "Revert.State": {
  9582. "type": "object",
  9583. "properties": {
  9584. "messageID": {
  9585. "type": "string",
  9586. "allOf": [
  9587. {
  9588. "pattern": "^msg_"
  9589. }
  9590. ]
  9591. },
  9592. "partID": {
  9593. "type": "string"
  9594. },
  9595. "snapshot": {
  9596. "type": "string"
  9597. },
  9598. "diff": {
  9599. "type": "string"
  9600. },
  9601. "files": {
  9602. "type": "array",
  9603. "items": {
  9604. "$ref": "#/components/schemas/File.Diff"
  9605. }
  9606. }
  9607. },
  9608. "required": ["messageID"],
  9609. "additionalProperties": false
  9610. },
  9611. "SessionV2.Info": {
  9612. "type": "object",
  9613. "properties": {
  9614. "id": {
  9615. "type": "string",
  9616. "allOf": [
  9617. {
  9618. "pattern": "^ses"
  9619. }
  9620. ]
  9621. },
  9622. "parentID": {
  9623. "type": "string",
  9624. "allOf": [
  9625. {
  9626. "pattern": "^ses"
  9627. }
  9628. ]
  9629. },
  9630. "projectID": {
  9631. "type": "string"
  9632. },
  9633. "agent": {
  9634. "type": "string"
  9635. },
  9636. "model": {
  9637. "$ref": "#/components/schemas/Model.Ref"
  9638. },
  9639. "cost": {
  9640. "type": "number"
  9641. },
  9642. "tokens": {
  9643. "type": "object",
  9644. "properties": {
  9645. "input": {
  9646. "type": "number"
  9647. },
  9648. "output": {
  9649. "type": "number"
  9650. },
  9651. "reasoning": {
  9652. "type": "number"
  9653. },
  9654. "cache": {
  9655. "type": "object",
  9656. "properties": {
  9657. "read": {
  9658. "type": "number"
  9659. },
  9660. "write": {
  9661. "type": "number"
  9662. }
  9663. },
  9664. "required": ["read", "write"],
  9665. "additionalProperties": false
  9666. }
  9667. },
  9668. "required": ["input", "output", "reasoning", "cache"],
  9669. "additionalProperties": false
  9670. },
  9671. "time": {
  9672. "type": "object",
  9673. "properties": {
  9674. "created": {
  9675. "type": "number"
  9676. },
  9677. "updated": {
  9678. "type": "number"
  9679. },
  9680. "archived": {
  9681. "type": "number"
  9682. }
  9683. },
  9684. "required": ["created", "updated"],
  9685. "additionalProperties": false
  9686. },
  9687. "title": {
  9688. "type": "string"
  9689. },
  9690. "location": {
  9691. "$ref": "#/components/schemas/Location.Ref"
  9692. },
  9693. "subpath": {
  9694. "type": "string"
  9695. },
  9696. "revert": {
  9697. "$ref": "#/components/schemas/Revert.State"
  9698. }
  9699. },
  9700. "required": ["id", "projectID", "cost", "tokens", "time", "title", "location"],
  9701. "additionalProperties": false
  9702. },
  9703. "SessionWatermarks": {
  9704. "type": "object",
  9705. "patternProperties": {
  9706. "^ses": {
  9707. "type": "integer",
  9708. "allOf": [
  9709. {
  9710. "minimum": 0
  9711. }
  9712. ]
  9713. }
  9714. },
  9715. "description": "Durable log seq each session's snapshot was computed at. Attach a live log read after the watermark to compose fetch and stream gap-free; apply a snapshot only where its watermark is at or beyond already-applied events. Sessions without durable events are absent."
  9716. },
  9717. "SessionsResponse": {
  9718. "type": "object",
  9719. "properties": {
  9720. "data": {
  9721. "type": "array",
  9722. "items": {
  9723. "$ref": "#/components/schemas/SessionV2.Info"
  9724. }
  9725. },
  9726. "watermarks": {
  9727. "$ref": "#/components/schemas/SessionWatermarks"
  9728. },
  9729. "cursor": {
  9730. "type": "object",
  9731. "properties": {
  9732. "previous": {
  9733. "anyOf": [
  9734. {
  9735. "type": "string"
  9736. },
  9737. {
  9738. "type": "null"
  9739. }
  9740. ]
  9741. },
  9742. "next": {
  9743. "anyOf": [
  9744. {
  9745. "type": "string"
  9746. },
  9747. {
  9748. "type": "null"
  9749. }
  9750. ]
  9751. }
  9752. },
  9753. "additionalProperties": false
  9754. }
  9755. },
  9756. "required": ["data", "watermarks", "cursor"],
  9757. "additionalProperties": false
  9758. },
  9759. "InvalidCursorError": {
  9760. "type": "object",
  9761. "properties": {
  9762. "_tag": {
  9763. "type": "string",
  9764. "enum": ["InvalidCursorError"]
  9765. },
  9766. "message": {
  9767. "type": "string"
  9768. }
  9769. },
  9770. "required": ["_tag", "message"],
  9771. "additionalProperties": false
  9772. },
  9773. "InvalidRequestError1": {
  9774. "type": "object",
  9775. "properties": {
  9776. "_tag": {
  9777. "type": "string",
  9778. "enum": ["InvalidRequestError"]
  9779. },
  9780. "message": {
  9781. "type": "string"
  9782. },
  9783. "kind": {
  9784. "anyOf": [
  9785. {
  9786. "type": "string"
  9787. },
  9788. {
  9789. "type": "null"
  9790. }
  9791. ]
  9792. },
  9793. "field": {
  9794. "anyOf": [
  9795. {
  9796. "type": "string"
  9797. },
  9798. {
  9799. "type": "null"
  9800. }
  9801. ]
  9802. }
  9803. },
  9804. "required": ["_tag", "message"],
  9805. "additionalProperties": false
  9806. },
  9807. "SessionActive": {
  9808. "type": "object",
  9809. "properties": {
  9810. "type": {
  9811. "type": "string",
  9812. "enum": ["running"]
  9813. }
  9814. },
  9815. "required": ["type"],
  9816. "additionalProperties": false
  9817. },
  9818. "SessionNotFoundError": {
  9819. "type": "object",
  9820. "properties": {
  9821. "_tag": {
  9822. "type": "string",
  9823. "enum": ["SessionNotFoundError"]
  9824. },
  9825. "sessionID": {
  9826. "type": "string"
  9827. },
  9828. "message": {
  9829. "type": "string"
  9830. }
  9831. },
  9832. "required": ["_tag", "sessionID", "message"],
  9833. "additionalProperties": false
  9834. },
  9835. "MessageNotFoundError": {
  9836. "type": "object",
  9837. "properties": {
  9838. "_tag": {
  9839. "type": "string",
  9840. "enum": ["MessageNotFoundError"]
  9841. },
  9842. "sessionID": {
  9843. "type": "string"
  9844. },
  9845. "messageID": {
  9846. "type": "string"
  9847. },
  9848. "message": {
  9849. "type": "string"
  9850. }
  9851. },
  9852. "required": ["_tag", "sessionID", "messageID", "message"],
  9853. "additionalProperties": false
  9854. },
  9855. "Prompt.Source": {
  9856. "type": "object",
  9857. "properties": {
  9858. "start": {
  9859. "type": "number"
  9860. },
  9861. "end": {
  9862. "type": "number"
  9863. },
  9864. "text": {
  9865. "type": "string"
  9866. }
  9867. },
  9868. "required": ["start", "end", "text"],
  9869. "additionalProperties": false
  9870. },
  9871. "PromptInput.FileAttachment": {
  9872. "type": "object",
  9873. "properties": {
  9874. "uri": {
  9875. "type": "string"
  9876. },
  9877. "name": {
  9878. "type": "string"
  9879. },
  9880. "description": {
  9881. "type": "string"
  9882. },
  9883. "source": {
  9884. "$ref": "#/components/schemas/Prompt.Source"
  9885. }
  9886. },
  9887. "required": ["uri"],
  9888. "additionalProperties": false
  9889. },
  9890. "Prompt.AgentAttachment": {
  9891. "type": "object",
  9892. "properties": {
  9893. "name": {
  9894. "type": "string"
  9895. },
  9896. "source": {
  9897. "$ref": "#/components/schemas/Prompt.Source"
  9898. }
  9899. },
  9900. "required": ["name"],
  9901. "additionalProperties": false
  9902. },
  9903. "PromptInput": {
  9904. "type": "object",
  9905. "properties": {
  9906. "text": {
  9907. "type": "string"
  9908. },
  9909. "files": {
  9910. "type": "array",
  9911. "items": {
  9912. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  9913. }
  9914. },
  9915. "agents": {
  9916. "type": "array",
  9917. "items": {
  9918. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  9919. }
  9920. }
  9921. },
  9922. "required": ["text"],
  9923. "additionalProperties": false
  9924. },
  9925. "Prompt.FileAttachment": {
  9926. "type": "object",
  9927. "properties": {
  9928. "uri": {
  9929. "type": "string"
  9930. },
  9931. "mime": {
  9932. "type": "string"
  9933. },
  9934. "name": {
  9935. "type": "string"
  9936. },
  9937. "description": {
  9938. "type": "string"
  9939. },
  9940. "source": {
  9941. "$ref": "#/components/schemas/Prompt.Source"
  9942. }
  9943. },
  9944. "required": ["uri", "mime"],
  9945. "additionalProperties": false
  9946. },
  9947. "Prompt": {
  9948. "type": "object",
  9949. "properties": {
  9950. "text": {
  9951. "type": "string"
  9952. },
  9953. "files": {
  9954. "type": "array",
  9955. "items": {
  9956. "$ref": "#/components/schemas/Prompt.FileAttachment"
  9957. }
  9958. },
  9959. "agents": {
  9960. "type": "array",
  9961. "items": {
  9962. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  9963. }
  9964. }
  9965. },
  9966. "required": ["text"],
  9967. "additionalProperties": false
  9968. },
  9969. "SessionInput.Admitted": {
  9970. "type": "object",
  9971. "properties": {
  9972. "admittedSeq": {
  9973. "type": "integer",
  9974. "allOf": [
  9975. {
  9976. "minimum": 0
  9977. }
  9978. ]
  9979. },
  9980. "id": {
  9981. "type": "string",
  9982. "allOf": [
  9983. {
  9984. "pattern": "^msg_"
  9985. }
  9986. ]
  9987. },
  9988. "sessionID": {
  9989. "type": "string",
  9990. "allOf": [
  9991. {
  9992. "pattern": "^ses"
  9993. }
  9994. ]
  9995. },
  9996. "prompt": {
  9997. "$ref": "#/components/schemas/Prompt"
  9998. },
  9999. "delivery": {
  10000. "type": "string",
  10001. "enum": ["steer", "queue"]
  10002. },
  10003. "timeCreated": {
  10004. "type": "number"
  10005. },
  10006. "promotedSeq": {
  10007. "type": "integer",
  10008. "allOf": [
  10009. {
  10010. "minimum": 0
  10011. }
  10012. ]
  10013. }
  10014. },
  10015. "required": ["admittedSeq", "id", "sessionID", "prompt", "delivery", "timeCreated"],
  10016. "additionalProperties": false
  10017. },
  10018. "ConflictError": {
  10019. "type": "object",
  10020. "properties": {
  10021. "_tag": {
  10022. "type": "string",
  10023. "enum": ["ConflictError"]
  10024. },
  10025. "message": {
  10026. "type": "string"
  10027. },
  10028. "resource": {
  10029. "anyOf": [
  10030. {
  10031. "type": "string"
  10032. },
  10033. {
  10034. "type": "null"
  10035. }
  10036. ]
  10037. }
  10038. },
  10039. "required": ["_tag", "message"],
  10040. "additionalProperties": false
  10041. },
  10042. "CommandNotFoundError": {
  10043. "type": "object",
  10044. "properties": {
  10045. "_tag": {
  10046. "type": "string",
  10047. "enum": ["CommandNotFoundError"]
  10048. },
  10049. "command": {
  10050. "type": "string"
  10051. },
  10052. "message": {
  10053. "type": "string"
  10054. }
  10055. },
  10056. "required": ["_tag", "command", "message"],
  10057. "additionalProperties": false
  10058. },
  10059. "CommandEvaluationError": {
  10060. "type": "object",
  10061. "properties": {
  10062. "_tag": {
  10063. "type": "string",
  10064. "enum": ["CommandEvaluationError"]
  10065. },
  10066. "command": {
  10067. "type": "string"
  10068. },
  10069. "message": {
  10070. "type": "string"
  10071. }
  10072. },
  10073. "required": ["_tag", "command", "message"],
  10074. "additionalProperties": false
  10075. },
  10076. "SkillNotFoundError": {
  10077. "type": "object",
  10078. "properties": {
  10079. "_tag": {
  10080. "type": "string",
  10081. "enum": ["SkillNotFoundError"]
  10082. },
  10083. "skill": {
  10084. "type": "string"
  10085. },
  10086. "message": {
  10087. "type": "string"
  10088. }
  10089. },
  10090. "required": ["_tag", "skill", "message"],
  10091. "additionalProperties": false
  10092. },
  10093. "SessionBusyError": {
  10094. "type": "object",
  10095. "properties": {
  10096. "_tag": {
  10097. "type": "string",
  10098. "enum": ["SessionBusyError"]
  10099. },
  10100. "sessionID": {
  10101. "type": "string"
  10102. },
  10103. "message": {
  10104. "type": "string"
  10105. }
  10106. },
  10107. "required": ["_tag", "sessionID", "message"],
  10108. "additionalProperties": false
  10109. },
  10110. "ServiceUnavailableError": {
  10111. "type": "object",
  10112. "properties": {
  10113. "_tag": {
  10114. "type": "string",
  10115. "enum": ["ServiceUnavailableError"]
  10116. },
  10117. "message": {
  10118. "type": "string"
  10119. },
  10120. "service": {
  10121. "anyOf": [
  10122. {
  10123. "type": "string"
  10124. },
  10125. {
  10126. "type": "null"
  10127. }
  10128. ]
  10129. }
  10130. },
  10131. "required": ["_tag", "message"],
  10132. "additionalProperties": false
  10133. },
  10134. "UnknownError": {
  10135. "type": "object",
  10136. "properties": {
  10137. "_tag": {
  10138. "type": "string",
  10139. "enum": ["UnknownError"]
  10140. },
  10141. "message": {
  10142. "type": "string"
  10143. },
  10144. "ref": {
  10145. "anyOf": [
  10146. {
  10147. "type": "string"
  10148. },
  10149. {
  10150. "type": "null"
  10151. }
  10152. ]
  10153. }
  10154. },
  10155. "required": ["_tag", "message"],
  10156. "additionalProperties": false
  10157. },
  10158. "Session.Message.AgentSwitched": {
  10159. "type": "object",
  10160. "properties": {
  10161. "id": {
  10162. "type": "string",
  10163. "allOf": [
  10164. {
  10165. "pattern": "^msg_"
  10166. }
  10167. ]
  10168. },
  10169. "metadata": {
  10170. "type": "object"
  10171. },
  10172. "time": {
  10173. "type": "object",
  10174. "properties": {
  10175. "created": {
  10176. "type": "number"
  10177. }
  10178. },
  10179. "required": ["created"],
  10180. "additionalProperties": false
  10181. },
  10182. "type": {
  10183. "type": "string",
  10184. "enum": ["agent-switched"]
  10185. },
  10186. "agent": {
  10187. "type": "string"
  10188. }
  10189. },
  10190. "required": ["id", "time", "type", "agent"],
  10191. "additionalProperties": false
  10192. },
  10193. "Session.Message.ModelSwitched": {
  10194. "type": "object",
  10195. "properties": {
  10196. "id": {
  10197. "type": "string",
  10198. "allOf": [
  10199. {
  10200. "pattern": "^msg_"
  10201. }
  10202. ]
  10203. },
  10204. "metadata": {
  10205. "type": "object"
  10206. },
  10207. "time": {
  10208. "type": "object",
  10209. "properties": {
  10210. "created": {
  10211. "type": "number"
  10212. }
  10213. },
  10214. "required": ["created"],
  10215. "additionalProperties": false
  10216. },
  10217. "type": {
  10218. "type": "string",
  10219. "enum": ["model-switched"]
  10220. },
  10221. "model": {
  10222. "$ref": "#/components/schemas/Model.Ref"
  10223. }
  10224. },
  10225. "required": ["id", "time", "type", "model"],
  10226. "additionalProperties": false
  10227. },
  10228. "Session.Message.User": {
  10229. "type": "object",
  10230. "properties": {
  10231. "id": {
  10232. "type": "string",
  10233. "allOf": [
  10234. {
  10235. "pattern": "^msg_"
  10236. }
  10237. ]
  10238. },
  10239. "metadata": {
  10240. "type": "object"
  10241. },
  10242. "time": {
  10243. "type": "object",
  10244. "properties": {
  10245. "created": {
  10246. "type": "number"
  10247. }
  10248. },
  10249. "required": ["created"],
  10250. "additionalProperties": false
  10251. },
  10252. "text": {
  10253. "type": "string"
  10254. },
  10255. "files": {
  10256. "type": "array",
  10257. "items": {
  10258. "$ref": "#/components/schemas/Prompt.FileAttachment"
  10259. }
  10260. },
  10261. "agents": {
  10262. "type": "array",
  10263. "items": {
  10264. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  10265. }
  10266. },
  10267. "type": {
  10268. "type": "string",
  10269. "enum": ["user"]
  10270. }
  10271. },
  10272. "required": ["id", "time", "text", "type"],
  10273. "additionalProperties": false
  10274. },
  10275. "Session.Message.Synthetic": {
  10276. "type": "object",
  10277. "properties": {
  10278. "id": {
  10279. "type": "string",
  10280. "allOf": [
  10281. {
  10282. "pattern": "^msg_"
  10283. }
  10284. ]
  10285. },
  10286. "metadata": {
  10287. "type": "object"
  10288. },
  10289. "time": {
  10290. "type": "object",
  10291. "properties": {
  10292. "created": {
  10293. "type": "number"
  10294. }
  10295. },
  10296. "required": ["created"],
  10297. "additionalProperties": false
  10298. },
  10299. "sessionID": {
  10300. "type": "string",
  10301. "allOf": [
  10302. {
  10303. "pattern": "^ses"
  10304. }
  10305. ]
  10306. },
  10307. "text": {
  10308. "type": "string"
  10309. },
  10310. "description": {
  10311. "type": "string"
  10312. },
  10313. "type": {
  10314. "type": "string",
  10315. "enum": ["synthetic"]
  10316. }
  10317. },
  10318. "required": ["id", "time", "sessionID", "text", "type"],
  10319. "additionalProperties": false
  10320. },
  10321. "Session.Message.System": {
  10322. "type": "object",
  10323. "properties": {
  10324. "id": {
  10325. "type": "string",
  10326. "allOf": [
  10327. {
  10328. "pattern": "^msg_"
  10329. }
  10330. ]
  10331. },
  10332. "metadata": {
  10333. "type": "object"
  10334. },
  10335. "time": {
  10336. "type": "object",
  10337. "properties": {
  10338. "created": {
  10339. "type": "number"
  10340. }
  10341. },
  10342. "required": ["created"],
  10343. "additionalProperties": false
  10344. },
  10345. "type": {
  10346. "type": "string",
  10347. "enum": ["system"]
  10348. },
  10349. "text": {
  10350. "type": "string"
  10351. }
  10352. },
  10353. "required": ["id", "time", "type", "text"],
  10354. "additionalProperties": false
  10355. },
  10356. "Session.Message.Skill": {
  10357. "type": "object",
  10358. "properties": {
  10359. "id": {
  10360. "type": "string",
  10361. "allOf": [
  10362. {
  10363. "pattern": "^msg_"
  10364. }
  10365. ]
  10366. },
  10367. "metadata": {
  10368. "type": "object"
  10369. },
  10370. "time": {
  10371. "type": "object",
  10372. "properties": {
  10373. "created": {
  10374. "type": "number"
  10375. }
  10376. },
  10377. "required": ["created"],
  10378. "additionalProperties": false
  10379. },
  10380. "type": {
  10381. "type": "string",
  10382. "enum": ["skill"]
  10383. },
  10384. "name": {
  10385. "type": "string"
  10386. },
  10387. "text": {
  10388. "type": "string"
  10389. }
  10390. },
  10391. "required": ["id", "time", "type", "name", "text"],
  10392. "additionalProperties": false
  10393. },
  10394. "Session.Message.Shell": {
  10395. "type": "object",
  10396. "properties": {
  10397. "id": {
  10398. "type": "string",
  10399. "allOf": [
  10400. {
  10401. "pattern": "^msg_"
  10402. }
  10403. ]
  10404. },
  10405. "metadata": {
  10406. "type": "object"
  10407. },
  10408. "time": {
  10409. "type": "object",
  10410. "properties": {
  10411. "created": {
  10412. "type": "number"
  10413. },
  10414. "completed": {
  10415. "type": "number"
  10416. }
  10417. },
  10418. "required": ["created"],
  10419. "additionalProperties": false
  10420. },
  10421. "type": {
  10422. "type": "string",
  10423. "enum": ["shell"]
  10424. },
  10425. "callID": {
  10426. "type": "string"
  10427. },
  10428. "command": {
  10429. "type": "string"
  10430. },
  10431. "output": {
  10432. "type": "string"
  10433. }
  10434. },
  10435. "required": ["id", "time", "type", "callID", "command", "output"],
  10436. "additionalProperties": false
  10437. },
  10438. "Session.Message.Assistant.Text": {
  10439. "type": "object",
  10440. "properties": {
  10441. "type": {
  10442. "type": "string",
  10443. "enum": ["text"]
  10444. },
  10445. "id": {
  10446. "type": "string"
  10447. },
  10448. "text": {
  10449. "type": "string"
  10450. }
  10451. },
  10452. "required": ["type", "id", "text"],
  10453. "additionalProperties": false
  10454. },
  10455. "LLM.ProviderMetadata": {
  10456. "type": "object",
  10457. "additionalProperties": {
  10458. "type": "object"
  10459. }
  10460. },
  10461. "Session.Message.Assistant.Reasoning": {
  10462. "type": "object",
  10463. "properties": {
  10464. "type": {
  10465. "type": "string",
  10466. "enum": ["reasoning"]
  10467. },
  10468. "id": {
  10469. "type": "string"
  10470. },
  10471. "text": {
  10472. "type": "string"
  10473. },
  10474. "providerMetadata": {
  10475. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  10476. },
  10477. "time": {
  10478. "type": "object",
  10479. "properties": {
  10480. "created": {
  10481. "type": "number"
  10482. },
  10483. "completed": {
  10484. "type": "number"
  10485. }
  10486. },
  10487. "required": ["created"],
  10488. "additionalProperties": false
  10489. }
  10490. },
  10491. "required": ["type", "id", "text"],
  10492. "additionalProperties": false
  10493. },
  10494. "Session.Message.ToolState.Pending": {
  10495. "type": "object",
  10496. "properties": {
  10497. "status": {
  10498. "type": "string",
  10499. "enum": ["pending"]
  10500. },
  10501. "input": {
  10502. "type": "string"
  10503. }
  10504. },
  10505. "required": ["status", "input"],
  10506. "additionalProperties": false
  10507. },
  10508. "Tool.TextContent": {
  10509. "type": "object",
  10510. "properties": {
  10511. "type": {
  10512. "type": "string",
  10513. "enum": ["text"]
  10514. },
  10515. "text": {
  10516. "type": "string"
  10517. }
  10518. },
  10519. "required": ["type", "text"],
  10520. "additionalProperties": false
  10521. },
  10522. "Tool.FileContent": {
  10523. "type": "object",
  10524. "properties": {
  10525. "type": {
  10526. "type": "string",
  10527. "enum": ["file"]
  10528. },
  10529. "uri": {
  10530. "type": "string"
  10531. },
  10532. "mime": {
  10533. "type": "string"
  10534. },
  10535. "name": {
  10536. "type": "string"
  10537. }
  10538. },
  10539. "required": ["type", "uri", "mime"],
  10540. "additionalProperties": false
  10541. },
  10542. "LLM.ToolContent": {
  10543. "anyOf": [
  10544. {
  10545. "$ref": "#/components/schemas/Tool.TextContent"
  10546. },
  10547. {
  10548. "$ref": "#/components/schemas/Tool.FileContent"
  10549. }
  10550. ]
  10551. },
  10552. "Session.Message.ToolState.Running": {
  10553. "type": "object",
  10554. "properties": {
  10555. "status": {
  10556. "type": "string",
  10557. "enum": ["running"]
  10558. },
  10559. "input": {
  10560. "type": "object"
  10561. },
  10562. "structured": {
  10563. "type": "object"
  10564. },
  10565. "content": {
  10566. "type": "array",
  10567. "items": {
  10568. "$ref": "#/components/schemas/LLM.ToolContent"
  10569. }
  10570. }
  10571. },
  10572. "required": ["status", "input", "structured", "content"],
  10573. "additionalProperties": false
  10574. },
  10575. "Session.Message.ToolState.Completed": {
  10576. "type": "object",
  10577. "properties": {
  10578. "status": {
  10579. "type": "string",
  10580. "enum": ["completed"]
  10581. },
  10582. "input": {
  10583. "type": "object"
  10584. },
  10585. "attachments": {
  10586. "type": "array",
  10587. "items": {
  10588. "$ref": "#/components/schemas/Prompt.FileAttachment"
  10589. }
  10590. },
  10591. "content": {
  10592. "type": "array",
  10593. "items": {
  10594. "$ref": "#/components/schemas/LLM.ToolContent"
  10595. }
  10596. },
  10597. "outputPaths": {
  10598. "type": "array",
  10599. "items": {
  10600. "type": "string"
  10601. }
  10602. },
  10603. "structured": {
  10604. "type": "object"
  10605. },
  10606. "result": {}
  10607. },
  10608. "required": ["status", "input", "content", "structured"],
  10609. "additionalProperties": false
  10610. },
  10611. "Session.Error.Unknown": {
  10612. "type": "object",
  10613. "properties": {
  10614. "type": {
  10615. "type": "string",
  10616. "enum": ["unknown"]
  10617. },
  10618. "message": {
  10619. "type": "string"
  10620. }
  10621. },
  10622. "required": ["type", "message"],
  10623. "additionalProperties": false
  10624. },
  10625. "Session.Message.ToolState.Error": {
  10626. "type": "object",
  10627. "properties": {
  10628. "status": {
  10629. "type": "string",
  10630. "enum": ["error"]
  10631. },
  10632. "input": {
  10633. "type": "object"
  10634. },
  10635. "content": {
  10636. "type": "array",
  10637. "items": {
  10638. "$ref": "#/components/schemas/LLM.ToolContent"
  10639. }
  10640. },
  10641. "structured": {
  10642. "type": "object"
  10643. },
  10644. "error": {
  10645. "$ref": "#/components/schemas/Session.Error.Unknown"
  10646. },
  10647. "result": {}
  10648. },
  10649. "required": ["status", "input", "content", "structured", "error"],
  10650. "additionalProperties": false
  10651. },
  10652. "Session.Message.Assistant.Tool": {
  10653. "type": "object",
  10654. "properties": {
  10655. "type": {
  10656. "type": "string",
  10657. "enum": ["tool"]
  10658. },
  10659. "id": {
  10660. "type": "string"
  10661. },
  10662. "name": {
  10663. "type": "string"
  10664. },
  10665. "provider": {
  10666. "type": "object",
  10667. "properties": {
  10668. "executed": {
  10669. "type": "boolean"
  10670. },
  10671. "metadata": {
  10672. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  10673. },
  10674. "resultMetadata": {
  10675. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  10676. }
  10677. },
  10678. "required": ["executed"],
  10679. "additionalProperties": false
  10680. },
  10681. "state": {
  10682. "anyOf": [
  10683. {
  10684. "$ref": "#/components/schemas/Session.Message.ToolState.Pending"
  10685. },
  10686. {
  10687. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  10688. },
  10689. {
  10690. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  10691. },
  10692. {
  10693. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  10694. }
  10695. ]
  10696. },
  10697. "time": {
  10698. "type": "object",
  10699. "properties": {
  10700. "created": {
  10701. "type": "number"
  10702. },
  10703. "ran": {
  10704. "type": "number"
  10705. },
  10706. "completed": {
  10707. "type": "number"
  10708. },
  10709. "pruned": {
  10710. "type": "number"
  10711. }
  10712. },
  10713. "required": ["created"],
  10714. "additionalProperties": false
  10715. }
  10716. },
  10717. "required": ["type", "id", "name", "state", "time"],
  10718. "additionalProperties": false
  10719. },
  10720. "Session.Message.Assistant": {
  10721. "type": "object",
  10722. "properties": {
  10723. "id": {
  10724. "type": "string",
  10725. "allOf": [
  10726. {
  10727. "pattern": "^msg_"
  10728. }
  10729. ]
  10730. },
  10731. "metadata": {
  10732. "type": "object"
  10733. },
  10734. "time": {
  10735. "type": "object",
  10736. "properties": {
  10737. "created": {
  10738. "type": "number"
  10739. },
  10740. "completed": {
  10741. "type": "number"
  10742. }
  10743. },
  10744. "required": ["created"],
  10745. "additionalProperties": false
  10746. },
  10747. "type": {
  10748. "type": "string",
  10749. "enum": ["assistant"]
  10750. },
  10751. "agent": {
  10752. "type": "string"
  10753. },
  10754. "model": {
  10755. "$ref": "#/components/schemas/Model.Ref"
  10756. },
  10757. "content": {
  10758. "type": "array",
  10759. "items": {
  10760. "anyOf": [
  10761. {
  10762. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  10763. },
  10764. {
  10765. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  10766. },
  10767. {
  10768. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  10769. }
  10770. ]
  10771. }
  10772. },
  10773. "snapshot": {
  10774. "type": "object",
  10775. "properties": {
  10776. "start": {
  10777. "type": "string"
  10778. },
  10779. "end": {
  10780. "type": "string"
  10781. },
  10782. "files": {
  10783. "type": "array",
  10784. "items": {
  10785. "type": "string"
  10786. }
  10787. }
  10788. },
  10789. "additionalProperties": false
  10790. },
  10791. "finish": {
  10792. "type": "string"
  10793. },
  10794. "cost": {
  10795. "type": "number"
  10796. },
  10797. "tokens": {
  10798. "type": "object",
  10799. "properties": {
  10800. "input": {
  10801. "type": "number"
  10802. },
  10803. "output": {
  10804. "type": "number"
  10805. },
  10806. "reasoning": {
  10807. "type": "number"
  10808. },
  10809. "cache": {
  10810. "type": "object",
  10811. "properties": {
  10812. "read": {
  10813. "type": "number"
  10814. },
  10815. "write": {
  10816. "type": "number"
  10817. }
  10818. },
  10819. "required": ["read", "write"],
  10820. "additionalProperties": false
  10821. }
  10822. },
  10823. "required": ["input", "output", "reasoning", "cache"],
  10824. "additionalProperties": false
  10825. },
  10826. "error": {
  10827. "$ref": "#/components/schemas/Session.Error.Unknown"
  10828. }
  10829. },
  10830. "required": ["id", "time", "type", "agent", "model", "content"],
  10831. "additionalProperties": false
  10832. },
  10833. "Session.Message.Compaction": {
  10834. "type": "object",
  10835. "properties": {
  10836. "type": {
  10837. "type": "string",
  10838. "enum": ["compaction"]
  10839. },
  10840. "reason": {
  10841. "type": "string",
  10842. "enum": ["auto", "manual"]
  10843. },
  10844. "summary": {
  10845. "type": "string"
  10846. },
  10847. "recent": {
  10848. "type": "string"
  10849. },
  10850. "id": {
  10851. "type": "string",
  10852. "allOf": [
  10853. {
  10854. "pattern": "^msg_"
  10855. }
  10856. ]
  10857. },
  10858. "metadata": {
  10859. "type": "object"
  10860. },
  10861. "time": {
  10862. "type": "object",
  10863. "properties": {
  10864. "created": {
  10865. "type": "number"
  10866. }
  10867. },
  10868. "required": ["created"],
  10869. "additionalProperties": false
  10870. }
  10871. },
  10872. "required": ["type", "reason", "summary", "recent", "id", "time"],
  10873. "additionalProperties": false
  10874. },
  10875. "Session.Message": {
  10876. "anyOf": [
  10877. {
  10878. "$ref": "#/components/schemas/Session.Message.AgentSwitched"
  10879. },
  10880. {
  10881. "$ref": "#/components/schemas/Session.Message.ModelSwitched"
  10882. },
  10883. {
  10884. "$ref": "#/components/schemas/Session.Message.User"
  10885. },
  10886. {
  10887. "$ref": "#/components/schemas/Session.Message.Synthetic"
  10888. },
  10889. {
  10890. "$ref": "#/components/schemas/Session.Message.System"
  10891. },
  10892. {
  10893. "$ref": "#/components/schemas/Session.Message.Skill"
  10894. },
  10895. {
  10896. "$ref": "#/components/schemas/Session.Message.Shell"
  10897. },
  10898. {
  10899. "$ref": "#/components/schemas/Session.Message.Assistant"
  10900. },
  10901. {
  10902. "$ref": "#/components/schemas/Session.Message.Compaction"
  10903. }
  10904. ]
  10905. },
  10906. "SessionContextEntry.Key": {
  10907. "type": "string",
  10908. "allOf": [
  10909. {
  10910. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  10911. "description": "Context entry key (lowercase alphanumerics plus . _ -)"
  10912. }
  10913. ]
  10914. },
  10915. "SessionContextEntry.Info": {
  10916. "type": "object",
  10917. "properties": {
  10918. "key": {
  10919. "$ref": "#/components/schemas/SessionContextEntry.Key"
  10920. },
  10921. "value": {}
  10922. },
  10923. "required": ["key", "value"],
  10924. "additionalProperties": false
  10925. },
  10926. "session.next.agent.switched": {
  10927. "type": "object",
  10928. "properties": {
  10929. "id": {
  10930. "type": "string",
  10931. "allOf": [
  10932. {
  10933. "pattern": "^evt_"
  10934. }
  10935. ]
  10936. },
  10937. "metadata": {
  10938. "type": "object"
  10939. },
  10940. "type": {
  10941. "type": "string",
  10942. "enum": ["session.next.agent.switched"]
  10943. },
  10944. "durable": {
  10945. "type": "object",
  10946. "properties": {
  10947. "aggregateID": {
  10948. "type": "string"
  10949. },
  10950. "seq": {
  10951. "type": "integer",
  10952. "allOf": [
  10953. {
  10954. "minimum": 0
  10955. }
  10956. ]
  10957. },
  10958. "version": {
  10959. "type": "integer",
  10960. "allOf": [
  10961. {
  10962. "minimum": 1
  10963. }
  10964. ]
  10965. }
  10966. },
  10967. "required": ["aggregateID", "seq", "version"],
  10968. "additionalProperties": false
  10969. },
  10970. "location": {
  10971. "$ref": "#/components/schemas/Location.Ref"
  10972. },
  10973. "data": {
  10974. "type": "object",
  10975. "properties": {
  10976. "timestamp": {
  10977. "type": "number"
  10978. },
  10979. "sessionID": {
  10980. "type": "string",
  10981. "allOf": [
  10982. {
  10983. "pattern": "^ses"
  10984. }
  10985. ]
  10986. },
  10987. "messageID": {
  10988. "type": "string",
  10989. "allOf": [
  10990. {
  10991. "pattern": "^msg_"
  10992. }
  10993. ]
  10994. },
  10995. "agent": {
  10996. "type": "string"
  10997. }
  10998. },
  10999. "required": ["timestamp", "sessionID", "messageID", "agent"],
  11000. "additionalProperties": false
  11001. }
  11002. },
  11003. "required": ["id", "type", "data"],
  11004. "additionalProperties": false
  11005. },
  11006. "session.next.model.switched": {
  11007. "type": "object",
  11008. "properties": {
  11009. "id": {
  11010. "type": "string",
  11011. "allOf": [
  11012. {
  11013. "pattern": "^evt_"
  11014. }
  11015. ]
  11016. },
  11017. "metadata": {
  11018. "type": "object"
  11019. },
  11020. "type": {
  11021. "type": "string",
  11022. "enum": ["session.next.model.switched"]
  11023. },
  11024. "durable": {
  11025. "type": "object",
  11026. "properties": {
  11027. "aggregateID": {
  11028. "type": "string"
  11029. },
  11030. "seq": {
  11031. "type": "integer",
  11032. "allOf": [
  11033. {
  11034. "minimum": 0
  11035. }
  11036. ]
  11037. },
  11038. "version": {
  11039. "type": "integer",
  11040. "allOf": [
  11041. {
  11042. "minimum": 1
  11043. }
  11044. ]
  11045. }
  11046. },
  11047. "required": ["aggregateID", "seq", "version"],
  11048. "additionalProperties": false
  11049. },
  11050. "location": {
  11051. "$ref": "#/components/schemas/Location.Ref"
  11052. },
  11053. "data": {
  11054. "type": "object",
  11055. "properties": {
  11056. "timestamp": {
  11057. "type": "number"
  11058. },
  11059. "sessionID": {
  11060. "type": "string",
  11061. "allOf": [
  11062. {
  11063. "pattern": "^ses"
  11064. }
  11065. ]
  11066. },
  11067. "messageID": {
  11068. "type": "string",
  11069. "allOf": [
  11070. {
  11071. "pattern": "^msg_"
  11072. }
  11073. ]
  11074. },
  11075. "model": {
  11076. "$ref": "#/components/schemas/Model.Ref"
  11077. }
  11078. },
  11079. "required": ["timestamp", "sessionID", "messageID", "model"],
  11080. "additionalProperties": false
  11081. }
  11082. },
  11083. "required": ["id", "type", "data"],
  11084. "additionalProperties": false
  11085. },
  11086. "session.next.moved": {
  11087. "type": "object",
  11088. "properties": {
  11089. "id": {
  11090. "type": "string",
  11091. "allOf": [
  11092. {
  11093. "pattern": "^evt_"
  11094. }
  11095. ]
  11096. },
  11097. "metadata": {
  11098. "type": "object"
  11099. },
  11100. "type": {
  11101. "type": "string",
  11102. "enum": ["session.next.moved"]
  11103. },
  11104. "durable": {
  11105. "type": "object",
  11106. "properties": {
  11107. "aggregateID": {
  11108. "type": "string"
  11109. },
  11110. "seq": {
  11111. "type": "integer",
  11112. "allOf": [
  11113. {
  11114. "minimum": 0
  11115. }
  11116. ]
  11117. },
  11118. "version": {
  11119. "type": "integer",
  11120. "allOf": [
  11121. {
  11122. "minimum": 1
  11123. }
  11124. ]
  11125. }
  11126. },
  11127. "required": ["aggregateID", "seq", "version"],
  11128. "additionalProperties": false
  11129. },
  11130. "location": {
  11131. "$ref": "#/components/schemas/Location.Ref"
  11132. },
  11133. "data": {
  11134. "type": "object",
  11135. "properties": {
  11136. "timestamp": {
  11137. "type": "number"
  11138. },
  11139. "sessionID": {
  11140. "type": "string",
  11141. "allOf": [
  11142. {
  11143. "pattern": "^ses"
  11144. }
  11145. ]
  11146. },
  11147. "location": {
  11148. "$ref": "#/components/schemas/Location.Ref"
  11149. },
  11150. "subdirectory": {
  11151. "type": "string"
  11152. }
  11153. },
  11154. "required": ["timestamp", "sessionID", "location"],
  11155. "additionalProperties": false
  11156. }
  11157. },
  11158. "required": ["id", "type", "data"],
  11159. "additionalProperties": false
  11160. },
  11161. "session.next.renamed": {
  11162. "type": "object",
  11163. "properties": {
  11164. "id": {
  11165. "type": "string",
  11166. "allOf": [
  11167. {
  11168. "pattern": "^evt_"
  11169. }
  11170. ]
  11171. },
  11172. "metadata": {
  11173. "type": "object"
  11174. },
  11175. "type": {
  11176. "type": "string",
  11177. "enum": ["session.next.renamed"]
  11178. },
  11179. "durable": {
  11180. "type": "object",
  11181. "properties": {
  11182. "aggregateID": {
  11183. "type": "string"
  11184. },
  11185. "seq": {
  11186. "type": "integer",
  11187. "allOf": [
  11188. {
  11189. "minimum": 0
  11190. }
  11191. ]
  11192. },
  11193. "version": {
  11194. "type": "integer",
  11195. "allOf": [
  11196. {
  11197. "minimum": 1
  11198. }
  11199. ]
  11200. }
  11201. },
  11202. "required": ["aggregateID", "seq", "version"],
  11203. "additionalProperties": false
  11204. },
  11205. "location": {
  11206. "$ref": "#/components/schemas/Location.Ref"
  11207. },
  11208. "data": {
  11209. "type": "object",
  11210. "properties": {
  11211. "timestamp": {
  11212. "type": "number"
  11213. },
  11214. "sessionID": {
  11215. "type": "string",
  11216. "allOf": [
  11217. {
  11218. "pattern": "^ses"
  11219. }
  11220. ]
  11221. },
  11222. "title": {
  11223. "type": "string"
  11224. }
  11225. },
  11226. "required": ["timestamp", "sessionID", "title"],
  11227. "additionalProperties": false
  11228. }
  11229. },
  11230. "required": ["id", "type", "data"],
  11231. "additionalProperties": false
  11232. },
  11233. "session.next.forked": {
  11234. "type": "object",
  11235. "properties": {
  11236. "id": {
  11237. "type": "string",
  11238. "allOf": [
  11239. {
  11240. "pattern": "^evt_"
  11241. }
  11242. ]
  11243. },
  11244. "metadata": {
  11245. "type": "object"
  11246. },
  11247. "type": {
  11248. "type": "string",
  11249. "enum": ["session.next.forked"]
  11250. },
  11251. "durable": {
  11252. "type": "object",
  11253. "properties": {
  11254. "aggregateID": {
  11255. "type": "string"
  11256. },
  11257. "seq": {
  11258. "type": "integer",
  11259. "allOf": [
  11260. {
  11261. "minimum": 0
  11262. }
  11263. ]
  11264. },
  11265. "version": {
  11266. "type": "integer",
  11267. "allOf": [
  11268. {
  11269. "minimum": 1
  11270. }
  11271. ]
  11272. }
  11273. },
  11274. "required": ["aggregateID", "seq", "version"],
  11275. "additionalProperties": false
  11276. },
  11277. "location": {
  11278. "$ref": "#/components/schemas/Location.Ref"
  11279. },
  11280. "data": {
  11281. "type": "object",
  11282. "properties": {
  11283. "timestamp": {
  11284. "type": "number"
  11285. },
  11286. "sessionID": {
  11287. "type": "string",
  11288. "allOf": [
  11289. {
  11290. "pattern": "^ses"
  11291. }
  11292. ]
  11293. },
  11294. "parentID": {
  11295. "type": "string",
  11296. "allOf": [
  11297. {
  11298. "pattern": "^ses"
  11299. }
  11300. ]
  11301. },
  11302. "messageID": {
  11303. "type": "string",
  11304. "allOf": [
  11305. {
  11306. "pattern": "^msg_"
  11307. }
  11308. ]
  11309. }
  11310. },
  11311. "required": ["timestamp", "sessionID", "parentID"],
  11312. "additionalProperties": false
  11313. }
  11314. },
  11315. "required": ["id", "type", "data"],
  11316. "additionalProperties": false
  11317. },
  11318. "session.next.prompted": {
  11319. "type": "object",
  11320. "properties": {
  11321. "id": {
  11322. "type": "string",
  11323. "allOf": [
  11324. {
  11325. "pattern": "^evt_"
  11326. }
  11327. ]
  11328. },
  11329. "metadata": {
  11330. "type": "object"
  11331. },
  11332. "type": {
  11333. "type": "string",
  11334. "enum": ["session.next.prompted"]
  11335. },
  11336. "durable": {
  11337. "type": "object",
  11338. "properties": {
  11339. "aggregateID": {
  11340. "type": "string"
  11341. },
  11342. "seq": {
  11343. "type": "integer",
  11344. "allOf": [
  11345. {
  11346. "minimum": 0
  11347. }
  11348. ]
  11349. },
  11350. "version": {
  11351. "type": "integer",
  11352. "allOf": [
  11353. {
  11354. "minimum": 1
  11355. }
  11356. ]
  11357. }
  11358. },
  11359. "required": ["aggregateID", "seq", "version"],
  11360. "additionalProperties": false
  11361. },
  11362. "location": {
  11363. "$ref": "#/components/schemas/Location.Ref"
  11364. },
  11365. "data": {
  11366. "type": "object",
  11367. "properties": {
  11368. "timestamp": {
  11369. "type": "number"
  11370. },
  11371. "sessionID": {
  11372. "type": "string",
  11373. "allOf": [
  11374. {
  11375. "pattern": "^ses"
  11376. }
  11377. ]
  11378. },
  11379. "messageID": {
  11380. "type": "string",
  11381. "allOf": [
  11382. {
  11383. "pattern": "^msg_"
  11384. }
  11385. ]
  11386. },
  11387. "prompt": {
  11388. "$ref": "#/components/schemas/Prompt"
  11389. },
  11390. "delivery": {
  11391. "type": "string",
  11392. "enum": ["steer", "queue"]
  11393. }
  11394. },
  11395. "required": ["timestamp", "sessionID", "messageID", "prompt", "delivery"],
  11396. "additionalProperties": false
  11397. }
  11398. },
  11399. "required": ["id", "type", "data"],
  11400. "additionalProperties": false
  11401. },
  11402. "session.next.prompt.admitted": {
  11403. "type": "object",
  11404. "properties": {
  11405. "id": {
  11406. "type": "string",
  11407. "allOf": [
  11408. {
  11409. "pattern": "^evt_"
  11410. }
  11411. ]
  11412. },
  11413. "metadata": {
  11414. "type": "object"
  11415. },
  11416. "type": {
  11417. "type": "string",
  11418. "enum": ["session.next.prompt.admitted"]
  11419. },
  11420. "durable": {
  11421. "type": "object",
  11422. "properties": {
  11423. "aggregateID": {
  11424. "type": "string"
  11425. },
  11426. "seq": {
  11427. "type": "integer",
  11428. "allOf": [
  11429. {
  11430. "minimum": 0
  11431. }
  11432. ]
  11433. },
  11434. "version": {
  11435. "type": "integer",
  11436. "allOf": [
  11437. {
  11438. "minimum": 1
  11439. }
  11440. ]
  11441. }
  11442. },
  11443. "required": ["aggregateID", "seq", "version"],
  11444. "additionalProperties": false
  11445. },
  11446. "location": {
  11447. "$ref": "#/components/schemas/Location.Ref"
  11448. },
  11449. "data": {
  11450. "type": "object",
  11451. "properties": {
  11452. "timestamp": {
  11453. "type": "number"
  11454. },
  11455. "sessionID": {
  11456. "type": "string",
  11457. "allOf": [
  11458. {
  11459. "pattern": "^ses"
  11460. }
  11461. ]
  11462. },
  11463. "messageID": {
  11464. "type": "string",
  11465. "allOf": [
  11466. {
  11467. "pattern": "^msg_"
  11468. }
  11469. ]
  11470. },
  11471. "prompt": {
  11472. "$ref": "#/components/schemas/Prompt"
  11473. },
  11474. "delivery": {
  11475. "type": "string",
  11476. "enum": ["steer", "queue"]
  11477. }
  11478. },
  11479. "required": ["timestamp", "sessionID", "messageID", "prompt", "delivery"],
  11480. "additionalProperties": false
  11481. }
  11482. },
  11483. "required": ["id", "type", "data"],
  11484. "additionalProperties": false
  11485. },
  11486. "session.next.context.updated": {
  11487. "type": "object",
  11488. "properties": {
  11489. "id": {
  11490. "type": "string",
  11491. "allOf": [
  11492. {
  11493. "pattern": "^evt_"
  11494. }
  11495. ]
  11496. },
  11497. "metadata": {
  11498. "type": "object"
  11499. },
  11500. "type": {
  11501. "type": "string",
  11502. "enum": ["session.next.context.updated"]
  11503. },
  11504. "durable": {
  11505. "type": "object",
  11506. "properties": {
  11507. "aggregateID": {
  11508. "type": "string"
  11509. },
  11510. "seq": {
  11511. "type": "integer",
  11512. "allOf": [
  11513. {
  11514. "minimum": 0
  11515. }
  11516. ]
  11517. },
  11518. "version": {
  11519. "type": "integer",
  11520. "allOf": [
  11521. {
  11522. "minimum": 1
  11523. }
  11524. ]
  11525. }
  11526. },
  11527. "required": ["aggregateID", "seq", "version"],
  11528. "additionalProperties": false
  11529. },
  11530. "location": {
  11531. "$ref": "#/components/schemas/Location.Ref"
  11532. },
  11533. "data": {
  11534. "type": "object",
  11535. "properties": {
  11536. "timestamp": {
  11537. "type": "number"
  11538. },
  11539. "sessionID": {
  11540. "type": "string",
  11541. "allOf": [
  11542. {
  11543. "pattern": "^ses"
  11544. }
  11545. ]
  11546. },
  11547. "messageID": {
  11548. "type": "string",
  11549. "allOf": [
  11550. {
  11551. "pattern": "^msg_"
  11552. }
  11553. ]
  11554. },
  11555. "text": {
  11556. "type": "string"
  11557. }
  11558. },
  11559. "required": ["timestamp", "sessionID", "messageID", "text"],
  11560. "additionalProperties": false
  11561. }
  11562. },
  11563. "required": ["id", "type", "data"],
  11564. "additionalProperties": false
  11565. },
  11566. "session.next.synthetic": {
  11567. "type": "object",
  11568. "properties": {
  11569. "id": {
  11570. "type": "string",
  11571. "allOf": [
  11572. {
  11573. "pattern": "^evt_"
  11574. }
  11575. ]
  11576. },
  11577. "metadata": {
  11578. "type": "object"
  11579. },
  11580. "type": {
  11581. "type": "string",
  11582. "enum": ["session.next.synthetic"]
  11583. },
  11584. "durable": {
  11585. "type": "object",
  11586. "properties": {
  11587. "aggregateID": {
  11588. "type": "string"
  11589. },
  11590. "seq": {
  11591. "type": "integer",
  11592. "allOf": [
  11593. {
  11594. "minimum": 0
  11595. }
  11596. ]
  11597. },
  11598. "version": {
  11599. "type": "integer",
  11600. "allOf": [
  11601. {
  11602. "minimum": 1
  11603. }
  11604. ]
  11605. }
  11606. },
  11607. "required": ["aggregateID", "seq", "version"],
  11608. "additionalProperties": false
  11609. },
  11610. "location": {
  11611. "$ref": "#/components/schemas/Location.Ref"
  11612. },
  11613. "data": {
  11614. "type": "object",
  11615. "properties": {
  11616. "timestamp": {
  11617. "type": "number"
  11618. },
  11619. "sessionID": {
  11620. "type": "string",
  11621. "allOf": [
  11622. {
  11623. "pattern": "^ses"
  11624. }
  11625. ]
  11626. },
  11627. "messageID": {
  11628. "type": "string",
  11629. "allOf": [
  11630. {
  11631. "pattern": "^msg_"
  11632. }
  11633. ]
  11634. },
  11635. "text": {
  11636. "type": "string"
  11637. },
  11638. "description": {
  11639. "type": "string"
  11640. },
  11641. "metadata": {
  11642. "type": "object"
  11643. }
  11644. },
  11645. "required": ["timestamp", "sessionID", "messageID", "text"],
  11646. "additionalProperties": false
  11647. }
  11648. },
  11649. "required": ["id", "type", "data"],
  11650. "additionalProperties": false
  11651. },
  11652. "session.next.skill.activated": {
  11653. "type": "object",
  11654. "properties": {
  11655. "id": {
  11656. "type": "string",
  11657. "allOf": [
  11658. {
  11659. "pattern": "^evt_"
  11660. }
  11661. ]
  11662. },
  11663. "metadata": {
  11664. "type": "object"
  11665. },
  11666. "type": {
  11667. "type": "string",
  11668. "enum": ["session.next.skill.activated"]
  11669. },
  11670. "durable": {
  11671. "type": "object",
  11672. "properties": {
  11673. "aggregateID": {
  11674. "type": "string"
  11675. },
  11676. "seq": {
  11677. "type": "integer",
  11678. "allOf": [
  11679. {
  11680. "minimum": 0
  11681. }
  11682. ]
  11683. },
  11684. "version": {
  11685. "type": "integer",
  11686. "allOf": [
  11687. {
  11688. "minimum": 1
  11689. }
  11690. ]
  11691. }
  11692. },
  11693. "required": ["aggregateID", "seq", "version"],
  11694. "additionalProperties": false
  11695. },
  11696. "location": {
  11697. "$ref": "#/components/schemas/Location.Ref"
  11698. },
  11699. "data": {
  11700. "type": "object",
  11701. "properties": {
  11702. "timestamp": {
  11703. "type": "number"
  11704. },
  11705. "sessionID": {
  11706. "type": "string",
  11707. "allOf": [
  11708. {
  11709. "pattern": "^ses"
  11710. }
  11711. ]
  11712. },
  11713. "messageID": {
  11714. "type": "string",
  11715. "allOf": [
  11716. {
  11717. "pattern": "^msg_"
  11718. }
  11719. ]
  11720. },
  11721. "name": {
  11722. "type": "string"
  11723. },
  11724. "text": {
  11725. "type": "string"
  11726. }
  11727. },
  11728. "required": ["timestamp", "sessionID", "messageID", "name", "text"],
  11729. "additionalProperties": false
  11730. }
  11731. },
  11732. "required": ["id", "type", "data"],
  11733. "additionalProperties": false
  11734. },
  11735. "session.next.shell.started": {
  11736. "type": "object",
  11737. "properties": {
  11738. "id": {
  11739. "type": "string",
  11740. "allOf": [
  11741. {
  11742. "pattern": "^evt_"
  11743. }
  11744. ]
  11745. },
  11746. "metadata": {
  11747. "type": "object"
  11748. },
  11749. "type": {
  11750. "type": "string",
  11751. "enum": ["session.next.shell.started"]
  11752. },
  11753. "durable": {
  11754. "type": "object",
  11755. "properties": {
  11756. "aggregateID": {
  11757. "type": "string"
  11758. },
  11759. "seq": {
  11760. "type": "integer",
  11761. "allOf": [
  11762. {
  11763. "minimum": 0
  11764. }
  11765. ]
  11766. },
  11767. "version": {
  11768. "type": "integer",
  11769. "allOf": [
  11770. {
  11771. "minimum": 1
  11772. }
  11773. ]
  11774. }
  11775. },
  11776. "required": ["aggregateID", "seq", "version"],
  11777. "additionalProperties": false
  11778. },
  11779. "location": {
  11780. "$ref": "#/components/schemas/Location.Ref"
  11781. },
  11782. "data": {
  11783. "type": "object",
  11784. "properties": {
  11785. "timestamp": {
  11786. "type": "number"
  11787. },
  11788. "sessionID": {
  11789. "type": "string",
  11790. "allOf": [
  11791. {
  11792. "pattern": "^ses"
  11793. }
  11794. ]
  11795. },
  11796. "messageID": {
  11797. "type": "string",
  11798. "allOf": [
  11799. {
  11800. "pattern": "^msg_"
  11801. }
  11802. ]
  11803. },
  11804. "callID": {
  11805. "type": "string"
  11806. },
  11807. "command": {
  11808. "type": "string"
  11809. }
  11810. },
  11811. "required": ["timestamp", "sessionID", "messageID", "callID", "command"],
  11812. "additionalProperties": false
  11813. }
  11814. },
  11815. "required": ["id", "type", "data"],
  11816. "additionalProperties": false
  11817. },
  11818. "session.next.shell.ended": {
  11819. "type": "object",
  11820. "properties": {
  11821. "id": {
  11822. "type": "string",
  11823. "allOf": [
  11824. {
  11825. "pattern": "^evt_"
  11826. }
  11827. ]
  11828. },
  11829. "metadata": {
  11830. "type": "object"
  11831. },
  11832. "type": {
  11833. "type": "string",
  11834. "enum": ["session.next.shell.ended"]
  11835. },
  11836. "durable": {
  11837. "type": "object",
  11838. "properties": {
  11839. "aggregateID": {
  11840. "type": "string"
  11841. },
  11842. "seq": {
  11843. "type": "integer",
  11844. "allOf": [
  11845. {
  11846. "minimum": 0
  11847. }
  11848. ]
  11849. },
  11850. "version": {
  11851. "type": "integer",
  11852. "allOf": [
  11853. {
  11854. "minimum": 1
  11855. }
  11856. ]
  11857. }
  11858. },
  11859. "required": ["aggregateID", "seq", "version"],
  11860. "additionalProperties": false
  11861. },
  11862. "location": {
  11863. "$ref": "#/components/schemas/Location.Ref"
  11864. },
  11865. "data": {
  11866. "type": "object",
  11867. "properties": {
  11868. "timestamp": {
  11869. "type": "number"
  11870. },
  11871. "sessionID": {
  11872. "type": "string",
  11873. "allOf": [
  11874. {
  11875. "pattern": "^ses"
  11876. }
  11877. ]
  11878. },
  11879. "callID": {
  11880. "type": "string"
  11881. },
  11882. "output": {
  11883. "type": "string"
  11884. }
  11885. },
  11886. "required": ["timestamp", "sessionID", "callID", "output"],
  11887. "additionalProperties": false
  11888. }
  11889. },
  11890. "required": ["id", "type", "data"],
  11891. "additionalProperties": false
  11892. },
  11893. "session.next.step.started": {
  11894. "type": "object",
  11895. "properties": {
  11896. "id": {
  11897. "type": "string",
  11898. "allOf": [
  11899. {
  11900. "pattern": "^evt_"
  11901. }
  11902. ]
  11903. },
  11904. "metadata": {
  11905. "type": "object"
  11906. },
  11907. "type": {
  11908. "type": "string",
  11909. "enum": ["session.next.step.started"]
  11910. },
  11911. "durable": {
  11912. "type": "object",
  11913. "properties": {
  11914. "aggregateID": {
  11915. "type": "string"
  11916. },
  11917. "seq": {
  11918. "type": "integer",
  11919. "allOf": [
  11920. {
  11921. "minimum": 0
  11922. }
  11923. ]
  11924. },
  11925. "version": {
  11926. "type": "integer",
  11927. "allOf": [
  11928. {
  11929. "minimum": 1
  11930. }
  11931. ]
  11932. }
  11933. },
  11934. "required": ["aggregateID", "seq", "version"],
  11935. "additionalProperties": false
  11936. },
  11937. "location": {
  11938. "$ref": "#/components/schemas/Location.Ref"
  11939. },
  11940. "data": {
  11941. "type": "object",
  11942. "properties": {
  11943. "timestamp": {
  11944. "type": "number"
  11945. },
  11946. "sessionID": {
  11947. "type": "string",
  11948. "allOf": [
  11949. {
  11950. "pattern": "^ses"
  11951. }
  11952. ]
  11953. },
  11954. "assistantMessageID": {
  11955. "type": "string",
  11956. "allOf": [
  11957. {
  11958. "pattern": "^msg_"
  11959. }
  11960. ]
  11961. },
  11962. "agent": {
  11963. "type": "string"
  11964. },
  11965. "model": {
  11966. "$ref": "#/components/schemas/Model.Ref"
  11967. },
  11968. "snapshot": {
  11969. "type": "string"
  11970. }
  11971. },
  11972. "required": ["timestamp", "sessionID", "assistantMessageID", "agent", "model"],
  11973. "additionalProperties": false
  11974. }
  11975. },
  11976. "required": ["id", "type", "data"],
  11977. "additionalProperties": false
  11978. },
  11979. "session.next.step.ended": {
  11980. "type": "object",
  11981. "properties": {
  11982. "id": {
  11983. "type": "string",
  11984. "allOf": [
  11985. {
  11986. "pattern": "^evt_"
  11987. }
  11988. ]
  11989. },
  11990. "metadata": {
  11991. "type": "object"
  11992. },
  11993. "type": {
  11994. "type": "string",
  11995. "enum": ["session.next.step.ended"]
  11996. },
  11997. "durable": {
  11998. "type": "object",
  11999. "properties": {
  12000. "aggregateID": {
  12001. "type": "string"
  12002. },
  12003. "seq": {
  12004. "type": "integer",
  12005. "allOf": [
  12006. {
  12007. "minimum": 0
  12008. }
  12009. ]
  12010. },
  12011. "version": {
  12012. "type": "integer",
  12013. "allOf": [
  12014. {
  12015. "minimum": 1
  12016. }
  12017. ]
  12018. }
  12019. },
  12020. "required": ["aggregateID", "seq", "version"],
  12021. "additionalProperties": false
  12022. },
  12023. "location": {
  12024. "$ref": "#/components/schemas/Location.Ref"
  12025. },
  12026. "data": {
  12027. "type": "object",
  12028. "properties": {
  12029. "timestamp": {
  12030. "type": "number"
  12031. },
  12032. "sessionID": {
  12033. "type": "string",
  12034. "allOf": [
  12035. {
  12036. "pattern": "^ses"
  12037. }
  12038. ]
  12039. },
  12040. "assistantMessageID": {
  12041. "type": "string",
  12042. "allOf": [
  12043. {
  12044. "pattern": "^msg_"
  12045. }
  12046. ]
  12047. },
  12048. "finish": {
  12049. "type": "string"
  12050. },
  12051. "cost": {
  12052. "type": "number"
  12053. },
  12054. "tokens": {
  12055. "type": "object",
  12056. "properties": {
  12057. "input": {
  12058. "type": "number"
  12059. },
  12060. "output": {
  12061. "type": "number"
  12062. },
  12063. "reasoning": {
  12064. "type": "number"
  12065. },
  12066. "cache": {
  12067. "type": "object",
  12068. "properties": {
  12069. "read": {
  12070. "type": "number"
  12071. },
  12072. "write": {
  12073. "type": "number"
  12074. }
  12075. },
  12076. "required": ["read", "write"],
  12077. "additionalProperties": false
  12078. }
  12079. },
  12080. "required": ["input", "output", "reasoning", "cache"],
  12081. "additionalProperties": false
  12082. },
  12083. "snapshot": {
  12084. "type": "string"
  12085. },
  12086. "files": {
  12087. "type": "array",
  12088. "items": {
  12089. "type": "string"
  12090. }
  12091. }
  12092. },
  12093. "required": ["timestamp", "sessionID", "assistantMessageID", "finish", "cost", "tokens"],
  12094. "additionalProperties": false
  12095. }
  12096. },
  12097. "required": ["id", "type", "data"],
  12098. "additionalProperties": false
  12099. },
  12100. "session.next.step.failed": {
  12101. "type": "object",
  12102. "properties": {
  12103. "id": {
  12104. "type": "string",
  12105. "allOf": [
  12106. {
  12107. "pattern": "^evt_"
  12108. }
  12109. ]
  12110. },
  12111. "metadata": {
  12112. "type": "object"
  12113. },
  12114. "type": {
  12115. "type": "string",
  12116. "enum": ["session.next.step.failed"]
  12117. },
  12118. "durable": {
  12119. "type": "object",
  12120. "properties": {
  12121. "aggregateID": {
  12122. "type": "string"
  12123. },
  12124. "seq": {
  12125. "type": "integer",
  12126. "allOf": [
  12127. {
  12128. "minimum": 0
  12129. }
  12130. ]
  12131. },
  12132. "version": {
  12133. "type": "integer",
  12134. "allOf": [
  12135. {
  12136. "minimum": 1
  12137. }
  12138. ]
  12139. }
  12140. },
  12141. "required": ["aggregateID", "seq", "version"],
  12142. "additionalProperties": false
  12143. },
  12144. "location": {
  12145. "$ref": "#/components/schemas/Location.Ref"
  12146. },
  12147. "data": {
  12148. "type": "object",
  12149. "properties": {
  12150. "timestamp": {
  12151. "type": "number"
  12152. },
  12153. "sessionID": {
  12154. "type": "string",
  12155. "allOf": [
  12156. {
  12157. "pattern": "^ses"
  12158. }
  12159. ]
  12160. },
  12161. "assistantMessageID": {
  12162. "type": "string",
  12163. "allOf": [
  12164. {
  12165. "pattern": "^msg_"
  12166. }
  12167. ]
  12168. },
  12169. "error": {
  12170. "$ref": "#/components/schemas/Session.Error.Unknown"
  12171. }
  12172. },
  12173. "required": ["timestamp", "sessionID", "assistantMessageID", "error"],
  12174. "additionalProperties": false
  12175. }
  12176. },
  12177. "required": ["id", "type", "data"],
  12178. "additionalProperties": false
  12179. },
  12180. "session.next.text.started": {
  12181. "type": "object",
  12182. "properties": {
  12183. "id": {
  12184. "type": "string",
  12185. "allOf": [
  12186. {
  12187. "pattern": "^evt_"
  12188. }
  12189. ]
  12190. },
  12191. "metadata": {
  12192. "type": "object"
  12193. },
  12194. "type": {
  12195. "type": "string",
  12196. "enum": ["session.next.text.started"]
  12197. },
  12198. "durable": {
  12199. "type": "object",
  12200. "properties": {
  12201. "aggregateID": {
  12202. "type": "string"
  12203. },
  12204. "seq": {
  12205. "type": "integer",
  12206. "allOf": [
  12207. {
  12208. "minimum": 0
  12209. }
  12210. ]
  12211. },
  12212. "version": {
  12213. "type": "integer",
  12214. "allOf": [
  12215. {
  12216. "minimum": 1
  12217. }
  12218. ]
  12219. }
  12220. },
  12221. "required": ["aggregateID", "seq", "version"],
  12222. "additionalProperties": false
  12223. },
  12224. "location": {
  12225. "$ref": "#/components/schemas/Location.Ref"
  12226. },
  12227. "data": {
  12228. "type": "object",
  12229. "properties": {
  12230. "timestamp": {
  12231. "type": "number"
  12232. },
  12233. "sessionID": {
  12234. "type": "string",
  12235. "allOf": [
  12236. {
  12237. "pattern": "^ses"
  12238. }
  12239. ]
  12240. },
  12241. "assistantMessageID": {
  12242. "type": "string",
  12243. "allOf": [
  12244. {
  12245. "pattern": "^msg_"
  12246. }
  12247. ]
  12248. },
  12249. "textID": {
  12250. "type": "string"
  12251. }
  12252. },
  12253. "required": ["timestamp", "sessionID", "assistantMessageID", "textID"],
  12254. "additionalProperties": false
  12255. }
  12256. },
  12257. "required": ["id", "type", "data"],
  12258. "additionalProperties": false
  12259. },
  12260. "session.next.text.ended": {
  12261. "type": "object",
  12262. "properties": {
  12263. "id": {
  12264. "type": "string",
  12265. "allOf": [
  12266. {
  12267. "pattern": "^evt_"
  12268. }
  12269. ]
  12270. },
  12271. "metadata": {
  12272. "type": "object"
  12273. },
  12274. "type": {
  12275. "type": "string",
  12276. "enum": ["session.next.text.ended"]
  12277. },
  12278. "durable": {
  12279. "type": "object",
  12280. "properties": {
  12281. "aggregateID": {
  12282. "type": "string"
  12283. },
  12284. "seq": {
  12285. "type": "integer",
  12286. "allOf": [
  12287. {
  12288. "minimum": 0
  12289. }
  12290. ]
  12291. },
  12292. "version": {
  12293. "type": "integer",
  12294. "allOf": [
  12295. {
  12296. "minimum": 1
  12297. }
  12298. ]
  12299. }
  12300. },
  12301. "required": ["aggregateID", "seq", "version"],
  12302. "additionalProperties": false
  12303. },
  12304. "location": {
  12305. "$ref": "#/components/schemas/Location.Ref"
  12306. },
  12307. "data": {
  12308. "type": "object",
  12309. "properties": {
  12310. "timestamp": {
  12311. "type": "number"
  12312. },
  12313. "sessionID": {
  12314. "type": "string",
  12315. "allOf": [
  12316. {
  12317. "pattern": "^ses"
  12318. }
  12319. ]
  12320. },
  12321. "assistantMessageID": {
  12322. "type": "string",
  12323. "allOf": [
  12324. {
  12325. "pattern": "^msg_"
  12326. }
  12327. ]
  12328. },
  12329. "textID": {
  12330. "type": "string"
  12331. },
  12332. "text": {
  12333. "type": "string"
  12334. }
  12335. },
  12336. "required": ["timestamp", "sessionID", "assistantMessageID", "textID", "text"],
  12337. "additionalProperties": false
  12338. }
  12339. },
  12340. "required": ["id", "type", "data"],
  12341. "additionalProperties": false
  12342. },
  12343. "session.next.tool.input.started": {
  12344. "type": "object",
  12345. "properties": {
  12346. "id": {
  12347. "type": "string",
  12348. "allOf": [
  12349. {
  12350. "pattern": "^evt_"
  12351. }
  12352. ]
  12353. },
  12354. "metadata": {
  12355. "type": "object"
  12356. },
  12357. "type": {
  12358. "type": "string",
  12359. "enum": ["session.next.tool.input.started"]
  12360. },
  12361. "durable": {
  12362. "type": "object",
  12363. "properties": {
  12364. "aggregateID": {
  12365. "type": "string"
  12366. },
  12367. "seq": {
  12368. "type": "integer",
  12369. "allOf": [
  12370. {
  12371. "minimum": 0
  12372. }
  12373. ]
  12374. },
  12375. "version": {
  12376. "type": "integer",
  12377. "allOf": [
  12378. {
  12379. "minimum": 1
  12380. }
  12381. ]
  12382. }
  12383. },
  12384. "required": ["aggregateID", "seq", "version"],
  12385. "additionalProperties": false
  12386. },
  12387. "location": {
  12388. "$ref": "#/components/schemas/Location.Ref"
  12389. },
  12390. "data": {
  12391. "type": "object",
  12392. "properties": {
  12393. "timestamp": {
  12394. "type": "number"
  12395. },
  12396. "sessionID": {
  12397. "type": "string",
  12398. "allOf": [
  12399. {
  12400. "pattern": "^ses"
  12401. }
  12402. ]
  12403. },
  12404. "assistantMessageID": {
  12405. "type": "string",
  12406. "allOf": [
  12407. {
  12408. "pattern": "^msg_"
  12409. }
  12410. ]
  12411. },
  12412. "callID": {
  12413. "type": "string"
  12414. },
  12415. "name": {
  12416. "type": "string"
  12417. }
  12418. },
  12419. "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "name"],
  12420. "additionalProperties": false
  12421. }
  12422. },
  12423. "required": ["id", "type", "data"],
  12424. "additionalProperties": false
  12425. },
  12426. "session.next.tool.input.ended": {
  12427. "type": "object",
  12428. "properties": {
  12429. "id": {
  12430. "type": "string",
  12431. "allOf": [
  12432. {
  12433. "pattern": "^evt_"
  12434. }
  12435. ]
  12436. },
  12437. "metadata": {
  12438. "type": "object"
  12439. },
  12440. "type": {
  12441. "type": "string",
  12442. "enum": ["session.next.tool.input.ended"]
  12443. },
  12444. "durable": {
  12445. "type": "object",
  12446. "properties": {
  12447. "aggregateID": {
  12448. "type": "string"
  12449. },
  12450. "seq": {
  12451. "type": "integer",
  12452. "allOf": [
  12453. {
  12454. "minimum": 0
  12455. }
  12456. ]
  12457. },
  12458. "version": {
  12459. "type": "integer",
  12460. "allOf": [
  12461. {
  12462. "minimum": 1
  12463. }
  12464. ]
  12465. }
  12466. },
  12467. "required": ["aggregateID", "seq", "version"],
  12468. "additionalProperties": false
  12469. },
  12470. "location": {
  12471. "$ref": "#/components/schemas/Location.Ref"
  12472. },
  12473. "data": {
  12474. "type": "object",
  12475. "properties": {
  12476. "timestamp": {
  12477. "type": "number"
  12478. },
  12479. "sessionID": {
  12480. "type": "string",
  12481. "allOf": [
  12482. {
  12483. "pattern": "^ses"
  12484. }
  12485. ]
  12486. },
  12487. "assistantMessageID": {
  12488. "type": "string",
  12489. "allOf": [
  12490. {
  12491. "pattern": "^msg_"
  12492. }
  12493. ]
  12494. },
  12495. "callID": {
  12496. "type": "string"
  12497. },
  12498. "text": {
  12499. "type": "string"
  12500. }
  12501. },
  12502. "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "text"],
  12503. "additionalProperties": false
  12504. }
  12505. },
  12506. "required": ["id", "type", "data"],
  12507. "additionalProperties": false
  12508. },
  12509. "LLM.ProviderMetadata3": {
  12510. "type": "object",
  12511. "additionalProperties": {
  12512. "type": "object"
  12513. }
  12514. },
  12515. "session.next.tool.called": {
  12516. "type": "object",
  12517. "properties": {
  12518. "id": {
  12519. "type": "string",
  12520. "allOf": [
  12521. {
  12522. "pattern": "^evt_"
  12523. }
  12524. ]
  12525. },
  12526. "metadata": {
  12527. "type": "object"
  12528. },
  12529. "type": {
  12530. "type": "string",
  12531. "enum": ["session.next.tool.called"]
  12532. },
  12533. "durable": {
  12534. "type": "object",
  12535. "properties": {
  12536. "aggregateID": {
  12537. "type": "string"
  12538. },
  12539. "seq": {
  12540. "type": "integer",
  12541. "allOf": [
  12542. {
  12543. "minimum": 0
  12544. }
  12545. ]
  12546. },
  12547. "version": {
  12548. "type": "integer",
  12549. "allOf": [
  12550. {
  12551. "minimum": 1
  12552. }
  12553. ]
  12554. }
  12555. },
  12556. "required": ["aggregateID", "seq", "version"],
  12557. "additionalProperties": false
  12558. },
  12559. "location": {
  12560. "$ref": "#/components/schemas/Location.Ref"
  12561. },
  12562. "data": {
  12563. "type": "object",
  12564. "properties": {
  12565. "timestamp": {
  12566. "type": "number"
  12567. },
  12568. "sessionID": {
  12569. "type": "string",
  12570. "allOf": [
  12571. {
  12572. "pattern": "^ses"
  12573. }
  12574. ]
  12575. },
  12576. "assistantMessageID": {
  12577. "type": "string",
  12578. "allOf": [
  12579. {
  12580. "pattern": "^msg_"
  12581. }
  12582. ]
  12583. },
  12584. "callID": {
  12585. "type": "string"
  12586. },
  12587. "tool": {
  12588. "type": "string"
  12589. },
  12590. "input": {
  12591. "type": "object"
  12592. },
  12593. "provider": {
  12594. "type": "object",
  12595. "properties": {
  12596. "executed": {
  12597. "type": "boolean"
  12598. },
  12599. "metadata": {
  12600. "$ref": "#/components/schemas/LLM.ProviderMetadata3"
  12601. }
  12602. },
  12603. "required": ["executed"],
  12604. "additionalProperties": false
  12605. }
  12606. },
  12607. "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "tool", "input", "provider"],
  12608. "additionalProperties": false
  12609. }
  12610. },
  12611. "required": ["id", "type", "data"],
  12612. "additionalProperties": false
  12613. },
  12614. "session.next.tool.progress": {
  12615. "type": "object",
  12616. "properties": {
  12617. "id": {
  12618. "type": "string",
  12619. "allOf": [
  12620. {
  12621. "pattern": "^evt_"
  12622. }
  12623. ]
  12624. },
  12625. "metadata": {
  12626. "type": "object"
  12627. },
  12628. "type": {
  12629. "type": "string",
  12630. "enum": ["session.next.tool.progress"]
  12631. },
  12632. "durable": {
  12633. "type": "object",
  12634. "properties": {
  12635. "aggregateID": {
  12636. "type": "string"
  12637. },
  12638. "seq": {
  12639. "type": "integer",
  12640. "allOf": [
  12641. {
  12642. "minimum": 0
  12643. }
  12644. ]
  12645. },
  12646. "version": {
  12647. "type": "integer",
  12648. "allOf": [
  12649. {
  12650. "minimum": 1
  12651. }
  12652. ]
  12653. }
  12654. },
  12655. "required": ["aggregateID", "seq", "version"],
  12656. "additionalProperties": false
  12657. },
  12658. "location": {
  12659. "$ref": "#/components/schemas/Location.Ref"
  12660. },
  12661. "data": {
  12662. "type": "object",
  12663. "properties": {
  12664. "timestamp": {
  12665. "type": "number"
  12666. },
  12667. "sessionID": {
  12668. "type": "string",
  12669. "allOf": [
  12670. {
  12671. "pattern": "^ses"
  12672. }
  12673. ]
  12674. },
  12675. "assistantMessageID": {
  12676. "type": "string",
  12677. "allOf": [
  12678. {
  12679. "pattern": "^msg_"
  12680. }
  12681. ]
  12682. },
  12683. "callID": {
  12684. "type": "string"
  12685. },
  12686. "structured": {
  12687. "type": "object"
  12688. },
  12689. "content": {
  12690. "type": "array",
  12691. "items": {
  12692. "$ref": "#/components/schemas/LLM.ToolContent"
  12693. }
  12694. }
  12695. },
  12696. "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "structured", "content"],
  12697. "additionalProperties": false
  12698. }
  12699. },
  12700. "required": ["id", "type", "data"],
  12701. "additionalProperties": false
  12702. },
  12703. "LLM.ProviderMetadata4": {
  12704. "type": "object",
  12705. "additionalProperties": {
  12706. "type": "object"
  12707. }
  12708. },
  12709. "session.next.tool.success": {
  12710. "type": "object",
  12711. "properties": {
  12712. "id": {
  12713. "type": "string",
  12714. "allOf": [
  12715. {
  12716. "pattern": "^evt_"
  12717. }
  12718. ]
  12719. },
  12720. "metadata": {
  12721. "type": "object"
  12722. },
  12723. "type": {
  12724. "type": "string",
  12725. "enum": ["session.next.tool.success"]
  12726. },
  12727. "durable": {
  12728. "type": "object",
  12729. "properties": {
  12730. "aggregateID": {
  12731. "type": "string"
  12732. },
  12733. "seq": {
  12734. "type": "integer",
  12735. "allOf": [
  12736. {
  12737. "minimum": 0
  12738. }
  12739. ]
  12740. },
  12741. "version": {
  12742. "type": "integer",
  12743. "allOf": [
  12744. {
  12745. "minimum": 1
  12746. }
  12747. ]
  12748. }
  12749. },
  12750. "required": ["aggregateID", "seq", "version"],
  12751. "additionalProperties": false
  12752. },
  12753. "location": {
  12754. "$ref": "#/components/schemas/Location.Ref"
  12755. },
  12756. "data": {
  12757. "type": "object",
  12758. "properties": {
  12759. "timestamp": {
  12760. "type": "number"
  12761. },
  12762. "sessionID": {
  12763. "type": "string",
  12764. "allOf": [
  12765. {
  12766. "pattern": "^ses"
  12767. }
  12768. ]
  12769. },
  12770. "assistantMessageID": {
  12771. "type": "string",
  12772. "allOf": [
  12773. {
  12774. "pattern": "^msg_"
  12775. }
  12776. ]
  12777. },
  12778. "callID": {
  12779. "type": "string"
  12780. },
  12781. "structured": {
  12782. "type": "object"
  12783. },
  12784. "content": {
  12785. "type": "array",
  12786. "items": {
  12787. "$ref": "#/components/schemas/LLM.ToolContent"
  12788. }
  12789. },
  12790. "outputPaths": {
  12791. "type": "array",
  12792. "items": {
  12793. "type": "string"
  12794. }
  12795. },
  12796. "result": {},
  12797. "provider": {
  12798. "type": "object",
  12799. "properties": {
  12800. "executed": {
  12801. "type": "boolean"
  12802. },
  12803. "metadata": {
  12804. "$ref": "#/components/schemas/LLM.ProviderMetadata4"
  12805. }
  12806. },
  12807. "required": ["executed"],
  12808. "additionalProperties": false
  12809. }
  12810. },
  12811. "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "structured", "content", "provider"],
  12812. "additionalProperties": false
  12813. }
  12814. },
  12815. "required": ["id", "type", "data"],
  12816. "additionalProperties": false
  12817. },
  12818. "LLM.ProviderMetadata5": {
  12819. "type": "object",
  12820. "additionalProperties": {
  12821. "type": "object"
  12822. }
  12823. },
  12824. "session.next.tool.failed": {
  12825. "type": "object",
  12826. "properties": {
  12827. "id": {
  12828. "type": "string",
  12829. "allOf": [
  12830. {
  12831. "pattern": "^evt_"
  12832. }
  12833. ]
  12834. },
  12835. "metadata": {
  12836. "type": "object"
  12837. },
  12838. "type": {
  12839. "type": "string",
  12840. "enum": ["session.next.tool.failed"]
  12841. },
  12842. "durable": {
  12843. "type": "object",
  12844. "properties": {
  12845. "aggregateID": {
  12846. "type": "string"
  12847. },
  12848. "seq": {
  12849. "type": "integer",
  12850. "allOf": [
  12851. {
  12852. "minimum": 0
  12853. }
  12854. ]
  12855. },
  12856. "version": {
  12857. "type": "integer",
  12858. "allOf": [
  12859. {
  12860. "minimum": 1
  12861. }
  12862. ]
  12863. }
  12864. },
  12865. "required": ["aggregateID", "seq", "version"],
  12866. "additionalProperties": false
  12867. },
  12868. "location": {
  12869. "$ref": "#/components/schemas/Location.Ref"
  12870. },
  12871. "data": {
  12872. "type": "object",
  12873. "properties": {
  12874. "timestamp": {
  12875. "type": "number"
  12876. },
  12877. "sessionID": {
  12878. "type": "string",
  12879. "allOf": [
  12880. {
  12881. "pattern": "^ses"
  12882. }
  12883. ]
  12884. },
  12885. "assistantMessageID": {
  12886. "type": "string",
  12887. "allOf": [
  12888. {
  12889. "pattern": "^msg_"
  12890. }
  12891. ]
  12892. },
  12893. "callID": {
  12894. "type": "string"
  12895. },
  12896. "error": {
  12897. "$ref": "#/components/schemas/Session.Error.Unknown"
  12898. },
  12899. "result": {},
  12900. "provider": {
  12901. "type": "object",
  12902. "properties": {
  12903. "executed": {
  12904. "type": "boolean"
  12905. },
  12906. "metadata": {
  12907. "$ref": "#/components/schemas/LLM.ProviderMetadata5"
  12908. }
  12909. },
  12910. "required": ["executed"],
  12911. "additionalProperties": false
  12912. }
  12913. },
  12914. "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "error", "provider"],
  12915. "additionalProperties": false
  12916. }
  12917. },
  12918. "required": ["id", "type", "data"],
  12919. "additionalProperties": false
  12920. },
  12921. "LLM.ProviderMetadata6": {
  12922. "type": "object",
  12923. "additionalProperties": {
  12924. "type": "object"
  12925. }
  12926. },
  12927. "session.next.reasoning.started": {
  12928. "type": "object",
  12929. "properties": {
  12930. "id": {
  12931. "type": "string",
  12932. "allOf": [
  12933. {
  12934. "pattern": "^evt_"
  12935. }
  12936. ]
  12937. },
  12938. "metadata": {
  12939. "type": "object"
  12940. },
  12941. "type": {
  12942. "type": "string",
  12943. "enum": ["session.next.reasoning.started"]
  12944. },
  12945. "durable": {
  12946. "type": "object",
  12947. "properties": {
  12948. "aggregateID": {
  12949. "type": "string"
  12950. },
  12951. "seq": {
  12952. "type": "integer",
  12953. "allOf": [
  12954. {
  12955. "minimum": 0
  12956. }
  12957. ]
  12958. },
  12959. "version": {
  12960. "type": "integer",
  12961. "allOf": [
  12962. {
  12963. "minimum": 1
  12964. }
  12965. ]
  12966. }
  12967. },
  12968. "required": ["aggregateID", "seq", "version"],
  12969. "additionalProperties": false
  12970. },
  12971. "location": {
  12972. "$ref": "#/components/schemas/Location.Ref"
  12973. },
  12974. "data": {
  12975. "type": "object",
  12976. "properties": {
  12977. "timestamp": {
  12978. "type": "number"
  12979. },
  12980. "sessionID": {
  12981. "type": "string",
  12982. "allOf": [
  12983. {
  12984. "pattern": "^ses"
  12985. }
  12986. ]
  12987. },
  12988. "assistantMessageID": {
  12989. "type": "string",
  12990. "allOf": [
  12991. {
  12992. "pattern": "^msg_"
  12993. }
  12994. ]
  12995. },
  12996. "reasoningID": {
  12997. "type": "string"
  12998. },
  12999. "providerMetadata": {
  13000. "$ref": "#/components/schemas/LLM.ProviderMetadata6"
  13001. }
  13002. },
  13003. "required": ["timestamp", "sessionID", "assistantMessageID", "reasoningID"],
  13004. "additionalProperties": false
  13005. }
  13006. },
  13007. "required": ["id", "type", "data"],
  13008. "additionalProperties": false
  13009. },
  13010. "LLM.ProviderMetadata7": {
  13011. "type": "object",
  13012. "additionalProperties": {
  13013. "type": "object"
  13014. }
  13015. },
  13016. "session.next.reasoning.ended": {
  13017. "type": "object",
  13018. "properties": {
  13019. "id": {
  13020. "type": "string",
  13021. "allOf": [
  13022. {
  13023. "pattern": "^evt_"
  13024. }
  13025. ]
  13026. },
  13027. "metadata": {
  13028. "type": "object"
  13029. },
  13030. "type": {
  13031. "type": "string",
  13032. "enum": ["session.next.reasoning.ended"]
  13033. },
  13034. "durable": {
  13035. "type": "object",
  13036. "properties": {
  13037. "aggregateID": {
  13038. "type": "string"
  13039. },
  13040. "seq": {
  13041. "type": "integer",
  13042. "allOf": [
  13043. {
  13044. "minimum": 0
  13045. }
  13046. ]
  13047. },
  13048. "version": {
  13049. "type": "integer",
  13050. "allOf": [
  13051. {
  13052. "minimum": 1
  13053. }
  13054. ]
  13055. }
  13056. },
  13057. "required": ["aggregateID", "seq", "version"],
  13058. "additionalProperties": false
  13059. },
  13060. "location": {
  13061. "$ref": "#/components/schemas/Location.Ref"
  13062. },
  13063. "data": {
  13064. "type": "object",
  13065. "properties": {
  13066. "timestamp": {
  13067. "type": "number"
  13068. },
  13069. "sessionID": {
  13070. "type": "string",
  13071. "allOf": [
  13072. {
  13073. "pattern": "^ses"
  13074. }
  13075. ]
  13076. },
  13077. "assistantMessageID": {
  13078. "type": "string",
  13079. "allOf": [
  13080. {
  13081. "pattern": "^msg_"
  13082. }
  13083. ]
  13084. },
  13085. "reasoningID": {
  13086. "type": "string"
  13087. },
  13088. "text": {
  13089. "type": "string"
  13090. },
  13091. "providerMetadata": {
  13092. "$ref": "#/components/schemas/LLM.ProviderMetadata7"
  13093. }
  13094. },
  13095. "required": ["timestamp", "sessionID", "assistantMessageID", "reasoningID", "text"],
  13096. "additionalProperties": false
  13097. }
  13098. },
  13099. "required": ["id", "type", "data"],
  13100. "additionalProperties": false
  13101. },
  13102. "session.next.retry_error": {
  13103. "type": "object",
  13104. "properties": {
  13105. "message": {
  13106. "type": "string"
  13107. },
  13108. "statusCode": {
  13109. "type": "number"
  13110. },
  13111. "isRetryable": {
  13112. "type": "boolean"
  13113. },
  13114. "responseHeaders": {
  13115. "type": "object",
  13116. "additionalProperties": {
  13117. "type": "string"
  13118. }
  13119. },
  13120. "responseBody": {
  13121. "type": "string"
  13122. },
  13123. "metadata": {
  13124. "type": "object",
  13125. "additionalProperties": {
  13126. "type": "string"
  13127. }
  13128. }
  13129. },
  13130. "required": ["message", "isRetryable"],
  13131. "additionalProperties": false
  13132. },
  13133. "session.next.retried": {
  13134. "type": "object",
  13135. "properties": {
  13136. "id": {
  13137. "type": "string",
  13138. "allOf": [
  13139. {
  13140. "pattern": "^evt_"
  13141. }
  13142. ]
  13143. },
  13144. "metadata": {
  13145. "type": "object"
  13146. },
  13147. "type": {
  13148. "type": "string",
  13149. "enum": ["session.next.retried"]
  13150. },
  13151. "durable": {
  13152. "type": "object",
  13153. "properties": {
  13154. "aggregateID": {
  13155. "type": "string"
  13156. },
  13157. "seq": {
  13158. "type": "integer",
  13159. "allOf": [
  13160. {
  13161. "minimum": 0
  13162. }
  13163. ]
  13164. },
  13165. "version": {
  13166. "type": "integer",
  13167. "allOf": [
  13168. {
  13169. "minimum": 1
  13170. }
  13171. ]
  13172. }
  13173. },
  13174. "required": ["aggregateID", "seq", "version"],
  13175. "additionalProperties": false
  13176. },
  13177. "location": {
  13178. "$ref": "#/components/schemas/Location.Ref"
  13179. },
  13180. "data": {
  13181. "type": "object",
  13182. "properties": {
  13183. "timestamp": {
  13184. "type": "number"
  13185. },
  13186. "sessionID": {
  13187. "type": "string",
  13188. "allOf": [
  13189. {
  13190. "pattern": "^ses"
  13191. }
  13192. ]
  13193. },
  13194. "attempt": {
  13195. "type": "number"
  13196. },
  13197. "error": {
  13198. "$ref": "#/components/schemas/session.next.retry_error"
  13199. }
  13200. },
  13201. "required": ["timestamp", "sessionID", "attempt", "error"],
  13202. "additionalProperties": false
  13203. }
  13204. },
  13205. "required": ["id", "type", "data"],
  13206. "additionalProperties": false
  13207. },
  13208. "session.next.compaction.started": {
  13209. "type": "object",
  13210. "properties": {
  13211. "id": {
  13212. "type": "string",
  13213. "allOf": [
  13214. {
  13215. "pattern": "^evt_"
  13216. }
  13217. ]
  13218. },
  13219. "metadata": {
  13220. "type": "object"
  13221. },
  13222. "type": {
  13223. "type": "string",
  13224. "enum": ["session.next.compaction.started"]
  13225. },
  13226. "durable": {
  13227. "type": "object",
  13228. "properties": {
  13229. "aggregateID": {
  13230. "type": "string"
  13231. },
  13232. "seq": {
  13233. "type": "integer",
  13234. "allOf": [
  13235. {
  13236. "minimum": 0
  13237. }
  13238. ]
  13239. },
  13240. "version": {
  13241. "type": "integer",
  13242. "allOf": [
  13243. {
  13244. "minimum": 1
  13245. }
  13246. ]
  13247. }
  13248. },
  13249. "required": ["aggregateID", "seq", "version"],
  13250. "additionalProperties": false
  13251. },
  13252. "location": {
  13253. "$ref": "#/components/schemas/Location.Ref"
  13254. },
  13255. "data": {
  13256. "type": "object",
  13257. "properties": {
  13258. "timestamp": {
  13259. "type": "number"
  13260. },
  13261. "sessionID": {
  13262. "type": "string",
  13263. "allOf": [
  13264. {
  13265. "pattern": "^ses"
  13266. }
  13267. ]
  13268. },
  13269. "messageID": {
  13270. "type": "string",
  13271. "allOf": [
  13272. {
  13273. "pattern": "^msg_"
  13274. }
  13275. ]
  13276. },
  13277. "reason": {
  13278. "type": "string",
  13279. "enum": ["auto", "manual"]
  13280. }
  13281. },
  13282. "required": ["timestamp", "sessionID", "messageID", "reason"],
  13283. "additionalProperties": false
  13284. }
  13285. },
  13286. "required": ["id", "type", "data"],
  13287. "additionalProperties": false
  13288. },
  13289. "session.next.compaction.ended": {
  13290. "type": "object",
  13291. "properties": {
  13292. "id": {
  13293. "type": "string",
  13294. "allOf": [
  13295. {
  13296. "pattern": "^evt_"
  13297. }
  13298. ]
  13299. },
  13300. "metadata": {
  13301. "type": "object"
  13302. },
  13303. "type": {
  13304. "type": "string",
  13305. "enum": ["session.next.compaction.ended"]
  13306. },
  13307. "durable": {
  13308. "type": "object",
  13309. "properties": {
  13310. "aggregateID": {
  13311. "type": "string"
  13312. },
  13313. "seq": {
  13314. "type": "integer",
  13315. "allOf": [
  13316. {
  13317. "minimum": 0
  13318. }
  13319. ]
  13320. },
  13321. "version": {
  13322. "type": "integer",
  13323. "allOf": [
  13324. {
  13325. "minimum": 1
  13326. }
  13327. ]
  13328. }
  13329. },
  13330. "required": ["aggregateID", "seq", "version"],
  13331. "additionalProperties": false
  13332. },
  13333. "location": {
  13334. "$ref": "#/components/schemas/Location.Ref"
  13335. },
  13336. "data": {
  13337. "type": "object",
  13338. "properties": {
  13339. "timestamp": {
  13340. "type": "number"
  13341. },
  13342. "sessionID": {
  13343. "type": "string",
  13344. "allOf": [
  13345. {
  13346. "pattern": "^ses"
  13347. }
  13348. ]
  13349. },
  13350. "messageID": {
  13351. "type": "string",
  13352. "allOf": [
  13353. {
  13354. "pattern": "^msg_"
  13355. }
  13356. ]
  13357. },
  13358. "reason": {
  13359. "type": "string",
  13360. "enum": ["auto", "manual"]
  13361. },
  13362. "text": {
  13363. "type": "string"
  13364. },
  13365. "recent": {
  13366. "type": "string"
  13367. }
  13368. },
  13369. "required": ["timestamp", "sessionID", "messageID", "reason", "text", "recent"],
  13370. "additionalProperties": false
  13371. }
  13372. },
  13373. "required": ["id", "type", "data"],
  13374. "additionalProperties": false
  13375. },
  13376. "session.next.revert.staged": {
  13377. "type": "object",
  13378. "properties": {
  13379. "id": {
  13380. "type": "string",
  13381. "allOf": [
  13382. {
  13383. "pattern": "^evt_"
  13384. }
  13385. ]
  13386. },
  13387. "metadata": {
  13388. "type": "object"
  13389. },
  13390. "type": {
  13391. "type": "string",
  13392. "enum": ["session.next.revert.staged"]
  13393. },
  13394. "durable": {
  13395. "type": "object",
  13396. "properties": {
  13397. "aggregateID": {
  13398. "type": "string"
  13399. },
  13400. "seq": {
  13401. "type": "integer",
  13402. "allOf": [
  13403. {
  13404. "minimum": 0
  13405. }
  13406. ]
  13407. },
  13408. "version": {
  13409. "type": "integer",
  13410. "allOf": [
  13411. {
  13412. "minimum": 1
  13413. }
  13414. ]
  13415. }
  13416. },
  13417. "required": ["aggregateID", "seq", "version"],
  13418. "additionalProperties": false
  13419. },
  13420. "location": {
  13421. "$ref": "#/components/schemas/Location.Ref"
  13422. },
  13423. "data": {
  13424. "type": "object",
  13425. "properties": {
  13426. "timestamp": {
  13427. "type": "number"
  13428. },
  13429. "sessionID": {
  13430. "type": "string",
  13431. "allOf": [
  13432. {
  13433. "pattern": "^ses"
  13434. }
  13435. ]
  13436. },
  13437. "revert": {
  13438. "$ref": "#/components/schemas/Revert.State"
  13439. }
  13440. },
  13441. "required": ["timestamp", "sessionID", "revert"],
  13442. "additionalProperties": false
  13443. }
  13444. },
  13445. "required": ["id", "type", "data"],
  13446. "additionalProperties": false
  13447. },
  13448. "session.next.revert.cleared": {
  13449. "type": "object",
  13450. "properties": {
  13451. "id": {
  13452. "type": "string",
  13453. "allOf": [
  13454. {
  13455. "pattern": "^evt_"
  13456. }
  13457. ]
  13458. },
  13459. "metadata": {
  13460. "type": "object"
  13461. },
  13462. "type": {
  13463. "type": "string",
  13464. "enum": ["session.next.revert.cleared"]
  13465. },
  13466. "durable": {
  13467. "type": "object",
  13468. "properties": {
  13469. "aggregateID": {
  13470. "type": "string"
  13471. },
  13472. "seq": {
  13473. "type": "integer",
  13474. "allOf": [
  13475. {
  13476. "minimum": 0
  13477. }
  13478. ]
  13479. },
  13480. "version": {
  13481. "type": "integer",
  13482. "allOf": [
  13483. {
  13484. "minimum": 1
  13485. }
  13486. ]
  13487. }
  13488. },
  13489. "required": ["aggregateID", "seq", "version"],
  13490. "additionalProperties": false
  13491. },
  13492. "location": {
  13493. "$ref": "#/components/schemas/Location.Ref"
  13494. },
  13495. "data": {
  13496. "type": "object",
  13497. "properties": {
  13498. "timestamp": {
  13499. "type": "number"
  13500. },
  13501. "sessionID": {
  13502. "type": "string",
  13503. "allOf": [
  13504. {
  13505. "pattern": "^ses"
  13506. }
  13507. ]
  13508. }
  13509. },
  13510. "required": ["timestamp", "sessionID"],
  13511. "additionalProperties": false
  13512. }
  13513. },
  13514. "required": ["id", "type", "data"],
  13515. "additionalProperties": false
  13516. },
  13517. "session.next.revert.committed": {
  13518. "type": "object",
  13519. "properties": {
  13520. "id": {
  13521. "type": "string",
  13522. "allOf": [
  13523. {
  13524. "pattern": "^evt_"
  13525. }
  13526. ]
  13527. },
  13528. "metadata": {
  13529. "type": "object"
  13530. },
  13531. "type": {
  13532. "type": "string",
  13533. "enum": ["session.next.revert.committed"]
  13534. },
  13535. "durable": {
  13536. "type": "object",
  13537. "properties": {
  13538. "aggregateID": {
  13539. "type": "string"
  13540. },
  13541. "seq": {
  13542. "type": "integer",
  13543. "allOf": [
  13544. {
  13545. "minimum": 0
  13546. }
  13547. ]
  13548. },
  13549. "version": {
  13550. "type": "integer",
  13551. "allOf": [
  13552. {
  13553. "minimum": 1
  13554. }
  13555. ]
  13556. }
  13557. },
  13558. "required": ["aggregateID", "seq", "version"],
  13559. "additionalProperties": false
  13560. },
  13561. "location": {
  13562. "$ref": "#/components/schemas/Location.Ref"
  13563. },
  13564. "data": {
  13565. "type": "object",
  13566. "properties": {
  13567. "timestamp": {
  13568. "type": "number"
  13569. },
  13570. "sessionID": {
  13571. "type": "string",
  13572. "allOf": [
  13573. {
  13574. "pattern": "^ses"
  13575. }
  13576. ]
  13577. },
  13578. "messageID": {
  13579. "type": "string",
  13580. "allOf": [
  13581. {
  13582. "pattern": "^msg_"
  13583. }
  13584. ]
  13585. }
  13586. },
  13587. "required": ["timestamp", "sessionID", "messageID"],
  13588. "additionalProperties": false
  13589. }
  13590. },
  13591. "required": ["id", "type", "data"],
  13592. "additionalProperties": false
  13593. },
  13594. "SessionDurableEvent": {
  13595. "oneOf": [
  13596. {
  13597. "$ref": "#/components/schemas/session.next.agent.switched"
  13598. },
  13599. {
  13600. "$ref": "#/components/schemas/session.next.model.switched"
  13601. },
  13602. {
  13603. "$ref": "#/components/schemas/session.next.moved"
  13604. },
  13605. {
  13606. "$ref": "#/components/schemas/session.next.renamed"
  13607. },
  13608. {
  13609. "$ref": "#/components/schemas/session.next.forked"
  13610. },
  13611. {
  13612. "$ref": "#/components/schemas/session.next.prompted"
  13613. },
  13614. {
  13615. "$ref": "#/components/schemas/session.next.prompt.admitted"
  13616. },
  13617. {
  13618. "$ref": "#/components/schemas/session.next.context.updated"
  13619. },
  13620. {
  13621. "$ref": "#/components/schemas/session.next.synthetic"
  13622. },
  13623. {
  13624. "$ref": "#/components/schemas/session.next.skill.activated"
  13625. },
  13626. {
  13627. "$ref": "#/components/schemas/session.next.shell.started"
  13628. },
  13629. {
  13630. "$ref": "#/components/schemas/session.next.shell.ended"
  13631. },
  13632. {
  13633. "$ref": "#/components/schemas/session.next.step.started"
  13634. },
  13635. {
  13636. "$ref": "#/components/schemas/session.next.step.ended"
  13637. },
  13638. {
  13639. "$ref": "#/components/schemas/session.next.step.failed"
  13640. },
  13641. {
  13642. "$ref": "#/components/schemas/session.next.text.started"
  13643. },
  13644. {
  13645. "$ref": "#/components/schemas/session.next.text.ended"
  13646. },
  13647. {
  13648. "$ref": "#/components/schemas/session.next.tool.input.started"
  13649. },
  13650. {
  13651. "$ref": "#/components/schemas/session.next.tool.input.ended"
  13652. },
  13653. {
  13654. "$ref": "#/components/schemas/session.next.tool.called"
  13655. },
  13656. {
  13657. "$ref": "#/components/schemas/session.next.tool.progress"
  13658. },
  13659. {
  13660. "$ref": "#/components/schemas/session.next.tool.success"
  13661. },
  13662. {
  13663. "$ref": "#/components/schemas/session.next.tool.failed"
  13664. },
  13665. {
  13666. "$ref": "#/components/schemas/session.next.reasoning.started"
  13667. },
  13668. {
  13669. "$ref": "#/components/schemas/session.next.reasoning.ended"
  13670. },
  13671. {
  13672. "$ref": "#/components/schemas/session.next.retried"
  13673. },
  13674. {
  13675. "$ref": "#/components/schemas/session.next.compaction.started"
  13676. },
  13677. {
  13678. "$ref": "#/components/schemas/session.next.compaction.ended"
  13679. },
  13680. {
  13681. "$ref": "#/components/schemas/session.next.revert.staged"
  13682. },
  13683. {
  13684. "$ref": "#/components/schemas/session.next.revert.cleared"
  13685. },
  13686. {
  13687. "$ref": "#/components/schemas/session.next.revert.committed"
  13688. }
  13689. ]
  13690. },
  13691. "EventLog.Synced": {
  13692. "type": "object",
  13693. "properties": {
  13694. "type": {
  13695. "type": "string",
  13696. "enum": ["log.synced"]
  13697. },
  13698. "aggregateID": {
  13699. "type": "string"
  13700. },
  13701. "seq": {
  13702. "type": "integer",
  13703. "allOf": [
  13704. {
  13705. "minimum": 0
  13706. }
  13707. ]
  13708. }
  13709. },
  13710. "required": ["type", "aggregateID"],
  13711. "additionalProperties": false,
  13712. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  13713. },
  13714. "SessionLogItem": {
  13715. "anyOf": [
  13716. {
  13717. "$ref": "#/components/schemas/SessionDurableEvent"
  13718. },
  13719. {
  13720. "$ref": "#/components/schemas/EventLog.Synced"
  13721. }
  13722. ]
  13723. },
  13724. "SessionLogItemStream": {
  13725. "type": "string",
  13726. "contentSchema": {
  13727. "$ref": "#/components/schemas/SessionLogItem"
  13728. },
  13729. "contentMediaType": "application/json"
  13730. },
  13731. "SessionMessagesResponse": {
  13732. "type": "object",
  13733. "properties": {
  13734. "data": {
  13735. "type": "array",
  13736. "items": {
  13737. "$ref": "#/components/schemas/Session.Message"
  13738. }
  13739. },
  13740. "watermark": {
  13741. "type": "integer",
  13742. "allOf": [
  13743. {
  13744. "minimum": 0
  13745. }
  13746. ]
  13747. },
  13748. "cursor": {
  13749. "type": "object",
  13750. "properties": {
  13751. "previous": {
  13752. "anyOf": [
  13753. {
  13754. "type": "string"
  13755. },
  13756. {
  13757. "type": "null"
  13758. }
  13759. ]
  13760. },
  13761. "next": {
  13762. "anyOf": [
  13763. {
  13764. "type": "string"
  13765. },
  13766. {
  13767. "type": "null"
  13768. }
  13769. ]
  13770. }
  13771. },
  13772. "additionalProperties": false
  13773. }
  13774. },
  13775. "required": ["data", "cursor"],
  13776. "additionalProperties": false
  13777. },
  13778. "Model.Api": {
  13779. "anyOf": [
  13780. {
  13781. "type": "object",
  13782. "properties": {
  13783. "id": {
  13784. "type": "string"
  13785. },
  13786. "type": {
  13787. "type": "string",
  13788. "enum": ["aisdk"]
  13789. },
  13790. "package": {
  13791. "type": "string"
  13792. },
  13793. "url": {
  13794. "type": "string"
  13795. },
  13796. "settings": {
  13797. "type": "object"
  13798. }
  13799. },
  13800. "required": ["id", "type", "package"],
  13801. "additionalProperties": false
  13802. },
  13803. {
  13804. "type": "object",
  13805. "properties": {
  13806. "id": {
  13807. "type": "string"
  13808. },
  13809. "type": {
  13810. "type": "string",
  13811. "enum": ["native"]
  13812. },
  13813. "url": {
  13814. "type": "string"
  13815. },
  13816. "settings": {
  13817. "type": "object"
  13818. }
  13819. },
  13820. "required": ["id", "type", "settings"],
  13821. "additionalProperties": false
  13822. }
  13823. ]
  13824. },
  13825. "Model.Capabilities": {
  13826. "type": "object",
  13827. "properties": {
  13828. "tools": {
  13829. "type": "boolean"
  13830. },
  13831. "input": {
  13832. "type": "array",
  13833. "items": {
  13834. "type": "string"
  13835. }
  13836. },
  13837. "output": {
  13838. "type": "array",
  13839. "items": {
  13840. "type": "string"
  13841. }
  13842. }
  13843. },
  13844. "required": ["tools", "input", "output"],
  13845. "additionalProperties": false
  13846. },
  13847. "Model.Cost": {
  13848. "type": "object",
  13849. "properties": {
  13850. "tier": {
  13851. "type": "object",
  13852. "properties": {
  13853. "type": {
  13854. "type": "string",
  13855. "enum": ["context"]
  13856. },
  13857. "size": {
  13858. "type": "integer"
  13859. }
  13860. },
  13861. "required": ["type", "size"],
  13862. "additionalProperties": false
  13863. },
  13864. "input": {
  13865. "type": "number"
  13866. },
  13867. "output": {
  13868. "type": "number"
  13869. },
  13870. "cache": {
  13871. "type": "object",
  13872. "properties": {
  13873. "read": {
  13874. "type": "number"
  13875. },
  13876. "write": {
  13877. "type": "number"
  13878. }
  13879. },
  13880. "required": ["read", "write"],
  13881. "additionalProperties": false
  13882. }
  13883. },
  13884. "required": ["input", "output", "cache"],
  13885. "additionalProperties": false
  13886. },
  13887. "ModelV2.Info": {
  13888. "type": "object",
  13889. "properties": {
  13890. "id": {
  13891. "type": "string"
  13892. },
  13893. "providerID": {
  13894. "type": "string"
  13895. },
  13896. "family": {
  13897. "type": "string"
  13898. },
  13899. "name": {
  13900. "type": "string"
  13901. },
  13902. "api": {
  13903. "$ref": "#/components/schemas/Model.Api"
  13904. },
  13905. "capabilities": {
  13906. "$ref": "#/components/schemas/Model.Capabilities"
  13907. },
  13908. "request": {
  13909. "type": "object",
  13910. "properties": {
  13911. "settings": {
  13912. "$ref": "#/components/schemas/Provider.Settings"
  13913. },
  13914. "headers": {
  13915. "type": "object",
  13916. "additionalProperties": {
  13917. "type": "string"
  13918. }
  13919. },
  13920. "body": {
  13921. "type": "object"
  13922. },
  13923. "variant": {
  13924. "type": "string"
  13925. }
  13926. },
  13927. "required": ["settings", "headers", "body"],
  13928. "additionalProperties": false
  13929. },
  13930. "variants": {
  13931. "type": "array",
  13932. "items": {
  13933. "type": "object",
  13934. "properties": {
  13935. "id": {
  13936. "type": "string"
  13937. },
  13938. "settings": {
  13939. "$ref": "#/components/schemas/Provider.Settings"
  13940. },
  13941. "headers": {
  13942. "type": "object",
  13943. "additionalProperties": {
  13944. "type": "string"
  13945. }
  13946. },
  13947. "body": {
  13948. "type": "object"
  13949. }
  13950. },
  13951. "required": ["id", "settings", "headers", "body"],
  13952. "additionalProperties": false
  13953. }
  13954. },
  13955. "time": {
  13956. "type": "object",
  13957. "properties": {
  13958. "released": {
  13959. "type": "number"
  13960. }
  13961. },
  13962. "required": ["released"],
  13963. "additionalProperties": false
  13964. },
  13965. "cost": {
  13966. "type": "array",
  13967. "items": {
  13968. "$ref": "#/components/schemas/Model.Cost"
  13969. }
  13970. },
  13971. "status": {
  13972. "type": "string",
  13973. "enum": ["alpha", "beta", "deprecated", "active"]
  13974. },
  13975. "enabled": {
  13976. "type": "boolean"
  13977. },
  13978. "limit": {
  13979. "type": "object",
  13980. "properties": {
  13981. "context": {
  13982. "type": "integer"
  13983. },
  13984. "input": {
  13985. "type": "integer"
  13986. },
  13987. "output": {
  13988. "type": "integer"
  13989. }
  13990. },
  13991. "required": ["context", "output"],
  13992. "additionalProperties": false
  13993. }
  13994. },
  13995. "required": [
  13996. "id",
  13997. "providerID",
  13998. "name",
  13999. "api",
  14000. "capabilities",
  14001. "request",
  14002. "variants",
  14003. "time",
  14004. "cost",
  14005. "status",
  14006. "enabled",
  14007. "limit"
  14008. ],
  14009. "additionalProperties": false
  14010. },
  14011. "GenerateTextResponse": {
  14012. "type": "object",
  14013. "properties": {
  14014. "data": {
  14015. "type": "object",
  14016. "properties": {
  14017. "text": {
  14018. "type": "string"
  14019. }
  14020. },
  14021. "required": ["text"],
  14022. "additionalProperties": false
  14023. }
  14024. },
  14025. "required": ["data"],
  14026. "additionalProperties": false
  14027. },
  14028. "Provider.AISDK": {
  14029. "type": "object",
  14030. "properties": {
  14031. "type": {
  14032. "type": "string",
  14033. "enum": ["aisdk"]
  14034. },
  14035. "package": {
  14036. "type": "string"
  14037. },
  14038. "url": {
  14039. "type": "string"
  14040. },
  14041. "settings": {
  14042. "type": "object"
  14043. }
  14044. },
  14045. "required": ["type", "package"],
  14046. "additionalProperties": false
  14047. },
  14048. "Provider.Native": {
  14049. "type": "object",
  14050. "properties": {
  14051. "type": {
  14052. "type": "string",
  14053. "enum": ["native"]
  14054. },
  14055. "url": {
  14056. "type": "string"
  14057. },
  14058. "settings": {
  14059. "type": "object"
  14060. }
  14061. },
  14062. "required": ["type", "settings"],
  14063. "additionalProperties": false
  14064. },
  14065. "Provider.Api": {
  14066. "anyOf": [
  14067. {
  14068. "$ref": "#/components/schemas/Provider.AISDK"
  14069. },
  14070. {
  14071. "$ref": "#/components/schemas/Provider.Native"
  14072. }
  14073. ]
  14074. },
  14075. "ProviderV2.Info": {
  14076. "type": "object",
  14077. "properties": {
  14078. "id": {
  14079. "type": "string"
  14080. },
  14081. "integrationID": {
  14082. "type": "string"
  14083. },
  14084. "name": {
  14085. "type": "string"
  14086. },
  14087. "disabled": {
  14088. "type": "boolean"
  14089. },
  14090. "api": {
  14091. "$ref": "#/components/schemas/Provider.Api"
  14092. },
  14093. "request": {
  14094. "$ref": "#/components/schemas/Provider.Request"
  14095. }
  14096. },
  14097. "required": ["id", "name", "api", "request"],
  14098. "additionalProperties": false
  14099. },
  14100. "ProviderNotFoundError": {
  14101. "type": "object",
  14102. "properties": {
  14103. "_tag": {
  14104. "type": "string",
  14105. "enum": ["ProviderNotFoundError"]
  14106. },
  14107. "providerID": {
  14108. "type": "string"
  14109. },
  14110. "message": {
  14111. "type": "string"
  14112. }
  14113. },
  14114. "required": ["_tag", "providerID", "message"],
  14115. "additionalProperties": false
  14116. },
  14117. "Integration.When": {
  14118. "type": "object",
  14119. "properties": {
  14120. "key": {
  14121. "type": "string"
  14122. },
  14123. "op": {
  14124. "type": "string",
  14125. "enum": ["eq", "neq"]
  14126. },
  14127. "value": {
  14128. "type": "string"
  14129. }
  14130. },
  14131. "required": ["key", "op", "value"],
  14132. "additionalProperties": false
  14133. },
  14134. "Integration.TextPrompt": {
  14135. "type": "object",
  14136. "properties": {
  14137. "type": {
  14138. "type": "string",
  14139. "enum": ["text"]
  14140. },
  14141. "key": {
  14142. "type": "string"
  14143. },
  14144. "message": {
  14145. "type": "string"
  14146. },
  14147. "placeholder": {
  14148. "type": "string"
  14149. },
  14150. "when": {
  14151. "$ref": "#/components/schemas/Integration.When"
  14152. }
  14153. },
  14154. "required": ["type", "key", "message"],
  14155. "additionalProperties": false
  14156. },
  14157. "Integration.SelectPrompt": {
  14158. "type": "object",
  14159. "properties": {
  14160. "type": {
  14161. "type": "string",
  14162. "enum": ["select"]
  14163. },
  14164. "key": {
  14165. "type": "string"
  14166. },
  14167. "message": {
  14168. "type": "string"
  14169. },
  14170. "options": {
  14171. "type": "array",
  14172. "items": {
  14173. "type": "object",
  14174. "properties": {
  14175. "label": {
  14176. "type": "string"
  14177. },
  14178. "value": {
  14179. "type": "string"
  14180. },
  14181. "hint": {
  14182. "type": "string"
  14183. }
  14184. },
  14185. "required": ["label", "value"],
  14186. "additionalProperties": false
  14187. }
  14188. },
  14189. "when": {
  14190. "$ref": "#/components/schemas/Integration.When"
  14191. }
  14192. },
  14193. "required": ["type", "key", "message", "options"],
  14194. "additionalProperties": false
  14195. },
  14196. "Integration.OAuthMethod": {
  14197. "type": "object",
  14198. "properties": {
  14199. "id": {
  14200. "type": "string"
  14201. },
  14202. "type": {
  14203. "type": "string",
  14204. "enum": ["oauth"]
  14205. },
  14206. "label": {
  14207. "type": "string"
  14208. },
  14209. "prompts": {
  14210. "type": "array",
  14211. "items": {
  14212. "anyOf": [
  14213. {
  14214. "$ref": "#/components/schemas/Integration.TextPrompt"
  14215. },
  14216. {
  14217. "$ref": "#/components/schemas/Integration.SelectPrompt"
  14218. }
  14219. ]
  14220. }
  14221. }
  14222. },
  14223. "required": ["id", "type", "label"],
  14224. "additionalProperties": false
  14225. },
  14226. "Integration.KeyMethod": {
  14227. "type": "object",
  14228. "properties": {
  14229. "type": {
  14230. "type": "string",
  14231. "enum": ["key"]
  14232. },
  14233. "label": {
  14234. "type": "string"
  14235. }
  14236. },
  14237. "required": ["type"],
  14238. "additionalProperties": false
  14239. },
  14240. "Integration.EnvMethod": {
  14241. "type": "object",
  14242. "properties": {
  14243. "type": {
  14244. "type": "string",
  14245. "enum": ["env"]
  14246. },
  14247. "names": {
  14248. "type": "array",
  14249. "items": {
  14250. "type": "string"
  14251. }
  14252. }
  14253. },
  14254. "required": ["type", "names"],
  14255. "additionalProperties": false
  14256. },
  14257. "Integration.Method": {
  14258. "anyOf": [
  14259. {
  14260. "$ref": "#/components/schemas/Integration.OAuthMethod"
  14261. },
  14262. {
  14263. "$ref": "#/components/schemas/Integration.KeyMethod"
  14264. },
  14265. {
  14266. "$ref": "#/components/schemas/Integration.EnvMethod"
  14267. }
  14268. ]
  14269. },
  14270. "Connection.CredentialInfo": {
  14271. "type": "object",
  14272. "properties": {
  14273. "type": {
  14274. "type": "string",
  14275. "enum": ["credential"]
  14276. },
  14277. "id": {
  14278. "type": "string"
  14279. },
  14280. "label": {
  14281. "type": "string"
  14282. }
  14283. },
  14284. "required": ["type", "id", "label"],
  14285. "additionalProperties": false
  14286. },
  14287. "Connection.EnvInfo": {
  14288. "type": "object",
  14289. "properties": {
  14290. "type": {
  14291. "type": "string",
  14292. "enum": ["env"]
  14293. },
  14294. "name": {
  14295. "type": "string"
  14296. }
  14297. },
  14298. "required": ["type", "name"],
  14299. "additionalProperties": false
  14300. },
  14301. "Connection.Info": {
  14302. "anyOf": [
  14303. {
  14304. "$ref": "#/components/schemas/Connection.CredentialInfo"
  14305. },
  14306. {
  14307. "$ref": "#/components/schemas/Connection.EnvInfo"
  14308. }
  14309. ]
  14310. },
  14311. "Integration.Info": {
  14312. "type": "object",
  14313. "properties": {
  14314. "id": {
  14315. "type": "string"
  14316. },
  14317. "name": {
  14318. "type": "string"
  14319. },
  14320. "methods": {
  14321. "type": "array",
  14322. "items": {
  14323. "$ref": "#/components/schemas/Integration.Method"
  14324. }
  14325. },
  14326. "connections": {
  14327. "type": "array",
  14328. "items": {
  14329. "$ref": "#/components/schemas/Connection.Info"
  14330. }
  14331. }
  14332. },
  14333. "required": ["id", "name", "methods", "connections"],
  14334. "additionalProperties": false
  14335. },
  14336. "Integration.Attempt": {
  14337. "type": "object",
  14338. "properties": {
  14339. "attemptID": {
  14340. "type": "string"
  14341. },
  14342. "url": {
  14343. "type": "string"
  14344. },
  14345. "instructions": {
  14346. "type": "string"
  14347. },
  14348. "mode": {
  14349. "type": "string",
  14350. "enum": ["auto", "code"]
  14351. },
  14352. "time": {
  14353. "type": "object",
  14354. "properties": {
  14355. "created": {
  14356. "anyOf": [
  14357. {
  14358. "anyOf": [
  14359. {
  14360. "type": "number"
  14361. },
  14362. {
  14363. "type": "string",
  14364. "enum": ["NaN"]
  14365. },
  14366. {
  14367. "type": "string",
  14368. "enum": ["Infinity"]
  14369. },
  14370. {
  14371. "type": "string",
  14372. "enum": ["-Infinity"]
  14373. }
  14374. ]
  14375. },
  14376. {
  14377. "type": "string",
  14378. "enum": ["Infinity", "-Infinity", "NaN"]
  14379. }
  14380. ]
  14381. },
  14382. "expires": {
  14383. "anyOf": [
  14384. {
  14385. "anyOf": [
  14386. {
  14387. "type": "number"
  14388. },
  14389. {
  14390. "type": "string",
  14391. "enum": ["NaN"]
  14392. },
  14393. {
  14394. "type": "string",
  14395. "enum": ["Infinity"]
  14396. },
  14397. {
  14398. "type": "string",
  14399. "enum": ["-Infinity"]
  14400. }
  14401. ]
  14402. },
  14403. {
  14404. "type": "string",
  14405. "enum": ["Infinity", "-Infinity", "NaN"]
  14406. }
  14407. ]
  14408. }
  14409. },
  14410. "required": ["created", "expires"],
  14411. "additionalProperties": false
  14412. }
  14413. },
  14414. "required": ["attemptID", "url", "instructions", "mode", "time"],
  14415. "additionalProperties": false
  14416. },
  14417. "Integration.AttemptStatus": {
  14418. "anyOf": [
  14419. {
  14420. "type": "object",
  14421. "properties": {
  14422. "status": {
  14423. "type": "string",
  14424. "enum": ["pending"]
  14425. },
  14426. "time": {
  14427. "type": "object",
  14428. "properties": {
  14429. "created": {
  14430. "anyOf": [
  14431. {
  14432. "anyOf": [
  14433. {
  14434. "type": "number"
  14435. },
  14436. {
  14437. "type": "string",
  14438. "enum": ["NaN"]
  14439. },
  14440. {
  14441. "type": "string",
  14442. "enum": ["Infinity"]
  14443. },
  14444. {
  14445. "type": "string",
  14446. "enum": ["-Infinity"]
  14447. }
  14448. ]
  14449. },
  14450. {
  14451. "type": "string",
  14452. "enum": ["Infinity", "-Infinity", "NaN"]
  14453. }
  14454. ]
  14455. },
  14456. "expires": {
  14457. "anyOf": [
  14458. {
  14459. "anyOf": [
  14460. {
  14461. "type": "number"
  14462. },
  14463. {
  14464. "type": "string",
  14465. "enum": ["NaN"]
  14466. },
  14467. {
  14468. "type": "string",
  14469. "enum": ["Infinity"]
  14470. },
  14471. {
  14472. "type": "string",
  14473. "enum": ["-Infinity"]
  14474. }
  14475. ]
  14476. },
  14477. {
  14478. "type": "string",
  14479. "enum": ["Infinity", "-Infinity", "NaN"]
  14480. }
  14481. ]
  14482. }
  14483. },
  14484. "required": ["created", "expires"],
  14485. "additionalProperties": false
  14486. }
  14487. },
  14488. "required": ["status", "time"],
  14489. "additionalProperties": false
  14490. },
  14491. {
  14492. "type": "object",
  14493. "properties": {
  14494. "status": {
  14495. "type": "string",
  14496. "enum": ["complete"]
  14497. },
  14498. "time": {
  14499. "type": "object",
  14500. "properties": {
  14501. "created": {
  14502. "anyOf": [
  14503. {
  14504. "anyOf": [
  14505. {
  14506. "type": "number"
  14507. },
  14508. {
  14509. "type": "string",
  14510. "enum": ["NaN"]
  14511. },
  14512. {
  14513. "type": "string",
  14514. "enum": ["Infinity"]
  14515. },
  14516. {
  14517. "type": "string",
  14518. "enum": ["-Infinity"]
  14519. }
  14520. ]
  14521. },
  14522. {
  14523. "type": "string",
  14524. "enum": ["Infinity", "-Infinity", "NaN"]
  14525. }
  14526. ]
  14527. },
  14528. "expires": {
  14529. "anyOf": [
  14530. {
  14531. "anyOf": [
  14532. {
  14533. "type": "number"
  14534. },
  14535. {
  14536. "type": "string",
  14537. "enum": ["NaN"]
  14538. },
  14539. {
  14540. "type": "string",
  14541. "enum": ["Infinity"]
  14542. },
  14543. {
  14544. "type": "string",
  14545. "enum": ["-Infinity"]
  14546. }
  14547. ]
  14548. },
  14549. {
  14550. "type": "string",
  14551. "enum": ["Infinity", "-Infinity", "NaN"]
  14552. }
  14553. ]
  14554. }
  14555. },
  14556. "required": ["created", "expires"],
  14557. "additionalProperties": false
  14558. }
  14559. },
  14560. "required": ["status", "time"],
  14561. "additionalProperties": false
  14562. },
  14563. {
  14564. "type": "object",
  14565. "properties": {
  14566. "status": {
  14567. "type": "string",
  14568. "enum": ["failed"]
  14569. },
  14570. "message": {
  14571. "type": "string"
  14572. },
  14573. "time": {
  14574. "type": "object",
  14575. "properties": {
  14576. "created": {
  14577. "anyOf": [
  14578. {
  14579. "anyOf": [
  14580. {
  14581. "type": "number"
  14582. },
  14583. {
  14584. "type": "string",
  14585. "enum": ["NaN"]
  14586. },
  14587. {
  14588. "type": "string",
  14589. "enum": ["Infinity"]
  14590. },
  14591. {
  14592. "type": "string",
  14593. "enum": ["-Infinity"]
  14594. }
  14595. ]
  14596. },
  14597. {
  14598. "type": "string",
  14599. "enum": ["Infinity", "-Infinity", "NaN"]
  14600. }
  14601. ]
  14602. },
  14603. "expires": {
  14604. "anyOf": [
  14605. {
  14606. "anyOf": [
  14607. {
  14608. "type": "number"
  14609. },
  14610. {
  14611. "type": "string",
  14612. "enum": ["NaN"]
  14613. },
  14614. {
  14615. "type": "string",
  14616. "enum": ["Infinity"]
  14617. },
  14618. {
  14619. "type": "string",
  14620. "enum": ["-Infinity"]
  14621. }
  14622. ]
  14623. },
  14624. {
  14625. "type": "string",
  14626. "enum": ["Infinity", "-Infinity", "NaN"]
  14627. }
  14628. ]
  14629. }
  14630. },
  14631. "required": ["created", "expires"],
  14632. "additionalProperties": false
  14633. }
  14634. },
  14635. "required": ["status", "message", "time"],
  14636. "additionalProperties": false
  14637. },
  14638. {
  14639. "type": "object",
  14640. "properties": {
  14641. "status": {
  14642. "type": "string",
  14643. "enum": ["expired"]
  14644. },
  14645. "time": {
  14646. "type": "object",
  14647. "properties": {
  14648. "created": {
  14649. "anyOf": [
  14650. {
  14651. "anyOf": [
  14652. {
  14653. "type": "number"
  14654. },
  14655. {
  14656. "type": "string",
  14657. "enum": ["NaN"]
  14658. },
  14659. {
  14660. "type": "string",
  14661. "enum": ["Infinity"]
  14662. },
  14663. {
  14664. "type": "string",
  14665. "enum": ["-Infinity"]
  14666. }
  14667. ]
  14668. },
  14669. {
  14670. "type": "string",
  14671. "enum": ["Infinity", "-Infinity", "NaN"]
  14672. }
  14673. ]
  14674. },
  14675. "expires": {
  14676. "anyOf": [
  14677. {
  14678. "anyOf": [
  14679. {
  14680. "type": "number"
  14681. },
  14682. {
  14683. "type": "string",
  14684. "enum": ["NaN"]
  14685. },
  14686. {
  14687. "type": "string",
  14688. "enum": ["Infinity"]
  14689. },
  14690. {
  14691. "type": "string",
  14692. "enum": ["-Infinity"]
  14693. }
  14694. ]
  14695. },
  14696. {
  14697. "type": "string",
  14698. "enum": ["Infinity", "-Infinity", "NaN"]
  14699. }
  14700. ]
  14701. }
  14702. },
  14703. "required": ["created", "expires"],
  14704. "additionalProperties": false
  14705. }
  14706. },
  14707. "required": ["status", "time"],
  14708. "additionalProperties": false
  14709. }
  14710. ]
  14711. },
  14712. "Mcp.Status.Connected": {
  14713. "type": "object",
  14714. "properties": {
  14715. "status": {
  14716. "type": "string",
  14717. "enum": ["connected"]
  14718. }
  14719. },
  14720. "required": ["status"],
  14721. "additionalProperties": false
  14722. },
  14723. "Mcp.Status.Disconnected": {
  14724. "type": "object",
  14725. "properties": {
  14726. "status": {
  14727. "type": "string",
  14728. "enum": ["disconnected"]
  14729. }
  14730. },
  14731. "required": ["status"],
  14732. "additionalProperties": false
  14733. },
  14734. "Mcp.Status.Disabled": {
  14735. "type": "object",
  14736. "properties": {
  14737. "status": {
  14738. "type": "string",
  14739. "enum": ["disabled"]
  14740. }
  14741. },
  14742. "required": ["status"],
  14743. "additionalProperties": false
  14744. },
  14745. "Mcp.Status.Failed": {
  14746. "type": "object",
  14747. "properties": {
  14748. "status": {
  14749. "type": "string",
  14750. "enum": ["failed"]
  14751. },
  14752. "error": {
  14753. "type": "string"
  14754. }
  14755. },
  14756. "required": ["status", "error"],
  14757. "additionalProperties": false
  14758. },
  14759. "Mcp.Status.NeedsAuth": {
  14760. "type": "object",
  14761. "properties": {
  14762. "status": {
  14763. "type": "string",
  14764. "enum": ["needs_auth"]
  14765. }
  14766. },
  14767. "required": ["status"],
  14768. "additionalProperties": false
  14769. },
  14770. "Mcp.Status.NeedsClientRegistration": {
  14771. "type": "object",
  14772. "properties": {
  14773. "status": {
  14774. "type": "string",
  14775. "enum": ["needs_client_registration"]
  14776. },
  14777. "error": {
  14778. "type": "string"
  14779. }
  14780. },
  14781. "required": ["status", "error"],
  14782. "additionalProperties": false
  14783. },
  14784. "Mcp.Server": {
  14785. "type": "object",
  14786. "properties": {
  14787. "name": {
  14788. "type": "string"
  14789. },
  14790. "status": {
  14791. "anyOf": [
  14792. {
  14793. "$ref": "#/components/schemas/Mcp.Status.Connected"
  14794. },
  14795. {
  14796. "$ref": "#/components/schemas/Mcp.Status.Disconnected"
  14797. },
  14798. {
  14799. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  14800. },
  14801. {
  14802. "$ref": "#/components/schemas/Mcp.Status.Failed"
  14803. },
  14804. {
  14805. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  14806. },
  14807. {
  14808. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  14809. }
  14810. ]
  14811. },
  14812. "integrationID": {
  14813. "type": "string"
  14814. }
  14815. },
  14816. "required": ["name", "status"],
  14817. "additionalProperties": false
  14818. },
  14819. "Project.Current": {
  14820. "type": "object",
  14821. "properties": {
  14822. "id": {
  14823. "type": "string"
  14824. },
  14825. "directory": {
  14826. "type": "string"
  14827. }
  14828. },
  14829. "required": ["id", "directory"],
  14830. "additionalProperties": false
  14831. },
  14832. "Project.Directory": {
  14833. "type": "object",
  14834. "properties": {
  14835. "directory": {
  14836. "type": "string"
  14837. },
  14838. "strategy": {
  14839. "type": "string"
  14840. }
  14841. },
  14842. "required": ["directory"],
  14843. "additionalProperties": false
  14844. },
  14845. "Project.Directories": {
  14846. "type": "array",
  14847. "items": {
  14848. "$ref": "#/components/schemas/Project.Directory"
  14849. }
  14850. },
  14851. "Form.Metadata": {
  14852. "type": "object"
  14853. },
  14854. "Form.When": {
  14855. "type": "object",
  14856. "properties": {
  14857. "key": {
  14858. "type": "string"
  14859. },
  14860. "op": {
  14861. "type": "string",
  14862. "enum": ["eq", "neq"]
  14863. },
  14864. "value": {
  14865. "anyOf": [
  14866. {
  14867. "type": "string"
  14868. },
  14869. {
  14870. "anyOf": [
  14871. {
  14872. "anyOf": [
  14873. {
  14874. "type": "number"
  14875. },
  14876. {
  14877. "type": "string",
  14878. "enum": ["NaN"]
  14879. },
  14880. {
  14881. "type": "string",
  14882. "enum": ["Infinity"]
  14883. },
  14884. {
  14885. "type": "string",
  14886. "enum": ["-Infinity"]
  14887. }
  14888. ]
  14889. },
  14890. {
  14891. "type": "string",
  14892. "enum": ["Infinity", "-Infinity", "NaN"]
  14893. }
  14894. ]
  14895. },
  14896. {
  14897. "type": "boolean"
  14898. }
  14899. ]
  14900. }
  14901. },
  14902. "required": ["key", "op", "value"],
  14903. "additionalProperties": false
  14904. },
  14905. "Form.Option": {
  14906. "type": "object",
  14907. "properties": {
  14908. "value": {
  14909. "type": "string"
  14910. },
  14911. "label": {
  14912. "type": "string"
  14913. },
  14914. "description": {
  14915. "type": "string"
  14916. }
  14917. },
  14918. "required": ["value", "label"],
  14919. "additionalProperties": false
  14920. },
  14921. "Form.StringField": {
  14922. "type": "object",
  14923. "properties": {
  14924. "key": {
  14925. "type": "string"
  14926. },
  14927. "title": {
  14928. "type": "string"
  14929. },
  14930. "description": {
  14931. "type": "string"
  14932. },
  14933. "required": {
  14934. "type": "boolean"
  14935. },
  14936. "when": {
  14937. "type": "array",
  14938. "items": {
  14939. "$ref": "#/components/schemas/Form.When"
  14940. }
  14941. },
  14942. "type": {
  14943. "type": "string",
  14944. "enum": ["string"]
  14945. },
  14946. "format": {
  14947. "type": "string",
  14948. "enum": ["email", "uri", "date", "date-time"]
  14949. },
  14950. "minLength": {
  14951. "type": "integer",
  14952. "allOf": [
  14953. {
  14954. "minimum": 0
  14955. }
  14956. ]
  14957. },
  14958. "maxLength": {
  14959. "type": "integer",
  14960. "allOf": [
  14961. {
  14962. "minimum": 0
  14963. }
  14964. ]
  14965. },
  14966. "pattern": {
  14967. "type": "string"
  14968. },
  14969. "placeholder": {
  14970. "type": "string"
  14971. },
  14972. "default": {
  14973. "type": "string"
  14974. },
  14975. "options": {
  14976. "type": "array",
  14977. "items": {
  14978. "$ref": "#/components/schemas/Form.Option"
  14979. }
  14980. },
  14981. "custom": {
  14982. "type": "boolean"
  14983. }
  14984. },
  14985. "required": ["key", "type"],
  14986. "additionalProperties": false
  14987. },
  14988. "Form.NumberField": {
  14989. "type": "object",
  14990. "properties": {
  14991. "key": {
  14992. "type": "string"
  14993. },
  14994. "title": {
  14995. "type": "string"
  14996. },
  14997. "description": {
  14998. "type": "string"
  14999. },
  15000. "required": {
  15001. "type": "boolean"
  15002. },
  15003. "when": {
  15004. "type": "array",
  15005. "items": {
  15006. "$ref": "#/components/schemas/Form.When"
  15007. }
  15008. },
  15009. "type": {
  15010. "type": "string",
  15011. "enum": ["number"]
  15012. },
  15013. "minimum": {
  15014. "anyOf": [
  15015. {
  15016. "anyOf": [
  15017. {
  15018. "type": "number"
  15019. },
  15020. {
  15021. "type": "string",
  15022. "enum": ["NaN"]
  15023. },
  15024. {
  15025. "type": "string",
  15026. "enum": ["Infinity"]
  15027. },
  15028. {
  15029. "type": "string",
  15030. "enum": ["-Infinity"]
  15031. }
  15032. ]
  15033. },
  15034. {
  15035. "type": "string",
  15036. "enum": ["Infinity", "-Infinity", "NaN"]
  15037. }
  15038. ]
  15039. },
  15040. "maximum": {
  15041. "anyOf": [
  15042. {
  15043. "anyOf": [
  15044. {
  15045. "type": "number"
  15046. },
  15047. {
  15048. "type": "string",
  15049. "enum": ["NaN"]
  15050. },
  15051. {
  15052. "type": "string",
  15053. "enum": ["Infinity"]
  15054. },
  15055. {
  15056. "type": "string",
  15057. "enum": ["-Infinity"]
  15058. }
  15059. ]
  15060. },
  15061. {
  15062. "type": "string",
  15063. "enum": ["Infinity", "-Infinity", "NaN"]
  15064. }
  15065. ]
  15066. },
  15067. "default": {
  15068. "anyOf": [
  15069. {
  15070. "anyOf": [
  15071. {
  15072. "type": "number"
  15073. },
  15074. {
  15075. "type": "string",
  15076. "enum": ["NaN"]
  15077. },
  15078. {
  15079. "type": "string",
  15080. "enum": ["Infinity"]
  15081. },
  15082. {
  15083. "type": "string",
  15084. "enum": ["-Infinity"]
  15085. }
  15086. ]
  15087. },
  15088. {
  15089. "type": "string",
  15090. "enum": ["Infinity", "-Infinity", "NaN"]
  15091. }
  15092. ]
  15093. }
  15094. },
  15095. "required": ["key", "type"],
  15096. "additionalProperties": false
  15097. },
  15098. "Form.IntegerField": {
  15099. "type": "object",
  15100. "properties": {
  15101. "key": {
  15102. "type": "string"
  15103. },
  15104. "title": {
  15105. "type": "string"
  15106. },
  15107. "description": {
  15108. "type": "string"
  15109. },
  15110. "required": {
  15111. "type": "boolean"
  15112. },
  15113. "when": {
  15114. "type": "array",
  15115. "items": {
  15116. "$ref": "#/components/schemas/Form.When"
  15117. }
  15118. },
  15119. "type": {
  15120. "type": "string",
  15121. "enum": ["integer"]
  15122. },
  15123. "minimum": {
  15124. "anyOf": [
  15125. {
  15126. "anyOf": [
  15127. {
  15128. "type": "number"
  15129. },
  15130. {
  15131. "type": "string",
  15132. "enum": ["NaN"]
  15133. },
  15134. {
  15135. "type": "string",
  15136. "enum": ["Infinity"]
  15137. },
  15138. {
  15139. "type": "string",
  15140. "enum": ["-Infinity"]
  15141. }
  15142. ]
  15143. },
  15144. {
  15145. "type": "string",
  15146. "enum": ["Infinity", "-Infinity", "NaN"]
  15147. }
  15148. ]
  15149. },
  15150. "maximum": {
  15151. "anyOf": [
  15152. {
  15153. "anyOf": [
  15154. {
  15155. "type": "number"
  15156. },
  15157. {
  15158. "type": "string",
  15159. "enum": ["NaN"]
  15160. },
  15161. {
  15162. "type": "string",
  15163. "enum": ["Infinity"]
  15164. },
  15165. {
  15166. "type": "string",
  15167. "enum": ["-Infinity"]
  15168. }
  15169. ]
  15170. },
  15171. {
  15172. "type": "string",
  15173. "enum": ["Infinity", "-Infinity", "NaN"]
  15174. }
  15175. ]
  15176. },
  15177. "default": {
  15178. "anyOf": [
  15179. {
  15180. "anyOf": [
  15181. {
  15182. "type": "number"
  15183. },
  15184. {
  15185. "type": "string",
  15186. "enum": ["NaN"]
  15187. },
  15188. {
  15189. "type": "string",
  15190. "enum": ["Infinity"]
  15191. },
  15192. {
  15193. "type": "string",
  15194. "enum": ["-Infinity"]
  15195. }
  15196. ]
  15197. },
  15198. {
  15199. "type": "string",
  15200. "enum": ["Infinity", "-Infinity", "NaN"]
  15201. }
  15202. ]
  15203. }
  15204. },
  15205. "required": ["key", "type"],
  15206. "additionalProperties": false
  15207. },
  15208. "Form.BooleanField": {
  15209. "type": "object",
  15210. "properties": {
  15211. "key": {
  15212. "type": "string"
  15213. },
  15214. "title": {
  15215. "type": "string"
  15216. },
  15217. "description": {
  15218. "type": "string"
  15219. },
  15220. "required": {
  15221. "type": "boolean"
  15222. },
  15223. "when": {
  15224. "type": "array",
  15225. "items": {
  15226. "$ref": "#/components/schemas/Form.When"
  15227. }
  15228. },
  15229. "type": {
  15230. "type": "string",
  15231. "enum": ["boolean"]
  15232. },
  15233. "default": {
  15234. "type": "boolean"
  15235. }
  15236. },
  15237. "required": ["key", "type"],
  15238. "additionalProperties": false
  15239. },
  15240. "Form.MultiselectField": {
  15241. "type": "object",
  15242. "properties": {
  15243. "key": {
  15244. "type": "string"
  15245. },
  15246. "title": {
  15247. "type": "string"
  15248. },
  15249. "description": {
  15250. "type": "string"
  15251. },
  15252. "required": {
  15253. "type": "boolean"
  15254. },
  15255. "when": {
  15256. "type": "array",
  15257. "items": {
  15258. "$ref": "#/components/schemas/Form.When"
  15259. }
  15260. },
  15261. "type": {
  15262. "type": "string",
  15263. "enum": ["multiselect"]
  15264. },
  15265. "options": {
  15266. "type": "array",
  15267. "items": {
  15268. "$ref": "#/components/schemas/Form.Option"
  15269. }
  15270. },
  15271. "minItems": {
  15272. "type": "integer",
  15273. "allOf": [
  15274. {
  15275. "minimum": 0
  15276. }
  15277. ]
  15278. },
  15279. "maxItems": {
  15280. "type": "integer",
  15281. "allOf": [
  15282. {
  15283. "minimum": 0
  15284. }
  15285. ]
  15286. },
  15287. "custom": {
  15288. "type": "boolean"
  15289. },
  15290. "default": {
  15291. "type": "array",
  15292. "items": {
  15293. "type": "string"
  15294. }
  15295. }
  15296. },
  15297. "required": ["key", "type", "options"],
  15298. "additionalProperties": false
  15299. },
  15300. "Form.FormInfo": {
  15301. "type": "object",
  15302. "properties": {
  15303. "id": {
  15304. "type": "string",
  15305. "allOf": [
  15306. {
  15307. "pattern": "^frm_"
  15308. }
  15309. ]
  15310. },
  15311. "sessionID": {
  15312. "type": "string"
  15313. },
  15314. "title": {
  15315. "type": "string"
  15316. },
  15317. "metadata": {
  15318. "$ref": "#/components/schemas/Form.Metadata"
  15319. },
  15320. "mode": {
  15321. "type": "string",
  15322. "enum": ["form"]
  15323. },
  15324. "fields": {
  15325. "type": "array",
  15326. "items": {
  15327. "anyOf": [
  15328. {
  15329. "$ref": "#/components/schemas/Form.StringField"
  15330. },
  15331. {
  15332. "$ref": "#/components/schemas/Form.NumberField"
  15333. },
  15334. {
  15335. "$ref": "#/components/schemas/Form.IntegerField"
  15336. },
  15337. {
  15338. "$ref": "#/components/schemas/Form.BooleanField"
  15339. },
  15340. {
  15341. "$ref": "#/components/schemas/Form.MultiselectField"
  15342. }
  15343. ]
  15344. }
  15345. }
  15346. },
  15347. "required": ["id", "sessionID", "mode", "fields"],
  15348. "additionalProperties": false
  15349. },
  15350. "Form.UrlInfo": {
  15351. "type": "object",
  15352. "properties": {
  15353. "id": {
  15354. "type": "string",
  15355. "allOf": [
  15356. {
  15357. "pattern": "^frm_"
  15358. }
  15359. ]
  15360. },
  15361. "sessionID": {
  15362. "type": "string"
  15363. },
  15364. "title": {
  15365. "type": "string"
  15366. },
  15367. "metadata": {
  15368. "$ref": "#/components/schemas/Form.Metadata"
  15369. },
  15370. "mode": {
  15371. "type": "string",
  15372. "enum": ["url"]
  15373. },
  15374. "url": {
  15375. "type": "string"
  15376. }
  15377. },
  15378. "required": ["id", "sessionID", "mode", "url"],
  15379. "additionalProperties": false
  15380. },
  15381. "Form.CreatePayload": {
  15382. "type": "object",
  15383. "properties": {
  15384. "id": {
  15385. "anyOf": [
  15386. {
  15387. "type": "string",
  15388. "allOf": [
  15389. {
  15390. "pattern": "^frm_"
  15391. }
  15392. ]
  15393. },
  15394. {
  15395. "type": "null"
  15396. }
  15397. ]
  15398. },
  15399. "title": {
  15400. "type": "string"
  15401. },
  15402. "metadata": {
  15403. "$ref": "#/components/schemas/Form.Metadata"
  15404. },
  15405. "mode": {
  15406. "type": "string",
  15407. "enum": ["form", "url"]
  15408. },
  15409. "fields": {
  15410. "anyOf": [
  15411. {
  15412. "type": "array",
  15413. "items": {
  15414. "anyOf": [
  15415. {
  15416. "$ref": "#/components/schemas/Form.StringField"
  15417. },
  15418. {
  15419. "$ref": "#/components/schemas/Form.NumberField"
  15420. },
  15421. {
  15422. "$ref": "#/components/schemas/Form.IntegerField"
  15423. },
  15424. {
  15425. "$ref": "#/components/schemas/Form.BooleanField"
  15426. },
  15427. {
  15428. "$ref": "#/components/schemas/Form.MultiselectField"
  15429. }
  15430. ]
  15431. }
  15432. },
  15433. {
  15434. "type": "null"
  15435. }
  15436. ]
  15437. },
  15438. "url": {
  15439. "anyOf": [
  15440. {
  15441. "type": "string"
  15442. },
  15443. {
  15444. "type": "null"
  15445. }
  15446. ]
  15447. }
  15448. },
  15449. "required": ["mode"],
  15450. "additionalProperties": false
  15451. },
  15452. "FormNotFoundError": {
  15453. "type": "object",
  15454. "properties": {
  15455. "_tag": {
  15456. "type": "string",
  15457. "enum": ["FormNotFoundError"]
  15458. },
  15459. "id": {
  15460. "type": "string"
  15461. },
  15462. "message": {
  15463. "type": "string"
  15464. }
  15465. },
  15466. "required": ["_tag", "id", "message"],
  15467. "additionalProperties": false
  15468. },
  15469. "Form.Value": {
  15470. "anyOf": [
  15471. {
  15472. "type": "string"
  15473. },
  15474. {
  15475. "anyOf": [
  15476. {
  15477. "anyOf": [
  15478. {
  15479. "type": "number"
  15480. },
  15481. {
  15482. "type": "string",
  15483. "enum": ["NaN"]
  15484. },
  15485. {
  15486. "type": "string",
  15487. "enum": ["Infinity"]
  15488. },
  15489. {
  15490. "type": "string",
  15491. "enum": ["-Infinity"]
  15492. }
  15493. ]
  15494. },
  15495. {
  15496. "type": "string",
  15497. "enum": ["Infinity", "-Infinity", "NaN"]
  15498. }
  15499. ]
  15500. },
  15501. {
  15502. "type": "boolean"
  15503. },
  15504. {
  15505. "type": "array",
  15506. "items": {
  15507. "type": "string"
  15508. }
  15509. }
  15510. ]
  15511. },
  15512. "Form.Answer": {
  15513. "type": "object",
  15514. "additionalProperties": {
  15515. "$ref": "#/components/schemas/Form.Value"
  15516. }
  15517. },
  15518. "Form.State": {
  15519. "anyOf": [
  15520. {
  15521. "type": "object",
  15522. "properties": {
  15523. "status": {
  15524. "type": "string",
  15525. "enum": ["pending"]
  15526. }
  15527. },
  15528. "required": ["status"],
  15529. "additionalProperties": false
  15530. },
  15531. {
  15532. "type": "object",
  15533. "properties": {
  15534. "status": {
  15535. "type": "string",
  15536. "enum": ["answered"]
  15537. },
  15538. "answer": {
  15539. "$ref": "#/components/schemas/Form.Answer"
  15540. }
  15541. },
  15542. "required": ["status", "answer"],
  15543. "additionalProperties": false
  15544. },
  15545. {
  15546. "type": "object",
  15547. "properties": {
  15548. "status": {
  15549. "type": "string",
  15550. "enum": ["cancelled"]
  15551. }
  15552. },
  15553. "required": ["status"],
  15554. "additionalProperties": false
  15555. }
  15556. ]
  15557. },
  15558. "Form.Reply": {
  15559. "type": "object",
  15560. "properties": {
  15561. "answer": {
  15562. "$ref": "#/components/schemas/Form.Answer"
  15563. }
  15564. },
  15565. "required": ["answer"],
  15566. "additionalProperties": false
  15567. },
  15568. "FormAlreadySettledError": {
  15569. "type": "object",
  15570. "properties": {
  15571. "_tag": {
  15572. "type": "string",
  15573. "enum": ["FormAlreadySettledError"]
  15574. },
  15575. "id": {
  15576. "type": "string"
  15577. },
  15578. "message": {
  15579. "type": "string"
  15580. }
  15581. },
  15582. "required": ["_tag", "id", "message"],
  15583. "additionalProperties": false
  15584. },
  15585. "FormInvalidAnswerError": {
  15586. "type": "object",
  15587. "properties": {
  15588. "_tag": {
  15589. "type": "string",
  15590. "enum": ["FormInvalidAnswerError"]
  15591. },
  15592. "id": {
  15593. "type": "string"
  15594. },
  15595. "message": {
  15596. "type": "string"
  15597. }
  15598. },
  15599. "required": ["_tag", "id", "message"],
  15600. "additionalProperties": false
  15601. },
  15602. "PermissionV2.Source": {
  15603. "anyOf": [
  15604. {
  15605. "type": "object",
  15606. "properties": {
  15607. "type": {
  15608. "type": "string",
  15609. "enum": ["tool"]
  15610. },
  15611. "messageID": {
  15612. "type": "string"
  15613. },
  15614. "callID": {
  15615. "type": "string"
  15616. }
  15617. },
  15618. "required": ["type", "messageID", "callID"],
  15619. "additionalProperties": false
  15620. }
  15621. ]
  15622. },
  15623. "PermissionV2.Request": {
  15624. "type": "object",
  15625. "properties": {
  15626. "id": {
  15627. "type": "string",
  15628. "allOf": [
  15629. {
  15630. "pattern": "^per"
  15631. }
  15632. ]
  15633. },
  15634. "sessionID": {
  15635. "type": "string",
  15636. "allOf": [
  15637. {
  15638. "pattern": "^ses"
  15639. }
  15640. ]
  15641. },
  15642. "action": {
  15643. "type": "string"
  15644. },
  15645. "resources": {
  15646. "type": "array",
  15647. "items": {
  15648. "type": "string"
  15649. }
  15650. },
  15651. "save": {
  15652. "type": "array",
  15653. "items": {
  15654. "type": "string"
  15655. }
  15656. },
  15657. "metadata": {
  15658. "type": "object"
  15659. },
  15660. "source": {
  15661. "$ref": "#/components/schemas/PermissionV2.Source"
  15662. }
  15663. },
  15664. "required": ["id", "sessionID", "action", "resources"],
  15665. "additionalProperties": false
  15666. },
  15667. "PermissionSaved.Info": {
  15668. "type": "object",
  15669. "properties": {
  15670. "id": {
  15671. "type": "string"
  15672. },
  15673. "projectID": {
  15674. "type": "string"
  15675. },
  15676. "action": {
  15677. "type": "string"
  15678. },
  15679. "resource": {
  15680. "type": "string"
  15681. }
  15682. },
  15683. "required": ["id", "projectID", "action", "resource"],
  15684. "additionalProperties": false
  15685. },
  15686. "PermissionNotFoundError": {
  15687. "type": "object",
  15688. "properties": {
  15689. "_tag": {
  15690. "type": "string",
  15691. "enum": ["PermissionNotFoundError"]
  15692. },
  15693. "requestID": {
  15694. "type": "string"
  15695. },
  15696. "message": {
  15697. "type": "string"
  15698. }
  15699. },
  15700. "required": ["_tag", "requestID", "message"],
  15701. "additionalProperties": false
  15702. },
  15703. "PermissionV2.Reply": {
  15704. "type": "string",
  15705. "enum": ["once", "always", "reject"]
  15706. },
  15707. "FileSystem.Entry": {
  15708. "type": "object",
  15709. "properties": {
  15710. "path": {
  15711. "type": "string"
  15712. },
  15713. "type": {
  15714. "type": "string",
  15715. "enum": ["file", "directory"]
  15716. }
  15717. },
  15718. "required": ["path", "type"],
  15719. "additionalProperties": false
  15720. },
  15721. "CommandV2.Info": {
  15722. "type": "object",
  15723. "properties": {
  15724. "name": {
  15725. "type": "string"
  15726. },
  15727. "template": {
  15728. "type": "string"
  15729. },
  15730. "description": {
  15731. "type": "string"
  15732. },
  15733. "agent": {
  15734. "type": "string"
  15735. },
  15736. "model": {
  15737. "$ref": "#/components/schemas/Model.Ref"
  15738. },
  15739. "subtask": {
  15740. "type": "boolean"
  15741. }
  15742. },
  15743. "required": ["name", "template"],
  15744. "additionalProperties": false
  15745. },
  15746. "SkillV2.Info": {
  15747. "type": "object",
  15748. "properties": {
  15749. "name": {
  15750. "type": "string"
  15751. },
  15752. "description": {
  15753. "type": "string"
  15754. },
  15755. "slash": {
  15756. "type": "boolean"
  15757. },
  15758. "autoinvoke": {
  15759. "type": "boolean"
  15760. },
  15761. "location": {
  15762. "type": "string"
  15763. },
  15764. "content": {
  15765. "type": "string"
  15766. }
  15767. },
  15768. "required": ["name", "location", "content"],
  15769. "additionalProperties": false
  15770. },
  15771. "models-dev.refreshed": {
  15772. "type": "object",
  15773. "properties": {
  15774. "id": {
  15775. "type": "string",
  15776. "allOf": [
  15777. {
  15778. "pattern": "^evt_"
  15779. }
  15780. ]
  15781. },
  15782. "metadata": {
  15783. "type": "object"
  15784. },
  15785. "type": {
  15786. "type": "string",
  15787. "enum": ["models-dev.refreshed"]
  15788. },
  15789. "durable": {
  15790. "type": "object",
  15791. "properties": {
  15792. "aggregateID": {
  15793. "type": "string"
  15794. },
  15795. "seq": {
  15796. "type": "integer",
  15797. "allOf": [
  15798. {
  15799. "minimum": 0
  15800. }
  15801. ]
  15802. },
  15803. "version": {
  15804. "type": "integer",
  15805. "allOf": [
  15806. {
  15807. "minimum": 1
  15808. }
  15809. ]
  15810. }
  15811. },
  15812. "required": ["aggregateID", "seq", "version"],
  15813. "additionalProperties": false
  15814. },
  15815. "location": {
  15816. "$ref": "#/components/schemas/Location.Ref"
  15817. },
  15818. "data": {
  15819. "anyOf": [
  15820. {
  15821. "type": "object"
  15822. },
  15823. {
  15824. "type": "array"
  15825. }
  15826. ]
  15827. }
  15828. },
  15829. "required": ["id", "type", "data"],
  15830. "additionalProperties": false
  15831. },
  15832. "integration.updated": {
  15833. "type": "object",
  15834. "properties": {
  15835. "id": {
  15836. "type": "string",
  15837. "allOf": [
  15838. {
  15839. "pattern": "^evt_"
  15840. }
  15841. ]
  15842. },
  15843. "metadata": {
  15844. "type": "object"
  15845. },
  15846. "type": {
  15847. "type": "string",
  15848. "enum": ["integration.updated"]
  15849. },
  15850. "durable": {
  15851. "type": "object",
  15852. "properties": {
  15853. "aggregateID": {
  15854. "type": "string"
  15855. },
  15856. "seq": {
  15857. "type": "integer",
  15858. "allOf": [
  15859. {
  15860. "minimum": 0
  15861. }
  15862. ]
  15863. },
  15864. "version": {
  15865. "type": "integer",
  15866. "allOf": [
  15867. {
  15868. "minimum": 1
  15869. }
  15870. ]
  15871. }
  15872. },
  15873. "required": ["aggregateID", "seq", "version"],
  15874. "additionalProperties": false
  15875. },
  15876. "location": {
  15877. "$ref": "#/components/schemas/Location.Ref"
  15878. },
  15879. "data": {
  15880. "anyOf": [
  15881. {
  15882. "type": "object"
  15883. },
  15884. {
  15885. "type": "array"
  15886. }
  15887. ]
  15888. }
  15889. },
  15890. "required": ["id", "type", "data"],
  15891. "additionalProperties": false
  15892. },
  15893. "integration.connection.updated": {
  15894. "type": "object",
  15895. "properties": {
  15896. "id": {
  15897. "type": "string",
  15898. "allOf": [
  15899. {
  15900. "pattern": "^evt_"
  15901. }
  15902. ]
  15903. },
  15904. "metadata": {
  15905. "type": "object"
  15906. },
  15907. "type": {
  15908. "type": "string",
  15909. "enum": ["integration.connection.updated"]
  15910. },
  15911. "durable": {
  15912. "type": "object",
  15913. "properties": {
  15914. "aggregateID": {
  15915. "type": "string"
  15916. },
  15917. "seq": {
  15918. "type": "integer",
  15919. "allOf": [
  15920. {
  15921. "minimum": 0
  15922. }
  15923. ]
  15924. },
  15925. "version": {
  15926. "type": "integer",
  15927. "allOf": [
  15928. {
  15929. "minimum": 1
  15930. }
  15931. ]
  15932. }
  15933. },
  15934. "required": ["aggregateID", "seq", "version"],
  15935. "additionalProperties": false
  15936. },
  15937. "location": {
  15938. "$ref": "#/components/schemas/Location.Ref"
  15939. },
  15940. "data": {
  15941. "type": "object",
  15942. "properties": {
  15943. "integrationID": {
  15944. "type": "string"
  15945. }
  15946. },
  15947. "required": ["integrationID"],
  15948. "additionalProperties": false
  15949. }
  15950. },
  15951. "required": ["id", "type", "data"],
  15952. "additionalProperties": false
  15953. },
  15954. "catalog.updated": {
  15955. "type": "object",
  15956. "properties": {
  15957. "id": {
  15958. "type": "string",
  15959. "allOf": [
  15960. {
  15961. "pattern": "^evt_"
  15962. }
  15963. ]
  15964. },
  15965. "metadata": {
  15966. "type": "object"
  15967. },
  15968. "type": {
  15969. "type": "string",
  15970. "enum": ["catalog.updated"]
  15971. },
  15972. "durable": {
  15973. "type": "object",
  15974. "properties": {
  15975. "aggregateID": {
  15976. "type": "string"
  15977. },
  15978. "seq": {
  15979. "type": "integer",
  15980. "allOf": [
  15981. {
  15982. "minimum": 0
  15983. }
  15984. ]
  15985. },
  15986. "version": {
  15987. "type": "integer",
  15988. "allOf": [
  15989. {
  15990. "minimum": 1
  15991. }
  15992. ]
  15993. }
  15994. },
  15995. "required": ["aggregateID", "seq", "version"],
  15996. "additionalProperties": false
  15997. },
  15998. "location": {
  15999. "$ref": "#/components/schemas/Location.Ref"
  16000. },
  16001. "data": {
  16002. "anyOf": [
  16003. {
  16004. "type": "object"
  16005. },
  16006. {
  16007. "type": "array"
  16008. }
  16009. ]
  16010. }
  16011. },
  16012. "required": ["id", "type", "data"],
  16013. "additionalProperties": false
  16014. },
  16015. "agent.updated": {
  16016. "type": "object",
  16017. "properties": {
  16018. "id": {
  16019. "type": "string",
  16020. "allOf": [
  16021. {
  16022. "pattern": "^evt_"
  16023. }
  16024. ]
  16025. },
  16026. "metadata": {
  16027. "type": "object"
  16028. },
  16029. "type": {
  16030. "type": "string",
  16031. "enum": ["agent.updated"]
  16032. },
  16033. "durable": {
  16034. "type": "object",
  16035. "properties": {
  16036. "aggregateID": {
  16037. "type": "string"
  16038. },
  16039. "seq": {
  16040. "type": "integer",
  16041. "allOf": [
  16042. {
  16043. "minimum": 0
  16044. }
  16045. ]
  16046. },
  16047. "version": {
  16048. "type": "integer",
  16049. "allOf": [
  16050. {
  16051. "minimum": 1
  16052. }
  16053. ]
  16054. }
  16055. },
  16056. "required": ["aggregateID", "seq", "version"],
  16057. "additionalProperties": false
  16058. },
  16059. "location": {
  16060. "$ref": "#/components/schemas/Location.Ref"
  16061. },
  16062. "data": {
  16063. "anyOf": [
  16064. {
  16065. "type": "object"
  16066. },
  16067. {
  16068. "type": "array"
  16069. }
  16070. ]
  16071. }
  16072. },
  16073. "required": ["id", "type", "data"],
  16074. "additionalProperties": false
  16075. },
  16076. "SnapshotFileDiff": {
  16077. "type": "object",
  16078. "properties": {
  16079. "file": {
  16080. "type": "string"
  16081. },
  16082. "patch": {
  16083. "type": "string"
  16084. },
  16085. "additions": {
  16086. "type": "number"
  16087. },
  16088. "deletions": {
  16089. "type": "number"
  16090. },
  16091. "status": {
  16092. "type": "string",
  16093. "enum": ["added", "deleted", "modified"]
  16094. }
  16095. },
  16096. "required": ["additions", "deletions"],
  16097. "additionalProperties": false
  16098. },
  16099. "PermissionAction": {
  16100. "type": "string",
  16101. "enum": ["allow", "deny", "ask"]
  16102. },
  16103. "PermissionRule": {
  16104. "type": "object",
  16105. "properties": {
  16106. "permission": {
  16107. "type": "string"
  16108. },
  16109. "pattern": {
  16110. "type": "string"
  16111. },
  16112. "action": {
  16113. "$ref": "#/components/schemas/PermissionAction"
  16114. }
  16115. },
  16116. "required": ["permission", "pattern", "action"],
  16117. "additionalProperties": false
  16118. },
  16119. "PermissionRuleset": {
  16120. "type": "array",
  16121. "items": {
  16122. "$ref": "#/components/schemas/PermissionRule"
  16123. }
  16124. },
  16125. "Session": {
  16126. "type": "object",
  16127. "properties": {
  16128. "id": {
  16129. "type": "string",
  16130. "allOf": [
  16131. {
  16132. "pattern": "^ses"
  16133. }
  16134. ]
  16135. },
  16136. "slug": {
  16137. "type": "string"
  16138. },
  16139. "projectID": {
  16140. "type": "string"
  16141. },
  16142. "workspaceID": {
  16143. "type": "string",
  16144. "allOf": [
  16145. {
  16146. "pattern": "^wrk"
  16147. }
  16148. ]
  16149. },
  16150. "directory": {
  16151. "type": "string"
  16152. },
  16153. "path": {
  16154. "type": "string"
  16155. },
  16156. "parentID": {
  16157. "type": "string",
  16158. "allOf": [
  16159. {
  16160. "pattern": "^ses"
  16161. }
  16162. ]
  16163. },
  16164. "summary": {
  16165. "type": "object",
  16166. "properties": {
  16167. "additions": {
  16168. "type": "number"
  16169. },
  16170. "deletions": {
  16171. "type": "number"
  16172. },
  16173. "files": {
  16174. "type": "number"
  16175. },
  16176. "diffs": {
  16177. "type": "array",
  16178. "items": {
  16179. "$ref": "#/components/schemas/SnapshotFileDiff"
  16180. }
  16181. }
  16182. },
  16183. "required": ["additions", "deletions", "files"],
  16184. "additionalProperties": false
  16185. },
  16186. "cost": {
  16187. "type": "number"
  16188. },
  16189. "tokens": {
  16190. "type": "object",
  16191. "properties": {
  16192. "input": {
  16193. "type": "number"
  16194. },
  16195. "output": {
  16196. "type": "number"
  16197. },
  16198. "reasoning": {
  16199. "type": "number"
  16200. },
  16201. "cache": {
  16202. "type": "object",
  16203. "properties": {
  16204. "read": {
  16205. "type": "number"
  16206. },
  16207. "write": {
  16208. "type": "number"
  16209. }
  16210. },
  16211. "required": ["read", "write"],
  16212. "additionalProperties": false
  16213. }
  16214. },
  16215. "required": ["input", "output", "reasoning", "cache"],
  16216. "additionalProperties": false
  16217. },
  16218. "share": {
  16219. "type": "object",
  16220. "properties": {
  16221. "url": {
  16222. "type": "string"
  16223. }
  16224. },
  16225. "required": ["url"],
  16226. "additionalProperties": false
  16227. },
  16228. "title": {
  16229. "type": "string"
  16230. },
  16231. "agent": {
  16232. "type": "string"
  16233. },
  16234. "model": {
  16235. "type": "object",
  16236. "properties": {
  16237. "id": {
  16238. "type": "string"
  16239. },
  16240. "providerID": {
  16241. "type": "string"
  16242. },
  16243. "variant": {
  16244. "type": "string"
  16245. }
  16246. },
  16247. "required": ["id", "providerID"],
  16248. "additionalProperties": false
  16249. },
  16250. "version": {
  16251. "type": "string"
  16252. },
  16253. "metadata": {
  16254. "type": "object"
  16255. },
  16256. "time": {
  16257. "type": "object",
  16258. "properties": {
  16259. "created": {
  16260. "type": "integer",
  16261. "allOf": [
  16262. {
  16263. "minimum": 0
  16264. }
  16265. ]
  16266. },
  16267. "updated": {
  16268. "type": "integer",
  16269. "allOf": [
  16270. {
  16271. "minimum": 0
  16272. }
  16273. ]
  16274. },
  16275. "compacting": {
  16276. "type": "integer",
  16277. "allOf": [
  16278. {
  16279. "minimum": 0
  16280. }
  16281. ]
  16282. },
  16283. "archived": {
  16284. "type": "number"
  16285. }
  16286. },
  16287. "required": ["created", "updated"],
  16288. "additionalProperties": false
  16289. },
  16290. "permission": {
  16291. "$ref": "#/components/schemas/PermissionRuleset"
  16292. },
  16293. "revert": {
  16294. "type": "object",
  16295. "properties": {
  16296. "messageID": {
  16297. "type": "string",
  16298. "allOf": [
  16299. {
  16300. "pattern": "^msg"
  16301. }
  16302. ]
  16303. },
  16304. "partID": {
  16305. "type": "string",
  16306. "allOf": [
  16307. {
  16308. "pattern": "^prt"
  16309. }
  16310. ]
  16311. },
  16312. "snapshot": {
  16313. "type": "string"
  16314. },
  16315. "diff": {
  16316. "type": "string"
  16317. }
  16318. },
  16319. "required": ["messageID"],
  16320. "additionalProperties": false
  16321. }
  16322. },
  16323. "required": ["id", "slug", "projectID", "directory", "title", "version", "time"],
  16324. "additionalProperties": false
  16325. },
  16326. "session.created": {
  16327. "type": "object",
  16328. "properties": {
  16329. "id": {
  16330. "type": "string",
  16331. "allOf": [
  16332. {
  16333. "pattern": "^evt_"
  16334. }
  16335. ]
  16336. },
  16337. "metadata": {
  16338. "type": "object"
  16339. },
  16340. "type": {
  16341. "type": "string",
  16342. "enum": ["session.created"]
  16343. },
  16344. "durable": {
  16345. "type": "object",
  16346. "properties": {
  16347. "aggregateID": {
  16348. "type": "string"
  16349. },
  16350. "seq": {
  16351. "type": "integer",
  16352. "allOf": [
  16353. {
  16354. "minimum": 0
  16355. }
  16356. ]
  16357. },
  16358. "version": {
  16359. "type": "integer",
  16360. "allOf": [
  16361. {
  16362. "minimum": 1
  16363. }
  16364. ]
  16365. }
  16366. },
  16367. "required": ["aggregateID", "seq", "version"],
  16368. "additionalProperties": false
  16369. },
  16370. "location": {
  16371. "$ref": "#/components/schemas/Location.Ref"
  16372. },
  16373. "data": {
  16374. "type": "object",
  16375. "properties": {
  16376. "sessionID": {
  16377. "type": "string",
  16378. "allOf": [
  16379. {
  16380. "pattern": "^ses"
  16381. }
  16382. ]
  16383. },
  16384. "info": {
  16385. "$ref": "#/components/schemas/Session"
  16386. }
  16387. },
  16388. "required": ["sessionID", "info"],
  16389. "additionalProperties": false
  16390. }
  16391. },
  16392. "required": ["id", "type", "data"],
  16393. "additionalProperties": false
  16394. },
  16395. "session.updated": {
  16396. "type": "object",
  16397. "properties": {
  16398. "id": {
  16399. "type": "string",
  16400. "allOf": [
  16401. {
  16402. "pattern": "^evt_"
  16403. }
  16404. ]
  16405. },
  16406. "metadata": {
  16407. "type": "object"
  16408. },
  16409. "type": {
  16410. "type": "string",
  16411. "enum": ["session.updated"]
  16412. },
  16413. "durable": {
  16414. "type": "object",
  16415. "properties": {
  16416. "aggregateID": {
  16417. "type": "string"
  16418. },
  16419. "seq": {
  16420. "type": "integer",
  16421. "allOf": [
  16422. {
  16423. "minimum": 0
  16424. }
  16425. ]
  16426. },
  16427. "version": {
  16428. "type": "integer",
  16429. "allOf": [
  16430. {
  16431. "minimum": 1
  16432. }
  16433. ]
  16434. }
  16435. },
  16436. "required": ["aggregateID", "seq", "version"],
  16437. "additionalProperties": false
  16438. },
  16439. "location": {
  16440. "$ref": "#/components/schemas/Location.Ref"
  16441. },
  16442. "data": {
  16443. "type": "object",
  16444. "properties": {
  16445. "sessionID": {
  16446. "type": "string",
  16447. "allOf": [
  16448. {
  16449. "pattern": "^ses"
  16450. }
  16451. ]
  16452. },
  16453. "info": {
  16454. "$ref": "#/components/schemas/Session"
  16455. }
  16456. },
  16457. "required": ["sessionID", "info"],
  16458. "additionalProperties": false
  16459. }
  16460. },
  16461. "required": ["id", "type", "data"],
  16462. "additionalProperties": false
  16463. },
  16464. "session.deleted": {
  16465. "type": "object",
  16466. "properties": {
  16467. "id": {
  16468. "type": "string",
  16469. "allOf": [
  16470. {
  16471. "pattern": "^evt_"
  16472. }
  16473. ]
  16474. },
  16475. "metadata": {
  16476. "type": "object"
  16477. },
  16478. "type": {
  16479. "type": "string",
  16480. "enum": ["session.deleted"]
  16481. },
  16482. "durable": {
  16483. "type": "object",
  16484. "properties": {
  16485. "aggregateID": {
  16486. "type": "string"
  16487. },
  16488. "seq": {
  16489. "type": "integer",
  16490. "allOf": [
  16491. {
  16492. "minimum": 0
  16493. }
  16494. ]
  16495. },
  16496. "version": {
  16497. "type": "integer",
  16498. "allOf": [
  16499. {
  16500. "minimum": 1
  16501. }
  16502. ]
  16503. }
  16504. },
  16505. "required": ["aggregateID", "seq", "version"],
  16506. "additionalProperties": false
  16507. },
  16508. "location": {
  16509. "$ref": "#/components/schemas/Location.Ref"
  16510. },
  16511. "data": {
  16512. "type": "object",
  16513. "properties": {
  16514. "sessionID": {
  16515. "type": "string",
  16516. "allOf": [
  16517. {
  16518. "pattern": "^ses"
  16519. }
  16520. ]
  16521. },
  16522. "info": {
  16523. "$ref": "#/components/schemas/Session"
  16524. }
  16525. },
  16526. "required": ["sessionID", "info"],
  16527. "additionalProperties": false
  16528. }
  16529. },
  16530. "required": ["id", "type", "data"],
  16531. "additionalProperties": false
  16532. },
  16533. "JSONSchema": {
  16534. "type": "object"
  16535. },
  16536. "OutputFormat": {
  16537. "anyOf": [
  16538. {
  16539. "type": "object",
  16540. "properties": {
  16541. "type": {
  16542. "type": "string",
  16543. "enum": ["text"]
  16544. }
  16545. },
  16546. "required": ["type"],
  16547. "additionalProperties": false
  16548. },
  16549. {
  16550. "type": "object",
  16551. "properties": {
  16552. "type": {
  16553. "type": "string",
  16554. "enum": ["json_schema"]
  16555. },
  16556. "schema": {
  16557. "$ref": "#/components/schemas/JSONSchema"
  16558. },
  16559. "retryCount": {
  16560. "anyOf": [
  16561. {
  16562. "anyOf": [
  16563. {
  16564. "type": "integer",
  16565. "allOf": [
  16566. {
  16567. "minimum": 0
  16568. }
  16569. ]
  16570. },
  16571. {
  16572. "type": "null"
  16573. }
  16574. ]
  16575. },
  16576. {
  16577. "type": "null"
  16578. }
  16579. ]
  16580. }
  16581. },
  16582. "required": ["type", "schema"],
  16583. "additionalProperties": false
  16584. }
  16585. ]
  16586. },
  16587. "UserMessage": {
  16588. "type": "object",
  16589. "properties": {
  16590. "id": {
  16591. "type": "string",
  16592. "allOf": [
  16593. {
  16594. "pattern": "^msg"
  16595. }
  16596. ]
  16597. },
  16598. "sessionID": {
  16599. "type": "string",
  16600. "allOf": [
  16601. {
  16602. "pattern": "^ses"
  16603. }
  16604. ]
  16605. },
  16606. "role": {
  16607. "type": "string",
  16608. "enum": ["user"]
  16609. },
  16610. "time": {
  16611. "type": "object",
  16612. "properties": {
  16613. "created": {
  16614. "type": "number",
  16615. "allOf": [
  16616. {
  16617. "minimum": 0
  16618. }
  16619. ]
  16620. }
  16621. },
  16622. "required": ["created"],
  16623. "additionalProperties": false
  16624. },
  16625. "format": {
  16626. "anyOf": [
  16627. {
  16628. "$ref": "#/components/schemas/OutputFormat"
  16629. },
  16630. {
  16631. "type": "null"
  16632. }
  16633. ]
  16634. },
  16635. "summary": {
  16636. "anyOf": [
  16637. {
  16638. "type": "object",
  16639. "properties": {
  16640. "title": {
  16641. "anyOf": [
  16642. {
  16643. "type": "string"
  16644. },
  16645. {
  16646. "type": "null"
  16647. }
  16648. ]
  16649. },
  16650. "body": {
  16651. "anyOf": [
  16652. {
  16653. "type": "string"
  16654. },
  16655. {
  16656. "type": "null"
  16657. }
  16658. ]
  16659. },
  16660. "diffs": {
  16661. "type": "array",
  16662. "items": {
  16663. "$ref": "#/components/schemas/SnapshotFileDiff"
  16664. }
  16665. }
  16666. },
  16667. "required": ["diffs"],
  16668. "additionalProperties": false
  16669. },
  16670. {
  16671. "type": "null"
  16672. }
  16673. ]
  16674. },
  16675. "agent": {
  16676. "type": "string"
  16677. },
  16678. "model": {
  16679. "type": "object",
  16680. "properties": {
  16681. "providerID": {
  16682. "type": "string"
  16683. },
  16684. "modelID": {
  16685. "type": "string"
  16686. },
  16687. "variant": {
  16688. "anyOf": [
  16689. {
  16690. "type": "string"
  16691. },
  16692. {
  16693. "type": "null"
  16694. }
  16695. ]
  16696. }
  16697. },
  16698. "required": ["providerID", "modelID"],
  16699. "additionalProperties": false
  16700. },
  16701. "system": {
  16702. "anyOf": [
  16703. {
  16704. "type": "string"
  16705. },
  16706. {
  16707. "type": "null"
  16708. }
  16709. ]
  16710. },
  16711. "tools": {
  16712. "anyOf": [
  16713. {
  16714. "type": "object",
  16715. "additionalProperties": {
  16716. "type": "boolean"
  16717. }
  16718. },
  16719. {
  16720. "type": "null"
  16721. }
  16722. ]
  16723. }
  16724. },
  16725. "required": ["id", "sessionID", "role", "time", "agent", "model"],
  16726. "additionalProperties": false
  16727. },
  16728. "ProviderAuthError": {
  16729. "type": "object",
  16730. "properties": {
  16731. "name": {
  16732. "type": "string",
  16733. "enum": ["ProviderAuthError"]
  16734. },
  16735. "data": {
  16736. "type": "object",
  16737. "properties": {
  16738. "providerID": {
  16739. "type": "string"
  16740. },
  16741. "message": {
  16742. "type": "string"
  16743. }
  16744. },
  16745. "required": ["providerID", "message"],
  16746. "additionalProperties": false
  16747. }
  16748. },
  16749. "required": ["name", "data"],
  16750. "additionalProperties": false
  16751. },
  16752. "UnknownError1": {
  16753. "type": "object",
  16754. "properties": {
  16755. "name": {
  16756. "type": "string",
  16757. "enum": ["UnknownError"]
  16758. },
  16759. "data": {
  16760. "type": "object",
  16761. "properties": {
  16762. "message": {
  16763. "type": "string"
  16764. },
  16765. "ref": {
  16766. "anyOf": [
  16767. {
  16768. "type": "string"
  16769. },
  16770. {
  16771. "type": "null"
  16772. }
  16773. ]
  16774. }
  16775. },
  16776. "required": ["message"],
  16777. "additionalProperties": false
  16778. }
  16779. },
  16780. "required": ["name", "data"],
  16781. "additionalProperties": false
  16782. },
  16783. "MessageOutputLengthError": {
  16784. "type": "object",
  16785. "properties": {
  16786. "name": {
  16787. "type": "string",
  16788. "enum": ["MessageOutputLengthError"]
  16789. },
  16790. "data": {
  16791. "anyOf": [
  16792. {
  16793. "type": "object"
  16794. },
  16795. {
  16796. "type": "array"
  16797. }
  16798. ]
  16799. }
  16800. },
  16801. "required": ["name", "data"],
  16802. "additionalProperties": false
  16803. },
  16804. "MessageAbortedError": {
  16805. "type": "object",
  16806. "properties": {
  16807. "name": {
  16808. "type": "string",
  16809. "enum": ["MessageAbortedError"]
  16810. },
  16811. "data": {
  16812. "type": "object",
  16813. "properties": {
  16814. "message": {
  16815. "type": "string"
  16816. }
  16817. },
  16818. "required": ["message"],
  16819. "additionalProperties": false
  16820. }
  16821. },
  16822. "required": ["name", "data"],
  16823. "additionalProperties": false
  16824. },
  16825. "StructuredOutputError": {
  16826. "type": "object",
  16827. "properties": {
  16828. "name": {
  16829. "type": "string",
  16830. "enum": ["StructuredOutputError"]
  16831. },
  16832. "data": {
  16833. "type": "object",
  16834. "properties": {
  16835. "message": {
  16836. "type": "string"
  16837. },
  16838. "retries": {
  16839. "type": "integer",
  16840. "allOf": [
  16841. {
  16842. "minimum": 0
  16843. }
  16844. ]
  16845. }
  16846. },
  16847. "required": ["message", "retries"],
  16848. "additionalProperties": false
  16849. }
  16850. },
  16851. "required": ["name", "data"],
  16852. "additionalProperties": false
  16853. },
  16854. "ContextOverflowError": {
  16855. "type": "object",
  16856. "properties": {
  16857. "name": {
  16858. "type": "string",
  16859. "enum": ["ContextOverflowError"]
  16860. },
  16861. "data": {
  16862. "type": "object",
  16863. "properties": {
  16864. "message": {
  16865. "type": "string"
  16866. },
  16867. "responseBody": {
  16868. "anyOf": [
  16869. {
  16870. "type": "string"
  16871. },
  16872. {
  16873. "type": "null"
  16874. }
  16875. ]
  16876. }
  16877. },
  16878. "required": ["message"],
  16879. "additionalProperties": false
  16880. }
  16881. },
  16882. "required": ["name", "data"],
  16883. "additionalProperties": false
  16884. },
  16885. "ContentFilterError": {
  16886. "type": "object",
  16887. "properties": {
  16888. "name": {
  16889. "type": "string",
  16890. "enum": ["ContentFilterError"]
  16891. },
  16892. "data": {
  16893. "type": "object",
  16894. "properties": {
  16895. "message": {
  16896. "type": "string"
  16897. }
  16898. },
  16899. "required": ["message"],
  16900. "additionalProperties": false
  16901. }
  16902. },
  16903. "required": ["name", "data"],
  16904. "additionalProperties": false
  16905. },
  16906. "APIError": {
  16907. "type": "object",
  16908. "properties": {
  16909. "name": {
  16910. "type": "string",
  16911. "enum": ["APIError"]
  16912. },
  16913. "data": {
  16914. "type": "object",
  16915. "properties": {
  16916. "message": {
  16917. "type": "string"
  16918. },
  16919. "statusCode": {
  16920. "anyOf": [
  16921. {
  16922. "type": "integer",
  16923. "allOf": [
  16924. {
  16925. "minimum": 0
  16926. }
  16927. ]
  16928. },
  16929. {
  16930. "type": "null"
  16931. }
  16932. ]
  16933. },
  16934. "isRetryable": {
  16935. "type": "boolean"
  16936. },
  16937. "responseHeaders": {
  16938. "anyOf": [
  16939. {
  16940. "type": "object",
  16941. "additionalProperties": {
  16942. "type": "string"
  16943. }
  16944. },
  16945. {
  16946. "type": "null"
  16947. }
  16948. ]
  16949. },
  16950. "responseBody": {
  16951. "anyOf": [
  16952. {
  16953. "type": "string"
  16954. },
  16955. {
  16956. "type": "null"
  16957. }
  16958. ]
  16959. },
  16960. "metadata": {
  16961. "anyOf": [
  16962. {
  16963. "type": "object",
  16964. "additionalProperties": {
  16965. "type": "string"
  16966. }
  16967. },
  16968. {
  16969. "type": "null"
  16970. }
  16971. ]
  16972. }
  16973. },
  16974. "required": ["message", "isRetryable"],
  16975. "additionalProperties": false
  16976. }
  16977. },
  16978. "required": ["name", "data"],
  16979. "additionalProperties": false
  16980. },
  16981. "AssistantMessage": {
  16982. "type": "object",
  16983. "properties": {
  16984. "id": {
  16985. "type": "string",
  16986. "allOf": [
  16987. {
  16988. "pattern": "^msg"
  16989. }
  16990. ]
  16991. },
  16992. "sessionID": {
  16993. "type": "string",
  16994. "allOf": [
  16995. {
  16996. "pattern": "^ses"
  16997. }
  16998. ]
  16999. },
  17000. "role": {
  17001. "type": "string",
  17002. "enum": ["assistant"]
  17003. },
  17004. "time": {
  17005. "type": "object",
  17006. "properties": {
  17007. "created": {
  17008. "type": "integer",
  17009. "allOf": [
  17010. {
  17011. "minimum": 0
  17012. }
  17013. ]
  17014. },
  17015. "completed": {
  17016. "anyOf": [
  17017. {
  17018. "type": "integer",
  17019. "allOf": [
  17020. {
  17021. "minimum": 0
  17022. }
  17023. ]
  17024. },
  17025. {
  17026. "type": "null"
  17027. }
  17028. ]
  17029. }
  17030. },
  17031. "required": ["created"],
  17032. "additionalProperties": false
  17033. },
  17034. "error": {
  17035. "anyOf": [
  17036. {
  17037. "anyOf": [
  17038. {
  17039. "$ref": "#/components/schemas/ProviderAuthError"
  17040. },
  17041. {
  17042. "$ref": "#/components/schemas/UnknownError1"
  17043. },
  17044. {
  17045. "$ref": "#/components/schemas/MessageOutputLengthError"
  17046. },
  17047. {
  17048. "$ref": "#/components/schemas/MessageAbortedError"
  17049. },
  17050. {
  17051. "$ref": "#/components/schemas/StructuredOutputError"
  17052. },
  17053. {
  17054. "$ref": "#/components/schemas/ContextOverflowError"
  17055. },
  17056. {
  17057. "$ref": "#/components/schemas/ContentFilterError"
  17058. },
  17059. {
  17060. "$ref": "#/components/schemas/APIError"
  17061. }
  17062. ]
  17063. },
  17064. {
  17065. "type": "null"
  17066. }
  17067. ]
  17068. },
  17069. "parentID": {
  17070. "type": "string",
  17071. "allOf": [
  17072. {
  17073. "pattern": "^msg"
  17074. }
  17075. ]
  17076. },
  17077. "modelID": {
  17078. "type": "string"
  17079. },
  17080. "providerID": {
  17081. "type": "string"
  17082. },
  17083. "mode": {
  17084. "type": "string"
  17085. },
  17086. "agent": {
  17087. "type": "string"
  17088. },
  17089. "path": {
  17090. "type": "object",
  17091. "properties": {
  17092. "cwd": {
  17093. "type": "string"
  17094. },
  17095. "root": {
  17096. "type": "string"
  17097. }
  17098. },
  17099. "required": ["cwd", "root"],
  17100. "additionalProperties": false
  17101. },
  17102. "summary": {
  17103. "anyOf": [
  17104. {
  17105. "type": "boolean"
  17106. },
  17107. {
  17108. "type": "null"
  17109. }
  17110. ]
  17111. },
  17112. "cost": {
  17113. "type": "number"
  17114. },
  17115. "tokens": {
  17116. "type": "object",
  17117. "properties": {
  17118. "total": {
  17119. "anyOf": [
  17120. {
  17121. "type": "number"
  17122. },
  17123. {
  17124. "type": "null"
  17125. }
  17126. ]
  17127. },
  17128. "input": {
  17129. "type": "number"
  17130. },
  17131. "output": {
  17132. "type": "number"
  17133. },
  17134. "reasoning": {
  17135. "type": "number"
  17136. },
  17137. "cache": {
  17138. "type": "object",
  17139. "properties": {
  17140. "read": {
  17141. "type": "number"
  17142. },
  17143. "write": {
  17144. "type": "number"
  17145. }
  17146. },
  17147. "required": ["read", "write"],
  17148. "additionalProperties": false
  17149. }
  17150. },
  17151. "required": ["input", "output", "reasoning", "cache"],
  17152. "additionalProperties": false
  17153. },
  17154. "structured": {
  17155. "anyOf": [
  17156. {},
  17157. {
  17158. "type": "null"
  17159. }
  17160. ]
  17161. },
  17162. "variant": {
  17163. "anyOf": [
  17164. {
  17165. "type": "string"
  17166. },
  17167. {
  17168. "type": "null"
  17169. }
  17170. ]
  17171. },
  17172. "finish": {
  17173. "anyOf": [
  17174. {
  17175. "type": "string"
  17176. },
  17177. {
  17178. "type": "null"
  17179. }
  17180. ]
  17181. }
  17182. },
  17183. "required": [
  17184. "id",
  17185. "sessionID",
  17186. "role",
  17187. "time",
  17188. "parentID",
  17189. "modelID",
  17190. "providerID",
  17191. "mode",
  17192. "agent",
  17193. "path",
  17194. "cost",
  17195. "tokens"
  17196. ],
  17197. "additionalProperties": false
  17198. },
  17199. "Message": {
  17200. "anyOf": [
  17201. {
  17202. "$ref": "#/components/schemas/UserMessage"
  17203. },
  17204. {
  17205. "$ref": "#/components/schemas/AssistantMessage"
  17206. }
  17207. ]
  17208. },
  17209. "message.updated": {
  17210. "type": "object",
  17211. "properties": {
  17212. "id": {
  17213. "type": "string",
  17214. "allOf": [
  17215. {
  17216. "pattern": "^evt_"
  17217. }
  17218. ]
  17219. },
  17220. "metadata": {
  17221. "type": "object"
  17222. },
  17223. "type": {
  17224. "type": "string",
  17225. "enum": ["message.updated"]
  17226. },
  17227. "durable": {
  17228. "type": "object",
  17229. "properties": {
  17230. "aggregateID": {
  17231. "type": "string"
  17232. },
  17233. "seq": {
  17234. "type": "integer",
  17235. "allOf": [
  17236. {
  17237. "minimum": 0
  17238. }
  17239. ]
  17240. },
  17241. "version": {
  17242. "type": "integer",
  17243. "allOf": [
  17244. {
  17245. "minimum": 1
  17246. }
  17247. ]
  17248. }
  17249. },
  17250. "required": ["aggregateID", "seq", "version"],
  17251. "additionalProperties": false
  17252. },
  17253. "location": {
  17254. "$ref": "#/components/schemas/Location.Ref"
  17255. },
  17256. "data": {
  17257. "type": "object",
  17258. "properties": {
  17259. "sessionID": {
  17260. "type": "string",
  17261. "allOf": [
  17262. {
  17263. "pattern": "^ses"
  17264. }
  17265. ]
  17266. },
  17267. "info": {
  17268. "$ref": "#/components/schemas/Message"
  17269. }
  17270. },
  17271. "required": ["sessionID", "info"],
  17272. "additionalProperties": false
  17273. }
  17274. },
  17275. "required": ["id", "type", "data"],
  17276. "additionalProperties": false
  17277. },
  17278. "message.removed": {
  17279. "type": "object",
  17280. "properties": {
  17281. "id": {
  17282. "type": "string",
  17283. "allOf": [
  17284. {
  17285. "pattern": "^evt_"
  17286. }
  17287. ]
  17288. },
  17289. "metadata": {
  17290. "type": "object"
  17291. },
  17292. "type": {
  17293. "type": "string",
  17294. "enum": ["message.removed"]
  17295. },
  17296. "durable": {
  17297. "type": "object",
  17298. "properties": {
  17299. "aggregateID": {
  17300. "type": "string"
  17301. },
  17302. "seq": {
  17303. "type": "integer",
  17304. "allOf": [
  17305. {
  17306. "minimum": 0
  17307. }
  17308. ]
  17309. },
  17310. "version": {
  17311. "type": "integer",
  17312. "allOf": [
  17313. {
  17314. "minimum": 1
  17315. }
  17316. ]
  17317. }
  17318. },
  17319. "required": ["aggregateID", "seq", "version"],
  17320. "additionalProperties": false
  17321. },
  17322. "location": {
  17323. "$ref": "#/components/schemas/Location.Ref"
  17324. },
  17325. "data": {
  17326. "type": "object",
  17327. "properties": {
  17328. "sessionID": {
  17329. "type": "string",
  17330. "allOf": [
  17331. {
  17332. "pattern": "^ses"
  17333. }
  17334. ]
  17335. },
  17336. "messageID": {
  17337. "type": "string",
  17338. "allOf": [
  17339. {
  17340. "pattern": "^msg"
  17341. }
  17342. ]
  17343. }
  17344. },
  17345. "required": ["sessionID", "messageID"],
  17346. "additionalProperties": false
  17347. }
  17348. },
  17349. "required": ["id", "type", "data"],
  17350. "additionalProperties": false
  17351. },
  17352. "TextPart": {
  17353. "type": "object",
  17354. "properties": {
  17355. "id": {
  17356. "type": "string",
  17357. "allOf": [
  17358. {
  17359. "pattern": "^prt"
  17360. }
  17361. ]
  17362. },
  17363. "sessionID": {
  17364. "type": "string",
  17365. "allOf": [
  17366. {
  17367. "pattern": "^ses"
  17368. }
  17369. ]
  17370. },
  17371. "messageID": {
  17372. "type": "string",
  17373. "allOf": [
  17374. {
  17375. "pattern": "^msg"
  17376. }
  17377. ]
  17378. },
  17379. "type": {
  17380. "type": "string",
  17381. "enum": ["text"]
  17382. },
  17383. "text": {
  17384. "type": "string"
  17385. },
  17386. "synthetic": {
  17387. "anyOf": [
  17388. {
  17389. "type": "boolean"
  17390. },
  17391. {
  17392. "type": "null"
  17393. }
  17394. ]
  17395. },
  17396. "ignored": {
  17397. "anyOf": [
  17398. {
  17399. "type": "boolean"
  17400. },
  17401. {
  17402. "type": "null"
  17403. }
  17404. ]
  17405. },
  17406. "time": {
  17407. "anyOf": [
  17408. {
  17409. "type": "object",
  17410. "properties": {
  17411. "start": {
  17412. "type": "integer",
  17413. "allOf": [
  17414. {
  17415. "minimum": 0
  17416. }
  17417. ]
  17418. },
  17419. "end": {
  17420. "anyOf": [
  17421. {
  17422. "type": "integer",
  17423. "allOf": [
  17424. {
  17425. "minimum": 0
  17426. }
  17427. ]
  17428. },
  17429. {
  17430. "type": "null"
  17431. }
  17432. ]
  17433. }
  17434. },
  17435. "required": ["start"],
  17436. "additionalProperties": false
  17437. },
  17438. {
  17439. "type": "null"
  17440. }
  17441. ]
  17442. },
  17443. "metadata": {
  17444. "anyOf": [
  17445. {
  17446. "type": "object"
  17447. },
  17448. {
  17449. "type": "null"
  17450. }
  17451. ]
  17452. }
  17453. },
  17454. "required": ["id", "sessionID", "messageID", "type", "text"],
  17455. "additionalProperties": false
  17456. },
  17457. "SubtaskPart": {
  17458. "type": "object",
  17459. "properties": {
  17460. "id": {
  17461. "type": "string",
  17462. "allOf": [
  17463. {
  17464. "pattern": "^prt"
  17465. }
  17466. ]
  17467. },
  17468. "sessionID": {
  17469. "type": "string",
  17470. "allOf": [
  17471. {
  17472. "pattern": "^ses"
  17473. }
  17474. ]
  17475. },
  17476. "messageID": {
  17477. "type": "string",
  17478. "allOf": [
  17479. {
  17480. "pattern": "^msg"
  17481. }
  17482. ]
  17483. },
  17484. "type": {
  17485. "type": "string",
  17486. "enum": ["subtask"]
  17487. },
  17488. "prompt": {
  17489. "type": "string"
  17490. },
  17491. "description": {
  17492. "type": "string"
  17493. },
  17494. "agent": {
  17495. "type": "string"
  17496. },
  17497. "model": {
  17498. "anyOf": [
  17499. {
  17500. "type": "object",
  17501. "properties": {
  17502. "providerID": {
  17503. "type": "string"
  17504. },
  17505. "modelID": {
  17506. "type": "string"
  17507. }
  17508. },
  17509. "required": ["providerID", "modelID"],
  17510. "additionalProperties": false
  17511. },
  17512. {
  17513. "type": "null"
  17514. }
  17515. ]
  17516. },
  17517. "command": {
  17518. "anyOf": [
  17519. {
  17520. "type": "string"
  17521. },
  17522. {
  17523. "type": "null"
  17524. }
  17525. ]
  17526. }
  17527. },
  17528. "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"],
  17529. "additionalProperties": false
  17530. },
  17531. "ReasoningPart": {
  17532. "type": "object",
  17533. "properties": {
  17534. "id": {
  17535. "type": "string",
  17536. "allOf": [
  17537. {
  17538. "pattern": "^prt"
  17539. }
  17540. ]
  17541. },
  17542. "sessionID": {
  17543. "type": "string",
  17544. "allOf": [
  17545. {
  17546. "pattern": "^ses"
  17547. }
  17548. ]
  17549. },
  17550. "messageID": {
  17551. "type": "string",
  17552. "allOf": [
  17553. {
  17554. "pattern": "^msg"
  17555. }
  17556. ]
  17557. },
  17558. "type": {
  17559. "type": "string",
  17560. "enum": ["reasoning"]
  17561. },
  17562. "text": {
  17563. "type": "string"
  17564. },
  17565. "metadata": {
  17566. "anyOf": [
  17567. {
  17568. "type": "object"
  17569. },
  17570. {
  17571. "type": "null"
  17572. }
  17573. ]
  17574. },
  17575. "time": {
  17576. "type": "object",
  17577. "properties": {
  17578. "start": {
  17579. "type": "integer",
  17580. "allOf": [
  17581. {
  17582. "minimum": 0
  17583. }
  17584. ]
  17585. },
  17586. "end": {
  17587. "anyOf": [
  17588. {
  17589. "type": "integer",
  17590. "allOf": [
  17591. {
  17592. "minimum": 0
  17593. }
  17594. ]
  17595. },
  17596. {
  17597. "type": "null"
  17598. }
  17599. ]
  17600. }
  17601. },
  17602. "required": ["start"],
  17603. "additionalProperties": false
  17604. }
  17605. },
  17606. "required": ["id", "sessionID", "messageID", "type", "text", "time"],
  17607. "additionalProperties": false
  17608. },
  17609. "FilePartSourceText": {
  17610. "type": "object",
  17611. "properties": {
  17612. "value": {
  17613. "type": "string"
  17614. },
  17615. "start": {
  17616. "type": "number"
  17617. },
  17618. "end": {
  17619. "type": "number"
  17620. }
  17621. },
  17622. "required": ["value", "start", "end"],
  17623. "additionalProperties": false
  17624. },
  17625. "FileSource": {
  17626. "type": "object",
  17627. "properties": {
  17628. "text": {
  17629. "$ref": "#/components/schemas/FilePartSourceText"
  17630. },
  17631. "type": {
  17632. "type": "string",
  17633. "enum": ["file"]
  17634. },
  17635. "path": {
  17636. "type": "string"
  17637. }
  17638. },
  17639. "required": ["text", "type", "path"],
  17640. "additionalProperties": false
  17641. },
  17642. "Range": {
  17643. "type": "object",
  17644. "properties": {
  17645. "start": {
  17646. "type": "object",
  17647. "properties": {
  17648. "line": {
  17649. "type": "integer",
  17650. "allOf": [
  17651. {
  17652. "minimum": 0
  17653. }
  17654. ]
  17655. },
  17656. "character": {
  17657. "type": "integer",
  17658. "allOf": [
  17659. {
  17660. "minimum": 0
  17661. }
  17662. ]
  17663. }
  17664. },
  17665. "required": ["line", "character"],
  17666. "additionalProperties": false
  17667. },
  17668. "end": {
  17669. "type": "object",
  17670. "properties": {
  17671. "line": {
  17672. "type": "integer",
  17673. "allOf": [
  17674. {
  17675. "minimum": 0
  17676. }
  17677. ]
  17678. },
  17679. "character": {
  17680. "type": "integer",
  17681. "allOf": [
  17682. {
  17683. "minimum": 0
  17684. }
  17685. ]
  17686. }
  17687. },
  17688. "required": ["line", "character"],
  17689. "additionalProperties": false
  17690. }
  17691. },
  17692. "required": ["start", "end"],
  17693. "additionalProperties": false
  17694. },
  17695. "SymbolSource": {
  17696. "type": "object",
  17697. "properties": {
  17698. "text": {
  17699. "$ref": "#/components/schemas/FilePartSourceText"
  17700. },
  17701. "type": {
  17702. "type": "string",
  17703. "enum": ["symbol"]
  17704. },
  17705. "path": {
  17706. "type": "string"
  17707. },
  17708. "range": {
  17709. "$ref": "#/components/schemas/Range"
  17710. },
  17711. "name": {
  17712. "type": "string"
  17713. },
  17714. "kind": {
  17715. "type": "integer",
  17716. "allOf": [
  17717. {
  17718. "minimum": 0
  17719. }
  17720. ]
  17721. }
  17722. },
  17723. "required": ["text", "type", "path", "range", "name", "kind"],
  17724. "additionalProperties": false
  17725. },
  17726. "ResourceSource": {
  17727. "type": "object",
  17728. "properties": {
  17729. "text": {
  17730. "$ref": "#/components/schemas/FilePartSourceText"
  17731. },
  17732. "type": {
  17733. "type": "string",
  17734. "enum": ["resource"]
  17735. },
  17736. "clientName": {
  17737. "type": "string"
  17738. },
  17739. "uri": {
  17740. "type": "string"
  17741. }
  17742. },
  17743. "required": ["text", "type", "clientName", "uri"],
  17744. "additionalProperties": false
  17745. },
  17746. "FilePartSource": {
  17747. "anyOf": [
  17748. {
  17749. "$ref": "#/components/schemas/FileSource"
  17750. },
  17751. {
  17752. "$ref": "#/components/schemas/SymbolSource"
  17753. },
  17754. {
  17755. "$ref": "#/components/schemas/ResourceSource"
  17756. }
  17757. ]
  17758. },
  17759. "FilePart": {
  17760. "type": "object",
  17761. "properties": {
  17762. "id": {
  17763. "type": "string",
  17764. "allOf": [
  17765. {
  17766. "pattern": "^prt"
  17767. }
  17768. ]
  17769. },
  17770. "sessionID": {
  17771. "type": "string",
  17772. "allOf": [
  17773. {
  17774. "pattern": "^ses"
  17775. }
  17776. ]
  17777. },
  17778. "messageID": {
  17779. "type": "string",
  17780. "allOf": [
  17781. {
  17782. "pattern": "^msg"
  17783. }
  17784. ]
  17785. },
  17786. "type": {
  17787. "type": "string",
  17788. "enum": ["file"]
  17789. },
  17790. "mime": {
  17791. "type": "string"
  17792. },
  17793. "filename": {
  17794. "anyOf": [
  17795. {
  17796. "type": "string"
  17797. },
  17798. {
  17799. "type": "null"
  17800. }
  17801. ]
  17802. },
  17803. "url": {
  17804. "type": "string"
  17805. },
  17806. "source": {
  17807. "anyOf": [
  17808. {
  17809. "$ref": "#/components/schemas/FilePartSource"
  17810. },
  17811. {
  17812. "type": "null"
  17813. }
  17814. ]
  17815. }
  17816. },
  17817. "required": ["id", "sessionID", "messageID", "type", "mime", "url"],
  17818. "additionalProperties": false
  17819. },
  17820. "ToolStatePending": {
  17821. "type": "object",
  17822. "properties": {
  17823. "status": {
  17824. "type": "string",
  17825. "enum": ["pending"]
  17826. },
  17827. "input": {
  17828. "type": "object"
  17829. },
  17830. "raw": {
  17831. "type": "string"
  17832. }
  17833. },
  17834. "required": ["status", "input", "raw"],
  17835. "additionalProperties": false
  17836. },
  17837. "ToolStateRunning": {
  17838. "type": "object",
  17839. "properties": {
  17840. "status": {
  17841. "type": "string",
  17842. "enum": ["running"]
  17843. },
  17844. "input": {
  17845. "type": "object"
  17846. },
  17847. "title": {
  17848. "anyOf": [
  17849. {
  17850. "type": "string"
  17851. },
  17852. {
  17853. "type": "null"
  17854. }
  17855. ]
  17856. },
  17857. "metadata": {
  17858. "anyOf": [
  17859. {
  17860. "type": "object"
  17861. },
  17862. {
  17863. "type": "null"
  17864. }
  17865. ]
  17866. },
  17867. "time": {
  17868. "type": "object",
  17869. "properties": {
  17870. "start": {
  17871. "type": "integer",
  17872. "allOf": [
  17873. {
  17874. "minimum": 0
  17875. }
  17876. ]
  17877. }
  17878. },
  17879. "required": ["start"],
  17880. "additionalProperties": false
  17881. }
  17882. },
  17883. "required": ["status", "input", "time"],
  17884. "additionalProperties": false
  17885. },
  17886. "ToolStateCompleted": {
  17887. "type": "object",
  17888. "properties": {
  17889. "status": {
  17890. "type": "string",
  17891. "enum": ["completed"]
  17892. },
  17893. "input": {
  17894. "type": "object"
  17895. },
  17896. "output": {
  17897. "type": "string"
  17898. },
  17899. "title": {
  17900. "type": "string"
  17901. },
  17902. "metadata": {
  17903. "type": "object"
  17904. },
  17905. "time": {
  17906. "type": "object",
  17907. "properties": {
  17908. "start": {
  17909. "type": "integer",
  17910. "allOf": [
  17911. {
  17912. "minimum": 0
  17913. }
  17914. ]
  17915. },
  17916. "end": {
  17917. "type": "integer",
  17918. "allOf": [
  17919. {
  17920. "minimum": 0
  17921. }
  17922. ]
  17923. },
  17924. "compacted": {
  17925. "anyOf": [
  17926. {
  17927. "type": "integer",
  17928. "allOf": [
  17929. {
  17930. "minimum": 0
  17931. }
  17932. ]
  17933. },
  17934. {
  17935. "type": "null"
  17936. }
  17937. ]
  17938. }
  17939. },
  17940. "required": ["start", "end"],
  17941. "additionalProperties": false
  17942. },
  17943. "attachments": {
  17944. "anyOf": [
  17945. {
  17946. "type": "array",
  17947. "items": {
  17948. "$ref": "#/components/schemas/FilePart"
  17949. }
  17950. },
  17951. {
  17952. "type": "null"
  17953. }
  17954. ]
  17955. }
  17956. },
  17957. "required": ["status", "input", "output", "title", "metadata", "time"],
  17958. "additionalProperties": false
  17959. },
  17960. "ToolStateError": {
  17961. "type": "object",
  17962. "properties": {
  17963. "status": {
  17964. "type": "string",
  17965. "enum": ["error"]
  17966. },
  17967. "input": {
  17968. "type": "object"
  17969. },
  17970. "error": {
  17971. "type": "string"
  17972. },
  17973. "metadata": {
  17974. "anyOf": [
  17975. {
  17976. "type": "object"
  17977. },
  17978. {
  17979. "type": "null"
  17980. }
  17981. ]
  17982. },
  17983. "time": {
  17984. "type": "object",
  17985. "properties": {
  17986. "start": {
  17987. "type": "integer",
  17988. "allOf": [
  17989. {
  17990. "minimum": 0
  17991. }
  17992. ]
  17993. },
  17994. "end": {
  17995. "type": "integer",
  17996. "allOf": [
  17997. {
  17998. "minimum": 0
  17999. }
  18000. ]
  18001. }
  18002. },
  18003. "required": ["start", "end"],
  18004. "additionalProperties": false
  18005. }
  18006. },
  18007. "required": ["status", "input", "error", "time"],
  18008. "additionalProperties": false
  18009. },
  18010. "ToolState": {
  18011. "anyOf": [
  18012. {
  18013. "$ref": "#/components/schemas/ToolStatePending"
  18014. },
  18015. {
  18016. "$ref": "#/components/schemas/ToolStateRunning"
  18017. },
  18018. {
  18019. "$ref": "#/components/schemas/ToolStateCompleted"
  18020. },
  18021. {
  18022. "$ref": "#/components/schemas/ToolStateError"
  18023. }
  18024. ]
  18025. },
  18026. "ToolPart": {
  18027. "type": "object",
  18028. "properties": {
  18029. "id": {
  18030. "type": "string",
  18031. "allOf": [
  18032. {
  18033. "pattern": "^prt"
  18034. }
  18035. ]
  18036. },
  18037. "sessionID": {
  18038. "type": "string",
  18039. "allOf": [
  18040. {
  18041. "pattern": "^ses"
  18042. }
  18043. ]
  18044. },
  18045. "messageID": {
  18046. "type": "string",
  18047. "allOf": [
  18048. {
  18049. "pattern": "^msg"
  18050. }
  18051. ]
  18052. },
  18053. "type": {
  18054. "type": "string",
  18055. "enum": ["tool"]
  18056. },
  18057. "callID": {
  18058. "type": "string"
  18059. },
  18060. "tool": {
  18061. "type": "string"
  18062. },
  18063. "state": {
  18064. "$ref": "#/components/schemas/ToolState"
  18065. },
  18066. "metadata": {
  18067. "anyOf": [
  18068. {
  18069. "type": "object"
  18070. },
  18071. {
  18072. "type": "null"
  18073. }
  18074. ]
  18075. }
  18076. },
  18077. "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"],
  18078. "additionalProperties": false
  18079. },
  18080. "StepStartPart": {
  18081. "type": "object",
  18082. "properties": {
  18083. "id": {
  18084. "type": "string",
  18085. "allOf": [
  18086. {
  18087. "pattern": "^prt"
  18088. }
  18089. ]
  18090. },
  18091. "sessionID": {
  18092. "type": "string",
  18093. "allOf": [
  18094. {
  18095. "pattern": "^ses"
  18096. }
  18097. ]
  18098. },
  18099. "messageID": {
  18100. "type": "string",
  18101. "allOf": [
  18102. {
  18103. "pattern": "^msg"
  18104. }
  18105. ]
  18106. },
  18107. "type": {
  18108. "type": "string",
  18109. "enum": ["step-start"]
  18110. },
  18111. "snapshot": {
  18112. "anyOf": [
  18113. {
  18114. "type": "string"
  18115. },
  18116. {
  18117. "type": "null"
  18118. }
  18119. ]
  18120. }
  18121. },
  18122. "required": ["id", "sessionID", "messageID", "type"],
  18123. "additionalProperties": false
  18124. },
  18125. "StepFinishPart": {
  18126. "type": "object",
  18127. "properties": {
  18128. "id": {
  18129. "type": "string",
  18130. "allOf": [
  18131. {
  18132. "pattern": "^prt"
  18133. }
  18134. ]
  18135. },
  18136. "sessionID": {
  18137. "type": "string",
  18138. "allOf": [
  18139. {
  18140. "pattern": "^ses"
  18141. }
  18142. ]
  18143. },
  18144. "messageID": {
  18145. "type": "string",
  18146. "allOf": [
  18147. {
  18148. "pattern": "^msg"
  18149. }
  18150. ]
  18151. },
  18152. "type": {
  18153. "type": "string",
  18154. "enum": ["step-finish"]
  18155. },
  18156. "reason": {
  18157. "type": "string"
  18158. },
  18159. "snapshot": {
  18160. "anyOf": [
  18161. {
  18162. "type": "string"
  18163. },
  18164. {
  18165. "type": "null"
  18166. }
  18167. ]
  18168. },
  18169. "cost": {
  18170. "type": "number"
  18171. },
  18172. "tokens": {
  18173. "type": "object",
  18174. "properties": {
  18175. "total": {
  18176. "anyOf": [
  18177. {
  18178. "type": "number"
  18179. },
  18180. {
  18181. "type": "null"
  18182. }
  18183. ]
  18184. },
  18185. "input": {
  18186. "type": "number"
  18187. },
  18188. "output": {
  18189. "type": "number"
  18190. },
  18191. "reasoning": {
  18192. "type": "number"
  18193. },
  18194. "cache": {
  18195. "type": "object",
  18196. "properties": {
  18197. "read": {
  18198. "type": "number"
  18199. },
  18200. "write": {
  18201. "type": "number"
  18202. }
  18203. },
  18204. "required": ["read", "write"],
  18205. "additionalProperties": false
  18206. }
  18207. },
  18208. "required": ["input", "output", "reasoning", "cache"],
  18209. "additionalProperties": false
  18210. }
  18211. },
  18212. "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"],
  18213. "additionalProperties": false
  18214. },
  18215. "SnapshotPart": {
  18216. "type": "object",
  18217. "properties": {
  18218. "id": {
  18219. "type": "string",
  18220. "allOf": [
  18221. {
  18222. "pattern": "^prt"
  18223. }
  18224. ]
  18225. },
  18226. "sessionID": {
  18227. "type": "string",
  18228. "allOf": [
  18229. {
  18230. "pattern": "^ses"
  18231. }
  18232. ]
  18233. },
  18234. "messageID": {
  18235. "type": "string",
  18236. "allOf": [
  18237. {
  18238. "pattern": "^msg"
  18239. }
  18240. ]
  18241. },
  18242. "type": {
  18243. "type": "string",
  18244. "enum": ["snapshot"]
  18245. },
  18246. "snapshot": {
  18247. "type": "string"
  18248. }
  18249. },
  18250. "required": ["id", "sessionID", "messageID", "type", "snapshot"],
  18251. "additionalProperties": false
  18252. },
  18253. "PatchPart": {
  18254. "type": "object",
  18255. "properties": {
  18256. "id": {
  18257. "type": "string",
  18258. "allOf": [
  18259. {
  18260. "pattern": "^prt"
  18261. }
  18262. ]
  18263. },
  18264. "sessionID": {
  18265. "type": "string",
  18266. "allOf": [
  18267. {
  18268. "pattern": "^ses"
  18269. }
  18270. ]
  18271. },
  18272. "messageID": {
  18273. "type": "string",
  18274. "allOf": [
  18275. {
  18276. "pattern": "^msg"
  18277. }
  18278. ]
  18279. },
  18280. "type": {
  18281. "type": "string",
  18282. "enum": ["patch"]
  18283. },
  18284. "hash": {
  18285. "type": "string"
  18286. },
  18287. "files": {
  18288. "type": "array",
  18289. "items": {
  18290. "type": "string"
  18291. }
  18292. }
  18293. },
  18294. "required": ["id", "sessionID", "messageID", "type", "hash", "files"],
  18295. "additionalProperties": false
  18296. },
  18297. "AgentPart": {
  18298. "type": "object",
  18299. "properties": {
  18300. "id": {
  18301. "type": "string",
  18302. "allOf": [
  18303. {
  18304. "pattern": "^prt"
  18305. }
  18306. ]
  18307. },
  18308. "sessionID": {
  18309. "type": "string",
  18310. "allOf": [
  18311. {
  18312. "pattern": "^ses"
  18313. }
  18314. ]
  18315. },
  18316. "messageID": {
  18317. "type": "string",
  18318. "allOf": [
  18319. {
  18320. "pattern": "^msg"
  18321. }
  18322. ]
  18323. },
  18324. "type": {
  18325. "type": "string",
  18326. "enum": ["agent"]
  18327. },
  18328. "name": {
  18329. "type": "string"
  18330. },
  18331. "source": {
  18332. "anyOf": [
  18333. {
  18334. "type": "object",
  18335. "properties": {
  18336. "value": {
  18337. "type": "string"
  18338. },
  18339. "start": {
  18340. "type": "integer",
  18341. "allOf": [
  18342. {
  18343. "minimum": 0
  18344. }
  18345. ]
  18346. },
  18347. "end": {
  18348. "type": "integer",
  18349. "allOf": [
  18350. {
  18351. "minimum": 0
  18352. }
  18353. ]
  18354. }
  18355. },
  18356. "required": ["value", "start", "end"],
  18357. "additionalProperties": false
  18358. },
  18359. {
  18360. "type": "null"
  18361. }
  18362. ]
  18363. }
  18364. },
  18365. "required": ["id", "sessionID", "messageID", "type", "name"],
  18366. "additionalProperties": false
  18367. },
  18368. "RetryPart": {
  18369. "type": "object",
  18370. "properties": {
  18371. "id": {
  18372. "type": "string",
  18373. "allOf": [
  18374. {
  18375. "pattern": "^prt"
  18376. }
  18377. ]
  18378. },
  18379. "sessionID": {
  18380. "type": "string",
  18381. "allOf": [
  18382. {
  18383. "pattern": "^ses"
  18384. }
  18385. ]
  18386. },
  18387. "messageID": {
  18388. "type": "string",
  18389. "allOf": [
  18390. {
  18391. "pattern": "^msg"
  18392. }
  18393. ]
  18394. },
  18395. "type": {
  18396. "type": "string",
  18397. "enum": ["retry"]
  18398. },
  18399. "attempt": {
  18400. "type": "integer",
  18401. "allOf": [
  18402. {
  18403. "minimum": 0
  18404. }
  18405. ]
  18406. },
  18407. "error": {
  18408. "$ref": "#/components/schemas/APIError"
  18409. },
  18410. "time": {
  18411. "type": "object",
  18412. "properties": {
  18413. "created": {
  18414. "type": "integer",
  18415. "allOf": [
  18416. {
  18417. "minimum": 0
  18418. }
  18419. ]
  18420. }
  18421. },
  18422. "required": ["created"],
  18423. "additionalProperties": false
  18424. }
  18425. },
  18426. "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"],
  18427. "additionalProperties": false
  18428. },
  18429. "CompactionPart": {
  18430. "type": "object",
  18431. "properties": {
  18432. "id": {
  18433. "type": "string",
  18434. "allOf": [
  18435. {
  18436. "pattern": "^prt"
  18437. }
  18438. ]
  18439. },
  18440. "sessionID": {
  18441. "type": "string",
  18442. "allOf": [
  18443. {
  18444. "pattern": "^ses"
  18445. }
  18446. ]
  18447. },
  18448. "messageID": {
  18449. "type": "string",
  18450. "allOf": [
  18451. {
  18452. "pattern": "^msg"
  18453. }
  18454. ]
  18455. },
  18456. "type": {
  18457. "type": "string",
  18458. "enum": ["compaction"]
  18459. },
  18460. "auto": {
  18461. "type": "boolean"
  18462. },
  18463. "overflow": {
  18464. "anyOf": [
  18465. {
  18466. "type": "boolean"
  18467. },
  18468. {
  18469. "type": "null"
  18470. }
  18471. ]
  18472. },
  18473. "tail_start_id": {
  18474. "anyOf": [
  18475. {
  18476. "type": "string",
  18477. "allOf": [
  18478. {
  18479. "pattern": "^msg"
  18480. }
  18481. ]
  18482. },
  18483. {
  18484. "type": "null"
  18485. }
  18486. ]
  18487. }
  18488. },
  18489. "required": ["id", "sessionID", "messageID", "type", "auto"],
  18490. "additionalProperties": false
  18491. },
  18492. "Part": {
  18493. "anyOf": [
  18494. {
  18495. "$ref": "#/components/schemas/TextPart"
  18496. },
  18497. {
  18498. "$ref": "#/components/schemas/SubtaskPart"
  18499. },
  18500. {
  18501. "$ref": "#/components/schemas/ReasoningPart"
  18502. },
  18503. {
  18504. "$ref": "#/components/schemas/FilePart"
  18505. },
  18506. {
  18507. "$ref": "#/components/schemas/ToolPart"
  18508. },
  18509. {
  18510. "$ref": "#/components/schemas/StepStartPart"
  18511. },
  18512. {
  18513. "$ref": "#/components/schemas/StepFinishPart"
  18514. },
  18515. {
  18516. "$ref": "#/components/schemas/SnapshotPart"
  18517. },
  18518. {
  18519. "$ref": "#/components/schemas/PatchPart"
  18520. },
  18521. {
  18522. "$ref": "#/components/schemas/AgentPart"
  18523. },
  18524. {
  18525. "$ref": "#/components/schemas/RetryPart"
  18526. },
  18527. {
  18528. "$ref": "#/components/schemas/CompactionPart"
  18529. }
  18530. ]
  18531. },
  18532. "message.part.updated": {
  18533. "type": "object",
  18534. "properties": {
  18535. "id": {
  18536. "type": "string",
  18537. "allOf": [
  18538. {
  18539. "pattern": "^evt_"
  18540. }
  18541. ]
  18542. },
  18543. "metadata": {
  18544. "type": "object"
  18545. },
  18546. "type": {
  18547. "type": "string",
  18548. "enum": ["message.part.updated"]
  18549. },
  18550. "durable": {
  18551. "type": "object",
  18552. "properties": {
  18553. "aggregateID": {
  18554. "type": "string"
  18555. },
  18556. "seq": {
  18557. "type": "integer",
  18558. "allOf": [
  18559. {
  18560. "minimum": 0
  18561. }
  18562. ]
  18563. },
  18564. "version": {
  18565. "type": "integer",
  18566. "allOf": [
  18567. {
  18568. "minimum": 1
  18569. }
  18570. ]
  18571. }
  18572. },
  18573. "required": ["aggregateID", "seq", "version"],
  18574. "additionalProperties": false
  18575. },
  18576. "location": {
  18577. "$ref": "#/components/schemas/Location.Ref"
  18578. },
  18579. "data": {
  18580. "type": "object",
  18581. "properties": {
  18582. "sessionID": {
  18583. "type": "string",
  18584. "allOf": [
  18585. {
  18586. "pattern": "^ses"
  18587. }
  18588. ]
  18589. },
  18590. "part": {
  18591. "$ref": "#/components/schemas/Part"
  18592. },
  18593. "time": {
  18594. "type": "number"
  18595. }
  18596. },
  18597. "required": ["sessionID", "part", "time"],
  18598. "additionalProperties": false
  18599. }
  18600. },
  18601. "required": ["id", "type", "data"],
  18602. "additionalProperties": false
  18603. },
  18604. "message.part.removed": {
  18605. "type": "object",
  18606. "properties": {
  18607. "id": {
  18608. "type": "string",
  18609. "allOf": [
  18610. {
  18611. "pattern": "^evt_"
  18612. }
  18613. ]
  18614. },
  18615. "metadata": {
  18616. "type": "object"
  18617. },
  18618. "type": {
  18619. "type": "string",
  18620. "enum": ["message.part.removed"]
  18621. },
  18622. "durable": {
  18623. "type": "object",
  18624. "properties": {
  18625. "aggregateID": {
  18626. "type": "string"
  18627. },
  18628. "seq": {
  18629. "type": "integer",
  18630. "allOf": [
  18631. {
  18632. "minimum": 0
  18633. }
  18634. ]
  18635. },
  18636. "version": {
  18637. "type": "integer",
  18638. "allOf": [
  18639. {
  18640. "minimum": 1
  18641. }
  18642. ]
  18643. }
  18644. },
  18645. "required": ["aggregateID", "seq", "version"],
  18646. "additionalProperties": false
  18647. },
  18648. "location": {
  18649. "$ref": "#/components/schemas/Location.Ref"
  18650. },
  18651. "data": {
  18652. "type": "object",
  18653. "properties": {
  18654. "sessionID": {
  18655. "type": "string",
  18656. "allOf": [
  18657. {
  18658. "pattern": "^ses"
  18659. }
  18660. ]
  18661. },
  18662. "messageID": {
  18663. "type": "string",
  18664. "allOf": [
  18665. {
  18666. "pattern": "^msg"
  18667. }
  18668. ]
  18669. },
  18670. "partID": {
  18671. "type": "string",
  18672. "allOf": [
  18673. {
  18674. "pattern": "^prt"
  18675. }
  18676. ]
  18677. }
  18678. },
  18679. "required": ["sessionID", "messageID", "partID"],
  18680. "additionalProperties": false
  18681. }
  18682. },
  18683. "required": ["id", "type", "data"],
  18684. "additionalProperties": false
  18685. },
  18686. "session.next.execution.settled": {
  18687. "type": "object",
  18688. "properties": {
  18689. "id": {
  18690. "type": "string",
  18691. "allOf": [
  18692. {
  18693. "pattern": "^evt_"
  18694. }
  18695. ]
  18696. },
  18697. "metadata": {
  18698. "type": "object"
  18699. },
  18700. "type": {
  18701. "type": "string",
  18702. "enum": ["session.next.execution.settled"]
  18703. },
  18704. "durable": {
  18705. "type": "object",
  18706. "properties": {
  18707. "aggregateID": {
  18708. "type": "string"
  18709. },
  18710. "seq": {
  18711. "type": "integer",
  18712. "allOf": [
  18713. {
  18714. "minimum": 0
  18715. }
  18716. ]
  18717. },
  18718. "version": {
  18719. "type": "integer",
  18720. "allOf": [
  18721. {
  18722. "minimum": 1
  18723. }
  18724. ]
  18725. }
  18726. },
  18727. "required": ["aggregateID", "seq", "version"],
  18728. "additionalProperties": false
  18729. },
  18730. "location": {
  18731. "$ref": "#/components/schemas/Location.Ref"
  18732. },
  18733. "data": {
  18734. "type": "object",
  18735. "properties": {
  18736. "timestamp": {
  18737. "type": "number"
  18738. },
  18739. "sessionID": {
  18740. "type": "string",
  18741. "allOf": [
  18742. {
  18743. "pattern": "^ses"
  18744. }
  18745. ]
  18746. },
  18747. "outcome": {
  18748. "type": "string",
  18749. "enum": ["success", "failure", "interrupted"]
  18750. },
  18751. "error": {
  18752. "$ref": "#/components/schemas/Session.Error.Unknown"
  18753. }
  18754. },
  18755. "required": ["timestamp", "sessionID", "outcome"],
  18756. "additionalProperties": false
  18757. }
  18758. },
  18759. "required": ["id", "type", "data"],
  18760. "additionalProperties": false
  18761. },
  18762. "session.next.text.delta": {
  18763. "type": "object",
  18764. "properties": {
  18765. "id": {
  18766. "type": "string",
  18767. "allOf": [
  18768. {
  18769. "pattern": "^evt_"
  18770. }
  18771. ]
  18772. },
  18773. "metadata": {
  18774. "type": "object"
  18775. },
  18776. "type": {
  18777. "type": "string",
  18778. "enum": ["session.next.text.delta"]
  18779. },
  18780. "durable": {
  18781. "type": "object",
  18782. "properties": {
  18783. "aggregateID": {
  18784. "type": "string"
  18785. },
  18786. "seq": {
  18787. "type": "integer",
  18788. "allOf": [
  18789. {
  18790. "minimum": 0
  18791. }
  18792. ]
  18793. },
  18794. "version": {
  18795. "type": "integer",
  18796. "allOf": [
  18797. {
  18798. "minimum": 1
  18799. }
  18800. ]
  18801. }
  18802. },
  18803. "required": ["aggregateID", "seq", "version"],
  18804. "additionalProperties": false
  18805. },
  18806. "location": {
  18807. "$ref": "#/components/schemas/Location.Ref"
  18808. },
  18809. "data": {
  18810. "type": "object",
  18811. "properties": {
  18812. "timestamp": {
  18813. "type": "number"
  18814. },
  18815. "sessionID": {
  18816. "type": "string",
  18817. "allOf": [
  18818. {
  18819. "pattern": "^ses"
  18820. }
  18821. ]
  18822. },
  18823. "assistantMessageID": {
  18824. "type": "string",
  18825. "allOf": [
  18826. {
  18827. "pattern": "^msg_"
  18828. }
  18829. ]
  18830. },
  18831. "textID": {
  18832. "type": "string"
  18833. },
  18834. "delta": {
  18835. "type": "string"
  18836. }
  18837. },
  18838. "required": ["timestamp", "sessionID", "assistantMessageID", "textID", "delta"],
  18839. "additionalProperties": false
  18840. }
  18841. },
  18842. "required": ["id", "type", "data"],
  18843. "additionalProperties": false
  18844. },
  18845. "session.next.reasoning.delta": {
  18846. "type": "object",
  18847. "properties": {
  18848. "id": {
  18849. "type": "string",
  18850. "allOf": [
  18851. {
  18852. "pattern": "^evt_"
  18853. }
  18854. ]
  18855. },
  18856. "metadata": {
  18857. "type": "object"
  18858. },
  18859. "type": {
  18860. "type": "string",
  18861. "enum": ["session.next.reasoning.delta"]
  18862. },
  18863. "durable": {
  18864. "type": "object",
  18865. "properties": {
  18866. "aggregateID": {
  18867. "type": "string"
  18868. },
  18869. "seq": {
  18870. "type": "integer",
  18871. "allOf": [
  18872. {
  18873. "minimum": 0
  18874. }
  18875. ]
  18876. },
  18877. "version": {
  18878. "type": "integer",
  18879. "allOf": [
  18880. {
  18881. "minimum": 1
  18882. }
  18883. ]
  18884. }
  18885. },
  18886. "required": ["aggregateID", "seq", "version"],
  18887. "additionalProperties": false
  18888. },
  18889. "location": {
  18890. "$ref": "#/components/schemas/Location.Ref"
  18891. },
  18892. "data": {
  18893. "type": "object",
  18894. "properties": {
  18895. "timestamp": {
  18896. "type": "number"
  18897. },
  18898. "sessionID": {
  18899. "type": "string",
  18900. "allOf": [
  18901. {
  18902. "pattern": "^ses"
  18903. }
  18904. ]
  18905. },
  18906. "assistantMessageID": {
  18907. "type": "string",
  18908. "allOf": [
  18909. {
  18910. "pattern": "^msg_"
  18911. }
  18912. ]
  18913. },
  18914. "reasoningID": {
  18915. "type": "string"
  18916. },
  18917. "delta": {
  18918. "type": "string"
  18919. }
  18920. },
  18921. "required": ["timestamp", "sessionID", "assistantMessageID", "reasoningID", "delta"],
  18922. "additionalProperties": false
  18923. }
  18924. },
  18925. "required": ["id", "type", "data"],
  18926. "additionalProperties": false
  18927. },
  18928. "session.next.tool.input.delta": {
  18929. "type": "object",
  18930. "properties": {
  18931. "id": {
  18932. "type": "string",
  18933. "allOf": [
  18934. {
  18935. "pattern": "^evt_"
  18936. }
  18937. ]
  18938. },
  18939. "metadata": {
  18940. "type": "object"
  18941. },
  18942. "type": {
  18943. "type": "string",
  18944. "enum": ["session.next.tool.input.delta"]
  18945. },
  18946. "durable": {
  18947. "type": "object",
  18948. "properties": {
  18949. "aggregateID": {
  18950. "type": "string"
  18951. },
  18952. "seq": {
  18953. "type": "integer",
  18954. "allOf": [
  18955. {
  18956. "minimum": 0
  18957. }
  18958. ]
  18959. },
  18960. "version": {
  18961. "type": "integer",
  18962. "allOf": [
  18963. {
  18964. "minimum": 1
  18965. }
  18966. ]
  18967. }
  18968. },
  18969. "required": ["aggregateID", "seq", "version"],
  18970. "additionalProperties": false
  18971. },
  18972. "location": {
  18973. "$ref": "#/components/schemas/Location.Ref"
  18974. },
  18975. "data": {
  18976. "type": "object",
  18977. "properties": {
  18978. "timestamp": {
  18979. "type": "number"
  18980. },
  18981. "sessionID": {
  18982. "type": "string",
  18983. "allOf": [
  18984. {
  18985. "pattern": "^ses"
  18986. }
  18987. ]
  18988. },
  18989. "assistantMessageID": {
  18990. "type": "string",
  18991. "allOf": [
  18992. {
  18993. "pattern": "^msg_"
  18994. }
  18995. ]
  18996. },
  18997. "callID": {
  18998. "type": "string"
  18999. },
  19000. "delta": {
  19001. "type": "string"
  19002. }
  19003. },
  19004. "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "delta"],
  19005. "additionalProperties": false
  19006. }
  19007. },
  19008. "required": ["id", "type", "data"],
  19009. "additionalProperties": false
  19010. },
  19011. "session.next.compaction.delta": {
  19012. "type": "object",
  19013. "properties": {
  19014. "id": {
  19015. "type": "string",
  19016. "allOf": [
  19017. {
  19018. "pattern": "^evt_"
  19019. }
  19020. ]
  19021. },
  19022. "metadata": {
  19023. "type": "object"
  19024. },
  19025. "type": {
  19026. "type": "string",
  19027. "enum": ["session.next.compaction.delta"]
  19028. },
  19029. "durable": {
  19030. "type": "object",
  19031. "properties": {
  19032. "aggregateID": {
  19033. "type": "string"
  19034. },
  19035. "seq": {
  19036. "type": "integer",
  19037. "allOf": [
  19038. {
  19039. "minimum": 0
  19040. }
  19041. ]
  19042. },
  19043. "version": {
  19044. "type": "integer",
  19045. "allOf": [
  19046. {
  19047. "minimum": 1
  19048. }
  19049. ]
  19050. }
  19051. },
  19052. "required": ["aggregateID", "seq", "version"],
  19053. "additionalProperties": false
  19054. },
  19055. "location": {
  19056. "$ref": "#/components/schemas/Location.Ref"
  19057. },
  19058. "data": {
  19059. "type": "object",
  19060. "properties": {
  19061. "timestamp": {
  19062. "type": "number"
  19063. },
  19064. "sessionID": {
  19065. "type": "string",
  19066. "allOf": [
  19067. {
  19068. "pattern": "^ses"
  19069. }
  19070. ]
  19071. },
  19072. "messageID": {
  19073. "type": "string",
  19074. "allOf": [
  19075. {
  19076. "pattern": "^msg_"
  19077. }
  19078. ]
  19079. },
  19080. "text": {
  19081. "type": "string"
  19082. }
  19083. },
  19084. "required": ["timestamp", "sessionID", "messageID", "text"],
  19085. "additionalProperties": false
  19086. }
  19087. },
  19088. "required": ["id", "type", "data"],
  19089. "additionalProperties": false
  19090. },
  19091. "file.edited": {
  19092. "type": "object",
  19093. "properties": {
  19094. "id": {
  19095. "type": "string",
  19096. "allOf": [
  19097. {
  19098. "pattern": "^evt_"
  19099. }
  19100. ]
  19101. },
  19102. "metadata": {
  19103. "type": "object"
  19104. },
  19105. "type": {
  19106. "type": "string",
  19107. "enum": ["file.edited"]
  19108. },
  19109. "durable": {
  19110. "type": "object",
  19111. "properties": {
  19112. "aggregateID": {
  19113. "type": "string"
  19114. },
  19115. "seq": {
  19116. "type": "integer",
  19117. "allOf": [
  19118. {
  19119. "minimum": 0
  19120. }
  19121. ]
  19122. },
  19123. "version": {
  19124. "type": "integer",
  19125. "allOf": [
  19126. {
  19127. "minimum": 1
  19128. }
  19129. ]
  19130. }
  19131. },
  19132. "required": ["aggregateID", "seq", "version"],
  19133. "additionalProperties": false
  19134. },
  19135. "location": {
  19136. "$ref": "#/components/schemas/Location.Ref"
  19137. },
  19138. "data": {
  19139. "type": "object",
  19140. "properties": {
  19141. "file": {
  19142. "type": "string"
  19143. }
  19144. },
  19145. "required": ["file"],
  19146. "additionalProperties": false
  19147. }
  19148. },
  19149. "required": ["id", "type", "data"],
  19150. "additionalProperties": false
  19151. },
  19152. "reference.updated": {
  19153. "type": "object",
  19154. "properties": {
  19155. "id": {
  19156. "type": "string",
  19157. "allOf": [
  19158. {
  19159. "pattern": "^evt_"
  19160. }
  19161. ]
  19162. },
  19163. "metadata": {
  19164. "type": "object"
  19165. },
  19166. "type": {
  19167. "type": "string",
  19168. "enum": ["reference.updated"]
  19169. },
  19170. "durable": {
  19171. "type": "object",
  19172. "properties": {
  19173. "aggregateID": {
  19174. "type": "string"
  19175. },
  19176. "seq": {
  19177. "type": "integer",
  19178. "allOf": [
  19179. {
  19180. "minimum": 0
  19181. }
  19182. ]
  19183. },
  19184. "version": {
  19185. "type": "integer",
  19186. "allOf": [
  19187. {
  19188. "minimum": 1
  19189. }
  19190. ]
  19191. }
  19192. },
  19193. "required": ["aggregateID", "seq", "version"],
  19194. "additionalProperties": false
  19195. },
  19196. "location": {
  19197. "$ref": "#/components/schemas/Location.Ref"
  19198. },
  19199. "data": {
  19200. "anyOf": [
  19201. {
  19202. "type": "object"
  19203. },
  19204. {
  19205. "type": "array"
  19206. }
  19207. ]
  19208. }
  19209. },
  19210. "required": ["id", "type", "data"],
  19211. "additionalProperties": false
  19212. },
  19213. "permission.v2.asked": {
  19214. "type": "object",
  19215. "properties": {
  19216. "id": {
  19217. "type": "string",
  19218. "allOf": [
  19219. {
  19220. "pattern": "^evt_"
  19221. }
  19222. ]
  19223. },
  19224. "metadata": {
  19225. "type": "object"
  19226. },
  19227. "type": {
  19228. "type": "string",
  19229. "enum": ["permission.v2.asked"]
  19230. },
  19231. "durable": {
  19232. "type": "object",
  19233. "properties": {
  19234. "aggregateID": {
  19235. "type": "string"
  19236. },
  19237. "seq": {
  19238. "type": "integer",
  19239. "allOf": [
  19240. {
  19241. "minimum": 0
  19242. }
  19243. ]
  19244. },
  19245. "version": {
  19246. "type": "integer",
  19247. "allOf": [
  19248. {
  19249. "minimum": 1
  19250. }
  19251. ]
  19252. }
  19253. },
  19254. "required": ["aggregateID", "seq", "version"],
  19255. "additionalProperties": false
  19256. },
  19257. "location": {
  19258. "$ref": "#/components/schemas/Location.Ref"
  19259. },
  19260. "data": {
  19261. "type": "object",
  19262. "properties": {
  19263. "id": {
  19264. "type": "string",
  19265. "allOf": [
  19266. {
  19267. "pattern": "^per"
  19268. }
  19269. ]
  19270. },
  19271. "sessionID": {
  19272. "type": "string",
  19273. "allOf": [
  19274. {
  19275. "pattern": "^ses"
  19276. }
  19277. ]
  19278. },
  19279. "action": {
  19280. "type": "string"
  19281. },
  19282. "resources": {
  19283. "type": "array",
  19284. "items": {
  19285. "type": "string"
  19286. }
  19287. },
  19288. "save": {
  19289. "type": "array",
  19290. "items": {
  19291. "type": "string"
  19292. }
  19293. },
  19294. "metadata": {
  19295. "type": "object"
  19296. },
  19297. "source": {
  19298. "$ref": "#/components/schemas/PermissionV2.Source"
  19299. }
  19300. },
  19301. "required": ["id", "sessionID", "action", "resources"],
  19302. "additionalProperties": false
  19303. }
  19304. },
  19305. "required": ["id", "type", "data"],
  19306. "additionalProperties": false
  19307. },
  19308. "permission.v2.replied": {
  19309. "type": "object",
  19310. "properties": {
  19311. "id": {
  19312. "type": "string",
  19313. "allOf": [
  19314. {
  19315. "pattern": "^evt_"
  19316. }
  19317. ]
  19318. },
  19319. "metadata": {
  19320. "type": "object"
  19321. },
  19322. "type": {
  19323. "type": "string",
  19324. "enum": ["permission.v2.replied"]
  19325. },
  19326. "durable": {
  19327. "type": "object",
  19328. "properties": {
  19329. "aggregateID": {
  19330. "type": "string"
  19331. },
  19332. "seq": {
  19333. "type": "integer",
  19334. "allOf": [
  19335. {
  19336. "minimum": 0
  19337. }
  19338. ]
  19339. },
  19340. "version": {
  19341. "type": "integer",
  19342. "allOf": [
  19343. {
  19344. "minimum": 1
  19345. }
  19346. ]
  19347. }
  19348. },
  19349. "required": ["aggregateID", "seq", "version"],
  19350. "additionalProperties": false
  19351. },
  19352. "location": {
  19353. "$ref": "#/components/schemas/Location.Ref"
  19354. },
  19355. "data": {
  19356. "type": "object",
  19357. "properties": {
  19358. "sessionID": {
  19359. "type": "string",
  19360. "allOf": [
  19361. {
  19362. "pattern": "^ses"
  19363. }
  19364. ]
  19365. },
  19366. "requestID": {
  19367. "type": "string",
  19368. "allOf": [
  19369. {
  19370. "pattern": "^per"
  19371. }
  19372. ]
  19373. },
  19374. "reply": {
  19375. "$ref": "#/components/schemas/PermissionV2.Reply"
  19376. }
  19377. },
  19378. "required": ["sessionID", "requestID", "reply"],
  19379. "additionalProperties": false
  19380. }
  19381. },
  19382. "required": ["id", "type", "data"],
  19383. "additionalProperties": false
  19384. },
  19385. "plugin.added": {
  19386. "type": "object",
  19387. "properties": {
  19388. "id": {
  19389. "type": "string",
  19390. "allOf": [
  19391. {
  19392. "pattern": "^evt_"
  19393. }
  19394. ]
  19395. },
  19396. "metadata": {
  19397. "type": "object"
  19398. },
  19399. "type": {
  19400. "type": "string",
  19401. "enum": ["plugin.added"]
  19402. },
  19403. "durable": {
  19404. "type": "object",
  19405. "properties": {
  19406. "aggregateID": {
  19407. "type": "string"
  19408. },
  19409. "seq": {
  19410. "type": "integer",
  19411. "allOf": [
  19412. {
  19413. "minimum": 0
  19414. }
  19415. ]
  19416. },
  19417. "version": {
  19418. "type": "integer",
  19419. "allOf": [
  19420. {
  19421. "minimum": 1
  19422. }
  19423. ]
  19424. }
  19425. },
  19426. "required": ["aggregateID", "seq", "version"],
  19427. "additionalProperties": false
  19428. },
  19429. "location": {
  19430. "$ref": "#/components/schemas/Location.Ref"
  19431. },
  19432. "data": {
  19433. "type": "object",
  19434. "properties": {
  19435. "id": {
  19436. "type": "string"
  19437. }
  19438. },
  19439. "required": ["id"],
  19440. "additionalProperties": false
  19441. }
  19442. },
  19443. "required": ["id", "type", "data"],
  19444. "additionalProperties": false
  19445. },
  19446. "project.directories.updated": {
  19447. "type": "object",
  19448. "properties": {
  19449. "id": {
  19450. "type": "string",
  19451. "allOf": [
  19452. {
  19453. "pattern": "^evt_"
  19454. }
  19455. ]
  19456. },
  19457. "metadata": {
  19458. "type": "object"
  19459. },
  19460. "type": {
  19461. "type": "string",
  19462. "enum": ["project.directories.updated"]
  19463. },
  19464. "durable": {
  19465. "type": "object",
  19466. "properties": {
  19467. "aggregateID": {
  19468. "type": "string"
  19469. },
  19470. "seq": {
  19471. "type": "integer",
  19472. "allOf": [
  19473. {
  19474. "minimum": 0
  19475. }
  19476. ]
  19477. },
  19478. "version": {
  19479. "type": "integer",
  19480. "allOf": [
  19481. {
  19482. "minimum": 1
  19483. }
  19484. ]
  19485. }
  19486. },
  19487. "required": ["aggregateID", "seq", "version"],
  19488. "additionalProperties": false
  19489. },
  19490. "location": {
  19491. "$ref": "#/components/schemas/Location.Ref"
  19492. },
  19493. "data": {
  19494. "type": "object",
  19495. "properties": {
  19496. "projectID": {
  19497. "type": "string"
  19498. }
  19499. },
  19500. "required": ["projectID"],
  19501. "additionalProperties": false
  19502. }
  19503. },
  19504. "required": ["id", "type", "data"],
  19505. "additionalProperties": false
  19506. },
  19507. "command.updated": {
  19508. "type": "object",
  19509. "properties": {
  19510. "id": {
  19511. "type": "string",
  19512. "allOf": [
  19513. {
  19514. "pattern": "^evt_"
  19515. }
  19516. ]
  19517. },
  19518. "metadata": {
  19519. "type": "object"
  19520. },
  19521. "type": {
  19522. "type": "string",
  19523. "enum": ["command.updated"]
  19524. },
  19525. "durable": {
  19526. "type": "object",
  19527. "properties": {
  19528. "aggregateID": {
  19529. "type": "string"
  19530. },
  19531. "seq": {
  19532. "type": "integer",
  19533. "allOf": [
  19534. {
  19535. "minimum": 0
  19536. }
  19537. ]
  19538. },
  19539. "version": {
  19540. "type": "integer",
  19541. "allOf": [
  19542. {
  19543. "minimum": 1
  19544. }
  19545. ]
  19546. }
  19547. },
  19548. "required": ["aggregateID", "seq", "version"],
  19549. "additionalProperties": false
  19550. },
  19551. "location": {
  19552. "$ref": "#/components/schemas/Location.Ref"
  19553. },
  19554. "data": {
  19555. "anyOf": [
  19556. {
  19557. "type": "object"
  19558. },
  19559. {
  19560. "type": "array"
  19561. }
  19562. ]
  19563. }
  19564. },
  19565. "required": ["id", "type", "data"],
  19566. "additionalProperties": false
  19567. },
  19568. "skill.updated": {
  19569. "type": "object",
  19570. "properties": {
  19571. "id": {
  19572. "type": "string",
  19573. "allOf": [
  19574. {
  19575. "pattern": "^evt_"
  19576. }
  19577. ]
  19578. },
  19579. "metadata": {
  19580. "type": "object"
  19581. },
  19582. "type": {
  19583. "type": "string",
  19584. "enum": ["skill.updated"]
  19585. },
  19586. "durable": {
  19587. "type": "object",
  19588. "properties": {
  19589. "aggregateID": {
  19590. "type": "string"
  19591. },
  19592. "seq": {
  19593. "type": "integer",
  19594. "allOf": [
  19595. {
  19596. "minimum": 0
  19597. }
  19598. ]
  19599. },
  19600. "version": {
  19601. "type": "integer",
  19602. "allOf": [
  19603. {
  19604. "minimum": 1
  19605. }
  19606. ]
  19607. }
  19608. },
  19609. "required": ["aggregateID", "seq", "version"],
  19610. "additionalProperties": false
  19611. },
  19612. "location": {
  19613. "$ref": "#/components/schemas/Location.Ref"
  19614. },
  19615. "data": {
  19616. "anyOf": [
  19617. {
  19618. "type": "object"
  19619. },
  19620. {
  19621. "type": "array"
  19622. }
  19623. ]
  19624. }
  19625. },
  19626. "required": ["id", "type", "data"],
  19627. "additionalProperties": false
  19628. },
  19629. "file.watcher.updated": {
  19630. "type": "object",
  19631. "properties": {
  19632. "id": {
  19633. "type": "string",
  19634. "allOf": [
  19635. {
  19636. "pattern": "^evt_"
  19637. }
  19638. ]
  19639. },
  19640. "metadata": {
  19641. "type": "object"
  19642. },
  19643. "type": {
  19644. "type": "string",
  19645. "enum": ["file.watcher.updated"]
  19646. },
  19647. "durable": {
  19648. "type": "object",
  19649. "properties": {
  19650. "aggregateID": {
  19651. "type": "string"
  19652. },
  19653. "seq": {
  19654. "type": "integer",
  19655. "allOf": [
  19656. {
  19657. "minimum": 0
  19658. }
  19659. ]
  19660. },
  19661. "version": {
  19662. "type": "integer",
  19663. "allOf": [
  19664. {
  19665. "minimum": 1
  19666. }
  19667. ]
  19668. }
  19669. },
  19670. "required": ["aggregateID", "seq", "version"],
  19671. "additionalProperties": false
  19672. },
  19673. "location": {
  19674. "$ref": "#/components/schemas/Location.Ref"
  19675. },
  19676. "data": {
  19677. "type": "object",
  19678. "properties": {
  19679. "file": {
  19680. "type": "string"
  19681. },
  19682. "event": {
  19683. "type": "string",
  19684. "enum": ["add", "change", "unlink"]
  19685. }
  19686. },
  19687. "required": ["file", "event"],
  19688. "additionalProperties": false
  19689. }
  19690. },
  19691. "required": ["id", "type", "data"],
  19692. "additionalProperties": false
  19693. },
  19694. "Pty": {
  19695. "type": "object",
  19696. "properties": {
  19697. "id": {
  19698. "type": "string",
  19699. "allOf": [
  19700. {
  19701. "pattern": "^pty"
  19702. }
  19703. ]
  19704. },
  19705. "title": {
  19706. "type": "string"
  19707. },
  19708. "command": {
  19709. "type": "string"
  19710. },
  19711. "args": {
  19712. "type": "array",
  19713. "items": {
  19714. "type": "string"
  19715. }
  19716. },
  19717. "cwd": {
  19718. "type": "string"
  19719. },
  19720. "status": {
  19721. "type": "string",
  19722. "enum": ["running", "exited"]
  19723. },
  19724. "pid": {
  19725. "type": "integer",
  19726. "allOf": [
  19727. {
  19728. "minimum": 0
  19729. }
  19730. ]
  19731. },
  19732. "exitCode": {
  19733. "type": "integer",
  19734. "allOf": [
  19735. {
  19736. "minimum": 0
  19737. }
  19738. ]
  19739. }
  19740. },
  19741. "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
  19742. "additionalProperties": false
  19743. },
  19744. "pty.created": {
  19745. "type": "object",
  19746. "properties": {
  19747. "id": {
  19748. "type": "string",
  19749. "allOf": [
  19750. {
  19751. "pattern": "^evt_"
  19752. }
  19753. ]
  19754. },
  19755. "metadata": {
  19756. "type": "object"
  19757. },
  19758. "type": {
  19759. "type": "string",
  19760. "enum": ["pty.created"]
  19761. },
  19762. "durable": {
  19763. "type": "object",
  19764. "properties": {
  19765. "aggregateID": {
  19766. "type": "string"
  19767. },
  19768. "seq": {
  19769. "type": "integer",
  19770. "allOf": [
  19771. {
  19772. "minimum": 0
  19773. }
  19774. ]
  19775. },
  19776. "version": {
  19777. "type": "integer",
  19778. "allOf": [
  19779. {
  19780. "minimum": 1
  19781. }
  19782. ]
  19783. }
  19784. },
  19785. "required": ["aggregateID", "seq", "version"],
  19786. "additionalProperties": false
  19787. },
  19788. "location": {
  19789. "$ref": "#/components/schemas/Location.Ref"
  19790. },
  19791. "data": {
  19792. "type": "object",
  19793. "properties": {
  19794. "info": {
  19795. "$ref": "#/components/schemas/Pty"
  19796. }
  19797. },
  19798. "required": ["info"],
  19799. "additionalProperties": false
  19800. }
  19801. },
  19802. "required": ["id", "type", "data"],
  19803. "additionalProperties": false
  19804. },
  19805. "pty.updated": {
  19806. "type": "object",
  19807. "properties": {
  19808. "id": {
  19809. "type": "string",
  19810. "allOf": [
  19811. {
  19812. "pattern": "^evt_"
  19813. }
  19814. ]
  19815. },
  19816. "metadata": {
  19817. "type": "object"
  19818. },
  19819. "type": {
  19820. "type": "string",
  19821. "enum": ["pty.updated"]
  19822. },
  19823. "durable": {
  19824. "type": "object",
  19825. "properties": {
  19826. "aggregateID": {
  19827. "type": "string"
  19828. },
  19829. "seq": {
  19830. "type": "integer",
  19831. "allOf": [
  19832. {
  19833. "minimum": 0
  19834. }
  19835. ]
  19836. },
  19837. "version": {
  19838. "type": "integer",
  19839. "allOf": [
  19840. {
  19841. "minimum": 1
  19842. }
  19843. ]
  19844. }
  19845. },
  19846. "required": ["aggregateID", "seq", "version"],
  19847. "additionalProperties": false
  19848. },
  19849. "location": {
  19850. "$ref": "#/components/schemas/Location.Ref"
  19851. },
  19852. "data": {
  19853. "type": "object",
  19854. "properties": {
  19855. "info": {
  19856. "$ref": "#/components/schemas/Pty"
  19857. }
  19858. },
  19859. "required": ["info"],
  19860. "additionalProperties": false
  19861. }
  19862. },
  19863. "required": ["id", "type", "data"],
  19864. "additionalProperties": false
  19865. },
  19866. "pty.exited": {
  19867. "type": "object",
  19868. "properties": {
  19869. "id": {
  19870. "type": "string",
  19871. "allOf": [
  19872. {
  19873. "pattern": "^evt_"
  19874. }
  19875. ]
  19876. },
  19877. "metadata": {
  19878. "type": "object"
  19879. },
  19880. "type": {
  19881. "type": "string",
  19882. "enum": ["pty.exited"]
  19883. },
  19884. "durable": {
  19885. "type": "object",
  19886. "properties": {
  19887. "aggregateID": {
  19888. "type": "string"
  19889. },
  19890. "seq": {
  19891. "type": "integer",
  19892. "allOf": [
  19893. {
  19894. "minimum": 0
  19895. }
  19896. ]
  19897. },
  19898. "version": {
  19899. "type": "integer",
  19900. "allOf": [
  19901. {
  19902. "minimum": 1
  19903. }
  19904. ]
  19905. }
  19906. },
  19907. "required": ["aggregateID", "seq", "version"],
  19908. "additionalProperties": false
  19909. },
  19910. "location": {
  19911. "$ref": "#/components/schemas/Location.Ref"
  19912. },
  19913. "data": {
  19914. "type": "object",
  19915. "properties": {
  19916. "id": {
  19917. "type": "string",
  19918. "allOf": [
  19919. {
  19920. "pattern": "^pty"
  19921. }
  19922. ]
  19923. },
  19924. "exitCode": {
  19925. "type": "integer",
  19926. "allOf": [
  19927. {
  19928. "minimum": 0
  19929. }
  19930. ]
  19931. }
  19932. },
  19933. "required": ["id", "exitCode"],
  19934. "additionalProperties": false
  19935. }
  19936. },
  19937. "required": ["id", "type", "data"],
  19938. "additionalProperties": false
  19939. },
  19940. "pty.deleted": {
  19941. "type": "object",
  19942. "properties": {
  19943. "id": {
  19944. "type": "string",
  19945. "allOf": [
  19946. {
  19947. "pattern": "^evt_"
  19948. }
  19949. ]
  19950. },
  19951. "metadata": {
  19952. "type": "object"
  19953. },
  19954. "type": {
  19955. "type": "string",
  19956. "enum": ["pty.deleted"]
  19957. },
  19958. "durable": {
  19959. "type": "object",
  19960. "properties": {
  19961. "aggregateID": {
  19962. "type": "string"
  19963. },
  19964. "seq": {
  19965. "type": "integer",
  19966. "allOf": [
  19967. {
  19968. "minimum": 0
  19969. }
  19970. ]
  19971. },
  19972. "version": {
  19973. "type": "integer",
  19974. "allOf": [
  19975. {
  19976. "minimum": 1
  19977. }
  19978. ]
  19979. }
  19980. },
  19981. "required": ["aggregateID", "seq", "version"],
  19982. "additionalProperties": false
  19983. },
  19984. "location": {
  19985. "$ref": "#/components/schemas/Location.Ref"
  19986. },
  19987. "data": {
  19988. "type": "object",
  19989. "properties": {
  19990. "id": {
  19991. "type": "string",
  19992. "allOf": [
  19993. {
  19994. "pattern": "^pty"
  19995. }
  19996. ]
  19997. }
  19998. },
  19999. "required": ["id"],
  20000. "additionalProperties": false
  20001. }
  20002. },
  20003. "required": ["id", "type", "data"],
  20004. "additionalProperties": false
  20005. },
  20006. "Shell": {
  20007. "type": "object",
  20008. "properties": {
  20009. "id": {
  20010. "type": "string",
  20011. "allOf": [
  20012. {
  20013. "pattern": "^sh_"
  20014. }
  20015. ]
  20016. },
  20017. "status": {
  20018. "type": "string",
  20019. "enum": ["running", "exited", "timeout", "killed"]
  20020. },
  20021. "command": {
  20022. "type": "string"
  20023. },
  20024. "cwd": {
  20025. "type": "string"
  20026. },
  20027. "shell": {
  20028. "type": "string"
  20029. },
  20030. "file": {
  20031. "type": "string"
  20032. },
  20033. "pid": {
  20034. "type": "integer",
  20035. "allOf": [
  20036. {
  20037. "minimum": 0
  20038. }
  20039. ]
  20040. },
  20041. "exit": {
  20042. "anyOf": [
  20043. {
  20044. "type": "number"
  20045. },
  20046. {
  20047. "type": "string",
  20048. "enum": ["NaN"]
  20049. },
  20050. {
  20051. "type": "string",
  20052. "enum": ["Infinity"]
  20053. },
  20054. {
  20055. "type": "string",
  20056. "enum": ["-Infinity"]
  20057. }
  20058. ]
  20059. },
  20060. "metadata": {
  20061. "type": "object"
  20062. },
  20063. "time": {
  20064. "type": "object",
  20065. "properties": {
  20066. "started": {
  20067. "anyOf": [
  20068. {
  20069. "type": "number"
  20070. },
  20071. {
  20072. "type": "string",
  20073. "enum": ["NaN"]
  20074. },
  20075. {
  20076. "type": "string",
  20077. "enum": ["Infinity"]
  20078. },
  20079. {
  20080. "type": "string",
  20081. "enum": ["-Infinity"]
  20082. }
  20083. ]
  20084. },
  20085. "completed": {
  20086. "anyOf": [
  20087. {
  20088. "type": "number"
  20089. },
  20090. {
  20091. "type": "string",
  20092. "enum": ["NaN"]
  20093. },
  20094. {
  20095. "type": "string",
  20096. "enum": ["Infinity"]
  20097. },
  20098. {
  20099. "type": "string",
  20100. "enum": ["-Infinity"]
  20101. }
  20102. ]
  20103. }
  20104. },
  20105. "required": ["started"],
  20106. "additionalProperties": false
  20107. }
  20108. },
  20109. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  20110. "additionalProperties": false
  20111. },
  20112. "shell.created": {
  20113. "type": "object",
  20114. "properties": {
  20115. "id": {
  20116. "type": "string",
  20117. "allOf": [
  20118. {
  20119. "pattern": "^evt_"
  20120. }
  20121. ]
  20122. },
  20123. "metadata": {
  20124. "type": "object"
  20125. },
  20126. "type": {
  20127. "type": "string",
  20128. "enum": ["shell.created"]
  20129. },
  20130. "durable": {
  20131. "type": "object",
  20132. "properties": {
  20133. "aggregateID": {
  20134. "type": "string"
  20135. },
  20136. "seq": {
  20137. "type": "integer",
  20138. "allOf": [
  20139. {
  20140. "minimum": 0
  20141. }
  20142. ]
  20143. },
  20144. "version": {
  20145. "type": "integer",
  20146. "allOf": [
  20147. {
  20148. "minimum": 1
  20149. }
  20150. ]
  20151. }
  20152. },
  20153. "required": ["aggregateID", "seq", "version"],
  20154. "additionalProperties": false
  20155. },
  20156. "location": {
  20157. "$ref": "#/components/schemas/Location.Ref"
  20158. },
  20159. "data": {
  20160. "type": "object",
  20161. "properties": {
  20162. "info": {
  20163. "$ref": "#/components/schemas/Shell"
  20164. }
  20165. },
  20166. "required": ["info"],
  20167. "additionalProperties": false
  20168. }
  20169. },
  20170. "required": ["id", "type", "data"],
  20171. "additionalProperties": false
  20172. },
  20173. "shell.exited": {
  20174. "type": "object",
  20175. "properties": {
  20176. "id": {
  20177. "type": "string",
  20178. "allOf": [
  20179. {
  20180. "pattern": "^evt_"
  20181. }
  20182. ]
  20183. },
  20184. "metadata": {
  20185. "type": "object"
  20186. },
  20187. "type": {
  20188. "type": "string",
  20189. "enum": ["shell.exited"]
  20190. },
  20191. "durable": {
  20192. "type": "object",
  20193. "properties": {
  20194. "aggregateID": {
  20195. "type": "string"
  20196. },
  20197. "seq": {
  20198. "type": "integer",
  20199. "allOf": [
  20200. {
  20201. "minimum": 0
  20202. }
  20203. ]
  20204. },
  20205. "version": {
  20206. "type": "integer",
  20207. "allOf": [
  20208. {
  20209. "minimum": 1
  20210. }
  20211. ]
  20212. }
  20213. },
  20214. "required": ["aggregateID", "seq", "version"],
  20215. "additionalProperties": false
  20216. },
  20217. "location": {
  20218. "$ref": "#/components/schemas/Location.Ref"
  20219. },
  20220. "data": {
  20221. "type": "object",
  20222. "properties": {
  20223. "id": {
  20224. "type": "string",
  20225. "allOf": [
  20226. {
  20227. "pattern": "^sh_"
  20228. }
  20229. ]
  20230. },
  20231. "exit": {
  20232. "anyOf": [
  20233. {
  20234. "type": "number"
  20235. },
  20236. {
  20237. "type": "string",
  20238. "enum": ["NaN"]
  20239. },
  20240. {
  20241. "type": "string",
  20242. "enum": ["Infinity"]
  20243. },
  20244. {
  20245. "type": "string",
  20246. "enum": ["-Infinity"]
  20247. }
  20248. ]
  20249. },
  20250. "status": {
  20251. "type": "string",
  20252. "enum": ["running", "exited", "timeout", "killed"]
  20253. }
  20254. },
  20255. "required": ["id", "status"],
  20256. "additionalProperties": false
  20257. }
  20258. },
  20259. "required": ["id", "type", "data"],
  20260. "additionalProperties": false
  20261. },
  20262. "shell.deleted": {
  20263. "type": "object",
  20264. "properties": {
  20265. "id": {
  20266. "type": "string",
  20267. "allOf": [
  20268. {
  20269. "pattern": "^evt_"
  20270. }
  20271. ]
  20272. },
  20273. "metadata": {
  20274. "type": "object"
  20275. },
  20276. "type": {
  20277. "type": "string",
  20278. "enum": ["shell.deleted"]
  20279. },
  20280. "durable": {
  20281. "type": "object",
  20282. "properties": {
  20283. "aggregateID": {
  20284. "type": "string"
  20285. },
  20286. "seq": {
  20287. "type": "integer",
  20288. "allOf": [
  20289. {
  20290. "minimum": 0
  20291. }
  20292. ]
  20293. },
  20294. "version": {
  20295. "type": "integer",
  20296. "allOf": [
  20297. {
  20298. "minimum": 1
  20299. }
  20300. ]
  20301. }
  20302. },
  20303. "required": ["aggregateID", "seq", "version"],
  20304. "additionalProperties": false
  20305. },
  20306. "location": {
  20307. "$ref": "#/components/schemas/Location.Ref"
  20308. },
  20309. "data": {
  20310. "type": "object",
  20311. "properties": {
  20312. "id": {
  20313. "type": "string",
  20314. "allOf": [
  20315. {
  20316. "pattern": "^sh_"
  20317. }
  20318. ]
  20319. }
  20320. },
  20321. "required": ["id"],
  20322. "additionalProperties": false
  20323. }
  20324. },
  20325. "required": ["id", "type", "data"],
  20326. "additionalProperties": false
  20327. },
  20328. "QuestionV2.Option": {
  20329. "type": "object",
  20330. "properties": {
  20331. "label": {
  20332. "type": "string",
  20333. "description": "Display text (1-5 words, concise)"
  20334. },
  20335. "description": {
  20336. "type": "string",
  20337. "description": "Explanation of choice"
  20338. }
  20339. },
  20340. "required": ["label", "description"],
  20341. "additionalProperties": false
  20342. },
  20343. "QuestionV2.Info": {
  20344. "type": "object",
  20345. "properties": {
  20346. "question": {
  20347. "type": "string",
  20348. "description": "Complete question"
  20349. },
  20350. "header": {
  20351. "type": "string",
  20352. "description": "Very short label (max 30 chars)"
  20353. },
  20354. "options": {
  20355. "type": "array",
  20356. "items": {
  20357. "$ref": "#/components/schemas/QuestionV2.Option"
  20358. },
  20359. "description": "Available choices"
  20360. },
  20361. "multiple": {
  20362. "type": "boolean"
  20363. },
  20364. "custom": {
  20365. "type": "boolean"
  20366. }
  20367. },
  20368. "required": ["question", "header", "options"],
  20369. "additionalProperties": false
  20370. },
  20371. "QuestionV2.Tool": {
  20372. "type": "object",
  20373. "properties": {
  20374. "messageID": {
  20375. "type": "string"
  20376. },
  20377. "callID": {
  20378. "type": "string"
  20379. }
  20380. },
  20381. "required": ["messageID", "callID"],
  20382. "additionalProperties": false
  20383. },
  20384. "question.v2.asked": {
  20385. "type": "object",
  20386. "properties": {
  20387. "id": {
  20388. "type": "string",
  20389. "allOf": [
  20390. {
  20391. "pattern": "^evt_"
  20392. }
  20393. ]
  20394. },
  20395. "metadata": {
  20396. "type": "object"
  20397. },
  20398. "type": {
  20399. "type": "string",
  20400. "enum": ["question.v2.asked"]
  20401. },
  20402. "durable": {
  20403. "type": "object",
  20404. "properties": {
  20405. "aggregateID": {
  20406. "type": "string"
  20407. },
  20408. "seq": {
  20409. "type": "integer",
  20410. "allOf": [
  20411. {
  20412. "minimum": 0
  20413. }
  20414. ]
  20415. },
  20416. "version": {
  20417. "type": "integer",
  20418. "allOf": [
  20419. {
  20420. "minimum": 1
  20421. }
  20422. ]
  20423. }
  20424. },
  20425. "required": ["aggregateID", "seq", "version"],
  20426. "additionalProperties": false
  20427. },
  20428. "location": {
  20429. "$ref": "#/components/schemas/Location.Ref"
  20430. },
  20431. "data": {
  20432. "type": "object",
  20433. "properties": {
  20434. "id": {
  20435. "type": "string",
  20436. "allOf": [
  20437. {
  20438. "pattern": "^que"
  20439. }
  20440. ]
  20441. },
  20442. "sessionID": {
  20443. "type": "string",
  20444. "allOf": [
  20445. {
  20446. "pattern": "^ses"
  20447. }
  20448. ]
  20449. },
  20450. "questions": {
  20451. "type": "array",
  20452. "items": {
  20453. "$ref": "#/components/schemas/QuestionV2.Info"
  20454. },
  20455. "description": "Questions to ask"
  20456. },
  20457. "tool": {
  20458. "$ref": "#/components/schemas/QuestionV2.Tool"
  20459. }
  20460. },
  20461. "required": ["id", "sessionID", "questions"],
  20462. "additionalProperties": false
  20463. }
  20464. },
  20465. "required": ["id", "type", "data"],
  20466. "additionalProperties": false
  20467. },
  20468. "QuestionV2.Answer": {
  20469. "type": "array",
  20470. "items": {
  20471. "type": "string"
  20472. }
  20473. },
  20474. "question.v2.replied": {
  20475. "type": "object",
  20476. "properties": {
  20477. "id": {
  20478. "type": "string",
  20479. "allOf": [
  20480. {
  20481. "pattern": "^evt_"
  20482. }
  20483. ]
  20484. },
  20485. "metadata": {
  20486. "type": "object"
  20487. },
  20488. "type": {
  20489. "type": "string",
  20490. "enum": ["question.v2.replied"]
  20491. },
  20492. "durable": {
  20493. "type": "object",
  20494. "properties": {
  20495. "aggregateID": {
  20496. "type": "string"
  20497. },
  20498. "seq": {
  20499. "type": "integer",
  20500. "allOf": [
  20501. {
  20502. "minimum": 0
  20503. }
  20504. ]
  20505. },
  20506. "version": {
  20507. "type": "integer",
  20508. "allOf": [
  20509. {
  20510. "minimum": 1
  20511. }
  20512. ]
  20513. }
  20514. },
  20515. "required": ["aggregateID", "seq", "version"],
  20516. "additionalProperties": false
  20517. },
  20518. "location": {
  20519. "$ref": "#/components/schemas/Location.Ref"
  20520. },
  20521. "data": {
  20522. "type": "object",
  20523. "properties": {
  20524. "sessionID": {
  20525. "type": "string",
  20526. "allOf": [
  20527. {
  20528. "pattern": "^ses"
  20529. }
  20530. ]
  20531. },
  20532. "requestID": {
  20533. "type": "string",
  20534. "allOf": [
  20535. {
  20536. "pattern": "^que"
  20537. }
  20538. ]
  20539. },
  20540. "answers": {
  20541. "type": "array",
  20542. "items": {
  20543. "$ref": "#/components/schemas/QuestionV2.Answer"
  20544. }
  20545. }
  20546. },
  20547. "required": ["sessionID", "requestID", "answers"],
  20548. "additionalProperties": false
  20549. }
  20550. },
  20551. "required": ["id", "type", "data"],
  20552. "additionalProperties": false
  20553. },
  20554. "question.v2.rejected": {
  20555. "type": "object",
  20556. "properties": {
  20557. "id": {
  20558. "type": "string",
  20559. "allOf": [
  20560. {
  20561. "pattern": "^evt_"
  20562. }
  20563. ]
  20564. },
  20565. "metadata": {
  20566. "type": "object"
  20567. },
  20568. "type": {
  20569. "type": "string",
  20570. "enum": ["question.v2.rejected"]
  20571. },
  20572. "durable": {
  20573. "type": "object",
  20574. "properties": {
  20575. "aggregateID": {
  20576. "type": "string"
  20577. },
  20578. "seq": {
  20579. "type": "integer",
  20580. "allOf": [
  20581. {
  20582. "minimum": 0
  20583. }
  20584. ]
  20585. },
  20586. "version": {
  20587. "type": "integer",
  20588. "allOf": [
  20589. {
  20590. "minimum": 1
  20591. }
  20592. ]
  20593. }
  20594. },
  20595. "required": ["aggregateID", "seq", "version"],
  20596. "additionalProperties": false
  20597. },
  20598. "location": {
  20599. "$ref": "#/components/schemas/Location.Ref"
  20600. },
  20601. "data": {
  20602. "type": "object",
  20603. "properties": {
  20604. "sessionID": {
  20605. "type": "string",
  20606. "allOf": [
  20607. {
  20608. "pattern": "^ses"
  20609. }
  20610. ]
  20611. },
  20612. "requestID": {
  20613. "type": "string",
  20614. "allOf": [
  20615. {
  20616. "pattern": "^que"
  20617. }
  20618. ]
  20619. }
  20620. },
  20621. "required": ["sessionID", "requestID"],
  20622. "additionalProperties": false
  20623. }
  20624. },
  20625. "required": ["id", "type", "data"],
  20626. "additionalProperties": false
  20627. },
  20628. "Form.Metadata1": {
  20629. "type": "object"
  20630. },
  20631. "Form.When1": {
  20632. "type": "object",
  20633. "properties": {
  20634. "key": {
  20635. "type": "string"
  20636. },
  20637. "op": {
  20638. "type": "string",
  20639. "enum": ["eq", "neq"]
  20640. },
  20641. "value": {
  20642. "anyOf": [
  20643. {
  20644. "type": "string"
  20645. },
  20646. {
  20647. "anyOf": [
  20648. {
  20649. "type": "number"
  20650. },
  20651. {
  20652. "type": "string",
  20653. "enum": ["NaN"]
  20654. },
  20655. {
  20656. "type": "string",
  20657. "enum": ["Infinity"]
  20658. },
  20659. {
  20660. "type": "string",
  20661. "enum": ["-Infinity"]
  20662. }
  20663. ]
  20664. },
  20665. {
  20666. "type": "boolean"
  20667. }
  20668. ]
  20669. }
  20670. },
  20671. "required": ["key", "op", "value"],
  20672. "additionalProperties": false
  20673. },
  20674. "Form.StringField1": {
  20675. "type": "object",
  20676. "properties": {
  20677. "key": {
  20678. "type": "string"
  20679. },
  20680. "title": {
  20681. "type": "string"
  20682. },
  20683. "description": {
  20684. "type": "string"
  20685. },
  20686. "required": {
  20687. "type": "boolean"
  20688. },
  20689. "when": {
  20690. "type": "array",
  20691. "items": {
  20692. "$ref": "#/components/schemas/Form.When1"
  20693. }
  20694. },
  20695. "type": {
  20696. "type": "string",
  20697. "enum": ["string"]
  20698. },
  20699. "format": {
  20700. "type": "string",
  20701. "enum": ["email", "uri", "date", "date-time"]
  20702. },
  20703. "minLength": {
  20704. "type": "integer",
  20705. "allOf": [
  20706. {
  20707. "minimum": 0
  20708. }
  20709. ]
  20710. },
  20711. "maxLength": {
  20712. "type": "integer",
  20713. "allOf": [
  20714. {
  20715. "minimum": 0
  20716. }
  20717. ]
  20718. },
  20719. "pattern": {
  20720. "type": "string"
  20721. },
  20722. "placeholder": {
  20723. "type": "string"
  20724. },
  20725. "default": {
  20726. "type": "string"
  20727. },
  20728. "options": {
  20729. "type": "array",
  20730. "items": {
  20731. "$ref": "#/components/schemas/Form.Option"
  20732. }
  20733. },
  20734. "custom": {
  20735. "type": "boolean"
  20736. }
  20737. },
  20738. "required": ["key", "type"],
  20739. "additionalProperties": false
  20740. },
  20741. "Form.NumberField1": {
  20742. "type": "object",
  20743. "properties": {
  20744. "key": {
  20745. "type": "string"
  20746. },
  20747. "title": {
  20748. "type": "string"
  20749. },
  20750. "description": {
  20751. "type": "string"
  20752. },
  20753. "required": {
  20754. "type": "boolean"
  20755. },
  20756. "when": {
  20757. "type": "array",
  20758. "items": {
  20759. "$ref": "#/components/schemas/Form.When1"
  20760. }
  20761. },
  20762. "type": {
  20763. "type": "string",
  20764. "enum": ["number"]
  20765. },
  20766. "minimum": {
  20767. "anyOf": [
  20768. {
  20769. "type": "number"
  20770. },
  20771. {
  20772. "type": "string",
  20773. "enum": ["NaN"]
  20774. },
  20775. {
  20776. "type": "string",
  20777. "enum": ["Infinity"]
  20778. },
  20779. {
  20780. "type": "string",
  20781. "enum": ["-Infinity"]
  20782. }
  20783. ]
  20784. },
  20785. "maximum": {
  20786. "anyOf": [
  20787. {
  20788. "type": "number"
  20789. },
  20790. {
  20791. "type": "string",
  20792. "enum": ["NaN"]
  20793. },
  20794. {
  20795. "type": "string",
  20796. "enum": ["Infinity"]
  20797. },
  20798. {
  20799. "type": "string",
  20800. "enum": ["-Infinity"]
  20801. }
  20802. ]
  20803. },
  20804. "default": {
  20805. "anyOf": [
  20806. {
  20807. "type": "number"
  20808. },
  20809. {
  20810. "type": "string",
  20811. "enum": ["NaN"]
  20812. },
  20813. {
  20814. "type": "string",
  20815. "enum": ["Infinity"]
  20816. },
  20817. {
  20818. "type": "string",
  20819. "enum": ["-Infinity"]
  20820. }
  20821. ]
  20822. }
  20823. },
  20824. "required": ["key", "type"],
  20825. "additionalProperties": false
  20826. },
  20827. "Form.IntegerField1": {
  20828. "type": "object",
  20829. "properties": {
  20830. "key": {
  20831. "type": "string"
  20832. },
  20833. "title": {
  20834. "type": "string"
  20835. },
  20836. "description": {
  20837. "type": "string"
  20838. },
  20839. "required": {
  20840. "type": "boolean"
  20841. },
  20842. "when": {
  20843. "type": "array",
  20844. "items": {
  20845. "$ref": "#/components/schemas/Form.When1"
  20846. }
  20847. },
  20848. "type": {
  20849. "type": "string",
  20850. "enum": ["integer"]
  20851. },
  20852. "minimum": {
  20853. "anyOf": [
  20854. {
  20855. "type": "number"
  20856. },
  20857. {
  20858. "type": "string",
  20859. "enum": ["NaN"]
  20860. },
  20861. {
  20862. "type": "string",
  20863. "enum": ["Infinity"]
  20864. },
  20865. {
  20866. "type": "string",
  20867. "enum": ["-Infinity"]
  20868. }
  20869. ]
  20870. },
  20871. "maximum": {
  20872. "anyOf": [
  20873. {
  20874. "type": "number"
  20875. },
  20876. {
  20877. "type": "string",
  20878. "enum": ["NaN"]
  20879. },
  20880. {
  20881. "type": "string",
  20882. "enum": ["Infinity"]
  20883. },
  20884. {
  20885. "type": "string",
  20886. "enum": ["-Infinity"]
  20887. }
  20888. ]
  20889. },
  20890. "default": {
  20891. "anyOf": [
  20892. {
  20893. "type": "number"
  20894. },
  20895. {
  20896. "type": "string",
  20897. "enum": ["NaN"]
  20898. },
  20899. {
  20900. "type": "string",
  20901. "enum": ["Infinity"]
  20902. },
  20903. {
  20904. "type": "string",
  20905. "enum": ["-Infinity"]
  20906. }
  20907. ]
  20908. }
  20909. },
  20910. "required": ["key", "type"],
  20911. "additionalProperties": false
  20912. },
  20913. "Form.BooleanField1": {
  20914. "type": "object",
  20915. "properties": {
  20916. "key": {
  20917. "type": "string"
  20918. },
  20919. "title": {
  20920. "type": "string"
  20921. },
  20922. "description": {
  20923. "type": "string"
  20924. },
  20925. "required": {
  20926. "type": "boolean"
  20927. },
  20928. "when": {
  20929. "type": "array",
  20930. "items": {
  20931. "$ref": "#/components/schemas/Form.When1"
  20932. }
  20933. },
  20934. "type": {
  20935. "type": "string",
  20936. "enum": ["boolean"]
  20937. },
  20938. "default": {
  20939. "type": "boolean"
  20940. }
  20941. },
  20942. "required": ["key", "type"],
  20943. "additionalProperties": false
  20944. },
  20945. "Form.MultiselectField1": {
  20946. "type": "object",
  20947. "properties": {
  20948. "key": {
  20949. "type": "string"
  20950. },
  20951. "title": {
  20952. "type": "string"
  20953. },
  20954. "description": {
  20955. "type": "string"
  20956. },
  20957. "required": {
  20958. "type": "boolean"
  20959. },
  20960. "when": {
  20961. "type": "array",
  20962. "items": {
  20963. "$ref": "#/components/schemas/Form.When1"
  20964. }
  20965. },
  20966. "type": {
  20967. "type": "string",
  20968. "enum": ["multiselect"]
  20969. },
  20970. "options": {
  20971. "type": "array",
  20972. "items": {
  20973. "$ref": "#/components/schemas/Form.Option"
  20974. }
  20975. },
  20976. "minItems": {
  20977. "type": "integer",
  20978. "allOf": [
  20979. {
  20980. "minimum": 0
  20981. }
  20982. ]
  20983. },
  20984. "maxItems": {
  20985. "type": "integer",
  20986. "allOf": [
  20987. {
  20988. "minimum": 0
  20989. }
  20990. ]
  20991. },
  20992. "custom": {
  20993. "type": "boolean"
  20994. },
  20995. "default": {
  20996. "type": "array",
  20997. "items": {
  20998. "type": "string"
  20999. }
  21000. }
  21001. },
  21002. "required": ["key", "type", "options"],
  21003. "additionalProperties": false
  21004. },
  21005. "Form.FormInfo1": {
  21006. "type": "object",
  21007. "properties": {
  21008. "id": {
  21009. "type": "string",
  21010. "allOf": [
  21011. {
  21012. "pattern": "^frm_"
  21013. }
  21014. ]
  21015. },
  21016. "sessionID": {
  21017. "type": "string"
  21018. },
  21019. "title": {
  21020. "type": "string"
  21021. },
  21022. "metadata": {
  21023. "$ref": "#/components/schemas/Form.Metadata1"
  21024. },
  21025. "mode": {
  21026. "type": "string",
  21027. "enum": ["form"]
  21028. },
  21029. "fields": {
  21030. "type": "array",
  21031. "items": {
  21032. "anyOf": [
  21033. {
  21034. "$ref": "#/components/schemas/Form.StringField1"
  21035. },
  21036. {
  21037. "$ref": "#/components/schemas/Form.NumberField1"
  21038. },
  21039. {
  21040. "$ref": "#/components/schemas/Form.IntegerField1"
  21041. },
  21042. {
  21043. "$ref": "#/components/schemas/Form.BooleanField1"
  21044. },
  21045. {
  21046. "$ref": "#/components/schemas/Form.MultiselectField1"
  21047. }
  21048. ]
  21049. }
  21050. }
  21051. },
  21052. "required": ["id", "sessionID", "mode", "fields"],
  21053. "additionalProperties": false
  21054. },
  21055. "Form.UrlInfo1": {
  21056. "type": "object",
  21057. "properties": {
  21058. "id": {
  21059. "type": "string",
  21060. "allOf": [
  21061. {
  21062. "pattern": "^frm_"
  21063. }
  21064. ]
  21065. },
  21066. "sessionID": {
  21067. "type": "string"
  21068. },
  21069. "title": {
  21070. "type": "string"
  21071. },
  21072. "metadata": {
  21073. "$ref": "#/components/schemas/Form.Metadata1"
  21074. },
  21075. "mode": {
  21076. "type": "string",
  21077. "enum": ["url"]
  21078. },
  21079. "url": {
  21080. "type": "string"
  21081. }
  21082. },
  21083. "required": ["id", "sessionID", "mode", "url"],
  21084. "additionalProperties": false
  21085. },
  21086. "form.created": {
  21087. "type": "object",
  21088. "properties": {
  21089. "id": {
  21090. "type": "string",
  21091. "allOf": [
  21092. {
  21093. "pattern": "^evt_"
  21094. }
  21095. ]
  21096. },
  21097. "metadata": {
  21098. "type": "object"
  21099. },
  21100. "type": {
  21101. "type": "string",
  21102. "enum": ["form.created"]
  21103. },
  21104. "durable": {
  21105. "type": "object",
  21106. "properties": {
  21107. "aggregateID": {
  21108. "type": "string"
  21109. },
  21110. "seq": {
  21111. "type": "integer",
  21112. "allOf": [
  21113. {
  21114. "minimum": 0
  21115. }
  21116. ]
  21117. },
  21118. "version": {
  21119. "type": "integer",
  21120. "allOf": [
  21121. {
  21122. "minimum": 1
  21123. }
  21124. ]
  21125. }
  21126. },
  21127. "required": ["aggregateID", "seq", "version"],
  21128. "additionalProperties": false
  21129. },
  21130. "location": {
  21131. "$ref": "#/components/schemas/Location.Ref"
  21132. },
  21133. "data": {
  21134. "type": "object",
  21135. "properties": {
  21136. "form": {
  21137. "anyOf": [
  21138. {
  21139. "$ref": "#/components/schemas/Form.FormInfo1"
  21140. },
  21141. {
  21142. "$ref": "#/components/schemas/Form.UrlInfo1"
  21143. }
  21144. ]
  21145. }
  21146. },
  21147. "required": ["form"],
  21148. "additionalProperties": false
  21149. }
  21150. },
  21151. "required": ["id", "type", "data"],
  21152. "additionalProperties": false
  21153. },
  21154. "Form.Value1": {
  21155. "anyOf": [
  21156. {
  21157. "type": "string"
  21158. },
  21159. {
  21160. "anyOf": [
  21161. {
  21162. "type": "number"
  21163. },
  21164. {
  21165. "type": "string",
  21166. "enum": ["NaN"]
  21167. },
  21168. {
  21169. "type": "string",
  21170. "enum": ["Infinity"]
  21171. },
  21172. {
  21173. "type": "string",
  21174. "enum": ["-Infinity"]
  21175. }
  21176. ]
  21177. },
  21178. {
  21179. "type": "boolean"
  21180. },
  21181. {
  21182. "type": "array",
  21183. "items": {
  21184. "type": "string"
  21185. }
  21186. }
  21187. ]
  21188. },
  21189. "Form.Answer1": {
  21190. "type": "object",
  21191. "additionalProperties": {
  21192. "$ref": "#/components/schemas/Form.Value1"
  21193. }
  21194. },
  21195. "form.replied": {
  21196. "type": "object",
  21197. "properties": {
  21198. "id": {
  21199. "type": "string",
  21200. "allOf": [
  21201. {
  21202. "pattern": "^evt_"
  21203. }
  21204. ]
  21205. },
  21206. "metadata": {
  21207. "type": "object"
  21208. },
  21209. "type": {
  21210. "type": "string",
  21211. "enum": ["form.replied"]
  21212. },
  21213. "durable": {
  21214. "type": "object",
  21215. "properties": {
  21216. "aggregateID": {
  21217. "type": "string"
  21218. },
  21219. "seq": {
  21220. "type": "integer",
  21221. "allOf": [
  21222. {
  21223. "minimum": 0
  21224. }
  21225. ]
  21226. },
  21227. "version": {
  21228. "type": "integer",
  21229. "allOf": [
  21230. {
  21231. "minimum": 1
  21232. }
  21233. ]
  21234. }
  21235. },
  21236. "required": ["aggregateID", "seq", "version"],
  21237. "additionalProperties": false
  21238. },
  21239. "location": {
  21240. "$ref": "#/components/schemas/Location.Ref"
  21241. },
  21242. "data": {
  21243. "type": "object",
  21244. "properties": {
  21245. "id": {
  21246. "type": "string",
  21247. "allOf": [
  21248. {
  21249. "pattern": "^frm_"
  21250. }
  21251. ]
  21252. },
  21253. "sessionID": {
  21254. "type": "string"
  21255. },
  21256. "answer": {
  21257. "$ref": "#/components/schemas/Form.Answer1"
  21258. }
  21259. },
  21260. "required": ["id", "sessionID", "answer"],
  21261. "additionalProperties": false
  21262. }
  21263. },
  21264. "required": ["id", "type", "data"],
  21265. "additionalProperties": false
  21266. },
  21267. "form.cancelled": {
  21268. "type": "object",
  21269. "properties": {
  21270. "id": {
  21271. "type": "string",
  21272. "allOf": [
  21273. {
  21274. "pattern": "^evt_"
  21275. }
  21276. ]
  21277. },
  21278. "metadata": {
  21279. "type": "object"
  21280. },
  21281. "type": {
  21282. "type": "string",
  21283. "enum": ["form.cancelled"]
  21284. },
  21285. "durable": {
  21286. "type": "object",
  21287. "properties": {
  21288. "aggregateID": {
  21289. "type": "string"
  21290. },
  21291. "seq": {
  21292. "type": "integer",
  21293. "allOf": [
  21294. {
  21295. "minimum": 0
  21296. }
  21297. ]
  21298. },
  21299. "version": {
  21300. "type": "integer",
  21301. "allOf": [
  21302. {
  21303. "minimum": 1
  21304. }
  21305. ]
  21306. }
  21307. },
  21308. "required": ["aggregateID", "seq", "version"],
  21309. "additionalProperties": false
  21310. },
  21311. "location": {
  21312. "$ref": "#/components/schemas/Location.Ref"
  21313. },
  21314. "data": {
  21315. "type": "object",
  21316. "properties": {
  21317. "id": {
  21318. "type": "string",
  21319. "allOf": [
  21320. {
  21321. "pattern": "^frm_"
  21322. }
  21323. ]
  21324. },
  21325. "sessionID": {
  21326. "type": "string"
  21327. }
  21328. },
  21329. "required": ["id", "sessionID"],
  21330. "additionalProperties": false
  21331. }
  21332. },
  21333. "required": ["id", "type", "data"],
  21334. "additionalProperties": false
  21335. },
  21336. "Todo": {
  21337. "type": "object",
  21338. "properties": {
  21339. "content": {
  21340. "type": "string",
  21341. "description": "Brief description of the task"
  21342. },
  21343. "status": {
  21344. "type": "string",
  21345. "description": "Current status of the task: pending, in_progress, completed, cancelled"
  21346. },
  21347. "priority": {
  21348. "type": "string",
  21349. "description": "Priority level of the task: high, medium, low"
  21350. }
  21351. },
  21352. "required": ["content", "status", "priority"],
  21353. "additionalProperties": false
  21354. },
  21355. "todo.updated": {
  21356. "type": "object",
  21357. "properties": {
  21358. "id": {
  21359. "type": "string",
  21360. "allOf": [
  21361. {
  21362. "pattern": "^evt_"
  21363. }
  21364. ]
  21365. },
  21366. "metadata": {
  21367. "type": "object"
  21368. },
  21369. "type": {
  21370. "type": "string",
  21371. "enum": ["todo.updated"]
  21372. },
  21373. "durable": {
  21374. "type": "object",
  21375. "properties": {
  21376. "aggregateID": {
  21377. "type": "string"
  21378. },
  21379. "seq": {
  21380. "type": "integer",
  21381. "allOf": [
  21382. {
  21383. "minimum": 0
  21384. }
  21385. ]
  21386. },
  21387. "version": {
  21388. "type": "integer",
  21389. "allOf": [
  21390. {
  21391. "minimum": 1
  21392. }
  21393. ]
  21394. }
  21395. },
  21396. "required": ["aggregateID", "seq", "version"],
  21397. "additionalProperties": false
  21398. },
  21399. "location": {
  21400. "$ref": "#/components/schemas/Location.Ref"
  21401. },
  21402. "data": {
  21403. "type": "object",
  21404. "properties": {
  21405. "sessionID": {
  21406. "type": "string",
  21407. "allOf": [
  21408. {
  21409. "pattern": "^ses"
  21410. }
  21411. ]
  21412. },
  21413. "todos": {
  21414. "type": "array",
  21415. "items": {
  21416. "$ref": "#/components/schemas/Todo"
  21417. }
  21418. }
  21419. },
  21420. "required": ["sessionID", "todos"],
  21421. "additionalProperties": false
  21422. }
  21423. },
  21424. "required": ["id", "type", "data"],
  21425. "additionalProperties": false
  21426. },
  21427. "SessionStatus": {
  21428. "anyOf": [
  21429. {
  21430. "type": "object",
  21431. "properties": {
  21432. "type": {
  21433. "type": "string",
  21434. "enum": ["idle"]
  21435. }
  21436. },
  21437. "required": ["type"],
  21438. "additionalProperties": false
  21439. },
  21440. {
  21441. "type": "object",
  21442. "properties": {
  21443. "type": {
  21444. "type": "string",
  21445. "enum": ["retry"]
  21446. },
  21447. "attempt": {
  21448. "type": "integer",
  21449. "allOf": [
  21450. {
  21451. "minimum": 0
  21452. }
  21453. ]
  21454. },
  21455. "message": {
  21456. "type": "string"
  21457. },
  21458. "action": {
  21459. "type": "object",
  21460. "properties": {
  21461. "reason": {
  21462. "type": "string"
  21463. },
  21464. "provider": {
  21465. "type": "string"
  21466. },
  21467. "title": {
  21468. "type": "string"
  21469. },
  21470. "message": {
  21471. "type": "string"
  21472. },
  21473. "label": {
  21474. "type": "string"
  21475. },
  21476. "link": {
  21477. "type": "string"
  21478. }
  21479. },
  21480. "required": ["reason", "provider", "title", "message", "label"],
  21481. "additionalProperties": false
  21482. },
  21483. "next": {
  21484. "type": "integer",
  21485. "allOf": [
  21486. {
  21487. "minimum": 0
  21488. }
  21489. ]
  21490. }
  21491. },
  21492. "required": ["type", "attempt", "message", "next"],
  21493. "additionalProperties": false
  21494. },
  21495. {
  21496. "type": "object",
  21497. "properties": {
  21498. "type": {
  21499. "type": "string",
  21500. "enum": ["busy"]
  21501. }
  21502. },
  21503. "required": ["type"],
  21504. "additionalProperties": false
  21505. }
  21506. ]
  21507. },
  21508. "session.status": {
  21509. "type": "object",
  21510. "properties": {
  21511. "id": {
  21512. "type": "string",
  21513. "allOf": [
  21514. {
  21515. "pattern": "^evt_"
  21516. }
  21517. ]
  21518. },
  21519. "metadata": {
  21520. "type": "object"
  21521. },
  21522. "type": {
  21523. "type": "string",
  21524. "enum": ["session.status"]
  21525. },
  21526. "durable": {
  21527. "type": "object",
  21528. "properties": {
  21529. "aggregateID": {
  21530. "type": "string"
  21531. },
  21532. "seq": {
  21533. "type": "integer",
  21534. "allOf": [
  21535. {
  21536. "minimum": 0
  21537. }
  21538. ]
  21539. },
  21540. "version": {
  21541. "type": "integer",
  21542. "allOf": [
  21543. {
  21544. "minimum": 1
  21545. }
  21546. ]
  21547. }
  21548. },
  21549. "required": ["aggregateID", "seq", "version"],
  21550. "additionalProperties": false
  21551. },
  21552. "location": {
  21553. "$ref": "#/components/schemas/Location.Ref"
  21554. },
  21555. "data": {
  21556. "type": "object",
  21557. "properties": {
  21558. "sessionID": {
  21559. "type": "string",
  21560. "allOf": [
  21561. {
  21562. "pattern": "^ses"
  21563. }
  21564. ]
  21565. },
  21566. "status": {
  21567. "$ref": "#/components/schemas/SessionStatus"
  21568. }
  21569. },
  21570. "required": ["sessionID", "status"],
  21571. "additionalProperties": false
  21572. }
  21573. },
  21574. "required": ["id", "type", "data"],
  21575. "additionalProperties": false
  21576. },
  21577. "session.idle": {
  21578. "type": "object",
  21579. "properties": {
  21580. "id": {
  21581. "type": "string",
  21582. "allOf": [
  21583. {
  21584. "pattern": "^evt_"
  21585. }
  21586. ]
  21587. },
  21588. "metadata": {
  21589. "type": "object"
  21590. },
  21591. "type": {
  21592. "type": "string",
  21593. "enum": ["session.idle"]
  21594. },
  21595. "durable": {
  21596. "type": "object",
  21597. "properties": {
  21598. "aggregateID": {
  21599. "type": "string"
  21600. },
  21601. "seq": {
  21602. "type": "integer",
  21603. "allOf": [
  21604. {
  21605. "minimum": 0
  21606. }
  21607. ]
  21608. },
  21609. "version": {
  21610. "type": "integer",
  21611. "allOf": [
  21612. {
  21613. "minimum": 1
  21614. }
  21615. ]
  21616. }
  21617. },
  21618. "required": ["aggregateID", "seq", "version"],
  21619. "additionalProperties": false
  21620. },
  21621. "location": {
  21622. "$ref": "#/components/schemas/Location.Ref"
  21623. },
  21624. "data": {
  21625. "type": "object",
  21626. "properties": {
  21627. "sessionID": {
  21628. "type": "string",
  21629. "allOf": [
  21630. {
  21631. "pattern": "^ses"
  21632. }
  21633. ]
  21634. }
  21635. },
  21636. "required": ["sessionID"],
  21637. "additionalProperties": false
  21638. }
  21639. },
  21640. "required": ["id", "type", "data"],
  21641. "additionalProperties": false
  21642. },
  21643. "tui.prompt.append": {
  21644. "type": "object",
  21645. "properties": {
  21646. "id": {
  21647. "type": "string",
  21648. "allOf": [
  21649. {
  21650. "pattern": "^evt_"
  21651. }
  21652. ]
  21653. },
  21654. "metadata": {
  21655. "type": "object"
  21656. },
  21657. "type": {
  21658. "type": "string",
  21659. "enum": ["tui.prompt.append"]
  21660. },
  21661. "durable": {
  21662. "type": "object",
  21663. "properties": {
  21664. "aggregateID": {
  21665. "type": "string"
  21666. },
  21667. "seq": {
  21668. "type": "integer",
  21669. "allOf": [
  21670. {
  21671. "minimum": 0
  21672. }
  21673. ]
  21674. },
  21675. "version": {
  21676. "type": "integer",
  21677. "allOf": [
  21678. {
  21679. "minimum": 1
  21680. }
  21681. ]
  21682. }
  21683. },
  21684. "required": ["aggregateID", "seq", "version"],
  21685. "additionalProperties": false
  21686. },
  21687. "location": {
  21688. "$ref": "#/components/schemas/Location.Ref"
  21689. },
  21690. "data": {
  21691. "type": "object",
  21692. "properties": {
  21693. "text": {
  21694. "type": "string"
  21695. }
  21696. },
  21697. "required": ["text"],
  21698. "additionalProperties": false
  21699. }
  21700. },
  21701. "required": ["id", "type", "data"],
  21702. "additionalProperties": false
  21703. },
  21704. "tui.command.execute": {
  21705. "type": "object",
  21706. "properties": {
  21707. "id": {
  21708. "type": "string",
  21709. "allOf": [
  21710. {
  21711. "pattern": "^evt_"
  21712. }
  21713. ]
  21714. },
  21715. "metadata": {
  21716. "type": "object"
  21717. },
  21718. "type": {
  21719. "type": "string",
  21720. "enum": ["tui.command.execute"]
  21721. },
  21722. "durable": {
  21723. "type": "object",
  21724. "properties": {
  21725. "aggregateID": {
  21726. "type": "string"
  21727. },
  21728. "seq": {
  21729. "type": "integer",
  21730. "allOf": [
  21731. {
  21732. "minimum": 0
  21733. }
  21734. ]
  21735. },
  21736. "version": {
  21737. "type": "integer",
  21738. "allOf": [
  21739. {
  21740. "minimum": 1
  21741. }
  21742. ]
  21743. }
  21744. },
  21745. "required": ["aggregateID", "seq", "version"],
  21746. "additionalProperties": false
  21747. },
  21748. "location": {
  21749. "$ref": "#/components/schemas/Location.Ref"
  21750. },
  21751. "data": {
  21752. "type": "object",
  21753. "properties": {
  21754. "command": {
  21755. "anyOf": [
  21756. {
  21757. "type": "string",
  21758. "enum": [
  21759. "session.list",
  21760. "session.new",
  21761. "session.share",
  21762. "session.interrupt",
  21763. "session.background",
  21764. "session.compact",
  21765. "session.page.up",
  21766. "session.page.down",
  21767. "session.line.up",
  21768. "session.line.down",
  21769. "session.half.page.up",
  21770. "session.half.page.down",
  21771. "session.first",
  21772. "session.last",
  21773. "prompt.clear",
  21774. "prompt.submit",
  21775. "agent.cycle"
  21776. ]
  21777. },
  21778. {
  21779. "type": "string"
  21780. }
  21781. ]
  21782. }
  21783. },
  21784. "required": ["command"],
  21785. "additionalProperties": false
  21786. }
  21787. },
  21788. "required": ["id", "type", "data"],
  21789. "additionalProperties": false
  21790. },
  21791. "tui.toast.show": {
  21792. "type": "object",
  21793. "properties": {
  21794. "id": {
  21795. "type": "string",
  21796. "allOf": [
  21797. {
  21798. "pattern": "^evt_"
  21799. }
  21800. ]
  21801. },
  21802. "metadata": {
  21803. "type": "object"
  21804. },
  21805. "type": {
  21806. "type": "string",
  21807. "enum": ["tui.toast.show"]
  21808. },
  21809. "durable": {
  21810. "type": "object",
  21811. "properties": {
  21812. "aggregateID": {
  21813. "type": "string"
  21814. },
  21815. "seq": {
  21816. "type": "integer",
  21817. "allOf": [
  21818. {
  21819. "minimum": 0
  21820. }
  21821. ]
  21822. },
  21823. "version": {
  21824. "type": "integer",
  21825. "allOf": [
  21826. {
  21827. "minimum": 1
  21828. }
  21829. ]
  21830. }
  21831. },
  21832. "required": ["aggregateID", "seq", "version"],
  21833. "additionalProperties": false
  21834. },
  21835. "location": {
  21836. "$ref": "#/components/schemas/Location.Ref"
  21837. },
  21838. "data": {
  21839. "type": "object",
  21840. "properties": {
  21841. "title": {
  21842. "type": "string"
  21843. },
  21844. "message": {
  21845. "type": "string"
  21846. },
  21847. "variant": {
  21848. "type": "string",
  21849. "enum": ["info", "success", "warning", "error"]
  21850. },
  21851. "duration": {
  21852. "anyOf": [
  21853. {
  21854. "type": "integer",
  21855. "allOf": [
  21856. {
  21857. "exclusiveMinimum": 0
  21858. }
  21859. ]
  21860. },
  21861. {
  21862. "type": "null"
  21863. }
  21864. ]
  21865. }
  21866. },
  21867. "required": ["message", "variant"],
  21868. "additionalProperties": false
  21869. }
  21870. },
  21871. "required": ["id", "type", "data"],
  21872. "additionalProperties": false
  21873. },
  21874. "tui.session.select": {
  21875. "type": "object",
  21876. "properties": {
  21877. "id": {
  21878. "type": "string",
  21879. "allOf": [
  21880. {
  21881. "pattern": "^evt_"
  21882. }
  21883. ]
  21884. },
  21885. "metadata": {
  21886. "type": "object"
  21887. },
  21888. "type": {
  21889. "type": "string",
  21890. "enum": ["tui.session.select"]
  21891. },
  21892. "durable": {
  21893. "type": "object",
  21894. "properties": {
  21895. "aggregateID": {
  21896. "type": "string"
  21897. },
  21898. "seq": {
  21899. "type": "integer",
  21900. "allOf": [
  21901. {
  21902. "minimum": 0
  21903. }
  21904. ]
  21905. },
  21906. "version": {
  21907. "type": "integer",
  21908. "allOf": [
  21909. {
  21910. "minimum": 1
  21911. }
  21912. ]
  21913. }
  21914. },
  21915. "required": ["aggregateID", "seq", "version"],
  21916. "additionalProperties": false
  21917. },
  21918. "location": {
  21919. "$ref": "#/components/schemas/Location.Ref"
  21920. },
  21921. "data": {
  21922. "type": "object",
  21923. "properties": {
  21924. "sessionID": {
  21925. "type": "string",
  21926. "allOf": [
  21927. {
  21928. "pattern": "^ses",
  21929. "description": "Session ID to navigate to"
  21930. }
  21931. ]
  21932. }
  21933. },
  21934. "required": ["sessionID"],
  21935. "additionalProperties": false
  21936. }
  21937. },
  21938. "required": ["id", "type", "data"],
  21939. "additionalProperties": false
  21940. },
  21941. "installation.updated": {
  21942. "type": "object",
  21943. "properties": {
  21944. "id": {
  21945. "type": "string",
  21946. "allOf": [
  21947. {
  21948. "pattern": "^evt_"
  21949. }
  21950. ]
  21951. },
  21952. "metadata": {
  21953. "type": "object"
  21954. },
  21955. "type": {
  21956. "type": "string",
  21957. "enum": ["installation.updated"]
  21958. },
  21959. "durable": {
  21960. "type": "object",
  21961. "properties": {
  21962. "aggregateID": {
  21963. "type": "string"
  21964. },
  21965. "seq": {
  21966. "type": "integer",
  21967. "allOf": [
  21968. {
  21969. "minimum": 0
  21970. }
  21971. ]
  21972. },
  21973. "version": {
  21974. "type": "integer",
  21975. "allOf": [
  21976. {
  21977. "minimum": 1
  21978. }
  21979. ]
  21980. }
  21981. },
  21982. "required": ["aggregateID", "seq", "version"],
  21983. "additionalProperties": false
  21984. },
  21985. "location": {
  21986. "$ref": "#/components/schemas/Location.Ref"
  21987. },
  21988. "data": {
  21989. "type": "object",
  21990. "properties": {
  21991. "version": {
  21992. "type": "string"
  21993. }
  21994. },
  21995. "required": ["version"],
  21996. "additionalProperties": false
  21997. }
  21998. },
  21999. "required": ["id", "type", "data"],
  22000. "additionalProperties": false
  22001. },
  22002. "installation.update-available": {
  22003. "type": "object",
  22004. "properties": {
  22005. "id": {
  22006. "type": "string",
  22007. "allOf": [
  22008. {
  22009. "pattern": "^evt_"
  22010. }
  22011. ]
  22012. },
  22013. "metadata": {
  22014. "type": "object"
  22015. },
  22016. "type": {
  22017. "type": "string",
  22018. "enum": ["installation.update-available"]
  22019. },
  22020. "durable": {
  22021. "type": "object",
  22022. "properties": {
  22023. "aggregateID": {
  22024. "type": "string"
  22025. },
  22026. "seq": {
  22027. "type": "integer",
  22028. "allOf": [
  22029. {
  22030. "minimum": 0
  22031. }
  22032. ]
  22033. },
  22034. "version": {
  22035. "type": "integer",
  22036. "allOf": [
  22037. {
  22038. "minimum": 1
  22039. }
  22040. ]
  22041. }
  22042. },
  22043. "required": ["aggregateID", "seq", "version"],
  22044. "additionalProperties": false
  22045. },
  22046. "location": {
  22047. "$ref": "#/components/schemas/Location.Ref"
  22048. },
  22049. "data": {
  22050. "type": "object",
  22051. "properties": {
  22052. "version": {
  22053. "type": "string"
  22054. }
  22055. },
  22056. "required": ["version"],
  22057. "additionalProperties": false
  22058. }
  22059. },
  22060. "required": ["id", "type", "data"],
  22061. "additionalProperties": false
  22062. },
  22063. "vcs.branch.updated": {
  22064. "type": "object",
  22065. "properties": {
  22066. "id": {
  22067. "type": "string",
  22068. "allOf": [
  22069. {
  22070. "pattern": "^evt_"
  22071. }
  22072. ]
  22073. },
  22074. "metadata": {
  22075. "type": "object"
  22076. },
  22077. "type": {
  22078. "type": "string",
  22079. "enum": ["vcs.branch.updated"]
  22080. },
  22081. "durable": {
  22082. "type": "object",
  22083. "properties": {
  22084. "aggregateID": {
  22085. "type": "string"
  22086. },
  22087. "seq": {
  22088. "type": "integer",
  22089. "allOf": [
  22090. {
  22091. "minimum": 0
  22092. }
  22093. ]
  22094. },
  22095. "version": {
  22096. "type": "integer",
  22097. "allOf": [
  22098. {
  22099. "minimum": 1
  22100. }
  22101. ]
  22102. }
  22103. },
  22104. "required": ["aggregateID", "seq", "version"],
  22105. "additionalProperties": false
  22106. },
  22107. "location": {
  22108. "$ref": "#/components/schemas/Location.Ref"
  22109. },
  22110. "data": {
  22111. "type": "object",
  22112. "properties": {
  22113. "branch": {
  22114. "type": "string"
  22115. }
  22116. },
  22117. "additionalProperties": false
  22118. }
  22119. },
  22120. "required": ["id", "type", "data"],
  22121. "additionalProperties": false
  22122. },
  22123. "mcp.status.changed": {
  22124. "type": "object",
  22125. "properties": {
  22126. "id": {
  22127. "type": "string",
  22128. "allOf": [
  22129. {
  22130. "pattern": "^evt_"
  22131. }
  22132. ]
  22133. },
  22134. "metadata": {
  22135. "type": "object"
  22136. },
  22137. "type": {
  22138. "type": "string",
  22139. "enum": ["mcp.status.changed"]
  22140. },
  22141. "durable": {
  22142. "type": "object",
  22143. "properties": {
  22144. "aggregateID": {
  22145. "type": "string"
  22146. },
  22147. "seq": {
  22148. "type": "integer",
  22149. "allOf": [
  22150. {
  22151. "minimum": 0
  22152. }
  22153. ]
  22154. },
  22155. "version": {
  22156. "type": "integer",
  22157. "allOf": [
  22158. {
  22159. "minimum": 1
  22160. }
  22161. ]
  22162. }
  22163. },
  22164. "required": ["aggregateID", "seq", "version"],
  22165. "additionalProperties": false
  22166. },
  22167. "location": {
  22168. "$ref": "#/components/schemas/Location.Ref"
  22169. },
  22170. "data": {
  22171. "type": "object",
  22172. "properties": {
  22173. "server": {
  22174. "type": "string"
  22175. }
  22176. },
  22177. "required": ["server"],
  22178. "additionalProperties": false
  22179. }
  22180. },
  22181. "required": ["id", "type", "data"],
  22182. "additionalProperties": false
  22183. },
  22184. "permission.asked": {
  22185. "type": "object",
  22186. "properties": {
  22187. "id": {
  22188. "type": "string",
  22189. "allOf": [
  22190. {
  22191. "pattern": "^evt_"
  22192. }
  22193. ]
  22194. },
  22195. "metadata": {
  22196. "type": "object"
  22197. },
  22198. "type": {
  22199. "type": "string",
  22200. "enum": ["permission.asked"]
  22201. },
  22202. "durable": {
  22203. "type": "object",
  22204. "properties": {
  22205. "aggregateID": {
  22206. "type": "string"
  22207. },
  22208. "seq": {
  22209. "type": "integer",
  22210. "allOf": [
  22211. {
  22212. "minimum": 0
  22213. }
  22214. ]
  22215. },
  22216. "version": {
  22217. "type": "integer",
  22218. "allOf": [
  22219. {
  22220. "minimum": 1
  22221. }
  22222. ]
  22223. }
  22224. },
  22225. "required": ["aggregateID", "seq", "version"],
  22226. "additionalProperties": false
  22227. },
  22228. "location": {
  22229. "$ref": "#/components/schemas/Location.Ref"
  22230. },
  22231. "data": {
  22232. "type": "object",
  22233. "properties": {
  22234. "id": {
  22235. "type": "string",
  22236. "allOf": [
  22237. {
  22238. "pattern": "^per"
  22239. }
  22240. ]
  22241. },
  22242. "sessionID": {
  22243. "type": "string",
  22244. "allOf": [
  22245. {
  22246. "pattern": "^ses"
  22247. }
  22248. ]
  22249. },
  22250. "permission": {
  22251. "type": "string"
  22252. },
  22253. "patterns": {
  22254. "type": "array",
  22255. "items": {
  22256. "type": "string"
  22257. }
  22258. },
  22259. "metadata": {
  22260. "type": "object"
  22261. },
  22262. "always": {
  22263. "type": "array",
  22264. "items": {
  22265. "type": "string"
  22266. }
  22267. },
  22268. "tool": {
  22269. "anyOf": [
  22270. {
  22271. "type": "object",
  22272. "properties": {
  22273. "messageID": {
  22274. "type": "string"
  22275. },
  22276. "callID": {
  22277. "type": "string"
  22278. }
  22279. },
  22280. "required": ["messageID", "callID"],
  22281. "additionalProperties": false
  22282. },
  22283. {
  22284. "type": "null"
  22285. }
  22286. ]
  22287. }
  22288. },
  22289. "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"],
  22290. "additionalProperties": false
  22291. }
  22292. },
  22293. "required": ["id", "type", "data"],
  22294. "additionalProperties": false
  22295. },
  22296. "permission.replied": {
  22297. "type": "object",
  22298. "properties": {
  22299. "id": {
  22300. "type": "string",
  22301. "allOf": [
  22302. {
  22303. "pattern": "^evt_"
  22304. }
  22305. ]
  22306. },
  22307. "metadata": {
  22308. "type": "object"
  22309. },
  22310. "type": {
  22311. "type": "string",
  22312. "enum": ["permission.replied"]
  22313. },
  22314. "durable": {
  22315. "type": "object",
  22316. "properties": {
  22317. "aggregateID": {
  22318. "type": "string"
  22319. },
  22320. "seq": {
  22321. "type": "integer",
  22322. "allOf": [
  22323. {
  22324. "minimum": 0
  22325. }
  22326. ]
  22327. },
  22328. "version": {
  22329. "type": "integer",
  22330. "allOf": [
  22331. {
  22332. "minimum": 1
  22333. }
  22334. ]
  22335. }
  22336. },
  22337. "required": ["aggregateID", "seq", "version"],
  22338. "additionalProperties": false
  22339. },
  22340. "location": {
  22341. "$ref": "#/components/schemas/Location.Ref"
  22342. },
  22343. "data": {
  22344. "type": "object",
  22345. "properties": {
  22346. "sessionID": {
  22347. "type": "string",
  22348. "allOf": [
  22349. {
  22350. "pattern": "^ses"
  22351. }
  22352. ]
  22353. },
  22354. "requestID": {
  22355. "type": "string",
  22356. "allOf": [
  22357. {
  22358. "pattern": "^per"
  22359. }
  22360. ]
  22361. },
  22362. "reply": {
  22363. "type": "string",
  22364. "enum": ["once", "always", "reject"]
  22365. }
  22366. },
  22367. "required": ["sessionID", "requestID", "reply"],
  22368. "additionalProperties": false
  22369. }
  22370. },
  22371. "required": ["id", "type", "data"],
  22372. "additionalProperties": false
  22373. },
  22374. "QuestionOption": {
  22375. "type": "object",
  22376. "properties": {
  22377. "label": {
  22378. "type": "string",
  22379. "description": "Display text (1-5 words, concise)"
  22380. },
  22381. "description": {
  22382. "type": "string",
  22383. "description": "Explanation of choice"
  22384. }
  22385. },
  22386. "required": ["label", "description"],
  22387. "additionalProperties": false
  22388. },
  22389. "QuestionInfo": {
  22390. "type": "object",
  22391. "properties": {
  22392. "question": {
  22393. "type": "string",
  22394. "description": "Complete question"
  22395. },
  22396. "header": {
  22397. "type": "string",
  22398. "description": "Very short label (max 30 chars)"
  22399. },
  22400. "options": {
  22401. "type": "array",
  22402. "items": {
  22403. "$ref": "#/components/schemas/QuestionOption"
  22404. },
  22405. "description": "Available choices"
  22406. },
  22407. "multiple": {
  22408. "anyOf": [
  22409. {
  22410. "type": "boolean"
  22411. },
  22412. {
  22413. "type": "null"
  22414. }
  22415. ],
  22416. "description": "Allow selecting multiple choices"
  22417. },
  22418. "custom": {
  22419. "anyOf": [
  22420. {
  22421. "type": "boolean"
  22422. },
  22423. {
  22424. "type": "null"
  22425. }
  22426. ],
  22427. "description": "Allow typing a custom answer (default: true)"
  22428. }
  22429. },
  22430. "required": ["question", "header", "options"],
  22431. "additionalProperties": false
  22432. },
  22433. "QuestionTool": {
  22434. "type": "object",
  22435. "properties": {
  22436. "messageID": {
  22437. "type": "string",
  22438. "allOf": [
  22439. {
  22440. "pattern": "^msg"
  22441. }
  22442. ]
  22443. },
  22444. "callID": {
  22445. "type": "string"
  22446. }
  22447. },
  22448. "required": ["messageID", "callID"],
  22449. "additionalProperties": false
  22450. },
  22451. "question.asked": {
  22452. "type": "object",
  22453. "properties": {
  22454. "id": {
  22455. "type": "string",
  22456. "allOf": [
  22457. {
  22458. "pattern": "^evt_"
  22459. }
  22460. ]
  22461. },
  22462. "metadata": {
  22463. "type": "object"
  22464. },
  22465. "type": {
  22466. "type": "string",
  22467. "enum": ["question.asked"]
  22468. },
  22469. "durable": {
  22470. "type": "object",
  22471. "properties": {
  22472. "aggregateID": {
  22473. "type": "string"
  22474. },
  22475. "seq": {
  22476. "type": "integer",
  22477. "allOf": [
  22478. {
  22479. "minimum": 0
  22480. }
  22481. ]
  22482. },
  22483. "version": {
  22484. "type": "integer",
  22485. "allOf": [
  22486. {
  22487. "minimum": 1
  22488. }
  22489. ]
  22490. }
  22491. },
  22492. "required": ["aggregateID", "seq", "version"],
  22493. "additionalProperties": false
  22494. },
  22495. "location": {
  22496. "$ref": "#/components/schemas/Location.Ref"
  22497. },
  22498. "data": {
  22499. "type": "object",
  22500. "properties": {
  22501. "id": {
  22502. "type": "string",
  22503. "allOf": [
  22504. {
  22505. "pattern": "^que"
  22506. }
  22507. ]
  22508. },
  22509. "sessionID": {
  22510. "type": "string",
  22511. "allOf": [
  22512. {
  22513. "pattern": "^ses"
  22514. }
  22515. ]
  22516. },
  22517. "questions": {
  22518. "type": "array",
  22519. "items": {
  22520. "$ref": "#/components/schemas/QuestionInfo"
  22521. },
  22522. "description": "Questions to ask"
  22523. },
  22524. "tool": {
  22525. "anyOf": [
  22526. {
  22527. "$ref": "#/components/schemas/QuestionTool"
  22528. },
  22529. {
  22530. "type": "null"
  22531. }
  22532. ]
  22533. }
  22534. },
  22535. "required": ["id", "sessionID", "questions"],
  22536. "additionalProperties": false
  22537. }
  22538. },
  22539. "required": ["id", "type", "data"],
  22540. "additionalProperties": false
  22541. },
  22542. "QuestionAnswer": {
  22543. "type": "array",
  22544. "items": {
  22545. "type": "string"
  22546. }
  22547. },
  22548. "question.replied": {
  22549. "type": "object",
  22550. "properties": {
  22551. "id": {
  22552. "type": "string",
  22553. "allOf": [
  22554. {
  22555. "pattern": "^evt_"
  22556. }
  22557. ]
  22558. },
  22559. "metadata": {
  22560. "type": "object"
  22561. },
  22562. "type": {
  22563. "type": "string",
  22564. "enum": ["question.replied"]
  22565. },
  22566. "durable": {
  22567. "type": "object",
  22568. "properties": {
  22569. "aggregateID": {
  22570. "type": "string"
  22571. },
  22572. "seq": {
  22573. "type": "integer",
  22574. "allOf": [
  22575. {
  22576. "minimum": 0
  22577. }
  22578. ]
  22579. },
  22580. "version": {
  22581. "type": "integer",
  22582. "allOf": [
  22583. {
  22584. "minimum": 1
  22585. }
  22586. ]
  22587. }
  22588. },
  22589. "required": ["aggregateID", "seq", "version"],
  22590. "additionalProperties": false
  22591. },
  22592. "location": {
  22593. "$ref": "#/components/schemas/Location.Ref"
  22594. },
  22595. "data": {
  22596. "type": "object",
  22597. "properties": {
  22598. "sessionID": {
  22599. "type": "string",
  22600. "allOf": [
  22601. {
  22602. "pattern": "^ses"
  22603. }
  22604. ]
  22605. },
  22606. "requestID": {
  22607. "type": "string",
  22608. "allOf": [
  22609. {
  22610. "pattern": "^que"
  22611. }
  22612. ]
  22613. },
  22614. "answers": {
  22615. "type": "array",
  22616. "items": {
  22617. "$ref": "#/components/schemas/QuestionAnswer"
  22618. }
  22619. }
  22620. },
  22621. "required": ["sessionID", "requestID", "answers"],
  22622. "additionalProperties": false
  22623. }
  22624. },
  22625. "required": ["id", "type", "data"],
  22626. "additionalProperties": false
  22627. },
  22628. "question.rejected": {
  22629. "type": "object",
  22630. "properties": {
  22631. "id": {
  22632. "type": "string",
  22633. "allOf": [
  22634. {
  22635. "pattern": "^evt_"
  22636. }
  22637. ]
  22638. },
  22639. "metadata": {
  22640. "type": "object"
  22641. },
  22642. "type": {
  22643. "type": "string",
  22644. "enum": ["question.rejected"]
  22645. },
  22646. "durable": {
  22647. "type": "object",
  22648. "properties": {
  22649. "aggregateID": {
  22650. "type": "string"
  22651. },
  22652. "seq": {
  22653. "type": "integer",
  22654. "allOf": [
  22655. {
  22656. "minimum": 0
  22657. }
  22658. ]
  22659. },
  22660. "version": {
  22661. "type": "integer",
  22662. "allOf": [
  22663. {
  22664. "minimum": 1
  22665. }
  22666. ]
  22667. }
  22668. },
  22669. "required": ["aggregateID", "seq", "version"],
  22670. "additionalProperties": false
  22671. },
  22672. "location": {
  22673. "$ref": "#/components/schemas/Location.Ref"
  22674. },
  22675. "data": {
  22676. "type": "object",
  22677. "properties": {
  22678. "sessionID": {
  22679. "type": "string",
  22680. "allOf": [
  22681. {
  22682. "pattern": "^ses"
  22683. }
  22684. ]
  22685. },
  22686. "requestID": {
  22687. "type": "string",
  22688. "allOf": [
  22689. {
  22690. "pattern": "^que"
  22691. }
  22692. ]
  22693. }
  22694. },
  22695. "required": ["sessionID", "requestID"],
  22696. "additionalProperties": false
  22697. }
  22698. },
  22699. "required": ["id", "type", "data"],
  22700. "additionalProperties": false
  22701. },
  22702. "session.error": {
  22703. "type": "object",
  22704. "properties": {
  22705. "id": {
  22706. "type": "string",
  22707. "allOf": [
  22708. {
  22709. "pattern": "^evt_"
  22710. }
  22711. ]
  22712. },
  22713. "metadata": {
  22714. "type": "object"
  22715. },
  22716. "type": {
  22717. "type": "string",
  22718. "enum": ["session.error"]
  22719. },
  22720. "durable": {
  22721. "type": "object",
  22722. "properties": {
  22723. "aggregateID": {
  22724. "type": "string"
  22725. },
  22726. "seq": {
  22727. "type": "integer",
  22728. "allOf": [
  22729. {
  22730. "minimum": 0
  22731. }
  22732. ]
  22733. },
  22734. "version": {
  22735. "type": "integer",
  22736. "allOf": [
  22737. {
  22738. "minimum": 1
  22739. }
  22740. ]
  22741. }
  22742. },
  22743. "required": ["aggregateID", "seq", "version"],
  22744. "additionalProperties": false
  22745. },
  22746. "location": {
  22747. "$ref": "#/components/schemas/Location.Ref"
  22748. },
  22749. "data": {
  22750. "type": "object",
  22751. "properties": {
  22752. "sessionID": {
  22753. "anyOf": [
  22754. {
  22755. "type": "string",
  22756. "allOf": [
  22757. {
  22758. "pattern": "^ses"
  22759. }
  22760. ]
  22761. },
  22762. {
  22763. "type": "null"
  22764. }
  22765. ]
  22766. },
  22767. "error": {
  22768. "anyOf": [
  22769. {
  22770. "anyOf": [
  22771. {
  22772. "$ref": "#/components/schemas/ProviderAuthError"
  22773. },
  22774. {
  22775. "$ref": "#/components/schemas/UnknownError1"
  22776. },
  22777. {
  22778. "$ref": "#/components/schemas/MessageOutputLengthError"
  22779. },
  22780. {
  22781. "$ref": "#/components/schemas/MessageAbortedError"
  22782. },
  22783. {
  22784. "$ref": "#/components/schemas/StructuredOutputError"
  22785. },
  22786. {
  22787. "$ref": "#/components/schemas/ContextOverflowError"
  22788. },
  22789. {
  22790. "$ref": "#/components/schemas/ContentFilterError"
  22791. },
  22792. {
  22793. "$ref": "#/components/schemas/APIError"
  22794. }
  22795. ]
  22796. },
  22797. {
  22798. "type": "null"
  22799. }
  22800. ]
  22801. }
  22802. },
  22803. "additionalProperties": false
  22804. }
  22805. },
  22806. "required": ["id", "type", "data"],
  22807. "additionalProperties": false
  22808. },
  22809. "V2Event.server.connected": {
  22810. "type": "object",
  22811. "properties": {
  22812. "id": {
  22813. "type": "string",
  22814. "allOf": [
  22815. {
  22816. "pattern": "^evt_"
  22817. }
  22818. ]
  22819. },
  22820. "metadata": {
  22821. "anyOf": [
  22822. {
  22823. "type": "object"
  22824. },
  22825. {
  22826. "type": "null"
  22827. }
  22828. ]
  22829. },
  22830. "durable": {
  22831. "anyOf": [
  22832. {
  22833. "type": "object",
  22834. "properties": {
  22835. "aggregateID": {
  22836. "type": "string"
  22837. },
  22838. "seq": {
  22839. "type": "integer",
  22840. "allOf": [
  22841. {
  22842. "minimum": 0
  22843. }
  22844. ]
  22845. },
  22846. "version": {
  22847. "type": "integer",
  22848. "allOf": [
  22849. {
  22850. "minimum": 1
  22851. }
  22852. ]
  22853. }
  22854. },
  22855. "required": ["aggregateID", "seq", "version"],
  22856. "additionalProperties": false
  22857. },
  22858. {
  22859. "type": "null"
  22860. }
  22861. ]
  22862. },
  22863. "location": {
  22864. "anyOf": [
  22865. {
  22866. "$ref": "#/components/schemas/Location.Ref"
  22867. },
  22868. {
  22869. "type": "null"
  22870. }
  22871. ]
  22872. },
  22873. "type": {
  22874. "type": "string",
  22875. "enum": ["server.connected"]
  22876. },
  22877. "data": {
  22878. "anyOf": [
  22879. {
  22880. "type": "object"
  22881. },
  22882. {
  22883. "type": "array"
  22884. }
  22885. ]
  22886. }
  22887. },
  22888. "required": ["id", "type", "data"],
  22889. "additionalProperties": false
  22890. },
  22891. "V2Event": {
  22892. "anyOf": [
  22893. {
  22894. "$ref": "#/components/schemas/models-dev.refreshed"
  22895. },
  22896. {
  22897. "$ref": "#/components/schemas/integration.updated"
  22898. },
  22899. {
  22900. "$ref": "#/components/schemas/integration.connection.updated"
  22901. },
  22902. {
  22903. "$ref": "#/components/schemas/catalog.updated"
  22904. },
  22905. {
  22906. "$ref": "#/components/schemas/agent.updated"
  22907. },
  22908. {
  22909. "$ref": "#/components/schemas/session.created"
  22910. },
  22911. {
  22912. "$ref": "#/components/schemas/session.updated"
  22913. },
  22914. {
  22915. "$ref": "#/components/schemas/session.deleted"
  22916. },
  22917. {
  22918. "$ref": "#/components/schemas/message.updated"
  22919. },
  22920. {
  22921. "$ref": "#/components/schemas/message.removed"
  22922. },
  22923. {
  22924. "$ref": "#/components/schemas/message.part.updated"
  22925. },
  22926. {
  22927. "$ref": "#/components/schemas/message.part.removed"
  22928. },
  22929. {
  22930. "$ref": "#/components/schemas/session.next.agent.switched"
  22931. },
  22932. {
  22933. "$ref": "#/components/schemas/session.next.model.switched"
  22934. },
  22935. {
  22936. "$ref": "#/components/schemas/session.next.moved"
  22937. },
  22938. {
  22939. "$ref": "#/components/schemas/session.next.renamed"
  22940. },
  22941. {
  22942. "$ref": "#/components/schemas/session.next.forked"
  22943. },
  22944. {
  22945. "$ref": "#/components/schemas/session.next.prompted"
  22946. },
  22947. {
  22948. "$ref": "#/components/schemas/session.next.prompt.admitted"
  22949. },
  22950. {
  22951. "$ref": "#/components/schemas/session.next.execution.settled"
  22952. },
  22953. {
  22954. "$ref": "#/components/schemas/session.next.context.updated"
  22955. },
  22956. {
  22957. "$ref": "#/components/schemas/session.next.synthetic"
  22958. },
  22959. {
  22960. "$ref": "#/components/schemas/session.next.skill.activated"
  22961. },
  22962. {
  22963. "$ref": "#/components/schemas/session.next.shell.started"
  22964. },
  22965. {
  22966. "$ref": "#/components/schemas/session.next.shell.ended"
  22967. },
  22968. {
  22969. "$ref": "#/components/schemas/session.next.step.started"
  22970. },
  22971. {
  22972. "$ref": "#/components/schemas/session.next.step.ended"
  22973. },
  22974. {
  22975. "$ref": "#/components/schemas/session.next.step.failed"
  22976. },
  22977. {
  22978. "$ref": "#/components/schemas/session.next.text.started"
  22979. },
  22980. {
  22981. "$ref": "#/components/schemas/session.next.text.delta"
  22982. },
  22983. {
  22984. "$ref": "#/components/schemas/session.next.text.ended"
  22985. },
  22986. {
  22987. "$ref": "#/components/schemas/session.next.reasoning.started"
  22988. },
  22989. {
  22990. "$ref": "#/components/schemas/session.next.reasoning.delta"
  22991. },
  22992. {
  22993. "$ref": "#/components/schemas/session.next.reasoning.ended"
  22994. },
  22995. {
  22996. "$ref": "#/components/schemas/session.next.tool.input.started"
  22997. },
  22998. {
  22999. "$ref": "#/components/schemas/session.next.tool.input.delta"
  23000. },
  23001. {
  23002. "$ref": "#/components/schemas/session.next.tool.input.ended"
  23003. },
  23004. {
  23005. "$ref": "#/components/schemas/session.next.tool.called"
  23006. },
  23007. {
  23008. "$ref": "#/components/schemas/session.next.tool.progress"
  23009. },
  23010. {
  23011. "$ref": "#/components/schemas/session.next.tool.success"
  23012. },
  23013. {
  23014. "$ref": "#/components/schemas/session.next.tool.failed"
  23015. },
  23016. {
  23017. "$ref": "#/components/schemas/session.next.retried"
  23018. },
  23019. {
  23020. "$ref": "#/components/schemas/session.next.compaction.started"
  23021. },
  23022. {
  23023. "$ref": "#/components/schemas/session.next.compaction.delta"
  23024. },
  23025. {
  23026. "$ref": "#/components/schemas/session.next.compaction.ended"
  23027. },
  23028. {
  23029. "$ref": "#/components/schemas/session.next.revert.staged"
  23030. },
  23031. {
  23032. "$ref": "#/components/schemas/session.next.revert.cleared"
  23033. },
  23034. {
  23035. "$ref": "#/components/schemas/session.next.revert.committed"
  23036. },
  23037. {
  23038. "$ref": "#/components/schemas/file.edited"
  23039. },
  23040. {
  23041. "$ref": "#/components/schemas/reference.updated"
  23042. },
  23043. {
  23044. "$ref": "#/components/schemas/permission.v2.asked"
  23045. },
  23046. {
  23047. "$ref": "#/components/schemas/permission.v2.replied"
  23048. },
  23049. {
  23050. "$ref": "#/components/schemas/plugin.added"
  23051. },
  23052. {
  23053. "$ref": "#/components/schemas/project.directories.updated"
  23054. },
  23055. {
  23056. "$ref": "#/components/schemas/command.updated"
  23057. },
  23058. {
  23059. "$ref": "#/components/schemas/skill.updated"
  23060. },
  23061. {
  23062. "$ref": "#/components/schemas/file.watcher.updated"
  23063. },
  23064. {
  23065. "$ref": "#/components/schemas/pty.created"
  23066. },
  23067. {
  23068. "$ref": "#/components/schemas/pty.updated"
  23069. },
  23070. {
  23071. "$ref": "#/components/schemas/pty.exited"
  23072. },
  23073. {
  23074. "$ref": "#/components/schemas/pty.deleted"
  23075. },
  23076. {
  23077. "$ref": "#/components/schemas/shell.created"
  23078. },
  23079. {
  23080. "$ref": "#/components/schemas/shell.exited"
  23081. },
  23082. {
  23083. "$ref": "#/components/schemas/shell.deleted"
  23084. },
  23085. {
  23086. "$ref": "#/components/schemas/question.v2.asked"
  23087. },
  23088. {
  23089. "$ref": "#/components/schemas/question.v2.replied"
  23090. },
  23091. {
  23092. "$ref": "#/components/schemas/question.v2.rejected"
  23093. },
  23094. {
  23095. "$ref": "#/components/schemas/form.created"
  23096. },
  23097. {
  23098. "$ref": "#/components/schemas/form.replied"
  23099. },
  23100. {
  23101. "$ref": "#/components/schemas/form.cancelled"
  23102. },
  23103. {
  23104. "$ref": "#/components/schemas/todo.updated"
  23105. },
  23106. {
  23107. "$ref": "#/components/schemas/session.status"
  23108. },
  23109. {
  23110. "$ref": "#/components/schemas/session.idle"
  23111. },
  23112. {
  23113. "$ref": "#/components/schemas/tui.prompt.append"
  23114. },
  23115. {
  23116. "$ref": "#/components/schemas/tui.command.execute"
  23117. },
  23118. {
  23119. "$ref": "#/components/schemas/tui.toast.show"
  23120. },
  23121. {
  23122. "$ref": "#/components/schemas/tui.session.select"
  23123. },
  23124. {
  23125. "$ref": "#/components/schemas/installation.updated"
  23126. },
  23127. {
  23128. "$ref": "#/components/schemas/installation.update-available"
  23129. },
  23130. {
  23131. "$ref": "#/components/schemas/vcs.branch.updated"
  23132. },
  23133. {
  23134. "$ref": "#/components/schemas/mcp.status.changed"
  23135. },
  23136. {
  23137. "$ref": "#/components/schemas/permission.asked"
  23138. },
  23139. {
  23140. "$ref": "#/components/schemas/permission.replied"
  23141. },
  23142. {
  23143. "$ref": "#/components/schemas/question.asked"
  23144. },
  23145. {
  23146. "$ref": "#/components/schemas/question.replied"
  23147. },
  23148. {
  23149. "$ref": "#/components/schemas/question.rejected"
  23150. },
  23151. {
  23152. "$ref": "#/components/schemas/session.error"
  23153. },
  23154. {
  23155. "$ref": "#/components/schemas/V2Event.server.connected"
  23156. }
  23157. ]
  23158. },
  23159. "V2EventStream": {
  23160. "type": "string",
  23161. "contentSchema": {
  23162. "$ref": "#/components/schemas/V2Event"
  23163. },
  23164. "contentMediaType": "application/json"
  23165. },
  23166. "EventLog.Hint": {
  23167. "type": "object",
  23168. "properties": {
  23169. "type": {
  23170. "type": "string",
  23171. "enum": ["log.hint"]
  23172. },
  23173. "aggregateID": {
  23174. "type": "string"
  23175. },
  23176. "seq": {
  23177. "type": "integer",
  23178. "allOf": [
  23179. {
  23180. "minimum": 0
  23181. }
  23182. ]
  23183. }
  23184. },
  23185. "required": ["type", "aggregateID", "seq"],
  23186. "additionalProperties": false,
  23187. "description": "Payload-free change hint: the aggregate's durable log advanced to at least seq. Hints coalesce under backpressure (latest per aggregate) and are never a delivery guarantee."
  23188. },
  23189. "EventLog.SweepRequired": {
  23190. "type": "object",
  23191. "properties": {
  23192. "type": {
  23193. "type": "string",
  23194. "enum": ["log.sweep_required"]
  23195. }
  23196. },
  23197. "required": ["type"],
  23198. "additionalProperties": false,
  23199. "description": "Hints may have been lost; treat every aggregate as potentially dirty and recover via bounded sweep plus durable log reads. Emitted first on every (re)subscribe."
  23200. },
  23201. "EventLog.Change": {
  23202. "anyOf": [
  23203. {
  23204. "$ref": "#/components/schemas/EventLog.Hint"
  23205. },
  23206. {
  23207. "$ref": "#/components/schemas/EventLog.SweepRequired"
  23208. }
  23209. ]
  23210. },
  23211. "EventLog.ChangeStream": {
  23212. "type": "string",
  23213. "contentSchema": {
  23214. "$ref": "#/components/schemas/EventLog.Change"
  23215. },
  23216. "contentMediaType": "application/json"
  23217. },
  23218. "PtyNotFoundError": {
  23219. "type": "object",
  23220. "properties": {
  23221. "_tag": {
  23222. "type": "string",
  23223. "enum": ["PtyNotFoundError"]
  23224. },
  23225. "ptyID": {
  23226. "type": "string"
  23227. },
  23228. "message": {
  23229. "type": "string"
  23230. }
  23231. },
  23232. "required": ["_tag", "ptyID", "message"],
  23233. "additionalProperties": false
  23234. },
  23235. "PtyTicket.ConnectToken": {
  23236. "type": "object",
  23237. "properties": {
  23238. "ticket": {
  23239. "type": "string"
  23240. },
  23241. "expires_in": {
  23242. "type": "integer",
  23243. "allOf": [
  23244. {
  23245. "exclusiveMinimum": 0
  23246. }
  23247. ]
  23248. }
  23249. },
  23250. "required": ["ticket", "expires_in"],
  23251. "additionalProperties": false
  23252. },
  23253. "ForbiddenError": {
  23254. "type": "object",
  23255. "properties": {
  23256. "_tag": {
  23257. "type": "string",
  23258. "enum": ["ForbiddenError"]
  23259. },
  23260. "message": {
  23261. "type": "string"
  23262. }
  23263. },
  23264. "required": ["_tag", "message"],
  23265. "additionalProperties": false
  23266. },
  23267. "Shell1": {
  23268. "type": "object",
  23269. "properties": {
  23270. "id": {
  23271. "type": "string",
  23272. "allOf": [
  23273. {
  23274. "pattern": "^sh_"
  23275. }
  23276. ]
  23277. },
  23278. "status": {
  23279. "type": "string",
  23280. "enum": ["running", "exited", "timeout", "killed"]
  23281. },
  23282. "command": {
  23283. "type": "string"
  23284. },
  23285. "cwd": {
  23286. "type": "string"
  23287. },
  23288. "shell": {
  23289. "type": "string"
  23290. },
  23291. "file": {
  23292. "type": "string"
  23293. },
  23294. "pid": {
  23295. "type": "integer",
  23296. "allOf": [
  23297. {
  23298. "minimum": 0
  23299. }
  23300. ]
  23301. },
  23302. "exit": {
  23303. "anyOf": [
  23304. {
  23305. "anyOf": [
  23306. {
  23307. "type": "number"
  23308. },
  23309. {
  23310. "type": "string",
  23311. "enum": ["NaN"]
  23312. },
  23313. {
  23314. "type": "string",
  23315. "enum": ["Infinity"]
  23316. },
  23317. {
  23318. "type": "string",
  23319. "enum": ["-Infinity"]
  23320. }
  23321. ]
  23322. },
  23323. {
  23324. "type": "string",
  23325. "enum": ["Infinity", "-Infinity", "NaN"]
  23326. }
  23327. ]
  23328. },
  23329. "metadata": {
  23330. "type": "object"
  23331. },
  23332. "time": {
  23333. "type": "object",
  23334. "properties": {
  23335. "started": {
  23336. "anyOf": [
  23337. {
  23338. "anyOf": [
  23339. {
  23340. "type": "number"
  23341. },
  23342. {
  23343. "type": "string",
  23344. "enum": ["NaN"]
  23345. },
  23346. {
  23347. "type": "string",
  23348. "enum": ["Infinity"]
  23349. },
  23350. {
  23351. "type": "string",
  23352. "enum": ["-Infinity"]
  23353. }
  23354. ]
  23355. },
  23356. {
  23357. "type": "string",
  23358. "enum": ["Infinity", "-Infinity", "NaN"]
  23359. }
  23360. ]
  23361. },
  23362. "completed": {
  23363. "anyOf": [
  23364. {
  23365. "anyOf": [
  23366. {
  23367. "type": "number"
  23368. },
  23369. {
  23370. "type": "string",
  23371. "enum": ["NaN"]
  23372. },
  23373. {
  23374. "type": "string",
  23375. "enum": ["Infinity"]
  23376. },
  23377. {
  23378. "type": "string",
  23379. "enum": ["-Infinity"]
  23380. }
  23381. ]
  23382. },
  23383. {
  23384. "type": "string",
  23385. "enum": ["Infinity", "-Infinity", "NaN"]
  23386. }
  23387. ]
  23388. }
  23389. },
  23390. "required": ["started"],
  23391. "additionalProperties": false
  23392. }
  23393. },
  23394. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  23395. "additionalProperties": false
  23396. },
  23397. "ShellNotFoundError": {
  23398. "type": "object",
  23399. "properties": {
  23400. "_tag": {
  23401. "type": "string",
  23402. "enum": ["ShellNotFoundError"]
  23403. },
  23404. "id": {
  23405. "type": "string"
  23406. },
  23407. "message": {
  23408. "type": "string"
  23409. }
  23410. },
  23411. "required": ["_tag", "id", "message"],
  23412. "additionalProperties": false
  23413. },
  23414. "QuestionV2.Request": {
  23415. "type": "object",
  23416. "properties": {
  23417. "id": {
  23418. "type": "string",
  23419. "allOf": [
  23420. {
  23421. "pattern": "^que"
  23422. }
  23423. ]
  23424. },
  23425. "sessionID": {
  23426. "type": "string",
  23427. "allOf": [
  23428. {
  23429. "pattern": "^ses"
  23430. }
  23431. ]
  23432. },
  23433. "questions": {
  23434. "type": "array",
  23435. "items": {
  23436. "$ref": "#/components/schemas/QuestionV2.Info"
  23437. },
  23438. "description": "Questions to ask"
  23439. },
  23440. "tool": {
  23441. "$ref": "#/components/schemas/QuestionV2.Tool"
  23442. }
  23443. },
  23444. "required": ["id", "sessionID", "questions"],
  23445. "additionalProperties": false
  23446. },
  23447. "QuestionV2.Reply": {
  23448. "type": "object",
  23449. "properties": {
  23450. "answers": {
  23451. "type": "array",
  23452. "items": {
  23453. "$ref": "#/components/schemas/QuestionV2.Answer"
  23454. },
  23455. "description": "User answers in order of questions (each answer is an array of selected labels)"
  23456. }
  23457. },
  23458. "required": ["answers"],
  23459. "additionalProperties": false
  23460. },
  23461. "QuestionNotFoundError": {
  23462. "type": "object",
  23463. "properties": {
  23464. "_tag": {
  23465. "type": "string",
  23466. "enum": ["QuestionNotFoundError"]
  23467. },
  23468. "requestID": {
  23469. "type": "string"
  23470. },
  23471. "message": {
  23472. "type": "string"
  23473. }
  23474. },
  23475. "required": ["_tag", "requestID", "message"],
  23476. "additionalProperties": false
  23477. },
  23478. "Reference.LocalSource": {
  23479. "type": "object",
  23480. "properties": {
  23481. "type": {
  23482. "type": "string",
  23483. "enum": ["local"]
  23484. },
  23485. "path": {
  23486. "type": "string"
  23487. },
  23488. "description": {
  23489. "type": "string"
  23490. },
  23491. "hidden": {
  23492. "type": "boolean"
  23493. }
  23494. },
  23495. "required": ["type", "path"],
  23496. "additionalProperties": false
  23497. },
  23498. "Reference.GitSource": {
  23499. "type": "object",
  23500. "properties": {
  23501. "type": {
  23502. "type": "string",
  23503. "enum": ["git"]
  23504. },
  23505. "repository": {
  23506. "type": "string"
  23507. },
  23508. "branch": {
  23509. "type": "string"
  23510. },
  23511. "description": {
  23512. "type": "string"
  23513. },
  23514. "hidden": {
  23515. "type": "boolean"
  23516. }
  23517. },
  23518. "required": ["type", "repository"],
  23519. "additionalProperties": false
  23520. },
  23521. "Reference.Source": {
  23522. "anyOf": [
  23523. {
  23524. "$ref": "#/components/schemas/Reference.LocalSource"
  23525. },
  23526. {
  23527. "$ref": "#/components/schemas/Reference.GitSource"
  23528. }
  23529. ]
  23530. },
  23531. "Reference.Info": {
  23532. "type": "object",
  23533. "properties": {
  23534. "name": {
  23535. "type": "string"
  23536. },
  23537. "path": {
  23538. "type": "string"
  23539. },
  23540. "description": {
  23541. "type": "string"
  23542. },
  23543. "hidden": {
  23544. "type": "boolean"
  23545. },
  23546. "source": {
  23547. "$ref": "#/components/schemas/Reference.Source"
  23548. }
  23549. },
  23550. "required": ["name", "path", "source"],
  23551. "additionalProperties": false
  23552. },
  23553. "ProjectCopy.Copy": {
  23554. "type": "object",
  23555. "properties": {
  23556. "directory": {
  23557. "type": "string"
  23558. }
  23559. },
  23560. "required": ["directory"],
  23561. "additionalProperties": false
  23562. },
  23563. "ProjectCopyError": {
  23564. "type": "object",
  23565. "properties": {
  23566. "name": {
  23567. "type": "string",
  23568. "enum": ["ProjectCopyError"]
  23569. },
  23570. "data": {
  23571. "type": "object",
  23572. "properties": {
  23573. "message": {
  23574. "type": "string"
  23575. },
  23576. "forceRequired": {
  23577. "anyOf": [
  23578. {
  23579. "type": "boolean"
  23580. },
  23581. {
  23582. "type": "null"
  23583. }
  23584. ]
  23585. }
  23586. },
  23587. "required": ["message"],
  23588. "additionalProperties": false
  23589. }
  23590. },
  23591. "required": ["name", "data"],
  23592. "additionalProperties": false
  23593. },
  23594. "Vcs.FileStatus": {
  23595. "type": "object",
  23596. "properties": {
  23597. "file": {
  23598. "type": "string"
  23599. },
  23600. "additions": {
  23601. "type": "integer",
  23602. "allOf": [
  23603. {
  23604. "minimum": 0
  23605. }
  23606. ]
  23607. },
  23608. "deletions": {
  23609. "type": "integer",
  23610. "allOf": [
  23611. {
  23612. "minimum": 0
  23613. }
  23614. ]
  23615. },
  23616. "status": {
  23617. "type": "string",
  23618. "enum": ["added", "deleted", "modified"]
  23619. }
  23620. },
  23621. "required": ["file", "additions", "deletions", "status"],
  23622. "additionalProperties": false
  23623. },
  23624. "Vcs.Mode": {
  23625. "type": "string",
  23626. "enum": ["working", "branch"]
  23627. }
  23628. },
  23629. "securitySchemes": {}
  23630. },
  23631. "security": [],
  23632. "tags": [
  23633. {
  23634. "name": "server.health"
  23635. },
  23636. {
  23637. "name": "server.location"
  23638. },
  23639. {
  23640. "name": "server.agent"
  23641. },
  23642. {
  23643. "name": "plugins",
  23644. "description": "Experimental plugin routes."
  23645. },
  23646. {
  23647. "name": "sessions",
  23648. "description": "Experimental session routes."
  23649. },
  23650. {
  23651. "name": "messages",
  23652. "description": "Experimental message routes."
  23653. },
  23654. {
  23655. "name": "models",
  23656. "description": "Experimental model routes."
  23657. },
  23658. {
  23659. "name": "generate",
  23660. "description": "Experimental one-shot generation routes."
  23661. },
  23662. {
  23663. "name": "providers",
  23664. "description": "Experimental provider routes."
  23665. },
  23666. {
  23667. "name": "integrations",
  23668. "description": "Integration discovery and authentication routes."
  23669. },
  23670. {
  23671. "name": "mcp",
  23672. "description": "MCP server status routes."
  23673. },
  23674. {
  23675. "name": "server.credential"
  23676. },
  23677. {
  23678. "name": "projects",
  23679. "description": "Location-scoped project routes."
  23680. },
  23681. {
  23682. "name": "forms",
  23683. "description": "Session form routes."
  23684. },
  23685. {
  23686. "name": "permissions",
  23687. "description": "Experimental permission routes."
  23688. },
  23689. {
  23690. "name": "filesystem",
  23691. "description": "Experimental location-scoped filesystem routes."
  23692. },
  23693. {
  23694. "name": "commands",
  23695. "description": "Experimental command routes."
  23696. },
  23697. {
  23698. "name": "skills",
  23699. "description": "Experimental skill routes."
  23700. },
  23701. {
  23702. "name": "events",
  23703. "description": "Experimental event stream routes."
  23704. },
  23705. {
  23706. "name": "pty",
  23707. "description": "Experimental location-scoped PTY routes."
  23708. },
  23709. {
  23710. "name": "shell",
  23711. "description": "Experimental location-scoped shell command routes."
  23712. },
  23713. {
  23714. "name": "session questions",
  23715. "description": "Experimental session question routes."
  23716. },
  23717. {
  23718. "name": "reference",
  23719. "description": "Location-scoped project references."
  23720. },
  23721. {
  23722. "name": "projectCopy",
  23723. "description": "Project copy management routes."
  23724. },
  23725. {
  23726. "name": "vcs",
  23727. "description": "Location-scoped version control routes."
  23728. }
  23729. ]
  23730. }