openapi.json 667 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "opencode HttpApi",
  5. "version": "0.0.1",
  6. "description": "Experimental HttpApi surface for selected instance routes."
  7. },
  8. "paths": {
  9. "/api/health": {
  10. "get": {
  11. "tags": [
  12. "health"
  13. ],
  14. "operationId": "v2.health.get",
  15. "parameters": [],
  16. "security": [],
  17. "responses": {
  18. "200": {
  19. "description": "Success",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "type": "object",
  24. "properties": {
  25. "healthy": {
  26. "type": "boolean",
  27. "enum": [
  28. true
  29. ]
  30. },
  31. "version": {
  32. "type": "string"
  33. },
  34. "pid": {
  35. "type": "integer",
  36. "allOf": [
  37. {
  38. "exclusiveMinimum": 0
  39. }
  40. ]
  41. }
  42. },
  43. "required": [
  44. "healthy",
  45. "version",
  46. "pid"
  47. ],
  48. "additionalProperties": false
  49. }
  50. }
  51. }
  52. },
  53. "400": {
  54. "description": "InvalidRequestError",
  55. "content": {
  56. "application/json": {
  57. "schema": {
  58. "$ref": "#/components/schemas/InvalidRequestError"
  59. }
  60. }
  61. }
  62. },
  63. "401": {
  64. "description": "UnauthorizedError",
  65. "content": {
  66. "application/json": {
  67. "schema": {
  68. "$ref": "#/components/schemas/UnauthorizedError"
  69. }
  70. }
  71. }
  72. }
  73. },
  74. "description": "Check whether the API server is ready to accept requests.",
  75. "summary": "Check server health"
  76. }
  77. },
  78. "/api/server": {
  79. "get": {
  80. "tags": [
  81. "server"
  82. ],
  83. "operationId": "v2.server.get",
  84. "parameters": [],
  85. "security": [],
  86. "responses": {
  87. "200": {
  88. "description": "Success",
  89. "content": {
  90. "application/json": {
  91. "schema": {
  92. "type": "object",
  93. "properties": {
  94. "urls": {
  95. "type": "array",
  96. "items": {
  97. "type": "string"
  98. }
  99. }
  100. },
  101. "required": [
  102. "urls"
  103. ],
  104. "additionalProperties": false
  105. }
  106. }
  107. }
  108. },
  109. "400": {
  110. "description": "InvalidRequestError",
  111. "content": {
  112. "application/json": {
  113. "schema": {
  114. "$ref": "#/components/schemas/InvalidRequestError"
  115. }
  116. }
  117. }
  118. },
  119. "401": {
  120. "description": "UnauthorizedError",
  121. "content": {
  122. "application/json": {
  123. "schema": {
  124. "$ref": "#/components/schemas/UnauthorizedError"
  125. }
  126. }
  127. }
  128. }
  129. },
  130. "description": "Return the URLs that can be used to connect to this server.",
  131. "summary": "Get server information"
  132. }
  133. },
  134. "/api/location": {
  135. "get": {
  136. "tags": [
  137. "location"
  138. ],
  139. "operationId": "v2.location.get",
  140. "parameters": [
  141. {
  142. "name": "location",
  143. "in": "query",
  144. "schema": {
  145. "anyOf": [
  146. {
  147. "type": "object",
  148. "properties": {
  149. "directory": {
  150. "anyOf": [
  151. {
  152. "type": "string"
  153. },
  154. {
  155. "type": "null"
  156. }
  157. ]
  158. },
  159. "workspace": {
  160. "anyOf": [
  161. {
  162. "type": "string"
  163. },
  164. {
  165. "type": "null"
  166. }
  167. ]
  168. }
  169. },
  170. "additionalProperties": false
  171. },
  172. {
  173. "type": "null"
  174. }
  175. ]
  176. },
  177. "required": false,
  178. "style": "deepObject",
  179. "explode": true
  180. }
  181. ],
  182. "security": [],
  183. "responses": {
  184. "200": {
  185. "description": "Location.Info",
  186. "content": {
  187. "application/json": {
  188. "schema": {
  189. "$ref": "#/components/schemas/Location.Info"
  190. }
  191. }
  192. }
  193. },
  194. "400": {
  195. "description": "InvalidRequestError",
  196. "content": {
  197. "application/json": {
  198. "schema": {
  199. "$ref": "#/components/schemas/InvalidRequestError"
  200. }
  201. }
  202. }
  203. },
  204. "401": {
  205. "description": "UnauthorizedError",
  206. "content": {
  207. "application/json": {
  208. "schema": {
  209. "$ref": "#/components/schemas/UnauthorizedError"
  210. }
  211. }
  212. }
  213. }
  214. },
  215. "description": "Resolve the requested location or the server default location.",
  216. "summary": "Get location"
  217. }
  218. },
  219. "/api/agent": {
  220. "get": {
  221. "tags": [
  222. "agent"
  223. ],
  224. "operationId": "v2.agent.list",
  225. "parameters": [
  226. {
  227. "name": "location",
  228. "in": "query",
  229. "schema": {
  230. "anyOf": [
  231. {
  232. "type": "object",
  233. "properties": {
  234. "directory": {
  235. "anyOf": [
  236. {
  237. "type": "string"
  238. },
  239. {
  240. "type": "null"
  241. }
  242. ]
  243. },
  244. "workspace": {
  245. "anyOf": [
  246. {
  247. "type": "string"
  248. },
  249. {
  250. "type": "null"
  251. }
  252. ]
  253. }
  254. },
  255. "additionalProperties": false
  256. },
  257. {
  258. "type": "null"
  259. }
  260. ]
  261. },
  262. "required": false,
  263. "style": "deepObject",
  264. "explode": true
  265. }
  266. ],
  267. "security": [],
  268. "responses": {
  269. "200": {
  270. "description": "Success",
  271. "content": {
  272. "application/json": {
  273. "schema": {
  274. "type": "object",
  275. "properties": {
  276. "location": {
  277. "$ref": "#/components/schemas/Location.Info"
  278. },
  279. "data": {
  280. "type": "array",
  281. "items": {
  282. "$ref": "#/components/schemas/Agent.Info"
  283. }
  284. }
  285. },
  286. "required": [
  287. "location",
  288. "data"
  289. ],
  290. "additionalProperties": false
  291. }
  292. }
  293. }
  294. },
  295. "400": {
  296. "description": "InvalidRequestError",
  297. "content": {
  298. "application/json": {
  299. "schema": {
  300. "$ref": "#/components/schemas/InvalidRequestError"
  301. }
  302. }
  303. }
  304. },
  305. "401": {
  306. "description": "UnauthorizedError",
  307. "content": {
  308. "application/json": {
  309. "schema": {
  310. "$ref": "#/components/schemas/UnauthorizedError"
  311. }
  312. }
  313. }
  314. }
  315. },
  316. "description": "Retrieve currently registered agents.",
  317. "summary": "List agents"
  318. }
  319. },
  320. "/api/plugin": {
  321. "get": {
  322. "tags": [
  323. "plugin"
  324. ],
  325. "operationId": "v2.plugin.list",
  326. "parameters": [
  327. {
  328. "name": "location",
  329. "in": "query",
  330. "schema": {
  331. "anyOf": [
  332. {
  333. "type": "object",
  334. "properties": {
  335. "directory": {
  336. "anyOf": [
  337. {
  338. "type": "string"
  339. },
  340. {
  341. "type": "null"
  342. }
  343. ]
  344. },
  345. "workspace": {
  346. "anyOf": [
  347. {
  348. "type": "string"
  349. },
  350. {
  351. "type": "null"
  352. }
  353. ]
  354. }
  355. },
  356. "additionalProperties": false
  357. },
  358. {
  359. "type": "null"
  360. }
  361. ]
  362. },
  363. "required": false,
  364. "style": "deepObject",
  365. "explode": true
  366. }
  367. ],
  368. "security": [],
  369. "responses": {
  370. "200": {
  371. "description": "Success",
  372. "content": {
  373. "application/json": {
  374. "schema": {
  375. "type": "object",
  376. "properties": {
  377. "location": {
  378. "$ref": "#/components/schemas/Location.Info"
  379. },
  380. "data": {
  381. "type": "array",
  382. "items": {
  383. "$ref": "#/components/schemas/Plugin.Info"
  384. }
  385. }
  386. },
  387. "required": [
  388. "location",
  389. "data"
  390. ],
  391. "additionalProperties": false
  392. }
  393. }
  394. }
  395. },
  396. "400": {
  397. "description": "InvalidRequestError",
  398. "content": {
  399. "application/json": {
  400. "schema": {
  401. "$ref": "#/components/schemas/InvalidRequestError"
  402. }
  403. }
  404. }
  405. },
  406. "401": {
  407. "description": "UnauthorizedError",
  408. "content": {
  409. "application/json": {
  410. "schema": {
  411. "$ref": "#/components/schemas/UnauthorizedError"
  412. }
  413. }
  414. }
  415. }
  416. },
  417. "description": "Retrieve currently loaded plugins.",
  418. "summary": "List plugins"
  419. }
  420. },
  421. "/api/session": {
  422. "get": {
  423. "tags": [
  424. "session"
  425. ],
  426. "operationId": "v2.session.list",
  427. "parameters": [
  428. {
  429. "name": "workspace",
  430. "in": "query",
  431. "schema": {
  432. "anyOf": [
  433. {
  434. "type": "string",
  435. "allOf": [
  436. {
  437. "pattern": "^wrk"
  438. }
  439. ]
  440. },
  441. {
  442. "type": "null"
  443. }
  444. ]
  445. },
  446. "required": false
  447. },
  448. {
  449. "name": "limit",
  450. "in": "query",
  451. "schema": {
  452. "anyOf": [
  453. {
  454. "type": "string"
  455. },
  456. {
  457. "type": "null"
  458. }
  459. ],
  460. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  461. },
  462. "required": false
  463. },
  464. {
  465. "name": "order",
  466. "in": "query",
  467. "schema": {
  468. "anyOf": [
  469. {
  470. "type": "string",
  471. "enum": [
  472. "asc",
  473. "desc"
  474. ]
  475. },
  476. {
  477. "type": "null"
  478. }
  479. ],
  480. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  481. },
  482. "required": false
  483. },
  484. {
  485. "name": "search",
  486. "in": "query",
  487. "schema": {
  488. "anyOf": [
  489. {
  490. "type": "string"
  491. },
  492. {
  493. "type": "null"
  494. }
  495. ]
  496. },
  497. "required": false
  498. },
  499. {
  500. "name": "parentID",
  501. "in": "query",
  502. "schema": {
  503. "anyOf": [
  504. {
  505. "anyOf": [
  506. {
  507. "type": "string",
  508. "allOf": [
  509. {
  510. "pattern": "^ses"
  511. }
  512. ]
  513. },
  514. {
  515. "type": "string",
  516. "enum": [
  517. "null"
  518. ]
  519. }
  520. ],
  521. "description": "Filter by parent session. Use null to return only root sessions."
  522. },
  523. {
  524. "type": "null"
  525. }
  526. ]
  527. },
  528. "required": false
  529. },
  530. {
  531. "name": "directory",
  532. "in": "query",
  533. "schema": {
  534. "anyOf": [
  535. {
  536. "type": "string"
  537. },
  538. {
  539. "type": "null"
  540. }
  541. ]
  542. },
  543. "required": false
  544. },
  545. {
  546. "name": "project",
  547. "in": "query",
  548. "schema": {
  549. "anyOf": [
  550. {
  551. "type": "string"
  552. },
  553. {
  554. "type": "null"
  555. }
  556. ]
  557. },
  558. "required": false
  559. },
  560. {
  561. "name": "subpath",
  562. "in": "query",
  563. "schema": {
  564. "anyOf": [
  565. {
  566. "type": "string"
  567. },
  568. {
  569. "type": "null"
  570. }
  571. ]
  572. },
  573. "required": false
  574. },
  575. {
  576. "name": "cursor",
  577. "in": "query",
  578. "schema": {
  579. "anyOf": [
  580. {
  581. "type": "string",
  582. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  583. },
  584. {
  585. "type": "null"
  586. }
  587. ]
  588. },
  589. "required": false
  590. }
  591. ],
  592. "security": [],
  593. "responses": {
  594. "200": {
  595. "description": "SessionsResponse",
  596. "content": {
  597. "application/json": {
  598. "schema": {
  599. "$ref": "#/components/schemas/SessionsResponse"
  600. }
  601. }
  602. }
  603. },
  604. "400": {
  605. "description": "InvalidCursorError | InvalidRequestError",
  606. "content": {
  607. "application/json": {
  608. "schema": {
  609. "anyOf": [
  610. {
  611. "$ref": "#/components/schemas/InvalidCursorError"
  612. },
  613. {
  614. "$ref": "#/components/schemas/InvalidRequestError1"
  615. },
  616. {
  617. "$ref": "#/components/schemas/InvalidRequestError"
  618. }
  619. ]
  620. }
  621. }
  622. }
  623. },
  624. "401": {
  625. "description": "UnauthorizedError",
  626. "content": {
  627. "application/json": {
  628. "schema": {
  629. "$ref": "#/components/schemas/UnauthorizedError"
  630. }
  631. }
  632. }
  633. }
  634. },
  635. "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
  636. "summary": "List sessions"
  637. },
  638. "post": {
  639. "tags": [
  640. "session"
  641. ],
  642. "operationId": "v2.session.create",
  643. "parameters": [],
  644. "security": [],
  645. "responses": {
  646. "200": {
  647. "description": "Success",
  648. "content": {
  649. "application/json": {
  650. "schema": {
  651. "type": "object",
  652. "properties": {
  653. "data": {
  654. "$ref": "#/components/schemas/Session.Info"
  655. }
  656. },
  657. "required": [
  658. "data"
  659. ],
  660. "additionalProperties": false
  661. }
  662. }
  663. }
  664. },
  665. "400": {
  666. "description": "InvalidRequestError",
  667. "content": {
  668. "application/json": {
  669. "schema": {
  670. "$ref": "#/components/schemas/InvalidRequestError"
  671. }
  672. }
  673. }
  674. },
  675. "401": {
  676. "description": "UnauthorizedError",
  677. "content": {
  678. "application/json": {
  679. "schema": {
  680. "$ref": "#/components/schemas/UnauthorizedError"
  681. }
  682. }
  683. }
  684. }
  685. },
  686. "description": "Create a session at the requested location.",
  687. "summary": "Create session",
  688. "requestBody": {
  689. "content": {
  690. "application/json": {
  691. "schema": {
  692. "type": "object",
  693. "properties": {
  694. "id": {
  695. "anyOf": [
  696. {
  697. "type": "string",
  698. "allOf": [
  699. {
  700. "pattern": "^ses"
  701. }
  702. ]
  703. },
  704. {
  705. "type": "null"
  706. }
  707. ]
  708. },
  709. "agent": {
  710. "anyOf": [
  711. {
  712. "type": "string"
  713. },
  714. {
  715. "type": "null"
  716. }
  717. ]
  718. },
  719. "model": {
  720. "anyOf": [
  721. {
  722. "$ref": "#/components/schemas/Model.Ref"
  723. },
  724. {
  725. "type": "null"
  726. }
  727. ]
  728. },
  729. "location": {
  730. "anyOf": [
  731. {
  732. "$ref": "#/components/schemas/Location.Ref"
  733. },
  734. {
  735. "type": "null"
  736. }
  737. ]
  738. }
  739. },
  740. "additionalProperties": false
  741. }
  742. }
  743. },
  744. "required": true
  745. }
  746. }
  747. },
  748. "/api/session/active": {
  749. "get": {
  750. "tags": [
  751. "session"
  752. ],
  753. "operationId": "v2.session.active",
  754. "parameters": [],
  755. "security": [],
  756. "responses": {
  757. "200": {
  758. "description": "Success",
  759. "content": {
  760. "application/json": {
  761. "schema": {
  762. "type": "object",
  763. "properties": {
  764. "data": {
  765. "type": "object",
  766. "patternProperties": {
  767. "^ses": {
  768. "$ref": "#/components/schemas/SessionActive"
  769. }
  770. }
  771. }
  772. },
  773. "required": [
  774. "data"
  775. ],
  776. "additionalProperties": false
  777. }
  778. }
  779. }
  780. },
  781. "400": {
  782. "description": "InvalidRequestError",
  783. "content": {
  784. "application/json": {
  785. "schema": {
  786. "$ref": "#/components/schemas/InvalidRequestError"
  787. }
  788. }
  789. }
  790. },
  791. "401": {
  792. "description": "UnauthorizedError",
  793. "content": {
  794. "application/json": {
  795. "schema": {
  796. "$ref": "#/components/schemas/UnauthorizedError"
  797. }
  798. }
  799. }
  800. }
  801. },
  802. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  803. "summary": "List active sessions"
  804. }
  805. },
  806. "/api/session/{sessionID}": {
  807. "get": {
  808. "tags": [
  809. "session"
  810. ],
  811. "operationId": "v2.session.get",
  812. "parameters": [
  813. {
  814. "name": "sessionID",
  815. "in": "path",
  816. "schema": {
  817. "type": "string",
  818. "allOf": [
  819. {
  820. "pattern": "^ses"
  821. }
  822. ]
  823. },
  824. "required": true
  825. }
  826. ],
  827. "security": [],
  828. "responses": {
  829. "200": {
  830. "description": "Success",
  831. "content": {
  832. "application/json": {
  833. "schema": {
  834. "type": "object",
  835. "properties": {
  836. "data": {
  837. "$ref": "#/components/schemas/Session.Info"
  838. }
  839. },
  840. "required": [
  841. "data"
  842. ],
  843. "additionalProperties": false
  844. }
  845. }
  846. }
  847. },
  848. "400": {
  849. "description": "InvalidRequestError",
  850. "content": {
  851. "application/json": {
  852. "schema": {
  853. "$ref": "#/components/schemas/InvalidRequestError"
  854. }
  855. }
  856. }
  857. },
  858. "401": {
  859. "description": "UnauthorizedError",
  860. "content": {
  861. "application/json": {
  862. "schema": {
  863. "$ref": "#/components/schemas/UnauthorizedError"
  864. }
  865. }
  866. }
  867. },
  868. "404": {
  869. "description": "SessionNotFoundError",
  870. "content": {
  871. "application/json": {
  872. "schema": {
  873. "anyOf": [
  874. {
  875. "$ref": "#/components/schemas/SessionNotFoundError"
  876. },
  877. {
  878. "$ref": "#/components/schemas/SessionNotFoundError"
  879. }
  880. ]
  881. }
  882. }
  883. }
  884. }
  885. },
  886. "description": "Retrieve a session by ID.",
  887. "summary": "Get session"
  888. },
  889. "delete": {
  890. "tags": [
  891. "session"
  892. ],
  893. "operationId": "v2.session.remove",
  894. "parameters": [
  895. {
  896. "name": "sessionID",
  897. "in": "path",
  898. "schema": {
  899. "type": "string",
  900. "allOf": [
  901. {
  902. "pattern": "^ses"
  903. }
  904. ]
  905. },
  906. "required": true
  907. }
  908. ],
  909. "security": [],
  910. "responses": {
  911. "204": {
  912. "description": "<No Content>"
  913. },
  914. "400": {
  915. "description": "InvalidRequestError",
  916. "content": {
  917. "application/json": {
  918. "schema": {
  919. "$ref": "#/components/schemas/InvalidRequestError"
  920. }
  921. }
  922. }
  923. },
  924. "401": {
  925. "description": "UnauthorizedError",
  926. "content": {
  927. "application/json": {
  928. "schema": {
  929. "$ref": "#/components/schemas/UnauthorizedError"
  930. }
  931. }
  932. }
  933. },
  934. "404": {
  935. "description": "SessionNotFoundError",
  936. "content": {
  937. "application/json": {
  938. "schema": {
  939. "anyOf": [
  940. {
  941. "$ref": "#/components/schemas/SessionNotFoundError"
  942. },
  943. {
  944. "$ref": "#/components/schemas/SessionNotFoundError"
  945. }
  946. ]
  947. }
  948. }
  949. }
  950. }
  951. },
  952. "description": "Delete a session and its child sessions.",
  953. "summary": "Delete session"
  954. }
  955. },
  956. "/api/session/{sessionID}/fork": {
  957. "post": {
  958. "tags": [
  959. "session"
  960. ],
  961. "operationId": "v2.session.fork",
  962. "parameters": [
  963. {
  964. "name": "sessionID",
  965. "in": "path",
  966. "schema": {
  967. "type": "string",
  968. "allOf": [
  969. {
  970. "pattern": "^ses"
  971. }
  972. ]
  973. },
  974. "required": true
  975. }
  976. ],
  977. "security": [],
  978. "responses": {
  979. "200": {
  980. "description": "Success",
  981. "content": {
  982. "application/json": {
  983. "schema": {
  984. "type": "object",
  985. "properties": {
  986. "data": {
  987. "$ref": "#/components/schemas/Session.Info"
  988. }
  989. },
  990. "required": [
  991. "data"
  992. ],
  993. "additionalProperties": false
  994. }
  995. }
  996. }
  997. },
  998. "400": {
  999. "description": "InvalidRequestError",
  1000. "content": {
  1001. "application/json": {
  1002. "schema": {
  1003. "$ref": "#/components/schemas/InvalidRequestError"
  1004. }
  1005. }
  1006. }
  1007. },
  1008. "401": {
  1009. "description": "UnauthorizedError",
  1010. "content": {
  1011. "application/json": {
  1012. "schema": {
  1013. "$ref": "#/components/schemas/UnauthorizedError"
  1014. }
  1015. }
  1016. }
  1017. },
  1018. "404": {
  1019. "description": "SessionNotFoundError | MessageNotFoundError",
  1020. "content": {
  1021. "application/json": {
  1022. "schema": {
  1023. "anyOf": [
  1024. {
  1025. "$ref": "#/components/schemas/MessageNotFoundError"
  1026. },
  1027. {
  1028. "$ref": "#/components/schemas/SessionNotFoundError"
  1029. },
  1030. {
  1031. "$ref": "#/components/schemas/SessionNotFoundError"
  1032. }
  1033. ]
  1034. }
  1035. }
  1036. }
  1037. }
  1038. },
  1039. "description": "Create a child session by copying projected history from the parent. When messageID is supplied, copy messages before that boundary.",
  1040. "summary": "Fork session",
  1041. "requestBody": {
  1042. "content": {
  1043. "application/json": {
  1044. "schema": {
  1045. "type": "object",
  1046. "properties": {
  1047. "messageID": {
  1048. "anyOf": [
  1049. {
  1050. "type": "string",
  1051. "allOf": [
  1052. {
  1053. "pattern": "^msg_"
  1054. }
  1055. ]
  1056. },
  1057. {
  1058. "type": "null"
  1059. }
  1060. ]
  1061. }
  1062. },
  1063. "additionalProperties": false
  1064. }
  1065. }
  1066. },
  1067. "required": true
  1068. }
  1069. }
  1070. },
  1071. "/api/session/{sessionID}/agent": {
  1072. "post": {
  1073. "tags": [
  1074. "session"
  1075. ],
  1076. "operationId": "v2.session.switchAgent",
  1077. "parameters": [
  1078. {
  1079. "name": "sessionID",
  1080. "in": "path",
  1081. "schema": {
  1082. "type": "string",
  1083. "allOf": [
  1084. {
  1085. "pattern": "^ses"
  1086. }
  1087. ]
  1088. },
  1089. "required": true
  1090. }
  1091. ],
  1092. "security": [],
  1093. "responses": {
  1094. "204": {
  1095. "description": "<No Content>"
  1096. },
  1097. "400": {
  1098. "description": "InvalidRequestError",
  1099. "content": {
  1100. "application/json": {
  1101. "schema": {
  1102. "$ref": "#/components/schemas/InvalidRequestError"
  1103. }
  1104. }
  1105. }
  1106. },
  1107. "401": {
  1108. "description": "UnauthorizedError",
  1109. "content": {
  1110. "application/json": {
  1111. "schema": {
  1112. "$ref": "#/components/schemas/UnauthorizedError"
  1113. }
  1114. }
  1115. }
  1116. },
  1117. "404": {
  1118. "description": "SessionNotFoundError",
  1119. "content": {
  1120. "application/json": {
  1121. "schema": {
  1122. "anyOf": [
  1123. {
  1124. "$ref": "#/components/schemas/SessionNotFoundError"
  1125. },
  1126. {
  1127. "$ref": "#/components/schemas/SessionNotFoundError"
  1128. }
  1129. ]
  1130. }
  1131. }
  1132. }
  1133. }
  1134. },
  1135. "description": "Switch the agent used by subsequent provider turns.",
  1136. "summary": "Switch session agent",
  1137. "requestBody": {
  1138. "content": {
  1139. "application/json": {
  1140. "schema": {
  1141. "type": "object",
  1142. "properties": {
  1143. "agent": {
  1144. "type": "string"
  1145. }
  1146. },
  1147. "required": [
  1148. "agent"
  1149. ],
  1150. "additionalProperties": false
  1151. }
  1152. }
  1153. },
  1154. "required": true
  1155. }
  1156. }
  1157. },
  1158. "/api/session/{sessionID}/model": {
  1159. "post": {
  1160. "tags": [
  1161. "session"
  1162. ],
  1163. "operationId": "v2.session.switchModel",
  1164. "parameters": [
  1165. {
  1166. "name": "sessionID",
  1167. "in": "path",
  1168. "schema": {
  1169. "type": "string",
  1170. "allOf": [
  1171. {
  1172. "pattern": "^ses"
  1173. }
  1174. ]
  1175. },
  1176. "required": true
  1177. }
  1178. ],
  1179. "security": [],
  1180. "responses": {
  1181. "204": {
  1182. "description": "<No Content>"
  1183. },
  1184. "400": {
  1185. "description": "InvalidRequestError",
  1186. "content": {
  1187. "application/json": {
  1188. "schema": {
  1189. "$ref": "#/components/schemas/InvalidRequestError"
  1190. }
  1191. }
  1192. }
  1193. },
  1194. "401": {
  1195. "description": "UnauthorizedError",
  1196. "content": {
  1197. "application/json": {
  1198. "schema": {
  1199. "$ref": "#/components/schemas/UnauthorizedError"
  1200. }
  1201. }
  1202. }
  1203. },
  1204. "404": {
  1205. "description": "SessionNotFoundError",
  1206. "content": {
  1207. "application/json": {
  1208. "schema": {
  1209. "anyOf": [
  1210. {
  1211. "$ref": "#/components/schemas/SessionNotFoundError"
  1212. },
  1213. {
  1214. "$ref": "#/components/schemas/SessionNotFoundError"
  1215. }
  1216. ]
  1217. }
  1218. }
  1219. }
  1220. }
  1221. },
  1222. "description": "Switch the model used by subsequent provider turns.",
  1223. "summary": "Switch session model",
  1224. "requestBody": {
  1225. "content": {
  1226. "application/json": {
  1227. "schema": {
  1228. "type": "object",
  1229. "properties": {
  1230. "model": {
  1231. "$ref": "#/components/schemas/Model.Ref"
  1232. }
  1233. },
  1234. "required": [
  1235. "model"
  1236. ],
  1237. "additionalProperties": false
  1238. }
  1239. }
  1240. },
  1241. "required": true
  1242. }
  1243. }
  1244. },
  1245. "/api/session/{sessionID}/rename": {
  1246. "post": {
  1247. "tags": [
  1248. "session"
  1249. ],
  1250. "operationId": "v2.session.rename",
  1251. "parameters": [
  1252. {
  1253. "name": "sessionID",
  1254. "in": "path",
  1255. "schema": {
  1256. "type": "string",
  1257. "allOf": [
  1258. {
  1259. "pattern": "^ses"
  1260. }
  1261. ]
  1262. },
  1263. "required": true
  1264. }
  1265. ],
  1266. "security": [],
  1267. "responses": {
  1268. "204": {
  1269. "description": "<No Content>"
  1270. },
  1271. "400": {
  1272. "description": "InvalidRequestError",
  1273. "content": {
  1274. "application/json": {
  1275. "schema": {
  1276. "$ref": "#/components/schemas/InvalidRequestError"
  1277. }
  1278. }
  1279. }
  1280. },
  1281. "401": {
  1282. "description": "UnauthorizedError",
  1283. "content": {
  1284. "application/json": {
  1285. "schema": {
  1286. "$ref": "#/components/schemas/UnauthorizedError"
  1287. }
  1288. }
  1289. }
  1290. },
  1291. "404": {
  1292. "description": "SessionNotFoundError",
  1293. "content": {
  1294. "application/json": {
  1295. "schema": {
  1296. "anyOf": [
  1297. {
  1298. "$ref": "#/components/schemas/SessionNotFoundError"
  1299. },
  1300. {
  1301. "$ref": "#/components/schemas/SessionNotFoundError"
  1302. }
  1303. ]
  1304. }
  1305. }
  1306. }
  1307. }
  1308. },
  1309. "description": "Update the session title.",
  1310. "summary": "Rename session",
  1311. "requestBody": {
  1312. "content": {
  1313. "application/json": {
  1314. "schema": {
  1315. "type": "object",
  1316. "properties": {
  1317. "title": {
  1318. "type": "string"
  1319. }
  1320. },
  1321. "required": [
  1322. "title"
  1323. ],
  1324. "additionalProperties": false
  1325. }
  1326. }
  1327. },
  1328. "required": true
  1329. }
  1330. }
  1331. },
  1332. "/api/session/{sessionID}/move": {
  1333. "post": {
  1334. "tags": [
  1335. "session"
  1336. ],
  1337. "operationId": "v2.session.move",
  1338. "parameters": [
  1339. {
  1340. "name": "sessionID",
  1341. "in": "path",
  1342. "schema": {
  1343. "type": "string",
  1344. "allOf": [
  1345. {
  1346. "pattern": "^ses"
  1347. }
  1348. ]
  1349. },
  1350. "required": true
  1351. }
  1352. ],
  1353. "security": [],
  1354. "responses": {
  1355. "204": {
  1356. "description": "<No Content>"
  1357. },
  1358. "400": {
  1359. "description": "InvalidRequestError",
  1360. "content": {
  1361. "application/json": {
  1362. "schema": {
  1363. "anyOf": [
  1364. {
  1365. "$ref": "#/components/schemas/InvalidRequestError1"
  1366. },
  1367. {
  1368. "$ref": "#/components/schemas/InvalidRequestError"
  1369. }
  1370. ]
  1371. }
  1372. }
  1373. }
  1374. },
  1375. "401": {
  1376. "description": "UnauthorizedError",
  1377. "content": {
  1378. "application/json": {
  1379. "schema": {
  1380. "$ref": "#/components/schemas/UnauthorizedError"
  1381. }
  1382. }
  1383. }
  1384. },
  1385. "404": {
  1386. "description": "SessionNotFoundError",
  1387. "content": {
  1388. "application/json": {
  1389. "schema": {
  1390. "anyOf": [
  1391. {
  1392. "$ref": "#/components/schemas/SessionNotFoundError"
  1393. },
  1394. {
  1395. "$ref": "#/components/schemas/SessionNotFoundError"
  1396. }
  1397. ]
  1398. }
  1399. }
  1400. }
  1401. }
  1402. },
  1403. "description": "Move a session to another project directory, optionally transferring local changes.",
  1404. "summary": "Move session",
  1405. "requestBody": {
  1406. "content": {
  1407. "application/json": {
  1408. "schema": {
  1409. "type": "object",
  1410. "properties": {
  1411. "destination": {
  1412. "type": "object",
  1413. "properties": {
  1414. "directory": {
  1415. "type": "string"
  1416. }
  1417. },
  1418. "required": [
  1419. "directory"
  1420. ],
  1421. "additionalProperties": false
  1422. },
  1423. "moveChanges": {
  1424. "anyOf": [
  1425. {
  1426. "type": "boolean"
  1427. },
  1428. {
  1429. "type": "null"
  1430. }
  1431. ]
  1432. }
  1433. },
  1434. "required": [
  1435. "destination"
  1436. ],
  1437. "additionalProperties": false
  1438. }
  1439. }
  1440. },
  1441. "required": true
  1442. }
  1443. }
  1444. },
  1445. "/api/session/{sessionID}/prompt": {
  1446. "post": {
  1447. "tags": [
  1448. "session"
  1449. ],
  1450. "operationId": "v2.session.prompt",
  1451. "parameters": [
  1452. {
  1453. "name": "sessionID",
  1454. "in": "path",
  1455. "schema": {
  1456. "type": "string",
  1457. "allOf": [
  1458. {
  1459. "pattern": "^ses"
  1460. }
  1461. ]
  1462. },
  1463. "required": true
  1464. }
  1465. ],
  1466. "security": [],
  1467. "responses": {
  1468. "200": {
  1469. "description": "Success",
  1470. "content": {
  1471. "application/json": {
  1472. "schema": {
  1473. "type": "object",
  1474. "properties": {
  1475. "data": {
  1476. "$ref": "#/components/schemas/SessionInput.Admitted"
  1477. }
  1478. },
  1479. "required": [
  1480. "data"
  1481. ],
  1482. "additionalProperties": false
  1483. }
  1484. }
  1485. }
  1486. },
  1487. "400": {
  1488. "description": "InvalidRequestError",
  1489. "content": {
  1490. "application/json": {
  1491. "schema": {
  1492. "anyOf": [
  1493. {
  1494. "$ref": "#/components/schemas/InvalidRequestError1"
  1495. },
  1496. {
  1497. "$ref": "#/components/schemas/InvalidRequestError"
  1498. }
  1499. ]
  1500. }
  1501. }
  1502. }
  1503. },
  1504. "401": {
  1505. "description": "UnauthorizedError",
  1506. "content": {
  1507. "application/json": {
  1508. "schema": {
  1509. "$ref": "#/components/schemas/UnauthorizedError"
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "404": {
  1515. "description": "SessionNotFoundError",
  1516. "content": {
  1517. "application/json": {
  1518. "schema": {
  1519. "anyOf": [
  1520. {
  1521. "$ref": "#/components/schemas/SessionNotFoundError"
  1522. },
  1523. {
  1524. "$ref": "#/components/schemas/SessionNotFoundError"
  1525. }
  1526. ]
  1527. }
  1528. }
  1529. }
  1530. },
  1531. "409": {
  1532. "description": "ConflictError",
  1533. "content": {
  1534. "application/json": {
  1535. "schema": {
  1536. "$ref": "#/components/schemas/ConflictError"
  1537. }
  1538. }
  1539. }
  1540. }
  1541. },
  1542. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1543. "summary": "Send message",
  1544. "requestBody": {
  1545. "content": {
  1546. "application/json": {
  1547. "schema": {
  1548. "type": "object",
  1549. "properties": {
  1550. "id": {
  1551. "anyOf": [
  1552. {
  1553. "type": "string",
  1554. "allOf": [
  1555. {
  1556. "pattern": "^msg_"
  1557. }
  1558. ]
  1559. },
  1560. {
  1561. "type": "null"
  1562. }
  1563. ]
  1564. },
  1565. "prompt": {
  1566. "$ref": "#/components/schemas/PromptInput"
  1567. },
  1568. "delivery": {
  1569. "anyOf": [
  1570. {
  1571. "type": "string",
  1572. "enum": [
  1573. "steer",
  1574. "queue"
  1575. ]
  1576. },
  1577. {
  1578. "type": "null"
  1579. }
  1580. ]
  1581. },
  1582. "resume": {
  1583. "anyOf": [
  1584. {
  1585. "type": "boolean"
  1586. },
  1587. {
  1588. "type": "null"
  1589. }
  1590. ]
  1591. }
  1592. },
  1593. "required": [
  1594. "prompt"
  1595. ],
  1596. "additionalProperties": false
  1597. }
  1598. }
  1599. },
  1600. "required": true
  1601. }
  1602. }
  1603. },
  1604. "/api/session/{sessionID}/command": {
  1605. "post": {
  1606. "tags": [
  1607. "session"
  1608. ],
  1609. "operationId": "v2.session.command",
  1610. "parameters": [
  1611. {
  1612. "name": "sessionID",
  1613. "in": "path",
  1614. "schema": {
  1615. "type": "string",
  1616. "allOf": [
  1617. {
  1618. "pattern": "^ses"
  1619. }
  1620. ]
  1621. },
  1622. "required": true
  1623. }
  1624. ],
  1625. "security": [],
  1626. "responses": {
  1627. "200": {
  1628. "description": "Success",
  1629. "content": {
  1630. "application/json": {
  1631. "schema": {
  1632. "type": "object",
  1633. "properties": {
  1634. "data": {
  1635. "$ref": "#/components/schemas/SessionInput.Admitted"
  1636. }
  1637. },
  1638. "required": [
  1639. "data"
  1640. ],
  1641. "additionalProperties": false
  1642. }
  1643. }
  1644. }
  1645. },
  1646. "400": {
  1647. "description": "InvalidRequestError",
  1648. "content": {
  1649. "application/json": {
  1650. "schema": {
  1651. "anyOf": [
  1652. {
  1653. "$ref": "#/components/schemas/InvalidRequestError1"
  1654. },
  1655. {
  1656. "$ref": "#/components/schemas/InvalidRequestError"
  1657. }
  1658. ]
  1659. }
  1660. }
  1661. }
  1662. },
  1663. "401": {
  1664. "description": "UnauthorizedError",
  1665. "content": {
  1666. "application/json": {
  1667. "schema": {
  1668. "$ref": "#/components/schemas/UnauthorizedError"
  1669. }
  1670. }
  1671. }
  1672. },
  1673. "404": {
  1674. "description": "SessionNotFoundError | CommandNotFoundError",
  1675. "content": {
  1676. "application/json": {
  1677. "schema": {
  1678. "anyOf": [
  1679. {
  1680. "$ref": "#/components/schemas/CommandNotFoundError"
  1681. },
  1682. {
  1683. "$ref": "#/components/schemas/SessionNotFoundError"
  1684. },
  1685. {
  1686. "$ref": "#/components/schemas/SessionNotFoundError"
  1687. }
  1688. ]
  1689. }
  1690. }
  1691. }
  1692. },
  1693. "409": {
  1694. "description": "ConflictError",
  1695. "content": {
  1696. "application/json": {
  1697. "schema": {
  1698. "$ref": "#/components/schemas/ConflictError"
  1699. }
  1700. }
  1701. }
  1702. },
  1703. "500": {
  1704. "description": "CommandEvaluationError",
  1705. "content": {
  1706. "application/json": {
  1707. "schema": {
  1708. "$ref": "#/components/schemas/CommandEvaluationError"
  1709. }
  1710. }
  1711. }
  1712. }
  1713. },
  1714. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1715. "summary": "Run command",
  1716. "requestBody": {
  1717. "content": {
  1718. "application/json": {
  1719. "schema": {
  1720. "type": "object",
  1721. "properties": {
  1722. "id": {
  1723. "anyOf": [
  1724. {
  1725. "type": "string",
  1726. "allOf": [
  1727. {
  1728. "pattern": "^msg_"
  1729. }
  1730. ]
  1731. },
  1732. {
  1733. "type": "null"
  1734. }
  1735. ]
  1736. },
  1737. "command": {
  1738. "type": "string"
  1739. },
  1740. "arguments": {
  1741. "anyOf": [
  1742. {
  1743. "type": "string"
  1744. },
  1745. {
  1746. "type": "null"
  1747. }
  1748. ]
  1749. },
  1750. "agent": {
  1751. "anyOf": [
  1752. {
  1753. "type": "string"
  1754. },
  1755. {
  1756. "type": "null"
  1757. }
  1758. ]
  1759. },
  1760. "model": {
  1761. "anyOf": [
  1762. {
  1763. "$ref": "#/components/schemas/Model.Ref"
  1764. },
  1765. {
  1766. "type": "null"
  1767. }
  1768. ]
  1769. },
  1770. "files": {
  1771. "type": "array",
  1772. "items": {
  1773. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1774. }
  1775. },
  1776. "agents": {
  1777. "type": "array",
  1778. "items": {
  1779. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1780. }
  1781. },
  1782. "delivery": {
  1783. "anyOf": [
  1784. {
  1785. "type": "string",
  1786. "enum": [
  1787. "steer",
  1788. "queue"
  1789. ]
  1790. },
  1791. {
  1792. "type": "null"
  1793. }
  1794. ]
  1795. },
  1796. "resume": {
  1797. "anyOf": [
  1798. {
  1799. "type": "boolean"
  1800. },
  1801. {
  1802. "type": "null"
  1803. }
  1804. ]
  1805. }
  1806. },
  1807. "required": [
  1808. "command"
  1809. ],
  1810. "additionalProperties": false
  1811. }
  1812. }
  1813. },
  1814. "required": true
  1815. }
  1816. }
  1817. },
  1818. "/api/session/{sessionID}/skill": {
  1819. "post": {
  1820. "tags": [
  1821. "session"
  1822. ],
  1823. "operationId": "v2.session.skill",
  1824. "parameters": [
  1825. {
  1826. "name": "sessionID",
  1827. "in": "path",
  1828. "schema": {
  1829. "type": "string",
  1830. "allOf": [
  1831. {
  1832. "pattern": "^ses"
  1833. }
  1834. ]
  1835. },
  1836. "required": true
  1837. }
  1838. ],
  1839. "security": [],
  1840. "responses": {
  1841. "204": {
  1842. "description": "<No Content>"
  1843. },
  1844. "400": {
  1845. "description": "InvalidRequestError",
  1846. "content": {
  1847. "application/json": {
  1848. "schema": {
  1849. "$ref": "#/components/schemas/InvalidRequestError"
  1850. }
  1851. }
  1852. }
  1853. },
  1854. "401": {
  1855. "description": "UnauthorizedError",
  1856. "content": {
  1857. "application/json": {
  1858. "schema": {
  1859. "$ref": "#/components/schemas/UnauthorizedError"
  1860. }
  1861. }
  1862. }
  1863. },
  1864. "404": {
  1865. "description": "SessionNotFoundError | SkillNotFoundError",
  1866. "content": {
  1867. "application/json": {
  1868. "schema": {
  1869. "anyOf": [
  1870. {
  1871. "$ref": "#/components/schemas/SkillNotFoundError"
  1872. },
  1873. {
  1874. "$ref": "#/components/schemas/SessionNotFoundError"
  1875. },
  1876. {
  1877. "$ref": "#/components/schemas/SessionNotFoundError"
  1878. }
  1879. ]
  1880. }
  1881. }
  1882. }
  1883. }
  1884. },
  1885. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  1886. "summary": "Activate skill",
  1887. "requestBody": {
  1888. "content": {
  1889. "application/json": {
  1890. "schema": {
  1891. "type": "object",
  1892. "properties": {
  1893. "id": {
  1894. "anyOf": [
  1895. {
  1896. "type": "string",
  1897. "allOf": [
  1898. {
  1899. "pattern": "^msg_"
  1900. }
  1901. ]
  1902. },
  1903. {
  1904. "type": "null"
  1905. }
  1906. ]
  1907. },
  1908. "skill": {
  1909. "type": "string"
  1910. },
  1911. "resume": {
  1912. "anyOf": [
  1913. {
  1914. "type": "boolean"
  1915. },
  1916. {
  1917. "type": "null"
  1918. }
  1919. ]
  1920. }
  1921. },
  1922. "required": [
  1923. "skill"
  1924. ],
  1925. "additionalProperties": false
  1926. }
  1927. }
  1928. },
  1929. "required": true
  1930. }
  1931. }
  1932. },
  1933. "/api/session/{sessionID}/synthetic": {
  1934. "post": {
  1935. "tags": [
  1936. "session"
  1937. ],
  1938. "operationId": "v2.session.synthetic",
  1939. "parameters": [
  1940. {
  1941. "name": "sessionID",
  1942. "in": "path",
  1943. "schema": {
  1944. "type": "string",
  1945. "allOf": [
  1946. {
  1947. "pattern": "^ses"
  1948. }
  1949. ]
  1950. },
  1951. "required": true
  1952. }
  1953. ],
  1954. "security": [],
  1955. "responses": {
  1956. "204": {
  1957. "description": "<No Content>"
  1958. },
  1959. "400": {
  1960. "description": "InvalidRequestError",
  1961. "content": {
  1962. "application/json": {
  1963. "schema": {
  1964. "$ref": "#/components/schemas/InvalidRequestError"
  1965. }
  1966. }
  1967. }
  1968. },
  1969. "401": {
  1970. "description": "UnauthorizedError",
  1971. "content": {
  1972. "application/json": {
  1973. "schema": {
  1974. "$ref": "#/components/schemas/UnauthorizedError"
  1975. }
  1976. }
  1977. }
  1978. },
  1979. "404": {
  1980. "description": "SessionNotFoundError",
  1981. "content": {
  1982. "application/json": {
  1983. "schema": {
  1984. "anyOf": [
  1985. {
  1986. "$ref": "#/components/schemas/SessionNotFoundError"
  1987. },
  1988. {
  1989. "$ref": "#/components/schemas/SessionNotFoundError"
  1990. }
  1991. ]
  1992. }
  1993. }
  1994. }
  1995. }
  1996. },
  1997. "description": "Append a synthetic message to a session and resume execution.",
  1998. "summary": "Add synthetic message",
  1999. "requestBody": {
  2000. "content": {
  2001. "application/json": {
  2002. "schema": {
  2003. "type": "object",
  2004. "properties": {
  2005. "text": {
  2006. "type": "string"
  2007. },
  2008. "description": {
  2009. "anyOf": [
  2010. {
  2011. "type": "string"
  2012. },
  2013. {
  2014. "type": "null"
  2015. }
  2016. ]
  2017. },
  2018. "metadata": {
  2019. "type": "object"
  2020. },
  2021. "resume": {
  2022. "anyOf": [
  2023. {
  2024. "type": "boolean"
  2025. },
  2026. {
  2027. "type": "null"
  2028. }
  2029. ]
  2030. }
  2031. },
  2032. "required": [
  2033. "text"
  2034. ],
  2035. "additionalProperties": false
  2036. }
  2037. }
  2038. },
  2039. "required": true
  2040. }
  2041. }
  2042. },
  2043. "/api/session/{sessionID}/shell": {
  2044. "post": {
  2045. "tags": [
  2046. "session"
  2047. ],
  2048. "operationId": "v2.session.shell",
  2049. "parameters": [
  2050. {
  2051. "name": "sessionID",
  2052. "in": "path",
  2053. "schema": {
  2054. "type": "string",
  2055. "allOf": [
  2056. {
  2057. "pattern": "^ses"
  2058. }
  2059. ]
  2060. },
  2061. "required": true
  2062. }
  2063. ],
  2064. "security": [],
  2065. "responses": {
  2066. "204": {
  2067. "description": "<No Content>"
  2068. },
  2069. "400": {
  2070. "description": "InvalidRequestError",
  2071. "content": {
  2072. "application/json": {
  2073. "schema": {
  2074. "$ref": "#/components/schemas/InvalidRequestError"
  2075. }
  2076. }
  2077. }
  2078. },
  2079. "401": {
  2080. "description": "UnauthorizedError",
  2081. "content": {
  2082. "application/json": {
  2083. "schema": {
  2084. "$ref": "#/components/schemas/UnauthorizedError"
  2085. }
  2086. }
  2087. }
  2088. },
  2089. "404": {
  2090. "description": "SessionNotFoundError",
  2091. "content": {
  2092. "application/json": {
  2093. "schema": {
  2094. "anyOf": [
  2095. {
  2096. "$ref": "#/components/schemas/SessionNotFoundError"
  2097. },
  2098. {
  2099. "$ref": "#/components/schemas/SessionNotFoundError"
  2100. }
  2101. ]
  2102. }
  2103. }
  2104. }
  2105. }
  2106. },
  2107. "description": "Execute one shell command in the session's working directory. Emits a shell.started event before execution and a shell.ended event with the merged output after.",
  2108. "summary": "Run shell command",
  2109. "requestBody": {
  2110. "content": {
  2111. "application/json": {
  2112. "schema": {
  2113. "type": "object",
  2114. "properties": {
  2115. "id": {
  2116. "anyOf": [
  2117. {
  2118. "type": "string",
  2119. "allOf": [
  2120. {
  2121. "pattern": "^evt_"
  2122. }
  2123. ]
  2124. },
  2125. {
  2126. "type": "null"
  2127. }
  2128. ]
  2129. },
  2130. "command": {
  2131. "type": "string"
  2132. }
  2133. },
  2134. "required": [
  2135. "command"
  2136. ],
  2137. "additionalProperties": false
  2138. }
  2139. }
  2140. },
  2141. "required": true
  2142. }
  2143. }
  2144. },
  2145. "/api/session/{sessionID}/compact": {
  2146. "post": {
  2147. "tags": [
  2148. "session"
  2149. ],
  2150. "operationId": "v2.session.compact",
  2151. "parameters": [
  2152. {
  2153. "name": "sessionID",
  2154. "in": "path",
  2155. "schema": {
  2156. "type": "string",
  2157. "allOf": [
  2158. {
  2159. "pattern": "^ses"
  2160. }
  2161. ]
  2162. },
  2163. "required": true
  2164. }
  2165. ],
  2166. "security": [],
  2167. "responses": {
  2168. "200": {
  2169. "description": "Success",
  2170. "content": {
  2171. "application/json": {
  2172. "schema": {
  2173. "type": "object",
  2174. "properties": {
  2175. "data": {
  2176. "$ref": "#/components/schemas/SessionInput.Compaction"
  2177. }
  2178. },
  2179. "required": [
  2180. "data"
  2181. ],
  2182. "additionalProperties": false
  2183. }
  2184. }
  2185. }
  2186. },
  2187. "400": {
  2188. "description": "InvalidRequestError",
  2189. "content": {
  2190. "application/json": {
  2191. "schema": {
  2192. "$ref": "#/components/schemas/InvalidRequestError"
  2193. }
  2194. }
  2195. }
  2196. },
  2197. "401": {
  2198. "description": "UnauthorizedError",
  2199. "content": {
  2200. "application/json": {
  2201. "schema": {
  2202. "$ref": "#/components/schemas/UnauthorizedError"
  2203. }
  2204. }
  2205. }
  2206. },
  2207. "404": {
  2208. "description": "SessionNotFoundError",
  2209. "content": {
  2210. "application/json": {
  2211. "schema": {
  2212. "anyOf": [
  2213. {
  2214. "$ref": "#/components/schemas/SessionNotFoundError"
  2215. },
  2216. {
  2217. "$ref": "#/components/schemas/SessionNotFoundError"
  2218. }
  2219. ]
  2220. }
  2221. }
  2222. }
  2223. },
  2224. "409": {
  2225. "description": "ConflictError",
  2226. "content": {
  2227. "application/json": {
  2228. "schema": {
  2229. "$ref": "#/components/schemas/ConflictError"
  2230. }
  2231. }
  2232. }
  2233. }
  2234. },
  2235. "description": "Queue a durable session compaction request.",
  2236. "summary": "Compact session",
  2237. "requestBody": {
  2238. "content": {
  2239. "application/json": {
  2240. "schema": {
  2241. "type": "object",
  2242. "properties": {
  2243. "id": {
  2244. "anyOf": [
  2245. {
  2246. "type": "string",
  2247. "allOf": [
  2248. {
  2249. "pattern": "^msg_"
  2250. }
  2251. ]
  2252. },
  2253. {
  2254. "type": "null"
  2255. }
  2256. ]
  2257. }
  2258. },
  2259. "additionalProperties": false
  2260. }
  2261. }
  2262. },
  2263. "required": true
  2264. }
  2265. }
  2266. },
  2267. "/api/session/{sessionID}/wait": {
  2268. "post": {
  2269. "tags": [
  2270. "session"
  2271. ],
  2272. "operationId": "v2.session.wait",
  2273. "parameters": [
  2274. {
  2275. "name": "sessionID",
  2276. "in": "path",
  2277. "schema": {
  2278. "type": "string",
  2279. "allOf": [
  2280. {
  2281. "pattern": "^ses"
  2282. }
  2283. ]
  2284. },
  2285. "required": true
  2286. }
  2287. ],
  2288. "security": [],
  2289. "responses": {
  2290. "204": {
  2291. "description": "<No Content>"
  2292. },
  2293. "400": {
  2294. "description": "InvalidRequestError",
  2295. "content": {
  2296. "application/json": {
  2297. "schema": {
  2298. "$ref": "#/components/schemas/InvalidRequestError"
  2299. }
  2300. }
  2301. }
  2302. },
  2303. "401": {
  2304. "description": "UnauthorizedError",
  2305. "content": {
  2306. "application/json": {
  2307. "schema": {
  2308. "$ref": "#/components/schemas/UnauthorizedError"
  2309. }
  2310. }
  2311. }
  2312. },
  2313. "404": {
  2314. "description": "SessionNotFoundError",
  2315. "content": {
  2316. "application/json": {
  2317. "schema": {
  2318. "anyOf": [
  2319. {
  2320. "$ref": "#/components/schemas/SessionNotFoundError"
  2321. },
  2322. {
  2323. "$ref": "#/components/schemas/SessionNotFoundError"
  2324. }
  2325. ]
  2326. }
  2327. }
  2328. }
  2329. },
  2330. "503": {
  2331. "description": "ServiceUnavailableError",
  2332. "content": {
  2333. "application/json": {
  2334. "schema": {
  2335. "$ref": "#/components/schemas/ServiceUnavailableError"
  2336. }
  2337. }
  2338. }
  2339. }
  2340. },
  2341. "description": "Wait for a session agent loop to become idle.",
  2342. "summary": "Wait for session"
  2343. }
  2344. },
  2345. "/api/session/{sessionID}/revert/stage": {
  2346. "post": {
  2347. "tags": [
  2348. "session"
  2349. ],
  2350. "operationId": "v2.session.revert.stage",
  2351. "parameters": [
  2352. {
  2353. "name": "sessionID",
  2354. "in": "path",
  2355. "schema": {
  2356. "type": "string",
  2357. "allOf": [
  2358. {
  2359. "pattern": "^ses"
  2360. }
  2361. ]
  2362. },
  2363. "required": true
  2364. }
  2365. ],
  2366. "security": [],
  2367. "responses": {
  2368. "200": {
  2369. "description": "Success",
  2370. "content": {
  2371. "application/json": {
  2372. "schema": {
  2373. "type": "object",
  2374. "properties": {
  2375. "data": {
  2376. "$ref": "#/components/schemas/Session.Revert"
  2377. }
  2378. },
  2379. "required": [
  2380. "data"
  2381. ],
  2382. "additionalProperties": false
  2383. }
  2384. }
  2385. }
  2386. },
  2387. "400": {
  2388. "description": "InvalidRequestError",
  2389. "content": {
  2390. "application/json": {
  2391. "schema": {
  2392. "$ref": "#/components/schemas/InvalidRequestError"
  2393. }
  2394. }
  2395. }
  2396. },
  2397. "401": {
  2398. "description": "UnauthorizedError",
  2399. "content": {
  2400. "application/json": {
  2401. "schema": {
  2402. "$ref": "#/components/schemas/UnauthorizedError"
  2403. }
  2404. }
  2405. }
  2406. },
  2407. "404": {
  2408. "description": "MessageNotFoundError | SessionNotFoundError",
  2409. "content": {
  2410. "application/json": {
  2411. "schema": {
  2412. "anyOf": [
  2413. {
  2414. "$ref": "#/components/schemas/MessageNotFoundError"
  2415. },
  2416. {
  2417. "$ref": "#/components/schemas/SessionNotFoundError"
  2418. },
  2419. {
  2420. "$ref": "#/components/schemas/SessionNotFoundError"
  2421. }
  2422. ]
  2423. }
  2424. }
  2425. }
  2426. },
  2427. "409": {
  2428. "description": "SessionBusyError",
  2429. "content": {
  2430. "application/json": {
  2431. "schema": {
  2432. "$ref": "#/components/schemas/SessionBusyError"
  2433. }
  2434. }
  2435. }
  2436. },
  2437. "500": {
  2438. "description": "UnknownError",
  2439. "content": {
  2440. "application/json": {
  2441. "schema": {
  2442. "$ref": "#/components/schemas/UnknownError"
  2443. }
  2444. }
  2445. }
  2446. }
  2447. },
  2448. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2449. "summary": "Stage session revert",
  2450. "requestBody": {
  2451. "content": {
  2452. "application/json": {
  2453. "schema": {
  2454. "type": "object",
  2455. "properties": {
  2456. "messageID": {
  2457. "type": "string",
  2458. "allOf": [
  2459. {
  2460. "pattern": "^msg_"
  2461. }
  2462. ]
  2463. },
  2464. "files": {
  2465. "anyOf": [
  2466. {
  2467. "type": "boolean"
  2468. },
  2469. {
  2470. "type": "null"
  2471. }
  2472. ]
  2473. }
  2474. },
  2475. "required": [
  2476. "messageID"
  2477. ],
  2478. "additionalProperties": false
  2479. }
  2480. }
  2481. },
  2482. "required": true
  2483. }
  2484. }
  2485. },
  2486. "/api/session/{sessionID}/revert/clear": {
  2487. "post": {
  2488. "tags": [
  2489. "session"
  2490. ],
  2491. "operationId": "v2.session.revert.clear",
  2492. "parameters": [
  2493. {
  2494. "name": "sessionID",
  2495. "in": "path",
  2496. "schema": {
  2497. "type": "string",
  2498. "allOf": [
  2499. {
  2500. "pattern": "^ses"
  2501. }
  2502. ]
  2503. },
  2504. "required": true
  2505. }
  2506. ],
  2507. "security": [],
  2508. "responses": {
  2509. "204": {
  2510. "description": "<No Content>"
  2511. },
  2512. "400": {
  2513. "description": "InvalidRequestError",
  2514. "content": {
  2515. "application/json": {
  2516. "schema": {
  2517. "$ref": "#/components/schemas/InvalidRequestError"
  2518. }
  2519. }
  2520. }
  2521. },
  2522. "401": {
  2523. "description": "UnauthorizedError",
  2524. "content": {
  2525. "application/json": {
  2526. "schema": {
  2527. "$ref": "#/components/schemas/UnauthorizedError"
  2528. }
  2529. }
  2530. }
  2531. },
  2532. "404": {
  2533. "description": "SessionNotFoundError",
  2534. "content": {
  2535. "application/json": {
  2536. "schema": {
  2537. "anyOf": [
  2538. {
  2539. "$ref": "#/components/schemas/SessionNotFoundError"
  2540. },
  2541. {
  2542. "$ref": "#/components/schemas/SessionNotFoundError"
  2543. }
  2544. ]
  2545. }
  2546. }
  2547. }
  2548. },
  2549. "409": {
  2550. "description": "SessionBusyError",
  2551. "content": {
  2552. "application/json": {
  2553. "schema": {
  2554. "$ref": "#/components/schemas/SessionBusyError"
  2555. }
  2556. }
  2557. }
  2558. },
  2559. "500": {
  2560. "description": "UnknownError",
  2561. "content": {
  2562. "application/json": {
  2563. "schema": {
  2564. "$ref": "#/components/schemas/UnknownError"
  2565. }
  2566. }
  2567. }
  2568. }
  2569. },
  2570. "summary": "Clear staged revert"
  2571. }
  2572. },
  2573. "/api/session/{sessionID}/revert/commit": {
  2574. "post": {
  2575. "tags": [
  2576. "session"
  2577. ],
  2578. "operationId": "v2.session.revert.commit",
  2579. "parameters": [
  2580. {
  2581. "name": "sessionID",
  2582. "in": "path",
  2583. "schema": {
  2584. "type": "string",
  2585. "allOf": [
  2586. {
  2587. "pattern": "^ses"
  2588. }
  2589. ]
  2590. },
  2591. "required": true
  2592. }
  2593. ],
  2594. "security": [],
  2595. "responses": {
  2596. "204": {
  2597. "description": "<No Content>"
  2598. },
  2599. "400": {
  2600. "description": "InvalidRequestError",
  2601. "content": {
  2602. "application/json": {
  2603. "schema": {
  2604. "$ref": "#/components/schemas/InvalidRequestError"
  2605. }
  2606. }
  2607. }
  2608. },
  2609. "401": {
  2610. "description": "UnauthorizedError",
  2611. "content": {
  2612. "application/json": {
  2613. "schema": {
  2614. "$ref": "#/components/schemas/UnauthorizedError"
  2615. }
  2616. }
  2617. }
  2618. },
  2619. "404": {
  2620. "description": "SessionNotFoundError",
  2621. "content": {
  2622. "application/json": {
  2623. "schema": {
  2624. "anyOf": [
  2625. {
  2626. "$ref": "#/components/schemas/SessionNotFoundError"
  2627. },
  2628. {
  2629. "$ref": "#/components/schemas/SessionNotFoundError"
  2630. }
  2631. ]
  2632. }
  2633. }
  2634. }
  2635. },
  2636. "409": {
  2637. "description": "SessionBusyError",
  2638. "content": {
  2639. "application/json": {
  2640. "schema": {
  2641. "$ref": "#/components/schemas/SessionBusyError"
  2642. }
  2643. }
  2644. }
  2645. }
  2646. },
  2647. "summary": "Commit staged revert"
  2648. }
  2649. },
  2650. "/api/session/{sessionID}/context": {
  2651. "get": {
  2652. "tags": [
  2653. "session"
  2654. ],
  2655. "operationId": "v2.session.context",
  2656. "parameters": [
  2657. {
  2658. "name": "sessionID",
  2659. "in": "path",
  2660. "schema": {
  2661. "type": "string",
  2662. "allOf": [
  2663. {
  2664. "pattern": "^ses"
  2665. }
  2666. ]
  2667. },
  2668. "required": true
  2669. }
  2670. ],
  2671. "security": [],
  2672. "responses": {
  2673. "200": {
  2674. "description": "Success",
  2675. "content": {
  2676. "application/json": {
  2677. "schema": {
  2678. "type": "object",
  2679. "properties": {
  2680. "data": {
  2681. "type": "array",
  2682. "items": {
  2683. "$ref": "#/components/schemas/Session.Message.Info"
  2684. }
  2685. }
  2686. },
  2687. "required": [
  2688. "data"
  2689. ],
  2690. "additionalProperties": false
  2691. }
  2692. }
  2693. }
  2694. },
  2695. "400": {
  2696. "description": "InvalidRequestError",
  2697. "content": {
  2698. "application/json": {
  2699. "schema": {
  2700. "$ref": "#/components/schemas/InvalidRequestError"
  2701. }
  2702. }
  2703. }
  2704. },
  2705. "401": {
  2706. "description": "UnauthorizedError",
  2707. "content": {
  2708. "application/json": {
  2709. "schema": {
  2710. "$ref": "#/components/schemas/UnauthorizedError"
  2711. }
  2712. }
  2713. }
  2714. },
  2715. "404": {
  2716. "description": "SessionNotFoundError",
  2717. "content": {
  2718. "application/json": {
  2719. "schema": {
  2720. "anyOf": [
  2721. {
  2722. "$ref": "#/components/schemas/SessionNotFoundError"
  2723. },
  2724. {
  2725. "$ref": "#/components/schemas/SessionNotFoundError"
  2726. }
  2727. ]
  2728. }
  2729. }
  2730. }
  2731. },
  2732. "500": {
  2733. "description": "UnknownError",
  2734. "content": {
  2735. "application/json": {
  2736. "schema": {
  2737. "$ref": "#/components/schemas/UnknownError"
  2738. }
  2739. }
  2740. }
  2741. }
  2742. },
  2743. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2744. "summary": "Get session context"
  2745. }
  2746. },
  2747. "/api/session/{sessionID}/instructions/entries": {
  2748. "get": {
  2749. "tags": [
  2750. "session"
  2751. ],
  2752. "operationId": "v2.session.instructions.entry.list",
  2753. "parameters": [
  2754. {
  2755. "name": "sessionID",
  2756. "in": "path",
  2757. "schema": {
  2758. "type": "string",
  2759. "allOf": [
  2760. {
  2761. "pattern": "^ses"
  2762. }
  2763. ]
  2764. },
  2765. "required": true
  2766. }
  2767. ],
  2768. "security": [],
  2769. "responses": {
  2770. "200": {
  2771. "description": "Success",
  2772. "content": {
  2773. "application/json": {
  2774. "schema": {
  2775. "type": "object",
  2776. "properties": {
  2777. "data": {
  2778. "type": "array",
  2779. "items": {
  2780. "$ref": "#/components/schemas/InstructionEntry.Info"
  2781. }
  2782. }
  2783. },
  2784. "required": [
  2785. "data"
  2786. ],
  2787. "additionalProperties": false
  2788. }
  2789. }
  2790. }
  2791. },
  2792. "400": {
  2793. "description": "InvalidRequestError",
  2794. "content": {
  2795. "application/json": {
  2796. "schema": {
  2797. "$ref": "#/components/schemas/InvalidRequestError"
  2798. }
  2799. }
  2800. }
  2801. },
  2802. "401": {
  2803. "description": "UnauthorizedError",
  2804. "content": {
  2805. "application/json": {
  2806. "schema": {
  2807. "$ref": "#/components/schemas/UnauthorizedError"
  2808. }
  2809. }
  2810. }
  2811. },
  2812. "404": {
  2813. "description": "SessionNotFoundError",
  2814. "content": {
  2815. "application/json": {
  2816. "schema": {
  2817. "anyOf": [
  2818. {
  2819. "$ref": "#/components/schemas/SessionNotFoundError"
  2820. },
  2821. {
  2822. "$ref": "#/components/schemas/SessionNotFoundError"
  2823. }
  2824. ]
  2825. }
  2826. }
  2827. }
  2828. }
  2829. },
  2830. "description": "List API-managed instruction entries attached to the session.",
  2831. "summary": "List instruction entries"
  2832. }
  2833. },
  2834. "/api/session/{sessionID}/instructions/entries/{key}": {
  2835. "put": {
  2836. "tags": [
  2837. "session"
  2838. ],
  2839. "operationId": "v2.session.instructions.entry.put",
  2840. "parameters": [
  2841. {
  2842. "name": "sessionID",
  2843. "in": "path",
  2844. "schema": {
  2845. "type": "string",
  2846. "allOf": [
  2847. {
  2848. "pattern": "^ses"
  2849. }
  2850. ]
  2851. },
  2852. "required": true
  2853. },
  2854. {
  2855. "name": "key",
  2856. "in": "path",
  2857. "schema": {
  2858. "$ref": "#/components/schemas/InstructionEntry.Key"
  2859. },
  2860. "required": true
  2861. }
  2862. ],
  2863. "security": [],
  2864. "responses": {
  2865. "204": {
  2866. "description": "<No Content>"
  2867. },
  2868. "400": {
  2869. "description": "InvalidRequestError",
  2870. "content": {
  2871. "application/json": {
  2872. "schema": {
  2873. "$ref": "#/components/schemas/InvalidRequestError"
  2874. }
  2875. }
  2876. }
  2877. },
  2878. "401": {
  2879. "description": "UnauthorizedError",
  2880. "content": {
  2881. "application/json": {
  2882. "schema": {
  2883. "$ref": "#/components/schemas/UnauthorizedError"
  2884. }
  2885. }
  2886. }
  2887. },
  2888. "404": {
  2889. "description": "SessionNotFoundError",
  2890. "content": {
  2891. "application/json": {
  2892. "schema": {
  2893. "anyOf": [
  2894. {
  2895. "$ref": "#/components/schemas/SessionNotFoundError"
  2896. },
  2897. {
  2898. "$ref": "#/components/schemas/SessionNotFoundError"
  2899. }
  2900. ]
  2901. }
  2902. }
  2903. }
  2904. }
  2905. },
  2906. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  2907. "summary": "Put instruction entry",
  2908. "requestBody": {
  2909. "content": {
  2910. "application/json": {
  2911. "schema": {
  2912. "type": "object",
  2913. "properties": {
  2914. "value": {}
  2915. },
  2916. "required": [
  2917. "value"
  2918. ],
  2919. "additionalProperties": false
  2920. }
  2921. }
  2922. },
  2923. "required": true
  2924. }
  2925. },
  2926. "delete": {
  2927. "tags": [
  2928. "session"
  2929. ],
  2930. "operationId": "v2.session.instructions.entry.remove",
  2931. "parameters": [
  2932. {
  2933. "name": "sessionID",
  2934. "in": "path",
  2935. "schema": {
  2936. "type": "string",
  2937. "allOf": [
  2938. {
  2939. "pattern": "^ses"
  2940. }
  2941. ]
  2942. },
  2943. "required": true
  2944. },
  2945. {
  2946. "name": "key",
  2947. "in": "path",
  2948. "schema": {
  2949. "$ref": "#/components/schemas/InstructionEntry.Key"
  2950. },
  2951. "required": true
  2952. }
  2953. ],
  2954. "security": [],
  2955. "responses": {
  2956. "204": {
  2957. "description": "<No Content>"
  2958. },
  2959. "400": {
  2960. "description": "InvalidRequestError",
  2961. "content": {
  2962. "application/json": {
  2963. "schema": {
  2964. "$ref": "#/components/schemas/InvalidRequestError"
  2965. }
  2966. }
  2967. }
  2968. },
  2969. "401": {
  2970. "description": "UnauthorizedError",
  2971. "content": {
  2972. "application/json": {
  2973. "schema": {
  2974. "$ref": "#/components/schemas/UnauthorizedError"
  2975. }
  2976. }
  2977. }
  2978. },
  2979. "404": {
  2980. "description": "SessionNotFoundError",
  2981. "content": {
  2982. "application/json": {
  2983. "schema": {
  2984. "anyOf": [
  2985. {
  2986. "$ref": "#/components/schemas/SessionNotFoundError"
  2987. },
  2988. {
  2989. "$ref": "#/components/schemas/SessionNotFoundError"
  2990. }
  2991. ]
  2992. }
  2993. }
  2994. }
  2995. }
  2996. },
  2997. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  2998. "summary": "Remove instruction entry"
  2999. }
  3000. },
  3001. "/api/experimental/session/{sessionID}/log": {
  3002. "get": {
  3003. "tags": [
  3004. "session"
  3005. ],
  3006. "operationId": "v2.session.log",
  3007. "parameters": [
  3008. {
  3009. "name": "sessionID",
  3010. "in": "path",
  3011. "schema": {
  3012. "type": "string",
  3013. "allOf": [
  3014. {
  3015. "pattern": "^ses"
  3016. }
  3017. ]
  3018. },
  3019. "required": true
  3020. },
  3021. {
  3022. "name": "after",
  3023. "in": "query",
  3024. "schema": {
  3025. "anyOf": [
  3026. {
  3027. "type": "string"
  3028. },
  3029. {
  3030. "type": "null"
  3031. }
  3032. ]
  3033. },
  3034. "required": false
  3035. },
  3036. {
  3037. "name": "follow",
  3038. "in": "query",
  3039. "schema": {
  3040. "anyOf": [
  3041. {
  3042. "type": "string",
  3043. "enum": [
  3044. "true",
  3045. "false"
  3046. ]
  3047. },
  3048. {
  3049. "type": "null"
  3050. }
  3051. ]
  3052. },
  3053. "required": false
  3054. }
  3055. ],
  3056. "security": [],
  3057. "responses": {
  3058. "200": {
  3059. "description": "Success",
  3060. "content": {
  3061. "text/event-stream": {
  3062. "schema": {
  3063. "type": "object",
  3064. "properties": {
  3065. "id": {
  3066. "anyOf": [
  3067. {
  3068. "type": "string"
  3069. },
  3070. {
  3071. "type": "null"
  3072. }
  3073. ]
  3074. },
  3075. "event": {
  3076. "type": "string"
  3077. },
  3078. "data": {
  3079. "$ref": "#/components/schemas/SessionLogItemStream"
  3080. }
  3081. },
  3082. "required": [
  3083. "id",
  3084. "event",
  3085. "data"
  3086. ],
  3087. "additionalProperties": false
  3088. },
  3089. "x-effect-stream": {
  3090. "encoding": "sse",
  3091. "causeSchema": {
  3092. "type": "array",
  3093. "items": {
  3094. "anyOf": [
  3095. {
  3096. "type": "object",
  3097. "properties": {
  3098. "_tag": {
  3099. "type": "string",
  3100. "enum": [
  3101. "Fail"
  3102. ]
  3103. },
  3104. "error": {
  3105. "not": {}
  3106. }
  3107. },
  3108. "required": [
  3109. "_tag",
  3110. "error"
  3111. ],
  3112. "additionalProperties": false
  3113. },
  3114. {
  3115. "type": "object",
  3116. "properties": {
  3117. "_tag": {
  3118. "type": "string",
  3119. "enum": [
  3120. "Die"
  3121. ]
  3122. },
  3123. "defect": {}
  3124. },
  3125. "required": [
  3126. "_tag",
  3127. "defect"
  3128. ],
  3129. "additionalProperties": false
  3130. },
  3131. {
  3132. "type": "object",
  3133. "properties": {
  3134. "_tag": {
  3135. "type": "string",
  3136. "enum": [
  3137. "Interrupt"
  3138. ]
  3139. },
  3140. "fiberId": {
  3141. "anyOf": [
  3142. {
  3143. "type": "number"
  3144. },
  3145. {
  3146. "type": "null"
  3147. }
  3148. ]
  3149. }
  3150. },
  3151. "required": [
  3152. "_tag",
  3153. "fiberId"
  3154. ],
  3155. "additionalProperties": false
  3156. }
  3157. ]
  3158. }
  3159. },
  3160. "errorSchema": {
  3161. "not": {}
  3162. },
  3163. "failureEvent": "effect/httpapi/stream/failure"
  3164. }
  3165. }
  3166. }
  3167. },
  3168. "400": {
  3169. "description": "InvalidRequestError",
  3170. "content": {
  3171. "application/json": {
  3172. "schema": {
  3173. "$ref": "#/components/schemas/InvalidRequestError"
  3174. }
  3175. }
  3176. }
  3177. },
  3178. "401": {
  3179. "description": "UnauthorizedError",
  3180. "content": {
  3181. "application/json": {
  3182. "schema": {
  3183. "$ref": "#/components/schemas/UnauthorizedError"
  3184. }
  3185. }
  3186. }
  3187. },
  3188. "404": {
  3189. "description": "SessionNotFoundError",
  3190. "content": {
  3191. "application/json": {
  3192. "schema": {
  3193. "anyOf": [
  3194. {
  3195. "$ref": "#/components/schemas/SessionNotFoundError"
  3196. },
  3197. {
  3198. "$ref": "#/components/schemas/SessionNotFoundError"
  3199. }
  3200. ]
  3201. }
  3202. }
  3203. }
  3204. }
  3205. },
  3206. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3207. "summary": "Read the session log"
  3208. }
  3209. },
  3210. "/api/session/{sessionID}/interrupt": {
  3211. "post": {
  3212. "tags": [
  3213. "session"
  3214. ],
  3215. "operationId": "v2.session.interrupt",
  3216. "parameters": [
  3217. {
  3218. "name": "sessionID",
  3219. "in": "path",
  3220. "schema": {
  3221. "type": "string",
  3222. "allOf": [
  3223. {
  3224. "pattern": "^ses"
  3225. }
  3226. ]
  3227. },
  3228. "required": true
  3229. }
  3230. ],
  3231. "security": [],
  3232. "responses": {
  3233. "204": {
  3234. "description": "<No Content>"
  3235. },
  3236. "400": {
  3237. "description": "InvalidRequestError",
  3238. "content": {
  3239. "application/json": {
  3240. "schema": {
  3241. "$ref": "#/components/schemas/InvalidRequestError"
  3242. }
  3243. }
  3244. }
  3245. },
  3246. "401": {
  3247. "description": "UnauthorizedError",
  3248. "content": {
  3249. "application/json": {
  3250. "schema": {
  3251. "$ref": "#/components/schemas/UnauthorizedError"
  3252. }
  3253. }
  3254. }
  3255. },
  3256. "404": {
  3257. "description": "SessionNotFoundError",
  3258. "content": {
  3259. "application/json": {
  3260. "schema": {
  3261. "anyOf": [
  3262. {
  3263. "$ref": "#/components/schemas/SessionNotFoundError"
  3264. },
  3265. {
  3266. "$ref": "#/components/schemas/SessionNotFoundError"
  3267. }
  3268. ]
  3269. }
  3270. }
  3271. }
  3272. }
  3273. },
  3274. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3275. "summary": "Interrupt session execution"
  3276. }
  3277. },
  3278. "/api/session/{sessionID}/background": {
  3279. "post": {
  3280. "tags": [
  3281. "session"
  3282. ],
  3283. "operationId": "v2.session.background",
  3284. "parameters": [
  3285. {
  3286. "name": "sessionID",
  3287. "in": "path",
  3288. "schema": {
  3289. "type": "string",
  3290. "allOf": [
  3291. {
  3292. "pattern": "^ses"
  3293. }
  3294. ]
  3295. },
  3296. "required": true
  3297. }
  3298. ],
  3299. "security": [],
  3300. "responses": {
  3301. "204": {
  3302. "description": "<No Content>"
  3303. },
  3304. "400": {
  3305. "description": "InvalidRequestError",
  3306. "content": {
  3307. "application/json": {
  3308. "schema": {
  3309. "$ref": "#/components/schemas/InvalidRequestError"
  3310. }
  3311. }
  3312. }
  3313. },
  3314. "401": {
  3315. "description": "UnauthorizedError",
  3316. "content": {
  3317. "application/json": {
  3318. "schema": {
  3319. "$ref": "#/components/schemas/UnauthorizedError"
  3320. }
  3321. }
  3322. }
  3323. },
  3324. "404": {
  3325. "description": "SessionNotFoundError",
  3326. "content": {
  3327. "application/json": {
  3328. "schema": {
  3329. "anyOf": [
  3330. {
  3331. "$ref": "#/components/schemas/SessionNotFoundError"
  3332. },
  3333. {
  3334. "$ref": "#/components/schemas/SessionNotFoundError"
  3335. }
  3336. ]
  3337. }
  3338. }
  3339. }
  3340. }
  3341. },
  3342. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3343. "summary": "Background blocking session tools"
  3344. }
  3345. },
  3346. "/api/session/{sessionID}/message/{messageID}": {
  3347. "get": {
  3348. "tags": [
  3349. "session"
  3350. ],
  3351. "operationId": "v2.session.message",
  3352. "parameters": [
  3353. {
  3354. "name": "sessionID",
  3355. "in": "path",
  3356. "schema": {
  3357. "type": "string",
  3358. "allOf": [
  3359. {
  3360. "pattern": "^ses"
  3361. }
  3362. ]
  3363. },
  3364. "required": true
  3365. },
  3366. {
  3367. "name": "messageID",
  3368. "in": "path",
  3369. "schema": {
  3370. "type": "string",
  3371. "allOf": [
  3372. {
  3373. "pattern": "^msg_"
  3374. }
  3375. ]
  3376. },
  3377. "required": true
  3378. }
  3379. ],
  3380. "security": [],
  3381. "responses": {
  3382. "200": {
  3383. "description": "Success",
  3384. "content": {
  3385. "application/json": {
  3386. "schema": {
  3387. "type": "object",
  3388. "properties": {
  3389. "data": {
  3390. "$ref": "#/components/schemas/Session.Message.Info"
  3391. }
  3392. },
  3393. "required": [
  3394. "data"
  3395. ],
  3396. "additionalProperties": false
  3397. }
  3398. }
  3399. }
  3400. },
  3401. "400": {
  3402. "description": "InvalidRequestError",
  3403. "content": {
  3404. "application/json": {
  3405. "schema": {
  3406. "$ref": "#/components/schemas/InvalidRequestError"
  3407. }
  3408. }
  3409. }
  3410. },
  3411. "401": {
  3412. "description": "UnauthorizedError",
  3413. "content": {
  3414. "application/json": {
  3415. "schema": {
  3416. "$ref": "#/components/schemas/UnauthorizedError"
  3417. }
  3418. }
  3419. }
  3420. },
  3421. "404": {
  3422. "description": "SessionNotFoundError | MessageNotFoundError",
  3423. "content": {
  3424. "application/json": {
  3425. "schema": {
  3426. "anyOf": [
  3427. {
  3428. "$ref": "#/components/schemas/MessageNotFoundError"
  3429. },
  3430. {
  3431. "$ref": "#/components/schemas/SessionNotFoundError"
  3432. },
  3433. {
  3434. "$ref": "#/components/schemas/SessionNotFoundError"
  3435. }
  3436. ]
  3437. }
  3438. }
  3439. }
  3440. }
  3441. },
  3442. "description": "Retrieve one projected message owned by the Session.",
  3443. "summary": "Get session message"
  3444. }
  3445. },
  3446. "/api/session/{sessionID}/message": {
  3447. "get": {
  3448. "tags": [
  3449. "session"
  3450. ],
  3451. "operationId": "v2.message.list",
  3452. "parameters": [
  3453. {
  3454. "name": "sessionID",
  3455. "in": "path",
  3456. "schema": {
  3457. "type": "string",
  3458. "allOf": [
  3459. {
  3460. "pattern": "^ses"
  3461. }
  3462. ]
  3463. },
  3464. "required": true
  3465. },
  3466. {
  3467. "name": "limit",
  3468. "in": "query",
  3469. "schema": {
  3470. "anyOf": [
  3471. {
  3472. "type": "string"
  3473. },
  3474. {
  3475. "type": "null"
  3476. }
  3477. ],
  3478. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3479. },
  3480. "required": false
  3481. },
  3482. {
  3483. "name": "order",
  3484. "in": "query",
  3485. "schema": {
  3486. "anyOf": [
  3487. {
  3488. "type": "string",
  3489. "enum": [
  3490. "asc",
  3491. "desc"
  3492. ]
  3493. },
  3494. {
  3495. "type": "null"
  3496. }
  3497. ],
  3498. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3499. },
  3500. "required": false
  3501. },
  3502. {
  3503. "name": "cursor",
  3504. "in": "query",
  3505. "schema": {
  3506. "anyOf": [
  3507. {
  3508. "type": "string",
  3509. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3510. },
  3511. {
  3512. "type": "null"
  3513. }
  3514. ]
  3515. },
  3516. "required": false
  3517. }
  3518. ],
  3519. "security": [],
  3520. "responses": {
  3521. "200": {
  3522. "description": "SessionMessagesResponse",
  3523. "content": {
  3524. "application/json": {
  3525. "schema": {
  3526. "$ref": "#/components/schemas/SessionMessagesResponse"
  3527. }
  3528. }
  3529. }
  3530. },
  3531. "400": {
  3532. "description": "InvalidCursorError | InvalidRequestError",
  3533. "content": {
  3534. "application/json": {
  3535. "schema": {
  3536. "anyOf": [
  3537. {
  3538. "$ref": "#/components/schemas/InvalidCursorError"
  3539. },
  3540. {
  3541. "$ref": "#/components/schemas/InvalidRequestError"
  3542. }
  3543. ]
  3544. }
  3545. }
  3546. }
  3547. },
  3548. "401": {
  3549. "description": "UnauthorizedError",
  3550. "content": {
  3551. "application/json": {
  3552. "schema": {
  3553. "$ref": "#/components/schemas/UnauthorizedError"
  3554. }
  3555. }
  3556. }
  3557. },
  3558. "404": {
  3559. "description": "SessionNotFoundError",
  3560. "content": {
  3561. "application/json": {
  3562. "schema": {
  3563. "anyOf": [
  3564. {
  3565. "$ref": "#/components/schemas/SessionNotFoundError"
  3566. },
  3567. {
  3568. "$ref": "#/components/schemas/SessionNotFoundError"
  3569. }
  3570. ]
  3571. }
  3572. }
  3573. }
  3574. },
  3575. "500": {
  3576. "description": "UnknownError",
  3577. "content": {
  3578. "application/json": {
  3579. "schema": {
  3580. "$ref": "#/components/schemas/UnknownError"
  3581. }
  3582. }
  3583. }
  3584. }
  3585. },
  3586. "description": "Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.",
  3587. "summary": "Get session messages"
  3588. }
  3589. },
  3590. "/api/model": {
  3591. "get": {
  3592. "tags": [
  3593. "model"
  3594. ],
  3595. "operationId": "v2.model.list",
  3596. "parameters": [
  3597. {
  3598. "name": "location",
  3599. "in": "query",
  3600. "schema": {
  3601. "anyOf": [
  3602. {
  3603. "type": "object",
  3604. "properties": {
  3605. "directory": {
  3606. "anyOf": [
  3607. {
  3608. "type": "string"
  3609. },
  3610. {
  3611. "type": "null"
  3612. }
  3613. ]
  3614. },
  3615. "workspace": {
  3616. "anyOf": [
  3617. {
  3618. "type": "string"
  3619. },
  3620. {
  3621. "type": "null"
  3622. }
  3623. ]
  3624. }
  3625. },
  3626. "additionalProperties": false
  3627. },
  3628. {
  3629. "type": "null"
  3630. }
  3631. ]
  3632. },
  3633. "required": false,
  3634. "style": "deepObject",
  3635. "explode": true
  3636. }
  3637. ],
  3638. "security": [],
  3639. "responses": {
  3640. "200": {
  3641. "description": "Success",
  3642. "content": {
  3643. "application/json": {
  3644. "schema": {
  3645. "type": "object",
  3646. "properties": {
  3647. "location": {
  3648. "$ref": "#/components/schemas/Location.Info"
  3649. },
  3650. "data": {
  3651. "type": "array",
  3652. "items": {
  3653. "$ref": "#/components/schemas/Model.Info"
  3654. }
  3655. }
  3656. },
  3657. "required": [
  3658. "location",
  3659. "data"
  3660. ],
  3661. "additionalProperties": false
  3662. }
  3663. }
  3664. }
  3665. },
  3666. "400": {
  3667. "description": "InvalidRequestError",
  3668. "content": {
  3669. "application/json": {
  3670. "schema": {
  3671. "$ref": "#/components/schemas/InvalidRequestError"
  3672. }
  3673. }
  3674. }
  3675. },
  3676. "401": {
  3677. "description": "UnauthorizedError",
  3678. "content": {
  3679. "application/json": {
  3680. "schema": {
  3681. "$ref": "#/components/schemas/UnauthorizedError"
  3682. }
  3683. }
  3684. }
  3685. },
  3686. "503": {
  3687. "description": "ServiceUnavailableError",
  3688. "content": {
  3689. "application/json": {
  3690. "schema": {
  3691. "$ref": "#/components/schemas/ServiceUnavailableError"
  3692. }
  3693. }
  3694. }
  3695. }
  3696. },
  3697. "description": "Retrieve available models ordered by release date.",
  3698. "summary": "List models"
  3699. }
  3700. },
  3701. "/api/model/default": {
  3702. "get": {
  3703. "tags": [
  3704. "model"
  3705. ],
  3706. "operationId": "v2.model.default",
  3707. "parameters": [
  3708. {
  3709. "name": "location",
  3710. "in": "query",
  3711. "schema": {
  3712. "anyOf": [
  3713. {
  3714. "type": "object",
  3715. "properties": {
  3716. "directory": {
  3717. "anyOf": [
  3718. {
  3719. "type": "string"
  3720. },
  3721. {
  3722. "type": "null"
  3723. }
  3724. ]
  3725. },
  3726. "workspace": {
  3727. "anyOf": [
  3728. {
  3729. "type": "string"
  3730. },
  3731. {
  3732. "type": "null"
  3733. }
  3734. ]
  3735. }
  3736. },
  3737. "additionalProperties": false
  3738. },
  3739. {
  3740. "type": "null"
  3741. }
  3742. ]
  3743. },
  3744. "required": false,
  3745. "style": "deepObject",
  3746. "explode": true
  3747. }
  3748. ],
  3749. "security": [],
  3750. "responses": {
  3751. "200": {
  3752. "description": "Success",
  3753. "content": {
  3754. "application/json": {
  3755. "schema": {
  3756. "type": "object",
  3757. "properties": {
  3758. "location": {
  3759. "$ref": "#/components/schemas/Location.Info"
  3760. },
  3761. "data": {
  3762. "anyOf": [
  3763. {
  3764. "$ref": "#/components/schemas/Model.Info"
  3765. },
  3766. {
  3767. "type": "null"
  3768. }
  3769. ]
  3770. }
  3771. },
  3772. "required": [
  3773. "location",
  3774. "data"
  3775. ],
  3776. "additionalProperties": false
  3777. }
  3778. }
  3779. }
  3780. },
  3781. "400": {
  3782. "description": "InvalidRequestError",
  3783. "content": {
  3784. "application/json": {
  3785. "schema": {
  3786. "$ref": "#/components/schemas/InvalidRequestError"
  3787. }
  3788. }
  3789. }
  3790. },
  3791. "401": {
  3792. "description": "UnauthorizedError",
  3793. "content": {
  3794. "application/json": {
  3795. "schema": {
  3796. "$ref": "#/components/schemas/UnauthorizedError"
  3797. }
  3798. }
  3799. }
  3800. },
  3801. "503": {
  3802. "description": "ServiceUnavailableError",
  3803. "content": {
  3804. "application/json": {
  3805. "schema": {
  3806. "$ref": "#/components/schemas/ServiceUnavailableError"
  3807. }
  3808. }
  3809. }
  3810. }
  3811. },
  3812. "description": "Retrieve the model used when a session has no explicit model selection.",
  3813. "summary": "Get default model"
  3814. }
  3815. },
  3816. "/api/generate": {
  3817. "post": {
  3818. "tags": [
  3819. "generate"
  3820. ],
  3821. "operationId": "v2.generate.text",
  3822. "parameters": [
  3823. {
  3824. "name": "location",
  3825. "in": "query",
  3826. "schema": {
  3827. "anyOf": [
  3828. {
  3829. "type": "object",
  3830. "properties": {
  3831. "directory": {
  3832. "anyOf": [
  3833. {
  3834. "type": "string"
  3835. },
  3836. {
  3837. "type": "null"
  3838. }
  3839. ]
  3840. },
  3841. "workspace": {
  3842. "anyOf": [
  3843. {
  3844. "type": "string"
  3845. },
  3846. {
  3847. "type": "null"
  3848. }
  3849. ]
  3850. }
  3851. },
  3852. "additionalProperties": false
  3853. },
  3854. {
  3855. "type": "null"
  3856. }
  3857. ]
  3858. },
  3859. "required": false,
  3860. "style": "deepObject",
  3861. "explode": true
  3862. }
  3863. ],
  3864. "security": [],
  3865. "responses": {
  3866. "200": {
  3867. "description": "GenerateTextResponse",
  3868. "content": {
  3869. "application/json": {
  3870. "schema": {
  3871. "$ref": "#/components/schemas/GenerateTextResponse"
  3872. }
  3873. }
  3874. }
  3875. },
  3876. "400": {
  3877. "description": "InvalidRequestError",
  3878. "content": {
  3879. "application/json": {
  3880. "schema": {
  3881. "anyOf": [
  3882. {
  3883. "$ref": "#/components/schemas/InvalidRequestError1"
  3884. },
  3885. {
  3886. "$ref": "#/components/schemas/InvalidRequestError"
  3887. }
  3888. ]
  3889. }
  3890. }
  3891. }
  3892. },
  3893. "401": {
  3894. "description": "UnauthorizedError",
  3895. "content": {
  3896. "application/json": {
  3897. "schema": {
  3898. "$ref": "#/components/schemas/UnauthorizedError"
  3899. }
  3900. }
  3901. }
  3902. },
  3903. "503": {
  3904. "description": "ServiceUnavailableError",
  3905. "content": {
  3906. "application/json": {
  3907. "schema": {
  3908. "$ref": "#/components/schemas/ServiceUnavailableError"
  3909. }
  3910. }
  3911. }
  3912. }
  3913. },
  3914. "description": "Run one stateless model generation at the requested location and return the assistant text. Uses the location's default model when none is specified.",
  3915. "summary": "Generate text",
  3916. "requestBody": {
  3917. "content": {
  3918. "application/json": {
  3919. "schema": {
  3920. "type": "object",
  3921. "properties": {
  3922. "prompt": {
  3923. "type": "string"
  3924. },
  3925. "model": {
  3926. "anyOf": [
  3927. {
  3928. "$ref": "#/components/schemas/Model.Ref"
  3929. },
  3930. {
  3931. "type": "null"
  3932. }
  3933. ]
  3934. }
  3935. },
  3936. "required": [
  3937. "prompt"
  3938. ],
  3939. "additionalProperties": false
  3940. }
  3941. }
  3942. },
  3943. "required": true
  3944. }
  3945. }
  3946. },
  3947. "/api/provider": {
  3948. "get": {
  3949. "tags": [
  3950. "provider"
  3951. ],
  3952. "operationId": "v2.provider.list",
  3953. "parameters": [
  3954. {
  3955. "name": "location",
  3956. "in": "query",
  3957. "schema": {
  3958. "anyOf": [
  3959. {
  3960. "type": "object",
  3961. "properties": {
  3962. "directory": {
  3963. "anyOf": [
  3964. {
  3965. "type": "string"
  3966. },
  3967. {
  3968. "type": "null"
  3969. }
  3970. ]
  3971. },
  3972. "workspace": {
  3973. "anyOf": [
  3974. {
  3975. "type": "string"
  3976. },
  3977. {
  3978. "type": "null"
  3979. }
  3980. ]
  3981. }
  3982. },
  3983. "additionalProperties": false
  3984. },
  3985. {
  3986. "type": "null"
  3987. }
  3988. ]
  3989. },
  3990. "required": false,
  3991. "style": "deepObject",
  3992. "explode": true
  3993. }
  3994. ],
  3995. "security": [],
  3996. "responses": {
  3997. "200": {
  3998. "description": "Success",
  3999. "content": {
  4000. "application/json": {
  4001. "schema": {
  4002. "type": "object",
  4003. "properties": {
  4004. "location": {
  4005. "$ref": "#/components/schemas/Location.Info"
  4006. },
  4007. "data": {
  4008. "type": "array",
  4009. "items": {
  4010. "$ref": "#/components/schemas/ProviderV2.Info"
  4011. }
  4012. }
  4013. },
  4014. "required": [
  4015. "location",
  4016. "data"
  4017. ],
  4018. "additionalProperties": false
  4019. }
  4020. }
  4021. }
  4022. },
  4023. "400": {
  4024. "description": "InvalidRequestError",
  4025. "content": {
  4026. "application/json": {
  4027. "schema": {
  4028. "$ref": "#/components/schemas/InvalidRequestError"
  4029. }
  4030. }
  4031. }
  4032. },
  4033. "401": {
  4034. "description": "UnauthorizedError",
  4035. "content": {
  4036. "application/json": {
  4037. "schema": {
  4038. "$ref": "#/components/schemas/UnauthorizedError"
  4039. }
  4040. }
  4041. }
  4042. },
  4043. "503": {
  4044. "description": "ServiceUnavailableError",
  4045. "content": {
  4046. "application/json": {
  4047. "schema": {
  4048. "$ref": "#/components/schemas/ServiceUnavailableError"
  4049. }
  4050. }
  4051. }
  4052. }
  4053. },
  4054. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4055. "summary": "List providers"
  4056. }
  4057. },
  4058. "/api/provider/{providerID}": {
  4059. "get": {
  4060. "tags": [
  4061. "provider"
  4062. ],
  4063. "operationId": "v2.provider.get",
  4064. "parameters": [
  4065. {
  4066. "name": "providerID",
  4067. "in": "path",
  4068. "schema": {
  4069. "type": "string"
  4070. },
  4071. "required": true
  4072. },
  4073. {
  4074. "name": "location",
  4075. "in": "query",
  4076. "schema": {
  4077. "anyOf": [
  4078. {
  4079. "type": "object",
  4080. "properties": {
  4081. "directory": {
  4082. "anyOf": [
  4083. {
  4084. "type": "string"
  4085. },
  4086. {
  4087. "type": "null"
  4088. }
  4089. ]
  4090. },
  4091. "workspace": {
  4092. "anyOf": [
  4093. {
  4094. "type": "string"
  4095. },
  4096. {
  4097. "type": "null"
  4098. }
  4099. ]
  4100. }
  4101. },
  4102. "additionalProperties": false
  4103. },
  4104. {
  4105. "type": "null"
  4106. }
  4107. ]
  4108. },
  4109. "required": false,
  4110. "style": "deepObject",
  4111. "explode": true
  4112. }
  4113. ],
  4114. "security": [],
  4115. "responses": {
  4116. "200": {
  4117. "description": "Success",
  4118. "content": {
  4119. "application/json": {
  4120. "schema": {
  4121. "type": "object",
  4122. "properties": {
  4123. "location": {
  4124. "$ref": "#/components/schemas/Location.Info"
  4125. },
  4126. "data": {
  4127. "$ref": "#/components/schemas/ProviderV2.Info"
  4128. }
  4129. },
  4130. "required": [
  4131. "location",
  4132. "data"
  4133. ],
  4134. "additionalProperties": false
  4135. }
  4136. }
  4137. }
  4138. },
  4139. "400": {
  4140. "description": "InvalidRequestError",
  4141. "content": {
  4142. "application/json": {
  4143. "schema": {
  4144. "$ref": "#/components/schemas/InvalidRequestError"
  4145. }
  4146. }
  4147. }
  4148. },
  4149. "401": {
  4150. "description": "UnauthorizedError",
  4151. "content": {
  4152. "application/json": {
  4153. "schema": {
  4154. "$ref": "#/components/schemas/UnauthorizedError"
  4155. }
  4156. }
  4157. }
  4158. },
  4159. "404": {
  4160. "description": "ProviderNotFoundError",
  4161. "content": {
  4162. "application/json": {
  4163. "schema": {
  4164. "$ref": "#/components/schemas/ProviderNotFoundError"
  4165. }
  4166. }
  4167. }
  4168. },
  4169. "503": {
  4170. "description": "ServiceUnavailableError",
  4171. "content": {
  4172. "application/json": {
  4173. "schema": {
  4174. "$ref": "#/components/schemas/ServiceUnavailableError"
  4175. }
  4176. }
  4177. }
  4178. }
  4179. },
  4180. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4181. "summary": "Get provider"
  4182. }
  4183. },
  4184. "/api/integration": {
  4185. "get": {
  4186. "tags": [
  4187. "integration"
  4188. ],
  4189. "operationId": "v2.integration.list",
  4190. "parameters": [
  4191. {
  4192. "name": "location",
  4193. "in": "query",
  4194. "schema": {
  4195. "anyOf": [
  4196. {
  4197. "type": "object",
  4198. "properties": {
  4199. "directory": {
  4200. "anyOf": [
  4201. {
  4202. "type": "string"
  4203. },
  4204. {
  4205. "type": "null"
  4206. }
  4207. ]
  4208. },
  4209. "workspace": {
  4210. "anyOf": [
  4211. {
  4212. "type": "string"
  4213. },
  4214. {
  4215. "type": "null"
  4216. }
  4217. ]
  4218. }
  4219. },
  4220. "additionalProperties": false
  4221. },
  4222. {
  4223. "type": "null"
  4224. }
  4225. ]
  4226. },
  4227. "required": false,
  4228. "style": "deepObject",
  4229. "explode": true
  4230. }
  4231. ],
  4232. "security": [],
  4233. "responses": {
  4234. "200": {
  4235. "description": "Success",
  4236. "content": {
  4237. "application/json": {
  4238. "schema": {
  4239. "type": "object",
  4240. "properties": {
  4241. "location": {
  4242. "$ref": "#/components/schemas/Location.Info"
  4243. },
  4244. "data": {
  4245. "type": "array",
  4246. "items": {
  4247. "$ref": "#/components/schemas/Integration.Info"
  4248. }
  4249. }
  4250. },
  4251. "required": [
  4252. "location",
  4253. "data"
  4254. ],
  4255. "additionalProperties": false
  4256. }
  4257. }
  4258. }
  4259. },
  4260. "400": {
  4261. "description": "InvalidRequestError",
  4262. "content": {
  4263. "application/json": {
  4264. "schema": {
  4265. "$ref": "#/components/schemas/InvalidRequestError"
  4266. }
  4267. }
  4268. }
  4269. },
  4270. "401": {
  4271. "description": "UnauthorizedError",
  4272. "content": {
  4273. "application/json": {
  4274. "schema": {
  4275. "$ref": "#/components/schemas/UnauthorizedError"
  4276. }
  4277. }
  4278. }
  4279. }
  4280. },
  4281. "description": "Retrieve available integrations and their authentication methods.",
  4282. "summary": "List integrations"
  4283. }
  4284. },
  4285. "/api/integration/{integrationID}": {
  4286. "get": {
  4287. "tags": [
  4288. "integration"
  4289. ],
  4290. "operationId": "v2.integration.get",
  4291. "parameters": [
  4292. {
  4293. "name": "integrationID",
  4294. "in": "path",
  4295. "schema": {
  4296. "type": "string"
  4297. },
  4298. "required": true
  4299. },
  4300. {
  4301. "name": "location",
  4302. "in": "query",
  4303. "schema": {
  4304. "anyOf": [
  4305. {
  4306. "type": "object",
  4307. "properties": {
  4308. "directory": {
  4309. "anyOf": [
  4310. {
  4311. "type": "string"
  4312. },
  4313. {
  4314. "type": "null"
  4315. }
  4316. ]
  4317. },
  4318. "workspace": {
  4319. "anyOf": [
  4320. {
  4321. "type": "string"
  4322. },
  4323. {
  4324. "type": "null"
  4325. }
  4326. ]
  4327. }
  4328. },
  4329. "additionalProperties": false
  4330. },
  4331. {
  4332. "type": "null"
  4333. }
  4334. ]
  4335. },
  4336. "required": false,
  4337. "style": "deepObject",
  4338. "explode": true
  4339. }
  4340. ],
  4341. "security": [],
  4342. "responses": {
  4343. "200": {
  4344. "description": "Success",
  4345. "content": {
  4346. "application/json": {
  4347. "schema": {
  4348. "type": "object",
  4349. "properties": {
  4350. "location": {
  4351. "$ref": "#/components/schemas/Location.Info"
  4352. },
  4353. "data": {
  4354. "anyOf": [
  4355. {
  4356. "$ref": "#/components/schemas/Integration.Info"
  4357. },
  4358. {
  4359. "type": "null"
  4360. }
  4361. ]
  4362. }
  4363. },
  4364. "required": [
  4365. "location",
  4366. "data"
  4367. ],
  4368. "additionalProperties": false
  4369. }
  4370. }
  4371. }
  4372. },
  4373. "400": {
  4374. "description": "InvalidRequestError",
  4375. "content": {
  4376. "application/json": {
  4377. "schema": {
  4378. "$ref": "#/components/schemas/InvalidRequestError"
  4379. }
  4380. }
  4381. }
  4382. },
  4383. "401": {
  4384. "description": "UnauthorizedError",
  4385. "content": {
  4386. "application/json": {
  4387. "schema": {
  4388. "$ref": "#/components/schemas/UnauthorizedError"
  4389. }
  4390. }
  4391. }
  4392. }
  4393. },
  4394. "description": "Retrieve one integration and its authentication methods.",
  4395. "summary": "Get integration"
  4396. }
  4397. },
  4398. "/api/integration/{integrationID}/connect/key": {
  4399. "post": {
  4400. "tags": [
  4401. "integration"
  4402. ],
  4403. "operationId": "v2.integration.connect.key",
  4404. "parameters": [
  4405. {
  4406. "name": "integrationID",
  4407. "in": "path",
  4408. "schema": {
  4409. "type": "string"
  4410. },
  4411. "required": true
  4412. },
  4413. {
  4414. "name": "location",
  4415. "in": "query",
  4416. "schema": {
  4417. "anyOf": [
  4418. {
  4419. "type": "object",
  4420. "properties": {
  4421. "directory": {
  4422. "anyOf": [
  4423. {
  4424. "type": "string"
  4425. },
  4426. {
  4427. "type": "null"
  4428. }
  4429. ]
  4430. },
  4431. "workspace": {
  4432. "anyOf": [
  4433. {
  4434. "type": "string"
  4435. },
  4436. {
  4437. "type": "null"
  4438. }
  4439. ]
  4440. }
  4441. },
  4442. "additionalProperties": false
  4443. },
  4444. {
  4445. "type": "null"
  4446. }
  4447. ]
  4448. },
  4449. "required": false,
  4450. "style": "deepObject",
  4451. "explode": true
  4452. }
  4453. ],
  4454. "security": [],
  4455. "responses": {
  4456. "204": {
  4457. "description": "<No Content>"
  4458. },
  4459. "400": {
  4460. "description": "InvalidRequestError",
  4461. "content": {
  4462. "application/json": {
  4463. "schema": {
  4464. "anyOf": [
  4465. {
  4466. "$ref": "#/components/schemas/InvalidRequestError1"
  4467. },
  4468. {
  4469. "$ref": "#/components/schemas/InvalidRequestError"
  4470. }
  4471. ]
  4472. }
  4473. }
  4474. }
  4475. },
  4476. "401": {
  4477. "description": "UnauthorizedError",
  4478. "content": {
  4479. "application/json": {
  4480. "schema": {
  4481. "$ref": "#/components/schemas/UnauthorizedError"
  4482. }
  4483. }
  4484. }
  4485. }
  4486. },
  4487. "description": "Run a key authentication method and store the resulting credential.",
  4488. "summary": "Connect with key",
  4489. "requestBody": {
  4490. "content": {
  4491. "application/json": {
  4492. "schema": {
  4493. "type": "object",
  4494. "properties": {
  4495. "key": {
  4496. "type": "string"
  4497. },
  4498. "label": {
  4499. "anyOf": [
  4500. {
  4501. "type": "string"
  4502. },
  4503. {
  4504. "type": "null"
  4505. }
  4506. ]
  4507. }
  4508. },
  4509. "required": [
  4510. "key"
  4511. ],
  4512. "additionalProperties": false
  4513. }
  4514. }
  4515. },
  4516. "required": true
  4517. }
  4518. }
  4519. },
  4520. "/api/integration/{integrationID}/connect/oauth": {
  4521. "post": {
  4522. "tags": [
  4523. "integration"
  4524. ],
  4525. "operationId": "v2.integration.connect.oauth",
  4526. "parameters": [
  4527. {
  4528. "name": "integrationID",
  4529. "in": "path",
  4530. "schema": {
  4531. "type": "string"
  4532. },
  4533. "required": true
  4534. },
  4535. {
  4536. "name": "location",
  4537. "in": "query",
  4538. "schema": {
  4539. "anyOf": [
  4540. {
  4541. "type": "object",
  4542. "properties": {
  4543. "directory": {
  4544. "anyOf": [
  4545. {
  4546. "type": "string"
  4547. },
  4548. {
  4549. "type": "null"
  4550. }
  4551. ]
  4552. },
  4553. "workspace": {
  4554. "anyOf": [
  4555. {
  4556. "type": "string"
  4557. },
  4558. {
  4559. "type": "null"
  4560. }
  4561. ]
  4562. }
  4563. },
  4564. "additionalProperties": false
  4565. },
  4566. {
  4567. "type": "null"
  4568. }
  4569. ]
  4570. },
  4571. "required": false,
  4572. "style": "deepObject",
  4573. "explode": true
  4574. }
  4575. ],
  4576. "security": [],
  4577. "responses": {
  4578. "200": {
  4579. "description": "Success",
  4580. "content": {
  4581. "application/json": {
  4582. "schema": {
  4583. "type": "object",
  4584. "properties": {
  4585. "location": {
  4586. "$ref": "#/components/schemas/Location.Info"
  4587. },
  4588. "data": {
  4589. "$ref": "#/components/schemas/Integration.Attempt"
  4590. }
  4591. },
  4592. "required": [
  4593. "location",
  4594. "data"
  4595. ],
  4596. "additionalProperties": false
  4597. }
  4598. }
  4599. }
  4600. },
  4601. "400": {
  4602. "description": "InvalidRequestError",
  4603. "content": {
  4604. "application/json": {
  4605. "schema": {
  4606. "anyOf": [
  4607. {
  4608. "$ref": "#/components/schemas/InvalidRequestError1"
  4609. },
  4610. {
  4611. "$ref": "#/components/schemas/InvalidRequestError"
  4612. }
  4613. ]
  4614. }
  4615. }
  4616. }
  4617. },
  4618. "401": {
  4619. "description": "UnauthorizedError",
  4620. "content": {
  4621. "application/json": {
  4622. "schema": {
  4623. "$ref": "#/components/schemas/UnauthorizedError"
  4624. }
  4625. }
  4626. }
  4627. }
  4628. },
  4629. "description": "Start an OAuth attempt and return the authorization details.",
  4630. "summary": "Begin OAuth connection",
  4631. "requestBody": {
  4632. "content": {
  4633. "application/json": {
  4634. "schema": {
  4635. "type": "object",
  4636. "properties": {
  4637. "methodID": {
  4638. "type": "string"
  4639. },
  4640. "inputs": {
  4641. "type": "object",
  4642. "additionalProperties": {
  4643. "type": "string"
  4644. }
  4645. },
  4646. "label": {
  4647. "anyOf": [
  4648. {
  4649. "type": "string"
  4650. },
  4651. {
  4652. "type": "null"
  4653. }
  4654. ]
  4655. }
  4656. },
  4657. "required": [
  4658. "methodID",
  4659. "inputs"
  4660. ],
  4661. "additionalProperties": false
  4662. }
  4663. }
  4664. },
  4665. "required": true
  4666. }
  4667. }
  4668. },
  4669. "/api/integration/attempt/{attemptID}": {
  4670. "get": {
  4671. "tags": [
  4672. "integration"
  4673. ],
  4674. "operationId": "v2.integration.attempt.status",
  4675. "parameters": [
  4676. {
  4677. "name": "attemptID",
  4678. "in": "path",
  4679. "schema": {
  4680. "type": "string"
  4681. },
  4682. "required": true
  4683. },
  4684. {
  4685. "name": "location",
  4686. "in": "query",
  4687. "schema": {
  4688. "anyOf": [
  4689. {
  4690. "type": "object",
  4691. "properties": {
  4692. "directory": {
  4693. "anyOf": [
  4694. {
  4695. "type": "string"
  4696. },
  4697. {
  4698. "type": "null"
  4699. }
  4700. ]
  4701. },
  4702. "workspace": {
  4703. "anyOf": [
  4704. {
  4705. "type": "string"
  4706. },
  4707. {
  4708. "type": "null"
  4709. }
  4710. ]
  4711. }
  4712. },
  4713. "additionalProperties": false
  4714. },
  4715. {
  4716. "type": "null"
  4717. }
  4718. ]
  4719. },
  4720. "required": false,
  4721. "style": "deepObject",
  4722. "explode": true
  4723. }
  4724. ],
  4725. "security": [],
  4726. "responses": {
  4727. "200": {
  4728. "description": "Success",
  4729. "content": {
  4730. "application/json": {
  4731. "schema": {
  4732. "type": "object",
  4733. "properties": {
  4734. "location": {
  4735. "$ref": "#/components/schemas/Location.Info"
  4736. },
  4737. "data": {
  4738. "$ref": "#/components/schemas/Integration.AttemptStatus"
  4739. }
  4740. },
  4741. "required": [
  4742. "location",
  4743. "data"
  4744. ],
  4745. "additionalProperties": false
  4746. }
  4747. }
  4748. }
  4749. },
  4750. "400": {
  4751. "description": "InvalidRequestError",
  4752. "content": {
  4753. "application/json": {
  4754. "schema": {
  4755. "$ref": "#/components/schemas/InvalidRequestError"
  4756. }
  4757. }
  4758. }
  4759. },
  4760. "401": {
  4761. "description": "UnauthorizedError",
  4762. "content": {
  4763. "application/json": {
  4764. "schema": {
  4765. "$ref": "#/components/schemas/UnauthorizedError"
  4766. }
  4767. }
  4768. }
  4769. }
  4770. },
  4771. "description": "Poll the current status of an OAuth attempt.",
  4772. "summary": "Get OAuth attempt status"
  4773. },
  4774. "delete": {
  4775. "tags": [
  4776. "integration"
  4777. ],
  4778. "operationId": "v2.integration.attempt.cancel",
  4779. "parameters": [
  4780. {
  4781. "name": "attemptID",
  4782. "in": "path",
  4783. "schema": {
  4784. "type": "string"
  4785. },
  4786. "required": true
  4787. },
  4788. {
  4789. "name": "location",
  4790. "in": "query",
  4791. "schema": {
  4792. "anyOf": [
  4793. {
  4794. "type": "object",
  4795. "properties": {
  4796. "directory": {
  4797. "anyOf": [
  4798. {
  4799. "type": "string"
  4800. },
  4801. {
  4802. "type": "null"
  4803. }
  4804. ]
  4805. },
  4806. "workspace": {
  4807. "anyOf": [
  4808. {
  4809. "type": "string"
  4810. },
  4811. {
  4812. "type": "null"
  4813. }
  4814. ]
  4815. }
  4816. },
  4817. "additionalProperties": false
  4818. },
  4819. {
  4820. "type": "null"
  4821. }
  4822. ]
  4823. },
  4824. "required": false,
  4825. "style": "deepObject",
  4826. "explode": true
  4827. }
  4828. ],
  4829. "security": [],
  4830. "responses": {
  4831. "204": {
  4832. "description": "<No Content>"
  4833. },
  4834. "400": {
  4835. "description": "InvalidRequestError",
  4836. "content": {
  4837. "application/json": {
  4838. "schema": {
  4839. "$ref": "#/components/schemas/InvalidRequestError"
  4840. }
  4841. }
  4842. }
  4843. },
  4844. "401": {
  4845. "description": "UnauthorizedError",
  4846. "content": {
  4847. "application/json": {
  4848. "schema": {
  4849. "$ref": "#/components/schemas/UnauthorizedError"
  4850. }
  4851. }
  4852. }
  4853. }
  4854. },
  4855. "description": "Cancel an OAuth attempt and release its resources.",
  4856. "summary": "Cancel OAuth connection"
  4857. }
  4858. },
  4859. "/api/integration/attempt/{attemptID}/complete": {
  4860. "post": {
  4861. "tags": [
  4862. "integration"
  4863. ],
  4864. "operationId": "v2.integration.attempt.complete",
  4865. "parameters": [
  4866. {
  4867. "name": "attemptID",
  4868. "in": "path",
  4869. "schema": {
  4870. "type": "string"
  4871. },
  4872. "required": true
  4873. },
  4874. {
  4875. "name": "location",
  4876. "in": "query",
  4877. "schema": {
  4878. "anyOf": [
  4879. {
  4880. "type": "object",
  4881. "properties": {
  4882. "directory": {
  4883. "anyOf": [
  4884. {
  4885. "type": "string"
  4886. },
  4887. {
  4888. "type": "null"
  4889. }
  4890. ]
  4891. },
  4892. "workspace": {
  4893. "anyOf": [
  4894. {
  4895. "type": "string"
  4896. },
  4897. {
  4898. "type": "null"
  4899. }
  4900. ]
  4901. }
  4902. },
  4903. "additionalProperties": false
  4904. },
  4905. {
  4906. "type": "null"
  4907. }
  4908. ]
  4909. },
  4910. "required": false,
  4911. "style": "deepObject",
  4912. "explode": true
  4913. }
  4914. ],
  4915. "security": [],
  4916. "responses": {
  4917. "204": {
  4918. "description": "<No Content>"
  4919. },
  4920. "400": {
  4921. "description": "InvalidRequestError",
  4922. "content": {
  4923. "application/json": {
  4924. "schema": {
  4925. "anyOf": [
  4926. {
  4927. "$ref": "#/components/schemas/InvalidRequestError1"
  4928. },
  4929. {
  4930. "$ref": "#/components/schemas/InvalidRequestError"
  4931. }
  4932. ]
  4933. }
  4934. }
  4935. }
  4936. },
  4937. "401": {
  4938. "description": "UnauthorizedError",
  4939. "content": {
  4940. "application/json": {
  4941. "schema": {
  4942. "$ref": "#/components/schemas/UnauthorizedError"
  4943. }
  4944. }
  4945. }
  4946. }
  4947. },
  4948. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  4949. "summary": "Complete OAuth connection",
  4950. "requestBody": {
  4951. "content": {
  4952. "application/json": {
  4953. "schema": {
  4954. "type": "object",
  4955. "properties": {
  4956. "code": {
  4957. "anyOf": [
  4958. {
  4959. "type": "string"
  4960. },
  4961. {
  4962. "type": "null"
  4963. }
  4964. ]
  4965. }
  4966. },
  4967. "additionalProperties": false
  4968. }
  4969. }
  4970. },
  4971. "required": true
  4972. }
  4973. }
  4974. },
  4975. "/api/mcp": {
  4976. "get": {
  4977. "tags": [
  4978. "mcp"
  4979. ],
  4980. "operationId": "v2.mcp.list",
  4981. "parameters": [
  4982. {
  4983. "name": "location",
  4984. "in": "query",
  4985. "schema": {
  4986. "anyOf": [
  4987. {
  4988. "type": "object",
  4989. "properties": {
  4990. "directory": {
  4991. "anyOf": [
  4992. {
  4993. "type": "string"
  4994. },
  4995. {
  4996. "type": "null"
  4997. }
  4998. ]
  4999. },
  5000. "workspace": {
  5001. "anyOf": [
  5002. {
  5003. "type": "string"
  5004. },
  5005. {
  5006. "type": "null"
  5007. }
  5008. ]
  5009. }
  5010. },
  5011. "additionalProperties": false
  5012. },
  5013. {
  5014. "type": "null"
  5015. }
  5016. ]
  5017. },
  5018. "required": false,
  5019. "style": "deepObject",
  5020. "explode": true
  5021. }
  5022. ],
  5023. "security": [],
  5024. "responses": {
  5025. "200": {
  5026. "description": "Success",
  5027. "content": {
  5028. "application/json": {
  5029. "schema": {
  5030. "type": "object",
  5031. "properties": {
  5032. "location": {
  5033. "$ref": "#/components/schemas/Location.Info"
  5034. },
  5035. "data": {
  5036. "type": "array",
  5037. "items": {
  5038. "$ref": "#/components/schemas/Mcp.Server"
  5039. }
  5040. }
  5041. },
  5042. "required": [
  5043. "location",
  5044. "data"
  5045. ],
  5046. "additionalProperties": false
  5047. }
  5048. }
  5049. }
  5050. },
  5051. "400": {
  5052. "description": "InvalidRequestError",
  5053. "content": {
  5054. "application/json": {
  5055. "schema": {
  5056. "$ref": "#/components/schemas/InvalidRequestError"
  5057. }
  5058. }
  5059. }
  5060. },
  5061. "401": {
  5062. "description": "UnauthorizedError",
  5063. "content": {
  5064. "application/json": {
  5065. "schema": {
  5066. "$ref": "#/components/schemas/UnauthorizedError"
  5067. }
  5068. }
  5069. }
  5070. }
  5071. },
  5072. "description": "Retrieve configured MCP servers and their connection status.",
  5073. "summary": "List MCP servers"
  5074. }
  5075. },
  5076. "/api/mcp/resource": {
  5077. "get": {
  5078. "tags": [
  5079. "mcp"
  5080. ],
  5081. "operationId": "v2.mcp.resource.catalog",
  5082. "parameters": [
  5083. {
  5084. "name": "location",
  5085. "in": "query",
  5086. "schema": {
  5087. "anyOf": [
  5088. {
  5089. "type": "object",
  5090. "properties": {
  5091. "directory": {
  5092. "anyOf": [
  5093. {
  5094. "type": "string"
  5095. },
  5096. {
  5097. "type": "null"
  5098. }
  5099. ]
  5100. },
  5101. "workspace": {
  5102. "anyOf": [
  5103. {
  5104. "type": "string"
  5105. },
  5106. {
  5107. "type": "null"
  5108. }
  5109. ]
  5110. }
  5111. },
  5112. "additionalProperties": false
  5113. },
  5114. {
  5115. "type": "null"
  5116. }
  5117. ]
  5118. },
  5119. "required": false,
  5120. "style": "deepObject",
  5121. "explode": true
  5122. }
  5123. ],
  5124. "security": [],
  5125. "responses": {
  5126. "200": {
  5127. "description": "Success",
  5128. "content": {
  5129. "application/json": {
  5130. "schema": {
  5131. "type": "object",
  5132. "properties": {
  5133. "location": {
  5134. "$ref": "#/components/schemas/Location.Info"
  5135. },
  5136. "data": {
  5137. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  5138. }
  5139. },
  5140. "required": [
  5141. "location",
  5142. "data"
  5143. ],
  5144. "additionalProperties": false
  5145. }
  5146. }
  5147. }
  5148. },
  5149. "400": {
  5150. "description": "InvalidRequestError",
  5151. "content": {
  5152. "application/json": {
  5153. "schema": {
  5154. "$ref": "#/components/schemas/InvalidRequestError"
  5155. }
  5156. }
  5157. }
  5158. },
  5159. "401": {
  5160. "description": "UnauthorizedError",
  5161. "content": {
  5162. "application/json": {
  5163. "schema": {
  5164. "$ref": "#/components/schemas/UnauthorizedError"
  5165. }
  5166. }
  5167. }
  5168. }
  5169. },
  5170. "description": "Retrieve resources and resource templates from connected MCP servers.",
  5171. "summary": "List MCP resources"
  5172. }
  5173. },
  5174. "/api/credential/{credentialID}": {
  5175. "patch": {
  5176. "tags": [
  5177. "credential"
  5178. ],
  5179. "operationId": "v2.credential.update",
  5180. "parameters": [
  5181. {
  5182. "name": "credentialID",
  5183. "in": "path",
  5184. "schema": {
  5185. "type": "string"
  5186. },
  5187. "required": true
  5188. },
  5189. {
  5190. "name": "location",
  5191. "in": "query",
  5192. "schema": {
  5193. "anyOf": [
  5194. {
  5195. "type": "object",
  5196. "properties": {
  5197. "directory": {
  5198. "anyOf": [
  5199. {
  5200. "type": "string"
  5201. },
  5202. {
  5203. "type": "null"
  5204. }
  5205. ]
  5206. },
  5207. "workspace": {
  5208. "anyOf": [
  5209. {
  5210. "type": "string"
  5211. },
  5212. {
  5213. "type": "null"
  5214. }
  5215. ]
  5216. }
  5217. },
  5218. "additionalProperties": false
  5219. },
  5220. {
  5221. "type": "null"
  5222. }
  5223. ]
  5224. },
  5225. "required": false,
  5226. "style": "deepObject",
  5227. "explode": true
  5228. }
  5229. ],
  5230. "security": [],
  5231. "responses": {
  5232. "204": {
  5233. "description": "<No Content>"
  5234. },
  5235. "400": {
  5236. "description": "InvalidRequestError",
  5237. "content": {
  5238. "application/json": {
  5239. "schema": {
  5240. "$ref": "#/components/schemas/InvalidRequestError"
  5241. }
  5242. }
  5243. }
  5244. },
  5245. "401": {
  5246. "description": "UnauthorizedError",
  5247. "content": {
  5248. "application/json": {
  5249. "schema": {
  5250. "$ref": "#/components/schemas/UnauthorizedError"
  5251. }
  5252. }
  5253. }
  5254. }
  5255. },
  5256. "description": "Update a stored credential label.",
  5257. "summary": "Update credential",
  5258. "requestBody": {
  5259. "content": {
  5260. "application/json": {
  5261. "schema": {
  5262. "type": "object",
  5263. "properties": {
  5264. "label": {
  5265. "type": "string"
  5266. }
  5267. },
  5268. "required": [
  5269. "label"
  5270. ],
  5271. "additionalProperties": false
  5272. }
  5273. }
  5274. },
  5275. "required": true
  5276. }
  5277. },
  5278. "delete": {
  5279. "tags": [
  5280. "credential"
  5281. ],
  5282. "operationId": "v2.credential.remove",
  5283. "parameters": [
  5284. {
  5285. "name": "credentialID",
  5286. "in": "path",
  5287. "schema": {
  5288. "type": "string"
  5289. },
  5290. "required": true
  5291. },
  5292. {
  5293. "name": "location",
  5294. "in": "query",
  5295. "schema": {
  5296. "anyOf": [
  5297. {
  5298. "type": "object",
  5299. "properties": {
  5300. "directory": {
  5301. "anyOf": [
  5302. {
  5303. "type": "string"
  5304. },
  5305. {
  5306. "type": "null"
  5307. }
  5308. ]
  5309. },
  5310. "workspace": {
  5311. "anyOf": [
  5312. {
  5313. "type": "string"
  5314. },
  5315. {
  5316. "type": "null"
  5317. }
  5318. ]
  5319. }
  5320. },
  5321. "additionalProperties": false
  5322. },
  5323. {
  5324. "type": "null"
  5325. }
  5326. ]
  5327. },
  5328. "required": false,
  5329. "style": "deepObject",
  5330. "explode": true
  5331. }
  5332. ],
  5333. "security": [],
  5334. "responses": {
  5335. "204": {
  5336. "description": "<No Content>"
  5337. },
  5338. "400": {
  5339. "description": "InvalidRequestError",
  5340. "content": {
  5341. "application/json": {
  5342. "schema": {
  5343. "$ref": "#/components/schemas/InvalidRequestError"
  5344. }
  5345. }
  5346. }
  5347. },
  5348. "401": {
  5349. "description": "UnauthorizedError",
  5350. "content": {
  5351. "application/json": {
  5352. "schema": {
  5353. "$ref": "#/components/schemas/UnauthorizedError"
  5354. }
  5355. }
  5356. }
  5357. }
  5358. },
  5359. "description": "Remove a stored integration credential.",
  5360. "summary": "Remove credential"
  5361. }
  5362. },
  5363. "/api/project": {
  5364. "get": {
  5365. "tags": [
  5366. "project"
  5367. ],
  5368. "operationId": "v2.project.list",
  5369. "parameters": [],
  5370. "security": [],
  5371. "responses": {
  5372. "200": {
  5373. "description": "Success",
  5374. "content": {
  5375. "application/json": {
  5376. "schema": {
  5377. "type": "array",
  5378. "items": {
  5379. "$ref": "#/components/schemas/Project"
  5380. }
  5381. }
  5382. }
  5383. }
  5384. },
  5385. "400": {
  5386. "description": "InvalidRequestError",
  5387. "content": {
  5388. "application/json": {
  5389. "schema": {
  5390. "$ref": "#/components/schemas/InvalidRequestError"
  5391. }
  5392. }
  5393. }
  5394. },
  5395. "401": {
  5396. "description": "UnauthorizedError",
  5397. "content": {
  5398. "application/json": {
  5399. "schema": {
  5400. "$ref": "#/components/schemas/UnauthorizedError"
  5401. }
  5402. }
  5403. }
  5404. }
  5405. },
  5406. "description": "List known projects.",
  5407. "summary": "List projects"
  5408. }
  5409. },
  5410. "/api/project/current": {
  5411. "get": {
  5412. "tags": [
  5413. "project"
  5414. ],
  5415. "operationId": "v2.project.current",
  5416. "parameters": [
  5417. {
  5418. "name": "location",
  5419. "in": "query",
  5420. "schema": {
  5421. "anyOf": [
  5422. {
  5423. "type": "object",
  5424. "properties": {
  5425. "directory": {
  5426. "anyOf": [
  5427. {
  5428. "type": "string"
  5429. },
  5430. {
  5431. "type": "null"
  5432. }
  5433. ]
  5434. },
  5435. "workspace": {
  5436. "anyOf": [
  5437. {
  5438. "type": "string"
  5439. },
  5440. {
  5441. "type": "null"
  5442. }
  5443. ]
  5444. }
  5445. },
  5446. "additionalProperties": false
  5447. },
  5448. {
  5449. "type": "null"
  5450. }
  5451. ]
  5452. },
  5453. "required": false,
  5454. "style": "deepObject",
  5455. "explode": true
  5456. }
  5457. ],
  5458. "security": [],
  5459. "responses": {
  5460. "200": {
  5461. "description": "Project.Current",
  5462. "content": {
  5463. "application/json": {
  5464. "schema": {
  5465. "$ref": "#/components/schemas/Project.Current"
  5466. }
  5467. }
  5468. }
  5469. },
  5470. "400": {
  5471. "description": "InvalidRequestError",
  5472. "content": {
  5473. "application/json": {
  5474. "schema": {
  5475. "$ref": "#/components/schemas/InvalidRequestError"
  5476. }
  5477. }
  5478. }
  5479. },
  5480. "401": {
  5481. "description": "UnauthorizedError",
  5482. "content": {
  5483. "application/json": {
  5484. "schema": {
  5485. "$ref": "#/components/schemas/UnauthorizedError"
  5486. }
  5487. }
  5488. }
  5489. }
  5490. },
  5491. "description": "Resolve the project for the requested location.",
  5492. "summary": "Get current project"
  5493. }
  5494. },
  5495. "/api/project/{projectID}/directories": {
  5496. "get": {
  5497. "tags": [
  5498. "project"
  5499. ],
  5500. "operationId": "v2.project.directories",
  5501. "parameters": [
  5502. {
  5503. "name": "projectID",
  5504. "in": "path",
  5505. "schema": {
  5506. "type": "string"
  5507. },
  5508. "required": true
  5509. },
  5510. {
  5511. "name": "location",
  5512. "in": "query",
  5513. "schema": {
  5514. "anyOf": [
  5515. {
  5516. "type": "object",
  5517. "properties": {
  5518. "directory": {
  5519. "anyOf": [
  5520. {
  5521. "type": "string"
  5522. },
  5523. {
  5524. "type": "null"
  5525. }
  5526. ]
  5527. },
  5528. "workspace": {
  5529. "anyOf": [
  5530. {
  5531. "type": "string"
  5532. },
  5533. {
  5534. "type": "null"
  5535. }
  5536. ]
  5537. }
  5538. },
  5539. "additionalProperties": false
  5540. },
  5541. {
  5542. "type": "null"
  5543. }
  5544. ]
  5545. },
  5546. "required": false,
  5547. "style": "deepObject",
  5548. "explode": true
  5549. }
  5550. ],
  5551. "security": [],
  5552. "responses": {
  5553. "200": {
  5554. "description": "Project.Directories",
  5555. "content": {
  5556. "application/json": {
  5557. "schema": {
  5558. "$ref": "#/components/schemas/Project.Directories"
  5559. }
  5560. }
  5561. }
  5562. },
  5563. "400": {
  5564. "description": "InvalidRequestError",
  5565. "content": {
  5566. "application/json": {
  5567. "schema": {
  5568. "$ref": "#/components/schemas/InvalidRequestError"
  5569. }
  5570. }
  5571. }
  5572. },
  5573. "401": {
  5574. "description": "UnauthorizedError",
  5575. "content": {
  5576. "application/json": {
  5577. "schema": {
  5578. "$ref": "#/components/schemas/UnauthorizedError"
  5579. }
  5580. }
  5581. }
  5582. }
  5583. },
  5584. "description": "List known local absolute directories for a project.",
  5585. "summary": "List project directories"
  5586. }
  5587. },
  5588. "/api/form/request": {
  5589. "get": {
  5590. "tags": [
  5591. "form"
  5592. ],
  5593. "operationId": "v2.form.request.list",
  5594. "parameters": [
  5595. {
  5596. "name": "location",
  5597. "in": "query",
  5598. "schema": {
  5599. "anyOf": [
  5600. {
  5601. "type": "object",
  5602. "properties": {
  5603. "directory": {
  5604. "anyOf": [
  5605. {
  5606. "type": "string"
  5607. },
  5608. {
  5609. "type": "null"
  5610. }
  5611. ]
  5612. },
  5613. "workspace": {
  5614. "anyOf": [
  5615. {
  5616. "type": "string"
  5617. },
  5618. {
  5619. "type": "null"
  5620. }
  5621. ]
  5622. }
  5623. },
  5624. "additionalProperties": false
  5625. },
  5626. {
  5627. "type": "null"
  5628. }
  5629. ]
  5630. },
  5631. "required": false,
  5632. "style": "deepObject",
  5633. "explode": true
  5634. }
  5635. ],
  5636. "security": [],
  5637. "responses": {
  5638. "200": {
  5639. "description": "Success",
  5640. "content": {
  5641. "application/json": {
  5642. "schema": {
  5643. "type": "object",
  5644. "properties": {
  5645. "location": {
  5646. "$ref": "#/components/schemas/Location.Info"
  5647. },
  5648. "data": {
  5649. "type": "array",
  5650. "items": {
  5651. "anyOf": [
  5652. {
  5653. "$ref": "#/components/schemas/Form.FormInfo"
  5654. },
  5655. {
  5656. "$ref": "#/components/schemas/Form.UrlInfo"
  5657. }
  5658. ]
  5659. }
  5660. }
  5661. },
  5662. "required": [
  5663. "location",
  5664. "data"
  5665. ],
  5666. "additionalProperties": false
  5667. }
  5668. }
  5669. }
  5670. },
  5671. "400": {
  5672. "description": "InvalidRequestError",
  5673. "content": {
  5674. "application/json": {
  5675. "schema": {
  5676. "$ref": "#/components/schemas/InvalidRequestError"
  5677. }
  5678. }
  5679. }
  5680. },
  5681. "401": {
  5682. "description": "UnauthorizedError",
  5683. "content": {
  5684. "application/json": {
  5685. "schema": {
  5686. "$ref": "#/components/schemas/UnauthorizedError"
  5687. }
  5688. }
  5689. }
  5690. }
  5691. },
  5692. "description": "Retrieve pending forms for a location.",
  5693. "summary": "List pending form requests"
  5694. }
  5695. },
  5696. "/api/session/{sessionID}/form": {
  5697. "get": {
  5698. "tags": [
  5699. "form"
  5700. ],
  5701. "operationId": "v2.session.form.list",
  5702. "parameters": [
  5703. {
  5704. "name": "sessionID",
  5705. "in": "path",
  5706. "schema": {
  5707. "type": "string"
  5708. },
  5709. "required": true
  5710. }
  5711. ],
  5712. "security": [],
  5713. "responses": {
  5714. "200": {
  5715. "description": "Success",
  5716. "content": {
  5717. "application/json": {
  5718. "schema": {
  5719. "type": "object",
  5720. "properties": {
  5721. "data": {
  5722. "type": "array",
  5723. "items": {
  5724. "anyOf": [
  5725. {
  5726. "$ref": "#/components/schemas/Form.FormInfo"
  5727. },
  5728. {
  5729. "$ref": "#/components/schemas/Form.UrlInfo"
  5730. }
  5731. ]
  5732. }
  5733. }
  5734. },
  5735. "required": [
  5736. "data"
  5737. ],
  5738. "additionalProperties": false
  5739. }
  5740. }
  5741. }
  5742. },
  5743. "400": {
  5744. "description": "InvalidRequestError",
  5745. "content": {
  5746. "application/json": {
  5747. "schema": {
  5748. "$ref": "#/components/schemas/InvalidRequestError"
  5749. }
  5750. }
  5751. }
  5752. },
  5753. "401": {
  5754. "description": "UnauthorizedError",
  5755. "content": {
  5756. "application/json": {
  5757. "schema": {
  5758. "$ref": "#/components/schemas/UnauthorizedError"
  5759. }
  5760. }
  5761. }
  5762. },
  5763. "404": {
  5764. "description": "SessionNotFoundError",
  5765. "content": {
  5766. "application/json": {
  5767. "schema": {
  5768. "anyOf": [
  5769. {
  5770. "$ref": "#/components/schemas/SessionNotFoundError"
  5771. },
  5772. {
  5773. "$ref": "#/components/schemas/SessionNotFoundError"
  5774. }
  5775. ]
  5776. }
  5777. }
  5778. }
  5779. }
  5780. },
  5781. "description": "Retrieve pending forms for a session.",
  5782. "summary": "List session forms"
  5783. },
  5784. "post": {
  5785. "tags": [
  5786. "form"
  5787. ],
  5788. "operationId": "v2.session.form.create",
  5789. "parameters": [
  5790. {
  5791. "name": "sessionID",
  5792. "in": "path",
  5793. "schema": {
  5794. "type": "string"
  5795. },
  5796. "required": true
  5797. }
  5798. ],
  5799. "security": [],
  5800. "responses": {
  5801. "200": {
  5802. "description": "Success",
  5803. "content": {
  5804. "application/json": {
  5805. "schema": {
  5806. "type": "object",
  5807. "properties": {
  5808. "data": {
  5809. "anyOf": [
  5810. {
  5811. "$ref": "#/components/schemas/Form.FormInfo"
  5812. },
  5813. {
  5814. "$ref": "#/components/schemas/Form.UrlInfo"
  5815. }
  5816. ]
  5817. }
  5818. },
  5819. "required": [
  5820. "data"
  5821. ],
  5822. "additionalProperties": false
  5823. }
  5824. }
  5825. }
  5826. },
  5827. "400": {
  5828. "description": "InvalidRequestError",
  5829. "content": {
  5830. "application/json": {
  5831. "schema": {
  5832. "anyOf": [
  5833. {
  5834. "$ref": "#/components/schemas/InvalidRequestError1"
  5835. },
  5836. {
  5837. "$ref": "#/components/schemas/InvalidRequestError"
  5838. }
  5839. ]
  5840. }
  5841. }
  5842. }
  5843. },
  5844. "401": {
  5845. "description": "UnauthorizedError",
  5846. "content": {
  5847. "application/json": {
  5848. "schema": {
  5849. "$ref": "#/components/schemas/UnauthorizedError"
  5850. }
  5851. }
  5852. }
  5853. },
  5854. "404": {
  5855. "description": "SessionNotFoundError",
  5856. "content": {
  5857. "application/json": {
  5858. "schema": {
  5859. "anyOf": [
  5860. {
  5861. "$ref": "#/components/schemas/SessionNotFoundError"
  5862. },
  5863. {
  5864. "$ref": "#/components/schemas/SessionNotFoundError"
  5865. }
  5866. ]
  5867. }
  5868. }
  5869. }
  5870. },
  5871. "409": {
  5872. "description": "ConflictError",
  5873. "content": {
  5874. "application/json": {
  5875. "schema": {
  5876. "$ref": "#/components/schemas/ConflictError"
  5877. }
  5878. }
  5879. }
  5880. }
  5881. },
  5882. "description": "Create a form for a session.",
  5883. "summary": "Create session form",
  5884. "requestBody": {
  5885. "content": {
  5886. "application/json": {
  5887. "schema": {
  5888. "$ref": "#/components/schemas/Form.CreatePayload"
  5889. }
  5890. }
  5891. },
  5892. "required": true
  5893. }
  5894. }
  5895. },
  5896. "/api/session/{sessionID}/form/{formID}": {
  5897. "get": {
  5898. "tags": [
  5899. "form"
  5900. ],
  5901. "operationId": "v2.session.form.get",
  5902. "parameters": [
  5903. {
  5904. "name": "sessionID",
  5905. "in": "path",
  5906. "schema": {
  5907. "type": "string"
  5908. },
  5909. "required": true
  5910. },
  5911. {
  5912. "name": "formID",
  5913. "in": "path",
  5914. "schema": {
  5915. "type": "string",
  5916. "allOf": [
  5917. {
  5918. "pattern": "^frm_"
  5919. }
  5920. ]
  5921. },
  5922. "required": true
  5923. }
  5924. ],
  5925. "security": [],
  5926. "responses": {
  5927. "200": {
  5928. "description": "Success",
  5929. "content": {
  5930. "application/json": {
  5931. "schema": {
  5932. "type": "object",
  5933. "properties": {
  5934. "data": {
  5935. "anyOf": [
  5936. {
  5937. "$ref": "#/components/schemas/Form.FormInfo"
  5938. },
  5939. {
  5940. "$ref": "#/components/schemas/Form.UrlInfo"
  5941. }
  5942. ]
  5943. }
  5944. },
  5945. "required": [
  5946. "data"
  5947. ],
  5948. "additionalProperties": false
  5949. }
  5950. }
  5951. }
  5952. },
  5953. "400": {
  5954. "description": "InvalidRequestError",
  5955. "content": {
  5956. "application/json": {
  5957. "schema": {
  5958. "$ref": "#/components/schemas/InvalidRequestError"
  5959. }
  5960. }
  5961. }
  5962. },
  5963. "401": {
  5964. "description": "UnauthorizedError",
  5965. "content": {
  5966. "application/json": {
  5967. "schema": {
  5968. "$ref": "#/components/schemas/UnauthorizedError"
  5969. }
  5970. }
  5971. }
  5972. },
  5973. "404": {
  5974. "description": "SessionNotFoundError | FormNotFoundError",
  5975. "content": {
  5976. "application/json": {
  5977. "schema": {
  5978. "anyOf": [
  5979. {
  5980. "$ref": "#/components/schemas/FormNotFoundError"
  5981. },
  5982. {
  5983. "$ref": "#/components/schemas/SessionNotFoundError"
  5984. },
  5985. {
  5986. "$ref": "#/components/schemas/SessionNotFoundError"
  5987. }
  5988. ]
  5989. }
  5990. }
  5991. }
  5992. }
  5993. },
  5994. "description": "Retrieve a form for a session.",
  5995. "summary": "Get session form"
  5996. }
  5997. },
  5998. "/api/session/{sessionID}/form/{formID}/state": {
  5999. "get": {
  6000. "tags": [
  6001. "form"
  6002. ],
  6003. "operationId": "v2.session.form.state",
  6004. "parameters": [
  6005. {
  6006. "name": "sessionID",
  6007. "in": "path",
  6008. "schema": {
  6009. "type": "string"
  6010. },
  6011. "required": true
  6012. },
  6013. {
  6014. "name": "formID",
  6015. "in": "path",
  6016. "schema": {
  6017. "type": "string",
  6018. "allOf": [
  6019. {
  6020. "pattern": "^frm_"
  6021. }
  6022. ]
  6023. },
  6024. "required": true
  6025. }
  6026. ],
  6027. "security": [],
  6028. "responses": {
  6029. "200": {
  6030. "description": "Success",
  6031. "content": {
  6032. "application/json": {
  6033. "schema": {
  6034. "type": "object",
  6035. "properties": {
  6036. "data": {
  6037. "$ref": "#/components/schemas/Form.State"
  6038. }
  6039. },
  6040. "required": [
  6041. "data"
  6042. ],
  6043. "additionalProperties": false
  6044. }
  6045. }
  6046. }
  6047. },
  6048. "400": {
  6049. "description": "InvalidRequestError",
  6050. "content": {
  6051. "application/json": {
  6052. "schema": {
  6053. "$ref": "#/components/schemas/InvalidRequestError"
  6054. }
  6055. }
  6056. }
  6057. },
  6058. "401": {
  6059. "description": "UnauthorizedError",
  6060. "content": {
  6061. "application/json": {
  6062. "schema": {
  6063. "$ref": "#/components/schemas/UnauthorizedError"
  6064. }
  6065. }
  6066. }
  6067. },
  6068. "404": {
  6069. "description": "SessionNotFoundError | FormNotFoundError",
  6070. "content": {
  6071. "application/json": {
  6072. "schema": {
  6073. "anyOf": [
  6074. {
  6075. "$ref": "#/components/schemas/FormNotFoundError"
  6076. },
  6077. {
  6078. "$ref": "#/components/schemas/SessionNotFoundError"
  6079. },
  6080. {
  6081. "$ref": "#/components/schemas/SessionNotFoundError"
  6082. }
  6083. ]
  6084. }
  6085. }
  6086. }
  6087. }
  6088. },
  6089. "description": "Retrieve the current state for a form.",
  6090. "summary": "Get form state"
  6091. }
  6092. },
  6093. "/api/session/{sessionID}/form/{formID}/reply": {
  6094. "post": {
  6095. "tags": [
  6096. "form"
  6097. ],
  6098. "operationId": "v2.session.form.reply",
  6099. "parameters": [
  6100. {
  6101. "name": "sessionID",
  6102. "in": "path",
  6103. "schema": {
  6104. "type": "string"
  6105. },
  6106. "required": true
  6107. },
  6108. {
  6109. "name": "formID",
  6110. "in": "path",
  6111. "schema": {
  6112. "type": "string",
  6113. "allOf": [
  6114. {
  6115. "pattern": "^frm_"
  6116. }
  6117. ]
  6118. },
  6119. "required": true
  6120. }
  6121. ],
  6122. "security": [],
  6123. "responses": {
  6124. "204": {
  6125. "description": "<No Content>"
  6126. },
  6127. "400": {
  6128. "description": "FormInvalidAnswerError | InvalidRequestError",
  6129. "content": {
  6130. "application/json": {
  6131. "schema": {
  6132. "anyOf": [
  6133. {
  6134. "$ref": "#/components/schemas/FormInvalidAnswerError"
  6135. },
  6136. {
  6137. "$ref": "#/components/schemas/InvalidRequestError"
  6138. }
  6139. ]
  6140. }
  6141. }
  6142. }
  6143. },
  6144. "401": {
  6145. "description": "UnauthorizedError",
  6146. "content": {
  6147. "application/json": {
  6148. "schema": {
  6149. "$ref": "#/components/schemas/UnauthorizedError"
  6150. }
  6151. }
  6152. }
  6153. },
  6154. "404": {
  6155. "description": "SessionNotFoundError | FormNotFoundError",
  6156. "content": {
  6157. "application/json": {
  6158. "schema": {
  6159. "anyOf": [
  6160. {
  6161. "$ref": "#/components/schemas/FormNotFoundError"
  6162. },
  6163. {
  6164. "$ref": "#/components/schemas/SessionNotFoundError"
  6165. },
  6166. {
  6167. "$ref": "#/components/schemas/SessionNotFoundError"
  6168. }
  6169. ]
  6170. }
  6171. }
  6172. }
  6173. },
  6174. "409": {
  6175. "description": "FormAlreadySettledError",
  6176. "content": {
  6177. "application/json": {
  6178. "schema": {
  6179. "$ref": "#/components/schemas/FormAlreadySettledError"
  6180. }
  6181. }
  6182. }
  6183. }
  6184. },
  6185. "description": "Submit an answer to a pending form.",
  6186. "summary": "Reply to form",
  6187. "requestBody": {
  6188. "content": {
  6189. "application/json": {
  6190. "schema": {
  6191. "$ref": "#/components/schemas/Form.Reply"
  6192. }
  6193. }
  6194. },
  6195. "required": true
  6196. }
  6197. }
  6198. },
  6199. "/api/session/{sessionID}/form/{formID}/cancel": {
  6200. "post": {
  6201. "tags": [
  6202. "form"
  6203. ],
  6204. "operationId": "v2.session.form.cancel",
  6205. "parameters": [
  6206. {
  6207. "name": "sessionID",
  6208. "in": "path",
  6209. "schema": {
  6210. "type": "string"
  6211. },
  6212. "required": true
  6213. },
  6214. {
  6215. "name": "formID",
  6216. "in": "path",
  6217. "schema": {
  6218. "type": "string",
  6219. "allOf": [
  6220. {
  6221. "pattern": "^frm_"
  6222. }
  6223. ]
  6224. },
  6225. "required": true
  6226. }
  6227. ],
  6228. "security": [],
  6229. "responses": {
  6230. "204": {
  6231. "description": "<No Content>"
  6232. },
  6233. "400": {
  6234. "description": "InvalidRequestError",
  6235. "content": {
  6236. "application/json": {
  6237. "schema": {
  6238. "$ref": "#/components/schemas/InvalidRequestError"
  6239. }
  6240. }
  6241. }
  6242. },
  6243. "401": {
  6244. "description": "UnauthorizedError",
  6245. "content": {
  6246. "application/json": {
  6247. "schema": {
  6248. "$ref": "#/components/schemas/UnauthorizedError"
  6249. }
  6250. }
  6251. }
  6252. },
  6253. "404": {
  6254. "description": "SessionNotFoundError | FormNotFoundError",
  6255. "content": {
  6256. "application/json": {
  6257. "schema": {
  6258. "anyOf": [
  6259. {
  6260. "$ref": "#/components/schemas/FormNotFoundError"
  6261. },
  6262. {
  6263. "$ref": "#/components/schemas/SessionNotFoundError"
  6264. },
  6265. {
  6266. "$ref": "#/components/schemas/SessionNotFoundError"
  6267. }
  6268. ]
  6269. }
  6270. }
  6271. }
  6272. },
  6273. "409": {
  6274. "description": "FormAlreadySettledError",
  6275. "content": {
  6276. "application/json": {
  6277. "schema": {
  6278. "$ref": "#/components/schemas/FormAlreadySettledError"
  6279. }
  6280. }
  6281. }
  6282. }
  6283. },
  6284. "description": "Cancel a pending form.",
  6285. "summary": "Cancel form"
  6286. }
  6287. },
  6288. "/api/permission/request": {
  6289. "get": {
  6290. "tags": [
  6291. "permission"
  6292. ],
  6293. "operationId": "v2.permission.request.list",
  6294. "parameters": [
  6295. {
  6296. "name": "location",
  6297. "in": "query",
  6298. "schema": {
  6299. "anyOf": [
  6300. {
  6301. "type": "object",
  6302. "properties": {
  6303. "directory": {
  6304. "anyOf": [
  6305. {
  6306. "type": "string"
  6307. },
  6308. {
  6309. "type": "null"
  6310. }
  6311. ]
  6312. },
  6313. "workspace": {
  6314. "anyOf": [
  6315. {
  6316. "type": "string"
  6317. },
  6318. {
  6319. "type": "null"
  6320. }
  6321. ]
  6322. }
  6323. },
  6324. "additionalProperties": false
  6325. },
  6326. {
  6327. "type": "null"
  6328. }
  6329. ]
  6330. },
  6331. "required": false,
  6332. "style": "deepObject",
  6333. "explode": true
  6334. }
  6335. ],
  6336. "security": [],
  6337. "responses": {
  6338. "200": {
  6339. "description": "Success",
  6340. "content": {
  6341. "application/json": {
  6342. "schema": {
  6343. "type": "object",
  6344. "properties": {
  6345. "location": {
  6346. "$ref": "#/components/schemas/Location.Info"
  6347. },
  6348. "data": {
  6349. "type": "array",
  6350. "items": {
  6351. "$ref": "#/components/schemas/PermissionV2.Request"
  6352. }
  6353. }
  6354. },
  6355. "required": [
  6356. "location",
  6357. "data"
  6358. ],
  6359. "additionalProperties": false
  6360. }
  6361. }
  6362. }
  6363. },
  6364. "400": {
  6365. "description": "InvalidRequestError",
  6366. "content": {
  6367. "application/json": {
  6368. "schema": {
  6369. "$ref": "#/components/schemas/InvalidRequestError"
  6370. }
  6371. }
  6372. }
  6373. },
  6374. "401": {
  6375. "description": "UnauthorizedError",
  6376. "content": {
  6377. "application/json": {
  6378. "schema": {
  6379. "$ref": "#/components/schemas/UnauthorizedError"
  6380. }
  6381. }
  6382. }
  6383. }
  6384. },
  6385. "description": "Retrieve pending permission requests for a location.",
  6386. "summary": "List pending permission requests"
  6387. }
  6388. },
  6389. "/api/permission/saved": {
  6390. "get": {
  6391. "tags": [
  6392. "permission"
  6393. ],
  6394. "operationId": "v2.permission.saved.list",
  6395. "parameters": [
  6396. {
  6397. "name": "projectID",
  6398. "in": "query",
  6399. "schema": {
  6400. "anyOf": [
  6401. {
  6402. "type": "string"
  6403. },
  6404. {
  6405. "type": "null"
  6406. }
  6407. ]
  6408. },
  6409. "required": false
  6410. }
  6411. ],
  6412. "security": [],
  6413. "responses": {
  6414. "200": {
  6415. "description": "Success",
  6416. "content": {
  6417. "application/json": {
  6418. "schema": {
  6419. "type": "object",
  6420. "properties": {
  6421. "data": {
  6422. "type": "array",
  6423. "items": {
  6424. "$ref": "#/components/schemas/PermissionSaved.Info"
  6425. }
  6426. }
  6427. },
  6428. "required": [
  6429. "data"
  6430. ],
  6431. "additionalProperties": false
  6432. }
  6433. }
  6434. }
  6435. },
  6436. "400": {
  6437. "description": "InvalidRequestError",
  6438. "content": {
  6439. "application/json": {
  6440. "schema": {
  6441. "$ref": "#/components/schemas/InvalidRequestError"
  6442. }
  6443. }
  6444. }
  6445. },
  6446. "401": {
  6447. "description": "UnauthorizedError",
  6448. "content": {
  6449. "application/json": {
  6450. "schema": {
  6451. "$ref": "#/components/schemas/UnauthorizedError"
  6452. }
  6453. }
  6454. }
  6455. }
  6456. },
  6457. "description": "Retrieve saved permissions, optionally filtered by project.",
  6458. "summary": "List saved permissions"
  6459. }
  6460. },
  6461. "/api/permission/saved/{id}": {
  6462. "delete": {
  6463. "tags": [
  6464. "permission"
  6465. ],
  6466. "operationId": "v2.permission.saved.remove",
  6467. "parameters": [
  6468. {
  6469. "name": "id",
  6470. "in": "path",
  6471. "schema": {
  6472. "type": "string"
  6473. },
  6474. "required": true
  6475. }
  6476. ],
  6477. "security": [],
  6478. "responses": {
  6479. "204": {
  6480. "description": "<No Content>"
  6481. },
  6482. "400": {
  6483. "description": "InvalidRequestError",
  6484. "content": {
  6485. "application/json": {
  6486. "schema": {
  6487. "$ref": "#/components/schemas/InvalidRequestError"
  6488. }
  6489. }
  6490. }
  6491. },
  6492. "401": {
  6493. "description": "UnauthorizedError",
  6494. "content": {
  6495. "application/json": {
  6496. "schema": {
  6497. "$ref": "#/components/schemas/UnauthorizedError"
  6498. }
  6499. }
  6500. }
  6501. }
  6502. },
  6503. "description": "Remove a saved permission by ID.",
  6504. "summary": "Remove saved permission"
  6505. }
  6506. },
  6507. "/api/session/{sessionID}/permission": {
  6508. "post": {
  6509. "tags": [
  6510. "permission"
  6511. ],
  6512. "operationId": "v2.session.permission.create",
  6513. "parameters": [
  6514. {
  6515. "name": "sessionID",
  6516. "in": "path",
  6517. "schema": {
  6518. "type": "string",
  6519. "allOf": [
  6520. {
  6521. "pattern": "^ses"
  6522. }
  6523. ]
  6524. },
  6525. "required": true
  6526. }
  6527. ],
  6528. "security": [],
  6529. "responses": {
  6530. "200": {
  6531. "description": "Success",
  6532. "content": {
  6533. "application/json": {
  6534. "schema": {
  6535. "type": "object",
  6536. "properties": {
  6537. "data": {
  6538. "type": "object",
  6539. "properties": {
  6540. "id": {
  6541. "type": "string",
  6542. "allOf": [
  6543. {
  6544. "pattern": "^per"
  6545. }
  6546. ]
  6547. },
  6548. "effect": {
  6549. "$ref": "#/components/schemas/PermissionV2.Effect"
  6550. }
  6551. },
  6552. "required": [
  6553. "id",
  6554. "effect"
  6555. ],
  6556. "additionalProperties": false
  6557. }
  6558. },
  6559. "required": [
  6560. "data"
  6561. ],
  6562. "additionalProperties": false
  6563. }
  6564. }
  6565. }
  6566. },
  6567. "400": {
  6568. "description": "InvalidRequestError",
  6569. "content": {
  6570. "application/json": {
  6571. "schema": {
  6572. "$ref": "#/components/schemas/InvalidRequestError"
  6573. }
  6574. }
  6575. }
  6576. },
  6577. "401": {
  6578. "description": "UnauthorizedError",
  6579. "content": {
  6580. "application/json": {
  6581. "schema": {
  6582. "$ref": "#/components/schemas/UnauthorizedError"
  6583. }
  6584. }
  6585. }
  6586. },
  6587. "404": {
  6588. "description": "SessionNotFoundError",
  6589. "content": {
  6590. "application/json": {
  6591. "schema": {
  6592. "anyOf": [
  6593. {
  6594. "$ref": "#/components/schemas/SessionNotFoundError"
  6595. },
  6596. {
  6597. "$ref": "#/components/schemas/SessionNotFoundError"
  6598. }
  6599. ]
  6600. }
  6601. }
  6602. }
  6603. }
  6604. },
  6605. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  6606. "summary": "Create permission request",
  6607. "requestBody": {
  6608. "content": {
  6609. "application/json": {
  6610. "schema": {
  6611. "type": "object",
  6612. "properties": {
  6613. "id": {
  6614. "anyOf": [
  6615. {
  6616. "type": "string",
  6617. "allOf": [
  6618. {
  6619. "pattern": "^per"
  6620. }
  6621. ]
  6622. },
  6623. {
  6624. "type": "null"
  6625. }
  6626. ]
  6627. },
  6628. "action": {
  6629. "type": "string"
  6630. },
  6631. "resources": {
  6632. "type": "array",
  6633. "items": {
  6634. "type": "string"
  6635. }
  6636. },
  6637. "save": {
  6638. "type": "array",
  6639. "items": {
  6640. "type": "string"
  6641. }
  6642. },
  6643. "metadata": {
  6644. "type": "object"
  6645. },
  6646. "source": {
  6647. "$ref": "#/components/schemas/PermissionV2.Source"
  6648. },
  6649. "agent": {
  6650. "anyOf": [
  6651. {
  6652. "type": "string"
  6653. },
  6654. {
  6655. "type": "null"
  6656. }
  6657. ]
  6658. }
  6659. },
  6660. "required": [
  6661. "action",
  6662. "resources"
  6663. ],
  6664. "additionalProperties": false
  6665. }
  6666. }
  6667. },
  6668. "required": true
  6669. }
  6670. },
  6671. "get": {
  6672. "tags": [
  6673. "permission"
  6674. ],
  6675. "operationId": "v2.session.permission.list",
  6676. "parameters": [
  6677. {
  6678. "name": "sessionID",
  6679. "in": "path",
  6680. "schema": {
  6681. "type": "string",
  6682. "allOf": [
  6683. {
  6684. "pattern": "^ses"
  6685. }
  6686. ]
  6687. },
  6688. "required": true
  6689. }
  6690. ],
  6691. "security": [],
  6692. "responses": {
  6693. "200": {
  6694. "description": "Success",
  6695. "content": {
  6696. "application/json": {
  6697. "schema": {
  6698. "type": "object",
  6699. "properties": {
  6700. "data": {
  6701. "type": "array",
  6702. "items": {
  6703. "$ref": "#/components/schemas/PermissionV2.Request"
  6704. }
  6705. }
  6706. },
  6707. "required": [
  6708. "data"
  6709. ],
  6710. "additionalProperties": false
  6711. }
  6712. }
  6713. }
  6714. },
  6715. "400": {
  6716. "description": "InvalidRequestError",
  6717. "content": {
  6718. "application/json": {
  6719. "schema": {
  6720. "$ref": "#/components/schemas/InvalidRequestError"
  6721. }
  6722. }
  6723. }
  6724. },
  6725. "401": {
  6726. "description": "UnauthorizedError",
  6727. "content": {
  6728. "application/json": {
  6729. "schema": {
  6730. "$ref": "#/components/schemas/UnauthorizedError"
  6731. }
  6732. }
  6733. }
  6734. },
  6735. "404": {
  6736. "description": "SessionNotFoundError",
  6737. "content": {
  6738. "application/json": {
  6739. "schema": {
  6740. "anyOf": [
  6741. {
  6742. "$ref": "#/components/schemas/SessionNotFoundError"
  6743. },
  6744. {
  6745. "$ref": "#/components/schemas/SessionNotFoundError"
  6746. }
  6747. ]
  6748. }
  6749. }
  6750. }
  6751. }
  6752. },
  6753. "description": "Retrieve pending permission requests owned by a session.",
  6754. "summary": "List session permission requests"
  6755. }
  6756. },
  6757. "/api/session/{sessionID}/permission/{requestID}": {
  6758. "get": {
  6759. "tags": [
  6760. "permission"
  6761. ],
  6762. "operationId": "v2.session.permission.get",
  6763. "parameters": [
  6764. {
  6765. "name": "sessionID",
  6766. "in": "path",
  6767. "schema": {
  6768. "type": "string",
  6769. "allOf": [
  6770. {
  6771. "pattern": "^ses"
  6772. }
  6773. ]
  6774. },
  6775. "required": true
  6776. },
  6777. {
  6778. "name": "requestID",
  6779. "in": "path",
  6780. "schema": {
  6781. "type": "string",
  6782. "allOf": [
  6783. {
  6784. "pattern": "^per"
  6785. }
  6786. ]
  6787. },
  6788. "required": true
  6789. }
  6790. ],
  6791. "security": [],
  6792. "responses": {
  6793. "200": {
  6794. "description": "Success",
  6795. "content": {
  6796. "application/json": {
  6797. "schema": {
  6798. "type": "object",
  6799. "properties": {
  6800. "data": {
  6801. "$ref": "#/components/schemas/PermissionV2.Request"
  6802. }
  6803. },
  6804. "required": [
  6805. "data"
  6806. ],
  6807. "additionalProperties": false
  6808. }
  6809. }
  6810. }
  6811. },
  6812. "400": {
  6813. "description": "InvalidRequestError",
  6814. "content": {
  6815. "application/json": {
  6816. "schema": {
  6817. "$ref": "#/components/schemas/InvalidRequestError"
  6818. }
  6819. }
  6820. }
  6821. },
  6822. "401": {
  6823. "description": "UnauthorizedError",
  6824. "content": {
  6825. "application/json": {
  6826. "schema": {
  6827. "$ref": "#/components/schemas/UnauthorizedError"
  6828. }
  6829. }
  6830. }
  6831. },
  6832. "404": {
  6833. "description": "SessionNotFoundError | PermissionNotFoundError",
  6834. "content": {
  6835. "application/json": {
  6836. "schema": {
  6837. "anyOf": [
  6838. {
  6839. "$ref": "#/components/schemas/PermissionNotFoundError"
  6840. },
  6841. {
  6842. "$ref": "#/components/schemas/SessionNotFoundError"
  6843. },
  6844. {
  6845. "$ref": "#/components/schemas/SessionNotFoundError"
  6846. }
  6847. ]
  6848. }
  6849. }
  6850. }
  6851. }
  6852. },
  6853. "description": "Retrieve a pending permission request owned by a session.",
  6854. "summary": "Get permission request"
  6855. }
  6856. },
  6857. "/api/session/{sessionID}/permission/{requestID}/reply": {
  6858. "post": {
  6859. "tags": [
  6860. "permission"
  6861. ],
  6862. "operationId": "v2.session.permission.reply",
  6863. "parameters": [
  6864. {
  6865. "name": "sessionID",
  6866. "in": "path",
  6867. "schema": {
  6868. "type": "string",
  6869. "allOf": [
  6870. {
  6871. "pattern": "^ses"
  6872. }
  6873. ]
  6874. },
  6875. "required": true
  6876. },
  6877. {
  6878. "name": "requestID",
  6879. "in": "path",
  6880. "schema": {
  6881. "type": "string",
  6882. "allOf": [
  6883. {
  6884. "pattern": "^per"
  6885. }
  6886. ]
  6887. },
  6888. "required": true
  6889. }
  6890. ],
  6891. "security": [],
  6892. "responses": {
  6893. "204": {
  6894. "description": "<No Content>"
  6895. },
  6896. "400": {
  6897. "description": "InvalidRequestError",
  6898. "content": {
  6899. "application/json": {
  6900. "schema": {
  6901. "$ref": "#/components/schemas/InvalidRequestError"
  6902. }
  6903. }
  6904. }
  6905. },
  6906. "401": {
  6907. "description": "UnauthorizedError",
  6908. "content": {
  6909. "application/json": {
  6910. "schema": {
  6911. "$ref": "#/components/schemas/UnauthorizedError"
  6912. }
  6913. }
  6914. }
  6915. },
  6916. "404": {
  6917. "description": "SessionNotFoundError | PermissionNotFoundError",
  6918. "content": {
  6919. "application/json": {
  6920. "schema": {
  6921. "anyOf": [
  6922. {
  6923. "$ref": "#/components/schemas/PermissionNotFoundError"
  6924. },
  6925. {
  6926. "$ref": "#/components/schemas/SessionNotFoundError"
  6927. },
  6928. {
  6929. "$ref": "#/components/schemas/SessionNotFoundError"
  6930. }
  6931. ]
  6932. }
  6933. }
  6934. }
  6935. }
  6936. },
  6937. "description": "Respond to a pending permission request owned by a session.",
  6938. "summary": "Reply to pending permission request",
  6939. "requestBody": {
  6940. "content": {
  6941. "application/json": {
  6942. "schema": {
  6943. "type": "object",
  6944. "properties": {
  6945. "reply": {
  6946. "$ref": "#/components/schemas/PermissionV2.Reply"
  6947. },
  6948. "message": {
  6949. "anyOf": [
  6950. {
  6951. "type": "string"
  6952. },
  6953. {
  6954. "type": "null"
  6955. }
  6956. ]
  6957. }
  6958. },
  6959. "required": [
  6960. "reply"
  6961. ],
  6962. "additionalProperties": false
  6963. }
  6964. }
  6965. },
  6966. "required": true
  6967. }
  6968. }
  6969. },
  6970. "/api/fs/read/*": {
  6971. "get": {
  6972. "tags": [
  6973. "filesystem"
  6974. ],
  6975. "operationId": "v2.fs.read",
  6976. "parameters": [
  6977. {
  6978. "name": "location",
  6979. "in": "query",
  6980. "schema": {
  6981. "anyOf": [
  6982. {
  6983. "type": "object",
  6984. "properties": {
  6985. "directory": {
  6986. "anyOf": [
  6987. {
  6988. "type": "string"
  6989. },
  6990. {
  6991. "type": "null"
  6992. }
  6993. ]
  6994. },
  6995. "workspace": {
  6996. "anyOf": [
  6997. {
  6998. "type": "string"
  6999. },
  7000. {
  7001. "type": "null"
  7002. }
  7003. ]
  7004. }
  7005. },
  7006. "additionalProperties": false
  7007. },
  7008. {
  7009. "type": "null"
  7010. }
  7011. ]
  7012. },
  7013. "required": false,
  7014. "style": "deepObject",
  7015. "explode": true
  7016. }
  7017. ],
  7018. "security": [],
  7019. "responses": {
  7020. "200": {
  7021. "description": "Success",
  7022. "content": {
  7023. "application/octet-stream": {
  7024. "schema": {
  7025. "type": "string",
  7026. "format": "binary"
  7027. }
  7028. }
  7029. }
  7030. },
  7031. "400": {
  7032. "description": "InvalidRequestError",
  7033. "content": {
  7034. "application/json": {
  7035. "schema": {
  7036. "$ref": "#/components/schemas/InvalidRequestError"
  7037. }
  7038. }
  7039. }
  7040. },
  7041. "401": {
  7042. "description": "UnauthorizedError",
  7043. "content": {
  7044. "application/json": {
  7045. "schema": {
  7046. "$ref": "#/components/schemas/UnauthorizedError"
  7047. }
  7048. }
  7049. }
  7050. }
  7051. },
  7052. "description": "Serve one file relative to the requested location.",
  7053. "summary": "Read file"
  7054. }
  7055. },
  7056. "/api/fs/list": {
  7057. "get": {
  7058. "tags": [
  7059. "filesystem"
  7060. ],
  7061. "operationId": "v2.fs.list",
  7062. "parameters": [
  7063. {
  7064. "name": "location",
  7065. "in": "query",
  7066. "schema": {
  7067. "anyOf": [
  7068. {
  7069. "type": "object",
  7070. "properties": {
  7071. "directory": {
  7072. "anyOf": [
  7073. {
  7074. "type": "string"
  7075. },
  7076. {
  7077. "type": "null"
  7078. }
  7079. ]
  7080. },
  7081. "workspace": {
  7082. "anyOf": [
  7083. {
  7084. "type": "string"
  7085. },
  7086. {
  7087. "type": "null"
  7088. }
  7089. ]
  7090. }
  7091. },
  7092. "additionalProperties": false
  7093. },
  7094. {
  7095. "type": "null"
  7096. }
  7097. ]
  7098. },
  7099. "required": false,
  7100. "style": "deepObject",
  7101. "explode": true
  7102. },
  7103. {
  7104. "name": "path",
  7105. "in": "query",
  7106. "schema": {
  7107. "anyOf": [
  7108. {
  7109. "type": "string"
  7110. },
  7111. {
  7112. "type": "null"
  7113. }
  7114. ]
  7115. },
  7116. "required": false
  7117. }
  7118. ],
  7119. "security": [],
  7120. "responses": {
  7121. "200": {
  7122. "description": "Success",
  7123. "content": {
  7124. "application/json": {
  7125. "schema": {
  7126. "type": "object",
  7127. "properties": {
  7128. "location": {
  7129. "$ref": "#/components/schemas/Location.Info"
  7130. },
  7131. "data": {
  7132. "type": "array",
  7133. "items": {
  7134. "$ref": "#/components/schemas/FileSystem.Entry"
  7135. }
  7136. }
  7137. },
  7138. "required": [
  7139. "location",
  7140. "data"
  7141. ],
  7142. "additionalProperties": false
  7143. }
  7144. }
  7145. }
  7146. },
  7147. "400": {
  7148. "description": "InvalidRequestError",
  7149. "content": {
  7150. "application/json": {
  7151. "schema": {
  7152. "$ref": "#/components/schemas/InvalidRequestError"
  7153. }
  7154. }
  7155. }
  7156. },
  7157. "401": {
  7158. "description": "UnauthorizedError",
  7159. "content": {
  7160. "application/json": {
  7161. "schema": {
  7162. "$ref": "#/components/schemas/UnauthorizedError"
  7163. }
  7164. }
  7165. }
  7166. }
  7167. },
  7168. "description": "List direct children of one directory relative to the requested location.",
  7169. "summary": "List directory"
  7170. }
  7171. },
  7172. "/api/fs/find": {
  7173. "get": {
  7174. "tags": [
  7175. "filesystem"
  7176. ],
  7177. "operationId": "v2.fs.find",
  7178. "parameters": [
  7179. {
  7180. "name": "location",
  7181. "in": "query",
  7182. "schema": {
  7183. "anyOf": [
  7184. {
  7185. "type": "object",
  7186. "properties": {
  7187. "directory": {
  7188. "anyOf": [
  7189. {
  7190. "type": "string"
  7191. },
  7192. {
  7193. "type": "null"
  7194. }
  7195. ]
  7196. },
  7197. "workspace": {
  7198. "anyOf": [
  7199. {
  7200. "type": "string"
  7201. },
  7202. {
  7203. "type": "null"
  7204. }
  7205. ]
  7206. }
  7207. },
  7208. "additionalProperties": false
  7209. },
  7210. {
  7211. "type": "null"
  7212. }
  7213. ]
  7214. },
  7215. "required": false,
  7216. "style": "deepObject",
  7217. "explode": true
  7218. },
  7219. {
  7220. "name": "query",
  7221. "in": "query",
  7222. "schema": {
  7223. "type": "string"
  7224. },
  7225. "required": true
  7226. },
  7227. {
  7228. "name": "type",
  7229. "in": "query",
  7230. "schema": {
  7231. "type": "string",
  7232. "enum": [
  7233. "file",
  7234. "directory"
  7235. ]
  7236. },
  7237. "required": false
  7238. },
  7239. {
  7240. "name": "limit",
  7241. "in": "query",
  7242. "schema": {
  7243. "anyOf": [
  7244. {
  7245. "type": "string"
  7246. },
  7247. {
  7248. "type": "null"
  7249. }
  7250. ]
  7251. },
  7252. "required": false
  7253. }
  7254. ],
  7255. "security": [],
  7256. "responses": {
  7257. "200": {
  7258. "description": "Success",
  7259. "content": {
  7260. "application/json": {
  7261. "schema": {
  7262. "type": "object",
  7263. "properties": {
  7264. "location": {
  7265. "$ref": "#/components/schemas/Location.Info"
  7266. },
  7267. "data": {
  7268. "type": "array",
  7269. "items": {
  7270. "$ref": "#/components/schemas/FileSystem.Entry"
  7271. }
  7272. }
  7273. },
  7274. "required": [
  7275. "location",
  7276. "data"
  7277. ],
  7278. "additionalProperties": false
  7279. }
  7280. }
  7281. }
  7282. },
  7283. "400": {
  7284. "description": "InvalidRequestError",
  7285. "content": {
  7286. "application/json": {
  7287. "schema": {
  7288. "$ref": "#/components/schemas/InvalidRequestError"
  7289. }
  7290. }
  7291. }
  7292. },
  7293. "401": {
  7294. "description": "UnauthorizedError",
  7295. "content": {
  7296. "application/json": {
  7297. "schema": {
  7298. "$ref": "#/components/schemas/UnauthorizedError"
  7299. }
  7300. }
  7301. }
  7302. }
  7303. },
  7304. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  7305. "summary": "Find files"
  7306. }
  7307. },
  7308. "/api/command": {
  7309. "get": {
  7310. "tags": [
  7311. "command"
  7312. ],
  7313. "operationId": "v2.command.list",
  7314. "parameters": [
  7315. {
  7316. "name": "location",
  7317. "in": "query",
  7318. "schema": {
  7319. "anyOf": [
  7320. {
  7321. "type": "object",
  7322. "properties": {
  7323. "directory": {
  7324. "anyOf": [
  7325. {
  7326. "type": "string"
  7327. },
  7328. {
  7329. "type": "null"
  7330. }
  7331. ]
  7332. },
  7333. "workspace": {
  7334. "anyOf": [
  7335. {
  7336. "type": "string"
  7337. },
  7338. {
  7339. "type": "null"
  7340. }
  7341. ]
  7342. }
  7343. },
  7344. "additionalProperties": false
  7345. },
  7346. {
  7347. "type": "null"
  7348. }
  7349. ]
  7350. },
  7351. "required": false,
  7352. "style": "deepObject",
  7353. "explode": true
  7354. }
  7355. ],
  7356. "security": [],
  7357. "responses": {
  7358. "200": {
  7359. "description": "Success",
  7360. "content": {
  7361. "application/json": {
  7362. "schema": {
  7363. "type": "object",
  7364. "properties": {
  7365. "location": {
  7366. "$ref": "#/components/schemas/Location.Info"
  7367. },
  7368. "data": {
  7369. "type": "array",
  7370. "items": {
  7371. "$ref": "#/components/schemas/Command.Info"
  7372. }
  7373. }
  7374. },
  7375. "required": [
  7376. "location",
  7377. "data"
  7378. ],
  7379. "additionalProperties": false
  7380. }
  7381. }
  7382. }
  7383. },
  7384. "400": {
  7385. "description": "InvalidRequestError",
  7386. "content": {
  7387. "application/json": {
  7388. "schema": {
  7389. "$ref": "#/components/schemas/InvalidRequestError"
  7390. }
  7391. }
  7392. }
  7393. },
  7394. "401": {
  7395. "description": "UnauthorizedError",
  7396. "content": {
  7397. "application/json": {
  7398. "schema": {
  7399. "$ref": "#/components/schemas/UnauthorizedError"
  7400. }
  7401. }
  7402. }
  7403. }
  7404. },
  7405. "description": "Retrieve currently registered commands.",
  7406. "summary": "List commands"
  7407. }
  7408. },
  7409. "/api/skill": {
  7410. "get": {
  7411. "tags": [
  7412. "skill"
  7413. ],
  7414. "operationId": "v2.skill.list",
  7415. "parameters": [
  7416. {
  7417. "name": "location",
  7418. "in": "query",
  7419. "schema": {
  7420. "anyOf": [
  7421. {
  7422. "type": "object",
  7423. "properties": {
  7424. "directory": {
  7425. "anyOf": [
  7426. {
  7427. "type": "string"
  7428. },
  7429. {
  7430. "type": "null"
  7431. }
  7432. ]
  7433. },
  7434. "workspace": {
  7435. "anyOf": [
  7436. {
  7437. "type": "string"
  7438. },
  7439. {
  7440. "type": "null"
  7441. }
  7442. ]
  7443. }
  7444. },
  7445. "additionalProperties": false
  7446. },
  7447. {
  7448. "type": "null"
  7449. }
  7450. ]
  7451. },
  7452. "required": false,
  7453. "style": "deepObject",
  7454. "explode": true
  7455. }
  7456. ],
  7457. "security": [],
  7458. "responses": {
  7459. "200": {
  7460. "description": "Success",
  7461. "content": {
  7462. "application/json": {
  7463. "schema": {
  7464. "type": "object",
  7465. "properties": {
  7466. "location": {
  7467. "$ref": "#/components/schemas/Location.Info"
  7468. },
  7469. "data": {
  7470. "type": "array",
  7471. "items": {
  7472. "$ref": "#/components/schemas/Skill.Info"
  7473. }
  7474. }
  7475. },
  7476. "required": [
  7477. "location",
  7478. "data"
  7479. ],
  7480. "additionalProperties": false
  7481. }
  7482. }
  7483. }
  7484. },
  7485. "400": {
  7486. "description": "InvalidRequestError",
  7487. "content": {
  7488. "application/json": {
  7489. "schema": {
  7490. "$ref": "#/components/schemas/InvalidRequestError"
  7491. }
  7492. }
  7493. }
  7494. },
  7495. "401": {
  7496. "description": "UnauthorizedError",
  7497. "content": {
  7498. "application/json": {
  7499. "schema": {
  7500. "$ref": "#/components/schemas/UnauthorizedError"
  7501. }
  7502. }
  7503. }
  7504. }
  7505. },
  7506. "description": "Retrieve currently registered skills.",
  7507. "summary": "List skills"
  7508. }
  7509. },
  7510. "/api/event": {
  7511. "get": {
  7512. "tags": [
  7513. "event"
  7514. ],
  7515. "operationId": "v2.event.subscribe",
  7516. "parameters": [],
  7517. "security": [],
  7518. "responses": {
  7519. "200": {
  7520. "description": "Success",
  7521. "content": {
  7522. "text/event-stream": {
  7523. "schema": {
  7524. "type": "object",
  7525. "properties": {
  7526. "id": {
  7527. "anyOf": [
  7528. {
  7529. "type": "string"
  7530. },
  7531. {
  7532. "type": "null"
  7533. }
  7534. ]
  7535. },
  7536. "event": {
  7537. "type": "string"
  7538. },
  7539. "data": {
  7540. "$ref": "#/components/schemas/V2EventStream"
  7541. }
  7542. },
  7543. "required": [
  7544. "id",
  7545. "event",
  7546. "data"
  7547. ],
  7548. "additionalProperties": false
  7549. },
  7550. "x-effect-stream": {
  7551. "encoding": "sse",
  7552. "causeSchema": {
  7553. "type": "array",
  7554. "items": {
  7555. "anyOf": [
  7556. {
  7557. "type": "object",
  7558. "properties": {
  7559. "_tag": {
  7560. "type": "string",
  7561. "enum": [
  7562. "Fail"
  7563. ]
  7564. },
  7565. "error": {
  7566. "not": {}
  7567. }
  7568. },
  7569. "required": [
  7570. "_tag",
  7571. "error"
  7572. ],
  7573. "additionalProperties": false
  7574. },
  7575. {
  7576. "type": "object",
  7577. "properties": {
  7578. "_tag": {
  7579. "type": "string",
  7580. "enum": [
  7581. "Die"
  7582. ]
  7583. },
  7584. "defect": {}
  7585. },
  7586. "required": [
  7587. "_tag",
  7588. "defect"
  7589. ],
  7590. "additionalProperties": false
  7591. },
  7592. {
  7593. "type": "object",
  7594. "properties": {
  7595. "_tag": {
  7596. "type": "string",
  7597. "enum": [
  7598. "Interrupt"
  7599. ]
  7600. },
  7601. "fiberId": {
  7602. "anyOf": [
  7603. {
  7604. "type": "number"
  7605. },
  7606. {
  7607. "type": "null"
  7608. }
  7609. ]
  7610. }
  7611. },
  7612. "required": [
  7613. "_tag",
  7614. "fiberId"
  7615. ],
  7616. "additionalProperties": false
  7617. }
  7618. ]
  7619. }
  7620. },
  7621. "errorSchema": {
  7622. "not": {}
  7623. },
  7624. "failureEvent": "effect/httpapi/stream/failure"
  7625. }
  7626. }
  7627. }
  7628. },
  7629. "400": {
  7630. "description": "InvalidRequestError",
  7631. "content": {
  7632. "application/json": {
  7633. "schema": {
  7634. "$ref": "#/components/schemas/InvalidRequestError"
  7635. }
  7636. }
  7637. }
  7638. },
  7639. "401": {
  7640. "description": "UnauthorizedError",
  7641. "content": {
  7642. "application/json": {
  7643. "schema": {
  7644. "$ref": "#/components/schemas/UnauthorizedError"
  7645. }
  7646. }
  7647. }
  7648. }
  7649. },
  7650. "description": "Subscribe to native event payloads for the server. Volatile by contract: a slow consumer overflows and fails the stream, and events during disconnection are missed.",
  7651. "summary": "Subscribe to events"
  7652. }
  7653. },
  7654. "/api/pty": {
  7655. "get": {
  7656. "tags": [
  7657. "pty"
  7658. ],
  7659. "operationId": "v2.pty.list",
  7660. "parameters": [
  7661. {
  7662. "name": "location",
  7663. "in": "query",
  7664. "schema": {
  7665. "anyOf": [
  7666. {
  7667. "type": "object",
  7668. "properties": {
  7669. "directory": {
  7670. "anyOf": [
  7671. {
  7672. "type": "string"
  7673. },
  7674. {
  7675. "type": "null"
  7676. }
  7677. ]
  7678. },
  7679. "workspace": {
  7680. "anyOf": [
  7681. {
  7682. "type": "string"
  7683. },
  7684. {
  7685. "type": "null"
  7686. }
  7687. ]
  7688. }
  7689. },
  7690. "additionalProperties": false
  7691. },
  7692. {
  7693. "type": "null"
  7694. }
  7695. ]
  7696. },
  7697. "required": false,
  7698. "style": "deepObject",
  7699. "explode": true
  7700. }
  7701. ],
  7702. "security": [],
  7703. "responses": {
  7704. "200": {
  7705. "description": "Success",
  7706. "content": {
  7707. "application/json": {
  7708. "schema": {
  7709. "type": "object",
  7710. "properties": {
  7711. "location": {
  7712. "$ref": "#/components/schemas/Location.Info"
  7713. },
  7714. "data": {
  7715. "type": "array",
  7716. "items": {
  7717. "$ref": "#/components/schemas/Pty"
  7718. }
  7719. }
  7720. },
  7721. "required": [
  7722. "location",
  7723. "data"
  7724. ],
  7725. "additionalProperties": false
  7726. }
  7727. }
  7728. }
  7729. },
  7730. "400": {
  7731. "description": "InvalidRequestError",
  7732. "content": {
  7733. "application/json": {
  7734. "schema": {
  7735. "$ref": "#/components/schemas/InvalidRequestError"
  7736. }
  7737. }
  7738. }
  7739. },
  7740. "401": {
  7741. "description": "UnauthorizedError",
  7742. "content": {
  7743. "application/json": {
  7744. "schema": {
  7745. "$ref": "#/components/schemas/UnauthorizedError"
  7746. }
  7747. }
  7748. }
  7749. }
  7750. },
  7751. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  7752. "summary": "List PTY sessions"
  7753. },
  7754. "post": {
  7755. "tags": [
  7756. "pty"
  7757. ],
  7758. "operationId": "v2.pty.create",
  7759. "parameters": [
  7760. {
  7761. "name": "location",
  7762. "in": "query",
  7763. "schema": {
  7764. "anyOf": [
  7765. {
  7766. "type": "object",
  7767. "properties": {
  7768. "directory": {
  7769. "anyOf": [
  7770. {
  7771. "type": "string"
  7772. },
  7773. {
  7774. "type": "null"
  7775. }
  7776. ]
  7777. },
  7778. "workspace": {
  7779. "anyOf": [
  7780. {
  7781. "type": "string"
  7782. },
  7783. {
  7784. "type": "null"
  7785. }
  7786. ]
  7787. }
  7788. },
  7789. "additionalProperties": false
  7790. },
  7791. {
  7792. "type": "null"
  7793. }
  7794. ]
  7795. },
  7796. "required": false,
  7797. "style": "deepObject",
  7798. "explode": true
  7799. }
  7800. ],
  7801. "security": [],
  7802. "responses": {
  7803. "200": {
  7804. "description": "Success",
  7805. "content": {
  7806. "application/json": {
  7807. "schema": {
  7808. "type": "object",
  7809. "properties": {
  7810. "location": {
  7811. "$ref": "#/components/schemas/Location.Info"
  7812. },
  7813. "data": {
  7814. "$ref": "#/components/schemas/Pty"
  7815. }
  7816. },
  7817. "required": [
  7818. "location",
  7819. "data"
  7820. ],
  7821. "additionalProperties": false
  7822. }
  7823. }
  7824. }
  7825. },
  7826. "400": {
  7827. "description": "InvalidRequestError",
  7828. "content": {
  7829. "application/json": {
  7830. "schema": {
  7831. "$ref": "#/components/schemas/InvalidRequestError"
  7832. }
  7833. }
  7834. }
  7835. },
  7836. "401": {
  7837. "description": "UnauthorizedError",
  7838. "content": {
  7839. "application/json": {
  7840. "schema": {
  7841. "$ref": "#/components/schemas/UnauthorizedError"
  7842. }
  7843. }
  7844. }
  7845. }
  7846. },
  7847. "description": "Create a pseudo-terminal session for a location.",
  7848. "summary": "Create PTY session",
  7849. "requestBody": {
  7850. "content": {
  7851. "application/json": {
  7852. "schema": {
  7853. "type": "object",
  7854. "properties": {
  7855. "command": {
  7856. "type": "string"
  7857. },
  7858. "args": {
  7859. "type": "array",
  7860. "items": {
  7861. "type": "string"
  7862. }
  7863. },
  7864. "cwd": {
  7865. "type": "string"
  7866. },
  7867. "title": {
  7868. "type": "string"
  7869. },
  7870. "env": {
  7871. "type": "object",
  7872. "additionalProperties": {
  7873. "type": "string"
  7874. }
  7875. }
  7876. },
  7877. "additionalProperties": false
  7878. }
  7879. }
  7880. },
  7881. "required": true
  7882. }
  7883. }
  7884. },
  7885. "/api/pty/{ptyID}": {
  7886. "get": {
  7887. "tags": [
  7888. "pty"
  7889. ],
  7890. "operationId": "v2.pty.get",
  7891. "parameters": [
  7892. {
  7893. "name": "ptyID",
  7894. "in": "path",
  7895. "schema": {
  7896. "type": "string",
  7897. "allOf": [
  7898. {
  7899. "pattern": "^pty"
  7900. }
  7901. ]
  7902. },
  7903. "required": true
  7904. },
  7905. {
  7906. "name": "location",
  7907. "in": "query",
  7908. "schema": {
  7909. "anyOf": [
  7910. {
  7911. "type": "object",
  7912. "properties": {
  7913. "directory": {
  7914. "anyOf": [
  7915. {
  7916. "type": "string"
  7917. },
  7918. {
  7919. "type": "null"
  7920. }
  7921. ]
  7922. },
  7923. "workspace": {
  7924. "anyOf": [
  7925. {
  7926. "type": "string"
  7927. },
  7928. {
  7929. "type": "null"
  7930. }
  7931. ]
  7932. }
  7933. },
  7934. "additionalProperties": false
  7935. },
  7936. {
  7937. "type": "null"
  7938. }
  7939. ]
  7940. },
  7941. "required": false,
  7942. "style": "deepObject",
  7943. "explode": true
  7944. }
  7945. ],
  7946. "security": [],
  7947. "responses": {
  7948. "200": {
  7949. "description": "Success",
  7950. "content": {
  7951. "application/json": {
  7952. "schema": {
  7953. "type": "object",
  7954. "properties": {
  7955. "location": {
  7956. "$ref": "#/components/schemas/Location.Info"
  7957. },
  7958. "data": {
  7959. "$ref": "#/components/schemas/Pty"
  7960. }
  7961. },
  7962. "required": [
  7963. "location",
  7964. "data"
  7965. ],
  7966. "additionalProperties": false
  7967. }
  7968. }
  7969. }
  7970. },
  7971. "400": {
  7972. "description": "InvalidRequestError",
  7973. "content": {
  7974. "application/json": {
  7975. "schema": {
  7976. "$ref": "#/components/schemas/InvalidRequestError"
  7977. }
  7978. }
  7979. }
  7980. },
  7981. "401": {
  7982. "description": "UnauthorizedError",
  7983. "content": {
  7984. "application/json": {
  7985. "schema": {
  7986. "$ref": "#/components/schemas/UnauthorizedError"
  7987. }
  7988. }
  7989. }
  7990. },
  7991. "404": {
  7992. "description": "PtyNotFoundError",
  7993. "content": {
  7994. "application/json": {
  7995. "schema": {
  7996. "$ref": "#/components/schemas/PtyNotFoundError"
  7997. }
  7998. }
  7999. }
  8000. }
  8001. },
  8002. "description": "Get one PTY session, including its exit code once exited.",
  8003. "summary": "Get PTY session"
  8004. },
  8005. "put": {
  8006. "tags": [
  8007. "pty"
  8008. ],
  8009. "operationId": "v2.pty.update",
  8010. "parameters": [
  8011. {
  8012. "name": "ptyID",
  8013. "in": "path",
  8014. "schema": {
  8015. "type": "string",
  8016. "allOf": [
  8017. {
  8018. "pattern": "^pty"
  8019. }
  8020. ]
  8021. },
  8022. "required": true
  8023. },
  8024. {
  8025. "name": "location",
  8026. "in": "query",
  8027. "schema": {
  8028. "anyOf": [
  8029. {
  8030. "type": "object",
  8031. "properties": {
  8032. "directory": {
  8033. "anyOf": [
  8034. {
  8035. "type": "string"
  8036. },
  8037. {
  8038. "type": "null"
  8039. }
  8040. ]
  8041. },
  8042. "workspace": {
  8043. "anyOf": [
  8044. {
  8045. "type": "string"
  8046. },
  8047. {
  8048. "type": "null"
  8049. }
  8050. ]
  8051. }
  8052. },
  8053. "additionalProperties": false
  8054. },
  8055. {
  8056. "type": "null"
  8057. }
  8058. ]
  8059. },
  8060. "required": false,
  8061. "style": "deepObject",
  8062. "explode": true
  8063. }
  8064. ],
  8065. "security": [],
  8066. "responses": {
  8067. "200": {
  8068. "description": "Success",
  8069. "content": {
  8070. "application/json": {
  8071. "schema": {
  8072. "type": "object",
  8073. "properties": {
  8074. "location": {
  8075. "$ref": "#/components/schemas/Location.Info"
  8076. },
  8077. "data": {
  8078. "$ref": "#/components/schemas/Pty"
  8079. }
  8080. },
  8081. "required": [
  8082. "location",
  8083. "data"
  8084. ],
  8085. "additionalProperties": false
  8086. }
  8087. }
  8088. }
  8089. },
  8090. "400": {
  8091. "description": "InvalidRequestError",
  8092. "content": {
  8093. "application/json": {
  8094. "schema": {
  8095. "$ref": "#/components/schemas/InvalidRequestError"
  8096. }
  8097. }
  8098. }
  8099. },
  8100. "401": {
  8101. "description": "UnauthorizedError",
  8102. "content": {
  8103. "application/json": {
  8104. "schema": {
  8105. "$ref": "#/components/schemas/UnauthorizedError"
  8106. }
  8107. }
  8108. }
  8109. },
  8110. "404": {
  8111. "description": "PtyNotFoundError",
  8112. "content": {
  8113. "application/json": {
  8114. "schema": {
  8115. "$ref": "#/components/schemas/PtyNotFoundError"
  8116. }
  8117. }
  8118. }
  8119. }
  8120. },
  8121. "description": "Update the title or viewport size of one PTY session.",
  8122. "summary": "Update PTY session",
  8123. "requestBody": {
  8124. "content": {
  8125. "application/json": {
  8126. "schema": {
  8127. "type": "object",
  8128. "properties": {
  8129. "title": {
  8130. "type": "string"
  8131. },
  8132. "size": {
  8133. "type": "object",
  8134. "properties": {
  8135. "rows": {
  8136. "type": "integer",
  8137. "allOf": [
  8138. {
  8139. "exclusiveMinimum": 0
  8140. }
  8141. ]
  8142. },
  8143. "cols": {
  8144. "type": "integer",
  8145. "allOf": [
  8146. {
  8147. "exclusiveMinimum": 0
  8148. }
  8149. ]
  8150. }
  8151. },
  8152. "required": [
  8153. "rows",
  8154. "cols"
  8155. ],
  8156. "additionalProperties": false
  8157. }
  8158. },
  8159. "additionalProperties": false
  8160. }
  8161. }
  8162. },
  8163. "required": true
  8164. }
  8165. },
  8166. "delete": {
  8167. "tags": [
  8168. "pty"
  8169. ],
  8170. "operationId": "v2.pty.remove",
  8171. "parameters": [
  8172. {
  8173. "name": "ptyID",
  8174. "in": "path",
  8175. "schema": {
  8176. "type": "string",
  8177. "allOf": [
  8178. {
  8179. "pattern": "^pty"
  8180. }
  8181. ]
  8182. },
  8183. "required": true
  8184. },
  8185. {
  8186. "name": "location",
  8187. "in": "query",
  8188. "schema": {
  8189. "anyOf": [
  8190. {
  8191. "type": "object",
  8192. "properties": {
  8193. "directory": {
  8194. "anyOf": [
  8195. {
  8196. "type": "string"
  8197. },
  8198. {
  8199. "type": "null"
  8200. }
  8201. ]
  8202. },
  8203. "workspace": {
  8204. "anyOf": [
  8205. {
  8206. "type": "string"
  8207. },
  8208. {
  8209. "type": "null"
  8210. }
  8211. ]
  8212. }
  8213. },
  8214. "additionalProperties": false
  8215. },
  8216. {
  8217. "type": "null"
  8218. }
  8219. ]
  8220. },
  8221. "required": false,
  8222. "style": "deepObject",
  8223. "explode": true
  8224. }
  8225. ],
  8226. "security": [],
  8227. "responses": {
  8228. "204": {
  8229. "description": "<No Content>"
  8230. },
  8231. "400": {
  8232. "description": "InvalidRequestError",
  8233. "content": {
  8234. "application/json": {
  8235. "schema": {
  8236. "$ref": "#/components/schemas/InvalidRequestError"
  8237. }
  8238. }
  8239. }
  8240. },
  8241. "401": {
  8242. "description": "UnauthorizedError",
  8243. "content": {
  8244. "application/json": {
  8245. "schema": {
  8246. "$ref": "#/components/schemas/UnauthorizedError"
  8247. }
  8248. }
  8249. }
  8250. },
  8251. "404": {
  8252. "description": "PtyNotFoundError",
  8253. "content": {
  8254. "application/json": {
  8255. "schema": {
  8256. "$ref": "#/components/schemas/PtyNotFoundError"
  8257. }
  8258. }
  8259. }
  8260. }
  8261. },
  8262. "description": "Terminate and remove one PTY session.",
  8263. "summary": "Remove PTY session"
  8264. }
  8265. },
  8266. "/api/pty/{ptyID}/connect-token": {
  8267. "post": {
  8268. "tags": [
  8269. "pty"
  8270. ],
  8271. "operationId": "v2.pty.connect.token",
  8272. "parameters": [
  8273. {
  8274. "name": "ptyID",
  8275. "in": "path",
  8276. "schema": {
  8277. "type": "string",
  8278. "allOf": [
  8279. {
  8280. "pattern": "^pty"
  8281. }
  8282. ]
  8283. },
  8284. "required": true
  8285. },
  8286. {
  8287. "name": "location",
  8288. "in": "query",
  8289. "schema": {
  8290. "anyOf": [
  8291. {
  8292. "type": "object",
  8293. "properties": {
  8294. "directory": {
  8295. "anyOf": [
  8296. {
  8297. "type": "string"
  8298. },
  8299. {
  8300. "type": "null"
  8301. }
  8302. ]
  8303. },
  8304. "workspace": {
  8305. "anyOf": [
  8306. {
  8307. "type": "string"
  8308. },
  8309. {
  8310. "type": "null"
  8311. }
  8312. ]
  8313. }
  8314. },
  8315. "additionalProperties": false
  8316. },
  8317. {
  8318. "type": "null"
  8319. }
  8320. ]
  8321. },
  8322. "required": false,
  8323. "style": "deepObject",
  8324. "explode": true
  8325. }
  8326. ],
  8327. "security": [],
  8328. "responses": {
  8329. "200": {
  8330. "description": "Success",
  8331. "content": {
  8332. "application/json": {
  8333. "schema": {
  8334. "type": "object",
  8335. "properties": {
  8336. "location": {
  8337. "$ref": "#/components/schemas/Location.Info"
  8338. },
  8339. "data": {
  8340. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  8341. }
  8342. },
  8343. "required": [
  8344. "location",
  8345. "data"
  8346. ],
  8347. "additionalProperties": false
  8348. }
  8349. }
  8350. }
  8351. },
  8352. "400": {
  8353. "description": "InvalidRequestError",
  8354. "content": {
  8355. "application/json": {
  8356. "schema": {
  8357. "$ref": "#/components/schemas/InvalidRequestError"
  8358. }
  8359. }
  8360. }
  8361. },
  8362. "401": {
  8363. "description": "UnauthorizedError",
  8364. "content": {
  8365. "application/json": {
  8366. "schema": {
  8367. "$ref": "#/components/schemas/UnauthorizedError"
  8368. }
  8369. }
  8370. }
  8371. },
  8372. "403": {
  8373. "description": "ForbiddenError",
  8374. "content": {
  8375. "application/json": {
  8376. "schema": {
  8377. "$ref": "#/components/schemas/ForbiddenError"
  8378. }
  8379. }
  8380. }
  8381. },
  8382. "404": {
  8383. "description": "PtyNotFoundError",
  8384. "content": {
  8385. "application/json": {
  8386. "schema": {
  8387. "$ref": "#/components/schemas/PtyNotFoundError"
  8388. }
  8389. }
  8390. }
  8391. }
  8392. },
  8393. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  8394. "summary": "Create PTY WebSocket token"
  8395. }
  8396. },
  8397. "/api/pty/{ptyID}/connect": {
  8398. "get": {
  8399. "tags": [
  8400. "pty"
  8401. ],
  8402. "operationId": "v2.pty.connect",
  8403. "parameters": [
  8404. {
  8405. "name": "ptyID",
  8406. "in": "path",
  8407. "schema": {
  8408. "type": "string",
  8409. "allOf": [
  8410. {
  8411. "pattern": "^pty"
  8412. }
  8413. ]
  8414. },
  8415. "required": true
  8416. },
  8417. {
  8418. "in": "query",
  8419. "name": "location[directory]",
  8420. "schema": {
  8421. "type": "string"
  8422. }
  8423. },
  8424. {
  8425. "in": "query",
  8426. "name": "location[workspace]",
  8427. "schema": {
  8428. "type": "string"
  8429. }
  8430. },
  8431. {
  8432. "in": "query",
  8433. "name": "cursor",
  8434. "schema": {
  8435. "type": "string"
  8436. }
  8437. },
  8438. {
  8439. "in": "query",
  8440. "name": "ticket",
  8441. "schema": {
  8442. "type": "string"
  8443. }
  8444. }
  8445. ],
  8446. "security": [],
  8447. "responses": {
  8448. "200": {
  8449. "description": "Success",
  8450. "content": {
  8451. "application/json": {
  8452. "schema": {
  8453. "type": "boolean"
  8454. }
  8455. }
  8456. }
  8457. },
  8458. "400": {
  8459. "description": "InvalidRequestError",
  8460. "content": {
  8461. "application/json": {
  8462. "schema": {
  8463. "$ref": "#/components/schemas/InvalidRequestError"
  8464. }
  8465. }
  8466. }
  8467. },
  8468. "401": {
  8469. "description": "UnauthorizedError",
  8470. "content": {
  8471. "application/json": {
  8472. "schema": {
  8473. "$ref": "#/components/schemas/UnauthorizedError"
  8474. }
  8475. }
  8476. }
  8477. },
  8478. "403": {
  8479. "description": "ForbiddenError",
  8480. "content": {
  8481. "application/json": {
  8482. "schema": {
  8483. "$ref": "#/components/schemas/ForbiddenError"
  8484. }
  8485. }
  8486. }
  8487. },
  8488. "404": {
  8489. "description": "PtyNotFoundError",
  8490. "content": {
  8491. "application/json": {
  8492. "schema": {
  8493. "$ref": "#/components/schemas/PtyNotFoundError"
  8494. }
  8495. }
  8496. }
  8497. }
  8498. },
  8499. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  8500. "summary": "Connect to PTY session",
  8501. "x-websocket": true
  8502. }
  8503. },
  8504. "/api/shell": {
  8505. "get": {
  8506. "tags": [
  8507. "shell"
  8508. ],
  8509. "operationId": "v2.shell.list",
  8510. "parameters": [
  8511. {
  8512. "name": "location",
  8513. "in": "query",
  8514. "schema": {
  8515. "anyOf": [
  8516. {
  8517. "type": "object",
  8518. "properties": {
  8519. "directory": {
  8520. "anyOf": [
  8521. {
  8522. "type": "string"
  8523. },
  8524. {
  8525. "type": "null"
  8526. }
  8527. ]
  8528. },
  8529. "workspace": {
  8530. "anyOf": [
  8531. {
  8532. "type": "string"
  8533. },
  8534. {
  8535. "type": "null"
  8536. }
  8537. ]
  8538. }
  8539. },
  8540. "additionalProperties": false
  8541. },
  8542. {
  8543. "type": "null"
  8544. }
  8545. ]
  8546. },
  8547. "required": false,
  8548. "style": "deepObject",
  8549. "explode": true
  8550. }
  8551. ],
  8552. "security": [],
  8553. "responses": {
  8554. "200": {
  8555. "description": "Success",
  8556. "content": {
  8557. "application/json": {
  8558. "schema": {
  8559. "type": "object",
  8560. "properties": {
  8561. "location": {
  8562. "$ref": "#/components/schemas/Location.Info"
  8563. },
  8564. "data": {
  8565. "type": "array",
  8566. "items": {
  8567. "$ref": "#/components/schemas/Shell1"
  8568. }
  8569. }
  8570. },
  8571. "required": [
  8572. "location",
  8573. "data"
  8574. ],
  8575. "additionalProperties": false
  8576. }
  8577. }
  8578. }
  8579. },
  8580. "400": {
  8581. "description": "InvalidRequestError",
  8582. "content": {
  8583. "application/json": {
  8584. "schema": {
  8585. "$ref": "#/components/schemas/InvalidRequestError"
  8586. }
  8587. }
  8588. }
  8589. },
  8590. "401": {
  8591. "description": "UnauthorizedError",
  8592. "content": {
  8593. "application/json": {
  8594. "schema": {
  8595. "$ref": "#/components/schemas/UnauthorizedError"
  8596. }
  8597. }
  8598. }
  8599. }
  8600. },
  8601. "description": "List currently running shell commands for a location. Exited commands are not included.",
  8602. "summary": "List running shell commands"
  8603. },
  8604. "post": {
  8605. "tags": [
  8606. "shell"
  8607. ],
  8608. "operationId": "v2.shell.create",
  8609. "parameters": [
  8610. {
  8611. "name": "location",
  8612. "in": "query",
  8613. "schema": {
  8614. "anyOf": [
  8615. {
  8616. "type": "object",
  8617. "properties": {
  8618. "directory": {
  8619. "anyOf": [
  8620. {
  8621. "type": "string"
  8622. },
  8623. {
  8624. "type": "null"
  8625. }
  8626. ]
  8627. },
  8628. "workspace": {
  8629. "anyOf": [
  8630. {
  8631. "type": "string"
  8632. },
  8633. {
  8634. "type": "null"
  8635. }
  8636. ]
  8637. }
  8638. },
  8639. "additionalProperties": false
  8640. },
  8641. {
  8642. "type": "null"
  8643. }
  8644. ]
  8645. },
  8646. "required": false,
  8647. "style": "deepObject",
  8648. "explode": true
  8649. }
  8650. ],
  8651. "security": [],
  8652. "responses": {
  8653. "200": {
  8654. "description": "Success",
  8655. "content": {
  8656. "application/json": {
  8657. "schema": {
  8658. "type": "object",
  8659. "properties": {
  8660. "location": {
  8661. "$ref": "#/components/schemas/Location.Info"
  8662. },
  8663. "data": {
  8664. "$ref": "#/components/schemas/Shell1"
  8665. }
  8666. },
  8667. "required": [
  8668. "location",
  8669. "data"
  8670. ],
  8671. "additionalProperties": false
  8672. }
  8673. }
  8674. }
  8675. },
  8676. "400": {
  8677. "description": "InvalidRequestError",
  8678. "content": {
  8679. "application/json": {
  8680. "schema": {
  8681. "$ref": "#/components/schemas/InvalidRequestError"
  8682. }
  8683. }
  8684. }
  8685. },
  8686. "401": {
  8687. "description": "UnauthorizedError",
  8688. "content": {
  8689. "application/json": {
  8690. "schema": {
  8691. "$ref": "#/components/schemas/UnauthorizedError"
  8692. }
  8693. }
  8694. }
  8695. }
  8696. },
  8697. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  8698. "summary": "Run shell command",
  8699. "requestBody": {
  8700. "content": {
  8701. "application/json": {
  8702. "schema": {
  8703. "type": "object",
  8704. "properties": {
  8705. "command": {
  8706. "type": "string"
  8707. },
  8708. "cwd": {
  8709. "type": "string"
  8710. },
  8711. "timeout": {
  8712. "type": "integer",
  8713. "allOf": [
  8714. {
  8715. "minimum": 0
  8716. }
  8717. ]
  8718. },
  8719. "metadata": {
  8720. "type": "object"
  8721. }
  8722. },
  8723. "required": [
  8724. "command",
  8725. "timeout"
  8726. ],
  8727. "additionalProperties": false
  8728. }
  8729. }
  8730. },
  8731. "required": true
  8732. }
  8733. }
  8734. },
  8735. "/api/shell/{id}": {
  8736. "get": {
  8737. "tags": [
  8738. "shell"
  8739. ],
  8740. "operationId": "v2.shell.get",
  8741. "parameters": [
  8742. {
  8743. "name": "id",
  8744. "in": "path",
  8745. "schema": {
  8746. "type": "string",
  8747. "allOf": [
  8748. {
  8749. "pattern": "^sh_"
  8750. }
  8751. ]
  8752. },
  8753. "required": true
  8754. },
  8755. {
  8756. "name": "location",
  8757. "in": "query",
  8758. "schema": {
  8759. "anyOf": [
  8760. {
  8761. "type": "object",
  8762. "properties": {
  8763. "directory": {
  8764. "anyOf": [
  8765. {
  8766. "type": "string"
  8767. },
  8768. {
  8769. "type": "null"
  8770. }
  8771. ]
  8772. },
  8773. "workspace": {
  8774. "anyOf": [
  8775. {
  8776. "type": "string"
  8777. },
  8778. {
  8779. "type": "null"
  8780. }
  8781. ]
  8782. }
  8783. },
  8784. "additionalProperties": false
  8785. },
  8786. {
  8787. "type": "null"
  8788. }
  8789. ]
  8790. },
  8791. "required": false,
  8792. "style": "deepObject",
  8793. "explode": true
  8794. }
  8795. ],
  8796. "security": [],
  8797. "responses": {
  8798. "200": {
  8799. "description": "Success",
  8800. "content": {
  8801. "application/json": {
  8802. "schema": {
  8803. "type": "object",
  8804. "properties": {
  8805. "location": {
  8806. "$ref": "#/components/schemas/Location.Info"
  8807. },
  8808. "data": {
  8809. "$ref": "#/components/schemas/Shell1"
  8810. }
  8811. },
  8812. "required": [
  8813. "location",
  8814. "data"
  8815. ],
  8816. "additionalProperties": false
  8817. }
  8818. }
  8819. }
  8820. },
  8821. "400": {
  8822. "description": "InvalidRequestError",
  8823. "content": {
  8824. "application/json": {
  8825. "schema": {
  8826. "$ref": "#/components/schemas/InvalidRequestError"
  8827. }
  8828. }
  8829. }
  8830. },
  8831. "401": {
  8832. "description": "UnauthorizedError",
  8833. "content": {
  8834. "application/json": {
  8835. "schema": {
  8836. "$ref": "#/components/schemas/UnauthorizedError"
  8837. }
  8838. }
  8839. }
  8840. },
  8841. "404": {
  8842. "description": "ShellNotFoundError",
  8843. "content": {
  8844. "application/json": {
  8845. "schema": {
  8846. "$ref": "#/components/schemas/ShellNotFoundError"
  8847. }
  8848. }
  8849. }
  8850. }
  8851. },
  8852. "description": "Get one shell command, including its status and exit code once exited.",
  8853. "summary": "Get shell command"
  8854. },
  8855. "delete": {
  8856. "tags": [
  8857. "shell"
  8858. ],
  8859. "operationId": "v2.shell.remove",
  8860. "parameters": [
  8861. {
  8862. "name": "id",
  8863. "in": "path",
  8864. "schema": {
  8865. "type": "string",
  8866. "allOf": [
  8867. {
  8868. "pattern": "^sh_"
  8869. }
  8870. ]
  8871. },
  8872. "required": true
  8873. },
  8874. {
  8875. "name": "location",
  8876. "in": "query",
  8877. "schema": {
  8878. "anyOf": [
  8879. {
  8880. "type": "object",
  8881. "properties": {
  8882. "directory": {
  8883. "anyOf": [
  8884. {
  8885. "type": "string"
  8886. },
  8887. {
  8888. "type": "null"
  8889. }
  8890. ]
  8891. },
  8892. "workspace": {
  8893. "anyOf": [
  8894. {
  8895. "type": "string"
  8896. },
  8897. {
  8898. "type": "null"
  8899. }
  8900. ]
  8901. }
  8902. },
  8903. "additionalProperties": false
  8904. },
  8905. {
  8906. "type": "null"
  8907. }
  8908. ]
  8909. },
  8910. "required": false,
  8911. "style": "deepObject",
  8912. "explode": true
  8913. }
  8914. ],
  8915. "security": [],
  8916. "responses": {
  8917. "204": {
  8918. "description": "<No Content>"
  8919. },
  8920. "400": {
  8921. "description": "InvalidRequestError",
  8922. "content": {
  8923. "application/json": {
  8924. "schema": {
  8925. "$ref": "#/components/schemas/InvalidRequestError"
  8926. }
  8927. }
  8928. }
  8929. },
  8930. "401": {
  8931. "description": "UnauthorizedError",
  8932. "content": {
  8933. "application/json": {
  8934. "schema": {
  8935. "$ref": "#/components/schemas/UnauthorizedError"
  8936. }
  8937. }
  8938. }
  8939. },
  8940. "404": {
  8941. "description": "ShellNotFoundError",
  8942. "content": {
  8943. "application/json": {
  8944. "schema": {
  8945. "$ref": "#/components/schemas/ShellNotFoundError"
  8946. }
  8947. }
  8948. }
  8949. }
  8950. },
  8951. "description": "Terminate and remove one shell command and its retained output.",
  8952. "summary": "Remove shell command"
  8953. }
  8954. },
  8955. "/api/shell/{id}/timeout": {
  8956. "patch": {
  8957. "tags": [
  8958. "shell"
  8959. ],
  8960. "operationId": "v2.shell.timeout",
  8961. "parameters": [
  8962. {
  8963. "name": "id",
  8964. "in": "path",
  8965. "schema": {
  8966. "type": "string",
  8967. "allOf": [
  8968. {
  8969. "pattern": "^sh_"
  8970. }
  8971. ]
  8972. },
  8973. "required": true
  8974. },
  8975. {
  8976. "name": "location",
  8977. "in": "query",
  8978. "schema": {
  8979. "anyOf": [
  8980. {
  8981. "type": "object",
  8982. "properties": {
  8983. "directory": {
  8984. "anyOf": [
  8985. {
  8986. "type": "string"
  8987. },
  8988. {
  8989. "type": "null"
  8990. }
  8991. ]
  8992. },
  8993. "workspace": {
  8994. "anyOf": [
  8995. {
  8996. "type": "string"
  8997. },
  8998. {
  8999. "type": "null"
  9000. }
  9001. ]
  9002. }
  9003. },
  9004. "additionalProperties": false
  9005. },
  9006. {
  9007. "type": "null"
  9008. }
  9009. ]
  9010. },
  9011. "required": false,
  9012. "style": "deepObject",
  9013. "explode": true
  9014. }
  9015. ],
  9016. "security": [],
  9017. "responses": {
  9018. "200": {
  9019. "description": "Success",
  9020. "content": {
  9021. "application/json": {
  9022. "schema": {
  9023. "type": "object",
  9024. "properties": {
  9025. "location": {
  9026. "$ref": "#/components/schemas/Location.Info"
  9027. },
  9028. "data": {
  9029. "$ref": "#/components/schemas/Shell1"
  9030. }
  9031. },
  9032. "required": [
  9033. "location",
  9034. "data"
  9035. ],
  9036. "additionalProperties": false
  9037. }
  9038. }
  9039. }
  9040. },
  9041. "400": {
  9042. "description": "InvalidRequestError",
  9043. "content": {
  9044. "application/json": {
  9045. "schema": {
  9046. "$ref": "#/components/schemas/InvalidRequestError"
  9047. }
  9048. }
  9049. }
  9050. },
  9051. "401": {
  9052. "description": "UnauthorizedError",
  9053. "content": {
  9054. "application/json": {
  9055. "schema": {
  9056. "$ref": "#/components/schemas/UnauthorizedError"
  9057. }
  9058. }
  9059. }
  9060. },
  9061. "404": {
  9062. "description": "ShellNotFoundError",
  9063. "content": {
  9064. "application/json": {
  9065. "schema": {
  9066. "$ref": "#/components/schemas/ShellNotFoundError"
  9067. }
  9068. }
  9069. }
  9070. }
  9071. },
  9072. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  9073. "summary": "Update shell timeout",
  9074. "requestBody": {
  9075. "content": {
  9076. "application/json": {
  9077. "schema": {
  9078. "type": "object",
  9079. "properties": {
  9080. "timeout": {
  9081. "type": "integer",
  9082. "allOf": [
  9083. {
  9084. "minimum": 0
  9085. }
  9086. ]
  9087. }
  9088. },
  9089. "required": [
  9090. "timeout"
  9091. ],
  9092. "additionalProperties": false
  9093. }
  9094. }
  9095. },
  9096. "required": true
  9097. }
  9098. }
  9099. },
  9100. "/api/shell/{id}/output": {
  9101. "get": {
  9102. "tags": [
  9103. "shell"
  9104. ],
  9105. "operationId": "v2.shell.output",
  9106. "parameters": [
  9107. {
  9108. "name": "id",
  9109. "in": "path",
  9110. "schema": {
  9111. "type": "string",
  9112. "allOf": [
  9113. {
  9114. "pattern": "^sh_"
  9115. }
  9116. ]
  9117. },
  9118. "required": true
  9119. },
  9120. {
  9121. "name": "location",
  9122. "in": "query",
  9123. "schema": {
  9124. "anyOf": [
  9125. {
  9126. "type": "object",
  9127. "properties": {
  9128. "directory": {
  9129. "anyOf": [
  9130. {
  9131. "type": "string"
  9132. },
  9133. {
  9134. "type": "null"
  9135. }
  9136. ]
  9137. },
  9138. "workspace": {
  9139. "anyOf": [
  9140. {
  9141. "type": "string"
  9142. },
  9143. {
  9144. "type": "null"
  9145. }
  9146. ]
  9147. }
  9148. },
  9149. "additionalProperties": false
  9150. },
  9151. {
  9152. "type": "null"
  9153. }
  9154. ]
  9155. },
  9156. "required": false,
  9157. "style": "deepObject",
  9158. "explode": true
  9159. },
  9160. {
  9161. "name": "cursor",
  9162. "in": "query",
  9163. "schema": {
  9164. "type": "string",
  9165. "allOf": [
  9166. {
  9167. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  9168. }
  9169. ]
  9170. },
  9171. "required": false
  9172. },
  9173. {
  9174. "name": "limit",
  9175. "in": "query",
  9176. "schema": {
  9177. "type": "string",
  9178. "allOf": [
  9179. {
  9180. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  9181. }
  9182. ]
  9183. },
  9184. "required": false
  9185. }
  9186. ],
  9187. "security": [],
  9188. "responses": {
  9189. "200": {
  9190. "description": "Success",
  9191. "content": {
  9192. "application/json": {
  9193. "schema": {
  9194. "type": "object",
  9195. "properties": {
  9196. "location": {
  9197. "$ref": "#/components/schemas/Location.Info"
  9198. },
  9199. "data": {
  9200. "type": "object",
  9201. "properties": {
  9202. "output": {
  9203. "type": "string"
  9204. },
  9205. "cursor": {
  9206. "type": "integer",
  9207. "allOf": [
  9208. {
  9209. "minimum": 0
  9210. }
  9211. ]
  9212. },
  9213. "size": {
  9214. "type": "integer",
  9215. "allOf": [
  9216. {
  9217. "minimum": 0
  9218. }
  9219. ]
  9220. },
  9221. "truncated": {
  9222. "type": "boolean"
  9223. }
  9224. },
  9225. "required": [
  9226. "output",
  9227. "cursor",
  9228. "size",
  9229. "truncated"
  9230. ],
  9231. "additionalProperties": false
  9232. }
  9233. },
  9234. "required": [
  9235. "location",
  9236. "data"
  9237. ],
  9238. "additionalProperties": false
  9239. }
  9240. }
  9241. }
  9242. },
  9243. "400": {
  9244. "description": "InvalidRequestError",
  9245. "content": {
  9246. "application/json": {
  9247. "schema": {
  9248. "$ref": "#/components/schemas/InvalidRequestError"
  9249. }
  9250. }
  9251. }
  9252. },
  9253. "401": {
  9254. "description": "UnauthorizedError",
  9255. "content": {
  9256. "application/json": {
  9257. "schema": {
  9258. "$ref": "#/components/schemas/UnauthorizedError"
  9259. }
  9260. }
  9261. }
  9262. },
  9263. "404": {
  9264. "description": "ShellNotFoundError",
  9265. "content": {
  9266. "application/json": {
  9267. "schema": {
  9268. "$ref": "#/components/schemas/ShellNotFoundError"
  9269. }
  9270. }
  9271. }
  9272. }
  9273. },
  9274. "description": "Page through captured combined output by absolute byte cursor.",
  9275. "summary": "Read shell output"
  9276. }
  9277. },
  9278. "/api/question/request": {
  9279. "get": {
  9280. "tags": [
  9281. "question"
  9282. ],
  9283. "operationId": "v2.question.request.list",
  9284. "parameters": [
  9285. {
  9286. "name": "location",
  9287. "in": "query",
  9288. "schema": {
  9289. "anyOf": [
  9290. {
  9291. "type": "object",
  9292. "properties": {
  9293. "directory": {
  9294. "anyOf": [
  9295. {
  9296. "type": "string"
  9297. },
  9298. {
  9299. "type": "null"
  9300. }
  9301. ]
  9302. },
  9303. "workspace": {
  9304. "anyOf": [
  9305. {
  9306. "type": "string"
  9307. },
  9308. {
  9309. "type": "null"
  9310. }
  9311. ]
  9312. }
  9313. },
  9314. "additionalProperties": false
  9315. },
  9316. {
  9317. "type": "null"
  9318. }
  9319. ]
  9320. },
  9321. "required": false,
  9322. "style": "deepObject",
  9323. "explode": true
  9324. }
  9325. ],
  9326. "security": [],
  9327. "responses": {
  9328. "200": {
  9329. "description": "Success",
  9330. "content": {
  9331. "application/json": {
  9332. "schema": {
  9333. "type": "object",
  9334. "properties": {
  9335. "location": {
  9336. "$ref": "#/components/schemas/Location.Info"
  9337. },
  9338. "data": {
  9339. "type": "array",
  9340. "items": {
  9341. "$ref": "#/components/schemas/QuestionV2.Request"
  9342. }
  9343. }
  9344. },
  9345. "required": [
  9346. "location",
  9347. "data"
  9348. ],
  9349. "additionalProperties": false
  9350. }
  9351. }
  9352. }
  9353. },
  9354. "400": {
  9355. "description": "InvalidRequestError",
  9356. "content": {
  9357. "application/json": {
  9358. "schema": {
  9359. "$ref": "#/components/schemas/InvalidRequestError"
  9360. }
  9361. }
  9362. }
  9363. },
  9364. "401": {
  9365. "description": "UnauthorizedError",
  9366. "content": {
  9367. "application/json": {
  9368. "schema": {
  9369. "$ref": "#/components/schemas/UnauthorizedError"
  9370. }
  9371. }
  9372. }
  9373. }
  9374. },
  9375. "description": "Retrieve pending question requests for a location.",
  9376. "summary": "List pending question requests"
  9377. }
  9378. },
  9379. "/api/session/{sessionID}/question": {
  9380. "get": {
  9381. "tags": [
  9382. "question"
  9383. ],
  9384. "operationId": "v2.session.question.list",
  9385. "parameters": [
  9386. {
  9387. "name": "sessionID",
  9388. "in": "path",
  9389. "schema": {
  9390. "type": "string",
  9391. "allOf": [
  9392. {
  9393. "pattern": "^ses"
  9394. }
  9395. ]
  9396. },
  9397. "required": true
  9398. }
  9399. ],
  9400. "security": [],
  9401. "responses": {
  9402. "200": {
  9403. "description": "Success",
  9404. "content": {
  9405. "application/json": {
  9406. "schema": {
  9407. "type": "object",
  9408. "properties": {
  9409. "data": {
  9410. "type": "array",
  9411. "items": {
  9412. "$ref": "#/components/schemas/QuestionV2.Request"
  9413. }
  9414. }
  9415. },
  9416. "required": [
  9417. "data"
  9418. ],
  9419. "additionalProperties": false
  9420. }
  9421. }
  9422. }
  9423. },
  9424. "400": {
  9425. "description": "InvalidRequestError",
  9426. "content": {
  9427. "application/json": {
  9428. "schema": {
  9429. "$ref": "#/components/schemas/InvalidRequestError"
  9430. }
  9431. }
  9432. }
  9433. },
  9434. "401": {
  9435. "description": "UnauthorizedError",
  9436. "content": {
  9437. "application/json": {
  9438. "schema": {
  9439. "$ref": "#/components/schemas/UnauthorizedError"
  9440. }
  9441. }
  9442. }
  9443. },
  9444. "404": {
  9445. "description": "SessionNotFoundError",
  9446. "content": {
  9447. "application/json": {
  9448. "schema": {
  9449. "anyOf": [
  9450. {
  9451. "$ref": "#/components/schemas/SessionNotFoundError"
  9452. },
  9453. {
  9454. "$ref": "#/components/schemas/SessionNotFoundError"
  9455. }
  9456. ]
  9457. }
  9458. }
  9459. }
  9460. }
  9461. },
  9462. "description": "Retrieve pending question requests owned by a session.",
  9463. "summary": "List session question requests"
  9464. }
  9465. },
  9466. "/api/session/{sessionID}/question/{requestID}/reply": {
  9467. "post": {
  9468. "tags": [
  9469. "question"
  9470. ],
  9471. "operationId": "v2.session.question.reply",
  9472. "parameters": [
  9473. {
  9474. "name": "sessionID",
  9475. "in": "path",
  9476. "schema": {
  9477. "type": "string",
  9478. "allOf": [
  9479. {
  9480. "pattern": "^ses"
  9481. }
  9482. ]
  9483. },
  9484. "required": true
  9485. },
  9486. {
  9487. "name": "requestID",
  9488. "in": "path",
  9489. "schema": {
  9490. "type": "string",
  9491. "allOf": [
  9492. {
  9493. "pattern": "^que"
  9494. }
  9495. ]
  9496. },
  9497. "required": true
  9498. }
  9499. ],
  9500. "security": [],
  9501. "responses": {
  9502. "204": {
  9503. "description": "<No Content>"
  9504. },
  9505. "400": {
  9506. "description": "InvalidRequestError",
  9507. "content": {
  9508. "application/json": {
  9509. "schema": {
  9510. "$ref": "#/components/schemas/InvalidRequestError"
  9511. }
  9512. }
  9513. }
  9514. },
  9515. "401": {
  9516. "description": "UnauthorizedError",
  9517. "content": {
  9518. "application/json": {
  9519. "schema": {
  9520. "$ref": "#/components/schemas/UnauthorizedError"
  9521. }
  9522. }
  9523. }
  9524. },
  9525. "404": {
  9526. "description": "SessionNotFoundError | QuestionNotFoundError",
  9527. "content": {
  9528. "application/json": {
  9529. "schema": {
  9530. "anyOf": [
  9531. {
  9532. "$ref": "#/components/schemas/QuestionNotFoundError"
  9533. },
  9534. {
  9535. "$ref": "#/components/schemas/SessionNotFoundError"
  9536. },
  9537. {
  9538. "$ref": "#/components/schemas/SessionNotFoundError"
  9539. }
  9540. ]
  9541. }
  9542. }
  9543. }
  9544. }
  9545. },
  9546. "description": "Answer a pending question request owned by a session.",
  9547. "summary": "Reply to pending question request",
  9548. "requestBody": {
  9549. "content": {
  9550. "application/json": {
  9551. "schema": {
  9552. "$ref": "#/components/schemas/QuestionV2.Reply"
  9553. }
  9554. }
  9555. },
  9556. "required": true
  9557. }
  9558. }
  9559. },
  9560. "/api/session/{sessionID}/question/{requestID}/reject": {
  9561. "post": {
  9562. "tags": [
  9563. "question"
  9564. ],
  9565. "operationId": "v2.session.question.reject",
  9566. "parameters": [
  9567. {
  9568. "name": "sessionID",
  9569. "in": "path",
  9570. "schema": {
  9571. "type": "string",
  9572. "allOf": [
  9573. {
  9574. "pattern": "^ses"
  9575. }
  9576. ]
  9577. },
  9578. "required": true
  9579. },
  9580. {
  9581. "name": "requestID",
  9582. "in": "path",
  9583. "schema": {
  9584. "type": "string",
  9585. "allOf": [
  9586. {
  9587. "pattern": "^que"
  9588. }
  9589. ]
  9590. },
  9591. "required": true
  9592. }
  9593. ],
  9594. "security": [],
  9595. "responses": {
  9596. "204": {
  9597. "description": "<No Content>"
  9598. },
  9599. "400": {
  9600. "description": "InvalidRequestError",
  9601. "content": {
  9602. "application/json": {
  9603. "schema": {
  9604. "$ref": "#/components/schemas/InvalidRequestError"
  9605. }
  9606. }
  9607. }
  9608. },
  9609. "401": {
  9610. "description": "UnauthorizedError",
  9611. "content": {
  9612. "application/json": {
  9613. "schema": {
  9614. "$ref": "#/components/schemas/UnauthorizedError"
  9615. }
  9616. }
  9617. }
  9618. },
  9619. "404": {
  9620. "description": "SessionNotFoundError | QuestionNotFoundError",
  9621. "content": {
  9622. "application/json": {
  9623. "schema": {
  9624. "anyOf": [
  9625. {
  9626. "$ref": "#/components/schemas/QuestionNotFoundError"
  9627. },
  9628. {
  9629. "$ref": "#/components/schemas/SessionNotFoundError"
  9630. },
  9631. {
  9632. "$ref": "#/components/schemas/SessionNotFoundError"
  9633. }
  9634. ]
  9635. }
  9636. }
  9637. }
  9638. }
  9639. },
  9640. "description": "Reject a pending question request owned by a session.",
  9641. "summary": "Reject pending question request"
  9642. }
  9643. },
  9644. "/api/reference": {
  9645. "get": {
  9646. "tags": [
  9647. "reference"
  9648. ],
  9649. "operationId": "v2.reference.list",
  9650. "parameters": [
  9651. {
  9652. "name": "location",
  9653. "in": "query",
  9654. "schema": {
  9655. "anyOf": [
  9656. {
  9657. "type": "object",
  9658. "properties": {
  9659. "directory": {
  9660. "anyOf": [
  9661. {
  9662. "type": "string"
  9663. },
  9664. {
  9665. "type": "null"
  9666. }
  9667. ]
  9668. },
  9669. "workspace": {
  9670. "anyOf": [
  9671. {
  9672. "type": "string"
  9673. },
  9674. {
  9675. "type": "null"
  9676. }
  9677. ]
  9678. }
  9679. },
  9680. "additionalProperties": false
  9681. },
  9682. {
  9683. "type": "null"
  9684. }
  9685. ]
  9686. },
  9687. "required": false,
  9688. "style": "deepObject",
  9689. "explode": true
  9690. }
  9691. ],
  9692. "security": [],
  9693. "responses": {
  9694. "200": {
  9695. "description": "Success",
  9696. "content": {
  9697. "application/json": {
  9698. "schema": {
  9699. "type": "object",
  9700. "properties": {
  9701. "location": {
  9702. "$ref": "#/components/schemas/Location.Info"
  9703. },
  9704. "data": {
  9705. "type": "array",
  9706. "items": {
  9707. "$ref": "#/components/schemas/Reference.Info"
  9708. }
  9709. }
  9710. },
  9711. "required": [
  9712. "location",
  9713. "data"
  9714. ],
  9715. "additionalProperties": false
  9716. }
  9717. }
  9718. }
  9719. },
  9720. "400": {
  9721. "description": "InvalidRequestError",
  9722. "content": {
  9723. "application/json": {
  9724. "schema": {
  9725. "$ref": "#/components/schemas/InvalidRequestError"
  9726. }
  9727. }
  9728. }
  9729. },
  9730. "401": {
  9731. "description": "UnauthorizedError",
  9732. "content": {
  9733. "application/json": {
  9734. "schema": {
  9735. "$ref": "#/components/schemas/UnauthorizedError"
  9736. }
  9737. }
  9738. }
  9739. }
  9740. },
  9741. "description": "List references available in the requested location.",
  9742. "summary": "List references"
  9743. }
  9744. },
  9745. "/experimental/project/{projectID}/copy": {
  9746. "post": {
  9747. "tags": [
  9748. "projectCopy"
  9749. ],
  9750. "operationId": "v2.projectCopy.create",
  9751. "parameters": [
  9752. {
  9753. "name": "projectID",
  9754. "in": "path",
  9755. "schema": {
  9756. "type": "string"
  9757. },
  9758. "required": true
  9759. },
  9760. {
  9761. "name": "location",
  9762. "in": "query",
  9763. "schema": {
  9764. "anyOf": [
  9765. {
  9766. "type": "object",
  9767. "properties": {
  9768. "directory": {
  9769. "anyOf": [
  9770. {
  9771. "type": "string"
  9772. },
  9773. {
  9774. "type": "null"
  9775. }
  9776. ]
  9777. },
  9778. "workspace": {
  9779. "anyOf": [
  9780. {
  9781. "type": "string"
  9782. },
  9783. {
  9784. "type": "null"
  9785. }
  9786. ]
  9787. }
  9788. },
  9789. "additionalProperties": false
  9790. },
  9791. {
  9792. "type": "null"
  9793. }
  9794. ]
  9795. },
  9796. "required": false,
  9797. "style": "deepObject",
  9798. "explode": true
  9799. }
  9800. ],
  9801. "security": [],
  9802. "responses": {
  9803. "200": {
  9804. "description": "ProjectCopy.Copy",
  9805. "content": {
  9806. "application/json": {
  9807. "schema": {
  9808. "$ref": "#/components/schemas/ProjectCopy.Copy"
  9809. }
  9810. }
  9811. }
  9812. },
  9813. "400": {
  9814. "description": "ProjectCopyError | InvalidRequestError",
  9815. "content": {
  9816. "application/json": {
  9817. "schema": {
  9818. "anyOf": [
  9819. {
  9820. "$ref": "#/components/schemas/ProjectCopyError"
  9821. },
  9822. {
  9823. "$ref": "#/components/schemas/InvalidRequestError"
  9824. }
  9825. ]
  9826. }
  9827. }
  9828. }
  9829. },
  9830. "401": {
  9831. "description": "UnauthorizedError",
  9832. "content": {
  9833. "application/json": {
  9834. "schema": {
  9835. "$ref": "#/components/schemas/UnauthorizedError"
  9836. }
  9837. }
  9838. }
  9839. }
  9840. },
  9841. "requestBody": {
  9842. "content": {
  9843. "application/json": {
  9844. "schema": {
  9845. "type": "object",
  9846. "properties": {
  9847. "strategy": {
  9848. "type": "string"
  9849. },
  9850. "directory": {
  9851. "type": "string"
  9852. },
  9853. "name": {
  9854. "type": "string"
  9855. }
  9856. },
  9857. "required": [
  9858. "strategy",
  9859. "directory"
  9860. ],
  9861. "additionalProperties": false
  9862. }
  9863. }
  9864. },
  9865. "required": true
  9866. }
  9867. },
  9868. "delete": {
  9869. "tags": [
  9870. "projectCopy"
  9871. ],
  9872. "operationId": "v2.projectCopy.remove",
  9873. "parameters": [
  9874. {
  9875. "name": "projectID",
  9876. "in": "path",
  9877. "schema": {
  9878. "type": "string"
  9879. },
  9880. "required": true
  9881. },
  9882. {
  9883. "name": "location",
  9884. "in": "query",
  9885. "schema": {
  9886. "anyOf": [
  9887. {
  9888. "type": "object",
  9889. "properties": {
  9890. "directory": {
  9891. "anyOf": [
  9892. {
  9893. "type": "string"
  9894. },
  9895. {
  9896. "type": "null"
  9897. }
  9898. ]
  9899. },
  9900. "workspace": {
  9901. "anyOf": [
  9902. {
  9903. "type": "string"
  9904. },
  9905. {
  9906. "type": "null"
  9907. }
  9908. ]
  9909. }
  9910. },
  9911. "additionalProperties": false
  9912. },
  9913. {
  9914. "type": "null"
  9915. }
  9916. ]
  9917. },
  9918. "required": false,
  9919. "style": "deepObject",
  9920. "explode": true
  9921. }
  9922. ],
  9923. "security": [],
  9924. "responses": {
  9925. "204": {
  9926. "description": "<No Content>"
  9927. },
  9928. "400": {
  9929. "description": "ProjectCopyError | InvalidRequestError",
  9930. "content": {
  9931. "application/json": {
  9932. "schema": {
  9933. "anyOf": [
  9934. {
  9935. "$ref": "#/components/schemas/ProjectCopyError"
  9936. },
  9937. {
  9938. "$ref": "#/components/schemas/InvalidRequestError"
  9939. }
  9940. ]
  9941. }
  9942. }
  9943. }
  9944. },
  9945. "401": {
  9946. "description": "UnauthorizedError",
  9947. "content": {
  9948. "application/json": {
  9949. "schema": {
  9950. "$ref": "#/components/schemas/UnauthorizedError"
  9951. }
  9952. }
  9953. }
  9954. }
  9955. },
  9956. "requestBody": {
  9957. "content": {
  9958. "application/json": {
  9959. "schema": {
  9960. "type": "object",
  9961. "properties": {
  9962. "directory": {
  9963. "type": "string"
  9964. },
  9965. "force": {
  9966. "type": "boolean"
  9967. }
  9968. },
  9969. "required": [
  9970. "directory",
  9971. "force"
  9972. ],
  9973. "additionalProperties": false
  9974. }
  9975. }
  9976. },
  9977. "required": true
  9978. }
  9979. }
  9980. },
  9981. "/experimental/project/{projectID}/copy/refresh": {
  9982. "post": {
  9983. "tags": [
  9984. "projectCopy"
  9985. ],
  9986. "operationId": "v2.projectCopy.refresh",
  9987. "parameters": [
  9988. {
  9989. "name": "projectID",
  9990. "in": "path",
  9991. "schema": {
  9992. "type": "string"
  9993. },
  9994. "required": true
  9995. },
  9996. {
  9997. "name": "location",
  9998. "in": "query",
  9999. "schema": {
  10000. "anyOf": [
  10001. {
  10002. "type": "object",
  10003. "properties": {
  10004. "directory": {
  10005. "anyOf": [
  10006. {
  10007. "type": "string"
  10008. },
  10009. {
  10010. "type": "null"
  10011. }
  10012. ]
  10013. },
  10014. "workspace": {
  10015. "anyOf": [
  10016. {
  10017. "type": "string"
  10018. },
  10019. {
  10020. "type": "null"
  10021. }
  10022. ]
  10023. }
  10024. },
  10025. "additionalProperties": false
  10026. },
  10027. {
  10028. "type": "null"
  10029. }
  10030. ]
  10031. },
  10032. "required": false,
  10033. "style": "deepObject",
  10034. "explode": true
  10035. }
  10036. ],
  10037. "security": [],
  10038. "responses": {
  10039. "204": {
  10040. "description": "<No Content>"
  10041. },
  10042. "400": {
  10043. "description": "ProjectCopyError | InvalidRequestError",
  10044. "content": {
  10045. "application/json": {
  10046. "schema": {
  10047. "anyOf": [
  10048. {
  10049. "$ref": "#/components/schemas/ProjectCopyError"
  10050. },
  10051. {
  10052. "$ref": "#/components/schemas/InvalidRequestError"
  10053. }
  10054. ]
  10055. }
  10056. }
  10057. }
  10058. },
  10059. "401": {
  10060. "description": "UnauthorizedError",
  10061. "content": {
  10062. "application/json": {
  10063. "schema": {
  10064. "$ref": "#/components/schemas/UnauthorizedError"
  10065. }
  10066. }
  10067. }
  10068. }
  10069. }
  10070. }
  10071. },
  10072. "/api/vcs/status": {
  10073. "get": {
  10074. "tags": [
  10075. "vcs"
  10076. ],
  10077. "operationId": "v2.vcs.status",
  10078. "parameters": [
  10079. {
  10080. "name": "location",
  10081. "in": "query",
  10082. "schema": {
  10083. "anyOf": [
  10084. {
  10085. "type": "object",
  10086. "properties": {
  10087. "directory": {
  10088. "anyOf": [
  10089. {
  10090. "type": "string"
  10091. },
  10092. {
  10093. "type": "null"
  10094. }
  10095. ]
  10096. },
  10097. "workspace": {
  10098. "anyOf": [
  10099. {
  10100. "type": "string"
  10101. },
  10102. {
  10103. "type": "null"
  10104. }
  10105. ]
  10106. }
  10107. },
  10108. "additionalProperties": false
  10109. },
  10110. {
  10111. "type": "null"
  10112. }
  10113. ]
  10114. },
  10115. "required": false,
  10116. "style": "deepObject",
  10117. "explode": true
  10118. }
  10119. ],
  10120. "security": [],
  10121. "responses": {
  10122. "200": {
  10123. "description": "Success",
  10124. "content": {
  10125. "application/json": {
  10126. "schema": {
  10127. "type": "object",
  10128. "properties": {
  10129. "location": {
  10130. "$ref": "#/components/schemas/Location.Info"
  10131. },
  10132. "data": {
  10133. "type": "array",
  10134. "items": {
  10135. "$ref": "#/components/schemas/Vcs.FileStatus"
  10136. }
  10137. }
  10138. },
  10139. "required": [
  10140. "location",
  10141. "data"
  10142. ],
  10143. "additionalProperties": false
  10144. }
  10145. }
  10146. }
  10147. },
  10148. "400": {
  10149. "description": "InvalidRequestError",
  10150. "content": {
  10151. "application/json": {
  10152. "schema": {
  10153. "$ref": "#/components/schemas/InvalidRequestError"
  10154. }
  10155. }
  10156. }
  10157. },
  10158. "401": {
  10159. "description": "UnauthorizedError",
  10160. "content": {
  10161. "application/json": {
  10162. "schema": {
  10163. "$ref": "#/components/schemas/UnauthorizedError"
  10164. }
  10165. }
  10166. }
  10167. }
  10168. },
  10169. "description": "List uncommitted working-copy changes relative to the requested location.",
  10170. "summary": "VCS status"
  10171. }
  10172. },
  10173. "/api/vcs/diff": {
  10174. "get": {
  10175. "tags": [
  10176. "vcs"
  10177. ],
  10178. "operationId": "v2.vcs.diff",
  10179. "parameters": [
  10180. {
  10181. "name": "location",
  10182. "in": "query",
  10183. "schema": {
  10184. "anyOf": [
  10185. {
  10186. "type": "object",
  10187. "properties": {
  10188. "directory": {
  10189. "anyOf": [
  10190. {
  10191. "type": "string"
  10192. },
  10193. {
  10194. "type": "null"
  10195. }
  10196. ]
  10197. },
  10198. "workspace": {
  10199. "anyOf": [
  10200. {
  10201. "type": "string"
  10202. },
  10203. {
  10204. "type": "null"
  10205. }
  10206. ]
  10207. }
  10208. },
  10209. "additionalProperties": false
  10210. },
  10211. {
  10212. "type": "null"
  10213. }
  10214. ]
  10215. },
  10216. "required": false,
  10217. "style": "deepObject",
  10218. "explode": true
  10219. },
  10220. {
  10221. "name": "mode",
  10222. "in": "query",
  10223. "schema": {
  10224. "$ref": "#/components/schemas/Vcs.Mode"
  10225. },
  10226. "required": true
  10227. },
  10228. {
  10229. "name": "context",
  10230. "in": "query",
  10231. "schema": {
  10232. "anyOf": [
  10233. {
  10234. "type": "string"
  10235. },
  10236. {
  10237. "type": "null"
  10238. }
  10239. ]
  10240. },
  10241. "required": false
  10242. }
  10243. ],
  10244. "security": [],
  10245. "responses": {
  10246. "200": {
  10247. "description": "Success",
  10248. "content": {
  10249. "application/json": {
  10250. "schema": {
  10251. "type": "object",
  10252. "properties": {
  10253. "location": {
  10254. "$ref": "#/components/schemas/Location.Info"
  10255. },
  10256. "data": {
  10257. "type": "array",
  10258. "items": {
  10259. "$ref": "#/components/schemas/FileDiff.Info"
  10260. }
  10261. }
  10262. },
  10263. "required": [
  10264. "location",
  10265. "data"
  10266. ],
  10267. "additionalProperties": false
  10268. }
  10269. }
  10270. }
  10271. },
  10272. "400": {
  10273. "description": "InvalidRequestError",
  10274. "content": {
  10275. "application/json": {
  10276. "schema": {
  10277. "$ref": "#/components/schemas/InvalidRequestError"
  10278. }
  10279. }
  10280. }
  10281. },
  10282. "401": {
  10283. "description": "UnauthorizedError",
  10284. "content": {
  10285. "application/json": {
  10286. "schema": {
  10287. "$ref": "#/components/schemas/UnauthorizedError"
  10288. }
  10289. }
  10290. }
  10291. }
  10292. },
  10293. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  10294. "summary": "VCS diff"
  10295. }
  10296. },
  10297. "/api/debug/location": {
  10298. "get": {
  10299. "tags": [
  10300. "debug"
  10301. ],
  10302. "operationId": "v2.debug.location.list",
  10303. "parameters": [],
  10304. "security": [],
  10305. "responses": {
  10306. "200": {
  10307. "description": "Success",
  10308. "content": {
  10309. "application/json": {
  10310. "schema": {
  10311. "type": "array",
  10312. "items": {
  10313. "$ref": "#/components/schemas/Location.Ref"
  10314. }
  10315. }
  10316. }
  10317. }
  10318. },
  10319. "400": {
  10320. "description": "InvalidRequestError",
  10321. "content": {
  10322. "application/json": {
  10323. "schema": {
  10324. "$ref": "#/components/schemas/InvalidRequestError"
  10325. }
  10326. }
  10327. }
  10328. },
  10329. "401": {
  10330. "description": "UnauthorizedError",
  10331. "content": {
  10332. "application/json": {
  10333. "schema": {
  10334. "$ref": "#/components/schemas/UnauthorizedError"
  10335. }
  10336. }
  10337. }
  10338. }
  10339. },
  10340. "description": "List locations currently loaded by the server.",
  10341. "summary": "List loaded locations"
  10342. },
  10343. "delete": {
  10344. "tags": [
  10345. "debug"
  10346. ],
  10347. "operationId": "v2.debug.location.evict",
  10348. "parameters": [
  10349. {
  10350. "name": "location",
  10351. "in": "query",
  10352. "schema": {
  10353. "anyOf": [
  10354. {
  10355. "type": "object",
  10356. "properties": {
  10357. "directory": {
  10358. "anyOf": [
  10359. {
  10360. "type": "string"
  10361. },
  10362. {
  10363. "type": "null"
  10364. }
  10365. ]
  10366. },
  10367. "workspace": {
  10368. "anyOf": [
  10369. {
  10370. "type": "string"
  10371. },
  10372. {
  10373. "type": "null"
  10374. }
  10375. ]
  10376. }
  10377. },
  10378. "additionalProperties": false
  10379. },
  10380. {
  10381. "type": "null"
  10382. }
  10383. ]
  10384. },
  10385. "required": false,
  10386. "style": "deepObject",
  10387. "explode": true
  10388. }
  10389. ],
  10390. "security": [],
  10391. "responses": {
  10392. "204": {
  10393. "description": "<No Content>"
  10394. },
  10395. "400": {
  10396. "description": "InvalidRequestError",
  10397. "content": {
  10398. "application/json": {
  10399. "schema": {
  10400. "$ref": "#/components/schemas/InvalidRequestError"
  10401. }
  10402. }
  10403. }
  10404. },
  10405. "401": {
  10406. "description": "UnauthorizedError",
  10407. "content": {
  10408. "application/json": {
  10409. "schema": {
  10410. "$ref": "#/components/schemas/UnauthorizedError"
  10411. }
  10412. }
  10413. }
  10414. }
  10415. },
  10416. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  10417. "summary": "Evict a loaded location"
  10418. }
  10419. }
  10420. },
  10421. "components": {
  10422. "schemas": {
  10423. "UnauthorizedError": {
  10424. "type": "object",
  10425. "properties": {
  10426. "_tag": {
  10427. "type": "string",
  10428. "enum": [
  10429. "UnauthorizedError"
  10430. ]
  10431. },
  10432. "message": {
  10433. "type": "string"
  10434. }
  10435. },
  10436. "required": [
  10437. "_tag",
  10438. "message"
  10439. ],
  10440. "additionalProperties": false
  10441. },
  10442. "InvalidRequestError": {
  10443. "type": "object",
  10444. "properties": {
  10445. "_tag": {
  10446. "type": "string",
  10447. "enum": [
  10448. "InvalidRequestError"
  10449. ]
  10450. },
  10451. "message": {
  10452. "type": "string"
  10453. },
  10454. "kind": {
  10455. "anyOf": [
  10456. {
  10457. "type": "string"
  10458. },
  10459. {
  10460. "type": "null"
  10461. }
  10462. ]
  10463. },
  10464. "field": {
  10465. "anyOf": [
  10466. {
  10467. "type": "string"
  10468. },
  10469. {
  10470. "type": "null"
  10471. }
  10472. ]
  10473. }
  10474. },
  10475. "required": [
  10476. "_tag",
  10477. "message"
  10478. ],
  10479. "additionalProperties": false
  10480. },
  10481. "Location.Info": {
  10482. "type": "object",
  10483. "properties": {
  10484. "directory": {
  10485. "type": "string"
  10486. },
  10487. "workspaceID": {
  10488. "type": "string",
  10489. "allOf": [
  10490. {
  10491. "pattern": "^wrk"
  10492. }
  10493. ]
  10494. },
  10495. "project": {
  10496. "type": "object",
  10497. "properties": {
  10498. "id": {
  10499. "type": "string"
  10500. },
  10501. "directory": {
  10502. "type": "string"
  10503. }
  10504. },
  10505. "required": [
  10506. "id",
  10507. "directory"
  10508. ],
  10509. "additionalProperties": false
  10510. }
  10511. },
  10512. "required": [
  10513. "directory",
  10514. "project"
  10515. ],
  10516. "additionalProperties": false
  10517. },
  10518. "Model.Ref": {
  10519. "type": "object",
  10520. "properties": {
  10521. "id": {
  10522. "type": "string"
  10523. },
  10524. "providerID": {
  10525. "type": "string"
  10526. },
  10527. "variant": {
  10528. "type": "string"
  10529. }
  10530. },
  10531. "required": [
  10532. "id",
  10533. "providerID"
  10534. ],
  10535. "additionalProperties": false
  10536. },
  10537. "Provider.Settings": {
  10538. "type": "object"
  10539. },
  10540. "Provider.Request": {
  10541. "type": "object",
  10542. "properties": {
  10543. "settings": {
  10544. "$ref": "#/components/schemas/Provider.Settings"
  10545. },
  10546. "headers": {
  10547. "type": "object",
  10548. "additionalProperties": {
  10549. "type": "string"
  10550. }
  10551. },
  10552. "body": {
  10553. "type": "object"
  10554. }
  10555. },
  10556. "required": [
  10557. "settings",
  10558. "headers",
  10559. "body"
  10560. ],
  10561. "additionalProperties": false
  10562. },
  10563. "Agent.Color": {
  10564. "anyOf": [
  10565. {
  10566. "type": "string",
  10567. "allOf": [
  10568. {
  10569. "pattern": "^#[0-9a-fA-F]{6}$"
  10570. }
  10571. ]
  10572. },
  10573. {
  10574. "type": "string",
  10575. "enum": [
  10576. "primary",
  10577. "secondary",
  10578. "accent",
  10579. "success",
  10580. "warning",
  10581. "error",
  10582. "info"
  10583. ]
  10584. }
  10585. ]
  10586. },
  10587. "PermissionV2.Effect": {
  10588. "type": "string",
  10589. "enum": [
  10590. "allow",
  10591. "deny",
  10592. "ask"
  10593. ]
  10594. },
  10595. "PermissionV2.Rule": {
  10596. "type": "object",
  10597. "properties": {
  10598. "action": {
  10599. "type": "string"
  10600. },
  10601. "resource": {
  10602. "type": "string"
  10603. },
  10604. "effect": {
  10605. "$ref": "#/components/schemas/PermissionV2.Effect"
  10606. }
  10607. },
  10608. "required": [
  10609. "action",
  10610. "resource",
  10611. "effect"
  10612. ],
  10613. "additionalProperties": false
  10614. },
  10615. "PermissionV2.Ruleset": {
  10616. "type": "array",
  10617. "items": {
  10618. "$ref": "#/components/schemas/PermissionV2.Rule"
  10619. }
  10620. },
  10621. "Agent.Info": {
  10622. "type": "object",
  10623. "properties": {
  10624. "id": {
  10625. "type": "string"
  10626. },
  10627. "name": {
  10628. "type": "string"
  10629. },
  10630. "model": {
  10631. "$ref": "#/components/schemas/Model.Ref"
  10632. },
  10633. "request": {
  10634. "$ref": "#/components/schemas/Provider.Request"
  10635. },
  10636. "system": {
  10637. "type": "string"
  10638. },
  10639. "description": {
  10640. "type": "string"
  10641. },
  10642. "mode": {
  10643. "type": "string",
  10644. "enum": [
  10645. "subagent",
  10646. "primary",
  10647. "all"
  10648. ]
  10649. },
  10650. "hidden": {
  10651. "type": "boolean"
  10652. },
  10653. "color": {
  10654. "$ref": "#/components/schemas/Agent.Color"
  10655. },
  10656. "steps": {
  10657. "type": "integer",
  10658. "allOf": [
  10659. {
  10660. "exclusiveMinimum": 0
  10661. }
  10662. ]
  10663. },
  10664. "permissions": {
  10665. "$ref": "#/components/schemas/PermissionV2.Ruleset"
  10666. }
  10667. },
  10668. "required": [
  10669. "id",
  10670. "name",
  10671. "request",
  10672. "mode",
  10673. "hidden",
  10674. "permissions"
  10675. ],
  10676. "additionalProperties": false
  10677. },
  10678. "Plugin.Info": {
  10679. "type": "object",
  10680. "properties": {
  10681. "id": {
  10682. "type": "string"
  10683. }
  10684. },
  10685. "required": [
  10686. "id"
  10687. ],
  10688. "additionalProperties": false
  10689. },
  10690. "Money.USD": {
  10691. "type": "number"
  10692. },
  10693. "TokenUsage.Info": {
  10694. "type": "object",
  10695. "properties": {
  10696. "input": {
  10697. "type": "number"
  10698. },
  10699. "output": {
  10700. "type": "number"
  10701. },
  10702. "reasoning": {
  10703. "type": "number"
  10704. },
  10705. "cache": {
  10706. "type": "object",
  10707. "properties": {
  10708. "read": {
  10709. "type": "number"
  10710. },
  10711. "write": {
  10712. "type": "number"
  10713. }
  10714. },
  10715. "required": [
  10716. "read",
  10717. "write"
  10718. ],
  10719. "additionalProperties": false
  10720. }
  10721. },
  10722. "required": [
  10723. "input",
  10724. "output",
  10725. "reasoning",
  10726. "cache"
  10727. ],
  10728. "additionalProperties": false
  10729. },
  10730. "Location.Ref": {
  10731. "type": "object",
  10732. "properties": {
  10733. "directory": {
  10734. "type": "string"
  10735. },
  10736. "workspaceID": {
  10737. "type": "string",
  10738. "allOf": [
  10739. {
  10740. "pattern": "^wrk"
  10741. }
  10742. ]
  10743. }
  10744. },
  10745. "required": [
  10746. "directory"
  10747. ],
  10748. "additionalProperties": false
  10749. },
  10750. "FileDiff.Info": {
  10751. "type": "object",
  10752. "properties": {
  10753. "file": {
  10754. "type": "string"
  10755. },
  10756. "patch": {
  10757. "type": "string"
  10758. },
  10759. "additions": {
  10760. "type": "integer",
  10761. "allOf": [
  10762. {
  10763. "minimum": 0
  10764. }
  10765. ]
  10766. },
  10767. "deletions": {
  10768. "type": "integer",
  10769. "allOf": [
  10770. {
  10771. "minimum": 0
  10772. }
  10773. ]
  10774. },
  10775. "status": {
  10776. "type": "string",
  10777. "enum": [
  10778. "added",
  10779. "deleted",
  10780. "modified"
  10781. ]
  10782. }
  10783. },
  10784. "required": [
  10785. "file",
  10786. "patch",
  10787. "additions",
  10788. "deletions",
  10789. "status"
  10790. ],
  10791. "additionalProperties": false
  10792. },
  10793. "Session.Revert": {
  10794. "type": "object",
  10795. "properties": {
  10796. "messageID": {
  10797. "type": "string",
  10798. "allOf": [
  10799. {
  10800. "pattern": "^msg_"
  10801. }
  10802. ]
  10803. },
  10804. "partID": {
  10805. "type": "string"
  10806. },
  10807. "snapshot": {
  10808. "type": "string"
  10809. },
  10810. "files": {
  10811. "type": "array",
  10812. "items": {
  10813. "$ref": "#/components/schemas/FileDiff.Info"
  10814. }
  10815. }
  10816. },
  10817. "required": [
  10818. "messageID"
  10819. ],
  10820. "additionalProperties": false
  10821. },
  10822. "Session.Info": {
  10823. "type": "object",
  10824. "properties": {
  10825. "id": {
  10826. "type": "string",
  10827. "allOf": [
  10828. {
  10829. "pattern": "^ses"
  10830. }
  10831. ]
  10832. },
  10833. "parentID": {
  10834. "type": "string",
  10835. "allOf": [
  10836. {
  10837. "pattern": "^ses"
  10838. }
  10839. ]
  10840. },
  10841. "fork": {
  10842. "type": "object",
  10843. "properties": {
  10844. "sessionID": {
  10845. "type": "string",
  10846. "allOf": [
  10847. {
  10848. "pattern": "^ses"
  10849. }
  10850. ]
  10851. },
  10852. "messageID": {
  10853. "type": "string",
  10854. "allOf": [
  10855. {
  10856. "pattern": "^msg_"
  10857. }
  10858. ]
  10859. }
  10860. },
  10861. "required": [
  10862. "sessionID"
  10863. ],
  10864. "additionalProperties": false
  10865. },
  10866. "projectID": {
  10867. "type": "string"
  10868. },
  10869. "agent": {
  10870. "type": "string"
  10871. },
  10872. "model": {
  10873. "$ref": "#/components/schemas/Model.Ref"
  10874. },
  10875. "cost": {
  10876. "$ref": "#/components/schemas/Money.USD"
  10877. },
  10878. "tokens": {
  10879. "$ref": "#/components/schemas/TokenUsage.Info"
  10880. },
  10881. "time": {
  10882. "type": "object",
  10883. "properties": {
  10884. "created": {
  10885. "type": "number"
  10886. },
  10887. "updated": {
  10888. "type": "number"
  10889. },
  10890. "archived": {
  10891. "type": "number"
  10892. }
  10893. },
  10894. "required": [
  10895. "created",
  10896. "updated"
  10897. ],
  10898. "additionalProperties": false
  10899. },
  10900. "title": {
  10901. "type": "string"
  10902. },
  10903. "location": {
  10904. "$ref": "#/components/schemas/Location.Ref"
  10905. },
  10906. "subpath": {
  10907. "type": "string"
  10908. },
  10909. "revert": {
  10910. "$ref": "#/components/schemas/Session.Revert"
  10911. }
  10912. },
  10913. "required": [
  10914. "id",
  10915. "projectID",
  10916. "cost",
  10917. "tokens",
  10918. "time",
  10919. "title",
  10920. "location"
  10921. ],
  10922. "additionalProperties": false
  10923. },
  10924. "SessionsResponse": {
  10925. "type": "object",
  10926. "properties": {
  10927. "data": {
  10928. "type": "array",
  10929. "items": {
  10930. "$ref": "#/components/schemas/Session.Info"
  10931. }
  10932. },
  10933. "cursor": {
  10934. "type": "object",
  10935. "properties": {
  10936. "previous": {
  10937. "anyOf": [
  10938. {
  10939. "type": "string"
  10940. },
  10941. {
  10942. "type": "null"
  10943. }
  10944. ]
  10945. },
  10946. "next": {
  10947. "anyOf": [
  10948. {
  10949. "type": "string"
  10950. },
  10951. {
  10952. "type": "null"
  10953. }
  10954. ]
  10955. }
  10956. },
  10957. "additionalProperties": false
  10958. }
  10959. },
  10960. "required": [
  10961. "data",
  10962. "cursor"
  10963. ],
  10964. "additionalProperties": false
  10965. },
  10966. "InvalidCursorError": {
  10967. "type": "object",
  10968. "properties": {
  10969. "_tag": {
  10970. "type": "string",
  10971. "enum": [
  10972. "InvalidCursorError"
  10973. ]
  10974. },
  10975. "message": {
  10976. "type": "string"
  10977. }
  10978. },
  10979. "required": [
  10980. "_tag",
  10981. "message"
  10982. ],
  10983. "additionalProperties": false
  10984. },
  10985. "InvalidRequestError1": {
  10986. "type": "object",
  10987. "properties": {
  10988. "_tag": {
  10989. "type": "string",
  10990. "enum": [
  10991. "InvalidRequestError"
  10992. ]
  10993. },
  10994. "message": {
  10995. "type": "string"
  10996. },
  10997. "kind": {
  10998. "anyOf": [
  10999. {
  11000. "type": "string"
  11001. },
  11002. {
  11003. "type": "null"
  11004. }
  11005. ]
  11006. },
  11007. "field": {
  11008. "anyOf": [
  11009. {
  11010. "type": "string"
  11011. },
  11012. {
  11013. "type": "null"
  11014. }
  11015. ]
  11016. }
  11017. },
  11018. "required": [
  11019. "_tag",
  11020. "message"
  11021. ],
  11022. "additionalProperties": false
  11023. },
  11024. "SessionActive": {
  11025. "type": "object",
  11026. "properties": {
  11027. "type": {
  11028. "type": "string",
  11029. "enum": [
  11030. "running"
  11031. ]
  11032. }
  11033. },
  11034. "required": [
  11035. "type"
  11036. ],
  11037. "additionalProperties": false
  11038. },
  11039. "SessionNotFoundError": {
  11040. "type": "object",
  11041. "properties": {
  11042. "_tag": {
  11043. "type": "string",
  11044. "enum": [
  11045. "SessionNotFoundError"
  11046. ]
  11047. },
  11048. "sessionID": {
  11049. "type": "string"
  11050. },
  11051. "message": {
  11052. "type": "string"
  11053. }
  11054. },
  11055. "required": [
  11056. "_tag",
  11057. "sessionID",
  11058. "message"
  11059. ],
  11060. "additionalProperties": false
  11061. },
  11062. "MessageNotFoundError": {
  11063. "type": "object",
  11064. "properties": {
  11065. "_tag": {
  11066. "type": "string",
  11067. "enum": [
  11068. "MessageNotFoundError"
  11069. ]
  11070. },
  11071. "sessionID": {
  11072. "type": "string"
  11073. },
  11074. "messageID": {
  11075. "type": "string"
  11076. },
  11077. "message": {
  11078. "type": "string"
  11079. }
  11080. },
  11081. "required": [
  11082. "_tag",
  11083. "sessionID",
  11084. "messageID",
  11085. "message"
  11086. ],
  11087. "additionalProperties": false
  11088. },
  11089. "Prompt.Mention": {
  11090. "type": "object",
  11091. "properties": {
  11092. "start": {
  11093. "type": "number"
  11094. },
  11095. "end": {
  11096. "type": "number"
  11097. },
  11098. "text": {
  11099. "type": "string"
  11100. }
  11101. },
  11102. "required": [
  11103. "start",
  11104. "end",
  11105. "text"
  11106. ],
  11107. "additionalProperties": false
  11108. },
  11109. "PromptInput.FileAttachment": {
  11110. "type": "object",
  11111. "properties": {
  11112. "uri": {
  11113. "type": "string"
  11114. },
  11115. "name": {
  11116. "type": "string"
  11117. },
  11118. "description": {
  11119. "type": "string"
  11120. },
  11121. "mention": {
  11122. "$ref": "#/components/schemas/Prompt.Mention"
  11123. }
  11124. },
  11125. "required": [
  11126. "uri"
  11127. ],
  11128. "additionalProperties": false
  11129. },
  11130. "Prompt.AgentAttachment": {
  11131. "type": "object",
  11132. "properties": {
  11133. "name": {
  11134. "type": "string"
  11135. },
  11136. "mention": {
  11137. "$ref": "#/components/schemas/Prompt.Mention"
  11138. }
  11139. },
  11140. "required": [
  11141. "name"
  11142. ],
  11143. "additionalProperties": false
  11144. },
  11145. "PromptInput": {
  11146. "type": "object",
  11147. "properties": {
  11148. "text": {
  11149. "type": "string"
  11150. },
  11151. "files": {
  11152. "type": "array",
  11153. "items": {
  11154. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  11155. }
  11156. },
  11157. "agents": {
  11158. "type": "array",
  11159. "items": {
  11160. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11161. }
  11162. }
  11163. },
  11164. "required": [
  11165. "text"
  11166. ],
  11167. "additionalProperties": false
  11168. },
  11169. "Prompt.Base64": {
  11170. "type": "string",
  11171. "allOf": [
  11172. {
  11173. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  11174. }
  11175. ]
  11176. },
  11177. "Prompt.FileSource": {
  11178. "anyOf": [
  11179. {
  11180. "type": "object",
  11181. "properties": {
  11182. "type": {
  11183. "type": "string",
  11184. "enum": [
  11185. "inline"
  11186. ]
  11187. }
  11188. },
  11189. "required": [
  11190. "type"
  11191. ],
  11192. "additionalProperties": false
  11193. },
  11194. {
  11195. "type": "object",
  11196. "properties": {
  11197. "type": {
  11198. "type": "string",
  11199. "enum": [
  11200. "uri"
  11201. ]
  11202. },
  11203. "uri": {
  11204. "type": "string"
  11205. }
  11206. },
  11207. "required": [
  11208. "type",
  11209. "uri"
  11210. ],
  11211. "additionalProperties": false
  11212. }
  11213. ]
  11214. },
  11215. "Prompt.FileAttachment": {
  11216. "type": "object",
  11217. "properties": {
  11218. "data": {
  11219. "$ref": "#/components/schemas/Prompt.Base64"
  11220. },
  11221. "mime": {
  11222. "type": "string"
  11223. },
  11224. "source": {
  11225. "$ref": "#/components/schemas/Prompt.FileSource"
  11226. },
  11227. "name": {
  11228. "type": "string"
  11229. },
  11230. "description": {
  11231. "type": "string"
  11232. },
  11233. "mention": {
  11234. "$ref": "#/components/schemas/Prompt.Mention"
  11235. }
  11236. },
  11237. "required": [
  11238. "data",
  11239. "mime",
  11240. "source"
  11241. ],
  11242. "additionalProperties": false
  11243. },
  11244. "Prompt": {
  11245. "type": "object",
  11246. "properties": {
  11247. "text": {
  11248. "type": "string"
  11249. },
  11250. "files": {
  11251. "type": "array",
  11252. "items": {
  11253. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11254. }
  11255. },
  11256. "agents": {
  11257. "type": "array",
  11258. "items": {
  11259. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11260. }
  11261. }
  11262. },
  11263. "required": [
  11264. "text"
  11265. ],
  11266. "additionalProperties": false
  11267. },
  11268. "SessionInput.Admitted": {
  11269. "type": "object",
  11270. "properties": {
  11271. "admittedSeq": {
  11272. "type": "integer",
  11273. "allOf": [
  11274. {
  11275. "minimum": 0
  11276. }
  11277. ]
  11278. },
  11279. "id": {
  11280. "type": "string",
  11281. "allOf": [
  11282. {
  11283. "pattern": "^msg_"
  11284. }
  11285. ]
  11286. },
  11287. "sessionID": {
  11288. "type": "string",
  11289. "allOf": [
  11290. {
  11291. "pattern": "^ses"
  11292. }
  11293. ]
  11294. },
  11295. "prompt": {
  11296. "$ref": "#/components/schemas/Prompt"
  11297. },
  11298. "delivery": {
  11299. "type": "string",
  11300. "enum": [
  11301. "steer",
  11302. "queue"
  11303. ]
  11304. },
  11305. "timeCreated": {
  11306. "type": "number"
  11307. },
  11308. "promotedSeq": {
  11309. "type": "integer",
  11310. "allOf": [
  11311. {
  11312. "minimum": 0
  11313. }
  11314. ]
  11315. }
  11316. },
  11317. "required": [
  11318. "admittedSeq",
  11319. "id",
  11320. "sessionID",
  11321. "prompt",
  11322. "delivery",
  11323. "timeCreated"
  11324. ],
  11325. "additionalProperties": false
  11326. },
  11327. "ConflictError": {
  11328. "type": "object",
  11329. "properties": {
  11330. "_tag": {
  11331. "type": "string",
  11332. "enum": [
  11333. "ConflictError"
  11334. ]
  11335. },
  11336. "message": {
  11337. "type": "string"
  11338. },
  11339. "resource": {
  11340. "anyOf": [
  11341. {
  11342. "type": "string"
  11343. },
  11344. {
  11345. "type": "null"
  11346. }
  11347. ]
  11348. }
  11349. },
  11350. "required": [
  11351. "_tag",
  11352. "message"
  11353. ],
  11354. "additionalProperties": false
  11355. },
  11356. "CommandNotFoundError": {
  11357. "type": "object",
  11358. "properties": {
  11359. "_tag": {
  11360. "type": "string",
  11361. "enum": [
  11362. "CommandNotFoundError"
  11363. ]
  11364. },
  11365. "command": {
  11366. "type": "string"
  11367. },
  11368. "message": {
  11369. "type": "string"
  11370. }
  11371. },
  11372. "required": [
  11373. "_tag",
  11374. "command",
  11375. "message"
  11376. ],
  11377. "additionalProperties": false
  11378. },
  11379. "CommandEvaluationError": {
  11380. "type": "object",
  11381. "properties": {
  11382. "_tag": {
  11383. "type": "string",
  11384. "enum": [
  11385. "CommandEvaluationError"
  11386. ]
  11387. },
  11388. "command": {
  11389. "type": "string"
  11390. },
  11391. "message": {
  11392. "type": "string"
  11393. }
  11394. },
  11395. "required": [
  11396. "_tag",
  11397. "command",
  11398. "message"
  11399. ],
  11400. "additionalProperties": false
  11401. },
  11402. "SkillNotFoundError": {
  11403. "type": "object",
  11404. "properties": {
  11405. "_tag": {
  11406. "type": "string",
  11407. "enum": [
  11408. "SkillNotFoundError"
  11409. ]
  11410. },
  11411. "skill": {
  11412. "type": "string"
  11413. },
  11414. "message": {
  11415. "type": "string"
  11416. }
  11417. },
  11418. "required": [
  11419. "_tag",
  11420. "skill",
  11421. "message"
  11422. ],
  11423. "additionalProperties": false
  11424. },
  11425. "SessionInput.Compaction": {
  11426. "type": "object",
  11427. "properties": {
  11428. "type": {
  11429. "type": "string",
  11430. "enum": [
  11431. "compaction"
  11432. ]
  11433. },
  11434. "admittedSeq": {
  11435. "type": "integer",
  11436. "allOf": [
  11437. {
  11438. "minimum": 0
  11439. }
  11440. ]
  11441. },
  11442. "id": {
  11443. "type": "string",
  11444. "allOf": [
  11445. {
  11446. "pattern": "^msg_"
  11447. }
  11448. ]
  11449. },
  11450. "sessionID": {
  11451. "type": "string",
  11452. "allOf": [
  11453. {
  11454. "pattern": "^ses"
  11455. }
  11456. ]
  11457. },
  11458. "timeCreated": {
  11459. "type": "number"
  11460. },
  11461. "handledSeq": {
  11462. "type": "integer",
  11463. "allOf": [
  11464. {
  11465. "minimum": 0
  11466. }
  11467. ]
  11468. }
  11469. },
  11470. "required": [
  11471. "type",
  11472. "admittedSeq",
  11473. "id",
  11474. "sessionID",
  11475. "timeCreated"
  11476. ],
  11477. "additionalProperties": false
  11478. },
  11479. "ServiceUnavailableError": {
  11480. "type": "object",
  11481. "properties": {
  11482. "_tag": {
  11483. "type": "string",
  11484. "enum": [
  11485. "ServiceUnavailableError"
  11486. ]
  11487. },
  11488. "message": {
  11489. "type": "string"
  11490. },
  11491. "service": {
  11492. "anyOf": [
  11493. {
  11494. "type": "string"
  11495. },
  11496. {
  11497. "type": "null"
  11498. }
  11499. ]
  11500. }
  11501. },
  11502. "required": [
  11503. "_tag",
  11504. "message"
  11505. ],
  11506. "additionalProperties": false
  11507. },
  11508. "SessionBusyError": {
  11509. "type": "object",
  11510. "properties": {
  11511. "_tag": {
  11512. "type": "string",
  11513. "enum": [
  11514. "SessionBusyError"
  11515. ]
  11516. },
  11517. "sessionID": {
  11518. "type": "string"
  11519. },
  11520. "message": {
  11521. "type": "string"
  11522. }
  11523. },
  11524. "required": [
  11525. "_tag",
  11526. "sessionID",
  11527. "message"
  11528. ],
  11529. "additionalProperties": false
  11530. },
  11531. "UnknownError": {
  11532. "type": "object",
  11533. "properties": {
  11534. "_tag": {
  11535. "type": "string",
  11536. "enum": [
  11537. "UnknownError"
  11538. ]
  11539. },
  11540. "message": {
  11541. "type": "string"
  11542. },
  11543. "ref": {
  11544. "anyOf": [
  11545. {
  11546. "type": "string"
  11547. },
  11548. {
  11549. "type": "null"
  11550. }
  11551. ]
  11552. }
  11553. },
  11554. "required": [
  11555. "_tag",
  11556. "message"
  11557. ],
  11558. "additionalProperties": false
  11559. },
  11560. "Session.Message.AgentSelected": {
  11561. "type": "object",
  11562. "properties": {
  11563. "id": {
  11564. "type": "string",
  11565. "allOf": [
  11566. {
  11567. "pattern": "^msg_"
  11568. }
  11569. ]
  11570. },
  11571. "metadata": {
  11572. "type": "object"
  11573. },
  11574. "time": {
  11575. "type": "object",
  11576. "properties": {
  11577. "created": {
  11578. "type": "number"
  11579. }
  11580. },
  11581. "required": [
  11582. "created"
  11583. ],
  11584. "additionalProperties": false
  11585. },
  11586. "type": {
  11587. "type": "string",
  11588. "enum": [
  11589. "agent-switched"
  11590. ]
  11591. },
  11592. "agent": {
  11593. "type": "string"
  11594. }
  11595. },
  11596. "required": [
  11597. "id",
  11598. "time",
  11599. "type",
  11600. "agent"
  11601. ],
  11602. "additionalProperties": false
  11603. },
  11604. "Session.Message.ModelSelected": {
  11605. "type": "object",
  11606. "properties": {
  11607. "id": {
  11608. "type": "string",
  11609. "allOf": [
  11610. {
  11611. "pattern": "^msg_"
  11612. }
  11613. ]
  11614. },
  11615. "metadata": {
  11616. "type": "object"
  11617. },
  11618. "time": {
  11619. "type": "object",
  11620. "properties": {
  11621. "created": {
  11622. "type": "number"
  11623. }
  11624. },
  11625. "required": [
  11626. "created"
  11627. ],
  11628. "additionalProperties": false
  11629. },
  11630. "type": {
  11631. "type": "string",
  11632. "enum": [
  11633. "model-switched"
  11634. ]
  11635. },
  11636. "model": {
  11637. "$ref": "#/components/schemas/Model.Ref"
  11638. },
  11639. "previous": {
  11640. "$ref": "#/components/schemas/Model.Ref"
  11641. }
  11642. },
  11643. "required": [
  11644. "id",
  11645. "time",
  11646. "type",
  11647. "model"
  11648. ],
  11649. "additionalProperties": false
  11650. },
  11651. "Session.Message.User": {
  11652. "type": "object",
  11653. "properties": {
  11654. "id": {
  11655. "type": "string",
  11656. "allOf": [
  11657. {
  11658. "pattern": "^msg_"
  11659. }
  11660. ]
  11661. },
  11662. "metadata": {
  11663. "type": "object"
  11664. },
  11665. "time": {
  11666. "type": "object",
  11667. "properties": {
  11668. "created": {
  11669. "type": "number"
  11670. }
  11671. },
  11672. "required": [
  11673. "created"
  11674. ],
  11675. "additionalProperties": false
  11676. },
  11677. "text": {
  11678. "type": "string"
  11679. },
  11680. "files": {
  11681. "type": "array",
  11682. "items": {
  11683. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11684. }
  11685. },
  11686. "agents": {
  11687. "type": "array",
  11688. "items": {
  11689. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11690. }
  11691. },
  11692. "type": {
  11693. "type": "string",
  11694. "enum": [
  11695. "user"
  11696. ]
  11697. }
  11698. },
  11699. "required": [
  11700. "id",
  11701. "time",
  11702. "text",
  11703. "type"
  11704. ],
  11705. "additionalProperties": false
  11706. },
  11707. "Session.Message.Synthetic": {
  11708. "type": "object",
  11709. "properties": {
  11710. "id": {
  11711. "type": "string",
  11712. "allOf": [
  11713. {
  11714. "pattern": "^msg_"
  11715. }
  11716. ]
  11717. },
  11718. "metadata": {
  11719. "type": "object"
  11720. },
  11721. "time": {
  11722. "type": "object",
  11723. "properties": {
  11724. "created": {
  11725. "type": "number"
  11726. }
  11727. },
  11728. "required": [
  11729. "created"
  11730. ],
  11731. "additionalProperties": false
  11732. },
  11733. "text": {
  11734. "type": "string"
  11735. },
  11736. "description": {
  11737. "type": "string"
  11738. },
  11739. "type": {
  11740. "type": "string",
  11741. "enum": [
  11742. "synthetic"
  11743. ]
  11744. }
  11745. },
  11746. "required": [
  11747. "id",
  11748. "time",
  11749. "text",
  11750. "type"
  11751. ],
  11752. "additionalProperties": false
  11753. },
  11754. "Session.Message.System": {
  11755. "type": "object",
  11756. "properties": {
  11757. "id": {
  11758. "type": "string",
  11759. "allOf": [
  11760. {
  11761. "pattern": "^msg_"
  11762. }
  11763. ]
  11764. },
  11765. "metadata": {
  11766. "type": "object"
  11767. },
  11768. "time": {
  11769. "type": "object",
  11770. "properties": {
  11771. "created": {
  11772. "type": "number"
  11773. }
  11774. },
  11775. "required": [
  11776. "created"
  11777. ],
  11778. "additionalProperties": false
  11779. },
  11780. "type": {
  11781. "type": "string",
  11782. "enum": [
  11783. "system"
  11784. ]
  11785. },
  11786. "text": {
  11787. "type": "string"
  11788. }
  11789. },
  11790. "required": [
  11791. "id",
  11792. "time",
  11793. "type",
  11794. "text"
  11795. ],
  11796. "additionalProperties": false
  11797. },
  11798. "Session.Message.Skill": {
  11799. "type": "object",
  11800. "properties": {
  11801. "id": {
  11802. "type": "string",
  11803. "allOf": [
  11804. {
  11805. "pattern": "^msg_"
  11806. }
  11807. ]
  11808. },
  11809. "metadata": {
  11810. "type": "object"
  11811. },
  11812. "time": {
  11813. "type": "object",
  11814. "properties": {
  11815. "created": {
  11816. "type": "number"
  11817. }
  11818. },
  11819. "required": [
  11820. "created"
  11821. ],
  11822. "additionalProperties": false
  11823. },
  11824. "type": {
  11825. "type": "string",
  11826. "enum": [
  11827. "skill"
  11828. ]
  11829. },
  11830. "skill": {
  11831. "type": "string"
  11832. },
  11833. "name": {
  11834. "type": "string"
  11835. },
  11836. "text": {
  11837. "type": "string"
  11838. }
  11839. },
  11840. "required": [
  11841. "id",
  11842. "time",
  11843. "type",
  11844. "skill",
  11845. "name",
  11846. "text"
  11847. ],
  11848. "additionalProperties": false
  11849. },
  11850. "Session.Message.Shell": {
  11851. "type": "object",
  11852. "properties": {
  11853. "id": {
  11854. "type": "string",
  11855. "allOf": [
  11856. {
  11857. "pattern": "^msg_"
  11858. }
  11859. ]
  11860. },
  11861. "metadata": {
  11862. "type": "object"
  11863. },
  11864. "time": {
  11865. "type": "object",
  11866. "properties": {
  11867. "created": {
  11868. "type": "number"
  11869. },
  11870. "completed": {
  11871. "type": "number"
  11872. }
  11873. },
  11874. "required": [
  11875. "created"
  11876. ],
  11877. "additionalProperties": false
  11878. },
  11879. "type": {
  11880. "type": "string",
  11881. "enum": [
  11882. "shell"
  11883. ]
  11884. },
  11885. "shellID": {
  11886. "type": "string",
  11887. "allOf": [
  11888. {
  11889. "pattern": "^sh_"
  11890. }
  11891. ]
  11892. },
  11893. "command": {
  11894. "type": "string"
  11895. },
  11896. "status": {
  11897. "type": "string",
  11898. "enum": [
  11899. "running",
  11900. "exited",
  11901. "timeout",
  11902. "killed"
  11903. ]
  11904. },
  11905. "exit": {
  11906. "anyOf": [
  11907. {
  11908. "anyOf": [
  11909. {
  11910. "type": "number"
  11911. },
  11912. {
  11913. "type": "string",
  11914. "enum": [
  11915. "NaN"
  11916. ]
  11917. },
  11918. {
  11919. "type": "string",
  11920. "enum": [
  11921. "Infinity"
  11922. ]
  11923. },
  11924. {
  11925. "type": "string",
  11926. "enum": [
  11927. "-Infinity"
  11928. ]
  11929. }
  11930. ]
  11931. },
  11932. {
  11933. "type": "string",
  11934. "enum": [
  11935. "Infinity",
  11936. "-Infinity",
  11937. "NaN"
  11938. ]
  11939. }
  11940. ]
  11941. },
  11942. "output": {
  11943. "type": "object",
  11944. "properties": {
  11945. "output": {
  11946. "type": "string"
  11947. },
  11948. "cursor": {
  11949. "type": "integer",
  11950. "allOf": [
  11951. {
  11952. "minimum": 0
  11953. }
  11954. ]
  11955. },
  11956. "size": {
  11957. "type": "integer",
  11958. "allOf": [
  11959. {
  11960. "minimum": 0
  11961. }
  11962. ]
  11963. },
  11964. "truncated": {
  11965. "type": "boolean"
  11966. }
  11967. },
  11968. "required": [
  11969. "output",
  11970. "cursor",
  11971. "size",
  11972. "truncated"
  11973. ],
  11974. "additionalProperties": false
  11975. }
  11976. },
  11977. "required": [
  11978. "id",
  11979. "time",
  11980. "type",
  11981. "shellID",
  11982. "command",
  11983. "status"
  11984. ],
  11985. "additionalProperties": false
  11986. },
  11987. "Session.Message.Assistant.Text": {
  11988. "type": "object",
  11989. "properties": {
  11990. "type": {
  11991. "type": "string",
  11992. "enum": [
  11993. "text"
  11994. ]
  11995. },
  11996. "text": {
  11997. "type": "string"
  11998. }
  11999. },
  12000. "required": [
  12001. "type",
  12002. "text"
  12003. ],
  12004. "additionalProperties": false
  12005. },
  12006. "Session.Message.ProviderState": {
  12007. "type": "object"
  12008. },
  12009. "Session.Message.Assistant.Reasoning": {
  12010. "type": "object",
  12011. "properties": {
  12012. "type": {
  12013. "type": "string",
  12014. "enum": [
  12015. "reasoning"
  12016. ]
  12017. },
  12018. "text": {
  12019. "type": "string"
  12020. },
  12021. "state": {
  12022. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12023. },
  12024. "time": {
  12025. "type": "object",
  12026. "properties": {
  12027. "created": {
  12028. "type": "number"
  12029. },
  12030. "completed": {
  12031. "type": "number"
  12032. }
  12033. },
  12034. "required": [
  12035. "created"
  12036. ],
  12037. "additionalProperties": false
  12038. }
  12039. },
  12040. "required": [
  12041. "type",
  12042. "text"
  12043. ],
  12044. "additionalProperties": false
  12045. },
  12046. "Session.Message.ToolState.Streaming": {
  12047. "type": "object",
  12048. "properties": {
  12049. "status": {
  12050. "type": "string",
  12051. "enum": [
  12052. "streaming"
  12053. ]
  12054. },
  12055. "input": {
  12056. "type": "string"
  12057. }
  12058. },
  12059. "required": [
  12060. "status",
  12061. "input"
  12062. ],
  12063. "additionalProperties": false
  12064. },
  12065. "Tool.TextContent": {
  12066. "type": "object",
  12067. "properties": {
  12068. "type": {
  12069. "type": "string",
  12070. "enum": [
  12071. "text"
  12072. ]
  12073. },
  12074. "text": {
  12075. "type": "string"
  12076. }
  12077. },
  12078. "required": [
  12079. "type",
  12080. "text"
  12081. ],
  12082. "additionalProperties": false
  12083. },
  12084. "Tool.FileContent": {
  12085. "type": "object",
  12086. "properties": {
  12087. "type": {
  12088. "type": "string",
  12089. "enum": [
  12090. "file"
  12091. ]
  12092. },
  12093. "uri": {
  12094. "type": "string"
  12095. },
  12096. "mime": {
  12097. "type": "string"
  12098. },
  12099. "name": {
  12100. "type": "string"
  12101. }
  12102. },
  12103. "required": [
  12104. "type",
  12105. "uri",
  12106. "mime"
  12107. ],
  12108. "additionalProperties": false
  12109. },
  12110. "LLM.ToolContent": {
  12111. "anyOf": [
  12112. {
  12113. "$ref": "#/components/schemas/Tool.TextContent"
  12114. },
  12115. {
  12116. "$ref": "#/components/schemas/Tool.FileContent"
  12117. }
  12118. ]
  12119. },
  12120. "Session.Message.ToolState.Running": {
  12121. "type": "object",
  12122. "properties": {
  12123. "status": {
  12124. "type": "string",
  12125. "enum": [
  12126. "running"
  12127. ]
  12128. },
  12129. "input": {
  12130. "type": "object"
  12131. },
  12132. "structured": {
  12133. "type": "object"
  12134. },
  12135. "content": {
  12136. "type": "array",
  12137. "items": {
  12138. "$ref": "#/components/schemas/LLM.ToolContent"
  12139. }
  12140. }
  12141. },
  12142. "required": [
  12143. "status",
  12144. "input",
  12145. "structured",
  12146. "content"
  12147. ],
  12148. "additionalProperties": false
  12149. },
  12150. "Session.Message.ToolState.Completed": {
  12151. "type": "object",
  12152. "properties": {
  12153. "status": {
  12154. "type": "string",
  12155. "enum": [
  12156. "completed"
  12157. ]
  12158. },
  12159. "input": {
  12160. "type": "object"
  12161. },
  12162. "content": {
  12163. "type": "array",
  12164. "items": {
  12165. "$ref": "#/components/schemas/LLM.ToolContent"
  12166. }
  12167. },
  12168. "structured": {
  12169. "type": "object"
  12170. },
  12171. "result": {}
  12172. },
  12173. "required": [
  12174. "status",
  12175. "input",
  12176. "content",
  12177. "structured"
  12178. ],
  12179. "additionalProperties": false
  12180. },
  12181. "Session.StructuredError": {
  12182. "type": "object",
  12183. "properties": {
  12184. "type": {
  12185. "type": "string"
  12186. },
  12187. "message": {
  12188. "type": "string"
  12189. }
  12190. },
  12191. "required": [
  12192. "type",
  12193. "message"
  12194. ],
  12195. "additionalProperties": false
  12196. },
  12197. "Session.Message.ToolState.Error": {
  12198. "type": "object",
  12199. "properties": {
  12200. "status": {
  12201. "type": "string",
  12202. "enum": [
  12203. "error"
  12204. ]
  12205. },
  12206. "input": {
  12207. "type": "object"
  12208. },
  12209. "content": {
  12210. "type": "array",
  12211. "items": {
  12212. "$ref": "#/components/schemas/LLM.ToolContent"
  12213. }
  12214. },
  12215. "structured": {
  12216. "type": "object"
  12217. },
  12218. "error": {
  12219. "$ref": "#/components/schemas/Session.StructuredError"
  12220. },
  12221. "result": {}
  12222. },
  12223. "required": [
  12224. "status",
  12225. "input",
  12226. "content",
  12227. "structured",
  12228. "error"
  12229. ],
  12230. "additionalProperties": false
  12231. },
  12232. "Session.Message.Assistant.Tool": {
  12233. "type": "object",
  12234. "properties": {
  12235. "type": {
  12236. "type": "string",
  12237. "enum": [
  12238. "tool"
  12239. ]
  12240. },
  12241. "id": {
  12242. "type": "string"
  12243. },
  12244. "name": {
  12245. "type": "string"
  12246. },
  12247. "executed": {
  12248. "type": "boolean"
  12249. },
  12250. "providerState": {
  12251. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12252. },
  12253. "providerResultState": {
  12254. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12255. },
  12256. "state": {
  12257. "anyOf": [
  12258. {
  12259. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  12260. },
  12261. {
  12262. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  12263. },
  12264. {
  12265. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  12266. },
  12267. {
  12268. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  12269. }
  12270. ]
  12271. },
  12272. "time": {
  12273. "type": "object",
  12274. "properties": {
  12275. "created": {
  12276. "type": "number"
  12277. },
  12278. "ran": {
  12279. "type": "number"
  12280. },
  12281. "completed": {
  12282. "type": "number"
  12283. }
  12284. },
  12285. "required": [
  12286. "created"
  12287. ],
  12288. "additionalProperties": false
  12289. }
  12290. },
  12291. "required": [
  12292. "type",
  12293. "id",
  12294. "name",
  12295. "state",
  12296. "time"
  12297. ],
  12298. "additionalProperties": false
  12299. },
  12300. "Session.Message.Assistant.Retry": {
  12301. "type": "object",
  12302. "properties": {
  12303. "attempt": {
  12304. "type": "integer",
  12305. "allOf": [
  12306. {
  12307. "exclusiveMinimum": 0
  12308. }
  12309. ]
  12310. },
  12311. "at": {
  12312. "type": "number"
  12313. },
  12314. "error": {
  12315. "$ref": "#/components/schemas/Session.StructuredError"
  12316. }
  12317. },
  12318. "required": [
  12319. "attempt",
  12320. "at",
  12321. "error"
  12322. ],
  12323. "additionalProperties": false
  12324. },
  12325. "Session.Message.Assistant": {
  12326. "type": "object",
  12327. "properties": {
  12328. "id": {
  12329. "type": "string",
  12330. "allOf": [
  12331. {
  12332. "pattern": "^msg_"
  12333. }
  12334. ]
  12335. },
  12336. "metadata": {
  12337. "type": "object"
  12338. },
  12339. "time": {
  12340. "type": "object",
  12341. "properties": {
  12342. "created": {
  12343. "type": "number"
  12344. },
  12345. "completed": {
  12346. "type": "number"
  12347. }
  12348. },
  12349. "required": [
  12350. "created"
  12351. ],
  12352. "additionalProperties": false
  12353. },
  12354. "type": {
  12355. "type": "string",
  12356. "enum": [
  12357. "assistant"
  12358. ]
  12359. },
  12360. "agent": {
  12361. "type": "string"
  12362. },
  12363. "model": {
  12364. "$ref": "#/components/schemas/Model.Ref"
  12365. },
  12366. "content": {
  12367. "type": "array",
  12368. "items": {
  12369. "anyOf": [
  12370. {
  12371. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  12372. },
  12373. {
  12374. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  12375. },
  12376. {
  12377. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  12378. }
  12379. ]
  12380. }
  12381. },
  12382. "snapshot": {
  12383. "type": "object",
  12384. "properties": {
  12385. "start": {
  12386. "type": "string"
  12387. },
  12388. "end": {
  12389. "type": "string"
  12390. },
  12391. "files": {
  12392. "type": "array",
  12393. "items": {
  12394. "type": "string"
  12395. }
  12396. }
  12397. },
  12398. "additionalProperties": false
  12399. },
  12400. "finish": {
  12401. "type": "string",
  12402. "enum": [
  12403. "stop",
  12404. "length",
  12405. "tool-calls",
  12406. "content-filter",
  12407. "error",
  12408. "unknown"
  12409. ]
  12410. },
  12411. "cost": {
  12412. "$ref": "#/components/schemas/Money.USD"
  12413. },
  12414. "tokens": {
  12415. "$ref": "#/components/schemas/TokenUsage.Info"
  12416. },
  12417. "error": {
  12418. "$ref": "#/components/schemas/Session.StructuredError"
  12419. },
  12420. "retry": {
  12421. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  12422. }
  12423. },
  12424. "required": [
  12425. "id",
  12426. "time",
  12427. "type",
  12428. "agent",
  12429. "model",
  12430. "content"
  12431. ],
  12432. "additionalProperties": false
  12433. },
  12434. "Session.Message.Compaction.Running": {
  12435. "type": "object",
  12436. "properties": {
  12437. "type": {
  12438. "type": "string",
  12439. "enum": [
  12440. "compaction"
  12441. ]
  12442. },
  12443. "id": {
  12444. "type": "string",
  12445. "allOf": [
  12446. {
  12447. "pattern": "^msg_"
  12448. }
  12449. ]
  12450. },
  12451. "metadata": {
  12452. "type": "object"
  12453. },
  12454. "time": {
  12455. "type": "object",
  12456. "properties": {
  12457. "created": {
  12458. "type": "number"
  12459. }
  12460. },
  12461. "required": [
  12462. "created"
  12463. ],
  12464. "additionalProperties": false
  12465. },
  12466. "status": {
  12467. "type": "string",
  12468. "enum": [
  12469. "running"
  12470. ]
  12471. },
  12472. "reason": {
  12473. "type": "string",
  12474. "enum": [
  12475. "auto",
  12476. "manual"
  12477. ]
  12478. },
  12479. "summary": {
  12480. "type": "string"
  12481. },
  12482. "recent": {
  12483. "type": "string"
  12484. }
  12485. },
  12486. "required": [
  12487. "type",
  12488. "id",
  12489. "time",
  12490. "status",
  12491. "reason",
  12492. "summary",
  12493. "recent"
  12494. ],
  12495. "additionalProperties": false
  12496. },
  12497. "Session.Message.Compaction.Completed": {
  12498. "type": "object",
  12499. "properties": {
  12500. "type": {
  12501. "type": "string",
  12502. "enum": [
  12503. "compaction"
  12504. ]
  12505. },
  12506. "id": {
  12507. "type": "string",
  12508. "allOf": [
  12509. {
  12510. "pattern": "^msg_"
  12511. }
  12512. ]
  12513. },
  12514. "metadata": {
  12515. "type": "object"
  12516. },
  12517. "time": {
  12518. "type": "object",
  12519. "properties": {
  12520. "created": {
  12521. "type": "number"
  12522. }
  12523. },
  12524. "required": [
  12525. "created"
  12526. ],
  12527. "additionalProperties": false
  12528. },
  12529. "status": {
  12530. "type": "string",
  12531. "enum": [
  12532. "completed"
  12533. ]
  12534. },
  12535. "reason": {
  12536. "type": "string",
  12537. "enum": [
  12538. "auto",
  12539. "manual"
  12540. ]
  12541. },
  12542. "summary": {
  12543. "type": "string"
  12544. },
  12545. "recent": {
  12546. "type": "string"
  12547. }
  12548. },
  12549. "required": [
  12550. "type",
  12551. "id",
  12552. "time",
  12553. "status",
  12554. "reason",
  12555. "summary",
  12556. "recent"
  12557. ],
  12558. "additionalProperties": false
  12559. },
  12560. "Session.Message.Compaction.Failed": {
  12561. "type": "object",
  12562. "properties": {
  12563. "type": {
  12564. "type": "string",
  12565. "enum": [
  12566. "compaction"
  12567. ]
  12568. },
  12569. "id": {
  12570. "type": "string",
  12571. "allOf": [
  12572. {
  12573. "pattern": "^msg_"
  12574. }
  12575. ]
  12576. },
  12577. "metadata": {
  12578. "type": "object"
  12579. },
  12580. "time": {
  12581. "type": "object",
  12582. "properties": {
  12583. "created": {
  12584. "type": "number"
  12585. }
  12586. },
  12587. "required": [
  12588. "created"
  12589. ],
  12590. "additionalProperties": false
  12591. },
  12592. "status": {
  12593. "type": "string",
  12594. "enum": [
  12595. "failed"
  12596. ]
  12597. },
  12598. "reason": {
  12599. "type": "string",
  12600. "enum": [
  12601. "auto",
  12602. "manual"
  12603. ]
  12604. },
  12605. "error": {
  12606. "$ref": "#/components/schemas/Session.StructuredError"
  12607. }
  12608. },
  12609. "required": [
  12610. "type",
  12611. "id",
  12612. "time",
  12613. "status",
  12614. "reason",
  12615. "error"
  12616. ],
  12617. "additionalProperties": false
  12618. },
  12619. "Session.Message.Compaction": {
  12620. "anyOf": [
  12621. {
  12622. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  12623. },
  12624. {
  12625. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  12626. },
  12627. {
  12628. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  12629. }
  12630. ]
  12631. },
  12632. "Session.Message.Info": {
  12633. "anyOf": [
  12634. {
  12635. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  12636. },
  12637. {
  12638. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  12639. },
  12640. {
  12641. "$ref": "#/components/schemas/Session.Message.User"
  12642. },
  12643. {
  12644. "$ref": "#/components/schemas/Session.Message.Synthetic"
  12645. },
  12646. {
  12647. "$ref": "#/components/schemas/Session.Message.System"
  12648. },
  12649. {
  12650. "$ref": "#/components/schemas/Session.Message.Skill"
  12651. },
  12652. {
  12653. "$ref": "#/components/schemas/Session.Message.Shell"
  12654. },
  12655. {
  12656. "$ref": "#/components/schemas/Session.Message.Assistant"
  12657. },
  12658. {
  12659. "$ref": "#/components/schemas/Session.Message.Compaction"
  12660. }
  12661. ]
  12662. },
  12663. "InstructionEntry.Key": {
  12664. "type": "string",
  12665. "allOf": [
  12666. {
  12667. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  12668. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  12669. }
  12670. ]
  12671. },
  12672. "InstructionEntry.Info": {
  12673. "type": "object",
  12674. "properties": {
  12675. "key": {
  12676. "$ref": "#/components/schemas/InstructionEntry.Key"
  12677. },
  12678. "value": {}
  12679. },
  12680. "required": [
  12681. "key",
  12682. "value"
  12683. ],
  12684. "additionalProperties": false
  12685. },
  12686. "session.agent.selected": {
  12687. "type": "object",
  12688. "properties": {
  12689. "id": {
  12690. "type": "string",
  12691. "allOf": [
  12692. {
  12693. "pattern": "^evt_"
  12694. }
  12695. ]
  12696. },
  12697. "created": {
  12698. "type": "number"
  12699. },
  12700. "metadata": {
  12701. "type": "object"
  12702. },
  12703. "type": {
  12704. "type": "string",
  12705. "enum": [
  12706. "session.agent.selected"
  12707. ]
  12708. },
  12709. "durable": {
  12710. "type": "object",
  12711. "properties": {
  12712. "aggregateID": {
  12713. "type": "string"
  12714. },
  12715. "seq": {
  12716. "type": "integer",
  12717. "allOf": [
  12718. {
  12719. "minimum": 0
  12720. }
  12721. ]
  12722. },
  12723. "version": {
  12724. "type": "number",
  12725. "enum": [
  12726. 1
  12727. ]
  12728. }
  12729. },
  12730. "required": [
  12731. "aggregateID",
  12732. "seq",
  12733. "version"
  12734. ],
  12735. "additionalProperties": false
  12736. },
  12737. "location": {
  12738. "$ref": "#/components/schemas/Location.Ref"
  12739. },
  12740. "data": {
  12741. "type": "object",
  12742. "properties": {
  12743. "sessionID": {
  12744. "type": "string",
  12745. "allOf": [
  12746. {
  12747. "pattern": "^ses"
  12748. }
  12749. ]
  12750. },
  12751. "agent": {
  12752. "type": "string"
  12753. }
  12754. },
  12755. "required": [
  12756. "sessionID",
  12757. "agent"
  12758. ],
  12759. "additionalProperties": false
  12760. }
  12761. },
  12762. "required": [
  12763. "id",
  12764. "created",
  12765. "type",
  12766. "durable",
  12767. "data"
  12768. ],
  12769. "additionalProperties": false
  12770. },
  12771. "session.model.selected": {
  12772. "type": "object",
  12773. "properties": {
  12774. "id": {
  12775. "type": "string",
  12776. "allOf": [
  12777. {
  12778. "pattern": "^evt_"
  12779. }
  12780. ]
  12781. },
  12782. "created": {
  12783. "type": "number"
  12784. },
  12785. "metadata": {
  12786. "type": "object"
  12787. },
  12788. "type": {
  12789. "type": "string",
  12790. "enum": [
  12791. "session.model.selected"
  12792. ]
  12793. },
  12794. "durable": {
  12795. "type": "object",
  12796. "properties": {
  12797. "aggregateID": {
  12798. "type": "string"
  12799. },
  12800. "seq": {
  12801. "type": "integer",
  12802. "allOf": [
  12803. {
  12804. "minimum": 0
  12805. }
  12806. ]
  12807. },
  12808. "version": {
  12809. "type": "number",
  12810. "enum": [
  12811. 1
  12812. ]
  12813. }
  12814. },
  12815. "required": [
  12816. "aggregateID",
  12817. "seq",
  12818. "version"
  12819. ],
  12820. "additionalProperties": false
  12821. },
  12822. "location": {
  12823. "$ref": "#/components/schemas/Location.Ref"
  12824. },
  12825. "data": {
  12826. "type": "object",
  12827. "properties": {
  12828. "sessionID": {
  12829. "type": "string",
  12830. "allOf": [
  12831. {
  12832. "pattern": "^ses"
  12833. }
  12834. ]
  12835. },
  12836. "model": {
  12837. "$ref": "#/components/schemas/Model.Ref"
  12838. }
  12839. },
  12840. "required": [
  12841. "sessionID",
  12842. "model"
  12843. ],
  12844. "additionalProperties": false
  12845. }
  12846. },
  12847. "required": [
  12848. "id",
  12849. "created",
  12850. "type",
  12851. "durable",
  12852. "data"
  12853. ],
  12854. "additionalProperties": false
  12855. },
  12856. "session.moved": {
  12857. "type": "object",
  12858. "properties": {
  12859. "id": {
  12860. "type": "string",
  12861. "allOf": [
  12862. {
  12863. "pattern": "^evt_"
  12864. }
  12865. ]
  12866. },
  12867. "created": {
  12868. "type": "number"
  12869. },
  12870. "metadata": {
  12871. "type": "object"
  12872. },
  12873. "type": {
  12874. "type": "string",
  12875. "enum": [
  12876. "session.moved"
  12877. ]
  12878. },
  12879. "durable": {
  12880. "type": "object",
  12881. "properties": {
  12882. "aggregateID": {
  12883. "type": "string"
  12884. },
  12885. "seq": {
  12886. "type": "integer",
  12887. "allOf": [
  12888. {
  12889. "minimum": 0
  12890. }
  12891. ]
  12892. },
  12893. "version": {
  12894. "type": "number",
  12895. "enum": [
  12896. 1
  12897. ]
  12898. }
  12899. },
  12900. "required": [
  12901. "aggregateID",
  12902. "seq",
  12903. "version"
  12904. ],
  12905. "additionalProperties": false
  12906. },
  12907. "location": {
  12908. "$ref": "#/components/schemas/Location.Ref"
  12909. },
  12910. "data": {
  12911. "type": "object",
  12912. "properties": {
  12913. "sessionID": {
  12914. "type": "string",
  12915. "allOf": [
  12916. {
  12917. "pattern": "^ses"
  12918. }
  12919. ]
  12920. },
  12921. "location": {
  12922. "$ref": "#/components/schemas/Location.Ref"
  12923. },
  12924. "subpath": {
  12925. "type": "string"
  12926. }
  12927. },
  12928. "required": [
  12929. "sessionID",
  12930. "location"
  12931. ],
  12932. "additionalProperties": false
  12933. }
  12934. },
  12935. "required": [
  12936. "id",
  12937. "created",
  12938. "type",
  12939. "durable",
  12940. "data"
  12941. ],
  12942. "additionalProperties": false
  12943. },
  12944. "session.renamed": {
  12945. "type": "object",
  12946. "properties": {
  12947. "id": {
  12948. "type": "string",
  12949. "allOf": [
  12950. {
  12951. "pattern": "^evt_"
  12952. }
  12953. ]
  12954. },
  12955. "created": {
  12956. "type": "number"
  12957. },
  12958. "metadata": {
  12959. "type": "object"
  12960. },
  12961. "type": {
  12962. "type": "string",
  12963. "enum": [
  12964. "session.renamed"
  12965. ]
  12966. },
  12967. "durable": {
  12968. "type": "object",
  12969. "properties": {
  12970. "aggregateID": {
  12971. "type": "string"
  12972. },
  12973. "seq": {
  12974. "type": "integer",
  12975. "allOf": [
  12976. {
  12977. "minimum": 0
  12978. }
  12979. ]
  12980. },
  12981. "version": {
  12982. "type": "number",
  12983. "enum": [
  12984. 1
  12985. ]
  12986. }
  12987. },
  12988. "required": [
  12989. "aggregateID",
  12990. "seq",
  12991. "version"
  12992. ],
  12993. "additionalProperties": false
  12994. },
  12995. "location": {
  12996. "$ref": "#/components/schemas/Location.Ref"
  12997. },
  12998. "data": {
  12999. "type": "object",
  13000. "properties": {
  13001. "sessionID": {
  13002. "type": "string",
  13003. "allOf": [
  13004. {
  13005. "pattern": "^ses"
  13006. }
  13007. ]
  13008. },
  13009. "title": {
  13010. "type": "string"
  13011. }
  13012. },
  13013. "required": [
  13014. "sessionID",
  13015. "title"
  13016. ],
  13017. "additionalProperties": false
  13018. }
  13019. },
  13020. "required": [
  13021. "id",
  13022. "created",
  13023. "type",
  13024. "durable",
  13025. "data"
  13026. ],
  13027. "additionalProperties": false
  13028. },
  13029. "session.deleted": {
  13030. "type": "object",
  13031. "properties": {
  13032. "id": {
  13033. "type": "string",
  13034. "allOf": [
  13035. {
  13036. "pattern": "^evt_"
  13037. }
  13038. ]
  13039. },
  13040. "created": {
  13041. "type": "number"
  13042. },
  13043. "metadata": {
  13044. "type": "object"
  13045. },
  13046. "type": {
  13047. "type": "string",
  13048. "enum": [
  13049. "session.deleted"
  13050. ]
  13051. },
  13052. "durable": {
  13053. "type": "object",
  13054. "properties": {
  13055. "aggregateID": {
  13056. "type": "string"
  13057. },
  13058. "seq": {
  13059. "type": "integer",
  13060. "allOf": [
  13061. {
  13062. "minimum": 0
  13063. }
  13064. ]
  13065. },
  13066. "version": {
  13067. "type": "number",
  13068. "enum": [
  13069. 2
  13070. ]
  13071. }
  13072. },
  13073. "required": [
  13074. "aggregateID",
  13075. "seq",
  13076. "version"
  13077. ],
  13078. "additionalProperties": false
  13079. },
  13080. "location": {
  13081. "$ref": "#/components/schemas/Location.Ref"
  13082. },
  13083. "data": {
  13084. "type": "object",
  13085. "properties": {
  13086. "sessionID": {
  13087. "type": "string",
  13088. "allOf": [
  13089. {
  13090. "pattern": "^ses"
  13091. }
  13092. ]
  13093. }
  13094. },
  13095. "required": [
  13096. "sessionID"
  13097. ],
  13098. "additionalProperties": false
  13099. }
  13100. },
  13101. "required": [
  13102. "id",
  13103. "created",
  13104. "type",
  13105. "durable",
  13106. "data"
  13107. ],
  13108. "additionalProperties": false
  13109. },
  13110. "session.forked": {
  13111. "type": "object",
  13112. "properties": {
  13113. "id": {
  13114. "type": "string",
  13115. "allOf": [
  13116. {
  13117. "pattern": "^evt_"
  13118. }
  13119. ]
  13120. },
  13121. "created": {
  13122. "type": "number"
  13123. },
  13124. "metadata": {
  13125. "type": "object"
  13126. },
  13127. "type": {
  13128. "type": "string",
  13129. "enum": [
  13130. "session.forked"
  13131. ]
  13132. },
  13133. "durable": {
  13134. "type": "object",
  13135. "properties": {
  13136. "aggregateID": {
  13137. "type": "string"
  13138. },
  13139. "seq": {
  13140. "type": "integer",
  13141. "allOf": [
  13142. {
  13143. "minimum": 0
  13144. }
  13145. ]
  13146. },
  13147. "version": {
  13148. "type": "number",
  13149. "enum": [
  13150. 1
  13151. ]
  13152. }
  13153. },
  13154. "required": [
  13155. "aggregateID",
  13156. "seq",
  13157. "version"
  13158. ],
  13159. "additionalProperties": false
  13160. },
  13161. "location": {
  13162. "$ref": "#/components/schemas/Location.Ref"
  13163. },
  13164. "data": {
  13165. "type": "object",
  13166. "properties": {
  13167. "sessionID": {
  13168. "type": "string",
  13169. "allOf": [
  13170. {
  13171. "pattern": "^ses"
  13172. }
  13173. ]
  13174. },
  13175. "parentID": {
  13176. "type": "string",
  13177. "allOf": [
  13178. {
  13179. "pattern": "^ses"
  13180. }
  13181. ]
  13182. },
  13183. "from": {
  13184. "type": "string",
  13185. "allOf": [
  13186. {
  13187. "pattern": "^msg_"
  13188. }
  13189. ]
  13190. }
  13191. },
  13192. "required": [
  13193. "sessionID",
  13194. "parentID"
  13195. ],
  13196. "additionalProperties": false
  13197. }
  13198. },
  13199. "required": [
  13200. "id",
  13201. "created",
  13202. "type",
  13203. "durable",
  13204. "data"
  13205. ],
  13206. "additionalProperties": false
  13207. },
  13208. "session.prompt.promoted": {
  13209. "type": "object",
  13210. "properties": {
  13211. "id": {
  13212. "type": "string",
  13213. "allOf": [
  13214. {
  13215. "pattern": "^evt_"
  13216. }
  13217. ]
  13218. },
  13219. "created": {
  13220. "type": "number"
  13221. },
  13222. "metadata": {
  13223. "type": "object"
  13224. },
  13225. "type": {
  13226. "type": "string",
  13227. "enum": [
  13228. "session.prompt.promoted"
  13229. ]
  13230. },
  13231. "durable": {
  13232. "type": "object",
  13233. "properties": {
  13234. "aggregateID": {
  13235. "type": "string"
  13236. },
  13237. "seq": {
  13238. "type": "integer",
  13239. "allOf": [
  13240. {
  13241. "minimum": 0
  13242. }
  13243. ]
  13244. },
  13245. "version": {
  13246. "type": "number",
  13247. "enum": [
  13248. 1
  13249. ]
  13250. }
  13251. },
  13252. "required": [
  13253. "aggregateID",
  13254. "seq",
  13255. "version"
  13256. ],
  13257. "additionalProperties": false
  13258. },
  13259. "location": {
  13260. "$ref": "#/components/schemas/Location.Ref"
  13261. },
  13262. "data": {
  13263. "type": "object",
  13264. "properties": {
  13265. "sessionID": {
  13266. "type": "string",
  13267. "allOf": [
  13268. {
  13269. "pattern": "^ses"
  13270. }
  13271. ]
  13272. },
  13273. "inputID": {
  13274. "type": "string",
  13275. "allOf": [
  13276. {
  13277. "pattern": "^msg_"
  13278. }
  13279. ]
  13280. }
  13281. },
  13282. "required": [
  13283. "sessionID",
  13284. "inputID"
  13285. ],
  13286. "additionalProperties": false
  13287. }
  13288. },
  13289. "required": [
  13290. "id",
  13291. "created",
  13292. "type",
  13293. "durable",
  13294. "data"
  13295. ],
  13296. "additionalProperties": false
  13297. },
  13298. "session.prompt.admitted": {
  13299. "type": "object",
  13300. "properties": {
  13301. "id": {
  13302. "type": "string",
  13303. "allOf": [
  13304. {
  13305. "pattern": "^evt_"
  13306. }
  13307. ]
  13308. },
  13309. "created": {
  13310. "type": "number"
  13311. },
  13312. "metadata": {
  13313. "type": "object"
  13314. },
  13315. "type": {
  13316. "type": "string",
  13317. "enum": [
  13318. "session.prompt.admitted"
  13319. ]
  13320. },
  13321. "durable": {
  13322. "type": "object",
  13323. "properties": {
  13324. "aggregateID": {
  13325. "type": "string"
  13326. },
  13327. "seq": {
  13328. "type": "integer",
  13329. "allOf": [
  13330. {
  13331. "minimum": 0
  13332. }
  13333. ]
  13334. },
  13335. "version": {
  13336. "type": "number",
  13337. "enum": [
  13338. 1
  13339. ]
  13340. }
  13341. },
  13342. "required": [
  13343. "aggregateID",
  13344. "seq",
  13345. "version"
  13346. ],
  13347. "additionalProperties": false
  13348. },
  13349. "location": {
  13350. "$ref": "#/components/schemas/Location.Ref"
  13351. },
  13352. "data": {
  13353. "type": "object",
  13354. "properties": {
  13355. "sessionID": {
  13356. "type": "string",
  13357. "allOf": [
  13358. {
  13359. "pattern": "^ses"
  13360. }
  13361. ]
  13362. },
  13363. "inputID": {
  13364. "type": "string",
  13365. "allOf": [
  13366. {
  13367. "pattern": "^msg_"
  13368. }
  13369. ]
  13370. },
  13371. "prompt": {
  13372. "$ref": "#/components/schemas/Prompt"
  13373. },
  13374. "delivery": {
  13375. "type": "string",
  13376. "enum": [
  13377. "steer",
  13378. "queue"
  13379. ]
  13380. }
  13381. },
  13382. "required": [
  13383. "sessionID",
  13384. "inputID",
  13385. "prompt",
  13386. "delivery"
  13387. ],
  13388. "additionalProperties": false
  13389. }
  13390. },
  13391. "required": [
  13392. "id",
  13393. "created",
  13394. "type",
  13395. "durable",
  13396. "data"
  13397. ],
  13398. "additionalProperties": false
  13399. },
  13400. "session.execution.started": {
  13401. "type": "object",
  13402. "properties": {
  13403. "id": {
  13404. "type": "string",
  13405. "allOf": [
  13406. {
  13407. "pattern": "^evt_"
  13408. }
  13409. ]
  13410. },
  13411. "created": {
  13412. "type": "number"
  13413. },
  13414. "metadata": {
  13415. "type": "object"
  13416. },
  13417. "type": {
  13418. "type": "string",
  13419. "enum": [
  13420. "session.execution.started"
  13421. ]
  13422. },
  13423. "durable": {
  13424. "type": "object",
  13425. "properties": {
  13426. "aggregateID": {
  13427. "type": "string"
  13428. },
  13429. "seq": {
  13430. "type": "integer",
  13431. "allOf": [
  13432. {
  13433. "minimum": 0
  13434. }
  13435. ]
  13436. },
  13437. "version": {
  13438. "type": "number",
  13439. "enum": [
  13440. 1
  13441. ]
  13442. }
  13443. },
  13444. "required": [
  13445. "aggregateID",
  13446. "seq",
  13447. "version"
  13448. ],
  13449. "additionalProperties": false
  13450. },
  13451. "location": {
  13452. "$ref": "#/components/schemas/Location.Ref"
  13453. },
  13454. "data": {
  13455. "type": "object",
  13456. "properties": {
  13457. "sessionID": {
  13458. "type": "string",
  13459. "allOf": [
  13460. {
  13461. "pattern": "^ses"
  13462. }
  13463. ]
  13464. }
  13465. },
  13466. "required": [
  13467. "sessionID"
  13468. ],
  13469. "additionalProperties": false
  13470. }
  13471. },
  13472. "required": [
  13473. "id",
  13474. "created",
  13475. "type",
  13476. "durable",
  13477. "data"
  13478. ],
  13479. "additionalProperties": false
  13480. },
  13481. "session.execution.succeeded": {
  13482. "type": "object",
  13483. "properties": {
  13484. "id": {
  13485. "type": "string",
  13486. "allOf": [
  13487. {
  13488. "pattern": "^evt_"
  13489. }
  13490. ]
  13491. },
  13492. "created": {
  13493. "type": "number"
  13494. },
  13495. "metadata": {
  13496. "type": "object"
  13497. },
  13498. "type": {
  13499. "type": "string",
  13500. "enum": [
  13501. "session.execution.succeeded"
  13502. ]
  13503. },
  13504. "durable": {
  13505. "type": "object",
  13506. "properties": {
  13507. "aggregateID": {
  13508. "type": "string"
  13509. },
  13510. "seq": {
  13511. "type": "integer",
  13512. "allOf": [
  13513. {
  13514. "minimum": 0
  13515. }
  13516. ]
  13517. },
  13518. "version": {
  13519. "type": "number",
  13520. "enum": [
  13521. 1
  13522. ]
  13523. }
  13524. },
  13525. "required": [
  13526. "aggregateID",
  13527. "seq",
  13528. "version"
  13529. ],
  13530. "additionalProperties": false
  13531. },
  13532. "location": {
  13533. "$ref": "#/components/schemas/Location.Ref"
  13534. },
  13535. "data": {
  13536. "type": "object",
  13537. "properties": {
  13538. "sessionID": {
  13539. "type": "string",
  13540. "allOf": [
  13541. {
  13542. "pattern": "^ses"
  13543. }
  13544. ]
  13545. }
  13546. },
  13547. "required": [
  13548. "sessionID"
  13549. ],
  13550. "additionalProperties": false
  13551. }
  13552. },
  13553. "required": [
  13554. "id",
  13555. "created",
  13556. "type",
  13557. "durable",
  13558. "data"
  13559. ],
  13560. "additionalProperties": false
  13561. },
  13562. "session.execution.failed": {
  13563. "type": "object",
  13564. "properties": {
  13565. "id": {
  13566. "type": "string",
  13567. "allOf": [
  13568. {
  13569. "pattern": "^evt_"
  13570. }
  13571. ]
  13572. },
  13573. "created": {
  13574. "type": "number"
  13575. },
  13576. "metadata": {
  13577. "type": "object"
  13578. },
  13579. "type": {
  13580. "type": "string",
  13581. "enum": [
  13582. "session.execution.failed"
  13583. ]
  13584. },
  13585. "durable": {
  13586. "type": "object",
  13587. "properties": {
  13588. "aggregateID": {
  13589. "type": "string"
  13590. },
  13591. "seq": {
  13592. "type": "integer",
  13593. "allOf": [
  13594. {
  13595. "minimum": 0
  13596. }
  13597. ]
  13598. },
  13599. "version": {
  13600. "type": "number",
  13601. "enum": [
  13602. 1
  13603. ]
  13604. }
  13605. },
  13606. "required": [
  13607. "aggregateID",
  13608. "seq",
  13609. "version"
  13610. ],
  13611. "additionalProperties": false
  13612. },
  13613. "location": {
  13614. "$ref": "#/components/schemas/Location.Ref"
  13615. },
  13616. "data": {
  13617. "type": "object",
  13618. "properties": {
  13619. "sessionID": {
  13620. "type": "string",
  13621. "allOf": [
  13622. {
  13623. "pattern": "^ses"
  13624. }
  13625. ]
  13626. },
  13627. "error": {
  13628. "$ref": "#/components/schemas/Session.StructuredError"
  13629. }
  13630. },
  13631. "required": [
  13632. "sessionID",
  13633. "error"
  13634. ],
  13635. "additionalProperties": false
  13636. }
  13637. },
  13638. "required": [
  13639. "id",
  13640. "created",
  13641. "type",
  13642. "durable",
  13643. "data"
  13644. ],
  13645. "additionalProperties": false
  13646. },
  13647. "session.execution.interrupted": {
  13648. "type": "object",
  13649. "properties": {
  13650. "id": {
  13651. "type": "string",
  13652. "allOf": [
  13653. {
  13654. "pattern": "^evt_"
  13655. }
  13656. ]
  13657. },
  13658. "created": {
  13659. "type": "number"
  13660. },
  13661. "metadata": {
  13662. "type": "object"
  13663. },
  13664. "type": {
  13665. "type": "string",
  13666. "enum": [
  13667. "session.execution.interrupted"
  13668. ]
  13669. },
  13670. "durable": {
  13671. "type": "object",
  13672. "properties": {
  13673. "aggregateID": {
  13674. "type": "string"
  13675. },
  13676. "seq": {
  13677. "type": "integer",
  13678. "allOf": [
  13679. {
  13680. "minimum": 0
  13681. }
  13682. ]
  13683. },
  13684. "version": {
  13685. "type": "number",
  13686. "enum": [
  13687. 1
  13688. ]
  13689. }
  13690. },
  13691. "required": [
  13692. "aggregateID",
  13693. "seq",
  13694. "version"
  13695. ],
  13696. "additionalProperties": false
  13697. },
  13698. "location": {
  13699. "$ref": "#/components/schemas/Location.Ref"
  13700. },
  13701. "data": {
  13702. "type": "object",
  13703. "properties": {
  13704. "sessionID": {
  13705. "type": "string",
  13706. "allOf": [
  13707. {
  13708. "pattern": "^ses"
  13709. }
  13710. ]
  13711. },
  13712. "reason": {
  13713. "type": "string",
  13714. "enum": [
  13715. "user",
  13716. "shutdown",
  13717. "superseded"
  13718. ]
  13719. }
  13720. },
  13721. "required": [
  13722. "sessionID",
  13723. "reason"
  13724. ],
  13725. "additionalProperties": false
  13726. }
  13727. },
  13728. "required": [
  13729. "id",
  13730. "created",
  13731. "type",
  13732. "durable",
  13733. "data"
  13734. ],
  13735. "additionalProperties": false
  13736. },
  13737. "session.instructions.updated": {
  13738. "type": "object",
  13739. "properties": {
  13740. "id": {
  13741. "type": "string",
  13742. "allOf": [
  13743. {
  13744. "pattern": "^evt_"
  13745. }
  13746. ]
  13747. },
  13748. "created": {
  13749. "type": "number"
  13750. },
  13751. "metadata": {
  13752. "type": "object"
  13753. },
  13754. "type": {
  13755. "type": "string",
  13756. "enum": [
  13757. "session.instructions.updated"
  13758. ]
  13759. },
  13760. "durable": {
  13761. "type": "object",
  13762. "properties": {
  13763. "aggregateID": {
  13764. "type": "string"
  13765. },
  13766. "seq": {
  13767. "type": "integer",
  13768. "allOf": [
  13769. {
  13770. "minimum": 0
  13771. }
  13772. ]
  13773. },
  13774. "version": {
  13775. "type": "number",
  13776. "enum": [
  13777. 1
  13778. ]
  13779. }
  13780. },
  13781. "required": [
  13782. "aggregateID",
  13783. "seq",
  13784. "version"
  13785. ],
  13786. "additionalProperties": false
  13787. },
  13788. "location": {
  13789. "$ref": "#/components/schemas/Location.Ref"
  13790. },
  13791. "data": {
  13792. "type": "object",
  13793. "properties": {
  13794. "sessionID": {
  13795. "type": "string",
  13796. "allOf": [
  13797. {
  13798. "pattern": "^ses"
  13799. }
  13800. ]
  13801. },
  13802. "text": {
  13803. "type": "string"
  13804. }
  13805. },
  13806. "required": [
  13807. "sessionID",
  13808. "text"
  13809. ],
  13810. "additionalProperties": false
  13811. }
  13812. },
  13813. "required": [
  13814. "id",
  13815. "created",
  13816. "type",
  13817. "durable",
  13818. "data"
  13819. ],
  13820. "additionalProperties": false
  13821. },
  13822. "session.synthetic": {
  13823. "type": "object",
  13824. "properties": {
  13825. "id": {
  13826. "type": "string",
  13827. "allOf": [
  13828. {
  13829. "pattern": "^evt_"
  13830. }
  13831. ]
  13832. },
  13833. "created": {
  13834. "type": "number"
  13835. },
  13836. "metadata": {
  13837. "type": "object"
  13838. },
  13839. "type": {
  13840. "type": "string",
  13841. "enum": [
  13842. "session.synthetic"
  13843. ]
  13844. },
  13845. "durable": {
  13846. "type": "object",
  13847. "properties": {
  13848. "aggregateID": {
  13849. "type": "string"
  13850. },
  13851. "seq": {
  13852. "type": "integer",
  13853. "allOf": [
  13854. {
  13855. "minimum": 0
  13856. }
  13857. ]
  13858. },
  13859. "version": {
  13860. "type": "number",
  13861. "enum": [
  13862. 1
  13863. ]
  13864. }
  13865. },
  13866. "required": [
  13867. "aggregateID",
  13868. "seq",
  13869. "version"
  13870. ],
  13871. "additionalProperties": false
  13872. },
  13873. "location": {
  13874. "$ref": "#/components/schemas/Location.Ref"
  13875. },
  13876. "data": {
  13877. "type": "object",
  13878. "properties": {
  13879. "sessionID": {
  13880. "type": "string",
  13881. "allOf": [
  13882. {
  13883. "pattern": "^ses"
  13884. }
  13885. ]
  13886. },
  13887. "text": {
  13888. "type": "string"
  13889. },
  13890. "description": {
  13891. "type": "string"
  13892. },
  13893. "metadata": {
  13894. "type": "object"
  13895. }
  13896. },
  13897. "required": [
  13898. "sessionID",
  13899. "text"
  13900. ],
  13901. "additionalProperties": false
  13902. }
  13903. },
  13904. "required": [
  13905. "id",
  13906. "created",
  13907. "type",
  13908. "durable",
  13909. "data"
  13910. ],
  13911. "additionalProperties": false
  13912. },
  13913. "session.skill.activated": {
  13914. "type": "object",
  13915. "properties": {
  13916. "id": {
  13917. "type": "string",
  13918. "allOf": [
  13919. {
  13920. "pattern": "^evt_"
  13921. }
  13922. ]
  13923. },
  13924. "created": {
  13925. "type": "number"
  13926. },
  13927. "metadata": {
  13928. "type": "object"
  13929. },
  13930. "type": {
  13931. "type": "string",
  13932. "enum": [
  13933. "session.skill.activated"
  13934. ]
  13935. },
  13936. "durable": {
  13937. "type": "object",
  13938. "properties": {
  13939. "aggregateID": {
  13940. "type": "string"
  13941. },
  13942. "seq": {
  13943. "type": "integer",
  13944. "allOf": [
  13945. {
  13946. "minimum": 0
  13947. }
  13948. ]
  13949. },
  13950. "version": {
  13951. "type": "number",
  13952. "enum": [
  13953. 1
  13954. ]
  13955. }
  13956. },
  13957. "required": [
  13958. "aggregateID",
  13959. "seq",
  13960. "version"
  13961. ],
  13962. "additionalProperties": false
  13963. },
  13964. "location": {
  13965. "$ref": "#/components/schemas/Location.Ref"
  13966. },
  13967. "data": {
  13968. "type": "object",
  13969. "properties": {
  13970. "sessionID": {
  13971. "type": "string",
  13972. "allOf": [
  13973. {
  13974. "pattern": "^ses"
  13975. }
  13976. ]
  13977. },
  13978. "id": {
  13979. "type": "string"
  13980. },
  13981. "name": {
  13982. "type": "string"
  13983. },
  13984. "text": {
  13985. "type": "string"
  13986. }
  13987. },
  13988. "required": [
  13989. "sessionID",
  13990. "id",
  13991. "name",
  13992. "text"
  13993. ],
  13994. "additionalProperties": false
  13995. }
  13996. },
  13997. "required": [
  13998. "id",
  13999. "created",
  14000. "type",
  14001. "durable",
  14002. "data"
  14003. ],
  14004. "additionalProperties": false
  14005. },
  14006. "Shell": {
  14007. "type": "object",
  14008. "properties": {
  14009. "id": {
  14010. "type": "string",
  14011. "allOf": [
  14012. {
  14013. "pattern": "^sh_"
  14014. }
  14015. ]
  14016. },
  14017. "status": {
  14018. "type": "string",
  14019. "enum": [
  14020. "running",
  14021. "exited",
  14022. "timeout",
  14023. "killed"
  14024. ]
  14025. },
  14026. "command": {
  14027. "type": "string"
  14028. },
  14029. "cwd": {
  14030. "type": "string"
  14031. },
  14032. "shell": {
  14033. "type": "string"
  14034. },
  14035. "file": {
  14036. "type": "string"
  14037. },
  14038. "pid": {
  14039. "type": "integer",
  14040. "allOf": [
  14041. {
  14042. "minimum": 0
  14043. }
  14044. ]
  14045. },
  14046. "exit": {
  14047. "anyOf": [
  14048. {
  14049. "type": "number"
  14050. },
  14051. {
  14052. "type": "string",
  14053. "enum": [
  14054. "NaN"
  14055. ]
  14056. },
  14057. {
  14058. "type": "string",
  14059. "enum": [
  14060. "Infinity"
  14061. ]
  14062. },
  14063. {
  14064. "type": "string",
  14065. "enum": [
  14066. "-Infinity"
  14067. ]
  14068. }
  14069. ]
  14070. },
  14071. "metadata": {
  14072. "type": "object"
  14073. },
  14074. "time": {
  14075. "type": "object",
  14076. "properties": {
  14077. "started": {
  14078. "anyOf": [
  14079. {
  14080. "type": "number"
  14081. },
  14082. {
  14083. "type": "string",
  14084. "enum": [
  14085. "NaN"
  14086. ]
  14087. },
  14088. {
  14089. "type": "string",
  14090. "enum": [
  14091. "Infinity"
  14092. ]
  14093. },
  14094. {
  14095. "type": "string",
  14096. "enum": [
  14097. "-Infinity"
  14098. ]
  14099. }
  14100. ]
  14101. },
  14102. "completed": {
  14103. "anyOf": [
  14104. {
  14105. "type": "number"
  14106. },
  14107. {
  14108. "type": "string",
  14109. "enum": [
  14110. "NaN"
  14111. ]
  14112. },
  14113. {
  14114. "type": "string",
  14115. "enum": [
  14116. "Infinity"
  14117. ]
  14118. },
  14119. {
  14120. "type": "string",
  14121. "enum": [
  14122. "-Infinity"
  14123. ]
  14124. }
  14125. ]
  14126. }
  14127. },
  14128. "required": [
  14129. "started"
  14130. ],
  14131. "additionalProperties": false
  14132. }
  14133. },
  14134. "required": [
  14135. "id",
  14136. "status",
  14137. "command",
  14138. "cwd",
  14139. "shell",
  14140. "file",
  14141. "metadata",
  14142. "time"
  14143. ],
  14144. "additionalProperties": false
  14145. },
  14146. "session.shell.started": {
  14147. "type": "object",
  14148. "properties": {
  14149. "id": {
  14150. "type": "string",
  14151. "allOf": [
  14152. {
  14153. "pattern": "^evt_"
  14154. }
  14155. ]
  14156. },
  14157. "created": {
  14158. "type": "number"
  14159. },
  14160. "metadata": {
  14161. "type": "object"
  14162. },
  14163. "type": {
  14164. "type": "string",
  14165. "enum": [
  14166. "session.shell.started"
  14167. ]
  14168. },
  14169. "durable": {
  14170. "type": "object",
  14171. "properties": {
  14172. "aggregateID": {
  14173. "type": "string"
  14174. },
  14175. "seq": {
  14176. "type": "integer",
  14177. "allOf": [
  14178. {
  14179. "minimum": 0
  14180. }
  14181. ]
  14182. },
  14183. "version": {
  14184. "type": "number",
  14185. "enum": [
  14186. 1
  14187. ]
  14188. }
  14189. },
  14190. "required": [
  14191. "aggregateID",
  14192. "seq",
  14193. "version"
  14194. ],
  14195. "additionalProperties": false
  14196. },
  14197. "location": {
  14198. "$ref": "#/components/schemas/Location.Ref"
  14199. },
  14200. "data": {
  14201. "type": "object",
  14202. "properties": {
  14203. "sessionID": {
  14204. "type": "string",
  14205. "allOf": [
  14206. {
  14207. "pattern": "^ses"
  14208. }
  14209. ]
  14210. },
  14211. "shell": {
  14212. "$ref": "#/components/schemas/Shell"
  14213. }
  14214. },
  14215. "required": [
  14216. "sessionID",
  14217. "shell"
  14218. ],
  14219. "additionalProperties": false
  14220. }
  14221. },
  14222. "required": [
  14223. "id",
  14224. "created",
  14225. "type",
  14226. "durable",
  14227. "data"
  14228. ],
  14229. "additionalProperties": false
  14230. },
  14231. "session.shell.ended": {
  14232. "type": "object",
  14233. "properties": {
  14234. "id": {
  14235. "type": "string",
  14236. "allOf": [
  14237. {
  14238. "pattern": "^evt_"
  14239. }
  14240. ]
  14241. },
  14242. "created": {
  14243. "type": "number"
  14244. },
  14245. "metadata": {
  14246. "type": "object"
  14247. },
  14248. "type": {
  14249. "type": "string",
  14250. "enum": [
  14251. "session.shell.ended"
  14252. ]
  14253. },
  14254. "durable": {
  14255. "type": "object",
  14256. "properties": {
  14257. "aggregateID": {
  14258. "type": "string"
  14259. },
  14260. "seq": {
  14261. "type": "integer",
  14262. "allOf": [
  14263. {
  14264. "minimum": 0
  14265. }
  14266. ]
  14267. },
  14268. "version": {
  14269. "type": "number",
  14270. "enum": [
  14271. 1
  14272. ]
  14273. }
  14274. },
  14275. "required": [
  14276. "aggregateID",
  14277. "seq",
  14278. "version"
  14279. ],
  14280. "additionalProperties": false
  14281. },
  14282. "location": {
  14283. "$ref": "#/components/schemas/Location.Ref"
  14284. },
  14285. "data": {
  14286. "type": "object",
  14287. "properties": {
  14288. "sessionID": {
  14289. "type": "string",
  14290. "allOf": [
  14291. {
  14292. "pattern": "^ses"
  14293. }
  14294. ]
  14295. },
  14296. "shell": {
  14297. "$ref": "#/components/schemas/Shell"
  14298. },
  14299. "output": {
  14300. "type": "object",
  14301. "properties": {
  14302. "output": {
  14303. "type": "string"
  14304. },
  14305. "cursor": {
  14306. "type": "integer",
  14307. "allOf": [
  14308. {
  14309. "minimum": 0
  14310. }
  14311. ]
  14312. },
  14313. "size": {
  14314. "type": "integer",
  14315. "allOf": [
  14316. {
  14317. "minimum": 0
  14318. }
  14319. ]
  14320. },
  14321. "truncated": {
  14322. "type": "boolean"
  14323. }
  14324. },
  14325. "required": [
  14326. "output",
  14327. "cursor",
  14328. "size",
  14329. "truncated"
  14330. ],
  14331. "additionalProperties": false
  14332. }
  14333. },
  14334. "required": [
  14335. "sessionID",
  14336. "shell",
  14337. "output"
  14338. ],
  14339. "additionalProperties": false
  14340. }
  14341. },
  14342. "required": [
  14343. "id",
  14344. "created",
  14345. "type",
  14346. "durable",
  14347. "data"
  14348. ],
  14349. "additionalProperties": false
  14350. },
  14351. "session.step.started": {
  14352. "type": "object",
  14353. "properties": {
  14354. "id": {
  14355. "type": "string",
  14356. "allOf": [
  14357. {
  14358. "pattern": "^evt_"
  14359. }
  14360. ]
  14361. },
  14362. "created": {
  14363. "type": "number"
  14364. },
  14365. "metadata": {
  14366. "type": "object"
  14367. },
  14368. "type": {
  14369. "type": "string",
  14370. "enum": [
  14371. "session.step.started"
  14372. ]
  14373. },
  14374. "durable": {
  14375. "type": "object",
  14376. "properties": {
  14377. "aggregateID": {
  14378. "type": "string"
  14379. },
  14380. "seq": {
  14381. "type": "integer",
  14382. "allOf": [
  14383. {
  14384. "minimum": 0
  14385. }
  14386. ]
  14387. },
  14388. "version": {
  14389. "type": "number",
  14390. "enum": [
  14391. 1
  14392. ]
  14393. }
  14394. },
  14395. "required": [
  14396. "aggregateID",
  14397. "seq",
  14398. "version"
  14399. ],
  14400. "additionalProperties": false
  14401. },
  14402. "location": {
  14403. "$ref": "#/components/schemas/Location.Ref"
  14404. },
  14405. "data": {
  14406. "type": "object",
  14407. "properties": {
  14408. "sessionID": {
  14409. "type": "string",
  14410. "allOf": [
  14411. {
  14412. "pattern": "^ses"
  14413. }
  14414. ]
  14415. },
  14416. "assistantMessageID": {
  14417. "type": "string",
  14418. "allOf": [
  14419. {
  14420. "pattern": "^msg_"
  14421. }
  14422. ]
  14423. },
  14424. "agent": {
  14425. "type": "string"
  14426. },
  14427. "model": {
  14428. "$ref": "#/components/schemas/Model.Ref"
  14429. },
  14430. "snapshot": {
  14431. "type": "string"
  14432. }
  14433. },
  14434. "required": [
  14435. "sessionID",
  14436. "assistantMessageID",
  14437. "agent",
  14438. "model"
  14439. ],
  14440. "additionalProperties": false
  14441. }
  14442. },
  14443. "required": [
  14444. "id",
  14445. "created",
  14446. "type",
  14447. "durable",
  14448. "data"
  14449. ],
  14450. "additionalProperties": false
  14451. },
  14452. "session.step.ended": {
  14453. "type": "object",
  14454. "properties": {
  14455. "id": {
  14456. "type": "string",
  14457. "allOf": [
  14458. {
  14459. "pattern": "^evt_"
  14460. }
  14461. ]
  14462. },
  14463. "created": {
  14464. "type": "number"
  14465. },
  14466. "metadata": {
  14467. "type": "object"
  14468. },
  14469. "type": {
  14470. "type": "string",
  14471. "enum": [
  14472. "session.step.ended"
  14473. ]
  14474. },
  14475. "durable": {
  14476. "type": "object",
  14477. "properties": {
  14478. "aggregateID": {
  14479. "type": "string"
  14480. },
  14481. "seq": {
  14482. "type": "integer",
  14483. "allOf": [
  14484. {
  14485. "minimum": 0
  14486. }
  14487. ]
  14488. },
  14489. "version": {
  14490. "type": "number",
  14491. "enum": [
  14492. 1
  14493. ]
  14494. }
  14495. },
  14496. "required": [
  14497. "aggregateID",
  14498. "seq",
  14499. "version"
  14500. ],
  14501. "additionalProperties": false
  14502. },
  14503. "location": {
  14504. "$ref": "#/components/schemas/Location.Ref"
  14505. },
  14506. "data": {
  14507. "type": "object",
  14508. "properties": {
  14509. "sessionID": {
  14510. "type": "string",
  14511. "allOf": [
  14512. {
  14513. "pattern": "^ses"
  14514. }
  14515. ]
  14516. },
  14517. "assistantMessageID": {
  14518. "type": "string",
  14519. "allOf": [
  14520. {
  14521. "pattern": "^msg_"
  14522. }
  14523. ]
  14524. },
  14525. "finish": {
  14526. "type": "string",
  14527. "enum": [
  14528. "stop",
  14529. "length",
  14530. "tool-calls",
  14531. "content-filter",
  14532. "error",
  14533. "unknown"
  14534. ]
  14535. },
  14536. "cost": {
  14537. "$ref": "#/components/schemas/Money.USD"
  14538. },
  14539. "tokens": {
  14540. "$ref": "#/components/schemas/TokenUsage.Info"
  14541. },
  14542. "snapshot": {
  14543. "type": "string"
  14544. },
  14545. "files": {
  14546. "type": "array",
  14547. "items": {
  14548. "type": "string"
  14549. }
  14550. }
  14551. },
  14552. "required": [
  14553. "sessionID",
  14554. "assistantMessageID",
  14555. "finish",
  14556. "cost",
  14557. "tokens"
  14558. ],
  14559. "additionalProperties": false
  14560. }
  14561. },
  14562. "required": [
  14563. "id",
  14564. "created",
  14565. "type",
  14566. "durable",
  14567. "data"
  14568. ],
  14569. "additionalProperties": false
  14570. },
  14571. "session.step.failed": {
  14572. "type": "object",
  14573. "properties": {
  14574. "id": {
  14575. "type": "string",
  14576. "allOf": [
  14577. {
  14578. "pattern": "^evt_"
  14579. }
  14580. ]
  14581. },
  14582. "created": {
  14583. "type": "number"
  14584. },
  14585. "metadata": {
  14586. "type": "object"
  14587. },
  14588. "type": {
  14589. "type": "string",
  14590. "enum": [
  14591. "session.step.failed"
  14592. ]
  14593. },
  14594. "durable": {
  14595. "type": "object",
  14596. "properties": {
  14597. "aggregateID": {
  14598. "type": "string"
  14599. },
  14600. "seq": {
  14601. "type": "integer",
  14602. "allOf": [
  14603. {
  14604. "minimum": 0
  14605. }
  14606. ]
  14607. },
  14608. "version": {
  14609. "type": "number",
  14610. "enum": [
  14611. 1
  14612. ]
  14613. }
  14614. },
  14615. "required": [
  14616. "aggregateID",
  14617. "seq",
  14618. "version"
  14619. ],
  14620. "additionalProperties": false
  14621. },
  14622. "location": {
  14623. "$ref": "#/components/schemas/Location.Ref"
  14624. },
  14625. "data": {
  14626. "type": "object",
  14627. "properties": {
  14628. "sessionID": {
  14629. "type": "string",
  14630. "allOf": [
  14631. {
  14632. "pattern": "^ses"
  14633. }
  14634. ]
  14635. },
  14636. "assistantMessageID": {
  14637. "type": "string",
  14638. "allOf": [
  14639. {
  14640. "pattern": "^msg_"
  14641. }
  14642. ]
  14643. },
  14644. "error": {
  14645. "$ref": "#/components/schemas/Session.StructuredError"
  14646. },
  14647. "cost": {
  14648. "$ref": "#/components/schemas/Money.USD"
  14649. },
  14650. "tokens": {
  14651. "$ref": "#/components/schemas/TokenUsage.Info"
  14652. }
  14653. },
  14654. "required": [
  14655. "sessionID",
  14656. "assistantMessageID",
  14657. "error"
  14658. ],
  14659. "additionalProperties": false
  14660. }
  14661. },
  14662. "required": [
  14663. "id",
  14664. "created",
  14665. "type",
  14666. "durable",
  14667. "data"
  14668. ],
  14669. "additionalProperties": false
  14670. },
  14671. "session.text.started": {
  14672. "type": "object",
  14673. "properties": {
  14674. "id": {
  14675. "type": "string",
  14676. "allOf": [
  14677. {
  14678. "pattern": "^evt_"
  14679. }
  14680. ]
  14681. },
  14682. "created": {
  14683. "type": "number"
  14684. },
  14685. "metadata": {
  14686. "type": "object"
  14687. },
  14688. "type": {
  14689. "type": "string",
  14690. "enum": [
  14691. "session.text.started"
  14692. ]
  14693. },
  14694. "durable": {
  14695. "type": "object",
  14696. "properties": {
  14697. "aggregateID": {
  14698. "type": "string"
  14699. },
  14700. "seq": {
  14701. "type": "integer",
  14702. "allOf": [
  14703. {
  14704. "minimum": 0
  14705. }
  14706. ]
  14707. },
  14708. "version": {
  14709. "type": "number",
  14710. "enum": [
  14711. 1
  14712. ]
  14713. }
  14714. },
  14715. "required": [
  14716. "aggregateID",
  14717. "seq",
  14718. "version"
  14719. ],
  14720. "additionalProperties": false
  14721. },
  14722. "location": {
  14723. "$ref": "#/components/schemas/Location.Ref"
  14724. },
  14725. "data": {
  14726. "type": "object",
  14727. "properties": {
  14728. "sessionID": {
  14729. "type": "string",
  14730. "allOf": [
  14731. {
  14732. "pattern": "^ses"
  14733. }
  14734. ]
  14735. },
  14736. "assistantMessageID": {
  14737. "type": "string",
  14738. "allOf": [
  14739. {
  14740. "pattern": "^msg_"
  14741. }
  14742. ]
  14743. },
  14744. "ordinal": {
  14745. "type": "integer",
  14746. "allOf": [
  14747. {
  14748. "minimum": 0
  14749. }
  14750. ]
  14751. }
  14752. },
  14753. "required": [
  14754. "sessionID",
  14755. "assistantMessageID",
  14756. "ordinal"
  14757. ],
  14758. "additionalProperties": false
  14759. }
  14760. },
  14761. "required": [
  14762. "id",
  14763. "created",
  14764. "type",
  14765. "durable",
  14766. "data"
  14767. ],
  14768. "additionalProperties": false
  14769. },
  14770. "session.text.ended": {
  14771. "type": "object",
  14772. "properties": {
  14773. "id": {
  14774. "type": "string",
  14775. "allOf": [
  14776. {
  14777. "pattern": "^evt_"
  14778. }
  14779. ]
  14780. },
  14781. "created": {
  14782. "type": "number"
  14783. },
  14784. "metadata": {
  14785. "type": "object"
  14786. },
  14787. "type": {
  14788. "type": "string",
  14789. "enum": [
  14790. "session.text.ended"
  14791. ]
  14792. },
  14793. "durable": {
  14794. "type": "object",
  14795. "properties": {
  14796. "aggregateID": {
  14797. "type": "string"
  14798. },
  14799. "seq": {
  14800. "type": "integer",
  14801. "allOf": [
  14802. {
  14803. "minimum": 0
  14804. }
  14805. ]
  14806. },
  14807. "version": {
  14808. "type": "number",
  14809. "enum": [
  14810. 1
  14811. ]
  14812. }
  14813. },
  14814. "required": [
  14815. "aggregateID",
  14816. "seq",
  14817. "version"
  14818. ],
  14819. "additionalProperties": false
  14820. },
  14821. "location": {
  14822. "$ref": "#/components/schemas/Location.Ref"
  14823. },
  14824. "data": {
  14825. "type": "object",
  14826. "properties": {
  14827. "sessionID": {
  14828. "type": "string",
  14829. "allOf": [
  14830. {
  14831. "pattern": "^ses"
  14832. }
  14833. ]
  14834. },
  14835. "assistantMessageID": {
  14836. "type": "string",
  14837. "allOf": [
  14838. {
  14839. "pattern": "^msg_"
  14840. }
  14841. ]
  14842. },
  14843. "ordinal": {
  14844. "type": "integer",
  14845. "allOf": [
  14846. {
  14847. "minimum": 0
  14848. }
  14849. ]
  14850. },
  14851. "text": {
  14852. "type": "string"
  14853. }
  14854. },
  14855. "required": [
  14856. "sessionID",
  14857. "assistantMessageID",
  14858. "ordinal",
  14859. "text"
  14860. ],
  14861. "additionalProperties": false
  14862. }
  14863. },
  14864. "required": [
  14865. "id",
  14866. "created",
  14867. "type",
  14868. "durable",
  14869. "data"
  14870. ],
  14871. "additionalProperties": false
  14872. },
  14873. "Session.Message.ProviderState3": {
  14874. "type": "object"
  14875. },
  14876. "session.reasoning.started": {
  14877. "type": "object",
  14878. "properties": {
  14879. "id": {
  14880. "type": "string",
  14881. "allOf": [
  14882. {
  14883. "pattern": "^evt_"
  14884. }
  14885. ]
  14886. },
  14887. "created": {
  14888. "type": "number"
  14889. },
  14890. "metadata": {
  14891. "type": "object"
  14892. },
  14893. "type": {
  14894. "type": "string",
  14895. "enum": [
  14896. "session.reasoning.started"
  14897. ]
  14898. },
  14899. "durable": {
  14900. "type": "object",
  14901. "properties": {
  14902. "aggregateID": {
  14903. "type": "string"
  14904. },
  14905. "seq": {
  14906. "type": "integer",
  14907. "allOf": [
  14908. {
  14909. "minimum": 0
  14910. }
  14911. ]
  14912. },
  14913. "version": {
  14914. "type": "number",
  14915. "enum": [
  14916. 1
  14917. ]
  14918. }
  14919. },
  14920. "required": [
  14921. "aggregateID",
  14922. "seq",
  14923. "version"
  14924. ],
  14925. "additionalProperties": false
  14926. },
  14927. "location": {
  14928. "$ref": "#/components/schemas/Location.Ref"
  14929. },
  14930. "data": {
  14931. "type": "object",
  14932. "properties": {
  14933. "sessionID": {
  14934. "type": "string",
  14935. "allOf": [
  14936. {
  14937. "pattern": "^ses"
  14938. }
  14939. ]
  14940. },
  14941. "assistantMessageID": {
  14942. "type": "string",
  14943. "allOf": [
  14944. {
  14945. "pattern": "^msg_"
  14946. }
  14947. ]
  14948. },
  14949. "ordinal": {
  14950. "type": "integer",
  14951. "allOf": [
  14952. {
  14953. "minimum": 0
  14954. }
  14955. ]
  14956. },
  14957. "state": {
  14958. "$ref": "#/components/schemas/Session.Message.ProviderState3"
  14959. }
  14960. },
  14961. "required": [
  14962. "sessionID",
  14963. "assistantMessageID",
  14964. "ordinal"
  14965. ],
  14966. "additionalProperties": false
  14967. }
  14968. },
  14969. "required": [
  14970. "id",
  14971. "created",
  14972. "type",
  14973. "durable",
  14974. "data"
  14975. ],
  14976. "additionalProperties": false
  14977. },
  14978. "Session.Message.ProviderState4": {
  14979. "type": "object"
  14980. },
  14981. "session.reasoning.ended": {
  14982. "type": "object",
  14983. "properties": {
  14984. "id": {
  14985. "type": "string",
  14986. "allOf": [
  14987. {
  14988. "pattern": "^evt_"
  14989. }
  14990. ]
  14991. },
  14992. "created": {
  14993. "type": "number"
  14994. },
  14995. "metadata": {
  14996. "type": "object"
  14997. },
  14998. "type": {
  14999. "type": "string",
  15000. "enum": [
  15001. "session.reasoning.ended"
  15002. ]
  15003. },
  15004. "durable": {
  15005. "type": "object",
  15006. "properties": {
  15007. "aggregateID": {
  15008. "type": "string"
  15009. },
  15010. "seq": {
  15011. "type": "integer",
  15012. "allOf": [
  15013. {
  15014. "minimum": 0
  15015. }
  15016. ]
  15017. },
  15018. "version": {
  15019. "type": "number",
  15020. "enum": [
  15021. 1
  15022. ]
  15023. }
  15024. },
  15025. "required": [
  15026. "aggregateID",
  15027. "seq",
  15028. "version"
  15029. ],
  15030. "additionalProperties": false
  15031. },
  15032. "location": {
  15033. "$ref": "#/components/schemas/Location.Ref"
  15034. },
  15035. "data": {
  15036. "type": "object",
  15037. "properties": {
  15038. "sessionID": {
  15039. "type": "string",
  15040. "allOf": [
  15041. {
  15042. "pattern": "^ses"
  15043. }
  15044. ]
  15045. },
  15046. "assistantMessageID": {
  15047. "type": "string",
  15048. "allOf": [
  15049. {
  15050. "pattern": "^msg_"
  15051. }
  15052. ]
  15053. },
  15054. "ordinal": {
  15055. "type": "integer",
  15056. "allOf": [
  15057. {
  15058. "minimum": 0
  15059. }
  15060. ]
  15061. },
  15062. "text": {
  15063. "type": "string"
  15064. },
  15065. "state": {
  15066. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  15067. }
  15068. },
  15069. "required": [
  15070. "sessionID",
  15071. "assistantMessageID",
  15072. "ordinal",
  15073. "text"
  15074. ],
  15075. "additionalProperties": false
  15076. }
  15077. },
  15078. "required": [
  15079. "id",
  15080. "created",
  15081. "type",
  15082. "durable",
  15083. "data"
  15084. ],
  15085. "additionalProperties": false
  15086. },
  15087. "session.tool.input.started": {
  15088. "type": "object",
  15089. "properties": {
  15090. "id": {
  15091. "type": "string",
  15092. "allOf": [
  15093. {
  15094. "pattern": "^evt_"
  15095. }
  15096. ]
  15097. },
  15098. "created": {
  15099. "type": "number"
  15100. },
  15101. "metadata": {
  15102. "type": "object"
  15103. },
  15104. "type": {
  15105. "type": "string",
  15106. "enum": [
  15107. "session.tool.input.started"
  15108. ]
  15109. },
  15110. "durable": {
  15111. "type": "object",
  15112. "properties": {
  15113. "aggregateID": {
  15114. "type": "string"
  15115. },
  15116. "seq": {
  15117. "type": "integer",
  15118. "allOf": [
  15119. {
  15120. "minimum": 0
  15121. }
  15122. ]
  15123. },
  15124. "version": {
  15125. "type": "number",
  15126. "enum": [
  15127. 1
  15128. ]
  15129. }
  15130. },
  15131. "required": [
  15132. "aggregateID",
  15133. "seq",
  15134. "version"
  15135. ],
  15136. "additionalProperties": false
  15137. },
  15138. "location": {
  15139. "$ref": "#/components/schemas/Location.Ref"
  15140. },
  15141. "data": {
  15142. "type": "object",
  15143. "properties": {
  15144. "sessionID": {
  15145. "type": "string",
  15146. "allOf": [
  15147. {
  15148. "pattern": "^ses"
  15149. }
  15150. ]
  15151. },
  15152. "assistantMessageID": {
  15153. "type": "string",
  15154. "allOf": [
  15155. {
  15156. "pattern": "^msg_"
  15157. }
  15158. ]
  15159. },
  15160. "callID": {
  15161. "type": "string"
  15162. },
  15163. "name": {
  15164. "type": "string"
  15165. }
  15166. },
  15167. "required": [
  15168. "sessionID",
  15169. "assistantMessageID",
  15170. "callID",
  15171. "name"
  15172. ],
  15173. "additionalProperties": false
  15174. }
  15175. },
  15176. "required": [
  15177. "id",
  15178. "created",
  15179. "type",
  15180. "durable",
  15181. "data"
  15182. ],
  15183. "additionalProperties": false
  15184. },
  15185. "session.tool.input.ended": {
  15186. "type": "object",
  15187. "properties": {
  15188. "id": {
  15189. "type": "string",
  15190. "allOf": [
  15191. {
  15192. "pattern": "^evt_"
  15193. }
  15194. ]
  15195. },
  15196. "created": {
  15197. "type": "number"
  15198. },
  15199. "metadata": {
  15200. "type": "object"
  15201. },
  15202. "type": {
  15203. "type": "string",
  15204. "enum": [
  15205. "session.tool.input.ended"
  15206. ]
  15207. },
  15208. "durable": {
  15209. "type": "object",
  15210. "properties": {
  15211. "aggregateID": {
  15212. "type": "string"
  15213. },
  15214. "seq": {
  15215. "type": "integer",
  15216. "allOf": [
  15217. {
  15218. "minimum": 0
  15219. }
  15220. ]
  15221. },
  15222. "version": {
  15223. "type": "number",
  15224. "enum": [
  15225. 1
  15226. ]
  15227. }
  15228. },
  15229. "required": [
  15230. "aggregateID",
  15231. "seq",
  15232. "version"
  15233. ],
  15234. "additionalProperties": false
  15235. },
  15236. "location": {
  15237. "$ref": "#/components/schemas/Location.Ref"
  15238. },
  15239. "data": {
  15240. "type": "object",
  15241. "properties": {
  15242. "sessionID": {
  15243. "type": "string",
  15244. "allOf": [
  15245. {
  15246. "pattern": "^ses"
  15247. }
  15248. ]
  15249. },
  15250. "assistantMessageID": {
  15251. "type": "string",
  15252. "allOf": [
  15253. {
  15254. "pattern": "^msg_"
  15255. }
  15256. ]
  15257. },
  15258. "callID": {
  15259. "type": "string"
  15260. },
  15261. "text": {
  15262. "type": "string"
  15263. }
  15264. },
  15265. "required": [
  15266. "sessionID",
  15267. "assistantMessageID",
  15268. "callID",
  15269. "text"
  15270. ],
  15271. "additionalProperties": false
  15272. }
  15273. },
  15274. "required": [
  15275. "id",
  15276. "created",
  15277. "type",
  15278. "durable",
  15279. "data"
  15280. ],
  15281. "additionalProperties": false
  15282. },
  15283. "Session.Message.ProviderState5": {
  15284. "type": "object"
  15285. },
  15286. "session.tool.called": {
  15287. "type": "object",
  15288. "properties": {
  15289. "id": {
  15290. "type": "string",
  15291. "allOf": [
  15292. {
  15293. "pattern": "^evt_"
  15294. }
  15295. ]
  15296. },
  15297. "created": {
  15298. "type": "number"
  15299. },
  15300. "metadata": {
  15301. "type": "object"
  15302. },
  15303. "type": {
  15304. "type": "string",
  15305. "enum": [
  15306. "session.tool.called"
  15307. ]
  15308. },
  15309. "durable": {
  15310. "type": "object",
  15311. "properties": {
  15312. "aggregateID": {
  15313. "type": "string"
  15314. },
  15315. "seq": {
  15316. "type": "integer",
  15317. "allOf": [
  15318. {
  15319. "minimum": 0
  15320. }
  15321. ]
  15322. },
  15323. "version": {
  15324. "type": "number",
  15325. "enum": [
  15326. 1
  15327. ]
  15328. }
  15329. },
  15330. "required": [
  15331. "aggregateID",
  15332. "seq",
  15333. "version"
  15334. ],
  15335. "additionalProperties": false
  15336. },
  15337. "location": {
  15338. "$ref": "#/components/schemas/Location.Ref"
  15339. },
  15340. "data": {
  15341. "type": "object",
  15342. "properties": {
  15343. "sessionID": {
  15344. "type": "string",
  15345. "allOf": [
  15346. {
  15347. "pattern": "^ses"
  15348. }
  15349. ]
  15350. },
  15351. "assistantMessageID": {
  15352. "type": "string",
  15353. "allOf": [
  15354. {
  15355. "pattern": "^msg_"
  15356. }
  15357. ]
  15358. },
  15359. "callID": {
  15360. "type": "string"
  15361. },
  15362. "input": {
  15363. "type": "object"
  15364. },
  15365. "executed": {
  15366. "type": "boolean"
  15367. },
  15368. "state": {
  15369. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  15370. }
  15371. },
  15372. "required": [
  15373. "sessionID",
  15374. "assistantMessageID",
  15375. "callID",
  15376. "input",
  15377. "executed"
  15378. ],
  15379. "additionalProperties": false
  15380. }
  15381. },
  15382. "required": [
  15383. "id",
  15384. "created",
  15385. "type",
  15386. "durable",
  15387. "data"
  15388. ],
  15389. "additionalProperties": false
  15390. },
  15391. "session.tool.progress": {
  15392. "type": "object",
  15393. "properties": {
  15394. "id": {
  15395. "type": "string",
  15396. "allOf": [
  15397. {
  15398. "pattern": "^evt_"
  15399. }
  15400. ]
  15401. },
  15402. "created": {
  15403. "type": "number"
  15404. },
  15405. "metadata": {
  15406. "type": "object"
  15407. },
  15408. "type": {
  15409. "type": "string",
  15410. "enum": [
  15411. "session.tool.progress"
  15412. ]
  15413. },
  15414. "durable": {
  15415. "type": "object",
  15416. "properties": {
  15417. "aggregateID": {
  15418. "type": "string"
  15419. },
  15420. "seq": {
  15421. "type": "integer",
  15422. "allOf": [
  15423. {
  15424. "minimum": 0
  15425. }
  15426. ]
  15427. },
  15428. "version": {
  15429. "type": "number",
  15430. "enum": [
  15431. 1
  15432. ]
  15433. }
  15434. },
  15435. "required": [
  15436. "aggregateID",
  15437. "seq",
  15438. "version"
  15439. ],
  15440. "additionalProperties": false
  15441. },
  15442. "location": {
  15443. "$ref": "#/components/schemas/Location.Ref"
  15444. },
  15445. "data": {
  15446. "type": "object",
  15447. "properties": {
  15448. "sessionID": {
  15449. "type": "string",
  15450. "allOf": [
  15451. {
  15452. "pattern": "^ses"
  15453. }
  15454. ]
  15455. },
  15456. "assistantMessageID": {
  15457. "type": "string",
  15458. "allOf": [
  15459. {
  15460. "pattern": "^msg_"
  15461. }
  15462. ]
  15463. },
  15464. "callID": {
  15465. "type": "string"
  15466. },
  15467. "structured": {
  15468. "type": "object"
  15469. },
  15470. "content": {
  15471. "type": "array",
  15472. "items": {
  15473. "$ref": "#/components/schemas/LLM.ToolContent"
  15474. }
  15475. }
  15476. },
  15477. "required": [
  15478. "sessionID",
  15479. "assistantMessageID",
  15480. "callID",
  15481. "structured",
  15482. "content"
  15483. ],
  15484. "additionalProperties": false
  15485. }
  15486. },
  15487. "required": [
  15488. "id",
  15489. "created",
  15490. "type",
  15491. "durable",
  15492. "data"
  15493. ],
  15494. "additionalProperties": false
  15495. },
  15496. "Session.Message.ProviderState6": {
  15497. "type": "object"
  15498. },
  15499. "session.tool.success": {
  15500. "type": "object",
  15501. "properties": {
  15502. "id": {
  15503. "type": "string",
  15504. "allOf": [
  15505. {
  15506. "pattern": "^evt_"
  15507. }
  15508. ]
  15509. },
  15510. "created": {
  15511. "type": "number"
  15512. },
  15513. "metadata": {
  15514. "type": "object"
  15515. },
  15516. "type": {
  15517. "type": "string",
  15518. "enum": [
  15519. "session.tool.success"
  15520. ]
  15521. },
  15522. "durable": {
  15523. "type": "object",
  15524. "properties": {
  15525. "aggregateID": {
  15526. "type": "string"
  15527. },
  15528. "seq": {
  15529. "type": "integer",
  15530. "allOf": [
  15531. {
  15532. "minimum": 0
  15533. }
  15534. ]
  15535. },
  15536. "version": {
  15537. "type": "number",
  15538. "enum": [
  15539. 1
  15540. ]
  15541. }
  15542. },
  15543. "required": [
  15544. "aggregateID",
  15545. "seq",
  15546. "version"
  15547. ],
  15548. "additionalProperties": false
  15549. },
  15550. "location": {
  15551. "$ref": "#/components/schemas/Location.Ref"
  15552. },
  15553. "data": {
  15554. "type": "object",
  15555. "properties": {
  15556. "sessionID": {
  15557. "type": "string",
  15558. "allOf": [
  15559. {
  15560. "pattern": "^ses"
  15561. }
  15562. ]
  15563. },
  15564. "assistantMessageID": {
  15565. "type": "string",
  15566. "allOf": [
  15567. {
  15568. "pattern": "^msg_"
  15569. }
  15570. ]
  15571. },
  15572. "callID": {
  15573. "type": "string"
  15574. },
  15575. "structured": {
  15576. "type": "object"
  15577. },
  15578. "content": {
  15579. "type": "array",
  15580. "items": {
  15581. "$ref": "#/components/schemas/LLM.ToolContent"
  15582. }
  15583. },
  15584. "result": {},
  15585. "executed": {
  15586. "type": "boolean"
  15587. },
  15588. "resultState": {
  15589. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  15590. }
  15591. },
  15592. "required": [
  15593. "sessionID",
  15594. "assistantMessageID",
  15595. "callID",
  15596. "structured",
  15597. "content",
  15598. "executed"
  15599. ],
  15600. "additionalProperties": false
  15601. }
  15602. },
  15603. "required": [
  15604. "id",
  15605. "created",
  15606. "type",
  15607. "durable",
  15608. "data"
  15609. ],
  15610. "additionalProperties": false
  15611. },
  15612. "Session.Message.ProviderState7": {
  15613. "type": "object"
  15614. },
  15615. "session.tool.failed": {
  15616. "type": "object",
  15617. "properties": {
  15618. "id": {
  15619. "type": "string",
  15620. "allOf": [
  15621. {
  15622. "pattern": "^evt_"
  15623. }
  15624. ]
  15625. },
  15626. "created": {
  15627. "type": "number"
  15628. },
  15629. "metadata": {
  15630. "type": "object"
  15631. },
  15632. "type": {
  15633. "type": "string",
  15634. "enum": [
  15635. "session.tool.failed"
  15636. ]
  15637. },
  15638. "durable": {
  15639. "type": "object",
  15640. "properties": {
  15641. "aggregateID": {
  15642. "type": "string"
  15643. },
  15644. "seq": {
  15645. "type": "integer",
  15646. "allOf": [
  15647. {
  15648. "minimum": 0
  15649. }
  15650. ]
  15651. },
  15652. "version": {
  15653. "type": "number",
  15654. "enum": [
  15655. 1
  15656. ]
  15657. }
  15658. },
  15659. "required": [
  15660. "aggregateID",
  15661. "seq",
  15662. "version"
  15663. ],
  15664. "additionalProperties": false
  15665. },
  15666. "location": {
  15667. "$ref": "#/components/schemas/Location.Ref"
  15668. },
  15669. "data": {
  15670. "type": "object",
  15671. "properties": {
  15672. "sessionID": {
  15673. "type": "string",
  15674. "allOf": [
  15675. {
  15676. "pattern": "^ses"
  15677. }
  15678. ]
  15679. },
  15680. "assistantMessageID": {
  15681. "type": "string",
  15682. "allOf": [
  15683. {
  15684. "pattern": "^msg_"
  15685. }
  15686. ]
  15687. },
  15688. "callID": {
  15689. "type": "string"
  15690. },
  15691. "error": {
  15692. "$ref": "#/components/schemas/Session.StructuredError"
  15693. },
  15694. "result": {},
  15695. "executed": {
  15696. "type": "boolean"
  15697. },
  15698. "resultState": {
  15699. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  15700. }
  15701. },
  15702. "required": [
  15703. "sessionID",
  15704. "assistantMessageID",
  15705. "callID",
  15706. "error",
  15707. "executed"
  15708. ],
  15709. "additionalProperties": false
  15710. }
  15711. },
  15712. "required": [
  15713. "id",
  15714. "created",
  15715. "type",
  15716. "durable",
  15717. "data"
  15718. ],
  15719. "additionalProperties": false
  15720. },
  15721. "session.retry.scheduled": {
  15722. "type": "object",
  15723. "properties": {
  15724. "id": {
  15725. "type": "string",
  15726. "allOf": [
  15727. {
  15728. "pattern": "^evt_"
  15729. }
  15730. ]
  15731. },
  15732. "created": {
  15733. "type": "number"
  15734. },
  15735. "metadata": {
  15736. "type": "object"
  15737. },
  15738. "type": {
  15739. "type": "string",
  15740. "enum": [
  15741. "session.retry.scheduled"
  15742. ]
  15743. },
  15744. "durable": {
  15745. "type": "object",
  15746. "properties": {
  15747. "aggregateID": {
  15748. "type": "string"
  15749. },
  15750. "seq": {
  15751. "type": "integer",
  15752. "allOf": [
  15753. {
  15754. "minimum": 0
  15755. }
  15756. ]
  15757. },
  15758. "version": {
  15759. "type": "number",
  15760. "enum": [
  15761. 1
  15762. ]
  15763. }
  15764. },
  15765. "required": [
  15766. "aggregateID",
  15767. "seq",
  15768. "version"
  15769. ],
  15770. "additionalProperties": false
  15771. },
  15772. "location": {
  15773. "$ref": "#/components/schemas/Location.Ref"
  15774. },
  15775. "data": {
  15776. "type": "object",
  15777. "properties": {
  15778. "sessionID": {
  15779. "type": "string",
  15780. "allOf": [
  15781. {
  15782. "pattern": "^ses"
  15783. }
  15784. ]
  15785. },
  15786. "assistantMessageID": {
  15787. "type": "string",
  15788. "allOf": [
  15789. {
  15790. "pattern": "^msg_"
  15791. }
  15792. ]
  15793. },
  15794. "attempt": {
  15795. "type": "integer",
  15796. "allOf": [
  15797. {
  15798. "exclusiveMinimum": 0
  15799. }
  15800. ]
  15801. },
  15802. "at": {
  15803. "type": "integer",
  15804. "allOf": [
  15805. {
  15806. "minimum": 0
  15807. }
  15808. ]
  15809. },
  15810. "error": {
  15811. "$ref": "#/components/schemas/Session.StructuredError"
  15812. }
  15813. },
  15814. "required": [
  15815. "sessionID",
  15816. "assistantMessageID",
  15817. "attempt",
  15818. "at",
  15819. "error"
  15820. ],
  15821. "additionalProperties": false
  15822. }
  15823. },
  15824. "required": [
  15825. "id",
  15826. "created",
  15827. "type",
  15828. "durable",
  15829. "data"
  15830. ],
  15831. "additionalProperties": false
  15832. },
  15833. "session.compaction.admitted": {
  15834. "type": "object",
  15835. "properties": {
  15836. "id": {
  15837. "type": "string",
  15838. "allOf": [
  15839. {
  15840. "pattern": "^evt_"
  15841. }
  15842. ]
  15843. },
  15844. "created": {
  15845. "type": "number"
  15846. },
  15847. "metadata": {
  15848. "type": "object"
  15849. },
  15850. "type": {
  15851. "type": "string",
  15852. "enum": [
  15853. "session.compaction.admitted"
  15854. ]
  15855. },
  15856. "durable": {
  15857. "type": "object",
  15858. "properties": {
  15859. "aggregateID": {
  15860. "type": "string"
  15861. },
  15862. "seq": {
  15863. "type": "integer",
  15864. "allOf": [
  15865. {
  15866. "minimum": 0
  15867. }
  15868. ]
  15869. },
  15870. "version": {
  15871. "type": "number",
  15872. "enum": [
  15873. 1
  15874. ]
  15875. }
  15876. },
  15877. "required": [
  15878. "aggregateID",
  15879. "seq",
  15880. "version"
  15881. ],
  15882. "additionalProperties": false
  15883. },
  15884. "location": {
  15885. "$ref": "#/components/schemas/Location.Ref"
  15886. },
  15887. "data": {
  15888. "type": "object",
  15889. "properties": {
  15890. "sessionID": {
  15891. "type": "string",
  15892. "allOf": [
  15893. {
  15894. "pattern": "^ses"
  15895. }
  15896. ]
  15897. },
  15898. "inputID": {
  15899. "type": "string",
  15900. "allOf": [
  15901. {
  15902. "pattern": "^msg_"
  15903. }
  15904. ]
  15905. }
  15906. },
  15907. "required": [
  15908. "sessionID",
  15909. "inputID"
  15910. ],
  15911. "additionalProperties": false
  15912. }
  15913. },
  15914. "required": [
  15915. "id",
  15916. "created",
  15917. "type",
  15918. "durable",
  15919. "data"
  15920. ],
  15921. "additionalProperties": false
  15922. },
  15923. "session.compaction.started": {
  15924. "type": "object",
  15925. "properties": {
  15926. "id": {
  15927. "type": "string",
  15928. "allOf": [
  15929. {
  15930. "pattern": "^evt_"
  15931. }
  15932. ]
  15933. },
  15934. "created": {
  15935. "type": "number"
  15936. },
  15937. "metadata": {
  15938. "type": "object"
  15939. },
  15940. "type": {
  15941. "type": "string",
  15942. "enum": [
  15943. "session.compaction.started"
  15944. ]
  15945. },
  15946. "durable": {
  15947. "type": "object",
  15948. "properties": {
  15949. "aggregateID": {
  15950. "type": "string"
  15951. },
  15952. "seq": {
  15953. "type": "integer",
  15954. "allOf": [
  15955. {
  15956. "minimum": 0
  15957. }
  15958. ]
  15959. },
  15960. "version": {
  15961. "type": "number",
  15962. "enum": [
  15963. 1
  15964. ]
  15965. }
  15966. },
  15967. "required": [
  15968. "aggregateID",
  15969. "seq",
  15970. "version"
  15971. ],
  15972. "additionalProperties": false
  15973. },
  15974. "location": {
  15975. "$ref": "#/components/schemas/Location.Ref"
  15976. },
  15977. "data": {
  15978. "type": "object",
  15979. "properties": {
  15980. "sessionID": {
  15981. "type": "string",
  15982. "allOf": [
  15983. {
  15984. "pattern": "^ses"
  15985. }
  15986. ]
  15987. },
  15988. "reason": {
  15989. "type": "string",
  15990. "enum": [
  15991. "auto",
  15992. "manual"
  15993. ]
  15994. },
  15995. "recent": {
  15996. "type": "string"
  15997. },
  15998. "inputID": {
  15999. "type": "string",
  16000. "allOf": [
  16001. {
  16002. "pattern": "^msg_"
  16003. }
  16004. ]
  16005. }
  16006. },
  16007. "required": [
  16008. "sessionID",
  16009. "reason",
  16010. "recent"
  16011. ],
  16012. "additionalProperties": false
  16013. }
  16014. },
  16015. "required": [
  16016. "id",
  16017. "created",
  16018. "type",
  16019. "durable",
  16020. "data"
  16021. ],
  16022. "additionalProperties": false
  16023. },
  16024. "session.compaction.ended": {
  16025. "type": "object",
  16026. "properties": {
  16027. "id": {
  16028. "type": "string",
  16029. "allOf": [
  16030. {
  16031. "pattern": "^evt_"
  16032. }
  16033. ]
  16034. },
  16035. "created": {
  16036. "type": "number"
  16037. },
  16038. "metadata": {
  16039. "type": "object"
  16040. },
  16041. "type": {
  16042. "type": "string",
  16043. "enum": [
  16044. "session.compaction.ended"
  16045. ]
  16046. },
  16047. "durable": {
  16048. "type": "object",
  16049. "properties": {
  16050. "aggregateID": {
  16051. "type": "string"
  16052. },
  16053. "seq": {
  16054. "type": "integer",
  16055. "allOf": [
  16056. {
  16057. "minimum": 0
  16058. }
  16059. ]
  16060. },
  16061. "version": {
  16062. "type": "number",
  16063. "enum": [
  16064. 1
  16065. ]
  16066. }
  16067. },
  16068. "required": [
  16069. "aggregateID",
  16070. "seq",
  16071. "version"
  16072. ],
  16073. "additionalProperties": false
  16074. },
  16075. "location": {
  16076. "$ref": "#/components/schemas/Location.Ref"
  16077. },
  16078. "data": {
  16079. "type": "object",
  16080. "properties": {
  16081. "sessionID": {
  16082. "type": "string",
  16083. "allOf": [
  16084. {
  16085. "pattern": "^ses"
  16086. }
  16087. ]
  16088. },
  16089. "reason": {
  16090. "type": "string",
  16091. "enum": [
  16092. "auto",
  16093. "manual"
  16094. ]
  16095. },
  16096. "text": {
  16097. "type": "string"
  16098. },
  16099. "recent": {
  16100. "type": "string"
  16101. }
  16102. },
  16103. "required": [
  16104. "sessionID",
  16105. "reason",
  16106. "text",
  16107. "recent"
  16108. ],
  16109. "additionalProperties": false
  16110. }
  16111. },
  16112. "required": [
  16113. "id",
  16114. "created",
  16115. "type",
  16116. "durable",
  16117. "data"
  16118. ],
  16119. "additionalProperties": false
  16120. },
  16121. "session.compaction.failed": {
  16122. "type": "object",
  16123. "properties": {
  16124. "id": {
  16125. "type": "string",
  16126. "allOf": [
  16127. {
  16128. "pattern": "^evt_"
  16129. }
  16130. ]
  16131. },
  16132. "created": {
  16133. "type": "number"
  16134. },
  16135. "metadata": {
  16136. "type": "object"
  16137. },
  16138. "type": {
  16139. "type": "string",
  16140. "enum": [
  16141. "session.compaction.failed"
  16142. ]
  16143. },
  16144. "durable": {
  16145. "type": "object",
  16146. "properties": {
  16147. "aggregateID": {
  16148. "type": "string"
  16149. },
  16150. "seq": {
  16151. "type": "integer",
  16152. "allOf": [
  16153. {
  16154. "minimum": 0
  16155. }
  16156. ]
  16157. },
  16158. "version": {
  16159. "type": "number",
  16160. "enum": [
  16161. 1
  16162. ]
  16163. }
  16164. },
  16165. "required": [
  16166. "aggregateID",
  16167. "seq",
  16168. "version"
  16169. ],
  16170. "additionalProperties": false
  16171. },
  16172. "location": {
  16173. "$ref": "#/components/schemas/Location.Ref"
  16174. },
  16175. "data": {
  16176. "type": "object",
  16177. "properties": {
  16178. "sessionID": {
  16179. "type": "string",
  16180. "allOf": [
  16181. {
  16182. "pattern": "^ses"
  16183. }
  16184. ]
  16185. },
  16186. "reason": {
  16187. "type": "string",
  16188. "enum": [
  16189. "auto",
  16190. "manual"
  16191. ]
  16192. },
  16193. "error": {
  16194. "$ref": "#/components/schemas/Session.StructuredError"
  16195. },
  16196. "inputID": {
  16197. "type": "string",
  16198. "allOf": [
  16199. {
  16200. "pattern": "^msg_"
  16201. }
  16202. ]
  16203. }
  16204. },
  16205. "required": [
  16206. "sessionID",
  16207. "reason",
  16208. "error"
  16209. ],
  16210. "additionalProperties": false
  16211. }
  16212. },
  16213. "required": [
  16214. "id",
  16215. "created",
  16216. "type",
  16217. "durable",
  16218. "data"
  16219. ],
  16220. "additionalProperties": false
  16221. },
  16222. "session.revert.staged": {
  16223. "type": "object",
  16224. "properties": {
  16225. "id": {
  16226. "type": "string",
  16227. "allOf": [
  16228. {
  16229. "pattern": "^evt_"
  16230. }
  16231. ]
  16232. },
  16233. "created": {
  16234. "type": "number"
  16235. },
  16236. "metadata": {
  16237. "type": "object"
  16238. },
  16239. "type": {
  16240. "type": "string",
  16241. "enum": [
  16242. "session.revert.staged"
  16243. ]
  16244. },
  16245. "durable": {
  16246. "type": "object",
  16247. "properties": {
  16248. "aggregateID": {
  16249. "type": "string"
  16250. },
  16251. "seq": {
  16252. "type": "integer",
  16253. "allOf": [
  16254. {
  16255. "minimum": 0
  16256. }
  16257. ]
  16258. },
  16259. "version": {
  16260. "type": "number",
  16261. "enum": [
  16262. 1
  16263. ]
  16264. }
  16265. },
  16266. "required": [
  16267. "aggregateID",
  16268. "seq",
  16269. "version"
  16270. ],
  16271. "additionalProperties": false
  16272. },
  16273. "location": {
  16274. "$ref": "#/components/schemas/Location.Ref"
  16275. },
  16276. "data": {
  16277. "type": "object",
  16278. "properties": {
  16279. "sessionID": {
  16280. "type": "string",
  16281. "allOf": [
  16282. {
  16283. "pattern": "^ses"
  16284. }
  16285. ]
  16286. },
  16287. "revert": {
  16288. "$ref": "#/components/schemas/Session.Revert"
  16289. }
  16290. },
  16291. "required": [
  16292. "sessionID",
  16293. "revert"
  16294. ],
  16295. "additionalProperties": false
  16296. }
  16297. },
  16298. "required": [
  16299. "id",
  16300. "created",
  16301. "type",
  16302. "durable",
  16303. "data"
  16304. ],
  16305. "additionalProperties": false
  16306. },
  16307. "session.revert.cleared": {
  16308. "type": "object",
  16309. "properties": {
  16310. "id": {
  16311. "type": "string",
  16312. "allOf": [
  16313. {
  16314. "pattern": "^evt_"
  16315. }
  16316. ]
  16317. },
  16318. "created": {
  16319. "type": "number"
  16320. },
  16321. "metadata": {
  16322. "type": "object"
  16323. },
  16324. "type": {
  16325. "type": "string",
  16326. "enum": [
  16327. "session.revert.cleared"
  16328. ]
  16329. },
  16330. "durable": {
  16331. "type": "object",
  16332. "properties": {
  16333. "aggregateID": {
  16334. "type": "string"
  16335. },
  16336. "seq": {
  16337. "type": "integer",
  16338. "allOf": [
  16339. {
  16340. "minimum": 0
  16341. }
  16342. ]
  16343. },
  16344. "version": {
  16345. "type": "number",
  16346. "enum": [
  16347. 1
  16348. ]
  16349. }
  16350. },
  16351. "required": [
  16352. "aggregateID",
  16353. "seq",
  16354. "version"
  16355. ],
  16356. "additionalProperties": false
  16357. },
  16358. "location": {
  16359. "$ref": "#/components/schemas/Location.Ref"
  16360. },
  16361. "data": {
  16362. "type": "object",
  16363. "properties": {
  16364. "sessionID": {
  16365. "type": "string",
  16366. "allOf": [
  16367. {
  16368. "pattern": "^ses"
  16369. }
  16370. ]
  16371. }
  16372. },
  16373. "required": [
  16374. "sessionID"
  16375. ],
  16376. "additionalProperties": false
  16377. }
  16378. },
  16379. "required": [
  16380. "id",
  16381. "created",
  16382. "type",
  16383. "durable",
  16384. "data"
  16385. ],
  16386. "additionalProperties": false
  16387. },
  16388. "session.revert.committed": {
  16389. "type": "object",
  16390. "properties": {
  16391. "id": {
  16392. "type": "string",
  16393. "allOf": [
  16394. {
  16395. "pattern": "^evt_"
  16396. }
  16397. ]
  16398. },
  16399. "created": {
  16400. "type": "number"
  16401. },
  16402. "metadata": {
  16403. "type": "object"
  16404. },
  16405. "type": {
  16406. "type": "string",
  16407. "enum": [
  16408. "session.revert.committed"
  16409. ]
  16410. },
  16411. "durable": {
  16412. "type": "object",
  16413. "properties": {
  16414. "aggregateID": {
  16415. "type": "string"
  16416. },
  16417. "seq": {
  16418. "type": "integer",
  16419. "allOf": [
  16420. {
  16421. "minimum": 0
  16422. }
  16423. ]
  16424. },
  16425. "version": {
  16426. "type": "number",
  16427. "enum": [
  16428. 1
  16429. ]
  16430. }
  16431. },
  16432. "required": [
  16433. "aggregateID",
  16434. "seq",
  16435. "version"
  16436. ],
  16437. "additionalProperties": false
  16438. },
  16439. "location": {
  16440. "$ref": "#/components/schemas/Location.Ref"
  16441. },
  16442. "data": {
  16443. "type": "object",
  16444. "properties": {
  16445. "sessionID": {
  16446. "type": "string",
  16447. "allOf": [
  16448. {
  16449. "pattern": "^ses"
  16450. }
  16451. ]
  16452. },
  16453. "to": {
  16454. "type": "string",
  16455. "allOf": [
  16456. {
  16457. "pattern": "^msg_"
  16458. }
  16459. ]
  16460. }
  16461. },
  16462. "required": [
  16463. "sessionID",
  16464. "to"
  16465. ],
  16466. "additionalProperties": false
  16467. }
  16468. },
  16469. "required": [
  16470. "id",
  16471. "created",
  16472. "type",
  16473. "durable",
  16474. "data"
  16475. ],
  16476. "additionalProperties": false
  16477. },
  16478. "Session.Event.Durable": {
  16479. "oneOf": [
  16480. {
  16481. "$ref": "#/components/schemas/session.agent.selected"
  16482. },
  16483. {
  16484. "$ref": "#/components/schemas/session.model.selected"
  16485. },
  16486. {
  16487. "$ref": "#/components/schemas/session.moved"
  16488. },
  16489. {
  16490. "$ref": "#/components/schemas/session.renamed"
  16491. },
  16492. {
  16493. "$ref": "#/components/schemas/session.deleted"
  16494. },
  16495. {
  16496. "$ref": "#/components/schemas/session.forked"
  16497. },
  16498. {
  16499. "$ref": "#/components/schemas/session.prompt.promoted"
  16500. },
  16501. {
  16502. "$ref": "#/components/schemas/session.prompt.admitted"
  16503. },
  16504. {
  16505. "$ref": "#/components/schemas/session.execution.started"
  16506. },
  16507. {
  16508. "$ref": "#/components/schemas/session.execution.succeeded"
  16509. },
  16510. {
  16511. "$ref": "#/components/schemas/session.execution.failed"
  16512. },
  16513. {
  16514. "$ref": "#/components/schemas/session.execution.interrupted"
  16515. },
  16516. {
  16517. "$ref": "#/components/schemas/session.instructions.updated"
  16518. },
  16519. {
  16520. "$ref": "#/components/schemas/session.synthetic"
  16521. },
  16522. {
  16523. "$ref": "#/components/schemas/session.skill.activated"
  16524. },
  16525. {
  16526. "$ref": "#/components/schemas/session.shell.started"
  16527. },
  16528. {
  16529. "$ref": "#/components/schemas/session.shell.ended"
  16530. },
  16531. {
  16532. "$ref": "#/components/schemas/session.step.started"
  16533. },
  16534. {
  16535. "$ref": "#/components/schemas/session.step.ended"
  16536. },
  16537. {
  16538. "$ref": "#/components/schemas/session.step.failed"
  16539. },
  16540. {
  16541. "$ref": "#/components/schemas/session.text.started"
  16542. },
  16543. {
  16544. "$ref": "#/components/schemas/session.text.ended"
  16545. },
  16546. {
  16547. "$ref": "#/components/schemas/session.reasoning.started"
  16548. },
  16549. {
  16550. "$ref": "#/components/schemas/session.reasoning.ended"
  16551. },
  16552. {
  16553. "$ref": "#/components/schemas/session.tool.input.started"
  16554. },
  16555. {
  16556. "$ref": "#/components/schemas/session.tool.input.ended"
  16557. },
  16558. {
  16559. "$ref": "#/components/schemas/session.tool.called"
  16560. },
  16561. {
  16562. "$ref": "#/components/schemas/session.tool.progress"
  16563. },
  16564. {
  16565. "$ref": "#/components/schemas/session.tool.success"
  16566. },
  16567. {
  16568. "$ref": "#/components/schemas/session.tool.failed"
  16569. },
  16570. {
  16571. "$ref": "#/components/schemas/session.retry.scheduled"
  16572. },
  16573. {
  16574. "$ref": "#/components/schemas/session.compaction.admitted"
  16575. },
  16576. {
  16577. "$ref": "#/components/schemas/session.compaction.started"
  16578. },
  16579. {
  16580. "$ref": "#/components/schemas/session.compaction.ended"
  16581. },
  16582. {
  16583. "$ref": "#/components/schemas/session.compaction.failed"
  16584. },
  16585. {
  16586. "$ref": "#/components/schemas/session.revert.staged"
  16587. },
  16588. {
  16589. "$ref": "#/components/schemas/session.revert.cleared"
  16590. },
  16591. {
  16592. "$ref": "#/components/schemas/session.revert.committed"
  16593. }
  16594. ]
  16595. },
  16596. "EventLog.Synced": {
  16597. "type": "object",
  16598. "properties": {
  16599. "type": {
  16600. "type": "string",
  16601. "enum": [
  16602. "log.synced"
  16603. ]
  16604. },
  16605. "aggregateID": {
  16606. "type": "string"
  16607. },
  16608. "seq": {
  16609. "type": "integer",
  16610. "allOf": [
  16611. {
  16612. "minimum": 0
  16613. }
  16614. ]
  16615. }
  16616. },
  16617. "required": [
  16618. "type",
  16619. "aggregateID"
  16620. ],
  16621. "additionalProperties": false,
  16622. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  16623. },
  16624. "SessionLogItem": {
  16625. "anyOf": [
  16626. {
  16627. "$ref": "#/components/schemas/Session.Event.Durable"
  16628. },
  16629. {
  16630. "$ref": "#/components/schemas/EventLog.Synced"
  16631. }
  16632. ]
  16633. },
  16634. "SessionLogItemStream": {
  16635. "type": "string",
  16636. "contentSchema": {
  16637. "$ref": "#/components/schemas/SessionLogItem"
  16638. },
  16639. "contentMediaType": "application/json"
  16640. },
  16641. "SessionMessagesResponse": {
  16642. "type": "object",
  16643. "properties": {
  16644. "data": {
  16645. "type": "array",
  16646. "items": {
  16647. "$ref": "#/components/schemas/Session.Message.Info"
  16648. }
  16649. },
  16650. "cursor": {
  16651. "type": "object",
  16652. "properties": {
  16653. "previous": {
  16654. "anyOf": [
  16655. {
  16656. "type": "string"
  16657. },
  16658. {
  16659. "type": "null"
  16660. }
  16661. ]
  16662. },
  16663. "next": {
  16664. "anyOf": [
  16665. {
  16666. "type": "string"
  16667. },
  16668. {
  16669. "type": "null"
  16670. }
  16671. ]
  16672. }
  16673. },
  16674. "additionalProperties": false
  16675. }
  16676. },
  16677. "required": [
  16678. "data",
  16679. "cursor"
  16680. ],
  16681. "additionalProperties": false
  16682. },
  16683. "Model.Capabilities": {
  16684. "type": "object",
  16685. "properties": {
  16686. "tools": {
  16687. "type": "boolean"
  16688. },
  16689. "input": {
  16690. "type": "array",
  16691. "items": {
  16692. "type": "string"
  16693. }
  16694. },
  16695. "output": {
  16696. "type": "array",
  16697. "items": {
  16698. "type": "string"
  16699. }
  16700. }
  16701. },
  16702. "required": [
  16703. "tools",
  16704. "input",
  16705. "output"
  16706. ],
  16707. "additionalProperties": false
  16708. },
  16709. "Model.Variant": {
  16710. "type": "object",
  16711. "properties": {
  16712. "id": {
  16713. "type": "string"
  16714. },
  16715. "settings": {
  16716. "type": "object"
  16717. },
  16718. "headers": {
  16719. "type": "object",
  16720. "additionalProperties": {
  16721. "type": "string"
  16722. }
  16723. },
  16724. "body": {
  16725. "type": "object"
  16726. }
  16727. },
  16728. "required": [
  16729. "id"
  16730. ],
  16731. "additionalProperties": false
  16732. },
  16733. "Money.USDPerMillionTokens": {
  16734. "type": "number"
  16735. },
  16736. "Model.Cost": {
  16737. "type": "object",
  16738. "properties": {
  16739. "tier": {
  16740. "type": "object",
  16741. "properties": {
  16742. "type": {
  16743. "type": "string",
  16744. "enum": [
  16745. "context"
  16746. ]
  16747. },
  16748. "size": {
  16749. "type": "integer"
  16750. }
  16751. },
  16752. "required": [
  16753. "type",
  16754. "size"
  16755. ],
  16756. "additionalProperties": false
  16757. },
  16758. "input": {
  16759. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16760. },
  16761. "output": {
  16762. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16763. },
  16764. "cache": {
  16765. "type": "object",
  16766. "properties": {
  16767. "read": {
  16768. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16769. },
  16770. "write": {
  16771. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16772. }
  16773. },
  16774. "required": [
  16775. "read",
  16776. "write"
  16777. ],
  16778. "additionalProperties": false
  16779. }
  16780. },
  16781. "required": [
  16782. "input",
  16783. "output",
  16784. "cache"
  16785. ],
  16786. "additionalProperties": false
  16787. },
  16788. "Model.Info": {
  16789. "type": "object",
  16790. "properties": {
  16791. "id": {
  16792. "type": "string"
  16793. },
  16794. "modelID": {
  16795. "type": "string"
  16796. },
  16797. "providerID": {
  16798. "type": "string"
  16799. },
  16800. "family": {
  16801. "type": "string"
  16802. },
  16803. "name": {
  16804. "type": "string"
  16805. },
  16806. "package": {
  16807. "type": "string"
  16808. },
  16809. "settings": {
  16810. "type": "object"
  16811. },
  16812. "headers": {
  16813. "type": "object",
  16814. "additionalProperties": {
  16815. "type": "string"
  16816. }
  16817. },
  16818. "body": {
  16819. "type": "object"
  16820. },
  16821. "capabilities": {
  16822. "$ref": "#/components/schemas/Model.Capabilities"
  16823. },
  16824. "variants": {
  16825. "type": "array",
  16826. "items": {
  16827. "$ref": "#/components/schemas/Model.Variant"
  16828. }
  16829. },
  16830. "time": {
  16831. "type": "object",
  16832. "properties": {
  16833. "released": {
  16834. "type": "number"
  16835. }
  16836. },
  16837. "required": [
  16838. "released"
  16839. ],
  16840. "additionalProperties": false
  16841. },
  16842. "cost": {
  16843. "type": "array",
  16844. "items": {
  16845. "$ref": "#/components/schemas/Model.Cost"
  16846. }
  16847. },
  16848. "status": {
  16849. "type": "string",
  16850. "enum": [
  16851. "alpha",
  16852. "beta",
  16853. "deprecated",
  16854. "active"
  16855. ]
  16856. },
  16857. "enabled": {
  16858. "type": "boolean"
  16859. },
  16860. "limit": {
  16861. "type": "object",
  16862. "properties": {
  16863. "context": {
  16864. "type": "integer"
  16865. },
  16866. "input": {
  16867. "type": "integer"
  16868. },
  16869. "output": {
  16870. "type": "integer"
  16871. }
  16872. },
  16873. "required": [
  16874. "context",
  16875. "output"
  16876. ],
  16877. "additionalProperties": false
  16878. }
  16879. },
  16880. "required": [
  16881. "id",
  16882. "modelID",
  16883. "providerID",
  16884. "name",
  16885. "capabilities",
  16886. "variants",
  16887. "time",
  16888. "cost",
  16889. "status",
  16890. "enabled",
  16891. "limit"
  16892. ],
  16893. "additionalProperties": false
  16894. },
  16895. "GenerateTextResponse": {
  16896. "type": "object",
  16897. "properties": {
  16898. "data": {
  16899. "type": "object",
  16900. "properties": {
  16901. "text": {
  16902. "type": "string"
  16903. }
  16904. },
  16905. "required": [
  16906. "text"
  16907. ],
  16908. "additionalProperties": false
  16909. }
  16910. },
  16911. "required": [
  16912. "data"
  16913. ],
  16914. "additionalProperties": false
  16915. },
  16916. "ProviderV2.Info": {
  16917. "type": "object",
  16918. "properties": {
  16919. "id": {
  16920. "type": "string"
  16921. },
  16922. "integrationID": {
  16923. "type": "string"
  16924. },
  16925. "name": {
  16926. "type": "string"
  16927. },
  16928. "disabled": {
  16929. "type": "boolean"
  16930. },
  16931. "package": {
  16932. "type": "string"
  16933. },
  16934. "settings": {
  16935. "type": "object"
  16936. },
  16937. "headers": {
  16938. "type": "object",
  16939. "additionalProperties": {
  16940. "type": "string"
  16941. }
  16942. },
  16943. "body": {
  16944. "type": "object"
  16945. }
  16946. },
  16947. "required": [
  16948. "id",
  16949. "name",
  16950. "package"
  16951. ],
  16952. "additionalProperties": false
  16953. },
  16954. "ProviderNotFoundError": {
  16955. "type": "object",
  16956. "properties": {
  16957. "_tag": {
  16958. "type": "string",
  16959. "enum": [
  16960. "ProviderNotFoundError"
  16961. ]
  16962. },
  16963. "providerID": {
  16964. "type": "string"
  16965. },
  16966. "message": {
  16967. "type": "string"
  16968. }
  16969. },
  16970. "required": [
  16971. "_tag",
  16972. "providerID",
  16973. "message"
  16974. ],
  16975. "additionalProperties": false
  16976. },
  16977. "Integration.When": {
  16978. "type": "object",
  16979. "properties": {
  16980. "key": {
  16981. "type": "string"
  16982. },
  16983. "op": {
  16984. "type": "string",
  16985. "enum": [
  16986. "eq",
  16987. "neq"
  16988. ]
  16989. },
  16990. "value": {
  16991. "type": "string"
  16992. }
  16993. },
  16994. "required": [
  16995. "key",
  16996. "op",
  16997. "value"
  16998. ],
  16999. "additionalProperties": false
  17000. },
  17001. "Integration.TextPrompt": {
  17002. "type": "object",
  17003. "properties": {
  17004. "type": {
  17005. "type": "string",
  17006. "enum": [
  17007. "text"
  17008. ]
  17009. },
  17010. "key": {
  17011. "type": "string"
  17012. },
  17013. "message": {
  17014. "type": "string"
  17015. },
  17016. "placeholder": {
  17017. "type": "string"
  17018. },
  17019. "when": {
  17020. "$ref": "#/components/schemas/Integration.When"
  17021. }
  17022. },
  17023. "required": [
  17024. "type",
  17025. "key",
  17026. "message"
  17027. ],
  17028. "additionalProperties": false
  17029. },
  17030. "Integration.SelectPrompt": {
  17031. "type": "object",
  17032. "properties": {
  17033. "type": {
  17034. "type": "string",
  17035. "enum": [
  17036. "select"
  17037. ]
  17038. },
  17039. "key": {
  17040. "type": "string"
  17041. },
  17042. "message": {
  17043. "type": "string"
  17044. },
  17045. "options": {
  17046. "type": "array",
  17047. "items": {
  17048. "type": "object",
  17049. "properties": {
  17050. "label": {
  17051. "type": "string"
  17052. },
  17053. "value": {
  17054. "type": "string"
  17055. },
  17056. "hint": {
  17057. "type": "string"
  17058. }
  17059. },
  17060. "required": [
  17061. "label",
  17062. "value"
  17063. ],
  17064. "additionalProperties": false
  17065. }
  17066. },
  17067. "when": {
  17068. "$ref": "#/components/schemas/Integration.When"
  17069. }
  17070. },
  17071. "required": [
  17072. "type",
  17073. "key",
  17074. "message",
  17075. "options"
  17076. ],
  17077. "additionalProperties": false
  17078. },
  17079. "Integration.OAuthMethod": {
  17080. "type": "object",
  17081. "properties": {
  17082. "id": {
  17083. "type": "string"
  17084. },
  17085. "type": {
  17086. "type": "string",
  17087. "enum": [
  17088. "oauth"
  17089. ]
  17090. },
  17091. "label": {
  17092. "type": "string"
  17093. },
  17094. "prompts": {
  17095. "type": "array",
  17096. "items": {
  17097. "anyOf": [
  17098. {
  17099. "$ref": "#/components/schemas/Integration.TextPrompt"
  17100. },
  17101. {
  17102. "$ref": "#/components/schemas/Integration.SelectPrompt"
  17103. }
  17104. ]
  17105. }
  17106. }
  17107. },
  17108. "required": [
  17109. "id",
  17110. "type",
  17111. "label"
  17112. ],
  17113. "additionalProperties": false
  17114. },
  17115. "Integration.KeyMethod": {
  17116. "type": "object",
  17117. "properties": {
  17118. "type": {
  17119. "type": "string",
  17120. "enum": [
  17121. "key"
  17122. ]
  17123. },
  17124. "label": {
  17125. "type": "string"
  17126. }
  17127. },
  17128. "required": [
  17129. "type"
  17130. ],
  17131. "additionalProperties": false
  17132. },
  17133. "Integration.EnvMethod": {
  17134. "type": "object",
  17135. "properties": {
  17136. "type": {
  17137. "type": "string",
  17138. "enum": [
  17139. "env"
  17140. ]
  17141. },
  17142. "names": {
  17143. "type": "array",
  17144. "items": {
  17145. "type": "string"
  17146. }
  17147. }
  17148. },
  17149. "required": [
  17150. "type",
  17151. "names"
  17152. ],
  17153. "additionalProperties": false
  17154. },
  17155. "Integration.Method": {
  17156. "anyOf": [
  17157. {
  17158. "$ref": "#/components/schemas/Integration.OAuthMethod"
  17159. },
  17160. {
  17161. "$ref": "#/components/schemas/Integration.KeyMethod"
  17162. },
  17163. {
  17164. "$ref": "#/components/schemas/Integration.EnvMethod"
  17165. }
  17166. ]
  17167. },
  17168. "Connection.CredentialInfo": {
  17169. "type": "object",
  17170. "properties": {
  17171. "type": {
  17172. "type": "string",
  17173. "enum": [
  17174. "credential"
  17175. ]
  17176. },
  17177. "id": {
  17178. "type": "string"
  17179. },
  17180. "label": {
  17181. "type": "string"
  17182. }
  17183. },
  17184. "required": [
  17185. "type",
  17186. "id",
  17187. "label"
  17188. ],
  17189. "additionalProperties": false
  17190. },
  17191. "Connection.EnvInfo": {
  17192. "type": "object",
  17193. "properties": {
  17194. "type": {
  17195. "type": "string",
  17196. "enum": [
  17197. "env"
  17198. ]
  17199. },
  17200. "name": {
  17201. "type": "string"
  17202. }
  17203. },
  17204. "required": [
  17205. "type",
  17206. "name"
  17207. ],
  17208. "additionalProperties": false
  17209. },
  17210. "Connection.Info": {
  17211. "anyOf": [
  17212. {
  17213. "$ref": "#/components/schemas/Connection.CredentialInfo"
  17214. },
  17215. {
  17216. "$ref": "#/components/schemas/Connection.EnvInfo"
  17217. }
  17218. ]
  17219. },
  17220. "Integration.Info": {
  17221. "type": "object",
  17222. "properties": {
  17223. "id": {
  17224. "type": "string"
  17225. },
  17226. "name": {
  17227. "type": "string"
  17228. },
  17229. "methods": {
  17230. "type": "array",
  17231. "items": {
  17232. "$ref": "#/components/schemas/Integration.Method"
  17233. }
  17234. },
  17235. "connections": {
  17236. "type": "array",
  17237. "items": {
  17238. "$ref": "#/components/schemas/Connection.Info"
  17239. }
  17240. }
  17241. },
  17242. "required": [
  17243. "id",
  17244. "name",
  17245. "methods",
  17246. "connections"
  17247. ],
  17248. "additionalProperties": false
  17249. },
  17250. "Integration.Attempt": {
  17251. "type": "object",
  17252. "properties": {
  17253. "attemptID": {
  17254. "type": "string"
  17255. },
  17256. "url": {
  17257. "type": "string"
  17258. },
  17259. "instructions": {
  17260. "type": "string"
  17261. },
  17262. "mode": {
  17263. "type": "string",
  17264. "enum": [
  17265. "auto",
  17266. "code"
  17267. ]
  17268. },
  17269. "time": {
  17270. "type": "object",
  17271. "properties": {
  17272. "created": {
  17273. "anyOf": [
  17274. {
  17275. "anyOf": [
  17276. {
  17277. "type": "number"
  17278. },
  17279. {
  17280. "type": "string",
  17281. "enum": [
  17282. "NaN"
  17283. ]
  17284. },
  17285. {
  17286. "type": "string",
  17287. "enum": [
  17288. "Infinity"
  17289. ]
  17290. },
  17291. {
  17292. "type": "string",
  17293. "enum": [
  17294. "-Infinity"
  17295. ]
  17296. }
  17297. ]
  17298. },
  17299. {
  17300. "type": "string",
  17301. "enum": [
  17302. "Infinity",
  17303. "-Infinity",
  17304. "NaN"
  17305. ]
  17306. }
  17307. ]
  17308. },
  17309. "expires": {
  17310. "anyOf": [
  17311. {
  17312. "anyOf": [
  17313. {
  17314. "type": "number"
  17315. },
  17316. {
  17317. "type": "string",
  17318. "enum": [
  17319. "NaN"
  17320. ]
  17321. },
  17322. {
  17323. "type": "string",
  17324. "enum": [
  17325. "Infinity"
  17326. ]
  17327. },
  17328. {
  17329. "type": "string",
  17330. "enum": [
  17331. "-Infinity"
  17332. ]
  17333. }
  17334. ]
  17335. },
  17336. {
  17337. "type": "string",
  17338. "enum": [
  17339. "Infinity",
  17340. "-Infinity",
  17341. "NaN"
  17342. ]
  17343. }
  17344. ]
  17345. }
  17346. },
  17347. "required": [
  17348. "created",
  17349. "expires"
  17350. ],
  17351. "additionalProperties": false
  17352. }
  17353. },
  17354. "required": [
  17355. "attemptID",
  17356. "url",
  17357. "instructions",
  17358. "mode",
  17359. "time"
  17360. ],
  17361. "additionalProperties": false
  17362. },
  17363. "Integration.AttemptStatus": {
  17364. "anyOf": [
  17365. {
  17366. "type": "object",
  17367. "properties": {
  17368. "status": {
  17369. "type": "string",
  17370. "enum": [
  17371. "pending"
  17372. ]
  17373. },
  17374. "time": {
  17375. "type": "object",
  17376. "properties": {
  17377. "created": {
  17378. "anyOf": [
  17379. {
  17380. "anyOf": [
  17381. {
  17382. "type": "number"
  17383. },
  17384. {
  17385. "type": "string",
  17386. "enum": [
  17387. "NaN"
  17388. ]
  17389. },
  17390. {
  17391. "type": "string",
  17392. "enum": [
  17393. "Infinity"
  17394. ]
  17395. },
  17396. {
  17397. "type": "string",
  17398. "enum": [
  17399. "-Infinity"
  17400. ]
  17401. }
  17402. ]
  17403. },
  17404. {
  17405. "type": "string",
  17406. "enum": [
  17407. "Infinity",
  17408. "-Infinity",
  17409. "NaN"
  17410. ]
  17411. }
  17412. ]
  17413. },
  17414. "expires": {
  17415. "anyOf": [
  17416. {
  17417. "anyOf": [
  17418. {
  17419. "type": "number"
  17420. },
  17421. {
  17422. "type": "string",
  17423. "enum": [
  17424. "NaN"
  17425. ]
  17426. },
  17427. {
  17428. "type": "string",
  17429. "enum": [
  17430. "Infinity"
  17431. ]
  17432. },
  17433. {
  17434. "type": "string",
  17435. "enum": [
  17436. "-Infinity"
  17437. ]
  17438. }
  17439. ]
  17440. },
  17441. {
  17442. "type": "string",
  17443. "enum": [
  17444. "Infinity",
  17445. "-Infinity",
  17446. "NaN"
  17447. ]
  17448. }
  17449. ]
  17450. }
  17451. },
  17452. "required": [
  17453. "created",
  17454. "expires"
  17455. ],
  17456. "additionalProperties": false
  17457. }
  17458. },
  17459. "required": [
  17460. "status",
  17461. "time"
  17462. ],
  17463. "additionalProperties": false
  17464. },
  17465. {
  17466. "type": "object",
  17467. "properties": {
  17468. "status": {
  17469. "type": "string",
  17470. "enum": [
  17471. "complete"
  17472. ]
  17473. },
  17474. "time": {
  17475. "type": "object",
  17476. "properties": {
  17477. "created": {
  17478. "anyOf": [
  17479. {
  17480. "anyOf": [
  17481. {
  17482. "type": "number"
  17483. },
  17484. {
  17485. "type": "string",
  17486. "enum": [
  17487. "NaN"
  17488. ]
  17489. },
  17490. {
  17491. "type": "string",
  17492. "enum": [
  17493. "Infinity"
  17494. ]
  17495. },
  17496. {
  17497. "type": "string",
  17498. "enum": [
  17499. "-Infinity"
  17500. ]
  17501. }
  17502. ]
  17503. },
  17504. {
  17505. "type": "string",
  17506. "enum": [
  17507. "Infinity",
  17508. "-Infinity",
  17509. "NaN"
  17510. ]
  17511. }
  17512. ]
  17513. },
  17514. "expires": {
  17515. "anyOf": [
  17516. {
  17517. "anyOf": [
  17518. {
  17519. "type": "number"
  17520. },
  17521. {
  17522. "type": "string",
  17523. "enum": [
  17524. "NaN"
  17525. ]
  17526. },
  17527. {
  17528. "type": "string",
  17529. "enum": [
  17530. "Infinity"
  17531. ]
  17532. },
  17533. {
  17534. "type": "string",
  17535. "enum": [
  17536. "-Infinity"
  17537. ]
  17538. }
  17539. ]
  17540. },
  17541. {
  17542. "type": "string",
  17543. "enum": [
  17544. "Infinity",
  17545. "-Infinity",
  17546. "NaN"
  17547. ]
  17548. }
  17549. ]
  17550. }
  17551. },
  17552. "required": [
  17553. "created",
  17554. "expires"
  17555. ],
  17556. "additionalProperties": false
  17557. }
  17558. },
  17559. "required": [
  17560. "status",
  17561. "time"
  17562. ],
  17563. "additionalProperties": false
  17564. },
  17565. {
  17566. "type": "object",
  17567. "properties": {
  17568. "status": {
  17569. "type": "string",
  17570. "enum": [
  17571. "failed"
  17572. ]
  17573. },
  17574. "message": {
  17575. "type": "string"
  17576. },
  17577. "time": {
  17578. "type": "object",
  17579. "properties": {
  17580. "created": {
  17581. "anyOf": [
  17582. {
  17583. "anyOf": [
  17584. {
  17585. "type": "number"
  17586. },
  17587. {
  17588. "type": "string",
  17589. "enum": [
  17590. "NaN"
  17591. ]
  17592. },
  17593. {
  17594. "type": "string",
  17595. "enum": [
  17596. "Infinity"
  17597. ]
  17598. },
  17599. {
  17600. "type": "string",
  17601. "enum": [
  17602. "-Infinity"
  17603. ]
  17604. }
  17605. ]
  17606. },
  17607. {
  17608. "type": "string",
  17609. "enum": [
  17610. "Infinity",
  17611. "-Infinity",
  17612. "NaN"
  17613. ]
  17614. }
  17615. ]
  17616. },
  17617. "expires": {
  17618. "anyOf": [
  17619. {
  17620. "anyOf": [
  17621. {
  17622. "type": "number"
  17623. },
  17624. {
  17625. "type": "string",
  17626. "enum": [
  17627. "NaN"
  17628. ]
  17629. },
  17630. {
  17631. "type": "string",
  17632. "enum": [
  17633. "Infinity"
  17634. ]
  17635. },
  17636. {
  17637. "type": "string",
  17638. "enum": [
  17639. "-Infinity"
  17640. ]
  17641. }
  17642. ]
  17643. },
  17644. {
  17645. "type": "string",
  17646. "enum": [
  17647. "Infinity",
  17648. "-Infinity",
  17649. "NaN"
  17650. ]
  17651. }
  17652. ]
  17653. }
  17654. },
  17655. "required": [
  17656. "created",
  17657. "expires"
  17658. ],
  17659. "additionalProperties": false
  17660. }
  17661. },
  17662. "required": [
  17663. "status",
  17664. "message",
  17665. "time"
  17666. ],
  17667. "additionalProperties": false
  17668. },
  17669. {
  17670. "type": "object",
  17671. "properties": {
  17672. "status": {
  17673. "type": "string",
  17674. "enum": [
  17675. "expired"
  17676. ]
  17677. },
  17678. "time": {
  17679. "type": "object",
  17680. "properties": {
  17681. "created": {
  17682. "anyOf": [
  17683. {
  17684. "anyOf": [
  17685. {
  17686. "type": "number"
  17687. },
  17688. {
  17689. "type": "string",
  17690. "enum": [
  17691. "NaN"
  17692. ]
  17693. },
  17694. {
  17695. "type": "string",
  17696. "enum": [
  17697. "Infinity"
  17698. ]
  17699. },
  17700. {
  17701. "type": "string",
  17702. "enum": [
  17703. "-Infinity"
  17704. ]
  17705. }
  17706. ]
  17707. },
  17708. {
  17709. "type": "string",
  17710. "enum": [
  17711. "Infinity",
  17712. "-Infinity",
  17713. "NaN"
  17714. ]
  17715. }
  17716. ]
  17717. },
  17718. "expires": {
  17719. "anyOf": [
  17720. {
  17721. "anyOf": [
  17722. {
  17723. "type": "number"
  17724. },
  17725. {
  17726. "type": "string",
  17727. "enum": [
  17728. "NaN"
  17729. ]
  17730. },
  17731. {
  17732. "type": "string",
  17733. "enum": [
  17734. "Infinity"
  17735. ]
  17736. },
  17737. {
  17738. "type": "string",
  17739. "enum": [
  17740. "-Infinity"
  17741. ]
  17742. }
  17743. ]
  17744. },
  17745. {
  17746. "type": "string",
  17747. "enum": [
  17748. "Infinity",
  17749. "-Infinity",
  17750. "NaN"
  17751. ]
  17752. }
  17753. ]
  17754. }
  17755. },
  17756. "required": [
  17757. "created",
  17758. "expires"
  17759. ],
  17760. "additionalProperties": false
  17761. }
  17762. },
  17763. "required": [
  17764. "status",
  17765. "time"
  17766. ],
  17767. "additionalProperties": false
  17768. }
  17769. ]
  17770. },
  17771. "Mcp.Status.Connected": {
  17772. "type": "object",
  17773. "properties": {
  17774. "status": {
  17775. "type": "string",
  17776. "enum": [
  17777. "connected"
  17778. ]
  17779. }
  17780. },
  17781. "required": [
  17782. "status"
  17783. ],
  17784. "additionalProperties": false
  17785. },
  17786. "Mcp.Status.Pending": {
  17787. "type": "object",
  17788. "properties": {
  17789. "status": {
  17790. "type": "string",
  17791. "enum": [
  17792. "pending"
  17793. ]
  17794. }
  17795. },
  17796. "required": [
  17797. "status"
  17798. ],
  17799. "additionalProperties": false
  17800. },
  17801. "Mcp.Status.Disabled": {
  17802. "type": "object",
  17803. "properties": {
  17804. "status": {
  17805. "type": "string",
  17806. "enum": [
  17807. "disabled"
  17808. ]
  17809. }
  17810. },
  17811. "required": [
  17812. "status"
  17813. ],
  17814. "additionalProperties": false
  17815. },
  17816. "Mcp.Status.Failed": {
  17817. "type": "object",
  17818. "properties": {
  17819. "status": {
  17820. "type": "string",
  17821. "enum": [
  17822. "failed"
  17823. ]
  17824. },
  17825. "error": {
  17826. "type": "string"
  17827. }
  17828. },
  17829. "required": [
  17830. "status",
  17831. "error"
  17832. ],
  17833. "additionalProperties": false
  17834. },
  17835. "Mcp.Status.NeedsAuth": {
  17836. "type": "object",
  17837. "properties": {
  17838. "status": {
  17839. "type": "string",
  17840. "enum": [
  17841. "needs_auth"
  17842. ]
  17843. }
  17844. },
  17845. "required": [
  17846. "status"
  17847. ],
  17848. "additionalProperties": false
  17849. },
  17850. "Mcp.Status.NeedsClientRegistration": {
  17851. "type": "object",
  17852. "properties": {
  17853. "status": {
  17854. "type": "string",
  17855. "enum": [
  17856. "needs_client_registration"
  17857. ]
  17858. },
  17859. "error": {
  17860. "type": "string"
  17861. }
  17862. },
  17863. "required": [
  17864. "status",
  17865. "error"
  17866. ],
  17867. "additionalProperties": false
  17868. },
  17869. "Mcp.Server": {
  17870. "type": "object",
  17871. "properties": {
  17872. "name": {
  17873. "type": "string"
  17874. },
  17875. "status": {
  17876. "anyOf": [
  17877. {
  17878. "$ref": "#/components/schemas/Mcp.Status.Connected"
  17879. },
  17880. {
  17881. "$ref": "#/components/schemas/Mcp.Status.Pending"
  17882. },
  17883. {
  17884. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  17885. },
  17886. {
  17887. "$ref": "#/components/schemas/Mcp.Status.Failed"
  17888. },
  17889. {
  17890. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  17891. },
  17892. {
  17893. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  17894. }
  17895. ]
  17896. },
  17897. "integrationID": {
  17898. "type": "string"
  17899. }
  17900. },
  17901. "required": [
  17902. "name",
  17903. "status"
  17904. ],
  17905. "additionalProperties": false
  17906. },
  17907. "Mcp.Resource": {
  17908. "type": "object",
  17909. "properties": {
  17910. "server": {
  17911. "type": "string"
  17912. },
  17913. "name": {
  17914. "type": "string"
  17915. },
  17916. "uri": {
  17917. "type": "string"
  17918. },
  17919. "description": {
  17920. "type": "string"
  17921. },
  17922. "mimeType": {
  17923. "type": "string"
  17924. }
  17925. },
  17926. "required": [
  17927. "server",
  17928. "name",
  17929. "uri"
  17930. ],
  17931. "additionalProperties": false
  17932. },
  17933. "Mcp.ResourceTemplate": {
  17934. "type": "object",
  17935. "properties": {
  17936. "server": {
  17937. "type": "string"
  17938. },
  17939. "name": {
  17940. "type": "string"
  17941. },
  17942. "uriTemplate": {
  17943. "type": "string"
  17944. },
  17945. "description": {
  17946. "type": "string"
  17947. },
  17948. "mimeType": {
  17949. "type": "string"
  17950. }
  17951. },
  17952. "required": [
  17953. "server",
  17954. "name",
  17955. "uriTemplate"
  17956. ],
  17957. "additionalProperties": false
  17958. },
  17959. "Mcp.ResourceCatalog": {
  17960. "type": "object",
  17961. "properties": {
  17962. "resources": {
  17963. "type": "array",
  17964. "items": {
  17965. "$ref": "#/components/schemas/Mcp.Resource"
  17966. }
  17967. },
  17968. "templates": {
  17969. "type": "array",
  17970. "items": {
  17971. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  17972. }
  17973. }
  17974. },
  17975. "required": [
  17976. "resources",
  17977. "templates"
  17978. ],
  17979. "additionalProperties": false
  17980. },
  17981. "Project.Vcs": {
  17982. "type": "string",
  17983. "enum": [
  17984. "git",
  17985. "hg"
  17986. ]
  17987. },
  17988. "Project.Icon": {
  17989. "type": "object",
  17990. "properties": {
  17991. "url": {
  17992. "type": "string"
  17993. },
  17994. "override": {
  17995. "type": "string"
  17996. },
  17997. "color": {
  17998. "type": "string"
  17999. }
  18000. },
  18001. "additionalProperties": false
  18002. },
  18003. "Project.Commands": {
  18004. "type": "object",
  18005. "properties": {
  18006. "start": {
  18007. "type": "string",
  18008. "description": "Startup script to run when creating a new workspace (worktree)"
  18009. }
  18010. },
  18011. "additionalProperties": false
  18012. },
  18013. "Project.Time": {
  18014. "type": "object",
  18015. "properties": {
  18016. "created": {
  18017. "type": "integer",
  18018. "allOf": [
  18019. {
  18020. "minimum": 0
  18021. }
  18022. ]
  18023. },
  18024. "updated": {
  18025. "type": "integer",
  18026. "allOf": [
  18027. {
  18028. "minimum": 0
  18029. }
  18030. ]
  18031. },
  18032. "initialized": {
  18033. "type": "integer",
  18034. "allOf": [
  18035. {
  18036. "minimum": 0
  18037. }
  18038. ]
  18039. }
  18040. },
  18041. "required": [
  18042. "created",
  18043. "updated"
  18044. ],
  18045. "additionalProperties": false
  18046. },
  18047. "Project": {
  18048. "type": "object",
  18049. "properties": {
  18050. "id": {
  18051. "type": "string"
  18052. },
  18053. "worktree": {
  18054. "type": "string"
  18055. },
  18056. "vcs": {
  18057. "$ref": "#/components/schemas/Project.Vcs"
  18058. },
  18059. "name": {
  18060. "type": "string"
  18061. },
  18062. "icon": {
  18063. "$ref": "#/components/schemas/Project.Icon"
  18064. },
  18065. "commands": {
  18066. "$ref": "#/components/schemas/Project.Commands"
  18067. },
  18068. "time": {
  18069. "$ref": "#/components/schemas/Project.Time"
  18070. },
  18071. "sandboxes": {
  18072. "type": "array",
  18073. "items": {
  18074. "type": "string"
  18075. }
  18076. }
  18077. },
  18078. "required": [
  18079. "id",
  18080. "worktree",
  18081. "time",
  18082. "sandboxes"
  18083. ],
  18084. "additionalProperties": false
  18085. },
  18086. "Project.Current": {
  18087. "type": "object",
  18088. "properties": {
  18089. "id": {
  18090. "type": "string"
  18091. },
  18092. "directory": {
  18093. "type": "string"
  18094. }
  18095. },
  18096. "required": [
  18097. "id",
  18098. "directory"
  18099. ],
  18100. "additionalProperties": false
  18101. },
  18102. "Project.Directory": {
  18103. "type": "object",
  18104. "properties": {
  18105. "directory": {
  18106. "type": "string"
  18107. },
  18108. "strategy": {
  18109. "type": "string"
  18110. }
  18111. },
  18112. "required": [
  18113. "directory"
  18114. ],
  18115. "additionalProperties": false
  18116. },
  18117. "Project.Directories": {
  18118. "type": "array",
  18119. "items": {
  18120. "$ref": "#/components/schemas/Project.Directory"
  18121. }
  18122. },
  18123. "Form.Metadata": {
  18124. "type": "object"
  18125. },
  18126. "Form.When": {
  18127. "type": "object",
  18128. "properties": {
  18129. "key": {
  18130. "type": "string"
  18131. },
  18132. "op": {
  18133. "type": "string",
  18134. "enum": [
  18135. "eq",
  18136. "neq"
  18137. ]
  18138. },
  18139. "value": {
  18140. "anyOf": [
  18141. {
  18142. "type": "string"
  18143. },
  18144. {
  18145. "anyOf": [
  18146. {
  18147. "anyOf": [
  18148. {
  18149. "type": "number"
  18150. },
  18151. {
  18152. "type": "string",
  18153. "enum": [
  18154. "NaN"
  18155. ]
  18156. },
  18157. {
  18158. "type": "string",
  18159. "enum": [
  18160. "Infinity"
  18161. ]
  18162. },
  18163. {
  18164. "type": "string",
  18165. "enum": [
  18166. "-Infinity"
  18167. ]
  18168. }
  18169. ]
  18170. },
  18171. {
  18172. "type": "string",
  18173. "enum": [
  18174. "Infinity",
  18175. "-Infinity",
  18176. "NaN"
  18177. ]
  18178. }
  18179. ]
  18180. },
  18181. {
  18182. "type": "boolean"
  18183. }
  18184. ]
  18185. }
  18186. },
  18187. "required": [
  18188. "key",
  18189. "op",
  18190. "value"
  18191. ],
  18192. "additionalProperties": false
  18193. },
  18194. "Form.Option": {
  18195. "type": "object",
  18196. "properties": {
  18197. "value": {
  18198. "type": "string"
  18199. },
  18200. "label": {
  18201. "type": "string"
  18202. },
  18203. "description": {
  18204. "type": "string"
  18205. }
  18206. },
  18207. "required": [
  18208. "value",
  18209. "label"
  18210. ],
  18211. "additionalProperties": false
  18212. },
  18213. "Form.StringField": {
  18214. "type": "object",
  18215. "properties": {
  18216. "key": {
  18217. "type": "string"
  18218. },
  18219. "title": {
  18220. "type": "string"
  18221. },
  18222. "description": {
  18223. "type": "string"
  18224. },
  18225. "required": {
  18226. "type": "boolean"
  18227. },
  18228. "when": {
  18229. "type": "array",
  18230. "items": {
  18231. "$ref": "#/components/schemas/Form.When"
  18232. }
  18233. },
  18234. "type": {
  18235. "type": "string",
  18236. "enum": [
  18237. "string"
  18238. ]
  18239. },
  18240. "format": {
  18241. "type": "string",
  18242. "enum": [
  18243. "email",
  18244. "uri",
  18245. "date",
  18246. "date-time"
  18247. ]
  18248. },
  18249. "minLength": {
  18250. "type": "integer",
  18251. "allOf": [
  18252. {
  18253. "minimum": 0
  18254. }
  18255. ]
  18256. },
  18257. "maxLength": {
  18258. "type": "integer",
  18259. "allOf": [
  18260. {
  18261. "minimum": 0
  18262. }
  18263. ]
  18264. },
  18265. "pattern": {
  18266. "type": "string"
  18267. },
  18268. "placeholder": {
  18269. "type": "string"
  18270. },
  18271. "default": {
  18272. "type": "string"
  18273. },
  18274. "options": {
  18275. "type": "array",
  18276. "items": {
  18277. "$ref": "#/components/schemas/Form.Option"
  18278. }
  18279. },
  18280. "custom": {
  18281. "type": "boolean"
  18282. }
  18283. },
  18284. "required": [
  18285. "key",
  18286. "type"
  18287. ],
  18288. "additionalProperties": false
  18289. },
  18290. "Form.NumberField": {
  18291. "type": "object",
  18292. "properties": {
  18293. "key": {
  18294. "type": "string"
  18295. },
  18296. "title": {
  18297. "type": "string"
  18298. },
  18299. "description": {
  18300. "type": "string"
  18301. },
  18302. "required": {
  18303. "type": "boolean"
  18304. },
  18305. "when": {
  18306. "type": "array",
  18307. "items": {
  18308. "$ref": "#/components/schemas/Form.When"
  18309. }
  18310. },
  18311. "type": {
  18312. "type": "string",
  18313. "enum": [
  18314. "number"
  18315. ]
  18316. },
  18317. "minimum": {
  18318. "anyOf": [
  18319. {
  18320. "anyOf": [
  18321. {
  18322. "type": "number"
  18323. },
  18324. {
  18325. "type": "string",
  18326. "enum": [
  18327. "NaN"
  18328. ]
  18329. },
  18330. {
  18331. "type": "string",
  18332. "enum": [
  18333. "Infinity"
  18334. ]
  18335. },
  18336. {
  18337. "type": "string",
  18338. "enum": [
  18339. "-Infinity"
  18340. ]
  18341. }
  18342. ]
  18343. },
  18344. {
  18345. "type": "string",
  18346. "enum": [
  18347. "Infinity",
  18348. "-Infinity",
  18349. "NaN"
  18350. ]
  18351. }
  18352. ]
  18353. },
  18354. "maximum": {
  18355. "anyOf": [
  18356. {
  18357. "anyOf": [
  18358. {
  18359. "type": "number"
  18360. },
  18361. {
  18362. "type": "string",
  18363. "enum": [
  18364. "NaN"
  18365. ]
  18366. },
  18367. {
  18368. "type": "string",
  18369. "enum": [
  18370. "Infinity"
  18371. ]
  18372. },
  18373. {
  18374. "type": "string",
  18375. "enum": [
  18376. "-Infinity"
  18377. ]
  18378. }
  18379. ]
  18380. },
  18381. {
  18382. "type": "string",
  18383. "enum": [
  18384. "Infinity",
  18385. "-Infinity",
  18386. "NaN"
  18387. ]
  18388. }
  18389. ]
  18390. },
  18391. "default": {
  18392. "anyOf": [
  18393. {
  18394. "anyOf": [
  18395. {
  18396. "type": "number"
  18397. },
  18398. {
  18399. "type": "string",
  18400. "enum": [
  18401. "NaN"
  18402. ]
  18403. },
  18404. {
  18405. "type": "string",
  18406. "enum": [
  18407. "Infinity"
  18408. ]
  18409. },
  18410. {
  18411. "type": "string",
  18412. "enum": [
  18413. "-Infinity"
  18414. ]
  18415. }
  18416. ]
  18417. },
  18418. {
  18419. "type": "string",
  18420. "enum": [
  18421. "Infinity",
  18422. "-Infinity",
  18423. "NaN"
  18424. ]
  18425. }
  18426. ]
  18427. }
  18428. },
  18429. "required": [
  18430. "key",
  18431. "type"
  18432. ],
  18433. "additionalProperties": false
  18434. },
  18435. "Form.IntegerField": {
  18436. "type": "object",
  18437. "properties": {
  18438. "key": {
  18439. "type": "string"
  18440. },
  18441. "title": {
  18442. "type": "string"
  18443. },
  18444. "description": {
  18445. "type": "string"
  18446. },
  18447. "required": {
  18448. "type": "boolean"
  18449. },
  18450. "when": {
  18451. "type": "array",
  18452. "items": {
  18453. "$ref": "#/components/schemas/Form.When"
  18454. }
  18455. },
  18456. "type": {
  18457. "type": "string",
  18458. "enum": [
  18459. "integer"
  18460. ]
  18461. },
  18462. "minimum": {
  18463. "anyOf": [
  18464. {
  18465. "anyOf": [
  18466. {
  18467. "type": "number"
  18468. },
  18469. {
  18470. "type": "string",
  18471. "enum": [
  18472. "NaN"
  18473. ]
  18474. },
  18475. {
  18476. "type": "string",
  18477. "enum": [
  18478. "Infinity"
  18479. ]
  18480. },
  18481. {
  18482. "type": "string",
  18483. "enum": [
  18484. "-Infinity"
  18485. ]
  18486. }
  18487. ]
  18488. },
  18489. {
  18490. "type": "string",
  18491. "enum": [
  18492. "Infinity",
  18493. "-Infinity",
  18494. "NaN"
  18495. ]
  18496. }
  18497. ]
  18498. },
  18499. "maximum": {
  18500. "anyOf": [
  18501. {
  18502. "anyOf": [
  18503. {
  18504. "type": "number"
  18505. },
  18506. {
  18507. "type": "string",
  18508. "enum": [
  18509. "NaN"
  18510. ]
  18511. },
  18512. {
  18513. "type": "string",
  18514. "enum": [
  18515. "Infinity"
  18516. ]
  18517. },
  18518. {
  18519. "type": "string",
  18520. "enum": [
  18521. "-Infinity"
  18522. ]
  18523. }
  18524. ]
  18525. },
  18526. {
  18527. "type": "string",
  18528. "enum": [
  18529. "Infinity",
  18530. "-Infinity",
  18531. "NaN"
  18532. ]
  18533. }
  18534. ]
  18535. },
  18536. "default": {
  18537. "anyOf": [
  18538. {
  18539. "anyOf": [
  18540. {
  18541. "type": "number"
  18542. },
  18543. {
  18544. "type": "string",
  18545. "enum": [
  18546. "NaN"
  18547. ]
  18548. },
  18549. {
  18550. "type": "string",
  18551. "enum": [
  18552. "Infinity"
  18553. ]
  18554. },
  18555. {
  18556. "type": "string",
  18557. "enum": [
  18558. "-Infinity"
  18559. ]
  18560. }
  18561. ]
  18562. },
  18563. {
  18564. "type": "string",
  18565. "enum": [
  18566. "Infinity",
  18567. "-Infinity",
  18568. "NaN"
  18569. ]
  18570. }
  18571. ]
  18572. }
  18573. },
  18574. "required": [
  18575. "key",
  18576. "type"
  18577. ],
  18578. "additionalProperties": false
  18579. },
  18580. "Form.BooleanField": {
  18581. "type": "object",
  18582. "properties": {
  18583. "key": {
  18584. "type": "string"
  18585. },
  18586. "title": {
  18587. "type": "string"
  18588. },
  18589. "description": {
  18590. "type": "string"
  18591. },
  18592. "required": {
  18593. "type": "boolean"
  18594. },
  18595. "when": {
  18596. "type": "array",
  18597. "items": {
  18598. "$ref": "#/components/schemas/Form.When"
  18599. }
  18600. },
  18601. "type": {
  18602. "type": "string",
  18603. "enum": [
  18604. "boolean"
  18605. ]
  18606. },
  18607. "default": {
  18608. "type": "boolean"
  18609. }
  18610. },
  18611. "required": [
  18612. "key",
  18613. "type"
  18614. ],
  18615. "additionalProperties": false
  18616. },
  18617. "Form.MultiselectField": {
  18618. "type": "object",
  18619. "properties": {
  18620. "key": {
  18621. "type": "string"
  18622. },
  18623. "title": {
  18624. "type": "string"
  18625. },
  18626. "description": {
  18627. "type": "string"
  18628. },
  18629. "required": {
  18630. "type": "boolean"
  18631. },
  18632. "when": {
  18633. "type": "array",
  18634. "items": {
  18635. "$ref": "#/components/schemas/Form.When"
  18636. }
  18637. },
  18638. "type": {
  18639. "type": "string",
  18640. "enum": [
  18641. "multiselect"
  18642. ]
  18643. },
  18644. "options": {
  18645. "type": "array",
  18646. "items": {
  18647. "$ref": "#/components/schemas/Form.Option"
  18648. }
  18649. },
  18650. "minItems": {
  18651. "type": "integer",
  18652. "allOf": [
  18653. {
  18654. "minimum": 0
  18655. }
  18656. ]
  18657. },
  18658. "maxItems": {
  18659. "type": "integer",
  18660. "allOf": [
  18661. {
  18662. "minimum": 0
  18663. }
  18664. ]
  18665. },
  18666. "custom": {
  18667. "type": "boolean"
  18668. },
  18669. "default": {
  18670. "type": "array",
  18671. "items": {
  18672. "type": "string"
  18673. }
  18674. }
  18675. },
  18676. "required": [
  18677. "key",
  18678. "type",
  18679. "options"
  18680. ],
  18681. "additionalProperties": false
  18682. },
  18683. "Form.FormInfo": {
  18684. "type": "object",
  18685. "properties": {
  18686. "id": {
  18687. "type": "string",
  18688. "allOf": [
  18689. {
  18690. "pattern": "^frm_"
  18691. }
  18692. ]
  18693. },
  18694. "sessionID": {
  18695. "type": "string"
  18696. },
  18697. "title": {
  18698. "type": "string"
  18699. },
  18700. "metadata": {
  18701. "$ref": "#/components/schemas/Form.Metadata"
  18702. },
  18703. "mode": {
  18704. "type": "string",
  18705. "enum": [
  18706. "form"
  18707. ]
  18708. },
  18709. "fields": {
  18710. "type": "array",
  18711. "items": {
  18712. "anyOf": [
  18713. {
  18714. "$ref": "#/components/schemas/Form.StringField"
  18715. },
  18716. {
  18717. "$ref": "#/components/schemas/Form.NumberField"
  18718. },
  18719. {
  18720. "$ref": "#/components/schemas/Form.IntegerField"
  18721. },
  18722. {
  18723. "$ref": "#/components/schemas/Form.BooleanField"
  18724. },
  18725. {
  18726. "$ref": "#/components/schemas/Form.MultiselectField"
  18727. }
  18728. ]
  18729. }
  18730. }
  18731. },
  18732. "required": [
  18733. "id",
  18734. "sessionID",
  18735. "title",
  18736. "mode",
  18737. "fields"
  18738. ],
  18739. "additionalProperties": false
  18740. },
  18741. "Form.UrlInfo": {
  18742. "type": "object",
  18743. "properties": {
  18744. "id": {
  18745. "type": "string",
  18746. "allOf": [
  18747. {
  18748. "pattern": "^frm_"
  18749. }
  18750. ]
  18751. },
  18752. "sessionID": {
  18753. "type": "string"
  18754. },
  18755. "title": {
  18756. "type": "string"
  18757. },
  18758. "metadata": {
  18759. "$ref": "#/components/schemas/Form.Metadata"
  18760. },
  18761. "mode": {
  18762. "type": "string",
  18763. "enum": [
  18764. "url"
  18765. ]
  18766. },
  18767. "url": {
  18768. "type": "string"
  18769. }
  18770. },
  18771. "required": [
  18772. "id",
  18773. "sessionID",
  18774. "title",
  18775. "mode",
  18776. "url"
  18777. ],
  18778. "additionalProperties": false
  18779. },
  18780. "Form.CreatePayload": {
  18781. "type": "object",
  18782. "properties": {
  18783. "id": {
  18784. "anyOf": [
  18785. {
  18786. "type": "string",
  18787. "allOf": [
  18788. {
  18789. "pattern": "^frm_"
  18790. }
  18791. ]
  18792. },
  18793. {
  18794. "type": "null"
  18795. }
  18796. ]
  18797. },
  18798. "title": {
  18799. "type": "string"
  18800. },
  18801. "metadata": {
  18802. "$ref": "#/components/schemas/Form.Metadata"
  18803. },
  18804. "mode": {
  18805. "type": "string",
  18806. "enum": [
  18807. "form",
  18808. "url"
  18809. ]
  18810. },
  18811. "fields": {
  18812. "anyOf": [
  18813. {
  18814. "type": "array",
  18815. "items": {
  18816. "anyOf": [
  18817. {
  18818. "$ref": "#/components/schemas/Form.StringField"
  18819. },
  18820. {
  18821. "$ref": "#/components/schemas/Form.NumberField"
  18822. },
  18823. {
  18824. "$ref": "#/components/schemas/Form.IntegerField"
  18825. },
  18826. {
  18827. "$ref": "#/components/schemas/Form.BooleanField"
  18828. },
  18829. {
  18830. "$ref": "#/components/schemas/Form.MultiselectField"
  18831. }
  18832. ]
  18833. }
  18834. },
  18835. {
  18836. "type": "null"
  18837. }
  18838. ]
  18839. },
  18840. "url": {
  18841. "anyOf": [
  18842. {
  18843. "type": "string"
  18844. },
  18845. {
  18846. "type": "null"
  18847. }
  18848. ]
  18849. }
  18850. },
  18851. "required": [
  18852. "title",
  18853. "mode"
  18854. ],
  18855. "additionalProperties": false
  18856. },
  18857. "FormNotFoundError": {
  18858. "type": "object",
  18859. "properties": {
  18860. "_tag": {
  18861. "type": "string",
  18862. "enum": [
  18863. "FormNotFoundError"
  18864. ]
  18865. },
  18866. "id": {
  18867. "type": "string"
  18868. },
  18869. "message": {
  18870. "type": "string"
  18871. }
  18872. },
  18873. "required": [
  18874. "_tag",
  18875. "id",
  18876. "message"
  18877. ],
  18878. "additionalProperties": false
  18879. },
  18880. "Form.Value": {
  18881. "anyOf": [
  18882. {
  18883. "type": "string"
  18884. },
  18885. {
  18886. "anyOf": [
  18887. {
  18888. "anyOf": [
  18889. {
  18890. "type": "number"
  18891. },
  18892. {
  18893. "type": "string",
  18894. "enum": [
  18895. "NaN"
  18896. ]
  18897. },
  18898. {
  18899. "type": "string",
  18900. "enum": [
  18901. "Infinity"
  18902. ]
  18903. },
  18904. {
  18905. "type": "string",
  18906. "enum": [
  18907. "-Infinity"
  18908. ]
  18909. }
  18910. ]
  18911. },
  18912. {
  18913. "type": "string",
  18914. "enum": [
  18915. "Infinity",
  18916. "-Infinity",
  18917. "NaN"
  18918. ]
  18919. }
  18920. ]
  18921. },
  18922. {
  18923. "type": "boolean"
  18924. },
  18925. {
  18926. "type": "array",
  18927. "items": {
  18928. "type": "string"
  18929. }
  18930. }
  18931. ]
  18932. },
  18933. "Form.Answer": {
  18934. "type": "object",
  18935. "additionalProperties": {
  18936. "$ref": "#/components/schemas/Form.Value"
  18937. }
  18938. },
  18939. "Form.State": {
  18940. "anyOf": [
  18941. {
  18942. "type": "object",
  18943. "properties": {
  18944. "status": {
  18945. "type": "string",
  18946. "enum": [
  18947. "pending"
  18948. ]
  18949. }
  18950. },
  18951. "required": [
  18952. "status"
  18953. ],
  18954. "additionalProperties": false
  18955. },
  18956. {
  18957. "type": "object",
  18958. "properties": {
  18959. "status": {
  18960. "type": "string",
  18961. "enum": [
  18962. "answered"
  18963. ]
  18964. },
  18965. "answer": {
  18966. "$ref": "#/components/schemas/Form.Answer"
  18967. }
  18968. },
  18969. "required": [
  18970. "status",
  18971. "answer"
  18972. ],
  18973. "additionalProperties": false
  18974. },
  18975. {
  18976. "type": "object",
  18977. "properties": {
  18978. "status": {
  18979. "type": "string",
  18980. "enum": [
  18981. "cancelled"
  18982. ]
  18983. }
  18984. },
  18985. "required": [
  18986. "status"
  18987. ],
  18988. "additionalProperties": false
  18989. }
  18990. ]
  18991. },
  18992. "Form.Reply": {
  18993. "type": "object",
  18994. "properties": {
  18995. "answer": {
  18996. "$ref": "#/components/schemas/Form.Answer"
  18997. }
  18998. },
  18999. "required": [
  19000. "answer"
  19001. ],
  19002. "additionalProperties": false
  19003. },
  19004. "FormAlreadySettledError": {
  19005. "type": "object",
  19006. "properties": {
  19007. "_tag": {
  19008. "type": "string",
  19009. "enum": [
  19010. "FormAlreadySettledError"
  19011. ]
  19012. },
  19013. "id": {
  19014. "type": "string"
  19015. },
  19016. "message": {
  19017. "type": "string"
  19018. }
  19019. },
  19020. "required": [
  19021. "_tag",
  19022. "id",
  19023. "message"
  19024. ],
  19025. "additionalProperties": false
  19026. },
  19027. "FormInvalidAnswerError": {
  19028. "type": "object",
  19029. "properties": {
  19030. "_tag": {
  19031. "type": "string",
  19032. "enum": [
  19033. "FormInvalidAnswerError"
  19034. ]
  19035. },
  19036. "id": {
  19037. "type": "string"
  19038. },
  19039. "message": {
  19040. "type": "string"
  19041. }
  19042. },
  19043. "required": [
  19044. "_tag",
  19045. "id",
  19046. "message"
  19047. ],
  19048. "additionalProperties": false
  19049. },
  19050. "PermissionV2.Source": {
  19051. "anyOf": [
  19052. {
  19053. "type": "object",
  19054. "properties": {
  19055. "type": {
  19056. "type": "string",
  19057. "enum": [
  19058. "tool"
  19059. ]
  19060. },
  19061. "messageID": {
  19062. "type": "string"
  19063. },
  19064. "callID": {
  19065. "type": "string"
  19066. }
  19067. },
  19068. "required": [
  19069. "type",
  19070. "messageID",
  19071. "callID"
  19072. ],
  19073. "additionalProperties": false
  19074. }
  19075. ]
  19076. },
  19077. "PermissionV2.Request": {
  19078. "type": "object",
  19079. "properties": {
  19080. "id": {
  19081. "type": "string",
  19082. "allOf": [
  19083. {
  19084. "pattern": "^per"
  19085. }
  19086. ]
  19087. },
  19088. "sessionID": {
  19089. "type": "string",
  19090. "allOf": [
  19091. {
  19092. "pattern": "^ses"
  19093. }
  19094. ]
  19095. },
  19096. "action": {
  19097. "type": "string"
  19098. },
  19099. "resources": {
  19100. "type": "array",
  19101. "items": {
  19102. "type": "string"
  19103. }
  19104. },
  19105. "save": {
  19106. "type": "array",
  19107. "items": {
  19108. "type": "string"
  19109. }
  19110. },
  19111. "metadata": {
  19112. "type": "object"
  19113. },
  19114. "source": {
  19115. "$ref": "#/components/schemas/PermissionV2.Source"
  19116. }
  19117. },
  19118. "required": [
  19119. "id",
  19120. "sessionID",
  19121. "action",
  19122. "resources"
  19123. ],
  19124. "additionalProperties": false
  19125. },
  19126. "PermissionSaved.Info": {
  19127. "type": "object",
  19128. "properties": {
  19129. "id": {
  19130. "type": "string"
  19131. },
  19132. "projectID": {
  19133. "type": "string"
  19134. },
  19135. "action": {
  19136. "type": "string"
  19137. },
  19138. "resource": {
  19139. "type": "string"
  19140. }
  19141. },
  19142. "required": [
  19143. "id",
  19144. "projectID",
  19145. "action",
  19146. "resource"
  19147. ],
  19148. "additionalProperties": false
  19149. },
  19150. "PermissionNotFoundError": {
  19151. "type": "object",
  19152. "properties": {
  19153. "_tag": {
  19154. "type": "string",
  19155. "enum": [
  19156. "PermissionNotFoundError"
  19157. ]
  19158. },
  19159. "requestID": {
  19160. "type": "string"
  19161. },
  19162. "message": {
  19163. "type": "string"
  19164. }
  19165. },
  19166. "required": [
  19167. "_tag",
  19168. "requestID",
  19169. "message"
  19170. ],
  19171. "additionalProperties": false
  19172. },
  19173. "PermissionV2.Reply": {
  19174. "type": "string",
  19175. "enum": [
  19176. "once",
  19177. "always",
  19178. "reject"
  19179. ]
  19180. },
  19181. "FileSystem.Entry": {
  19182. "type": "object",
  19183. "properties": {
  19184. "path": {
  19185. "type": "string"
  19186. },
  19187. "type": {
  19188. "type": "string",
  19189. "enum": [
  19190. "file",
  19191. "directory"
  19192. ]
  19193. }
  19194. },
  19195. "required": [
  19196. "path",
  19197. "type"
  19198. ],
  19199. "additionalProperties": false
  19200. },
  19201. "Command.Info": {
  19202. "type": "object",
  19203. "properties": {
  19204. "name": {
  19205. "type": "string"
  19206. },
  19207. "template": {
  19208. "type": "string"
  19209. },
  19210. "description": {
  19211. "type": "string"
  19212. },
  19213. "agent": {
  19214. "type": "string"
  19215. },
  19216. "model": {
  19217. "$ref": "#/components/schemas/Model.Ref"
  19218. },
  19219. "subtask": {
  19220. "type": "boolean"
  19221. }
  19222. },
  19223. "required": [
  19224. "name",
  19225. "template"
  19226. ],
  19227. "additionalProperties": false
  19228. },
  19229. "Skill.Info": {
  19230. "type": "object",
  19231. "properties": {
  19232. "id": {
  19233. "type": "string"
  19234. },
  19235. "name": {
  19236. "type": "string"
  19237. },
  19238. "description": {
  19239. "type": "string"
  19240. },
  19241. "slash": {
  19242. "type": "boolean"
  19243. },
  19244. "autoinvoke": {
  19245. "type": "boolean"
  19246. },
  19247. "location": {
  19248. "type": "string"
  19249. },
  19250. "content": {
  19251. "type": "string"
  19252. }
  19253. },
  19254. "required": [
  19255. "id",
  19256. "name",
  19257. "location",
  19258. "content"
  19259. ],
  19260. "additionalProperties": false
  19261. },
  19262. "models-dev.refreshed": {
  19263. "type": "object",
  19264. "properties": {
  19265. "id": {
  19266. "type": "string",
  19267. "allOf": [
  19268. {
  19269. "pattern": "^evt_"
  19270. }
  19271. ]
  19272. },
  19273. "created": {
  19274. "type": "number"
  19275. },
  19276. "metadata": {
  19277. "type": "object"
  19278. },
  19279. "type": {
  19280. "type": "string",
  19281. "enum": [
  19282. "models-dev.refreshed"
  19283. ]
  19284. },
  19285. "location": {
  19286. "$ref": "#/components/schemas/Location.Ref"
  19287. },
  19288. "data": {
  19289. "anyOf": [
  19290. {
  19291. "type": "object"
  19292. },
  19293. {
  19294. "type": "array"
  19295. }
  19296. ]
  19297. }
  19298. },
  19299. "required": [
  19300. "id",
  19301. "created",
  19302. "type",
  19303. "data"
  19304. ],
  19305. "additionalProperties": false
  19306. },
  19307. "integration.updated": {
  19308. "type": "object",
  19309. "properties": {
  19310. "id": {
  19311. "type": "string",
  19312. "allOf": [
  19313. {
  19314. "pattern": "^evt_"
  19315. }
  19316. ]
  19317. },
  19318. "created": {
  19319. "type": "number"
  19320. },
  19321. "metadata": {
  19322. "type": "object"
  19323. },
  19324. "type": {
  19325. "type": "string",
  19326. "enum": [
  19327. "integration.updated"
  19328. ]
  19329. },
  19330. "location": {
  19331. "$ref": "#/components/schemas/Location.Ref"
  19332. },
  19333. "data": {
  19334. "anyOf": [
  19335. {
  19336. "type": "object"
  19337. },
  19338. {
  19339. "type": "array"
  19340. }
  19341. ]
  19342. }
  19343. },
  19344. "required": [
  19345. "id",
  19346. "created",
  19347. "type",
  19348. "data"
  19349. ],
  19350. "additionalProperties": false
  19351. },
  19352. "integration.connection.updated": {
  19353. "type": "object",
  19354. "properties": {
  19355. "id": {
  19356. "type": "string",
  19357. "allOf": [
  19358. {
  19359. "pattern": "^evt_"
  19360. }
  19361. ]
  19362. },
  19363. "created": {
  19364. "type": "number"
  19365. },
  19366. "metadata": {
  19367. "type": "object"
  19368. },
  19369. "type": {
  19370. "type": "string",
  19371. "enum": [
  19372. "integration.connection.updated"
  19373. ]
  19374. },
  19375. "location": {
  19376. "$ref": "#/components/schemas/Location.Ref"
  19377. },
  19378. "data": {
  19379. "type": "object",
  19380. "properties": {
  19381. "integrationID": {
  19382. "type": "string"
  19383. }
  19384. },
  19385. "required": [
  19386. "integrationID"
  19387. ],
  19388. "additionalProperties": false
  19389. }
  19390. },
  19391. "required": [
  19392. "id",
  19393. "created",
  19394. "type",
  19395. "data"
  19396. ],
  19397. "additionalProperties": false
  19398. },
  19399. "catalog.updated": {
  19400. "type": "object",
  19401. "properties": {
  19402. "id": {
  19403. "type": "string",
  19404. "allOf": [
  19405. {
  19406. "pattern": "^evt_"
  19407. }
  19408. ]
  19409. },
  19410. "created": {
  19411. "type": "number"
  19412. },
  19413. "metadata": {
  19414. "type": "object"
  19415. },
  19416. "type": {
  19417. "type": "string",
  19418. "enum": [
  19419. "catalog.updated"
  19420. ]
  19421. },
  19422. "location": {
  19423. "$ref": "#/components/schemas/Location.Ref"
  19424. },
  19425. "data": {
  19426. "anyOf": [
  19427. {
  19428. "type": "object"
  19429. },
  19430. {
  19431. "type": "array"
  19432. }
  19433. ]
  19434. }
  19435. },
  19436. "required": [
  19437. "id",
  19438. "created",
  19439. "type",
  19440. "data"
  19441. ],
  19442. "additionalProperties": false
  19443. },
  19444. "agent.updated": {
  19445. "type": "object",
  19446. "properties": {
  19447. "id": {
  19448. "type": "string",
  19449. "allOf": [
  19450. {
  19451. "pattern": "^evt_"
  19452. }
  19453. ]
  19454. },
  19455. "created": {
  19456. "type": "number"
  19457. },
  19458. "metadata": {
  19459. "type": "object"
  19460. },
  19461. "type": {
  19462. "type": "string",
  19463. "enum": [
  19464. "agent.updated"
  19465. ]
  19466. },
  19467. "location": {
  19468. "$ref": "#/components/schemas/Location.Ref"
  19469. },
  19470. "data": {
  19471. "anyOf": [
  19472. {
  19473. "type": "object"
  19474. },
  19475. {
  19476. "type": "array"
  19477. }
  19478. ]
  19479. }
  19480. },
  19481. "required": [
  19482. "id",
  19483. "created",
  19484. "type",
  19485. "data"
  19486. ],
  19487. "additionalProperties": false
  19488. },
  19489. "FileDiff.LegacyInfo": {
  19490. "type": "object",
  19491. "properties": {
  19492. "file": {
  19493. "type": "string"
  19494. },
  19495. "patch": {
  19496. "type": "string"
  19497. },
  19498. "additions": {
  19499. "type": "number"
  19500. },
  19501. "deletions": {
  19502. "type": "number"
  19503. },
  19504. "status": {
  19505. "type": "string",
  19506. "enum": [
  19507. "added",
  19508. "deleted",
  19509. "modified"
  19510. ]
  19511. }
  19512. },
  19513. "required": [
  19514. "additions",
  19515. "deletions"
  19516. ],
  19517. "additionalProperties": false
  19518. },
  19519. "PermissionAction": {
  19520. "type": "string",
  19521. "enum": [
  19522. "allow",
  19523. "deny",
  19524. "ask"
  19525. ]
  19526. },
  19527. "PermissionRule": {
  19528. "type": "object",
  19529. "properties": {
  19530. "permission": {
  19531. "type": "string"
  19532. },
  19533. "pattern": {
  19534. "type": "string"
  19535. },
  19536. "action": {
  19537. "$ref": "#/components/schemas/PermissionAction"
  19538. }
  19539. },
  19540. "required": [
  19541. "permission",
  19542. "pattern",
  19543. "action"
  19544. ],
  19545. "additionalProperties": false
  19546. },
  19547. "PermissionRuleset": {
  19548. "type": "array",
  19549. "items": {
  19550. "$ref": "#/components/schemas/PermissionRule"
  19551. }
  19552. },
  19553. "SessionV1.Info": {
  19554. "type": "object",
  19555. "properties": {
  19556. "id": {
  19557. "type": "string",
  19558. "allOf": [
  19559. {
  19560. "pattern": "^ses"
  19561. }
  19562. ]
  19563. },
  19564. "slug": {
  19565. "type": "string"
  19566. },
  19567. "projectID": {
  19568. "type": "string"
  19569. },
  19570. "workspaceID": {
  19571. "type": "string",
  19572. "allOf": [
  19573. {
  19574. "pattern": "^wrk"
  19575. }
  19576. ]
  19577. },
  19578. "directory": {
  19579. "type": "string"
  19580. },
  19581. "path": {
  19582. "type": "string"
  19583. },
  19584. "parentID": {
  19585. "type": "string",
  19586. "allOf": [
  19587. {
  19588. "pattern": "^ses"
  19589. }
  19590. ]
  19591. },
  19592. "summary": {
  19593. "type": "object",
  19594. "properties": {
  19595. "additions": {
  19596. "type": "number"
  19597. },
  19598. "deletions": {
  19599. "type": "number"
  19600. },
  19601. "files": {
  19602. "type": "number"
  19603. },
  19604. "diffs": {
  19605. "type": "array",
  19606. "items": {
  19607. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  19608. }
  19609. }
  19610. },
  19611. "required": [
  19612. "additions",
  19613. "deletions",
  19614. "files"
  19615. ],
  19616. "additionalProperties": false
  19617. },
  19618. "cost": {
  19619. "type": "number"
  19620. },
  19621. "tokens": {
  19622. "type": "object",
  19623. "properties": {
  19624. "input": {
  19625. "type": "number"
  19626. },
  19627. "output": {
  19628. "type": "number"
  19629. },
  19630. "reasoning": {
  19631. "type": "number"
  19632. },
  19633. "cache": {
  19634. "type": "object",
  19635. "properties": {
  19636. "read": {
  19637. "type": "number"
  19638. },
  19639. "write": {
  19640. "type": "number"
  19641. }
  19642. },
  19643. "required": [
  19644. "read",
  19645. "write"
  19646. ],
  19647. "additionalProperties": false
  19648. }
  19649. },
  19650. "required": [
  19651. "input",
  19652. "output",
  19653. "reasoning",
  19654. "cache"
  19655. ],
  19656. "additionalProperties": false
  19657. },
  19658. "share": {
  19659. "type": "object",
  19660. "properties": {
  19661. "url": {
  19662. "type": "string"
  19663. }
  19664. },
  19665. "required": [
  19666. "url"
  19667. ],
  19668. "additionalProperties": false
  19669. },
  19670. "title": {
  19671. "type": "string"
  19672. },
  19673. "agent": {
  19674. "type": "string"
  19675. },
  19676. "model": {
  19677. "type": "object",
  19678. "properties": {
  19679. "id": {
  19680. "type": "string"
  19681. },
  19682. "providerID": {
  19683. "type": "string"
  19684. },
  19685. "variant": {
  19686. "type": "string"
  19687. }
  19688. },
  19689. "required": [
  19690. "id",
  19691. "providerID"
  19692. ],
  19693. "additionalProperties": false
  19694. },
  19695. "version": {
  19696. "type": "string"
  19697. },
  19698. "metadata": {
  19699. "type": "object"
  19700. },
  19701. "time": {
  19702. "type": "object",
  19703. "properties": {
  19704. "created": {
  19705. "type": "integer",
  19706. "allOf": [
  19707. {
  19708. "minimum": 0
  19709. }
  19710. ]
  19711. },
  19712. "updated": {
  19713. "type": "integer",
  19714. "allOf": [
  19715. {
  19716. "minimum": 0
  19717. }
  19718. ]
  19719. },
  19720. "compacting": {
  19721. "type": "integer",
  19722. "allOf": [
  19723. {
  19724. "minimum": 0
  19725. }
  19726. ]
  19727. },
  19728. "archived": {
  19729. "type": "number"
  19730. }
  19731. },
  19732. "required": [
  19733. "created",
  19734. "updated"
  19735. ],
  19736. "additionalProperties": false
  19737. },
  19738. "permission": {
  19739. "$ref": "#/components/schemas/PermissionRuleset"
  19740. },
  19741. "revert": {
  19742. "type": "object",
  19743. "properties": {
  19744. "messageID": {
  19745. "type": "string",
  19746. "allOf": [
  19747. {
  19748. "pattern": "^msg"
  19749. }
  19750. ]
  19751. },
  19752. "partID": {
  19753. "type": "string",
  19754. "allOf": [
  19755. {
  19756. "pattern": "^prt"
  19757. }
  19758. ]
  19759. },
  19760. "snapshot": {
  19761. "type": "string"
  19762. },
  19763. "diff": {
  19764. "type": "string"
  19765. }
  19766. },
  19767. "required": [
  19768. "messageID"
  19769. ],
  19770. "additionalProperties": false
  19771. }
  19772. },
  19773. "required": [
  19774. "id",
  19775. "slug",
  19776. "projectID",
  19777. "directory",
  19778. "title",
  19779. "version",
  19780. "time"
  19781. ],
  19782. "additionalProperties": false
  19783. },
  19784. "session.created": {
  19785. "type": "object",
  19786. "properties": {
  19787. "id": {
  19788. "type": "string",
  19789. "allOf": [
  19790. {
  19791. "pattern": "^evt_"
  19792. }
  19793. ]
  19794. },
  19795. "created": {
  19796. "type": "number"
  19797. },
  19798. "metadata": {
  19799. "type": "object"
  19800. },
  19801. "type": {
  19802. "type": "string",
  19803. "enum": [
  19804. "session.created"
  19805. ]
  19806. },
  19807. "durable": {
  19808. "type": "object",
  19809. "properties": {
  19810. "aggregateID": {
  19811. "type": "string"
  19812. },
  19813. "seq": {
  19814. "type": "integer",
  19815. "allOf": [
  19816. {
  19817. "minimum": 0
  19818. }
  19819. ]
  19820. },
  19821. "version": {
  19822. "type": "number",
  19823. "enum": [
  19824. 1
  19825. ]
  19826. }
  19827. },
  19828. "required": [
  19829. "aggregateID",
  19830. "seq",
  19831. "version"
  19832. ],
  19833. "additionalProperties": false
  19834. },
  19835. "location": {
  19836. "$ref": "#/components/schemas/Location.Ref"
  19837. },
  19838. "data": {
  19839. "type": "object",
  19840. "properties": {
  19841. "sessionID": {
  19842. "type": "string",
  19843. "allOf": [
  19844. {
  19845. "pattern": "^ses"
  19846. }
  19847. ]
  19848. },
  19849. "info": {
  19850. "$ref": "#/components/schemas/SessionV1.Info"
  19851. }
  19852. },
  19853. "required": [
  19854. "sessionID",
  19855. "info"
  19856. ],
  19857. "additionalProperties": false
  19858. }
  19859. },
  19860. "required": [
  19861. "id",
  19862. "created",
  19863. "type",
  19864. "durable",
  19865. "data"
  19866. ],
  19867. "additionalProperties": false
  19868. },
  19869. "session.updated": {
  19870. "type": "object",
  19871. "properties": {
  19872. "id": {
  19873. "type": "string",
  19874. "allOf": [
  19875. {
  19876. "pattern": "^evt_"
  19877. }
  19878. ]
  19879. },
  19880. "created": {
  19881. "type": "number"
  19882. },
  19883. "metadata": {
  19884. "type": "object"
  19885. },
  19886. "type": {
  19887. "type": "string",
  19888. "enum": [
  19889. "session.updated"
  19890. ]
  19891. },
  19892. "durable": {
  19893. "type": "object",
  19894. "properties": {
  19895. "aggregateID": {
  19896. "type": "string"
  19897. },
  19898. "seq": {
  19899. "type": "integer",
  19900. "allOf": [
  19901. {
  19902. "minimum": 0
  19903. }
  19904. ]
  19905. },
  19906. "version": {
  19907. "type": "number",
  19908. "enum": [
  19909. 1
  19910. ]
  19911. }
  19912. },
  19913. "required": [
  19914. "aggregateID",
  19915. "seq",
  19916. "version"
  19917. ],
  19918. "additionalProperties": false
  19919. },
  19920. "location": {
  19921. "$ref": "#/components/schemas/Location.Ref"
  19922. },
  19923. "data": {
  19924. "type": "object",
  19925. "properties": {
  19926. "sessionID": {
  19927. "type": "string",
  19928. "allOf": [
  19929. {
  19930. "pattern": "^ses"
  19931. }
  19932. ]
  19933. },
  19934. "info": {
  19935. "$ref": "#/components/schemas/SessionV1.Info"
  19936. }
  19937. },
  19938. "required": [
  19939. "sessionID",
  19940. "info"
  19941. ],
  19942. "additionalProperties": false
  19943. }
  19944. },
  19945. "required": [
  19946. "id",
  19947. "created",
  19948. "type",
  19949. "durable",
  19950. "data"
  19951. ],
  19952. "additionalProperties": false
  19953. },
  19954. "session.deleted1": {
  19955. "type": "object",
  19956. "properties": {
  19957. "id": {
  19958. "type": "string",
  19959. "allOf": [
  19960. {
  19961. "pattern": "^evt_"
  19962. }
  19963. ]
  19964. },
  19965. "created": {
  19966. "type": "number"
  19967. },
  19968. "metadata": {
  19969. "type": "object"
  19970. },
  19971. "type": {
  19972. "type": "string",
  19973. "enum": [
  19974. "session.deleted"
  19975. ]
  19976. },
  19977. "durable": {
  19978. "type": "object",
  19979. "properties": {
  19980. "aggregateID": {
  19981. "type": "string"
  19982. },
  19983. "seq": {
  19984. "type": "integer",
  19985. "allOf": [
  19986. {
  19987. "minimum": 0
  19988. }
  19989. ]
  19990. },
  19991. "version": {
  19992. "type": "number",
  19993. "enum": [
  19994. 1
  19995. ]
  19996. }
  19997. },
  19998. "required": [
  19999. "aggregateID",
  20000. "seq",
  20001. "version"
  20002. ],
  20003. "additionalProperties": false
  20004. },
  20005. "location": {
  20006. "$ref": "#/components/schemas/Location.Ref"
  20007. },
  20008. "data": {
  20009. "type": "object",
  20010. "properties": {
  20011. "sessionID": {
  20012. "type": "string",
  20013. "allOf": [
  20014. {
  20015. "pattern": "^ses"
  20016. }
  20017. ]
  20018. },
  20019. "info": {
  20020. "$ref": "#/components/schemas/SessionV1.Info"
  20021. }
  20022. },
  20023. "required": [
  20024. "sessionID",
  20025. "info"
  20026. ],
  20027. "additionalProperties": false
  20028. }
  20029. },
  20030. "required": [
  20031. "id",
  20032. "created",
  20033. "type",
  20034. "durable",
  20035. "data"
  20036. ],
  20037. "additionalProperties": false
  20038. },
  20039. "JSONSchema": {
  20040. "type": "object"
  20041. },
  20042. "OutputFormat": {
  20043. "anyOf": [
  20044. {
  20045. "type": "object",
  20046. "properties": {
  20047. "type": {
  20048. "type": "string",
  20049. "enum": [
  20050. "text"
  20051. ]
  20052. }
  20053. },
  20054. "required": [
  20055. "type"
  20056. ],
  20057. "additionalProperties": false
  20058. },
  20059. {
  20060. "type": "object",
  20061. "properties": {
  20062. "type": {
  20063. "type": "string",
  20064. "enum": [
  20065. "json_schema"
  20066. ]
  20067. },
  20068. "schema": {
  20069. "$ref": "#/components/schemas/JSONSchema"
  20070. },
  20071. "retryCount": {
  20072. "anyOf": [
  20073. {
  20074. "anyOf": [
  20075. {
  20076. "type": "integer",
  20077. "allOf": [
  20078. {
  20079. "minimum": 0
  20080. }
  20081. ]
  20082. },
  20083. {
  20084. "type": "null"
  20085. }
  20086. ]
  20087. },
  20088. {
  20089. "type": "null"
  20090. }
  20091. ]
  20092. }
  20093. },
  20094. "required": [
  20095. "type",
  20096. "schema"
  20097. ],
  20098. "additionalProperties": false
  20099. }
  20100. ]
  20101. },
  20102. "UserMessage": {
  20103. "type": "object",
  20104. "properties": {
  20105. "id": {
  20106. "type": "string",
  20107. "allOf": [
  20108. {
  20109. "pattern": "^msg"
  20110. }
  20111. ]
  20112. },
  20113. "sessionID": {
  20114. "type": "string",
  20115. "allOf": [
  20116. {
  20117. "pattern": "^ses"
  20118. }
  20119. ]
  20120. },
  20121. "role": {
  20122. "type": "string",
  20123. "enum": [
  20124. "user"
  20125. ]
  20126. },
  20127. "time": {
  20128. "type": "object",
  20129. "properties": {
  20130. "created": {
  20131. "type": "number",
  20132. "allOf": [
  20133. {
  20134. "minimum": 0
  20135. }
  20136. ]
  20137. }
  20138. },
  20139. "required": [
  20140. "created"
  20141. ],
  20142. "additionalProperties": false
  20143. },
  20144. "format": {
  20145. "anyOf": [
  20146. {
  20147. "$ref": "#/components/schemas/OutputFormat"
  20148. },
  20149. {
  20150. "type": "null"
  20151. }
  20152. ]
  20153. },
  20154. "summary": {
  20155. "anyOf": [
  20156. {
  20157. "type": "object",
  20158. "properties": {
  20159. "title": {
  20160. "anyOf": [
  20161. {
  20162. "type": "string"
  20163. },
  20164. {
  20165. "type": "null"
  20166. }
  20167. ]
  20168. },
  20169. "body": {
  20170. "anyOf": [
  20171. {
  20172. "type": "string"
  20173. },
  20174. {
  20175. "type": "null"
  20176. }
  20177. ]
  20178. },
  20179. "diffs": {
  20180. "type": "array",
  20181. "items": {
  20182. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  20183. }
  20184. }
  20185. },
  20186. "required": [
  20187. "diffs"
  20188. ],
  20189. "additionalProperties": false
  20190. },
  20191. {
  20192. "type": "null"
  20193. }
  20194. ]
  20195. },
  20196. "agent": {
  20197. "type": "string"
  20198. },
  20199. "model": {
  20200. "type": "object",
  20201. "properties": {
  20202. "providerID": {
  20203. "type": "string"
  20204. },
  20205. "modelID": {
  20206. "type": "string"
  20207. },
  20208. "variant": {
  20209. "anyOf": [
  20210. {
  20211. "type": "string"
  20212. },
  20213. {
  20214. "type": "null"
  20215. }
  20216. ]
  20217. }
  20218. },
  20219. "required": [
  20220. "providerID",
  20221. "modelID"
  20222. ],
  20223. "additionalProperties": false
  20224. },
  20225. "system": {
  20226. "anyOf": [
  20227. {
  20228. "type": "string"
  20229. },
  20230. {
  20231. "type": "null"
  20232. }
  20233. ]
  20234. },
  20235. "tools": {
  20236. "anyOf": [
  20237. {
  20238. "type": "object",
  20239. "additionalProperties": {
  20240. "type": "boolean"
  20241. }
  20242. },
  20243. {
  20244. "type": "null"
  20245. }
  20246. ]
  20247. }
  20248. },
  20249. "required": [
  20250. "id",
  20251. "sessionID",
  20252. "role",
  20253. "time",
  20254. "agent",
  20255. "model"
  20256. ],
  20257. "additionalProperties": false
  20258. },
  20259. "ProviderAuthError": {
  20260. "type": "object",
  20261. "properties": {
  20262. "name": {
  20263. "type": "string",
  20264. "enum": [
  20265. "ProviderAuthError"
  20266. ]
  20267. },
  20268. "data": {
  20269. "type": "object",
  20270. "properties": {
  20271. "providerID": {
  20272. "type": "string"
  20273. },
  20274. "message": {
  20275. "type": "string"
  20276. }
  20277. },
  20278. "required": [
  20279. "providerID",
  20280. "message"
  20281. ],
  20282. "additionalProperties": false
  20283. }
  20284. },
  20285. "required": [
  20286. "name",
  20287. "data"
  20288. ],
  20289. "additionalProperties": false
  20290. },
  20291. "UnknownError1": {
  20292. "type": "object",
  20293. "properties": {
  20294. "name": {
  20295. "type": "string",
  20296. "enum": [
  20297. "UnknownError"
  20298. ]
  20299. },
  20300. "data": {
  20301. "type": "object",
  20302. "properties": {
  20303. "message": {
  20304. "type": "string"
  20305. },
  20306. "ref": {
  20307. "anyOf": [
  20308. {
  20309. "type": "string"
  20310. },
  20311. {
  20312. "type": "null"
  20313. }
  20314. ]
  20315. }
  20316. },
  20317. "required": [
  20318. "message"
  20319. ],
  20320. "additionalProperties": false
  20321. }
  20322. },
  20323. "required": [
  20324. "name",
  20325. "data"
  20326. ],
  20327. "additionalProperties": false
  20328. },
  20329. "MessageOutputLengthError": {
  20330. "type": "object",
  20331. "properties": {
  20332. "name": {
  20333. "type": "string",
  20334. "enum": [
  20335. "MessageOutputLengthError"
  20336. ]
  20337. },
  20338. "data": {
  20339. "anyOf": [
  20340. {
  20341. "type": "object"
  20342. },
  20343. {
  20344. "type": "array"
  20345. }
  20346. ]
  20347. }
  20348. },
  20349. "required": [
  20350. "name",
  20351. "data"
  20352. ],
  20353. "additionalProperties": false
  20354. },
  20355. "MessageAbortedError": {
  20356. "type": "object",
  20357. "properties": {
  20358. "name": {
  20359. "type": "string",
  20360. "enum": [
  20361. "MessageAbortedError"
  20362. ]
  20363. },
  20364. "data": {
  20365. "type": "object",
  20366. "properties": {
  20367. "message": {
  20368. "type": "string"
  20369. }
  20370. },
  20371. "required": [
  20372. "message"
  20373. ],
  20374. "additionalProperties": false
  20375. }
  20376. },
  20377. "required": [
  20378. "name",
  20379. "data"
  20380. ],
  20381. "additionalProperties": false
  20382. },
  20383. "StructuredOutputError": {
  20384. "type": "object",
  20385. "properties": {
  20386. "name": {
  20387. "type": "string",
  20388. "enum": [
  20389. "StructuredOutputError"
  20390. ]
  20391. },
  20392. "data": {
  20393. "type": "object",
  20394. "properties": {
  20395. "message": {
  20396. "type": "string"
  20397. },
  20398. "retries": {
  20399. "type": "integer",
  20400. "allOf": [
  20401. {
  20402. "minimum": 0
  20403. }
  20404. ]
  20405. }
  20406. },
  20407. "required": [
  20408. "message",
  20409. "retries"
  20410. ],
  20411. "additionalProperties": false
  20412. }
  20413. },
  20414. "required": [
  20415. "name",
  20416. "data"
  20417. ],
  20418. "additionalProperties": false
  20419. },
  20420. "ContextOverflowError": {
  20421. "type": "object",
  20422. "properties": {
  20423. "name": {
  20424. "type": "string",
  20425. "enum": [
  20426. "ContextOverflowError"
  20427. ]
  20428. },
  20429. "data": {
  20430. "type": "object",
  20431. "properties": {
  20432. "message": {
  20433. "type": "string"
  20434. },
  20435. "responseBody": {
  20436. "anyOf": [
  20437. {
  20438. "type": "string"
  20439. },
  20440. {
  20441. "type": "null"
  20442. }
  20443. ]
  20444. }
  20445. },
  20446. "required": [
  20447. "message"
  20448. ],
  20449. "additionalProperties": false
  20450. }
  20451. },
  20452. "required": [
  20453. "name",
  20454. "data"
  20455. ],
  20456. "additionalProperties": false
  20457. },
  20458. "ContentFilterError": {
  20459. "type": "object",
  20460. "properties": {
  20461. "name": {
  20462. "type": "string",
  20463. "enum": [
  20464. "ContentFilterError"
  20465. ]
  20466. },
  20467. "data": {
  20468. "type": "object",
  20469. "properties": {
  20470. "message": {
  20471. "type": "string"
  20472. }
  20473. },
  20474. "required": [
  20475. "message"
  20476. ],
  20477. "additionalProperties": false
  20478. }
  20479. },
  20480. "required": [
  20481. "name",
  20482. "data"
  20483. ],
  20484. "additionalProperties": false
  20485. },
  20486. "APIError": {
  20487. "type": "object",
  20488. "properties": {
  20489. "name": {
  20490. "type": "string",
  20491. "enum": [
  20492. "APIError"
  20493. ]
  20494. },
  20495. "data": {
  20496. "type": "object",
  20497. "properties": {
  20498. "message": {
  20499. "type": "string"
  20500. },
  20501. "statusCode": {
  20502. "anyOf": [
  20503. {
  20504. "type": "integer",
  20505. "allOf": [
  20506. {
  20507. "minimum": 0
  20508. }
  20509. ]
  20510. },
  20511. {
  20512. "type": "null"
  20513. }
  20514. ]
  20515. },
  20516. "isRetryable": {
  20517. "type": "boolean"
  20518. },
  20519. "responseHeaders": {
  20520. "anyOf": [
  20521. {
  20522. "type": "object",
  20523. "additionalProperties": {
  20524. "type": "string"
  20525. }
  20526. },
  20527. {
  20528. "type": "null"
  20529. }
  20530. ]
  20531. },
  20532. "responseBody": {
  20533. "anyOf": [
  20534. {
  20535. "type": "string"
  20536. },
  20537. {
  20538. "type": "null"
  20539. }
  20540. ]
  20541. },
  20542. "metadata": {
  20543. "anyOf": [
  20544. {
  20545. "type": "object",
  20546. "additionalProperties": {
  20547. "type": "string"
  20548. }
  20549. },
  20550. {
  20551. "type": "null"
  20552. }
  20553. ]
  20554. }
  20555. },
  20556. "required": [
  20557. "message",
  20558. "isRetryable"
  20559. ],
  20560. "additionalProperties": false
  20561. }
  20562. },
  20563. "required": [
  20564. "name",
  20565. "data"
  20566. ],
  20567. "additionalProperties": false
  20568. },
  20569. "AssistantMessage": {
  20570. "type": "object",
  20571. "properties": {
  20572. "id": {
  20573. "type": "string",
  20574. "allOf": [
  20575. {
  20576. "pattern": "^msg"
  20577. }
  20578. ]
  20579. },
  20580. "sessionID": {
  20581. "type": "string",
  20582. "allOf": [
  20583. {
  20584. "pattern": "^ses"
  20585. }
  20586. ]
  20587. },
  20588. "role": {
  20589. "type": "string",
  20590. "enum": [
  20591. "assistant"
  20592. ]
  20593. },
  20594. "time": {
  20595. "type": "object",
  20596. "properties": {
  20597. "created": {
  20598. "type": "integer",
  20599. "allOf": [
  20600. {
  20601. "minimum": 0
  20602. }
  20603. ]
  20604. },
  20605. "completed": {
  20606. "anyOf": [
  20607. {
  20608. "type": "integer",
  20609. "allOf": [
  20610. {
  20611. "minimum": 0
  20612. }
  20613. ]
  20614. },
  20615. {
  20616. "type": "null"
  20617. }
  20618. ]
  20619. }
  20620. },
  20621. "required": [
  20622. "created"
  20623. ],
  20624. "additionalProperties": false
  20625. },
  20626. "error": {
  20627. "anyOf": [
  20628. {
  20629. "anyOf": [
  20630. {
  20631. "$ref": "#/components/schemas/ProviderAuthError"
  20632. },
  20633. {
  20634. "$ref": "#/components/schemas/UnknownError1"
  20635. },
  20636. {
  20637. "$ref": "#/components/schemas/MessageOutputLengthError"
  20638. },
  20639. {
  20640. "$ref": "#/components/schemas/MessageAbortedError"
  20641. },
  20642. {
  20643. "$ref": "#/components/schemas/StructuredOutputError"
  20644. },
  20645. {
  20646. "$ref": "#/components/schemas/ContextOverflowError"
  20647. },
  20648. {
  20649. "$ref": "#/components/schemas/ContentFilterError"
  20650. },
  20651. {
  20652. "$ref": "#/components/schemas/APIError"
  20653. }
  20654. ]
  20655. },
  20656. {
  20657. "type": "null"
  20658. }
  20659. ]
  20660. },
  20661. "parentID": {
  20662. "type": "string",
  20663. "allOf": [
  20664. {
  20665. "pattern": "^msg"
  20666. }
  20667. ]
  20668. },
  20669. "modelID": {
  20670. "type": "string"
  20671. },
  20672. "providerID": {
  20673. "type": "string"
  20674. },
  20675. "mode": {
  20676. "type": "string"
  20677. },
  20678. "agent": {
  20679. "type": "string"
  20680. },
  20681. "path": {
  20682. "type": "object",
  20683. "properties": {
  20684. "cwd": {
  20685. "type": "string"
  20686. },
  20687. "root": {
  20688. "type": "string"
  20689. }
  20690. },
  20691. "required": [
  20692. "cwd",
  20693. "root"
  20694. ],
  20695. "additionalProperties": false
  20696. },
  20697. "summary": {
  20698. "anyOf": [
  20699. {
  20700. "type": "boolean"
  20701. },
  20702. {
  20703. "type": "null"
  20704. }
  20705. ]
  20706. },
  20707. "cost": {
  20708. "type": "number"
  20709. },
  20710. "tokens": {
  20711. "type": "object",
  20712. "properties": {
  20713. "total": {
  20714. "anyOf": [
  20715. {
  20716. "type": "number"
  20717. },
  20718. {
  20719. "type": "null"
  20720. }
  20721. ]
  20722. },
  20723. "input": {
  20724. "type": "number"
  20725. },
  20726. "output": {
  20727. "type": "number"
  20728. },
  20729. "reasoning": {
  20730. "type": "number"
  20731. },
  20732. "cache": {
  20733. "type": "object",
  20734. "properties": {
  20735. "read": {
  20736. "type": "number"
  20737. },
  20738. "write": {
  20739. "type": "number"
  20740. }
  20741. },
  20742. "required": [
  20743. "read",
  20744. "write"
  20745. ],
  20746. "additionalProperties": false
  20747. }
  20748. },
  20749. "required": [
  20750. "input",
  20751. "output",
  20752. "reasoning",
  20753. "cache"
  20754. ],
  20755. "additionalProperties": false
  20756. },
  20757. "structured": {
  20758. "anyOf": [
  20759. {},
  20760. {
  20761. "type": "null"
  20762. }
  20763. ]
  20764. },
  20765. "variant": {
  20766. "anyOf": [
  20767. {
  20768. "type": "string"
  20769. },
  20770. {
  20771. "type": "null"
  20772. }
  20773. ]
  20774. },
  20775. "finish": {
  20776. "anyOf": [
  20777. {
  20778. "type": "string"
  20779. },
  20780. {
  20781. "type": "null"
  20782. }
  20783. ]
  20784. }
  20785. },
  20786. "required": [
  20787. "id",
  20788. "sessionID",
  20789. "role",
  20790. "time",
  20791. "parentID",
  20792. "modelID",
  20793. "providerID",
  20794. "mode",
  20795. "agent",
  20796. "path",
  20797. "cost",
  20798. "tokens"
  20799. ],
  20800. "additionalProperties": false
  20801. },
  20802. "Message": {
  20803. "anyOf": [
  20804. {
  20805. "$ref": "#/components/schemas/UserMessage"
  20806. },
  20807. {
  20808. "$ref": "#/components/schemas/AssistantMessage"
  20809. }
  20810. ]
  20811. },
  20812. "message.updated": {
  20813. "type": "object",
  20814. "properties": {
  20815. "id": {
  20816. "type": "string",
  20817. "allOf": [
  20818. {
  20819. "pattern": "^evt_"
  20820. }
  20821. ]
  20822. },
  20823. "created": {
  20824. "type": "number"
  20825. },
  20826. "metadata": {
  20827. "type": "object"
  20828. },
  20829. "type": {
  20830. "type": "string",
  20831. "enum": [
  20832. "message.updated"
  20833. ]
  20834. },
  20835. "durable": {
  20836. "type": "object",
  20837. "properties": {
  20838. "aggregateID": {
  20839. "type": "string"
  20840. },
  20841. "seq": {
  20842. "type": "integer",
  20843. "allOf": [
  20844. {
  20845. "minimum": 0
  20846. }
  20847. ]
  20848. },
  20849. "version": {
  20850. "type": "number",
  20851. "enum": [
  20852. 1
  20853. ]
  20854. }
  20855. },
  20856. "required": [
  20857. "aggregateID",
  20858. "seq",
  20859. "version"
  20860. ],
  20861. "additionalProperties": false
  20862. },
  20863. "location": {
  20864. "$ref": "#/components/schemas/Location.Ref"
  20865. },
  20866. "data": {
  20867. "type": "object",
  20868. "properties": {
  20869. "sessionID": {
  20870. "type": "string",
  20871. "allOf": [
  20872. {
  20873. "pattern": "^ses"
  20874. }
  20875. ]
  20876. },
  20877. "info": {
  20878. "$ref": "#/components/schemas/Message"
  20879. }
  20880. },
  20881. "required": [
  20882. "sessionID",
  20883. "info"
  20884. ],
  20885. "additionalProperties": false
  20886. }
  20887. },
  20888. "required": [
  20889. "id",
  20890. "created",
  20891. "type",
  20892. "durable",
  20893. "data"
  20894. ],
  20895. "additionalProperties": false
  20896. },
  20897. "message.removed": {
  20898. "type": "object",
  20899. "properties": {
  20900. "id": {
  20901. "type": "string",
  20902. "allOf": [
  20903. {
  20904. "pattern": "^evt_"
  20905. }
  20906. ]
  20907. },
  20908. "created": {
  20909. "type": "number"
  20910. },
  20911. "metadata": {
  20912. "type": "object"
  20913. },
  20914. "type": {
  20915. "type": "string",
  20916. "enum": [
  20917. "message.removed"
  20918. ]
  20919. },
  20920. "durable": {
  20921. "type": "object",
  20922. "properties": {
  20923. "aggregateID": {
  20924. "type": "string"
  20925. },
  20926. "seq": {
  20927. "type": "integer",
  20928. "allOf": [
  20929. {
  20930. "minimum": 0
  20931. }
  20932. ]
  20933. },
  20934. "version": {
  20935. "type": "number",
  20936. "enum": [
  20937. 1
  20938. ]
  20939. }
  20940. },
  20941. "required": [
  20942. "aggregateID",
  20943. "seq",
  20944. "version"
  20945. ],
  20946. "additionalProperties": false
  20947. },
  20948. "location": {
  20949. "$ref": "#/components/schemas/Location.Ref"
  20950. },
  20951. "data": {
  20952. "type": "object",
  20953. "properties": {
  20954. "sessionID": {
  20955. "type": "string",
  20956. "allOf": [
  20957. {
  20958. "pattern": "^ses"
  20959. }
  20960. ]
  20961. },
  20962. "messageID": {
  20963. "type": "string",
  20964. "allOf": [
  20965. {
  20966. "pattern": "^msg"
  20967. }
  20968. ]
  20969. }
  20970. },
  20971. "required": [
  20972. "sessionID",
  20973. "messageID"
  20974. ],
  20975. "additionalProperties": false
  20976. }
  20977. },
  20978. "required": [
  20979. "id",
  20980. "created",
  20981. "type",
  20982. "durable",
  20983. "data"
  20984. ],
  20985. "additionalProperties": false
  20986. },
  20987. "TextPart": {
  20988. "type": "object",
  20989. "properties": {
  20990. "id": {
  20991. "type": "string",
  20992. "allOf": [
  20993. {
  20994. "pattern": "^prt"
  20995. }
  20996. ]
  20997. },
  20998. "sessionID": {
  20999. "type": "string",
  21000. "allOf": [
  21001. {
  21002. "pattern": "^ses"
  21003. }
  21004. ]
  21005. },
  21006. "messageID": {
  21007. "type": "string",
  21008. "allOf": [
  21009. {
  21010. "pattern": "^msg"
  21011. }
  21012. ]
  21013. },
  21014. "type": {
  21015. "type": "string",
  21016. "enum": [
  21017. "text"
  21018. ]
  21019. },
  21020. "text": {
  21021. "type": "string"
  21022. },
  21023. "synthetic": {
  21024. "anyOf": [
  21025. {
  21026. "type": "boolean"
  21027. },
  21028. {
  21029. "type": "null"
  21030. }
  21031. ]
  21032. },
  21033. "ignored": {
  21034. "anyOf": [
  21035. {
  21036. "type": "boolean"
  21037. },
  21038. {
  21039. "type": "null"
  21040. }
  21041. ]
  21042. },
  21043. "time": {
  21044. "anyOf": [
  21045. {
  21046. "type": "object",
  21047. "properties": {
  21048. "start": {
  21049. "type": "integer",
  21050. "allOf": [
  21051. {
  21052. "minimum": 0
  21053. }
  21054. ]
  21055. },
  21056. "end": {
  21057. "anyOf": [
  21058. {
  21059. "type": "integer",
  21060. "allOf": [
  21061. {
  21062. "minimum": 0
  21063. }
  21064. ]
  21065. },
  21066. {
  21067. "type": "null"
  21068. }
  21069. ]
  21070. }
  21071. },
  21072. "required": [
  21073. "start"
  21074. ],
  21075. "additionalProperties": false
  21076. },
  21077. {
  21078. "type": "null"
  21079. }
  21080. ]
  21081. },
  21082. "metadata": {
  21083. "anyOf": [
  21084. {
  21085. "type": "object"
  21086. },
  21087. {
  21088. "type": "null"
  21089. }
  21090. ]
  21091. }
  21092. },
  21093. "required": [
  21094. "id",
  21095. "sessionID",
  21096. "messageID",
  21097. "type",
  21098. "text"
  21099. ],
  21100. "additionalProperties": false
  21101. },
  21102. "SubtaskPart": {
  21103. "type": "object",
  21104. "properties": {
  21105. "id": {
  21106. "type": "string",
  21107. "allOf": [
  21108. {
  21109. "pattern": "^prt"
  21110. }
  21111. ]
  21112. },
  21113. "sessionID": {
  21114. "type": "string",
  21115. "allOf": [
  21116. {
  21117. "pattern": "^ses"
  21118. }
  21119. ]
  21120. },
  21121. "messageID": {
  21122. "type": "string",
  21123. "allOf": [
  21124. {
  21125. "pattern": "^msg"
  21126. }
  21127. ]
  21128. },
  21129. "type": {
  21130. "type": "string",
  21131. "enum": [
  21132. "subtask"
  21133. ]
  21134. },
  21135. "prompt": {
  21136. "type": "string"
  21137. },
  21138. "description": {
  21139. "type": "string"
  21140. },
  21141. "agent": {
  21142. "type": "string"
  21143. },
  21144. "model": {
  21145. "anyOf": [
  21146. {
  21147. "type": "object",
  21148. "properties": {
  21149. "providerID": {
  21150. "type": "string"
  21151. },
  21152. "modelID": {
  21153. "type": "string"
  21154. }
  21155. },
  21156. "required": [
  21157. "providerID",
  21158. "modelID"
  21159. ],
  21160. "additionalProperties": false
  21161. },
  21162. {
  21163. "type": "null"
  21164. }
  21165. ]
  21166. },
  21167. "command": {
  21168. "anyOf": [
  21169. {
  21170. "type": "string"
  21171. },
  21172. {
  21173. "type": "null"
  21174. }
  21175. ]
  21176. }
  21177. },
  21178. "required": [
  21179. "id",
  21180. "sessionID",
  21181. "messageID",
  21182. "type",
  21183. "prompt",
  21184. "description",
  21185. "agent"
  21186. ],
  21187. "additionalProperties": false
  21188. },
  21189. "ReasoningPart": {
  21190. "type": "object",
  21191. "properties": {
  21192. "id": {
  21193. "type": "string",
  21194. "allOf": [
  21195. {
  21196. "pattern": "^prt"
  21197. }
  21198. ]
  21199. },
  21200. "sessionID": {
  21201. "type": "string",
  21202. "allOf": [
  21203. {
  21204. "pattern": "^ses"
  21205. }
  21206. ]
  21207. },
  21208. "messageID": {
  21209. "type": "string",
  21210. "allOf": [
  21211. {
  21212. "pattern": "^msg"
  21213. }
  21214. ]
  21215. },
  21216. "type": {
  21217. "type": "string",
  21218. "enum": [
  21219. "reasoning"
  21220. ]
  21221. },
  21222. "text": {
  21223. "type": "string"
  21224. },
  21225. "metadata": {
  21226. "anyOf": [
  21227. {
  21228. "type": "object"
  21229. },
  21230. {
  21231. "type": "null"
  21232. }
  21233. ]
  21234. },
  21235. "time": {
  21236. "type": "object",
  21237. "properties": {
  21238. "start": {
  21239. "type": "integer",
  21240. "allOf": [
  21241. {
  21242. "minimum": 0
  21243. }
  21244. ]
  21245. },
  21246. "end": {
  21247. "anyOf": [
  21248. {
  21249. "type": "integer",
  21250. "allOf": [
  21251. {
  21252. "minimum": 0
  21253. }
  21254. ]
  21255. },
  21256. {
  21257. "type": "null"
  21258. }
  21259. ]
  21260. }
  21261. },
  21262. "required": [
  21263. "start"
  21264. ],
  21265. "additionalProperties": false
  21266. }
  21267. },
  21268. "required": [
  21269. "id",
  21270. "sessionID",
  21271. "messageID",
  21272. "type",
  21273. "text",
  21274. "time"
  21275. ],
  21276. "additionalProperties": false
  21277. },
  21278. "FilePartSourceText": {
  21279. "type": "object",
  21280. "properties": {
  21281. "value": {
  21282. "type": "string"
  21283. },
  21284. "start": {
  21285. "type": "number"
  21286. },
  21287. "end": {
  21288. "type": "number"
  21289. }
  21290. },
  21291. "required": [
  21292. "value",
  21293. "start",
  21294. "end"
  21295. ],
  21296. "additionalProperties": false
  21297. },
  21298. "FileSource": {
  21299. "type": "object",
  21300. "properties": {
  21301. "text": {
  21302. "$ref": "#/components/schemas/FilePartSourceText"
  21303. },
  21304. "type": {
  21305. "type": "string",
  21306. "enum": [
  21307. "file"
  21308. ]
  21309. },
  21310. "path": {
  21311. "type": "string"
  21312. }
  21313. },
  21314. "required": [
  21315. "text",
  21316. "type",
  21317. "path"
  21318. ],
  21319. "additionalProperties": false
  21320. },
  21321. "Range": {
  21322. "type": "object",
  21323. "properties": {
  21324. "start": {
  21325. "type": "object",
  21326. "properties": {
  21327. "line": {
  21328. "type": "integer",
  21329. "allOf": [
  21330. {
  21331. "minimum": 0
  21332. }
  21333. ]
  21334. },
  21335. "character": {
  21336. "type": "integer",
  21337. "allOf": [
  21338. {
  21339. "minimum": 0
  21340. }
  21341. ]
  21342. }
  21343. },
  21344. "required": [
  21345. "line",
  21346. "character"
  21347. ],
  21348. "additionalProperties": false
  21349. },
  21350. "end": {
  21351. "type": "object",
  21352. "properties": {
  21353. "line": {
  21354. "type": "integer",
  21355. "allOf": [
  21356. {
  21357. "minimum": 0
  21358. }
  21359. ]
  21360. },
  21361. "character": {
  21362. "type": "integer",
  21363. "allOf": [
  21364. {
  21365. "minimum": 0
  21366. }
  21367. ]
  21368. }
  21369. },
  21370. "required": [
  21371. "line",
  21372. "character"
  21373. ],
  21374. "additionalProperties": false
  21375. }
  21376. },
  21377. "required": [
  21378. "start",
  21379. "end"
  21380. ],
  21381. "additionalProperties": false
  21382. },
  21383. "SymbolSource": {
  21384. "type": "object",
  21385. "properties": {
  21386. "text": {
  21387. "$ref": "#/components/schemas/FilePartSourceText"
  21388. },
  21389. "type": {
  21390. "type": "string",
  21391. "enum": [
  21392. "symbol"
  21393. ]
  21394. },
  21395. "path": {
  21396. "type": "string"
  21397. },
  21398. "range": {
  21399. "$ref": "#/components/schemas/Range"
  21400. },
  21401. "name": {
  21402. "type": "string"
  21403. },
  21404. "kind": {
  21405. "type": "integer",
  21406. "allOf": [
  21407. {
  21408. "minimum": 0
  21409. }
  21410. ]
  21411. }
  21412. },
  21413. "required": [
  21414. "text",
  21415. "type",
  21416. "path",
  21417. "range",
  21418. "name",
  21419. "kind"
  21420. ],
  21421. "additionalProperties": false
  21422. },
  21423. "ResourceSource": {
  21424. "type": "object",
  21425. "properties": {
  21426. "text": {
  21427. "$ref": "#/components/schemas/FilePartSourceText"
  21428. },
  21429. "type": {
  21430. "type": "string",
  21431. "enum": [
  21432. "resource"
  21433. ]
  21434. },
  21435. "clientName": {
  21436. "type": "string"
  21437. },
  21438. "uri": {
  21439. "type": "string"
  21440. }
  21441. },
  21442. "required": [
  21443. "text",
  21444. "type",
  21445. "clientName",
  21446. "uri"
  21447. ],
  21448. "additionalProperties": false
  21449. },
  21450. "FilePartSource": {
  21451. "anyOf": [
  21452. {
  21453. "$ref": "#/components/schemas/FileSource"
  21454. },
  21455. {
  21456. "$ref": "#/components/schemas/SymbolSource"
  21457. },
  21458. {
  21459. "$ref": "#/components/schemas/ResourceSource"
  21460. }
  21461. ]
  21462. },
  21463. "FilePart": {
  21464. "type": "object",
  21465. "properties": {
  21466. "id": {
  21467. "type": "string",
  21468. "allOf": [
  21469. {
  21470. "pattern": "^prt"
  21471. }
  21472. ]
  21473. },
  21474. "sessionID": {
  21475. "type": "string",
  21476. "allOf": [
  21477. {
  21478. "pattern": "^ses"
  21479. }
  21480. ]
  21481. },
  21482. "messageID": {
  21483. "type": "string",
  21484. "allOf": [
  21485. {
  21486. "pattern": "^msg"
  21487. }
  21488. ]
  21489. },
  21490. "type": {
  21491. "type": "string",
  21492. "enum": [
  21493. "file"
  21494. ]
  21495. },
  21496. "mime": {
  21497. "type": "string"
  21498. },
  21499. "filename": {
  21500. "anyOf": [
  21501. {
  21502. "type": "string"
  21503. },
  21504. {
  21505. "type": "null"
  21506. }
  21507. ]
  21508. },
  21509. "url": {
  21510. "type": "string"
  21511. },
  21512. "source": {
  21513. "anyOf": [
  21514. {
  21515. "$ref": "#/components/schemas/FilePartSource"
  21516. },
  21517. {
  21518. "type": "null"
  21519. }
  21520. ]
  21521. }
  21522. },
  21523. "required": [
  21524. "id",
  21525. "sessionID",
  21526. "messageID",
  21527. "type",
  21528. "mime",
  21529. "url"
  21530. ],
  21531. "additionalProperties": false
  21532. },
  21533. "ToolStatePending": {
  21534. "type": "object",
  21535. "properties": {
  21536. "status": {
  21537. "type": "string",
  21538. "enum": [
  21539. "pending"
  21540. ]
  21541. },
  21542. "input": {
  21543. "type": "object"
  21544. },
  21545. "raw": {
  21546. "type": "string"
  21547. }
  21548. },
  21549. "required": [
  21550. "status",
  21551. "input",
  21552. "raw"
  21553. ],
  21554. "additionalProperties": false
  21555. },
  21556. "ToolStateRunning": {
  21557. "type": "object",
  21558. "properties": {
  21559. "status": {
  21560. "type": "string",
  21561. "enum": [
  21562. "running"
  21563. ]
  21564. },
  21565. "input": {
  21566. "type": "object"
  21567. },
  21568. "title": {
  21569. "anyOf": [
  21570. {
  21571. "type": "string"
  21572. },
  21573. {
  21574. "type": "null"
  21575. }
  21576. ]
  21577. },
  21578. "metadata": {
  21579. "anyOf": [
  21580. {
  21581. "type": "object"
  21582. },
  21583. {
  21584. "type": "null"
  21585. }
  21586. ]
  21587. },
  21588. "time": {
  21589. "type": "object",
  21590. "properties": {
  21591. "start": {
  21592. "type": "integer",
  21593. "allOf": [
  21594. {
  21595. "minimum": 0
  21596. }
  21597. ]
  21598. }
  21599. },
  21600. "required": [
  21601. "start"
  21602. ],
  21603. "additionalProperties": false
  21604. }
  21605. },
  21606. "required": [
  21607. "status",
  21608. "input",
  21609. "time"
  21610. ],
  21611. "additionalProperties": false
  21612. },
  21613. "ToolStateCompleted": {
  21614. "type": "object",
  21615. "properties": {
  21616. "status": {
  21617. "type": "string",
  21618. "enum": [
  21619. "completed"
  21620. ]
  21621. },
  21622. "input": {
  21623. "type": "object"
  21624. },
  21625. "output": {
  21626. "type": "string"
  21627. },
  21628. "title": {
  21629. "type": "string"
  21630. },
  21631. "metadata": {
  21632. "type": "object"
  21633. },
  21634. "time": {
  21635. "type": "object",
  21636. "properties": {
  21637. "start": {
  21638. "type": "integer",
  21639. "allOf": [
  21640. {
  21641. "minimum": 0
  21642. }
  21643. ]
  21644. },
  21645. "end": {
  21646. "type": "integer",
  21647. "allOf": [
  21648. {
  21649. "minimum": 0
  21650. }
  21651. ]
  21652. },
  21653. "compacted": {
  21654. "anyOf": [
  21655. {
  21656. "type": "integer",
  21657. "allOf": [
  21658. {
  21659. "minimum": 0
  21660. }
  21661. ]
  21662. },
  21663. {
  21664. "type": "null"
  21665. }
  21666. ]
  21667. }
  21668. },
  21669. "required": [
  21670. "start",
  21671. "end"
  21672. ],
  21673. "additionalProperties": false
  21674. },
  21675. "attachments": {
  21676. "anyOf": [
  21677. {
  21678. "type": "array",
  21679. "items": {
  21680. "$ref": "#/components/schemas/FilePart"
  21681. }
  21682. },
  21683. {
  21684. "type": "null"
  21685. }
  21686. ]
  21687. }
  21688. },
  21689. "required": [
  21690. "status",
  21691. "input",
  21692. "output",
  21693. "title",
  21694. "metadata",
  21695. "time"
  21696. ],
  21697. "additionalProperties": false
  21698. },
  21699. "ToolStateError": {
  21700. "type": "object",
  21701. "properties": {
  21702. "status": {
  21703. "type": "string",
  21704. "enum": [
  21705. "error"
  21706. ]
  21707. },
  21708. "input": {
  21709. "type": "object"
  21710. },
  21711. "error": {
  21712. "type": "string"
  21713. },
  21714. "metadata": {
  21715. "anyOf": [
  21716. {
  21717. "type": "object"
  21718. },
  21719. {
  21720. "type": "null"
  21721. }
  21722. ]
  21723. },
  21724. "time": {
  21725. "type": "object",
  21726. "properties": {
  21727. "start": {
  21728. "type": "integer",
  21729. "allOf": [
  21730. {
  21731. "minimum": 0
  21732. }
  21733. ]
  21734. },
  21735. "end": {
  21736. "type": "integer",
  21737. "allOf": [
  21738. {
  21739. "minimum": 0
  21740. }
  21741. ]
  21742. }
  21743. },
  21744. "required": [
  21745. "start",
  21746. "end"
  21747. ],
  21748. "additionalProperties": false
  21749. }
  21750. },
  21751. "required": [
  21752. "status",
  21753. "input",
  21754. "error",
  21755. "time"
  21756. ],
  21757. "additionalProperties": false
  21758. },
  21759. "ToolState": {
  21760. "anyOf": [
  21761. {
  21762. "$ref": "#/components/schemas/ToolStatePending"
  21763. },
  21764. {
  21765. "$ref": "#/components/schemas/ToolStateRunning"
  21766. },
  21767. {
  21768. "$ref": "#/components/schemas/ToolStateCompleted"
  21769. },
  21770. {
  21771. "$ref": "#/components/schemas/ToolStateError"
  21772. }
  21773. ]
  21774. },
  21775. "ToolPart": {
  21776. "type": "object",
  21777. "properties": {
  21778. "id": {
  21779. "type": "string",
  21780. "allOf": [
  21781. {
  21782. "pattern": "^prt"
  21783. }
  21784. ]
  21785. },
  21786. "sessionID": {
  21787. "type": "string",
  21788. "allOf": [
  21789. {
  21790. "pattern": "^ses"
  21791. }
  21792. ]
  21793. },
  21794. "messageID": {
  21795. "type": "string",
  21796. "allOf": [
  21797. {
  21798. "pattern": "^msg"
  21799. }
  21800. ]
  21801. },
  21802. "type": {
  21803. "type": "string",
  21804. "enum": [
  21805. "tool"
  21806. ]
  21807. },
  21808. "callID": {
  21809. "type": "string"
  21810. },
  21811. "tool": {
  21812. "type": "string"
  21813. },
  21814. "state": {
  21815. "$ref": "#/components/schemas/ToolState"
  21816. },
  21817. "metadata": {
  21818. "anyOf": [
  21819. {
  21820. "type": "object"
  21821. },
  21822. {
  21823. "type": "null"
  21824. }
  21825. ]
  21826. }
  21827. },
  21828. "required": [
  21829. "id",
  21830. "sessionID",
  21831. "messageID",
  21832. "type",
  21833. "callID",
  21834. "tool",
  21835. "state"
  21836. ],
  21837. "additionalProperties": false
  21838. },
  21839. "StepStartPart": {
  21840. "type": "object",
  21841. "properties": {
  21842. "id": {
  21843. "type": "string",
  21844. "allOf": [
  21845. {
  21846. "pattern": "^prt"
  21847. }
  21848. ]
  21849. },
  21850. "sessionID": {
  21851. "type": "string",
  21852. "allOf": [
  21853. {
  21854. "pattern": "^ses"
  21855. }
  21856. ]
  21857. },
  21858. "messageID": {
  21859. "type": "string",
  21860. "allOf": [
  21861. {
  21862. "pattern": "^msg"
  21863. }
  21864. ]
  21865. },
  21866. "type": {
  21867. "type": "string",
  21868. "enum": [
  21869. "step-start"
  21870. ]
  21871. },
  21872. "snapshot": {
  21873. "anyOf": [
  21874. {
  21875. "type": "string"
  21876. },
  21877. {
  21878. "type": "null"
  21879. }
  21880. ]
  21881. }
  21882. },
  21883. "required": [
  21884. "id",
  21885. "sessionID",
  21886. "messageID",
  21887. "type"
  21888. ],
  21889. "additionalProperties": false
  21890. },
  21891. "StepFinishPart": {
  21892. "type": "object",
  21893. "properties": {
  21894. "id": {
  21895. "type": "string",
  21896. "allOf": [
  21897. {
  21898. "pattern": "^prt"
  21899. }
  21900. ]
  21901. },
  21902. "sessionID": {
  21903. "type": "string",
  21904. "allOf": [
  21905. {
  21906. "pattern": "^ses"
  21907. }
  21908. ]
  21909. },
  21910. "messageID": {
  21911. "type": "string",
  21912. "allOf": [
  21913. {
  21914. "pattern": "^msg"
  21915. }
  21916. ]
  21917. },
  21918. "type": {
  21919. "type": "string",
  21920. "enum": [
  21921. "step-finish"
  21922. ]
  21923. },
  21924. "reason": {
  21925. "type": "string"
  21926. },
  21927. "snapshot": {
  21928. "anyOf": [
  21929. {
  21930. "type": "string"
  21931. },
  21932. {
  21933. "type": "null"
  21934. }
  21935. ]
  21936. },
  21937. "cost": {
  21938. "type": "number"
  21939. },
  21940. "tokens": {
  21941. "type": "object",
  21942. "properties": {
  21943. "total": {
  21944. "anyOf": [
  21945. {
  21946. "type": "number"
  21947. },
  21948. {
  21949. "type": "null"
  21950. }
  21951. ]
  21952. },
  21953. "input": {
  21954. "type": "number"
  21955. },
  21956. "output": {
  21957. "type": "number"
  21958. },
  21959. "reasoning": {
  21960. "type": "number"
  21961. },
  21962. "cache": {
  21963. "type": "object",
  21964. "properties": {
  21965. "read": {
  21966. "type": "number"
  21967. },
  21968. "write": {
  21969. "type": "number"
  21970. }
  21971. },
  21972. "required": [
  21973. "read",
  21974. "write"
  21975. ],
  21976. "additionalProperties": false
  21977. }
  21978. },
  21979. "required": [
  21980. "input",
  21981. "output",
  21982. "reasoning",
  21983. "cache"
  21984. ],
  21985. "additionalProperties": false
  21986. }
  21987. },
  21988. "required": [
  21989. "id",
  21990. "sessionID",
  21991. "messageID",
  21992. "type",
  21993. "reason",
  21994. "cost",
  21995. "tokens"
  21996. ],
  21997. "additionalProperties": false
  21998. },
  21999. "SnapshotPart": {
  22000. "type": "object",
  22001. "properties": {
  22002. "id": {
  22003. "type": "string",
  22004. "allOf": [
  22005. {
  22006. "pattern": "^prt"
  22007. }
  22008. ]
  22009. },
  22010. "sessionID": {
  22011. "type": "string",
  22012. "allOf": [
  22013. {
  22014. "pattern": "^ses"
  22015. }
  22016. ]
  22017. },
  22018. "messageID": {
  22019. "type": "string",
  22020. "allOf": [
  22021. {
  22022. "pattern": "^msg"
  22023. }
  22024. ]
  22025. },
  22026. "type": {
  22027. "type": "string",
  22028. "enum": [
  22029. "snapshot"
  22030. ]
  22031. },
  22032. "snapshot": {
  22033. "type": "string"
  22034. }
  22035. },
  22036. "required": [
  22037. "id",
  22038. "sessionID",
  22039. "messageID",
  22040. "type",
  22041. "snapshot"
  22042. ],
  22043. "additionalProperties": false
  22044. },
  22045. "PatchPart": {
  22046. "type": "object",
  22047. "properties": {
  22048. "id": {
  22049. "type": "string",
  22050. "allOf": [
  22051. {
  22052. "pattern": "^prt"
  22053. }
  22054. ]
  22055. },
  22056. "sessionID": {
  22057. "type": "string",
  22058. "allOf": [
  22059. {
  22060. "pattern": "^ses"
  22061. }
  22062. ]
  22063. },
  22064. "messageID": {
  22065. "type": "string",
  22066. "allOf": [
  22067. {
  22068. "pattern": "^msg"
  22069. }
  22070. ]
  22071. },
  22072. "type": {
  22073. "type": "string",
  22074. "enum": [
  22075. "patch"
  22076. ]
  22077. },
  22078. "hash": {
  22079. "type": "string"
  22080. },
  22081. "files": {
  22082. "type": "array",
  22083. "items": {
  22084. "type": "string"
  22085. }
  22086. }
  22087. },
  22088. "required": [
  22089. "id",
  22090. "sessionID",
  22091. "messageID",
  22092. "type",
  22093. "hash",
  22094. "files"
  22095. ],
  22096. "additionalProperties": false
  22097. },
  22098. "AgentPart": {
  22099. "type": "object",
  22100. "properties": {
  22101. "id": {
  22102. "type": "string",
  22103. "allOf": [
  22104. {
  22105. "pattern": "^prt"
  22106. }
  22107. ]
  22108. },
  22109. "sessionID": {
  22110. "type": "string",
  22111. "allOf": [
  22112. {
  22113. "pattern": "^ses"
  22114. }
  22115. ]
  22116. },
  22117. "messageID": {
  22118. "type": "string",
  22119. "allOf": [
  22120. {
  22121. "pattern": "^msg"
  22122. }
  22123. ]
  22124. },
  22125. "type": {
  22126. "type": "string",
  22127. "enum": [
  22128. "agent"
  22129. ]
  22130. },
  22131. "name": {
  22132. "type": "string"
  22133. },
  22134. "source": {
  22135. "anyOf": [
  22136. {
  22137. "type": "object",
  22138. "properties": {
  22139. "value": {
  22140. "type": "string"
  22141. },
  22142. "start": {
  22143. "type": "integer",
  22144. "allOf": [
  22145. {
  22146. "minimum": 0
  22147. }
  22148. ]
  22149. },
  22150. "end": {
  22151. "type": "integer",
  22152. "allOf": [
  22153. {
  22154. "minimum": 0
  22155. }
  22156. ]
  22157. }
  22158. },
  22159. "required": [
  22160. "value",
  22161. "start",
  22162. "end"
  22163. ],
  22164. "additionalProperties": false
  22165. },
  22166. {
  22167. "type": "null"
  22168. }
  22169. ]
  22170. }
  22171. },
  22172. "required": [
  22173. "id",
  22174. "sessionID",
  22175. "messageID",
  22176. "type",
  22177. "name"
  22178. ],
  22179. "additionalProperties": false
  22180. },
  22181. "RetryPart": {
  22182. "type": "object",
  22183. "properties": {
  22184. "id": {
  22185. "type": "string",
  22186. "allOf": [
  22187. {
  22188. "pattern": "^prt"
  22189. }
  22190. ]
  22191. },
  22192. "sessionID": {
  22193. "type": "string",
  22194. "allOf": [
  22195. {
  22196. "pattern": "^ses"
  22197. }
  22198. ]
  22199. },
  22200. "messageID": {
  22201. "type": "string",
  22202. "allOf": [
  22203. {
  22204. "pattern": "^msg"
  22205. }
  22206. ]
  22207. },
  22208. "type": {
  22209. "type": "string",
  22210. "enum": [
  22211. "retry"
  22212. ]
  22213. },
  22214. "attempt": {
  22215. "type": "integer",
  22216. "allOf": [
  22217. {
  22218. "minimum": 0
  22219. }
  22220. ]
  22221. },
  22222. "error": {
  22223. "$ref": "#/components/schemas/APIError"
  22224. },
  22225. "time": {
  22226. "type": "object",
  22227. "properties": {
  22228. "created": {
  22229. "type": "integer",
  22230. "allOf": [
  22231. {
  22232. "minimum": 0
  22233. }
  22234. ]
  22235. }
  22236. },
  22237. "required": [
  22238. "created"
  22239. ],
  22240. "additionalProperties": false
  22241. }
  22242. },
  22243. "required": [
  22244. "id",
  22245. "sessionID",
  22246. "messageID",
  22247. "type",
  22248. "attempt",
  22249. "error",
  22250. "time"
  22251. ],
  22252. "additionalProperties": false
  22253. },
  22254. "CompactionPart": {
  22255. "type": "object",
  22256. "properties": {
  22257. "id": {
  22258. "type": "string",
  22259. "allOf": [
  22260. {
  22261. "pattern": "^prt"
  22262. }
  22263. ]
  22264. },
  22265. "sessionID": {
  22266. "type": "string",
  22267. "allOf": [
  22268. {
  22269. "pattern": "^ses"
  22270. }
  22271. ]
  22272. },
  22273. "messageID": {
  22274. "type": "string",
  22275. "allOf": [
  22276. {
  22277. "pattern": "^msg"
  22278. }
  22279. ]
  22280. },
  22281. "type": {
  22282. "type": "string",
  22283. "enum": [
  22284. "compaction"
  22285. ]
  22286. },
  22287. "auto": {
  22288. "type": "boolean"
  22289. },
  22290. "overflow": {
  22291. "anyOf": [
  22292. {
  22293. "type": "boolean"
  22294. },
  22295. {
  22296. "type": "null"
  22297. }
  22298. ]
  22299. },
  22300. "tail_start_id": {
  22301. "anyOf": [
  22302. {
  22303. "type": "string",
  22304. "allOf": [
  22305. {
  22306. "pattern": "^msg"
  22307. }
  22308. ]
  22309. },
  22310. {
  22311. "type": "null"
  22312. }
  22313. ]
  22314. }
  22315. },
  22316. "required": [
  22317. "id",
  22318. "sessionID",
  22319. "messageID",
  22320. "type",
  22321. "auto"
  22322. ],
  22323. "additionalProperties": false
  22324. },
  22325. "Part": {
  22326. "anyOf": [
  22327. {
  22328. "$ref": "#/components/schemas/TextPart"
  22329. },
  22330. {
  22331. "$ref": "#/components/schemas/SubtaskPart"
  22332. },
  22333. {
  22334. "$ref": "#/components/schemas/ReasoningPart"
  22335. },
  22336. {
  22337. "$ref": "#/components/schemas/FilePart"
  22338. },
  22339. {
  22340. "$ref": "#/components/schemas/ToolPart"
  22341. },
  22342. {
  22343. "$ref": "#/components/schemas/StepStartPart"
  22344. },
  22345. {
  22346. "$ref": "#/components/schemas/StepFinishPart"
  22347. },
  22348. {
  22349. "$ref": "#/components/schemas/SnapshotPart"
  22350. },
  22351. {
  22352. "$ref": "#/components/schemas/PatchPart"
  22353. },
  22354. {
  22355. "$ref": "#/components/schemas/AgentPart"
  22356. },
  22357. {
  22358. "$ref": "#/components/schemas/RetryPart"
  22359. },
  22360. {
  22361. "$ref": "#/components/schemas/CompactionPart"
  22362. }
  22363. ]
  22364. },
  22365. "message.part.updated": {
  22366. "type": "object",
  22367. "properties": {
  22368. "id": {
  22369. "type": "string",
  22370. "allOf": [
  22371. {
  22372. "pattern": "^evt_"
  22373. }
  22374. ]
  22375. },
  22376. "created": {
  22377. "type": "number"
  22378. },
  22379. "metadata": {
  22380. "type": "object"
  22381. },
  22382. "type": {
  22383. "type": "string",
  22384. "enum": [
  22385. "message.part.updated"
  22386. ]
  22387. },
  22388. "durable": {
  22389. "type": "object",
  22390. "properties": {
  22391. "aggregateID": {
  22392. "type": "string"
  22393. },
  22394. "seq": {
  22395. "type": "integer",
  22396. "allOf": [
  22397. {
  22398. "minimum": 0
  22399. }
  22400. ]
  22401. },
  22402. "version": {
  22403. "type": "number",
  22404. "enum": [
  22405. 1
  22406. ]
  22407. }
  22408. },
  22409. "required": [
  22410. "aggregateID",
  22411. "seq",
  22412. "version"
  22413. ],
  22414. "additionalProperties": false
  22415. },
  22416. "location": {
  22417. "$ref": "#/components/schemas/Location.Ref"
  22418. },
  22419. "data": {
  22420. "type": "object",
  22421. "properties": {
  22422. "sessionID": {
  22423. "type": "string",
  22424. "allOf": [
  22425. {
  22426. "pattern": "^ses"
  22427. }
  22428. ]
  22429. },
  22430. "part": {
  22431. "$ref": "#/components/schemas/Part"
  22432. },
  22433. "time": {
  22434. "type": "number"
  22435. }
  22436. },
  22437. "required": [
  22438. "sessionID",
  22439. "part",
  22440. "time"
  22441. ],
  22442. "additionalProperties": false
  22443. }
  22444. },
  22445. "required": [
  22446. "id",
  22447. "created",
  22448. "type",
  22449. "durable",
  22450. "data"
  22451. ],
  22452. "additionalProperties": false
  22453. },
  22454. "message.part.removed": {
  22455. "type": "object",
  22456. "properties": {
  22457. "id": {
  22458. "type": "string",
  22459. "allOf": [
  22460. {
  22461. "pattern": "^evt_"
  22462. }
  22463. ]
  22464. },
  22465. "created": {
  22466. "type": "number"
  22467. },
  22468. "metadata": {
  22469. "type": "object"
  22470. },
  22471. "type": {
  22472. "type": "string",
  22473. "enum": [
  22474. "message.part.removed"
  22475. ]
  22476. },
  22477. "durable": {
  22478. "type": "object",
  22479. "properties": {
  22480. "aggregateID": {
  22481. "type": "string"
  22482. },
  22483. "seq": {
  22484. "type": "integer",
  22485. "allOf": [
  22486. {
  22487. "minimum": 0
  22488. }
  22489. ]
  22490. },
  22491. "version": {
  22492. "type": "number",
  22493. "enum": [
  22494. 1
  22495. ]
  22496. }
  22497. },
  22498. "required": [
  22499. "aggregateID",
  22500. "seq",
  22501. "version"
  22502. ],
  22503. "additionalProperties": false
  22504. },
  22505. "location": {
  22506. "$ref": "#/components/schemas/Location.Ref"
  22507. },
  22508. "data": {
  22509. "type": "object",
  22510. "properties": {
  22511. "sessionID": {
  22512. "type": "string",
  22513. "allOf": [
  22514. {
  22515. "pattern": "^ses"
  22516. }
  22517. ]
  22518. },
  22519. "messageID": {
  22520. "type": "string",
  22521. "allOf": [
  22522. {
  22523. "pattern": "^msg"
  22524. }
  22525. ]
  22526. },
  22527. "partID": {
  22528. "type": "string",
  22529. "allOf": [
  22530. {
  22531. "pattern": "^prt"
  22532. }
  22533. ]
  22534. }
  22535. },
  22536. "required": [
  22537. "sessionID",
  22538. "messageID",
  22539. "partID"
  22540. ],
  22541. "additionalProperties": false
  22542. }
  22543. },
  22544. "required": [
  22545. "id",
  22546. "created",
  22547. "type",
  22548. "durable",
  22549. "data"
  22550. ],
  22551. "additionalProperties": false
  22552. },
  22553. "session.usage.updated": {
  22554. "type": "object",
  22555. "properties": {
  22556. "id": {
  22557. "type": "string",
  22558. "allOf": [
  22559. {
  22560. "pattern": "^evt_"
  22561. }
  22562. ]
  22563. },
  22564. "created": {
  22565. "type": "number"
  22566. },
  22567. "metadata": {
  22568. "type": "object"
  22569. },
  22570. "type": {
  22571. "type": "string",
  22572. "enum": [
  22573. "session.usage.updated"
  22574. ]
  22575. },
  22576. "location": {
  22577. "$ref": "#/components/schemas/Location.Ref"
  22578. },
  22579. "data": {
  22580. "type": "object",
  22581. "properties": {
  22582. "sessionID": {
  22583. "type": "string",
  22584. "allOf": [
  22585. {
  22586. "pattern": "^ses"
  22587. }
  22588. ]
  22589. },
  22590. "cost": {
  22591. "$ref": "#/components/schemas/Money.USD"
  22592. },
  22593. "tokens": {
  22594. "$ref": "#/components/schemas/TokenUsage.Info"
  22595. }
  22596. },
  22597. "required": [
  22598. "sessionID",
  22599. "cost",
  22600. "tokens"
  22601. ],
  22602. "additionalProperties": false
  22603. }
  22604. },
  22605. "required": [
  22606. "id",
  22607. "created",
  22608. "type",
  22609. "data"
  22610. ],
  22611. "additionalProperties": false
  22612. },
  22613. "session.text.delta": {
  22614. "type": "object",
  22615. "properties": {
  22616. "id": {
  22617. "type": "string",
  22618. "allOf": [
  22619. {
  22620. "pattern": "^evt_"
  22621. }
  22622. ]
  22623. },
  22624. "created": {
  22625. "type": "number"
  22626. },
  22627. "metadata": {
  22628. "type": "object"
  22629. },
  22630. "type": {
  22631. "type": "string",
  22632. "enum": [
  22633. "session.text.delta"
  22634. ]
  22635. },
  22636. "location": {
  22637. "$ref": "#/components/schemas/Location.Ref"
  22638. },
  22639. "data": {
  22640. "type": "object",
  22641. "properties": {
  22642. "sessionID": {
  22643. "type": "string",
  22644. "allOf": [
  22645. {
  22646. "pattern": "^ses"
  22647. }
  22648. ]
  22649. },
  22650. "assistantMessageID": {
  22651. "type": "string",
  22652. "allOf": [
  22653. {
  22654. "pattern": "^msg_"
  22655. }
  22656. ]
  22657. },
  22658. "ordinal": {
  22659. "type": "integer",
  22660. "allOf": [
  22661. {
  22662. "minimum": 0
  22663. }
  22664. ]
  22665. },
  22666. "delta": {
  22667. "type": "string"
  22668. }
  22669. },
  22670. "required": [
  22671. "sessionID",
  22672. "assistantMessageID",
  22673. "ordinal",
  22674. "delta"
  22675. ],
  22676. "additionalProperties": false
  22677. }
  22678. },
  22679. "required": [
  22680. "id",
  22681. "created",
  22682. "type",
  22683. "data"
  22684. ],
  22685. "additionalProperties": false
  22686. },
  22687. "session.reasoning.delta": {
  22688. "type": "object",
  22689. "properties": {
  22690. "id": {
  22691. "type": "string",
  22692. "allOf": [
  22693. {
  22694. "pattern": "^evt_"
  22695. }
  22696. ]
  22697. },
  22698. "created": {
  22699. "type": "number"
  22700. },
  22701. "metadata": {
  22702. "type": "object"
  22703. },
  22704. "type": {
  22705. "type": "string",
  22706. "enum": [
  22707. "session.reasoning.delta"
  22708. ]
  22709. },
  22710. "location": {
  22711. "$ref": "#/components/schemas/Location.Ref"
  22712. },
  22713. "data": {
  22714. "type": "object",
  22715. "properties": {
  22716. "sessionID": {
  22717. "type": "string",
  22718. "allOf": [
  22719. {
  22720. "pattern": "^ses"
  22721. }
  22722. ]
  22723. },
  22724. "assistantMessageID": {
  22725. "type": "string",
  22726. "allOf": [
  22727. {
  22728. "pattern": "^msg_"
  22729. }
  22730. ]
  22731. },
  22732. "ordinal": {
  22733. "type": "integer",
  22734. "allOf": [
  22735. {
  22736. "minimum": 0
  22737. }
  22738. ]
  22739. },
  22740. "delta": {
  22741. "type": "string"
  22742. }
  22743. },
  22744. "required": [
  22745. "sessionID",
  22746. "assistantMessageID",
  22747. "ordinal",
  22748. "delta"
  22749. ],
  22750. "additionalProperties": false
  22751. }
  22752. },
  22753. "required": [
  22754. "id",
  22755. "created",
  22756. "type",
  22757. "data"
  22758. ],
  22759. "additionalProperties": false
  22760. },
  22761. "session.tool.input.delta": {
  22762. "type": "object",
  22763. "properties": {
  22764. "id": {
  22765. "type": "string",
  22766. "allOf": [
  22767. {
  22768. "pattern": "^evt_"
  22769. }
  22770. ]
  22771. },
  22772. "created": {
  22773. "type": "number"
  22774. },
  22775. "metadata": {
  22776. "type": "object"
  22777. },
  22778. "type": {
  22779. "type": "string",
  22780. "enum": [
  22781. "session.tool.input.delta"
  22782. ]
  22783. },
  22784. "location": {
  22785. "$ref": "#/components/schemas/Location.Ref"
  22786. },
  22787. "data": {
  22788. "type": "object",
  22789. "properties": {
  22790. "sessionID": {
  22791. "type": "string",
  22792. "allOf": [
  22793. {
  22794. "pattern": "^ses"
  22795. }
  22796. ]
  22797. },
  22798. "assistantMessageID": {
  22799. "type": "string",
  22800. "allOf": [
  22801. {
  22802. "pattern": "^msg_"
  22803. }
  22804. ]
  22805. },
  22806. "callID": {
  22807. "type": "string"
  22808. },
  22809. "delta": {
  22810. "type": "string"
  22811. }
  22812. },
  22813. "required": [
  22814. "sessionID",
  22815. "assistantMessageID",
  22816. "callID",
  22817. "delta"
  22818. ],
  22819. "additionalProperties": false
  22820. }
  22821. },
  22822. "required": [
  22823. "id",
  22824. "created",
  22825. "type",
  22826. "data"
  22827. ],
  22828. "additionalProperties": false
  22829. },
  22830. "session.compaction.delta": {
  22831. "type": "object",
  22832. "properties": {
  22833. "id": {
  22834. "type": "string",
  22835. "allOf": [
  22836. {
  22837. "pattern": "^evt_"
  22838. }
  22839. ]
  22840. },
  22841. "created": {
  22842. "type": "number"
  22843. },
  22844. "metadata": {
  22845. "type": "object"
  22846. },
  22847. "type": {
  22848. "type": "string",
  22849. "enum": [
  22850. "session.compaction.delta"
  22851. ]
  22852. },
  22853. "location": {
  22854. "$ref": "#/components/schemas/Location.Ref"
  22855. },
  22856. "data": {
  22857. "type": "object",
  22858. "properties": {
  22859. "sessionID": {
  22860. "type": "string",
  22861. "allOf": [
  22862. {
  22863. "pattern": "^ses"
  22864. }
  22865. ]
  22866. },
  22867. "text": {
  22868. "type": "string"
  22869. }
  22870. },
  22871. "required": [
  22872. "sessionID",
  22873. "text"
  22874. ],
  22875. "additionalProperties": false
  22876. }
  22877. },
  22878. "required": [
  22879. "id",
  22880. "created",
  22881. "type",
  22882. "data"
  22883. ],
  22884. "additionalProperties": false
  22885. },
  22886. "filesystem.changed": {
  22887. "type": "object",
  22888. "properties": {
  22889. "id": {
  22890. "type": "string",
  22891. "allOf": [
  22892. {
  22893. "pattern": "^evt_"
  22894. }
  22895. ]
  22896. },
  22897. "created": {
  22898. "type": "number"
  22899. },
  22900. "metadata": {
  22901. "type": "object"
  22902. },
  22903. "type": {
  22904. "type": "string",
  22905. "enum": [
  22906. "filesystem.changed"
  22907. ]
  22908. },
  22909. "location": {
  22910. "$ref": "#/components/schemas/Location.Ref"
  22911. },
  22912. "data": {
  22913. "type": "object",
  22914. "properties": {
  22915. "file": {
  22916. "type": "string"
  22917. },
  22918. "event": {
  22919. "type": "string",
  22920. "enum": [
  22921. "add",
  22922. "change",
  22923. "unlink"
  22924. ]
  22925. }
  22926. },
  22927. "required": [
  22928. "file",
  22929. "event"
  22930. ],
  22931. "additionalProperties": false
  22932. }
  22933. },
  22934. "required": [
  22935. "id",
  22936. "created",
  22937. "type",
  22938. "data"
  22939. ],
  22940. "additionalProperties": false
  22941. },
  22942. "reference.updated": {
  22943. "type": "object",
  22944. "properties": {
  22945. "id": {
  22946. "type": "string",
  22947. "allOf": [
  22948. {
  22949. "pattern": "^evt_"
  22950. }
  22951. ]
  22952. },
  22953. "created": {
  22954. "type": "number"
  22955. },
  22956. "metadata": {
  22957. "type": "object"
  22958. },
  22959. "type": {
  22960. "type": "string",
  22961. "enum": [
  22962. "reference.updated"
  22963. ]
  22964. },
  22965. "location": {
  22966. "$ref": "#/components/schemas/Location.Ref"
  22967. },
  22968. "data": {
  22969. "anyOf": [
  22970. {
  22971. "type": "object"
  22972. },
  22973. {
  22974. "type": "array"
  22975. }
  22976. ]
  22977. }
  22978. },
  22979. "required": [
  22980. "id",
  22981. "created",
  22982. "type",
  22983. "data"
  22984. ],
  22985. "additionalProperties": false
  22986. },
  22987. "permission.v2.asked": {
  22988. "type": "object",
  22989. "properties": {
  22990. "id": {
  22991. "type": "string",
  22992. "allOf": [
  22993. {
  22994. "pattern": "^evt_"
  22995. }
  22996. ]
  22997. },
  22998. "created": {
  22999. "type": "number"
  23000. },
  23001. "metadata": {
  23002. "type": "object"
  23003. },
  23004. "type": {
  23005. "type": "string",
  23006. "enum": [
  23007. "permission.v2.asked"
  23008. ]
  23009. },
  23010. "location": {
  23011. "$ref": "#/components/schemas/Location.Ref"
  23012. },
  23013. "data": {
  23014. "type": "object",
  23015. "properties": {
  23016. "id": {
  23017. "type": "string",
  23018. "allOf": [
  23019. {
  23020. "pattern": "^per"
  23021. }
  23022. ]
  23023. },
  23024. "sessionID": {
  23025. "type": "string",
  23026. "allOf": [
  23027. {
  23028. "pattern": "^ses"
  23029. }
  23030. ]
  23031. },
  23032. "action": {
  23033. "type": "string"
  23034. },
  23035. "resources": {
  23036. "type": "array",
  23037. "items": {
  23038. "type": "string"
  23039. }
  23040. },
  23041. "save": {
  23042. "type": "array",
  23043. "items": {
  23044. "type": "string"
  23045. }
  23046. },
  23047. "metadata": {
  23048. "type": "object"
  23049. },
  23050. "source": {
  23051. "$ref": "#/components/schemas/PermissionV2.Source"
  23052. }
  23053. },
  23054. "required": [
  23055. "id",
  23056. "sessionID",
  23057. "action",
  23058. "resources"
  23059. ],
  23060. "additionalProperties": false
  23061. }
  23062. },
  23063. "required": [
  23064. "id",
  23065. "created",
  23066. "type",
  23067. "data"
  23068. ],
  23069. "additionalProperties": false
  23070. },
  23071. "permission.v2.replied": {
  23072. "type": "object",
  23073. "properties": {
  23074. "id": {
  23075. "type": "string",
  23076. "allOf": [
  23077. {
  23078. "pattern": "^evt_"
  23079. }
  23080. ]
  23081. },
  23082. "created": {
  23083. "type": "number"
  23084. },
  23085. "metadata": {
  23086. "type": "object"
  23087. },
  23088. "type": {
  23089. "type": "string",
  23090. "enum": [
  23091. "permission.v2.replied"
  23092. ]
  23093. },
  23094. "location": {
  23095. "$ref": "#/components/schemas/Location.Ref"
  23096. },
  23097. "data": {
  23098. "type": "object",
  23099. "properties": {
  23100. "sessionID": {
  23101. "type": "string",
  23102. "allOf": [
  23103. {
  23104. "pattern": "^ses"
  23105. }
  23106. ]
  23107. },
  23108. "requestID": {
  23109. "type": "string",
  23110. "allOf": [
  23111. {
  23112. "pattern": "^per"
  23113. }
  23114. ]
  23115. },
  23116. "reply": {
  23117. "$ref": "#/components/schemas/PermissionV2.Reply"
  23118. }
  23119. },
  23120. "required": [
  23121. "sessionID",
  23122. "requestID",
  23123. "reply"
  23124. ],
  23125. "additionalProperties": false
  23126. }
  23127. },
  23128. "required": [
  23129. "id",
  23130. "created",
  23131. "type",
  23132. "data"
  23133. ],
  23134. "additionalProperties": false
  23135. },
  23136. "plugin.added": {
  23137. "type": "object",
  23138. "properties": {
  23139. "id": {
  23140. "type": "string",
  23141. "allOf": [
  23142. {
  23143. "pattern": "^evt_"
  23144. }
  23145. ]
  23146. },
  23147. "created": {
  23148. "type": "number"
  23149. },
  23150. "metadata": {
  23151. "type": "object"
  23152. },
  23153. "type": {
  23154. "type": "string",
  23155. "enum": [
  23156. "plugin.added"
  23157. ]
  23158. },
  23159. "location": {
  23160. "$ref": "#/components/schemas/Location.Ref"
  23161. },
  23162. "data": {
  23163. "type": "object",
  23164. "properties": {
  23165. "id": {
  23166. "type": "string"
  23167. }
  23168. },
  23169. "required": [
  23170. "id"
  23171. ],
  23172. "additionalProperties": false
  23173. }
  23174. },
  23175. "required": [
  23176. "id",
  23177. "created",
  23178. "type",
  23179. "data"
  23180. ],
  23181. "additionalProperties": false
  23182. },
  23183. "plugin.updated": {
  23184. "type": "object",
  23185. "properties": {
  23186. "id": {
  23187. "type": "string",
  23188. "allOf": [
  23189. {
  23190. "pattern": "^evt_"
  23191. }
  23192. ]
  23193. },
  23194. "created": {
  23195. "type": "number"
  23196. },
  23197. "metadata": {
  23198. "type": "object"
  23199. },
  23200. "type": {
  23201. "type": "string",
  23202. "enum": [
  23203. "plugin.updated"
  23204. ]
  23205. },
  23206. "location": {
  23207. "$ref": "#/components/schemas/Location.Ref"
  23208. },
  23209. "data": {
  23210. "anyOf": [
  23211. {
  23212. "type": "object"
  23213. },
  23214. {
  23215. "type": "array"
  23216. }
  23217. ]
  23218. }
  23219. },
  23220. "required": [
  23221. "id",
  23222. "created",
  23223. "type",
  23224. "data"
  23225. ],
  23226. "additionalProperties": false
  23227. },
  23228. "project.directories.updated": {
  23229. "type": "object",
  23230. "properties": {
  23231. "id": {
  23232. "type": "string",
  23233. "allOf": [
  23234. {
  23235. "pattern": "^evt_"
  23236. }
  23237. ]
  23238. },
  23239. "created": {
  23240. "type": "number"
  23241. },
  23242. "metadata": {
  23243. "type": "object"
  23244. },
  23245. "type": {
  23246. "type": "string",
  23247. "enum": [
  23248. "project.directories.updated"
  23249. ]
  23250. },
  23251. "location": {
  23252. "$ref": "#/components/schemas/Location.Ref"
  23253. },
  23254. "data": {
  23255. "type": "object",
  23256. "properties": {
  23257. "projectID": {
  23258. "type": "string"
  23259. }
  23260. },
  23261. "required": [
  23262. "projectID"
  23263. ],
  23264. "additionalProperties": false
  23265. }
  23266. },
  23267. "required": [
  23268. "id",
  23269. "created",
  23270. "type",
  23271. "data"
  23272. ],
  23273. "additionalProperties": false
  23274. },
  23275. "command.updated": {
  23276. "type": "object",
  23277. "properties": {
  23278. "id": {
  23279. "type": "string",
  23280. "allOf": [
  23281. {
  23282. "pattern": "^evt_"
  23283. }
  23284. ]
  23285. },
  23286. "created": {
  23287. "type": "number"
  23288. },
  23289. "metadata": {
  23290. "type": "object"
  23291. },
  23292. "type": {
  23293. "type": "string",
  23294. "enum": [
  23295. "command.updated"
  23296. ]
  23297. },
  23298. "location": {
  23299. "$ref": "#/components/schemas/Location.Ref"
  23300. },
  23301. "data": {
  23302. "anyOf": [
  23303. {
  23304. "type": "object"
  23305. },
  23306. {
  23307. "type": "array"
  23308. }
  23309. ]
  23310. }
  23311. },
  23312. "required": [
  23313. "id",
  23314. "created",
  23315. "type",
  23316. "data"
  23317. ],
  23318. "additionalProperties": false
  23319. },
  23320. "config.updated": {
  23321. "type": "object",
  23322. "properties": {
  23323. "id": {
  23324. "type": "string",
  23325. "allOf": [
  23326. {
  23327. "pattern": "^evt_"
  23328. }
  23329. ]
  23330. },
  23331. "created": {
  23332. "type": "number"
  23333. },
  23334. "metadata": {
  23335. "type": "object"
  23336. },
  23337. "type": {
  23338. "type": "string",
  23339. "enum": [
  23340. "config.updated"
  23341. ]
  23342. },
  23343. "location": {
  23344. "$ref": "#/components/schemas/Location.Ref"
  23345. },
  23346. "data": {
  23347. "anyOf": [
  23348. {
  23349. "type": "object"
  23350. },
  23351. {
  23352. "type": "array"
  23353. }
  23354. ]
  23355. }
  23356. },
  23357. "required": [
  23358. "id",
  23359. "created",
  23360. "type",
  23361. "data"
  23362. ],
  23363. "additionalProperties": false
  23364. },
  23365. "skill.updated": {
  23366. "type": "object",
  23367. "properties": {
  23368. "id": {
  23369. "type": "string",
  23370. "allOf": [
  23371. {
  23372. "pattern": "^evt_"
  23373. }
  23374. ]
  23375. },
  23376. "created": {
  23377. "type": "number"
  23378. },
  23379. "metadata": {
  23380. "type": "object"
  23381. },
  23382. "type": {
  23383. "type": "string",
  23384. "enum": [
  23385. "skill.updated"
  23386. ]
  23387. },
  23388. "location": {
  23389. "$ref": "#/components/schemas/Location.Ref"
  23390. },
  23391. "data": {
  23392. "anyOf": [
  23393. {
  23394. "type": "object"
  23395. },
  23396. {
  23397. "type": "array"
  23398. }
  23399. ]
  23400. }
  23401. },
  23402. "required": [
  23403. "id",
  23404. "created",
  23405. "type",
  23406. "data"
  23407. ],
  23408. "additionalProperties": false
  23409. },
  23410. "Pty": {
  23411. "type": "object",
  23412. "properties": {
  23413. "id": {
  23414. "type": "string",
  23415. "allOf": [
  23416. {
  23417. "pattern": "^pty"
  23418. }
  23419. ]
  23420. },
  23421. "title": {
  23422. "type": "string"
  23423. },
  23424. "command": {
  23425. "type": "string"
  23426. },
  23427. "args": {
  23428. "type": "array",
  23429. "items": {
  23430. "type": "string"
  23431. }
  23432. },
  23433. "cwd": {
  23434. "type": "string"
  23435. },
  23436. "status": {
  23437. "type": "string",
  23438. "enum": [
  23439. "running",
  23440. "exited"
  23441. ]
  23442. },
  23443. "pid": {
  23444. "type": "integer",
  23445. "allOf": [
  23446. {
  23447. "minimum": 0
  23448. }
  23449. ]
  23450. },
  23451. "exitCode": {
  23452. "type": "integer",
  23453. "allOf": [
  23454. {
  23455. "minimum": 0
  23456. }
  23457. ]
  23458. }
  23459. },
  23460. "required": [
  23461. "id",
  23462. "title",
  23463. "command",
  23464. "args",
  23465. "cwd",
  23466. "status",
  23467. "pid"
  23468. ],
  23469. "additionalProperties": false
  23470. },
  23471. "pty.created": {
  23472. "type": "object",
  23473. "properties": {
  23474. "id": {
  23475. "type": "string",
  23476. "allOf": [
  23477. {
  23478. "pattern": "^evt_"
  23479. }
  23480. ]
  23481. },
  23482. "created": {
  23483. "type": "number"
  23484. },
  23485. "metadata": {
  23486. "type": "object"
  23487. },
  23488. "type": {
  23489. "type": "string",
  23490. "enum": [
  23491. "pty.created"
  23492. ]
  23493. },
  23494. "location": {
  23495. "$ref": "#/components/schemas/Location.Ref"
  23496. },
  23497. "data": {
  23498. "type": "object",
  23499. "properties": {
  23500. "info": {
  23501. "$ref": "#/components/schemas/Pty"
  23502. }
  23503. },
  23504. "required": [
  23505. "info"
  23506. ],
  23507. "additionalProperties": false
  23508. }
  23509. },
  23510. "required": [
  23511. "id",
  23512. "created",
  23513. "type",
  23514. "data"
  23515. ],
  23516. "additionalProperties": false
  23517. },
  23518. "pty.updated": {
  23519. "type": "object",
  23520. "properties": {
  23521. "id": {
  23522. "type": "string",
  23523. "allOf": [
  23524. {
  23525. "pattern": "^evt_"
  23526. }
  23527. ]
  23528. },
  23529. "created": {
  23530. "type": "number"
  23531. },
  23532. "metadata": {
  23533. "type": "object"
  23534. },
  23535. "type": {
  23536. "type": "string",
  23537. "enum": [
  23538. "pty.updated"
  23539. ]
  23540. },
  23541. "location": {
  23542. "$ref": "#/components/schemas/Location.Ref"
  23543. },
  23544. "data": {
  23545. "type": "object",
  23546. "properties": {
  23547. "info": {
  23548. "$ref": "#/components/schemas/Pty"
  23549. }
  23550. },
  23551. "required": [
  23552. "info"
  23553. ],
  23554. "additionalProperties": false
  23555. }
  23556. },
  23557. "required": [
  23558. "id",
  23559. "created",
  23560. "type",
  23561. "data"
  23562. ],
  23563. "additionalProperties": false
  23564. },
  23565. "pty.exited": {
  23566. "type": "object",
  23567. "properties": {
  23568. "id": {
  23569. "type": "string",
  23570. "allOf": [
  23571. {
  23572. "pattern": "^evt_"
  23573. }
  23574. ]
  23575. },
  23576. "created": {
  23577. "type": "number"
  23578. },
  23579. "metadata": {
  23580. "type": "object"
  23581. },
  23582. "type": {
  23583. "type": "string",
  23584. "enum": [
  23585. "pty.exited"
  23586. ]
  23587. },
  23588. "location": {
  23589. "$ref": "#/components/schemas/Location.Ref"
  23590. },
  23591. "data": {
  23592. "type": "object",
  23593. "properties": {
  23594. "id": {
  23595. "type": "string",
  23596. "allOf": [
  23597. {
  23598. "pattern": "^pty"
  23599. }
  23600. ]
  23601. },
  23602. "exitCode": {
  23603. "type": "integer",
  23604. "allOf": [
  23605. {
  23606. "minimum": 0
  23607. }
  23608. ]
  23609. }
  23610. },
  23611. "required": [
  23612. "id",
  23613. "exitCode"
  23614. ],
  23615. "additionalProperties": false
  23616. }
  23617. },
  23618. "required": [
  23619. "id",
  23620. "created",
  23621. "type",
  23622. "data"
  23623. ],
  23624. "additionalProperties": false
  23625. },
  23626. "pty.deleted": {
  23627. "type": "object",
  23628. "properties": {
  23629. "id": {
  23630. "type": "string",
  23631. "allOf": [
  23632. {
  23633. "pattern": "^evt_"
  23634. }
  23635. ]
  23636. },
  23637. "created": {
  23638. "type": "number"
  23639. },
  23640. "metadata": {
  23641. "type": "object"
  23642. },
  23643. "type": {
  23644. "type": "string",
  23645. "enum": [
  23646. "pty.deleted"
  23647. ]
  23648. },
  23649. "location": {
  23650. "$ref": "#/components/schemas/Location.Ref"
  23651. },
  23652. "data": {
  23653. "type": "object",
  23654. "properties": {
  23655. "id": {
  23656. "type": "string",
  23657. "allOf": [
  23658. {
  23659. "pattern": "^pty"
  23660. }
  23661. ]
  23662. }
  23663. },
  23664. "required": [
  23665. "id"
  23666. ],
  23667. "additionalProperties": false
  23668. }
  23669. },
  23670. "required": [
  23671. "id",
  23672. "created",
  23673. "type",
  23674. "data"
  23675. ],
  23676. "additionalProperties": false
  23677. },
  23678. "shell.created": {
  23679. "type": "object",
  23680. "properties": {
  23681. "id": {
  23682. "type": "string",
  23683. "allOf": [
  23684. {
  23685. "pattern": "^evt_"
  23686. }
  23687. ]
  23688. },
  23689. "created": {
  23690. "type": "number"
  23691. },
  23692. "metadata": {
  23693. "type": "object"
  23694. },
  23695. "type": {
  23696. "type": "string",
  23697. "enum": [
  23698. "shell.created"
  23699. ]
  23700. },
  23701. "location": {
  23702. "$ref": "#/components/schemas/Location.Ref"
  23703. },
  23704. "data": {
  23705. "type": "object",
  23706. "properties": {
  23707. "info": {
  23708. "$ref": "#/components/schemas/Shell"
  23709. }
  23710. },
  23711. "required": [
  23712. "info"
  23713. ],
  23714. "additionalProperties": false
  23715. }
  23716. },
  23717. "required": [
  23718. "id",
  23719. "created",
  23720. "type",
  23721. "data"
  23722. ],
  23723. "additionalProperties": false
  23724. },
  23725. "shell.exited": {
  23726. "type": "object",
  23727. "properties": {
  23728. "id": {
  23729. "type": "string",
  23730. "allOf": [
  23731. {
  23732. "pattern": "^evt_"
  23733. }
  23734. ]
  23735. },
  23736. "created": {
  23737. "type": "number"
  23738. },
  23739. "metadata": {
  23740. "type": "object"
  23741. },
  23742. "type": {
  23743. "type": "string",
  23744. "enum": [
  23745. "shell.exited"
  23746. ]
  23747. },
  23748. "location": {
  23749. "$ref": "#/components/schemas/Location.Ref"
  23750. },
  23751. "data": {
  23752. "type": "object",
  23753. "properties": {
  23754. "id": {
  23755. "type": "string",
  23756. "allOf": [
  23757. {
  23758. "pattern": "^sh_"
  23759. }
  23760. ]
  23761. },
  23762. "exit": {
  23763. "anyOf": [
  23764. {
  23765. "type": "number"
  23766. },
  23767. {
  23768. "type": "string",
  23769. "enum": [
  23770. "NaN"
  23771. ]
  23772. },
  23773. {
  23774. "type": "string",
  23775. "enum": [
  23776. "Infinity"
  23777. ]
  23778. },
  23779. {
  23780. "type": "string",
  23781. "enum": [
  23782. "-Infinity"
  23783. ]
  23784. }
  23785. ]
  23786. },
  23787. "status": {
  23788. "type": "string",
  23789. "enum": [
  23790. "running",
  23791. "exited",
  23792. "timeout",
  23793. "killed"
  23794. ]
  23795. }
  23796. },
  23797. "required": [
  23798. "id",
  23799. "status"
  23800. ],
  23801. "additionalProperties": false
  23802. }
  23803. },
  23804. "required": [
  23805. "id",
  23806. "created",
  23807. "type",
  23808. "data"
  23809. ],
  23810. "additionalProperties": false
  23811. },
  23812. "shell.deleted": {
  23813. "type": "object",
  23814. "properties": {
  23815. "id": {
  23816. "type": "string",
  23817. "allOf": [
  23818. {
  23819. "pattern": "^evt_"
  23820. }
  23821. ]
  23822. },
  23823. "created": {
  23824. "type": "number"
  23825. },
  23826. "metadata": {
  23827. "type": "object"
  23828. },
  23829. "type": {
  23830. "type": "string",
  23831. "enum": [
  23832. "shell.deleted"
  23833. ]
  23834. },
  23835. "location": {
  23836. "$ref": "#/components/schemas/Location.Ref"
  23837. },
  23838. "data": {
  23839. "type": "object",
  23840. "properties": {
  23841. "id": {
  23842. "type": "string",
  23843. "allOf": [
  23844. {
  23845. "pattern": "^sh_"
  23846. }
  23847. ]
  23848. }
  23849. },
  23850. "required": [
  23851. "id"
  23852. ],
  23853. "additionalProperties": false
  23854. }
  23855. },
  23856. "required": [
  23857. "id",
  23858. "created",
  23859. "type",
  23860. "data"
  23861. ],
  23862. "additionalProperties": false
  23863. },
  23864. "QuestionV2.Option": {
  23865. "type": "object",
  23866. "properties": {
  23867. "label": {
  23868. "type": "string",
  23869. "description": "Display text (1-5 words, concise)"
  23870. },
  23871. "description": {
  23872. "type": "string",
  23873. "description": "Explanation of choice"
  23874. }
  23875. },
  23876. "required": [
  23877. "label",
  23878. "description"
  23879. ],
  23880. "additionalProperties": false
  23881. },
  23882. "QuestionV2.Info": {
  23883. "type": "object",
  23884. "properties": {
  23885. "question": {
  23886. "type": "string",
  23887. "description": "Complete question"
  23888. },
  23889. "header": {
  23890. "type": "string",
  23891. "description": "Very short label (max 30 chars)"
  23892. },
  23893. "options": {
  23894. "type": "array",
  23895. "items": {
  23896. "$ref": "#/components/schemas/QuestionV2.Option"
  23897. },
  23898. "description": "Available choices"
  23899. },
  23900. "multiple": {
  23901. "type": "boolean"
  23902. },
  23903. "custom": {
  23904. "type": "boolean"
  23905. }
  23906. },
  23907. "required": [
  23908. "question",
  23909. "header",
  23910. "options"
  23911. ],
  23912. "additionalProperties": false
  23913. },
  23914. "QuestionV2.Tool": {
  23915. "type": "object",
  23916. "properties": {
  23917. "messageID": {
  23918. "type": "string"
  23919. },
  23920. "callID": {
  23921. "type": "string"
  23922. }
  23923. },
  23924. "required": [
  23925. "messageID",
  23926. "callID"
  23927. ],
  23928. "additionalProperties": false
  23929. },
  23930. "question.v2.asked": {
  23931. "type": "object",
  23932. "properties": {
  23933. "id": {
  23934. "type": "string",
  23935. "allOf": [
  23936. {
  23937. "pattern": "^evt_"
  23938. }
  23939. ]
  23940. },
  23941. "created": {
  23942. "type": "number"
  23943. },
  23944. "metadata": {
  23945. "type": "object"
  23946. },
  23947. "type": {
  23948. "type": "string",
  23949. "enum": [
  23950. "question.v2.asked"
  23951. ]
  23952. },
  23953. "location": {
  23954. "$ref": "#/components/schemas/Location.Ref"
  23955. },
  23956. "data": {
  23957. "type": "object",
  23958. "properties": {
  23959. "id": {
  23960. "type": "string",
  23961. "allOf": [
  23962. {
  23963. "pattern": "^que"
  23964. }
  23965. ]
  23966. },
  23967. "sessionID": {
  23968. "type": "string",
  23969. "allOf": [
  23970. {
  23971. "pattern": "^ses"
  23972. }
  23973. ]
  23974. },
  23975. "questions": {
  23976. "type": "array",
  23977. "items": {
  23978. "$ref": "#/components/schemas/QuestionV2.Info"
  23979. },
  23980. "description": "Questions to ask"
  23981. },
  23982. "tool": {
  23983. "$ref": "#/components/schemas/QuestionV2.Tool"
  23984. }
  23985. },
  23986. "required": [
  23987. "id",
  23988. "sessionID",
  23989. "questions"
  23990. ],
  23991. "additionalProperties": false
  23992. }
  23993. },
  23994. "required": [
  23995. "id",
  23996. "created",
  23997. "type",
  23998. "data"
  23999. ],
  24000. "additionalProperties": false
  24001. },
  24002. "QuestionV2.Answer": {
  24003. "type": "array",
  24004. "items": {
  24005. "type": "string"
  24006. }
  24007. },
  24008. "question.v2.replied": {
  24009. "type": "object",
  24010. "properties": {
  24011. "id": {
  24012. "type": "string",
  24013. "allOf": [
  24014. {
  24015. "pattern": "^evt_"
  24016. }
  24017. ]
  24018. },
  24019. "created": {
  24020. "type": "number"
  24021. },
  24022. "metadata": {
  24023. "type": "object"
  24024. },
  24025. "type": {
  24026. "type": "string",
  24027. "enum": [
  24028. "question.v2.replied"
  24029. ]
  24030. },
  24031. "location": {
  24032. "$ref": "#/components/schemas/Location.Ref"
  24033. },
  24034. "data": {
  24035. "type": "object",
  24036. "properties": {
  24037. "sessionID": {
  24038. "type": "string",
  24039. "allOf": [
  24040. {
  24041. "pattern": "^ses"
  24042. }
  24043. ]
  24044. },
  24045. "requestID": {
  24046. "type": "string",
  24047. "allOf": [
  24048. {
  24049. "pattern": "^que"
  24050. }
  24051. ]
  24052. },
  24053. "answers": {
  24054. "type": "array",
  24055. "items": {
  24056. "$ref": "#/components/schemas/QuestionV2.Answer"
  24057. }
  24058. }
  24059. },
  24060. "required": [
  24061. "sessionID",
  24062. "requestID",
  24063. "answers"
  24064. ],
  24065. "additionalProperties": false
  24066. }
  24067. },
  24068. "required": [
  24069. "id",
  24070. "created",
  24071. "type",
  24072. "data"
  24073. ],
  24074. "additionalProperties": false
  24075. },
  24076. "question.v2.rejected": {
  24077. "type": "object",
  24078. "properties": {
  24079. "id": {
  24080. "type": "string",
  24081. "allOf": [
  24082. {
  24083. "pattern": "^evt_"
  24084. }
  24085. ]
  24086. },
  24087. "created": {
  24088. "type": "number"
  24089. },
  24090. "metadata": {
  24091. "type": "object"
  24092. },
  24093. "type": {
  24094. "type": "string",
  24095. "enum": [
  24096. "question.v2.rejected"
  24097. ]
  24098. },
  24099. "location": {
  24100. "$ref": "#/components/schemas/Location.Ref"
  24101. },
  24102. "data": {
  24103. "type": "object",
  24104. "properties": {
  24105. "sessionID": {
  24106. "type": "string",
  24107. "allOf": [
  24108. {
  24109. "pattern": "^ses"
  24110. }
  24111. ]
  24112. },
  24113. "requestID": {
  24114. "type": "string",
  24115. "allOf": [
  24116. {
  24117. "pattern": "^que"
  24118. }
  24119. ]
  24120. }
  24121. },
  24122. "required": [
  24123. "sessionID",
  24124. "requestID"
  24125. ],
  24126. "additionalProperties": false
  24127. }
  24128. },
  24129. "required": [
  24130. "id",
  24131. "created",
  24132. "type",
  24133. "data"
  24134. ],
  24135. "additionalProperties": false
  24136. },
  24137. "Form.Metadata1": {
  24138. "type": "object"
  24139. },
  24140. "Form.When1": {
  24141. "type": "object",
  24142. "properties": {
  24143. "key": {
  24144. "type": "string"
  24145. },
  24146. "op": {
  24147. "type": "string",
  24148. "enum": [
  24149. "eq",
  24150. "neq"
  24151. ]
  24152. },
  24153. "value": {
  24154. "anyOf": [
  24155. {
  24156. "type": "string"
  24157. },
  24158. {
  24159. "anyOf": [
  24160. {
  24161. "type": "number"
  24162. },
  24163. {
  24164. "type": "string",
  24165. "enum": [
  24166. "NaN"
  24167. ]
  24168. },
  24169. {
  24170. "type": "string",
  24171. "enum": [
  24172. "Infinity"
  24173. ]
  24174. },
  24175. {
  24176. "type": "string",
  24177. "enum": [
  24178. "-Infinity"
  24179. ]
  24180. }
  24181. ]
  24182. },
  24183. {
  24184. "type": "boolean"
  24185. }
  24186. ]
  24187. }
  24188. },
  24189. "required": [
  24190. "key",
  24191. "op",
  24192. "value"
  24193. ],
  24194. "additionalProperties": false
  24195. },
  24196. "Form.StringField1": {
  24197. "type": "object",
  24198. "properties": {
  24199. "key": {
  24200. "type": "string"
  24201. },
  24202. "title": {
  24203. "type": "string"
  24204. },
  24205. "description": {
  24206. "type": "string"
  24207. },
  24208. "required": {
  24209. "type": "boolean"
  24210. },
  24211. "when": {
  24212. "type": "array",
  24213. "items": {
  24214. "$ref": "#/components/schemas/Form.When1"
  24215. }
  24216. },
  24217. "type": {
  24218. "type": "string",
  24219. "enum": [
  24220. "string"
  24221. ]
  24222. },
  24223. "format": {
  24224. "type": "string",
  24225. "enum": [
  24226. "email",
  24227. "uri",
  24228. "date",
  24229. "date-time"
  24230. ]
  24231. },
  24232. "minLength": {
  24233. "type": "integer",
  24234. "allOf": [
  24235. {
  24236. "minimum": 0
  24237. }
  24238. ]
  24239. },
  24240. "maxLength": {
  24241. "type": "integer",
  24242. "allOf": [
  24243. {
  24244. "minimum": 0
  24245. }
  24246. ]
  24247. },
  24248. "pattern": {
  24249. "type": "string"
  24250. },
  24251. "placeholder": {
  24252. "type": "string"
  24253. },
  24254. "default": {
  24255. "type": "string"
  24256. },
  24257. "options": {
  24258. "type": "array",
  24259. "items": {
  24260. "$ref": "#/components/schemas/Form.Option"
  24261. }
  24262. },
  24263. "custom": {
  24264. "type": "boolean"
  24265. }
  24266. },
  24267. "required": [
  24268. "key",
  24269. "type"
  24270. ],
  24271. "additionalProperties": false
  24272. },
  24273. "Form.NumberField1": {
  24274. "type": "object",
  24275. "properties": {
  24276. "key": {
  24277. "type": "string"
  24278. },
  24279. "title": {
  24280. "type": "string"
  24281. },
  24282. "description": {
  24283. "type": "string"
  24284. },
  24285. "required": {
  24286. "type": "boolean"
  24287. },
  24288. "when": {
  24289. "type": "array",
  24290. "items": {
  24291. "$ref": "#/components/schemas/Form.When1"
  24292. }
  24293. },
  24294. "type": {
  24295. "type": "string",
  24296. "enum": [
  24297. "number"
  24298. ]
  24299. },
  24300. "minimum": {
  24301. "anyOf": [
  24302. {
  24303. "type": "number"
  24304. },
  24305. {
  24306. "type": "string",
  24307. "enum": [
  24308. "NaN"
  24309. ]
  24310. },
  24311. {
  24312. "type": "string",
  24313. "enum": [
  24314. "Infinity"
  24315. ]
  24316. },
  24317. {
  24318. "type": "string",
  24319. "enum": [
  24320. "-Infinity"
  24321. ]
  24322. }
  24323. ]
  24324. },
  24325. "maximum": {
  24326. "anyOf": [
  24327. {
  24328. "type": "number"
  24329. },
  24330. {
  24331. "type": "string",
  24332. "enum": [
  24333. "NaN"
  24334. ]
  24335. },
  24336. {
  24337. "type": "string",
  24338. "enum": [
  24339. "Infinity"
  24340. ]
  24341. },
  24342. {
  24343. "type": "string",
  24344. "enum": [
  24345. "-Infinity"
  24346. ]
  24347. }
  24348. ]
  24349. },
  24350. "default": {
  24351. "anyOf": [
  24352. {
  24353. "type": "number"
  24354. },
  24355. {
  24356. "type": "string",
  24357. "enum": [
  24358. "NaN"
  24359. ]
  24360. },
  24361. {
  24362. "type": "string",
  24363. "enum": [
  24364. "Infinity"
  24365. ]
  24366. },
  24367. {
  24368. "type": "string",
  24369. "enum": [
  24370. "-Infinity"
  24371. ]
  24372. }
  24373. ]
  24374. }
  24375. },
  24376. "required": [
  24377. "key",
  24378. "type"
  24379. ],
  24380. "additionalProperties": false
  24381. },
  24382. "Form.IntegerField1": {
  24383. "type": "object",
  24384. "properties": {
  24385. "key": {
  24386. "type": "string"
  24387. },
  24388. "title": {
  24389. "type": "string"
  24390. },
  24391. "description": {
  24392. "type": "string"
  24393. },
  24394. "required": {
  24395. "type": "boolean"
  24396. },
  24397. "when": {
  24398. "type": "array",
  24399. "items": {
  24400. "$ref": "#/components/schemas/Form.When1"
  24401. }
  24402. },
  24403. "type": {
  24404. "type": "string",
  24405. "enum": [
  24406. "integer"
  24407. ]
  24408. },
  24409. "minimum": {
  24410. "anyOf": [
  24411. {
  24412. "type": "number"
  24413. },
  24414. {
  24415. "type": "string",
  24416. "enum": [
  24417. "NaN"
  24418. ]
  24419. },
  24420. {
  24421. "type": "string",
  24422. "enum": [
  24423. "Infinity"
  24424. ]
  24425. },
  24426. {
  24427. "type": "string",
  24428. "enum": [
  24429. "-Infinity"
  24430. ]
  24431. }
  24432. ]
  24433. },
  24434. "maximum": {
  24435. "anyOf": [
  24436. {
  24437. "type": "number"
  24438. },
  24439. {
  24440. "type": "string",
  24441. "enum": [
  24442. "NaN"
  24443. ]
  24444. },
  24445. {
  24446. "type": "string",
  24447. "enum": [
  24448. "Infinity"
  24449. ]
  24450. },
  24451. {
  24452. "type": "string",
  24453. "enum": [
  24454. "-Infinity"
  24455. ]
  24456. }
  24457. ]
  24458. },
  24459. "default": {
  24460. "anyOf": [
  24461. {
  24462. "type": "number"
  24463. },
  24464. {
  24465. "type": "string",
  24466. "enum": [
  24467. "NaN"
  24468. ]
  24469. },
  24470. {
  24471. "type": "string",
  24472. "enum": [
  24473. "Infinity"
  24474. ]
  24475. },
  24476. {
  24477. "type": "string",
  24478. "enum": [
  24479. "-Infinity"
  24480. ]
  24481. }
  24482. ]
  24483. }
  24484. },
  24485. "required": [
  24486. "key",
  24487. "type"
  24488. ],
  24489. "additionalProperties": false
  24490. },
  24491. "Form.BooleanField1": {
  24492. "type": "object",
  24493. "properties": {
  24494. "key": {
  24495. "type": "string"
  24496. },
  24497. "title": {
  24498. "type": "string"
  24499. },
  24500. "description": {
  24501. "type": "string"
  24502. },
  24503. "required": {
  24504. "type": "boolean"
  24505. },
  24506. "when": {
  24507. "type": "array",
  24508. "items": {
  24509. "$ref": "#/components/schemas/Form.When1"
  24510. }
  24511. },
  24512. "type": {
  24513. "type": "string",
  24514. "enum": [
  24515. "boolean"
  24516. ]
  24517. },
  24518. "default": {
  24519. "type": "boolean"
  24520. }
  24521. },
  24522. "required": [
  24523. "key",
  24524. "type"
  24525. ],
  24526. "additionalProperties": false
  24527. },
  24528. "Form.MultiselectField1": {
  24529. "type": "object",
  24530. "properties": {
  24531. "key": {
  24532. "type": "string"
  24533. },
  24534. "title": {
  24535. "type": "string"
  24536. },
  24537. "description": {
  24538. "type": "string"
  24539. },
  24540. "required": {
  24541. "type": "boolean"
  24542. },
  24543. "when": {
  24544. "type": "array",
  24545. "items": {
  24546. "$ref": "#/components/schemas/Form.When1"
  24547. }
  24548. },
  24549. "type": {
  24550. "type": "string",
  24551. "enum": [
  24552. "multiselect"
  24553. ]
  24554. },
  24555. "options": {
  24556. "type": "array",
  24557. "items": {
  24558. "$ref": "#/components/schemas/Form.Option"
  24559. }
  24560. },
  24561. "minItems": {
  24562. "type": "integer",
  24563. "allOf": [
  24564. {
  24565. "minimum": 0
  24566. }
  24567. ]
  24568. },
  24569. "maxItems": {
  24570. "type": "integer",
  24571. "allOf": [
  24572. {
  24573. "minimum": 0
  24574. }
  24575. ]
  24576. },
  24577. "custom": {
  24578. "type": "boolean"
  24579. },
  24580. "default": {
  24581. "type": "array",
  24582. "items": {
  24583. "type": "string"
  24584. }
  24585. }
  24586. },
  24587. "required": [
  24588. "key",
  24589. "type",
  24590. "options"
  24591. ],
  24592. "additionalProperties": false
  24593. },
  24594. "Form.FormInfo1": {
  24595. "type": "object",
  24596. "properties": {
  24597. "id": {
  24598. "type": "string",
  24599. "allOf": [
  24600. {
  24601. "pattern": "^frm_"
  24602. }
  24603. ]
  24604. },
  24605. "sessionID": {
  24606. "type": "string"
  24607. },
  24608. "title": {
  24609. "type": "string"
  24610. },
  24611. "metadata": {
  24612. "$ref": "#/components/schemas/Form.Metadata1"
  24613. },
  24614. "mode": {
  24615. "type": "string",
  24616. "enum": [
  24617. "form"
  24618. ]
  24619. },
  24620. "fields": {
  24621. "type": "array",
  24622. "items": {
  24623. "anyOf": [
  24624. {
  24625. "$ref": "#/components/schemas/Form.StringField1"
  24626. },
  24627. {
  24628. "$ref": "#/components/schemas/Form.NumberField1"
  24629. },
  24630. {
  24631. "$ref": "#/components/schemas/Form.IntegerField1"
  24632. },
  24633. {
  24634. "$ref": "#/components/schemas/Form.BooleanField1"
  24635. },
  24636. {
  24637. "$ref": "#/components/schemas/Form.MultiselectField1"
  24638. }
  24639. ]
  24640. }
  24641. }
  24642. },
  24643. "required": [
  24644. "id",
  24645. "sessionID",
  24646. "title",
  24647. "mode",
  24648. "fields"
  24649. ],
  24650. "additionalProperties": false
  24651. },
  24652. "Form.UrlInfo1": {
  24653. "type": "object",
  24654. "properties": {
  24655. "id": {
  24656. "type": "string",
  24657. "allOf": [
  24658. {
  24659. "pattern": "^frm_"
  24660. }
  24661. ]
  24662. },
  24663. "sessionID": {
  24664. "type": "string"
  24665. },
  24666. "title": {
  24667. "type": "string"
  24668. },
  24669. "metadata": {
  24670. "$ref": "#/components/schemas/Form.Metadata1"
  24671. },
  24672. "mode": {
  24673. "type": "string",
  24674. "enum": [
  24675. "url"
  24676. ]
  24677. },
  24678. "url": {
  24679. "type": "string"
  24680. }
  24681. },
  24682. "required": [
  24683. "id",
  24684. "sessionID",
  24685. "title",
  24686. "mode",
  24687. "url"
  24688. ],
  24689. "additionalProperties": false
  24690. },
  24691. "form.created": {
  24692. "type": "object",
  24693. "properties": {
  24694. "id": {
  24695. "type": "string",
  24696. "allOf": [
  24697. {
  24698. "pattern": "^evt_"
  24699. }
  24700. ]
  24701. },
  24702. "created": {
  24703. "type": "number"
  24704. },
  24705. "metadata": {
  24706. "type": "object"
  24707. },
  24708. "type": {
  24709. "type": "string",
  24710. "enum": [
  24711. "form.created"
  24712. ]
  24713. },
  24714. "location": {
  24715. "$ref": "#/components/schemas/Location.Ref"
  24716. },
  24717. "data": {
  24718. "type": "object",
  24719. "properties": {
  24720. "form": {
  24721. "anyOf": [
  24722. {
  24723. "$ref": "#/components/schemas/Form.FormInfo1"
  24724. },
  24725. {
  24726. "$ref": "#/components/schemas/Form.UrlInfo1"
  24727. }
  24728. ]
  24729. }
  24730. },
  24731. "required": [
  24732. "form"
  24733. ],
  24734. "additionalProperties": false
  24735. }
  24736. },
  24737. "required": [
  24738. "id",
  24739. "created",
  24740. "type",
  24741. "data"
  24742. ],
  24743. "additionalProperties": false
  24744. },
  24745. "Form.Value1": {
  24746. "anyOf": [
  24747. {
  24748. "type": "string"
  24749. },
  24750. {
  24751. "anyOf": [
  24752. {
  24753. "type": "number"
  24754. },
  24755. {
  24756. "type": "string",
  24757. "enum": [
  24758. "NaN"
  24759. ]
  24760. },
  24761. {
  24762. "type": "string",
  24763. "enum": [
  24764. "Infinity"
  24765. ]
  24766. },
  24767. {
  24768. "type": "string",
  24769. "enum": [
  24770. "-Infinity"
  24771. ]
  24772. }
  24773. ]
  24774. },
  24775. {
  24776. "type": "boolean"
  24777. },
  24778. {
  24779. "type": "array",
  24780. "items": {
  24781. "type": "string"
  24782. }
  24783. }
  24784. ]
  24785. },
  24786. "Form.Answer1": {
  24787. "type": "object",
  24788. "additionalProperties": {
  24789. "$ref": "#/components/schemas/Form.Value1"
  24790. }
  24791. },
  24792. "form.replied": {
  24793. "type": "object",
  24794. "properties": {
  24795. "id": {
  24796. "type": "string",
  24797. "allOf": [
  24798. {
  24799. "pattern": "^evt_"
  24800. }
  24801. ]
  24802. },
  24803. "created": {
  24804. "type": "number"
  24805. },
  24806. "metadata": {
  24807. "type": "object"
  24808. },
  24809. "type": {
  24810. "type": "string",
  24811. "enum": [
  24812. "form.replied"
  24813. ]
  24814. },
  24815. "location": {
  24816. "$ref": "#/components/schemas/Location.Ref"
  24817. },
  24818. "data": {
  24819. "type": "object",
  24820. "properties": {
  24821. "id": {
  24822. "type": "string",
  24823. "allOf": [
  24824. {
  24825. "pattern": "^frm_"
  24826. }
  24827. ]
  24828. },
  24829. "sessionID": {
  24830. "type": "string"
  24831. },
  24832. "answer": {
  24833. "$ref": "#/components/schemas/Form.Answer1"
  24834. }
  24835. },
  24836. "required": [
  24837. "id",
  24838. "sessionID",
  24839. "answer"
  24840. ],
  24841. "additionalProperties": false
  24842. }
  24843. },
  24844. "required": [
  24845. "id",
  24846. "created",
  24847. "type",
  24848. "data"
  24849. ],
  24850. "additionalProperties": false
  24851. },
  24852. "form.cancelled": {
  24853. "type": "object",
  24854. "properties": {
  24855. "id": {
  24856. "type": "string",
  24857. "allOf": [
  24858. {
  24859. "pattern": "^evt_"
  24860. }
  24861. ]
  24862. },
  24863. "created": {
  24864. "type": "number"
  24865. },
  24866. "metadata": {
  24867. "type": "object"
  24868. },
  24869. "type": {
  24870. "type": "string",
  24871. "enum": [
  24872. "form.cancelled"
  24873. ]
  24874. },
  24875. "location": {
  24876. "$ref": "#/components/schemas/Location.Ref"
  24877. },
  24878. "data": {
  24879. "type": "object",
  24880. "properties": {
  24881. "id": {
  24882. "type": "string",
  24883. "allOf": [
  24884. {
  24885. "pattern": "^frm_"
  24886. }
  24887. ]
  24888. },
  24889. "sessionID": {
  24890. "type": "string"
  24891. }
  24892. },
  24893. "required": [
  24894. "id",
  24895. "sessionID"
  24896. ],
  24897. "additionalProperties": false
  24898. }
  24899. },
  24900. "required": [
  24901. "id",
  24902. "created",
  24903. "type",
  24904. "data"
  24905. ],
  24906. "additionalProperties": false
  24907. },
  24908. "SessionStatus": {
  24909. "anyOf": [
  24910. {
  24911. "type": "object",
  24912. "properties": {
  24913. "type": {
  24914. "type": "string",
  24915. "enum": [
  24916. "idle"
  24917. ]
  24918. }
  24919. },
  24920. "required": [
  24921. "type"
  24922. ],
  24923. "additionalProperties": false
  24924. },
  24925. {
  24926. "type": "object",
  24927. "properties": {
  24928. "type": {
  24929. "type": "string",
  24930. "enum": [
  24931. "retry"
  24932. ]
  24933. },
  24934. "attempt": {
  24935. "type": "integer",
  24936. "allOf": [
  24937. {
  24938. "minimum": 0
  24939. }
  24940. ]
  24941. },
  24942. "message": {
  24943. "type": "string"
  24944. },
  24945. "action": {
  24946. "type": "object",
  24947. "properties": {
  24948. "reason": {
  24949. "type": "string"
  24950. },
  24951. "provider": {
  24952. "type": "string"
  24953. },
  24954. "title": {
  24955. "type": "string"
  24956. },
  24957. "message": {
  24958. "type": "string"
  24959. },
  24960. "label": {
  24961. "type": "string"
  24962. },
  24963. "link": {
  24964. "type": "string"
  24965. }
  24966. },
  24967. "required": [
  24968. "reason",
  24969. "provider",
  24970. "title",
  24971. "message",
  24972. "label"
  24973. ],
  24974. "additionalProperties": false
  24975. },
  24976. "next": {
  24977. "type": "integer",
  24978. "allOf": [
  24979. {
  24980. "minimum": 0
  24981. }
  24982. ]
  24983. }
  24984. },
  24985. "required": [
  24986. "type",
  24987. "attempt",
  24988. "message",
  24989. "next"
  24990. ],
  24991. "additionalProperties": false
  24992. },
  24993. {
  24994. "type": "object",
  24995. "properties": {
  24996. "type": {
  24997. "type": "string",
  24998. "enum": [
  24999. "busy"
  25000. ]
  25001. }
  25002. },
  25003. "required": [
  25004. "type"
  25005. ],
  25006. "additionalProperties": false
  25007. }
  25008. ]
  25009. },
  25010. "session.status": {
  25011. "type": "object",
  25012. "properties": {
  25013. "id": {
  25014. "type": "string",
  25015. "allOf": [
  25016. {
  25017. "pattern": "^evt_"
  25018. }
  25019. ]
  25020. },
  25021. "created": {
  25022. "type": "number"
  25023. },
  25024. "metadata": {
  25025. "type": "object"
  25026. },
  25027. "type": {
  25028. "type": "string",
  25029. "enum": [
  25030. "session.status"
  25031. ]
  25032. },
  25033. "location": {
  25034. "$ref": "#/components/schemas/Location.Ref"
  25035. },
  25036. "data": {
  25037. "type": "object",
  25038. "properties": {
  25039. "sessionID": {
  25040. "type": "string",
  25041. "allOf": [
  25042. {
  25043. "pattern": "^ses"
  25044. }
  25045. ]
  25046. },
  25047. "status": {
  25048. "$ref": "#/components/schemas/SessionStatus"
  25049. }
  25050. },
  25051. "required": [
  25052. "sessionID",
  25053. "status"
  25054. ],
  25055. "additionalProperties": false
  25056. }
  25057. },
  25058. "required": [
  25059. "id",
  25060. "created",
  25061. "type",
  25062. "data"
  25063. ],
  25064. "additionalProperties": false
  25065. },
  25066. "session.idle": {
  25067. "type": "object",
  25068. "properties": {
  25069. "id": {
  25070. "type": "string",
  25071. "allOf": [
  25072. {
  25073. "pattern": "^evt_"
  25074. }
  25075. ]
  25076. },
  25077. "created": {
  25078. "type": "number"
  25079. },
  25080. "metadata": {
  25081. "type": "object"
  25082. },
  25083. "type": {
  25084. "type": "string",
  25085. "enum": [
  25086. "session.idle"
  25087. ]
  25088. },
  25089. "location": {
  25090. "$ref": "#/components/schemas/Location.Ref"
  25091. },
  25092. "data": {
  25093. "type": "object",
  25094. "properties": {
  25095. "sessionID": {
  25096. "type": "string",
  25097. "allOf": [
  25098. {
  25099. "pattern": "^ses"
  25100. }
  25101. ]
  25102. }
  25103. },
  25104. "required": [
  25105. "sessionID"
  25106. ],
  25107. "additionalProperties": false
  25108. }
  25109. },
  25110. "required": [
  25111. "id",
  25112. "created",
  25113. "type",
  25114. "data"
  25115. ],
  25116. "additionalProperties": false
  25117. },
  25118. "tui.prompt.append": {
  25119. "type": "object",
  25120. "properties": {
  25121. "id": {
  25122. "type": "string",
  25123. "allOf": [
  25124. {
  25125. "pattern": "^evt_"
  25126. }
  25127. ]
  25128. },
  25129. "created": {
  25130. "type": "number"
  25131. },
  25132. "metadata": {
  25133. "type": "object"
  25134. },
  25135. "type": {
  25136. "type": "string",
  25137. "enum": [
  25138. "tui.prompt.append"
  25139. ]
  25140. },
  25141. "location": {
  25142. "$ref": "#/components/schemas/Location.Ref"
  25143. },
  25144. "data": {
  25145. "type": "object",
  25146. "properties": {
  25147. "text": {
  25148. "type": "string"
  25149. }
  25150. },
  25151. "required": [
  25152. "text"
  25153. ],
  25154. "additionalProperties": false
  25155. }
  25156. },
  25157. "required": [
  25158. "id",
  25159. "created",
  25160. "type",
  25161. "data"
  25162. ],
  25163. "additionalProperties": false
  25164. },
  25165. "tui.command.execute": {
  25166. "type": "object",
  25167. "properties": {
  25168. "id": {
  25169. "type": "string",
  25170. "allOf": [
  25171. {
  25172. "pattern": "^evt_"
  25173. }
  25174. ]
  25175. },
  25176. "created": {
  25177. "type": "number"
  25178. },
  25179. "metadata": {
  25180. "type": "object"
  25181. },
  25182. "type": {
  25183. "type": "string",
  25184. "enum": [
  25185. "tui.command.execute"
  25186. ]
  25187. },
  25188. "location": {
  25189. "$ref": "#/components/schemas/Location.Ref"
  25190. },
  25191. "data": {
  25192. "type": "object",
  25193. "properties": {
  25194. "command": {
  25195. "anyOf": [
  25196. {
  25197. "type": "string",
  25198. "enum": [
  25199. "session.list",
  25200. "session.new",
  25201. "session.share",
  25202. "session.interrupt",
  25203. "session.background",
  25204. "session.compact",
  25205. "session.page.up",
  25206. "session.page.down",
  25207. "session.line.up",
  25208. "session.line.down",
  25209. "session.half.page.up",
  25210. "session.half.page.down",
  25211. "session.first",
  25212. "session.last",
  25213. "prompt.clear",
  25214. "prompt.submit",
  25215. "agent.cycle"
  25216. ]
  25217. },
  25218. {
  25219. "type": "string"
  25220. }
  25221. ]
  25222. }
  25223. },
  25224. "required": [
  25225. "command"
  25226. ],
  25227. "additionalProperties": false
  25228. }
  25229. },
  25230. "required": [
  25231. "id",
  25232. "created",
  25233. "type",
  25234. "data"
  25235. ],
  25236. "additionalProperties": false
  25237. },
  25238. "tui.toast.show": {
  25239. "type": "object",
  25240. "properties": {
  25241. "id": {
  25242. "type": "string",
  25243. "allOf": [
  25244. {
  25245. "pattern": "^evt_"
  25246. }
  25247. ]
  25248. },
  25249. "created": {
  25250. "type": "number"
  25251. },
  25252. "metadata": {
  25253. "type": "object"
  25254. },
  25255. "type": {
  25256. "type": "string",
  25257. "enum": [
  25258. "tui.toast.show"
  25259. ]
  25260. },
  25261. "location": {
  25262. "$ref": "#/components/schemas/Location.Ref"
  25263. },
  25264. "data": {
  25265. "type": "object",
  25266. "properties": {
  25267. "title": {
  25268. "type": "string"
  25269. },
  25270. "message": {
  25271. "type": "string"
  25272. },
  25273. "variant": {
  25274. "type": "string",
  25275. "enum": [
  25276. "info",
  25277. "success",
  25278. "warning",
  25279. "error"
  25280. ]
  25281. },
  25282. "duration": {
  25283. "anyOf": [
  25284. {
  25285. "type": "integer",
  25286. "allOf": [
  25287. {
  25288. "exclusiveMinimum": 0
  25289. }
  25290. ]
  25291. },
  25292. {
  25293. "type": "null"
  25294. }
  25295. ]
  25296. }
  25297. },
  25298. "required": [
  25299. "message",
  25300. "variant"
  25301. ],
  25302. "additionalProperties": false
  25303. }
  25304. },
  25305. "required": [
  25306. "id",
  25307. "created",
  25308. "type",
  25309. "data"
  25310. ],
  25311. "additionalProperties": false
  25312. },
  25313. "tui.session.select": {
  25314. "type": "object",
  25315. "properties": {
  25316. "id": {
  25317. "type": "string",
  25318. "allOf": [
  25319. {
  25320. "pattern": "^evt_"
  25321. }
  25322. ]
  25323. },
  25324. "created": {
  25325. "type": "number"
  25326. },
  25327. "metadata": {
  25328. "type": "object"
  25329. },
  25330. "type": {
  25331. "type": "string",
  25332. "enum": [
  25333. "tui.session.select"
  25334. ]
  25335. },
  25336. "location": {
  25337. "$ref": "#/components/schemas/Location.Ref"
  25338. },
  25339. "data": {
  25340. "type": "object",
  25341. "properties": {
  25342. "sessionID": {
  25343. "type": "string",
  25344. "allOf": [
  25345. {
  25346. "pattern": "^ses",
  25347. "description": "Session ID to navigate to"
  25348. }
  25349. ]
  25350. }
  25351. },
  25352. "required": [
  25353. "sessionID"
  25354. ],
  25355. "additionalProperties": false
  25356. }
  25357. },
  25358. "required": [
  25359. "id",
  25360. "created",
  25361. "type",
  25362. "data"
  25363. ],
  25364. "additionalProperties": false
  25365. },
  25366. "installation.updated": {
  25367. "type": "object",
  25368. "properties": {
  25369. "id": {
  25370. "type": "string",
  25371. "allOf": [
  25372. {
  25373. "pattern": "^evt_"
  25374. }
  25375. ]
  25376. },
  25377. "created": {
  25378. "type": "number"
  25379. },
  25380. "metadata": {
  25381. "type": "object"
  25382. },
  25383. "type": {
  25384. "type": "string",
  25385. "enum": [
  25386. "installation.updated"
  25387. ]
  25388. },
  25389. "location": {
  25390. "$ref": "#/components/schemas/Location.Ref"
  25391. },
  25392. "data": {
  25393. "type": "object",
  25394. "properties": {
  25395. "version": {
  25396. "type": "string"
  25397. }
  25398. },
  25399. "required": [
  25400. "version"
  25401. ],
  25402. "additionalProperties": false
  25403. }
  25404. },
  25405. "required": [
  25406. "id",
  25407. "created",
  25408. "type",
  25409. "data"
  25410. ],
  25411. "additionalProperties": false
  25412. },
  25413. "installation.update-available": {
  25414. "type": "object",
  25415. "properties": {
  25416. "id": {
  25417. "type": "string",
  25418. "allOf": [
  25419. {
  25420. "pattern": "^evt_"
  25421. }
  25422. ]
  25423. },
  25424. "created": {
  25425. "type": "number"
  25426. },
  25427. "metadata": {
  25428. "type": "object"
  25429. },
  25430. "type": {
  25431. "type": "string",
  25432. "enum": [
  25433. "installation.update-available"
  25434. ]
  25435. },
  25436. "location": {
  25437. "$ref": "#/components/schemas/Location.Ref"
  25438. },
  25439. "data": {
  25440. "type": "object",
  25441. "properties": {
  25442. "version": {
  25443. "type": "string"
  25444. }
  25445. },
  25446. "required": [
  25447. "version"
  25448. ],
  25449. "additionalProperties": false
  25450. }
  25451. },
  25452. "required": [
  25453. "id",
  25454. "created",
  25455. "type",
  25456. "data"
  25457. ],
  25458. "additionalProperties": false
  25459. },
  25460. "vcs.branch.updated": {
  25461. "type": "object",
  25462. "properties": {
  25463. "id": {
  25464. "type": "string",
  25465. "allOf": [
  25466. {
  25467. "pattern": "^evt_"
  25468. }
  25469. ]
  25470. },
  25471. "created": {
  25472. "type": "number"
  25473. },
  25474. "metadata": {
  25475. "type": "object"
  25476. },
  25477. "type": {
  25478. "type": "string",
  25479. "enum": [
  25480. "vcs.branch.updated"
  25481. ]
  25482. },
  25483. "location": {
  25484. "$ref": "#/components/schemas/Location.Ref"
  25485. },
  25486. "data": {
  25487. "type": "object",
  25488. "properties": {
  25489. "branch": {
  25490. "type": "string"
  25491. }
  25492. },
  25493. "additionalProperties": false
  25494. }
  25495. },
  25496. "required": [
  25497. "id",
  25498. "created",
  25499. "type",
  25500. "data"
  25501. ],
  25502. "additionalProperties": false
  25503. },
  25504. "mcp.status.changed": {
  25505. "type": "object",
  25506. "properties": {
  25507. "id": {
  25508. "type": "string",
  25509. "allOf": [
  25510. {
  25511. "pattern": "^evt_"
  25512. }
  25513. ]
  25514. },
  25515. "created": {
  25516. "type": "number"
  25517. },
  25518. "metadata": {
  25519. "type": "object"
  25520. },
  25521. "type": {
  25522. "type": "string",
  25523. "enum": [
  25524. "mcp.status.changed"
  25525. ]
  25526. },
  25527. "location": {
  25528. "$ref": "#/components/schemas/Location.Ref"
  25529. },
  25530. "data": {
  25531. "type": "object",
  25532. "properties": {
  25533. "server": {
  25534. "type": "string"
  25535. }
  25536. },
  25537. "required": [
  25538. "server"
  25539. ],
  25540. "additionalProperties": false
  25541. }
  25542. },
  25543. "required": [
  25544. "id",
  25545. "created",
  25546. "type",
  25547. "data"
  25548. ],
  25549. "additionalProperties": false
  25550. },
  25551. "mcp.resources.changed": {
  25552. "type": "object",
  25553. "properties": {
  25554. "id": {
  25555. "type": "string",
  25556. "allOf": [
  25557. {
  25558. "pattern": "^evt_"
  25559. }
  25560. ]
  25561. },
  25562. "created": {
  25563. "type": "number"
  25564. },
  25565. "metadata": {
  25566. "type": "object"
  25567. },
  25568. "type": {
  25569. "type": "string",
  25570. "enum": [
  25571. "mcp.resources.changed"
  25572. ]
  25573. },
  25574. "location": {
  25575. "$ref": "#/components/schemas/Location.Ref"
  25576. },
  25577. "data": {
  25578. "type": "object",
  25579. "properties": {
  25580. "server": {
  25581. "type": "string"
  25582. }
  25583. },
  25584. "required": [
  25585. "server"
  25586. ],
  25587. "additionalProperties": false
  25588. }
  25589. },
  25590. "required": [
  25591. "id",
  25592. "created",
  25593. "type",
  25594. "data"
  25595. ],
  25596. "additionalProperties": false
  25597. },
  25598. "permission.asked": {
  25599. "type": "object",
  25600. "properties": {
  25601. "id": {
  25602. "type": "string",
  25603. "allOf": [
  25604. {
  25605. "pattern": "^evt_"
  25606. }
  25607. ]
  25608. },
  25609. "created": {
  25610. "type": "number"
  25611. },
  25612. "metadata": {
  25613. "type": "object"
  25614. },
  25615. "type": {
  25616. "type": "string",
  25617. "enum": [
  25618. "permission.asked"
  25619. ]
  25620. },
  25621. "location": {
  25622. "$ref": "#/components/schemas/Location.Ref"
  25623. },
  25624. "data": {
  25625. "type": "object",
  25626. "properties": {
  25627. "id": {
  25628. "type": "string",
  25629. "allOf": [
  25630. {
  25631. "pattern": "^per"
  25632. }
  25633. ]
  25634. },
  25635. "sessionID": {
  25636. "type": "string",
  25637. "allOf": [
  25638. {
  25639. "pattern": "^ses"
  25640. }
  25641. ]
  25642. },
  25643. "permission": {
  25644. "type": "string"
  25645. },
  25646. "patterns": {
  25647. "type": "array",
  25648. "items": {
  25649. "type": "string"
  25650. }
  25651. },
  25652. "metadata": {
  25653. "type": "object"
  25654. },
  25655. "always": {
  25656. "type": "array",
  25657. "items": {
  25658. "type": "string"
  25659. }
  25660. },
  25661. "tool": {
  25662. "anyOf": [
  25663. {
  25664. "type": "object",
  25665. "properties": {
  25666. "messageID": {
  25667. "type": "string"
  25668. },
  25669. "callID": {
  25670. "type": "string"
  25671. }
  25672. },
  25673. "required": [
  25674. "messageID",
  25675. "callID"
  25676. ],
  25677. "additionalProperties": false
  25678. },
  25679. {
  25680. "type": "null"
  25681. }
  25682. ]
  25683. }
  25684. },
  25685. "required": [
  25686. "id",
  25687. "sessionID",
  25688. "permission",
  25689. "patterns",
  25690. "metadata",
  25691. "always"
  25692. ],
  25693. "additionalProperties": false
  25694. }
  25695. },
  25696. "required": [
  25697. "id",
  25698. "created",
  25699. "type",
  25700. "data"
  25701. ],
  25702. "additionalProperties": false
  25703. },
  25704. "permission.replied": {
  25705. "type": "object",
  25706. "properties": {
  25707. "id": {
  25708. "type": "string",
  25709. "allOf": [
  25710. {
  25711. "pattern": "^evt_"
  25712. }
  25713. ]
  25714. },
  25715. "created": {
  25716. "type": "number"
  25717. },
  25718. "metadata": {
  25719. "type": "object"
  25720. },
  25721. "type": {
  25722. "type": "string",
  25723. "enum": [
  25724. "permission.replied"
  25725. ]
  25726. },
  25727. "location": {
  25728. "$ref": "#/components/schemas/Location.Ref"
  25729. },
  25730. "data": {
  25731. "type": "object",
  25732. "properties": {
  25733. "sessionID": {
  25734. "type": "string",
  25735. "allOf": [
  25736. {
  25737. "pattern": "^ses"
  25738. }
  25739. ]
  25740. },
  25741. "requestID": {
  25742. "type": "string",
  25743. "allOf": [
  25744. {
  25745. "pattern": "^per"
  25746. }
  25747. ]
  25748. },
  25749. "reply": {
  25750. "type": "string",
  25751. "enum": [
  25752. "once",
  25753. "always",
  25754. "reject"
  25755. ]
  25756. }
  25757. },
  25758. "required": [
  25759. "sessionID",
  25760. "requestID",
  25761. "reply"
  25762. ],
  25763. "additionalProperties": false
  25764. }
  25765. },
  25766. "required": [
  25767. "id",
  25768. "created",
  25769. "type",
  25770. "data"
  25771. ],
  25772. "additionalProperties": false
  25773. },
  25774. "QuestionOption": {
  25775. "type": "object",
  25776. "properties": {
  25777. "label": {
  25778. "type": "string",
  25779. "description": "Display text (1-5 words, concise)"
  25780. },
  25781. "description": {
  25782. "type": "string",
  25783. "description": "Explanation of choice"
  25784. }
  25785. },
  25786. "required": [
  25787. "label",
  25788. "description"
  25789. ],
  25790. "additionalProperties": false
  25791. },
  25792. "QuestionInfo": {
  25793. "type": "object",
  25794. "properties": {
  25795. "question": {
  25796. "type": "string",
  25797. "description": "Complete question"
  25798. },
  25799. "header": {
  25800. "type": "string",
  25801. "description": "Very short label (max 30 chars)"
  25802. },
  25803. "options": {
  25804. "type": "array",
  25805. "items": {
  25806. "$ref": "#/components/schemas/QuestionOption"
  25807. },
  25808. "description": "Available choices"
  25809. },
  25810. "multiple": {
  25811. "anyOf": [
  25812. {
  25813. "type": "boolean"
  25814. },
  25815. {
  25816. "type": "null"
  25817. }
  25818. ],
  25819. "description": "Allow selecting multiple choices"
  25820. },
  25821. "custom": {
  25822. "anyOf": [
  25823. {
  25824. "type": "boolean"
  25825. },
  25826. {
  25827. "type": "null"
  25828. }
  25829. ],
  25830. "description": "Allow typing a custom answer (default: true)"
  25831. }
  25832. },
  25833. "required": [
  25834. "question",
  25835. "header",
  25836. "options"
  25837. ],
  25838. "additionalProperties": false
  25839. },
  25840. "QuestionTool": {
  25841. "type": "object",
  25842. "properties": {
  25843. "messageID": {
  25844. "type": "string",
  25845. "allOf": [
  25846. {
  25847. "pattern": "^msg"
  25848. }
  25849. ]
  25850. },
  25851. "callID": {
  25852. "type": "string"
  25853. }
  25854. },
  25855. "required": [
  25856. "messageID",
  25857. "callID"
  25858. ],
  25859. "additionalProperties": false
  25860. },
  25861. "question.asked": {
  25862. "type": "object",
  25863. "properties": {
  25864. "id": {
  25865. "type": "string",
  25866. "allOf": [
  25867. {
  25868. "pattern": "^evt_"
  25869. }
  25870. ]
  25871. },
  25872. "created": {
  25873. "type": "number"
  25874. },
  25875. "metadata": {
  25876. "type": "object"
  25877. },
  25878. "type": {
  25879. "type": "string",
  25880. "enum": [
  25881. "question.asked"
  25882. ]
  25883. },
  25884. "location": {
  25885. "$ref": "#/components/schemas/Location.Ref"
  25886. },
  25887. "data": {
  25888. "type": "object",
  25889. "properties": {
  25890. "id": {
  25891. "type": "string",
  25892. "allOf": [
  25893. {
  25894. "pattern": "^que"
  25895. }
  25896. ]
  25897. },
  25898. "sessionID": {
  25899. "type": "string",
  25900. "allOf": [
  25901. {
  25902. "pattern": "^ses"
  25903. }
  25904. ]
  25905. },
  25906. "questions": {
  25907. "type": "array",
  25908. "items": {
  25909. "$ref": "#/components/schemas/QuestionInfo"
  25910. },
  25911. "description": "Questions to ask"
  25912. },
  25913. "tool": {
  25914. "anyOf": [
  25915. {
  25916. "$ref": "#/components/schemas/QuestionTool"
  25917. },
  25918. {
  25919. "type": "null"
  25920. }
  25921. ]
  25922. }
  25923. },
  25924. "required": [
  25925. "id",
  25926. "sessionID",
  25927. "questions"
  25928. ],
  25929. "additionalProperties": false
  25930. }
  25931. },
  25932. "required": [
  25933. "id",
  25934. "created",
  25935. "type",
  25936. "data"
  25937. ],
  25938. "additionalProperties": false
  25939. },
  25940. "QuestionAnswer": {
  25941. "type": "array",
  25942. "items": {
  25943. "type": "string"
  25944. }
  25945. },
  25946. "question.replied": {
  25947. "type": "object",
  25948. "properties": {
  25949. "id": {
  25950. "type": "string",
  25951. "allOf": [
  25952. {
  25953. "pattern": "^evt_"
  25954. }
  25955. ]
  25956. },
  25957. "created": {
  25958. "type": "number"
  25959. },
  25960. "metadata": {
  25961. "type": "object"
  25962. },
  25963. "type": {
  25964. "type": "string",
  25965. "enum": [
  25966. "question.replied"
  25967. ]
  25968. },
  25969. "location": {
  25970. "$ref": "#/components/schemas/Location.Ref"
  25971. },
  25972. "data": {
  25973. "type": "object",
  25974. "properties": {
  25975. "sessionID": {
  25976. "type": "string",
  25977. "allOf": [
  25978. {
  25979. "pattern": "^ses"
  25980. }
  25981. ]
  25982. },
  25983. "requestID": {
  25984. "type": "string",
  25985. "allOf": [
  25986. {
  25987. "pattern": "^que"
  25988. }
  25989. ]
  25990. },
  25991. "answers": {
  25992. "type": "array",
  25993. "items": {
  25994. "$ref": "#/components/schemas/QuestionAnswer"
  25995. }
  25996. }
  25997. },
  25998. "required": [
  25999. "sessionID",
  26000. "requestID",
  26001. "answers"
  26002. ],
  26003. "additionalProperties": false
  26004. }
  26005. },
  26006. "required": [
  26007. "id",
  26008. "created",
  26009. "type",
  26010. "data"
  26011. ],
  26012. "additionalProperties": false
  26013. },
  26014. "question.rejected": {
  26015. "type": "object",
  26016. "properties": {
  26017. "id": {
  26018. "type": "string",
  26019. "allOf": [
  26020. {
  26021. "pattern": "^evt_"
  26022. }
  26023. ]
  26024. },
  26025. "created": {
  26026. "type": "number"
  26027. },
  26028. "metadata": {
  26029. "type": "object"
  26030. },
  26031. "type": {
  26032. "type": "string",
  26033. "enum": [
  26034. "question.rejected"
  26035. ]
  26036. },
  26037. "location": {
  26038. "$ref": "#/components/schemas/Location.Ref"
  26039. },
  26040. "data": {
  26041. "type": "object",
  26042. "properties": {
  26043. "sessionID": {
  26044. "type": "string",
  26045. "allOf": [
  26046. {
  26047. "pattern": "^ses"
  26048. }
  26049. ]
  26050. },
  26051. "requestID": {
  26052. "type": "string",
  26053. "allOf": [
  26054. {
  26055. "pattern": "^que"
  26056. }
  26057. ]
  26058. }
  26059. },
  26060. "required": [
  26061. "sessionID",
  26062. "requestID"
  26063. ],
  26064. "additionalProperties": false
  26065. }
  26066. },
  26067. "required": [
  26068. "id",
  26069. "created",
  26070. "type",
  26071. "data"
  26072. ],
  26073. "additionalProperties": false
  26074. },
  26075. "session.error": {
  26076. "type": "object",
  26077. "properties": {
  26078. "id": {
  26079. "type": "string",
  26080. "allOf": [
  26081. {
  26082. "pattern": "^evt_"
  26083. }
  26084. ]
  26085. },
  26086. "created": {
  26087. "type": "number"
  26088. },
  26089. "metadata": {
  26090. "type": "object"
  26091. },
  26092. "type": {
  26093. "type": "string",
  26094. "enum": [
  26095. "session.error"
  26096. ]
  26097. },
  26098. "location": {
  26099. "$ref": "#/components/schemas/Location.Ref"
  26100. },
  26101. "data": {
  26102. "type": "object",
  26103. "properties": {
  26104. "sessionID": {
  26105. "anyOf": [
  26106. {
  26107. "type": "string",
  26108. "allOf": [
  26109. {
  26110. "pattern": "^ses"
  26111. }
  26112. ]
  26113. },
  26114. {
  26115. "type": "null"
  26116. }
  26117. ]
  26118. },
  26119. "error": {
  26120. "anyOf": [
  26121. {
  26122. "anyOf": [
  26123. {
  26124. "$ref": "#/components/schemas/ProviderAuthError"
  26125. },
  26126. {
  26127. "$ref": "#/components/schemas/UnknownError1"
  26128. },
  26129. {
  26130. "$ref": "#/components/schemas/MessageOutputLengthError"
  26131. },
  26132. {
  26133. "$ref": "#/components/schemas/MessageAbortedError"
  26134. },
  26135. {
  26136. "$ref": "#/components/schemas/StructuredOutputError"
  26137. },
  26138. {
  26139. "$ref": "#/components/schemas/ContextOverflowError"
  26140. },
  26141. {
  26142. "$ref": "#/components/schemas/ContentFilterError"
  26143. },
  26144. {
  26145. "$ref": "#/components/schemas/APIError"
  26146. }
  26147. ]
  26148. },
  26149. {
  26150. "type": "null"
  26151. }
  26152. ]
  26153. }
  26154. },
  26155. "additionalProperties": false
  26156. }
  26157. },
  26158. "required": [
  26159. "id",
  26160. "created",
  26161. "type",
  26162. "data"
  26163. ],
  26164. "additionalProperties": false
  26165. },
  26166. "V2Event.server.connected": {
  26167. "type": "object",
  26168. "properties": {
  26169. "id": {
  26170. "type": "string",
  26171. "allOf": [
  26172. {
  26173. "pattern": "^evt_"
  26174. }
  26175. ]
  26176. },
  26177. "metadata": {
  26178. "anyOf": [
  26179. {
  26180. "type": "object"
  26181. },
  26182. {
  26183. "type": "null"
  26184. }
  26185. ]
  26186. },
  26187. "location": {
  26188. "anyOf": [
  26189. {
  26190. "$ref": "#/components/schemas/Location.Ref"
  26191. },
  26192. {
  26193. "type": "null"
  26194. }
  26195. ]
  26196. },
  26197. "type": {
  26198. "type": "string",
  26199. "enum": [
  26200. "server.connected"
  26201. ]
  26202. },
  26203. "data": {
  26204. "anyOf": [
  26205. {
  26206. "type": "object"
  26207. },
  26208. {
  26209. "type": "array"
  26210. }
  26211. ]
  26212. }
  26213. },
  26214. "required": [
  26215. "id",
  26216. "type",
  26217. "data"
  26218. ],
  26219. "additionalProperties": false
  26220. },
  26221. "V2Event": {
  26222. "anyOf": [
  26223. {
  26224. "$ref": "#/components/schemas/models-dev.refreshed"
  26225. },
  26226. {
  26227. "$ref": "#/components/schemas/integration.updated"
  26228. },
  26229. {
  26230. "$ref": "#/components/schemas/integration.connection.updated"
  26231. },
  26232. {
  26233. "$ref": "#/components/schemas/catalog.updated"
  26234. },
  26235. {
  26236. "$ref": "#/components/schemas/agent.updated"
  26237. },
  26238. {
  26239. "$ref": "#/components/schemas/session.created"
  26240. },
  26241. {
  26242. "$ref": "#/components/schemas/session.updated"
  26243. },
  26244. {
  26245. "$ref": "#/components/schemas/session.deleted1"
  26246. },
  26247. {
  26248. "$ref": "#/components/schemas/message.updated"
  26249. },
  26250. {
  26251. "$ref": "#/components/schemas/message.removed"
  26252. },
  26253. {
  26254. "$ref": "#/components/schemas/message.part.updated"
  26255. },
  26256. {
  26257. "$ref": "#/components/schemas/message.part.removed"
  26258. },
  26259. {
  26260. "$ref": "#/components/schemas/session.agent.selected"
  26261. },
  26262. {
  26263. "$ref": "#/components/schemas/session.model.selected"
  26264. },
  26265. {
  26266. "$ref": "#/components/schemas/session.moved"
  26267. },
  26268. {
  26269. "$ref": "#/components/schemas/session.renamed"
  26270. },
  26271. {
  26272. "$ref": "#/components/schemas/session.usage.updated"
  26273. },
  26274. {
  26275. "$ref": "#/components/schemas/session.deleted"
  26276. },
  26277. {
  26278. "$ref": "#/components/schemas/session.forked"
  26279. },
  26280. {
  26281. "$ref": "#/components/schemas/session.prompt.promoted"
  26282. },
  26283. {
  26284. "$ref": "#/components/schemas/session.prompt.admitted"
  26285. },
  26286. {
  26287. "$ref": "#/components/schemas/session.execution.started"
  26288. },
  26289. {
  26290. "$ref": "#/components/schemas/session.execution.succeeded"
  26291. },
  26292. {
  26293. "$ref": "#/components/schemas/session.execution.failed"
  26294. },
  26295. {
  26296. "$ref": "#/components/schemas/session.execution.interrupted"
  26297. },
  26298. {
  26299. "$ref": "#/components/schemas/session.instructions.updated"
  26300. },
  26301. {
  26302. "$ref": "#/components/schemas/session.synthetic"
  26303. },
  26304. {
  26305. "$ref": "#/components/schemas/session.skill.activated"
  26306. },
  26307. {
  26308. "$ref": "#/components/schemas/session.shell.started"
  26309. },
  26310. {
  26311. "$ref": "#/components/schemas/session.shell.ended"
  26312. },
  26313. {
  26314. "$ref": "#/components/schemas/session.step.started"
  26315. },
  26316. {
  26317. "$ref": "#/components/schemas/session.step.ended"
  26318. },
  26319. {
  26320. "$ref": "#/components/schemas/session.step.failed"
  26321. },
  26322. {
  26323. "$ref": "#/components/schemas/session.text.started"
  26324. },
  26325. {
  26326. "$ref": "#/components/schemas/session.text.delta"
  26327. },
  26328. {
  26329. "$ref": "#/components/schemas/session.text.ended"
  26330. },
  26331. {
  26332. "$ref": "#/components/schemas/session.reasoning.started"
  26333. },
  26334. {
  26335. "$ref": "#/components/schemas/session.reasoning.delta"
  26336. },
  26337. {
  26338. "$ref": "#/components/schemas/session.reasoning.ended"
  26339. },
  26340. {
  26341. "$ref": "#/components/schemas/session.tool.input.started"
  26342. },
  26343. {
  26344. "$ref": "#/components/schemas/session.tool.input.delta"
  26345. },
  26346. {
  26347. "$ref": "#/components/schemas/session.tool.input.ended"
  26348. },
  26349. {
  26350. "$ref": "#/components/schemas/session.tool.called"
  26351. },
  26352. {
  26353. "$ref": "#/components/schemas/session.tool.progress"
  26354. },
  26355. {
  26356. "$ref": "#/components/schemas/session.tool.success"
  26357. },
  26358. {
  26359. "$ref": "#/components/schemas/session.tool.failed"
  26360. },
  26361. {
  26362. "$ref": "#/components/schemas/session.retry.scheduled"
  26363. },
  26364. {
  26365. "$ref": "#/components/schemas/session.compaction.admitted"
  26366. },
  26367. {
  26368. "$ref": "#/components/schemas/session.compaction.started"
  26369. },
  26370. {
  26371. "$ref": "#/components/schemas/session.compaction.delta"
  26372. },
  26373. {
  26374. "$ref": "#/components/schemas/session.compaction.ended"
  26375. },
  26376. {
  26377. "$ref": "#/components/schemas/session.compaction.failed"
  26378. },
  26379. {
  26380. "$ref": "#/components/schemas/session.revert.staged"
  26381. },
  26382. {
  26383. "$ref": "#/components/schemas/session.revert.cleared"
  26384. },
  26385. {
  26386. "$ref": "#/components/schemas/session.revert.committed"
  26387. },
  26388. {
  26389. "$ref": "#/components/schemas/filesystem.changed"
  26390. },
  26391. {
  26392. "$ref": "#/components/schemas/reference.updated"
  26393. },
  26394. {
  26395. "$ref": "#/components/schemas/permission.v2.asked"
  26396. },
  26397. {
  26398. "$ref": "#/components/schemas/permission.v2.replied"
  26399. },
  26400. {
  26401. "$ref": "#/components/schemas/plugin.added"
  26402. },
  26403. {
  26404. "$ref": "#/components/schemas/plugin.updated"
  26405. },
  26406. {
  26407. "$ref": "#/components/schemas/project.directories.updated"
  26408. },
  26409. {
  26410. "$ref": "#/components/schemas/command.updated"
  26411. },
  26412. {
  26413. "$ref": "#/components/schemas/config.updated"
  26414. },
  26415. {
  26416. "$ref": "#/components/schemas/skill.updated"
  26417. },
  26418. {
  26419. "$ref": "#/components/schemas/pty.created"
  26420. },
  26421. {
  26422. "$ref": "#/components/schemas/pty.updated"
  26423. },
  26424. {
  26425. "$ref": "#/components/schemas/pty.exited"
  26426. },
  26427. {
  26428. "$ref": "#/components/schemas/pty.deleted"
  26429. },
  26430. {
  26431. "$ref": "#/components/schemas/shell.created"
  26432. },
  26433. {
  26434. "$ref": "#/components/schemas/shell.exited"
  26435. },
  26436. {
  26437. "$ref": "#/components/schemas/shell.deleted"
  26438. },
  26439. {
  26440. "$ref": "#/components/schemas/question.v2.asked"
  26441. },
  26442. {
  26443. "$ref": "#/components/schemas/question.v2.replied"
  26444. },
  26445. {
  26446. "$ref": "#/components/schemas/question.v2.rejected"
  26447. },
  26448. {
  26449. "$ref": "#/components/schemas/form.created"
  26450. },
  26451. {
  26452. "$ref": "#/components/schemas/form.replied"
  26453. },
  26454. {
  26455. "$ref": "#/components/schemas/form.cancelled"
  26456. },
  26457. {
  26458. "$ref": "#/components/schemas/session.status"
  26459. },
  26460. {
  26461. "$ref": "#/components/schemas/session.idle"
  26462. },
  26463. {
  26464. "$ref": "#/components/schemas/tui.prompt.append"
  26465. },
  26466. {
  26467. "$ref": "#/components/schemas/tui.command.execute"
  26468. },
  26469. {
  26470. "$ref": "#/components/schemas/tui.toast.show"
  26471. },
  26472. {
  26473. "$ref": "#/components/schemas/tui.session.select"
  26474. },
  26475. {
  26476. "$ref": "#/components/schemas/installation.updated"
  26477. },
  26478. {
  26479. "$ref": "#/components/schemas/installation.update-available"
  26480. },
  26481. {
  26482. "$ref": "#/components/schemas/vcs.branch.updated"
  26483. },
  26484. {
  26485. "$ref": "#/components/schemas/mcp.status.changed"
  26486. },
  26487. {
  26488. "$ref": "#/components/schemas/mcp.resources.changed"
  26489. },
  26490. {
  26491. "$ref": "#/components/schemas/permission.asked"
  26492. },
  26493. {
  26494. "$ref": "#/components/schemas/permission.replied"
  26495. },
  26496. {
  26497. "$ref": "#/components/schemas/question.asked"
  26498. },
  26499. {
  26500. "$ref": "#/components/schemas/question.replied"
  26501. },
  26502. {
  26503. "$ref": "#/components/schemas/question.rejected"
  26504. },
  26505. {
  26506. "$ref": "#/components/schemas/session.error"
  26507. },
  26508. {
  26509. "$ref": "#/components/schemas/V2Event.server.connected"
  26510. }
  26511. ]
  26512. },
  26513. "V2EventStream": {
  26514. "type": "string",
  26515. "contentSchema": {
  26516. "$ref": "#/components/schemas/V2Event"
  26517. },
  26518. "contentMediaType": "application/json"
  26519. },
  26520. "PtyNotFoundError": {
  26521. "type": "object",
  26522. "properties": {
  26523. "_tag": {
  26524. "type": "string",
  26525. "enum": [
  26526. "PtyNotFoundError"
  26527. ]
  26528. },
  26529. "ptyID": {
  26530. "type": "string"
  26531. },
  26532. "message": {
  26533. "type": "string"
  26534. }
  26535. },
  26536. "required": [
  26537. "_tag",
  26538. "ptyID",
  26539. "message"
  26540. ],
  26541. "additionalProperties": false
  26542. },
  26543. "PtyTicket.ConnectToken": {
  26544. "type": "object",
  26545. "properties": {
  26546. "ticket": {
  26547. "type": "string"
  26548. },
  26549. "expires_in": {
  26550. "type": "integer",
  26551. "allOf": [
  26552. {
  26553. "exclusiveMinimum": 0
  26554. }
  26555. ]
  26556. }
  26557. },
  26558. "required": [
  26559. "ticket",
  26560. "expires_in"
  26561. ],
  26562. "additionalProperties": false
  26563. },
  26564. "ForbiddenError": {
  26565. "type": "object",
  26566. "properties": {
  26567. "_tag": {
  26568. "type": "string",
  26569. "enum": [
  26570. "ForbiddenError"
  26571. ]
  26572. },
  26573. "message": {
  26574. "type": "string"
  26575. }
  26576. },
  26577. "required": [
  26578. "_tag",
  26579. "message"
  26580. ],
  26581. "additionalProperties": false
  26582. },
  26583. "Shell1": {
  26584. "type": "object",
  26585. "properties": {
  26586. "id": {
  26587. "type": "string",
  26588. "allOf": [
  26589. {
  26590. "pattern": "^sh_"
  26591. }
  26592. ]
  26593. },
  26594. "status": {
  26595. "type": "string",
  26596. "enum": [
  26597. "running",
  26598. "exited",
  26599. "timeout",
  26600. "killed"
  26601. ]
  26602. },
  26603. "command": {
  26604. "type": "string"
  26605. },
  26606. "cwd": {
  26607. "type": "string"
  26608. },
  26609. "shell": {
  26610. "type": "string"
  26611. },
  26612. "file": {
  26613. "type": "string"
  26614. },
  26615. "pid": {
  26616. "type": "integer",
  26617. "allOf": [
  26618. {
  26619. "minimum": 0
  26620. }
  26621. ]
  26622. },
  26623. "exit": {
  26624. "anyOf": [
  26625. {
  26626. "anyOf": [
  26627. {
  26628. "type": "number"
  26629. },
  26630. {
  26631. "type": "string",
  26632. "enum": [
  26633. "NaN"
  26634. ]
  26635. },
  26636. {
  26637. "type": "string",
  26638. "enum": [
  26639. "Infinity"
  26640. ]
  26641. },
  26642. {
  26643. "type": "string",
  26644. "enum": [
  26645. "-Infinity"
  26646. ]
  26647. }
  26648. ]
  26649. },
  26650. {
  26651. "type": "string",
  26652. "enum": [
  26653. "Infinity",
  26654. "-Infinity",
  26655. "NaN"
  26656. ]
  26657. }
  26658. ]
  26659. },
  26660. "metadata": {
  26661. "type": "object"
  26662. },
  26663. "time": {
  26664. "type": "object",
  26665. "properties": {
  26666. "started": {
  26667. "anyOf": [
  26668. {
  26669. "anyOf": [
  26670. {
  26671. "type": "number"
  26672. },
  26673. {
  26674. "type": "string",
  26675. "enum": [
  26676. "NaN"
  26677. ]
  26678. },
  26679. {
  26680. "type": "string",
  26681. "enum": [
  26682. "Infinity"
  26683. ]
  26684. },
  26685. {
  26686. "type": "string",
  26687. "enum": [
  26688. "-Infinity"
  26689. ]
  26690. }
  26691. ]
  26692. },
  26693. {
  26694. "type": "string",
  26695. "enum": [
  26696. "Infinity",
  26697. "-Infinity",
  26698. "NaN"
  26699. ]
  26700. }
  26701. ]
  26702. },
  26703. "completed": {
  26704. "anyOf": [
  26705. {
  26706. "anyOf": [
  26707. {
  26708. "type": "number"
  26709. },
  26710. {
  26711. "type": "string",
  26712. "enum": [
  26713. "NaN"
  26714. ]
  26715. },
  26716. {
  26717. "type": "string",
  26718. "enum": [
  26719. "Infinity"
  26720. ]
  26721. },
  26722. {
  26723. "type": "string",
  26724. "enum": [
  26725. "-Infinity"
  26726. ]
  26727. }
  26728. ]
  26729. },
  26730. {
  26731. "type": "string",
  26732. "enum": [
  26733. "Infinity",
  26734. "-Infinity",
  26735. "NaN"
  26736. ]
  26737. }
  26738. ]
  26739. }
  26740. },
  26741. "required": [
  26742. "started"
  26743. ],
  26744. "additionalProperties": false
  26745. }
  26746. },
  26747. "required": [
  26748. "id",
  26749. "status",
  26750. "command",
  26751. "cwd",
  26752. "shell",
  26753. "file",
  26754. "metadata",
  26755. "time"
  26756. ],
  26757. "additionalProperties": false
  26758. },
  26759. "ShellNotFoundError": {
  26760. "type": "object",
  26761. "properties": {
  26762. "_tag": {
  26763. "type": "string",
  26764. "enum": [
  26765. "ShellNotFoundError"
  26766. ]
  26767. },
  26768. "id": {
  26769. "type": "string"
  26770. },
  26771. "message": {
  26772. "type": "string"
  26773. }
  26774. },
  26775. "required": [
  26776. "_tag",
  26777. "id",
  26778. "message"
  26779. ],
  26780. "additionalProperties": false
  26781. },
  26782. "QuestionV2.Request": {
  26783. "type": "object",
  26784. "properties": {
  26785. "id": {
  26786. "type": "string",
  26787. "allOf": [
  26788. {
  26789. "pattern": "^que"
  26790. }
  26791. ]
  26792. },
  26793. "sessionID": {
  26794. "type": "string",
  26795. "allOf": [
  26796. {
  26797. "pattern": "^ses"
  26798. }
  26799. ]
  26800. },
  26801. "questions": {
  26802. "type": "array",
  26803. "items": {
  26804. "$ref": "#/components/schemas/QuestionV2.Info"
  26805. },
  26806. "description": "Questions to ask"
  26807. },
  26808. "tool": {
  26809. "$ref": "#/components/schemas/QuestionV2.Tool"
  26810. }
  26811. },
  26812. "required": [
  26813. "id",
  26814. "sessionID",
  26815. "questions"
  26816. ],
  26817. "additionalProperties": false
  26818. },
  26819. "QuestionV2.Reply": {
  26820. "type": "object",
  26821. "properties": {
  26822. "answers": {
  26823. "type": "array",
  26824. "items": {
  26825. "$ref": "#/components/schemas/QuestionV2.Answer"
  26826. },
  26827. "description": "User answers in order of questions (each answer is an array of selected labels)"
  26828. }
  26829. },
  26830. "required": [
  26831. "answers"
  26832. ],
  26833. "additionalProperties": false
  26834. },
  26835. "QuestionNotFoundError": {
  26836. "type": "object",
  26837. "properties": {
  26838. "_tag": {
  26839. "type": "string",
  26840. "enum": [
  26841. "QuestionNotFoundError"
  26842. ]
  26843. },
  26844. "requestID": {
  26845. "type": "string"
  26846. },
  26847. "message": {
  26848. "type": "string"
  26849. }
  26850. },
  26851. "required": [
  26852. "_tag",
  26853. "requestID",
  26854. "message"
  26855. ],
  26856. "additionalProperties": false
  26857. },
  26858. "Reference.LocalSource": {
  26859. "type": "object",
  26860. "properties": {
  26861. "type": {
  26862. "type": "string",
  26863. "enum": [
  26864. "local"
  26865. ]
  26866. },
  26867. "path": {
  26868. "type": "string"
  26869. },
  26870. "description": {
  26871. "type": "string"
  26872. },
  26873. "hidden": {
  26874. "type": "boolean"
  26875. }
  26876. },
  26877. "required": [
  26878. "type",
  26879. "path"
  26880. ],
  26881. "additionalProperties": false
  26882. },
  26883. "Reference.GitSource": {
  26884. "type": "object",
  26885. "properties": {
  26886. "type": {
  26887. "type": "string",
  26888. "enum": [
  26889. "git"
  26890. ]
  26891. },
  26892. "repository": {
  26893. "type": "string"
  26894. },
  26895. "branch": {
  26896. "type": "string"
  26897. },
  26898. "description": {
  26899. "type": "string"
  26900. },
  26901. "hidden": {
  26902. "type": "boolean"
  26903. }
  26904. },
  26905. "required": [
  26906. "type",
  26907. "repository"
  26908. ],
  26909. "additionalProperties": false
  26910. },
  26911. "Reference.Source": {
  26912. "anyOf": [
  26913. {
  26914. "$ref": "#/components/schemas/Reference.LocalSource"
  26915. },
  26916. {
  26917. "$ref": "#/components/schemas/Reference.GitSource"
  26918. }
  26919. ]
  26920. },
  26921. "Reference.Info": {
  26922. "type": "object",
  26923. "properties": {
  26924. "name": {
  26925. "type": "string"
  26926. },
  26927. "path": {
  26928. "type": "string"
  26929. },
  26930. "description": {
  26931. "type": "string"
  26932. },
  26933. "hidden": {
  26934. "type": "boolean"
  26935. },
  26936. "source": {
  26937. "$ref": "#/components/schemas/Reference.Source"
  26938. }
  26939. },
  26940. "required": [
  26941. "name",
  26942. "path",
  26943. "source"
  26944. ],
  26945. "additionalProperties": false
  26946. },
  26947. "ProjectCopy.Copy": {
  26948. "type": "object",
  26949. "properties": {
  26950. "directory": {
  26951. "type": "string"
  26952. }
  26953. },
  26954. "required": [
  26955. "directory"
  26956. ],
  26957. "additionalProperties": false
  26958. },
  26959. "ProjectCopyError": {
  26960. "type": "object",
  26961. "properties": {
  26962. "name": {
  26963. "type": "string",
  26964. "enum": [
  26965. "ProjectCopyError"
  26966. ]
  26967. },
  26968. "data": {
  26969. "type": "object",
  26970. "properties": {
  26971. "message": {
  26972. "type": "string"
  26973. },
  26974. "forceRequired": {
  26975. "anyOf": [
  26976. {
  26977. "type": "boolean"
  26978. },
  26979. {
  26980. "type": "null"
  26981. }
  26982. ]
  26983. }
  26984. },
  26985. "required": [
  26986. "message"
  26987. ],
  26988. "additionalProperties": false
  26989. }
  26990. },
  26991. "required": [
  26992. "name",
  26993. "data"
  26994. ],
  26995. "additionalProperties": false
  26996. },
  26997. "Vcs.FileStatus": {
  26998. "type": "object",
  26999. "properties": {
  27000. "file": {
  27001. "type": "string"
  27002. },
  27003. "additions": {
  27004. "type": "integer",
  27005. "allOf": [
  27006. {
  27007. "minimum": 0
  27008. }
  27009. ]
  27010. },
  27011. "deletions": {
  27012. "type": "integer",
  27013. "allOf": [
  27014. {
  27015. "minimum": 0
  27016. }
  27017. ]
  27018. },
  27019. "status": {
  27020. "type": "string",
  27021. "enum": [
  27022. "added",
  27023. "deleted",
  27024. "modified"
  27025. ]
  27026. }
  27027. },
  27028. "required": [
  27029. "file",
  27030. "additions",
  27031. "deletions",
  27032. "status"
  27033. ],
  27034. "additionalProperties": false
  27035. },
  27036. "Vcs.Mode": {
  27037. "type": "string",
  27038. "enum": [
  27039. "working",
  27040. "branch"
  27041. ]
  27042. }
  27043. },
  27044. "securitySchemes": {}
  27045. },
  27046. "security": [],
  27047. "tags": [
  27048. {
  27049. "name": "health"
  27050. },
  27051. {
  27052. "name": "server"
  27053. },
  27054. {
  27055. "name": "location"
  27056. },
  27057. {
  27058. "name": "agent"
  27059. },
  27060. {
  27061. "name": "plugin",
  27062. "description": "Experimental plugin routes."
  27063. },
  27064. {
  27065. "name": "session",
  27066. "description": "Experimental session routes."
  27067. },
  27068. {
  27069. "name": "session",
  27070. "description": "Experimental message routes."
  27071. },
  27072. {
  27073. "name": "model",
  27074. "description": "Experimental model routes."
  27075. },
  27076. {
  27077. "name": "generate",
  27078. "description": "Experimental one-shot generation routes."
  27079. },
  27080. {
  27081. "name": "provider",
  27082. "description": "Experimental provider routes."
  27083. },
  27084. {
  27085. "name": "integration",
  27086. "description": "Integration discovery and authentication routes."
  27087. },
  27088. {
  27089. "name": "mcp",
  27090. "description": "MCP server and resource routes."
  27091. },
  27092. {
  27093. "name": "credential"
  27094. },
  27095. {
  27096. "name": "project",
  27097. "description": "Location-scoped project routes."
  27098. },
  27099. {
  27100. "name": "form",
  27101. "description": "Session form routes."
  27102. },
  27103. {
  27104. "name": "permission",
  27105. "description": "Experimental permission routes."
  27106. },
  27107. {
  27108. "name": "filesystem",
  27109. "description": "Experimental location-scoped filesystem routes."
  27110. },
  27111. {
  27112. "name": "command",
  27113. "description": "Experimental command routes."
  27114. },
  27115. {
  27116. "name": "skill",
  27117. "description": "Experimental skill routes."
  27118. },
  27119. {
  27120. "name": "event",
  27121. "description": "Experimental event stream routes."
  27122. },
  27123. {
  27124. "name": "pty",
  27125. "description": "Experimental location-scoped PTY routes."
  27126. },
  27127. {
  27128. "name": "shell",
  27129. "description": "Experimental location-scoped shell command routes."
  27130. },
  27131. {
  27132. "name": "question",
  27133. "description": "Experimental session question routes."
  27134. },
  27135. {
  27136. "name": "reference",
  27137. "description": "Location-scoped project references."
  27138. },
  27139. {
  27140. "name": "projectCopy",
  27141. "description": "Project copy management routes."
  27142. },
  27143. {
  27144. "name": "vcs",
  27145. "description": "Location-scoped version control routes."
  27146. },
  27147. {
  27148. "name": "debug"
  27149. }
  27150. ]
  27151. }