openapi.json 641 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010
  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. },
  32. "required": [
  33. "healthy"
  34. ],
  35. "additionalProperties": false
  36. }
  37. }
  38. }
  39. },
  40. "400": {
  41. "description": "InvalidRequestError",
  42. "content": {
  43. "application/json": {
  44. "schema": {
  45. "$ref": "#/components/schemas/InvalidRequestError"
  46. }
  47. }
  48. }
  49. },
  50. "401": {
  51. "description": "UnauthorizedError",
  52. "content": {
  53. "application/json": {
  54. "schema": {
  55. "$ref": "#/components/schemas/UnauthorizedError"
  56. }
  57. }
  58. }
  59. }
  60. },
  61. "description": "Check whether the API server is ready to accept requests.",
  62. "summary": "Check server health"
  63. }
  64. },
  65. "/api/location": {
  66. "get": {
  67. "tags": [
  68. "location"
  69. ],
  70. "operationId": "v2.location.get",
  71. "parameters": [
  72. {
  73. "name": "location",
  74. "in": "query",
  75. "schema": {
  76. "anyOf": [
  77. {
  78. "type": "object",
  79. "properties": {
  80. "directory": {
  81. "anyOf": [
  82. {
  83. "type": "string"
  84. },
  85. {
  86. "type": "null"
  87. }
  88. ]
  89. },
  90. "workspace": {
  91. "anyOf": [
  92. {
  93. "type": "string"
  94. },
  95. {
  96. "type": "null"
  97. }
  98. ]
  99. }
  100. },
  101. "additionalProperties": false
  102. },
  103. {
  104. "type": "null"
  105. }
  106. ]
  107. },
  108. "required": false,
  109. "style": "deepObject",
  110. "explode": true
  111. }
  112. ],
  113. "security": [],
  114. "responses": {
  115. "200": {
  116. "description": "Location.Info",
  117. "content": {
  118. "application/json": {
  119. "schema": {
  120. "$ref": "#/components/schemas/Location.Info"
  121. }
  122. }
  123. }
  124. },
  125. "400": {
  126. "description": "InvalidRequestError",
  127. "content": {
  128. "application/json": {
  129. "schema": {
  130. "$ref": "#/components/schemas/InvalidRequestError"
  131. }
  132. }
  133. }
  134. },
  135. "401": {
  136. "description": "UnauthorizedError",
  137. "content": {
  138. "application/json": {
  139. "schema": {
  140. "$ref": "#/components/schemas/UnauthorizedError"
  141. }
  142. }
  143. }
  144. }
  145. },
  146. "description": "Resolve the requested location or the server default location.",
  147. "summary": "Get location"
  148. }
  149. },
  150. "/api/agent": {
  151. "get": {
  152. "tags": [
  153. "agent"
  154. ],
  155. "operationId": "v2.agent.list",
  156. "parameters": [
  157. {
  158. "name": "location",
  159. "in": "query",
  160. "schema": {
  161. "anyOf": [
  162. {
  163. "type": "object",
  164. "properties": {
  165. "directory": {
  166. "anyOf": [
  167. {
  168. "type": "string"
  169. },
  170. {
  171. "type": "null"
  172. }
  173. ]
  174. },
  175. "workspace": {
  176. "anyOf": [
  177. {
  178. "type": "string"
  179. },
  180. {
  181. "type": "null"
  182. }
  183. ]
  184. }
  185. },
  186. "additionalProperties": false
  187. },
  188. {
  189. "type": "null"
  190. }
  191. ]
  192. },
  193. "required": false,
  194. "style": "deepObject",
  195. "explode": true
  196. }
  197. ],
  198. "security": [],
  199. "responses": {
  200. "200": {
  201. "description": "Success",
  202. "content": {
  203. "application/json": {
  204. "schema": {
  205. "type": "object",
  206. "properties": {
  207. "location": {
  208. "$ref": "#/components/schemas/Location.Info"
  209. },
  210. "data": {
  211. "type": "array",
  212. "items": {
  213. "$ref": "#/components/schemas/AgentV2.Info"
  214. }
  215. }
  216. },
  217. "required": [
  218. "location",
  219. "data"
  220. ],
  221. "additionalProperties": false
  222. }
  223. }
  224. }
  225. },
  226. "400": {
  227. "description": "InvalidRequestError",
  228. "content": {
  229. "application/json": {
  230. "schema": {
  231. "$ref": "#/components/schemas/InvalidRequestError"
  232. }
  233. }
  234. }
  235. },
  236. "401": {
  237. "description": "UnauthorizedError",
  238. "content": {
  239. "application/json": {
  240. "schema": {
  241. "$ref": "#/components/schemas/UnauthorizedError"
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "description": "Retrieve currently registered agents.",
  248. "summary": "List agents"
  249. }
  250. },
  251. "/api/plugin": {
  252. "get": {
  253. "tags": [
  254. "plugin"
  255. ],
  256. "operationId": "v2.plugin.list",
  257. "parameters": [
  258. {
  259. "name": "location",
  260. "in": "query",
  261. "schema": {
  262. "anyOf": [
  263. {
  264. "type": "object",
  265. "properties": {
  266. "directory": {
  267. "anyOf": [
  268. {
  269. "type": "string"
  270. },
  271. {
  272. "type": "null"
  273. }
  274. ]
  275. },
  276. "workspace": {
  277. "anyOf": [
  278. {
  279. "type": "string"
  280. },
  281. {
  282. "type": "null"
  283. }
  284. ]
  285. }
  286. },
  287. "additionalProperties": false
  288. },
  289. {
  290. "type": "null"
  291. }
  292. ]
  293. },
  294. "required": false,
  295. "style": "deepObject",
  296. "explode": true
  297. }
  298. ],
  299. "security": [],
  300. "responses": {
  301. "200": {
  302. "description": "Success",
  303. "content": {
  304. "application/json": {
  305. "schema": {
  306. "type": "object",
  307. "properties": {
  308. "location": {
  309. "$ref": "#/components/schemas/Location.Info"
  310. },
  311. "data": {
  312. "type": "array",
  313. "items": {
  314. "$ref": "#/components/schemas/Plugin.Info"
  315. }
  316. }
  317. },
  318. "required": [
  319. "location",
  320. "data"
  321. ],
  322. "additionalProperties": false
  323. }
  324. }
  325. }
  326. },
  327. "400": {
  328. "description": "InvalidRequestError",
  329. "content": {
  330. "application/json": {
  331. "schema": {
  332. "$ref": "#/components/schemas/InvalidRequestError"
  333. }
  334. }
  335. }
  336. },
  337. "401": {
  338. "description": "UnauthorizedError",
  339. "content": {
  340. "application/json": {
  341. "schema": {
  342. "$ref": "#/components/schemas/UnauthorizedError"
  343. }
  344. }
  345. }
  346. }
  347. },
  348. "description": "Retrieve currently loaded plugins.",
  349. "summary": "List plugins"
  350. }
  351. },
  352. "/api/session": {
  353. "get": {
  354. "tags": [
  355. "session"
  356. ],
  357. "operationId": "v2.session.list",
  358. "parameters": [
  359. {
  360. "name": "workspace",
  361. "in": "query",
  362. "schema": {
  363. "anyOf": [
  364. {
  365. "type": "string",
  366. "allOf": [
  367. {
  368. "pattern": "^wrk"
  369. }
  370. ]
  371. },
  372. {
  373. "type": "null"
  374. }
  375. ]
  376. },
  377. "required": false
  378. },
  379. {
  380. "name": "limit",
  381. "in": "query",
  382. "schema": {
  383. "anyOf": [
  384. {
  385. "type": "string"
  386. },
  387. {
  388. "type": "null"
  389. }
  390. ],
  391. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  392. },
  393. "required": false
  394. },
  395. {
  396. "name": "order",
  397. "in": "query",
  398. "schema": {
  399. "anyOf": [
  400. {
  401. "type": "string",
  402. "enum": [
  403. "asc",
  404. "desc"
  405. ]
  406. },
  407. {
  408. "type": "null"
  409. }
  410. ],
  411. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  412. },
  413. "required": false
  414. },
  415. {
  416. "name": "search",
  417. "in": "query",
  418. "schema": {
  419. "anyOf": [
  420. {
  421. "type": "string"
  422. },
  423. {
  424. "type": "null"
  425. }
  426. ]
  427. },
  428. "required": false
  429. },
  430. {
  431. "name": "parentID",
  432. "in": "query",
  433. "schema": {
  434. "anyOf": [
  435. {
  436. "anyOf": [
  437. {
  438. "type": "string",
  439. "allOf": [
  440. {
  441. "pattern": "^ses"
  442. }
  443. ]
  444. },
  445. {
  446. "type": "string",
  447. "enum": [
  448. "null"
  449. ]
  450. }
  451. ],
  452. "description": "Filter by parent session. Use null to return only root sessions."
  453. },
  454. {
  455. "type": "null"
  456. }
  457. ]
  458. },
  459. "required": false
  460. },
  461. {
  462. "name": "directory",
  463. "in": "query",
  464. "schema": {
  465. "anyOf": [
  466. {
  467. "type": "string"
  468. },
  469. {
  470. "type": "null"
  471. }
  472. ]
  473. },
  474. "required": false
  475. },
  476. {
  477. "name": "project",
  478. "in": "query",
  479. "schema": {
  480. "anyOf": [
  481. {
  482. "type": "string"
  483. },
  484. {
  485. "type": "null"
  486. }
  487. ]
  488. },
  489. "required": false
  490. },
  491. {
  492. "name": "subpath",
  493. "in": "query",
  494. "schema": {
  495. "anyOf": [
  496. {
  497. "type": "string"
  498. },
  499. {
  500. "type": "null"
  501. }
  502. ]
  503. },
  504. "required": false
  505. },
  506. {
  507. "name": "cursor",
  508. "in": "query",
  509. "schema": {
  510. "anyOf": [
  511. {
  512. "type": "string",
  513. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  514. },
  515. {
  516. "type": "null"
  517. }
  518. ]
  519. },
  520. "required": false
  521. }
  522. ],
  523. "security": [],
  524. "responses": {
  525. "200": {
  526. "description": "SessionsResponse",
  527. "content": {
  528. "application/json": {
  529. "schema": {
  530. "$ref": "#/components/schemas/SessionsResponse"
  531. }
  532. }
  533. }
  534. },
  535. "400": {
  536. "description": "InvalidCursorError | InvalidRequestError",
  537. "content": {
  538. "application/json": {
  539. "schema": {
  540. "anyOf": [
  541. {
  542. "$ref": "#/components/schemas/InvalidCursorError"
  543. },
  544. {
  545. "$ref": "#/components/schemas/InvalidRequestError1"
  546. },
  547. {
  548. "$ref": "#/components/schemas/InvalidRequestError"
  549. }
  550. ]
  551. }
  552. }
  553. }
  554. },
  555. "401": {
  556. "description": "UnauthorizedError",
  557. "content": {
  558. "application/json": {
  559. "schema": {
  560. "$ref": "#/components/schemas/UnauthorizedError"
  561. }
  562. }
  563. }
  564. }
  565. },
  566. "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
  567. "summary": "List sessions"
  568. },
  569. "post": {
  570. "tags": [
  571. "session"
  572. ],
  573. "operationId": "v2.session.create",
  574. "parameters": [],
  575. "security": [],
  576. "responses": {
  577. "200": {
  578. "description": "Success",
  579. "content": {
  580. "application/json": {
  581. "schema": {
  582. "type": "object",
  583. "properties": {
  584. "data": {
  585. "$ref": "#/components/schemas/SessionV2.Info"
  586. }
  587. },
  588. "required": [
  589. "data"
  590. ],
  591. "additionalProperties": false
  592. }
  593. }
  594. }
  595. },
  596. "400": {
  597. "description": "InvalidRequestError",
  598. "content": {
  599. "application/json": {
  600. "schema": {
  601. "$ref": "#/components/schemas/InvalidRequestError"
  602. }
  603. }
  604. }
  605. },
  606. "401": {
  607. "description": "UnauthorizedError",
  608. "content": {
  609. "application/json": {
  610. "schema": {
  611. "$ref": "#/components/schemas/UnauthorizedError"
  612. }
  613. }
  614. }
  615. }
  616. },
  617. "description": "Create a session at the requested location.",
  618. "summary": "Create session",
  619. "requestBody": {
  620. "content": {
  621. "application/json": {
  622. "schema": {
  623. "type": "object",
  624. "properties": {
  625. "id": {
  626. "anyOf": [
  627. {
  628. "type": "string",
  629. "allOf": [
  630. {
  631. "pattern": "^ses"
  632. }
  633. ]
  634. },
  635. {
  636. "type": "null"
  637. }
  638. ]
  639. },
  640. "agent": {
  641. "anyOf": [
  642. {
  643. "type": "string"
  644. },
  645. {
  646. "type": "null"
  647. }
  648. ]
  649. },
  650. "model": {
  651. "anyOf": [
  652. {
  653. "$ref": "#/components/schemas/Model.Ref"
  654. },
  655. {
  656. "type": "null"
  657. }
  658. ]
  659. },
  660. "location": {
  661. "anyOf": [
  662. {
  663. "$ref": "#/components/schemas/Location.Ref"
  664. },
  665. {
  666. "type": "null"
  667. }
  668. ]
  669. }
  670. },
  671. "additionalProperties": false
  672. }
  673. }
  674. },
  675. "required": true
  676. }
  677. }
  678. },
  679. "/api/session/active": {
  680. "get": {
  681. "tags": [
  682. "session"
  683. ],
  684. "operationId": "v2.session.active",
  685. "parameters": [],
  686. "security": [],
  687. "responses": {
  688. "200": {
  689. "description": "Success",
  690. "content": {
  691. "application/json": {
  692. "schema": {
  693. "type": "object",
  694. "properties": {
  695. "data": {
  696. "type": "object",
  697. "patternProperties": {
  698. "^ses": {
  699. "$ref": "#/components/schemas/SessionActive"
  700. }
  701. }
  702. },
  703. "watermarks": {
  704. "$ref": "#/components/schemas/SessionWatermarks"
  705. }
  706. },
  707. "required": [
  708. "data",
  709. "watermarks"
  710. ],
  711. "additionalProperties": false
  712. }
  713. }
  714. }
  715. },
  716. "400": {
  717. "description": "InvalidRequestError",
  718. "content": {
  719. "application/json": {
  720. "schema": {
  721. "$ref": "#/components/schemas/InvalidRequestError"
  722. }
  723. }
  724. }
  725. },
  726. "401": {
  727. "description": "UnauthorizedError",
  728. "content": {
  729. "application/json": {
  730. "schema": {
  731. "$ref": "#/components/schemas/UnauthorizedError"
  732. }
  733. }
  734. }
  735. }
  736. },
  737. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive. Watermarks are the durable log positions read alongside the activity snapshot; activity itself is process state, so the pairing is advisory rather than transactional.",
  738. "summary": "List active sessions"
  739. }
  740. },
  741. "/api/session/{sessionID}": {
  742. "get": {
  743. "tags": [
  744. "session"
  745. ],
  746. "operationId": "v2.session.get",
  747. "parameters": [
  748. {
  749. "name": "sessionID",
  750. "in": "path",
  751. "schema": {
  752. "type": "string",
  753. "allOf": [
  754. {
  755. "pattern": "^ses"
  756. }
  757. ]
  758. },
  759. "required": true
  760. }
  761. ],
  762. "security": [],
  763. "responses": {
  764. "200": {
  765. "description": "Success",
  766. "content": {
  767. "application/json": {
  768. "schema": {
  769. "type": "object",
  770. "properties": {
  771. "data": {
  772. "$ref": "#/components/schemas/SessionV2.Info"
  773. }
  774. },
  775. "required": [
  776. "data"
  777. ],
  778. "additionalProperties": false
  779. }
  780. }
  781. }
  782. },
  783. "400": {
  784. "description": "InvalidRequestError",
  785. "content": {
  786. "application/json": {
  787. "schema": {
  788. "$ref": "#/components/schemas/InvalidRequestError"
  789. }
  790. }
  791. }
  792. },
  793. "401": {
  794. "description": "UnauthorizedError",
  795. "content": {
  796. "application/json": {
  797. "schema": {
  798. "$ref": "#/components/schemas/UnauthorizedError"
  799. }
  800. }
  801. }
  802. },
  803. "404": {
  804. "description": "SessionNotFoundError",
  805. "content": {
  806. "application/json": {
  807. "schema": {
  808. "anyOf": [
  809. {
  810. "$ref": "#/components/schemas/SessionNotFoundError"
  811. },
  812. {
  813. "$ref": "#/components/schemas/SessionNotFoundError"
  814. }
  815. ]
  816. }
  817. }
  818. }
  819. }
  820. },
  821. "description": "Retrieve a session by ID.",
  822. "summary": "Get session"
  823. }
  824. },
  825. "/api/session/{sessionID}/fork": {
  826. "post": {
  827. "tags": [
  828. "session"
  829. ],
  830. "operationId": "v2.session.fork",
  831. "parameters": [
  832. {
  833. "name": "sessionID",
  834. "in": "path",
  835. "schema": {
  836. "type": "string",
  837. "allOf": [
  838. {
  839. "pattern": "^ses"
  840. }
  841. ]
  842. },
  843. "required": true
  844. }
  845. ],
  846. "security": [],
  847. "responses": {
  848. "200": {
  849. "description": "Success",
  850. "content": {
  851. "application/json": {
  852. "schema": {
  853. "type": "object",
  854. "properties": {
  855. "data": {
  856. "$ref": "#/components/schemas/SessionV2.Info"
  857. }
  858. },
  859. "required": [
  860. "data"
  861. ],
  862. "additionalProperties": false
  863. }
  864. }
  865. }
  866. },
  867. "400": {
  868. "description": "InvalidRequestError",
  869. "content": {
  870. "application/json": {
  871. "schema": {
  872. "$ref": "#/components/schemas/InvalidRequestError"
  873. }
  874. }
  875. }
  876. },
  877. "401": {
  878. "description": "UnauthorizedError",
  879. "content": {
  880. "application/json": {
  881. "schema": {
  882. "$ref": "#/components/schemas/UnauthorizedError"
  883. }
  884. }
  885. }
  886. },
  887. "404": {
  888. "description": "SessionNotFoundError | MessageNotFoundError",
  889. "content": {
  890. "application/json": {
  891. "schema": {
  892. "anyOf": [
  893. {
  894. "$ref": "#/components/schemas/MessageNotFoundError"
  895. },
  896. {
  897. "$ref": "#/components/schemas/SessionNotFoundError"
  898. },
  899. {
  900. "$ref": "#/components/schemas/SessionNotFoundError"
  901. }
  902. ]
  903. }
  904. }
  905. }
  906. }
  907. },
  908. "description": "Create a child session by copying projected history from the parent. When messageID is supplied, copy messages before that boundary.",
  909. "summary": "Fork session",
  910. "requestBody": {
  911. "content": {
  912. "application/json": {
  913. "schema": {
  914. "type": "object",
  915. "properties": {
  916. "messageID": {
  917. "anyOf": [
  918. {
  919. "type": "string",
  920. "allOf": [
  921. {
  922. "pattern": "^msg_"
  923. }
  924. ]
  925. },
  926. {
  927. "type": "null"
  928. }
  929. ]
  930. }
  931. },
  932. "additionalProperties": false
  933. }
  934. }
  935. },
  936. "required": true
  937. }
  938. }
  939. },
  940. "/api/session/{sessionID}/agent": {
  941. "post": {
  942. "tags": [
  943. "session"
  944. ],
  945. "operationId": "v2.session.switchAgent",
  946. "parameters": [
  947. {
  948. "name": "sessionID",
  949. "in": "path",
  950. "schema": {
  951. "type": "string",
  952. "allOf": [
  953. {
  954. "pattern": "^ses"
  955. }
  956. ]
  957. },
  958. "required": true
  959. }
  960. ],
  961. "security": [],
  962. "responses": {
  963. "204": {
  964. "description": "<No Content>"
  965. },
  966. "400": {
  967. "description": "InvalidRequestError",
  968. "content": {
  969. "application/json": {
  970. "schema": {
  971. "$ref": "#/components/schemas/InvalidRequestError"
  972. }
  973. }
  974. }
  975. },
  976. "401": {
  977. "description": "UnauthorizedError",
  978. "content": {
  979. "application/json": {
  980. "schema": {
  981. "$ref": "#/components/schemas/UnauthorizedError"
  982. }
  983. }
  984. }
  985. },
  986. "404": {
  987. "description": "SessionNotFoundError",
  988. "content": {
  989. "application/json": {
  990. "schema": {
  991. "anyOf": [
  992. {
  993. "$ref": "#/components/schemas/SessionNotFoundError"
  994. },
  995. {
  996. "$ref": "#/components/schemas/SessionNotFoundError"
  997. }
  998. ]
  999. }
  1000. }
  1001. }
  1002. }
  1003. },
  1004. "description": "Switch the agent used by subsequent provider turns.",
  1005. "summary": "Switch session agent",
  1006. "requestBody": {
  1007. "content": {
  1008. "application/json": {
  1009. "schema": {
  1010. "type": "object",
  1011. "properties": {
  1012. "agent": {
  1013. "type": "string"
  1014. }
  1015. },
  1016. "required": [
  1017. "agent"
  1018. ],
  1019. "additionalProperties": false
  1020. }
  1021. }
  1022. },
  1023. "required": true
  1024. }
  1025. }
  1026. },
  1027. "/api/session/{sessionID}/model": {
  1028. "post": {
  1029. "tags": [
  1030. "session"
  1031. ],
  1032. "operationId": "v2.session.switchModel",
  1033. "parameters": [
  1034. {
  1035. "name": "sessionID",
  1036. "in": "path",
  1037. "schema": {
  1038. "type": "string",
  1039. "allOf": [
  1040. {
  1041. "pattern": "^ses"
  1042. }
  1043. ]
  1044. },
  1045. "required": true
  1046. }
  1047. ],
  1048. "security": [],
  1049. "responses": {
  1050. "204": {
  1051. "description": "<No Content>"
  1052. },
  1053. "400": {
  1054. "description": "InvalidRequestError",
  1055. "content": {
  1056. "application/json": {
  1057. "schema": {
  1058. "$ref": "#/components/schemas/InvalidRequestError"
  1059. }
  1060. }
  1061. }
  1062. },
  1063. "401": {
  1064. "description": "UnauthorizedError",
  1065. "content": {
  1066. "application/json": {
  1067. "schema": {
  1068. "$ref": "#/components/schemas/UnauthorizedError"
  1069. }
  1070. }
  1071. }
  1072. },
  1073. "404": {
  1074. "description": "SessionNotFoundError",
  1075. "content": {
  1076. "application/json": {
  1077. "schema": {
  1078. "anyOf": [
  1079. {
  1080. "$ref": "#/components/schemas/SessionNotFoundError"
  1081. },
  1082. {
  1083. "$ref": "#/components/schemas/SessionNotFoundError"
  1084. }
  1085. ]
  1086. }
  1087. }
  1088. }
  1089. }
  1090. },
  1091. "description": "Switch the model used by subsequent provider turns.",
  1092. "summary": "Switch session model",
  1093. "requestBody": {
  1094. "content": {
  1095. "application/json": {
  1096. "schema": {
  1097. "type": "object",
  1098. "properties": {
  1099. "model": {
  1100. "$ref": "#/components/schemas/Model.Ref"
  1101. }
  1102. },
  1103. "required": [
  1104. "model"
  1105. ],
  1106. "additionalProperties": false
  1107. }
  1108. }
  1109. },
  1110. "required": true
  1111. }
  1112. }
  1113. },
  1114. "/api/session/{sessionID}/rename": {
  1115. "post": {
  1116. "tags": [
  1117. "session"
  1118. ],
  1119. "operationId": "v2.session.rename",
  1120. "parameters": [
  1121. {
  1122. "name": "sessionID",
  1123. "in": "path",
  1124. "schema": {
  1125. "type": "string",
  1126. "allOf": [
  1127. {
  1128. "pattern": "^ses"
  1129. }
  1130. ]
  1131. },
  1132. "required": true
  1133. }
  1134. ],
  1135. "security": [],
  1136. "responses": {
  1137. "204": {
  1138. "description": "<No Content>"
  1139. },
  1140. "400": {
  1141. "description": "InvalidRequestError",
  1142. "content": {
  1143. "application/json": {
  1144. "schema": {
  1145. "$ref": "#/components/schemas/InvalidRequestError"
  1146. }
  1147. }
  1148. }
  1149. },
  1150. "401": {
  1151. "description": "UnauthorizedError",
  1152. "content": {
  1153. "application/json": {
  1154. "schema": {
  1155. "$ref": "#/components/schemas/UnauthorizedError"
  1156. }
  1157. }
  1158. }
  1159. },
  1160. "404": {
  1161. "description": "SessionNotFoundError",
  1162. "content": {
  1163. "application/json": {
  1164. "schema": {
  1165. "anyOf": [
  1166. {
  1167. "$ref": "#/components/schemas/SessionNotFoundError"
  1168. },
  1169. {
  1170. "$ref": "#/components/schemas/SessionNotFoundError"
  1171. }
  1172. ]
  1173. }
  1174. }
  1175. }
  1176. }
  1177. },
  1178. "description": "Update the session title.",
  1179. "summary": "Rename session",
  1180. "requestBody": {
  1181. "content": {
  1182. "application/json": {
  1183. "schema": {
  1184. "type": "object",
  1185. "properties": {
  1186. "title": {
  1187. "type": "string"
  1188. }
  1189. },
  1190. "required": [
  1191. "title"
  1192. ],
  1193. "additionalProperties": false
  1194. }
  1195. }
  1196. },
  1197. "required": true
  1198. }
  1199. }
  1200. },
  1201. "/api/session/{sessionID}/prompt": {
  1202. "post": {
  1203. "tags": [
  1204. "session"
  1205. ],
  1206. "operationId": "v2.session.prompt",
  1207. "parameters": [
  1208. {
  1209. "name": "sessionID",
  1210. "in": "path",
  1211. "schema": {
  1212. "type": "string",
  1213. "allOf": [
  1214. {
  1215. "pattern": "^ses"
  1216. }
  1217. ]
  1218. },
  1219. "required": true
  1220. }
  1221. ],
  1222. "security": [],
  1223. "responses": {
  1224. "200": {
  1225. "description": "Success",
  1226. "content": {
  1227. "application/json": {
  1228. "schema": {
  1229. "type": "object",
  1230. "properties": {
  1231. "data": {
  1232. "$ref": "#/components/schemas/SessionInput.Admitted"
  1233. }
  1234. },
  1235. "required": [
  1236. "data"
  1237. ],
  1238. "additionalProperties": false
  1239. }
  1240. }
  1241. }
  1242. },
  1243. "400": {
  1244. "description": "InvalidRequestError",
  1245. "content": {
  1246. "application/json": {
  1247. "schema": {
  1248. "$ref": "#/components/schemas/InvalidRequestError"
  1249. }
  1250. }
  1251. }
  1252. },
  1253. "401": {
  1254. "description": "UnauthorizedError",
  1255. "content": {
  1256. "application/json": {
  1257. "schema": {
  1258. "$ref": "#/components/schemas/UnauthorizedError"
  1259. }
  1260. }
  1261. }
  1262. },
  1263. "404": {
  1264. "description": "SessionNotFoundError",
  1265. "content": {
  1266. "application/json": {
  1267. "schema": {
  1268. "anyOf": [
  1269. {
  1270. "$ref": "#/components/schemas/SessionNotFoundError"
  1271. },
  1272. {
  1273. "$ref": "#/components/schemas/SessionNotFoundError"
  1274. }
  1275. ]
  1276. }
  1277. }
  1278. }
  1279. },
  1280. "409": {
  1281. "description": "ConflictError",
  1282. "content": {
  1283. "application/json": {
  1284. "schema": {
  1285. "$ref": "#/components/schemas/ConflictError"
  1286. }
  1287. }
  1288. }
  1289. }
  1290. },
  1291. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1292. "summary": "Send message",
  1293. "requestBody": {
  1294. "content": {
  1295. "application/json": {
  1296. "schema": {
  1297. "type": "object",
  1298. "properties": {
  1299. "id": {
  1300. "anyOf": [
  1301. {
  1302. "type": "string",
  1303. "allOf": [
  1304. {
  1305. "pattern": "^msg_"
  1306. }
  1307. ]
  1308. },
  1309. {
  1310. "type": "null"
  1311. }
  1312. ]
  1313. },
  1314. "prompt": {
  1315. "$ref": "#/components/schemas/PromptInput"
  1316. },
  1317. "delivery": {
  1318. "anyOf": [
  1319. {
  1320. "type": "string",
  1321. "enum": [
  1322. "steer",
  1323. "queue"
  1324. ]
  1325. },
  1326. {
  1327. "type": "null"
  1328. }
  1329. ]
  1330. },
  1331. "resume": {
  1332. "anyOf": [
  1333. {
  1334. "type": "boolean"
  1335. },
  1336. {
  1337. "type": "null"
  1338. }
  1339. ]
  1340. }
  1341. },
  1342. "required": [
  1343. "prompt"
  1344. ],
  1345. "additionalProperties": false
  1346. }
  1347. }
  1348. },
  1349. "required": true
  1350. }
  1351. }
  1352. },
  1353. "/api/session/{sessionID}/command": {
  1354. "post": {
  1355. "tags": [
  1356. "session"
  1357. ],
  1358. "operationId": "v2.session.command",
  1359. "parameters": [
  1360. {
  1361. "name": "sessionID",
  1362. "in": "path",
  1363. "schema": {
  1364. "type": "string",
  1365. "allOf": [
  1366. {
  1367. "pattern": "^ses"
  1368. }
  1369. ]
  1370. },
  1371. "required": true
  1372. }
  1373. ],
  1374. "security": [],
  1375. "responses": {
  1376. "200": {
  1377. "description": "Success",
  1378. "content": {
  1379. "application/json": {
  1380. "schema": {
  1381. "type": "object",
  1382. "properties": {
  1383. "data": {
  1384. "$ref": "#/components/schemas/SessionInput.Admitted"
  1385. }
  1386. },
  1387. "required": [
  1388. "data"
  1389. ],
  1390. "additionalProperties": false
  1391. }
  1392. }
  1393. }
  1394. },
  1395. "400": {
  1396. "description": "InvalidRequestError",
  1397. "content": {
  1398. "application/json": {
  1399. "schema": {
  1400. "$ref": "#/components/schemas/InvalidRequestError"
  1401. }
  1402. }
  1403. }
  1404. },
  1405. "401": {
  1406. "description": "UnauthorizedError",
  1407. "content": {
  1408. "application/json": {
  1409. "schema": {
  1410. "$ref": "#/components/schemas/UnauthorizedError"
  1411. }
  1412. }
  1413. }
  1414. },
  1415. "404": {
  1416. "description": "SessionNotFoundError | CommandNotFoundError",
  1417. "content": {
  1418. "application/json": {
  1419. "schema": {
  1420. "anyOf": [
  1421. {
  1422. "$ref": "#/components/schemas/CommandNotFoundError"
  1423. },
  1424. {
  1425. "$ref": "#/components/schemas/SessionNotFoundError"
  1426. },
  1427. {
  1428. "$ref": "#/components/schemas/SessionNotFoundError"
  1429. }
  1430. ]
  1431. }
  1432. }
  1433. }
  1434. },
  1435. "409": {
  1436. "description": "ConflictError",
  1437. "content": {
  1438. "application/json": {
  1439. "schema": {
  1440. "$ref": "#/components/schemas/ConflictError"
  1441. }
  1442. }
  1443. }
  1444. },
  1445. "500": {
  1446. "description": "CommandEvaluationError",
  1447. "content": {
  1448. "application/json": {
  1449. "schema": {
  1450. "$ref": "#/components/schemas/CommandEvaluationError"
  1451. }
  1452. }
  1453. }
  1454. }
  1455. },
  1456. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1457. "summary": "Run command",
  1458. "requestBody": {
  1459. "content": {
  1460. "application/json": {
  1461. "schema": {
  1462. "type": "object",
  1463. "properties": {
  1464. "id": {
  1465. "anyOf": [
  1466. {
  1467. "type": "string",
  1468. "allOf": [
  1469. {
  1470. "pattern": "^msg_"
  1471. }
  1472. ]
  1473. },
  1474. {
  1475. "type": "null"
  1476. }
  1477. ]
  1478. },
  1479. "command": {
  1480. "type": "string"
  1481. },
  1482. "arguments": {
  1483. "anyOf": [
  1484. {
  1485. "type": "string"
  1486. },
  1487. {
  1488. "type": "null"
  1489. }
  1490. ]
  1491. },
  1492. "agent": {
  1493. "anyOf": [
  1494. {
  1495. "type": "string"
  1496. },
  1497. {
  1498. "type": "null"
  1499. }
  1500. ]
  1501. },
  1502. "model": {
  1503. "anyOf": [
  1504. {
  1505. "$ref": "#/components/schemas/Model.Ref"
  1506. },
  1507. {
  1508. "type": "null"
  1509. }
  1510. ]
  1511. },
  1512. "files": {
  1513. "type": "array",
  1514. "items": {
  1515. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1516. }
  1517. },
  1518. "agents": {
  1519. "type": "array",
  1520. "items": {
  1521. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1522. }
  1523. },
  1524. "delivery": {
  1525. "anyOf": [
  1526. {
  1527. "type": "string",
  1528. "enum": [
  1529. "steer",
  1530. "queue"
  1531. ]
  1532. },
  1533. {
  1534. "type": "null"
  1535. }
  1536. ]
  1537. },
  1538. "resume": {
  1539. "anyOf": [
  1540. {
  1541. "type": "boolean"
  1542. },
  1543. {
  1544. "type": "null"
  1545. }
  1546. ]
  1547. }
  1548. },
  1549. "required": [
  1550. "command"
  1551. ],
  1552. "additionalProperties": false
  1553. }
  1554. }
  1555. },
  1556. "required": true
  1557. }
  1558. }
  1559. },
  1560. "/api/session/{sessionID}/skill": {
  1561. "post": {
  1562. "tags": [
  1563. "session"
  1564. ],
  1565. "operationId": "v2.session.skill",
  1566. "parameters": [
  1567. {
  1568. "name": "sessionID",
  1569. "in": "path",
  1570. "schema": {
  1571. "type": "string",
  1572. "allOf": [
  1573. {
  1574. "pattern": "^ses"
  1575. }
  1576. ]
  1577. },
  1578. "required": true
  1579. }
  1580. ],
  1581. "security": [],
  1582. "responses": {
  1583. "204": {
  1584. "description": "<No Content>"
  1585. },
  1586. "400": {
  1587. "description": "InvalidRequestError",
  1588. "content": {
  1589. "application/json": {
  1590. "schema": {
  1591. "$ref": "#/components/schemas/InvalidRequestError"
  1592. }
  1593. }
  1594. }
  1595. },
  1596. "401": {
  1597. "description": "UnauthorizedError",
  1598. "content": {
  1599. "application/json": {
  1600. "schema": {
  1601. "$ref": "#/components/schemas/UnauthorizedError"
  1602. }
  1603. }
  1604. }
  1605. },
  1606. "404": {
  1607. "description": "SessionNotFoundError | SkillNotFoundError",
  1608. "content": {
  1609. "application/json": {
  1610. "schema": {
  1611. "anyOf": [
  1612. {
  1613. "$ref": "#/components/schemas/SkillNotFoundError"
  1614. },
  1615. {
  1616. "$ref": "#/components/schemas/SessionNotFoundError"
  1617. },
  1618. {
  1619. "$ref": "#/components/schemas/SessionNotFoundError"
  1620. }
  1621. ]
  1622. }
  1623. }
  1624. }
  1625. }
  1626. },
  1627. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  1628. "summary": "Activate skill",
  1629. "requestBody": {
  1630. "content": {
  1631. "application/json": {
  1632. "schema": {
  1633. "type": "object",
  1634. "properties": {
  1635. "id": {
  1636. "anyOf": [
  1637. {
  1638. "type": "string",
  1639. "allOf": [
  1640. {
  1641. "pattern": "^msg_"
  1642. }
  1643. ]
  1644. },
  1645. {
  1646. "type": "null"
  1647. }
  1648. ]
  1649. },
  1650. "skill": {
  1651. "type": "string"
  1652. },
  1653. "resume": {
  1654. "anyOf": [
  1655. {
  1656. "type": "boolean"
  1657. },
  1658. {
  1659. "type": "null"
  1660. }
  1661. ]
  1662. }
  1663. },
  1664. "required": [
  1665. "skill"
  1666. ],
  1667. "additionalProperties": false
  1668. }
  1669. }
  1670. },
  1671. "required": true
  1672. }
  1673. }
  1674. },
  1675. "/api/session/{sessionID}/synthetic": {
  1676. "post": {
  1677. "tags": [
  1678. "session"
  1679. ],
  1680. "operationId": "v2.session.synthetic",
  1681. "parameters": [
  1682. {
  1683. "name": "sessionID",
  1684. "in": "path",
  1685. "schema": {
  1686. "type": "string",
  1687. "allOf": [
  1688. {
  1689. "pattern": "^ses"
  1690. }
  1691. ]
  1692. },
  1693. "required": true
  1694. }
  1695. ],
  1696. "security": [],
  1697. "responses": {
  1698. "204": {
  1699. "description": "<No Content>"
  1700. },
  1701. "400": {
  1702. "description": "InvalidRequestError",
  1703. "content": {
  1704. "application/json": {
  1705. "schema": {
  1706. "$ref": "#/components/schemas/InvalidRequestError"
  1707. }
  1708. }
  1709. }
  1710. },
  1711. "401": {
  1712. "description": "UnauthorizedError",
  1713. "content": {
  1714. "application/json": {
  1715. "schema": {
  1716. "$ref": "#/components/schemas/UnauthorizedError"
  1717. }
  1718. }
  1719. }
  1720. },
  1721. "404": {
  1722. "description": "SessionNotFoundError",
  1723. "content": {
  1724. "application/json": {
  1725. "schema": {
  1726. "anyOf": [
  1727. {
  1728. "$ref": "#/components/schemas/SessionNotFoundError"
  1729. },
  1730. {
  1731. "$ref": "#/components/schemas/SessionNotFoundError"
  1732. }
  1733. ]
  1734. }
  1735. }
  1736. }
  1737. }
  1738. },
  1739. "description": "Append a synthetic message to a session and resume execution.",
  1740. "summary": "Add synthetic message",
  1741. "requestBody": {
  1742. "content": {
  1743. "application/json": {
  1744. "schema": {
  1745. "type": "object",
  1746. "properties": {
  1747. "text": {
  1748. "type": "string"
  1749. },
  1750. "description": {
  1751. "anyOf": [
  1752. {
  1753. "type": "string"
  1754. },
  1755. {
  1756. "type": "null"
  1757. }
  1758. ]
  1759. },
  1760. "metadata": {
  1761. "type": "object"
  1762. }
  1763. },
  1764. "required": [
  1765. "text"
  1766. ],
  1767. "additionalProperties": false
  1768. }
  1769. }
  1770. },
  1771. "required": true
  1772. }
  1773. }
  1774. },
  1775. "/api/session/{sessionID}/shell": {
  1776. "post": {
  1777. "tags": [
  1778. "session"
  1779. ],
  1780. "operationId": "v2.session.shell",
  1781. "parameters": [
  1782. {
  1783. "name": "sessionID",
  1784. "in": "path",
  1785. "schema": {
  1786. "type": "string",
  1787. "allOf": [
  1788. {
  1789. "pattern": "^ses"
  1790. }
  1791. ]
  1792. },
  1793. "required": true
  1794. }
  1795. ],
  1796. "security": [],
  1797. "responses": {
  1798. "204": {
  1799. "description": "<No Content>"
  1800. },
  1801. "400": {
  1802. "description": "InvalidRequestError",
  1803. "content": {
  1804. "application/json": {
  1805. "schema": {
  1806. "$ref": "#/components/schemas/InvalidRequestError"
  1807. }
  1808. }
  1809. }
  1810. },
  1811. "401": {
  1812. "description": "UnauthorizedError",
  1813. "content": {
  1814. "application/json": {
  1815. "schema": {
  1816. "$ref": "#/components/schemas/UnauthorizedError"
  1817. }
  1818. }
  1819. }
  1820. },
  1821. "404": {
  1822. "description": "SessionNotFoundError",
  1823. "content": {
  1824. "application/json": {
  1825. "schema": {
  1826. "anyOf": [
  1827. {
  1828. "$ref": "#/components/schemas/SessionNotFoundError"
  1829. },
  1830. {
  1831. "$ref": "#/components/schemas/SessionNotFoundError"
  1832. }
  1833. ]
  1834. }
  1835. }
  1836. }
  1837. }
  1838. },
  1839. "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.",
  1840. "summary": "Run shell command",
  1841. "requestBody": {
  1842. "content": {
  1843. "application/json": {
  1844. "schema": {
  1845. "type": "object",
  1846. "properties": {
  1847. "id": {
  1848. "anyOf": [
  1849. {
  1850. "type": "string",
  1851. "allOf": [
  1852. {
  1853. "pattern": "^evt_"
  1854. }
  1855. ]
  1856. },
  1857. {
  1858. "type": "null"
  1859. }
  1860. ]
  1861. },
  1862. "command": {
  1863. "type": "string"
  1864. }
  1865. },
  1866. "required": [
  1867. "command"
  1868. ],
  1869. "additionalProperties": false
  1870. }
  1871. }
  1872. },
  1873. "required": true
  1874. }
  1875. }
  1876. },
  1877. "/api/session/{sessionID}/compact": {
  1878. "post": {
  1879. "tags": [
  1880. "session"
  1881. ],
  1882. "operationId": "v2.session.compact",
  1883. "parameters": [
  1884. {
  1885. "name": "sessionID",
  1886. "in": "path",
  1887. "schema": {
  1888. "type": "string",
  1889. "allOf": [
  1890. {
  1891. "pattern": "^ses"
  1892. }
  1893. ]
  1894. },
  1895. "required": true
  1896. }
  1897. ],
  1898. "security": [],
  1899. "responses": {
  1900. "204": {
  1901. "description": "<No Content>"
  1902. },
  1903. "400": {
  1904. "description": "InvalidRequestError",
  1905. "content": {
  1906. "application/json": {
  1907. "schema": {
  1908. "$ref": "#/components/schemas/InvalidRequestError"
  1909. }
  1910. }
  1911. }
  1912. },
  1913. "401": {
  1914. "description": "UnauthorizedError",
  1915. "content": {
  1916. "application/json": {
  1917. "schema": {
  1918. "$ref": "#/components/schemas/UnauthorizedError"
  1919. }
  1920. }
  1921. }
  1922. },
  1923. "404": {
  1924. "description": "SessionNotFoundError",
  1925. "content": {
  1926. "application/json": {
  1927. "schema": {
  1928. "anyOf": [
  1929. {
  1930. "$ref": "#/components/schemas/SessionNotFoundError"
  1931. },
  1932. {
  1933. "$ref": "#/components/schemas/SessionNotFoundError"
  1934. }
  1935. ]
  1936. }
  1937. }
  1938. }
  1939. },
  1940. "409": {
  1941. "description": "SessionBusyError",
  1942. "content": {
  1943. "application/json": {
  1944. "schema": {
  1945. "$ref": "#/components/schemas/SessionBusyError"
  1946. }
  1947. }
  1948. }
  1949. },
  1950. "500": {
  1951. "description": "UnknownError",
  1952. "content": {
  1953. "application/json": {
  1954. "schema": {
  1955. "$ref": "#/components/schemas/UnknownError"
  1956. }
  1957. }
  1958. }
  1959. },
  1960. "503": {
  1961. "description": "ServiceUnavailableError",
  1962. "content": {
  1963. "application/json": {
  1964. "schema": {
  1965. "$ref": "#/components/schemas/ServiceUnavailableError"
  1966. }
  1967. }
  1968. }
  1969. }
  1970. },
  1971. "description": "Compact a session conversation.",
  1972. "summary": "Compact session"
  1973. }
  1974. },
  1975. "/api/session/{sessionID}/wait": {
  1976. "post": {
  1977. "tags": [
  1978. "session"
  1979. ],
  1980. "operationId": "v2.session.wait",
  1981. "parameters": [
  1982. {
  1983. "name": "sessionID",
  1984. "in": "path",
  1985. "schema": {
  1986. "type": "string",
  1987. "allOf": [
  1988. {
  1989. "pattern": "^ses"
  1990. }
  1991. ]
  1992. },
  1993. "required": true
  1994. }
  1995. ],
  1996. "security": [],
  1997. "responses": {
  1998. "204": {
  1999. "description": "<No Content>"
  2000. },
  2001. "400": {
  2002. "description": "InvalidRequestError",
  2003. "content": {
  2004. "application/json": {
  2005. "schema": {
  2006. "$ref": "#/components/schemas/InvalidRequestError"
  2007. }
  2008. }
  2009. }
  2010. },
  2011. "401": {
  2012. "description": "UnauthorizedError",
  2013. "content": {
  2014. "application/json": {
  2015. "schema": {
  2016. "$ref": "#/components/schemas/UnauthorizedError"
  2017. }
  2018. }
  2019. }
  2020. },
  2021. "404": {
  2022. "description": "SessionNotFoundError",
  2023. "content": {
  2024. "application/json": {
  2025. "schema": {
  2026. "anyOf": [
  2027. {
  2028. "$ref": "#/components/schemas/SessionNotFoundError"
  2029. },
  2030. {
  2031. "$ref": "#/components/schemas/SessionNotFoundError"
  2032. }
  2033. ]
  2034. }
  2035. }
  2036. }
  2037. },
  2038. "503": {
  2039. "description": "ServiceUnavailableError",
  2040. "content": {
  2041. "application/json": {
  2042. "schema": {
  2043. "$ref": "#/components/schemas/ServiceUnavailableError"
  2044. }
  2045. }
  2046. }
  2047. }
  2048. },
  2049. "description": "Wait for a session agent loop to become idle.",
  2050. "summary": "Wait for session"
  2051. }
  2052. },
  2053. "/api/session/{sessionID}/revert/stage": {
  2054. "post": {
  2055. "tags": [
  2056. "session"
  2057. ],
  2058. "operationId": "v2.session.revert.stage",
  2059. "parameters": [
  2060. {
  2061. "name": "sessionID",
  2062. "in": "path",
  2063. "schema": {
  2064. "type": "string",
  2065. "allOf": [
  2066. {
  2067. "pattern": "^ses"
  2068. }
  2069. ]
  2070. },
  2071. "required": true
  2072. }
  2073. ],
  2074. "security": [],
  2075. "responses": {
  2076. "200": {
  2077. "description": "Success",
  2078. "content": {
  2079. "application/json": {
  2080. "schema": {
  2081. "type": "object",
  2082. "properties": {
  2083. "data": {
  2084. "$ref": "#/components/schemas/Revert.State"
  2085. }
  2086. },
  2087. "required": [
  2088. "data"
  2089. ],
  2090. "additionalProperties": false
  2091. }
  2092. }
  2093. }
  2094. },
  2095. "400": {
  2096. "description": "InvalidRequestError",
  2097. "content": {
  2098. "application/json": {
  2099. "schema": {
  2100. "$ref": "#/components/schemas/InvalidRequestError"
  2101. }
  2102. }
  2103. }
  2104. },
  2105. "401": {
  2106. "description": "UnauthorizedError",
  2107. "content": {
  2108. "application/json": {
  2109. "schema": {
  2110. "$ref": "#/components/schemas/UnauthorizedError"
  2111. }
  2112. }
  2113. }
  2114. },
  2115. "404": {
  2116. "description": "MessageNotFoundError | SessionNotFoundError",
  2117. "content": {
  2118. "application/json": {
  2119. "schema": {
  2120. "anyOf": [
  2121. {
  2122. "$ref": "#/components/schemas/MessageNotFoundError"
  2123. },
  2124. {
  2125. "$ref": "#/components/schemas/SessionNotFoundError"
  2126. },
  2127. {
  2128. "$ref": "#/components/schemas/SessionNotFoundError"
  2129. }
  2130. ]
  2131. }
  2132. }
  2133. }
  2134. },
  2135. "409": {
  2136. "description": "SessionBusyError",
  2137. "content": {
  2138. "application/json": {
  2139. "schema": {
  2140. "$ref": "#/components/schemas/SessionBusyError"
  2141. }
  2142. }
  2143. }
  2144. },
  2145. "500": {
  2146. "description": "UnknownError",
  2147. "content": {
  2148. "application/json": {
  2149. "schema": {
  2150. "$ref": "#/components/schemas/UnknownError"
  2151. }
  2152. }
  2153. }
  2154. }
  2155. },
  2156. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2157. "summary": "Stage session revert",
  2158. "requestBody": {
  2159. "content": {
  2160. "application/json": {
  2161. "schema": {
  2162. "type": "object",
  2163. "properties": {
  2164. "messageID": {
  2165. "type": "string",
  2166. "allOf": [
  2167. {
  2168. "pattern": "^msg_"
  2169. }
  2170. ]
  2171. },
  2172. "files": {
  2173. "anyOf": [
  2174. {
  2175. "type": "boolean"
  2176. },
  2177. {
  2178. "type": "null"
  2179. }
  2180. ]
  2181. }
  2182. },
  2183. "required": [
  2184. "messageID"
  2185. ],
  2186. "additionalProperties": false
  2187. }
  2188. }
  2189. },
  2190. "required": true
  2191. }
  2192. }
  2193. },
  2194. "/api/session/{sessionID}/revert/clear": {
  2195. "post": {
  2196. "tags": [
  2197. "session"
  2198. ],
  2199. "operationId": "v2.session.revert.clear",
  2200. "parameters": [
  2201. {
  2202. "name": "sessionID",
  2203. "in": "path",
  2204. "schema": {
  2205. "type": "string",
  2206. "allOf": [
  2207. {
  2208. "pattern": "^ses"
  2209. }
  2210. ]
  2211. },
  2212. "required": true
  2213. }
  2214. ],
  2215. "security": [],
  2216. "responses": {
  2217. "204": {
  2218. "description": "<No Content>"
  2219. },
  2220. "400": {
  2221. "description": "InvalidRequestError",
  2222. "content": {
  2223. "application/json": {
  2224. "schema": {
  2225. "$ref": "#/components/schemas/InvalidRequestError"
  2226. }
  2227. }
  2228. }
  2229. },
  2230. "401": {
  2231. "description": "UnauthorizedError",
  2232. "content": {
  2233. "application/json": {
  2234. "schema": {
  2235. "$ref": "#/components/schemas/UnauthorizedError"
  2236. }
  2237. }
  2238. }
  2239. },
  2240. "404": {
  2241. "description": "SessionNotFoundError",
  2242. "content": {
  2243. "application/json": {
  2244. "schema": {
  2245. "anyOf": [
  2246. {
  2247. "$ref": "#/components/schemas/SessionNotFoundError"
  2248. },
  2249. {
  2250. "$ref": "#/components/schemas/SessionNotFoundError"
  2251. }
  2252. ]
  2253. }
  2254. }
  2255. }
  2256. },
  2257. "409": {
  2258. "description": "SessionBusyError",
  2259. "content": {
  2260. "application/json": {
  2261. "schema": {
  2262. "$ref": "#/components/schemas/SessionBusyError"
  2263. }
  2264. }
  2265. }
  2266. },
  2267. "500": {
  2268. "description": "UnknownError",
  2269. "content": {
  2270. "application/json": {
  2271. "schema": {
  2272. "$ref": "#/components/schemas/UnknownError"
  2273. }
  2274. }
  2275. }
  2276. }
  2277. },
  2278. "summary": "Clear staged revert"
  2279. }
  2280. },
  2281. "/api/session/{sessionID}/revert/commit": {
  2282. "post": {
  2283. "tags": [
  2284. "session"
  2285. ],
  2286. "operationId": "v2.session.revert.commit",
  2287. "parameters": [
  2288. {
  2289. "name": "sessionID",
  2290. "in": "path",
  2291. "schema": {
  2292. "type": "string",
  2293. "allOf": [
  2294. {
  2295. "pattern": "^ses"
  2296. }
  2297. ]
  2298. },
  2299. "required": true
  2300. }
  2301. ],
  2302. "security": [],
  2303. "responses": {
  2304. "204": {
  2305. "description": "<No Content>"
  2306. },
  2307. "400": {
  2308. "description": "InvalidRequestError",
  2309. "content": {
  2310. "application/json": {
  2311. "schema": {
  2312. "$ref": "#/components/schemas/InvalidRequestError"
  2313. }
  2314. }
  2315. }
  2316. },
  2317. "401": {
  2318. "description": "UnauthorizedError",
  2319. "content": {
  2320. "application/json": {
  2321. "schema": {
  2322. "$ref": "#/components/schemas/UnauthorizedError"
  2323. }
  2324. }
  2325. }
  2326. },
  2327. "404": {
  2328. "description": "SessionNotFoundError",
  2329. "content": {
  2330. "application/json": {
  2331. "schema": {
  2332. "anyOf": [
  2333. {
  2334. "$ref": "#/components/schemas/SessionNotFoundError"
  2335. },
  2336. {
  2337. "$ref": "#/components/schemas/SessionNotFoundError"
  2338. }
  2339. ]
  2340. }
  2341. }
  2342. }
  2343. },
  2344. "409": {
  2345. "description": "SessionBusyError",
  2346. "content": {
  2347. "application/json": {
  2348. "schema": {
  2349. "$ref": "#/components/schemas/SessionBusyError"
  2350. }
  2351. }
  2352. }
  2353. }
  2354. },
  2355. "summary": "Commit staged revert"
  2356. }
  2357. },
  2358. "/api/session/{sessionID}/context": {
  2359. "get": {
  2360. "tags": [
  2361. "session"
  2362. ],
  2363. "operationId": "v2.session.context",
  2364. "parameters": [
  2365. {
  2366. "name": "sessionID",
  2367. "in": "path",
  2368. "schema": {
  2369. "type": "string",
  2370. "allOf": [
  2371. {
  2372. "pattern": "^ses"
  2373. }
  2374. ]
  2375. },
  2376. "required": true
  2377. }
  2378. ],
  2379. "security": [],
  2380. "responses": {
  2381. "200": {
  2382. "description": "Success",
  2383. "content": {
  2384. "application/json": {
  2385. "schema": {
  2386. "type": "object",
  2387. "properties": {
  2388. "data": {
  2389. "type": "array",
  2390. "items": {
  2391. "$ref": "#/components/schemas/Session.Message"
  2392. }
  2393. }
  2394. },
  2395. "required": [
  2396. "data"
  2397. ],
  2398. "additionalProperties": false
  2399. }
  2400. }
  2401. }
  2402. },
  2403. "400": {
  2404. "description": "InvalidRequestError",
  2405. "content": {
  2406. "application/json": {
  2407. "schema": {
  2408. "$ref": "#/components/schemas/InvalidRequestError"
  2409. }
  2410. }
  2411. }
  2412. },
  2413. "401": {
  2414. "description": "UnauthorizedError",
  2415. "content": {
  2416. "application/json": {
  2417. "schema": {
  2418. "$ref": "#/components/schemas/UnauthorizedError"
  2419. }
  2420. }
  2421. }
  2422. },
  2423. "404": {
  2424. "description": "SessionNotFoundError",
  2425. "content": {
  2426. "application/json": {
  2427. "schema": {
  2428. "anyOf": [
  2429. {
  2430. "$ref": "#/components/schemas/SessionNotFoundError"
  2431. },
  2432. {
  2433. "$ref": "#/components/schemas/SessionNotFoundError"
  2434. }
  2435. ]
  2436. }
  2437. }
  2438. }
  2439. },
  2440. "500": {
  2441. "description": "UnknownError",
  2442. "content": {
  2443. "application/json": {
  2444. "schema": {
  2445. "$ref": "#/components/schemas/UnknownError"
  2446. }
  2447. }
  2448. }
  2449. }
  2450. },
  2451. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2452. "summary": "Get session context"
  2453. }
  2454. },
  2455. "/api/session/{sessionID}/context-entry": {
  2456. "get": {
  2457. "tags": [
  2458. "session"
  2459. ],
  2460. "operationId": "v2.session.context.entry.list",
  2461. "parameters": [
  2462. {
  2463. "name": "sessionID",
  2464. "in": "path",
  2465. "schema": {
  2466. "type": "string",
  2467. "allOf": [
  2468. {
  2469. "pattern": "^ses"
  2470. }
  2471. ]
  2472. },
  2473. "required": true
  2474. }
  2475. ],
  2476. "security": [],
  2477. "responses": {
  2478. "200": {
  2479. "description": "Success",
  2480. "content": {
  2481. "application/json": {
  2482. "schema": {
  2483. "type": "object",
  2484. "properties": {
  2485. "data": {
  2486. "type": "array",
  2487. "items": {
  2488. "$ref": "#/components/schemas/SessionContextEntry.Info"
  2489. }
  2490. }
  2491. },
  2492. "required": [
  2493. "data"
  2494. ],
  2495. "additionalProperties": false
  2496. }
  2497. }
  2498. }
  2499. },
  2500. "400": {
  2501. "description": "InvalidRequestError",
  2502. "content": {
  2503. "application/json": {
  2504. "schema": {
  2505. "$ref": "#/components/schemas/InvalidRequestError"
  2506. }
  2507. }
  2508. }
  2509. },
  2510. "401": {
  2511. "description": "UnauthorizedError",
  2512. "content": {
  2513. "application/json": {
  2514. "schema": {
  2515. "$ref": "#/components/schemas/UnauthorizedError"
  2516. }
  2517. }
  2518. }
  2519. },
  2520. "404": {
  2521. "description": "SessionNotFoundError",
  2522. "content": {
  2523. "application/json": {
  2524. "schema": {
  2525. "anyOf": [
  2526. {
  2527. "$ref": "#/components/schemas/SessionNotFoundError"
  2528. },
  2529. {
  2530. "$ref": "#/components/schemas/SessionNotFoundError"
  2531. }
  2532. ]
  2533. }
  2534. }
  2535. }
  2536. }
  2537. },
  2538. "description": "List API-managed context entries attached to the session's system context.",
  2539. "summary": "List context entries"
  2540. }
  2541. },
  2542. "/api/session/{sessionID}/context-entry/{key}": {
  2543. "put": {
  2544. "tags": [
  2545. "session"
  2546. ],
  2547. "operationId": "v2.session.context.entry.put",
  2548. "parameters": [
  2549. {
  2550. "name": "sessionID",
  2551. "in": "path",
  2552. "schema": {
  2553. "type": "string",
  2554. "allOf": [
  2555. {
  2556. "pattern": "^ses"
  2557. }
  2558. ]
  2559. },
  2560. "required": true
  2561. },
  2562. {
  2563. "name": "key",
  2564. "in": "path",
  2565. "schema": {
  2566. "$ref": "#/components/schemas/SessionContextEntry.Key"
  2567. },
  2568. "required": true
  2569. }
  2570. ],
  2571. "security": [],
  2572. "responses": {
  2573. "204": {
  2574. "description": "<No Content>"
  2575. },
  2576. "400": {
  2577. "description": "InvalidRequestError",
  2578. "content": {
  2579. "application/json": {
  2580. "schema": {
  2581. "$ref": "#/components/schemas/InvalidRequestError"
  2582. }
  2583. }
  2584. }
  2585. },
  2586. "401": {
  2587. "description": "UnauthorizedError",
  2588. "content": {
  2589. "application/json": {
  2590. "schema": {
  2591. "$ref": "#/components/schemas/UnauthorizedError"
  2592. }
  2593. }
  2594. }
  2595. },
  2596. "404": {
  2597. "description": "SessionNotFoundError",
  2598. "content": {
  2599. "application/json": {
  2600. "schema": {
  2601. "anyOf": [
  2602. {
  2603. "$ref": "#/components/schemas/SessionNotFoundError"
  2604. },
  2605. {
  2606. "$ref": "#/components/schemas/SessionNotFoundError"
  2607. }
  2608. ]
  2609. }
  2610. }
  2611. }
  2612. }
  2613. },
  2614. "description": "Attach or replace one durable context entry. The value is rendered into the session's system context; changes announce as updates at the next turn boundary.",
  2615. "summary": "Put context entry",
  2616. "requestBody": {
  2617. "content": {
  2618. "application/json": {
  2619. "schema": {
  2620. "type": "object",
  2621. "properties": {
  2622. "value": {}
  2623. },
  2624. "required": [
  2625. "value"
  2626. ],
  2627. "additionalProperties": false
  2628. }
  2629. }
  2630. },
  2631. "required": true
  2632. }
  2633. },
  2634. "delete": {
  2635. "tags": [
  2636. "session"
  2637. ],
  2638. "operationId": "v2.session.context.entry.remove",
  2639. "parameters": [
  2640. {
  2641. "name": "sessionID",
  2642. "in": "path",
  2643. "schema": {
  2644. "type": "string",
  2645. "allOf": [
  2646. {
  2647. "pattern": "^ses"
  2648. }
  2649. ]
  2650. },
  2651. "required": true
  2652. },
  2653. {
  2654. "name": "key",
  2655. "in": "path",
  2656. "schema": {
  2657. "$ref": "#/components/schemas/SessionContextEntry.Key"
  2658. },
  2659. "required": true
  2660. }
  2661. ],
  2662. "security": [],
  2663. "responses": {
  2664. "204": {
  2665. "description": "<No Content>"
  2666. },
  2667. "400": {
  2668. "description": "InvalidRequestError",
  2669. "content": {
  2670. "application/json": {
  2671. "schema": {
  2672. "$ref": "#/components/schemas/InvalidRequestError"
  2673. }
  2674. }
  2675. }
  2676. },
  2677. "401": {
  2678. "description": "UnauthorizedError",
  2679. "content": {
  2680. "application/json": {
  2681. "schema": {
  2682. "$ref": "#/components/schemas/UnauthorizedError"
  2683. }
  2684. }
  2685. }
  2686. },
  2687. "404": {
  2688. "description": "SessionNotFoundError",
  2689. "content": {
  2690. "application/json": {
  2691. "schema": {
  2692. "anyOf": [
  2693. {
  2694. "$ref": "#/components/schemas/SessionNotFoundError"
  2695. },
  2696. {
  2697. "$ref": "#/components/schemas/SessionNotFoundError"
  2698. }
  2699. ]
  2700. }
  2701. }
  2702. }
  2703. }
  2704. },
  2705. "description": "Remove one context entry; the removal is announced to the model at the next turn boundary.",
  2706. "summary": "Remove context entry"
  2707. }
  2708. },
  2709. "/api/session/{sessionID}/log": {
  2710. "get": {
  2711. "tags": [
  2712. "session"
  2713. ],
  2714. "operationId": "v2.session.log",
  2715. "parameters": [
  2716. {
  2717. "name": "sessionID",
  2718. "in": "path",
  2719. "schema": {
  2720. "type": "string",
  2721. "allOf": [
  2722. {
  2723. "pattern": "^ses"
  2724. }
  2725. ]
  2726. },
  2727. "required": true
  2728. },
  2729. {
  2730. "name": "after",
  2731. "in": "query",
  2732. "schema": {
  2733. "anyOf": [
  2734. {
  2735. "type": "string"
  2736. },
  2737. {
  2738. "type": "null"
  2739. }
  2740. ]
  2741. },
  2742. "required": false
  2743. },
  2744. {
  2745. "name": "follow",
  2746. "in": "query",
  2747. "schema": {
  2748. "anyOf": [
  2749. {
  2750. "type": "string",
  2751. "enum": [
  2752. "true",
  2753. "false"
  2754. ]
  2755. },
  2756. {
  2757. "type": "null"
  2758. }
  2759. ]
  2760. },
  2761. "required": false
  2762. }
  2763. ],
  2764. "security": [],
  2765. "responses": {
  2766. "200": {
  2767. "description": "Success",
  2768. "content": {
  2769. "text/event-stream": {
  2770. "schema": {
  2771. "type": "object",
  2772. "properties": {
  2773. "id": {
  2774. "anyOf": [
  2775. {
  2776. "type": "string"
  2777. },
  2778. {
  2779. "type": "null"
  2780. }
  2781. ]
  2782. },
  2783. "event": {
  2784. "type": "string"
  2785. },
  2786. "data": {
  2787. "$ref": "#/components/schemas/SessionLogItemStream"
  2788. }
  2789. },
  2790. "required": [
  2791. "id",
  2792. "event",
  2793. "data"
  2794. ],
  2795. "additionalProperties": false
  2796. },
  2797. "x-effect-stream": {
  2798. "encoding": "sse",
  2799. "causeSchema": {
  2800. "type": "array",
  2801. "items": {
  2802. "anyOf": [
  2803. {
  2804. "type": "object",
  2805. "properties": {
  2806. "_tag": {
  2807. "type": "string",
  2808. "enum": [
  2809. "Fail"
  2810. ]
  2811. },
  2812. "error": {
  2813. "not": {}
  2814. }
  2815. },
  2816. "required": [
  2817. "_tag",
  2818. "error"
  2819. ],
  2820. "additionalProperties": false
  2821. },
  2822. {
  2823. "type": "object",
  2824. "properties": {
  2825. "_tag": {
  2826. "type": "string",
  2827. "enum": [
  2828. "Die"
  2829. ]
  2830. },
  2831. "defect": {}
  2832. },
  2833. "required": [
  2834. "_tag",
  2835. "defect"
  2836. ],
  2837. "additionalProperties": false
  2838. },
  2839. {
  2840. "type": "object",
  2841. "properties": {
  2842. "_tag": {
  2843. "type": "string",
  2844. "enum": [
  2845. "Interrupt"
  2846. ]
  2847. },
  2848. "fiberId": {
  2849. "anyOf": [
  2850. {
  2851. "type": "number"
  2852. },
  2853. {
  2854. "type": "null"
  2855. }
  2856. ]
  2857. }
  2858. },
  2859. "required": [
  2860. "_tag",
  2861. "fiberId"
  2862. ],
  2863. "additionalProperties": false
  2864. }
  2865. ]
  2866. }
  2867. },
  2868. "errorSchema": {
  2869. "not": {}
  2870. },
  2871. "failureEvent": "effect/httpapi/stream/failure"
  2872. }
  2873. }
  2874. }
  2875. },
  2876. "400": {
  2877. "description": "InvalidRequestError",
  2878. "content": {
  2879. "application/json": {
  2880. "schema": {
  2881. "$ref": "#/components/schemas/InvalidRequestError"
  2882. }
  2883. }
  2884. }
  2885. },
  2886. "401": {
  2887. "description": "UnauthorizedError",
  2888. "content": {
  2889. "application/json": {
  2890. "schema": {
  2891. "$ref": "#/components/schemas/UnauthorizedError"
  2892. }
  2893. }
  2894. }
  2895. },
  2896. "404": {
  2897. "description": "SessionNotFoundError",
  2898. "content": {
  2899. "application/json": {
  2900. "schema": {
  2901. "anyOf": [
  2902. {
  2903. "$ref": "#/components/schemas/SessionNotFoundError"
  2904. },
  2905. {
  2906. "$ref": "#/components/schemas/SessionNotFoundError"
  2907. }
  2908. ]
  2909. }
  2910. }
  2911. }
  2912. }
  2913. },
  2914. "description": "Durable, ordered, gap-free read of public session events after an exclusive aggregate sequence. Emits a synced marker once replay reaches the captured watermark, then completes; with follow=true it continues with live events instead. The only event API that promises reliability: attach after a snapshot watermark to compose fetch and stream without a race window.",
  2915. "summary": "Read the session log"
  2916. }
  2917. },
  2918. "/api/session/{sessionID}/interrupt": {
  2919. "post": {
  2920. "tags": [
  2921. "session"
  2922. ],
  2923. "operationId": "v2.session.interrupt",
  2924. "parameters": [
  2925. {
  2926. "name": "sessionID",
  2927. "in": "path",
  2928. "schema": {
  2929. "type": "string",
  2930. "allOf": [
  2931. {
  2932. "pattern": "^ses"
  2933. }
  2934. ]
  2935. },
  2936. "required": true
  2937. }
  2938. ],
  2939. "security": [],
  2940. "responses": {
  2941. "204": {
  2942. "description": "<No Content>"
  2943. },
  2944. "400": {
  2945. "description": "InvalidRequestError",
  2946. "content": {
  2947. "application/json": {
  2948. "schema": {
  2949. "$ref": "#/components/schemas/InvalidRequestError"
  2950. }
  2951. }
  2952. }
  2953. },
  2954. "401": {
  2955. "description": "UnauthorizedError",
  2956. "content": {
  2957. "application/json": {
  2958. "schema": {
  2959. "$ref": "#/components/schemas/UnauthorizedError"
  2960. }
  2961. }
  2962. }
  2963. },
  2964. "404": {
  2965. "description": "SessionNotFoundError",
  2966. "content": {
  2967. "application/json": {
  2968. "schema": {
  2969. "anyOf": [
  2970. {
  2971. "$ref": "#/components/schemas/SessionNotFoundError"
  2972. },
  2973. {
  2974. "$ref": "#/components/schemas/SessionNotFoundError"
  2975. }
  2976. ]
  2977. }
  2978. }
  2979. }
  2980. }
  2981. },
  2982. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  2983. "summary": "Interrupt session execution"
  2984. }
  2985. },
  2986. "/api/session/{sessionID}/background": {
  2987. "post": {
  2988. "tags": [
  2989. "session"
  2990. ],
  2991. "operationId": "v2.session.background",
  2992. "parameters": [
  2993. {
  2994. "name": "sessionID",
  2995. "in": "path",
  2996. "schema": {
  2997. "type": "string",
  2998. "allOf": [
  2999. {
  3000. "pattern": "^ses"
  3001. }
  3002. ]
  3003. },
  3004. "required": true
  3005. }
  3006. ],
  3007. "security": [],
  3008. "responses": {
  3009. "204": {
  3010. "description": "<No Content>"
  3011. },
  3012. "400": {
  3013. "description": "InvalidRequestError",
  3014. "content": {
  3015. "application/json": {
  3016. "schema": {
  3017. "$ref": "#/components/schemas/InvalidRequestError"
  3018. }
  3019. }
  3020. }
  3021. },
  3022. "401": {
  3023. "description": "UnauthorizedError",
  3024. "content": {
  3025. "application/json": {
  3026. "schema": {
  3027. "$ref": "#/components/schemas/UnauthorizedError"
  3028. }
  3029. }
  3030. }
  3031. },
  3032. "404": {
  3033. "description": "SessionNotFoundError",
  3034. "content": {
  3035. "application/json": {
  3036. "schema": {
  3037. "anyOf": [
  3038. {
  3039. "$ref": "#/components/schemas/SessionNotFoundError"
  3040. },
  3041. {
  3042. "$ref": "#/components/schemas/SessionNotFoundError"
  3043. }
  3044. ]
  3045. }
  3046. }
  3047. }
  3048. }
  3049. },
  3050. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3051. "summary": "Background blocking session tools"
  3052. }
  3053. },
  3054. "/api/session/{sessionID}/message/{messageID}": {
  3055. "get": {
  3056. "tags": [
  3057. "session"
  3058. ],
  3059. "operationId": "v2.session.message",
  3060. "parameters": [
  3061. {
  3062. "name": "sessionID",
  3063. "in": "path",
  3064. "schema": {
  3065. "type": "string",
  3066. "allOf": [
  3067. {
  3068. "pattern": "^ses"
  3069. }
  3070. ]
  3071. },
  3072. "required": true
  3073. },
  3074. {
  3075. "name": "messageID",
  3076. "in": "path",
  3077. "schema": {
  3078. "type": "string",
  3079. "allOf": [
  3080. {
  3081. "pattern": "^msg_"
  3082. }
  3083. ]
  3084. },
  3085. "required": true
  3086. }
  3087. ],
  3088. "security": [],
  3089. "responses": {
  3090. "200": {
  3091. "description": "Success",
  3092. "content": {
  3093. "application/json": {
  3094. "schema": {
  3095. "type": "object",
  3096. "properties": {
  3097. "data": {
  3098. "$ref": "#/components/schemas/Session.Message"
  3099. }
  3100. },
  3101. "required": [
  3102. "data"
  3103. ],
  3104. "additionalProperties": false
  3105. }
  3106. }
  3107. }
  3108. },
  3109. "400": {
  3110. "description": "InvalidRequestError",
  3111. "content": {
  3112. "application/json": {
  3113. "schema": {
  3114. "$ref": "#/components/schemas/InvalidRequestError"
  3115. }
  3116. }
  3117. }
  3118. },
  3119. "401": {
  3120. "description": "UnauthorizedError",
  3121. "content": {
  3122. "application/json": {
  3123. "schema": {
  3124. "$ref": "#/components/schemas/UnauthorizedError"
  3125. }
  3126. }
  3127. }
  3128. },
  3129. "404": {
  3130. "description": "SessionNotFoundError | MessageNotFoundError",
  3131. "content": {
  3132. "application/json": {
  3133. "schema": {
  3134. "anyOf": [
  3135. {
  3136. "$ref": "#/components/schemas/MessageNotFoundError"
  3137. },
  3138. {
  3139. "$ref": "#/components/schemas/SessionNotFoundError"
  3140. },
  3141. {
  3142. "$ref": "#/components/schemas/SessionNotFoundError"
  3143. }
  3144. ]
  3145. }
  3146. }
  3147. }
  3148. }
  3149. },
  3150. "description": "Retrieve one projected message owned by the Session.",
  3151. "summary": "Get session message"
  3152. }
  3153. },
  3154. "/api/session/{sessionID}/message": {
  3155. "get": {
  3156. "tags": [
  3157. "session"
  3158. ],
  3159. "operationId": "v2.session.messages",
  3160. "parameters": [
  3161. {
  3162. "name": "sessionID",
  3163. "in": "path",
  3164. "schema": {
  3165. "type": "string",
  3166. "allOf": [
  3167. {
  3168. "pattern": "^ses"
  3169. }
  3170. ]
  3171. },
  3172. "required": true
  3173. },
  3174. {
  3175. "name": "limit",
  3176. "in": "query",
  3177. "schema": {
  3178. "anyOf": [
  3179. {
  3180. "type": "string"
  3181. },
  3182. {
  3183. "type": "null"
  3184. }
  3185. ],
  3186. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3187. },
  3188. "required": false
  3189. },
  3190. {
  3191. "name": "order",
  3192. "in": "query",
  3193. "schema": {
  3194. "anyOf": [
  3195. {
  3196. "type": "string",
  3197. "enum": [
  3198. "asc",
  3199. "desc"
  3200. ]
  3201. },
  3202. {
  3203. "type": "null"
  3204. }
  3205. ],
  3206. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3207. },
  3208. "required": false
  3209. },
  3210. {
  3211. "name": "cursor",
  3212. "in": "query",
  3213. "schema": {
  3214. "anyOf": [
  3215. {
  3216. "type": "string",
  3217. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3218. },
  3219. {
  3220. "type": "null"
  3221. }
  3222. ]
  3223. },
  3224. "required": false
  3225. }
  3226. ],
  3227. "security": [],
  3228. "responses": {
  3229. "200": {
  3230. "description": "SessionMessagesResponse",
  3231. "content": {
  3232. "application/json": {
  3233. "schema": {
  3234. "$ref": "#/components/schemas/SessionMessagesResponse"
  3235. }
  3236. }
  3237. }
  3238. },
  3239. "400": {
  3240. "description": "InvalidCursorError | InvalidRequestError",
  3241. "content": {
  3242. "application/json": {
  3243. "schema": {
  3244. "anyOf": [
  3245. {
  3246. "$ref": "#/components/schemas/InvalidCursorError"
  3247. },
  3248. {
  3249. "$ref": "#/components/schemas/InvalidRequestError"
  3250. }
  3251. ]
  3252. }
  3253. }
  3254. }
  3255. },
  3256. "401": {
  3257. "description": "UnauthorizedError",
  3258. "content": {
  3259. "application/json": {
  3260. "schema": {
  3261. "$ref": "#/components/schemas/UnauthorizedError"
  3262. }
  3263. }
  3264. }
  3265. },
  3266. "404": {
  3267. "description": "SessionNotFoundError",
  3268. "content": {
  3269. "application/json": {
  3270. "schema": {
  3271. "anyOf": [
  3272. {
  3273. "$ref": "#/components/schemas/SessionNotFoundError"
  3274. },
  3275. {
  3276. "$ref": "#/components/schemas/SessionNotFoundError"
  3277. }
  3278. ]
  3279. }
  3280. }
  3281. }
  3282. },
  3283. "500": {
  3284. "description": "UnknownError",
  3285. "content": {
  3286. "application/json": {
  3287. "schema": {
  3288. "$ref": "#/components/schemas/UnknownError"
  3289. }
  3290. }
  3291. }
  3292. }
  3293. },
  3294. "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.",
  3295. "summary": "Get session messages"
  3296. }
  3297. },
  3298. "/api/model": {
  3299. "get": {
  3300. "tags": [
  3301. "model"
  3302. ],
  3303. "operationId": "v2.model.list",
  3304. "parameters": [
  3305. {
  3306. "name": "location",
  3307. "in": "query",
  3308. "schema": {
  3309. "anyOf": [
  3310. {
  3311. "type": "object",
  3312. "properties": {
  3313. "directory": {
  3314. "anyOf": [
  3315. {
  3316. "type": "string"
  3317. },
  3318. {
  3319. "type": "null"
  3320. }
  3321. ]
  3322. },
  3323. "workspace": {
  3324. "anyOf": [
  3325. {
  3326. "type": "string"
  3327. },
  3328. {
  3329. "type": "null"
  3330. }
  3331. ]
  3332. }
  3333. },
  3334. "additionalProperties": false
  3335. },
  3336. {
  3337. "type": "null"
  3338. }
  3339. ]
  3340. },
  3341. "required": false,
  3342. "style": "deepObject",
  3343. "explode": true
  3344. }
  3345. ],
  3346. "security": [],
  3347. "responses": {
  3348. "200": {
  3349. "description": "Success",
  3350. "content": {
  3351. "application/json": {
  3352. "schema": {
  3353. "type": "object",
  3354. "properties": {
  3355. "location": {
  3356. "$ref": "#/components/schemas/Location.Info"
  3357. },
  3358. "data": {
  3359. "type": "array",
  3360. "items": {
  3361. "$ref": "#/components/schemas/ModelV2.Info"
  3362. }
  3363. }
  3364. },
  3365. "required": [
  3366. "location",
  3367. "data"
  3368. ],
  3369. "additionalProperties": false
  3370. }
  3371. }
  3372. }
  3373. },
  3374. "400": {
  3375. "description": "InvalidRequestError",
  3376. "content": {
  3377. "application/json": {
  3378. "schema": {
  3379. "$ref": "#/components/schemas/InvalidRequestError"
  3380. }
  3381. }
  3382. }
  3383. },
  3384. "401": {
  3385. "description": "UnauthorizedError",
  3386. "content": {
  3387. "application/json": {
  3388. "schema": {
  3389. "$ref": "#/components/schemas/UnauthorizedError"
  3390. }
  3391. }
  3392. }
  3393. },
  3394. "503": {
  3395. "description": "ServiceUnavailableError",
  3396. "content": {
  3397. "application/json": {
  3398. "schema": {
  3399. "$ref": "#/components/schemas/ServiceUnavailableError"
  3400. }
  3401. }
  3402. }
  3403. }
  3404. },
  3405. "description": "Retrieve available models ordered by release date.",
  3406. "summary": "List models"
  3407. }
  3408. },
  3409. "/api/model/default": {
  3410. "get": {
  3411. "tags": [
  3412. "model"
  3413. ],
  3414. "operationId": "v2.model.default",
  3415. "parameters": [
  3416. {
  3417. "name": "location",
  3418. "in": "query",
  3419. "schema": {
  3420. "anyOf": [
  3421. {
  3422. "type": "object",
  3423. "properties": {
  3424. "directory": {
  3425. "anyOf": [
  3426. {
  3427. "type": "string"
  3428. },
  3429. {
  3430. "type": "null"
  3431. }
  3432. ]
  3433. },
  3434. "workspace": {
  3435. "anyOf": [
  3436. {
  3437. "type": "string"
  3438. },
  3439. {
  3440. "type": "null"
  3441. }
  3442. ]
  3443. }
  3444. },
  3445. "additionalProperties": false
  3446. },
  3447. {
  3448. "type": "null"
  3449. }
  3450. ]
  3451. },
  3452. "required": false,
  3453. "style": "deepObject",
  3454. "explode": true
  3455. }
  3456. ],
  3457. "security": [],
  3458. "responses": {
  3459. "200": {
  3460. "description": "Success",
  3461. "content": {
  3462. "application/json": {
  3463. "schema": {
  3464. "type": "object",
  3465. "properties": {
  3466. "location": {
  3467. "$ref": "#/components/schemas/Location.Info"
  3468. },
  3469. "data": {
  3470. "anyOf": [
  3471. {
  3472. "$ref": "#/components/schemas/ModelV2.Info"
  3473. },
  3474. {
  3475. "type": "null"
  3476. }
  3477. ]
  3478. }
  3479. },
  3480. "required": [
  3481. "location",
  3482. "data"
  3483. ],
  3484. "additionalProperties": false
  3485. }
  3486. }
  3487. }
  3488. },
  3489. "400": {
  3490. "description": "InvalidRequestError",
  3491. "content": {
  3492. "application/json": {
  3493. "schema": {
  3494. "$ref": "#/components/schemas/InvalidRequestError"
  3495. }
  3496. }
  3497. }
  3498. },
  3499. "401": {
  3500. "description": "UnauthorizedError",
  3501. "content": {
  3502. "application/json": {
  3503. "schema": {
  3504. "$ref": "#/components/schemas/UnauthorizedError"
  3505. }
  3506. }
  3507. }
  3508. },
  3509. "503": {
  3510. "description": "ServiceUnavailableError",
  3511. "content": {
  3512. "application/json": {
  3513. "schema": {
  3514. "$ref": "#/components/schemas/ServiceUnavailableError"
  3515. }
  3516. }
  3517. }
  3518. }
  3519. },
  3520. "description": "Retrieve the model used when a session has no explicit model selection.",
  3521. "summary": "Get default model"
  3522. }
  3523. },
  3524. "/api/generate": {
  3525. "post": {
  3526. "tags": [
  3527. "generate"
  3528. ],
  3529. "operationId": "v2.generate.text",
  3530. "parameters": [
  3531. {
  3532. "name": "location",
  3533. "in": "query",
  3534. "schema": {
  3535. "anyOf": [
  3536. {
  3537. "type": "object",
  3538. "properties": {
  3539. "directory": {
  3540. "anyOf": [
  3541. {
  3542. "type": "string"
  3543. },
  3544. {
  3545. "type": "null"
  3546. }
  3547. ]
  3548. },
  3549. "workspace": {
  3550. "anyOf": [
  3551. {
  3552. "type": "string"
  3553. },
  3554. {
  3555. "type": "null"
  3556. }
  3557. ]
  3558. }
  3559. },
  3560. "additionalProperties": false
  3561. },
  3562. {
  3563. "type": "null"
  3564. }
  3565. ]
  3566. },
  3567. "required": false,
  3568. "style": "deepObject",
  3569. "explode": true
  3570. }
  3571. ],
  3572. "security": [],
  3573. "responses": {
  3574. "200": {
  3575. "description": "GenerateTextResponse",
  3576. "content": {
  3577. "application/json": {
  3578. "schema": {
  3579. "$ref": "#/components/schemas/GenerateTextResponse"
  3580. }
  3581. }
  3582. }
  3583. },
  3584. "400": {
  3585. "description": "InvalidRequestError",
  3586. "content": {
  3587. "application/json": {
  3588. "schema": {
  3589. "anyOf": [
  3590. {
  3591. "$ref": "#/components/schemas/InvalidRequestError1"
  3592. },
  3593. {
  3594. "$ref": "#/components/schemas/InvalidRequestError"
  3595. }
  3596. ]
  3597. }
  3598. }
  3599. }
  3600. },
  3601. "401": {
  3602. "description": "UnauthorizedError",
  3603. "content": {
  3604. "application/json": {
  3605. "schema": {
  3606. "$ref": "#/components/schemas/UnauthorizedError"
  3607. }
  3608. }
  3609. }
  3610. },
  3611. "503": {
  3612. "description": "ServiceUnavailableError",
  3613. "content": {
  3614. "application/json": {
  3615. "schema": {
  3616. "$ref": "#/components/schemas/ServiceUnavailableError"
  3617. }
  3618. }
  3619. }
  3620. }
  3621. },
  3622. "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.",
  3623. "summary": "Generate text",
  3624. "requestBody": {
  3625. "content": {
  3626. "application/json": {
  3627. "schema": {
  3628. "type": "object",
  3629. "properties": {
  3630. "prompt": {
  3631. "type": "string"
  3632. },
  3633. "model": {
  3634. "anyOf": [
  3635. {
  3636. "$ref": "#/components/schemas/Model.Ref"
  3637. },
  3638. {
  3639. "type": "null"
  3640. }
  3641. ]
  3642. }
  3643. },
  3644. "required": [
  3645. "prompt"
  3646. ],
  3647. "additionalProperties": false
  3648. }
  3649. }
  3650. },
  3651. "required": true
  3652. }
  3653. }
  3654. },
  3655. "/api/provider": {
  3656. "get": {
  3657. "tags": [
  3658. "provider"
  3659. ],
  3660. "operationId": "v2.provider.list",
  3661. "parameters": [
  3662. {
  3663. "name": "location",
  3664. "in": "query",
  3665. "schema": {
  3666. "anyOf": [
  3667. {
  3668. "type": "object",
  3669. "properties": {
  3670. "directory": {
  3671. "anyOf": [
  3672. {
  3673. "type": "string"
  3674. },
  3675. {
  3676. "type": "null"
  3677. }
  3678. ]
  3679. },
  3680. "workspace": {
  3681. "anyOf": [
  3682. {
  3683. "type": "string"
  3684. },
  3685. {
  3686. "type": "null"
  3687. }
  3688. ]
  3689. }
  3690. },
  3691. "additionalProperties": false
  3692. },
  3693. {
  3694. "type": "null"
  3695. }
  3696. ]
  3697. },
  3698. "required": false,
  3699. "style": "deepObject",
  3700. "explode": true
  3701. }
  3702. ],
  3703. "security": [],
  3704. "responses": {
  3705. "200": {
  3706. "description": "Success",
  3707. "content": {
  3708. "application/json": {
  3709. "schema": {
  3710. "type": "object",
  3711. "properties": {
  3712. "location": {
  3713. "$ref": "#/components/schemas/Location.Info"
  3714. },
  3715. "data": {
  3716. "type": "array",
  3717. "items": {
  3718. "$ref": "#/components/schemas/ProviderV2.Info"
  3719. }
  3720. }
  3721. },
  3722. "required": [
  3723. "location",
  3724. "data"
  3725. ],
  3726. "additionalProperties": false
  3727. }
  3728. }
  3729. }
  3730. },
  3731. "400": {
  3732. "description": "InvalidRequestError",
  3733. "content": {
  3734. "application/json": {
  3735. "schema": {
  3736. "$ref": "#/components/schemas/InvalidRequestError"
  3737. }
  3738. }
  3739. }
  3740. },
  3741. "401": {
  3742. "description": "UnauthorizedError",
  3743. "content": {
  3744. "application/json": {
  3745. "schema": {
  3746. "$ref": "#/components/schemas/UnauthorizedError"
  3747. }
  3748. }
  3749. }
  3750. },
  3751. "503": {
  3752. "description": "ServiceUnavailableError",
  3753. "content": {
  3754. "application/json": {
  3755. "schema": {
  3756. "$ref": "#/components/schemas/ServiceUnavailableError"
  3757. }
  3758. }
  3759. }
  3760. }
  3761. },
  3762. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  3763. "summary": "List providers"
  3764. }
  3765. },
  3766. "/api/provider/{providerID}": {
  3767. "get": {
  3768. "tags": [
  3769. "provider"
  3770. ],
  3771. "operationId": "v2.provider.get",
  3772. "parameters": [
  3773. {
  3774. "name": "providerID",
  3775. "in": "path",
  3776. "schema": {
  3777. "type": "string"
  3778. },
  3779. "required": true
  3780. },
  3781. {
  3782. "name": "location",
  3783. "in": "query",
  3784. "schema": {
  3785. "anyOf": [
  3786. {
  3787. "type": "object",
  3788. "properties": {
  3789. "directory": {
  3790. "anyOf": [
  3791. {
  3792. "type": "string"
  3793. },
  3794. {
  3795. "type": "null"
  3796. }
  3797. ]
  3798. },
  3799. "workspace": {
  3800. "anyOf": [
  3801. {
  3802. "type": "string"
  3803. },
  3804. {
  3805. "type": "null"
  3806. }
  3807. ]
  3808. }
  3809. },
  3810. "additionalProperties": false
  3811. },
  3812. {
  3813. "type": "null"
  3814. }
  3815. ]
  3816. },
  3817. "required": false,
  3818. "style": "deepObject",
  3819. "explode": true
  3820. }
  3821. ],
  3822. "security": [],
  3823. "responses": {
  3824. "200": {
  3825. "description": "Success",
  3826. "content": {
  3827. "application/json": {
  3828. "schema": {
  3829. "type": "object",
  3830. "properties": {
  3831. "location": {
  3832. "$ref": "#/components/schemas/Location.Info"
  3833. },
  3834. "data": {
  3835. "$ref": "#/components/schemas/ProviderV2.Info"
  3836. }
  3837. },
  3838. "required": [
  3839. "location",
  3840. "data"
  3841. ],
  3842. "additionalProperties": false
  3843. }
  3844. }
  3845. }
  3846. },
  3847. "400": {
  3848. "description": "InvalidRequestError",
  3849. "content": {
  3850. "application/json": {
  3851. "schema": {
  3852. "$ref": "#/components/schemas/InvalidRequestError"
  3853. }
  3854. }
  3855. }
  3856. },
  3857. "401": {
  3858. "description": "UnauthorizedError",
  3859. "content": {
  3860. "application/json": {
  3861. "schema": {
  3862. "$ref": "#/components/schemas/UnauthorizedError"
  3863. }
  3864. }
  3865. }
  3866. },
  3867. "404": {
  3868. "description": "ProviderNotFoundError",
  3869. "content": {
  3870. "application/json": {
  3871. "schema": {
  3872. "$ref": "#/components/schemas/ProviderNotFoundError"
  3873. }
  3874. }
  3875. }
  3876. },
  3877. "503": {
  3878. "description": "ServiceUnavailableError",
  3879. "content": {
  3880. "application/json": {
  3881. "schema": {
  3882. "$ref": "#/components/schemas/ServiceUnavailableError"
  3883. }
  3884. }
  3885. }
  3886. }
  3887. },
  3888. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  3889. "summary": "Get provider"
  3890. }
  3891. },
  3892. "/api/integration": {
  3893. "get": {
  3894. "tags": [
  3895. "integration"
  3896. ],
  3897. "operationId": "v2.integration.list",
  3898. "parameters": [
  3899. {
  3900. "name": "location",
  3901. "in": "query",
  3902. "schema": {
  3903. "anyOf": [
  3904. {
  3905. "type": "object",
  3906. "properties": {
  3907. "directory": {
  3908. "anyOf": [
  3909. {
  3910. "type": "string"
  3911. },
  3912. {
  3913. "type": "null"
  3914. }
  3915. ]
  3916. },
  3917. "workspace": {
  3918. "anyOf": [
  3919. {
  3920. "type": "string"
  3921. },
  3922. {
  3923. "type": "null"
  3924. }
  3925. ]
  3926. }
  3927. },
  3928. "additionalProperties": false
  3929. },
  3930. {
  3931. "type": "null"
  3932. }
  3933. ]
  3934. },
  3935. "required": false,
  3936. "style": "deepObject",
  3937. "explode": true
  3938. }
  3939. ],
  3940. "security": [],
  3941. "responses": {
  3942. "200": {
  3943. "description": "Success",
  3944. "content": {
  3945. "application/json": {
  3946. "schema": {
  3947. "type": "object",
  3948. "properties": {
  3949. "location": {
  3950. "$ref": "#/components/schemas/Location.Info"
  3951. },
  3952. "data": {
  3953. "type": "array",
  3954. "items": {
  3955. "$ref": "#/components/schemas/Integration.Info"
  3956. }
  3957. }
  3958. },
  3959. "required": [
  3960. "location",
  3961. "data"
  3962. ],
  3963. "additionalProperties": false
  3964. }
  3965. }
  3966. }
  3967. },
  3968. "400": {
  3969. "description": "InvalidRequestError",
  3970. "content": {
  3971. "application/json": {
  3972. "schema": {
  3973. "$ref": "#/components/schemas/InvalidRequestError"
  3974. }
  3975. }
  3976. }
  3977. },
  3978. "401": {
  3979. "description": "UnauthorizedError",
  3980. "content": {
  3981. "application/json": {
  3982. "schema": {
  3983. "$ref": "#/components/schemas/UnauthorizedError"
  3984. }
  3985. }
  3986. }
  3987. }
  3988. },
  3989. "description": "Retrieve available integrations and their authentication methods.",
  3990. "summary": "List integrations"
  3991. }
  3992. },
  3993. "/api/integration/{integrationID}": {
  3994. "get": {
  3995. "tags": [
  3996. "integration"
  3997. ],
  3998. "operationId": "v2.integration.get",
  3999. "parameters": [
  4000. {
  4001. "name": "integrationID",
  4002. "in": "path",
  4003. "schema": {
  4004. "type": "string"
  4005. },
  4006. "required": true
  4007. },
  4008. {
  4009. "name": "location",
  4010. "in": "query",
  4011. "schema": {
  4012. "anyOf": [
  4013. {
  4014. "type": "object",
  4015. "properties": {
  4016. "directory": {
  4017. "anyOf": [
  4018. {
  4019. "type": "string"
  4020. },
  4021. {
  4022. "type": "null"
  4023. }
  4024. ]
  4025. },
  4026. "workspace": {
  4027. "anyOf": [
  4028. {
  4029. "type": "string"
  4030. },
  4031. {
  4032. "type": "null"
  4033. }
  4034. ]
  4035. }
  4036. },
  4037. "additionalProperties": false
  4038. },
  4039. {
  4040. "type": "null"
  4041. }
  4042. ]
  4043. },
  4044. "required": false,
  4045. "style": "deepObject",
  4046. "explode": true
  4047. }
  4048. ],
  4049. "security": [],
  4050. "responses": {
  4051. "200": {
  4052. "description": "Success",
  4053. "content": {
  4054. "application/json": {
  4055. "schema": {
  4056. "type": "object",
  4057. "properties": {
  4058. "location": {
  4059. "$ref": "#/components/schemas/Location.Info"
  4060. },
  4061. "data": {
  4062. "anyOf": [
  4063. {
  4064. "$ref": "#/components/schemas/Integration.Info"
  4065. },
  4066. {
  4067. "type": "null"
  4068. }
  4069. ]
  4070. }
  4071. },
  4072. "required": [
  4073. "location",
  4074. "data"
  4075. ],
  4076. "additionalProperties": false
  4077. }
  4078. }
  4079. }
  4080. },
  4081. "400": {
  4082. "description": "InvalidRequestError",
  4083. "content": {
  4084. "application/json": {
  4085. "schema": {
  4086. "$ref": "#/components/schemas/InvalidRequestError"
  4087. }
  4088. }
  4089. }
  4090. },
  4091. "401": {
  4092. "description": "UnauthorizedError",
  4093. "content": {
  4094. "application/json": {
  4095. "schema": {
  4096. "$ref": "#/components/schemas/UnauthorizedError"
  4097. }
  4098. }
  4099. }
  4100. }
  4101. },
  4102. "description": "Retrieve one integration and its authentication methods.",
  4103. "summary": "Get integration"
  4104. }
  4105. },
  4106. "/api/integration/{integrationID}/connect/key": {
  4107. "post": {
  4108. "tags": [
  4109. "integration"
  4110. ],
  4111. "operationId": "v2.integration.connect.key",
  4112. "parameters": [
  4113. {
  4114. "name": "integrationID",
  4115. "in": "path",
  4116. "schema": {
  4117. "type": "string"
  4118. },
  4119. "required": true
  4120. },
  4121. {
  4122. "name": "location",
  4123. "in": "query",
  4124. "schema": {
  4125. "anyOf": [
  4126. {
  4127. "type": "object",
  4128. "properties": {
  4129. "directory": {
  4130. "anyOf": [
  4131. {
  4132. "type": "string"
  4133. },
  4134. {
  4135. "type": "null"
  4136. }
  4137. ]
  4138. },
  4139. "workspace": {
  4140. "anyOf": [
  4141. {
  4142. "type": "string"
  4143. },
  4144. {
  4145. "type": "null"
  4146. }
  4147. ]
  4148. }
  4149. },
  4150. "additionalProperties": false
  4151. },
  4152. {
  4153. "type": "null"
  4154. }
  4155. ]
  4156. },
  4157. "required": false,
  4158. "style": "deepObject",
  4159. "explode": true
  4160. }
  4161. ],
  4162. "security": [],
  4163. "responses": {
  4164. "204": {
  4165. "description": "<No Content>"
  4166. },
  4167. "400": {
  4168. "description": "InvalidRequestError",
  4169. "content": {
  4170. "application/json": {
  4171. "schema": {
  4172. "anyOf": [
  4173. {
  4174. "$ref": "#/components/schemas/InvalidRequestError1"
  4175. },
  4176. {
  4177. "$ref": "#/components/schemas/InvalidRequestError"
  4178. }
  4179. ]
  4180. }
  4181. }
  4182. }
  4183. },
  4184. "401": {
  4185. "description": "UnauthorizedError",
  4186. "content": {
  4187. "application/json": {
  4188. "schema": {
  4189. "$ref": "#/components/schemas/UnauthorizedError"
  4190. }
  4191. }
  4192. }
  4193. }
  4194. },
  4195. "description": "Run a key authentication method and store the resulting credential.",
  4196. "summary": "Connect with key",
  4197. "requestBody": {
  4198. "content": {
  4199. "application/json": {
  4200. "schema": {
  4201. "type": "object",
  4202. "properties": {
  4203. "key": {
  4204. "type": "string"
  4205. },
  4206. "label": {
  4207. "anyOf": [
  4208. {
  4209. "type": "string"
  4210. },
  4211. {
  4212. "type": "null"
  4213. }
  4214. ]
  4215. }
  4216. },
  4217. "required": [
  4218. "key"
  4219. ],
  4220. "additionalProperties": false
  4221. }
  4222. }
  4223. },
  4224. "required": true
  4225. }
  4226. }
  4227. },
  4228. "/api/integration/{integrationID}/connect/oauth": {
  4229. "post": {
  4230. "tags": [
  4231. "integration"
  4232. ],
  4233. "operationId": "v2.integration.connect.oauth",
  4234. "parameters": [
  4235. {
  4236. "name": "integrationID",
  4237. "in": "path",
  4238. "schema": {
  4239. "type": "string"
  4240. },
  4241. "required": true
  4242. },
  4243. {
  4244. "name": "location",
  4245. "in": "query",
  4246. "schema": {
  4247. "anyOf": [
  4248. {
  4249. "type": "object",
  4250. "properties": {
  4251. "directory": {
  4252. "anyOf": [
  4253. {
  4254. "type": "string"
  4255. },
  4256. {
  4257. "type": "null"
  4258. }
  4259. ]
  4260. },
  4261. "workspace": {
  4262. "anyOf": [
  4263. {
  4264. "type": "string"
  4265. },
  4266. {
  4267. "type": "null"
  4268. }
  4269. ]
  4270. }
  4271. },
  4272. "additionalProperties": false
  4273. },
  4274. {
  4275. "type": "null"
  4276. }
  4277. ]
  4278. },
  4279. "required": false,
  4280. "style": "deepObject",
  4281. "explode": true
  4282. }
  4283. ],
  4284. "security": [],
  4285. "responses": {
  4286. "200": {
  4287. "description": "Success",
  4288. "content": {
  4289. "application/json": {
  4290. "schema": {
  4291. "type": "object",
  4292. "properties": {
  4293. "location": {
  4294. "$ref": "#/components/schemas/Location.Info"
  4295. },
  4296. "data": {
  4297. "$ref": "#/components/schemas/Integration.Attempt"
  4298. }
  4299. },
  4300. "required": [
  4301. "location",
  4302. "data"
  4303. ],
  4304. "additionalProperties": false
  4305. }
  4306. }
  4307. }
  4308. },
  4309. "400": {
  4310. "description": "InvalidRequestError",
  4311. "content": {
  4312. "application/json": {
  4313. "schema": {
  4314. "anyOf": [
  4315. {
  4316. "$ref": "#/components/schemas/InvalidRequestError1"
  4317. },
  4318. {
  4319. "$ref": "#/components/schemas/InvalidRequestError"
  4320. }
  4321. ]
  4322. }
  4323. }
  4324. }
  4325. },
  4326. "401": {
  4327. "description": "UnauthorizedError",
  4328. "content": {
  4329. "application/json": {
  4330. "schema": {
  4331. "$ref": "#/components/schemas/UnauthorizedError"
  4332. }
  4333. }
  4334. }
  4335. }
  4336. },
  4337. "description": "Start an OAuth attempt and return the authorization details.",
  4338. "summary": "Begin OAuth connection",
  4339. "requestBody": {
  4340. "content": {
  4341. "application/json": {
  4342. "schema": {
  4343. "type": "object",
  4344. "properties": {
  4345. "methodID": {
  4346. "type": "string"
  4347. },
  4348. "inputs": {
  4349. "type": "object",
  4350. "additionalProperties": {
  4351. "type": "string"
  4352. }
  4353. },
  4354. "label": {
  4355. "anyOf": [
  4356. {
  4357. "type": "string"
  4358. },
  4359. {
  4360. "type": "null"
  4361. }
  4362. ]
  4363. }
  4364. },
  4365. "required": [
  4366. "methodID",
  4367. "inputs"
  4368. ],
  4369. "additionalProperties": false
  4370. }
  4371. }
  4372. },
  4373. "required": true
  4374. }
  4375. }
  4376. },
  4377. "/api/integration/attempt/{attemptID}": {
  4378. "get": {
  4379. "tags": [
  4380. "integration"
  4381. ],
  4382. "operationId": "v2.integration.attempt.status",
  4383. "parameters": [
  4384. {
  4385. "name": "attemptID",
  4386. "in": "path",
  4387. "schema": {
  4388. "type": "string"
  4389. },
  4390. "required": true
  4391. },
  4392. {
  4393. "name": "location",
  4394. "in": "query",
  4395. "schema": {
  4396. "anyOf": [
  4397. {
  4398. "type": "object",
  4399. "properties": {
  4400. "directory": {
  4401. "anyOf": [
  4402. {
  4403. "type": "string"
  4404. },
  4405. {
  4406. "type": "null"
  4407. }
  4408. ]
  4409. },
  4410. "workspace": {
  4411. "anyOf": [
  4412. {
  4413. "type": "string"
  4414. },
  4415. {
  4416. "type": "null"
  4417. }
  4418. ]
  4419. }
  4420. },
  4421. "additionalProperties": false
  4422. },
  4423. {
  4424. "type": "null"
  4425. }
  4426. ]
  4427. },
  4428. "required": false,
  4429. "style": "deepObject",
  4430. "explode": true
  4431. }
  4432. ],
  4433. "security": [],
  4434. "responses": {
  4435. "200": {
  4436. "description": "Success",
  4437. "content": {
  4438. "application/json": {
  4439. "schema": {
  4440. "type": "object",
  4441. "properties": {
  4442. "location": {
  4443. "$ref": "#/components/schemas/Location.Info"
  4444. },
  4445. "data": {
  4446. "$ref": "#/components/schemas/Integration.AttemptStatus"
  4447. }
  4448. },
  4449. "required": [
  4450. "location",
  4451. "data"
  4452. ],
  4453. "additionalProperties": false
  4454. }
  4455. }
  4456. }
  4457. },
  4458. "400": {
  4459. "description": "InvalidRequestError",
  4460. "content": {
  4461. "application/json": {
  4462. "schema": {
  4463. "$ref": "#/components/schemas/InvalidRequestError"
  4464. }
  4465. }
  4466. }
  4467. },
  4468. "401": {
  4469. "description": "UnauthorizedError",
  4470. "content": {
  4471. "application/json": {
  4472. "schema": {
  4473. "$ref": "#/components/schemas/UnauthorizedError"
  4474. }
  4475. }
  4476. }
  4477. }
  4478. },
  4479. "description": "Poll the current status of an OAuth attempt.",
  4480. "summary": "Get OAuth attempt status"
  4481. },
  4482. "delete": {
  4483. "tags": [
  4484. "integration"
  4485. ],
  4486. "operationId": "v2.integration.attempt.cancel",
  4487. "parameters": [
  4488. {
  4489. "name": "attemptID",
  4490. "in": "path",
  4491. "schema": {
  4492. "type": "string"
  4493. },
  4494. "required": true
  4495. },
  4496. {
  4497. "name": "location",
  4498. "in": "query",
  4499. "schema": {
  4500. "anyOf": [
  4501. {
  4502. "type": "object",
  4503. "properties": {
  4504. "directory": {
  4505. "anyOf": [
  4506. {
  4507. "type": "string"
  4508. },
  4509. {
  4510. "type": "null"
  4511. }
  4512. ]
  4513. },
  4514. "workspace": {
  4515. "anyOf": [
  4516. {
  4517. "type": "string"
  4518. },
  4519. {
  4520. "type": "null"
  4521. }
  4522. ]
  4523. }
  4524. },
  4525. "additionalProperties": false
  4526. },
  4527. {
  4528. "type": "null"
  4529. }
  4530. ]
  4531. },
  4532. "required": false,
  4533. "style": "deepObject",
  4534. "explode": true
  4535. }
  4536. ],
  4537. "security": [],
  4538. "responses": {
  4539. "204": {
  4540. "description": "<No Content>"
  4541. },
  4542. "400": {
  4543. "description": "InvalidRequestError",
  4544. "content": {
  4545. "application/json": {
  4546. "schema": {
  4547. "$ref": "#/components/schemas/InvalidRequestError"
  4548. }
  4549. }
  4550. }
  4551. },
  4552. "401": {
  4553. "description": "UnauthorizedError",
  4554. "content": {
  4555. "application/json": {
  4556. "schema": {
  4557. "$ref": "#/components/schemas/UnauthorizedError"
  4558. }
  4559. }
  4560. }
  4561. }
  4562. },
  4563. "description": "Cancel an OAuth attempt and release its resources.",
  4564. "summary": "Cancel OAuth connection"
  4565. }
  4566. },
  4567. "/api/integration/attempt/{attemptID}/complete": {
  4568. "post": {
  4569. "tags": [
  4570. "integration"
  4571. ],
  4572. "operationId": "v2.integration.attempt.complete",
  4573. "parameters": [
  4574. {
  4575. "name": "attemptID",
  4576. "in": "path",
  4577. "schema": {
  4578. "type": "string"
  4579. },
  4580. "required": true
  4581. },
  4582. {
  4583. "name": "location",
  4584. "in": "query",
  4585. "schema": {
  4586. "anyOf": [
  4587. {
  4588. "type": "object",
  4589. "properties": {
  4590. "directory": {
  4591. "anyOf": [
  4592. {
  4593. "type": "string"
  4594. },
  4595. {
  4596. "type": "null"
  4597. }
  4598. ]
  4599. },
  4600. "workspace": {
  4601. "anyOf": [
  4602. {
  4603. "type": "string"
  4604. },
  4605. {
  4606. "type": "null"
  4607. }
  4608. ]
  4609. }
  4610. },
  4611. "additionalProperties": false
  4612. },
  4613. {
  4614. "type": "null"
  4615. }
  4616. ]
  4617. },
  4618. "required": false,
  4619. "style": "deepObject",
  4620. "explode": true
  4621. }
  4622. ],
  4623. "security": [],
  4624. "responses": {
  4625. "204": {
  4626. "description": "<No Content>"
  4627. },
  4628. "400": {
  4629. "description": "InvalidRequestError",
  4630. "content": {
  4631. "application/json": {
  4632. "schema": {
  4633. "anyOf": [
  4634. {
  4635. "$ref": "#/components/schemas/InvalidRequestError1"
  4636. },
  4637. {
  4638. "$ref": "#/components/schemas/InvalidRequestError"
  4639. }
  4640. ]
  4641. }
  4642. }
  4643. }
  4644. },
  4645. "401": {
  4646. "description": "UnauthorizedError",
  4647. "content": {
  4648. "application/json": {
  4649. "schema": {
  4650. "$ref": "#/components/schemas/UnauthorizedError"
  4651. }
  4652. }
  4653. }
  4654. }
  4655. },
  4656. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  4657. "summary": "Complete OAuth connection",
  4658. "requestBody": {
  4659. "content": {
  4660. "application/json": {
  4661. "schema": {
  4662. "type": "object",
  4663. "properties": {
  4664. "code": {
  4665. "anyOf": [
  4666. {
  4667. "type": "string"
  4668. },
  4669. {
  4670. "type": "null"
  4671. }
  4672. ]
  4673. }
  4674. },
  4675. "additionalProperties": false
  4676. }
  4677. }
  4678. },
  4679. "required": true
  4680. }
  4681. }
  4682. },
  4683. "/api/mcp": {
  4684. "get": {
  4685. "tags": [
  4686. "mcp"
  4687. ],
  4688. "operationId": "v2.mcp.list",
  4689. "parameters": [
  4690. {
  4691. "name": "location",
  4692. "in": "query",
  4693. "schema": {
  4694. "anyOf": [
  4695. {
  4696. "type": "object",
  4697. "properties": {
  4698. "directory": {
  4699. "anyOf": [
  4700. {
  4701. "type": "string"
  4702. },
  4703. {
  4704. "type": "null"
  4705. }
  4706. ]
  4707. },
  4708. "workspace": {
  4709. "anyOf": [
  4710. {
  4711. "type": "string"
  4712. },
  4713. {
  4714. "type": "null"
  4715. }
  4716. ]
  4717. }
  4718. },
  4719. "additionalProperties": false
  4720. },
  4721. {
  4722. "type": "null"
  4723. }
  4724. ]
  4725. },
  4726. "required": false,
  4727. "style": "deepObject",
  4728. "explode": true
  4729. }
  4730. ],
  4731. "security": [],
  4732. "responses": {
  4733. "200": {
  4734. "description": "Success",
  4735. "content": {
  4736. "application/json": {
  4737. "schema": {
  4738. "type": "object",
  4739. "properties": {
  4740. "location": {
  4741. "$ref": "#/components/schemas/Location.Info"
  4742. },
  4743. "data": {
  4744. "type": "array",
  4745. "items": {
  4746. "$ref": "#/components/schemas/Mcp.Server"
  4747. }
  4748. }
  4749. },
  4750. "required": [
  4751. "location",
  4752. "data"
  4753. ],
  4754. "additionalProperties": false
  4755. }
  4756. }
  4757. }
  4758. },
  4759. "400": {
  4760. "description": "InvalidRequestError",
  4761. "content": {
  4762. "application/json": {
  4763. "schema": {
  4764. "$ref": "#/components/schemas/InvalidRequestError"
  4765. }
  4766. }
  4767. }
  4768. },
  4769. "401": {
  4770. "description": "UnauthorizedError",
  4771. "content": {
  4772. "application/json": {
  4773. "schema": {
  4774. "$ref": "#/components/schemas/UnauthorizedError"
  4775. }
  4776. }
  4777. }
  4778. }
  4779. },
  4780. "description": "Retrieve configured MCP servers and their connection status.",
  4781. "summary": "List MCP servers"
  4782. }
  4783. },
  4784. "/api/credential/{credentialID}": {
  4785. "patch": {
  4786. "tags": [
  4787. "credential"
  4788. ],
  4789. "operationId": "v2.credential.update",
  4790. "parameters": [
  4791. {
  4792. "name": "credentialID",
  4793. "in": "path",
  4794. "schema": {
  4795. "type": "string"
  4796. },
  4797. "required": true
  4798. },
  4799. {
  4800. "name": "location",
  4801. "in": "query",
  4802. "schema": {
  4803. "anyOf": [
  4804. {
  4805. "type": "object",
  4806. "properties": {
  4807. "directory": {
  4808. "anyOf": [
  4809. {
  4810. "type": "string"
  4811. },
  4812. {
  4813. "type": "null"
  4814. }
  4815. ]
  4816. },
  4817. "workspace": {
  4818. "anyOf": [
  4819. {
  4820. "type": "string"
  4821. },
  4822. {
  4823. "type": "null"
  4824. }
  4825. ]
  4826. }
  4827. },
  4828. "additionalProperties": false
  4829. },
  4830. {
  4831. "type": "null"
  4832. }
  4833. ]
  4834. },
  4835. "required": false,
  4836. "style": "deepObject",
  4837. "explode": true
  4838. }
  4839. ],
  4840. "security": [],
  4841. "responses": {
  4842. "204": {
  4843. "description": "<No Content>"
  4844. },
  4845. "400": {
  4846. "description": "InvalidRequestError",
  4847. "content": {
  4848. "application/json": {
  4849. "schema": {
  4850. "$ref": "#/components/schemas/InvalidRequestError"
  4851. }
  4852. }
  4853. }
  4854. },
  4855. "401": {
  4856. "description": "UnauthorizedError",
  4857. "content": {
  4858. "application/json": {
  4859. "schema": {
  4860. "$ref": "#/components/schemas/UnauthorizedError"
  4861. }
  4862. }
  4863. }
  4864. }
  4865. },
  4866. "description": "Update a stored credential label.",
  4867. "summary": "Update credential",
  4868. "requestBody": {
  4869. "content": {
  4870. "application/json": {
  4871. "schema": {
  4872. "type": "object",
  4873. "properties": {
  4874. "label": {
  4875. "type": "string"
  4876. }
  4877. },
  4878. "required": [
  4879. "label"
  4880. ],
  4881. "additionalProperties": false
  4882. }
  4883. }
  4884. },
  4885. "required": true
  4886. }
  4887. },
  4888. "delete": {
  4889. "tags": [
  4890. "credential"
  4891. ],
  4892. "operationId": "v2.credential.remove",
  4893. "parameters": [
  4894. {
  4895. "name": "credentialID",
  4896. "in": "path",
  4897. "schema": {
  4898. "type": "string"
  4899. },
  4900. "required": true
  4901. },
  4902. {
  4903. "name": "location",
  4904. "in": "query",
  4905. "schema": {
  4906. "anyOf": [
  4907. {
  4908. "type": "object",
  4909. "properties": {
  4910. "directory": {
  4911. "anyOf": [
  4912. {
  4913. "type": "string"
  4914. },
  4915. {
  4916. "type": "null"
  4917. }
  4918. ]
  4919. },
  4920. "workspace": {
  4921. "anyOf": [
  4922. {
  4923. "type": "string"
  4924. },
  4925. {
  4926. "type": "null"
  4927. }
  4928. ]
  4929. }
  4930. },
  4931. "additionalProperties": false
  4932. },
  4933. {
  4934. "type": "null"
  4935. }
  4936. ]
  4937. },
  4938. "required": false,
  4939. "style": "deepObject",
  4940. "explode": true
  4941. }
  4942. ],
  4943. "security": [],
  4944. "responses": {
  4945. "204": {
  4946. "description": "<No Content>"
  4947. },
  4948. "400": {
  4949. "description": "InvalidRequestError",
  4950. "content": {
  4951. "application/json": {
  4952. "schema": {
  4953. "$ref": "#/components/schemas/InvalidRequestError"
  4954. }
  4955. }
  4956. }
  4957. },
  4958. "401": {
  4959. "description": "UnauthorizedError",
  4960. "content": {
  4961. "application/json": {
  4962. "schema": {
  4963. "$ref": "#/components/schemas/UnauthorizedError"
  4964. }
  4965. }
  4966. }
  4967. }
  4968. },
  4969. "description": "Remove a stored integration credential.",
  4970. "summary": "Remove credential"
  4971. }
  4972. },
  4973. "/api/project": {
  4974. "get": {
  4975. "tags": [
  4976. "project"
  4977. ],
  4978. "operationId": "v2.project.list",
  4979. "parameters": [],
  4980. "security": [],
  4981. "responses": {
  4982. "200": {
  4983. "description": "Success",
  4984. "content": {
  4985. "application/json": {
  4986. "schema": {
  4987. "type": "array",
  4988. "items": {
  4989. "$ref": "#/components/schemas/Project"
  4990. }
  4991. }
  4992. }
  4993. }
  4994. },
  4995. "400": {
  4996. "description": "InvalidRequestError",
  4997. "content": {
  4998. "application/json": {
  4999. "schema": {
  5000. "$ref": "#/components/schemas/InvalidRequestError"
  5001. }
  5002. }
  5003. }
  5004. },
  5005. "401": {
  5006. "description": "UnauthorizedError",
  5007. "content": {
  5008. "application/json": {
  5009. "schema": {
  5010. "$ref": "#/components/schemas/UnauthorizedError"
  5011. }
  5012. }
  5013. }
  5014. }
  5015. },
  5016. "description": "List known projects.",
  5017. "summary": "List projects"
  5018. }
  5019. },
  5020. "/api/project/current": {
  5021. "get": {
  5022. "tags": [
  5023. "project"
  5024. ],
  5025. "operationId": "v2.project.current",
  5026. "parameters": [
  5027. {
  5028. "name": "location",
  5029. "in": "query",
  5030. "schema": {
  5031. "anyOf": [
  5032. {
  5033. "type": "object",
  5034. "properties": {
  5035. "directory": {
  5036. "anyOf": [
  5037. {
  5038. "type": "string"
  5039. },
  5040. {
  5041. "type": "null"
  5042. }
  5043. ]
  5044. },
  5045. "workspace": {
  5046. "anyOf": [
  5047. {
  5048. "type": "string"
  5049. },
  5050. {
  5051. "type": "null"
  5052. }
  5053. ]
  5054. }
  5055. },
  5056. "additionalProperties": false
  5057. },
  5058. {
  5059. "type": "null"
  5060. }
  5061. ]
  5062. },
  5063. "required": false,
  5064. "style": "deepObject",
  5065. "explode": true
  5066. }
  5067. ],
  5068. "security": [],
  5069. "responses": {
  5070. "200": {
  5071. "description": "Project.Current",
  5072. "content": {
  5073. "application/json": {
  5074. "schema": {
  5075. "$ref": "#/components/schemas/Project.Current"
  5076. }
  5077. }
  5078. }
  5079. },
  5080. "400": {
  5081. "description": "InvalidRequestError",
  5082. "content": {
  5083. "application/json": {
  5084. "schema": {
  5085. "$ref": "#/components/schemas/InvalidRequestError"
  5086. }
  5087. }
  5088. }
  5089. },
  5090. "401": {
  5091. "description": "UnauthorizedError",
  5092. "content": {
  5093. "application/json": {
  5094. "schema": {
  5095. "$ref": "#/components/schemas/UnauthorizedError"
  5096. }
  5097. }
  5098. }
  5099. }
  5100. },
  5101. "description": "Resolve the project for the requested location.",
  5102. "summary": "Get current project"
  5103. }
  5104. },
  5105. "/api/project/{projectID}/directories": {
  5106. "get": {
  5107. "tags": [
  5108. "project"
  5109. ],
  5110. "operationId": "v2.project.directories",
  5111. "parameters": [
  5112. {
  5113. "name": "projectID",
  5114. "in": "path",
  5115. "schema": {
  5116. "type": "string"
  5117. },
  5118. "required": true
  5119. },
  5120. {
  5121. "name": "location",
  5122. "in": "query",
  5123. "schema": {
  5124. "anyOf": [
  5125. {
  5126. "type": "object",
  5127. "properties": {
  5128. "directory": {
  5129. "anyOf": [
  5130. {
  5131. "type": "string"
  5132. },
  5133. {
  5134. "type": "null"
  5135. }
  5136. ]
  5137. },
  5138. "workspace": {
  5139. "anyOf": [
  5140. {
  5141. "type": "string"
  5142. },
  5143. {
  5144. "type": "null"
  5145. }
  5146. ]
  5147. }
  5148. },
  5149. "additionalProperties": false
  5150. },
  5151. {
  5152. "type": "null"
  5153. }
  5154. ]
  5155. },
  5156. "required": false,
  5157. "style": "deepObject",
  5158. "explode": true
  5159. }
  5160. ],
  5161. "security": [],
  5162. "responses": {
  5163. "200": {
  5164. "description": "Project.Directories",
  5165. "content": {
  5166. "application/json": {
  5167. "schema": {
  5168. "$ref": "#/components/schemas/Project.Directories"
  5169. }
  5170. }
  5171. }
  5172. },
  5173. "400": {
  5174. "description": "InvalidRequestError",
  5175. "content": {
  5176. "application/json": {
  5177. "schema": {
  5178. "$ref": "#/components/schemas/InvalidRequestError"
  5179. }
  5180. }
  5181. }
  5182. },
  5183. "401": {
  5184. "description": "UnauthorizedError",
  5185. "content": {
  5186. "application/json": {
  5187. "schema": {
  5188. "$ref": "#/components/schemas/UnauthorizedError"
  5189. }
  5190. }
  5191. }
  5192. }
  5193. },
  5194. "description": "List known local absolute directories for a project.",
  5195. "summary": "List project directories"
  5196. }
  5197. },
  5198. "/api/form/request": {
  5199. "get": {
  5200. "tags": [
  5201. "form"
  5202. ],
  5203. "operationId": "v2.form.request.list",
  5204. "parameters": [
  5205. {
  5206. "name": "location",
  5207. "in": "query",
  5208. "schema": {
  5209. "anyOf": [
  5210. {
  5211. "type": "object",
  5212. "properties": {
  5213. "directory": {
  5214. "anyOf": [
  5215. {
  5216. "type": "string"
  5217. },
  5218. {
  5219. "type": "null"
  5220. }
  5221. ]
  5222. },
  5223. "workspace": {
  5224. "anyOf": [
  5225. {
  5226. "type": "string"
  5227. },
  5228. {
  5229. "type": "null"
  5230. }
  5231. ]
  5232. }
  5233. },
  5234. "additionalProperties": false
  5235. },
  5236. {
  5237. "type": "null"
  5238. }
  5239. ]
  5240. },
  5241. "required": false,
  5242. "style": "deepObject",
  5243. "explode": true
  5244. }
  5245. ],
  5246. "security": [],
  5247. "responses": {
  5248. "200": {
  5249. "description": "Success",
  5250. "content": {
  5251. "application/json": {
  5252. "schema": {
  5253. "type": "object",
  5254. "properties": {
  5255. "location": {
  5256. "$ref": "#/components/schemas/Location.Info"
  5257. },
  5258. "data": {
  5259. "type": "array",
  5260. "items": {
  5261. "anyOf": [
  5262. {
  5263. "$ref": "#/components/schemas/Form.FormInfo"
  5264. },
  5265. {
  5266. "$ref": "#/components/schemas/Form.UrlInfo"
  5267. }
  5268. ]
  5269. }
  5270. }
  5271. },
  5272. "required": [
  5273. "location",
  5274. "data"
  5275. ],
  5276. "additionalProperties": false
  5277. }
  5278. }
  5279. }
  5280. },
  5281. "400": {
  5282. "description": "InvalidRequestError",
  5283. "content": {
  5284. "application/json": {
  5285. "schema": {
  5286. "$ref": "#/components/schemas/InvalidRequestError"
  5287. }
  5288. }
  5289. }
  5290. },
  5291. "401": {
  5292. "description": "UnauthorizedError",
  5293. "content": {
  5294. "application/json": {
  5295. "schema": {
  5296. "$ref": "#/components/schemas/UnauthorizedError"
  5297. }
  5298. }
  5299. }
  5300. }
  5301. },
  5302. "description": "Retrieve pending forms for a location.",
  5303. "summary": "List pending form requests"
  5304. }
  5305. },
  5306. "/api/session/{sessionID}/form": {
  5307. "get": {
  5308. "tags": [
  5309. "form"
  5310. ],
  5311. "operationId": "v2.session.form.list",
  5312. "parameters": [
  5313. {
  5314. "name": "sessionID",
  5315. "in": "path",
  5316. "schema": {
  5317. "type": "string"
  5318. },
  5319. "required": true
  5320. }
  5321. ],
  5322. "security": [],
  5323. "responses": {
  5324. "200": {
  5325. "description": "Success",
  5326. "content": {
  5327. "application/json": {
  5328. "schema": {
  5329. "type": "object",
  5330. "properties": {
  5331. "data": {
  5332. "type": "array",
  5333. "items": {
  5334. "anyOf": [
  5335. {
  5336. "$ref": "#/components/schemas/Form.FormInfo"
  5337. },
  5338. {
  5339. "$ref": "#/components/schemas/Form.UrlInfo"
  5340. }
  5341. ]
  5342. }
  5343. }
  5344. },
  5345. "required": [
  5346. "data"
  5347. ],
  5348. "additionalProperties": false
  5349. }
  5350. }
  5351. }
  5352. },
  5353. "400": {
  5354. "description": "InvalidRequestError",
  5355. "content": {
  5356. "application/json": {
  5357. "schema": {
  5358. "$ref": "#/components/schemas/InvalidRequestError"
  5359. }
  5360. }
  5361. }
  5362. },
  5363. "401": {
  5364. "description": "UnauthorizedError",
  5365. "content": {
  5366. "application/json": {
  5367. "schema": {
  5368. "$ref": "#/components/schemas/UnauthorizedError"
  5369. }
  5370. }
  5371. }
  5372. },
  5373. "404": {
  5374. "description": "SessionNotFoundError",
  5375. "content": {
  5376. "application/json": {
  5377. "schema": {
  5378. "anyOf": [
  5379. {
  5380. "$ref": "#/components/schemas/SessionNotFoundError"
  5381. },
  5382. {
  5383. "$ref": "#/components/schemas/SessionNotFoundError"
  5384. }
  5385. ]
  5386. }
  5387. }
  5388. }
  5389. }
  5390. },
  5391. "description": "Retrieve pending forms for a session.",
  5392. "summary": "List session forms"
  5393. },
  5394. "post": {
  5395. "tags": [
  5396. "form"
  5397. ],
  5398. "operationId": "v2.session.form.create",
  5399. "parameters": [
  5400. {
  5401. "name": "sessionID",
  5402. "in": "path",
  5403. "schema": {
  5404. "type": "string"
  5405. },
  5406. "required": true
  5407. }
  5408. ],
  5409. "security": [],
  5410. "responses": {
  5411. "200": {
  5412. "description": "Success",
  5413. "content": {
  5414. "application/json": {
  5415. "schema": {
  5416. "type": "object",
  5417. "properties": {
  5418. "data": {
  5419. "anyOf": [
  5420. {
  5421. "$ref": "#/components/schemas/Form.FormInfo"
  5422. },
  5423. {
  5424. "$ref": "#/components/schemas/Form.UrlInfo"
  5425. }
  5426. ]
  5427. }
  5428. },
  5429. "required": [
  5430. "data"
  5431. ],
  5432. "additionalProperties": false
  5433. }
  5434. }
  5435. }
  5436. },
  5437. "400": {
  5438. "description": "InvalidRequestError",
  5439. "content": {
  5440. "application/json": {
  5441. "schema": {
  5442. "anyOf": [
  5443. {
  5444. "$ref": "#/components/schemas/InvalidRequestError1"
  5445. },
  5446. {
  5447. "$ref": "#/components/schemas/InvalidRequestError"
  5448. }
  5449. ]
  5450. }
  5451. }
  5452. }
  5453. },
  5454. "401": {
  5455. "description": "UnauthorizedError",
  5456. "content": {
  5457. "application/json": {
  5458. "schema": {
  5459. "$ref": "#/components/schemas/UnauthorizedError"
  5460. }
  5461. }
  5462. }
  5463. },
  5464. "404": {
  5465. "description": "SessionNotFoundError",
  5466. "content": {
  5467. "application/json": {
  5468. "schema": {
  5469. "anyOf": [
  5470. {
  5471. "$ref": "#/components/schemas/SessionNotFoundError"
  5472. },
  5473. {
  5474. "$ref": "#/components/schemas/SessionNotFoundError"
  5475. }
  5476. ]
  5477. }
  5478. }
  5479. }
  5480. },
  5481. "409": {
  5482. "description": "ConflictError",
  5483. "content": {
  5484. "application/json": {
  5485. "schema": {
  5486. "$ref": "#/components/schemas/ConflictError"
  5487. }
  5488. }
  5489. }
  5490. }
  5491. },
  5492. "description": "Create a form for a session.",
  5493. "summary": "Create session form",
  5494. "requestBody": {
  5495. "content": {
  5496. "application/json": {
  5497. "schema": {
  5498. "$ref": "#/components/schemas/Form.CreatePayload"
  5499. }
  5500. }
  5501. },
  5502. "required": true
  5503. }
  5504. }
  5505. },
  5506. "/api/session/{sessionID}/form/{formID}": {
  5507. "get": {
  5508. "tags": [
  5509. "form"
  5510. ],
  5511. "operationId": "v2.session.form.get",
  5512. "parameters": [
  5513. {
  5514. "name": "sessionID",
  5515. "in": "path",
  5516. "schema": {
  5517. "type": "string"
  5518. },
  5519. "required": true
  5520. },
  5521. {
  5522. "name": "formID",
  5523. "in": "path",
  5524. "schema": {
  5525. "type": "string",
  5526. "allOf": [
  5527. {
  5528. "pattern": "^frm_"
  5529. }
  5530. ]
  5531. },
  5532. "required": true
  5533. }
  5534. ],
  5535. "security": [],
  5536. "responses": {
  5537. "200": {
  5538. "description": "Success",
  5539. "content": {
  5540. "application/json": {
  5541. "schema": {
  5542. "type": "object",
  5543. "properties": {
  5544. "data": {
  5545. "anyOf": [
  5546. {
  5547. "$ref": "#/components/schemas/Form.FormInfo"
  5548. },
  5549. {
  5550. "$ref": "#/components/schemas/Form.UrlInfo"
  5551. }
  5552. ]
  5553. }
  5554. },
  5555. "required": [
  5556. "data"
  5557. ],
  5558. "additionalProperties": false
  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. "404": {
  5584. "description": "SessionNotFoundError | FormNotFoundError",
  5585. "content": {
  5586. "application/json": {
  5587. "schema": {
  5588. "anyOf": [
  5589. {
  5590. "$ref": "#/components/schemas/FormNotFoundError"
  5591. },
  5592. {
  5593. "$ref": "#/components/schemas/SessionNotFoundError"
  5594. },
  5595. {
  5596. "$ref": "#/components/schemas/SessionNotFoundError"
  5597. }
  5598. ]
  5599. }
  5600. }
  5601. }
  5602. }
  5603. },
  5604. "description": "Retrieve a form for a session.",
  5605. "summary": "Get session form"
  5606. }
  5607. },
  5608. "/api/session/{sessionID}/form/{formID}/state": {
  5609. "get": {
  5610. "tags": [
  5611. "form"
  5612. ],
  5613. "operationId": "v2.session.form.state",
  5614. "parameters": [
  5615. {
  5616. "name": "sessionID",
  5617. "in": "path",
  5618. "schema": {
  5619. "type": "string"
  5620. },
  5621. "required": true
  5622. },
  5623. {
  5624. "name": "formID",
  5625. "in": "path",
  5626. "schema": {
  5627. "type": "string",
  5628. "allOf": [
  5629. {
  5630. "pattern": "^frm_"
  5631. }
  5632. ]
  5633. },
  5634. "required": true
  5635. }
  5636. ],
  5637. "security": [],
  5638. "responses": {
  5639. "200": {
  5640. "description": "Success",
  5641. "content": {
  5642. "application/json": {
  5643. "schema": {
  5644. "type": "object",
  5645. "properties": {
  5646. "data": {
  5647. "$ref": "#/components/schemas/Form.State"
  5648. }
  5649. },
  5650. "required": [
  5651. "data"
  5652. ],
  5653. "additionalProperties": false
  5654. }
  5655. }
  5656. }
  5657. },
  5658. "400": {
  5659. "description": "InvalidRequestError",
  5660. "content": {
  5661. "application/json": {
  5662. "schema": {
  5663. "$ref": "#/components/schemas/InvalidRequestError"
  5664. }
  5665. }
  5666. }
  5667. },
  5668. "401": {
  5669. "description": "UnauthorizedError",
  5670. "content": {
  5671. "application/json": {
  5672. "schema": {
  5673. "$ref": "#/components/schemas/UnauthorizedError"
  5674. }
  5675. }
  5676. }
  5677. },
  5678. "404": {
  5679. "description": "SessionNotFoundError | FormNotFoundError",
  5680. "content": {
  5681. "application/json": {
  5682. "schema": {
  5683. "anyOf": [
  5684. {
  5685. "$ref": "#/components/schemas/FormNotFoundError"
  5686. },
  5687. {
  5688. "$ref": "#/components/schemas/SessionNotFoundError"
  5689. },
  5690. {
  5691. "$ref": "#/components/schemas/SessionNotFoundError"
  5692. }
  5693. ]
  5694. }
  5695. }
  5696. }
  5697. }
  5698. },
  5699. "description": "Retrieve the current state for a form.",
  5700. "summary": "Get form state"
  5701. }
  5702. },
  5703. "/api/session/{sessionID}/form/{formID}/reply": {
  5704. "post": {
  5705. "tags": [
  5706. "form"
  5707. ],
  5708. "operationId": "v2.session.form.reply",
  5709. "parameters": [
  5710. {
  5711. "name": "sessionID",
  5712. "in": "path",
  5713. "schema": {
  5714. "type": "string"
  5715. },
  5716. "required": true
  5717. },
  5718. {
  5719. "name": "formID",
  5720. "in": "path",
  5721. "schema": {
  5722. "type": "string",
  5723. "allOf": [
  5724. {
  5725. "pattern": "^frm_"
  5726. }
  5727. ]
  5728. },
  5729. "required": true
  5730. }
  5731. ],
  5732. "security": [],
  5733. "responses": {
  5734. "204": {
  5735. "description": "<No Content>"
  5736. },
  5737. "400": {
  5738. "description": "FormInvalidAnswerError | InvalidRequestError",
  5739. "content": {
  5740. "application/json": {
  5741. "schema": {
  5742. "anyOf": [
  5743. {
  5744. "$ref": "#/components/schemas/FormInvalidAnswerError"
  5745. },
  5746. {
  5747. "$ref": "#/components/schemas/InvalidRequestError"
  5748. }
  5749. ]
  5750. }
  5751. }
  5752. }
  5753. },
  5754. "401": {
  5755. "description": "UnauthorizedError",
  5756. "content": {
  5757. "application/json": {
  5758. "schema": {
  5759. "$ref": "#/components/schemas/UnauthorizedError"
  5760. }
  5761. }
  5762. }
  5763. },
  5764. "404": {
  5765. "description": "SessionNotFoundError | FormNotFoundError",
  5766. "content": {
  5767. "application/json": {
  5768. "schema": {
  5769. "anyOf": [
  5770. {
  5771. "$ref": "#/components/schemas/FormNotFoundError"
  5772. },
  5773. {
  5774. "$ref": "#/components/schemas/SessionNotFoundError"
  5775. },
  5776. {
  5777. "$ref": "#/components/schemas/SessionNotFoundError"
  5778. }
  5779. ]
  5780. }
  5781. }
  5782. }
  5783. },
  5784. "409": {
  5785. "description": "FormAlreadySettledError",
  5786. "content": {
  5787. "application/json": {
  5788. "schema": {
  5789. "$ref": "#/components/schemas/FormAlreadySettledError"
  5790. }
  5791. }
  5792. }
  5793. }
  5794. },
  5795. "description": "Submit an answer to a pending form.",
  5796. "summary": "Reply to form",
  5797. "requestBody": {
  5798. "content": {
  5799. "application/json": {
  5800. "schema": {
  5801. "$ref": "#/components/schemas/Form.Reply"
  5802. }
  5803. }
  5804. },
  5805. "required": true
  5806. }
  5807. }
  5808. },
  5809. "/api/session/{sessionID}/form/{formID}/cancel": {
  5810. "post": {
  5811. "tags": [
  5812. "form"
  5813. ],
  5814. "operationId": "v2.session.form.cancel",
  5815. "parameters": [
  5816. {
  5817. "name": "sessionID",
  5818. "in": "path",
  5819. "schema": {
  5820. "type": "string"
  5821. },
  5822. "required": true
  5823. },
  5824. {
  5825. "name": "formID",
  5826. "in": "path",
  5827. "schema": {
  5828. "type": "string",
  5829. "allOf": [
  5830. {
  5831. "pattern": "^frm_"
  5832. }
  5833. ]
  5834. },
  5835. "required": true
  5836. }
  5837. ],
  5838. "security": [],
  5839. "responses": {
  5840. "204": {
  5841. "description": "<No Content>"
  5842. },
  5843. "400": {
  5844. "description": "InvalidRequestError",
  5845. "content": {
  5846. "application/json": {
  5847. "schema": {
  5848. "$ref": "#/components/schemas/InvalidRequestError"
  5849. }
  5850. }
  5851. }
  5852. },
  5853. "401": {
  5854. "description": "UnauthorizedError",
  5855. "content": {
  5856. "application/json": {
  5857. "schema": {
  5858. "$ref": "#/components/schemas/UnauthorizedError"
  5859. }
  5860. }
  5861. }
  5862. },
  5863. "404": {
  5864. "description": "SessionNotFoundError | FormNotFoundError",
  5865. "content": {
  5866. "application/json": {
  5867. "schema": {
  5868. "anyOf": [
  5869. {
  5870. "$ref": "#/components/schemas/FormNotFoundError"
  5871. },
  5872. {
  5873. "$ref": "#/components/schemas/SessionNotFoundError"
  5874. },
  5875. {
  5876. "$ref": "#/components/schemas/SessionNotFoundError"
  5877. }
  5878. ]
  5879. }
  5880. }
  5881. }
  5882. },
  5883. "409": {
  5884. "description": "FormAlreadySettledError",
  5885. "content": {
  5886. "application/json": {
  5887. "schema": {
  5888. "$ref": "#/components/schemas/FormAlreadySettledError"
  5889. }
  5890. }
  5891. }
  5892. }
  5893. },
  5894. "description": "Cancel a pending form.",
  5895. "summary": "Cancel form"
  5896. }
  5897. },
  5898. "/api/permission/request": {
  5899. "get": {
  5900. "tags": [
  5901. "permission"
  5902. ],
  5903. "operationId": "v2.permission.request.list",
  5904. "parameters": [
  5905. {
  5906. "name": "location",
  5907. "in": "query",
  5908. "schema": {
  5909. "anyOf": [
  5910. {
  5911. "type": "object",
  5912. "properties": {
  5913. "directory": {
  5914. "anyOf": [
  5915. {
  5916. "type": "string"
  5917. },
  5918. {
  5919. "type": "null"
  5920. }
  5921. ]
  5922. },
  5923. "workspace": {
  5924. "anyOf": [
  5925. {
  5926. "type": "string"
  5927. },
  5928. {
  5929. "type": "null"
  5930. }
  5931. ]
  5932. }
  5933. },
  5934. "additionalProperties": false
  5935. },
  5936. {
  5937. "type": "null"
  5938. }
  5939. ]
  5940. },
  5941. "required": false,
  5942. "style": "deepObject",
  5943. "explode": true
  5944. }
  5945. ],
  5946. "security": [],
  5947. "responses": {
  5948. "200": {
  5949. "description": "Success",
  5950. "content": {
  5951. "application/json": {
  5952. "schema": {
  5953. "type": "object",
  5954. "properties": {
  5955. "location": {
  5956. "$ref": "#/components/schemas/Location.Info"
  5957. },
  5958. "data": {
  5959. "type": "array",
  5960. "items": {
  5961. "$ref": "#/components/schemas/PermissionV2.Request"
  5962. }
  5963. }
  5964. },
  5965. "required": [
  5966. "location",
  5967. "data"
  5968. ],
  5969. "additionalProperties": false
  5970. }
  5971. }
  5972. }
  5973. },
  5974. "400": {
  5975. "description": "InvalidRequestError",
  5976. "content": {
  5977. "application/json": {
  5978. "schema": {
  5979. "$ref": "#/components/schemas/InvalidRequestError"
  5980. }
  5981. }
  5982. }
  5983. },
  5984. "401": {
  5985. "description": "UnauthorizedError",
  5986. "content": {
  5987. "application/json": {
  5988. "schema": {
  5989. "$ref": "#/components/schemas/UnauthorizedError"
  5990. }
  5991. }
  5992. }
  5993. }
  5994. },
  5995. "description": "Retrieve pending permission requests for a location.",
  5996. "summary": "List pending permission requests"
  5997. }
  5998. },
  5999. "/api/permission/saved": {
  6000. "get": {
  6001. "tags": [
  6002. "permission"
  6003. ],
  6004. "operationId": "v2.permission.saved.list",
  6005. "parameters": [
  6006. {
  6007. "name": "projectID",
  6008. "in": "query",
  6009. "schema": {
  6010. "anyOf": [
  6011. {
  6012. "type": "string"
  6013. },
  6014. {
  6015. "type": "null"
  6016. }
  6017. ]
  6018. },
  6019. "required": false
  6020. }
  6021. ],
  6022. "security": [],
  6023. "responses": {
  6024. "200": {
  6025. "description": "Success",
  6026. "content": {
  6027. "application/json": {
  6028. "schema": {
  6029. "type": "object",
  6030. "properties": {
  6031. "data": {
  6032. "type": "array",
  6033. "items": {
  6034. "$ref": "#/components/schemas/PermissionSaved.Info"
  6035. }
  6036. }
  6037. },
  6038. "required": [
  6039. "data"
  6040. ],
  6041. "additionalProperties": false
  6042. }
  6043. }
  6044. }
  6045. },
  6046. "400": {
  6047. "description": "InvalidRequestError",
  6048. "content": {
  6049. "application/json": {
  6050. "schema": {
  6051. "$ref": "#/components/schemas/InvalidRequestError"
  6052. }
  6053. }
  6054. }
  6055. },
  6056. "401": {
  6057. "description": "UnauthorizedError",
  6058. "content": {
  6059. "application/json": {
  6060. "schema": {
  6061. "$ref": "#/components/schemas/UnauthorizedError"
  6062. }
  6063. }
  6064. }
  6065. }
  6066. },
  6067. "description": "Retrieve saved permissions, optionally filtered by project.",
  6068. "summary": "List saved permissions"
  6069. }
  6070. },
  6071. "/api/permission/saved/{id}": {
  6072. "delete": {
  6073. "tags": [
  6074. "permission"
  6075. ],
  6076. "operationId": "v2.permission.saved.remove",
  6077. "parameters": [
  6078. {
  6079. "name": "id",
  6080. "in": "path",
  6081. "schema": {
  6082. "type": "string"
  6083. },
  6084. "required": true
  6085. }
  6086. ],
  6087. "security": [],
  6088. "responses": {
  6089. "204": {
  6090. "description": "<No Content>"
  6091. },
  6092. "400": {
  6093. "description": "InvalidRequestError",
  6094. "content": {
  6095. "application/json": {
  6096. "schema": {
  6097. "$ref": "#/components/schemas/InvalidRequestError"
  6098. }
  6099. }
  6100. }
  6101. },
  6102. "401": {
  6103. "description": "UnauthorizedError",
  6104. "content": {
  6105. "application/json": {
  6106. "schema": {
  6107. "$ref": "#/components/schemas/UnauthorizedError"
  6108. }
  6109. }
  6110. }
  6111. }
  6112. },
  6113. "description": "Remove a saved permission by ID.",
  6114. "summary": "Remove saved permission"
  6115. }
  6116. },
  6117. "/api/session/{sessionID}/permission": {
  6118. "post": {
  6119. "tags": [
  6120. "permission"
  6121. ],
  6122. "operationId": "v2.session.permission.create",
  6123. "parameters": [
  6124. {
  6125. "name": "sessionID",
  6126. "in": "path",
  6127. "schema": {
  6128. "type": "string",
  6129. "allOf": [
  6130. {
  6131. "pattern": "^ses"
  6132. }
  6133. ]
  6134. },
  6135. "required": true
  6136. }
  6137. ],
  6138. "security": [],
  6139. "responses": {
  6140. "200": {
  6141. "description": "Success",
  6142. "content": {
  6143. "application/json": {
  6144. "schema": {
  6145. "type": "object",
  6146. "properties": {
  6147. "data": {
  6148. "type": "object",
  6149. "properties": {
  6150. "id": {
  6151. "type": "string",
  6152. "allOf": [
  6153. {
  6154. "pattern": "^per"
  6155. }
  6156. ]
  6157. },
  6158. "effect": {
  6159. "$ref": "#/components/schemas/PermissionV2.Effect"
  6160. }
  6161. },
  6162. "required": [
  6163. "id",
  6164. "effect"
  6165. ],
  6166. "additionalProperties": false
  6167. }
  6168. },
  6169. "required": [
  6170. "data"
  6171. ],
  6172. "additionalProperties": false
  6173. }
  6174. }
  6175. }
  6176. },
  6177. "400": {
  6178. "description": "InvalidRequestError",
  6179. "content": {
  6180. "application/json": {
  6181. "schema": {
  6182. "$ref": "#/components/schemas/InvalidRequestError"
  6183. }
  6184. }
  6185. }
  6186. },
  6187. "401": {
  6188. "description": "UnauthorizedError",
  6189. "content": {
  6190. "application/json": {
  6191. "schema": {
  6192. "$ref": "#/components/schemas/UnauthorizedError"
  6193. }
  6194. }
  6195. }
  6196. },
  6197. "404": {
  6198. "description": "SessionNotFoundError",
  6199. "content": {
  6200. "application/json": {
  6201. "schema": {
  6202. "anyOf": [
  6203. {
  6204. "$ref": "#/components/schemas/SessionNotFoundError"
  6205. },
  6206. {
  6207. "$ref": "#/components/schemas/SessionNotFoundError"
  6208. }
  6209. ]
  6210. }
  6211. }
  6212. }
  6213. }
  6214. },
  6215. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  6216. "summary": "Create permission request",
  6217. "requestBody": {
  6218. "content": {
  6219. "application/json": {
  6220. "schema": {
  6221. "type": "object",
  6222. "properties": {
  6223. "id": {
  6224. "anyOf": [
  6225. {
  6226. "type": "string",
  6227. "allOf": [
  6228. {
  6229. "pattern": "^per"
  6230. }
  6231. ]
  6232. },
  6233. {
  6234. "type": "null"
  6235. }
  6236. ]
  6237. },
  6238. "action": {
  6239. "type": "string"
  6240. },
  6241. "resources": {
  6242. "type": "array",
  6243. "items": {
  6244. "type": "string"
  6245. }
  6246. },
  6247. "save": {
  6248. "type": "array",
  6249. "items": {
  6250. "type": "string"
  6251. }
  6252. },
  6253. "metadata": {
  6254. "type": "object"
  6255. },
  6256. "source": {
  6257. "$ref": "#/components/schemas/PermissionV2.Source"
  6258. },
  6259. "agent": {
  6260. "anyOf": [
  6261. {
  6262. "type": "string"
  6263. },
  6264. {
  6265. "type": "null"
  6266. }
  6267. ]
  6268. }
  6269. },
  6270. "required": [
  6271. "action",
  6272. "resources"
  6273. ],
  6274. "additionalProperties": false
  6275. }
  6276. }
  6277. },
  6278. "required": true
  6279. }
  6280. },
  6281. "get": {
  6282. "tags": [
  6283. "permission"
  6284. ],
  6285. "operationId": "v2.session.permission.list",
  6286. "parameters": [
  6287. {
  6288. "name": "sessionID",
  6289. "in": "path",
  6290. "schema": {
  6291. "type": "string",
  6292. "allOf": [
  6293. {
  6294. "pattern": "^ses"
  6295. }
  6296. ]
  6297. },
  6298. "required": true
  6299. }
  6300. ],
  6301. "security": [],
  6302. "responses": {
  6303. "200": {
  6304. "description": "Success",
  6305. "content": {
  6306. "application/json": {
  6307. "schema": {
  6308. "type": "object",
  6309. "properties": {
  6310. "data": {
  6311. "type": "array",
  6312. "items": {
  6313. "$ref": "#/components/schemas/PermissionV2.Request"
  6314. }
  6315. }
  6316. },
  6317. "required": [
  6318. "data"
  6319. ],
  6320. "additionalProperties": false
  6321. }
  6322. }
  6323. }
  6324. },
  6325. "400": {
  6326. "description": "InvalidRequestError",
  6327. "content": {
  6328. "application/json": {
  6329. "schema": {
  6330. "$ref": "#/components/schemas/InvalidRequestError"
  6331. }
  6332. }
  6333. }
  6334. },
  6335. "401": {
  6336. "description": "UnauthorizedError",
  6337. "content": {
  6338. "application/json": {
  6339. "schema": {
  6340. "$ref": "#/components/schemas/UnauthorizedError"
  6341. }
  6342. }
  6343. }
  6344. },
  6345. "404": {
  6346. "description": "SessionNotFoundError",
  6347. "content": {
  6348. "application/json": {
  6349. "schema": {
  6350. "anyOf": [
  6351. {
  6352. "$ref": "#/components/schemas/SessionNotFoundError"
  6353. },
  6354. {
  6355. "$ref": "#/components/schemas/SessionNotFoundError"
  6356. }
  6357. ]
  6358. }
  6359. }
  6360. }
  6361. }
  6362. },
  6363. "description": "Retrieve pending permission requests owned by a session.",
  6364. "summary": "List session permission requests"
  6365. }
  6366. },
  6367. "/api/session/{sessionID}/permission/{requestID}": {
  6368. "get": {
  6369. "tags": [
  6370. "permission"
  6371. ],
  6372. "operationId": "v2.session.permission.get",
  6373. "parameters": [
  6374. {
  6375. "name": "sessionID",
  6376. "in": "path",
  6377. "schema": {
  6378. "type": "string",
  6379. "allOf": [
  6380. {
  6381. "pattern": "^ses"
  6382. }
  6383. ]
  6384. },
  6385. "required": true
  6386. },
  6387. {
  6388. "name": "requestID",
  6389. "in": "path",
  6390. "schema": {
  6391. "type": "string",
  6392. "allOf": [
  6393. {
  6394. "pattern": "^per"
  6395. }
  6396. ]
  6397. },
  6398. "required": true
  6399. }
  6400. ],
  6401. "security": [],
  6402. "responses": {
  6403. "200": {
  6404. "description": "Success",
  6405. "content": {
  6406. "application/json": {
  6407. "schema": {
  6408. "type": "object",
  6409. "properties": {
  6410. "data": {
  6411. "$ref": "#/components/schemas/PermissionV2.Request"
  6412. }
  6413. },
  6414. "required": [
  6415. "data"
  6416. ],
  6417. "additionalProperties": false
  6418. }
  6419. }
  6420. }
  6421. },
  6422. "400": {
  6423. "description": "InvalidRequestError",
  6424. "content": {
  6425. "application/json": {
  6426. "schema": {
  6427. "$ref": "#/components/schemas/InvalidRequestError"
  6428. }
  6429. }
  6430. }
  6431. },
  6432. "401": {
  6433. "description": "UnauthorizedError",
  6434. "content": {
  6435. "application/json": {
  6436. "schema": {
  6437. "$ref": "#/components/schemas/UnauthorizedError"
  6438. }
  6439. }
  6440. }
  6441. },
  6442. "404": {
  6443. "description": "SessionNotFoundError | PermissionNotFoundError",
  6444. "content": {
  6445. "application/json": {
  6446. "schema": {
  6447. "anyOf": [
  6448. {
  6449. "$ref": "#/components/schemas/PermissionNotFoundError"
  6450. },
  6451. {
  6452. "$ref": "#/components/schemas/SessionNotFoundError"
  6453. },
  6454. {
  6455. "$ref": "#/components/schemas/SessionNotFoundError"
  6456. }
  6457. ]
  6458. }
  6459. }
  6460. }
  6461. }
  6462. },
  6463. "description": "Retrieve a pending permission request owned by a session.",
  6464. "summary": "Get permission request"
  6465. }
  6466. },
  6467. "/api/session/{sessionID}/permission/{requestID}/reply": {
  6468. "post": {
  6469. "tags": [
  6470. "permission"
  6471. ],
  6472. "operationId": "v2.session.permission.reply",
  6473. "parameters": [
  6474. {
  6475. "name": "sessionID",
  6476. "in": "path",
  6477. "schema": {
  6478. "type": "string",
  6479. "allOf": [
  6480. {
  6481. "pattern": "^ses"
  6482. }
  6483. ]
  6484. },
  6485. "required": true
  6486. },
  6487. {
  6488. "name": "requestID",
  6489. "in": "path",
  6490. "schema": {
  6491. "type": "string",
  6492. "allOf": [
  6493. {
  6494. "pattern": "^per"
  6495. }
  6496. ]
  6497. },
  6498. "required": true
  6499. }
  6500. ],
  6501. "security": [],
  6502. "responses": {
  6503. "204": {
  6504. "description": "<No Content>"
  6505. },
  6506. "400": {
  6507. "description": "InvalidRequestError",
  6508. "content": {
  6509. "application/json": {
  6510. "schema": {
  6511. "$ref": "#/components/schemas/InvalidRequestError"
  6512. }
  6513. }
  6514. }
  6515. },
  6516. "401": {
  6517. "description": "UnauthorizedError",
  6518. "content": {
  6519. "application/json": {
  6520. "schema": {
  6521. "$ref": "#/components/schemas/UnauthorizedError"
  6522. }
  6523. }
  6524. }
  6525. },
  6526. "404": {
  6527. "description": "SessionNotFoundError | PermissionNotFoundError",
  6528. "content": {
  6529. "application/json": {
  6530. "schema": {
  6531. "anyOf": [
  6532. {
  6533. "$ref": "#/components/schemas/PermissionNotFoundError"
  6534. },
  6535. {
  6536. "$ref": "#/components/schemas/SessionNotFoundError"
  6537. },
  6538. {
  6539. "$ref": "#/components/schemas/SessionNotFoundError"
  6540. }
  6541. ]
  6542. }
  6543. }
  6544. }
  6545. }
  6546. },
  6547. "description": "Respond to a pending permission request owned by a session.",
  6548. "summary": "Reply to pending permission request",
  6549. "requestBody": {
  6550. "content": {
  6551. "application/json": {
  6552. "schema": {
  6553. "type": "object",
  6554. "properties": {
  6555. "reply": {
  6556. "$ref": "#/components/schemas/PermissionV2.Reply"
  6557. },
  6558. "message": {
  6559. "anyOf": [
  6560. {
  6561. "type": "string"
  6562. },
  6563. {
  6564. "type": "null"
  6565. }
  6566. ]
  6567. }
  6568. },
  6569. "required": [
  6570. "reply"
  6571. ],
  6572. "additionalProperties": false
  6573. }
  6574. }
  6575. },
  6576. "required": true
  6577. }
  6578. }
  6579. },
  6580. "/api/fs/read/*": {
  6581. "get": {
  6582. "tags": [
  6583. "filesystem"
  6584. ],
  6585. "operationId": "v2.fs.read",
  6586. "parameters": [
  6587. {
  6588. "name": "location",
  6589. "in": "query",
  6590. "schema": {
  6591. "anyOf": [
  6592. {
  6593. "type": "object",
  6594. "properties": {
  6595. "directory": {
  6596. "anyOf": [
  6597. {
  6598. "type": "string"
  6599. },
  6600. {
  6601. "type": "null"
  6602. }
  6603. ]
  6604. },
  6605. "workspace": {
  6606. "anyOf": [
  6607. {
  6608. "type": "string"
  6609. },
  6610. {
  6611. "type": "null"
  6612. }
  6613. ]
  6614. }
  6615. },
  6616. "additionalProperties": false
  6617. },
  6618. {
  6619. "type": "null"
  6620. }
  6621. ]
  6622. },
  6623. "required": false,
  6624. "style": "deepObject",
  6625. "explode": true
  6626. }
  6627. ],
  6628. "security": [],
  6629. "responses": {
  6630. "200": {
  6631. "description": "Success",
  6632. "content": {
  6633. "application/octet-stream": {
  6634. "schema": {
  6635. "type": "string",
  6636. "format": "binary"
  6637. }
  6638. }
  6639. }
  6640. },
  6641. "400": {
  6642. "description": "InvalidRequestError",
  6643. "content": {
  6644. "application/json": {
  6645. "schema": {
  6646. "$ref": "#/components/schemas/InvalidRequestError"
  6647. }
  6648. }
  6649. }
  6650. },
  6651. "401": {
  6652. "description": "UnauthorizedError",
  6653. "content": {
  6654. "application/json": {
  6655. "schema": {
  6656. "$ref": "#/components/schemas/UnauthorizedError"
  6657. }
  6658. }
  6659. }
  6660. }
  6661. },
  6662. "description": "Serve one file relative to the requested location.",
  6663. "summary": "Read file"
  6664. }
  6665. },
  6666. "/api/fs/list": {
  6667. "get": {
  6668. "tags": [
  6669. "filesystem"
  6670. ],
  6671. "operationId": "v2.fs.list",
  6672. "parameters": [
  6673. {
  6674. "name": "location",
  6675. "in": "query",
  6676. "schema": {
  6677. "anyOf": [
  6678. {
  6679. "type": "object",
  6680. "properties": {
  6681. "directory": {
  6682. "anyOf": [
  6683. {
  6684. "type": "string"
  6685. },
  6686. {
  6687. "type": "null"
  6688. }
  6689. ]
  6690. },
  6691. "workspace": {
  6692. "anyOf": [
  6693. {
  6694. "type": "string"
  6695. },
  6696. {
  6697. "type": "null"
  6698. }
  6699. ]
  6700. }
  6701. },
  6702. "additionalProperties": false
  6703. },
  6704. {
  6705. "type": "null"
  6706. }
  6707. ]
  6708. },
  6709. "required": false,
  6710. "style": "deepObject",
  6711. "explode": true
  6712. },
  6713. {
  6714. "name": "path",
  6715. "in": "query",
  6716. "schema": {
  6717. "anyOf": [
  6718. {
  6719. "type": "string"
  6720. },
  6721. {
  6722. "type": "null"
  6723. }
  6724. ]
  6725. },
  6726. "required": false
  6727. }
  6728. ],
  6729. "security": [],
  6730. "responses": {
  6731. "200": {
  6732. "description": "Success",
  6733. "content": {
  6734. "application/json": {
  6735. "schema": {
  6736. "type": "object",
  6737. "properties": {
  6738. "location": {
  6739. "$ref": "#/components/schemas/Location.Info"
  6740. },
  6741. "data": {
  6742. "type": "array",
  6743. "items": {
  6744. "$ref": "#/components/schemas/FileSystem.Entry"
  6745. }
  6746. }
  6747. },
  6748. "required": [
  6749. "location",
  6750. "data"
  6751. ],
  6752. "additionalProperties": false
  6753. }
  6754. }
  6755. }
  6756. },
  6757. "400": {
  6758. "description": "InvalidRequestError",
  6759. "content": {
  6760. "application/json": {
  6761. "schema": {
  6762. "$ref": "#/components/schemas/InvalidRequestError"
  6763. }
  6764. }
  6765. }
  6766. },
  6767. "401": {
  6768. "description": "UnauthorizedError",
  6769. "content": {
  6770. "application/json": {
  6771. "schema": {
  6772. "$ref": "#/components/schemas/UnauthorizedError"
  6773. }
  6774. }
  6775. }
  6776. }
  6777. },
  6778. "description": "List direct children of one directory relative to the requested location.",
  6779. "summary": "List directory"
  6780. }
  6781. },
  6782. "/api/fs/find": {
  6783. "get": {
  6784. "tags": [
  6785. "filesystem"
  6786. ],
  6787. "operationId": "v2.fs.find",
  6788. "parameters": [
  6789. {
  6790. "name": "location",
  6791. "in": "query",
  6792. "schema": {
  6793. "anyOf": [
  6794. {
  6795. "type": "object",
  6796. "properties": {
  6797. "directory": {
  6798. "anyOf": [
  6799. {
  6800. "type": "string"
  6801. },
  6802. {
  6803. "type": "null"
  6804. }
  6805. ]
  6806. },
  6807. "workspace": {
  6808. "anyOf": [
  6809. {
  6810. "type": "string"
  6811. },
  6812. {
  6813. "type": "null"
  6814. }
  6815. ]
  6816. }
  6817. },
  6818. "additionalProperties": false
  6819. },
  6820. {
  6821. "type": "null"
  6822. }
  6823. ]
  6824. },
  6825. "required": false,
  6826. "style": "deepObject",
  6827. "explode": true
  6828. },
  6829. {
  6830. "name": "query",
  6831. "in": "query",
  6832. "schema": {
  6833. "type": "string"
  6834. },
  6835. "required": true
  6836. },
  6837. {
  6838. "name": "type",
  6839. "in": "query",
  6840. "schema": {
  6841. "type": "string",
  6842. "enum": [
  6843. "file",
  6844. "directory"
  6845. ]
  6846. },
  6847. "required": false
  6848. },
  6849. {
  6850. "name": "limit",
  6851. "in": "query",
  6852. "schema": {
  6853. "anyOf": [
  6854. {
  6855. "type": "string"
  6856. },
  6857. {
  6858. "type": "null"
  6859. }
  6860. ]
  6861. },
  6862. "required": false
  6863. }
  6864. ],
  6865. "security": [],
  6866. "responses": {
  6867. "200": {
  6868. "description": "Success",
  6869. "content": {
  6870. "application/json": {
  6871. "schema": {
  6872. "type": "object",
  6873. "properties": {
  6874. "location": {
  6875. "$ref": "#/components/schemas/Location.Info"
  6876. },
  6877. "data": {
  6878. "type": "array",
  6879. "items": {
  6880. "$ref": "#/components/schemas/FileSystem.Entry"
  6881. }
  6882. }
  6883. },
  6884. "required": [
  6885. "location",
  6886. "data"
  6887. ],
  6888. "additionalProperties": false
  6889. }
  6890. }
  6891. }
  6892. },
  6893. "400": {
  6894. "description": "InvalidRequestError",
  6895. "content": {
  6896. "application/json": {
  6897. "schema": {
  6898. "$ref": "#/components/schemas/InvalidRequestError"
  6899. }
  6900. }
  6901. }
  6902. },
  6903. "401": {
  6904. "description": "UnauthorizedError",
  6905. "content": {
  6906. "application/json": {
  6907. "schema": {
  6908. "$ref": "#/components/schemas/UnauthorizedError"
  6909. }
  6910. }
  6911. }
  6912. }
  6913. },
  6914. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  6915. "summary": "Find files"
  6916. }
  6917. },
  6918. "/api/command": {
  6919. "get": {
  6920. "tags": [
  6921. "command"
  6922. ],
  6923. "operationId": "v2.command.list",
  6924. "parameters": [
  6925. {
  6926. "name": "location",
  6927. "in": "query",
  6928. "schema": {
  6929. "anyOf": [
  6930. {
  6931. "type": "object",
  6932. "properties": {
  6933. "directory": {
  6934. "anyOf": [
  6935. {
  6936. "type": "string"
  6937. },
  6938. {
  6939. "type": "null"
  6940. }
  6941. ]
  6942. },
  6943. "workspace": {
  6944. "anyOf": [
  6945. {
  6946. "type": "string"
  6947. },
  6948. {
  6949. "type": "null"
  6950. }
  6951. ]
  6952. }
  6953. },
  6954. "additionalProperties": false
  6955. },
  6956. {
  6957. "type": "null"
  6958. }
  6959. ]
  6960. },
  6961. "required": false,
  6962. "style": "deepObject",
  6963. "explode": true
  6964. }
  6965. ],
  6966. "security": [],
  6967. "responses": {
  6968. "200": {
  6969. "description": "Success",
  6970. "content": {
  6971. "application/json": {
  6972. "schema": {
  6973. "type": "object",
  6974. "properties": {
  6975. "location": {
  6976. "$ref": "#/components/schemas/Location.Info"
  6977. },
  6978. "data": {
  6979. "type": "array",
  6980. "items": {
  6981. "$ref": "#/components/schemas/CommandV2.Info"
  6982. }
  6983. }
  6984. },
  6985. "required": [
  6986. "location",
  6987. "data"
  6988. ],
  6989. "additionalProperties": false
  6990. }
  6991. }
  6992. }
  6993. },
  6994. "400": {
  6995. "description": "InvalidRequestError",
  6996. "content": {
  6997. "application/json": {
  6998. "schema": {
  6999. "$ref": "#/components/schemas/InvalidRequestError"
  7000. }
  7001. }
  7002. }
  7003. },
  7004. "401": {
  7005. "description": "UnauthorizedError",
  7006. "content": {
  7007. "application/json": {
  7008. "schema": {
  7009. "$ref": "#/components/schemas/UnauthorizedError"
  7010. }
  7011. }
  7012. }
  7013. }
  7014. },
  7015. "description": "Retrieve currently registered commands.",
  7016. "summary": "List commands"
  7017. }
  7018. },
  7019. "/api/skill": {
  7020. "get": {
  7021. "tags": [
  7022. "skill"
  7023. ],
  7024. "operationId": "v2.skill.list",
  7025. "parameters": [
  7026. {
  7027. "name": "location",
  7028. "in": "query",
  7029. "schema": {
  7030. "anyOf": [
  7031. {
  7032. "type": "object",
  7033. "properties": {
  7034. "directory": {
  7035. "anyOf": [
  7036. {
  7037. "type": "string"
  7038. },
  7039. {
  7040. "type": "null"
  7041. }
  7042. ]
  7043. },
  7044. "workspace": {
  7045. "anyOf": [
  7046. {
  7047. "type": "string"
  7048. },
  7049. {
  7050. "type": "null"
  7051. }
  7052. ]
  7053. }
  7054. },
  7055. "additionalProperties": false
  7056. },
  7057. {
  7058. "type": "null"
  7059. }
  7060. ]
  7061. },
  7062. "required": false,
  7063. "style": "deepObject",
  7064. "explode": true
  7065. }
  7066. ],
  7067. "security": [],
  7068. "responses": {
  7069. "200": {
  7070. "description": "Success",
  7071. "content": {
  7072. "application/json": {
  7073. "schema": {
  7074. "type": "object",
  7075. "properties": {
  7076. "location": {
  7077. "$ref": "#/components/schemas/Location.Info"
  7078. },
  7079. "data": {
  7080. "type": "array",
  7081. "items": {
  7082. "$ref": "#/components/schemas/SkillV2.Info"
  7083. }
  7084. }
  7085. },
  7086. "required": [
  7087. "location",
  7088. "data"
  7089. ],
  7090. "additionalProperties": false
  7091. }
  7092. }
  7093. }
  7094. },
  7095. "400": {
  7096. "description": "InvalidRequestError",
  7097. "content": {
  7098. "application/json": {
  7099. "schema": {
  7100. "$ref": "#/components/schemas/InvalidRequestError"
  7101. }
  7102. }
  7103. }
  7104. },
  7105. "401": {
  7106. "description": "UnauthorizedError",
  7107. "content": {
  7108. "application/json": {
  7109. "schema": {
  7110. "$ref": "#/components/schemas/UnauthorizedError"
  7111. }
  7112. }
  7113. }
  7114. }
  7115. },
  7116. "description": "Retrieve currently registered skills.",
  7117. "summary": "List skills"
  7118. }
  7119. },
  7120. "/api/event": {
  7121. "get": {
  7122. "tags": [
  7123. "event"
  7124. ],
  7125. "operationId": "v2.event.subscribe",
  7126. "parameters": [],
  7127. "security": [],
  7128. "responses": {
  7129. "200": {
  7130. "description": "Success",
  7131. "content": {
  7132. "text/event-stream": {
  7133. "schema": {
  7134. "type": "object",
  7135. "properties": {
  7136. "id": {
  7137. "anyOf": [
  7138. {
  7139. "type": "string"
  7140. },
  7141. {
  7142. "type": "null"
  7143. }
  7144. ]
  7145. },
  7146. "event": {
  7147. "type": "string"
  7148. },
  7149. "data": {
  7150. "$ref": "#/components/schemas/V2EventStream"
  7151. }
  7152. },
  7153. "required": [
  7154. "id",
  7155. "event",
  7156. "data"
  7157. ],
  7158. "additionalProperties": false
  7159. },
  7160. "x-effect-stream": {
  7161. "encoding": "sse",
  7162. "causeSchema": {
  7163. "type": "array",
  7164. "items": {
  7165. "anyOf": [
  7166. {
  7167. "type": "object",
  7168. "properties": {
  7169. "_tag": {
  7170. "type": "string",
  7171. "enum": [
  7172. "Fail"
  7173. ]
  7174. },
  7175. "error": {
  7176. "not": {}
  7177. }
  7178. },
  7179. "required": [
  7180. "_tag",
  7181. "error"
  7182. ],
  7183. "additionalProperties": false
  7184. },
  7185. {
  7186. "type": "object",
  7187. "properties": {
  7188. "_tag": {
  7189. "type": "string",
  7190. "enum": [
  7191. "Die"
  7192. ]
  7193. },
  7194. "defect": {}
  7195. },
  7196. "required": [
  7197. "_tag",
  7198. "defect"
  7199. ],
  7200. "additionalProperties": false
  7201. },
  7202. {
  7203. "type": "object",
  7204. "properties": {
  7205. "_tag": {
  7206. "type": "string",
  7207. "enum": [
  7208. "Interrupt"
  7209. ]
  7210. },
  7211. "fiberId": {
  7212. "anyOf": [
  7213. {
  7214. "type": "number"
  7215. },
  7216. {
  7217. "type": "null"
  7218. }
  7219. ]
  7220. }
  7221. },
  7222. "required": [
  7223. "_tag",
  7224. "fiberId"
  7225. ],
  7226. "additionalProperties": false
  7227. }
  7228. ]
  7229. }
  7230. },
  7231. "errorSchema": {
  7232. "not": {}
  7233. },
  7234. "failureEvent": "effect/httpapi/stream/failure"
  7235. }
  7236. }
  7237. }
  7238. },
  7239. "400": {
  7240. "description": "InvalidRequestError",
  7241. "content": {
  7242. "application/json": {
  7243. "schema": {
  7244. "$ref": "#/components/schemas/InvalidRequestError"
  7245. }
  7246. }
  7247. }
  7248. },
  7249. "401": {
  7250. "description": "UnauthorizedError",
  7251. "content": {
  7252. "application/json": {
  7253. "schema": {
  7254. "$ref": "#/components/schemas/UnauthorizedError"
  7255. }
  7256. }
  7257. }
  7258. }
  7259. },
  7260. "description": "Subscribe to native event payloads for the server. Volatile by contract: a slow consumer overflows and fails the stream, and events during disconnection are missed. Consumers that need reliability should combine the changes feed with durable session log reads.",
  7261. "summary": "Subscribe to events"
  7262. }
  7263. },
  7264. "/api/event/changes": {
  7265. "get": {
  7266. "tags": [
  7267. "event"
  7268. ],
  7269. "operationId": "v2.event.changes",
  7270. "parameters": [],
  7271. "security": [],
  7272. "responses": {
  7273. "200": {
  7274. "description": "Success",
  7275. "content": {
  7276. "text/event-stream": {
  7277. "schema": {
  7278. "type": "object",
  7279. "properties": {
  7280. "id": {
  7281. "anyOf": [
  7282. {
  7283. "type": "string"
  7284. },
  7285. {
  7286. "type": "null"
  7287. }
  7288. ]
  7289. },
  7290. "event": {
  7291. "type": "string"
  7292. },
  7293. "data": {
  7294. "$ref": "#/components/schemas/EventLog.ChangeStream"
  7295. }
  7296. },
  7297. "required": [
  7298. "id",
  7299. "event",
  7300. "data"
  7301. ],
  7302. "additionalProperties": false
  7303. },
  7304. "x-effect-stream": {
  7305. "encoding": "sse",
  7306. "causeSchema": {
  7307. "type": "array",
  7308. "items": {
  7309. "anyOf": [
  7310. {
  7311. "type": "object",
  7312. "properties": {
  7313. "_tag": {
  7314. "type": "string",
  7315. "enum": [
  7316. "Fail"
  7317. ]
  7318. },
  7319. "error": {
  7320. "not": {}
  7321. }
  7322. },
  7323. "required": [
  7324. "_tag",
  7325. "error"
  7326. ],
  7327. "additionalProperties": false
  7328. },
  7329. {
  7330. "type": "object",
  7331. "properties": {
  7332. "_tag": {
  7333. "type": "string",
  7334. "enum": [
  7335. "Die"
  7336. ]
  7337. },
  7338. "defect": {}
  7339. },
  7340. "required": [
  7341. "_tag",
  7342. "defect"
  7343. ],
  7344. "additionalProperties": false
  7345. },
  7346. {
  7347. "type": "object",
  7348. "properties": {
  7349. "_tag": {
  7350. "type": "string",
  7351. "enum": [
  7352. "Interrupt"
  7353. ]
  7354. },
  7355. "fiberId": {
  7356. "anyOf": [
  7357. {
  7358. "type": "number"
  7359. },
  7360. {
  7361. "type": "null"
  7362. }
  7363. ]
  7364. }
  7365. },
  7366. "required": [
  7367. "_tag",
  7368. "fiberId"
  7369. ],
  7370. "additionalProperties": false
  7371. }
  7372. ]
  7373. }
  7374. },
  7375. "errorSchema": {
  7376. "not": {}
  7377. },
  7378. "failureEvent": "effect/httpapi/stream/failure"
  7379. }
  7380. }
  7381. }
  7382. },
  7383. "400": {
  7384. "description": "InvalidRequestError",
  7385. "content": {
  7386. "application/json": {
  7387. "schema": {
  7388. "$ref": "#/components/schemas/InvalidRequestError"
  7389. }
  7390. }
  7391. }
  7392. },
  7393. "401": {
  7394. "description": "UnauthorizedError",
  7395. "content": {
  7396. "application/json": {
  7397. "schema": {
  7398. "$ref": "#/components/schemas/UnauthorizedError"
  7399. }
  7400. }
  7401. }
  7402. }
  7403. },
  7404. "description": "Payload-free hint channel: after an event commits, a subscriber eventually receives a hint for that aggregate with seq at or beyond the event, or a sweep-required marker. Hints coalesce to the latest seq per aggregate under backpressure and the stream never fails from overflow. No consumer may derive correctness from receiving a hint; correctness always comes from durable log reads plus the consumer's own checkpoint. A sweep-required marker is emitted first on every (re)subscribe and whenever hint retention is exceeded: treat every aggregate as potentially dirty and recover via bounded sweep plus log reads.",
  7405. "summary": "Subscribe to change hints"
  7406. }
  7407. },
  7408. "/api/pty": {
  7409. "get": {
  7410. "tags": [
  7411. "pty"
  7412. ],
  7413. "operationId": "v2.pty.list",
  7414. "parameters": [
  7415. {
  7416. "name": "location",
  7417. "in": "query",
  7418. "schema": {
  7419. "anyOf": [
  7420. {
  7421. "type": "object",
  7422. "properties": {
  7423. "directory": {
  7424. "anyOf": [
  7425. {
  7426. "type": "string"
  7427. },
  7428. {
  7429. "type": "null"
  7430. }
  7431. ]
  7432. },
  7433. "workspace": {
  7434. "anyOf": [
  7435. {
  7436. "type": "string"
  7437. },
  7438. {
  7439. "type": "null"
  7440. }
  7441. ]
  7442. }
  7443. },
  7444. "additionalProperties": false
  7445. },
  7446. {
  7447. "type": "null"
  7448. }
  7449. ]
  7450. },
  7451. "required": false,
  7452. "style": "deepObject",
  7453. "explode": true
  7454. }
  7455. ],
  7456. "security": [],
  7457. "responses": {
  7458. "200": {
  7459. "description": "Success",
  7460. "content": {
  7461. "application/json": {
  7462. "schema": {
  7463. "type": "object",
  7464. "properties": {
  7465. "location": {
  7466. "$ref": "#/components/schemas/Location.Info"
  7467. },
  7468. "data": {
  7469. "type": "array",
  7470. "items": {
  7471. "$ref": "#/components/schemas/Pty"
  7472. }
  7473. }
  7474. },
  7475. "required": [
  7476. "location",
  7477. "data"
  7478. ],
  7479. "additionalProperties": false
  7480. }
  7481. }
  7482. }
  7483. },
  7484. "400": {
  7485. "description": "InvalidRequestError",
  7486. "content": {
  7487. "application/json": {
  7488. "schema": {
  7489. "$ref": "#/components/schemas/InvalidRequestError"
  7490. }
  7491. }
  7492. }
  7493. },
  7494. "401": {
  7495. "description": "UnauthorizedError",
  7496. "content": {
  7497. "application/json": {
  7498. "schema": {
  7499. "$ref": "#/components/schemas/UnauthorizedError"
  7500. }
  7501. }
  7502. }
  7503. }
  7504. },
  7505. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  7506. "summary": "List PTY sessions"
  7507. },
  7508. "post": {
  7509. "tags": [
  7510. "pty"
  7511. ],
  7512. "operationId": "v2.pty.create",
  7513. "parameters": [
  7514. {
  7515. "name": "location",
  7516. "in": "query",
  7517. "schema": {
  7518. "anyOf": [
  7519. {
  7520. "type": "object",
  7521. "properties": {
  7522. "directory": {
  7523. "anyOf": [
  7524. {
  7525. "type": "string"
  7526. },
  7527. {
  7528. "type": "null"
  7529. }
  7530. ]
  7531. },
  7532. "workspace": {
  7533. "anyOf": [
  7534. {
  7535. "type": "string"
  7536. },
  7537. {
  7538. "type": "null"
  7539. }
  7540. ]
  7541. }
  7542. },
  7543. "additionalProperties": false
  7544. },
  7545. {
  7546. "type": "null"
  7547. }
  7548. ]
  7549. },
  7550. "required": false,
  7551. "style": "deepObject",
  7552. "explode": true
  7553. }
  7554. ],
  7555. "security": [],
  7556. "responses": {
  7557. "200": {
  7558. "description": "Success",
  7559. "content": {
  7560. "application/json": {
  7561. "schema": {
  7562. "type": "object",
  7563. "properties": {
  7564. "location": {
  7565. "$ref": "#/components/schemas/Location.Info"
  7566. },
  7567. "data": {
  7568. "$ref": "#/components/schemas/Pty"
  7569. }
  7570. },
  7571. "required": [
  7572. "location",
  7573. "data"
  7574. ],
  7575. "additionalProperties": false
  7576. }
  7577. }
  7578. }
  7579. },
  7580. "400": {
  7581. "description": "InvalidRequestError",
  7582. "content": {
  7583. "application/json": {
  7584. "schema": {
  7585. "$ref": "#/components/schemas/InvalidRequestError"
  7586. }
  7587. }
  7588. }
  7589. },
  7590. "401": {
  7591. "description": "UnauthorizedError",
  7592. "content": {
  7593. "application/json": {
  7594. "schema": {
  7595. "$ref": "#/components/schemas/UnauthorizedError"
  7596. }
  7597. }
  7598. }
  7599. }
  7600. },
  7601. "description": "Create a pseudo-terminal session for a location.",
  7602. "summary": "Create PTY session",
  7603. "requestBody": {
  7604. "content": {
  7605. "application/json": {
  7606. "schema": {
  7607. "type": "object",
  7608. "properties": {
  7609. "command": {
  7610. "type": "string"
  7611. },
  7612. "args": {
  7613. "type": "array",
  7614. "items": {
  7615. "type": "string"
  7616. }
  7617. },
  7618. "cwd": {
  7619. "type": "string"
  7620. },
  7621. "title": {
  7622. "type": "string"
  7623. },
  7624. "env": {
  7625. "type": "object",
  7626. "additionalProperties": {
  7627. "type": "string"
  7628. }
  7629. }
  7630. },
  7631. "additionalProperties": false
  7632. }
  7633. }
  7634. },
  7635. "required": true
  7636. }
  7637. }
  7638. },
  7639. "/api/pty/{ptyID}": {
  7640. "get": {
  7641. "tags": [
  7642. "pty"
  7643. ],
  7644. "operationId": "v2.pty.get",
  7645. "parameters": [
  7646. {
  7647. "name": "ptyID",
  7648. "in": "path",
  7649. "schema": {
  7650. "type": "string",
  7651. "allOf": [
  7652. {
  7653. "pattern": "^pty"
  7654. }
  7655. ]
  7656. },
  7657. "required": true
  7658. },
  7659. {
  7660. "name": "location",
  7661. "in": "query",
  7662. "schema": {
  7663. "anyOf": [
  7664. {
  7665. "type": "object",
  7666. "properties": {
  7667. "directory": {
  7668. "anyOf": [
  7669. {
  7670. "type": "string"
  7671. },
  7672. {
  7673. "type": "null"
  7674. }
  7675. ]
  7676. },
  7677. "workspace": {
  7678. "anyOf": [
  7679. {
  7680. "type": "string"
  7681. },
  7682. {
  7683. "type": "null"
  7684. }
  7685. ]
  7686. }
  7687. },
  7688. "additionalProperties": false
  7689. },
  7690. {
  7691. "type": "null"
  7692. }
  7693. ]
  7694. },
  7695. "required": false,
  7696. "style": "deepObject",
  7697. "explode": true
  7698. }
  7699. ],
  7700. "security": [],
  7701. "responses": {
  7702. "200": {
  7703. "description": "Success",
  7704. "content": {
  7705. "application/json": {
  7706. "schema": {
  7707. "type": "object",
  7708. "properties": {
  7709. "location": {
  7710. "$ref": "#/components/schemas/Location.Info"
  7711. },
  7712. "data": {
  7713. "$ref": "#/components/schemas/Pty"
  7714. }
  7715. },
  7716. "required": [
  7717. "location",
  7718. "data"
  7719. ],
  7720. "additionalProperties": false
  7721. }
  7722. }
  7723. }
  7724. },
  7725. "400": {
  7726. "description": "InvalidRequestError",
  7727. "content": {
  7728. "application/json": {
  7729. "schema": {
  7730. "$ref": "#/components/schemas/InvalidRequestError"
  7731. }
  7732. }
  7733. }
  7734. },
  7735. "401": {
  7736. "description": "UnauthorizedError",
  7737. "content": {
  7738. "application/json": {
  7739. "schema": {
  7740. "$ref": "#/components/schemas/UnauthorizedError"
  7741. }
  7742. }
  7743. }
  7744. },
  7745. "404": {
  7746. "description": "PtyNotFoundError",
  7747. "content": {
  7748. "application/json": {
  7749. "schema": {
  7750. "$ref": "#/components/schemas/PtyNotFoundError"
  7751. }
  7752. }
  7753. }
  7754. }
  7755. },
  7756. "description": "Get one PTY session, including its exit code once exited.",
  7757. "summary": "Get PTY session"
  7758. },
  7759. "put": {
  7760. "tags": [
  7761. "pty"
  7762. ],
  7763. "operationId": "v2.pty.update",
  7764. "parameters": [
  7765. {
  7766. "name": "ptyID",
  7767. "in": "path",
  7768. "schema": {
  7769. "type": "string",
  7770. "allOf": [
  7771. {
  7772. "pattern": "^pty"
  7773. }
  7774. ]
  7775. },
  7776. "required": true
  7777. },
  7778. {
  7779. "name": "location",
  7780. "in": "query",
  7781. "schema": {
  7782. "anyOf": [
  7783. {
  7784. "type": "object",
  7785. "properties": {
  7786. "directory": {
  7787. "anyOf": [
  7788. {
  7789. "type": "string"
  7790. },
  7791. {
  7792. "type": "null"
  7793. }
  7794. ]
  7795. },
  7796. "workspace": {
  7797. "anyOf": [
  7798. {
  7799. "type": "string"
  7800. },
  7801. {
  7802. "type": "null"
  7803. }
  7804. ]
  7805. }
  7806. },
  7807. "additionalProperties": false
  7808. },
  7809. {
  7810. "type": "null"
  7811. }
  7812. ]
  7813. },
  7814. "required": false,
  7815. "style": "deepObject",
  7816. "explode": true
  7817. }
  7818. ],
  7819. "security": [],
  7820. "responses": {
  7821. "200": {
  7822. "description": "Success",
  7823. "content": {
  7824. "application/json": {
  7825. "schema": {
  7826. "type": "object",
  7827. "properties": {
  7828. "location": {
  7829. "$ref": "#/components/schemas/Location.Info"
  7830. },
  7831. "data": {
  7832. "$ref": "#/components/schemas/Pty"
  7833. }
  7834. },
  7835. "required": [
  7836. "location",
  7837. "data"
  7838. ],
  7839. "additionalProperties": false
  7840. }
  7841. }
  7842. }
  7843. },
  7844. "400": {
  7845. "description": "InvalidRequestError",
  7846. "content": {
  7847. "application/json": {
  7848. "schema": {
  7849. "$ref": "#/components/schemas/InvalidRequestError"
  7850. }
  7851. }
  7852. }
  7853. },
  7854. "401": {
  7855. "description": "UnauthorizedError",
  7856. "content": {
  7857. "application/json": {
  7858. "schema": {
  7859. "$ref": "#/components/schemas/UnauthorizedError"
  7860. }
  7861. }
  7862. }
  7863. },
  7864. "404": {
  7865. "description": "PtyNotFoundError",
  7866. "content": {
  7867. "application/json": {
  7868. "schema": {
  7869. "$ref": "#/components/schemas/PtyNotFoundError"
  7870. }
  7871. }
  7872. }
  7873. }
  7874. },
  7875. "description": "Update the title or viewport size of one PTY session.",
  7876. "summary": "Update PTY session",
  7877. "requestBody": {
  7878. "content": {
  7879. "application/json": {
  7880. "schema": {
  7881. "type": "object",
  7882. "properties": {
  7883. "title": {
  7884. "type": "string"
  7885. },
  7886. "size": {
  7887. "type": "object",
  7888. "properties": {
  7889. "rows": {
  7890. "type": "integer",
  7891. "allOf": [
  7892. {
  7893. "exclusiveMinimum": 0
  7894. }
  7895. ]
  7896. },
  7897. "cols": {
  7898. "type": "integer",
  7899. "allOf": [
  7900. {
  7901. "exclusiveMinimum": 0
  7902. }
  7903. ]
  7904. }
  7905. },
  7906. "required": [
  7907. "rows",
  7908. "cols"
  7909. ],
  7910. "additionalProperties": false
  7911. }
  7912. },
  7913. "additionalProperties": false
  7914. }
  7915. }
  7916. },
  7917. "required": true
  7918. }
  7919. },
  7920. "delete": {
  7921. "tags": [
  7922. "pty"
  7923. ],
  7924. "operationId": "v2.pty.remove",
  7925. "parameters": [
  7926. {
  7927. "name": "ptyID",
  7928. "in": "path",
  7929. "schema": {
  7930. "type": "string",
  7931. "allOf": [
  7932. {
  7933. "pattern": "^pty"
  7934. }
  7935. ]
  7936. },
  7937. "required": true
  7938. },
  7939. {
  7940. "name": "location",
  7941. "in": "query",
  7942. "schema": {
  7943. "anyOf": [
  7944. {
  7945. "type": "object",
  7946. "properties": {
  7947. "directory": {
  7948. "anyOf": [
  7949. {
  7950. "type": "string"
  7951. },
  7952. {
  7953. "type": "null"
  7954. }
  7955. ]
  7956. },
  7957. "workspace": {
  7958. "anyOf": [
  7959. {
  7960. "type": "string"
  7961. },
  7962. {
  7963. "type": "null"
  7964. }
  7965. ]
  7966. }
  7967. },
  7968. "additionalProperties": false
  7969. },
  7970. {
  7971. "type": "null"
  7972. }
  7973. ]
  7974. },
  7975. "required": false,
  7976. "style": "deepObject",
  7977. "explode": true
  7978. }
  7979. ],
  7980. "security": [],
  7981. "responses": {
  7982. "204": {
  7983. "description": "<No Content>"
  7984. },
  7985. "400": {
  7986. "description": "InvalidRequestError",
  7987. "content": {
  7988. "application/json": {
  7989. "schema": {
  7990. "$ref": "#/components/schemas/InvalidRequestError"
  7991. }
  7992. }
  7993. }
  7994. },
  7995. "401": {
  7996. "description": "UnauthorizedError",
  7997. "content": {
  7998. "application/json": {
  7999. "schema": {
  8000. "$ref": "#/components/schemas/UnauthorizedError"
  8001. }
  8002. }
  8003. }
  8004. },
  8005. "404": {
  8006. "description": "PtyNotFoundError",
  8007. "content": {
  8008. "application/json": {
  8009. "schema": {
  8010. "$ref": "#/components/schemas/PtyNotFoundError"
  8011. }
  8012. }
  8013. }
  8014. }
  8015. },
  8016. "description": "Terminate and remove one PTY session.",
  8017. "summary": "Remove PTY session"
  8018. }
  8019. },
  8020. "/api/pty/{ptyID}/connect-token": {
  8021. "post": {
  8022. "tags": [
  8023. "pty"
  8024. ],
  8025. "operationId": "v2.pty.connectToken",
  8026. "parameters": [
  8027. {
  8028. "name": "ptyID",
  8029. "in": "path",
  8030. "schema": {
  8031. "type": "string",
  8032. "allOf": [
  8033. {
  8034. "pattern": "^pty"
  8035. }
  8036. ]
  8037. },
  8038. "required": true
  8039. },
  8040. {
  8041. "name": "location",
  8042. "in": "query",
  8043. "schema": {
  8044. "anyOf": [
  8045. {
  8046. "type": "object",
  8047. "properties": {
  8048. "directory": {
  8049. "anyOf": [
  8050. {
  8051. "type": "string"
  8052. },
  8053. {
  8054. "type": "null"
  8055. }
  8056. ]
  8057. },
  8058. "workspace": {
  8059. "anyOf": [
  8060. {
  8061. "type": "string"
  8062. },
  8063. {
  8064. "type": "null"
  8065. }
  8066. ]
  8067. }
  8068. },
  8069. "additionalProperties": false
  8070. },
  8071. {
  8072. "type": "null"
  8073. }
  8074. ]
  8075. },
  8076. "required": false,
  8077. "style": "deepObject",
  8078. "explode": true
  8079. }
  8080. ],
  8081. "security": [],
  8082. "responses": {
  8083. "200": {
  8084. "description": "Success",
  8085. "content": {
  8086. "application/json": {
  8087. "schema": {
  8088. "type": "object",
  8089. "properties": {
  8090. "location": {
  8091. "$ref": "#/components/schemas/Location.Info"
  8092. },
  8093. "data": {
  8094. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  8095. }
  8096. },
  8097. "required": [
  8098. "location",
  8099. "data"
  8100. ],
  8101. "additionalProperties": false
  8102. }
  8103. }
  8104. }
  8105. },
  8106. "400": {
  8107. "description": "InvalidRequestError",
  8108. "content": {
  8109. "application/json": {
  8110. "schema": {
  8111. "$ref": "#/components/schemas/InvalidRequestError"
  8112. }
  8113. }
  8114. }
  8115. },
  8116. "401": {
  8117. "description": "UnauthorizedError",
  8118. "content": {
  8119. "application/json": {
  8120. "schema": {
  8121. "$ref": "#/components/schemas/UnauthorizedError"
  8122. }
  8123. }
  8124. }
  8125. },
  8126. "403": {
  8127. "description": "ForbiddenError",
  8128. "content": {
  8129. "application/json": {
  8130. "schema": {
  8131. "$ref": "#/components/schemas/ForbiddenError"
  8132. }
  8133. }
  8134. }
  8135. },
  8136. "404": {
  8137. "description": "PtyNotFoundError",
  8138. "content": {
  8139. "application/json": {
  8140. "schema": {
  8141. "$ref": "#/components/schemas/PtyNotFoundError"
  8142. }
  8143. }
  8144. }
  8145. }
  8146. },
  8147. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  8148. "summary": "Create PTY WebSocket token"
  8149. }
  8150. },
  8151. "/api/pty/{ptyID}/connect": {
  8152. "get": {
  8153. "tags": [
  8154. "pty"
  8155. ],
  8156. "operationId": "v2.pty.connect",
  8157. "parameters": [
  8158. {
  8159. "name": "ptyID",
  8160. "in": "path",
  8161. "schema": {
  8162. "type": "string",
  8163. "allOf": [
  8164. {
  8165. "pattern": "^pty"
  8166. }
  8167. ]
  8168. },
  8169. "required": true
  8170. },
  8171. {
  8172. "in": "query",
  8173. "name": "location[directory]",
  8174. "schema": {
  8175. "type": "string"
  8176. }
  8177. },
  8178. {
  8179. "in": "query",
  8180. "name": "location[workspace]",
  8181. "schema": {
  8182. "type": "string"
  8183. }
  8184. },
  8185. {
  8186. "in": "query",
  8187. "name": "cursor",
  8188. "schema": {
  8189. "type": "string"
  8190. }
  8191. },
  8192. {
  8193. "in": "query",
  8194. "name": "ticket",
  8195. "schema": {
  8196. "type": "string"
  8197. }
  8198. }
  8199. ],
  8200. "security": [],
  8201. "responses": {
  8202. "200": {
  8203. "description": "Success",
  8204. "content": {
  8205. "application/json": {
  8206. "schema": {
  8207. "type": "boolean"
  8208. }
  8209. }
  8210. }
  8211. },
  8212. "400": {
  8213. "description": "InvalidRequestError",
  8214. "content": {
  8215. "application/json": {
  8216. "schema": {
  8217. "$ref": "#/components/schemas/InvalidRequestError"
  8218. }
  8219. }
  8220. }
  8221. },
  8222. "401": {
  8223. "description": "UnauthorizedError",
  8224. "content": {
  8225. "application/json": {
  8226. "schema": {
  8227. "$ref": "#/components/schemas/UnauthorizedError"
  8228. }
  8229. }
  8230. }
  8231. },
  8232. "403": {
  8233. "description": "ForbiddenError",
  8234. "content": {
  8235. "application/json": {
  8236. "schema": {
  8237. "$ref": "#/components/schemas/ForbiddenError"
  8238. }
  8239. }
  8240. }
  8241. },
  8242. "404": {
  8243. "description": "PtyNotFoundError",
  8244. "content": {
  8245. "application/json": {
  8246. "schema": {
  8247. "$ref": "#/components/schemas/PtyNotFoundError"
  8248. }
  8249. }
  8250. }
  8251. }
  8252. },
  8253. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  8254. "summary": "Connect to PTY session",
  8255. "x-websocket": true
  8256. }
  8257. },
  8258. "/api/shell": {
  8259. "get": {
  8260. "tags": [
  8261. "shell"
  8262. ],
  8263. "operationId": "v2.shell.list",
  8264. "parameters": [
  8265. {
  8266. "name": "location",
  8267. "in": "query",
  8268. "schema": {
  8269. "anyOf": [
  8270. {
  8271. "type": "object",
  8272. "properties": {
  8273. "directory": {
  8274. "anyOf": [
  8275. {
  8276. "type": "string"
  8277. },
  8278. {
  8279. "type": "null"
  8280. }
  8281. ]
  8282. },
  8283. "workspace": {
  8284. "anyOf": [
  8285. {
  8286. "type": "string"
  8287. },
  8288. {
  8289. "type": "null"
  8290. }
  8291. ]
  8292. }
  8293. },
  8294. "additionalProperties": false
  8295. },
  8296. {
  8297. "type": "null"
  8298. }
  8299. ]
  8300. },
  8301. "required": false,
  8302. "style": "deepObject",
  8303. "explode": true
  8304. }
  8305. ],
  8306. "security": [],
  8307. "responses": {
  8308. "200": {
  8309. "description": "Success",
  8310. "content": {
  8311. "application/json": {
  8312. "schema": {
  8313. "type": "object",
  8314. "properties": {
  8315. "location": {
  8316. "$ref": "#/components/schemas/Location.Info"
  8317. },
  8318. "data": {
  8319. "type": "array",
  8320. "items": {
  8321. "$ref": "#/components/schemas/Shell"
  8322. }
  8323. }
  8324. },
  8325. "required": [
  8326. "location",
  8327. "data"
  8328. ],
  8329. "additionalProperties": false
  8330. }
  8331. }
  8332. }
  8333. },
  8334. "400": {
  8335. "description": "InvalidRequestError",
  8336. "content": {
  8337. "application/json": {
  8338. "schema": {
  8339. "$ref": "#/components/schemas/InvalidRequestError"
  8340. }
  8341. }
  8342. }
  8343. },
  8344. "401": {
  8345. "description": "UnauthorizedError",
  8346. "content": {
  8347. "application/json": {
  8348. "schema": {
  8349. "$ref": "#/components/schemas/UnauthorizedError"
  8350. }
  8351. }
  8352. }
  8353. }
  8354. },
  8355. "description": "List currently running shell commands for a location. Exited commands are not included.",
  8356. "summary": "List running shell commands"
  8357. },
  8358. "post": {
  8359. "tags": [
  8360. "shell"
  8361. ],
  8362. "operationId": "v2.shell.create",
  8363. "parameters": [
  8364. {
  8365. "name": "location",
  8366. "in": "query",
  8367. "schema": {
  8368. "anyOf": [
  8369. {
  8370. "type": "object",
  8371. "properties": {
  8372. "directory": {
  8373. "anyOf": [
  8374. {
  8375. "type": "string"
  8376. },
  8377. {
  8378. "type": "null"
  8379. }
  8380. ]
  8381. },
  8382. "workspace": {
  8383. "anyOf": [
  8384. {
  8385. "type": "string"
  8386. },
  8387. {
  8388. "type": "null"
  8389. }
  8390. ]
  8391. }
  8392. },
  8393. "additionalProperties": false
  8394. },
  8395. {
  8396. "type": "null"
  8397. }
  8398. ]
  8399. },
  8400. "required": false,
  8401. "style": "deepObject",
  8402. "explode": true
  8403. }
  8404. ],
  8405. "security": [],
  8406. "responses": {
  8407. "200": {
  8408. "description": "Success",
  8409. "content": {
  8410. "application/json": {
  8411. "schema": {
  8412. "type": "object",
  8413. "properties": {
  8414. "location": {
  8415. "$ref": "#/components/schemas/Location.Info"
  8416. },
  8417. "data": {
  8418. "$ref": "#/components/schemas/Shell"
  8419. }
  8420. },
  8421. "required": [
  8422. "location",
  8423. "data"
  8424. ],
  8425. "additionalProperties": false
  8426. }
  8427. }
  8428. }
  8429. },
  8430. "400": {
  8431. "description": "InvalidRequestError",
  8432. "content": {
  8433. "application/json": {
  8434. "schema": {
  8435. "$ref": "#/components/schemas/InvalidRequestError"
  8436. }
  8437. }
  8438. }
  8439. },
  8440. "401": {
  8441. "description": "UnauthorizedError",
  8442. "content": {
  8443. "application/json": {
  8444. "schema": {
  8445. "$ref": "#/components/schemas/UnauthorizedError"
  8446. }
  8447. }
  8448. }
  8449. }
  8450. },
  8451. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  8452. "summary": "Run shell command",
  8453. "requestBody": {
  8454. "content": {
  8455. "application/json": {
  8456. "schema": {
  8457. "type": "object",
  8458. "properties": {
  8459. "command": {
  8460. "type": "string"
  8461. },
  8462. "cwd": {
  8463. "type": "string"
  8464. },
  8465. "timeout": {
  8466. "type": "integer",
  8467. "allOf": [
  8468. {
  8469. "minimum": 0
  8470. }
  8471. ]
  8472. },
  8473. "metadata": {
  8474. "type": "object"
  8475. }
  8476. },
  8477. "required": [
  8478. "command"
  8479. ],
  8480. "additionalProperties": false
  8481. }
  8482. }
  8483. },
  8484. "required": true
  8485. }
  8486. }
  8487. },
  8488. "/api/shell/{id}": {
  8489. "get": {
  8490. "tags": [
  8491. "shell"
  8492. ],
  8493. "operationId": "v2.shell.get",
  8494. "parameters": [
  8495. {
  8496. "name": "id",
  8497. "in": "path",
  8498. "schema": {
  8499. "type": "string",
  8500. "allOf": [
  8501. {
  8502. "pattern": "^sh_"
  8503. }
  8504. ]
  8505. },
  8506. "required": true
  8507. },
  8508. {
  8509. "name": "location",
  8510. "in": "query",
  8511. "schema": {
  8512. "anyOf": [
  8513. {
  8514. "type": "object",
  8515. "properties": {
  8516. "directory": {
  8517. "anyOf": [
  8518. {
  8519. "type": "string"
  8520. },
  8521. {
  8522. "type": "null"
  8523. }
  8524. ]
  8525. },
  8526. "workspace": {
  8527. "anyOf": [
  8528. {
  8529. "type": "string"
  8530. },
  8531. {
  8532. "type": "null"
  8533. }
  8534. ]
  8535. }
  8536. },
  8537. "additionalProperties": false
  8538. },
  8539. {
  8540. "type": "null"
  8541. }
  8542. ]
  8543. },
  8544. "required": false,
  8545. "style": "deepObject",
  8546. "explode": true
  8547. }
  8548. ],
  8549. "security": [],
  8550. "responses": {
  8551. "200": {
  8552. "description": "Success",
  8553. "content": {
  8554. "application/json": {
  8555. "schema": {
  8556. "type": "object",
  8557. "properties": {
  8558. "location": {
  8559. "$ref": "#/components/schemas/Location.Info"
  8560. },
  8561. "data": {
  8562. "$ref": "#/components/schemas/Shell"
  8563. }
  8564. },
  8565. "required": [
  8566. "location",
  8567. "data"
  8568. ],
  8569. "additionalProperties": false
  8570. }
  8571. }
  8572. }
  8573. },
  8574. "400": {
  8575. "description": "InvalidRequestError",
  8576. "content": {
  8577. "application/json": {
  8578. "schema": {
  8579. "$ref": "#/components/schemas/InvalidRequestError"
  8580. }
  8581. }
  8582. }
  8583. },
  8584. "401": {
  8585. "description": "UnauthorizedError",
  8586. "content": {
  8587. "application/json": {
  8588. "schema": {
  8589. "$ref": "#/components/schemas/UnauthorizedError"
  8590. }
  8591. }
  8592. }
  8593. },
  8594. "404": {
  8595. "description": "ShellNotFoundError",
  8596. "content": {
  8597. "application/json": {
  8598. "schema": {
  8599. "$ref": "#/components/schemas/ShellNotFoundError"
  8600. }
  8601. }
  8602. }
  8603. }
  8604. },
  8605. "description": "Get one shell command, including its status and exit code once exited.",
  8606. "summary": "Get shell command"
  8607. },
  8608. "delete": {
  8609. "tags": [
  8610. "shell"
  8611. ],
  8612. "operationId": "v2.shell.remove",
  8613. "parameters": [
  8614. {
  8615. "name": "id",
  8616. "in": "path",
  8617. "schema": {
  8618. "type": "string",
  8619. "allOf": [
  8620. {
  8621. "pattern": "^sh_"
  8622. }
  8623. ]
  8624. },
  8625. "required": true
  8626. },
  8627. {
  8628. "name": "location",
  8629. "in": "query",
  8630. "schema": {
  8631. "anyOf": [
  8632. {
  8633. "type": "object",
  8634. "properties": {
  8635. "directory": {
  8636. "anyOf": [
  8637. {
  8638. "type": "string"
  8639. },
  8640. {
  8641. "type": "null"
  8642. }
  8643. ]
  8644. },
  8645. "workspace": {
  8646. "anyOf": [
  8647. {
  8648. "type": "string"
  8649. },
  8650. {
  8651. "type": "null"
  8652. }
  8653. ]
  8654. }
  8655. },
  8656. "additionalProperties": false
  8657. },
  8658. {
  8659. "type": "null"
  8660. }
  8661. ]
  8662. },
  8663. "required": false,
  8664. "style": "deepObject",
  8665. "explode": true
  8666. }
  8667. ],
  8668. "security": [],
  8669. "responses": {
  8670. "204": {
  8671. "description": "<No Content>"
  8672. },
  8673. "400": {
  8674. "description": "InvalidRequestError",
  8675. "content": {
  8676. "application/json": {
  8677. "schema": {
  8678. "$ref": "#/components/schemas/InvalidRequestError"
  8679. }
  8680. }
  8681. }
  8682. },
  8683. "401": {
  8684. "description": "UnauthorizedError",
  8685. "content": {
  8686. "application/json": {
  8687. "schema": {
  8688. "$ref": "#/components/schemas/UnauthorizedError"
  8689. }
  8690. }
  8691. }
  8692. },
  8693. "404": {
  8694. "description": "ShellNotFoundError",
  8695. "content": {
  8696. "application/json": {
  8697. "schema": {
  8698. "$ref": "#/components/schemas/ShellNotFoundError"
  8699. }
  8700. }
  8701. }
  8702. }
  8703. },
  8704. "description": "Terminate and remove one shell command and its retained output.",
  8705. "summary": "Remove shell command"
  8706. }
  8707. },
  8708. "/api/shell/{id}/output": {
  8709. "get": {
  8710. "tags": [
  8711. "shell"
  8712. ],
  8713. "operationId": "v2.shell.output",
  8714. "parameters": [
  8715. {
  8716. "name": "id",
  8717. "in": "path",
  8718. "schema": {
  8719. "type": "string",
  8720. "allOf": [
  8721. {
  8722. "pattern": "^sh_"
  8723. }
  8724. ]
  8725. },
  8726. "required": true
  8727. },
  8728. {
  8729. "name": "location",
  8730. "in": "query",
  8731. "schema": {
  8732. "anyOf": [
  8733. {
  8734. "type": "object",
  8735. "properties": {
  8736. "directory": {
  8737. "anyOf": [
  8738. {
  8739. "type": "string"
  8740. },
  8741. {
  8742. "type": "null"
  8743. }
  8744. ]
  8745. },
  8746. "workspace": {
  8747. "anyOf": [
  8748. {
  8749. "type": "string"
  8750. },
  8751. {
  8752. "type": "null"
  8753. }
  8754. ]
  8755. }
  8756. },
  8757. "additionalProperties": false
  8758. },
  8759. {
  8760. "type": "null"
  8761. }
  8762. ]
  8763. },
  8764. "required": false,
  8765. "style": "deepObject",
  8766. "explode": true
  8767. },
  8768. {
  8769. "name": "cursor",
  8770. "in": "query",
  8771. "schema": {
  8772. "type": "string",
  8773. "allOf": [
  8774. {
  8775. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  8776. }
  8777. ]
  8778. },
  8779. "required": false
  8780. },
  8781. {
  8782. "name": "limit",
  8783. "in": "query",
  8784. "schema": {
  8785. "type": "string",
  8786. "allOf": [
  8787. {
  8788. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  8789. }
  8790. ]
  8791. },
  8792. "required": false
  8793. }
  8794. ],
  8795. "security": [],
  8796. "responses": {
  8797. "200": {
  8798. "description": "Success",
  8799. "content": {
  8800. "application/json": {
  8801. "schema": {
  8802. "type": "object",
  8803. "properties": {
  8804. "location": {
  8805. "$ref": "#/components/schemas/Location.Info"
  8806. },
  8807. "data": {
  8808. "type": "object",
  8809. "properties": {
  8810. "output": {
  8811. "type": "string"
  8812. },
  8813. "cursor": {
  8814. "type": "integer",
  8815. "allOf": [
  8816. {
  8817. "minimum": 0
  8818. }
  8819. ]
  8820. },
  8821. "size": {
  8822. "type": "integer",
  8823. "allOf": [
  8824. {
  8825. "minimum": 0
  8826. }
  8827. ]
  8828. },
  8829. "truncated": {
  8830. "type": "boolean"
  8831. }
  8832. },
  8833. "required": [
  8834. "output",
  8835. "cursor",
  8836. "size",
  8837. "truncated"
  8838. ],
  8839. "additionalProperties": false
  8840. }
  8841. },
  8842. "required": [
  8843. "location",
  8844. "data"
  8845. ],
  8846. "additionalProperties": false
  8847. }
  8848. }
  8849. }
  8850. },
  8851. "400": {
  8852. "description": "InvalidRequestError",
  8853. "content": {
  8854. "application/json": {
  8855. "schema": {
  8856. "$ref": "#/components/schemas/InvalidRequestError"
  8857. }
  8858. }
  8859. }
  8860. },
  8861. "401": {
  8862. "description": "UnauthorizedError",
  8863. "content": {
  8864. "application/json": {
  8865. "schema": {
  8866. "$ref": "#/components/schemas/UnauthorizedError"
  8867. }
  8868. }
  8869. }
  8870. },
  8871. "404": {
  8872. "description": "ShellNotFoundError",
  8873. "content": {
  8874. "application/json": {
  8875. "schema": {
  8876. "$ref": "#/components/schemas/ShellNotFoundError"
  8877. }
  8878. }
  8879. }
  8880. }
  8881. },
  8882. "description": "Page through captured combined output by absolute byte cursor.",
  8883. "summary": "Read shell output"
  8884. }
  8885. },
  8886. "/api/question/request": {
  8887. "get": {
  8888. "tags": [
  8889. "question"
  8890. ],
  8891. "operationId": "v2.question.request.list",
  8892. "parameters": [
  8893. {
  8894. "name": "location",
  8895. "in": "query",
  8896. "schema": {
  8897. "anyOf": [
  8898. {
  8899. "type": "object",
  8900. "properties": {
  8901. "directory": {
  8902. "anyOf": [
  8903. {
  8904. "type": "string"
  8905. },
  8906. {
  8907. "type": "null"
  8908. }
  8909. ]
  8910. },
  8911. "workspace": {
  8912. "anyOf": [
  8913. {
  8914. "type": "string"
  8915. },
  8916. {
  8917. "type": "null"
  8918. }
  8919. ]
  8920. }
  8921. },
  8922. "additionalProperties": false
  8923. },
  8924. {
  8925. "type": "null"
  8926. }
  8927. ]
  8928. },
  8929. "required": false,
  8930. "style": "deepObject",
  8931. "explode": true
  8932. }
  8933. ],
  8934. "security": [],
  8935. "responses": {
  8936. "200": {
  8937. "description": "Success",
  8938. "content": {
  8939. "application/json": {
  8940. "schema": {
  8941. "type": "object",
  8942. "properties": {
  8943. "location": {
  8944. "$ref": "#/components/schemas/Location.Info"
  8945. },
  8946. "data": {
  8947. "type": "array",
  8948. "items": {
  8949. "$ref": "#/components/schemas/QuestionV2.Request"
  8950. }
  8951. }
  8952. },
  8953. "required": [
  8954. "location",
  8955. "data"
  8956. ],
  8957. "additionalProperties": false
  8958. }
  8959. }
  8960. }
  8961. },
  8962. "400": {
  8963. "description": "InvalidRequestError",
  8964. "content": {
  8965. "application/json": {
  8966. "schema": {
  8967. "$ref": "#/components/schemas/InvalidRequestError"
  8968. }
  8969. }
  8970. }
  8971. },
  8972. "401": {
  8973. "description": "UnauthorizedError",
  8974. "content": {
  8975. "application/json": {
  8976. "schema": {
  8977. "$ref": "#/components/schemas/UnauthorizedError"
  8978. }
  8979. }
  8980. }
  8981. }
  8982. },
  8983. "description": "Retrieve pending question requests for a location.",
  8984. "summary": "List pending question requests"
  8985. }
  8986. },
  8987. "/api/session/{sessionID}/question": {
  8988. "get": {
  8989. "tags": [
  8990. "question"
  8991. ],
  8992. "operationId": "v2.session.question.list",
  8993. "parameters": [
  8994. {
  8995. "name": "sessionID",
  8996. "in": "path",
  8997. "schema": {
  8998. "type": "string",
  8999. "allOf": [
  9000. {
  9001. "pattern": "^ses"
  9002. }
  9003. ]
  9004. },
  9005. "required": true
  9006. }
  9007. ],
  9008. "security": [],
  9009. "responses": {
  9010. "200": {
  9011. "description": "Success",
  9012. "content": {
  9013. "application/json": {
  9014. "schema": {
  9015. "type": "object",
  9016. "properties": {
  9017. "data": {
  9018. "type": "array",
  9019. "items": {
  9020. "$ref": "#/components/schemas/QuestionV2.Request"
  9021. }
  9022. }
  9023. },
  9024. "required": [
  9025. "data"
  9026. ],
  9027. "additionalProperties": false
  9028. }
  9029. }
  9030. }
  9031. },
  9032. "400": {
  9033. "description": "InvalidRequestError",
  9034. "content": {
  9035. "application/json": {
  9036. "schema": {
  9037. "$ref": "#/components/schemas/InvalidRequestError"
  9038. }
  9039. }
  9040. }
  9041. },
  9042. "401": {
  9043. "description": "UnauthorizedError",
  9044. "content": {
  9045. "application/json": {
  9046. "schema": {
  9047. "$ref": "#/components/schemas/UnauthorizedError"
  9048. }
  9049. }
  9050. }
  9051. },
  9052. "404": {
  9053. "description": "SessionNotFoundError",
  9054. "content": {
  9055. "application/json": {
  9056. "schema": {
  9057. "anyOf": [
  9058. {
  9059. "$ref": "#/components/schemas/SessionNotFoundError"
  9060. },
  9061. {
  9062. "$ref": "#/components/schemas/SessionNotFoundError"
  9063. }
  9064. ]
  9065. }
  9066. }
  9067. }
  9068. }
  9069. },
  9070. "description": "Retrieve pending question requests owned by a session.",
  9071. "summary": "List session question requests"
  9072. }
  9073. },
  9074. "/api/session/{sessionID}/question/{requestID}/reply": {
  9075. "post": {
  9076. "tags": [
  9077. "question"
  9078. ],
  9079. "operationId": "v2.session.question.reply",
  9080. "parameters": [
  9081. {
  9082. "name": "sessionID",
  9083. "in": "path",
  9084. "schema": {
  9085. "type": "string",
  9086. "allOf": [
  9087. {
  9088. "pattern": "^ses"
  9089. }
  9090. ]
  9091. },
  9092. "required": true
  9093. },
  9094. {
  9095. "name": "requestID",
  9096. "in": "path",
  9097. "schema": {
  9098. "type": "string",
  9099. "allOf": [
  9100. {
  9101. "pattern": "^que"
  9102. }
  9103. ]
  9104. },
  9105. "required": true
  9106. }
  9107. ],
  9108. "security": [],
  9109. "responses": {
  9110. "204": {
  9111. "description": "<No Content>"
  9112. },
  9113. "400": {
  9114. "description": "InvalidRequestError",
  9115. "content": {
  9116. "application/json": {
  9117. "schema": {
  9118. "$ref": "#/components/schemas/InvalidRequestError"
  9119. }
  9120. }
  9121. }
  9122. },
  9123. "401": {
  9124. "description": "UnauthorizedError",
  9125. "content": {
  9126. "application/json": {
  9127. "schema": {
  9128. "$ref": "#/components/schemas/UnauthorizedError"
  9129. }
  9130. }
  9131. }
  9132. },
  9133. "404": {
  9134. "description": "SessionNotFoundError | QuestionNotFoundError",
  9135. "content": {
  9136. "application/json": {
  9137. "schema": {
  9138. "anyOf": [
  9139. {
  9140. "$ref": "#/components/schemas/QuestionNotFoundError"
  9141. },
  9142. {
  9143. "$ref": "#/components/schemas/SessionNotFoundError"
  9144. },
  9145. {
  9146. "$ref": "#/components/schemas/SessionNotFoundError"
  9147. }
  9148. ]
  9149. }
  9150. }
  9151. }
  9152. }
  9153. },
  9154. "description": "Answer a pending question request owned by a session.",
  9155. "summary": "Reply to pending question request",
  9156. "requestBody": {
  9157. "content": {
  9158. "application/json": {
  9159. "schema": {
  9160. "$ref": "#/components/schemas/QuestionV2.Reply"
  9161. }
  9162. }
  9163. },
  9164. "required": true
  9165. }
  9166. }
  9167. },
  9168. "/api/session/{sessionID}/question/{requestID}/reject": {
  9169. "post": {
  9170. "tags": [
  9171. "question"
  9172. ],
  9173. "operationId": "v2.session.question.reject",
  9174. "parameters": [
  9175. {
  9176. "name": "sessionID",
  9177. "in": "path",
  9178. "schema": {
  9179. "type": "string",
  9180. "allOf": [
  9181. {
  9182. "pattern": "^ses"
  9183. }
  9184. ]
  9185. },
  9186. "required": true
  9187. },
  9188. {
  9189. "name": "requestID",
  9190. "in": "path",
  9191. "schema": {
  9192. "type": "string",
  9193. "allOf": [
  9194. {
  9195. "pattern": "^que"
  9196. }
  9197. ]
  9198. },
  9199. "required": true
  9200. }
  9201. ],
  9202. "security": [],
  9203. "responses": {
  9204. "204": {
  9205. "description": "<No Content>"
  9206. },
  9207. "400": {
  9208. "description": "InvalidRequestError",
  9209. "content": {
  9210. "application/json": {
  9211. "schema": {
  9212. "$ref": "#/components/schemas/InvalidRequestError"
  9213. }
  9214. }
  9215. }
  9216. },
  9217. "401": {
  9218. "description": "UnauthorizedError",
  9219. "content": {
  9220. "application/json": {
  9221. "schema": {
  9222. "$ref": "#/components/schemas/UnauthorizedError"
  9223. }
  9224. }
  9225. }
  9226. },
  9227. "404": {
  9228. "description": "SessionNotFoundError | QuestionNotFoundError",
  9229. "content": {
  9230. "application/json": {
  9231. "schema": {
  9232. "anyOf": [
  9233. {
  9234. "$ref": "#/components/schemas/QuestionNotFoundError"
  9235. },
  9236. {
  9237. "$ref": "#/components/schemas/SessionNotFoundError"
  9238. },
  9239. {
  9240. "$ref": "#/components/schemas/SessionNotFoundError"
  9241. }
  9242. ]
  9243. }
  9244. }
  9245. }
  9246. }
  9247. },
  9248. "description": "Reject a pending question request owned by a session.",
  9249. "summary": "Reject pending question request"
  9250. }
  9251. },
  9252. "/api/reference": {
  9253. "get": {
  9254. "tags": [
  9255. "reference"
  9256. ],
  9257. "operationId": "v2.reference.list",
  9258. "parameters": [
  9259. {
  9260. "name": "location",
  9261. "in": "query",
  9262. "schema": {
  9263. "anyOf": [
  9264. {
  9265. "type": "object",
  9266. "properties": {
  9267. "directory": {
  9268. "anyOf": [
  9269. {
  9270. "type": "string"
  9271. },
  9272. {
  9273. "type": "null"
  9274. }
  9275. ]
  9276. },
  9277. "workspace": {
  9278. "anyOf": [
  9279. {
  9280. "type": "string"
  9281. },
  9282. {
  9283. "type": "null"
  9284. }
  9285. ]
  9286. }
  9287. },
  9288. "additionalProperties": false
  9289. },
  9290. {
  9291. "type": "null"
  9292. }
  9293. ]
  9294. },
  9295. "required": false,
  9296. "style": "deepObject",
  9297. "explode": true
  9298. }
  9299. ],
  9300. "security": [],
  9301. "responses": {
  9302. "200": {
  9303. "description": "Success",
  9304. "content": {
  9305. "application/json": {
  9306. "schema": {
  9307. "type": "object",
  9308. "properties": {
  9309. "location": {
  9310. "$ref": "#/components/schemas/Location.Info"
  9311. },
  9312. "data": {
  9313. "type": "array",
  9314. "items": {
  9315. "$ref": "#/components/schemas/Reference.Info"
  9316. }
  9317. }
  9318. },
  9319. "required": [
  9320. "location",
  9321. "data"
  9322. ],
  9323. "additionalProperties": false
  9324. }
  9325. }
  9326. }
  9327. },
  9328. "400": {
  9329. "description": "InvalidRequestError",
  9330. "content": {
  9331. "application/json": {
  9332. "schema": {
  9333. "$ref": "#/components/schemas/InvalidRequestError"
  9334. }
  9335. }
  9336. }
  9337. },
  9338. "401": {
  9339. "description": "UnauthorizedError",
  9340. "content": {
  9341. "application/json": {
  9342. "schema": {
  9343. "$ref": "#/components/schemas/UnauthorizedError"
  9344. }
  9345. }
  9346. }
  9347. }
  9348. },
  9349. "description": "List references available in the requested location.",
  9350. "summary": "List references"
  9351. }
  9352. },
  9353. "/experimental/project/{projectID}/copy": {
  9354. "post": {
  9355. "tags": [
  9356. "projectCopy"
  9357. ],
  9358. "operationId": "v2.projectCopy.create",
  9359. "parameters": [
  9360. {
  9361. "name": "projectID",
  9362. "in": "path",
  9363. "schema": {
  9364. "type": "string"
  9365. },
  9366. "required": true
  9367. },
  9368. {
  9369. "name": "location",
  9370. "in": "query",
  9371. "schema": {
  9372. "anyOf": [
  9373. {
  9374. "type": "object",
  9375. "properties": {
  9376. "directory": {
  9377. "anyOf": [
  9378. {
  9379. "type": "string"
  9380. },
  9381. {
  9382. "type": "null"
  9383. }
  9384. ]
  9385. },
  9386. "workspace": {
  9387. "anyOf": [
  9388. {
  9389. "type": "string"
  9390. },
  9391. {
  9392. "type": "null"
  9393. }
  9394. ]
  9395. }
  9396. },
  9397. "additionalProperties": false
  9398. },
  9399. {
  9400. "type": "null"
  9401. }
  9402. ]
  9403. },
  9404. "required": false,
  9405. "style": "deepObject",
  9406. "explode": true
  9407. }
  9408. ],
  9409. "security": [],
  9410. "responses": {
  9411. "200": {
  9412. "description": "ProjectCopy.Copy",
  9413. "content": {
  9414. "application/json": {
  9415. "schema": {
  9416. "$ref": "#/components/schemas/ProjectCopy.Copy"
  9417. }
  9418. }
  9419. }
  9420. },
  9421. "400": {
  9422. "description": "ProjectCopyError | InvalidRequestError",
  9423. "content": {
  9424. "application/json": {
  9425. "schema": {
  9426. "anyOf": [
  9427. {
  9428. "$ref": "#/components/schemas/ProjectCopyError"
  9429. },
  9430. {
  9431. "$ref": "#/components/schemas/InvalidRequestError"
  9432. }
  9433. ]
  9434. }
  9435. }
  9436. }
  9437. },
  9438. "401": {
  9439. "description": "UnauthorizedError",
  9440. "content": {
  9441. "application/json": {
  9442. "schema": {
  9443. "$ref": "#/components/schemas/UnauthorizedError"
  9444. }
  9445. }
  9446. }
  9447. }
  9448. },
  9449. "requestBody": {
  9450. "content": {
  9451. "application/json": {
  9452. "schema": {
  9453. "type": "object",
  9454. "properties": {
  9455. "strategy": {
  9456. "type": "string"
  9457. },
  9458. "directory": {
  9459. "type": "string"
  9460. },
  9461. "name": {
  9462. "type": "string"
  9463. }
  9464. },
  9465. "required": [
  9466. "strategy",
  9467. "directory"
  9468. ],
  9469. "additionalProperties": false
  9470. }
  9471. }
  9472. },
  9473. "required": true
  9474. }
  9475. },
  9476. "delete": {
  9477. "tags": [
  9478. "projectCopy"
  9479. ],
  9480. "operationId": "v2.projectCopy.remove",
  9481. "parameters": [
  9482. {
  9483. "name": "projectID",
  9484. "in": "path",
  9485. "schema": {
  9486. "type": "string"
  9487. },
  9488. "required": true
  9489. },
  9490. {
  9491. "name": "location",
  9492. "in": "query",
  9493. "schema": {
  9494. "anyOf": [
  9495. {
  9496. "type": "object",
  9497. "properties": {
  9498. "directory": {
  9499. "anyOf": [
  9500. {
  9501. "type": "string"
  9502. },
  9503. {
  9504. "type": "null"
  9505. }
  9506. ]
  9507. },
  9508. "workspace": {
  9509. "anyOf": [
  9510. {
  9511. "type": "string"
  9512. },
  9513. {
  9514. "type": "null"
  9515. }
  9516. ]
  9517. }
  9518. },
  9519. "additionalProperties": false
  9520. },
  9521. {
  9522. "type": "null"
  9523. }
  9524. ]
  9525. },
  9526. "required": false,
  9527. "style": "deepObject",
  9528. "explode": true
  9529. }
  9530. ],
  9531. "security": [],
  9532. "responses": {
  9533. "204": {
  9534. "description": "<No Content>"
  9535. },
  9536. "400": {
  9537. "description": "ProjectCopyError | InvalidRequestError",
  9538. "content": {
  9539. "application/json": {
  9540. "schema": {
  9541. "anyOf": [
  9542. {
  9543. "$ref": "#/components/schemas/ProjectCopyError"
  9544. },
  9545. {
  9546. "$ref": "#/components/schemas/InvalidRequestError"
  9547. }
  9548. ]
  9549. }
  9550. }
  9551. }
  9552. },
  9553. "401": {
  9554. "description": "UnauthorizedError",
  9555. "content": {
  9556. "application/json": {
  9557. "schema": {
  9558. "$ref": "#/components/schemas/UnauthorizedError"
  9559. }
  9560. }
  9561. }
  9562. }
  9563. },
  9564. "requestBody": {
  9565. "content": {
  9566. "application/json": {
  9567. "schema": {
  9568. "type": "object",
  9569. "properties": {
  9570. "directory": {
  9571. "type": "string"
  9572. },
  9573. "force": {
  9574. "type": "boolean"
  9575. }
  9576. },
  9577. "required": [
  9578. "directory",
  9579. "force"
  9580. ],
  9581. "additionalProperties": false
  9582. }
  9583. }
  9584. },
  9585. "required": true
  9586. }
  9587. }
  9588. },
  9589. "/experimental/project/{projectID}/copy/refresh": {
  9590. "post": {
  9591. "tags": [
  9592. "projectCopy"
  9593. ],
  9594. "operationId": "v2.projectCopy.refresh",
  9595. "parameters": [
  9596. {
  9597. "name": "projectID",
  9598. "in": "path",
  9599. "schema": {
  9600. "type": "string"
  9601. },
  9602. "required": true
  9603. },
  9604. {
  9605. "name": "location",
  9606. "in": "query",
  9607. "schema": {
  9608. "anyOf": [
  9609. {
  9610. "type": "object",
  9611. "properties": {
  9612. "directory": {
  9613. "anyOf": [
  9614. {
  9615. "type": "string"
  9616. },
  9617. {
  9618. "type": "null"
  9619. }
  9620. ]
  9621. },
  9622. "workspace": {
  9623. "anyOf": [
  9624. {
  9625. "type": "string"
  9626. },
  9627. {
  9628. "type": "null"
  9629. }
  9630. ]
  9631. }
  9632. },
  9633. "additionalProperties": false
  9634. },
  9635. {
  9636. "type": "null"
  9637. }
  9638. ]
  9639. },
  9640. "required": false,
  9641. "style": "deepObject",
  9642. "explode": true
  9643. }
  9644. ],
  9645. "security": [],
  9646. "responses": {
  9647. "204": {
  9648. "description": "<No Content>"
  9649. },
  9650. "400": {
  9651. "description": "ProjectCopyError | InvalidRequestError",
  9652. "content": {
  9653. "application/json": {
  9654. "schema": {
  9655. "anyOf": [
  9656. {
  9657. "$ref": "#/components/schemas/ProjectCopyError"
  9658. },
  9659. {
  9660. "$ref": "#/components/schemas/InvalidRequestError"
  9661. }
  9662. ]
  9663. }
  9664. }
  9665. }
  9666. },
  9667. "401": {
  9668. "description": "UnauthorizedError",
  9669. "content": {
  9670. "application/json": {
  9671. "schema": {
  9672. "$ref": "#/components/schemas/UnauthorizedError"
  9673. }
  9674. }
  9675. }
  9676. }
  9677. }
  9678. }
  9679. },
  9680. "/api/vcs/status": {
  9681. "get": {
  9682. "tags": [
  9683. "vcs"
  9684. ],
  9685. "operationId": "v2.vcs.status",
  9686. "parameters": [
  9687. {
  9688. "name": "location",
  9689. "in": "query",
  9690. "schema": {
  9691. "anyOf": [
  9692. {
  9693. "type": "object",
  9694. "properties": {
  9695. "directory": {
  9696. "anyOf": [
  9697. {
  9698. "type": "string"
  9699. },
  9700. {
  9701. "type": "null"
  9702. }
  9703. ]
  9704. },
  9705. "workspace": {
  9706. "anyOf": [
  9707. {
  9708. "type": "string"
  9709. },
  9710. {
  9711. "type": "null"
  9712. }
  9713. ]
  9714. }
  9715. },
  9716. "additionalProperties": false
  9717. },
  9718. {
  9719. "type": "null"
  9720. }
  9721. ]
  9722. },
  9723. "required": false,
  9724. "style": "deepObject",
  9725. "explode": true
  9726. }
  9727. ],
  9728. "security": [],
  9729. "responses": {
  9730. "200": {
  9731. "description": "Success",
  9732. "content": {
  9733. "application/json": {
  9734. "schema": {
  9735. "type": "object",
  9736. "properties": {
  9737. "location": {
  9738. "$ref": "#/components/schemas/Location.Info"
  9739. },
  9740. "data": {
  9741. "type": "array",
  9742. "items": {
  9743. "$ref": "#/components/schemas/Vcs.FileStatus"
  9744. }
  9745. }
  9746. },
  9747. "required": [
  9748. "location",
  9749. "data"
  9750. ],
  9751. "additionalProperties": false
  9752. }
  9753. }
  9754. }
  9755. },
  9756. "400": {
  9757. "description": "InvalidRequestError",
  9758. "content": {
  9759. "application/json": {
  9760. "schema": {
  9761. "$ref": "#/components/schemas/InvalidRequestError"
  9762. }
  9763. }
  9764. }
  9765. },
  9766. "401": {
  9767. "description": "UnauthorizedError",
  9768. "content": {
  9769. "application/json": {
  9770. "schema": {
  9771. "$ref": "#/components/schemas/UnauthorizedError"
  9772. }
  9773. }
  9774. }
  9775. }
  9776. },
  9777. "description": "List uncommitted working-copy changes relative to the requested location.",
  9778. "summary": "VCS status"
  9779. }
  9780. },
  9781. "/api/vcs/diff": {
  9782. "get": {
  9783. "tags": [
  9784. "vcs"
  9785. ],
  9786. "operationId": "v2.vcs.diff",
  9787. "parameters": [
  9788. {
  9789. "name": "location",
  9790. "in": "query",
  9791. "schema": {
  9792. "anyOf": [
  9793. {
  9794. "type": "object",
  9795. "properties": {
  9796. "directory": {
  9797. "anyOf": [
  9798. {
  9799. "type": "string"
  9800. },
  9801. {
  9802. "type": "null"
  9803. }
  9804. ]
  9805. },
  9806. "workspace": {
  9807. "anyOf": [
  9808. {
  9809. "type": "string"
  9810. },
  9811. {
  9812. "type": "null"
  9813. }
  9814. ]
  9815. }
  9816. },
  9817. "additionalProperties": false
  9818. },
  9819. {
  9820. "type": "null"
  9821. }
  9822. ]
  9823. },
  9824. "required": false,
  9825. "style": "deepObject",
  9826. "explode": true
  9827. },
  9828. {
  9829. "name": "mode",
  9830. "in": "query",
  9831. "schema": {
  9832. "$ref": "#/components/schemas/Vcs.Mode"
  9833. },
  9834. "required": true
  9835. },
  9836. {
  9837. "name": "context",
  9838. "in": "query",
  9839. "schema": {
  9840. "anyOf": [
  9841. {
  9842. "type": "string"
  9843. },
  9844. {
  9845. "type": "null"
  9846. }
  9847. ]
  9848. },
  9849. "required": false
  9850. }
  9851. ],
  9852. "security": [],
  9853. "responses": {
  9854. "200": {
  9855. "description": "Success",
  9856. "content": {
  9857. "application/json": {
  9858. "schema": {
  9859. "type": "object",
  9860. "properties": {
  9861. "location": {
  9862. "$ref": "#/components/schemas/Location.Info"
  9863. },
  9864. "data": {
  9865. "type": "array",
  9866. "items": {
  9867. "$ref": "#/components/schemas/SnapshotFileDiff"
  9868. }
  9869. }
  9870. },
  9871. "required": [
  9872. "location",
  9873. "data"
  9874. ],
  9875. "additionalProperties": false
  9876. }
  9877. }
  9878. }
  9879. },
  9880. "400": {
  9881. "description": "InvalidRequestError",
  9882. "content": {
  9883. "application/json": {
  9884. "schema": {
  9885. "$ref": "#/components/schemas/InvalidRequestError"
  9886. }
  9887. }
  9888. }
  9889. },
  9890. "401": {
  9891. "description": "UnauthorizedError",
  9892. "content": {
  9893. "application/json": {
  9894. "schema": {
  9895. "$ref": "#/components/schemas/UnauthorizedError"
  9896. }
  9897. }
  9898. }
  9899. }
  9900. },
  9901. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  9902. "summary": "VCS diff"
  9903. }
  9904. },
  9905. "/api/debug/location": {
  9906. "get": {
  9907. "tags": [
  9908. "debug"
  9909. ],
  9910. "operationId": "v2.debug.location",
  9911. "parameters": [],
  9912. "security": [],
  9913. "responses": {
  9914. "200": {
  9915. "description": "Success",
  9916. "content": {
  9917. "application/json": {
  9918. "schema": {
  9919. "type": "array",
  9920. "items": {
  9921. "$ref": "#/components/schemas/Location.Ref"
  9922. }
  9923. }
  9924. }
  9925. }
  9926. },
  9927. "400": {
  9928. "description": "InvalidRequestError",
  9929. "content": {
  9930. "application/json": {
  9931. "schema": {
  9932. "$ref": "#/components/schemas/InvalidRequestError"
  9933. }
  9934. }
  9935. }
  9936. },
  9937. "401": {
  9938. "description": "UnauthorizedError",
  9939. "content": {
  9940. "application/json": {
  9941. "schema": {
  9942. "$ref": "#/components/schemas/UnauthorizedError"
  9943. }
  9944. }
  9945. }
  9946. }
  9947. },
  9948. "description": "List locations currently loaded by the server.",
  9949. "summary": "List loaded locations"
  9950. }
  9951. }
  9952. },
  9953. "components": {
  9954. "schemas": {
  9955. "UnauthorizedError": {
  9956. "type": "object",
  9957. "properties": {
  9958. "_tag": {
  9959. "type": "string",
  9960. "enum": [
  9961. "UnauthorizedError"
  9962. ]
  9963. },
  9964. "message": {
  9965. "type": "string"
  9966. }
  9967. },
  9968. "required": [
  9969. "_tag",
  9970. "message"
  9971. ],
  9972. "additionalProperties": false
  9973. },
  9974. "InvalidRequestError": {
  9975. "type": "object",
  9976. "properties": {
  9977. "_tag": {
  9978. "type": "string",
  9979. "enum": [
  9980. "InvalidRequestError"
  9981. ]
  9982. },
  9983. "message": {
  9984. "type": "string"
  9985. },
  9986. "kind": {
  9987. "anyOf": [
  9988. {
  9989. "type": "string"
  9990. },
  9991. {
  9992. "type": "null"
  9993. }
  9994. ]
  9995. },
  9996. "field": {
  9997. "anyOf": [
  9998. {
  9999. "type": "string"
  10000. },
  10001. {
  10002. "type": "null"
  10003. }
  10004. ]
  10005. }
  10006. },
  10007. "required": [
  10008. "_tag",
  10009. "message"
  10010. ],
  10011. "additionalProperties": false
  10012. },
  10013. "Location.Info": {
  10014. "type": "object",
  10015. "properties": {
  10016. "directory": {
  10017. "type": "string"
  10018. },
  10019. "workspaceID": {
  10020. "type": "string",
  10021. "allOf": [
  10022. {
  10023. "pattern": "^wrk"
  10024. }
  10025. ]
  10026. },
  10027. "project": {
  10028. "type": "object",
  10029. "properties": {
  10030. "id": {
  10031. "type": "string"
  10032. },
  10033. "directory": {
  10034. "type": "string"
  10035. }
  10036. },
  10037. "required": [
  10038. "id",
  10039. "directory"
  10040. ],
  10041. "additionalProperties": false
  10042. }
  10043. },
  10044. "required": [
  10045. "directory",
  10046. "project"
  10047. ],
  10048. "additionalProperties": false
  10049. },
  10050. "Model.Ref": {
  10051. "type": "object",
  10052. "properties": {
  10053. "id": {
  10054. "type": "string"
  10055. },
  10056. "providerID": {
  10057. "type": "string"
  10058. },
  10059. "variant": {
  10060. "type": "string"
  10061. }
  10062. },
  10063. "required": [
  10064. "id",
  10065. "providerID"
  10066. ],
  10067. "additionalProperties": false
  10068. },
  10069. "Provider.Settings": {
  10070. "type": "object"
  10071. },
  10072. "Provider.Request": {
  10073. "type": "object",
  10074. "properties": {
  10075. "settings": {
  10076. "$ref": "#/components/schemas/Provider.Settings"
  10077. },
  10078. "headers": {
  10079. "type": "object",
  10080. "additionalProperties": {
  10081. "type": "string"
  10082. }
  10083. },
  10084. "body": {
  10085. "type": "object"
  10086. }
  10087. },
  10088. "required": [
  10089. "settings",
  10090. "headers",
  10091. "body"
  10092. ],
  10093. "additionalProperties": false
  10094. },
  10095. "Agent.Color": {
  10096. "anyOf": [
  10097. {
  10098. "type": "string",
  10099. "allOf": [
  10100. {
  10101. "pattern": "^#[0-9a-fA-F]{6}$"
  10102. }
  10103. ]
  10104. },
  10105. {
  10106. "type": "string",
  10107. "enum": [
  10108. "primary",
  10109. "secondary",
  10110. "accent",
  10111. "success",
  10112. "warning",
  10113. "error",
  10114. "info"
  10115. ]
  10116. }
  10117. ]
  10118. },
  10119. "PermissionV2.Effect": {
  10120. "type": "string",
  10121. "enum": [
  10122. "allow",
  10123. "deny",
  10124. "ask"
  10125. ]
  10126. },
  10127. "PermissionV2.Rule": {
  10128. "type": "object",
  10129. "properties": {
  10130. "action": {
  10131. "type": "string"
  10132. },
  10133. "resource": {
  10134. "type": "string"
  10135. },
  10136. "effect": {
  10137. "$ref": "#/components/schemas/PermissionV2.Effect"
  10138. }
  10139. },
  10140. "required": [
  10141. "action",
  10142. "resource",
  10143. "effect"
  10144. ],
  10145. "additionalProperties": false
  10146. },
  10147. "PermissionV2.Ruleset": {
  10148. "type": "array",
  10149. "items": {
  10150. "$ref": "#/components/schemas/PermissionV2.Rule"
  10151. }
  10152. },
  10153. "AgentV2.Info": {
  10154. "type": "object",
  10155. "properties": {
  10156. "id": {
  10157. "type": "string"
  10158. },
  10159. "model": {
  10160. "$ref": "#/components/schemas/Model.Ref"
  10161. },
  10162. "request": {
  10163. "$ref": "#/components/schemas/Provider.Request"
  10164. },
  10165. "system": {
  10166. "type": "string"
  10167. },
  10168. "description": {
  10169. "type": "string"
  10170. },
  10171. "mode": {
  10172. "type": "string",
  10173. "enum": [
  10174. "subagent",
  10175. "primary",
  10176. "all"
  10177. ]
  10178. },
  10179. "hidden": {
  10180. "type": "boolean"
  10181. },
  10182. "color": {
  10183. "$ref": "#/components/schemas/Agent.Color"
  10184. },
  10185. "steps": {
  10186. "type": "integer",
  10187. "allOf": [
  10188. {
  10189. "exclusiveMinimum": 0
  10190. }
  10191. ]
  10192. },
  10193. "permissions": {
  10194. "$ref": "#/components/schemas/PermissionV2.Ruleset"
  10195. }
  10196. },
  10197. "required": [
  10198. "id",
  10199. "request",
  10200. "mode",
  10201. "hidden",
  10202. "permissions"
  10203. ],
  10204. "additionalProperties": false
  10205. },
  10206. "Plugin.Info": {
  10207. "type": "object",
  10208. "properties": {
  10209. "id": {
  10210. "type": "string"
  10211. }
  10212. },
  10213. "required": [
  10214. "id"
  10215. ],
  10216. "additionalProperties": false
  10217. },
  10218. "Location.Ref": {
  10219. "type": "object",
  10220. "properties": {
  10221. "directory": {
  10222. "type": "string"
  10223. },
  10224. "workspaceID": {
  10225. "type": "string",
  10226. "allOf": [
  10227. {
  10228. "pattern": "^wrk"
  10229. }
  10230. ]
  10231. }
  10232. },
  10233. "required": [
  10234. "directory"
  10235. ],
  10236. "additionalProperties": false
  10237. },
  10238. "File.Diff": {
  10239. "type": "object",
  10240. "properties": {
  10241. "path": {
  10242. "type": "string"
  10243. },
  10244. "status": {
  10245. "type": "string",
  10246. "enum": [
  10247. "added",
  10248. "modified",
  10249. "deleted"
  10250. ]
  10251. },
  10252. "additions": {
  10253. "type": "integer",
  10254. "allOf": [
  10255. {
  10256. "minimum": 0
  10257. }
  10258. ]
  10259. },
  10260. "deletions": {
  10261. "type": "integer",
  10262. "allOf": [
  10263. {
  10264. "minimum": 0
  10265. }
  10266. ]
  10267. },
  10268. "patch": {
  10269. "type": "string"
  10270. }
  10271. },
  10272. "required": [
  10273. "path",
  10274. "status",
  10275. "additions",
  10276. "deletions",
  10277. "patch"
  10278. ],
  10279. "additionalProperties": false
  10280. },
  10281. "Revert.State": {
  10282. "type": "object",
  10283. "properties": {
  10284. "messageID": {
  10285. "type": "string",
  10286. "allOf": [
  10287. {
  10288. "pattern": "^msg_"
  10289. }
  10290. ]
  10291. },
  10292. "partID": {
  10293. "type": "string"
  10294. },
  10295. "snapshot": {
  10296. "type": "string"
  10297. },
  10298. "diff": {
  10299. "type": "string"
  10300. },
  10301. "files": {
  10302. "type": "array",
  10303. "items": {
  10304. "$ref": "#/components/schemas/File.Diff"
  10305. }
  10306. }
  10307. },
  10308. "required": [
  10309. "messageID"
  10310. ],
  10311. "additionalProperties": false
  10312. },
  10313. "SessionV2.Info": {
  10314. "type": "object",
  10315. "properties": {
  10316. "id": {
  10317. "type": "string",
  10318. "allOf": [
  10319. {
  10320. "pattern": "^ses"
  10321. }
  10322. ]
  10323. },
  10324. "parentID": {
  10325. "type": "string",
  10326. "allOf": [
  10327. {
  10328. "pattern": "^ses"
  10329. }
  10330. ]
  10331. },
  10332. "projectID": {
  10333. "type": "string"
  10334. },
  10335. "agent": {
  10336. "type": "string"
  10337. },
  10338. "model": {
  10339. "$ref": "#/components/schemas/Model.Ref"
  10340. },
  10341. "cost": {
  10342. "type": "number"
  10343. },
  10344. "tokens": {
  10345. "type": "object",
  10346. "properties": {
  10347. "input": {
  10348. "type": "number"
  10349. },
  10350. "output": {
  10351. "type": "number"
  10352. },
  10353. "reasoning": {
  10354. "type": "number"
  10355. },
  10356. "cache": {
  10357. "type": "object",
  10358. "properties": {
  10359. "read": {
  10360. "type": "number"
  10361. },
  10362. "write": {
  10363. "type": "number"
  10364. }
  10365. },
  10366. "required": [
  10367. "read",
  10368. "write"
  10369. ],
  10370. "additionalProperties": false
  10371. }
  10372. },
  10373. "required": [
  10374. "input",
  10375. "output",
  10376. "reasoning",
  10377. "cache"
  10378. ],
  10379. "additionalProperties": false
  10380. },
  10381. "time": {
  10382. "type": "object",
  10383. "properties": {
  10384. "created": {
  10385. "type": "number"
  10386. },
  10387. "updated": {
  10388. "type": "number"
  10389. },
  10390. "archived": {
  10391. "type": "number"
  10392. }
  10393. },
  10394. "required": [
  10395. "created",
  10396. "updated"
  10397. ],
  10398. "additionalProperties": false
  10399. },
  10400. "title": {
  10401. "type": "string"
  10402. },
  10403. "location": {
  10404. "$ref": "#/components/schemas/Location.Ref"
  10405. },
  10406. "subpath": {
  10407. "type": "string"
  10408. },
  10409. "revert": {
  10410. "$ref": "#/components/schemas/Revert.State"
  10411. }
  10412. },
  10413. "required": [
  10414. "id",
  10415. "projectID",
  10416. "cost",
  10417. "tokens",
  10418. "time",
  10419. "title",
  10420. "location"
  10421. ],
  10422. "additionalProperties": false
  10423. },
  10424. "SessionWatermarks": {
  10425. "type": "object",
  10426. "patternProperties": {
  10427. "^ses": {
  10428. "type": "integer",
  10429. "allOf": [
  10430. {
  10431. "minimum": 0
  10432. }
  10433. ]
  10434. }
  10435. },
  10436. "description": "Durable log seq each session's snapshot was computed at. Attach a live log read after the watermark to compose fetch and stream gap-free; apply a snapshot only where its watermark is at or beyond already-applied events. Sessions without durable events are absent."
  10437. },
  10438. "SessionsResponse": {
  10439. "type": "object",
  10440. "properties": {
  10441. "data": {
  10442. "type": "array",
  10443. "items": {
  10444. "$ref": "#/components/schemas/SessionV2.Info"
  10445. }
  10446. },
  10447. "watermarks": {
  10448. "$ref": "#/components/schemas/SessionWatermarks"
  10449. },
  10450. "cursor": {
  10451. "type": "object",
  10452. "properties": {
  10453. "previous": {
  10454. "anyOf": [
  10455. {
  10456. "type": "string"
  10457. },
  10458. {
  10459. "type": "null"
  10460. }
  10461. ]
  10462. },
  10463. "next": {
  10464. "anyOf": [
  10465. {
  10466. "type": "string"
  10467. },
  10468. {
  10469. "type": "null"
  10470. }
  10471. ]
  10472. }
  10473. },
  10474. "additionalProperties": false
  10475. }
  10476. },
  10477. "required": [
  10478. "data",
  10479. "watermarks",
  10480. "cursor"
  10481. ],
  10482. "additionalProperties": false
  10483. },
  10484. "InvalidCursorError": {
  10485. "type": "object",
  10486. "properties": {
  10487. "_tag": {
  10488. "type": "string",
  10489. "enum": [
  10490. "InvalidCursorError"
  10491. ]
  10492. },
  10493. "message": {
  10494. "type": "string"
  10495. }
  10496. },
  10497. "required": [
  10498. "_tag",
  10499. "message"
  10500. ],
  10501. "additionalProperties": false
  10502. },
  10503. "InvalidRequestError1": {
  10504. "type": "object",
  10505. "properties": {
  10506. "_tag": {
  10507. "type": "string",
  10508. "enum": [
  10509. "InvalidRequestError"
  10510. ]
  10511. },
  10512. "message": {
  10513. "type": "string"
  10514. },
  10515. "kind": {
  10516. "anyOf": [
  10517. {
  10518. "type": "string"
  10519. },
  10520. {
  10521. "type": "null"
  10522. }
  10523. ]
  10524. },
  10525. "field": {
  10526. "anyOf": [
  10527. {
  10528. "type": "string"
  10529. },
  10530. {
  10531. "type": "null"
  10532. }
  10533. ]
  10534. }
  10535. },
  10536. "required": [
  10537. "_tag",
  10538. "message"
  10539. ],
  10540. "additionalProperties": false
  10541. },
  10542. "SessionActive": {
  10543. "type": "object",
  10544. "properties": {
  10545. "type": {
  10546. "type": "string",
  10547. "enum": [
  10548. "running"
  10549. ]
  10550. }
  10551. },
  10552. "required": [
  10553. "type"
  10554. ],
  10555. "additionalProperties": false
  10556. },
  10557. "SessionNotFoundError": {
  10558. "type": "object",
  10559. "properties": {
  10560. "_tag": {
  10561. "type": "string",
  10562. "enum": [
  10563. "SessionNotFoundError"
  10564. ]
  10565. },
  10566. "sessionID": {
  10567. "type": "string"
  10568. },
  10569. "message": {
  10570. "type": "string"
  10571. }
  10572. },
  10573. "required": [
  10574. "_tag",
  10575. "sessionID",
  10576. "message"
  10577. ],
  10578. "additionalProperties": false
  10579. },
  10580. "MessageNotFoundError": {
  10581. "type": "object",
  10582. "properties": {
  10583. "_tag": {
  10584. "type": "string",
  10585. "enum": [
  10586. "MessageNotFoundError"
  10587. ]
  10588. },
  10589. "sessionID": {
  10590. "type": "string"
  10591. },
  10592. "messageID": {
  10593. "type": "string"
  10594. },
  10595. "message": {
  10596. "type": "string"
  10597. }
  10598. },
  10599. "required": [
  10600. "_tag",
  10601. "sessionID",
  10602. "messageID",
  10603. "message"
  10604. ],
  10605. "additionalProperties": false
  10606. },
  10607. "Prompt.Source": {
  10608. "type": "object",
  10609. "properties": {
  10610. "start": {
  10611. "type": "number"
  10612. },
  10613. "end": {
  10614. "type": "number"
  10615. },
  10616. "text": {
  10617. "type": "string"
  10618. }
  10619. },
  10620. "required": [
  10621. "start",
  10622. "end",
  10623. "text"
  10624. ],
  10625. "additionalProperties": false
  10626. },
  10627. "PromptInput.FileAttachment": {
  10628. "type": "object",
  10629. "properties": {
  10630. "uri": {
  10631. "type": "string"
  10632. },
  10633. "name": {
  10634. "type": "string"
  10635. },
  10636. "description": {
  10637. "type": "string"
  10638. },
  10639. "source": {
  10640. "$ref": "#/components/schemas/Prompt.Source"
  10641. }
  10642. },
  10643. "required": [
  10644. "uri"
  10645. ],
  10646. "additionalProperties": false
  10647. },
  10648. "Prompt.AgentAttachment": {
  10649. "type": "object",
  10650. "properties": {
  10651. "name": {
  10652. "type": "string"
  10653. },
  10654. "source": {
  10655. "$ref": "#/components/schemas/Prompt.Source"
  10656. }
  10657. },
  10658. "required": [
  10659. "name"
  10660. ],
  10661. "additionalProperties": false
  10662. },
  10663. "PromptInput": {
  10664. "type": "object",
  10665. "properties": {
  10666. "text": {
  10667. "type": "string"
  10668. },
  10669. "files": {
  10670. "type": "array",
  10671. "items": {
  10672. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  10673. }
  10674. },
  10675. "agents": {
  10676. "type": "array",
  10677. "items": {
  10678. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  10679. }
  10680. }
  10681. },
  10682. "required": [
  10683. "text"
  10684. ],
  10685. "additionalProperties": false
  10686. },
  10687. "Prompt.FileAttachment": {
  10688. "type": "object",
  10689. "properties": {
  10690. "uri": {
  10691. "type": "string"
  10692. },
  10693. "mime": {
  10694. "type": "string"
  10695. },
  10696. "name": {
  10697. "type": "string"
  10698. },
  10699. "description": {
  10700. "type": "string"
  10701. },
  10702. "source": {
  10703. "$ref": "#/components/schemas/Prompt.Source"
  10704. }
  10705. },
  10706. "required": [
  10707. "uri",
  10708. "mime"
  10709. ],
  10710. "additionalProperties": false
  10711. },
  10712. "Prompt": {
  10713. "type": "object",
  10714. "properties": {
  10715. "text": {
  10716. "type": "string"
  10717. },
  10718. "files": {
  10719. "type": "array",
  10720. "items": {
  10721. "$ref": "#/components/schemas/Prompt.FileAttachment"
  10722. }
  10723. },
  10724. "agents": {
  10725. "type": "array",
  10726. "items": {
  10727. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  10728. }
  10729. }
  10730. },
  10731. "required": [
  10732. "text"
  10733. ],
  10734. "additionalProperties": false
  10735. },
  10736. "SessionInput.Admitted": {
  10737. "type": "object",
  10738. "properties": {
  10739. "admittedSeq": {
  10740. "type": "integer",
  10741. "allOf": [
  10742. {
  10743. "minimum": 0
  10744. }
  10745. ]
  10746. },
  10747. "id": {
  10748. "type": "string",
  10749. "allOf": [
  10750. {
  10751. "pattern": "^msg_"
  10752. }
  10753. ]
  10754. },
  10755. "sessionID": {
  10756. "type": "string",
  10757. "allOf": [
  10758. {
  10759. "pattern": "^ses"
  10760. }
  10761. ]
  10762. },
  10763. "prompt": {
  10764. "$ref": "#/components/schemas/Prompt"
  10765. },
  10766. "delivery": {
  10767. "type": "string",
  10768. "enum": [
  10769. "steer",
  10770. "queue"
  10771. ]
  10772. },
  10773. "timeCreated": {
  10774. "type": "number"
  10775. },
  10776. "promotedSeq": {
  10777. "type": "integer",
  10778. "allOf": [
  10779. {
  10780. "minimum": 0
  10781. }
  10782. ]
  10783. }
  10784. },
  10785. "required": [
  10786. "admittedSeq",
  10787. "id",
  10788. "sessionID",
  10789. "prompt",
  10790. "delivery",
  10791. "timeCreated"
  10792. ],
  10793. "additionalProperties": false
  10794. },
  10795. "ConflictError": {
  10796. "type": "object",
  10797. "properties": {
  10798. "_tag": {
  10799. "type": "string",
  10800. "enum": [
  10801. "ConflictError"
  10802. ]
  10803. },
  10804. "message": {
  10805. "type": "string"
  10806. },
  10807. "resource": {
  10808. "anyOf": [
  10809. {
  10810. "type": "string"
  10811. },
  10812. {
  10813. "type": "null"
  10814. }
  10815. ]
  10816. }
  10817. },
  10818. "required": [
  10819. "_tag",
  10820. "message"
  10821. ],
  10822. "additionalProperties": false
  10823. },
  10824. "CommandNotFoundError": {
  10825. "type": "object",
  10826. "properties": {
  10827. "_tag": {
  10828. "type": "string",
  10829. "enum": [
  10830. "CommandNotFoundError"
  10831. ]
  10832. },
  10833. "command": {
  10834. "type": "string"
  10835. },
  10836. "message": {
  10837. "type": "string"
  10838. }
  10839. },
  10840. "required": [
  10841. "_tag",
  10842. "command",
  10843. "message"
  10844. ],
  10845. "additionalProperties": false
  10846. },
  10847. "CommandEvaluationError": {
  10848. "type": "object",
  10849. "properties": {
  10850. "_tag": {
  10851. "type": "string",
  10852. "enum": [
  10853. "CommandEvaluationError"
  10854. ]
  10855. },
  10856. "command": {
  10857. "type": "string"
  10858. },
  10859. "message": {
  10860. "type": "string"
  10861. }
  10862. },
  10863. "required": [
  10864. "_tag",
  10865. "command",
  10866. "message"
  10867. ],
  10868. "additionalProperties": false
  10869. },
  10870. "SkillNotFoundError": {
  10871. "type": "object",
  10872. "properties": {
  10873. "_tag": {
  10874. "type": "string",
  10875. "enum": [
  10876. "SkillNotFoundError"
  10877. ]
  10878. },
  10879. "skill": {
  10880. "type": "string"
  10881. },
  10882. "message": {
  10883. "type": "string"
  10884. }
  10885. },
  10886. "required": [
  10887. "_tag",
  10888. "skill",
  10889. "message"
  10890. ],
  10891. "additionalProperties": false
  10892. },
  10893. "SessionBusyError": {
  10894. "type": "object",
  10895. "properties": {
  10896. "_tag": {
  10897. "type": "string",
  10898. "enum": [
  10899. "SessionBusyError"
  10900. ]
  10901. },
  10902. "sessionID": {
  10903. "type": "string"
  10904. },
  10905. "message": {
  10906. "type": "string"
  10907. }
  10908. },
  10909. "required": [
  10910. "_tag",
  10911. "sessionID",
  10912. "message"
  10913. ],
  10914. "additionalProperties": false
  10915. },
  10916. "ServiceUnavailableError": {
  10917. "type": "object",
  10918. "properties": {
  10919. "_tag": {
  10920. "type": "string",
  10921. "enum": [
  10922. "ServiceUnavailableError"
  10923. ]
  10924. },
  10925. "message": {
  10926. "type": "string"
  10927. },
  10928. "service": {
  10929. "anyOf": [
  10930. {
  10931. "type": "string"
  10932. },
  10933. {
  10934. "type": "null"
  10935. }
  10936. ]
  10937. }
  10938. },
  10939. "required": [
  10940. "_tag",
  10941. "message"
  10942. ],
  10943. "additionalProperties": false
  10944. },
  10945. "UnknownError": {
  10946. "type": "object",
  10947. "properties": {
  10948. "_tag": {
  10949. "type": "string",
  10950. "enum": [
  10951. "UnknownError"
  10952. ]
  10953. },
  10954. "message": {
  10955. "type": "string"
  10956. },
  10957. "ref": {
  10958. "anyOf": [
  10959. {
  10960. "type": "string"
  10961. },
  10962. {
  10963. "type": "null"
  10964. }
  10965. ]
  10966. }
  10967. },
  10968. "required": [
  10969. "_tag",
  10970. "message"
  10971. ],
  10972. "additionalProperties": false
  10973. },
  10974. "Session.Message.AgentSelected": {
  10975. "type": "object",
  10976. "properties": {
  10977. "id": {
  10978. "type": "string",
  10979. "allOf": [
  10980. {
  10981. "pattern": "^msg_"
  10982. }
  10983. ]
  10984. },
  10985. "metadata": {
  10986. "type": "object"
  10987. },
  10988. "time": {
  10989. "type": "object",
  10990. "properties": {
  10991. "created": {
  10992. "type": "number"
  10993. }
  10994. },
  10995. "required": [
  10996. "created"
  10997. ],
  10998. "additionalProperties": false
  10999. },
  11000. "type": {
  11001. "type": "string",
  11002. "enum": [
  11003. "agent-switched"
  11004. ]
  11005. },
  11006. "agent": {
  11007. "type": "string"
  11008. }
  11009. },
  11010. "required": [
  11011. "id",
  11012. "time",
  11013. "type",
  11014. "agent"
  11015. ],
  11016. "additionalProperties": false
  11017. },
  11018. "Session.Message.ModelSelected": {
  11019. "type": "object",
  11020. "properties": {
  11021. "id": {
  11022. "type": "string",
  11023. "allOf": [
  11024. {
  11025. "pattern": "^msg_"
  11026. }
  11027. ]
  11028. },
  11029. "metadata": {
  11030. "type": "object"
  11031. },
  11032. "time": {
  11033. "type": "object",
  11034. "properties": {
  11035. "created": {
  11036. "type": "number"
  11037. }
  11038. },
  11039. "required": [
  11040. "created"
  11041. ],
  11042. "additionalProperties": false
  11043. },
  11044. "type": {
  11045. "type": "string",
  11046. "enum": [
  11047. "model-switched"
  11048. ]
  11049. },
  11050. "model": {
  11051. "$ref": "#/components/schemas/Model.Ref"
  11052. },
  11053. "previous": {
  11054. "$ref": "#/components/schemas/Model.Ref"
  11055. }
  11056. },
  11057. "required": [
  11058. "id",
  11059. "time",
  11060. "type",
  11061. "model"
  11062. ],
  11063. "additionalProperties": false
  11064. },
  11065. "Session.Message.User": {
  11066. "type": "object",
  11067. "properties": {
  11068. "id": {
  11069. "type": "string",
  11070. "allOf": [
  11071. {
  11072. "pattern": "^msg_"
  11073. }
  11074. ]
  11075. },
  11076. "metadata": {
  11077. "type": "object"
  11078. },
  11079. "time": {
  11080. "type": "object",
  11081. "properties": {
  11082. "created": {
  11083. "type": "number"
  11084. }
  11085. },
  11086. "required": [
  11087. "created"
  11088. ],
  11089. "additionalProperties": false
  11090. },
  11091. "text": {
  11092. "type": "string"
  11093. },
  11094. "files": {
  11095. "type": "array",
  11096. "items": {
  11097. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11098. }
  11099. },
  11100. "agents": {
  11101. "type": "array",
  11102. "items": {
  11103. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11104. }
  11105. },
  11106. "type": {
  11107. "type": "string",
  11108. "enum": [
  11109. "user"
  11110. ]
  11111. }
  11112. },
  11113. "required": [
  11114. "id",
  11115. "time",
  11116. "text",
  11117. "type"
  11118. ],
  11119. "additionalProperties": false
  11120. },
  11121. "Session.Message.Synthetic": {
  11122. "type": "object",
  11123. "properties": {
  11124. "id": {
  11125. "type": "string",
  11126. "allOf": [
  11127. {
  11128. "pattern": "^msg_"
  11129. }
  11130. ]
  11131. },
  11132. "metadata": {
  11133. "type": "object"
  11134. },
  11135. "time": {
  11136. "type": "object",
  11137. "properties": {
  11138. "created": {
  11139. "type": "number"
  11140. }
  11141. },
  11142. "required": [
  11143. "created"
  11144. ],
  11145. "additionalProperties": false
  11146. },
  11147. "sessionID": {
  11148. "type": "string",
  11149. "allOf": [
  11150. {
  11151. "pattern": "^ses"
  11152. }
  11153. ]
  11154. },
  11155. "text": {
  11156. "type": "string"
  11157. },
  11158. "description": {
  11159. "type": "string"
  11160. },
  11161. "type": {
  11162. "type": "string",
  11163. "enum": [
  11164. "synthetic"
  11165. ]
  11166. }
  11167. },
  11168. "required": [
  11169. "id",
  11170. "time",
  11171. "sessionID",
  11172. "text",
  11173. "type"
  11174. ],
  11175. "additionalProperties": false
  11176. },
  11177. "Session.Message.System": {
  11178. "type": "object",
  11179. "properties": {
  11180. "id": {
  11181. "type": "string",
  11182. "allOf": [
  11183. {
  11184. "pattern": "^msg_"
  11185. }
  11186. ]
  11187. },
  11188. "metadata": {
  11189. "type": "object"
  11190. },
  11191. "time": {
  11192. "type": "object",
  11193. "properties": {
  11194. "created": {
  11195. "type": "number"
  11196. }
  11197. },
  11198. "required": [
  11199. "created"
  11200. ],
  11201. "additionalProperties": false
  11202. },
  11203. "type": {
  11204. "type": "string",
  11205. "enum": [
  11206. "system"
  11207. ]
  11208. },
  11209. "text": {
  11210. "type": "string"
  11211. }
  11212. },
  11213. "required": [
  11214. "id",
  11215. "time",
  11216. "type",
  11217. "text"
  11218. ],
  11219. "additionalProperties": false
  11220. },
  11221. "Session.Message.Skill": {
  11222. "type": "object",
  11223. "properties": {
  11224. "id": {
  11225. "type": "string",
  11226. "allOf": [
  11227. {
  11228. "pattern": "^msg_"
  11229. }
  11230. ]
  11231. },
  11232. "metadata": {
  11233. "type": "object"
  11234. },
  11235. "time": {
  11236. "type": "object",
  11237. "properties": {
  11238. "created": {
  11239. "type": "number"
  11240. }
  11241. },
  11242. "required": [
  11243. "created"
  11244. ],
  11245. "additionalProperties": false
  11246. },
  11247. "type": {
  11248. "type": "string",
  11249. "enum": [
  11250. "skill"
  11251. ]
  11252. },
  11253. "name": {
  11254. "type": "string"
  11255. },
  11256. "text": {
  11257. "type": "string"
  11258. }
  11259. },
  11260. "required": [
  11261. "id",
  11262. "time",
  11263. "type",
  11264. "name",
  11265. "text"
  11266. ],
  11267. "additionalProperties": false
  11268. },
  11269. "Shell": {
  11270. "type": "object",
  11271. "properties": {
  11272. "id": {
  11273. "type": "string",
  11274. "allOf": [
  11275. {
  11276. "pattern": "^sh_"
  11277. }
  11278. ]
  11279. },
  11280. "status": {
  11281. "type": "string",
  11282. "enum": [
  11283. "running",
  11284. "exited",
  11285. "timeout",
  11286. "killed"
  11287. ]
  11288. },
  11289. "command": {
  11290. "type": "string"
  11291. },
  11292. "cwd": {
  11293. "type": "string"
  11294. },
  11295. "shell": {
  11296. "type": "string"
  11297. },
  11298. "file": {
  11299. "type": "string"
  11300. },
  11301. "pid": {
  11302. "type": "integer",
  11303. "allOf": [
  11304. {
  11305. "minimum": 0
  11306. }
  11307. ]
  11308. },
  11309. "exit": {
  11310. "anyOf": [
  11311. {
  11312. "anyOf": [
  11313. {
  11314. "type": "number"
  11315. },
  11316. {
  11317. "type": "string",
  11318. "enum": [
  11319. "NaN"
  11320. ]
  11321. },
  11322. {
  11323. "type": "string",
  11324. "enum": [
  11325. "Infinity"
  11326. ]
  11327. },
  11328. {
  11329. "type": "string",
  11330. "enum": [
  11331. "-Infinity"
  11332. ]
  11333. }
  11334. ]
  11335. },
  11336. {
  11337. "type": "string",
  11338. "enum": [
  11339. "Infinity",
  11340. "-Infinity",
  11341. "NaN"
  11342. ]
  11343. }
  11344. ]
  11345. },
  11346. "metadata": {
  11347. "type": "object"
  11348. },
  11349. "time": {
  11350. "type": "object",
  11351. "properties": {
  11352. "started": {
  11353. "anyOf": [
  11354. {
  11355. "anyOf": [
  11356. {
  11357. "type": "number"
  11358. },
  11359. {
  11360. "type": "string",
  11361. "enum": [
  11362. "NaN"
  11363. ]
  11364. },
  11365. {
  11366. "type": "string",
  11367. "enum": [
  11368. "Infinity"
  11369. ]
  11370. },
  11371. {
  11372. "type": "string",
  11373. "enum": [
  11374. "-Infinity"
  11375. ]
  11376. }
  11377. ]
  11378. },
  11379. {
  11380. "type": "string",
  11381. "enum": [
  11382. "Infinity",
  11383. "-Infinity",
  11384. "NaN"
  11385. ]
  11386. }
  11387. ]
  11388. },
  11389. "completed": {
  11390. "anyOf": [
  11391. {
  11392. "anyOf": [
  11393. {
  11394. "type": "number"
  11395. },
  11396. {
  11397. "type": "string",
  11398. "enum": [
  11399. "NaN"
  11400. ]
  11401. },
  11402. {
  11403. "type": "string",
  11404. "enum": [
  11405. "Infinity"
  11406. ]
  11407. },
  11408. {
  11409. "type": "string",
  11410. "enum": [
  11411. "-Infinity"
  11412. ]
  11413. }
  11414. ]
  11415. },
  11416. {
  11417. "type": "string",
  11418. "enum": [
  11419. "Infinity",
  11420. "-Infinity",
  11421. "NaN"
  11422. ]
  11423. }
  11424. ]
  11425. }
  11426. },
  11427. "required": [
  11428. "started"
  11429. ],
  11430. "additionalProperties": false
  11431. }
  11432. },
  11433. "required": [
  11434. "id",
  11435. "status",
  11436. "command",
  11437. "cwd",
  11438. "shell",
  11439. "file",
  11440. "metadata",
  11441. "time"
  11442. ],
  11443. "additionalProperties": false
  11444. },
  11445. "Session.Message.Shell": {
  11446. "type": "object",
  11447. "properties": {
  11448. "id": {
  11449. "type": "string",
  11450. "allOf": [
  11451. {
  11452. "pattern": "^msg_"
  11453. }
  11454. ]
  11455. },
  11456. "metadata": {
  11457. "type": "object"
  11458. },
  11459. "time": {
  11460. "type": "object",
  11461. "properties": {
  11462. "created": {
  11463. "type": "number"
  11464. },
  11465. "completed": {
  11466. "type": "number"
  11467. }
  11468. },
  11469. "required": [
  11470. "created"
  11471. ],
  11472. "additionalProperties": false
  11473. },
  11474. "type": {
  11475. "type": "string",
  11476. "enum": [
  11477. "shell"
  11478. ]
  11479. },
  11480. "shell": {
  11481. "$ref": "#/components/schemas/Shell"
  11482. },
  11483. "output": {
  11484. "type": "object",
  11485. "properties": {
  11486. "output": {
  11487. "type": "string"
  11488. },
  11489. "cursor": {
  11490. "type": "integer",
  11491. "allOf": [
  11492. {
  11493. "minimum": 0
  11494. }
  11495. ]
  11496. },
  11497. "size": {
  11498. "type": "integer",
  11499. "allOf": [
  11500. {
  11501. "minimum": 0
  11502. }
  11503. ]
  11504. },
  11505. "truncated": {
  11506. "type": "boolean"
  11507. }
  11508. },
  11509. "required": [
  11510. "output",
  11511. "cursor",
  11512. "size",
  11513. "truncated"
  11514. ],
  11515. "additionalProperties": false
  11516. }
  11517. },
  11518. "required": [
  11519. "id",
  11520. "time",
  11521. "type",
  11522. "shell"
  11523. ],
  11524. "additionalProperties": false
  11525. },
  11526. "Session.Message.Assistant.Text": {
  11527. "type": "object",
  11528. "properties": {
  11529. "type": {
  11530. "type": "string",
  11531. "enum": [
  11532. "text"
  11533. ]
  11534. },
  11535. "id": {
  11536. "type": "string"
  11537. },
  11538. "text": {
  11539. "type": "string"
  11540. }
  11541. },
  11542. "required": [
  11543. "type",
  11544. "id",
  11545. "text"
  11546. ],
  11547. "additionalProperties": false
  11548. },
  11549. "LLM.ProviderMetadata": {
  11550. "type": "object",
  11551. "additionalProperties": {
  11552. "type": "object"
  11553. }
  11554. },
  11555. "Session.Message.Assistant.Reasoning": {
  11556. "type": "object",
  11557. "properties": {
  11558. "type": {
  11559. "type": "string",
  11560. "enum": [
  11561. "reasoning"
  11562. ]
  11563. },
  11564. "id": {
  11565. "type": "string"
  11566. },
  11567. "text": {
  11568. "type": "string"
  11569. },
  11570. "providerMetadata": {
  11571. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  11572. },
  11573. "time": {
  11574. "type": "object",
  11575. "properties": {
  11576. "created": {
  11577. "type": "number"
  11578. },
  11579. "completed": {
  11580. "type": "number"
  11581. }
  11582. },
  11583. "required": [
  11584. "created"
  11585. ],
  11586. "additionalProperties": false
  11587. }
  11588. },
  11589. "required": [
  11590. "type",
  11591. "id",
  11592. "text"
  11593. ],
  11594. "additionalProperties": false
  11595. },
  11596. "Session.Message.ToolState.Pending": {
  11597. "type": "object",
  11598. "properties": {
  11599. "status": {
  11600. "type": "string",
  11601. "enum": [
  11602. "pending"
  11603. ]
  11604. },
  11605. "input": {
  11606. "type": "string"
  11607. }
  11608. },
  11609. "required": [
  11610. "status",
  11611. "input"
  11612. ],
  11613. "additionalProperties": false
  11614. },
  11615. "Tool.TextContent": {
  11616. "type": "object",
  11617. "properties": {
  11618. "type": {
  11619. "type": "string",
  11620. "enum": [
  11621. "text"
  11622. ]
  11623. },
  11624. "text": {
  11625. "type": "string"
  11626. }
  11627. },
  11628. "required": [
  11629. "type",
  11630. "text"
  11631. ],
  11632. "additionalProperties": false
  11633. },
  11634. "Tool.FileContent": {
  11635. "type": "object",
  11636. "properties": {
  11637. "type": {
  11638. "type": "string",
  11639. "enum": [
  11640. "file"
  11641. ]
  11642. },
  11643. "uri": {
  11644. "type": "string"
  11645. },
  11646. "mime": {
  11647. "type": "string"
  11648. },
  11649. "name": {
  11650. "type": "string"
  11651. }
  11652. },
  11653. "required": [
  11654. "type",
  11655. "uri",
  11656. "mime"
  11657. ],
  11658. "additionalProperties": false
  11659. },
  11660. "LLM.ToolContent": {
  11661. "anyOf": [
  11662. {
  11663. "$ref": "#/components/schemas/Tool.TextContent"
  11664. },
  11665. {
  11666. "$ref": "#/components/schemas/Tool.FileContent"
  11667. }
  11668. ]
  11669. },
  11670. "Session.Message.ToolState.Running": {
  11671. "type": "object",
  11672. "properties": {
  11673. "status": {
  11674. "type": "string",
  11675. "enum": [
  11676. "running"
  11677. ]
  11678. },
  11679. "input": {
  11680. "type": "object"
  11681. },
  11682. "structured": {
  11683. "type": "object"
  11684. },
  11685. "content": {
  11686. "type": "array",
  11687. "items": {
  11688. "$ref": "#/components/schemas/LLM.ToolContent"
  11689. }
  11690. }
  11691. },
  11692. "required": [
  11693. "status",
  11694. "input",
  11695. "structured",
  11696. "content"
  11697. ],
  11698. "additionalProperties": false
  11699. },
  11700. "Session.Message.ToolState.Completed": {
  11701. "type": "object",
  11702. "properties": {
  11703. "status": {
  11704. "type": "string",
  11705. "enum": [
  11706. "completed"
  11707. ]
  11708. },
  11709. "input": {
  11710. "type": "object"
  11711. },
  11712. "attachments": {
  11713. "type": "array",
  11714. "items": {
  11715. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11716. }
  11717. },
  11718. "content": {
  11719. "type": "array",
  11720. "items": {
  11721. "$ref": "#/components/schemas/LLM.ToolContent"
  11722. }
  11723. },
  11724. "outputPaths": {
  11725. "type": "array",
  11726. "items": {
  11727. "type": "string"
  11728. }
  11729. },
  11730. "structured": {
  11731. "type": "object"
  11732. },
  11733. "result": {}
  11734. },
  11735. "required": [
  11736. "status",
  11737. "input",
  11738. "content",
  11739. "structured"
  11740. ],
  11741. "additionalProperties": false
  11742. },
  11743. "Session.Error.Unknown": {
  11744. "type": "object",
  11745. "properties": {
  11746. "type": {
  11747. "type": "string",
  11748. "enum": [
  11749. "unknown"
  11750. ]
  11751. },
  11752. "message": {
  11753. "type": "string"
  11754. }
  11755. },
  11756. "required": [
  11757. "type",
  11758. "message"
  11759. ],
  11760. "additionalProperties": false
  11761. },
  11762. "Session.Message.ToolState.Error": {
  11763. "type": "object",
  11764. "properties": {
  11765. "status": {
  11766. "type": "string",
  11767. "enum": [
  11768. "error"
  11769. ]
  11770. },
  11771. "input": {
  11772. "type": "object"
  11773. },
  11774. "content": {
  11775. "type": "array",
  11776. "items": {
  11777. "$ref": "#/components/schemas/LLM.ToolContent"
  11778. }
  11779. },
  11780. "structured": {
  11781. "type": "object"
  11782. },
  11783. "error": {
  11784. "$ref": "#/components/schemas/Session.Error.Unknown"
  11785. },
  11786. "result": {}
  11787. },
  11788. "required": [
  11789. "status",
  11790. "input",
  11791. "content",
  11792. "structured",
  11793. "error"
  11794. ],
  11795. "additionalProperties": false
  11796. },
  11797. "Session.Message.Assistant.Tool": {
  11798. "type": "object",
  11799. "properties": {
  11800. "type": {
  11801. "type": "string",
  11802. "enum": [
  11803. "tool"
  11804. ]
  11805. },
  11806. "id": {
  11807. "type": "string"
  11808. },
  11809. "name": {
  11810. "type": "string"
  11811. },
  11812. "provider": {
  11813. "type": "object",
  11814. "properties": {
  11815. "executed": {
  11816. "type": "boolean"
  11817. },
  11818. "metadata": {
  11819. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  11820. },
  11821. "resultMetadata": {
  11822. "$ref": "#/components/schemas/LLM.ProviderMetadata"
  11823. }
  11824. },
  11825. "required": [
  11826. "executed"
  11827. ],
  11828. "additionalProperties": false
  11829. },
  11830. "state": {
  11831. "anyOf": [
  11832. {
  11833. "$ref": "#/components/schemas/Session.Message.ToolState.Pending"
  11834. },
  11835. {
  11836. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  11837. },
  11838. {
  11839. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  11840. },
  11841. {
  11842. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  11843. }
  11844. ]
  11845. },
  11846. "time": {
  11847. "type": "object",
  11848. "properties": {
  11849. "created": {
  11850. "type": "number"
  11851. },
  11852. "ran": {
  11853. "type": "number"
  11854. },
  11855. "completed": {
  11856. "type": "number"
  11857. },
  11858. "pruned": {
  11859. "type": "number"
  11860. }
  11861. },
  11862. "required": [
  11863. "created"
  11864. ],
  11865. "additionalProperties": false
  11866. }
  11867. },
  11868. "required": [
  11869. "type",
  11870. "id",
  11871. "name",
  11872. "state",
  11873. "time"
  11874. ],
  11875. "additionalProperties": false
  11876. },
  11877. "Session.Message.Assistant": {
  11878. "type": "object",
  11879. "properties": {
  11880. "id": {
  11881. "type": "string",
  11882. "allOf": [
  11883. {
  11884. "pattern": "^msg_"
  11885. }
  11886. ]
  11887. },
  11888. "metadata": {
  11889. "type": "object"
  11890. },
  11891. "time": {
  11892. "type": "object",
  11893. "properties": {
  11894. "created": {
  11895. "type": "number"
  11896. },
  11897. "completed": {
  11898. "type": "number"
  11899. }
  11900. },
  11901. "required": [
  11902. "created"
  11903. ],
  11904. "additionalProperties": false
  11905. },
  11906. "type": {
  11907. "type": "string",
  11908. "enum": [
  11909. "assistant"
  11910. ]
  11911. },
  11912. "agent": {
  11913. "type": "string"
  11914. },
  11915. "model": {
  11916. "$ref": "#/components/schemas/Model.Ref"
  11917. },
  11918. "content": {
  11919. "type": "array",
  11920. "items": {
  11921. "anyOf": [
  11922. {
  11923. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  11924. },
  11925. {
  11926. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  11927. },
  11928. {
  11929. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  11930. }
  11931. ]
  11932. }
  11933. },
  11934. "snapshot": {
  11935. "type": "object",
  11936. "properties": {
  11937. "start": {
  11938. "type": "string"
  11939. },
  11940. "end": {
  11941. "type": "string"
  11942. },
  11943. "files": {
  11944. "type": "array",
  11945. "items": {
  11946. "type": "string"
  11947. }
  11948. }
  11949. },
  11950. "additionalProperties": false
  11951. },
  11952. "finish": {
  11953. "type": "string"
  11954. },
  11955. "cost": {
  11956. "type": "number"
  11957. },
  11958. "tokens": {
  11959. "type": "object",
  11960. "properties": {
  11961. "input": {
  11962. "type": "number"
  11963. },
  11964. "output": {
  11965. "type": "number"
  11966. },
  11967. "reasoning": {
  11968. "type": "number"
  11969. },
  11970. "cache": {
  11971. "type": "object",
  11972. "properties": {
  11973. "read": {
  11974. "type": "number"
  11975. },
  11976. "write": {
  11977. "type": "number"
  11978. }
  11979. },
  11980. "required": [
  11981. "read",
  11982. "write"
  11983. ],
  11984. "additionalProperties": false
  11985. }
  11986. },
  11987. "required": [
  11988. "input",
  11989. "output",
  11990. "reasoning",
  11991. "cache"
  11992. ],
  11993. "additionalProperties": false
  11994. },
  11995. "error": {
  11996. "$ref": "#/components/schemas/Session.Error.Unknown"
  11997. }
  11998. },
  11999. "required": [
  12000. "id",
  12001. "time",
  12002. "type",
  12003. "agent",
  12004. "model",
  12005. "content"
  12006. ],
  12007. "additionalProperties": false
  12008. },
  12009. "Session.Message.Compaction": {
  12010. "type": "object",
  12011. "properties": {
  12012. "type": {
  12013. "type": "string",
  12014. "enum": [
  12015. "compaction"
  12016. ]
  12017. },
  12018. "reason": {
  12019. "type": "string",
  12020. "enum": [
  12021. "auto",
  12022. "manual"
  12023. ]
  12024. },
  12025. "summary": {
  12026. "type": "string"
  12027. },
  12028. "recent": {
  12029. "type": "string"
  12030. },
  12031. "id": {
  12032. "type": "string",
  12033. "allOf": [
  12034. {
  12035. "pattern": "^msg_"
  12036. }
  12037. ]
  12038. },
  12039. "metadata": {
  12040. "type": "object"
  12041. },
  12042. "time": {
  12043. "type": "object",
  12044. "properties": {
  12045. "created": {
  12046. "type": "number"
  12047. }
  12048. },
  12049. "required": [
  12050. "created"
  12051. ],
  12052. "additionalProperties": false
  12053. }
  12054. },
  12055. "required": [
  12056. "type",
  12057. "reason",
  12058. "summary",
  12059. "recent",
  12060. "id",
  12061. "time"
  12062. ],
  12063. "additionalProperties": false
  12064. },
  12065. "Session.Message": {
  12066. "anyOf": [
  12067. {
  12068. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  12069. },
  12070. {
  12071. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  12072. },
  12073. {
  12074. "$ref": "#/components/schemas/Session.Message.User"
  12075. },
  12076. {
  12077. "$ref": "#/components/schemas/Session.Message.Synthetic"
  12078. },
  12079. {
  12080. "$ref": "#/components/schemas/Session.Message.System"
  12081. },
  12082. {
  12083. "$ref": "#/components/schemas/Session.Message.Skill"
  12084. },
  12085. {
  12086. "$ref": "#/components/schemas/Session.Message.Shell"
  12087. },
  12088. {
  12089. "$ref": "#/components/schemas/Session.Message.Assistant"
  12090. },
  12091. {
  12092. "$ref": "#/components/schemas/Session.Message.Compaction"
  12093. }
  12094. ]
  12095. },
  12096. "SessionContextEntry.Key": {
  12097. "type": "string",
  12098. "allOf": [
  12099. {
  12100. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  12101. "description": "Context entry key (lowercase alphanumerics plus . _ -)"
  12102. }
  12103. ]
  12104. },
  12105. "SessionContextEntry.Info": {
  12106. "type": "object",
  12107. "properties": {
  12108. "key": {
  12109. "$ref": "#/components/schemas/SessionContextEntry.Key"
  12110. },
  12111. "value": {}
  12112. },
  12113. "required": [
  12114. "key",
  12115. "value"
  12116. ],
  12117. "additionalProperties": false
  12118. },
  12119. "session.agent.selected": {
  12120. "type": "object",
  12121. "properties": {
  12122. "id": {
  12123. "type": "string",
  12124. "allOf": [
  12125. {
  12126. "pattern": "^evt_"
  12127. }
  12128. ]
  12129. },
  12130. "created": {
  12131. "type": "number"
  12132. },
  12133. "metadata": {
  12134. "type": "object"
  12135. },
  12136. "type": {
  12137. "type": "string",
  12138. "enum": [
  12139. "session.agent.selected"
  12140. ]
  12141. },
  12142. "durable": {
  12143. "type": "object",
  12144. "properties": {
  12145. "aggregateID": {
  12146. "type": "string"
  12147. },
  12148. "seq": {
  12149. "type": "integer",
  12150. "allOf": [
  12151. {
  12152. "minimum": 0
  12153. }
  12154. ]
  12155. },
  12156. "version": {
  12157. "type": "integer",
  12158. "allOf": [
  12159. {
  12160. "minimum": 1
  12161. }
  12162. ]
  12163. }
  12164. },
  12165. "required": [
  12166. "aggregateID",
  12167. "seq",
  12168. "version"
  12169. ],
  12170. "additionalProperties": false
  12171. },
  12172. "location": {
  12173. "$ref": "#/components/schemas/Location.Ref"
  12174. },
  12175. "data": {
  12176. "type": "object",
  12177. "properties": {
  12178. "sessionID": {
  12179. "type": "string",
  12180. "allOf": [
  12181. {
  12182. "pattern": "^ses"
  12183. }
  12184. ]
  12185. },
  12186. "agent": {
  12187. "type": "string"
  12188. }
  12189. },
  12190. "required": [
  12191. "sessionID",
  12192. "agent"
  12193. ],
  12194. "additionalProperties": false
  12195. }
  12196. },
  12197. "required": [
  12198. "id",
  12199. "created",
  12200. "type",
  12201. "durable",
  12202. "data"
  12203. ],
  12204. "additionalProperties": false
  12205. },
  12206. "session.model.selected": {
  12207. "type": "object",
  12208. "properties": {
  12209. "id": {
  12210. "type": "string",
  12211. "allOf": [
  12212. {
  12213. "pattern": "^evt_"
  12214. }
  12215. ]
  12216. },
  12217. "created": {
  12218. "type": "number"
  12219. },
  12220. "metadata": {
  12221. "type": "object"
  12222. },
  12223. "type": {
  12224. "type": "string",
  12225. "enum": [
  12226. "session.model.selected"
  12227. ]
  12228. },
  12229. "durable": {
  12230. "type": "object",
  12231. "properties": {
  12232. "aggregateID": {
  12233. "type": "string"
  12234. },
  12235. "seq": {
  12236. "type": "integer",
  12237. "allOf": [
  12238. {
  12239. "minimum": 0
  12240. }
  12241. ]
  12242. },
  12243. "version": {
  12244. "type": "integer",
  12245. "allOf": [
  12246. {
  12247. "minimum": 1
  12248. }
  12249. ]
  12250. }
  12251. },
  12252. "required": [
  12253. "aggregateID",
  12254. "seq",
  12255. "version"
  12256. ],
  12257. "additionalProperties": false
  12258. },
  12259. "location": {
  12260. "$ref": "#/components/schemas/Location.Ref"
  12261. },
  12262. "data": {
  12263. "type": "object",
  12264. "properties": {
  12265. "sessionID": {
  12266. "type": "string",
  12267. "allOf": [
  12268. {
  12269. "pattern": "^ses"
  12270. }
  12271. ]
  12272. },
  12273. "model": {
  12274. "$ref": "#/components/schemas/Model.Ref"
  12275. }
  12276. },
  12277. "required": [
  12278. "sessionID",
  12279. "model"
  12280. ],
  12281. "additionalProperties": false
  12282. }
  12283. },
  12284. "required": [
  12285. "id",
  12286. "created",
  12287. "type",
  12288. "durable",
  12289. "data"
  12290. ],
  12291. "additionalProperties": false
  12292. },
  12293. "session.moved": {
  12294. "type": "object",
  12295. "properties": {
  12296. "id": {
  12297. "type": "string",
  12298. "allOf": [
  12299. {
  12300. "pattern": "^evt_"
  12301. }
  12302. ]
  12303. },
  12304. "created": {
  12305. "type": "number"
  12306. },
  12307. "metadata": {
  12308. "type": "object"
  12309. },
  12310. "type": {
  12311. "type": "string",
  12312. "enum": [
  12313. "session.moved"
  12314. ]
  12315. },
  12316. "durable": {
  12317. "type": "object",
  12318. "properties": {
  12319. "aggregateID": {
  12320. "type": "string"
  12321. },
  12322. "seq": {
  12323. "type": "integer",
  12324. "allOf": [
  12325. {
  12326. "minimum": 0
  12327. }
  12328. ]
  12329. },
  12330. "version": {
  12331. "type": "integer",
  12332. "allOf": [
  12333. {
  12334. "minimum": 1
  12335. }
  12336. ]
  12337. }
  12338. },
  12339. "required": [
  12340. "aggregateID",
  12341. "seq",
  12342. "version"
  12343. ],
  12344. "additionalProperties": false
  12345. },
  12346. "location": {
  12347. "$ref": "#/components/schemas/Location.Ref"
  12348. },
  12349. "data": {
  12350. "type": "object",
  12351. "properties": {
  12352. "sessionID": {
  12353. "type": "string",
  12354. "allOf": [
  12355. {
  12356. "pattern": "^ses"
  12357. }
  12358. ]
  12359. },
  12360. "location": {
  12361. "$ref": "#/components/schemas/Location.Ref"
  12362. },
  12363. "subpath": {
  12364. "type": "string"
  12365. }
  12366. },
  12367. "required": [
  12368. "sessionID",
  12369. "location"
  12370. ],
  12371. "additionalProperties": false
  12372. }
  12373. },
  12374. "required": [
  12375. "id",
  12376. "created",
  12377. "type",
  12378. "durable",
  12379. "data"
  12380. ],
  12381. "additionalProperties": false
  12382. },
  12383. "session.renamed": {
  12384. "type": "object",
  12385. "properties": {
  12386. "id": {
  12387. "type": "string",
  12388. "allOf": [
  12389. {
  12390. "pattern": "^evt_"
  12391. }
  12392. ]
  12393. },
  12394. "created": {
  12395. "type": "number"
  12396. },
  12397. "metadata": {
  12398. "type": "object"
  12399. },
  12400. "type": {
  12401. "type": "string",
  12402. "enum": [
  12403. "session.renamed"
  12404. ]
  12405. },
  12406. "durable": {
  12407. "type": "object",
  12408. "properties": {
  12409. "aggregateID": {
  12410. "type": "string"
  12411. },
  12412. "seq": {
  12413. "type": "integer",
  12414. "allOf": [
  12415. {
  12416. "minimum": 0
  12417. }
  12418. ]
  12419. },
  12420. "version": {
  12421. "type": "integer",
  12422. "allOf": [
  12423. {
  12424. "minimum": 1
  12425. }
  12426. ]
  12427. }
  12428. },
  12429. "required": [
  12430. "aggregateID",
  12431. "seq",
  12432. "version"
  12433. ],
  12434. "additionalProperties": false
  12435. },
  12436. "location": {
  12437. "$ref": "#/components/schemas/Location.Ref"
  12438. },
  12439. "data": {
  12440. "type": "object",
  12441. "properties": {
  12442. "sessionID": {
  12443. "type": "string",
  12444. "allOf": [
  12445. {
  12446. "pattern": "^ses"
  12447. }
  12448. ]
  12449. },
  12450. "title": {
  12451. "type": "string"
  12452. }
  12453. },
  12454. "required": [
  12455. "sessionID",
  12456. "title"
  12457. ],
  12458. "additionalProperties": false
  12459. }
  12460. },
  12461. "required": [
  12462. "id",
  12463. "created",
  12464. "type",
  12465. "durable",
  12466. "data"
  12467. ],
  12468. "additionalProperties": false
  12469. },
  12470. "session.forked": {
  12471. "type": "object",
  12472. "properties": {
  12473. "id": {
  12474. "type": "string",
  12475. "allOf": [
  12476. {
  12477. "pattern": "^evt_"
  12478. }
  12479. ]
  12480. },
  12481. "created": {
  12482. "type": "number"
  12483. },
  12484. "metadata": {
  12485. "type": "object"
  12486. },
  12487. "type": {
  12488. "type": "string",
  12489. "enum": [
  12490. "session.forked"
  12491. ]
  12492. },
  12493. "durable": {
  12494. "type": "object",
  12495. "properties": {
  12496. "aggregateID": {
  12497. "type": "string"
  12498. },
  12499. "seq": {
  12500. "type": "integer",
  12501. "allOf": [
  12502. {
  12503. "minimum": 0
  12504. }
  12505. ]
  12506. },
  12507. "version": {
  12508. "type": "integer",
  12509. "allOf": [
  12510. {
  12511. "minimum": 1
  12512. }
  12513. ]
  12514. }
  12515. },
  12516. "required": [
  12517. "aggregateID",
  12518. "seq",
  12519. "version"
  12520. ],
  12521. "additionalProperties": false
  12522. },
  12523. "location": {
  12524. "$ref": "#/components/schemas/Location.Ref"
  12525. },
  12526. "data": {
  12527. "type": "object",
  12528. "properties": {
  12529. "sessionID": {
  12530. "type": "string",
  12531. "allOf": [
  12532. {
  12533. "pattern": "^ses"
  12534. }
  12535. ]
  12536. },
  12537. "parentID": {
  12538. "type": "string",
  12539. "allOf": [
  12540. {
  12541. "pattern": "^ses"
  12542. }
  12543. ]
  12544. },
  12545. "from": {
  12546. "type": "string",
  12547. "allOf": [
  12548. {
  12549. "pattern": "^msg_"
  12550. }
  12551. ]
  12552. }
  12553. },
  12554. "required": [
  12555. "sessionID",
  12556. "parentID"
  12557. ],
  12558. "additionalProperties": false
  12559. }
  12560. },
  12561. "required": [
  12562. "id",
  12563. "created",
  12564. "type",
  12565. "durable",
  12566. "data"
  12567. ],
  12568. "additionalProperties": false
  12569. },
  12570. "session.prompt.promoted": {
  12571. "type": "object",
  12572. "properties": {
  12573. "id": {
  12574. "type": "string",
  12575. "allOf": [
  12576. {
  12577. "pattern": "^evt_"
  12578. }
  12579. ]
  12580. },
  12581. "created": {
  12582. "type": "number"
  12583. },
  12584. "metadata": {
  12585. "type": "object"
  12586. },
  12587. "type": {
  12588. "type": "string",
  12589. "enum": [
  12590. "session.prompt.promoted"
  12591. ]
  12592. },
  12593. "durable": {
  12594. "type": "object",
  12595. "properties": {
  12596. "aggregateID": {
  12597. "type": "string"
  12598. },
  12599. "seq": {
  12600. "type": "integer",
  12601. "allOf": [
  12602. {
  12603. "minimum": 0
  12604. }
  12605. ]
  12606. },
  12607. "version": {
  12608. "type": "integer",
  12609. "allOf": [
  12610. {
  12611. "minimum": 1
  12612. }
  12613. ]
  12614. }
  12615. },
  12616. "required": [
  12617. "aggregateID",
  12618. "seq",
  12619. "version"
  12620. ],
  12621. "additionalProperties": false
  12622. },
  12623. "location": {
  12624. "$ref": "#/components/schemas/Location.Ref"
  12625. },
  12626. "data": {
  12627. "type": "object",
  12628. "properties": {
  12629. "sessionID": {
  12630. "type": "string",
  12631. "allOf": [
  12632. {
  12633. "pattern": "^ses"
  12634. }
  12635. ]
  12636. },
  12637. "inputID": {
  12638. "type": "string",
  12639. "allOf": [
  12640. {
  12641. "pattern": "^msg_"
  12642. }
  12643. ]
  12644. }
  12645. },
  12646. "required": [
  12647. "sessionID",
  12648. "inputID"
  12649. ],
  12650. "additionalProperties": false
  12651. }
  12652. },
  12653. "required": [
  12654. "id",
  12655. "created",
  12656. "type",
  12657. "durable",
  12658. "data"
  12659. ],
  12660. "additionalProperties": false
  12661. },
  12662. "session.prompt.admitted": {
  12663. "type": "object",
  12664. "properties": {
  12665. "id": {
  12666. "type": "string",
  12667. "allOf": [
  12668. {
  12669. "pattern": "^evt_"
  12670. }
  12671. ]
  12672. },
  12673. "created": {
  12674. "type": "number"
  12675. },
  12676. "metadata": {
  12677. "type": "object"
  12678. },
  12679. "type": {
  12680. "type": "string",
  12681. "enum": [
  12682. "session.prompt.admitted"
  12683. ]
  12684. },
  12685. "durable": {
  12686. "type": "object",
  12687. "properties": {
  12688. "aggregateID": {
  12689. "type": "string"
  12690. },
  12691. "seq": {
  12692. "type": "integer",
  12693. "allOf": [
  12694. {
  12695. "minimum": 0
  12696. }
  12697. ]
  12698. },
  12699. "version": {
  12700. "type": "integer",
  12701. "allOf": [
  12702. {
  12703. "minimum": 1
  12704. }
  12705. ]
  12706. }
  12707. },
  12708. "required": [
  12709. "aggregateID",
  12710. "seq",
  12711. "version"
  12712. ],
  12713. "additionalProperties": false
  12714. },
  12715. "location": {
  12716. "$ref": "#/components/schemas/Location.Ref"
  12717. },
  12718. "data": {
  12719. "type": "object",
  12720. "properties": {
  12721. "sessionID": {
  12722. "type": "string",
  12723. "allOf": [
  12724. {
  12725. "pattern": "^ses"
  12726. }
  12727. ]
  12728. },
  12729. "inputID": {
  12730. "type": "string",
  12731. "allOf": [
  12732. {
  12733. "pattern": "^msg_"
  12734. }
  12735. ]
  12736. },
  12737. "prompt": {
  12738. "$ref": "#/components/schemas/Prompt"
  12739. },
  12740. "delivery": {
  12741. "type": "string",
  12742. "enum": [
  12743. "steer",
  12744. "queue"
  12745. ]
  12746. }
  12747. },
  12748. "required": [
  12749. "sessionID",
  12750. "inputID",
  12751. "prompt",
  12752. "delivery"
  12753. ],
  12754. "additionalProperties": false
  12755. }
  12756. },
  12757. "required": [
  12758. "id",
  12759. "created",
  12760. "type",
  12761. "durable",
  12762. "data"
  12763. ],
  12764. "additionalProperties": false
  12765. },
  12766. "session.context.updated": {
  12767. "type": "object",
  12768. "properties": {
  12769. "id": {
  12770. "type": "string",
  12771. "allOf": [
  12772. {
  12773. "pattern": "^evt_"
  12774. }
  12775. ]
  12776. },
  12777. "created": {
  12778. "type": "number"
  12779. },
  12780. "metadata": {
  12781. "type": "object"
  12782. },
  12783. "type": {
  12784. "type": "string",
  12785. "enum": [
  12786. "session.context.updated"
  12787. ]
  12788. },
  12789. "durable": {
  12790. "type": "object",
  12791. "properties": {
  12792. "aggregateID": {
  12793. "type": "string"
  12794. },
  12795. "seq": {
  12796. "type": "integer",
  12797. "allOf": [
  12798. {
  12799. "minimum": 0
  12800. }
  12801. ]
  12802. },
  12803. "version": {
  12804. "type": "integer",
  12805. "allOf": [
  12806. {
  12807. "minimum": 1
  12808. }
  12809. ]
  12810. }
  12811. },
  12812. "required": [
  12813. "aggregateID",
  12814. "seq",
  12815. "version"
  12816. ],
  12817. "additionalProperties": false
  12818. },
  12819. "location": {
  12820. "$ref": "#/components/schemas/Location.Ref"
  12821. },
  12822. "data": {
  12823. "type": "object",
  12824. "properties": {
  12825. "sessionID": {
  12826. "type": "string",
  12827. "allOf": [
  12828. {
  12829. "pattern": "^ses"
  12830. }
  12831. ]
  12832. },
  12833. "text": {
  12834. "type": "string"
  12835. }
  12836. },
  12837. "required": [
  12838. "sessionID",
  12839. "text"
  12840. ],
  12841. "additionalProperties": false
  12842. }
  12843. },
  12844. "required": [
  12845. "id",
  12846. "created",
  12847. "type",
  12848. "durable",
  12849. "data"
  12850. ],
  12851. "additionalProperties": false
  12852. },
  12853. "session.synthetic": {
  12854. "type": "object",
  12855. "properties": {
  12856. "id": {
  12857. "type": "string",
  12858. "allOf": [
  12859. {
  12860. "pattern": "^evt_"
  12861. }
  12862. ]
  12863. },
  12864. "created": {
  12865. "type": "number"
  12866. },
  12867. "metadata": {
  12868. "type": "object"
  12869. },
  12870. "type": {
  12871. "type": "string",
  12872. "enum": [
  12873. "session.synthetic"
  12874. ]
  12875. },
  12876. "durable": {
  12877. "type": "object",
  12878. "properties": {
  12879. "aggregateID": {
  12880. "type": "string"
  12881. },
  12882. "seq": {
  12883. "type": "integer",
  12884. "allOf": [
  12885. {
  12886. "minimum": 0
  12887. }
  12888. ]
  12889. },
  12890. "version": {
  12891. "type": "integer",
  12892. "allOf": [
  12893. {
  12894. "minimum": 1
  12895. }
  12896. ]
  12897. }
  12898. },
  12899. "required": [
  12900. "aggregateID",
  12901. "seq",
  12902. "version"
  12903. ],
  12904. "additionalProperties": false
  12905. },
  12906. "location": {
  12907. "$ref": "#/components/schemas/Location.Ref"
  12908. },
  12909. "data": {
  12910. "type": "object",
  12911. "properties": {
  12912. "sessionID": {
  12913. "type": "string",
  12914. "allOf": [
  12915. {
  12916. "pattern": "^ses"
  12917. }
  12918. ]
  12919. },
  12920. "text": {
  12921. "type": "string"
  12922. },
  12923. "description": {
  12924. "type": "string"
  12925. },
  12926. "metadata": {
  12927. "type": "object"
  12928. }
  12929. },
  12930. "required": [
  12931. "sessionID",
  12932. "text"
  12933. ],
  12934. "additionalProperties": false
  12935. }
  12936. },
  12937. "required": [
  12938. "id",
  12939. "created",
  12940. "type",
  12941. "durable",
  12942. "data"
  12943. ],
  12944. "additionalProperties": false
  12945. },
  12946. "session.skill.activated": {
  12947. "type": "object",
  12948. "properties": {
  12949. "id": {
  12950. "type": "string",
  12951. "allOf": [
  12952. {
  12953. "pattern": "^evt_"
  12954. }
  12955. ]
  12956. },
  12957. "created": {
  12958. "type": "number"
  12959. },
  12960. "metadata": {
  12961. "type": "object"
  12962. },
  12963. "type": {
  12964. "type": "string",
  12965. "enum": [
  12966. "session.skill.activated"
  12967. ]
  12968. },
  12969. "durable": {
  12970. "type": "object",
  12971. "properties": {
  12972. "aggregateID": {
  12973. "type": "string"
  12974. },
  12975. "seq": {
  12976. "type": "integer",
  12977. "allOf": [
  12978. {
  12979. "minimum": 0
  12980. }
  12981. ]
  12982. },
  12983. "version": {
  12984. "type": "integer",
  12985. "allOf": [
  12986. {
  12987. "minimum": 1
  12988. }
  12989. ]
  12990. }
  12991. },
  12992. "required": [
  12993. "aggregateID",
  12994. "seq",
  12995. "version"
  12996. ],
  12997. "additionalProperties": false
  12998. },
  12999. "location": {
  13000. "$ref": "#/components/schemas/Location.Ref"
  13001. },
  13002. "data": {
  13003. "type": "object",
  13004. "properties": {
  13005. "sessionID": {
  13006. "type": "string",
  13007. "allOf": [
  13008. {
  13009. "pattern": "^ses"
  13010. }
  13011. ]
  13012. },
  13013. "name": {
  13014. "type": "string"
  13015. },
  13016. "text": {
  13017. "type": "string"
  13018. }
  13019. },
  13020. "required": [
  13021. "sessionID",
  13022. "name",
  13023. "text"
  13024. ],
  13025. "additionalProperties": false
  13026. }
  13027. },
  13028. "required": [
  13029. "id",
  13030. "created",
  13031. "type",
  13032. "durable",
  13033. "data"
  13034. ],
  13035. "additionalProperties": false
  13036. },
  13037. "Shell1": {
  13038. "type": "object",
  13039. "properties": {
  13040. "id": {
  13041. "type": "string",
  13042. "allOf": [
  13043. {
  13044. "pattern": "^sh_"
  13045. }
  13046. ]
  13047. },
  13048. "status": {
  13049. "type": "string",
  13050. "enum": [
  13051. "running",
  13052. "exited",
  13053. "timeout",
  13054. "killed"
  13055. ]
  13056. },
  13057. "command": {
  13058. "type": "string"
  13059. },
  13060. "cwd": {
  13061. "type": "string"
  13062. },
  13063. "shell": {
  13064. "type": "string"
  13065. },
  13066. "file": {
  13067. "type": "string"
  13068. },
  13069. "pid": {
  13070. "type": "integer",
  13071. "allOf": [
  13072. {
  13073. "minimum": 0
  13074. }
  13075. ]
  13076. },
  13077. "exit": {
  13078. "anyOf": [
  13079. {
  13080. "type": "number"
  13081. },
  13082. {
  13083. "type": "string",
  13084. "enum": [
  13085. "NaN"
  13086. ]
  13087. },
  13088. {
  13089. "type": "string",
  13090. "enum": [
  13091. "Infinity"
  13092. ]
  13093. },
  13094. {
  13095. "type": "string",
  13096. "enum": [
  13097. "-Infinity"
  13098. ]
  13099. }
  13100. ]
  13101. },
  13102. "metadata": {
  13103. "type": "object"
  13104. },
  13105. "time": {
  13106. "type": "object",
  13107. "properties": {
  13108. "started": {
  13109. "anyOf": [
  13110. {
  13111. "type": "number"
  13112. },
  13113. {
  13114. "type": "string",
  13115. "enum": [
  13116. "NaN"
  13117. ]
  13118. },
  13119. {
  13120. "type": "string",
  13121. "enum": [
  13122. "Infinity"
  13123. ]
  13124. },
  13125. {
  13126. "type": "string",
  13127. "enum": [
  13128. "-Infinity"
  13129. ]
  13130. }
  13131. ]
  13132. },
  13133. "completed": {
  13134. "anyOf": [
  13135. {
  13136. "type": "number"
  13137. },
  13138. {
  13139. "type": "string",
  13140. "enum": [
  13141. "NaN"
  13142. ]
  13143. },
  13144. {
  13145. "type": "string",
  13146. "enum": [
  13147. "Infinity"
  13148. ]
  13149. },
  13150. {
  13151. "type": "string",
  13152. "enum": [
  13153. "-Infinity"
  13154. ]
  13155. }
  13156. ]
  13157. }
  13158. },
  13159. "required": [
  13160. "started"
  13161. ],
  13162. "additionalProperties": false
  13163. }
  13164. },
  13165. "required": [
  13166. "id",
  13167. "status",
  13168. "command",
  13169. "cwd",
  13170. "shell",
  13171. "file",
  13172. "metadata",
  13173. "time"
  13174. ],
  13175. "additionalProperties": false
  13176. },
  13177. "session.shell.started": {
  13178. "type": "object",
  13179. "properties": {
  13180. "id": {
  13181. "type": "string",
  13182. "allOf": [
  13183. {
  13184. "pattern": "^evt_"
  13185. }
  13186. ]
  13187. },
  13188. "created": {
  13189. "type": "number"
  13190. },
  13191. "metadata": {
  13192. "type": "object"
  13193. },
  13194. "type": {
  13195. "type": "string",
  13196. "enum": [
  13197. "session.shell.started"
  13198. ]
  13199. },
  13200. "durable": {
  13201. "type": "object",
  13202. "properties": {
  13203. "aggregateID": {
  13204. "type": "string"
  13205. },
  13206. "seq": {
  13207. "type": "integer",
  13208. "allOf": [
  13209. {
  13210. "minimum": 0
  13211. }
  13212. ]
  13213. },
  13214. "version": {
  13215. "type": "integer",
  13216. "allOf": [
  13217. {
  13218. "minimum": 1
  13219. }
  13220. ]
  13221. }
  13222. },
  13223. "required": [
  13224. "aggregateID",
  13225. "seq",
  13226. "version"
  13227. ],
  13228. "additionalProperties": false
  13229. },
  13230. "location": {
  13231. "$ref": "#/components/schemas/Location.Ref"
  13232. },
  13233. "data": {
  13234. "type": "object",
  13235. "properties": {
  13236. "sessionID": {
  13237. "type": "string",
  13238. "allOf": [
  13239. {
  13240. "pattern": "^ses"
  13241. }
  13242. ]
  13243. },
  13244. "shell": {
  13245. "$ref": "#/components/schemas/Shell1"
  13246. }
  13247. },
  13248. "required": [
  13249. "sessionID",
  13250. "shell"
  13251. ],
  13252. "additionalProperties": false
  13253. }
  13254. },
  13255. "required": [
  13256. "id",
  13257. "created",
  13258. "type",
  13259. "durable",
  13260. "data"
  13261. ],
  13262. "additionalProperties": false
  13263. },
  13264. "session.shell.ended": {
  13265. "type": "object",
  13266. "properties": {
  13267. "id": {
  13268. "type": "string",
  13269. "allOf": [
  13270. {
  13271. "pattern": "^evt_"
  13272. }
  13273. ]
  13274. },
  13275. "created": {
  13276. "type": "number"
  13277. },
  13278. "metadata": {
  13279. "type": "object"
  13280. },
  13281. "type": {
  13282. "type": "string",
  13283. "enum": [
  13284. "session.shell.ended"
  13285. ]
  13286. },
  13287. "durable": {
  13288. "type": "object",
  13289. "properties": {
  13290. "aggregateID": {
  13291. "type": "string"
  13292. },
  13293. "seq": {
  13294. "type": "integer",
  13295. "allOf": [
  13296. {
  13297. "minimum": 0
  13298. }
  13299. ]
  13300. },
  13301. "version": {
  13302. "type": "integer",
  13303. "allOf": [
  13304. {
  13305. "minimum": 1
  13306. }
  13307. ]
  13308. }
  13309. },
  13310. "required": [
  13311. "aggregateID",
  13312. "seq",
  13313. "version"
  13314. ],
  13315. "additionalProperties": false
  13316. },
  13317. "location": {
  13318. "$ref": "#/components/schemas/Location.Ref"
  13319. },
  13320. "data": {
  13321. "type": "object",
  13322. "properties": {
  13323. "sessionID": {
  13324. "type": "string",
  13325. "allOf": [
  13326. {
  13327. "pattern": "^ses"
  13328. }
  13329. ]
  13330. },
  13331. "shell": {
  13332. "$ref": "#/components/schemas/Shell1"
  13333. },
  13334. "output": {
  13335. "type": "object",
  13336. "properties": {
  13337. "output": {
  13338. "type": "string"
  13339. },
  13340. "cursor": {
  13341. "type": "integer",
  13342. "allOf": [
  13343. {
  13344. "minimum": 0
  13345. }
  13346. ]
  13347. },
  13348. "size": {
  13349. "type": "integer",
  13350. "allOf": [
  13351. {
  13352. "minimum": 0
  13353. }
  13354. ]
  13355. },
  13356. "truncated": {
  13357. "type": "boolean"
  13358. }
  13359. },
  13360. "required": [
  13361. "output",
  13362. "cursor",
  13363. "size",
  13364. "truncated"
  13365. ],
  13366. "additionalProperties": false
  13367. }
  13368. },
  13369. "required": [
  13370. "sessionID",
  13371. "shell",
  13372. "output"
  13373. ],
  13374. "additionalProperties": false
  13375. }
  13376. },
  13377. "required": [
  13378. "id",
  13379. "created",
  13380. "type",
  13381. "durable",
  13382. "data"
  13383. ],
  13384. "additionalProperties": false
  13385. },
  13386. "session.step.started": {
  13387. "type": "object",
  13388. "properties": {
  13389. "id": {
  13390. "type": "string",
  13391. "allOf": [
  13392. {
  13393. "pattern": "^evt_"
  13394. }
  13395. ]
  13396. },
  13397. "created": {
  13398. "type": "number"
  13399. },
  13400. "metadata": {
  13401. "type": "object"
  13402. },
  13403. "type": {
  13404. "type": "string",
  13405. "enum": [
  13406. "session.step.started"
  13407. ]
  13408. },
  13409. "durable": {
  13410. "type": "object",
  13411. "properties": {
  13412. "aggregateID": {
  13413. "type": "string"
  13414. },
  13415. "seq": {
  13416. "type": "integer",
  13417. "allOf": [
  13418. {
  13419. "minimum": 0
  13420. }
  13421. ]
  13422. },
  13423. "version": {
  13424. "type": "integer",
  13425. "allOf": [
  13426. {
  13427. "minimum": 1
  13428. }
  13429. ]
  13430. }
  13431. },
  13432. "required": [
  13433. "aggregateID",
  13434. "seq",
  13435. "version"
  13436. ],
  13437. "additionalProperties": false
  13438. },
  13439. "location": {
  13440. "$ref": "#/components/schemas/Location.Ref"
  13441. },
  13442. "data": {
  13443. "type": "object",
  13444. "properties": {
  13445. "sessionID": {
  13446. "type": "string",
  13447. "allOf": [
  13448. {
  13449. "pattern": "^ses"
  13450. }
  13451. ]
  13452. },
  13453. "assistantMessageID": {
  13454. "type": "string",
  13455. "allOf": [
  13456. {
  13457. "pattern": "^msg_"
  13458. }
  13459. ]
  13460. },
  13461. "agent": {
  13462. "type": "string"
  13463. },
  13464. "model": {
  13465. "$ref": "#/components/schemas/Model.Ref"
  13466. },
  13467. "snapshot": {
  13468. "type": "string"
  13469. }
  13470. },
  13471. "required": [
  13472. "sessionID",
  13473. "assistantMessageID",
  13474. "agent",
  13475. "model"
  13476. ],
  13477. "additionalProperties": false
  13478. }
  13479. },
  13480. "required": [
  13481. "id",
  13482. "created",
  13483. "type",
  13484. "durable",
  13485. "data"
  13486. ],
  13487. "additionalProperties": false
  13488. },
  13489. "session.step.ended": {
  13490. "type": "object",
  13491. "properties": {
  13492. "id": {
  13493. "type": "string",
  13494. "allOf": [
  13495. {
  13496. "pattern": "^evt_"
  13497. }
  13498. ]
  13499. },
  13500. "created": {
  13501. "type": "number"
  13502. },
  13503. "metadata": {
  13504. "type": "object"
  13505. },
  13506. "type": {
  13507. "type": "string",
  13508. "enum": [
  13509. "session.step.ended"
  13510. ]
  13511. },
  13512. "durable": {
  13513. "type": "object",
  13514. "properties": {
  13515. "aggregateID": {
  13516. "type": "string"
  13517. },
  13518. "seq": {
  13519. "type": "integer",
  13520. "allOf": [
  13521. {
  13522. "minimum": 0
  13523. }
  13524. ]
  13525. },
  13526. "version": {
  13527. "type": "integer",
  13528. "allOf": [
  13529. {
  13530. "minimum": 1
  13531. }
  13532. ]
  13533. }
  13534. },
  13535. "required": [
  13536. "aggregateID",
  13537. "seq",
  13538. "version"
  13539. ],
  13540. "additionalProperties": false
  13541. },
  13542. "location": {
  13543. "$ref": "#/components/schemas/Location.Ref"
  13544. },
  13545. "data": {
  13546. "type": "object",
  13547. "properties": {
  13548. "sessionID": {
  13549. "type": "string",
  13550. "allOf": [
  13551. {
  13552. "pattern": "^ses"
  13553. }
  13554. ]
  13555. },
  13556. "assistantMessageID": {
  13557. "type": "string",
  13558. "allOf": [
  13559. {
  13560. "pattern": "^msg_"
  13561. }
  13562. ]
  13563. },
  13564. "finish": {
  13565. "type": "string"
  13566. },
  13567. "cost": {
  13568. "type": "number"
  13569. },
  13570. "tokens": {
  13571. "type": "object",
  13572. "properties": {
  13573. "input": {
  13574. "type": "number"
  13575. },
  13576. "output": {
  13577. "type": "number"
  13578. },
  13579. "reasoning": {
  13580. "type": "number"
  13581. },
  13582. "cache": {
  13583. "type": "object",
  13584. "properties": {
  13585. "read": {
  13586. "type": "number"
  13587. },
  13588. "write": {
  13589. "type": "number"
  13590. }
  13591. },
  13592. "required": [
  13593. "read",
  13594. "write"
  13595. ],
  13596. "additionalProperties": false
  13597. }
  13598. },
  13599. "required": [
  13600. "input",
  13601. "output",
  13602. "reasoning",
  13603. "cache"
  13604. ],
  13605. "additionalProperties": false
  13606. },
  13607. "snapshot": {
  13608. "type": "string"
  13609. },
  13610. "files": {
  13611. "type": "array",
  13612. "items": {
  13613. "type": "string"
  13614. }
  13615. }
  13616. },
  13617. "required": [
  13618. "sessionID",
  13619. "assistantMessageID",
  13620. "finish",
  13621. "cost",
  13622. "tokens"
  13623. ],
  13624. "additionalProperties": false
  13625. }
  13626. },
  13627. "required": [
  13628. "id",
  13629. "created",
  13630. "type",
  13631. "durable",
  13632. "data"
  13633. ],
  13634. "additionalProperties": false
  13635. },
  13636. "session.step.failed": {
  13637. "type": "object",
  13638. "properties": {
  13639. "id": {
  13640. "type": "string",
  13641. "allOf": [
  13642. {
  13643. "pattern": "^evt_"
  13644. }
  13645. ]
  13646. },
  13647. "created": {
  13648. "type": "number"
  13649. },
  13650. "metadata": {
  13651. "type": "object"
  13652. },
  13653. "type": {
  13654. "type": "string",
  13655. "enum": [
  13656. "session.step.failed"
  13657. ]
  13658. },
  13659. "durable": {
  13660. "type": "object",
  13661. "properties": {
  13662. "aggregateID": {
  13663. "type": "string"
  13664. },
  13665. "seq": {
  13666. "type": "integer",
  13667. "allOf": [
  13668. {
  13669. "minimum": 0
  13670. }
  13671. ]
  13672. },
  13673. "version": {
  13674. "type": "integer",
  13675. "allOf": [
  13676. {
  13677. "minimum": 1
  13678. }
  13679. ]
  13680. }
  13681. },
  13682. "required": [
  13683. "aggregateID",
  13684. "seq",
  13685. "version"
  13686. ],
  13687. "additionalProperties": false
  13688. },
  13689. "location": {
  13690. "$ref": "#/components/schemas/Location.Ref"
  13691. },
  13692. "data": {
  13693. "type": "object",
  13694. "properties": {
  13695. "sessionID": {
  13696. "type": "string",
  13697. "allOf": [
  13698. {
  13699. "pattern": "^ses"
  13700. }
  13701. ]
  13702. },
  13703. "assistantMessageID": {
  13704. "type": "string",
  13705. "allOf": [
  13706. {
  13707. "pattern": "^msg_"
  13708. }
  13709. ]
  13710. },
  13711. "error": {
  13712. "$ref": "#/components/schemas/Session.Error.Unknown"
  13713. }
  13714. },
  13715. "required": [
  13716. "sessionID",
  13717. "assistantMessageID",
  13718. "error"
  13719. ],
  13720. "additionalProperties": false
  13721. }
  13722. },
  13723. "required": [
  13724. "id",
  13725. "created",
  13726. "type",
  13727. "durable",
  13728. "data"
  13729. ],
  13730. "additionalProperties": false
  13731. },
  13732. "session.text.started": {
  13733. "type": "object",
  13734. "properties": {
  13735. "id": {
  13736. "type": "string",
  13737. "allOf": [
  13738. {
  13739. "pattern": "^evt_"
  13740. }
  13741. ]
  13742. },
  13743. "created": {
  13744. "type": "number"
  13745. },
  13746. "metadata": {
  13747. "type": "object"
  13748. },
  13749. "type": {
  13750. "type": "string",
  13751. "enum": [
  13752. "session.text.started"
  13753. ]
  13754. },
  13755. "durable": {
  13756. "type": "object",
  13757. "properties": {
  13758. "aggregateID": {
  13759. "type": "string"
  13760. },
  13761. "seq": {
  13762. "type": "integer",
  13763. "allOf": [
  13764. {
  13765. "minimum": 0
  13766. }
  13767. ]
  13768. },
  13769. "version": {
  13770. "type": "integer",
  13771. "allOf": [
  13772. {
  13773. "minimum": 1
  13774. }
  13775. ]
  13776. }
  13777. },
  13778. "required": [
  13779. "aggregateID",
  13780. "seq",
  13781. "version"
  13782. ],
  13783. "additionalProperties": false
  13784. },
  13785. "location": {
  13786. "$ref": "#/components/schemas/Location.Ref"
  13787. },
  13788. "data": {
  13789. "type": "object",
  13790. "properties": {
  13791. "sessionID": {
  13792. "type": "string",
  13793. "allOf": [
  13794. {
  13795. "pattern": "^ses"
  13796. }
  13797. ]
  13798. },
  13799. "assistantMessageID": {
  13800. "type": "string",
  13801. "allOf": [
  13802. {
  13803. "pattern": "^msg_"
  13804. }
  13805. ]
  13806. },
  13807. "textID": {
  13808. "type": "string"
  13809. }
  13810. },
  13811. "required": [
  13812. "sessionID",
  13813. "assistantMessageID",
  13814. "textID"
  13815. ],
  13816. "additionalProperties": false
  13817. }
  13818. },
  13819. "required": [
  13820. "id",
  13821. "created",
  13822. "type",
  13823. "durable",
  13824. "data"
  13825. ],
  13826. "additionalProperties": false
  13827. },
  13828. "session.text.ended": {
  13829. "type": "object",
  13830. "properties": {
  13831. "id": {
  13832. "type": "string",
  13833. "allOf": [
  13834. {
  13835. "pattern": "^evt_"
  13836. }
  13837. ]
  13838. },
  13839. "created": {
  13840. "type": "number"
  13841. },
  13842. "metadata": {
  13843. "type": "object"
  13844. },
  13845. "type": {
  13846. "type": "string",
  13847. "enum": [
  13848. "session.text.ended"
  13849. ]
  13850. },
  13851. "durable": {
  13852. "type": "object",
  13853. "properties": {
  13854. "aggregateID": {
  13855. "type": "string"
  13856. },
  13857. "seq": {
  13858. "type": "integer",
  13859. "allOf": [
  13860. {
  13861. "minimum": 0
  13862. }
  13863. ]
  13864. },
  13865. "version": {
  13866. "type": "integer",
  13867. "allOf": [
  13868. {
  13869. "minimum": 1
  13870. }
  13871. ]
  13872. }
  13873. },
  13874. "required": [
  13875. "aggregateID",
  13876. "seq",
  13877. "version"
  13878. ],
  13879. "additionalProperties": false
  13880. },
  13881. "location": {
  13882. "$ref": "#/components/schemas/Location.Ref"
  13883. },
  13884. "data": {
  13885. "type": "object",
  13886. "properties": {
  13887. "sessionID": {
  13888. "type": "string",
  13889. "allOf": [
  13890. {
  13891. "pattern": "^ses"
  13892. }
  13893. ]
  13894. },
  13895. "assistantMessageID": {
  13896. "type": "string",
  13897. "allOf": [
  13898. {
  13899. "pattern": "^msg_"
  13900. }
  13901. ]
  13902. },
  13903. "textID": {
  13904. "type": "string"
  13905. },
  13906. "text": {
  13907. "type": "string"
  13908. }
  13909. },
  13910. "required": [
  13911. "sessionID",
  13912. "assistantMessageID",
  13913. "textID",
  13914. "text"
  13915. ],
  13916. "additionalProperties": false
  13917. }
  13918. },
  13919. "required": [
  13920. "id",
  13921. "created",
  13922. "type",
  13923. "durable",
  13924. "data"
  13925. ],
  13926. "additionalProperties": false
  13927. },
  13928. "LLM.ProviderMetadata3": {
  13929. "type": "object",
  13930. "additionalProperties": {
  13931. "type": "object"
  13932. }
  13933. },
  13934. "session.reasoning.started": {
  13935. "type": "object",
  13936. "properties": {
  13937. "id": {
  13938. "type": "string",
  13939. "allOf": [
  13940. {
  13941. "pattern": "^evt_"
  13942. }
  13943. ]
  13944. },
  13945. "created": {
  13946. "type": "number"
  13947. },
  13948. "metadata": {
  13949. "type": "object"
  13950. },
  13951. "type": {
  13952. "type": "string",
  13953. "enum": [
  13954. "session.reasoning.started"
  13955. ]
  13956. },
  13957. "durable": {
  13958. "type": "object",
  13959. "properties": {
  13960. "aggregateID": {
  13961. "type": "string"
  13962. },
  13963. "seq": {
  13964. "type": "integer",
  13965. "allOf": [
  13966. {
  13967. "minimum": 0
  13968. }
  13969. ]
  13970. },
  13971. "version": {
  13972. "type": "integer",
  13973. "allOf": [
  13974. {
  13975. "minimum": 1
  13976. }
  13977. ]
  13978. }
  13979. },
  13980. "required": [
  13981. "aggregateID",
  13982. "seq",
  13983. "version"
  13984. ],
  13985. "additionalProperties": false
  13986. },
  13987. "location": {
  13988. "$ref": "#/components/schemas/Location.Ref"
  13989. },
  13990. "data": {
  13991. "type": "object",
  13992. "properties": {
  13993. "sessionID": {
  13994. "type": "string",
  13995. "allOf": [
  13996. {
  13997. "pattern": "^ses"
  13998. }
  13999. ]
  14000. },
  14001. "assistantMessageID": {
  14002. "type": "string",
  14003. "allOf": [
  14004. {
  14005. "pattern": "^msg_"
  14006. }
  14007. ]
  14008. },
  14009. "reasoningID": {
  14010. "type": "string"
  14011. },
  14012. "providerMetadata": {
  14013. "$ref": "#/components/schemas/LLM.ProviderMetadata3"
  14014. }
  14015. },
  14016. "required": [
  14017. "sessionID",
  14018. "assistantMessageID",
  14019. "reasoningID"
  14020. ],
  14021. "additionalProperties": false
  14022. }
  14023. },
  14024. "required": [
  14025. "id",
  14026. "created",
  14027. "type",
  14028. "durable",
  14029. "data"
  14030. ],
  14031. "additionalProperties": false
  14032. },
  14033. "LLM.ProviderMetadata4": {
  14034. "type": "object",
  14035. "additionalProperties": {
  14036. "type": "object"
  14037. }
  14038. },
  14039. "session.reasoning.ended": {
  14040. "type": "object",
  14041. "properties": {
  14042. "id": {
  14043. "type": "string",
  14044. "allOf": [
  14045. {
  14046. "pattern": "^evt_"
  14047. }
  14048. ]
  14049. },
  14050. "created": {
  14051. "type": "number"
  14052. },
  14053. "metadata": {
  14054. "type": "object"
  14055. },
  14056. "type": {
  14057. "type": "string",
  14058. "enum": [
  14059. "session.reasoning.ended"
  14060. ]
  14061. },
  14062. "durable": {
  14063. "type": "object",
  14064. "properties": {
  14065. "aggregateID": {
  14066. "type": "string"
  14067. },
  14068. "seq": {
  14069. "type": "integer",
  14070. "allOf": [
  14071. {
  14072. "minimum": 0
  14073. }
  14074. ]
  14075. },
  14076. "version": {
  14077. "type": "integer",
  14078. "allOf": [
  14079. {
  14080. "minimum": 1
  14081. }
  14082. ]
  14083. }
  14084. },
  14085. "required": [
  14086. "aggregateID",
  14087. "seq",
  14088. "version"
  14089. ],
  14090. "additionalProperties": false
  14091. },
  14092. "location": {
  14093. "$ref": "#/components/schemas/Location.Ref"
  14094. },
  14095. "data": {
  14096. "type": "object",
  14097. "properties": {
  14098. "sessionID": {
  14099. "type": "string",
  14100. "allOf": [
  14101. {
  14102. "pattern": "^ses"
  14103. }
  14104. ]
  14105. },
  14106. "assistantMessageID": {
  14107. "type": "string",
  14108. "allOf": [
  14109. {
  14110. "pattern": "^msg_"
  14111. }
  14112. ]
  14113. },
  14114. "reasoningID": {
  14115. "type": "string"
  14116. },
  14117. "text": {
  14118. "type": "string"
  14119. },
  14120. "providerMetadata": {
  14121. "$ref": "#/components/schemas/LLM.ProviderMetadata4"
  14122. }
  14123. },
  14124. "required": [
  14125. "sessionID",
  14126. "assistantMessageID",
  14127. "reasoningID",
  14128. "text"
  14129. ],
  14130. "additionalProperties": false
  14131. }
  14132. },
  14133. "required": [
  14134. "id",
  14135. "created",
  14136. "type",
  14137. "durable",
  14138. "data"
  14139. ],
  14140. "additionalProperties": false
  14141. },
  14142. "session.tool.input.started": {
  14143. "type": "object",
  14144. "properties": {
  14145. "id": {
  14146. "type": "string",
  14147. "allOf": [
  14148. {
  14149. "pattern": "^evt_"
  14150. }
  14151. ]
  14152. },
  14153. "created": {
  14154. "type": "number"
  14155. },
  14156. "metadata": {
  14157. "type": "object"
  14158. },
  14159. "type": {
  14160. "type": "string",
  14161. "enum": [
  14162. "session.tool.input.started"
  14163. ]
  14164. },
  14165. "durable": {
  14166. "type": "object",
  14167. "properties": {
  14168. "aggregateID": {
  14169. "type": "string"
  14170. },
  14171. "seq": {
  14172. "type": "integer",
  14173. "allOf": [
  14174. {
  14175. "minimum": 0
  14176. }
  14177. ]
  14178. },
  14179. "version": {
  14180. "type": "integer",
  14181. "allOf": [
  14182. {
  14183. "minimum": 1
  14184. }
  14185. ]
  14186. }
  14187. },
  14188. "required": [
  14189. "aggregateID",
  14190. "seq",
  14191. "version"
  14192. ],
  14193. "additionalProperties": false
  14194. },
  14195. "location": {
  14196. "$ref": "#/components/schemas/Location.Ref"
  14197. },
  14198. "data": {
  14199. "type": "object",
  14200. "properties": {
  14201. "sessionID": {
  14202. "type": "string",
  14203. "allOf": [
  14204. {
  14205. "pattern": "^ses"
  14206. }
  14207. ]
  14208. },
  14209. "assistantMessageID": {
  14210. "type": "string",
  14211. "allOf": [
  14212. {
  14213. "pattern": "^msg_"
  14214. }
  14215. ]
  14216. },
  14217. "callID": {
  14218. "type": "string"
  14219. },
  14220. "name": {
  14221. "type": "string"
  14222. }
  14223. },
  14224. "required": [
  14225. "sessionID",
  14226. "assistantMessageID",
  14227. "callID",
  14228. "name"
  14229. ],
  14230. "additionalProperties": false
  14231. }
  14232. },
  14233. "required": [
  14234. "id",
  14235. "created",
  14236. "type",
  14237. "durable",
  14238. "data"
  14239. ],
  14240. "additionalProperties": false
  14241. },
  14242. "session.tool.input.ended": {
  14243. "type": "object",
  14244. "properties": {
  14245. "id": {
  14246. "type": "string",
  14247. "allOf": [
  14248. {
  14249. "pattern": "^evt_"
  14250. }
  14251. ]
  14252. },
  14253. "created": {
  14254. "type": "number"
  14255. },
  14256. "metadata": {
  14257. "type": "object"
  14258. },
  14259. "type": {
  14260. "type": "string",
  14261. "enum": [
  14262. "session.tool.input.ended"
  14263. ]
  14264. },
  14265. "durable": {
  14266. "type": "object",
  14267. "properties": {
  14268. "aggregateID": {
  14269. "type": "string"
  14270. },
  14271. "seq": {
  14272. "type": "integer",
  14273. "allOf": [
  14274. {
  14275. "minimum": 0
  14276. }
  14277. ]
  14278. },
  14279. "version": {
  14280. "type": "integer",
  14281. "allOf": [
  14282. {
  14283. "minimum": 1
  14284. }
  14285. ]
  14286. }
  14287. },
  14288. "required": [
  14289. "aggregateID",
  14290. "seq",
  14291. "version"
  14292. ],
  14293. "additionalProperties": false
  14294. },
  14295. "location": {
  14296. "$ref": "#/components/schemas/Location.Ref"
  14297. },
  14298. "data": {
  14299. "type": "object",
  14300. "properties": {
  14301. "sessionID": {
  14302. "type": "string",
  14303. "allOf": [
  14304. {
  14305. "pattern": "^ses"
  14306. }
  14307. ]
  14308. },
  14309. "assistantMessageID": {
  14310. "type": "string",
  14311. "allOf": [
  14312. {
  14313. "pattern": "^msg_"
  14314. }
  14315. ]
  14316. },
  14317. "callID": {
  14318. "type": "string"
  14319. },
  14320. "text": {
  14321. "type": "string"
  14322. }
  14323. },
  14324. "required": [
  14325. "sessionID",
  14326. "assistantMessageID",
  14327. "callID",
  14328. "text"
  14329. ],
  14330. "additionalProperties": false
  14331. }
  14332. },
  14333. "required": [
  14334. "id",
  14335. "created",
  14336. "type",
  14337. "durable",
  14338. "data"
  14339. ],
  14340. "additionalProperties": false
  14341. },
  14342. "LLM.ProviderMetadata5": {
  14343. "type": "object",
  14344. "additionalProperties": {
  14345. "type": "object"
  14346. }
  14347. },
  14348. "session.tool.called": {
  14349. "type": "object",
  14350. "properties": {
  14351. "id": {
  14352. "type": "string",
  14353. "allOf": [
  14354. {
  14355. "pattern": "^evt_"
  14356. }
  14357. ]
  14358. },
  14359. "created": {
  14360. "type": "number"
  14361. },
  14362. "metadata": {
  14363. "type": "object"
  14364. },
  14365. "type": {
  14366. "type": "string",
  14367. "enum": [
  14368. "session.tool.called"
  14369. ]
  14370. },
  14371. "durable": {
  14372. "type": "object",
  14373. "properties": {
  14374. "aggregateID": {
  14375. "type": "string"
  14376. },
  14377. "seq": {
  14378. "type": "integer",
  14379. "allOf": [
  14380. {
  14381. "minimum": 0
  14382. }
  14383. ]
  14384. },
  14385. "version": {
  14386. "type": "integer",
  14387. "allOf": [
  14388. {
  14389. "minimum": 1
  14390. }
  14391. ]
  14392. }
  14393. },
  14394. "required": [
  14395. "aggregateID",
  14396. "seq",
  14397. "version"
  14398. ],
  14399. "additionalProperties": false
  14400. },
  14401. "location": {
  14402. "$ref": "#/components/schemas/Location.Ref"
  14403. },
  14404. "data": {
  14405. "type": "object",
  14406. "properties": {
  14407. "sessionID": {
  14408. "type": "string",
  14409. "allOf": [
  14410. {
  14411. "pattern": "^ses"
  14412. }
  14413. ]
  14414. },
  14415. "assistantMessageID": {
  14416. "type": "string",
  14417. "allOf": [
  14418. {
  14419. "pattern": "^msg_"
  14420. }
  14421. ]
  14422. },
  14423. "callID": {
  14424. "type": "string"
  14425. },
  14426. "tool": {
  14427. "type": "string"
  14428. },
  14429. "input": {
  14430. "type": "object"
  14431. },
  14432. "provider": {
  14433. "type": "object",
  14434. "properties": {
  14435. "executed": {
  14436. "type": "boolean"
  14437. },
  14438. "metadata": {
  14439. "$ref": "#/components/schemas/LLM.ProviderMetadata5"
  14440. }
  14441. },
  14442. "required": [
  14443. "executed"
  14444. ],
  14445. "additionalProperties": false
  14446. }
  14447. },
  14448. "required": [
  14449. "sessionID",
  14450. "assistantMessageID",
  14451. "callID",
  14452. "tool",
  14453. "input",
  14454. "provider"
  14455. ],
  14456. "additionalProperties": false
  14457. }
  14458. },
  14459. "required": [
  14460. "id",
  14461. "created",
  14462. "type",
  14463. "durable",
  14464. "data"
  14465. ],
  14466. "additionalProperties": false
  14467. },
  14468. "session.tool.progress": {
  14469. "type": "object",
  14470. "properties": {
  14471. "id": {
  14472. "type": "string",
  14473. "allOf": [
  14474. {
  14475. "pattern": "^evt_"
  14476. }
  14477. ]
  14478. },
  14479. "created": {
  14480. "type": "number"
  14481. },
  14482. "metadata": {
  14483. "type": "object"
  14484. },
  14485. "type": {
  14486. "type": "string",
  14487. "enum": [
  14488. "session.tool.progress"
  14489. ]
  14490. },
  14491. "durable": {
  14492. "type": "object",
  14493. "properties": {
  14494. "aggregateID": {
  14495. "type": "string"
  14496. },
  14497. "seq": {
  14498. "type": "integer",
  14499. "allOf": [
  14500. {
  14501. "minimum": 0
  14502. }
  14503. ]
  14504. },
  14505. "version": {
  14506. "type": "integer",
  14507. "allOf": [
  14508. {
  14509. "minimum": 1
  14510. }
  14511. ]
  14512. }
  14513. },
  14514. "required": [
  14515. "aggregateID",
  14516. "seq",
  14517. "version"
  14518. ],
  14519. "additionalProperties": false
  14520. },
  14521. "location": {
  14522. "$ref": "#/components/schemas/Location.Ref"
  14523. },
  14524. "data": {
  14525. "type": "object",
  14526. "properties": {
  14527. "sessionID": {
  14528. "type": "string",
  14529. "allOf": [
  14530. {
  14531. "pattern": "^ses"
  14532. }
  14533. ]
  14534. },
  14535. "assistantMessageID": {
  14536. "type": "string",
  14537. "allOf": [
  14538. {
  14539. "pattern": "^msg_"
  14540. }
  14541. ]
  14542. },
  14543. "callID": {
  14544. "type": "string"
  14545. },
  14546. "structured": {
  14547. "type": "object"
  14548. },
  14549. "content": {
  14550. "type": "array",
  14551. "items": {
  14552. "$ref": "#/components/schemas/LLM.ToolContent"
  14553. }
  14554. }
  14555. },
  14556. "required": [
  14557. "sessionID",
  14558. "assistantMessageID",
  14559. "callID",
  14560. "structured",
  14561. "content"
  14562. ],
  14563. "additionalProperties": false
  14564. }
  14565. },
  14566. "required": [
  14567. "id",
  14568. "created",
  14569. "type",
  14570. "durable",
  14571. "data"
  14572. ],
  14573. "additionalProperties": false
  14574. },
  14575. "LLM.ProviderMetadata6": {
  14576. "type": "object",
  14577. "additionalProperties": {
  14578. "type": "object"
  14579. }
  14580. },
  14581. "session.tool.success": {
  14582. "type": "object",
  14583. "properties": {
  14584. "id": {
  14585. "type": "string",
  14586. "allOf": [
  14587. {
  14588. "pattern": "^evt_"
  14589. }
  14590. ]
  14591. },
  14592. "created": {
  14593. "type": "number"
  14594. },
  14595. "metadata": {
  14596. "type": "object"
  14597. },
  14598. "type": {
  14599. "type": "string",
  14600. "enum": [
  14601. "session.tool.success"
  14602. ]
  14603. },
  14604. "durable": {
  14605. "type": "object",
  14606. "properties": {
  14607. "aggregateID": {
  14608. "type": "string"
  14609. },
  14610. "seq": {
  14611. "type": "integer",
  14612. "allOf": [
  14613. {
  14614. "minimum": 0
  14615. }
  14616. ]
  14617. },
  14618. "version": {
  14619. "type": "integer",
  14620. "allOf": [
  14621. {
  14622. "minimum": 1
  14623. }
  14624. ]
  14625. }
  14626. },
  14627. "required": [
  14628. "aggregateID",
  14629. "seq",
  14630. "version"
  14631. ],
  14632. "additionalProperties": false
  14633. },
  14634. "location": {
  14635. "$ref": "#/components/schemas/Location.Ref"
  14636. },
  14637. "data": {
  14638. "type": "object",
  14639. "properties": {
  14640. "sessionID": {
  14641. "type": "string",
  14642. "allOf": [
  14643. {
  14644. "pattern": "^ses"
  14645. }
  14646. ]
  14647. },
  14648. "assistantMessageID": {
  14649. "type": "string",
  14650. "allOf": [
  14651. {
  14652. "pattern": "^msg_"
  14653. }
  14654. ]
  14655. },
  14656. "callID": {
  14657. "type": "string"
  14658. },
  14659. "structured": {
  14660. "type": "object"
  14661. },
  14662. "content": {
  14663. "type": "array",
  14664. "items": {
  14665. "$ref": "#/components/schemas/LLM.ToolContent"
  14666. }
  14667. },
  14668. "outputPaths": {
  14669. "type": "array",
  14670. "items": {
  14671. "type": "string"
  14672. }
  14673. },
  14674. "result": {},
  14675. "provider": {
  14676. "type": "object",
  14677. "properties": {
  14678. "executed": {
  14679. "type": "boolean"
  14680. },
  14681. "metadata": {
  14682. "$ref": "#/components/schemas/LLM.ProviderMetadata6"
  14683. }
  14684. },
  14685. "required": [
  14686. "executed"
  14687. ],
  14688. "additionalProperties": false
  14689. }
  14690. },
  14691. "required": [
  14692. "sessionID",
  14693. "assistantMessageID",
  14694. "callID",
  14695. "structured",
  14696. "content",
  14697. "provider"
  14698. ],
  14699. "additionalProperties": false
  14700. }
  14701. },
  14702. "required": [
  14703. "id",
  14704. "created",
  14705. "type",
  14706. "durable",
  14707. "data"
  14708. ],
  14709. "additionalProperties": false
  14710. },
  14711. "LLM.ProviderMetadata7": {
  14712. "type": "object",
  14713. "additionalProperties": {
  14714. "type": "object"
  14715. }
  14716. },
  14717. "session.tool.failed": {
  14718. "type": "object",
  14719. "properties": {
  14720. "id": {
  14721. "type": "string",
  14722. "allOf": [
  14723. {
  14724. "pattern": "^evt_"
  14725. }
  14726. ]
  14727. },
  14728. "created": {
  14729. "type": "number"
  14730. },
  14731. "metadata": {
  14732. "type": "object"
  14733. },
  14734. "type": {
  14735. "type": "string",
  14736. "enum": [
  14737. "session.tool.failed"
  14738. ]
  14739. },
  14740. "durable": {
  14741. "type": "object",
  14742. "properties": {
  14743. "aggregateID": {
  14744. "type": "string"
  14745. },
  14746. "seq": {
  14747. "type": "integer",
  14748. "allOf": [
  14749. {
  14750. "minimum": 0
  14751. }
  14752. ]
  14753. },
  14754. "version": {
  14755. "type": "integer",
  14756. "allOf": [
  14757. {
  14758. "minimum": 1
  14759. }
  14760. ]
  14761. }
  14762. },
  14763. "required": [
  14764. "aggregateID",
  14765. "seq",
  14766. "version"
  14767. ],
  14768. "additionalProperties": false
  14769. },
  14770. "location": {
  14771. "$ref": "#/components/schemas/Location.Ref"
  14772. },
  14773. "data": {
  14774. "type": "object",
  14775. "properties": {
  14776. "sessionID": {
  14777. "type": "string",
  14778. "allOf": [
  14779. {
  14780. "pattern": "^ses"
  14781. }
  14782. ]
  14783. },
  14784. "assistantMessageID": {
  14785. "type": "string",
  14786. "allOf": [
  14787. {
  14788. "pattern": "^msg_"
  14789. }
  14790. ]
  14791. },
  14792. "callID": {
  14793. "type": "string"
  14794. },
  14795. "error": {
  14796. "$ref": "#/components/schemas/Session.Error.Unknown"
  14797. },
  14798. "result": {},
  14799. "provider": {
  14800. "type": "object",
  14801. "properties": {
  14802. "executed": {
  14803. "type": "boolean"
  14804. },
  14805. "metadata": {
  14806. "$ref": "#/components/schemas/LLM.ProviderMetadata7"
  14807. }
  14808. },
  14809. "required": [
  14810. "executed"
  14811. ],
  14812. "additionalProperties": false
  14813. }
  14814. },
  14815. "required": [
  14816. "sessionID",
  14817. "assistantMessageID",
  14818. "callID",
  14819. "error",
  14820. "provider"
  14821. ],
  14822. "additionalProperties": false
  14823. }
  14824. },
  14825. "required": [
  14826. "id",
  14827. "created",
  14828. "type",
  14829. "durable",
  14830. "data"
  14831. ],
  14832. "additionalProperties": false
  14833. },
  14834. "session.retry.error": {
  14835. "type": "object",
  14836. "properties": {
  14837. "message": {
  14838. "type": "string"
  14839. },
  14840. "statusCode": {
  14841. "type": "number"
  14842. },
  14843. "isRetryable": {
  14844. "type": "boolean"
  14845. },
  14846. "responseHeaders": {
  14847. "type": "object",
  14848. "additionalProperties": {
  14849. "type": "string"
  14850. }
  14851. },
  14852. "responseBody": {
  14853. "type": "string"
  14854. },
  14855. "metadata": {
  14856. "type": "object",
  14857. "additionalProperties": {
  14858. "type": "string"
  14859. }
  14860. }
  14861. },
  14862. "required": [
  14863. "message",
  14864. "isRetryable"
  14865. ],
  14866. "additionalProperties": false
  14867. },
  14868. "session.retried": {
  14869. "type": "object",
  14870. "properties": {
  14871. "id": {
  14872. "type": "string",
  14873. "allOf": [
  14874. {
  14875. "pattern": "^evt_"
  14876. }
  14877. ]
  14878. },
  14879. "created": {
  14880. "type": "number"
  14881. },
  14882. "metadata": {
  14883. "type": "object"
  14884. },
  14885. "type": {
  14886. "type": "string",
  14887. "enum": [
  14888. "session.retried"
  14889. ]
  14890. },
  14891. "durable": {
  14892. "type": "object",
  14893. "properties": {
  14894. "aggregateID": {
  14895. "type": "string"
  14896. },
  14897. "seq": {
  14898. "type": "integer",
  14899. "allOf": [
  14900. {
  14901. "minimum": 0
  14902. }
  14903. ]
  14904. },
  14905. "version": {
  14906. "type": "integer",
  14907. "allOf": [
  14908. {
  14909. "minimum": 1
  14910. }
  14911. ]
  14912. }
  14913. },
  14914. "required": [
  14915. "aggregateID",
  14916. "seq",
  14917. "version"
  14918. ],
  14919. "additionalProperties": false
  14920. },
  14921. "location": {
  14922. "$ref": "#/components/schemas/Location.Ref"
  14923. },
  14924. "data": {
  14925. "type": "object",
  14926. "properties": {
  14927. "sessionID": {
  14928. "type": "string",
  14929. "allOf": [
  14930. {
  14931. "pattern": "^ses"
  14932. }
  14933. ]
  14934. },
  14935. "attempt": {
  14936. "type": "number"
  14937. },
  14938. "error": {
  14939. "$ref": "#/components/schemas/session.retry.error"
  14940. }
  14941. },
  14942. "required": [
  14943. "sessionID",
  14944. "attempt",
  14945. "error"
  14946. ],
  14947. "additionalProperties": false
  14948. }
  14949. },
  14950. "required": [
  14951. "id",
  14952. "created",
  14953. "type",
  14954. "durable",
  14955. "data"
  14956. ],
  14957. "additionalProperties": false
  14958. },
  14959. "session.compaction.started": {
  14960. "type": "object",
  14961. "properties": {
  14962. "id": {
  14963. "type": "string",
  14964. "allOf": [
  14965. {
  14966. "pattern": "^evt_"
  14967. }
  14968. ]
  14969. },
  14970. "created": {
  14971. "type": "number"
  14972. },
  14973. "metadata": {
  14974. "type": "object"
  14975. },
  14976. "type": {
  14977. "type": "string",
  14978. "enum": [
  14979. "session.compaction.started"
  14980. ]
  14981. },
  14982. "durable": {
  14983. "type": "object",
  14984. "properties": {
  14985. "aggregateID": {
  14986. "type": "string"
  14987. },
  14988. "seq": {
  14989. "type": "integer",
  14990. "allOf": [
  14991. {
  14992. "minimum": 0
  14993. }
  14994. ]
  14995. },
  14996. "version": {
  14997. "type": "integer",
  14998. "allOf": [
  14999. {
  15000. "minimum": 1
  15001. }
  15002. ]
  15003. }
  15004. },
  15005. "required": [
  15006. "aggregateID",
  15007. "seq",
  15008. "version"
  15009. ],
  15010. "additionalProperties": false
  15011. },
  15012. "location": {
  15013. "$ref": "#/components/schemas/Location.Ref"
  15014. },
  15015. "data": {
  15016. "type": "object",
  15017. "properties": {
  15018. "sessionID": {
  15019. "type": "string",
  15020. "allOf": [
  15021. {
  15022. "pattern": "^ses"
  15023. }
  15024. ]
  15025. },
  15026. "reason": {
  15027. "type": "string",
  15028. "enum": [
  15029. "auto",
  15030. "manual"
  15031. ]
  15032. }
  15033. },
  15034. "required": [
  15035. "sessionID",
  15036. "reason"
  15037. ],
  15038. "additionalProperties": false
  15039. }
  15040. },
  15041. "required": [
  15042. "id",
  15043. "created",
  15044. "type",
  15045. "durable",
  15046. "data"
  15047. ],
  15048. "additionalProperties": false
  15049. },
  15050. "session.compaction.ended": {
  15051. "type": "object",
  15052. "properties": {
  15053. "id": {
  15054. "type": "string",
  15055. "allOf": [
  15056. {
  15057. "pattern": "^evt_"
  15058. }
  15059. ]
  15060. },
  15061. "created": {
  15062. "type": "number"
  15063. },
  15064. "metadata": {
  15065. "type": "object"
  15066. },
  15067. "type": {
  15068. "type": "string",
  15069. "enum": [
  15070. "session.compaction.ended"
  15071. ]
  15072. },
  15073. "durable": {
  15074. "type": "object",
  15075. "properties": {
  15076. "aggregateID": {
  15077. "type": "string"
  15078. },
  15079. "seq": {
  15080. "type": "integer",
  15081. "allOf": [
  15082. {
  15083. "minimum": 0
  15084. }
  15085. ]
  15086. },
  15087. "version": {
  15088. "type": "integer",
  15089. "allOf": [
  15090. {
  15091. "minimum": 1
  15092. }
  15093. ]
  15094. }
  15095. },
  15096. "required": [
  15097. "aggregateID",
  15098. "seq",
  15099. "version"
  15100. ],
  15101. "additionalProperties": false
  15102. },
  15103. "location": {
  15104. "$ref": "#/components/schemas/Location.Ref"
  15105. },
  15106. "data": {
  15107. "type": "object",
  15108. "properties": {
  15109. "sessionID": {
  15110. "type": "string",
  15111. "allOf": [
  15112. {
  15113. "pattern": "^ses"
  15114. }
  15115. ]
  15116. },
  15117. "reason": {
  15118. "type": "string",
  15119. "enum": [
  15120. "auto",
  15121. "manual"
  15122. ]
  15123. },
  15124. "text": {
  15125. "type": "string"
  15126. },
  15127. "recent": {
  15128. "type": "string"
  15129. }
  15130. },
  15131. "required": [
  15132. "sessionID",
  15133. "reason",
  15134. "text",
  15135. "recent"
  15136. ],
  15137. "additionalProperties": false
  15138. }
  15139. },
  15140. "required": [
  15141. "id",
  15142. "created",
  15143. "type",
  15144. "durable",
  15145. "data"
  15146. ],
  15147. "additionalProperties": false
  15148. },
  15149. "session.revert.staged": {
  15150. "type": "object",
  15151. "properties": {
  15152. "id": {
  15153. "type": "string",
  15154. "allOf": [
  15155. {
  15156. "pattern": "^evt_"
  15157. }
  15158. ]
  15159. },
  15160. "created": {
  15161. "type": "number"
  15162. },
  15163. "metadata": {
  15164. "type": "object"
  15165. },
  15166. "type": {
  15167. "type": "string",
  15168. "enum": [
  15169. "session.revert.staged"
  15170. ]
  15171. },
  15172. "durable": {
  15173. "type": "object",
  15174. "properties": {
  15175. "aggregateID": {
  15176. "type": "string"
  15177. },
  15178. "seq": {
  15179. "type": "integer",
  15180. "allOf": [
  15181. {
  15182. "minimum": 0
  15183. }
  15184. ]
  15185. },
  15186. "version": {
  15187. "type": "integer",
  15188. "allOf": [
  15189. {
  15190. "minimum": 1
  15191. }
  15192. ]
  15193. }
  15194. },
  15195. "required": [
  15196. "aggregateID",
  15197. "seq",
  15198. "version"
  15199. ],
  15200. "additionalProperties": false
  15201. },
  15202. "location": {
  15203. "$ref": "#/components/schemas/Location.Ref"
  15204. },
  15205. "data": {
  15206. "type": "object",
  15207. "properties": {
  15208. "sessionID": {
  15209. "type": "string",
  15210. "allOf": [
  15211. {
  15212. "pattern": "^ses"
  15213. }
  15214. ]
  15215. },
  15216. "revert": {
  15217. "$ref": "#/components/schemas/Revert.State"
  15218. }
  15219. },
  15220. "required": [
  15221. "sessionID",
  15222. "revert"
  15223. ],
  15224. "additionalProperties": false
  15225. }
  15226. },
  15227. "required": [
  15228. "id",
  15229. "created",
  15230. "type",
  15231. "durable",
  15232. "data"
  15233. ],
  15234. "additionalProperties": false
  15235. },
  15236. "session.revert.cleared": {
  15237. "type": "object",
  15238. "properties": {
  15239. "id": {
  15240. "type": "string",
  15241. "allOf": [
  15242. {
  15243. "pattern": "^evt_"
  15244. }
  15245. ]
  15246. },
  15247. "created": {
  15248. "type": "number"
  15249. },
  15250. "metadata": {
  15251. "type": "object"
  15252. },
  15253. "type": {
  15254. "type": "string",
  15255. "enum": [
  15256. "session.revert.cleared"
  15257. ]
  15258. },
  15259. "durable": {
  15260. "type": "object",
  15261. "properties": {
  15262. "aggregateID": {
  15263. "type": "string"
  15264. },
  15265. "seq": {
  15266. "type": "integer",
  15267. "allOf": [
  15268. {
  15269. "minimum": 0
  15270. }
  15271. ]
  15272. },
  15273. "version": {
  15274. "type": "integer",
  15275. "allOf": [
  15276. {
  15277. "minimum": 1
  15278. }
  15279. ]
  15280. }
  15281. },
  15282. "required": [
  15283. "aggregateID",
  15284. "seq",
  15285. "version"
  15286. ],
  15287. "additionalProperties": false
  15288. },
  15289. "location": {
  15290. "$ref": "#/components/schemas/Location.Ref"
  15291. },
  15292. "data": {
  15293. "type": "object",
  15294. "properties": {
  15295. "sessionID": {
  15296. "type": "string",
  15297. "allOf": [
  15298. {
  15299. "pattern": "^ses"
  15300. }
  15301. ]
  15302. }
  15303. },
  15304. "required": [
  15305. "sessionID"
  15306. ],
  15307. "additionalProperties": false
  15308. }
  15309. },
  15310. "required": [
  15311. "id",
  15312. "created",
  15313. "type",
  15314. "durable",
  15315. "data"
  15316. ],
  15317. "additionalProperties": false
  15318. },
  15319. "session.revert.committed": {
  15320. "type": "object",
  15321. "properties": {
  15322. "id": {
  15323. "type": "string",
  15324. "allOf": [
  15325. {
  15326. "pattern": "^evt_"
  15327. }
  15328. ]
  15329. },
  15330. "created": {
  15331. "type": "number"
  15332. },
  15333. "metadata": {
  15334. "type": "object"
  15335. },
  15336. "type": {
  15337. "type": "string",
  15338. "enum": [
  15339. "session.revert.committed"
  15340. ]
  15341. },
  15342. "durable": {
  15343. "type": "object",
  15344. "properties": {
  15345. "aggregateID": {
  15346. "type": "string"
  15347. },
  15348. "seq": {
  15349. "type": "integer",
  15350. "allOf": [
  15351. {
  15352. "minimum": 0
  15353. }
  15354. ]
  15355. },
  15356. "version": {
  15357. "type": "integer",
  15358. "allOf": [
  15359. {
  15360. "minimum": 1
  15361. }
  15362. ]
  15363. }
  15364. },
  15365. "required": [
  15366. "aggregateID",
  15367. "seq",
  15368. "version"
  15369. ],
  15370. "additionalProperties": false
  15371. },
  15372. "location": {
  15373. "$ref": "#/components/schemas/Location.Ref"
  15374. },
  15375. "data": {
  15376. "type": "object",
  15377. "properties": {
  15378. "sessionID": {
  15379. "type": "string",
  15380. "allOf": [
  15381. {
  15382. "pattern": "^ses"
  15383. }
  15384. ]
  15385. },
  15386. "messageID": {
  15387. "type": "string",
  15388. "allOf": [
  15389. {
  15390. "pattern": "^msg_"
  15391. }
  15392. ]
  15393. }
  15394. },
  15395. "required": [
  15396. "sessionID",
  15397. "messageID"
  15398. ],
  15399. "additionalProperties": false
  15400. }
  15401. },
  15402. "required": [
  15403. "id",
  15404. "created",
  15405. "type",
  15406. "durable",
  15407. "data"
  15408. ],
  15409. "additionalProperties": false
  15410. },
  15411. "SessionDurableEvent": {
  15412. "oneOf": [
  15413. {
  15414. "$ref": "#/components/schemas/session.agent.selected"
  15415. },
  15416. {
  15417. "$ref": "#/components/schemas/session.model.selected"
  15418. },
  15419. {
  15420. "$ref": "#/components/schemas/session.moved"
  15421. },
  15422. {
  15423. "$ref": "#/components/schemas/session.renamed"
  15424. },
  15425. {
  15426. "$ref": "#/components/schemas/session.forked"
  15427. },
  15428. {
  15429. "$ref": "#/components/schemas/session.prompt.promoted"
  15430. },
  15431. {
  15432. "$ref": "#/components/schemas/session.prompt.admitted"
  15433. },
  15434. {
  15435. "$ref": "#/components/schemas/session.context.updated"
  15436. },
  15437. {
  15438. "$ref": "#/components/schemas/session.synthetic"
  15439. },
  15440. {
  15441. "$ref": "#/components/schemas/session.skill.activated"
  15442. },
  15443. {
  15444. "$ref": "#/components/schemas/session.shell.started"
  15445. },
  15446. {
  15447. "$ref": "#/components/schemas/session.shell.ended"
  15448. },
  15449. {
  15450. "$ref": "#/components/schemas/session.step.started"
  15451. },
  15452. {
  15453. "$ref": "#/components/schemas/session.step.ended"
  15454. },
  15455. {
  15456. "$ref": "#/components/schemas/session.step.failed"
  15457. },
  15458. {
  15459. "$ref": "#/components/schemas/session.text.started"
  15460. },
  15461. {
  15462. "$ref": "#/components/schemas/session.text.ended"
  15463. },
  15464. {
  15465. "$ref": "#/components/schemas/session.reasoning.started"
  15466. },
  15467. {
  15468. "$ref": "#/components/schemas/session.reasoning.ended"
  15469. },
  15470. {
  15471. "$ref": "#/components/schemas/session.tool.input.started"
  15472. },
  15473. {
  15474. "$ref": "#/components/schemas/session.tool.input.ended"
  15475. },
  15476. {
  15477. "$ref": "#/components/schemas/session.tool.called"
  15478. },
  15479. {
  15480. "$ref": "#/components/schemas/session.tool.progress"
  15481. },
  15482. {
  15483. "$ref": "#/components/schemas/session.tool.success"
  15484. },
  15485. {
  15486. "$ref": "#/components/schemas/session.tool.failed"
  15487. },
  15488. {
  15489. "$ref": "#/components/schemas/session.retried"
  15490. },
  15491. {
  15492. "$ref": "#/components/schemas/session.compaction.started"
  15493. },
  15494. {
  15495. "$ref": "#/components/schemas/session.compaction.ended"
  15496. },
  15497. {
  15498. "$ref": "#/components/schemas/session.revert.staged"
  15499. },
  15500. {
  15501. "$ref": "#/components/schemas/session.revert.cleared"
  15502. },
  15503. {
  15504. "$ref": "#/components/schemas/session.revert.committed"
  15505. }
  15506. ]
  15507. },
  15508. "EventLog.Synced": {
  15509. "type": "object",
  15510. "properties": {
  15511. "type": {
  15512. "type": "string",
  15513. "enum": [
  15514. "log.synced"
  15515. ]
  15516. },
  15517. "aggregateID": {
  15518. "type": "string"
  15519. },
  15520. "seq": {
  15521. "type": "integer",
  15522. "allOf": [
  15523. {
  15524. "minimum": 0
  15525. }
  15526. ]
  15527. }
  15528. },
  15529. "required": [
  15530. "type",
  15531. "aggregateID"
  15532. ],
  15533. "additionalProperties": false,
  15534. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  15535. },
  15536. "SessionLogItem": {
  15537. "anyOf": [
  15538. {
  15539. "$ref": "#/components/schemas/SessionDurableEvent"
  15540. },
  15541. {
  15542. "$ref": "#/components/schemas/EventLog.Synced"
  15543. }
  15544. ]
  15545. },
  15546. "SessionLogItemStream": {
  15547. "type": "string",
  15548. "contentSchema": {
  15549. "$ref": "#/components/schemas/SessionLogItem"
  15550. },
  15551. "contentMediaType": "application/json"
  15552. },
  15553. "SessionMessagesResponse": {
  15554. "type": "object",
  15555. "properties": {
  15556. "data": {
  15557. "type": "array",
  15558. "items": {
  15559. "$ref": "#/components/schemas/Session.Message"
  15560. }
  15561. },
  15562. "watermark": {
  15563. "type": "integer",
  15564. "allOf": [
  15565. {
  15566. "minimum": 0
  15567. }
  15568. ]
  15569. },
  15570. "cursor": {
  15571. "type": "object",
  15572. "properties": {
  15573. "previous": {
  15574. "anyOf": [
  15575. {
  15576. "type": "string"
  15577. },
  15578. {
  15579. "type": "null"
  15580. }
  15581. ]
  15582. },
  15583. "next": {
  15584. "anyOf": [
  15585. {
  15586. "type": "string"
  15587. },
  15588. {
  15589. "type": "null"
  15590. }
  15591. ]
  15592. }
  15593. },
  15594. "additionalProperties": false
  15595. }
  15596. },
  15597. "required": [
  15598. "data",
  15599. "cursor"
  15600. ],
  15601. "additionalProperties": false
  15602. },
  15603. "Model.Api": {
  15604. "anyOf": [
  15605. {
  15606. "type": "object",
  15607. "properties": {
  15608. "id": {
  15609. "type": "string"
  15610. },
  15611. "type": {
  15612. "type": "string",
  15613. "enum": [
  15614. "aisdk"
  15615. ]
  15616. },
  15617. "package": {
  15618. "type": "string"
  15619. },
  15620. "url": {
  15621. "type": "string"
  15622. },
  15623. "settings": {
  15624. "type": "object"
  15625. }
  15626. },
  15627. "required": [
  15628. "id",
  15629. "type",
  15630. "package"
  15631. ],
  15632. "additionalProperties": false
  15633. },
  15634. {
  15635. "type": "object",
  15636. "properties": {
  15637. "id": {
  15638. "type": "string"
  15639. },
  15640. "type": {
  15641. "type": "string",
  15642. "enum": [
  15643. "native"
  15644. ]
  15645. },
  15646. "url": {
  15647. "type": "string"
  15648. },
  15649. "settings": {
  15650. "type": "object"
  15651. }
  15652. },
  15653. "required": [
  15654. "id",
  15655. "type",
  15656. "settings"
  15657. ],
  15658. "additionalProperties": false
  15659. }
  15660. ]
  15661. },
  15662. "Model.Capabilities": {
  15663. "type": "object",
  15664. "properties": {
  15665. "tools": {
  15666. "type": "boolean"
  15667. },
  15668. "input": {
  15669. "type": "array",
  15670. "items": {
  15671. "type": "string"
  15672. }
  15673. },
  15674. "output": {
  15675. "type": "array",
  15676. "items": {
  15677. "type": "string"
  15678. }
  15679. }
  15680. },
  15681. "required": [
  15682. "tools",
  15683. "input",
  15684. "output"
  15685. ],
  15686. "additionalProperties": false
  15687. },
  15688. "Model.Cost": {
  15689. "type": "object",
  15690. "properties": {
  15691. "tier": {
  15692. "type": "object",
  15693. "properties": {
  15694. "type": {
  15695. "type": "string",
  15696. "enum": [
  15697. "context"
  15698. ]
  15699. },
  15700. "size": {
  15701. "type": "integer"
  15702. }
  15703. },
  15704. "required": [
  15705. "type",
  15706. "size"
  15707. ],
  15708. "additionalProperties": false
  15709. },
  15710. "input": {
  15711. "type": "number"
  15712. },
  15713. "output": {
  15714. "type": "number"
  15715. },
  15716. "cache": {
  15717. "type": "object",
  15718. "properties": {
  15719. "read": {
  15720. "type": "number"
  15721. },
  15722. "write": {
  15723. "type": "number"
  15724. }
  15725. },
  15726. "required": [
  15727. "read",
  15728. "write"
  15729. ],
  15730. "additionalProperties": false
  15731. }
  15732. },
  15733. "required": [
  15734. "input",
  15735. "output",
  15736. "cache"
  15737. ],
  15738. "additionalProperties": false
  15739. },
  15740. "ModelV2.Info": {
  15741. "type": "object",
  15742. "properties": {
  15743. "id": {
  15744. "type": "string"
  15745. },
  15746. "providerID": {
  15747. "type": "string"
  15748. },
  15749. "family": {
  15750. "type": "string"
  15751. },
  15752. "name": {
  15753. "type": "string"
  15754. },
  15755. "api": {
  15756. "$ref": "#/components/schemas/Model.Api"
  15757. },
  15758. "capabilities": {
  15759. "$ref": "#/components/schemas/Model.Capabilities"
  15760. },
  15761. "request": {
  15762. "type": "object",
  15763. "properties": {
  15764. "settings": {
  15765. "$ref": "#/components/schemas/Provider.Settings"
  15766. },
  15767. "headers": {
  15768. "type": "object",
  15769. "additionalProperties": {
  15770. "type": "string"
  15771. }
  15772. },
  15773. "body": {
  15774. "type": "object"
  15775. },
  15776. "variant": {
  15777. "type": "string"
  15778. }
  15779. },
  15780. "required": [
  15781. "settings",
  15782. "headers",
  15783. "body"
  15784. ],
  15785. "additionalProperties": false
  15786. },
  15787. "variants": {
  15788. "type": "array",
  15789. "items": {
  15790. "type": "object",
  15791. "properties": {
  15792. "id": {
  15793. "type": "string"
  15794. },
  15795. "settings": {
  15796. "$ref": "#/components/schemas/Provider.Settings"
  15797. },
  15798. "headers": {
  15799. "type": "object",
  15800. "additionalProperties": {
  15801. "type": "string"
  15802. }
  15803. },
  15804. "body": {
  15805. "type": "object"
  15806. }
  15807. },
  15808. "required": [
  15809. "id",
  15810. "settings",
  15811. "headers",
  15812. "body"
  15813. ],
  15814. "additionalProperties": false
  15815. }
  15816. },
  15817. "time": {
  15818. "type": "object",
  15819. "properties": {
  15820. "released": {
  15821. "type": "number"
  15822. }
  15823. },
  15824. "required": [
  15825. "released"
  15826. ],
  15827. "additionalProperties": false
  15828. },
  15829. "cost": {
  15830. "type": "array",
  15831. "items": {
  15832. "$ref": "#/components/schemas/Model.Cost"
  15833. }
  15834. },
  15835. "status": {
  15836. "type": "string",
  15837. "enum": [
  15838. "alpha",
  15839. "beta",
  15840. "deprecated",
  15841. "active"
  15842. ]
  15843. },
  15844. "enabled": {
  15845. "type": "boolean"
  15846. },
  15847. "limit": {
  15848. "type": "object",
  15849. "properties": {
  15850. "context": {
  15851. "type": "integer"
  15852. },
  15853. "input": {
  15854. "type": "integer"
  15855. },
  15856. "output": {
  15857. "type": "integer"
  15858. }
  15859. },
  15860. "required": [
  15861. "context",
  15862. "output"
  15863. ],
  15864. "additionalProperties": false
  15865. }
  15866. },
  15867. "required": [
  15868. "id",
  15869. "providerID",
  15870. "name",
  15871. "api",
  15872. "capabilities",
  15873. "request",
  15874. "variants",
  15875. "time",
  15876. "cost",
  15877. "status",
  15878. "enabled",
  15879. "limit"
  15880. ],
  15881. "additionalProperties": false
  15882. },
  15883. "GenerateTextResponse": {
  15884. "type": "object",
  15885. "properties": {
  15886. "data": {
  15887. "type": "object",
  15888. "properties": {
  15889. "text": {
  15890. "type": "string"
  15891. }
  15892. },
  15893. "required": [
  15894. "text"
  15895. ],
  15896. "additionalProperties": false
  15897. }
  15898. },
  15899. "required": [
  15900. "data"
  15901. ],
  15902. "additionalProperties": false
  15903. },
  15904. "Provider.AISDK": {
  15905. "type": "object",
  15906. "properties": {
  15907. "type": {
  15908. "type": "string",
  15909. "enum": [
  15910. "aisdk"
  15911. ]
  15912. },
  15913. "package": {
  15914. "type": "string"
  15915. },
  15916. "url": {
  15917. "type": "string"
  15918. },
  15919. "settings": {
  15920. "type": "object"
  15921. }
  15922. },
  15923. "required": [
  15924. "type",
  15925. "package"
  15926. ],
  15927. "additionalProperties": false
  15928. },
  15929. "Provider.Native": {
  15930. "type": "object",
  15931. "properties": {
  15932. "type": {
  15933. "type": "string",
  15934. "enum": [
  15935. "native"
  15936. ]
  15937. },
  15938. "url": {
  15939. "type": "string"
  15940. },
  15941. "settings": {
  15942. "type": "object"
  15943. }
  15944. },
  15945. "required": [
  15946. "type",
  15947. "settings"
  15948. ],
  15949. "additionalProperties": false
  15950. },
  15951. "Provider.Api": {
  15952. "anyOf": [
  15953. {
  15954. "$ref": "#/components/schemas/Provider.AISDK"
  15955. },
  15956. {
  15957. "$ref": "#/components/schemas/Provider.Native"
  15958. }
  15959. ]
  15960. },
  15961. "ProviderV2.Info": {
  15962. "type": "object",
  15963. "properties": {
  15964. "id": {
  15965. "type": "string"
  15966. },
  15967. "integrationID": {
  15968. "type": "string"
  15969. },
  15970. "name": {
  15971. "type": "string"
  15972. },
  15973. "disabled": {
  15974. "type": "boolean"
  15975. },
  15976. "api": {
  15977. "$ref": "#/components/schemas/Provider.Api"
  15978. },
  15979. "request": {
  15980. "$ref": "#/components/schemas/Provider.Request"
  15981. }
  15982. },
  15983. "required": [
  15984. "id",
  15985. "name",
  15986. "api",
  15987. "request"
  15988. ],
  15989. "additionalProperties": false
  15990. },
  15991. "ProviderNotFoundError": {
  15992. "type": "object",
  15993. "properties": {
  15994. "_tag": {
  15995. "type": "string",
  15996. "enum": [
  15997. "ProviderNotFoundError"
  15998. ]
  15999. },
  16000. "providerID": {
  16001. "type": "string"
  16002. },
  16003. "message": {
  16004. "type": "string"
  16005. }
  16006. },
  16007. "required": [
  16008. "_tag",
  16009. "providerID",
  16010. "message"
  16011. ],
  16012. "additionalProperties": false
  16013. },
  16014. "Integration.When": {
  16015. "type": "object",
  16016. "properties": {
  16017. "key": {
  16018. "type": "string"
  16019. },
  16020. "op": {
  16021. "type": "string",
  16022. "enum": [
  16023. "eq",
  16024. "neq"
  16025. ]
  16026. },
  16027. "value": {
  16028. "type": "string"
  16029. }
  16030. },
  16031. "required": [
  16032. "key",
  16033. "op",
  16034. "value"
  16035. ],
  16036. "additionalProperties": false
  16037. },
  16038. "Integration.TextPrompt": {
  16039. "type": "object",
  16040. "properties": {
  16041. "type": {
  16042. "type": "string",
  16043. "enum": [
  16044. "text"
  16045. ]
  16046. },
  16047. "key": {
  16048. "type": "string"
  16049. },
  16050. "message": {
  16051. "type": "string"
  16052. },
  16053. "placeholder": {
  16054. "type": "string"
  16055. },
  16056. "when": {
  16057. "$ref": "#/components/schemas/Integration.When"
  16058. }
  16059. },
  16060. "required": [
  16061. "type",
  16062. "key",
  16063. "message"
  16064. ],
  16065. "additionalProperties": false
  16066. },
  16067. "Integration.SelectPrompt": {
  16068. "type": "object",
  16069. "properties": {
  16070. "type": {
  16071. "type": "string",
  16072. "enum": [
  16073. "select"
  16074. ]
  16075. },
  16076. "key": {
  16077. "type": "string"
  16078. },
  16079. "message": {
  16080. "type": "string"
  16081. },
  16082. "options": {
  16083. "type": "array",
  16084. "items": {
  16085. "type": "object",
  16086. "properties": {
  16087. "label": {
  16088. "type": "string"
  16089. },
  16090. "value": {
  16091. "type": "string"
  16092. },
  16093. "hint": {
  16094. "type": "string"
  16095. }
  16096. },
  16097. "required": [
  16098. "label",
  16099. "value"
  16100. ],
  16101. "additionalProperties": false
  16102. }
  16103. },
  16104. "when": {
  16105. "$ref": "#/components/schemas/Integration.When"
  16106. }
  16107. },
  16108. "required": [
  16109. "type",
  16110. "key",
  16111. "message",
  16112. "options"
  16113. ],
  16114. "additionalProperties": false
  16115. },
  16116. "Integration.OAuthMethod": {
  16117. "type": "object",
  16118. "properties": {
  16119. "id": {
  16120. "type": "string"
  16121. },
  16122. "type": {
  16123. "type": "string",
  16124. "enum": [
  16125. "oauth"
  16126. ]
  16127. },
  16128. "label": {
  16129. "type": "string"
  16130. },
  16131. "prompts": {
  16132. "type": "array",
  16133. "items": {
  16134. "anyOf": [
  16135. {
  16136. "$ref": "#/components/schemas/Integration.TextPrompt"
  16137. },
  16138. {
  16139. "$ref": "#/components/schemas/Integration.SelectPrompt"
  16140. }
  16141. ]
  16142. }
  16143. }
  16144. },
  16145. "required": [
  16146. "id",
  16147. "type",
  16148. "label"
  16149. ],
  16150. "additionalProperties": false
  16151. },
  16152. "Integration.KeyMethod": {
  16153. "type": "object",
  16154. "properties": {
  16155. "type": {
  16156. "type": "string",
  16157. "enum": [
  16158. "key"
  16159. ]
  16160. },
  16161. "label": {
  16162. "type": "string"
  16163. }
  16164. },
  16165. "required": [
  16166. "type"
  16167. ],
  16168. "additionalProperties": false
  16169. },
  16170. "Integration.EnvMethod": {
  16171. "type": "object",
  16172. "properties": {
  16173. "type": {
  16174. "type": "string",
  16175. "enum": [
  16176. "env"
  16177. ]
  16178. },
  16179. "names": {
  16180. "type": "array",
  16181. "items": {
  16182. "type": "string"
  16183. }
  16184. }
  16185. },
  16186. "required": [
  16187. "type",
  16188. "names"
  16189. ],
  16190. "additionalProperties": false
  16191. },
  16192. "Integration.Method": {
  16193. "anyOf": [
  16194. {
  16195. "$ref": "#/components/schemas/Integration.OAuthMethod"
  16196. },
  16197. {
  16198. "$ref": "#/components/schemas/Integration.KeyMethod"
  16199. },
  16200. {
  16201. "$ref": "#/components/schemas/Integration.EnvMethod"
  16202. }
  16203. ]
  16204. },
  16205. "Connection.CredentialInfo": {
  16206. "type": "object",
  16207. "properties": {
  16208. "type": {
  16209. "type": "string",
  16210. "enum": [
  16211. "credential"
  16212. ]
  16213. },
  16214. "id": {
  16215. "type": "string"
  16216. },
  16217. "label": {
  16218. "type": "string"
  16219. }
  16220. },
  16221. "required": [
  16222. "type",
  16223. "id",
  16224. "label"
  16225. ],
  16226. "additionalProperties": false
  16227. },
  16228. "Connection.EnvInfo": {
  16229. "type": "object",
  16230. "properties": {
  16231. "type": {
  16232. "type": "string",
  16233. "enum": [
  16234. "env"
  16235. ]
  16236. },
  16237. "name": {
  16238. "type": "string"
  16239. }
  16240. },
  16241. "required": [
  16242. "type",
  16243. "name"
  16244. ],
  16245. "additionalProperties": false
  16246. },
  16247. "Connection.Info": {
  16248. "anyOf": [
  16249. {
  16250. "$ref": "#/components/schemas/Connection.CredentialInfo"
  16251. },
  16252. {
  16253. "$ref": "#/components/schemas/Connection.EnvInfo"
  16254. }
  16255. ]
  16256. },
  16257. "Integration.Info": {
  16258. "type": "object",
  16259. "properties": {
  16260. "id": {
  16261. "type": "string"
  16262. },
  16263. "name": {
  16264. "type": "string"
  16265. },
  16266. "methods": {
  16267. "type": "array",
  16268. "items": {
  16269. "$ref": "#/components/schemas/Integration.Method"
  16270. }
  16271. },
  16272. "connections": {
  16273. "type": "array",
  16274. "items": {
  16275. "$ref": "#/components/schemas/Connection.Info"
  16276. }
  16277. }
  16278. },
  16279. "required": [
  16280. "id",
  16281. "name",
  16282. "methods",
  16283. "connections"
  16284. ],
  16285. "additionalProperties": false
  16286. },
  16287. "Integration.Attempt": {
  16288. "type": "object",
  16289. "properties": {
  16290. "attemptID": {
  16291. "type": "string"
  16292. },
  16293. "url": {
  16294. "type": "string"
  16295. },
  16296. "instructions": {
  16297. "type": "string"
  16298. },
  16299. "mode": {
  16300. "type": "string",
  16301. "enum": [
  16302. "auto",
  16303. "code"
  16304. ]
  16305. },
  16306. "time": {
  16307. "type": "object",
  16308. "properties": {
  16309. "created": {
  16310. "anyOf": [
  16311. {
  16312. "anyOf": [
  16313. {
  16314. "type": "number"
  16315. },
  16316. {
  16317. "type": "string",
  16318. "enum": [
  16319. "NaN"
  16320. ]
  16321. },
  16322. {
  16323. "type": "string",
  16324. "enum": [
  16325. "Infinity"
  16326. ]
  16327. },
  16328. {
  16329. "type": "string",
  16330. "enum": [
  16331. "-Infinity"
  16332. ]
  16333. }
  16334. ]
  16335. },
  16336. {
  16337. "type": "string",
  16338. "enum": [
  16339. "Infinity",
  16340. "-Infinity",
  16341. "NaN"
  16342. ]
  16343. }
  16344. ]
  16345. },
  16346. "expires": {
  16347. "anyOf": [
  16348. {
  16349. "anyOf": [
  16350. {
  16351. "type": "number"
  16352. },
  16353. {
  16354. "type": "string",
  16355. "enum": [
  16356. "NaN"
  16357. ]
  16358. },
  16359. {
  16360. "type": "string",
  16361. "enum": [
  16362. "Infinity"
  16363. ]
  16364. },
  16365. {
  16366. "type": "string",
  16367. "enum": [
  16368. "-Infinity"
  16369. ]
  16370. }
  16371. ]
  16372. },
  16373. {
  16374. "type": "string",
  16375. "enum": [
  16376. "Infinity",
  16377. "-Infinity",
  16378. "NaN"
  16379. ]
  16380. }
  16381. ]
  16382. }
  16383. },
  16384. "required": [
  16385. "created",
  16386. "expires"
  16387. ],
  16388. "additionalProperties": false
  16389. }
  16390. },
  16391. "required": [
  16392. "attemptID",
  16393. "url",
  16394. "instructions",
  16395. "mode",
  16396. "time"
  16397. ],
  16398. "additionalProperties": false
  16399. },
  16400. "Integration.AttemptStatus": {
  16401. "anyOf": [
  16402. {
  16403. "type": "object",
  16404. "properties": {
  16405. "status": {
  16406. "type": "string",
  16407. "enum": [
  16408. "pending"
  16409. ]
  16410. },
  16411. "time": {
  16412. "type": "object",
  16413. "properties": {
  16414. "created": {
  16415. "anyOf": [
  16416. {
  16417. "anyOf": [
  16418. {
  16419. "type": "number"
  16420. },
  16421. {
  16422. "type": "string",
  16423. "enum": [
  16424. "NaN"
  16425. ]
  16426. },
  16427. {
  16428. "type": "string",
  16429. "enum": [
  16430. "Infinity"
  16431. ]
  16432. },
  16433. {
  16434. "type": "string",
  16435. "enum": [
  16436. "-Infinity"
  16437. ]
  16438. }
  16439. ]
  16440. },
  16441. {
  16442. "type": "string",
  16443. "enum": [
  16444. "Infinity",
  16445. "-Infinity",
  16446. "NaN"
  16447. ]
  16448. }
  16449. ]
  16450. },
  16451. "expires": {
  16452. "anyOf": [
  16453. {
  16454. "anyOf": [
  16455. {
  16456. "type": "number"
  16457. },
  16458. {
  16459. "type": "string",
  16460. "enum": [
  16461. "NaN"
  16462. ]
  16463. },
  16464. {
  16465. "type": "string",
  16466. "enum": [
  16467. "Infinity"
  16468. ]
  16469. },
  16470. {
  16471. "type": "string",
  16472. "enum": [
  16473. "-Infinity"
  16474. ]
  16475. }
  16476. ]
  16477. },
  16478. {
  16479. "type": "string",
  16480. "enum": [
  16481. "Infinity",
  16482. "-Infinity",
  16483. "NaN"
  16484. ]
  16485. }
  16486. ]
  16487. }
  16488. },
  16489. "required": [
  16490. "created",
  16491. "expires"
  16492. ],
  16493. "additionalProperties": false
  16494. }
  16495. },
  16496. "required": [
  16497. "status",
  16498. "time"
  16499. ],
  16500. "additionalProperties": false
  16501. },
  16502. {
  16503. "type": "object",
  16504. "properties": {
  16505. "status": {
  16506. "type": "string",
  16507. "enum": [
  16508. "complete"
  16509. ]
  16510. },
  16511. "time": {
  16512. "type": "object",
  16513. "properties": {
  16514. "created": {
  16515. "anyOf": [
  16516. {
  16517. "anyOf": [
  16518. {
  16519. "type": "number"
  16520. },
  16521. {
  16522. "type": "string",
  16523. "enum": [
  16524. "NaN"
  16525. ]
  16526. },
  16527. {
  16528. "type": "string",
  16529. "enum": [
  16530. "Infinity"
  16531. ]
  16532. },
  16533. {
  16534. "type": "string",
  16535. "enum": [
  16536. "-Infinity"
  16537. ]
  16538. }
  16539. ]
  16540. },
  16541. {
  16542. "type": "string",
  16543. "enum": [
  16544. "Infinity",
  16545. "-Infinity",
  16546. "NaN"
  16547. ]
  16548. }
  16549. ]
  16550. },
  16551. "expires": {
  16552. "anyOf": [
  16553. {
  16554. "anyOf": [
  16555. {
  16556. "type": "number"
  16557. },
  16558. {
  16559. "type": "string",
  16560. "enum": [
  16561. "NaN"
  16562. ]
  16563. },
  16564. {
  16565. "type": "string",
  16566. "enum": [
  16567. "Infinity"
  16568. ]
  16569. },
  16570. {
  16571. "type": "string",
  16572. "enum": [
  16573. "-Infinity"
  16574. ]
  16575. }
  16576. ]
  16577. },
  16578. {
  16579. "type": "string",
  16580. "enum": [
  16581. "Infinity",
  16582. "-Infinity",
  16583. "NaN"
  16584. ]
  16585. }
  16586. ]
  16587. }
  16588. },
  16589. "required": [
  16590. "created",
  16591. "expires"
  16592. ],
  16593. "additionalProperties": false
  16594. }
  16595. },
  16596. "required": [
  16597. "status",
  16598. "time"
  16599. ],
  16600. "additionalProperties": false
  16601. },
  16602. {
  16603. "type": "object",
  16604. "properties": {
  16605. "status": {
  16606. "type": "string",
  16607. "enum": [
  16608. "failed"
  16609. ]
  16610. },
  16611. "message": {
  16612. "type": "string"
  16613. },
  16614. "time": {
  16615. "type": "object",
  16616. "properties": {
  16617. "created": {
  16618. "anyOf": [
  16619. {
  16620. "anyOf": [
  16621. {
  16622. "type": "number"
  16623. },
  16624. {
  16625. "type": "string",
  16626. "enum": [
  16627. "NaN"
  16628. ]
  16629. },
  16630. {
  16631. "type": "string",
  16632. "enum": [
  16633. "Infinity"
  16634. ]
  16635. },
  16636. {
  16637. "type": "string",
  16638. "enum": [
  16639. "-Infinity"
  16640. ]
  16641. }
  16642. ]
  16643. },
  16644. {
  16645. "type": "string",
  16646. "enum": [
  16647. "Infinity",
  16648. "-Infinity",
  16649. "NaN"
  16650. ]
  16651. }
  16652. ]
  16653. },
  16654. "expires": {
  16655. "anyOf": [
  16656. {
  16657. "anyOf": [
  16658. {
  16659. "type": "number"
  16660. },
  16661. {
  16662. "type": "string",
  16663. "enum": [
  16664. "NaN"
  16665. ]
  16666. },
  16667. {
  16668. "type": "string",
  16669. "enum": [
  16670. "Infinity"
  16671. ]
  16672. },
  16673. {
  16674. "type": "string",
  16675. "enum": [
  16676. "-Infinity"
  16677. ]
  16678. }
  16679. ]
  16680. },
  16681. {
  16682. "type": "string",
  16683. "enum": [
  16684. "Infinity",
  16685. "-Infinity",
  16686. "NaN"
  16687. ]
  16688. }
  16689. ]
  16690. }
  16691. },
  16692. "required": [
  16693. "created",
  16694. "expires"
  16695. ],
  16696. "additionalProperties": false
  16697. }
  16698. },
  16699. "required": [
  16700. "status",
  16701. "message",
  16702. "time"
  16703. ],
  16704. "additionalProperties": false
  16705. },
  16706. {
  16707. "type": "object",
  16708. "properties": {
  16709. "status": {
  16710. "type": "string",
  16711. "enum": [
  16712. "expired"
  16713. ]
  16714. },
  16715. "time": {
  16716. "type": "object",
  16717. "properties": {
  16718. "created": {
  16719. "anyOf": [
  16720. {
  16721. "anyOf": [
  16722. {
  16723. "type": "number"
  16724. },
  16725. {
  16726. "type": "string",
  16727. "enum": [
  16728. "NaN"
  16729. ]
  16730. },
  16731. {
  16732. "type": "string",
  16733. "enum": [
  16734. "Infinity"
  16735. ]
  16736. },
  16737. {
  16738. "type": "string",
  16739. "enum": [
  16740. "-Infinity"
  16741. ]
  16742. }
  16743. ]
  16744. },
  16745. {
  16746. "type": "string",
  16747. "enum": [
  16748. "Infinity",
  16749. "-Infinity",
  16750. "NaN"
  16751. ]
  16752. }
  16753. ]
  16754. },
  16755. "expires": {
  16756. "anyOf": [
  16757. {
  16758. "anyOf": [
  16759. {
  16760. "type": "number"
  16761. },
  16762. {
  16763. "type": "string",
  16764. "enum": [
  16765. "NaN"
  16766. ]
  16767. },
  16768. {
  16769. "type": "string",
  16770. "enum": [
  16771. "Infinity"
  16772. ]
  16773. },
  16774. {
  16775. "type": "string",
  16776. "enum": [
  16777. "-Infinity"
  16778. ]
  16779. }
  16780. ]
  16781. },
  16782. {
  16783. "type": "string",
  16784. "enum": [
  16785. "Infinity",
  16786. "-Infinity",
  16787. "NaN"
  16788. ]
  16789. }
  16790. ]
  16791. }
  16792. },
  16793. "required": [
  16794. "created",
  16795. "expires"
  16796. ],
  16797. "additionalProperties": false
  16798. }
  16799. },
  16800. "required": [
  16801. "status",
  16802. "time"
  16803. ],
  16804. "additionalProperties": false
  16805. }
  16806. ]
  16807. },
  16808. "Mcp.Status.Connected": {
  16809. "type": "object",
  16810. "properties": {
  16811. "status": {
  16812. "type": "string",
  16813. "enum": [
  16814. "connected"
  16815. ]
  16816. }
  16817. },
  16818. "required": [
  16819. "status"
  16820. ],
  16821. "additionalProperties": false
  16822. },
  16823. "Mcp.Status.Pending": {
  16824. "type": "object",
  16825. "properties": {
  16826. "status": {
  16827. "type": "string",
  16828. "enum": [
  16829. "pending"
  16830. ]
  16831. }
  16832. },
  16833. "required": [
  16834. "status"
  16835. ],
  16836. "additionalProperties": false
  16837. },
  16838. "Mcp.Status.Disabled": {
  16839. "type": "object",
  16840. "properties": {
  16841. "status": {
  16842. "type": "string",
  16843. "enum": [
  16844. "disabled"
  16845. ]
  16846. }
  16847. },
  16848. "required": [
  16849. "status"
  16850. ],
  16851. "additionalProperties": false
  16852. },
  16853. "Mcp.Status.Failed": {
  16854. "type": "object",
  16855. "properties": {
  16856. "status": {
  16857. "type": "string",
  16858. "enum": [
  16859. "failed"
  16860. ]
  16861. },
  16862. "error": {
  16863. "type": "string"
  16864. }
  16865. },
  16866. "required": [
  16867. "status",
  16868. "error"
  16869. ],
  16870. "additionalProperties": false
  16871. },
  16872. "Mcp.Status.NeedsAuth": {
  16873. "type": "object",
  16874. "properties": {
  16875. "status": {
  16876. "type": "string",
  16877. "enum": [
  16878. "needs_auth"
  16879. ]
  16880. }
  16881. },
  16882. "required": [
  16883. "status"
  16884. ],
  16885. "additionalProperties": false
  16886. },
  16887. "Mcp.Status.NeedsClientRegistration": {
  16888. "type": "object",
  16889. "properties": {
  16890. "status": {
  16891. "type": "string",
  16892. "enum": [
  16893. "needs_client_registration"
  16894. ]
  16895. },
  16896. "error": {
  16897. "type": "string"
  16898. }
  16899. },
  16900. "required": [
  16901. "status",
  16902. "error"
  16903. ],
  16904. "additionalProperties": false
  16905. },
  16906. "Mcp.Server": {
  16907. "type": "object",
  16908. "properties": {
  16909. "name": {
  16910. "type": "string"
  16911. },
  16912. "status": {
  16913. "anyOf": [
  16914. {
  16915. "$ref": "#/components/schemas/Mcp.Status.Connected"
  16916. },
  16917. {
  16918. "$ref": "#/components/schemas/Mcp.Status.Pending"
  16919. },
  16920. {
  16921. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  16922. },
  16923. {
  16924. "$ref": "#/components/schemas/Mcp.Status.Failed"
  16925. },
  16926. {
  16927. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  16928. },
  16929. {
  16930. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  16931. }
  16932. ]
  16933. },
  16934. "integrationID": {
  16935. "type": "string"
  16936. }
  16937. },
  16938. "required": [
  16939. "name",
  16940. "status"
  16941. ],
  16942. "additionalProperties": false
  16943. },
  16944. "Project.Vcs": {
  16945. "type": "string",
  16946. "enum": [
  16947. "git",
  16948. "hg"
  16949. ]
  16950. },
  16951. "Project.Icon": {
  16952. "type": "object",
  16953. "properties": {
  16954. "url": {
  16955. "type": "string"
  16956. },
  16957. "override": {
  16958. "type": "string"
  16959. },
  16960. "color": {
  16961. "type": "string"
  16962. }
  16963. },
  16964. "additionalProperties": false
  16965. },
  16966. "Project.Commands": {
  16967. "type": "object",
  16968. "properties": {
  16969. "start": {
  16970. "type": "string",
  16971. "description": "Startup script to run when creating a new workspace (worktree)"
  16972. }
  16973. },
  16974. "additionalProperties": false
  16975. },
  16976. "Project.Time": {
  16977. "type": "object",
  16978. "properties": {
  16979. "created": {
  16980. "type": "integer",
  16981. "allOf": [
  16982. {
  16983. "minimum": 0
  16984. }
  16985. ]
  16986. },
  16987. "updated": {
  16988. "type": "integer",
  16989. "allOf": [
  16990. {
  16991. "minimum": 0
  16992. }
  16993. ]
  16994. },
  16995. "initialized": {
  16996. "type": "integer",
  16997. "allOf": [
  16998. {
  16999. "minimum": 0
  17000. }
  17001. ]
  17002. }
  17003. },
  17004. "required": [
  17005. "created",
  17006. "updated"
  17007. ],
  17008. "additionalProperties": false
  17009. },
  17010. "Project": {
  17011. "type": "object",
  17012. "properties": {
  17013. "id": {
  17014. "type": "string"
  17015. },
  17016. "worktree": {
  17017. "type": "string"
  17018. },
  17019. "vcs": {
  17020. "$ref": "#/components/schemas/Project.Vcs"
  17021. },
  17022. "name": {
  17023. "type": "string"
  17024. },
  17025. "icon": {
  17026. "$ref": "#/components/schemas/Project.Icon"
  17027. },
  17028. "commands": {
  17029. "$ref": "#/components/schemas/Project.Commands"
  17030. },
  17031. "time": {
  17032. "$ref": "#/components/schemas/Project.Time"
  17033. },
  17034. "sandboxes": {
  17035. "type": "array",
  17036. "items": {
  17037. "type": "string"
  17038. }
  17039. }
  17040. },
  17041. "required": [
  17042. "id",
  17043. "worktree",
  17044. "time",
  17045. "sandboxes"
  17046. ],
  17047. "additionalProperties": false
  17048. },
  17049. "Project.Current": {
  17050. "type": "object",
  17051. "properties": {
  17052. "id": {
  17053. "type": "string"
  17054. },
  17055. "directory": {
  17056. "type": "string"
  17057. }
  17058. },
  17059. "required": [
  17060. "id",
  17061. "directory"
  17062. ],
  17063. "additionalProperties": false
  17064. },
  17065. "Project.Directory": {
  17066. "type": "object",
  17067. "properties": {
  17068. "directory": {
  17069. "type": "string"
  17070. },
  17071. "strategy": {
  17072. "type": "string"
  17073. }
  17074. },
  17075. "required": [
  17076. "directory"
  17077. ],
  17078. "additionalProperties": false
  17079. },
  17080. "Project.Directories": {
  17081. "type": "array",
  17082. "items": {
  17083. "$ref": "#/components/schemas/Project.Directory"
  17084. }
  17085. },
  17086. "Form.Metadata": {
  17087. "type": "object"
  17088. },
  17089. "Form.When": {
  17090. "type": "object",
  17091. "properties": {
  17092. "key": {
  17093. "type": "string"
  17094. },
  17095. "op": {
  17096. "type": "string",
  17097. "enum": [
  17098. "eq",
  17099. "neq"
  17100. ]
  17101. },
  17102. "value": {
  17103. "anyOf": [
  17104. {
  17105. "type": "string"
  17106. },
  17107. {
  17108. "anyOf": [
  17109. {
  17110. "anyOf": [
  17111. {
  17112. "type": "number"
  17113. },
  17114. {
  17115. "type": "string",
  17116. "enum": [
  17117. "NaN"
  17118. ]
  17119. },
  17120. {
  17121. "type": "string",
  17122. "enum": [
  17123. "Infinity"
  17124. ]
  17125. },
  17126. {
  17127. "type": "string",
  17128. "enum": [
  17129. "-Infinity"
  17130. ]
  17131. }
  17132. ]
  17133. },
  17134. {
  17135. "type": "string",
  17136. "enum": [
  17137. "Infinity",
  17138. "-Infinity",
  17139. "NaN"
  17140. ]
  17141. }
  17142. ]
  17143. },
  17144. {
  17145. "type": "boolean"
  17146. }
  17147. ]
  17148. }
  17149. },
  17150. "required": [
  17151. "key",
  17152. "op",
  17153. "value"
  17154. ],
  17155. "additionalProperties": false
  17156. },
  17157. "Form.Option": {
  17158. "type": "object",
  17159. "properties": {
  17160. "value": {
  17161. "type": "string"
  17162. },
  17163. "label": {
  17164. "type": "string"
  17165. },
  17166. "description": {
  17167. "type": "string"
  17168. }
  17169. },
  17170. "required": [
  17171. "value",
  17172. "label"
  17173. ],
  17174. "additionalProperties": false
  17175. },
  17176. "Form.StringField": {
  17177. "type": "object",
  17178. "properties": {
  17179. "key": {
  17180. "type": "string"
  17181. },
  17182. "title": {
  17183. "type": "string"
  17184. },
  17185. "description": {
  17186. "type": "string"
  17187. },
  17188. "required": {
  17189. "type": "boolean"
  17190. },
  17191. "when": {
  17192. "type": "array",
  17193. "items": {
  17194. "$ref": "#/components/schemas/Form.When"
  17195. }
  17196. },
  17197. "type": {
  17198. "type": "string",
  17199. "enum": [
  17200. "string"
  17201. ]
  17202. },
  17203. "format": {
  17204. "type": "string",
  17205. "enum": [
  17206. "email",
  17207. "uri",
  17208. "date",
  17209. "date-time"
  17210. ]
  17211. },
  17212. "minLength": {
  17213. "type": "integer",
  17214. "allOf": [
  17215. {
  17216. "minimum": 0
  17217. }
  17218. ]
  17219. },
  17220. "maxLength": {
  17221. "type": "integer",
  17222. "allOf": [
  17223. {
  17224. "minimum": 0
  17225. }
  17226. ]
  17227. },
  17228. "pattern": {
  17229. "type": "string"
  17230. },
  17231. "placeholder": {
  17232. "type": "string"
  17233. },
  17234. "default": {
  17235. "type": "string"
  17236. },
  17237. "options": {
  17238. "type": "array",
  17239. "items": {
  17240. "$ref": "#/components/schemas/Form.Option"
  17241. }
  17242. },
  17243. "custom": {
  17244. "type": "boolean"
  17245. }
  17246. },
  17247. "required": [
  17248. "key",
  17249. "type"
  17250. ],
  17251. "additionalProperties": false
  17252. },
  17253. "Form.NumberField": {
  17254. "type": "object",
  17255. "properties": {
  17256. "key": {
  17257. "type": "string"
  17258. },
  17259. "title": {
  17260. "type": "string"
  17261. },
  17262. "description": {
  17263. "type": "string"
  17264. },
  17265. "required": {
  17266. "type": "boolean"
  17267. },
  17268. "when": {
  17269. "type": "array",
  17270. "items": {
  17271. "$ref": "#/components/schemas/Form.When"
  17272. }
  17273. },
  17274. "type": {
  17275. "type": "string",
  17276. "enum": [
  17277. "number"
  17278. ]
  17279. },
  17280. "minimum": {
  17281. "anyOf": [
  17282. {
  17283. "anyOf": [
  17284. {
  17285. "type": "number"
  17286. },
  17287. {
  17288. "type": "string",
  17289. "enum": [
  17290. "NaN"
  17291. ]
  17292. },
  17293. {
  17294. "type": "string",
  17295. "enum": [
  17296. "Infinity"
  17297. ]
  17298. },
  17299. {
  17300. "type": "string",
  17301. "enum": [
  17302. "-Infinity"
  17303. ]
  17304. }
  17305. ]
  17306. },
  17307. {
  17308. "type": "string",
  17309. "enum": [
  17310. "Infinity",
  17311. "-Infinity",
  17312. "NaN"
  17313. ]
  17314. }
  17315. ]
  17316. },
  17317. "maximum": {
  17318. "anyOf": [
  17319. {
  17320. "anyOf": [
  17321. {
  17322. "type": "number"
  17323. },
  17324. {
  17325. "type": "string",
  17326. "enum": [
  17327. "NaN"
  17328. ]
  17329. },
  17330. {
  17331. "type": "string",
  17332. "enum": [
  17333. "Infinity"
  17334. ]
  17335. },
  17336. {
  17337. "type": "string",
  17338. "enum": [
  17339. "-Infinity"
  17340. ]
  17341. }
  17342. ]
  17343. },
  17344. {
  17345. "type": "string",
  17346. "enum": [
  17347. "Infinity",
  17348. "-Infinity",
  17349. "NaN"
  17350. ]
  17351. }
  17352. ]
  17353. },
  17354. "default": {
  17355. "anyOf": [
  17356. {
  17357. "anyOf": [
  17358. {
  17359. "type": "number"
  17360. },
  17361. {
  17362. "type": "string",
  17363. "enum": [
  17364. "NaN"
  17365. ]
  17366. },
  17367. {
  17368. "type": "string",
  17369. "enum": [
  17370. "Infinity"
  17371. ]
  17372. },
  17373. {
  17374. "type": "string",
  17375. "enum": [
  17376. "-Infinity"
  17377. ]
  17378. }
  17379. ]
  17380. },
  17381. {
  17382. "type": "string",
  17383. "enum": [
  17384. "Infinity",
  17385. "-Infinity",
  17386. "NaN"
  17387. ]
  17388. }
  17389. ]
  17390. }
  17391. },
  17392. "required": [
  17393. "key",
  17394. "type"
  17395. ],
  17396. "additionalProperties": false
  17397. },
  17398. "Form.IntegerField": {
  17399. "type": "object",
  17400. "properties": {
  17401. "key": {
  17402. "type": "string"
  17403. },
  17404. "title": {
  17405. "type": "string"
  17406. },
  17407. "description": {
  17408. "type": "string"
  17409. },
  17410. "required": {
  17411. "type": "boolean"
  17412. },
  17413. "when": {
  17414. "type": "array",
  17415. "items": {
  17416. "$ref": "#/components/schemas/Form.When"
  17417. }
  17418. },
  17419. "type": {
  17420. "type": "string",
  17421. "enum": [
  17422. "integer"
  17423. ]
  17424. },
  17425. "minimum": {
  17426. "anyOf": [
  17427. {
  17428. "anyOf": [
  17429. {
  17430. "type": "number"
  17431. },
  17432. {
  17433. "type": "string",
  17434. "enum": [
  17435. "NaN"
  17436. ]
  17437. },
  17438. {
  17439. "type": "string",
  17440. "enum": [
  17441. "Infinity"
  17442. ]
  17443. },
  17444. {
  17445. "type": "string",
  17446. "enum": [
  17447. "-Infinity"
  17448. ]
  17449. }
  17450. ]
  17451. },
  17452. {
  17453. "type": "string",
  17454. "enum": [
  17455. "Infinity",
  17456. "-Infinity",
  17457. "NaN"
  17458. ]
  17459. }
  17460. ]
  17461. },
  17462. "maximum": {
  17463. "anyOf": [
  17464. {
  17465. "anyOf": [
  17466. {
  17467. "type": "number"
  17468. },
  17469. {
  17470. "type": "string",
  17471. "enum": [
  17472. "NaN"
  17473. ]
  17474. },
  17475. {
  17476. "type": "string",
  17477. "enum": [
  17478. "Infinity"
  17479. ]
  17480. },
  17481. {
  17482. "type": "string",
  17483. "enum": [
  17484. "-Infinity"
  17485. ]
  17486. }
  17487. ]
  17488. },
  17489. {
  17490. "type": "string",
  17491. "enum": [
  17492. "Infinity",
  17493. "-Infinity",
  17494. "NaN"
  17495. ]
  17496. }
  17497. ]
  17498. },
  17499. "default": {
  17500. "anyOf": [
  17501. {
  17502. "anyOf": [
  17503. {
  17504. "type": "number"
  17505. },
  17506. {
  17507. "type": "string",
  17508. "enum": [
  17509. "NaN"
  17510. ]
  17511. },
  17512. {
  17513. "type": "string",
  17514. "enum": [
  17515. "Infinity"
  17516. ]
  17517. },
  17518. {
  17519. "type": "string",
  17520. "enum": [
  17521. "-Infinity"
  17522. ]
  17523. }
  17524. ]
  17525. },
  17526. {
  17527. "type": "string",
  17528. "enum": [
  17529. "Infinity",
  17530. "-Infinity",
  17531. "NaN"
  17532. ]
  17533. }
  17534. ]
  17535. }
  17536. },
  17537. "required": [
  17538. "key",
  17539. "type"
  17540. ],
  17541. "additionalProperties": false
  17542. },
  17543. "Form.BooleanField": {
  17544. "type": "object",
  17545. "properties": {
  17546. "key": {
  17547. "type": "string"
  17548. },
  17549. "title": {
  17550. "type": "string"
  17551. },
  17552. "description": {
  17553. "type": "string"
  17554. },
  17555. "required": {
  17556. "type": "boolean"
  17557. },
  17558. "when": {
  17559. "type": "array",
  17560. "items": {
  17561. "$ref": "#/components/schemas/Form.When"
  17562. }
  17563. },
  17564. "type": {
  17565. "type": "string",
  17566. "enum": [
  17567. "boolean"
  17568. ]
  17569. },
  17570. "default": {
  17571. "type": "boolean"
  17572. }
  17573. },
  17574. "required": [
  17575. "key",
  17576. "type"
  17577. ],
  17578. "additionalProperties": false
  17579. },
  17580. "Form.MultiselectField": {
  17581. "type": "object",
  17582. "properties": {
  17583. "key": {
  17584. "type": "string"
  17585. },
  17586. "title": {
  17587. "type": "string"
  17588. },
  17589. "description": {
  17590. "type": "string"
  17591. },
  17592. "required": {
  17593. "type": "boolean"
  17594. },
  17595. "when": {
  17596. "type": "array",
  17597. "items": {
  17598. "$ref": "#/components/schemas/Form.When"
  17599. }
  17600. },
  17601. "type": {
  17602. "type": "string",
  17603. "enum": [
  17604. "multiselect"
  17605. ]
  17606. },
  17607. "options": {
  17608. "type": "array",
  17609. "items": {
  17610. "$ref": "#/components/schemas/Form.Option"
  17611. }
  17612. },
  17613. "minItems": {
  17614. "type": "integer",
  17615. "allOf": [
  17616. {
  17617. "minimum": 0
  17618. }
  17619. ]
  17620. },
  17621. "maxItems": {
  17622. "type": "integer",
  17623. "allOf": [
  17624. {
  17625. "minimum": 0
  17626. }
  17627. ]
  17628. },
  17629. "custom": {
  17630. "type": "boolean"
  17631. },
  17632. "default": {
  17633. "type": "array",
  17634. "items": {
  17635. "type": "string"
  17636. }
  17637. }
  17638. },
  17639. "required": [
  17640. "key",
  17641. "type",
  17642. "options"
  17643. ],
  17644. "additionalProperties": false
  17645. },
  17646. "Form.FormInfo": {
  17647. "type": "object",
  17648. "properties": {
  17649. "id": {
  17650. "type": "string",
  17651. "allOf": [
  17652. {
  17653. "pattern": "^frm_"
  17654. }
  17655. ]
  17656. },
  17657. "sessionID": {
  17658. "type": "string"
  17659. },
  17660. "title": {
  17661. "type": "string"
  17662. },
  17663. "metadata": {
  17664. "$ref": "#/components/schemas/Form.Metadata"
  17665. },
  17666. "mode": {
  17667. "type": "string",
  17668. "enum": [
  17669. "form"
  17670. ]
  17671. },
  17672. "fields": {
  17673. "type": "array",
  17674. "items": {
  17675. "anyOf": [
  17676. {
  17677. "$ref": "#/components/schemas/Form.StringField"
  17678. },
  17679. {
  17680. "$ref": "#/components/schemas/Form.NumberField"
  17681. },
  17682. {
  17683. "$ref": "#/components/schemas/Form.IntegerField"
  17684. },
  17685. {
  17686. "$ref": "#/components/schemas/Form.BooleanField"
  17687. },
  17688. {
  17689. "$ref": "#/components/schemas/Form.MultiselectField"
  17690. }
  17691. ]
  17692. }
  17693. }
  17694. },
  17695. "required": [
  17696. "id",
  17697. "sessionID",
  17698. "mode",
  17699. "fields"
  17700. ],
  17701. "additionalProperties": false
  17702. },
  17703. "Form.UrlInfo": {
  17704. "type": "object",
  17705. "properties": {
  17706. "id": {
  17707. "type": "string",
  17708. "allOf": [
  17709. {
  17710. "pattern": "^frm_"
  17711. }
  17712. ]
  17713. },
  17714. "sessionID": {
  17715. "type": "string"
  17716. },
  17717. "title": {
  17718. "type": "string"
  17719. },
  17720. "metadata": {
  17721. "$ref": "#/components/schemas/Form.Metadata"
  17722. },
  17723. "mode": {
  17724. "type": "string",
  17725. "enum": [
  17726. "url"
  17727. ]
  17728. },
  17729. "url": {
  17730. "type": "string"
  17731. }
  17732. },
  17733. "required": [
  17734. "id",
  17735. "sessionID",
  17736. "mode",
  17737. "url"
  17738. ],
  17739. "additionalProperties": false
  17740. },
  17741. "Form.CreatePayload": {
  17742. "type": "object",
  17743. "properties": {
  17744. "id": {
  17745. "anyOf": [
  17746. {
  17747. "type": "string",
  17748. "allOf": [
  17749. {
  17750. "pattern": "^frm_"
  17751. }
  17752. ]
  17753. },
  17754. {
  17755. "type": "null"
  17756. }
  17757. ]
  17758. },
  17759. "title": {
  17760. "type": "string"
  17761. },
  17762. "metadata": {
  17763. "$ref": "#/components/schemas/Form.Metadata"
  17764. },
  17765. "mode": {
  17766. "type": "string",
  17767. "enum": [
  17768. "form",
  17769. "url"
  17770. ]
  17771. },
  17772. "fields": {
  17773. "anyOf": [
  17774. {
  17775. "type": "array",
  17776. "items": {
  17777. "anyOf": [
  17778. {
  17779. "$ref": "#/components/schemas/Form.StringField"
  17780. },
  17781. {
  17782. "$ref": "#/components/schemas/Form.NumberField"
  17783. },
  17784. {
  17785. "$ref": "#/components/schemas/Form.IntegerField"
  17786. },
  17787. {
  17788. "$ref": "#/components/schemas/Form.BooleanField"
  17789. },
  17790. {
  17791. "$ref": "#/components/schemas/Form.MultiselectField"
  17792. }
  17793. ]
  17794. }
  17795. },
  17796. {
  17797. "type": "null"
  17798. }
  17799. ]
  17800. },
  17801. "url": {
  17802. "anyOf": [
  17803. {
  17804. "type": "string"
  17805. },
  17806. {
  17807. "type": "null"
  17808. }
  17809. ]
  17810. }
  17811. },
  17812. "required": [
  17813. "mode"
  17814. ],
  17815. "additionalProperties": false
  17816. },
  17817. "FormNotFoundError": {
  17818. "type": "object",
  17819. "properties": {
  17820. "_tag": {
  17821. "type": "string",
  17822. "enum": [
  17823. "FormNotFoundError"
  17824. ]
  17825. },
  17826. "id": {
  17827. "type": "string"
  17828. },
  17829. "message": {
  17830. "type": "string"
  17831. }
  17832. },
  17833. "required": [
  17834. "_tag",
  17835. "id",
  17836. "message"
  17837. ],
  17838. "additionalProperties": false
  17839. },
  17840. "Form.Value": {
  17841. "anyOf": [
  17842. {
  17843. "type": "string"
  17844. },
  17845. {
  17846. "anyOf": [
  17847. {
  17848. "anyOf": [
  17849. {
  17850. "type": "number"
  17851. },
  17852. {
  17853. "type": "string",
  17854. "enum": [
  17855. "NaN"
  17856. ]
  17857. },
  17858. {
  17859. "type": "string",
  17860. "enum": [
  17861. "Infinity"
  17862. ]
  17863. },
  17864. {
  17865. "type": "string",
  17866. "enum": [
  17867. "-Infinity"
  17868. ]
  17869. }
  17870. ]
  17871. },
  17872. {
  17873. "type": "string",
  17874. "enum": [
  17875. "Infinity",
  17876. "-Infinity",
  17877. "NaN"
  17878. ]
  17879. }
  17880. ]
  17881. },
  17882. {
  17883. "type": "boolean"
  17884. },
  17885. {
  17886. "type": "array",
  17887. "items": {
  17888. "type": "string"
  17889. }
  17890. }
  17891. ]
  17892. },
  17893. "Form.Answer": {
  17894. "type": "object",
  17895. "additionalProperties": {
  17896. "$ref": "#/components/schemas/Form.Value"
  17897. }
  17898. },
  17899. "Form.State": {
  17900. "anyOf": [
  17901. {
  17902. "type": "object",
  17903. "properties": {
  17904. "status": {
  17905. "type": "string",
  17906. "enum": [
  17907. "pending"
  17908. ]
  17909. }
  17910. },
  17911. "required": [
  17912. "status"
  17913. ],
  17914. "additionalProperties": false
  17915. },
  17916. {
  17917. "type": "object",
  17918. "properties": {
  17919. "status": {
  17920. "type": "string",
  17921. "enum": [
  17922. "answered"
  17923. ]
  17924. },
  17925. "answer": {
  17926. "$ref": "#/components/schemas/Form.Answer"
  17927. }
  17928. },
  17929. "required": [
  17930. "status",
  17931. "answer"
  17932. ],
  17933. "additionalProperties": false
  17934. },
  17935. {
  17936. "type": "object",
  17937. "properties": {
  17938. "status": {
  17939. "type": "string",
  17940. "enum": [
  17941. "cancelled"
  17942. ]
  17943. }
  17944. },
  17945. "required": [
  17946. "status"
  17947. ],
  17948. "additionalProperties": false
  17949. }
  17950. ]
  17951. },
  17952. "Form.Reply": {
  17953. "type": "object",
  17954. "properties": {
  17955. "answer": {
  17956. "$ref": "#/components/schemas/Form.Answer"
  17957. }
  17958. },
  17959. "required": [
  17960. "answer"
  17961. ],
  17962. "additionalProperties": false
  17963. },
  17964. "FormAlreadySettledError": {
  17965. "type": "object",
  17966. "properties": {
  17967. "_tag": {
  17968. "type": "string",
  17969. "enum": [
  17970. "FormAlreadySettledError"
  17971. ]
  17972. },
  17973. "id": {
  17974. "type": "string"
  17975. },
  17976. "message": {
  17977. "type": "string"
  17978. }
  17979. },
  17980. "required": [
  17981. "_tag",
  17982. "id",
  17983. "message"
  17984. ],
  17985. "additionalProperties": false
  17986. },
  17987. "FormInvalidAnswerError": {
  17988. "type": "object",
  17989. "properties": {
  17990. "_tag": {
  17991. "type": "string",
  17992. "enum": [
  17993. "FormInvalidAnswerError"
  17994. ]
  17995. },
  17996. "id": {
  17997. "type": "string"
  17998. },
  17999. "message": {
  18000. "type": "string"
  18001. }
  18002. },
  18003. "required": [
  18004. "_tag",
  18005. "id",
  18006. "message"
  18007. ],
  18008. "additionalProperties": false
  18009. },
  18010. "PermissionV2.Source": {
  18011. "anyOf": [
  18012. {
  18013. "type": "object",
  18014. "properties": {
  18015. "type": {
  18016. "type": "string",
  18017. "enum": [
  18018. "tool"
  18019. ]
  18020. },
  18021. "messageID": {
  18022. "type": "string"
  18023. },
  18024. "callID": {
  18025. "type": "string"
  18026. }
  18027. },
  18028. "required": [
  18029. "type",
  18030. "messageID",
  18031. "callID"
  18032. ],
  18033. "additionalProperties": false
  18034. }
  18035. ]
  18036. },
  18037. "PermissionV2.Request": {
  18038. "type": "object",
  18039. "properties": {
  18040. "id": {
  18041. "type": "string",
  18042. "allOf": [
  18043. {
  18044. "pattern": "^per"
  18045. }
  18046. ]
  18047. },
  18048. "sessionID": {
  18049. "type": "string",
  18050. "allOf": [
  18051. {
  18052. "pattern": "^ses"
  18053. }
  18054. ]
  18055. },
  18056. "action": {
  18057. "type": "string"
  18058. },
  18059. "resources": {
  18060. "type": "array",
  18061. "items": {
  18062. "type": "string"
  18063. }
  18064. },
  18065. "save": {
  18066. "type": "array",
  18067. "items": {
  18068. "type": "string"
  18069. }
  18070. },
  18071. "metadata": {
  18072. "type": "object"
  18073. },
  18074. "source": {
  18075. "$ref": "#/components/schemas/PermissionV2.Source"
  18076. }
  18077. },
  18078. "required": [
  18079. "id",
  18080. "sessionID",
  18081. "action",
  18082. "resources"
  18083. ],
  18084. "additionalProperties": false
  18085. },
  18086. "PermissionSaved.Info": {
  18087. "type": "object",
  18088. "properties": {
  18089. "id": {
  18090. "type": "string"
  18091. },
  18092. "projectID": {
  18093. "type": "string"
  18094. },
  18095. "action": {
  18096. "type": "string"
  18097. },
  18098. "resource": {
  18099. "type": "string"
  18100. }
  18101. },
  18102. "required": [
  18103. "id",
  18104. "projectID",
  18105. "action",
  18106. "resource"
  18107. ],
  18108. "additionalProperties": false
  18109. },
  18110. "PermissionNotFoundError": {
  18111. "type": "object",
  18112. "properties": {
  18113. "_tag": {
  18114. "type": "string",
  18115. "enum": [
  18116. "PermissionNotFoundError"
  18117. ]
  18118. },
  18119. "requestID": {
  18120. "type": "string"
  18121. },
  18122. "message": {
  18123. "type": "string"
  18124. }
  18125. },
  18126. "required": [
  18127. "_tag",
  18128. "requestID",
  18129. "message"
  18130. ],
  18131. "additionalProperties": false
  18132. },
  18133. "PermissionV2.Reply": {
  18134. "type": "string",
  18135. "enum": [
  18136. "once",
  18137. "always",
  18138. "reject"
  18139. ]
  18140. },
  18141. "FileSystem.Entry": {
  18142. "type": "object",
  18143. "properties": {
  18144. "path": {
  18145. "type": "string"
  18146. },
  18147. "type": {
  18148. "type": "string",
  18149. "enum": [
  18150. "file",
  18151. "directory"
  18152. ]
  18153. }
  18154. },
  18155. "required": [
  18156. "path",
  18157. "type"
  18158. ],
  18159. "additionalProperties": false
  18160. },
  18161. "CommandV2.Info": {
  18162. "type": "object",
  18163. "properties": {
  18164. "name": {
  18165. "type": "string"
  18166. },
  18167. "template": {
  18168. "type": "string"
  18169. },
  18170. "description": {
  18171. "type": "string"
  18172. },
  18173. "agent": {
  18174. "type": "string"
  18175. },
  18176. "model": {
  18177. "$ref": "#/components/schemas/Model.Ref"
  18178. },
  18179. "subtask": {
  18180. "type": "boolean"
  18181. }
  18182. },
  18183. "required": [
  18184. "name",
  18185. "template"
  18186. ],
  18187. "additionalProperties": false
  18188. },
  18189. "SkillV2.Info": {
  18190. "type": "object",
  18191. "properties": {
  18192. "name": {
  18193. "type": "string"
  18194. },
  18195. "description": {
  18196. "type": "string"
  18197. },
  18198. "slash": {
  18199. "type": "boolean"
  18200. },
  18201. "autoinvoke": {
  18202. "type": "boolean"
  18203. },
  18204. "location": {
  18205. "type": "string"
  18206. },
  18207. "content": {
  18208. "type": "string"
  18209. }
  18210. },
  18211. "required": [
  18212. "name",
  18213. "location",
  18214. "content"
  18215. ],
  18216. "additionalProperties": false
  18217. },
  18218. "models-dev.refreshed": {
  18219. "type": "object",
  18220. "properties": {
  18221. "id": {
  18222. "type": "string",
  18223. "allOf": [
  18224. {
  18225. "pattern": "^evt_"
  18226. }
  18227. ]
  18228. },
  18229. "created": {
  18230. "type": "number"
  18231. },
  18232. "metadata": {
  18233. "type": "object"
  18234. },
  18235. "type": {
  18236. "type": "string",
  18237. "enum": [
  18238. "models-dev.refreshed"
  18239. ]
  18240. },
  18241. "location": {
  18242. "$ref": "#/components/schemas/Location.Ref"
  18243. },
  18244. "data": {
  18245. "anyOf": [
  18246. {
  18247. "type": "object"
  18248. },
  18249. {
  18250. "type": "array"
  18251. }
  18252. ]
  18253. }
  18254. },
  18255. "required": [
  18256. "id",
  18257. "created",
  18258. "type",
  18259. "data"
  18260. ],
  18261. "additionalProperties": false
  18262. },
  18263. "integration.updated": {
  18264. "type": "object",
  18265. "properties": {
  18266. "id": {
  18267. "type": "string",
  18268. "allOf": [
  18269. {
  18270. "pattern": "^evt_"
  18271. }
  18272. ]
  18273. },
  18274. "created": {
  18275. "type": "number"
  18276. },
  18277. "metadata": {
  18278. "type": "object"
  18279. },
  18280. "type": {
  18281. "type": "string",
  18282. "enum": [
  18283. "integration.updated"
  18284. ]
  18285. },
  18286. "location": {
  18287. "$ref": "#/components/schemas/Location.Ref"
  18288. },
  18289. "data": {
  18290. "anyOf": [
  18291. {
  18292. "type": "object"
  18293. },
  18294. {
  18295. "type": "array"
  18296. }
  18297. ]
  18298. }
  18299. },
  18300. "required": [
  18301. "id",
  18302. "created",
  18303. "type",
  18304. "data"
  18305. ],
  18306. "additionalProperties": false
  18307. },
  18308. "integration.connection.updated": {
  18309. "type": "object",
  18310. "properties": {
  18311. "id": {
  18312. "type": "string",
  18313. "allOf": [
  18314. {
  18315. "pattern": "^evt_"
  18316. }
  18317. ]
  18318. },
  18319. "created": {
  18320. "type": "number"
  18321. },
  18322. "metadata": {
  18323. "type": "object"
  18324. },
  18325. "type": {
  18326. "type": "string",
  18327. "enum": [
  18328. "integration.connection.updated"
  18329. ]
  18330. },
  18331. "location": {
  18332. "$ref": "#/components/schemas/Location.Ref"
  18333. },
  18334. "data": {
  18335. "type": "object",
  18336. "properties": {
  18337. "integrationID": {
  18338. "type": "string"
  18339. }
  18340. },
  18341. "required": [
  18342. "integrationID"
  18343. ],
  18344. "additionalProperties": false
  18345. }
  18346. },
  18347. "required": [
  18348. "id",
  18349. "created",
  18350. "type",
  18351. "data"
  18352. ],
  18353. "additionalProperties": false
  18354. },
  18355. "catalog.updated": {
  18356. "type": "object",
  18357. "properties": {
  18358. "id": {
  18359. "type": "string",
  18360. "allOf": [
  18361. {
  18362. "pattern": "^evt_"
  18363. }
  18364. ]
  18365. },
  18366. "created": {
  18367. "type": "number"
  18368. },
  18369. "metadata": {
  18370. "type": "object"
  18371. },
  18372. "type": {
  18373. "type": "string",
  18374. "enum": [
  18375. "catalog.updated"
  18376. ]
  18377. },
  18378. "location": {
  18379. "$ref": "#/components/schemas/Location.Ref"
  18380. },
  18381. "data": {
  18382. "anyOf": [
  18383. {
  18384. "type": "object"
  18385. },
  18386. {
  18387. "type": "array"
  18388. }
  18389. ]
  18390. }
  18391. },
  18392. "required": [
  18393. "id",
  18394. "created",
  18395. "type",
  18396. "data"
  18397. ],
  18398. "additionalProperties": false
  18399. },
  18400. "agent.updated": {
  18401. "type": "object",
  18402. "properties": {
  18403. "id": {
  18404. "type": "string",
  18405. "allOf": [
  18406. {
  18407. "pattern": "^evt_"
  18408. }
  18409. ]
  18410. },
  18411. "created": {
  18412. "type": "number"
  18413. },
  18414. "metadata": {
  18415. "type": "object"
  18416. },
  18417. "type": {
  18418. "type": "string",
  18419. "enum": [
  18420. "agent.updated"
  18421. ]
  18422. },
  18423. "location": {
  18424. "$ref": "#/components/schemas/Location.Ref"
  18425. },
  18426. "data": {
  18427. "anyOf": [
  18428. {
  18429. "type": "object"
  18430. },
  18431. {
  18432. "type": "array"
  18433. }
  18434. ]
  18435. }
  18436. },
  18437. "required": [
  18438. "id",
  18439. "created",
  18440. "type",
  18441. "data"
  18442. ],
  18443. "additionalProperties": false
  18444. },
  18445. "SnapshotFileDiff": {
  18446. "type": "object",
  18447. "properties": {
  18448. "file": {
  18449. "type": "string"
  18450. },
  18451. "patch": {
  18452. "type": "string"
  18453. },
  18454. "additions": {
  18455. "type": "number"
  18456. },
  18457. "deletions": {
  18458. "type": "number"
  18459. },
  18460. "status": {
  18461. "type": "string",
  18462. "enum": [
  18463. "added",
  18464. "deleted",
  18465. "modified"
  18466. ]
  18467. }
  18468. },
  18469. "required": [
  18470. "additions",
  18471. "deletions"
  18472. ],
  18473. "additionalProperties": false
  18474. },
  18475. "PermissionAction": {
  18476. "type": "string",
  18477. "enum": [
  18478. "allow",
  18479. "deny",
  18480. "ask"
  18481. ]
  18482. },
  18483. "PermissionRule": {
  18484. "type": "object",
  18485. "properties": {
  18486. "permission": {
  18487. "type": "string"
  18488. },
  18489. "pattern": {
  18490. "type": "string"
  18491. },
  18492. "action": {
  18493. "$ref": "#/components/schemas/PermissionAction"
  18494. }
  18495. },
  18496. "required": [
  18497. "permission",
  18498. "pattern",
  18499. "action"
  18500. ],
  18501. "additionalProperties": false
  18502. },
  18503. "PermissionRuleset": {
  18504. "type": "array",
  18505. "items": {
  18506. "$ref": "#/components/schemas/PermissionRule"
  18507. }
  18508. },
  18509. "Session": {
  18510. "type": "object",
  18511. "properties": {
  18512. "id": {
  18513. "type": "string",
  18514. "allOf": [
  18515. {
  18516. "pattern": "^ses"
  18517. }
  18518. ]
  18519. },
  18520. "slug": {
  18521. "type": "string"
  18522. },
  18523. "projectID": {
  18524. "type": "string"
  18525. },
  18526. "workspaceID": {
  18527. "type": "string",
  18528. "allOf": [
  18529. {
  18530. "pattern": "^wrk"
  18531. }
  18532. ]
  18533. },
  18534. "directory": {
  18535. "type": "string"
  18536. },
  18537. "path": {
  18538. "type": "string"
  18539. },
  18540. "parentID": {
  18541. "type": "string",
  18542. "allOf": [
  18543. {
  18544. "pattern": "^ses"
  18545. }
  18546. ]
  18547. },
  18548. "summary": {
  18549. "type": "object",
  18550. "properties": {
  18551. "additions": {
  18552. "type": "number"
  18553. },
  18554. "deletions": {
  18555. "type": "number"
  18556. },
  18557. "files": {
  18558. "type": "number"
  18559. },
  18560. "diffs": {
  18561. "type": "array",
  18562. "items": {
  18563. "$ref": "#/components/schemas/SnapshotFileDiff"
  18564. }
  18565. }
  18566. },
  18567. "required": [
  18568. "additions",
  18569. "deletions",
  18570. "files"
  18571. ],
  18572. "additionalProperties": false
  18573. },
  18574. "cost": {
  18575. "type": "number"
  18576. },
  18577. "tokens": {
  18578. "type": "object",
  18579. "properties": {
  18580. "input": {
  18581. "type": "number"
  18582. },
  18583. "output": {
  18584. "type": "number"
  18585. },
  18586. "reasoning": {
  18587. "type": "number"
  18588. },
  18589. "cache": {
  18590. "type": "object",
  18591. "properties": {
  18592. "read": {
  18593. "type": "number"
  18594. },
  18595. "write": {
  18596. "type": "number"
  18597. }
  18598. },
  18599. "required": [
  18600. "read",
  18601. "write"
  18602. ],
  18603. "additionalProperties": false
  18604. }
  18605. },
  18606. "required": [
  18607. "input",
  18608. "output",
  18609. "reasoning",
  18610. "cache"
  18611. ],
  18612. "additionalProperties": false
  18613. },
  18614. "share": {
  18615. "type": "object",
  18616. "properties": {
  18617. "url": {
  18618. "type": "string"
  18619. }
  18620. },
  18621. "required": [
  18622. "url"
  18623. ],
  18624. "additionalProperties": false
  18625. },
  18626. "title": {
  18627. "type": "string"
  18628. },
  18629. "agent": {
  18630. "type": "string"
  18631. },
  18632. "model": {
  18633. "type": "object",
  18634. "properties": {
  18635. "id": {
  18636. "type": "string"
  18637. },
  18638. "providerID": {
  18639. "type": "string"
  18640. },
  18641. "variant": {
  18642. "type": "string"
  18643. }
  18644. },
  18645. "required": [
  18646. "id",
  18647. "providerID"
  18648. ],
  18649. "additionalProperties": false
  18650. },
  18651. "version": {
  18652. "type": "string"
  18653. },
  18654. "metadata": {
  18655. "type": "object"
  18656. },
  18657. "time": {
  18658. "type": "object",
  18659. "properties": {
  18660. "created": {
  18661. "type": "integer",
  18662. "allOf": [
  18663. {
  18664. "minimum": 0
  18665. }
  18666. ]
  18667. },
  18668. "updated": {
  18669. "type": "integer",
  18670. "allOf": [
  18671. {
  18672. "minimum": 0
  18673. }
  18674. ]
  18675. },
  18676. "compacting": {
  18677. "type": "integer",
  18678. "allOf": [
  18679. {
  18680. "minimum": 0
  18681. }
  18682. ]
  18683. },
  18684. "archived": {
  18685. "type": "number"
  18686. }
  18687. },
  18688. "required": [
  18689. "created",
  18690. "updated"
  18691. ],
  18692. "additionalProperties": false
  18693. },
  18694. "permission": {
  18695. "$ref": "#/components/schemas/PermissionRuleset"
  18696. },
  18697. "revert": {
  18698. "type": "object",
  18699. "properties": {
  18700. "messageID": {
  18701. "type": "string",
  18702. "allOf": [
  18703. {
  18704. "pattern": "^msg"
  18705. }
  18706. ]
  18707. },
  18708. "partID": {
  18709. "type": "string",
  18710. "allOf": [
  18711. {
  18712. "pattern": "^prt"
  18713. }
  18714. ]
  18715. },
  18716. "snapshot": {
  18717. "type": "string"
  18718. },
  18719. "diff": {
  18720. "type": "string"
  18721. }
  18722. },
  18723. "required": [
  18724. "messageID"
  18725. ],
  18726. "additionalProperties": false
  18727. }
  18728. },
  18729. "required": [
  18730. "id",
  18731. "slug",
  18732. "projectID",
  18733. "directory",
  18734. "title",
  18735. "version",
  18736. "time"
  18737. ],
  18738. "additionalProperties": false
  18739. },
  18740. "session.created": {
  18741. "type": "object",
  18742. "properties": {
  18743. "id": {
  18744. "type": "string",
  18745. "allOf": [
  18746. {
  18747. "pattern": "^evt_"
  18748. }
  18749. ]
  18750. },
  18751. "created": {
  18752. "type": "number"
  18753. },
  18754. "metadata": {
  18755. "type": "object"
  18756. },
  18757. "type": {
  18758. "type": "string",
  18759. "enum": [
  18760. "session.created"
  18761. ]
  18762. },
  18763. "durable": {
  18764. "type": "object",
  18765. "properties": {
  18766. "aggregateID": {
  18767. "type": "string"
  18768. },
  18769. "seq": {
  18770. "type": "integer",
  18771. "allOf": [
  18772. {
  18773. "minimum": 0
  18774. }
  18775. ]
  18776. },
  18777. "version": {
  18778. "type": "integer",
  18779. "allOf": [
  18780. {
  18781. "minimum": 1
  18782. }
  18783. ]
  18784. }
  18785. },
  18786. "required": [
  18787. "aggregateID",
  18788. "seq",
  18789. "version"
  18790. ],
  18791. "additionalProperties": false
  18792. },
  18793. "location": {
  18794. "$ref": "#/components/schemas/Location.Ref"
  18795. },
  18796. "data": {
  18797. "type": "object",
  18798. "properties": {
  18799. "sessionID": {
  18800. "type": "string",
  18801. "allOf": [
  18802. {
  18803. "pattern": "^ses"
  18804. }
  18805. ]
  18806. },
  18807. "info": {
  18808. "$ref": "#/components/schemas/Session"
  18809. }
  18810. },
  18811. "required": [
  18812. "sessionID",
  18813. "info"
  18814. ],
  18815. "additionalProperties": false
  18816. }
  18817. },
  18818. "required": [
  18819. "id",
  18820. "created",
  18821. "type",
  18822. "durable",
  18823. "data"
  18824. ],
  18825. "additionalProperties": false
  18826. },
  18827. "session.updated": {
  18828. "type": "object",
  18829. "properties": {
  18830. "id": {
  18831. "type": "string",
  18832. "allOf": [
  18833. {
  18834. "pattern": "^evt_"
  18835. }
  18836. ]
  18837. },
  18838. "created": {
  18839. "type": "number"
  18840. },
  18841. "metadata": {
  18842. "type": "object"
  18843. },
  18844. "type": {
  18845. "type": "string",
  18846. "enum": [
  18847. "session.updated"
  18848. ]
  18849. },
  18850. "durable": {
  18851. "type": "object",
  18852. "properties": {
  18853. "aggregateID": {
  18854. "type": "string"
  18855. },
  18856. "seq": {
  18857. "type": "integer",
  18858. "allOf": [
  18859. {
  18860. "minimum": 0
  18861. }
  18862. ]
  18863. },
  18864. "version": {
  18865. "type": "integer",
  18866. "allOf": [
  18867. {
  18868. "minimum": 1
  18869. }
  18870. ]
  18871. }
  18872. },
  18873. "required": [
  18874. "aggregateID",
  18875. "seq",
  18876. "version"
  18877. ],
  18878. "additionalProperties": false
  18879. },
  18880. "location": {
  18881. "$ref": "#/components/schemas/Location.Ref"
  18882. },
  18883. "data": {
  18884. "type": "object",
  18885. "properties": {
  18886. "sessionID": {
  18887. "type": "string",
  18888. "allOf": [
  18889. {
  18890. "pattern": "^ses"
  18891. }
  18892. ]
  18893. },
  18894. "info": {
  18895. "$ref": "#/components/schemas/Session"
  18896. }
  18897. },
  18898. "required": [
  18899. "sessionID",
  18900. "info"
  18901. ],
  18902. "additionalProperties": false
  18903. }
  18904. },
  18905. "required": [
  18906. "id",
  18907. "created",
  18908. "type",
  18909. "durable",
  18910. "data"
  18911. ],
  18912. "additionalProperties": false
  18913. },
  18914. "session.deleted": {
  18915. "type": "object",
  18916. "properties": {
  18917. "id": {
  18918. "type": "string",
  18919. "allOf": [
  18920. {
  18921. "pattern": "^evt_"
  18922. }
  18923. ]
  18924. },
  18925. "created": {
  18926. "type": "number"
  18927. },
  18928. "metadata": {
  18929. "type": "object"
  18930. },
  18931. "type": {
  18932. "type": "string",
  18933. "enum": [
  18934. "session.deleted"
  18935. ]
  18936. },
  18937. "durable": {
  18938. "type": "object",
  18939. "properties": {
  18940. "aggregateID": {
  18941. "type": "string"
  18942. },
  18943. "seq": {
  18944. "type": "integer",
  18945. "allOf": [
  18946. {
  18947. "minimum": 0
  18948. }
  18949. ]
  18950. },
  18951. "version": {
  18952. "type": "integer",
  18953. "allOf": [
  18954. {
  18955. "minimum": 1
  18956. }
  18957. ]
  18958. }
  18959. },
  18960. "required": [
  18961. "aggregateID",
  18962. "seq",
  18963. "version"
  18964. ],
  18965. "additionalProperties": false
  18966. },
  18967. "location": {
  18968. "$ref": "#/components/schemas/Location.Ref"
  18969. },
  18970. "data": {
  18971. "type": "object",
  18972. "properties": {
  18973. "sessionID": {
  18974. "type": "string",
  18975. "allOf": [
  18976. {
  18977. "pattern": "^ses"
  18978. }
  18979. ]
  18980. },
  18981. "info": {
  18982. "$ref": "#/components/schemas/Session"
  18983. }
  18984. },
  18985. "required": [
  18986. "sessionID",
  18987. "info"
  18988. ],
  18989. "additionalProperties": false
  18990. }
  18991. },
  18992. "required": [
  18993. "id",
  18994. "created",
  18995. "type",
  18996. "durable",
  18997. "data"
  18998. ],
  18999. "additionalProperties": false
  19000. },
  19001. "JSONSchema": {
  19002. "type": "object"
  19003. },
  19004. "OutputFormat": {
  19005. "anyOf": [
  19006. {
  19007. "type": "object",
  19008. "properties": {
  19009. "type": {
  19010. "type": "string",
  19011. "enum": [
  19012. "text"
  19013. ]
  19014. }
  19015. },
  19016. "required": [
  19017. "type"
  19018. ],
  19019. "additionalProperties": false
  19020. },
  19021. {
  19022. "type": "object",
  19023. "properties": {
  19024. "type": {
  19025. "type": "string",
  19026. "enum": [
  19027. "json_schema"
  19028. ]
  19029. },
  19030. "schema": {
  19031. "$ref": "#/components/schemas/JSONSchema"
  19032. },
  19033. "retryCount": {
  19034. "anyOf": [
  19035. {
  19036. "anyOf": [
  19037. {
  19038. "type": "integer",
  19039. "allOf": [
  19040. {
  19041. "minimum": 0
  19042. }
  19043. ]
  19044. },
  19045. {
  19046. "type": "null"
  19047. }
  19048. ]
  19049. },
  19050. {
  19051. "type": "null"
  19052. }
  19053. ]
  19054. }
  19055. },
  19056. "required": [
  19057. "type",
  19058. "schema"
  19059. ],
  19060. "additionalProperties": false
  19061. }
  19062. ]
  19063. },
  19064. "UserMessage": {
  19065. "type": "object",
  19066. "properties": {
  19067. "id": {
  19068. "type": "string",
  19069. "allOf": [
  19070. {
  19071. "pattern": "^msg"
  19072. }
  19073. ]
  19074. },
  19075. "sessionID": {
  19076. "type": "string",
  19077. "allOf": [
  19078. {
  19079. "pattern": "^ses"
  19080. }
  19081. ]
  19082. },
  19083. "role": {
  19084. "type": "string",
  19085. "enum": [
  19086. "user"
  19087. ]
  19088. },
  19089. "time": {
  19090. "type": "object",
  19091. "properties": {
  19092. "created": {
  19093. "type": "number",
  19094. "allOf": [
  19095. {
  19096. "minimum": 0
  19097. }
  19098. ]
  19099. }
  19100. },
  19101. "required": [
  19102. "created"
  19103. ],
  19104. "additionalProperties": false
  19105. },
  19106. "format": {
  19107. "anyOf": [
  19108. {
  19109. "$ref": "#/components/schemas/OutputFormat"
  19110. },
  19111. {
  19112. "type": "null"
  19113. }
  19114. ]
  19115. },
  19116. "summary": {
  19117. "anyOf": [
  19118. {
  19119. "type": "object",
  19120. "properties": {
  19121. "title": {
  19122. "anyOf": [
  19123. {
  19124. "type": "string"
  19125. },
  19126. {
  19127. "type": "null"
  19128. }
  19129. ]
  19130. },
  19131. "body": {
  19132. "anyOf": [
  19133. {
  19134. "type": "string"
  19135. },
  19136. {
  19137. "type": "null"
  19138. }
  19139. ]
  19140. },
  19141. "diffs": {
  19142. "type": "array",
  19143. "items": {
  19144. "$ref": "#/components/schemas/SnapshotFileDiff"
  19145. }
  19146. }
  19147. },
  19148. "required": [
  19149. "diffs"
  19150. ],
  19151. "additionalProperties": false
  19152. },
  19153. {
  19154. "type": "null"
  19155. }
  19156. ]
  19157. },
  19158. "agent": {
  19159. "type": "string"
  19160. },
  19161. "model": {
  19162. "type": "object",
  19163. "properties": {
  19164. "providerID": {
  19165. "type": "string"
  19166. },
  19167. "modelID": {
  19168. "type": "string"
  19169. },
  19170. "variant": {
  19171. "anyOf": [
  19172. {
  19173. "type": "string"
  19174. },
  19175. {
  19176. "type": "null"
  19177. }
  19178. ]
  19179. }
  19180. },
  19181. "required": [
  19182. "providerID",
  19183. "modelID"
  19184. ],
  19185. "additionalProperties": false
  19186. },
  19187. "system": {
  19188. "anyOf": [
  19189. {
  19190. "type": "string"
  19191. },
  19192. {
  19193. "type": "null"
  19194. }
  19195. ]
  19196. },
  19197. "tools": {
  19198. "anyOf": [
  19199. {
  19200. "type": "object",
  19201. "additionalProperties": {
  19202. "type": "boolean"
  19203. }
  19204. },
  19205. {
  19206. "type": "null"
  19207. }
  19208. ]
  19209. }
  19210. },
  19211. "required": [
  19212. "id",
  19213. "sessionID",
  19214. "role",
  19215. "time",
  19216. "agent",
  19217. "model"
  19218. ],
  19219. "additionalProperties": false
  19220. },
  19221. "ProviderAuthError": {
  19222. "type": "object",
  19223. "properties": {
  19224. "name": {
  19225. "type": "string",
  19226. "enum": [
  19227. "ProviderAuthError"
  19228. ]
  19229. },
  19230. "data": {
  19231. "type": "object",
  19232. "properties": {
  19233. "providerID": {
  19234. "type": "string"
  19235. },
  19236. "message": {
  19237. "type": "string"
  19238. }
  19239. },
  19240. "required": [
  19241. "providerID",
  19242. "message"
  19243. ],
  19244. "additionalProperties": false
  19245. }
  19246. },
  19247. "required": [
  19248. "name",
  19249. "data"
  19250. ],
  19251. "additionalProperties": false
  19252. },
  19253. "UnknownError1": {
  19254. "type": "object",
  19255. "properties": {
  19256. "name": {
  19257. "type": "string",
  19258. "enum": [
  19259. "UnknownError"
  19260. ]
  19261. },
  19262. "data": {
  19263. "type": "object",
  19264. "properties": {
  19265. "message": {
  19266. "type": "string"
  19267. },
  19268. "ref": {
  19269. "anyOf": [
  19270. {
  19271. "type": "string"
  19272. },
  19273. {
  19274. "type": "null"
  19275. }
  19276. ]
  19277. }
  19278. },
  19279. "required": [
  19280. "message"
  19281. ],
  19282. "additionalProperties": false
  19283. }
  19284. },
  19285. "required": [
  19286. "name",
  19287. "data"
  19288. ],
  19289. "additionalProperties": false
  19290. },
  19291. "MessageOutputLengthError": {
  19292. "type": "object",
  19293. "properties": {
  19294. "name": {
  19295. "type": "string",
  19296. "enum": [
  19297. "MessageOutputLengthError"
  19298. ]
  19299. },
  19300. "data": {
  19301. "anyOf": [
  19302. {
  19303. "type": "object"
  19304. },
  19305. {
  19306. "type": "array"
  19307. }
  19308. ]
  19309. }
  19310. },
  19311. "required": [
  19312. "name",
  19313. "data"
  19314. ],
  19315. "additionalProperties": false
  19316. },
  19317. "MessageAbortedError": {
  19318. "type": "object",
  19319. "properties": {
  19320. "name": {
  19321. "type": "string",
  19322. "enum": [
  19323. "MessageAbortedError"
  19324. ]
  19325. },
  19326. "data": {
  19327. "type": "object",
  19328. "properties": {
  19329. "message": {
  19330. "type": "string"
  19331. }
  19332. },
  19333. "required": [
  19334. "message"
  19335. ],
  19336. "additionalProperties": false
  19337. }
  19338. },
  19339. "required": [
  19340. "name",
  19341. "data"
  19342. ],
  19343. "additionalProperties": false
  19344. },
  19345. "StructuredOutputError": {
  19346. "type": "object",
  19347. "properties": {
  19348. "name": {
  19349. "type": "string",
  19350. "enum": [
  19351. "StructuredOutputError"
  19352. ]
  19353. },
  19354. "data": {
  19355. "type": "object",
  19356. "properties": {
  19357. "message": {
  19358. "type": "string"
  19359. },
  19360. "retries": {
  19361. "type": "integer",
  19362. "allOf": [
  19363. {
  19364. "minimum": 0
  19365. }
  19366. ]
  19367. }
  19368. },
  19369. "required": [
  19370. "message",
  19371. "retries"
  19372. ],
  19373. "additionalProperties": false
  19374. }
  19375. },
  19376. "required": [
  19377. "name",
  19378. "data"
  19379. ],
  19380. "additionalProperties": false
  19381. },
  19382. "ContextOverflowError": {
  19383. "type": "object",
  19384. "properties": {
  19385. "name": {
  19386. "type": "string",
  19387. "enum": [
  19388. "ContextOverflowError"
  19389. ]
  19390. },
  19391. "data": {
  19392. "type": "object",
  19393. "properties": {
  19394. "message": {
  19395. "type": "string"
  19396. },
  19397. "responseBody": {
  19398. "anyOf": [
  19399. {
  19400. "type": "string"
  19401. },
  19402. {
  19403. "type": "null"
  19404. }
  19405. ]
  19406. }
  19407. },
  19408. "required": [
  19409. "message"
  19410. ],
  19411. "additionalProperties": false
  19412. }
  19413. },
  19414. "required": [
  19415. "name",
  19416. "data"
  19417. ],
  19418. "additionalProperties": false
  19419. },
  19420. "ContentFilterError": {
  19421. "type": "object",
  19422. "properties": {
  19423. "name": {
  19424. "type": "string",
  19425. "enum": [
  19426. "ContentFilterError"
  19427. ]
  19428. },
  19429. "data": {
  19430. "type": "object",
  19431. "properties": {
  19432. "message": {
  19433. "type": "string"
  19434. }
  19435. },
  19436. "required": [
  19437. "message"
  19438. ],
  19439. "additionalProperties": false
  19440. }
  19441. },
  19442. "required": [
  19443. "name",
  19444. "data"
  19445. ],
  19446. "additionalProperties": false
  19447. },
  19448. "APIError": {
  19449. "type": "object",
  19450. "properties": {
  19451. "name": {
  19452. "type": "string",
  19453. "enum": [
  19454. "APIError"
  19455. ]
  19456. },
  19457. "data": {
  19458. "type": "object",
  19459. "properties": {
  19460. "message": {
  19461. "type": "string"
  19462. },
  19463. "statusCode": {
  19464. "anyOf": [
  19465. {
  19466. "type": "integer",
  19467. "allOf": [
  19468. {
  19469. "minimum": 0
  19470. }
  19471. ]
  19472. },
  19473. {
  19474. "type": "null"
  19475. }
  19476. ]
  19477. },
  19478. "isRetryable": {
  19479. "type": "boolean"
  19480. },
  19481. "responseHeaders": {
  19482. "anyOf": [
  19483. {
  19484. "type": "object",
  19485. "additionalProperties": {
  19486. "type": "string"
  19487. }
  19488. },
  19489. {
  19490. "type": "null"
  19491. }
  19492. ]
  19493. },
  19494. "responseBody": {
  19495. "anyOf": [
  19496. {
  19497. "type": "string"
  19498. },
  19499. {
  19500. "type": "null"
  19501. }
  19502. ]
  19503. },
  19504. "metadata": {
  19505. "anyOf": [
  19506. {
  19507. "type": "object",
  19508. "additionalProperties": {
  19509. "type": "string"
  19510. }
  19511. },
  19512. {
  19513. "type": "null"
  19514. }
  19515. ]
  19516. }
  19517. },
  19518. "required": [
  19519. "message",
  19520. "isRetryable"
  19521. ],
  19522. "additionalProperties": false
  19523. }
  19524. },
  19525. "required": [
  19526. "name",
  19527. "data"
  19528. ],
  19529. "additionalProperties": false
  19530. },
  19531. "AssistantMessage": {
  19532. "type": "object",
  19533. "properties": {
  19534. "id": {
  19535. "type": "string",
  19536. "allOf": [
  19537. {
  19538. "pattern": "^msg"
  19539. }
  19540. ]
  19541. },
  19542. "sessionID": {
  19543. "type": "string",
  19544. "allOf": [
  19545. {
  19546. "pattern": "^ses"
  19547. }
  19548. ]
  19549. },
  19550. "role": {
  19551. "type": "string",
  19552. "enum": [
  19553. "assistant"
  19554. ]
  19555. },
  19556. "time": {
  19557. "type": "object",
  19558. "properties": {
  19559. "created": {
  19560. "type": "integer",
  19561. "allOf": [
  19562. {
  19563. "minimum": 0
  19564. }
  19565. ]
  19566. },
  19567. "completed": {
  19568. "anyOf": [
  19569. {
  19570. "type": "integer",
  19571. "allOf": [
  19572. {
  19573. "minimum": 0
  19574. }
  19575. ]
  19576. },
  19577. {
  19578. "type": "null"
  19579. }
  19580. ]
  19581. }
  19582. },
  19583. "required": [
  19584. "created"
  19585. ],
  19586. "additionalProperties": false
  19587. },
  19588. "error": {
  19589. "anyOf": [
  19590. {
  19591. "anyOf": [
  19592. {
  19593. "$ref": "#/components/schemas/ProviderAuthError"
  19594. },
  19595. {
  19596. "$ref": "#/components/schemas/UnknownError1"
  19597. },
  19598. {
  19599. "$ref": "#/components/schemas/MessageOutputLengthError"
  19600. },
  19601. {
  19602. "$ref": "#/components/schemas/MessageAbortedError"
  19603. },
  19604. {
  19605. "$ref": "#/components/schemas/StructuredOutputError"
  19606. },
  19607. {
  19608. "$ref": "#/components/schemas/ContextOverflowError"
  19609. },
  19610. {
  19611. "$ref": "#/components/schemas/ContentFilterError"
  19612. },
  19613. {
  19614. "$ref": "#/components/schemas/APIError"
  19615. }
  19616. ]
  19617. },
  19618. {
  19619. "type": "null"
  19620. }
  19621. ]
  19622. },
  19623. "parentID": {
  19624. "type": "string",
  19625. "allOf": [
  19626. {
  19627. "pattern": "^msg"
  19628. }
  19629. ]
  19630. },
  19631. "modelID": {
  19632. "type": "string"
  19633. },
  19634. "providerID": {
  19635. "type": "string"
  19636. },
  19637. "mode": {
  19638. "type": "string"
  19639. },
  19640. "agent": {
  19641. "type": "string"
  19642. },
  19643. "path": {
  19644. "type": "object",
  19645. "properties": {
  19646. "cwd": {
  19647. "type": "string"
  19648. },
  19649. "root": {
  19650. "type": "string"
  19651. }
  19652. },
  19653. "required": [
  19654. "cwd",
  19655. "root"
  19656. ],
  19657. "additionalProperties": false
  19658. },
  19659. "summary": {
  19660. "anyOf": [
  19661. {
  19662. "type": "boolean"
  19663. },
  19664. {
  19665. "type": "null"
  19666. }
  19667. ]
  19668. },
  19669. "cost": {
  19670. "type": "number"
  19671. },
  19672. "tokens": {
  19673. "type": "object",
  19674. "properties": {
  19675. "total": {
  19676. "anyOf": [
  19677. {
  19678. "type": "number"
  19679. },
  19680. {
  19681. "type": "null"
  19682. }
  19683. ]
  19684. },
  19685. "input": {
  19686. "type": "number"
  19687. },
  19688. "output": {
  19689. "type": "number"
  19690. },
  19691. "reasoning": {
  19692. "type": "number"
  19693. },
  19694. "cache": {
  19695. "type": "object",
  19696. "properties": {
  19697. "read": {
  19698. "type": "number"
  19699. },
  19700. "write": {
  19701. "type": "number"
  19702. }
  19703. },
  19704. "required": [
  19705. "read",
  19706. "write"
  19707. ],
  19708. "additionalProperties": false
  19709. }
  19710. },
  19711. "required": [
  19712. "input",
  19713. "output",
  19714. "reasoning",
  19715. "cache"
  19716. ],
  19717. "additionalProperties": false
  19718. },
  19719. "structured": {
  19720. "anyOf": [
  19721. {},
  19722. {
  19723. "type": "null"
  19724. }
  19725. ]
  19726. },
  19727. "variant": {
  19728. "anyOf": [
  19729. {
  19730. "type": "string"
  19731. },
  19732. {
  19733. "type": "null"
  19734. }
  19735. ]
  19736. },
  19737. "finish": {
  19738. "anyOf": [
  19739. {
  19740. "type": "string"
  19741. },
  19742. {
  19743. "type": "null"
  19744. }
  19745. ]
  19746. }
  19747. },
  19748. "required": [
  19749. "id",
  19750. "sessionID",
  19751. "role",
  19752. "time",
  19753. "parentID",
  19754. "modelID",
  19755. "providerID",
  19756. "mode",
  19757. "agent",
  19758. "path",
  19759. "cost",
  19760. "tokens"
  19761. ],
  19762. "additionalProperties": false
  19763. },
  19764. "Message": {
  19765. "anyOf": [
  19766. {
  19767. "$ref": "#/components/schemas/UserMessage"
  19768. },
  19769. {
  19770. "$ref": "#/components/schemas/AssistantMessage"
  19771. }
  19772. ]
  19773. },
  19774. "message.updated": {
  19775. "type": "object",
  19776. "properties": {
  19777. "id": {
  19778. "type": "string",
  19779. "allOf": [
  19780. {
  19781. "pattern": "^evt_"
  19782. }
  19783. ]
  19784. },
  19785. "created": {
  19786. "type": "number"
  19787. },
  19788. "metadata": {
  19789. "type": "object"
  19790. },
  19791. "type": {
  19792. "type": "string",
  19793. "enum": [
  19794. "message.updated"
  19795. ]
  19796. },
  19797. "durable": {
  19798. "type": "object",
  19799. "properties": {
  19800. "aggregateID": {
  19801. "type": "string"
  19802. },
  19803. "seq": {
  19804. "type": "integer",
  19805. "allOf": [
  19806. {
  19807. "minimum": 0
  19808. }
  19809. ]
  19810. },
  19811. "version": {
  19812. "type": "integer",
  19813. "allOf": [
  19814. {
  19815. "minimum": 1
  19816. }
  19817. ]
  19818. }
  19819. },
  19820. "required": [
  19821. "aggregateID",
  19822. "seq",
  19823. "version"
  19824. ],
  19825. "additionalProperties": false
  19826. },
  19827. "location": {
  19828. "$ref": "#/components/schemas/Location.Ref"
  19829. },
  19830. "data": {
  19831. "type": "object",
  19832. "properties": {
  19833. "sessionID": {
  19834. "type": "string",
  19835. "allOf": [
  19836. {
  19837. "pattern": "^ses"
  19838. }
  19839. ]
  19840. },
  19841. "info": {
  19842. "$ref": "#/components/schemas/Message"
  19843. }
  19844. },
  19845. "required": [
  19846. "sessionID",
  19847. "info"
  19848. ],
  19849. "additionalProperties": false
  19850. }
  19851. },
  19852. "required": [
  19853. "id",
  19854. "created",
  19855. "type",
  19856. "durable",
  19857. "data"
  19858. ],
  19859. "additionalProperties": false
  19860. },
  19861. "message.removed": {
  19862. "type": "object",
  19863. "properties": {
  19864. "id": {
  19865. "type": "string",
  19866. "allOf": [
  19867. {
  19868. "pattern": "^evt_"
  19869. }
  19870. ]
  19871. },
  19872. "created": {
  19873. "type": "number"
  19874. },
  19875. "metadata": {
  19876. "type": "object"
  19877. },
  19878. "type": {
  19879. "type": "string",
  19880. "enum": [
  19881. "message.removed"
  19882. ]
  19883. },
  19884. "durable": {
  19885. "type": "object",
  19886. "properties": {
  19887. "aggregateID": {
  19888. "type": "string"
  19889. },
  19890. "seq": {
  19891. "type": "integer",
  19892. "allOf": [
  19893. {
  19894. "minimum": 0
  19895. }
  19896. ]
  19897. },
  19898. "version": {
  19899. "type": "integer",
  19900. "allOf": [
  19901. {
  19902. "minimum": 1
  19903. }
  19904. ]
  19905. }
  19906. },
  19907. "required": [
  19908. "aggregateID",
  19909. "seq",
  19910. "version"
  19911. ],
  19912. "additionalProperties": false
  19913. },
  19914. "location": {
  19915. "$ref": "#/components/schemas/Location.Ref"
  19916. },
  19917. "data": {
  19918. "type": "object",
  19919. "properties": {
  19920. "sessionID": {
  19921. "type": "string",
  19922. "allOf": [
  19923. {
  19924. "pattern": "^ses"
  19925. }
  19926. ]
  19927. },
  19928. "messageID": {
  19929. "type": "string",
  19930. "allOf": [
  19931. {
  19932. "pattern": "^msg"
  19933. }
  19934. ]
  19935. }
  19936. },
  19937. "required": [
  19938. "sessionID",
  19939. "messageID"
  19940. ],
  19941. "additionalProperties": false
  19942. }
  19943. },
  19944. "required": [
  19945. "id",
  19946. "created",
  19947. "type",
  19948. "durable",
  19949. "data"
  19950. ],
  19951. "additionalProperties": false
  19952. },
  19953. "TextPart": {
  19954. "type": "object",
  19955. "properties": {
  19956. "id": {
  19957. "type": "string",
  19958. "allOf": [
  19959. {
  19960. "pattern": "^prt"
  19961. }
  19962. ]
  19963. },
  19964. "sessionID": {
  19965. "type": "string",
  19966. "allOf": [
  19967. {
  19968. "pattern": "^ses"
  19969. }
  19970. ]
  19971. },
  19972. "messageID": {
  19973. "type": "string",
  19974. "allOf": [
  19975. {
  19976. "pattern": "^msg"
  19977. }
  19978. ]
  19979. },
  19980. "type": {
  19981. "type": "string",
  19982. "enum": [
  19983. "text"
  19984. ]
  19985. },
  19986. "text": {
  19987. "type": "string"
  19988. },
  19989. "synthetic": {
  19990. "anyOf": [
  19991. {
  19992. "type": "boolean"
  19993. },
  19994. {
  19995. "type": "null"
  19996. }
  19997. ]
  19998. },
  19999. "ignored": {
  20000. "anyOf": [
  20001. {
  20002. "type": "boolean"
  20003. },
  20004. {
  20005. "type": "null"
  20006. }
  20007. ]
  20008. },
  20009. "time": {
  20010. "anyOf": [
  20011. {
  20012. "type": "object",
  20013. "properties": {
  20014. "start": {
  20015. "type": "integer",
  20016. "allOf": [
  20017. {
  20018. "minimum": 0
  20019. }
  20020. ]
  20021. },
  20022. "end": {
  20023. "anyOf": [
  20024. {
  20025. "type": "integer",
  20026. "allOf": [
  20027. {
  20028. "minimum": 0
  20029. }
  20030. ]
  20031. },
  20032. {
  20033. "type": "null"
  20034. }
  20035. ]
  20036. }
  20037. },
  20038. "required": [
  20039. "start"
  20040. ],
  20041. "additionalProperties": false
  20042. },
  20043. {
  20044. "type": "null"
  20045. }
  20046. ]
  20047. },
  20048. "metadata": {
  20049. "anyOf": [
  20050. {
  20051. "type": "object"
  20052. },
  20053. {
  20054. "type": "null"
  20055. }
  20056. ]
  20057. }
  20058. },
  20059. "required": [
  20060. "id",
  20061. "sessionID",
  20062. "messageID",
  20063. "type",
  20064. "text"
  20065. ],
  20066. "additionalProperties": false
  20067. },
  20068. "SubtaskPart": {
  20069. "type": "object",
  20070. "properties": {
  20071. "id": {
  20072. "type": "string",
  20073. "allOf": [
  20074. {
  20075. "pattern": "^prt"
  20076. }
  20077. ]
  20078. },
  20079. "sessionID": {
  20080. "type": "string",
  20081. "allOf": [
  20082. {
  20083. "pattern": "^ses"
  20084. }
  20085. ]
  20086. },
  20087. "messageID": {
  20088. "type": "string",
  20089. "allOf": [
  20090. {
  20091. "pattern": "^msg"
  20092. }
  20093. ]
  20094. },
  20095. "type": {
  20096. "type": "string",
  20097. "enum": [
  20098. "subtask"
  20099. ]
  20100. },
  20101. "prompt": {
  20102. "type": "string"
  20103. },
  20104. "description": {
  20105. "type": "string"
  20106. },
  20107. "agent": {
  20108. "type": "string"
  20109. },
  20110. "model": {
  20111. "anyOf": [
  20112. {
  20113. "type": "object",
  20114. "properties": {
  20115. "providerID": {
  20116. "type": "string"
  20117. },
  20118. "modelID": {
  20119. "type": "string"
  20120. }
  20121. },
  20122. "required": [
  20123. "providerID",
  20124. "modelID"
  20125. ],
  20126. "additionalProperties": false
  20127. },
  20128. {
  20129. "type": "null"
  20130. }
  20131. ]
  20132. },
  20133. "command": {
  20134. "anyOf": [
  20135. {
  20136. "type": "string"
  20137. },
  20138. {
  20139. "type": "null"
  20140. }
  20141. ]
  20142. }
  20143. },
  20144. "required": [
  20145. "id",
  20146. "sessionID",
  20147. "messageID",
  20148. "type",
  20149. "prompt",
  20150. "description",
  20151. "agent"
  20152. ],
  20153. "additionalProperties": false
  20154. },
  20155. "ReasoningPart": {
  20156. "type": "object",
  20157. "properties": {
  20158. "id": {
  20159. "type": "string",
  20160. "allOf": [
  20161. {
  20162. "pattern": "^prt"
  20163. }
  20164. ]
  20165. },
  20166. "sessionID": {
  20167. "type": "string",
  20168. "allOf": [
  20169. {
  20170. "pattern": "^ses"
  20171. }
  20172. ]
  20173. },
  20174. "messageID": {
  20175. "type": "string",
  20176. "allOf": [
  20177. {
  20178. "pattern": "^msg"
  20179. }
  20180. ]
  20181. },
  20182. "type": {
  20183. "type": "string",
  20184. "enum": [
  20185. "reasoning"
  20186. ]
  20187. },
  20188. "text": {
  20189. "type": "string"
  20190. },
  20191. "metadata": {
  20192. "anyOf": [
  20193. {
  20194. "type": "object"
  20195. },
  20196. {
  20197. "type": "null"
  20198. }
  20199. ]
  20200. },
  20201. "time": {
  20202. "type": "object",
  20203. "properties": {
  20204. "start": {
  20205. "type": "integer",
  20206. "allOf": [
  20207. {
  20208. "minimum": 0
  20209. }
  20210. ]
  20211. },
  20212. "end": {
  20213. "anyOf": [
  20214. {
  20215. "type": "integer",
  20216. "allOf": [
  20217. {
  20218. "minimum": 0
  20219. }
  20220. ]
  20221. },
  20222. {
  20223. "type": "null"
  20224. }
  20225. ]
  20226. }
  20227. },
  20228. "required": [
  20229. "start"
  20230. ],
  20231. "additionalProperties": false
  20232. }
  20233. },
  20234. "required": [
  20235. "id",
  20236. "sessionID",
  20237. "messageID",
  20238. "type",
  20239. "text",
  20240. "time"
  20241. ],
  20242. "additionalProperties": false
  20243. },
  20244. "FilePartSourceText": {
  20245. "type": "object",
  20246. "properties": {
  20247. "value": {
  20248. "type": "string"
  20249. },
  20250. "start": {
  20251. "type": "number"
  20252. },
  20253. "end": {
  20254. "type": "number"
  20255. }
  20256. },
  20257. "required": [
  20258. "value",
  20259. "start",
  20260. "end"
  20261. ],
  20262. "additionalProperties": false
  20263. },
  20264. "FileSource": {
  20265. "type": "object",
  20266. "properties": {
  20267. "text": {
  20268. "$ref": "#/components/schemas/FilePartSourceText"
  20269. },
  20270. "type": {
  20271. "type": "string",
  20272. "enum": [
  20273. "file"
  20274. ]
  20275. },
  20276. "path": {
  20277. "type": "string"
  20278. }
  20279. },
  20280. "required": [
  20281. "text",
  20282. "type",
  20283. "path"
  20284. ],
  20285. "additionalProperties": false
  20286. },
  20287. "Range": {
  20288. "type": "object",
  20289. "properties": {
  20290. "start": {
  20291. "type": "object",
  20292. "properties": {
  20293. "line": {
  20294. "type": "integer",
  20295. "allOf": [
  20296. {
  20297. "minimum": 0
  20298. }
  20299. ]
  20300. },
  20301. "character": {
  20302. "type": "integer",
  20303. "allOf": [
  20304. {
  20305. "minimum": 0
  20306. }
  20307. ]
  20308. }
  20309. },
  20310. "required": [
  20311. "line",
  20312. "character"
  20313. ],
  20314. "additionalProperties": false
  20315. },
  20316. "end": {
  20317. "type": "object",
  20318. "properties": {
  20319. "line": {
  20320. "type": "integer",
  20321. "allOf": [
  20322. {
  20323. "minimum": 0
  20324. }
  20325. ]
  20326. },
  20327. "character": {
  20328. "type": "integer",
  20329. "allOf": [
  20330. {
  20331. "minimum": 0
  20332. }
  20333. ]
  20334. }
  20335. },
  20336. "required": [
  20337. "line",
  20338. "character"
  20339. ],
  20340. "additionalProperties": false
  20341. }
  20342. },
  20343. "required": [
  20344. "start",
  20345. "end"
  20346. ],
  20347. "additionalProperties": false
  20348. },
  20349. "SymbolSource": {
  20350. "type": "object",
  20351. "properties": {
  20352. "text": {
  20353. "$ref": "#/components/schemas/FilePartSourceText"
  20354. },
  20355. "type": {
  20356. "type": "string",
  20357. "enum": [
  20358. "symbol"
  20359. ]
  20360. },
  20361. "path": {
  20362. "type": "string"
  20363. },
  20364. "range": {
  20365. "$ref": "#/components/schemas/Range"
  20366. },
  20367. "name": {
  20368. "type": "string"
  20369. },
  20370. "kind": {
  20371. "type": "integer",
  20372. "allOf": [
  20373. {
  20374. "minimum": 0
  20375. }
  20376. ]
  20377. }
  20378. },
  20379. "required": [
  20380. "text",
  20381. "type",
  20382. "path",
  20383. "range",
  20384. "name",
  20385. "kind"
  20386. ],
  20387. "additionalProperties": false
  20388. },
  20389. "ResourceSource": {
  20390. "type": "object",
  20391. "properties": {
  20392. "text": {
  20393. "$ref": "#/components/schemas/FilePartSourceText"
  20394. },
  20395. "type": {
  20396. "type": "string",
  20397. "enum": [
  20398. "resource"
  20399. ]
  20400. },
  20401. "clientName": {
  20402. "type": "string"
  20403. },
  20404. "uri": {
  20405. "type": "string"
  20406. }
  20407. },
  20408. "required": [
  20409. "text",
  20410. "type",
  20411. "clientName",
  20412. "uri"
  20413. ],
  20414. "additionalProperties": false
  20415. },
  20416. "FilePartSource": {
  20417. "anyOf": [
  20418. {
  20419. "$ref": "#/components/schemas/FileSource"
  20420. },
  20421. {
  20422. "$ref": "#/components/schemas/SymbolSource"
  20423. },
  20424. {
  20425. "$ref": "#/components/schemas/ResourceSource"
  20426. }
  20427. ]
  20428. },
  20429. "FilePart": {
  20430. "type": "object",
  20431. "properties": {
  20432. "id": {
  20433. "type": "string",
  20434. "allOf": [
  20435. {
  20436. "pattern": "^prt"
  20437. }
  20438. ]
  20439. },
  20440. "sessionID": {
  20441. "type": "string",
  20442. "allOf": [
  20443. {
  20444. "pattern": "^ses"
  20445. }
  20446. ]
  20447. },
  20448. "messageID": {
  20449. "type": "string",
  20450. "allOf": [
  20451. {
  20452. "pattern": "^msg"
  20453. }
  20454. ]
  20455. },
  20456. "type": {
  20457. "type": "string",
  20458. "enum": [
  20459. "file"
  20460. ]
  20461. },
  20462. "mime": {
  20463. "type": "string"
  20464. },
  20465. "filename": {
  20466. "anyOf": [
  20467. {
  20468. "type": "string"
  20469. },
  20470. {
  20471. "type": "null"
  20472. }
  20473. ]
  20474. },
  20475. "url": {
  20476. "type": "string"
  20477. },
  20478. "source": {
  20479. "anyOf": [
  20480. {
  20481. "$ref": "#/components/schemas/FilePartSource"
  20482. },
  20483. {
  20484. "type": "null"
  20485. }
  20486. ]
  20487. }
  20488. },
  20489. "required": [
  20490. "id",
  20491. "sessionID",
  20492. "messageID",
  20493. "type",
  20494. "mime",
  20495. "url"
  20496. ],
  20497. "additionalProperties": false
  20498. },
  20499. "ToolStatePending": {
  20500. "type": "object",
  20501. "properties": {
  20502. "status": {
  20503. "type": "string",
  20504. "enum": [
  20505. "pending"
  20506. ]
  20507. },
  20508. "input": {
  20509. "type": "object"
  20510. },
  20511. "raw": {
  20512. "type": "string"
  20513. }
  20514. },
  20515. "required": [
  20516. "status",
  20517. "input",
  20518. "raw"
  20519. ],
  20520. "additionalProperties": false
  20521. },
  20522. "ToolStateRunning": {
  20523. "type": "object",
  20524. "properties": {
  20525. "status": {
  20526. "type": "string",
  20527. "enum": [
  20528. "running"
  20529. ]
  20530. },
  20531. "input": {
  20532. "type": "object"
  20533. },
  20534. "title": {
  20535. "anyOf": [
  20536. {
  20537. "type": "string"
  20538. },
  20539. {
  20540. "type": "null"
  20541. }
  20542. ]
  20543. },
  20544. "metadata": {
  20545. "anyOf": [
  20546. {
  20547. "type": "object"
  20548. },
  20549. {
  20550. "type": "null"
  20551. }
  20552. ]
  20553. },
  20554. "time": {
  20555. "type": "object",
  20556. "properties": {
  20557. "start": {
  20558. "type": "integer",
  20559. "allOf": [
  20560. {
  20561. "minimum": 0
  20562. }
  20563. ]
  20564. }
  20565. },
  20566. "required": [
  20567. "start"
  20568. ],
  20569. "additionalProperties": false
  20570. }
  20571. },
  20572. "required": [
  20573. "status",
  20574. "input",
  20575. "time"
  20576. ],
  20577. "additionalProperties": false
  20578. },
  20579. "ToolStateCompleted": {
  20580. "type": "object",
  20581. "properties": {
  20582. "status": {
  20583. "type": "string",
  20584. "enum": [
  20585. "completed"
  20586. ]
  20587. },
  20588. "input": {
  20589. "type": "object"
  20590. },
  20591. "output": {
  20592. "type": "string"
  20593. },
  20594. "title": {
  20595. "type": "string"
  20596. },
  20597. "metadata": {
  20598. "type": "object"
  20599. },
  20600. "time": {
  20601. "type": "object",
  20602. "properties": {
  20603. "start": {
  20604. "type": "integer",
  20605. "allOf": [
  20606. {
  20607. "minimum": 0
  20608. }
  20609. ]
  20610. },
  20611. "end": {
  20612. "type": "integer",
  20613. "allOf": [
  20614. {
  20615. "minimum": 0
  20616. }
  20617. ]
  20618. },
  20619. "compacted": {
  20620. "anyOf": [
  20621. {
  20622. "type": "integer",
  20623. "allOf": [
  20624. {
  20625. "minimum": 0
  20626. }
  20627. ]
  20628. },
  20629. {
  20630. "type": "null"
  20631. }
  20632. ]
  20633. }
  20634. },
  20635. "required": [
  20636. "start",
  20637. "end"
  20638. ],
  20639. "additionalProperties": false
  20640. },
  20641. "attachments": {
  20642. "anyOf": [
  20643. {
  20644. "type": "array",
  20645. "items": {
  20646. "$ref": "#/components/schemas/FilePart"
  20647. }
  20648. },
  20649. {
  20650. "type": "null"
  20651. }
  20652. ]
  20653. }
  20654. },
  20655. "required": [
  20656. "status",
  20657. "input",
  20658. "output",
  20659. "title",
  20660. "metadata",
  20661. "time"
  20662. ],
  20663. "additionalProperties": false
  20664. },
  20665. "ToolStateError": {
  20666. "type": "object",
  20667. "properties": {
  20668. "status": {
  20669. "type": "string",
  20670. "enum": [
  20671. "error"
  20672. ]
  20673. },
  20674. "input": {
  20675. "type": "object"
  20676. },
  20677. "error": {
  20678. "type": "string"
  20679. },
  20680. "metadata": {
  20681. "anyOf": [
  20682. {
  20683. "type": "object"
  20684. },
  20685. {
  20686. "type": "null"
  20687. }
  20688. ]
  20689. },
  20690. "time": {
  20691. "type": "object",
  20692. "properties": {
  20693. "start": {
  20694. "type": "integer",
  20695. "allOf": [
  20696. {
  20697. "minimum": 0
  20698. }
  20699. ]
  20700. },
  20701. "end": {
  20702. "type": "integer",
  20703. "allOf": [
  20704. {
  20705. "minimum": 0
  20706. }
  20707. ]
  20708. }
  20709. },
  20710. "required": [
  20711. "start",
  20712. "end"
  20713. ],
  20714. "additionalProperties": false
  20715. }
  20716. },
  20717. "required": [
  20718. "status",
  20719. "input",
  20720. "error",
  20721. "time"
  20722. ],
  20723. "additionalProperties": false
  20724. },
  20725. "ToolState": {
  20726. "anyOf": [
  20727. {
  20728. "$ref": "#/components/schemas/ToolStatePending"
  20729. },
  20730. {
  20731. "$ref": "#/components/schemas/ToolStateRunning"
  20732. },
  20733. {
  20734. "$ref": "#/components/schemas/ToolStateCompleted"
  20735. },
  20736. {
  20737. "$ref": "#/components/schemas/ToolStateError"
  20738. }
  20739. ]
  20740. },
  20741. "ToolPart": {
  20742. "type": "object",
  20743. "properties": {
  20744. "id": {
  20745. "type": "string",
  20746. "allOf": [
  20747. {
  20748. "pattern": "^prt"
  20749. }
  20750. ]
  20751. },
  20752. "sessionID": {
  20753. "type": "string",
  20754. "allOf": [
  20755. {
  20756. "pattern": "^ses"
  20757. }
  20758. ]
  20759. },
  20760. "messageID": {
  20761. "type": "string",
  20762. "allOf": [
  20763. {
  20764. "pattern": "^msg"
  20765. }
  20766. ]
  20767. },
  20768. "type": {
  20769. "type": "string",
  20770. "enum": [
  20771. "tool"
  20772. ]
  20773. },
  20774. "callID": {
  20775. "type": "string"
  20776. },
  20777. "tool": {
  20778. "type": "string"
  20779. },
  20780. "state": {
  20781. "$ref": "#/components/schemas/ToolState"
  20782. },
  20783. "metadata": {
  20784. "anyOf": [
  20785. {
  20786. "type": "object"
  20787. },
  20788. {
  20789. "type": "null"
  20790. }
  20791. ]
  20792. }
  20793. },
  20794. "required": [
  20795. "id",
  20796. "sessionID",
  20797. "messageID",
  20798. "type",
  20799. "callID",
  20800. "tool",
  20801. "state"
  20802. ],
  20803. "additionalProperties": false
  20804. },
  20805. "StepStartPart": {
  20806. "type": "object",
  20807. "properties": {
  20808. "id": {
  20809. "type": "string",
  20810. "allOf": [
  20811. {
  20812. "pattern": "^prt"
  20813. }
  20814. ]
  20815. },
  20816. "sessionID": {
  20817. "type": "string",
  20818. "allOf": [
  20819. {
  20820. "pattern": "^ses"
  20821. }
  20822. ]
  20823. },
  20824. "messageID": {
  20825. "type": "string",
  20826. "allOf": [
  20827. {
  20828. "pattern": "^msg"
  20829. }
  20830. ]
  20831. },
  20832. "type": {
  20833. "type": "string",
  20834. "enum": [
  20835. "step-start"
  20836. ]
  20837. },
  20838. "snapshot": {
  20839. "anyOf": [
  20840. {
  20841. "type": "string"
  20842. },
  20843. {
  20844. "type": "null"
  20845. }
  20846. ]
  20847. }
  20848. },
  20849. "required": [
  20850. "id",
  20851. "sessionID",
  20852. "messageID",
  20853. "type"
  20854. ],
  20855. "additionalProperties": false
  20856. },
  20857. "StepFinishPart": {
  20858. "type": "object",
  20859. "properties": {
  20860. "id": {
  20861. "type": "string",
  20862. "allOf": [
  20863. {
  20864. "pattern": "^prt"
  20865. }
  20866. ]
  20867. },
  20868. "sessionID": {
  20869. "type": "string",
  20870. "allOf": [
  20871. {
  20872. "pattern": "^ses"
  20873. }
  20874. ]
  20875. },
  20876. "messageID": {
  20877. "type": "string",
  20878. "allOf": [
  20879. {
  20880. "pattern": "^msg"
  20881. }
  20882. ]
  20883. },
  20884. "type": {
  20885. "type": "string",
  20886. "enum": [
  20887. "step-finish"
  20888. ]
  20889. },
  20890. "reason": {
  20891. "type": "string"
  20892. },
  20893. "snapshot": {
  20894. "anyOf": [
  20895. {
  20896. "type": "string"
  20897. },
  20898. {
  20899. "type": "null"
  20900. }
  20901. ]
  20902. },
  20903. "cost": {
  20904. "type": "number"
  20905. },
  20906. "tokens": {
  20907. "type": "object",
  20908. "properties": {
  20909. "total": {
  20910. "anyOf": [
  20911. {
  20912. "type": "number"
  20913. },
  20914. {
  20915. "type": "null"
  20916. }
  20917. ]
  20918. },
  20919. "input": {
  20920. "type": "number"
  20921. },
  20922. "output": {
  20923. "type": "number"
  20924. },
  20925. "reasoning": {
  20926. "type": "number"
  20927. },
  20928. "cache": {
  20929. "type": "object",
  20930. "properties": {
  20931. "read": {
  20932. "type": "number"
  20933. },
  20934. "write": {
  20935. "type": "number"
  20936. }
  20937. },
  20938. "required": [
  20939. "read",
  20940. "write"
  20941. ],
  20942. "additionalProperties": false
  20943. }
  20944. },
  20945. "required": [
  20946. "input",
  20947. "output",
  20948. "reasoning",
  20949. "cache"
  20950. ],
  20951. "additionalProperties": false
  20952. }
  20953. },
  20954. "required": [
  20955. "id",
  20956. "sessionID",
  20957. "messageID",
  20958. "type",
  20959. "reason",
  20960. "cost",
  20961. "tokens"
  20962. ],
  20963. "additionalProperties": false
  20964. },
  20965. "SnapshotPart": {
  20966. "type": "object",
  20967. "properties": {
  20968. "id": {
  20969. "type": "string",
  20970. "allOf": [
  20971. {
  20972. "pattern": "^prt"
  20973. }
  20974. ]
  20975. },
  20976. "sessionID": {
  20977. "type": "string",
  20978. "allOf": [
  20979. {
  20980. "pattern": "^ses"
  20981. }
  20982. ]
  20983. },
  20984. "messageID": {
  20985. "type": "string",
  20986. "allOf": [
  20987. {
  20988. "pattern": "^msg"
  20989. }
  20990. ]
  20991. },
  20992. "type": {
  20993. "type": "string",
  20994. "enum": [
  20995. "snapshot"
  20996. ]
  20997. },
  20998. "snapshot": {
  20999. "type": "string"
  21000. }
  21001. },
  21002. "required": [
  21003. "id",
  21004. "sessionID",
  21005. "messageID",
  21006. "type",
  21007. "snapshot"
  21008. ],
  21009. "additionalProperties": false
  21010. },
  21011. "PatchPart": {
  21012. "type": "object",
  21013. "properties": {
  21014. "id": {
  21015. "type": "string",
  21016. "allOf": [
  21017. {
  21018. "pattern": "^prt"
  21019. }
  21020. ]
  21021. },
  21022. "sessionID": {
  21023. "type": "string",
  21024. "allOf": [
  21025. {
  21026. "pattern": "^ses"
  21027. }
  21028. ]
  21029. },
  21030. "messageID": {
  21031. "type": "string",
  21032. "allOf": [
  21033. {
  21034. "pattern": "^msg"
  21035. }
  21036. ]
  21037. },
  21038. "type": {
  21039. "type": "string",
  21040. "enum": [
  21041. "patch"
  21042. ]
  21043. },
  21044. "hash": {
  21045. "type": "string"
  21046. },
  21047. "files": {
  21048. "type": "array",
  21049. "items": {
  21050. "type": "string"
  21051. }
  21052. }
  21053. },
  21054. "required": [
  21055. "id",
  21056. "sessionID",
  21057. "messageID",
  21058. "type",
  21059. "hash",
  21060. "files"
  21061. ],
  21062. "additionalProperties": false
  21063. },
  21064. "AgentPart": {
  21065. "type": "object",
  21066. "properties": {
  21067. "id": {
  21068. "type": "string",
  21069. "allOf": [
  21070. {
  21071. "pattern": "^prt"
  21072. }
  21073. ]
  21074. },
  21075. "sessionID": {
  21076. "type": "string",
  21077. "allOf": [
  21078. {
  21079. "pattern": "^ses"
  21080. }
  21081. ]
  21082. },
  21083. "messageID": {
  21084. "type": "string",
  21085. "allOf": [
  21086. {
  21087. "pattern": "^msg"
  21088. }
  21089. ]
  21090. },
  21091. "type": {
  21092. "type": "string",
  21093. "enum": [
  21094. "agent"
  21095. ]
  21096. },
  21097. "name": {
  21098. "type": "string"
  21099. },
  21100. "source": {
  21101. "anyOf": [
  21102. {
  21103. "type": "object",
  21104. "properties": {
  21105. "value": {
  21106. "type": "string"
  21107. },
  21108. "start": {
  21109. "type": "integer",
  21110. "allOf": [
  21111. {
  21112. "minimum": 0
  21113. }
  21114. ]
  21115. },
  21116. "end": {
  21117. "type": "integer",
  21118. "allOf": [
  21119. {
  21120. "minimum": 0
  21121. }
  21122. ]
  21123. }
  21124. },
  21125. "required": [
  21126. "value",
  21127. "start",
  21128. "end"
  21129. ],
  21130. "additionalProperties": false
  21131. },
  21132. {
  21133. "type": "null"
  21134. }
  21135. ]
  21136. }
  21137. },
  21138. "required": [
  21139. "id",
  21140. "sessionID",
  21141. "messageID",
  21142. "type",
  21143. "name"
  21144. ],
  21145. "additionalProperties": false
  21146. },
  21147. "RetryPart": {
  21148. "type": "object",
  21149. "properties": {
  21150. "id": {
  21151. "type": "string",
  21152. "allOf": [
  21153. {
  21154. "pattern": "^prt"
  21155. }
  21156. ]
  21157. },
  21158. "sessionID": {
  21159. "type": "string",
  21160. "allOf": [
  21161. {
  21162. "pattern": "^ses"
  21163. }
  21164. ]
  21165. },
  21166. "messageID": {
  21167. "type": "string",
  21168. "allOf": [
  21169. {
  21170. "pattern": "^msg"
  21171. }
  21172. ]
  21173. },
  21174. "type": {
  21175. "type": "string",
  21176. "enum": [
  21177. "retry"
  21178. ]
  21179. },
  21180. "attempt": {
  21181. "type": "integer",
  21182. "allOf": [
  21183. {
  21184. "minimum": 0
  21185. }
  21186. ]
  21187. },
  21188. "error": {
  21189. "$ref": "#/components/schemas/APIError"
  21190. },
  21191. "time": {
  21192. "type": "object",
  21193. "properties": {
  21194. "created": {
  21195. "type": "integer",
  21196. "allOf": [
  21197. {
  21198. "minimum": 0
  21199. }
  21200. ]
  21201. }
  21202. },
  21203. "required": [
  21204. "created"
  21205. ],
  21206. "additionalProperties": false
  21207. }
  21208. },
  21209. "required": [
  21210. "id",
  21211. "sessionID",
  21212. "messageID",
  21213. "type",
  21214. "attempt",
  21215. "error",
  21216. "time"
  21217. ],
  21218. "additionalProperties": false
  21219. },
  21220. "CompactionPart": {
  21221. "type": "object",
  21222. "properties": {
  21223. "id": {
  21224. "type": "string",
  21225. "allOf": [
  21226. {
  21227. "pattern": "^prt"
  21228. }
  21229. ]
  21230. },
  21231. "sessionID": {
  21232. "type": "string",
  21233. "allOf": [
  21234. {
  21235. "pattern": "^ses"
  21236. }
  21237. ]
  21238. },
  21239. "messageID": {
  21240. "type": "string",
  21241. "allOf": [
  21242. {
  21243. "pattern": "^msg"
  21244. }
  21245. ]
  21246. },
  21247. "type": {
  21248. "type": "string",
  21249. "enum": [
  21250. "compaction"
  21251. ]
  21252. },
  21253. "auto": {
  21254. "type": "boolean"
  21255. },
  21256. "overflow": {
  21257. "anyOf": [
  21258. {
  21259. "type": "boolean"
  21260. },
  21261. {
  21262. "type": "null"
  21263. }
  21264. ]
  21265. },
  21266. "tail_start_id": {
  21267. "anyOf": [
  21268. {
  21269. "type": "string",
  21270. "allOf": [
  21271. {
  21272. "pattern": "^msg"
  21273. }
  21274. ]
  21275. },
  21276. {
  21277. "type": "null"
  21278. }
  21279. ]
  21280. }
  21281. },
  21282. "required": [
  21283. "id",
  21284. "sessionID",
  21285. "messageID",
  21286. "type",
  21287. "auto"
  21288. ],
  21289. "additionalProperties": false
  21290. },
  21291. "Part": {
  21292. "anyOf": [
  21293. {
  21294. "$ref": "#/components/schemas/TextPart"
  21295. },
  21296. {
  21297. "$ref": "#/components/schemas/SubtaskPart"
  21298. },
  21299. {
  21300. "$ref": "#/components/schemas/ReasoningPart"
  21301. },
  21302. {
  21303. "$ref": "#/components/schemas/FilePart"
  21304. },
  21305. {
  21306. "$ref": "#/components/schemas/ToolPart"
  21307. },
  21308. {
  21309. "$ref": "#/components/schemas/StepStartPart"
  21310. },
  21311. {
  21312. "$ref": "#/components/schemas/StepFinishPart"
  21313. },
  21314. {
  21315. "$ref": "#/components/schemas/SnapshotPart"
  21316. },
  21317. {
  21318. "$ref": "#/components/schemas/PatchPart"
  21319. },
  21320. {
  21321. "$ref": "#/components/schemas/AgentPart"
  21322. },
  21323. {
  21324. "$ref": "#/components/schemas/RetryPart"
  21325. },
  21326. {
  21327. "$ref": "#/components/schemas/CompactionPart"
  21328. }
  21329. ]
  21330. },
  21331. "message.part.updated": {
  21332. "type": "object",
  21333. "properties": {
  21334. "id": {
  21335. "type": "string",
  21336. "allOf": [
  21337. {
  21338. "pattern": "^evt_"
  21339. }
  21340. ]
  21341. },
  21342. "created": {
  21343. "type": "number"
  21344. },
  21345. "metadata": {
  21346. "type": "object"
  21347. },
  21348. "type": {
  21349. "type": "string",
  21350. "enum": [
  21351. "message.part.updated"
  21352. ]
  21353. },
  21354. "durable": {
  21355. "type": "object",
  21356. "properties": {
  21357. "aggregateID": {
  21358. "type": "string"
  21359. },
  21360. "seq": {
  21361. "type": "integer",
  21362. "allOf": [
  21363. {
  21364. "minimum": 0
  21365. }
  21366. ]
  21367. },
  21368. "version": {
  21369. "type": "integer",
  21370. "allOf": [
  21371. {
  21372. "minimum": 1
  21373. }
  21374. ]
  21375. }
  21376. },
  21377. "required": [
  21378. "aggregateID",
  21379. "seq",
  21380. "version"
  21381. ],
  21382. "additionalProperties": false
  21383. },
  21384. "location": {
  21385. "$ref": "#/components/schemas/Location.Ref"
  21386. },
  21387. "data": {
  21388. "type": "object",
  21389. "properties": {
  21390. "sessionID": {
  21391. "type": "string",
  21392. "allOf": [
  21393. {
  21394. "pattern": "^ses"
  21395. }
  21396. ]
  21397. },
  21398. "part": {
  21399. "$ref": "#/components/schemas/Part"
  21400. },
  21401. "time": {
  21402. "type": "number"
  21403. }
  21404. },
  21405. "required": [
  21406. "sessionID",
  21407. "part",
  21408. "time"
  21409. ],
  21410. "additionalProperties": false
  21411. }
  21412. },
  21413. "required": [
  21414. "id",
  21415. "created",
  21416. "type",
  21417. "durable",
  21418. "data"
  21419. ],
  21420. "additionalProperties": false
  21421. },
  21422. "message.part.removed": {
  21423. "type": "object",
  21424. "properties": {
  21425. "id": {
  21426. "type": "string",
  21427. "allOf": [
  21428. {
  21429. "pattern": "^evt_"
  21430. }
  21431. ]
  21432. },
  21433. "created": {
  21434. "type": "number"
  21435. },
  21436. "metadata": {
  21437. "type": "object"
  21438. },
  21439. "type": {
  21440. "type": "string",
  21441. "enum": [
  21442. "message.part.removed"
  21443. ]
  21444. },
  21445. "durable": {
  21446. "type": "object",
  21447. "properties": {
  21448. "aggregateID": {
  21449. "type": "string"
  21450. },
  21451. "seq": {
  21452. "type": "integer",
  21453. "allOf": [
  21454. {
  21455. "minimum": 0
  21456. }
  21457. ]
  21458. },
  21459. "version": {
  21460. "type": "integer",
  21461. "allOf": [
  21462. {
  21463. "minimum": 1
  21464. }
  21465. ]
  21466. }
  21467. },
  21468. "required": [
  21469. "aggregateID",
  21470. "seq",
  21471. "version"
  21472. ],
  21473. "additionalProperties": false
  21474. },
  21475. "location": {
  21476. "$ref": "#/components/schemas/Location.Ref"
  21477. },
  21478. "data": {
  21479. "type": "object",
  21480. "properties": {
  21481. "sessionID": {
  21482. "type": "string",
  21483. "allOf": [
  21484. {
  21485. "pattern": "^ses"
  21486. }
  21487. ]
  21488. },
  21489. "messageID": {
  21490. "type": "string",
  21491. "allOf": [
  21492. {
  21493. "pattern": "^msg"
  21494. }
  21495. ]
  21496. },
  21497. "partID": {
  21498. "type": "string",
  21499. "allOf": [
  21500. {
  21501. "pattern": "^prt"
  21502. }
  21503. ]
  21504. }
  21505. },
  21506. "required": [
  21507. "sessionID",
  21508. "messageID",
  21509. "partID"
  21510. ],
  21511. "additionalProperties": false
  21512. }
  21513. },
  21514. "required": [
  21515. "id",
  21516. "created",
  21517. "type",
  21518. "durable",
  21519. "data"
  21520. ],
  21521. "additionalProperties": false
  21522. },
  21523. "session.execution.settled": {
  21524. "type": "object",
  21525. "properties": {
  21526. "id": {
  21527. "type": "string",
  21528. "allOf": [
  21529. {
  21530. "pattern": "^evt_"
  21531. }
  21532. ]
  21533. },
  21534. "created": {
  21535. "type": "number"
  21536. },
  21537. "metadata": {
  21538. "type": "object"
  21539. },
  21540. "type": {
  21541. "type": "string",
  21542. "enum": [
  21543. "session.execution.settled"
  21544. ]
  21545. },
  21546. "location": {
  21547. "$ref": "#/components/schemas/Location.Ref"
  21548. },
  21549. "data": {
  21550. "type": "object",
  21551. "properties": {
  21552. "sessionID": {
  21553. "type": "string",
  21554. "allOf": [
  21555. {
  21556. "pattern": "^ses"
  21557. }
  21558. ]
  21559. },
  21560. "outcome": {
  21561. "type": "string",
  21562. "enum": [
  21563. "success",
  21564. "failure",
  21565. "interrupted"
  21566. ]
  21567. },
  21568. "error": {
  21569. "$ref": "#/components/schemas/Session.Error.Unknown"
  21570. }
  21571. },
  21572. "required": [
  21573. "sessionID",
  21574. "outcome"
  21575. ],
  21576. "additionalProperties": false
  21577. }
  21578. },
  21579. "required": [
  21580. "id",
  21581. "created",
  21582. "type",
  21583. "data"
  21584. ],
  21585. "additionalProperties": false
  21586. },
  21587. "session.text.delta": {
  21588. "type": "object",
  21589. "properties": {
  21590. "id": {
  21591. "type": "string",
  21592. "allOf": [
  21593. {
  21594. "pattern": "^evt_"
  21595. }
  21596. ]
  21597. },
  21598. "created": {
  21599. "type": "number"
  21600. },
  21601. "metadata": {
  21602. "type": "object"
  21603. },
  21604. "type": {
  21605. "type": "string",
  21606. "enum": [
  21607. "session.text.delta"
  21608. ]
  21609. },
  21610. "location": {
  21611. "$ref": "#/components/schemas/Location.Ref"
  21612. },
  21613. "data": {
  21614. "type": "object",
  21615. "properties": {
  21616. "sessionID": {
  21617. "type": "string",
  21618. "allOf": [
  21619. {
  21620. "pattern": "^ses"
  21621. }
  21622. ]
  21623. },
  21624. "assistantMessageID": {
  21625. "type": "string",
  21626. "allOf": [
  21627. {
  21628. "pattern": "^msg_"
  21629. }
  21630. ]
  21631. },
  21632. "textID": {
  21633. "type": "string"
  21634. },
  21635. "delta": {
  21636. "type": "string"
  21637. }
  21638. },
  21639. "required": [
  21640. "sessionID",
  21641. "assistantMessageID",
  21642. "textID",
  21643. "delta"
  21644. ],
  21645. "additionalProperties": false
  21646. }
  21647. },
  21648. "required": [
  21649. "id",
  21650. "created",
  21651. "type",
  21652. "data"
  21653. ],
  21654. "additionalProperties": false
  21655. },
  21656. "session.reasoning.delta": {
  21657. "type": "object",
  21658. "properties": {
  21659. "id": {
  21660. "type": "string",
  21661. "allOf": [
  21662. {
  21663. "pattern": "^evt_"
  21664. }
  21665. ]
  21666. },
  21667. "created": {
  21668. "type": "number"
  21669. },
  21670. "metadata": {
  21671. "type": "object"
  21672. },
  21673. "type": {
  21674. "type": "string",
  21675. "enum": [
  21676. "session.reasoning.delta"
  21677. ]
  21678. },
  21679. "location": {
  21680. "$ref": "#/components/schemas/Location.Ref"
  21681. },
  21682. "data": {
  21683. "type": "object",
  21684. "properties": {
  21685. "sessionID": {
  21686. "type": "string",
  21687. "allOf": [
  21688. {
  21689. "pattern": "^ses"
  21690. }
  21691. ]
  21692. },
  21693. "assistantMessageID": {
  21694. "type": "string",
  21695. "allOf": [
  21696. {
  21697. "pattern": "^msg_"
  21698. }
  21699. ]
  21700. },
  21701. "reasoningID": {
  21702. "type": "string"
  21703. },
  21704. "delta": {
  21705. "type": "string"
  21706. }
  21707. },
  21708. "required": [
  21709. "sessionID",
  21710. "assistantMessageID",
  21711. "reasoningID",
  21712. "delta"
  21713. ],
  21714. "additionalProperties": false
  21715. }
  21716. },
  21717. "required": [
  21718. "id",
  21719. "created",
  21720. "type",
  21721. "data"
  21722. ],
  21723. "additionalProperties": false
  21724. },
  21725. "session.tool.input.delta": {
  21726. "type": "object",
  21727. "properties": {
  21728. "id": {
  21729. "type": "string",
  21730. "allOf": [
  21731. {
  21732. "pattern": "^evt_"
  21733. }
  21734. ]
  21735. },
  21736. "created": {
  21737. "type": "number"
  21738. },
  21739. "metadata": {
  21740. "type": "object"
  21741. },
  21742. "type": {
  21743. "type": "string",
  21744. "enum": [
  21745. "session.tool.input.delta"
  21746. ]
  21747. },
  21748. "location": {
  21749. "$ref": "#/components/schemas/Location.Ref"
  21750. },
  21751. "data": {
  21752. "type": "object",
  21753. "properties": {
  21754. "sessionID": {
  21755. "type": "string",
  21756. "allOf": [
  21757. {
  21758. "pattern": "^ses"
  21759. }
  21760. ]
  21761. },
  21762. "assistantMessageID": {
  21763. "type": "string",
  21764. "allOf": [
  21765. {
  21766. "pattern": "^msg_"
  21767. }
  21768. ]
  21769. },
  21770. "callID": {
  21771. "type": "string"
  21772. },
  21773. "delta": {
  21774. "type": "string"
  21775. }
  21776. },
  21777. "required": [
  21778. "sessionID",
  21779. "assistantMessageID",
  21780. "callID",
  21781. "delta"
  21782. ],
  21783. "additionalProperties": false
  21784. }
  21785. },
  21786. "required": [
  21787. "id",
  21788. "created",
  21789. "type",
  21790. "data"
  21791. ],
  21792. "additionalProperties": false
  21793. },
  21794. "session.compaction.delta": {
  21795. "type": "object",
  21796. "properties": {
  21797. "id": {
  21798. "type": "string",
  21799. "allOf": [
  21800. {
  21801. "pattern": "^evt_"
  21802. }
  21803. ]
  21804. },
  21805. "created": {
  21806. "type": "number"
  21807. },
  21808. "metadata": {
  21809. "type": "object"
  21810. },
  21811. "type": {
  21812. "type": "string",
  21813. "enum": [
  21814. "session.compaction.delta"
  21815. ]
  21816. },
  21817. "location": {
  21818. "$ref": "#/components/schemas/Location.Ref"
  21819. },
  21820. "data": {
  21821. "type": "object",
  21822. "properties": {
  21823. "sessionID": {
  21824. "type": "string",
  21825. "allOf": [
  21826. {
  21827. "pattern": "^ses"
  21828. }
  21829. ]
  21830. },
  21831. "text": {
  21832. "type": "string"
  21833. }
  21834. },
  21835. "required": [
  21836. "sessionID",
  21837. "text"
  21838. ],
  21839. "additionalProperties": false
  21840. }
  21841. },
  21842. "required": [
  21843. "id",
  21844. "created",
  21845. "type",
  21846. "data"
  21847. ],
  21848. "additionalProperties": false
  21849. },
  21850. "filesystem.changed": {
  21851. "type": "object",
  21852. "properties": {
  21853. "id": {
  21854. "type": "string",
  21855. "allOf": [
  21856. {
  21857. "pattern": "^evt_"
  21858. }
  21859. ]
  21860. },
  21861. "created": {
  21862. "type": "number"
  21863. },
  21864. "metadata": {
  21865. "type": "object"
  21866. },
  21867. "type": {
  21868. "type": "string",
  21869. "enum": [
  21870. "filesystem.changed"
  21871. ]
  21872. },
  21873. "location": {
  21874. "$ref": "#/components/schemas/Location.Ref"
  21875. },
  21876. "data": {
  21877. "type": "object",
  21878. "properties": {
  21879. "file": {
  21880. "type": "string"
  21881. },
  21882. "event": {
  21883. "type": "string",
  21884. "enum": [
  21885. "add",
  21886. "change",
  21887. "unlink"
  21888. ]
  21889. }
  21890. },
  21891. "required": [
  21892. "file",
  21893. "event"
  21894. ],
  21895. "additionalProperties": false
  21896. }
  21897. },
  21898. "required": [
  21899. "id",
  21900. "created",
  21901. "type",
  21902. "data"
  21903. ],
  21904. "additionalProperties": false
  21905. },
  21906. "reference.updated": {
  21907. "type": "object",
  21908. "properties": {
  21909. "id": {
  21910. "type": "string",
  21911. "allOf": [
  21912. {
  21913. "pattern": "^evt_"
  21914. }
  21915. ]
  21916. },
  21917. "created": {
  21918. "type": "number"
  21919. },
  21920. "metadata": {
  21921. "type": "object"
  21922. },
  21923. "type": {
  21924. "type": "string",
  21925. "enum": [
  21926. "reference.updated"
  21927. ]
  21928. },
  21929. "location": {
  21930. "$ref": "#/components/schemas/Location.Ref"
  21931. },
  21932. "data": {
  21933. "anyOf": [
  21934. {
  21935. "type": "object"
  21936. },
  21937. {
  21938. "type": "array"
  21939. }
  21940. ]
  21941. }
  21942. },
  21943. "required": [
  21944. "id",
  21945. "created",
  21946. "type",
  21947. "data"
  21948. ],
  21949. "additionalProperties": false
  21950. },
  21951. "permission.v2.asked": {
  21952. "type": "object",
  21953. "properties": {
  21954. "id": {
  21955. "type": "string",
  21956. "allOf": [
  21957. {
  21958. "pattern": "^evt_"
  21959. }
  21960. ]
  21961. },
  21962. "created": {
  21963. "type": "number"
  21964. },
  21965. "metadata": {
  21966. "type": "object"
  21967. },
  21968. "type": {
  21969. "type": "string",
  21970. "enum": [
  21971. "permission.v2.asked"
  21972. ]
  21973. },
  21974. "location": {
  21975. "$ref": "#/components/schemas/Location.Ref"
  21976. },
  21977. "data": {
  21978. "type": "object",
  21979. "properties": {
  21980. "id": {
  21981. "type": "string",
  21982. "allOf": [
  21983. {
  21984. "pattern": "^per"
  21985. }
  21986. ]
  21987. },
  21988. "sessionID": {
  21989. "type": "string",
  21990. "allOf": [
  21991. {
  21992. "pattern": "^ses"
  21993. }
  21994. ]
  21995. },
  21996. "action": {
  21997. "type": "string"
  21998. },
  21999. "resources": {
  22000. "type": "array",
  22001. "items": {
  22002. "type": "string"
  22003. }
  22004. },
  22005. "save": {
  22006. "type": "array",
  22007. "items": {
  22008. "type": "string"
  22009. }
  22010. },
  22011. "metadata": {
  22012. "type": "object"
  22013. },
  22014. "source": {
  22015. "$ref": "#/components/schemas/PermissionV2.Source"
  22016. }
  22017. },
  22018. "required": [
  22019. "id",
  22020. "sessionID",
  22021. "action",
  22022. "resources"
  22023. ],
  22024. "additionalProperties": false
  22025. }
  22026. },
  22027. "required": [
  22028. "id",
  22029. "created",
  22030. "type",
  22031. "data"
  22032. ],
  22033. "additionalProperties": false
  22034. },
  22035. "permission.v2.replied": {
  22036. "type": "object",
  22037. "properties": {
  22038. "id": {
  22039. "type": "string",
  22040. "allOf": [
  22041. {
  22042. "pattern": "^evt_"
  22043. }
  22044. ]
  22045. },
  22046. "created": {
  22047. "type": "number"
  22048. },
  22049. "metadata": {
  22050. "type": "object"
  22051. },
  22052. "type": {
  22053. "type": "string",
  22054. "enum": [
  22055. "permission.v2.replied"
  22056. ]
  22057. },
  22058. "location": {
  22059. "$ref": "#/components/schemas/Location.Ref"
  22060. },
  22061. "data": {
  22062. "type": "object",
  22063. "properties": {
  22064. "sessionID": {
  22065. "type": "string",
  22066. "allOf": [
  22067. {
  22068. "pattern": "^ses"
  22069. }
  22070. ]
  22071. },
  22072. "requestID": {
  22073. "type": "string",
  22074. "allOf": [
  22075. {
  22076. "pattern": "^per"
  22077. }
  22078. ]
  22079. },
  22080. "reply": {
  22081. "$ref": "#/components/schemas/PermissionV2.Reply"
  22082. }
  22083. },
  22084. "required": [
  22085. "sessionID",
  22086. "requestID",
  22087. "reply"
  22088. ],
  22089. "additionalProperties": false
  22090. }
  22091. },
  22092. "required": [
  22093. "id",
  22094. "created",
  22095. "type",
  22096. "data"
  22097. ],
  22098. "additionalProperties": false
  22099. },
  22100. "plugin.added": {
  22101. "type": "object",
  22102. "properties": {
  22103. "id": {
  22104. "type": "string",
  22105. "allOf": [
  22106. {
  22107. "pattern": "^evt_"
  22108. }
  22109. ]
  22110. },
  22111. "created": {
  22112. "type": "number"
  22113. },
  22114. "metadata": {
  22115. "type": "object"
  22116. },
  22117. "type": {
  22118. "type": "string",
  22119. "enum": [
  22120. "plugin.added"
  22121. ]
  22122. },
  22123. "location": {
  22124. "$ref": "#/components/schemas/Location.Ref"
  22125. },
  22126. "data": {
  22127. "type": "object",
  22128. "properties": {
  22129. "id": {
  22130. "type": "string"
  22131. }
  22132. },
  22133. "required": [
  22134. "id"
  22135. ],
  22136. "additionalProperties": false
  22137. }
  22138. },
  22139. "required": [
  22140. "id",
  22141. "created",
  22142. "type",
  22143. "data"
  22144. ],
  22145. "additionalProperties": false
  22146. },
  22147. "plugin.updated": {
  22148. "type": "object",
  22149. "properties": {
  22150. "id": {
  22151. "type": "string",
  22152. "allOf": [
  22153. {
  22154. "pattern": "^evt_"
  22155. }
  22156. ]
  22157. },
  22158. "created": {
  22159. "type": "number"
  22160. },
  22161. "metadata": {
  22162. "type": "object"
  22163. },
  22164. "type": {
  22165. "type": "string",
  22166. "enum": [
  22167. "plugin.updated"
  22168. ]
  22169. },
  22170. "location": {
  22171. "$ref": "#/components/schemas/Location.Ref"
  22172. },
  22173. "data": {
  22174. "anyOf": [
  22175. {
  22176. "type": "object"
  22177. },
  22178. {
  22179. "type": "array"
  22180. }
  22181. ]
  22182. }
  22183. },
  22184. "required": [
  22185. "id",
  22186. "created",
  22187. "type",
  22188. "data"
  22189. ],
  22190. "additionalProperties": false
  22191. },
  22192. "project.directories.updated": {
  22193. "type": "object",
  22194. "properties": {
  22195. "id": {
  22196. "type": "string",
  22197. "allOf": [
  22198. {
  22199. "pattern": "^evt_"
  22200. }
  22201. ]
  22202. },
  22203. "created": {
  22204. "type": "number"
  22205. },
  22206. "metadata": {
  22207. "type": "object"
  22208. },
  22209. "type": {
  22210. "type": "string",
  22211. "enum": [
  22212. "project.directories.updated"
  22213. ]
  22214. },
  22215. "location": {
  22216. "$ref": "#/components/schemas/Location.Ref"
  22217. },
  22218. "data": {
  22219. "type": "object",
  22220. "properties": {
  22221. "projectID": {
  22222. "type": "string"
  22223. }
  22224. },
  22225. "required": [
  22226. "projectID"
  22227. ],
  22228. "additionalProperties": false
  22229. }
  22230. },
  22231. "required": [
  22232. "id",
  22233. "created",
  22234. "type",
  22235. "data"
  22236. ],
  22237. "additionalProperties": false
  22238. },
  22239. "command.updated": {
  22240. "type": "object",
  22241. "properties": {
  22242. "id": {
  22243. "type": "string",
  22244. "allOf": [
  22245. {
  22246. "pattern": "^evt_"
  22247. }
  22248. ]
  22249. },
  22250. "created": {
  22251. "type": "number"
  22252. },
  22253. "metadata": {
  22254. "type": "object"
  22255. },
  22256. "type": {
  22257. "type": "string",
  22258. "enum": [
  22259. "command.updated"
  22260. ]
  22261. },
  22262. "location": {
  22263. "$ref": "#/components/schemas/Location.Ref"
  22264. },
  22265. "data": {
  22266. "anyOf": [
  22267. {
  22268. "type": "object"
  22269. },
  22270. {
  22271. "type": "array"
  22272. }
  22273. ]
  22274. }
  22275. },
  22276. "required": [
  22277. "id",
  22278. "created",
  22279. "type",
  22280. "data"
  22281. ],
  22282. "additionalProperties": false
  22283. },
  22284. "config.updated": {
  22285. "type": "object",
  22286. "properties": {
  22287. "id": {
  22288. "type": "string",
  22289. "allOf": [
  22290. {
  22291. "pattern": "^evt_"
  22292. }
  22293. ]
  22294. },
  22295. "created": {
  22296. "type": "number"
  22297. },
  22298. "metadata": {
  22299. "type": "object"
  22300. },
  22301. "type": {
  22302. "type": "string",
  22303. "enum": [
  22304. "config.updated"
  22305. ]
  22306. },
  22307. "location": {
  22308. "$ref": "#/components/schemas/Location.Ref"
  22309. },
  22310. "data": {
  22311. "anyOf": [
  22312. {
  22313. "type": "object"
  22314. },
  22315. {
  22316. "type": "array"
  22317. }
  22318. ]
  22319. }
  22320. },
  22321. "required": [
  22322. "id",
  22323. "created",
  22324. "type",
  22325. "data"
  22326. ],
  22327. "additionalProperties": false
  22328. },
  22329. "skill.updated": {
  22330. "type": "object",
  22331. "properties": {
  22332. "id": {
  22333. "type": "string",
  22334. "allOf": [
  22335. {
  22336. "pattern": "^evt_"
  22337. }
  22338. ]
  22339. },
  22340. "created": {
  22341. "type": "number"
  22342. },
  22343. "metadata": {
  22344. "type": "object"
  22345. },
  22346. "type": {
  22347. "type": "string",
  22348. "enum": [
  22349. "skill.updated"
  22350. ]
  22351. },
  22352. "location": {
  22353. "$ref": "#/components/schemas/Location.Ref"
  22354. },
  22355. "data": {
  22356. "anyOf": [
  22357. {
  22358. "type": "object"
  22359. },
  22360. {
  22361. "type": "array"
  22362. }
  22363. ]
  22364. }
  22365. },
  22366. "required": [
  22367. "id",
  22368. "created",
  22369. "type",
  22370. "data"
  22371. ],
  22372. "additionalProperties": false
  22373. },
  22374. "Pty": {
  22375. "type": "object",
  22376. "properties": {
  22377. "id": {
  22378. "type": "string",
  22379. "allOf": [
  22380. {
  22381. "pattern": "^pty"
  22382. }
  22383. ]
  22384. },
  22385. "title": {
  22386. "type": "string"
  22387. },
  22388. "command": {
  22389. "type": "string"
  22390. },
  22391. "args": {
  22392. "type": "array",
  22393. "items": {
  22394. "type": "string"
  22395. }
  22396. },
  22397. "cwd": {
  22398. "type": "string"
  22399. },
  22400. "status": {
  22401. "type": "string",
  22402. "enum": [
  22403. "running",
  22404. "exited"
  22405. ]
  22406. },
  22407. "pid": {
  22408. "type": "integer",
  22409. "allOf": [
  22410. {
  22411. "minimum": 0
  22412. }
  22413. ]
  22414. },
  22415. "exitCode": {
  22416. "type": "integer",
  22417. "allOf": [
  22418. {
  22419. "minimum": 0
  22420. }
  22421. ]
  22422. }
  22423. },
  22424. "required": [
  22425. "id",
  22426. "title",
  22427. "command",
  22428. "args",
  22429. "cwd",
  22430. "status",
  22431. "pid"
  22432. ],
  22433. "additionalProperties": false
  22434. },
  22435. "pty.created": {
  22436. "type": "object",
  22437. "properties": {
  22438. "id": {
  22439. "type": "string",
  22440. "allOf": [
  22441. {
  22442. "pattern": "^evt_"
  22443. }
  22444. ]
  22445. },
  22446. "created": {
  22447. "type": "number"
  22448. },
  22449. "metadata": {
  22450. "type": "object"
  22451. },
  22452. "type": {
  22453. "type": "string",
  22454. "enum": [
  22455. "pty.created"
  22456. ]
  22457. },
  22458. "location": {
  22459. "$ref": "#/components/schemas/Location.Ref"
  22460. },
  22461. "data": {
  22462. "type": "object",
  22463. "properties": {
  22464. "info": {
  22465. "$ref": "#/components/schemas/Pty"
  22466. }
  22467. },
  22468. "required": [
  22469. "info"
  22470. ],
  22471. "additionalProperties": false
  22472. }
  22473. },
  22474. "required": [
  22475. "id",
  22476. "created",
  22477. "type",
  22478. "data"
  22479. ],
  22480. "additionalProperties": false
  22481. },
  22482. "pty.updated": {
  22483. "type": "object",
  22484. "properties": {
  22485. "id": {
  22486. "type": "string",
  22487. "allOf": [
  22488. {
  22489. "pattern": "^evt_"
  22490. }
  22491. ]
  22492. },
  22493. "created": {
  22494. "type": "number"
  22495. },
  22496. "metadata": {
  22497. "type": "object"
  22498. },
  22499. "type": {
  22500. "type": "string",
  22501. "enum": [
  22502. "pty.updated"
  22503. ]
  22504. },
  22505. "location": {
  22506. "$ref": "#/components/schemas/Location.Ref"
  22507. },
  22508. "data": {
  22509. "type": "object",
  22510. "properties": {
  22511. "info": {
  22512. "$ref": "#/components/schemas/Pty"
  22513. }
  22514. },
  22515. "required": [
  22516. "info"
  22517. ],
  22518. "additionalProperties": false
  22519. }
  22520. },
  22521. "required": [
  22522. "id",
  22523. "created",
  22524. "type",
  22525. "data"
  22526. ],
  22527. "additionalProperties": false
  22528. },
  22529. "pty.exited": {
  22530. "type": "object",
  22531. "properties": {
  22532. "id": {
  22533. "type": "string",
  22534. "allOf": [
  22535. {
  22536. "pattern": "^evt_"
  22537. }
  22538. ]
  22539. },
  22540. "created": {
  22541. "type": "number"
  22542. },
  22543. "metadata": {
  22544. "type": "object"
  22545. },
  22546. "type": {
  22547. "type": "string",
  22548. "enum": [
  22549. "pty.exited"
  22550. ]
  22551. },
  22552. "location": {
  22553. "$ref": "#/components/schemas/Location.Ref"
  22554. },
  22555. "data": {
  22556. "type": "object",
  22557. "properties": {
  22558. "id": {
  22559. "type": "string",
  22560. "allOf": [
  22561. {
  22562. "pattern": "^pty"
  22563. }
  22564. ]
  22565. },
  22566. "exitCode": {
  22567. "type": "integer",
  22568. "allOf": [
  22569. {
  22570. "minimum": 0
  22571. }
  22572. ]
  22573. }
  22574. },
  22575. "required": [
  22576. "id",
  22577. "exitCode"
  22578. ],
  22579. "additionalProperties": false
  22580. }
  22581. },
  22582. "required": [
  22583. "id",
  22584. "created",
  22585. "type",
  22586. "data"
  22587. ],
  22588. "additionalProperties": false
  22589. },
  22590. "pty.deleted": {
  22591. "type": "object",
  22592. "properties": {
  22593. "id": {
  22594. "type": "string",
  22595. "allOf": [
  22596. {
  22597. "pattern": "^evt_"
  22598. }
  22599. ]
  22600. },
  22601. "created": {
  22602. "type": "number"
  22603. },
  22604. "metadata": {
  22605. "type": "object"
  22606. },
  22607. "type": {
  22608. "type": "string",
  22609. "enum": [
  22610. "pty.deleted"
  22611. ]
  22612. },
  22613. "location": {
  22614. "$ref": "#/components/schemas/Location.Ref"
  22615. },
  22616. "data": {
  22617. "type": "object",
  22618. "properties": {
  22619. "id": {
  22620. "type": "string",
  22621. "allOf": [
  22622. {
  22623. "pattern": "^pty"
  22624. }
  22625. ]
  22626. }
  22627. },
  22628. "required": [
  22629. "id"
  22630. ],
  22631. "additionalProperties": false
  22632. }
  22633. },
  22634. "required": [
  22635. "id",
  22636. "created",
  22637. "type",
  22638. "data"
  22639. ],
  22640. "additionalProperties": false
  22641. },
  22642. "shell.created": {
  22643. "type": "object",
  22644. "properties": {
  22645. "id": {
  22646. "type": "string",
  22647. "allOf": [
  22648. {
  22649. "pattern": "^evt_"
  22650. }
  22651. ]
  22652. },
  22653. "created": {
  22654. "type": "number"
  22655. },
  22656. "metadata": {
  22657. "type": "object"
  22658. },
  22659. "type": {
  22660. "type": "string",
  22661. "enum": [
  22662. "shell.created"
  22663. ]
  22664. },
  22665. "location": {
  22666. "$ref": "#/components/schemas/Location.Ref"
  22667. },
  22668. "data": {
  22669. "type": "object",
  22670. "properties": {
  22671. "info": {
  22672. "$ref": "#/components/schemas/Shell1"
  22673. }
  22674. },
  22675. "required": [
  22676. "info"
  22677. ],
  22678. "additionalProperties": false
  22679. }
  22680. },
  22681. "required": [
  22682. "id",
  22683. "created",
  22684. "type",
  22685. "data"
  22686. ],
  22687. "additionalProperties": false
  22688. },
  22689. "shell.exited": {
  22690. "type": "object",
  22691. "properties": {
  22692. "id": {
  22693. "type": "string",
  22694. "allOf": [
  22695. {
  22696. "pattern": "^evt_"
  22697. }
  22698. ]
  22699. },
  22700. "created": {
  22701. "type": "number"
  22702. },
  22703. "metadata": {
  22704. "type": "object"
  22705. },
  22706. "type": {
  22707. "type": "string",
  22708. "enum": [
  22709. "shell.exited"
  22710. ]
  22711. },
  22712. "location": {
  22713. "$ref": "#/components/schemas/Location.Ref"
  22714. },
  22715. "data": {
  22716. "type": "object",
  22717. "properties": {
  22718. "id": {
  22719. "type": "string",
  22720. "allOf": [
  22721. {
  22722. "pattern": "^sh_"
  22723. }
  22724. ]
  22725. },
  22726. "exit": {
  22727. "anyOf": [
  22728. {
  22729. "type": "number"
  22730. },
  22731. {
  22732. "type": "string",
  22733. "enum": [
  22734. "NaN"
  22735. ]
  22736. },
  22737. {
  22738. "type": "string",
  22739. "enum": [
  22740. "Infinity"
  22741. ]
  22742. },
  22743. {
  22744. "type": "string",
  22745. "enum": [
  22746. "-Infinity"
  22747. ]
  22748. }
  22749. ]
  22750. },
  22751. "status": {
  22752. "type": "string",
  22753. "enum": [
  22754. "running",
  22755. "exited",
  22756. "timeout",
  22757. "killed"
  22758. ]
  22759. }
  22760. },
  22761. "required": [
  22762. "id",
  22763. "status"
  22764. ],
  22765. "additionalProperties": false
  22766. }
  22767. },
  22768. "required": [
  22769. "id",
  22770. "created",
  22771. "type",
  22772. "data"
  22773. ],
  22774. "additionalProperties": false
  22775. },
  22776. "shell.deleted": {
  22777. "type": "object",
  22778. "properties": {
  22779. "id": {
  22780. "type": "string",
  22781. "allOf": [
  22782. {
  22783. "pattern": "^evt_"
  22784. }
  22785. ]
  22786. },
  22787. "created": {
  22788. "type": "number"
  22789. },
  22790. "metadata": {
  22791. "type": "object"
  22792. },
  22793. "type": {
  22794. "type": "string",
  22795. "enum": [
  22796. "shell.deleted"
  22797. ]
  22798. },
  22799. "location": {
  22800. "$ref": "#/components/schemas/Location.Ref"
  22801. },
  22802. "data": {
  22803. "type": "object",
  22804. "properties": {
  22805. "id": {
  22806. "type": "string",
  22807. "allOf": [
  22808. {
  22809. "pattern": "^sh_"
  22810. }
  22811. ]
  22812. }
  22813. },
  22814. "required": [
  22815. "id"
  22816. ],
  22817. "additionalProperties": false
  22818. }
  22819. },
  22820. "required": [
  22821. "id",
  22822. "created",
  22823. "type",
  22824. "data"
  22825. ],
  22826. "additionalProperties": false
  22827. },
  22828. "QuestionV2.Option": {
  22829. "type": "object",
  22830. "properties": {
  22831. "label": {
  22832. "type": "string",
  22833. "description": "Display text (1-5 words, concise)"
  22834. },
  22835. "description": {
  22836. "type": "string",
  22837. "description": "Explanation of choice"
  22838. }
  22839. },
  22840. "required": [
  22841. "label",
  22842. "description"
  22843. ],
  22844. "additionalProperties": false
  22845. },
  22846. "QuestionV2.Info": {
  22847. "type": "object",
  22848. "properties": {
  22849. "question": {
  22850. "type": "string",
  22851. "description": "Complete question"
  22852. },
  22853. "header": {
  22854. "type": "string",
  22855. "description": "Very short label (max 30 chars)"
  22856. },
  22857. "options": {
  22858. "type": "array",
  22859. "items": {
  22860. "$ref": "#/components/schemas/QuestionV2.Option"
  22861. },
  22862. "description": "Available choices"
  22863. },
  22864. "multiple": {
  22865. "type": "boolean"
  22866. },
  22867. "custom": {
  22868. "type": "boolean"
  22869. }
  22870. },
  22871. "required": [
  22872. "question",
  22873. "header",
  22874. "options"
  22875. ],
  22876. "additionalProperties": false
  22877. },
  22878. "QuestionV2.Tool": {
  22879. "type": "object",
  22880. "properties": {
  22881. "messageID": {
  22882. "type": "string"
  22883. },
  22884. "callID": {
  22885. "type": "string"
  22886. }
  22887. },
  22888. "required": [
  22889. "messageID",
  22890. "callID"
  22891. ],
  22892. "additionalProperties": false
  22893. },
  22894. "question.v2.asked": {
  22895. "type": "object",
  22896. "properties": {
  22897. "id": {
  22898. "type": "string",
  22899. "allOf": [
  22900. {
  22901. "pattern": "^evt_"
  22902. }
  22903. ]
  22904. },
  22905. "created": {
  22906. "type": "number"
  22907. },
  22908. "metadata": {
  22909. "type": "object"
  22910. },
  22911. "type": {
  22912. "type": "string",
  22913. "enum": [
  22914. "question.v2.asked"
  22915. ]
  22916. },
  22917. "location": {
  22918. "$ref": "#/components/schemas/Location.Ref"
  22919. },
  22920. "data": {
  22921. "type": "object",
  22922. "properties": {
  22923. "id": {
  22924. "type": "string",
  22925. "allOf": [
  22926. {
  22927. "pattern": "^que"
  22928. }
  22929. ]
  22930. },
  22931. "sessionID": {
  22932. "type": "string",
  22933. "allOf": [
  22934. {
  22935. "pattern": "^ses"
  22936. }
  22937. ]
  22938. },
  22939. "questions": {
  22940. "type": "array",
  22941. "items": {
  22942. "$ref": "#/components/schemas/QuestionV2.Info"
  22943. },
  22944. "description": "Questions to ask"
  22945. },
  22946. "tool": {
  22947. "$ref": "#/components/schemas/QuestionV2.Tool"
  22948. }
  22949. },
  22950. "required": [
  22951. "id",
  22952. "sessionID",
  22953. "questions"
  22954. ],
  22955. "additionalProperties": false
  22956. }
  22957. },
  22958. "required": [
  22959. "id",
  22960. "created",
  22961. "type",
  22962. "data"
  22963. ],
  22964. "additionalProperties": false
  22965. },
  22966. "QuestionV2.Answer": {
  22967. "type": "array",
  22968. "items": {
  22969. "type": "string"
  22970. }
  22971. },
  22972. "question.v2.replied": {
  22973. "type": "object",
  22974. "properties": {
  22975. "id": {
  22976. "type": "string",
  22977. "allOf": [
  22978. {
  22979. "pattern": "^evt_"
  22980. }
  22981. ]
  22982. },
  22983. "created": {
  22984. "type": "number"
  22985. },
  22986. "metadata": {
  22987. "type": "object"
  22988. },
  22989. "type": {
  22990. "type": "string",
  22991. "enum": [
  22992. "question.v2.replied"
  22993. ]
  22994. },
  22995. "location": {
  22996. "$ref": "#/components/schemas/Location.Ref"
  22997. },
  22998. "data": {
  22999. "type": "object",
  23000. "properties": {
  23001. "sessionID": {
  23002. "type": "string",
  23003. "allOf": [
  23004. {
  23005. "pattern": "^ses"
  23006. }
  23007. ]
  23008. },
  23009. "requestID": {
  23010. "type": "string",
  23011. "allOf": [
  23012. {
  23013. "pattern": "^que"
  23014. }
  23015. ]
  23016. },
  23017. "answers": {
  23018. "type": "array",
  23019. "items": {
  23020. "$ref": "#/components/schemas/QuestionV2.Answer"
  23021. }
  23022. }
  23023. },
  23024. "required": [
  23025. "sessionID",
  23026. "requestID",
  23027. "answers"
  23028. ],
  23029. "additionalProperties": false
  23030. }
  23031. },
  23032. "required": [
  23033. "id",
  23034. "created",
  23035. "type",
  23036. "data"
  23037. ],
  23038. "additionalProperties": false
  23039. },
  23040. "question.v2.rejected": {
  23041. "type": "object",
  23042. "properties": {
  23043. "id": {
  23044. "type": "string",
  23045. "allOf": [
  23046. {
  23047. "pattern": "^evt_"
  23048. }
  23049. ]
  23050. },
  23051. "created": {
  23052. "type": "number"
  23053. },
  23054. "metadata": {
  23055. "type": "object"
  23056. },
  23057. "type": {
  23058. "type": "string",
  23059. "enum": [
  23060. "question.v2.rejected"
  23061. ]
  23062. },
  23063. "location": {
  23064. "$ref": "#/components/schemas/Location.Ref"
  23065. },
  23066. "data": {
  23067. "type": "object",
  23068. "properties": {
  23069. "sessionID": {
  23070. "type": "string",
  23071. "allOf": [
  23072. {
  23073. "pattern": "^ses"
  23074. }
  23075. ]
  23076. },
  23077. "requestID": {
  23078. "type": "string",
  23079. "allOf": [
  23080. {
  23081. "pattern": "^que"
  23082. }
  23083. ]
  23084. }
  23085. },
  23086. "required": [
  23087. "sessionID",
  23088. "requestID"
  23089. ],
  23090. "additionalProperties": false
  23091. }
  23092. },
  23093. "required": [
  23094. "id",
  23095. "created",
  23096. "type",
  23097. "data"
  23098. ],
  23099. "additionalProperties": false
  23100. },
  23101. "Form.Metadata1": {
  23102. "type": "object"
  23103. },
  23104. "Form.When1": {
  23105. "type": "object",
  23106. "properties": {
  23107. "key": {
  23108. "type": "string"
  23109. },
  23110. "op": {
  23111. "type": "string",
  23112. "enum": [
  23113. "eq",
  23114. "neq"
  23115. ]
  23116. },
  23117. "value": {
  23118. "anyOf": [
  23119. {
  23120. "type": "string"
  23121. },
  23122. {
  23123. "anyOf": [
  23124. {
  23125. "type": "number"
  23126. },
  23127. {
  23128. "type": "string",
  23129. "enum": [
  23130. "NaN"
  23131. ]
  23132. },
  23133. {
  23134. "type": "string",
  23135. "enum": [
  23136. "Infinity"
  23137. ]
  23138. },
  23139. {
  23140. "type": "string",
  23141. "enum": [
  23142. "-Infinity"
  23143. ]
  23144. }
  23145. ]
  23146. },
  23147. {
  23148. "type": "boolean"
  23149. }
  23150. ]
  23151. }
  23152. },
  23153. "required": [
  23154. "key",
  23155. "op",
  23156. "value"
  23157. ],
  23158. "additionalProperties": false
  23159. },
  23160. "Form.StringField1": {
  23161. "type": "object",
  23162. "properties": {
  23163. "key": {
  23164. "type": "string"
  23165. },
  23166. "title": {
  23167. "type": "string"
  23168. },
  23169. "description": {
  23170. "type": "string"
  23171. },
  23172. "required": {
  23173. "type": "boolean"
  23174. },
  23175. "when": {
  23176. "type": "array",
  23177. "items": {
  23178. "$ref": "#/components/schemas/Form.When1"
  23179. }
  23180. },
  23181. "type": {
  23182. "type": "string",
  23183. "enum": [
  23184. "string"
  23185. ]
  23186. },
  23187. "format": {
  23188. "type": "string",
  23189. "enum": [
  23190. "email",
  23191. "uri",
  23192. "date",
  23193. "date-time"
  23194. ]
  23195. },
  23196. "minLength": {
  23197. "type": "integer",
  23198. "allOf": [
  23199. {
  23200. "minimum": 0
  23201. }
  23202. ]
  23203. },
  23204. "maxLength": {
  23205. "type": "integer",
  23206. "allOf": [
  23207. {
  23208. "minimum": 0
  23209. }
  23210. ]
  23211. },
  23212. "pattern": {
  23213. "type": "string"
  23214. },
  23215. "placeholder": {
  23216. "type": "string"
  23217. },
  23218. "default": {
  23219. "type": "string"
  23220. },
  23221. "options": {
  23222. "type": "array",
  23223. "items": {
  23224. "$ref": "#/components/schemas/Form.Option"
  23225. }
  23226. },
  23227. "custom": {
  23228. "type": "boolean"
  23229. }
  23230. },
  23231. "required": [
  23232. "key",
  23233. "type"
  23234. ],
  23235. "additionalProperties": false
  23236. },
  23237. "Form.NumberField1": {
  23238. "type": "object",
  23239. "properties": {
  23240. "key": {
  23241. "type": "string"
  23242. },
  23243. "title": {
  23244. "type": "string"
  23245. },
  23246. "description": {
  23247. "type": "string"
  23248. },
  23249. "required": {
  23250. "type": "boolean"
  23251. },
  23252. "when": {
  23253. "type": "array",
  23254. "items": {
  23255. "$ref": "#/components/schemas/Form.When1"
  23256. }
  23257. },
  23258. "type": {
  23259. "type": "string",
  23260. "enum": [
  23261. "number"
  23262. ]
  23263. },
  23264. "minimum": {
  23265. "anyOf": [
  23266. {
  23267. "type": "number"
  23268. },
  23269. {
  23270. "type": "string",
  23271. "enum": [
  23272. "NaN"
  23273. ]
  23274. },
  23275. {
  23276. "type": "string",
  23277. "enum": [
  23278. "Infinity"
  23279. ]
  23280. },
  23281. {
  23282. "type": "string",
  23283. "enum": [
  23284. "-Infinity"
  23285. ]
  23286. }
  23287. ]
  23288. },
  23289. "maximum": {
  23290. "anyOf": [
  23291. {
  23292. "type": "number"
  23293. },
  23294. {
  23295. "type": "string",
  23296. "enum": [
  23297. "NaN"
  23298. ]
  23299. },
  23300. {
  23301. "type": "string",
  23302. "enum": [
  23303. "Infinity"
  23304. ]
  23305. },
  23306. {
  23307. "type": "string",
  23308. "enum": [
  23309. "-Infinity"
  23310. ]
  23311. }
  23312. ]
  23313. },
  23314. "default": {
  23315. "anyOf": [
  23316. {
  23317. "type": "number"
  23318. },
  23319. {
  23320. "type": "string",
  23321. "enum": [
  23322. "NaN"
  23323. ]
  23324. },
  23325. {
  23326. "type": "string",
  23327. "enum": [
  23328. "Infinity"
  23329. ]
  23330. },
  23331. {
  23332. "type": "string",
  23333. "enum": [
  23334. "-Infinity"
  23335. ]
  23336. }
  23337. ]
  23338. }
  23339. },
  23340. "required": [
  23341. "key",
  23342. "type"
  23343. ],
  23344. "additionalProperties": false
  23345. },
  23346. "Form.IntegerField1": {
  23347. "type": "object",
  23348. "properties": {
  23349. "key": {
  23350. "type": "string"
  23351. },
  23352. "title": {
  23353. "type": "string"
  23354. },
  23355. "description": {
  23356. "type": "string"
  23357. },
  23358. "required": {
  23359. "type": "boolean"
  23360. },
  23361. "when": {
  23362. "type": "array",
  23363. "items": {
  23364. "$ref": "#/components/schemas/Form.When1"
  23365. }
  23366. },
  23367. "type": {
  23368. "type": "string",
  23369. "enum": [
  23370. "integer"
  23371. ]
  23372. },
  23373. "minimum": {
  23374. "anyOf": [
  23375. {
  23376. "type": "number"
  23377. },
  23378. {
  23379. "type": "string",
  23380. "enum": [
  23381. "NaN"
  23382. ]
  23383. },
  23384. {
  23385. "type": "string",
  23386. "enum": [
  23387. "Infinity"
  23388. ]
  23389. },
  23390. {
  23391. "type": "string",
  23392. "enum": [
  23393. "-Infinity"
  23394. ]
  23395. }
  23396. ]
  23397. },
  23398. "maximum": {
  23399. "anyOf": [
  23400. {
  23401. "type": "number"
  23402. },
  23403. {
  23404. "type": "string",
  23405. "enum": [
  23406. "NaN"
  23407. ]
  23408. },
  23409. {
  23410. "type": "string",
  23411. "enum": [
  23412. "Infinity"
  23413. ]
  23414. },
  23415. {
  23416. "type": "string",
  23417. "enum": [
  23418. "-Infinity"
  23419. ]
  23420. }
  23421. ]
  23422. },
  23423. "default": {
  23424. "anyOf": [
  23425. {
  23426. "type": "number"
  23427. },
  23428. {
  23429. "type": "string",
  23430. "enum": [
  23431. "NaN"
  23432. ]
  23433. },
  23434. {
  23435. "type": "string",
  23436. "enum": [
  23437. "Infinity"
  23438. ]
  23439. },
  23440. {
  23441. "type": "string",
  23442. "enum": [
  23443. "-Infinity"
  23444. ]
  23445. }
  23446. ]
  23447. }
  23448. },
  23449. "required": [
  23450. "key",
  23451. "type"
  23452. ],
  23453. "additionalProperties": false
  23454. },
  23455. "Form.BooleanField1": {
  23456. "type": "object",
  23457. "properties": {
  23458. "key": {
  23459. "type": "string"
  23460. },
  23461. "title": {
  23462. "type": "string"
  23463. },
  23464. "description": {
  23465. "type": "string"
  23466. },
  23467. "required": {
  23468. "type": "boolean"
  23469. },
  23470. "when": {
  23471. "type": "array",
  23472. "items": {
  23473. "$ref": "#/components/schemas/Form.When1"
  23474. }
  23475. },
  23476. "type": {
  23477. "type": "string",
  23478. "enum": [
  23479. "boolean"
  23480. ]
  23481. },
  23482. "default": {
  23483. "type": "boolean"
  23484. }
  23485. },
  23486. "required": [
  23487. "key",
  23488. "type"
  23489. ],
  23490. "additionalProperties": false
  23491. },
  23492. "Form.MultiselectField1": {
  23493. "type": "object",
  23494. "properties": {
  23495. "key": {
  23496. "type": "string"
  23497. },
  23498. "title": {
  23499. "type": "string"
  23500. },
  23501. "description": {
  23502. "type": "string"
  23503. },
  23504. "required": {
  23505. "type": "boolean"
  23506. },
  23507. "when": {
  23508. "type": "array",
  23509. "items": {
  23510. "$ref": "#/components/schemas/Form.When1"
  23511. }
  23512. },
  23513. "type": {
  23514. "type": "string",
  23515. "enum": [
  23516. "multiselect"
  23517. ]
  23518. },
  23519. "options": {
  23520. "type": "array",
  23521. "items": {
  23522. "$ref": "#/components/schemas/Form.Option"
  23523. }
  23524. },
  23525. "minItems": {
  23526. "type": "integer",
  23527. "allOf": [
  23528. {
  23529. "minimum": 0
  23530. }
  23531. ]
  23532. },
  23533. "maxItems": {
  23534. "type": "integer",
  23535. "allOf": [
  23536. {
  23537. "minimum": 0
  23538. }
  23539. ]
  23540. },
  23541. "custom": {
  23542. "type": "boolean"
  23543. },
  23544. "default": {
  23545. "type": "array",
  23546. "items": {
  23547. "type": "string"
  23548. }
  23549. }
  23550. },
  23551. "required": [
  23552. "key",
  23553. "type",
  23554. "options"
  23555. ],
  23556. "additionalProperties": false
  23557. },
  23558. "Form.FormInfo1": {
  23559. "type": "object",
  23560. "properties": {
  23561. "id": {
  23562. "type": "string",
  23563. "allOf": [
  23564. {
  23565. "pattern": "^frm_"
  23566. }
  23567. ]
  23568. },
  23569. "sessionID": {
  23570. "type": "string"
  23571. },
  23572. "title": {
  23573. "type": "string"
  23574. },
  23575. "metadata": {
  23576. "$ref": "#/components/schemas/Form.Metadata1"
  23577. },
  23578. "mode": {
  23579. "type": "string",
  23580. "enum": [
  23581. "form"
  23582. ]
  23583. },
  23584. "fields": {
  23585. "type": "array",
  23586. "items": {
  23587. "anyOf": [
  23588. {
  23589. "$ref": "#/components/schemas/Form.StringField1"
  23590. },
  23591. {
  23592. "$ref": "#/components/schemas/Form.NumberField1"
  23593. },
  23594. {
  23595. "$ref": "#/components/schemas/Form.IntegerField1"
  23596. },
  23597. {
  23598. "$ref": "#/components/schemas/Form.BooleanField1"
  23599. },
  23600. {
  23601. "$ref": "#/components/schemas/Form.MultiselectField1"
  23602. }
  23603. ]
  23604. }
  23605. }
  23606. },
  23607. "required": [
  23608. "id",
  23609. "sessionID",
  23610. "mode",
  23611. "fields"
  23612. ],
  23613. "additionalProperties": false
  23614. },
  23615. "Form.UrlInfo1": {
  23616. "type": "object",
  23617. "properties": {
  23618. "id": {
  23619. "type": "string",
  23620. "allOf": [
  23621. {
  23622. "pattern": "^frm_"
  23623. }
  23624. ]
  23625. },
  23626. "sessionID": {
  23627. "type": "string"
  23628. },
  23629. "title": {
  23630. "type": "string"
  23631. },
  23632. "metadata": {
  23633. "$ref": "#/components/schemas/Form.Metadata1"
  23634. },
  23635. "mode": {
  23636. "type": "string",
  23637. "enum": [
  23638. "url"
  23639. ]
  23640. },
  23641. "url": {
  23642. "type": "string"
  23643. }
  23644. },
  23645. "required": [
  23646. "id",
  23647. "sessionID",
  23648. "mode",
  23649. "url"
  23650. ],
  23651. "additionalProperties": false
  23652. },
  23653. "form.created": {
  23654. "type": "object",
  23655. "properties": {
  23656. "id": {
  23657. "type": "string",
  23658. "allOf": [
  23659. {
  23660. "pattern": "^evt_"
  23661. }
  23662. ]
  23663. },
  23664. "created": {
  23665. "type": "number"
  23666. },
  23667. "metadata": {
  23668. "type": "object"
  23669. },
  23670. "type": {
  23671. "type": "string",
  23672. "enum": [
  23673. "form.created"
  23674. ]
  23675. },
  23676. "location": {
  23677. "$ref": "#/components/schemas/Location.Ref"
  23678. },
  23679. "data": {
  23680. "type": "object",
  23681. "properties": {
  23682. "form": {
  23683. "anyOf": [
  23684. {
  23685. "$ref": "#/components/schemas/Form.FormInfo1"
  23686. },
  23687. {
  23688. "$ref": "#/components/schemas/Form.UrlInfo1"
  23689. }
  23690. ]
  23691. }
  23692. },
  23693. "required": [
  23694. "form"
  23695. ],
  23696. "additionalProperties": false
  23697. }
  23698. },
  23699. "required": [
  23700. "id",
  23701. "created",
  23702. "type",
  23703. "data"
  23704. ],
  23705. "additionalProperties": false
  23706. },
  23707. "Form.Value1": {
  23708. "anyOf": [
  23709. {
  23710. "type": "string"
  23711. },
  23712. {
  23713. "anyOf": [
  23714. {
  23715. "type": "number"
  23716. },
  23717. {
  23718. "type": "string",
  23719. "enum": [
  23720. "NaN"
  23721. ]
  23722. },
  23723. {
  23724. "type": "string",
  23725. "enum": [
  23726. "Infinity"
  23727. ]
  23728. },
  23729. {
  23730. "type": "string",
  23731. "enum": [
  23732. "-Infinity"
  23733. ]
  23734. }
  23735. ]
  23736. },
  23737. {
  23738. "type": "boolean"
  23739. },
  23740. {
  23741. "type": "array",
  23742. "items": {
  23743. "type": "string"
  23744. }
  23745. }
  23746. ]
  23747. },
  23748. "Form.Answer1": {
  23749. "type": "object",
  23750. "additionalProperties": {
  23751. "$ref": "#/components/schemas/Form.Value1"
  23752. }
  23753. },
  23754. "form.replied": {
  23755. "type": "object",
  23756. "properties": {
  23757. "id": {
  23758. "type": "string",
  23759. "allOf": [
  23760. {
  23761. "pattern": "^evt_"
  23762. }
  23763. ]
  23764. },
  23765. "created": {
  23766. "type": "number"
  23767. },
  23768. "metadata": {
  23769. "type": "object"
  23770. },
  23771. "type": {
  23772. "type": "string",
  23773. "enum": [
  23774. "form.replied"
  23775. ]
  23776. },
  23777. "location": {
  23778. "$ref": "#/components/schemas/Location.Ref"
  23779. },
  23780. "data": {
  23781. "type": "object",
  23782. "properties": {
  23783. "id": {
  23784. "type": "string",
  23785. "allOf": [
  23786. {
  23787. "pattern": "^frm_"
  23788. }
  23789. ]
  23790. },
  23791. "sessionID": {
  23792. "type": "string"
  23793. },
  23794. "answer": {
  23795. "$ref": "#/components/schemas/Form.Answer1"
  23796. }
  23797. },
  23798. "required": [
  23799. "id",
  23800. "sessionID",
  23801. "answer"
  23802. ],
  23803. "additionalProperties": false
  23804. }
  23805. },
  23806. "required": [
  23807. "id",
  23808. "created",
  23809. "type",
  23810. "data"
  23811. ],
  23812. "additionalProperties": false
  23813. },
  23814. "form.cancelled": {
  23815. "type": "object",
  23816. "properties": {
  23817. "id": {
  23818. "type": "string",
  23819. "allOf": [
  23820. {
  23821. "pattern": "^evt_"
  23822. }
  23823. ]
  23824. },
  23825. "created": {
  23826. "type": "number"
  23827. },
  23828. "metadata": {
  23829. "type": "object"
  23830. },
  23831. "type": {
  23832. "type": "string",
  23833. "enum": [
  23834. "form.cancelled"
  23835. ]
  23836. },
  23837. "location": {
  23838. "$ref": "#/components/schemas/Location.Ref"
  23839. },
  23840. "data": {
  23841. "type": "object",
  23842. "properties": {
  23843. "id": {
  23844. "type": "string",
  23845. "allOf": [
  23846. {
  23847. "pattern": "^frm_"
  23848. }
  23849. ]
  23850. },
  23851. "sessionID": {
  23852. "type": "string"
  23853. }
  23854. },
  23855. "required": [
  23856. "id",
  23857. "sessionID"
  23858. ],
  23859. "additionalProperties": false
  23860. }
  23861. },
  23862. "required": [
  23863. "id",
  23864. "created",
  23865. "type",
  23866. "data"
  23867. ],
  23868. "additionalProperties": false
  23869. },
  23870. "Todo": {
  23871. "type": "object",
  23872. "properties": {
  23873. "content": {
  23874. "type": "string",
  23875. "description": "Brief description of the task"
  23876. },
  23877. "status": {
  23878. "type": "string",
  23879. "description": "Current status of the task: pending, in_progress, completed, cancelled"
  23880. },
  23881. "priority": {
  23882. "type": "string",
  23883. "description": "Priority level of the task: high, medium, low"
  23884. }
  23885. },
  23886. "required": [
  23887. "content",
  23888. "status",
  23889. "priority"
  23890. ],
  23891. "additionalProperties": false
  23892. },
  23893. "todo.updated": {
  23894. "type": "object",
  23895. "properties": {
  23896. "id": {
  23897. "type": "string",
  23898. "allOf": [
  23899. {
  23900. "pattern": "^evt_"
  23901. }
  23902. ]
  23903. },
  23904. "created": {
  23905. "type": "number"
  23906. },
  23907. "metadata": {
  23908. "type": "object"
  23909. },
  23910. "type": {
  23911. "type": "string",
  23912. "enum": [
  23913. "todo.updated"
  23914. ]
  23915. },
  23916. "location": {
  23917. "$ref": "#/components/schemas/Location.Ref"
  23918. },
  23919. "data": {
  23920. "type": "object",
  23921. "properties": {
  23922. "sessionID": {
  23923. "type": "string",
  23924. "allOf": [
  23925. {
  23926. "pattern": "^ses"
  23927. }
  23928. ]
  23929. },
  23930. "todos": {
  23931. "type": "array",
  23932. "items": {
  23933. "$ref": "#/components/schemas/Todo"
  23934. }
  23935. }
  23936. },
  23937. "required": [
  23938. "sessionID",
  23939. "todos"
  23940. ],
  23941. "additionalProperties": false
  23942. }
  23943. },
  23944. "required": [
  23945. "id",
  23946. "created",
  23947. "type",
  23948. "data"
  23949. ],
  23950. "additionalProperties": false
  23951. },
  23952. "SessionStatus": {
  23953. "anyOf": [
  23954. {
  23955. "type": "object",
  23956. "properties": {
  23957. "type": {
  23958. "type": "string",
  23959. "enum": [
  23960. "idle"
  23961. ]
  23962. }
  23963. },
  23964. "required": [
  23965. "type"
  23966. ],
  23967. "additionalProperties": false
  23968. },
  23969. {
  23970. "type": "object",
  23971. "properties": {
  23972. "type": {
  23973. "type": "string",
  23974. "enum": [
  23975. "retry"
  23976. ]
  23977. },
  23978. "attempt": {
  23979. "type": "integer",
  23980. "allOf": [
  23981. {
  23982. "minimum": 0
  23983. }
  23984. ]
  23985. },
  23986. "message": {
  23987. "type": "string"
  23988. },
  23989. "action": {
  23990. "type": "object",
  23991. "properties": {
  23992. "reason": {
  23993. "type": "string"
  23994. },
  23995. "provider": {
  23996. "type": "string"
  23997. },
  23998. "title": {
  23999. "type": "string"
  24000. },
  24001. "message": {
  24002. "type": "string"
  24003. },
  24004. "label": {
  24005. "type": "string"
  24006. },
  24007. "link": {
  24008. "type": "string"
  24009. }
  24010. },
  24011. "required": [
  24012. "reason",
  24013. "provider",
  24014. "title",
  24015. "message",
  24016. "label"
  24017. ],
  24018. "additionalProperties": false
  24019. },
  24020. "next": {
  24021. "type": "integer",
  24022. "allOf": [
  24023. {
  24024. "minimum": 0
  24025. }
  24026. ]
  24027. }
  24028. },
  24029. "required": [
  24030. "type",
  24031. "attempt",
  24032. "message",
  24033. "next"
  24034. ],
  24035. "additionalProperties": false
  24036. },
  24037. {
  24038. "type": "object",
  24039. "properties": {
  24040. "type": {
  24041. "type": "string",
  24042. "enum": [
  24043. "busy"
  24044. ]
  24045. }
  24046. },
  24047. "required": [
  24048. "type"
  24049. ],
  24050. "additionalProperties": false
  24051. }
  24052. ]
  24053. },
  24054. "session.status": {
  24055. "type": "object",
  24056. "properties": {
  24057. "id": {
  24058. "type": "string",
  24059. "allOf": [
  24060. {
  24061. "pattern": "^evt_"
  24062. }
  24063. ]
  24064. },
  24065. "created": {
  24066. "type": "number"
  24067. },
  24068. "metadata": {
  24069. "type": "object"
  24070. },
  24071. "type": {
  24072. "type": "string",
  24073. "enum": [
  24074. "session.status"
  24075. ]
  24076. },
  24077. "location": {
  24078. "$ref": "#/components/schemas/Location.Ref"
  24079. },
  24080. "data": {
  24081. "type": "object",
  24082. "properties": {
  24083. "sessionID": {
  24084. "type": "string",
  24085. "allOf": [
  24086. {
  24087. "pattern": "^ses"
  24088. }
  24089. ]
  24090. },
  24091. "status": {
  24092. "$ref": "#/components/schemas/SessionStatus"
  24093. }
  24094. },
  24095. "required": [
  24096. "sessionID",
  24097. "status"
  24098. ],
  24099. "additionalProperties": false
  24100. }
  24101. },
  24102. "required": [
  24103. "id",
  24104. "created",
  24105. "type",
  24106. "data"
  24107. ],
  24108. "additionalProperties": false
  24109. },
  24110. "session.idle": {
  24111. "type": "object",
  24112. "properties": {
  24113. "id": {
  24114. "type": "string",
  24115. "allOf": [
  24116. {
  24117. "pattern": "^evt_"
  24118. }
  24119. ]
  24120. },
  24121. "created": {
  24122. "type": "number"
  24123. },
  24124. "metadata": {
  24125. "type": "object"
  24126. },
  24127. "type": {
  24128. "type": "string",
  24129. "enum": [
  24130. "session.idle"
  24131. ]
  24132. },
  24133. "location": {
  24134. "$ref": "#/components/schemas/Location.Ref"
  24135. },
  24136. "data": {
  24137. "type": "object",
  24138. "properties": {
  24139. "sessionID": {
  24140. "type": "string",
  24141. "allOf": [
  24142. {
  24143. "pattern": "^ses"
  24144. }
  24145. ]
  24146. }
  24147. },
  24148. "required": [
  24149. "sessionID"
  24150. ],
  24151. "additionalProperties": false
  24152. }
  24153. },
  24154. "required": [
  24155. "id",
  24156. "created",
  24157. "type",
  24158. "data"
  24159. ],
  24160. "additionalProperties": false
  24161. },
  24162. "tui.prompt.append": {
  24163. "type": "object",
  24164. "properties": {
  24165. "id": {
  24166. "type": "string",
  24167. "allOf": [
  24168. {
  24169. "pattern": "^evt_"
  24170. }
  24171. ]
  24172. },
  24173. "created": {
  24174. "type": "number"
  24175. },
  24176. "metadata": {
  24177. "type": "object"
  24178. },
  24179. "type": {
  24180. "type": "string",
  24181. "enum": [
  24182. "tui.prompt.append"
  24183. ]
  24184. },
  24185. "location": {
  24186. "$ref": "#/components/schemas/Location.Ref"
  24187. },
  24188. "data": {
  24189. "type": "object",
  24190. "properties": {
  24191. "text": {
  24192. "type": "string"
  24193. }
  24194. },
  24195. "required": [
  24196. "text"
  24197. ],
  24198. "additionalProperties": false
  24199. }
  24200. },
  24201. "required": [
  24202. "id",
  24203. "created",
  24204. "type",
  24205. "data"
  24206. ],
  24207. "additionalProperties": false
  24208. },
  24209. "tui.command.execute": {
  24210. "type": "object",
  24211. "properties": {
  24212. "id": {
  24213. "type": "string",
  24214. "allOf": [
  24215. {
  24216. "pattern": "^evt_"
  24217. }
  24218. ]
  24219. },
  24220. "created": {
  24221. "type": "number"
  24222. },
  24223. "metadata": {
  24224. "type": "object"
  24225. },
  24226. "type": {
  24227. "type": "string",
  24228. "enum": [
  24229. "tui.command.execute"
  24230. ]
  24231. },
  24232. "location": {
  24233. "$ref": "#/components/schemas/Location.Ref"
  24234. },
  24235. "data": {
  24236. "type": "object",
  24237. "properties": {
  24238. "command": {
  24239. "anyOf": [
  24240. {
  24241. "type": "string",
  24242. "enum": [
  24243. "session.list",
  24244. "session.new",
  24245. "session.share",
  24246. "session.interrupt",
  24247. "session.background",
  24248. "session.compact",
  24249. "session.page.up",
  24250. "session.page.down",
  24251. "session.line.up",
  24252. "session.line.down",
  24253. "session.half.page.up",
  24254. "session.half.page.down",
  24255. "session.first",
  24256. "session.last",
  24257. "prompt.clear",
  24258. "prompt.submit",
  24259. "agent.cycle"
  24260. ]
  24261. },
  24262. {
  24263. "type": "string"
  24264. }
  24265. ]
  24266. }
  24267. },
  24268. "required": [
  24269. "command"
  24270. ],
  24271. "additionalProperties": false
  24272. }
  24273. },
  24274. "required": [
  24275. "id",
  24276. "created",
  24277. "type",
  24278. "data"
  24279. ],
  24280. "additionalProperties": false
  24281. },
  24282. "tui.toast.show": {
  24283. "type": "object",
  24284. "properties": {
  24285. "id": {
  24286. "type": "string",
  24287. "allOf": [
  24288. {
  24289. "pattern": "^evt_"
  24290. }
  24291. ]
  24292. },
  24293. "created": {
  24294. "type": "number"
  24295. },
  24296. "metadata": {
  24297. "type": "object"
  24298. },
  24299. "type": {
  24300. "type": "string",
  24301. "enum": [
  24302. "tui.toast.show"
  24303. ]
  24304. },
  24305. "location": {
  24306. "$ref": "#/components/schemas/Location.Ref"
  24307. },
  24308. "data": {
  24309. "type": "object",
  24310. "properties": {
  24311. "title": {
  24312. "type": "string"
  24313. },
  24314. "message": {
  24315. "type": "string"
  24316. },
  24317. "variant": {
  24318. "type": "string",
  24319. "enum": [
  24320. "info",
  24321. "success",
  24322. "warning",
  24323. "error"
  24324. ]
  24325. },
  24326. "duration": {
  24327. "anyOf": [
  24328. {
  24329. "type": "integer",
  24330. "allOf": [
  24331. {
  24332. "exclusiveMinimum": 0
  24333. }
  24334. ]
  24335. },
  24336. {
  24337. "type": "null"
  24338. }
  24339. ]
  24340. }
  24341. },
  24342. "required": [
  24343. "message",
  24344. "variant"
  24345. ],
  24346. "additionalProperties": false
  24347. }
  24348. },
  24349. "required": [
  24350. "id",
  24351. "created",
  24352. "type",
  24353. "data"
  24354. ],
  24355. "additionalProperties": false
  24356. },
  24357. "tui.session.select": {
  24358. "type": "object",
  24359. "properties": {
  24360. "id": {
  24361. "type": "string",
  24362. "allOf": [
  24363. {
  24364. "pattern": "^evt_"
  24365. }
  24366. ]
  24367. },
  24368. "created": {
  24369. "type": "number"
  24370. },
  24371. "metadata": {
  24372. "type": "object"
  24373. },
  24374. "type": {
  24375. "type": "string",
  24376. "enum": [
  24377. "tui.session.select"
  24378. ]
  24379. },
  24380. "location": {
  24381. "$ref": "#/components/schemas/Location.Ref"
  24382. },
  24383. "data": {
  24384. "type": "object",
  24385. "properties": {
  24386. "sessionID": {
  24387. "type": "string",
  24388. "allOf": [
  24389. {
  24390. "pattern": "^ses",
  24391. "description": "Session ID to navigate to"
  24392. }
  24393. ]
  24394. }
  24395. },
  24396. "required": [
  24397. "sessionID"
  24398. ],
  24399. "additionalProperties": false
  24400. }
  24401. },
  24402. "required": [
  24403. "id",
  24404. "created",
  24405. "type",
  24406. "data"
  24407. ],
  24408. "additionalProperties": false
  24409. },
  24410. "installation.updated": {
  24411. "type": "object",
  24412. "properties": {
  24413. "id": {
  24414. "type": "string",
  24415. "allOf": [
  24416. {
  24417. "pattern": "^evt_"
  24418. }
  24419. ]
  24420. },
  24421. "created": {
  24422. "type": "number"
  24423. },
  24424. "metadata": {
  24425. "type": "object"
  24426. },
  24427. "type": {
  24428. "type": "string",
  24429. "enum": [
  24430. "installation.updated"
  24431. ]
  24432. },
  24433. "location": {
  24434. "$ref": "#/components/schemas/Location.Ref"
  24435. },
  24436. "data": {
  24437. "type": "object",
  24438. "properties": {
  24439. "version": {
  24440. "type": "string"
  24441. }
  24442. },
  24443. "required": [
  24444. "version"
  24445. ],
  24446. "additionalProperties": false
  24447. }
  24448. },
  24449. "required": [
  24450. "id",
  24451. "created",
  24452. "type",
  24453. "data"
  24454. ],
  24455. "additionalProperties": false
  24456. },
  24457. "installation.update-available": {
  24458. "type": "object",
  24459. "properties": {
  24460. "id": {
  24461. "type": "string",
  24462. "allOf": [
  24463. {
  24464. "pattern": "^evt_"
  24465. }
  24466. ]
  24467. },
  24468. "created": {
  24469. "type": "number"
  24470. },
  24471. "metadata": {
  24472. "type": "object"
  24473. },
  24474. "type": {
  24475. "type": "string",
  24476. "enum": [
  24477. "installation.update-available"
  24478. ]
  24479. },
  24480. "location": {
  24481. "$ref": "#/components/schemas/Location.Ref"
  24482. },
  24483. "data": {
  24484. "type": "object",
  24485. "properties": {
  24486. "version": {
  24487. "type": "string"
  24488. }
  24489. },
  24490. "required": [
  24491. "version"
  24492. ],
  24493. "additionalProperties": false
  24494. }
  24495. },
  24496. "required": [
  24497. "id",
  24498. "created",
  24499. "type",
  24500. "data"
  24501. ],
  24502. "additionalProperties": false
  24503. },
  24504. "vcs.branch.updated": {
  24505. "type": "object",
  24506. "properties": {
  24507. "id": {
  24508. "type": "string",
  24509. "allOf": [
  24510. {
  24511. "pattern": "^evt_"
  24512. }
  24513. ]
  24514. },
  24515. "created": {
  24516. "type": "number"
  24517. },
  24518. "metadata": {
  24519. "type": "object"
  24520. },
  24521. "type": {
  24522. "type": "string",
  24523. "enum": [
  24524. "vcs.branch.updated"
  24525. ]
  24526. },
  24527. "location": {
  24528. "$ref": "#/components/schemas/Location.Ref"
  24529. },
  24530. "data": {
  24531. "type": "object",
  24532. "properties": {
  24533. "branch": {
  24534. "type": "string"
  24535. }
  24536. },
  24537. "additionalProperties": false
  24538. }
  24539. },
  24540. "required": [
  24541. "id",
  24542. "created",
  24543. "type",
  24544. "data"
  24545. ],
  24546. "additionalProperties": false
  24547. },
  24548. "mcp.status.changed": {
  24549. "type": "object",
  24550. "properties": {
  24551. "id": {
  24552. "type": "string",
  24553. "allOf": [
  24554. {
  24555. "pattern": "^evt_"
  24556. }
  24557. ]
  24558. },
  24559. "created": {
  24560. "type": "number"
  24561. },
  24562. "metadata": {
  24563. "type": "object"
  24564. },
  24565. "type": {
  24566. "type": "string",
  24567. "enum": [
  24568. "mcp.status.changed"
  24569. ]
  24570. },
  24571. "location": {
  24572. "$ref": "#/components/schemas/Location.Ref"
  24573. },
  24574. "data": {
  24575. "type": "object",
  24576. "properties": {
  24577. "server": {
  24578. "type": "string"
  24579. }
  24580. },
  24581. "required": [
  24582. "server"
  24583. ],
  24584. "additionalProperties": false
  24585. }
  24586. },
  24587. "required": [
  24588. "id",
  24589. "created",
  24590. "type",
  24591. "data"
  24592. ],
  24593. "additionalProperties": false
  24594. },
  24595. "permission.asked": {
  24596. "type": "object",
  24597. "properties": {
  24598. "id": {
  24599. "type": "string",
  24600. "allOf": [
  24601. {
  24602. "pattern": "^evt_"
  24603. }
  24604. ]
  24605. },
  24606. "created": {
  24607. "type": "number"
  24608. },
  24609. "metadata": {
  24610. "type": "object"
  24611. },
  24612. "type": {
  24613. "type": "string",
  24614. "enum": [
  24615. "permission.asked"
  24616. ]
  24617. },
  24618. "location": {
  24619. "$ref": "#/components/schemas/Location.Ref"
  24620. },
  24621. "data": {
  24622. "type": "object",
  24623. "properties": {
  24624. "id": {
  24625. "type": "string",
  24626. "allOf": [
  24627. {
  24628. "pattern": "^per"
  24629. }
  24630. ]
  24631. },
  24632. "sessionID": {
  24633. "type": "string",
  24634. "allOf": [
  24635. {
  24636. "pattern": "^ses"
  24637. }
  24638. ]
  24639. },
  24640. "permission": {
  24641. "type": "string"
  24642. },
  24643. "patterns": {
  24644. "type": "array",
  24645. "items": {
  24646. "type": "string"
  24647. }
  24648. },
  24649. "metadata": {
  24650. "type": "object"
  24651. },
  24652. "always": {
  24653. "type": "array",
  24654. "items": {
  24655. "type": "string"
  24656. }
  24657. },
  24658. "tool": {
  24659. "anyOf": [
  24660. {
  24661. "type": "object",
  24662. "properties": {
  24663. "messageID": {
  24664. "type": "string"
  24665. },
  24666. "callID": {
  24667. "type": "string"
  24668. }
  24669. },
  24670. "required": [
  24671. "messageID",
  24672. "callID"
  24673. ],
  24674. "additionalProperties": false
  24675. },
  24676. {
  24677. "type": "null"
  24678. }
  24679. ]
  24680. }
  24681. },
  24682. "required": [
  24683. "id",
  24684. "sessionID",
  24685. "permission",
  24686. "patterns",
  24687. "metadata",
  24688. "always"
  24689. ],
  24690. "additionalProperties": false
  24691. }
  24692. },
  24693. "required": [
  24694. "id",
  24695. "created",
  24696. "type",
  24697. "data"
  24698. ],
  24699. "additionalProperties": false
  24700. },
  24701. "permission.replied": {
  24702. "type": "object",
  24703. "properties": {
  24704. "id": {
  24705. "type": "string",
  24706. "allOf": [
  24707. {
  24708. "pattern": "^evt_"
  24709. }
  24710. ]
  24711. },
  24712. "created": {
  24713. "type": "number"
  24714. },
  24715. "metadata": {
  24716. "type": "object"
  24717. },
  24718. "type": {
  24719. "type": "string",
  24720. "enum": [
  24721. "permission.replied"
  24722. ]
  24723. },
  24724. "location": {
  24725. "$ref": "#/components/schemas/Location.Ref"
  24726. },
  24727. "data": {
  24728. "type": "object",
  24729. "properties": {
  24730. "sessionID": {
  24731. "type": "string",
  24732. "allOf": [
  24733. {
  24734. "pattern": "^ses"
  24735. }
  24736. ]
  24737. },
  24738. "requestID": {
  24739. "type": "string",
  24740. "allOf": [
  24741. {
  24742. "pattern": "^per"
  24743. }
  24744. ]
  24745. },
  24746. "reply": {
  24747. "type": "string",
  24748. "enum": [
  24749. "once",
  24750. "always",
  24751. "reject"
  24752. ]
  24753. }
  24754. },
  24755. "required": [
  24756. "sessionID",
  24757. "requestID",
  24758. "reply"
  24759. ],
  24760. "additionalProperties": false
  24761. }
  24762. },
  24763. "required": [
  24764. "id",
  24765. "created",
  24766. "type",
  24767. "data"
  24768. ],
  24769. "additionalProperties": false
  24770. },
  24771. "QuestionOption": {
  24772. "type": "object",
  24773. "properties": {
  24774. "label": {
  24775. "type": "string",
  24776. "description": "Display text (1-5 words, concise)"
  24777. },
  24778. "description": {
  24779. "type": "string",
  24780. "description": "Explanation of choice"
  24781. }
  24782. },
  24783. "required": [
  24784. "label",
  24785. "description"
  24786. ],
  24787. "additionalProperties": false
  24788. },
  24789. "QuestionInfo": {
  24790. "type": "object",
  24791. "properties": {
  24792. "question": {
  24793. "type": "string",
  24794. "description": "Complete question"
  24795. },
  24796. "header": {
  24797. "type": "string",
  24798. "description": "Very short label (max 30 chars)"
  24799. },
  24800. "options": {
  24801. "type": "array",
  24802. "items": {
  24803. "$ref": "#/components/schemas/QuestionOption"
  24804. },
  24805. "description": "Available choices"
  24806. },
  24807. "multiple": {
  24808. "anyOf": [
  24809. {
  24810. "type": "boolean"
  24811. },
  24812. {
  24813. "type": "null"
  24814. }
  24815. ],
  24816. "description": "Allow selecting multiple choices"
  24817. },
  24818. "custom": {
  24819. "anyOf": [
  24820. {
  24821. "type": "boolean"
  24822. },
  24823. {
  24824. "type": "null"
  24825. }
  24826. ],
  24827. "description": "Allow typing a custom answer (default: true)"
  24828. }
  24829. },
  24830. "required": [
  24831. "question",
  24832. "header",
  24833. "options"
  24834. ],
  24835. "additionalProperties": false
  24836. },
  24837. "QuestionTool": {
  24838. "type": "object",
  24839. "properties": {
  24840. "messageID": {
  24841. "type": "string",
  24842. "allOf": [
  24843. {
  24844. "pattern": "^msg"
  24845. }
  24846. ]
  24847. },
  24848. "callID": {
  24849. "type": "string"
  24850. }
  24851. },
  24852. "required": [
  24853. "messageID",
  24854. "callID"
  24855. ],
  24856. "additionalProperties": false
  24857. },
  24858. "question.asked": {
  24859. "type": "object",
  24860. "properties": {
  24861. "id": {
  24862. "type": "string",
  24863. "allOf": [
  24864. {
  24865. "pattern": "^evt_"
  24866. }
  24867. ]
  24868. },
  24869. "created": {
  24870. "type": "number"
  24871. },
  24872. "metadata": {
  24873. "type": "object"
  24874. },
  24875. "type": {
  24876. "type": "string",
  24877. "enum": [
  24878. "question.asked"
  24879. ]
  24880. },
  24881. "location": {
  24882. "$ref": "#/components/schemas/Location.Ref"
  24883. },
  24884. "data": {
  24885. "type": "object",
  24886. "properties": {
  24887. "id": {
  24888. "type": "string",
  24889. "allOf": [
  24890. {
  24891. "pattern": "^que"
  24892. }
  24893. ]
  24894. },
  24895. "sessionID": {
  24896. "type": "string",
  24897. "allOf": [
  24898. {
  24899. "pattern": "^ses"
  24900. }
  24901. ]
  24902. },
  24903. "questions": {
  24904. "type": "array",
  24905. "items": {
  24906. "$ref": "#/components/schemas/QuestionInfo"
  24907. },
  24908. "description": "Questions to ask"
  24909. },
  24910. "tool": {
  24911. "anyOf": [
  24912. {
  24913. "$ref": "#/components/schemas/QuestionTool"
  24914. },
  24915. {
  24916. "type": "null"
  24917. }
  24918. ]
  24919. }
  24920. },
  24921. "required": [
  24922. "id",
  24923. "sessionID",
  24924. "questions"
  24925. ],
  24926. "additionalProperties": false
  24927. }
  24928. },
  24929. "required": [
  24930. "id",
  24931. "created",
  24932. "type",
  24933. "data"
  24934. ],
  24935. "additionalProperties": false
  24936. },
  24937. "QuestionAnswer": {
  24938. "type": "array",
  24939. "items": {
  24940. "type": "string"
  24941. }
  24942. },
  24943. "question.replied": {
  24944. "type": "object",
  24945. "properties": {
  24946. "id": {
  24947. "type": "string",
  24948. "allOf": [
  24949. {
  24950. "pattern": "^evt_"
  24951. }
  24952. ]
  24953. },
  24954. "created": {
  24955. "type": "number"
  24956. },
  24957. "metadata": {
  24958. "type": "object"
  24959. },
  24960. "type": {
  24961. "type": "string",
  24962. "enum": [
  24963. "question.replied"
  24964. ]
  24965. },
  24966. "location": {
  24967. "$ref": "#/components/schemas/Location.Ref"
  24968. },
  24969. "data": {
  24970. "type": "object",
  24971. "properties": {
  24972. "sessionID": {
  24973. "type": "string",
  24974. "allOf": [
  24975. {
  24976. "pattern": "^ses"
  24977. }
  24978. ]
  24979. },
  24980. "requestID": {
  24981. "type": "string",
  24982. "allOf": [
  24983. {
  24984. "pattern": "^que"
  24985. }
  24986. ]
  24987. },
  24988. "answers": {
  24989. "type": "array",
  24990. "items": {
  24991. "$ref": "#/components/schemas/QuestionAnswer"
  24992. }
  24993. }
  24994. },
  24995. "required": [
  24996. "sessionID",
  24997. "requestID",
  24998. "answers"
  24999. ],
  25000. "additionalProperties": false
  25001. }
  25002. },
  25003. "required": [
  25004. "id",
  25005. "created",
  25006. "type",
  25007. "data"
  25008. ],
  25009. "additionalProperties": false
  25010. },
  25011. "question.rejected": {
  25012. "type": "object",
  25013. "properties": {
  25014. "id": {
  25015. "type": "string",
  25016. "allOf": [
  25017. {
  25018. "pattern": "^evt_"
  25019. }
  25020. ]
  25021. },
  25022. "created": {
  25023. "type": "number"
  25024. },
  25025. "metadata": {
  25026. "type": "object"
  25027. },
  25028. "type": {
  25029. "type": "string",
  25030. "enum": [
  25031. "question.rejected"
  25032. ]
  25033. },
  25034. "location": {
  25035. "$ref": "#/components/schemas/Location.Ref"
  25036. },
  25037. "data": {
  25038. "type": "object",
  25039. "properties": {
  25040. "sessionID": {
  25041. "type": "string",
  25042. "allOf": [
  25043. {
  25044. "pattern": "^ses"
  25045. }
  25046. ]
  25047. },
  25048. "requestID": {
  25049. "type": "string",
  25050. "allOf": [
  25051. {
  25052. "pattern": "^que"
  25053. }
  25054. ]
  25055. }
  25056. },
  25057. "required": [
  25058. "sessionID",
  25059. "requestID"
  25060. ],
  25061. "additionalProperties": false
  25062. }
  25063. },
  25064. "required": [
  25065. "id",
  25066. "created",
  25067. "type",
  25068. "data"
  25069. ],
  25070. "additionalProperties": false
  25071. },
  25072. "session.error": {
  25073. "type": "object",
  25074. "properties": {
  25075. "id": {
  25076. "type": "string",
  25077. "allOf": [
  25078. {
  25079. "pattern": "^evt_"
  25080. }
  25081. ]
  25082. },
  25083. "created": {
  25084. "type": "number"
  25085. },
  25086. "metadata": {
  25087. "type": "object"
  25088. },
  25089. "type": {
  25090. "type": "string",
  25091. "enum": [
  25092. "session.error"
  25093. ]
  25094. },
  25095. "location": {
  25096. "$ref": "#/components/schemas/Location.Ref"
  25097. },
  25098. "data": {
  25099. "type": "object",
  25100. "properties": {
  25101. "sessionID": {
  25102. "anyOf": [
  25103. {
  25104. "type": "string",
  25105. "allOf": [
  25106. {
  25107. "pattern": "^ses"
  25108. }
  25109. ]
  25110. },
  25111. {
  25112. "type": "null"
  25113. }
  25114. ]
  25115. },
  25116. "error": {
  25117. "anyOf": [
  25118. {
  25119. "anyOf": [
  25120. {
  25121. "$ref": "#/components/schemas/ProviderAuthError"
  25122. },
  25123. {
  25124. "$ref": "#/components/schemas/UnknownError1"
  25125. },
  25126. {
  25127. "$ref": "#/components/schemas/MessageOutputLengthError"
  25128. },
  25129. {
  25130. "$ref": "#/components/schemas/MessageAbortedError"
  25131. },
  25132. {
  25133. "$ref": "#/components/schemas/StructuredOutputError"
  25134. },
  25135. {
  25136. "$ref": "#/components/schemas/ContextOverflowError"
  25137. },
  25138. {
  25139. "$ref": "#/components/schemas/ContentFilterError"
  25140. },
  25141. {
  25142. "$ref": "#/components/schemas/APIError"
  25143. }
  25144. ]
  25145. },
  25146. {
  25147. "type": "null"
  25148. }
  25149. ]
  25150. }
  25151. },
  25152. "additionalProperties": false
  25153. }
  25154. },
  25155. "required": [
  25156. "id",
  25157. "created",
  25158. "type",
  25159. "data"
  25160. ],
  25161. "additionalProperties": false
  25162. },
  25163. "V2Event.server.connected": {
  25164. "type": "object",
  25165. "properties": {
  25166. "id": {
  25167. "type": "string",
  25168. "allOf": [
  25169. {
  25170. "pattern": "^evt_"
  25171. }
  25172. ]
  25173. },
  25174. "metadata": {
  25175. "anyOf": [
  25176. {
  25177. "type": "object"
  25178. },
  25179. {
  25180. "type": "null"
  25181. }
  25182. ]
  25183. },
  25184. "location": {
  25185. "anyOf": [
  25186. {
  25187. "$ref": "#/components/schemas/Location.Ref"
  25188. },
  25189. {
  25190. "type": "null"
  25191. }
  25192. ]
  25193. },
  25194. "type": {
  25195. "type": "string",
  25196. "enum": [
  25197. "server.connected"
  25198. ]
  25199. },
  25200. "data": {
  25201. "anyOf": [
  25202. {
  25203. "type": "object"
  25204. },
  25205. {
  25206. "type": "array"
  25207. }
  25208. ]
  25209. }
  25210. },
  25211. "required": [
  25212. "id",
  25213. "type",
  25214. "data"
  25215. ],
  25216. "additionalProperties": false
  25217. },
  25218. "V2Event": {
  25219. "anyOf": [
  25220. {
  25221. "$ref": "#/components/schemas/models-dev.refreshed"
  25222. },
  25223. {
  25224. "$ref": "#/components/schemas/integration.updated"
  25225. },
  25226. {
  25227. "$ref": "#/components/schemas/integration.connection.updated"
  25228. },
  25229. {
  25230. "$ref": "#/components/schemas/catalog.updated"
  25231. },
  25232. {
  25233. "$ref": "#/components/schemas/agent.updated"
  25234. },
  25235. {
  25236. "$ref": "#/components/schemas/session.created"
  25237. },
  25238. {
  25239. "$ref": "#/components/schemas/session.updated"
  25240. },
  25241. {
  25242. "$ref": "#/components/schemas/session.deleted"
  25243. },
  25244. {
  25245. "$ref": "#/components/schemas/message.updated"
  25246. },
  25247. {
  25248. "$ref": "#/components/schemas/message.removed"
  25249. },
  25250. {
  25251. "$ref": "#/components/schemas/message.part.updated"
  25252. },
  25253. {
  25254. "$ref": "#/components/schemas/message.part.removed"
  25255. },
  25256. {
  25257. "$ref": "#/components/schemas/session.agent.selected"
  25258. },
  25259. {
  25260. "$ref": "#/components/schemas/session.model.selected"
  25261. },
  25262. {
  25263. "$ref": "#/components/schemas/session.moved"
  25264. },
  25265. {
  25266. "$ref": "#/components/schemas/session.renamed"
  25267. },
  25268. {
  25269. "$ref": "#/components/schemas/session.forked"
  25270. },
  25271. {
  25272. "$ref": "#/components/schemas/session.prompt.promoted"
  25273. },
  25274. {
  25275. "$ref": "#/components/schemas/session.prompt.admitted"
  25276. },
  25277. {
  25278. "$ref": "#/components/schemas/session.execution.settled"
  25279. },
  25280. {
  25281. "$ref": "#/components/schemas/session.context.updated"
  25282. },
  25283. {
  25284. "$ref": "#/components/schemas/session.synthetic"
  25285. },
  25286. {
  25287. "$ref": "#/components/schemas/session.skill.activated"
  25288. },
  25289. {
  25290. "$ref": "#/components/schemas/session.shell.started"
  25291. },
  25292. {
  25293. "$ref": "#/components/schemas/session.shell.ended"
  25294. },
  25295. {
  25296. "$ref": "#/components/schemas/session.step.started"
  25297. },
  25298. {
  25299. "$ref": "#/components/schemas/session.step.ended"
  25300. },
  25301. {
  25302. "$ref": "#/components/schemas/session.step.failed"
  25303. },
  25304. {
  25305. "$ref": "#/components/schemas/session.text.started"
  25306. },
  25307. {
  25308. "$ref": "#/components/schemas/session.text.delta"
  25309. },
  25310. {
  25311. "$ref": "#/components/schemas/session.text.ended"
  25312. },
  25313. {
  25314. "$ref": "#/components/schemas/session.reasoning.started"
  25315. },
  25316. {
  25317. "$ref": "#/components/schemas/session.reasoning.delta"
  25318. },
  25319. {
  25320. "$ref": "#/components/schemas/session.reasoning.ended"
  25321. },
  25322. {
  25323. "$ref": "#/components/schemas/session.tool.input.started"
  25324. },
  25325. {
  25326. "$ref": "#/components/schemas/session.tool.input.delta"
  25327. },
  25328. {
  25329. "$ref": "#/components/schemas/session.tool.input.ended"
  25330. },
  25331. {
  25332. "$ref": "#/components/schemas/session.tool.called"
  25333. },
  25334. {
  25335. "$ref": "#/components/schemas/session.tool.progress"
  25336. },
  25337. {
  25338. "$ref": "#/components/schemas/session.tool.success"
  25339. },
  25340. {
  25341. "$ref": "#/components/schemas/session.tool.failed"
  25342. },
  25343. {
  25344. "$ref": "#/components/schemas/session.retried"
  25345. },
  25346. {
  25347. "$ref": "#/components/schemas/session.compaction.started"
  25348. },
  25349. {
  25350. "$ref": "#/components/schemas/session.compaction.delta"
  25351. },
  25352. {
  25353. "$ref": "#/components/schemas/session.compaction.ended"
  25354. },
  25355. {
  25356. "$ref": "#/components/schemas/session.revert.staged"
  25357. },
  25358. {
  25359. "$ref": "#/components/schemas/session.revert.cleared"
  25360. },
  25361. {
  25362. "$ref": "#/components/schemas/session.revert.committed"
  25363. },
  25364. {
  25365. "$ref": "#/components/schemas/filesystem.changed"
  25366. },
  25367. {
  25368. "$ref": "#/components/schemas/reference.updated"
  25369. },
  25370. {
  25371. "$ref": "#/components/schemas/permission.v2.asked"
  25372. },
  25373. {
  25374. "$ref": "#/components/schemas/permission.v2.replied"
  25375. },
  25376. {
  25377. "$ref": "#/components/schemas/plugin.added"
  25378. },
  25379. {
  25380. "$ref": "#/components/schemas/plugin.updated"
  25381. },
  25382. {
  25383. "$ref": "#/components/schemas/project.directories.updated"
  25384. },
  25385. {
  25386. "$ref": "#/components/schemas/command.updated"
  25387. },
  25388. {
  25389. "$ref": "#/components/schemas/config.updated"
  25390. },
  25391. {
  25392. "$ref": "#/components/schemas/skill.updated"
  25393. },
  25394. {
  25395. "$ref": "#/components/schemas/pty.created"
  25396. },
  25397. {
  25398. "$ref": "#/components/schemas/pty.updated"
  25399. },
  25400. {
  25401. "$ref": "#/components/schemas/pty.exited"
  25402. },
  25403. {
  25404. "$ref": "#/components/schemas/pty.deleted"
  25405. },
  25406. {
  25407. "$ref": "#/components/schemas/shell.created"
  25408. },
  25409. {
  25410. "$ref": "#/components/schemas/shell.exited"
  25411. },
  25412. {
  25413. "$ref": "#/components/schemas/shell.deleted"
  25414. },
  25415. {
  25416. "$ref": "#/components/schemas/question.v2.asked"
  25417. },
  25418. {
  25419. "$ref": "#/components/schemas/question.v2.replied"
  25420. },
  25421. {
  25422. "$ref": "#/components/schemas/question.v2.rejected"
  25423. },
  25424. {
  25425. "$ref": "#/components/schemas/form.created"
  25426. },
  25427. {
  25428. "$ref": "#/components/schemas/form.replied"
  25429. },
  25430. {
  25431. "$ref": "#/components/schemas/form.cancelled"
  25432. },
  25433. {
  25434. "$ref": "#/components/schemas/todo.updated"
  25435. },
  25436. {
  25437. "$ref": "#/components/schemas/session.status"
  25438. },
  25439. {
  25440. "$ref": "#/components/schemas/session.idle"
  25441. },
  25442. {
  25443. "$ref": "#/components/schemas/tui.prompt.append"
  25444. },
  25445. {
  25446. "$ref": "#/components/schemas/tui.command.execute"
  25447. },
  25448. {
  25449. "$ref": "#/components/schemas/tui.toast.show"
  25450. },
  25451. {
  25452. "$ref": "#/components/schemas/tui.session.select"
  25453. },
  25454. {
  25455. "$ref": "#/components/schemas/installation.updated"
  25456. },
  25457. {
  25458. "$ref": "#/components/schemas/installation.update-available"
  25459. },
  25460. {
  25461. "$ref": "#/components/schemas/vcs.branch.updated"
  25462. },
  25463. {
  25464. "$ref": "#/components/schemas/mcp.status.changed"
  25465. },
  25466. {
  25467. "$ref": "#/components/schemas/permission.asked"
  25468. },
  25469. {
  25470. "$ref": "#/components/schemas/permission.replied"
  25471. },
  25472. {
  25473. "$ref": "#/components/schemas/question.asked"
  25474. },
  25475. {
  25476. "$ref": "#/components/schemas/question.replied"
  25477. },
  25478. {
  25479. "$ref": "#/components/schemas/question.rejected"
  25480. },
  25481. {
  25482. "$ref": "#/components/schemas/session.error"
  25483. },
  25484. {
  25485. "$ref": "#/components/schemas/V2Event.server.connected"
  25486. }
  25487. ]
  25488. },
  25489. "V2EventStream": {
  25490. "type": "string",
  25491. "contentSchema": {
  25492. "$ref": "#/components/schemas/V2Event"
  25493. },
  25494. "contentMediaType": "application/json"
  25495. },
  25496. "EventLog.Hint": {
  25497. "type": "object",
  25498. "properties": {
  25499. "type": {
  25500. "type": "string",
  25501. "enum": [
  25502. "log.hint"
  25503. ]
  25504. },
  25505. "aggregateID": {
  25506. "type": "string"
  25507. },
  25508. "seq": {
  25509. "type": "integer",
  25510. "allOf": [
  25511. {
  25512. "minimum": 0
  25513. }
  25514. ]
  25515. }
  25516. },
  25517. "required": [
  25518. "type",
  25519. "aggregateID",
  25520. "seq"
  25521. ],
  25522. "additionalProperties": false,
  25523. "description": "Payload-free change hint: the aggregate's durable log advanced to at least seq. Hints coalesce under backpressure (latest per aggregate) and are never a delivery guarantee."
  25524. },
  25525. "EventLog.SweepRequired": {
  25526. "type": "object",
  25527. "properties": {
  25528. "type": {
  25529. "type": "string",
  25530. "enum": [
  25531. "log.sweep_required"
  25532. ]
  25533. }
  25534. },
  25535. "required": [
  25536. "type"
  25537. ],
  25538. "additionalProperties": false,
  25539. "description": "Hints may have been lost; treat every aggregate as potentially dirty and recover via bounded sweep plus durable log reads. Emitted first on every (re)subscribe."
  25540. },
  25541. "EventLog.Change": {
  25542. "anyOf": [
  25543. {
  25544. "$ref": "#/components/schemas/EventLog.Hint"
  25545. },
  25546. {
  25547. "$ref": "#/components/schemas/EventLog.SweepRequired"
  25548. }
  25549. ]
  25550. },
  25551. "EventLog.ChangeStream": {
  25552. "type": "string",
  25553. "contentSchema": {
  25554. "$ref": "#/components/schemas/EventLog.Change"
  25555. },
  25556. "contentMediaType": "application/json"
  25557. },
  25558. "PtyNotFoundError": {
  25559. "type": "object",
  25560. "properties": {
  25561. "_tag": {
  25562. "type": "string",
  25563. "enum": [
  25564. "PtyNotFoundError"
  25565. ]
  25566. },
  25567. "ptyID": {
  25568. "type": "string"
  25569. },
  25570. "message": {
  25571. "type": "string"
  25572. }
  25573. },
  25574. "required": [
  25575. "_tag",
  25576. "ptyID",
  25577. "message"
  25578. ],
  25579. "additionalProperties": false
  25580. },
  25581. "PtyTicket.ConnectToken": {
  25582. "type": "object",
  25583. "properties": {
  25584. "ticket": {
  25585. "type": "string"
  25586. },
  25587. "expires_in": {
  25588. "type": "integer",
  25589. "allOf": [
  25590. {
  25591. "exclusiveMinimum": 0
  25592. }
  25593. ]
  25594. }
  25595. },
  25596. "required": [
  25597. "ticket",
  25598. "expires_in"
  25599. ],
  25600. "additionalProperties": false
  25601. },
  25602. "ForbiddenError": {
  25603. "type": "object",
  25604. "properties": {
  25605. "_tag": {
  25606. "type": "string",
  25607. "enum": [
  25608. "ForbiddenError"
  25609. ]
  25610. },
  25611. "message": {
  25612. "type": "string"
  25613. }
  25614. },
  25615. "required": [
  25616. "_tag",
  25617. "message"
  25618. ],
  25619. "additionalProperties": false
  25620. },
  25621. "ShellNotFoundError": {
  25622. "type": "object",
  25623. "properties": {
  25624. "_tag": {
  25625. "type": "string",
  25626. "enum": [
  25627. "ShellNotFoundError"
  25628. ]
  25629. },
  25630. "id": {
  25631. "type": "string"
  25632. },
  25633. "message": {
  25634. "type": "string"
  25635. }
  25636. },
  25637. "required": [
  25638. "_tag",
  25639. "id",
  25640. "message"
  25641. ],
  25642. "additionalProperties": false
  25643. },
  25644. "QuestionV2.Request": {
  25645. "type": "object",
  25646. "properties": {
  25647. "id": {
  25648. "type": "string",
  25649. "allOf": [
  25650. {
  25651. "pattern": "^que"
  25652. }
  25653. ]
  25654. },
  25655. "sessionID": {
  25656. "type": "string",
  25657. "allOf": [
  25658. {
  25659. "pattern": "^ses"
  25660. }
  25661. ]
  25662. },
  25663. "questions": {
  25664. "type": "array",
  25665. "items": {
  25666. "$ref": "#/components/schemas/QuestionV2.Info"
  25667. },
  25668. "description": "Questions to ask"
  25669. },
  25670. "tool": {
  25671. "$ref": "#/components/schemas/QuestionV2.Tool"
  25672. }
  25673. },
  25674. "required": [
  25675. "id",
  25676. "sessionID",
  25677. "questions"
  25678. ],
  25679. "additionalProperties": false
  25680. },
  25681. "QuestionV2.Reply": {
  25682. "type": "object",
  25683. "properties": {
  25684. "answers": {
  25685. "type": "array",
  25686. "items": {
  25687. "$ref": "#/components/schemas/QuestionV2.Answer"
  25688. },
  25689. "description": "User answers in order of questions (each answer is an array of selected labels)"
  25690. }
  25691. },
  25692. "required": [
  25693. "answers"
  25694. ],
  25695. "additionalProperties": false
  25696. },
  25697. "QuestionNotFoundError": {
  25698. "type": "object",
  25699. "properties": {
  25700. "_tag": {
  25701. "type": "string",
  25702. "enum": [
  25703. "QuestionNotFoundError"
  25704. ]
  25705. },
  25706. "requestID": {
  25707. "type": "string"
  25708. },
  25709. "message": {
  25710. "type": "string"
  25711. }
  25712. },
  25713. "required": [
  25714. "_tag",
  25715. "requestID",
  25716. "message"
  25717. ],
  25718. "additionalProperties": false
  25719. },
  25720. "Reference.LocalSource": {
  25721. "type": "object",
  25722. "properties": {
  25723. "type": {
  25724. "type": "string",
  25725. "enum": [
  25726. "local"
  25727. ]
  25728. },
  25729. "path": {
  25730. "type": "string"
  25731. },
  25732. "description": {
  25733. "type": "string"
  25734. },
  25735. "hidden": {
  25736. "type": "boolean"
  25737. }
  25738. },
  25739. "required": [
  25740. "type",
  25741. "path"
  25742. ],
  25743. "additionalProperties": false
  25744. },
  25745. "Reference.GitSource": {
  25746. "type": "object",
  25747. "properties": {
  25748. "type": {
  25749. "type": "string",
  25750. "enum": [
  25751. "git"
  25752. ]
  25753. },
  25754. "repository": {
  25755. "type": "string"
  25756. },
  25757. "branch": {
  25758. "type": "string"
  25759. },
  25760. "description": {
  25761. "type": "string"
  25762. },
  25763. "hidden": {
  25764. "type": "boolean"
  25765. }
  25766. },
  25767. "required": [
  25768. "type",
  25769. "repository"
  25770. ],
  25771. "additionalProperties": false
  25772. },
  25773. "Reference.Source": {
  25774. "anyOf": [
  25775. {
  25776. "$ref": "#/components/schemas/Reference.LocalSource"
  25777. },
  25778. {
  25779. "$ref": "#/components/schemas/Reference.GitSource"
  25780. }
  25781. ]
  25782. },
  25783. "Reference.Info": {
  25784. "type": "object",
  25785. "properties": {
  25786. "name": {
  25787. "type": "string"
  25788. },
  25789. "path": {
  25790. "type": "string"
  25791. },
  25792. "description": {
  25793. "type": "string"
  25794. },
  25795. "hidden": {
  25796. "type": "boolean"
  25797. },
  25798. "source": {
  25799. "$ref": "#/components/schemas/Reference.Source"
  25800. }
  25801. },
  25802. "required": [
  25803. "name",
  25804. "path",
  25805. "source"
  25806. ],
  25807. "additionalProperties": false
  25808. },
  25809. "ProjectCopy.Copy": {
  25810. "type": "object",
  25811. "properties": {
  25812. "directory": {
  25813. "type": "string"
  25814. }
  25815. },
  25816. "required": [
  25817. "directory"
  25818. ],
  25819. "additionalProperties": false
  25820. },
  25821. "ProjectCopyError": {
  25822. "type": "object",
  25823. "properties": {
  25824. "name": {
  25825. "type": "string",
  25826. "enum": [
  25827. "ProjectCopyError"
  25828. ]
  25829. },
  25830. "data": {
  25831. "type": "object",
  25832. "properties": {
  25833. "message": {
  25834. "type": "string"
  25835. },
  25836. "forceRequired": {
  25837. "anyOf": [
  25838. {
  25839. "type": "boolean"
  25840. },
  25841. {
  25842. "type": "null"
  25843. }
  25844. ]
  25845. }
  25846. },
  25847. "required": [
  25848. "message"
  25849. ],
  25850. "additionalProperties": false
  25851. }
  25852. },
  25853. "required": [
  25854. "name",
  25855. "data"
  25856. ],
  25857. "additionalProperties": false
  25858. },
  25859. "Vcs.FileStatus": {
  25860. "type": "object",
  25861. "properties": {
  25862. "file": {
  25863. "type": "string"
  25864. },
  25865. "additions": {
  25866. "type": "integer",
  25867. "allOf": [
  25868. {
  25869. "minimum": 0
  25870. }
  25871. ]
  25872. },
  25873. "deletions": {
  25874. "type": "integer",
  25875. "allOf": [
  25876. {
  25877. "minimum": 0
  25878. }
  25879. ]
  25880. },
  25881. "status": {
  25882. "type": "string",
  25883. "enum": [
  25884. "added",
  25885. "deleted",
  25886. "modified"
  25887. ]
  25888. }
  25889. },
  25890. "required": [
  25891. "file",
  25892. "additions",
  25893. "deletions",
  25894. "status"
  25895. ],
  25896. "additionalProperties": false
  25897. },
  25898. "Vcs.Mode": {
  25899. "type": "string",
  25900. "enum": [
  25901. "working",
  25902. "branch"
  25903. ]
  25904. }
  25905. },
  25906. "securitySchemes": {}
  25907. },
  25908. "security": [],
  25909. "tags": [
  25910. {
  25911. "name": "health"
  25912. },
  25913. {
  25914. "name": "location"
  25915. },
  25916. {
  25917. "name": "agent"
  25918. },
  25919. {
  25920. "name": "plugin",
  25921. "description": "Experimental plugin routes."
  25922. },
  25923. {
  25924. "name": "session",
  25925. "description": "Experimental session routes."
  25926. },
  25927. {
  25928. "name": "session",
  25929. "description": "Experimental message routes."
  25930. },
  25931. {
  25932. "name": "model",
  25933. "description": "Experimental model routes."
  25934. },
  25935. {
  25936. "name": "generate",
  25937. "description": "Experimental one-shot generation routes."
  25938. },
  25939. {
  25940. "name": "provider",
  25941. "description": "Experimental provider routes."
  25942. },
  25943. {
  25944. "name": "integration",
  25945. "description": "Integration discovery and authentication routes."
  25946. },
  25947. {
  25948. "name": "mcp",
  25949. "description": "MCP server status routes."
  25950. },
  25951. {
  25952. "name": "credential"
  25953. },
  25954. {
  25955. "name": "project",
  25956. "description": "Location-scoped project routes."
  25957. },
  25958. {
  25959. "name": "form",
  25960. "description": "Session form routes."
  25961. },
  25962. {
  25963. "name": "permission",
  25964. "description": "Experimental permission routes."
  25965. },
  25966. {
  25967. "name": "filesystem",
  25968. "description": "Experimental location-scoped filesystem routes."
  25969. },
  25970. {
  25971. "name": "command",
  25972. "description": "Experimental command routes."
  25973. },
  25974. {
  25975. "name": "skill",
  25976. "description": "Experimental skill routes."
  25977. },
  25978. {
  25979. "name": "event",
  25980. "description": "Experimental event stream routes."
  25981. },
  25982. {
  25983. "name": "pty",
  25984. "description": "Experimental location-scoped PTY routes."
  25985. },
  25986. {
  25987. "name": "shell",
  25988. "description": "Experimental location-scoped shell command routes."
  25989. },
  25990. {
  25991. "name": "question",
  25992. "description": "Experimental session question routes."
  25993. },
  25994. {
  25995. "name": "reference",
  25996. "description": "Location-scoped project references."
  25997. },
  25998. {
  25999. "name": "projectCopy",
  26000. "description": "Project copy management routes."
  26001. },
  26002. {
  26003. "name": "vcs",
  26004. "description": "Location-scoped version control routes."
  26005. },
  26006. {
  26007. "name": "debug"
  26008. }
  26009. ]
  26010. }