openapi.json 726 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351
  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": "ServiceHealth",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "$ref": "#/components/schemas/ServiceHealth"
  24. }
  25. }
  26. }
  27. },
  28. "400": {
  29. "description": "InvalidRequestError",
  30. "content": {
  31. "application/json": {
  32. "schema": {
  33. "$ref": "#/components/schemas/InvalidRequestError"
  34. }
  35. }
  36. }
  37. },
  38. "401": {
  39. "description": "UnauthorizedError",
  40. "content": {
  41. "application/json": {
  42. "schema": {
  43. "$ref": "#/components/schemas/UnauthorizedError"
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "description": "Report the owning server process and its application status.",
  50. "summary": "Check server health"
  51. }
  52. },
  53. "/api/service/stop": {
  54. "post": {
  55. "tags": [
  56. "health"
  57. ],
  58. "operationId": "v2.health.stop",
  59. "parameters": [],
  60. "security": [],
  61. "responses": {
  62. "200": {
  63. "description": "ServiceStopResponse",
  64. "content": {
  65. "application/json": {
  66. "schema": {
  67. "$ref": "#/components/schemas/ServiceStopResponse"
  68. }
  69. }
  70. }
  71. },
  72. "400": {
  73. "description": "InvalidRequestError",
  74. "content": {
  75. "application/json": {
  76. "schema": {
  77. "$ref": "#/components/schemas/InvalidRequestError"
  78. }
  79. }
  80. }
  81. },
  82. "401": {
  83. "description": "UnauthorizedError",
  84. "content": {
  85. "application/json": {
  86. "schema": {
  87. "$ref": "#/components/schemas/UnauthorizedError"
  88. }
  89. }
  90. }
  91. }
  92. },
  93. "description": "Request graceful shutdown of one exact managed server instance.",
  94. "summary": "Stop the managed server",
  95. "requestBody": {
  96. "content": {
  97. "application/json": {
  98. "schema": {
  99. "$ref": "#/components/schemas/ServiceStopRequest"
  100. }
  101. }
  102. },
  103. "required": true
  104. }
  105. }
  106. },
  107. "/api/server": {
  108. "get": {
  109. "tags": [
  110. "server"
  111. ],
  112. "operationId": "v2.server.get",
  113. "parameters": [],
  114. "security": [],
  115. "responses": {
  116. "200": {
  117. "description": "Success",
  118. "content": {
  119. "application/json": {
  120. "schema": {
  121. "type": "object",
  122. "properties": {
  123. "urls": {
  124. "type": "array",
  125. "items": {
  126. "type": "string"
  127. }
  128. }
  129. },
  130. "required": [
  131. "urls"
  132. ],
  133. "additionalProperties": false
  134. }
  135. }
  136. }
  137. },
  138. "400": {
  139. "description": "InvalidRequestError",
  140. "content": {
  141. "application/json": {
  142. "schema": {
  143. "$ref": "#/components/schemas/InvalidRequestError"
  144. }
  145. }
  146. }
  147. },
  148. "401": {
  149. "description": "UnauthorizedError",
  150. "content": {
  151. "application/json": {
  152. "schema": {
  153. "$ref": "#/components/schemas/UnauthorizedError"
  154. }
  155. }
  156. }
  157. }
  158. },
  159. "description": "Return the URLs that can be used to connect to this server.",
  160. "summary": "Get server information"
  161. }
  162. },
  163. "/api/location": {
  164. "get": {
  165. "tags": [
  166. "location"
  167. ],
  168. "operationId": "v2.location.get",
  169. "parameters": [
  170. {
  171. "name": "location",
  172. "in": "query",
  173. "schema": {
  174. "anyOf": [
  175. {
  176. "type": "object",
  177. "properties": {
  178. "directory": {
  179. "anyOf": [
  180. {
  181. "type": "string"
  182. },
  183. {
  184. "type": "null"
  185. }
  186. ]
  187. },
  188. "workspace": {
  189. "anyOf": [
  190. {
  191. "type": "string"
  192. },
  193. {
  194. "type": "null"
  195. }
  196. ]
  197. }
  198. },
  199. "additionalProperties": false
  200. },
  201. {
  202. "type": "null"
  203. }
  204. ]
  205. },
  206. "required": false,
  207. "style": "deepObject",
  208. "explode": true
  209. }
  210. ],
  211. "security": [],
  212. "responses": {
  213. "200": {
  214. "description": "Location.Info",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "$ref": "#/components/schemas/Location.Info"
  219. }
  220. }
  221. }
  222. },
  223. "400": {
  224. "description": "InvalidRequestError",
  225. "content": {
  226. "application/json": {
  227. "schema": {
  228. "$ref": "#/components/schemas/InvalidRequestError"
  229. }
  230. }
  231. }
  232. },
  233. "401": {
  234. "description": "UnauthorizedError",
  235. "content": {
  236. "application/json": {
  237. "schema": {
  238. "$ref": "#/components/schemas/UnauthorizedError"
  239. }
  240. }
  241. }
  242. }
  243. },
  244. "description": "Resolve the requested location or the server default location.",
  245. "summary": "Get location"
  246. }
  247. },
  248. "/api/agent": {
  249. "get": {
  250. "tags": [
  251. "agent"
  252. ],
  253. "operationId": "v2.agent.list",
  254. "parameters": [
  255. {
  256. "name": "location",
  257. "in": "query",
  258. "schema": {
  259. "anyOf": [
  260. {
  261. "type": "object",
  262. "properties": {
  263. "directory": {
  264. "anyOf": [
  265. {
  266. "type": "string"
  267. },
  268. {
  269. "type": "null"
  270. }
  271. ]
  272. },
  273. "workspace": {
  274. "anyOf": [
  275. {
  276. "type": "string"
  277. },
  278. {
  279. "type": "null"
  280. }
  281. ]
  282. }
  283. },
  284. "additionalProperties": false
  285. },
  286. {
  287. "type": "null"
  288. }
  289. ]
  290. },
  291. "required": false,
  292. "style": "deepObject",
  293. "explode": true
  294. }
  295. ],
  296. "security": [],
  297. "responses": {
  298. "200": {
  299. "description": "Success",
  300. "content": {
  301. "application/json": {
  302. "schema": {
  303. "type": "object",
  304. "properties": {
  305. "location": {
  306. "$ref": "#/components/schemas/Location.Info"
  307. },
  308. "data": {
  309. "type": "array",
  310. "items": {
  311. "$ref": "#/components/schemas/Agent.Info"
  312. }
  313. }
  314. },
  315. "required": [
  316. "location",
  317. "data"
  318. ],
  319. "additionalProperties": false
  320. }
  321. }
  322. }
  323. },
  324. "400": {
  325. "description": "InvalidRequestError",
  326. "content": {
  327. "application/json": {
  328. "schema": {
  329. "$ref": "#/components/schemas/InvalidRequestError"
  330. }
  331. }
  332. }
  333. },
  334. "401": {
  335. "description": "UnauthorizedError",
  336. "content": {
  337. "application/json": {
  338. "schema": {
  339. "$ref": "#/components/schemas/UnauthorizedError"
  340. }
  341. }
  342. }
  343. }
  344. },
  345. "description": "Retrieve currently registered agents.",
  346. "summary": "List agents"
  347. }
  348. },
  349. "/api/agent/{agentID}": {
  350. "get": {
  351. "tags": [
  352. "agent"
  353. ],
  354. "operationId": "v2.agent.get",
  355. "parameters": [
  356. {
  357. "name": "agentID",
  358. "in": "path",
  359. "schema": {
  360. "type": "string"
  361. },
  362. "required": true
  363. },
  364. {
  365. "name": "location",
  366. "in": "query",
  367. "schema": {
  368. "anyOf": [
  369. {
  370. "type": "object",
  371. "properties": {
  372. "directory": {
  373. "anyOf": [
  374. {
  375. "type": "string"
  376. },
  377. {
  378. "type": "null"
  379. }
  380. ]
  381. },
  382. "workspace": {
  383. "anyOf": [
  384. {
  385. "type": "string"
  386. },
  387. {
  388. "type": "null"
  389. }
  390. ]
  391. }
  392. },
  393. "additionalProperties": false
  394. },
  395. {
  396. "type": "null"
  397. }
  398. ]
  399. },
  400. "required": false,
  401. "style": "deepObject",
  402. "explode": true
  403. }
  404. ],
  405. "security": [],
  406. "responses": {
  407. "200": {
  408. "description": "Success",
  409. "content": {
  410. "application/json": {
  411. "schema": {
  412. "type": "object",
  413. "properties": {
  414. "location": {
  415. "$ref": "#/components/schemas/Location.Info"
  416. },
  417. "data": {
  418. "$ref": "#/components/schemas/Agent.Info"
  419. }
  420. },
  421. "required": [
  422. "location",
  423. "data"
  424. ],
  425. "additionalProperties": false
  426. }
  427. }
  428. }
  429. },
  430. "400": {
  431. "description": "InvalidRequestError",
  432. "content": {
  433. "application/json": {
  434. "schema": {
  435. "$ref": "#/components/schemas/InvalidRequestError"
  436. }
  437. }
  438. }
  439. },
  440. "401": {
  441. "description": "UnauthorizedError",
  442. "content": {
  443. "application/json": {
  444. "schema": {
  445. "$ref": "#/components/schemas/UnauthorizedError"
  446. }
  447. }
  448. }
  449. },
  450. "404": {
  451. "description": "AgentNotFoundError",
  452. "content": {
  453. "application/json": {
  454. "schema": {
  455. "$ref": "#/components/schemas/AgentNotFoundError"
  456. }
  457. }
  458. }
  459. }
  460. },
  461. "description": "Retrieve a single currently registered agent.",
  462. "summary": "Get agent"
  463. }
  464. },
  465. "/api/plugin": {
  466. "get": {
  467. "tags": [
  468. "plugin"
  469. ],
  470. "operationId": "v2.plugin.list",
  471. "parameters": [
  472. {
  473. "name": "location",
  474. "in": "query",
  475. "schema": {
  476. "anyOf": [
  477. {
  478. "type": "object",
  479. "properties": {
  480. "directory": {
  481. "anyOf": [
  482. {
  483. "type": "string"
  484. },
  485. {
  486. "type": "null"
  487. }
  488. ]
  489. },
  490. "workspace": {
  491. "anyOf": [
  492. {
  493. "type": "string"
  494. },
  495. {
  496. "type": "null"
  497. }
  498. ]
  499. }
  500. },
  501. "additionalProperties": false
  502. },
  503. {
  504. "type": "null"
  505. }
  506. ]
  507. },
  508. "required": false,
  509. "style": "deepObject",
  510. "explode": true
  511. }
  512. ],
  513. "security": [],
  514. "responses": {
  515. "200": {
  516. "description": "Success",
  517. "content": {
  518. "application/json": {
  519. "schema": {
  520. "type": "object",
  521. "properties": {
  522. "location": {
  523. "$ref": "#/components/schemas/Location.Info"
  524. },
  525. "data": {
  526. "type": "array",
  527. "items": {
  528. "$ref": "#/components/schemas/Plugin.Info"
  529. }
  530. }
  531. },
  532. "required": [
  533. "location",
  534. "data"
  535. ],
  536. "additionalProperties": false
  537. }
  538. }
  539. }
  540. },
  541. "400": {
  542. "description": "InvalidRequestError",
  543. "content": {
  544. "application/json": {
  545. "schema": {
  546. "$ref": "#/components/schemas/InvalidRequestError"
  547. }
  548. }
  549. }
  550. },
  551. "401": {
  552. "description": "UnauthorizedError",
  553. "content": {
  554. "application/json": {
  555. "schema": {
  556. "$ref": "#/components/schemas/UnauthorizedError"
  557. }
  558. }
  559. }
  560. }
  561. },
  562. "description": "Retrieve currently loaded plugins.",
  563. "summary": "List plugins"
  564. }
  565. },
  566. "/api/session": {
  567. "get": {
  568. "tags": [
  569. "session"
  570. ],
  571. "operationId": "v2.session.list",
  572. "parameters": [
  573. {
  574. "name": "workspace",
  575. "in": "query",
  576. "schema": {
  577. "anyOf": [
  578. {
  579. "type": "string",
  580. "allOf": [
  581. {
  582. "pattern": "^wrk"
  583. }
  584. ]
  585. },
  586. {
  587. "type": "null"
  588. }
  589. ]
  590. },
  591. "required": false
  592. },
  593. {
  594. "name": "limit",
  595. "in": "query",
  596. "schema": {
  597. "anyOf": [
  598. {
  599. "type": "string"
  600. },
  601. {
  602. "type": "null"
  603. }
  604. ],
  605. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  606. },
  607. "required": false
  608. },
  609. {
  610. "name": "order",
  611. "in": "query",
  612. "schema": {
  613. "anyOf": [
  614. {
  615. "type": "string",
  616. "enum": [
  617. "asc",
  618. "desc"
  619. ]
  620. },
  621. {
  622. "type": "null"
  623. }
  624. ],
  625. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  626. },
  627. "required": false
  628. },
  629. {
  630. "name": "search",
  631. "in": "query",
  632. "schema": {
  633. "anyOf": [
  634. {
  635. "type": "string"
  636. },
  637. {
  638. "type": "null"
  639. }
  640. ]
  641. },
  642. "required": false
  643. },
  644. {
  645. "name": "parentID",
  646. "in": "query",
  647. "schema": {
  648. "anyOf": [
  649. {
  650. "anyOf": [
  651. {
  652. "type": "string",
  653. "allOf": [
  654. {
  655. "pattern": "^ses"
  656. }
  657. ]
  658. },
  659. {
  660. "type": "string",
  661. "enum": [
  662. "null"
  663. ]
  664. }
  665. ],
  666. "description": "Filter by parent session. Use null to return only root sessions."
  667. },
  668. {
  669. "type": "null"
  670. }
  671. ]
  672. },
  673. "required": false
  674. },
  675. {
  676. "name": "directory",
  677. "in": "query",
  678. "schema": {
  679. "anyOf": [
  680. {
  681. "type": "string"
  682. },
  683. {
  684. "type": "null"
  685. }
  686. ]
  687. },
  688. "required": false
  689. },
  690. {
  691. "name": "project",
  692. "in": "query",
  693. "schema": {
  694. "anyOf": [
  695. {
  696. "type": "string"
  697. },
  698. {
  699. "type": "null"
  700. }
  701. ]
  702. },
  703. "required": false
  704. },
  705. {
  706. "name": "subpath",
  707. "in": "query",
  708. "schema": {
  709. "anyOf": [
  710. {
  711. "type": "string"
  712. },
  713. {
  714. "type": "null"
  715. }
  716. ]
  717. },
  718. "required": false
  719. },
  720. {
  721. "name": "cursor",
  722. "in": "query",
  723. "schema": {
  724. "anyOf": [
  725. {
  726. "type": "string",
  727. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  728. },
  729. {
  730. "type": "null"
  731. }
  732. ]
  733. },
  734. "required": false
  735. }
  736. ],
  737. "security": [],
  738. "responses": {
  739. "200": {
  740. "description": "SessionsResponse",
  741. "content": {
  742. "application/json": {
  743. "schema": {
  744. "$ref": "#/components/schemas/SessionsResponse"
  745. }
  746. }
  747. }
  748. },
  749. "400": {
  750. "description": "InvalidCursorError | InvalidRequestError",
  751. "content": {
  752. "application/json": {
  753. "schema": {
  754. "anyOf": [
  755. {
  756. "$ref": "#/components/schemas/InvalidCursorError"
  757. },
  758. {
  759. "$ref": "#/components/schemas/InvalidRequestError1"
  760. },
  761. {
  762. "$ref": "#/components/schemas/InvalidRequestError"
  763. }
  764. ]
  765. }
  766. }
  767. }
  768. },
  769. "401": {
  770. "description": "UnauthorizedError",
  771. "content": {
  772. "application/json": {
  773. "schema": {
  774. "$ref": "#/components/schemas/UnauthorizedError"
  775. }
  776. }
  777. }
  778. }
  779. },
  780. "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.",
  781. "summary": "List sessions"
  782. },
  783. "post": {
  784. "tags": [
  785. "session"
  786. ],
  787. "operationId": "v2.session.create",
  788. "parameters": [],
  789. "security": [],
  790. "responses": {
  791. "200": {
  792. "description": "Success",
  793. "content": {
  794. "application/json": {
  795. "schema": {
  796. "type": "object",
  797. "properties": {
  798. "data": {
  799. "$ref": "#/components/schemas/Session.Info"
  800. }
  801. },
  802. "required": [
  803. "data"
  804. ],
  805. "additionalProperties": false
  806. }
  807. }
  808. }
  809. },
  810. "400": {
  811. "description": "InvalidRequestError",
  812. "content": {
  813. "application/json": {
  814. "schema": {
  815. "$ref": "#/components/schemas/InvalidRequestError"
  816. }
  817. }
  818. }
  819. },
  820. "401": {
  821. "description": "UnauthorizedError",
  822. "content": {
  823. "application/json": {
  824. "schema": {
  825. "$ref": "#/components/schemas/UnauthorizedError"
  826. }
  827. }
  828. }
  829. }
  830. },
  831. "description": "Create a session at the requested location.",
  832. "summary": "Create session",
  833. "requestBody": {
  834. "content": {
  835. "application/json": {
  836. "schema": {
  837. "type": "object",
  838. "properties": {
  839. "id": {
  840. "anyOf": [
  841. {
  842. "type": "string",
  843. "allOf": [
  844. {
  845. "pattern": "^ses"
  846. }
  847. ]
  848. },
  849. {
  850. "type": "null"
  851. }
  852. ]
  853. },
  854. "agent": {
  855. "anyOf": [
  856. {
  857. "type": "string"
  858. },
  859. {
  860. "type": "null"
  861. }
  862. ]
  863. },
  864. "model": {
  865. "anyOf": [
  866. {
  867. "$ref": "#/components/schemas/Model.Ref"
  868. },
  869. {
  870. "type": "null"
  871. }
  872. ]
  873. },
  874. "location": {
  875. "anyOf": [
  876. {
  877. "$ref": "#/components/schemas/Location.Ref"
  878. },
  879. {
  880. "type": "null"
  881. }
  882. ]
  883. }
  884. },
  885. "additionalProperties": false
  886. }
  887. }
  888. },
  889. "required": true
  890. }
  891. }
  892. },
  893. "/api/session/active": {
  894. "get": {
  895. "tags": [
  896. "session"
  897. ],
  898. "operationId": "v2.session.active",
  899. "parameters": [],
  900. "security": [],
  901. "responses": {
  902. "200": {
  903. "description": "Success",
  904. "content": {
  905. "application/json": {
  906. "schema": {
  907. "type": "object",
  908. "properties": {
  909. "data": {
  910. "type": "object",
  911. "patternProperties": {
  912. "^ses": {
  913. "$ref": "#/components/schemas/SessionActive"
  914. }
  915. }
  916. }
  917. },
  918. "required": [
  919. "data"
  920. ],
  921. "additionalProperties": false
  922. }
  923. }
  924. }
  925. },
  926. "400": {
  927. "description": "InvalidRequestError",
  928. "content": {
  929. "application/json": {
  930. "schema": {
  931. "$ref": "#/components/schemas/InvalidRequestError"
  932. }
  933. }
  934. }
  935. },
  936. "401": {
  937. "description": "UnauthorizedError",
  938. "content": {
  939. "application/json": {
  940. "schema": {
  941. "$ref": "#/components/schemas/UnauthorizedError"
  942. }
  943. }
  944. }
  945. }
  946. },
  947. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  948. "summary": "List active sessions"
  949. }
  950. },
  951. "/api/session/{sessionID}": {
  952. "get": {
  953. "tags": [
  954. "session"
  955. ],
  956. "operationId": "v2.session.get",
  957. "parameters": [
  958. {
  959. "name": "sessionID",
  960. "in": "path",
  961. "schema": {
  962. "type": "string",
  963. "allOf": [
  964. {
  965. "pattern": "^ses"
  966. }
  967. ]
  968. },
  969. "required": true
  970. }
  971. ],
  972. "security": [],
  973. "responses": {
  974. "200": {
  975. "description": "Success",
  976. "content": {
  977. "application/json": {
  978. "schema": {
  979. "type": "object",
  980. "properties": {
  981. "data": {
  982. "$ref": "#/components/schemas/Session.Info"
  983. }
  984. },
  985. "required": [
  986. "data"
  987. ],
  988. "additionalProperties": false
  989. }
  990. }
  991. }
  992. },
  993. "400": {
  994. "description": "InvalidRequestError",
  995. "content": {
  996. "application/json": {
  997. "schema": {
  998. "$ref": "#/components/schemas/InvalidRequestError"
  999. }
  1000. }
  1001. }
  1002. },
  1003. "401": {
  1004. "description": "UnauthorizedError",
  1005. "content": {
  1006. "application/json": {
  1007. "schema": {
  1008. "$ref": "#/components/schemas/UnauthorizedError"
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "404": {
  1014. "description": "SessionNotFoundError",
  1015. "content": {
  1016. "application/json": {
  1017. "schema": {
  1018. "anyOf": [
  1019. {
  1020. "$ref": "#/components/schemas/SessionNotFoundError"
  1021. },
  1022. {
  1023. "$ref": "#/components/schemas/SessionNotFoundError"
  1024. }
  1025. ]
  1026. }
  1027. }
  1028. }
  1029. }
  1030. },
  1031. "description": "Retrieve a session by ID.",
  1032. "summary": "Get session"
  1033. },
  1034. "delete": {
  1035. "tags": [
  1036. "session"
  1037. ],
  1038. "operationId": "v2.session.remove",
  1039. "parameters": [
  1040. {
  1041. "name": "sessionID",
  1042. "in": "path",
  1043. "schema": {
  1044. "type": "string",
  1045. "allOf": [
  1046. {
  1047. "pattern": "^ses"
  1048. }
  1049. ]
  1050. },
  1051. "required": true
  1052. }
  1053. ],
  1054. "security": [],
  1055. "responses": {
  1056. "204": {
  1057. "description": "<No Content>"
  1058. },
  1059. "400": {
  1060. "description": "InvalidRequestError",
  1061. "content": {
  1062. "application/json": {
  1063. "schema": {
  1064. "$ref": "#/components/schemas/InvalidRequestError"
  1065. }
  1066. }
  1067. }
  1068. },
  1069. "401": {
  1070. "description": "UnauthorizedError",
  1071. "content": {
  1072. "application/json": {
  1073. "schema": {
  1074. "$ref": "#/components/schemas/UnauthorizedError"
  1075. }
  1076. }
  1077. }
  1078. },
  1079. "404": {
  1080. "description": "SessionNotFoundError",
  1081. "content": {
  1082. "application/json": {
  1083. "schema": {
  1084. "anyOf": [
  1085. {
  1086. "$ref": "#/components/schemas/SessionNotFoundError"
  1087. },
  1088. {
  1089. "$ref": "#/components/schemas/SessionNotFoundError"
  1090. }
  1091. ]
  1092. }
  1093. }
  1094. }
  1095. }
  1096. },
  1097. "description": "Delete a session and its child sessions.",
  1098. "summary": "Delete session"
  1099. }
  1100. },
  1101. "/api/session/{sessionID}/fork": {
  1102. "post": {
  1103. "tags": [
  1104. "session"
  1105. ],
  1106. "operationId": "v2.session.fork",
  1107. "parameters": [
  1108. {
  1109. "name": "sessionID",
  1110. "in": "path",
  1111. "schema": {
  1112. "type": "string",
  1113. "allOf": [
  1114. {
  1115. "pattern": "^ses"
  1116. }
  1117. ]
  1118. },
  1119. "required": true
  1120. }
  1121. ],
  1122. "security": [],
  1123. "responses": {
  1124. "200": {
  1125. "description": "Success",
  1126. "content": {
  1127. "application/json": {
  1128. "schema": {
  1129. "type": "object",
  1130. "properties": {
  1131. "data": {
  1132. "$ref": "#/components/schemas/Session.Info"
  1133. }
  1134. },
  1135. "required": [
  1136. "data"
  1137. ],
  1138. "additionalProperties": false
  1139. }
  1140. }
  1141. }
  1142. },
  1143. "400": {
  1144. "description": "InvalidRequestError",
  1145. "content": {
  1146. "application/json": {
  1147. "schema": {
  1148. "anyOf": [
  1149. {
  1150. "$ref": "#/components/schemas/InvalidRequestError1"
  1151. },
  1152. {
  1153. "$ref": "#/components/schemas/InvalidRequestError"
  1154. }
  1155. ]
  1156. }
  1157. }
  1158. }
  1159. },
  1160. "401": {
  1161. "description": "UnauthorizedError",
  1162. "content": {
  1163. "application/json": {
  1164. "schema": {
  1165. "$ref": "#/components/schemas/UnauthorizedError"
  1166. }
  1167. }
  1168. }
  1169. },
  1170. "404": {
  1171. "description": "SessionNotFoundError | MessageNotFoundError",
  1172. "content": {
  1173. "application/json": {
  1174. "schema": {
  1175. "anyOf": [
  1176. {
  1177. "$ref": "#/components/schemas/MessageNotFoundError"
  1178. },
  1179. {
  1180. "$ref": "#/components/schemas/SessionNotFoundError"
  1181. },
  1182. {
  1183. "$ref": "#/components/schemas/SessionNotFoundError"
  1184. }
  1185. ]
  1186. }
  1187. }
  1188. }
  1189. }
  1190. },
  1191. "description": "Create a child session by copying projected history through or before a message boundary.",
  1192. "summary": "Fork session",
  1193. "requestBody": {
  1194. "content": {
  1195. "application/json": {
  1196. "schema": {
  1197. "type": "object",
  1198. "properties": {
  1199. "boundary": {
  1200. "$ref": "#/components/schemas/Session.ForkRequestBoundary"
  1201. }
  1202. },
  1203. "required": [
  1204. "boundary"
  1205. ],
  1206. "additionalProperties": false
  1207. }
  1208. }
  1209. },
  1210. "required": true
  1211. }
  1212. }
  1213. },
  1214. "/api/session/{sessionID}/agent": {
  1215. "post": {
  1216. "tags": [
  1217. "session"
  1218. ],
  1219. "operationId": "v2.session.switchAgent",
  1220. "parameters": [
  1221. {
  1222. "name": "sessionID",
  1223. "in": "path",
  1224. "schema": {
  1225. "type": "string",
  1226. "allOf": [
  1227. {
  1228. "pattern": "^ses"
  1229. }
  1230. ]
  1231. },
  1232. "required": true
  1233. }
  1234. ],
  1235. "security": [],
  1236. "responses": {
  1237. "204": {
  1238. "description": "<No Content>"
  1239. },
  1240. "400": {
  1241. "description": "InvalidRequestError",
  1242. "content": {
  1243. "application/json": {
  1244. "schema": {
  1245. "$ref": "#/components/schemas/InvalidRequestError"
  1246. }
  1247. }
  1248. }
  1249. },
  1250. "401": {
  1251. "description": "UnauthorizedError",
  1252. "content": {
  1253. "application/json": {
  1254. "schema": {
  1255. "$ref": "#/components/schemas/UnauthorizedError"
  1256. }
  1257. }
  1258. }
  1259. },
  1260. "404": {
  1261. "description": "SessionNotFoundError",
  1262. "content": {
  1263. "application/json": {
  1264. "schema": {
  1265. "anyOf": [
  1266. {
  1267. "$ref": "#/components/schemas/SessionNotFoundError"
  1268. },
  1269. {
  1270. "$ref": "#/components/schemas/SessionNotFoundError"
  1271. }
  1272. ]
  1273. }
  1274. }
  1275. }
  1276. }
  1277. },
  1278. "description": "Switch the agent used by subsequent provider turns.",
  1279. "summary": "Switch session agent",
  1280. "requestBody": {
  1281. "content": {
  1282. "application/json": {
  1283. "schema": {
  1284. "type": "object",
  1285. "properties": {
  1286. "agent": {
  1287. "type": "string"
  1288. }
  1289. },
  1290. "required": [
  1291. "agent"
  1292. ],
  1293. "additionalProperties": false
  1294. }
  1295. }
  1296. },
  1297. "required": true
  1298. }
  1299. }
  1300. },
  1301. "/api/session/{sessionID}/model": {
  1302. "post": {
  1303. "tags": [
  1304. "session"
  1305. ],
  1306. "operationId": "v2.session.switchModel",
  1307. "parameters": [
  1308. {
  1309. "name": "sessionID",
  1310. "in": "path",
  1311. "schema": {
  1312. "type": "string",
  1313. "allOf": [
  1314. {
  1315. "pattern": "^ses"
  1316. }
  1317. ]
  1318. },
  1319. "required": true
  1320. }
  1321. ],
  1322. "security": [],
  1323. "responses": {
  1324. "204": {
  1325. "description": "<No Content>"
  1326. },
  1327. "400": {
  1328. "description": "InvalidRequestError",
  1329. "content": {
  1330. "application/json": {
  1331. "schema": {
  1332. "$ref": "#/components/schemas/InvalidRequestError"
  1333. }
  1334. }
  1335. }
  1336. },
  1337. "401": {
  1338. "description": "UnauthorizedError",
  1339. "content": {
  1340. "application/json": {
  1341. "schema": {
  1342. "$ref": "#/components/schemas/UnauthorizedError"
  1343. }
  1344. }
  1345. }
  1346. },
  1347. "404": {
  1348. "description": "SessionNotFoundError",
  1349. "content": {
  1350. "application/json": {
  1351. "schema": {
  1352. "anyOf": [
  1353. {
  1354. "$ref": "#/components/schemas/SessionNotFoundError"
  1355. },
  1356. {
  1357. "$ref": "#/components/schemas/SessionNotFoundError"
  1358. }
  1359. ]
  1360. }
  1361. }
  1362. }
  1363. }
  1364. },
  1365. "description": "Switch the model used by subsequent provider turns.",
  1366. "summary": "Switch session model",
  1367. "requestBody": {
  1368. "content": {
  1369. "application/json": {
  1370. "schema": {
  1371. "type": "object",
  1372. "properties": {
  1373. "model": {
  1374. "$ref": "#/components/schemas/Model.Ref"
  1375. }
  1376. },
  1377. "required": [
  1378. "model"
  1379. ],
  1380. "additionalProperties": false
  1381. }
  1382. }
  1383. },
  1384. "required": true
  1385. }
  1386. }
  1387. },
  1388. "/api/session/{sessionID}/rename": {
  1389. "post": {
  1390. "tags": [
  1391. "session"
  1392. ],
  1393. "operationId": "v2.session.rename",
  1394. "parameters": [
  1395. {
  1396. "name": "sessionID",
  1397. "in": "path",
  1398. "schema": {
  1399. "type": "string",
  1400. "allOf": [
  1401. {
  1402. "pattern": "^ses"
  1403. }
  1404. ]
  1405. },
  1406. "required": true
  1407. }
  1408. ],
  1409. "security": [],
  1410. "responses": {
  1411. "204": {
  1412. "description": "<No Content>"
  1413. },
  1414. "400": {
  1415. "description": "InvalidRequestError",
  1416. "content": {
  1417. "application/json": {
  1418. "schema": {
  1419. "$ref": "#/components/schemas/InvalidRequestError"
  1420. }
  1421. }
  1422. }
  1423. },
  1424. "401": {
  1425. "description": "UnauthorizedError",
  1426. "content": {
  1427. "application/json": {
  1428. "schema": {
  1429. "$ref": "#/components/schemas/UnauthorizedError"
  1430. }
  1431. }
  1432. }
  1433. },
  1434. "404": {
  1435. "description": "SessionNotFoundError",
  1436. "content": {
  1437. "application/json": {
  1438. "schema": {
  1439. "anyOf": [
  1440. {
  1441. "$ref": "#/components/schemas/SessionNotFoundError"
  1442. },
  1443. {
  1444. "$ref": "#/components/schemas/SessionNotFoundError"
  1445. }
  1446. ]
  1447. }
  1448. }
  1449. }
  1450. }
  1451. },
  1452. "description": "Update the session title.",
  1453. "summary": "Rename session",
  1454. "requestBody": {
  1455. "content": {
  1456. "application/json": {
  1457. "schema": {
  1458. "type": "object",
  1459. "properties": {
  1460. "title": {
  1461. "type": "string"
  1462. }
  1463. },
  1464. "required": [
  1465. "title"
  1466. ],
  1467. "additionalProperties": false
  1468. }
  1469. }
  1470. },
  1471. "required": true
  1472. }
  1473. }
  1474. },
  1475. "/api/session/{sessionID}/move": {
  1476. "post": {
  1477. "tags": [
  1478. "session"
  1479. ],
  1480. "operationId": "v2.session.move",
  1481. "parameters": [
  1482. {
  1483. "name": "sessionID",
  1484. "in": "path",
  1485. "schema": {
  1486. "type": "string",
  1487. "allOf": [
  1488. {
  1489. "pattern": "^ses"
  1490. }
  1491. ]
  1492. },
  1493. "required": true
  1494. }
  1495. ],
  1496. "security": [],
  1497. "responses": {
  1498. "204": {
  1499. "description": "<No Content>"
  1500. },
  1501. "400": {
  1502. "description": "InvalidRequestError",
  1503. "content": {
  1504. "application/json": {
  1505. "schema": {
  1506. "anyOf": [
  1507. {
  1508. "$ref": "#/components/schemas/InvalidRequestError1"
  1509. },
  1510. {
  1511. "$ref": "#/components/schemas/InvalidRequestError"
  1512. }
  1513. ]
  1514. }
  1515. }
  1516. }
  1517. },
  1518. "401": {
  1519. "description": "UnauthorizedError",
  1520. "content": {
  1521. "application/json": {
  1522. "schema": {
  1523. "$ref": "#/components/schemas/UnauthorizedError"
  1524. }
  1525. }
  1526. }
  1527. },
  1528. "404": {
  1529. "description": "SessionNotFoundError",
  1530. "content": {
  1531. "application/json": {
  1532. "schema": {
  1533. "anyOf": [
  1534. {
  1535. "$ref": "#/components/schemas/SessionNotFoundError"
  1536. },
  1537. {
  1538. "$ref": "#/components/schemas/SessionNotFoundError"
  1539. }
  1540. ]
  1541. }
  1542. }
  1543. }
  1544. }
  1545. },
  1546. "description": "Move a session to another project directory, optionally transferring local changes.",
  1547. "summary": "Move session",
  1548. "requestBody": {
  1549. "content": {
  1550. "application/json": {
  1551. "schema": {
  1552. "$ref": "#/components/schemas/Location.Ref"
  1553. }
  1554. }
  1555. },
  1556. "required": true
  1557. }
  1558. }
  1559. },
  1560. "/api/session/{sessionID}/prompt": {
  1561. "post": {
  1562. "tags": [
  1563. "session"
  1564. ],
  1565. "operationId": "v2.session.prompt",
  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. "200": {
  1584. "description": "Success",
  1585. "content": {
  1586. "application/json": {
  1587. "schema": {
  1588. "type": "object",
  1589. "properties": {
  1590. "data": {
  1591. "$ref": "#/components/schemas/SessionPending.User"
  1592. }
  1593. },
  1594. "required": [
  1595. "data"
  1596. ],
  1597. "additionalProperties": false
  1598. }
  1599. }
  1600. }
  1601. },
  1602. "400": {
  1603. "description": "InvalidRequestError",
  1604. "content": {
  1605. "application/json": {
  1606. "schema": {
  1607. "anyOf": [
  1608. {
  1609. "$ref": "#/components/schemas/InvalidRequestError1"
  1610. },
  1611. {
  1612. "$ref": "#/components/schemas/InvalidRequestError"
  1613. }
  1614. ]
  1615. }
  1616. }
  1617. }
  1618. },
  1619. "401": {
  1620. "description": "UnauthorizedError",
  1621. "content": {
  1622. "application/json": {
  1623. "schema": {
  1624. "$ref": "#/components/schemas/UnauthorizedError"
  1625. }
  1626. }
  1627. }
  1628. },
  1629. "404": {
  1630. "description": "SessionNotFoundError",
  1631. "content": {
  1632. "application/json": {
  1633. "schema": {
  1634. "anyOf": [
  1635. {
  1636. "$ref": "#/components/schemas/SessionNotFoundError"
  1637. },
  1638. {
  1639. "$ref": "#/components/schemas/SessionNotFoundError"
  1640. }
  1641. ]
  1642. }
  1643. }
  1644. }
  1645. },
  1646. "409": {
  1647. "description": "ConflictError",
  1648. "content": {
  1649. "application/json": {
  1650. "schema": {
  1651. "$ref": "#/components/schemas/ConflictError"
  1652. }
  1653. }
  1654. }
  1655. }
  1656. },
  1657. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1658. "summary": "Send message",
  1659. "requestBody": {
  1660. "content": {
  1661. "application/json": {
  1662. "schema": {
  1663. "type": "object",
  1664. "properties": {
  1665. "id": {
  1666. "anyOf": [
  1667. {
  1668. "type": "string",
  1669. "allOf": [
  1670. {
  1671. "pattern": "^msg_"
  1672. }
  1673. ]
  1674. },
  1675. {
  1676. "type": "null"
  1677. }
  1678. ]
  1679. },
  1680. "text": {
  1681. "type": "string"
  1682. },
  1683. "files": {
  1684. "type": "array",
  1685. "items": {
  1686. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1687. }
  1688. },
  1689. "agents": {
  1690. "type": "array",
  1691. "items": {
  1692. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1693. }
  1694. },
  1695. "metadata": {
  1696. "type": "object"
  1697. },
  1698. "delivery": {
  1699. "anyOf": [
  1700. {
  1701. "type": "string",
  1702. "enum": [
  1703. "steer",
  1704. "queue"
  1705. ]
  1706. },
  1707. {
  1708. "type": "null"
  1709. }
  1710. ]
  1711. },
  1712. "resume": {
  1713. "anyOf": [
  1714. {
  1715. "type": "boolean"
  1716. },
  1717. {
  1718. "type": "null"
  1719. }
  1720. ]
  1721. }
  1722. },
  1723. "required": [
  1724. "text"
  1725. ],
  1726. "additionalProperties": false
  1727. }
  1728. }
  1729. },
  1730. "required": true
  1731. }
  1732. }
  1733. },
  1734. "/api/session/{sessionID}/command": {
  1735. "post": {
  1736. "tags": [
  1737. "session"
  1738. ],
  1739. "operationId": "v2.session.command",
  1740. "parameters": [
  1741. {
  1742. "name": "sessionID",
  1743. "in": "path",
  1744. "schema": {
  1745. "type": "string",
  1746. "allOf": [
  1747. {
  1748. "pattern": "^ses"
  1749. }
  1750. ]
  1751. },
  1752. "required": true
  1753. }
  1754. ],
  1755. "security": [],
  1756. "responses": {
  1757. "200": {
  1758. "description": "Success",
  1759. "content": {
  1760. "application/json": {
  1761. "schema": {
  1762. "type": "object",
  1763. "properties": {
  1764. "data": {
  1765. "$ref": "#/components/schemas/SessionPending.User"
  1766. }
  1767. },
  1768. "required": [
  1769. "data"
  1770. ],
  1771. "additionalProperties": false
  1772. }
  1773. }
  1774. }
  1775. },
  1776. "400": {
  1777. "description": "InvalidRequestError",
  1778. "content": {
  1779. "application/json": {
  1780. "schema": {
  1781. "anyOf": [
  1782. {
  1783. "$ref": "#/components/schemas/InvalidRequestError1"
  1784. },
  1785. {
  1786. "$ref": "#/components/schemas/InvalidRequestError"
  1787. }
  1788. ]
  1789. }
  1790. }
  1791. }
  1792. },
  1793. "401": {
  1794. "description": "UnauthorizedError",
  1795. "content": {
  1796. "application/json": {
  1797. "schema": {
  1798. "$ref": "#/components/schemas/UnauthorizedError"
  1799. }
  1800. }
  1801. }
  1802. },
  1803. "404": {
  1804. "description": "SessionNotFoundError | CommandNotFoundError",
  1805. "content": {
  1806. "application/json": {
  1807. "schema": {
  1808. "anyOf": [
  1809. {
  1810. "$ref": "#/components/schemas/CommandNotFoundError"
  1811. },
  1812. {
  1813. "$ref": "#/components/schemas/SessionNotFoundError"
  1814. },
  1815. {
  1816. "$ref": "#/components/schemas/SessionNotFoundError"
  1817. }
  1818. ]
  1819. }
  1820. }
  1821. }
  1822. },
  1823. "409": {
  1824. "description": "ConflictError",
  1825. "content": {
  1826. "application/json": {
  1827. "schema": {
  1828. "$ref": "#/components/schemas/ConflictError"
  1829. }
  1830. }
  1831. }
  1832. },
  1833. "500": {
  1834. "description": "CommandEvaluationError",
  1835. "content": {
  1836. "application/json": {
  1837. "schema": {
  1838. "$ref": "#/components/schemas/CommandEvaluationError"
  1839. }
  1840. }
  1841. }
  1842. }
  1843. },
  1844. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1845. "summary": "Run command",
  1846. "requestBody": {
  1847. "content": {
  1848. "application/json": {
  1849. "schema": {
  1850. "type": "object",
  1851. "properties": {
  1852. "id": {
  1853. "anyOf": [
  1854. {
  1855. "type": "string",
  1856. "allOf": [
  1857. {
  1858. "pattern": "^msg_"
  1859. }
  1860. ]
  1861. },
  1862. {
  1863. "type": "null"
  1864. }
  1865. ]
  1866. },
  1867. "command": {
  1868. "type": "string"
  1869. },
  1870. "arguments": {
  1871. "anyOf": [
  1872. {
  1873. "type": "string"
  1874. },
  1875. {
  1876. "type": "null"
  1877. }
  1878. ]
  1879. },
  1880. "agent": {
  1881. "anyOf": [
  1882. {
  1883. "type": "string"
  1884. },
  1885. {
  1886. "type": "null"
  1887. }
  1888. ]
  1889. },
  1890. "model": {
  1891. "anyOf": [
  1892. {
  1893. "$ref": "#/components/schemas/Model.Ref"
  1894. },
  1895. {
  1896. "type": "null"
  1897. }
  1898. ]
  1899. },
  1900. "files": {
  1901. "type": "array",
  1902. "items": {
  1903. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1904. }
  1905. },
  1906. "agents": {
  1907. "type": "array",
  1908. "items": {
  1909. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1910. }
  1911. },
  1912. "delivery": {
  1913. "anyOf": [
  1914. {
  1915. "type": "string",
  1916. "enum": [
  1917. "steer",
  1918. "queue"
  1919. ]
  1920. },
  1921. {
  1922. "type": "null"
  1923. }
  1924. ]
  1925. },
  1926. "resume": {
  1927. "anyOf": [
  1928. {
  1929. "type": "boolean"
  1930. },
  1931. {
  1932. "type": "null"
  1933. }
  1934. ]
  1935. }
  1936. },
  1937. "required": [
  1938. "command"
  1939. ],
  1940. "additionalProperties": false
  1941. }
  1942. }
  1943. },
  1944. "required": true
  1945. }
  1946. }
  1947. },
  1948. "/api/session/{sessionID}/skill": {
  1949. "post": {
  1950. "tags": [
  1951. "session"
  1952. ],
  1953. "operationId": "v2.session.skill",
  1954. "parameters": [
  1955. {
  1956. "name": "sessionID",
  1957. "in": "path",
  1958. "schema": {
  1959. "type": "string",
  1960. "allOf": [
  1961. {
  1962. "pattern": "^ses"
  1963. }
  1964. ]
  1965. },
  1966. "required": true
  1967. }
  1968. ],
  1969. "security": [],
  1970. "responses": {
  1971. "204": {
  1972. "description": "<No Content>"
  1973. },
  1974. "400": {
  1975. "description": "InvalidRequestError",
  1976. "content": {
  1977. "application/json": {
  1978. "schema": {
  1979. "$ref": "#/components/schemas/InvalidRequestError"
  1980. }
  1981. }
  1982. }
  1983. },
  1984. "401": {
  1985. "description": "UnauthorizedError",
  1986. "content": {
  1987. "application/json": {
  1988. "schema": {
  1989. "$ref": "#/components/schemas/UnauthorizedError"
  1990. }
  1991. }
  1992. }
  1993. },
  1994. "404": {
  1995. "description": "SessionNotFoundError | SkillNotFoundError",
  1996. "content": {
  1997. "application/json": {
  1998. "schema": {
  1999. "anyOf": [
  2000. {
  2001. "$ref": "#/components/schemas/SkillNotFoundError"
  2002. },
  2003. {
  2004. "$ref": "#/components/schemas/SessionNotFoundError"
  2005. },
  2006. {
  2007. "$ref": "#/components/schemas/SessionNotFoundError"
  2008. }
  2009. ]
  2010. }
  2011. }
  2012. }
  2013. }
  2014. },
  2015. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  2016. "summary": "Activate skill",
  2017. "requestBody": {
  2018. "content": {
  2019. "application/json": {
  2020. "schema": {
  2021. "type": "object",
  2022. "properties": {
  2023. "id": {
  2024. "anyOf": [
  2025. {
  2026. "type": "string",
  2027. "allOf": [
  2028. {
  2029. "pattern": "^msg_"
  2030. }
  2031. ]
  2032. },
  2033. {
  2034. "type": "null"
  2035. }
  2036. ]
  2037. },
  2038. "skill": {
  2039. "type": "string"
  2040. },
  2041. "resume": {
  2042. "anyOf": [
  2043. {
  2044. "type": "boolean"
  2045. },
  2046. {
  2047. "type": "null"
  2048. }
  2049. ]
  2050. }
  2051. },
  2052. "required": [
  2053. "skill"
  2054. ],
  2055. "additionalProperties": false
  2056. }
  2057. }
  2058. },
  2059. "required": true
  2060. }
  2061. }
  2062. },
  2063. "/api/session/{sessionID}/synthetic": {
  2064. "post": {
  2065. "tags": [
  2066. "session"
  2067. ],
  2068. "operationId": "v2.session.synthetic",
  2069. "parameters": [
  2070. {
  2071. "name": "sessionID",
  2072. "in": "path",
  2073. "schema": {
  2074. "type": "string",
  2075. "allOf": [
  2076. {
  2077. "pattern": "^ses"
  2078. }
  2079. ]
  2080. },
  2081. "required": true
  2082. }
  2083. ],
  2084. "security": [],
  2085. "responses": {
  2086. "200": {
  2087. "description": "Success",
  2088. "content": {
  2089. "application/json": {
  2090. "schema": {
  2091. "type": "object",
  2092. "properties": {
  2093. "data": {
  2094. "$ref": "#/components/schemas/SessionPending.Synthetic"
  2095. }
  2096. },
  2097. "required": [
  2098. "data"
  2099. ],
  2100. "additionalProperties": false
  2101. }
  2102. }
  2103. }
  2104. },
  2105. "400": {
  2106. "description": "InvalidRequestError",
  2107. "content": {
  2108. "application/json": {
  2109. "schema": {
  2110. "$ref": "#/components/schemas/InvalidRequestError"
  2111. }
  2112. }
  2113. }
  2114. },
  2115. "401": {
  2116. "description": "UnauthorizedError",
  2117. "content": {
  2118. "application/json": {
  2119. "schema": {
  2120. "$ref": "#/components/schemas/UnauthorizedError"
  2121. }
  2122. }
  2123. }
  2124. },
  2125. "404": {
  2126. "description": "SessionNotFoundError",
  2127. "content": {
  2128. "application/json": {
  2129. "schema": {
  2130. "anyOf": [
  2131. {
  2132. "$ref": "#/components/schemas/SessionNotFoundError"
  2133. },
  2134. {
  2135. "$ref": "#/components/schemas/SessionNotFoundError"
  2136. }
  2137. ]
  2138. }
  2139. }
  2140. }
  2141. },
  2142. "409": {
  2143. "description": "ConflictError",
  2144. "content": {
  2145. "application/json": {
  2146. "schema": {
  2147. "$ref": "#/components/schemas/ConflictError"
  2148. }
  2149. }
  2150. }
  2151. }
  2152. },
  2153. "description": "Durably admit synthetic session input and schedule execution unless resume is false.",
  2154. "summary": "Add synthetic message",
  2155. "requestBody": {
  2156. "content": {
  2157. "application/json": {
  2158. "schema": {
  2159. "type": "object",
  2160. "properties": {
  2161. "id": {
  2162. "anyOf": [
  2163. {
  2164. "type": "string",
  2165. "allOf": [
  2166. {
  2167. "pattern": "^msg_"
  2168. }
  2169. ]
  2170. },
  2171. {
  2172. "type": "null"
  2173. }
  2174. ]
  2175. },
  2176. "text": {
  2177. "type": "string"
  2178. },
  2179. "description": {
  2180. "anyOf": [
  2181. {
  2182. "type": "string"
  2183. },
  2184. {
  2185. "type": "null"
  2186. }
  2187. ]
  2188. },
  2189. "metadata": {
  2190. "type": "object"
  2191. },
  2192. "delivery": {
  2193. "anyOf": [
  2194. {
  2195. "type": "string",
  2196. "enum": [
  2197. "steer",
  2198. "queue"
  2199. ]
  2200. },
  2201. {
  2202. "type": "null"
  2203. }
  2204. ]
  2205. },
  2206. "resume": {
  2207. "anyOf": [
  2208. {
  2209. "type": "boolean"
  2210. },
  2211. {
  2212. "type": "null"
  2213. }
  2214. ]
  2215. }
  2216. },
  2217. "required": [
  2218. "text"
  2219. ],
  2220. "additionalProperties": false
  2221. }
  2222. }
  2223. },
  2224. "required": true
  2225. }
  2226. }
  2227. },
  2228. "/api/session/{sessionID}/shell": {
  2229. "post": {
  2230. "tags": [
  2231. "session"
  2232. ],
  2233. "operationId": "v2.session.shell",
  2234. "parameters": [
  2235. {
  2236. "name": "sessionID",
  2237. "in": "path",
  2238. "schema": {
  2239. "type": "string",
  2240. "allOf": [
  2241. {
  2242. "pattern": "^ses"
  2243. }
  2244. ]
  2245. },
  2246. "required": true
  2247. }
  2248. ],
  2249. "security": [],
  2250. "responses": {
  2251. "204": {
  2252. "description": "<No Content>"
  2253. },
  2254. "400": {
  2255. "description": "InvalidRequestError",
  2256. "content": {
  2257. "application/json": {
  2258. "schema": {
  2259. "$ref": "#/components/schemas/InvalidRequestError"
  2260. }
  2261. }
  2262. }
  2263. },
  2264. "401": {
  2265. "description": "UnauthorizedError",
  2266. "content": {
  2267. "application/json": {
  2268. "schema": {
  2269. "$ref": "#/components/schemas/UnauthorizedError"
  2270. }
  2271. }
  2272. }
  2273. },
  2274. "404": {
  2275. "description": "SessionNotFoundError",
  2276. "content": {
  2277. "application/json": {
  2278. "schema": {
  2279. "anyOf": [
  2280. {
  2281. "$ref": "#/components/schemas/SessionNotFoundError"
  2282. },
  2283. {
  2284. "$ref": "#/components/schemas/SessionNotFoundError"
  2285. }
  2286. ]
  2287. }
  2288. }
  2289. }
  2290. }
  2291. },
  2292. "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.",
  2293. "summary": "Run shell command",
  2294. "requestBody": {
  2295. "content": {
  2296. "application/json": {
  2297. "schema": {
  2298. "type": "object",
  2299. "properties": {
  2300. "id": {
  2301. "anyOf": [
  2302. {
  2303. "type": "string",
  2304. "allOf": [
  2305. {
  2306. "pattern": "^evt_"
  2307. }
  2308. ]
  2309. },
  2310. {
  2311. "type": "null"
  2312. }
  2313. ]
  2314. },
  2315. "command": {
  2316. "type": "string"
  2317. }
  2318. },
  2319. "required": [
  2320. "command"
  2321. ],
  2322. "additionalProperties": false
  2323. }
  2324. }
  2325. },
  2326. "required": true
  2327. }
  2328. }
  2329. },
  2330. "/api/session/{sessionID}/compact": {
  2331. "post": {
  2332. "tags": [
  2333. "session"
  2334. ],
  2335. "operationId": "v2.session.compact",
  2336. "parameters": [
  2337. {
  2338. "name": "sessionID",
  2339. "in": "path",
  2340. "schema": {
  2341. "type": "string",
  2342. "allOf": [
  2343. {
  2344. "pattern": "^ses"
  2345. }
  2346. ]
  2347. },
  2348. "required": true
  2349. }
  2350. ],
  2351. "security": [],
  2352. "responses": {
  2353. "200": {
  2354. "description": "Success",
  2355. "content": {
  2356. "application/json": {
  2357. "schema": {
  2358. "type": "object",
  2359. "properties": {
  2360. "data": {
  2361. "$ref": "#/components/schemas/SessionPending.Compaction"
  2362. }
  2363. },
  2364. "required": [
  2365. "data"
  2366. ],
  2367. "additionalProperties": false
  2368. }
  2369. }
  2370. }
  2371. },
  2372. "400": {
  2373. "description": "InvalidRequestError",
  2374. "content": {
  2375. "application/json": {
  2376. "schema": {
  2377. "$ref": "#/components/schemas/InvalidRequestError"
  2378. }
  2379. }
  2380. }
  2381. },
  2382. "401": {
  2383. "description": "UnauthorizedError",
  2384. "content": {
  2385. "application/json": {
  2386. "schema": {
  2387. "$ref": "#/components/schemas/UnauthorizedError"
  2388. }
  2389. }
  2390. }
  2391. },
  2392. "404": {
  2393. "description": "SessionNotFoundError",
  2394. "content": {
  2395. "application/json": {
  2396. "schema": {
  2397. "anyOf": [
  2398. {
  2399. "$ref": "#/components/schemas/SessionNotFoundError"
  2400. },
  2401. {
  2402. "$ref": "#/components/schemas/SessionNotFoundError"
  2403. }
  2404. ]
  2405. }
  2406. }
  2407. }
  2408. },
  2409. "409": {
  2410. "description": "ConflictError",
  2411. "content": {
  2412. "application/json": {
  2413. "schema": {
  2414. "$ref": "#/components/schemas/ConflictError"
  2415. }
  2416. }
  2417. }
  2418. }
  2419. },
  2420. "description": "Queue a durable session compaction request.",
  2421. "summary": "Compact session",
  2422. "requestBody": {
  2423. "content": {
  2424. "application/json": {
  2425. "schema": {
  2426. "type": "object",
  2427. "properties": {
  2428. "id": {
  2429. "anyOf": [
  2430. {
  2431. "type": "string",
  2432. "allOf": [
  2433. {
  2434. "pattern": "^msg_"
  2435. }
  2436. ]
  2437. },
  2438. {
  2439. "type": "null"
  2440. }
  2441. ]
  2442. }
  2443. },
  2444. "additionalProperties": false
  2445. }
  2446. }
  2447. },
  2448. "required": true
  2449. }
  2450. }
  2451. },
  2452. "/api/session/{sessionID}/wait": {
  2453. "post": {
  2454. "tags": [
  2455. "session"
  2456. ],
  2457. "operationId": "v2.session.wait",
  2458. "parameters": [
  2459. {
  2460. "name": "sessionID",
  2461. "in": "path",
  2462. "schema": {
  2463. "type": "string",
  2464. "allOf": [
  2465. {
  2466. "pattern": "^ses"
  2467. }
  2468. ]
  2469. },
  2470. "required": true
  2471. }
  2472. ],
  2473. "security": [],
  2474. "responses": {
  2475. "204": {
  2476. "description": "<No Content>"
  2477. },
  2478. "400": {
  2479. "description": "InvalidRequestError",
  2480. "content": {
  2481. "application/json": {
  2482. "schema": {
  2483. "$ref": "#/components/schemas/InvalidRequestError"
  2484. }
  2485. }
  2486. }
  2487. },
  2488. "401": {
  2489. "description": "UnauthorizedError",
  2490. "content": {
  2491. "application/json": {
  2492. "schema": {
  2493. "$ref": "#/components/schemas/UnauthorizedError"
  2494. }
  2495. }
  2496. }
  2497. },
  2498. "404": {
  2499. "description": "SessionNotFoundError",
  2500. "content": {
  2501. "application/json": {
  2502. "schema": {
  2503. "anyOf": [
  2504. {
  2505. "$ref": "#/components/schemas/SessionNotFoundError"
  2506. },
  2507. {
  2508. "$ref": "#/components/schemas/SessionNotFoundError"
  2509. }
  2510. ]
  2511. }
  2512. }
  2513. }
  2514. },
  2515. "503": {
  2516. "description": "ServiceUnavailableError",
  2517. "content": {
  2518. "application/json": {
  2519. "schema": {
  2520. "$ref": "#/components/schemas/ServiceUnavailableError"
  2521. }
  2522. }
  2523. }
  2524. }
  2525. },
  2526. "description": "Wait for a session agent loop to become idle.",
  2527. "summary": "Wait for session"
  2528. }
  2529. },
  2530. "/api/session/{sessionID}/revert/stage": {
  2531. "post": {
  2532. "tags": [
  2533. "session"
  2534. ],
  2535. "operationId": "v2.session.revert.stage",
  2536. "parameters": [
  2537. {
  2538. "name": "sessionID",
  2539. "in": "path",
  2540. "schema": {
  2541. "type": "string",
  2542. "allOf": [
  2543. {
  2544. "pattern": "^ses"
  2545. }
  2546. ]
  2547. },
  2548. "required": true
  2549. }
  2550. ],
  2551. "security": [],
  2552. "responses": {
  2553. "200": {
  2554. "description": "Success",
  2555. "content": {
  2556. "application/json": {
  2557. "schema": {
  2558. "type": "object",
  2559. "properties": {
  2560. "data": {
  2561. "$ref": "#/components/schemas/Session.Revert"
  2562. }
  2563. },
  2564. "required": [
  2565. "data"
  2566. ],
  2567. "additionalProperties": false
  2568. }
  2569. }
  2570. }
  2571. },
  2572. "400": {
  2573. "description": "InvalidRequestError",
  2574. "content": {
  2575. "application/json": {
  2576. "schema": {
  2577. "$ref": "#/components/schemas/InvalidRequestError"
  2578. }
  2579. }
  2580. }
  2581. },
  2582. "401": {
  2583. "description": "UnauthorizedError",
  2584. "content": {
  2585. "application/json": {
  2586. "schema": {
  2587. "$ref": "#/components/schemas/UnauthorizedError"
  2588. }
  2589. }
  2590. }
  2591. },
  2592. "404": {
  2593. "description": "MessageNotFoundError | SessionNotFoundError",
  2594. "content": {
  2595. "application/json": {
  2596. "schema": {
  2597. "anyOf": [
  2598. {
  2599. "$ref": "#/components/schemas/MessageNotFoundError"
  2600. },
  2601. {
  2602. "$ref": "#/components/schemas/SessionNotFoundError"
  2603. },
  2604. {
  2605. "$ref": "#/components/schemas/SessionNotFoundError"
  2606. }
  2607. ]
  2608. }
  2609. }
  2610. }
  2611. },
  2612. "409": {
  2613. "description": "SessionBusyError",
  2614. "content": {
  2615. "application/json": {
  2616. "schema": {
  2617. "$ref": "#/components/schemas/SessionBusyError"
  2618. }
  2619. }
  2620. }
  2621. },
  2622. "500": {
  2623. "description": "UnknownError",
  2624. "content": {
  2625. "application/json": {
  2626. "schema": {
  2627. "$ref": "#/components/schemas/UnknownError"
  2628. }
  2629. }
  2630. }
  2631. }
  2632. },
  2633. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2634. "summary": "Stage session revert",
  2635. "requestBody": {
  2636. "content": {
  2637. "application/json": {
  2638. "schema": {
  2639. "type": "object",
  2640. "properties": {
  2641. "messageID": {
  2642. "type": "string",
  2643. "allOf": [
  2644. {
  2645. "pattern": "^msg_"
  2646. }
  2647. ]
  2648. },
  2649. "files": {
  2650. "anyOf": [
  2651. {
  2652. "type": "boolean"
  2653. },
  2654. {
  2655. "type": "null"
  2656. }
  2657. ]
  2658. }
  2659. },
  2660. "required": [
  2661. "messageID"
  2662. ],
  2663. "additionalProperties": false
  2664. }
  2665. }
  2666. },
  2667. "required": true
  2668. }
  2669. }
  2670. },
  2671. "/api/session/{sessionID}/revert/clear": {
  2672. "post": {
  2673. "tags": [
  2674. "session"
  2675. ],
  2676. "operationId": "v2.session.revert.clear",
  2677. "parameters": [
  2678. {
  2679. "name": "sessionID",
  2680. "in": "path",
  2681. "schema": {
  2682. "type": "string",
  2683. "allOf": [
  2684. {
  2685. "pattern": "^ses"
  2686. }
  2687. ]
  2688. },
  2689. "required": true
  2690. }
  2691. ],
  2692. "security": [],
  2693. "responses": {
  2694. "204": {
  2695. "description": "<No Content>"
  2696. },
  2697. "400": {
  2698. "description": "InvalidRequestError",
  2699. "content": {
  2700. "application/json": {
  2701. "schema": {
  2702. "$ref": "#/components/schemas/InvalidRequestError"
  2703. }
  2704. }
  2705. }
  2706. },
  2707. "401": {
  2708. "description": "UnauthorizedError",
  2709. "content": {
  2710. "application/json": {
  2711. "schema": {
  2712. "$ref": "#/components/schemas/UnauthorizedError"
  2713. }
  2714. }
  2715. }
  2716. },
  2717. "404": {
  2718. "description": "SessionNotFoundError",
  2719. "content": {
  2720. "application/json": {
  2721. "schema": {
  2722. "anyOf": [
  2723. {
  2724. "$ref": "#/components/schemas/SessionNotFoundError"
  2725. },
  2726. {
  2727. "$ref": "#/components/schemas/SessionNotFoundError"
  2728. }
  2729. ]
  2730. }
  2731. }
  2732. }
  2733. },
  2734. "409": {
  2735. "description": "SessionBusyError",
  2736. "content": {
  2737. "application/json": {
  2738. "schema": {
  2739. "$ref": "#/components/schemas/SessionBusyError"
  2740. }
  2741. }
  2742. }
  2743. },
  2744. "500": {
  2745. "description": "UnknownError",
  2746. "content": {
  2747. "application/json": {
  2748. "schema": {
  2749. "$ref": "#/components/schemas/UnknownError"
  2750. }
  2751. }
  2752. }
  2753. }
  2754. },
  2755. "summary": "Clear staged revert"
  2756. }
  2757. },
  2758. "/api/session/{sessionID}/revert/commit": {
  2759. "post": {
  2760. "tags": [
  2761. "session"
  2762. ],
  2763. "operationId": "v2.session.revert.commit",
  2764. "parameters": [
  2765. {
  2766. "name": "sessionID",
  2767. "in": "path",
  2768. "schema": {
  2769. "type": "string",
  2770. "allOf": [
  2771. {
  2772. "pattern": "^ses"
  2773. }
  2774. ]
  2775. },
  2776. "required": true
  2777. }
  2778. ],
  2779. "security": [],
  2780. "responses": {
  2781. "204": {
  2782. "description": "<No Content>"
  2783. },
  2784. "400": {
  2785. "description": "InvalidRequestError",
  2786. "content": {
  2787. "application/json": {
  2788. "schema": {
  2789. "$ref": "#/components/schemas/InvalidRequestError"
  2790. }
  2791. }
  2792. }
  2793. },
  2794. "401": {
  2795. "description": "UnauthorizedError",
  2796. "content": {
  2797. "application/json": {
  2798. "schema": {
  2799. "$ref": "#/components/schemas/UnauthorizedError"
  2800. }
  2801. }
  2802. }
  2803. },
  2804. "404": {
  2805. "description": "SessionNotFoundError",
  2806. "content": {
  2807. "application/json": {
  2808. "schema": {
  2809. "anyOf": [
  2810. {
  2811. "$ref": "#/components/schemas/SessionNotFoundError"
  2812. },
  2813. {
  2814. "$ref": "#/components/schemas/SessionNotFoundError"
  2815. }
  2816. ]
  2817. }
  2818. }
  2819. }
  2820. },
  2821. "409": {
  2822. "description": "SessionBusyError",
  2823. "content": {
  2824. "application/json": {
  2825. "schema": {
  2826. "$ref": "#/components/schemas/SessionBusyError"
  2827. }
  2828. }
  2829. }
  2830. }
  2831. },
  2832. "summary": "Commit staged revert"
  2833. }
  2834. },
  2835. "/api/session/{sessionID}/context": {
  2836. "get": {
  2837. "tags": [
  2838. "session"
  2839. ],
  2840. "operationId": "v2.session.context",
  2841. "parameters": [
  2842. {
  2843. "name": "sessionID",
  2844. "in": "path",
  2845. "schema": {
  2846. "type": "string",
  2847. "allOf": [
  2848. {
  2849. "pattern": "^ses"
  2850. }
  2851. ]
  2852. },
  2853. "required": true
  2854. }
  2855. ],
  2856. "security": [],
  2857. "responses": {
  2858. "200": {
  2859. "description": "Success",
  2860. "content": {
  2861. "application/json": {
  2862. "schema": {
  2863. "type": "object",
  2864. "properties": {
  2865. "data": {
  2866. "type": "array",
  2867. "items": {
  2868. "$ref": "#/components/schemas/Session.Message.Info"
  2869. }
  2870. }
  2871. },
  2872. "required": [
  2873. "data"
  2874. ],
  2875. "additionalProperties": false
  2876. }
  2877. }
  2878. }
  2879. },
  2880. "400": {
  2881. "description": "InvalidRequestError",
  2882. "content": {
  2883. "application/json": {
  2884. "schema": {
  2885. "$ref": "#/components/schemas/InvalidRequestError"
  2886. }
  2887. }
  2888. }
  2889. },
  2890. "401": {
  2891. "description": "UnauthorizedError",
  2892. "content": {
  2893. "application/json": {
  2894. "schema": {
  2895. "$ref": "#/components/schemas/UnauthorizedError"
  2896. }
  2897. }
  2898. }
  2899. },
  2900. "404": {
  2901. "description": "SessionNotFoundError",
  2902. "content": {
  2903. "application/json": {
  2904. "schema": {
  2905. "anyOf": [
  2906. {
  2907. "$ref": "#/components/schemas/SessionNotFoundError"
  2908. },
  2909. {
  2910. "$ref": "#/components/schemas/SessionNotFoundError"
  2911. }
  2912. ]
  2913. }
  2914. }
  2915. }
  2916. },
  2917. "500": {
  2918. "description": "UnknownError",
  2919. "content": {
  2920. "application/json": {
  2921. "schema": {
  2922. "$ref": "#/components/schemas/UnknownError"
  2923. }
  2924. }
  2925. }
  2926. }
  2927. },
  2928. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2929. "summary": "Get session context"
  2930. }
  2931. },
  2932. "/api/session/{sessionID}/pending": {
  2933. "get": {
  2934. "tags": [
  2935. "session"
  2936. ],
  2937. "operationId": "v2.session.pending.list",
  2938. "parameters": [
  2939. {
  2940. "name": "sessionID",
  2941. "in": "path",
  2942. "schema": {
  2943. "type": "string",
  2944. "allOf": [
  2945. {
  2946. "pattern": "^ses"
  2947. }
  2948. ]
  2949. },
  2950. "required": true
  2951. }
  2952. ],
  2953. "security": [],
  2954. "responses": {
  2955. "200": {
  2956. "description": "Success",
  2957. "content": {
  2958. "application/json": {
  2959. "schema": {
  2960. "type": "object",
  2961. "properties": {
  2962. "data": {
  2963. "type": "array",
  2964. "items": {
  2965. "$ref": "#/components/schemas/SessionPending.Info"
  2966. }
  2967. }
  2968. },
  2969. "required": [
  2970. "data"
  2971. ],
  2972. "additionalProperties": false
  2973. }
  2974. }
  2975. }
  2976. },
  2977. "400": {
  2978. "description": "InvalidRequestError",
  2979. "content": {
  2980. "application/json": {
  2981. "schema": {
  2982. "$ref": "#/components/schemas/InvalidRequestError"
  2983. }
  2984. }
  2985. }
  2986. },
  2987. "401": {
  2988. "description": "UnauthorizedError",
  2989. "content": {
  2990. "application/json": {
  2991. "schema": {
  2992. "$ref": "#/components/schemas/UnauthorizedError"
  2993. }
  2994. }
  2995. }
  2996. },
  2997. "404": {
  2998. "description": "SessionNotFoundError",
  2999. "content": {
  3000. "application/json": {
  3001. "schema": {
  3002. "anyOf": [
  3003. {
  3004. "$ref": "#/components/schemas/SessionNotFoundError"
  3005. },
  3006. {
  3007. "$ref": "#/components/schemas/SessionNotFoundError"
  3008. }
  3009. ]
  3010. }
  3011. }
  3012. }
  3013. }
  3014. },
  3015. "description": "List durable admitted session work not yet visible in projected history, ordered by admission. Includes unpromoted user and synthetic inputs and unhandled compaction barriers. The runner owns consumption; items disappear once promoted or handled.",
  3016. "summary": "List pending session work"
  3017. }
  3018. },
  3019. "/api/session/{sessionID}/instructions/entries": {
  3020. "get": {
  3021. "tags": [
  3022. "session"
  3023. ],
  3024. "operationId": "v2.session.instructions.entry.list",
  3025. "parameters": [
  3026. {
  3027. "name": "sessionID",
  3028. "in": "path",
  3029. "schema": {
  3030. "type": "string",
  3031. "allOf": [
  3032. {
  3033. "pattern": "^ses"
  3034. }
  3035. ]
  3036. },
  3037. "required": true
  3038. }
  3039. ],
  3040. "security": [],
  3041. "responses": {
  3042. "200": {
  3043. "description": "Success",
  3044. "content": {
  3045. "application/json": {
  3046. "schema": {
  3047. "type": "object",
  3048. "properties": {
  3049. "data": {
  3050. "type": "array",
  3051. "items": {
  3052. "$ref": "#/components/schemas/InstructionEntry.Info"
  3053. }
  3054. }
  3055. },
  3056. "required": [
  3057. "data"
  3058. ],
  3059. "additionalProperties": false
  3060. }
  3061. }
  3062. }
  3063. },
  3064. "400": {
  3065. "description": "InvalidRequestError",
  3066. "content": {
  3067. "application/json": {
  3068. "schema": {
  3069. "$ref": "#/components/schemas/InvalidRequestError"
  3070. }
  3071. }
  3072. }
  3073. },
  3074. "401": {
  3075. "description": "UnauthorizedError",
  3076. "content": {
  3077. "application/json": {
  3078. "schema": {
  3079. "$ref": "#/components/schemas/UnauthorizedError"
  3080. }
  3081. }
  3082. }
  3083. },
  3084. "404": {
  3085. "description": "SessionNotFoundError",
  3086. "content": {
  3087. "application/json": {
  3088. "schema": {
  3089. "anyOf": [
  3090. {
  3091. "$ref": "#/components/schemas/SessionNotFoundError"
  3092. },
  3093. {
  3094. "$ref": "#/components/schemas/SessionNotFoundError"
  3095. }
  3096. ]
  3097. }
  3098. }
  3099. }
  3100. }
  3101. },
  3102. "description": "List API-managed instruction entries attached to the session.",
  3103. "summary": "List instruction entries"
  3104. }
  3105. },
  3106. "/api/session/{sessionID}/instructions/entries/{key}": {
  3107. "put": {
  3108. "tags": [
  3109. "session"
  3110. ],
  3111. "operationId": "v2.session.instructions.entry.put",
  3112. "parameters": [
  3113. {
  3114. "name": "sessionID",
  3115. "in": "path",
  3116. "schema": {
  3117. "type": "string",
  3118. "allOf": [
  3119. {
  3120. "pattern": "^ses"
  3121. }
  3122. ]
  3123. },
  3124. "required": true
  3125. },
  3126. {
  3127. "name": "key",
  3128. "in": "path",
  3129. "schema": {
  3130. "$ref": "#/components/schemas/InstructionEntry.Key"
  3131. },
  3132. "required": true
  3133. }
  3134. ],
  3135. "security": [],
  3136. "responses": {
  3137. "204": {
  3138. "description": "<No Content>"
  3139. },
  3140. "400": {
  3141. "description": "InvalidRequestError",
  3142. "content": {
  3143. "application/json": {
  3144. "schema": {
  3145. "$ref": "#/components/schemas/InvalidRequestError"
  3146. }
  3147. }
  3148. }
  3149. },
  3150. "401": {
  3151. "description": "UnauthorizedError",
  3152. "content": {
  3153. "application/json": {
  3154. "schema": {
  3155. "$ref": "#/components/schemas/UnauthorizedError"
  3156. }
  3157. }
  3158. }
  3159. },
  3160. "404": {
  3161. "description": "SessionNotFoundError",
  3162. "content": {
  3163. "application/json": {
  3164. "schema": {
  3165. "anyOf": [
  3166. {
  3167. "$ref": "#/components/schemas/SessionNotFoundError"
  3168. },
  3169. {
  3170. "$ref": "#/components/schemas/SessionNotFoundError"
  3171. }
  3172. ]
  3173. }
  3174. }
  3175. }
  3176. },
  3177. "413": {
  3178. "description": "InstructionEntryValueTooLargeError",
  3179. "content": {
  3180. "application/json": {
  3181. "schema": {
  3182. "$ref": "#/components/schemas/InstructionEntryValueTooLargeError"
  3183. }
  3184. }
  3185. }
  3186. }
  3187. },
  3188. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  3189. "summary": "Put instruction entry",
  3190. "requestBody": {
  3191. "content": {
  3192. "application/json": {
  3193. "schema": {
  3194. "type": "object",
  3195. "properties": {
  3196. "value": {}
  3197. },
  3198. "required": [
  3199. "value"
  3200. ],
  3201. "additionalProperties": false
  3202. }
  3203. }
  3204. },
  3205. "required": true
  3206. }
  3207. },
  3208. "delete": {
  3209. "tags": [
  3210. "session"
  3211. ],
  3212. "operationId": "v2.session.instructions.entry.remove",
  3213. "parameters": [
  3214. {
  3215. "name": "sessionID",
  3216. "in": "path",
  3217. "schema": {
  3218. "type": "string",
  3219. "allOf": [
  3220. {
  3221. "pattern": "^ses"
  3222. }
  3223. ]
  3224. },
  3225. "required": true
  3226. },
  3227. {
  3228. "name": "key",
  3229. "in": "path",
  3230. "schema": {
  3231. "$ref": "#/components/schemas/InstructionEntry.Key"
  3232. },
  3233. "required": true
  3234. }
  3235. ],
  3236. "security": [],
  3237. "responses": {
  3238. "204": {
  3239. "description": "<No Content>"
  3240. },
  3241. "400": {
  3242. "description": "InvalidRequestError",
  3243. "content": {
  3244. "application/json": {
  3245. "schema": {
  3246. "$ref": "#/components/schemas/InvalidRequestError"
  3247. }
  3248. }
  3249. }
  3250. },
  3251. "401": {
  3252. "description": "UnauthorizedError",
  3253. "content": {
  3254. "application/json": {
  3255. "schema": {
  3256. "$ref": "#/components/schemas/UnauthorizedError"
  3257. }
  3258. }
  3259. }
  3260. },
  3261. "404": {
  3262. "description": "SessionNotFoundError",
  3263. "content": {
  3264. "application/json": {
  3265. "schema": {
  3266. "anyOf": [
  3267. {
  3268. "$ref": "#/components/schemas/SessionNotFoundError"
  3269. },
  3270. {
  3271. "$ref": "#/components/schemas/SessionNotFoundError"
  3272. }
  3273. ]
  3274. }
  3275. }
  3276. }
  3277. }
  3278. },
  3279. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  3280. "summary": "Remove instruction entry"
  3281. }
  3282. },
  3283. "/api/session/{sessionID}/generate": {
  3284. "post": {
  3285. "tags": [
  3286. "session"
  3287. ],
  3288. "operationId": "v2.session.generate",
  3289. "parameters": [
  3290. {
  3291. "name": "sessionID",
  3292. "in": "path",
  3293. "schema": {
  3294. "type": "string",
  3295. "allOf": [
  3296. {
  3297. "pattern": "^ses"
  3298. }
  3299. ]
  3300. },
  3301. "required": true
  3302. }
  3303. ],
  3304. "security": [],
  3305. "responses": {
  3306. "200": {
  3307. "description": "SessionGenerateResponse",
  3308. "content": {
  3309. "application/json": {
  3310. "schema": {
  3311. "$ref": "#/components/schemas/SessionGenerateResponse"
  3312. }
  3313. }
  3314. }
  3315. },
  3316. "400": {
  3317. "description": "InvalidRequestError",
  3318. "content": {
  3319. "application/json": {
  3320. "schema": {
  3321. "$ref": "#/components/schemas/InvalidRequestError"
  3322. }
  3323. }
  3324. }
  3325. },
  3326. "401": {
  3327. "description": "UnauthorizedError",
  3328. "content": {
  3329. "application/json": {
  3330. "schema": {
  3331. "$ref": "#/components/schemas/UnauthorizedError"
  3332. }
  3333. }
  3334. }
  3335. },
  3336. "404": {
  3337. "description": "SessionNotFoundError",
  3338. "content": {
  3339. "application/json": {
  3340. "schema": {
  3341. "anyOf": [
  3342. {
  3343. "$ref": "#/components/schemas/SessionNotFoundError"
  3344. },
  3345. {
  3346. "$ref": "#/components/schemas/SessionNotFoundError"
  3347. }
  3348. ]
  3349. }
  3350. }
  3351. }
  3352. },
  3353. "503": {
  3354. "description": "ServiceUnavailableError",
  3355. "content": {
  3356. "application/json": {
  3357. "schema": {
  3358. "$ref": "#/components/schemas/ServiceUnavailableError"
  3359. }
  3360. }
  3361. }
  3362. }
  3363. },
  3364. "description": "Generate transient text from the current session context without mutating session history.",
  3365. "summary": "Generate text from session context",
  3366. "requestBody": {
  3367. "content": {
  3368. "application/json": {
  3369. "schema": {
  3370. "type": "object",
  3371. "properties": {
  3372. "prompt": {
  3373. "type": "string"
  3374. }
  3375. },
  3376. "required": [
  3377. "prompt"
  3378. ],
  3379. "additionalProperties": false
  3380. }
  3381. }
  3382. },
  3383. "required": true
  3384. }
  3385. }
  3386. },
  3387. "/api/experimental/session/{sessionID}/log": {
  3388. "get": {
  3389. "tags": [
  3390. "session"
  3391. ],
  3392. "operationId": "v2.session.log",
  3393. "parameters": [
  3394. {
  3395. "name": "sessionID",
  3396. "in": "path",
  3397. "schema": {
  3398. "type": "string",
  3399. "allOf": [
  3400. {
  3401. "pattern": "^ses"
  3402. }
  3403. ]
  3404. },
  3405. "required": true
  3406. },
  3407. {
  3408. "name": "after",
  3409. "in": "query",
  3410. "schema": {
  3411. "anyOf": [
  3412. {
  3413. "type": "string"
  3414. },
  3415. {
  3416. "type": "null"
  3417. }
  3418. ]
  3419. },
  3420. "required": false
  3421. },
  3422. {
  3423. "name": "follow",
  3424. "in": "query",
  3425. "schema": {
  3426. "anyOf": [
  3427. {
  3428. "type": "string",
  3429. "enum": [
  3430. "true",
  3431. "false"
  3432. ]
  3433. },
  3434. {
  3435. "type": "null"
  3436. }
  3437. ]
  3438. },
  3439. "required": false
  3440. }
  3441. ],
  3442. "security": [],
  3443. "responses": {
  3444. "200": {
  3445. "description": "Success",
  3446. "content": {
  3447. "text/event-stream": {
  3448. "schema": {
  3449. "type": "object",
  3450. "properties": {
  3451. "id": {
  3452. "anyOf": [
  3453. {
  3454. "type": "string"
  3455. },
  3456. {
  3457. "type": "null"
  3458. }
  3459. ]
  3460. },
  3461. "event": {
  3462. "type": "string"
  3463. },
  3464. "data": {
  3465. "$ref": "#/components/schemas/SessionLogItemJsonString"
  3466. }
  3467. },
  3468. "required": [
  3469. "id",
  3470. "event",
  3471. "data"
  3472. ],
  3473. "additionalProperties": false
  3474. },
  3475. "x-effect-stream": {
  3476. "encoding": "sse",
  3477. "causeSchema": {
  3478. "type": "array",
  3479. "items": {
  3480. "anyOf": [
  3481. {
  3482. "type": "object",
  3483. "properties": {
  3484. "_tag": {
  3485. "type": "string",
  3486. "enum": [
  3487. "Fail"
  3488. ]
  3489. },
  3490. "error": {
  3491. "not": {}
  3492. }
  3493. },
  3494. "required": [
  3495. "_tag",
  3496. "error"
  3497. ],
  3498. "additionalProperties": false
  3499. },
  3500. {
  3501. "type": "object",
  3502. "properties": {
  3503. "_tag": {
  3504. "type": "string",
  3505. "enum": [
  3506. "Die"
  3507. ]
  3508. },
  3509. "defect": {}
  3510. },
  3511. "required": [
  3512. "_tag",
  3513. "defect"
  3514. ],
  3515. "additionalProperties": false
  3516. },
  3517. {
  3518. "type": "object",
  3519. "properties": {
  3520. "_tag": {
  3521. "type": "string",
  3522. "enum": [
  3523. "Interrupt"
  3524. ]
  3525. },
  3526. "fiberId": {
  3527. "anyOf": [
  3528. {
  3529. "type": "number"
  3530. },
  3531. {
  3532. "type": "null"
  3533. }
  3534. ]
  3535. }
  3536. },
  3537. "required": [
  3538. "_tag",
  3539. "fiberId"
  3540. ],
  3541. "additionalProperties": false
  3542. }
  3543. ]
  3544. }
  3545. },
  3546. "errorSchema": {
  3547. "not": {}
  3548. },
  3549. "failureEvent": "effect/httpapi/stream/failure"
  3550. }
  3551. }
  3552. }
  3553. },
  3554. "400": {
  3555. "description": "InvalidRequestError",
  3556. "content": {
  3557. "application/json": {
  3558. "schema": {
  3559. "$ref": "#/components/schemas/InvalidRequestError"
  3560. }
  3561. }
  3562. }
  3563. },
  3564. "401": {
  3565. "description": "UnauthorizedError",
  3566. "content": {
  3567. "application/json": {
  3568. "schema": {
  3569. "$ref": "#/components/schemas/UnauthorizedError"
  3570. }
  3571. }
  3572. }
  3573. },
  3574. "404": {
  3575. "description": "SessionNotFoundError",
  3576. "content": {
  3577. "application/json": {
  3578. "schema": {
  3579. "anyOf": [
  3580. {
  3581. "$ref": "#/components/schemas/SessionNotFoundError"
  3582. },
  3583. {
  3584. "$ref": "#/components/schemas/SessionNotFoundError"
  3585. }
  3586. ]
  3587. }
  3588. }
  3589. }
  3590. }
  3591. },
  3592. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3593. "summary": "Read the session log"
  3594. }
  3595. },
  3596. "/api/session/{sessionID}/interrupt": {
  3597. "post": {
  3598. "tags": [
  3599. "session"
  3600. ],
  3601. "operationId": "v2.session.interrupt",
  3602. "parameters": [
  3603. {
  3604. "name": "sessionID",
  3605. "in": "path",
  3606. "schema": {
  3607. "type": "string",
  3608. "allOf": [
  3609. {
  3610. "pattern": "^ses"
  3611. }
  3612. ]
  3613. },
  3614. "required": true
  3615. }
  3616. ],
  3617. "security": [],
  3618. "responses": {
  3619. "204": {
  3620. "description": "<No Content>"
  3621. },
  3622. "400": {
  3623. "description": "InvalidRequestError",
  3624. "content": {
  3625. "application/json": {
  3626. "schema": {
  3627. "$ref": "#/components/schemas/InvalidRequestError"
  3628. }
  3629. }
  3630. }
  3631. },
  3632. "401": {
  3633. "description": "UnauthorizedError",
  3634. "content": {
  3635. "application/json": {
  3636. "schema": {
  3637. "$ref": "#/components/schemas/UnauthorizedError"
  3638. }
  3639. }
  3640. }
  3641. },
  3642. "404": {
  3643. "description": "SessionNotFoundError",
  3644. "content": {
  3645. "application/json": {
  3646. "schema": {
  3647. "anyOf": [
  3648. {
  3649. "$ref": "#/components/schemas/SessionNotFoundError"
  3650. },
  3651. {
  3652. "$ref": "#/components/schemas/SessionNotFoundError"
  3653. }
  3654. ]
  3655. }
  3656. }
  3657. }
  3658. }
  3659. },
  3660. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3661. "summary": "Interrupt session execution"
  3662. }
  3663. },
  3664. "/api/session/{sessionID}/background": {
  3665. "post": {
  3666. "tags": [
  3667. "session"
  3668. ],
  3669. "operationId": "v2.session.background",
  3670. "parameters": [
  3671. {
  3672. "name": "sessionID",
  3673. "in": "path",
  3674. "schema": {
  3675. "type": "string",
  3676. "allOf": [
  3677. {
  3678. "pattern": "^ses"
  3679. }
  3680. ]
  3681. },
  3682. "required": true
  3683. }
  3684. ],
  3685. "security": [],
  3686. "responses": {
  3687. "204": {
  3688. "description": "<No Content>"
  3689. },
  3690. "400": {
  3691. "description": "InvalidRequestError",
  3692. "content": {
  3693. "application/json": {
  3694. "schema": {
  3695. "$ref": "#/components/schemas/InvalidRequestError"
  3696. }
  3697. }
  3698. }
  3699. },
  3700. "401": {
  3701. "description": "UnauthorizedError",
  3702. "content": {
  3703. "application/json": {
  3704. "schema": {
  3705. "$ref": "#/components/schemas/UnauthorizedError"
  3706. }
  3707. }
  3708. }
  3709. },
  3710. "404": {
  3711. "description": "SessionNotFoundError",
  3712. "content": {
  3713. "application/json": {
  3714. "schema": {
  3715. "anyOf": [
  3716. {
  3717. "$ref": "#/components/schemas/SessionNotFoundError"
  3718. },
  3719. {
  3720. "$ref": "#/components/schemas/SessionNotFoundError"
  3721. }
  3722. ]
  3723. }
  3724. }
  3725. }
  3726. }
  3727. },
  3728. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3729. "summary": "Background blocking session tools"
  3730. }
  3731. },
  3732. "/api/session/{sessionID}/message/{messageID}": {
  3733. "get": {
  3734. "tags": [
  3735. "session"
  3736. ],
  3737. "operationId": "v2.session.message",
  3738. "parameters": [
  3739. {
  3740. "name": "sessionID",
  3741. "in": "path",
  3742. "schema": {
  3743. "type": "string",
  3744. "allOf": [
  3745. {
  3746. "pattern": "^ses"
  3747. }
  3748. ]
  3749. },
  3750. "required": true
  3751. },
  3752. {
  3753. "name": "messageID",
  3754. "in": "path",
  3755. "schema": {
  3756. "type": "string",
  3757. "allOf": [
  3758. {
  3759. "pattern": "^msg_"
  3760. }
  3761. ]
  3762. },
  3763. "required": true
  3764. }
  3765. ],
  3766. "security": [],
  3767. "responses": {
  3768. "200": {
  3769. "description": "Success",
  3770. "content": {
  3771. "application/json": {
  3772. "schema": {
  3773. "type": "object",
  3774. "properties": {
  3775. "data": {
  3776. "$ref": "#/components/schemas/Session.Message.Info"
  3777. }
  3778. },
  3779. "required": [
  3780. "data"
  3781. ],
  3782. "additionalProperties": false
  3783. }
  3784. }
  3785. }
  3786. },
  3787. "400": {
  3788. "description": "InvalidRequestError",
  3789. "content": {
  3790. "application/json": {
  3791. "schema": {
  3792. "$ref": "#/components/schemas/InvalidRequestError"
  3793. }
  3794. }
  3795. }
  3796. },
  3797. "401": {
  3798. "description": "UnauthorizedError",
  3799. "content": {
  3800. "application/json": {
  3801. "schema": {
  3802. "$ref": "#/components/schemas/UnauthorizedError"
  3803. }
  3804. }
  3805. }
  3806. },
  3807. "404": {
  3808. "description": "SessionNotFoundError | MessageNotFoundError",
  3809. "content": {
  3810. "application/json": {
  3811. "schema": {
  3812. "anyOf": [
  3813. {
  3814. "$ref": "#/components/schemas/MessageNotFoundError"
  3815. },
  3816. {
  3817. "$ref": "#/components/schemas/SessionNotFoundError"
  3818. },
  3819. {
  3820. "$ref": "#/components/schemas/SessionNotFoundError"
  3821. }
  3822. ]
  3823. }
  3824. }
  3825. }
  3826. }
  3827. },
  3828. "description": "Retrieve one projected message owned by the Session.",
  3829. "summary": "Get session message"
  3830. }
  3831. },
  3832. "/api/session/{sessionID}/message": {
  3833. "get": {
  3834. "tags": [
  3835. "session"
  3836. ],
  3837. "operationId": "v2.message.list",
  3838. "parameters": [
  3839. {
  3840. "name": "sessionID",
  3841. "in": "path",
  3842. "schema": {
  3843. "type": "string",
  3844. "allOf": [
  3845. {
  3846. "pattern": "^ses"
  3847. }
  3848. ]
  3849. },
  3850. "required": true
  3851. },
  3852. {
  3853. "name": "limit",
  3854. "in": "query",
  3855. "schema": {
  3856. "anyOf": [
  3857. {
  3858. "type": "string"
  3859. },
  3860. {
  3861. "type": "null"
  3862. }
  3863. ],
  3864. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3865. },
  3866. "required": false
  3867. },
  3868. {
  3869. "name": "order",
  3870. "in": "query",
  3871. "schema": {
  3872. "anyOf": [
  3873. {
  3874. "type": "string",
  3875. "enum": [
  3876. "asc",
  3877. "desc"
  3878. ]
  3879. },
  3880. {
  3881. "type": "null"
  3882. }
  3883. ],
  3884. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3885. },
  3886. "required": false
  3887. },
  3888. {
  3889. "name": "cursor",
  3890. "in": "query",
  3891. "schema": {
  3892. "anyOf": [
  3893. {
  3894. "type": "string",
  3895. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3896. },
  3897. {
  3898. "type": "null"
  3899. }
  3900. ]
  3901. },
  3902. "required": false
  3903. }
  3904. ],
  3905. "security": [],
  3906. "responses": {
  3907. "200": {
  3908. "description": "SessionMessagesResponse",
  3909. "content": {
  3910. "application/json": {
  3911. "schema": {
  3912. "$ref": "#/components/schemas/SessionMessagesResponse"
  3913. }
  3914. }
  3915. }
  3916. },
  3917. "400": {
  3918. "description": "InvalidCursorError | InvalidRequestError",
  3919. "content": {
  3920. "application/json": {
  3921. "schema": {
  3922. "anyOf": [
  3923. {
  3924. "$ref": "#/components/schemas/InvalidCursorError"
  3925. },
  3926. {
  3927. "$ref": "#/components/schemas/InvalidRequestError"
  3928. }
  3929. ]
  3930. }
  3931. }
  3932. }
  3933. },
  3934. "401": {
  3935. "description": "UnauthorizedError",
  3936. "content": {
  3937. "application/json": {
  3938. "schema": {
  3939. "$ref": "#/components/schemas/UnauthorizedError"
  3940. }
  3941. }
  3942. }
  3943. },
  3944. "404": {
  3945. "description": "SessionNotFoundError",
  3946. "content": {
  3947. "application/json": {
  3948. "schema": {
  3949. "anyOf": [
  3950. {
  3951. "$ref": "#/components/schemas/SessionNotFoundError"
  3952. },
  3953. {
  3954. "$ref": "#/components/schemas/SessionNotFoundError"
  3955. }
  3956. ]
  3957. }
  3958. }
  3959. }
  3960. },
  3961. "500": {
  3962. "description": "UnknownError",
  3963. "content": {
  3964. "application/json": {
  3965. "schema": {
  3966. "$ref": "#/components/schemas/UnknownError"
  3967. }
  3968. }
  3969. }
  3970. }
  3971. },
  3972. "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.",
  3973. "summary": "Get session messages"
  3974. }
  3975. },
  3976. "/api/model": {
  3977. "get": {
  3978. "tags": [
  3979. "model"
  3980. ],
  3981. "operationId": "v2.model.list",
  3982. "parameters": [
  3983. {
  3984. "name": "location",
  3985. "in": "query",
  3986. "schema": {
  3987. "anyOf": [
  3988. {
  3989. "type": "object",
  3990. "properties": {
  3991. "directory": {
  3992. "anyOf": [
  3993. {
  3994. "type": "string"
  3995. },
  3996. {
  3997. "type": "null"
  3998. }
  3999. ]
  4000. },
  4001. "workspace": {
  4002. "anyOf": [
  4003. {
  4004. "type": "string"
  4005. },
  4006. {
  4007. "type": "null"
  4008. }
  4009. ]
  4010. }
  4011. },
  4012. "additionalProperties": false
  4013. },
  4014. {
  4015. "type": "null"
  4016. }
  4017. ]
  4018. },
  4019. "required": false,
  4020. "style": "deepObject",
  4021. "explode": true
  4022. }
  4023. ],
  4024. "security": [],
  4025. "responses": {
  4026. "200": {
  4027. "description": "Success",
  4028. "content": {
  4029. "application/json": {
  4030. "schema": {
  4031. "type": "object",
  4032. "properties": {
  4033. "location": {
  4034. "$ref": "#/components/schemas/Location.Info"
  4035. },
  4036. "data": {
  4037. "type": "array",
  4038. "items": {
  4039. "$ref": "#/components/schemas/Model.Info"
  4040. }
  4041. }
  4042. },
  4043. "required": [
  4044. "location",
  4045. "data"
  4046. ],
  4047. "additionalProperties": false
  4048. }
  4049. }
  4050. }
  4051. },
  4052. "400": {
  4053. "description": "InvalidRequestError",
  4054. "content": {
  4055. "application/json": {
  4056. "schema": {
  4057. "$ref": "#/components/schemas/InvalidRequestError"
  4058. }
  4059. }
  4060. }
  4061. },
  4062. "401": {
  4063. "description": "UnauthorizedError",
  4064. "content": {
  4065. "application/json": {
  4066. "schema": {
  4067. "$ref": "#/components/schemas/UnauthorizedError"
  4068. }
  4069. }
  4070. }
  4071. },
  4072. "503": {
  4073. "description": "ServiceUnavailableError",
  4074. "content": {
  4075. "application/json": {
  4076. "schema": {
  4077. "$ref": "#/components/schemas/ServiceUnavailableError"
  4078. }
  4079. }
  4080. }
  4081. }
  4082. },
  4083. "description": "Retrieve the current snapshot of available models ordered by release date. The snapshot may precede initial plugin settlement.",
  4084. "summary": "List models"
  4085. }
  4086. },
  4087. "/api/model/default": {
  4088. "get": {
  4089. "tags": [
  4090. "model"
  4091. ],
  4092. "operationId": "v2.model.default",
  4093. "parameters": [
  4094. {
  4095. "name": "location",
  4096. "in": "query",
  4097. "schema": {
  4098. "anyOf": [
  4099. {
  4100. "type": "object",
  4101. "properties": {
  4102. "directory": {
  4103. "anyOf": [
  4104. {
  4105. "type": "string"
  4106. },
  4107. {
  4108. "type": "null"
  4109. }
  4110. ]
  4111. },
  4112. "workspace": {
  4113. "anyOf": [
  4114. {
  4115. "type": "string"
  4116. },
  4117. {
  4118. "type": "null"
  4119. }
  4120. ]
  4121. }
  4122. },
  4123. "additionalProperties": false
  4124. },
  4125. {
  4126. "type": "null"
  4127. }
  4128. ]
  4129. },
  4130. "required": false,
  4131. "style": "deepObject",
  4132. "explode": true
  4133. }
  4134. ],
  4135. "security": [],
  4136. "responses": {
  4137. "200": {
  4138. "description": "Success",
  4139. "content": {
  4140. "application/json": {
  4141. "schema": {
  4142. "type": "object",
  4143. "properties": {
  4144. "location": {
  4145. "$ref": "#/components/schemas/Location.Info"
  4146. },
  4147. "data": {
  4148. "anyOf": [
  4149. {
  4150. "$ref": "#/components/schemas/Model.Info"
  4151. },
  4152. {
  4153. "type": "null"
  4154. }
  4155. ]
  4156. }
  4157. },
  4158. "required": [
  4159. "location",
  4160. "data"
  4161. ],
  4162. "additionalProperties": false
  4163. }
  4164. }
  4165. }
  4166. },
  4167. "400": {
  4168. "description": "InvalidRequestError",
  4169. "content": {
  4170. "application/json": {
  4171. "schema": {
  4172. "$ref": "#/components/schemas/InvalidRequestError"
  4173. }
  4174. }
  4175. }
  4176. },
  4177. "401": {
  4178. "description": "UnauthorizedError",
  4179. "content": {
  4180. "application/json": {
  4181. "schema": {
  4182. "$ref": "#/components/schemas/UnauthorizedError"
  4183. }
  4184. }
  4185. }
  4186. },
  4187. "503": {
  4188. "description": "ServiceUnavailableError",
  4189. "content": {
  4190. "application/json": {
  4191. "schema": {
  4192. "$ref": "#/components/schemas/ServiceUnavailableError"
  4193. }
  4194. }
  4195. }
  4196. }
  4197. },
  4198. "description": "Retrieve the model used when a session has no explicit model selection.",
  4199. "summary": "Get default model"
  4200. }
  4201. },
  4202. "/api/generate": {
  4203. "post": {
  4204. "tags": [
  4205. "generate"
  4206. ],
  4207. "operationId": "v2.generate.text",
  4208. "parameters": [
  4209. {
  4210. "name": "location",
  4211. "in": "query",
  4212. "schema": {
  4213. "anyOf": [
  4214. {
  4215. "type": "object",
  4216. "properties": {
  4217. "directory": {
  4218. "anyOf": [
  4219. {
  4220. "type": "string"
  4221. },
  4222. {
  4223. "type": "null"
  4224. }
  4225. ]
  4226. },
  4227. "workspace": {
  4228. "anyOf": [
  4229. {
  4230. "type": "string"
  4231. },
  4232. {
  4233. "type": "null"
  4234. }
  4235. ]
  4236. }
  4237. },
  4238. "additionalProperties": false
  4239. },
  4240. {
  4241. "type": "null"
  4242. }
  4243. ]
  4244. },
  4245. "required": false,
  4246. "style": "deepObject",
  4247. "explode": true
  4248. }
  4249. ],
  4250. "security": [],
  4251. "responses": {
  4252. "200": {
  4253. "description": "GenerateTextResponse",
  4254. "content": {
  4255. "application/json": {
  4256. "schema": {
  4257. "$ref": "#/components/schemas/GenerateTextResponse"
  4258. }
  4259. }
  4260. }
  4261. },
  4262. "400": {
  4263. "description": "InvalidRequestError",
  4264. "content": {
  4265. "application/json": {
  4266. "schema": {
  4267. "anyOf": [
  4268. {
  4269. "$ref": "#/components/schemas/InvalidRequestError1"
  4270. },
  4271. {
  4272. "$ref": "#/components/schemas/InvalidRequestError"
  4273. }
  4274. ]
  4275. }
  4276. }
  4277. }
  4278. },
  4279. "401": {
  4280. "description": "UnauthorizedError",
  4281. "content": {
  4282. "application/json": {
  4283. "schema": {
  4284. "$ref": "#/components/schemas/UnauthorizedError"
  4285. }
  4286. }
  4287. }
  4288. },
  4289. "503": {
  4290. "description": "ServiceUnavailableError",
  4291. "content": {
  4292. "application/json": {
  4293. "schema": {
  4294. "$ref": "#/components/schemas/ServiceUnavailableError"
  4295. }
  4296. }
  4297. }
  4298. }
  4299. },
  4300. "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.",
  4301. "summary": "Generate text",
  4302. "requestBody": {
  4303. "content": {
  4304. "application/json": {
  4305. "schema": {
  4306. "type": "object",
  4307. "properties": {
  4308. "prompt": {
  4309. "type": "string"
  4310. },
  4311. "model": {
  4312. "anyOf": [
  4313. {
  4314. "$ref": "#/components/schemas/Model.Ref"
  4315. },
  4316. {
  4317. "type": "null"
  4318. }
  4319. ]
  4320. }
  4321. },
  4322. "required": [
  4323. "prompt"
  4324. ],
  4325. "additionalProperties": false
  4326. }
  4327. }
  4328. },
  4329. "required": true
  4330. }
  4331. }
  4332. },
  4333. "/api/provider": {
  4334. "get": {
  4335. "tags": [
  4336. "provider"
  4337. ],
  4338. "operationId": "v2.provider.list",
  4339. "parameters": [
  4340. {
  4341. "name": "location",
  4342. "in": "query",
  4343. "schema": {
  4344. "anyOf": [
  4345. {
  4346. "type": "object",
  4347. "properties": {
  4348. "directory": {
  4349. "anyOf": [
  4350. {
  4351. "type": "string"
  4352. },
  4353. {
  4354. "type": "null"
  4355. }
  4356. ]
  4357. },
  4358. "workspace": {
  4359. "anyOf": [
  4360. {
  4361. "type": "string"
  4362. },
  4363. {
  4364. "type": "null"
  4365. }
  4366. ]
  4367. }
  4368. },
  4369. "additionalProperties": false
  4370. },
  4371. {
  4372. "type": "null"
  4373. }
  4374. ]
  4375. },
  4376. "required": false,
  4377. "style": "deepObject",
  4378. "explode": true
  4379. }
  4380. ],
  4381. "security": [],
  4382. "responses": {
  4383. "200": {
  4384. "description": "Success",
  4385. "content": {
  4386. "application/json": {
  4387. "schema": {
  4388. "type": "object",
  4389. "properties": {
  4390. "location": {
  4391. "$ref": "#/components/schemas/Location.Info"
  4392. },
  4393. "data": {
  4394. "type": "array",
  4395. "items": {
  4396. "$ref": "#/components/schemas/Provider.Info"
  4397. }
  4398. }
  4399. },
  4400. "required": [
  4401. "location",
  4402. "data"
  4403. ],
  4404. "additionalProperties": false
  4405. }
  4406. }
  4407. }
  4408. },
  4409. "400": {
  4410. "description": "InvalidRequestError",
  4411. "content": {
  4412. "application/json": {
  4413. "schema": {
  4414. "$ref": "#/components/schemas/InvalidRequestError"
  4415. }
  4416. }
  4417. }
  4418. },
  4419. "401": {
  4420. "description": "UnauthorizedError",
  4421. "content": {
  4422. "application/json": {
  4423. "schema": {
  4424. "$ref": "#/components/schemas/UnauthorizedError"
  4425. }
  4426. }
  4427. }
  4428. },
  4429. "503": {
  4430. "description": "ServiceUnavailableError",
  4431. "content": {
  4432. "application/json": {
  4433. "schema": {
  4434. "$ref": "#/components/schemas/ServiceUnavailableError"
  4435. }
  4436. }
  4437. }
  4438. }
  4439. },
  4440. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4441. "summary": "List providers"
  4442. }
  4443. },
  4444. "/api/provider/{providerID}": {
  4445. "get": {
  4446. "tags": [
  4447. "provider"
  4448. ],
  4449. "operationId": "v2.provider.get",
  4450. "parameters": [
  4451. {
  4452. "name": "providerID",
  4453. "in": "path",
  4454. "schema": {
  4455. "type": "string"
  4456. },
  4457. "required": true
  4458. },
  4459. {
  4460. "name": "location",
  4461. "in": "query",
  4462. "schema": {
  4463. "anyOf": [
  4464. {
  4465. "type": "object",
  4466. "properties": {
  4467. "directory": {
  4468. "anyOf": [
  4469. {
  4470. "type": "string"
  4471. },
  4472. {
  4473. "type": "null"
  4474. }
  4475. ]
  4476. },
  4477. "workspace": {
  4478. "anyOf": [
  4479. {
  4480. "type": "string"
  4481. },
  4482. {
  4483. "type": "null"
  4484. }
  4485. ]
  4486. }
  4487. },
  4488. "additionalProperties": false
  4489. },
  4490. {
  4491. "type": "null"
  4492. }
  4493. ]
  4494. },
  4495. "required": false,
  4496. "style": "deepObject",
  4497. "explode": true
  4498. }
  4499. ],
  4500. "security": [],
  4501. "responses": {
  4502. "200": {
  4503. "description": "Success",
  4504. "content": {
  4505. "application/json": {
  4506. "schema": {
  4507. "type": "object",
  4508. "properties": {
  4509. "location": {
  4510. "$ref": "#/components/schemas/Location.Info"
  4511. },
  4512. "data": {
  4513. "$ref": "#/components/schemas/Provider.Info"
  4514. }
  4515. },
  4516. "required": [
  4517. "location",
  4518. "data"
  4519. ],
  4520. "additionalProperties": false
  4521. }
  4522. }
  4523. }
  4524. },
  4525. "400": {
  4526. "description": "InvalidRequestError",
  4527. "content": {
  4528. "application/json": {
  4529. "schema": {
  4530. "$ref": "#/components/schemas/InvalidRequestError"
  4531. }
  4532. }
  4533. }
  4534. },
  4535. "401": {
  4536. "description": "UnauthorizedError",
  4537. "content": {
  4538. "application/json": {
  4539. "schema": {
  4540. "$ref": "#/components/schemas/UnauthorizedError"
  4541. }
  4542. }
  4543. }
  4544. },
  4545. "404": {
  4546. "description": "ProviderNotFoundError",
  4547. "content": {
  4548. "application/json": {
  4549. "schema": {
  4550. "$ref": "#/components/schemas/ProviderNotFoundError"
  4551. }
  4552. }
  4553. }
  4554. },
  4555. "503": {
  4556. "description": "ServiceUnavailableError",
  4557. "content": {
  4558. "application/json": {
  4559. "schema": {
  4560. "$ref": "#/components/schemas/ServiceUnavailableError"
  4561. }
  4562. }
  4563. }
  4564. }
  4565. },
  4566. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4567. "summary": "Get provider"
  4568. }
  4569. },
  4570. "/api/integration": {
  4571. "get": {
  4572. "tags": [
  4573. "integration"
  4574. ],
  4575. "operationId": "v2.integration.list",
  4576. "parameters": [
  4577. {
  4578. "name": "location",
  4579. "in": "query",
  4580. "schema": {
  4581. "anyOf": [
  4582. {
  4583. "type": "object",
  4584. "properties": {
  4585. "directory": {
  4586. "anyOf": [
  4587. {
  4588. "type": "string"
  4589. },
  4590. {
  4591. "type": "null"
  4592. }
  4593. ]
  4594. },
  4595. "workspace": {
  4596. "anyOf": [
  4597. {
  4598. "type": "string"
  4599. },
  4600. {
  4601. "type": "null"
  4602. }
  4603. ]
  4604. }
  4605. },
  4606. "additionalProperties": false
  4607. },
  4608. {
  4609. "type": "null"
  4610. }
  4611. ]
  4612. },
  4613. "required": false,
  4614. "style": "deepObject",
  4615. "explode": true
  4616. }
  4617. ],
  4618. "security": [],
  4619. "responses": {
  4620. "200": {
  4621. "description": "Success",
  4622. "content": {
  4623. "application/json": {
  4624. "schema": {
  4625. "type": "object",
  4626. "properties": {
  4627. "location": {
  4628. "$ref": "#/components/schemas/Location.Info"
  4629. },
  4630. "data": {
  4631. "type": "array",
  4632. "items": {
  4633. "$ref": "#/components/schemas/Integration.Info"
  4634. }
  4635. }
  4636. },
  4637. "required": [
  4638. "location",
  4639. "data"
  4640. ],
  4641. "additionalProperties": false
  4642. }
  4643. }
  4644. }
  4645. },
  4646. "400": {
  4647. "description": "InvalidRequestError",
  4648. "content": {
  4649. "application/json": {
  4650. "schema": {
  4651. "$ref": "#/components/schemas/InvalidRequestError"
  4652. }
  4653. }
  4654. }
  4655. },
  4656. "401": {
  4657. "description": "UnauthorizedError",
  4658. "content": {
  4659. "application/json": {
  4660. "schema": {
  4661. "$ref": "#/components/schemas/UnauthorizedError"
  4662. }
  4663. }
  4664. }
  4665. }
  4666. },
  4667. "description": "Retrieve available integrations and their authentication methods.",
  4668. "summary": "List integrations"
  4669. }
  4670. },
  4671. "/api/integration/{integrationID}": {
  4672. "get": {
  4673. "tags": [
  4674. "integration"
  4675. ],
  4676. "operationId": "v2.integration.get",
  4677. "parameters": [
  4678. {
  4679. "name": "integrationID",
  4680. "in": "path",
  4681. "schema": {
  4682. "type": "string"
  4683. },
  4684. "required": true
  4685. },
  4686. {
  4687. "name": "location",
  4688. "in": "query",
  4689. "schema": {
  4690. "anyOf": [
  4691. {
  4692. "type": "object",
  4693. "properties": {
  4694. "directory": {
  4695. "anyOf": [
  4696. {
  4697. "type": "string"
  4698. },
  4699. {
  4700. "type": "null"
  4701. }
  4702. ]
  4703. },
  4704. "workspace": {
  4705. "anyOf": [
  4706. {
  4707. "type": "string"
  4708. },
  4709. {
  4710. "type": "null"
  4711. }
  4712. ]
  4713. }
  4714. },
  4715. "additionalProperties": false
  4716. },
  4717. {
  4718. "type": "null"
  4719. }
  4720. ]
  4721. },
  4722. "required": false,
  4723. "style": "deepObject",
  4724. "explode": true
  4725. }
  4726. ],
  4727. "security": [],
  4728. "responses": {
  4729. "200": {
  4730. "description": "Success",
  4731. "content": {
  4732. "application/json": {
  4733. "schema": {
  4734. "type": "object",
  4735. "properties": {
  4736. "location": {
  4737. "$ref": "#/components/schemas/Location.Info"
  4738. },
  4739. "data": {
  4740. "anyOf": [
  4741. {
  4742. "$ref": "#/components/schemas/Integration.Info"
  4743. },
  4744. {
  4745. "type": "null"
  4746. }
  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 one integration and its authentication methods.",
  4781. "summary": "Get integration"
  4782. }
  4783. },
  4784. "/api/experimental/integration/wellknown": {
  4785. "post": {
  4786. "tags": [
  4787. "integration"
  4788. ],
  4789. "operationId": "v2.experimental.integration.wellknown.add",
  4790. "parameters": [
  4791. {
  4792. "name": "location",
  4793. "in": "query",
  4794. "schema": {
  4795. "anyOf": [
  4796. {
  4797. "type": "object",
  4798. "properties": {
  4799. "directory": {
  4800. "anyOf": [
  4801. {
  4802. "type": "string"
  4803. },
  4804. {
  4805. "type": "null"
  4806. }
  4807. ]
  4808. },
  4809. "workspace": {
  4810. "anyOf": [
  4811. {
  4812. "type": "string"
  4813. },
  4814. {
  4815. "type": "null"
  4816. }
  4817. ]
  4818. }
  4819. },
  4820. "additionalProperties": false
  4821. },
  4822. {
  4823. "type": "null"
  4824. }
  4825. ]
  4826. },
  4827. "required": false,
  4828. "style": "deepObject",
  4829. "explode": true
  4830. }
  4831. ],
  4832. "security": [],
  4833. "responses": {
  4834. "204": {
  4835. "description": "<No Content>"
  4836. },
  4837. "400": {
  4838. "description": "InvalidRequestError",
  4839. "content": {
  4840. "application/json": {
  4841. "schema": {
  4842. "anyOf": [
  4843. {
  4844. "$ref": "#/components/schemas/InvalidRequestError1"
  4845. },
  4846. {
  4847. "$ref": "#/components/schemas/InvalidRequestError"
  4848. }
  4849. ]
  4850. }
  4851. }
  4852. }
  4853. },
  4854. "401": {
  4855. "description": "UnauthorizedError",
  4856. "content": {
  4857. "application/json": {
  4858. "schema": {
  4859. "$ref": "#/components/schemas/UnauthorizedError"
  4860. }
  4861. }
  4862. }
  4863. }
  4864. },
  4865. "description": "Discover and persist an experimental wellknown integration source.",
  4866. "summary": "Add wellknown integration",
  4867. "requestBody": {
  4868. "content": {
  4869. "application/json": {
  4870. "schema": {
  4871. "type": "object",
  4872. "properties": {
  4873. "url": {
  4874. "type": "string"
  4875. }
  4876. },
  4877. "required": [
  4878. "url"
  4879. ],
  4880. "additionalProperties": false
  4881. }
  4882. }
  4883. },
  4884. "required": true
  4885. }
  4886. }
  4887. },
  4888. "/api/integration/{integrationID}/connect/key": {
  4889. "post": {
  4890. "tags": [
  4891. "integration"
  4892. ],
  4893. "operationId": "v2.integration.connect.key",
  4894. "parameters": [
  4895. {
  4896. "name": "integrationID",
  4897. "in": "path",
  4898. "schema": {
  4899. "type": "string"
  4900. },
  4901. "required": true
  4902. },
  4903. {
  4904. "name": "location",
  4905. "in": "query",
  4906. "schema": {
  4907. "anyOf": [
  4908. {
  4909. "type": "object",
  4910. "properties": {
  4911. "directory": {
  4912. "anyOf": [
  4913. {
  4914. "type": "string"
  4915. },
  4916. {
  4917. "type": "null"
  4918. }
  4919. ]
  4920. },
  4921. "workspace": {
  4922. "anyOf": [
  4923. {
  4924. "type": "string"
  4925. },
  4926. {
  4927. "type": "null"
  4928. }
  4929. ]
  4930. }
  4931. },
  4932. "additionalProperties": false
  4933. },
  4934. {
  4935. "type": "null"
  4936. }
  4937. ]
  4938. },
  4939. "required": false,
  4940. "style": "deepObject",
  4941. "explode": true
  4942. }
  4943. ],
  4944. "security": [],
  4945. "responses": {
  4946. "204": {
  4947. "description": "<No Content>"
  4948. },
  4949. "400": {
  4950. "description": "InvalidRequestError",
  4951. "content": {
  4952. "application/json": {
  4953. "schema": {
  4954. "anyOf": [
  4955. {
  4956. "$ref": "#/components/schemas/InvalidRequestError1"
  4957. },
  4958. {
  4959. "$ref": "#/components/schemas/InvalidRequestError"
  4960. }
  4961. ]
  4962. }
  4963. }
  4964. }
  4965. },
  4966. "401": {
  4967. "description": "UnauthorizedError",
  4968. "content": {
  4969. "application/json": {
  4970. "schema": {
  4971. "$ref": "#/components/schemas/UnauthorizedError"
  4972. }
  4973. }
  4974. }
  4975. }
  4976. },
  4977. "description": "Run a key authentication method and store the resulting credential.",
  4978. "summary": "Connect with key",
  4979. "requestBody": {
  4980. "content": {
  4981. "application/json": {
  4982. "schema": {
  4983. "type": "object",
  4984. "properties": {
  4985. "key": {
  4986. "type": "string"
  4987. },
  4988. "label": {
  4989. "anyOf": [
  4990. {
  4991. "type": "string"
  4992. },
  4993. {
  4994. "type": "null"
  4995. }
  4996. ]
  4997. }
  4998. },
  4999. "required": [
  5000. "key"
  5001. ],
  5002. "additionalProperties": false
  5003. }
  5004. }
  5005. },
  5006. "required": true
  5007. }
  5008. }
  5009. },
  5010. "/api/integration/{integrationID}/connect/oauth": {
  5011. "post": {
  5012. "tags": [
  5013. "integration"
  5014. ],
  5015. "operationId": "v2.integration.oauth.connect",
  5016. "parameters": [
  5017. {
  5018. "name": "integrationID",
  5019. "in": "path",
  5020. "schema": {
  5021. "type": "string"
  5022. },
  5023. "required": true
  5024. },
  5025. {
  5026. "name": "location",
  5027. "in": "query",
  5028. "schema": {
  5029. "anyOf": [
  5030. {
  5031. "type": "object",
  5032. "properties": {
  5033. "directory": {
  5034. "anyOf": [
  5035. {
  5036. "type": "string"
  5037. },
  5038. {
  5039. "type": "null"
  5040. }
  5041. ]
  5042. },
  5043. "workspace": {
  5044. "anyOf": [
  5045. {
  5046. "type": "string"
  5047. },
  5048. {
  5049. "type": "null"
  5050. }
  5051. ]
  5052. }
  5053. },
  5054. "additionalProperties": false
  5055. },
  5056. {
  5057. "type": "null"
  5058. }
  5059. ]
  5060. },
  5061. "required": false,
  5062. "style": "deepObject",
  5063. "explode": true
  5064. }
  5065. ],
  5066. "security": [],
  5067. "responses": {
  5068. "200": {
  5069. "description": "Success",
  5070. "content": {
  5071. "application/json": {
  5072. "schema": {
  5073. "type": "object",
  5074. "properties": {
  5075. "location": {
  5076. "$ref": "#/components/schemas/Location.Info"
  5077. },
  5078. "data": {
  5079. "$ref": "#/components/schemas/Integration.Attempt"
  5080. }
  5081. },
  5082. "required": [
  5083. "location",
  5084. "data"
  5085. ],
  5086. "additionalProperties": false
  5087. }
  5088. }
  5089. }
  5090. },
  5091. "400": {
  5092. "description": "InvalidRequestError",
  5093. "content": {
  5094. "application/json": {
  5095. "schema": {
  5096. "anyOf": [
  5097. {
  5098. "$ref": "#/components/schemas/InvalidRequestError1"
  5099. },
  5100. {
  5101. "$ref": "#/components/schemas/InvalidRequestError"
  5102. }
  5103. ]
  5104. }
  5105. }
  5106. }
  5107. },
  5108. "401": {
  5109. "description": "UnauthorizedError",
  5110. "content": {
  5111. "application/json": {
  5112. "schema": {
  5113. "$ref": "#/components/schemas/UnauthorizedError"
  5114. }
  5115. }
  5116. }
  5117. }
  5118. },
  5119. "description": "Start an OAuth attempt and return the authorization details.",
  5120. "summary": "Begin OAuth connection",
  5121. "requestBody": {
  5122. "content": {
  5123. "application/json": {
  5124. "schema": {
  5125. "type": "object",
  5126. "properties": {
  5127. "methodID": {
  5128. "type": "string"
  5129. },
  5130. "inputs": {
  5131. "type": "object",
  5132. "additionalProperties": {
  5133. "type": "string"
  5134. }
  5135. },
  5136. "label": {
  5137. "anyOf": [
  5138. {
  5139. "type": "string"
  5140. },
  5141. {
  5142. "type": "null"
  5143. }
  5144. ]
  5145. }
  5146. },
  5147. "required": [
  5148. "methodID",
  5149. "inputs"
  5150. ],
  5151. "additionalProperties": false
  5152. }
  5153. }
  5154. },
  5155. "required": true
  5156. }
  5157. }
  5158. },
  5159. "/api/integration/{integrationID}/connect/oauth/{attemptID}": {
  5160. "get": {
  5161. "tags": [
  5162. "integration"
  5163. ],
  5164. "operationId": "v2.integration.oauth.status",
  5165. "parameters": [
  5166. {
  5167. "name": "integrationID",
  5168. "in": "path",
  5169. "schema": {
  5170. "type": "string"
  5171. },
  5172. "required": true
  5173. },
  5174. {
  5175. "name": "attemptID",
  5176. "in": "path",
  5177. "schema": {
  5178. "type": "string"
  5179. },
  5180. "required": true
  5181. },
  5182. {
  5183. "name": "location",
  5184. "in": "query",
  5185. "schema": {
  5186. "anyOf": [
  5187. {
  5188. "type": "object",
  5189. "properties": {
  5190. "directory": {
  5191. "anyOf": [
  5192. {
  5193. "type": "string"
  5194. },
  5195. {
  5196. "type": "null"
  5197. }
  5198. ]
  5199. },
  5200. "workspace": {
  5201. "anyOf": [
  5202. {
  5203. "type": "string"
  5204. },
  5205. {
  5206. "type": "null"
  5207. }
  5208. ]
  5209. }
  5210. },
  5211. "additionalProperties": false
  5212. },
  5213. {
  5214. "type": "null"
  5215. }
  5216. ]
  5217. },
  5218. "required": false,
  5219. "style": "deepObject",
  5220. "explode": true
  5221. }
  5222. ],
  5223. "security": [],
  5224. "responses": {
  5225. "200": {
  5226. "description": "Success",
  5227. "content": {
  5228. "application/json": {
  5229. "schema": {
  5230. "type": "object",
  5231. "properties": {
  5232. "location": {
  5233. "$ref": "#/components/schemas/Location.Info"
  5234. },
  5235. "data": {
  5236. "$ref": "#/components/schemas/Integration.AttemptStatus"
  5237. }
  5238. },
  5239. "required": [
  5240. "location",
  5241. "data"
  5242. ],
  5243. "additionalProperties": false
  5244. }
  5245. }
  5246. }
  5247. },
  5248. "400": {
  5249. "description": "InvalidRequestError",
  5250. "content": {
  5251. "application/json": {
  5252. "schema": {
  5253. "$ref": "#/components/schemas/InvalidRequestError"
  5254. }
  5255. }
  5256. }
  5257. },
  5258. "401": {
  5259. "description": "UnauthorizedError",
  5260. "content": {
  5261. "application/json": {
  5262. "schema": {
  5263. "$ref": "#/components/schemas/UnauthorizedError"
  5264. }
  5265. }
  5266. }
  5267. }
  5268. },
  5269. "description": "Poll the current status of an OAuth attempt.",
  5270. "summary": "Get OAuth attempt status"
  5271. },
  5272. "delete": {
  5273. "tags": [
  5274. "integration"
  5275. ],
  5276. "operationId": "v2.integration.oauth.cancel",
  5277. "parameters": [
  5278. {
  5279. "name": "integrationID",
  5280. "in": "path",
  5281. "schema": {
  5282. "type": "string"
  5283. },
  5284. "required": true
  5285. },
  5286. {
  5287. "name": "attemptID",
  5288. "in": "path",
  5289. "schema": {
  5290. "type": "string"
  5291. },
  5292. "required": true
  5293. },
  5294. {
  5295. "name": "location",
  5296. "in": "query",
  5297. "schema": {
  5298. "anyOf": [
  5299. {
  5300. "type": "object",
  5301. "properties": {
  5302. "directory": {
  5303. "anyOf": [
  5304. {
  5305. "type": "string"
  5306. },
  5307. {
  5308. "type": "null"
  5309. }
  5310. ]
  5311. },
  5312. "workspace": {
  5313. "anyOf": [
  5314. {
  5315. "type": "string"
  5316. },
  5317. {
  5318. "type": "null"
  5319. }
  5320. ]
  5321. }
  5322. },
  5323. "additionalProperties": false
  5324. },
  5325. {
  5326. "type": "null"
  5327. }
  5328. ]
  5329. },
  5330. "required": false,
  5331. "style": "deepObject",
  5332. "explode": true
  5333. }
  5334. ],
  5335. "security": [],
  5336. "responses": {
  5337. "204": {
  5338. "description": "<No Content>"
  5339. },
  5340. "400": {
  5341. "description": "InvalidRequestError",
  5342. "content": {
  5343. "application/json": {
  5344. "schema": {
  5345. "$ref": "#/components/schemas/InvalidRequestError"
  5346. }
  5347. }
  5348. }
  5349. },
  5350. "401": {
  5351. "description": "UnauthorizedError",
  5352. "content": {
  5353. "application/json": {
  5354. "schema": {
  5355. "$ref": "#/components/schemas/UnauthorizedError"
  5356. }
  5357. }
  5358. }
  5359. }
  5360. },
  5361. "description": "Cancel an OAuth attempt and release its resources.",
  5362. "summary": "Cancel OAuth connection"
  5363. }
  5364. },
  5365. "/api/integration/{integrationID}/connect/oauth/{attemptID}/complete": {
  5366. "post": {
  5367. "tags": [
  5368. "integration"
  5369. ],
  5370. "operationId": "v2.integration.oauth.complete",
  5371. "parameters": [
  5372. {
  5373. "name": "integrationID",
  5374. "in": "path",
  5375. "schema": {
  5376. "type": "string"
  5377. },
  5378. "required": true
  5379. },
  5380. {
  5381. "name": "attemptID",
  5382. "in": "path",
  5383. "schema": {
  5384. "type": "string"
  5385. },
  5386. "required": true
  5387. },
  5388. {
  5389. "name": "location",
  5390. "in": "query",
  5391. "schema": {
  5392. "anyOf": [
  5393. {
  5394. "type": "object",
  5395. "properties": {
  5396. "directory": {
  5397. "anyOf": [
  5398. {
  5399. "type": "string"
  5400. },
  5401. {
  5402. "type": "null"
  5403. }
  5404. ]
  5405. },
  5406. "workspace": {
  5407. "anyOf": [
  5408. {
  5409. "type": "string"
  5410. },
  5411. {
  5412. "type": "null"
  5413. }
  5414. ]
  5415. }
  5416. },
  5417. "additionalProperties": false
  5418. },
  5419. {
  5420. "type": "null"
  5421. }
  5422. ]
  5423. },
  5424. "required": false,
  5425. "style": "deepObject",
  5426. "explode": true
  5427. }
  5428. ],
  5429. "security": [],
  5430. "responses": {
  5431. "204": {
  5432. "description": "<No Content>"
  5433. },
  5434. "400": {
  5435. "description": "InvalidRequestError",
  5436. "content": {
  5437. "application/json": {
  5438. "schema": {
  5439. "anyOf": [
  5440. {
  5441. "$ref": "#/components/schemas/InvalidRequestError1"
  5442. },
  5443. {
  5444. "$ref": "#/components/schemas/InvalidRequestError"
  5445. }
  5446. ]
  5447. }
  5448. }
  5449. }
  5450. },
  5451. "401": {
  5452. "description": "UnauthorizedError",
  5453. "content": {
  5454. "application/json": {
  5455. "schema": {
  5456. "$ref": "#/components/schemas/UnauthorizedError"
  5457. }
  5458. }
  5459. }
  5460. }
  5461. },
  5462. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  5463. "summary": "Complete OAuth connection",
  5464. "requestBody": {
  5465. "content": {
  5466. "application/json": {
  5467. "schema": {
  5468. "type": "object",
  5469. "properties": {
  5470. "code": {
  5471. "anyOf": [
  5472. {
  5473. "type": "string"
  5474. },
  5475. {
  5476. "type": "null"
  5477. }
  5478. ]
  5479. }
  5480. },
  5481. "additionalProperties": false
  5482. }
  5483. }
  5484. },
  5485. "required": true
  5486. }
  5487. }
  5488. },
  5489. "/api/integration/{integrationID}/connect/command": {
  5490. "post": {
  5491. "tags": [
  5492. "integration"
  5493. ],
  5494. "operationId": "v2.integration.command.connect",
  5495. "parameters": [
  5496. {
  5497. "name": "integrationID",
  5498. "in": "path",
  5499. "schema": {
  5500. "type": "string"
  5501. },
  5502. "required": true
  5503. },
  5504. {
  5505. "name": "location",
  5506. "in": "query",
  5507. "schema": {
  5508. "anyOf": [
  5509. {
  5510. "type": "object",
  5511. "properties": {
  5512. "directory": {
  5513. "anyOf": [
  5514. {
  5515. "type": "string"
  5516. },
  5517. {
  5518. "type": "null"
  5519. }
  5520. ]
  5521. },
  5522. "workspace": {
  5523. "anyOf": [
  5524. {
  5525. "type": "string"
  5526. },
  5527. {
  5528. "type": "null"
  5529. }
  5530. ]
  5531. }
  5532. },
  5533. "additionalProperties": false
  5534. },
  5535. {
  5536. "type": "null"
  5537. }
  5538. ]
  5539. },
  5540. "required": false,
  5541. "style": "deepObject",
  5542. "explode": true
  5543. }
  5544. ],
  5545. "security": [],
  5546. "responses": {
  5547. "200": {
  5548. "description": "Success",
  5549. "content": {
  5550. "application/json": {
  5551. "schema": {
  5552. "type": "object",
  5553. "properties": {
  5554. "location": {
  5555. "$ref": "#/components/schemas/Location.Info"
  5556. },
  5557. "data": {
  5558. "$ref": "#/components/schemas/Integration.CommandAttempt"
  5559. }
  5560. },
  5561. "required": [
  5562. "location",
  5563. "data"
  5564. ],
  5565. "additionalProperties": false
  5566. }
  5567. }
  5568. }
  5569. },
  5570. "400": {
  5571. "description": "InvalidRequestError",
  5572. "content": {
  5573. "application/json": {
  5574. "schema": {
  5575. "anyOf": [
  5576. {
  5577. "$ref": "#/components/schemas/InvalidRequestError1"
  5578. },
  5579. {
  5580. "$ref": "#/components/schemas/InvalidRequestError"
  5581. }
  5582. ]
  5583. }
  5584. }
  5585. }
  5586. },
  5587. "401": {
  5588. "description": "UnauthorizedError",
  5589. "content": {
  5590. "application/json": {
  5591. "schema": {
  5592. "$ref": "#/components/schemas/UnauthorizedError"
  5593. }
  5594. }
  5595. }
  5596. }
  5597. },
  5598. "description": "Start a command authentication attempt.",
  5599. "summary": "Begin command connection",
  5600. "requestBody": {
  5601. "content": {
  5602. "application/json": {
  5603. "schema": {
  5604. "type": "object",
  5605. "properties": {
  5606. "methodID": {
  5607. "type": "string"
  5608. },
  5609. "label": {
  5610. "anyOf": [
  5611. {
  5612. "type": "string"
  5613. },
  5614. {
  5615. "type": "null"
  5616. }
  5617. ]
  5618. }
  5619. },
  5620. "required": [
  5621. "methodID"
  5622. ],
  5623. "additionalProperties": false
  5624. }
  5625. }
  5626. },
  5627. "required": true
  5628. }
  5629. }
  5630. },
  5631. "/api/integration/{integrationID}/connect/command/{attemptID}": {
  5632. "get": {
  5633. "tags": [
  5634. "integration"
  5635. ],
  5636. "operationId": "v2.integration.command.status",
  5637. "parameters": [
  5638. {
  5639. "name": "integrationID",
  5640. "in": "path",
  5641. "schema": {
  5642. "type": "string"
  5643. },
  5644. "required": true
  5645. },
  5646. {
  5647. "name": "attemptID",
  5648. "in": "path",
  5649. "schema": {
  5650. "type": "string"
  5651. },
  5652. "required": true
  5653. },
  5654. {
  5655. "name": "location",
  5656. "in": "query",
  5657. "schema": {
  5658. "anyOf": [
  5659. {
  5660. "type": "object",
  5661. "properties": {
  5662. "directory": {
  5663. "anyOf": [
  5664. {
  5665. "type": "string"
  5666. },
  5667. {
  5668. "type": "null"
  5669. }
  5670. ]
  5671. },
  5672. "workspace": {
  5673. "anyOf": [
  5674. {
  5675. "type": "string"
  5676. },
  5677. {
  5678. "type": "null"
  5679. }
  5680. ]
  5681. }
  5682. },
  5683. "additionalProperties": false
  5684. },
  5685. {
  5686. "type": "null"
  5687. }
  5688. ]
  5689. },
  5690. "required": false,
  5691. "style": "deepObject",
  5692. "explode": true
  5693. }
  5694. ],
  5695. "security": [],
  5696. "responses": {
  5697. "200": {
  5698. "description": "Success",
  5699. "content": {
  5700. "application/json": {
  5701. "schema": {
  5702. "type": "object",
  5703. "properties": {
  5704. "location": {
  5705. "$ref": "#/components/schemas/Location.Info"
  5706. },
  5707. "data": {
  5708. "$ref": "#/components/schemas/Integration.CommandAttemptStatus"
  5709. }
  5710. },
  5711. "required": [
  5712. "location",
  5713. "data"
  5714. ],
  5715. "additionalProperties": false
  5716. }
  5717. }
  5718. }
  5719. },
  5720. "400": {
  5721. "description": "InvalidRequestError",
  5722. "content": {
  5723. "application/json": {
  5724. "schema": {
  5725. "$ref": "#/components/schemas/InvalidRequestError"
  5726. }
  5727. }
  5728. }
  5729. },
  5730. "401": {
  5731. "description": "UnauthorizedError",
  5732. "content": {
  5733. "application/json": {
  5734. "schema": {
  5735. "$ref": "#/components/schemas/UnauthorizedError"
  5736. }
  5737. }
  5738. }
  5739. }
  5740. },
  5741. "description": "Poll the current status and output of a command authentication attempt.",
  5742. "summary": "Get command attempt status"
  5743. },
  5744. "delete": {
  5745. "tags": [
  5746. "integration"
  5747. ],
  5748. "operationId": "v2.integration.command.cancel",
  5749. "parameters": [
  5750. {
  5751. "name": "integrationID",
  5752. "in": "path",
  5753. "schema": {
  5754. "type": "string"
  5755. },
  5756. "required": true
  5757. },
  5758. {
  5759. "name": "attemptID",
  5760. "in": "path",
  5761. "schema": {
  5762. "type": "string"
  5763. },
  5764. "required": true
  5765. },
  5766. {
  5767. "name": "location",
  5768. "in": "query",
  5769. "schema": {
  5770. "anyOf": [
  5771. {
  5772. "type": "object",
  5773. "properties": {
  5774. "directory": {
  5775. "anyOf": [
  5776. {
  5777. "type": "string"
  5778. },
  5779. {
  5780. "type": "null"
  5781. }
  5782. ]
  5783. },
  5784. "workspace": {
  5785. "anyOf": [
  5786. {
  5787. "type": "string"
  5788. },
  5789. {
  5790. "type": "null"
  5791. }
  5792. ]
  5793. }
  5794. },
  5795. "additionalProperties": false
  5796. },
  5797. {
  5798. "type": "null"
  5799. }
  5800. ]
  5801. },
  5802. "required": false,
  5803. "style": "deepObject",
  5804. "explode": true
  5805. }
  5806. ],
  5807. "security": [],
  5808. "responses": {
  5809. "204": {
  5810. "description": "<No Content>"
  5811. },
  5812. "400": {
  5813. "description": "InvalidRequestError",
  5814. "content": {
  5815. "application/json": {
  5816. "schema": {
  5817. "$ref": "#/components/schemas/InvalidRequestError"
  5818. }
  5819. }
  5820. }
  5821. },
  5822. "401": {
  5823. "description": "UnauthorizedError",
  5824. "content": {
  5825. "application/json": {
  5826. "schema": {
  5827. "$ref": "#/components/schemas/UnauthorizedError"
  5828. }
  5829. }
  5830. }
  5831. }
  5832. },
  5833. "description": "Cancel a command authentication attempt and terminate its process.",
  5834. "summary": "Cancel command connection"
  5835. }
  5836. },
  5837. "/api/mcp": {
  5838. "get": {
  5839. "tags": [
  5840. "mcp"
  5841. ],
  5842. "operationId": "v2.mcp.list",
  5843. "parameters": [
  5844. {
  5845. "name": "location",
  5846. "in": "query",
  5847. "schema": {
  5848. "anyOf": [
  5849. {
  5850. "type": "object",
  5851. "properties": {
  5852. "directory": {
  5853. "anyOf": [
  5854. {
  5855. "type": "string"
  5856. },
  5857. {
  5858. "type": "null"
  5859. }
  5860. ]
  5861. },
  5862. "workspace": {
  5863. "anyOf": [
  5864. {
  5865. "type": "string"
  5866. },
  5867. {
  5868. "type": "null"
  5869. }
  5870. ]
  5871. }
  5872. },
  5873. "additionalProperties": false
  5874. },
  5875. {
  5876. "type": "null"
  5877. }
  5878. ]
  5879. },
  5880. "required": false,
  5881. "style": "deepObject",
  5882. "explode": true
  5883. }
  5884. ],
  5885. "security": [],
  5886. "responses": {
  5887. "200": {
  5888. "description": "Success",
  5889. "content": {
  5890. "application/json": {
  5891. "schema": {
  5892. "type": "object",
  5893. "properties": {
  5894. "location": {
  5895. "$ref": "#/components/schemas/Location.Info"
  5896. },
  5897. "data": {
  5898. "type": "array",
  5899. "items": {
  5900. "$ref": "#/components/schemas/Mcp.Server"
  5901. }
  5902. }
  5903. },
  5904. "required": [
  5905. "location",
  5906. "data"
  5907. ],
  5908. "additionalProperties": false
  5909. }
  5910. }
  5911. }
  5912. },
  5913. "400": {
  5914. "description": "InvalidRequestError",
  5915. "content": {
  5916. "application/json": {
  5917. "schema": {
  5918. "$ref": "#/components/schemas/InvalidRequestError"
  5919. }
  5920. }
  5921. }
  5922. },
  5923. "401": {
  5924. "description": "UnauthorizedError",
  5925. "content": {
  5926. "application/json": {
  5927. "schema": {
  5928. "$ref": "#/components/schemas/UnauthorizedError"
  5929. }
  5930. }
  5931. }
  5932. }
  5933. },
  5934. "description": "Retrieve configured MCP servers and their connection status.",
  5935. "summary": "List MCP servers"
  5936. }
  5937. },
  5938. "/api/mcp/{server}": {
  5939. "put": {
  5940. "tags": [
  5941. "mcp"
  5942. ],
  5943. "operationId": "v2.mcp.add",
  5944. "parameters": [
  5945. {
  5946. "name": "server",
  5947. "in": "path",
  5948. "schema": {
  5949. "type": "string"
  5950. },
  5951. "required": true
  5952. },
  5953. {
  5954. "name": "location",
  5955. "in": "query",
  5956. "schema": {
  5957. "anyOf": [
  5958. {
  5959. "type": "object",
  5960. "properties": {
  5961. "directory": {
  5962. "anyOf": [
  5963. {
  5964. "type": "string"
  5965. },
  5966. {
  5967. "type": "null"
  5968. }
  5969. ]
  5970. },
  5971. "workspace": {
  5972. "anyOf": [
  5973. {
  5974. "type": "string"
  5975. },
  5976. {
  5977. "type": "null"
  5978. }
  5979. ]
  5980. }
  5981. },
  5982. "additionalProperties": false
  5983. },
  5984. {
  5985. "type": "null"
  5986. }
  5987. ]
  5988. },
  5989. "required": false,
  5990. "style": "deepObject",
  5991. "explode": true
  5992. }
  5993. ],
  5994. "security": [],
  5995. "responses": {
  5996. "204": {
  5997. "description": "<No Content>"
  5998. },
  5999. "400": {
  6000. "description": "InvalidRequestError",
  6001. "content": {
  6002. "application/json": {
  6003. "schema": {
  6004. "$ref": "#/components/schemas/InvalidRequestError"
  6005. }
  6006. }
  6007. }
  6008. },
  6009. "401": {
  6010. "description": "UnauthorizedError",
  6011. "content": {
  6012. "application/json": {
  6013. "schema": {
  6014. "$ref": "#/components/schemas/UnauthorizedError"
  6015. }
  6016. }
  6017. }
  6018. }
  6019. },
  6020. "description": "Add an MCP server at runtime or replace an existing one, connecting it immediately.",
  6021. "summary": "Add MCP server",
  6022. "requestBody": {
  6023. "content": {
  6024. "application/json": {
  6025. "schema": {
  6026. "type": "object",
  6027. "properties": {
  6028. "config": {
  6029. "anyOf": [
  6030. {
  6031. "$ref": "#/components/schemas/Mcp.LocalConfig"
  6032. },
  6033. {
  6034. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  6035. }
  6036. ]
  6037. }
  6038. },
  6039. "required": [
  6040. "config"
  6041. ],
  6042. "additionalProperties": false
  6043. }
  6044. }
  6045. },
  6046. "required": true
  6047. }
  6048. },
  6049. "delete": {
  6050. "tags": [
  6051. "mcp"
  6052. ],
  6053. "operationId": "v2.mcp.remove",
  6054. "parameters": [
  6055. {
  6056. "name": "server",
  6057. "in": "path",
  6058. "schema": {
  6059. "type": "string"
  6060. },
  6061. "required": true
  6062. },
  6063. {
  6064. "name": "location",
  6065. "in": "query",
  6066. "schema": {
  6067. "anyOf": [
  6068. {
  6069. "type": "object",
  6070. "properties": {
  6071. "directory": {
  6072. "anyOf": [
  6073. {
  6074. "type": "string"
  6075. },
  6076. {
  6077. "type": "null"
  6078. }
  6079. ]
  6080. },
  6081. "workspace": {
  6082. "anyOf": [
  6083. {
  6084. "type": "string"
  6085. },
  6086. {
  6087. "type": "null"
  6088. }
  6089. ]
  6090. }
  6091. },
  6092. "additionalProperties": false
  6093. },
  6094. {
  6095. "type": "null"
  6096. }
  6097. ]
  6098. },
  6099. "required": false,
  6100. "style": "deepObject",
  6101. "explode": true
  6102. }
  6103. ],
  6104. "security": [],
  6105. "responses": {
  6106. "204": {
  6107. "description": "<No Content>"
  6108. },
  6109. "400": {
  6110. "description": "InvalidRequestError",
  6111. "content": {
  6112. "application/json": {
  6113. "schema": {
  6114. "$ref": "#/components/schemas/InvalidRequestError"
  6115. }
  6116. }
  6117. }
  6118. },
  6119. "401": {
  6120. "description": "UnauthorizedError",
  6121. "content": {
  6122. "application/json": {
  6123. "schema": {
  6124. "$ref": "#/components/schemas/UnauthorizedError"
  6125. }
  6126. }
  6127. }
  6128. },
  6129. "404": {
  6130. "description": "McpServerNotFoundError",
  6131. "content": {
  6132. "application/json": {
  6133. "schema": {
  6134. "$ref": "#/components/schemas/McpServerNotFoundError"
  6135. }
  6136. }
  6137. }
  6138. }
  6139. },
  6140. "description": "Stop an MCP server and remove it from the runtime set until restart.",
  6141. "summary": "Remove MCP server"
  6142. }
  6143. },
  6144. "/api/mcp/{server}/connect": {
  6145. "post": {
  6146. "tags": [
  6147. "mcp"
  6148. ],
  6149. "operationId": "v2.mcp.connect",
  6150. "parameters": [
  6151. {
  6152. "name": "server",
  6153. "in": "path",
  6154. "schema": {
  6155. "type": "string"
  6156. },
  6157. "required": true
  6158. },
  6159. {
  6160. "name": "location",
  6161. "in": "query",
  6162. "schema": {
  6163. "anyOf": [
  6164. {
  6165. "type": "object",
  6166. "properties": {
  6167. "directory": {
  6168. "anyOf": [
  6169. {
  6170. "type": "string"
  6171. },
  6172. {
  6173. "type": "null"
  6174. }
  6175. ]
  6176. },
  6177. "workspace": {
  6178. "anyOf": [
  6179. {
  6180. "type": "string"
  6181. },
  6182. {
  6183. "type": "null"
  6184. }
  6185. ]
  6186. }
  6187. },
  6188. "additionalProperties": false
  6189. },
  6190. {
  6191. "type": "null"
  6192. }
  6193. ]
  6194. },
  6195. "required": false,
  6196. "style": "deepObject",
  6197. "explode": true
  6198. }
  6199. ],
  6200. "security": [],
  6201. "responses": {
  6202. "204": {
  6203. "description": "<No Content>"
  6204. },
  6205. "400": {
  6206. "description": "InvalidRequestError",
  6207. "content": {
  6208. "application/json": {
  6209. "schema": {
  6210. "$ref": "#/components/schemas/InvalidRequestError"
  6211. }
  6212. }
  6213. }
  6214. },
  6215. "401": {
  6216. "description": "UnauthorizedError",
  6217. "content": {
  6218. "application/json": {
  6219. "schema": {
  6220. "$ref": "#/components/schemas/UnauthorizedError"
  6221. }
  6222. }
  6223. }
  6224. },
  6225. "404": {
  6226. "description": "McpServerNotFoundError",
  6227. "content": {
  6228. "application/json": {
  6229. "schema": {
  6230. "$ref": "#/components/schemas/McpServerNotFoundError"
  6231. }
  6232. }
  6233. }
  6234. }
  6235. },
  6236. "description": "Connect an MCP server at runtime, overriding a disabled configuration until restart.",
  6237. "summary": "Connect MCP server"
  6238. }
  6239. },
  6240. "/api/mcp/{server}/disconnect": {
  6241. "post": {
  6242. "tags": [
  6243. "mcp"
  6244. ],
  6245. "operationId": "v2.mcp.disconnect",
  6246. "parameters": [
  6247. {
  6248. "name": "server",
  6249. "in": "path",
  6250. "schema": {
  6251. "type": "string"
  6252. },
  6253. "required": true
  6254. },
  6255. {
  6256. "name": "location",
  6257. "in": "query",
  6258. "schema": {
  6259. "anyOf": [
  6260. {
  6261. "type": "object",
  6262. "properties": {
  6263. "directory": {
  6264. "anyOf": [
  6265. {
  6266. "type": "string"
  6267. },
  6268. {
  6269. "type": "null"
  6270. }
  6271. ]
  6272. },
  6273. "workspace": {
  6274. "anyOf": [
  6275. {
  6276. "type": "string"
  6277. },
  6278. {
  6279. "type": "null"
  6280. }
  6281. ]
  6282. }
  6283. },
  6284. "additionalProperties": false
  6285. },
  6286. {
  6287. "type": "null"
  6288. }
  6289. ]
  6290. },
  6291. "required": false,
  6292. "style": "deepObject",
  6293. "explode": true
  6294. }
  6295. ],
  6296. "security": [],
  6297. "responses": {
  6298. "204": {
  6299. "description": "<No Content>"
  6300. },
  6301. "400": {
  6302. "description": "InvalidRequestError",
  6303. "content": {
  6304. "application/json": {
  6305. "schema": {
  6306. "$ref": "#/components/schemas/InvalidRequestError"
  6307. }
  6308. }
  6309. }
  6310. },
  6311. "401": {
  6312. "description": "UnauthorizedError",
  6313. "content": {
  6314. "application/json": {
  6315. "schema": {
  6316. "$ref": "#/components/schemas/UnauthorizedError"
  6317. }
  6318. }
  6319. }
  6320. },
  6321. "404": {
  6322. "description": "McpServerNotFoundError",
  6323. "content": {
  6324. "application/json": {
  6325. "schema": {
  6326. "$ref": "#/components/schemas/McpServerNotFoundError"
  6327. }
  6328. }
  6329. }
  6330. }
  6331. },
  6332. "description": "Disconnect an MCP server at runtime, removing its tools until reconnected.",
  6333. "summary": "Disconnect MCP server"
  6334. }
  6335. },
  6336. "/api/mcp/resource": {
  6337. "get": {
  6338. "tags": [
  6339. "mcp"
  6340. ],
  6341. "operationId": "v2.mcp.resource.catalog",
  6342. "parameters": [
  6343. {
  6344. "name": "location",
  6345. "in": "query",
  6346. "schema": {
  6347. "anyOf": [
  6348. {
  6349. "type": "object",
  6350. "properties": {
  6351. "directory": {
  6352. "anyOf": [
  6353. {
  6354. "type": "string"
  6355. },
  6356. {
  6357. "type": "null"
  6358. }
  6359. ]
  6360. },
  6361. "workspace": {
  6362. "anyOf": [
  6363. {
  6364. "type": "string"
  6365. },
  6366. {
  6367. "type": "null"
  6368. }
  6369. ]
  6370. }
  6371. },
  6372. "additionalProperties": false
  6373. },
  6374. {
  6375. "type": "null"
  6376. }
  6377. ]
  6378. },
  6379. "required": false,
  6380. "style": "deepObject",
  6381. "explode": true
  6382. }
  6383. ],
  6384. "security": [],
  6385. "responses": {
  6386. "200": {
  6387. "description": "Success",
  6388. "content": {
  6389. "application/json": {
  6390. "schema": {
  6391. "type": "object",
  6392. "properties": {
  6393. "location": {
  6394. "$ref": "#/components/schemas/Location.Info"
  6395. },
  6396. "data": {
  6397. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  6398. }
  6399. },
  6400. "required": [
  6401. "location",
  6402. "data"
  6403. ],
  6404. "additionalProperties": false
  6405. }
  6406. }
  6407. }
  6408. },
  6409. "400": {
  6410. "description": "InvalidRequestError",
  6411. "content": {
  6412. "application/json": {
  6413. "schema": {
  6414. "$ref": "#/components/schemas/InvalidRequestError"
  6415. }
  6416. }
  6417. }
  6418. },
  6419. "401": {
  6420. "description": "UnauthorizedError",
  6421. "content": {
  6422. "application/json": {
  6423. "schema": {
  6424. "$ref": "#/components/schemas/UnauthorizedError"
  6425. }
  6426. }
  6427. }
  6428. }
  6429. },
  6430. "description": "Retrieve resources and resource templates from connected MCP servers.",
  6431. "summary": "List MCP resources"
  6432. }
  6433. },
  6434. "/api/credential/{credentialID}": {
  6435. "patch": {
  6436. "tags": [
  6437. "credential"
  6438. ],
  6439. "operationId": "v2.credential.update",
  6440. "parameters": [
  6441. {
  6442. "name": "credentialID",
  6443. "in": "path",
  6444. "schema": {
  6445. "type": "string"
  6446. },
  6447. "required": true
  6448. },
  6449. {
  6450. "name": "location",
  6451. "in": "query",
  6452. "schema": {
  6453. "anyOf": [
  6454. {
  6455. "type": "object",
  6456. "properties": {
  6457. "directory": {
  6458. "anyOf": [
  6459. {
  6460. "type": "string"
  6461. },
  6462. {
  6463. "type": "null"
  6464. }
  6465. ]
  6466. },
  6467. "workspace": {
  6468. "anyOf": [
  6469. {
  6470. "type": "string"
  6471. },
  6472. {
  6473. "type": "null"
  6474. }
  6475. ]
  6476. }
  6477. },
  6478. "additionalProperties": false
  6479. },
  6480. {
  6481. "type": "null"
  6482. }
  6483. ]
  6484. },
  6485. "required": false,
  6486. "style": "deepObject",
  6487. "explode": true
  6488. }
  6489. ],
  6490. "security": [],
  6491. "responses": {
  6492. "204": {
  6493. "description": "<No Content>"
  6494. },
  6495. "400": {
  6496. "description": "InvalidRequestError",
  6497. "content": {
  6498. "application/json": {
  6499. "schema": {
  6500. "$ref": "#/components/schemas/InvalidRequestError"
  6501. }
  6502. }
  6503. }
  6504. },
  6505. "401": {
  6506. "description": "UnauthorizedError",
  6507. "content": {
  6508. "application/json": {
  6509. "schema": {
  6510. "$ref": "#/components/schemas/UnauthorizedError"
  6511. }
  6512. }
  6513. }
  6514. }
  6515. },
  6516. "description": "Update a stored credential label.",
  6517. "summary": "Update credential",
  6518. "requestBody": {
  6519. "content": {
  6520. "application/json": {
  6521. "schema": {
  6522. "type": "object",
  6523. "properties": {
  6524. "label": {
  6525. "type": "string"
  6526. }
  6527. },
  6528. "required": [
  6529. "label"
  6530. ],
  6531. "additionalProperties": false
  6532. }
  6533. }
  6534. },
  6535. "required": true
  6536. }
  6537. },
  6538. "delete": {
  6539. "tags": [
  6540. "credential"
  6541. ],
  6542. "operationId": "v2.credential.remove",
  6543. "parameters": [
  6544. {
  6545. "name": "credentialID",
  6546. "in": "path",
  6547. "schema": {
  6548. "type": "string"
  6549. },
  6550. "required": true
  6551. },
  6552. {
  6553. "name": "location",
  6554. "in": "query",
  6555. "schema": {
  6556. "anyOf": [
  6557. {
  6558. "type": "object",
  6559. "properties": {
  6560. "directory": {
  6561. "anyOf": [
  6562. {
  6563. "type": "string"
  6564. },
  6565. {
  6566. "type": "null"
  6567. }
  6568. ]
  6569. },
  6570. "workspace": {
  6571. "anyOf": [
  6572. {
  6573. "type": "string"
  6574. },
  6575. {
  6576. "type": "null"
  6577. }
  6578. ]
  6579. }
  6580. },
  6581. "additionalProperties": false
  6582. },
  6583. {
  6584. "type": "null"
  6585. }
  6586. ]
  6587. },
  6588. "required": false,
  6589. "style": "deepObject",
  6590. "explode": true
  6591. }
  6592. ],
  6593. "security": [],
  6594. "responses": {
  6595. "204": {
  6596. "description": "<No Content>"
  6597. },
  6598. "400": {
  6599. "description": "InvalidRequestError",
  6600. "content": {
  6601. "application/json": {
  6602. "schema": {
  6603. "$ref": "#/components/schemas/InvalidRequestError"
  6604. }
  6605. }
  6606. }
  6607. },
  6608. "401": {
  6609. "description": "UnauthorizedError",
  6610. "content": {
  6611. "application/json": {
  6612. "schema": {
  6613. "$ref": "#/components/schemas/UnauthorizedError"
  6614. }
  6615. }
  6616. }
  6617. }
  6618. },
  6619. "description": "Remove a stored integration credential.",
  6620. "summary": "Remove credential"
  6621. }
  6622. },
  6623. "/api/project": {
  6624. "get": {
  6625. "tags": [
  6626. "project"
  6627. ],
  6628. "operationId": "v2.project.list",
  6629. "parameters": [],
  6630. "security": [],
  6631. "responses": {
  6632. "200": {
  6633. "description": "Success",
  6634. "content": {
  6635. "application/json": {
  6636. "schema": {
  6637. "type": "array",
  6638. "items": {
  6639. "$ref": "#/components/schemas/Project"
  6640. }
  6641. }
  6642. }
  6643. }
  6644. },
  6645. "400": {
  6646. "description": "InvalidRequestError",
  6647. "content": {
  6648. "application/json": {
  6649. "schema": {
  6650. "$ref": "#/components/schemas/InvalidRequestError"
  6651. }
  6652. }
  6653. }
  6654. },
  6655. "401": {
  6656. "description": "UnauthorizedError",
  6657. "content": {
  6658. "application/json": {
  6659. "schema": {
  6660. "$ref": "#/components/schemas/UnauthorizedError"
  6661. }
  6662. }
  6663. }
  6664. }
  6665. },
  6666. "description": "List known projects.",
  6667. "summary": "List projects"
  6668. }
  6669. },
  6670. "/api/project/current": {
  6671. "get": {
  6672. "tags": [
  6673. "project"
  6674. ],
  6675. "operationId": "v2.project.current",
  6676. "parameters": [
  6677. {
  6678. "name": "location",
  6679. "in": "query",
  6680. "schema": {
  6681. "anyOf": [
  6682. {
  6683. "type": "object",
  6684. "properties": {
  6685. "directory": {
  6686. "anyOf": [
  6687. {
  6688. "type": "string"
  6689. },
  6690. {
  6691. "type": "null"
  6692. }
  6693. ]
  6694. },
  6695. "workspace": {
  6696. "anyOf": [
  6697. {
  6698. "type": "string"
  6699. },
  6700. {
  6701. "type": "null"
  6702. }
  6703. ]
  6704. }
  6705. },
  6706. "additionalProperties": false
  6707. },
  6708. {
  6709. "type": "null"
  6710. }
  6711. ]
  6712. },
  6713. "required": false,
  6714. "style": "deepObject",
  6715. "explode": true
  6716. }
  6717. ],
  6718. "security": [],
  6719. "responses": {
  6720. "200": {
  6721. "description": "Project.Current",
  6722. "content": {
  6723. "application/json": {
  6724. "schema": {
  6725. "$ref": "#/components/schemas/Project.Current"
  6726. }
  6727. }
  6728. }
  6729. },
  6730. "400": {
  6731. "description": "InvalidRequestError",
  6732. "content": {
  6733. "application/json": {
  6734. "schema": {
  6735. "$ref": "#/components/schemas/InvalidRequestError"
  6736. }
  6737. }
  6738. }
  6739. },
  6740. "401": {
  6741. "description": "UnauthorizedError",
  6742. "content": {
  6743. "application/json": {
  6744. "schema": {
  6745. "$ref": "#/components/schemas/UnauthorizedError"
  6746. }
  6747. }
  6748. }
  6749. }
  6750. },
  6751. "description": "Resolve the project for the requested location.",
  6752. "summary": "Get current project"
  6753. }
  6754. },
  6755. "/api/project/{projectID}/directories": {
  6756. "get": {
  6757. "tags": [
  6758. "project"
  6759. ],
  6760. "operationId": "v2.project.directories",
  6761. "parameters": [
  6762. {
  6763. "name": "projectID",
  6764. "in": "path",
  6765. "schema": {
  6766. "type": "string"
  6767. },
  6768. "required": true
  6769. },
  6770. {
  6771. "name": "location",
  6772. "in": "query",
  6773. "schema": {
  6774. "anyOf": [
  6775. {
  6776. "type": "object",
  6777. "properties": {
  6778. "directory": {
  6779. "anyOf": [
  6780. {
  6781. "type": "string"
  6782. },
  6783. {
  6784. "type": "null"
  6785. }
  6786. ]
  6787. },
  6788. "workspace": {
  6789. "anyOf": [
  6790. {
  6791. "type": "string"
  6792. },
  6793. {
  6794. "type": "null"
  6795. }
  6796. ]
  6797. }
  6798. },
  6799. "additionalProperties": false
  6800. },
  6801. {
  6802. "type": "null"
  6803. }
  6804. ]
  6805. },
  6806. "required": false,
  6807. "style": "deepObject",
  6808. "explode": true
  6809. }
  6810. ],
  6811. "security": [],
  6812. "responses": {
  6813. "200": {
  6814. "description": "Project.Directories",
  6815. "content": {
  6816. "application/json": {
  6817. "schema": {
  6818. "$ref": "#/components/schemas/Project.Directories"
  6819. }
  6820. }
  6821. }
  6822. },
  6823. "400": {
  6824. "description": "InvalidRequestError",
  6825. "content": {
  6826. "application/json": {
  6827. "schema": {
  6828. "$ref": "#/components/schemas/InvalidRequestError"
  6829. }
  6830. }
  6831. }
  6832. },
  6833. "401": {
  6834. "description": "UnauthorizedError",
  6835. "content": {
  6836. "application/json": {
  6837. "schema": {
  6838. "$ref": "#/components/schemas/UnauthorizedError"
  6839. }
  6840. }
  6841. }
  6842. }
  6843. },
  6844. "description": "List known local absolute directories for a project.",
  6845. "summary": "List project directories"
  6846. }
  6847. },
  6848. "/api/form/request": {
  6849. "get": {
  6850. "tags": [
  6851. "form"
  6852. ],
  6853. "operationId": "v2.form.request.list",
  6854. "parameters": [
  6855. {
  6856. "name": "location",
  6857. "in": "query",
  6858. "schema": {
  6859. "anyOf": [
  6860. {
  6861. "type": "object",
  6862. "properties": {
  6863. "directory": {
  6864. "anyOf": [
  6865. {
  6866. "type": "string"
  6867. },
  6868. {
  6869. "type": "null"
  6870. }
  6871. ]
  6872. },
  6873. "workspace": {
  6874. "anyOf": [
  6875. {
  6876. "type": "string"
  6877. },
  6878. {
  6879. "type": "null"
  6880. }
  6881. ]
  6882. }
  6883. },
  6884. "additionalProperties": false
  6885. },
  6886. {
  6887. "type": "null"
  6888. }
  6889. ]
  6890. },
  6891. "required": false,
  6892. "style": "deepObject",
  6893. "explode": true
  6894. }
  6895. ],
  6896. "security": [],
  6897. "responses": {
  6898. "200": {
  6899. "description": "Success",
  6900. "content": {
  6901. "application/json": {
  6902. "schema": {
  6903. "type": "object",
  6904. "properties": {
  6905. "location": {
  6906. "$ref": "#/components/schemas/Location.Info"
  6907. },
  6908. "data": {
  6909. "type": "array",
  6910. "items": {
  6911. "$ref": "#/components/schemas/Form.Info"
  6912. }
  6913. }
  6914. },
  6915. "required": [
  6916. "location",
  6917. "data"
  6918. ],
  6919. "additionalProperties": false
  6920. }
  6921. }
  6922. }
  6923. },
  6924. "400": {
  6925. "description": "InvalidRequestError",
  6926. "content": {
  6927. "application/json": {
  6928. "schema": {
  6929. "$ref": "#/components/schemas/InvalidRequestError"
  6930. }
  6931. }
  6932. }
  6933. },
  6934. "401": {
  6935. "description": "UnauthorizedError",
  6936. "content": {
  6937. "application/json": {
  6938. "schema": {
  6939. "$ref": "#/components/schemas/UnauthorizedError"
  6940. }
  6941. }
  6942. }
  6943. }
  6944. },
  6945. "description": "Retrieve pending forms for a location.",
  6946. "summary": "List pending form requests"
  6947. }
  6948. },
  6949. "/api/session/{sessionID}/form": {
  6950. "get": {
  6951. "tags": [
  6952. "form"
  6953. ],
  6954. "operationId": "v2.session.form.list",
  6955. "parameters": [
  6956. {
  6957. "name": "sessionID",
  6958. "in": "path",
  6959. "schema": {
  6960. "type": "string"
  6961. },
  6962. "required": true
  6963. }
  6964. ],
  6965. "security": [],
  6966. "responses": {
  6967. "200": {
  6968. "description": "Success",
  6969. "content": {
  6970. "application/json": {
  6971. "schema": {
  6972. "type": "object",
  6973. "properties": {
  6974. "data": {
  6975. "type": "array",
  6976. "items": {
  6977. "$ref": "#/components/schemas/Form.Info"
  6978. }
  6979. }
  6980. },
  6981. "required": [
  6982. "data"
  6983. ],
  6984. "additionalProperties": false
  6985. }
  6986. }
  6987. }
  6988. },
  6989. "400": {
  6990. "description": "InvalidRequestError",
  6991. "content": {
  6992. "application/json": {
  6993. "schema": {
  6994. "$ref": "#/components/schemas/InvalidRequestError"
  6995. }
  6996. }
  6997. }
  6998. },
  6999. "401": {
  7000. "description": "UnauthorizedError",
  7001. "content": {
  7002. "application/json": {
  7003. "schema": {
  7004. "$ref": "#/components/schemas/UnauthorizedError"
  7005. }
  7006. }
  7007. }
  7008. },
  7009. "404": {
  7010. "description": "SessionNotFoundError",
  7011. "content": {
  7012. "application/json": {
  7013. "schema": {
  7014. "anyOf": [
  7015. {
  7016. "$ref": "#/components/schemas/SessionNotFoundError"
  7017. },
  7018. {
  7019. "$ref": "#/components/schemas/SessionNotFoundError"
  7020. }
  7021. ]
  7022. }
  7023. }
  7024. }
  7025. }
  7026. },
  7027. "description": "Retrieve pending forms for a session.",
  7028. "summary": "List session forms"
  7029. },
  7030. "post": {
  7031. "tags": [
  7032. "form"
  7033. ],
  7034. "operationId": "v2.session.form.create",
  7035. "parameters": [
  7036. {
  7037. "name": "sessionID",
  7038. "in": "path",
  7039. "schema": {
  7040. "type": "string"
  7041. },
  7042. "required": true
  7043. }
  7044. ],
  7045. "security": [],
  7046. "responses": {
  7047. "200": {
  7048. "description": "Success",
  7049. "content": {
  7050. "application/json": {
  7051. "schema": {
  7052. "type": "object",
  7053. "properties": {
  7054. "data": {
  7055. "$ref": "#/components/schemas/Form.Info"
  7056. }
  7057. },
  7058. "required": [
  7059. "data"
  7060. ],
  7061. "additionalProperties": false
  7062. }
  7063. }
  7064. }
  7065. },
  7066. "400": {
  7067. "description": "InvalidRequestError",
  7068. "content": {
  7069. "application/json": {
  7070. "schema": {
  7071. "anyOf": [
  7072. {
  7073. "$ref": "#/components/schemas/InvalidRequestError1"
  7074. },
  7075. {
  7076. "$ref": "#/components/schemas/InvalidRequestError"
  7077. }
  7078. ]
  7079. }
  7080. }
  7081. }
  7082. },
  7083. "401": {
  7084. "description": "UnauthorizedError",
  7085. "content": {
  7086. "application/json": {
  7087. "schema": {
  7088. "$ref": "#/components/schemas/UnauthorizedError"
  7089. }
  7090. }
  7091. }
  7092. },
  7093. "404": {
  7094. "description": "SessionNotFoundError",
  7095. "content": {
  7096. "application/json": {
  7097. "schema": {
  7098. "anyOf": [
  7099. {
  7100. "$ref": "#/components/schemas/SessionNotFoundError"
  7101. },
  7102. {
  7103. "$ref": "#/components/schemas/SessionNotFoundError"
  7104. }
  7105. ]
  7106. }
  7107. }
  7108. }
  7109. },
  7110. "409": {
  7111. "description": "ConflictError",
  7112. "content": {
  7113. "application/json": {
  7114. "schema": {
  7115. "$ref": "#/components/schemas/ConflictError"
  7116. }
  7117. }
  7118. }
  7119. }
  7120. },
  7121. "description": "Create a form for a session.",
  7122. "summary": "Create session form",
  7123. "requestBody": {
  7124. "content": {
  7125. "application/json": {
  7126. "schema": {
  7127. "$ref": "#/components/schemas/Form.CreatePayload"
  7128. }
  7129. }
  7130. },
  7131. "required": true
  7132. }
  7133. }
  7134. },
  7135. "/api/session/{sessionID}/form/{formID}": {
  7136. "get": {
  7137. "tags": [
  7138. "form"
  7139. ],
  7140. "operationId": "v2.session.form.get",
  7141. "parameters": [
  7142. {
  7143. "name": "sessionID",
  7144. "in": "path",
  7145. "schema": {
  7146. "type": "string"
  7147. },
  7148. "required": true
  7149. },
  7150. {
  7151. "name": "formID",
  7152. "in": "path",
  7153. "schema": {
  7154. "type": "string",
  7155. "allOf": [
  7156. {
  7157. "pattern": "^frm_"
  7158. }
  7159. ]
  7160. },
  7161. "required": true
  7162. }
  7163. ],
  7164. "security": [],
  7165. "responses": {
  7166. "200": {
  7167. "description": "Success",
  7168. "content": {
  7169. "application/json": {
  7170. "schema": {
  7171. "type": "object",
  7172. "properties": {
  7173. "data": {
  7174. "$ref": "#/components/schemas/Form.Info"
  7175. }
  7176. },
  7177. "required": [
  7178. "data"
  7179. ],
  7180. "additionalProperties": false
  7181. }
  7182. }
  7183. }
  7184. },
  7185. "400": {
  7186. "description": "InvalidRequestError",
  7187. "content": {
  7188. "application/json": {
  7189. "schema": {
  7190. "$ref": "#/components/schemas/InvalidRequestError"
  7191. }
  7192. }
  7193. }
  7194. },
  7195. "401": {
  7196. "description": "UnauthorizedError",
  7197. "content": {
  7198. "application/json": {
  7199. "schema": {
  7200. "$ref": "#/components/schemas/UnauthorizedError"
  7201. }
  7202. }
  7203. }
  7204. },
  7205. "404": {
  7206. "description": "SessionNotFoundError | FormNotFoundError",
  7207. "content": {
  7208. "application/json": {
  7209. "schema": {
  7210. "anyOf": [
  7211. {
  7212. "$ref": "#/components/schemas/FormNotFoundError"
  7213. },
  7214. {
  7215. "$ref": "#/components/schemas/SessionNotFoundError"
  7216. },
  7217. {
  7218. "$ref": "#/components/schemas/SessionNotFoundError"
  7219. }
  7220. ]
  7221. }
  7222. }
  7223. }
  7224. }
  7225. },
  7226. "description": "Retrieve a form for a session.",
  7227. "summary": "Get session form"
  7228. }
  7229. },
  7230. "/api/session/{sessionID}/form/{formID}/state": {
  7231. "get": {
  7232. "tags": [
  7233. "form"
  7234. ],
  7235. "operationId": "v2.session.form.state",
  7236. "parameters": [
  7237. {
  7238. "name": "sessionID",
  7239. "in": "path",
  7240. "schema": {
  7241. "type": "string"
  7242. },
  7243. "required": true
  7244. },
  7245. {
  7246. "name": "formID",
  7247. "in": "path",
  7248. "schema": {
  7249. "type": "string",
  7250. "allOf": [
  7251. {
  7252. "pattern": "^frm_"
  7253. }
  7254. ]
  7255. },
  7256. "required": true
  7257. }
  7258. ],
  7259. "security": [],
  7260. "responses": {
  7261. "200": {
  7262. "description": "Success",
  7263. "content": {
  7264. "application/json": {
  7265. "schema": {
  7266. "type": "object",
  7267. "properties": {
  7268. "data": {
  7269. "$ref": "#/components/schemas/Form.State"
  7270. }
  7271. },
  7272. "required": [
  7273. "data"
  7274. ],
  7275. "additionalProperties": false
  7276. }
  7277. }
  7278. }
  7279. },
  7280. "400": {
  7281. "description": "InvalidRequestError",
  7282. "content": {
  7283. "application/json": {
  7284. "schema": {
  7285. "$ref": "#/components/schemas/InvalidRequestError"
  7286. }
  7287. }
  7288. }
  7289. },
  7290. "401": {
  7291. "description": "UnauthorizedError",
  7292. "content": {
  7293. "application/json": {
  7294. "schema": {
  7295. "$ref": "#/components/schemas/UnauthorizedError"
  7296. }
  7297. }
  7298. }
  7299. },
  7300. "404": {
  7301. "description": "SessionNotFoundError | FormNotFoundError",
  7302. "content": {
  7303. "application/json": {
  7304. "schema": {
  7305. "anyOf": [
  7306. {
  7307. "$ref": "#/components/schemas/FormNotFoundError"
  7308. },
  7309. {
  7310. "$ref": "#/components/schemas/SessionNotFoundError"
  7311. },
  7312. {
  7313. "$ref": "#/components/schemas/SessionNotFoundError"
  7314. }
  7315. ]
  7316. }
  7317. }
  7318. }
  7319. }
  7320. },
  7321. "description": "Retrieve the current state for a form.",
  7322. "summary": "Get form state"
  7323. }
  7324. },
  7325. "/api/session/{sessionID}/form/{formID}/reply": {
  7326. "post": {
  7327. "tags": [
  7328. "form"
  7329. ],
  7330. "operationId": "v2.session.form.reply",
  7331. "parameters": [
  7332. {
  7333. "name": "sessionID",
  7334. "in": "path",
  7335. "schema": {
  7336. "type": "string"
  7337. },
  7338. "required": true
  7339. },
  7340. {
  7341. "name": "formID",
  7342. "in": "path",
  7343. "schema": {
  7344. "type": "string",
  7345. "allOf": [
  7346. {
  7347. "pattern": "^frm_"
  7348. }
  7349. ]
  7350. },
  7351. "required": true
  7352. }
  7353. ],
  7354. "security": [],
  7355. "responses": {
  7356. "204": {
  7357. "description": "<No Content>"
  7358. },
  7359. "400": {
  7360. "description": "FormInvalidAnswerError | InvalidRequestError",
  7361. "content": {
  7362. "application/json": {
  7363. "schema": {
  7364. "anyOf": [
  7365. {
  7366. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7367. },
  7368. {
  7369. "$ref": "#/components/schemas/InvalidRequestError"
  7370. }
  7371. ]
  7372. }
  7373. }
  7374. }
  7375. },
  7376. "401": {
  7377. "description": "UnauthorizedError",
  7378. "content": {
  7379. "application/json": {
  7380. "schema": {
  7381. "$ref": "#/components/schemas/UnauthorizedError"
  7382. }
  7383. }
  7384. }
  7385. },
  7386. "404": {
  7387. "description": "SessionNotFoundError | FormNotFoundError",
  7388. "content": {
  7389. "application/json": {
  7390. "schema": {
  7391. "anyOf": [
  7392. {
  7393. "$ref": "#/components/schemas/FormNotFoundError"
  7394. },
  7395. {
  7396. "$ref": "#/components/schemas/SessionNotFoundError"
  7397. },
  7398. {
  7399. "$ref": "#/components/schemas/SessionNotFoundError"
  7400. }
  7401. ]
  7402. }
  7403. }
  7404. }
  7405. },
  7406. "409": {
  7407. "description": "FormAlreadySettledError",
  7408. "content": {
  7409. "application/json": {
  7410. "schema": {
  7411. "$ref": "#/components/schemas/FormAlreadySettledError"
  7412. }
  7413. }
  7414. }
  7415. }
  7416. },
  7417. "description": "Submit an answer to a pending form.",
  7418. "summary": "Reply to form",
  7419. "requestBody": {
  7420. "content": {
  7421. "application/json": {
  7422. "schema": {
  7423. "$ref": "#/components/schemas/Form.Reply"
  7424. }
  7425. }
  7426. },
  7427. "required": true
  7428. }
  7429. }
  7430. },
  7431. "/api/session/{sessionID}/form/{formID}/cancel": {
  7432. "post": {
  7433. "tags": [
  7434. "form"
  7435. ],
  7436. "operationId": "v2.session.form.cancel",
  7437. "parameters": [
  7438. {
  7439. "name": "sessionID",
  7440. "in": "path",
  7441. "schema": {
  7442. "type": "string"
  7443. },
  7444. "required": true
  7445. },
  7446. {
  7447. "name": "formID",
  7448. "in": "path",
  7449. "schema": {
  7450. "type": "string",
  7451. "allOf": [
  7452. {
  7453. "pattern": "^frm_"
  7454. }
  7455. ]
  7456. },
  7457. "required": true
  7458. }
  7459. ],
  7460. "security": [],
  7461. "responses": {
  7462. "204": {
  7463. "description": "<No Content>"
  7464. },
  7465. "400": {
  7466. "description": "InvalidRequestError",
  7467. "content": {
  7468. "application/json": {
  7469. "schema": {
  7470. "$ref": "#/components/schemas/InvalidRequestError"
  7471. }
  7472. }
  7473. }
  7474. },
  7475. "401": {
  7476. "description": "UnauthorizedError",
  7477. "content": {
  7478. "application/json": {
  7479. "schema": {
  7480. "$ref": "#/components/schemas/UnauthorizedError"
  7481. }
  7482. }
  7483. }
  7484. },
  7485. "404": {
  7486. "description": "SessionNotFoundError | FormNotFoundError",
  7487. "content": {
  7488. "application/json": {
  7489. "schema": {
  7490. "anyOf": [
  7491. {
  7492. "$ref": "#/components/schemas/FormNotFoundError"
  7493. },
  7494. {
  7495. "$ref": "#/components/schemas/SessionNotFoundError"
  7496. },
  7497. {
  7498. "$ref": "#/components/schemas/SessionNotFoundError"
  7499. }
  7500. ]
  7501. }
  7502. }
  7503. }
  7504. },
  7505. "409": {
  7506. "description": "FormAlreadySettledError",
  7507. "content": {
  7508. "application/json": {
  7509. "schema": {
  7510. "$ref": "#/components/schemas/FormAlreadySettledError"
  7511. }
  7512. }
  7513. }
  7514. }
  7515. },
  7516. "description": "Cancel a pending form.",
  7517. "summary": "Cancel form"
  7518. }
  7519. },
  7520. "/api/permission/request": {
  7521. "get": {
  7522. "tags": [
  7523. "permission"
  7524. ],
  7525. "operationId": "v2.permission.request.list",
  7526. "parameters": [
  7527. {
  7528. "name": "location",
  7529. "in": "query",
  7530. "schema": {
  7531. "anyOf": [
  7532. {
  7533. "type": "object",
  7534. "properties": {
  7535. "directory": {
  7536. "anyOf": [
  7537. {
  7538. "type": "string"
  7539. },
  7540. {
  7541. "type": "null"
  7542. }
  7543. ]
  7544. },
  7545. "workspace": {
  7546. "anyOf": [
  7547. {
  7548. "type": "string"
  7549. },
  7550. {
  7551. "type": "null"
  7552. }
  7553. ]
  7554. }
  7555. },
  7556. "additionalProperties": false
  7557. },
  7558. {
  7559. "type": "null"
  7560. }
  7561. ]
  7562. },
  7563. "required": false,
  7564. "style": "deepObject",
  7565. "explode": true
  7566. }
  7567. ],
  7568. "security": [],
  7569. "responses": {
  7570. "200": {
  7571. "description": "Success",
  7572. "content": {
  7573. "application/json": {
  7574. "schema": {
  7575. "type": "object",
  7576. "properties": {
  7577. "location": {
  7578. "$ref": "#/components/schemas/Location.Info"
  7579. },
  7580. "data": {
  7581. "type": "array",
  7582. "items": {
  7583. "$ref": "#/components/schemas/Permission.Request"
  7584. }
  7585. }
  7586. },
  7587. "required": [
  7588. "location",
  7589. "data"
  7590. ],
  7591. "additionalProperties": false
  7592. }
  7593. }
  7594. }
  7595. },
  7596. "400": {
  7597. "description": "InvalidRequestError",
  7598. "content": {
  7599. "application/json": {
  7600. "schema": {
  7601. "$ref": "#/components/schemas/InvalidRequestError"
  7602. }
  7603. }
  7604. }
  7605. },
  7606. "401": {
  7607. "description": "UnauthorizedError",
  7608. "content": {
  7609. "application/json": {
  7610. "schema": {
  7611. "$ref": "#/components/schemas/UnauthorizedError"
  7612. }
  7613. }
  7614. }
  7615. }
  7616. },
  7617. "description": "Retrieve pending permission requests for a location.",
  7618. "summary": "List pending permission requests"
  7619. }
  7620. },
  7621. "/api/permission/saved": {
  7622. "get": {
  7623. "tags": [
  7624. "permission"
  7625. ],
  7626. "operationId": "v2.permission.saved.list",
  7627. "parameters": [
  7628. {
  7629. "name": "projectID",
  7630. "in": "query",
  7631. "schema": {
  7632. "anyOf": [
  7633. {
  7634. "type": "string"
  7635. },
  7636. {
  7637. "type": "null"
  7638. }
  7639. ]
  7640. },
  7641. "required": false
  7642. }
  7643. ],
  7644. "security": [],
  7645. "responses": {
  7646. "200": {
  7647. "description": "Success",
  7648. "content": {
  7649. "application/json": {
  7650. "schema": {
  7651. "type": "object",
  7652. "properties": {
  7653. "data": {
  7654. "type": "array",
  7655. "items": {
  7656. "$ref": "#/components/schemas/PermissionSaved.Info"
  7657. }
  7658. }
  7659. },
  7660. "required": [
  7661. "data"
  7662. ],
  7663. "additionalProperties": false
  7664. }
  7665. }
  7666. }
  7667. },
  7668. "400": {
  7669. "description": "InvalidRequestError",
  7670. "content": {
  7671. "application/json": {
  7672. "schema": {
  7673. "$ref": "#/components/schemas/InvalidRequestError"
  7674. }
  7675. }
  7676. }
  7677. },
  7678. "401": {
  7679. "description": "UnauthorizedError",
  7680. "content": {
  7681. "application/json": {
  7682. "schema": {
  7683. "$ref": "#/components/schemas/UnauthorizedError"
  7684. }
  7685. }
  7686. }
  7687. }
  7688. },
  7689. "description": "Retrieve saved permissions, optionally filtered by project.",
  7690. "summary": "List saved permissions"
  7691. }
  7692. },
  7693. "/api/permission/saved/{id}": {
  7694. "delete": {
  7695. "tags": [
  7696. "permission"
  7697. ],
  7698. "operationId": "v2.permission.saved.remove",
  7699. "parameters": [
  7700. {
  7701. "name": "id",
  7702. "in": "path",
  7703. "schema": {
  7704. "type": "string"
  7705. },
  7706. "required": true
  7707. }
  7708. ],
  7709. "security": [],
  7710. "responses": {
  7711. "204": {
  7712. "description": "<No Content>"
  7713. },
  7714. "400": {
  7715. "description": "InvalidRequestError",
  7716. "content": {
  7717. "application/json": {
  7718. "schema": {
  7719. "$ref": "#/components/schemas/InvalidRequestError"
  7720. }
  7721. }
  7722. }
  7723. },
  7724. "401": {
  7725. "description": "UnauthorizedError",
  7726. "content": {
  7727. "application/json": {
  7728. "schema": {
  7729. "$ref": "#/components/schemas/UnauthorizedError"
  7730. }
  7731. }
  7732. }
  7733. }
  7734. },
  7735. "description": "Remove a saved permission by ID.",
  7736. "summary": "Remove saved permission"
  7737. }
  7738. },
  7739. "/api/session/{sessionID}/permission": {
  7740. "post": {
  7741. "tags": [
  7742. "permission"
  7743. ],
  7744. "operationId": "v2.session.permission.create",
  7745. "parameters": [
  7746. {
  7747. "name": "sessionID",
  7748. "in": "path",
  7749. "schema": {
  7750. "type": "string",
  7751. "allOf": [
  7752. {
  7753. "pattern": "^ses"
  7754. }
  7755. ]
  7756. },
  7757. "required": true
  7758. }
  7759. ],
  7760. "security": [],
  7761. "responses": {
  7762. "200": {
  7763. "description": "Success",
  7764. "content": {
  7765. "application/json": {
  7766. "schema": {
  7767. "type": "object",
  7768. "properties": {
  7769. "data": {
  7770. "type": "object",
  7771. "properties": {
  7772. "id": {
  7773. "type": "string",
  7774. "allOf": [
  7775. {
  7776. "pattern": "^per"
  7777. }
  7778. ]
  7779. },
  7780. "effect": {
  7781. "$ref": "#/components/schemas/Permission.Effect"
  7782. }
  7783. },
  7784. "required": [
  7785. "id",
  7786. "effect"
  7787. ],
  7788. "additionalProperties": false
  7789. }
  7790. },
  7791. "required": [
  7792. "data"
  7793. ],
  7794. "additionalProperties": false
  7795. }
  7796. }
  7797. }
  7798. },
  7799. "400": {
  7800. "description": "InvalidRequestError",
  7801. "content": {
  7802. "application/json": {
  7803. "schema": {
  7804. "$ref": "#/components/schemas/InvalidRequestError"
  7805. }
  7806. }
  7807. }
  7808. },
  7809. "401": {
  7810. "description": "UnauthorizedError",
  7811. "content": {
  7812. "application/json": {
  7813. "schema": {
  7814. "$ref": "#/components/schemas/UnauthorizedError"
  7815. }
  7816. }
  7817. }
  7818. },
  7819. "404": {
  7820. "description": "SessionNotFoundError",
  7821. "content": {
  7822. "application/json": {
  7823. "schema": {
  7824. "anyOf": [
  7825. {
  7826. "$ref": "#/components/schemas/SessionNotFoundError"
  7827. },
  7828. {
  7829. "$ref": "#/components/schemas/SessionNotFoundError"
  7830. }
  7831. ]
  7832. }
  7833. }
  7834. }
  7835. }
  7836. },
  7837. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7838. "summary": "Create permission request",
  7839. "requestBody": {
  7840. "content": {
  7841. "application/json": {
  7842. "schema": {
  7843. "type": "object",
  7844. "properties": {
  7845. "id": {
  7846. "anyOf": [
  7847. {
  7848. "type": "string",
  7849. "allOf": [
  7850. {
  7851. "pattern": "^per"
  7852. }
  7853. ]
  7854. },
  7855. {
  7856. "type": "null"
  7857. }
  7858. ]
  7859. },
  7860. "action": {
  7861. "type": "string"
  7862. },
  7863. "resources": {
  7864. "type": "array",
  7865. "items": {
  7866. "type": "string"
  7867. }
  7868. },
  7869. "save": {
  7870. "type": "array",
  7871. "items": {
  7872. "type": "string"
  7873. }
  7874. },
  7875. "metadata": {
  7876. "type": "object"
  7877. },
  7878. "source": {
  7879. "$ref": "#/components/schemas/Permission.Source"
  7880. },
  7881. "agent": {
  7882. "anyOf": [
  7883. {
  7884. "type": "string"
  7885. },
  7886. {
  7887. "type": "null"
  7888. }
  7889. ]
  7890. }
  7891. },
  7892. "required": [
  7893. "action",
  7894. "resources"
  7895. ],
  7896. "additionalProperties": false
  7897. }
  7898. }
  7899. },
  7900. "required": true
  7901. }
  7902. },
  7903. "get": {
  7904. "tags": [
  7905. "permission"
  7906. ],
  7907. "operationId": "v2.session.permission.list",
  7908. "parameters": [
  7909. {
  7910. "name": "sessionID",
  7911. "in": "path",
  7912. "schema": {
  7913. "type": "string",
  7914. "allOf": [
  7915. {
  7916. "pattern": "^ses"
  7917. }
  7918. ]
  7919. },
  7920. "required": true
  7921. }
  7922. ],
  7923. "security": [],
  7924. "responses": {
  7925. "200": {
  7926. "description": "Success",
  7927. "content": {
  7928. "application/json": {
  7929. "schema": {
  7930. "type": "object",
  7931. "properties": {
  7932. "data": {
  7933. "type": "array",
  7934. "items": {
  7935. "$ref": "#/components/schemas/Permission.Request"
  7936. }
  7937. }
  7938. },
  7939. "required": [
  7940. "data"
  7941. ],
  7942. "additionalProperties": false
  7943. }
  7944. }
  7945. }
  7946. },
  7947. "400": {
  7948. "description": "InvalidRequestError",
  7949. "content": {
  7950. "application/json": {
  7951. "schema": {
  7952. "$ref": "#/components/schemas/InvalidRequestError"
  7953. }
  7954. }
  7955. }
  7956. },
  7957. "401": {
  7958. "description": "UnauthorizedError",
  7959. "content": {
  7960. "application/json": {
  7961. "schema": {
  7962. "$ref": "#/components/schemas/UnauthorizedError"
  7963. }
  7964. }
  7965. }
  7966. },
  7967. "404": {
  7968. "description": "SessionNotFoundError",
  7969. "content": {
  7970. "application/json": {
  7971. "schema": {
  7972. "anyOf": [
  7973. {
  7974. "$ref": "#/components/schemas/SessionNotFoundError"
  7975. },
  7976. {
  7977. "$ref": "#/components/schemas/SessionNotFoundError"
  7978. }
  7979. ]
  7980. }
  7981. }
  7982. }
  7983. }
  7984. },
  7985. "description": "Retrieve pending permission requests owned by a session.",
  7986. "summary": "List session permission requests"
  7987. }
  7988. },
  7989. "/api/session/{sessionID}/permission/{requestID}": {
  7990. "get": {
  7991. "tags": [
  7992. "permission"
  7993. ],
  7994. "operationId": "v2.session.permission.get",
  7995. "parameters": [
  7996. {
  7997. "name": "sessionID",
  7998. "in": "path",
  7999. "schema": {
  8000. "type": "string",
  8001. "allOf": [
  8002. {
  8003. "pattern": "^ses"
  8004. }
  8005. ]
  8006. },
  8007. "required": true
  8008. },
  8009. {
  8010. "name": "requestID",
  8011. "in": "path",
  8012. "schema": {
  8013. "type": "string",
  8014. "allOf": [
  8015. {
  8016. "pattern": "^per"
  8017. }
  8018. ]
  8019. },
  8020. "required": true
  8021. }
  8022. ],
  8023. "security": [],
  8024. "responses": {
  8025. "200": {
  8026. "description": "Success",
  8027. "content": {
  8028. "application/json": {
  8029. "schema": {
  8030. "type": "object",
  8031. "properties": {
  8032. "data": {
  8033. "$ref": "#/components/schemas/Permission.Request"
  8034. }
  8035. },
  8036. "required": [
  8037. "data"
  8038. ],
  8039. "additionalProperties": false
  8040. }
  8041. }
  8042. }
  8043. },
  8044. "400": {
  8045. "description": "InvalidRequestError",
  8046. "content": {
  8047. "application/json": {
  8048. "schema": {
  8049. "$ref": "#/components/schemas/InvalidRequestError"
  8050. }
  8051. }
  8052. }
  8053. },
  8054. "401": {
  8055. "description": "UnauthorizedError",
  8056. "content": {
  8057. "application/json": {
  8058. "schema": {
  8059. "$ref": "#/components/schemas/UnauthorizedError"
  8060. }
  8061. }
  8062. }
  8063. },
  8064. "404": {
  8065. "description": "SessionNotFoundError | PermissionNotFoundError",
  8066. "content": {
  8067. "application/json": {
  8068. "schema": {
  8069. "anyOf": [
  8070. {
  8071. "$ref": "#/components/schemas/PermissionNotFoundError"
  8072. },
  8073. {
  8074. "$ref": "#/components/schemas/SessionNotFoundError"
  8075. },
  8076. {
  8077. "$ref": "#/components/schemas/SessionNotFoundError"
  8078. }
  8079. ]
  8080. }
  8081. }
  8082. }
  8083. }
  8084. },
  8085. "description": "Retrieve a pending permission request owned by a session.",
  8086. "summary": "Get permission request"
  8087. }
  8088. },
  8089. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8090. "post": {
  8091. "tags": [
  8092. "permission"
  8093. ],
  8094. "operationId": "v2.session.permission.reply",
  8095. "parameters": [
  8096. {
  8097. "name": "sessionID",
  8098. "in": "path",
  8099. "schema": {
  8100. "type": "string",
  8101. "allOf": [
  8102. {
  8103. "pattern": "^ses"
  8104. }
  8105. ]
  8106. },
  8107. "required": true
  8108. },
  8109. {
  8110. "name": "requestID",
  8111. "in": "path",
  8112. "schema": {
  8113. "type": "string",
  8114. "allOf": [
  8115. {
  8116. "pattern": "^per"
  8117. }
  8118. ]
  8119. },
  8120. "required": true
  8121. }
  8122. ],
  8123. "security": [],
  8124. "responses": {
  8125. "204": {
  8126. "description": "<No Content>"
  8127. },
  8128. "400": {
  8129. "description": "InvalidRequestError",
  8130. "content": {
  8131. "application/json": {
  8132. "schema": {
  8133. "$ref": "#/components/schemas/InvalidRequestError"
  8134. }
  8135. }
  8136. }
  8137. },
  8138. "401": {
  8139. "description": "UnauthorizedError",
  8140. "content": {
  8141. "application/json": {
  8142. "schema": {
  8143. "$ref": "#/components/schemas/UnauthorizedError"
  8144. }
  8145. }
  8146. }
  8147. },
  8148. "404": {
  8149. "description": "SessionNotFoundError | PermissionNotFoundError",
  8150. "content": {
  8151. "application/json": {
  8152. "schema": {
  8153. "anyOf": [
  8154. {
  8155. "$ref": "#/components/schemas/PermissionNotFoundError"
  8156. },
  8157. {
  8158. "$ref": "#/components/schemas/SessionNotFoundError"
  8159. },
  8160. {
  8161. "$ref": "#/components/schemas/SessionNotFoundError"
  8162. }
  8163. ]
  8164. }
  8165. }
  8166. }
  8167. }
  8168. },
  8169. "description": "Respond to a pending permission request owned by a session.",
  8170. "summary": "Reply to pending permission request",
  8171. "requestBody": {
  8172. "content": {
  8173. "application/json": {
  8174. "schema": {
  8175. "type": "object",
  8176. "properties": {
  8177. "reply": {
  8178. "$ref": "#/components/schemas/Permission.Reply"
  8179. },
  8180. "message": {
  8181. "anyOf": [
  8182. {
  8183. "type": "string"
  8184. },
  8185. {
  8186. "type": "null"
  8187. }
  8188. ]
  8189. }
  8190. },
  8191. "required": [
  8192. "reply"
  8193. ],
  8194. "additionalProperties": false
  8195. }
  8196. }
  8197. },
  8198. "required": true
  8199. }
  8200. }
  8201. },
  8202. "/api/fs/read/*": {
  8203. "get": {
  8204. "tags": [
  8205. "filesystem"
  8206. ],
  8207. "operationId": "v2.fs.read",
  8208. "parameters": [
  8209. {
  8210. "name": "location",
  8211. "in": "query",
  8212. "schema": {
  8213. "anyOf": [
  8214. {
  8215. "type": "object",
  8216. "properties": {
  8217. "directory": {
  8218. "anyOf": [
  8219. {
  8220. "type": "string"
  8221. },
  8222. {
  8223. "type": "null"
  8224. }
  8225. ]
  8226. },
  8227. "workspace": {
  8228. "anyOf": [
  8229. {
  8230. "type": "string"
  8231. },
  8232. {
  8233. "type": "null"
  8234. }
  8235. ]
  8236. }
  8237. },
  8238. "additionalProperties": false
  8239. },
  8240. {
  8241. "type": "null"
  8242. }
  8243. ]
  8244. },
  8245. "required": false,
  8246. "style": "deepObject",
  8247. "explode": true
  8248. }
  8249. ],
  8250. "security": [],
  8251. "responses": {
  8252. "200": {
  8253. "description": "Success",
  8254. "content": {
  8255. "application/octet-stream": {
  8256. "schema": {
  8257. "type": "string",
  8258. "format": "binary"
  8259. }
  8260. }
  8261. }
  8262. },
  8263. "400": {
  8264. "description": "InvalidRequestError",
  8265. "content": {
  8266. "application/json": {
  8267. "schema": {
  8268. "$ref": "#/components/schemas/InvalidRequestError"
  8269. }
  8270. }
  8271. }
  8272. },
  8273. "401": {
  8274. "description": "UnauthorizedError",
  8275. "content": {
  8276. "application/json": {
  8277. "schema": {
  8278. "$ref": "#/components/schemas/UnauthorizedError"
  8279. }
  8280. }
  8281. }
  8282. }
  8283. },
  8284. "description": "Serve one file relative to the requested location.",
  8285. "summary": "Read file"
  8286. }
  8287. },
  8288. "/api/fs/list": {
  8289. "get": {
  8290. "tags": [
  8291. "filesystem"
  8292. ],
  8293. "operationId": "v2.fs.list",
  8294. "parameters": [
  8295. {
  8296. "name": "location",
  8297. "in": "query",
  8298. "schema": {
  8299. "anyOf": [
  8300. {
  8301. "type": "object",
  8302. "properties": {
  8303. "directory": {
  8304. "anyOf": [
  8305. {
  8306. "type": "string"
  8307. },
  8308. {
  8309. "type": "null"
  8310. }
  8311. ]
  8312. },
  8313. "workspace": {
  8314. "anyOf": [
  8315. {
  8316. "type": "string"
  8317. },
  8318. {
  8319. "type": "null"
  8320. }
  8321. ]
  8322. }
  8323. },
  8324. "additionalProperties": false
  8325. },
  8326. {
  8327. "type": "null"
  8328. }
  8329. ]
  8330. },
  8331. "required": false,
  8332. "style": "deepObject",
  8333. "explode": true
  8334. },
  8335. {
  8336. "name": "path",
  8337. "in": "query",
  8338. "schema": {
  8339. "anyOf": [
  8340. {
  8341. "type": "string"
  8342. },
  8343. {
  8344. "type": "null"
  8345. }
  8346. ]
  8347. },
  8348. "required": false
  8349. }
  8350. ],
  8351. "security": [],
  8352. "responses": {
  8353. "200": {
  8354. "description": "Success",
  8355. "content": {
  8356. "application/json": {
  8357. "schema": {
  8358. "type": "object",
  8359. "properties": {
  8360. "location": {
  8361. "$ref": "#/components/schemas/Location.Info"
  8362. },
  8363. "data": {
  8364. "type": "array",
  8365. "items": {
  8366. "$ref": "#/components/schemas/FileSystem.Entry"
  8367. }
  8368. }
  8369. },
  8370. "required": [
  8371. "location",
  8372. "data"
  8373. ],
  8374. "additionalProperties": false
  8375. }
  8376. }
  8377. }
  8378. },
  8379. "400": {
  8380. "description": "InvalidRequestError",
  8381. "content": {
  8382. "application/json": {
  8383. "schema": {
  8384. "$ref": "#/components/schemas/InvalidRequestError"
  8385. }
  8386. }
  8387. }
  8388. },
  8389. "401": {
  8390. "description": "UnauthorizedError",
  8391. "content": {
  8392. "application/json": {
  8393. "schema": {
  8394. "$ref": "#/components/schemas/UnauthorizedError"
  8395. }
  8396. }
  8397. }
  8398. }
  8399. },
  8400. "description": "List direct children of one directory relative to the requested location.",
  8401. "summary": "List directory"
  8402. }
  8403. },
  8404. "/api/fs/find": {
  8405. "get": {
  8406. "tags": [
  8407. "filesystem"
  8408. ],
  8409. "operationId": "v2.fs.find",
  8410. "parameters": [
  8411. {
  8412. "name": "location",
  8413. "in": "query",
  8414. "schema": {
  8415. "anyOf": [
  8416. {
  8417. "type": "object",
  8418. "properties": {
  8419. "directory": {
  8420. "anyOf": [
  8421. {
  8422. "type": "string"
  8423. },
  8424. {
  8425. "type": "null"
  8426. }
  8427. ]
  8428. },
  8429. "workspace": {
  8430. "anyOf": [
  8431. {
  8432. "type": "string"
  8433. },
  8434. {
  8435. "type": "null"
  8436. }
  8437. ]
  8438. }
  8439. },
  8440. "additionalProperties": false
  8441. },
  8442. {
  8443. "type": "null"
  8444. }
  8445. ]
  8446. },
  8447. "required": false,
  8448. "style": "deepObject",
  8449. "explode": true
  8450. },
  8451. {
  8452. "name": "query",
  8453. "in": "query",
  8454. "schema": {
  8455. "type": "string"
  8456. },
  8457. "required": true
  8458. },
  8459. {
  8460. "name": "type",
  8461. "in": "query",
  8462. "schema": {
  8463. "type": "string",
  8464. "enum": [
  8465. "file",
  8466. "directory"
  8467. ]
  8468. },
  8469. "required": false
  8470. },
  8471. {
  8472. "name": "limit",
  8473. "in": "query",
  8474. "schema": {
  8475. "anyOf": [
  8476. {
  8477. "type": "string"
  8478. },
  8479. {
  8480. "type": "null"
  8481. }
  8482. ]
  8483. },
  8484. "required": false
  8485. }
  8486. ],
  8487. "security": [],
  8488. "responses": {
  8489. "200": {
  8490. "description": "Success",
  8491. "content": {
  8492. "application/json": {
  8493. "schema": {
  8494. "type": "object",
  8495. "properties": {
  8496. "location": {
  8497. "$ref": "#/components/schemas/Location.Info"
  8498. },
  8499. "data": {
  8500. "type": "array",
  8501. "items": {
  8502. "$ref": "#/components/schemas/FileSystem.Entry"
  8503. }
  8504. }
  8505. },
  8506. "required": [
  8507. "location",
  8508. "data"
  8509. ],
  8510. "additionalProperties": false
  8511. }
  8512. }
  8513. }
  8514. },
  8515. "400": {
  8516. "description": "InvalidRequestError",
  8517. "content": {
  8518. "application/json": {
  8519. "schema": {
  8520. "$ref": "#/components/schemas/InvalidRequestError"
  8521. }
  8522. }
  8523. }
  8524. },
  8525. "401": {
  8526. "description": "UnauthorizedError",
  8527. "content": {
  8528. "application/json": {
  8529. "schema": {
  8530. "$ref": "#/components/schemas/UnauthorizedError"
  8531. }
  8532. }
  8533. }
  8534. }
  8535. },
  8536. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8537. "summary": "Find files"
  8538. }
  8539. },
  8540. "/api/command": {
  8541. "get": {
  8542. "tags": [
  8543. "command"
  8544. ],
  8545. "operationId": "v2.command.list",
  8546. "parameters": [
  8547. {
  8548. "name": "location",
  8549. "in": "query",
  8550. "schema": {
  8551. "anyOf": [
  8552. {
  8553. "type": "object",
  8554. "properties": {
  8555. "directory": {
  8556. "anyOf": [
  8557. {
  8558. "type": "string"
  8559. },
  8560. {
  8561. "type": "null"
  8562. }
  8563. ]
  8564. },
  8565. "workspace": {
  8566. "anyOf": [
  8567. {
  8568. "type": "string"
  8569. },
  8570. {
  8571. "type": "null"
  8572. }
  8573. ]
  8574. }
  8575. },
  8576. "additionalProperties": false
  8577. },
  8578. {
  8579. "type": "null"
  8580. }
  8581. ]
  8582. },
  8583. "required": false,
  8584. "style": "deepObject",
  8585. "explode": true
  8586. }
  8587. ],
  8588. "security": [],
  8589. "responses": {
  8590. "200": {
  8591. "description": "Success",
  8592. "content": {
  8593. "application/json": {
  8594. "schema": {
  8595. "type": "object",
  8596. "properties": {
  8597. "location": {
  8598. "$ref": "#/components/schemas/Location.Info"
  8599. },
  8600. "data": {
  8601. "type": "array",
  8602. "items": {
  8603. "$ref": "#/components/schemas/Command.Info"
  8604. }
  8605. }
  8606. },
  8607. "required": [
  8608. "location",
  8609. "data"
  8610. ],
  8611. "additionalProperties": false
  8612. }
  8613. }
  8614. }
  8615. },
  8616. "400": {
  8617. "description": "InvalidRequestError",
  8618. "content": {
  8619. "application/json": {
  8620. "schema": {
  8621. "$ref": "#/components/schemas/InvalidRequestError"
  8622. }
  8623. }
  8624. }
  8625. },
  8626. "401": {
  8627. "description": "UnauthorizedError",
  8628. "content": {
  8629. "application/json": {
  8630. "schema": {
  8631. "$ref": "#/components/schemas/UnauthorizedError"
  8632. }
  8633. }
  8634. }
  8635. }
  8636. },
  8637. "description": "Retrieve currently registered commands.",
  8638. "summary": "List commands"
  8639. }
  8640. },
  8641. "/api/skill": {
  8642. "get": {
  8643. "tags": [
  8644. "skill"
  8645. ],
  8646. "operationId": "v2.skill.list",
  8647. "parameters": [
  8648. {
  8649. "name": "location",
  8650. "in": "query",
  8651. "schema": {
  8652. "anyOf": [
  8653. {
  8654. "type": "object",
  8655. "properties": {
  8656. "directory": {
  8657. "anyOf": [
  8658. {
  8659. "type": "string"
  8660. },
  8661. {
  8662. "type": "null"
  8663. }
  8664. ]
  8665. },
  8666. "workspace": {
  8667. "anyOf": [
  8668. {
  8669. "type": "string"
  8670. },
  8671. {
  8672. "type": "null"
  8673. }
  8674. ]
  8675. }
  8676. },
  8677. "additionalProperties": false
  8678. },
  8679. {
  8680. "type": "null"
  8681. }
  8682. ]
  8683. },
  8684. "required": false,
  8685. "style": "deepObject",
  8686. "explode": true
  8687. }
  8688. ],
  8689. "security": [],
  8690. "responses": {
  8691. "200": {
  8692. "description": "Success",
  8693. "content": {
  8694. "application/json": {
  8695. "schema": {
  8696. "type": "object",
  8697. "properties": {
  8698. "location": {
  8699. "$ref": "#/components/schemas/Location.Info"
  8700. },
  8701. "data": {
  8702. "type": "array",
  8703. "items": {
  8704. "$ref": "#/components/schemas/Skill.Info"
  8705. }
  8706. }
  8707. },
  8708. "required": [
  8709. "location",
  8710. "data"
  8711. ],
  8712. "additionalProperties": false
  8713. }
  8714. }
  8715. }
  8716. },
  8717. "400": {
  8718. "description": "InvalidRequestError",
  8719. "content": {
  8720. "application/json": {
  8721. "schema": {
  8722. "$ref": "#/components/schemas/InvalidRequestError"
  8723. }
  8724. }
  8725. }
  8726. },
  8727. "401": {
  8728. "description": "UnauthorizedError",
  8729. "content": {
  8730. "application/json": {
  8731. "schema": {
  8732. "$ref": "#/components/schemas/UnauthorizedError"
  8733. }
  8734. }
  8735. }
  8736. }
  8737. },
  8738. "description": "Retrieve currently registered skills.",
  8739. "summary": "List skills"
  8740. }
  8741. },
  8742. "/api/event": {
  8743. "get": {
  8744. "tags": [
  8745. "event"
  8746. ],
  8747. "operationId": "v2.event.subscribe",
  8748. "parameters": [],
  8749. "security": [],
  8750. "responses": {
  8751. "200": {
  8752. "description": "Success",
  8753. "content": {
  8754. "text/event-stream": {
  8755. "schema": {
  8756. "type": "object",
  8757. "properties": {
  8758. "id": {
  8759. "anyOf": [
  8760. {
  8761. "type": "string"
  8762. },
  8763. {
  8764. "type": "null"
  8765. }
  8766. ]
  8767. },
  8768. "event": {
  8769. "type": "string"
  8770. },
  8771. "data": {
  8772. "$ref": "#/components/schemas/V2EventJsonString"
  8773. }
  8774. },
  8775. "required": [
  8776. "id",
  8777. "event",
  8778. "data"
  8779. ],
  8780. "additionalProperties": false
  8781. },
  8782. "x-effect-stream": {
  8783. "encoding": "sse",
  8784. "causeSchema": {
  8785. "type": "array",
  8786. "items": {
  8787. "anyOf": [
  8788. {
  8789. "type": "object",
  8790. "properties": {
  8791. "_tag": {
  8792. "type": "string",
  8793. "enum": [
  8794. "Fail"
  8795. ]
  8796. },
  8797. "error": {
  8798. "not": {}
  8799. }
  8800. },
  8801. "required": [
  8802. "_tag",
  8803. "error"
  8804. ],
  8805. "additionalProperties": false
  8806. },
  8807. {
  8808. "type": "object",
  8809. "properties": {
  8810. "_tag": {
  8811. "type": "string",
  8812. "enum": [
  8813. "Die"
  8814. ]
  8815. },
  8816. "defect": {}
  8817. },
  8818. "required": [
  8819. "_tag",
  8820. "defect"
  8821. ],
  8822. "additionalProperties": false
  8823. },
  8824. {
  8825. "type": "object",
  8826. "properties": {
  8827. "_tag": {
  8828. "type": "string",
  8829. "enum": [
  8830. "Interrupt"
  8831. ]
  8832. },
  8833. "fiberId": {
  8834. "anyOf": [
  8835. {
  8836. "type": "number"
  8837. },
  8838. {
  8839. "type": "null"
  8840. }
  8841. ]
  8842. }
  8843. },
  8844. "required": [
  8845. "_tag",
  8846. "fiberId"
  8847. ],
  8848. "additionalProperties": false
  8849. }
  8850. ]
  8851. }
  8852. },
  8853. "errorSchema": {
  8854. "not": {}
  8855. },
  8856. "failureEvent": "effect/httpapi/stream/failure"
  8857. }
  8858. }
  8859. }
  8860. },
  8861. "400": {
  8862. "description": "InvalidRequestError",
  8863. "content": {
  8864. "application/json": {
  8865. "schema": {
  8866. "$ref": "#/components/schemas/InvalidRequestError"
  8867. }
  8868. }
  8869. }
  8870. },
  8871. "401": {
  8872. "description": "UnauthorizedError",
  8873. "content": {
  8874. "application/json": {
  8875. "schema": {
  8876. "$ref": "#/components/schemas/UnauthorizedError"
  8877. }
  8878. }
  8879. }
  8880. }
  8881. },
  8882. "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.",
  8883. "summary": "Subscribe to events"
  8884. }
  8885. },
  8886. "/api/pty": {
  8887. "get": {
  8888. "tags": [
  8889. "pty"
  8890. ],
  8891. "operationId": "v2.pty.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/Pty"
  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": "List PTY sessions for a location, including exited sessions retained until removal.",
  8984. "summary": "List PTY sessions"
  8985. },
  8986. "post": {
  8987. "tags": [
  8988. "pty"
  8989. ],
  8990. "operationId": "v2.pty.create",
  8991. "parameters": [
  8992. {
  8993. "name": "location",
  8994. "in": "query",
  8995. "schema": {
  8996. "anyOf": [
  8997. {
  8998. "type": "object",
  8999. "properties": {
  9000. "directory": {
  9001. "anyOf": [
  9002. {
  9003. "type": "string"
  9004. },
  9005. {
  9006. "type": "null"
  9007. }
  9008. ]
  9009. },
  9010. "workspace": {
  9011. "anyOf": [
  9012. {
  9013. "type": "string"
  9014. },
  9015. {
  9016. "type": "null"
  9017. }
  9018. ]
  9019. }
  9020. },
  9021. "additionalProperties": false
  9022. },
  9023. {
  9024. "type": "null"
  9025. }
  9026. ]
  9027. },
  9028. "required": false,
  9029. "style": "deepObject",
  9030. "explode": true
  9031. }
  9032. ],
  9033. "security": [],
  9034. "responses": {
  9035. "200": {
  9036. "description": "Success",
  9037. "content": {
  9038. "application/json": {
  9039. "schema": {
  9040. "type": "object",
  9041. "properties": {
  9042. "location": {
  9043. "$ref": "#/components/schemas/Location.Info"
  9044. },
  9045. "data": {
  9046. "$ref": "#/components/schemas/Pty"
  9047. }
  9048. },
  9049. "required": [
  9050. "location",
  9051. "data"
  9052. ],
  9053. "additionalProperties": false
  9054. }
  9055. }
  9056. }
  9057. },
  9058. "400": {
  9059. "description": "InvalidRequestError",
  9060. "content": {
  9061. "application/json": {
  9062. "schema": {
  9063. "$ref": "#/components/schemas/InvalidRequestError"
  9064. }
  9065. }
  9066. }
  9067. },
  9068. "401": {
  9069. "description": "UnauthorizedError",
  9070. "content": {
  9071. "application/json": {
  9072. "schema": {
  9073. "$ref": "#/components/schemas/UnauthorizedError"
  9074. }
  9075. }
  9076. }
  9077. }
  9078. },
  9079. "description": "Create a pseudo-terminal session for a location.",
  9080. "summary": "Create PTY session",
  9081. "requestBody": {
  9082. "content": {
  9083. "application/json": {
  9084. "schema": {
  9085. "type": "object",
  9086. "properties": {
  9087. "command": {
  9088. "type": "string"
  9089. },
  9090. "args": {
  9091. "type": "array",
  9092. "items": {
  9093. "type": "string"
  9094. }
  9095. },
  9096. "cwd": {
  9097. "type": "string"
  9098. },
  9099. "title": {
  9100. "type": "string"
  9101. },
  9102. "env": {
  9103. "type": "object",
  9104. "additionalProperties": {
  9105. "type": "string"
  9106. }
  9107. }
  9108. },
  9109. "additionalProperties": false
  9110. }
  9111. }
  9112. },
  9113. "required": true
  9114. }
  9115. }
  9116. },
  9117. "/api/pty/{ptyID}": {
  9118. "get": {
  9119. "tags": [
  9120. "pty"
  9121. ],
  9122. "operationId": "v2.pty.get",
  9123. "parameters": [
  9124. {
  9125. "name": "ptyID",
  9126. "in": "path",
  9127. "schema": {
  9128. "type": "string",
  9129. "allOf": [
  9130. {
  9131. "pattern": "^pty"
  9132. }
  9133. ]
  9134. },
  9135. "required": true
  9136. },
  9137. {
  9138. "name": "location",
  9139. "in": "query",
  9140. "schema": {
  9141. "anyOf": [
  9142. {
  9143. "type": "object",
  9144. "properties": {
  9145. "directory": {
  9146. "anyOf": [
  9147. {
  9148. "type": "string"
  9149. },
  9150. {
  9151. "type": "null"
  9152. }
  9153. ]
  9154. },
  9155. "workspace": {
  9156. "anyOf": [
  9157. {
  9158. "type": "string"
  9159. },
  9160. {
  9161. "type": "null"
  9162. }
  9163. ]
  9164. }
  9165. },
  9166. "additionalProperties": false
  9167. },
  9168. {
  9169. "type": "null"
  9170. }
  9171. ]
  9172. },
  9173. "required": false,
  9174. "style": "deepObject",
  9175. "explode": true
  9176. }
  9177. ],
  9178. "security": [],
  9179. "responses": {
  9180. "200": {
  9181. "description": "Success",
  9182. "content": {
  9183. "application/json": {
  9184. "schema": {
  9185. "type": "object",
  9186. "properties": {
  9187. "location": {
  9188. "$ref": "#/components/schemas/Location.Info"
  9189. },
  9190. "data": {
  9191. "$ref": "#/components/schemas/Pty"
  9192. }
  9193. },
  9194. "required": [
  9195. "location",
  9196. "data"
  9197. ],
  9198. "additionalProperties": false
  9199. }
  9200. }
  9201. }
  9202. },
  9203. "400": {
  9204. "description": "InvalidRequestError",
  9205. "content": {
  9206. "application/json": {
  9207. "schema": {
  9208. "$ref": "#/components/schemas/InvalidRequestError"
  9209. }
  9210. }
  9211. }
  9212. },
  9213. "401": {
  9214. "description": "UnauthorizedError",
  9215. "content": {
  9216. "application/json": {
  9217. "schema": {
  9218. "$ref": "#/components/schemas/UnauthorizedError"
  9219. }
  9220. }
  9221. }
  9222. },
  9223. "404": {
  9224. "description": "PtyNotFoundError",
  9225. "content": {
  9226. "application/json": {
  9227. "schema": {
  9228. "$ref": "#/components/schemas/PtyNotFoundError"
  9229. }
  9230. }
  9231. }
  9232. }
  9233. },
  9234. "description": "Get one PTY session, including its exit code once exited.",
  9235. "summary": "Get PTY session"
  9236. },
  9237. "put": {
  9238. "tags": [
  9239. "pty"
  9240. ],
  9241. "operationId": "v2.pty.update",
  9242. "parameters": [
  9243. {
  9244. "name": "ptyID",
  9245. "in": "path",
  9246. "schema": {
  9247. "type": "string",
  9248. "allOf": [
  9249. {
  9250. "pattern": "^pty"
  9251. }
  9252. ]
  9253. },
  9254. "required": true
  9255. },
  9256. {
  9257. "name": "location",
  9258. "in": "query",
  9259. "schema": {
  9260. "anyOf": [
  9261. {
  9262. "type": "object",
  9263. "properties": {
  9264. "directory": {
  9265. "anyOf": [
  9266. {
  9267. "type": "string"
  9268. },
  9269. {
  9270. "type": "null"
  9271. }
  9272. ]
  9273. },
  9274. "workspace": {
  9275. "anyOf": [
  9276. {
  9277. "type": "string"
  9278. },
  9279. {
  9280. "type": "null"
  9281. }
  9282. ]
  9283. }
  9284. },
  9285. "additionalProperties": false
  9286. },
  9287. {
  9288. "type": "null"
  9289. }
  9290. ]
  9291. },
  9292. "required": false,
  9293. "style": "deepObject",
  9294. "explode": true
  9295. }
  9296. ],
  9297. "security": [],
  9298. "responses": {
  9299. "200": {
  9300. "description": "Success",
  9301. "content": {
  9302. "application/json": {
  9303. "schema": {
  9304. "type": "object",
  9305. "properties": {
  9306. "location": {
  9307. "$ref": "#/components/schemas/Location.Info"
  9308. },
  9309. "data": {
  9310. "$ref": "#/components/schemas/Pty"
  9311. }
  9312. },
  9313. "required": [
  9314. "location",
  9315. "data"
  9316. ],
  9317. "additionalProperties": false
  9318. }
  9319. }
  9320. }
  9321. },
  9322. "400": {
  9323. "description": "InvalidRequestError",
  9324. "content": {
  9325. "application/json": {
  9326. "schema": {
  9327. "$ref": "#/components/schemas/InvalidRequestError"
  9328. }
  9329. }
  9330. }
  9331. },
  9332. "401": {
  9333. "description": "UnauthorizedError",
  9334. "content": {
  9335. "application/json": {
  9336. "schema": {
  9337. "$ref": "#/components/schemas/UnauthorizedError"
  9338. }
  9339. }
  9340. }
  9341. },
  9342. "404": {
  9343. "description": "PtyNotFoundError",
  9344. "content": {
  9345. "application/json": {
  9346. "schema": {
  9347. "$ref": "#/components/schemas/PtyNotFoundError"
  9348. }
  9349. }
  9350. }
  9351. }
  9352. },
  9353. "description": "Update the title or viewport size of one PTY session.",
  9354. "summary": "Update PTY session",
  9355. "requestBody": {
  9356. "content": {
  9357. "application/json": {
  9358. "schema": {
  9359. "type": "object",
  9360. "properties": {
  9361. "title": {
  9362. "type": "string"
  9363. },
  9364. "size": {
  9365. "type": "object",
  9366. "properties": {
  9367. "rows": {
  9368. "type": "integer",
  9369. "allOf": [
  9370. {
  9371. "exclusiveMinimum": 0
  9372. }
  9373. ]
  9374. },
  9375. "cols": {
  9376. "type": "integer",
  9377. "allOf": [
  9378. {
  9379. "exclusiveMinimum": 0
  9380. }
  9381. ]
  9382. }
  9383. },
  9384. "required": [
  9385. "rows",
  9386. "cols"
  9387. ],
  9388. "additionalProperties": false
  9389. }
  9390. },
  9391. "additionalProperties": false
  9392. }
  9393. }
  9394. },
  9395. "required": true
  9396. }
  9397. },
  9398. "delete": {
  9399. "tags": [
  9400. "pty"
  9401. ],
  9402. "operationId": "v2.pty.remove",
  9403. "parameters": [
  9404. {
  9405. "name": "ptyID",
  9406. "in": "path",
  9407. "schema": {
  9408. "type": "string",
  9409. "allOf": [
  9410. {
  9411. "pattern": "^pty"
  9412. }
  9413. ]
  9414. },
  9415. "required": true
  9416. },
  9417. {
  9418. "name": "location",
  9419. "in": "query",
  9420. "schema": {
  9421. "anyOf": [
  9422. {
  9423. "type": "object",
  9424. "properties": {
  9425. "directory": {
  9426. "anyOf": [
  9427. {
  9428. "type": "string"
  9429. },
  9430. {
  9431. "type": "null"
  9432. }
  9433. ]
  9434. },
  9435. "workspace": {
  9436. "anyOf": [
  9437. {
  9438. "type": "string"
  9439. },
  9440. {
  9441. "type": "null"
  9442. }
  9443. ]
  9444. }
  9445. },
  9446. "additionalProperties": false
  9447. },
  9448. {
  9449. "type": "null"
  9450. }
  9451. ]
  9452. },
  9453. "required": false,
  9454. "style": "deepObject",
  9455. "explode": true
  9456. }
  9457. ],
  9458. "security": [],
  9459. "responses": {
  9460. "204": {
  9461. "description": "<No Content>"
  9462. },
  9463. "400": {
  9464. "description": "InvalidRequestError",
  9465. "content": {
  9466. "application/json": {
  9467. "schema": {
  9468. "$ref": "#/components/schemas/InvalidRequestError"
  9469. }
  9470. }
  9471. }
  9472. },
  9473. "401": {
  9474. "description": "UnauthorizedError",
  9475. "content": {
  9476. "application/json": {
  9477. "schema": {
  9478. "$ref": "#/components/schemas/UnauthorizedError"
  9479. }
  9480. }
  9481. }
  9482. },
  9483. "404": {
  9484. "description": "PtyNotFoundError",
  9485. "content": {
  9486. "application/json": {
  9487. "schema": {
  9488. "$ref": "#/components/schemas/PtyNotFoundError"
  9489. }
  9490. }
  9491. }
  9492. }
  9493. },
  9494. "description": "Terminate and remove one PTY session.",
  9495. "summary": "Remove PTY session"
  9496. }
  9497. },
  9498. "/api/pty/{ptyID}/connect-token": {
  9499. "post": {
  9500. "tags": [
  9501. "pty"
  9502. ],
  9503. "operationId": "v2.pty.connect.token",
  9504. "parameters": [
  9505. {
  9506. "name": "ptyID",
  9507. "in": "path",
  9508. "schema": {
  9509. "type": "string",
  9510. "allOf": [
  9511. {
  9512. "pattern": "^pty"
  9513. }
  9514. ]
  9515. },
  9516. "required": true
  9517. },
  9518. {
  9519. "name": "location",
  9520. "in": "query",
  9521. "schema": {
  9522. "anyOf": [
  9523. {
  9524. "type": "object",
  9525. "properties": {
  9526. "directory": {
  9527. "anyOf": [
  9528. {
  9529. "type": "string"
  9530. },
  9531. {
  9532. "type": "null"
  9533. }
  9534. ]
  9535. },
  9536. "workspace": {
  9537. "anyOf": [
  9538. {
  9539. "type": "string"
  9540. },
  9541. {
  9542. "type": "null"
  9543. }
  9544. ]
  9545. }
  9546. },
  9547. "additionalProperties": false
  9548. },
  9549. {
  9550. "type": "null"
  9551. }
  9552. ]
  9553. },
  9554. "required": false,
  9555. "style": "deepObject",
  9556. "explode": true
  9557. }
  9558. ],
  9559. "security": [],
  9560. "responses": {
  9561. "200": {
  9562. "description": "Success",
  9563. "content": {
  9564. "application/json": {
  9565. "schema": {
  9566. "type": "object",
  9567. "properties": {
  9568. "location": {
  9569. "$ref": "#/components/schemas/Location.Info"
  9570. },
  9571. "data": {
  9572. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9573. }
  9574. },
  9575. "required": [
  9576. "location",
  9577. "data"
  9578. ],
  9579. "additionalProperties": false
  9580. }
  9581. }
  9582. }
  9583. },
  9584. "400": {
  9585. "description": "InvalidRequestError",
  9586. "content": {
  9587. "application/json": {
  9588. "schema": {
  9589. "$ref": "#/components/schemas/InvalidRequestError"
  9590. }
  9591. }
  9592. }
  9593. },
  9594. "401": {
  9595. "description": "UnauthorizedError",
  9596. "content": {
  9597. "application/json": {
  9598. "schema": {
  9599. "$ref": "#/components/schemas/UnauthorizedError"
  9600. }
  9601. }
  9602. }
  9603. },
  9604. "403": {
  9605. "description": "ForbiddenError",
  9606. "content": {
  9607. "application/json": {
  9608. "schema": {
  9609. "$ref": "#/components/schemas/ForbiddenError"
  9610. }
  9611. }
  9612. }
  9613. },
  9614. "404": {
  9615. "description": "PtyNotFoundError",
  9616. "content": {
  9617. "application/json": {
  9618. "schema": {
  9619. "$ref": "#/components/schemas/PtyNotFoundError"
  9620. }
  9621. }
  9622. }
  9623. }
  9624. },
  9625. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9626. "summary": "Create PTY WebSocket token"
  9627. }
  9628. },
  9629. "/api/pty/{ptyID}/connect": {
  9630. "get": {
  9631. "tags": [
  9632. "pty"
  9633. ],
  9634. "operationId": "v2.pty.connect",
  9635. "parameters": [
  9636. {
  9637. "name": "ptyID",
  9638. "in": "path",
  9639. "schema": {
  9640. "type": "string",
  9641. "allOf": [
  9642. {
  9643. "pattern": "^pty"
  9644. }
  9645. ]
  9646. },
  9647. "required": true
  9648. },
  9649. {
  9650. "in": "query",
  9651. "name": "location[directory]",
  9652. "schema": {
  9653. "type": "string"
  9654. }
  9655. },
  9656. {
  9657. "in": "query",
  9658. "name": "location[workspace]",
  9659. "schema": {
  9660. "type": "string"
  9661. }
  9662. },
  9663. {
  9664. "in": "query",
  9665. "name": "cursor",
  9666. "schema": {
  9667. "type": "string"
  9668. }
  9669. },
  9670. {
  9671. "in": "query",
  9672. "name": "ticket",
  9673. "schema": {
  9674. "type": "string"
  9675. }
  9676. }
  9677. ],
  9678. "security": [],
  9679. "responses": {
  9680. "200": {
  9681. "description": "Success",
  9682. "content": {
  9683. "application/json": {
  9684. "schema": {
  9685. "type": "boolean"
  9686. }
  9687. }
  9688. }
  9689. },
  9690. "400": {
  9691. "description": "InvalidRequestError",
  9692. "content": {
  9693. "application/json": {
  9694. "schema": {
  9695. "$ref": "#/components/schemas/InvalidRequestError"
  9696. }
  9697. }
  9698. }
  9699. },
  9700. "401": {
  9701. "description": "UnauthorizedError",
  9702. "content": {
  9703. "application/json": {
  9704. "schema": {
  9705. "$ref": "#/components/schemas/UnauthorizedError"
  9706. }
  9707. }
  9708. }
  9709. },
  9710. "403": {
  9711. "description": "ForbiddenError",
  9712. "content": {
  9713. "application/json": {
  9714. "schema": {
  9715. "$ref": "#/components/schemas/ForbiddenError"
  9716. }
  9717. }
  9718. }
  9719. },
  9720. "404": {
  9721. "description": "PtyNotFoundError",
  9722. "content": {
  9723. "application/json": {
  9724. "schema": {
  9725. "$ref": "#/components/schemas/PtyNotFoundError"
  9726. }
  9727. }
  9728. }
  9729. }
  9730. },
  9731. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9732. "summary": "Connect to PTY session",
  9733. "x-websocket": true
  9734. }
  9735. },
  9736. "/api/shell": {
  9737. "get": {
  9738. "tags": [
  9739. "shell"
  9740. ],
  9741. "operationId": "v2.shell.list",
  9742. "parameters": [
  9743. {
  9744. "name": "location",
  9745. "in": "query",
  9746. "schema": {
  9747. "anyOf": [
  9748. {
  9749. "type": "object",
  9750. "properties": {
  9751. "directory": {
  9752. "anyOf": [
  9753. {
  9754. "type": "string"
  9755. },
  9756. {
  9757. "type": "null"
  9758. }
  9759. ]
  9760. },
  9761. "workspace": {
  9762. "anyOf": [
  9763. {
  9764. "type": "string"
  9765. },
  9766. {
  9767. "type": "null"
  9768. }
  9769. ]
  9770. }
  9771. },
  9772. "additionalProperties": false
  9773. },
  9774. {
  9775. "type": "null"
  9776. }
  9777. ]
  9778. },
  9779. "required": false,
  9780. "style": "deepObject",
  9781. "explode": true
  9782. }
  9783. ],
  9784. "security": [],
  9785. "responses": {
  9786. "200": {
  9787. "description": "Success",
  9788. "content": {
  9789. "application/json": {
  9790. "schema": {
  9791. "type": "object",
  9792. "properties": {
  9793. "location": {
  9794. "$ref": "#/components/schemas/Location.Info"
  9795. },
  9796. "data": {
  9797. "type": "array",
  9798. "items": {
  9799. "$ref": "#/components/schemas/Shell.Info1"
  9800. }
  9801. }
  9802. },
  9803. "required": [
  9804. "location",
  9805. "data"
  9806. ],
  9807. "additionalProperties": false
  9808. }
  9809. }
  9810. }
  9811. },
  9812. "400": {
  9813. "description": "InvalidRequestError",
  9814. "content": {
  9815. "application/json": {
  9816. "schema": {
  9817. "$ref": "#/components/schemas/InvalidRequestError"
  9818. }
  9819. }
  9820. }
  9821. },
  9822. "401": {
  9823. "description": "UnauthorizedError",
  9824. "content": {
  9825. "application/json": {
  9826. "schema": {
  9827. "$ref": "#/components/schemas/UnauthorizedError"
  9828. }
  9829. }
  9830. }
  9831. }
  9832. },
  9833. "description": "List currently running shell commands for a location. Exited commands are not included.",
  9834. "summary": "List running shell commands"
  9835. },
  9836. "post": {
  9837. "tags": [
  9838. "shell"
  9839. ],
  9840. "operationId": "v2.shell.create",
  9841. "parameters": [
  9842. {
  9843. "name": "location",
  9844. "in": "query",
  9845. "schema": {
  9846. "anyOf": [
  9847. {
  9848. "type": "object",
  9849. "properties": {
  9850. "directory": {
  9851. "anyOf": [
  9852. {
  9853. "type": "string"
  9854. },
  9855. {
  9856. "type": "null"
  9857. }
  9858. ]
  9859. },
  9860. "workspace": {
  9861. "anyOf": [
  9862. {
  9863. "type": "string"
  9864. },
  9865. {
  9866. "type": "null"
  9867. }
  9868. ]
  9869. }
  9870. },
  9871. "additionalProperties": false
  9872. },
  9873. {
  9874. "type": "null"
  9875. }
  9876. ]
  9877. },
  9878. "required": false,
  9879. "style": "deepObject",
  9880. "explode": true
  9881. }
  9882. ],
  9883. "security": [],
  9884. "responses": {
  9885. "200": {
  9886. "description": "Success",
  9887. "content": {
  9888. "application/json": {
  9889. "schema": {
  9890. "type": "object",
  9891. "properties": {
  9892. "location": {
  9893. "$ref": "#/components/schemas/Location.Info"
  9894. },
  9895. "data": {
  9896. "$ref": "#/components/schemas/Shell.Info1"
  9897. }
  9898. },
  9899. "required": [
  9900. "location",
  9901. "data"
  9902. ],
  9903. "additionalProperties": false
  9904. }
  9905. }
  9906. }
  9907. },
  9908. "400": {
  9909. "description": "InvalidRequestError",
  9910. "content": {
  9911. "application/json": {
  9912. "schema": {
  9913. "$ref": "#/components/schemas/InvalidRequestError"
  9914. }
  9915. }
  9916. }
  9917. },
  9918. "401": {
  9919. "description": "UnauthorizedError",
  9920. "content": {
  9921. "application/json": {
  9922. "schema": {
  9923. "$ref": "#/components/schemas/UnauthorizedError"
  9924. }
  9925. }
  9926. }
  9927. }
  9928. },
  9929. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9930. "summary": "Run shell command",
  9931. "requestBody": {
  9932. "content": {
  9933. "application/json": {
  9934. "schema": {
  9935. "type": "object",
  9936. "properties": {
  9937. "command": {
  9938. "type": "string"
  9939. },
  9940. "cwd": {
  9941. "type": "string"
  9942. },
  9943. "timeout": {
  9944. "type": "integer",
  9945. "allOf": [
  9946. {
  9947. "minimum": 0
  9948. }
  9949. ]
  9950. },
  9951. "metadata": {
  9952. "type": "object"
  9953. }
  9954. },
  9955. "required": [
  9956. "command",
  9957. "timeout"
  9958. ],
  9959. "additionalProperties": false
  9960. }
  9961. }
  9962. },
  9963. "required": true
  9964. }
  9965. }
  9966. },
  9967. "/api/shell/{id}": {
  9968. "get": {
  9969. "tags": [
  9970. "shell"
  9971. ],
  9972. "operationId": "v2.shell.get",
  9973. "parameters": [
  9974. {
  9975. "name": "id",
  9976. "in": "path",
  9977. "schema": {
  9978. "type": "string",
  9979. "allOf": [
  9980. {
  9981. "pattern": "^sh_"
  9982. }
  9983. ]
  9984. },
  9985. "required": true
  9986. },
  9987. {
  9988. "name": "location",
  9989. "in": "query",
  9990. "schema": {
  9991. "anyOf": [
  9992. {
  9993. "type": "object",
  9994. "properties": {
  9995. "directory": {
  9996. "anyOf": [
  9997. {
  9998. "type": "string"
  9999. },
  10000. {
  10001. "type": "null"
  10002. }
  10003. ]
  10004. },
  10005. "workspace": {
  10006. "anyOf": [
  10007. {
  10008. "type": "string"
  10009. },
  10010. {
  10011. "type": "null"
  10012. }
  10013. ]
  10014. }
  10015. },
  10016. "additionalProperties": false
  10017. },
  10018. {
  10019. "type": "null"
  10020. }
  10021. ]
  10022. },
  10023. "required": false,
  10024. "style": "deepObject",
  10025. "explode": true
  10026. }
  10027. ],
  10028. "security": [],
  10029. "responses": {
  10030. "200": {
  10031. "description": "Success",
  10032. "content": {
  10033. "application/json": {
  10034. "schema": {
  10035. "type": "object",
  10036. "properties": {
  10037. "location": {
  10038. "$ref": "#/components/schemas/Location.Info"
  10039. },
  10040. "data": {
  10041. "$ref": "#/components/schemas/Shell.Info1"
  10042. }
  10043. },
  10044. "required": [
  10045. "location",
  10046. "data"
  10047. ],
  10048. "additionalProperties": false
  10049. }
  10050. }
  10051. }
  10052. },
  10053. "400": {
  10054. "description": "InvalidRequestError",
  10055. "content": {
  10056. "application/json": {
  10057. "schema": {
  10058. "$ref": "#/components/schemas/InvalidRequestError"
  10059. }
  10060. }
  10061. }
  10062. },
  10063. "401": {
  10064. "description": "UnauthorizedError",
  10065. "content": {
  10066. "application/json": {
  10067. "schema": {
  10068. "$ref": "#/components/schemas/UnauthorizedError"
  10069. }
  10070. }
  10071. }
  10072. },
  10073. "404": {
  10074. "description": "ShellNotFoundError",
  10075. "content": {
  10076. "application/json": {
  10077. "schema": {
  10078. "$ref": "#/components/schemas/ShellNotFoundError"
  10079. }
  10080. }
  10081. }
  10082. }
  10083. },
  10084. "description": "Get one shell command, including its status and exit code once exited.",
  10085. "summary": "Get shell command"
  10086. },
  10087. "delete": {
  10088. "tags": [
  10089. "shell"
  10090. ],
  10091. "operationId": "v2.shell.remove",
  10092. "parameters": [
  10093. {
  10094. "name": "id",
  10095. "in": "path",
  10096. "schema": {
  10097. "type": "string",
  10098. "allOf": [
  10099. {
  10100. "pattern": "^sh_"
  10101. }
  10102. ]
  10103. },
  10104. "required": true
  10105. },
  10106. {
  10107. "name": "location",
  10108. "in": "query",
  10109. "schema": {
  10110. "anyOf": [
  10111. {
  10112. "type": "object",
  10113. "properties": {
  10114. "directory": {
  10115. "anyOf": [
  10116. {
  10117. "type": "string"
  10118. },
  10119. {
  10120. "type": "null"
  10121. }
  10122. ]
  10123. },
  10124. "workspace": {
  10125. "anyOf": [
  10126. {
  10127. "type": "string"
  10128. },
  10129. {
  10130. "type": "null"
  10131. }
  10132. ]
  10133. }
  10134. },
  10135. "additionalProperties": false
  10136. },
  10137. {
  10138. "type": "null"
  10139. }
  10140. ]
  10141. },
  10142. "required": false,
  10143. "style": "deepObject",
  10144. "explode": true
  10145. }
  10146. ],
  10147. "security": [],
  10148. "responses": {
  10149. "204": {
  10150. "description": "<No Content>"
  10151. },
  10152. "400": {
  10153. "description": "InvalidRequestError",
  10154. "content": {
  10155. "application/json": {
  10156. "schema": {
  10157. "$ref": "#/components/schemas/InvalidRequestError"
  10158. }
  10159. }
  10160. }
  10161. },
  10162. "401": {
  10163. "description": "UnauthorizedError",
  10164. "content": {
  10165. "application/json": {
  10166. "schema": {
  10167. "$ref": "#/components/schemas/UnauthorizedError"
  10168. }
  10169. }
  10170. }
  10171. },
  10172. "404": {
  10173. "description": "ShellNotFoundError",
  10174. "content": {
  10175. "application/json": {
  10176. "schema": {
  10177. "$ref": "#/components/schemas/ShellNotFoundError"
  10178. }
  10179. }
  10180. }
  10181. }
  10182. },
  10183. "description": "Terminate and remove one shell command and its retained output.",
  10184. "summary": "Remove shell command"
  10185. }
  10186. },
  10187. "/api/shell/{id}/timeout": {
  10188. "patch": {
  10189. "tags": [
  10190. "shell"
  10191. ],
  10192. "operationId": "v2.shell.timeout",
  10193. "parameters": [
  10194. {
  10195. "name": "id",
  10196. "in": "path",
  10197. "schema": {
  10198. "type": "string",
  10199. "allOf": [
  10200. {
  10201. "pattern": "^sh_"
  10202. }
  10203. ]
  10204. },
  10205. "required": true
  10206. },
  10207. {
  10208. "name": "location",
  10209. "in": "query",
  10210. "schema": {
  10211. "anyOf": [
  10212. {
  10213. "type": "object",
  10214. "properties": {
  10215. "directory": {
  10216. "anyOf": [
  10217. {
  10218. "type": "string"
  10219. },
  10220. {
  10221. "type": "null"
  10222. }
  10223. ]
  10224. },
  10225. "workspace": {
  10226. "anyOf": [
  10227. {
  10228. "type": "string"
  10229. },
  10230. {
  10231. "type": "null"
  10232. }
  10233. ]
  10234. }
  10235. },
  10236. "additionalProperties": false
  10237. },
  10238. {
  10239. "type": "null"
  10240. }
  10241. ]
  10242. },
  10243. "required": false,
  10244. "style": "deepObject",
  10245. "explode": true
  10246. }
  10247. ],
  10248. "security": [],
  10249. "responses": {
  10250. "200": {
  10251. "description": "Success",
  10252. "content": {
  10253. "application/json": {
  10254. "schema": {
  10255. "type": "object",
  10256. "properties": {
  10257. "location": {
  10258. "$ref": "#/components/schemas/Location.Info"
  10259. },
  10260. "data": {
  10261. "$ref": "#/components/schemas/Shell.Info1"
  10262. }
  10263. },
  10264. "required": [
  10265. "location",
  10266. "data"
  10267. ],
  10268. "additionalProperties": false
  10269. }
  10270. }
  10271. }
  10272. },
  10273. "400": {
  10274. "description": "InvalidRequestError",
  10275. "content": {
  10276. "application/json": {
  10277. "schema": {
  10278. "$ref": "#/components/schemas/InvalidRequestError"
  10279. }
  10280. }
  10281. }
  10282. },
  10283. "401": {
  10284. "description": "UnauthorizedError",
  10285. "content": {
  10286. "application/json": {
  10287. "schema": {
  10288. "$ref": "#/components/schemas/UnauthorizedError"
  10289. }
  10290. }
  10291. }
  10292. },
  10293. "404": {
  10294. "description": "ShellNotFoundError",
  10295. "content": {
  10296. "application/json": {
  10297. "schema": {
  10298. "$ref": "#/components/schemas/ShellNotFoundError"
  10299. }
  10300. }
  10301. }
  10302. }
  10303. },
  10304. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10305. "summary": "Update shell timeout",
  10306. "requestBody": {
  10307. "content": {
  10308. "application/json": {
  10309. "schema": {
  10310. "type": "object",
  10311. "properties": {
  10312. "timeout": {
  10313. "type": "integer",
  10314. "allOf": [
  10315. {
  10316. "minimum": 0
  10317. }
  10318. ]
  10319. }
  10320. },
  10321. "required": [
  10322. "timeout"
  10323. ],
  10324. "additionalProperties": false
  10325. }
  10326. }
  10327. },
  10328. "required": true
  10329. }
  10330. }
  10331. },
  10332. "/api/shell/{id}/output": {
  10333. "get": {
  10334. "tags": [
  10335. "shell"
  10336. ],
  10337. "operationId": "v2.shell.output",
  10338. "parameters": [
  10339. {
  10340. "name": "id",
  10341. "in": "path",
  10342. "schema": {
  10343. "type": "string",
  10344. "allOf": [
  10345. {
  10346. "pattern": "^sh_"
  10347. }
  10348. ]
  10349. },
  10350. "required": true
  10351. },
  10352. {
  10353. "name": "location",
  10354. "in": "query",
  10355. "schema": {
  10356. "anyOf": [
  10357. {
  10358. "type": "object",
  10359. "properties": {
  10360. "directory": {
  10361. "anyOf": [
  10362. {
  10363. "type": "string"
  10364. },
  10365. {
  10366. "type": "null"
  10367. }
  10368. ]
  10369. },
  10370. "workspace": {
  10371. "anyOf": [
  10372. {
  10373. "type": "string"
  10374. },
  10375. {
  10376. "type": "null"
  10377. }
  10378. ]
  10379. }
  10380. },
  10381. "additionalProperties": false
  10382. },
  10383. {
  10384. "type": "null"
  10385. }
  10386. ]
  10387. },
  10388. "required": false,
  10389. "style": "deepObject",
  10390. "explode": true
  10391. },
  10392. {
  10393. "name": "cursor",
  10394. "in": "query",
  10395. "schema": {
  10396. "type": "string",
  10397. "allOf": [
  10398. {
  10399. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10400. }
  10401. ]
  10402. },
  10403. "required": false
  10404. },
  10405. {
  10406. "name": "limit",
  10407. "in": "query",
  10408. "schema": {
  10409. "type": "string",
  10410. "allOf": [
  10411. {
  10412. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10413. }
  10414. ]
  10415. },
  10416. "required": false
  10417. }
  10418. ],
  10419. "security": [],
  10420. "responses": {
  10421. "200": {
  10422. "description": "Success",
  10423. "content": {
  10424. "application/json": {
  10425. "schema": {
  10426. "type": "object",
  10427. "properties": {
  10428. "location": {
  10429. "$ref": "#/components/schemas/Location.Info"
  10430. },
  10431. "data": {
  10432. "type": "object",
  10433. "properties": {
  10434. "output": {
  10435. "type": "string"
  10436. },
  10437. "cursor": {
  10438. "type": "integer",
  10439. "allOf": [
  10440. {
  10441. "minimum": 0
  10442. }
  10443. ]
  10444. },
  10445. "size": {
  10446. "type": "integer",
  10447. "allOf": [
  10448. {
  10449. "minimum": 0
  10450. }
  10451. ]
  10452. },
  10453. "truncated": {
  10454. "type": "boolean"
  10455. }
  10456. },
  10457. "required": [
  10458. "output",
  10459. "cursor",
  10460. "size",
  10461. "truncated"
  10462. ],
  10463. "additionalProperties": false
  10464. }
  10465. },
  10466. "required": [
  10467. "location",
  10468. "data"
  10469. ],
  10470. "additionalProperties": false
  10471. }
  10472. }
  10473. }
  10474. },
  10475. "400": {
  10476. "description": "InvalidRequestError",
  10477. "content": {
  10478. "application/json": {
  10479. "schema": {
  10480. "$ref": "#/components/schemas/InvalidRequestError"
  10481. }
  10482. }
  10483. }
  10484. },
  10485. "401": {
  10486. "description": "UnauthorizedError",
  10487. "content": {
  10488. "application/json": {
  10489. "schema": {
  10490. "$ref": "#/components/schemas/UnauthorizedError"
  10491. }
  10492. }
  10493. }
  10494. },
  10495. "404": {
  10496. "description": "ShellNotFoundError",
  10497. "content": {
  10498. "application/json": {
  10499. "schema": {
  10500. "$ref": "#/components/schemas/ShellNotFoundError"
  10501. }
  10502. }
  10503. }
  10504. }
  10505. },
  10506. "description": "Page through captured combined output by absolute byte cursor.",
  10507. "summary": "Read shell output"
  10508. }
  10509. },
  10510. "/api/question/request": {
  10511. "get": {
  10512. "tags": [
  10513. "question"
  10514. ],
  10515. "operationId": "v2.question.request.list",
  10516. "parameters": [
  10517. {
  10518. "name": "location",
  10519. "in": "query",
  10520. "schema": {
  10521. "anyOf": [
  10522. {
  10523. "type": "object",
  10524. "properties": {
  10525. "directory": {
  10526. "anyOf": [
  10527. {
  10528. "type": "string"
  10529. },
  10530. {
  10531. "type": "null"
  10532. }
  10533. ]
  10534. },
  10535. "workspace": {
  10536. "anyOf": [
  10537. {
  10538. "type": "string"
  10539. },
  10540. {
  10541. "type": "null"
  10542. }
  10543. ]
  10544. }
  10545. },
  10546. "additionalProperties": false
  10547. },
  10548. {
  10549. "type": "null"
  10550. }
  10551. ]
  10552. },
  10553. "required": false,
  10554. "style": "deepObject",
  10555. "explode": true
  10556. }
  10557. ],
  10558. "security": [],
  10559. "responses": {
  10560. "200": {
  10561. "description": "Success",
  10562. "content": {
  10563. "application/json": {
  10564. "schema": {
  10565. "type": "object",
  10566. "properties": {
  10567. "location": {
  10568. "$ref": "#/components/schemas/Location.Info"
  10569. },
  10570. "data": {
  10571. "type": "array",
  10572. "items": {
  10573. "$ref": "#/components/schemas/Question.Request"
  10574. }
  10575. }
  10576. },
  10577. "required": [
  10578. "location",
  10579. "data"
  10580. ],
  10581. "additionalProperties": false
  10582. }
  10583. }
  10584. }
  10585. },
  10586. "400": {
  10587. "description": "InvalidRequestError",
  10588. "content": {
  10589. "application/json": {
  10590. "schema": {
  10591. "$ref": "#/components/schemas/InvalidRequestError"
  10592. }
  10593. }
  10594. }
  10595. },
  10596. "401": {
  10597. "description": "UnauthorizedError",
  10598. "content": {
  10599. "application/json": {
  10600. "schema": {
  10601. "$ref": "#/components/schemas/UnauthorizedError"
  10602. }
  10603. }
  10604. }
  10605. }
  10606. },
  10607. "description": "Retrieve pending question requests for a location.",
  10608. "summary": "List pending question requests"
  10609. }
  10610. },
  10611. "/api/session/{sessionID}/question": {
  10612. "get": {
  10613. "tags": [
  10614. "question"
  10615. ],
  10616. "operationId": "v2.session.question.list",
  10617. "parameters": [
  10618. {
  10619. "name": "sessionID",
  10620. "in": "path",
  10621. "schema": {
  10622. "type": "string",
  10623. "allOf": [
  10624. {
  10625. "pattern": "^ses"
  10626. }
  10627. ]
  10628. },
  10629. "required": true
  10630. }
  10631. ],
  10632. "security": [],
  10633. "responses": {
  10634. "200": {
  10635. "description": "Success",
  10636. "content": {
  10637. "application/json": {
  10638. "schema": {
  10639. "type": "object",
  10640. "properties": {
  10641. "data": {
  10642. "type": "array",
  10643. "items": {
  10644. "$ref": "#/components/schemas/Question.Request"
  10645. }
  10646. }
  10647. },
  10648. "required": [
  10649. "data"
  10650. ],
  10651. "additionalProperties": false
  10652. }
  10653. }
  10654. }
  10655. },
  10656. "400": {
  10657. "description": "InvalidRequestError",
  10658. "content": {
  10659. "application/json": {
  10660. "schema": {
  10661. "$ref": "#/components/schemas/InvalidRequestError"
  10662. }
  10663. }
  10664. }
  10665. },
  10666. "401": {
  10667. "description": "UnauthorizedError",
  10668. "content": {
  10669. "application/json": {
  10670. "schema": {
  10671. "$ref": "#/components/schemas/UnauthorizedError"
  10672. }
  10673. }
  10674. }
  10675. },
  10676. "404": {
  10677. "description": "SessionNotFoundError",
  10678. "content": {
  10679. "application/json": {
  10680. "schema": {
  10681. "anyOf": [
  10682. {
  10683. "$ref": "#/components/schemas/SessionNotFoundError"
  10684. },
  10685. {
  10686. "$ref": "#/components/schemas/SessionNotFoundError"
  10687. }
  10688. ]
  10689. }
  10690. }
  10691. }
  10692. }
  10693. },
  10694. "description": "Retrieve pending question requests owned by a session.",
  10695. "summary": "List session question requests"
  10696. }
  10697. },
  10698. "/api/session/{sessionID}/question/{requestID}/reply": {
  10699. "post": {
  10700. "tags": [
  10701. "question"
  10702. ],
  10703. "operationId": "v2.session.question.reply",
  10704. "parameters": [
  10705. {
  10706. "name": "sessionID",
  10707. "in": "path",
  10708. "schema": {
  10709. "type": "string",
  10710. "allOf": [
  10711. {
  10712. "pattern": "^ses"
  10713. }
  10714. ]
  10715. },
  10716. "required": true
  10717. },
  10718. {
  10719. "name": "requestID",
  10720. "in": "path",
  10721. "schema": {
  10722. "type": "string",
  10723. "allOf": [
  10724. {
  10725. "pattern": "^que"
  10726. }
  10727. ]
  10728. },
  10729. "required": true
  10730. }
  10731. ],
  10732. "security": [],
  10733. "responses": {
  10734. "204": {
  10735. "description": "<No Content>"
  10736. },
  10737. "400": {
  10738. "description": "InvalidRequestError",
  10739. "content": {
  10740. "application/json": {
  10741. "schema": {
  10742. "$ref": "#/components/schemas/InvalidRequestError"
  10743. }
  10744. }
  10745. }
  10746. },
  10747. "401": {
  10748. "description": "UnauthorizedError",
  10749. "content": {
  10750. "application/json": {
  10751. "schema": {
  10752. "$ref": "#/components/schemas/UnauthorizedError"
  10753. }
  10754. }
  10755. }
  10756. },
  10757. "404": {
  10758. "description": "SessionNotFoundError | QuestionNotFoundError",
  10759. "content": {
  10760. "application/json": {
  10761. "schema": {
  10762. "anyOf": [
  10763. {
  10764. "$ref": "#/components/schemas/QuestionNotFoundError"
  10765. },
  10766. {
  10767. "$ref": "#/components/schemas/SessionNotFoundError"
  10768. },
  10769. {
  10770. "$ref": "#/components/schemas/SessionNotFoundError"
  10771. }
  10772. ]
  10773. }
  10774. }
  10775. }
  10776. }
  10777. },
  10778. "description": "Answer a pending question request owned by a session.",
  10779. "summary": "Reply to pending question request",
  10780. "requestBody": {
  10781. "content": {
  10782. "application/json": {
  10783. "schema": {
  10784. "$ref": "#/components/schemas/Question.Reply"
  10785. }
  10786. }
  10787. },
  10788. "required": true
  10789. }
  10790. }
  10791. },
  10792. "/api/session/{sessionID}/question/{requestID}/reject": {
  10793. "post": {
  10794. "tags": [
  10795. "question"
  10796. ],
  10797. "operationId": "v2.session.question.reject",
  10798. "parameters": [
  10799. {
  10800. "name": "sessionID",
  10801. "in": "path",
  10802. "schema": {
  10803. "type": "string",
  10804. "allOf": [
  10805. {
  10806. "pattern": "^ses"
  10807. }
  10808. ]
  10809. },
  10810. "required": true
  10811. },
  10812. {
  10813. "name": "requestID",
  10814. "in": "path",
  10815. "schema": {
  10816. "type": "string",
  10817. "allOf": [
  10818. {
  10819. "pattern": "^que"
  10820. }
  10821. ]
  10822. },
  10823. "required": true
  10824. }
  10825. ],
  10826. "security": [],
  10827. "responses": {
  10828. "204": {
  10829. "description": "<No Content>"
  10830. },
  10831. "400": {
  10832. "description": "InvalidRequestError",
  10833. "content": {
  10834. "application/json": {
  10835. "schema": {
  10836. "$ref": "#/components/schemas/InvalidRequestError"
  10837. }
  10838. }
  10839. }
  10840. },
  10841. "401": {
  10842. "description": "UnauthorizedError",
  10843. "content": {
  10844. "application/json": {
  10845. "schema": {
  10846. "$ref": "#/components/schemas/UnauthorizedError"
  10847. }
  10848. }
  10849. }
  10850. },
  10851. "404": {
  10852. "description": "SessionNotFoundError | QuestionNotFoundError",
  10853. "content": {
  10854. "application/json": {
  10855. "schema": {
  10856. "anyOf": [
  10857. {
  10858. "$ref": "#/components/schemas/QuestionNotFoundError"
  10859. },
  10860. {
  10861. "$ref": "#/components/schemas/SessionNotFoundError"
  10862. },
  10863. {
  10864. "$ref": "#/components/schemas/SessionNotFoundError"
  10865. }
  10866. ]
  10867. }
  10868. }
  10869. }
  10870. }
  10871. },
  10872. "description": "Reject a pending question request owned by a session.",
  10873. "summary": "Reject pending question request"
  10874. }
  10875. },
  10876. "/api/reference": {
  10877. "get": {
  10878. "tags": [
  10879. "reference"
  10880. ],
  10881. "operationId": "v2.reference.list",
  10882. "parameters": [
  10883. {
  10884. "name": "location",
  10885. "in": "query",
  10886. "schema": {
  10887. "anyOf": [
  10888. {
  10889. "type": "object",
  10890. "properties": {
  10891. "directory": {
  10892. "anyOf": [
  10893. {
  10894. "type": "string"
  10895. },
  10896. {
  10897. "type": "null"
  10898. }
  10899. ]
  10900. },
  10901. "workspace": {
  10902. "anyOf": [
  10903. {
  10904. "type": "string"
  10905. },
  10906. {
  10907. "type": "null"
  10908. }
  10909. ]
  10910. }
  10911. },
  10912. "additionalProperties": false
  10913. },
  10914. {
  10915. "type": "null"
  10916. }
  10917. ]
  10918. },
  10919. "required": false,
  10920. "style": "deepObject",
  10921. "explode": true
  10922. }
  10923. ],
  10924. "security": [],
  10925. "responses": {
  10926. "200": {
  10927. "description": "Success",
  10928. "content": {
  10929. "application/json": {
  10930. "schema": {
  10931. "type": "object",
  10932. "properties": {
  10933. "location": {
  10934. "$ref": "#/components/schemas/Location.Info"
  10935. },
  10936. "data": {
  10937. "type": "array",
  10938. "items": {
  10939. "$ref": "#/components/schemas/Reference.Info"
  10940. }
  10941. }
  10942. },
  10943. "required": [
  10944. "location",
  10945. "data"
  10946. ],
  10947. "additionalProperties": false
  10948. }
  10949. }
  10950. }
  10951. },
  10952. "400": {
  10953. "description": "InvalidRequestError",
  10954. "content": {
  10955. "application/json": {
  10956. "schema": {
  10957. "$ref": "#/components/schemas/InvalidRequestError"
  10958. }
  10959. }
  10960. }
  10961. },
  10962. "401": {
  10963. "description": "UnauthorizedError",
  10964. "content": {
  10965. "application/json": {
  10966. "schema": {
  10967. "$ref": "#/components/schemas/UnauthorizedError"
  10968. }
  10969. }
  10970. }
  10971. }
  10972. },
  10973. "description": "List references available in the requested location.",
  10974. "summary": "List references"
  10975. }
  10976. },
  10977. "/experimental/project/{projectID}/copy": {
  10978. "post": {
  10979. "tags": [
  10980. "projectCopy"
  10981. ],
  10982. "operationId": "v2.projectCopy.create",
  10983. "parameters": [
  10984. {
  10985. "name": "projectID",
  10986. "in": "path",
  10987. "schema": {
  10988. "type": "string"
  10989. },
  10990. "required": true
  10991. },
  10992. {
  10993. "name": "location",
  10994. "in": "query",
  10995. "schema": {
  10996. "anyOf": [
  10997. {
  10998. "type": "object",
  10999. "properties": {
  11000. "directory": {
  11001. "anyOf": [
  11002. {
  11003. "type": "string"
  11004. },
  11005. {
  11006. "type": "null"
  11007. }
  11008. ]
  11009. },
  11010. "workspace": {
  11011. "anyOf": [
  11012. {
  11013. "type": "string"
  11014. },
  11015. {
  11016. "type": "null"
  11017. }
  11018. ]
  11019. }
  11020. },
  11021. "additionalProperties": false
  11022. },
  11023. {
  11024. "type": "null"
  11025. }
  11026. ]
  11027. },
  11028. "required": false,
  11029. "style": "deepObject",
  11030. "explode": true
  11031. }
  11032. ],
  11033. "security": [],
  11034. "responses": {
  11035. "200": {
  11036. "description": "ProjectCopy.Copy",
  11037. "content": {
  11038. "application/json": {
  11039. "schema": {
  11040. "$ref": "#/components/schemas/ProjectCopy.Copy"
  11041. }
  11042. }
  11043. }
  11044. },
  11045. "400": {
  11046. "description": "ProjectCopyError | InvalidRequestError",
  11047. "content": {
  11048. "application/json": {
  11049. "schema": {
  11050. "anyOf": [
  11051. {
  11052. "$ref": "#/components/schemas/ProjectCopyError"
  11053. },
  11054. {
  11055. "$ref": "#/components/schemas/InvalidRequestError"
  11056. }
  11057. ]
  11058. }
  11059. }
  11060. }
  11061. },
  11062. "401": {
  11063. "description": "UnauthorizedError",
  11064. "content": {
  11065. "application/json": {
  11066. "schema": {
  11067. "$ref": "#/components/schemas/UnauthorizedError"
  11068. }
  11069. }
  11070. }
  11071. }
  11072. },
  11073. "requestBody": {
  11074. "content": {
  11075. "application/json": {
  11076. "schema": {
  11077. "type": "object",
  11078. "properties": {
  11079. "strategy": {
  11080. "type": "string"
  11081. },
  11082. "directory": {
  11083. "type": "string"
  11084. },
  11085. "name": {
  11086. "type": "string"
  11087. }
  11088. },
  11089. "required": [
  11090. "strategy",
  11091. "directory"
  11092. ],
  11093. "additionalProperties": false
  11094. }
  11095. }
  11096. },
  11097. "required": true
  11098. }
  11099. },
  11100. "delete": {
  11101. "tags": [
  11102. "projectCopy"
  11103. ],
  11104. "operationId": "v2.projectCopy.remove",
  11105. "parameters": [
  11106. {
  11107. "name": "projectID",
  11108. "in": "path",
  11109. "schema": {
  11110. "type": "string"
  11111. },
  11112. "required": true
  11113. },
  11114. {
  11115. "name": "location",
  11116. "in": "query",
  11117. "schema": {
  11118. "anyOf": [
  11119. {
  11120. "type": "object",
  11121. "properties": {
  11122. "directory": {
  11123. "anyOf": [
  11124. {
  11125. "type": "string"
  11126. },
  11127. {
  11128. "type": "null"
  11129. }
  11130. ]
  11131. },
  11132. "workspace": {
  11133. "anyOf": [
  11134. {
  11135. "type": "string"
  11136. },
  11137. {
  11138. "type": "null"
  11139. }
  11140. ]
  11141. }
  11142. },
  11143. "additionalProperties": false
  11144. },
  11145. {
  11146. "type": "null"
  11147. }
  11148. ]
  11149. },
  11150. "required": false,
  11151. "style": "deepObject",
  11152. "explode": true
  11153. }
  11154. ],
  11155. "security": [],
  11156. "responses": {
  11157. "204": {
  11158. "description": "<No Content>"
  11159. },
  11160. "400": {
  11161. "description": "ProjectCopyError | InvalidRequestError",
  11162. "content": {
  11163. "application/json": {
  11164. "schema": {
  11165. "anyOf": [
  11166. {
  11167. "$ref": "#/components/schemas/ProjectCopyError"
  11168. },
  11169. {
  11170. "$ref": "#/components/schemas/InvalidRequestError"
  11171. }
  11172. ]
  11173. }
  11174. }
  11175. }
  11176. },
  11177. "401": {
  11178. "description": "UnauthorizedError",
  11179. "content": {
  11180. "application/json": {
  11181. "schema": {
  11182. "$ref": "#/components/schemas/UnauthorizedError"
  11183. }
  11184. }
  11185. }
  11186. }
  11187. },
  11188. "requestBody": {
  11189. "content": {
  11190. "application/json": {
  11191. "schema": {
  11192. "type": "object",
  11193. "properties": {
  11194. "directory": {
  11195. "type": "string"
  11196. },
  11197. "force": {
  11198. "type": "boolean"
  11199. }
  11200. },
  11201. "required": [
  11202. "directory",
  11203. "force"
  11204. ],
  11205. "additionalProperties": false
  11206. }
  11207. }
  11208. },
  11209. "required": true
  11210. }
  11211. }
  11212. },
  11213. "/experimental/project/{projectID}/copy/refresh": {
  11214. "post": {
  11215. "tags": [
  11216. "projectCopy"
  11217. ],
  11218. "operationId": "v2.projectCopy.refresh",
  11219. "parameters": [
  11220. {
  11221. "name": "projectID",
  11222. "in": "path",
  11223. "schema": {
  11224. "type": "string"
  11225. },
  11226. "required": true
  11227. },
  11228. {
  11229. "name": "location",
  11230. "in": "query",
  11231. "schema": {
  11232. "anyOf": [
  11233. {
  11234. "type": "object",
  11235. "properties": {
  11236. "directory": {
  11237. "anyOf": [
  11238. {
  11239. "type": "string"
  11240. },
  11241. {
  11242. "type": "null"
  11243. }
  11244. ]
  11245. },
  11246. "workspace": {
  11247. "anyOf": [
  11248. {
  11249. "type": "string"
  11250. },
  11251. {
  11252. "type": "null"
  11253. }
  11254. ]
  11255. }
  11256. },
  11257. "additionalProperties": false
  11258. },
  11259. {
  11260. "type": "null"
  11261. }
  11262. ]
  11263. },
  11264. "required": false,
  11265. "style": "deepObject",
  11266. "explode": true
  11267. }
  11268. ],
  11269. "security": [],
  11270. "responses": {
  11271. "204": {
  11272. "description": "<No Content>"
  11273. },
  11274. "400": {
  11275. "description": "ProjectCopyError | InvalidRequestError",
  11276. "content": {
  11277. "application/json": {
  11278. "schema": {
  11279. "anyOf": [
  11280. {
  11281. "$ref": "#/components/schemas/ProjectCopyError"
  11282. },
  11283. {
  11284. "$ref": "#/components/schemas/InvalidRequestError"
  11285. }
  11286. ]
  11287. }
  11288. }
  11289. }
  11290. },
  11291. "401": {
  11292. "description": "UnauthorizedError",
  11293. "content": {
  11294. "application/json": {
  11295. "schema": {
  11296. "$ref": "#/components/schemas/UnauthorizedError"
  11297. }
  11298. }
  11299. }
  11300. }
  11301. }
  11302. }
  11303. },
  11304. "/api/vcs/status": {
  11305. "get": {
  11306. "tags": [
  11307. "vcs"
  11308. ],
  11309. "operationId": "v2.vcs.status",
  11310. "parameters": [
  11311. {
  11312. "name": "location",
  11313. "in": "query",
  11314. "schema": {
  11315. "anyOf": [
  11316. {
  11317. "type": "object",
  11318. "properties": {
  11319. "directory": {
  11320. "anyOf": [
  11321. {
  11322. "type": "string"
  11323. },
  11324. {
  11325. "type": "null"
  11326. }
  11327. ]
  11328. },
  11329. "workspace": {
  11330. "anyOf": [
  11331. {
  11332. "type": "string"
  11333. },
  11334. {
  11335. "type": "null"
  11336. }
  11337. ]
  11338. }
  11339. },
  11340. "additionalProperties": false
  11341. },
  11342. {
  11343. "type": "null"
  11344. }
  11345. ]
  11346. },
  11347. "required": false,
  11348. "style": "deepObject",
  11349. "explode": true
  11350. }
  11351. ],
  11352. "security": [],
  11353. "responses": {
  11354. "200": {
  11355. "description": "Success",
  11356. "content": {
  11357. "application/json": {
  11358. "schema": {
  11359. "type": "object",
  11360. "properties": {
  11361. "location": {
  11362. "$ref": "#/components/schemas/Location.Info"
  11363. },
  11364. "data": {
  11365. "type": "array",
  11366. "items": {
  11367. "$ref": "#/components/schemas/Vcs.FileStatus"
  11368. }
  11369. }
  11370. },
  11371. "required": [
  11372. "location",
  11373. "data"
  11374. ],
  11375. "additionalProperties": false
  11376. }
  11377. }
  11378. }
  11379. },
  11380. "400": {
  11381. "description": "InvalidRequestError",
  11382. "content": {
  11383. "application/json": {
  11384. "schema": {
  11385. "$ref": "#/components/schemas/InvalidRequestError"
  11386. }
  11387. }
  11388. }
  11389. },
  11390. "401": {
  11391. "description": "UnauthorizedError",
  11392. "content": {
  11393. "application/json": {
  11394. "schema": {
  11395. "$ref": "#/components/schemas/UnauthorizedError"
  11396. }
  11397. }
  11398. }
  11399. }
  11400. },
  11401. "description": "List uncommitted working-copy changes relative to the requested location.",
  11402. "summary": "VCS status"
  11403. }
  11404. },
  11405. "/api/vcs/diff": {
  11406. "get": {
  11407. "tags": [
  11408. "vcs"
  11409. ],
  11410. "operationId": "v2.vcs.diff",
  11411. "parameters": [
  11412. {
  11413. "name": "location",
  11414. "in": "query",
  11415. "schema": {
  11416. "anyOf": [
  11417. {
  11418. "type": "object",
  11419. "properties": {
  11420. "directory": {
  11421. "anyOf": [
  11422. {
  11423. "type": "string"
  11424. },
  11425. {
  11426. "type": "null"
  11427. }
  11428. ]
  11429. },
  11430. "workspace": {
  11431. "anyOf": [
  11432. {
  11433. "type": "string"
  11434. },
  11435. {
  11436. "type": "null"
  11437. }
  11438. ]
  11439. }
  11440. },
  11441. "additionalProperties": false
  11442. },
  11443. {
  11444. "type": "null"
  11445. }
  11446. ]
  11447. },
  11448. "required": false,
  11449. "style": "deepObject",
  11450. "explode": true
  11451. },
  11452. {
  11453. "name": "mode",
  11454. "in": "query",
  11455. "schema": {
  11456. "$ref": "#/components/schemas/Vcs.Mode"
  11457. },
  11458. "required": true
  11459. },
  11460. {
  11461. "name": "context",
  11462. "in": "query",
  11463. "schema": {
  11464. "anyOf": [
  11465. {
  11466. "type": "string"
  11467. },
  11468. {
  11469. "type": "null"
  11470. }
  11471. ]
  11472. },
  11473. "required": false
  11474. }
  11475. ],
  11476. "security": [],
  11477. "responses": {
  11478. "200": {
  11479. "description": "Success",
  11480. "content": {
  11481. "application/json": {
  11482. "schema": {
  11483. "type": "object",
  11484. "properties": {
  11485. "location": {
  11486. "$ref": "#/components/schemas/Location.Info"
  11487. },
  11488. "data": {
  11489. "type": "array",
  11490. "items": {
  11491. "$ref": "#/components/schemas/FileDiff.Info"
  11492. }
  11493. }
  11494. },
  11495. "required": [
  11496. "location",
  11497. "data"
  11498. ],
  11499. "additionalProperties": false
  11500. }
  11501. }
  11502. }
  11503. },
  11504. "400": {
  11505. "description": "InvalidRequestError",
  11506. "content": {
  11507. "application/json": {
  11508. "schema": {
  11509. "$ref": "#/components/schemas/InvalidRequestError"
  11510. }
  11511. }
  11512. }
  11513. },
  11514. "401": {
  11515. "description": "UnauthorizedError",
  11516. "content": {
  11517. "application/json": {
  11518. "schema": {
  11519. "$ref": "#/components/schemas/UnauthorizedError"
  11520. }
  11521. }
  11522. }
  11523. }
  11524. },
  11525. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11526. "summary": "VCS diff"
  11527. }
  11528. },
  11529. "/api/debug/location": {
  11530. "get": {
  11531. "tags": [
  11532. "debug"
  11533. ],
  11534. "operationId": "v2.debug.location.list",
  11535. "parameters": [],
  11536. "security": [],
  11537. "responses": {
  11538. "200": {
  11539. "description": "Success",
  11540. "content": {
  11541. "application/json": {
  11542. "schema": {
  11543. "type": "array",
  11544. "items": {
  11545. "$ref": "#/components/schemas/Location.Ref"
  11546. }
  11547. }
  11548. }
  11549. }
  11550. },
  11551. "400": {
  11552. "description": "InvalidRequestError",
  11553. "content": {
  11554. "application/json": {
  11555. "schema": {
  11556. "$ref": "#/components/schemas/InvalidRequestError"
  11557. }
  11558. }
  11559. }
  11560. },
  11561. "401": {
  11562. "description": "UnauthorizedError",
  11563. "content": {
  11564. "application/json": {
  11565. "schema": {
  11566. "$ref": "#/components/schemas/UnauthorizedError"
  11567. }
  11568. }
  11569. }
  11570. }
  11571. },
  11572. "description": "List locations currently loaded by the server.",
  11573. "summary": "List loaded locations"
  11574. },
  11575. "delete": {
  11576. "tags": [
  11577. "debug"
  11578. ],
  11579. "operationId": "v2.debug.location.evict",
  11580. "parameters": [
  11581. {
  11582. "name": "location",
  11583. "in": "query",
  11584. "schema": {
  11585. "anyOf": [
  11586. {
  11587. "type": "object",
  11588. "properties": {
  11589. "directory": {
  11590. "anyOf": [
  11591. {
  11592. "type": "string"
  11593. },
  11594. {
  11595. "type": "null"
  11596. }
  11597. ]
  11598. },
  11599. "workspace": {
  11600. "anyOf": [
  11601. {
  11602. "type": "string"
  11603. },
  11604. {
  11605. "type": "null"
  11606. }
  11607. ]
  11608. }
  11609. },
  11610. "additionalProperties": false
  11611. },
  11612. {
  11613. "type": "null"
  11614. }
  11615. ]
  11616. },
  11617. "required": false,
  11618. "style": "deepObject",
  11619. "explode": true
  11620. }
  11621. ],
  11622. "security": [],
  11623. "responses": {
  11624. "204": {
  11625. "description": "<No Content>"
  11626. },
  11627. "400": {
  11628. "description": "InvalidRequestError",
  11629. "content": {
  11630. "application/json": {
  11631. "schema": {
  11632. "$ref": "#/components/schemas/InvalidRequestError"
  11633. }
  11634. }
  11635. }
  11636. },
  11637. "401": {
  11638. "description": "UnauthorizedError",
  11639. "content": {
  11640. "application/json": {
  11641. "schema": {
  11642. "$ref": "#/components/schemas/UnauthorizedError"
  11643. }
  11644. }
  11645. }
  11646. }
  11647. },
  11648. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11649. "summary": "Evict a loaded location"
  11650. }
  11651. },
  11652. "/api/websearch/provider": {
  11653. "get": {
  11654. "tags": [
  11655. "websearch"
  11656. ],
  11657. "operationId": "v2.websearch.providers",
  11658. "parameters": [
  11659. {
  11660. "name": "location",
  11661. "in": "query",
  11662. "schema": {
  11663. "anyOf": [
  11664. {
  11665. "type": "object",
  11666. "properties": {
  11667. "directory": {
  11668. "anyOf": [
  11669. {
  11670. "type": "string"
  11671. },
  11672. {
  11673. "type": "null"
  11674. }
  11675. ]
  11676. },
  11677. "workspace": {
  11678. "anyOf": [
  11679. {
  11680. "type": "string"
  11681. },
  11682. {
  11683. "type": "null"
  11684. }
  11685. ]
  11686. }
  11687. },
  11688. "additionalProperties": false
  11689. },
  11690. {
  11691. "type": "null"
  11692. }
  11693. ]
  11694. },
  11695. "required": false,
  11696. "style": "deepObject",
  11697. "explode": true
  11698. }
  11699. ],
  11700. "security": [],
  11701. "responses": {
  11702. "200": {
  11703. "description": "Success",
  11704. "content": {
  11705. "application/json": {
  11706. "schema": {
  11707. "type": "object",
  11708. "properties": {
  11709. "location": {
  11710. "$ref": "#/components/schemas/Location.Info"
  11711. },
  11712. "data": {
  11713. "type": "array",
  11714. "items": {
  11715. "$ref": "#/components/schemas/WebSearch.Provider"
  11716. }
  11717. }
  11718. },
  11719. "required": [
  11720. "location",
  11721. "data"
  11722. ],
  11723. "additionalProperties": false
  11724. }
  11725. }
  11726. }
  11727. },
  11728. "400": {
  11729. "description": "InvalidRequestError",
  11730. "content": {
  11731. "application/json": {
  11732. "schema": {
  11733. "$ref": "#/components/schemas/InvalidRequestError"
  11734. }
  11735. }
  11736. }
  11737. },
  11738. "401": {
  11739. "description": "UnauthorizedError",
  11740. "content": {
  11741. "application/json": {
  11742. "schema": {
  11743. "$ref": "#/components/schemas/UnauthorizedError"
  11744. }
  11745. }
  11746. }
  11747. },
  11748. "503": {
  11749. "description": "ServiceUnavailableError",
  11750. "content": {
  11751. "application/json": {
  11752. "schema": {
  11753. "$ref": "#/components/schemas/ServiceUnavailableError"
  11754. }
  11755. }
  11756. }
  11757. }
  11758. },
  11759. "description": "Return the registered web search providers.",
  11760. "summary": "List web search providers"
  11761. }
  11762. },
  11763. "/api/websearch": {
  11764. "post": {
  11765. "tags": [
  11766. "websearch"
  11767. ],
  11768. "operationId": "v2.websearch.query",
  11769. "parameters": [
  11770. {
  11771. "name": "location",
  11772. "in": "query",
  11773. "schema": {
  11774. "anyOf": [
  11775. {
  11776. "type": "object",
  11777. "properties": {
  11778. "directory": {
  11779. "anyOf": [
  11780. {
  11781. "type": "string"
  11782. },
  11783. {
  11784. "type": "null"
  11785. }
  11786. ]
  11787. },
  11788. "workspace": {
  11789. "anyOf": [
  11790. {
  11791. "type": "string"
  11792. },
  11793. {
  11794. "type": "null"
  11795. }
  11796. ]
  11797. }
  11798. },
  11799. "additionalProperties": false
  11800. },
  11801. {
  11802. "type": "null"
  11803. }
  11804. ]
  11805. },
  11806. "required": false,
  11807. "style": "deepObject",
  11808. "explode": true
  11809. }
  11810. ],
  11811. "security": [],
  11812. "responses": {
  11813. "200": {
  11814. "description": "Success",
  11815. "content": {
  11816. "application/json": {
  11817. "schema": {
  11818. "type": "object",
  11819. "properties": {
  11820. "location": {
  11821. "$ref": "#/components/schemas/Location.Info"
  11822. },
  11823. "data": {
  11824. "$ref": "#/components/schemas/WebSearch.Response"
  11825. }
  11826. },
  11827. "required": [
  11828. "location",
  11829. "data"
  11830. ],
  11831. "additionalProperties": false
  11832. }
  11833. }
  11834. }
  11835. },
  11836. "400": {
  11837. "description": "InvalidRequestError",
  11838. "content": {
  11839. "application/json": {
  11840. "schema": {
  11841. "anyOf": [
  11842. {
  11843. "$ref": "#/components/schemas/InvalidRequestError1"
  11844. },
  11845. {
  11846. "$ref": "#/components/schemas/InvalidRequestError"
  11847. }
  11848. ]
  11849. }
  11850. }
  11851. }
  11852. },
  11853. "401": {
  11854. "description": "UnauthorizedError",
  11855. "content": {
  11856. "application/json": {
  11857. "schema": {
  11858. "$ref": "#/components/schemas/UnauthorizedError"
  11859. }
  11860. }
  11861. }
  11862. },
  11863. "503": {
  11864. "description": "ServiceUnavailableError",
  11865. "content": {
  11866. "application/json": {
  11867. "schema": {
  11868. "$ref": "#/components/schemas/ServiceUnavailableError"
  11869. }
  11870. }
  11871. }
  11872. }
  11873. },
  11874. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  11875. "summary": "Search the web",
  11876. "requestBody": {
  11877. "content": {
  11878. "application/json": {
  11879. "schema": {
  11880. "type": "object",
  11881. "properties": {
  11882. "query": {
  11883. "type": "string"
  11884. },
  11885. "providerID": {
  11886. "type": "string"
  11887. }
  11888. },
  11889. "required": [
  11890. "query"
  11891. ],
  11892. "additionalProperties": false
  11893. }
  11894. }
  11895. },
  11896. "required": true
  11897. }
  11898. }
  11899. }
  11900. },
  11901. "components": {
  11902. "schemas": {
  11903. "ServiceHealth": {
  11904. "type": "object",
  11905. "properties": {
  11906. "healthy": {
  11907. "type": "boolean",
  11908. "enum": [
  11909. true
  11910. ]
  11911. },
  11912. "version": {
  11913. "type": "string"
  11914. },
  11915. "pid": {
  11916. "type": "integer",
  11917. "allOf": [
  11918. {
  11919. "exclusiveMinimum": 0
  11920. }
  11921. ]
  11922. }
  11923. },
  11924. "required": [
  11925. "healthy",
  11926. "version",
  11927. "pid"
  11928. ],
  11929. "additionalProperties": false
  11930. },
  11931. "UnauthorizedError": {
  11932. "type": "object",
  11933. "properties": {
  11934. "_tag": {
  11935. "type": "string",
  11936. "enum": [
  11937. "UnauthorizedError"
  11938. ]
  11939. },
  11940. "message": {
  11941. "type": "string"
  11942. }
  11943. },
  11944. "required": [
  11945. "_tag",
  11946. "message"
  11947. ],
  11948. "additionalProperties": false
  11949. },
  11950. "InvalidRequestError": {
  11951. "type": "object",
  11952. "properties": {
  11953. "_tag": {
  11954. "type": "string",
  11955. "enum": [
  11956. "InvalidRequestError"
  11957. ]
  11958. },
  11959. "message": {
  11960. "type": "string"
  11961. },
  11962. "kind": {
  11963. "anyOf": [
  11964. {
  11965. "type": "string"
  11966. },
  11967. {
  11968. "type": "null"
  11969. }
  11970. ]
  11971. },
  11972. "field": {
  11973. "anyOf": [
  11974. {
  11975. "type": "string"
  11976. },
  11977. {
  11978. "type": "null"
  11979. }
  11980. ]
  11981. }
  11982. },
  11983. "required": [
  11984. "_tag",
  11985. "message"
  11986. ],
  11987. "additionalProperties": false
  11988. },
  11989. "ServiceStopRequest": {
  11990. "type": "object",
  11991. "properties": {
  11992. "instanceID": {
  11993. "type": "string"
  11994. }
  11995. },
  11996. "required": [
  11997. "instanceID"
  11998. ],
  11999. "additionalProperties": false
  12000. },
  12001. "ServiceStopResponse": {
  12002. "type": "object",
  12003. "properties": {
  12004. "accepted": {
  12005. "type": "boolean"
  12006. }
  12007. },
  12008. "required": [
  12009. "accepted"
  12010. ],
  12011. "additionalProperties": false
  12012. },
  12013. "Location.Info": {
  12014. "type": "object",
  12015. "properties": {
  12016. "directory": {
  12017. "type": "string"
  12018. },
  12019. "workspaceID": {
  12020. "type": "string",
  12021. "allOf": [
  12022. {
  12023. "pattern": "^wrk"
  12024. }
  12025. ]
  12026. },
  12027. "project": {
  12028. "type": "object",
  12029. "properties": {
  12030. "id": {
  12031. "type": "string"
  12032. },
  12033. "directory": {
  12034. "type": "string"
  12035. }
  12036. },
  12037. "required": [
  12038. "id",
  12039. "directory"
  12040. ],
  12041. "additionalProperties": false
  12042. }
  12043. },
  12044. "required": [
  12045. "directory",
  12046. "project"
  12047. ],
  12048. "additionalProperties": false
  12049. },
  12050. "Model.Ref": {
  12051. "type": "object",
  12052. "properties": {
  12053. "id": {
  12054. "type": "string"
  12055. },
  12056. "providerID": {
  12057. "type": "string"
  12058. },
  12059. "variant": {
  12060. "type": "string"
  12061. }
  12062. },
  12063. "required": [
  12064. "id",
  12065. "providerID"
  12066. ],
  12067. "additionalProperties": false
  12068. },
  12069. "Provider.Settings": {
  12070. "type": "object"
  12071. },
  12072. "Provider.Request": {
  12073. "type": "object",
  12074. "properties": {
  12075. "settings": {
  12076. "$ref": "#/components/schemas/Provider.Settings"
  12077. },
  12078. "headers": {
  12079. "type": "object",
  12080. "additionalProperties": {
  12081. "type": "string"
  12082. }
  12083. },
  12084. "body": {
  12085. "type": "object"
  12086. }
  12087. },
  12088. "required": [
  12089. "settings",
  12090. "headers",
  12091. "body"
  12092. ],
  12093. "additionalProperties": false
  12094. },
  12095. "Agent.Color": {
  12096. "type": "string"
  12097. },
  12098. "Permission.Effect": {
  12099. "type": "string",
  12100. "enum": [
  12101. "allow",
  12102. "deny",
  12103. "ask"
  12104. ]
  12105. },
  12106. "Permission.Rule": {
  12107. "type": "object",
  12108. "properties": {
  12109. "action": {
  12110. "type": "string"
  12111. },
  12112. "resource": {
  12113. "type": "string"
  12114. },
  12115. "effect": {
  12116. "$ref": "#/components/schemas/Permission.Effect"
  12117. }
  12118. },
  12119. "required": [
  12120. "action",
  12121. "resource",
  12122. "effect"
  12123. ],
  12124. "additionalProperties": false
  12125. },
  12126. "Permission.Ruleset": {
  12127. "type": "array",
  12128. "items": {
  12129. "$ref": "#/components/schemas/Permission.Rule"
  12130. }
  12131. },
  12132. "Agent.Info": {
  12133. "type": "object",
  12134. "properties": {
  12135. "id": {
  12136. "type": "string"
  12137. },
  12138. "name": {
  12139. "type": "string"
  12140. },
  12141. "model": {
  12142. "$ref": "#/components/schemas/Model.Ref"
  12143. },
  12144. "request": {
  12145. "$ref": "#/components/schemas/Provider.Request"
  12146. },
  12147. "system": {
  12148. "type": "string"
  12149. },
  12150. "description": {
  12151. "type": "string"
  12152. },
  12153. "mode": {
  12154. "type": "string",
  12155. "enum": [
  12156. "subagent",
  12157. "primary",
  12158. "all"
  12159. ]
  12160. },
  12161. "hidden": {
  12162. "type": "boolean"
  12163. },
  12164. "color": {
  12165. "$ref": "#/components/schemas/Agent.Color"
  12166. },
  12167. "steps": {
  12168. "type": "integer",
  12169. "allOf": [
  12170. {
  12171. "exclusiveMinimum": 0
  12172. }
  12173. ]
  12174. },
  12175. "permissions": {
  12176. "$ref": "#/components/schemas/Permission.Ruleset"
  12177. }
  12178. },
  12179. "required": [
  12180. "id",
  12181. "name",
  12182. "request",
  12183. "mode",
  12184. "hidden",
  12185. "permissions"
  12186. ],
  12187. "additionalProperties": false
  12188. },
  12189. "AgentNotFoundError": {
  12190. "type": "object",
  12191. "properties": {
  12192. "_tag": {
  12193. "type": "string",
  12194. "enum": [
  12195. "AgentNotFoundError"
  12196. ]
  12197. },
  12198. "agentID": {
  12199. "type": "string"
  12200. },
  12201. "message": {
  12202. "type": "string"
  12203. }
  12204. },
  12205. "required": [
  12206. "_tag",
  12207. "agentID",
  12208. "message"
  12209. ],
  12210. "additionalProperties": false
  12211. },
  12212. "Plugin.Info": {
  12213. "type": "object",
  12214. "properties": {
  12215. "id": {
  12216. "type": "string"
  12217. }
  12218. },
  12219. "required": [
  12220. "id"
  12221. ],
  12222. "additionalProperties": false
  12223. },
  12224. "Session.ForkBoundary": {
  12225. "anyOf": [
  12226. {
  12227. "type": "object",
  12228. "properties": {
  12229. "type": {
  12230. "type": "string",
  12231. "enum": [
  12232. "before"
  12233. ]
  12234. },
  12235. "messageID": {
  12236. "type": "string",
  12237. "allOf": [
  12238. {
  12239. "pattern": "^msg_"
  12240. }
  12241. ]
  12242. }
  12243. },
  12244. "required": [
  12245. "type",
  12246. "messageID"
  12247. ],
  12248. "additionalProperties": false
  12249. },
  12250. {
  12251. "type": "object",
  12252. "properties": {
  12253. "type": {
  12254. "type": "string",
  12255. "enum": [
  12256. "through"
  12257. ]
  12258. },
  12259. "messageID": {
  12260. "type": "string",
  12261. "allOf": [
  12262. {
  12263. "pattern": "^msg_"
  12264. }
  12265. ]
  12266. }
  12267. },
  12268. "required": [
  12269. "type",
  12270. "messageID"
  12271. ],
  12272. "additionalProperties": false
  12273. }
  12274. ]
  12275. },
  12276. "Money.USD": {
  12277. "type": "number"
  12278. },
  12279. "TokenUsage.Info": {
  12280. "type": "object",
  12281. "properties": {
  12282. "input": {
  12283. "type": "number"
  12284. },
  12285. "output": {
  12286. "type": "number"
  12287. },
  12288. "reasoning": {
  12289. "type": "number"
  12290. },
  12291. "cache": {
  12292. "type": "object",
  12293. "properties": {
  12294. "read": {
  12295. "type": "number"
  12296. },
  12297. "write": {
  12298. "type": "number"
  12299. }
  12300. },
  12301. "required": [
  12302. "read",
  12303. "write"
  12304. ],
  12305. "additionalProperties": false
  12306. }
  12307. },
  12308. "required": [
  12309. "input",
  12310. "output",
  12311. "reasoning",
  12312. "cache"
  12313. ],
  12314. "additionalProperties": false
  12315. },
  12316. "Location.Ref": {
  12317. "type": "object",
  12318. "properties": {
  12319. "directory": {
  12320. "type": "string"
  12321. },
  12322. "workspaceID": {
  12323. "type": "string",
  12324. "allOf": [
  12325. {
  12326. "pattern": "^wrk"
  12327. }
  12328. ]
  12329. }
  12330. },
  12331. "required": [
  12332. "directory"
  12333. ],
  12334. "additionalProperties": false
  12335. },
  12336. "FileDiff.Info": {
  12337. "type": "object",
  12338. "properties": {
  12339. "file": {
  12340. "type": "string"
  12341. },
  12342. "patch": {
  12343. "type": "string"
  12344. },
  12345. "additions": {
  12346. "type": "integer",
  12347. "allOf": [
  12348. {
  12349. "minimum": 0
  12350. }
  12351. ]
  12352. },
  12353. "deletions": {
  12354. "type": "integer",
  12355. "allOf": [
  12356. {
  12357. "minimum": 0
  12358. }
  12359. ]
  12360. },
  12361. "status": {
  12362. "type": "string",
  12363. "enum": [
  12364. "added",
  12365. "deleted",
  12366. "modified"
  12367. ]
  12368. }
  12369. },
  12370. "required": [
  12371. "file",
  12372. "patch",
  12373. "additions",
  12374. "deletions",
  12375. "status"
  12376. ],
  12377. "additionalProperties": false
  12378. },
  12379. "Session.Revert": {
  12380. "type": "object",
  12381. "properties": {
  12382. "messageID": {
  12383. "type": "string",
  12384. "allOf": [
  12385. {
  12386. "pattern": "^msg_"
  12387. }
  12388. ]
  12389. },
  12390. "partID": {
  12391. "type": "string"
  12392. },
  12393. "snapshot": {
  12394. "type": "string"
  12395. },
  12396. "files": {
  12397. "type": "array",
  12398. "items": {
  12399. "$ref": "#/components/schemas/FileDiff.Info"
  12400. }
  12401. }
  12402. },
  12403. "required": [
  12404. "messageID"
  12405. ],
  12406. "additionalProperties": false
  12407. },
  12408. "Session.Info": {
  12409. "type": "object",
  12410. "properties": {
  12411. "id": {
  12412. "type": "string",
  12413. "allOf": [
  12414. {
  12415. "pattern": "^ses"
  12416. }
  12417. ]
  12418. },
  12419. "parentID": {
  12420. "type": "string",
  12421. "allOf": [
  12422. {
  12423. "pattern": "^ses"
  12424. }
  12425. ]
  12426. },
  12427. "fork": {
  12428. "type": "object",
  12429. "properties": {
  12430. "sessionID": {
  12431. "type": "string",
  12432. "allOf": [
  12433. {
  12434. "pattern": "^ses"
  12435. }
  12436. ]
  12437. },
  12438. "boundary": {
  12439. "$ref": "#/components/schemas/Session.ForkBoundary"
  12440. }
  12441. },
  12442. "required": [
  12443. "sessionID",
  12444. "boundary"
  12445. ],
  12446. "additionalProperties": false
  12447. },
  12448. "projectID": {
  12449. "type": "string"
  12450. },
  12451. "agent": {
  12452. "type": "string"
  12453. },
  12454. "model": {
  12455. "$ref": "#/components/schemas/Model.Ref"
  12456. },
  12457. "cost": {
  12458. "$ref": "#/components/schemas/Money.USD"
  12459. },
  12460. "tokens": {
  12461. "$ref": "#/components/schemas/TokenUsage.Info"
  12462. },
  12463. "time": {
  12464. "type": "object",
  12465. "properties": {
  12466. "created": {
  12467. "type": "number"
  12468. },
  12469. "updated": {
  12470. "type": "number"
  12471. },
  12472. "archived": {
  12473. "type": "number"
  12474. }
  12475. },
  12476. "required": [
  12477. "created",
  12478. "updated"
  12479. ],
  12480. "additionalProperties": false
  12481. },
  12482. "title": {
  12483. "type": "string"
  12484. },
  12485. "location": {
  12486. "$ref": "#/components/schemas/Location.Ref"
  12487. },
  12488. "subpath": {
  12489. "type": "string"
  12490. },
  12491. "revert": {
  12492. "$ref": "#/components/schemas/Session.Revert"
  12493. }
  12494. },
  12495. "required": [
  12496. "id",
  12497. "projectID",
  12498. "cost",
  12499. "tokens",
  12500. "time",
  12501. "title",
  12502. "location"
  12503. ],
  12504. "additionalProperties": false
  12505. },
  12506. "SessionsResponse": {
  12507. "type": "object",
  12508. "properties": {
  12509. "data": {
  12510. "type": "array",
  12511. "items": {
  12512. "$ref": "#/components/schemas/Session.Info"
  12513. }
  12514. },
  12515. "cursor": {
  12516. "type": "object",
  12517. "properties": {
  12518. "previous": {
  12519. "anyOf": [
  12520. {
  12521. "type": "string"
  12522. },
  12523. {
  12524. "type": "null"
  12525. }
  12526. ]
  12527. },
  12528. "next": {
  12529. "anyOf": [
  12530. {
  12531. "type": "string"
  12532. },
  12533. {
  12534. "type": "null"
  12535. }
  12536. ]
  12537. }
  12538. },
  12539. "additionalProperties": false
  12540. }
  12541. },
  12542. "required": [
  12543. "data",
  12544. "cursor"
  12545. ],
  12546. "additionalProperties": false
  12547. },
  12548. "InvalidCursorError": {
  12549. "type": "object",
  12550. "properties": {
  12551. "_tag": {
  12552. "type": "string",
  12553. "enum": [
  12554. "InvalidCursorError"
  12555. ]
  12556. },
  12557. "message": {
  12558. "type": "string"
  12559. }
  12560. },
  12561. "required": [
  12562. "_tag",
  12563. "message"
  12564. ],
  12565. "additionalProperties": false
  12566. },
  12567. "InvalidRequestError1": {
  12568. "type": "object",
  12569. "properties": {
  12570. "_tag": {
  12571. "type": "string",
  12572. "enum": [
  12573. "InvalidRequestError"
  12574. ]
  12575. },
  12576. "message": {
  12577. "type": "string"
  12578. },
  12579. "kind": {
  12580. "anyOf": [
  12581. {
  12582. "type": "string"
  12583. },
  12584. {
  12585. "type": "null"
  12586. }
  12587. ]
  12588. },
  12589. "field": {
  12590. "anyOf": [
  12591. {
  12592. "type": "string"
  12593. },
  12594. {
  12595. "type": "null"
  12596. }
  12597. ]
  12598. }
  12599. },
  12600. "required": [
  12601. "_tag",
  12602. "message"
  12603. ],
  12604. "additionalProperties": false
  12605. },
  12606. "SessionActive": {
  12607. "type": "object",
  12608. "properties": {
  12609. "type": {
  12610. "type": "string",
  12611. "enum": [
  12612. "running"
  12613. ]
  12614. }
  12615. },
  12616. "required": [
  12617. "type"
  12618. ],
  12619. "additionalProperties": false
  12620. },
  12621. "SessionNotFoundError": {
  12622. "type": "object",
  12623. "properties": {
  12624. "_tag": {
  12625. "type": "string",
  12626. "enum": [
  12627. "SessionNotFoundError"
  12628. ]
  12629. },
  12630. "sessionID": {
  12631. "type": "string"
  12632. },
  12633. "message": {
  12634. "type": "string"
  12635. }
  12636. },
  12637. "required": [
  12638. "_tag",
  12639. "sessionID",
  12640. "message"
  12641. ],
  12642. "additionalProperties": false
  12643. },
  12644. "Session.ForkRequestBoundary": {
  12645. "anyOf": [
  12646. {
  12647. "type": "object",
  12648. "properties": {
  12649. "type": {
  12650. "type": "string",
  12651. "enum": [
  12652. "before"
  12653. ]
  12654. },
  12655. "messageID": {
  12656. "type": "string",
  12657. "allOf": [
  12658. {
  12659. "pattern": "^msg_"
  12660. }
  12661. ]
  12662. }
  12663. },
  12664. "required": [
  12665. "type",
  12666. "messageID"
  12667. ],
  12668. "additionalProperties": false
  12669. },
  12670. {
  12671. "type": "object",
  12672. "properties": {
  12673. "type": {
  12674. "type": "string",
  12675. "enum": [
  12676. "through"
  12677. ]
  12678. }
  12679. },
  12680. "required": [
  12681. "type"
  12682. ],
  12683. "additionalProperties": false
  12684. }
  12685. ]
  12686. },
  12687. "MessageNotFoundError": {
  12688. "type": "object",
  12689. "properties": {
  12690. "_tag": {
  12691. "type": "string",
  12692. "enum": [
  12693. "MessageNotFoundError"
  12694. ]
  12695. },
  12696. "sessionID": {
  12697. "type": "string"
  12698. },
  12699. "messageID": {
  12700. "type": "string"
  12701. },
  12702. "message": {
  12703. "type": "string"
  12704. }
  12705. },
  12706. "required": [
  12707. "_tag",
  12708. "sessionID",
  12709. "messageID",
  12710. "message"
  12711. ],
  12712. "additionalProperties": false
  12713. },
  12714. "Prompt.Mention": {
  12715. "type": "object",
  12716. "properties": {
  12717. "start": {
  12718. "type": "number"
  12719. },
  12720. "end": {
  12721. "type": "number"
  12722. },
  12723. "text": {
  12724. "type": "string"
  12725. }
  12726. },
  12727. "required": [
  12728. "start",
  12729. "end",
  12730. "text"
  12731. ],
  12732. "additionalProperties": false
  12733. },
  12734. "PromptInput.FileAttachment": {
  12735. "type": "object",
  12736. "properties": {
  12737. "uri": {
  12738. "type": "string"
  12739. },
  12740. "name": {
  12741. "type": "string"
  12742. },
  12743. "description": {
  12744. "type": "string"
  12745. },
  12746. "mention": {
  12747. "$ref": "#/components/schemas/Prompt.Mention"
  12748. }
  12749. },
  12750. "required": [
  12751. "uri"
  12752. ],
  12753. "additionalProperties": false
  12754. },
  12755. "Prompt.AgentAttachment": {
  12756. "type": "object",
  12757. "properties": {
  12758. "name": {
  12759. "type": "string"
  12760. },
  12761. "mention": {
  12762. "$ref": "#/components/schemas/Prompt.Mention"
  12763. }
  12764. },
  12765. "required": [
  12766. "name"
  12767. ],
  12768. "additionalProperties": false
  12769. },
  12770. "Prompt.Base64": {
  12771. "type": "string",
  12772. "allOf": [
  12773. {
  12774. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  12775. }
  12776. ]
  12777. },
  12778. "Prompt.FileSource": {
  12779. "anyOf": [
  12780. {
  12781. "type": "object",
  12782. "properties": {
  12783. "type": {
  12784. "type": "string",
  12785. "enum": [
  12786. "inline"
  12787. ]
  12788. }
  12789. },
  12790. "required": [
  12791. "type"
  12792. ],
  12793. "additionalProperties": false
  12794. },
  12795. {
  12796. "type": "object",
  12797. "properties": {
  12798. "type": {
  12799. "type": "string",
  12800. "enum": [
  12801. "uri"
  12802. ]
  12803. },
  12804. "uri": {
  12805. "type": "string"
  12806. }
  12807. },
  12808. "required": [
  12809. "type",
  12810. "uri"
  12811. ],
  12812. "additionalProperties": false
  12813. }
  12814. ]
  12815. },
  12816. "Prompt.FileAttachment": {
  12817. "type": "object",
  12818. "properties": {
  12819. "data": {
  12820. "$ref": "#/components/schemas/Prompt.Base64"
  12821. },
  12822. "mime": {
  12823. "type": "string"
  12824. },
  12825. "source": {
  12826. "$ref": "#/components/schemas/Prompt.FileSource"
  12827. },
  12828. "name": {
  12829. "type": "string"
  12830. },
  12831. "description": {
  12832. "type": "string"
  12833. },
  12834. "mention": {
  12835. "$ref": "#/components/schemas/Prompt.Mention"
  12836. }
  12837. },
  12838. "required": [
  12839. "data",
  12840. "mime",
  12841. "source"
  12842. ],
  12843. "additionalProperties": false
  12844. },
  12845. "SessionPending.UserData": {
  12846. "type": "object",
  12847. "properties": {
  12848. "text": {
  12849. "type": "string"
  12850. },
  12851. "files": {
  12852. "type": "array",
  12853. "items": {
  12854. "$ref": "#/components/schemas/Prompt.FileAttachment"
  12855. }
  12856. },
  12857. "agents": {
  12858. "type": "array",
  12859. "items": {
  12860. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  12861. }
  12862. },
  12863. "metadata": {
  12864. "type": "object"
  12865. }
  12866. },
  12867. "required": [
  12868. "text"
  12869. ],
  12870. "additionalProperties": false
  12871. },
  12872. "SessionPending.User": {
  12873. "type": "object",
  12874. "properties": {
  12875. "id": {
  12876. "type": "string",
  12877. "allOf": [
  12878. {
  12879. "pattern": "^msg_"
  12880. }
  12881. ]
  12882. },
  12883. "sessionID": {
  12884. "type": "string",
  12885. "allOf": [
  12886. {
  12887. "pattern": "^ses"
  12888. }
  12889. ]
  12890. },
  12891. "timeCreated": {
  12892. "type": "number"
  12893. },
  12894. "type": {
  12895. "type": "string",
  12896. "enum": [
  12897. "user"
  12898. ]
  12899. },
  12900. "data": {
  12901. "$ref": "#/components/schemas/SessionPending.UserData"
  12902. },
  12903. "delivery": {
  12904. "type": "string",
  12905. "enum": [
  12906. "steer",
  12907. "queue"
  12908. ]
  12909. }
  12910. },
  12911. "required": [
  12912. "id",
  12913. "sessionID",
  12914. "timeCreated",
  12915. "type",
  12916. "data",
  12917. "delivery"
  12918. ],
  12919. "additionalProperties": false
  12920. },
  12921. "ConflictError": {
  12922. "type": "object",
  12923. "properties": {
  12924. "_tag": {
  12925. "type": "string",
  12926. "enum": [
  12927. "ConflictError"
  12928. ]
  12929. },
  12930. "message": {
  12931. "type": "string"
  12932. },
  12933. "resource": {
  12934. "anyOf": [
  12935. {
  12936. "type": "string"
  12937. },
  12938. {
  12939. "type": "null"
  12940. }
  12941. ]
  12942. }
  12943. },
  12944. "required": [
  12945. "_tag",
  12946. "message"
  12947. ],
  12948. "additionalProperties": false
  12949. },
  12950. "CommandNotFoundError": {
  12951. "type": "object",
  12952. "properties": {
  12953. "_tag": {
  12954. "type": "string",
  12955. "enum": [
  12956. "CommandNotFoundError"
  12957. ]
  12958. },
  12959. "command": {
  12960. "type": "string"
  12961. },
  12962. "message": {
  12963. "type": "string"
  12964. }
  12965. },
  12966. "required": [
  12967. "_tag",
  12968. "command",
  12969. "message"
  12970. ],
  12971. "additionalProperties": false
  12972. },
  12973. "CommandEvaluationError": {
  12974. "type": "object",
  12975. "properties": {
  12976. "_tag": {
  12977. "type": "string",
  12978. "enum": [
  12979. "CommandEvaluationError"
  12980. ]
  12981. },
  12982. "command": {
  12983. "type": "string"
  12984. },
  12985. "message": {
  12986. "type": "string"
  12987. }
  12988. },
  12989. "required": [
  12990. "_tag",
  12991. "command",
  12992. "message"
  12993. ],
  12994. "additionalProperties": false
  12995. },
  12996. "SkillNotFoundError": {
  12997. "type": "object",
  12998. "properties": {
  12999. "_tag": {
  13000. "type": "string",
  13001. "enum": [
  13002. "SkillNotFoundError"
  13003. ]
  13004. },
  13005. "skill": {
  13006. "type": "string"
  13007. },
  13008. "message": {
  13009. "type": "string"
  13010. }
  13011. },
  13012. "required": [
  13013. "_tag",
  13014. "skill",
  13015. "message"
  13016. ],
  13017. "additionalProperties": false
  13018. },
  13019. "SessionPending.SyntheticData": {
  13020. "type": "object",
  13021. "properties": {
  13022. "text": {
  13023. "type": "string"
  13024. },
  13025. "description": {
  13026. "type": "string"
  13027. },
  13028. "metadata": {
  13029. "type": "object"
  13030. }
  13031. },
  13032. "required": [
  13033. "text"
  13034. ],
  13035. "additionalProperties": false
  13036. },
  13037. "SessionPending.Synthetic": {
  13038. "type": "object",
  13039. "properties": {
  13040. "id": {
  13041. "type": "string",
  13042. "allOf": [
  13043. {
  13044. "pattern": "^msg_"
  13045. }
  13046. ]
  13047. },
  13048. "sessionID": {
  13049. "type": "string",
  13050. "allOf": [
  13051. {
  13052. "pattern": "^ses"
  13053. }
  13054. ]
  13055. },
  13056. "timeCreated": {
  13057. "type": "number"
  13058. },
  13059. "type": {
  13060. "type": "string",
  13061. "enum": [
  13062. "synthetic"
  13063. ]
  13064. },
  13065. "data": {
  13066. "$ref": "#/components/schemas/SessionPending.SyntheticData"
  13067. },
  13068. "delivery": {
  13069. "type": "string",
  13070. "enum": [
  13071. "steer",
  13072. "queue"
  13073. ]
  13074. }
  13075. },
  13076. "required": [
  13077. "id",
  13078. "sessionID",
  13079. "timeCreated",
  13080. "type",
  13081. "data",
  13082. "delivery"
  13083. ],
  13084. "additionalProperties": false
  13085. },
  13086. "SessionPending.Compaction": {
  13087. "type": "object",
  13088. "properties": {
  13089. "id": {
  13090. "type": "string",
  13091. "allOf": [
  13092. {
  13093. "pattern": "^msg_"
  13094. }
  13095. ]
  13096. },
  13097. "sessionID": {
  13098. "type": "string",
  13099. "allOf": [
  13100. {
  13101. "pattern": "^ses"
  13102. }
  13103. ]
  13104. },
  13105. "timeCreated": {
  13106. "type": "number"
  13107. },
  13108. "type": {
  13109. "type": "string",
  13110. "enum": [
  13111. "compaction"
  13112. ]
  13113. }
  13114. },
  13115. "required": [
  13116. "id",
  13117. "sessionID",
  13118. "timeCreated",
  13119. "type"
  13120. ],
  13121. "additionalProperties": false
  13122. },
  13123. "ServiceUnavailableError": {
  13124. "type": "object",
  13125. "properties": {
  13126. "_tag": {
  13127. "type": "string",
  13128. "enum": [
  13129. "ServiceUnavailableError"
  13130. ]
  13131. },
  13132. "message": {
  13133. "type": "string"
  13134. },
  13135. "service": {
  13136. "anyOf": [
  13137. {
  13138. "type": "string"
  13139. },
  13140. {
  13141. "type": "null"
  13142. }
  13143. ]
  13144. }
  13145. },
  13146. "required": [
  13147. "_tag",
  13148. "message"
  13149. ],
  13150. "additionalProperties": false
  13151. },
  13152. "SessionBusyError": {
  13153. "type": "object",
  13154. "properties": {
  13155. "_tag": {
  13156. "type": "string",
  13157. "enum": [
  13158. "SessionBusyError"
  13159. ]
  13160. },
  13161. "sessionID": {
  13162. "type": "string"
  13163. },
  13164. "message": {
  13165. "type": "string"
  13166. }
  13167. },
  13168. "required": [
  13169. "_tag",
  13170. "sessionID",
  13171. "message"
  13172. ],
  13173. "additionalProperties": false
  13174. },
  13175. "UnknownError": {
  13176. "type": "object",
  13177. "properties": {
  13178. "_tag": {
  13179. "type": "string",
  13180. "enum": [
  13181. "UnknownError"
  13182. ]
  13183. },
  13184. "message": {
  13185. "type": "string"
  13186. },
  13187. "ref": {
  13188. "anyOf": [
  13189. {
  13190. "type": "string"
  13191. },
  13192. {
  13193. "type": "null"
  13194. }
  13195. ]
  13196. }
  13197. },
  13198. "required": [
  13199. "_tag",
  13200. "message"
  13201. ],
  13202. "additionalProperties": false
  13203. },
  13204. "Session.Message.AgentSelected": {
  13205. "type": "object",
  13206. "properties": {
  13207. "id": {
  13208. "type": "string",
  13209. "allOf": [
  13210. {
  13211. "pattern": "^msg_"
  13212. }
  13213. ]
  13214. },
  13215. "metadata": {
  13216. "type": "object"
  13217. },
  13218. "time": {
  13219. "type": "object",
  13220. "properties": {
  13221. "created": {
  13222. "type": "number"
  13223. }
  13224. },
  13225. "required": [
  13226. "created"
  13227. ],
  13228. "additionalProperties": false
  13229. },
  13230. "type": {
  13231. "type": "string",
  13232. "enum": [
  13233. "agent-switched"
  13234. ]
  13235. },
  13236. "agent": {
  13237. "type": "string"
  13238. }
  13239. },
  13240. "required": [
  13241. "id",
  13242. "time",
  13243. "type",
  13244. "agent"
  13245. ],
  13246. "additionalProperties": false
  13247. },
  13248. "Session.Message.ModelSelected": {
  13249. "type": "object",
  13250. "properties": {
  13251. "id": {
  13252. "type": "string",
  13253. "allOf": [
  13254. {
  13255. "pattern": "^msg_"
  13256. }
  13257. ]
  13258. },
  13259. "metadata": {
  13260. "type": "object"
  13261. },
  13262. "time": {
  13263. "type": "object",
  13264. "properties": {
  13265. "created": {
  13266. "type": "number"
  13267. }
  13268. },
  13269. "required": [
  13270. "created"
  13271. ],
  13272. "additionalProperties": false
  13273. },
  13274. "type": {
  13275. "type": "string",
  13276. "enum": [
  13277. "model-switched"
  13278. ]
  13279. },
  13280. "model": {
  13281. "$ref": "#/components/schemas/Model.Ref"
  13282. },
  13283. "previous": {
  13284. "$ref": "#/components/schemas/Model.Ref"
  13285. }
  13286. },
  13287. "required": [
  13288. "id",
  13289. "time",
  13290. "type",
  13291. "model"
  13292. ],
  13293. "additionalProperties": false
  13294. },
  13295. "Session.Message.User": {
  13296. "type": "object",
  13297. "properties": {
  13298. "id": {
  13299. "type": "string",
  13300. "allOf": [
  13301. {
  13302. "pattern": "^msg_"
  13303. }
  13304. ]
  13305. },
  13306. "metadata": {
  13307. "type": "object"
  13308. },
  13309. "time": {
  13310. "type": "object",
  13311. "properties": {
  13312. "created": {
  13313. "type": "number"
  13314. }
  13315. },
  13316. "required": [
  13317. "created"
  13318. ],
  13319. "additionalProperties": false
  13320. },
  13321. "text": {
  13322. "type": "string"
  13323. },
  13324. "files": {
  13325. "type": "array",
  13326. "items": {
  13327. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13328. }
  13329. },
  13330. "agents": {
  13331. "type": "array",
  13332. "items": {
  13333. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13334. }
  13335. },
  13336. "type": {
  13337. "type": "string",
  13338. "enum": [
  13339. "user"
  13340. ]
  13341. }
  13342. },
  13343. "required": [
  13344. "id",
  13345. "time",
  13346. "text",
  13347. "type"
  13348. ],
  13349. "additionalProperties": false
  13350. },
  13351. "Session.Message.Synthetic": {
  13352. "type": "object",
  13353. "properties": {
  13354. "id": {
  13355. "type": "string",
  13356. "allOf": [
  13357. {
  13358. "pattern": "^msg_"
  13359. }
  13360. ]
  13361. },
  13362. "metadata": {
  13363. "type": "object"
  13364. },
  13365. "time": {
  13366. "type": "object",
  13367. "properties": {
  13368. "created": {
  13369. "type": "number"
  13370. }
  13371. },
  13372. "required": [
  13373. "created"
  13374. ],
  13375. "additionalProperties": false
  13376. },
  13377. "text": {
  13378. "type": "string"
  13379. },
  13380. "description": {
  13381. "type": "string"
  13382. },
  13383. "type": {
  13384. "type": "string",
  13385. "enum": [
  13386. "synthetic"
  13387. ]
  13388. }
  13389. },
  13390. "required": [
  13391. "id",
  13392. "time",
  13393. "text",
  13394. "type"
  13395. ],
  13396. "additionalProperties": false
  13397. },
  13398. "Session.Message.System": {
  13399. "type": "object",
  13400. "properties": {
  13401. "id": {
  13402. "type": "string",
  13403. "allOf": [
  13404. {
  13405. "pattern": "^msg_"
  13406. }
  13407. ]
  13408. },
  13409. "metadata": {
  13410. "type": "object"
  13411. },
  13412. "time": {
  13413. "type": "object",
  13414. "properties": {
  13415. "created": {
  13416. "type": "number"
  13417. }
  13418. },
  13419. "required": [
  13420. "created"
  13421. ],
  13422. "additionalProperties": false
  13423. },
  13424. "type": {
  13425. "type": "string",
  13426. "enum": [
  13427. "system"
  13428. ]
  13429. },
  13430. "text": {
  13431. "type": "string"
  13432. }
  13433. },
  13434. "required": [
  13435. "id",
  13436. "time",
  13437. "type",
  13438. "text"
  13439. ],
  13440. "additionalProperties": false
  13441. },
  13442. "Session.Message.Skill": {
  13443. "type": "object",
  13444. "properties": {
  13445. "id": {
  13446. "type": "string",
  13447. "allOf": [
  13448. {
  13449. "pattern": "^msg_"
  13450. }
  13451. ]
  13452. },
  13453. "metadata": {
  13454. "type": "object"
  13455. },
  13456. "time": {
  13457. "type": "object",
  13458. "properties": {
  13459. "created": {
  13460. "type": "number"
  13461. }
  13462. },
  13463. "required": [
  13464. "created"
  13465. ],
  13466. "additionalProperties": false
  13467. },
  13468. "type": {
  13469. "type": "string",
  13470. "enum": [
  13471. "skill"
  13472. ]
  13473. },
  13474. "skill": {
  13475. "type": "string"
  13476. },
  13477. "name": {
  13478. "type": "string"
  13479. },
  13480. "text": {
  13481. "type": "string"
  13482. }
  13483. },
  13484. "required": [
  13485. "id",
  13486. "time",
  13487. "type",
  13488. "skill",
  13489. "name",
  13490. "text"
  13491. ],
  13492. "additionalProperties": false
  13493. },
  13494. "Session.Message.Shell": {
  13495. "type": "object",
  13496. "properties": {
  13497. "id": {
  13498. "type": "string",
  13499. "allOf": [
  13500. {
  13501. "pattern": "^msg_"
  13502. }
  13503. ]
  13504. },
  13505. "metadata": {
  13506. "type": "object"
  13507. },
  13508. "time": {
  13509. "type": "object",
  13510. "properties": {
  13511. "created": {
  13512. "type": "number"
  13513. },
  13514. "completed": {
  13515. "type": "number"
  13516. }
  13517. },
  13518. "required": [
  13519. "created"
  13520. ],
  13521. "additionalProperties": false
  13522. },
  13523. "type": {
  13524. "type": "string",
  13525. "enum": [
  13526. "shell"
  13527. ]
  13528. },
  13529. "shellID": {
  13530. "type": "string",
  13531. "allOf": [
  13532. {
  13533. "pattern": "^sh_"
  13534. }
  13535. ]
  13536. },
  13537. "command": {
  13538. "type": "string"
  13539. },
  13540. "status": {
  13541. "type": "string",
  13542. "enum": [
  13543. "running",
  13544. "exited",
  13545. "timeout",
  13546. "killed"
  13547. ]
  13548. },
  13549. "exit": {
  13550. "anyOf": [
  13551. {
  13552. "anyOf": [
  13553. {
  13554. "type": "number"
  13555. },
  13556. {
  13557. "type": "string",
  13558. "enum": [
  13559. "NaN"
  13560. ]
  13561. },
  13562. {
  13563. "type": "string",
  13564. "enum": [
  13565. "Infinity"
  13566. ]
  13567. },
  13568. {
  13569. "type": "string",
  13570. "enum": [
  13571. "-Infinity"
  13572. ]
  13573. }
  13574. ]
  13575. },
  13576. {
  13577. "type": "string",
  13578. "enum": [
  13579. "Infinity",
  13580. "-Infinity",
  13581. "NaN"
  13582. ]
  13583. }
  13584. ]
  13585. },
  13586. "output": {
  13587. "type": "object",
  13588. "properties": {
  13589. "output": {
  13590. "type": "string"
  13591. },
  13592. "cursor": {
  13593. "type": "integer",
  13594. "allOf": [
  13595. {
  13596. "minimum": 0
  13597. }
  13598. ]
  13599. },
  13600. "size": {
  13601. "type": "integer",
  13602. "allOf": [
  13603. {
  13604. "minimum": 0
  13605. }
  13606. ]
  13607. },
  13608. "truncated": {
  13609. "type": "boolean"
  13610. }
  13611. },
  13612. "required": [
  13613. "output",
  13614. "cursor",
  13615. "size",
  13616. "truncated"
  13617. ],
  13618. "additionalProperties": false
  13619. }
  13620. },
  13621. "required": [
  13622. "id",
  13623. "time",
  13624. "type",
  13625. "shellID",
  13626. "command",
  13627. "status"
  13628. ],
  13629. "additionalProperties": false
  13630. },
  13631. "Session.Message.ProviderState": {
  13632. "type": "object"
  13633. },
  13634. "Session.Message.Assistant.Text": {
  13635. "type": "object",
  13636. "properties": {
  13637. "type": {
  13638. "type": "string",
  13639. "enum": [
  13640. "text"
  13641. ]
  13642. },
  13643. "text": {
  13644. "type": "string"
  13645. },
  13646. "state": {
  13647. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13648. }
  13649. },
  13650. "required": [
  13651. "type",
  13652. "text"
  13653. ],
  13654. "additionalProperties": false
  13655. },
  13656. "Session.Message.Assistant.Reasoning": {
  13657. "type": "object",
  13658. "properties": {
  13659. "type": {
  13660. "type": "string",
  13661. "enum": [
  13662. "reasoning"
  13663. ]
  13664. },
  13665. "text": {
  13666. "type": "string"
  13667. },
  13668. "state": {
  13669. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13670. },
  13671. "time": {
  13672. "type": "object",
  13673. "properties": {
  13674. "created": {
  13675. "type": "number"
  13676. },
  13677. "completed": {
  13678. "type": "number"
  13679. }
  13680. },
  13681. "required": [
  13682. "created"
  13683. ],
  13684. "additionalProperties": false
  13685. }
  13686. },
  13687. "required": [
  13688. "type",
  13689. "text"
  13690. ],
  13691. "additionalProperties": false
  13692. },
  13693. "Session.Message.ToolState.Streaming": {
  13694. "type": "object",
  13695. "properties": {
  13696. "status": {
  13697. "type": "string",
  13698. "enum": [
  13699. "streaming"
  13700. ]
  13701. },
  13702. "input": {
  13703. "type": "string"
  13704. }
  13705. },
  13706. "required": [
  13707. "status",
  13708. "input"
  13709. ],
  13710. "additionalProperties": false
  13711. },
  13712. "Session.Message.ToolState.Running": {
  13713. "type": "object",
  13714. "properties": {
  13715. "status": {
  13716. "type": "string",
  13717. "enum": [
  13718. "running"
  13719. ]
  13720. },
  13721. "input": {
  13722. "type": "object"
  13723. },
  13724. "metadata": {
  13725. "type": "object"
  13726. }
  13727. },
  13728. "required": [
  13729. "status",
  13730. "input",
  13731. "metadata"
  13732. ],
  13733. "additionalProperties": false
  13734. },
  13735. "Tool.TextContent": {
  13736. "type": "object",
  13737. "properties": {
  13738. "type": {
  13739. "type": "string",
  13740. "enum": [
  13741. "text"
  13742. ]
  13743. },
  13744. "text": {
  13745. "type": "string"
  13746. }
  13747. },
  13748. "required": [
  13749. "type",
  13750. "text"
  13751. ],
  13752. "additionalProperties": false
  13753. },
  13754. "Tool.FileContent": {
  13755. "type": "object",
  13756. "properties": {
  13757. "type": {
  13758. "type": "string",
  13759. "enum": [
  13760. "file"
  13761. ]
  13762. },
  13763. "uri": {
  13764. "type": "string"
  13765. },
  13766. "mime": {
  13767. "type": "string"
  13768. },
  13769. "name": {
  13770. "anyOf": [
  13771. {
  13772. "type": "string"
  13773. },
  13774. {
  13775. "type": "null"
  13776. }
  13777. ]
  13778. }
  13779. },
  13780. "required": [
  13781. "type",
  13782. "uri",
  13783. "mime"
  13784. ],
  13785. "additionalProperties": false
  13786. },
  13787. "Tool.Content": {
  13788. "anyOf": [
  13789. {
  13790. "$ref": "#/components/schemas/Tool.TextContent"
  13791. },
  13792. {
  13793. "$ref": "#/components/schemas/Tool.FileContent"
  13794. }
  13795. ]
  13796. },
  13797. "Session.Message.ToolState.Completed": {
  13798. "type": "object",
  13799. "properties": {
  13800. "status": {
  13801. "type": "string",
  13802. "enum": [
  13803. "completed"
  13804. ]
  13805. },
  13806. "input": {
  13807. "type": "object"
  13808. },
  13809. "content": {
  13810. "type": "array",
  13811. "prefixItems": [
  13812. {
  13813. "$ref": "#/components/schemas/Tool.Content"
  13814. }
  13815. ],
  13816. "minItems": 1,
  13817. "items": {
  13818. "$ref": "#/components/schemas/Tool.Content"
  13819. }
  13820. },
  13821. "metadata": {
  13822. "type": "object"
  13823. }
  13824. },
  13825. "required": [
  13826. "status",
  13827. "input",
  13828. "content"
  13829. ],
  13830. "additionalProperties": false
  13831. },
  13832. "Session.StructuredError": {
  13833. "type": "object",
  13834. "properties": {
  13835. "type": {
  13836. "type": "string"
  13837. },
  13838. "message": {
  13839. "type": "string"
  13840. }
  13841. },
  13842. "required": [
  13843. "type",
  13844. "message"
  13845. ],
  13846. "additionalProperties": false
  13847. },
  13848. "Session.Message.ToolState.Error": {
  13849. "type": "object",
  13850. "properties": {
  13851. "status": {
  13852. "type": "string",
  13853. "enum": [
  13854. "error"
  13855. ]
  13856. },
  13857. "input": {
  13858. "type": "object"
  13859. },
  13860. "error": {
  13861. "$ref": "#/components/schemas/Session.StructuredError"
  13862. },
  13863. "content": {
  13864. "type": "array",
  13865. "prefixItems": [
  13866. {
  13867. "$ref": "#/components/schemas/Tool.Content"
  13868. }
  13869. ],
  13870. "minItems": 1,
  13871. "items": {
  13872. "$ref": "#/components/schemas/Tool.Content"
  13873. }
  13874. },
  13875. "metadata": {
  13876. "type": "object"
  13877. }
  13878. },
  13879. "required": [
  13880. "status",
  13881. "input",
  13882. "error"
  13883. ],
  13884. "additionalProperties": false
  13885. },
  13886. "Session.Message.Assistant.Tool": {
  13887. "type": "object",
  13888. "properties": {
  13889. "type": {
  13890. "type": "string",
  13891. "enum": [
  13892. "tool"
  13893. ]
  13894. },
  13895. "id": {
  13896. "type": "string"
  13897. },
  13898. "name": {
  13899. "type": "string"
  13900. },
  13901. "executed": {
  13902. "type": "boolean"
  13903. },
  13904. "providerState": {
  13905. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13906. },
  13907. "providerResultState": {
  13908. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13909. },
  13910. "state": {
  13911. "anyOf": [
  13912. {
  13913. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  13914. },
  13915. {
  13916. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  13917. },
  13918. {
  13919. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  13920. },
  13921. {
  13922. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  13923. }
  13924. ]
  13925. },
  13926. "time": {
  13927. "type": "object",
  13928. "properties": {
  13929. "created": {
  13930. "type": "number"
  13931. },
  13932. "ran": {
  13933. "type": "number"
  13934. },
  13935. "completed": {
  13936. "type": "number"
  13937. }
  13938. },
  13939. "required": [
  13940. "created"
  13941. ],
  13942. "additionalProperties": false
  13943. }
  13944. },
  13945. "required": [
  13946. "type",
  13947. "id",
  13948. "name",
  13949. "state",
  13950. "time"
  13951. ],
  13952. "additionalProperties": false
  13953. },
  13954. "Session.Message.Assistant.Retry": {
  13955. "type": "object",
  13956. "properties": {
  13957. "attempt": {
  13958. "type": "integer",
  13959. "allOf": [
  13960. {
  13961. "exclusiveMinimum": 0
  13962. }
  13963. ]
  13964. },
  13965. "at": {
  13966. "type": "number"
  13967. },
  13968. "error": {
  13969. "$ref": "#/components/schemas/Session.StructuredError"
  13970. }
  13971. },
  13972. "required": [
  13973. "attempt",
  13974. "at",
  13975. "error"
  13976. ],
  13977. "additionalProperties": false
  13978. },
  13979. "Session.Message.Assistant": {
  13980. "type": "object",
  13981. "properties": {
  13982. "id": {
  13983. "type": "string",
  13984. "allOf": [
  13985. {
  13986. "pattern": "^msg_"
  13987. }
  13988. ]
  13989. },
  13990. "metadata": {
  13991. "type": "object"
  13992. },
  13993. "time": {
  13994. "type": "object",
  13995. "properties": {
  13996. "created": {
  13997. "type": "number"
  13998. },
  13999. "completed": {
  14000. "type": "number"
  14001. }
  14002. },
  14003. "required": [
  14004. "created"
  14005. ],
  14006. "additionalProperties": false
  14007. },
  14008. "type": {
  14009. "type": "string",
  14010. "enum": [
  14011. "assistant"
  14012. ]
  14013. },
  14014. "agent": {
  14015. "type": "string"
  14016. },
  14017. "model": {
  14018. "$ref": "#/components/schemas/Model.Ref"
  14019. },
  14020. "content": {
  14021. "type": "array",
  14022. "items": {
  14023. "anyOf": [
  14024. {
  14025. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  14026. },
  14027. {
  14028. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  14029. },
  14030. {
  14031. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  14032. }
  14033. ]
  14034. }
  14035. },
  14036. "snapshot": {
  14037. "type": "object",
  14038. "properties": {
  14039. "start": {
  14040. "type": "string"
  14041. },
  14042. "end": {
  14043. "type": "string"
  14044. },
  14045. "files": {
  14046. "type": "array",
  14047. "items": {
  14048. "type": "string"
  14049. }
  14050. }
  14051. },
  14052. "additionalProperties": false
  14053. },
  14054. "finish": {
  14055. "type": "string",
  14056. "enum": [
  14057. "stop",
  14058. "length",
  14059. "tool-calls",
  14060. "content-filter",
  14061. "error",
  14062. "unknown"
  14063. ]
  14064. },
  14065. "cost": {
  14066. "$ref": "#/components/schemas/Money.USD"
  14067. },
  14068. "tokens": {
  14069. "$ref": "#/components/schemas/TokenUsage.Info"
  14070. },
  14071. "error": {
  14072. "$ref": "#/components/schemas/Session.StructuredError"
  14073. },
  14074. "retry": {
  14075. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  14076. }
  14077. },
  14078. "required": [
  14079. "id",
  14080. "time",
  14081. "type",
  14082. "agent",
  14083. "model",
  14084. "content"
  14085. ],
  14086. "additionalProperties": false
  14087. },
  14088. "Session.Message.Compaction.Running": {
  14089. "type": "object",
  14090. "properties": {
  14091. "type": {
  14092. "type": "string",
  14093. "enum": [
  14094. "compaction"
  14095. ]
  14096. },
  14097. "id": {
  14098. "type": "string",
  14099. "allOf": [
  14100. {
  14101. "pattern": "^msg_"
  14102. }
  14103. ]
  14104. },
  14105. "metadata": {
  14106. "type": "object"
  14107. },
  14108. "time": {
  14109. "type": "object",
  14110. "properties": {
  14111. "created": {
  14112. "type": "number"
  14113. }
  14114. },
  14115. "required": [
  14116. "created"
  14117. ],
  14118. "additionalProperties": false
  14119. },
  14120. "status": {
  14121. "type": "string",
  14122. "enum": [
  14123. "running"
  14124. ]
  14125. },
  14126. "reason": {
  14127. "type": "string",
  14128. "enum": [
  14129. "auto",
  14130. "manual"
  14131. ]
  14132. },
  14133. "summary": {
  14134. "type": "string"
  14135. },
  14136. "recent": {
  14137. "type": "string"
  14138. }
  14139. },
  14140. "required": [
  14141. "type",
  14142. "id",
  14143. "time",
  14144. "status",
  14145. "reason",
  14146. "summary",
  14147. "recent"
  14148. ],
  14149. "additionalProperties": false
  14150. },
  14151. "Session.Message.Compaction.Completed": {
  14152. "type": "object",
  14153. "properties": {
  14154. "type": {
  14155. "type": "string",
  14156. "enum": [
  14157. "compaction"
  14158. ]
  14159. },
  14160. "id": {
  14161. "type": "string",
  14162. "allOf": [
  14163. {
  14164. "pattern": "^msg_"
  14165. }
  14166. ]
  14167. },
  14168. "metadata": {
  14169. "type": "object"
  14170. },
  14171. "time": {
  14172. "type": "object",
  14173. "properties": {
  14174. "created": {
  14175. "type": "number"
  14176. }
  14177. },
  14178. "required": [
  14179. "created"
  14180. ],
  14181. "additionalProperties": false
  14182. },
  14183. "status": {
  14184. "type": "string",
  14185. "enum": [
  14186. "completed"
  14187. ]
  14188. },
  14189. "reason": {
  14190. "type": "string",
  14191. "enum": [
  14192. "auto",
  14193. "manual"
  14194. ]
  14195. },
  14196. "summary": {
  14197. "type": "string"
  14198. },
  14199. "recent": {
  14200. "type": "string"
  14201. }
  14202. },
  14203. "required": [
  14204. "type",
  14205. "id",
  14206. "time",
  14207. "status",
  14208. "reason",
  14209. "summary",
  14210. "recent"
  14211. ],
  14212. "additionalProperties": false
  14213. },
  14214. "Session.Message.Compaction.Failed": {
  14215. "type": "object",
  14216. "properties": {
  14217. "type": {
  14218. "type": "string",
  14219. "enum": [
  14220. "compaction"
  14221. ]
  14222. },
  14223. "id": {
  14224. "type": "string",
  14225. "allOf": [
  14226. {
  14227. "pattern": "^msg_"
  14228. }
  14229. ]
  14230. },
  14231. "metadata": {
  14232. "type": "object"
  14233. },
  14234. "time": {
  14235. "type": "object",
  14236. "properties": {
  14237. "created": {
  14238. "type": "number"
  14239. }
  14240. },
  14241. "required": [
  14242. "created"
  14243. ],
  14244. "additionalProperties": false
  14245. },
  14246. "status": {
  14247. "type": "string",
  14248. "enum": [
  14249. "failed"
  14250. ]
  14251. },
  14252. "reason": {
  14253. "type": "string",
  14254. "enum": [
  14255. "auto",
  14256. "manual"
  14257. ]
  14258. },
  14259. "error": {
  14260. "$ref": "#/components/schemas/Session.StructuredError"
  14261. }
  14262. },
  14263. "required": [
  14264. "type",
  14265. "id",
  14266. "time",
  14267. "status",
  14268. "reason",
  14269. "error"
  14270. ],
  14271. "additionalProperties": false
  14272. },
  14273. "Session.Message.Compaction": {
  14274. "anyOf": [
  14275. {
  14276. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  14277. },
  14278. {
  14279. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  14280. },
  14281. {
  14282. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  14283. }
  14284. ]
  14285. },
  14286. "Session.Message.Info": {
  14287. "anyOf": [
  14288. {
  14289. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  14290. },
  14291. {
  14292. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  14293. },
  14294. {
  14295. "$ref": "#/components/schemas/Session.Message.User"
  14296. },
  14297. {
  14298. "$ref": "#/components/schemas/Session.Message.Synthetic"
  14299. },
  14300. {
  14301. "$ref": "#/components/schemas/Session.Message.System"
  14302. },
  14303. {
  14304. "$ref": "#/components/schemas/Session.Message.Skill"
  14305. },
  14306. {
  14307. "$ref": "#/components/schemas/Session.Message.Shell"
  14308. },
  14309. {
  14310. "$ref": "#/components/schemas/Session.Message.Assistant"
  14311. },
  14312. {
  14313. "$ref": "#/components/schemas/Session.Message.Compaction"
  14314. }
  14315. ]
  14316. },
  14317. "SessionPending.Info": {
  14318. "anyOf": [
  14319. {
  14320. "$ref": "#/components/schemas/SessionPending.User"
  14321. },
  14322. {
  14323. "$ref": "#/components/schemas/SessionPending.Synthetic"
  14324. },
  14325. {
  14326. "$ref": "#/components/schemas/SessionPending.Compaction"
  14327. }
  14328. ]
  14329. },
  14330. "InstructionEntry.Key": {
  14331. "type": "string",
  14332. "allOf": [
  14333. {
  14334. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  14335. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  14336. }
  14337. ]
  14338. },
  14339. "InstructionEntry.Info": {
  14340. "type": "object",
  14341. "properties": {
  14342. "key": {
  14343. "$ref": "#/components/schemas/InstructionEntry.Key"
  14344. },
  14345. "value": {}
  14346. },
  14347. "required": [
  14348. "key",
  14349. "value"
  14350. ],
  14351. "additionalProperties": false
  14352. },
  14353. "InstructionEntryValueTooLargeError": {
  14354. "type": "object",
  14355. "properties": {
  14356. "_tag": {
  14357. "type": "string",
  14358. "enum": [
  14359. "InstructionEntryValueTooLargeError"
  14360. ]
  14361. },
  14362. "actualBytes": {
  14363. "type": "integer"
  14364. },
  14365. "maxBytes": {
  14366. "type": "integer"
  14367. },
  14368. "message": {
  14369. "type": "string"
  14370. }
  14371. },
  14372. "required": [
  14373. "_tag",
  14374. "actualBytes",
  14375. "maxBytes",
  14376. "message"
  14377. ],
  14378. "additionalProperties": false
  14379. },
  14380. "SessionGenerateResponse": {
  14381. "type": "object",
  14382. "properties": {
  14383. "data": {
  14384. "type": "object",
  14385. "properties": {
  14386. "text": {
  14387. "type": "string"
  14388. }
  14389. },
  14390. "required": [
  14391. "text"
  14392. ],
  14393. "additionalProperties": false
  14394. }
  14395. },
  14396. "required": [
  14397. "data"
  14398. ],
  14399. "additionalProperties": false
  14400. },
  14401. "session.agent.selected": {
  14402. "type": "object",
  14403. "properties": {
  14404. "id": {
  14405. "type": "string",
  14406. "allOf": [
  14407. {
  14408. "pattern": "^evt_"
  14409. }
  14410. ]
  14411. },
  14412. "created": {
  14413. "type": "number"
  14414. },
  14415. "metadata": {
  14416. "type": "object"
  14417. },
  14418. "type": {
  14419. "type": "string",
  14420. "enum": [
  14421. "session.agent.selected"
  14422. ]
  14423. },
  14424. "durable": {
  14425. "type": "object",
  14426. "properties": {
  14427. "aggregateID": {
  14428. "type": "string"
  14429. },
  14430. "seq": {
  14431. "type": "integer",
  14432. "allOf": [
  14433. {
  14434. "minimum": 0
  14435. }
  14436. ]
  14437. },
  14438. "version": {
  14439. "type": "number",
  14440. "enum": [
  14441. 1
  14442. ]
  14443. }
  14444. },
  14445. "required": [
  14446. "aggregateID",
  14447. "seq",
  14448. "version"
  14449. ],
  14450. "additionalProperties": false
  14451. },
  14452. "location": {
  14453. "$ref": "#/components/schemas/Location.Ref"
  14454. },
  14455. "data": {
  14456. "type": "object",
  14457. "properties": {
  14458. "sessionID": {
  14459. "type": "string",
  14460. "allOf": [
  14461. {
  14462. "pattern": "^ses"
  14463. }
  14464. ]
  14465. },
  14466. "agent": {
  14467. "type": "string"
  14468. }
  14469. },
  14470. "required": [
  14471. "sessionID",
  14472. "agent"
  14473. ],
  14474. "additionalProperties": false
  14475. }
  14476. },
  14477. "required": [
  14478. "id",
  14479. "created",
  14480. "type",
  14481. "durable",
  14482. "data"
  14483. ],
  14484. "additionalProperties": false
  14485. },
  14486. "session.model.selected": {
  14487. "type": "object",
  14488. "properties": {
  14489. "id": {
  14490. "type": "string",
  14491. "allOf": [
  14492. {
  14493. "pattern": "^evt_"
  14494. }
  14495. ]
  14496. },
  14497. "created": {
  14498. "type": "number"
  14499. },
  14500. "metadata": {
  14501. "type": "object"
  14502. },
  14503. "type": {
  14504. "type": "string",
  14505. "enum": [
  14506. "session.model.selected"
  14507. ]
  14508. },
  14509. "durable": {
  14510. "type": "object",
  14511. "properties": {
  14512. "aggregateID": {
  14513. "type": "string"
  14514. },
  14515. "seq": {
  14516. "type": "integer",
  14517. "allOf": [
  14518. {
  14519. "minimum": 0
  14520. }
  14521. ]
  14522. },
  14523. "version": {
  14524. "type": "number",
  14525. "enum": [
  14526. 1
  14527. ]
  14528. }
  14529. },
  14530. "required": [
  14531. "aggregateID",
  14532. "seq",
  14533. "version"
  14534. ],
  14535. "additionalProperties": false
  14536. },
  14537. "location": {
  14538. "$ref": "#/components/schemas/Location.Ref"
  14539. },
  14540. "data": {
  14541. "type": "object",
  14542. "properties": {
  14543. "sessionID": {
  14544. "type": "string",
  14545. "allOf": [
  14546. {
  14547. "pattern": "^ses"
  14548. }
  14549. ]
  14550. },
  14551. "model": {
  14552. "$ref": "#/components/schemas/Model.Ref"
  14553. }
  14554. },
  14555. "required": [
  14556. "sessionID",
  14557. "model"
  14558. ],
  14559. "additionalProperties": false
  14560. }
  14561. },
  14562. "required": [
  14563. "id",
  14564. "created",
  14565. "type",
  14566. "durable",
  14567. "data"
  14568. ],
  14569. "additionalProperties": false
  14570. },
  14571. "session.moved": {
  14572. "type": "object",
  14573. "properties": {
  14574. "id": {
  14575. "type": "string",
  14576. "allOf": [
  14577. {
  14578. "pattern": "^evt_"
  14579. }
  14580. ]
  14581. },
  14582. "created": {
  14583. "type": "number"
  14584. },
  14585. "metadata": {
  14586. "type": "object"
  14587. },
  14588. "type": {
  14589. "type": "string",
  14590. "enum": [
  14591. "session.moved"
  14592. ]
  14593. },
  14594. "durable": {
  14595. "type": "object",
  14596. "properties": {
  14597. "aggregateID": {
  14598. "type": "string"
  14599. },
  14600. "seq": {
  14601. "type": "integer",
  14602. "allOf": [
  14603. {
  14604. "minimum": 0
  14605. }
  14606. ]
  14607. },
  14608. "version": {
  14609. "type": "number",
  14610. "enum": [
  14611. 1
  14612. ]
  14613. }
  14614. },
  14615. "required": [
  14616. "aggregateID",
  14617. "seq",
  14618. "version"
  14619. ],
  14620. "additionalProperties": false
  14621. },
  14622. "location": {
  14623. "$ref": "#/components/schemas/Location.Ref"
  14624. },
  14625. "data": {
  14626. "type": "object",
  14627. "properties": {
  14628. "sessionID": {
  14629. "type": "string",
  14630. "allOf": [
  14631. {
  14632. "pattern": "^ses"
  14633. }
  14634. ]
  14635. },
  14636. "location": {
  14637. "$ref": "#/components/schemas/Location.Ref"
  14638. },
  14639. "projectID": {
  14640. "type": "string"
  14641. },
  14642. "subpath": {
  14643. "type": "string"
  14644. }
  14645. },
  14646. "required": [
  14647. "sessionID",
  14648. "location"
  14649. ],
  14650. "additionalProperties": false
  14651. }
  14652. },
  14653. "required": [
  14654. "id",
  14655. "created",
  14656. "type",
  14657. "durable",
  14658. "data"
  14659. ],
  14660. "additionalProperties": false
  14661. },
  14662. "session.renamed": {
  14663. "type": "object",
  14664. "properties": {
  14665. "id": {
  14666. "type": "string",
  14667. "allOf": [
  14668. {
  14669. "pattern": "^evt_"
  14670. }
  14671. ]
  14672. },
  14673. "created": {
  14674. "type": "number"
  14675. },
  14676. "metadata": {
  14677. "type": "object"
  14678. },
  14679. "type": {
  14680. "type": "string",
  14681. "enum": [
  14682. "session.renamed"
  14683. ]
  14684. },
  14685. "durable": {
  14686. "type": "object",
  14687. "properties": {
  14688. "aggregateID": {
  14689. "type": "string"
  14690. },
  14691. "seq": {
  14692. "type": "integer",
  14693. "allOf": [
  14694. {
  14695. "minimum": 0
  14696. }
  14697. ]
  14698. },
  14699. "version": {
  14700. "type": "number",
  14701. "enum": [
  14702. 1
  14703. ]
  14704. }
  14705. },
  14706. "required": [
  14707. "aggregateID",
  14708. "seq",
  14709. "version"
  14710. ],
  14711. "additionalProperties": false
  14712. },
  14713. "location": {
  14714. "$ref": "#/components/schemas/Location.Ref"
  14715. },
  14716. "data": {
  14717. "type": "object",
  14718. "properties": {
  14719. "sessionID": {
  14720. "type": "string",
  14721. "allOf": [
  14722. {
  14723. "pattern": "^ses"
  14724. }
  14725. ]
  14726. },
  14727. "title": {
  14728. "type": "string"
  14729. }
  14730. },
  14731. "required": [
  14732. "sessionID",
  14733. "title"
  14734. ],
  14735. "additionalProperties": false
  14736. }
  14737. },
  14738. "required": [
  14739. "id",
  14740. "created",
  14741. "type",
  14742. "durable",
  14743. "data"
  14744. ],
  14745. "additionalProperties": false
  14746. },
  14747. "session.deleted": {
  14748. "type": "object",
  14749. "properties": {
  14750. "id": {
  14751. "type": "string",
  14752. "allOf": [
  14753. {
  14754. "pattern": "^evt_"
  14755. }
  14756. ]
  14757. },
  14758. "created": {
  14759. "type": "number"
  14760. },
  14761. "metadata": {
  14762. "type": "object"
  14763. },
  14764. "type": {
  14765. "type": "string",
  14766. "enum": [
  14767. "session.deleted"
  14768. ]
  14769. },
  14770. "durable": {
  14771. "type": "object",
  14772. "properties": {
  14773. "aggregateID": {
  14774. "type": "string"
  14775. },
  14776. "seq": {
  14777. "type": "integer",
  14778. "allOf": [
  14779. {
  14780. "minimum": 0
  14781. }
  14782. ]
  14783. },
  14784. "version": {
  14785. "type": "number",
  14786. "enum": [
  14787. 2
  14788. ]
  14789. }
  14790. },
  14791. "required": [
  14792. "aggregateID",
  14793. "seq",
  14794. "version"
  14795. ],
  14796. "additionalProperties": false
  14797. },
  14798. "location": {
  14799. "$ref": "#/components/schemas/Location.Ref"
  14800. },
  14801. "data": {
  14802. "type": "object",
  14803. "properties": {
  14804. "sessionID": {
  14805. "type": "string",
  14806. "allOf": [
  14807. {
  14808. "pattern": "^ses"
  14809. }
  14810. ]
  14811. }
  14812. },
  14813. "required": [
  14814. "sessionID"
  14815. ],
  14816. "additionalProperties": false
  14817. }
  14818. },
  14819. "required": [
  14820. "id",
  14821. "created",
  14822. "type",
  14823. "durable",
  14824. "data"
  14825. ],
  14826. "additionalProperties": false
  14827. },
  14828. "session.forked": {
  14829. "type": "object",
  14830. "properties": {
  14831. "id": {
  14832. "type": "string",
  14833. "allOf": [
  14834. {
  14835. "pattern": "^evt_"
  14836. }
  14837. ]
  14838. },
  14839. "created": {
  14840. "type": "number"
  14841. },
  14842. "metadata": {
  14843. "type": "object"
  14844. },
  14845. "type": {
  14846. "type": "string",
  14847. "enum": [
  14848. "session.forked"
  14849. ]
  14850. },
  14851. "durable": {
  14852. "type": "object",
  14853. "properties": {
  14854. "aggregateID": {
  14855. "type": "string"
  14856. },
  14857. "seq": {
  14858. "type": "integer",
  14859. "allOf": [
  14860. {
  14861. "minimum": 0
  14862. }
  14863. ]
  14864. },
  14865. "version": {
  14866. "type": "number",
  14867. "enum": [
  14868. 2
  14869. ]
  14870. }
  14871. },
  14872. "required": [
  14873. "aggregateID",
  14874. "seq",
  14875. "version"
  14876. ],
  14877. "additionalProperties": false
  14878. },
  14879. "location": {
  14880. "$ref": "#/components/schemas/Location.Ref"
  14881. },
  14882. "data": {
  14883. "type": "object",
  14884. "properties": {
  14885. "sessionID": {
  14886. "type": "string",
  14887. "allOf": [
  14888. {
  14889. "pattern": "^ses"
  14890. }
  14891. ]
  14892. },
  14893. "parentID": {
  14894. "type": "string",
  14895. "allOf": [
  14896. {
  14897. "pattern": "^ses"
  14898. }
  14899. ]
  14900. },
  14901. "boundary": {
  14902. "$ref": "#/components/schemas/Session.ForkBoundary"
  14903. },
  14904. "instructions": {
  14905. "type": "object",
  14906. "patternProperties": {
  14907. "^[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._/-]*$": {
  14908. "type": "string",
  14909. "allOf": [
  14910. {
  14911. "pattern": "^[a-f0-9]{64}$"
  14912. }
  14913. ]
  14914. }
  14915. }
  14916. }
  14917. },
  14918. "required": [
  14919. "sessionID",
  14920. "parentID",
  14921. "boundary"
  14922. ],
  14923. "additionalProperties": false
  14924. }
  14925. },
  14926. "required": [
  14927. "id",
  14928. "created",
  14929. "type",
  14930. "durable",
  14931. "data"
  14932. ],
  14933. "additionalProperties": false
  14934. },
  14935. "session.input.promoted": {
  14936. "type": "object",
  14937. "properties": {
  14938. "id": {
  14939. "type": "string",
  14940. "allOf": [
  14941. {
  14942. "pattern": "^evt_"
  14943. }
  14944. ]
  14945. },
  14946. "created": {
  14947. "type": "number"
  14948. },
  14949. "metadata": {
  14950. "type": "object"
  14951. },
  14952. "type": {
  14953. "type": "string",
  14954. "enum": [
  14955. "session.input.promoted"
  14956. ]
  14957. },
  14958. "durable": {
  14959. "type": "object",
  14960. "properties": {
  14961. "aggregateID": {
  14962. "type": "string"
  14963. },
  14964. "seq": {
  14965. "type": "integer",
  14966. "allOf": [
  14967. {
  14968. "minimum": 0
  14969. }
  14970. ]
  14971. },
  14972. "version": {
  14973. "type": "number",
  14974. "enum": [
  14975. 1
  14976. ]
  14977. }
  14978. },
  14979. "required": [
  14980. "aggregateID",
  14981. "seq",
  14982. "version"
  14983. ],
  14984. "additionalProperties": false
  14985. },
  14986. "location": {
  14987. "$ref": "#/components/schemas/Location.Ref"
  14988. },
  14989. "data": {
  14990. "type": "object",
  14991. "properties": {
  14992. "sessionID": {
  14993. "type": "string",
  14994. "allOf": [
  14995. {
  14996. "pattern": "^ses"
  14997. }
  14998. ]
  14999. },
  15000. "inputID": {
  15001. "type": "string",
  15002. "allOf": [
  15003. {
  15004. "pattern": "^msg_"
  15005. }
  15006. ]
  15007. }
  15008. },
  15009. "required": [
  15010. "sessionID",
  15011. "inputID"
  15012. ],
  15013. "additionalProperties": false
  15014. }
  15015. },
  15016. "required": [
  15017. "id",
  15018. "created",
  15019. "type",
  15020. "durable",
  15021. "data"
  15022. ],
  15023. "additionalProperties": false
  15024. },
  15025. "SessionPending.UserData1": {
  15026. "type": "object",
  15027. "properties": {
  15028. "text": {
  15029. "type": "string"
  15030. },
  15031. "files": {
  15032. "type": "array",
  15033. "items": {
  15034. "$ref": "#/components/schemas/Prompt.FileAttachment"
  15035. }
  15036. },
  15037. "agents": {
  15038. "type": "array",
  15039. "items": {
  15040. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  15041. }
  15042. },
  15043. "metadata": {
  15044. "type": "object"
  15045. }
  15046. },
  15047. "required": [
  15048. "text"
  15049. ],
  15050. "additionalProperties": false
  15051. },
  15052. "SessionPending.UserMessage": {
  15053. "type": "object",
  15054. "properties": {
  15055. "type": {
  15056. "type": "string",
  15057. "enum": [
  15058. "user"
  15059. ]
  15060. },
  15061. "data": {
  15062. "$ref": "#/components/schemas/SessionPending.UserData1"
  15063. },
  15064. "delivery": {
  15065. "type": "string",
  15066. "enum": [
  15067. "steer",
  15068. "queue"
  15069. ]
  15070. }
  15071. },
  15072. "required": [
  15073. "type",
  15074. "data",
  15075. "delivery"
  15076. ],
  15077. "additionalProperties": false
  15078. },
  15079. "SessionPending.SyntheticData1": {
  15080. "type": "object",
  15081. "properties": {
  15082. "text": {
  15083. "type": "string"
  15084. },
  15085. "description": {
  15086. "type": "string"
  15087. },
  15088. "metadata": {
  15089. "type": "object"
  15090. }
  15091. },
  15092. "required": [
  15093. "text"
  15094. ],
  15095. "additionalProperties": false
  15096. },
  15097. "SessionPending.SyntheticMessage": {
  15098. "type": "object",
  15099. "properties": {
  15100. "type": {
  15101. "type": "string",
  15102. "enum": [
  15103. "synthetic"
  15104. ]
  15105. },
  15106. "data": {
  15107. "$ref": "#/components/schemas/SessionPending.SyntheticData1"
  15108. },
  15109. "delivery": {
  15110. "type": "string",
  15111. "enum": [
  15112. "steer",
  15113. "queue"
  15114. ]
  15115. }
  15116. },
  15117. "required": [
  15118. "type",
  15119. "data",
  15120. "delivery"
  15121. ],
  15122. "additionalProperties": false
  15123. },
  15124. "SessionPending.Message": {
  15125. "anyOf": [
  15126. {
  15127. "$ref": "#/components/schemas/SessionPending.UserMessage"
  15128. },
  15129. {
  15130. "$ref": "#/components/schemas/SessionPending.SyntheticMessage"
  15131. }
  15132. ]
  15133. },
  15134. "session.input.admitted": {
  15135. "type": "object",
  15136. "properties": {
  15137. "id": {
  15138. "type": "string",
  15139. "allOf": [
  15140. {
  15141. "pattern": "^evt_"
  15142. }
  15143. ]
  15144. },
  15145. "created": {
  15146. "type": "number"
  15147. },
  15148. "metadata": {
  15149. "type": "object"
  15150. },
  15151. "type": {
  15152. "type": "string",
  15153. "enum": [
  15154. "session.input.admitted"
  15155. ]
  15156. },
  15157. "durable": {
  15158. "type": "object",
  15159. "properties": {
  15160. "aggregateID": {
  15161. "type": "string"
  15162. },
  15163. "seq": {
  15164. "type": "integer",
  15165. "allOf": [
  15166. {
  15167. "minimum": 0
  15168. }
  15169. ]
  15170. },
  15171. "version": {
  15172. "type": "number",
  15173. "enum": [
  15174. 1
  15175. ]
  15176. }
  15177. },
  15178. "required": [
  15179. "aggregateID",
  15180. "seq",
  15181. "version"
  15182. ],
  15183. "additionalProperties": false
  15184. },
  15185. "location": {
  15186. "$ref": "#/components/schemas/Location.Ref"
  15187. },
  15188. "data": {
  15189. "type": "object",
  15190. "properties": {
  15191. "sessionID": {
  15192. "type": "string",
  15193. "allOf": [
  15194. {
  15195. "pattern": "^ses"
  15196. }
  15197. ]
  15198. },
  15199. "inputID": {
  15200. "type": "string",
  15201. "allOf": [
  15202. {
  15203. "pattern": "^msg_"
  15204. }
  15205. ]
  15206. },
  15207. "input": {
  15208. "$ref": "#/components/schemas/SessionPending.Message"
  15209. }
  15210. },
  15211. "required": [
  15212. "sessionID",
  15213. "inputID",
  15214. "input"
  15215. ],
  15216. "additionalProperties": false
  15217. }
  15218. },
  15219. "required": [
  15220. "id",
  15221. "created",
  15222. "type",
  15223. "durable",
  15224. "data"
  15225. ],
  15226. "additionalProperties": false
  15227. },
  15228. "session.execution.started": {
  15229. "type": "object",
  15230. "properties": {
  15231. "id": {
  15232. "type": "string",
  15233. "allOf": [
  15234. {
  15235. "pattern": "^evt_"
  15236. }
  15237. ]
  15238. },
  15239. "created": {
  15240. "type": "number"
  15241. },
  15242. "metadata": {
  15243. "type": "object"
  15244. },
  15245. "type": {
  15246. "type": "string",
  15247. "enum": [
  15248. "session.execution.started"
  15249. ]
  15250. },
  15251. "durable": {
  15252. "type": "object",
  15253. "properties": {
  15254. "aggregateID": {
  15255. "type": "string"
  15256. },
  15257. "seq": {
  15258. "type": "integer",
  15259. "allOf": [
  15260. {
  15261. "minimum": 0
  15262. }
  15263. ]
  15264. },
  15265. "version": {
  15266. "type": "number",
  15267. "enum": [
  15268. 1
  15269. ]
  15270. }
  15271. },
  15272. "required": [
  15273. "aggregateID",
  15274. "seq",
  15275. "version"
  15276. ],
  15277. "additionalProperties": false
  15278. },
  15279. "location": {
  15280. "$ref": "#/components/schemas/Location.Ref"
  15281. },
  15282. "data": {
  15283. "type": "object",
  15284. "properties": {
  15285. "sessionID": {
  15286. "type": "string",
  15287. "allOf": [
  15288. {
  15289. "pattern": "^ses"
  15290. }
  15291. ]
  15292. }
  15293. },
  15294. "required": [
  15295. "sessionID"
  15296. ],
  15297. "additionalProperties": false
  15298. }
  15299. },
  15300. "required": [
  15301. "id",
  15302. "created",
  15303. "type",
  15304. "durable",
  15305. "data"
  15306. ],
  15307. "additionalProperties": false
  15308. },
  15309. "session.execution.succeeded": {
  15310. "type": "object",
  15311. "properties": {
  15312. "id": {
  15313. "type": "string",
  15314. "allOf": [
  15315. {
  15316. "pattern": "^evt_"
  15317. }
  15318. ]
  15319. },
  15320. "created": {
  15321. "type": "number"
  15322. },
  15323. "metadata": {
  15324. "type": "object"
  15325. },
  15326. "type": {
  15327. "type": "string",
  15328. "enum": [
  15329. "session.execution.succeeded"
  15330. ]
  15331. },
  15332. "durable": {
  15333. "type": "object",
  15334. "properties": {
  15335. "aggregateID": {
  15336. "type": "string"
  15337. },
  15338. "seq": {
  15339. "type": "integer",
  15340. "allOf": [
  15341. {
  15342. "minimum": 0
  15343. }
  15344. ]
  15345. },
  15346. "version": {
  15347. "type": "number",
  15348. "enum": [
  15349. 1
  15350. ]
  15351. }
  15352. },
  15353. "required": [
  15354. "aggregateID",
  15355. "seq",
  15356. "version"
  15357. ],
  15358. "additionalProperties": false
  15359. },
  15360. "location": {
  15361. "$ref": "#/components/schemas/Location.Ref"
  15362. },
  15363. "data": {
  15364. "type": "object",
  15365. "properties": {
  15366. "sessionID": {
  15367. "type": "string",
  15368. "allOf": [
  15369. {
  15370. "pattern": "^ses"
  15371. }
  15372. ]
  15373. }
  15374. },
  15375. "required": [
  15376. "sessionID"
  15377. ],
  15378. "additionalProperties": false
  15379. }
  15380. },
  15381. "required": [
  15382. "id",
  15383. "created",
  15384. "type",
  15385. "durable",
  15386. "data"
  15387. ],
  15388. "additionalProperties": false
  15389. },
  15390. "session.execution.failed": {
  15391. "type": "object",
  15392. "properties": {
  15393. "id": {
  15394. "type": "string",
  15395. "allOf": [
  15396. {
  15397. "pattern": "^evt_"
  15398. }
  15399. ]
  15400. },
  15401. "created": {
  15402. "type": "number"
  15403. },
  15404. "metadata": {
  15405. "type": "object"
  15406. },
  15407. "type": {
  15408. "type": "string",
  15409. "enum": [
  15410. "session.execution.failed"
  15411. ]
  15412. },
  15413. "durable": {
  15414. "type": "object",
  15415. "properties": {
  15416. "aggregateID": {
  15417. "type": "string"
  15418. },
  15419. "seq": {
  15420. "type": "integer",
  15421. "allOf": [
  15422. {
  15423. "minimum": 0
  15424. }
  15425. ]
  15426. },
  15427. "version": {
  15428. "type": "number",
  15429. "enum": [
  15430. 1
  15431. ]
  15432. }
  15433. },
  15434. "required": [
  15435. "aggregateID",
  15436. "seq",
  15437. "version"
  15438. ],
  15439. "additionalProperties": false
  15440. },
  15441. "location": {
  15442. "$ref": "#/components/schemas/Location.Ref"
  15443. },
  15444. "data": {
  15445. "type": "object",
  15446. "properties": {
  15447. "sessionID": {
  15448. "type": "string",
  15449. "allOf": [
  15450. {
  15451. "pattern": "^ses"
  15452. }
  15453. ]
  15454. },
  15455. "error": {
  15456. "$ref": "#/components/schemas/Session.StructuredError"
  15457. }
  15458. },
  15459. "required": [
  15460. "sessionID",
  15461. "error"
  15462. ],
  15463. "additionalProperties": false
  15464. }
  15465. },
  15466. "required": [
  15467. "id",
  15468. "created",
  15469. "type",
  15470. "durable",
  15471. "data"
  15472. ],
  15473. "additionalProperties": false
  15474. },
  15475. "session.execution.interrupted": {
  15476. "type": "object",
  15477. "properties": {
  15478. "id": {
  15479. "type": "string",
  15480. "allOf": [
  15481. {
  15482. "pattern": "^evt_"
  15483. }
  15484. ]
  15485. },
  15486. "created": {
  15487. "type": "number"
  15488. },
  15489. "metadata": {
  15490. "type": "object"
  15491. },
  15492. "type": {
  15493. "type": "string",
  15494. "enum": [
  15495. "session.execution.interrupted"
  15496. ]
  15497. },
  15498. "durable": {
  15499. "type": "object",
  15500. "properties": {
  15501. "aggregateID": {
  15502. "type": "string"
  15503. },
  15504. "seq": {
  15505. "type": "integer",
  15506. "allOf": [
  15507. {
  15508. "minimum": 0
  15509. }
  15510. ]
  15511. },
  15512. "version": {
  15513. "type": "number",
  15514. "enum": [
  15515. 1
  15516. ]
  15517. }
  15518. },
  15519. "required": [
  15520. "aggregateID",
  15521. "seq",
  15522. "version"
  15523. ],
  15524. "additionalProperties": false
  15525. },
  15526. "location": {
  15527. "$ref": "#/components/schemas/Location.Ref"
  15528. },
  15529. "data": {
  15530. "type": "object",
  15531. "properties": {
  15532. "sessionID": {
  15533. "type": "string",
  15534. "allOf": [
  15535. {
  15536. "pattern": "^ses"
  15537. }
  15538. ]
  15539. },
  15540. "reason": {
  15541. "type": "string",
  15542. "enum": [
  15543. "user",
  15544. "shutdown",
  15545. "superseded"
  15546. ]
  15547. }
  15548. },
  15549. "required": [
  15550. "sessionID",
  15551. "reason"
  15552. ],
  15553. "additionalProperties": false
  15554. }
  15555. },
  15556. "required": [
  15557. "id",
  15558. "created",
  15559. "type",
  15560. "durable",
  15561. "data"
  15562. ],
  15563. "additionalProperties": false
  15564. },
  15565. "session.instructions.updated": {
  15566. "type": "object",
  15567. "properties": {
  15568. "id": {
  15569. "type": "string",
  15570. "allOf": [
  15571. {
  15572. "pattern": "^evt_"
  15573. }
  15574. ]
  15575. },
  15576. "created": {
  15577. "type": "number"
  15578. },
  15579. "metadata": {
  15580. "type": "object"
  15581. },
  15582. "type": {
  15583. "type": "string",
  15584. "enum": [
  15585. "session.instructions.updated"
  15586. ]
  15587. },
  15588. "durable": {
  15589. "type": "object",
  15590. "properties": {
  15591. "aggregateID": {
  15592. "type": "string"
  15593. },
  15594. "seq": {
  15595. "type": "integer",
  15596. "allOf": [
  15597. {
  15598. "minimum": 0
  15599. }
  15600. ]
  15601. },
  15602. "version": {
  15603. "type": "number",
  15604. "enum": [
  15605. 2
  15606. ]
  15607. }
  15608. },
  15609. "required": [
  15610. "aggregateID",
  15611. "seq",
  15612. "version"
  15613. ],
  15614. "additionalProperties": false
  15615. },
  15616. "location": {
  15617. "$ref": "#/components/schemas/Location.Ref"
  15618. },
  15619. "data": {
  15620. "type": "object",
  15621. "properties": {
  15622. "sessionID": {
  15623. "type": "string",
  15624. "allOf": [
  15625. {
  15626. "pattern": "^ses"
  15627. }
  15628. ]
  15629. },
  15630. "delta": {
  15631. "type": "object",
  15632. "additionalProperties": {
  15633. "anyOf": [
  15634. {
  15635. "type": "string",
  15636. "allOf": [
  15637. {
  15638. "pattern": "^[a-f0-9]{64}$"
  15639. }
  15640. ]
  15641. },
  15642. {
  15643. "type": "string",
  15644. "enum": [
  15645. "removed"
  15646. ]
  15647. }
  15648. ]
  15649. }
  15650. }
  15651. },
  15652. "required": [
  15653. "sessionID",
  15654. "delta"
  15655. ],
  15656. "additionalProperties": false
  15657. }
  15658. },
  15659. "required": [
  15660. "id",
  15661. "created",
  15662. "type",
  15663. "durable",
  15664. "data"
  15665. ],
  15666. "additionalProperties": false
  15667. },
  15668. "session.synthetic": {
  15669. "type": "object",
  15670. "properties": {
  15671. "id": {
  15672. "type": "string",
  15673. "allOf": [
  15674. {
  15675. "pattern": "^evt_"
  15676. }
  15677. ]
  15678. },
  15679. "created": {
  15680. "type": "number"
  15681. },
  15682. "metadata": {
  15683. "type": "object"
  15684. },
  15685. "type": {
  15686. "type": "string",
  15687. "enum": [
  15688. "session.synthetic"
  15689. ]
  15690. },
  15691. "durable": {
  15692. "type": "object",
  15693. "properties": {
  15694. "aggregateID": {
  15695. "type": "string"
  15696. },
  15697. "seq": {
  15698. "type": "integer",
  15699. "allOf": [
  15700. {
  15701. "minimum": 0
  15702. }
  15703. ]
  15704. },
  15705. "version": {
  15706. "type": "number",
  15707. "enum": [
  15708. 1
  15709. ]
  15710. }
  15711. },
  15712. "required": [
  15713. "aggregateID",
  15714. "seq",
  15715. "version"
  15716. ],
  15717. "additionalProperties": false
  15718. },
  15719. "location": {
  15720. "$ref": "#/components/schemas/Location.Ref"
  15721. },
  15722. "data": {
  15723. "type": "object",
  15724. "properties": {
  15725. "sessionID": {
  15726. "type": "string",
  15727. "allOf": [
  15728. {
  15729. "pattern": "^ses"
  15730. }
  15731. ]
  15732. },
  15733. "text": {
  15734. "type": "string"
  15735. },
  15736. "description": {
  15737. "type": "string"
  15738. },
  15739. "metadata": {
  15740. "type": "object"
  15741. }
  15742. },
  15743. "required": [
  15744. "sessionID",
  15745. "text"
  15746. ],
  15747. "additionalProperties": false
  15748. }
  15749. },
  15750. "required": [
  15751. "id",
  15752. "created",
  15753. "type",
  15754. "durable",
  15755. "data"
  15756. ],
  15757. "additionalProperties": false
  15758. },
  15759. "session.skill.activated": {
  15760. "type": "object",
  15761. "properties": {
  15762. "id": {
  15763. "type": "string",
  15764. "allOf": [
  15765. {
  15766. "pattern": "^evt_"
  15767. }
  15768. ]
  15769. },
  15770. "created": {
  15771. "type": "number"
  15772. },
  15773. "metadata": {
  15774. "type": "object"
  15775. },
  15776. "type": {
  15777. "type": "string",
  15778. "enum": [
  15779. "session.skill.activated"
  15780. ]
  15781. },
  15782. "durable": {
  15783. "type": "object",
  15784. "properties": {
  15785. "aggregateID": {
  15786. "type": "string"
  15787. },
  15788. "seq": {
  15789. "type": "integer",
  15790. "allOf": [
  15791. {
  15792. "minimum": 0
  15793. }
  15794. ]
  15795. },
  15796. "version": {
  15797. "type": "number",
  15798. "enum": [
  15799. 1
  15800. ]
  15801. }
  15802. },
  15803. "required": [
  15804. "aggregateID",
  15805. "seq",
  15806. "version"
  15807. ],
  15808. "additionalProperties": false
  15809. },
  15810. "location": {
  15811. "$ref": "#/components/schemas/Location.Ref"
  15812. },
  15813. "data": {
  15814. "type": "object",
  15815. "properties": {
  15816. "sessionID": {
  15817. "type": "string",
  15818. "allOf": [
  15819. {
  15820. "pattern": "^ses"
  15821. }
  15822. ]
  15823. },
  15824. "id": {
  15825. "type": "string"
  15826. },
  15827. "name": {
  15828. "type": "string"
  15829. },
  15830. "text": {
  15831. "type": "string"
  15832. }
  15833. },
  15834. "required": [
  15835. "sessionID",
  15836. "id",
  15837. "name",
  15838. "text"
  15839. ],
  15840. "additionalProperties": false
  15841. }
  15842. },
  15843. "required": [
  15844. "id",
  15845. "created",
  15846. "type",
  15847. "durable",
  15848. "data"
  15849. ],
  15850. "additionalProperties": false
  15851. },
  15852. "Shell.Info": {
  15853. "type": "object",
  15854. "properties": {
  15855. "id": {
  15856. "type": "string",
  15857. "allOf": [
  15858. {
  15859. "pattern": "^sh_"
  15860. }
  15861. ]
  15862. },
  15863. "status": {
  15864. "type": "string",
  15865. "enum": [
  15866. "running",
  15867. "exited",
  15868. "timeout",
  15869. "killed"
  15870. ]
  15871. },
  15872. "command": {
  15873. "type": "string"
  15874. },
  15875. "cwd": {
  15876. "type": "string"
  15877. },
  15878. "shell": {
  15879. "type": "string"
  15880. },
  15881. "file": {
  15882. "type": "string"
  15883. },
  15884. "pid": {
  15885. "type": "integer",
  15886. "allOf": [
  15887. {
  15888. "minimum": 0
  15889. }
  15890. ]
  15891. },
  15892. "exit": {
  15893. "type": "number"
  15894. },
  15895. "metadata": {
  15896. "type": "object"
  15897. },
  15898. "time": {
  15899. "type": "object",
  15900. "properties": {
  15901. "started": {
  15902. "type": "number"
  15903. },
  15904. "completed": {
  15905. "type": "number"
  15906. }
  15907. },
  15908. "required": [
  15909. "started"
  15910. ],
  15911. "additionalProperties": false
  15912. }
  15913. },
  15914. "required": [
  15915. "id",
  15916. "status",
  15917. "command",
  15918. "cwd",
  15919. "shell",
  15920. "file",
  15921. "metadata",
  15922. "time"
  15923. ],
  15924. "additionalProperties": false
  15925. },
  15926. "session.shell.started": {
  15927. "type": "object",
  15928. "properties": {
  15929. "id": {
  15930. "type": "string",
  15931. "allOf": [
  15932. {
  15933. "pattern": "^evt_"
  15934. }
  15935. ]
  15936. },
  15937. "created": {
  15938. "type": "number"
  15939. },
  15940. "metadata": {
  15941. "type": "object"
  15942. },
  15943. "type": {
  15944. "type": "string",
  15945. "enum": [
  15946. "session.shell.started"
  15947. ]
  15948. },
  15949. "durable": {
  15950. "type": "object",
  15951. "properties": {
  15952. "aggregateID": {
  15953. "type": "string"
  15954. },
  15955. "seq": {
  15956. "type": "integer",
  15957. "allOf": [
  15958. {
  15959. "minimum": 0
  15960. }
  15961. ]
  15962. },
  15963. "version": {
  15964. "type": "number",
  15965. "enum": [
  15966. 1
  15967. ]
  15968. }
  15969. },
  15970. "required": [
  15971. "aggregateID",
  15972. "seq",
  15973. "version"
  15974. ],
  15975. "additionalProperties": false
  15976. },
  15977. "location": {
  15978. "$ref": "#/components/schemas/Location.Ref"
  15979. },
  15980. "data": {
  15981. "type": "object",
  15982. "properties": {
  15983. "sessionID": {
  15984. "type": "string",
  15985. "allOf": [
  15986. {
  15987. "pattern": "^ses"
  15988. }
  15989. ]
  15990. },
  15991. "shell": {
  15992. "$ref": "#/components/schemas/Shell.Info"
  15993. }
  15994. },
  15995. "required": [
  15996. "sessionID",
  15997. "shell"
  15998. ],
  15999. "additionalProperties": false
  16000. }
  16001. },
  16002. "required": [
  16003. "id",
  16004. "created",
  16005. "type",
  16006. "durable",
  16007. "data"
  16008. ],
  16009. "additionalProperties": false
  16010. },
  16011. "session.shell.ended": {
  16012. "type": "object",
  16013. "properties": {
  16014. "id": {
  16015. "type": "string",
  16016. "allOf": [
  16017. {
  16018. "pattern": "^evt_"
  16019. }
  16020. ]
  16021. },
  16022. "created": {
  16023. "type": "number"
  16024. },
  16025. "metadata": {
  16026. "type": "object"
  16027. },
  16028. "type": {
  16029. "type": "string",
  16030. "enum": [
  16031. "session.shell.ended"
  16032. ]
  16033. },
  16034. "durable": {
  16035. "type": "object",
  16036. "properties": {
  16037. "aggregateID": {
  16038. "type": "string"
  16039. },
  16040. "seq": {
  16041. "type": "integer",
  16042. "allOf": [
  16043. {
  16044. "minimum": 0
  16045. }
  16046. ]
  16047. },
  16048. "version": {
  16049. "type": "number",
  16050. "enum": [
  16051. 1
  16052. ]
  16053. }
  16054. },
  16055. "required": [
  16056. "aggregateID",
  16057. "seq",
  16058. "version"
  16059. ],
  16060. "additionalProperties": false
  16061. },
  16062. "location": {
  16063. "$ref": "#/components/schemas/Location.Ref"
  16064. },
  16065. "data": {
  16066. "type": "object",
  16067. "properties": {
  16068. "sessionID": {
  16069. "type": "string",
  16070. "allOf": [
  16071. {
  16072. "pattern": "^ses"
  16073. }
  16074. ]
  16075. },
  16076. "shell": {
  16077. "$ref": "#/components/schemas/Shell.Info"
  16078. },
  16079. "output": {
  16080. "type": "object",
  16081. "properties": {
  16082. "output": {
  16083. "type": "string"
  16084. },
  16085. "cursor": {
  16086. "type": "integer",
  16087. "allOf": [
  16088. {
  16089. "minimum": 0
  16090. }
  16091. ]
  16092. },
  16093. "size": {
  16094. "type": "integer",
  16095. "allOf": [
  16096. {
  16097. "minimum": 0
  16098. }
  16099. ]
  16100. },
  16101. "truncated": {
  16102. "type": "boolean"
  16103. }
  16104. },
  16105. "required": [
  16106. "output",
  16107. "cursor",
  16108. "size",
  16109. "truncated"
  16110. ],
  16111. "additionalProperties": false
  16112. }
  16113. },
  16114. "required": [
  16115. "sessionID",
  16116. "shell",
  16117. "output"
  16118. ],
  16119. "additionalProperties": false
  16120. }
  16121. },
  16122. "required": [
  16123. "id",
  16124. "created",
  16125. "type",
  16126. "durable",
  16127. "data"
  16128. ],
  16129. "additionalProperties": false
  16130. },
  16131. "session.step.started": {
  16132. "type": "object",
  16133. "properties": {
  16134. "id": {
  16135. "type": "string",
  16136. "allOf": [
  16137. {
  16138. "pattern": "^evt_"
  16139. }
  16140. ]
  16141. },
  16142. "created": {
  16143. "type": "number"
  16144. },
  16145. "metadata": {
  16146. "type": "object"
  16147. },
  16148. "type": {
  16149. "type": "string",
  16150. "enum": [
  16151. "session.step.started"
  16152. ]
  16153. },
  16154. "durable": {
  16155. "type": "object",
  16156. "properties": {
  16157. "aggregateID": {
  16158. "type": "string"
  16159. },
  16160. "seq": {
  16161. "type": "integer",
  16162. "allOf": [
  16163. {
  16164. "minimum": 0
  16165. }
  16166. ]
  16167. },
  16168. "version": {
  16169. "type": "number",
  16170. "enum": [
  16171. 1
  16172. ]
  16173. }
  16174. },
  16175. "required": [
  16176. "aggregateID",
  16177. "seq",
  16178. "version"
  16179. ],
  16180. "additionalProperties": false
  16181. },
  16182. "location": {
  16183. "$ref": "#/components/schemas/Location.Ref"
  16184. },
  16185. "data": {
  16186. "type": "object",
  16187. "properties": {
  16188. "sessionID": {
  16189. "type": "string",
  16190. "allOf": [
  16191. {
  16192. "pattern": "^ses"
  16193. }
  16194. ]
  16195. },
  16196. "assistantMessageID": {
  16197. "type": "string",
  16198. "allOf": [
  16199. {
  16200. "pattern": "^msg_"
  16201. }
  16202. ]
  16203. },
  16204. "agent": {
  16205. "type": "string"
  16206. },
  16207. "model": {
  16208. "$ref": "#/components/schemas/Model.Ref"
  16209. },
  16210. "snapshot": {
  16211. "type": "string"
  16212. }
  16213. },
  16214. "required": [
  16215. "sessionID",
  16216. "assistantMessageID",
  16217. "agent",
  16218. "model"
  16219. ],
  16220. "additionalProperties": false
  16221. }
  16222. },
  16223. "required": [
  16224. "id",
  16225. "created",
  16226. "type",
  16227. "durable",
  16228. "data"
  16229. ],
  16230. "additionalProperties": false
  16231. },
  16232. "session.step.ended": {
  16233. "type": "object",
  16234. "properties": {
  16235. "id": {
  16236. "type": "string",
  16237. "allOf": [
  16238. {
  16239. "pattern": "^evt_"
  16240. }
  16241. ]
  16242. },
  16243. "created": {
  16244. "type": "number"
  16245. },
  16246. "metadata": {
  16247. "type": "object"
  16248. },
  16249. "type": {
  16250. "type": "string",
  16251. "enum": [
  16252. "session.step.ended"
  16253. ]
  16254. },
  16255. "durable": {
  16256. "type": "object",
  16257. "properties": {
  16258. "aggregateID": {
  16259. "type": "string"
  16260. },
  16261. "seq": {
  16262. "type": "integer",
  16263. "allOf": [
  16264. {
  16265. "minimum": 0
  16266. }
  16267. ]
  16268. },
  16269. "version": {
  16270. "type": "number",
  16271. "enum": [
  16272. 1
  16273. ]
  16274. }
  16275. },
  16276. "required": [
  16277. "aggregateID",
  16278. "seq",
  16279. "version"
  16280. ],
  16281. "additionalProperties": false
  16282. },
  16283. "location": {
  16284. "$ref": "#/components/schemas/Location.Ref"
  16285. },
  16286. "data": {
  16287. "type": "object",
  16288. "properties": {
  16289. "sessionID": {
  16290. "type": "string",
  16291. "allOf": [
  16292. {
  16293. "pattern": "^ses"
  16294. }
  16295. ]
  16296. },
  16297. "assistantMessageID": {
  16298. "type": "string",
  16299. "allOf": [
  16300. {
  16301. "pattern": "^msg_"
  16302. }
  16303. ]
  16304. },
  16305. "finish": {
  16306. "type": "string",
  16307. "enum": [
  16308. "stop",
  16309. "length",
  16310. "tool-calls",
  16311. "content-filter",
  16312. "error",
  16313. "unknown"
  16314. ]
  16315. },
  16316. "cost": {
  16317. "$ref": "#/components/schemas/Money.USD"
  16318. },
  16319. "tokens": {
  16320. "$ref": "#/components/schemas/TokenUsage.Info"
  16321. },
  16322. "snapshot": {
  16323. "type": "string"
  16324. },
  16325. "files": {
  16326. "type": "array",
  16327. "items": {
  16328. "type": "string"
  16329. }
  16330. }
  16331. },
  16332. "required": [
  16333. "sessionID",
  16334. "assistantMessageID",
  16335. "finish",
  16336. "cost",
  16337. "tokens"
  16338. ],
  16339. "additionalProperties": false
  16340. }
  16341. },
  16342. "required": [
  16343. "id",
  16344. "created",
  16345. "type",
  16346. "durable",
  16347. "data"
  16348. ],
  16349. "additionalProperties": false
  16350. },
  16351. "session.step.failed": {
  16352. "type": "object",
  16353. "properties": {
  16354. "id": {
  16355. "type": "string",
  16356. "allOf": [
  16357. {
  16358. "pattern": "^evt_"
  16359. }
  16360. ]
  16361. },
  16362. "created": {
  16363. "type": "number"
  16364. },
  16365. "metadata": {
  16366. "type": "object"
  16367. },
  16368. "type": {
  16369. "type": "string",
  16370. "enum": [
  16371. "session.step.failed"
  16372. ]
  16373. },
  16374. "durable": {
  16375. "type": "object",
  16376. "properties": {
  16377. "aggregateID": {
  16378. "type": "string"
  16379. },
  16380. "seq": {
  16381. "type": "integer",
  16382. "allOf": [
  16383. {
  16384. "minimum": 0
  16385. }
  16386. ]
  16387. },
  16388. "version": {
  16389. "type": "number",
  16390. "enum": [
  16391. 1
  16392. ]
  16393. }
  16394. },
  16395. "required": [
  16396. "aggregateID",
  16397. "seq",
  16398. "version"
  16399. ],
  16400. "additionalProperties": false
  16401. },
  16402. "location": {
  16403. "$ref": "#/components/schemas/Location.Ref"
  16404. },
  16405. "data": {
  16406. "type": "object",
  16407. "properties": {
  16408. "sessionID": {
  16409. "type": "string",
  16410. "allOf": [
  16411. {
  16412. "pattern": "^ses"
  16413. }
  16414. ]
  16415. },
  16416. "assistantMessageID": {
  16417. "type": "string",
  16418. "allOf": [
  16419. {
  16420. "pattern": "^msg_"
  16421. }
  16422. ]
  16423. },
  16424. "error": {
  16425. "$ref": "#/components/schemas/Session.StructuredError"
  16426. },
  16427. "cost": {
  16428. "$ref": "#/components/schemas/Money.USD"
  16429. },
  16430. "tokens": {
  16431. "$ref": "#/components/schemas/TokenUsage.Info"
  16432. },
  16433. "snapshot": {
  16434. "type": "string"
  16435. },
  16436. "files": {
  16437. "type": "array",
  16438. "items": {
  16439. "type": "string"
  16440. }
  16441. }
  16442. },
  16443. "required": [
  16444. "sessionID",
  16445. "assistantMessageID",
  16446. "error"
  16447. ],
  16448. "additionalProperties": false
  16449. }
  16450. },
  16451. "required": [
  16452. "id",
  16453. "created",
  16454. "type",
  16455. "durable",
  16456. "data"
  16457. ],
  16458. "additionalProperties": false
  16459. },
  16460. "session.text.started": {
  16461. "type": "object",
  16462. "properties": {
  16463. "id": {
  16464. "type": "string",
  16465. "allOf": [
  16466. {
  16467. "pattern": "^evt_"
  16468. }
  16469. ]
  16470. },
  16471. "created": {
  16472. "type": "number"
  16473. },
  16474. "metadata": {
  16475. "type": "object"
  16476. },
  16477. "type": {
  16478. "type": "string",
  16479. "enum": [
  16480. "session.text.started"
  16481. ]
  16482. },
  16483. "durable": {
  16484. "type": "object",
  16485. "properties": {
  16486. "aggregateID": {
  16487. "type": "string"
  16488. },
  16489. "seq": {
  16490. "type": "integer",
  16491. "allOf": [
  16492. {
  16493. "minimum": 0
  16494. }
  16495. ]
  16496. },
  16497. "version": {
  16498. "type": "number",
  16499. "enum": [
  16500. 1
  16501. ]
  16502. }
  16503. },
  16504. "required": [
  16505. "aggregateID",
  16506. "seq",
  16507. "version"
  16508. ],
  16509. "additionalProperties": false
  16510. },
  16511. "location": {
  16512. "$ref": "#/components/schemas/Location.Ref"
  16513. },
  16514. "data": {
  16515. "type": "object",
  16516. "properties": {
  16517. "sessionID": {
  16518. "type": "string",
  16519. "allOf": [
  16520. {
  16521. "pattern": "^ses"
  16522. }
  16523. ]
  16524. },
  16525. "assistantMessageID": {
  16526. "type": "string",
  16527. "allOf": [
  16528. {
  16529. "pattern": "^msg_"
  16530. }
  16531. ]
  16532. },
  16533. "ordinal": {
  16534. "type": "integer",
  16535. "allOf": [
  16536. {
  16537. "minimum": 0
  16538. }
  16539. ]
  16540. }
  16541. },
  16542. "required": [
  16543. "sessionID",
  16544. "assistantMessageID",
  16545. "ordinal"
  16546. ],
  16547. "additionalProperties": false
  16548. }
  16549. },
  16550. "required": [
  16551. "id",
  16552. "created",
  16553. "type",
  16554. "durable",
  16555. "data"
  16556. ],
  16557. "additionalProperties": false
  16558. },
  16559. "Session.Message.ProviderState4": {
  16560. "type": "object"
  16561. },
  16562. "session.text.ended": {
  16563. "type": "object",
  16564. "properties": {
  16565. "id": {
  16566. "type": "string",
  16567. "allOf": [
  16568. {
  16569. "pattern": "^evt_"
  16570. }
  16571. ]
  16572. },
  16573. "created": {
  16574. "type": "number"
  16575. },
  16576. "metadata": {
  16577. "type": "object"
  16578. },
  16579. "type": {
  16580. "type": "string",
  16581. "enum": [
  16582. "session.text.ended"
  16583. ]
  16584. },
  16585. "durable": {
  16586. "type": "object",
  16587. "properties": {
  16588. "aggregateID": {
  16589. "type": "string"
  16590. },
  16591. "seq": {
  16592. "type": "integer",
  16593. "allOf": [
  16594. {
  16595. "minimum": 0
  16596. }
  16597. ]
  16598. },
  16599. "version": {
  16600. "type": "number",
  16601. "enum": [
  16602. 1
  16603. ]
  16604. }
  16605. },
  16606. "required": [
  16607. "aggregateID",
  16608. "seq",
  16609. "version"
  16610. ],
  16611. "additionalProperties": false
  16612. },
  16613. "location": {
  16614. "$ref": "#/components/schemas/Location.Ref"
  16615. },
  16616. "data": {
  16617. "type": "object",
  16618. "properties": {
  16619. "sessionID": {
  16620. "type": "string",
  16621. "allOf": [
  16622. {
  16623. "pattern": "^ses"
  16624. }
  16625. ]
  16626. },
  16627. "assistantMessageID": {
  16628. "type": "string",
  16629. "allOf": [
  16630. {
  16631. "pattern": "^msg_"
  16632. }
  16633. ]
  16634. },
  16635. "ordinal": {
  16636. "type": "integer",
  16637. "allOf": [
  16638. {
  16639. "minimum": 0
  16640. }
  16641. ]
  16642. },
  16643. "text": {
  16644. "type": "string"
  16645. },
  16646. "state": {
  16647. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  16648. }
  16649. },
  16650. "required": [
  16651. "sessionID",
  16652. "assistantMessageID",
  16653. "ordinal",
  16654. "text"
  16655. ],
  16656. "additionalProperties": false
  16657. }
  16658. },
  16659. "required": [
  16660. "id",
  16661. "created",
  16662. "type",
  16663. "durable",
  16664. "data"
  16665. ],
  16666. "additionalProperties": false
  16667. },
  16668. "Session.Message.ProviderState5": {
  16669. "type": "object"
  16670. },
  16671. "session.reasoning.started": {
  16672. "type": "object",
  16673. "properties": {
  16674. "id": {
  16675. "type": "string",
  16676. "allOf": [
  16677. {
  16678. "pattern": "^evt_"
  16679. }
  16680. ]
  16681. },
  16682. "created": {
  16683. "type": "number"
  16684. },
  16685. "metadata": {
  16686. "type": "object"
  16687. },
  16688. "type": {
  16689. "type": "string",
  16690. "enum": [
  16691. "session.reasoning.started"
  16692. ]
  16693. },
  16694. "durable": {
  16695. "type": "object",
  16696. "properties": {
  16697. "aggregateID": {
  16698. "type": "string"
  16699. },
  16700. "seq": {
  16701. "type": "integer",
  16702. "allOf": [
  16703. {
  16704. "minimum": 0
  16705. }
  16706. ]
  16707. },
  16708. "version": {
  16709. "type": "number",
  16710. "enum": [
  16711. 1
  16712. ]
  16713. }
  16714. },
  16715. "required": [
  16716. "aggregateID",
  16717. "seq",
  16718. "version"
  16719. ],
  16720. "additionalProperties": false
  16721. },
  16722. "location": {
  16723. "$ref": "#/components/schemas/Location.Ref"
  16724. },
  16725. "data": {
  16726. "type": "object",
  16727. "properties": {
  16728. "sessionID": {
  16729. "type": "string",
  16730. "allOf": [
  16731. {
  16732. "pattern": "^ses"
  16733. }
  16734. ]
  16735. },
  16736. "assistantMessageID": {
  16737. "type": "string",
  16738. "allOf": [
  16739. {
  16740. "pattern": "^msg_"
  16741. }
  16742. ]
  16743. },
  16744. "ordinal": {
  16745. "type": "integer",
  16746. "allOf": [
  16747. {
  16748. "minimum": 0
  16749. }
  16750. ]
  16751. },
  16752. "state": {
  16753. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  16754. }
  16755. },
  16756. "required": [
  16757. "sessionID",
  16758. "assistantMessageID",
  16759. "ordinal"
  16760. ],
  16761. "additionalProperties": false
  16762. }
  16763. },
  16764. "required": [
  16765. "id",
  16766. "created",
  16767. "type",
  16768. "durable",
  16769. "data"
  16770. ],
  16771. "additionalProperties": false
  16772. },
  16773. "Session.Message.ProviderState6": {
  16774. "type": "object"
  16775. },
  16776. "session.reasoning.ended": {
  16777. "type": "object",
  16778. "properties": {
  16779. "id": {
  16780. "type": "string",
  16781. "allOf": [
  16782. {
  16783. "pattern": "^evt_"
  16784. }
  16785. ]
  16786. },
  16787. "created": {
  16788. "type": "number"
  16789. },
  16790. "metadata": {
  16791. "type": "object"
  16792. },
  16793. "type": {
  16794. "type": "string",
  16795. "enum": [
  16796. "session.reasoning.ended"
  16797. ]
  16798. },
  16799. "durable": {
  16800. "type": "object",
  16801. "properties": {
  16802. "aggregateID": {
  16803. "type": "string"
  16804. },
  16805. "seq": {
  16806. "type": "integer",
  16807. "allOf": [
  16808. {
  16809. "minimum": 0
  16810. }
  16811. ]
  16812. },
  16813. "version": {
  16814. "type": "number",
  16815. "enum": [
  16816. 1
  16817. ]
  16818. }
  16819. },
  16820. "required": [
  16821. "aggregateID",
  16822. "seq",
  16823. "version"
  16824. ],
  16825. "additionalProperties": false
  16826. },
  16827. "location": {
  16828. "$ref": "#/components/schemas/Location.Ref"
  16829. },
  16830. "data": {
  16831. "type": "object",
  16832. "properties": {
  16833. "sessionID": {
  16834. "type": "string",
  16835. "allOf": [
  16836. {
  16837. "pattern": "^ses"
  16838. }
  16839. ]
  16840. },
  16841. "assistantMessageID": {
  16842. "type": "string",
  16843. "allOf": [
  16844. {
  16845. "pattern": "^msg_"
  16846. }
  16847. ]
  16848. },
  16849. "ordinal": {
  16850. "type": "integer",
  16851. "allOf": [
  16852. {
  16853. "minimum": 0
  16854. }
  16855. ]
  16856. },
  16857. "text": {
  16858. "type": "string"
  16859. },
  16860. "state": {
  16861. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  16862. }
  16863. },
  16864. "required": [
  16865. "sessionID",
  16866. "assistantMessageID",
  16867. "ordinal",
  16868. "text"
  16869. ],
  16870. "additionalProperties": false
  16871. }
  16872. },
  16873. "required": [
  16874. "id",
  16875. "created",
  16876. "type",
  16877. "durable",
  16878. "data"
  16879. ],
  16880. "additionalProperties": false
  16881. },
  16882. "session.tool.input.started": {
  16883. "type": "object",
  16884. "properties": {
  16885. "id": {
  16886. "type": "string",
  16887. "allOf": [
  16888. {
  16889. "pattern": "^evt_"
  16890. }
  16891. ]
  16892. },
  16893. "created": {
  16894. "type": "number"
  16895. },
  16896. "metadata": {
  16897. "type": "object"
  16898. },
  16899. "type": {
  16900. "type": "string",
  16901. "enum": [
  16902. "session.tool.input.started"
  16903. ]
  16904. },
  16905. "durable": {
  16906. "type": "object",
  16907. "properties": {
  16908. "aggregateID": {
  16909. "type": "string"
  16910. },
  16911. "seq": {
  16912. "type": "integer",
  16913. "allOf": [
  16914. {
  16915. "minimum": 0
  16916. }
  16917. ]
  16918. },
  16919. "version": {
  16920. "type": "number",
  16921. "enum": [
  16922. 1
  16923. ]
  16924. }
  16925. },
  16926. "required": [
  16927. "aggregateID",
  16928. "seq",
  16929. "version"
  16930. ],
  16931. "additionalProperties": false
  16932. },
  16933. "location": {
  16934. "$ref": "#/components/schemas/Location.Ref"
  16935. },
  16936. "data": {
  16937. "type": "object",
  16938. "properties": {
  16939. "sessionID": {
  16940. "type": "string",
  16941. "allOf": [
  16942. {
  16943. "pattern": "^ses"
  16944. }
  16945. ]
  16946. },
  16947. "assistantMessageID": {
  16948. "type": "string",
  16949. "allOf": [
  16950. {
  16951. "pattern": "^msg_"
  16952. }
  16953. ]
  16954. },
  16955. "callID": {
  16956. "type": "string"
  16957. },
  16958. "name": {
  16959. "type": "string"
  16960. }
  16961. },
  16962. "required": [
  16963. "sessionID",
  16964. "assistantMessageID",
  16965. "callID",
  16966. "name"
  16967. ],
  16968. "additionalProperties": false
  16969. }
  16970. },
  16971. "required": [
  16972. "id",
  16973. "created",
  16974. "type",
  16975. "durable",
  16976. "data"
  16977. ],
  16978. "additionalProperties": false
  16979. },
  16980. "session.tool.input.ended": {
  16981. "type": "object",
  16982. "properties": {
  16983. "id": {
  16984. "type": "string",
  16985. "allOf": [
  16986. {
  16987. "pattern": "^evt_"
  16988. }
  16989. ]
  16990. },
  16991. "created": {
  16992. "type": "number"
  16993. },
  16994. "metadata": {
  16995. "type": "object"
  16996. },
  16997. "type": {
  16998. "type": "string",
  16999. "enum": [
  17000. "session.tool.input.ended"
  17001. ]
  17002. },
  17003. "durable": {
  17004. "type": "object",
  17005. "properties": {
  17006. "aggregateID": {
  17007. "type": "string"
  17008. },
  17009. "seq": {
  17010. "type": "integer",
  17011. "allOf": [
  17012. {
  17013. "minimum": 0
  17014. }
  17015. ]
  17016. },
  17017. "version": {
  17018. "type": "number",
  17019. "enum": [
  17020. 1
  17021. ]
  17022. }
  17023. },
  17024. "required": [
  17025. "aggregateID",
  17026. "seq",
  17027. "version"
  17028. ],
  17029. "additionalProperties": false
  17030. },
  17031. "location": {
  17032. "$ref": "#/components/schemas/Location.Ref"
  17033. },
  17034. "data": {
  17035. "type": "object",
  17036. "properties": {
  17037. "sessionID": {
  17038. "type": "string",
  17039. "allOf": [
  17040. {
  17041. "pattern": "^ses"
  17042. }
  17043. ]
  17044. },
  17045. "assistantMessageID": {
  17046. "type": "string",
  17047. "allOf": [
  17048. {
  17049. "pattern": "^msg_"
  17050. }
  17051. ]
  17052. },
  17053. "callID": {
  17054. "type": "string"
  17055. },
  17056. "text": {
  17057. "type": "string"
  17058. }
  17059. },
  17060. "required": [
  17061. "sessionID",
  17062. "assistantMessageID",
  17063. "callID",
  17064. "text"
  17065. ],
  17066. "additionalProperties": false
  17067. }
  17068. },
  17069. "required": [
  17070. "id",
  17071. "created",
  17072. "type",
  17073. "durable",
  17074. "data"
  17075. ],
  17076. "additionalProperties": false
  17077. },
  17078. "Session.Message.ProviderState7": {
  17079. "type": "object"
  17080. },
  17081. "session.tool.called": {
  17082. "type": "object",
  17083. "properties": {
  17084. "id": {
  17085. "type": "string",
  17086. "allOf": [
  17087. {
  17088. "pattern": "^evt_"
  17089. }
  17090. ]
  17091. },
  17092. "created": {
  17093. "type": "number"
  17094. },
  17095. "metadata": {
  17096. "type": "object"
  17097. },
  17098. "type": {
  17099. "type": "string",
  17100. "enum": [
  17101. "session.tool.called"
  17102. ]
  17103. },
  17104. "durable": {
  17105. "type": "object",
  17106. "properties": {
  17107. "aggregateID": {
  17108. "type": "string"
  17109. },
  17110. "seq": {
  17111. "type": "integer",
  17112. "allOf": [
  17113. {
  17114. "minimum": 0
  17115. }
  17116. ]
  17117. },
  17118. "version": {
  17119. "type": "number",
  17120. "enum": [
  17121. 1
  17122. ]
  17123. }
  17124. },
  17125. "required": [
  17126. "aggregateID",
  17127. "seq",
  17128. "version"
  17129. ],
  17130. "additionalProperties": false
  17131. },
  17132. "location": {
  17133. "$ref": "#/components/schemas/Location.Ref"
  17134. },
  17135. "data": {
  17136. "type": "object",
  17137. "properties": {
  17138. "sessionID": {
  17139. "type": "string",
  17140. "allOf": [
  17141. {
  17142. "pattern": "^ses"
  17143. }
  17144. ]
  17145. },
  17146. "assistantMessageID": {
  17147. "type": "string",
  17148. "allOf": [
  17149. {
  17150. "pattern": "^msg_"
  17151. }
  17152. ]
  17153. },
  17154. "callID": {
  17155. "type": "string"
  17156. },
  17157. "input": {
  17158. "type": "object"
  17159. },
  17160. "executed": {
  17161. "type": "boolean"
  17162. },
  17163. "state": {
  17164. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  17165. }
  17166. },
  17167. "required": [
  17168. "sessionID",
  17169. "assistantMessageID",
  17170. "callID",
  17171. "input",
  17172. "executed"
  17173. ],
  17174. "additionalProperties": false
  17175. }
  17176. },
  17177. "required": [
  17178. "id",
  17179. "created",
  17180. "type",
  17181. "durable",
  17182. "data"
  17183. ],
  17184. "additionalProperties": false
  17185. },
  17186. "Tool.FileContent1": {
  17187. "type": "object",
  17188. "properties": {
  17189. "type": {
  17190. "type": "string",
  17191. "enum": [
  17192. "file"
  17193. ]
  17194. },
  17195. "uri": {
  17196. "type": "string"
  17197. },
  17198. "mime": {
  17199. "type": "string"
  17200. },
  17201. "name": {
  17202. "anyOf": [
  17203. {
  17204. "type": "string"
  17205. },
  17206. {
  17207. "type": "null"
  17208. }
  17209. ]
  17210. }
  17211. },
  17212. "required": [
  17213. "type",
  17214. "uri",
  17215. "mime"
  17216. ],
  17217. "additionalProperties": false
  17218. },
  17219. "Tool.Content1": {
  17220. "anyOf": [
  17221. {
  17222. "$ref": "#/components/schemas/Tool.TextContent"
  17223. },
  17224. {
  17225. "$ref": "#/components/schemas/Tool.FileContent1"
  17226. }
  17227. ]
  17228. },
  17229. "Session.Message.ProviderState8": {
  17230. "type": "object"
  17231. },
  17232. "session.tool.success": {
  17233. "type": "object",
  17234. "properties": {
  17235. "id": {
  17236. "type": "string",
  17237. "allOf": [
  17238. {
  17239. "pattern": "^evt_"
  17240. }
  17241. ]
  17242. },
  17243. "created": {
  17244. "type": "number"
  17245. },
  17246. "metadata": {
  17247. "type": "object"
  17248. },
  17249. "type": {
  17250. "type": "string",
  17251. "enum": [
  17252. "session.tool.success"
  17253. ]
  17254. },
  17255. "durable": {
  17256. "type": "object",
  17257. "properties": {
  17258. "aggregateID": {
  17259. "type": "string"
  17260. },
  17261. "seq": {
  17262. "type": "integer",
  17263. "allOf": [
  17264. {
  17265. "minimum": 0
  17266. }
  17267. ]
  17268. },
  17269. "version": {
  17270. "type": "number",
  17271. "enum": [
  17272. 2
  17273. ]
  17274. }
  17275. },
  17276. "required": [
  17277. "aggregateID",
  17278. "seq",
  17279. "version"
  17280. ],
  17281. "additionalProperties": false
  17282. },
  17283. "location": {
  17284. "$ref": "#/components/schemas/Location.Ref"
  17285. },
  17286. "data": {
  17287. "type": "object",
  17288. "properties": {
  17289. "sessionID": {
  17290. "type": "string",
  17291. "allOf": [
  17292. {
  17293. "pattern": "^ses"
  17294. }
  17295. ]
  17296. },
  17297. "assistantMessageID": {
  17298. "type": "string",
  17299. "allOf": [
  17300. {
  17301. "pattern": "^msg_"
  17302. }
  17303. ]
  17304. },
  17305. "callID": {
  17306. "type": "string"
  17307. },
  17308. "content": {
  17309. "type": "array",
  17310. "prefixItems": [
  17311. {
  17312. "$ref": "#/components/schemas/Tool.Content1"
  17313. }
  17314. ],
  17315. "minItems": 1,
  17316. "items": {
  17317. "$ref": "#/components/schemas/Tool.Content1"
  17318. }
  17319. },
  17320. "metadata": {
  17321. "type": "object"
  17322. },
  17323. "executed": {
  17324. "type": "boolean"
  17325. },
  17326. "resultState": {
  17327. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  17328. }
  17329. },
  17330. "required": [
  17331. "sessionID",
  17332. "assistantMessageID",
  17333. "callID",
  17334. "content",
  17335. "executed"
  17336. ],
  17337. "additionalProperties": false
  17338. }
  17339. },
  17340. "required": [
  17341. "id",
  17342. "created",
  17343. "type",
  17344. "durable",
  17345. "data"
  17346. ],
  17347. "additionalProperties": false
  17348. },
  17349. "Session.Message.ProviderState9": {
  17350. "type": "object"
  17351. },
  17352. "session.tool.failed": {
  17353. "type": "object",
  17354. "properties": {
  17355. "id": {
  17356. "type": "string",
  17357. "allOf": [
  17358. {
  17359. "pattern": "^evt_"
  17360. }
  17361. ]
  17362. },
  17363. "created": {
  17364. "type": "number"
  17365. },
  17366. "metadata": {
  17367. "type": "object"
  17368. },
  17369. "type": {
  17370. "type": "string",
  17371. "enum": [
  17372. "session.tool.failed"
  17373. ]
  17374. },
  17375. "durable": {
  17376. "type": "object",
  17377. "properties": {
  17378. "aggregateID": {
  17379. "type": "string"
  17380. },
  17381. "seq": {
  17382. "type": "integer",
  17383. "allOf": [
  17384. {
  17385. "minimum": 0
  17386. }
  17387. ]
  17388. },
  17389. "version": {
  17390. "type": "number",
  17391. "enum": [
  17392. 2
  17393. ]
  17394. }
  17395. },
  17396. "required": [
  17397. "aggregateID",
  17398. "seq",
  17399. "version"
  17400. ],
  17401. "additionalProperties": false
  17402. },
  17403. "location": {
  17404. "$ref": "#/components/schemas/Location.Ref"
  17405. },
  17406. "data": {
  17407. "type": "object",
  17408. "properties": {
  17409. "sessionID": {
  17410. "type": "string",
  17411. "allOf": [
  17412. {
  17413. "pattern": "^ses"
  17414. }
  17415. ]
  17416. },
  17417. "assistantMessageID": {
  17418. "type": "string",
  17419. "allOf": [
  17420. {
  17421. "pattern": "^msg_"
  17422. }
  17423. ]
  17424. },
  17425. "callID": {
  17426. "type": "string"
  17427. },
  17428. "error": {
  17429. "$ref": "#/components/schemas/Session.StructuredError"
  17430. },
  17431. "content": {
  17432. "type": "array",
  17433. "prefixItems": [
  17434. {
  17435. "$ref": "#/components/schemas/Tool.Content1"
  17436. }
  17437. ],
  17438. "minItems": 1,
  17439. "items": {
  17440. "$ref": "#/components/schemas/Tool.Content1"
  17441. }
  17442. },
  17443. "metadata": {
  17444. "type": "object"
  17445. },
  17446. "executed": {
  17447. "type": "boolean"
  17448. },
  17449. "resultState": {
  17450. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  17451. }
  17452. },
  17453. "required": [
  17454. "sessionID",
  17455. "assistantMessageID",
  17456. "callID",
  17457. "error",
  17458. "executed"
  17459. ],
  17460. "additionalProperties": false
  17461. }
  17462. },
  17463. "required": [
  17464. "id",
  17465. "created",
  17466. "type",
  17467. "durable",
  17468. "data"
  17469. ],
  17470. "additionalProperties": false
  17471. },
  17472. "session.retry.scheduled": {
  17473. "type": "object",
  17474. "properties": {
  17475. "id": {
  17476. "type": "string",
  17477. "allOf": [
  17478. {
  17479. "pattern": "^evt_"
  17480. }
  17481. ]
  17482. },
  17483. "created": {
  17484. "type": "number"
  17485. },
  17486. "metadata": {
  17487. "type": "object"
  17488. },
  17489. "type": {
  17490. "type": "string",
  17491. "enum": [
  17492. "session.retry.scheduled"
  17493. ]
  17494. },
  17495. "durable": {
  17496. "type": "object",
  17497. "properties": {
  17498. "aggregateID": {
  17499. "type": "string"
  17500. },
  17501. "seq": {
  17502. "type": "integer",
  17503. "allOf": [
  17504. {
  17505. "minimum": 0
  17506. }
  17507. ]
  17508. },
  17509. "version": {
  17510. "type": "number",
  17511. "enum": [
  17512. 1
  17513. ]
  17514. }
  17515. },
  17516. "required": [
  17517. "aggregateID",
  17518. "seq",
  17519. "version"
  17520. ],
  17521. "additionalProperties": false
  17522. },
  17523. "location": {
  17524. "$ref": "#/components/schemas/Location.Ref"
  17525. },
  17526. "data": {
  17527. "type": "object",
  17528. "properties": {
  17529. "sessionID": {
  17530. "type": "string",
  17531. "allOf": [
  17532. {
  17533. "pattern": "^ses"
  17534. }
  17535. ]
  17536. },
  17537. "assistantMessageID": {
  17538. "type": "string",
  17539. "allOf": [
  17540. {
  17541. "pattern": "^msg_"
  17542. }
  17543. ]
  17544. },
  17545. "attempt": {
  17546. "type": "integer",
  17547. "allOf": [
  17548. {
  17549. "exclusiveMinimum": 0
  17550. }
  17551. ]
  17552. },
  17553. "at": {
  17554. "type": "integer",
  17555. "allOf": [
  17556. {
  17557. "minimum": 0
  17558. }
  17559. ]
  17560. },
  17561. "error": {
  17562. "$ref": "#/components/schemas/Session.StructuredError"
  17563. }
  17564. },
  17565. "required": [
  17566. "sessionID",
  17567. "assistantMessageID",
  17568. "attempt",
  17569. "at",
  17570. "error"
  17571. ],
  17572. "additionalProperties": false
  17573. }
  17574. },
  17575. "required": [
  17576. "id",
  17577. "created",
  17578. "type",
  17579. "durable",
  17580. "data"
  17581. ],
  17582. "additionalProperties": false
  17583. },
  17584. "session.compaction.admitted": {
  17585. "type": "object",
  17586. "properties": {
  17587. "id": {
  17588. "type": "string",
  17589. "allOf": [
  17590. {
  17591. "pattern": "^evt_"
  17592. }
  17593. ]
  17594. },
  17595. "created": {
  17596. "type": "number"
  17597. },
  17598. "metadata": {
  17599. "type": "object"
  17600. },
  17601. "type": {
  17602. "type": "string",
  17603. "enum": [
  17604. "session.compaction.admitted"
  17605. ]
  17606. },
  17607. "durable": {
  17608. "type": "object",
  17609. "properties": {
  17610. "aggregateID": {
  17611. "type": "string"
  17612. },
  17613. "seq": {
  17614. "type": "integer",
  17615. "allOf": [
  17616. {
  17617. "minimum": 0
  17618. }
  17619. ]
  17620. },
  17621. "version": {
  17622. "type": "number",
  17623. "enum": [
  17624. 1
  17625. ]
  17626. }
  17627. },
  17628. "required": [
  17629. "aggregateID",
  17630. "seq",
  17631. "version"
  17632. ],
  17633. "additionalProperties": false
  17634. },
  17635. "location": {
  17636. "$ref": "#/components/schemas/Location.Ref"
  17637. },
  17638. "data": {
  17639. "type": "object",
  17640. "properties": {
  17641. "sessionID": {
  17642. "type": "string",
  17643. "allOf": [
  17644. {
  17645. "pattern": "^ses"
  17646. }
  17647. ]
  17648. },
  17649. "inputID": {
  17650. "type": "string",
  17651. "allOf": [
  17652. {
  17653. "pattern": "^msg_"
  17654. }
  17655. ]
  17656. }
  17657. },
  17658. "required": [
  17659. "sessionID",
  17660. "inputID"
  17661. ],
  17662. "additionalProperties": false
  17663. }
  17664. },
  17665. "required": [
  17666. "id",
  17667. "created",
  17668. "type",
  17669. "durable",
  17670. "data"
  17671. ],
  17672. "additionalProperties": false
  17673. },
  17674. "session.compaction.started": {
  17675. "type": "object",
  17676. "properties": {
  17677. "id": {
  17678. "type": "string",
  17679. "allOf": [
  17680. {
  17681. "pattern": "^evt_"
  17682. }
  17683. ]
  17684. },
  17685. "created": {
  17686. "type": "number"
  17687. },
  17688. "metadata": {
  17689. "type": "object"
  17690. },
  17691. "type": {
  17692. "type": "string",
  17693. "enum": [
  17694. "session.compaction.started"
  17695. ]
  17696. },
  17697. "durable": {
  17698. "type": "object",
  17699. "properties": {
  17700. "aggregateID": {
  17701. "type": "string"
  17702. },
  17703. "seq": {
  17704. "type": "integer",
  17705. "allOf": [
  17706. {
  17707. "minimum": 0
  17708. }
  17709. ]
  17710. },
  17711. "version": {
  17712. "type": "number",
  17713. "enum": [
  17714. 1
  17715. ]
  17716. }
  17717. },
  17718. "required": [
  17719. "aggregateID",
  17720. "seq",
  17721. "version"
  17722. ],
  17723. "additionalProperties": false
  17724. },
  17725. "location": {
  17726. "$ref": "#/components/schemas/Location.Ref"
  17727. },
  17728. "data": {
  17729. "type": "object",
  17730. "properties": {
  17731. "sessionID": {
  17732. "type": "string",
  17733. "allOf": [
  17734. {
  17735. "pattern": "^ses"
  17736. }
  17737. ]
  17738. },
  17739. "reason": {
  17740. "type": "string",
  17741. "enum": [
  17742. "auto",
  17743. "manual"
  17744. ]
  17745. },
  17746. "recent": {
  17747. "type": "string"
  17748. },
  17749. "inputID": {
  17750. "type": "string",
  17751. "allOf": [
  17752. {
  17753. "pattern": "^msg_"
  17754. }
  17755. ]
  17756. }
  17757. },
  17758. "required": [
  17759. "sessionID",
  17760. "reason",
  17761. "recent"
  17762. ],
  17763. "additionalProperties": false
  17764. }
  17765. },
  17766. "required": [
  17767. "id",
  17768. "created",
  17769. "type",
  17770. "durable",
  17771. "data"
  17772. ],
  17773. "additionalProperties": false
  17774. },
  17775. "session.compaction.ended": {
  17776. "type": "object",
  17777. "properties": {
  17778. "id": {
  17779. "type": "string",
  17780. "allOf": [
  17781. {
  17782. "pattern": "^evt_"
  17783. }
  17784. ]
  17785. },
  17786. "created": {
  17787. "type": "number"
  17788. },
  17789. "metadata": {
  17790. "type": "object"
  17791. },
  17792. "type": {
  17793. "type": "string",
  17794. "enum": [
  17795. "session.compaction.ended"
  17796. ]
  17797. },
  17798. "durable": {
  17799. "type": "object",
  17800. "properties": {
  17801. "aggregateID": {
  17802. "type": "string"
  17803. },
  17804. "seq": {
  17805. "type": "integer",
  17806. "allOf": [
  17807. {
  17808. "minimum": 0
  17809. }
  17810. ]
  17811. },
  17812. "version": {
  17813. "type": "number",
  17814. "enum": [
  17815. 1
  17816. ]
  17817. }
  17818. },
  17819. "required": [
  17820. "aggregateID",
  17821. "seq",
  17822. "version"
  17823. ],
  17824. "additionalProperties": false
  17825. },
  17826. "location": {
  17827. "$ref": "#/components/schemas/Location.Ref"
  17828. },
  17829. "data": {
  17830. "type": "object",
  17831. "properties": {
  17832. "sessionID": {
  17833. "type": "string",
  17834. "allOf": [
  17835. {
  17836. "pattern": "^ses"
  17837. }
  17838. ]
  17839. },
  17840. "reason": {
  17841. "type": "string",
  17842. "enum": [
  17843. "auto",
  17844. "manual"
  17845. ]
  17846. },
  17847. "text": {
  17848. "type": "string"
  17849. },
  17850. "recent": {
  17851. "type": "string"
  17852. }
  17853. },
  17854. "required": [
  17855. "sessionID",
  17856. "reason",
  17857. "text",
  17858. "recent"
  17859. ],
  17860. "additionalProperties": false
  17861. }
  17862. },
  17863. "required": [
  17864. "id",
  17865. "created",
  17866. "type",
  17867. "durable",
  17868. "data"
  17869. ],
  17870. "additionalProperties": false
  17871. },
  17872. "session.compaction.failed": {
  17873. "type": "object",
  17874. "properties": {
  17875. "id": {
  17876. "type": "string",
  17877. "allOf": [
  17878. {
  17879. "pattern": "^evt_"
  17880. }
  17881. ]
  17882. },
  17883. "created": {
  17884. "type": "number"
  17885. },
  17886. "metadata": {
  17887. "type": "object"
  17888. },
  17889. "type": {
  17890. "type": "string",
  17891. "enum": [
  17892. "session.compaction.failed"
  17893. ]
  17894. },
  17895. "durable": {
  17896. "type": "object",
  17897. "properties": {
  17898. "aggregateID": {
  17899. "type": "string"
  17900. },
  17901. "seq": {
  17902. "type": "integer",
  17903. "allOf": [
  17904. {
  17905. "minimum": 0
  17906. }
  17907. ]
  17908. },
  17909. "version": {
  17910. "type": "number",
  17911. "enum": [
  17912. 1
  17913. ]
  17914. }
  17915. },
  17916. "required": [
  17917. "aggregateID",
  17918. "seq",
  17919. "version"
  17920. ],
  17921. "additionalProperties": false
  17922. },
  17923. "location": {
  17924. "$ref": "#/components/schemas/Location.Ref"
  17925. },
  17926. "data": {
  17927. "type": "object",
  17928. "properties": {
  17929. "sessionID": {
  17930. "type": "string",
  17931. "allOf": [
  17932. {
  17933. "pattern": "^ses"
  17934. }
  17935. ]
  17936. },
  17937. "reason": {
  17938. "type": "string",
  17939. "enum": [
  17940. "auto",
  17941. "manual"
  17942. ]
  17943. },
  17944. "error": {
  17945. "$ref": "#/components/schemas/Session.StructuredError"
  17946. },
  17947. "inputID": {
  17948. "type": "string",
  17949. "allOf": [
  17950. {
  17951. "pattern": "^msg_"
  17952. }
  17953. ]
  17954. }
  17955. },
  17956. "required": [
  17957. "sessionID",
  17958. "reason",
  17959. "error"
  17960. ],
  17961. "additionalProperties": false
  17962. }
  17963. },
  17964. "required": [
  17965. "id",
  17966. "created",
  17967. "type",
  17968. "durable",
  17969. "data"
  17970. ],
  17971. "additionalProperties": false
  17972. },
  17973. "session.revert.staged": {
  17974. "type": "object",
  17975. "properties": {
  17976. "id": {
  17977. "type": "string",
  17978. "allOf": [
  17979. {
  17980. "pattern": "^evt_"
  17981. }
  17982. ]
  17983. },
  17984. "created": {
  17985. "type": "number"
  17986. },
  17987. "metadata": {
  17988. "type": "object"
  17989. },
  17990. "type": {
  17991. "type": "string",
  17992. "enum": [
  17993. "session.revert.staged"
  17994. ]
  17995. },
  17996. "durable": {
  17997. "type": "object",
  17998. "properties": {
  17999. "aggregateID": {
  18000. "type": "string"
  18001. },
  18002. "seq": {
  18003. "type": "integer",
  18004. "allOf": [
  18005. {
  18006. "minimum": 0
  18007. }
  18008. ]
  18009. },
  18010. "version": {
  18011. "type": "number",
  18012. "enum": [
  18013. 1
  18014. ]
  18015. }
  18016. },
  18017. "required": [
  18018. "aggregateID",
  18019. "seq",
  18020. "version"
  18021. ],
  18022. "additionalProperties": false
  18023. },
  18024. "location": {
  18025. "$ref": "#/components/schemas/Location.Ref"
  18026. },
  18027. "data": {
  18028. "type": "object",
  18029. "properties": {
  18030. "sessionID": {
  18031. "type": "string",
  18032. "allOf": [
  18033. {
  18034. "pattern": "^ses"
  18035. }
  18036. ]
  18037. },
  18038. "revert": {
  18039. "$ref": "#/components/schemas/Session.Revert"
  18040. }
  18041. },
  18042. "required": [
  18043. "sessionID",
  18044. "revert"
  18045. ],
  18046. "additionalProperties": false
  18047. }
  18048. },
  18049. "required": [
  18050. "id",
  18051. "created",
  18052. "type",
  18053. "durable",
  18054. "data"
  18055. ],
  18056. "additionalProperties": false
  18057. },
  18058. "session.revert.cleared": {
  18059. "type": "object",
  18060. "properties": {
  18061. "id": {
  18062. "type": "string",
  18063. "allOf": [
  18064. {
  18065. "pattern": "^evt_"
  18066. }
  18067. ]
  18068. },
  18069. "created": {
  18070. "type": "number"
  18071. },
  18072. "metadata": {
  18073. "type": "object"
  18074. },
  18075. "type": {
  18076. "type": "string",
  18077. "enum": [
  18078. "session.revert.cleared"
  18079. ]
  18080. },
  18081. "durable": {
  18082. "type": "object",
  18083. "properties": {
  18084. "aggregateID": {
  18085. "type": "string"
  18086. },
  18087. "seq": {
  18088. "type": "integer",
  18089. "allOf": [
  18090. {
  18091. "minimum": 0
  18092. }
  18093. ]
  18094. },
  18095. "version": {
  18096. "type": "number",
  18097. "enum": [
  18098. 1
  18099. ]
  18100. }
  18101. },
  18102. "required": [
  18103. "aggregateID",
  18104. "seq",
  18105. "version"
  18106. ],
  18107. "additionalProperties": false
  18108. },
  18109. "location": {
  18110. "$ref": "#/components/schemas/Location.Ref"
  18111. },
  18112. "data": {
  18113. "type": "object",
  18114. "properties": {
  18115. "sessionID": {
  18116. "type": "string",
  18117. "allOf": [
  18118. {
  18119. "pattern": "^ses"
  18120. }
  18121. ]
  18122. }
  18123. },
  18124. "required": [
  18125. "sessionID"
  18126. ],
  18127. "additionalProperties": false
  18128. }
  18129. },
  18130. "required": [
  18131. "id",
  18132. "created",
  18133. "type",
  18134. "durable",
  18135. "data"
  18136. ],
  18137. "additionalProperties": false
  18138. },
  18139. "session.revert.committed": {
  18140. "type": "object",
  18141. "properties": {
  18142. "id": {
  18143. "type": "string",
  18144. "allOf": [
  18145. {
  18146. "pattern": "^evt_"
  18147. }
  18148. ]
  18149. },
  18150. "created": {
  18151. "type": "number"
  18152. },
  18153. "metadata": {
  18154. "type": "object"
  18155. },
  18156. "type": {
  18157. "type": "string",
  18158. "enum": [
  18159. "session.revert.committed"
  18160. ]
  18161. },
  18162. "durable": {
  18163. "type": "object",
  18164. "properties": {
  18165. "aggregateID": {
  18166. "type": "string"
  18167. },
  18168. "seq": {
  18169. "type": "integer",
  18170. "allOf": [
  18171. {
  18172. "minimum": 0
  18173. }
  18174. ]
  18175. },
  18176. "version": {
  18177. "type": "number",
  18178. "enum": [
  18179. 1
  18180. ]
  18181. }
  18182. },
  18183. "required": [
  18184. "aggregateID",
  18185. "seq",
  18186. "version"
  18187. ],
  18188. "additionalProperties": false
  18189. },
  18190. "location": {
  18191. "$ref": "#/components/schemas/Location.Ref"
  18192. },
  18193. "data": {
  18194. "type": "object",
  18195. "properties": {
  18196. "sessionID": {
  18197. "type": "string",
  18198. "allOf": [
  18199. {
  18200. "pattern": "^ses"
  18201. }
  18202. ]
  18203. },
  18204. "to": {
  18205. "type": "string",
  18206. "allOf": [
  18207. {
  18208. "pattern": "^msg_"
  18209. }
  18210. ]
  18211. }
  18212. },
  18213. "required": [
  18214. "sessionID",
  18215. "to"
  18216. ],
  18217. "additionalProperties": false
  18218. }
  18219. },
  18220. "required": [
  18221. "id",
  18222. "created",
  18223. "type",
  18224. "durable",
  18225. "data"
  18226. ],
  18227. "additionalProperties": false
  18228. },
  18229. "session.usage.recorded": {
  18230. "type": "object",
  18231. "properties": {
  18232. "id": {
  18233. "type": "string",
  18234. "allOf": [
  18235. {
  18236. "pattern": "^evt_"
  18237. }
  18238. ]
  18239. },
  18240. "created": {
  18241. "type": "number"
  18242. },
  18243. "metadata": {
  18244. "type": "object"
  18245. },
  18246. "type": {
  18247. "type": "string",
  18248. "enum": [
  18249. "session.usage.recorded"
  18250. ]
  18251. },
  18252. "durable": {
  18253. "type": "object",
  18254. "properties": {
  18255. "aggregateID": {
  18256. "type": "string"
  18257. },
  18258. "seq": {
  18259. "type": "integer",
  18260. "allOf": [
  18261. {
  18262. "minimum": 0
  18263. }
  18264. ]
  18265. },
  18266. "version": {
  18267. "type": "number",
  18268. "enum": [
  18269. 1
  18270. ]
  18271. }
  18272. },
  18273. "required": [
  18274. "aggregateID",
  18275. "seq",
  18276. "version"
  18277. ],
  18278. "additionalProperties": false
  18279. },
  18280. "location": {
  18281. "$ref": "#/components/schemas/Location.Ref"
  18282. },
  18283. "data": {
  18284. "type": "object",
  18285. "properties": {
  18286. "sessionID": {
  18287. "type": "string",
  18288. "allOf": [
  18289. {
  18290. "pattern": "^ses"
  18291. }
  18292. ]
  18293. },
  18294. "source": {
  18295. "type": "string",
  18296. "enum": [
  18297. "title",
  18298. "compaction"
  18299. ]
  18300. },
  18301. "cost": {
  18302. "$ref": "#/components/schemas/Money.USD"
  18303. },
  18304. "tokens": {
  18305. "$ref": "#/components/schemas/TokenUsage.Info"
  18306. }
  18307. },
  18308. "required": [
  18309. "sessionID",
  18310. "source",
  18311. "cost",
  18312. "tokens"
  18313. ],
  18314. "additionalProperties": false
  18315. }
  18316. },
  18317. "required": [
  18318. "id",
  18319. "created",
  18320. "type",
  18321. "durable",
  18322. "data"
  18323. ],
  18324. "additionalProperties": false
  18325. },
  18326. "Session.Event.Durable": {
  18327. "oneOf": [
  18328. {
  18329. "$ref": "#/components/schemas/session.agent.selected"
  18330. },
  18331. {
  18332. "$ref": "#/components/schemas/session.model.selected"
  18333. },
  18334. {
  18335. "$ref": "#/components/schemas/session.moved"
  18336. },
  18337. {
  18338. "$ref": "#/components/schemas/session.renamed"
  18339. },
  18340. {
  18341. "$ref": "#/components/schemas/session.deleted"
  18342. },
  18343. {
  18344. "$ref": "#/components/schemas/session.forked"
  18345. },
  18346. {
  18347. "$ref": "#/components/schemas/session.input.promoted"
  18348. },
  18349. {
  18350. "$ref": "#/components/schemas/session.input.admitted"
  18351. },
  18352. {
  18353. "$ref": "#/components/schemas/session.execution.started"
  18354. },
  18355. {
  18356. "$ref": "#/components/schemas/session.execution.succeeded"
  18357. },
  18358. {
  18359. "$ref": "#/components/schemas/session.execution.failed"
  18360. },
  18361. {
  18362. "$ref": "#/components/schemas/session.execution.interrupted"
  18363. },
  18364. {
  18365. "$ref": "#/components/schemas/session.instructions.updated"
  18366. },
  18367. {
  18368. "$ref": "#/components/schemas/session.synthetic"
  18369. },
  18370. {
  18371. "$ref": "#/components/schemas/session.skill.activated"
  18372. },
  18373. {
  18374. "$ref": "#/components/schemas/session.shell.started"
  18375. },
  18376. {
  18377. "$ref": "#/components/schemas/session.shell.ended"
  18378. },
  18379. {
  18380. "$ref": "#/components/schemas/session.step.started"
  18381. },
  18382. {
  18383. "$ref": "#/components/schemas/session.step.ended"
  18384. },
  18385. {
  18386. "$ref": "#/components/schemas/session.step.failed"
  18387. },
  18388. {
  18389. "$ref": "#/components/schemas/session.text.started"
  18390. },
  18391. {
  18392. "$ref": "#/components/schemas/session.text.ended"
  18393. },
  18394. {
  18395. "$ref": "#/components/schemas/session.reasoning.started"
  18396. },
  18397. {
  18398. "$ref": "#/components/schemas/session.reasoning.ended"
  18399. },
  18400. {
  18401. "$ref": "#/components/schemas/session.tool.input.started"
  18402. },
  18403. {
  18404. "$ref": "#/components/schemas/session.tool.input.ended"
  18405. },
  18406. {
  18407. "$ref": "#/components/schemas/session.tool.called"
  18408. },
  18409. {
  18410. "$ref": "#/components/schemas/session.tool.success"
  18411. },
  18412. {
  18413. "$ref": "#/components/schemas/session.tool.failed"
  18414. },
  18415. {
  18416. "$ref": "#/components/schemas/session.retry.scheduled"
  18417. },
  18418. {
  18419. "$ref": "#/components/schemas/session.compaction.admitted"
  18420. },
  18421. {
  18422. "$ref": "#/components/schemas/session.compaction.started"
  18423. },
  18424. {
  18425. "$ref": "#/components/schemas/session.compaction.ended"
  18426. },
  18427. {
  18428. "$ref": "#/components/schemas/session.compaction.failed"
  18429. },
  18430. {
  18431. "$ref": "#/components/schemas/session.revert.staged"
  18432. },
  18433. {
  18434. "$ref": "#/components/schemas/session.revert.cleared"
  18435. },
  18436. {
  18437. "$ref": "#/components/schemas/session.revert.committed"
  18438. },
  18439. {
  18440. "$ref": "#/components/schemas/session.usage.recorded"
  18441. }
  18442. ]
  18443. },
  18444. "EventLog.Synced": {
  18445. "type": "object",
  18446. "properties": {
  18447. "type": {
  18448. "type": "string",
  18449. "enum": [
  18450. "log.synced"
  18451. ]
  18452. },
  18453. "aggregateID": {
  18454. "type": "string"
  18455. },
  18456. "seq": {
  18457. "type": "integer",
  18458. "allOf": [
  18459. {
  18460. "minimum": 0
  18461. }
  18462. ]
  18463. }
  18464. },
  18465. "required": [
  18466. "type",
  18467. "aggregateID"
  18468. ],
  18469. "additionalProperties": false,
  18470. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  18471. },
  18472. "SessionLogItem": {
  18473. "anyOf": [
  18474. {
  18475. "$ref": "#/components/schemas/Session.Event.Durable"
  18476. },
  18477. {
  18478. "$ref": "#/components/schemas/EventLog.Synced"
  18479. }
  18480. ]
  18481. },
  18482. "SessionLogItemJsonString": {
  18483. "type": "string",
  18484. "contentSchema": {
  18485. "$ref": "#/components/schemas/SessionLogItem"
  18486. },
  18487. "contentMediaType": "application/json"
  18488. },
  18489. "SessionMessagesResponse": {
  18490. "type": "object",
  18491. "properties": {
  18492. "data": {
  18493. "type": "array",
  18494. "items": {
  18495. "$ref": "#/components/schemas/Session.Message.Info"
  18496. }
  18497. },
  18498. "cursor": {
  18499. "type": "object",
  18500. "properties": {
  18501. "previous": {
  18502. "anyOf": [
  18503. {
  18504. "type": "string"
  18505. },
  18506. {
  18507. "type": "null"
  18508. }
  18509. ]
  18510. },
  18511. "next": {
  18512. "anyOf": [
  18513. {
  18514. "type": "string"
  18515. },
  18516. {
  18517. "type": "null"
  18518. }
  18519. ]
  18520. }
  18521. },
  18522. "additionalProperties": false
  18523. }
  18524. },
  18525. "required": [
  18526. "data",
  18527. "cursor"
  18528. ],
  18529. "additionalProperties": false
  18530. },
  18531. "Model.ReasoningField": {
  18532. "anyOf": [
  18533. {
  18534. "type": "string",
  18535. "enum": [
  18536. "reasoning",
  18537. "reasoning_content",
  18538. "reasoning_text"
  18539. ]
  18540. },
  18541. {
  18542. "type": "string"
  18543. }
  18544. ]
  18545. },
  18546. "Model.Compatibility": {
  18547. "type": "object",
  18548. "properties": {
  18549. "reasoningField": {
  18550. "$ref": "#/components/schemas/Model.ReasoningField"
  18551. }
  18552. },
  18553. "additionalProperties": false
  18554. },
  18555. "Model.Capabilities": {
  18556. "type": "object",
  18557. "properties": {
  18558. "tools": {
  18559. "type": "boolean"
  18560. },
  18561. "input": {
  18562. "type": "array",
  18563. "items": {
  18564. "type": "string"
  18565. }
  18566. },
  18567. "output": {
  18568. "type": "array",
  18569. "items": {
  18570. "type": "string"
  18571. }
  18572. }
  18573. },
  18574. "required": [
  18575. "tools",
  18576. "input",
  18577. "output"
  18578. ],
  18579. "additionalProperties": false
  18580. },
  18581. "Model.Variant": {
  18582. "type": "object",
  18583. "properties": {
  18584. "id": {
  18585. "type": "string"
  18586. },
  18587. "settings": {
  18588. "type": "object"
  18589. },
  18590. "headers": {
  18591. "type": "object",
  18592. "additionalProperties": {
  18593. "type": "string"
  18594. }
  18595. },
  18596. "body": {
  18597. "type": "object"
  18598. }
  18599. },
  18600. "required": [
  18601. "id"
  18602. ],
  18603. "additionalProperties": false
  18604. },
  18605. "Money.USDPerMillionTokens": {
  18606. "type": "number"
  18607. },
  18608. "Model.Cost": {
  18609. "type": "object",
  18610. "properties": {
  18611. "tier": {
  18612. "type": "object",
  18613. "properties": {
  18614. "type": {
  18615. "type": "string",
  18616. "enum": [
  18617. "context"
  18618. ]
  18619. },
  18620. "size": {
  18621. "type": "integer"
  18622. }
  18623. },
  18624. "required": [
  18625. "type",
  18626. "size"
  18627. ],
  18628. "additionalProperties": false
  18629. },
  18630. "input": {
  18631. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18632. },
  18633. "output": {
  18634. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18635. },
  18636. "cache": {
  18637. "type": "object",
  18638. "properties": {
  18639. "read": {
  18640. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18641. },
  18642. "write": {
  18643. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18644. }
  18645. },
  18646. "required": [
  18647. "read",
  18648. "write"
  18649. ],
  18650. "additionalProperties": false
  18651. }
  18652. },
  18653. "required": [
  18654. "input",
  18655. "output",
  18656. "cache"
  18657. ],
  18658. "additionalProperties": false
  18659. },
  18660. "Model.Info": {
  18661. "type": "object",
  18662. "properties": {
  18663. "id": {
  18664. "type": "string"
  18665. },
  18666. "modelID": {
  18667. "type": "string"
  18668. },
  18669. "providerID": {
  18670. "type": "string"
  18671. },
  18672. "family": {
  18673. "type": "string"
  18674. },
  18675. "name": {
  18676. "type": "string"
  18677. },
  18678. "compatibility": {
  18679. "$ref": "#/components/schemas/Model.Compatibility"
  18680. },
  18681. "package": {
  18682. "type": "string"
  18683. },
  18684. "settings": {
  18685. "type": "object"
  18686. },
  18687. "headers": {
  18688. "type": "object",
  18689. "additionalProperties": {
  18690. "type": "string"
  18691. }
  18692. },
  18693. "body": {
  18694. "type": "object"
  18695. },
  18696. "capabilities": {
  18697. "$ref": "#/components/schemas/Model.Capabilities"
  18698. },
  18699. "variants": {
  18700. "type": "array",
  18701. "items": {
  18702. "$ref": "#/components/schemas/Model.Variant"
  18703. }
  18704. },
  18705. "time": {
  18706. "type": "object",
  18707. "properties": {
  18708. "released": {
  18709. "type": "number"
  18710. }
  18711. },
  18712. "required": [
  18713. "released"
  18714. ],
  18715. "additionalProperties": false
  18716. },
  18717. "cost": {
  18718. "type": "array",
  18719. "items": {
  18720. "$ref": "#/components/schemas/Model.Cost"
  18721. }
  18722. },
  18723. "status": {
  18724. "type": "string",
  18725. "enum": [
  18726. "alpha",
  18727. "beta",
  18728. "deprecated",
  18729. "active"
  18730. ]
  18731. },
  18732. "enabled": {
  18733. "type": "boolean"
  18734. },
  18735. "limit": {
  18736. "type": "object",
  18737. "properties": {
  18738. "context": {
  18739. "type": "integer"
  18740. },
  18741. "input": {
  18742. "type": "integer"
  18743. },
  18744. "output": {
  18745. "type": "integer"
  18746. }
  18747. },
  18748. "required": [
  18749. "context",
  18750. "output"
  18751. ],
  18752. "additionalProperties": false
  18753. }
  18754. },
  18755. "required": [
  18756. "id",
  18757. "modelID",
  18758. "providerID",
  18759. "name",
  18760. "capabilities",
  18761. "variants",
  18762. "time",
  18763. "cost",
  18764. "status",
  18765. "enabled",
  18766. "limit"
  18767. ],
  18768. "additionalProperties": false
  18769. },
  18770. "GenerateTextResponse": {
  18771. "type": "object",
  18772. "properties": {
  18773. "data": {
  18774. "type": "object",
  18775. "properties": {
  18776. "text": {
  18777. "type": "string"
  18778. }
  18779. },
  18780. "required": [
  18781. "text"
  18782. ],
  18783. "additionalProperties": false
  18784. }
  18785. },
  18786. "required": [
  18787. "data"
  18788. ],
  18789. "additionalProperties": false
  18790. },
  18791. "Provider.Info": {
  18792. "type": "object",
  18793. "properties": {
  18794. "id": {
  18795. "type": "string"
  18796. },
  18797. "integrationID": {
  18798. "type": "string"
  18799. },
  18800. "name": {
  18801. "type": "string"
  18802. },
  18803. "disabled": {
  18804. "type": "boolean"
  18805. },
  18806. "package": {
  18807. "type": "string"
  18808. },
  18809. "settings": {
  18810. "type": "object"
  18811. },
  18812. "headers": {
  18813. "type": "object",
  18814. "additionalProperties": {
  18815. "type": "string"
  18816. }
  18817. },
  18818. "body": {
  18819. "type": "object"
  18820. }
  18821. },
  18822. "required": [
  18823. "id",
  18824. "name",
  18825. "package"
  18826. ],
  18827. "additionalProperties": false
  18828. },
  18829. "ProviderNotFoundError": {
  18830. "type": "object",
  18831. "properties": {
  18832. "_tag": {
  18833. "type": "string",
  18834. "enum": [
  18835. "ProviderNotFoundError"
  18836. ]
  18837. },
  18838. "providerID": {
  18839. "type": "string"
  18840. },
  18841. "message": {
  18842. "type": "string"
  18843. }
  18844. },
  18845. "required": [
  18846. "_tag",
  18847. "providerID",
  18848. "message"
  18849. ],
  18850. "additionalProperties": false
  18851. },
  18852. "Integration.When": {
  18853. "type": "object",
  18854. "properties": {
  18855. "key": {
  18856. "type": "string"
  18857. },
  18858. "op": {
  18859. "type": "string",
  18860. "enum": [
  18861. "eq",
  18862. "neq"
  18863. ]
  18864. },
  18865. "value": {
  18866. "type": "string"
  18867. }
  18868. },
  18869. "required": [
  18870. "key",
  18871. "op",
  18872. "value"
  18873. ],
  18874. "additionalProperties": false
  18875. },
  18876. "Integration.TextPrompt": {
  18877. "type": "object",
  18878. "properties": {
  18879. "type": {
  18880. "type": "string",
  18881. "enum": [
  18882. "text"
  18883. ]
  18884. },
  18885. "key": {
  18886. "type": "string"
  18887. },
  18888. "message": {
  18889. "type": "string"
  18890. },
  18891. "placeholder": {
  18892. "type": "string"
  18893. },
  18894. "when": {
  18895. "$ref": "#/components/schemas/Integration.When"
  18896. }
  18897. },
  18898. "required": [
  18899. "type",
  18900. "key",
  18901. "message"
  18902. ],
  18903. "additionalProperties": false
  18904. },
  18905. "Integration.SelectPrompt": {
  18906. "type": "object",
  18907. "properties": {
  18908. "type": {
  18909. "type": "string",
  18910. "enum": [
  18911. "select"
  18912. ]
  18913. },
  18914. "key": {
  18915. "type": "string"
  18916. },
  18917. "message": {
  18918. "type": "string"
  18919. },
  18920. "options": {
  18921. "type": "array",
  18922. "items": {
  18923. "type": "object",
  18924. "properties": {
  18925. "label": {
  18926. "type": "string"
  18927. },
  18928. "value": {
  18929. "type": "string"
  18930. },
  18931. "hint": {
  18932. "type": "string"
  18933. }
  18934. },
  18935. "required": [
  18936. "label",
  18937. "value"
  18938. ],
  18939. "additionalProperties": false
  18940. }
  18941. },
  18942. "when": {
  18943. "$ref": "#/components/schemas/Integration.When"
  18944. }
  18945. },
  18946. "required": [
  18947. "type",
  18948. "key",
  18949. "message",
  18950. "options"
  18951. ],
  18952. "additionalProperties": false
  18953. },
  18954. "Integration.OAuthMethod": {
  18955. "type": "object",
  18956. "properties": {
  18957. "id": {
  18958. "type": "string"
  18959. },
  18960. "type": {
  18961. "type": "string",
  18962. "enum": [
  18963. "oauth"
  18964. ]
  18965. },
  18966. "label": {
  18967. "type": "string"
  18968. },
  18969. "prompts": {
  18970. "type": "array",
  18971. "items": {
  18972. "anyOf": [
  18973. {
  18974. "$ref": "#/components/schemas/Integration.TextPrompt"
  18975. },
  18976. {
  18977. "$ref": "#/components/schemas/Integration.SelectPrompt"
  18978. }
  18979. ]
  18980. }
  18981. }
  18982. },
  18983. "required": [
  18984. "id",
  18985. "type",
  18986. "label"
  18987. ],
  18988. "additionalProperties": false
  18989. },
  18990. "Integration.CommandMethod": {
  18991. "type": "object",
  18992. "properties": {
  18993. "id": {
  18994. "type": "string"
  18995. },
  18996. "type": {
  18997. "type": "string",
  18998. "enum": [
  18999. "command"
  19000. ]
  19001. },
  19002. "label": {
  19003. "type": "string"
  19004. },
  19005. "command": {
  19006. "type": "array",
  19007. "items": {
  19008. "type": "string"
  19009. }
  19010. }
  19011. },
  19012. "required": [
  19013. "id",
  19014. "type",
  19015. "label",
  19016. "command"
  19017. ],
  19018. "additionalProperties": false
  19019. },
  19020. "Integration.KeyMethod": {
  19021. "type": "object",
  19022. "properties": {
  19023. "type": {
  19024. "type": "string",
  19025. "enum": [
  19026. "key"
  19027. ]
  19028. },
  19029. "label": {
  19030. "type": "string"
  19031. }
  19032. },
  19033. "required": [
  19034. "type"
  19035. ],
  19036. "additionalProperties": false
  19037. },
  19038. "Integration.EnvMethod": {
  19039. "type": "object",
  19040. "properties": {
  19041. "type": {
  19042. "type": "string",
  19043. "enum": [
  19044. "env"
  19045. ]
  19046. },
  19047. "names": {
  19048. "type": "array",
  19049. "items": {
  19050. "type": "string"
  19051. }
  19052. }
  19053. },
  19054. "required": [
  19055. "type",
  19056. "names"
  19057. ],
  19058. "additionalProperties": false
  19059. },
  19060. "Integration.Method": {
  19061. "anyOf": [
  19062. {
  19063. "$ref": "#/components/schemas/Integration.OAuthMethod"
  19064. },
  19065. {
  19066. "$ref": "#/components/schemas/Integration.CommandMethod"
  19067. },
  19068. {
  19069. "$ref": "#/components/schemas/Integration.KeyMethod"
  19070. },
  19071. {
  19072. "$ref": "#/components/schemas/Integration.EnvMethod"
  19073. }
  19074. ]
  19075. },
  19076. "Connection.CredentialInfo": {
  19077. "type": "object",
  19078. "properties": {
  19079. "type": {
  19080. "type": "string",
  19081. "enum": [
  19082. "credential"
  19083. ]
  19084. },
  19085. "id": {
  19086. "type": "string"
  19087. },
  19088. "label": {
  19089. "type": "string"
  19090. }
  19091. },
  19092. "required": [
  19093. "type",
  19094. "id",
  19095. "label"
  19096. ],
  19097. "additionalProperties": false
  19098. },
  19099. "Connection.EnvInfo": {
  19100. "type": "object",
  19101. "properties": {
  19102. "type": {
  19103. "type": "string",
  19104. "enum": [
  19105. "env"
  19106. ]
  19107. },
  19108. "name": {
  19109. "type": "string"
  19110. }
  19111. },
  19112. "required": [
  19113. "type",
  19114. "name"
  19115. ],
  19116. "additionalProperties": false
  19117. },
  19118. "Connection.Info": {
  19119. "anyOf": [
  19120. {
  19121. "$ref": "#/components/schemas/Connection.CredentialInfo"
  19122. },
  19123. {
  19124. "$ref": "#/components/schemas/Connection.EnvInfo"
  19125. }
  19126. ]
  19127. },
  19128. "Integration.Info": {
  19129. "type": "object",
  19130. "properties": {
  19131. "id": {
  19132. "type": "string"
  19133. },
  19134. "name": {
  19135. "type": "string"
  19136. },
  19137. "methods": {
  19138. "type": "array",
  19139. "items": {
  19140. "$ref": "#/components/schemas/Integration.Method"
  19141. }
  19142. },
  19143. "connections": {
  19144. "type": "array",
  19145. "items": {
  19146. "$ref": "#/components/schemas/Connection.Info"
  19147. }
  19148. }
  19149. },
  19150. "required": [
  19151. "id",
  19152. "name",
  19153. "methods",
  19154. "connections"
  19155. ],
  19156. "additionalProperties": false
  19157. },
  19158. "Integration.Attempt": {
  19159. "type": "object",
  19160. "properties": {
  19161. "attemptID": {
  19162. "type": "string"
  19163. },
  19164. "url": {
  19165. "type": "string"
  19166. },
  19167. "instructions": {
  19168. "type": "string"
  19169. },
  19170. "mode": {
  19171. "type": "string",
  19172. "enum": [
  19173. "auto",
  19174. "code"
  19175. ]
  19176. },
  19177. "time": {
  19178. "type": "object",
  19179. "properties": {
  19180. "created": {
  19181. "anyOf": [
  19182. {
  19183. "anyOf": [
  19184. {
  19185. "type": "number"
  19186. },
  19187. {
  19188. "type": "string",
  19189. "enum": [
  19190. "NaN"
  19191. ]
  19192. },
  19193. {
  19194. "type": "string",
  19195. "enum": [
  19196. "Infinity"
  19197. ]
  19198. },
  19199. {
  19200. "type": "string",
  19201. "enum": [
  19202. "-Infinity"
  19203. ]
  19204. }
  19205. ]
  19206. },
  19207. {
  19208. "type": "string",
  19209. "enum": [
  19210. "Infinity",
  19211. "-Infinity",
  19212. "NaN"
  19213. ]
  19214. }
  19215. ]
  19216. },
  19217. "expires": {
  19218. "anyOf": [
  19219. {
  19220. "anyOf": [
  19221. {
  19222. "type": "number"
  19223. },
  19224. {
  19225. "type": "string",
  19226. "enum": [
  19227. "NaN"
  19228. ]
  19229. },
  19230. {
  19231. "type": "string",
  19232. "enum": [
  19233. "Infinity"
  19234. ]
  19235. },
  19236. {
  19237. "type": "string",
  19238. "enum": [
  19239. "-Infinity"
  19240. ]
  19241. }
  19242. ]
  19243. },
  19244. {
  19245. "type": "string",
  19246. "enum": [
  19247. "Infinity",
  19248. "-Infinity",
  19249. "NaN"
  19250. ]
  19251. }
  19252. ]
  19253. }
  19254. },
  19255. "required": [
  19256. "created",
  19257. "expires"
  19258. ],
  19259. "additionalProperties": false
  19260. }
  19261. },
  19262. "required": [
  19263. "attemptID",
  19264. "url",
  19265. "instructions",
  19266. "mode",
  19267. "time"
  19268. ],
  19269. "additionalProperties": false
  19270. },
  19271. "Integration.AttemptStatus": {
  19272. "anyOf": [
  19273. {
  19274. "type": "object",
  19275. "properties": {
  19276. "status": {
  19277. "type": "string",
  19278. "enum": [
  19279. "pending"
  19280. ]
  19281. },
  19282. "time": {
  19283. "type": "object",
  19284. "properties": {
  19285. "created": {
  19286. "anyOf": [
  19287. {
  19288. "anyOf": [
  19289. {
  19290. "type": "number"
  19291. },
  19292. {
  19293. "type": "string",
  19294. "enum": [
  19295. "NaN"
  19296. ]
  19297. },
  19298. {
  19299. "type": "string",
  19300. "enum": [
  19301. "Infinity"
  19302. ]
  19303. },
  19304. {
  19305. "type": "string",
  19306. "enum": [
  19307. "-Infinity"
  19308. ]
  19309. }
  19310. ]
  19311. },
  19312. {
  19313. "type": "string",
  19314. "enum": [
  19315. "Infinity",
  19316. "-Infinity",
  19317. "NaN"
  19318. ]
  19319. }
  19320. ]
  19321. },
  19322. "expires": {
  19323. "anyOf": [
  19324. {
  19325. "anyOf": [
  19326. {
  19327. "type": "number"
  19328. },
  19329. {
  19330. "type": "string",
  19331. "enum": [
  19332. "NaN"
  19333. ]
  19334. },
  19335. {
  19336. "type": "string",
  19337. "enum": [
  19338. "Infinity"
  19339. ]
  19340. },
  19341. {
  19342. "type": "string",
  19343. "enum": [
  19344. "-Infinity"
  19345. ]
  19346. }
  19347. ]
  19348. },
  19349. {
  19350. "type": "string",
  19351. "enum": [
  19352. "Infinity",
  19353. "-Infinity",
  19354. "NaN"
  19355. ]
  19356. }
  19357. ]
  19358. }
  19359. },
  19360. "required": [
  19361. "created",
  19362. "expires"
  19363. ],
  19364. "additionalProperties": false
  19365. }
  19366. },
  19367. "required": [
  19368. "status",
  19369. "time"
  19370. ],
  19371. "additionalProperties": false
  19372. },
  19373. {
  19374. "type": "object",
  19375. "properties": {
  19376. "status": {
  19377. "type": "string",
  19378. "enum": [
  19379. "complete"
  19380. ]
  19381. },
  19382. "time": {
  19383. "type": "object",
  19384. "properties": {
  19385. "created": {
  19386. "anyOf": [
  19387. {
  19388. "anyOf": [
  19389. {
  19390. "type": "number"
  19391. },
  19392. {
  19393. "type": "string",
  19394. "enum": [
  19395. "NaN"
  19396. ]
  19397. },
  19398. {
  19399. "type": "string",
  19400. "enum": [
  19401. "Infinity"
  19402. ]
  19403. },
  19404. {
  19405. "type": "string",
  19406. "enum": [
  19407. "-Infinity"
  19408. ]
  19409. }
  19410. ]
  19411. },
  19412. {
  19413. "type": "string",
  19414. "enum": [
  19415. "Infinity",
  19416. "-Infinity",
  19417. "NaN"
  19418. ]
  19419. }
  19420. ]
  19421. },
  19422. "expires": {
  19423. "anyOf": [
  19424. {
  19425. "anyOf": [
  19426. {
  19427. "type": "number"
  19428. },
  19429. {
  19430. "type": "string",
  19431. "enum": [
  19432. "NaN"
  19433. ]
  19434. },
  19435. {
  19436. "type": "string",
  19437. "enum": [
  19438. "Infinity"
  19439. ]
  19440. },
  19441. {
  19442. "type": "string",
  19443. "enum": [
  19444. "-Infinity"
  19445. ]
  19446. }
  19447. ]
  19448. },
  19449. {
  19450. "type": "string",
  19451. "enum": [
  19452. "Infinity",
  19453. "-Infinity",
  19454. "NaN"
  19455. ]
  19456. }
  19457. ]
  19458. }
  19459. },
  19460. "required": [
  19461. "created",
  19462. "expires"
  19463. ],
  19464. "additionalProperties": false
  19465. }
  19466. },
  19467. "required": [
  19468. "status",
  19469. "time"
  19470. ],
  19471. "additionalProperties": false
  19472. },
  19473. {
  19474. "type": "object",
  19475. "properties": {
  19476. "status": {
  19477. "type": "string",
  19478. "enum": [
  19479. "failed"
  19480. ]
  19481. },
  19482. "message": {
  19483. "type": "string"
  19484. },
  19485. "time": {
  19486. "type": "object",
  19487. "properties": {
  19488. "created": {
  19489. "anyOf": [
  19490. {
  19491. "anyOf": [
  19492. {
  19493. "type": "number"
  19494. },
  19495. {
  19496. "type": "string",
  19497. "enum": [
  19498. "NaN"
  19499. ]
  19500. },
  19501. {
  19502. "type": "string",
  19503. "enum": [
  19504. "Infinity"
  19505. ]
  19506. },
  19507. {
  19508. "type": "string",
  19509. "enum": [
  19510. "-Infinity"
  19511. ]
  19512. }
  19513. ]
  19514. },
  19515. {
  19516. "type": "string",
  19517. "enum": [
  19518. "Infinity",
  19519. "-Infinity",
  19520. "NaN"
  19521. ]
  19522. }
  19523. ]
  19524. },
  19525. "expires": {
  19526. "anyOf": [
  19527. {
  19528. "anyOf": [
  19529. {
  19530. "type": "number"
  19531. },
  19532. {
  19533. "type": "string",
  19534. "enum": [
  19535. "NaN"
  19536. ]
  19537. },
  19538. {
  19539. "type": "string",
  19540. "enum": [
  19541. "Infinity"
  19542. ]
  19543. },
  19544. {
  19545. "type": "string",
  19546. "enum": [
  19547. "-Infinity"
  19548. ]
  19549. }
  19550. ]
  19551. },
  19552. {
  19553. "type": "string",
  19554. "enum": [
  19555. "Infinity",
  19556. "-Infinity",
  19557. "NaN"
  19558. ]
  19559. }
  19560. ]
  19561. }
  19562. },
  19563. "required": [
  19564. "created",
  19565. "expires"
  19566. ],
  19567. "additionalProperties": false
  19568. }
  19569. },
  19570. "required": [
  19571. "status",
  19572. "message",
  19573. "time"
  19574. ],
  19575. "additionalProperties": false
  19576. },
  19577. {
  19578. "type": "object",
  19579. "properties": {
  19580. "status": {
  19581. "type": "string",
  19582. "enum": [
  19583. "expired"
  19584. ]
  19585. },
  19586. "time": {
  19587. "type": "object",
  19588. "properties": {
  19589. "created": {
  19590. "anyOf": [
  19591. {
  19592. "anyOf": [
  19593. {
  19594. "type": "number"
  19595. },
  19596. {
  19597. "type": "string",
  19598. "enum": [
  19599. "NaN"
  19600. ]
  19601. },
  19602. {
  19603. "type": "string",
  19604. "enum": [
  19605. "Infinity"
  19606. ]
  19607. },
  19608. {
  19609. "type": "string",
  19610. "enum": [
  19611. "-Infinity"
  19612. ]
  19613. }
  19614. ]
  19615. },
  19616. {
  19617. "type": "string",
  19618. "enum": [
  19619. "Infinity",
  19620. "-Infinity",
  19621. "NaN"
  19622. ]
  19623. }
  19624. ]
  19625. },
  19626. "expires": {
  19627. "anyOf": [
  19628. {
  19629. "anyOf": [
  19630. {
  19631. "type": "number"
  19632. },
  19633. {
  19634. "type": "string",
  19635. "enum": [
  19636. "NaN"
  19637. ]
  19638. },
  19639. {
  19640. "type": "string",
  19641. "enum": [
  19642. "Infinity"
  19643. ]
  19644. },
  19645. {
  19646. "type": "string",
  19647. "enum": [
  19648. "-Infinity"
  19649. ]
  19650. }
  19651. ]
  19652. },
  19653. {
  19654. "type": "string",
  19655. "enum": [
  19656. "Infinity",
  19657. "-Infinity",
  19658. "NaN"
  19659. ]
  19660. }
  19661. ]
  19662. }
  19663. },
  19664. "required": [
  19665. "created",
  19666. "expires"
  19667. ],
  19668. "additionalProperties": false
  19669. }
  19670. },
  19671. "required": [
  19672. "status",
  19673. "time"
  19674. ],
  19675. "additionalProperties": false
  19676. }
  19677. ]
  19678. },
  19679. "Integration.CommandAttempt": {
  19680. "type": "object",
  19681. "properties": {
  19682. "attemptID": {
  19683. "type": "string"
  19684. },
  19685. "time": {
  19686. "type": "object",
  19687. "properties": {
  19688. "created": {
  19689. "anyOf": [
  19690. {
  19691. "anyOf": [
  19692. {
  19693. "type": "number"
  19694. },
  19695. {
  19696. "type": "string",
  19697. "enum": [
  19698. "NaN"
  19699. ]
  19700. },
  19701. {
  19702. "type": "string",
  19703. "enum": [
  19704. "Infinity"
  19705. ]
  19706. },
  19707. {
  19708. "type": "string",
  19709. "enum": [
  19710. "-Infinity"
  19711. ]
  19712. }
  19713. ]
  19714. },
  19715. {
  19716. "type": "string",
  19717. "enum": [
  19718. "Infinity",
  19719. "-Infinity",
  19720. "NaN"
  19721. ]
  19722. }
  19723. ]
  19724. },
  19725. "expires": {
  19726. "anyOf": [
  19727. {
  19728. "anyOf": [
  19729. {
  19730. "type": "number"
  19731. },
  19732. {
  19733. "type": "string",
  19734. "enum": [
  19735. "NaN"
  19736. ]
  19737. },
  19738. {
  19739. "type": "string",
  19740. "enum": [
  19741. "Infinity"
  19742. ]
  19743. },
  19744. {
  19745. "type": "string",
  19746. "enum": [
  19747. "-Infinity"
  19748. ]
  19749. }
  19750. ]
  19751. },
  19752. {
  19753. "type": "string",
  19754. "enum": [
  19755. "Infinity",
  19756. "-Infinity",
  19757. "NaN"
  19758. ]
  19759. }
  19760. ]
  19761. }
  19762. },
  19763. "required": [
  19764. "created",
  19765. "expires"
  19766. ],
  19767. "additionalProperties": false
  19768. }
  19769. },
  19770. "required": [
  19771. "attemptID",
  19772. "time"
  19773. ],
  19774. "additionalProperties": false
  19775. },
  19776. "Integration.CommandAttemptStatus": {
  19777. "anyOf": [
  19778. {
  19779. "type": "object",
  19780. "properties": {
  19781. "status": {
  19782. "type": "string",
  19783. "enum": [
  19784. "pending"
  19785. ]
  19786. },
  19787. "message": {
  19788. "type": "string"
  19789. },
  19790. "time": {
  19791. "type": "object",
  19792. "properties": {
  19793. "created": {
  19794. "anyOf": [
  19795. {
  19796. "anyOf": [
  19797. {
  19798. "type": "number"
  19799. },
  19800. {
  19801. "type": "string",
  19802. "enum": [
  19803. "NaN"
  19804. ]
  19805. },
  19806. {
  19807. "type": "string",
  19808. "enum": [
  19809. "Infinity"
  19810. ]
  19811. },
  19812. {
  19813. "type": "string",
  19814. "enum": [
  19815. "-Infinity"
  19816. ]
  19817. }
  19818. ]
  19819. },
  19820. {
  19821. "type": "string",
  19822. "enum": [
  19823. "Infinity",
  19824. "-Infinity",
  19825. "NaN"
  19826. ]
  19827. }
  19828. ]
  19829. },
  19830. "expires": {
  19831. "anyOf": [
  19832. {
  19833. "anyOf": [
  19834. {
  19835. "type": "number"
  19836. },
  19837. {
  19838. "type": "string",
  19839. "enum": [
  19840. "NaN"
  19841. ]
  19842. },
  19843. {
  19844. "type": "string",
  19845. "enum": [
  19846. "Infinity"
  19847. ]
  19848. },
  19849. {
  19850. "type": "string",
  19851. "enum": [
  19852. "-Infinity"
  19853. ]
  19854. }
  19855. ]
  19856. },
  19857. {
  19858. "type": "string",
  19859. "enum": [
  19860. "Infinity",
  19861. "-Infinity",
  19862. "NaN"
  19863. ]
  19864. }
  19865. ]
  19866. }
  19867. },
  19868. "required": [
  19869. "created",
  19870. "expires"
  19871. ],
  19872. "additionalProperties": false
  19873. }
  19874. },
  19875. "required": [
  19876. "status",
  19877. "time"
  19878. ],
  19879. "additionalProperties": false
  19880. },
  19881. {
  19882. "type": "object",
  19883. "properties": {
  19884. "status": {
  19885. "type": "string",
  19886. "enum": [
  19887. "complete"
  19888. ]
  19889. },
  19890. "time": {
  19891. "type": "object",
  19892. "properties": {
  19893. "created": {
  19894. "anyOf": [
  19895. {
  19896. "anyOf": [
  19897. {
  19898. "type": "number"
  19899. },
  19900. {
  19901. "type": "string",
  19902. "enum": [
  19903. "NaN"
  19904. ]
  19905. },
  19906. {
  19907. "type": "string",
  19908. "enum": [
  19909. "Infinity"
  19910. ]
  19911. },
  19912. {
  19913. "type": "string",
  19914. "enum": [
  19915. "-Infinity"
  19916. ]
  19917. }
  19918. ]
  19919. },
  19920. {
  19921. "type": "string",
  19922. "enum": [
  19923. "Infinity",
  19924. "-Infinity",
  19925. "NaN"
  19926. ]
  19927. }
  19928. ]
  19929. },
  19930. "expires": {
  19931. "anyOf": [
  19932. {
  19933. "anyOf": [
  19934. {
  19935. "type": "number"
  19936. },
  19937. {
  19938. "type": "string",
  19939. "enum": [
  19940. "NaN"
  19941. ]
  19942. },
  19943. {
  19944. "type": "string",
  19945. "enum": [
  19946. "Infinity"
  19947. ]
  19948. },
  19949. {
  19950. "type": "string",
  19951. "enum": [
  19952. "-Infinity"
  19953. ]
  19954. }
  19955. ]
  19956. },
  19957. {
  19958. "type": "string",
  19959. "enum": [
  19960. "Infinity",
  19961. "-Infinity",
  19962. "NaN"
  19963. ]
  19964. }
  19965. ]
  19966. }
  19967. },
  19968. "required": [
  19969. "created",
  19970. "expires"
  19971. ],
  19972. "additionalProperties": false
  19973. }
  19974. },
  19975. "required": [
  19976. "status",
  19977. "time"
  19978. ],
  19979. "additionalProperties": false
  19980. },
  19981. {
  19982. "type": "object",
  19983. "properties": {
  19984. "status": {
  19985. "type": "string",
  19986. "enum": [
  19987. "failed"
  19988. ]
  19989. },
  19990. "message": {
  19991. "type": "string"
  19992. },
  19993. "time": {
  19994. "type": "object",
  19995. "properties": {
  19996. "created": {
  19997. "anyOf": [
  19998. {
  19999. "anyOf": [
  20000. {
  20001. "type": "number"
  20002. },
  20003. {
  20004. "type": "string",
  20005. "enum": [
  20006. "NaN"
  20007. ]
  20008. },
  20009. {
  20010. "type": "string",
  20011. "enum": [
  20012. "Infinity"
  20013. ]
  20014. },
  20015. {
  20016. "type": "string",
  20017. "enum": [
  20018. "-Infinity"
  20019. ]
  20020. }
  20021. ]
  20022. },
  20023. {
  20024. "type": "string",
  20025. "enum": [
  20026. "Infinity",
  20027. "-Infinity",
  20028. "NaN"
  20029. ]
  20030. }
  20031. ]
  20032. },
  20033. "expires": {
  20034. "anyOf": [
  20035. {
  20036. "anyOf": [
  20037. {
  20038. "type": "number"
  20039. },
  20040. {
  20041. "type": "string",
  20042. "enum": [
  20043. "NaN"
  20044. ]
  20045. },
  20046. {
  20047. "type": "string",
  20048. "enum": [
  20049. "Infinity"
  20050. ]
  20051. },
  20052. {
  20053. "type": "string",
  20054. "enum": [
  20055. "-Infinity"
  20056. ]
  20057. }
  20058. ]
  20059. },
  20060. {
  20061. "type": "string",
  20062. "enum": [
  20063. "Infinity",
  20064. "-Infinity",
  20065. "NaN"
  20066. ]
  20067. }
  20068. ]
  20069. }
  20070. },
  20071. "required": [
  20072. "created",
  20073. "expires"
  20074. ],
  20075. "additionalProperties": false
  20076. }
  20077. },
  20078. "required": [
  20079. "status",
  20080. "message",
  20081. "time"
  20082. ],
  20083. "additionalProperties": false
  20084. },
  20085. {
  20086. "type": "object",
  20087. "properties": {
  20088. "status": {
  20089. "type": "string",
  20090. "enum": [
  20091. "expired"
  20092. ]
  20093. },
  20094. "time": {
  20095. "type": "object",
  20096. "properties": {
  20097. "created": {
  20098. "anyOf": [
  20099. {
  20100. "anyOf": [
  20101. {
  20102. "type": "number"
  20103. },
  20104. {
  20105. "type": "string",
  20106. "enum": [
  20107. "NaN"
  20108. ]
  20109. },
  20110. {
  20111. "type": "string",
  20112. "enum": [
  20113. "Infinity"
  20114. ]
  20115. },
  20116. {
  20117. "type": "string",
  20118. "enum": [
  20119. "-Infinity"
  20120. ]
  20121. }
  20122. ]
  20123. },
  20124. {
  20125. "type": "string",
  20126. "enum": [
  20127. "Infinity",
  20128. "-Infinity",
  20129. "NaN"
  20130. ]
  20131. }
  20132. ]
  20133. },
  20134. "expires": {
  20135. "anyOf": [
  20136. {
  20137. "anyOf": [
  20138. {
  20139. "type": "number"
  20140. },
  20141. {
  20142. "type": "string",
  20143. "enum": [
  20144. "NaN"
  20145. ]
  20146. },
  20147. {
  20148. "type": "string",
  20149. "enum": [
  20150. "Infinity"
  20151. ]
  20152. },
  20153. {
  20154. "type": "string",
  20155. "enum": [
  20156. "-Infinity"
  20157. ]
  20158. }
  20159. ]
  20160. },
  20161. {
  20162. "type": "string",
  20163. "enum": [
  20164. "Infinity",
  20165. "-Infinity",
  20166. "NaN"
  20167. ]
  20168. }
  20169. ]
  20170. }
  20171. },
  20172. "required": [
  20173. "created",
  20174. "expires"
  20175. ],
  20176. "additionalProperties": false
  20177. }
  20178. },
  20179. "required": [
  20180. "status",
  20181. "time"
  20182. ],
  20183. "additionalProperties": false
  20184. }
  20185. ]
  20186. },
  20187. "Mcp.Status.Connected": {
  20188. "type": "object",
  20189. "properties": {
  20190. "status": {
  20191. "type": "string",
  20192. "enum": [
  20193. "connected"
  20194. ]
  20195. }
  20196. },
  20197. "required": [
  20198. "status"
  20199. ],
  20200. "additionalProperties": false
  20201. },
  20202. "Mcp.Status.Pending": {
  20203. "type": "object",
  20204. "properties": {
  20205. "status": {
  20206. "type": "string",
  20207. "enum": [
  20208. "pending"
  20209. ]
  20210. }
  20211. },
  20212. "required": [
  20213. "status"
  20214. ],
  20215. "additionalProperties": false
  20216. },
  20217. "Mcp.Status.Disabled": {
  20218. "type": "object",
  20219. "properties": {
  20220. "status": {
  20221. "type": "string",
  20222. "enum": [
  20223. "disabled"
  20224. ]
  20225. }
  20226. },
  20227. "required": [
  20228. "status"
  20229. ],
  20230. "additionalProperties": false
  20231. },
  20232. "Mcp.Status.Failed": {
  20233. "type": "object",
  20234. "properties": {
  20235. "status": {
  20236. "type": "string",
  20237. "enum": [
  20238. "failed"
  20239. ]
  20240. },
  20241. "error": {
  20242. "type": "string"
  20243. }
  20244. },
  20245. "required": [
  20246. "status",
  20247. "error"
  20248. ],
  20249. "additionalProperties": false
  20250. },
  20251. "Mcp.Status.NeedsAuth": {
  20252. "type": "object",
  20253. "properties": {
  20254. "status": {
  20255. "type": "string",
  20256. "enum": [
  20257. "needs_auth"
  20258. ]
  20259. }
  20260. },
  20261. "required": [
  20262. "status"
  20263. ],
  20264. "additionalProperties": false
  20265. },
  20266. "Mcp.Status.NeedsClientRegistration": {
  20267. "type": "object",
  20268. "properties": {
  20269. "status": {
  20270. "type": "string",
  20271. "enum": [
  20272. "needs_client_registration"
  20273. ]
  20274. },
  20275. "error": {
  20276. "type": "string"
  20277. }
  20278. },
  20279. "required": [
  20280. "status",
  20281. "error"
  20282. ],
  20283. "additionalProperties": false
  20284. },
  20285. "Mcp.Server": {
  20286. "type": "object",
  20287. "properties": {
  20288. "name": {
  20289. "type": "string"
  20290. },
  20291. "status": {
  20292. "anyOf": [
  20293. {
  20294. "$ref": "#/components/schemas/Mcp.Status.Connected"
  20295. },
  20296. {
  20297. "$ref": "#/components/schemas/Mcp.Status.Pending"
  20298. },
  20299. {
  20300. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  20301. },
  20302. {
  20303. "$ref": "#/components/schemas/Mcp.Status.Failed"
  20304. },
  20305. {
  20306. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  20307. },
  20308. {
  20309. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  20310. }
  20311. ]
  20312. },
  20313. "integrationID": {
  20314. "type": "string"
  20315. }
  20316. },
  20317. "required": [
  20318. "name",
  20319. "status"
  20320. ],
  20321. "additionalProperties": false
  20322. },
  20323. "Mcp.TimeoutConfig": {
  20324. "type": "object",
  20325. "properties": {
  20326. "startup": {
  20327. "anyOf": [
  20328. {
  20329. "type": "integer",
  20330. "allOf": [
  20331. {
  20332. "exclusiveMinimum": 0
  20333. }
  20334. ]
  20335. },
  20336. {
  20337. "type": "null"
  20338. }
  20339. ],
  20340. "description": "Maximum time in milliseconds to establish and initialize the MCP server."
  20341. },
  20342. "catalog": {
  20343. "anyOf": [
  20344. {
  20345. "type": "integer",
  20346. "allOf": [
  20347. {
  20348. "exclusiveMinimum": 0
  20349. }
  20350. ]
  20351. },
  20352. {
  20353. "type": "null"
  20354. }
  20355. ],
  20356. "description": "Maximum time in milliseconds to wait for MCP discovery requests such as tools/list and prompts/list."
  20357. },
  20358. "execution": {
  20359. "anyOf": [
  20360. {
  20361. "type": "integer",
  20362. "allOf": [
  20363. {
  20364. "exclusiveMinimum": 0
  20365. }
  20366. ]
  20367. },
  20368. {
  20369. "type": "null"
  20370. }
  20371. ],
  20372. "description": "Maximum time in milliseconds to wait for MCP tool and prompt execution."
  20373. }
  20374. },
  20375. "additionalProperties": false
  20376. },
  20377. "Mcp.LocalConfig": {
  20378. "type": "object",
  20379. "properties": {
  20380. "type": {
  20381. "type": "string",
  20382. "enum": [
  20383. "local"
  20384. ]
  20385. },
  20386. "command": {
  20387. "type": "array",
  20388. "items": {
  20389. "type": "string"
  20390. }
  20391. },
  20392. "cwd": {
  20393. "anyOf": [
  20394. {
  20395. "type": "string"
  20396. },
  20397. {
  20398. "type": "null"
  20399. }
  20400. ],
  20401. "description": "Working directory for the MCP server process. Relative paths resolve from the workspace directory."
  20402. },
  20403. "environment": {
  20404. "anyOf": [
  20405. {
  20406. "type": "object",
  20407. "additionalProperties": {
  20408. "type": "string"
  20409. }
  20410. },
  20411. {
  20412. "type": "null"
  20413. }
  20414. ]
  20415. },
  20416. "disabled": {
  20417. "anyOf": [
  20418. {
  20419. "type": "boolean"
  20420. },
  20421. {
  20422. "type": "null"
  20423. }
  20424. ]
  20425. },
  20426. "codemode": {
  20427. "anyOf": [
  20428. {
  20429. "type": "boolean"
  20430. },
  20431. {
  20432. "type": "null"
  20433. }
  20434. ],
  20435. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20436. },
  20437. "timeout": {
  20438. "anyOf": [
  20439. {
  20440. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20441. },
  20442. {
  20443. "type": "null"
  20444. }
  20445. ]
  20446. }
  20447. },
  20448. "required": [
  20449. "type",
  20450. "command"
  20451. ],
  20452. "additionalProperties": false
  20453. },
  20454. "Mcp.OAuthConfig": {
  20455. "type": "object",
  20456. "properties": {
  20457. "client_id": {
  20458. "anyOf": [
  20459. {
  20460. "type": "string"
  20461. },
  20462. {
  20463. "type": "null"
  20464. }
  20465. ]
  20466. },
  20467. "client_secret": {
  20468. "anyOf": [
  20469. {
  20470. "type": "string"
  20471. },
  20472. {
  20473. "type": "null"
  20474. }
  20475. ]
  20476. },
  20477. "scope": {
  20478. "anyOf": [
  20479. {
  20480. "type": "string"
  20481. },
  20482. {
  20483. "type": "null"
  20484. }
  20485. ]
  20486. },
  20487. "callback_port": {
  20488. "anyOf": [
  20489. {
  20490. "type": "integer",
  20491. "allOf": [
  20492. {
  20493. "minimum": 1,
  20494. "maximum": 65535
  20495. }
  20496. ]
  20497. },
  20498. {
  20499. "type": "null"
  20500. }
  20501. ]
  20502. },
  20503. "redirect_uri": {
  20504. "anyOf": [
  20505. {
  20506. "type": "string"
  20507. },
  20508. {
  20509. "type": "null"
  20510. }
  20511. ]
  20512. }
  20513. },
  20514. "additionalProperties": false
  20515. },
  20516. "Mcp.RemoteConfig": {
  20517. "type": "object",
  20518. "properties": {
  20519. "type": {
  20520. "type": "string",
  20521. "enum": [
  20522. "remote"
  20523. ]
  20524. },
  20525. "url": {
  20526. "type": "string"
  20527. },
  20528. "headers": {
  20529. "anyOf": [
  20530. {
  20531. "type": "object",
  20532. "additionalProperties": {
  20533. "type": "string"
  20534. }
  20535. },
  20536. {
  20537. "type": "null"
  20538. }
  20539. ]
  20540. },
  20541. "oauth": {
  20542. "anyOf": [
  20543. {
  20544. "anyOf": [
  20545. {
  20546. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  20547. },
  20548. {
  20549. "type": "boolean",
  20550. "enum": [
  20551. false
  20552. ]
  20553. }
  20554. ]
  20555. },
  20556. {
  20557. "type": "null"
  20558. }
  20559. ]
  20560. },
  20561. "disabled": {
  20562. "anyOf": [
  20563. {
  20564. "type": "boolean"
  20565. },
  20566. {
  20567. "type": "null"
  20568. }
  20569. ]
  20570. },
  20571. "codemode": {
  20572. "anyOf": [
  20573. {
  20574. "type": "boolean"
  20575. },
  20576. {
  20577. "type": "null"
  20578. }
  20579. ],
  20580. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20581. },
  20582. "timeout": {
  20583. "anyOf": [
  20584. {
  20585. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20586. },
  20587. {
  20588. "type": "null"
  20589. }
  20590. ]
  20591. }
  20592. },
  20593. "required": [
  20594. "type",
  20595. "url"
  20596. ],
  20597. "additionalProperties": false
  20598. },
  20599. "McpServerNotFoundError": {
  20600. "type": "object",
  20601. "properties": {
  20602. "_tag": {
  20603. "type": "string",
  20604. "enum": [
  20605. "McpServerNotFoundError"
  20606. ]
  20607. },
  20608. "server": {
  20609. "type": "string"
  20610. },
  20611. "message": {
  20612. "type": "string"
  20613. }
  20614. },
  20615. "required": [
  20616. "_tag",
  20617. "server",
  20618. "message"
  20619. ],
  20620. "additionalProperties": false
  20621. },
  20622. "Mcp.Resource": {
  20623. "type": "object",
  20624. "properties": {
  20625. "server": {
  20626. "type": "string"
  20627. },
  20628. "name": {
  20629. "type": "string"
  20630. },
  20631. "uri": {
  20632. "type": "string"
  20633. },
  20634. "description": {
  20635. "type": "string"
  20636. },
  20637. "mimeType": {
  20638. "type": "string"
  20639. }
  20640. },
  20641. "required": [
  20642. "server",
  20643. "name",
  20644. "uri"
  20645. ],
  20646. "additionalProperties": false
  20647. },
  20648. "Mcp.ResourceTemplate": {
  20649. "type": "object",
  20650. "properties": {
  20651. "server": {
  20652. "type": "string"
  20653. },
  20654. "name": {
  20655. "type": "string"
  20656. },
  20657. "uriTemplate": {
  20658. "type": "string"
  20659. },
  20660. "description": {
  20661. "type": "string"
  20662. },
  20663. "mimeType": {
  20664. "type": "string"
  20665. }
  20666. },
  20667. "required": [
  20668. "server",
  20669. "name",
  20670. "uriTemplate"
  20671. ],
  20672. "additionalProperties": false
  20673. },
  20674. "Mcp.ResourceCatalog": {
  20675. "type": "object",
  20676. "properties": {
  20677. "resources": {
  20678. "type": "array",
  20679. "items": {
  20680. "$ref": "#/components/schemas/Mcp.Resource"
  20681. }
  20682. },
  20683. "templates": {
  20684. "type": "array",
  20685. "items": {
  20686. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  20687. }
  20688. }
  20689. },
  20690. "required": [
  20691. "resources",
  20692. "templates"
  20693. ],
  20694. "additionalProperties": false
  20695. },
  20696. "Project.Vcs": {
  20697. "type": "string",
  20698. "enum": [
  20699. "git",
  20700. "hg"
  20701. ]
  20702. },
  20703. "Project.Icon": {
  20704. "type": "object",
  20705. "properties": {
  20706. "url": {
  20707. "type": "string"
  20708. },
  20709. "override": {
  20710. "type": "string"
  20711. },
  20712. "color": {
  20713. "type": "string"
  20714. }
  20715. },
  20716. "additionalProperties": false
  20717. },
  20718. "Project.Commands": {
  20719. "type": "object",
  20720. "properties": {
  20721. "start": {
  20722. "type": "string",
  20723. "description": "Startup script to run when creating a new workspace (worktree)"
  20724. }
  20725. },
  20726. "additionalProperties": false
  20727. },
  20728. "Project.Time": {
  20729. "type": "object",
  20730. "properties": {
  20731. "created": {
  20732. "type": "integer",
  20733. "allOf": [
  20734. {
  20735. "minimum": 0
  20736. }
  20737. ]
  20738. },
  20739. "updated": {
  20740. "type": "integer",
  20741. "allOf": [
  20742. {
  20743. "minimum": 0
  20744. }
  20745. ]
  20746. },
  20747. "initialized": {
  20748. "type": "integer",
  20749. "allOf": [
  20750. {
  20751. "minimum": 0
  20752. }
  20753. ]
  20754. }
  20755. },
  20756. "required": [
  20757. "created",
  20758. "updated"
  20759. ],
  20760. "additionalProperties": false
  20761. },
  20762. "Project": {
  20763. "type": "object",
  20764. "properties": {
  20765. "id": {
  20766. "type": "string"
  20767. },
  20768. "worktree": {
  20769. "type": "string"
  20770. },
  20771. "vcs": {
  20772. "$ref": "#/components/schemas/Project.Vcs"
  20773. },
  20774. "name": {
  20775. "type": "string"
  20776. },
  20777. "icon": {
  20778. "$ref": "#/components/schemas/Project.Icon"
  20779. },
  20780. "commands": {
  20781. "$ref": "#/components/schemas/Project.Commands"
  20782. },
  20783. "time": {
  20784. "$ref": "#/components/schemas/Project.Time"
  20785. },
  20786. "sandboxes": {
  20787. "type": "array",
  20788. "items": {
  20789. "type": "string"
  20790. }
  20791. }
  20792. },
  20793. "required": [
  20794. "id",
  20795. "worktree",
  20796. "time",
  20797. "sandboxes"
  20798. ],
  20799. "additionalProperties": false
  20800. },
  20801. "Project.Current": {
  20802. "type": "object",
  20803. "properties": {
  20804. "id": {
  20805. "type": "string"
  20806. },
  20807. "directory": {
  20808. "type": "string"
  20809. }
  20810. },
  20811. "required": [
  20812. "id",
  20813. "directory"
  20814. ],
  20815. "additionalProperties": false
  20816. },
  20817. "Project.Directory": {
  20818. "type": "object",
  20819. "properties": {
  20820. "directory": {
  20821. "type": "string"
  20822. },
  20823. "strategy": {
  20824. "type": "string"
  20825. }
  20826. },
  20827. "required": [
  20828. "directory"
  20829. ],
  20830. "additionalProperties": false
  20831. },
  20832. "Project.Directories": {
  20833. "type": "array",
  20834. "items": {
  20835. "$ref": "#/components/schemas/Project.Directory"
  20836. }
  20837. },
  20838. "Form.Metadata": {
  20839. "type": "object"
  20840. },
  20841. "Form.When": {
  20842. "type": "object",
  20843. "properties": {
  20844. "key": {
  20845. "type": "string"
  20846. },
  20847. "op": {
  20848. "type": "string",
  20849. "enum": [
  20850. "eq",
  20851. "neq"
  20852. ]
  20853. },
  20854. "value": {
  20855. "anyOf": [
  20856. {
  20857. "type": "string"
  20858. },
  20859. {
  20860. "anyOf": [
  20861. {
  20862. "anyOf": [
  20863. {
  20864. "type": "number"
  20865. },
  20866. {
  20867. "type": "string",
  20868. "enum": [
  20869. "NaN"
  20870. ]
  20871. },
  20872. {
  20873. "type": "string",
  20874. "enum": [
  20875. "Infinity"
  20876. ]
  20877. },
  20878. {
  20879. "type": "string",
  20880. "enum": [
  20881. "-Infinity"
  20882. ]
  20883. }
  20884. ]
  20885. },
  20886. {
  20887. "type": "string",
  20888. "enum": [
  20889. "Infinity",
  20890. "-Infinity",
  20891. "NaN"
  20892. ]
  20893. }
  20894. ]
  20895. },
  20896. {
  20897. "type": "boolean"
  20898. }
  20899. ]
  20900. }
  20901. },
  20902. "required": [
  20903. "key",
  20904. "op",
  20905. "value"
  20906. ],
  20907. "additionalProperties": false
  20908. },
  20909. "Form.Option": {
  20910. "type": "object",
  20911. "properties": {
  20912. "value": {
  20913. "type": "string"
  20914. },
  20915. "label": {
  20916. "type": "string"
  20917. },
  20918. "description": {
  20919. "type": "string"
  20920. }
  20921. },
  20922. "required": [
  20923. "value",
  20924. "label"
  20925. ],
  20926. "additionalProperties": false
  20927. },
  20928. "Form.StringField": {
  20929. "type": "object",
  20930. "properties": {
  20931. "key": {
  20932. "type": "string"
  20933. },
  20934. "title": {
  20935. "type": "string"
  20936. },
  20937. "description": {
  20938. "type": "string"
  20939. },
  20940. "required": {
  20941. "type": "boolean"
  20942. },
  20943. "when": {
  20944. "type": "array",
  20945. "items": {
  20946. "$ref": "#/components/schemas/Form.When"
  20947. }
  20948. },
  20949. "type": {
  20950. "type": "string",
  20951. "enum": [
  20952. "string"
  20953. ]
  20954. },
  20955. "format": {
  20956. "type": "string",
  20957. "enum": [
  20958. "email",
  20959. "uri",
  20960. "date",
  20961. "date-time"
  20962. ]
  20963. },
  20964. "minLength": {
  20965. "type": "integer",
  20966. "allOf": [
  20967. {
  20968. "minimum": 0
  20969. }
  20970. ]
  20971. },
  20972. "maxLength": {
  20973. "type": "integer",
  20974. "allOf": [
  20975. {
  20976. "minimum": 0
  20977. }
  20978. ]
  20979. },
  20980. "pattern": {
  20981. "type": "string"
  20982. },
  20983. "placeholder": {
  20984. "type": "string"
  20985. },
  20986. "default": {
  20987. "type": "string"
  20988. },
  20989. "options": {
  20990. "type": "array",
  20991. "items": {
  20992. "$ref": "#/components/schemas/Form.Option"
  20993. }
  20994. },
  20995. "custom": {
  20996. "type": "boolean"
  20997. }
  20998. },
  20999. "required": [
  21000. "key",
  21001. "type"
  21002. ],
  21003. "additionalProperties": false
  21004. },
  21005. "Form.NumberField": {
  21006. "type": "object",
  21007. "properties": {
  21008. "key": {
  21009. "type": "string"
  21010. },
  21011. "title": {
  21012. "type": "string"
  21013. },
  21014. "description": {
  21015. "type": "string"
  21016. },
  21017. "required": {
  21018. "type": "boolean"
  21019. },
  21020. "when": {
  21021. "type": "array",
  21022. "items": {
  21023. "$ref": "#/components/schemas/Form.When"
  21024. }
  21025. },
  21026. "type": {
  21027. "type": "string",
  21028. "enum": [
  21029. "number"
  21030. ]
  21031. },
  21032. "minimum": {
  21033. "anyOf": [
  21034. {
  21035. "anyOf": [
  21036. {
  21037. "type": "number"
  21038. },
  21039. {
  21040. "type": "string",
  21041. "enum": [
  21042. "NaN"
  21043. ]
  21044. },
  21045. {
  21046. "type": "string",
  21047. "enum": [
  21048. "Infinity"
  21049. ]
  21050. },
  21051. {
  21052. "type": "string",
  21053. "enum": [
  21054. "-Infinity"
  21055. ]
  21056. }
  21057. ]
  21058. },
  21059. {
  21060. "type": "string",
  21061. "enum": [
  21062. "Infinity",
  21063. "-Infinity",
  21064. "NaN"
  21065. ]
  21066. }
  21067. ]
  21068. },
  21069. "maximum": {
  21070. "anyOf": [
  21071. {
  21072. "anyOf": [
  21073. {
  21074. "type": "number"
  21075. },
  21076. {
  21077. "type": "string",
  21078. "enum": [
  21079. "NaN"
  21080. ]
  21081. },
  21082. {
  21083. "type": "string",
  21084. "enum": [
  21085. "Infinity"
  21086. ]
  21087. },
  21088. {
  21089. "type": "string",
  21090. "enum": [
  21091. "-Infinity"
  21092. ]
  21093. }
  21094. ]
  21095. },
  21096. {
  21097. "type": "string",
  21098. "enum": [
  21099. "Infinity",
  21100. "-Infinity",
  21101. "NaN"
  21102. ]
  21103. }
  21104. ]
  21105. },
  21106. "default": {
  21107. "anyOf": [
  21108. {
  21109. "anyOf": [
  21110. {
  21111. "type": "number"
  21112. },
  21113. {
  21114. "type": "string",
  21115. "enum": [
  21116. "NaN"
  21117. ]
  21118. },
  21119. {
  21120. "type": "string",
  21121. "enum": [
  21122. "Infinity"
  21123. ]
  21124. },
  21125. {
  21126. "type": "string",
  21127. "enum": [
  21128. "-Infinity"
  21129. ]
  21130. }
  21131. ]
  21132. },
  21133. {
  21134. "type": "string",
  21135. "enum": [
  21136. "Infinity",
  21137. "-Infinity",
  21138. "NaN"
  21139. ]
  21140. }
  21141. ]
  21142. }
  21143. },
  21144. "required": [
  21145. "key",
  21146. "type"
  21147. ],
  21148. "additionalProperties": false
  21149. },
  21150. "Form.IntegerField": {
  21151. "type": "object",
  21152. "properties": {
  21153. "key": {
  21154. "type": "string"
  21155. },
  21156. "title": {
  21157. "type": "string"
  21158. },
  21159. "description": {
  21160. "type": "string"
  21161. },
  21162. "required": {
  21163. "type": "boolean"
  21164. },
  21165. "when": {
  21166. "type": "array",
  21167. "items": {
  21168. "$ref": "#/components/schemas/Form.When"
  21169. }
  21170. },
  21171. "type": {
  21172. "type": "string",
  21173. "enum": [
  21174. "integer"
  21175. ]
  21176. },
  21177. "minimum": {
  21178. "anyOf": [
  21179. {
  21180. "anyOf": [
  21181. {
  21182. "type": "number"
  21183. },
  21184. {
  21185. "type": "string",
  21186. "enum": [
  21187. "NaN"
  21188. ]
  21189. },
  21190. {
  21191. "type": "string",
  21192. "enum": [
  21193. "Infinity"
  21194. ]
  21195. },
  21196. {
  21197. "type": "string",
  21198. "enum": [
  21199. "-Infinity"
  21200. ]
  21201. }
  21202. ]
  21203. },
  21204. {
  21205. "type": "string",
  21206. "enum": [
  21207. "Infinity",
  21208. "-Infinity",
  21209. "NaN"
  21210. ]
  21211. }
  21212. ]
  21213. },
  21214. "maximum": {
  21215. "anyOf": [
  21216. {
  21217. "anyOf": [
  21218. {
  21219. "type": "number"
  21220. },
  21221. {
  21222. "type": "string",
  21223. "enum": [
  21224. "NaN"
  21225. ]
  21226. },
  21227. {
  21228. "type": "string",
  21229. "enum": [
  21230. "Infinity"
  21231. ]
  21232. },
  21233. {
  21234. "type": "string",
  21235. "enum": [
  21236. "-Infinity"
  21237. ]
  21238. }
  21239. ]
  21240. },
  21241. {
  21242. "type": "string",
  21243. "enum": [
  21244. "Infinity",
  21245. "-Infinity",
  21246. "NaN"
  21247. ]
  21248. }
  21249. ]
  21250. },
  21251. "default": {
  21252. "anyOf": [
  21253. {
  21254. "anyOf": [
  21255. {
  21256. "type": "number"
  21257. },
  21258. {
  21259. "type": "string",
  21260. "enum": [
  21261. "NaN"
  21262. ]
  21263. },
  21264. {
  21265. "type": "string",
  21266. "enum": [
  21267. "Infinity"
  21268. ]
  21269. },
  21270. {
  21271. "type": "string",
  21272. "enum": [
  21273. "-Infinity"
  21274. ]
  21275. }
  21276. ]
  21277. },
  21278. {
  21279. "type": "string",
  21280. "enum": [
  21281. "Infinity",
  21282. "-Infinity",
  21283. "NaN"
  21284. ]
  21285. }
  21286. ]
  21287. }
  21288. },
  21289. "required": [
  21290. "key",
  21291. "type"
  21292. ],
  21293. "additionalProperties": false
  21294. },
  21295. "Form.BooleanField": {
  21296. "type": "object",
  21297. "properties": {
  21298. "key": {
  21299. "type": "string"
  21300. },
  21301. "title": {
  21302. "type": "string"
  21303. },
  21304. "description": {
  21305. "type": "string"
  21306. },
  21307. "required": {
  21308. "type": "boolean"
  21309. },
  21310. "when": {
  21311. "type": "array",
  21312. "items": {
  21313. "$ref": "#/components/schemas/Form.When"
  21314. }
  21315. },
  21316. "type": {
  21317. "type": "string",
  21318. "enum": [
  21319. "boolean"
  21320. ]
  21321. },
  21322. "default": {
  21323. "type": "boolean"
  21324. }
  21325. },
  21326. "required": [
  21327. "key",
  21328. "type"
  21329. ],
  21330. "additionalProperties": false
  21331. },
  21332. "Form.MultiselectField": {
  21333. "type": "object",
  21334. "properties": {
  21335. "key": {
  21336. "type": "string"
  21337. },
  21338. "title": {
  21339. "type": "string"
  21340. },
  21341. "description": {
  21342. "type": "string"
  21343. },
  21344. "required": {
  21345. "type": "boolean"
  21346. },
  21347. "when": {
  21348. "type": "array",
  21349. "items": {
  21350. "$ref": "#/components/schemas/Form.When"
  21351. }
  21352. },
  21353. "type": {
  21354. "type": "string",
  21355. "enum": [
  21356. "multiselect"
  21357. ]
  21358. },
  21359. "options": {
  21360. "type": "array",
  21361. "items": {
  21362. "$ref": "#/components/schemas/Form.Option"
  21363. }
  21364. },
  21365. "minItems": {
  21366. "type": "integer",
  21367. "allOf": [
  21368. {
  21369. "minimum": 0
  21370. }
  21371. ]
  21372. },
  21373. "maxItems": {
  21374. "type": "integer",
  21375. "allOf": [
  21376. {
  21377. "minimum": 0
  21378. }
  21379. ]
  21380. },
  21381. "custom": {
  21382. "type": "boolean"
  21383. },
  21384. "default": {
  21385. "type": "array",
  21386. "items": {
  21387. "type": "string"
  21388. }
  21389. }
  21390. },
  21391. "required": [
  21392. "key",
  21393. "type",
  21394. "options"
  21395. ],
  21396. "additionalProperties": false
  21397. },
  21398. "Form.ExternalField": {
  21399. "type": "object",
  21400. "properties": {
  21401. "key": {
  21402. "type": "string"
  21403. },
  21404. "type": {
  21405. "type": "string",
  21406. "enum": [
  21407. "external"
  21408. ]
  21409. },
  21410. "url": {
  21411. "type": "string"
  21412. },
  21413. "title": {
  21414. "type": "string"
  21415. },
  21416. "description": {
  21417. "type": "string"
  21418. }
  21419. },
  21420. "required": [
  21421. "key",
  21422. "type",
  21423. "url"
  21424. ],
  21425. "additionalProperties": false
  21426. },
  21427. "Form.Field": {
  21428. "anyOf": [
  21429. {
  21430. "$ref": "#/components/schemas/Form.StringField"
  21431. },
  21432. {
  21433. "$ref": "#/components/schemas/Form.NumberField"
  21434. },
  21435. {
  21436. "$ref": "#/components/schemas/Form.IntegerField"
  21437. },
  21438. {
  21439. "$ref": "#/components/schemas/Form.BooleanField"
  21440. },
  21441. {
  21442. "$ref": "#/components/schemas/Form.MultiselectField"
  21443. },
  21444. {
  21445. "$ref": "#/components/schemas/Form.ExternalField"
  21446. }
  21447. ]
  21448. },
  21449. "Form.Fields": {
  21450. "type": "array",
  21451. "prefixItems": [
  21452. {
  21453. "$ref": "#/components/schemas/Form.Field"
  21454. }
  21455. ],
  21456. "minItems": 1,
  21457. "items": {
  21458. "$ref": "#/components/schemas/Form.Field"
  21459. }
  21460. },
  21461. "Form.Info": {
  21462. "type": "object",
  21463. "properties": {
  21464. "id": {
  21465. "type": "string",
  21466. "allOf": [
  21467. {
  21468. "pattern": "^frm_"
  21469. }
  21470. ]
  21471. },
  21472. "sessionID": {
  21473. "type": "string"
  21474. },
  21475. "title": {
  21476. "type": "string"
  21477. },
  21478. "metadata": {
  21479. "$ref": "#/components/schemas/Form.Metadata"
  21480. },
  21481. "fields": {
  21482. "$ref": "#/components/schemas/Form.Fields"
  21483. }
  21484. },
  21485. "required": [
  21486. "id",
  21487. "sessionID",
  21488. "title",
  21489. "fields"
  21490. ],
  21491. "additionalProperties": false
  21492. },
  21493. "Form.CreatePayload": {
  21494. "type": "object",
  21495. "properties": {
  21496. "id": {
  21497. "anyOf": [
  21498. {
  21499. "type": "string",
  21500. "allOf": [
  21501. {
  21502. "pattern": "^frm_"
  21503. }
  21504. ]
  21505. },
  21506. {
  21507. "type": "null"
  21508. }
  21509. ]
  21510. },
  21511. "title": {
  21512. "type": "string"
  21513. },
  21514. "metadata": {
  21515. "$ref": "#/components/schemas/Form.Metadata"
  21516. },
  21517. "fields": {
  21518. "$ref": "#/components/schemas/Form.Fields"
  21519. }
  21520. },
  21521. "required": [
  21522. "title",
  21523. "fields"
  21524. ],
  21525. "additionalProperties": false
  21526. },
  21527. "FormNotFoundError": {
  21528. "type": "object",
  21529. "properties": {
  21530. "_tag": {
  21531. "type": "string",
  21532. "enum": [
  21533. "FormNotFoundError"
  21534. ]
  21535. },
  21536. "id": {
  21537. "type": "string"
  21538. },
  21539. "message": {
  21540. "type": "string"
  21541. }
  21542. },
  21543. "required": [
  21544. "_tag",
  21545. "id",
  21546. "message"
  21547. ],
  21548. "additionalProperties": false
  21549. },
  21550. "Form.Value": {
  21551. "anyOf": [
  21552. {
  21553. "type": "string"
  21554. },
  21555. {
  21556. "anyOf": [
  21557. {
  21558. "anyOf": [
  21559. {
  21560. "type": "number"
  21561. },
  21562. {
  21563. "type": "string",
  21564. "enum": [
  21565. "NaN"
  21566. ]
  21567. },
  21568. {
  21569. "type": "string",
  21570. "enum": [
  21571. "Infinity"
  21572. ]
  21573. },
  21574. {
  21575. "type": "string",
  21576. "enum": [
  21577. "-Infinity"
  21578. ]
  21579. }
  21580. ]
  21581. },
  21582. {
  21583. "type": "string",
  21584. "enum": [
  21585. "Infinity",
  21586. "-Infinity",
  21587. "NaN"
  21588. ]
  21589. }
  21590. ]
  21591. },
  21592. {
  21593. "type": "boolean"
  21594. },
  21595. {
  21596. "type": "array",
  21597. "items": {
  21598. "type": "string"
  21599. }
  21600. }
  21601. ]
  21602. },
  21603. "Form.Answer": {
  21604. "type": "object",
  21605. "additionalProperties": {
  21606. "$ref": "#/components/schemas/Form.Value"
  21607. }
  21608. },
  21609. "Form.State": {
  21610. "anyOf": [
  21611. {
  21612. "type": "object",
  21613. "properties": {
  21614. "status": {
  21615. "type": "string",
  21616. "enum": [
  21617. "pending"
  21618. ]
  21619. }
  21620. },
  21621. "required": [
  21622. "status"
  21623. ],
  21624. "additionalProperties": false
  21625. },
  21626. {
  21627. "type": "object",
  21628. "properties": {
  21629. "status": {
  21630. "type": "string",
  21631. "enum": [
  21632. "answered"
  21633. ]
  21634. },
  21635. "answer": {
  21636. "$ref": "#/components/schemas/Form.Answer"
  21637. }
  21638. },
  21639. "required": [
  21640. "status",
  21641. "answer"
  21642. ],
  21643. "additionalProperties": false
  21644. },
  21645. {
  21646. "type": "object",
  21647. "properties": {
  21648. "status": {
  21649. "type": "string",
  21650. "enum": [
  21651. "cancelled"
  21652. ]
  21653. }
  21654. },
  21655. "required": [
  21656. "status"
  21657. ],
  21658. "additionalProperties": false
  21659. }
  21660. ]
  21661. },
  21662. "Form.Reply": {
  21663. "type": "object",
  21664. "properties": {
  21665. "answer": {
  21666. "$ref": "#/components/schemas/Form.Answer"
  21667. }
  21668. },
  21669. "required": [
  21670. "answer"
  21671. ],
  21672. "additionalProperties": false
  21673. },
  21674. "FormAlreadySettledError": {
  21675. "type": "object",
  21676. "properties": {
  21677. "_tag": {
  21678. "type": "string",
  21679. "enum": [
  21680. "FormAlreadySettledError"
  21681. ]
  21682. },
  21683. "id": {
  21684. "type": "string"
  21685. },
  21686. "message": {
  21687. "type": "string"
  21688. }
  21689. },
  21690. "required": [
  21691. "_tag",
  21692. "id",
  21693. "message"
  21694. ],
  21695. "additionalProperties": false
  21696. },
  21697. "FormInvalidAnswerError": {
  21698. "type": "object",
  21699. "properties": {
  21700. "_tag": {
  21701. "type": "string",
  21702. "enum": [
  21703. "FormInvalidAnswerError"
  21704. ]
  21705. },
  21706. "id": {
  21707. "type": "string"
  21708. },
  21709. "message": {
  21710. "type": "string"
  21711. }
  21712. },
  21713. "required": [
  21714. "_tag",
  21715. "id",
  21716. "message"
  21717. ],
  21718. "additionalProperties": false
  21719. },
  21720. "Permission.Source": {
  21721. "anyOf": [
  21722. {
  21723. "type": "object",
  21724. "properties": {
  21725. "type": {
  21726. "type": "string",
  21727. "enum": [
  21728. "tool"
  21729. ]
  21730. },
  21731. "messageID": {
  21732. "type": "string"
  21733. },
  21734. "callID": {
  21735. "type": "string"
  21736. }
  21737. },
  21738. "required": [
  21739. "type",
  21740. "messageID",
  21741. "callID"
  21742. ],
  21743. "additionalProperties": false
  21744. }
  21745. ]
  21746. },
  21747. "Permission.Request": {
  21748. "type": "object",
  21749. "properties": {
  21750. "id": {
  21751. "type": "string",
  21752. "allOf": [
  21753. {
  21754. "pattern": "^per"
  21755. }
  21756. ]
  21757. },
  21758. "sessionID": {
  21759. "type": "string",
  21760. "allOf": [
  21761. {
  21762. "pattern": "^ses"
  21763. }
  21764. ]
  21765. },
  21766. "action": {
  21767. "type": "string"
  21768. },
  21769. "resources": {
  21770. "type": "array",
  21771. "items": {
  21772. "type": "string"
  21773. }
  21774. },
  21775. "save": {
  21776. "type": "array",
  21777. "items": {
  21778. "type": "string"
  21779. }
  21780. },
  21781. "metadata": {
  21782. "type": "object"
  21783. },
  21784. "source": {
  21785. "$ref": "#/components/schemas/Permission.Source"
  21786. }
  21787. },
  21788. "required": [
  21789. "id",
  21790. "sessionID",
  21791. "action",
  21792. "resources"
  21793. ],
  21794. "additionalProperties": false
  21795. },
  21796. "PermissionSaved.Info": {
  21797. "type": "object",
  21798. "properties": {
  21799. "id": {
  21800. "type": "string"
  21801. },
  21802. "projectID": {
  21803. "type": "string"
  21804. },
  21805. "action": {
  21806. "type": "string"
  21807. },
  21808. "resource": {
  21809. "type": "string"
  21810. }
  21811. },
  21812. "required": [
  21813. "id",
  21814. "projectID",
  21815. "action",
  21816. "resource"
  21817. ],
  21818. "additionalProperties": false
  21819. },
  21820. "PermissionNotFoundError": {
  21821. "type": "object",
  21822. "properties": {
  21823. "_tag": {
  21824. "type": "string",
  21825. "enum": [
  21826. "PermissionNotFoundError"
  21827. ]
  21828. },
  21829. "requestID": {
  21830. "type": "string"
  21831. },
  21832. "message": {
  21833. "type": "string"
  21834. }
  21835. },
  21836. "required": [
  21837. "_tag",
  21838. "requestID",
  21839. "message"
  21840. ],
  21841. "additionalProperties": false
  21842. },
  21843. "Permission.Reply": {
  21844. "type": "string",
  21845. "enum": [
  21846. "once",
  21847. "always",
  21848. "reject"
  21849. ]
  21850. },
  21851. "FileSystem.Entry": {
  21852. "type": "object",
  21853. "properties": {
  21854. "path": {
  21855. "type": "string"
  21856. },
  21857. "type": {
  21858. "type": "string",
  21859. "enum": [
  21860. "file",
  21861. "directory"
  21862. ]
  21863. }
  21864. },
  21865. "required": [
  21866. "path",
  21867. "type"
  21868. ],
  21869. "additionalProperties": false
  21870. },
  21871. "Command.Info": {
  21872. "type": "object",
  21873. "properties": {
  21874. "name": {
  21875. "type": "string"
  21876. },
  21877. "template": {
  21878. "type": "string"
  21879. },
  21880. "description": {
  21881. "type": "string"
  21882. },
  21883. "agent": {
  21884. "type": "string"
  21885. },
  21886. "model": {
  21887. "$ref": "#/components/schemas/Model.Ref"
  21888. },
  21889. "subtask": {
  21890. "type": "boolean"
  21891. }
  21892. },
  21893. "required": [
  21894. "name",
  21895. "template"
  21896. ],
  21897. "additionalProperties": false
  21898. },
  21899. "Skill.Info": {
  21900. "type": "object",
  21901. "properties": {
  21902. "id": {
  21903. "type": "string"
  21904. },
  21905. "name": {
  21906. "type": "string"
  21907. },
  21908. "description": {
  21909. "type": "string"
  21910. },
  21911. "slash": {
  21912. "type": "boolean"
  21913. },
  21914. "autoinvoke": {
  21915. "type": "boolean"
  21916. },
  21917. "location": {
  21918. "type": "string"
  21919. },
  21920. "content": {
  21921. "type": "string"
  21922. }
  21923. },
  21924. "required": [
  21925. "id",
  21926. "name",
  21927. "location",
  21928. "content"
  21929. ],
  21930. "additionalProperties": false
  21931. },
  21932. "models-dev.refreshed": {
  21933. "type": "object",
  21934. "properties": {
  21935. "id": {
  21936. "type": "string",
  21937. "allOf": [
  21938. {
  21939. "pattern": "^evt_"
  21940. }
  21941. ]
  21942. },
  21943. "created": {
  21944. "type": "number"
  21945. },
  21946. "metadata": {
  21947. "type": "object"
  21948. },
  21949. "type": {
  21950. "type": "string",
  21951. "enum": [
  21952. "models-dev.refreshed"
  21953. ]
  21954. },
  21955. "location": {
  21956. "$ref": "#/components/schemas/Location.Ref"
  21957. },
  21958. "data": {
  21959. "anyOf": [
  21960. {
  21961. "type": "object"
  21962. },
  21963. {
  21964. "type": "array"
  21965. }
  21966. ]
  21967. }
  21968. },
  21969. "required": [
  21970. "id",
  21971. "created",
  21972. "type",
  21973. "data"
  21974. ],
  21975. "additionalProperties": false
  21976. },
  21977. "integration.updated": {
  21978. "type": "object",
  21979. "properties": {
  21980. "id": {
  21981. "type": "string",
  21982. "allOf": [
  21983. {
  21984. "pattern": "^evt_"
  21985. }
  21986. ]
  21987. },
  21988. "created": {
  21989. "type": "number"
  21990. },
  21991. "metadata": {
  21992. "type": "object"
  21993. },
  21994. "type": {
  21995. "type": "string",
  21996. "enum": [
  21997. "integration.updated"
  21998. ]
  21999. },
  22000. "location": {
  22001. "$ref": "#/components/schemas/Location.Ref"
  22002. },
  22003. "data": {
  22004. "anyOf": [
  22005. {
  22006. "type": "object"
  22007. },
  22008. {
  22009. "type": "array"
  22010. }
  22011. ]
  22012. }
  22013. },
  22014. "required": [
  22015. "id",
  22016. "created",
  22017. "type",
  22018. "data"
  22019. ],
  22020. "additionalProperties": false
  22021. },
  22022. "integration.connection.updated": {
  22023. "type": "object",
  22024. "properties": {
  22025. "id": {
  22026. "type": "string",
  22027. "allOf": [
  22028. {
  22029. "pattern": "^evt_"
  22030. }
  22031. ]
  22032. },
  22033. "created": {
  22034. "type": "number"
  22035. },
  22036. "metadata": {
  22037. "type": "object"
  22038. },
  22039. "type": {
  22040. "type": "string",
  22041. "enum": [
  22042. "integration.connection.updated"
  22043. ]
  22044. },
  22045. "location": {
  22046. "$ref": "#/components/schemas/Location.Ref"
  22047. },
  22048. "data": {
  22049. "type": "object",
  22050. "properties": {
  22051. "integrationID": {
  22052. "type": "string"
  22053. }
  22054. },
  22055. "required": [
  22056. "integrationID"
  22057. ],
  22058. "additionalProperties": false
  22059. }
  22060. },
  22061. "required": [
  22062. "id",
  22063. "created",
  22064. "type",
  22065. "data"
  22066. ],
  22067. "additionalProperties": false
  22068. },
  22069. "catalog.updated": {
  22070. "type": "object",
  22071. "properties": {
  22072. "id": {
  22073. "type": "string",
  22074. "allOf": [
  22075. {
  22076. "pattern": "^evt_"
  22077. }
  22078. ]
  22079. },
  22080. "created": {
  22081. "type": "number"
  22082. },
  22083. "metadata": {
  22084. "type": "object"
  22085. },
  22086. "type": {
  22087. "type": "string",
  22088. "enum": [
  22089. "catalog.updated"
  22090. ]
  22091. },
  22092. "location": {
  22093. "$ref": "#/components/schemas/Location.Ref"
  22094. },
  22095. "data": {
  22096. "anyOf": [
  22097. {
  22098. "type": "object"
  22099. },
  22100. {
  22101. "type": "array"
  22102. }
  22103. ]
  22104. }
  22105. },
  22106. "required": [
  22107. "id",
  22108. "created",
  22109. "type",
  22110. "data"
  22111. ],
  22112. "additionalProperties": false
  22113. },
  22114. "agent.updated": {
  22115. "type": "object",
  22116. "properties": {
  22117. "id": {
  22118. "type": "string",
  22119. "allOf": [
  22120. {
  22121. "pattern": "^evt_"
  22122. }
  22123. ]
  22124. },
  22125. "created": {
  22126. "type": "number"
  22127. },
  22128. "metadata": {
  22129. "type": "object"
  22130. },
  22131. "type": {
  22132. "type": "string",
  22133. "enum": [
  22134. "agent.updated"
  22135. ]
  22136. },
  22137. "location": {
  22138. "$ref": "#/components/schemas/Location.Ref"
  22139. },
  22140. "data": {
  22141. "anyOf": [
  22142. {
  22143. "type": "object"
  22144. },
  22145. {
  22146. "type": "array"
  22147. }
  22148. ]
  22149. }
  22150. },
  22151. "required": [
  22152. "id",
  22153. "created",
  22154. "type",
  22155. "data"
  22156. ],
  22157. "additionalProperties": false
  22158. },
  22159. "FileDiff.LegacyInfo": {
  22160. "type": "object",
  22161. "properties": {
  22162. "file": {
  22163. "type": "string"
  22164. },
  22165. "patch": {
  22166. "type": "string"
  22167. },
  22168. "additions": {
  22169. "type": "number"
  22170. },
  22171. "deletions": {
  22172. "type": "number"
  22173. },
  22174. "status": {
  22175. "type": "string",
  22176. "enum": [
  22177. "added",
  22178. "deleted",
  22179. "modified"
  22180. ]
  22181. }
  22182. },
  22183. "required": [
  22184. "additions",
  22185. "deletions"
  22186. ],
  22187. "additionalProperties": false
  22188. },
  22189. "PermissionV1.Action": {
  22190. "type": "string",
  22191. "enum": [
  22192. "allow",
  22193. "deny",
  22194. "ask"
  22195. ]
  22196. },
  22197. "PermissionV1.Rule": {
  22198. "type": "object",
  22199. "properties": {
  22200. "permission": {
  22201. "type": "string"
  22202. },
  22203. "pattern": {
  22204. "type": "string"
  22205. },
  22206. "action": {
  22207. "$ref": "#/components/schemas/PermissionV1.Action"
  22208. }
  22209. },
  22210. "required": [
  22211. "permission",
  22212. "pattern",
  22213. "action"
  22214. ],
  22215. "additionalProperties": false
  22216. },
  22217. "PermissionV1.Ruleset": {
  22218. "type": "array",
  22219. "items": {
  22220. "$ref": "#/components/schemas/PermissionV1.Rule"
  22221. }
  22222. },
  22223. "SessionV1.Info": {
  22224. "type": "object",
  22225. "properties": {
  22226. "id": {
  22227. "type": "string",
  22228. "allOf": [
  22229. {
  22230. "pattern": "^ses"
  22231. }
  22232. ]
  22233. },
  22234. "slug": {
  22235. "type": "string"
  22236. },
  22237. "projectID": {
  22238. "type": "string"
  22239. },
  22240. "workspaceID": {
  22241. "type": "string",
  22242. "allOf": [
  22243. {
  22244. "pattern": "^wrk"
  22245. }
  22246. ]
  22247. },
  22248. "directory": {
  22249. "type": "string"
  22250. },
  22251. "path": {
  22252. "type": "string"
  22253. },
  22254. "parentID": {
  22255. "type": "string",
  22256. "allOf": [
  22257. {
  22258. "pattern": "^ses"
  22259. }
  22260. ]
  22261. },
  22262. "summary": {
  22263. "type": "object",
  22264. "properties": {
  22265. "additions": {
  22266. "type": "number"
  22267. },
  22268. "deletions": {
  22269. "type": "number"
  22270. },
  22271. "files": {
  22272. "type": "number"
  22273. },
  22274. "diffs": {
  22275. "type": "array",
  22276. "items": {
  22277. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  22278. }
  22279. }
  22280. },
  22281. "required": [
  22282. "additions",
  22283. "deletions",
  22284. "files"
  22285. ],
  22286. "additionalProperties": false
  22287. },
  22288. "cost": {
  22289. "type": "number"
  22290. },
  22291. "tokens": {
  22292. "type": "object",
  22293. "properties": {
  22294. "input": {
  22295. "type": "number"
  22296. },
  22297. "output": {
  22298. "type": "number"
  22299. },
  22300. "reasoning": {
  22301. "type": "number"
  22302. },
  22303. "cache": {
  22304. "type": "object",
  22305. "properties": {
  22306. "read": {
  22307. "type": "number"
  22308. },
  22309. "write": {
  22310. "type": "number"
  22311. }
  22312. },
  22313. "required": [
  22314. "read",
  22315. "write"
  22316. ],
  22317. "additionalProperties": false
  22318. }
  22319. },
  22320. "required": [
  22321. "input",
  22322. "output",
  22323. "reasoning",
  22324. "cache"
  22325. ],
  22326. "additionalProperties": false
  22327. },
  22328. "share": {
  22329. "type": "object",
  22330. "properties": {
  22331. "url": {
  22332. "type": "string"
  22333. }
  22334. },
  22335. "required": [
  22336. "url"
  22337. ],
  22338. "additionalProperties": false
  22339. },
  22340. "title": {
  22341. "type": "string"
  22342. },
  22343. "agent": {
  22344. "type": "string"
  22345. },
  22346. "model": {
  22347. "type": "object",
  22348. "properties": {
  22349. "id": {
  22350. "type": "string"
  22351. },
  22352. "providerID": {
  22353. "type": "string"
  22354. },
  22355. "variant": {
  22356. "type": "string"
  22357. }
  22358. },
  22359. "required": [
  22360. "id",
  22361. "providerID"
  22362. ],
  22363. "additionalProperties": false
  22364. },
  22365. "version": {
  22366. "type": "string"
  22367. },
  22368. "metadata": {
  22369. "type": "object"
  22370. },
  22371. "time": {
  22372. "type": "object",
  22373. "properties": {
  22374. "created": {
  22375. "type": "integer",
  22376. "allOf": [
  22377. {
  22378. "minimum": 0
  22379. }
  22380. ]
  22381. },
  22382. "updated": {
  22383. "type": "integer",
  22384. "allOf": [
  22385. {
  22386. "minimum": 0
  22387. }
  22388. ]
  22389. },
  22390. "compacting": {
  22391. "type": "integer",
  22392. "allOf": [
  22393. {
  22394. "minimum": 0
  22395. }
  22396. ]
  22397. },
  22398. "archived": {
  22399. "type": "number"
  22400. }
  22401. },
  22402. "required": [
  22403. "created",
  22404. "updated"
  22405. ],
  22406. "additionalProperties": false
  22407. },
  22408. "permission": {
  22409. "$ref": "#/components/schemas/PermissionV1.Ruleset"
  22410. },
  22411. "revert": {
  22412. "type": "object",
  22413. "properties": {
  22414. "messageID": {
  22415. "type": "string",
  22416. "allOf": [
  22417. {
  22418. "pattern": "^msg"
  22419. }
  22420. ]
  22421. },
  22422. "partID": {
  22423. "type": "string",
  22424. "allOf": [
  22425. {
  22426. "pattern": "^prt"
  22427. }
  22428. ]
  22429. },
  22430. "snapshot": {
  22431. "type": "string"
  22432. },
  22433. "diff": {
  22434. "type": "string"
  22435. }
  22436. },
  22437. "required": [
  22438. "messageID"
  22439. ],
  22440. "additionalProperties": false
  22441. }
  22442. },
  22443. "required": [
  22444. "id",
  22445. "slug",
  22446. "projectID",
  22447. "directory",
  22448. "title",
  22449. "version",
  22450. "time"
  22451. ],
  22452. "additionalProperties": false
  22453. },
  22454. "session.created": {
  22455. "type": "object",
  22456. "properties": {
  22457. "id": {
  22458. "type": "string",
  22459. "allOf": [
  22460. {
  22461. "pattern": "^evt_"
  22462. }
  22463. ]
  22464. },
  22465. "created": {
  22466. "type": "number"
  22467. },
  22468. "metadata": {
  22469. "type": "object"
  22470. },
  22471. "type": {
  22472. "type": "string",
  22473. "enum": [
  22474. "session.created"
  22475. ]
  22476. },
  22477. "durable": {
  22478. "type": "object",
  22479. "properties": {
  22480. "aggregateID": {
  22481. "type": "string"
  22482. },
  22483. "seq": {
  22484. "type": "integer",
  22485. "allOf": [
  22486. {
  22487. "minimum": 0
  22488. }
  22489. ]
  22490. },
  22491. "version": {
  22492. "type": "number",
  22493. "enum": [
  22494. 1
  22495. ]
  22496. }
  22497. },
  22498. "required": [
  22499. "aggregateID",
  22500. "seq",
  22501. "version"
  22502. ],
  22503. "additionalProperties": false
  22504. },
  22505. "location": {
  22506. "$ref": "#/components/schemas/Location.Ref"
  22507. },
  22508. "data": {
  22509. "type": "object",
  22510. "properties": {
  22511. "sessionID": {
  22512. "type": "string",
  22513. "allOf": [
  22514. {
  22515. "pattern": "^ses"
  22516. }
  22517. ]
  22518. },
  22519. "info": {
  22520. "$ref": "#/components/schemas/SessionV1.Info"
  22521. }
  22522. },
  22523. "required": [
  22524. "sessionID",
  22525. "info"
  22526. ],
  22527. "additionalProperties": false
  22528. }
  22529. },
  22530. "required": [
  22531. "id",
  22532. "created",
  22533. "type",
  22534. "durable",
  22535. "data"
  22536. ],
  22537. "additionalProperties": false
  22538. },
  22539. "session.updated": {
  22540. "type": "object",
  22541. "properties": {
  22542. "id": {
  22543. "type": "string",
  22544. "allOf": [
  22545. {
  22546. "pattern": "^evt_"
  22547. }
  22548. ]
  22549. },
  22550. "created": {
  22551. "type": "number"
  22552. },
  22553. "metadata": {
  22554. "type": "object"
  22555. },
  22556. "type": {
  22557. "type": "string",
  22558. "enum": [
  22559. "session.updated"
  22560. ]
  22561. },
  22562. "durable": {
  22563. "type": "object",
  22564. "properties": {
  22565. "aggregateID": {
  22566. "type": "string"
  22567. },
  22568. "seq": {
  22569. "type": "integer",
  22570. "allOf": [
  22571. {
  22572. "minimum": 0
  22573. }
  22574. ]
  22575. },
  22576. "version": {
  22577. "type": "number",
  22578. "enum": [
  22579. 1
  22580. ]
  22581. }
  22582. },
  22583. "required": [
  22584. "aggregateID",
  22585. "seq",
  22586. "version"
  22587. ],
  22588. "additionalProperties": false
  22589. },
  22590. "location": {
  22591. "$ref": "#/components/schemas/Location.Ref"
  22592. },
  22593. "data": {
  22594. "type": "object",
  22595. "properties": {
  22596. "sessionID": {
  22597. "type": "string",
  22598. "allOf": [
  22599. {
  22600. "pattern": "^ses"
  22601. }
  22602. ]
  22603. },
  22604. "info": {
  22605. "$ref": "#/components/schemas/SessionV1.Info"
  22606. }
  22607. },
  22608. "required": [
  22609. "sessionID",
  22610. "info"
  22611. ],
  22612. "additionalProperties": false
  22613. }
  22614. },
  22615. "required": [
  22616. "id",
  22617. "created",
  22618. "type",
  22619. "durable",
  22620. "data"
  22621. ],
  22622. "additionalProperties": false
  22623. },
  22624. "session.deleted1": {
  22625. "type": "object",
  22626. "properties": {
  22627. "id": {
  22628. "type": "string",
  22629. "allOf": [
  22630. {
  22631. "pattern": "^evt_"
  22632. }
  22633. ]
  22634. },
  22635. "created": {
  22636. "type": "number"
  22637. },
  22638. "metadata": {
  22639. "type": "object"
  22640. },
  22641. "type": {
  22642. "type": "string",
  22643. "enum": [
  22644. "session.deleted"
  22645. ]
  22646. },
  22647. "durable": {
  22648. "type": "object",
  22649. "properties": {
  22650. "aggregateID": {
  22651. "type": "string"
  22652. },
  22653. "seq": {
  22654. "type": "integer",
  22655. "allOf": [
  22656. {
  22657. "minimum": 0
  22658. }
  22659. ]
  22660. },
  22661. "version": {
  22662. "type": "number",
  22663. "enum": [
  22664. 1
  22665. ]
  22666. }
  22667. },
  22668. "required": [
  22669. "aggregateID",
  22670. "seq",
  22671. "version"
  22672. ],
  22673. "additionalProperties": false
  22674. },
  22675. "location": {
  22676. "$ref": "#/components/schemas/Location.Ref"
  22677. },
  22678. "data": {
  22679. "type": "object",
  22680. "properties": {
  22681. "sessionID": {
  22682. "type": "string",
  22683. "allOf": [
  22684. {
  22685. "pattern": "^ses"
  22686. }
  22687. ]
  22688. },
  22689. "info": {
  22690. "$ref": "#/components/schemas/SessionV1.Info"
  22691. }
  22692. },
  22693. "required": [
  22694. "sessionID",
  22695. "info"
  22696. ],
  22697. "additionalProperties": false
  22698. }
  22699. },
  22700. "required": [
  22701. "id",
  22702. "created",
  22703. "type",
  22704. "durable",
  22705. "data"
  22706. ],
  22707. "additionalProperties": false
  22708. },
  22709. "SessionV1.JSONSchema": {
  22710. "type": "object"
  22711. },
  22712. "SessionV1.OutputFormat": {
  22713. "anyOf": [
  22714. {
  22715. "type": "object",
  22716. "properties": {
  22717. "type": {
  22718. "type": "string",
  22719. "enum": [
  22720. "text"
  22721. ]
  22722. }
  22723. },
  22724. "required": [
  22725. "type"
  22726. ],
  22727. "additionalProperties": false
  22728. },
  22729. {
  22730. "type": "object",
  22731. "properties": {
  22732. "type": {
  22733. "type": "string",
  22734. "enum": [
  22735. "json_schema"
  22736. ]
  22737. },
  22738. "schema": {
  22739. "$ref": "#/components/schemas/SessionV1.JSONSchema"
  22740. },
  22741. "retryCount": {
  22742. "anyOf": [
  22743. {
  22744. "anyOf": [
  22745. {
  22746. "type": "integer",
  22747. "allOf": [
  22748. {
  22749. "minimum": 0
  22750. }
  22751. ]
  22752. },
  22753. {
  22754. "type": "null"
  22755. }
  22756. ]
  22757. },
  22758. {
  22759. "type": "null"
  22760. }
  22761. ]
  22762. }
  22763. },
  22764. "required": [
  22765. "type",
  22766. "schema"
  22767. ],
  22768. "additionalProperties": false
  22769. }
  22770. ]
  22771. },
  22772. "SessionV1.UserMessage": {
  22773. "type": "object",
  22774. "properties": {
  22775. "id": {
  22776. "type": "string",
  22777. "allOf": [
  22778. {
  22779. "pattern": "^msg"
  22780. }
  22781. ]
  22782. },
  22783. "sessionID": {
  22784. "type": "string",
  22785. "allOf": [
  22786. {
  22787. "pattern": "^ses"
  22788. }
  22789. ]
  22790. },
  22791. "role": {
  22792. "type": "string",
  22793. "enum": [
  22794. "user"
  22795. ]
  22796. },
  22797. "time": {
  22798. "type": "object",
  22799. "properties": {
  22800. "created": {
  22801. "type": "number",
  22802. "allOf": [
  22803. {
  22804. "minimum": 0
  22805. }
  22806. ]
  22807. }
  22808. },
  22809. "required": [
  22810. "created"
  22811. ],
  22812. "additionalProperties": false
  22813. },
  22814. "format": {
  22815. "anyOf": [
  22816. {
  22817. "$ref": "#/components/schemas/SessionV1.OutputFormat"
  22818. },
  22819. {
  22820. "type": "null"
  22821. }
  22822. ]
  22823. },
  22824. "summary": {
  22825. "anyOf": [
  22826. {
  22827. "type": "object",
  22828. "properties": {
  22829. "title": {
  22830. "anyOf": [
  22831. {
  22832. "type": "string"
  22833. },
  22834. {
  22835. "type": "null"
  22836. }
  22837. ]
  22838. },
  22839. "body": {
  22840. "anyOf": [
  22841. {
  22842. "type": "string"
  22843. },
  22844. {
  22845. "type": "null"
  22846. }
  22847. ]
  22848. },
  22849. "diffs": {
  22850. "type": "array",
  22851. "items": {
  22852. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  22853. }
  22854. }
  22855. },
  22856. "required": [
  22857. "diffs"
  22858. ],
  22859. "additionalProperties": false
  22860. },
  22861. {
  22862. "type": "null"
  22863. }
  22864. ]
  22865. },
  22866. "agent": {
  22867. "type": "string"
  22868. },
  22869. "model": {
  22870. "type": "object",
  22871. "properties": {
  22872. "providerID": {
  22873. "type": "string"
  22874. },
  22875. "modelID": {
  22876. "type": "string"
  22877. },
  22878. "variant": {
  22879. "anyOf": [
  22880. {
  22881. "type": "string"
  22882. },
  22883. {
  22884. "type": "null"
  22885. }
  22886. ]
  22887. }
  22888. },
  22889. "required": [
  22890. "providerID",
  22891. "modelID"
  22892. ],
  22893. "additionalProperties": false
  22894. },
  22895. "system": {
  22896. "anyOf": [
  22897. {
  22898. "type": "string"
  22899. },
  22900. {
  22901. "type": "null"
  22902. }
  22903. ]
  22904. },
  22905. "tools": {
  22906. "anyOf": [
  22907. {
  22908. "type": "object",
  22909. "additionalProperties": {
  22910. "type": "boolean"
  22911. }
  22912. },
  22913. {
  22914. "type": "null"
  22915. }
  22916. ]
  22917. }
  22918. },
  22919. "required": [
  22920. "id",
  22921. "sessionID",
  22922. "role",
  22923. "time",
  22924. "agent",
  22925. "model"
  22926. ],
  22927. "additionalProperties": false
  22928. },
  22929. "ProviderAuthError": {
  22930. "type": "object",
  22931. "properties": {
  22932. "name": {
  22933. "type": "string",
  22934. "enum": [
  22935. "ProviderAuthError"
  22936. ]
  22937. },
  22938. "data": {
  22939. "type": "object",
  22940. "properties": {
  22941. "providerID": {
  22942. "type": "string"
  22943. },
  22944. "message": {
  22945. "type": "string"
  22946. }
  22947. },
  22948. "required": [
  22949. "providerID",
  22950. "message"
  22951. ],
  22952. "additionalProperties": false
  22953. }
  22954. },
  22955. "required": [
  22956. "name",
  22957. "data"
  22958. ],
  22959. "additionalProperties": false
  22960. },
  22961. "UnknownError1": {
  22962. "type": "object",
  22963. "properties": {
  22964. "name": {
  22965. "type": "string",
  22966. "enum": [
  22967. "UnknownError"
  22968. ]
  22969. },
  22970. "data": {
  22971. "type": "object",
  22972. "properties": {
  22973. "message": {
  22974. "type": "string"
  22975. },
  22976. "ref": {
  22977. "anyOf": [
  22978. {
  22979. "type": "string"
  22980. },
  22981. {
  22982. "type": "null"
  22983. }
  22984. ]
  22985. }
  22986. },
  22987. "required": [
  22988. "message"
  22989. ],
  22990. "additionalProperties": false
  22991. }
  22992. },
  22993. "required": [
  22994. "name",
  22995. "data"
  22996. ],
  22997. "additionalProperties": false
  22998. },
  22999. "MessageOutputLengthError": {
  23000. "type": "object",
  23001. "properties": {
  23002. "name": {
  23003. "type": "string",
  23004. "enum": [
  23005. "MessageOutputLengthError"
  23006. ]
  23007. },
  23008. "data": {
  23009. "anyOf": [
  23010. {
  23011. "type": "object"
  23012. },
  23013. {
  23014. "type": "array"
  23015. }
  23016. ]
  23017. }
  23018. },
  23019. "required": [
  23020. "name",
  23021. "data"
  23022. ],
  23023. "additionalProperties": false
  23024. },
  23025. "MessageAbortedError": {
  23026. "type": "object",
  23027. "properties": {
  23028. "name": {
  23029. "type": "string",
  23030. "enum": [
  23031. "MessageAbortedError"
  23032. ]
  23033. },
  23034. "data": {
  23035. "type": "object",
  23036. "properties": {
  23037. "message": {
  23038. "type": "string"
  23039. }
  23040. },
  23041. "required": [
  23042. "message"
  23043. ],
  23044. "additionalProperties": false
  23045. }
  23046. },
  23047. "required": [
  23048. "name",
  23049. "data"
  23050. ],
  23051. "additionalProperties": false
  23052. },
  23053. "StructuredOutputError": {
  23054. "type": "object",
  23055. "properties": {
  23056. "name": {
  23057. "type": "string",
  23058. "enum": [
  23059. "StructuredOutputError"
  23060. ]
  23061. },
  23062. "data": {
  23063. "type": "object",
  23064. "properties": {
  23065. "message": {
  23066. "type": "string"
  23067. },
  23068. "retries": {
  23069. "type": "integer",
  23070. "allOf": [
  23071. {
  23072. "minimum": 0
  23073. }
  23074. ]
  23075. }
  23076. },
  23077. "required": [
  23078. "message",
  23079. "retries"
  23080. ],
  23081. "additionalProperties": false
  23082. }
  23083. },
  23084. "required": [
  23085. "name",
  23086. "data"
  23087. ],
  23088. "additionalProperties": false
  23089. },
  23090. "ContextOverflowError": {
  23091. "type": "object",
  23092. "properties": {
  23093. "name": {
  23094. "type": "string",
  23095. "enum": [
  23096. "ContextOverflowError"
  23097. ]
  23098. },
  23099. "data": {
  23100. "type": "object",
  23101. "properties": {
  23102. "message": {
  23103. "type": "string"
  23104. },
  23105. "responseBody": {
  23106. "anyOf": [
  23107. {
  23108. "type": "string"
  23109. },
  23110. {
  23111. "type": "null"
  23112. }
  23113. ]
  23114. }
  23115. },
  23116. "required": [
  23117. "message"
  23118. ],
  23119. "additionalProperties": false
  23120. }
  23121. },
  23122. "required": [
  23123. "name",
  23124. "data"
  23125. ],
  23126. "additionalProperties": false
  23127. },
  23128. "ContentFilterError": {
  23129. "type": "object",
  23130. "properties": {
  23131. "name": {
  23132. "type": "string",
  23133. "enum": [
  23134. "ContentFilterError"
  23135. ]
  23136. },
  23137. "data": {
  23138. "type": "object",
  23139. "properties": {
  23140. "message": {
  23141. "type": "string"
  23142. }
  23143. },
  23144. "required": [
  23145. "message"
  23146. ],
  23147. "additionalProperties": false
  23148. }
  23149. },
  23150. "required": [
  23151. "name",
  23152. "data"
  23153. ],
  23154. "additionalProperties": false
  23155. },
  23156. "APIError": {
  23157. "type": "object",
  23158. "properties": {
  23159. "name": {
  23160. "type": "string",
  23161. "enum": [
  23162. "APIError"
  23163. ]
  23164. },
  23165. "data": {
  23166. "type": "object",
  23167. "properties": {
  23168. "message": {
  23169. "type": "string"
  23170. },
  23171. "statusCode": {
  23172. "anyOf": [
  23173. {
  23174. "type": "integer",
  23175. "allOf": [
  23176. {
  23177. "minimum": 0
  23178. }
  23179. ]
  23180. },
  23181. {
  23182. "type": "null"
  23183. }
  23184. ]
  23185. },
  23186. "isRetryable": {
  23187. "type": "boolean"
  23188. },
  23189. "responseHeaders": {
  23190. "anyOf": [
  23191. {
  23192. "type": "object",
  23193. "additionalProperties": {
  23194. "type": "string"
  23195. }
  23196. },
  23197. {
  23198. "type": "null"
  23199. }
  23200. ]
  23201. },
  23202. "responseBody": {
  23203. "anyOf": [
  23204. {
  23205. "type": "string"
  23206. },
  23207. {
  23208. "type": "null"
  23209. }
  23210. ]
  23211. },
  23212. "metadata": {
  23213. "anyOf": [
  23214. {
  23215. "type": "object",
  23216. "additionalProperties": {
  23217. "type": "string"
  23218. }
  23219. },
  23220. {
  23221. "type": "null"
  23222. }
  23223. ]
  23224. }
  23225. },
  23226. "required": [
  23227. "message",
  23228. "isRetryable"
  23229. ],
  23230. "additionalProperties": false
  23231. }
  23232. },
  23233. "required": [
  23234. "name",
  23235. "data"
  23236. ],
  23237. "additionalProperties": false
  23238. },
  23239. "SessionV1.AssistantMessage": {
  23240. "type": "object",
  23241. "properties": {
  23242. "id": {
  23243. "type": "string",
  23244. "allOf": [
  23245. {
  23246. "pattern": "^msg"
  23247. }
  23248. ]
  23249. },
  23250. "sessionID": {
  23251. "type": "string",
  23252. "allOf": [
  23253. {
  23254. "pattern": "^ses"
  23255. }
  23256. ]
  23257. },
  23258. "role": {
  23259. "type": "string",
  23260. "enum": [
  23261. "assistant"
  23262. ]
  23263. },
  23264. "time": {
  23265. "type": "object",
  23266. "properties": {
  23267. "created": {
  23268. "type": "integer",
  23269. "allOf": [
  23270. {
  23271. "minimum": 0
  23272. }
  23273. ]
  23274. },
  23275. "completed": {
  23276. "anyOf": [
  23277. {
  23278. "type": "integer",
  23279. "allOf": [
  23280. {
  23281. "minimum": 0
  23282. }
  23283. ]
  23284. },
  23285. {
  23286. "type": "null"
  23287. }
  23288. ]
  23289. }
  23290. },
  23291. "required": [
  23292. "created"
  23293. ],
  23294. "additionalProperties": false
  23295. },
  23296. "error": {
  23297. "anyOf": [
  23298. {
  23299. "anyOf": [
  23300. {
  23301. "$ref": "#/components/schemas/ProviderAuthError"
  23302. },
  23303. {
  23304. "$ref": "#/components/schemas/UnknownError1"
  23305. },
  23306. {
  23307. "$ref": "#/components/schemas/MessageOutputLengthError"
  23308. },
  23309. {
  23310. "$ref": "#/components/schemas/MessageAbortedError"
  23311. },
  23312. {
  23313. "$ref": "#/components/schemas/StructuredOutputError"
  23314. },
  23315. {
  23316. "$ref": "#/components/schemas/ContextOverflowError"
  23317. },
  23318. {
  23319. "$ref": "#/components/schemas/ContentFilterError"
  23320. },
  23321. {
  23322. "$ref": "#/components/schemas/APIError"
  23323. }
  23324. ]
  23325. },
  23326. {
  23327. "type": "null"
  23328. }
  23329. ]
  23330. },
  23331. "parentID": {
  23332. "type": "string",
  23333. "allOf": [
  23334. {
  23335. "pattern": "^msg"
  23336. }
  23337. ]
  23338. },
  23339. "modelID": {
  23340. "type": "string"
  23341. },
  23342. "providerID": {
  23343. "type": "string"
  23344. },
  23345. "mode": {
  23346. "type": "string"
  23347. },
  23348. "agent": {
  23349. "type": "string"
  23350. },
  23351. "path": {
  23352. "type": "object",
  23353. "properties": {
  23354. "cwd": {
  23355. "type": "string"
  23356. },
  23357. "root": {
  23358. "type": "string"
  23359. }
  23360. },
  23361. "required": [
  23362. "cwd",
  23363. "root"
  23364. ],
  23365. "additionalProperties": false
  23366. },
  23367. "summary": {
  23368. "anyOf": [
  23369. {
  23370. "type": "boolean"
  23371. },
  23372. {
  23373. "type": "null"
  23374. }
  23375. ]
  23376. },
  23377. "cost": {
  23378. "type": "number"
  23379. },
  23380. "tokens": {
  23381. "type": "object",
  23382. "properties": {
  23383. "total": {
  23384. "anyOf": [
  23385. {
  23386. "type": "number"
  23387. },
  23388. {
  23389. "type": "null"
  23390. }
  23391. ]
  23392. },
  23393. "input": {
  23394. "type": "number"
  23395. },
  23396. "output": {
  23397. "type": "number"
  23398. },
  23399. "reasoning": {
  23400. "type": "number"
  23401. },
  23402. "cache": {
  23403. "type": "object",
  23404. "properties": {
  23405. "read": {
  23406. "type": "number"
  23407. },
  23408. "write": {
  23409. "type": "number"
  23410. }
  23411. },
  23412. "required": [
  23413. "read",
  23414. "write"
  23415. ],
  23416. "additionalProperties": false
  23417. }
  23418. },
  23419. "required": [
  23420. "input",
  23421. "output",
  23422. "reasoning",
  23423. "cache"
  23424. ],
  23425. "additionalProperties": false
  23426. },
  23427. "structured": {
  23428. "anyOf": [
  23429. {},
  23430. {
  23431. "type": "null"
  23432. }
  23433. ]
  23434. },
  23435. "variant": {
  23436. "anyOf": [
  23437. {
  23438. "type": "string"
  23439. },
  23440. {
  23441. "type": "null"
  23442. }
  23443. ]
  23444. },
  23445. "finish": {
  23446. "anyOf": [
  23447. {
  23448. "type": "string"
  23449. },
  23450. {
  23451. "type": "null"
  23452. }
  23453. ]
  23454. }
  23455. },
  23456. "required": [
  23457. "id",
  23458. "sessionID",
  23459. "role",
  23460. "time",
  23461. "parentID",
  23462. "modelID",
  23463. "providerID",
  23464. "mode",
  23465. "agent",
  23466. "path",
  23467. "cost",
  23468. "tokens"
  23469. ],
  23470. "additionalProperties": false
  23471. },
  23472. "SessionV1.Message": {
  23473. "anyOf": [
  23474. {
  23475. "$ref": "#/components/schemas/SessionV1.UserMessage"
  23476. },
  23477. {
  23478. "$ref": "#/components/schemas/SessionV1.AssistantMessage"
  23479. }
  23480. ]
  23481. },
  23482. "message.updated": {
  23483. "type": "object",
  23484. "properties": {
  23485. "id": {
  23486. "type": "string",
  23487. "allOf": [
  23488. {
  23489. "pattern": "^evt_"
  23490. }
  23491. ]
  23492. },
  23493. "created": {
  23494. "type": "number"
  23495. },
  23496. "metadata": {
  23497. "type": "object"
  23498. },
  23499. "type": {
  23500. "type": "string",
  23501. "enum": [
  23502. "message.updated"
  23503. ]
  23504. },
  23505. "durable": {
  23506. "type": "object",
  23507. "properties": {
  23508. "aggregateID": {
  23509. "type": "string"
  23510. },
  23511. "seq": {
  23512. "type": "integer",
  23513. "allOf": [
  23514. {
  23515. "minimum": 0
  23516. }
  23517. ]
  23518. },
  23519. "version": {
  23520. "type": "number",
  23521. "enum": [
  23522. 1
  23523. ]
  23524. }
  23525. },
  23526. "required": [
  23527. "aggregateID",
  23528. "seq",
  23529. "version"
  23530. ],
  23531. "additionalProperties": false
  23532. },
  23533. "location": {
  23534. "$ref": "#/components/schemas/Location.Ref"
  23535. },
  23536. "data": {
  23537. "type": "object",
  23538. "properties": {
  23539. "sessionID": {
  23540. "type": "string",
  23541. "allOf": [
  23542. {
  23543. "pattern": "^ses"
  23544. }
  23545. ]
  23546. },
  23547. "info": {
  23548. "$ref": "#/components/schemas/SessionV1.Message"
  23549. }
  23550. },
  23551. "required": [
  23552. "sessionID",
  23553. "info"
  23554. ],
  23555. "additionalProperties": false
  23556. }
  23557. },
  23558. "required": [
  23559. "id",
  23560. "created",
  23561. "type",
  23562. "durable",
  23563. "data"
  23564. ],
  23565. "additionalProperties": false
  23566. },
  23567. "message.removed": {
  23568. "type": "object",
  23569. "properties": {
  23570. "id": {
  23571. "type": "string",
  23572. "allOf": [
  23573. {
  23574. "pattern": "^evt_"
  23575. }
  23576. ]
  23577. },
  23578. "created": {
  23579. "type": "number"
  23580. },
  23581. "metadata": {
  23582. "type": "object"
  23583. },
  23584. "type": {
  23585. "type": "string",
  23586. "enum": [
  23587. "message.removed"
  23588. ]
  23589. },
  23590. "durable": {
  23591. "type": "object",
  23592. "properties": {
  23593. "aggregateID": {
  23594. "type": "string"
  23595. },
  23596. "seq": {
  23597. "type": "integer",
  23598. "allOf": [
  23599. {
  23600. "minimum": 0
  23601. }
  23602. ]
  23603. },
  23604. "version": {
  23605. "type": "number",
  23606. "enum": [
  23607. 1
  23608. ]
  23609. }
  23610. },
  23611. "required": [
  23612. "aggregateID",
  23613. "seq",
  23614. "version"
  23615. ],
  23616. "additionalProperties": false
  23617. },
  23618. "location": {
  23619. "$ref": "#/components/schemas/Location.Ref"
  23620. },
  23621. "data": {
  23622. "type": "object",
  23623. "properties": {
  23624. "sessionID": {
  23625. "type": "string",
  23626. "allOf": [
  23627. {
  23628. "pattern": "^ses"
  23629. }
  23630. ]
  23631. },
  23632. "messageID": {
  23633. "type": "string",
  23634. "allOf": [
  23635. {
  23636. "pattern": "^msg"
  23637. }
  23638. ]
  23639. }
  23640. },
  23641. "required": [
  23642. "sessionID",
  23643. "messageID"
  23644. ],
  23645. "additionalProperties": false
  23646. }
  23647. },
  23648. "required": [
  23649. "id",
  23650. "created",
  23651. "type",
  23652. "durable",
  23653. "data"
  23654. ],
  23655. "additionalProperties": false
  23656. },
  23657. "SessionV1.TextPart": {
  23658. "type": "object",
  23659. "properties": {
  23660. "id": {
  23661. "type": "string",
  23662. "allOf": [
  23663. {
  23664. "pattern": "^prt"
  23665. }
  23666. ]
  23667. },
  23668. "sessionID": {
  23669. "type": "string",
  23670. "allOf": [
  23671. {
  23672. "pattern": "^ses"
  23673. }
  23674. ]
  23675. },
  23676. "messageID": {
  23677. "type": "string",
  23678. "allOf": [
  23679. {
  23680. "pattern": "^msg"
  23681. }
  23682. ]
  23683. },
  23684. "type": {
  23685. "type": "string",
  23686. "enum": [
  23687. "text"
  23688. ]
  23689. },
  23690. "text": {
  23691. "type": "string"
  23692. },
  23693. "synthetic": {
  23694. "anyOf": [
  23695. {
  23696. "type": "boolean"
  23697. },
  23698. {
  23699. "type": "null"
  23700. }
  23701. ]
  23702. },
  23703. "ignored": {
  23704. "anyOf": [
  23705. {
  23706. "type": "boolean"
  23707. },
  23708. {
  23709. "type": "null"
  23710. }
  23711. ]
  23712. },
  23713. "time": {
  23714. "anyOf": [
  23715. {
  23716. "type": "object",
  23717. "properties": {
  23718. "start": {
  23719. "type": "integer",
  23720. "allOf": [
  23721. {
  23722. "minimum": 0
  23723. }
  23724. ]
  23725. },
  23726. "end": {
  23727. "anyOf": [
  23728. {
  23729. "type": "integer",
  23730. "allOf": [
  23731. {
  23732. "minimum": 0
  23733. }
  23734. ]
  23735. },
  23736. {
  23737. "type": "null"
  23738. }
  23739. ]
  23740. }
  23741. },
  23742. "required": [
  23743. "start"
  23744. ],
  23745. "additionalProperties": false
  23746. },
  23747. {
  23748. "type": "null"
  23749. }
  23750. ]
  23751. },
  23752. "metadata": {
  23753. "anyOf": [
  23754. {
  23755. "type": "object"
  23756. },
  23757. {
  23758. "type": "null"
  23759. }
  23760. ]
  23761. }
  23762. },
  23763. "required": [
  23764. "id",
  23765. "sessionID",
  23766. "messageID",
  23767. "type",
  23768. "text"
  23769. ],
  23770. "additionalProperties": false
  23771. },
  23772. "SessionV1.SubtaskPart": {
  23773. "type": "object",
  23774. "properties": {
  23775. "id": {
  23776. "type": "string",
  23777. "allOf": [
  23778. {
  23779. "pattern": "^prt"
  23780. }
  23781. ]
  23782. },
  23783. "sessionID": {
  23784. "type": "string",
  23785. "allOf": [
  23786. {
  23787. "pattern": "^ses"
  23788. }
  23789. ]
  23790. },
  23791. "messageID": {
  23792. "type": "string",
  23793. "allOf": [
  23794. {
  23795. "pattern": "^msg"
  23796. }
  23797. ]
  23798. },
  23799. "type": {
  23800. "type": "string",
  23801. "enum": [
  23802. "subtask"
  23803. ]
  23804. },
  23805. "prompt": {
  23806. "type": "string"
  23807. },
  23808. "description": {
  23809. "type": "string"
  23810. },
  23811. "agent": {
  23812. "type": "string"
  23813. },
  23814. "model": {
  23815. "anyOf": [
  23816. {
  23817. "type": "object",
  23818. "properties": {
  23819. "providerID": {
  23820. "type": "string"
  23821. },
  23822. "modelID": {
  23823. "type": "string"
  23824. }
  23825. },
  23826. "required": [
  23827. "providerID",
  23828. "modelID"
  23829. ],
  23830. "additionalProperties": false
  23831. },
  23832. {
  23833. "type": "null"
  23834. }
  23835. ]
  23836. },
  23837. "command": {
  23838. "anyOf": [
  23839. {
  23840. "type": "string"
  23841. },
  23842. {
  23843. "type": "null"
  23844. }
  23845. ]
  23846. }
  23847. },
  23848. "required": [
  23849. "id",
  23850. "sessionID",
  23851. "messageID",
  23852. "type",
  23853. "prompt",
  23854. "description",
  23855. "agent"
  23856. ],
  23857. "additionalProperties": false
  23858. },
  23859. "SessionV1.ReasoningPart": {
  23860. "type": "object",
  23861. "properties": {
  23862. "id": {
  23863. "type": "string",
  23864. "allOf": [
  23865. {
  23866. "pattern": "^prt"
  23867. }
  23868. ]
  23869. },
  23870. "sessionID": {
  23871. "type": "string",
  23872. "allOf": [
  23873. {
  23874. "pattern": "^ses"
  23875. }
  23876. ]
  23877. },
  23878. "messageID": {
  23879. "type": "string",
  23880. "allOf": [
  23881. {
  23882. "pattern": "^msg"
  23883. }
  23884. ]
  23885. },
  23886. "type": {
  23887. "type": "string",
  23888. "enum": [
  23889. "reasoning"
  23890. ]
  23891. },
  23892. "text": {
  23893. "type": "string"
  23894. },
  23895. "metadata": {
  23896. "anyOf": [
  23897. {
  23898. "type": "object"
  23899. },
  23900. {
  23901. "type": "null"
  23902. }
  23903. ]
  23904. },
  23905. "time": {
  23906. "type": "object",
  23907. "properties": {
  23908. "start": {
  23909. "type": "integer",
  23910. "allOf": [
  23911. {
  23912. "minimum": 0
  23913. }
  23914. ]
  23915. },
  23916. "end": {
  23917. "anyOf": [
  23918. {
  23919. "type": "integer",
  23920. "allOf": [
  23921. {
  23922. "minimum": 0
  23923. }
  23924. ]
  23925. },
  23926. {
  23927. "type": "null"
  23928. }
  23929. ]
  23930. }
  23931. },
  23932. "required": [
  23933. "start"
  23934. ],
  23935. "additionalProperties": false
  23936. }
  23937. },
  23938. "required": [
  23939. "id",
  23940. "sessionID",
  23941. "messageID",
  23942. "type",
  23943. "text",
  23944. "time"
  23945. ],
  23946. "additionalProperties": false
  23947. },
  23948. "SessionV1.FilePartSourceText": {
  23949. "type": "object",
  23950. "properties": {
  23951. "value": {
  23952. "type": "string"
  23953. },
  23954. "start": {
  23955. "type": "number"
  23956. },
  23957. "end": {
  23958. "type": "number"
  23959. }
  23960. },
  23961. "required": [
  23962. "value",
  23963. "start",
  23964. "end"
  23965. ],
  23966. "additionalProperties": false
  23967. },
  23968. "SessionV1.FileSource": {
  23969. "type": "object",
  23970. "properties": {
  23971. "text": {
  23972. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  23973. },
  23974. "type": {
  23975. "type": "string",
  23976. "enum": [
  23977. "file"
  23978. ]
  23979. },
  23980. "path": {
  23981. "type": "string"
  23982. }
  23983. },
  23984. "required": [
  23985. "text",
  23986. "type",
  23987. "path"
  23988. ],
  23989. "additionalProperties": false
  23990. },
  23991. "SessionV1.Range": {
  23992. "type": "object",
  23993. "properties": {
  23994. "start": {
  23995. "type": "object",
  23996. "properties": {
  23997. "line": {
  23998. "type": "integer",
  23999. "allOf": [
  24000. {
  24001. "minimum": 0
  24002. }
  24003. ]
  24004. },
  24005. "character": {
  24006. "type": "integer",
  24007. "allOf": [
  24008. {
  24009. "minimum": 0
  24010. }
  24011. ]
  24012. }
  24013. },
  24014. "required": [
  24015. "line",
  24016. "character"
  24017. ],
  24018. "additionalProperties": false
  24019. },
  24020. "end": {
  24021. "type": "object",
  24022. "properties": {
  24023. "line": {
  24024. "type": "integer",
  24025. "allOf": [
  24026. {
  24027. "minimum": 0
  24028. }
  24029. ]
  24030. },
  24031. "character": {
  24032. "type": "integer",
  24033. "allOf": [
  24034. {
  24035. "minimum": 0
  24036. }
  24037. ]
  24038. }
  24039. },
  24040. "required": [
  24041. "line",
  24042. "character"
  24043. ],
  24044. "additionalProperties": false
  24045. }
  24046. },
  24047. "required": [
  24048. "start",
  24049. "end"
  24050. ],
  24051. "additionalProperties": false
  24052. },
  24053. "SessionV1.SymbolSource": {
  24054. "type": "object",
  24055. "properties": {
  24056. "text": {
  24057. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  24058. },
  24059. "type": {
  24060. "type": "string",
  24061. "enum": [
  24062. "symbol"
  24063. ]
  24064. },
  24065. "path": {
  24066. "type": "string"
  24067. },
  24068. "range": {
  24069. "$ref": "#/components/schemas/SessionV1.Range"
  24070. },
  24071. "name": {
  24072. "type": "string"
  24073. },
  24074. "kind": {
  24075. "type": "integer",
  24076. "allOf": [
  24077. {
  24078. "minimum": 0
  24079. }
  24080. ]
  24081. }
  24082. },
  24083. "required": [
  24084. "text",
  24085. "type",
  24086. "path",
  24087. "range",
  24088. "name",
  24089. "kind"
  24090. ],
  24091. "additionalProperties": false
  24092. },
  24093. "SessionV1.ResourceSource": {
  24094. "type": "object",
  24095. "properties": {
  24096. "text": {
  24097. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  24098. },
  24099. "type": {
  24100. "type": "string",
  24101. "enum": [
  24102. "resource"
  24103. ]
  24104. },
  24105. "clientName": {
  24106. "type": "string"
  24107. },
  24108. "uri": {
  24109. "type": "string"
  24110. }
  24111. },
  24112. "required": [
  24113. "text",
  24114. "type",
  24115. "clientName",
  24116. "uri"
  24117. ],
  24118. "additionalProperties": false
  24119. },
  24120. "SessionV1.FilePartSource": {
  24121. "anyOf": [
  24122. {
  24123. "$ref": "#/components/schemas/SessionV1.FileSource"
  24124. },
  24125. {
  24126. "$ref": "#/components/schemas/SessionV1.SymbolSource"
  24127. },
  24128. {
  24129. "$ref": "#/components/schemas/SessionV1.ResourceSource"
  24130. }
  24131. ]
  24132. },
  24133. "SessionV1.FilePart": {
  24134. "type": "object",
  24135. "properties": {
  24136. "id": {
  24137. "type": "string",
  24138. "allOf": [
  24139. {
  24140. "pattern": "^prt"
  24141. }
  24142. ]
  24143. },
  24144. "sessionID": {
  24145. "type": "string",
  24146. "allOf": [
  24147. {
  24148. "pattern": "^ses"
  24149. }
  24150. ]
  24151. },
  24152. "messageID": {
  24153. "type": "string",
  24154. "allOf": [
  24155. {
  24156. "pattern": "^msg"
  24157. }
  24158. ]
  24159. },
  24160. "type": {
  24161. "type": "string",
  24162. "enum": [
  24163. "file"
  24164. ]
  24165. },
  24166. "mime": {
  24167. "type": "string"
  24168. },
  24169. "filename": {
  24170. "anyOf": [
  24171. {
  24172. "type": "string"
  24173. },
  24174. {
  24175. "type": "null"
  24176. }
  24177. ]
  24178. },
  24179. "url": {
  24180. "type": "string"
  24181. },
  24182. "source": {
  24183. "anyOf": [
  24184. {
  24185. "$ref": "#/components/schemas/SessionV1.FilePartSource"
  24186. },
  24187. {
  24188. "type": "null"
  24189. }
  24190. ]
  24191. }
  24192. },
  24193. "required": [
  24194. "id",
  24195. "sessionID",
  24196. "messageID",
  24197. "type",
  24198. "mime",
  24199. "url"
  24200. ],
  24201. "additionalProperties": false
  24202. },
  24203. "SessionV1.ToolStatePending": {
  24204. "type": "object",
  24205. "properties": {
  24206. "status": {
  24207. "type": "string",
  24208. "enum": [
  24209. "pending"
  24210. ]
  24211. },
  24212. "input": {
  24213. "type": "object"
  24214. },
  24215. "raw": {
  24216. "type": "string"
  24217. }
  24218. },
  24219. "required": [
  24220. "status",
  24221. "input",
  24222. "raw"
  24223. ],
  24224. "additionalProperties": false
  24225. },
  24226. "SessionV1.ToolStateRunning": {
  24227. "type": "object",
  24228. "properties": {
  24229. "status": {
  24230. "type": "string",
  24231. "enum": [
  24232. "running"
  24233. ]
  24234. },
  24235. "input": {
  24236. "type": "object"
  24237. },
  24238. "title": {
  24239. "anyOf": [
  24240. {
  24241. "type": "string"
  24242. },
  24243. {
  24244. "type": "null"
  24245. }
  24246. ]
  24247. },
  24248. "metadata": {
  24249. "anyOf": [
  24250. {
  24251. "type": "object"
  24252. },
  24253. {
  24254. "type": "null"
  24255. }
  24256. ]
  24257. },
  24258. "time": {
  24259. "type": "object",
  24260. "properties": {
  24261. "start": {
  24262. "type": "integer",
  24263. "allOf": [
  24264. {
  24265. "minimum": 0
  24266. }
  24267. ]
  24268. }
  24269. },
  24270. "required": [
  24271. "start"
  24272. ],
  24273. "additionalProperties": false
  24274. }
  24275. },
  24276. "required": [
  24277. "status",
  24278. "input",
  24279. "time"
  24280. ],
  24281. "additionalProperties": false
  24282. },
  24283. "SessionV1.ToolStateCompleted": {
  24284. "type": "object",
  24285. "properties": {
  24286. "status": {
  24287. "type": "string",
  24288. "enum": [
  24289. "completed"
  24290. ]
  24291. },
  24292. "input": {
  24293. "type": "object"
  24294. },
  24295. "output": {
  24296. "type": "string"
  24297. },
  24298. "title": {
  24299. "type": "string"
  24300. },
  24301. "metadata": {
  24302. "type": "object"
  24303. },
  24304. "time": {
  24305. "type": "object",
  24306. "properties": {
  24307. "start": {
  24308. "type": "integer",
  24309. "allOf": [
  24310. {
  24311. "minimum": 0
  24312. }
  24313. ]
  24314. },
  24315. "end": {
  24316. "type": "integer",
  24317. "allOf": [
  24318. {
  24319. "minimum": 0
  24320. }
  24321. ]
  24322. },
  24323. "compacted": {
  24324. "anyOf": [
  24325. {
  24326. "type": "integer",
  24327. "allOf": [
  24328. {
  24329. "minimum": 0
  24330. }
  24331. ]
  24332. },
  24333. {
  24334. "type": "null"
  24335. }
  24336. ]
  24337. }
  24338. },
  24339. "required": [
  24340. "start",
  24341. "end"
  24342. ],
  24343. "additionalProperties": false
  24344. },
  24345. "attachments": {
  24346. "anyOf": [
  24347. {
  24348. "type": "array",
  24349. "items": {
  24350. "$ref": "#/components/schemas/SessionV1.FilePart"
  24351. }
  24352. },
  24353. {
  24354. "type": "null"
  24355. }
  24356. ]
  24357. }
  24358. },
  24359. "required": [
  24360. "status",
  24361. "input",
  24362. "output",
  24363. "title",
  24364. "metadata",
  24365. "time"
  24366. ],
  24367. "additionalProperties": false
  24368. },
  24369. "SessionV1.ToolStateError": {
  24370. "type": "object",
  24371. "properties": {
  24372. "status": {
  24373. "type": "string",
  24374. "enum": [
  24375. "error"
  24376. ]
  24377. },
  24378. "input": {
  24379. "type": "object"
  24380. },
  24381. "error": {
  24382. "type": "string"
  24383. },
  24384. "metadata": {
  24385. "anyOf": [
  24386. {
  24387. "type": "object"
  24388. },
  24389. {
  24390. "type": "null"
  24391. }
  24392. ]
  24393. },
  24394. "time": {
  24395. "type": "object",
  24396. "properties": {
  24397. "start": {
  24398. "type": "integer",
  24399. "allOf": [
  24400. {
  24401. "minimum": 0
  24402. }
  24403. ]
  24404. },
  24405. "end": {
  24406. "type": "integer",
  24407. "allOf": [
  24408. {
  24409. "minimum": 0
  24410. }
  24411. ]
  24412. }
  24413. },
  24414. "required": [
  24415. "start",
  24416. "end"
  24417. ],
  24418. "additionalProperties": false
  24419. }
  24420. },
  24421. "required": [
  24422. "status",
  24423. "input",
  24424. "error",
  24425. "time"
  24426. ],
  24427. "additionalProperties": false
  24428. },
  24429. "SessionV1.ToolState": {
  24430. "anyOf": [
  24431. {
  24432. "$ref": "#/components/schemas/SessionV1.ToolStatePending"
  24433. },
  24434. {
  24435. "$ref": "#/components/schemas/SessionV1.ToolStateRunning"
  24436. },
  24437. {
  24438. "$ref": "#/components/schemas/SessionV1.ToolStateCompleted"
  24439. },
  24440. {
  24441. "$ref": "#/components/schemas/SessionV1.ToolStateError"
  24442. }
  24443. ]
  24444. },
  24445. "SessionV1.ToolPart": {
  24446. "type": "object",
  24447. "properties": {
  24448. "id": {
  24449. "type": "string",
  24450. "allOf": [
  24451. {
  24452. "pattern": "^prt"
  24453. }
  24454. ]
  24455. },
  24456. "sessionID": {
  24457. "type": "string",
  24458. "allOf": [
  24459. {
  24460. "pattern": "^ses"
  24461. }
  24462. ]
  24463. },
  24464. "messageID": {
  24465. "type": "string",
  24466. "allOf": [
  24467. {
  24468. "pattern": "^msg"
  24469. }
  24470. ]
  24471. },
  24472. "type": {
  24473. "type": "string",
  24474. "enum": [
  24475. "tool"
  24476. ]
  24477. },
  24478. "callID": {
  24479. "type": "string"
  24480. },
  24481. "tool": {
  24482. "type": "string"
  24483. },
  24484. "state": {
  24485. "$ref": "#/components/schemas/SessionV1.ToolState"
  24486. },
  24487. "metadata": {
  24488. "anyOf": [
  24489. {
  24490. "type": "object"
  24491. },
  24492. {
  24493. "type": "null"
  24494. }
  24495. ]
  24496. }
  24497. },
  24498. "required": [
  24499. "id",
  24500. "sessionID",
  24501. "messageID",
  24502. "type",
  24503. "callID",
  24504. "tool",
  24505. "state"
  24506. ],
  24507. "additionalProperties": false
  24508. },
  24509. "SessionV1.StepStartPart": {
  24510. "type": "object",
  24511. "properties": {
  24512. "id": {
  24513. "type": "string",
  24514. "allOf": [
  24515. {
  24516. "pattern": "^prt"
  24517. }
  24518. ]
  24519. },
  24520. "sessionID": {
  24521. "type": "string",
  24522. "allOf": [
  24523. {
  24524. "pattern": "^ses"
  24525. }
  24526. ]
  24527. },
  24528. "messageID": {
  24529. "type": "string",
  24530. "allOf": [
  24531. {
  24532. "pattern": "^msg"
  24533. }
  24534. ]
  24535. },
  24536. "type": {
  24537. "type": "string",
  24538. "enum": [
  24539. "step-start"
  24540. ]
  24541. },
  24542. "snapshot": {
  24543. "anyOf": [
  24544. {
  24545. "type": "string"
  24546. },
  24547. {
  24548. "type": "null"
  24549. }
  24550. ]
  24551. }
  24552. },
  24553. "required": [
  24554. "id",
  24555. "sessionID",
  24556. "messageID",
  24557. "type"
  24558. ],
  24559. "additionalProperties": false
  24560. },
  24561. "SessionV1.StepFinishPart": {
  24562. "type": "object",
  24563. "properties": {
  24564. "id": {
  24565. "type": "string",
  24566. "allOf": [
  24567. {
  24568. "pattern": "^prt"
  24569. }
  24570. ]
  24571. },
  24572. "sessionID": {
  24573. "type": "string",
  24574. "allOf": [
  24575. {
  24576. "pattern": "^ses"
  24577. }
  24578. ]
  24579. },
  24580. "messageID": {
  24581. "type": "string",
  24582. "allOf": [
  24583. {
  24584. "pattern": "^msg"
  24585. }
  24586. ]
  24587. },
  24588. "type": {
  24589. "type": "string",
  24590. "enum": [
  24591. "step-finish"
  24592. ]
  24593. },
  24594. "reason": {
  24595. "type": "string"
  24596. },
  24597. "snapshot": {
  24598. "anyOf": [
  24599. {
  24600. "type": "string"
  24601. },
  24602. {
  24603. "type": "null"
  24604. }
  24605. ]
  24606. },
  24607. "cost": {
  24608. "type": "number"
  24609. },
  24610. "tokens": {
  24611. "type": "object",
  24612. "properties": {
  24613. "total": {
  24614. "anyOf": [
  24615. {
  24616. "type": "number"
  24617. },
  24618. {
  24619. "type": "null"
  24620. }
  24621. ]
  24622. },
  24623. "input": {
  24624. "type": "number"
  24625. },
  24626. "output": {
  24627. "type": "number"
  24628. },
  24629. "reasoning": {
  24630. "type": "number"
  24631. },
  24632. "cache": {
  24633. "type": "object",
  24634. "properties": {
  24635. "read": {
  24636. "type": "number"
  24637. },
  24638. "write": {
  24639. "type": "number"
  24640. }
  24641. },
  24642. "required": [
  24643. "read",
  24644. "write"
  24645. ],
  24646. "additionalProperties": false
  24647. }
  24648. },
  24649. "required": [
  24650. "input",
  24651. "output",
  24652. "reasoning",
  24653. "cache"
  24654. ],
  24655. "additionalProperties": false
  24656. }
  24657. },
  24658. "required": [
  24659. "id",
  24660. "sessionID",
  24661. "messageID",
  24662. "type",
  24663. "reason",
  24664. "cost",
  24665. "tokens"
  24666. ],
  24667. "additionalProperties": false
  24668. },
  24669. "SessionV1.SnapshotPart": {
  24670. "type": "object",
  24671. "properties": {
  24672. "id": {
  24673. "type": "string",
  24674. "allOf": [
  24675. {
  24676. "pattern": "^prt"
  24677. }
  24678. ]
  24679. },
  24680. "sessionID": {
  24681. "type": "string",
  24682. "allOf": [
  24683. {
  24684. "pattern": "^ses"
  24685. }
  24686. ]
  24687. },
  24688. "messageID": {
  24689. "type": "string",
  24690. "allOf": [
  24691. {
  24692. "pattern": "^msg"
  24693. }
  24694. ]
  24695. },
  24696. "type": {
  24697. "type": "string",
  24698. "enum": [
  24699. "snapshot"
  24700. ]
  24701. },
  24702. "snapshot": {
  24703. "type": "string"
  24704. }
  24705. },
  24706. "required": [
  24707. "id",
  24708. "sessionID",
  24709. "messageID",
  24710. "type",
  24711. "snapshot"
  24712. ],
  24713. "additionalProperties": false
  24714. },
  24715. "SessionV1.PatchPart": {
  24716. "type": "object",
  24717. "properties": {
  24718. "id": {
  24719. "type": "string",
  24720. "allOf": [
  24721. {
  24722. "pattern": "^prt"
  24723. }
  24724. ]
  24725. },
  24726. "sessionID": {
  24727. "type": "string",
  24728. "allOf": [
  24729. {
  24730. "pattern": "^ses"
  24731. }
  24732. ]
  24733. },
  24734. "messageID": {
  24735. "type": "string",
  24736. "allOf": [
  24737. {
  24738. "pattern": "^msg"
  24739. }
  24740. ]
  24741. },
  24742. "type": {
  24743. "type": "string",
  24744. "enum": [
  24745. "patch"
  24746. ]
  24747. },
  24748. "hash": {
  24749. "type": "string"
  24750. },
  24751. "files": {
  24752. "type": "array",
  24753. "items": {
  24754. "type": "string"
  24755. }
  24756. }
  24757. },
  24758. "required": [
  24759. "id",
  24760. "sessionID",
  24761. "messageID",
  24762. "type",
  24763. "hash",
  24764. "files"
  24765. ],
  24766. "additionalProperties": false
  24767. },
  24768. "SessionV1.AgentPart": {
  24769. "type": "object",
  24770. "properties": {
  24771. "id": {
  24772. "type": "string",
  24773. "allOf": [
  24774. {
  24775. "pattern": "^prt"
  24776. }
  24777. ]
  24778. },
  24779. "sessionID": {
  24780. "type": "string",
  24781. "allOf": [
  24782. {
  24783. "pattern": "^ses"
  24784. }
  24785. ]
  24786. },
  24787. "messageID": {
  24788. "type": "string",
  24789. "allOf": [
  24790. {
  24791. "pattern": "^msg"
  24792. }
  24793. ]
  24794. },
  24795. "type": {
  24796. "type": "string",
  24797. "enum": [
  24798. "agent"
  24799. ]
  24800. },
  24801. "name": {
  24802. "type": "string"
  24803. },
  24804. "source": {
  24805. "anyOf": [
  24806. {
  24807. "type": "object",
  24808. "properties": {
  24809. "value": {
  24810. "type": "string"
  24811. },
  24812. "start": {
  24813. "type": "integer",
  24814. "allOf": [
  24815. {
  24816. "minimum": 0
  24817. }
  24818. ]
  24819. },
  24820. "end": {
  24821. "type": "integer",
  24822. "allOf": [
  24823. {
  24824. "minimum": 0
  24825. }
  24826. ]
  24827. }
  24828. },
  24829. "required": [
  24830. "value",
  24831. "start",
  24832. "end"
  24833. ],
  24834. "additionalProperties": false
  24835. },
  24836. {
  24837. "type": "null"
  24838. }
  24839. ]
  24840. }
  24841. },
  24842. "required": [
  24843. "id",
  24844. "sessionID",
  24845. "messageID",
  24846. "type",
  24847. "name"
  24848. ],
  24849. "additionalProperties": false
  24850. },
  24851. "SessionV1.RetryPart": {
  24852. "type": "object",
  24853. "properties": {
  24854. "id": {
  24855. "type": "string",
  24856. "allOf": [
  24857. {
  24858. "pattern": "^prt"
  24859. }
  24860. ]
  24861. },
  24862. "sessionID": {
  24863. "type": "string",
  24864. "allOf": [
  24865. {
  24866. "pattern": "^ses"
  24867. }
  24868. ]
  24869. },
  24870. "messageID": {
  24871. "type": "string",
  24872. "allOf": [
  24873. {
  24874. "pattern": "^msg"
  24875. }
  24876. ]
  24877. },
  24878. "type": {
  24879. "type": "string",
  24880. "enum": [
  24881. "retry"
  24882. ]
  24883. },
  24884. "attempt": {
  24885. "type": "integer",
  24886. "allOf": [
  24887. {
  24888. "minimum": 0
  24889. }
  24890. ]
  24891. },
  24892. "error": {
  24893. "$ref": "#/components/schemas/APIError"
  24894. },
  24895. "time": {
  24896. "type": "object",
  24897. "properties": {
  24898. "created": {
  24899. "type": "integer",
  24900. "allOf": [
  24901. {
  24902. "minimum": 0
  24903. }
  24904. ]
  24905. }
  24906. },
  24907. "required": [
  24908. "created"
  24909. ],
  24910. "additionalProperties": false
  24911. }
  24912. },
  24913. "required": [
  24914. "id",
  24915. "sessionID",
  24916. "messageID",
  24917. "type",
  24918. "attempt",
  24919. "error",
  24920. "time"
  24921. ],
  24922. "additionalProperties": false
  24923. },
  24924. "SessionV1.CompactionPart": {
  24925. "type": "object",
  24926. "properties": {
  24927. "id": {
  24928. "type": "string",
  24929. "allOf": [
  24930. {
  24931. "pattern": "^prt"
  24932. }
  24933. ]
  24934. },
  24935. "sessionID": {
  24936. "type": "string",
  24937. "allOf": [
  24938. {
  24939. "pattern": "^ses"
  24940. }
  24941. ]
  24942. },
  24943. "messageID": {
  24944. "type": "string",
  24945. "allOf": [
  24946. {
  24947. "pattern": "^msg"
  24948. }
  24949. ]
  24950. },
  24951. "type": {
  24952. "type": "string",
  24953. "enum": [
  24954. "compaction"
  24955. ]
  24956. },
  24957. "auto": {
  24958. "type": "boolean"
  24959. },
  24960. "overflow": {
  24961. "anyOf": [
  24962. {
  24963. "type": "boolean"
  24964. },
  24965. {
  24966. "type": "null"
  24967. }
  24968. ]
  24969. },
  24970. "tail_start_id": {
  24971. "anyOf": [
  24972. {
  24973. "type": "string",
  24974. "allOf": [
  24975. {
  24976. "pattern": "^msg"
  24977. }
  24978. ]
  24979. },
  24980. {
  24981. "type": "null"
  24982. }
  24983. ]
  24984. }
  24985. },
  24986. "required": [
  24987. "id",
  24988. "sessionID",
  24989. "messageID",
  24990. "type",
  24991. "auto"
  24992. ],
  24993. "additionalProperties": false
  24994. },
  24995. "SessionV1.Part": {
  24996. "anyOf": [
  24997. {
  24998. "$ref": "#/components/schemas/SessionV1.TextPart"
  24999. },
  25000. {
  25001. "$ref": "#/components/schemas/SessionV1.SubtaskPart"
  25002. },
  25003. {
  25004. "$ref": "#/components/schemas/SessionV1.ReasoningPart"
  25005. },
  25006. {
  25007. "$ref": "#/components/schemas/SessionV1.FilePart"
  25008. },
  25009. {
  25010. "$ref": "#/components/schemas/SessionV1.ToolPart"
  25011. },
  25012. {
  25013. "$ref": "#/components/schemas/SessionV1.StepStartPart"
  25014. },
  25015. {
  25016. "$ref": "#/components/schemas/SessionV1.StepFinishPart"
  25017. },
  25018. {
  25019. "$ref": "#/components/schemas/SessionV1.SnapshotPart"
  25020. },
  25021. {
  25022. "$ref": "#/components/schemas/SessionV1.PatchPart"
  25023. },
  25024. {
  25025. "$ref": "#/components/schemas/SessionV1.AgentPart"
  25026. },
  25027. {
  25028. "$ref": "#/components/schemas/SessionV1.RetryPart"
  25029. },
  25030. {
  25031. "$ref": "#/components/schemas/SessionV1.CompactionPart"
  25032. }
  25033. ]
  25034. },
  25035. "message.part.updated": {
  25036. "type": "object",
  25037. "properties": {
  25038. "id": {
  25039. "type": "string",
  25040. "allOf": [
  25041. {
  25042. "pattern": "^evt_"
  25043. }
  25044. ]
  25045. },
  25046. "created": {
  25047. "type": "number"
  25048. },
  25049. "metadata": {
  25050. "type": "object"
  25051. },
  25052. "type": {
  25053. "type": "string",
  25054. "enum": [
  25055. "message.part.updated"
  25056. ]
  25057. },
  25058. "durable": {
  25059. "type": "object",
  25060. "properties": {
  25061. "aggregateID": {
  25062. "type": "string"
  25063. },
  25064. "seq": {
  25065. "type": "integer",
  25066. "allOf": [
  25067. {
  25068. "minimum": 0
  25069. }
  25070. ]
  25071. },
  25072. "version": {
  25073. "type": "number",
  25074. "enum": [
  25075. 1
  25076. ]
  25077. }
  25078. },
  25079. "required": [
  25080. "aggregateID",
  25081. "seq",
  25082. "version"
  25083. ],
  25084. "additionalProperties": false
  25085. },
  25086. "location": {
  25087. "$ref": "#/components/schemas/Location.Ref"
  25088. },
  25089. "data": {
  25090. "type": "object",
  25091. "properties": {
  25092. "sessionID": {
  25093. "type": "string",
  25094. "allOf": [
  25095. {
  25096. "pattern": "^ses"
  25097. }
  25098. ]
  25099. },
  25100. "part": {
  25101. "$ref": "#/components/schemas/SessionV1.Part"
  25102. },
  25103. "time": {
  25104. "type": "number"
  25105. }
  25106. },
  25107. "required": [
  25108. "sessionID",
  25109. "part",
  25110. "time"
  25111. ],
  25112. "additionalProperties": false
  25113. }
  25114. },
  25115. "required": [
  25116. "id",
  25117. "created",
  25118. "type",
  25119. "durable",
  25120. "data"
  25121. ],
  25122. "additionalProperties": false
  25123. },
  25124. "message.part.removed": {
  25125. "type": "object",
  25126. "properties": {
  25127. "id": {
  25128. "type": "string",
  25129. "allOf": [
  25130. {
  25131. "pattern": "^evt_"
  25132. }
  25133. ]
  25134. },
  25135. "created": {
  25136. "type": "number"
  25137. },
  25138. "metadata": {
  25139. "type": "object"
  25140. },
  25141. "type": {
  25142. "type": "string",
  25143. "enum": [
  25144. "message.part.removed"
  25145. ]
  25146. },
  25147. "durable": {
  25148. "type": "object",
  25149. "properties": {
  25150. "aggregateID": {
  25151. "type": "string"
  25152. },
  25153. "seq": {
  25154. "type": "integer",
  25155. "allOf": [
  25156. {
  25157. "minimum": 0
  25158. }
  25159. ]
  25160. },
  25161. "version": {
  25162. "type": "number",
  25163. "enum": [
  25164. 1
  25165. ]
  25166. }
  25167. },
  25168. "required": [
  25169. "aggregateID",
  25170. "seq",
  25171. "version"
  25172. ],
  25173. "additionalProperties": false
  25174. },
  25175. "location": {
  25176. "$ref": "#/components/schemas/Location.Ref"
  25177. },
  25178. "data": {
  25179. "type": "object",
  25180. "properties": {
  25181. "sessionID": {
  25182. "type": "string",
  25183. "allOf": [
  25184. {
  25185. "pattern": "^ses"
  25186. }
  25187. ]
  25188. },
  25189. "messageID": {
  25190. "type": "string",
  25191. "allOf": [
  25192. {
  25193. "pattern": "^msg"
  25194. }
  25195. ]
  25196. },
  25197. "partID": {
  25198. "type": "string",
  25199. "allOf": [
  25200. {
  25201. "pattern": "^prt"
  25202. }
  25203. ]
  25204. }
  25205. },
  25206. "required": [
  25207. "sessionID",
  25208. "messageID",
  25209. "partID"
  25210. ],
  25211. "additionalProperties": false
  25212. }
  25213. },
  25214. "required": [
  25215. "id",
  25216. "created",
  25217. "type",
  25218. "durable",
  25219. "data"
  25220. ],
  25221. "additionalProperties": false
  25222. },
  25223. "session.usage.updated": {
  25224. "type": "object",
  25225. "properties": {
  25226. "id": {
  25227. "type": "string",
  25228. "allOf": [
  25229. {
  25230. "pattern": "^evt_"
  25231. }
  25232. ]
  25233. },
  25234. "created": {
  25235. "type": "number"
  25236. },
  25237. "metadata": {
  25238. "type": "object"
  25239. },
  25240. "type": {
  25241. "type": "string",
  25242. "enum": [
  25243. "session.usage.updated"
  25244. ]
  25245. },
  25246. "location": {
  25247. "$ref": "#/components/schemas/Location.Ref"
  25248. },
  25249. "data": {
  25250. "type": "object",
  25251. "properties": {
  25252. "sessionID": {
  25253. "type": "string",
  25254. "allOf": [
  25255. {
  25256. "pattern": "^ses"
  25257. }
  25258. ]
  25259. },
  25260. "cost": {
  25261. "$ref": "#/components/schemas/Money.USD"
  25262. },
  25263. "tokens": {
  25264. "$ref": "#/components/schemas/TokenUsage.Info"
  25265. }
  25266. },
  25267. "required": [
  25268. "sessionID",
  25269. "cost",
  25270. "tokens"
  25271. ],
  25272. "additionalProperties": false
  25273. }
  25274. },
  25275. "required": [
  25276. "id",
  25277. "created",
  25278. "type",
  25279. "data"
  25280. ],
  25281. "additionalProperties": false
  25282. },
  25283. "session.text.delta": {
  25284. "type": "object",
  25285. "properties": {
  25286. "id": {
  25287. "type": "string",
  25288. "allOf": [
  25289. {
  25290. "pattern": "^evt_"
  25291. }
  25292. ]
  25293. },
  25294. "created": {
  25295. "type": "number"
  25296. },
  25297. "metadata": {
  25298. "type": "object"
  25299. },
  25300. "type": {
  25301. "type": "string",
  25302. "enum": [
  25303. "session.text.delta"
  25304. ]
  25305. },
  25306. "location": {
  25307. "$ref": "#/components/schemas/Location.Ref"
  25308. },
  25309. "data": {
  25310. "type": "object",
  25311. "properties": {
  25312. "sessionID": {
  25313. "type": "string",
  25314. "allOf": [
  25315. {
  25316. "pattern": "^ses"
  25317. }
  25318. ]
  25319. },
  25320. "assistantMessageID": {
  25321. "type": "string",
  25322. "allOf": [
  25323. {
  25324. "pattern": "^msg_"
  25325. }
  25326. ]
  25327. },
  25328. "ordinal": {
  25329. "type": "integer",
  25330. "allOf": [
  25331. {
  25332. "minimum": 0
  25333. }
  25334. ]
  25335. },
  25336. "delta": {
  25337. "type": "string"
  25338. }
  25339. },
  25340. "required": [
  25341. "sessionID",
  25342. "assistantMessageID",
  25343. "ordinal",
  25344. "delta"
  25345. ],
  25346. "additionalProperties": false
  25347. }
  25348. },
  25349. "required": [
  25350. "id",
  25351. "created",
  25352. "type",
  25353. "data"
  25354. ],
  25355. "additionalProperties": false
  25356. },
  25357. "session.reasoning.delta": {
  25358. "type": "object",
  25359. "properties": {
  25360. "id": {
  25361. "type": "string",
  25362. "allOf": [
  25363. {
  25364. "pattern": "^evt_"
  25365. }
  25366. ]
  25367. },
  25368. "created": {
  25369. "type": "number"
  25370. },
  25371. "metadata": {
  25372. "type": "object"
  25373. },
  25374. "type": {
  25375. "type": "string",
  25376. "enum": [
  25377. "session.reasoning.delta"
  25378. ]
  25379. },
  25380. "location": {
  25381. "$ref": "#/components/schemas/Location.Ref"
  25382. },
  25383. "data": {
  25384. "type": "object",
  25385. "properties": {
  25386. "sessionID": {
  25387. "type": "string",
  25388. "allOf": [
  25389. {
  25390. "pattern": "^ses"
  25391. }
  25392. ]
  25393. },
  25394. "assistantMessageID": {
  25395. "type": "string",
  25396. "allOf": [
  25397. {
  25398. "pattern": "^msg_"
  25399. }
  25400. ]
  25401. },
  25402. "ordinal": {
  25403. "type": "integer",
  25404. "allOf": [
  25405. {
  25406. "minimum": 0
  25407. }
  25408. ]
  25409. },
  25410. "delta": {
  25411. "type": "string"
  25412. }
  25413. },
  25414. "required": [
  25415. "sessionID",
  25416. "assistantMessageID",
  25417. "ordinal",
  25418. "delta"
  25419. ],
  25420. "additionalProperties": false
  25421. }
  25422. },
  25423. "required": [
  25424. "id",
  25425. "created",
  25426. "type",
  25427. "data"
  25428. ],
  25429. "additionalProperties": false
  25430. },
  25431. "session.tool.input.delta": {
  25432. "type": "object",
  25433. "properties": {
  25434. "id": {
  25435. "type": "string",
  25436. "allOf": [
  25437. {
  25438. "pattern": "^evt_"
  25439. }
  25440. ]
  25441. },
  25442. "created": {
  25443. "type": "number"
  25444. },
  25445. "metadata": {
  25446. "type": "object"
  25447. },
  25448. "type": {
  25449. "type": "string",
  25450. "enum": [
  25451. "session.tool.input.delta"
  25452. ]
  25453. },
  25454. "location": {
  25455. "$ref": "#/components/schemas/Location.Ref"
  25456. },
  25457. "data": {
  25458. "type": "object",
  25459. "properties": {
  25460. "sessionID": {
  25461. "type": "string",
  25462. "allOf": [
  25463. {
  25464. "pattern": "^ses"
  25465. }
  25466. ]
  25467. },
  25468. "assistantMessageID": {
  25469. "type": "string",
  25470. "allOf": [
  25471. {
  25472. "pattern": "^msg_"
  25473. }
  25474. ]
  25475. },
  25476. "callID": {
  25477. "type": "string"
  25478. },
  25479. "delta": {
  25480. "type": "string"
  25481. }
  25482. },
  25483. "required": [
  25484. "sessionID",
  25485. "assistantMessageID",
  25486. "callID",
  25487. "delta"
  25488. ],
  25489. "additionalProperties": false
  25490. }
  25491. },
  25492. "required": [
  25493. "id",
  25494. "created",
  25495. "type",
  25496. "data"
  25497. ],
  25498. "additionalProperties": false
  25499. },
  25500. "session.tool.progress": {
  25501. "type": "object",
  25502. "properties": {
  25503. "id": {
  25504. "type": "string",
  25505. "allOf": [
  25506. {
  25507. "pattern": "^evt_"
  25508. }
  25509. ]
  25510. },
  25511. "created": {
  25512. "type": "number"
  25513. },
  25514. "metadata": {
  25515. "type": "object"
  25516. },
  25517. "type": {
  25518. "type": "string",
  25519. "enum": [
  25520. "session.tool.progress"
  25521. ]
  25522. },
  25523. "location": {
  25524. "$ref": "#/components/schemas/Location.Ref"
  25525. },
  25526. "data": {
  25527. "type": "object",
  25528. "properties": {
  25529. "sessionID": {
  25530. "type": "string",
  25531. "allOf": [
  25532. {
  25533. "pattern": "^ses"
  25534. }
  25535. ]
  25536. },
  25537. "assistantMessageID": {
  25538. "type": "string",
  25539. "allOf": [
  25540. {
  25541. "pattern": "^msg_"
  25542. }
  25543. ]
  25544. },
  25545. "callID": {
  25546. "type": "string"
  25547. },
  25548. "metadata": {
  25549. "type": "object"
  25550. }
  25551. },
  25552. "required": [
  25553. "sessionID",
  25554. "assistantMessageID",
  25555. "callID",
  25556. "metadata"
  25557. ],
  25558. "additionalProperties": false
  25559. }
  25560. },
  25561. "required": [
  25562. "id",
  25563. "created",
  25564. "type",
  25565. "data"
  25566. ],
  25567. "additionalProperties": false
  25568. },
  25569. "session.compaction.delta": {
  25570. "type": "object",
  25571. "properties": {
  25572. "id": {
  25573. "type": "string",
  25574. "allOf": [
  25575. {
  25576. "pattern": "^evt_"
  25577. }
  25578. ]
  25579. },
  25580. "created": {
  25581. "type": "number"
  25582. },
  25583. "metadata": {
  25584. "type": "object"
  25585. },
  25586. "type": {
  25587. "type": "string",
  25588. "enum": [
  25589. "session.compaction.delta"
  25590. ]
  25591. },
  25592. "location": {
  25593. "$ref": "#/components/schemas/Location.Ref"
  25594. },
  25595. "data": {
  25596. "type": "object",
  25597. "properties": {
  25598. "sessionID": {
  25599. "type": "string",
  25600. "allOf": [
  25601. {
  25602. "pattern": "^ses"
  25603. }
  25604. ]
  25605. },
  25606. "text": {
  25607. "type": "string"
  25608. }
  25609. },
  25610. "required": [
  25611. "sessionID",
  25612. "text"
  25613. ],
  25614. "additionalProperties": false
  25615. }
  25616. },
  25617. "required": [
  25618. "id",
  25619. "created",
  25620. "type",
  25621. "data"
  25622. ],
  25623. "additionalProperties": false
  25624. },
  25625. "filesystem.changed": {
  25626. "type": "object",
  25627. "properties": {
  25628. "id": {
  25629. "type": "string",
  25630. "allOf": [
  25631. {
  25632. "pattern": "^evt_"
  25633. }
  25634. ]
  25635. },
  25636. "created": {
  25637. "type": "number"
  25638. },
  25639. "metadata": {
  25640. "type": "object"
  25641. },
  25642. "type": {
  25643. "type": "string",
  25644. "enum": [
  25645. "filesystem.changed"
  25646. ]
  25647. },
  25648. "location": {
  25649. "$ref": "#/components/schemas/Location.Ref"
  25650. },
  25651. "data": {
  25652. "type": "object",
  25653. "properties": {
  25654. "file": {
  25655. "type": "string"
  25656. },
  25657. "event": {
  25658. "type": "string",
  25659. "enum": [
  25660. "add",
  25661. "change",
  25662. "unlink"
  25663. ]
  25664. }
  25665. },
  25666. "required": [
  25667. "file",
  25668. "event"
  25669. ],
  25670. "additionalProperties": false
  25671. }
  25672. },
  25673. "required": [
  25674. "id",
  25675. "created",
  25676. "type",
  25677. "data"
  25678. ],
  25679. "additionalProperties": false
  25680. },
  25681. "reference.updated": {
  25682. "type": "object",
  25683. "properties": {
  25684. "id": {
  25685. "type": "string",
  25686. "allOf": [
  25687. {
  25688. "pattern": "^evt_"
  25689. }
  25690. ]
  25691. },
  25692. "created": {
  25693. "type": "number"
  25694. },
  25695. "metadata": {
  25696. "type": "object"
  25697. },
  25698. "type": {
  25699. "type": "string",
  25700. "enum": [
  25701. "reference.updated"
  25702. ]
  25703. },
  25704. "location": {
  25705. "$ref": "#/components/schemas/Location.Ref"
  25706. },
  25707. "data": {
  25708. "anyOf": [
  25709. {
  25710. "type": "object"
  25711. },
  25712. {
  25713. "type": "array"
  25714. }
  25715. ]
  25716. }
  25717. },
  25718. "required": [
  25719. "id",
  25720. "created",
  25721. "type",
  25722. "data"
  25723. ],
  25724. "additionalProperties": false
  25725. },
  25726. "permission.asked": {
  25727. "type": "object",
  25728. "properties": {
  25729. "id": {
  25730. "type": "string",
  25731. "allOf": [
  25732. {
  25733. "pattern": "^evt_"
  25734. }
  25735. ]
  25736. },
  25737. "created": {
  25738. "type": "number"
  25739. },
  25740. "metadata": {
  25741. "type": "object"
  25742. },
  25743. "type": {
  25744. "type": "string",
  25745. "enum": [
  25746. "permission.asked"
  25747. ]
  25748. },
  25749. "location": {
  25750. "$ref": "#/components/schemas/Location.Ref"
  25751. },
  25752. "data": {
  25753. "type": "object",
  25754. "properties": {
  25755. "id": {
  25756. "type": "string",
  25757. "allOf": [
  25758. {
  25759. "pattern": "^per"
  25760. }
  25761. ]
  25762. },
  25763. "sessionID": {
  25764. "type": "string",
  25765. "allOf": [
  25766. {
  25767. "pattern": "^ses"
  25768. }
  25769. ]
  25770. },
  25771. "action": {
  25772. "type": "string"
  25773. },
  25774. "resources": {
  25775. "type": "array",
  25776. "items": {
  25777. "type": "string"
  25778. }
  25779. },
  25780. "save": {
  25781. "type": "array",
  25782. "items": {
  25783. "type": "string"
  25784. }
  25785. },
  25786. "metadata": {
  25787. "type": "object"
  25788. },
  25789. "source": {
  25790. "$ref": "#/components/schemas/Permission.Source"
  25791. }
  25792. },
  25793. "required": [
  25794. "id",
  25795. "sessionID",
  25796. "action",
  25797. "resources"
  25798. ],
  25799. "additionalProperties": false
  25800. }
  25801. },
  25802. "required": [
  25803. "id",
  25804. "created",
  25805. "type",
  25806. "data"
  25807. ],
  25808. "additionalProperties": false
  25809. },
  25810. "permission.replied": {
  25811. "type": "object",
  25812. "properties": {
  25813. "id": {
  25814. "type": "string",
  25815. "allOf": [
  25816. {
  25817. "pattern": "^evt_"
  25818. }
  25819. ]
  25820. },
  25821. "created": {
  25822. "type": "number"
  25823. },
  25824. "metadata": {
  25825. "type": "object"
  25826. },
  25827. "type": {
  25828. "type": "string",
  25829. "enum": [
  25830. "permission.replied"
  25831. ]
  25832. },
  25833. "location": {
  25834. "$ref": "#/components/schemas/Location.Ref"
  25835. },
  25836. "data": {
  25837. "type": "object",
  25838. "properties": {
  25839. "sessionID": {
  25840. "type": "string",
  25841. "allOf": [
  25842. {
  25843. "pattern": "^ses"
  25844. }
  25845. ]
  25846. },
  25847. "requestID": {
  25848. "type": "string",
  25849. "allOf": [
  25850. {
  25851. "pattern": "^per"
  25852. }
  25853. ]
  25854. },
  25855. "reply": {
  25856. "$ref": "#/components/schemas/Permission.Reply"
  25857. }
  25858. },
  25859. "required": [
  25860. "sessionID",
  25861. "requestID",
  25862. "reply"
  25863. ],
  25864. "additionalProperties": false
  25865. }
  25866. },
  25867. "required": [
  25868. "id",
  25869. "created",
  25870. "type",
  25871. "data"
  25872. ],
  25873. "additionalProperties": false
  25874. },
  25875. "plugin.added": {
  25876. "type": "object",
  25877. "properties": {
  25878. "id": {
  25879. "type": "string",
  25880. "allOf": [
  25881. {
  25882. "pattern": "^evt_"
  25883. }
  25884. ]
  25885. },
  25886. "created": {
  25887. "type": "number"
  25888. },
  25889. "metadata": {
  25890. "type": "object"
  25891. },
  25892. "type": {
  25893. "type": "string",
  25894. "enum": [
  25895. "plugin.added"
  25896. ]
  25897. },
  25898. "location": {
  25899. "$ref": "#/components/schemas/Location.Ref"
  25900. },
  25901. "data": {
  25902. "type": "object",
  25903. "properties": {
  25904. "id": {
  25905. "type": "string"
  25906. }
  25907. },
  25908. "required": [
  25909. "id"
  25910. ],
  25911. "additionalProperties": false
  25912. }
  25913. },
  25914. "required": [
  25915. "id",
  25916. "created",
  25917. "type",
  25918. "data"
  25919. ],
  25920. "additionalProperties": false
  25921. },
  25922. "plugin.updated": {
  25923. "type": "object",
  25924. "properties": {
  25925. "id": {
  25926. "type": "string",
  25927. "allOf": [
  25928. {
  25929. "pattern": "^evt_"
  25930. }
  25931. ]
  25932. },
  25933. "created": {
  25934. "type": "number"
  25935. },
  25936. "metadata": {
  25937. "type": "object"
  25938. },
  25939. "type": {
  25940. "type": "string",
  25941. "enum": [
  25942. "plugin.updated"
  25943. ]
  25944. },
  25945. "location": {
  25946. "$ref": "#/components/schemas/Location.Ref"
  25947. },
  25948. "data": {
  25949. "anyOf": [
  25950. {
  25951. "type": "object"
  25952. },
  25953. {
  25954. "type": "array"
  25955. }
  25956. ]
  25957. }
  25958. },
  25959. "required": [
  25960. "id",
  25961. "created",
  25962. "type",
  25963. "data"
  25964. ],
  25965. "additionalProperties": false
  25966. },
  25967. "project.directories.updated": {
  25968. "type": "object",
  25969. "properties": {
  25970. "id": {
  25971. "type": "string",
  25972. "allOf": [
  25973. {
  25974. "pattern": "^evt_"
  25975. }
  25976. ]
  25977. },
  25978. "created": {
  25979. "type": "number"
  25980. },
  25981. "metadata": {
  25982. "type": "object"
  25983. },
  25984. "type": {
  25985. "type": "string",
  25986. "enum": [
  25987. "project.directories.updated"
  25988. ]
  25989. },
  25990. "location": {
  25991. "$ref": "#/components/schemas/Location.Ref"
  25992. },
  25993. "data": {
  25994. "type": "object",
  25995. "properties": {
  25996. "projectID": {
  25997. "type": "string"
  25998. }
  25999. },
  26000. "required": [
  26001. "projectID"
  26002. ],
  26003. "additionalProperties": false
  26004. }
  26005. },
  26006. "required": [
  26007. "id",
  26008. "created",
  26009. "type",
  26010. "data"
  26011. ],
  26012. "additionalProperties": false
  26013. },
  26014. "command.updated": {
  26015. "type": "object",
  26016. "properties": {
  26017. "id": {
  26018. "type": "string",
  26019. "allOf": [
  26020. {
  26021. "pattern": "^evt_"
  26022. }
  26023. ]
  26024. },
  26025. "created": {
  26026. "type": "number"
  26027. },
  26028. "metadata": {
  26029. "type": "object"
  26030. },
  26031. "type": {
  26032. "type": "string",
  26033. "enum": [
  26034. "command.updated"
  26035. ]
  26036. },
  26037. "location": {
  26038. "$ref": "#/components/schemas/Location.Ref"
  26039. },
  26040. "data": {
  26041. "anyOf": [
  26042. {
  26043. "type": "object"
  26044. },
  26045. {
  26046. "type": "array"
  26047. }
  26048. ]
  26049. }
  26050. },
  26051. "required": [
  26052. "id",
  26053. "created",
  26054. "type",
  26055. "data"
  26056. ],
  26057. "additionalProperties": false
  26058. },
  26059. "config.updated": {
  26060. "type": "object",
  26061. "properties": {
  26062. "id": {
  26063. "type": "string",
  26064. "allOf": [
  26065. {
  26066. "pattern": "^evt_"
  26067. }
  26068. ]
  26069. },
  26070. "created": {
  26071. "type": "number"
  26072. },
  26073. "metadata": {
  26074. "type": "object"
  26075. },
  26076. "type": {
  26077. "type": "string",
  26078. "enum": [
  26079. "config.updated"
  26080. ]
  26081. },
  26082. "location": {
  26083. "$ref": "#/components/schemas/Location.Ref"
  26084. },
  26085. "data": {
  26086. "anyOf": [
  26087. {
  26088. "type": "object"
  26089. },
  26090. {
  26091. "type": "array"
  26092. }
  26093. ]
  26094. }
  26095. },
  26096. "required": [
  26097. "id",
  26098. "created",
  26099. "type",
  26100. "data"
  26101. ],
  26102. "additionalProperties": false
  26103. },
  26104. "skill.updated": {
  26105. "type": "object",
  26106. "properties": {
  26107. "id": {
  26108. "type": "string",
  26109. "allOf": [
  26110. {
  26111. "pattern": "^evt_"
  26112. }
  26113. ]
  26114. },
  26115. "created": {
  26116. "type": "number"
  26117. },
  26118. "metadata": {
  26119. "type": "object"
  26120. },
  26121. "type": {
  26122. "type": "string",
  26123. "enum": [
  26124. "skill.updated"
  26125. ]
  26126. },
  26127. "location": {
  26128. "$ref": "#/components/schemas/Location.Ref"
  26129. },
  26130. "data": {
  26131. "anyOf": [
  26132. {
  26133. "type": "object"
  26134. },
  26135. {
  26136. "type": "array"
  26137. }
  26138. ]
  26139. }
  26140. },
  26141. "required": [
  26142. "id",
  26143. "created",
  26144. "type",
  26145. "data"
  26146. ],
  26147. "additionalProperties": false
  26148. },
  26149. "Pty": {
  26150. "type": "object",
  26151. "properties": {
  26152. "id": {
  26153. "type": "string",
  26154. "allOf": [
  26155. {
  26156. "pattern": "^pty"
  26157. }
  26158. ]
  26159. },
  26160. "title": {
  26161. "type": "string"
  26162. },
  26163. "command": {
  26164. "type": "string"
  26165. },
  26166. "args": {
  26167. "type": "array",
  26168. "items": {
  26169. "type": "string"
  26170. }
  26171. },
  26172. "cwd": {
  26173. "type": "string"
  26174. },
  26175. "status": {
  26176. "type": "string",
  26177. "enum": [
  26178. "running",
  26179. "exited"
  26180. ]
  26181. },
  26182. "pid": {
  26183. "type": "integer",
  26184. "allOf": [
  26185. {
  26186. "minimum": 0
  26187. }
  26188. ]
  26189. },
  26190. "exitCode": {
  26191. "type": "integer",
  26192. "allOf": [
  26193. {
  26194. "minimum": 0
  26195. }
  26196. ]
  26197. }
  26198. },
  26199. "required": [
  26200. "id",
  26201. "title",
  26202. "command",
  26203. "args",
  26204. "cwd",
  26205. "status",
  26206. "pid"
  26207. ],
  26208. "additionalProperties": false
  26209. },
  26210. "pty.created": {
  26211. "type": "object",
  26212. "properties": {
  26213. "id": {
  26214. "type": "string",
  26215. "allOf": [
  26216. {
  26217. "pattern": "^evt_"
  26218. }
  26219. ]
  26220. },
  26221. "created": {
  26222. "type": "number"
  26223. },
  26224. "metadata": {
  26225. "type": "object"
  26226. },
  26227. "type": {
  26228. "type": "string",
  26229. "enum": [
  26230. "pty.created"
  26231. ]
  26232. },
  26233. "location": {
  26234. "$ref": "#/components/schemas/Location.Ref"
  26235. },
  26236. "data": {
  26237. "type": "object",
  26238. "properties": {
  26239. "info": {
  26240. "$ref": "#/components/schemas/Pty"
  26241. }
  26242. },
  26243. "required": [
  26244. "info"
  26245. ],
  26246. "additionalProperties": false
  26247. }
  26248. },
  26249. "required": [
  26250. "id",
  26251. "created",
  26252. "type",
  26253. "data"
  26254. ],
  26255. "additionalProperties": false
  26256. },
  26257. "pty.updated": {
  26258. "type": "object",
  26259. "properties": {
  26260. "id": {
  26261. "type": "string",
  26262. "allOf": [
  26263. {
  26264. "pattern": "^evt_"
  26265. }
  26266. ]
  26267. },
  26268. "created": {
  26269. "type": "number"
  26270. },
  26271. "metadata": {
  26272. "type": "object"
  26273. },
  26274. "type": {
  26275. "type": "string",
  26276. "enum": [
  26277. "pty.updated"
  26278. ]
  26279. },
  26280. "location": {
  26281. "$ref": "#/components/schemas/Location.Ref"
  26282. },
  26283. "data": {
  26284. "type": "object",
  26285. "properties": {
  26286. "info": {
  26287. "$ref": "#/components/schemas/Pty"
  26288. }
  26289. },
  26290. "required": [
  26291. "info"
  26292. ],
  26293. "additionalProperties": false
  26294. }
  26295. },
  26296. "required": [
  26297. "id",
  26298. "created",
  26299. "type",
  26300. "data"
  26301. ],
  26302. "additionalProperties": false
  26303. },
  26304. "pty.exited": {
  26305. "type": "object",
  26306. "properties": {
  26307. "id": {
  26308. "type": "string",
  26309. "allOf": [
  26310. {
  26311. "pattern": "^evt_"
  26312. }
  26313. ]
  26314. },
  26315. "created": {
  26316. "type": "number"
  26317. },
  26318. "metadata": {
  26319. "type": "object"
  26320. },
  26321. "type": {
  26322. "type": "string",
  26323. "enum": [
  26324. "pty.exited"
  26325. ]
  26326. },
  26327. "location": {
  26328. "$ref": "#/components/schemas/Location.Ref"
  26329. },
  26330. "data": {
  26331. "type": "object",
  26332. "properties": {
  26333. "id": {
  26334. "type": "string",
  26335. "allOf": [
  26336. {
  26337. "pattern": "^pty"
  26338. }
  26339. ]
  26340. },
  26341. "exitCode": {
  26342. "type": "integer",
  26343. "allOf": [
  26344. {
  26345. "minimum": 0
  26346. }
  26347. ]
  26348. }
  26349. },
  26350. "required": [
  26351. "id",
  26352. "exitCode"
  26353. ],
  26354. "additionalProperties": false
  26355. }
  26356. },
  26357. "required": [
  26358. "id",
  26359. "created",
  26360. "type",
  26361. "data"
  26362. ],
  26363. "additionalProperties": false
  26364. },
  26365. "pty.deleted": {
  26366. "type": "object",
  26367. "properties": {
  26368. "id": {
  26369. "type": "string",
  26370. "allOf": [
  26371. {
  26372. "pattern": "^evt_"
  26373. }
  26374. ]
  26375. },
  26376. "created": {
  26377. "type": "number"
  26378. },
  26379. "metadata": {
  26380. "type": "object"
  26381. },
  26382. "type": {
  26383. "type": "string",
  26384. "enum": [
  26385. "pty.deleted"
  26386. ]
  26387. },
  26388. "location": {
  26389. "$ref": "#/components/schemas/Location.Ref"
  26390. },
  26391. "data": {
  26392. "type": "object",
  26393. "properties": {
  26394. "id": {
  26395. "type": "string",
  26396. "allOf": [
  26397. {
  26398. "pattern": "^pty"
  26399. }
  26400. ]
  26401. }
  26402. },
  26403. "required": [
  26404. "id"
  26405. ],
  26406. "additionalProperties": false
  26407. }
  26408. },
  26409. "required": [
  26410. "id",
  26411. "created",
  26412. "type",
  26413. "data"
  26414. ],
  26415. "additionalProperties": false
  26416. },
  26417. "shell.created": {
  26418. "type": "object",
  26419. "properties": {
  26420. "id": {
  26421. "type": "string",
  26422. "allOf": [
  26423. {
  26424. "pattern": "^evt_"
  26425. }
  26426. ]
  26427. },
  26428. "created": {
  26429. "type": "number"
  26430. },
  26431. "metadata": {
  26432. "type": "object"
  26433. },
  26434. "type": {
  26435. "type": "string",
  26436. "enum": [
  26437. "shell.created"
  26438. ]
  26439. },
  26440. "location": {
  26441. "$ref": "#/components/schemas/Location.Ref"
  26442. },
  26443. "data": {
  26444. "type": "object",
  26445. "properties": {
  26446. "info": {
  26447. "$ref": "#/components/schemas/Shell.Info"
  26448. }
  26449. },
  26450. "required": [
  26451. "info"
  26452. ],
  26453. "additionalProperties": false
  26454. }
  26455. },
  26456. "required": [
  26457. "id",
  26458. "created",
  26459. "type",
  26460. "data"
  26461. ],
  26462. "additionalProperties": false
  26463. },
  26464. "shell.exited": {
  26465. "type": "object",
  26466. "properties": {
  26467. "id": {
  26468. "type": "string",
  26469. "allOf": [
  26470. {
  26471. "pattern": "^evt_"
  26472. }
  26473. ]
  26474. },
  26475. "created": {
  26476. "type": "number"
  26477. },
  26478. "metadata": {
  26479. "type": "object"
  26480. },
  26481. "type": {
  26482. "type": "string",
  26483. "enum": [
  26484. "shell.exited"
  26485. ]
  26486. },
  26487. "location": {
  26488. "$ref": "#/components/schemas/Location.Ref"
  26489. },
  26490. "data": {
  26491. "type": "object",
  26492. "properties": {
  26493. "id": {
  26494. "type": "string",
  26495. "allOf": [
  26496. {
  26497. "pattern": "^sh_"
  26498. }
  26499. ]
  26500. },
  26501. "exit": {
  26502. "type": "number"
  26503. },
  26504. "status": {
  26505. "type": "string",
  26506. "enum": [
  26507. "running",
  26508. "exited",
  26509. "timeout",
  26510. "killed"
  26511. ]
  26512. }
  26513. },
  26514. "required": [
  26515. "id",
  26516. "status"
  26517. ],
  26518. "additionalProperties": false
  26519. }
  26520. },
  26521. "required": [
  26522. "id",
  26523. "created",
  26524. "type",
  26525. "data"
  26526. ],
  26527. "additionalProperties": false
  26528. },
  26529. "shell.deleted": {
  26530. "type": "object",
  26531. "properties": {
  26532. "id": {
  26533. "type": "string",
  26534. "allOf": [
  26535. {
  26536. "pattern": "^evt_"
  26537. }
  26538. ]
  26539. },
  26540. "created": {
  26541. "type": "number"
  26542. },
  26543. "metadata": {
  26544. "type": "object"
  26545. },
  26546. "type": {
  26547. "type": "string",
  26548. "enum": [
  26549. "shell.deleted"
  26550. ]
  26551. },
  26552. "location": {
  26553. "$ref": "#/components/schemas/Location.Ref"
  26554. },
  26555. "data": {
  26556. "type": "object",
  26557. "properties": {
  26558. "id": {
  26559. "type": "string",
  26560. "allOf": [
  26561. {
  26562. "pattern": "^sh_"
  26563. }
  26564. ]
  26565. }
  26566. },
  26567. "required": [
  26568. "id"
  26569. ],
  26570. "additionalProperties": false
  26571. }
  26572. },
  26573. "required": [
  26574. "id",
  26575. "created",
  26576. "type",
  26577. "data"
  26578. ],
  26579. "additionalProperties": false
  26580. },
  26581. "Question.Option": {
  26582. "type": "object",
  26583. "properties": {
  26584. "label": {
  26585. "type": "string",
  26586. "description": "Display text (1-5 words, concise)"
  26587. },
  26588. "description": {
  26589. "type": "string",
  26590. "description": "Explanation of choice"
  26591. }
  26592. },
  26593. "required": [
  26594. "label",
  26595. "description"
  26596. ],
  26597. "additionalProperties": false
  26598. },
  26599. "Question.Info": {
  26600. "type": "object",
  26601. "properties": {
  26602. "question": {
  26603. "type": "string",
  26604. "description": "Complete question"
  26605. },
  26606. "header": {
  26607. "type": "string",
  26608. "description": "Very short label (max 30 chars)"
  26609. },
  26610. "options": {
  26611. "type": "array",
  26612. "items": {
  26613. "$ref": "#/components/schemas/Question.Option"
  26614. },
  26615. "description": "Available choices"
  26616. },
  26617. "multiple": {
  26618. "type": "boolean"
  26619. },
  26620. "custom": {
  26621. "type": "boolean"
  26622. }
  26623. },
  26624. "required": [
  26625. "question",
  26626. "header",
  26627. "options"
  26628. ],
  26629. "additionalProperties": false
  26630. },
  26631. "Question.Tool": {
  26632. "type": "object",
  26633. "properties": {
  26634. "messageID": {
  26635. "type": "string"
  26636. },
  26637. "callID": {
  26638. "type": "string"
  26639. }
  26640. },
  26641. "required": [
  26642. "messageID",
  26643. "callID"
  26644. ],
  26645. "additionalProperties": false
  26646. },
  26647. "question.asked": {
  26648. "type": "object",
  26649. "properties": {
  26650. "id": {
  26651. "type": "string",
  26652. "allOf": [
  26653. {
  26654. "pattern": "^evt_"
  26655. }
  26656. ]
  26657. },
  26658. "created": {
  26659. "type": "number"
  26660. },
  26661. "metadata": {
  26662. "type": "object"
  26663. },
  26664. "type": {
  26665. "type": "string",
  26666. "enum": [
  26667. "question.asked"
  26668. ]
  26669. },
  26670. "location": {
  26671. "$ref": "#/components/schemas/Location.Ref"
  26672. },
  26673. "data": {
  26674. "type": "object",
  26675. "properties": {
  26676. "id": {
  26677. "type": "string",
  26678. "allOf": [
  26679. {
  26680. "pattern": "^que"
  26681. }
  26682. ]
  26683. },
  26684. "sessionID": {
  26685. "type": "string",
  26686. "allOf": [
  26687. {
  26688. "pattern": "^ses"
  26689. }
  26690. ]
  26691. },
  26692. "questions": {
  26693. "type": "array",
  26694. "items": {
  26695. "$ref": "#/components/schemas/Question.Info"
  26696. },
  26697. "description": "Questions to ask"
  26698. },
  26699. "tool": {
  26700. "$ref": "#/components/schemas/Question.Tool"
  26701. }
  26702. },
  26703. "required": [
  26704. "id",
  26705. "sessionID",
  26706. "questions"
  26707. ],
  26708. "additionalProperties": false
  26709. }
  26710. },
  26711. "required": [
  26712. "id",
  26713. "created",
  26714. "type",
  26715. "data"
  26716. ],
  26717. "additionalProperties": false
  26718. },
  26719. "Question.Answer": {
  26720. "type": "array",
  26721. "items": {
  26722. "type": "string"
  26723. }
  26724. },
  26725. "question.replied": {
  26726. "type": "object",
  26727. "properties": {
  26728. "id": {
  26729. "type": "string",
  26730. "allOf": [
  26731. {
  26732. "pattern": "^evt_"
  26733. }
  26734. ]
  26735. },
  26736. "created": {
  26737. "type": "number"
  26738. },
  26739. "metadata": {
  26740. "type": "object"
  26741. },
  26742. "type": {
  26743. "type": "string",
  26744. "enum": [
  26745. "question.replied"
  26746. ]
  26747. },
  26748. "location": {
  26749. "$ref": "#/components/schemas/Location.Ref"
  26750. },
  26751. "data": {
  26752. "type": "object",
  26753. "properties": {
  26754. "sessionID": {
  26755. "type": "string",
  26756. "allOf": [
  26757. {
  26758. "pattern": "^ses"
  26759. }
  26760. ]
  26761. },
  26762. "requestID": {
  26763. "type": "string",
  26764. "allOf": [
  26765. {
  26766. "pattern": "^que"
  26767. }
  26768. ]
  26769. },
  26770. "answers": {
  26771. "type": "array",
  26772. "items": {
  26773. "$ref": "#/components/schemas/Question.Answer"
  26774. }
  26775. }
  26776. },
  26777. "required": [
  26778. "sessionID",
  26779. "requestID",
  26780. "answers"
  26781. ],
  26782. "additionalProperties": false
  26783. }
  26784. },
  26785. "required": [
  26786. "id",
  26787. "created",
  26788. "type",
  26789. "data"
  26790. ],
  26791. "additionalProperties": false
  26792. },
  26793. "question.rejected": {
  26794. "type": "object",
  26795. "properties": {
  26796. "id": {
  26797. "type": "string",
  26798. "allOf": [
  26799. {
  26800. "pattern": "^evt_"
  26801. }
  26802. ]
  26803. },
  26804. "created": {
  26805. "type": "number"
  26806. },
  26807. "metadata": {
  26808. "type": "object"
  26809. },
  26810. "type": {
  26811. "type": "string",
  26812. "enum": [
  26813. "question.rejected"
  26814. ]
  26815. },
  26816. "location": {
  26817. "$ref": "#/components/schemas/Location.Ref"
  26818. },
  26819. "data": {
  26820. "type": "object",
  26821. "properties": {
  26822. "sessionID": {
  26823. "type": "string",
  26824. "allOf": [
  26825. {
  26826. "pattern": "^ses"
  26827. }
  26828. ]
  26829. },
  26830. "requestID": {
  26831. "type": "string",
  26832. "allOf": [
  26833. {
  26834. "pattern": "^que"
  26835. }
  26836. ]
  26837. }
  26838. },
  26839. "required": [
  26840. "sessionID",
  26841. "requestID"
  26842. ],
  26843. "additionalProperties": false
  26844. }
  26845. },
  26846. "required": [
  26847. "id",
  26848. "created",
  26849. "type",
  26850. "data"
  26851. ],
  26852. "additionalProperties": false
  26853. },
  26854. "Form.Metadata1": {
  26855. "type": "object"
  26856. },
  26857. "Form.When1": {
  26858. "type": "object",
  26859. "properties": {
  26860. "key": {
  26861. "type": "string"
  26862. },
  26863. "op": {
  26864. "type": "string",
  26865. "enum": [
  26866. "eq",
  26867. "neq"
  26868. ]
  26869. },
  26870. "value": {
  26871. "anyOf": [
  26872. {
  26873. "type": "string"
  26874. },
  26875. {
  26876. "anyOf": [
  26877. {
  26878. "type": "number"
  26879. },
  26880. {
  26881. "type": "string",
  26882. "enum": [
  26883. "NaN"
  26884. ]
  26885. },
  26886. {
  26887. "type": "string",
  26888. "enum": [
  26889. "Infinity"
  26890. ]
  26891. },
  26892. {
  26893. "type": "string",
  26894. "enum": [
  26895. "-Infinity"
  26896. ]
  26897. }
  26898. ]
  26899. },
  26900. {
  26901. "type": "boolean"
  26902. }
  26903. ]
  26904. }
  26905. },
  26906. "required": [
  26907. "key",
  26908. "op",
  26909. "value"
  26910. ],
  26911. "additionalProperties": false
  26912. },
  26913. "Form.StringField1": {
  26914. "type": "object",
  26915. "properties": {
  26916. "key": {
  26917. "type": "string"
  26918. },
  26919. "title": {
  26920. "type": "string"
  26921. },
  26922. "description": {
  26923. "type": "string"
  26924. },
  26925. "required": {
  26926. "type": "boolean"
  26927. },
  26928. "when": {
  26929. "type": "array",
  26930. "items": {
  26931. "$ref": "#/components/schemas/Form.When1"
  26932. }
  26933. },
  26934. "type": {
  26935. "type": "string",
  26936. "enum": [
  26937. "string"
  26938. ]
  26939. },
  26940. "format": {
  26941. "type": "string",
  26942. "enum": [
  26943. "email",
  26944. "uri",
  26945. "date",
  26946. "date-time"
  26947. ]
  26948. },
  26949. "minLength": {
  26950. "type": "integer",
  26951. "allOf": [
  26952. {
  26953. "minimum": 0
  26954. }
  26955. ]
  26956. },
  26957. "maxLength": {
  26958. "type": "integer",
  26959. "allOf": [
  26960. {
  26961. "minimum": 0
  26962. }
  26963. ]
  26964. },
  26965. "pattern": {
  26966. "type": "string"
  26967. },
  26968. "placeholder": {
  26969. "type": "string"
  26970. },
  26971. "default": {
  26972. "type": "string"
  26973. },
  26974. "options": {
  26975. "type": "array",
  26976. "items": {
  26977. "$ref": "#/components/schemas/Form.Option"
  26978. }
  26979. },
  26980. "custom": {
  26981. "type": "boolean"
  26982. }
  26983. },
  26984. "required": [
  26985. "key",
  26986. "type"
  26987. ],
  26988. "additionalProperties": false
  26989. },
  26990. "Form.NumberField1": {
  26991. "type": "object",
  26992. "properties": {
  26993. "key": {
  26994. "type": "string"
  26995. },
  26996. "title": {
  26997. "type": "string"
  26998. },
  26999. "description": {
  27000. "type": "string"
  27001. },
  27002. "required": {
  27003. "type": "boolean"
  27004. },
  27005. "when": {
  27006. "type": "array",
  27007. "items": {
  27008. "$ref": "#/components/schemas/Form.When1"
  27009. }
  27010. },
  27011. "type": {
  27012. "type": "string",
  27013. "enum": [
  27014. "number"
  27015. ]
  27016. },
  27017. "minimum": {
  27018. "anyOf": [
  27019. {
  27020. "type": "number"
  27021. },
  27022. {
  27023. "type": "string",
  27024. "enum": [
  27025. "NaN"
  27026. ]
  27027. },
  27028. {
  27029. "type": "string",
  27030. "enum": [
  27031. "Infinity"
  27032. ]
  27033. },
  27034. {
  27035. "type": "string",
  27036. "enum": [
  27037. "-Infinity"
  27038. ]
  27039. }
  27040. ]
  27041. },
  27042. "maximum": {
  27043. "anyOf": [
  27044. {
  27045. "type": "number"
  27046. },
  27047. {
  27048. "type": "string",
  27049. "enum": [
  27050. "NaN"
  27051. ]
  27052. },
  27053. {
  27054. "type": "string",
  27055. "enum": [
  27056. "Infinity"
  27057. ]
  27058. },
  27059. {
  27060. "type": "string",
  27061. "enum": [
  27062. "-Infinity"
  27063. ]
  27064. }
  27065. ]
  27066. },
  27067. "default": {
  27068. "anyOf": [
  27069. {
  27070. "type": "number"
  27071. },
  27072. {
  27073. "type": "string",
  27074. "enum": [
  27075. "NaN"
  27076. ]
  27077. },
  27078. {
  27079. "type": "string",
  27080. "enum": [
  27081. "Infinity"
  27082. ]
  27083. },
  27084. {
  27085. "type": "string",
  27086. "enum": [
  27087. "-Infinity"
  27088. ]
  27089. }
  27090. ]
  27091. }
  27092. },
  27093. "required": [
  27094. "key",
  27095. "type"
  27096. ],
  27097. "additionalProperties": false
  27098. },
  27099. "Form.IntegerField1": {
  27100. "type": "object",
  27101. "properties": {
  27102. "key": {
  27103. "type": "string"
  27104. },
  27105. "title": {
  27106. "type": "string"
  27107. },
  27108. "description": {
  27109. "type": "string"
  27110. },
  27111. "required": {
  27112. "type": "boolean"
  27113. },
  27114. "when": {
  27115. "type": "array",
  27116. "items": {
  27117. "$ref": "#/components/schemas/Form.When1"
  27118. }
  27119. },
  27120. "type": {
  27121. "type": "string",
  27122. "enum": [
  27123. "integer"
  27124. ]
  27125. },
  27126. "minimum": {
  27127. "anyOf": [
  27128. {
  27129. "type": "number"
  27130. },
  27131. {
  27132. "type": "string",
  27133. "enum": [
  27134. "NaN"
  27135. ]
  27136. },
  27137. {
  27138. "type": "string",
  27139. "enum": [
  27140. "Infinity"
  27141. ]
  27142. },
  27143. {
  27144. "type": "string",
  27145. "enum": [
  27146. "-Infinity"
  27147. ]
  27148. }
  27149. ]
  27150. },
  27151. "maximum": {
  27152. "anyOf": [
  27153. {
  27154. "type": "number"
  27155. },
  27156. {
  27157. "type": "string",
  27158. "enum": [
  27159. "NaN"
  27160. ]
  27161. },
  27162. {
  27163. "type": "string",
  27164. "enum": [
  27165. "Infinity"
  27166. ]
  27167. },
  27168. {
  27169. "type": "string",
  27170. "enum": [
  27171. "-Infinity"
  27172. ]
  27173. }
  27174. ]
  27175. },
  27176. "default": {
  27177. "anyOf": [
  27178. {
  27179. "type": "number"
  27180. },
  27181. {
  27182. "type": "string",
  27183. "enum": [
  27184. "NaN"
  27185. ]
  27186. },
  27187. {
  27188. "type": "string",
  27189. "enum": [
  27190. "Infinity"
  27191. ]
  27192. },
  27193. {
  27194. "type": "string",
  27195. "enum": [
  27196. "-Infinity"
  27197. ]
  27198. }
  27199. ]
  27200. }
  27201. },
  27202. "required": [
  27203. "key",
  27204. "type"
  27205. ],
  27206. "additionalProperties": false
  27207. },
  27208. "Form.BooleanField1": {
  27209. "type": "object",
  27210. "properties": {
  27211. "key": {
  27212. "type": "string"
  27213. },
  27214. "title": {
  27215. "type": "string"
  27216. },
  27217. "description": {
  27218. "type": "string"
  27219. },
  27220. "required": {
  27221. "type": "boolean"
  27222. },
  27223. "when": {
  27224. "type": "array",
  27225. "items": {
  27226. "$ref": "#/components/schemas/Form.When1"
  27227. }
  27228. },
  27229. "type": {
  27230. "type": "string",
  27231. "enum": [
  27232. "boolean"
  27233. ]
  27234. },
  27235. "default": {
  27236. "type": "boolean"
  27237. }
  27238. },
  27239. "required": [
  27240. "key",
  27241. "type"
  27242. ],
  27243. "additionalProperties": false
  27244. },
  27245. "Form.MultiselectField1": {
  27246. "type": "object",
  27247. "properties": {
  27248. "key": {
  27249. "type": "string"
  27250. },
  27251. "title": {
  27252. "type": "string"
  27253. },
  27254. "description": {
  27255. "type": "string"
  27256. },
  27257. "required": {
  27258. "type": "boolean"
  27259. },
  27260. "when": {
  27261. "type": "array",
  27262. "items": {
  27263. "$ref": "#/components/schemas/Form.When1"
  27264. }
  27265. },
  27266. "type": {
  27267. "type": "string",
  27268. "enum": [
  27269. "multiselect"
  27270. ]
  27271. },
  27272. "options": {
  27273. "type": "array",
  27274. "items": {
  27275. "$ref": "#/components/schemas/Form.Option"
  27276. }
  27277. },
  27278. "minItems": {
  27279. "type": "integer",
  27280. "allOf": [
  27281. {
  27282. "minimum": 0
  27283. }
  27284. ]
  27285. },
  27286. "maxItems": {
  27287. "type": "integer",
  27288. "allOf": [
  27289. {
  27290. "minimum": 0
  27291. }
  27292. ]
  27293. },
  27294. "custom": {
  27295. "type": "boolean"
  27296. },
  27297. "default": {
  27298. "type": "array",
  27299. "items": {
  27300. "type": "string"
  27301. }
  27302. }
  27303. },
  27304. "required": [
  27305. "key",
  27306. "type",
  27307. "options"
  27308. ],
  27309. "additionalProperties": false
  27310. },
  27311. "Form.Field1": {
  27312. "anyOf": [
  27313. {
  27314. "$ref": "#/components/schemas/Form.StringField1"
  27315. },
  27316. {
  27317. "$ref": "#/components/schemas/Form.NumberField1"
  27318. },
  27319. {
  27320. "$ref": "#/components/schemas/Form.IntegerField1"
  27321. },
  27322. {
  27323. "$ref": "#/components/schemas/Form.BooleanField1"
  27324. },
  27325. {
  27326. "$ref": "#/components/schemas/Form.MultiselectField1"
  27327. },
  27328. {
  27329. "$ref": "#/components/schemas/Form.ExternalField"
  27330. }
  27331. ]
  27332. },
  27333. "Form.Fields1": {
  27334. "type": "array",
  27335. "prefixItems": [
  27336. {
  27337. "$ref": "#/components/schemas/Form.Field1"
  27338. }
  27339. ],
  27340. "minItems": 1,
  27341. "items": {
  27342. "$ref": "#/components/schemas/Form.Field1"
  27343. }
  27344. },
  27345. "Form.Info1": {
  27346. "type": "object",
  27347. "properties": {
  27348. "id": {
  27349. "type": "string",
  27350. "allOf": [
  27351. {
  27352. "pattern": "^frm_"
  27353. }
  27354. ]
  27355. },
  27356. "sessionID": {
  27357. "type": "string"
  27358. },
  27359. "title": {
  27360. "type": "string"
  27361. },
  27362. "metadata": {
  27363. "$ref": "#/components/schemas/Form.Metadata1"
  27364. },
  27365. "fields": {
  27366. "$ref": "#/components/schemas/Form.Fields1"
  27367. }
  27368. },
  27369. "required": [
  27370. "id",
  27371. "sessionID",
  27372. "title",
  27373. "fields"
  27374. ],
  27375. "additionalProperties": false
  27376. },
  27377. "form.created": {
  27378. "type": "object",
  27379. "properties": {
  27380. "id": {
  27381. "type": "string",
  27382. "allOf": [
  27383. {
  27384. "pattern": "^evt_"
  27385. }
  27386. ]
  27387. },
  27388. "created": {
  27389. "type": "number"
  27390. },
  27391. "metadata": {
  27392. "type": "object"
  27393. },
  27394. "type": {
  27395. "type": "string",
  27396. "enum": [
  27397. "form.created"
  27398. ]
  27399. },
  27400. "location": {
  27401. "$ref": "#/components/schemas/Location.Ref"
  27402. },
  27403. "data": {
  27404. "type": "object",
  27405. "properties": {
  27406. "form": {
  27407. "$ref": "#/components/schemas/Form.Info1"
  27408. }
  27409. },
  27410. "required": [
  27411. "form"
  27412. ],
  27413. "additionalProperties": false
  27414. }
  27415. },
  27416. "required": [
  27417. "id",
  27418. "created",
  27419. "type",
  27420. "data"
  27421. ],
  27422. "additionalProperties": false
  27423. },
  27424. "Form.Value1": {
  27425. "anyOf": [
  27426. {
  27427. "type": "string"
  27428. },
  27429. {
  27430. "anyOf": [
  27431. {
  27432. "type": "number"
  27433. },
  27434. {
  27435. "type": "string",
  27436. "enum": [
  27437. "NaN"
  27438. ]
  27439. },
  27440. {
  27441. "type": "string",
  27442. "enum": [
  27443. "Infinity"
  27444. ]
  27445. },
  27446. {
  27447. "type": "string",
  27448. "enum": [
  27449. "-Infinity"
  27450. ]
  27451. }
  27452. ]
  27453. },
  27454. {
  27455. "type": "boolean"
  27456. },
  27457. {
  27458. "type": "array",
  27459. "items": {
  27460. "type": "string"
  27461. }
  27462. }
  27463. ]
  27464. },
  27465. "Form.Answer1": {
  27466. "type": "object",
  27467. "additionalProperties": {
  27468. "$ref": "#/components/schemas/Form.Value1"
  27469. }
  27470. },
  27471. "form.replied": {
  27472. "type": "object",
  27473. "properties": {
  27474. "id": {
  27475. "type": "string",
  27476. "allOf": [
  27477. {
  27478. "pattern": "^evt_"
  27479. }
  27480. ]
  27481. },
  27482. "created": {
  27483. "type": "number"
  27484. },
  27485. "metadata": {
  27486. "type": "object"
  27487. },
  27488. "type": {
  27489. "type": "string",
  27490. "enum": [
  27491. "form.replied"
  27492. ]
  27493. },
  27494. "location": {
  27495. "$ref": "#/components/schemas/Location.Ref"
  27496. },
  27497. "data": {
  27498. "type": "object",
  27499. "properties": {
  27500. "id": {
  27501. "type": "string",
  27502. "allOf": [
  27503. {
  27504. "pattern": "^frm_"
  27505. }
  27506. ]
  27507. },
  27508. "sessionID": {
  27509. "type": "string"
  27510. },
  27511. "answer": {
  27512. "$ref": "#/components/schemas/Form.Answer1"
  27513. }
  27514. },
  27515. "required": [
  27516. "id",
  27517. "sessionID",
  27518. "answer"
  27519. ],
  27520. "additionalProperties": false
  27521. }
  27522. },
  27523. "required": [
  27524. "id",
  27525. "created",
  27526. "type",
  27527. "data"
  27528. ],
  27529. "additionalProperties": false
  27530. },
  27531. "form.cancelled": {
  27532. "type": "object",
  27533. "properties": {
  27534. "id": {
  27535. "type": "string",
  27536. "allOf": [
  27537. {
  27538. "pattern": "^evt_"
  27539. }
  27540. ]
  27541. },
  27542. "created": {
  27543. "type": "number"
  27544. },
  27545. "metadata": {
  27546. "type": "object"
  27547. },
  27548. "type": {
  27549. "type": "string",
  27550. "enum": [
  27551. "form.cancelled"
  27552. ]
  27553. },
  27554. "location": {
  27555. "$ref": "#/components/schemas/Location.Ref"
  27556. },
  27557. "data": {
  27558. "type": "object",
  27559. "properties": {
  27560. "id": {
  27561. "type": "string",
  27562. "allOf": [
  27563. {
  27564. "pattern": "^frm_"
  27565. }
  27566. ]
  27567. },
  27568. "sessionID": {
  27569. "type": "string"
  27570. }
  27571. },
  27572. "required": [
  27573. "id",
  27574. "sessionID"
  27575. ],
  27576. "additionalProperties": false
  27577. }
  27578. },
  27579. "required": [
  27580. "id",
  27581. "created",
  27582. "type",
  27583. "data"
  27584. ],
  27585. "additionalProperties": false
  27586. },
  27587. "websearch.updated": {
  27588. "type": "object",
  27589. "properties": {
  27590. "id": {
  27591. "type": "string",
  27592. "allOf": [
  27593. {
  27594. "pattern": "^evt_"
  27595. }
  27596. ]
  27597. },
  27598. "created": {
  27599. "type": "number"
  27600. },
  27601. "metadata": {
  27602. "type": "object"
  27603. },
  27604. "type": {
  27605. "type": "string",
  27606. "enum": [
  27607. "websearch.updated"
  27608. ]
  27609. },
  27610. "location": {
  27611. "$ref": "#/components/schemas/Location.Ref"
  27612. },
  27613. "data": {
  27614. "anyOf": [
  27615. {
  27616. "type": "object"
  27617. },
  27618. {
  27619. "type": "array"
  27620. }
  27621. ]
  27622. }
  27623. },
  27624. "required": [
  27625. "id",
  27626. "created",
  27627. "type",
  27628. "data"
  27629. ],
  27630. "additionalProperties": false
  27631. },
  27632. "SessionStatus": {
  27633. "anyOf": [
  27634. {
  27635. "type": "object",
  27636. "properties": {
  27637. "type": {
  27638. "type": "string",
  27639. "enum": [
  27640. "idle"
  27641. ]
  27642. }
  27643. },
  27644. "required": [
  27645. "type"
  27646. ],
  27647. "additionalProperties": false
  27648. },
  27649. {
  27650. "type": "object",
  27651. "properties": {
  27652. "type": {
  27653. "type": "string",
  27654. "enum": [
  27655. "retry"
  27656. ]
  27657. },
  27658. "attempt": {
  27659. "type": "integer",
  27660. "allOf": [
  27661. {
  27662. "minimum": 0
  27663. }
  27664. ]
  27665. },
  27666. "message": {
  27667. "type": "string"
  27668. },
  27669. "action": {
  27670. "type": "object",
  27671. "properties": {
  27672. "reason": {
  27673. "type": "string"
  27674. },
  27675. "provider": {
  27676. "type": "string"
  27677. },
  27678. "title": {
  27679. "type": "string"
  27680. },
  27681. "message": {
  27682. "type": "string"
  27683. },
  27684. "label": {
  27685. "type": "string"
  27686. },
  27687. "link": {
  27688. "type": "string"
  27689. }
  27690. },
  27691. "required": [
  27692. "reason",
  27693. "provider",
  27694. "title",
  27695. "message",
  27696. "label"
  27697. ],
  27698. "additionalProperties": false
  27699. },
  27700. "next": {
  27701. "type": "integer",
  27702. "allOf": [
  27703. {
  27704. "minimum": 0
  27705. }
  27706. ]
  27707. }
  27708. },
  27709. "required": [
  27710. "type",
  27711. "attempt",
  27712. "message",
  27713. "next"
  27714. ],
  27715. "additionalProperties": false
  27716. },
  27717. {
  27718. "type": "object",
  27719. "properties": {
  27720. "type": {
  27721. "type": "string",
  27722. "enum": [
  27723. "busy"
  27724. ]
  27725. }
  27726. },
  27727. "required": [
  27728. "type"
  27729. ],
  27730. "additionalProperties": false
  27731. }
  27732. ]
  27733. },
  27734. "session.status": {
  27735. "type": "object",
  27736. "properties": {
  27737. "id": {
  27738. "type": "string",
  27739. "allOf": [
  27740. {
  27741. "pattern": "^evt_"
  27742. }
  27743. ]
  27744. },
  27745. "created": {
  27746. "type": "number"
  27747. },
  27748. "metadata": {
  27749. "type": "object"
  27750. },
  27751. "type": {
  27752. "type": "string",
  27753. "enum": [
  27754. "session.status"
  27755. ]
  27756. },
  27757. "location": {
  27758. "$ref": "#/components/schemas/Location.Ref"
  27759. },
  27760. "data": {
  27761. "type": "object",
  27762. "properties": {
  27763. "sessionID": {
  27764. "type": "string",
  27765. "allOf": [
  27766. {
  27767. "pattern": "^ses"
  27768. }
  27769. ]
  27770. },
  27771. "status": {
  27772. "$ref": "#/components/schemas/SessionStatus"
  27773. }
  27774. },
  27775. "required": [
  27776. "sessionID",
  27777. "status"
  27778. ],
  27779. "additionalProperties": false
  27780. }
  27781. },
  27782. "required": [
  27783. "id",
  27784. "created",
  27785. "type",
  27786. "data"
  27787. ],
  27788. "additionalProperties": false
  27789. },
  27790. "session.idle": {
  27791. "type": "object",
  27792. "properties": {
  27793. "id": {
  27794. "type": "string",
  27795. "allOf": [
  27796. {
  27797. "pattern": "^evt_"
  27798. }
  27799. ]
  27800. },
  27801. "created": {
  27802. "type": "number"
  27803. },
  27804. "metadata": {
  27805. "type": "object"
  27806. },
  27807. "type": {
  27808. "type": "string",
  27809. "enum": [
  27810. "session.idle"
  27811. ]
  27812. },
  27813. "location": {
  27814. "$ref": "#/components/schemas/Location.Ref"
  27815. },
  27816. "data": {
  27817. "type": "object",
  27818. "properties": {
  27819. "sessionID": {
  27820. "type": "string",
  27821. "allOf": [
  27822. {
  27823. "pattern": "^ses"
  27824. }
  27825. ]
  27826. }
  27827. },
  27828. "required": [
  27829. "sessionID"
  27830. ],
  27831. "additionalProperties": false
  27832. }
  27833. },
  27834. "required": [
  27835. "id",
  27836. "created",
  27837. "type",
  27838. "data"
  27839. ],
  27840. "additionalProperties": false
  27841. },
  27842. "tui.prompt.append": {
  27843. "type": "object",
  27844. "properties": {
  27845. "id": {
  27846. "type": "string",
  27847. "allOf": [
  27848. {
  27849. "pattern": "^evt_"
  27850. }
  27851. ]
  27852. },
  27853. "created": {
  27854. "type": "number"
  27855. },
  27856. "metadata": {
  27857. "type": "object"
  27858. },
  27859. "type": {
  27860. "type": "string",
  27861. "enum": [
  27862. "tui.prompt.append"
  27863. ]
  27864. },
  27865. "location": {
  27866. "$ref": "#/components/schemas/Location.Ref"
  27867. },
  27868. "data": {
  27869. "type": "object",
  27870. "properties": {
  27871. "text": {
  27872. "type": "string"
  27873. }
  27874. },
  27875. "required": [
  27876. "text"
  27877. ],
  27878. "additionalProperties": false
  27879. }
  27880. },
  27881. "required": [
  27882. "id",
  27883. "created",
  27884. "type",
  27885. "data"
  27886. ],
  27887. "additionalProperties": false
  27888. },
  27889. "tui.command.execute": {
  27890. "type": "object",
  27891. "properties": {
  27892. "id": {
  27893. "type": "string",
  27894. "allOf": [
  27895. {
  27896. "pattern": "^evt_"
  27897. }
  27898. ]
  27899. },
  27900. "created": {
  27901. "type": "number"
  27902. },
  27903. "metadata": {
  27904. "type": "object"
  27905. },
  27906. "type": {
  27907. "type": "string",
  27908. "enum": [
  27909. "tui.command.execute"
  27910. ]
  27911. },
  27912. "location": {
  27913. "$ref": "#/components/schemas/Location.Ref"
  27914. },
  27915. "data": {
  27916. "type": "object",
  27917. "properties": {
  27918. "command": {
  27919. "anyOf": [
  27920. {
  27921. "type": "string",
  27922. "enum": [
  27923. "session.list",
  27924. "session.new",
  27925. "session.share",
  27926. "session.interrupt",
  27927. "session.background",
  27928. "session.compact",
  27929. "session.page.up",
  27930. "session.page.down",
  27931. "session.line.up",
  27932. "session.line.down",
  27933. "session.half.page.up",
  27934. "session.half.page.down",
  27935. "session.first",
  27936. "session.last",
  27937. "prompt.clear",
  27938. "prompt.submit",
  27939. "agent.cycle"
  27940. ]
  27941. },
  27942. {
  27943. "type": "string"
  27944. }
  27945. ]
  27946. }
  27947. },
  27948. "required": [
  27949. "command"
  27950. ],
  27951. "additionalProperties": false
  27952. }
  27953. },
  27954. "required": [
  27955. "id",
  27956. "created",
  27957. "type",
  27958. "data"
  27959. ],
  27960. "additionalProperties": false
  27961. },
  27962. "tui.toast.show": {
  27963. "type": "object",
  27964. "properties": {
  27965. "id": {
  27966. "type": "string",
  27967. "allOf": [
  27968. {
  27969. "pattern": "^evt_"
  27970. }
  27971. ]
  27972. },
  27973. "created": {
  27974. "type": "number"
  27975. },
  27976. "metadata": {
  27977. "type": "object"
  27978. },
  27979. "type": {
  27980. "type": "string",
  27981. "enum": [
  27982. "tui.toast.show"
  27983. ]
  27984. },
  27985. "location": {
  27986. "$ref": "#/components/schemas/Location.Ref"
  27987. },
  27988. "data": {
  27989. "type": "object",
  27990. "properties": {
  27991. "title": {
  27992. "type": "string"
  27993. },
  27994. "message": {
  27995. "type": "string"
  27996. },
  27997. "variant": {
  27998. "type": "string",
  27999. "enum": [
  28000. "info",
  28001. "success",
  28002. "warning",
  28003. "error"
  28004. ]
  28005. },
  28006. "duration": {
  28007. "anyOf": [
  28008. {
  28009. "type": "integer",
  28010. "allOf": [
  28011. {
  28012. "exclusiveMinimum": 0
  28013. }
  28014. ]
  28015. },
  28016. {
  28017. "type": "null"
  28018. }
  28019. ]
  28020. }
  28021. },
  28022. "required": [
  28023. "message",
  28024. "variant"
  28025. ],
  28026. "additionalProperties": false
  28027. }
  28028. },
  28029. "required": [
  28030. "id",
  28031. "created",
  28032. "type",
  28033. "data"
  28034. ],
  28035. "additionalProperties": false
  28036. },
  28037. "tui.session.select": {
  28038. "type": "object",
  28039. "properties": {
  28040. "id": {
  28041. "type": "string",
  28042. "allOf": [
  28043. {
  28044. "pattern": "^evt_"
  28045. }
  28046. ]
  28047. },
  28048. "created": {
  28049. "type": "number"
  28050. },
  28051. "metadata": {
  28052. "type": "object"
  28053. },
  28054. "type": {
  28055. "type": "string",
  28056. "enum": [
  28057. "tui.session.select"
  28058. ]
  28059. },
  28060. "location": {
  28061. "$ref": "#/components/schemas/Location.Ref"
  28062. },
  28063. "data": {
  28064. "type": "object",
  28065. "properties": {
  28066. "sessionID": {
  28067. "type": "string",
  28068. "allOf": [
  28069. {
  28070. "pattern": "^ses",
  28071. "description": "Session ID to navigate to"
  28072. }
  28073. ]
  28074. }
  28075. },
  28076. "required": [
  28077. "sessionID"
  28078. ],
  28079. "additionalProperties": false
  28080. }
  28081. },
  28082. "required": [
  28083. "id",
  28084. "created",
  28085. "type",
  28086. "data"
  28087. ],
  28088. "additionalProperties": false
  28089. },
  28090. "installation.updated": {
  28091. "type": "object",
  28092. "properties": {
  28093. "id": {
  28094. "type": "string",
  28095. "allOf": [
  28096. {
  28097. "pattern": "^evt_"
  28098. }
  28099. ]
  28100. },
  28101. "created": {
  28102. "type": "number"
  28103. },
  28104. "metadata": {
  28105. "type": "object"
  28106. },
  28107. "type": {
  28108. "type": "string",
  28109. "enum": [
  28110. "installation.updated"
  28111. ]
  28112. },
  28113. "location": {
  28114. "$ref": "#/components/schemas/Location.Ref"
  28115. },
  28116. "data": {
  28117. "type": "object",
  28118. "properties": {
  28119. "version": {
  28120. "type": "string"
  28121. }
  28122. },
  28123. "required": [
  28124. "version"
  28125. ],
  28126. "additionalProperties": false
  28127. }
  28128. },
  28129. "required": [
  28130. "id",
  28131. "created",
  28132. "type",
  28133. "data"
  28134. ],
  28135. "additionalProperties": false
  28136. },
  28137. "installation.update-available": {
  28138. "type": "object",
  28139. "properties": {
  28140. "id": {
  28141. "type": "string",
  28142. "allOf": [
  28143. {
  28144. "pattern": "^evt_"
  28145. }
  28146. ]
  28147. },
  28148. "created": {
  28149. "type": "number"
  28150. },
  28151. "metadata": {
  28152. "type": "object"
  28153. },
  28154. "type": {
  28155. "type": "string",
  28156. "enum": [
  28157. "installation.update-available"
  28158. ]
  28159. },
  28160. "location": {
  28161. "$ref": "#/components/schemas/Location.Ref"
  28162. },
  28163. "data": {
  28164. "type": "object",
  28165. "properties": {
  28166. "version": {
  28167. "type": "string"
  28168. }
  28169. },
  28170. "required": [
  28171. "version"
  28172. ],
  28173. "additionalProperties": false
  28174. }
  28175. },
  28176. "required": [
  28177. "id",
  28178. "created",
  28179. "type",
  28180. "data"
  28181. ],
  28182. "additionalProperties": false
  28183. },
  28184. "vcs.branch.updated": {
  28185. "type": "object",
  28186. "properties": {
  28187. "id": {
  28188. "type": "string",
  28189. "allOf": [
  28190. {
  28191. "pattern": "^evt_"
  28192. }
  28193. ]
  28194. },
  28195. "created": {
  28196. "type": "number"
  28197. },
  28198. "metadata": {
  28199. "type": "object"
  28200. },
  28201. "type": {
  28202. "type": "string",
  28203. "enum": [
  28204. "vcs.branch.updated"
  28205. ]
  28206. },
  28207. "location": {
  28208. "$ref": "#/components/schemas/Location.Ref"
  28209. },
  28210. "data": {
  28211. "type": "object",
  28212. "properties": {
  28213. "branch": {
  28214. "type": "string"
  28215. }
  28216. },
  28217. "additionalProperties": false
  28218. }
  28219. },
  28220. "required": [
  28221. "id",
  28222. "created",
  28223. "type",
  28224. "data"
  28225. ],
  28226. "additionalProperties": false
  28227. },
  28228. "mcp.status.changed": {
  28229. "type": "object",
  28230. "properties": {
  28231. "id": {
  28232. "type": "string",
  28233. "allOf": [
  28234. {
  28235. "pattern": "^evt_"
  28236. }
  28237. ]
  28238. },
  28239. "created": {
  28240. "type": "number"
  28241. },
  28242. "metadata": {
  28243. "type": "object"
  28244. },
  28245. "type": {
  28246. "type": "string",
  28247. "enum": [
  28248. "mcp.status.changed"
  28249. ]
  28250. },
  28251. "location": {
  28252. "$ref": "#/components/schemas/Location.Ref"
  28253. },
  28254. "data": {
  28255. "type": "object",
  28256. "properties": {
  28257. "server": {
  28258. "type": "string"
  28259. }
  28260. },
  28261. "required": [
  28262. "server"
  28263. ],
  28264. "additionalProperties": false
  28265. }
  28266. },
  28267. "required": [
  28268. "id",
  28269. "created",
  28270. "type",
  28271. "data"
  28272. ],
  28273. "additionalProperties": false
  28274. },
  28275. "mcp.resources.changed": {
  28276. "type": "object",
  28277. "properties": {
  28278. "id": {
  28279. "type": "string",
  28280. "allOf": [
  28281. {
  28282. "pattern": "^evt_"
  28283. }
  28284. ]
  28285. },
  28286. "created": {
  28287. "type": "number"
  28288. },
  28289. "metadata": {
  28290. "type": "object"
  28291. },
  28292. "type": {
  28293. "type": "string",
  28294. "enum": [
  28295. "mcp.resources.changed"
  28296. ]
  28297. },
  28298. "location": {
  28299. "$ref": "#/components/schemas/Location.Ref"
  28300. },
  28301. "data": {
  28302. "type": "object",
  28303. "properties": {
  28304. "server": {
  28305. "type": "string"
  28306. }
  28307. },
  28308. "required": [
  28309. "server"
  28310. ],
  28311. "additionalProperties": false
  28312. }
  28313. },
  28314. "required": [
  28315. "id",
  28316. "created",
  28317. "type",
  28318. "data"
  28319. ],
  28320. "additionalProperties": false
  28321. },
  28322. "session.error": {
  28323. "type": "object",
  28324. "properties": {
  28325. "id": {
  28326. "type": "string",
  28327. "allOf": [
  28328. {
  28329. "pattern": "^evt_"
  28330. }
  28331. ]
  28332. },
  28333. "created": {
  28334. "type": "number"
  28335. },
  28336. "metadata": {
  28337. "type": "object"
  28338. },
  28339. "type": {
  28340. "type": "string",
  28341. "enum": [
  28342. "session.error"
  28343. ]
  28344. },
  28345. "location": {
  28346. "$ref": "#/components/schemas/Location.Ref"
  28347. },
  28348. "data": {
  28349. "type": "object",
  28350. "properties": {
  28351. "sessionID": {
  28352. "anyOf": [
  28353. {
  28354. "type": "string",
  28355. "allOf": [
  28356. {
  28357. "pattern": "^ses"
  28358. }
  28359. ]
  28360. },
  28361. {
  28362. "type": "null"
  28363. }
  28364. ]
  28365. },
  28366. "error": {
  28367. "anyOf": [
  28368. {
  28369. "anyOf": [
  28370. {
  28371. "$ref": "#/components/schemas/ProviderAuthError"
  28372. },
  28373. {
  28374. "$ref": "#/components/schemas/UnknownError1"
  28375. },
  28376. {
  28377. "$ref": "#/components/schemas/MessageOutputLengthError"
  28378. },
  28379. {
  28380. "$ref": "#/components/schemas/MessageAbortedError"
  28381. },
  28382. {
  28383. "$ref": "#/components/schemas/StructuredOutputError"
  28384. },
  28385. {
  28386. "$ref": "#/components/schemas/ContextOverflowError"
  28387. },
  28388. {
  28389. "$ref": "#/components/schemas/ContentFilterError"
  28390. },
  28391. {
  28392. "$ref": "#/components/schemas/APIError"
  28393. }
  28394. ]
  28395. },
  28396. {
  28397. "type": "null"
  28398. }
  28399. ]
  28400. }
  28401. },
  28402. "additionalProperties": false
  28403. }
  28404. },
  28405. "required": [
  28406. "id",
  28407. "created",
  28408. "type",
  28409. "data"
  28410. ],
  28411. "additionalProperties": false
  28412. },
  28413. "V2Event.server.connected": {
  28414. "type": "object",
  28415. "properties": {
  28416. "id": {
  28417. "type": "string",
  28418. "allOf": [
  28419. {
  28420. "pattern": "^evt_"
  28421. }
  28422. ]
  28423. },
  28424. "metadata": {
  28425. "anyOf": [
  28426. {
  28427. "type": "object"
  28428. },
  28429. {
  28430. "type": "null"
  28431. }
  28432. ]
  28433. },
  28434. "location": {
  28435. "anyOf": [
  28436. {
  28437. "$ref": "#/components/schemas/Location.Ref"
  28438. },
  28439. {
  28440. "type": "null"
  28441. }
  28442. ]
  28443. },
  28444. "type": {
  28445. "type": "string",
  28446. "enum": [
  28447. "server.connected"
  28448. ]
  28449. },
  28450. "data": {
  28451. "anyOf": [
  28452. {
  28453. "type": "object"
  28454. },
  28455. {
  28456. "type": "array"
  28457. }
  28458. ]
  28459. }
  28460. },
  28461. "required": [
  28462. "id",
  28463. "type",
  28464. "data"
  28465. ],
  28466. "additionalProperties": false
  28467. },
  28468. "V2Event": {
  28469. "anyOf": [
  28470. {
  28471. "$ref": "#/components/schemas/models-dev.refreshed"
  28472. },
  28473. {
  28474. "$ref": "#/components/schemas/integration.updated"
  28475. },
  28476. {
  28477. "$ref": "#/components/schemas/integration.connection.updated"
  28478. },
  28479. {
  28480. "$ref": "#/components/schemas/catalog.updated"
  28481. },
  28482. {
  28483. "$ref": "#/components/schemas/agent.updated"
  28484. },
  28485. {
  28486. "$ref": "#/components/schemas/session.created"
  28487. },
  28488. {
  28489. "$ref": "#/components/schemas/session.updated"
  28490. },
  28491. {
  28492. "$ref": "#/components/schemas/session.deleted1"
  28493. },
  28494. {
  28495. "$ref": "#/components/schemas/message.updated"
  28496. },
  28497. {
  28498. "$ref": "#/components/schemas/message.removed"
  28499. },
  28500. {
  28501. "$ref": "#/components/schemas/message.part.updated"
  28502. },
  28503. {
  28504. "$ref": "#/components/schemas/message.part.removed"
  28505. },
  28506. {
  28507. "$ref": "#/components/schemas/session.agent.selected"
  28508. },
  28509. {
  28510. "$ref": "#/components/schemas/session.model.selected"
  28511. },
  28512. {
  28513. "$ref": "#/components/schemas/session.moved"
  28514. },
  28515. {
  28516. "$ref": "#/components/schemas/session.renamed"
  28517. },
  28518. {
  28519. "$ref": "#/components/schemas/session.usage.updated"
  28520. },
  28521. {
  28522. "$ref": "#/components/schemas/session.deleted"
  28523. },
  28524. {
  28525. "$ref": "#/components/schemas/session.forked"
  28526. },
  28527. {
  28528. "$ref": "#/components/schemas/session.input.promoted"
  28529. },
  28530. {
  28531. "$ref": "#/components/schemas/session.input.admitted"
  28532. },
  28533. {
  28534. "$ref": "#/components/schemas/session.execution.started"
  28535. },
  28536. {
  28537. "$ref": "#/components/schemas/session.execution.succeeded"
  28538. },
  28539. {
  28540. "$ref": "#/components/schemas/session.execution.failed"
  28541. },
  28542. {
  28543. "$ref": "#/components/schemas/session.execution.interrupted"
  28544. },
  28545. {
  28546. "$ref": "#/components/schemas/session.instructions.updated"
  28547. },
  28548. {
  28549. "$ref": "#/components/schemas/session.synthetic"
  28550. },
  28551. {
  28552. "$ref": "#/components/schemas/session.skill.activated"
  28553. },
  28554. {
  28555. "$ref": "#/components/schemas/session.shell.started"
  28556. },
  28557. {
  28558. "$ref": "#/components/schemas/session.shell.ended"
  28559. },
  28560. {
  28561. "$ref": "#/components/schemas/session.step.started"
  28562. },
  28563. {
  28564. "$ref": "#/components/schemas/session.step.ended"
  28565. },
  28566. {
  28567. "$ref": "#/components/schemas/session.step.failed"
  28568. },
  28569. {
  28570. "$ref": "#/components/schemas/session.text.started"
  28571. },
  28572. {
  28573. "$ref": "#/components/schemas/session.text.delta"
  28574. },
  28575. {
  28576. "$ref": "#/components/schemas/session.text.ended"
  28577. },
  28578. {
  28579. "$ref": "#/components/schemas/session.reasoning.started"
  28580. },
  28581. {
  28582. "$ref": "#/components/schemas/session.reasoning.delta"
  28583. },
  28584. {
  28585. "$ref": "#/components/schemas/session.reasoning.ended"
  28586. },
  28587. {
  28588. "$ref": "#/components/schemas/session.tool.input.started"
  28589. },
  28590. {
  28591. "$ref": "#/components/schemas/session.tool.input.delta"
  28592. },
  28593. {
  28594. "$ref": "#/components/schemas/session.tool.input.ended"
  28595. },
  28596. {
  28597. "$ref": "#/components/schemas/session.tool.called"
  28598. },
  28599. {
  28600. "$ref": "#/components/schemas/session.tool.progress"
  28601. },
  28602. {
  28603. "$ref": "#/components/schemas/session.tool.success"
  28604. },
  28605. {
  28606. "$ref": "#/components/schemas/session.tool.failed"
  28607. },
  28608. {
  28609. "$ref": "#/components/schemas/session.retry.scheduled"
  28610. },
  28611. {
  28612. "$ref": "#/components/schemas/session.compaction.admitted"
  28613. },
  28614. {
  28615. "$ref": "#/components/schemas/session.compaction.started"
  28616. },
  28617. {
  28618. "$ref": "#/components/schemas/session.compaction.delta"
  28619. },
  28620. {
  28621. "$ref": "#/components/schemas/session.compaction.ended"
  28622. },
  28623. {
  28624. "$ref": "#/components/schemas/session.compaction.failed"
  28625. },
  28626. {
  28627. "$ref": "#/components/schemas/session.revert.staged"
  28628. },
  28629. {
  28630. "$ref": "#/components/schemas/session.revert.cleared"
  28631. },
  28632. {
  28633. "$ref": "#/components/schemas/session.revert.committed"
  28634. },
  28635. {
  28636. "$ref": "#/components/schemas/filesystem.changed"
  28637. },
  28638. {
  28639. "$ref": "#/components/schemas/reference.updated"
  28640. },
  28641. {
  28642. "$ref": "#/components/schemas/permission.asked"
  28643. },
  28644. {
  28645. "$ref": "#/components/schemas/permission.replied"
  28646. },
  28647. {
  28648. "$ref": "#/components/schemas/plugin.added"
  28649. },
  28650. {
  28651. "$ref": "#/components/schemas/plugin.updated"
  28652. },
  28653. {
  28654. "$ref": "#/components/schemas/project.directories.updated"
  28655. },
  28656. {
  28657. "$ref": "#/components/schemas/command.updated"
  28658. },
  28659. {
  28660. "$ref": "#/components/schemas/config.updated"
  28661. },
  28662. {
  28663. "$ref": "#/components/schemas/skill.updated"
  28664. },
  28665. {
  28666. "$ref": "#/components/schemas/pty.created"
  28667. },
  28668. {
  28669. "$ref": "#/components/schemas/pty.updated"
  28670. },
  28671. {
  28672. "$ref": "#/components/schemas/pty.exited"
  28673. },
  28674. {
  28675. "$ref": "#/components/schemas/pty.deleted"
  28676. },
  28677. {
  28678. "$ref": "#/components/schemas/shell.created"
  28679. },
  28680. {
  28681. "$ref": "#/components/schemas/shell.exited"
  28682. },
  28683. {
  28684. "$ref": "#/components/schemas/shell.deleted"
  28685. },
  28686. {
  28687. "$ref": "#/components/schemas/question.asked"
  28688. },
  28689. {
  28690. "$ref": "#/components/schemas/question.replied"
  28691. },
  28692. {
  28693. "$ref": "#/components/schemas/question.rejected"
  28694. },
  28695. {
  28696. "$ref": "#/components/schemas/form.created"
  28697. },
  28698. {
  28699. "$ref": "#/components/schemas/form.replied"
  28700. },
  28701. {
  28702. "$ref": "#/components/schemas/form.cancelled"
  28703. },
  28704. {
  28705. "$ref": "#/components/schemas/websearch.updated"
  28706. },
  28707. {
  28708. "$ref": "#/components/schemas/session.status"
  28709. },
  28710. {
  28711. "$ref": "#/components/schemas/session.idle"
  28712. },
  28713. {
  28714. "$ref": "#/components/schemas/tui.prompt.append"
  28715. },
  28716. {
  28717. "$ref": "#/components/schemas/tui.command.execute"
  28718. },
  28719. {
  28720. "$ref": "#/components/schemas/tui.toast.show"
  28721. },
  28722. {
  28723. "$ref": "#/components/schemas/tui.session.select"
  28724. },
  28725. {
  28726. "$ref": "#/components/schemas/installation.updated"
  28727. },
  28728. {
  28729. "$ref": "#/components/schemas/installation.update-available"
  28730. },
  28731. {
  28732. "$ref": "#/components/schemas/vcs.branch.updated"
  28733. },
  28734. {
  28735. "$ref": "#/components/schemas/mcp.status.changed"
  28736. },
  28737. {
  28738. "$ref": "#/components/schemas/mcp.resources.changed"
  28739. },
  28740. {
  28741. "$ref": "#/components/schemas/session.error"
  28742. },
  28743. {
  28744. "$ref": "#/components/schemas/V2Event.server.connected"
  28745. }
  28746. ]
  28747. },
  28748. "V2EventJsonString": {
  28749. "type": "string",
  28750. "contentSchema": {
  28751. "$ref": "#/components/schemas/V2Event"
  28752. },
  28753. "contentMediaType": "application/json"
  28754. },
  28755. "PtyNotFoundError": {
  28756. "type": "object",
  28757. "properties": {
  28758. "_tag": {
  28759. "type": "string",
  28760. "enum": [
  28761. "PtyNotFoundError"
  28762. ]
  28763. },
  28764. "ptyID": {
  28765. "type": "string"
  28766. },
  28767. "message": {
  28768. "type": "string"
  28769. }
  28770. },
  28771. "required": [
  28772. "_tag",
  28773. "ptyID",
  28774. "message"
  28775. ],
  28776. "additionalProperties": false
  28777. },
  28778. "PtyTicket.ConnectToken": {
  28779. "type": "object",
  28780. "properties": {
  28781. "ticket": {
  28782. "type": "string"
  28783. },
  28784. "expires_in": {
  28785. "type": "integer",
  28786. "allOf": [
  28787. {
  28788. "exclusiveMinimum": 0
  28789. }
  28790. ]
  28791. }
  28792. },
  28793. "required": [
  28794. "ticket",
  28795. "expires_in"
  28796. ],
  28797. "additionalProperties": false
  28798. },
  28799. "ForbiddenError": {
  28800. "type": "object",
  28801. "properties": {
  28802. "_tag": {
  28803. "type": "string",
  28804. "enum": [
  28805. "ForbiddenError"
  28806. ]
  28807. },
  28808. "message": {
  28809. "type": "string"
  28810. }
  28811. },
  28812. "required": [
  28813. "_tag",
  28814. "message"
  28815. ],
  28816. "additionalProperties": false
  28817. },
  28818. "Shell.Info1": {
  28819. "type": "object",
  28820. "properties": {
  28821. "id": {
  28822. "type": "string",
  28823. "allOf": [
  28824. {
  28825. "pattern": "^sh_"
  28826. }
  28827. ]
  28828. },
  28829. "status": {
  28830. "type": "string",
  28831. "enum": [
  28832. "running",
  28833. "exited",
  28834. "timeout",
  28835. "killed"
  28836. ]
  28837. },
  28838. "command": {
  28839. "type": "string"
  28840. },
  28841. "cwd": {
  28842. "type": "string"
  28843. },
  28844. "shell": {
  28845. "type": "string"
  28846. },
  28847. "file": {
  28848. "type": "string"
  28849. },
  28850. "pid": {
  28851. "type": "integer",
  28852. "allOf": [
  28853. {
  28854. "minimum": 0
  28855. }
  28856. ]
  28857. },
  28858. "exit": {
  28859. "type": "number"
  28860. },
  28861. "metadata": {
  28862. "type": "object"
  28863. },
  28864. "time": {
  28865. "type": "object",
  28866. "properties": {
  28867. "started": {
  28868. "type": "number"
  28869. },
  28870. "completed": {
  28871. "type": "number"
  28872. }
  28873. },
  28874. "required": [
  28875. "started"
  28876. ],
  28877. "additionalProperties": false
  28878. }
  28879. },
  28880. "required": [
  28881. "id",
  28882. "status",
  28883. "command",
  28884. "cwd",
  28885. "shell",
  28886. "file",
  28887. "metadata",
  28888. "time"
  28889. ],
  28890. "additionalProperties": false
  28891. },
  28892. "ShellNotFoundError": {
  28893. "type": "object",
  28894. "properties": {
  28895. "_tag": {
  28896. "type": "string",
  28897. "enum": [
  28898. "ShellNotFoundError"
  28899. ]
  28900. },
  28901. "id": {
  28902. "type": "string"
  28903. },
  28904. "message": {
  28905. "type": "string"
  28906. }
  28907. },
  28908. "required": [
  28909. "_tag",
  28910. "id",
  28911. "message"
  28912. ],
  28913. "additionalProperties": false
  28914. },
  28915. "Question.Request": {
  28916. "type": "object",
  28917. "properties": {
  28918. "id": {
  28919. "type": "string",
  28920. "allOf": [
  28921. {
  28922. "pattern": "^que"
  28923. }
  28924. ]
  28925. },
  28926. "sessionID": {
  28927. "type": "string",
  28928. "allOf": [
  28929. {
  28930. "pattern": "^ses"
  28931. }
  28932. ]
  28933. },
  28934. "questions": {
  28935. "type": "array",
  28936. "items": {
  28937. "$ref": "#/components/schemas/Question.Info"
  28938. },
  28939. "description": "Questions to ask"
  28940. },
  28941. "tool": {
  28942. "$ref": "#/components/schemas/Question.Tool"
  28943. }
  28944. },
  28945. "required": [
  28946. "id",
  28947. "sessionID",
  28948. "questions"
  28949. ],
  28950. "additionalProperties": false
  28951. },
  28952. "Question.Reply": {
  28953. "type": "object",
  28954. "properties": {
  28955. "answers": {
  28956. "type": "array",
  28957. "items": {
  28958. "$ref": "#/components/schemas/Question.Answer"
  28959. },
  28960. "description": "User answers in order of questions (each answer is an array of selected labels)"
  28961. }
  28962. },
  28963. "required": [
  28964. "answers"
  28965. ],
  28966. "additionalProperties": false
  28967. },
  28968. "QuestionNotFoundError": {
  28969. "type": "object",
  28970. "properties": {
  28971. "_tag": {
  28972. "type": "string",
  28973. "enum": [
  28974. "QuestionNotFoundError"
  28975. ]
  28976. },
  28977. "requestID": {
  28978. "type": "string"
  28979. },
  28980. "message": {
  28981. "type": "string"
  28982. }
  28983. },
  28984. "required": [
  28985. "_tag",
  28986. "requestID",
  28987. "message"
  28988. ],
  28989. "additionalProperties": false
  28990. },
  28991. "Reference.LocalSource": {
  28992. "type": "object",
  28993. "properties": {
  28994. "type": {
  28995. "type": "string",
  28996. "enum": [
  28997. "local"
  28998. ]
  28999. },
  29000. "path": {
  29001. "type": "string"
  29002. },
  29003. "description": {
  29004. "type": "string"
  29005. },
  29006. "hidden": {
  29007. "type": "boolean"
  29008. }
  29009. },
  29010. "required": [
  29011. "type",
  29012. "path"
  29013. ],
  29014. "additionalProperties": false
  29015. },
  29016. "Reference.GitSource": {
  29017. "type": "object",
  29018. "properties": {
  29019. "type": {
  29020. "type": "string",
  29021. "enum": [
  29022. "git"
  29023. ]
  29024. },
  29025. "repository": {
  29026. "type": "string"
  29027. },
  29028. "branch": {
  29029. "type": "string"
  29030. },
  29031. "description": {
  29032. "type": "string"
  29033. },
  29034. "hidden": {
  29035. "type": "boolean"
  29036. }
  29037. },
  29038. "required": [
  29039. "type",
  29040. "repository"
  29041. ],
  29042. "additionalProperties": false
  29043. },
  29044. "Reference.Source": {
  29045. "anyOf": [
  29046. {
  29047. "$ref": "#/components/schemas/Reference.LocalSource"
  29048. },
  29049. {
  29050. "$ref": "#/components/schemas/Reference.GitSource"
  29051. }
  29052. ]
  29053. },
  29054. "Reference.Info": {
  29055. "type": "object",
  29056. "properties": {
  29057. "name": {
  29058. "type": "string"
  29059. },
  29060. "path": {
  29061. "type": "string"
  29062. },
  29063. "description": {
  29064. "type": "string"
  29065. },
  29066. "hidden": {
  29067. "type": "boolean"
  29068. },
  29069. "source": {
  29070. "$ref": "#/components/schemas/Reference.Source"
  29071. }
  29072. },
  29073. "required": [
  29074. "name",
  29075. "path",
  29076. "source"
  29077. ],
  29078. "additionalProperties": false
  29079. },
  29080. "ProjectCopy.Copy": {
  29081. "type": "object",
  29082. "properties": {
  29083. "directory": {
  29084. "type": "string"
  29085. }
  29086. },
  29087. "required": [
  29088. "directory"
  29089. ],
  29090. "additionalProperties": false
  29091. },
  29092. "ProjectCopyError": {
  29093. "type": "object",
  29094. "properties": {
  29095. "name": {
  29096. "type": "string",
  29097. "enum": [
  29098. "ProjectCopyError"
  29099. ]
  29100. },
  29101. "data": {
  29102. "type": "object",
  29103. "properties": {
  29104. "message": {
  29105. "type": "string"
  29106. },
  29107. "forceRequired": {
  29108. "anyOf": [
  29109. {
  29110. "type": "boolean"
  29111. },
  29112. {
  29113. "type": "null"
  29114. }
  29115. ]
  29116. }
  29117. },
  29118. "required": [
  29119. "message"
  29120. ],
  29121. "additionalProperties": false
  29122. }
  29123. },
  29124. "required": [
  29125. "name",
  29126. "data"
  29127. ],
  29128. "additionalProperties": false
  29129. },
  29130. "Vcs.FileStatus": {
  29131. "type": "object",
  29132. "properties": {
  29133. "file": {
  29134. "type": "string"
  29135. },
  29136. "additions": {
  29137. "type": "integer",
  29138. "allOf": [
  29139. {
  29140. "minimum": 0
  29141. }
  29142. ]
  29143. },
  29144. "deletions": {
  29145. "type": "integer",
  29146. "allOf": [
  29147. {
  29148. "minimum": 0
  29149. }
  29150. ]
  29151. },
  29152. "status": {
  29153. "type": "string",
  29154. "enum": [
  29155. "added",
  29156. "deleted",
  29157. "modified"
  29158. ]
  29159. }
  29160. },
  29161. "required": [
  29162. "file",
  29163. "additions",
  29164. "deletions",
  29165. "status"
  29166. ],
  29167. "additionalProperties": false
  29168. },
  29169. "Vcs.Mode": {
  29170. "type": "string",
  29171. "enum": [
  29172. "working",
  29173. "branch"
  29174. ]
  29175. },
  29176. "WebSearch.Provider": {
  29177. "type": "object",
  29178. "properties": {
  29179. "id": {
  29180. "type": "string"
  29181. },
  29182. "name": {
  29183. "type": "string"
  29184. }
  29185. },
  29186. "required": [
  29187. "id",
  29188. "name"
  29189. ],
  29190. "additionalProperties": false
  29191. },
  29192. "WebSearch.Result": {
  29193. "type": "object",
  29194. "properties": {
  29195. "url": {
  29196. "type": "string"
  29197. },
  29198. "title": {
  29199. "type": "string"
  29200. },
  29201. "content": {
  29202. "type": "string"
  29203. },
  29204. "time": {
  29205. "type": "object",
  29206. "properties": {
  29207. "published": {
  29208. "type": "number"
  29209. }
  29210. },
  29211. "additionalProperties": false
  29212. }
  29213. },
  29214. "required": [
  29215. "url",
  29216. "time"
  29217. ],
  29218. "additionalProperties": false
  29219. },
  29220. "WebSearch.Response": {
  29221. "type": "object",
  29222. "properties": {
  29223. "providerID": {
  29224. "type": "string"
  29225. },
  29226. "results": {
  29227. "type": "array",
  29228. "items": {
  29229. "$ref": "#/components/schemas/WebSearch.Result"
  29230. }
  29231. }
  29232. },
  29233. "required": [
  29234. "providerID",
  29235. "results"
  29236. ],
  29237. "additionalProperties": false
  29238. }
  29239. },
  29240. "securitySchemes": {}
  29241. },
  29242. "security": [],
  29243. "tags": [
  29244. {
  29245. "name": "health"
  29246. },
  29247. {
  29248. "name": "server"
  29249. },
  29250. {
  29251. "name": "location"
  29252. },
  29253. {
  29254. "name": "agent"
  29255. },
  29256. {
  29257. "name": "plugin",
  29258. "description": "Experimental plugin routes."
  29259. },
  29260. {
  29261. "name": "session",
  29262. "description": "Experimental session routes."
  29263. },
  29264. {
  29265. "name": "session",
  29266. "description": "Experimental message routes."
  29267. },
  29268. {
  29269. "name": "model",
  29270. "description": "Experimental model routes."
  29271. },
  29272. {
  29273. "name": "generate",
  29274. "description": "Experimental one-shot generation routes."
  29275. },
  29276. {
  29277. "name": "provider",
  29278. "description": "Experimental provider routes."
  29279. },
  29280. {
  29281. "name": "integration",
  29282. "description": "Integration discovery and authentication routes."
  29283. },
  29284. {
  29285. "name": "mcp",
  29286. "description": "MCP server and resource routes."
  29287. },
  29288. {
  29289. "name": "credential"
  29290. },
  29291. {
  29292. "name": "project",
  29293. "description": "Location-scoped project routes."
  29294. },
  29295. {
  29296. "name": "form",
  29297. "description": "Session form routes."
  29298. },
  29299. {
  29300. "name": "permission",
  29301. "description": "Experimental permission routes."
  29302. },
  29303. {
  29304. "name": "filesystem",
  29305. "description": "Experimental location-scoped filesystem routes."
  29306. },
  29307. {
  29308. "name": "command",
  29309. "description": "Experimental command routes."
  29310. },
  29311. {
  29312. "name": "skill",
  29313. "description": "Experimental skill routes."
  29314. },
  29315. {
  29316. "name": "event",
  29317. "description": "Experimental event stream routes."
  29318. },
  29319. {
  29320. "name": "pty",
  29321. "description": "Experimental location-scoped PTY routes."
  29322. },
  29323. {
  29324. "name": "shell",
  29325. "description": "Experimental location-scoped shell command routes."
  29326. },
  29327. {
  29328. "name": "question",
  29329. "description": "Experimental session question routes."
  29330. },
  29331. {
  29332. "name": "reference",
  29333. "description": "Location-scoped project references."
  29334. },
  29335. {
  29336. "name": "projectCopy",
  29337. "description": "Project copy management routes."
  29338. },
  29339. {
  29340. "name": "vcs",
  29341. "description": "Location-scoped version control routes."
  29342. },
  29343. {
  29344. "name": "debug"
  29345. },
  29346. {
  29347. "name": "websearch",
  29348. "description": "Location-scoped web search routes."
  29349. }
  29350. ]
  29351. }