opencode-v2-openapi.json 666 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "opencode HttpApi",
  5. "version": "0.0.1",
  6. "description": "Experimental HttpApi surface for selected instance routes."
  7. },
  8. "paths": {
  9. "/api/health": {
  10. "get": {
  11. "tags": [
  12. "server.health"
  13. ],
  14. "operationId": "v2.health.get",
  15. "parameters": [],
  16. "security": [],
  17. "responses": {
  18. "200": {
  19. "description": "Success",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "type": "object",
  24. "properties": {
  25. "healthy": {
  26. "type": "boolean",
  27. "enum": [
  28. true
  29. ]
  30. }
  31. },
  32. "required": [
  33. "healthy"
  34. ],
  35. "additionalProperties": false
  36. }
  37. }
  38. }
  39. },
  40. "400": {
  41. "description": "InvalidRequestError",
  42. "content": {
  43. "application/json": {
  44. "schema": {
  45. "$ref": "#/components/schemas/InvalidRequestError"
  46. }
  47. }
  48. }
  49. },
  50. "401": {
  51. "description": "UnauthorizedError",
  52. "content": {
  53. "application/json": {
  54. "schema": {
  55. "$ref": "#/components/schemas/UnauthorizedError"
  56. }
  57. }
  58. }
  59. }
  60. },
  61. "description": "Check whether the API server is ready to accept requests.",
  62. "summary": "Check server health"
  63. }
  64. },
  65. "/api/location": {
  66. "get": {
  67. "tags": [
  68. "server.location"
  69. ],
  70. "operationId": "v2.location.get",
  71. "parameters": [
  72. {
  73. "name": "location",
  74. "in": "query",
  75. "schema": {
  76. "anyOf": [
  77. {
  78. "type": "object",
  79. "properties": {
  80. "directory": {
  81. "anyOf": [
  82. {
  83. "type": "string"
  84. },
  85. {
  86. "type": "null"
  87. }
  88. ]
  89. },
  90. "workspace": {
  91. "anyOf": [
  92. {
  93. "type": "string"
  94. },
  95. {
  96. "type": "null"
  97. }
  98. ]
  99. }
  100. },
  101. "additionalProperties": false
  102. },
  103. {
  104. "type": "null"
  105. }
  106. ]
  107. },
  108. "required": false,
  109. "style": "deepObject",
  110. "explode": true
  111. }
  112. ],
  113. "security": [],
  114. "responses": {
  115. "200": {
  116. "description": "Location.Info",
  117. "content": {
  118. "application/json": {
  119. "schema": {
  120. "$ref": "#/components/schemas/Location.Info"
  121. }
  122. }
  123. }
  124. },
  125. "400": {
  126. "description": "InvalidRequestError",
  127. "content": {
  128. "application/json": {
  129. "schema": {
  130. "$ref": "#/components/schemas/InvalidRequestError"
  131. }
  132. }
  133. }
  134. },
  135. "401": {
  136. "description": "UnauthorizedError",
  137. "content": {
  138. "application/json": {
  139. "schema": {
  140. "$ref": "#/components/schemas/UnauthorizedError"
  141. }
  142. }
  143. }
  144. }
  145. },
  146. "description": "Resolve the requested location or the server default location.",
  147. "summary": "Get location"
  148. }
  149. },
  150. "/api/agent": {
  151. "get": {
  152. "tags": [
  153. "server.agent"
  154. ],
  155. "operationId": "v2.agent.list",
  156. "parameters": [
  157. {
  158. "name": "location",
  159. "in": "query",
  160. "schema": {
  161. "anyOf": [
  162. {
  163. "type": "object",
  164. "properties": {
  165. "directory": {
  166. "anyOf": [
  167. {
  168. "type": "string"
  169. },
  170. {
  171. "type": "null"
  172. }
  173. ]
  174. },
  175. "workspace": {
  176. "anyOf": [
  177. {
  178. "type": "string"
  179. },
  180. {
  181. "type": "null"
  182. }
  183. ]
  184. }
  185. },
  186. "additionalProperties": false
  187. },
  188. {
  189. "type": "null"
  190. }
  191. ]
  192. },
  193. "required": false,
  194. "style": "deepObject",
  195. "explode": true
  196. }
  197. ],
  198. "security": [],
  199. "responses": {
  200. "200": {
  201. "description": "Success",
  202. "content": {
  203. "application/json": {
  204. "schema": {
  205. "type": "object",
  206. "properties": {
  207. "location": {
  208. "$ref": "#/components/schemas/Location.Info"
  209. },
  210. "data": {
  211. "type": "array",
  212. "items": {
  213. "$ref": "#/components/schemas/AgentV2.Info"
  214. }
  215. }
  216. },
  217. "required": [
  218. "location",
  219. "data"
  220. ],
  221. "additionalProperties": false
  222. }
  223. }
  224. }
  225. },
  226. "400": {
  227. "description": "InvalidRequestError",
  228. "content": {
  229. "application/json": {
  230. "schema": {
  231. "$ref": "#/components/schemas/InvalidRequestError"
  232. }
  233. }
  234. }
  235. },
  236. "401": {
  237. "description": "UnauthorizedError",
  238. "content": {
  239. "application/json": {
  240. "schema": {
  241. "$ref": "#/components/schemas/UnauthorizedError"
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "description": "Retrieve currently registered agents.",
  248. "summary": "List agents"
  249. }
  250. },
  251. "/api/plugin": {
  252. "get": {
  253. "tags": [
  254. "plugins"
  255. ],
  256. "operationId": "v2.plugin.list",
  257. "parameters": [
  258. {
  259. "name": "location",
  260. "in": "query",
  261. "schema": {
  262. "anyOf": [
  263. {
  264. "type": "object",
  265. "properties": {
  266. "directory": {
  267. "anyOf": [
  268. {
  269. "type": "string"
  270. },
  271. {
  272. "type": "null"
  273. }
  274. ]
  275. },
  276. "workspace": {
  277. "anyOf": [
  278. {
  279. "type": "string"
  280. },
  281. {
  282. "type": "null"
  283. }
  284. ]
  285. }
  286. },
  287. "additionalProperties": false
  288. },
  289. {
  290. "type": "null"
  291. }
  292. ]
  293. },
  294. "required": false,
  295. "style": "deepObject",
  296. "explode": true
  297. }
  298. ],
  299. "security": [],
  300. "responses": {
  301. "200": {
  302. "description": "Success",
  303. "content": {
  304. "application/json": {
  305. "schema": {
  306. "type": "object",
  307. "properties": {
  308. "location": {
  309. "$ref": "#/components/schemas/Location.Info"
  310. },
  311. "data": {
  312. "type": "array",
  313. "items": {
  314. "$ref": "#/components/schemas/Plugin.Info"
  315. }
  316. }
  317. },
  318. "required": [
  319. "location",
  320. "data"
  321. ],
  322. "additionalProperties": false
  323. }
  324. }
  325. }
  326. },
  327. "400": {
  328. "description": "InvalidRequestError",
  329. "content": {
  330. "application/json": {
  331. "schema": {
  332. "$ref": "#/components/schemas/InvalidRequestError"
  333. }
  334. }
  335. }
  336. },
  337. "401": {
  338. "description": "UnauthorizedError",
  339. "content": {
  340. "application/json": {
  341. "schema": {
  342. "$ref": "#/components/schemas/UnauthorizedError"
  343. }
  344. }
  345. }
  346. }
  347. },
  348. "description": "Retrieve currently loaded plugins.",
  349. "summary": "List plugins"
  350. }
  351. },
  352. "/api/session": {
  353. "get": {
  354. "tags": [
  355. "sessions"
  356. ],
  357. "operationId": "v2.session.list",
  358. "parameters": [
  359. {
  360. "name": "workspace",
  361. "in": "query",
  362. "schema": {
  363. "anyOf": [
  364. {
  365. "type": "string",
  366. "allOf": [
  367. {
  368. "pattern": "^wrk"
  369. }
  370. ]
  371. },
  372. {
  373. "type": "null"
  374. }
  375. ]
  376. },
  377. "required": false
  378. },
  379. {
  380. "name": "limit",
  381. "in": "query",
  382. "schema": {
  383. "anyOf": [
  384. {
  385. "type": "string"
  386. },
  387. {
  388. "type": "null"
  389. }
  390. ],
  391. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  392. },
  393. "required": false
  394. },
  395. {
  396. "name": "order",
  397. "in": "query",
  398. "schema": {
  399. "anyOf": [
  400. {
  401. "type": "string",
  402. "enum": [
  403. "asc",
  404. "desc"
  405. ]
  406. },
  407. {
  408. "type": "null"
  409. }
  410. ],
  411. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  412. },
  413. "required": false
  414. },
  415. {
  416. "name": "search",
  417. "in": "query",
  418. "schema": {
  419. "anyOf": [
  420. {
  421. "type": "string"
  422. },
  423. {
  424. "type": "null"
  425. }
  426. ]
  427. },
  428. "required": false
  429. },
  430. {
  431. "name": "parentID",
  432. "in": "query",
  433. "schema": {
  434. "anyOf": [
  435. {
  436. "anyOf": [
  437. {
  438. "type": "string",
  439. "allOf": [
  440. {
  441. "pattern": "^ses"
  442. }
  443. ]
  444. },
  445. {
  446. "type": "string",
  447. "enum": [
  448. "null"
  449. ]
  450. }
  451. ],
  452. "description": "Filter by parent session. Use null to return only root sessions."
  453. },
  454. {
  455. "type": "null"
  456. }
  457. ]
  458. },
  459. "required": false
  460. },
  461. {
  462. "name": "directory",
  463. "in": "query",
  464. "schema": {
  465. "anyOf": [
  466. {
  467. "type": "string"
  468. },
  469. {
  470. "type": "null"
  471. }
  472. ]
  473. },
  474. "required": false
  475. },
  476. {
  477. "name": "project",
  478. "in": "query",
  479. "schema": {
  480. "anyOf": [
  481. {
  482. "type": "string"
  483. },
  484. {
  485. "type": "null"
  486. }
  487. ]
  488. },
  489. "required": false
  490. },
  491. {
  492. "name": "subpath",
  493. "in": "query",
  494. "schema": {
  495. "anyOf": [
  496. {
  497. "type": "string"
  498. },
  499. {
  500. "type": "null"
  501. }
  502. ]
  503. },
  504. "required": false
  505. },
  506. {
  507. "name": "cursor",
  508. "in": "query",
  509. "schema": {
  510. "anyOf": [
  511. {
  512. "type": "string",
  513. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  514. },
  515. {
  516. "type": "null"
  517. }
  518. ]
  519. },
  520. "required": false
  521. }
  522. ],
  523. "security": [],
  524. "responses": {
  525. "200": {
  526. "description": "SessionsResponse",
  527. "content": {
  528. "application/json": {
  529. "schema": {
  530. "$ref": "#/components/schemas/SessionsResponse"
  531. }
  532. }
  533. }
  534. },
  535. "400": {
  536. "description": "InvalidCursorError | InvalidRequestError",
  537. "content": {
  538. "application/json": {
  539. "schema": {
  540. "anyOf": [
  541. {
  542. "$ref": "#/components/schemas/InvalidCursorError"
  543. },
  544. {
  545. "$ref": "#/components/schemas/InvalidRequestError1"
  546. },
  547. {
  548. "$ref": "#/components/schemas/InvalidRequestError"
  549. }
  550. ]
  551. }
  552. }
  553. }
  554. },
  555. "401": {
  556. "description": "UnauthorizedError",
  557. "content": {
  558. "application/json": {
  559. "schema": {
  560. "$ref": "#/components/schemas/UnauthorizedError"
  561. }
  562. }
  563. }
  564. }
  565. },
  566. "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.",
  567. "summary": "List sessions"
  568. },
  569. "post": {
  570. "tags": [
  571. "sessions"
  572. ],
  573. "operationId": "v2.session.create",
  574. "parameters": [],
  575. "security": [],
  576. "responses": {
  577. "200": {
  578. "description": "Success",
  579. "content": {
  580. "application/json": {
  581. "schema": {
  582. "type": "object",
  583. "properties": {
  584. "data": {
  585. "$ref": "#/components/schemas/SessionV2.Info"
  586. }
  587. },
  588. "required": [
  589. "data"
  590. ],
  591. "additionalProperties": false
  592. }
  593. }
  594. }
  595. },
  596. "400": {
  597. "description": "InvalidRequestError",
  598. "content": {
  599. "application/json": {
  600. "schema": {
  601. "$ref": "#/components/schemas/InvalidRequestError"
  602. }
  603. }
  604. }
  605. },
  606. "401": {
  607. "description": "UnauthorizedError",
  608. "content": {
  609. "application/json": {
  610. "schema": {
  611. "$ref": "#/components/schemas/UnauthorizedError"
  612. }
  613. }
  614. }
  615. }
  616. },
  617. "description": "Create a session at the requested location.",
  618. "summary": "Create session",
  619. "requestBody": {
  620. "content": {
  621. "application/json": {
  622. "schema": {
  623. "type": "object",
  624. "properties": {
  625. "id": {
  626. "anyOf": [
  627. {
  628. "type": "string",
  629. "allOf": [
  630. {
  631. "pattern": "^ses"
  632. }
  633. ]
  634. },
  635. {
  636. "type": "null"
  637. }
  638. ]
  639. },
  640. "agent": {
  641. "anyOf": [
  642. {
  643. "type": "string"
  644. },
  645. {
  646. "type": "null"
  647. }
  648. ]
  649. },
  650. "model": {
  651. "anyOf": [
  652. {
  653. "$ref": "#/components/schemas/Model.Ref"
  654. },
  655. {
  656. "type": "null"
  657. }
  658. ]
  659. },
  660. "location": {
  661. "anyOf": [
  662. {
  663. "$ref": "#/components/schemas/Location.Ref"
  664. },
  665. {
  666. "type": "null"
  667. }
  668. ]
  669. }
  670. },
  671. "additionalProperties": false
  672. }
  673. }
  674. },
  675. "required": true
  676. }
  677. }
  678. },
  679. "/api/session/active": {
  680. "get": {
  681. "tags": [
  682. "sessions"
  683. ],
  684. "operationId": "v2.session.active",
  685. "parameters": [],
  686. "security": [],
  687. "responses": {
  688. "200": {
  689. "description": "Success",
  690. "content": {
  691. "application/json": {
  692. "schema": {
  693. "type": "object",
  694. "properties": {
  695. "data": {
  696. "type": "object",
  697. "patternProperties": {
  698. "^ses": {
  699. "$ref": "#/components/schemas/SessionActive"
  700. }
  701. }
  702. },
  703. "watermarks": {
  704. "$ref": "#/components/schemas/SessionWatermarks"
  705. }
  706. },
  707. "required": [
  708. "data",
  709. "watermarks"
  710. ],
  711. "additionalProperties": false
  712. }
  713. }
  714. }
  715. },
  716. "400": {
  717. "description": "InvalidRequestError",
  718. "content": {
  719. "application/json": {
  720. "schema": {
  721. "$ref": "#/components/schemas/InvalidRequestError"
  722. }
  723. }
  724. }
  725. },
  726. "401": {
  727. "description": "UnauthorizedError",
  728. "content": {
  729. "application/json": {
  730. "schema": {
  731. "$ref": "#/components/schemas/UnauthorizedError"
  732. }
  733. }
  734. }
  735. }
  736. },
  737. "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.",
  738. "summary": "List active sessions"
  739. }
  740. },
  741. "/api/session/{sessionID}": {
  742. "get": {
  743. "tags": [
  744. "sessions"
  745. ],
  746. "operationId": "v2.session.get",
  747. "parameters": [
  748. {
  749. "name": "sessionID",
  750. "in": "path",
  751. "schema": {
  752. "type": "string",
  753. "allOf": [
  754. {
  755. "pattern": "^ses"
  756. }
  757. ]
  758. },
  759. "required": true
  760. }
  761. ],
  762. "security": [],
  763. "responses": {
  764. "200": {
  765. "description": "Success",
  766. "content": {
  767. "application/json": {
  768. "schema": {
  769. "type": "object",
  770. "properties": {
  771. "data": {
  772. "$ref": "#/components/schemas/SessionV2.Info"
  773. }
  774. },
  775. "required": [
  776. "data"
  777. ],
  778. "additionalProperties": false
  779. }
  780. }
  781. }
  782. },
  783. "400": {
  784. "description": "InvalidRequestError",
  785. "content": {
  786. "application/json": {
  787. "schema": {
  788. "$ref": "#/components/schemas/InvalidRequestError"
  789. }
  790. }
  791. }
  792. },
  793. "401": {
  794. "description": "UnauthorizedError",
  795. "content": {
  796. "application/json": {
  797. "schema": {
  798. "$ref": "#/components/schemas/UnauthorizedError"
  799. }
  800. }
  801. }
  802. },
  803. "404": {
  804. "description": "SessionNotFoundError",
  805. "content": {
  806. "application/json": {
  807. "schema": {
  808. "anyOf": [
  809. {
  810. "$ref": "#/components/schemas/SessionNotFoundError"
  811. },
  812. {
  813. "$ref": "#/components/schemas/SessionNotFoundError"
  814. }
  815. ]
  816. }
  817. }
  818. }
  819. }
  820. },
  821. "description": "Retrieve a session by ID.",
  822. "summary": "Get session"
  823. }
  824. },
  825. "/api/session/{sessionID}/fork": {
  826. "post": {
  827. "tags": [
  828. "sessions"
  829. ],
  830. "operationId": "v2.session.fork",
  831. "parameters": [
  832. {
  833. "name": "sessionID",
  834. "in": "path",
  835. "schema": {
  836. "type": "string",
  837. "allOf": [
  838. {
  839. "pattern": "^ses"
  840. }
  841. ]
  842. },
  843. "required": true
  844. }
  845. ],
  846. "security": [],
  847. "responses": {
  848. "200": {
  849. "description": "Success",
  850. "content": {
  851. "application/json": {
  852. "schema": {
  853. "type": "object",
  854. "properties": {
  855. "data": {
  856. "$ref": "#/components/schemas/SessionV2.Info"
  857. }
  858. },
  859. "required": [
  860. "data"
  861. ],
  862. "additionalProperties": false
  863. }
  864. }
  865. }
  866. },
  867. "400": {
  868. "description": "InvalidRequestError",
  869. "content": {
  870. "application/json": {
  871. "schema": {
  872. "$ref": "#/components/schemas/InvalidRequestError"
  873. }
  874. }
  875. }
  876. },
  877. "401": {
  878. "description": "UnauthorizedError",
  879. "content": {
  880. "application/json": {
  881. "schema": {
  882. "$ref": "#/components/schemas/UnauthorizedError"
  883. }
  884. }
  885. }
  886. },
  887. "404": {
  888. "description": "SessionNotFoundError | MessageNotFoundError",
  889. "content": {
  890. "application/json": {
  891. "schema": {
  892. "anyOf": [
  893. {
  894. "$ref": "#/components/schemas/MessageNotFoundError"
  895. },
  896. {
  897. "$ref": "#/components/schemas/SessionNotFoundError"
  898. },
  899. {
  900. "$ref": "#/components/schemas/SessionNotFoundError"
  901. }
  902. ]
  903. }
  904. }
  905. }
  906. }
  907. },
  908. "description": "Create a child session by copying projected history from the parent. When messageID is supplied, copy messages before that boundary.",
  909. "summary": "Fork session",
  910. "requestBody": {
  911. "content": {
  912. "application/json": {
  913. "schema": {
  914. "type": "object",
  915. "properties": {
  916. "messageID": {
  917. "anyOf": [
  918. {
  919. "type": "string",
  920. "allOf": [
  921. {
  922. "pattern": "^msg_"
  923. }
  924. ]
  925. },
  926. {
  927. "type": "null"
  928. }
  929. ]
  930. }
  931. },
  932. "additionalProperties": false
  933. }
  934. }
  935. },
  936. "required": true
  937. }
  938. }
  939. },
  940. "/api/session/{sessionID}/agent": {
  941. "post": {
  942. "tags": [
  943. "sessions"
  944. ],
  945. "operationId": "v2.session.switchAgent",
  946. "parameters": [
  947. {
  948. "name": "sessionID",
  949. "in": "path",
  950. "schema": {
  951. "type": "string",
  952. "allOf": [
  953. {
  954. "pattern": "^ses"
  955. }
  956. ]
  957. },
  958. "required": true
  959. }
  960. ],
  961. "security": [],
  962. "responses": {
  963. "204": {
  964. "description": "<No Content>"
  965. },
  966. "400": {
  967. "description": "InvalidRequestError",
  968. "content": {
  969. "application/json": {
  970. "schema": {
  971. "$ref": "#/components/schemas/InvalidRequestError"
  972. }
  973. }
  974. }
  975. },
  976. "401": {
  977. "description": "UnauthorizedError",
  978. "content": {
  979. "application/json": {
  980. "schema": {
  981. "$ref": "#/components/schemas/UnauthorizedError"
  982. }
  983. }
  984. }
  985. },
  986. "404": {
  987. "description": "SessionNotFoundError",
  988. "content": {
  989. "application/json": {
  990. "schema": {
  991. "anyOf": [
  992. {
  993. "$ref": "#/components/schemas/SessionNotFoundError"
  994. },
  995. {
  996. "$ref": "#/components/schemas/SessionNotFoundError"
  997. }
  998. ]
  999. }
  1000. }
  1001. }
  1002. }
  1003. },
  1004. "description": "Switch the agent used by subsequent provider turns.",
  1005. "summary": "Switch session agent",
  1006. "requestBody": {
  1007. "content": {
  1008. "application/json": {
  1009. "schema": {
  1010. "type": "object",
  1011. "properties": {
  1012. "agent": {
  1013. "type": "string"
  1014. }
  1015. },
  1016. "required": [
  1017. "agent"
  1018. ],
  1019. "additionalProperties": false
  1020. }
  1021. }
  1022. },
  1023. "required": true
  1024. }
  1025. }
  1026. },
  1027. "/api/session/{sessionID}/model": {
  1028. "post": {
  1029. "tags": [
  1030. "sessions"
  1031. ],
  1032. "operationId": "v2.session.switchModel",
  1033. "parameters": [
  1034. {
  1035. "name": "sessionID",
  1036. "in": "path",
  1037. "schema": {
  1038. "type": "string",
  1039. "allOf": [
  1040. {
  1041. "pattern": "^ses"
  1042. }
  1043. ]
  1044. },
  1045. "required": true
  1046. }
  1047. ],
  1048. "security": [],
  1049. "responses": {
  1050. "204": {
  1051. "description": "<No Content>"
  1052. },
  1053. "400": {
  1054. "description": "InvalidRequestError",
  1055. "content": {
  1056. "application/json": {
  1057. "schema": {
  1058. "$ref": "#/components/schemas/InvalidRequestError"
  1059. }
  1060. }
  1061. }
  1062. },
  1063. "401": {
  1064. "description": "UnauthorizedError",
  1065. "content": {
  1066. "application/json": {
  1067. "schema": {
  1068. "$ref": "#/components/schemas/UnauthorizedError"
  1069. }
  1070. }
  1071. }
  1072. },
  1073. "404": {
  1074. "description": "SessionNotFoundError",
  1075. "content": {
  1076. "application/json": {
  1077. "schema": {
  1078. "anyOf": [
  1079. {
  1080. "$ref": "#/components/schemas/SessionNotFoundError"
  1081. },
  1082. {
  1083. "$ref": "#/components/schemas/SessionNotFoundError"
  1084. }
  1085. ]
  1086. }
  1087. }
  1088. }
  1089. }
  1090. },
  1091. "description": "Switch the model used by subsequent provider turns.",
  1092. "summary": "Switch session model",
  1093. "requestBody": {
  1094. "content": {
  1095. "application/json": {
  1096. "schema": {
  1097. "type": "object",
  1098. "properties": {
  1099. "model": {
  1100. "$ref": "#/components/schemas/Model.Ref"
  1101. }
  1102. },
  1103. "required": [
  1104. "model"
  1105. ],
  1106. "additionalProperties": false
  1107. }
  1108. }
  1109. },
  1110. "required": true
  1111. }
  1112. }
  1113. },
  1114. "/api/session/{sessionID}/rename": {
  1115. "post": {
  1116. "tags": [
  1117. "sessions"
  1118. ],
  1119. "operationId": "v2.session.rename",
  1120. "parameters": [
  1121. {
  1122. "name": "sessionID",
  1123. "in": "path",
  1124. "schema": {
  1125. "type": "string",
  1126. "allOf": [
  1127. {
  1128. "pattern": "^ses"
  1129. }
  1130. ]
  1131. },
  1132. "required": true
  1133. }
  1134. ],
  1135. "security": [],
  1136. "responses": {
  1137. "204": {
  1138. "description": "<No Content>"
  1139. },
  1140. "400": {
  1141. "description": "InvalidRequestError",
  1142. "content": {
  1143. "application/json": {
  1144. "schema": {
  1145. "$ref": "#/components/schemas/InvalidRequestError"
  1146. }
  1147. }
  1148. }
  1149. },
  1150. "401": {
  1151. "description": "UnauthorizedError",
  1152. "content": {
  1153. "application/json": {
  1154. "schema": {
  1155. "$ref": "#/components/schemas/UnauthorizedError"
  1156. }
  1157. }
  1158. }
  1159. },
  1160. "404": {
  1161. "description": "SessionNotFoundError",
  1162. "content": {
  1163. "application/json": {
  1164. "schema": {
  1165. "anyOf": [
  1166. {
  1167. "$ref": "#/components/schemas/SessionNotFoundError"
  1168. },
  1169. {
  1170. "$ref": "#/components/schemas/SessionNotFoundError"
  1171. }
  1172. ]
  1173. }
  1174. }
  1175. }
  1176. }
  1177. },
  1178. "description": "Update the session title.",
  1179. "summary": "Rename session",
  1180. "requestBody": {
  1181. "content": {
  1182. "application/json": {
  1183. "schema": {
  1184. "type": "object",
  1185. "properties": {
  1186. "title": {
  1187. "type": "string"
  1188. }
  1189. },
  1190. "required": [
  1191. "title"
  1192. ],
  1193. "additionalProperties": false
  1194. }
  1195. }
  1196. },
  1197. "required": true
  1198. }
  1199. }
  1200. },
  1201. "/api/session/{sessionID}/prompt": {
  1202. "post": {
  1203. "tags": [
  1204. "sessions"
  1205. ],
  1206. "operationId": "v2.session.prompt",
  1207. "parameters": [
  1208. {
  1209. "name": "sessionID",
  1210. "in": "path",
  1211. "schema": {
  1212. "type": "string",
  1213. "allOf": [
  1214. {
  1215. "pattern": "^ses"
  1216. }
  1217. ]
  1218. },
  1219. "required": true
  1220. }
  1221. ],
  1222. "security": [],
  1223. "responses": {
  1224. "200": {
  1225. "description": "Success",
  1226. "content": {
  1227. "application/json": {
  1228. "schema": {
  1229. "type": "object",
  1230. "properties": {
  1231. "data": {
  1232. "$ref": "#/components/schemas/SessionInput.Admitted"
  1233. }
  1234. },
  1235. "required": [
  1236. "data"
  1237. ],
  1238. "additionalProperties": false
  1239. }
  1240. }
  1241. }
  1242. },
  1243. "400": {
  1244. "description": "InvalidRequestError",
  1245. "content": {
  1246. "application/json": {
  1247. "schema": {
  1248. "$ref": "#/components/schemas/InvalidRequestError"
  1249. }
  1250. }
  1251. }
  1252. },
  1253. "401": {
  1254. "description": "UnauthorizedError",
  1255. "content": {
  1256. "application/json": {
  1257. "schema": {
  1258. "$ref": "#/components/schemas/UnauthorizedError"
  1259. }
  1260. }
  1261. }
  1262. },
  1263. "404": {
  1264. "description": "SessionNotFoundError",
  1265. "content": {
  1266. "application/json": {
  1267. "schema": {
  1268. "anyOf": [
  1269. {
  1270. "$ref": "#/components/schemas/SessionNotFoundError"
  1271. },
  1272. {
  1273. "$ref": "#/components/schemas/SessionNotFoundError"
  1274. }
  1275. ]
  1276. }
  1277. }
  1278. }
  1279. },
  1280. "409": {
  1281. "description": "ConflictError",
  1282. "content": {
  1283. "application/json": {
  1284. "schema": {
  1285. "$ref": "#/components/schemas/ConflictError"
  1286. }
  1287. }
  1288. }
  1289. }
  1290. },
  1291. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1292. "summary": "Send message",
  1293. "requestBody": {
  1294. "content": {
  1295. "application/json": {
  1296. "schema": {
  1297. "type": "object",
  1298. "properties": {
  1299. "id": {
  1300. "anyOf": [
  1301. {
  1302. "type": "string",
  1303. "allOf": [
  1304. {
  1305. "pattern": "^msg_"
  1306. }
  1307. ]
  1308. },
  1309. {
  1310. "type": "null"
  1311. }
  1312. ]
  1313. },
  1314. "prompt": {
  1315. "$ref": "#/components/schemas/PromptInput"
  1316. },
  1317. "delivery": {
  1318. "anyOf": [
  1319. {
  1320. "type": "string",
  1321. "enum": [
  1322. "steer",
  1323. "queue"
  1324. ]
  1325. },
  1326. {
  1327. "type": "null"
  1328. }
  1329. ]
  1330. },
  1331. "resume": {
  1332. "anyOf": [
  1333. {
  1334. "type": "boolean"
  1335. },
  1336. {
  1337. "type": "null"
  1338. }
  1339. ]
  1340. }
  1341. },
  1342. "required": [
  1343. "prompt"
  1344. ],
  1345. "additionalProperties": false
  1346. }
  1347. }
  1348. },
  1349. "required": true
  1350. }
  1351. }
  1352. },
  1353. "/api/session/{sessionID}/command": {
  1354. "post": {
  1355. "tags": [
  1356. "sessions"
  1357. ],
  1358. "operationId": "v2.session.command",
  1359. "parameters": [
  1360. {
  1361. "name": "sessionID",
  1362. "in": "path",
  1363. "schema": {
  1364. "type": "string",
  1365. "allOf": [
  1366. {
  1367. "pattern": "^ses"
  1368. }
  1369. ]
  1370. },
  1371. "required": true
  1372. }
  1373. ],
  1374. "security": [],
  1375. "responses": {
  1376. "200": {
  1377. "description": "Success",
  1378. "content": {
  1379. "application/json": {
  1380. "schema": {
  1381. "type": "object",
  1382. "properties": {
  1383. "data": {
  1384. "$ref": "#/components/schemas/SessionInput.Admitted"
  1385. }
  1386. },
  1387. "required": [
  1388. "data"
  1389. ],
  1390. "additionalProperties": false
  1391. }
  1392. }
  1393. }
  1394. },
  1395. "400": {
  1396. "description": "InvalidRequestError",
  1397. "content": {
  1398. "application/json": {
  1399. "schema": {
  1400. "$ref": "#/components/schemas/InvalidRequestError"
  1401. }
  1402. }
  1403. }
  1404. },
  1405. "401": {
  1406. "description": "UnauthorizedError",
  1407. "content": {
  1408. "application/json": {
  1409. "schema": {
  1410. "$ref": "#/components/schemas/UnauthorizedError"
  1411. }
  1412. }
  1413. }
  1414. },
  1415. "404": {
  1416. "description": "SessionNotFoundError | CommandNotFoundError",
  1417. "content": {
  1418. "application/json": {
  1419. "schema": {
  1420. "anyOf": [
  1421. {
  1422. "$ref": "#/components/schemas/CommandNotFoundError"
  1423. },
  1424. {
  1425. "$ref": "#/components/schemas/SessionNotFoundError"
  1426. },
  1427. {
  1428. "$ref": "#/components/schemas/SessionNotFoundError"
  1429. }
  1430. ]
  1431. }
  1432. }
  1433. }
  1434. },
  1435. "409": {
  1436. "description": "ConflictError",
  1437. "content": {
  1438. "application/json": {
  1439. "schema": {
  1440. "$ref": "#/components/schemas/ConflictError"
  1441. }
  1442. }
  1443. }
  1444. },
  1445. "500": {
  1446. "description": "CommandEvaluationError",
  1447. "content": {
  1448. "application/json": {
  1449. "schema": {
  1450. "$ref": "#/components/schemas/CommandEvaluationError"
  1451. }
  1452. }
  1453. }
  1454. }
  1455. },
  1456. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1457. "summary": "Run command",
  1458. "requestBody": {
  1459. "content": {
  1460. "application/json": {
  1461. "schema": {
  1462. "type": "object",
  1463. "properties": {
  1464. "id": {
  1465. "anyOf": [
  1466. {
  1467. "type": "string",
  1468. "allOf": [
  1469. {
  1470. "pattern": "^msg_"
  1471. }
  1472. ]
  1473. },
  1474. {
  1475. "type": "null"
  1476. }
  1477. ]
  1478. },
  1479. "command": {
  1480. "type": "string"
  1481. },
  1482. "arguments": {
  1483. "anyOf": [
  1484. {
  1485. "type": "string"
  1486. },
  1487. {
  1488. "type": "null"
  1489. }
  1490. ]
  1491. },
  1492. "agent": {
  1493. "anyOf": [
  1494. {
  1495. "type": "string"
  1496. },
  1497. {
  1498. "type": "null"
  1499. }
  1500. ]
  1501. },
  1502. "model": {
  1503. "anyOf": [
  1504. {
  1505. "$ref": "#/components/schemas/Model.Ref"
  1506. },
  1507. {
  1508. "type": "null"
  1509. }
  1510. ]
  1511. },
  1512. "files": {
  1513. "type": "array",
  1514. "items": {
  1515. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1516. }
  1517. },
  1518. "agents": {
  1519. "type": "array",
  1520. "items": {
  1521. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1522. }
  1523. },
  1524. "delivery": {
  1525. "anyOf": [
  1526. {
  1527. "type": "string",
  1528. "enum": [
  1529. "steer",
  1530. "queue"
  1531. ]
  1532. },
  1533. {
  1534. "type": "null"
  1535. }
  1536. ]
  1537. },
  1538. "resume": {
  1539. "anyOf": [
  1540. {
  1541. "type": "boolean"
  1542. },
  1543. {
  1544. "type": "null"
  1545. }
  1546. ]
  1547. }
  1548. },
  1549. "required": [
  1550. "command"
  1551. ],
  1552. "additionalProperties": false
  1553. }
  1554. }
  1555. },
  1556. "required": true
  1557. }
  1558. }
  1559. },
  1560. "/api/session/{sessionID}/skill": {
  1561. "post": {
  1562. "tags": [
  1563. "sessions"
  1564. ],
  1565. "operationId": "v2.session.skill",
  1566. "parameters": [
  1567. {
  1568. "name": "sessionID",
  1569. "in": "path",
  1570. "schema": {
  1571. "type": "string",
  1572. "allOf": [
  1573. {
  1574. "pattern": "^ses"
  1575. }
  1576. ]
  1577. },
  1578. "required": true
  1579. }
  1580. ],
  1581. "security": [],
  1582. "responses": {
  1583. "204": {
  1584. "description": "<No Content>"
  1585. },
  1586. "400": {
  1587. "description": "InvalidRequestError",
  1588. "content": {
  1589. "application/json": {
  1590. "schema": {
  1591. "$ref": "#/components/schemas/InvalidRequestError"
  1592. }
  1593. }
  1594. }
  1595. },
  1596. "401": {
  1597. "description": "UnauthorizedError",
  1598. "content": {
  1599. "application/json": {
  1600. "schema": {
  1601. "$ref": "#/components/schemas/UnauthorizedError"
  1602. }
  1603. }
  1604. }
  1605. },
  1606. "404": {
  1607. "description": "SessionNotFoundError | SkillNotFoundError",
  1608. "content": {
  1609. "application/json": {
  1610. "schema": {
  1611. "anyOf": [
  1612. {
  1613. "$ref": "#/components/schemas/SkillNotFoundError"
  1614. },
  1615. {
  1616. "$ref": "#/components/schemas/SessionNotFoundError"
  1617. },
  1618. {
  1619. "$ref": "#/components/schemas/SessionNotFoundError"
  1620. }
  1621. ]
  1622. }
  1623. }
  1624. }
  1625. }
  1626. },
  1627. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  1628. "summary": "Activate skill",
  1629. "requestBody": {
  1630. "content": {
  1631. "application/json": {
  1632. "schema": {
  1633. "type": "object",
  1634. "properties": {
  1635. "id": {
  1636. "anyOf": [
  1637. {
  1638. "type": "string",
  1639. "allOf": [
  1640. {
  1641. "pattern": "^msg_"
  1642. }
  1643. ]
  1644. },
  1645. {
  1646. "type": "null"
  1647. }
  1648. ]
  1649. },
  1650. "skill": {
  1651. "type": "string"
  1652. },
  1653. "resume": {
  1654. "anyOf": [
  1655. {
  1656. "type": "boolean"
  1657. },
  1658. {
  1659. "type": "null"
  1660. }
  1661. ]
  1662. }
  1663. },
  1664. "required": [
  1665. "skill"
  1666. ],
  1667. "additionalProperties": false
  1668. }
  1669. }
  1670. },
  1671. "required": true
  1672. }
  1673. }
  1674. },
  1675. "/api/session/{sessionID}/synthetic": {
  1676. "post": {
  1677. "tags": [
  1678. "sessions"
  1679. ],
  1680. "operationId": "v2.session.synthetic",
  1681. "parameters": [
  1682. {
  1683. "name": "sessionID",
  1684. "in": "path",
  1685. "schema": {
  1686. "type": "string",
  1687. "allOf": [
  1688. {
  1689. "pattern": "^ses"
  1690. }
  1691. ]
  1692. },
  1693. "required": true
  1694. }
  1695. ],
  1696. "security": [],
  1697. "responses": {
  1698. "204": {
  1699. "description": "<No Content>"
  1700. },
  1701. "400": {
  1702. "description": "InvalidRequestError",
  1703. "content": {
  1704. "application/json": {
  1705. "schema": {
  1706. "$ref": "#/components/schemas/InvalidRequestError"
  1707. }
  1708. }
  1709. }
  1710. },
  1711. "401": {
  1712. "description": "UnauthorizedError",
  1713. "content": {
  1714. "application/json": {
  1715. "schema": {
  1716. "$ref": "#/components/schemas/UnauthorizedError"
  1717. }
  1718. }
  1719. }
  1720. },
  1721. "404": {
  1722. "description": "SessionNotFoundError",
  1723. "content": {
  1724. "application/json": {
  1725. "schema": {
  1726. "anyOf": [
  1727. {
  1728. "$ref": "#/components/schemas/SessionNotFoundError"
  1729. },
  1730. {
  1731. "$ref": "#/components/schemas/SessionNotFoundError"
  1732. }
  1733. ]
  1734. }
  1735. }
  1736. }
  1737. }
  1738. },
  1739. "description": "Append a synthetic message to a session and resume execution.",
  1740. "summary": "Add synthetic message",
  1741. "requestBody": {
  1742. "content": {
  1743. "application/json": {
  1744. "schema": {
  1745. "type": "object",
  1746. "properties": {
  1747. "text": {
  1748. "type": "string"
  1749. },
  1750. "description": {
  1751. "anyOf": [
  1752. {
  1753. "type": "string"
  1754. },
  1755. {
  1756. "type": "null"
  1757. }
  1758. ]
  1759. },
  1760. "metadata": {
  1761. "type": "object"
  1762. }
  1763. },
  1764. "required": [
  1765. "text"
  1766. ],
  1767. "additionalProperties": false
  1768. }
  1769. }
  1770. },
  1771. "required": true
  1772. }
  1773. }
  1774. },
  1775. "/api/session/{sessionID}/compact": {
  1776. "post": {
  1777. "tags": [
  1778. "sessions"
  1779. ],
  1780. "operationId": "v2.session.compact",
  1781. "parameters": [
  1782. {
  1783. "name": "sessionID",
  1784. "in": "path",
  1785. "schema": {
  1786. "type": "string",
  1787. "allOf": [
  1788. {
  1789. "pattern": "^ses"
  1790. }
  1791. ]
  1792. },
  1793. "required": true
  1794. }
  1795. ],
  1796. "security": [],
  1797. "responses": {
  1798. "204": {
  1799. "description": "<No Content>"
  1800. },
  1801. "400": {
  1802. "description": "InvalidRequestError",
  1803. "content": {
  1804. "application/json": {
  1805. "schema": {
  1806. "$ref": "#/components/schemas/InvalidRequestError"
  1807. }
  1808. }
  1809. }
  1810. },
  1811. "401": {
  1812. "description": "UnauthorizedError",
  1813. "content": {
  1814. "application/json": {
  1815. "schema": {
  1816. "$ref": "#/components/schemas/UnauthorizedError"
  1817. }
  1818. }
  1819. }
  1820. },
  1821. "404": {
  1822. "description": "SessionNotFoundError",
  1823. "content": {
  1824. "application/json": {
  1825. "schema": {
  1826. "anyOf": [
  1827. {
  1828. "$ref": "#/components/schemas/SessionNotFoundError"
  1829. },
  1830. {
  1831. "$ref": "#/components/schemas/SessionNotFoundError"
  1832. }
  1833. ]
  1834. }
  1835. }
  1836. }
  1837. },
  1838. "409": {
  1839. "description": "SessionBusyError",
  1840. "content": {
  1841. "application/json": {
  1842. "schema": {
  1843. "$ref": "#/components/schemas/SessionBusyError"
  1844. }
  1845. }
  1846. }
  1847. },
  1848. "500": {
  1849. "description": "UnknownError",
  1850. "content": {
  1851. "application/json": {
  1852. "schema": {
  1853. "$ref": "#/components/schemas/UnknownError"
  1854. }
  1855. }
  1856. }
  1857. },
  1858. "503": {
  1859. "description": "ServiceUnavailableError",
  1860. "content": {
  1861. "application/json": {
  1862. "schema": {
  1863. "$ref": "#/components/schemas/ServiceUnavailableError"
  1864. }
  1865. }
  1866. }
  1867. }
  1868. },
  1869. "description": "Compact a session conversation.",
  1870. "summary": "Compact session"
  1871. }
  1872. },
  1873. "/api/session/{sessionID}/wait": {
  1874. "post": {
  1875. "tags": [
  1876. "sessions"
  1877. ],
  1878. "operationId": "v2.session.wait",
  1879. "parameters": [
  1880. {
  1881. "name": "sessionID",
  1882. "in": "path",
  1883. "schema": {
  1884. "type": "string",
  1885. "allOf": [
  1886. {
  1887. "pattern": "^ses"
  1888. }
  1889. ]
  1890. },
  1891. "required": true
  1892. }
  1893. ],
  1894. "security": [],
  1895. "responses": {
  1896. "204": {
  1897. "description": "<No Content>"
  1898. },
  1899. "400": {
  1900. "description": "InvalidRequestError",
  1901. "content": {
  1902. "application/json": {
  1903. "schema": {
  1904. "$ref": "#/components/schemas/InvalidRequestError"
  1905. }
  1906. }
  1907. }
  1908. },
  1909. "401": {
  1910. "description": "UnauthorizedError",
  1911. "content": {
  1912. "application/json": {
  1913. "schema": {
  1914. "$ref": "#/components/schemas/UnauthorizedError"
  1915. }
  1916. }
  1917. }
  1918. },
  1919. "404": {
  1920. "description": "SessionNotFoundError",
  1921. "content": {
  1922. "application/json": {
  1923. "schema": {
  1924. "anyOf": [
  1925. {
  1926. "$ref": "#/components/schemas/SessionNotFoundError"
  1927. },
  1928. {
  1929. "$ref": "#/components/schemas/SessionNotFoundError"
  1930. }
  1931. ]
  1932. }
  1933. }
  1934. }
  1935. },
  1936. "503": {
  1937. "description": "ServiceUnavailableError",
  1938. "content": {
  1939. "application/json": {
  1940. "schema": {
  1941. "$ref": "#/components/schemas/ServiceUnavailableError"
  1942. }
  1943. }
  1944. }
  1945. }
  1946. },
  1947. "description": "Wait for a session agent loop to become idle.",
  1948. "summary": "Wait for session"
  1949. }
  1950. },
  1951. "/api/session/{sessionID}/revert/stage": {
  1952. "post": {
  1953. "tags": [
  1954. "sessions"
  1955. ],
  1956. "operationId": "v2.session.revert.stage",
  1957. "parameters": [
  1958. {
  1959. "name": "sessionID",
  1960. "in": "path",
  1961. "schema": {
  1962. "type": "string",
  1963. "allOf": [
  1964. {
  1965. "pattern": "^ses"
  1966. }
  1967. ]
  1968. },
  1969. "required": true
  1970. }
  1971. ],
  1972. "security": [],
  1973. "responses": {
  1974. "200": {
  1975. "description": "Success",
  1976. "content": {
  1977. "application/json": {
  1978. "schema": {
  1979. "type": "object",
  1980. "properties": {
  1981. "data": {
  1982. "$ref": "#/components/schemas/Revert.State"
  1983. }
  1984. },
  1985. "required": [
  1986. "data"
  1987. ],
  1988. "additionalProperties": false
  1989. }
  1990. }
  1991. }
  1992. },
  1993. "400": {
  1994. "description": "InvalidRequestError",
  1995. "content": {
  1996. "application/json": {
  1997. "schema": {
  1998. "$ref": "#/components/schemas/InvalidRequestError"
  1999. }
  2000. }
  2001. }
  2002. },
  2003. "401": {
  2004. "description": "UnauthorizedError",
  2005. "content": {
  2006. "application/json": {
  2007. "schema": {
  2008. "$ref": "#/components/schemas/UnauthorizedError"
  2009. }
  2010. }
  2011. }
  2012. },
  2013. "404": {
  2014. "description": "MessageNotFoundError | SessionNotFoundError",
  2015. "content": {
  2016. "application/json": {
  2017. "schema": {
  2018. "anyOf": [
  2019. {
  2020. "$ref": "#/components/schemas/MessageNotFoundError"
  2021. },
  2022. {
  2023. "$ref": "#/components/schemas/SessionNotFoundError"
  2024. },
  2025. {
  2026. "$ref": "#/components/schemas/SessionNotFoundError"
  2027. }
  2028. ]
  2029. }
  2030. }
  2031. }
  2032. },
  2033. "409": {
  2034. "description": "SessionBusyError",
  2035. "content": {
  2036. "application/json": {
  2037. "schema": {
  2038. "$ref": "#/components/schemas/SessionBusyError"
  2039. }
  2040. }
  2041. }
  2042. },
  2043. "500": {
  2044. "description": "UnknownError",
  2045. "content": {
  2046. "application/json": {
  2047. "schema": {
  2048. "$ref": "#/components/schemas/UnknownError"
  2049. }
  2050. }
  2051. }
  2052. }
  2053. },
  2054. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2055. "summary": "Stage session revert",
  2056. "requestBody": {
  2057. "content": {
  2058. "application/json": {
  2059. "schema": {
  2060. "type": "object",
  2061. "properties": {
  2062. "messageID": {
  2063. "type": "string",
  2064. "allOf": [
  2065. {
  2066. "pattern": "^msg_"
  2067. }
  2068. ]
  2069. },
  2070. "files": {
  2071. "anyOf": [
  2072. {
  2073. "type": "boolean"
  2074. },
  2075. {
  2076. "type": "null"
  2077. }
  2078. ]
  2079. }
  2080. },
  2081. "required": [
  2082. "messageID"
  2083. ],
  2084. "additionalProperties": false
  2085. }
  2086. }
  2087. },
  2088. "required": true
  2089. }
  2090. }
  2091. },
  2092. "/api/session/{sessionID}/revert/clear": {
  2093. "post": {
  2094. "tags": [
  2095. "sessions"
  2096. ],
  2097. "operationId": "v2.session.revert.clear",
  2098. "parameters": [
  2099. {
  2100. "name": "sessionID",
  2101. "in": "path",
  2102. "schema": {
  2103. "type": "string",
  2104. "allOf": [
  2105. {
  2106. "pattern": "^ses"
  2107. }
  2108. ]
  2109. },
  2110. "required": true
  2111. }
  2112. ],
  2113. "security": [],
  2114. "responses": {
  2115. "204": {
  2116. "description": "<No Content>"
  2117. },
  2118. "400": {
  2119. "description": "InvalidRequestError",
  2120. "content": {
  2121. "application/json": {
  2122. "schema": {
  2123. "$ref": "#/components/schemas/InvalidRequestError"
  2124. }
  2125. }
  2126. }
  2127. },
  2128. "401": {
  2129. "description": "UnauthorizedError",
  2130. "content": {
  2131. "application/json": {
  2132. "schema": {
  2133. "$ref": "#/components/schemas/UnauthorizedError"
  2134. }
  2135. }
  2136. }
  2137. },
  2138. "404": {
  2139. "description": "SessionNotFoundError",
  2140. "content": {
  2141. "application/json": {
  2142. "schema": {
  2143. "anyOf": [
  2144. {
  2145. "$ref": "#/components/schemas/SessionNotFoundError"
  2146. },
  2147. {
  2148. "$ref": "#/components/schemas/SessionNotFoundError"
  2149. }
  2150. ]
  2151. }
  2152. }
  2153. }
  2154. },
  2155. "409": {
  2156. "description": "SessionBusyError",
  2157. "content": {
  2158. "application/json": {
  2159. "schema": {
  2160. "$ref": "#/components/schemas/SessionBusyError"
  2161. }
  2162. }
  2163. }
  2164. },
  2165. "500": {
  2166. "description": "UnknownError",
  2167. "content": {
  2168. "application/json": {
  2169. "schema": {
  2170. "$ref": "#/components/schemas/UnknownError"
  2171. }
  2172. }
  2173. }
  2174. }
  2175. },
  2176. "summary": "Clear staged revert"
  2177. }
  2178. },
  2179. "/api/session/{sessionID}/revert/commit": {
  2180. "post": {
  2181. "tags": [
  2182. "sessions"
  2183. ],
  2184. "operationId": "v2.session.revert.commit",
  2185. "parameters": [
  2186. {
  2187. "name": "sessionID",
  2188. "in": "path",
  2189. "schema": {
  2190. "type": "string",
  2191. "allOf": [
  2192. {
  2193. "pattern": "^ses"
  2194. }
  2195. ]
  2196. },
  2197. "required": true
  2198. }
  2199. ],
  2200. "security": [],
  2201. "responses": {
  2202. "204": {
  2203. "description": "<No Content>"
  2204. },
  2205. "400": {
  2206. "description": "InvalidRequestError",
  2207. "content": {
  2208. "application/json": {
  2209. "schema": {
  2210. "$ref": "#/components/schemas/InvalidRequestError"
  2211. }
  2212. }
  2213. }
  2214. },
  2215. "401": {
  2216. "description": "UnauthorizedError",
  2217. "content": {
  2218. "application/json": {
  2219. "schema": {
  2220. "$ref": "#/components/schemas/UnauthorizedError"
  2221. }
  2222. }
  2223. }
  2224. },
  2225. "404": {
  2226. "description": "SessionNotFoundError",
  2227. "content": {
  2228. "application/json": {
  2229. "schema": {
  2230. "anyOf": [
  2231. {
  2232. "$ref": "#/components/schemas/SessionNotFoundError"
  2233. },
  2234. {
  2235. "$ref": "#/components/schemas/SessionNotFoundError"
  2236. }
  2237. ]
  2238. }
  2239. }
  2240. }
  2241. },
  2242. "409": {
  2243. "description": "SessionBusyError",
  2244. "content": {
  2245. "application/json": {
  2246. "schema": {
  2247. "$ref": "#/components/schemas/SessionBusyError"
  2248. }
  2249. }
  2250. }
  2251. }
  2252. },
  2253. "summary": "Commit staged revert"
  2254. }
  2255. },
  2256. "/api/session/{sessionID}/context": {
  2257. "get": {
  2258. "tags": [
  2259. "sessions"
  2260. ],
  2261. "operationId": "v2.session.context",
  2262. "parameters": [
  2263. {
  2264. "name": "sessionID",
  2265. "in": "path",
  2266. "schema": {
  2267. "type": "string",
  2268. "allOf": [
  2269. {
  2270. "pattern": "^ses"
  2271. }
  2272. ]
  2273. },
  2274. "required": true
  2275. }
  2276. ],
  2277. "security": [],
  2278. "responses": {
  2279. "200": {
  2280. "description": "Success",
  2281. "content": {
  2282. "application/json": {
  2283. "schema": {
  2284. "type": "object",
  2285. "properties": {
  2286. "data": {
  2287. "type": "array",
  2288. "items": {
  2289. "$ref": "#/components/schemas/Session.Message"
  2290. }
  2291. }
  2292. },
  2293. "required": [
  2294. "data"
  2295. ],
  2296. "additionalProperties": false
  2297. }
  2298. }
  2299. }
  2300. },
  2301. "400": {
  2302. "description": "InvalidRequestError",
  2303. "content": {
  2304. "application/json": {
  2305. "schema": {
  2306. "$ref": "#/components/schemas/InvalidRequestError"
  2307. }
  2308. }
  2309. }
  2310. },
  2311. "401": {
  2312. "description": "UnauthorizedError",
  2313. "content": {
  2314. "application/json": {
  2315. "schema": {
  2316. "$ref": "#/components/schemas/UnauthorizedError"
  2317. }
  2318. }
  2319. }
  2320. },
  2321. "404": {
  2322. "description": "SessionNotFoundError",
  2323. "content": {
  2324. "application/json": {
  2325. "schema": {
  2326. "anyOf": [
  2327. {
  2328. "$ref": "#/components/schemas/SessionNotFoundError"
  2329. },
  2330. {
  2331. "$ref": "#/components/schemas/SessionNotFoundError"
  2332. }
  2333. ]
  2334. }
  2335. }
  2336. }
  2337. },
  2338. "500": {
  2339. "description": "UnknownError",
  2340. "content": {
  2341. "application/json": {
  2342. "schema": {
  2343. "$ref": "#/components/schemas/UnknownError"
  2344. }
  2345. }
  2346. }
  2347. }
  2348. },
  2349. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2350. "summary": "Get session context"
  2351. }
  2352. },
  2353. "/api/session/{sessionID}/instructions/entries": {
  2354. "get": {
  2355. "tags": [
  2356. "sessions"
  2357. ],
  2358. "operationId": "v2.session.instructions.entry.list",
  2359. "parameters": [
  2360. {
  2361. "name": "sessionID",
  2362. "in": "path",
  2363. "schema": {
  2364. "type": "string",
  2365. "allOf": [
  2366. {
  2367. "pattern": "^ses"
  2368. }
  2369. ]
  2370. },
  2371. "required": true
  2372. }
  2373. ],
  2374. "security": [],
  2375. "responses": {
  2376. "200": {
  2377. "description": "Success",
  2378. "content": {
  2379. "application/json": {
  2380. "schema": {
  2381. "type": "object",
  2382. "properties": {
  2383. "data": {
  2384. "type": "array",
  2385. "items": {
  2386. "$ref": "#/components/schemas/InstructionEntry.Info"
  2387. }
  2388. }
  2389. },
  2390. "required": [
  2391. "data"
  2392. ],
  2393. "additionalProperties": false
  2394. }
  2395. }
  2396. }
  2397. },
  2398. "400": {
  2399. "description": "InvalidRequestError",
  2400. "content": {
  2401. "application/json": {
  2402. "schema": {
  2403. "$ref": "#/components/schemas/InvalidRequestError"
  2404. }
  2405. }
  2406. }
  2407. },
  2408. "401": {
  2409. "description": "UnauthorizedError",
  2410. "content": {
  2411. "application/json": {
  2412. "schema": {
  2413. "$ref": "#/components/schemas/UnauthorizedError"
  2414. }
  2415. }
  2416. }
  2417. },
  2418. "404": {
  2419. "description": "SessionNotFoundError",
  2420. "content": {
  2421. "application/json": {
  2422. "schema": {
  2423. "anyOf": [
  2424. {
  2425. "$ref": "#/components/schemas/SessionNotFoundError"
  2426. },
  2427. {
  2428. "$ref": "#/components/schemas/SessionNotFoundError"
  2429. }
  2430. ]
  2431. }
  2432. }
  2433. }
  2434. }
  2435. },
  2436. "description": "List API-managed instruction entries attached to the session.",
  2437. "summary": "List instruction entries"
  2438. }
  2439. },
  2440. "/api/session/{sessionID}/instructions/entries/{key}": {
  2441. "put": {
  2442. "tags": [
  2443. "sessions"
  2444. ],
  2445. "operationId": "v2.session.instructions.entry.put",
  2446. "parameters": [
  2447. {
  2448. "name": "sessionID",
  2449. "in": "path",
  2450. "schema": {
  2451. "type": "string",
  2452. "allOf": [
  2453. {
  2454. "pattern": "^ses"
  2455. }
  2456. ]
  2457. },
  2458. "required": true
  2459. },
  2460. {
  2461. "name": "key",
  2462. "in": "path",
  2463. "schema": {
  2464. "$ref": "#/components/schemas/InstructionEntry.Key"
  2465. },
  2466. "required": true
  2467. }
  2468. ],
  2469. "security": [],
  2470. "responses": {
  2471. "204": {
  2472. "description": "<No Content>"
  2473. },
  2474. "400": {
  2475. "description": "InvalidRequestError",
  2476. "content": {
  2477. "application/json": {
  2478. "schema": {
  2479. "$ref": "#/components/schemas/InvalidRequestError"
  2480. }
  2481. }
  2482. }
  2483. },
  2484. "401": {
  2485. "description": "UnauthorizedError",
  2486. "content": {
  2487. "application/json": {
  2488. "schema": {
  2489. "$ref": "#/components/schemas/UnauthorizedError"
  2490. }
  2491. }
  2492. }
  2493. },
  2494. "404": {
  2495. "description": "SessionNotFoundError",
  2496. "content": {
  2497. "application/json": {
  2498. "schema": {
  2499. "anyOf": [
  2500. {
  2501. "$ref": "#/components/schemas/SessionNotFoundError"
  2502. },
  2503. {
  2504. "$ref": "#/components/schemas/SessionNotFoundError"
  2505. }
  2506. ]
  2507. }
  2508. }
  2509. }
  2510. }
  2511. },
  2512. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  2513. "summary": "Put instruction entry",
  2514. "requestBody": {
  2515. "content": {
  2516. "application/json": {
  2517. "schema": {
  2518. "type": "object",
  2519. "properties": {
  2520. "value": {}
  2521. },
  2522. "required": [
  2523. "value"
  2524. ],
  2525. "additionalProperties": false
  2526. }
  2527. }
  2528. },
  2529. "required": true
  2530. }
  2531. },
  2532. "delete": {
  2533. "tags": [
  2534. "sessions"
  2535. ],
  2536. "operationId": "v2.session.instructions.entry.remove",
  2537. "parameters": [
  2538. {
  2539. "name": "sessionID",
  2540. "in": "path",
  2541. "schema": {
  2542. "type": "string",
  2543. "allOf": [
  2544. {
  2545. "pattern": "^ses"
  2546. }
  2547. ]
  2548. },
  2549. "required": true
  2550. },
  2551. {
  2552. "name": "key",
  2553. "in": "path",
  2554. "schema": {
  2555. "$ref": "#/components/schemas/InstructionEntry.Key"
  2556. },
  2557. "required": true
  2558. }
  2559. ],
  2560. "security": [],
  2561. "responses": {
  2562. "204": {
  2563. "description": "<No Content>"
  2564. },
  2565. "400": {
  2566. "description": "InvalidRequestError",
  2567. "content": {
  2568. "application/json": {
  2569. "schema": {
  2570. "$ref": "#/components/schemas/InvalidRequestError"
  2571. }
  2572. }
  2573. }
  2574. },
  2575. "401": {
  2576. "description": "UnauthorizedError",
  2577. "content": {
  2578. "application/json": {
  2579. "schema": {
  2580. "$ref": "#/components/schemas/UnauthorizedError"
  2581. }
  2582. }
  2583. }
  2584. },
  2585. "404": {
  2586. "description": "SessionNotFoundError",
  2587. "content": {
  2588. "application/json": {
  2589. "schema": {
  2590. "anyOf": [
  2591. {
  2592. "$ref": "#/components/schemas/SessionNotFoundError"
  2593. },
  2594. {
  2595. "$ref": "#/components/schemas/SessionNotFoundError"
  2596. }
  2597. ]
  2598. }
  2599. }
  2600. }
  2601. }
  2602. },
  2603. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  2604. "summary": "Remove instruction entry"
  2605. }
  2606. },
  2607. "/api/session/{sessionID}/log": {
  2608. "get": {
  2609. "tags": [
  2610. "sessions"
  2611. ],
  2612. "operationId": "v2.session.log",
  2613. "parameters": [
  2614. {
  2615. "name": "sessionID",
  2616. "in": "path",
  2617. "schema": {
  2618. "type": "string",
  2619. "allOf": [
  2620. {
  2621. "pattern": "^ses"
  2622. }
  2623. ]
  2624. },
  2625. "required": true
  2626. },
  2627. {
  2628. "name": "after",
  2629. "in": "query",
  2630. "schema": {
  2631. "anyOf": [
  2632. {
  2633. "type": "string"
  2634. },
  2635. {
  2636. "type": "null"
  2637. }
  2638. ]
  2639. },
  2640. "required": false
  2641. },
  2642. {
  2643. "name": "follow",
  2644. "in": "query",
  2645. "schema": {
  2646. "anyOf": [
  2647. {
  2648. "type": "string",
  2649. "enum": [
  2650. "true",
  2651. "false"
  2652. ]
  2653. },
  2654. {
  2655. "type": "null"
  2656. }
  2657. ]
  2658. },
  2659. "required": false
  2660. }
  2661. ],
  2662. "security": [],
  2663. "responses": {
  2664. "200": {
  2665. "description": "Success",
  2666. "content": {
  2667. "text/event-stream": {
  2668. "schema": {
  2669. "type": "object",
  2670. "properties": {
  2671. "id": {
  2672. "anyOf": [
  2673. {
  2674. "type": "string"
  2675. },
  2676. {
  2677. "type": "null"
  2678. }
  2679. ]
  2680. },
  2681. "event": {
  2682. "type": "string"
  2683. },
  2684. "data": {
  2685. "$ref": "#/components/schemas/SessionLogItemStream"
  2686. }
  2687. },
  2688. "required": [
  2689. "id",
  2690. "event",
  2691. "data"
  2692. ],
  2693. "additionalProperties": false
  2694. },
  2695. "x-effect-stream": {
  2696. "encoding": "sse",
  2697. "causeSchema": {
  2698. "type": "array",
  2699. "items": {
  2700. "anyOf": [
  2701. {
  2702. "type": "object",
  2703. "properties": {
  2704. "_tag": {
  2705. "type": "string",
  2706. "enum": [
  2707. "Fail"
  2708. ]
  2709. },
  2710. "error": {
  2711. "not": {}
  2712. }
  2713. },
  2714. "required": [
  2715. "_tag",
  2716. "error"
  2717. ],
  2718. "additionalProperties": false
  2719. },
  2720. {
  2721. "type": "object",
  2722. "properties": {
  2723. "_tag": {
  2724. "type": "string",
  2725. "enum": [
  2726. "Die"
  2727. ]
  2728. },
  2729. "defect": {}
  2730. },
  2731. "required": [
  2732. "_tag",
  2733. "defect"
  2734. ],
  2735. "additionalProperties": false
  2736. },
  2737. {
  2738. "type": "object",
  2739. "properties": {
  2740. "_tag": {
  2741. "type": "string",
  2742. "enum": [
  2743. "Interrupt"
  2744. ]
  2745. },
  2746. "fiberId": {
  2747. "anyOf": [
  2748. {
  2749. "type": "number"
  2750. },
  2751. {
  2752. "type": "null"
  2753. }
  2754. ]
  2755. }
  2756. },
  2757. "required": [
  2758. "_tag",
  2759. "fiberId"
  2760. ],
  2761. "additionalProperties": false
  2762. }
  2763. ]
  2764. }
  2765. },
  2766. "errorSchema": {
  2767. "not": {}
  2768. },
  2769. "failureEvent": "effect/httpapi/stream/failure"
  2770. }
  2771. }
  2772. }
  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": "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.",
  2813. "summary": "Read the session log"
  2814. }
  2815. },
  2816. "/api/session/{sessionID}/interrupt": {
  2817. "post": {
  2818. "tags": [
  2819. "sessions"
  2820. ],
  2821. "operationId": "v2.session.interrupt",
  2822. "parameters": [
  2823. {
  2824. "name": "sessionID",
  2825. "in": "path",
  2826. "schema": {
  2827. "type": "string",
  2828. "allOf": [
  2829. {
  2830. "pattern": "^ses"
  2831. }
  2832. ]
  2833. },
  2834. "required": true
  2835. }
  2836. ],
  2837. "security": [],
  2838. "responses": {
  2839. "204": {
  2840. "description": "<No Content>"
  2841. },
  2842. "400": {
  2843. "description": "InvalidRequestError",
  2844. "content": {
  2845. "application/json": {
  2846. "schema": {
  2847. "$ref": "#/components/schemas/InvalidRequestError"
  2848. }
  2849. }
  2850. }
  2851. },
  2852. "401": {
  2853. "description": "UnauthorizedError",
  2854. "content": {
  2855. "application/json": {
  2856. "schema": {
  2857. "$ref": "#/components/schemas/UnauthorizedError"
  2858. }
  2859. }
  2860. }
  2861. },
  2862. "404": {
  2863. "description": "SessionNotFoundError",
  2864. "content": {
  2865. "application/json": {
  2866. "schema": {
  2867. "anyOf": [
  2868. {
  2869. "$ref": "#/components/schemas/SessionNotFoundError"
  2870. },
  2871. {
  2872. "$ref": "#/components/schemas/SessionNotFoundError"
  2873. }
  2874. ]
  2875. }
  2876. }
  2877. }
  2878. }
  2879. },
  2880. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  2881. "summary": "Interrupt session execution"
  2882. }
  2883. },
  2884. "/api/session/{sessionID}/background": {
  2885. "post": {
  2886. "tags": [
  2887. "sessions"
  2888. ],
  2889. "operationId": "v2.session.background",
  2890. "parameters": [
  2891. {
  2892. "name": "sessionID",
  2893. "in": "path",
  2894. "schema": {
  2895. "type": "string",
  2896. "allOf": [
  2897. {
  2898. "pattern": "^ses"
  2899. }
  2900. ]
  2901. },
  2902. "required": true
  2903. }
  2904. ],
  2905. "security": [],
  2906. "responses": {
  2907. "204": {
  2908. "description": "<No Content>"
  2909. },
  2910. "400": {
  2911. "description": "InvalidRequestError",
  2912. "content": {
  2913. "application/json": {
  2914. "schema": {
  2915. "$ref": "#/components/schemas/InvalidRequestError"
  2916. }
  2917. }
  2918. }
  2919. },
  2920. "401": {
  2921. "description": "UnauthorizedError",
  2922. "content": {
  2923. "application/json": {
  2924. "schema": {
  2925. "$ref": "#/components/schemas/UnauthorizedError"
  2926. }
  2927. }
  2928. }
  2929. },
  2930. "404": {
  2931. "description": "SessionNotFoundError",
  2932. "content": {
  2933. "application/json": {
  2934. "schema": {
  2935. "anyOf": [
  2936. {
  2937. "$ref": "#/components/schemas/SessionNotFoundError"
  2938. },
  2939. {
  2940. "$ref": "#/components/schemas/SessionNotFoundError"
  2941. }
  2942. ]
  2943. }
  2944. }
  2945. }
  2946. }
  2947. },
  2948. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  2949. "summary": "Background blocking session tools"
  2950. }
  2951. },
  2952. "/api/session/{sessionID}/message/{messageID}": {
  2953. "get": {
  2954. "tags": [
  2955. "sessions"
  2956. ],
  2957. "operationId": "v2.session.message",
  2958. "parameters": [
  2959. {
  2960. "name": "sessionID",
  2961. "in": "path",
  2962. "schema": {
  2963. "type": "string",
  2964. "allOf": [
  2965. {
  2966. "pattern": "^ses"
  2967. }
  2968. ]
  2969. },
  2970. "required": true
  2971. },
  2972. {
  2973. "name": "messageID",
  2974. "in": "path",
  2975. "schema": {
  2976. "type": "string",
  2977. "allOf": [
  2978. {
  2979. "pattern": "^msg_"
  2980. }
  2981. ]
  2982. },
  2983. "required": true
  2984. }
  2985. ],
  2986. "security": [],
  2987. "responses": {
  2988. "200": {
  2989. "description": "Success",
  2990. "content": {
  2991. "application/json": {
  2992. "schema": {
  2993. "type": "object",
  2994. "properties": {
  2995. "data": {
  2996. "$ref": "#/components/schemas/Session.Message"
  2997. }
  2998. },
  2999. "required": [
  3000. "data"
  3001. ],
  3002. "additionalProperties": false
  3003. }
  3004. }
  3005. }
  3006. },
  3007. "400": {
  3008. "description": "InvalidRequestError",
  3009. "content": {
  3010. "application/json": {
  3011. "schema": {
  3012. "$ref": "#/components/schemas/InvalidRequestError"
  3013. }
  3014. }
  3015. }
  3016. },
  3017. "401": {
  3018. "description": "UnauthorizedError",
  3019. "content": {
  3020. "application/json": {
  3021. "schema": {
  3022. "$ref": "#/components/schemas/UnauthorizedError"
  3023. }
  3024. }
  3025. }
  3026. },
  3027. "404": {
  3028. "description": "SessionNotFoundError | MessageNotFoundError",
  3029. "content": {
  3030. "application/json": {
  3031. "schema": {
  3032. "anyOf": [
  3033. {
  3034. "$ref": "#/components/schemas/MessageNotFoundError"
  3035. },
  3036. {
  3037. "$ref": "#/components/schemas/SessionNotFoundError"
  3038. },
  3039. {
  3040. "$ref": "#/components/schemas/SessionNotFoundError"
  3041. }
  3042. ]
  3043. }
  3044. }
  3045. }
  3046. }
  3047. },
  3048. "description": "Retrieve one projected message owned by the Session.",
  3049. "summary": "Get session message"
  3050. }
  3051. },
  3052. "/api/session/{sessionID}/message": {
  3053. "get": {
  3054. "tags": [
  3055. "messages"
  3056. ],
  3057. "operationId": "v2.session.messages",
  3058. "parameters": [
  3059. {
  3060. "name": "sessionID",
  3061. "in": "path",
  3062. "schema": {
  3063. "type": "string",
  3064. "allOf": [
  3065. {
  3066. "pattern": "^ses"
  3067. }
  3068. ]
  3069. },
  3070. "required": true
  3071. },
  3072. {
  3073. "name": "limit",
  3074. "in": "query",
  3075. "schema": {
  3076. "anyOf": [
  3077. {
  3078. "type": "string"
  3079. },
  3080. {
  3081. "type": "null"
  3082. }
  3083. ],
  3084. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3085. },
  3086. "required": false
  3087. },
  3088. {
  3089. "name": "order",
  3090. "in": "query",
  3091. "schema": {
  3092. "anyOf": [
  3093. {
  3094. "type": "string",
  3095. "enum": [
  3096. "asc",
  3097. "desc"
  3098. ]
  3099. },
  3100. {
  3101. "type": "null"
  3102. }
  3103. ],
  3104. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3105. },
  3106. "required": false
  3107. },
  3108. {
  3109. "name": "cursor",
  3110. "in": "query",
  3111. "schema": {
  3112. "anyOf": [
  3113. {
  3114. "type": "string",
  3115. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3116. },
  3117. {
  3118. "type": "null"
  3119. }
  3120. ]
  3121. },
  3122. "required": false
  3123. }
  3124. ],
  3125. "security": [],
  3126. "responses": {
  3127. "200": {
  3128. "description": "SessionMessagesResponse",
  3129. "content": {
  3130. "application/json": {
  3131. "schema": {
  3132. "$ref": "#/components/schemas/SessionMessagesResponse"
  3133. }
  3134. }
  3135. }
  3136. },
  3137. "400": {
  3138. "description": "InvalidCursorError | InvalidRequestError",
  3139. "content": {
  3140. "application/json": {
  3141. "schema": {
  3142. "anyOf": [
  3143. {
  3144. "$ref": "#/components/schemas/InvalidCursorError"
  3145. },
  3146. {
  3147. "$ref": "#/components/schemas/InvalidRequestError"
  3148. }
  3149. ]
  3150. }
  3151. }
  3152. }
  3153. },
  3154. "401": {
  3155. "description": "UnauthorizedError",
  3156. "content": {
  3157. "application/json": {
  3158. "schema": {
  3159. "$ref": "#/components/schemas/UnauthorizedError"
  3160. }
  3161. }
  3162. }
  3163. },
  3164. "404": {
  3165. "description": "SessionNotFoundError",
  3166. "content": {
  3167. "application/json": {
  3168. "schema": {
  3169. "anyOf": [
  3170. {
  3171. "$ref": "#/components/schemas/SessionNotFoundError"
  3172. },
  3173. {
  3174. "$ref": "#/components/schemas/SessionNotFoundError"
  3175. }
  3176. ]
  3177. }
  3178. }
  3179. }
  3180. },
  3181. "500": {
  3182. "description": "UnknownError",
  3183. "content": {
  3184. "application/json": {
  3185. "schema": {
  3186. "$ref": "#/components/schemas/UnknownError"
  3187. }
  3188. }
  3189. }
  3190. }
  3191. },
  3192. "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.",
  3193. "summary": "Get session messages"
  3194. }
  3195. },
  3196. "/api/model": {
  3197. "get": {
  3198. "tags": [
  3199. "models"
  3200. ],
  3201. "operationId": "v2.model.list",
  3202. "parameters": [
  3203. {
  3204. "name": "location",
  3205. "in": "query",
  3206. "schema": {
  3207. "anyOf": [
  3208. {
  3209. "type": "object",
  3210. "properties": {
  3211. "directory": {
  3212. "anyOf": [
  3213. {
  3214. "type": "string"
  3215. },
  3216. {
  3217. "type": "null"
  3218. }
  3219. ]
  3220. },
  3221. "workspace": {
  3222. "anyOf": [
  3223. {
  3224. "type": "string"
  3225. },
  3226. {
  3227. "type": "null"
  3228. }
  3229. ]
  3230. }
  3231. },
  3232. "additionalProperties": false
  3233. },
  3234. {
  3235. "type": "null"
  3236. }
  3237. ]
  3238. },
  3239. "required": false,
  3240. "style": "deepObject",
  3241. "explode": true
  3242. }
  3243. ],
  3244. "security": [],
  3245. "responses": {
  3246. "200": {
  3247. "description": "Success",
  3248. "content": {
  3249. "application/json": {
  3250. "schema": {
  3251. "type": "object",
  3252. "properties": {
  3253. "location": {
  3254. "$ref": "#/components/schemas/Location.Info"
  3255. },
  3256. "data": {
  3257. "type": "array",
  3258. "items": {
  3259. "$ref": "#/components/schemas/ModelV2.Info"
  3260. }
  3261. }
  3262. },
  3263. "required": [
  3264. "location",
  3265. "data"
  3266. ],
  3267. "additionalProperties": false
  3268. }
  3269. }
  3270. }
  3271. },
  3272. "400": {
  3273. "description": "InvalidRequestError",
  3274. "content": {
  3275. "application/json": {
  3276. "schema": {
  3277. "$ref": "#/components/schemas/InvalidRequestError"
  3278. }
  3279. }
  3280. }
  3281. },
  3282. "401": {
  3283. "description": "UnauthorizedError",
  3284. "content": {
  3285. "application/json": {
  3286. "schema": {
  3287. "$ref": "#/components/schemas/UnauthorizedError"
  3288. }
  3289. }
  3290. }
  3291. },
  3292. "503": {
  3293. "description": "ServiceUnavailableError",
  3294. "content": {
  3295. "application/json": {
  3296. "schema": {
  3297. "$ref": "#/components/schemas/ServiceUnavailableError"
  3298. }
  3299. }
  3300. }
  3301. }
  3302. },
  3303. "description": "Retrieve available models ordered by release date.",
  3304. "summary": "List models"
  3305. }
  3306. },
  3307. "/api/model/default": {
  3308. "get": {
  3309. "tags": [
  3310. "models"
  3311. ],
  3312. "operationId": "v2.model.default",
  3313. "parameters": [
  3314. {
  3315. "name": "location",
  3316. "in": "query",
  3317. "schema": {
  3318. "anyOf": [
  3319. {
  3320. "type": "object",
  3321. "properties": {
  3322. "directory": {
  3323. "anyOf": [
  3324. {
  3325. "type": "string"
  3326. },
  3327. {
  3328. "type": "null"
  3329. }
  3330. ]
  3331. },
  3332. "workspace": {
  3333. "anyOf": [
  3334. {
  3335. "type": "string"
  3336. },
  3337. {
  3338. "type": "null"
  3339. }
  3340. ]
  3341. }
  3342. },
  3343. "additionalProperties": false
  3344. },
  3345. {
  3346. "type": "null"
  3347. }
  3348. ]
  3349. },
  3350. "required": false,
  3351. "style": "deepObject",
  3352. "explode": true
  3353. }
  3354. ],
  3355. "security": [],
  3356. "responses": {
  3357. "200": {
  3358. "description": "Success",
  3359. "content": {
  3360. "application/json": {
  3361. "schema": {
  3362. "type": "object",
  3363. "properties": {
  3364. "location": {
  3365. "$ref": "#/components/schemas/Location.Info"
  3366. },
  3367. "data": {
  3368. "anyOf": [
  3369. {
  3370. "$ref": "#/components/schemas/ModelV2.Info"
  3371. },
  3372. {
  3373. "type": "null"
  3374. }
  3375. ]
  3376. }
  3377. },
  3378. "required": [
  3379. "location",
  3380. "data"
  3381. ],
  3382. "additionalProperties": false
  3383. }
  3384. }
  3385. }
  3386. },
  3387. "400": {
  3388. "description": "InvalidRequestError",
  3389. "content": {
  3390. "application/json": {
  3391. "schema": {
  3392. "$ref": "#/components/schemas/InvalidRequestError"
  3393. }
  3394. }
  3395. }
  3396. },
  3397. "401": {
  3398. "description": "UnauthorizedError",
  3399. "content": {
  3400. "application/json": {
  3401. "schema": {
  3402. "$ref": "#/components/schemas/UnauthorizedError"
  3403. }
  3404. }
  3405. }
  3406. },
  3407. "503": {
  3408. "description": "ServiceUnavailableError",
  3409. "content": {
  3410. "application/json": {
  3411. "schema": {
  3412. "$ref": "#/components/schemas/ServiceUnavailableError"
  3413. }
  3414. }
  3415. }
  3416. }
  3417. },
  3418. "description": "Retrieve the model used when a session has no explicit model selection.",
  3419. "summary": "Get default model"
  3420. }
  3421. },
  3422. "/api/generate": {
  3423. "post": {
  3424. "tags": [
  3425. "generate"
  3426. ],
  3427. "operationId": "v2.generate.text",
  3428. "parameters": [
  3429. {
  3430. "name": "location",
  3431. "in": "query",
  3432. "schema": {
  3433. "anyOf": [
  3434. {
  3435. "type": "object",
  3436. "properties": {
  3437. "directory": {
  3438. "anyOf": [
  3439. {
  3440. "type": "string"
  3441. },
  3442. {
  3443. "type": "null"
  3444. }
  3445. ]
  3446. },
  3447. "workspace": {
  3448. "anyOf": [
  3449. {
  3450. "type": "string"
  3451. },
  3452. {
  3453. "type": "null"
  3454. }
  3455. ]
  3456. }
  3457. },
  3458. "additionalProperties": false
  3459. },
  3460. {
  3461. "type": "null"
  3462. }
  3463. ]
  3464. },
  3465. "required": false,
  3466. "style": "deepObject",
  3467. "explode": true
  3468. }
  3469. ],
  3470. "security": [],
  3471. "responses": {
  3472. "200": {
  3473. "description": "GenerateTextResponse",
  3474. "content": {
  3475. "application/json": {
  3476. "schema": {
  3477. "$ref": "#/components/schemas/GenerateTextResponse"
  3478. }
  3479. }
  3480. }
  3481. },
  3482. "400": {
  3483. "description": "InvalidRequestError",
  3484. "content": {
  3485. "application/json": {
  3486. "schema": {
  3487. "anyOf": [
  3488. {
  3489. "$ref": "#/components/schemas/InvalidRequestError1"
  3490. },
  3491. {
  3492. "$ref": "#/components/schemas/InvalidRequestError"
  3493. }
  3494. ]
  3495. }
  3496. }
  3497. }
  3498. },
  3499. "401": {
  3500. "description": "UnauthorizedError",
  3501. "content": {
  3502. "application/json": {
  3503. "schema": {
  3504. "$ref": "#/components/schemas/UnauthorizedError"
  3505. }
  3506. }
  3507. }
  3508. },
  3509. "503": {
  3510. "description": "ServiceUnavailableError",
  3511. "content": {
  3512. "application/json": {
  3513. "schema": {
  3514. "$ref": "#/components/schemas/ServiceUnavailableError"
  3515. }
  3516. }
  3517. }
  3518. }
  3519. },
  3520. "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.",
  3521. "summary": "Generate text",
  3522. "requestBody": {
  3523. "content": {
  3524. "application/json": {
  3525. "schema": {
  3526. "type": "object",
  3527. "properties": {
  3528. "prompt": {
  3529. "type": "string"
  3530. },
  3531. "model": {
  3532. "anyOf": [
  3533. {
  3534. "$ref": "#/components/schemas/Model.Ref"
  3535. },
  3536. {
  3537. "type": "null"
  3538. }
  3539. ]
  3540. }
  3541. },
  3542. "required": [
  3543. "prompt"
  3544. ],
  3545. "additionalProperties": false
  3546. }
  3547. }
  3548. },
  3549. "required": true
  3550. }
  3551. }
  3552. },
  3553. "/api/provider": {
  3554. "get": {
  3555. "tags": [
  3556. "providers"
  3557. ],
  3558. "operationId": "v2.provider.list",
  3559. "parameters": [
  3560. {
  3561. "name": "location",
  3562. "in": "query",
  3563. "schema": {
  3564. "anyOf": [
  3565. {
  3566. "type": "object",
  3567. "properties": {
  3568. "directory": {
  3569. "anyOf": [
  3570. {
  3571. "type": "string"
  3572. },
  3573. {
  3574. "type": "null"
  3575. }
  3576. ]
  3577. },
  3578. "workspace": {
  3579. "anyOf": [
  3580. {
  3581. "type": "string"
  3582. },
  3583. {
  3584. "type": "null"
  3585. }
  3586. ]
  3587. }
  3588. },
  3589. "additionalProperties": false
  3590. },
  3591. {
  3592. "type": "null"
  3593. }
  3594. ]
  3595. },
  3596. "required": false,
  3597. "style": "deepObject",
  3598. "explode": true
  3599. }
  3600. ],
  3601. "security": [],
  3602. "responses": {
  3603. "200": {
  3604. "description": "Success",
  3605. "content": {
  3606. "application/json": {
  3607. "schema": {
  3608. "type": "object",
  3609. "properties": {
  3610. "location": {
  3611. "$ref": "#/components/schemas/Location.Info"
  3612. },
  3613. "data": {
  3614. "type": "array",
  3615. "items": {
  3616. "$ref": "#/components/schemas/ProviderV2.Info"
  3617. }
  3618. }
  3619. },
  3620. "required": [
  3621. "location",
  3622. "data"
  3623. ],
  3624. "additionalProperties": false
  3625. }
  3626. }
  3627. }
  3628. },
  3629. "400": {
  3630. "description": "InvalidRequestError",
  3631. "content": {
  3632. "application/json": {
  3633. "schema": {
  3634. "$ref": "#/components/schemas/InvalidRequestError"
  3635. }
  3636. }
  3637. }
  3638. },
  3639. "401": {
  3640. "description": "UnauthorizedError",
  3641. "content": {
  3642. "application/json": {
  3643. "schema": {
  3644. "$ref": "#/components/schemas/UnauthorizedError"
  3645. }
  3646. }
  3647. }
  3648. },
  3649. "503": {
  3650. "description": "ServiceUnavailableError",
  3651. "content": {
  3652. "application/json": {
  3653. "schema": {
  3654. "$ref": "#/components/schemas/ServiceUnavailableError"
  3655. }
  3656. }
  3657. }
  3658. }
  3659. },
  3660. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  3661. "summary": "List providers"
  3662. }
  3663. },
  3664. "/api/provider/{providerID}": {
  3665. "get": {
  3666. "tags": [
  3667. "providers"
  3668. ],
  3669. "operationId": "v2.provider.get",
  3670. "parameters": [
  3671. {
  3672. "name": "providerID",
  3673. "in": "path",
  3674. "schema": {
  3675. "type": "string"
  3676. },
  3677. "required": true
  3678. },
  3679. {
  3680. "name": "location",
  3681. "in": "query",
  3682. "schema": {
  3683. "anyOf": [
  3684. {
  3685. "type": "object",
  3686. "properties": {
  3687. "directory": {
  3688. "anyOf": [
  3689. {
  3690. "type": "string"
  3691. },
  3692. {
  3693. "type": "null"
  3694. }
  3695. ]
  3696. },
  3697. "workspace": {
  3698. "anyOf": [
  3699. {
  3700. "type": "string"
  3701. },
  3702. {
  3703. "type": "null"
  3704. }
  3705. ]
  3706. }
  3707. },
  3708. "additionalProperties": false
  3709. },
  3710. {
  3711. "type": "null"
  3712. }
  3713. ]
  3714. },
  3715. "required": false,
  3716. "style": "deepObject",
  3717. "explode": true
  3718. }
  3719. ],
  3720. "security": [],
  3721. "responses": {
  3722. "200": {
  3723. "description": "Success",
  3724. "content": {
  3725. "application/json": {
  3726. "schema": {
  3727. "type": "object",
  3728. "properties": {
  3729. "location": {
  3730. "$ref": "#/components/schemas/Location.Info"
  3731. },
  3732. "data": {
  3733. "$ref": "#/components/schemas/ProviderV2.Info"
  3734. }
  3735. },
  3736. "required": [
  3737. "location",
  3738. "data"
  3739. ],
  3740. "additionalProperties": false
  3741. }
  3742. }
  3743. }
  3744. },
  3745. "400": {
  3746. "description": "InvalidRequestError",
  3747. "content": {
  3748. "application/json": {
  3749. "schema": {
  3750. "$ref": "#/components/schemas/InvalidRequestError"
  3751. }
  3752. }
  3753. }
  3754. },
  3755. "401": {
  3756. "description": "UnauthorizedError",
  3757. "content": {
  3758. "application/json": {
  3759. "schema": {
  3760. "$ref": "#/components/schemas/UnauthorizedError"
  3761. }
  3762. }
  3763. }
  3764. },
  3765. "404": {
  3766. "description": "ProviderNotFoundError",
  3767. "content": {
  3768. "application/json": {
  3769. "schema": {
  3770. "$ref": "#/components/schemas/ProviderNotFoundError"
  3771. }
  3772. }
  3773. }
  3774. },
  3775. "503": {
  3776. "description": "ServiceUnavailableError",
  3777. "content": {
  3778. "application/json": {
  3779. "schema": {
  3780. "$ref": "#/components/schemas/ServiceUnavailableError"
  3781. }
  3782. }
  3783. }
  3784. }
  3785. },
  3786. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  3787. "summary": "Get provider"
  3788. }
  3789. },
  3790. "/api/integration": {
  3791. "get": {
  3792. "tags": [
  3793. "integrations"
  3794. ],
  3795. "operationId": "v2.integration.list",
  3796. "parameters": [
  3797. {
  3798. "name": "location",
  3799. "in": "query",
  3800. "schema": {
  3801. "anyOf": [
  3802. {
  3803. "type": "object",
  3804. "properties": {
  3805. "directory": {
  3806. "anyOf": [
  3807. {
  3808. "type": "string"
  3809. },
  3810. {
  3811. "type": "null"
  3812. }
  3813. ]
  3814. },
  3815. "workspace": {
  3816. "anyOf": [
  3817. {
  3818. "type": "string"
  3819. },
  3820. {
  3821. "type": "null"
  3822. }
  3823. ]
  3824. }
  3825. },
  3826. "additionalProperties": false
  3827. },
  3828. {
  3829. "type": "null"
  3830. }
  3831. ]
  3832. },
  3833. "required": false,
  3834. "style": "deepObject",
  3835. "explode": true
  3836. }
  3837. ],
  3838. "security": [],
  3839. "responses": {
  3840. "200": {
  3841. "description": "Success",
  3842. "content": {
  3843. "application/json": {
  3844. "schema": {
  3845. "type": "object",
  3846. "properties": {
  3847. "location": {
  3848. "$ref": "#/components/schemas/Location.Info"
  3849. },
  3850. "data": {
  3851. "type": "array",
  3852. "items": {
  3853. "$ref": "#/components/schemas/Integration.Info"
  3854. }
  3855. }
  3856. },
  3857. "required": [
  3858. "location",
  3859. "data"
  3860. ],
  3861. "additionalProperties": false
  3862. }
  3863. }
  3864. }
  3865. },
  3866. "400": {
  3867. "description": "InvalidRequestError",
  3868. "content": {
  3869. "application/json": {
  3870. "schema": {
  3871. "$ref": "#/components/schemas/InvalidRequestError"
  3872. }
  3873. }
  3874. }
  3875. },
  3876. "401": {
  3877. "description": "UnauthorizedError",
  3878. "content": {
  3879. "application/json": {
  3880. "schema": {
  3881. "$ref": "#/components/schemas/UnauthorizedError"
  3882. }
  3883. }
  3884. }
  3885. }
  3886. },
  3887. "description": "Retrieve available integrations and their authentication methods.",
  3888. "summary": "List integrations"
  3889. }
  3890. },
  3891. "/api/integration/{integrationID}": {
  3892. "get": {
  3893. "tags": [
  3894. "integrations"
  3895. ],
  3896. "operationId": "v2.integration.get",
  3897. "parameters": [
  3898. {
  3899. "name": "integrationID",
  3900. "in": "path",
  3901. "schema": {
  3902. "type": "string"
  3903. },
  3904. "required": true
  3905. },
  3906. {
  3907. "name": "location",
  3908. "in": "query",
  3909. "schema": {
  3910. "anyOf": [
  3911. {
  3912. "type": "object",
  3913. "properties": {
  3914. "directory": {
  3915. "anyOf": [
  3916. {
  3917. "type": "string"
  3918. },
  3919. {
  3920. "type": "null"
  3921. }
  3922. ]
  3923. },
  3924. "workspace": {
  3925. "anyOf": [
  3926. {
  3927. "type": "string"
  3928. },
  3929. {
  3930. "type": "null"
  3931. }
  3932. ]
  3933. }
  3934. },
  3935. "additionalProperties": false
  3936. },
  3937. {
  3938. "type": "null"
  3939. }
  3940. ]
  3941. },
  3942. "required": false,
  3943. "style": "deepObject",
  3944. "explode": true
  3945. }
  3946. ],
  3947. "security": [],
  3948. "responses": {
  3949. "200": {
  3950. "description": "Success",
  3951. "content": {
  3952. "application/json": {
  3953. "schema": {
  3954. "type": "object",
  3955. "properties": {
  3956. "location": {
  3957. "$ref": "#/components/schemas/Location.Info"
  3958. },
  3959. "data": {
  3960. "anyOf": [
  3961. {
  3962. "$ref": "#/components/schemas/Integration.Info"
  3963. },
  3964. {
  3965. "type": "null"
  3966. }
  3967. ]
  3968. }
  3969. },
  3970. "required": [
  3971. "location",
  3972. "data"
  3973. ],
  3974. "additionalProperties": false
  3975. }
  3976. }
  3977. }
  3978. },
  3979. "400": {
  3980. "description": "InvalidRequestError",
  3981. "content": {
  3982. "application/json": {
  3983. "schema": {
  3984. "$ref": "#/components/schemas/InvalidRequestError"
  3985. }
  3986. }
  3987. }
  3988. },
  3989. "401": {
  3990. "description": "UnauthorizedError",
  3991. "content": {
  3992. "application/json": {
  3993. "schema": {
  3994. "$ref": "#/components/schemas/UnauthorizedError"
  3995. }
  3996. }
  3997. }
  3998. }
  3999. },
  4000. "description": "Retrieve one integration and its authentication methods.",
  4001. "summary": "Get integration"
  4002. }
  4003. },
  4004. "/api/integration/{integrationID}/connect/key": {
  4005. "post": {
  4006. "tags": [
  4007. "integrations"
  4008. ],
  4009. "operationId": "v2.integration.connect.key",
  4010. "parameters": [
  4011. {
  4012. "name": "integrationID",
  4013. "in": "path",
  4014. "schema": {
  4015. "type": "string"
  4016. },
  4017. "required": true
  4018. },
  4019. {
  4020. "name": "location",
  4021. "in": "query",
  4022. "schema": {
  4023. "anyOf": [
  4024. {
  4025. "type": "object",
  4026. "properties": {
  4027. "directory": {
  4028. "anyOf": [
  4029. {
  4030. "type": "string"
  4031. },
  4032. {
  4033. "type": "null"
  4034. }
  4035. ]
  4036. },
  4037. "workspace": {
  4038. "anyOf": [
  4039. {
  4040. "type": "string"
  4041. },
  4042. {
  4043. "type": "null"
  4044. }
  4045. ]
  4046. }
  4047. },
  4048. "additionalProperties": false
  4049. },
  4050. {
  4051. "type": "null"
  4052. }
  4053. ]
  4054. },
  4055. "required": false,
  4056. "style": "deepObject",
  4057. "explode": true
  4058. }
  4059. ],
  4060. "security": [],
  4061. "responses": {
  4062. "204": {
  4063. "description": "<No Content>"
  4064. },
  4065. "400": {
  4066. "description": "InvalidRequestError",
  4067. "content": {
  4068. "application/json": {
  4069. "schema": {
  4070. "anyOf": [
  4071. {
  4072. "$ref": "#/components/schemas/InvalidRequestError1"
  4073. },
  4074. {
  4075. "$ref": "#/components/schemas/InvalidRequestError"
  4076. }
  4077. ]
  4078. }
  4079. }
  4080. }
  4081. },
  4082. "401": {
  4083. "description": "UnauthorizedError",
  4084. "content": {
  4085. "application/json": {
  4086. "schema": {
  4087. "$ref": "#/components/schemas/UnauthorizedError"
  4088. }
  4089. }
  4090. }
  4091. }
  4092. },
  4093. "description": "Run a key authentication method and store the resulting credential.",
  4094. "summary": "Connect with key",
  4095. "requestBody": {
  4096. "content": {
  4097. "application/json": {
  4098. "schema": {
  4099. "type": "object",
  4100. "properties": {
  4101. "key": {
  4102. "type": "string"
  4103. },
  4104. "label": {
  4105. "anyOf": [
  4106. {
  4107. "type": "string"
  4108. },
  4109. {
  4110. "type": "null"
  4111. }
  4112. ]
  4113. }
  4114. },
  4115. "required": [
  4116. "key"
  4117. ],
  4118. "additionalProperties": false
  4119. }
  4120. }
  4121. },
  4122. "required": true
  4123. }
  4124. }
  4125. },
  4126. "/api/integration/{integrationID}/connect/oauth": {
  4127. "post": {
  4128. "tags": [
  4129. "integrations"
  4130. ],
  4131. "operationId": "v2.integration.connect.oauth",
  4132. "parameters": [
  4133. {
  4134. "name": "integrationID",
  4135. "in": "path",
  4136. "schema": {
  4137. "type": "string"
  4138. },
  4139. "required": true
  4140. },
  4141. {
  4142. "name": "location",
  4143. "in": "query",
  4144. "schema": {
  4145. "anyOf": [
  4146. {
  4147. "type": "object",
  4148. "properties": {
  4149. "directory": {
  4150. "anyOf": [
  4151. {
  4152. "type": "string"
  4153. },
  4154. {
  4155. "type": "null"
  4156. }
  4157. ]
  4158. },
  4159. "workspace": {
  4160. "anyOf": [
  4161. {
  4162. "type": "string"
  4163. },
  4164. {
  4165. "type": "null"
  4166. }
  4167. ]
  4168. }
  4169. },
  4170. "additionalProperties": false
  4171. },
  4172. {
  4173. "type": "null"
  4174. }
  4175. ]
  4176. },
  4177. "required": false,
  4178. "style": "deepObject",
  4179. "explode": true
  4180. }
  4181. ],
  4182. "security": [],
  4183. "responses": {
  4184. "200": {
  4185. "description": "Success",
  4186. "content": {
  4187. "application/json": {
  4188. "schema": {
  4189. "type": "object",
  4190. "properties": {
  4191. "location": {
  4192. "$ref": "#/components/schemas/Location.Info"
  4193. },
  4194. "data": {
  4195. "$ref": "#/components/schemas/Integration.Attempt"
  4196. }
  4197. },
  4198. "required": [
  4199. "location",
  4200. "data"
  4201. ],
  4202. "additionalProperties": false
  4203. }
  4204. }
  4205. }
  4206. },
  4207. "400": {
  4208. "description": "InvalidRequestError",
  4209. "content": {
  4210. "application/json": {
  4211. "schema": {
  4212. "anyOf": [
  4213. {
  4214. "$ref": "#/components/schemas/InvalidRequestError1"
  4215. },
  4216. {
  4217. "$ref": "#/components/schemas/InvalidRequestError"
  4218. }
  4219. ]
  4220. }
  4221. }
  4222. }
  4223. },
  4224. "401": {
  4225. "description": "UnauthorizedError",
  4226. "content": {
  4227. "application/json": {
  4228. "schema": {
  4229. "$ref": "#/components/schemas/UnauthorizedError"
  4230. }
  4231. }
  4232. }
  4233. }
  4234. },
  4235. "description": "Start an OAuth attempt and return the authorization details.",
  4236. "summary": "Begin OAuth connection",
  4237. "requestBody": {
  4238. "content": {
  4239. "application/json": {
  4240. "schema": {
  4241. "type": "object",
  4242. "properties": {
  4243. "methodID": {
  4244. "type": "string"
  4245. },
  4246. "inputs": {
  4247. "type": "object",
  4248. "additionalProperties": {
  4249. "type": "string"
  4250. }
  4251. },
  4252. "label": {
  4253. "anyOf": [
  4254. {
  4255. "type": "string"
  4256. },
  4257. {
  4258. "type": "null"
  4259. }
  4260. ]
  4261. }
  4262. },
  4263. "required": [
  4264. "methodID",
  4265. "inputs"
  4266. ],
  4267. "additionalProperties": false
  4268. }
  4269. }
  4270. },
  4271. "required": true
  4272. }
  4273. }
  4274. },
  4275. "/api/integration/attempt/{attemptID}": {
  4276. "get": {
  4277. "tags": [
  4278. "integrations"
  4279. ],
  4280. "operationId": "v2.integration.attempt.status",
  4281. "parameters": [
  4282. {
  4283. "name": "attemptID",
  4284. "in": "path",
  4285. "schema": {
  4286. "type": "string"
  4287. },
  4288. "required": true
  4289. },
  4290. {
  4291. "name": "location",
  4292. "in": "query",
  4293. "schema": {
  4294. "anyOf": [
  4295. {
  4296. "type": "object",
  4297. "properties": {
  4298. "directory": {
  4299. "anyOf": [
  4300. {
  4301. "type": "string"
  4302. },
  4303. {
  4304. "type": "null"
  4305. }
  4306. ]
  4307. },
  4308. "workspace": {
  4309. "anyOf": [
  4310. {
  4311. "type": "string"
  4312. },
  4313. {
  4314. "type": "null"
  4315. }
  4316. ]
  4317. }
  4318. },
  4319. "additionalProperties": false
  4320. },
  4321. {
  4322. "type": "null"
  4323. }
  4324. ]
  4325. },
  4326. "required": false,
  4327. "style": "deepObject",
  4328. "explode": true
  4329. }
  4330. ],
  4331. "security": [],
  4332. "responses": {
  4333. "200": {
  4334. "description": "Success",
  4335. "content": {
  4336. "application/json": {
  4337. "schema": {
  4338. "type": "object",
  4339. "properties": {
  4340. "location": {
  4341. "$ref": "#/components/schemas/Location.Info"
  4342. },
  4343. "data": {
  4344. "$ref": "#/components/schemas/Integration.AttemptStatus"
  4345. }
  4346. },
  4347. "required": [
  4348. "location",
  4349. "data"
  4350. ],
  4351. "additionalProperties": false
  4352. }
  4353. }
  4354. }
  4355. },
  4356. "400": {
  4357. "description": "InvalidRequestError",
  4358. "content": {
  4359. "application/json": {
  4360. "schema": {
  4361. "$ref": "#/components/schemas/InvalidRequestError"
  4362. }
  4363. }
  4364. }
  4365. },
  4366. "401": {
  4367. "description": "UnauthorizedError",
  4368. "content": {
  4369. "application/json": {
  4370. "schema": {
  4371. "$ref": "#/components/schemas/UnauthorizedError"
  4372. }
  4373. }
  4374. }
  4375. }
  4376. },
  4377. "description": "Poll the current status of an OAuth attempt.",
  4378. "summary": "Get OAuth attempt status"
  4379. },
  4380. "delete": {
  4381. "tags": [
  4382. "integrations"
  4383. ],
  4384. "operationId": "v2.integration.attempt.cancel",
  4385. "parameters": [
  4386. {
  4387. "name": "attemptID",
  4388. "in": "path",
  4389. "schema": {
  4390. "type": "string"
  4391. },
  4392. "required": true
  4393. },
  4394. {
  4395. "name": "location",
  4396. "in": "query",
  4397. "schema": {
  4398. "anyOf": [
  4399. {
  4400. "type": "object",
  4401. "properties": {
  4402. "directory": {
  4403. "anyOf": [
  4404. {
  4405. "type": "string"
  4406. },
  4407. {
  4408. "type": "null"
  4409. }
  4410. ]
  4411. },
  4412. "workspace": {
  4413. "anyOf": [
  4414. {
  4415. "type": "string"
  4416. },
  4417. {
  4418. "type": "null"
  4419. }
  4420. ]
  4421. }
  4422. },
  4423. "additionalProperties": false
  4424. },
  4425. {
  4426. "type": "null"
  4427. }
  4428. ]
  4429. },
  4430. "required": false,
  4431. "style": "deepObject",
  4432. "explode": true
  4433. }
  4434. ],
  4435. "security": [],
  4436. "responses": {
  4437. "204": {
  4438. "description": "<No Content>"
  4439. },
  4440. "400": {
  4441. "description": "InvalidRequestError",
  4442. "content": {
  4443. "application/json": {
  4444. "schema": {
  4445. "$ref": "#/components/schemas/InvalidRequestError"
  4446. }
  4447. }
  4448. }
  4449. },
  4450. "401": {
  4451. "description": "UnauthorizedError",
  4452. "content": {
  4453. "application/json": {
  4454. "schema": {
  4455. "$ref": "#/components/schemas/UnauthorizedError"
  4456. }
  4457. }
  4458. }
  4459. }
  4460. },
  4461. "description": "Cancel an OAuth attempt and release its resources.",
  4462. "summary": "Cancel OAuth connection"
  4463. }
  4464. },
  4465. "/api/integration/attempt/{attemptID}/complete": {
  4466. "post": {
  4467. "tags": [
  4468. "integrations"
  4469. ],
  4470. "operationId": "v2.integration.attempt.complete",
  4471. "parameters": [
  4472. {
  4473. "name": "attemptID",
  4474. "in": "path",
  4475. "schema": {
  4476. "type": "string"
  4477. },
  4478. "required": true
  4479. },
  4480. {
  4481. "name": "location",
  4482. "in": "query",
  4483. "schema": {
  4484. "anyOf": [
  4485. {
  4486. "type": "object",
  4487. "properties": {
  4488. "directory": {
  4489. "anyOf": [
  4490. {
  4491. "type": "string"
  4492. },
  4493. {
  4494. "type": "null"
  4495. }
  4496. ]
  4497. },
  4498. "workspace": {
  4499. "anyOf": [
  4500. {
  4501. "type": "string"
  4502. },
  4503. {
  4504. "type": "null"
  4505. }
  4506. ]
  4507. }
  4508. },
  4509. "additionalProperties": false
  4510. },
  4511. {
  4512. "type": "null"
  4513. }
  4514. ]
  4515. },
  4516. "required": false,
  4517. "style": "deepObject",
  4518. "explode": true
  4519. }
  4520. ],
  4521. "security": [],
  4522. "responses": {
  4523. "204": {
  4524. "description": "<No Content>"
  4525. },
  4526. "400": {
  4527. "description": "InvalidRequestError",
  4528. "content": {
  4529. "application/json": {
  4530. "schema": {
  4531. "anyOf": [
  4532. {
  4533. "$ref": "#/components/schemas/InvalidRequestError1"
  4534. },
  4535. {
  4536. "$ref": "#/components/schemas/InvalidRequestError"
  4537. }
  4538. ]
  4539. }
  4540. }
  4541. }
  4542. },
  4543. "401": {
  4544. "description": "UnauthorizedError",
  4545. "content": {
  4546. "application/json": {
  4547. "schema": {
  4548. "$ref": "#/components/schemas/UnauthorizedError"
  4549. }
  4550. }
  4551. }
  4552. }
  4553. },
  4554. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  4555. "summary": "Complete OAuth connection",
  4556. "requestBody": {
  4557. "content": {
  4558. "application/json": {
  4559. "schema": {
  4560. "type": "object",
  4561. "properties": {
  4562. "code": {
  4563. "anyOf": [
  4564. {
  4565. "type": "string"
  4566. },
  4567. {
  4568. "type": "null"
  4569. }
  4570. ]
  4571. }
  4572. },
  4573. "additionalProperties": false
  4574. }
  4575. }
  4576. },
  4577. "required": true
  4578. }
  4579. }
  4580. },
  4581. "/api/mcp": {
  4582. "get": {
  4583. "tags": [
  4584. "mcp"
  4585. ],
  4586. "operationId": "v2.mcp.list",
  4587. "parameters": [
  4588. {
  4589. "name": "location",
  4590. "in": "query",
  4591. "schema": {
  4592. "anyOf": [
  4593. {
  4594. "type": "object",
  4595. "properties": {
  4596. "directory": {
  4597. "anyOf": [
  4598. {
  4599. "type": "string"
  4600. },
  4601. {
  4602. "type": "null"
  4603. }
  4604. ]
  4605. },
  4606. "workspace": {
  4607. "anyOf": [
  4608. {
  4609. "type": "string"
  4610. },
  4611. {
  4612. "type": "null"
  4613. }
  4614. ]
  4615. }
  4616. },
  4617. "additionalProperties": false
  4618. },
  4619. {
  4620. "type": "null"
  4621. }
  4622. ]
  4623. },
  4624. "required": false,
  4625. "style": "deepObject",
  4626. "explode": true
  4627. }
  4628. ],
  4629. "security": [],
  4630. "responses": {
  4631. "200": {
  4632. "description": "Success",
  4633. "content": {
  4634. "application/json": {
  4635. "schema": {
  4636. "type": "object",
  4637. "properties": {
  4638. "location": {
  4639. "$ref": "#/components/schemas/Location.Info"
  4640. },
  4641. "data": {
  4642. "type": "array",
  4643. "items": {
  4644. "$ref": "#/components/schemas/Mcp.Server"
  4645. }
  4646. }
  4647. },
  4648. "required": [
  4649. "location",
  4650. "data"
  4651. ],
  4652. "additionalProperties": false
  4653. }
  4654. }
  4655. }
  4656. },
  4657. "400": {
  4658. "description": "InvalidRequestError",
  4659. "content": {
  4660. "application/json": {
  4661. "schema": {
  4662. "$ref": "#/components/schemas/InvalidRequestError"
  4663. }
  4664. }
  4665. }
  4666. },
  4667. "401": {
  4668. "description": "UnauthorizedError",
  4669. "content": {
  4670. "application/json": {
  4671. "schema": {
  4672. "$ref": "#/components/schemas/UnauthorizedError"
  4673. }
  4674. }
  4675. }
  4676. }
  4677. },
  4678. "description": "Retrieve configured MCP servers and their connection status.",
  4679. "summary": "List MCP servers"
  4680. }
  4681. },
  4682. "/api/credential/{credentialID}": {
  4683. "patch": {
  4684. "tags": [
  4685. "server.credential"
  4686. ],
  4687. "operationId": "v2.credential.update",
  4688. "parameters": [
  4689. {
  4690. "name": "credentialID",
  4691. "in": "path",
  4692. "schema": {
  4693. "type": "string"
  4694. },
  4695. "required": true
  4696. },
  4697. {
  4698. "name": "location",
  4699. "in": "query",
  4700. "schema": {
  4701. "anyOf": [
  4702. {
  4703. "type": "object",
  4704. "properties": {
  4705. "directory": {
  4706. "anyOf": [
  4707. {
  4708. "type": "string"
  4709. },
  4710. {
  4711. "type": "null"
  4712. }
  4713. ]
  4714. },
  4715. "workspace": {
  4716. "anyOf": [
  4717. {
  4718. "type": "string"
  4719. },
  4720. {
  4721. "type": "null"
  4722. }
  4723. ]
  4724. }
  4725. },
  4726. "additionalProperties": false
  4727. },
  4728. {
  4729. "type": "null"
  4730. }
  4731. ]
  4732. },
  4733. "required": false,
  4734. "style": "deepObject",
  4735. "explode": true
  4736. }
  4737. ],
  4738. "security": [],
  4739. "responses": {
  4740. "204": {
  4741. "description": "<No Content>"
  4742. },
  4743. "400": {
  4744. "description": "InvalidRequestError",
  4745. "content": {
  4746. "application/json": {
  4747. "schema": {
  4748. "$ref": "#/components/schemas/InvalidRequestError"
  4749. }
  4750. }
  4751. }
  4752. },
  4753. "401": {
  4754. "description": "UnauthorizedError",
  4755. "content": {
  4756. "application/json": {
  4757. "schema": {
  4758. "$ref": "#/components/schemas/UnauthorizedError"
  4759. }
  4760. }
  4761. }
  4762. }
  4763. },
  4764. "description": "Update a stored credential label.",
  4765. "summary": "Update credential",
  4766. "requestBody": {
  4767. "content": {
  4768. "application/json": {
  4769. "schema": {
  4770. "type": "object",
  4771. "properties": {
  4772. "label": {
  4773. "type": "string"
  4774. }
  4775. },
  4776. "required": [
  4777. "label"
  4778. ],
  4779. "additionalProperties": false
  4780. }
  4781. }
  4782. },
  4783. "required": true
  4784. }
  4785. },
  4786. "delete": {
  4787. "tags": [
  4788. "server.credential"
  4789. ],
  4790. "operationId": "v2.credential.remove",
  4791. "parameters": [
  4792. {
  4793. "name": "credentialID",
  4794. "in": "path",
  4795. "schema": {
  4796. "type": "string"
  4797. },
  4798. "required": true
  4799. },
  4800. {
  4801. "name": "location",
  4802. "in": "query",
  4803. "schema": {
  4804. "anyOf": [
  4805. {
  4806. "type": "object",
  4807. "properties": {
  4808. "directory": {
  4809. "anyOf": [
  4810. {
  4811. "type": "string"
  4812. },
  4813. {
  4814. "type": "null"
  4815. }
  4816. ]
  4817. },
  4818. "workspace": {
  4819. "anyOf": [
  4820. {
  4821. "type": "string"
  4822. },
  4823. {
  4824. "type": "null"
  4825. }
  4826. ]
  4827. }
  4828. },
  4829. "additionalProperties": false
  4830. },
  4831. {
  4832. "type": "null"
  4833. }
  4834. ]
  4835. },
  4836. "required": false,
  4837. "style": "deepObject",
  4838. "explode": true
  4839. }
  4840. ],
  4841. "security": [],
  4842. "responses": {
  4843. "204": {
  4844. "description": "<No Content>"
  4845. },
  4846. "400": {
  4847. "description": "InvalidRequestError",
  4848. "content": {
  4849. "application/json": {
  4850. "schema": {
  4851. "$ref": "#/components/schemas/InvalidRequestError"
  4852. }
  4853. }
  4854. }
  4855. },
  4856. "401": {
  4857. "description": "UnauthorizedError",
  4858. "content": {
  4859. "application/json": {
  4860. "schema": {
  4861. "$ref": "#/components/schemas/UnauthorizedError"
  4862. }
  4863. }
  4864. }
  4865. }
  4866. },
  4867. "description": "Remove a stored integration credential.",
  4868. "summary": "Remove credential"
  4869. }
  4870. },
  4871. "/api/project/current": {
  4872. "get": {
  4873. "tags": [
  4874. "projects"
  4875. ],
  4876. "operationId": "v2.project.current",
  4877. "parameters": [
  4878. {
  4879. "name": "location",
  4880. "in": "query",
  4881. "schema": {
  4882. "anyOf": [
  4883. {
  4884. "type": "object",
  4885. "properties": {
  4886. "directory": {
  4887. "anyOf": [
  4888. {
  4889. "type": "string"
  4890. },
  4891. {
  4892. "type": "null"
  4893. }
  4894. ]
  4895. },
  4896. "workspace": {
  4897. "anyOf": [
  4898. {
  4899. "type": "string"
  4900. },
  4901. {
  4902. "type": "null"
  4903. }
  4904. ]
  4905. }
  4906. },
  4907. "additionalProperties": false
  4908. },
  4909. {
  4910. "type": "null"
  4911. }
  4912. ]
  4913. },
  4914. "required": false,
  4915. "style": "deepObject",
  4916. "explode": true
  4917. }
  4918. ],
  4919. "security": [],
  4920. "responses": {
  4921. "200": {
  4922. "description": "Project.Current",
  4923. "content": {
  4924. "application/json": {
  4925. "schema": {
  4926. "$ref": "#/components/schemas/Project.Current"
  4927. }
  4928. }
  4929. }
  4930. },
  4931. "400": {
  4932. "description": "InvalidRequestError",
  4933. "content": {
  4934. "application/json": {
  4935. "schema": {
  4936. "$ref": "#/components/schemas/InvalidRequestError"
  4937. }
  4938. }
  4939. }
  4940. },
  4941. "401": {
  4942. "description": "UnauthorizedError",
  4943. "content": {
  4944. "application/json": {
  4945. "schema": {
  4946. "$ref": "#/components/schemas/UnauthorizedError"
  4947. }
  4948. }
  4949. }
  4950. }
  4951. },
  4952. "description": "Resolve the project for the requested location.",
  4953. "summary": "Get current project"
  4954. }
  4955. },
  4956. "/api/project/{projectID}/directories": {
  4957. "get": {
  4958. "tags": [
  4959. "projects"
  4960. ],
  4961. "operationId": "v2.project.directories",
  4962. "parameters": [
  4963. {
  4964. "name": "projectID",
  4965. "in": "path",
  4966. "schema": {
  4967. "type": "string"
  4968. },
  4969. "required": true
  4970. },
  4971. {
  4972. "name": "location",
  4973. "in": "query",
  4974. "schema": {
  4975. "anyOf": [
  4976. {
  4977. "type": "object",
  4978. "properties": {
  4979. "directory": {
  4980. "anyOf": [
  4981. {
  4982. "type": "string"
  4983. },
  4984. {
  4985. "type": "null"
  4986. }
  4987. ]
  4988. },
  4989. "workspace": {
  4990. "anyOf": [
  4991. {
  4992. "type": "string"
  4993. },
  4994. {
  4995. "type": "null"
  4996. }
  4997. ]
  4998. }
  4999. },
  5000. "additionalProperties": false
  5001. },
  5002. {
  5003. "type": "null"
  5004. }
  5005. ]
  5006. },
  5007. "required": false,
  5008. "style": "deepObject",
  5009. "explode": true
  5010. }
  5011. ],
  5012. "security": [],
  5013. "responses": {
  5014. "200": {
  5015. "description": "Project.Directories",
  5016. "content": {
  5017. "application/json": {
  5018. "schema": {
  5019. "$ref": "#/components/schemas/Project.Directories"
  5020. }
  5021. }
  5022. }
  5023. },
  5024. "400": {
  5025. "description": "InvalidRequestError",
  5026. "content": {
  5027. "application/json": {
  5028. "schema": {
  5029. "$ref": "#/components/schemas/InvalidRequestError"
  5030. }
  5031. }
  5032. }
  5033. },
  5034. "401": {
  5035. "description": "UnauthorizedError",
  5036. "content": {
  5037. "application/json": {
  5038. "schema": {
  5039. "$ref": "#/components/schemas/UnauthorizedError"
  5040. }
  5041. }
  5042. }
  5043. }
  5044. },
  5045. "description": "List known local absolute directories for a project.",
  5046. "summary": "List project directories"
  5047. }
  5048. },
  5049. "/api/form/request": {
  5050. "get": {
  5051. "tags": [
  5052. "forms"
  5053. ],
  5054. "operationId": "v2.form.request.list",
  5055. "parameters": [
  5056. {
  5057. "name": "location",
  5058. "in": "query",
  5059. "schema": {
  5060. "anyOf": [
  5061. {
  5062. "type": "object",
  5063. "properties": {
  5064. "directory": {
  5065. "anyOf": [
  5066. {
  5067. "type": "string"
  5068. },
  5069. {
  5070. "type": "null"
  5071. }
  5072. ]
  5073. },
  5074. "workspace": {
  5075. "anyOf": [
  5076. {
  5077. "type": "string"
  5078. },
  5079. {
  5080. "type": "null"
  5081. }
  5082. ]
  5083. }
  5084. },
  5085. "additionalProperties": false
  5086. },
  5087. {
  5088. "type": "null"
  5089. }
  5090. ]
  5091. },
  5092. "required": false,
  5093. "style": "deepObject",
  5094. "explode": true
  5095. }
  5096. ],
  5097. "security": [],
  5098. "responses": {
  5099. "200": {
  5100. "description": "Success",
  5101. "content": {
  5102. "application/json": {
  5103. "schema": {
  5104. "type": "object",
  5105. "properties": {
  5106. "location": {
  5107. "$ref": "#/components/schemas/Location.Info"
  5108. },
  5109. "data": {
  5110. "type": "array",
  5111. "items": {
  5112. "anyOf": [
  5113. {
  5114. "$ref": "#/components/schemas/Form.FormInfo"
  5115. },
  5116. {
  5117. "$ref": "#/components/schemas/Form.UrlInfo"
  5118. }
  5119. ]
  5120. }
  5121. }
  5122. },
  5123. "required": [
  5124. "location",
  5125. "data"
  5126. ],
  5127. "additionalProperties": false
  5128. }
  5129. }
  5130. }
  5131. },
  5132. "400": {
  5133. "description": "InvalidRequestError",
  5134. "content": {
  5135. "application/json": {
  5136. "schema": {
  5137. "$ref": "#/components/schemas/InvalidRequestError"
  5138. }
  5139. }
  5140. }
  5141. },
  5142. "401": {
  5143. "description": "UnauthorizedError",
  5144. "content": {
  5145. "application/json": {
  5146. "schema": {
  5147. "$ref": "#/components/schemas/UnauthorizedError"
  5148. }
  5149. }
  5150. }
  5151. }
  5152. },
  5153. "description": "Retrieve pending forms for a location.",
  5154. "summary": "List pending form requests"
  5155. }
  5156. },
  5157. "/api/session/{sessionID}/form": {
  5158. "get": {
  5159. "tags": [
  5160. "forms"
  5161. ],
  5162. "operationId": "v2.session.form.list",
  5163. "parameters": [
  5164. {
  5165. "name": "sessionID",
  5166. "in": "path",
  5167. "schema": {
  5168. "type": "string"
  5169. },
  5170. "required": true
  5171. }
  5172. ],
  5173. "security": [],
  5174. "responses": {
  5175. "200": {
  5176. "description": "Success",
  5177. "content": {
  5178. "application/json": {
  5179. "schema": {
  5180. "type": "object",
  5181. "properties": {
  5182. "data": {
  5183. "type": "array",
  5184. "items": {
  5185. "anyOf": [
  5186. {
  5187. "$ref": "#/components/schemas/Form.FormInfo"
  5188. },
  5189. {
  5190. "$ref": "#/components/schemas/Form.UrlInfo"
  5191. }
  5192. ]
  5193. }
  5194. }
  5195. },
  5196. "required": [
  5197. "data"
  5198. ],
  5199. "additionalProperties": false
  5200. }
  5201. }
  5202. }
  5203. },
  5204. "400": {
  5205. "description": "InvalidRequestError",
  5206. "content": {
  5207. "application/json": {
  5208. "schema": {
  5209. "$ref": "#/components/schemas/InvalidRequestError"
  5210. }
  5211. }
  5212. }
  5213. },
  5214. "401": {
  5215. "description": "UnauthorizedError",
  5216. "content": {
  5217. "application/json": {
  5218. "schema": {
  5219. "$ref": "#/components/schemas/UnauthorizedError"
  5220. }
  5221. }
  5222. }
  5223. },
  5224. "404": {
  5225. "description": "SessionNotFoundError",
  5226. "content": {
  5227. "application/json": {
  5228. "schema": {
  5229. "anyOf": [
  5230. {
  5231. "$ref": "#/components/schemas/SessionNotFoundError"
  5232. },
  5233. {
  5234. "$ref": "#/components/schemas/SessionNotFoundError"
  5235. }
  5236. ]
  5237. }
  5238. }
  5239. }
  5240. }
  5241. },
  5242. "description": "Retrieve pending forms for a session.",
  5243. "summary": "List session forms"
  5244. },
  5245. "post": {
  5246. "tags": [
  5247. "forms"
  5248. ],
  5249. "operationId": "v2.session.form.create",
  5250. "parameters": [
  5251. {
  5252. "name": "sessionID",
  5253. "in": "path",
  5254. "schema": {
  5255. "type": "string"
  5256. },
  5257. "required": true
  5258. }
  5259. ],
  5260. "security": [],
  5261. "responses": {
  5262. "200": {
  5263. "description": "Success",
  5264. "content": {
  5265. "application/json": {
  5266. "schema": {
  5267. "type": "object",
  5268. "properties": {
  5269. "data": {
  5270. "anyOf": [
  5271. {
  5272. "$ref": "#/components/schemas/Form.FormInfo"
  5273. },
  5274. {
  5275. "$ref": "#/components/schemas/Form.UrlInfo"
  5276. }
  5277. ]
  5278. }
  5279. },
  5280. "required": [
  5281. "data"
  5282. ],
  5283. "additionalProperties": false
  5284. }
  5285. }
  5286. }
  5287. },
  5288. "400": {
  5289. "description": "InvalidRequestError",
  5290. "content": {
  5291. "application/json": {
  5292. "schema": {
  5293. "anyOf": [
  5294. {
  5295. "$ref": "#/components/schemas/InvalidRequestError1"
  5296. },
  5297. {
  5298. "$ref": "#/components/schemas/InvalidRequestError"
  5299. }
  5300. ]
  5301. }
  5302. }
  5303. }
  5304. },
  5305. "401": {
  5306. "description": "UnauthorizedError",
  5307. "content": {
  5308. "application/json": {
  5309. "schema": {
  5310. "$ref": "#/components/schemas/UnauthorizedError"
  5311. }
  5312. }
  5313. }
  5314. },
  5315. "404": {
  5316. "description": "SessionNotFoundError",
  5317. "content": {
  5318. "application/json": {
  5319. "schema": {
  5320. "anyOf": [
  5321. {
  5322. "$ref": "#/components/schemas/SessionNotFoundError"
  5323. },
  5324. {
  5325. "$ref": "#/components/schemas/SessionNotFoundError"
  5326. }
  5327. ]
  5328. }
  5329. }
  5330. }
  5331. },
  5332. "409": {
  5333. "description": "ConflictError",
  5334. "content": {
  5335. "application/json": {
  5336. "schema": {
  5337. "$ref": "#/components/schemas/ConflictError"
  5338. }
  5339. }
  5340. }
  5341. }
  5342. },
  5343. "description": "Create a form for a session.",
  5344. "summary": "Create session form",
  5345. "requestBody": {
  5346. "content": {
  5347. "application/json": {
  5348. "schema": {
  5349. "$ref": "#/components/schemas/Form.CreatePayload"
  5350. }
  5351. }
  5352. },
  5353. "required": true
  5354. }
  5355. }
  5356. },
  5357. "/api/session/{sessionID}/form/{formID}": {
  5358. "get": {
  5359. "tags": [
  5360. "forms"
  5361. ],
  5362. "operationId": "v2.session.form.get",
  5363. "parameters": [
  5364. {
  5365. "name": "sessionID",
  5366. "in": "path",
  5367. "schema": {
  5368. "type": "string"
  5369. },
  5370. "required": true
  5371. },
  5372. {
  5373. "name": "formID",
  5374. "in": "path",
  5375. "schema": {
  5376. "type": "string",
  5377. "allOf": [
  5378. {
  5379. "pattern": "^frm_"
  5380. }
  5381. ]
  5382. },
  5383. "required": true
  5384. }
  5385. ],
  5386. "security": [],
  5387. "responses": {
  5388. "200": {
  5389. "description": "Success",
  5390. "content": {
  5391. "application/json": {
  5392. "schema": {
  5393. "type": "object",
  5394. "properties": {
  5395. "data": {
  5396. "anyOf": [
  5397. {
  5398. "$ref": "#/components/schemas/Form.FormInfo"
  5399. },
  5400. {
  5401. "$ref": "#/components/schemas/Form.UrlInfo"
  5402. }
  5403. ]
  5404. }
  5405. },
  5406. "required": [
  5407. "data"
  5408. ],
  5409. "additionalProperties": false
  5410. }
  5411. }
  5412. }
  5413. },
  5414. "400": {
  5415. "description": "InvalidRequestError",
  5416. "content": {
  5417. "application/json": {
  5418. "schema": {
  5419. "$ref": "#/components/schemas/InvalidRequestError"
  5420. }
  5421. }
  5422. }
  5423. },
  5424. "401": {
  5425. "description": "UnauthorizedError",
  5426. "content": {
  5427. "application/json": {
  5428. "schema": {
  5429. "$ref": "#/components/schemas/UnauthorizedError"
  5430. }
  5431. }
  5432. }
  5433. },
  5434. "404": {
  5435. "description": "SessionNotFoundError | FormNotFoundError",
  5436. "content": {
  5437. "application/json": {
  5438. "schema": {
  5439. "anyOf": [
  5440. {
  5441. "$ref": "#/components/schemas/FormNotFoundError"
  5442. },
  5443. {
  5444. "$ref": "#/components/schemas/SessionNotFoundError"
  5445. },
  5446. {
  5447. "$ref": "#/components/schemas/SessionNotFoundError"
  5448. }
  5449. ]
  5450. }
  5451. }
  5452. }
  5453. }
  5454. },
  5455. "description": "Retrieve a form for a session.",
  5456. "summary": "Get session form"
  5457. }
  5458. },
  5459. "/api/session/{sessionID}/form/{formID}/state": {
  5460. "get": {
  5461. "tags": [
  5462. "forms"
  5463. ],
  5464. "operationId": "v2.session.form.state",
  5465. "parameters": [
  5466. {
  5467. "name": "sessionID",
  5468. "in": "path",
  5469. "schema": {
  5470. "type": "string"
  5471. },
  5472. "required": true
  5473. },
  5474. {
  5475. "name": "formID",
  5476. "in": "path",
  5477. "schema": {
  5478. "type": "string",
  5479. "allOf": [
  5480. {
  5481. "pattern": "^frm_"
  5482. }
  5483. ]
  5484. },
  5485. "required": true
  5486. }
  5487. ],
  5488. "security": [],
  5489. "responses": {
  5490. "200": {
  5491. "description": "Success",
  5492. "content": {
  5493. "application/json": {
  5494. "schema": {
  5495. "type": "object",
  5496. "properties": {
  5497. "data": {
  5498. "$ref": "#/components/schemas/Form.State"
  5499. }
  5500. },
  5501. "required": [
  5502. "data"
  5503. ],
  5504. "additionalProperties": false
  5505. }
  5506. }
  5507. }
  5508. },
  5509. "400": {
  5510. "description": "InvalidRequestError",
  5511. "content": {
  5512. "application/json": {
  5513. "schema": {
  5514. "$ref": "#/components/schemas/InvalidRequestError"
  5515. }
  5516. }
  5517. }
  5518. },
  5519. "401": {
  5520. "description": "UnauthorizedError",
  5521. "content": {
  5522. "application/json": {
  5523. "schema": {
  5524. "$ref": "#/components/schemas/UnauthorizedError"
  5525. }
  5526. }
  5527. }
  5528. },
  5529. "404": {
  5530. "description": "SessionNotFoundError | FormNotFoundError",
  5531. "content": {
  5532. "application/json": {
  5533. "schema": {
  5534. "anyOf": [
  5535. {
  5536. "$ref": "#/components/schemas/FormNotFoundError"
  5537. },
  5538. {
  5539. "$ref": "#/components/schemas/SessionNotFoundError"
  5540. },
  5541. {
  5542. "$ref": "#/components/schemas/SessionNotFoundError"
  5543. }
  5544. ]
  5545. }
  5546. }
  5547. }
  5548. }
  5549. },
  5550. "description": "Retrieve the current state for a form.",
  5551. "summary": "Get form state"
  5552. }
  5553. },
  5554. "/api/session/{sessionID}/form/{formID}/reply": {
  5555. "post": {
  5556. "tags": [
  5557. "forms"
  5558. ],
  5559. "operationId": "v2.session.form.reply",
  5560. "parameters": [
  5561. {
  5562. "name": "sessionID",
  5563. "in": "path",
  5564. "schema": {
  5565. "type": "string"
  5566. },
  5567. "required": true
  5568. },
  5569. {
  5570. "name": "formID",
  5571. "in": "path",
  5572. "schema": {
  5573. "type": "string",
  5574. "allOf": [
  5575. {
  5576. "pattern": "^frm_"
  5577. }
  5578. ]
  5579. },
  5580. "required": true
  5581. }
  5582. ],
  5583. "security": [],
  5584. "responses": {
  5585. "204": {
  5586. "description": "<No Content>"
  5587. },
  5588. "400": {
  5589. "description": "FormInvalidAnswerError | InvalidRequestError",
  5590. "content": {
  5591. "application/json": {
  5592. "schema": {
  5593. "anyOf": [
  5594. {
  5595. "$ref": "#/components/schemas/FormInvalidAnswerError"
  5596. },
  5597. {
  5598. "$ref": "#/components/schemas/InvalidRequestError"
  5599. }
  5600. ]
  5601. }
  5602. }
  5603. }
  5604. },
  5605. "401": {
  5606. "description": "UnauthorizedError",
  5607. "content": {
  5608. "application/json": {
  5609. "schema": {
  5610. "$ref": "#/components/schemas/UnauthorizedError"
  5611. }
  5612. }
  5613. }
  5614. },
  5615. "404": {
  5616. "description": "SessionNotFoundError | FormNotFoundError",
  5617. "content": {
  5618. "application/json": {
  5619. "schema": {
  5620. "anyOf": [
  5621. {
  5622. "$ref": "#/components/schemas/FormNotFoundError"
  5623. },
  5624. {
  5625. "$ref": "#/components/schemas/SessionNotFoundError"
  5626. },
  5627. {
  5628. "$ref": "#/components/schemas/SessionNotFoundError"
  5629. }
  5630. ]
  5631. }
  5632. }
  5633. }
  5634. },
  5635. "409": {
  5636. "description": "FormAlreadySettledError",
  5637. "content": {
  5638. "application/json": {
  5639. "schema": {
  5640. "$ref": "#/components/schemas/FormAlreadySettledError"
  5641. }
  5642. }
  5643. }
  5644. }
  5645. },
  5646. "description": "Submit an answer to a pending form.",
  5647. "summary": "Reply to form",
  5648. "requestBody": {
  5649. "content": {
  5650. "application/json": {
  5651. "schema": {
  5652. "$ref": "#/components/schemas/Form.Reply"
  5653. }
  5654. }
  5655. },
  5656. "required": true
  5657. }
  5658. }
  5659. },
  5660. "/api/session/{sessionID}/form/{formID}/cancel": {
  5661. "post": {
  5662. "tags": [
  5663. "forms"
  5664. ],
  5665. "operationId": "v2.session.form.cancel",
  5666. "parameters": [
  5667. {
  5668. "name": "sessionID",
  5669. "in": "path",
  5670. "schema": {
  5671. "type": "string"
  5672. },
  5673. "required": true
  5674. },
  5675. {
  5676. "name": "formID",
  5677. "in": "path",
  5678. "schema": {
  5679. "type": "string",
  5680. "allOf": [
  5681. {
  5682. "pattern": "^frm_"
  5683. }
  5684. ]
  5685. },
  5686. "required": true
  5687. }
  5688. ],
  5689. "security": [],
  5690. "responses": {
  5691. "204": {
  5692. "description": "<No Content>"
  5693. },
  5694. "400": {
  5695. "description": "InvalidRequestError",
  5696. "content": {
  5697. "application/json": {
  5698. "schema": {
  5699. "$ref": "#/components/schemas/InvalidRequestError"
  5700. }
  5701. }
  5702. }
  5703. },
  5704. "401": {
  5705. "description": "UnauthorizedError",
  5706. "content": {
  5707. "application/json": {
  5708. "schema": {
  5709. "$ref": "#/components/schemas/UnauthorizedError"
  5710. }
  5711. }
  5712. }
  5713. },
  5714. "404": {
  5715. "description": "SessionNotFoundError | FormNotFoundError",
  5716. "content": {
  5717. "application/json": {
  5718. "schema": {
  5719. "anyOf": [
  5720. {
  5721. "$ref": "#/components/schemas/FormNotFoundError"
  5722. },
  5723. {
  5724. "$ref": "#/components/schemas/SessionNotFoundError"
  5725. },
  5726. {
  5727. "$ref": "#/components/schemas/SessionNotFoundError"
  5728. }
  5729. ]
  5730. }
  5731. }
  5732. }
  5733. },
  5734. "409": {
  5735. "description": "FormAlreadySettledError",
  5736. "content": {
  5737. "application/json": {
  5738. "schema": {
  5739. "$ref": "#/components/schemas/FormAlreadySettledError"
  5740. }
  5741. }
  5742. }
  5743. }
  5744. },
  5745. "description": "Cancel a pending form.",
  5746. "summary": "Cancel form"
  5747. }
  5748. },
  5749. "/api/permission/request": {
  5750. "get": {
  5751. "tags": [
  5752. "permissions"
  5753. ],
  5754. "operationId": "v2.permission.request.list",
  5755. "parameters": [
  5756. {
  5757. "name": "location",
  5758. "in": "query",
  5759. "schema": {
  5760. "anyOf": [
  5761. {
  5762. "type": "object",
  5763. "properties": {
  5764. "directory": {
  5765. "anyOf": [
  5766. {
  5767. "type": "string"
  5768. },
  5769. {
  5770. "type": "null"
  5771. }
  5772. ]
  5773. },
  5774. "workspace": {
  5775. "anyOf": [
  5776. {
  5777. "type": "string"
  5778. },
  5779. {
  5780. "type": "null"
  5781. }
  5782. ]
  5783. }
  5784. },
  5785. "additionalProperties": false
  5786. },
  5787. {
  5788. "type": "null"
  5789. }
  5790. ]
  5791. },
  5792. "required": false,
  5793. "style": "deepObject",
  5794. "explode": true
  5795. }
  5796. ],
  5797. "security": [],
  5798. "responses": {
  5799. "200": {
  5800. "description": "Success",
  5801. "content": {
  5802. "application/json": {
  5803. "schema": {
  5804. "type": "object",
  5805. "properties": {
  5806. "location": {
  5807. "$ref": "#/components/schemas/Location.Info"
  5808. },
  5809. "data": {
  5810. "type": "array",
  5811. "items": {
  5812. "$ref": "#/components/schemas/PermissionV2.Request"
  5813. }
  5814. }
  5815. },
  5816. "required": [
  5817. "location",
  5818. "data"
  5819. ],
  5820. "additionalProperties": false
  5821. }
  5822. }
  5823. }
  5824. },
  5825. "400": {
  5826. "description": "InvalidRequestError",
  5827. "content": {
  5828. "application/json": {
  5829. "schema": {
  5830. "$ref": "#/components/schemas/InvalidRequestError"
  5831. }
  5832. }
  5833. }
  5834. },
  5835. "401": {
  5836. "description": "UnauthorizedError",
  5837. "content": {
  5838. "application/json": {
  5839. "schema": {
  5840. "$ref": "#/components/schemas/UnauthorizedError"
  5841. }
  5842. }
  5843. }
  5844. }
  5845. },
  5846. "description": "Retrieve pending permission requests for a location.",
  5847. "summary": "List pending permission requests"
  5848. }
  5849. },
  5850. "/api/permission/saved": {
  5851. "get": {
  5852. "tags": [
  5853. "permissions"
  5854. ],
  5855. "operationId": "v2.permission.saved.list",
  5856. "parameters": [
  5857. {
  5858. "name": "projectID",
  5859. "in": "query",
  5860. "schema": {
  5861. "anyOf": [
  5862. {
  5863. "type": "string"
  5864. },
  5865. {
  5866. "type": "null"
  5867. }
  5868. ]
  5869. },
  5870. "required": false
  5871. }
  5872. ],
  5873. "security": [],
  5874. "responses": {
  5875. "200": {
  5876. "description": "Success",
  5877. "content": {
  5878. "application/json": {
  5879. "schema": {
  5880. "type": "object",
  5881. "properties": {
  5882. "data": {
  5883. "type": "array",
  5884. "items": {
  5885. "$ref": "#/components/schemas/PermissionSaved.Info"
  5886. }
  5887. }
  5888. },
  5889. "required": [
  5890. "data"
  5891. ],
  5892. "additionalProperties": false
  5893. }
  5894. }
  5895. }
  5896. },
  5897. "400": {
  5898. "description": "InvalidRequestError",
  5899. "content": {
  5900. "application/json": {
  5901. "schema": {
  5902. "$ref": "#/components/schemas/InvalidRequestError"
  5903. }
  5904. }
  5905. }
  5906. },
  5907. "401": {
  5908. "description": "UnauthorizedError",
  5909. "content": {
  5910. "application/json": {
  5911. "schema": {
  5912. "$ref": "#/components/schemas/UnauthorizedError"
  5913. }
  5914. }
  5915. }
  5916. }
  5917. },
  5918. "description": "Retrieve saved permissions, optionally filtered by project.",
  5919. "summary": "List saved permissions"
  5920. }
  5921. },
  5922. "/api/permission/saved/{id}": {
  5923. "delete": {
  5924. "tags": [
  5925. "permissions"
  5926. ],
  5927. "operationId": "v2.permission.saved.remove",
  5928. "parameters": [
  5929. {
  5930. "name": "id",
  5931. "in": "path",
  5932. "schema": {
  5933. "type": "string"
  5934. },
  5935. "required": true
  5936. }
  5937. ],
  5938. "security": [],
  5939. "responses": {
  5940. "204": {
  5941. "description": "<No Content>"
  5942. },
  5943. "400": {
  5944. "description": "InvalidRequestError",
  5945. "content": {
  5946. "application/json": {
  5947. "schema": {
  5948. "$ref": "#/components/schemas/InvalidRequestError"
  5949. }
  5950. }
  5951. }
  5952. },
  5953. "401": {
  5954. "description": "UnauthorizedError",
  5955. "content": {
  5956. "application/json": {
  5957. "schema": {
  5958. "$ref": "#/components/schemas/UnauthorizedError"
  5959. }
  5960. }
  5961. }
  5962. }
  5963. },
  5964. "description": "Remove a saved permission by ID.",
  5965. "summary": "Remove saved permission"
  5966. }
  5967. },
  5968. "/api/session/{sessionID}/permission": {
  5969. "post": {
  5970. "tags": [
  5971. "permissions"
  5972. ],
  5973. "operationId": "v2.session.permission.create",
  5974. "parameters": [
  5975. {
  5976. "name": "sessionID",
  5977. "in": "path",
  5978. "schema": {
  5979. "type": "string",
  5980. "allOf": [
  5981. {
  5982. "pattern": "^ses"
  5983. }
  5984. ]
  5985. },
  5986. "required": true
  5987. }
  5988. ],
  5989. "security": [],
  5990. "responses": {
  5991. "200": {
  5992. "description": "Success",
  5993. "content": {
  5994. "application/json": {
  5995. "schema": {
  5996. "type": "object",
  5997. "properties": {
  5998. "data": {
  5999. "type": "object",
  6000. "properties": {
  6001. "id": {
  6002. "type": "string",
  6003. "allOf": [
  6004. {
  6005. "pattern": "^per"
  6006. }
  6007. ]
  6008. },
  6009. "effect": {
  6010. "$ref": "#/components/schemas/PermissionV2.Effect"
  6011. }
  6012. },
  6013. "required": [
  6014. "id",
  6015. "effect"
  6016. ],
  6017. "additionalProperties": false
  6018. }
  6019. },
  6020. "required": [
  6021. "data"
  6022. ],
  6023. "additionalProperties": false
  6024. }
  6025. }
  6026. }
  6027. },
  6028. "400": {
  6029. "description": "InvalidRequestError",
  6030. "content": {
  6031. "application/json": {
  6032. "schema": {
  6033. "$ref": "#/components/schemas/InvalidRequestError"
  6034. }
  6035. }
  6036. }
  6037. },
  6038. "401": {
  6039. "description": "UnauthorizedError",
  6040. "content": {
  6041. "application/json": {
  6042. "schema": {
  6043. "$ref": "#/components/schemas/UnauthorizedError"
  6044. }
  6045. }
  6046. }
  6047. },
  6048. "404": {
  6049. "description": "SessionNotFoundError",
  6050. "content": {
  6051. "application/json": {
  6052. "schema": {
  6053. "anyOf": [
  6054. {
  6055. "$ref": "#/components/schemas/SessionNotFoundError"
  6056. },
  6057. {
  6058. "$ref": "#/components/schemas/SessionNotFoundError"
  6059. }
  6060. ]
  6061. }
  6062. }
  6063. }
  6064. }
  6065. },
  6066. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  6067. "summary": "Create permission request",
  6068. "requestBody": {
  6069. "content": {
  6070. "application/json": {
  6071. "schema": {
  6072. "type": "object",
  6073. "properties": {
  6074. "id": {
  6075. "anyOf": [
  6076. {
  6077. "type": "string",
  6078. "allOf": [
  6079. {
  6080. "pattern": "^per"
  6081. }
  6082. ]
  6083. },
  6084. {
  6085. "type": "null"
  6086. }
  6087. ]
  6088. },
  6089. "action": {
  6090. "type": "string"
  6091. },
  6092. "resources": {
  6093. "type": "array",
  6094. "items": {
  6095. "type": "string"
  6096. }
  6097. },
  6098. "save": {
  6099. "type": "array",
  6100. "items": {
  6101. "type": "string"
  6102. }
  6103. },
  6104. "metadata": {
  6105. "type": "object"
  6106. },
  6107. "source": {
  6108. "$ref": "#/components/schemas/PermissionV2.Source"
  6109. },
  6110. "agent": {
  6111. "anyOf": [
  6112. {
  6113. "type": "string"
  6114. },
  6115. {
  6116. "type": "null"
  6117. }
  6118. ]
  6119. }
  6120. },
  6121. "required": [
  6122. "action",
  6123. "resources"
  6124. ],
  6125. "additionalProperties": false
  6126. }
  6127. }
  6128. },
  6129. "required": true
  6130. }
  6131. },
  6132. "get": {
  6133. "tags": [
  6134. "permissions"
  6135. ],
  6136. "operationId": "v2.session.permission.list",
  6137. "parameters": [
  6138. {
  6139. "name": "sessionID",
  6140. "in": "path",
  6141. "schema": {
  6142. "type": "string",
  6143. "allOf": [
  6144. {
  6145. "pattern": "^ses"
  6146. }
  6147. ]
  6148. },
  6149. "required": true
  6150. }
  6151. ],
  6152. "security": [],
  6153. "responses": {
  6154. "200": {
  6155. "description": "Success",
  6156. "content": {
  6157. "application/json": {
  6158. "schema": {
  6159. "type": "object",
  6160. "properties": {
  6161. "data": {
  6162. "type": "array",
  6163. "items": {
  6164. "$ref": "#/components/schemas/PermissionV2.Request"
  6165. }
  6166. }
  6167. },
  6168. "required": [
  6169. "data"
  6170. ],
  6171. "additionalProperties": false
  6172. }
  6173. }
  6174. }
  6175. },
  6176. "400": {
  6177. "description": "InvalidRequestError",
  6178. "content": {
  6179. "application/json": {
  6180. "schema": {
  6181. "$ref": "#/components/schemas/InvalidRequestError"
  6182. }
  6183. }
  6184. }
  6185. },
  6186. "401": {
  6187. "description": "UnauthorizedError",
  6188. "content": {
  6189. "application/json": {
  6190. "schema": {
  6191. "$ref": "#/components/schemas/UnauthorizedError"
  6192. }
  6193. }
  6194. }
  6195. },
  6196. "404": {
  6197. "description": "SessionNotFoundError",
  6198. "content": {
  6199. "application/json": {
  6200. "schema": {
  6201. "anyOf": [
  6202. {
  6203. "$ref": "#/components/schemas/SessionNotFoundError"
  6204. },
  6205. {
  6206. "$ref": "#/components/schemas/SessionNotFoundError"
  6207. }
  6208. ]
  6209. }
  6210. }
  6211. }
  6212. }
  6213. },
  6214. "description": "Retrieve pending permission requests owned by a session.",
  6215. "summary": "List session permission requests"
  6216. }
  6217. },
  6218. "/api/session/{sessionID}/permission/{requestID}": {
  6219. "get": {
  6220. "tags": [
  6221. "permissions"
  6222. ],
  6223. "operationId": "v2.session.permission.get",
  6224. "parameters": [
  6225. {
  6226. "name": "sessionID",
  6227. "in": "path",
  6228. "schema": {
  6229. "type": "string",
  6230. "allOf": [
  6231. {
  6232. "pattern": "^ses"
  6233. }
  6234. ]
  6235. },
  6236. "required": true
  6237. },
  6238. {
  6239. "name": "requestID",
  6240. "in": "path",
  6241. "schema": {
  6242. "type": "string",
  6243. "allOf": [
  6244. {
  6245. "pattern": "^per"
  6246. }
  6247. ]
  6248. },
  6249. "required": true
  6250. }
  6251. ],
  6252. "security": [],
  6253. "responses": {
  6254. "200": {
  6255. "description": "Success",
  6256. "content": {
  6257. "application/json": {
  6258. "schema": {
  6259. "type": "object",
  6260. "properties": {
  6261. "data": {
  6262. "$ref": "#/components/schemas/PermissionV2.Request"
  6263. }
  6264. },
  6265. "required": [
  6266. "data"
  6267. ],
  6268. "additionalProperties": false
  6269. }
  6270. }
  6271. }
  6272. },
  6273. "400": {
  6274. "description": "InvalidRequestError",
  6275. "content": {
  6276. "application/json": {
  6277. "schema": {
  6278. "$ref": "#/components/schemas/InvalidRequestError"
  6279. }
  6280. }
  6281. }
  6282. },
  6283. "401": {
  6284. "description": "UnauthorizedError",
  6285. "content": {
  6286. "application/json": {
  6287. "schema": {
  6288. "$ref": "#/components/schemas/UnauthorizedError"
  6289. }
  6290. }
  6291. }
  6292. },
  6293. "404": {
  6294. "description": "SessionNotFoundError | PermissionNotFoundError",
  6295. "content": {
  6296. "application/json": {
  6297. "schema": {
  6298. "anyOf": [
  6299. {
  6300. "$ref": "#/components/schemas/PermissionNotFoundError"
  6301. },
  6302. {
  6303. "$ref": "#/components/schemas/SessionNotFoundError"
  6304. },
  6305. {
  6306. "$ref": "#/components/schemas/SessionNotFoundError"
  6307. }
  6308. ]
  6309. }
  6310. }
  6311. }
  6312. }
  6313. },
  6314. "description": "Retrieve a pending permission request owned by a session.",
  6315. "summary": "Get permission request"
  6316. }
  6317. },
  6318. "/api/session/{sessionID}/permission/{requestID}/reply": {
  6319. "post": {
  6320. "tags": [
  6321. "permissions"
  6322. ],
  6323. "operationId": "v2.session.permission.reply",
  6324. "parameters": [
  6325. {
  6326. "name": "sessionID",
  6327. "in": "path",
  6328. "schema": {
  6329. "type": "string",
  6330. "allOf": [
  6331. {
  6332. "pattern": "^ses"
  6333. }
  6334. ]
  6335. },
  6336. "required": true
  6337. },
  6338. {
  6339. "name": "requestID",
  6340. "in": "path",
  6341. "schema": {
  6342. "type": "string",
  6343. "allOf": [
  6344. {
  6345. "pattern": "^per"
  6346. }
  6347. ]
  6348. },
  6349. "required": true
  6350. }
  6351. ],
  6352. "security": [],
  6353. "responses": {
  6354. "204": {
  6355. "description": "<No Content>"
  6356. },
  6357. "400": {
  6358. "description": "InvalidRequestError",
  6359. "content": {
  6360. "application/json": {
  6361. "schema": {
  6362. "$ref": "#/components/schemas/InvalidRequestError"
  6363. }
  6364. }
  6365. }
  6366. },
  6367. "401": {
  6368. "description": "UnauthorizedError",
  6369. "content": {
  6370. "application/json": {
  6371. "schema": {
  6372. "$ref": "#/components/schemas/UnauthorizedError"
  6373. }
  6374. }
  6375. }
  6376. },
  6377. "404": {
  6378. "description": "SessionNotFoundError | PermissionNotFoundError",
  6379. "content": {
  6380. "application/json": {
  6381. "schema": {
  6382. "anyOf": [
  6383. {
  6384. "$ref": "#/components/schemas/PermissionNotFoundError"
  6385. },
  6386. {
  6387. "$ref": "#/components/schemas/SessionNotFoundError"
  6388. },
  6389. {
  6390. "$ref": "#/components/schemas/SessionNotFoundError"
  6391. }
  6392. ]
  6393. }
  6394. }
  6395. }
  6396. }
  6397. },
  6398. "description": "Respond to a pending permission request owned by a session.",
  6399. "summary": "Reply to pending permission request",
  6400. "requestBody": {
  6401. "content": {
  6402. "application/json": {
  6403. "schema": {
  6404. "type": "object",
  6405. "properties": {
  6406. "reply": {
  6407. "$ref": "#/components/schemas/PermissionV2.Reply"
  6408. },
  6409. "message": {
  6410. "anyOf": [
  6411. {
  6412. "type": "string"
  6413. },
  6414. {
  6415. "type": "null"
  6416. }
  6417. ]
  6418. }
  6419. },
  6420. "required": [
  6421. "reply"
  6422. ],
  6423. "additionalProperties": false
  6424. }
  6425. }
  6426. },
  6427. "required": true
  6428. }
  6429. }
  6430. },
  6431. "/api/fs/read/*": {
  6432. "get": {
  6433. "tags": [
  6434. "filesystem"
  6435. ],
  6436. "operationId": "v2.fs.read",
  6437. "parameters": [
  6438. {
  6439. "name": "location",
  6440. "in": "query",
  6441. "schema": {
  6442. "anyOf": [
  6443. {
  6444. "type": "object",
  6445. "properties": {
  6446. "directory": {
  6447. "anyOf": [
  6448. {
  6449. "type": "string"
  6450. },
  6451. {
  6452. "type": "null"
  6453. }
  6454. ]
  6455. },
  6456. "workspace": {
  6457. "anyOf": [
  6458. {
  6459. "type": "string"
  6460. },
  6461. {
  6462. "type": "null"
  6463. }
  6464. ]
  6465. }
  6466. },
  6467. "additionalProperties": false
  6468. },
  6469. {
  6470. "type": "null"
  6471. }
  6472. ]
  6473. },
  6474. "required": false,
  6475. "style": "deepObject",
  6476. "explode": true
  6477. }
  6478. ],
  6479. "security": [],
  6480. "responses": {
  6481. "200": {
  6482. "description": "Success",
  6483. "content": {
  6484. "application/octet-stream": {
  6485. "schema": {
  6486. "type": "string",
  6487. "format": "binary"
  6488. }
  6489. }
  6490. }
  6491. },
  6492. "400": {
  6493. "description": "InvalidRequestError",
  6494. "content": {
  6495. "application/json": {
  6496. "schema": {
  6497. "$ref": "#/components/schemas/InvalidRequestError"
  6498. }
  6499. }
  6500. }
  6501. },
  6502. "401": {
  6503. "description": "UnauthorizedError",
  6504. "content": {
  6505. "application/json": {
  6506. "schema": {
  6507. "$ref": "#/components/schemas/UnauthorizedError"
  6508. }
  6509. }
  6510. }
  6511. }
  6512. },
  6513. "description": "Serve one file relative to the requested location.",
  6514. "summary": "Read file"
  6515. }
  6516. },
  6517. "/api/fs/list": {
  6518. "get": {
  6519. "tags": [
  6520. "filesystem"
  6521. ],
  6522. "operationId": "v2.fs.list",
  6523. "parameters": [
  6524. {
  6525. "name": "location",
  6526. "in": "query",
  6527. "schema": {
  6528. "anyOf": [
  6529. {
  6530. "type": "object",
  6531. "properties": {
  6532. "directory": {
  6533. "anyOf": [
  6534. {
  6535. "type": "string"
  6536. },
  6537. {
  6538. "type": "null"
  6539. }
  6540. ]
  6541. },
  6542. "workspace": {
  6543. "anyOf": [
  6544. {
  6545. "type": "string"
  6546. },
  6547. {
  6548. "type": "null"
  6549. }
  6550. ]
  6551. }
  6552. },
  6553. "additionalProperties": false
  6554. },
  6555. {
  6556. "type": "null"
  6557. }
  6558. ]
  6559. },
  6560. "required": false,
  6561. "style": "deepObject",
  6562. "explode": true
  6563. },
  6564. {
  6565. "name": "path",
  6566. "in": "query",
  6567. "schema": {
  6568. "anyOf": [
  6569. {
  6570. "type": "string"
  6571. },
  6572. {
  6573. "type": "null"
  6574. }
  6575. ]
  6576. },
  6577. "required": false
  6578. }
  6579. ],
  6580. "security": [],
  6581. "responses": {
  6582. "200": {
  6583. "description": "Success",
  6584. "content": {
  6585. "application/json": {
  6586. "schema": {
  6587. "type": "object",
  6588. "properties": {
  6589. "location": {
  6590. "$ref": "#/components/schemas/Location.Info"
  6591. },
  6592. "data": {
  6593. "type": "array",
  6594. "items": {
  6595. "$ref": "#/components/schemas/FileSystem.Entry"
  6596. }
  6597. }
  6598. },
  6599. "required": [
  6600. "location",
  6601. "data"
  6602. ],
  6603. "additionalProperties": false
  6604. }
  6605. }
  6606. }
  6607. },
  6608. "400": {
  6609. "description": "InvalidRequestError",
  6610. "content": {
  6611. "application/json": {
  6612. "schema": {
  6613. "$ref": "#/components/schemas/InvalidRequestError"
  6614. }
  6615. }
  6616. }
  6617. },
  6618. "401": {
  6619. "description": "UnauthorizedError",
  6620. "content": {
  6621. "application/json": {
  6622. "schema": {
  6623. "$ref": "#/components/schemas/UnauthorizedError"
  6624. }
  6625. }
  6626. }
  6627. }
  6628. },
  6629. "description": "List direct children of one directory relative to the requested location.",
  6630. "summary": "List directory"
  6631. }
  6632. },
  6633. "/api/fs/find": {
  6634. "get": {
  6635. "tags": [
  6636. "filesystem"
  6637. ],
  6638. "operationId": "v2.fs.find",
  6639. "parameters": [
  6640. {
  6641. "name": "location",
  6642. "in": "query",
  6643. "schema": {
  6644. "anyOf": [
  6645. {
  6646. "type": "object",
  6647. "properties": {
  6648. "directory": {
  6649. "anyOf": [
  6650. {
  6651. "type": "string"
  6652. },
  6653. {
  6654. "type": "null"
  6655. }
  6656. ]
  6657. },
  6658. "workspace": {
  6659. "anyOf": [
  6660. {
  6661. "type": "string"
  6662. },
  6663. {
  6664. "type": "null"
  6665. }
  6666. ]
  6667. }
  6668. },
  6669. "additionalProperties": false
  6670. },
  6671. {
  6672. "type": "null"
  6673. }
  6674. ]
  6675. },
  6676. "required": false,
  6677. "style": "deepObject",
  6678. "explode": true
  6679. },
  6680. {
  6681. "name": "query",
  6682. "in": "query",
  6683. "schema": {
  6684. "type": "string"
  6685. },
  6686. "required": true
  6687. },
  6688. {
  6689. "name": "type",
  6690. "in": "query",
  6691. "schema": {
  6692. "type": "string",
  6693. "enum": [
  6694. "file",
  6695. "directory"
  6696. ]
  6697. },
  6698. "required": false
  6699. },
  6700. {
  6701. "name": "limit",
  6702. "in": "query",
  6703. "schema": {
  6704. "anyOf": [
  6705. {
  6706. "type": "string"
  6707. },
  6708. {
  6709. "type": "null"
  6710. }
  6711. ]
  6712. },
  6713. "required": false
  6714. }
  6715. ],
  6716. "security": [],
  6717. "responses": {
  6718. "200": {
  6719. "description": "Success",
  6720. "content": {
  6721. "application/json": {
  6722. "schema": {
  6723. "type": "object",
  6724. "properties": {
  6725. "location": {
  6726. "$ref": "#/components/schemas/Location.Info"
  6727. },
  6728. "data": {
  6729. "type": "array",
  6730. "items": {
  6731. "$ref": "#/components/schemas/FileSystem.Entry"
  6732. }
  6733. }
  6734. },
  6735. "required": [
  6736. "location",
  6737. "data"
  6738. ],
  6739. "additionalProperties": false
  6740. }
  6741. }
  6742. }
  6743. },
  6744. "400": {
  6745. "description": "InvalidRequestError",
  6746. "content": {
  6747. "application/json": {
  6748. "schema": {
  6749. "$ref": "#/components/schemas/InvalidRequestError"
  6750. }
  6751. }
  6752. }
  6753. },
  6754. "401": {
  6755. "description": "UnauthorizedError",
  6756. "content": {
  6757. "application/json": {
  6758. "schema": {
  6759. "$ref": "#/components/schemas/UnauthorizedError"
  6760. }
  6761. }
  6762. }
  6763. }
  6764. },
  6765. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  6766. "summary": "Find files"
  6767. }
  6768. },
  6769. "/api/command": {
  6770. "get": {
  6771. "tags": [
  6772. "commands"
  6773. ],
  6774. "operationId": "v2.command.list",
  6775. "parameters": [
  6776. {
  6777. "name": "location",
  6778. "in": "query",
  6779. "schema": {
  6780. "anyOf": [
  6781. {
  6782. "type": "object",
  6783. "properties": {
  6784. "directory": {
  6785. "anyOf": [
  6786. {
  6787. "type": "string"
  6788. },
  6789. {
  6790. "type": "null"
  6791. }
  6792. ]
  6793. },
  6794. "workspace": {
  6795. "anyOf": [
  6796. {
  6797. "type": "string"
  6798. },
  6799. {
  6800. "type": "null"
  6801. }
  6802. ]
  6803. }
  6804. },
  6805. "additionalProperties": false
  6806. },
  6807. {
  6808. "type": "null"
  6809. }
  6810. ]
  6811. },
  6812. "required": false,
  6813. "style": "deepObject",
  6814. "explode": true
  6815. }
  6816. ],
  6817. "security": [],
  6818. "responses": {
  6819. "200": {
  6820. "description": "Success",
  6821. "content": {
  6822. "application/json": {
  6823. "schema": {
  6824. "type": "object",
  6825. "properties": {
  6826. "location": {
  6827. "$ref": "#/components/schemas/Location.Info"
  6828. },
  6829. "data": {
  6830. "type": "array",
  6831. "items": {
  6832. "$ref": "#/components/schemas/CommandV2.Info"
  6833. }
  6834. }
  6835. },
  6836. "required": [
  6837. "location",
  6838. "data"
  6839. ],
  6840. "additionalProperties": false
  6841. }
  6842. }
  6843. }
  6844. },
  6845. "400": {
  6846. "description": "InvalidRequestError",
  6847. "content": {
  6848. "application/json": {
  6849. "schema": {
  6850. "$ref": "#/components/schemas/InvalidRequestError"
  6851. }
  6852. }
  6853. }
  6854. },
  6855. "401": {
  6856. "description": "UnauthorizedError",
  6857. "content": {
  6858. "application/json": {
  6859. "schema": {
  6860. "$ref": "#/components/schemas/UnauthorizedError"
  6861. }
  6862. }
  6863. }
  6864. }
  6865. },
  6866. "description": "Retrieve currently registered commands.",
  6867. "summary": "List commands"
  6868. }
  6869. },
  6870. "/api/skill": {
  6871. "get": {
  6872. "tags": [
  6873. "skills"
  6874. ],
  6875. "operationId": "v2.skill.list",
  6876. "parameters": [
  6877. {
  6878. "name": "location",
  6879. "in": "query",
  6880. "schema": {
  6881. "anyOf": [
  6882. {
  6883. "type": "object",
  6884. "properties": {
  6885. "directory": {
  6886. "anyOf": [
  6887. {
  6888. "type": "string"
  6889. },
  6890. {
  6891. "type": "null"
  6892. }
  6893. ]
  6894. },
  6895. "workspace": {
  6896. "anyOf": [
  6897. {
  6898. "type": "string"
  6899. },
  6900. {
  6901. "type": "null"
  6902. }
  6903. ]
  6904. }
  6905. },
  6906. "additionalProperties": false
  6907. },
  6908. {
  6909. "type": "null"
  6910. }
  6911. ]
  6912. },
  6913. "required": false,
  6914. "style": "deepObject",
  6915. "explode": true
  6916. }
  6917. ],
  6918. "security": [],
  6919. "responses": {
  6920. "200": {
  6921. "description": "Success",
  6922. "content": {
  6923. "application/json": {
  6924. "schema": {
  6925. "type": "object",
  6926. "properties": {
  6927. "location": {
  6928. "$ref": "#/components/schemas/Location.Info"
  6929. },
  6930. "data": {
  6931. "type": "array",
  6932. "items": {
  6933. "$ref": "#/components/schemas/SkillV2.Info"
  6934. }
  6935. }
  6936. },
  6937. "required": [
  6938. "location",
  6939. "data"
  6940. ],
  6941. "additionalProperties": false
  6942. }
  6943. }
  6944. }
  6945. },
  6946. "400": {
  6947. "description": "InvalidRequestError",
  6948. "content": {
  6949. "application/json": {
  6950. "schema": {
  6951. "$ref": "#/components/schemas/InvalidRequestError"
  6952. }
  6953. }
  6954. }
  6955. },
  6956. "401": {
  6957. "description": "UnauthorizedError",
  6958. "content": {
  6959. "application/json": {
  6960. "schema": {
  6961. "$ref": "#/components/schemas/UnauthorizedError"
  6962. }
  6963. }
  6964. }
  6965. }
  6966. },
  6967. "description": "Retrieve currently registered skills.",
  6968. "summary": "List skills"
  6969. }
  6970. },
  6971. "/api/event": {
  6972. "get": {
  6973. "tags": [
  6974. "events"
  6975. ],
  6976. "operationId": "v2.event.subscribe",
  6977. "parameters": [],
  6978. "security": [],
  6979. "responses": {
  6980. "200": {
  6981. "description": "Success",
  6982. "content": {
  6983. "text/event-stream": {
  6984. "schema": {
  6985. "type": "object",
  6986. "properties": {
  6987. "id": {
  6988. "anyOf": [
  6989. {
  6990. "type": "string"
  6991. },
  6992. {
  6993. "type": "null"
  6994. }
  6995. ]
  6996. },
  6997. "event": {
  6998. "type": "string"
  6999. },
  7000. "data": {
  7001. "$ref": "#/components/schemas/V2EventStream"
  7002. }
  7003. },
  7004. "required": [
  7005. "id",
  7006. "event",
  7007. "data"
  7008. ],
  7009. "additionalProperties": false
  7010. },
  7011. "x-effect-stream": {
  7012. "encoding": "sse",
  7013. "causeSchema": {
  7014. "type": "array",
  7015. "items": {
  7016. "anyOf": [
  7017. {
  7018. "type": "object",
  7019. "properties": {
  7020. "_tag": {
  7021. "type": "string",
  7022. "enum": [
  7023. "Fail"
  7024. ]
  7025. },
  7026. "error": {
  7027. "not": {}
  7028. }
  7029. },
  7030. "required": [
  7031. "_tag",
  7032. "error"
  7033. ],
  7034. "additionalProperties": false
  7035. },
  7036. {
  7037. "type": "object",
  7038. "properties": {
  7039. "_tag": {
  7040. "type": "string",
  7041. "enum": [
  7042. "Die"
  7043. ]
  7044. },
  7045. "defect": {}
  7046. },
  7047. "required": [
  7048. "_tag",
  7049. "defect"
  7050. ],
  7051. "additionalProperties": false
  7052. },
  7053. {
  7054. "type": "object",
  7055. "properties": {
  7056. "_tag": {
  7057. "type": "string",
  7058. "enum": [
  7059. "Interrupt"
  7060. ]
  7061. },
  7062. "fiberId": {
  7063. "anyOf": [
  7064. {
  7065. "type": "number"
  7066. },
  7067. {
  7068. "type": "null"
  7069. }
  7070. ]
  7071. }
  7072. },
  7073. "required": [
  7074. "_tag",
  7075. "fiberId"
  7076. ],
  7077. "additionalProperties": false
  7078. }
  7079. ]
  7080. }
  7081. },
  7082. "errorSchema": {
  7083. "not": {}
  7084. },
  7085. "failureEvent": "effect/httpapi/stream/failure"
  7086. }
  7087. }
  7088. }
  7089. },
  7090. "400": {
  7091. "description": "InvalidRequestError",
  7092. "content": {
  7093. "application/json": {
  7094. "schema": {
  7095. "$ref": "#/components/schemas/InvalidRequestError"
  7096. }
  7097. }
  7098. }
  7099. },
  7100. "401": {
  7101. "description": "UnauthorizedError",
  7102. "content": {
  7103. "application/json": {
  7104. "schema": {
  7105. "$ref": "#/components/schemas/UnauthorizedError"
  7106. }
  7107. }
  7108. }
  7109. }
  7110. },
  7111. "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.",
  7112. "summary": "Subscribe to events"
  7113. }
  7114. },
  7115. "/api/event/changes": {
  7116. "get": {
  7117. "tags": [
  7118. "events"
  7119. ],
  7120. "operationId": "v2.event.changes",
  7121. "parameters": [],
  7122. "security": [],
  7123. "responses": {
  7124. "200": {
  7125. "description": "Success",
  7126. "content": {
  7127. "text/event-stream": {
  7128. "schema": {
  7129. "type": "object",
  7130. "properties": {
  7131. "id": {
  7132. "anyOf": [
  7133. {
  7134. "type": "string"
  7135. },
  7136. {
  7137. "type": "null"
  7138. }
  7139. ]
  7140. },
  7141. "event": {
  7142. "type": "string"
  7143. },
  7144. "data": {
  7145. "$ref": "#/components/schemas/EventLog.ChangeStream"
  7146. }
  7147. },
  7148. "required": [
  7149. "id",
  7150. "event",
  7151. "data"
  7152. ],
  7153. "additionalProperties": false
  7154. },
  7155. "x-effect-stream": {
  7156. "encoding": "sse",
  7157. "causeSchema": {
  7158. "type": "array",
  7159. "items": {
  7160. "anyOf": [
  7161. {
  7162. "type": "object",
  7163. "properties": {
  7164. "_tag": {
  7165. "type": "string",
  7166. "enum": [
  7167. "Fail"
  7168. ]
  7169. },
  7170. "error": {
  7171. "not": {}
  7172. }
  7173. },
  7174. "required": [
  7175. "_tag",
  7176. "error"
  7177. ],
  7178. "additionalProperties": false
  7179. },
  7180. {
  7181. "type": "object",
  7182. "properties": {
  7183. "_tag": {
  7184. "type": "string",
  7185. "enum": [
  7186. "Die"
  7187. ]
  7188. },
  7189. "defect": {}
  7190. },
  7191. "required": [
  7192. "_tag",
  7193. "defect"
  7194. ],
  7195. "additionalProperties": false
  7196. },
  7197. {
  7198. "type": "object",
  7199. "properties": {
  7200. "_tag": {
  7201. "type": "string",
  7202. "enum": [
  7203. "Interrupt"
  7204. ]
  7205. },
  7206. "fiberId": {
  7207. "anyOf": [
  7208. {
  7209. "type": "number"
  7210. },
  7211. {
  7212. "type": "null"
  7213. }
  7214. ]
  7215. }
  7216. },
  7217. "required": [
  7218. "_tag",
  7219. "fiberId"
  7220. ],
  7221. "additionalProperties": false
  7222. }
  7223. ]
  7224. }
  7225. },
  7226. "errorSchema": {
  7227. "not": {}
  7228. },
  7229. "failureEvent": "effect/httpapi/stream/failure"
  7230. }
  7231. }
  7232. }
  7233. },
  7234. "400": {
  7235. "description": "InvalidRequestError",
  7236. "content": {
  7237. "application/json": {
  7238. "schema": {
  7239. "$ref": "#/components/schemas/InvalidRequestError"
  7240. }
  7241. }
  7242. }
  7243. },
  7244. "401": {
  7245. "description": "UnauthorizedError",
  7246. "content": {
  7247. "application/json": {
  7248. "schema": {
  7249. "$ref": "#/components/schemas/UnauthorizedError"
  7250. }
  7251. }
  7252. }
  7253. }
  7254. },
  7255. "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.",
  7256. "summary": "Subscribe to change hints"
  7257. }
  7258. },
  7259. "/api/pty": {
  7260. "get": {
  7261. "tags": [
  7262. "pty"
  7263. ],
  7264. "operationId": "v2.pty.list",
  7265. "parameters": [
  7266. {
  7267. "name": "location",
  7268. "in": "query",
  7269. "schema": {
  7270. "anyOf": [
  7271. {
  7272. "type": "object",
  7273. "properties": {
  7274. "directory": {
  7275. "anyOf": [
  7276. {
  7277. "type": "string"
  7278. },
  7279. {
  7280. "type": "null"
  7281. }
  7282. ]
  7283. },
  7284. "workspace": {
  7285. "anyOf": [
  7286. {
  7287. "type": "string"
  7288. },
  7289. {
  7290. "type": "null"
  7291. }
  7292. ]
  7293. }
  7294. },
  7295. "additionalProperties": false
  7296. },
  7297. {
  7298. "type": "null"
  7299. }
  7300. ]
  7301. },
  7302. "required": false,
  7303. "style": "deepObject",
  7304. "explode": true
  7305. }
  7306. ],
  7307. "security": [],
  7308. "responses": {
  7309. "200": {
  7310. "description": "Success",
  7311. "content": {
  7312. "application/json": {
  7313. "schema": {
  7314. "type": "object",
  7315. "properties": {
  7316. "location": {
  7317. "$ref": "#/components/schemas/Location.Info"
  7318. },
  7319. "data": {
  7320. "type": "array",
  7321. "items": {
  7322. "$ref": "#/components/schemas/Pty"
  7323. }
  7324. }
  7325. },
  7326. "required": [
  7327. "location",
  7328. "data"
  7329. ],
  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. },
  7356. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  7357. "summary": "List PTY sessions"
  7358. },
  7359. "post": {
  7360. "tags": [
  7361. "pty"
  7362. ],
  7363. "operationId": "v2.pty.create",
  7364. "parameters": [
  7365. {
  7366. "name": "location",
  7367. "in": "query",
  7368. "schema": {
  7369. "anyOf": [
  7370. {
  7371. "type": "object",
  7372. "properties": {
  7373. "directory": {
  7374. "anyOf": [
  7375. {
  7376. "type": "string"
  7377. },
  7378. {
  7379. "type": "null"
  7380. }
  7381. ]
  7382. },
  7383. "workspace": {
  7384. "anyOf": [
  7385. {
  7386. "type": "string"
  7387. },
  7388. {
  7389. "type": "null"
  7390. }
  7391. ]
  7392. }
  7393. },
  7394. "additionalProperties": false
  7395. },
  7396. {
  7397. "type": "null"
  7398. }
  7399. ]
  7400. },
  7401. "required": false,
  7402. "style": "deepObject",
  7403. "explode": true
  7404. }
  7405. ],
  7406. "security": [],
  7407. "responses": {
  7408. "200": {
  7409. "description": "Success",
  7410. "content": {
  7411. "application/json": {
  7412. "schema": {
  7413. "type": "object",
  7414. "properties": {
  7415. "location": {
  7416. "$ref": "#/components/schemas/Location.Info"
  7417. },
  7418. "data": {
  7419. "$ref": "#/components/schemas/Pty"
  7420. }
  7421. },
  7422. "required": [
  7423. "location",
  7424. "data"
  7425. ],
  7426. "additionalProperties": false
  7427. }
  7428. }
  7429. }
  7430. },
  7431. "400": {
  7432. "description": "InvalidRequestError",
  7433. "content": {
  7434. "application/json": {
  7435. "schema": {
  7436. "$ref": "#/components/schemas/InvalidRequestError"
  7437. }
  7438. }
  7439. }
  7440. },
  7441. "401": {
  7442. "description": "UnauthorizedError",
  7443. "content": {
  7444. "application/json": {
  7445. "schema": {
  7446. "$ref": "#/components/schemas/UnauthorizedError"
  7447. }
  7448. }
  7449. }
  7450. }
  7451. },
  7452. "description": "Create a pseudo-terminal session for a location.",
  7453. "summary": "Create PTY session",
  7454. "requestBody": {
  7455. "content": {
  7456. "application/json": {
  7457. "schema": {
  7458. "type": "object",
  7459. "properties": {
  7460. "command": {
  7461. "type": "string"
  7462. },
  7463. "args": {
  7464. "type": "array",
  7465. "items": {
  7466. "type": "string"
  7467. }
  7468. },
  7469. "cwd": {
  7470. "type": "string"
  7471. },
  7472. "title": {
  7473. "type": "string"
  7474. },
  7475. "env": {
  7476. "type": "object",
  7477. "additionalProperties": {
  7478. "type": "string"
  7479. }
  7480. }
  7481. },
  7482. "additionalProperties": false
  7483. }
  7484. }
  7485. },
  7486. "required": true
  7487. }
  7488. }
  7489. },
  7490. "/api/pty/{ptyID}": {
  7491. "get": {
  7492. "tags": [
  7493. "pty"
  7494. ],
  7495. "operationId": "v2.pty.get",
  7496. "parameters": [
  7497. {
  7498. "name": "ptyID",
  7499. "in": "path",
  7500. "schema": {
  7501. "type": "string",
  7502. "allOf": [
  7503. {
  7504. "pattern": "^pty"
  7505. }
  7506. ]
  7507. },
  7508. "required": true
  7509. },
  7510. {
  7511. "name": "location",
  7512. "in": "query",
  7513. "schema": {
  7514. "anyOf": [
  7515. {
  7516. "type": "object",
  7517. "properties": {
  7518. "directory": {
  7519. "anyOf": [
  7520. {
  7521. "type": "string"
  7522. },
  7523. {
  7524. "type": "null"
  7525. }
  7526. ]
  7527. },
  7528. "workspace": {
  7529. "anyOf": [
  7530. {
  7531. "type": "string"
  7532. },
  7533. {
  7534. "type": "null"
  7535. }
  7536. ]
  7537. }
  7538. },
  7539. "additionalProperties": false
  7540. },
  7541. {
  7542. "type": "null"
  7543. }
  7544. ]
  7545. },
  7546. "required": false,
  7547. "style": "deepObject",
  7548. "explode": true
  7549. }
  7550. ],
  7551. "security": [],
  7552. "responses": {
  7553. "200": {
  7554. "description": "Success",
  7555. "content": {
  7556. "application/json": {
  7557. "schema": {
  7558. "type": "object",
  7559. "properties": {
  7560. "location": {
  7561. "$ref": "#/components/schemas/Location.Info"
  7562. },
  7563. "data": {
  7564. "$ref": "#/components/schemas/Pty"
  7565. }
  7566. },
  7567. "required": [
  7568. "location",
  7569. "data"
  7570. ],
  7571. "additionalProperties": false
  7572. }
  7573. }
  7574. }
  7575. },
  7576. "400": {
  7577. "description": "InvalidRequestError",
  7578. "content": {
  7579. "application/json": {
  7580. "schema": {
  7581. "$ref": "#/components/schemas/InvalidRequestError"
  7582. }
  7583. }
  7584. }
  7585. },
  7586. "401": {
  7587. "description": "UnauthorizedError",
  7588. "content": {
  7589. "application/json": {
  7590. "schema": {
  7591. "$ref": "#/components/schemas/UnauthorizedError"
  7592. }
  7593. }
  7594. }
  7595. },
  7596. "404": {
  7597. "description": "PtyNotFoundError",
  7598. "content": {
  7599. "application/json": {
  7600. "schema": {
  7601. "$ref": "#/components/schemas/PtyNotFoundError"
  7602. }
  7603. }
  7604. }
  7605. }
  7606. },
  7607. "description": "Get one PTY session, including its exit code once exited.",
  7608. "summary": "Get PTY session"
  7609. },
  7610. "put": {
  7611. "tags": [
  7612. "pty"
  7613. ],
  7614. "operationId": "v2.pty.update",
  7615. "parameters": [
  7616. {
  7617. "name": "ptyID",
  7618. "in": "path",
  7619. "schema": {
  7620. "type": "string",
  7621. "allOf": [
  7622. {
  7623. "pattern": "^pty"
  7624. }
  7625. ]
  7626. },
  7627. "required": true
  7628. },
  7629. {
  7630. "name": "location",
  7631. "in": "query",
  7632. "schema": {
  7633. "anyOf": [
  7634. {
  7635. "type": "object",
  7636. "properties": {
  7637. "directory": {
  7638. "anyOf": [
  7639. {
  7640. "type": "string"
  7641. },
  7642. {
  7643. "type": "null"
  7644. }
  7645. ]
  7646. },
  7647. "workspace": {
  7648. "anyOf": [
  7649. {
  7650. "type": "string"
  7651. },
  7652. {
  7653. "type": "null"
  7654. }
  7655. ]
  7656. }
  7657. },
  7658. "additionalProperties": false
  7659. },
  7660. {
  7661. "type": "null"
  7662. }
  7663. ]
  7664. },
  7665. "required": false,
  7666. "style": "deepObject",
  7667. "explode": true
  7668. }
  7669. ],
  7670. "security": [],
  7671. "responses": {
  7672. "200": {
  7673. "description": "Success",
  7674. "content": {
  7675. "application/json": {
  7676. "schema": {
  7677. "type": "object",
  7678. "properties": {
  7679. "location": {
  7680. "$ref": "#/components/schemas/Location.Info"
  7681. },
  7682. "data": {
  7683. "$ref": "#/components/schemas/Pty"
  7684. }
  7685. },
  7686. "required": [
  7687. "location",
  7688. "data"
  7689. ],
  7690. "additionalProperties": false
  7691. }
  7692. }
  7693. }
  7694. },
  7695. "400": {
  7696. "description": "InvalidRequestError",
  7697. "content": {
  7698. "application/json": {
  7699. "schema": {
  7700. "$ref": "#/components/schemas/InvalidRequestError"
  7701. }
  7702. }
  7703. }
  7704. },
  7705. "401": {
  7706. "description": "UnauthorizedError",
  7707. "content": {
  7708. "application/json": {
  7709. "schema": {
  7710. "$ref": "#/components/schemas/UnauthorizedError"
  7711. }
  7712. }
  7713. }
  7714. },
  7715. "404": {
  7716. "description": "PtyNotFoundError",
  7717. "content": {
  7718. "application/json": {
  7719. "schema": {
  7720. "$ref": "#/components/schemas/PtyNotFoundError"
  7721. }
  7722. }
  7723. }
  7724. }
  7725. },
  7726. "description": "Update the title or viewport size of one PTY session.",
  7727. "summary": "Update PTY session",
  7728. "requestBody": {
  7729. "content": {
  7730. "application/json": {
  7731. "schema": {
  7732. "type": "object",
  7733. "properties": {
  7734. "title": {
  7735. "type": "string"
  7736. },
  7737. "size": {
  7738. "type": "object",
  7739. "properties": {
  7740. "rows": {
  7741. "type": "integer",
  7742. "allOf": [
  7743. {
  7744. "exclusiveMinimum": 0
  7745. }
  7746. ]
  7747. },
  7748. "cols": {
  7749. "type": "integer",
  7750. "allOf": [
  7751. {
  7752. "exclusiveMinimum": 0
  7753. }
  7754. ]
  7755. }
  7756. },
  7757. "required": [
  7758. "rows",
  7759. "cols"
  7760. ],
  7761. "additionalProperties": false
  7762. }
  7763. },
  7764. "additionalProperties": false
  7765. }
  7766. }
  7767. },
  7768. "required": true
  7769. }
  7770. },
  7771. "delete": {
  7772. "tags": [
  7773. "pty"
  7774. ],
  7775. "operationId": "v2.pty.remove",
  7776. "parameters": [
  7777. {
  7778. "name": "ptyID",
  7779. "in": "path",
  7780. "schema": {
  7781. "type": "string",
  7782. "allOf": [
  7783. {
  7784. "pattern": "^pty"
  7785. }
  7786. ]
  7787. },
  7788. "required": true
  7789. },
  7790. {
  7791. "name": "location",
  7792. "in": "query",
  7793. "schema": {
  7794. "anyOf": [
  7795. {
  7796. "type": "object",
  7797. "properties": {
  7798. "directory": {
  7799. "anyOf": [
  7800. {
  7801. "type": "string"
  7802. },
  7803. {
  7804. "type": "null"
  7805. }
  7806. ]
  7807. },
  7808. "workspace": {
  7809. "anyOf": [
  7810. {
  7811. "type": "string"
  7812. },
  7813. {
  7814. "type": "null"
  7815. }
  7816. ]
  7817. }
  7818. },
  7819. "additionalProperties": false
  7820. },
  7821. {
  7822. "type": "null"
  7823. }
  7824. ]
  7825. },
  7826. "required": false,
  7827. "style": "deepObject",
  7828. "explode": true
  7829. }
  7830. ],
  7831. "security": [],
  7832. "responses": {
  7833. "204": {
  7834. "description": "<No Content>"
  7835. },
  7836. "400": {
  7837. "description": "InvalidRequestError",
  7838. "content": {
  7839. "application/json": {
  7840. "schema": {
  7841. "$ref": "#/components/schemas/InvalidRequestError"
  7842. }
  7843. }
  7844. }
  7845. },
  7846. "401": {
  7847. "description": "UnauthorizedError",
  7848. "content": {
  7849. "application/json": {
  7850. "schema": {
  7851. "$ref": "#/components/schemas/UnauthorizedError"
  7852. }
  7853. }
  7854. }
  7855. },
  7856. "404": {
  7857. "description": "PtyNotFoundError",
  7858. "content": {
  7859. "application/json": {
  7860. "schema": {
  7861. "$ref": "#/components/schemas/PtyNotFoundError"
  7862. }
  7863. }
  7864. }
  7865. }
  7866. },
  7867. "description": "Terminate and remove one PTY session.",
  7868. "summary": "Remove PTY session"
  7869. }
  7870. },
  7871. "/api/pty/{ptyID}/connect-token": {
  7872. "post": {
  7873. "tags": [
  7874. "pty"
  7875. ],
  7876. "operationId": "v2.pty.connectToken",
  7877. "parameters": [
  7878. {
  7879. "name": "ptyID",
  7880. "in": "path",
  7881. "schema": {
  7882. "type": "string",
  7883. "allOf": [
  7884. {
  7885. "pattern": "^pty"
  7886. }
  7887. ]
  7888. },
  7889. "required": true
  7890. },
  7891. {
  7892. "name": "location",
  7893. "in": "query",
  7894. "schema": {
  7895. "anyOf": [
  7896. {
  7897. "type": "object",
  7898. "properties": {
  7899. "directory": {
  7900. "anyOf": [
  7901. {
  7902. "type": "string"
  7903. },
  7904. {
  7905. "type": "null"
  7906. }
  7907. ]
  7908. },
  7909. "workspace": {
  7910. "anyOf": [
  7911. {
  7912. "type": "string"
  7913. },
  7914. {
  7915. "type": "null"
  7916. }
  7917. ]
  7918. }
  7919. },
  7920. "additionalProperties": false
  7921. },
  7922. {
  7923. "type": "null"
  7924. }
  7925. ]
  7926. },
  7927. "required": false,
  7928. "style": "deepObject",
  7929. "explode": true
  7930. }
  7931. ],
  7932. "security": [],
  7933. "responses": {
  7934. "200": {
  7935. "description": "Success",
  7936. "content": {
  7937. "application/json": {
  7938. "schema": {
  7939. "type": "object",
  7940. "properties": {
  7941. "location": {
  7942. "$ref": "#/components/schemas/Location.Info"
  7943. },
  7944. "data": {
  7945. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  7946. }
  7947. },
  7948. "required": [
  7949. "location",
  7950. "data"
  7951. ],
  7952. "additionalProperties": false
  7953. }
  7954. }
  7955. }
  7956. },
  7957. "400": {
  7958. "description": "InvalidRequestError",
  7959. "content": {
  7960. "application/json": {
  7961. "schema": {
  7962. "$ref": "#/components/schemas/InvalidRequestError"
  7963. }
  7964. }
  7965. }
  7966. },
  7967. "401": {
  7968. "description": "UnauthorizedError",
  7969. "content": {
  7970. "application/json": {
  7971. "schema": {
  7972. "$ref": "#/components/schemas/UnauthorizedError"
  7973. }
  7974. }
  7975. }
  7976. },
  7977. "403": {
  7978. "description": "ForbiddenError",
  7979. "content": {
  7980. "application/json": {
  7981. "schema": {
  7982. "$ref": "#/components/schemas/ForbiddenError"
  7983. }
  7984. }
  7985. }
  7986. },
  7987. "404": {
  7988. "description": "PtyNotFoundError",
  7989. "content": {
  7990. "application/json": {
  7991. "schema": {
  7992. "$ref": "#/components/schemas/PtyNotFoundError"
  7993. }
  7994. }
  7995. }
  7996. }
  7997. },
  7998. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  7999. "summary": "Create PTY WebSocket token"
  8000. }
  8001. },
  8002. "/api/pty/{ptyID}/connect": {
  8003. "get": {
  8004. "tags": [
  8005. "pty"
  8006. ],
  8007. "operationId": "v2.pty.connect",
  8008. "x-websocket": true,
  8009. "parameters": [
  8010. {
  8011. "name": "ptyID",
  8012. "in": "path",
  8013. "schema": {
  8014. "type": "string",
  8015. "allOf": [
  8016. {
  8017. "pattern": "^pty"
  8018. }
  8019. ]
  8020. },
  8021. "required": true
  8022. },
  8023. {
  8024. "in": "query",
  8025. "name": "location[directory]",
  8026. "schema": {
  8027. "type": "string"
  8028. }
  8029. },
  8030. {
  8031. "in": "query",
  8032. "name": "location[workspace]",
  8033. "schema": {
  8034. "type": "string"
  8035. }
  8036. },
  8037. {
  8038. "in": "query",
  8039. "name": "cursor",
  8040. "schema": {
  8041. "type": "string"
  8042. }
  8043. },
  8044. {
  8045. "in": "query",
  8046. "name": "ticket",
  8047. "schema": {
  8048. "type": "string"
  8049. }
  8050. }
  8051. ],
  8052. "security": [],
  8053. "responses": {
  8054. "200": {
  8055. "description": "Success",
  8056. "content": {
  8057. "application/json": {
  8058. "schema": {
  8059. "type": "boolean"
  8060. }
  8061. }
  8062. }
  8063. },
  8064. "400": {
  8065. "description": "InvalidRequestError",
  8066. "content": {
  8067. "application/json": {
  8068. "schema": {
  8069. "$ref": "#/components/schemas/InvalidRequestError"
  8070. }
  8071. }
  8072. }
  8073. },
  8074. "401": {
  8075. "description": "UnauthorizedError",
  8076. "content": {
  8077. "application/json": {
  8078. "schema": {
  8079. "$ref": "#/components/schemas/UnauthorizedError"
  8080. }
  8081. }
  8082. }
  8083. },
  8084. "403": {
  8085. "description": "ForbiddenError",
  8086. "content": {
  8087. "application/json": {
  8088. "schema": {
  8089. "$ref": "#/components/schemas/ForbiddenError"
  8090. }
  8091. }
  8092. }
  8093. },
  8094. "404": {
  8095. "description": "PtyNotFoundError",
  8096. "content": {
  8097. "application/json": {
  8098. "schema": {
  8099. "$ref": "#/components/schemas/PtyNotFoundError"
  8100. }
  8101. }
  8102. }
  8103. }
  8104. },
  8105. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  8106. "summary": "Connect to PTY session"
  8107. }
  8108. },
  8109. "/api/shell": {
  8110. "get": {
  8111. "tags": [
  8112. "shell"
  8113. ],
  8114. "operationId": "v2.shell.list",
  8115. "parameters": [
  8116. {
  8117. "name": "location",
  8118. "in": "query",
  8119. "schema": {
  8120. "anyOf": [
  8121. {
  8122. "type": "object",
  8123. "properties": {
  8124. "directory": {
  8125. "anyOf": [
  8126. {
  8127. "type": "string"
  8128. },
  8129. {
  8130. "type": "null"
  8131. }
  8132. ]
  8133. },
  8134. "workspace": {
  8135. "anyOf": [
  8136. {
  8137. "type": "string"
  8138. },
  8139. {
  8140. "type": "null"
  8141. }
  8142. ]
  8143. }
  8144. },
  8145. "additionalProperties": false
  8146. },
  8147. {
  8148. "type": "null"
  8149. }
  8150. ]
  8151. },
  8152. "required": false,
  8153. "style": "deepObject",
  8154. "explode": true
  8155. }
  8156. ],
  8157. "security": [],
  8158. "responses": {
  8159. "200": {
  8160. "description": "Success",
  8161. "content": {
  8162. "application/json": {
  8163. "schema": {
  8164. "type": "object",
  8165. "properties": {
  8166. "location": {
  8167. "$ref": "#/components/schemas/Location.Info"
  8168. },
  8169. "data": {
  8170. "type": "array",
  8171. "items": {
  8172. "$ref": "#/components/schemas/Shell1"
  8173. }
  8174. }
  8175. },
  8176. "required": [
  8177. "location",
  8178. "data"
  8179. ],
  8180. "additionalProperties": false
  8181. }
  8182. }
  8183. }
  8184. },
  8185. "400": {
  8186. "description": "InvalidRequestError",
  8187. "content": {
  8188. "application/json": {
  8189. "schema": {
  8190. "$ref": "#/components/schemas/InvalidRequestError"
  8191. }
  8192. }
  8193. }
  8194. },
  8195. "401": {
  8196. "description": "UnauthorizedError",
  8197. "content": {
  8198. "application/json": {
  8199. "schema": {
  8200. "$ref": "#/components/schemas/UnauthorizedError"
  8201. }
  8202. }
  8203. }
  8204. }
  8205. },
  8206. "description": "List currently running shell commands for a location. Exited commands are not included.",
  8207. "summary": "List running shell commands"
  8208. },
  8209. "post": {
  8210. "tags": [
  8211. "shell"
  8212. ],
  8213. "operationId": "v2.shell.create",
  8214. "parameters": [
  8215. {
  8216. "name": "location",
  8217. "in": "query",
  8218. "schema": {
  8219. "anyOf": [
  8220. {
  8221. "type": "object",
  8222. "properties": {
  8223. "directory": {
  8224. "anyOf": [
  8225. {
  8226. "type": "string"
  8227. },
  8228. {
  8229. "type": "null"
  8230. }
  8231. ]
  8232. },
  8233. "workspace": {
  8234. "anyOf": [
  8235. {
  8236. "type": "string"
  8237. },
  8238. {
  8239. "type": "null"
  8240. }
  8241. ]
  8242. }
  8243. },
  8244. "additionalProperties": false
  8245. },
  8246. {
  8247. "type": "null"
  8248. }
  8249. ]
  8250. },
  8251. "required": false,
  8252. "style": "deepObject",
  8253. "explode": true
  8254. }
  8255. ],
  8256. "security": [],
  8257. "responses": {
  8258. "200": {
  8259. "description": "Success",
  8260. "content": {
  8261. "application/json": {
  8262. "schema": {
  8263. "type": "object",
  8264. "properties": {
  8265. "location": {
  8266. "$ref": "#/components/schemas/Location.Info"
  8267. },
  8268. "data": {
  8269. "$ref": "#/components/schemas/Shell1"
  8270. }
  8271. },
  8272. "required": [
  8273. "location",
  8274. "data"
  8275. ],
  8276. "additionalProperties": false
  8277. }
  8278. }
  8279. }
  8280. },
  8281. "400": {
  8282. "description": "InvalidRequestError",
  8283. "content": {
  8284. "application/json": {
  8285. "schema": {
  8286. "$ref": "#/components/schemas/InvalidRequestError"
  8287. }
  8288. }
  8289. }
  8290. },
  8291. "401": {
  8292. "description": "UnauthorizedError",
  8293. "content": {
  8294. "application/json": {
  8295. "schema": {
  8296. "$ref": "#/components/schemas/UnauthorizedError"
  8297. }
  8298. }
  8299. }
  8300. }
  8301. },
  8302. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  8303. "summary": "Run shell command",
  8304. "requestBody": {
  8305. "content": {
  8306. "application/json": {
  8307. "schema": {
  8308. "type": "object",
  8309. "properties": {
  8310. "command": {
  8311. "type": "string"
  8312. },
  8313. "cwd": {
  8314. "type": "string"
  8315. },
  8316. "timeout": {
  8317. "type": "integer",
  8318. "allOf": [
  8319. {
  8320. "minimum": 0
  8321. }
  8322. ]
  8323. },
  8324. "metadata": {
  8325. "type": "object"
  8326. }
  8327. },
  8328. "required": [
  8329. "command"
  8330. ],
  8331. "additionalProperties": false
  8332. }
  8333. }
  8334. },
  8335. "required": true
  8336. }
  8337. }
  8338. },
  8339. "/api/shell/{id}": {
  8340. "get": {
  8341. "tags": [
  8342. "shell"
  8343. ],
  8344. "operationId": "v2.shell.get",
  8345. "parameters": [
  8346. {
  8347. "name": "id",
  8348. "in": "path",
  8349. "schema": {
  8350. "type": "string",
  8351. "allOf": [
  8352. {
  8353. "pattern": "^sh_"
  8354. }
  8355. ]
  8356. },
  8357. "required": true
  8358. },
  8359. {
  8360. "name": "location",
  8361. "in": "query",
  8362. "schema": {
  8363. "anyOf": [
  8364. {
  8365. "type": "object",
  8366. "properties": {
  8367. "directory": {
  8368. "anyOf": [
  8369. {
  8370. "type": "string"
  8371. },
  8372. {
  8373. "type": "null"
  8374. }
  8375. ]
  8376. },
  8377. "workspace": {
  8378. "anyOf": [
  8379. {
  8380. "type": "string"
  8381. },
  8382. {
  8383. "type": "null"
  8384. }
  8385. ]
  8386. }
  8387. },
  8388. "additionalProperties": false
  8389. },
  8390. {
  8391. "type": "null"
  8392. }
  8393. ]
  8394. },
  8395. "required": false,
  8396. "style": "deepObject",
  8397. "explode": true
  8398. }
  8399. ],
  8400. "security": [],
  8401. "responses": {
  8402. "200": {
  8403. "description": "Success",
  8404. "content": {
  8405. "application/json": {
  8406. "schema": {
  8407. "type": "object",
  8408. "properties": {
  8409. "location": {
  8410. "$ref": "#/components/schemas/Location.Info"
  8411. },
  8412. "data": {
  8413. "$ref": "#/components/schemas/Shell1"
  8414. }
  8415. },
  8416. "required": [
  8417. "location",
  8418. "data"
  8419. ],
  8420. "additionalProperties": false
  8421. }
  8422. }
  8423. }
  8424. },
  8425. "400": {
  8426. "description": "InvalidRequestError",
  8427. "content": {
  8428. "application/json": {
  8429. "schema": {
  8430. "$ref": "#/components/schemas/InvalidRequestError"
  8431. }
  8432. }
  8433. }
  8434. },
  8435. "401": {
  8436. "description": "UnauthorizedError",
  8437. "content": {
  8438. "application/json": {
  8439. "schema": {
  8440. "$ref": "#/components/schemas/UnauthorizedError"
  8441. }
  8442. }
  8443. }
  8444. },
  8445. "404": {
  8446. "description": "ShellNotFoundError",
  8447. "content": {
  8448. "application/json": {
  8449. "schema": {
  8450. "$ref": "#/components/schemas/ShellNotFoundError"
  8451. }
  8452. }
  8453. }
  8454. }
  8455. },
  8456. "description": "Get one shell command, including its status and exit code once exited.",
  8457. "summary": "Get shell command"
  8458. },
  8459. "delete": {
  8460. "tags": [
  8461. "shell"
  8462. ],
  8463. "operationId": "v2.shell.remove",
  8464. "parameters": [
  8465. {
  8466. "name": "id",
  8467. "in": "path",
  8468. "schema": {
  8469. "type": "string",
  8470. "allOf": [
  8471. {
  8472. "pattern": "^sh_"
  8473. }
  8474. ]
  8475. },
  8476. "required": true
  8477. },
  8478. {
  8479. "name": "location",
  8480. "in": "query",
  8481. "schema": {
  8482. "anyOf": [
  8483. {
  8484. "type": "object",
  8485. "properties": {
  8486. "directory": {
  8487. "anyOf": [
  8488. {
  8489. "type": "string"
  8490. },
  8491. {
  8492. "type": "null"
  8493. }
  8494. ]
  8495. },
  8496. "workspace": {
  8497. "anyOf": [
  8498. {
  8499. "type": "string"
  8500. },
  8501. {
  8502. "type": "null"
  8503. }
  8504. ]
  8505. }
  8506. },
  8507. "additionalProperties": false
  8508. },
  8509. {
  8510. "type": "null"
  8511. }
  8512. ]
  8513. },
  8514. "required": false,
  8515. "style": "deepObject",
  8516. "explode": true
  8517. }
  8518. ],
  8519. "security": [],
  8520. "responses": {
  8521. "204": {
  8522. "description": "<No Content>"
  8523. },
  8524. "400": {
  8525. "description": "InvalidRequestError",
  8526. "content": {
  8527. "application/json": {
  8528. "schema": {
  8529. "$ref": "#/components/schemas/InvalidRequestError"
  8530. }
  8531. }
  8532. }
  8533. },
  8534. "401": {
  8535. "description": "UnauthorizedError",
  8536. "content": {
  8537. "application/json": {
  8538. "schema": {
  8539. "$ref": "#/components/schemas/UnauthorizedError"
  8540. }
  8541. }
  8542. }
  8543. },
  8544. "404": {
  8545. "description": "ShellNotFoundError",
  8546. "content": {
  8547. "application/json": {
  8548. "schema": {
  8549. "$ref": "#/components/schemas/ShellNotFoundError"
  8550. }
  8551. }
  8552. }
  8553. }
  8554. },
  8555. "description": "Terminate and remove one shell command and its retained output.",
  8556. "summary": "Remove shell command"
  8557. }
  8558. },
  8559. "/api/shell/{id}/output": {
  8560. "get": {
  8561. "tags": [
  8562. "shell"
  8563. ],
  8564. "operationId": "v2.shell.output",
  8565. "parameters": [
  8566. {
  8567. "name": "id",
  8568. "in": "path",
  8569. "schema": {
  8570. "type": "string",
  8571. "allOf": [
  8572. {
  8573. "pattern": "^sh_"
  8574. }
  8575. ]
  8576. },
  8577. "required": true
  8578. },
  8579. {
  8580. "name": "location",
  8581. "in": "query",
  8582. "schema": {
  8583. "anyOf": [
  8584. {
  8585. "type": "object",
  8586. "properties": {
  8587. "directory": {
  8588. "anyOf": [
  8589. {
  8590. "type": "string"
  8591. },
  8592. {
  8593. "type": "null"
  8594. }
  8595. ]
  8596. },
  8597. "workspace": {
  8598. "anyOf": [
  8599. {
  8600. "type": "string"
  8601. },
  8602. {
  8603. "type": "null"
  8604. }
  8605. ]
  8606. }
  8607. },
  8608. "additionalProperties": false
  8609. },
  8610. {
  8611. "type": "null"
  8612. }
  8613. ]
  8614. },
  8615. "required": false,
  8616. "style": "deepObject",
  8617. "explode": true
  8618. },
  8619. {
  8620. "name": "cursor",
  8621. "in": "query",
  8622. "schema": {
  8623. "type": "string",
  8624. "allOf": [
  8625. {
  8626. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  8627. }
  8628. ]
  8629. },
  8630. "required": false
  8631. },
  8632. {
  8633. "name": "limit",
  8634. "in": "query",
  8635. "schema": {
  8636. "type": "string",
  8637. "allOf": [
  8638. {
  8639. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  8640. }
  8641. ]
  8642. },
  8643. "required": false
  8644. }
  8645. ],
  8646. "security": [],
  8647. "responses": {
  8648. "200": {
  8649. "description": "Success",
  8650. "content": {
  8651. "application/json": {
  8652. "schema": {
  8653. "type": "object",
  8654. "properties": {
  8655. "location": {
  8656. "$ref": "#/components/schemas/Location.Info"
  8657. },
  8658. "data": {
  8659. "type": "object",
  8660. "properties": {
  8661. "output": {
  8662. "type": "string"
  8663. },
  8664. "cursor": {
  8665. "type": "integer",
  8666. "allOf": [
  8667. {
  8668. "minimum": 0
  8669. }
  8670. ]
  8671. },
  8672. "size": {
  8673. "type": "integer",
  8674. "allOf": [
  8675. {
  8676. "minimum": 0
  8677. }
  8678. ]
  8679. },
  8680. "truncated": {
  8681. "type": "boolean"
  8682. }
  8683. },
  8684. "required": [
  8685. "output",
  8686. "cursor",
  8687. "size",
  8688. "truncated"
  8689. ],
  8690. "additionalProperties": false
  8691. }
  8692. },
  8693. "required": [
  8694. "location",
  8695. "data"
  8696. ],
  8697. "additionalProperties": false
  8698. }
  8699. }
  8700. }
  8701. },
  8702. "400": {
  8703. "description": "InvalidRequestError",
  8704. "content": {
  8705. "application/json": {
  8706. "schema": {
  8707. "$ref": "#/components/schemas/InvalidRequestError"
  8708. }
  8709. }
  8710. }
  8711. },
  8712. "401": {
  8713. "description": "UnauthorizedError",
  8714. "content": {
  8715. "application/json": {
  8716. "schema": {
  8717. "$ref": "#/components/schemas/UnauthorizedError"
  8718. }
  8719. }
  8720. }
  8721. },
  8722. "404": {
  8723. "description": "ShellNotFoundError",
  8724. "content": {
  8725. "application/json": {
  8726. "schema": {
  8727. "$ref": "#/components/schemas/ShellNotFoundError"
  8728. }
  8729. }
  8730. }
  8731. }
  8732. },
  8733. "description": "Page through captured combined output by absolute byte cursor.",
  8734. "summary": "Read shell output"
  8735. }
  8736. },
  8737. "/api/question/request": {
  8738. "get": {
  8739. "tags": [
  8740. "session questions"
  8741. ],
  8742. "operationId": "v2.question.request.list",
  8743. "parameters": [
  8744. {
  8745. "name": "location",
  8746. "in": "query",
  8747. "schema": {
  8748. "anyOf": [
  8749. {
  8750. "type": "object",
  8751. "properties": {
  8752. "directory": {
  8753. "anyOf": [
  8754. {
  8755. "type": "string"
  8756. },
  8757. {
  8758. "type": "null"
  8759. }
  8760. ]
  8761. },
  8762. "workspace": {
  8763. "anyOf": [
  8764. {
  8765. "type": "string"
  8766. },
  8767. {
  8768. "type": "null"
  8769. }
  8770. ]
  8771. }
  8772. },
  8773. "additionalProperties": false
  8774. },
  8775. {
  8776. "type": "null"
  8777. }
  8778. ]
  8779. },
  8780. "required": false,
  8781. "style": "deepObject",
  8782. "explode": true
  8783. }
  8784. ],
  8785. "security": [],
  8786. "responses": {
  8787. "200": {
  8788. "description": "Success",
  8789. "content": {
  8790. "application/json": {
  8791. "schema": {
  8792. "type": "object",
  8793. "properties": {
  8794. "location": {
  8795. "$ref": "#/components/schemas/Location.Info"
  8796. },
  8797. "data": {
  8798. "type": "array",
  8799. "items": {
  8800. "$ref": "#/components/schemas/QuestionV2.Request"
  8801. }
  8802. }
  8803. },
  8804. "required": [
  8805. "location",
  8806. "data"
  8807. ],
  8808. "additionalProperties": false
  8809. }
  8810. }
  8811. }
  8812. },
  8813. "400": {
  8814. "description": "InvalidRequestError",
  8815. "content": {
  8816. "application/json": {
  8817. "schema": {
  8818. "$ref": "#/components/schemas/InvalidRequestError"
  8819. }
  8820. }
  8821. }
  8822. },
  8823. "401": {
  8824. "description": "UnauthorizedError",
  8825. "content": {
  8826. "application/json": {
  8827. "schema": {
  8828. "$ref": "#/components/schemas/UnauthorizedError"
  8829. }
  8830. }
  8831. }
  8832. }
  8833. },
  8834. "description": "Retrieve pending question requests for a location.",
  8835. "summary": "List pending question requests"
  8836. }
  8837. },
  8838. "/api/session/{sessionID}/question": {
  8839. "get": {
  8840. "tags": [
  8841. "session questions"
  8842. ],
  8843. "operationId": "v2.session.question.list",
  8844. "parameters": [
  8845. {
  8846. "name": "sessionID",
  8847. "in": "path",
  8848. "schema": {
  8849. "type": "string",
  8850. "allOf": [
  8851. {
  8852. "pattern": "^ses"
  8853. }
  8854. ]
  8855. },
  8856. "required": true
  8857. }
  8858. ],
  8859. "security": [],
  8860. "responses": {
  8861. "200": {
  8862. "description": "Success",
  8863. "content": {
  8864. "application/json": {
  8865. "schema": {
  8866. "type": "object",
  8867. "properties": {
  8868. "data": {
  8869. "type": "array",
  8870. "items": {
  8871. "$ref": "#/components/schemas/QuestionV2.Request"
  8872. }
  8873. }
  8874. },
  8875. "required": [
  8876. "data"
  8877. ],
  8878. "additionalProperties": false
  8879. }
  8880. }
  8881. }
  8882. },
  8883. "400": {
  8884. "description": "InvalidRequestError",
  8885. "content": {
  8886. "application/json": {
  8887. "schema": {
  8888. "$ref": "#/components/schemas/InvalidRequestError"
  8889. }
  8890. }
  8891. }
  8892. },
  8893. "401": {
  8894. "description": "UnauthorizedError",
  8895. "content": {
  8896. "application/json": {
  8897. "schema": {
  8898. "$ref": "#/components/schemas/UnauthorizedError"
  8899. }
  8900. }
  8901. }
  8902. },
  8903. "404": {
  8904. "description": "SessionNotFoundError",
  8905. "content": {
  8906. "application/json": {
  8907. "schema": {
  8908. "anyOf": [
  8909. {
  8910. "$ref": "#/components/schemas/SessionNotFoundError"
  8911. },
  8912. {
  8913. "$ref": "#/components/schemas/SessionNotFoundError"
  8914. }
  8915. ]
  8916. }
  8917. }
  8918. }
  8919. }
  8920. },
  8921. "description": "Retrieve pending question requests owned by a session.",
  8922. "summary": "List session question requests"
  8923. }
  8924. },
  8925. "/api/session/{sessionID}/question/{requestID}/reply": {
  8926. "post": {
  8927. "tags": [
  8928. "session questions"
  8929. ],
  8930. "operationId": "v2.session.question.reply",
  8931. "parameters": [
  8932. {
  8933. "name": "sessionID",
  8934. "in": "path",
  8935. "schema": {
  8936. "type": "string",
  8937. "allOf": [
  8938. {
  8939. "pattern": "^ses"
  8940. }
  8941. ]
  8942. },
  8943. "required": true
  8944. },
  8945. {
  8946. "name": "requestID",
  8947. "in": "path",
  8948. "schema": {
  8949. "type": "string",
  8950. "allOf": [
  8951. {
  8952. "pattern": "^que"
  8953. }
  8954. ]
  8955. },
  8956. "required": true
  8957. }
  8958. ],
  8959. "security": [],
  8960. "responses": {
  8961. "204": {
  8962. "description": "<No Content>"
  8963. },
  8964. "400": {
  8965. "description": "InvalidRequestError",
  8966. "content": {
  8967. "application/json": {
  8968. "schema": {
  8969. "$ref": "#/components/schemas/InvalidRequestError"
  8970. }
  8971. }
  8972. }
  8973. },
  8974. "401": {
  8975. "description": "UnauthorizedError",
  8976. "content": {
  8977. "application/json": {
  8978. "schema": {
  8979. "$ref": "#/components/schemas/UnauthorizedError"
  8980. }
  8981. }
  8982. }
  8983. },
  8984. "404": {
  8985. "description": "SessionNotFoundError | QuestionNotFoundError",
  8986. "content": {
  8987. "application/json": {
  8988. "schema": {
  8989. "anyOf": [
  8990. {
  8991. "$ref": "#/components/schemas/QuestionNotFoundError"
  8992. },
  8993. {
  8994. "$ref": "#/components/schemas/SessionNotFoundError"
  8995. },
  8996. {
  8997. "$ref": "#/components/schemas/SessionNotFoundError"
  8998. }
  8999. ]
  9000. }
  9001. }
  9002. }
  9003. }
  9004. },
  9005. "description": "Answer a pending question request owned by a session.",
  9006. "summary": "Reply to pending question request",
  9007. "requestBody": {
  9008. "content": {
  9009. "application/json": {
  9010. "schema": {
  9011. "$ref": "#/components/schemas/QuestionV2.Reply"
  9012. }
  9013. }
  9014. },
  9015. "required": true
  9016. }
  9017. }
  9018. },
  9019. "/api/session/{sessionID}/question/{requestID}/reject": {
  9020. "post": {
  9021. "tags": [
  9022. "session questions"
  9023. ],
  9024. "operationId": "v2.session.question.reject",
  9025. "parameters": [
  9026. {
  9027. "name": "sessionID",
  9028. "in": "path",
  9029. "schema": {
  9030. "type": "string",
  9031. "allOf": [
  9032. {
  9033. "pattern": "^ses"
  9034. }
  9035. ]
  9036. },
  9037. "required": true
  9038. },
  9039. {
  9040. "name": "requestID",
  9041. "in": "path",
  9042. "schema": {
  9043. "type": "string",
  9044. "allOf": [
  9045. {
  9046. "pattern": "^que"
  9047. }
  9048. ]
  9049. },
  9050. "required": true
  9051. }
  9052. ],
  9053. "security": [],
  9054. "responses": {
  9055. "204": {
  9056. "description": "<No Content>"
  9057. },
  9058. "400": {
  9059. "description": "InvalidRequestError",
  9060. "content": {
  9061. "application/json": {
  9062. "schema": {
  9063. "$ref": "#/components/schemas/InvalidRequestError"
  9064. }
  9065. }
  9066. }
  9067. },
  9068. "401": {
  9069. "description": "UnauthorizedError",
  9070. "content": {
  9071. "application/json": {
  9072. "schema": {
  9073. "$ref": "#/components/schemas/UnauthorizedError"
  9074. }
  9075. }
  9076. }
  9077. },
  9078. "404": {
  9079. "description": "SessionNotFoundError | QuestionNotFoundError",
  9080. "content": {
  9081. "application/json": {
  9082. "schema": {
  9083. "anyOf": [
  9084. {
  9085. "$ref": "#/components/schemas/QuestionNotFoundError"
  9086. },
  9087. {
  9088. "$ref": "#/components/schemas/SessionNotFoundError"
  9089. },
  9090. {
  9091. "$ref": "#/components/schemas/SessionNotFoundError"
  9092. }
  9093. ]
  9094. }
  9095. }
  9096. }
  9097. }
  9098. },
  9099. "description": "Reject a pending question request owned by a session.",
  9100. "summary": "Reject pending question request"
  9101. }
  9102. },
  9103. "/api/reference": {
  9104. "get": {
  9105. "tags": [
  9106. "reference"
  9107. ],
  9108. "operationId": "v2.reference.list",
  9109. "parameters": [
  9110. {
  9111. "name": "location",
  9112. "in": "query",
  9113. "schema": {
  9114. "anyOf": [
  9115. {
  9116. "type": "object",
  9117. "properties": {
  9118. "directory": {
  9119. "anyOf": [
  9120. {
  9121. "type": "string"
  9122. },
  9123. {
  9124. "type": "null"
  9125. }
  9126. ]
  9127. },
  9128. "workspace": {
  9129. "anyOf": [
  9130. {
  9131. "type": "string"
  9132. },
  9133. {
  9134. "type": "null"
  9135. }
  9136. ]
  9137. }
  9138. },
  9139. "additionalProperties": false
  9140. },
  9141. {
  9142. "type": "null"
  9143. }
  9144. ]
  9145. },
  9146. "required": false,
  9147. "style": "deepObject",
  9148. "explode": true
  9149. }
  9150. ],
  9151. "security": [],
  9152. "responses": {
  9153. "200": {
  9154. "description": "Success",
  9155. "content": {
  9156. "application/json": {
  9157. "schema": {
  9158. "type": "object",
  9159. "properties": {
  9160. "location": {
  9161. "$ref": "#/components/schemas/Location.Info"
  9162. },
  9163. "data": {
  9164. "type": "array",
  9165. "items": {
  9166. "$ref": "#/components/schemas/Reference.Info"
  9167. }
  9168. }
  9169. },
  9170. "required": [
  9171. "location",
  9172. "data"
  9173. ],
  9174. "additionalProperties": false
  9175. }
  9176. }
  9177. }
  9178. },
  9179. "400": {
  9180. "description": "InvalidRequestError",
  9181. "content": {
  9182. "application/json": {
  9183. "schema": {
  9184. "$ref": "#/components/schemas/InvalidRequestError"
  9185. }
  9186. }
  9187. }
  9188. },
  9189. "401": {
  9190. "description": "UnauthorizedError",
  9191. "content": {
  9192. "application/json": {
  9193. "schema": {
  9194. "$ref": "#/components/schemas/UnauthorizedError"
  9195. }
  9196. }
  9197. }
  9198. }
  9199. },
  9200. "description": "List references available in the requested location.",
  9201. "summary": "List references"
  9202. }
  9203. },
  9204. "/experimental/project/{projectID}/copy": {
  9205. "post": {
  9206. "tags": [
  9207. "projectCopy"
  9208. ],
  9209. "operationId": "v2.projectCopy.create",
  9210. "parameters": [
  9211. {
  9212. "name": "projectID",
  9213. "in": "path",
  9214. "schema": {
  9215. "type": "string"
  9216. },
  9217. "required": true
  9218. },
  9219. {
  9220. "name": "location",
  9221. "in": "query",
  9222. "schema": {
  9223. "anyOf": [
  9224. {
  9225. "type": "object",
  9226. "properties": {
  9227. "directory": {
  9228. "anyOf": [
  9229. {
  9230. "type": "string"
  9231. },
  9232. {
  9233. "type": "null"
  9234. }
  9235. ]
  9236. },
  9237. "workspace": {
  9238. "anyOf": [
  9239. {
  9240. "type": "string"
  9241. },
  9242. {
  9243. "type": "null"
  9244. }
  9245. ]
  9246. }
  9247. },
  9248. "additionalProperties": false
  9249. },
  9250. {
  9251. "type": "null"
  9252. }
  9253. ]
  9254. },
  9255. "required": false,
  9256. "style": "deepObject",
  9257. "explode": true
  9258. }
  9259. ],
  9260. "security": [],
  9261. "responses": {
  9262. "200": {
  9263. "description": "ProjectCopy.Copy",
  9264. "content": {
  9265. "application/json": {
  9266. "schema": {
  9267. "$ref": "#/components/schemas/ProjectCopy.Copy"
  9268. }
  9269. }
  9270. }
  9271. },
  9272. "400": {
  9273. "description": "ProjectCopyError | InvalidRequestError",
  9274. "content": {
  9275. "application/json": {
  9276. "schema": {
  9277. "anyOf": [
  9278. {
  9279. "$ref": "#/components/schemas/ProjectCopyError"
  9280. },
  9281. {
  9282. "$ref": "#/components/schemas/InvalidRequestError"
  9283. }
  9284. ]
  9285. }
  9286. }
  9287. }
  9288. },
  9289. "401": {
  9290. "description": "UnauthorizedError",
  9291. "content": {
  9292. "application/json": {
  9293. "schema": {
  9294. "$ref": "#/components/schemas/UnauthorizedError"
  9295. }
  9296. }
  9297. }
  9298. }
  9299. },
  9300. "requestBody": {
  9301. "content": {
  9302. "application/json": {
  9303. "schema": {
  9304. "type": "object",
  9305. "properties": {
  9306. "strategy": {
  9307. "type": "string"
  9308. },
  9309. "directory": {
  9310. "type": "string"
  9311. },
  9312. "name": {
  9313. "type": "string"
  9314. }
  9315. },
  9316. "required": [
  9317. "strategy",
  9318. "directory"
  9319. ],
  9320. "additionalProperties": false
  9321. }
  9322. }
  9323. },
  9324. "required": true
  9325. }
  9326. },
  9327. "delete": {
  9328. "tags": [
  9329. "projectCopy"
  9330. ],
  9331. "operationId": "v2.projectCopy.remove",
  9332. "parameters": [
  9333. {
  9334. "name": "projectID",
  9335. "in": "path",
  9336. "schema": {
  9337. "type": "string"
  9338. },
  9339. "required": true
  9340. },
  9341. {
  9342. "name": "location",
  9343. "in": "query",
  9344. "schema": {
  9345. "anyOf": [
  9346. {
  9347. "type": "object",
  9348. "properties": {
  9349. "directory": {
  9350. "anyOf": [
  9351. {
  9352. "type": "string"
  9353. },
  9354. {
  9355. "type": "null"
  9356. }
  9357. ]
  9358. },
  9359. "workspace": {
  9360. "anyOf": [
  9361. {
  9362. "type": "string"
  9363. },
  9364. {
  9365. "type": "null"
  9366. }
  9367. ]
  9368. }
  9369. },
  9370. "additionalProperties": false
  9371. },
  9372. {
  9373. "type": "null"
  9374. }
  9375. ]
  9376. },
  9377. "required": false,
  9378. "style": "deepObject",
  9379. "explode": true
  9380. }
  9381. ],
  9382. "security": [],
  9383. "responses": {
  9384. "204": {
  9385. "description": "<No Content>"
  9386. },
  9387. "400": {
  9388. "description": "ProjectCopyError | InvalidRequestError",
  9389. "content": {
  9390. "application/json": {
  9391. "schema": {
  9392. "anyOf": [
  9393. {
  9394. "$ref": "#/components/schemas/ProjectCopyError"
  9395. },
  9396. {
  9397. "$ref": "#/components/schemas/InvalidRequestError"
  9398. }
  9399. ]
  9400. }
  9401. }
  9402. }
  9403. },
  9404. "401": {
  9405. "description": "UnauthorizedError",
  9406. "content": {
  9407. "application/json": {
  9408. "schema": {
  9409. "$ref": "#/components/schemas/UnauthorizedError"
  9410. }
  9411. }
  9412. }
  9413. }
  9414. },
  9415. "requestBody": {
  9416. "content": {
  9417. "application/json": {
  9418. "schema": {
  9419. "type": "object",
  9420. "properties": {
  9421. "directory": {
  9422. "type": "string"
  9423. },
  9424. "force": {
  9425. "type": "boolean"
  9426. }
  9427. },
  9428. "required": [
  9429. "directory",
  9430. "force"
  9431. ],
  9432. "additionalProperties": false
  9433. }
  9434. }
  9435. },
  9436. "required": true
  9437. }
  9438. }
  9439. },
  9440. "/experimental/project/{projectID}/copy/refresh": {
  9441. "post": {
  9442. "tags": [
  9443. "projectCopy"
  9444. ],
  9445. "operationId": "v2.projectCopy.refresh",
  9446. "parameters": [
  9447. {
  9448. "name": "projectID",
  9449. "in": "path",
  9450. "schema": {
  9451. "type": "string"
  9452. },
  9453. "required": true
  9454. },
  9455. {
  9456. "name": "location",
  9457. "in": "query",
  9458. "schema": {
  9459. "anyOf": [
  9460. {
  9461. "type": "object",
  9462. "properties": {
  9463. "directory": {
  9464. "anyOf": [
  9465. {
  9466. "type": "string"
  9467. },
  9468. {
  9469. "type": "null"
  9470. }
  9471. ]
  9472. },
  9473. "workspace": {
  9474. "anyOf": [
  9475. {
  9476. "type": "string"
  9477. },
  9478. {
  9479. "type": "null"
  9480. }
  9481. ]
  9482. }
  9483. },
  9484. "additionalProperties": false
  9485. },
  9486. {
  9487. "type": "null"
  9488. }
  9489. ]
  9490. },
  9491. "required": false,
  9492. "style": "deepObject",
  9493. "explode": true
  9494. }
  9495. ],
  9496. "security": [],
  9497. "responses": {
  9498. "204": {
  9499. "description": "<No Content>"
  9500. },
  9501. "400": {
  9502. "description": "ProjectCopyError | InvalidRequestError",
  9503. "content": {
  9504. "application/json": {
  9505. "schema": {
  9506. "anyOf": [
  9507. {
  9508. "$ref": "#/components/schemas/ProjectCopyError"
  9509. },
  9510. {
  9511. "$ref": "#/components/schemas/InvalidRequestError"
  9512. }
  9513. ]
  9514. }
  9515. }
  9516. }
  9517. },
  9518. "401": {
  9519. "description": "UnauthorizedError",
  9520. "content": {
  9521. "application/json": {
  9522. "schema": {
  9523. "$ref": "#/components/schemas/UnauthorizedError"
  9524. }
  9525. }
  9526. }
  9527. }
  9528. }
  9529. }
  9530. },
  9531. "/api/vcs/status": {
  9532. "get": {
  9533. "tags": [
  9534. "vcs"
  9535. ],
  9536. "operationId": "v2.vcs.status",
  9537. "parameters": [
  9538. {
  9539. "name": "location",
  9540. "in": "query",
  9541. "schema": {
  9542. "anyOf": [
  9543. {
  9544. "type": "object",
  9545. "properties": {
  9546. "directory": {
  9547. "anyOf": [
  9548. {
  9549. "type": "string"
  9550. },
  9551. {
  9552. "type": "null"
  9553. }
  9554. ]
  9555. },
  9556. "workspace": {
  9557. "anyOf": [
  9558. {
  9559. "type": "string"
  9560. },
  9561. {
  9562. "type": "null"
  9563. }
  9564. ]
  9565. }
  9566. },
  9567. "additionalProperties": false
  9568. },
  9569. {
  9570. "type": "null"
  9571. }
  9572. ]
  9573. },
  9574. "required": false,
  9575. "style": "deepObject",
  9576. "explode": true
  9577. }
  9578. ],
  9579. "security": [],
  9580. "responses": {
  9581. "200": {
  9582. "description": "Success",
  9583. "content": {
  9584. "application/json": {
  9585. "schema": {
  9586. "type": "object",
  9587. "properties": {
  9588. "location": {
  9589. "$ref": "#/components/schemas/Location.Info"
  9590. },
  9591. "data": {
  9592. "type": "array",
  9593. "items": {
  9594. "$ref": "#/components/schemas/Vcs.FileStatus"
  9595. }
  9596. }
  9597. },
  9598. "required": [
  9599. "location",
  9600. "data"
  9601. ],
  9602. "additionalProperties": false
  9603. }
  9604. }
  9605. }
  9606. },
  9607. "400": {
  9608. "description": "InvalidRequestError",
  9609. "content": {
  9610. "application/json": {
  9611. "schema": {
  9612. "$ref": "#/components/schemas/InvalidRequestError"
  9613. }
  9614. }
  9615. }
  9616. },
  9617. "401": {
  9618. "description": "UnauthorizedError",
  9619. "content": {
  9620. "application/json": {
  9621. "schema": {
  9622. "$ref": "#/components/schemas/UnauthorizedError"
  9623. }
  9624. }
  9625. }
  9626. }
  9627. },
  9628. "description": "List uncommitted working-copy changes relative to the requested location.",
  9629. "summary": "VCS status"
  9630. }
  9631. },
  9632. "/api/vcs/diff": {
  9633. "get": {
  9634. "tags": [
  9635. "vcs"
  9636. ],
  9637. "operationId": "v2.vcs.diff",
  9638. "parameters": [
  9639. {
  9640. "name": "location",
  9641. "in": "query",
  9642. "schema": {
  9643. "anyOf": [
  9644. {
  9645. "type": "object",
  9646. "properties": {
  9647. "directory": {
  9648. "anyOf": [
  9649. {
  9650. "type": "string"
  9651. },
  9652. {
  9653. "type": "null"
  9654. }
  9655. ]
  9656. },
  9657. "workspace": {
  9658. "anyOf": [
  9659. {
  9660. "type": "string"
  9661. },
  9662. {
  9663. "type": "null"
  9664. }
  9665. ]
  9666. }
  9667. },
  9668. "additionalProperties": false
  9669. },
  9670. {
  9671. "type": "null"
  9672. }
  9673. ]
  9674. },
  9675. "required": false,
  9676. "style": "deepObject",
  9677. "explode": true
  9678. },
  9679. {
  9680. "name": "mode",
  9681. "in": "query",
  9682. "schema": {
  9683. "$ref": "#/components/schemas/Vcs.Mode"
  9684. },
  9685. "required": true
  9686. },
  9687. {
  9688. "name": "context",
  9689. "in": "query",
  9690. "schema": {
  9691. "anyOf": [
  9692. {
  9693. "type": "string"
  9694. },
  9695. {
  9696. "type": "null"
  9697. }
  9698. ]
  9699. },
  9700. "required": false
  9701. }
  9702. ],
  9703. "security": [],
  9704. "responses": {
  9705. "200": {
  9706. "description": "Success",
  9707. "content": {
  9708. "application/json": {
  9709. "schema": {
  9710. "type": "object",
  9711. "properties": {
  9712. "location": {
  9713. "$ref": "#/components/schemas/Location.Info"
  9714. },
  9715. "data": {
  9716. "type": "array",
  9717. "items": {
  9718. "$ref": "#/components/schemas/SnapshotFileDiff"
  9719. }
  9720. }
  9721. },
  9722. "required": [
  9723. "location",
  9724. "data"
  9725. ],
  9726. "additionalProperties": false
  9727. }
  9728. }
  9729. }
  9730. },
  9731. "400": {
  9732. "description": "InvalidRequestError",
  9733. "content": {
  9734. "application/json": {
  9735. "schema": {
  9736. "$ref": "#/components/schemas/InvalidRequestError"
  9737. }
  9738. }
  9739. }
  9740. },
  9741. "401": {
  9742. "description": "UnauthorizedError",
  9743. "content": {
  9744. "application/json": {
  9745. "schema": {
  9746. "$ref": "#/components/schemas/UnauthorizedError"
  9747. }
  9748. }
  9749. }
  9750. }
  9751. },
  9752. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  9753. "summary": "VCS diff"
  9754. }
  9755. }
  9756. },
  9757. "components": {
  9758. "schemas": {
  9759. "UnauthorizedError": {
  9760. "type": "object",
  9761. "properties": {
  9762. "_tag": {
  9763. "type": "string",
  9764. "enum": [
  9765. "UnauthorizedError"
  9766. ]
  9767. },
  9768. "message": {
  9769. "type": "string"
  9770. }
  9771. },
  9772. "required": [
  9773. "_tag",
  9774. "message"
  9775. ],
  9776. "additionalProperties": false
  9777. },
  9778. "InvalidRequestError": {
  9779. "type": "object",
  9780. "properties": {
  9781. "_tag": {
  9782. "type": "string",
  9783. "enum": [
  9784. "InvalidRequestError"
  9785. ]
  9786. },
  9787. "message": {
  9788. "type": "string"
  9789. },
  9790. "kind": {
  9791. "anyOf": [
  9792. {
  9793. "type": "string"
  9794. },
  9795. {
  9796. "type": "null"
  9797. }
  9798. ]
  9799. },
  9800. "field": {
  9801. "anyOf": [
  9802. {
  9803. "type": "string"
  9804. },
  9805. {
  9806. "type": "null"
  9807. }
  9808. ]
  9809. }
  9810. },
  9811. "required": [
  9812. "_tag",
  9813. "message"
  9814. ],
  9815. "additionalProperties": false
  9816. },
  9817. "Location.Info": {
  9818. "type": "object",
  9819. "properties": {
  9820. "directory": {
  9821. "type": "string"
  9822. },
  9823. "workspaceID": {
  9824. "type": "string",
  9825. "allOf": [
  9826. {
  9827. "pattern": "^wrk"
  9828. }
  9829. ]
  9830. },
  9831. "project": {
  9832. "type": "object",
  9833. "properties": {
  9834. "id": {
  9835. "type": "string"
  9836. },
  9837. "directory": {
  9838. "type": "string"
  9839. }
  9840. },
  9841. "required": [
  9842. "id",
  9843. "directory"
  9844. ],
  9845. "additionalProperties": false
  9846. }
  9847. },
  9848. "required": [
  9849. "directory",
  9850. "project"
  9851. ],
  9852. "additionalProperties": false
  9853. },
  9854. "Model.Ref": {
  9855. "type": "object",
  9856. "properties": {
  9857. "id": {
  9858. "type": "string"
  9859. },
  9860. "providerID": {
  9861. "type": "string"
  9862. },
  9863. "variant": {
  9864. "type": "string"
  9865. }
  9866. },
  9867. "required": [
  9868. "id",
  9869. "providerID"
  9870. ],
  9871. "additionalProperties": false
  9872. },
  9873. "Provider.Settings": {
  9874. "type": "object"
  9875. },
  9876. "Provider.Request": {
  9877. "type": "object",
  9878. "properties": {
  9879. "settings": {
  9880. "$ref": "#/components/schemas/Provider.Settings"
  9881. },
  9882. "headers": {
  9883. "type": "object",
  9884. "additionalProperties": {
  9885. "type": "string"
  9886. }
  9887. },
  9888. "body": {
  9889. "type": "object"
  9890. }
  9891. },
  9892. "required": [
  9893. "settings",
  9894. "headers",
  9895. "body"
  9896. ],
  9897. "additionalProperties": false
  9898. },
  9899. "Agent.Color": {
  9900. "anyOf": [
  9901. {
  9902. "type": "string",
  9903. "allOf": [
  9904. {
  9905. "pattern": "^#[0-9a-fA-F]{6}$"
  9906. }
  9907. ]
  9908. },
  9909. {
  9910. "type": "string",
  9911. "enum": [
  9912. "primary",
  9913. "secondary",
  9914. "accent",
  9915. "success",
  9916. "warning",
  9917. "error",
  9918. "info"
  9919. ]
  9920. }
  9921. ]
  9922. },
  9923. "PermissionV2.Effect": {
  9924. "type": "string",
  9925. "enum": [
  9926. "allow",
  9927. "deny",
  9928. "ask"
  9929. ]
  9930. },
  9931. "PermissionV2.Rule": {
  9932. "type": "object",
  9933. "properties": {
  9934. "action": {
  9935. "type": "string"
  9936. },
  9937. "resource": {
  9938. "type": "string"
  9939. },
  9940. "effect": {
  9941. "$ref": "#/components/schemas/PermissionV2.Effect"
  9942. }
  9943. },
  9944. "required": [
  9945. "action",
  9946. "resource",
  9947. "effect"
  9948. ],
  9949. "additionalProperties": false
  9950. },
  9951. "PermissionV2.Ruleset": {
  9952. "type": "array",
  9953. "items": {
  9954. "$ref": "#/components/schemas/PermissionV2.Rule"
  9955. }
  9956. },
  9957. "AgentV2.Info": {
  9958. "type": "object",
  9959. "properties": {
  9960. "id": {
  9961. "type": "string"
  9962. },
  9963. "model": {
  9964. "$ref": "#/components/schemas/Model.Ref"
  9965. },
  9966. "request": {
  9967. "$ref": "#/components/schemas/Provider.Request"
  9968. },
  9969. "system": {
  9970. "type": "string"
  9971. },
  9972. "description": {
  9973. "type": "string"
  9974. },
  9975. "mode": {
  9976. "type": "string",
  9977. "enum": [
  9978. "subagent",
  9979. "primary",
  9980. "all"
  9981. ]
  9982. },
  9983. "hidden": {
  9984. "type": "boolean"
  9985. },
  9986. "color": {
  9987. "$ref": "#/components/schemas/Agent.Color"
  9988. },
  9989. "steps": {
  9990. "type": "integer",
  9991. "allOf": [
  9992. {
  9993. "exclusiveMinimum": 0
  9994. }
  9995. ]
  9996. },
  9997. "permissions": {
  9998. "$ref": "#/components/schemas/PermissionV2.Ruleset"
  9999. }
  10000. },
  10001. "required": [
  10002. "id",
  10003. "request",
  10004. "mode",
  10005. "hidden",
  10006. "permissions"
  10007. ],
  10008. "additionalProperties": false
  10009. },
  10010. "Plugin.Info": {
  10011. "type": "object",
  10012. "properties": {
  10013. "id": {
  10014. "type": "string"
  10015. }
  10016. },
  10017. "required": [
  10018. "id"
  10019. ],
  10020. "additionalProperties": false
  10021. },
  10022. "Location.Ref": {
  10023. "type": "object",
  10024. "properties": {
  10025. "directory": {
  10026. "type": "string"
  10027. },
  10028. "workspaceID": {
  10029. "type": "string",
  10030. "allOf": [
  10031. {
  10032. "pattern": "^wrk"
  10033. }
  10034. ]
  10035. }
  10036. },
  10037. "required": [
  10038. "directory"
  10039. ],
  10040. "additionalProperties": false
  10041. },
  10042. "File.Diff": {
  10043. "type": "object",
  10044. "properties": {
  10045. "path": {
  10046. "type": "string"
  10047. },
  10048. "status": {
  10049. "type": "string",
  10050. "enum": [
  10051. "added",
  10052. "modified",
  10053. "deleted"
  10054. ]
  10055. },
  10056. "additions": {
  10057. "type": "integer",
  10058. "allOf": [
  10059. {
  10060. "minimum": 0
  10061. }
  10062. ]
  10063. },
  10064. "deletions": {
  10065. "type": "integer",
  10066. "allOf": [
  10067. {
  10068. "minimum": 0
  10069. }
  10070. ]
  10071. },
  10072. "patch": {
  10073. "type": "string"
  10074. }
  10075. },
  10076. "required": [
  10077. "path",
  10078. "status",
  10079. "additions",
  10080. "deletions",
  10081. "patch"
  10082. ],
  10083. "additionalProperties": false
  10084. },
  10085. "Revert.State": {
  10086. "type": "object",
  10087. "properties": {
  10088. "messageID": {
  10089. "type": "string",
  10090. "allOf": [
  10091. {
  10092. "pattern": "^msg_"
  10093. }
  10094. ]
  10095. },
  10096. "partID": {
  10097. "type": "string"
  10098. },
  10099. "snapshot": {
  10100. "type": "string"
  10101. },
  10102. "diff": {
  10103. "type": "string"
  10104. },
  10105. "files": {
  10106. "type": "array",
  10107. "items": {
  10108. "$ref": "#/components/schemas/File.Diff"
  10109. }
  10110. }
  10111. },
  10112. "required": [
  10113. "messageID"
  10114. ],
  10115. "additionalProperties": false
  10116. },
  10117. "SessionV2.Info": {
  10118. "type": "object",
  10119. "properties": {
  10120. "id": {
  10121. "type": "string",
  10122. "allOf": [
  10123. {
  10124. "pattern": "^ses"
  10125. }
  10126. ]
  10127. },
  10128. "parentID": {
  10129. "type": "string",
  10130. "allOf": [
  10131. {
  10132. "pattern": "^ses"
  10133. }
  10134. ]
  10135. },
  10136. "projectID": {
  10137. "type": "string"
  10138. },
  10139. "agent": {
  10140. "type": "string"
  10141. },
  10142. "model": {
  10143. "$ref": "#/components/schemas/Model.Ref"
  10144. },
  10145. "cost": {
  10146. "type": "number"
  10147. },
  10148. "tokens": {
  10149. "type": "object",
  10150. "properties": {
  10151. "input": {
  10152. "type": "number"
  10153. },
  10154. "output": {
  10155. "type": "number"
  10156. },
  10157. "reasoning": {
  10158. "type": "number"
  10159. },
  10160. "cache": {
  10161. "type": "object",
  10162. "properties": {
  10163. "read": {
  10164. "type": "number"
  10165. },
  10166. "write": {
  10167. "type": "number"
  10168. }
  10169. },
  10170. "required": [
  10171. "read",
  10172. "write"
  10173. ],
  10174. "additionalProperties": false
  10175. }
  10176. },
  10177. "required": [
  10178. "input",
  10179. "output",
  10180. "reasoning",
  10181. "cache"
  10182. ],
  10183. "additionalProperties": false
  10184. },
  10185. "time": {
  10186. "type": "object",
  10187. "properties": {
  10188. "created": {
  10189. "type": "number"
  10190. },
  10191. "updated": {
  10192. "type": "number"
  10193. },
  10194. "archived": {
  10195. "type": "number"
  10196. }
  10197. },
  10198. "required": [
  10199. "created",
  10200. "updated"
  10201. ],
  10202. "additionalProperties": false
  10203. },
  10204. "title": {
  10205. "type": "string"
  10206. },
  10207. "location": {
  10208. "$ref": "#/components/schemas/Location.Ref"
  10209. },
  10210. "subpath": {
  10211. "type": "string"
  10212. },
  10213. "revert": {
  10214. "$ref": "#/components/schemas/Revert.State"
  10215. }
  10216. },
  10217. "required": [
  10218. "id",
  10219. "projectID",
  10220. "cost",
  10221. "tokens",
  10222. "time",
  10223. "title",
  10224. "location"
  10225. ],
  10226. "additionalProperties": false
  10227. },
  10228. "SessionWatermarks": {
  10229. "type": "object",
  10230. "patternProperties": {
  10231. "^ses": {
  10232. "type": "integer",
  10233. "allOf": [
  10234. {
  10235. "minimum": 0
  10236. }
  10237. ]
  10238. }
  10239. },
  10240. "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."
  10241. },
  10242. "SessionsResponse": {
  10243. "type": "object",
  10244. "properties": {
  10245. "data": {
  10246. "type": "array",
  10247. "items": {
  10248. "$ref": "#/components/schemas/SessionV2.Info"
  10249. }
  10250. },
  10251. "watermarks": {
  10252. "$ref": "#/components/schemas/SessionWatermarks"
  10253. },
  10254. "cursor": {
  10255. "type": "object",
  10256. "properties": {
  10257. "previous": {
  10258. "anyOf": [
  10259. {
  10260. "type": "string"
  10261. },
  10262. {
  10263. "type": "null"
  10264. }
  10265. ]
  10266. },
  10267. "next": {
  10268. "anyOf": [
  10269. {
  10270. "type": "string"
  10271. },
  10272. {
  10273. "type": "null"
  10274. }
  10275. ]
  10276. }
  10277. },
  10278. "additionalProperties": false
  10279. }
  10280. },
  10281. "required": [
  10282. "data",
  10283. "watermarks",
  10284. "cursor"
  10285. ],
  10286. "additionalProperties": false
  10287. },
  10288. "InvalidCursorError": {
  10289. "type": "object",
  10290. "properties": {
  10291. "_tag": {
  10292. "type": "string",
  10293. "enum": [
  10294. "InvalidCursorError"
  10295. ]
  10296. },
  10297. "message": {
  10298. "type": "string"
  10299. }
  10300. },
  10301. "required": [
  10302. "_tag",
  10303. "message"
  10304. ],
  10305. "additionalProperties": false
  10306. },
  10307. "InvalidRequestError1": {
  10308. "type": "object",
  10309. "properties": {
  10310. "_tag": {
  10311. "type": "string",
  10312. "enum": [
  10313. "InvalidRequestError"
  10314. ]
  10315. },
  10316. "message": {
  10317. "type": "string"
  10318. },
  10319. "kind": {
  10320. "anyOf": [
  10321. {
  10322. "type": "string"
  10323. },
  10324. {
  10325. "type": "null"
  10326. }
  10327. ]
  10328. },
  10329. "field": {
  10330. "anyOf": [
  10331. {
  10332. "type": "string"
  10333. },
  10334. {
  10335. "type": "null"
  10336. }
  10337. ]
  10338. }
  10339. },
  10340. "required": [
  10341. "_tag",
  10342. "message"
  10343. ],
  10344. "additionalProperties": false
  10345. },
  10346. "SessionActive": {
  10347. "type": "object",
  10348. "properties": {
  10349. "type": {
  10350. "type": "string",
  10351. "enum": [
  10352. "running"
  10353. ]
  10354. }
  10355. },
  10356. "required": [
  10357. "type"
  10358. ],
  10359. "additionalProperties": false
  10360. },
  10361. "SessionNotFoundError": {
  10362. "type": "object",
  10363. "properties": {
  10364. "_tag": {
  10365. "type": "string",
  10366. "enum": [
  10367. "SessionNotFoundError"
  10368. ]
  10369. },
  10370. "sessionID": {
  10371. "type": "string"
  10372. },
  10373. "message": {
  10374. "type": "string"
  10375. }
  10376. },
  10377. "required": [
  10378. "_tag",
  10379. "sessionID",
  10380. "message"
  10381. ],
  10382. "additionalProperties": false
  10383. },
  10384. "MessageNotFoundError": {
  10385. "type": "object",
  10386. "properties": {
  10387. "_tag": {
  10388. "type": "string",
  10389. "enum": [
  10390. "MessageNotFoundError"
  10391. ]
  10392. },
  10393. "sessionID": {
  10394. "type": "string"
  10395. },
  10396. "messageID": {
  10397. "type": "string"
  10398. },
  10399. "message": {
  10400. "type": "string"
  10401. }
  10402. },
  10403. "required": [
  10404. "_tag",
  10405. "sessionID",
  10406. "messageID",
  10407. "message"
  10408. ],
  10409. "additionalProperties": false
  10410. },
  10411. "Prompt.Source": {
  10412. "type": "object",
  10413. "properties": {
  10414. "start": {
  10415. "type": "number"
  10416. },
  10417. "end": {
  10418. "type": "number"
  10419. },
  10420. "text": {
  10421. "type": "string"
  10422. }
  10423. },
  10424. "required": [
  10425. "start",
  10426. "end",
  10427. "text"
  10428. ],
  10429. "additionalProperties": false
  10430. },
  10431. "PromptInput.FileAttachment": {
  10432. "type": "object",
  10433. "properties": {
  10434. "uri": {
  10435. "type": "string"
  10436. },
  10437. "name": {
  10438. "type": "string"
  10439. },
  10440. "description": {
  10441. "type": "string"
  10442. },
  10443. "source": {
  10444. "$ref": "#/components/schemas/Prompt.Source"
  10445. }
  10446. },
  10447. "required": [
  10448. "uri"
  10449. ],
  10450. "additionalProperties": false
  10451. },
  10452. "Prompt.AgentAttachment": {
  10453. "type": "object",
  10454. "properties": {
  10455. "name": {
  10456. "type": "string"
  10457. },
  10458. "source": {
  10459. "$ref": "#/components/schemas/Prompt.Source"
  10460. }
  10461. },
  10462. "required": [
  10463. "name"
  10464. ],
  10465. "additionalProperties": false
  10466. },
  10467. "PromptInput": {
  10468. "type": "object",
  10469. "properties": {
  10470. "text": {
  10471. "type": "string"
  10472. },
  10473. "files": {
  10474. "type": "array",
  10475. "items": {
  10476. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  10477. }
  10478. },
  10479. "agents": {
  10480. "type": "array",
  10481. "items": {
  10482. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  10483. }
  10484. }
  10485. },
  10486. "required": [
  10487. "text"
  10488. ],
  10489. "additionalProperties": false
  10490. },
  10491. "Prompt.FileAttachment": {
  10492. "type": "object",
  10493. "properties": {
  10494. "uri": {
  10495. "type": "string"
  10496. },
  10497. "mime": {
  10498. "type": "string"
  10499. },
  10500. "name": {
  10501. "type": "string"
  10502. },
  10503. "description": {
  10504. "type": "string"
  10505. },
  10506. "source": {
  10507. "$ref": "#/components/schemas/Prompt.Source"
  10508. }
  10509. },
  10510. "required": [
  10511. "uri",
  10512. "mime"
  10513. ],
  10514. "additionalProperties": false
  10515. },
  10516. "Prompt": {
  10517. "type": "object",
  10518. "properties": {
  10519. "text": {
  10520. "type": "string"
  10521. },
  10522. "files": {
  10523. "type": "array",
  10524. "items": {
  10525. "$ref": "#/components/schemas/Prompt.FileAttachment"
  10526. }
  10527. },
  10528. "agents": {
  10529. "type": "array",
  10530. "items": {
  10531. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  10532. }
  10533. }
  10534. },
  10535. "required": [
  10536. "text"
  10537. ],
  10538. "additionalProperties": false
  10539. },
  10540. "SessionInput.Admitted": {
  10541. "type": "object",
  10542. "properties": {
  10543. "admittedSeq": {
  10544. "type": "integer",
  10545. "allOf": [
  10546. {
  10547. "minimum": 0
  10548. }
  10549. ]
  10550. },
  10551. "id": {
  10552. "type": "string",
  10553. "allOf": [
  10554. {
  10555. "pattern": "^msg_"
  10556. }
  10557. ]
  10558. },
  10559. "sessionID": {
  10560. "type": "string",
  10561. "allOf": [
  10562. {
  10563. "pattern": "^ses"
  10564. }
  10565. ]
  10566. },
  10567. "prompt": {
  10568. "$ref": "#/components/schemas/Prompt"
  10569. },
  10570. "delivery": {
  10571. "type": "string",
  10572. "enum": [
  10573. "steer",
  10574. "queue"
  10575. ]
  10576. },
  10577. "timeCreated": {
  10578. "type": "number"
  10579. },
  10580. "promotedSeq": {
  10581. "type": "integer",
  10582. "allOf": [
  10583. {
  10584. "minimum": 0
  10585. }
  10586. ]
  10587. }
  10588. },
  10589. "required": [
  10590. "admittedSeq",
  10591. "id",
  10592. "sessionID",
  10593. "prompt",
  10594. "delivery",
  10595. "timeCreated"
  10596. ],
  10597. "additionalProperties": false
  10598. },
  10599. "ConflictError": {
  10600. "type": "object",
  10601. "properties": {
  10602. "_tag": {
  10603. "type": "string",
  10604. "enum": [
  10605. "ConflictError"
  10606. ]
  10607. },
  10608. "message": {
  10609. "type": "string"
  10610. },
  10611. "resource": {
  10612. "anyOf": [
  10613. {
  10614. "type": "string"
  10615. },
  10616. {
  10617. "type": "null"
  10618. }
  10619. ]
  10620. }
  10621. },
  10622. "required": [
  10623. "_tag",
  10624. "message"
  10625. ],
  10626. "additionalProperties": false
  10627. },
  10628. "CommandNotFoundError": {
  10629. "type": "object",
  10630. "properties": {
  10631. "_tag": {
  10632. "type": "string",
  10633. "enum": [
  10634. "CommandNotFoundError"
  10635. ]
  10636. },
  10637. "command": {
  10638. "type": "string"
  10639. },
  10640. "message": {
  10641. "type": "string"
  10642. }
  10643. },
  10644. "required": [
  10645. "_tag",
  10646. "command",
  10647. "message"
  10648. ],
  10649. "additionalProperties": false
  10650. },
  10651. "CommandEvaluationError": {
  10652. "type": "object",
  10653. "properties": {
  10654. "_tag": {
  10655. "type": "string",
  10656. "enum": [
  10657. "CommandEvaluationError"
  10658. ]
  10659. },
  10660. "command": {
  10661. "type": "string"
  10662. },
  10663. "message": {
  10664. "type": "string"
  10665. }
  10666. },
  10667. "required": [
  10668. "_tag",
  10669. "command",
  10670. "message"
  10671. ],
  10672. "additionalProperties": false
  10673. },
  10674. "SkillNotFoundError": {
  10675. "type": "object",
  10676. "properties": {
  10677. "_tag": {
  10678. "type": "string",
  10679. "enum": [
  10680. "SkillNotFoundError"
  10681. ]
  10682. },
  10683. "skill": {
  10684. "type": "string"
  10685. },
  10686. "message": {
  10687. "type": "string"
  10688. }
  10689. },
  10690. "required": [
  10691. "_tag",
  10692. "skill",
  10693. "message"
  10694. ],
  10695. "additionalProperties": false
  10696. },
  10697. "SessionBusyError": {
  10698. "type": "object",
  10699. "properties": {
  10700. "_tag": {
  10701. "type": "string",
  10702. "enum": [
  10703. "SessionBusyError"
  10704. ]
  10705. },
  10706. "sessionID": {
  10707. "type": "string"
  10708. },
  10709. "message": {
  10710. "type": "string"
  10711. }
  10712. },
  10713. "required": [
  10714. "_tag",
  10715. "sessionID",
  10716. "message"
  10717. ],
  10718. "additionalProperties": false
  10719. },
  10720. "ServiceUnavailableError": {
  10721. "type": "object",
  10722. "properties": {
  10723. "_tag": {
  10724. "type": "string",
  10725. "enum": [
  10726. "ServiceUnavailableError"
  10727. ]
  10728. },
  10729. "message": {
  10730. "type": "string"
  10731. },
  10732. "service": {
  10733. "anyOf": [
  10734. {
  10735. "type": "string"
  10736. },
  10737. {
  10738. "type": "null"
  10739. }
  10740. ]
  10741. }
  10742. },
  10743. "required": [
  10744. "_tag",
  10745. "message"
  10746. ],
  10747. "additionalProperties": false
  10748. },
  10749. "UnknownError": {
  10750. "type": "object",
  10751. "properties": {
  10752. "_tag": {
  10753. "type": "string",
  10754. "enum": [
  10755. "UnknownError"
  10756. ]
  10757. },
  10758. "message": {
  10759. "type": "string"
  10760. },
  10761. "ref": {
  10762. "anyOf": [
  10763. {
  10764. "type": "string"
  10765. },
  10766. {
  10767. "type": "null"
  10768. }
  10769. ]
  10770. }
  10771. },
  10772. "required": [
  10773. "_tag",
  10774. "message"
  10775. ],
  10776. "additionalProperties": false
  10777. },
  10778. "Session.Message.AgentSwitched": {
  10779. "type": "object",
  10780. "properties": {
  10781. "id": {
  10782. "type": "string",
  10783. "allOf": [
  10784. {
  10785. "pattern": "^msg_"
  10786. }
  10787. ]
  10788. },
  10789. "metadata": {
  10790. "type": "object"
  10791. },
  10792. "time": {
  10793. "type": "object",
  10794. "properties": {
  10795. "created": {
  10796. "type": "number"
  10797. }
  10798. },
  10799. "required": [
  10800. "created"
  10801. ],
  10802. "additionalProperties": false
  10803. },
  10804. "type": {
  10805. "type": "string",
  10806. "enum": [
  10807. "agent-switched"
  10808. ]
  10809. },
  10810. "agent": {
  10811. "type": "string"
  10812. }
  10813. },
  10814. "required": [
  10815. "id",
  10816. "time",
  10817. "type",
  10818. "agent"
  10819. ],
  10820. "additionalProperties": false
  10821. },
  10822. "Session.Message.ModelSwitched": {
  10823. "type": "object",
  10824. "properties": {
  10825. "id": {
  10826. "type": "string",
  10827. "allOf": [
  10828. {
  10829. "pattern": "^msg_"
  10830. }
  10831. ]
  10832. },
  10833. "metadata": {
  10834. "type": "object"
  10835. },
  10836. "time": {
  10837. "type": "object",
  10838. "properties": {
  10839. "created": {
  10840. "type": "number"
  10841. }
  10842. },
  10843. "required": [
  10844. "created"
  10845. ],
  10846. "additionalProperties": false
  10847. },
  10848. "type": {
  10849. "type": "string",
  10850. "enum": [
  10851. "model-switched"
  10852. ]
  10853. },
  10854. "model": {
  10855. "$ref": "#/components/schemas/Model.Ref"
  10856. }
  10857. },
  10858. "required": [
  10859. "id",
  10860. "time",
  10861. "type",
  10862. "model"
  10863. ],
  10864. "additionalProperties": false
  10865. },
  10866. "Session.Message.User": {
  10867. "type": "object",
  10868. "properties": {
  10869. "id": {
  10870. "type": "string",
  10871. "allOf": [
  10872. {
  10873. "pattern": "^msg_"
  10874. }
  10875. ]
  10876. },
  10877. "metadata": {
  10878. "type": "object"
  10879. },
  10880. "time": {
  10881. "type": "object",
  10882. "properties": {
  10883. "created": {
  10884. "type": "number"
  10885. }
  10886. },
  10887. "required": [
  10888. "created"
  10889. ],
  10890. "additionalProperties": false
  10891. },
  10892. "text": {
  10893. "type": "string"
  10894. },
  10895. "files": {
  10896. "type": "array",
  10897. "items": {
  10898. "$ref": "#/components/schemas/Prompt.FileAttachment"
  10899. }
  10900. },
  10901. "agents": {
  10902. "type": "array",
  10903. "items": {
  10904. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  10905. }
  10906. },
  10907. "type": {
  10908. "type": "string",
  10909. "enum": [
  10910. "user"
  10911. ]
  10912. }
  10913. },
  10914. "required": [
  10915. "id",
  10916. "time",
  10917. "text",
  10918. "type"
  10919. ],
  10920. "additionalProperties": false
  10921. },
  10922. "Session.Message.Synthetic": {
  10923. "type": "object",
  10924. "properties": {
  10925. "id": {
  10926. "type": "string",
  10927. "allOf": [
  10928. {
  10929. "pattern": "^msg_"
  10930. }
  10931. ]
  10932. },
  10933. "metadata": {
  10934. "type": "object"
  10935. },
  10936. "time": {
  10937. "type": "object",
  10938. "properties": {
  10939. "created": {
  10940. "type": "number"
  10941. }
  10942. },
  10943. "required": [
  10944. "created"
  10945. ],
  10946. "additionalProperties": false
  10947. },
  10948. "sessionID": {
  10949. "type": "string",
  10950. "allOf": [
  10951. {
  10952. "pattern": "^ses"
  10953. }
  10954. ]
  10955. },
  10956. "text": {
  10957. "type": "string"
  10958. },
  10959. "description": {
  10960. "type": "string"
  10961. },
  10962. "type": {
  10963. "type": "string",
  10964. "enum": [
  10965. "synthetic"
  10966. ]
  10967. }
  10968. },
  10969. "required": [
  10970. "id",
  10971. "time",
  10972. "sessionID",
  10973. "text",
  10974. "type"
  10975. ],
  10976. "additionalProperties": false
  10977. },
  10978. "Session.Message.System": {
  10979. "type": "object",
  10980. "properties": {
  10981. "id": {
  10982. "type": "string",
  10983. "allOf": [
  10984. {
  10985. "pattern": "^msg_"
  10986. }
  10987. ]
  10988. },
  10989. "metadata": {
  10990. "type": "object"
  10991. },
  10992. "time": {
  10993. "type": "object",
  10994. "properties": {
  10995. "created": {
  10996. "type": "number"
  10997. }
  10998. },
  10999. "required": [
  11000. "created"
  11001. ],
  11002. "additionalProperties": false
  11003. },
  11004. "type": {
  11005. "type": "string",
  11006. "enum": [
  11007. "system"
  11008. ]
  11009. },
  11010. "text": {
  11011. "type": "string"
  11012. }
  11013. },
  11014. "required": [
  11015. "id",
  11016. "time",
  11017. "type",
  11018. "text"
  11019. ],
  11020. "additionalProperties": false
  11021. },
  11022. "Session.Message.Skill": {
  11023. "type": "object",
  11024. "properties": {
  11025. "id": {
  11026. "type": "string",
  11027. "allOf": [
  11028. {
  11029. "pattern": "^msg_"
  11030. }
  11031. ]
  11032. },
  11033. "metadata": {
  11034. "type": "object"
  11035. },
  11036. "time": {
  11037. "type": "object",
  11038. "properties": {
  11039. "created": {
  11040. "type": "number"
  11041. }
  11042. },
  11043. "required": [
  11044. "created"
  11045. ],
  11046. "additionalProperties": false
  11047. },
  11048. "type": {
  11049. "type": "string",
  11050. "enum": [
  11051. "skill"
  11052. ]
  11053. },
  11054. "name": {
  11055. "type": "string"
  11056. },
  11057. "text": {
  11058. "type": "string"
  11059. }
  11060. },
  11061. "required": [
  11062. "id",
  11063. "time",
  11064. "type",
  11065. "name",
  11066. "text"
  11067. ],
  11068. "additionalProperties": false
  11069. },
  11070. "Session.Message.Shell": {
  11071. "type": "object",
  11072. "properties": {
  11073. "id": {
  11074. "type": "string",
  11075. "allOf": [
  11076. {
  11077. "pattern": "^msg_"
  11078. }
  11079. ]
  11080. },
  11081. "metadata": {
  11082. "type": "object"
  11083. },
  11084. "time": {
  11085. "type": "object",
  11086. "properties": {
  11087. "created": {
  11088. "type": "number"
  11089. },
  11090. "completed": {
  11091. "type": "number"
  11092. }
  11093. },
  11094. "required": [
  11095. "created"
  11096. ],
  11097. "additionalProperties": false
  11098. },
  11099. "type": {
  11100. "type": "string",
  11101. "enum": [
  11102. "shell"
  11103. ]
  11104. },
  11105. "callID": {
  11106. "type": "string"
  11107. },
  11108. "command": {
  11109. "type": "string"
  11110. },
  11111. "output": {
  11112. "type": "string"
  11113. }
  11114. },
  11115. "required": [
  11116. "id",
  11117. "time",
  11118. "type",
  11119. "callID",
  11120. "command",
  11121. "output"
  11122. ],
  11123. "additionalProperties": false
  11124. },
  11125. "Session.Message.Assistant.Text": {
  11126. "type": "object",
  11127. "properties": {
  11128. "type": {
  11129. "type": "string",
  11130. "enum": [
  11131. "text"
  11132. ]
  11133. },
  11134. "id": {
  11135. "type": "string"
  11136. },
  11137. "text": {
  11138. "type": "string"
  11139. }
  11140. },
  11141. "required": [
  11142. "type",
  11143. "id",
  11144. "text"
  11145. ],
  11146. "additionalProperties": false
  11147. },
  11148. "LLM.ProviderMetadata": {
  11149. "type": "object",
  11150. "additionalProperties": {
  11151. "type": "object"
  11152. }
  11153. },
  11154. "Session.Message.Assistant.Reasoning": {
  11155. "type": "object",
  11156. "properties": {
  11157. "type": {
  11158. "type": "string",
  11159. "enum": [
  11160. "reasoning"
  11161. ]
  11162. },
  11163. "id": {
  11164. "type": "string"
  11165. },
  11166. "text": {
  11167. "type": "string"
  11168. },
  11169. "providerMetadata": {
  11170. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  11171. },
  11172. "time": {
  11173. "type": "object",
  11174. "properties": {
  11175. "created": {
  11176. "type": "number"
  11177. },
  11178. "completed": {
  11179. "type": "number"
  11180. }
  11181. },
  11182. "required": [
  11183. "created"
  11184. ],
  11185. "additionalProperties": false
  11186. }
  11187. },
  11188. "required": [
  11189. "type",
  11190. "id",
  11191. "text"
  11192. ],
  11193. "additionalProperties": false
  11194. },
  11195. "Session.Message.ToolState.Pending": {
  11196. "type": "object",
  11197. "properties": {
  11198. "status": {
  11199. "type": "string",
  11200. "enum": [
  11201. "pending"
  11202. ]
  11203. },
  11204. "input": {
  11205. "type": "string"
  11206. }
  11207. },
  11208. "required": [
  11209. "status",
  11210. "input"
  11211. ],
  11212. "additionalProperties": false
  11213. },
  11214. "Tool.TextContent": {
  11215. "type": "object",
  11216. "properties": {
  11217. "type": {
  11218. "type": "string",
  11219. "enum": [
  11220. "text"
  11221. ]
  11222. },
  11223. "text": {
  11224. "type": "string"
  11225. }
  11226. },
  11227. "required": [
  11228. "type",
  11229. "text"
  11230. ],
  11231. "additionalProperties": false
  11232. },
  11233. "Tool.FileContent": {
  11234. "type": "object",
  11235. "properties": {
  11236. "type": {
  11237. "type": "string",
  11238. "enum": [
  11239. "file"
  11240. ]
  11241. },
  11242. "uri": {
  11243. "type": "string"
  11244. },
  11245. "mime": {
  11246. "type": "string"
  11247. },
  11248. "name": {
  11249. "type": "string"
  11250. }
  11251. },
  11252. "required": [
  11253. "type",
  11254. "uri",
  11255. "mime"
  11256. ],
  11257. "additionalProperties": false
  11258. },
  11259. "LLM.ToolContent": {
  11260. "anyOf": [
  11261. {
  11262. "$ref": "#/components/schemas/Tool.TextContent"
  11263. },
  11264. {
  11265. "$ref": "#/components/schemas/Tool.FileContent"
  11266. }
  11267. ]
  11268. },
  11269. "Session.Message.ToolState.Running": {
  11270. "type": "object",
  11271. "properties": {
  11272. "status": {
  11273. "type": "string",
  11274. "enum": [
  11275. "running"
  11276. ]
  11277. },
  11278. "input": {
  11279. "type": "object"
  11280. },
  11281. "structured": {
  11282. "type": "object"
  11283. },
  11284. "content": {
  11285. "type": "array",
  11286. "items": {
  11287. "$ref": "#/components/schemas/LLM.ToolContent"
  11288. }
  11289. }
  11290. },
  11291. "required": [
  11292. "status",
  11293. "input",
  11294. "structured",
  11295. "content"
  11296. ],
  11297. "additionalProperties": false
  11298. },
  11299. "Session.Message.ToolState.Completed": {
  11300. "type": "object",
  11301. "properties": {
  11302. "status": {
  11303. "type": "string",
  11304. "enum": [
  11305. "completed"
  11306. ]
  11307. },
  11308. "input": {
  11309. "type": "object"
  11310. },
  11311. "attachments": {
  11312. "type": "array",
  11313. "items": {
  11314. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11315. }
  11316. },
  11317. "content": {
  11318. "type": "array",
  11319. "items": {
  11320. "$ref": "#/components/schemas/LLM.ToolContent"
  11321. }
  11322. },
  11323. "outputPaths": {
  11324. "type": "array",
  11325. "items": {
  11326. "type": "string"
  11327. }
  11328. },
  11329. "structured": {
  11330. "type": "object"
  11331. },
  11332. "result": {}
  11333. },
  11334. "required": [
  11335. "status",
  11336. "input",
  11337. "content",
  11338. "structured"
  11339. ],
  11340. "additionalProperties": false
  11341. },
  11342. "Session.Error.Unknown": {
  11343. "type": "object",
  11344. "properties": {
  11345. "type": {
  11346. "type": "string",
  11347. "enum": [
  11348. "unknown"
  11349. ]
  11350. },
  11351. "message": {
  11352. "type": "string"
  11353. }
  11354. },
  11355. "required": [
  11356. "type",
  11357. "message"
  11358. ],
  11359. "additionalProperties": false
  11360. },
  11361. "Session.Message.ToolState.Error": {
  11362. "type": "object",
  11363. "properties": {
  11364. "status": {
  11365. "type": "string",
  11366. "enum": [
  11367. "error"
  11368. ]
  11369. },
  11370. "input": {
  11371. "type": "object"
  11372. },
  11373. "content": {
  11374. "type": "array",
  11375. "items": {
  11376. "$ref": "#/components/schemas/LLM.ToolContent"
  11377. }
  11378. },
  11379. "structured": {
  11380. "type": "object"
  11381. },
  11382. "error": {
  11383. "$ref": "#/components/schemas/Session.Error.Unknown"
  11384. },
  11385. "result": {}
  11386. },
  11387. "required": [
  11388. "status",
  11389. "input",
  11390. "content",
  11391. "structured",
  11392. "error"
  11393. ],
  11394. "additionalProperties": false
  11395. },
  11396. "Session.Message.Assistant.Tool": {
  11397. "type": "object",
  11398. "properties": {
  11399. "type": {
  11400. "type": "string",
  11401. "enum": [
  11402. "tool"
  11403. ]
  11404. },
  11405. "id": {
  11406. "type": "string"
  11407. },
  11408. "name": {
  11409. "type": "string"
  11410. },
  11411. "provider": {
  11412. "type": "object",
  11413. "properties": {
  11414. "executed": {
  11415. "type": "boolean"
  11416. },
  11417. "metadata": {
  11418. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  11419. },
  11420. "resultMetadata": {
  11421. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  11422. }
  11423. },
  11424. "required": [
  11425. "executed"
  11426. ],
  11427. "additionalProperties": false
  11428. },
  11429. "state": {
  11430. "anyOf": [
  11431. {
  11432. "$ref": "#/components/schemas/Session.Message.ToolState.Pending"
  11433. },
  11434. {
  11435. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  11436. },
  11437. {
  11438. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  11439. },
  11440. {
  11441. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  11442. }
  11443. ]
  11444. },
  11445. "time": {
  11446. "type": "object",
  11447. "properties": {
  11448. "created": {
  11449. "type": "number"
  11450. },
  11451. "ran": {
  11452. "type": "number"
  11453. },
  11454. "completed": {
  11455. "type": "number"
  11456. },
  11457. "pruned": {
  11458. "type": "number"
  11459. }
  11460. },
  11461. "required": [
  11462. "created"
  11463. ],
  11464. "additionalProperties": false
  11465. }
  11466. },
  11467. "required": [
  11468. "type",
  11469. "id",
  11470. "name",
  11471. "state",
  11472. "time"
  11473. ],
  11474. "additionalProperties": false
  11475. },
  11476. "Session.Message.Assistant": {
  11477. "type": "object",
  11478. "properties": {
  11479. "id": {
  11480. "type": "string",
  11481. "allOf": [
  11482. {
  11483. "pattern": "^msg_"
  11484. }
  11485. ]
  11486. },
  11487. "metadata": {
  11488. "type": "object"
  11489. },
  11490. "time": {
  11491. "type": "object",
  11492. "properties": {
  11493. "created": {
  11494. "type": "number"
  11495. },
  11496. "completed": {
  11497. "type": "number"
  11498. }
  11499. },
  11500. "required": [
  11501. "created"
  11502. ],
  11503. "additionalProperties": false
  11504. },
  11505. "type": {
  11506. "type": "string",
  11507. "enum": [
  11508. "assistant"
  11509. ]
  11510. },
  11511. "agent": {
  11512. "type": "string"
  11513. },
  11514. "model": {
  11515. "$ref": "#/components/schemas/Model.Ref"
  11516. },
  11517. "content": {
  11518. "type": "array",
  11519. "items": {
  11520. "anyOf": [
  11521. {
  11522. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  11523. },
  11524. {
  11525. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  11526. },
  11527. {
  11528. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  11529. }
  11530. ]
  11531. }
  11532. },
  11533. "snapshot": {
  11534. "type": "object",
  11535. "properties": {
  11536. "start": {
  11537. "type": "string"
  11538. },
  11539. "end": {
  11540. "type": "string"
  11541. },
  11542. "files": {
  11543. "type": "array",
  11544. "items": {
  11545. "type": "string"
  11546. }
  11547. }
  11548. },
  11549. "additionalProperties": false
  11550. },
  11551. "finish": {
  11552. "type": "string"
  11553. },
  11554. "cost": {
  11555. "type": "number"
  11556. },
  11557. "tokens": {
  11558. "type": "object",
  11559. "properties": {
  11560. "input": {
  11561. "type": "number"
  11562. },
  11563. "output": {
  11564. "type": "number"
  11565. },
  11566. "reasoning": {
  11567. "type": "number"
  11568. },
  11569. "cache": {
  11570. "type": "object",
  11571. "properties": {
  11572. "read": {
  11573. "type": "number"
  11574. },
  11575. "write": {
  11576. "type": "number"
  11577. }
  11578. },
  11579. "required": [
  11580. "read",
  11581. "write"
  11582. ],
  11583. "additionalProperties": false
  11584. }
  11585. },
  11586. "required": [
  11587. "input",
  11588. "output",
  11589. "reasoning",
  11590. "cache"
  11591. ],
  11592. "additionalProperties": false
  11593. },
  11594. "error": {
  11595. "$ref": "#/components/schemas/Session.Error.Unknown"
  11596. }
  11597. },
  11598. "required": [
  11599. "id",
  11600. "time",
  11601. "type",
  11602. "agent",
  11603. "model",
  11604. "content"
  11605. ],
  11606. "additionalProperties": false
  11607. },
  11608. "Session.Message.Compaction": {
  11609. "type": "object",
  11610. "properties": {
  11611. "type": {
  11612. "type": "string",
  11613. "enum": [
  11614. "compaction"
  11615. ]
  11616. },
  11617. "reason": {
  11618. "type": "string",
  11619. "enum": [
  11620. "auto",
  11621. "manual"
  11622. ]
  11623. },
  11624. "summary": {
  11625. "type": "string"
  11626. },
  11627. "recent": {
  11628. "type": "string"
  11629. },
  11630. "id": {
  11631. "type": "string",
  11632. "allOf": [
  11633. {
  11634. "pattern": "^msg_"
  11635. }
  11636. ]
  11637. },
  11638. "metadata": {
  11639. "type": "object"
  11640. },
  11641. "time": {
  11642. "type": "object",
  11643. "properties": {
  11644. "created": {
  11645. "type": "number"
  11646. }
  11647. },
  11648. "required": [
  11649. "created"
  11650. ],
  11651. "additionalProperties": false
  11652. }
  11653. },
  11654. "required": [
  11655. "type",
  11656. "reason",
  11657. "summary",
  11658. "recent",
  11659. "id",
  11660. "time"
  11661. ],
  11662. "additionalProperties": false
  11663. },
  11664. "Session.Message": {
  11665. "anyOf": [
  11666. {
  11667. "$ref": "#/components/schemas/Session.Message.AgentSwitched"
  11668. },
  11669. {
  11670. "$ref": "#/components/schemas/Session.Message.ModelSwitched"
  11671. },
  11672. {
  11673. "$ref": "#/components/schemas/Session.Message.User"
  11674. },
  11675. {
  11676. "$ref": "#/components/schemas/Session.Message.Synthetic"
  11677. },
  11678. {
  11679. "$ref": "#/components/schemas/Session.Message.System"
  11680. },
  11681. {
  11682. "$ref": "#/components/schemas/Session.Message.Skill"
  11683. },
  11684. {
  11685. "$ref": "#/components/schemas/Session.Message.Shell"
  11686. },
  11687. {
  11688. "$ref": "#/components/schemas/Session.Message.Assistant"
  11689. },
  11690. {
  11691. "$ref": "#/components/schemas/Session.Message.Compaction"
  11692. }
  11693. ]
  11694. },
  11695. "InstructionEntry.Key": {
  11696. "type": "string",
  11697. "allOf": [
  11698. {
  11699. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  11700. "description": "Context entry key (lowercase alphanumerics plus . _ -)"
  11701. }
  11702. ]
  11703. },
  11704. "InstructionEntry.Info": {
  11705. "type": "object",
  11706. "properties": {
  11707. "key": {
  11708. "$ref": "#/components/schemas/InstructionEntry.Key"
  11709. },
  11710. "value": {}
  11711. },
  11712. "required": [
  11713. "key",
  11714. "value"
  11715. ],
  11716. "additionalProperties": false
  11717. },
  11718. "session.next.agent.switched": {
  11719. "type": "object",
  11720. "properties": {
  11721. "id": {
  11722. "type": "string",
  11723. "allOf": [
  11724. {
  11725. "pattern": "^evt_"
  11726. }
  11727. ]
  11728. },
  11729. "metadata": {
  11730. "type": "object"
  11731. },
  11732. "type": {
  11733. "type": "string",
  11734. "enum": [
  11735. "session.next.agent.switched"
  11736. ]
  11737. },
  11738. "durable": {
  11739. "type": "object",
  11740. "properties": {
  11741. "aggregateID": {
  11742. "type": "string"
  11743. },
  11744. "seq": {
  11745. "type": "integer",
  11746. "allOf": [
  11747. {
  11748. "minimum": 0
  11749. }
  11750. ]
  11751. },
  11752. "version": {
  11753. "type": "integer",
  11754. "allOf": [
  11755. {
  11756. "minimum": 1
  11757. }
  11758. ]
  11759. }
  11760. },
  11761. "required": [
  11762. "aggregateID",
  11763. "seq",
  11764. "version"
  11765. ],
  11766. "additionalProperties": false
  11767. },
  11768. "location": {
  11769. "$ref": "#/components/schemas/Location.Ref"
  11770. },
  11771. "data": {
  11772. "type": "object",
  11773. "properties": {
  11774. "timestamp": {
  11775. "type": "number"
  11776. },
  11777. "sessionID": {
  11778. "type": "string",
  11779. "allOf": [
  11780. {
  11781. "pattern": "^ses"
  11782. }
  11783. ]
  11784. },
  11785. "messageID": {
  11786. "type": "string",
  11787. "allOf": [
  11788. {
  11789. "pattern": "^msg_"
  11790. }
  11791. ]
  11792. },
  11793. "agent": {
  11794. "type": "string"
  11795. }
  11796. },
  11797. "required": [
  11798. "timestamp",
  11799. "sessionID",
  11800. "messageID",
  11801. "agent"
  11802. ],
  11803. "additionalProperties": false
  11804. }
  11805. },
  11806. "required": [
  11807. "id",
  11808. "type",
  11809. "data"
  11810. ],
  11811. "additionalProperties": false
  11812. },
  11813. "session.next.model.switched": {
  11814. "type": "object",
  11815. "properties": {
  11816. "id": {
  11817. "type": "string",
  11818. "allOf": [
  11819. {
  11820. "pattern": "^evt_"
  11821. }
  11822. ]
  11823. },
  11824. "metadata": {
  11825. "type": "object"
  11826. },
  11827. "type": {
  11828. "type": "string",
  11829. "enum": [
  11830. "session.next.model.switched"
  11831. ]
  11832. },
  11833. "durable": {
  11834. "type": "object",
  11835. "properties": {
  11836. "aggregateID": {
  11837. "type": "string"
  11838. },
  11839. "seq": {
  11840. "type": "integer",
  11841. "allOf": [
  11842. {
  11843. "minimum": 0
  11844. }
  11845. ]
  11846. },
  11847. "version": {
  11848. "type": "integer",
  11849. "allOf": [
  11850. {
  11851. "minimum": 1
  11852. }
  11853. ]
  11854. }
  11855. },
  11856. "required": [
  11857. "aggregateID",
  11858. "seq",
  11859. "version"
  11860. ],
  11861. "additionalProperties": false
  11862. },
  11863. "location": {
  11864. "$ref": "#/components/schemas/Location.Ref"
  11865. },
  11866. "data": {
  11867. "type": "object",
  11868. "properties": {
  11869. "timestamp": {
  11870. "type": "number"
  11871. },
  11872. "sessionID": {
  11873. "type": "string",
  11874. "allOf": [
  11875. {
  11876. "pattern": "^ses"
  11877. }
  11878. ]
  11879. },
  11880. "messageID": {
  11881. "type": "string",
  11882. "allOf": [
  11883. {
  11884. "pattern": "^msg_"
  11885. }
  11886. ]
  11887. },
  11888. "model": {
  11889. "$ref": "#/components/schemas/Model.Ref"
  11890. }
  11891. },
  11892. "required": [
  11893. "timestamp",
  11894. "sessionID",
  11895. "messageID",
  11896. "model"
  11897. ],
  11898. "additionalProperties": false
  11899. }
  11900. },
  11901. "required": [
  11902. "id",
  11903. "type",
  11904. "data"
  11905. ],
  11906. "additionalProperties": false
  11907. },
  11908. "session.next.moved": {
  11909. "type": "object",
  11910. "properties": {
  11911. "id": {
  11912. "type": "string",
  11913. "allOf": [
  11914. {
  11915. "pattern": "^evt_"
  11916. }
  11917. ]
  11918. },
  11919. "metadata": {
  11920. "type": "object"
  11921. },
  11922. "type": {
  11923. "type": "string",
  11924. "enum": [
  11925. "session.next.moved"
  11926. ]
  11927. },
  11928. "durable": {
  11929. "type": "object",
  11930. "properties": {
  11931. "aggregateID": {
  11932. "type": "string"
  11933. },
  11934. "seq": {
  11935. "type": "integer",
  11936. "allOf": [
  11937. {
  11938. "minimum": 0
  11939. }
  11940. ]
  11941. },
  11942. "version": {
  11943. "type": "integer",
  11944. "allOf": [
  11945. {
  11946. "minimum": 1
  11947. }
  11948. ]
  11949. }
  11950. },
  11951. "required": [
  11952. "aggregateID",
  11953. "seq",
  11954. "version"
  11955. ],
  11956. "additionalProperties": false
  11957. },
  11958. "location": {
  11959. "$ref": "#/components/schemas/Location.Ref"
  11960. },
  11961. "data": {
  11962. "type": "object",
  11963. "properties": {
  11964. "timestamp": {
  11965. "type": "number"
  11966. },
  11967. "sessionID": {
  11968. "type": "string",
  11969. "allOf": [
  11970. {
  11971. "pattern": "^ses"
  11972. }
  11973. ]
  11974. },
  11975. "location": {
  11976. "$ref": "#/components/schemas/Location.Ref"
  11977. },
  11978. "subdirectory": {
  11979. "type": "string"
  11980. }
  11981. },
  11982. "required": [
  11983. "timestamp",
  11984. "sessionID",
  11985. "location"
  11986. ],
  11987. "additionalProperties": false
  11988. }
  11989. },
  11990. "required": [
  11991. "id",
  11992. "type",
  11993. "data"
  11994. ],
  11995. "additionalProperties": false
  11996. },
  11997. "session.next.renamed": {
  11998. "type": "object",
  11999. "properties": {
  12000. "id": {
  12001. "type": "string",
  12002. "allOf": [
  12003. {
  12004. "pattern": "^evt_"
  12005. }
  12006. ]
  12007. },
  12008. "metadata": {
  12009. "type": "object"
  12010. },
  12011. "type": {
  12012. "type": "string",
  12013. "enum": [
  12014. "session.next.renamed"
  12015. ]
  12016. },
  12017. "durable": {
  12018. "type": "object",
  12019. "properties": {
  12020. "aggregateID": {
  12021. "type": "string"
  12022. },
  12023. "seq": {
  12024. "type": "integer",
  12025. "allOf": [
  12026. {
  12027. "minimum": 0
  12028. }
  12029. ]
  12030. },
  12031. "version": {
  12032. "type": "integer",
  12033. "allOf": [
  12034. {
  12035. "minimum": 1
  12036. }
  12037. ]
  12038. }
  12039. },
  12040. "required": [
  12041. "aggregateID",
  12042. "seq",
  12043. "version"
  12044. ],
  12045. "additionalProperties": false
  12046. },
  12047. "location": {
  12048. "$ref": "#/components/schemas/Location.Ref"
  12049. },
  12050. "data": {
  12051. "type": "object",
  12052. "properties": {
  12053. "timestamp": {
  12054. "type": "number"
  12055. },
  12056. "sessionID": {
  12057. "type": "string",
  12058. "allOf": [
  12059. {
  12060. "pattern": "^ses"
  12061. }
  12062. ]
  12063. },
  12064. "title": {
  12065. "type": "string"
  12066. }
  12067. },
  12068. "required": [
  12069. "timestamp",
  12070. "sessionID",
  12071. "title"
  12072. ],
  12073. "additionalProperties": false
  12074. }
  12075. },
  12076. "required": [
  12077. "id",
  12078. "type",
  12079. "data"
  12080. ],
  12081. "additionalProperties": false
  12082. },
  12083. "session.next.forked": {
  12084. "type": "object",
  12085. "properties": {
  12086. "id": {
  12087. "type": "string",
  12088. "allOf": [
  12089. {
  12090. "pattern": "^evt_"
  12091. }
  12092. ]
  12093. },
  12094. "metadata": {
  12095. "type": "object"
  12096. },
  12097. "type": {
  12098. "type": "string",
  12099. "enum": [
  12100. "session.next.forked"
  12101. ]
  12102. },
  12103. "durable": {
  12104. "type": "object",
  12105. "properties": {
  12106. "aggregateID": {
  12107. "type": "string"
  12108. },
  12109. "seq": {
  12110. "type": "integer",
  12111. "allOf": [
  12112. {
  12113. "minimum": 0
  12114. }
  12115. ]
  12116. },
  12117. "version": {
  12118. "type": "integer",
  12119. "allOf": [
  12120. {
  12121. "minimum": 1
  12122. }
  12123. ]
  12124. }
  12125. },
  12126. "required": [
  12127. "aggregateID",
  12128. "seq",
  12129. "version"
  12130. ],
  12131. "additionalProperties": false
  12132. },
  12133. "location": {
  12134. "$ref": "#/components/schemas/Location.Ref"
  12135. },
  12136. "data": {
  12137. "type": "object",
  12138. "properties": {
  12139. "timestamp": {
  12140. "type": "number"
  12141. },
  12142. "sessionID": {
  12143. "type": "string",
  12144. "allOf": [
  12145. {
  12146. "pattern": "^ses"
  12147. }
  12148. ]
  12149. },
  12150. "parentID": {
  12151. "type": "string",
  12152. "allOf": [
  12153. {
  12154. "pattern": "^ses"
  12155. }
  12156. ]
  12157. },
  12158. "messageID": {
  12159. "type": "string",
  12160. "allOf": [
  12161. {
  12162. "pattern": "^msg_"
  12163. }
  12164. ]
  12165. }
  12166. },
  12167. "required": [
  12168. "timestamp",
  12169. "sessionID",
  12170. "parentID"
  12171. ],
  12172. "additionalProperties": false
  12173. }
  12174. },
  12175. "required": [
  12176. "id",
  12177. "type",
  12178. "data"
  12179. ],
  12180. "additionalProperties": false
  12181. },
  12182. "session.next.prompted": {
  12183. "type": "object",
  12184. "properties": {
  12185. "id": {
  12186. "type": "string",
  12187. "allOf": [
  12188. {
  12189. "pattern": "^evt_"
  12190. }
  12191. ]
  12192. },
  12193. "metadata": {
  12194. "type": "object"
  12195. },
  12196. "type": {
  12197. "type": "string",
  12198. "enum": [
  12199. "session.next.prompted"
  12200. ]
  12201. },
  12202. "durable": {
  12203. "type": "object",
  12204. "properties": {
  12205. "aggregateID": {
  12206. "type": "string"
  12207. },
  12208. "seq": {
  12209. "type": "integer",
  12210. "allOf": [
  12211. {
  12212. "minimum": 0
  12213. }
  12214. ]
  12215. },
  12216. "version": {
  12217. "type": "integer",
  12218. "allOf": [
  12219. {
  12220. "minimum": 1
  12221. }
  12222. ]
  12223. }
  12224. },
  12225. "required": [
  12226. "aggregateID",
  12227. "seq",
  12228. "version"
  12229. ],
  12230. "additionalProperties": false
  12231. },
  12232. "location": {
  12233. "$ref": "#/components/schemas/Location.Ref"
  12234. },
  12235. "data": {
  12236. "type": "object",
  12237. "properties": {
  12238. "timestamp": {
  12239. "type": "number"
  12240. },
  12241. "sessionID": {
  12242. "type": "string",
  12243. "allOf": [
  12244. {
  12245. "pattern": "^ses"
  12246. }
  12247. ]
  12248. },
  12249. "messageID": {
  12250. "type": "string",
  12251. "allOf": [
  12252. {
  12253. "pattern": "^msg_"
  12254. }
  12255. ]
  12256. },
  12257. "prompt": {
  12258. "$ref": "#/components/schemas/Prompt"
  12259. },
  12260. "delivery": {
  12261. "type": "string",
  12262. "enum": [
  12263. "steer",
  12264. "queue"
  12265. ]
  12266. }
  12267. },
  12268. "required": [
  12269. "timestamp",
  12270. "sessionID",
  12271. "messageID",
  12272. "prompt",
  12273. "delivery"
  12274. ],
  12275. "additionalProperties": false
  12276. }
  12277. },
  12278. "required": [
  12279. "id",
  12280. "type",
  12281. "data"
  12282. ],
  12283. "additionalProperties": false
  12284. },
  12285. "session.next.prompt.admitted": {
  12286. "type": "object",
  12287. "properties": {
  12288. "id": {
  12289. "type": "string",
  12290. "allOf": [
  12291. {
  12292. "pattern": "^evt_"
  12293. }
  12294. ]
  12295. },
  12296. "metadata": {
  12297. "type": "object"
  12298. },
  12299. "type": {
  12300. "type": "string",
  12301. "enum": [
  12302. "session.next.prompt.admitted"
  12303. ]
  12304. },
  12305. "durable": {
  12306. "type": "object",
  12307. "properties": {
  12308. "aggregateID": {
  12309. "type": "string"
  12310. },
  12311. "seq": {
  12312. "type": "integer",
  12313. "allOf": [
  12314. {
  12315. "minimum": 0
  12316. }
  12317. ]
  12318. },
  12319. "version": {
  12320. "type": "integer",
  12321. "allOf": [
  12322. {
  12323. "minimum": 1
  12324. }
  12325. ]
  12326. }
  12327. },
  12328. "required": [
  12329. "aggregateID",
  12330. "seq",
  12331. "version"
  12332. ],
  12333. "additionalProperties": false
  12334. },
  12335. "location": {
  12336. "$ref": "#/components/schemas/Location.Ref"
  12337. },
  12338. "data": {
  12339. "type": "object",
  12340. "properties": {
  12341. "timestamp": {
  12342. "type": "number"
  12343. },
  12344. "sessionID": {
  12345. "type": "string",
  12346. "allOf": [
  12347. {
  12348. "pattern": "^ses"
  12349. }
  12350. ]
  12351. },
  12352. "messageID": {
  12353. "type": "string",
  12354. "allOf": [
  12355. {
  12356. "pattern": "^msg_"
  12357. }
  12358. ]
  12359. },
  12360. "prompt": {
  12361. "$ref": "#/components/schemas/Prompt"
  12362. },
  12363. "delivery": {
  12364. "type": "string",
  12365. "enum": [
  12366. "steer",
  12367. "queue"
  12368. ]
  12369. }
  12370. },
  12371. "required": [
  12372. "timestamp",
  12373. "sessionID",
  12374. "messageID",
  12375. "prompt",
  12376. "delivery"
  12377. ],
  12378. "additionalProperties": false
  12379. }
  12380. },
  12381. "required": [
  12382. "id",
  12383. "type",
  12384. "data"
  12385. ],
  12386. "additionalProperties": false
  12387. },
  12388. "session.next.instructions.updated": {
  12389. "type": "object",
  12390. "properties": {
  12391. "id": {
  12392. "type": "string",
  12393. "allOf": [
  12394. {
  12395. "pattern": "^evt_"
  12396. }
  12397. ]
  12398. },
  12399. "metadata": {
  12400. "type": "object"
  12401. },
  12402. "type": {
  12403. "type": "string",
  12404. "enum": [
  12405. "session.next.instructions.updated"
  12406. ]
  12407. },
  12408. "durable": {
  12409. "type": "object",
  12410. "properties": {
  12411. "aggregateID": {
  12412. "type": "string"
  12413. },
  12414. "seq": {
  12415. "type": "integer",
  12416. "allOf": [
  12417. {
  12418. "minimum": 0
  12419. }
  12420. ]
  12421. },
  12422. "version": {
  12423. "type": "integer",
  12424. "allOf": [
  12425. {
  12426. "minimum": 1
  12427. }
  12428. ]
  12429. }
  12430. },
  12431. "required": [
  12432. "aggregateID",
  12433. "seq",
  12434. "version"
  12435. ],
  12436. "additionalProperties": false
  12437. },
  12438. "location": {
  12439. "$ref": "#/components/schemas/Location.Ref"
  12440. },
  12441. "data": {
  12442. "type": "object",
  12443. "properties": {
  12444. "timestamp": {
  12445. "type": "number"
  12446. },
  12447. "sessionID": {
  12448. "type": "string",
  12449. "allOf": [
  12450. {
  12451. "pattern": "^ses"
  12452. }
  12453. ]
  12454. },
  12455. "messageID": {
  12456. "type": "string",
  12457. "allOf": [
  12458. {
  12459. "pattern": "^msg_"
  12460. }
  12461. ]
  12462. },
  12463. "text": {
  12464. "type": "string"
  12465. }
  12466. },
  12467. "required": [
  12468. "timestamp",
  12469. "sessionID",
  12470. "messageID",
  12471. "text"
  12472. ],
  12473. "additionalProperties": false
  12474. }
  12475. },
  12476. "required": [
  12477. "id",
  12478. "type",
  12479. "data"
  12480. ],
  12481. "additionalProperties": false
  12482. },
  12483. "session.next.synthetic": {
  12484. "type": "object",
  12485. "properties": {
  12486. "id": {
  12487. "type": "string",
  12488. "allOf": [
  12489. {
  12490. "pattern": "^evt_"
  12491. }
  12492. ]
  12493. },
  12494. "metadata": {
  12495. "type": "object"
  12496. },
  12497. "type": {
  12498. "type": "string",
  12499. "enum": [
  12500. "session.next.synthetic"
  12501. ]
  12502. },
  12503. "durable": {
  12504. "type": "object",
  12505. "properties": {
  12506. "aggregateID": {
  12507. "type": "string"
  12508. },
  12509. "seq": {
  12510. "type": "integer",
  12511. "allOf": [
  12512. {
  12513. "minimum": 0
  12514. }
  12515. ]
  12516. },
  12517. "version": {
  12518. "type": "integer",
  12519. "allOf": [
  12520. {
  12521. "minimum": 1
  12522. }
  12523. ]
  12524. }
  12525. },
  12526. "required": [
  12527. "aggregateID",
  12528. "seq",
  12529. "version"
  12530. ],
  12531. "additionalProperties": false
  12532. },
  12533. "location": {
  12534. "$ref": "#/components/schemas/Location.Ref"
  12535. },
  12536. "data": {
  12537. "type": "object",
  12538. "properties": {
  12539. "timestamp": {
  12540. "type": "number"
  12541. },
  12542. "sessionID": {
  12543. "type": "string",
  12544. "allOf": [
  12545. {
  12546. "pattern": "^ses"
  12547. }
  12548. ]
  12549. },
  12550. "messageID": {
  12551. "type": "string",
  12552. "allOf": [
  12553. {
  12554. "pattern": "^msg_"
  12555. }
  12556. ]
  12557. },
  12558. "text": {
  12559. "type": "string"
  12560. },
  12561. "description": {
  12562. "type": "string"
  12563. },
  12564. "metadata": {
  12565. "type": "object"
  12566. }
  12567. },
  12568. "required": [
  12569. "timestamp",
  12570. "sessionID",
  12571. "messageID",
  12572. "text"
  12573. ],
  12574. "additionalProperties": false
  12575. }
  12576. },
  12577. "required": [
  12578. "id",
  12579. "type",
  12580. "data"
  12581. ],
  12582. "additionalProperties": false
  12583. },
  12584. "session.next.skill.activated": {
  12585. "type": "object",
  12586. "properties": {
  12587. "id": {
  12588. "type": "string",
  12589. "allOf": [
  12590. {
  12591. "pattern": "^evt_"
  12592. }
  12593. ]
  12594. },
  12595. "metadata": {
  12596. "type": "object"
  12597. },
  12598. "type": {
  12599. "type": "string",
  12600. "enum": [
  12601. "session.next.skill.activated"
  12602. ]
  12603. },
  12604. "durable": {
  12605. "type": "object",
  12606. "properties": {
  12607. "aggregateID": {
  12608. "type": "string"
  12609. },
  12610. "seq": {
  12611. "type": "integer",
  12612. "allOf": [
  12613. {
  12614. "minimum": 0
  12615. }
  12616. ]
  12617. },
  12618. "version": {
  12619. "type": "integer",
  12620. "allOf": [
  12621. {
  12622. "minimum": 1
  12623. }
  12624. ]
  12625. }
  12626. },
  12627. "required": [
  12628. "aggregateID",
  12629. "seq",
  12630. "version"
  12631. ],
  12632. "additionalProperties": false
  12633. },
  12634. "location": {
  12635. "$ref": "#/components/schemas/Location.Ref"
  12636. },
  12637. "data": {
  12638. "type": "object",
  12639. "properties": {
  12640. "timestamp": {
  12641. "type": "number"
  12642. },
  12643. "sessionID": {
  12644. "type": "string",
  12645. "allOf": [
  12646. {
  12647. "pattern": "^ses"
  12648. }
  12649. ]
  12650. },
  12651. "messageID": {
  12652. "type": "string",
  12653. "allOf": [
  12654. {
  12655. "pattern": "^msg_"
  12656. }
  12657. ]
  12658. },
  12659. "name": {
  12660. "type": "string"
  12661. },
  12662. "text": {
  12663. "type": "string"
  12664. }
  12665. },
  12666. "required": [
  12667. "timestamp",
  12668. "sessionID",
  12669. "messageID",
  12670. "name",
  12671. "text"
  12672. ],
  12673. "additionalProperties": false
  12674. }
  12675. },
  12676. "required": [
  12677. "id",
  12678. "type",
  12679. "data"
  12680. ],
  12681. "additionalProperties": false
  12682. },
  12683. "session.next.shell.started": {
  12684. "type": "object",
  12685. "properties": {
  12686. "id": {
  12687. "type": "string",
  12688. "allOf": [
  12689. {
  12690. "pattern": "^evt_"
  12691. }
  12692. ]
  12693. },
  12694. "metadata": {
  12695. "type": "object"
  12696. },
  12697. "type": {
  12698. "type": "string",
  12699. "enum": [
  12700. "session.next.shell.started"
  12701. ]
  12702. },
  12703. "durable": {
  12704. "type": "object",
  12705. "properties": {
  12706. "aggregateID": {
  12707. "type": "string"
  12708. },
  12709. "seq": {
  12710. "type": "integer",
  12711. "allOf": [
  12712. {
  12713. "minimum": 0
  12714. }
  12715. ]
  12716. },
  12717. "version": {
  12718. "type": "integer",
  12719. "allOf": [
  12720. {
  12721. "minimum": 1
  12722. }
  12723. ]
  12724. }
  12725. },
  12726. "required": [
  12727. "aggregateID",
  12728. "seq",
  12729. "version"
  12730. ],
  12731. "additionalProperties": false
  12732. },
  12733. "location": {
  12734. "$ref": "#/components/schemas/Location.Ref"
  12735. },
  12736. "data": {
  12737. "type": "object",
  12738. "properties": {
  12739. "timestamp": {
  12740. "type": "number"
  12741. },
  12742. "sessionID": {
  12743. "type": "string",
  12744. "allOf": [
  12745. {
  12746. "pattern": "^ses"
  12747. }
  12748. ]
  12749. },
  12750. "messageID": {
  12751. "type": "string",
  12752. "allOf": [
  12753. {
  12754. "pattern": "^msg_"
  12755. }
  12756. ]
  12757. },
  12758. "callID": {
  12759. "type": "string"
  12760. },
  12761. "command": {
  12762. "type": "string"
  12763. }
  12764. },
  12765. "required": [
  12766. "timestamp",
  12767. "sessionID",
  12768. "messageID",
  12769. "callID",
  12770. "command"
  12771. ],
  12772. "additionalProperties": false
  12773. }
  12774. },
  12775. "required": [
  12776. "id",
  12777. "type",
  12778. "data"
  12779. ],
  12780. "additionalProperties": false
  12781. },
  12782. "session.next.shell.ended": {
  12783. "type": "object",
  12784. "properties": {
  12785. "id": {
  12786. "type": "string",
  12787. "allOf": [
  12788. {
  12789. "pattern": "^evt_"
  12790. }
  12791. ]
  12792. },
  12793. "metadata": {
  12794. "type": "object"
  12795. },
  12796. "type": {
  12797. "type": "string",
  12798. "enum": [
  12799. "session.next.shell.ended"
  12800. ]
  12801. },
  12802. "durable": {
  12803. "type": "object",
  12804. "properties": {
  12805. "aggregateID": {
  12806. "type": "string"
  12807. },
  12808. "seq": {
  12809. "type": "integer",
  12810. "allOf": [
  12811. {
  12812. "minimum": 0
  12813. }
  12814. ]
  12815. },
  12816. "version": {
  12817. "type": "integer",
  12818. "allOf": [
  12819. {
  12820. "minimum": 1
  12821. }
  12822. ]
  12823. }
  12824. },
  12825. "required": [
  12826. "aggregateID",
  12827. "seq",
  12828. "version"
  12829. ],
  12830. "additionalProperties": false
  12831. },
  12832. "location": {
  12833. "$ref": "#/components/schemas/Location.Ref"
  12834. },
  12835. "data": {
  12836. "type": "object",
  12837. "properties": {
  12838. "timestamp": {
  12839. "type": "number"
  12840. },
  12841. "sessionID": {
  12842. "type": "string",
  12843. "allOf": [
  12844. {
  12845. "pattern": "^ses"
  12846. }
  12847. ]
  12848. },
  12849. "callID": {
  12850. "type": "string"
  12851. },
  12852. "output": {
  12853. "type": "string"
  12854. }
  12855. },
  12856. "required": [
  12857. "timestamp",
  12858. "sessionID",
  12859. "callID",
  12860. "output"
  12861. ],
  12862. "additionalProperties": false
  12863. }
  12864. },
  12865. "required": [
  12866. "id",
  12867. "type",
  12868. "data"
  12869. ],
  12870. "additionalProperties": false
  12871. },
  12872. "session.next.step.started": {
  12873. "type": "object",
  12874. "properties": {
  12875. "id": {
  12876. "type": "string",
  12877. "allOf": [
  12878. {
  12879. "pattern": "^evt_"
  12880. }
  12881. ]
  12882. },
  12883. "metadata": {
  12884. "type": "object"
  12885. },
  12886. "type": {
  12887. "type": "string",
  12888. "enum": [
  12889. "session.next.step.started"
  12890. ]
  12891. },
  12892. "durable": {
  12893. "type": "object",
  12894. "properties": {
  12895. "aggregateID": {
  12896. "type": "string"
  12897. },
  12898. "seq": {
  12899. "type": "integer",
  12900. "allOf": [
  12901. {
  12902. "minimum": 0
  12903. }
  12904. ]
  12905. },
  12906. "version": {
  12907. "type": "integer",
  12908. "allOf": [
  12909. {
  12910. "minimum": 1
  12911. }
  12912. ]
  12913. }
  12914. },
  12915. "required": [
  12916. "aggregateID",
  12917. "seq",
  12918. "version"
  12919. ],
  12920. "additionalProperties": false
  12921. },
  12922. "location": {
  12923. "$ref": "#/components/schemas/Location.Ref"
  12924. },
  12925. "data": {
  12926. "type": "object",
  12927. "properties": {
  12928. "timestamp": {
  12929. "type": "number"
  12930. },
  12931. "sessionID": {
  12932. "type": "string",
  12933. "allOf": [
  12934. {
  12935. "pattern": "^ses"
  12936. }
  12937. ]
  12938. },
  12939. "assistantMessageID": {
  12940. "type": "string",
  12941. "allOf": [
  12942. {
  12943. "pattern": "^msg_"
  12944. }
  12945. ]
  12946. },
  12947. "agent": {
  12948. "type": "string"
  12949. },
  12950. "model": {
  12951. "$ref": "#/components/schemas/Model.Ref"
  12952. },
  12953. "snapshot": {
  12954. "type": "string"
  12955. }
  12956. },
  12957. "required": [
  12958. "timestamp",
  12959. "sessionID",
  12960. "assistantMessageID",
  12961. "agent",
  12962. "model"
  12963. ],
  12964. "additionalProperties": false
  12965. }
  12966. },
  12967. "required": [
  12968. "id",
  12969. "type",
  12970. "data"
  12971. ],
  12972. "additionalProperties": false
  12973. },
  12974. "session.next.step.ended": {
  12975. "type": "object",
  12976. "properties": {
  12977. "id": {
  12978. "type": "string",
  12979. "allOf": [
  12980. {
  12981. "pattern": "^evt_"
  12982. }
  12983. ]
  12984. },
  12985. "metadata": {
  12986. "type": "object"
  12987. },
  12988. "type": {
  12989. "type": "string",
  12990. "enum": [
  12991. "session.next.step.ended"
  12992. ]
  12993. },
  12994. "durable": {
  12995. "type": "object",
  12996. "properties": {
  12997. "aggregateID": {
  12998. "type": "string"
  12999. },
  13000. "seq": {
  13001. "type": "integer",
  13002. "allOf": [
  13003. {
  13004. "minimum": 0
  13005. }
  13006. ]
  13007. },
  13008. "version": {
  13009. "type": "integer",
  13010. "allOf": [
  13011. {
  13012. "minimum": 1
  13013. }
  13014. ]
  13015. }
  13016. },
  13017. "required": [
  13018. "aggregateID",
  13019. "seq",
  13020. "version"
  13021. ],
  13022. "additionalProperties": false
  13023. },
  13024. "location": {
  13025. "$ref": "#/components/schemas/Location.Ref"
  13026. },
  13027. "data": {
  13028. "type": "object",
  13029. "properties": {
  13030. "timestamp": {
  13031. "type": "number"
  13032. },
  13033. "sessionID": {
  13034. "type": "string",
  13035. "allOf": [
  13036. {
  13037. "pattern": "^ses"
  13038. }
  13039. ]
  13040. },
  13041. "assistantMessageID": {
  13042. "type": "string",
  13043. "allOf": [
  13044. {
  13045. "pattern": "^msg_"
  13046. }
  13047. ]
  13048. },
  13049. "finish": {
  13050. "type": "string"
  13051. },
  13052. "cost": {
  13053. "type": "number"
  13054. },
  13055. "tokens": {
  13056. "type": "object",
  13057. "properties": {
  13058. "input": {
  13059. "type": "number"
  13060. },
  13061. "output": {
  13062. "type": "number"
  13063. },
  13064. "reasoning": {
  13065. "type": "number"
  13066. },
  13067. "cache": {
  13068. "type": "object",
  13069. "properties": {
  13070. "read": {
  13071. "type": "number"
  13072. },
  13073. "write": {
  13074. "type": "number"
  13075. }
  13076. },
  13077. "required": [
  13078. "read",
  13079. "write"
  13080. ],
  13081. "additionalProperties": false
  13082. }
  13083. },
  13084. "required": [
  13085. "input",
  13086. "output",
  13087. "reasoning",
  13088. "cache"
  13089. ],
  13090. "additionalProperties": false
  13091. },
  13092. "snapshot": {
  13093. "type": "string"
  13094. },
  13095. "files": {
  13096. "type": "array",
  13097. "items": {
  13098. "type": "string"
  13099. }
  13100. }
  13101. },
  13102. "required": [
  13103. "timestamp",
  13104. "sessionID",
  13105. "assistantMessageID",
  13106. "finish",
  13107. "cost",
  13108. "tokens"
  13109. ],
  13110. "additionalProperties": false
  13111. }
  13112. },
  13113. "required": [
  13114. "id",
  13115. "type",
  13116. "data"
  13117. ],
  13118. "additionalProperties": false
  13119. },
  13120. "session.next.step.failed": {
  13121. "type": "object",
  13122. "properties": {
  13123. "id": {
  13124. "type": "string",
  13125. "allOf": [
  13126. {
  13127. "pattern": "^evt_"
  13128. }
  13129. ]
  13130. },
  13131. "metadata": {
  13132. "type": "object"
  13133. },
  13134. "type": {
  13135. "type": "string",
  13136. "enum": [
  13137. "session.next.step.failed"
  13138. ]
  13139. },
  13140. "durable": {
  13141. "type": "object",
  13142. "properties": {
  13143. "aggregateID": {
  13144. "type": "string"
  13145. },
  13146. "seq": {
  13147. "type": "integer",
  13148. "allOf": [
  13149. {
  13150. "minimum": 0
  13151. }
  13152. ]
  13153. },
  13154. "version": {
  13155. "type": "integer",
  13156. "allOf": [
  13157. {
  13158. "minimum": 1
  13159. }
  13160. ]
  13161. }
  13162. },
  13163. "required": [
  13164. "aggregateID",
  13165. "seq",
  13166. "version"
  13167. ],
  13168. "additionalProperties": false
  13169. },
  13170. "location": {
  13171. "$ref": "#/components/schemas/Location.Ref"
  13172. },
  13173. "data": {
  13174. "type": "object",
  13175. "properties": {
  13176. "timestamp": {
  13177. "type": "number"
  13178. },
  13179. "sessionID": {
  13180. "type": "string",
  13181. "allOf": [
  13182. {
  13183. "pattern": "^ses"
  13184. }
  13185. ]
  13186. },
  13187. "assistantMessageID": {
  13188. "type": "string",
  13189. "allOf": [
  13190. {
  13191. "pattern": "^msg_"
  13192. }
  13193. ]
  13194. },
  13195. "error": {
  13196. "$ref": "#/components/schemas/Session.Error.Unknown"
  13197. }
  13198. },
  13199. "required": [
  13200. "timestamp",
  13201. "sessionID",
  13202. "assistantMessageID",
  13203. "error"
  13204. ],
  13205. "additionalProperties": false
  13206. }
  13207. },
  13208. "required": [
  13209. "id",
  13210. "type",
  13211. "data"
  13212. ],
  13213. "additionalProperties": false
  13214. },
  13215. "session.next.text.started": {
  13216. "type": "object",
  13217. "properties": {
  13218. "id": {
  13219. "type": "string",
  13220. "allOf": [
  13221. {
  13222. "pattern": "^evt_"
  13223. }
  13224. ]
  13225. },
  13226. "metadata": {
  13227. "type": "object"
  13228. },
  13229. "type": {
  13230. "type": "string",
  13231. "enum": [
  13232. "session.next.text.started"
  13233. ]
  13234. },
  13235. "durable": {
  13236. "type": "object",
  13237. "properties": {
  13238. "aggregateID": {
  13239. "type": "string"
  13240. },
  13241. "seq": {
  13242. "type": "integer",
  13243. "allOf": [
  13244. {
  13245. "minimum": 0
  13246. }
  13247. ]
  13248. },
  13249. "version": {
  13250. "type": "integer",
  13251. "allOf": [
  13252. {
  13253. "minimum": 1
  13254. }
  13255. ]
  13256. }
  13257. },
  13258. "required": [
  13259. "aggregateID",
  13260. "seq",
  13261. "version"
  13262. ],
  13263. "additionalProperties": false
  13264. },
  13265. "location": {
  13266. "$ref": "#/components/schemas/Location.Ref"
  13267. },
  13268. "data": {
  13269. "type": "object",
  13270. "properties": {
  13271. "timestamp": {
  13272. "type": "number"
  13273. },
  13274. "sessionID": {
  13275. "type": "string",
  13276. "allOf": [
  13277. {
  13278. "pattern": "^ses"
  13279. }
  13280. ]
  13281. },
  13282. "assistantMessageID": {
  13283. "type": "string",
  13284. "allOf": [
  13285. {
  13286. "pattern": "^msg_"
  13287. }
  13288. ]
  13289. },
  13290. "textID": {
  13291. "type": "string"
  13292. }
  13293. },
  13294. "required": [
  13295. "timestamp",
  13296. "sessionID",
  13297. "assistantMessageID",
  13298. "textID"
  13299. ],
  13300. "additionalProperties": false
  13301. }
  13302. },
  13303. "required": [
  13304. "id",
  13305. "type",
  13306. "data"
  13307. ],
  13308. "additionalProperties": false
  13309. },
  13310. "session.next.text.ended": {
  13311. "type": "object",
  13312. "properties": {
  13313. "id": {
  13314. "type": "string",
  13315. "allOf": [
  13316. {
  13317. "pattern": "^evt_"
  13318. }
  13319. ]
  13320. },
  13321. "metadata": {
  13322. "type": "object"
  13323. },
  13324. "type": {
  13325. "type": "string",
  13326. "enum": [
  13327. "session.next.text.ended"
  13328. ]
  13329. },
  13330. "durable": {
  13331. "type": "object",
  13332. "properties": {
  13333. "aggregateID": {
  13334. "type": "string"
  13335. },
  13336. "seq": {
  13337. "type": "integer",
  13338. "allOf": [
  13339. {
  13340. "minimum": 0
  13341. }
  13342. ]
  13343. },
  13344. "version": {
  13345. "type": "integer",
  13346. "allOf": [
  13347. {
  13348. "minimum": 1
  13349. }
  13350. ]
  13351. }
  13352. },
  13353. "required": [
  13354. "aggregateID",
  13355. "seq",
  13356. "version"
  13357. ],
  13358. "additionalProperties": false
  13359. },
  13360. "location": {
  13361. "$ref": "#/components/schemas/Location.Ref"
  13362. },
  13363. "data": {
  13364. "type": "object",
  13365. "properties": {
  13366. "timestamp": {
  13367. "type": "number"
  13368. },
  13369. "sessionID": {
  13370. "type": "string",
  13371. "allOf": [
  13372. {
  13373. "pattern": "^ses"
  13374. }
  13375. ]
  13376. },
  13377. "assistantMessageID": {
  13378. "type": "string",
  13379. "allOf": [
  13380. {
  13381. "pattern": "^msg_"
  13382. }
  13383. ]
  13384. },
  13385. "textID": {
  13386. "type": "string"
  13387. },
  13388. "text": {
  13389. "type": "string"
  13390. }
  13391. },
  13392. "required": [
  13393. "timestamp",
  13394. "sessionID",
  13395. "assistantMessageID",
  13396. "textID",
  13397. "text"
  13398. ],
  13399. "additionalProperties": false
  13400. }
  13401. },
  13402. "required": [
  13403. "id",
  13404. "type",
  13405. "data"
  13406. ],
  13407. "additionalProperties": false
  13408. },
  13409. "session.next.tool.input.started": {
  13410. "type": "object",
  13411. "properties": {
  13412. "id": {
  13413. "type": "string",
  13414. "allOf": [
  13415. {
  13416. "pattern": "^evt_"
  13417. }
  13418. ]
  13419. },
  13420. "metadata": {
  13421. "type": "object"
  13422. },
  13423. "type": {
  13424. "type": "string",
  13425. "enum": [
  13426. "session.next.tool.input.started"
  13427. ]
  13428. },
  13429. "durable": {
  13430. "type": "object",
  13431. "properties": {
  13432. "aggregateID": {
  13433. "type": "string"
  13434. },
  13435. "seq": {
  13436. "type": "integer",
  13437. "allOf": [
  13438. {
  13439. "minimum": 0
  13440. }
  13441. ]
  13442. },
  13443. "version": {
  13444. "type": "integer",
  13445. "allOf": [
  13446. {
  13447. "minimum": 1
  13448. }
  13449. ]
  13450. }
  13451. },
  13452. "required": [
  13453. "aggregateID",
  13454. "seq",
  13455. "version"
  13456. ],
  13457. "additionalProperties": false
  13458. },
  13459. "location": {
  13460. "$ref": "#/components/schemas/Location.Ref"
  13461. },
  13462. "data": {
  13463. "type": "object",
  13464. "properties": {
  13465. "timestamp": {
  13466. "type": "number"
  13467. },
  13468. "sessionID": {
  13469. "type": "string",
  13470. "allOf": [
  13471. {
  13472. "pattern": "^ses"
  13473. }
  13474. ]
  13475. },
  13476. "assistantMessageID": {
  13477. "type": "string",
  13478. "allOf": [
  13479. {
  13480. "pattern": "^msg_"
  13481. }
  13482. ]
  13483. },
  13484. "callID": {
  13485. "type": "string"
  13486. },
  13487. "name": {
  13488. "type": "string"
  13489. }
  13490. },
  13491. "required": [
  13492. "timestamp",
  13493. "sessionID",
  13494. "assistantMessageID",
  13495. "callID",
  13496. "name"
  13497. ],
  13498. "additionalProperties": false
  13499. }
  13500. },
  13501. "required": [
  13502. "id",
  13503. "type",
  13504. "data"
  13505. ],
  13506. "additionalProperties": false
  13507. },
  13508. "session.next.tool.input.ended": {
  13509. "type": "object",
  13510. "properties": {
  13511. "id": {
  13512. "type": "string",
  13513. "allOf": [
  13514. {
  13515. "pattern": "^evt_"
  13516. }
  13517. ]
  13518. },
  13519. "metadata": {
  13520. "type": "object"
  13521. },
  13522. "type": {
  13523. "type": "string",
  13524. "enum": [
  13525. "session.next.tool.input.ended"
  13526. ]
  13527. },
  13528. "durable": {
  13529. "type": "object",
  13530. "properties": {
  13531. "aggregateID": {
  13532. "type": "string"
  13533. },
  13534. "seq": {
  13535. "type": "integer",
  13536. "allOf": [
  13537. {
  13538. "minimum": 0
  13539. }
  13540. ]
  13541. },
  13542. "version": {
  13543. "type": "integer",
  13544. "allOf": [
  13545. {
  13546. "minimum": 1
  13547. }
  13548. ]
  13549. }
  13550. },
  13551. "required": [
  13552. "aggregateID",
  13553. "seq",
  13554. "version"
  13555. ],
  13556. "additionalProperties": false
  13557. },
  13558. "location": {
  13559. "$ref": "#/components/schemas/Location.Ref"
  13560. },
  13561. "data": {
  13562. "type": "object",
  13563. "properties": {
  13564. "timestamp": {
  13565. "type": "number"
  13566. },
  13567. "sessionID": {
  13568. "type": "string",
  13569. "allOf": [
  13570. {
  13571. "pattern": "^ses"
  13572. }
  13573. ]
  13574. },
  13575. "assistantMessageID": {
  13576. "type": "string",
  13577. "allOf": [
  13578. {
  13579. "pattern": "^msg_"
  13580. }
  13581. ]
  13582. },
  13583. "callID": {
  13584. "type": "string"
  13585. },
  13586. "text": {
  13587. "type": "string"
  13588. }
  13589. },
  13590. "required": [
  13591. "timestamp",
  13592. "sessionID",
  13593. "assistantMessageID",
  13594. "callID",
  13595. "text"
  13596. ],
  13597. "additionalProperties": false
  13598. }
  13599. },
  13600. "required": [
  13601. "id",
  13602. "type",
  13603. "data"
  13604. ],
  13605. "additionalProperties": false
  13606. },
  13607. "LLM.ProviderMetadata3": {
  13608. "type": "object",
  13609. "additionalProperties": {
  13610. "type": "object"
  13611. }
  13612. },
  13613. "session.next.tool.called": {
  13614. "type": "object",
  13615. "properties": {
  13616. "id": {
  13617. "type": "string",
  13618. "allOf": [
  13619. {
  13620. "pattern": "^evt_"
  13621. }
  13622. ]
  13623. },
  13624. "metadata": {
  13625. "type": "object"
  13626. },
  13627. "type": {
  13628. "type": "string",
  13629. "enum": [
  13630. "session.next.tool.called"
  13631. ]
  13632. },
  13633. "durable": {
  13634. "type": "object",
  13635. "properties": {
  13636. "aggregateID": {
  13637. "type": "string"
  13638. },
  13639. "seq": {
  13640. "type": "integer",
  13641. "allOf": [
  13642. {
  13643. "minimum": 0
  13644. }
  13645. ]
  13646. },
  13647. "version": {
  13648. "type": "integer",
  13649. "allOf": [
  13650. {
  13651. "minimum": 1
  13652. }
  13653. ]
  13654. }
  13655. },
  13656. "required": [
  13657. "aggregateID",
  13658. "seq",
  13659. "version"
  13660. ],
  13661. "additionalProperties": false
  13662. },
  13663. "location": {
  13664. "$ref": "#/components/schemas/Location.Ref"
  13665. },
  13666. "data": {
  13667. "type": "object",
  13668. "properties": {
  13669. "timestamp": {
  13670. "type": "number"
  13671. },
  13672. "sessionID": {
  13673. "type": "string",
  13674. "allOf": [
  13675. {
  13676. "pattern": "^ses"
  13677. }
  13678. ]
  13679. },
  13680. "assistantMessageID": {
  13681. "type": "string",
  13682. "allOf": [
  13683. {
  13684. "pattern": "^msg_"
  13685. }
  13686. ]
  13687. },
  13688. "callID": {
  13689. "type": "string"
  13690. },
  13691. "tool": {
  13692. "type": "string"
  13693. },
  13694. "input": {
  13695. "type": "object"
  13696. },
  13697. "provider": {
  13698. "type": "object",
  13699. "properties": {
  13700. "executed": {
  13701. "type": "boolean"
  13702. },
  13703. "metadata": {
  13704. "$ref": "#/components/schemas/LLM.ProviderMetadata3"
  13705. }
  13706. },
  13707. "required": [
  13708. "executed"
  13709. ],
  13710. "additionalProperties": false
  13711. }
  13712. },
  13713. "required": [
  13714. "timestamp",
  13715. "sessionID",
  13716. "assistantMessageID",
  13717. "callID",
  13718. "tool",
  13719. "input",
  13720. "provider"
  13721. ],
  13722. "additionalProperties": false
  13723. }
  13724. },
  13725. "required": [
  13726. "id",
  13727. "type",
  13728. "data"
  13729. ],
  13730. "additionalProperties": false
  13731. },
  13732. "session.next.tool.progress": {
  13733. "type": "object",
  13734. "properties": {
  13735. "id": {
  13736. "type": "string",
  13737. "allOf": [
  13738. {
  13739. "pattern": "^evt_"
  13740. }
  13741. ]
  13742. },
  13743. "metadata": {
  13744. "type": "object"
  13745. },
  13746. "type": {
  13747. "type": "string",
  13748. "enum": [
  13749. "session.next.tool.progress"
  13750. ]
  13751. },
  13752. "durable": {
  13753. "type": "object",
  13754. "properties": {
  13755. "aggregateID": {
  13756. "type": "string"
  13757. },
  13758. "seq": {
  13759. "type": "integer",
  13760. "allOf": [
  13761. {
  13762. "minimum": 0
  13763. }
  13764. ]
  13765. },
  13766. "version": {
  13767. "type": "integer",
  13768. "allOf": [
  13769. {
  13770. "minimum": 1
  13771. }
  13772. ]
  13773. }
  13774. },
  13775. "required": [
  13776. "aggregateID",
  13777. "seq",
  13778. "version"
  13779. ],
  13780. "additionalProperties": false
  13781. },
  13782. "location": {
  13783. "$ref": "#/components/schemas/Location.Ref"
  13784. },
  13785. "data": {
  13786. "type": "object",
  13787. "properties": {
  13788. "timestamp": {
  13789. "type": "number"
  13790. },
  13791. "sessionID": {
  13792. "type": "string",
  13793. "allOf": [
  13794. {
  13795. "pattern": "^ses"
  13796. }
  13797. ]
  13798. },
  13799. "assistantMessageID": {
  13800. "type": "string",
  13801. "allOf": [
  13802. {
  13803. "pattern": "^msg_"
  13804. }
  13805. ]
  13806. },
  13807. "callID": {
  13808. "type": "string"
  13809. },
  13810. "structured": {
  13811. "type": "object"
  13812. },
  13813. "content": {
  13814. "type": "array",
  13815. "items": {
  13816. "$ref": "#/components/schemas/LLM.ToolContent"
  13817. }
  13818. }
  13819. },
  13820. "required": [
  13821. "timestamp",
  13822. "sessionID",
  13823. "assistantMessageID",
  13824. "callID",
  13825. "structured",
  13826. "content"
  13827. ],
  13828. "additionalProperties": false
  13829. }
  13830. },
  13831. "required": [
  13832. "id",
  13833. "type",
  13834. "data"
  13835. ],
  13836. "additionalProperties": false
  13837. },
  13838. "LLM.ProviderMetadata4": {
  13839. "type": "object",
  13840. "additionalProperties": {
  13841. "type": "object"
  13842. }
  13843. },
  13844. "session.next.tool.success": {
  13845. "type": "object",
  13846. "properties": {
  13847. "id": {
  13848. "type": "string",
  13849. "allOf": [
  13850. {
  13851. "pattern": "^evt_"
  13852. }
  13853. ]
  13854. },
  13855. "metadata": {
  13856. "type": "object"
  13857. },
  13858. "type": {
  13859. "type": "string",
  13860. "enum": [
  13861. "session.next.tool.success"
  13862. ]
  13863. },
  13864. "durable": {
  13865. "type": "object",
  13866. "properties": {
  13867. "aggregateID": {
  13868. "type": "string"
  13869. },
  13870. "seq": {
  13871. "type": "integer",
  13872. "allOf": [
  13873. {
  13874. "minimum": 0
  13875. }
  13876. ]
  13877. },
  13878. "version": {
  13879. "type": "integer",
  13880. "allOf": [
  13881. {
  13882. "minimum": 1
  13883. }
  13884. ]
  13885. }
  13886. },
  13887. "required": [
  13888. "aggregateID",
  13889. "seq",
  13890. "version"
  13891. ],
  13892. "additionalProperties": false
  13893. },
  13894. "location": {
  13895. "$ref": "#/components/schemas/Location.Ref"
  13896. },
  13897. "data": {
  13898. "type": "object",
  13899. "properties": {
  13900. "timestamp": {
  13901. "type": "number"
  13902. },
  13903. "sessionID": {
  13904. "type": "string",
  13905. "allOf": [
  13906. {
  13907. "pattern": "^ses"
  13908. }
  13909. ]
  13910. },
  13911. "assistantMessageID": {
  13912. "type": "string",
  13913. "allOf": [
  13914. {
  13915. "pattern": "^msg_"
  13916. }
  13917. ]
  13918. },
  13919. "callID": {
  13920. "type": "string"
  13921. },
  13922. "structured": {
  13923. "type": "object"
  13924. },
  13925. "content": {
  13926. "type": "array",
  13927. "items": {
  13928. "$ref": "#/components/schemas/LLM.ToolContent"
  13929. }
  13930. },
  13931. "outputPaths": {
  13932. "type": "array",
  13933. "items": {
  13934. "type": "string"
  13935. }
  13936. },
  13937. "result": {},
  13938. "provider": {
  13939. "type": "object",
  13940. "properties": {
  13941. "executed": {
  13942. "type": "boolean"
  13943. },
  13944. "metadata": {
  13945. "$ref": "#/components/schemas/LLM.ProviderMetadata4"
  13946. }
  13947. },
  13948. "required": [
  13949. "executed"
  13950. ],
  13951. "additionalProperties": false
  13952. }
  13953. },
  13954. "required": [
  13955. "timestamp",
  13956. "sessionID",
  13957. "assistantMessageID",
  13958. "callID",
  13959. "structured",
  13960. "content",
  13961. "provider"
  13962. ],
  13963. "additionalProperties": false
  13964. }
  13965. },
  13966. "required": [
  13967. "id",
  13968. "type",
  13969. "data"
  13970. ],
  13971. "additionalProperties": false
  13972. },
  13973. "LLM.ProviderMetadata5": {
  13974. "type": "object",
  13975. "additionalProperties": {
  13976. "type": "object"
  13977. }
  13978. },
  13979. "session.next.tool.failed": {
  13980. "type": "object",
  13981. "properties": {
  13982. "id": {
  13983. "type": "string",
  13984. "allOf": [
  13985. {
  13986. "pattern": "^evt_"
  13987. }
  13988. ]
  13989. },
  13990. "metadata": {
  13991. "type": "object"
  13992. },
  13993. "type": {
  13994. "type": "string",
  13995. "enum": [
  13996. "session.next.tool.failed"
  13997. ]
  13998. },
  13999. "durable": {
  14000. "type": "object",
  14001. "properties": {
  14002. "aggregateID": {
  14003. "type": "string"
  14004. },
  14005. "seq": {
  14006. "type": "integer",
  14007. "allOf": [
  14008. {
  14009. "minimum": 0
  14010. }
  14011. ]
  14012. },
  14013. "version": {
  14014. "type": "integer",
  14015. "allOf": [
  14016. {
  14017. "minimum": 1
  14018. }
  14019. ]
  14020. }
  14021. },
  14022. "required": [
  14023. "aggregateID",
  14024. "seq",
  14025. "version"
  14026. ],
  14027. "additionalProperties": false
  14028. },
  14029. "location": {
  14030. "$ref": "#/components/schemas/Location.Ref"
  14031. },
  14032. "data": {
  14033. "type": "object",
  14034. "properties": {
  14035. "timestamp": {
  14036. "type": "number"
  14037. },
  14038. "sessionID": {
  14039. "type": "string",
  14040. "allOf": [
  14041. {
  14042. "pattern": "^ses"
  14043. }
  14044. ]
  14045. },
  14046. "assistantMessageID": {
  14047. "type": "string",
  14048. "allOf": [
  14049. {
  14050. "pattern": "^msg_"
  14051. }
  14052. ]
  14053. },
  14054. "callID": {
  14055. "type": "string"
  14056. },
  14057. "error": {
  14058. "$ref": "#/components/schemas/Session.Error.Unknown"
  14059. },
  14060. "result": {},
  14061. "provider": {
  14062. "type": "object",
  14063. "properties": {
  14064. "executed": {
  14065. "type": "boolean"
  14066. },
  14067. "metadata": {
  14068. "$ref": "#/components/schemas/LLM.ProviderMetadata5"
  14069. }
  14070. },
  14071. "required": [
  14072. "executed"
  14073. ],
  14074. "additionalProperties": false
  14075. }
  14076. },
  14077. "required": [
  14078. "timestamp",
  14079. "sessionID",
  14080. "assistantMessageID",
  14081. "callID",
  14082. "error",
  14083. "provider"
  14084. ],
  14085. "additionalProperties": false
  14086. }
  14087. },
  14088. "required": [
  14089. "id",
  14090. "type",
  14091. "data"
  14092. ],
  14093. "additionalProperties": false
  14094. },
  14095. "LLM.ProviderMetadata6": {
  14096. "type": "object",
  14097. "additionalProperties": {
  14098. "type": "object"
  14099. }
  14100. },
  14101. "session.next.reasoning.started": {
  14102. "type": "object",
  14103. "properties": {
  14104. "id": {
  14105. "type": "string",
  14106. "allOf": [
  14107. {
  14108. "pattern": "^evt_"
  14109. }
  14110. ]
  14111. },
  14112. "metadata": {
  14113. "type": "object"
  14114. },
  14115. "type": {
  14116. "type": "string",
  14117. "enum": [
  14118. "session.next.reasoning.started"
  14119. ]
  14120. },
  14121. "durable": {
  14122. "type": "object",
  14123. "properties": {
  14124. "aggregateID": {
  14125. "type": "string"
  14126. },
  14127. "seq": {
  14128. "type": "integer",
  14129. "allOf": [
  14130. {
  14131. "minimum": 0
  14132. }
  14133. ]
  14134. },
  14135. "version": {
  14136. "type": "integer",
  14137. "allOf": [
  14138. {
  14139. "minimum": 1
  14140. }
  14141. ]
  14142. }
  14143. },
  14144. "required": [
  14145. "aggregateID",
  14146. "seq",
  14147. "version"
  14148. ],
  14149. "additionalProperties": false
  14150. },
  14151. "location": {
  14152. "$ref": "#/components/schemas/Location.Ref"
  14153. },
  14154. "data": {
  14155. "type": "object",
  14156. "properties": {
  14157. "timestamp": {
  14158. "type": "number"
  14159. },
  14160. "sessionID": {
  14161. "type": "string",
  14162. "allOf": [
  14163. {
  14164. "pattern": "^ses"
  14165. }
  14166. ]
  14167. },
  14168. "assistantMessageID": {
  14169. "type": "string",
  14170. "allOf": [
  14171. {
  14172. "pattern": "^msg_"
  14173. }
  14174. ]
  14175. },
  14176. "reasoningID": {
  14177. "type": "string"
  14178. },
  14179. "providerMetadata": {
  14180. "$ref": "#/components/schemas/LLM.ProviderMetadata6"
  14181. }
  14182. },
  14183. "required": [
  14184. "timestamp",
  14185. "sessionID",
  14186. "assistantMessageID",
  14187. "reasoningID"
  14188. ],
  14189. "additionalProperties": false
  14190. }
  14191. },
  14192. "required": [
  14193. "id",
  14194. "type",
  14195. "data"
  14196. ],
  14197. "additionalProperties": false
  14198. },
  14199. "LLM.ProviderMetadata7": {
  14200. "type": "object",
  14201. "additionalProperties": {
  14202. "type": "object"
  14203. }
  14204. },
  14205. "session.next.reasoning.ended": {
  14206. "type": "object",
  14207. "properties": {
  14208. "id": {
  14209. "type": "string",
  14210. "allOf": [
  14211. {
  14212. "pattern": "^evt_"
  14213. }
  14214. ]
  14215. },
  14216. "metadata": {
  14217. "type": "object"
  14218. },
  14219. "type": {
  14220. "type": "string",
  14221. "enum": [
  14222. "session.next.reasoning.ended"
  14223. ]
  14224. },
  14225. "durable": {
  14226. "type": "object",
  14227. "properties": {
  14228. "aggregateID": {
  14229. "type": "string"
  14230. },
  14231. "seq": {
  14232. "type": "integer",
  14233. "allOf": [
  14234. {
  14235. "minimum": 0
  14236. }
  14237. ]
  14238. },
  14239. "version": {
  14240. "type": "integer",
  14241. "allOf": [
  14242. {
  14243. "minimum": 1
  14244. }
  14245. ]
  14246. }
  14247. },
  14248. "required": [
  14249. "aggregateID",
  14250. "seq",
  14251. "version"
  14252. ],
  14253. "additionalProperties": false
  14254. },
  14255. "location": {
  14256. "$ref": "#/components/schemas/Location.Ref"
  14257. },
  14258. "data": {
  14259. "type": "object",
  14260. "properties": {
  14261. "timestamp": {
  14262. "type": "number"
  14263. },
  14264. "sessionID": {
  14265. "type": "string",
  14266. "allOf": [
  14267. {
  14268. "pattern": "^ses"
  14269. }
  14270. ]
  14271. },
  14272. "assistantMessageID": {
  14273. "type": "string",
  14274. "allOf": [
  14275. {
  14276. "pattern": "^msg_"
  14277. }
  14278. ]
  14279. },
  14280. "reasoningID": {
  14281. "type": "string"
  14282. },
  14283. "text": {
  14284. "type": "string"
  14285. },
  14286. "providerMetadata": {
  14287. "$ref": "#/components/schemas/LLM.ProviderMetadata7"
  14288. }
  14289. },
  14290. "required": [
  14291. "timestamp",
  14292. "sessionID",
  14293. "assistantMessageID",
  14294. "reasoningID",
  14295. "text"
  14296. ],
  14297. "additionalProperties": false
  14298. }
  14299. },
  14300. "required": [
  14301. "id",
  14302. "type",
  14303. "data"
  14304. ],
  14305. "additionalProperties": false
  14306. },
  14307. "session.next.retry_error": {
  14308. "type": "object",
  14309. "properties": {
  14310. "message": {
  14311. "type": "string"
  14312. },
  14313. "statusCode": {
  14314. "type": "number"
  14315. },
  14316. "isRetryable": {
  14317. "type": "boolean"
  14318. },
  14319. "responseHeaders": {
  14320. "type": "object",
  14321. "additionalProperties": {
  14322. "type": "string"
  14323. }
  14324. },
  14325. "responseBody": {
  14326. "type": "string"
  14327. },
  14328. "metadata": {
  14329. "type": "object",
  14330. "additionalProperties": {
  14331. "type": "string"
  14332. }
  14333. }
  14334. },
  14335. "required": [
  14336. "message",
  14337. "isRetryable"
  14338. ],
  14339. "additionalProperties": false
  14340. },
  14341. "session.next.retried": {
  14342. "type": "object",
  14343. "properties": {
  14344. "id": {
  14345. "type": "string",
  14346. "allOf": [
  14347. {
  14348. "pattern": "^evt_"
  14349. }
  14350. ]
  14351. },
  14352. "metadata": {
  14353. "type": "object"
  14354. },
  14355. "type": {
  14356. "type": "string",
  14357. "enum": [
  14358. "session.next.retried"
  14359. ]
  14360. },
  14361. "durable": {
  14362. "type": "object",
  14363. "properties": {
  14364. "aggregateID": {
  14365. "type": "string"
  14366. },
  14367. "seq": {
  14368. "type": "integer",
  14369. "allOf": [
  14370. {
  14371. "minimum": 0
  14372. }
  14373. ]
  14374. },
  14375. "version": {
  14376. "type": "integer",
  14377. "allOf": [
  14378. {
  14379. "minimum": 1
  14380. }
  14381. ]
  14382. }
  14383. },
  14384. "required": [
  14385. "aggregateID",
  14386. "seq",
  14387. "version"
  14388. ],
  14389. "additionalProperties": false
  14390. },
  14391. "location": {
  14392. "$ref": "#/components/schemas/Location.Ref"
  14393. },
  14394. "data": {
  14395. "type": "object",
  14396. "properties": {
  14397. "timestamp": {
  14398. "type": "number"
  14399. },
  14400. "sessionID": {
  14401. "type": "string",
  14402. "allOf": [
  14403. {
  14404. "pattern": "^ses"
  14405. }
  14406. ]
  14407. },
  14408. "attempt": {
  14409. "type": "number"
  14410. },
  14411. "error": {
  14412. "$ref": "#/components/schemas/session.next.retry_error"
  14413. }
  14414. },
  14415. "required": [
  14416. "timestamp",
  14417. "sessionID",
  14418. "attempt",
  14419. "error"
  14420. ],
  14421. "additionalProperties": false
  14422. }
  14423. },
  14424. "required": [
  14425. "id",
  14426. "type",
  14427. "data"
  14428. ],
  14429. "additionalProperties": false
  14430. },
  14431. "session.next.compaction.started": {
  14432. "type": "object",
  14433. "properties": {
  14434. "id": {
  14435. "type": "string",
  14436. "allOf": [
  14437. {
  14438. "pattern": "^evt_"
  14439. }
  14440. ]
  14441. },
  14442. "metadata": {
  14443. "type": "object"
  14444. },
  14445. "type": {
  14446. "type": "string",
  14447. "enum": [
  14448. "session.next.compaction.started"
  14449. ]
  14450. },
  14451. "durable": {
  14452. "type": "object",
  14453. "properties": {
  14454. "aggregateID": {
  14455. "type": "string"
  14456. },
  14457. "seq": {
  14458. "type": "integer",
  14459. "allOf": [
  14460. {
  14461. "minimum": 0
  14462. }
  14463. ]
  14464. },
  14465. "version": {
  14466. "type": "integer",
  14467. "allOf": [
  14468. {
  14469. "minimum": 1
  14470. }
  14471. ]
  14472. }
  14473. },
  14474. "required": [
  14475. "aggregateID",
  14476. "seq",
  14477. "version"
  14478. ],
  14479. "additionalProperties": false
  14480. },
  14481. "location": {
  14482. "$ref": "#/components/schemas/Location.Ref"
  14483. },
  14484. "data": {
  14485. "type": "object",
  14486. "properties": {
  14487. "timestamp": {
  14488. "type": "number"
  14489. },
  14490. "sessionID": {
  14491. "type": "string",
  14492. "allOf": [
  14493. {
  14494. "pattern": "^ses"
  14495. }
  14496. ]
  14497. },
  14498. "messageID": {
  14499. "type": "string",
  14500. "allOf": [
  14501. {
  14502. "pattern": "^msg_"
  14503. }
  14504. ]
  14505. },
  14506. "reason": {
  14507. "type": "string",
  14508. "enum": [
  14509. "auto",
  14510. "manual"
  14511. ]
  14512. }
  14513. },
  14514. "required": [
  14515. "timestamp",
  14516. "sessionID",
  14517. "messageID",
  14518. "reason"
  14519. ],
  14520. "additionalProperties": false
  14521. }
  14522. },
  14523. "required": [
  14524. "id",
  14525. "type",
  14526. "data"
  14527. ],
  14528. "additionalProperties": false
  14529. },
  14530. "session.next.compaction.ended": {
  14531. "type": "object",
  14532. "properties": {
  14533. "id": {
  14534. "type": "string",
  14535. "allOf": [
  14536. {
  14537. "pattern": "^evt_"
  14538. }
  14539. ]
  14540. },
  14541. "metadata": {
  14542. "type": "object"
  14543. },
  14544. "type": {
  14545. "type": "string",
  14546. "enum": [
  14547. "session.next.compaction.ended"
  14548. ]
  14549. },
  14550. "durable": {
  14551. "type": "object",
  14552. "properties": {
  14553. "aggregateID": {
  14554. "type": "string"
  14555. },
  14556. "seq": {
  14557. "type": "integer",
  14558. "allOf": [
  14559. {
  14560. "minimum": 0
  14561. }
  14562. ]
  14563. },
  14564. "version": {
  14565. "type": "integer",
  14566. "allOf": [
  14567. {
  14568. "minimum": 1
  14569. }
  14570. ]
  14571. }
  14572. },
  14573. "required": [
  14574. "aggregateID",
  14575. "seq",
  14576. "version"
  14577. ],
  14578. "additionalProperties": false
  14579. },
  14580. "location": {
  14581. "$ref": "#/components/schemas/Location.Ref"
  14582. },
  14583. "data": {
  14584. "type": "object",
  14585. "properties": {
  14586. "timestamp": {
  14587. "type": "number"
  14588. },
  14589. "sessionID": {
  14590. "type": "string",
  14591. "allOf": [
  14592. {
  14593. "pattern": "^ses"
  14594. }
  14595. ]
  14596. },
  14597. "messageID": {
  14598. "type": "string",
  14599. "allOf": [
  14600. {
  14601. "pattern": "^msg_"
  14602. }
  14603. ]
  14604. },
  14605. "reason": {
  14606. "type": "string",
  14607. "enum": [
  14608. "auto",
  14609. "manual"
  14610. ]
  14611. },
  14612. "text": {
  14613. "type": "string"
  14614. },
  14615. "recent": {
  14616. "type": "string"
  14617. }
  14618. },
  14619. "required": [
  14620. "timestamp",
  14621. "sessionID",
  14622. "messageID",
  14623. "reason",
  14624. "text",
  14625. "recent"
  14626. ],
  14627. "additionalProperties": false
  14628. }
  14629. },
  14630. "required": [
  14631. "id",
  14632. "type",
  14633. "data"
  14634. ],
  14635. "additionalProperties": false
  14636. },
  14637. "session.next.revert.staged": {
  14638. "type": "object",
  14639. "properties": {
  14640. "id": {
  14641. "type": "string",
  14642. "allOf": [
  14643. {
  14644. "pattern": "^evt_"
  14645. }
  14646. ]
  14647. },
  14648. "metadata": {
  14649. "type": "object"
  14650. },
  14651. "type": {
  14652. "type": "string",
  14653. "enum": [
  14654. "session.next.revert.staged"
  14655. ]
  14656. },
  14657. "durable": {
  14658. "type": "object",
  14659. "properties": {
  14660. "aggregateID": {
  14661. "type": "string"
  14662. },
  14663. "seq": {
  14664. "type": "integer",
  14665. "allOf": [
  14666. {
  14667. "minimum": 0
  14668. }
  14669. ]
  14670. },
  14671. "version": {
  14672. "type": "integer",
  14673. "allOf": [
  14674. {
  14675. "minimum": 1
  14676. }
  14677. ]
  14678. }
  14679. },
  14680. "required": [
  14681. "aggregateID",
  14682. "seq",
  14683. "version"
  14684. ],
  14685. "additionalProperties": false
  14686. },
  14687. "location": {
  14688. "$ref": "#/components/schemas/Location.Ref"
  14689. },
  14690. "data": {
  14691. "type": "object",
  14692. "properties": {
  14693. "timestamp": {
  14694. "type": "number"
  14695. },
  14696. "sessionID": {
  14697. "type": "string",
  14698. "allOf": [
  14699. {
  14700. "pattern": "^ses"
  14701. }
  14702. ]
  14703. },
  14704. "revert": {
  14705. "$ref": "#/components/schemas/Revert.State"
  14706. }
  14707. },
  14708. "required": [
  14709. "timestamp",
  14710. "sessionID",
  14711. "revert"
  14712. ],
  14713. "additionalProperties": false
  14714. }
  14715. },
  14716. "required": [
  14717. "id",
  14718. "type",
  14719. "data"
  14720. ],
  14721. "additionalProperties": false
  14722. },
  14723. "session.next.revert.cleared": {
  14724. "type": "object",
  14725. "properties": {
  14726. "id": {
  14727. "type": "string",
  14728. "allOf": [
  14729. {
  14730. "pattern": "^evt_"
  14731. }
  14732. ]
  14733. },
  14734. "metadata": {
  14735. "type": "object"
  14736. },
  14737. "type": {
  14738. "type": "string",
  14739. "enum": [
  14740. "session.next.revert.cleared"
  14741. ]
  14742. },
  14743. "durable": {
  14744. "type": "object",
  14745. "properties": {
  14746. "aggregateID": {
  14747. "type": "string"
  14748. },
  14749. "seq": {
  14750. "type": "integer",
  14751. "allOf": [
  14752. {
  14753. "minimum": 0
  14754. }
  14755. ]
  14756. },
  14757. "version": {
  14758. "type": "integer",
  14759. "allOf": [
  14760. {
  14761. "minimum": 1
  14762. }
  14763. ]
  14764. }
  14765. },
  14766. "required": [
  14767. "aggregateID",
  14768. "seq",
  14769. "version"
  14770. ],
  14771. "additionalProperties": false
  14772. },
  14773. "location": {
  14774. "$ref": "#/components/schemas/Location.Ref"
  14775. },
  14776. "data": {
  14777. "type": "object",
  14778. "properties": {
  14779. "timestamp": {
  14780. "type": "number"
  14781. },
  14782. "sessionID": {
  14783. "type": "string",
  14784. "allOf": [
  14785. {
  14786. "pattern": "^ses"
  14787. }
  14788. ]
  14789. }
  14790. },
  14791. "required": [
  14792. "timestamp",
  14793. "sessionID"
  14794. ],
  14795. "additionalProperties": false
  14796. }
  14797. },
  14798. "required": [
  14799. "id",
  14800. "type",
  14801. "data"
  14802. ],
  14803. "additionalProperties": false
  14804. },
  14805. "session.next.revert.committed": {
  14806. "type": "object",
  14807. "properties": {
  14808. "id": {
  14809. "type": "string",
  14810. "allOf": [
  14811. {
  14812. "pattern": "^evt_"
  14813. }
  14814. ]
  14815. },
  14816. "metadata": {
  14817. "type": "object"
  14818. },
  14819. "type": {
  14820. "type": "string",
  14821. "enum": [
  14822. "session.next.revert.committed"
  14823. ]
  14824. },
  14825. "durable": {
  14826. "type": "object",
  14827. "properties": {
  14828. "aggregateID": {
  14829. "type": "string"
  14830. },
  14831. "seq": {
  14832. "type": "integer",
  14833. "allOf": [
  14834. {
  14835. "minimum": 0
  14836. }
  14837. ]
  14838. },
  14839. "version": {
  14840. "type": "integer",
  14841. "allOf": [
  14842. {
  14843. "minimum": 1
  14844. }
  14845. ]
  14846. }
  14847. },
  14848. "required": [
  14849. "aggregateID",
  14850. "seq",
  14851. "version"
  14852. ],
  14853. "additionalProperties": false
  14854. },
  14855. "location": {
  14856. "$ref": "#/components/schemas/Location.Ref"
  14857. },
  14858. "data": {
  14859. "type": "object",
  14860. "properties": {
  14861. "timestamp": {
  14862. "type": "number"
  14863. },
  14864. "sessionID": {
  14865. "type": "string",
  14866. "allOf": [
  14867. {
  14868. "pattern": "^ses"
  14869. }
  14870. ]
  14871. },
  14872. "messageID": {
  14873. "type": "string",
  14874. "allOf": [
  14875. {
  14876. "pattern": "^msg_"
  14877. }
  14878. ]
  14879. }
  14880. },
  14881. "required": [
  14882. "timestamp",
  14883. "sessionID",
  14884. "messageID"
  14885. ],
  14886. "additionalProperties": false
  14887. }
  14888. },
  14889. "required": [
  14890. "id",
  14891. "type",
  14892. "data"
  14893. ],
  14894. "additionalProperties": false
  14895. },
  14896. "SessionDurableEvent": {
  14897. "oneOf": [
  14898. {
  14899. "$ref": "#/components/schemas/session.next.agent.switched"
  14900. },
  14901. {
  14902. "$ref": "#/components/schemas/session.next.model.switched"
  14903. },
  14904. {
  14905. "$ref": "#/components/schemas/session.next.moved"
  14906. },
  14907. {
  14908. "$ref": "#/components/schemas/session.next.renamed"
  14909. },
  14910. {
  14911. "$ref": "#/components/schemas/session.next.forked"
  14912. },
  14913. {
  14914. "$ref": "#/components/schemas/session.next.prompted"
  14915. },
  14916. {
  14917. "$ref": "#/components/schemas/session.next.prompt.admitted"
  14918. },
  14919. {
  14920. "$ref": "#/components/schemas/session.next.instructions.updated"
  14921. },
  14922. {
  14923. "$ref": "#/components/schemas/session.next.synthetic"
  14924. },
  14925. {
  14926. "$ref": "#/components/schemas/session.next.skill.activated"
  14927. },
  14928. {
  14929. "$ref": "#/components/schemas/session.next.shell.started"
  14930. },
  14931. {
  14932. "$ref": "#/components/schemas/session.next.shell.ended"
  14933. },
  14934. {
  14935. "$ref": "#/components/schemas/session.next.step.started"
  14936. },
  14937. {
  14938. "$ref": "#/components/schemas/session.next.step.ended"
  14939. },
  14940. {
  14941. "$ref": "#/components/schemas/session.next.step.failed"
  14942. },
  14943. {
  14944. "$ref": "#/components/schemas/session.next.text.started"
  14945. },
  14946. {
  14947. "$ref": "#/components/schemas/session.next.text.ended"
  14948. },
  14949. {
  14950. "$ref": "#/components/schemas/session.next.tool.input.started"
  14951. },
  14952. {
  14953. "$ref": "#/components/schemas/session.next.tool.input.ended"
  14954. },
  14955. {
  14956. "$ref": "#/components/schemas/session.next.tool.called"
  14957. },
  14958. {
  14959. "$ref": "#/components/schemas/session.next.tool.progress"
  14960. },
  14961. {
  14962. "$ref": "#/components/schemas/session.next.tool.success"
  14963. },
  14964. {
  14965. "$ref": "#/components/schemas/session.next.tool.failed"
  14966. },
  14967. {
  14968. "$ref": "#/components/schemas/session.next.reasoning.started"
  14969. },
  14970. {
  14971. "$ref": "#/components/schemas/session.next.reasoning.ended"
  14972. },
  14973. {
  14974. "$ref": "#/components/schemas/session.next.retried"
  14975. },
  14976. {
  14977. "$ref": "#/components/schemas/session.next.compaction.started"
  14978. },
  14979. {
  14980. "$ref": "#/components/schemas/session.next.compaction.ended"
  14981. },
  14982. {
  14983. "$ref": "#/components/schemas/session.next.revert.staged"
  14984. },
  14985. {
  14986. "$ref": "#/components/schemas/session.next.revert.cleared"
  14987. },
  14988. {
  14989. "$ref": "#/components/schemas/session.next.revert.committed"
  14990. }
  14991. ]
  14992. },
  14993. "EventLog.Synced": {
  14994. "type": "object",
  14995. "properties": {
  14996. "type": {
  14997. "type": "string",
  14998. "enum": [
  14999. "log.synced"
  15000. ]
  15001. },
  15002. "aggregateID": {
  15003. "type": "string"
  15004. },
  15005. "seq": {
  15006. "type": "integer",
  15007. "allOf": [
  15008. {
  15009. "minimum": 0
  15010. }
  15011. ]
  15012. }
  15013. },
  15014. "required": [
  15015. "type",
  15016. "aggregateID"
  15017. ],
  15018. "additionalProperties": false,
  15019. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  15020. },
  15021. "SessionLogItem": {
  15022. "anyOf": [
  15023. {
  15024. "$ref": "#/components/schemas/SessionDurableEvent"
  15025. },
  15026. {
  15027. "$ref": "#/components/schemas/EventLog.Synced"
  15028. }
  15029. ]
  15030. },
  15031. "SessionLogItemStream": {
  15032. "type": "string",
  15033. "contentSchema": {
  15034. "$ref": "#/components/schemas/SessionLogItem"
  15035. },
  15036. "contentMediaType": "application/json"
  15037. },
  15038. "SessionMessagesResponse": {
  15039. "type": "object",
  15040. "properties": {
  15041. "data": {
  15042. "type": "array",
  15043. "items": {
  15044. "$ref": "#/components/schemas/Session.Message"
  15045. }
  15046. },
  15047. "watermark": {
  15048. "type": "integer",
  15049. "allOf": [
  15050. {
  15051. "minimum": 0
  15052. }
  15053. ]
  15054. },
  15055. "cursor": {
  15056. "type": "object",
  15057. "properties": {
  15058. "previous": {
  15059. "anyOf": [
  15060. {
  15061. "type": "string"
  15062. },
  15063. {
  15064. "type": "null"
  15065. }
  15066. ]
  15067. },
  15068. "next": {
  15069. "anyOf": [
  15070. {
  15071. "type": "string"
  15072. },
  15073. {
  15074. "type": "null"
  15075. }
  15076. ]
  15077. }
  15078. },
  15079. "additionalProperties": false
  15080. }
  15081. },
  15082. "required": [
  15083. "data",
  15084. "cursor"
  15085. ],
  15086. "additionalProperties": false
  15087. },
  15088. "Model.Api": {
  15089. "anyOf": [
  15090. {
  15091. "type": "object",
  15092. "properties": {
  15093. "id": {
  15094. "type": "string"
  15095. },
  15096. "type": {
  15097. "type": "string",
  15098. "enum": [
  15099. "aisdk"
  15100. ]
  15101. },
  15102. "package": {
  15103. "type": "string"
  15104. },
  15105. "url": {
  15106. "type": "string"
  15107. },
  15108. "settings": {
  15109. "type": "object"
  15110. }
  15111. },
  15112. "required": [
  15113. "id",
  15114. "type",
  15115. "package"
  15116. ],
  15117. "additionalProperties": false
  15118. },
  15119. {
  15120. "type": "object",
  15121. "properties": {
  15122. "id": {
  15123. "type": "string"
  15124. },
  15125. "type": {
  15126. "type": "string",
  15127. "enum": [
  15128. "native"
  15129. ]
  15130. },
  15131. "url": {
  15132. "type": "string"
  15133. },
  15134. "settings": {
  15135. "type": "object"
  15136. }
  15137. },
  15138. "required": [
  15139. "id",
  15140. "type",
  15141. "settings"
  15142. ],
  15143. "additionalProperties": false
  15144. }
  15145. ]
  15146. },
  15147. "Model.Capabilities": {
  15148. "type": "object",
  15149. "properties": {
  15150. "tools": {
  15151. "type": "boolean"
  15152. },
  15153. "input": {
  15154. "type": "array",
  15155. "items": {
  15156. "type": "string"
  15157. }
  15158. },
  15159. "output": {
  15160. "type": "array",
  15161. "items": {
  15162. "type": "string"
  15163. }
  15164. }
  15165. },
  15166. "required": [
  15167. "tools",
  15168. "input",
  15169. "output"
  15170. ],
  15171. "additionalProperties": false
  15172. },
  15173. "Model.Cost": {
  15174. "type": "object",
  15175. "properties": {
  15176. "tier": {
  15177. "type": "object",
  15178. "properties": {
  15179. "type": {
  15180. "type": "string",
  15181. "enum": [
  15182. "context"
  15183. ]
  15184. },
  15185. "size": {
  15186. "type": "integer"
  15187. }
  15188. },
  15189. "required": [
  15190. "type",
  15191. "size"
  15192. ],
  15193. "additionalProperties": false
  15194. },
  15195. "input": {
  15196. "type": "number"
  15197. },
  15198. "output": {
  15199. "type": "number"
  15200. },
  15201. "cache": {
  15202. "type": "object",
  15203. "properties": {
  15204. "read": {
  15205. "type": "number"
  15206. },
  15207. "write": {
  15208. "type": "number"
  15209. }
  15210. },
  15211. "required": [
  15212. "read",
  15213. "write"
  15214. ],
  15215. "additionalProperties": false
  15216. }
  15217. },
  15218. "required": [
  15219. "input",
  15220. "output",
  15221. "cache"
  15222. ],
  15223. "additionalProperties": false
  15224. },
  15225. "ModelV2.Info": {
  15226. "type": "object",
  15227. "properties": {
  15228. "id": {
  15229. "type": "string"
  15230. },
  15231. "providerID": {
  15232. "type": "string"
  15233. },
  15234. "family": {
  15235. "type": "string"
  15236. },
  15237. "name": {
  15238. "type": "string"
  15239. },
  15240. "api": {
  15241. "$ref": "#/components/schemas/Model.Api"
  15242. },
  15243. "capabilities": {
  15244. "$ref": "#/components/schemas/Model.Capabilities"
  15245. },
  15246. "request": {
  15247. "type": "object",
  15248. "properties": {
  15249. "settings": {
  15250. "$ref": "#/components/schemas/Provider.Settings"
  15251. },
  15252. "headers": {
  15253. "type": "object",
  15254. "additionalProperties": {
  15255. "type": "string"
  15256. }
  15257. },
  15258. "body": {
  15259. "type": "object"
  15260. },
  15261. "variant": {
  15262. "type": "string"
  15263. }
  15264. },
  15265. "required": [
  15266. "settings",
  15267. "headers",
  15268. "body"
  15269. ],
  15270. "additionalProperties": false
  15271. },
  15272. "variants": {
  15273. "type": "array",
  15274. "items": {
  15275. "type": "object",
  15276. "properties": {
  15277. "id": {
  15278. "type": "string"
  15279. },
  15280. "settings": {
  15281. "$ref": "#/components/schemas/Provider.Settings"
  15282. },
  15283. "headers": {
  15284. "type": "object",
  15285. "additionalProperties": {
  15286. "type": "string"
  15287. }
  15288. },
  15289. "body": {
  15290. "type": "object"
  15291. }
  15292. },
  15293. "required": [
  15294. "id",
  15295. "settings",
  15296. "headers",
  15297. "body"
  15298. ],
  15299. "additionalProperties": false
  15300. }
  15301. },
  15302. "time": {
  15303. "type": "object",
  15304. "properties": {
  15305. "released": {
  15306. "type": "number"
  15307. }
  15308. },
  15309. "required": [
  15310. "released"
  15311. ],
  15312. "additionalProperties": false
  15313. },
  15314. "cost": {
  15315. "type": "array",
  15316. "items": {
  15317. "$ref": "#/components/schemas/Model.Cost"
  15318. }
  15319. },
  15320. "status": {
  15321. "type": "string",
  15322. "enum": [
  15323. "alpha",
  15324. "beta",
  15325. "deprecated",
  15326. "active"
  15327. ]
  15328. },
  15329. "enabled": {
  15330. "type": "boolean"
  15331. },
  15332. "limit": {
  15333. "type": "object",
  15334. "properties": {
  15335. "context": {
  15336. "type": "integer"
  15337. },
  15338. "input": {
  15339. "type": "integer"
  15340. },
  15341. "output": {
  15342. "type": "integer"
  15343. }
  15344. },
  15345. "required": [
  15346. "context",
  15347. "output"
  15348. ],
  15349. "additionalProperties": false
  15350. }
  15351. },
  15352. "required": [
  15353. "id",
  15354. "providerID",
  15355. "name",
  15356. "api",
  15357. "capabilities",
  15358. "request",
  15359. "variants",
  15360. "time",
  15361. "cost",
  15362. "status",
  15363. "enabled",
  15364. "limit"
  15365. ],
  15366. "additionalProperties": false
  15367. },
  15368. "GenerateTextResponse": {
  15369. "type": "object",
  15370. "properties": {
  15371. "data": {
  15372. "type": "object",
  15373. "properties": {
  15374. "text": {
  15375. "type": "string"
  15376. }
  15377. },
  15378. "required": [
  15379. "text"
  15380. ],
  15381. "additionalProperties": false
  15382. }
  15383. },
  15384. "required": [
  15385. "data"
  15386. ],
  15387. "additionalProperties": false
  15388. },
  15389. "Provider.AISDK": {
  15390. "type": "object",
  15391. "properties": {
  15392. "type": {
  15393. "type": "string",
  15394. "enum": [
  15395. "aisdk"
  15396. ]
  15397. },
  15398. "package": {
  15399. "type": "string"
  15400. },
  15401. "url": {
  15402. "type": "string"
  15403. },
  15404. "settings": {
  15405. "type": "object"
  15406. }
  15407. },
  15408. "required": [
  15409. "type",
  15410. "package"
  15411. ],
  15412. "additionalProperties": false
  15413. },
  15414. "Provider.Native": {
  15415. "type": "object",
  15416. "properties": {
  15417. "type": {
  15418. "type": "string",
  15419. "enum": [
  15420. "native"
  15421. ]
  15422. },
  15423. "url": {
  15424. "type": "string"
  15425. },
  15426. "settings": {
  15427. "type": "object"
  15428. }
  15429. },
  15430. "required": [
  15431. "type",
  15432. "settings"
  15433. ],
  15434. "additionalProperties": false
  15435. },
  15436. "Provider.Api": {
  15437. "anyOf": [
  15438. {
  15439. "$ref": "#/components/schemas/Provider.AISDK"
  15440. },
  15441. {
  15442. "$ref": "#/components/schemas/Provider.Native"
  15443. }
  15444. ]
  15445. },
  15446. "ProviderV2.Info": {
  15447. "type": "object",
  15448. "properties": {
  15449. "id": {
  15450. "type": "string"
  15451. },
  15452. "integrationID": {
  15453. "type": "string"
  15454. },
  15455. "name": {
  15456. "type": "string"
  15457. },
  15458. "disabled": {
  15459. "type": "boolean"
  15460. },
  15461. "api": {
  15462. "$ref": "#/components/schemas/Provider.Api"
  15463. },
  15464. "request": {
  15465. "$ref": "#/components/schemas/Provider.Request"
  15466. }
  15467. },
  15468. "required": [
  15469. "id",
  15470. "name",
  15471. "api",
  15472. "request"
  15473. ],
  15474. "additionalProperties": false
  15475. },
  15476. "ProviderNotFoundError": {
  15477. "type": "object",
  15478. "properties": {
  15479. "_tag": {
  15480. "type": "string",
  15481. "enum": [
  15482. "ProviderNotFoundError"
  15483. ]
  15484. },
  15485. "providerID": {
  15486. "type": "string"
  15487. },
  15488. "message": {
  15489. "type": "string"
  15490. }
  15491. },
  15492. "required": [
  15493. "_tag",
  15494. "providerID",
  15495. "message"
  15496. ],
  15497. "additionalProperties": false
  15498. },
  15499. "Integration.When": {
  15500. "type": "object",
  15501. "properties": {
  15502. "key": {
  15503. "type": "string"
  15504. },
  15505. "op": {
  15506. "type": "string",
  15507. "enum": [
  15508. "eq",
  15509. "neq"
  15510. ]
  15511. },
  15512. "value": {
  15513. "type": "string"
  15514. }
  15515. },
  15516. "required": [
  15517. "key",
  15518. "op",
  15519. "value"
  15520. ],
  15521. "additionalProperties": false
  15522. },
  15523. "Integration.TextPrompt": {
  15524. "type": "object",
  15525. "properties": {
  15526. "type": {
  15527. "type": "string",
  15528. "enum": [
  15529. "text"
  15530. ]
  15531. },
  15532. "key": {
  15533. "type": "string"
  15534. },
  15535. "message": {
  15536. "type": "string"
  15537. },
  15538. "placeholder": {
  15539. "type": "string"
  15540. },
  15541. "when": {
  15542. "$ref": "#/components/schemas/Integration.When"
  15543. }
  15544. },
  15545. "required": [
  15546. "type",
  15547. "key",
  15548. "message"
  15549. ],
  15550. "additionalProperties": false
  15551. },
  15552. "Integration.SelectPrompt": {
  15553. "type": "object",
  15554. "properties": {
  15555. "type": {
  15556. "type": "string",
  15557. "enum": [
  15558. "select"
  15559. ]
  15560. },
  15561. "key": {
  15562. "type": "string"
  15563. },
  15564. "message": {
  15565. "type": "string"
  15566. },
  15567. "options": {
  15568. "type": "array",
  15569. "items": {
  15570. "type": "object",
  15571. "properties": {
  15572. "label": {
  15573. "type": "string"
  15574. },
  15575. "value": {
  15576. "type": "string"
  15577. },
  15578. "hint": {
  15579. "type": "string"
  15580. }
  15581. },
  15582. "required": [
  15583. "label",
  15584. "value"
  15585. ],
  15586. "additionalProperties": false
  15587. }
  15588. },
  15589. "when": {
  15590. "$ref": "#/components/schemas/Integration.When"
  15591. }
  15592. },
  15593. "required": [
  15594. "type",
  15595. "key",
  15596. "message",
  15597. "options"
  15598. ],
  15599. "additionalProperties": false
  15600. },
  15601. "Integration.OAuthMethod": {
  15602. "type": "object",
  15603. "properties": {
  15604. "id": {
  15605. "type": "string"
  15606. },
  15607. "type": {
  15608. "type": "string",
  15609. "enum": [
  15610. "oauth"
  15611. ]
  15612. },
  15613. "label": {
  15614. "type": "string"
  15615. },
  15616. "prompts": {
  15617. "type": "array",
  15618. "items": {
  15619. "anyOf": [
  15620. {
  15621. "$ref": "#/components/schemas/Integration.TextPrompt"
  15622. },
  15623. {
  15624. "$ref": "#/components/schemas/Integration.SelectPrompt"
  15625. }
  15626. ]
  15627. }
  15628. }
  15629. },
  15630. "required": [
  15631. "id",
  15632. "type",
  15633. "label"
  15634. ],
  15635. "additionalProperties": false
  15636. },
  15637. "Integration.KeyMethod": {
  15638. "type": "object",
  15639. "properties": {
  15640. "type": {
  15641. "type": "string",
  15642. "enum": [
  15643. "key"
  15644. ]
  15645. },
  15646. "label": {
  15647. "type": "string"
  15648. }
  15649. },
  15650. "required": [
  15651. "type"
  15652. ],
  15653. "additionalProperties": false
  15654. },
  15655. "Integration.EnvMethod": {
  15656. "type": "object",
  15657. "properties": {
  15658. "type": {
  15659. "type": "string",
  15660. "enum": [
  15661. "env"
  15662. ]
  15663. },
  15664. "names": {
  15665. "type": "array",
  15666. "items": {
  15667. "type": "string"
  15668. }
  15669. }
  15670. },
  15671. "required": [
  15672. "type",
  15673. "names"
  15674. ],
  15675. "additionalProperties": false
  15676. },
  15677. "Integration.Method": {
  15678. "anyOf": [
  15679. {
  15680. "$ref": "#/components/schemas/Integration.OAuthMethod"
  15681. },
  15682. {
  15683. "$ref": "#/components/schemas/Integration.KeyMethod"
  15684. },
  15685. {
  15686. "$ref": "#/components/schemas/Integration.EnvMethod"
  15687. }
  15688. ]
  15689. },
  15690. "Connection.CredentialInfo": {
  15691. "type": "object",
  15692. "properties": {
  15693. "type": {
  15694. "type": "string",
  15695. "enum": [
  15696. "credential"
  15697. ]
  15698. },
  15699. "id": {
  15700. "type": "string"
  15701. },
  15702. "label": {
  15703. "type": "string"
  15704. }
  15705. },
  15706. "required": [
  15707. "type",
  15708. "id",
  15709. "label"
  15710. ],
  15711. "additionalProperties": false
  15712. },
  15713. "Connection.EnvInfo": {
  15714. "type": "object",
  15715. "properties": {
  15716. "type": {
  15717. "type": "string",
  15718. "enum": [
  15719. "env"
  15720. ]
  15721. },
  15722. "name": {
  15723. "type": "string"
  15724. }
  15725. },
  15726. "required": [
  15727. "type",
  15728. "name"
  15729. ],
  15730. "additionalProperties": false
  15731. },
  15732. "Connection.Info": {
  15733. "anyOf": [
  15734. {
  15735. "$ref": "#/components/schemas/Connection.CredentialInfo"
  15736. },
  15737. {
  15738. "$ref": "#/components/schemas/Connection.EnvInfo"
  15739. }
  15740. ]
  15741. },
  15742. "Integration.Info": {
  15743. "type": "object",
  15744. "properties": {
  15745. "id": {
  15746. "type": "string"
  15747. },
  15748. "name": {
  15749. "type": "string"
  15750. },
  15751. "methods": {
  15752. "type": "array",
  15753. "items": {
  15754. "$ref": "#/components/schemas/Integration.Method"
  15755. }
  15756. },
  15757. "connections": {
  15758. "type": "array",
  15759. "items": {
  15760. "$ref": "#/components/schemas/Connection.Info"
  15761. }
  15762. }
  15763. },
  15764. "required": [
  15765. "id",
  15766. "name",
  15767. "methods",
  15768. "connections"
  15769. ],
  15770. "additionalProperties": false
  15771. },
  15772. "Integration.Attempt": {
  15773. "type": "object",
  15774. "properties": {
  15775. "attemptID": {
  15776. "type": "string"
  15777. },
  15778. "url": {
  15779. "type": "string"
  15780. },
  15781. "instructions": {
  15782. "type": "string"
  15783. },
  15784. "mode": {
  15785. "type": "string",
  15786. "enum": [
  15787. "auto",
  15788. "code"
  15789. ]
  15790. },
  15791. "time": {
  15792. "type": "object",
  15793. "properties": {
  15794. "created": {
  15795. "anyOf": [
  15796. {
  15797. "anyOf": [
  15798. {
  15799. "type": "number"
  15800. },
  15801. {
  15802. "type": "string",
  15803. "enum": [
  15804. "NaN"
  15805. ]
  15806. },
  15807. {
  15808. "type": "string",
  15809. "enum": [
  15810. "Infinity"
  15811. ]
  15812. },
  15813. {
  15814. "type": "string",
  15815. "enum": [
  15816. "-Infinity"
  15817. ]
  15818. }
  15819. ]
  15820. },
  15821. {
  15822. "type": "string",
  15823. "enum": [
  15824. "Infinity",
  15825. "-Infinity",
  15826. "NaN"
  15827. ]
  15828. }
  15829. ]
  15830. },
  15831. "expires": {
  15832. "anyOf": [
  15833. {
  15834. "anyOf": [
  15835. {
  15836. "type": "number"
  15837. },
  15838. {
  15839. "type": "string",
  15840. "enum": [
  15841. "NaN"
  15842. ]
  15843. },
  15844. {
  15845. "type": "string",
  15846. "enum": [
  15847. "Infinity"
  15848. ]
  15849. },
  15850. {
  15851. "type": "string",
  15852. "enum": [
  15853. "-Infinity"
  15854. ]
  15855. }
  15856. ]
  15857. },
  15858. {
  15859. "type": "string",
  15860. "enum": [
  15861. "Infinity",
  15862. "-Infinity",
  15863. "NaN"
  15864. ]
  15865. }
  15866. ]
  15867. }
  15868. },
  15869. "required": [
  15870. "created",
  15871. "expires"
  15872. ],
  15873. "additionalProperties": false
  15874. }
  15875. },
  15876. "required": [
  15877. "attemptID",
  15878. "url",
  15879. "instructions",
  15880. "mode",
  15881. "time"
  15882. ],
  15883. "additionalProperties": false
  15884. },
  15885. "Integration.AttemptStatus": {
  15886. "anyOf": [
  15887. {
  15888. "type": "object",
  15889. "properties": {
  15890. "status": {
  15891. "type": "string",
  15892. "enum": [
  15893. "pending"
  15894. ]
  15895. },
  15896. "time": {
  15897. "type": "object",
  15898. "properties": {
  15899. "created": {
  15900. "anyOf": [
  15901. {
  15902. "anyOf": [
  15903. {
  15904. "type": "number"
  15905. },
  15906. {
  15907. "type": "string",
  15908. "enum": [
  15909. "NaN"
  15910. ]
  15911. },
  15912. {
  15913. "type": "string",
  15914. "enum": [
  15915. "Infinity"
  15916. ]
  15917. },
  15918. {
  15919. "type": "string",
  15920. "enum": [
  15921. "-Infinity"
  15922. ]
  15923. }
  15924. ]
  15925. },
  15926. {
  15927. "type": "string",
  15928. "enum": [
  15929. "Infinity",
  15930. "-Infinity",
  15931. "NaN"
  15932. ]
  15933. }
  15934. ]
  15935. },
  15936. "expires": {
  15937. "anyOf": [
  15938. {
  15939. "anyOf": [
  15940. {
  15941. "type": "number"
  15942. },
  15943. {
  15944. "type": "string",
  15945. "enum": [
  15946. "NaN"
  15947. ]
  15948. },
  15949. {
  15950. "type": "string",
  15951. "enum": [
  15952. "Infinity"
  15953. ]
  15954. },
  15955. {
  15956. "type": "string",
  15957. "enum": [
  15958. "-Infinity"
  15959. ]
  15960. }
  15961. ]
  15962. },
  15963. {
  15964. "type": "string",
  15965. "enum": [
  15966. "Infinity",
  15967. "-Infinity",
  15968. "NaN"
  15969. ]
  15970. }
  15971. ]
  15972. }
  15973. },
  15974. "required": [
  15975. "created",
  15976. "expires"
  15977. ],
  15978. "additionalProperties": false
  15979. }
  15980. },
  15981. "required": [
  15982. "status",
  15983. "time"
  15984. ],
  15985. "additionalProperties": false
  15986. },
  15987. {
  15988. "type": "object",
  15989. "properties": {
  15990. "status": {
  15991. "type": "string",
  15992. "enum": [
  15993. "complete"
  15994. ]
  15995. },
  15996. "time": {
  15997. "type": "object",
  15998. "properties": {
  15999. "created": {
  16000. "anyOf": [
  16001. {
  16002. "anyOf": [
  16003. {
  16004. "type": "number"
  16005. },
  16006. {
  16007. "type": "string",
  16008. "enum": [
  16009. "NaN"
  16010. ]
  16011. },
  16012. {
  16013. "type": "string",
  16014. "enum": [
  16015. "Infinity"
  16016. ]
  16017. },
  16018. {
  16019. "type": "string",
  16020. "enum": [
  16021. "-Infinity"
  16022. ]
  16023. }
  16024. ]
  16025. },
  16026. {
  16027. "type": "string",
  16028. "enum": [
  16029. "Infinity",
  16030. "-Infinity",
  16031. "NaN"
  16032. ]
  16033. }
  16034. ]
  16035. },
  16036. "expires": {
  16037. "anyOf": [
  16038. {
  16039. "anyOf": [
  16040. {
  16041. "type": "number"
  16042. },
  16043. {
  16044. "type": "string",
  16045. "enum": [
  16046. "NaN"
  16047. ]
  16048. },
  16049. {
  16050. "type": "string",
  16051. "enum": [
  16052. "Infinity"
  16053. ]
  16054. },
  16055. {
  16056. "type": "string",
  16057. "enum": [
  16058. "-Infinity"
  16059. ]
  16060. }
  16061. ]
  16062. },
  16063. {
  16064. "type": "string",
  16065. "enum": [
  16066. "Infinity",
  16067. "-Infinity",
  16068. "NaN"
  16069. ]
  16070. }
  16071. ]
  16072. }
  16073. },
  16074. "required": [
  16075. "created",
  16076. "expires"
  16077. ],
  16078. "additionalProperties": false
  16079. }
  16080. },
  16081. "required": [
  16082. "status",
  16083. "time"
  16084. ],
  16085. "additionalProperties": false
  16086. },
  16087. {
  16088. "type": "object",
  16089. "properties": {
  16090. "status": {
  16091. "type": "string",
  16092. "enum": [
  16093. "failed"
  16094. ]
  16095. },
  16096. "message": {
  16097. "type": "string"
  16098. },
  16099. "time": {
  16100. "type": "object",
  16101. "properties": {
  16102. "created": {
  16103. "anyOf": [
  16104. {
  16105. "anyOf": [
  16106. {
  16107. "type": "number"
  16108. },
  16109. {
  16110. "type": "string",
  16111. "enum": [
  16112. "NaN"
  16113. ]
  16114. },
  16115. {
  16116. "type": "string",
  16117. "enum": [
  16118. "Infinity"
  16119. ]
  16120. },
  16121. {
  16122. "type": "string",
  16123. "enum": [
  16124. "-Infinity"
  16125. ]
  16126. }
  16127. ]
  16128. },
  16129. {
  16130. "type": "string",
  16131. "enum": [
  16132. "Infinity",
  16133. "-Infinity",
  16134. "NaN"
  16135. ]
  16136. }
  16137. ]
  16138. },
  16139. "expires": {
  16140. "anyOf": [
  16141. {
  16142. "anyOf": [
  16143. {
  16144. "type": "number"
  16145. },
  16146. {
  16147. "type": "string",
  16148. "enum": [
  16149. "NaN"
  16150. ]
  16151. },
  16152. {
  16153. "type": "string",
  16154. "enum": [
  16155. "Infinity"
  16156. ]
  16157. },
  16158. {
  16159. "type": "string",
  16160. "enum": [
  16161. "-Infinity"
  16162. ]
  16163. }
  16164. ]
  16165. },
  16166. {
  16167. "type": "string",
  16168. "enum": [
  16169. "Infinity",
  16170. "-Infinity",
  16171. "NaN"
  16172. ]
  16173. }
  16174. ]
  16175. }
  16176. },
  16177. "required": [
  16178. "created",
  16179. "expires"
  16180. ],
  16181. "additionalProperties": false
  16182. }
  16183. },
  16184. "required": [
  16185. "status",
  16186. "message",
  16187. "time"
  16188. ],
  16189. "additionalProperties": false
  16190. },
  16191. {
  16192. "type": "object",
  16193. "properties": {
  16194. "status": {
  16195. "type": "string",
  16196. "enum": [
  16197. "expired"
  16198. ]
  16199. },
  16200. "time": {
  16201. "type": "object",
  16202. "properties": {
  16203. "created": {
  16204. "anyOf": [
  16205. {
  16206. "anyOf": [
  16207. {
  16208. "type": "number"
  16209. },
  16210. {
  16211. "type": "string",
  16212. "enum": [
  16213. "NaN"
  16214. ]
  16215. },
  16216. {
  16217. "type": "string",
  16218. "enum": [
  16219. "Infinity"
  16220. ]
  16221. },
  16222. {
  16223. "type": "string",
  16224. "enum": [
  16225. "-Infinity"
  16226. ]
  16227. }
  16228. ]
  16229. },
  16230. {
  16231. "type": "string",
  16232. "enum": [
  16233. "Infinity",
  16234. "-Infinity",
  16235. "NaN"
  16236. ]
  16237. }
  16238. ]
  16239. },
  16240. "expires": {
  16241. "anyOf": [
  16242. {
  16243. "anyOf": [
  16244. {
  16245. "type": "number"
  16246. },
  16247. {
  16248. "type": "string",
  16249. "enum": [
  16250. "NaN"
  16251. ]
  16252. },
  16253. {
  16254. "type": "string",
  16255. "enum": [
  16256. "Infinity"
  16257. ]
  16258. },
  16259. {
  16260. "type": "string",
  16261. "enum": [
  16262. "-Infinity"
  16263. ]
  16264. }
  16265. ]
  16266. },
  16267. {
  16268. "type": "string",
  16269. "enum": [
  16270. "Infinity",
  16271. "-Infinity",
  16272. "NaN"
  16273. ]
  16274. }
  16275. ]
  16276. }
  16277. },
  16278. "required": [
  16279. "created",
  16280. "expires"
  16281. ],
  16282. "additionalProperties": false
  16283. }
  16284. },
  16285. "required": [
  16286. "status",
  16287. "time"
  16288. ],
  16289. "additionalProperties": false
  16290. }
  16291. ]
  16292. },
  16293. "Mcp.Status.Connected": {
  16294. "type": "object",
  16295. "properties": {
  16296. "status": {
  16297. "type": "string",
  16298. "enum": [
  16299. "connected"
  16300. ]
  16301. }
  16302. },
  16303. "required": [
  16304. "status"
  16305. ],
  16306. "additionalProperties": false
  16307. },
  16308. "Mcp.Status.Disconnected": {
  16309. "type": "object",
  16310. "properties": {
  16311. "status": {
  16312. "type": "string",
  16313. "enum": [
  16314. "disconnected"
  16315. ]
  16316. }
  16317. },
  16318. "required": [
  16319. "status"
  16320. ],
  16321. "additionalProperties": false
  16322. },
  16323. "Mcp.Status.Disabled": {
  16324. "type": "object",
  16325. "properties": {
  16326. "status": {
  16327. "type": "string",
  16328. "enum": [
  16329. "disabled"
  16330. ]
  16331. }
  16332. },
  16333. "required": [
  16334. "status"
  16335. ],
  16336. "additionalProperties": false
  16337. },
  16338. "Mcp.Status.Failed": {
  16339. "type": "object",
  16340. "properties": {
  16341. "status": {
  16342. "type": "string",
  16343. "enum": [
  16344. "failed"
  16345. ]
  16346. },
  16347. "error": {
  16348. "type": "string"
  16349. }
  16350. },
  16351. "required": [
  16352. "status",
  16353. "error"
  16354. ],
  16355. "additionalProperties": false
  16356. },
  16357. "Mcp.Status.NeedsAuth": {
  16358. "type": "object",
  16359. "properties": {
  16360. "status": {
  16361. "type": "string",
  16362. "enum": [
  16363. "needs_auth"
  16364. ]
  16365. }
  16366. },
  16367. "required": [
  16368. "status"
  16369. ],
  16370. "additionalProperties": false
  16371. },
  16372. "Mcp.Status.NeedsClientRegistration": {
  16373. "type": "object",
  16374. "properties": {
  16375. "status": {
  16376. "type": "string",
  16377. "enum": [
  16378. "needs_client_registration"
  16379. ]
  16380. },
  16381. "error": {
  16382. "type": "string"
  16383. }
  16384. },
  16385. "required": [
  16386. "status",
  16387. "error"
  16388. ],
  16389. "additionalProperties": false
  16390. },
  16391. "Mcp.Server": {
  16392. "type": "object",
  16393. "properties": {
  16394. "name": {
  16395. "type": "string"
  16396. },
  16397. "status": {
  16398. "anyOf": [
  16399. {
  16400. "$ref": "#/components/schemas/Mcp.Status.Connected"
  16401. },
  16402. {
  16403. "$ref": "#/components/schemas/Mcp.Status.Disconnected"
  16404. },
  16405. {
  16406. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  16407. },
  16408. {
  16409. "$ref": "#/components/schemas/Mcp.Status.Failed"
  16410. },
  16411. {
  16412. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  16413. },
  16414. {
  16415. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  16416. }
  16417. ]
  16418. },
  16419. "integrationID": {
  16420. "type": "string"
  16421. }
  16422. },
  16423. "required": [
  16424. "name",
  16425. "status"
  16426. ],
  16427. "additionalProperties": false
  16428. },
  16429. "Project.Current": {
  16430. "type": "object",
  16431. "properties": {
  16432. "id": {
  16433. "type": "string"
  16434. },
  16435. "directory": {
  16436. "type": "string"
  16437. }
  16438. },
  16439. "required": [
  16440. "id",
  16441. "directory"
  16442. ],
  16443. "additionalProperties": false
  16444. },
  16445. "Project.Directory": {
  16446. "type": "object",
  16447. "properties": {
  16448. "directory": {
  16449. "type": "string"
  16450. },
  16451. "strategy": {
  16452. "type": "string"
  16453. }
  16454. },
  16455. "required": [
  16456. "directory"
  16457. ],
  16458. "additionalProperties": false
  16459. },
  16460. "Project.Directories": {
  16461. "type": "array",
  16462. "items": {
  16463. "$ref": "#/components/schemas/Project.Directory"
  16464. }
  16465. },
  16466. "Form.Metadata": {
  16467. "type": "object"
  16468. },
  16469. "Form.When": {
  16470. "type": "object",
  16471. "properties": {
  16472. "key": {
  16473. "type": "string"
  16474. },
  16475. "op": {
  16476. "type": "string",
  16477. "enum": [
  16478. "eq",
  16479. "neq"
  16480. ]
  16481. },
  16482. "value": {
  16483. "anyOf": [
  16484. {
  16485. "type": "string"
  16486. },
  16487. {
  16488. "anyOf": [
  16489. {
  16490. "anyOf": [
  16491. {
  16492. "type": "number"
  16493. },
  16494. {
  16495. "type": "string",
  16496. "enum": [
  16497. "NaN"
  16498. ]
  16499. },
  16500. {
  16501. "type": "string",
  16502. "enum": [
  16503. "Infinity"
  16504. ]
  16505. },
  16506. {
  16507. "type": "string",
  16508. "enum": [
  16509. "-Infinity"
  16510. ]
  16511. }
  16512. ]
  16513. },
  16514. {
  16515. "type": "string",
  16516. "enum": [
  16517. "Infinity",
  16518. "-Infinity",
  16519. "NaN"
  16520. ]
  16521. }
  16522. ]
  16523. },
  16524. {
  16525. "type": "boolean"
  16526. }
  16527. ]
  16528. }
  16529. },
  16530. "required": [
  16531. "key",
  16532. "op",
  16533. "value"
  16534. ],
  16535. "additionalProperties": false
  16536. },
  16537. "Form.Option": {
  16538. "type": "object",
  16539. "properties": {
  16540. "value": {
  16541. "type": "string"
  16542. },
  16543. "label": {
  16544. "type": "string"
  16545. },
  16546. "description": {
  16547. "type": "string"
  16548. }
  16549. },
  16550. "required": [
  16551. "value",
  16552. "label"
  16553. ],
  16554. "additionalProperties": false
  16555. },
  16556. "Form.StringField": {
  16557. "type": "object",
  16558. "properties": {
  16559. "key": {
  16560. "type": "string"
  16561. },
  16562. "title": {
  16563. "type": "string"
  16564. },
  16565. "description": {
  16566. "type": "string"
  16567. },
  16568. "required": {
  16569. "type": "boolean"
  16570. },
  16571. "when": {
  16572. "type": "array",
  16573. "items": {
  16574. "$ref": "#/components/schemas/Form.When"
  16575. }
  16576. },
  16577. "type": {
  16578. "type": "string",
  16579. "enum": [
  16580. "string"
  16581. ]
  16582. },
  16583. "format": {
  16584. "type": "string",
  16585. "enum": [
  16586. "email",
  16587. "uri",
  16588. "date",
  16589. "date-time"
  16590. ]
  16591. },
  16592. "minLength": {
  16593. "type": "integer",
  16594. "allOf": [
  16595. {
  16596. "minimum": 0
  16597. }
  16598. ]
  16599. },
  16600. "maxLength": {
  16601. "type": "integer",
  16602. "allOf": [
  16603. {
  16604. "minimum": 0
  16605. }
  16606. ]
  16607. },
  16608. "pattern": {
  16609. "type": "string"
  16610. },
  16611. "placeholder": {
  16612. "type": "string"
  16613. },
  16614. "default": {
  16615. "type": "string"
  16616. },
  16617. "options": {
  16618. "type": "array",
  16619. "items": {
  16620. "$ref": "#/components/schemas/Form.Option"
  16621. }
  16622. },
  16623. "custom": {
  16624. "type": "boolean"
  16625. }
  16626. },
  16627. "required": [
  16628. "key",
  16629. "type"
  16630. ],
  16631. "additionalProperties": false
  16632. },
  16633. "Form.NumberField": {
  16634. "type": "object",
  16635. "properties": {
  16636. "key": {
  16637. "type": "string"
  16638. },
  16639. "title": {
  16640. "type": "string"
  16641. },
  16642. "description": {
  16643. "type": "string"
  16644. },
  16645. "required": {
  16646. "type": "boolean"
  16647. },
  16648. "when": {
  16649. "type": "array",
  16650. "items": {
  16651. "$ref": "#/components/schemas/Form.When"
  16652. }
  16653. },
  16654. "type": {
  16655. "type": "string",
  16656. "enum": [
  16657. "number"
  16658. ]
  16659. },
  16660. "minimum": {
  16661. "anyOf": [
  16662. {
  16663. "anyOf": [
  16664. {
  16665. "type": "number"
  16666. },
  16667. {
  16668. "type": "string",
  16669. "enum": [
  16670. "NaN"
  16671. ]
  16672. },
  16673. {
  16674. "type": "string",
  16675. "enum": [
  16676. "Infinity"
  16677. ]
  16678. },
  16679. {
  16680. "type": "string",
  16681. "enum": [
  16682. "-Infinity"
  16683. ]
  16684. }
  16685. ]
  16686. },
  16687. {
  16688. "type": "string",
  16689. "enum": [
  16690. "Infinity",
  16691. "-Infinity",
  16692. "NaN"
  16693. ]
  16694. }
  16695. ]
  16696. },
  16697. "maximum": {
  16698. "anyOf": [
  16699. {
  16700. "anyOf": [
  16701. {
  16702. "type": "number"
  16703. },
  16704. {
  16705. "type": "string",
  16706. "enum": [
  16707. "NaN"
  16708. ]
  16709. },
  16710. {
  16711. "type": "string",
  16712. "enum": [
  16713. "Infinity"
  16714. ]
  16715. },
  16716. {
  16717. "type": "string",
  16718. "enum": [
  16719. "-Infinity"
  16720. ]
  16721. }
  16722. ]
  16723. },
  16724. {
  16725. "type": "string",
  16726. "enum": [
  16727. "Infinity",
  16728. "-Infinity",
  16729. "NaN"
  16730. ]
  16731. }
  16732. ]
  16733. },
  16734. "default": {
  16735. "anyOf": [
  16736. {
  16737. "anyOf": [
  16738. {
  16739. "type": "number"
  16740. },
  16741. {
  16742. "type": "string",
  16743. "enum": [
  16744. "NaN"
  16745. ]
  16746. },
  16747. {
  16748. "type": "string",
  16749. "enum": [
  16750. "Infinity"
  16751. ]
  16752. },
  16753. {
  16754. "type": "string",
  16755. "enum": [
  16756. "-Infinity"
  16757. ]
  16758. }
  16759. ]
  16760. },
  16761. {
  16762. "type": "string",
  16763. "enum": [
  16764. "Infinity",
  16765. "-Infinity",
  16766. "NaN"
  16767. ]
  16768. }
  16769. ]
  16770. }
  16771. },
  16772. "required": [
  16773. "key",
  16774. "type"
  16775. ],
  16776. "additionalProperties": false
  16777. },
  16778. "Form.IntegerField": {
  16779. "type": "object",
  16780. "properties": {
  16781. "key": {
  16782. "type": "string"
  16783. },
  16784. "title": {
  16785. "type": "string"
  16786. },
  16787. "description": {
  16788. "type": "string"
  16789. },
  16790. "required": {
  16791. "type": "boolean"
  16792. },
  16793. "when": {
  16794. "type": "array",
  16795. "items": {
  16796. "$ref": "#/components/schemas/Form.When"
  16797. }
  16798. },
  16799. "type": {
  16800. "type": "string",
  16801. "enum": [
  16802. "integer"
  16803. ]
  16804. },
  16805. "minimum": {
  16806. "anyOf": [
  16807. {
  16808. "anyOf": [
  16809. {
  16810. "type": "number"
  16811. },
  16812. {
  16813. "type": "string",
  16814. "enum": [
  16815. "NaN"
  16816. ]
  16817. },
  16818. {
  16819. "type": "string",
  16820. "enum": [
  16821. "Infinity"
  16822. ]
  16823. },
  16824. {
  16825. "type": "string",
  16826. "enum": [
  16827. "-Infinity"
  16828. ]
  16829. }
  16830. ]
  16831. },
  16832. {
  16833. "type": "string",
  16834. "enum": [
  16835. "Infinity",
  16836. "-Infinity",
  16837. "NaN"
  16838. ]
  16839. }
  16840. ]
  16841. },
  16842. "maximum": {
  16843. "anyOf": [
  16844. {
  16845. "anyOf": [
  16846. {
  16847. "type": "number"
  16848. },
  16849. {
  16850. "type": "string",
  16851. "enum": [
  16852. "NaN"
  16853. ]
  16854. },
  16855. {
  16856. "type": "string",
  16857. "enum": [
  16858. "Infinity"
  16859. ]
  16860. },
  16861. {
  16862. "type": "string",
  16863. "enum": [
  16864. "-Infinity"
  16865. ]
  16866. }
  16867. ]
  16868. },
  16869. {
  16870. "type": "string",
  16871. "enum": [
  16872. "Infinity",
  16873. "-Infinity",
  16874. "NaN"
  16875. ]
  16876. }
  16877. ]
  16878. },
  16879. "default": {
  16880. "anyOf": [
  16881. {
  16882. "anyOf": [
  16883. {
  16884. "type": "number"
  16885. },
  16886. {
  16887. "type": "string",
  16888. "enum": [
  16889. "NaN"
  16890. ]
  16891. },
  16892. {
  16893. "type": "string",
  16894. "enum": [
  16895. "Infinity"
  16896. ]
  16897. },
  16898. {
  16899. "type": "string",
  16900. "enum": [
  16901. "-Infinity"
  16902. ]
  16903. }
  16904. ]
  16905. },
  16906. {
  16907. "type": "string",
  16908. "enum": [
  16909. "Infinity",
  16910. "-Infinity",
  16911. "NaN"
  16912. ]
  16913. }
  16914. ]
  16915. }
  16916. },
  16917. "required": [
  16918. "key",
  16919. "type"
  16920. ],
  16921. "additionalProperties": false
  16922. },
  16923. "Form.BooleanField": {
  16924. "type": "object",
  16925. "properties": {
  16926. "key": {
  16927. "type": "string"
  16928. },
  16929. "title": {
  16930. "type": "string"
  16931. },
  16932. "description": {
  16933. "type": "string"
  16934. },
  16935. "required": {
  16936. "type": "boolean"
  16937. },
  16938. "when": {
  16939. "type": "array",
  16940. "items": {
  16941. "$ref": "#/components/schemas/Form.When"
  16942. }
  16943. },
  16944. "type": {
  16945. "type": "string",
  16946. "enum": [
  16947. "boolean"
  16948. ]
  16949. },
  16950. "default": {
  16951. "type": "boolean"
  16952. }
  16953. },
  16954. "required": [
  16955. "key",
  16956. "type"
  16957. ],
  16958. "additionalProperties": false
  16959. },
  16960. "Form.MultiselectField": {
  16961. "type": "object",
  16962. "properties": {
  16963. "key": {
  16964. "type": "string"
  16965. },
  16966. "title": {
  16967. "type": "string"
  16968. },
  16969. "description": {
  16970. "type": "string"
  16971. },
  16972. "required": {
  16973. "type": "boolean"
  16974. },
  16975. "when": {
  16976. "type": "array",
  16977. "items": {
  16978. "$ref": "#/components/schemas/Form.When"
  16979. }
  16980. },
  16981. "type": {
  16982. "type": "string",
  16983. "enum": [
  16984. "multiselect"
  16985. ]
  16986. },
  16987. "options": {
  16988. "type": "array",
  16989. "items": {
  16990. "$ref": "#/components/schemas/Form.Option"
  16991. }
  16992. },
  16993. "minItems": {
  16994. "type": "integer",
  16995. "allOf": [
  16996. {
  16997. "minimum": 0
  16998. }
  16999. ]
  17000. },
  17001. "maxItems": {
  17002. "type": "integer",
  17003. "allOf": [
  17004. {
  17005. "minimum": 0
  17006. }
  17007. ]
  17008. },
  17009. "custom": {
  17010. "type": "boolean"
  17011. },
  17012. "default": {
  17013. "type": "array",
  17014. "items": {
  17015. "type": "string"
  17016. }
  17017. }
  17018. },
  17019. "required": [
  17020. "key",
  17021. "type",
  17022. "options"
  17023. ],
  17024. "additionalProperties": false
  17025. },
  17026. "Form.FormInfo": {
  17027. "type": "object",
  17028. "properties": {
  17029. "id": {
  17030. "type": "string",
  17031. "allOf": [
  17032. {
  17033. "pattern": "^frm_"
  17034. }
  17035. ]
  17036. },
  17037. "sessionID": {
  17038. "type": "string"
  17039. },
  17040. "title": {
  17041. "type": "string"
  17042. },
  17043. "metadata": {
  17044. "$ref": "#/components/schemas/Form.Metadata"
  17045. },
  17046. "mode": {
  17047. "type": "string",
  17048. "enum": [
  17049. "form"
  17050. ]
  17051. },
  17052. "fields": {
  17053. "type": "array",
  17054. "items": {
  17055. "anyOf": [
  17056. {
  17057. "$ref": "#/components/schemas/Form.StringField"
  17058. },
  17059. {
  17060. "$ref": "#/components/schemas/Form.NumberField"
  17061. },
  17062. {
  17063. "$ref": "#/components/schemas/Form.IntegerField"
  17064. },
  17065. {
  17066. "$ref": "#/components/schemas/Form.BooleanField"
  17067. },
  17068. {
  17069. "$ref": "#/components/schemas/Form.MultiselectField"
  17070. }
  17071. ]
  17072. }
  17073. }
  17074. },
  17075. "required": [
  17076. "id",
  17077. "sessionID",
  17078. "mode",
  17079. "fields"
  17080. ],
  17081. "additionalProperties": false
  17082. },
  17083. "Form.UrlInfo": {
  17084. "type": "object",
  17085. "properties": {
  17086. "id": {
  17087. "type": "string",
  17088. "allOf": [
  17089. {
  17090. "pattern": "^frm_"
  17091. }
  17092. ]
  17093. },
  17094. "sessionID": {
  17095. "type": "string"
  17096. },
  17097. "title": {
  17098. "type": "string"
  17099. },
  17100. "metadata": {
  17101. "$ref": "#/components/schemas/Form.Metadata"
  17102. },
  17103. "mode": {
  17104. "type": "string",
  17105. "enum": [
  17106. "url"
  17107. ]
  17108. },
  17109. "url": {
  17110. "type": "string"
  17111. }
  17112. },
  17113. "required": [
  17114. "id",
  17115. "sessionID",
  17116. "mode",
  17117. "url"
  17118. ],
  17119. "additionalProperties": false
  17120. },
  17121. "Form.CreatePayload": {
  17122. "type": "object",
  17123. "properties": {
  17124. "id": {
  17125. "anyOf": [
  17126. {
  17127. "type": "string",
  17128. "allOf": [
  17129. {
  17130. "pattern": "^frm_"
  17131. }
  17132. ]
  17133. },
  17134. {
  17135. "type": "null"
  17136. }
  17137. ]
  17138. },
  17139. "title": {
  17140. "type": "string"
  17141. },
  17142. "metadata": {
  17143. "$ref": "#/components/schemas/Form.Metadata"
  17144. },
  17145. "mode": {
  17146. "type": "string",
  17147. "enum": [
  17148. "form",
  17149. "url"
  17150. ]
  17151. },
  17152. "fields": {
  17153. "anyOf": [
  17154. {
  17155. "type": "array",
  17156. "items": {
  17157. "anyOf": [
  17158. {
  17159. "$ref": "#/components/schemas/Form.StringField"
  17160. },
  17161. {
  17162. "$ref": "#/components/schemas/Form.NumberField"
  17163. },
  17164. {
  17165. "$ref": "#/components/schemas/Form.IntegerField"
  17166. },
  17167. {
  17168. "$ref": "#/components/schemas/Form.BooleanField"
  17169. },
  17170. {
  17171. "$ref": "#/components/schemas/Form.MultiselectField"
  17172. }
  17173. ]
  17174. }
  17175. },
  17176. {
  17177. "type": "null"
  17178. }
  17179. ]
  17180. },
  17181. "url": {
  17182. "anyOf": [
  17183. {
  17184. "type": "string"
  17185. },
  17186. {
  17187. "type": "null"
  17188. }
  17189. ]
  17190. }
  17191. },
  17192. "required": [
  17193. "mode"
  17194. ],
  17195. "additionalProperties": false
  17196. },
  17197. "FormNotFoundError": {
  17198. "type": "object",
  17199. "properties": {
  17200. "_tag": {
  17201. "type": "string",
  17202. "enum": [
  17203. "FormNotFoundError"
  17204. ]
  17205. },
  17206. "id": {
  17207. "type": "string"
  17208. },
  17209. "message": {
  17210. "type": "string"
  17211. }
  17212. },
  17213. "required": [
  17214. "_tag",
  17215. "id",
  17216. "message"
  17217. ],
  17218. "additionalProperties": false
  17219. },
  17220. "Form.Value": {
  17221. "anyOf": [
  17222. {
  17223. "type": "string"
  17224. },
  17225. {
  17226. "anyOf": [
  17227. {
  17228. "anyOf": [
  17229. {
  17230. "type": "number"
  17231. },
  17232. {
  17233. "type": "string",
  17234. "enum": [
  17235. "NaN"
  17236. ]
  17237. },
  17238. {
  17239. "type": "string",
  17240. "enum": [
  17241. "Infinity"
  17242. ]
  17243. },
  17244. {
  17245. "type": "string",
  17246. "enum": [
  17247. "-Infinity"
  17248. ]
  17249. }
  17250. ]
  17251. },
  17252. {
  17253. "type": "string",
  17254. "enum": [
  17255. "Infinity",
  17256. "-Infinity",
  17257. "NaN"
  17258. ]
  17259. }
  17260. ]
  17261. },
  17262. {
  17263. "type": "boolean"
  17264. },
  17265. {
  17266. "type": "array",
  17267. "items": {
  17268. "type": "string"
  17269. }
  17270. }
  17271. ]
  17272. },
  17273. "Form.Answer": {
  17274. "type": "object",
  17275. "additionalProperties": {
  17276. "$ref": "#/components/schemas/Form.Value"
  17277. }
  17278. },
  17279. "Form.State": {
  17280. "anyOf": [
  17281. {
  17282. "type": "object",
  17283. "properties": {
  17284. "status": {
  17285. "type": "string",
  17286. "enum": [
  17287. "pending"
  17288. ]
  17289. }
  17290. },
  17291. "required": [
  17292. "status"
  17293. ],
  17294. "additionalProperties": false
  17295. },
  17296. {
  17297. "type": "object",
  17298. "properties": {
  17299. "status": {
  17300. "type": "string",
  17301. "enum": [
  17302. "answered"
  17303. ]
  17304. },
  17305. "answer": {
  17306. "$ref": "#/components/schemas/Form.Answer"
  17307. }
  17308. },
  17309. "required": [
  17310. "status",
  17311. "answer"
  17312. ],
  17313. "additionalProperties": false
  17314. },
  17315. {
  17316. "type": "object",
  17317. "properties": {
  17318. "status": {
  17319. "type": "string",
  17320. "enum": [
  17321. "cancelled"
  17322. ]
  17323. }
  17324. },
  17325. "required": [
  17326. "status"
  17327. ],
  17328. "additionalProperties": false
  17329. }
  17330. ]
  17331. },
  17332. "Form.Reply": {
  17333. "type": "object",
  17334. "properties": {
  17335. "answer": {
  17336. "$ref": "#/components/schemas/Form.Answer"
  17337. }
  17338. },
  17339. "required": [
  17340. "answer"
  17341. ],
  17342. "additionalProperties": false
  17343. },
  17344. "FormAlreadySettledError": {
  17345. "type": "object",
  17346. "properties": {
  17347. "_tag": {
  17348. "type": "string",
  17349. "enum": [
  17350. "FormAlreadySettledError"
  17351. ]
  17352. },
  17353. "id": {
  17354. "type": "string"
  17355. },
  17356. "message": {
  17357. "type": "string"
  17358. }
  17359. },
  17360. "required": [
  17361. "_tag",
  17362. "id",
  17363. "message"
  17364. ],
  17365. "additionalProperties": false
  17366. },
  17367. "FormInvalidAnswerError": {
  17368. "type": "object",
  17369. "properties": {
  17370. "_tag": {
  17371. "type": "string",
  17372. "enum": [
  17373. "FormInvalidAnswerError"
  17374. ]
  17375. },
  17376. "id": {
  17377. "type": "string"
  17378. },
  17379. "message": {
  17380. "type": "string"
  17381. }
  17382. },
  17383. "required": [
  17384. "_tag",
  17385. "id",
  17386. "message"
  17387. ],
  17388. "additionalProperties": false
  17389. },
  17390. "PermissionV2.Source": {
  17391. "anyOf": [
  17392. {
  17393. "type": "object",
  17394. "properties": {
  17395. "type": {
  17396. "type": "string",
  17397. "enum": [
  17398. "tool"
  17399. ]
  17400. },
  17401. "messageID": {
  17402. "type": "string"
  17403. },
  17404. "callID": {
  17405. "type": "string"
  17406. }
  17407. },
  17408. "required": [
  17409. "type",
  17410. "messageID",
  17411. "callID"
  17412. ],
  17413. "additionalProperties": false
  17414. }
  17415. ]
  17416. },
  17417. "PermissionV2.Request": {
  17418. "type": "object",
  17419. "properties": {
  17420. "id": {
  17421. "type": "string",
  17422. "allOf": [
  17423. {
  17424. "pattern": "^per"
  17425. }
  17426. ]
  17427. },
  17428. "sessionID": {
  17429. "type": "string",
  17430. "allOf": [
  17431. {
  17432. "pattern": "^ses"
  17433. }
  17434. ]
  17435. },
  17436. "action": {
  17437. "type": "string"
  17438. },
  17439. "resources": {
  17440. "type": "array",
  17441. "items": {
  17442. "type": "string"
  17443. }
  17444. },
  17445. "save": {
  17446. "type": "array",
  17447. "items": {
  17448. "type": "string"
  17449. }
  17450. },
  17451. "metadata": {
  17452. "type": "object"
  17453. },
  17454. "source": {
  17455. "$ref": "#/components/schemas/PermissionV2.Source"
  17456. }
  17457. },
  17458. "required": [
  17459. "id",
  17460. "sessionID",
  17461. "action",
  17462. "resources"
  17463. ],
  17464. "additionalProperties": false
  17465. },
  17466. "PermissionSaved.Info": {
  17467. "type": "object",
  17468. "properties": {
  17469. "id": {
  17470. "type": "string"
  17471. },
  17472. "projectID": {
  17473. "type": "string"
  17474. },
  17475. "action": {
  17476. "type": "string"
  17477. },
  17478. "resource": {
  17479. "type": "string"
  17480. }
  17481. },
  17482. "required": [
  17483. "id",
  17484. "projectID",
  17485. "action",
  17486. "resource"
  17487. ],
  17488. "additionalProperties": false
  17489. },
  17490. "PermissionNotFoundError": {
  17491. "type": "object",
  17492. "properties": {
  17493. "_tag": {
  17494. "type": "string",
  17495. "enum": [
  17496. "PermissionNotFoundError"
  17497. ]
  17498. },
  17499. "requestID": {
  17500. "type": "string"
  17501. },
  17502. "message": {
  17503. "type": "string"
  17504. }
  17505. },
  17506. "required": [
  17507. "_tag",
  17508. "requestID",
  17509. "message"
  17510. ],
  17511. "additionalProperties": false
  17512. },
  17513. "PermissionV2.Reply": {
  17514. "type": "string",
  17515. "enum": [
  17516. "once",
  17517. "always",
  17518. "reject"
  17519. ]
  17520. },
  17521. "FileSystem.Entry": {
  17522. "type": "object",
  17523. "properties": {
  17524. "path": {
  17525. "type": "string"
  17526. },
  17527. "type": {
  17528. "type": "string",
  17529. "enum": [
  17530. "file",
  17531. "directory"
  17532. ]
  17533. }
  17534. },
  17535. "required": [
  17536. "path",
  17537. "type"
  17538. ],
  17539. "additionalProperties": false
  17540. },
  17541. "CommandV2.Info": {
  17542. "type": "object",
  17543. "properties": {
  17544. "name": {
  17545. "type": "string"
  17546. },
  17547. "template": {
  17548. "type": "string"
  17549. },
  17550. "description": {
  17551. "type": "string"
  17552. },
  17553. "agent": {
  17554. "type": "string"
  17555. },
  17556. "model": {
  17557. "$ref": "#/components/schemas/Model.Ref"
  17558. },
  17559. "subtask": {
  17560. "type": "boolean"
  17561. }
  17562. },
  17563. "required": [
  17564. "name",
  17565. "template"
  17566. ],
  17567. "additionalProperties": false
  17568. },
  17569. "SkillV2.Info": {
  17570. "type": "object",
  17571. "properties": {
  17572. "name": {
  17573. "type": "string"
  17574. },
  17575. "description": {
  17576. "type": "string"
  17577. },
  17578. "slash": {
  17579. "type": "boolean"
  17580. },
  17581. "autoinvoke": {
  17582. "type": "boolean"
  17583. },
  17584. "location": {
  17585. "type": "string"
  17586. },
  17587. "content": {
  17588. "type": "string"
  17589. }
  17590. },
  17591. "required": [
  17592. "name",
  17593. "location",
  17594. "content"
  17595. ],
  17596. "additionalProperties": false
  17597. },
  17598. "models-dev.refreshed": {
  17599. "type": "object",
  17600. "properties": {
  17601. "id": {
  17602. "type": "string",
  17603. "allOf": [
  17604. {
  17605. "pattern": "^evt_"
  17606. }
  17607. ]
  17608. },
  17609. "metadata": {
  17610. "type": "object"
  17611. },
  17612. "type": {
  17613. "type": "string",
  17614. "enum": [
  17615. "models-dev.refreshed"
  17616. ]
  17617. },
  17618. "durable": {
  17619. "type": "object",
  17620. "properties": {
  17621. "aggregateID": {
  17622. "type": "string"
  17623. },
  17624. "seq": {
  17625. "type": "integer",
  17626. "allOf": [
  17627. {
  17628. "minimum": 0
  17629. }
  17630. ]
  17631. },
  17632. "version": {
  17633. "type": "integer",
  17634. "allOf": [
  17635. {
  17636. "minimum": 1
  17637. }
  17638. ]
  17639. }
  17640. },
  17641. "required": [
  17642. "aggregateID",
  17643. "seq",
  17644. "version"
  17645. ],
  17646. "additionalProperties": false
  17647. },
  17648. "location": {
  17649. "$ref": "#/components/schemas/Location.Ref"
  17650. },
  17651. "data": {
  17652. "anyOf": [
  17653. {
  17654. "type": "object"
  17655. },
  17656. {
  17657. "type": "array"
  17658. }
  17659. ]
  17660. }
  17661. },
  17662. "required": [
  17663. "id",
  17664. "type",
  17665. "data"
  17666. ],
  17667. "additionalProperties": false
  17668. },
  17669. "integration.updated": {
  17670. "type": "object",
  17671. "properties": {
  17672. "id": {
  17673. "type": "string",
  17674. "allOf": [
  17675. {
  17676. "pattern": "^evt_"
  17677. }
  17678. ]
  17679. },
  17680. "metadata": {
  17681. "type": "object"
  17682. },
  17683. "type": {
  17684. "type": "string",
  17685. "enum": [
  17686. "integration.updated"
  17687. ]
  17688. },
  17689. "durable": {
  17690. "type": "object",
  17691. "properties": {
  17692. "aggregateID": {
  17693. "type": "string"
  17694. },
  17695. "seq": {
  17696. "type": "integer",
  17697. "allOf": [
  17698. {
  17699. "minimum": 0
  17700. }
  17701. ]
  17702. },
  17703. "version": {
  17704. "type": "integer",
  17705. "allOf": [
  17706. {
  17707. "minimum": 1
  17708. }
  17709. ]
  17710. }
  17711. },
  17712. "required": [
  17713. "aggregateID",
  17714. "seq",
  17715. "version"
  17716. ],
  17717. "additionalProperties": false
  17718. },
  17719. "location": {
  17720. "$ref": "#/components/schemas/Location.Ref"
  17721. },
  17722. "data": {
  17723. "anyOf": [
  17724. {
  17725. "type": "object"
  17726. },
  17727. {
  17728. "type": "array"
  17729. }
  17730. ]
  17731. }
  17732. },
  17733. "required": [
  17734. "id",
  17735. "type",
  17736. "data"
  17737. ],
  17738. "additionalProperties": false
  17739. },
  17740. "integration.connection.updated": {
  17741. "type": "object",
  17742. "properties": {
  17743. "id": {
  17744. "type": "string",
  17745. "allOf": [
  17746. {
  17747. "pattern": "^evt_"
  17748. }
  17749. ]
  17750. },
  17751. "metadata": {
  17752. "type": "object"
  17753. },
  17754. "type": {
  17755. "type": "string",
  17756. "enum": [
  17757. "integration.connection.updated"
  17758. ]
  17759. },
  17760. "durable": {
  17761. "type": "object",
  17762. "properties": {
  17763. "aggregateID": {
  17764. "type": "string"
  17765. },
  17766. "seq": {
  17767. "type": "integer",
  17768. "allOf": [
  17769. {
  17770. "minimum": 0
  17771. }
  17772. ]
  17773. },
  17774. "version": {
  17775. "type": "integer",
  17776. "allOf": [
  17777. {
  17778. "minimum": 1
  17779. }
  17780. ]
  17781. }
  17782. },
  17783. "required": [
  17784. "aggregateID",
  17785. "seq",
  17786. "version"
  17787. ],
  17788. "additionalProperties": false
  17789. },
  17790. "location": {
  17791. "$ref": "#/components/schemas/Location.Ref"
  17792. },
  17793. "data": {
  17794. "type": "object",
  17795. "properties": {
  17796. "integrationID": {
  17797. "type": "string"
  17798. }
  17799. },
  17800. "required": [
  17801. "integrationID"
  17802. ],
  17803. "additionalProperties": false
  17804. }
  17805. },
  17806. "required": [
  17807. "id",
  17808. "type",
  17809. "data"
  17810. ],
  17811. "additionalProperties": false
  17812. },
  17813. "catalog.updated": {
  17814. "type": "object",
  17815. "properties": {
  17816. "id": {
  17817. "type": "string",
  17818. "allOf": [
  17819. {
  17820. "pattern": "^evt_"
  17821. }
  17822. ]
  17823. },
  17824. "metadata": {
  17825. "type": "object"
  17826. },
  17827. "type": {
  17828. "type": "string",
  17829. "enum": [
  17830. "catalog.updated"
  17831. ]
  17832. },
  17833. "durable": {
  17834. "type": "object",
  17835. "properties": {
  17836. "aggregateID": {
  17837. "type": "string"
  17838. },
  17839. "seq": {
  17840. "type": "integer",
  17841. "allOf": [
  17842. {
  17843. "minimum": 0
  17844. }
  17845. ]
  17846. },
  17847. "version": {
  17848. "type": "integer",
  17849. "allOf": [
  17850. {
  17851. "minimum": 1
  17852. }
  17853. ]
  17854. }
  17855. },
  17856. "required": [
  17857. "aggregateID",
  17858. "seq",
  17859. "version"
  17860. ],
  17861. "additionalProperties": false
  17862. },
  17863. "location": {
  17864. "$ref": "#/components/schemas/Location.Ref"
  17865. },
  17866. "data": {
  17867. "anyOf": [
  17868. {
  17869. "type": "object"
  17870. },
  17871. {
  17872. "type": "array"
  17873. }
  17874. ]
  17875. }
  17876. },
  17877. "required": [
  17878. "id",
  17879. "type",
  17880. "data"
  17881. ],
  17882. "additionalProperties": false
  17883. },
  17884. "agent.updated": {
  17885. "type": "object",
  17886. "properties": {
  17887. "id": {
  17888. "type": "string",
  17889. "allOf": [
  17890. {
  17891. "pattern": "^evt_"
  17892. }
  17893. ]
  17894. },
  17895. "metadata": {
  17896. "type": "object"
  17897. },
  17898. "type": {
  17899. "type": "string",
  17900. "enum": [
  17901. "agent.updated"
  17902. ]
  17903. },
  17904. "durable": {
  17905. "type": "object",
  17906. "properties": {
  17907. "aggregateID": {
  17908. "type": "string"
  17909. },
  17910. "seq": {
  17911. "type": "integer",
  17912. "allOf": [
  17913. {
  17914. "minimum": 0
  17915. }
  17916. ]
  17917. },
  17918. "version": {
  17919. "type": "integer",
  17920. "allOf": [
  17921. {
  17922. "minimum": 1
  17923. }
  17924. ]
  17925. }
  17926. },
  17927. "required": [
  17928. "aggregateID",
  17929. "seq",
  17930. "version"
  17931. ],
  17932. "additionalProperties": false
  17933. },
  17934. "location": {
  17935. "$ref": "#/components/schemas/Location.Ref"
  17936. },
  17937. "data": {
  17938. "anyOf": [
  17939. {
  17940. "type": "object"
  17941. },
  17942. {
  17943. "type": "array"
  17944. }
  17945. ]
  17946. }
  17947. },
  17948. "required": [
  17949. "id",
  17950. "type",
  17951. "data"
  17952. ],
  17953. "additionalProperties": false
  17954. },
  17955. "SnapshotFileDiff": {
  17956. "type": "object",
  17957. "properties": {
  17958. "file": {
  17959. "type": "string"
  17960. },
  17961. "patch": {
  17962. "type": "string"
  17963. },
  17964. "additions": {
  17965. "type": "number"
  17966. },
  17967. "deletions": {
  17968. "type": "number"
  17969. },
  17970. "status": {
  17971. "type": "string",
  17972. "enum": [
  17973. "added",
  17974. "deleted",
  17975. "modified"
  17976. ]
  17977. }
  17978. },
  17979. "required": [
  17980. "additions",
  17981. "deletions"
  17982. ],
  17983. "additionalProperties": false
  17984. },
  17985. "PermissionAction": {
  17986. "type": "string",
  17987. "enum": [
  17988. "allow",
  17989. "deny",
  17990. "ask"
  17991. ]
  17992. },
  17993. "PermissionRule": {
  17994. "type": "object",
  17995. "properties": {
  17996. "permission": {
  17997. "type": "string"
  17998. },
  17999. "pattern": {
  18000. "type": "string"
  18001. },
  18002. "action": {
  18003. "$ref": "#/components/schemas/PermissionAction"
  18004. }
  18005. },
  18006. "required": [
  18007. "permission",
  18008. "pattern",
  18009. "action"
  18010. ],
  18011. "additionalProperties": false
  18012. },
  18013. "PermissionRuleset": {
  18014. "type": "array",
  18015. "items": {
  18016. "$ref": "#/components/schemas/PermissionRule"
  18017. }
  18018. },
  18019. "Session": {
  18020. "type": "object",
  18021. "properties": {
  18022. "id": {
  18023. "type": "string",
  18024. "allOf": [
  18025. {
  18026. "pattern": "^ses"
  18027. }
  18028. ]
  18029. },
  18030. "slug": {
  18031. "type": "string"
  18032. },
  18033. "projectID": {
  18034. "type": "string"
  18035. },
  18036. "workspaceID": {
  18037. "type": "string",
  18038. "allOf": [
  18039. {
  18040. "pattern": "^wrk"
  18041. }
  18042. ]
  18043. },
  18044. "directory": {
  18045. "type": "string"
  18046. },
  18047. "path": {
  18048. "type": "string"
  18049. },
  18050. "parentID": {
  18051. "type": "string",
  18052. "allOf": [
  18053. {
  18054. "pattern": "^ses"
  18055. }
  18056. ]
  18057. },
  18058. "summary": {
  18059. "type": "object",
  18060. "properties": {
  18061. "additions": {
  18062. "type": "number"
  18063. },
  18064. "deletions": {
  18065. "type": "number"
  18066. },
  18067. "files": {
  18068. "type": "number"
  18069. },
  18070. "diffs": {
  18071. "type": "array",
  18072. "items": {
  18073. "$ref": "#/components/schemas/SnapshotFileDiff"
  18074. }
  18075. }
  18076. },
  18077. "required": [
  18078. "additions",
  18079. "deletions",
  18080. "files"
  18081. ],
  18082. "additionalProperties": false
  18083. },
  18084. "cost": {
  18085. "type": "number"
  18086. },
  18087. "tokens": {
  18088. "type": "object",
  18089. "properties": {
  18090. "input": {
  18091. "type": "number"
  18092. },
  18093. "output": {
  18094. "type": "number"
  18095. },
  18096. "reasoning": {
  18097. "type": "number"
  18098. },
  18099. "cache": {
  18100. "type": "object",
  18101. "properties": {
  18102. "read": {
  18103. "type": "number"
  18104. },
  18105. "write": {
  18106. "type": "number"
  18107. }
  18108. },
  18109. "required": [
  18110. "read",
  18111. "write"
  18112. ],
  18113. "additionalProperties": false
  18114. }
  18115. },
  18116. "required": [
  18117. "input",
  18118. "output",
  18119. "reasoning",
  18120. "cache"
  18121. ],
  18122. "additionalProperties": false
  18123. },
  18124. "share": {
  18125. "type": "object",
  18126. "properties": {
  18127. "url": {
  18128. "type": "string"
  18129. }
  18130. },
  18131. "required": [
  18132. "url"
  18133. ],
  18134. "additionalProperties": false
  18135. },
  18136. "title": {
  18137. "type": "string"
  18138. },
  18139. "agent": {
  18140. "type": "string"
  18141. },
  18142. "model": {
  18143. "type": "object",
  18144. "properties": {
  18145. "id": {
  18146. "type": "string"
  18147. },
  18148. "providerID": {
  18149. "type": "string"
  18150. },
  18151. "variant": {
  18152. "type": "string"
  18153. }
  18154. },
  18155. "required": [
  18156. "id",
  18157. "providerID"
  18158. ],
  18159. "additionalProperties": false
  18160. },
  18161. "version": {
  18162. "type": "string"
  18163. },
  18164. "metadata": {
  18165. "type": "object"
  18166. },
  18167. "time": {
  18168. "type": "object",
  18169. "properties": {
  18170. "created": {
  18171. "type": "integer",
  18172. "allOf": [
  18173. {
  18174. "minimum": 0
  18175. }
  18176. ]
  18177. },
  18178. "updated": {
  18179. "type": "integer",
  18180. "allOf": [
  18181. {
  18182. "minimum": 0
  18183. }
  18184. ]
  18185. },
  18186. "compacting": {
  18187. "type": "integer",
  18188. "allOf": [
  18189. {
  18190. "minimum": 0
  18191. }
  18192. ]
  18193. },
  18194. "archived": {
  18195. "type": "number"
  18196. }
  18197. },
  18198. "required": [
  18199. "created",
  18200. "updated"
  18201. ],
  18202. "additionalProperties": false
  18203. },
  18204. "permission": {
  18205. "$ref": "#/components/schemas/PermissionRuleset"
  18206. },
  18207. "revert": {
  18208. "type": "object",
  18209. "properties": {
  18210. "messageID": {
  18211. "type": "string",
  18212. "allOf": [
  18213. {
  18214. "pattern": "^msg"
  18215. }
  18216. ]
  18217. },
  18218. "partID": {
  18219. "type": "string",
  18220. "allOf": [
  18221. {
  18222. "pattern": "^prt"
  18223. }
  18224. ]
  18225. },
  18226. "snapshot": {
  18227. "type": "string"
  18228. },
  18229. "diff": {
  18230. "type": "string"
  18231. }
  18232. },
  18233. "required": [
  18234. "messageID"
  18235. ],
  18236. "additionalProperties": false
  18237. }
  18238. },
  18239. "required": [
  18240. "id",
  18241. "slug",
  18242. "projectID",
  18243. "directory",
  18244. "title",
  18245. "version",
  18246. "time"
  18247. ],
  18248. "additionalProperties": false
  18249. },
  18250. "session.created": {
  18251. "type": "object",
  18252. "properties": {
  18253. "id": {
  18254. "type": "string",
  18255. "allOf": [
  18256. {
  18257. "pattern": "^evt_"
  18258. }
  18259. ]
  18260. },
  18261. "metadata": {
  18262. "type": "object"
  18263. },
  18264. "type": {
  18265. "type": "string",
  18266. "enum": [
  18267. "session.created"
  18268. ]
  18269. },
  18270. "durable": {
  18271. "type": "object",
  18272. "properties": {
  18273. "aggregateID": {
  18274. "type": "string"
  18275. },
  18276. "seq": {
  18277. "type": "integer",
  18278. "allOf": [
  18279. {
  18280. "minimum": 0
  18281. }
  18282. ]
  18283. },
  18284. "version": {
  18285. "type": "integer",
  18286. "allOf": [
  18287. {
  18288. "minimum": 1
  18289. }
  18290. ]
  18291. }
  18292. },
  18293. "required": [
  18294. "aggregateID",
  18295. "seq",
  18296. "version"
  18297. ],
  18298. "additionalProperties": false
  18299. },
  18300. "location": {
  18301. "$ref": "#/components/schemas/Location.Ref"
  18302. },
  18303. "data": {
  18304. "type": "object",
  18305. "properties": {
  18306. "sessionID": {
  18307. "type": "string",
  18308. "allOf": [
  18309. {
  18310. "pattern": "^ses"
  18311. }
  18312. ]
  18313. },
  18314. "info": {
  18315. "$ref": "#/components/schemas/Session"
  18316. }
  18317. },
  18318. "required": [
  18319. "sessionID",
  18320. "info"
  18321. ],
  18322. "additionalProperties": false
  18323. }
  18324. },
  18325. "required": [
  18326. "id",
  18327. "type",
  18328. "data"
  18329. ],
  18330. "additionalProperties": false
  18331. },
  18332. "session.updated": {
  18333. "type": "object",
  18334. "properties": {
  18335. "id": {
  18336. "type": "string",
  18337. "allOf": [
  18338. {
  18339. "pattern": "^evt_"
  18340. }
  18341. ]
  18342. },
  18343. "metadata": {
  18344. "type": "object"
  18345. },
  18346. "type": {
  18347. "type": "string",
  18348. "enum": [
  18349. "session.updated"
  18350. ]
  18351. },
  18352. "durable": {
  18353. "type": "object",
  18354. "properties": {
  18355. "aggregateID": {
  18356. "type": "string"
  18357. },
  18358. "seq": {
  18359. "type": "integer",
  18360. "allOf": [
  18361. {
  18362. "minimum": 0
  18363. }
  18364. ]
  18365. },
  18366. "version": {
  18367. "type": "integer",
  18368. "allOf": [
  18369. {
  18370. "minimum": 1
  18371. }
  18372. ]
  18373. }
  18374. },
  18375. "required": [
  18376. "aggregateID",
  18377. "seq",
  18378. "version"
  18379. ],
  18380. "additionalProperties": false
  18381. },
  18382. "location": {
  18383. "$ref": "#/components/schemas/Location.Ref"
  18384. },
  18385. "data": {
  18386. "type": "object",
  18387. "properties": {
  18388. "sessionID": {
  18389. "type": "string",
  18390. "allOf": [
  18391. {
  18392. "pattern": "^ses"
  18393. }
  18394. ]
  18395. },
  18396. "info": {
  18397. "$ref": "#/components/schemas/Session"
  18398. }
  18399. },
  18400. "required": [
  18401. "sessionID",
  18402. "info"
  18403. ],
  18404. "additionalProperties": false
  18405. }
  18406. },
  18407. "required": [
  18408. "id",
  18409. "type",
  18410. "data"
  18411. ],
  18412. "additionalProperties": false
  18413. },
  18414. "session.deleted": {
  18415. "type": "object",
  18416. "properties": {
  18417. "id": {
  18418. "type": "string",
  18419. "allOf": [
  18420. {
  18421. "pattern": "^evt_"
  18422. }
  18423. ]
  18424. },
  18425. "metadata": {
  18426. "type": "object"
  18427. },
  18428. "type": {
  18429. "type": "string",
  18430. "enum": [
  18431. "session.deleted"
  18432. ]
  18433. },
  18434. "durable": {
  18435. "type": "object",
  18436. "properties": {
  18437. "aggregateID": {
  18438. "type": "string"
  18439. },
  18440. "seq": {
  18441. "type": "integer",
  18442. "allOf": [
  18443. {
  18444. "minimum": 0
  18445. }
  18446. ]
  18447. },
  18448. "version": {
  18449. "type": "integer",
  18450. "allOf": [
  18451. {
  18452. "minimum": 1
  18453. }
  18454. ]
  18455. }
  18456. },
  18457. "required": [
  18458. "aggregateID",
  18459. "seq",
  18460. "version"
  18461. ],
  18462. "additionalProperties": false
  18463. },
  18464. "location": {
  18465. "$ref": "#/components/schemas/Location.Ref"
  18466. },
  18467. "data": {
  18468. "type": "object",
  18469. "properties": {
  18470. "sessionID": {
  18471. "type": "string",
  18472. "allOf": [
  18473. {
  18474. "pattern": "^ses"
  18475. }
  18476. ]
  18477. },
  18478. "info": {
  18479. "$ref": "#/components/schemas/Session"
  18480. }
  18481. },
  18482. "required": [
  18483. "sessionID",
  18484. "info"
  18485. ],
  18486. "additionalProperties": false
  18487. }
  18488. },
  18489. "required": [
  18490. "id",
  18491. "type",
  18492. "data"
  18493. ],
  18494. "additionalProperties": false
  18495. },
  18496. "JSONSchema": {
  18497. "type": "object"
  18498. },
  18499. "OutputFormat": {
  18500. "anyOf": [
  18501. {
  18502. "type": "object",
  18503. "properties": {
  18504. "type": {
  18505. "type": "string",
  18506. "enum": [
  18507. "text"
  18508. ]
  18509. }
  18510. },
  18511. "required": [
  18512. "type"
  18513. ],
  18514. "additionalProperties": false
  18515. },
  18516. {
  18517. "type": "object",
  18518. "properties": {
  18519. "type": {
  18520. "type": "string",
  18521. "enum": [
  18522. "json_schema"
  18523. ]
  18524. },
  18525. "schema": {
  18526. "$ref": "#/components/schemas/JSONSchema"
  18527. },
  18528. "retryCount": {
  18529. "anyOf": [
  18530. {
  18531. "anyOf": [
  18532. {
  18533. "type": "integer",
  18534. "allOf": [
  18535. {
  18536. "minimum": 0
  18537. }
  18538. ]
  18539. },
  18540. {
  18541. "type": "null"
  18542. }
  18543. ]
  18544. },
  18545. {
  18546. "type": "null"
  18547. }
  18548. ]
  18549. }
  18550. },
  18551. "required": [
  18552. "type",
  18553. "schema"
  18554. ],
  18555. "additionalProperties": false
  18556. }
  18557. ]
  18558. },
  18559. "UserMessage": {
  18560. "type": "object",
  18561. "properties": {
  18562. "id": {
  18563. "type": "string",
  18564. "allOf": [
  18565. {
  18566. "pattern": "^msg"
  18567. }
  18568. ]
  18569. },
  18570. "sessionID": {
  18571. "type": "string",
  18572. "allOf": [
  18573. {
  18574. "pattern": "^ses"
  18575. }
  18576. ]
  18577. },
  18578. "role": {
  18579. "type": "string",
  18580. "enum": [
  18581. "user"
  18582. ]
  18583. },
  18584. "time": {
  18585. "type": "object",
  18586. "properties": {
  18587. "created": {
  18588. "type": "number",
  18589. "allOf": [
  18590. {
  18591. "minimum": 0
  18592. }
  18593. ]
  18594. }
  18595. },
  18596. "required": [
  18597. "created"
  18598. ],
  18599. "additionalProperties": false
  18600. },
  18601. "format": {
  18602. "anyOf": [
  18603. {
  18604. "$ref": "#/components/schemas/OutputFormat"
  18605. },
  18606. {
  18607. "type": "null"
  18608. }
  18609. ]
  18610. },
  18611. "summary": {
  18612. "anyOf": [
  18613. {
  18614. "type": "object",
  18615. "properties": {
  18616. "title": {
  18617. "anyOf": [
  18618. {
  18619. "type": "string"
  18620. },
  18621. {
  18622. "type": "null"
  18623. }
  18624. ]
  18625. },
  18626. "body": {
  18627. "anyOf": [
  18628. {
  18629. "type": "string"
  18630. },
  18631. {
  18632. "type": "null"
  18633. }
  18634. ]
  18635. },
  18636. "diffs": {
  18637. "type": "array",
  18638. "items": {
  18639. "$ref": "#/components/schemas/SnapshotFileDiff"
  18640. }
  18641. }
  18642. },
  18643. "required": [
  18644. "diffs"
  18645. ],
  18646. "additionalProperties": false
  18647. },
  18648. {
  18649. "type": "null"
  18650. }
  18651. ]
  18652. },
  18653. "agent": {
  18654. "type": "string"
  18655. },
  18656. "model": {
  18657. "type": "object",
  18658. "properties": {
  18659. "providerID": {
  18660. "type": "string"
  18661. },
  18662. "modelID": {
  18663. "type": "string"
  18664. },
  18665. "variant": {
  18666. "anyOf": [
  18667. {
  18668. "type": "string"
  18669. },
  18670. {
  18671. "type": "null"
  18672. }
  18673. ]
  18674. }
  18675. },
  18676. "required": [
  18677. "providerID",
  18678. "modelID"
  18679. ],
  18680. "additionalProperties": false
  18681. },
  18682. "system": {
  18683. "anyOf": [
  18684. {
  18685. "type": "string"
  18686. },
  18687. {
  18688. "type": "null"
  18689. }
  18690. ]
  18691. },
  18692. "tools": {
  18693. "anyOf": [
  18694. {
  18695. "type": "object",
  18696. "additionalProperties": {
  18697. "type": "boolean"
  18698. }
  18699. },
  18700. {
  18701. "type": "null"
  18702. }
  18703. ]
  18704. }
  18705. },
  18706. "required": [
  18707. "id",
  18708. "sessionID",
  18709. "role",
  18710. "time",
  18711. "agent",
  18712. "model"
  18713. ],
  18714. "additionalProperties": false
  18715. },
  18716. "ProviderAuthError": {
  18717. "type": "object",
  18718. "properties": {
  18719. "name": {
  18720. "type": "string",
  18721. "enum": [
  18722. "ProviderAuthError"
  18723. ]
  18724. },
  18725. "data": {
  18726. "type": "object",
  18727. "properties": {
  18728. "providerID": {
  18729. "type": "string"
  18730. },
  18731. "message": {
  18732. "type": "string"
  18733. }
  18734. },
  18735. "required": [
  18736. "providerID",
  18737. "message"
  18738. ],
  18739. "additionalProperties": false
  18740. }
  18741. },
  18742. "required": [
  18743. "name",
  18744. "data"
  18745. ],
  18746. "additionalProperties": false
  18747. },
  18748. "UnknownError1": {
  18749. "type": "object",
  18750. "properties": {
  18751. "name": {
  18752. "type": "string",
  18753. "enum": [
  18754. "UnknownError"
  18755. ]
  18756. },
  18757. "data": {
  18758. "type": "object",
  18759. "properties": {
  18760. "message": {
  18761. "type": "string"
  18762. },
  18763. "ref": {
  18764. "anyOf": [
  18765. {
  18766. "type": "string"
  18767. },
  18768. {
  18769. "type": "null"
  18770. }
  18771. ]
  18772. }
  18773. },
  18774. "required": [
  18775. "message"
  18776. ],
  18777. "additionalProperties": false
  18778. }
  18779. },
  18780. "required": [
  18781. "name",
  18782. "data"
  18783. ],
  18784. "additionalProperties": false
  18785. },
  18786. "MessageOutputLengthError": {
  18787. "type": "object",
  18788. "properties": {
  18789. "name": {
  18790. "type": "string",
  18791. "enum": [
  18792. "MessageOutputLengthError"
  18793. ]
  18794. },
  18795. "data": {
  18796. "anyOf": [
  18797. {
  18798. "type": "object"
  18799. },
  18800. {
  18801. "type": "array"
  18802. }
  18803. ]
  18804. }
  18805. },
  18806. "required": [
  18807. "name",
  18808. "data"
  18809. ],
  18810. "additionalProperties": false
  18811. },
  18812. "MessageAbortedError": {
  18813. "type": "object",
  18814. "properties": {
  18815. "name": {
  18816. "type": "string",
  18817. "enum": [
  18818. "MessageAbortedError"
  18819. ]
  18820. },
  18821. "data": {
  18822. "type": "object",
  18823. "properties": {
  18824. "message": {
  18825. "type": "string"
  18826. }
  18827. },
  18828. "required": [
  18829. "message"
  18830. ],
  18831. "additionalProperties": false
  18832. }
  18833. },
  18834. "required": [
  18835. "name",
  18836. "data"
  18837. ],
  18838. "additionalProperties": false
  18839. },
  18840. "StructuredOutputError": {
  18841. "type": "object",
  18842. "properties": {
  18843. "name": {
  18844. "type": "string",
  18845. "enum": [
  18846. "StructuredOutputError"
  18847. ]
  18848. },
  18849. "data": {
  18850. "type": "object",
  18851. "properties": {
  18852. "message": {
  18853. "type": "string"
  18854. },
  18855. "retries": {
  18856. "type": "integer",
  18857. "allOf": [
  18858. {
  18859. "minimum": 0
  18860. }
  18861. ]
  18862. }
  18863. },
  18864. "required": [
  18865. "message",
  18866. "retries"
  18867. ],
  18868. "additionalProperties": false
  18869. }
  18870. },
  18871. "required": [
  18872. "name",
  18873. "data"
  18874. ],
  18875. "additionalProperties": false
  18876. },
  18877. "ContextOverflowError": {
  18878. "type": "object",
  18879. "properties": {
  18880. "name": {
  18881. "type": "string",
  18882. "enum": [
  18883. "ContextOverflowError"
  18884. ]
  18885. },
  18886. "data": {
  18887. "type": "object",
  18888. "properties": {
  18889. "message": {
  18890. "type": "string"
  18891. },
  18892. "responseBody": {
  18893. "anyOf": [
  18894. {
  18895. "type": "string"
  18896. },
  18897. {
  18898. "type": "null"
  18899. }
  18900. ]
  18901. }
  18902. },
  18903. "required": [
  18904. "message"
  18905. ],
  18906. "additionalProperties": false
  18907. }
  18908. },
  18909. "required": [
  18910. "name",
  18911. "data"
  18912. ],
  18913. "additionalProperties": false
  18914. },
  18915. "ContentFilterError": {
  18916. "type": "object",
  18917. "properties": {
  18918. "name": {
  18919. "type": "string",
  18920. "enum": [
  18921. "ContentFilterError"
  18922. ]
  18923. },
  18924. "data": {
  18925. "type": "object",
  18926. "properties": {
  18927. "message": {
  18928. "type": "string"
  18929. }
  18930. },
  18931. "required": [
  18932. "message"
  18933. ],
  18934. "additionalProperties": false
  18935. }
  18936. },
  18937. "required": [
  18938. "name",
  18939. "data"
  18940. ],
  18941. "additionalProperties": false
  18942. },
  18943. "APIError": {
  18944. "type": "object",
  18945. "properties": {
  18946. "name": {
  18947. "type": "string",
  18948. "enum": [
  18949. "APIError"
  18950. ]
  18951. },
  18952. "data": {
  18953. "type": "object",
  18954. "properties": {
  18955. "message": {
  18956. "type": "string"
  18957. },
  18958. "statusCode": {
  18959. "anyOf": [
  18960. {
  18961. "type": "integer",
  18962. "allOf": [
  18963. {
  18964. "minimum": 0
  18965. }
  18966. ]
  18967. },
  18968. {
  18969. "type": "null"
  18970. }
  18971. ]
  18972. },
  18973. "isRetryable": {
  18974. "type": "boolean"
  18975. },
  18976. "responseHeaders": {
  18977. "anyOf": [
  18978. {
  18979. "type": "object",
  18980. "additionalProperties": {
  18981. "type": "string"
  18982. }
  18983. },
  18984. {
  18985. "type": "null"
  18986. }
  18987. ]
  18988. },
  18989. "responseBody": {
  18990. "anyOf": [
  18991. {
  18992. "type": "string"
  18993. },
  18994. {
  18995. "type": "null"
  18996. }
  18997. ]
  18998. },
  18999. "metadata": {
  19000. "anyOf": [
  19001. {
  19002. "type": "object",
  19003. "additionalProperties": {
  19004. "type": "string"
  19005. }
  19006. },
  19007. {
  19008. "type": "null"
  19009. }
  19010. ]
  19011. }
  19012. },
  19013. "required": [
  19014. "message",
  19015. "isRetryable"
  19016. ],
  19017. "additionalProperties": false
  19018. }
  19019. },
  19020. "required": [
  19021. "name",
  19022. "data"
  19023. ],
  19024. "additionalProperties": false
  19025. },
  19026. "AssistantMessage": {
  19027. "type": "object",
  19028. "properties": {
  19029. "id": {
  19030. "type": "string",
  19031. "allOf": [
  19032. {
  19033. "pattern": "^msg"
  19034. }
  19035. ]
  19036. },
  19037. "sessionID": {
  19038. "type": "string",
  19039. "allOf": [
  19040. {
  19041. "pattern": "^ses"
  19042. }
  19043. ]
  19044. },
  19045. "role": {
  19046. "type": "string",
  19047. "enum": [
  19048. "assistant"
  19049. ]
  19050. },
  19051. "time": {
  19052. "type": "object",
  19053. "properties": {
  19054. "created": {
  19055. "type": "integer",
  19056. "allOf": [
  19057. {
  19058. "minimum": 0
  19059. }
  19060. ]
  19061. },
  19062. "completed": {
  19063. "anyOf": [
  19064. {
  19065. "type": "integer",
  19066. "allOf": [
  19067. {
  19068. "minimum": 0
  19069. }
  19070. ]
  19071. },
  19072. {
  19073. "type": "null"
  19074. }
  19075. ]
  19076. }
  19077. },
  19078. "required": [
  19079. "created"
  19080. ],
  19081. "additionalProperties": false
  19082. },
  19083. "error": {
  19084. "anyOf": [
  19085. {
  19086. "anyOf": [
  19087. {
  19088. "$ref": "#/components/schemas/ProviderAuthError"
  19089. },
  19090. {
  19091. "$ref": "#/components/schemas/UnknownError1"
  19092. },
  19093. {
  19094. "$ref": "#/components/schemas/MessageOutputLengthError"
  19095. },
  19096. {
  19097. "$ref": "#/components/schemas/MessageAbortedError"
  19098. },
  19099. {
  19100. "$ref": "#/components/schemas/StructuredOutputError"
  19101. },
  19102. {
  19103. "$ref": "#/components/schemas/ContextOverflowError"
  19104. },
  19105. {
  19106. "$ref": "#/components/schemas/ContentFilterError"
  19107. },
  19108. {
  19109. "$ref": "#/components/schemas/APIError"
  19110. }
  19111. ]
  19112. },
  19113. {
  19114. "type": "null"
  19115. }
  19116. ]
  19117. },
  19118. "parentID": {
  19119. "type": "string",
  19120. "allOf": [
  19121. {
  19122. "pattern": "^msg"
  19123. }
  19124. ]
  19125. },
  19126. "modelID": {
  19127. "type": "string"
  19128. },
  19129. "providerID": {
  19130. "type": "string"
  19131. },
  19132. "mode": {
  19133. "type": "string"
  19134. },
  19135. "agent": {
  19136. "type": "string"
  19137. },
  19138. "path": {
  19139. "type": "object",
  19140. "properties": {
  19141. "cwd": {
  19142. "type": "string"
  19143. },
  19144. "root": {
  19145. "type": "string"
  19146. }
  19147. },
  19148. "required": [
  19149. "cwd",
  19150. "root"
  19151. ],
  19152. "additionalProperties": false
  19153. },
  19154. "summary": {
  19155. "anyOf": [
  19156. {
  19157. "type": "boolean"
  19158. },
  19159. {
  19160. "type": "null"
  19161. }
  19162. ]
  19163. },
  19164. "cost": {
  19165. "type": "number"
  19166. },
  19167. "tokens": {
  19168. "type": "object",
  19169. "properties": {
  19170. "total": {
  19171. "anyOf": [
  19172. {
  19173. "type": "number"
  19174. },
  19175. {
  19176. "type": "null"
  19177. }
  19178. ]
  19179. },
  19180. "input": {
  19181. "type": "number"
  19182. },
  19183. "output": {
  19184. "type": "number"
  19185. },
  19186. "reasoning": {
  19187. "type": "number"
  19188. },
  19189. "cache": {
  19190. "type": "object",
  19191. "properties": {
  19192. "read": {
  19193. "type": "number"
  19194. },
  19195. "write": {
  19196. "type": "number"
  19197. }
  19198. },
  19199. "required": [
  19200. "read",
  19201. "write"
  19202. ],
  19203. "additionalProperties": false
  19204. }
  19205. },
  19206. "required": [
  19207. "input",
  19208. "output",
  19209. "reasoning",
  19210. "cache"
  19211. ],
  19212. "additionalProperties": false
  19213. },
  19214. "structured": {
  19215. "anyOf": [
  19216. {},
  19217. {
  19218. "type": "null"
  19219. }
  19220. ]
  19221. },
  19222. "variant": {
  19223. "anyOf": [
  19224. {
  19225. "type": "string"
  19226. },
  19227. {
  19228. "type": "null"
  19229. }
  19230. ]
  19231. },
  19232. "finish": {
  19233. "anyOf": [
  19234. {
  19235. "type": "string"
  19236. },
  19237. {
  19238. "type": "null"
  19239. }
  19240. ]
  19241. }
  19242. },
  19243. "required": [
  19244. "id",
  19245. "sessionID",
  19246. "role",
  19247. "time",
  19248. "parentID",
  19249. "modelID",
  19250. "providerID",
  19251. "mode",
  19252. "agent",
  19253. "path",
  19254. "cost",
  19255. "tokens"
  19256. ],
  19257. "additionalProperties": false
  19258. },
  19259. "Message": {
  19260. "anyOf": [
  19261. {
  19262. "$ref": "#/components/schemas/UserMessage"
  19263. },
  19264. {
  19265. "$ref": "#/components/schemas/AssistantMessage"
  19266. }
  19267. ]
  19268. },
  19269. "message.updated": {
  19270. "type": "object",
  19271. "properties": {
  19272. "id": {
  19273. "type": "string",
  19274. "allOf": [
  19275. {
  19276. "pattern": "^evt_"
  19277. }
  19278. ]
  19279. },
  19280. "metadata": {
  19281. "type": "object"
  19282. },
  19283. "type": {
  19284. "type": "string",
  19285. "enum": [
  19286. "message.updated"
  19287. ]
  19288. },
  19289. "durable": {
  19290. "type": "object",
  19291. "properties": {
  19292. "aggregateID": {
  19293. "type": "string"
  19294. },
  19295. "seq": {
  19296. "type": "integer",
  19297. "allOf": [
  19298. {
  19299. "minimum": 0
  19300. }
  19301. ]
  19302. },
  19303. "version": {
  19304. "type": "integer",
  19305. "allOf": [
  19306. {
  19307. "minimum": 1
  19308. }
  19309. ]
  19310. }
  19311. },
  19312. "required": [
  19313. "aggregateID",
  19314. "seq",
  19315. "version"
  19316. ],
  19317. "additionalProperties": false
  19318. },
  19319. "location": {
  19320. "$ref": "#/components/schemas/Location.Ref"
  19321. },
  19322. "data": {
  19323. "type": "object",
  19324. "properties": {
  19325. "sessionID": {
  19326. "type": "string",
  19327. "allOf": [
  19328. {
  19329. "pattern": "^ses"
  19330. }
  19331. ]
  19332. },
  19333. "info": {
  19334. "$ref": "#/components/schemas/Message"
  19335. }
  19336. },
  19337. "required": [
  19338. "sessionID",
  19339. "info"
  19340. ],
  19341. "additionalProperties": false
  19342. }
  19343. },
  19344. "required": [
  19345. "id",
  19346. "type",
  19347. "data"
  19348. ],
  19349. "additionalProperties": false
  19350. },
  19351. "message.removed": {
  19352. "type": "object",
  19353. "properties": {
  19354. "id": {
  19355. "type": "string",
  19356. "allOf": [
  19357. {
  19358. "pattern": "^evt_"
  19359. }
  19360. ]
  19361. },
  19362. "metadata": {
  19363. "type": "object"
  19364. },
  19365. "type": {
  19366. "type": "string",
  19367. "enum": [
  19368. "message.removed"
  19369. ]
  19370. },
  19371. "durable": {
  19372. "type": "object",
  19373. "properties": {
  19374. "aggregateID": {
  19375. "type": "string"
  19376. },
  19377. "seq": {
  19378. "type": "integer",
  19379. "allOf": [
  19380. {
  19381. "minimum": 0
  19382. }
  19383. ]
  19384. },
  19385. "version": {
  19386. "type": "integer",
  19387. "allOf": [
  19388. {
  19389. "minimum": 1
  19390. }
  19391. ]
  19392. }
  19393. },
  19394. "required": [
  19395. "aggregateID",
  19396. "seq",
  19397. "version"
  19398. ],
  19399. "additionalProperties": false
  19400. },
  19401. "location": {
  19402. "$ref": "#/components/schemas/Location.Ref"
  19403. },
  19404. "data": {
  19405. "type": "object",
  19406. "properties": {
  19407. "sessionID": {
  19408. "type": "string",
  19409. "allOf": [
  19410. {
  19411. "pattern": "^ses"
  19412. }
  19413. ]
  19414. },
  19415. "messageID": {
  19416. "type": "string",
  19417. "allOf": [
  19418. {
  19419. "pattern": "^msg"
  19420. }
  19421. ]
  19422. }
  19423. },
  19424. "required": [
  19425. "sessionID",
  19426. "messageID"
  19427. ],
  19428. "additionalProperties": false
  19429. }
  19430. },
  19431. "required": [
  19432. "id",
  19433. "type",
  19434. "data"
  19435. ],
  19436. "additionalProperties": false
  19437. },
  19438. "TextPart": {
  19439. "type": "object",
  19440. "properties": {
  19441. "id": {
  19442. "type": "string",
  19443. "allOf": [
  19444. {
  19445. "pattern": "^prt"
  19446. }
  19447. ]
  19448. },
  19449. "sessionID": {
  19450. "type": "string",
  19451. "allOf": [
  19452. {
  19453. "pattern": "^ses"
  19454. }
  19455. ]
  19456. },
  19457. "messageID": {
  19458. "type": "string",
  19459. "allOf": [
  19460. {
  19461. "pattern": "^msg"
  19462. }
  19463. ]
  19464. },
  19465. "type": {
  19466. "type": "string",
  19467. "enum": [
  19468. "text"
  19469. ]
  19470. },
  19471. "text": {
  19472. "type": "string"
  19473. },
  19474. "synthetic": {
  19475. "anyOf": [
  19476. {
  19477. "type": "boolean"
  19478. },
  19479. {
  19480. "type": "null"
  19481. }
  19482. ]
  19483. },
  19484. "ignored": {
  19485. "anyOf": [
  19486. {
  19487. "type": "boolean"
  19488. },
  19489. {
  19490. "type": "null"
  19491. }
  19492. ]
  19493. },
  19494. "time": {
  19495. "anyOf": [
  19496. {
  19497. "type": "object",
  19498. "properties": {
  19499. "start": {
  19500. "type": "integer",
  19501. "allOf": [
  19502. {
  19503. "minimum": 0
  19504. }
  19505. ]
  19506. },
  19507. "end": {
  19508. "anyOf": [
  19509. {
  19510. "type": "integer",
  19511. "allOf": [
  19512. {
  19513. "minimum": 0
  19514. }
  19515. ]
  19516. },
  19517. {
  19518. "type": "null"
  19519. }
  19520. ]
  19521. }
  19522. },
  19523. "required": [
  19524. "start"
  19525. ],
  19526. "additionalProperties": false
  19527. },
  19528. {
  19529. "type": "null"
  19530. }
  19531. ]
  19532. },
  19533. "metadata": {
  19534. "anyOf": [
  19535. {
  19536. "type": "object"
  19537. },
  19538. {
  19539. "type": "null"
  19540. }
  19541. ]
  19542. }
  19543. },
  19544. "required": [
  19545. "id",
  19546. "sessionID",
  19547. "messageID",
  19548. "type",
  19549. "text"
  19550. ],
  19551. "additionalProperties": false
  19552. },
  19553. "SubtaskPart": {
  19554. "type": "object",
  19555. "properties": {
  19556. "id": {
  19557. "type": "string",
  19558. "allOf": [
  19559. {
  19560. "pattern": "^prt"
  19561. }
  19562. ]
  19563. },
  19564. "sessionID": {
  19565. "type": "string",
  19566. "allOf": [
  19567. {
  19568. "pattern": "^ses"
  19569. }
  19570. ]
  19571. },
  19572. "messageID": {
  19573. "type": "string",
  19574. "allOf": [
  19575. {
  19576. "pattern": "^msg"
  19577. }
  19578. ]
  19579. },
  19580. "type": {
  19581. "type": "string",
  19582. "enum": [
  19583. "subtask"
  19584. ]
  19585. },
  19586. "prompt": {
  19587. "type": "string"
  19588. },
  19589. "description": {
  19590. "type": "string"
  19591. },
  19592. "agent": {
  19593. "type": "string"
  19594. },
  19595. "model": {
  19596. "anyOf": [
  19597. {
  19598. "type": "object",
  19599. "properties": {
  19600. "providerID": {
  19601. "type": "string"
  19602. },
  19603. "modelID": {
  19604. "type": "string"
  19605. }
  19606. },
  19607. "required": [
  19608. "providerID",
  19609. "modelID"
  19610. ],
  19611. "additionalProperties": false
  19612. },
  19613. {
  19614. "type": "null"
  19615. }
  19616. ]
  19617. },
  19618. "command": {
  19619. "anyOf": [
  19620. {
  19621. "type": "string"
  19622. },
  19623. {
  19624. "type": "null"
  19625. }
  19626. ]
  19627. }
  19628. },
  19629. "required": [
  19630. "id",
  19631. "sessionID",
  19632. "messageID",
  19633. "type",
  19634. "prompt",
  19635. "description",
  19636. "agent"
  19637. ],
  19638. "additionalProperties": false
  19639. },
  19640. "ReasoningPart": {
  19641. "type": "object",
  19642. "properties": {
  19643. "id": {
  19644. "type": "string",
  19645. "allOf": [
  19646. {
  19647. "pattern": "^prt"
  19648. }
  19649. ]
  19650. },
  19651. "sessionID": {
  19652. "type": "string",
  19653. "allOf": [
  19654. {
  19655. "pattern": "^ses"
  19656. }
  19657. ]
  19658. },
  19659. "messageID": {
  19660. "type": "string",
  19661. "allOf": [
  19662. {
  19663. "pattern": "^msg"
  19664. }
  19665. ]
  19666. },
  19667. "type": {
  19668. "type": "string",
  19669. "enum": [
  19670. "reasoning"
  19671. ]
  19672. },
  19673. "text": {
  19674. "type": "string"
  19675. },
  19676. "metadata": {
  19677. "anyOf": [
  19678. {
  19679. "type": "object"
  19680. },
  19681. {
  19682. "type": "null"
  19683. }
  19684. ]
  19685. },
  19686. "time": {
  19687. "type": "object",
  19688. "properties": {
  19689. "start": {
  19690. "type": "integer",
  19691. "allOf": [
  19692. {
  19693. "minimum": 0
  19694. }
  19695. ]
  19696. },
  19697. "end": {
  19698. "anyOf": [
  19699. {
  19700. "type": "integer",
  19701. "allOf": [
  19702. {
  19703. "minimum": 0
  19704. }
  19705. ]
  19706. },
  19707. {
  19708. "type": "null"
  19709. }
  19710. ]
  19711. }
  19712. },
  19713. "required": [
  19714. "start"
  19715. ],
  19716. "additionalProperties": false
  19717. }
  19718. },
  19719. "required": [
  19720. "id",
  19721. "sessionID",
  19722. "messageID",
  19723. "type",
  19724. "text",
  19725. "time"
  19726. ],
  19727. "additionalProperties": false
  19728. },
  19729. "FilePartSourceText": {
  19730. "type": "object",
  19731. "properties": {
  19732. "value": {
  19733. "type": "string"
  19734. },
  19735. "start": {
  19736. "type": "number"
  19737. },
  19738. "end": {
  19739. "type": "number"
  19740. }
  19741. },
  19742. "required": [
  19743. "value",
  19744. "start",
  19745. "end"
  19746. ],
  19747. "additionalProperties": false
  19748. },
  19749. "FileSource": {
  19750. "type": "object",
  19751. "properties": {
  19752. "text": {
  19753. "$ref": "#/components/schemas/FilePartSourceText"
  19754. },
  19755. "type": {
  19756. "type": "string",
  19757. "enum": [
  19758. "file"
  19759. ]
  19760. },
  19761. "path": {
  19762. "type": "string"
  19763. }
  19764. },
  19765. "required": [
  19766. "text",
  19767. "type",
  19768. "path"
  19769. ],
  19770. "additionalProperties": false
  19771. },
  19772. "Range": {
  19773. "type": "object",
  19774. "properties": {
  19775. "start": {
  19776. "type": "object",
  19777. "properties": {
  19778. "line": {
  19779. "type": "integer",
  19780. "allOf": [
  19781. {
  19782. "minimum": 0
  19783. }
  19784. ]
  19785. },
  19786. "character": {
  19787. "type": "integer",
  19788. "allOf": [
  19789. {
  19790. "minimum": 0
  19791. }
  19792. ]
  19793. }
  19794. },
  19795. "required": [
  19796. "line",
  19797. "character"
  19798. ],
  19799. "additionalProperties": false
  19800. },
  19801. "end": {
  19802. "type": "object",
  19803. "properties": {
  19804. "line": {
  19805. "type": "integer",
  19806. "allOf": [
  19807. {
  19808. "minimum": 0
  19809. }
  19810. ]
  19811. },
  19812. "character": {
  19813. "type": "integer",
  19814. "allOf": [
  19815. {
  19816. "minimum": 0
  19817. }
  19818. ]
  19819. }
  19820. },
  19821. "required": [
  19822. "line",
  19823. "character"
  19824. ],
  19825. "additionalProperties": false
  19826. }
  19827. },
  19828. "required": [
  19829. "start",
  19830. "end"
  19831. ],
  19832. "additionalProperties": false
  19833. },
  19834. "SymbolSource": {
  19835. "type": "object",
  19836. "properties": {
  19837. "text": {
  19838. "$ref": "#/components/schemas/FilePartSourceText"
  19839. },
  19840. "type": {
  19841. "type": "string",
  19842. "enum": [
  19843. "symbol"
  19844. ]
  19845. },
  19846. "path": {
  19847. "type": "string"
  19848. },
  19849. "range": {
  19850. "$ref": "#/components/schemas/Range"
  19851. },
  19852. "name": {
  19853. "type": "string"
  19854. },
  19855. "kind": {
  19856. "type": "integer",
  19857. "allOf": [
  19858. {
  19859. "minimum": 0
  19860. }
  19861. ]
  19862. }
  19863. },
  19864. "required": [
  19865. "text",
  19866. "type",
  19867. "path",
  19868. "range",
  19869. "name",
  19870. "kind"
  19871. ],
  19872. "additionalProperties": false
  19873. },
  19874. "ResourceSource": {
  19875. "type": "object",
  19876. "properties": {
  19877. "text": {
  19878. "$ref": "#/components/schemas/FilePartSourceText"
  19879. },
  19880. "type": {
  19881. "type": "string",
  19882. "enum": [
  19883. "resource"
  19884. ]
  19885. },
  19886. "clientName": {
  19887. "type": "string"
  19888. },
  19889. "uri": {
  19890. "type": "string"
  19891. }
  19892. },
  19893. "required": [
  19894. "text",
  19895. "type",
  19896. "clientName",
  19897. "uri"
  19898. ],
  19899. "additionalProperties": false
  19900. },
  19901. "FilePartSource": {
  19902. "anyOf": [
  19903. {
  19904. "$ref": "#/components/schemas/FileSource"
  19905. },
  19906. {
  19907. "$ref": "#/components/schemas/SymbolSource"
  19908. },
  19909. {
  19910. "$ref": "#/components/schemas/ResourceSource"
  19911. }
  19912. ]
  19913. },
  19914. "FilePart": {
  19915. "type": "object",
  19916. "properties": {
  19917. "id": {
  19918. "type": "string",
  19919. "allOf": [
  19920. {
  19921. "pattern": "^prt"
  19922. }
  19923. ]
  19924. },
  19925. "sessionID": {
  19926. "type": "string",
  19927. "allOf": [
  19928. {
  19929. "pattern": "^ses"
  19930. }
  19931. ]
  19932. },
  19933. "messageID": {
  19934. "type": "string",
  19935. "allOf": [
  19936. {
  19937. "pattern": "^msg"
  19938. }
  19939. ]
  19940. },
  19941. "type": {
  19942. "type": "string",
  19943. "enum": [
  19944. "file"
  19945. ]
  19946. },
  19947. "mime": {
  19948. "type": "string"
  19949. },
  19950. "filename": {
  19951. "anyOf": [
  19952. {
  19953. "type": "string"
  19954. },
  19955. {
  19956. "type": "null"
  19957. }
  19958. ]
  19959. },
  19960. "url": {
  19961. "type": "string"
  19962. },
  19963. "source": {
  19964. "anyOf": [
  19965. {
  19966. "$ref": "#/components/schemas/FilePartSource"
  19967. },
  19968. {
  19969. "type": "null"
  19970. }
  19971. ]
  19972. }
  19973. },
  19974. "required": [
  19975. "id",
  19976. "sessionID",
  19977. "messageID",
  19978. "type",
  19979. "mime",
  19980. "url"
  19981. ],
  19982. "additionalProperties": false
  19983. },
  19984. "ToolStatePending": {
  19985. "type": "object",
  19986. "properties": {
  19987. "status": {
  19988. "type": "string",
  19989. "enum": [
  19990. "pending"
  19991. ]
  19992. },
  19993. "input": {
  19994. "type": "object"
  19995. },
  19996. "raw": {
  19997. "type": "string"
  19998. }
  19999. },
  20000. "required": [
  20001. "status",
  20002. "input",
  20003. "raw"
  20004. ],
  20005. "additionalProperties": false
  20006. },
  20007. "ToolStateRunning": {
  20008. "type": "object",
  20009. "properties": {
  20010. "status": {
  20011. "type": "string",
  20012. "enum": [
  20013. "running"
  20014. ]
  20015. },
  20016. "input": {
  20017. "type": "object"
  20018. },
  20019. "title": {
  20020. "anyOf": [
  20021. {
  20022. "type": "string"
  20023. },
  20024. {
  20025. "type": "null"
  20026. }
  20027. ]
  20028. },
  20029. "metadata": {
  20030. "anyOf": [
  20031. {
  20032. "type": "object"
  20033. },
  20034. {
  20035. "type": "null"
  20036. }
  20037. ]
  20038. },
  20039. "time": {
  20040. "type": "object",
  20041. "properties": {
  20042. "start": {
  20043. "type": "integer",
  20044. "allOf": [
  20045. {
  20046. "minimum": 0
  20047. }
  20048. ]
  20049. }
  20050. },
  20051. "required": [
  20052. "start"
  20053. ],
  20054. "additionalProperties": false
  20055. }
  20056. },
  20057. "required": [
  20058. "status",
  20059. "input",
  20060. "time"
  20061. ],
  20062. "additionalProperties": false
  20063. },
  20064. "ToolStateCompleted": {
  20065. "type": "object",
  20066. "properties": {
  20067. "status": {
  20068. "type": "string",
  20069. "enum": [
  20070. "completed"
  20071. ]
  20072. },
  20073. "input": {
  20074. "type": "object"
  20075. },
  20076. "output": {
  20077. "type": "string"
  20078. },
  20079. "title": {
  20080. "type": "string"
  20081. },
  20082. "metadata": {
  20083. "type": "object"
  20084. },
  20085. "time": {
  20086. "type": "object",
  20087. "properties": {
  20088. "start": {
  20089. "type": "integer",
  20090. "allOf": [
  20091. {
  20092. "minimum": 0
  20093. }
  20094. ]
  20095. },
  20096. "end": {
  20097. "type": "integer",
  20098. "allOf": [
  20099. {
  20100. "minimum": 0
  20101. }
  20102. ]
  20103. },
  20104. "compacted": {
  20105. "anyOf": [
  20106. {
  20107. "type": "integer",
  20108. "allOf": [
  20109. {
  20110. "minimum": 0
  20111. }
  20112. ]
  20113. },
  20114. {
  20115. "type": "null"
  20116. }
  20117. ]
  20118. }
  20119. },
  20120. "required": [
  20121. "start",
  20122. "end"
  20123. ],
  20124. "additionalProperties": false
  20125. },
  20126. "attachments": {
  20127. "anyOf": [
  20128. {
  20129. "type": "array",
  20130. "items": {
  20131. "$ref": "#/components/schemas/FilePart"
  20132. }
  20133. },
  20134. {
  20135. "type": "null"
  20136. }
  20137. ]
  20138. }
  20139. },
  20140. "required": [
  20141. "status",
  20142. "input",
  20143. "output",
  20144. "title",
  20145. "metadata",
  20146. "time"
  20147. ],
  20148. "additionalProperties": false
  20149. },
  20150. "ToolStateError": {
  20151. "type": "object",
  20152. "properties": {
  20153. "status": {
  20154. "type": "string",
  20155. "enum": [
  20156. "error"
  20157. ]
  20158. },
  20159. "input": {
  20160. "type": "object"
  20161. },
  20162. "error": {
  20163. "type": "string"
  20164. },
  20165. "metadata": {
  20166. "anyOf": [
  20167. {
  20168. "type": "object"
  20169. },
  20170. {
  20171. "type": "null"
  20172. }
  20173. ]
  20174. },
  20175. "time": {
  20176. "type": "object",
  20177. "properties": {
  20178. "start": {
  20179. "type": "integer",
  20180. "allOf": [
  20181. {
  20182. "minimum": 0
  20183. }
  20184. ]
  20185. },
  20186. "end": {
  20187. "type": "integer",
  20188. "allOf": [
  20189. {
  20190. "minimum": 0
  20191. }
  20192. ]
  20193. }
  20194. },
  20195. "required": [
  20196. "start",
  20197. "end"
  20198. ],
  20199. "additionalProperties": false
  20200. }
  20201. },
  20202. "required": [
  20203. "status",
  20204. "input",
  20205. "error",
  20206. "time"
  20207. ],
  20208. "additionalProperties": false
  20209. },
  20210. "ToolState": {
  20211. "anyOf": [
  20212. {
  20213. "$ref": "#/components/schemas/ToolStatePending"
  20214. },
  20215. {
  20216. "$ref": "#/components/schemas/ToolStateRunning"
  20217. },
  20218. {
  20219. "$ref": "#/components/schemas/ToolStateCompleted"
  20220. },
  20221. {
  20222. "$ref": "#/components/schemas/ToolStateError"
  20223. }
  20224. ]
  20225. },
  20226. "ToolPart": {
  20227. "type": "object",
  20228. "properties": {
  20229. "id": {
  20230. "type": "string",
  20231. "allOf": [
  20232. {
  20233. "pattern": "^prt"
  20234. }
  20235. ]
  20236. },
  20237. "sessionID": {
  20238. "type": "string",
  20239. "allOf": [
  20240. {
  20241. "pattern": "^ses"
  20242. }
  20243. ]
  20244. },
  20245. "messageID": {
  20246. "type": "string",
  20247. "allOf": [
  20248. {
  20249. "pattern": "^msg"
  20250. }
  20251. ]
  20252. },
  20253. "type": {
  20254. "type": "string",
  20255. "enum": [
  20256. "tool"
  20257. ]
  20258. },
  20259. "callID": {
  20260. "type": "string"
  20261. },
  20262. "tool": {
  20263. "type": "string"
  20264. },
  20265. "state": {
  20266. "$ref": "#/components/schemas/ToolState"
  20267. },
  20268. "metadata": {
  20269. "anyOf": [
  20270. {
  20271. "type": "object"
  20272. },
  20273. {
  20274. "type": "null"
  20275. }
  20276. ]
  20277. }
  20278. },
  20279. "required": [
  20280. "id",
  20281. "sessionID",
  20282. "messageID",
  20283. "type",
  20284. "callID",
  20285. "tool",
  20286. "state"
  20287. ],
  20288. "additionalProperties": false
  20289. },
  20290. "StepStartPart": {
  20291. "type": "object",
  20292. "properties": {
  20293. "id": {
  20294. "type": "string",
  20295. "allOf": [
  20296. {
  20297. "pattern": "^prt"
  20298. }
  20299. ]
  20300. },
  20301. "sessionID": {
  20302. "type": "string",
  20303. "allOf": [
  20304. {
  20305. "pattern": "^ses"
  20306. }
  20307. ]
  20308. },
  20309. "messageID": {
  20310. "type": "string",
  20311. "allOf": [
  20312. {
  20313. "pattern": "^msg"
  20314. }
  20315. ]
  20316. },
  20317. "type": {
  20318. "type": "string",
  20319. "enum": [
  20320. "step-start"
  20321. ]
  20322. },
  20323. "snapshot": {
  20324. "anyOf": [
  20325. {
  20326. "type": "string"
  20327. },
  20328. {
  20329. "type": "null"
  20330. }
  20331. ]
  20332. }
  20333. },
  20334. "required": [
  20335. "id",
  20336. "sessionID",
  20337. "messageID",
  20338. "type"
  20339. ],
  20340. "additionalProperties": false
  20341. },
  20342. "StepFinishPart": {
  20343. "type": "object",
  20344. "properties": {
  20345. "id": {
  20346. "type": "string",
  20347. "allOf": [
  20348. {
  20349. "pattern": "^prt"
  20350. }
  20351. ]
  20352. },
  20353. "sessionID": {
  20354. "type": "string",
  20355. "allOf": [
  20356. {
  20357. "pattern": "^ses"
  20358. }
  20359. ]
  20360. },
  20361. "messageID": {
  20362. "type": "string",
  20363. "allOf": [
  20364. {
  20365. "pattern": "^msg"
  20366. }
  20367. ]
  20368. },
  20369. "type": {
  20370. "type": "string",
  20371. "enum": [
  20372. "step-finish"
  20373. ]
  20374. },
  20375. "reason": {
  20376. "type": "string"
  20377. },
  20378. "snapshot": {
  20379. "anyOf": [
  20380. {
  20381. "type": "string"
  20382. },
  20383. {
  20384. "type": "null"
  20385. }
  20386. ]
  20387. },
  20388. "cost": {
  20389. "type": "number"
  20390. },
  20391. "tokens": {
  20392. "type": "object",
  20393. "properties": {
  20394. "total": {
  20395. "anyOf": [
  20396. {
  20397. "type": "number"
  20398. },
  20399. {
  20400. "type": "null"
  20401. }
  20402. ]
  20403. },
  20404. "input": {
  20405. "type": "number"
  20406. },
  20407. "output": {
  20408. "type": "number"
  20409. },
  20410. "reasoning": {
  20411. "type": "number"
  20412. },
  20413. "cache": {
  20414. "type": "object",
  20415. "properties": {
  20416. "read": {
  20417. "type": "number"
  20418. },
  20419. "write": {
  20420. "type": "number"
  20421. }
  20422. },
  20423. "required": [
  20424. "read",
  20425. "write"
  20426. ],
  20427. "additionalProperties": false
  20428. }
  20429. },
  20430. "required": [
  20431. "input",
  20432. "output",
  20433. "reasoning",
  20434. "cache"
  20435. ],
  20436. "additionalProperties": false
  20437. }
  20438. },
  20439. "required": [
  20440. "id",
  20441. "sessionID",
  20442. "messageID",
  20443. "type",
  20444. "reason",
  20445. "cost",
  20446. "tokens"
  20447. ],
  20448. "additionalProperties": false
  20449. },
  20450. "SnapshotPart": {
  20451. "type": "object",
  20452. "properties": {
  20453. "id": {
  20454. "type": "string",
  20455. "allOf": [
  20456. {
  20457. "pattern": "^prt"
  20458. }
  20459. ]
  20460. },
  20461. "sessionID": {
  20462. "type": "string",
  20463. "allOf": [
  20464. {
  20465. "pattern": "^ses"
  20466. }
  20467. ]
  20468. },
  20469. "messageID": {
  20470. "type": "string",
  20471. "allOf": [
  20472. {
  20473. "pattern": "^msg"
  20474. }
  20475. ]
  20476. },
  20477. "type": {
  20478. "type": "string",
  20479. "enum": [
  20480. "snapshot"
  20481. ]
  20482. },
  20483. "snapshot": {
  20484. "type": "string"
  20485. }
  20486. },
  20487. "required": [
  20488. "id",
  20489. "sessionID",
  20490. "messageID",
  20491. "type",
  20492. "snapshot"
  20493. ],
  20494. "additionalProperties": false
  20495. },
  20496. "PatchPart": {
  20497. "type": "object",
  20498. "properties": {
  20499. "id": {
  20500. "type": "string",
  20501. "allOf": [
  20502. {
  20503. "pattern": "^prt"
  20504. }
  20505. ]
  20506. },
  20507. "sessionID": {
  20508. "type": "string",
  20509. "allOf": [
  20510. {
  20511. "pattern": "^ses"
  20512. }
  20513. ]
  20514. },
  20515. "messageID": {
  20516. "type": "string",
  20517. "allOf": [
  20518. {
  20519. "pattern": "^msg"
  20520. }
  20521. ]
  20522. },
  20523. "type": {
  20524. "type": "string",
  20525. "enum": [
  20526. "patch"
  20527. ]
  20528. },
  20529. "hash": {
  20530. "type": "string"
  20531. },
  20532. "files": {
  20533. "type": "array",
  20534. "items": {
  20535. "type": "string"
  20536. }
  20537. }
  20538. },
  20539. "required": [
  20540. "id",
  20541. "sessionID",
  20542. "messageID",
  20543. "type",
  20544. "hash",
  20545. "files"
  20546. ],
  20547. "additionalProperties": false
  20548. },
  20549. "AgentPart": {
  20550. "type": "object",
  20551. "properties": {
  20552. "id": {
  20553. "type": "string",
  20554. "allOf": [
  20555. {
  20556. "pattern": "^prt"
  20557. }
  20558. ]
  20559. },
  20560. "sessionID": {
  20561. "type": "string",
  20562. "allOf": [
  20563. {
  20564. "pattern": "^ses"
  20565. }
  20566. ]
  20567. },
  20568. "messageID": {
  20569. "type": "string",
  20570. "allOf": [
  20571. {
  20572. "pattern": "^msg"
  20573. }
  20574. ]
  20575. },
  20576. "type": {
  20577. "type": "string",
  20578. "enum": [
  20579. "agent"
  20580. ]
  20581. },
  20582. "name": {
  20583. "type": "string"
  20584. },
  20585. "source": {
  20586. "anyOf": [
  20587. {
  20588. "type": "object",
  20589. "properties": {
  20590. "value": {
  20591. "type": "string"
  20592. },
  20593. "start": {
  20594. "type": "integer",
  20595. "allOf": [
  20596. {
  20597. "minimum": 0
  20598. }
  20599. ]
  20600. },
  20601. "end": {
  20602. "type": "integer",
  20603. "allOf": [
  20604. {
  20605. "minimum": 0
  20606. }
  20607. ]
  20608. }
  20609. },
  20610. "required": [
  20611. "value",
  20612. "start",
  20613. "end"
  20614. ],
  20615. "additionalProperties": false
  20616. },
  20617. {
  20618. "type": "null"
  20619. }
  20620. ]
  20621. }
  20622. },
  20623. "required": [
  20624. "id",
  20625. "sessionID",
  20626. "messageID",
  20627. "type",
  20628. "name"
  20629. ],
  20630. "additionalProperties": false
  20631. },
  20632. "RetryPart": {
  20633. "type": "object",
  20634. "properties": {
  20635. "id": {
  20636. "type": "string",
  20637. "allOf": [
  20638. {
  20639. "pattern": "^prt"
  20640. }
  20641. ]
  20642. },
  20643. "sessionID": {
  20644. "type": "string",
  20645. "allOf": [
  20646. {
  20647. "pattern": "^ses"
  20648. }
  20649. ]
  20650. },
  20651. "messageID": {
  20652. "type": "string",
  20653. "allOf": [
  20654. {
  20655. "pattern": "^msg"
  20656. }
  20657. ]
  20658. },
  20659. "type": {
  20660. "type": "string",
  20661. "enum": [
  20662. "retry"
  20663. ]
  20664. },
  20665. "attempt": {
  20666. "type": "integer",
  20667. "allOf": [
  20668. {
  20669. "minimum": 0
  20670. }
  20671. ]
  20672. },
  20673. "error": {
  20674. "$ref": "#/components/schemas/APIError"
  20675. },
  20676. "time": {
  20677. "type": "object",
  20678. "properties": {
  20679. "created": {
  20680. "type": "integer",
  20681. "allOf": [
  20682. {
  20683. "minimum": 0
  20684. }
  20685. ]
  20686. }
  20687. },
  20688. "required": [
  20689. "created"
  20690. ],
  20691. "additionalProperties": false
  20692. }
  20693. },
  20694. "required": [
  20695. "id",
  20696. "sessionID",
  20697. "messageID",
  20698. "type",
  20699. "attempt",
  20700. "error",
  20701. "time"
  20702. ],
  20703. "additionalProperties": false
  20704. },
  20705. "CompactionPart": {
  20706. "type": "object",
  20707. "properties": {
  20708. "id": {
  20709. "type": "string",
  20710. "allOf": [
  20711. {
  20712. "pattern": "^prt"
  20713. }
  20714. ]
  20715. },
  20716. "sessionID": {
  20717. "type": "string",
  20718. "allOf": [
  20719. {
  20720. "pattern": "^ses"
  20721. }
  20722. ]
  20723. },
  20724. "messageID": {
  20725. "type": "string",
  20726. "allOf": [
  20727. {
  20728. "pattern": "^msg"
  20729. }
  20730. ]
  20731. },
  20732. "type": {
  20733. "type": "string",
  20734. "enum": [
  20735. "compaction"
  20736. ]
  20737. },
  20738. "auto": {
  20739. "type": "boolean"
  20740. },
  20741. "overflow": {
  20742. "anyOf": [
  20743. {
  20744. "type": "boolean"
  20745. },
  20746. {
  20747. "type": "null"
  20748. }
  20749. ]
  20750. },
  20751. "tail_start_id": {
  20752. "anyOf": [
  20753. {
  20754. "type": "string",
  20755. "allOf": [
  20756. {
  20757. "pattern": "^msg"
  20758. }
  20759. ]
  20760. },
  20761. {
  20762. "type": "null"
  20763. }
  20764. ]
  20765. }
  20766. },
  20767. "required": [
  20768. "id",
  20769. "sessionID",
  20770. "messageID",
  20771. "type",
  20772. "auto"
  20773. ],
  20774. "additionalProperties": false
  20775. },
  20776. "Part": {
  20777. "anyOf": [
  20778. {
  20779. "$ref": "#/components/schemas/TextPart"
  20780. },
  20781. {
  20782. "$ref": "#/components/schemas/SubtaskPart"
  20783. },
  20784. {
  20785. "$ref": "#/components/schemas/ReasoningPart"
  20786. },
  20787. {
  20788. "$ref": "#/components/schemas/FilePart"
  20789. },
  20790. {
  20791. "$ref": "#/components/schemas/ToolPart"
  20792. },
  20793. {
  20794. "$ref": "#/components/schemas/StepStartPart"
  20795. },
  20796. {
  20797. "$ref": "#/components/schemas/StepFinishPart"
  20798. },
  20799. {
  20800. "$ref": "#/components/schemas/SnapshotPart"
  20801. },
  20802. {
  20803. "$ref": "#/components/schemas/PatchPart"
  20804. },
  20805. {
  20806. "$ref": "#/components/schemas/AgentPart"
  20807. },
  20808. {
  20809. "$ref": "#/components/schemas/RetryPart"
  20810. },
  20811. {
  20812. "$ref": "#/components/schemas/CompactionPart"
  20813. }
  20814. ]
  20815. },
  20816. "message.part.updated": {
  20817. "type": "object",
  20818. "properties": {
  20819. "id": {
  20820. "type": "string",
  20821. "allOf": [
  20822. {
  20823. "pattern": "^evt_"
  20824. }
  20825. ]
  20826. },
  20827. "metadata": {
  20828. "type": "object"
  20829. },
  20830. "type": {
  20831. "type": "string",
  20832. "enum": [
  20833. "message.part.updated"
  20834. ]
  20835. },
  20836. "durable": {
  20837. "type": "object",
  20838. "properties": {
  20839. "aggregateID": {
  20840. "type": "string"
  20841. },
  20842. "seq": {
  20843. "type": "integer",
  20844. "allOf": [
  20845. {
  20846. "minimum": 0
  20847. }
  20848. ]
  20849. },
  20850. "version": {
  20851. "type": "integer",
  20852. "allOf": [
  20853. {
  20854. "minimum": 1
  20855. }
  20856. ]
  20857. }
  20858. },
  20859. "required": [
  20860. "aggregateID",
  20861. "seq",
  20862. "version"
  20863. ],
  20864. "additionalProperties": false
  20865. },
  20866. "location": {
  20867. "$ref": "#/components/schemas/Location.Ref"
  20868. },
  20869. "data": {
  20870. "type": "object",
  20871. "properties": {
  20872. "sessionID": {
  20873. "type": "string",
  20874. "allOf": [
  20875. {
  20876. "pattern": "^ses"
  20877. }
  20878. ]
  20879. },
  20880. "part": {
  20881. "$ref": "#/components/schemas/Part"
  20882. },
  20883. "time": {
  20884. "type": "number"
  20885. }
  20886. },
  20887. "required": [
  20888. "sessionID",
  20889. "part",
  20890. "time"
  20891. ],
  20892. "additionalProperties": false
  20893. }
  20894. },
  20895. "required": [
  20896. "id",
  20897. "type",
  20898. "data"
  20899. ],
  20900. "additionalProperties": false
  20901. },
  20902. "message.part.removed": {
  20903. "type": "object",
  20904. "properties": {
  20905. "id": {
  20906. "type": "string",
  20907. "allOf": [
  20908. {
  20909. "pattern": "^evt_"
  20910. }
  20911. ]
  20912. },
  20913. "metadata": {
  20914. "type": "object"
  20915. },
  20916. "type": {
  20917. "type": "string",
  20918. "enum": [
  20919. "message.part.removed"
  20920. ]
  20921. },
  20922. "durable": {
  20923. "type": "object",
  20924. "properties": {
  20925. "aggregateID": {
  20926. "type": "string"
  20927. },
  20928. "seq": {
  20929. "type": "integer",
  20930. "allOf": [
  20931. {
  20932. "minimum": 0
  20933. }
  20934. ]
  20935. },
  20936. "version": {
  20937. "type": "integer",
  20938. "allOf": [
  20939. {
  20940. "minimum": 1
  20941. }
  20942. ]
  20943. }
  20944. },
  20945. "required": [
  20946. "aggregateID",
  20947. "seq",
  20948. "version"
  20949. ],
  20950. "additionalProperties": false
  20951. },
  20952. "location": {
  20953. "$ref": "#/components/schemas/Location.Ref"
  20954. },
  20955. "data": {
  20956. "type": "object",
  20957. "properties": {
  20958. "sessionID": {
  20959. "type": "string",
  20960. "allOf": [
  20961. {
  20962. "pattern": "^ses"
  20963. }
  20964. ]
  20965. },
  20966. "messageID": {
  20967. "type": "string",
  20968. "allOf": [
  20969. {
  20970. "pattern": "^msg"
  20971. }
  20972. ]
  20973. },
  20974. "partID": {
  20975. "type": "string",
  20976. "allOf": [
  20977. {
  20978. "pattern": "^prt"
  20979. }
  20980. ]
  20981. }
  20982. },
  20983. "required": [
  20984. "sessionID",
  20985. "messageID",
  20986. "partID"
  20987. ],
  20988. "additionalProperties": false
  20989. }
  20990. },
  20991. "required": [
  20992. "id",
  20993. "type",
  20994. "data"
  20995. ],
  20996. "additionalProperties": false
  20997. },
  20998. "session.next.execution.settled": {
  20999. "type": "object",
  21000. "properties": {
  21001. "id": {
  21002. "type": "string",
  21003. "allOf": [
  21004. {
  21005. "pattern": "^evt_"
  21006. }
  21007. ]
  21008. },
  21009. "metadata": {
  21010. "type": "object"
  21011. },
  21012. "type": {
  21013. "type": "string",
  21014. "enum": [
  21015. "session.next.execution.settled"
  21016. ]
  21017. },
  21018. "durable": {
  21019. "type": "object",
  21020. "properties": {
  21021. "aggregateID": {
  21022. "type": "string"
  21023. },
  21024. "seq": {
  21025. "type": "integer",
  21026. "allOf": [
  21027. {
  21028. "minimum": 0
  21029. }
  21030. ]
  21031. },
  21032. "version": {
  21033. "type": "integer",
  21034. "allOf": [
  21035. {
  21036. "minimum": 1
  21037. }
  21038. ]
  21039. }
  21040. },
  21041. "required": [
  21042. "aggregateID",
  21043. "seq",
  21044. "version"
  21045. ],
  21046. "additionalProperties": false
  21047. },
  21048. "location": {
  21049. "$ref": "#/components/schemas/Location.Ref"
  21050. },
  21051. "data": {
  21052. "type": "object",
  21053. "properties": {
  21054. "timestamp": {
  21055. "type": "number"
  21056. },
  21057. "sessionID": {
  21058. "type": "string",
  21059. "allOf": [
  21060. {
  21061. "pattern": "^ses"
  21062. }
  21063. ]
  21064. },
  21065. "outcome": {
  21066. "type": "string",
  21067. "enum": [
  21068. "success",
  21069. "failure",
  21070. "interrupted"
  21071. ]
  21072. },
  21073. "error": {
  21074. "$ref": "#/components/schemas/Session.Error.Unknown"
  21075. }
  21076. },
  21077. "required": [
  21078. "timestamp",
  21079. "sessionID",
  21080. "outcome"
  21081. ],
  21082. "additionalProperties": false
  21083. }
  21084. },
  21085. "required": [
  21086. "id",
  21087. "type",
  21088. "data"
  21089. ],
  21090. "additionalProperties": false
  21091. },
  21092. "session.next.text.delta": {
  21093. "type": "object",
  21094. "properties": {
  21095. "id": {
  21096. "type": "string",
  21097. "allOf": [
  21098. {
  21099. "pattern": "^evt_"
  21100. }
  21101. ]
  21102. },
  21103. "metadata": {
  21104. "type": "object"
  21105. },
  21106. "type": {
  21107. "type": "string",
  21108. "enum": [
  21109. "session.next.text.delta"
  21110. ]
  21111. },
  21112. "durable": {
  21113. "type": "object",
  21114. "properties": {
  21115. "aggregateID": {
  21116. "type": "string"
  21117. },
  21118. "seq": {
  21119. "type": "integer",
  21120. "allOf": [
  21121. {
  21122. "minimum": 0
  21123. }
  21124. ]
  21125. },
  21126. "version": {
  21127. "type": "integer",
  21128. "allOf": [
  21129. {
  21130. "minimum": 1
  21131. }
  21132. ]
  21133. }
  21134. },
  21135. "required": [
  21136. "aggregateID",
  21137. "seq",
  21138. "version"
  21139. ],
  21140. "additionalProperties": false
  21141. },
  21142. "location": {
  21143. "$ref": "#/components/schemas/Location.Ref"
  21144. },
  21145. "data": {
  21146. "type": "object",
  21147. "properties": {
  21148. "timestamp": {
  21149. "type": "number"
  21150. },
  21151. "sessionID": {
  21152. "type": "string",
  21153. "allOf": [
  21154. {
  21155. "pattern": "^ses"
  21156. }
  21157. ]
  21158. },
  21159. "assistantMessageID": {
  21160. "type": "string",
  21161. "allOf": [
  21162. {
  21163. "pattern": "^msg_"
  21164. }
  21165. ]
  21166. },
  21167. "textID": {
  21168. "type": "string"
  21169. },
  21170. "delta": {
  21171. "type": "string"
  21172. }
  21173. },
  21174. "required": [
  21175. "timestamp",
  21176. "sessionID",
  21177. "assistantMessageID",
  21178. "textID",
  21179. "delta"
  21180. ],
  21181. "additionalProperties": false
  21182. }
  21183. },
  21184. "required": [
  21185. "id",
  21186. "type",
  21187. "data"
  21188. ],
  21189. "additionalProperties": false
  21190. },
  21191. "session.next.reasoning.delta": {
  21192. "type": "object",
  21193. "properties": {
  21194. "id": {
  21195. "type": "string",
  21196. "allOf": [
  21197. {
  21198. "pattern": "^evt_"
  21199. }
  21200. ]
  21201. },
  21202. "metadata": {
  21203. "type": "object"
  21204. },
  21205. "type": {
  21206. "type": "string",
  21207. "enum": [
  21208. "session.next.reasoning.delta"
  21209. ]
  21210. },
  21211. "durable": {
  21212. "type": "object",
  21213. "properties": {
  21214. "aggregateID": {
  21215. "type": "string"
  21216. },
  21217. "seq": {
  21218. "type": "integer",
  21219. "allOf": [
  21220. {
  21221. "minimum": 0
  21222. }
  21223. ]
  21224. },
  21225. "version": {
  21226. "type": "integer",
  21227. "allOf": [
  21228. {
  21229. "minimum": 1
  21230. }
  21231. ]
  21232. }
  21233. },
  21234. "required": [
  21235. "aggregateID",
  21236. "seq",
  21237. "version"
  21238. ],
  21239. "additionalProperties": false
  21240. },
  21241. "location": {
  21242. "$ref": "#/components/schemas/Location.Ref"
  21243. },
  21244. "data": {
  21245. "type": "object",
  21246. "properties": {
  21247. "timestamp": {
  21248. "type": "number"
  21249. },
  21250. "sessionID": {
  21251. "type": "string",
  21252. "allOf": [
  21253. {
  21254. "pattern": "^ses"
  21255. }
  21256. ]
  21257. },
  21258. "assistantMessageID": {
  21259. "type": "string",
  21260. "allOf": [
  21261. {
  21262. "pattern": "^msg_"
  21263. }
  21264. ]
  21265. },
  21266. "reasoningID": {
  21267. "type": "string"
  21268. },
  21269. "delta": {
  21270. "type": "string"
  21271. }
  21272. },
  21273. "required": [
  21274. "timestamp",
  21275. "sessionID",
  21276. "assistantMessageID",
  21277. "reasoningID",
  21278. "delta"
  21279. ],
  21280. "additionalProperties": false
  21281. }
  21282. },
  21283. "required": [
  21284. "id",
  21285. "type",
  21286. "data"
  21287. ],
  21288. "additionalProperties": false
  21289. },
  21290. "session.next.tool.input.delta": {
  21291. "type": "object",
  21292. "properties": {
  21293. "id": {
  21294. "type": "string",
  21295. "allOf": [
  21296. {
  21297. "pattern": "^evt_"
  21298. }
  21299. ]
  21300. },
  21301. "metadata": {
  21302. "type": "object"
  21303. },
  21304. "type": {
  21305. "type": "string",
  21306. "enum": [
  21307. "session.next.tool.input.delta"
  21308. ]
  21309. },
  21310. "durable": {
  21311. "type": "object",
  21312. "properties": {
  21313. "aggregateID": {
  21314. "type": "string"
  21315. },
  21316. "seq": {
  21317. "type": "integer",
  21318. "allOf": [
  21319. {
  21320. "minimum": 0
  21321. }
  21322. ]
  21323. },
  21324. "version": {
  21325. "type": "integer",
  21326. "allOf": [
  21327. {
  21328. "minimum": 1
  21329. }
  21330. ]
  21331. }
  21332. },
  21333. "required": [
  21334. "aggregateID",
  21335. "seq",
  21336. "version"
  21337. ],
  21338. "additionalProperties": false
  21339. },
  21340. "location": {
  21341. "$ref": "#/components/schemas/Location.Ref"
  21342. },
  21343. "data": {
  21344. "type": "object",
  21345. "properties": {
  21346. "timestamp": {
  21347. "type": "number"
  21348. },
  21349. "sessionID": {
  21350. "type": "string",
  21351. "allOf": [
  21352. {
  21353. "pattern": "^ses"
  21354. }
  21355. ]
  21356. },
  21357. "assistantMessageID": {
  21358. "type": "string",
  21359. "allOf": [
  21360. {
  21361. "pattern": "^msg_"
  21362. }
  21363. ]
  21364. },
  21365. "callID": {
  21366. "type": "string"
  21367. },
  21368. "delta": {
  21369. "type": "string"
  21370. }
  21371. },
  21372. "required": [
  21373. "timestamp",
  21374. "sessionID",
  21375. "assistantMessageID",
  21376. "callID",
  21377. "delta"
  21378. ],
  21379. "additionalProperties": false
  21380. }
  21381. },
  21382. "required": [
  21383. "id",
  21384. "type",
  21385. "data"
  21386. ],
  21387. "additionalProperties": false
  21388. },
  21389. "session.next.compaction.delta": {
  21390. "type": "object",
  21391. "properties": {
  21392. "id": {
  21393. "type": "string",
  21394. "allOf": [
  21395. {
  21396. "pattern": "^evt_"
  21397. }
  21398. ]
  21399. },
  21400. "metadata": {
  21401. "type": "object"
  21402. },
  21403. "type": {
  21404. "type": "string",
  21405. "enum": [
  21406. "session.next.compaction.delta"
  21407. ]
  21408. },
  21409. "durable": {
  21410. "type": "object",
  21411. "properties": {
  21412. "aggregateID": {
  21413. "type": "string"
  21414. },
  21415. "seq": {
  21416. "type": "integer",
  21417. "allOf": [
  21418. {
  21419. "minimum": 0
  21420. }
  21421. ]
  21422. },
  21423. "version": {
  21424. "type": "integer",
  21425. "allOf": [
  21426. {
  21427. "minimum": 1
  21428. }
  21429. ]
  21430. }
  21431. },
  21432. "required": [
  21433. "aggregateID",
  21434. "seq",
  21435. "version"
  21436. ],
  21437. "additionalProperties": false
  21438. },
  21439. "location": {
  21440. "$ref": "#/components/schemas/Location.Ref"
  21441. },
  21442. "data": {
  21443. "type": "object",
  21444. "properties": {
  21445. "timestamp": {
  21446. "type": "number"
  21447. },
  21448. "sessionID": {
  21449. "type": "string",
  21450. "allOf": [
  21451. {
  21452. "pattern": "^ses"
  21453. }
  21454. ]
  21455. },
  21456. "messageID": {
  21457. "type": "string",
  21458. "allOf": [
  21459. {
  21460. "pattern": "^msg_"
  21461. }
  21462. ]
  21463. },
  21464. "text": {
  21465. "type": "string"
  21466. }
  21467. },
  21468. "required": [
  21469. "timestamp",
  21470. "sessionID",
  21471. "messageID",
  21472. "text"
  21473. ],
  21474. "additionalProperties": false
  21475. }
  21476. },
  21477. "required": [
  21478. "id",
  21479. "type",
  21480. "data"
  21481. ],
  21482. "additionalProperties": false
  21483. },
  21484. "file.edited": {
  21485. "type": "object",
  21486. "properties": {
  21487. "id": {
  21488. "type": "string",
  21489. "allOf": [
  21490. {
  21491. "pattern": "^evt_"
  21492. }
  21493. ]
  21494. },
  21495. "metadata": {
  21496. "type": "object"
  21497. },
  21498. "type": {
  21499. "type": "string",
  21500. "enum": [
  21501. "file.edited"
  21502. ]
  21503. },
  21504. "durable": {
  21505. "type": "object",
  21506. "properties": {
  21507. "aggregateID": {
  21508. "type": "string"
  21509. },
  21510. "seq": {
  21511. "type": "integer",
  21512. "allOf": [
  21513. {
  21514. "minimum": 0
  21515. }
  21516. ]
  21517. },
  21518. "version": {
  21519. "type": "integer",
  21520. "allOf": [
  21521. {
  21522. "minimum": 1
  21523. }
  21524. ]
  21525. }
  21526. },
  21527. "required": [
  21528. "aggregateID",
  21529. "seq",
  21530. "version"
  21531. ],
  21532. "additionalProperties": false
  21533. },
  21534. "location": {
  21535. "$ref": "#/components/schemas/Location.Ref"
  21536. },
  21537. "data": {
  21538. "type": "object",
  21539. "properties": {
  21540. "file": {
  21541. "type": "string"
  21542. }
  21543. },
  21544. "required": [
  21545. "file"
  21546. ],
  21547. "additionalProperties": false
  21548. }
  21549. },
  21550. "required": [
  21551. "id",
  21552. "type",
  21553. "data"
  21554. ],
  21555. "additionalProperties": false
  21556. },
  21557. "reference.updated": {
  21558. "type": "object",
  21559. "properties": {
  21560. "id": {
  21561. "type": "string",
  21562. "allOf": [
  21563. {
  21564. "pattern": "^evt_"
  21565. }
  21566. ]
  21567. },
  21568. "metadata": {
  21569. "type": "object"
  21570. },
  21571. "type": {
  21572. "type": "string",
  21573. "enum": [
  21574. "reference.updated"
  21575. ]
  21576. },
  21577. "durable": {
  21578. "type": "object",
  21579. "properties": {
  21580. "aggregateID": {
  21581. "type": "string"
  21582. },
  21583. "seq": {
  21584. "type": "integer",
  21585. "allOf": [
  21586. {
  21587. "minimum": 0
  21588. }
  21589. ]
  21590. },
  21591. "version": {
  21592. "type": "integer",
  21593. "allOf": [
  21594. {
  21595. "minimum": 1
  21596. }
  21597. ]
  21598. }
  21599. },
  21600. "required": [
  21601. "aggregateID",
  21602. "seq",
  21603. "version"
  21604. ],
  21605. "additionalProperties": false
  21606. },
  21607. "location": {
  21608. "$ref": "#/components/schemas/Location.Ref"
  21609. },
  21610. "data": {
  21611. "anyOf": [
  21612. {
  21613. "type": "object"
  21614. },
  21615. {
  21616. "type": "array"
  21617. }
  21618. ]
  21619. }
  21620. },
  21621. "required": [
  21622. "id",
  21623. "type",
  21624. "data"
  21625. ],
  21626. "additionalProperties": false
  21627. },
  21628. "permission.v2.asked": {
  21629. "type": "object",
  21630. "properties": {
  21631. "id": {
  21632. "type": "string",
  21633. "allOf": [
  21634. {
  21635. "pattern": "^evt_"
  21636. }
  21637. ]
  21638. },
  21639. "metadata": {
  21640. "type": "object"
  21641. },
  21642. "type": {
  21643. "type": "string",
  21644. "enum": [
  21645. "permission.v2.asked"
  21646. ]
  21647. },
  21648. "durable": {
  21649. "type": "object",
  21650. "properties": {
  21651. "aggregateID": {
  21652. "type": "string"
  21653. },
  21654. "seq": {
  21655. "type": "integer",
  21656. "allOf": [
  21657. {
  21658. "minimum": 0
  21659. }
  21660. ]
  21661. },
  21662. "version": {
  21663. "type": "integer",
  21664. "allOf": [
  21665. {
  21666. "minimum": 1
  21667. }
  21668. ]
  21669. }
  21670. },
  21671. "required": [
  21672. "aggregateID",
  21673. "seq",
  21674. "version"
  21675. ],
  21676. "additionalProperties": false
  21677. },
  21678. "location": {
  21679. "$ref": "#/components/schemas/Location.Ref"
  21680. },
  21681. "data": {
  21682. "type": "object",
  21683. "properties": {
  21684. "id": {
  21685. "type": "string",
  21686. "allOf": [
  21687. {
  21688. "pattern": "^per"
  21689. }
  21690. ]
  21691. },
  21692. "sessionID": {
  21693. "type": "string",
  21694. "allOf": [
  21695. {
  21696. "pattern": "^ses"
  21697. }
  21698. ]
  21699. },
  21700. "action": {
  21701. "type": "string"
  21702. },
  21703. "resources": {
  21704. "type": "array",
  21705. "items": {
  21706. "type": "string"
  21707. }
  21708. },
  21709. "save": {
  21710. "type": "array",
  21711. "items": {
  21712. "type": "string"
  21713. }
  21714. },
  21715. "metadata": {
  21716. "type": "object"
  21717. },
  21718. "source": {
  21719. "$ref": "#/components/schemas/PermissionV2.Source"
  21720. }
  21721. },
  21722. "required": [
  21723. "id",
  21724. "sessionID",
  21725. "action",
  21726. "resources"
  21727. ],
  21728. "additionalProperties": false
  21729. }
  21730. },
  21731. "required": [
  21732. "id",
  21733. "type",
  21734. "data"
  21735. ],
  21736. "additionalProperties": false
  21737. },
  21738. "permission.v2.replied": {
  21739. "type": "object",
  21740. "properties": {
  21741. "id": {
  21742. "type": "string",
  21743. "allOf": [
  21744. {
  21745. "pattern": "^evt_"
  21746. }
  21747. ]
  21748. },
  21749. "metadata": {
  21750. "type": "object"
  21751. },
  21752. "type": {
  21753. "type": "string",
  21754. "enum": [
  21755. "permission.v2.replied"
  21756. ]
  21757. },
  21758. "durable": {
  21759. "type": "object",
  21760. "properties": {
  21761. "aggregateID": {
  21762. "type": "string"
  21763. },
  21764. "seq": {
  21765. "type": "integer",
  21766. "allOf": [
  21767. {
  21768. "minimum": 0
  21769. }
  21770. ]
  21771. },
  21772. "version": {
  21773. "type": "integer",
  21774. "allOf": [
  21775. {
  21776. "minimum": 1
  21777. }
  21778. ]
  21779. }
  21780. },
  21781. "required": [
  21782. "aggregateID",
  21783. "seq",
  21784. "version"
  21785. ],
  21786. "additionalProperties": false
  21787. },
  21788. "location": {
  21789. "$ref": "#/components/schemas/Location.Ref"
  21790. },
  21791. "data": {
  21792. "type": "object",
  21793. "properties": {
  21794. "sessionID": {
  21795. "type": "string",
  21796. "allOf": [
  21797. {
  21798. "pattern": "^ses"
  21799. }
  21800. ]
  21801. },
  21802. "requestID": {
  21803. "type": "string",
  21804. "allOf": [
  21805. {
  21806. "pattern": "^per"
  21807. }
  21808. ]
  21809. },
  21810. "reply": {
  21811. "$ref": "#/components/schemas/PermissionV2.Reply"
  21812. }
  21813. },
  21814. "required": [
  21815. "sessionID",
  21816. "requestID",
  21817. "reply"
  21818. ],
  21819. "additionalProperties": false
  21820. }
  21821. },
  21822. "required": [
  21823. "id",
  21824. "type",
  21825. "data"
  21826. ],
  21827. "additionalProperties": false
  21828. },
  21829. "plugin.added": {
  21830. "type": "object",
  21831. "properties": {
  21832. "id": {
  21833. "type": "string",
  21834. "allOf": [
  21835. {
  21836. "pattern": "^evt_"
  21837. }
  21838. ]
  21839. },
  21840. "metadata": {
  21841. "type": "object"
  21842. },
  21843. "type": {
  21844. "type": "string",
  21845. "enum": [
  21846. "plugin.added"
  21847. ]
  21848. },
  21849. "durable": {
  21850. "type": "object",
  21851. "properties": {
  21852. "aggregateID": {
  21853. "type": "string"
  21854. },
  21855. "seq": {
  21856. "type": "integer",
  21857. "allOf": [
  21858. {
  21859. "minimum": 0
  21860. }
  21861. ]
  21862. },
  21863. "version": {
  21864. "type": "integer",
  21865. "allOf": [
  21866. {
  21867. "minimum": 1
  21868. }
  21869. ]
  21870. }
  21871. },
  21872. "required": [
  21873. "aggregateID",
  21874. "seq",
  21875. "version"
  21876. ],
  21877. "additionalProperties": false
  21878. },
  21879. "location": {
  21880. "$ref": "#/components/schemas/Location.Ref"
  21881. },
  21882. "data": {
  21883. "type": "object",
  21884. "properties": {
  21885. "id": {
  21886. "type": "string"
  21887. }
  21888. },
  21889. "required": [
  21890. "id"
  21891. ],
  21892. "additionalProperties": false
  21893. }
  21894. },
  21895. "required": [
  21896. "id",
  21897. "type",
  21898. "data"
  21899. ],
  21900. "additionalProperties": false
  21901. },
  21902. "project.directories.updated": {
  21903. "type": "object",
  21904. "properties": {
  21905. "id": {
  21906. "type": "string",
  21907. "allOf": [
  21908. {
  21909. "pattern": "^evt_"
  21910. }
  21911. ]
  21912. },
  21913. "metadata": {
  21914. "type": "object"
  21915. },
  21916. "type": {
  21917. "type": "string",
  21918. "enum": [
  21919. "project.directories.updated"
  21920. ]
  21921. },
  21922. "durable": {
  21923. "type": "object",
  21924. "properties": {
  21925. "aggregateID": {
  21926. "type": "string"
  21927. },
  21928. "seq": {
  21929. "type": "integer",
  21930. "allOf": [
  21931. {
  21932. "minimum": 0
  21933. }
  21934. ]
  21935. },
  21936. "version": {
  21937. "type": "integer",
  21938. "allOf": [
  21939. {
  21940. "minimum": 1
  21941. }
  21942. ]
  21943. }
  21944. },
  21945. "required": [
  21946. "aggregateID",
  21947. "seq",
  21948. "version"
  21949. ],
  21950. "additionalProperties": false
  21951. },
  21952. "location": {
  21953. "$ref": "#/components/schemas/Location.Ref"
  21954. },
  21955. "data": {
  21956. "type": "object",
  21957. "properties": {
  21958. "projectID": {
  21959. "type": "string"
  21960. }
  21961. },
  21962. "required": [
  21963. "projectID"
  21964. ],
  21965. "additionalProperties": false
  21966. }
  21967. },
  21968. "required": [
  21969. "id",
  21970. "type",
  21971. "data"
  21972. ],
  21973. "additionalProperties": false
  21974. },
  21975. "command.updated": {
  21976. "type": "object",
  21977. "properties": {
  21978. "id": {
  21979. "type": "string",
  21980. "allOf": [
  21981. {
  21982. "pattern": "^evt_"
  21983. }
  21984. ]
  21985. },
  21986. "metadata": {
  21987. "type": "object"
  21988. },
  21989. "type": {
  21990. "type": "string",
  21991. "enum": [
  21992. "command.updated"
  21993. ]
  21994. },
  21995. "durable": {
  21996. "type": "object",
  21997. "properties": {
  21998. "aggregateID": {
  21999. "type": "string"
  22000. },
  22001. "seq": {
  22002. "type": "integer",
  22003. "allOf": [
  22004. {
  22005. "minimum": 0
  22006. }
  22007. ]
  22008. },
  22009. "version": {
  22010. "type": "integer",
  22011. "allOf": [
  22012. {
  22013. "minimum": 1
  22014. }
  22015. ]
  22016. }
  22017. },
  22018. "required": [
  22019. "aggregateID",
  22020. "seq",
  22021. "version"
  22022. ],
  22023. "additionalProperties": false
  22024. },
  22025. "location": {
  22026. "$ref": "#/components/schemas/Location.Ref"
  22027. },
  22028. "data": {
  22029. "anyOf": [
  22030. {
  22031. "type": "object"
  22032. },
  22033. {
  22034. "type": "array"
  22035. }
  22036. ]
  22037. }
  22038. },
  22039. "required": [
  22040. "id",
  22041. "type",
  22042. "data"
  22043. ],
  22044. "additionalProperties": false
  22045. },
  22046. "skill.updated": {
  22047. "type": "object",
  22048. "properties": {
  22049. "id": {
  22050. "type": "string",
  22051. "allOf": [
  22052. {
  22053. "pattern": "^evt_"
  22054. }
  22055. ]
  22056. },
  22057. "metadata": {
  22058. "type": "object"
  22059. },
  22060. "type": {
  22061. "type": "string",
  22062. "enum": [
  22063. "skill.updated"
  22064. ]
  22065. },
  22066. "durable": {
  22067. "type": "object",
  22068. "properties": {
  22069. "aggregateID": {
  22070. "type": "string"
  22071. },
  22072. "seq": {
  22073. "type": "integer",
  22074. "allOf": [
  22075. {
  22076. "minimum": 0
  22077. }
  22078. ]
  22079. },
  22080. "version": {
  22081. "type": "integer",
  22082. "allOf": [
  22083. {
  22084. "minimum": 1
  22085. }
  22086. ]
  22087. }
  22088. },
  22089. "required": [
  22090. "aggregateID",
  22091. "seq",
  22092. "version"
  22093. ],
  22094. "additionalProperties": false
  22095. },
  22096. "location": {
  22097. "$ref": "#/components/schemas/Location.Ref"
  22098. },
  22099. "data": {
  22100. "anyOf": [
  22101. {
  22102. "type": "object"
  22103. },
  22104. {
  22105. "type": "array"
  22106. }
  22107. ]
  22108. }
  22109. },
  22110. "required": [
  22111. "id",
  22112. "type",
  22113. "data"
  22114. ],
  22115. "additionalProperties": false
  22116. },
  22117. "file.watcher.updated": {
  22118. "type": "object",
  22119. "properties": {
  22120. "id": {
  22121. "type": "string",
  22122. "allOf": [
  22123. {
  22124. "pattern": "^evt_"
  22125. }
  22126. ]
  22127. },
  22128. "metadata": {
  22129. "type": "object"
  22130. },
  22131. "type": {
  22132. "type": "string",
  22133. "enum": [
  22134. "file.watcher.updated"
  22135. ]
  22136. },
  22137. "durable": {
  22138. "type": "object",
  22139. "properties": {
  22140. "aggregateID": {
  22141. "type": "string"
  22142. },
  22143. "seq": {
  22144. "type": "integer",
  22145. "allOf": [
  22146. {
  22147. "minimum": 0
  22148. }
  22149. ]
  22150. },
  22151. "version": {
  22152. "type": "integer",
  22153. "allOf": [
  22154. {
  22155. "minimum": 1
  22156. }
  22157. ]
  22158. }
  22159. },
  22160. "required": [
  22161. "aggregateID",
  22162. "seq",
  22163. "version"
  22164. ],
  22165. "additionalProperties": false
  22166. },
  22167. "location": {
  22168. "$ref": "#/components/schemas/Location.Ref"
  22169. },
  22170. "data": {
  22171. "type": "object",
  22172. "properties": {
  22173. "file": {
  22174. "type": "string"
  22175. },
  22176. "event": {
  22177. "type": "string",
  22178. "enum": [
  22179. "add",
  22180. "change",
  22181. "unlink"
  22182. ]
  22183. }
  22184. },
  22185. "required": [
  22186. "file",
  22187. "event"
  22188. ],
  22189. "additionalProperties": false
  22190. }
  22191. },
  22192. "required": [
  22193. "id",
  22194. "type",
  22195. "data"
  22196. ],
  22197. "additionalProperties": false
  22198. },
  22199. "Pty": {
  22200. "type": "object",
  22201. "properties": {
  22202. "id": {
  22203. "type": "string",
  22204. "allOf": [
  22205. {
  22206. "pattern": "^pty"
  22207. }
  22208. ]
  22209. },
  22210. "title": {
  22211. "type": "string"
  22212. },
  22213. "command": {
  22214. "type": "string"
  22215. },
  22216. "args": {
  22217. "type": "array",
  22218. "items": {
  22219. "type": "string"
  22220. }
  22221. },
  22222. "cwd": {
  22223. "type": "string"
  22224. },
  22225. "status": {
  22226. "type": "string",
  22227. "enum": [
  22228. "running",
  22229. "exited"
  22230. ]
  22231. },
  22232. "pid": {
  22233. "type": "integer",
  22234. "allOf": [
  22235. {
  22236. "minimum": 0
  22237. }
  22238. ]
  22239. },
  22240. "exitCode": {
  22241. "type": "integer",
  22242. "allOf": [
  22243. {
  22244. "minimum": 0
  22245. }
  22246. ]
  22247. }
  22248. },
  22249. "required": [
  22250. "id",
  22251. "title",
  22252. "command",
  22253. "args",
  22254. "cwd",
  22255. "status",
  22256. "pid"
  22257. ],
  22258. "additionalProperties": false
  22259. },
  22260. "pty.created": {
  22261. "type": "object",
  22262. "properties": {
  22263. "id": {
  22264. "type": "string",
  22265. "allOf": [
  22266. {
  22267. "pattern": "^evt_"
  22268. }
  22269. ]
  22270. },
  22271. "metadata": {
  22272. "type": "object"
  22273. },
  22274. "type": {
  22275. "type": "string",
  22276. "enum": [
  22277. "pty.created"
  22278. ]
  22279. },
  22280. "durable": {
  22281. "type": "object",
  22282. "properties": {
  22283. "aggregateID": {
  22284. "type": "string"
  22285. },
  22286. "seq": {
  22287. "type": "integer",
  22288. "allOf": [
  22289. {
  22290. "minimum": 0
  22291. }
  22292. ]
  22293. },
  22294. "version": {
  22295. "type": "integer",
  22296. "allOf": [
  22297. {
  22298. "minimum": 1
  22299. }
  22300. ]
  22301. }
  22302. },
  22303. "required": [
  22304. "aggregateID",
  22305. "seq",
  22306. "version"
  22307. ],
  22308. "additionalProperties": false
  22309. },
  22310. "location": {
  22311. "$ref": "#/components/schemas/Location.Ref"
  22312. },
  22313. "data": {
  22314. "type": "object",
  22315. "properties": {
  22316. "info": {
  22317. "$ref": "#/components/schemas/Pty"
  22318. }
  22319. },
  22320. "required": [
  22321. "info"
  22322. ],
  22323. "additionalProperties": false
  22324. }
  22325. },
  22326. "required": [
  22327. "id",
  22328. "type",
  22329. "data"
  22330. ],
  22331. "additionalProperties": false
  22332. },
  22333. "pty.updated": {
  22334. "type": "object",
  22335. "properties": {
  22336. "id": {
  22337. "type": "string",
  22338. "allOf": [
  22339. {
  22340. "pattern": "^evt_"
  22341. }
  22342. ]
  22343. },
  22344. "metadata": {
  22345. "type": "object"
  22346. },
  22347. "type": {
  22348. "type": "string",
  22349. "enum": [
  22350. "pty.updated"
  22351. ]
  22352. },
  22353. "durable": {
  22354. "type": "object",
  22355. "properties": {
  22356. "aggregateID": {
  22357. "type": "string"
  22358. },
  22359. "seq": {
  22360. "type": "integer",
  22361. "allOf": [
  22362. {
  22363. "minimum": 0
  22364. }
  22365. ]
  22366. },
  22367. "version": {
  22368. "type": "integer",
  22369. "allOf": [
  22370. {
  22371. "minimum": 1
  22372. }
  22373. ]
  22374. }
  22375. },
  22376. "required": [
  22377. "aggregateID",
  22378. "seq",
  22379. "version"
  22380. ],
  22381. "additionalProperties": false
  22382. },
  22383. "location": {
  22384. "$ref": "#/components/schemas/Location.Ref"
  22385. },
  22386. "data": {
  22387. "type": "object",
  22388. "properties": {
  22389. "info": {
  22390. "$ref": "#/components/schemas/Pty"
  22391. }
  22392. },
  22393. "required": [
  22394. "info"
  22395. ],
  22396. "additionalProperties": false
  22397. }
  22398. },
  22399. "required": [
  22400. "id",
  22401. "type",
  22402. "data"
  22403. ],
  22404. "additionalProperties": false
  22405. },
  22406. "pty.exited": {
  22407. "type": "object",
  22408. "properties": {
  22409. "id": {
  22410. "type": "string",
  22411. "allOf": [
  22412. {
  22413. "pattern": "^evt_"
  22414. }
  22415. ]
  22416. },
  22417. "metadata": {
  22418. "type": "object"
  22419. },
  22420. "type": {
  22421. "type": "string",
  22422. "enum": [
  22423. "pty.exited"
  22424. ]
  22425. },
  22426. "durable": {
  22427. "type": "object",
  22428. "properties": {
  22429. "aggregateID": {
  22430. "type": "string"
  22431. },
  22432. "seq": {
  22433. "type": "integer",
  22434. "allOf": [
  22435. {
  22436. "minimum": 0
  22437. }
  22438. ]
  22439. },
  22440. "version": {
  22441. "type": "integer",
  22442. "allOf": [
  22443. {
  22444. "minimum": 1
  22445. }
  22446. ]
  22447. }
  22448. },
  22449. "required": [
  22450. "aggregateID",
  22451. "seq",
  22452. "version"
  22453. ],
  22454. "additionalProperties": false
  22455. },
  22456. "location": {
  22457. "$ref": "#/components/schemas/Location.Ref"
  22458. },
  22459. "data": {
  22460. "type": "object",
  22461. "properties": {
  22462. "id": {
  22463. "type": "string",
  22464. "allOf": [
  22465. {
  22466. "pattern": "^pty"
  22467. }
  22468. ]
  22469. },
  22470. "exitCode": {
  22471. "type": "integer",
  22472. "allOf": [
  22473. {
  22474. "minimum": 0
  22475. }
  22476. ]
  22477. }
  22478. },
  22479. "required": [
  22480. "id",
  22481. "exitCode"
  22482. ],
  22483. "additionalProperties": false
  22484. }
  22485. },
  22486. "required": [
  22487. "id",
  22488. "type",
  22489. "data"
  22490. ],
  22491. "additionalProperties": false
  22492. },
  22493. "pty.deleted": {
  22494. "type": "object",
  22495. "properties": {
  22496. "id": {
  22497. "type": "string",
  22498. "allOf": [
  22499. {
  22500. "pattern": "^evt_"
  22501. }
  22502. ]
  22503. },
  22504. "metadata": {
  22505. "type": "object"
  22506. },
  22507. "type": {
  22508. "type": "string",
  22509. "enum": [
  22510. "pty.deleted"
  22511. ]
  22512. },
  22513. "durable": {
  22514. "type": "object",
  22515. "properties": {
  22516. "aggregateID": {
  22517. "type": "string"
  22518. },
  22519. "seq": {
  22520. "type": "integer",
  22521. "allOf": [
  22522. {
  22523. "minimum": 0
  22524. }
  22525. ]
  22526. },
  22527. "version": {
  22528. "type": "integer",
  22529. "allOf": [
  22530. {
  22531. "minimum": 1
  22532. }
  22533. ]
  22534. }
  22535. },
  22536. "required": [
  22537. "aggregateID",
  22538. "seq",
  22539. "version"
  22540. ],
  22541. "additionalProperties": false
  22542. },
  22543. "location": {
  22544. "$ref": "#/components/schemas/Location.Ref"
  22545. },
  22546. "data": {
  22547. "type": "object",
  22548. "properties": {
  22549. "id": {
  22550. "type": "string",
  22551. "allOf": [
  22552. {
  22553. "pattern": "^pty"
  22554. }
  22555. ]
  22556. }
  22557. },
  22558. "required": [
  22559. "id"
  22560. ],
  22561. "additionalProperties": false
  22562. }
  22563. },
  22564. "required": [
  22565. "id",
  22566. "type",
  22567. "data"
  22568. ],
  22569. "additionalProperties": false
  22570. },
  22571. "Shell": {
  22572. "type": "object",
  22573. "properties": {
  22574. "id": {
  22575. "type": "string",
  22576. "allOf": [
  22577. {
  22578. "pattern": "^sh_"
  22579. }
  22580. ]
  22581. },
  22582. "status": {
  22583. "type": "string",
  22584. "enum": [
  22585. "running",
  22586. "exited",
  22587. "timeout",
  22588. "killed"
  22589. ]
  22590. },
  22591. "command": {
  22592. "type": "string"
  22593. },
  22594. "cwd": {
  22595. "type": "string"
  22596. },
  22597. "shell": {
  22598. "type": "string"
  22599. },
  22600. "file": {
  22601. "type": "string"
  22602. },
  22603. "pid": {
  22604. "type": "integer",
  22605. "allOf": [
  22606. {
  22607. "minimum": 0
  22608. }
  22609. ]
  22610. },
  22611. "exit": {
  22612. "anyOf": [
  22613. {
  22614. "type": "number"
  22615. },
  22616. {
  22617. "type": "string",
  22618. "enum": [
  22619. "NaN"
  22620. ]
  22621. },
  22622. {
  22623. "type": "string",
  22624. "enum": [
  22625. "Infinity"
  22626. ]
  22627. },
  22628. {
  22629. "type": "string",
  22630. "enum": [
  22631. "-Infinity"
  22632. ]
  22633. }
  22634. ]
  22635. },
  22636. "metadata": {
  22637. "type": "object"
  22638. },
  22639. "time": {
  22640. "type": "object",
  22641. "properties": {
  22642. "started": {
  22643. "anyOf": [
  22644. {
  22645. "type": "number"
  22646. },
  22647. {
  22648. "type": "string",
  22649. "enum": [
  22650. "NaN"
  22651. ]
  22652. },
  22653. {
  22654. "type": "string",
  22655. "enum": [
  22656. "Infinity"
  22657. ]
  22658. },
  22659. {
  22660. "type": "string",
  22661. "enum": [
  22662. "-Infinity"
  22663. ]
  22664. }
  22665. ]
  22666. },
  22667. "completed": {
  22668. "anyOf": [
  22669. {
  22670. "type": "number"
  22671. },
  22672. {
  22673. "type": "string",
  22674. "enum": [
  22675. "NaN"
  22676. ]
  22677. },
  22678. {
  22679. "type": "string",
  22680. "enum": [
  22681. "Infinity"
  22682. ]
  22683. },
  22684. {
  22685. "type": "string",
  22686. "enum": [
  22687. "-Infinity"
  22688. ]
  22689. }
  22690. ]
  22691. }
  22692. },
  22693. "required": [
  22694. "started"
  22695. ],
  22696. "additionalProperties": false
  22697. }
  22698. },
  22699. "required": [
  22700. "id",
  22701. "status",
  22702. "command",
  22703. "cwd",
  22704. "shell",
  22705. "file",
  22706. "metadata",
  22707. "time"
  22708. ],
  22709. "additionalProperties": false
  22710. },
  22711. "shell.created": {
  22712. "type": "object",
  22713. "properties": {
  22714. "id": {
  22715. "type": "string",
  22716. "allOf": [
  22717. {
  22718. "pattern": "^evt_"
  22719. }
  22720. ]
  22721. },
  22722. "metadata": {
  22723. "type": "object"
  22724. },
  22725. "type": {
  22726. "type": "string",
  22727. "enum": [
  22728. "shell.created"
  22729. ]
  22730. },
  22731. "durable": {
  22732. "type": "object",
  22733. "properties": {
  22734. "aggregateID": {
  22735. "type": "string"
  22736. },
  22737. "seq": {
  22738. "type": "integer",
  22739. "allOf": [
  22740. {
  22741. "minimum": 0
  22742. }
  22743. ]
  22744. },
  22745. "version": {
  22746. "type": "integer",
  22747. "allOf": [
  22748. {
  22749. "minimum": 1
  22750. }
  22751. ]
  22752. }
  22753. },
  22754. "required": [
  22755. "aggregateID",
  22756. "seq",
  22757. "version"
  22758. ],
  22759. "additionalProperties": false
  22760. },
  22761. "location": {
  22762. "$ref": "#/components/schemas/Location.Ref"
  22763. },
  22764. "data": {
  22765. "type": "object",
  22766. "properties": {
  22767. "info": {
  22768. "$ref": "#/components/schemas/Shell"
  22769. }
  22770. },
  22771. "required": [
  22772. "info"
  22773. ],
  22774. "additionalProperties": false
  22775. }
  22776. },
  22777. "required": [
  22778. "id",
  22779. "type",
  22780. "data"
  22781. ],
  22782. "additionalProperties": false
  22783. },
  22784. "shell.exited": {
  22785. "type": "object",
  22786. "properties": {
  22787. "id": {
  22788. "type": "string",
  22789. "allOf": [
  22790. {
  22791. "pattern": "^evt_"
  22792. }
  22793. ]
  22794. },
  22795. "metadata": {
  22796. "type": "object"
  22797. },
  22798. "type": {
  22799. "type": "string",
  22800. "enum": [
  22801. "shell.exited"
  22802. ]
  22803. },
  22804. "durable": {
  22805. "type": "object",
  22806. "properties": {
  22807. "aggregateID": {
  22808. "type": "string"
  22809. },
  22810. "seq": {
  22811. "type": "integer",
  22812. "allOf": [
  22813. {
  22814. "minimum": 0
  22815. }
  22816. ]
  22817. },
  22818. "version": {
  22819. "type": "integer",
  22820. "allOf": [
  22821. {
  22822. "minimum": 1
  22823. }
  22824. ]
  22825. }
  22826. },
  22827. "required": [
  22828. "aggregateID",
  22829. "seq",
  22830. "version"
  22831. ],
  22832. "additionalProperties": false
  22833. },
  22834. "location": {
  22835. "$ref": "#/components/schemas/Location.Ref"
  22836. },
  22837. "data": {
  22838. "type": "object",
  22839. "properties": {
  22840. "id": {
  22841. "type": "string",
  22842. "allOf": [
  22843. {
  22844. "pattern": "^sh_"
  22845. }
  22846. ]
  22847. },
  22848. "exit": {
  22849. "anyOf": [
  22850. {
  22851. "type": "number"
  22852. },
  22853. {
  22854. "type": "string",
  22855. "enum": [
  22856. "NaN"
  22857. ]
  22858. },
  22859. {
  22860. "type": "string",
  22861. "enum": [
  22862. "Infinity"
  22863. ]
  22864. },
  22865. {
  22866. "type": "string",
  22867. "enum": [
  22868. "-Infinity"
  22869. ]
  22870. }
  22871. ]
  22872. },
  22873. "status": {
  22874. "type": "string",
  22875. "enum": [
  22876. "running",
  22877. "exited",
  22878. "timeout",
  22879. "killed"
  22880. ]
  22881. }
  22882. },
  22883. "required": [
  22884. "id",
  22885. "status"
  22886. ],
  22887. "additionalProperties": false
  22888. }
  22889. },
  22890. "required": [
  22891. "id",
  22892. "type",
  22893. "data"
  22894. ],
  22895. "additionalProperties": false
  22896. },
  22897. "shell.deleted": {
  22898. "type": "object",
  22899. "properties": {
  22900. "id": {
  22901. "type": "string",
  22902. "allOf": [
  22903. {
  22904. "pattern": "^evt_"
  22905. }
  22906. ]
  22907. },
  22908. "metadata": {
  22909. "type": "object"
  22910. },
  22911. "type": {
  22912. "type": "string",
  22913. "enum": [
  22914. "shell.deleted"
  22915. ]
  22916. },
  22917. "durable": {
  22918. "type": "object",
  22919. "properties": {
  22920. "aggregateID": {
  22921. "type": "string"
  22922. },
  22923. "seq": {
  22924. "type": "integer",
  22925. "allOf": [
  22926. {
  22927. "minimum": 0
  22928. }
  22929. ]
  22930. },
  22931. "version": {
  22932. "type": "integer",
  22933. "allOf": [
  22934. {
  22935. "minimum": 1
  22936. }
  22937. ]
  22938. }
  22939. },
  22940. "required": [
  22941. "aggregateID",
  22942. "seq",
  22943. "version"
  22944. ],
  22945. "additionalProperties": false
  22946. },
  22947. "location": {
  22948. "$ref": "#/components/schemas/Location.Ref"
  22949. },
  22950. "data": {
  22951. "type": "object",
  22952. "properties": {
  22953. "id": {
  22954. "type": "string",
  22955. "allOf": [
  22956. {
  22957. "pattern": "^sh_"
  22958. }
  22959. ]
  22960. }
  22961. },
  22962. "required": [
  22963. "id"
  22964. ],
  22965. "additionalProperties": false
  22966. }
  22967. },
  22968. "required": [
  22969. "id",
  22970. "type",
  22971. "data"
  22972. ],
  22973. "additionalProperties": false
  22974. },
  22975. "QuestionV2.Option": {
  22976. "type": "object",
  22977. "properties": {
  22978. "label": {
  22979. "type": "string",
  22980. "description": "Display text (1-5 words, concise)"
  22981. },
  22982. "description": {
  22983. "type": "string",
  22984. "description": "Explanation of choice"
  22985. }
  22986. },
  22987. "required": [
  22988. "label",
  22989. "description"
  22990. ],
  22991. "additionalProperties": false
  22992. },
  22993. "QuestionV2.Info": {
  22994. "type": "object",
  22995. "properties": {
  22996. "question": {
  22997. "type": "string",
  22998. "description": "Complete question"
  22999. },
  23000. "header": {
  23001. "type": "string",
  23002. "description": "Very short label (max 30 chars)"
  23003. },
  23004. "options": {
  23005. "type": "array",
  23006. "items": {
  23007. "$ref": "#/components/schemas/QuestionV2.Option"
  23008. },
  23009. "description": "Available choices"
  23010. },
  23011. "multiple": {
  23012. "type": "boolean"
  23013. },
  23014. "custom": {
  23015. "type": "boolean"
  23016. }
  23017. },
  23018. "required": [
  23019. "question",
  23020. "header",
  23021. "options"
  23022. ],
  23023. "additionalProperties": false
  23024. },
  23025. "QuestionV2.Tool": {
  23026. "type": "object",
  23027. "properties": {
  23028. "messageID": {
  23029. "type": "string"
  23030. },
  23031. "callID": {
  23032. "type": "string"
  23033. }
  23034. },
  23035. "required": [
  23036. "messageID",
  23037. "callID"
  23038. ],
  23039. "additionalProperties": false
  23040. },
  23041. "question.v2.asked": {
  23042. "type": "object",
  23043. "properties": {
  23044. "id": {
  23045. "type": "string",
  23046. "allOf": [
  23047. {
  23048. "pattern": "^evt_"
  23049. }
  23050. ]
  23051. },
  23052. "metadata": {
  23053. "type": "object"
  23054. },
  23055. "type": {
  23056. "type": "string",
  23057. "enum": [
  23058. "question.v2.asked"
  23059. ]
  23060. },
  23061. "durable": {
  23062. "type": "object",
  23063. "properties": {
  23064. "aggregateID": {
  23065. "type": "string"
  23066. },
  23067. "seq": {
  23068. "type": "integer",
  23069. "allOf": [
  23070. {
  23071. "minimum": 0
  23072. }
  23073. ]
  23074. },
  23075. "version": {
  23076. "type": "integer",
  23077. "allOf": [
  23078. {
  23079. "minimum": 1
  23080. }
  23081. ]
  23082. }
  23083. },
  23084. "required": [
  23085. "aggregateID",
  23086. "seq",
  23087. "version"
  23088. ],
  23089. "additionalProperties": false
  23090. },
  23091. "location": {
  23092. "$ref": "#/components/schemas/Location.Ref"
  23093. },
  23094. "data": {
  23095. "type": "object",
  23096. "properties": {
  23097. "id": {
  23098. "type": "string",
  23099. "allOf": [
  23100. {
  23101. "pattern": "^que"
  23102. }
  23103. ]
  23104. },
  23105. "sessionID": {
  23106. "type": "string",
  23107. "allOf": [
  23108. {
  23109. "pattern": "^ses"
  23110. }
  23111. ]
  23112. },
  23113. "questions": {
  23114. "type": "array",
  23115. "items": {
  23116. "$ref": "#/components/schemas/QuestionV2.Info"
  23117. },
  23118. "description": "Questions to ask"
  23119. },
  23120. "tool": {
  23121. "$ref": "#/components/schemas/QuestionV2.Tool"
  23122. }
  23123. },
  23124. "required": [
  23125. "id",
  23126. "sessionID",
  23127. "questions"
  23128. ],
  23129. "additionalProperties": false
  23130. }
  23131. },
  23132. "required": [
  23133. "id",
  23134. "type",
  23135. "data"
  23136. ],
  23137. "additionalProperties": false
  23138. },
  23139. "QuestionV2.Answer": {
  23140. "type": "array",
  23141. "items": {
  23142. "type": "string"
  23143. }
  23144. },
  23145. "question.v2.replied": {
  23146. "type": "object",
  23147. "properties": {
  23148. "id": {
  23149. "type": "string",
  23150. "allOf": [
  23151. {
  23152. "pattern": "^evt_"
  23153. }
  23154. ]
  23155. },
  23156. "metadata": {
  23157. "type": "object"
  23158. },
  23159. "type": {
  23160. "type": "string",
  23161. "enum": [
  23162. "question.v2.replied"
  23163. ]
  23164. },
  23165. "durable": {
  23166. "type": "object",
  23167. "properties": {
  23168. "aggregateID": {
  23169. "type": "string"
  23170. },
  23171. "seq": {
  23172. "type": "integer",
  23173. "allOf": [
  23174. {
  23175. "minimum": 0
  23176. }
  23177. ]
  23178. },
  23179. "version": {
  23180. "type": "integer",
  23181. "allOf": [
  23182. {
  23183. "minimum": 1
  23184. }
  23185. ]
  23186. }
  23187. },
  23188. "required": [
  23189. "aggregateID",
  23190. "seq",
  23191. "version"
  23192. ],
  23193. "additionalProperties": false
  23194. },
  23195. "location": {
  23196. "$ref": "#/components/schemas/Location.Ref"
  23197. },
  23198. "data": {
  23199. "type": "object",
  23200. "properties": {
  23201. "sessionID": {
  23202. "type": "string",
  23203. "allOf": [
  23204. {
  23205. "pattern": "^ses"
  23206. }
  23207. ]
  23208. },
  23209. "requestID": {
  23210. "type": "string",
  23211. "allOf": [
  23212. {
  23213. "pattern": "^que"
  23214. }
  23215. ]
  23216. },
  23217. "answers": {
  23218. "type": "array",
  23219. "items": {
  23220. "$ref": "#/components/schemas/QuestionV2.Answer"
  23221. }
  23222. }
  23223. },
  23224. "required": [
  23225. "sessionID",
  23226. "requestID",
  23227. "answers"
  23228. ],
  23229. "additionalProperties": false
  23230. }
  23231. },
  23232. "required": [
  23233. "id",
  23234. "type",
  23235. "data"
  23236. ],
  23237. "additionalProperties": false
  23238. },
  23239. "question.v2.rejected": {
  23240. "type": "object",
  23241. "properties": {
  23242. "id": {
  23243. "type": "string",
  23244. "allOf": [
  23245. {
  23246. "pattern": "^evt_"
  23247. }
  23248. ]
  23249. },
  23250. "metadata": {
  23251. "type": "object"
  23252. },
  23253. "type": {
  23254. "type": "string",
  23255. "enum": [
  23256. "question.v2.rejected"
  23257. ]
  23258. },
  23259. "durable": {
  23260. "type": "object",
  23261. "properties": {
  23262. "aggregateID": {
  23263. "type": "string"
  23264. },
  23265. "seq": {
  23266. "type": "integer",
  23267. "allOf": [
  23268. {
  23269. "minimum": 0
  23270. }
  23271. ]
  23272. },
  23273. "version": {
  23274. "type": "integer",
  23275. "allOf": [
  23276. {
  23277. "minimum": 1
  23278. }
  23279. ]
  23280. }
  23281. },
  23282. "required": [
  23283. "aggregateID",
  23284. "seq",
  23285. "version"
  23286. ],
  23287. "additionalProperties": false
  23288. },
  23289. "location": {
  23290. "$ref": "#/components/schemas/Location.Ref"
  23291. },
  23292. "data": {
  23293. "type": "object",
  23294. "properties": {
  23295. "sessionID": {
  23296. "type": "string",
  23297. "allOf": [
  23298. {
  23299. "pattern": "^ses"
  23300. }
  23301. ]
  23302. },
  23303. "requestID": {
  23304. "type": "string",
  23305. "allOf": [
  23306. {
  23307. "pattern": "^que"
  23308. }
  23309. ]
  23310. }
  23311. },
  23312. "required": [
  23313. "sessionID",
  23314. "requestID"
  23315. ],
  23316. "additionalProperties": false
  23317. }
  23318. },
  23319. "required": [
  23320. "id",
  23321. "type",
  23322. "data"
  23323. ],
  23324. "additionalProperties": false
  23325. },
  23326. "Form.Metadata1": {
  23327. "type": "object"
  23328. },
  23329. "Form.When1": {
  23330. "type": "object",
  23331. "properties": {
  23332. "key": {
  23333. "type": "string"
  23334. },
  23335. "op": {
  23336. "type": "string",
  23337. "enum": [
  23338. "eq",
  23339. "neq"
  23340. ]
  23341. },
  23342. "value": {
  23343. "anyOf": [
  23344. {
  23345. "type": "string"
  23346. },
  23347. {
  23348. "anyOf": [
  23349. {
  23350. "type": "number"
  23351. },
  23352. {
  23353. "type": "string",
  23354. "enum": [
  23355. "NaN"
  23356. ]
  23357. },
  23358. {
  23359. "type": "string",
  23360. "enum": [
  23361. "Infinity"
  23362. ]
  23363. },
  23364. {
  23365. "type": "string",
  23366. "enum": [
  23367. "-Infinity"
  23368. ]
  23369. }
  23370. ]
  23371. },
  23372. {
  23373. "type": "boolean"
  23374. }
  23375. ]
  23376. }
  23377. },
  23378. "required": [
  23379. "key",
  23380. "op",
  23381. "value"
  23382. ],
  23383. "additionalProperties": false
  23384. },
  23385. "Form.StringField1": {
  23386. "type": "object",
  23387. "properties": {
  23388. "key": {
  23389. "type": "string"
  23390. },
  23391. "title": {
  23392. "type": "string"
  23393. },
  23394. "description": {
  23395. "type": "string"
  23396. },
  23397. "required": {
  23398. "type": "boolean"
  23399. },
  23400. "when": {
  23401. "type": "array",
  23402. "items": {
  23403. "$ref": "#/components/schemas/Form.When1"
  23404. }
  23405. },
  23406. "type": {
  23407. "type": "string",
  23408. "enum": [
  23409. "string"
  23410. ]
  23411. },
  23412. "format": {
  23413. "type": "string",
  23414. "enum": [
  23415. "email",
  23416. "uri",
  23417. "date",
  23418. "date-time"
  23419. ]
  23420. },
  23421. "minLength": {
  23422. "type": "integer",
  23423. "allOf": [
  23424. {
  23425. "minimum": 0
  23426. }
  23427. ]
  23428. },
  23429. "maxLength": {
  23430. "type": "integer",
  23431. "allOf": [
  23432. {
  23433. "minimum": 0
  23434. }
  23435. ]
  23436. },
  23437. "pattern": {
  23438. "type": "string"
  23439. },
  23440. "placeholder": {
  23441. "type": "string"
  23442. },
  23443. "default": {
  23444. "type": "string"
  23445. },
  23446. "options": {
  23447. "type": "array",
  23448. "items": {
  23449. "$ref": "#/components/schemas/Form.Option"
  23450. }
  23451. },
  23452. "custom": {
  23453. "type": "boolean"
  23454. }
  23455. },
  23456. "required": [
  23457. "key",
  23458. "type"
  23459. ],
  23460. "additionalProperties": false
  23461. },
  23462. "Form.NumberField1": {
  23463. "type": "object",
  23464. "properties": {
  23465. "key": {
  23466. "type": "string"
  23467. },
  23468. "title": {
  23469. "type": "string"
  23470. },
  23471. "description": {
  23472. "type": "string"
  23473. },
  23474. "required": {
  23475. "type": "boolean"
  23476. },
  23477. "when": {
  23478. "type": "array",
  23479. "items": {
  23480. "$ref": "#/components/schemas/Form.When1"
  23481. }
  23482. },
  23483. "type": {
  23484. "type": "string",
  23485. "enum": [
  23486. "number"
  23487. ]
  23488. },
  23489. "minimum": {
  23490. "anyOf": [
  23491. {
  23492. "type": "number"
  23493. },
  23494. {
  23495. "type": "string",
  23496. "enum": [
  23497. "NaN"
  23498. ]
  23499. },
  23500. {
  23501. "type": "string",
  23502. "enum": [
  23503. "Infinity"
  23504. ]
  23505. },
  23506. {
  23507. "type": "string",
  23508. "enum": [
  23509. "-Infinity"
  23510. ]
  23511. }
  23512. ]
  23513. },
  23514. "maximum": {
  23515. "anyOf": [
  23516. {
  23517. "type": "number"
  23518. },
  23519. {
  23520. "type": "string",
  23521. "enum": [
  23522. "NaN"
  23523. ]
  23524. },
  23525. {
  23526. "type": "string",
  23527. "enum": [
  23528. "Infinity"
  23529. ]
  23530. },
  23531. {
  23532. "type": "string",
  23533. "enum": [
  23534. "-Infinity"
  23535. ]
  23536. }
  23537. ]
  23538. },
  23539. "default": {
  23540. "anyOf": [
  23541. {
  23542. "type": "number"
  23543. },
  23544. {
  23545. "type": "string",
  23546. "enum": [
  23547. "NaN"
  23548. ]
  23549. },
  23550. {
  23551. "type": "string",
  23552. "enum": [
  23553. "Infinity"
  23554. ]
  23555. },
  23556. {
  23557. "type": "string",
  23558. "enum": [
  23559. "-Infinity"
  23560. ]
  23561. }
  23562. ]
  23563. }
  23564. },
  23565. "required": [
  23566. "key",
  23567. "type"
  23568. ],
  23569. "additionalProperties": false
  23570. },
  23571. "Form.IntegerField1": {
  23572. "type": "object",
  23573. "properties": {
  23574. "key": {
  23575. "type": "string"
  23576. },
  23577. "title": {
  23578. "type": "string"
  23579. },
  23580. "description": {
  23581. "type": "string"
  23582. },
  23583. "required": {
  23584. "type": "boolean"
  23585. },
  23586. "when": {
  23587. "type": "array",
  23588. "items": {
  23589. "$ref": "#/components/schemas/Form.When1"
  23590. }
  23591. },
  23592. "type": {
  23593. "type": "string",
  23594. "enum": [
  23595. "integer"
  23596. ]
  23597. },
  23598. "minimum": {
  23599. "anyOf": [
  23600. {
  23601. "type": "number"
  23602. },
  23603. {
  23604. "type": "string",
  23605. "enum": [
  23606. "NaN"
  23607. ]
  23608. },
  23609. {
  23610. "type": "string",
  23611. "enum": [
  23612. "Infinity"
  23613. ]
  23614. },
  23615. {
  23616. "type": "string",
  23617. "enum": [
  23618. "-Infinity"
  23619. ]
  23620. }
  23621. ]
  23622. },
  23623. "maximum": {
  23624. "anyOf": [
  23625. {
  23626. "type": "number"
  23627. },
  23628. {
  23629. "type": "string",
  23630. "enum": [
  23631. "NaN"
  23632. ]
  23633. },
  23634. {
  23635. "type": "string",
  23636. "enum": [
  23637. "Infinity"
  23638. ]
  23639. },
  23640. {
  23641. "type": "string",
  23642. "enum": [
  23643. "-Infinity"
  23644. ]
  23645. }
  23646. ]
  23647. },
  23648. "default": {
  23649. "anyOf": [
  23650. {
  23651. "type": "number"
  23652. },
  23653. {
  23654. "type": "string",
  23655. "enum": [
  23656. "NaN"
  23657. ]
  23658. },
  23659. {
  23660. "type": "string",
  23661. "enum": [
  23662. "Infinity"
  23663. ]
  23664. },
  23665. {
  23666. "type": "string",
  23667. "enum": [
  23668. "-Infinity"
  23669. ]
  23670. }
  23671. ]
  23672. }
  23673. },
  23674. "required": [
  23675. "key",
  23676. "type"
  23677. ],
  23678. "additionalProperties": false
  23679. },
  23680. "Form.BooleanField1": {
  23681. "type": "object",
  23682. "properties": {
  23683. "key": {
  23684. "type": "string"
  23685. },
  23686. "title": {
  23687. "type": "string"
  23688. },
  23689. "description": {
  23690. "type": "string"
  23691. },
  23692. "required": {
  23693. "type": "boolean"
  23694. },
  23695. "when": {
  23696. "type": "array",
  23697. "items": {
  23698. "$ref": "#/components/schemas/Form.When1"
  23699. }
  23700. },
  23701. "type": {
  23702. "type": "string",
  23703. "enum": [
  23704. "boolean"
  23705. ]
  23706. },
  23707. "default": {
  23708. "type": "boolean"
  23709. }
  23710. },
  23711. "required": [
  23712. "key",
  23713. "type"
  23714. ],
  23715. "additionalProperties": false
  23716. },
  23717. "Form.MultiselectField1": {
  23718. "type": "object",
  23719. "properties": {
  23720. "key": {
  23721. "type": "string"
  23722. },
  23723. "title": {
  23724. "type": "string"
  23725. },
  23726. "description": {
  23727. "type": "string"
  23728. },
  23729. "required": {
  23730. "type": "boolean"
  23731. },
  23732. "when": {
  23733. "type": "array",
  23734. "items": {
  23735. "$ref": "#/components/schemas/Form.When1"
  23736. }
  23737. },
  23738. "type": {
  23739. "type": "string",
  23740. "enum": [
  23741. "multiselect"
  23742. ]
  23743. },
  23744. "options": {
  23745. "type": "array",
  23746. "items": {
  23747. "$ref": "#/components/schemas/Form.Option"
  23748. }
  23749. },
  23750. "minItems": {
  23751. "type": "integer",
  23752. "allOf": [
  23753. {
  23754. "minimum": 0
  23755. }
  23756. ]
  23757. },
  23758. "maxItems": {
  23759. "type": "integer",
  23760. "allOf": [
  23761. {
  23762. "minimum": 0
  23763. }
  23764. ]
  23765. },
  23766. "custom": {
  23767. "type": "boolean"
  23768. },
  23769. "default": {
  23770. "type": "array",
  23771. "items": {
  23772. "type": "string"
  23773. }
  23774. }
  23775. },
  23776. "required": [
  23777. "key",
  23778. "type",
  23779. "options"
  23780. ],
  23781. "additionalProperties": false
  23782. },
  23783. "Form.FormInfo1": {
  23784. "type": "object",
  23785. "properties": {
  23786. "id": {
  23787. "type": "string",
  23788. "allOf": [
  23789. {
  23790. "pattern": "^frm_"
  23791. }
  23792. ]
  23793. },
  23794. "sessionID": {
  23795. "type": "string"
  23796. },
  23797. "title": {
  23798. "type": "string"
  23799. },
  23800. "metadata": {
  23801. "$ref": "#/components/schemas/Form.Metadata1"
  23802. },
  23803. "mode": {
  23804. "type": "string",
  23805. "enum": [
  23806. "form"
  23807. ]
  23808. },
  23809. "fields": {
  23810. "type": "array",
  23811. "items": {
  23812. "anyOf": [
  23813. {
  23814. "$ref": "#/components/schemas/Form.StringField1"
  23815. },
  23816. {
  23817. "$ref": "#/components/schemas/Form.NumberField1"
  23818. },
  23819. {
  23820. "$ref": "#/components/schemas/Form.IntegerField1"
  23821. },
  23822. {
  23823. "$ref": "#/components/schemas/Form.BooleanField1"
  23824. },
  23825. {
  23826. "$ref": "#/components/schemas/Form.MultiselectField1"
  23827. }
  23828. ]
  23829. }
  23830. }
  23831. },
  23832. "required": [
  23833. "id",
  23834. "sessionID",
  23835. "mode",
  23836. "fields"
  23837. ],
  23838. "additionalProperties": false
  23839. },
  23840. "Form.UrlInfo1": {
  23841. "type": "object",
  23842. "properties": {
  23843. "id": {
  23844. "type": "string",
  23845. "allOf": [
  23846. {
  23847. "pattern": "^frm_"
  23848. }
  23849. ]
  23850. },
  23851. "sessionID": {
  23852. "type": "string"
  23853. },
  23854. "title": {
  23855. "type": "string"
  23856. },
  23857. "metadata": {
  23858. "$ref": "#/components/schemas/Form.Metadata1"
  23859. },
  23860. "mode": {
  23861. "type": "string",
  23862. "enum": [
  23863. "url"
  23864. ]
  23865. },
  23866. "url": {
  23867. "type": "string"
  23868. }
  23869. },
  23870. "required": [
  23871. "id",
  23872. "sessionID",
  23873. "mode",
  23874. "url"
  23875. ],
  23876. "additionalProperties": false
  23877. },
  23878. "form.created": {
  23879. "type": "object",
  23880. "properties": {
  23881. "id": {
  23882. "type": "string",
  23883. "allOf": [
  23884. {
  23885. "pattern": "^evt_"
  23886. }
  23887. ]
  23888. },
  23889. "metadata": {
  23890. "type": "object"
  23891. },
  23892. "type": {
  23893. "type": "string",
  23894. "enum": [
  23895. "form.created"
  23896. ]
  23897. },
  23898. "durable": {
  23899. "type": "object",
  23900. "properties": {
  23901. "aggregateID": {
  23902. "type": "string"
  23903. },
  23904. "seq": {
  23905. "type": "integer",
  23906. "allOf": [
  23907. {
  23908. "minimum": 0
  23909. }
  23910. ]
  23911. },
  23912. "version": {
  23913. "type": "integer",
  23914. "allOf": [
  23915. {
  23916. "minimum": 1
  23917. }
  23918. ]
  23919. }
  23920. },
  23921. "required": [
  23922. "aggregateID",
  23923. "seq",
  23924. "version"
  23925. ],
  23926. "additionalProperties": false
  23927. },
  23928. "location": {
  23929. "$ref": "#/components/schemas/Location.Ref"
  23930. },
  23931. "data": {
  23932. "type": "object",
  23933. "properties": {
  23934. "form": {
  23935. "anyOf": [
  23936. {
  23937. "$ref": "#/components/schemas/Form.FormInfo1"
  23938. },
  23939. {
  23940. "$ref": "#/components/schemas/Form.UrlInfo1"
  23941. }
  23942. ]
  23943. }
  23944. },
  23945. "required": [
  23946. "form"
  23947. ],
  23948. "additionalProperties": false
  23949. }
  23950. },
  23951. "required": [
  23952. "id",
  23953. "type",
  23954. "data"
  23955. ],
  23956. "additionalProperties": false
  23957. },
  23958. "Form.Value1": {
  23959. "anyOf": [
  23960. {
  23961. "type": "string"
  23962. },
  23963. {
  23964. "anyOf": [
  23965. {
  23966. "type": "number"
  23967. },
  23968. {
  23969. "type": "string",
  23970. "enum": [
  23971. "NaN"
  23972. ]
  23973. },
  23974. {
  23975. "type": "string",
  23976. "enum": [
  23977. "Infinity"
  23978. ]
  23979. },
  23980. {
  23981. "type": "string",
  23982. "enum": [
  23983. "-Infinity"
  23984. ]
  23985. }
  23986. ]
  23987. },
  23988. {
  23989. "type": "boolean"
  23990. },
  23991. {
  23992. "type": "array",
  23993. "items": {
  23994. "type": "string"
  23995. }
  23996. }
  23997. ]
  23998. },
  23999. "Form.Answer1": {
  24000. "type": "object",
  24001. "additionalProperties": {
  24002. "$ref": "#/components/schemas/Form.Value1"
  24003. }
  24004. },
  24005. "form.replied": {
  24006. "type": "object",
  24007. "properties": {
  24008. "id": {
  24009. "type": "string",
  24010. "allOf": [
  24011. {
  24012. "pattern": "^evt_"
  24013. }
  24014. ]
  24015. },
  24016. "metadata": {
  24017. "type": "object"
  24018. },
  24019. "type": {
  24020. "type": "string",
  24021. "enum": [
  24022. "form.replied"
  24023. ]
  24024. },
  24025. "durable": {
  24026. "type": "object",
  24027. "properties": {
  24028. "aggregateID": {
  24029. "type": "string"
  24030. },
  24031. "seq": {
  24032. "type": "integer",
  24033. "allOf": [
  24034. {
  24035. "minimum": 0
  24036. }
  24037. ]
  24038. },
  24039. "version": {
  24040. "type": "integer",
  24041. "allOf": [
  24042. {
  24043. "minimum": 1
  24044. }
  24045. ]
  24046. }
  24047. },
  24048. "required": [
  24049. "aggregateID",
  24050. "seq",
  24051. "version"
  24052. ],
  24053. "additionalProperties": false
  24054. },
  24055. "location": {
  24056. "$ref": "#/components/schemas/Location.Ref"
  24057. },
  24058. "data": {
  24059. "type": "object",
  24060. "properties": {
  24061. "id": {
  24062. "type": "string",
  24063. "allOf": [
  24064. {
  24065. "pattern": "^frm_"
  24066. }
  24067. ]
  24068. },
  24069. "sessionID": {
  24070. "type": "string"
  24071. },
  24072. "answer": {
  24073. "$ref": "#/components/schemas/Form.Answer1"
  24074. }
  24075. },
  24076. "required": [
  24077. "id",
  24078. "sessionID",
  24079. "answer"
  24080. ],
  24081. "additionalProperties": false
  24082. }
  24083. },
  24084. "required": [
  24085. "id",
  24086. "type",
  24087. "data"
  24088. ],
  24089. "additionalProperties": false
  24090. },
  24091. "form.cancelled": {
  24092. "type": "object",
  24093. "properties": {
  24094. "id": {
  24095. "type": "string",
  24096. "allOf": [
  24097. {
  24098. "pattern": "^evt_"
  24099. }
  24100. ]
  24101. },
  24102. "metadata": {
  24103. "type": "object"
  24104. },
  24105. "type": {
  24106. "type": "string",
  24107. "enum": [
  24108. "form.cancelled"
  24109. ]
  24110. },
  24111. "durable": {
  24112. "type": "object",
  24113. "properties": {
  24114. "aggregateID": {
  24115. "type": "string"
  24116. },
  24117. "seq": {
  24118. "type": "integer",
  24119. "allOf": [
  24120. {
  24121. "minimum": 0
  24122. }
  24123. ]
  24124. },
  24125. "version": {
  24126. "type": "integer",
  24127. "allOf": [
  24128. {
  24129. "minimum": 1
  24130. }
  24131. ]
  24132. }
  24133. },
  24134. "required": [
  24135. "aggregateID",
  24136. "seq",
  24137. "version"
  24138. ],
  24139. "additionalProperties": false
  24140. },
  24141. "location": {
  24142. "$ref": "#/components/schemas/Location.Ref"
  24143. },
  24144. "data": {
  24145. "type": "object",
  24146. "properties": {
  24147. "id": {
  24148. "type": "string",
  24149. "allOf": [
  24150. {
  24151. "pattern": "^frm_"
  24152. }
  24153. ]
  24154. },
  24155. "sessionID": {
  24156. "type": "string"
  24157. }
  24158. },
  24159. "required": [
  24160. "id",
  24161. "sessionID"
  24162. ],
  24163. "additionalProperties": false
  24164. }
  24165. },
  24166. "required": [
  24167. "id",
  24168. "type",
  24169. "data"
  24170. ],
  24171. "additionalProperties": false
  24172. },
  24173. "Todo": {
  24174. "type": "object",
  24175. "properties": {
  24176. "content": {
  24177. "type": "string",
  24178. "description": "Brief description of the task"
  24179. },
  24180. "status": {
  24181. "type": "string",
  24182. "description": "Current status of the task: pending, in_progress, completed, cancelled"
  24183. },
  24184. "priority": {
  24185. "type": "string",
  24186. "description": "Priority level of the task: high, medium, low"
  24187. }
  24188. },
  24189. "required": [
  24190. "content",
  24191. "status",
  24192. "priority"
  24193. ],
  24194. "additionalProperties": false
  24195. },
  24196. "todo.updated": {
  24197. "type": "object",
  24198. "properties": {
  24199. "id": {
  24200. "type": "string",
  24201. "allOf": [
  24202. {
  24203. "pattern": "^evt_"
  24204. }
  24205. ]
  24206. },
  24207. "metadata": {
  24208. "type": "object"
  24209. },
  24210. "type": {
  24211. "type": "string",
  24212. "enum": [
  24213. "todo.updated"
  24214. ]
  24215. },
  24216. "durable": {
  24217. "type": "object",
  24218. "properties": {
  24219. "aggregateID": {
  24220. "type": "string"
  24221. },
  24222. "seq": {
  24223. "type": "integer",
  24224. "allOf": [
  24225. {
  24226. "minimum": 0
  24227. }
  24228. ]
  24229. },
  24230. "version": {
  24231. "type": "integer",
  24232. "allOf": [
  24233. {
  24234. "minimum": 1
  24235. }
  24236. ]
  24237. }
  24238. },
  24239. "required": [
  24240. "aggregateID",
  24241. "seq",
  24242. "version"
  24243. ],
  24244. "additionalProperties": false
  24245. },
  24246. "location": {
  24247. "$ref": "#/components/schemas/Location.Ref"
  24248. },
  24249. "data": {
  24250. "type": "object",
  24251. "properties": {
  24252. "sessionID": {
  24253. "type": "string",
  24254. "allOf": [
  24255. {
  24256. "pattern": "^ses"
  24257. }
  24258. ]
  24259. },
  24260. "todos": {
  24261. "type": "array",
  24262. "items": {
  24263. "$ref": "#/components/schemas/Todo"
  24264. }
  24265. }
  24266. },
  24267. "required": [
  24268. "sessionID",
  24269. "todos"
  24270. ],
  24271. "additionalProperties": false
  24272. }
  24273. },
  24274. "required": [
  24275. "id",
  24276. "type",
  24277. "data"
  24278. ],
  24279. "additionalProperties": false
  24280. },
  24281. "SessionStatus": {
  24282. "anyOf": [
  24283. {
  24284. "type": "object",
  24285. "properties": {
  24286. "type": {
  24287. "type": "string",
  24288. "enum": [
  24289. "idle"
  24290. ]
  24291. }
  24292. },
  24293. "required": [
  24294. "type"
  24295. ],
  24296. "additionalProperties": false
  24297. },
  24298. {
  24299. "type": "object",
  24300. "properties": {
  24301. "type": {
  24302. "type": "string",
  24303. "enum": [
  24304. "retry"
  24305. ]
  24306. },
  24307. "attempt": {
  24308. "type": "integer",
  24309. "allOf": [
  24310. {
  24311. "minimum": 0
  24312. }
  24313. ]
  24314. },
  24315. "message": {
  24316. "type": "string"
  24317. },
  24318. "action": {
  24319. "type": "object",
  24320. "properties": {
  24321. "reason": {
  24322. "type": "string"
  24323. },
  24324. "provider": {
  24325. "type": "string"
  24326. },
  24327. "title": {
  24328. "type": "string"
  24329. },
  24330. "message": {
  24331. "type": "string"
  24332. },
  24333. "label": {
  24334. "type": "string"
  24335. },
  24336. "link": {
  24337. "type": "string"
  24338. }
  24339. },
  24340. "required": [
  24341. "reason",
  24342. "provider",
  24343. "title",
  24344. "message",
  24345. "label"
  24346. ],
  24347. "additionalProperties": false
  24348. },
  24349. "next": {
  24350. "type": "integer",
  24351. "allOf": [
  24352. {
  24353. "minimum": 0
  24354. }
  24355. ]
  24356. }
  24357. },
  24358. "required": [
  24359. "type",
  24360. "attempt",
  24361. "message",
  24362. "next"
  24363. ],
  24364. "additionalProperties": false
  24365. },
  24366. {
  24367. "type": "object",
  24368. "properties": {
  24369. "type": {
  24370. "type": "string",
  24371. "enum": [
  24372. "busy"
  24373. ]
  24374. }
  24375. },
  24376. "required": [
  24377. "type"
  24378. ],
  24379. "additionalProperties": false
  24380. }
  24381. ]
  24382. },
  24383. "session.status": {
  24384. "type": "object",
  24385. "properties": {
  24386. "id": {
  24387. "type": "string",
  24388. "allOf": [
  24389. {
  24390. "pattern": "^evt_"
  24391. }
  24392. ]
  24393. },
  24394. "metadata": {
  24395. "type": "object"
  24396. },
  24397. "type": {
  24398. "type": "string",
  24399. "enum": [
  24400. "session.status"
  24401. ]
  24402. },
  24403. "durable": {
  24404. "type": "object",
  24405. "properties": {
  24406. "aggregateID": {
  24407. "type": "string"
  24408. },
  24409. "seq": {
  24410. "type": "integer",
  24411. "allOf": [
  24412. {
  24413. "minimum": 0
  24414. }
  24415. ]
  24416. },
  24417. "version": {
  24418. "type": "integer",
  24419. "allOf": [
  24420. {
  24421. "minimum": 1
  24422. }
  24423. ]
  24424. }
  24425. },
  24426. "required": [
  24427. "aggregateID",
  24428. "seq",
  24429. "version"
  24430. ],
  24431. "additionalProperties": false
  24432. },
  24433. "location": {
  24434. "$ref": "#/components/schemas/Location.Ref"
  24435. },
  24436. "data": {
  24437. "type": "object",
  24438. "properties": {
  24439. "sessionID": {
  24440. "type": "string",
  24441. "allOf": [
  24442. {
  24443. "pattern": "^ses"
  24444. }
  24445. ]
  24446. },
  24447. "status": {
  24448. "$ref": "#/components/schemas/SessionStatus"
  24449. }
  24450. },
  24451. "required": [
  24452. "sessionID",
  24453. "status"
  24454. ],
  24455. "additionalProperties": false
  24456. }
  24457. },
  24458. "required": [
  24459. "id",
  24460. "type",
  24461. "data"
  24462. ],
  24463. "additionalProperties": false
  24464. },
  24465. "session.idle": {
  24466. "type": "object",
  24467. "properties": {
  24468. "id": {
  24469. "type": "string",
  24470. "allOf": [
  24471. {
  24472. "pattern": "^evt_"
  24473. }
  24474. ]
  24475. },
  24476. "metadata": {
  24477. "type": "object"
  24478. },
  24479. "type": {
  24480. "type": "string",
  24481. "enum": [
  24482. "session.idle"
  24483. ]
  24484. },
  24485. "durable": {
  24486. "type": "object",
  24487. "properties": {
  24488. "aggregateID": {
  24489. "type": "string"
  24490. },
  24491. "seq": {
  24492. "type": "integer",
  24493. "allOf": [
  24494. {
  24495. "minimum": 0
  24496. }
  24497. ]
  24498. },
  24499. "version": {
  24500. "type": "integer",
  24501. "allOf": [
  24502. {
  24503. "minimum": 1
  24504. }
  24505. ]
  24506. }
  24507. },
  24508. "required": [
  24509. "aggregateID",
  24510. "seq",
  24511. "version"
  24512. ],
  24513. "additionalProperties": false
  24514. },
  24515. "location": {
  24516. "$ref": "#/components/schemas/Location.Ref"
  24517. },
  24518. "data": {
  24519. "type": "object",
  24520. "properties": {
  24521. "sessionID": {
  24522. "type": "string",
  24523. "allOf": [
  24524. {
  24525. "pattern": "^ses"
  24526. }
  24527. ]
  24528. }
  24529. },
  24530. "required": [
  24531. "sessionID"
  24532. ],
  24533. "additionalProperties": false
  24534. }
  24535. },
  24536. "required": [
  24537. "id",
  24538. "type",
  24539. "data"
  24540. ],
  24541. "additionalProperties": false
  24542. },
  24543. "tui.prompt.append": {
  24544. "type": "object",
  24545. "properties": {
  24546. "id": {
  24547. "type": "string",
  24548. "allOf": [
  24549. {
  24550. "pattern": "^evt_"
  24551. }
  24552. ]
  24553. },
  24554. "metadata": {
  24555. "type": "object"
  24556. },
  24557. "type": {
  24558. "type": "string",
  24559. "enum": [
  24560. "tui.prompt.append"
  24561. ]
  24562. },
  24563. "durable": {
  24564. "type": "object",
  24565. "properties": {
  24566. "aggregateID": {
  24567. "type": "string"
  24568. },
  24569. "seq": {
  24570. "type": "integer",
  24571. "allOf": [
  24572. {
  24573. "minimum": 0
  24574. }
  24575. ]
  24576. },
  24577. "version": {
  24578. "type": "integer",
  24579. "allOf": [
  24580. {
  24581. "minimum": 1
  24582. }
  24583. ]
  24584. }
  24585. },
  24586. "required": [
  24587. "aggregateID",
  24588. "seq",
  24589. "version"
  24590. ],
  24591. "additionalProperties": false
  24592. },
  24593. "location": {
  24594. "$ref": "#/components/schemas/Location.Ref"
  24595. },
  24596. "data": {
  24597. "type": "object",
  24598. "properties": {
  24599. "text": {
  24600. "type": "string"
  24601. }
  24602. },
  24603. "required": [
  24604. "text"
  24605. ],
  24606. "additionalProperties": false
  24607. }
  24608. },
  24609. "required": [
  24610. "id",
  24611. "type",
  24612. "data"
  24613. ],
  24614. "additionalProperties": false
  24615. },
  24616. "tui.command.execute": {
  24617. "type": "object",
  24618. "properties": {
  24619. "id": {
  24620. "type": "string",
  24621. "allOf": [
  24622. {
  24623. "pattern": "^evt_"
  24624. }
  24625. ]
  24626. },
  24627. "metadata": {
  24628. "type": "object"
  24629. },
  24630. "type": {
  24631. "type": "string",
  24632. "enum": [
  24633. "tui.command.execute"
  24634. ]
  24635. },
  24636. "durable": {
  24637. "type": "object",
  24638. "properties": {
  24639. "aggregateID": {
  24640. "type": "string"
  24641. },
  24642. "seq": {
  24643. "type": "integer",
  24644. "allOf": [
  24645. {
  24646. "minimum": 0
  24647. }
  24648. ]
  24649. },
  24650. "version": {
  24651. "type": "integer",
  24652. "allOf": [
  24653. {
  24654. "minimum": 1
  24655. }
  24656. ]
  24657. }
  24658. },
  24659. "required": [
  24660. "aggregateID",
  24661. "seq",
  24662. "version"
  24663. ],
  24664. "additionalProperties": false
  24665. },
  24666. "location": {
  24667. "$ref": "#/components/schemas/Location.Ref"
  24668. },
  24669. "data": {
  24670. "type": "object",
  24671. "properties": {
  24672. "command": {
  24673. "anyOf": [
  24674. {
  24675. "type": "string",
  24676. "enum": [
  24677. "session.list",
  24678. "session.new",
  24679. "session.share",
  24680. "session.interrupt",
  24681. "session.background",
  24682. "session.compact",
  24683. "session.page.up",
  24684. "session.page.down",
  24685. "session.line.up",
  24686. "session.line.down",
  24687. "session.half.page.up",
  24688. "session.half.page.down",
  24689. "session.first",
  24690. "session.last",
  24691. "prompt.clear",
  24692. "prompt.submit",
  24693. "agent.cycle"
  24694. ]
  24695. },
  24696. {
  24697. "type": "string"
  24698. }
  24699. ]
  24700. }
  24701. },
  24702. "required": [
  24703. "command"
  24704. ],
  24705. "additionalProperties": false
  24706. }
  24707. },
  24708. "required": [
  24709. "id",
  24710. "type",
  24711. "data"
  24712. ],
  24713. "additionalProperties": false
  24714. },
  24715. "tui.toast.show": {
  24716. "type": "object",
  24717. "properties": {
  24718. "id": {
  24719. "type": "string",
  24720. "allOf": [
  24721. {
  24722. "pattern": "^evt_"
  24723. }
  24724. ]
  24725. },
  24726. "metadata": {
  24727. "type": "object"
  24728. },
  24729. "type": {
  24730. "type": "string",
  24731. "enum": [
  24732. "tui.toast.show"
  24733. ]
  24734. },
  24735. "durable": {
  24736. "type": "object",
  24737. "properties": {
  24738. "aggregateID": {
  24739. "type": "string"
  24740. },
  24741. "seq": {
  24742. "type": "integer",
  24743. "allOf": [
  24744. {
  24745. "minimum": 0
  24746. }
  24747. ]
  24748. },
  24749. "version": {
  24750. "type": "integer",
  24751. "allOf": [
  24752. {
  24753. "minimum": 1
  24754. }
  24755. ]
  24756. }
  24757. },
  24758. "required": [
  24759. "aggregateID",
  24760. "seq",
  24761. "version"
  24762. ],
  24763. "additionalProperties": false
  24764. },
  24765. "location": {
  24766. "$ref": "#/components/schemas/Location.Ref"
  24767. },
  24768. "data": {
  24769. "type": "object",
  24770. "properties": {
  24771. "title": {
  24772. "type": "string"
  24773. },
  24774. "message": {
  24775. "type": "string"
  24776. },
  24777. "variant": {
  24778. "type": "string",
  24779. "enum": [
  24780. "info",
  24781. "success",
  24782. "warning",
  24783. "error"
  24784. ]
  24785. },
  24786. "duration": {
  24787. "anyOf": [
  24788. {
  24789. "type": "integer",
  24790. "allOf": [
  24791. {
  24792. "exclusiveMinimum": 0
  24793. }
  24794. ]
  24795. },
  24796. {
  24797. "type": "null"
  24798. }
  24799. ]
  24800. }
  24801. },
  24802. "required": [
  24803. "message",
  24804. "variant"
  24805. ],
  24806. "additionalProperties": false
  24807. }
  24808. },
  24809. "required": [
  24810. "id",
  24811. "type",
  24812. "data"
  24813. ],
  24814. "additionalProperties": false
  24815. },
  24816. "tui.session.select": {
  24817. "type": "object",
  24818. "properties": {
  24819. "id": {
  24820. "type": "string",
  24821. "allOf": [
  24822. {
  24823. "pattern": "^evt_"
  24824. }
  24825. ]
  24826. },
  24827. "metadata": {
  24828. "type": "object"
  24829. },
  24830. "type": {
  24831. "type": "string",
  24832. "enum": [
  24833. "tui.session.select"
  24834. ]
  24835. },
  24836. "durable": {
  24837. "type": "object",
  24838. "properties": {
  24839. "aggregateID": {
  24840. "type": "string"
  24841. },
  24842. "seq": {
  24843. "type": "integer",
  24844. "allOf": [
  24845. {
  24846. "minimum": 0
  24847. }
  24848. ]
  24849. },
  24850. "version": {
  24851. "type": "integer",
  24852. "allOf": [
  24853. {
  24854. "minimum": 1
  24855. }
  24856. ]
  24857. }
  24858. },
  24859. "required": [
  24860. "aggregateID",
  24861. "seq",
  24862. "version"
  24863. ],
  24864. "additionalProperties": false
  24865. },
  24866. "location": {
  24867. "$ref": "#/components/schemas/Location.Ref"
  24868. },
  24869. "data": {
  24870. "type": "object",
  24871. "properties": {
  24872. "sessionID": {
  24873. "type": "string",
  24874. "allOf": [
  24875. {
  24876. "pattern": "^ses",
  24877. "description": "Session ID to navigate to"
  24878. }
  24879. ]
  24880. }
  24881. },
  24882. "required": [
  24883. "sessionID"
  24884. ],
  24885. "additionalProperties": false
  24886. }
  24887. },
  24888. "required": [
  24889. "id",
  24890. "type",
  24891. "data"
  24892. ],
  24893. "additionalProperties": false
  24894. },
  24895. "installation.updated": {
  24896. "type": "object",
  24897. "properties": {
  24898. "id": {
  24899. "type": "string",
  24900. "allOf": [
  24901. {
  24902. "pattern": "^evt_"
  24903. }
  24904. ]
  24905. },
  24906. "metadata": {
  24907. "type": "object"
  24908. },
  24909. "type": {
  24910. "type": "string",
  24911. "enum": [
  24912. "installation.updated"
  24913. ]
  24914. },
  24915. "durable": {
  24916. "type": "object",
  24917. "properties": {
  24918. "aggregateID": {
  24919. "type": "string"
  24920. },
  24921. "seq": {
  24922. "type": "integer",
  24923. "allOf": [
  24924. {
  24925. "minimum": 0
  24926. }
  24927. ]
  24928. },
  24929. "version": {
  24930. "type": "integer",
  24931. "allOf": [
  24932. {
  24933. "minimum": 1
  24934. }
  24935. ]
  24936. }
  24937. },
  24938. "required": [
  24939. "aggregateID",
  24940. "seq",
  24941. "version"
  24942. ],
  24943. "additionalProperties": false
  24944. },
  24945. "location": {
  24946. "$ref": "#/components/schemas/Location.Ref"
  24947. },
  24948. "data": {
  24949. "type": "object",
  24950. "properties": {
  24951. "version": {
  24952. "type": "string"
  24953. }
  24954. },
  24955. "required": [
  24956. "version"
  24957. ],
  24958. "additionalProperties": false
  24959. }
  24960. },
  24961. "required": [
  24962. "id",
  24963. "type",
  24964. "data"
  24965. ],
  24966. "additionalProperties": false
  24967. },
  24968. "installation.update-available": {
  24969. "type": "object",
  24970. "properties": {
  24971. "id": {
  24972. "type": "string",
  24973. "allOf": [
  24974. {
  24975. "pattern": "^evt_"
  24976. }
  24977. ]
  24978. },
  24979. "metadata": {
  24980. "type": "object"
  24981. },
  24982. "type": {
  24983. "type": "string",
  24984. "enum": [
  24985. "installation.update-available"
  24986. ]
  24987. },
  24988. "durable": {
  24989. "type": "object",
  24990. "properties": {
  24991. "aggregateID": {
  24992. "type": "string"
  24993. },
  24994. "seq": {
  24995. "type": "integer",
  24996. "allOf": [
  24997. {
  24998. "minimum": 0
  24999. }
  25000. ]
  25001. },
  25002. "version": {
  25003. "type": "integer",
  25004. "allOf": [
  25005. {
  25006. "minimum": 1
  25007. }
  25008. ]
  25009. }
  25010. },
  25011. "required": [
  25012. "aggregateID",
  25013. "seq",
  25014. "version"
  25015. ],
  25016. "additionalProperties": false
  25017. },
  25018. "location": {
  25019. "$ref": "#/components/schemas/Location.Ref"
  25020. },
  25021. "data": {
  25022. "type": "object",
  25023. "properties": {
  25024. "version": {
  25025. "type": "string"
  25026. }
  25027. },
  25028. "required": [
  25029. "version"
  25030. ],
  25031. "additionalProperties": false
  25032. }
  25033. },
  25034. "required": [
  25035. "id",
  25036. "type",
  25037. "data"
  25038. ],
  25039. "additionalProperties": false
  25040. },
  25041. "vcs.branch.updated": {
  25042. "type": "object",
  25043. "properties": {
  25044. "id": {
  25045. "type": "string",
  25046. "allOf": [
  25047. {
  25048. "pattern": "^evt_"
  25049. }
  25050. ]
  25051. },
  25052. "metadata": {
  25053. "type": "object"
  25054. },
  25055. "type": {
  25056. "type": "string",
  25057. "enum": [
  25058. "vcs.branch.updated"
  25059. ]
  25060. },
  25061. "durable": {
  25062. "type": "object",
  25063. "properties": {
  25064. "aggregateID": {
  25065. "type": "string"
  25066. },
  25067. "seq": {
  25068. "type": "integer",
  25069. "allOf": [
  25070. {
  25071. "minimum": 0
  25072. }
  25073. ]
  25074. },
  25075. "version": {
  25076. "type": "integer",
  25077. "allOf": [
  25078. {
  25079. "minimum": 1
  25080. }
  25081. ]
  25082. }
  25083. },
  25084. "required": [
  25085. "aggregateID",
  25086. "seq",
  25087. "version"
  25088. ],
  25089. "additionalProperties": false
  25090. },
  25091. "location": {
  25092. "$ref": "#/components/schemas/Location.Ref"
  25093. },
  25094. "data": {
  25095. "type": "object",
  25096. "properties": {
  25097. "branch": {
  25098. "type": "string"
  25099. }
  25100. },
  25101. "additionalProperties": false
  25102. }
  25103. },
  25104. "required": [
  25105. "id",
  25106. "type",
  25107. "data"
  25108. ],
  25109. "additionalProperties": false
  25110. },
  25111. "mcp.status.changed": {
  25112. "type": "object",
  25113. "properties": {
  25114. "id": {
  25115. "type": "string",
  25116. "allOf": [
  25117. {
  25118. "pattern": "^evt_"
  25119. }
  25120. ]
  25121. },
  25122. "metadata": {
  25123. "type": "object"
  25124. },
  25125. "type": {
  25126. "type": "string",
  25127. "enum": [
  25128. "mcp.status.changed"
  25129. ]
  25130. },
  25131. "durable": {
  25132. "type": "object",
  25133. "properties": {
  25134. "aggregateID": {
  25135. "type": "string"
  25136. },
  25137. "seq": {
  25138. "type": "integer",
  25139. "allOf": [
  25140. {
  25141. "minimum": 0
  25142. }
  25143. ]
  25144. },
  25145. "version": {
  25146. "type": "integer",
  25147. "allOf": [
  25148. {
  25149. "minimum": 1
  25150. }
  25151. ]
  25152. }
  25153. },
  25154. "required": [
  25155. "aggregateID",
  25156. "seq",
  25157. "version"
  25158. ],
  25159. "additionalProperties": false
  25160. },
  25161. "location": {
  25162. "$ref": "#/components/schemas/Location.Ref"
  25163. },
  25164. "data": {
  25165. "type": "object",
  25166. "properties": {
  25167. "server": {
  25168. "type": "string"
  25169. }
  25170. },
  25171. "required": [
  25172. "server"
  25173. ],
  25174. "additionalProperties": false
  25175. }
  25176. },
  25177. "required": [
  25178. "id",
  25179. "type",
  25180. "data"
  25181. ],
  25182. "additionalProperties": false
  25183. },
  25184. "permission.asked": {
  25185. "type": "object",
  25186. "properties": {
  25187. "id": {
  25188. "type": "string",
  25189. "allOf": [
  25190. {
  25191. "pattern": "^evt_"
  25192. }
  25193. ]
  25194. },
  25195. "metadata": {
  25196. "type": "object"
  25197. },
  25198. "type": {
  25199. "type": "string",
  25200. "enum": [
  25201. "permission.asked"
  25202. ]
  25203. },
  25204. "durable": {
  25205. "type": "object",
  25206. "properties": {
  25207. "aggregateID": {
  25208. "type": "string"
  25209. },
  25210. "seq": {
  25211. "type": "integer",
  25212. "allOf": [
  25213. {
  25214. "minimum": 0
  25215. }
  25216. ]
  25217. },
  25218. "version": {
  25219. "type": "integer",
  25220. "allOf": [
  25221. {
  25222. "minimum": 1
  25223. }
  25224. ]
  25225. }
  25226. },
  25227. "required": [
  25228. "aggregateID",
  25229. "seq",
  25230. "version"
  25231. ],
  25232. "additionalProperties": false
  25233. },
  25234. "location": {
  25235. "$ref": "#/components/schemas/Location.Ref"
  25236. },
  25237. "data": {
  25238. "type": "object",
  25239. "properties": {
  25240. "id": {
  25241. "type": "string",
  25242. "allOf": [
  25243. {
  25244. "pattern": "^per"
  25245. }
  25246. ]
  25247. },
  25248. "sessionID": {
  25249. "type": "string",
  25250. "allOf": [
  25251. {
  25252. "pattern": "^ses"
  25253. }
  25254. ]
  25255. },
  25256. "permission": {
  25257. "type": "string"
  25258. },
  25259. "patterns": {
  25260. "type": "array",
  25261. "items": {
  25262. "type": "string"
  25263. }
  25264. },
  25265. "metadata": {
  25266. "type": "object"
  25267. },
  25268. "always": {
  25269. "type": "array",
  25270. "items": {
  25271. "type": "string"
  25272. }
  25273. },
  25274. "tool": {
  25275. "anyOf": [
  25276. {
  25277. "type": "object",
  25278. "properties": {
  25279. "messageID": {
  25280. "type": "string"
  25281. },
  25282. "callID": {
  25283. "type": "string"
  25284. }
  25285. },
  25286. "required": [
  25287. "messageID",
  25288. "callID"
  25289. ],
  25290. "additionalProperties": false
  25291. },
  25292. {
  25293. "type": "null"
  25294. }
  25295. ]
  25296. }
  25297. },
  25298. "required": [
  25299. "id",
  25300. "sessionID",
  25301. "permission",
  25302. "patterns",
  25303. "metadata",
  25304. "always"
  25305. ],
  25306. "additionalProperties": false
  25307. }
  25308. },
  25309. "required": [
  25310. "id",
  25311. "type",
  25312. "data"
  25313. ],
  25314. "additionalProperties": false
  25315. },
  25316. "permission.replied": {
  25317. "type": "object",
  25318. "properties": {
  25319. "id": {
  25320. "type": "string",
  25321. "allOf": [
  25322. {
  25323. "pattern": "^evt_"
  25324. }
  25325. ]
  25326. },
  25327. "metadata": {
  25328. "type": "object"
  25329. },
  25330. "type": {
  25331. "type": "string",
  25332. "enum": [
  25333. "permission.replied"
  25334. ]
  25335. },
  25336. "durable": {
  25337. "type": "object",
  25338. "properties": {
  25339. "aggregateID": {
  25340. "type": "string"
  25341. },
  25342. "seq": {
  25343. "type": "integer",
  25344. "allOf": [
  25345. {
  25346. "minimum": 0
  25347. }
  25348. ]
  25349. },
  25350. "version": {
  25351. "type": "integer",
  25352. "allOf": [
  25353. {
  25354. "minimum": 1
  25355. }
  25356. ]
  25357. }
  25358. },
  25359. "required": [
  25360. "aggregateID",
  25361. "seq",
  25362. "version"
  25363. ],
  25364. "additionalProperties": false
  25365. },
  25366. "location": {
  25367. "$ref": "#/components/schemas/Location.Ref"
  25368. },
  25369. "data": {
  25370. "type": "object",
  25371. "properties": {
  25372. "sessionID": {
  25373. "type": "string",
  25374. "allOf": [
  25375. {
  25376. "pattern": "^ses"
  25377. }
  25378. ]
  25379. },
  25380. "requestID": {
  25381. "type": "string",
  25382. "allOf": [
  25383. {
  25384. "pattern": "^per"
  25385. }
  25386. ]
  25387. },
  25388. "reply": {
  25389. "type": "string",
  25390. "enum": [
  25391. "once",
  25392. "always",
  25393. "reject"
  25394. ]
  25395. }
  25396. },
  25397. "required": [
  25398. "sessionID",
  25399. "requestID",
  25400. "reply"
  25401. ],
  25402. "additionalProperties": false
  25403. }
  25404. },
  25405. "required": [
  25406. "id",
  25407. "type",
  25408. "data"
  25409. ],
  25410. "additionalProperties": false
  25411. },
  25412. "QuestionOption": {
  25413. "type": "object",
  25414. "properties": {
  25415. "label": {
  25416. "type": "string",
  25417. "description": "Display text (1-5 words, concise)"
  25418. },
  25419. "description": {
  25420. "type": "string",
  25421. "description": "Explanation of choice"
  25422. }
  25423. },
  25424. "required": [
  25425. "label",
  25426. "description"
  25427. ],
  25428. "additionalProperties": false
  25429. },
  25430. "QuestionInfo": {
  25431. "type": "object",
  25432. "properties": {
  25433. "question": {
  25434. "type": "string",
  25435. "description": "Complete question"
  25436. },
  25437. "header": {
  25438. "type": "string",
  25439. "description": "Very short label (max 30 chars)"
  25440. },
  25441. "options": {
  25442. "type": "array",
  25443. "items": {
  25444. "$ref": "#/components/schemas/QuestionOption"
  25445. },
  25446. "description": "Available choices"
  25447. },
  25448. "multiple": {
  25449. "anyOf": [
  25450. {
  25451. "type": "boolean"
  25452. },
  25453. {
  25454. "type": "null"
  25455. }
  25456. ],
  25457. "description": "Allow selecting multiple choices"
  25458. },
  25459. "custom": {
  25460. "anyOf": [
  25461. {
  25462. "type": "boolean"
  25463. },
  25464. {
  25465. "type": "null"
  25466. }
  25467. ],
  25468. "description": "Allow typing a custom answer (default: true)"
  25469. }
  25470. },
  25471. "required": [
  25472. "question",
  25473. "header",
  25474. "options"
  25475. ],
  25476. "additionalProperties": false
  25477. },
  25478. "QuestionTool": {
  25479. "type": "object",
  25480. "properties": {
  25481. "messageID": {
  25482. "type": "string",
  25483. "allOf": [
  25484. {
  25485. "pattern": "^msg"
  25486. }
  25487. ]
  25488. },
  25489. "callID": {
  25490. "type": "string"
  25491. }
  25492. },
  25493. "required": [
  25494. "messageID",
  25495. "callID"
  25496. ],
  25497. "additionalProperties": false
  25498. },
  25499. "question.asked": {
  25500. "type": "object",
  25501. "properties": {
  25502. "id": {
  25503. "type": "string",
  25504. "allOf": [
  25505. {
  25506. "pattern": "^evt_"
  25507. }
  25508. ]
  25509. },
  25510. "metadata": {
  25511. "type": "object"
  25512. },
  25513. "type": {
  25514. "type": "string",
  25515. "enum": [
  25516. "question.asked"
  25517. ]
  25518. },
  25519. "durable": {
  25520. "type": "object",
  25521. "properties": {
  25522. "aggregateID": {
  25523. "type": "string"
  25524. },
  25525. "seq": {
  25526. "type": "integer",
  25527. "allOf": [
  25528. {
  25529. "minimum": 0
  25530. }
  25531. ]
  25532. },
  25533. "version": {
  25534. "type": "integer",
  25535. "allOf": [
  25536. {
  25537. "minimum": 1
  25538. }
  25539. ]
  25540. }
  25541. },
  25542. "required": [
  25543. "aggregateID",
  25544. "seq",
  25545. "version"
  25546. ],
  25547. "additionalProperties": false
  25548. },
  25549. "location": {
  25550. "$ref": "#/components/schemas/Location.Ref"
  25551. },
  25552. "data": {
  25553. "type": "object",
  25554. "properties": {
  25555. "id": {
  25556. "type": "string",
  25557. "allOf": [
  25558. {
  25559. "pattern": "^que"
  25560. }
  25561. ]
  25562. },
  25563. "sessionID": {
  25564. "type": "string",
  25565. "allOf": [
  25566. {
  25567. "pattern": "^ses"
  25568. }
  25569. ]
  25570. },
  25571. "questions": {
  25572. "type": "array",
  25573. "items": {
  25574. "$ref": "#/components/schemas/QuestionInfo"
  25575. },
  25576. "description": "Questions to ask"
  25577. },
  25578. "tool": {
  25579. "anyOf": [
  25580. {
  25581. "$ref": "#/components/schemas/QuestionTool"
  25582. },
  25583. {
  25584. "type": "null"
  25585. }
  25586. ]
  25587. }
  25588. },
  25589. "required": [
  25590. "id",
  25591. "sessionID",
  25592. "questions"
  25593. ],
  25594. "additionalProperties": false
  25595. }
  25596. },
  25597. "required": [
  25598. "id",
  25599. "type",
  25600. "data"
  25601. ],
  25602. "additionalProperties": false
  25603. },
  25604. "QuestionAnswer": {
  25605. "type": "array",
  25606. "items": {
  25607. "type": "string"
  25608. }
  25609. },
  25610. "question.replied": {
  25611. "type": "object",
  25612. "properties": {
  25613. "id": {
  25614. "type": "string",
  25615. "allOf": [
  25616. {
  25617. "pattern": "^evt_"
  25618. }
  25619. ]
  25620. },
  25621. "metadata": {
  25622. "type": "object"
  25623. },
  25624. "type": {
  25625. "type": "string",
  25626. "enum": [
  25627. "question.replied"
  25628. ]
  25629. },
  25630. "durable": {
  25631. "type": "object",
  25632. "properties": {
  25633. "aggregateID": {
  25634. "type": "string"
  25635. },
  25636. "seq": {
  25637. "type": "integer",
  25638. "allOf": [
  25639. {
  25640. "minimum": 0
  25641. }
  25642. ]
  25643. },
  25644. "version": {
  25645. "type": "integer",
  25646. "allOf": [
  25647. {
  25648. "minimum": 1
  25649. }
  25650. ]
  25651. }
  25652. },
  25653. "required": [
  25654. "aggregateID",
  25655. "seq",
  25656. "version"
  25657. ],
  25658. "additionalProperties": false
  25659. },
  25660. "location": {
  25661. "$ref": "#/components/schemas/Location.Ref"
  25662. },
  25663. "data": {
  25664. "type": "object",
  25665. "properties": {
  25666. "sessionID": {
  25667. "type": "string",
  25668. "allOf": [
  25669. {
  25670. "pattern": "^ses"
  25671. }
  25672. ]
  25673. },
  25674. "requestID": {
  25675. "type": "string",
  25676. "allOf": [
  25677. {
  25678. "pattern": "^que"
  25679. }
  25680. ]
  25681. },
  25682. "answers": {
  25683. "type": "array",
  25684. "items": {
  25685. "$ref": "#/components/schemas/QuestionAnswer"
  25686. }
  25687. }
  25688. },
  25689. "required": [
  25690. "sessionID",
  25691. "requestID",
  25692. "answers"
  25693. ],
  25694. "additionalProperties": false
  25695. }
  25696. },
  25697. "required": [
  25698. "id",
  25699. "type",
  25700. "data"
  25701. ],
  25702. "additionalProperties": false
  25703. },
  25704. "question.rejected": {
  25705. "type": "object",
  25706. "properties": {
  25707. "id": {
  25708. "type": "string",
  25709. "allOf": [
  25710. {
  25711. "pattern": "^evt_"
  25712. }
  25713. ]
  25714. },
  25715. "metadata": {
  25716. "type": "object"
  25717. },
  25718. "type": {
  25719. "type": "string",
  25720. "enum": [
  25721. "question.rejected"
  25722. ]
  25723. },
  25724. "durable": {
  25725. "type": "object",
  25726. "properties": {
  25727. "aggregateID": {
  25728. "type": "string"
  25729. },
  25730. "seq": {
  25731. "type": "integer",
  25732. "allOf": [
  25733. {
  25734. "minimum": 0
  25735. }
  25736. ]
  25737. },
  25738. "version": {
  25739. "type": "integer",
  25740. "allOf": [
  25741. {
  25742. "minimum": 1
  25743. }
  25744. ]
  25745. }
  25746. },
  25747. "required": [
  25748. "aggregateID",
  25749. "seq",
  25750. "version"
  25751. ],
  25752. "additionalProperties": false
  25753. },
  25754. "location": {
  25755. "$ref": "#/components/schemas/Location.Ref"
  25756. },
  25757. "data": {
  25758. "type": "object",
  25759. "properties": {
  25760. "sessionID": {
  25761. "type": "string",
  25762. "allOf": [
  25763. {
  25764. "pattern": "^ses"
  25765. }
  25766. ]
  25767. },
  25768. "requestID": {
  25769. "type": "string",
  25770. "allOf": [
  25771. {
  25772. "pattern": "^que"
  25773. }
  25774. ]
  25775. }
  25776. },
  25777. "required": [
  25778. "sessionID",
  25779. "requestID"
  25780. ],
  25781. "additionalProperties": false
  25782. }
  25783. },
  25784. "required": [
  25785. "id",
  25786. "type",
  25787. "data"
  25788. ],
  25789. "additionalProperties": false
  25790. },
  25791. "session.error": {
  25792. "type": "object",
  25793. "properties": {
  25794. "id": {
  25795. "type": "string",
  25796. "allOf": [
  25797. {
  25798. "pattern": "^evt_"
  25799. }
  25800. ]
  25801. },
  25802. "metadata": {
  25803. "type": "object"
  25804. },
  25805. "type": {
  25806. "type": "string",
  25807. "enum": [
  25808. "session.error"
  25809. ]
  25810. },
  25811. "durable": {
  25812. "type": "object",
  25813. "properties": {
  25814. "aggregateID": {
  25815. "type": "string"
  25816. },
  25817. "seq": {
  25818. "type": "integer",
  25819. "allOf": [
  25820. {
  25821. "minimum": 0
  25822. }
  25823. ]
  25824. },
  25825. "version": {
  25826. "type": "integer",
  25827. "allOf": [
  25828. {
  25829. "minimum": 1
  25830. }
  25831. ]
  25832. }
  25833. },
  25834. "required": [
  25835. "aggregateID",
  25836. "seq",
  25837. "version"
  25838. ],
  25839. "additionalProperties": false
  25840. },
  25841. "location": {
  25842. "$ref": "#/components/schemas/Location.Ref"
  25843. },
  25844. "data": {
  25845. "type": "object",
  25846. "properties": {
  25847. "sessionID": {
  25848. "anyOf": [
  25849. {
  25850. "type": "string",
  25851. "allOf": [
  25852. {
  25853. "pattern": "^ses"
  25854. }
  25855. ]
  25856. },
  25857. {
  25858. "type": "null"
  25859. }
  25860. ]
  25861. },
  25862. "error": {
  25863. "anyOf": [
  25864. {
  25865. "anyOf": [
  25866. {
  25867. "$ref": "#/components/schemas/ProviderAuthError"
  25868. },
  25869. {
  25870. "$ref": "#/components/schemas/UnknownError1"
  25871. },
  25872. {
  25873. "$ref": "#/components/schemas/MessageOutputLengthError"
  25874. },
  25875. {
  25876. "$ref": "#/components/schemas/MessageAbortedError"
  25877. },
  25878. {
  25879. "$ref": "#/components/schemas/StructuredOutputError"
  25880. },
  25881. {
  25882. "$ref": "#/components/schemas/ContextOverflowError"
  25883. },
  25884. {
  25885. "$ref": "#/components/schemas/ContentFilterError"
  25886. },
  25887. {
  25888. "$ref": "#/components/schemas/APIError"
  25889. }
  25890. ]
  25891. },
  25892. {
  25893. "type": "null"
  25894. }
  25895. ]
  25896. }
  25897. },
  25898. "additionalProperties": false
  25899. }
  25900. },
  25901. "required": [
  25902. "id",
  25903. "type",
  25904. "data"
  25905. ],
  25906. "additionalProperties": false
  25907. },
  25908. "V2Event.server.connected": {
  25909. "type": "object",
  25910. "properties": {
  25911. "id": {
  25912. "type": "string",
  25913. "allOf": [
  25914. {
  25915. "pattern": "^evt_"
  25916. }
  25917. ]
  25918. },
  25919. "metadata": {
  25920. "anyOf": [
  25921. {
  25922. "type": "object"
  25923. },
  25924. {
  25925. "type": "null"
  25926. }
  25927. ]
  25928. },
  25929. "durable": {
  25930. "anyOf": [
  25931. {
  25932. "type": "object",
  25933. "properties": {
  25934. "aggregateID": {
  25935. "type": "string"
  25936. },
  25937. "seq": {
  25938. "type": "integer",
  25939. "allOf": [
  25940. {
  25941. "minimum": 0
  25942. }
  25943. ]
  25944. },
  25945. "version": {
  25946. "type": "integer",
  25947. "allOf": [
  25948. {
  25949. "minimum": 1
  25950. }
  25951. ]
  25952. }
  25953. },
  25954. "required": [
  25955. "aggregateID",
  25956. "seq",
  25957. "version"
  25958. ],
  25959. "additionalProperties": false
  25960. },
  25961. {
  25962. "type": "null"
  25963. }
  25964. ]
  25965. },
  25966. "location": {
  25967. "anyOf": [
  25968. {
  25969. "$ref": "#/components/schemas/Location.Ref"
  25970. },
  25971. {
  25972. "type": "null"
  25973. }
  25974. ]
  25975. },
  25976. "type": {
  25977. "type": "string",
  25978. "enum": [
  25979. "server.connected"
  25980. ]
  25981. },
  25982. "data": {
  25983. "anyOf": [
  25984. {
  25985. "type": "object"
  25986. },
  25987. {
  25988. "type": "array"
  25989. }
  25990. ]
  25991. }
  25992. },
  25993. "required": [
  25994. "id",
  25995. "type",
  25996. "data"
  25997. ],
  25998. "additionalProperties": false
  25999. },
  26000. "V2Event": {
  26001. "anyOf": [
  26002. {
  26003. "$ref": "#/components/schemas/models-dev.refreshed"
  26004. },
  26005. {
  26006. "$ref": "#/components/schemas/integration.updated"
  26007. },
  26008. {
  26009. "$ref": "#/components/schemas/integration.connection.updated"
  26010. },
  26011. {
  26012. "$ref": "#/components/schemas/catalog.updated"
  26013. },
  26014. {
  26015. "$ref": "#/components/schemas/agent.updated"
  26016. },
  26017. {
  26018. "$ref": "#/components/schemas/session.created"
  26019. },
  26020. {
  26021. "$ref": "#/components/schemas/session.updated"
  26022. },
  26023. {
  26024. "$ref": "#/components/schemas/session.deleted"
  26025. },
  26026. {
  26027. "$ref": "#/components/schemas/message.updated"
  26028. },
  26029. {
  26030. "$ref": "#/components/schemas/message.removed"
  26031. },
  26032. {
  26033. "$ref": "#/components/schemas/message.part.updated"
  26034. },
  26035. {
  26036. "$ref": "#/components/schemas/message.part.removed"
  26037. },
  26038. {
  26039. "$ref": "#/components/schemas/session.next.agent.switched"
  26040. },
  26041. {
  26042. "$ref": "#/components/schemas/session.next.model.switched"
  26043. },
  26044. {
  26045. "$ref": "#/components/schemas/session.next.moved"
  26046. },
  26047. {
  26048. "$ref": "#/components/schemas/session.next.renamed"
  26049. },
  26050. {
  26051. "$ref": "#/components/schemas/session.next.forked"
  26052. },
  26053. {
  26054. "$ref": "#/components/schemas/session.next.prompted"
  26055. },
  26056. {
  26057. "$ref": "#/components/schemas/session.next.prompt.admitted"
  26058. },
  26059. {
  26060. "$ref": "#/components/schemas/session.next.execution.settled"
  26061. },
  26062. {
  26063. "$ref": "#/components/schemas/session.next.instructions.updated"
  26064. },
  26065. {
  26066. "$ref": "#/components/schemas/session.next.synthetic"
  26067. },
  26068. {
  26069. "$ref": "#/components/schemas/session.next.skill.activated"
  26070. },
  26071. {
  26072. "$ref": "#/components/schemas/session.next.shell.started"
  26073. },
  26074. {
  26075. "$ref": "#/components/schemas/session.next.shell.ended"
  26076. },
  26077. {
  26078. "$ref": "#/components/schemas/session.next.step.started"
  26079. },
  26080. {
  26081. "$ref": "#/components/schemas/session.next.step.ended"
  26082. },
  26083. {
  26084. "$ref": "#/components/schemas/session.next.step.failed"
  26085. },
  26086. {
  26087. "$ref": "#/components/schemas/session.next.text.started"
  26088. },
  26089. {
  26090. "$ref": "#/components/schemas/session.next.text.delta"
  26091. },
  26092. {
  26093. "$ref": "#/components/schemas/session.next.text.ended"
  26094. },
  26095. {
  26096. "$ref": "#/components/schemas/session.next.reasoning.started"
  26097. },
  26098. {
  26099. "$ref": "#/components/schemas/session.next.reasoning.delta"
  26100. },
  26101. {
  26102. "$ref": "#/components/schemas/session.next.reasoning.ended"
  26103. },
  26104. {
  26105. "$ref": "#/components/schemas/session.next.tool.input.started"
  26106. },
  26107. {
  26108. "$ref": "#/components/schemas/session.next.tool.input.delta"
  26109. },
  26110. {
  26111. "$ref": "#/components/schemas/session.next.tool.input.ended"
  26112. },
  26113. {
  26114. "$ref": "#/components/schemas/session.next.tool.called"
  26115. },
  26116. {
  26117. "$ref": "#/components/schemas/session.next.tool.progress"
  26118. },
  26119. {
  26120. "$ref": "#/components/schemas/session.next.tool.success"
  26121. },
  26122. {
  26123. "$ref": "#/components/schemas/session.next.tool.failed"
  26124. },
  26125. {
  26126. "$ref": "#/components/schemas/session.next.retried"
  26127. },
  26128. {
  26129. "$ref": "#/components/schemas/session.next.compaction.started"
  26130. },
  26131. {
  26132. "$ref": "#/components/schemas/session.next.compaction.delta"
  26133. },
  26134. {
  26135. "$ref": "#/components/schemas/session.next.compaction.ended"
  26136. },
  26137. {
  26138. "$ref": "#/components/schemas/session.next.revert.staged"
  26139. },
  26140. {
  26141. "$ref": "#/components/schemas/session.next.revert.cleared"
  26142. },
  26143. {
  26144. "$ref": "#/components/schemas/session.next.revert.committed"
  26145. },
  26146. {
  26147. "$ref": "#/components/schemas/file.edited"
  26148. },
  26149. {
  26150. "$ref": "#/components/schemas/reference.updated"
  26151. },
  26152. {
  26153. "$ref": "#/components/schemas/permission.v2.asked"
  26154. },
  26155. {
  26156. "$ref": "#/components/schemas/permission.v2.replied"
  26157. },
  26158. {
  26159. "$ref": "#/components/schemas/plugin.added"
  26160. },
  26161. {
  26162. "$ref": "#/components/schemas/project.directories.updated"
  26163. },
  26164. {
  26165. "$ref": "#/components/schemas/command.updated"
  26166. },
  26167. {
  26168. "$ref": "#/components/schemas/skill.updated"
  26169. },
  26170. {
  26171. "$ref": "#/components/schemas/file.watcher.updated"
  26172. },
  26173. {
  26174. "$ref": "#/components/schemas/pty.created"
  26175. },
  26176. {
  26177. "$ref": "#/components/schemas/pty.updated"
  26178. },
  26179. {
  26180. "$ref": "#/components/schemas/pty.exited"
  26181. },
  26182. {
  26183. "$ref": "#/components/schemas/pty.deleted"
  26184. },
  26185. {
  26186. "$ref": "#/components/schemas/shell.created"
  26187. },
  26188. {
  26189. "$ref": "#/components/schemas/shell.exited"
  26190. },
  26191. {
  26192. "$ref": "#/components/schemas/shell.deleted"
  26193. },
  26194. {
  26195. "$ref": "#/components/schemas/question.v2.asked"
  26196. },
  26197. {
  26198. "$ref": "#/components/schemas/question.v2.replied"
  26199. },
  26200. {
  26201. "$ref": "#/components/schemas/question.v2.rejected"
  26202. },
  26203. {
  26204. "$ref": "#/components/schemas/form.created"
  26205. },
  26206. {
  26207. "$ref": "#/components/schemas/form.replied"
  26208. },
  26209. {
  26210. "$ref": "#/components/schemas/form.cancelled"
  26211. },
  26212. {
  26213. "$ref": "#/components/schemas/todo.updated"
  26214. },
  26215. {
  26216. "$ref": "#/components/schemas/session.status"
  26217. },
  26218. {
  26219. "$ref": "#/components/schemas/session.idle"
  26220. },
  26221. {
  26222. "$ref": "#/components/schemas/tui.prompt.append"
  26223. },
  26224. {
  26225. "$ref": "#/components/schemas/tui.command.execute"
  26226. },
  26227. {
  26228. "$ref": "#/components/schemas/tui.toast.show"
  26229. },
  26230. {
  26231. "$ref": "#/components/schemas/tui.session.select"
  26232. },
  26233. {
  26234. "$ref": "#/components/schemas/installation.updated"
  26235. },
  26236. {
  26237. "$ref": "#/components/schemas/installation.update-available"
  26238. },
  26239. {
  26240. "$ref": "#/components/schemas/vcs.branch.updated"
  26241. },
  26242. {
  26243. "$ref": "#/components/schemas/mcp.status.changed"
  26244. },
  26245. {
  26246. "$ref": "#/components/schemas/permission.asked"
  26247. },
  26248. {
  26249. "$ref": "#/components/schemas/permission.replied"
  26250. },
  26251. {
  26252. "$ref": "#/components/schemas/question.asked"
  26253. },
  26254. {
  26255. "$ref": "#/components/schemas/question.replied"
  26256. },
  26257. {
  26258. "$ref": "#/components/schemas/question.rejected"
  26259. },
  26260. {
  26261. "$ref": "#/components/schemas/session.error"
  26262. },
  26263. {
  26264. "$ref": "#/components/schemas/V2Event.server.connected"
  26265. }
  26266. ]
  26267. },
  26268. "V2EventStream": {
  26269. "type": "string",
  26270. "contentSchema": {
  26271. "$ref": "#/components/schemas/V2Event"
  26272. },
  26273. "contentMediaType": "application/json"
  26274. },
  26275. "EventLog.Hint": {
  26276. "type": "object",
  26277. "properties": {
  26278. "type": {
  26279. "type": "string",
  26280. "enum": [
  26281. "log.hint"
  26282. ]
  26283. },
  26284. "aggregateID": {
  26285. "type": "string"
  26286. },
  26287. "seq": {
  26288. "type": "integer",
  26289. "allOf": [
  26290. {
  26291. "minimum": 0
  26292. }
  26293. ]
  26294. }
  26295. },
  26296. "required": [
  26297. "type",
  26298. "aggregateID",
  26299. "seq"
  26300. ],
  26301. "additionalProperties": false,
  26302. "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."
  26303. },
  26304. "EventLog.SweepRequired": {
  26305. "type": "object",
  26306. "properties": {
  26307. "type": {
  26308. "type": "string",
  26309. "enum": [
  26310. "log.sweep_required"
  26311. ]
  26312. }
  26313. },
  26314. "required": [
  26315. "type"
  26316. ],
  26317. "additionalProperties": false,
  26318. "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."
  26319. },
  26320. "EventLog.Change": {
  26321. "anyOf": [
  26322. {
  26323. "$ref": "#/components/schemas/EventLog.Hint"
  26324. },
  26325. {
  26326. "$ref": "#/components/schemas/EventLog.SweepRequired"
  26327. }
  26328. ]
  26329. },
  26330. "EventLog.ChangeStream": {
  26331. "type": "string",
  26332. "contentSchema": {
  26333. "$ref": "#/components/schemas/EventLog.Change"
  26334. },
  26335. "contentMediaType": "application/json"
  26336. },
  26337. "PtyNotFoundError": {
  26338. "type": "object",
  26339. "properties": {
  26340. "_tag": {
  26341. "type": "string",
  26342. "enum": [
  26343. "PtyNotFoundError"
  26344. ]
  26345. },
  26346. "ptyID": {
  26347. "type": "string"
  26348. },
  26349. "message": {
  26350. "type": "string"
  26351. }
  26352. },
  26353. "required": [
  26354. "_tag",
  26355. "ptyID",
  26356. "message"
  26357. ],
  26358. "additionalProperties": false
  26359. },
  26360. "PtyTicket.ConnectToken": {
  26361. "type": "object",
  26362. "properties": {
  26363. "ticket": {
  26364. "type": "string"
  26365. },
  26366. "expires_in": {
  26367. "type": "integer",
  26368. "allOf": [
  26369. {
  26370. "exclusiveMinimum": 0
  26371. }
  26372. ]
  26373. }
  26374. },
  26375. "required": [
  26376. "ticket",
  26377. "expires_in"
  26378. ],
  26379. "additionalProperties": false
  26380. },
  26381. "ForbiddenError": {
  26382. "type": "object",
  26383. "properties": {
  26384. "_tag": {
  26385. "type": "string",
  26386. "enum": [
  26387. "ForbiddenError"
  26388. ]
  26389. },
  26390. "message": {
  26391. "type": "string"
  26392. }
  26393. },
  26394. "required": [
  26395. "_tag",
  26396. "message"
  26397. ],
  26398. "additionalProperties": false
  26399. },
  26400. "Shell1": {
  26401. "type": "object",
  26402. "properties": {
  26403. "id": {
  26404. "type": "string",
  26405. "allOf": [
  26406. {
  26407. "pattern": "^sh_"
  26408. }
  26409. ]
  26410. },
  26411. "status": {
  26412. "type": "string",
  26413. "enum": [
  26414. "running",
  26415. "exited",
  26416. "timeout",
  26417. "killed"
  26418. ]
  26419. },
  26420. "command": {
  26421. "type": "string"
  26422. },
  26423. "cwd": {
  26424. "type": "string"
  26425. },
  26426. "shell": {
  26427. "type": "string"
  26428. },
  26429. "file": {
  26430. "type": "string"
  26431. },
  26432. "pid": {
  26433. "type": "integer",
  26434. "allOf": [
  26435. {
  26436. "minimum": 0
  26437. }
  26438. ]
  26439. },
  26440. "exit": {
  26441. "anyOf": [
  26442. {
  26443. "anyOf": [
  26444. {
  26445. "type": "number"
  26446. },
  26447. {
  26448. "type": "string",
  26449. "enum": [
  26450. "NaN"
  26451. ]
  26452. },
  26453. {
  26454. "type": "string",
  26455. "enum": [
  26456. "Infinity"
  26457. ]
  26458. },
  26459. {
  26460. "type": "string",
  26461. "enum": [
  26462. "-Infinity"
  26463. ]
  26464. }
  26465. ]
  26466. },
  26467. {
  26468. "type": "string",
  26469. "enum": [
  26470. "Infinity",
  26471. "-Infinity",
  26472. "NaN"
  26473. ]
  26474. }
  26475. ]
  26476. },
  26477. "metadata": {
  26478. "type": "object"
  26479. },
  26480. "time": {
  26481. "type": "object",
  26482. "properties": {
  26483. "started": {
  26484. "anyOf": [
  26485. {
  26486. "anyOf": [
  26487. {
  26488. "type": "number"
  26489. },
  26490. {
  26491. "type": "string",
  26492. "enum": [
  26493. "NaN"
  26494. ]
  26495. },
  26496. {
  26497. "type": "string",
  26498. "enum": [
  26499. "Infinity"
  26500. ]
  26501. },
  26502. {
  26503. "type": "string",
  26504. "enum": [
  26505. "-Infinity"
  26506. ]
  26507. }
  26508. ]
  26509. },
  26510. {
  26511. "type": "string",
  26512. "enum": [
  26513. "Infinity",
  26514. "-Infinity",
  26515. "NaN"
  26516. ]
  26517. }
  26518. ]
  26519. },
  26520. "completed": {
  26521. "anyOf": [
  26522. {
  26523. "anyOf": [
  26524. {
  26525. "type": "number"
  26526. },
  26527. {
  26528. "type": "string",
  26529. "enum": [
  26530. "NaN"
  26531. ]
  26532. },
  26533. {
  26534. "type": "string",
  26535. "enum": [
  26536. "Infinity"
  26537. ]
  26538. },
  26539. {
  26540. "type": "string",
  26541. "enum": [
  26542. "-Infinity"
  26543. ]
  26544. }
  26545. ]
  26546. },
  26547. {
  26548. "type": "string",
  26549. "enum": [
  26550. "Infinity",
  26551. "-Infinity",
  26552. "NaN"
  26553. ]
  26554. }
  26555. ]
  26556. }
  26557. },
  26558. "required": [
  26559. "started"
  26560. ],
  26561. "additionalProperties": false
  26562. }
  26563. },
  26564. "required": [
  26565. "id",
  26566. "status",
  26567. "command",
  26568. "cwd",
  26569. "shell",
  26570. "file",
  26571. "metadata",
  26572. "time"
  26573. ],
  26574. "additionalProperties": false
  26575. },
  26576. "ShellNotFoundError": {
  26577. "type": "object",
  26578. "properties": {
  26579. "_tag": {
  26580. "type": "string",
  26581. "enum": [
  26582. "ShellNotFoundError"
  26583. ]
  26584. },
  26585. "id": {
  26586. "type": "string"
  26587. },
  26588. "message": {
  26589. "type": "string"
  26590. }
  26591. },
  26592. "required": [
  26593. "_tag",
  26594. "id",
  26595. "message"
  26596. ],
  26597. "additionalProperties": false
  26598. },
  26599. "QuestionV2.Request": {
  26600. "type": "object",
  26601. "properties": {
  26602. "id": {
  26603. "type": "string",
  26604. "allOf": [
  26605. {
  26606. "pattern": "^que"
  26607. }
  26608. ]
  26609. },
  26610. "sessionID": {
  26611. "type": "string",
  26612. "allOf": [
  26613. {
  26614. "pattern": "^ses"
  26615. }
  26616. ]
  26617. },
  26618. "questions": {
  26619. "type": "array",
  26620. "items": {
  26621. "$ref": "#/components/schemas/QuestionV2.Info"
  26622. },
  26623. "description": "Questions to ask"
  26624. },
  26625. "tool": {
  26626. "$ref": "#/components/schemas/QuestionV2.Tool"
  26627. }
  26628. },
  26629. "required": [
  26630. "id",
  26631. "sessionID",
  26632. "questions"
  26633. ],
  26634. "additionalProperties": false
  26635. },
  26636. "QuestionV2.Reply": {
  26637. "type": "object",
  26638. "properties": {
  26639. "answers": {
  26640. "type": "array",
  26641. "items": {
  26642. "$ref": "#/components/schemas/QuestionV2.Answer"
  26643. },
  26644. "description": "User answers in order of questions (each answer is an array of selected labels)"
  26645. }
  26646. },
  26647. "required": [
  26648. "answers"
  26649. ],
  26650. "additionalProperties": false
  26651. },
  26652. "QuestionNotFoundError": {
  26653. "type": "object",
  26654. "properties": {
  26655. "_tag": {
  26656. "type": "string",
  26657. "enum": [
  26658. "QuestionNotFoundError"
  26659. ]
  26660. },
  26661. "requestID": {
  26662. "type": "string"
  26663. },
  26664. "message": {
  26665. "type": "string"
  26666. }
  26667. },
  26668. "required": [
  26669. "_tag",
  26670. "requestID",
  26671. "message"
  26672. ],
  26673. "additionalProperties": false
  26674. },
  26675. "Reference.LocalSource": {
  26676. "type": "object",
  26677. "properties": {
  26678. "type": {
  26679. "type": "string",
  26680. "enum": [
  26681. "local"
  26682. ]
  26683. },
  26684. "path": {
  26685. "type": "string"
  26686. },
  26687. "description": {
  26688. "type": "string"
  26689. },
  26690. "hidden": {
  26691. "type": "boolean"
  26692. }
  26693. },
  26694. "required": [
  26695. "type",
  26696. "path"
  26697. ],
  26698. "additionalProperties": false
  26699. },
  26700. "Reference.GitSource": {
  26701. "type": "object",
  26702. "properties": {
  26703. "type": {
  26704. "type": "string",
  26705. "enum": [
  26706. "git"
  26707. ]
  26708. },
  26709. "repository": {
  26710. "type": "string"
  26711. },
  26712. "branch": {
  26713. "type": "string"
  26714. },
  26715. "description": {
  26716. "type": "string"
  26717. },
  26718. "hidden": {
  26719. "type": "boolean"
  26720. }
  26721. },
  26722. "required": [
  26723. "type",
  26724. "repository"
  26725. ],
  26726. "additionalProperties": false
  26727. },
  26728. "Reference.Source": {
  26729. "anyOf": [
  26730. {
  26731. "$ref": "#/components/schemas/Reference.LocalSource"
  26732. },
  26733. {
  26734. "$ref": "#/components/schemas/Reference.GitSource"
  26735. }
  26736. ]
  26737. },
  26738. "Reference.Info": {
  26739. "type": "object",
  26740. "properties": {
  26741. "name": {
  26742. "type": "string"
  26743. },
  26744. "path": {
  26745. "type": "string"
  26746. },
  26747. "description": {
  26748. "type": "string"
  26749. },
  26750. "hidden": {
  26751. "type": "boolean"
  26752. },
  26753. "source": {
  26754. "$ref": "#/components/schemas/Reference.Source"
  26755. }
  26756. },
  26757. "required": [
  26758. "name",
  26759. "path",
  26760. "source"
  26761. ],
  26762. "additionalProperties": false
  26763. },
  26764. "ProjectCopy.Copy": {
  26765. "type": "object",
  26766. "properties": {
  26767. "directory": {
  26768. "type": "string"
  26769. }
  26770. },
  26771. "required": [
  26772. "directory"
  26773. ],
  26774. "additionalProperties": false
  26775. },
  26776. "ProjectCopyError": {
  26777. "type": "object",
  26778. "properties": {
  26779. "name": {
  26780. "type": "string",
  26781. "enum": [
  26782. "ProjectCopyError"
  26783. ]
  26784. },
  26785. "data": {
  26786. "type": "object",
  26787. "properties": {
  26788. "message": {
  26789. "type": "string"
  26790. },
  26791. "forceRequired": {
  26792. "anyOf": [
  26793. {
  26794. "type": "boolean"
  26795. },
  26796. {
  26797. "type": "null"
  26798. }
  26799. ]
  26800. }
  26801. },
  26802. "required": [
  26803. "message"
  26804. ],
  26805. "additionalProperties": false
  26806. }
  26807. },
  26808. "required": [
  26809. "name",
  26810. "data"
  26811. ],
  26812. "additionalProperties": false
  26813. },
  26814. "Vcs.FileStatus": {
  26815. "type": "object",
  26816. "properties": {
  26817. "file": {
  26818. "type": "string"
  26819. },
  26820. "additions": {
  26821. "type": "integer",
  26822. "allOf": [
  26823. {
  26824. "minimum": 0
  26825. }
  26826. ]
  26827. },
  26828. "deletions": {
  26829. "type": "integer",
  26830. "allOf": [
  26831. {
  26832. "minimum": 0
  26833. }
  26834. ]
  26835. },
  26836. "status": {
  26837. "type": "string",
  26838. "enum": [
  26839. "added",
  26840. "deleted",
  26841. "modified"
  26842. ]
  26843. }
  26844. },
  26845. "required": [
  26846. "file",
  26847. "additions",
  26848. "deletions",
  26849. "status"
  26850. ],
  26851. "additionalProperties": false
  26852. },
  26853. "Vcs.Mode": {
  26854. "type": "string",
  26855. "enum": [
  26856. "working",
  26857. "branch"
  26858. ]
  26859. }
  26860. },
  26861. "securitySchemes": {}
  26862. },
  26863. "security": [],
  26864. "tags": [
  26865. {
  26866. "name": "server.health"
  26867. },
  26868. {
  26869. "name": "server.location"
  26870. },
  26871. {
  26872. "name": "server.agent"
  26873. },
  26874. {
  26875. "name": "plugins",
  26876. "description": "Experimental plugin routes."
  26877. },
  26878. {
  26879. "name": "sessions",
  26880. "description": "Experimental session routes."
  26881. },
  26882. {
  26883. "name": "messages",
  26884. "description": "Experimental message routes."
  26885. },
  26886. {
  26887. "name": "models",
  26888. "description": "Experimental model routes."
  26889. },
  26890. {
  26891. "name": "generate",
  26892. "description": "Experimental one-shot generation routes."
  26893. },
  26894. {
  26895. "name": "providers",
  26896. "description": "Experimental provider routes."
  26897. },
  26898. {
  26899. "name": "integrations",
  26900. "description": "Integration discovery and authentication routes."
  26901. },
  26902. {
  26903. "name": "mcp",
  26904. "description": "MCP server status routes."
  26905. },
  26906. {
  26907. "name": "server.credential"
  26908. },
  26909. {
  26910. "name": "projects",
  26911. "description": "Location-scoped project routes."
  26912. },
  26913. {
  26914. "name": "forms",
  26915. "description": "Session form routes."
  26916. },
  26917. {
  26918. "name": "permissions",
  26919. "description": "Experimental permission routes."
  26920. },
  26921. {
  26922. "name": "filesystem",
  26923. "description": "Experimental location-scoped filesystem routes."
  26924. },
  26925. {
  26926. "name": "commands",
  26927. "description": "Experimental command routes."
  26928. },
  26929. {
  26930. "name": "skills",
  26931. "description": "Experimental skill routes."
  26932. },
  26933. {
  26934. "name": "events",
  26935. "description": "Experimental event stream routes."
  26936. },
  26937. {
  26938. "name": "pty",
  26939. "description": "Experimental location-scoped PTY routes."
  26940. },
  26941. {
  26942. "name": "shell",
  26943. "description": "Experimental location-scoped shell command routes."
  26944. },
  26945. {
  26946. "name": "session questions",
  26947. "description": "Experimental session question routes."
  26948. },
  26949. {
  26950. "name": "reference",
  26951. "description": "Location-scoped project references."
  26952. },
  26953. {
  26954. "name": "projectCopy",
  26955. "description": "Project copy management routes."
  26956. },
  26957. {
  26958. "name": "vcs",
  26959. "description": "Location-scoped version control routes."
  26960. }
  26961. ]
  26962. }