openapi.json 661 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002
  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": ["health"],
  12. "operationId": "v2.health.get",
  13. "parameters": [],
  14. "security": [],
  15. "responses": {
  16. "200": {
  17. "description": "ServiceHealth",
  18. "content": {
  19. "application/json": {
  20. "schema": {
  21. "$ref": "#/components/schemas/ServiceHealth"
  22. }
  23. }
  24. }
  25. },
  26. "400": {
  27. "description": "InvalidRequestError",
  28. "content": {
  29. "application/json": {
  30. "schema": {
  31. "$ref": "#/components/schemas/InvalidRequestError"
  32. }
  33. }
  34. }
  35. },
  36. "401": {
  37. "description": "UnauthorizedError",
  38. "content": {
  39. "application/json": {
  40. "schema": {
  41. "$ref": "#/components/schemas/UnauthorizedError"
  42. }
  43. }
  44. }
  45. }
  46. },
  47. "description": "Report the owning server process and its application status.",
  48. "summary": "Check server health"
  49. }
  50. },
  51. "/api/service/stop": {
  52. "post": {
  53. "tags": ["health"],
  54. "operationId": "v2.health.stop",
  55. "parameters": [],
  56. "security": [],
  57. "responses": {
  58. "200": {
  59. "description": "ServiceStopResponse",
  60. "content": {
  61. "application/json": {
  62. "schema": {
  63. "$ref": "#/components/schemas/ServiceStopResponse"
  64. }
  65. }
  66. }
  67. },
  68. "400": {
  69. "description": "InvalidRequestError",
  70. "content": {
  71. "application/json": {
  72. "schema": {
  73. "$ref": "#/components/schemas/InvalidRequestError"
  74. }
  75. }
  76. }
  77. },
  78. "401": {
  79. "description": "UnauthorizedError",
  80. "content": {
  81. "application/json": {
  82. "schema": {
  83. "$ref": "#/components/schemas/UnauthorizedError"
  84. }
  85. }
  86. }
  87. }
  88. },
  89. "description": "Request graceful shutdown of one exact managed server instance.",
  90. "summary": "Stop the managed server",
  91. "requestBody": {
  92. "content": {
  93. "application/json": {
  94. "schema": {
  95. "$ref": "#/components/schemas/ServiceStopRequest"
  96. }
  97. }
  98. },
  99. "required": true
  100. }
  101. }
  102. },
  103. "/api/server": {
  104. "get": {
  105. "tags": ["server"],
  106. "operationId": "v2.server.get",
  107. "parameters": [],
  108. "security": [],
  109. "responses": {
  110. "200": {
  111. "description": "Success",
  112. "content": {
  113. "application/json": {
  114. "schema": {
  115. "type": "object",
  116. "properties": {
  117. "urls": {
  118. "type": "array",
  119. "items": {
  120. "type": "string"
  121. }
  122. }
  123. },
  124. "required": ["urls"],
  125. "additionalProperties": false
  126. }
  127. }
  128. }
  129. },
  130. "400": {
  131. "description": "InvalidRequestError",
  132. "content": {
  133. "application/json": {
  134. "schema": {
  135. "$ref": "#/components/schemas/InvalidRequestError"
  136. }
  137. }
  138. }
  139. },
  140. "401": {
  141. "description": "UnauthorizedError",
  142. "content": {
  143. "application/json": {
  144. "schema": {
  145. "$ref": "#/components/schemas/UnauthorizedError"
  146. }
  147. }
  148. }
  149. }
  150. },
  151. "description": "Return the URLs that can be used to connect to this server.",
  152. "summary": "Get server information"
  153. }
  154. },
  155. "/api/location": {
  156. "get": {
  157. "tags": ["location"],
  158. "operationId": "v2.location.get",
  159. "parameters": [
  160. {
  161. "name": "location",
  162. "in": "query",
  163. "schema": {
  164. "anyOf": [
  165. {
  166. "type": "object",
  167. "properties": {
  168. "directory": {
  169. "anyOf": [
  170. {
  171. "type": "string"
  172. },
  173. {
  174. "type": "null"
  175. }
  176. ]
  177. },
  178. "workspace": {
  179. "anyOf": [
  180. {
  181. "type": "string"
  182. },
  183. {
  184. "type": "null"
  185. }
  186. ]
  187. }
  188. },
  189. "additionalProperties": false
  190. },
  191. {
  192. "type": "null"
  193. }
  194. ]
  195. },
  196. "required": false,
  197. "style": "deepObject",
  198. "explode": true
  199. }
  200. ],
  201. "security": [],
  202. "responses": {
  203. "200": {
  204. "description": "Location.Info",
  205. "content": {
  206. "application/json": {
  207. "schema": {
  208. "$ref": "#/components/schemas/Location.Info"
  209. }
  210. }
  211. }
  212. },
  213. "400": {
  214. "description": "InvalidRequestError",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "$ref": "#/components/schemas/InvalidRequestError"
  219. }
  220. }
  221. }
  222. },
  223. "401": {
  224. "description": "UnauthorizedError",
  225. "content": {
  226. "application/json": {
  227. "schema": {
  228. "$ref": "#/components/schemas/UnauthorizedError"
  229. }
  230. }
  231. }
  232. }
  233. },
  234. "description": "Resolve the requested location or the server default location.",
  235. "summary": "Get location"
  236. }
  237. },
  238. "/api/agent": {
  239. "get": {
  240. "tags": ["agent"],
  241. "operationId": "v2.agent.list",
  242. "parameters": [
  243. {
  244. "name": "location",
  245. "in": "query",
  246. "schema": {
  247. "anyOf": [
  248. {
  249. "type": "object",
  250. "properties": {
  251. "directory": {
  252. "anyOf": [
  253. {
  254. "type": "string"
  255. },
  256. {
  257. "type": "null"
  258. }
  259. ]
  260. },
  261. "workspace": {
  262. "anyOf": [
  263. {
  264. "type": "string"
  265. },
  266. {
  267. "type": "null"
  268. }
  269. ]
  270. }
  271. },
  272. "additionalProperties": false
  273. },
  274. {
  275. "type": "null"
  276. }
  277. ]
  278. },
  279. "required": false,
  280. "style": "deepObject",
  281. "explode": true
  282. }
  283. ],
  284. "security": [],
  285. "responses": {
  286. "200": {
  287. "description": "Success",
  288. "content": {
  289. "application/json": {
  290. "schema": {
  291. "type": "object",
  292. "properties": {
  293. "location": {
  294. "$ref": "#/components/schemas/Location.Info"
  295. },
  296. "data": {
  297. "type": "array",
  298. "items": {
  299. "$ref": "#/components/schemas/Agent.Info"
  300. }
  301. }
  302. },
  303. "required": ["location", "data"],
  304. "additionalProperties": false
  305. }
  306. }
  307. }
  308. },
  309. "400": {
  310. "description": "InvalidRequestError",
  311. "content": {
  312. "application/json": {
  313. "schema": {
  314. "$ref": "#/components/schemas/InvalidRequestError"
  315. }
  316. }
  317. }
  318. },
  319. "401": {
  320. "description": "UnauthorizedError",
  321. "content": {
  322. "application/json": {
  323. "schema": {
  324. "$ref": "#/components/schemas/UnauthorizedError"
  325. }
  326. }
  327. }
  328. }
  329. },
  330. "description": "Retrieve currently registered agents.",
  331. "summary": "List agents"
  332. }
  333. },
  334. "/api/agent/{agentID}": {
  335. "get": {
  336. "tags": ["agent"],
  337. "operationId": "v2.agent.get",
  338. "parameters": [
  339. {
  340. "name": "agentID",
  341. "in": "path",
  342. "schema": {
  343. "type": "string"
  344. },
  345. "required": true
  346. },
  347. {
  348. "name": "location",
  349. "in": "query",
  350. "schema": {
  351. "anyOf": [
  352. {
  353. "type": "object",
  354. "properties": {
  355. "directory": {
  356. "anyOf": [
  357. {
  358. "type": "string"
  359. },
  360. {
  361. "type": "null"
  362. }
  363. ]
  364. },
  365. "workspace": {
  366. "anyOf": [
  367. {
  368. "type": "string"
  369. },
  370. {
  371. "type": "null"
  372. }
  373. ]
  374. }
  375. },
  376. "additionalProperties": false
  377. },
  378. {
  379. "type": "null"
  380. }
  381. ]
  382. },
  383. "required": false,
  384. "style": "deepObject",
  385. "explode": true
  386. }
  387. ],
  388. "security": [],
  389. "responses": {
  390. "200": {
  391. "description": "Success",
  392. "content": {
  393. "application/json": {
  394. "schema": {
  395. "type": "object",
  396. "properties": {
  397. "location": {
  398. "$ref": "#/components/schemas/Location.Info"
  399. },
  400. "data": {
  401. "$ref": "#/components/schemas/Agent.Info"
  402. }
  403. },
  404. "required": ["location", "data"],
  405. "additionalProperties": false
  406. }
  407. }
  408. }
  409. },
  410. "400": {
  411. "description": "InvalidRequestError",
  412. "content": {
  413. "application/json": {
  414. "schema": {
  415. "$ref": "#/components/schemas/InvalidRequestError"
  416. }
  417. }
  418. }
  419. },
  420. "401": {
  421. "description": "UnauthorizedError",
  422. "content": {
  423. "application/json": {
  424. "schema": {
  425. "$ref": "#/components/schemas/UnauthorizedError"
  426. }
  427. }
  428. }
  429. },
  430. "404": {
  431. "description": "AgentNotFoundError",
  432. "content": {
  433. "application/json": {
  434. "schema": {
  435. "$ref": "#/components/schemas/AgentNotFoundError"
  436. }
  437. }
  438. }
  439. }
  440. },
  441. "description": "Retrieve a single currently registered agent.",
  442. "summary": "Get agent"
  443. }
  444. },
  445. "/api/plugin": {
  446. "get": {
  447. "tags": ["plugin"],
  448. "operationId": "v2.plugin.list",
  449. "parameters": [
  450. {
  451. "name": "location",
  452. "in": "query",
  453. "schema": {
  454. "anyOf": [
  455. {
  456. "type": "object",
  457. "properties": {
  458. "directory": {
  459. "anyOf": [
  460. {
  461. "type": "string"
  462. },
  463. {
  464. "type": "null"
  465. }
  466. ]
  467. },
  468. "workspace": {
  469. "anyOf": [
  470. {
  471. "type": "string"
  472. },
  473. {
  474. "type": "null"
  475. }
  476. ]
  477. }
  478. },
  479. "additionalProperties": false
  480. },
  481. {
  482. "type": "null"
  483. }
  484. ]
  485. },
  486. "required": false,
  487. "style": "deepObject",
  488. "explode": true
  489. }
  490. ],
  491. "security": [],
  492. "responses": {
  493. "200": {
  494. "description": "Success",
  495. "content": {
  496. "application/json": {
  497. "schema": {
  498. "type": "object",
  499. "properties": {
  500. "location": {
  501. "$ref": "#/components/schemas/Location.Info"
  502. },
  503. "data": {
  504. "type": "array",
  505. "items": {
  506. "$ref": "#/components/schemas/Plugin.Info"
  507. }
  508. }
  509. },
  510. "required": ["location", "data"],
  511. "additionalProperties": false
  512. }
  513. }
  514. }
  515. },
  516. "400": {
  517. "description": "InvalidRequestError",
  518. "content": {
  519. "application/json": {
  520. "schema": {
  521. "$ref": "#/components/schemas/InvalidRequestError"
  522. }
  523. }
  524. }
  525. },
  526. "401": {
  527. "description": "UnauthorizedError",
  528. "content": {
  529. "application/json": {
  530. "schema": {
  531. "$ref": "#/components/schemas/UnauthorizedError"
  532. }
  533. }
  534. }
  535. }
  536. },
  537. "description": "Retrieve currently loaded plugins.",
  538. "summary": "List plugins"
  539. }
  540. },
  541. "/api/session": {
  542. "get": {
  543. "tags": ["session"],
  544. "operationId": "v2.session.list",
  545. "parameters": [
  546. {
  547. "name": "workspace",
  548. "in": "query",
  549. "schema": {
  550. "anyOf": [
  551. {
  552. "type": "string",
  553. "allOf": [
  554. {
  555. "pattern": "^wrk"
  556. }
  557. ]
  558. },
  559. {
  560. "type": "null"
  561. }
  562. ]
  563. },
  564. "required": false
  565. },
  566. {
  567. "name": "limit",
  568. "in": "query",
  569. "schema": {
  570. "anyOf": [
  571. {
  572. "type": "string"
  573. },
  574. {
  575. "type": "null"
  576. }
  577. ],
  578. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  579. },
  580. "required": false
  581. },
  582. {
  583. "name": "order",
  584. "in": "query",
  585. "schema": {
  586. "anyOf": [
  587. {
  588. "type": "string",
  589. "enum": ["asc", "desc"]
  590. },
  591. {
  592. "type": "null"
  593. }
  594. ],
  595. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  596. },
  597. "required": false
  598. },
  599. {
  600. "name": "search",
  601. "in": "query",
  602. "schema": {
  603. "anyOf": [
  604. {
  605. "type": "string"
  606. },
  607. {
  608. "type": "null"
  609. }
  610. ]
  611. },
  612. "required": false
  613. },
  614. {
  615. "name": "parentID",
  616. "in": "query",
  617. "schema": {
  618. "anyOf": [
  619. {
  620. "anyOf": [
  621. {
  622. "type": "string",
  623. "allOf": [
  624. {
  625. "pattern": "^ses"
  626. }
  627. ]
  628. },
  629. {
  630. "type": "string",
  631. "enum": ["null"]
  632. }
  633. ],
  634. "description": "Filter by parent session. Use null to return only root sessions."
  635. },
  636. {
  637. "type": "null"
  638. }
  639. ]
  640. },
  641. "required": false
  642. },
  643. {
  644. "name": "directory",
  645. "in": "query",
  646. "schema": {
  647. "anyOf": [
  648. {
  649. "type": "string"
  650. },
  651. {
  652. "type": "null"
  653. }
  654. ]
  655. },
  656. "required": false
  657. },
  658. {
  659. "name": "project",
  660. "in": "query",
  661. "schema": {
  662. "anyOf": [
  663. {
  664. "type": "string"
  665. },
  666. {
  667. "type": "null"
  668. }
  669. ]
  670. },
  671. "required": false
  672. },
  673. {
  674. "name": "subpath",
  675. "in": "query",
  676. "schema": {
  677. "anyOf": [
  678. {
  679. "type": "string"
  680. },
  681. {
  682. "type": "null"
  683. }
  684. ]
  685. },
  686. "required": false
  687. },
  688. {
  689. "name": "cursor",
  690. "in": "query",
  691. "schema": {
  692. "anyOf": [
  693. {
  694. "type": "string",
  695. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  696. },
  697. {
  698. "type": "null"
  699. }
  700. ]
  701. },
  702. "required": false
  703. }
  704. ],
  705. "security": [],
  706. "responses": {
  707. "200": {
  708. "description": "SessionsResponse",
  709. "content": {
  710. "application/json": {
  711. "schema": {
  712. "$ref": "#/components/schemas/SessionsResponse"
  713. }
  714. }
  715. }
  716. },
  717. "400": {
  718. "description": "InvalidCursorError | InvalidRequestError",
  719. "content": {
  720. "application/json": {
  721. "schema": {
  722. "anyOf": [
  723. {
  724. "$ref": "#/components/schemas/InvalidCursorError"
  725. },
  726. {
  727. "$ref": "#/components/schemas/InvalidRequestError1"
  728. },
  729. {
  730. "$ref": "#/components/schemas/InvalidRequestError"
  731. }
  732. ]
  733. }
  734. }
  735. }
  736. },
  737. "401": {
  738. "description": "UnauthorizedError",
  739. "content": {
  740. "application/json": {
  741. "schema": {
  742. "$ref": "#/components/schemas/UnauthorizedError"
  743. }
  744. }
  745. }
  746. }
  747. },
  748. "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.",
  749. "summary": "List sessions"
  750. },
  751. "post": {
  752. "tags": ["session"],
  753. "operationId": "v2.session.create",
  754. "parameters": [],
  755. "security": [],
  756. "responses": {
  757. "200": {
  758. "description": "Success",
  759. "content": {
  760. "application/json": {
  761. "schema": {
  762. "type": "object",
  763. "properties": {
  764. "data": {
  765. "$ref": "#/components/schemas/Session.Info"
  766. }
  767. },
  768. "required": ["data"],
  769. "additionalProperties": false
  770. }
  771. }
  772. }
  773. },
  774. "400": {
  775. "description": "InvalidRequestError",
  776. "content": {
  777. "application/json": {
  778. "schema": {
  779. "$ref": "#/components/schemas/InvalidRequestError"
  780. }
  781. }
  782. }
  783. },
  784. "401": {
  785. "description": "UnauthorizedError",
  786. "content": {
  787. "application/json": {
  788. "schema": {
  789. "$ref": "#/components/schemas/UnauthorizedError"
  790. }
  791. }
  792. }
  793. }
  794. },
  795. "description": "Create a session at the requested location.",
  796. "summary": "Create session",
  797. "requestBody": {
  798. "content": {
  799. "application/json": {
  800. "schema": {
  801. "type": "object",
  802. "properties": {
  803. "id": {
  804. "anyOf": [
  805. {
  806. "type": "string",
  807. "allOf": [
  808. {
  809. "pattern": "^ses"
  810. }
  811. ]
  812. },
  813. {
  814. "type": "null"
  815. }
  816. ]
  817. },
  818. "title": {
  819. "anyOf": [
  820. {
  821. "type": "string"
  822. },
  823. {
  824. "type": "null"
  825. }
  826. ]
  827. },
  828. "agent": {
  829. "anyOf": [
  830. {
  831. "type": "string"
  832. },
  833. {
  834. "type": "null"
  835. }
  836. ]
  837. },
  838. "model": {
  839. "anyOf": [
  840. {
  841. "$ref": "#/components/schemas/Model.Ref"
  842. },
  843. {
  844. "type": "null"
  845. }
  846. ]
  847. },
  848. "location": {
  849. "anyOf": [
  850. {
  851. "$ref": "#/components/schemas/Location.Ref"
  852. },
  853. {
  854. "type": "null"
  855. }
  856. ]
  857. }
  858. },
  859. "additionalProperties": false
  860. }
  861. }
  862. },
  863. "required": true
  864. }
  865. }
  866. },
  867. "/api/session/import": {
  868. "post": {
  869. "tags": ["session"],
  870. "operationId": "v2.session.import",
  871. "parameters": [],
  872. "security": [],
  873. "responses": {
  874. "200": {
  875. "description": "Success",
  876. "content": {
  877. "application/json": {
  878. "schema": {
  879. "type": "object",
  880. "properties": {
  881. "data": {
  882. "$ref": "#/components/schemas/Session.Info"
  883. }
  884. },
  885. "required": ["data"],
  886. "additionalProperties": false
  887. }
  888. }
  889. }
  890. },
  891. "400": {
  892. "description": "InvalidRequestError",
  893. "content": {
  894. "application/json": {
  895. "schema": {
  896. "$ref": "#/components/schemas/InvalidRequestError"
  897. }
  898. }
  899. }
  900. },
  901. "401": {
  902. "description": "UnauthorizedError",
  903. "content": {
  904. "application/json": {
  905. "schema": {
  906. "$ref": "#/components/schemas/UnauthorizedError"
  907. }
  908. }
  909. }
  910. },
  911. "409": {
  912. "description": "ConflictError",
  913. "content": {
  914. "application/json": {
  915. "schema": {
  916. "$ref": "#/components/schemas/ConflictError"
  917. }
  918. }
  919. }
  920. }
  921. },
  922. "description": "Import a projected session transcript at the requested location.",
  923. "summary": "Import session",
  924. "requestBody": {
  925. "content": {
  926. "application/json": {
  927. "schema": {
  928. "type": "object",
  929. "properties": {
  930. "info": {
  931. "$ref": "#/components/schemas/Session.Info"
  932. },
  933. "messages": {
  934. "type": "array",
  935. "items": {
  936. "$ref": "#/components/schemas/Session.Message.Info"
  937. }
  938. },
  939. "location": {
  940. "anyOf": [
  941. {
  942. "$ref": "#/components/schemas/Location.Ref"
  943. },
  944. {
  945. "type": "null"
  946. }
  947. ]
  948. }
  949. },
  950. "required": ["info", "messages"],
  951. "additionalProperties": false
  952. }
  953. }
  954. },
  955. "required": true
  956. }
  957. }
  958. },
  959. "/api/session/{sessionID}/export": {
  960. "get": {
  961. "tags": ["session"],
  962. "operationId": "v2.session.export",
  963. "parameters": [
  964. {
  965. "name": "sessionID",
  966. "in": "path",
  967. "schema": {
  968. "type": "string",
  969. "allOf": [
  970. {
  971. "pattern": "^ses"
  972. }
  973. ]
  974. },
  975. "required": true
  976. },
  977. {
  978. "name": "sanitize",
  979. "in": "query",
  980. "schema": {
  981. "anyOf": [
  982. {
  983. "type": "string",
  984. "enum": ["true", "false"]
  985. },
  986. {
  987. "type": "null"
  988. }
  989. ]
  990. },
  991. "required": false
  992. }
  993. ],
  994. "security": [],
  995. "responses": {
  996. "200": {
  997. "description": "Success",
  998. "content": {
  999. "application/json": {
  1000. "schema": {
  1001. "type": "object",
  1002. "properties": {
  1003. "data": {
  1004. "$ref": "#/components/schemas/SessionTransfer.Data"
  1005. }
  1006. },
  1007. "required": ["data"],
  1008. "additionalProperties": false
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "400": {
  1014. "description": "InvalidRequestError",
  1015. "content": {
  1016. "application/json": {
  1017. "schema": {
  1018. "$ref": "#/components/schemas/InvalidRequestError"
  1019. }
  1020. }
  1021. }
  1022. },
  1023. "401": {
  1024. "description": "UnauthorizedError",
  1025. "content": {
  1026. "application/json": {
  1027. "schema": {
  1028. "$ref": "#/components/schemas/UnauthorizedError"
  1029. }
  1030. }
  1031. }
  1032. },
  1033. "404": {
  1034. "description": "SessionNotFoundError",
  1035. "content": {
  1036. "application/json": {
  1037. "schema": {
  1038. "$ref": "#/components/schemas/SessionNotFoundError"
  1039. }
  1040. }
  1041. }
  1042. },
  1043. "500": {
  1044. "description": "UnknownError",
  1045. "content": {
  1046. "application/json": {
  1047. "schema": {
  1048. "$ref": "#/components/schemas/UnknownError"
  1049. }
  1050. }
  1051. }
  1052. }
  1053. },
  1054. "description": "Export a complete projected session transcript.",
  1055. "summary": "Export session"
  1056. }
  1057. },
  1058. "/api/session/active": {
  1059. "get": {
  1060. "tags": ["session"],
  1061. "operationId": "v2.session.active",
  1062. "parameters": [],
  1063. "security": [],
  1064. "responses": {
  1065. "200": {
  1066. "description": "Success",
  1067. "content": {
  1068. "application/json": {
  1069. "schema": {
  1070. "type": "object",
  1071. "properties": {
  1072. "data": {
  1073. "type": "object",
  1074. "patternProperties": {
  1075. "^ses": {
  1076. "$ref": "#/components/schemas/SessionActive"
  1077. }
  1078. }
  1079. }
  1080. },
  1081. "required": ["data"],
  1082. "additionalProperties": false
  1083. }
  1084. }
  1085. }
  1086. },
  1087. "400": {
  1088. "description": "InvalidRequestError",
  1089. "content": {
  1090. "application/json": {
  1091. "schema": {
  1092. "$ref": "#/components/schemas/InvalidRequestError"
  1093. }
  1094. }
  1095. }
  1096. },
  1097. "401": {
  1098. "description": "UnauthorizedError",
  1099. "content": {
  1100. "application/json": {
  1101. "schema": {
  1102. "$ref": "#/components/schemas/UnauthorizedError"
  1103. }
  1104. }
  1105. }
  1106. }
  1107. },
  1108. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  1109. "summary": "List active sessions"
  1110. }
  1111. },
  1112. "/api/session/{sessionID}": {
  1113. "get": {
  1114. "tags": ["session"],
  1115. "operationId": "v2.session.get",
  1116. "parameters": [
  1117. {
  1118. "name": "sessionID",
  1119. "in": "path",
  1120. "schema": {
  1121. "type": "string",
  1122. "allOf": [
  1123. {
  1124. "pattern": "^ses"
  1125. }
  1126. ]
  1127. },
  1128. "required": true
  1129. }
  1130. ],
  1131. "security": [],
  1132. "responses": {
  1133. "200": {
  1134. "description": "Success",
  1135. "content": {
  1136. "application/json": {
  1137. "schema": {
  1138. "type": "object",
  1139. "properties": {
  1140. "data": {
  1141. "$ref": "#/components/schemas/Session.Info"
  1142. }
  1143. },
  1144. "required": ["data"],
  1145. "additionalProperties": false
  1146. }
  1147. }
  1148. }
  1149. },
  1150. "400": {
  1151. "description": "InvalidRequestError",
  1152. "content": {
  1153. "application/json": {
  1154. "schema": {
  1155. "$ref": "#/components/schemas/InvalidRequestError"
  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",
  1172. "content": {
  1173. "application/json": {
  1174. "schema": {
  1175. "$ref": "#/components/schemas/SessionNotFoundError"
  1176. }
  1177. }
  1178. }
  1179. }
  1180. },
  1181. "description": "Retrieve a session by ID.",
  1182. "summary": "Get session"
  1183. },
  1184. "delete": {
  1185. "tags": ["session"],
  1186. "operationId": "v2.session.remove",
  1187. "parameters": [
  1188. {
  1189. "name": "sessionID",
  1190. "in": "path",
  1191. "schema": {
  1192. "type": "string",
  1193. "allOf": [
  1194. {
  1195. "pattern": "^ses"
  1196. }
  1197. ]
  1198. },
  1199. "required": true
  1200. }
  1201. ],
  1202. "security": [],
  1203. "responses": {
  1204. "204": {
  1205. "description": "<No Content>"
  1206. },
  1207. "400": {
  1208. "description": "InvalidRequestError",
  1209. "content": {
  1210. "application/json": {
  1211. "schema": {
  1212. "$ref": "#/components/schemas/InvalidRequestError"
  1213. }
  1214. }
  1215. }
  1216. },
  1217. "401": {
  1218. "description": "UnauthorizedError",
  1219. "content": {
  1220. "application/json": {
  1221. "schema": {
  1222. "$ref": "#/components/schemas/UnauthorizedError"
  1223. }
  1224. }
  1225. }
  1226. },
  1227. "404": {
  1228. "description": "SessionNotFoundError",
  1229. "content": {
  1230. "application/json": {
  1231. "schema": {
  1232. "anyOf": [
  1233. {
  1234. "$ref": "#/components/schemas/SessionNotFoundError"
  1235. },
  1236. {
  1237. "$ref": "#/components/schemas/SessionNotFoundError"
  1238. }
  1239. ]
  1240. }
  1241. }
  1242. }
  1243. }
  1244. },
  1245. "description": "Delete a session and its child sessions.",
  1246. "summary": "Delete session"
  1247. }
  1248. },
  1249. "/api/session/{sessionID}/fork": {
  1250. "post": {
  1251. "tags": ["session"],
  1252. "operationId": "v2.session.fork",
  1253. "parameters": [
  1254. {
  1255. "name": "sessionID",
  1256. "in": "path",
  1257. "schema": {
  1258. "type": "string",
  1259. "allOf": [
  1260. {
  1261. "pattern": "^ses"
  1262. }
  1263. ]
  1264. },
  1265. "required": true
  1266. }
  1267. ],
  1268. "security": [],
  1269. "responses": {
  1270. "200": {
  1271. "description": "Success",
  1272. "content": {
  1273. "application/json": {
  1274. "schema": {
  1275. "type": "object",
  1276. "properties": {
  1277. "data": {
  1278. "$ref": "#/components/schemas/Session.Info"
  1279. }
  1280. },
  1281. "required": ["data"],
  1282. "additionalProperties": false
  1283. }
  1284. }
  1285. }
  1286. },
  1287. "400": {
  1288. "description": "InvalidRequestError",
  1289. "content": {
  1290. "application/json": {
  1291. "schema": {
  1292. "anyOf": [
  1293. {
  1294. "$ref": "#/components/schemas/InvalidRequestError1"
  1295. },
  1296. {
  1297. "$ref": "#/components/schemas/InvalidRequestError"
  1298. }
  1299. ]
  1300. }
  1301. }
  1302. }
  1303. },
  1304. "401": {
  1305. "description": "UnauthorizedError",
  1306. "content": {
  1307. "application/json": {
  1308. "schema": {
  1309. "$ref": "#/components/schemas/UnauthorizedError"
  1310. }
  1311. }
  1312. }
  1313. },
  1314. "404": {
  1315. "description": "SessionNotFoundError | MessageNotFoundError",
  1316. "content": {
  1317. "application/json": {
  1318. "schema": {
  1319. "anyOf": [
  1320. {
  1321. "$ref": "#/components/schemas/MessageNotFoundError"
  1322. },
  1323. {
  1324. "$ref": "#/components/schemas/SessionNotFoundError"
  1325. },
  1326. {
  1327. "$ref": "#/components/schemas/SessionNotFoundError"
  1328. }
  1329. ]
  1330. }
  1331. }
  1332. }
  1333. }
  1334. },
  1335. "description": "Create a child session by copying projected history through or before a message boundary.",
  1336. "summary": "Fork session",
  1337. "requestBody": {
  1338. "content": {
  1339. "application/json": {
  1340. "schema": {
  1341. "type": "object",
  1342. "properties": {
  1343. "boundary": {
  1344. "$ref": "#/components/schemas/Session.ForkRequestBoundary"
  1345. }
  1346. },
  1347. "required": ["boundary"],
  1348. "additionalProperties": false
  1349. }
  1350. }
  1351. },
  1352. "required": true
  1353. }
  1354. }
  1355. },
  1356. "/api/session/{sessionID}/agent": {
  1357. "post": {
  1358. "tags": ["session"],
  1359. "operationId": "v2.session.switchAgent",
  1360. "parameters": [
  1361. {
  1362. "name": "sessionID",
  1363. "in": "path",
  1364. "schema": {
  1365. "type": "string",
  1366. "allOf": [
  1367. {
  1368. "pattern": "^ses"
  1369. }
  1370. ]
  1371. },
  1372. "required": true
  1373. }
  1374. ],
  1375. "security": [],
  1376. "responses": {
  1377. "204": {
  1378. "description": "<No Content>"
  1379. },
  1380. "400": {
  1381. "description": "InvalidRequestError",
  1382. "content": {
  1383. "application/json": {
  1384. "schema": {
  1385. "$ref": "#/components/schemas/InvalidRequestError"
  1386. }
  1387. }
  1388. }
  1389. },
  1390. "401": {
  1391. "description": "UnauthorizedError",
  1392. "content": {
  1393. "application/json": {
  1394. "schema": {
  1395. "$ref": "#/components/schemas/UnauthorizedError"
  1396. }
  1397. }
  1398. }
  1399. },
  1400. "404": {
  1401. "description": "SessionNotFoundError",
  1402. "content": {
  1403. "application/json": {
  1404. "schema": {
  1405. "anyOf": [
  1406. {
  1407. "$ref": "#/components/schemas/SessionNotFoundError"
  1408. },
  1409. {
  1410. "$ref": "#/components/schemas/SessionNotFoundError"
  1411. }
  1412. ]
  1413. }
  1414. }
  1415. }
  1416. }
  1417. },
  1418. "description": "Switch the agent used by subsequent provider turns.",
  1419. "summary": "Switch session agent",
  1420. "requestBody": {
  1421. "content": {
  1422. "application/json": {
  1423. "schema": {
  1424. "type": "object",
  1425. "properties": {
  1426. "agent": {
  1427. "type": "string"
  1428. }
  1429. },
  1430. "required": ["agent"],
  1431. "additionalProperties": false
  1432. }
  1433. }
  1434. },
  1435. "required": true
  1436. }
  1437. }
  1438. },
  1439. "/api/session/{sessionID}/model": {
  1440. "post": {
  1441. "tags": ["session"],
  1442. "operationId": "v2.session.switchModel",
  1443. "parameters": [
  1444. {
  1445. "name": "sessionID",
  1446. "in": "path",
  1447. "schema": {
  1448. "type": "string",
  1449. "allOf": [
  1450. {
  1451. "pattern": "^ses"
  1452. }
  1453. ]
  1454. },
  1455. "required": true
  1456. }
  1457. ],
  1458. "security": [],
  1459. "responses": {
  1460. "204": {
  1461. "description": "<No Content>"
  1462. },
  1463. "400": {
  1464. "description": "InvalidRequestError",
  1465. "content": {
  1466. "application/json": {
  1467. "schema": {
  1468. "$ref": "#/components/schemas/InvalidRequestError"
  1469. }
  1470. }
  1471. }
  1472. },
  1473. "401": {
  1474. "description": "UnauthorizedError",
  1475. "content": {
  1476. "application/json": {
  1477. "schema": {
  1478. "$ref": "#/components/schemas/UnauthorizedError"
  1479. }
  1480. }
  1481. }
  1482. },
  1483. "404": {
  1484. "description": "SessionNotFoundError",
  1485. "content": {
  1486. "application/json": {
  1487. "schema": {
  1488. "anyOf": [
  1489. {
  1490. "$ref": "#/components/schemas/SessionNotFoundError"
  1491. },
  1492. {
  1493. "$ref": "#/components/schemas/SessionNotFoundError"
  1494. }
  1495. ]
  1496. }
  1497. }
  1498. }
  1499. }
  1500. },
  1501. "description": "Switch the model used by subsequent provider turns.",
  1502. "summary": "Switch session model",
  1503. "requestBody": {
  1504. "content": {
  1505. "application/json": {
  1506. "schema": {
  1507. "type": "object",
  1508. "properties": {
  1509. "model": {
  1510. "$ref": "#/components/schemas/Model.Ref"
  1511. }
  1512. },
  1513. "required": ["model"],
  1514. "additionalProperties": false
  1515. }
  1516. }
  1517. },
  1518. "required": true
  1519. }
  1520. }
  1521. },
  1522. "/api/session/{sessionID}/rename": {
  1523. "post": {
  1524. "tags": ["session"],
  1525. "operationId": "v2.session.rename",
  1526. "parameters": [
  1527. {
  1528. "name": "sessionID",
  1529. "in": "path",
  1530. "schema": {
  1531. "type": "string",
  1532. "allOf": [
  1533. {
  1534. "pattern": "^ses"
  1535. }
  1536. ]
  1537. },
  1538. "required": true
  1539. }
  1540. ],
  1541. "security": [],
  1542. "responses": {
  1543. "204": {
  1544. "description": "<No Content>"
  1545. },
  1546. "400": {
  1547. "description": "InvalidRequestError",
  1548. "content": {
  1549. "application/json": {
  1550. "schema": {
  1551. "$ref": "#/components/schemas/InvalidRequestError"
  1552. }
  1553. }
  1554. }
  1555. },
  1556. "401": {
  1557. "description": "UnauthorizedError",
  1558. "content": {
  1559. "application/json": {
  1560. "schema": {
  1561. "$ref": "#/components/schemas/UnauthorizedError"
  1562. }
  1563. }
  1564. }
  1565. },
  1566. "404": {
  1567. "description": "SessionNotFoundError",
  1568. "content": {
  1569. "application/json": {
  1570. "schema": {
  1571. "anyOf": [
  1572. {
  1573. "$ref": "#/components/schemas/SessionNotFoundError"
  1574. },
  1575. {
  1576. "$ref": "#/components/schemas/SessionNotFoundError"
  1577. }
  1578. ]
  1579. }
  1580. }
  1581. }
  1582. }
  1583. },
  1584. "description": "Update the session title.",
  1585. "summary": "Rename session",
  1586. "requestBody": {
  1587. "content": {
  1588. "application/json": {
  1589. "schema": {
  1590. "type": "object",
  1591. "properties": {
  1592. "title": {
  1593. "type": "string"
  1594. }
  1595. },
  1596. "required": ["title"],
  1597. "additionalProperties": false
  1598. }
  1599. }
  1600. },
  1601. "required": true
  1602. }
  1603. }
  1604. },
  1605. "/api/session/{sessionID}/move": {
  1606. "post": {
  1607. "tags": ["session"],
  1608. "operationId": "v2.session.move",
  1609. "parameters": [
  1610. {
  1611. "name": "sessionID",
  1612. "in": "path",
  1613. "schema": {
  1614. "type": "string",
  1615. "allOf": [
  1616. {
  1617. "pattern": "^ses"
  1618. }
  1619. ]
  1620. },
  1621. "required": true
  1622. }
  1623. ],
  1624. "security": [],
  1625. "responses": {
  1626. "204": {
  1627. "description": "<No Content>"
  1628. },
  1629. "400": {
  1630. "description": "InvalidRequestError",
  1631. "content": {
  1632. "application/json": {
  1633. "schema": {
  1634. "anyOf": [
  1635. {
  1636. "$ref": "#/components/schemas/InvalidRequestError1"
  1637. },
  1638. {
  1639. "$ref": "#/components/schemas/InvalidRequestError"
  1640. }
  1641. ]
  1642. }
  1643. }
  1644. }
  1645. },
  1646. "401": {
  1647. "description": "UnauthorizedError",
  1648. "content": {
  1649. "application/json": {
  1650. "schema": {
  1651. "$ref": "#/components/schemas/UnauthorizedError"
  1652. }
  1653. }
  1654. }
  1655. },
  1656. "404": {
  1657. "description": "SessionNotFoundError",
  1658. "content": {
  1659. "application/json": {
  1660. "schema": {
  1661. "$ref": "#/components/schemas/SessionNotFoundError"
  1662. }
  1663. }
  1664. }
  1665. }
  1666. },
  1667. "description": "Move a session to another project directory, optionally transferring local changes.",
  1668. "summary": "Move session",
  1669. "requestBody": {
  1670. "content": {
  1671. "application/json": {
  1672. "schema": {
  1673. "$ref": "#/components/schemas/Location.Ref"
  1674. }
  1675. }
  1676. },
  1677. "required": true
  1678. }
  1679. }
  1680. },
  1681. "/api/session/{sessionID}/prompt": {
  1682. "post": {
  1683. "tags": ["session"],
  1684. "operationId": "v2.session.prompt",
  1685. "parameters": [
  1686. {
  1687. "name": "sessionID",
  1688. "in": "path",
  1689. "schema": {
  1690. "type": "string",
  1691. "allOf": [
  1692. {
  1693. "pattern": "^ses"
  1694. }
  1695. ]
  1696. },
  1697. "required": true
  1698. }
  1699. ],
  1700. "security": [],
  1701. "responses": {
  1702. "200": {
  1703. "description": "Success",
  1704. "content": {
  1705. "application/json": {
  1706. "schema": {
  1707. "type": "object",
  1708. "properties": {
  1709. "data": {
  1710. "$ref": "#/components/schemas/SessionPending.User"
  1711. }
  1712. },
  1713. "required": ["data"],
  1714. "additionalProperties": false
  1715. }
  1716. }
  1717. }
  1718. },
  1719. "400": {
  1720. "description": "InvalidRequestError",
  1721. "content": {
  1722. "application/json": {
  1723. "schema": {
  1724. "anyOf": [
  1725. {
  1726. "$ref": "#/components/schemas/InvalidRequestError1"
  1727. },
  1728. {
  1729. "$ref": "#/components/schemas/InvalidRequestError"
  1730. }
  1731. ]
  1732. }
  1733. }
  1734. }
  1735. },
  1736. "401": {
  1737. "description": "UnauthorizedError",
  1738. "content": {
  1739. "application/json": {
  1740. "schema": {
  1741. "$ref": "#/components/schemas/UnauthorizedError"
  1742. }
  1743. }
  1744. }
  1745. },
  1746. "404": {
  1747. "description": "SessionNotFoundError",
  1748. "content": {
  1749. "application/json": {
  1750. "schema": {
  1751. "anyOf": [
  1752. {
  1753. "$ref": "#/components/schemas/SessionNotFoundError"
  1754. },
  1755. {
  1756. "$ref": "#/components/schemas/SessionNotFoundError"
  1757. }
  1758. ]
  1759. }
  1760. }
  1761. }
  1762. },
  1763. "409": {
  1764. "description": "ConflictError",
  1765. "content": {
  1766. "application/json": {
  1767. "schema": {
  1768. "$ref": "#/components/schemas/ConflictError"
  1769. }
  1770. }
  1771. }
  1772. }
  1773. },
  1774. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1775. "summary": "Send message",
  1776. "requestBody": {
  1777. "content": {
  1778. "application/json": {
  1779. "schema": {
  1780. "type": "object",
  1781. "properties": {
  1782. "id": {
  1783. "anyOf": [
  1784. {
  1785. "type": "string",
  1786. "allOf": [
  1787. {
  1788. "pattern": "^msg_"
  1789. }
  1790. ]
  1791. },
  1792. {
  1793. "type": "null"
  1794. }
  1795. ]
  1796. },
  1797. "text": {
  1798. "type": "string"
  1799. },
  1800. "files": {
  1801. "type": "array",
  1802. "items": {
  1803. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1804. }
  1805. },
  1806. "agents": {
  1807. "type": "array",
  1808. "items": {
  1809. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1810. }
  1811. },
  1812. "skills": {
  1813. "type": "array",
  1814. "items": {
  1815. "$ref": "#/components/schemas/PromptInput.SkillAttachment"
  1816. }
  1817. },
  1818. "metadata": {
  1819. "type": "object"
  1820. },
  1821. "delivery": {
  1822. "anyOf": [
  1823. {
  1824. "type": "string",
  1825. "enum": ["steer", "queue"]
  1826. },
  1827. {
  1828. "type": "null"
  1829. }
  1830. ]
  1831. },
  1832. "resume": {
  1833. "anyOf": [
  1834. {
  1835. "type": "boolean"
  1836. },
  1837. {
  1838. "type": "null"
  1839. }
  1840. ]
  1841. }
  1842. },
  1843. "required": ["text"],
  1844. "additionalProperties": false
  1845. }
  1846. }
  1847. },
  1848. "required": true
  1849. }
  1850. }
  1851. },
  1852. "/api/session/{sessionID}/command": {
  1853. "post": {
  1854. "tags": ["session"],
  1855. "operationId": "v2.session.command",
  1856. "parameters": [
  1857. {
  1858. "name": "sessionID",
  1859. "in": "path",
  1860. "schema": {
  1861. "type": "string",
  1862. "allOf": [
  1863. {
  1864. "pattern": "^ses"
  1865. }
  1866. ]
  1867. },
  1868. "required": true
  1869. }
  1870. ],
  1871. "security": [],
  1872. "responses": {
  1873. "200": {
  1874. "description": "Success",
  1875. "content": {
  1876. "application/json": {
  1877. "schema": {
  1878. "type": "object",
  1879. "properties": {
  1880. "data": {
  1881. "$ref": "#/components/schemas/SessionPending.User"
  1882. }
  1883. },
  1884. "required": ["data"],
  1885. "additionalProperties": false
  1886. }
  1887. }
  1888. }
  1889. },
  1890. "400": {
  1891. "description": "InvalidRequestError",
  1892. "content": {
  1893. "application/json": {
  1894. "schema": {
  1895. "anyOf": [
  1896. {
  1897. "$ref": "#/components/schemas/InvalidRequestError1"
  1898. },
  1899. {
  1900. "$ref": "#/components/schemas/InvalidRequestError"
  1901. }
  1902. ]
  1903. }
  1904. }
  1905. }
  1906. },
  1907. "401": {
  1908. "description": "UnauthorizedError",
  1909. "content": {
  1910. "application/json": {
  1911. "schema": {
  1912. "$ref": "#/components/schemas/UnauthorizedError"
  1913. }
  1914. }
  1915. }
  1916. },
  1917. "404": {
  1918. "description": "SessionNotFoundError | CommandNotFoundError",
  1919. "content": {
  1920. "application/json": {
  1921. "schema": {
  1922. "anyOf": [
  1923. {
  1924. "$ref": "#/components/schemas/CommandNotFoundError"
  1925. },
  1926. {
  1927. "$ref": "#/components/schemas/SessionNotFoundError"
  1928. },
  1929. {
  1930. "$ref": "#/components/schemas/SessionNotFoundError"
  1931. }
  1932. ]
  1933. }
  1934. }
  1935. }
  1936. },
  1937. "409": {
  1938. "description": "ConflictError",
  1939. "content": {
  1940. "application/json": {
  1941. "schema": {
  1942. "$ref": "#/components/schemas/ConflictError"
  1943. }
  1944. }
  1945. }
  1946. },
  1947. "500": {
  1948. "description": "CommandEvaluationError",
  1949. "content": {
  1950. "application/json": {
  1951. "schema": {
  1952. "$ref": "#/components/schemas/CommandEvaluationError"
  1953. }
  1954. }
  1955. }
  1956. }
  1957. },
  1958. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1959. "summary": "Run command",
  1960. "requestBody": {
  1961. "content": {
  1962. "application/json": {
  1963. "schema": {
  1964. "type": "object",
  1965. "properties": {
  1966. "id": {
  1967. "anyOf": [
  1968. {
  1969. "type": "string",
  1970. "allOf": [
  1971. {
  1972. "pattern": "^msg_"
  1973. }
  1974. ]
  1975. },
  1976. {
  1977. "type": "null"
  1978. }
  1979. ]
  1980. },
  1981. "command": {
  1982. "type": "string"
  1983. },
  1984. "arguments": {
  1985. "anyOf": [
  1986. {
  1987. "type": "string"
  1988. },
  1989. {
  1990. "type": "null"
  1991. }
  1992. ]
  1993. },
  1994. "agent": {
  1995. "anyOf": [
  1996. {
  1997. "type": "string"
  1998. },
  1999. {
  2000. "type": "null"
  2001. }
  2002. ]
  2003. },
  2004. "model": {
  2005. "anyOf": [
  2006. {
  2007. "$ref": "#/components/schemas/Model.Ref"
  2008. },
  2009. {
  2010. "type": "null"
  2011. }
  2012. ]
  2013. },
  2014. "files": {
  2015. "type": "array",
  2016. "items": {
  2017. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  2018. }
  2019. },
  2020. "agents": {
  2021. "type": "array",
  2022. "items": {
  2023. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  2024. }
  2025. },
  2026. "skills": {
  2027. "type": "array",
  2028. "items": {
  2029. "$ref": "#/components/schemas/PromptInput.SkillAttachment"
  2030. }
  2031. },
  2032. "delivery": {
  2033. "anyOf": [
  2034. {
  2035. "type": "string",
  2036. "enum": ["steer", "queue"]
  2037. },
  2038. {
  2039. "type": "null"
  2040. }
  2041. ]
  2042. },
  2043. "resume": {
  2044. "anyOf": [
  2045. {
  2046. "type": "boolean"
  2047. },
  2048. {
  2049. "type": "null"
  2050. }
  2051. ]
  2052. }
  2053. },
  2054. "required": ["command"],
  2055. "additionalProperties": false
  2056. }
  2057. }
  2058. },
  2059. "required": true
  2060. }
  2061. }
  2062. },
  2063. "/api/session/{sessionID}/skill": {
  2064. "post": {
  2065. "tags": ["session"],
  2066. "operationId": "v2.session.skill",
  2067. "parameters": [
  2068. {
  2069. "name": "sessionID",
  2070. "in": "path",
  2071. "schema": {
  2072. "type": "string",
  2073. "allOf": [
  2074. {
  2075. "pattern": "^ses"
  2076. }
  2077. ]
  2078. },
  2079. "required": true
  2080. }
  2081. ],
  2082. "security": [],
  2083. "responses": {
  2084. "204": {
  2085. "description": "<No Content>"
  2086. },
  2087. "400": {
  2088. "description": "InvalidRequestError",
  2089. "content": {
  2090. "application/json": {
  2091. "schema": {
  2092. "$ref": "#/components/schemas/InvalidRequestError"
  2093. }
  2094. }
  2095. }
  2096. },
  2097. "401": {
  2098. "description": "UnauthorizedError",
  2099. "content": {
  2100. "application/json": {
  2101. "schema": {
  2102. "$ref": "#/components/schemas/UnauthorizedError"
  2103. }
  2104. }
  2105. }
  2106. },
  2107. "404": {
  2108. "description": "SessionNotFoundError | SkillNotFoundError",
  2109. "content": {
  2110. "application/json": {
  2111. "schema": {
  2112. "anyOf": [
  2113. {
  2114. "$ref": "#/components/schemas/SkillNotFoundError"
  2115. },
  2116. {
  2117. "$ref": "#/components/schemas/SessionNotFoundError"
  2118. },
  2119. {
  2120. "$ref": "#/components/schemas/SessionNotFoundError"
  2121. }
  2122. ]
  2123. }
  2124. }
  2125. }
  2126. }
  2127. },
  2128. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  2129. "summary": "Activate skill",
  2130. "requestBody": {
  2131. "content": {
  2132. "application/json": {
  2133. "schema": {
  2134. "type": "object",
  2135. "properties": {
  2136. "id": {
  2137. "anyOf": [
  2138. {
  2139. "type": "string",
  2140. "allOf": [
  2141. {
  2142. "pattern": "^msg_"
  2143. }
  2144. ]
  2145. },
  2146. {
  2147. "type": "null"
  2148. }
  2149. ]
  2150. },
  2151. "skill": {
  2152. "type": "string"
  2153. },
  2154. "resume": {
  2155. "anyOf": [
  2156. {
  2157. "type": "boolean"
  2158. },
  2159. {
  2160. "type": "null"
  2161. }
  2162. ]
  2163. }
  2164. },
  2165. "required": ["skill"],
  2166. "additionalProperties": false
  2167. }
  2168. }
  2169. },
  2170. "required": true
  2171. }
  2172. }
  2173. },
  2174. "/api/session/{sessionID}/synthetic": {
  2175. "post": {
  2176. "tags": ["session"],
  2177. "operationId": "v2.session.synthetic",
  2178. "parameters": [
  2179. {
  2180. "name": "sessionID",
  2181. "in": "path",
  2182. "schema": {
  2183. "type": "string",
  2184. "allOf": [
  2185. {
  2186. "pattern": "^ses"
  2187. }
  2188. ]
  2189. },
  2190. "required": true
  2191. }
  2192. ],
  2193. "security": [],
  2194. "responses": {
  2195. "200": {
  2196. "description": "Success",
  2197. "content": {
  2198. "application/json": {
  2199. "schema": {
  2200. "type": "object",
  2201. "properties": {
  2202. "data": {
  2203. "$ref": "#/components/schemas/SessionPending.Synthetic"
  2204. }
  2205. },
  2206. "required": ["data"],
  2207. "additionalProperties": false
  2208. }
  2209. }
  2210. }
  2211. },
  2212. "400": {
  2213. "description": "InvalidRequestError",
  2214. "content": {
  2215. "application/json": {
  2216. "schema": {
  2217. "$ref": "#/components/schemas/InvalidRequestError"
  2218. }
  2219. }
  2220. }
  2221. },
  2222. "401": {
  2223. "description": "UnauthorizedError",
  2224. "content": {
  2225. "application/json": {
  2226. "schema": {
  2227. "$ref": "#/components/schemas/UnauthorizedError"
  2228. }
  2229. }
  2230. }
  2231. },
  2232. "404": {
  2233. "description": "SessionNotFoundError",
  2234. "content": {
  2235. "application/json": {
  2236. "schema": {
  2237. "anyOf": [
  2238. {
  2239. "$ref": "#/components/schemas/SessionNotFoundError"
  2240. },
  2241. {
  2242. "$ref": "#/components/schemas/SessionNotFoundError"
  2243. }
  2244. ]
  2245. }
  2246. }
  2247. }
  2248. },
  2249. "409": {
  2250. "description": "ConflictError",
  2251. "content": {
  2252. "application/json": {
  2253. "schema": {
  2254. "$ref": "#/components/schemas/ConflictError"
  2255. }
  2256. }
  2257. }
  2258. }
  2259. },
  2260. "description": "Durably admit synthetic session input and schedule execution unless resume is false.",
  2261. "summary": "Add synthetic message",
  2262. "requestBody": {
  2263. "content": {
  2264. "application/json": {
  2265. "schema": {
  2266. "type": "object",
  2267. "properties": {
  2268. "id": {
  2269. "anyOf": [
  2270. {
  2271. "type": "string",
  2272. "allOf": [
  2273. {
  2274. "pattern": "^msg_"
  2275. }
  2276. ]
  2277. },
  2278. {
  2279. "type": "null"
  2280. }
  2281. ]
  2282. },
  2283. "text": {
  2284. "type": "string"
  2285. },
  2286. "description": {
  2287. "anyOf": [
  2288. {
  2289. "type": "string"
  2290. },
  2291. {
  2292. "type": "null"
  2293. }
  2294. ]
  2295. },
  2296. "metadata": {
  2297. "type": "object"
  2298. },
  2299. "delivery": {
  2300. "anyOf": [
  2301. {
  2302. "type": "string",
  2303. "enum": ["steer", "queue"]
  2304. },
  2305. {
  2306. "type": "null"
  2307. }
  2308. ]
  2309. },
  2310. "resume": {
  2311. "anyOf": [
  2312. {
  2313. "type": "boolean"
  2314. },
  2315. {
  2316. "type": "null"
  2317. }
  2318. ]
  2319. }
  2320. },
  2321. "required": ["text"],
  2322. "additionalProperties": false
  2323. }
  2324. }
  2325. },
  2326. "required": true
  2327. }
  2328. }
  2329. },
  2330. "/api/session/{sessionID}/shell": {
  2331. "post": {
  2332. "tags": ["session"],
  2333. "operationId": "v2.session.shell",
  2334. "parameters": [
  2335. {
  2336. "name": "sessionID",
  2337. "in": "path",
  2338. "schema": {
  2339. "type": "string",
  2340. "allOf": [
  2341. {
  2342. "pattern": "^ses"
  2343. }
  2344. ]
  2345. },
  2346. "required": true
  2347. }
  2348. ],
  2349. "security": [],
  2350. "responses": {
  2351. "204": {
  2352. "description": "<No Content>"
  2353. },
  2354. "400": {
  2355. "description": "InvalidRequestError",
  2356. "content": {
  2357. "application/json": {
  2358. "schema": {
  2359. "$ref": "#/components/schemas/InvalidRequestError"
  2360. }
  2361. }
  2362. }
  2363. },
  2364. "401": {
  2365. "description": "UnauthorizedError",
  2366. "content": {
  2367. "application/json": {
  2368. "schema": {
  2369. "$ref": "#/components/schemas/UnauthorizedError"
  2370. }
  2371. }
  2372. }
  2373. },
  2374. "404": {
  2375. "description": "SessionNotFoundError",
  2376. "content": {
  2377. "application/json": {
  2378. "schema": {
  2379. "anyOf": [
  2380. {
  2381. "$ref": "#/components/schemas/SessionNotFoundError"
  2382. },
  2383. {
  2384. "$ref": "#/components/schemas/SessionNotFoundError"
  2385. }
  2386. ]
  2387. }
  2388. }
  2389. }
  2390. }
  2391. },
  2392. "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.",
  2393. "summary": "Run shell command",
  2394. "requestBody": {
  2395. "content": {
  2396. "application/json": {
  2397. "schema": {
  2398. "type": "object",
  2399. "properties": {
  2400. "id": {
  2401. "anyOf": [
  2402. {
  2403. "type": "string",
  2404. "allOf": [
  2405. {
  2406. "pattern": "^evt_"
  2407. }
  2408. ]
  2409. },
  2410. {
  2411. "type": "null"
  2412. }
  2413. ]
  2414. },
  2415. "command": {
  2416. "type": "string"
  2417. }
  2418. },
  2419. "required": ["command"],
  2420. "additionalProperties": false
  2421. }
  2422. }
  2423. },
  2424. "required": true
  2425. }
  2426. }
  2427. },
  2428. "/api/session/{sessionID}/compact": {
  2429. "post": {
  2430. "tags": ["session"],
  2431. "operationId": "v2.session.compact",
  2432. "parameters": [
  2433. {
  2434. "name": "sessionID",
  2435. "in": "path",
  2436. "schema": {
  2437. "type": "string",
  2438. "allOf": [
  2439. {
  2440. "pattern": "^ses"
  2441. }
  2442. ]
  2443. },
  2444. "required": true
  2445. }
  2446. ],
  2447. "security": [],
  2448. "responses": {
  2449. "200": {
  2450. "description": "Success",
  2451. "content": {
  2452. "application/json": {
  2453. "schema": {
  2454. "type": "object",
  2455. "properties": {
  2456. "data": {
  2457. "$ref": "#/components/schemas/SessionPending.Compaction"
  2458. }
  2459. },
  2460. "required": ["data"],
  2461. "additionalProperties": false
  2462. }
  2463. }
  2464. }
  2465. },
  2466. "400": {
  2467. "description": "InvalidRequestError",
  2468. "content": {
  2469. "application/json": {
  2470. "schema": {
  2471. "$ref": "#/components/schemas/InvalidRequestError"
  2472. }
  2473. }
  2474. }
  2475. },
  2476. "401": {
  2477. "description": "UnauthorizedError",
  2478. "content": {
  2479. "application/json": {
  2480. "schema": {
  2481. "$ref": "#/components/schemas/UnauthorizedError"
  2482. }
  2483. }
  2484. }
  2485. },
  2486. "404": {
  2487. "description": "SessionNotFoundError",
  2488. "content": {
  2489. "application/json": {
  2490. "schema": {
  2491. "anyOf": [
  2492. {
  2493. "$ref": "#/components/schemas/SessionNotFoundError"
  2494. },
  2495. {
  2496. "$ref": "#/components/schemas/SessionNotFoundError"
  2497. }
  2498. ]
  2499. }
  2500. }
  2501. }
  2502. },
  2503. "409": {
  2504. "description": "ConflictError",
  2505. "content": {
  2506. "application/json": {
  2507. "schema": {
  2508. "$ref": "#/components/schemas/ConflictError"
  2509. }
  2510. }
  2511. }
  2512. }
  2513. },
  2514. "description": "Queue a durable session compaction request.",
  2515. "summary": "Compact session",
  2516. "requestBody": {
  2517. "content": {
  2518. "application/json": {
  2519. "schema": {
  2520. "type": "object",
  2521. "properties": {
  2522. "id": {
  2523. "anyOf": [
  2524. {
  2525. "type": "string",
  2526. "allOf": [
  2527. {
  2528. "pattern": "^msg_"
  2529. }
  2530. ]
  2531. },
  2532. {
  2533. "type": "null"
  2534. }
  2535. ]
  2536. }
  2537. },
  2538. "additionalProperties": false
  2539. }
  2540. }
  2541. },
  2542. "required": true
  2543. }
  2544. }
  2545. },
  2546. "/api/session/{sessionID}/wait": {
  2547. "post": {
  2548. "tags": ["session"],
  2549. "operationId": "v2.session.wait",
  2550. "parameters": [
  2551. {
  2552. "name": "sessionID",
  2553. "in": "path",
  2554. "schema": {
  2555. "type": "string",
  2556. "allOf": [
  2557. {
  2558. "pattern": "^ses"
  2559. }
  2560. ]
  2561. },
  2562. "required": true
  2563. }
  2564. ],
  2565. "security": [],
  2566. "responses": {
  2567. "204": {
  2568. "description": "<No Content>"
  2569. },
  2570. "400": {
  2571. "description": "InvalidRequestError",
  2572. "content": {
  2573. "application/json": {
  2574. "schema": {
  2575. "$ref": "#/components/schemas/InvalidRequestError"
  2576. }
  2577. }
  2578. }
  2579. },
  2580. "401": {
  2581. "description": "UnauthorizedError",
  2582. "content": {
  2583. "application/json": {
  2584. "schema": {
  2585. "$ref": "#/components/schemas/UnauthorizedError"
  2586. }
  2587. }
  2588. }
  2589. },
  2590. "404": {
  2591. "description": "SessionNotFoundError",
  2592. "content": {
  2593. "application/json": {
  2594. "schema": {
  2595. "anyOf": [
  2596. {
  2597. "$ref": "#/components/schemas/SessionNotFoundError"
  2598. },
  2599. {
  2600. "$ref": "#/components/schemas/SessionNotFoundError"
  2601. }
  2602. ]
  2603. }
  2604. }
  2605. }
  2606. },
  2607. "503": {
  2608. "description": "ServiceUnavailableError",
  2609. "content": {
  2610. "application/json": {
  2611. "schema": {
  2612. "$ref": "#/components/schemas/ServiceUnavailableError"
  2613. }
  2614. }
  2615. }
  2616. }
  2617. },
  2618. "description": "Wait for a session agent loop to become idle.",
  2619. "summary": "Wait for session"
  2620. }
  2621. },
  2622. "/api/session/{sessionID}/revert/stage": {
  2623. "post": {
  2624. "tags": ["session"],
  2625. "operationId": "v2.session.revert.stage",
  2626. "parameters": [
  2627. {
  2628. "name": "sessionID",
  2629. "in": "path",
  2630. "schema": {
  2631. "type": "string",
  2632. "allOf": [
  2633. {
  2634. "pattern": "^ses"
  2635. }
  2636. ]
  2637. },
  2638. "required": true
  2639. }
  2640. ],
  2641. "security": [],
  2642. "responses": {
  2643. "200": {
  2644. "description": "Success",
  2645. "content": {
  2646. "application/json": {
  2647. "schema": {
  2648. "type": "object",
  2649. "properties": {
  2650. "data": {
  2651. "$ref": "#/components/schemas/Session.Revert"
  2652. }
  2653. },
  2654. "required": ["data"],
  2655. "additionalProperties": false
  2656. }
  2657. }
  2658. }
  2659. },
  2660. "400": {
  2661. "description": "InvalidRequestError",
  2662. "content": {
  2663. "application/json": {
  2664. "schema": {
  2665. "$ref": "#/components/schemas/InvalidRequestError"
  2666. }
  2667. }
  2668. }
  2669. },
  2670. "401": {
  2671. "description": "UnauthorizedError",
  2672. "content": {
  2673. "application/json": {
  2674. "schema": {
  2675. "$ref": "#/components/schemas/UnauthorizedError"
  2676. }
  2677. }
  2678. }
  2679. },
  2680. "404": {
  2681. "description": "MessageNotFoundError | SessionNotFoundError",
  2682. "content": {
  2683. "application/json": {
  2684. "schema": {
  2685. "anyOf": [
  2686. {
  2687. "$ref": "#/components/schemas/MessageNotFoundError"
  2688. },
  2689. {
  2690. "$ref": "#/components/schemas/SessionNotFoundError"
  2691. },
  2692. {
  2693. "$ref": "#/components/schemas/SessionNotFoundError"
  2694. }
  2695. ]
  2696. }
  2697. }
  2698. }
  2699. },
  2700. "409": {
  2701. "description": "SessionBusyError",
  2702. "content": {
  2703. "application/json": {
  2704. "schema": {
  2705. "$ref": "#/components/schemas/SessionBusyError"
  2706. }
  2707. }
  2708. }
  2709. },
  2710. "500": {
  2711. "description": "UnknownError",
  2712. "content": {
  2713. "application/json": {
  2714. "schema": {
  2715. "$ref": "#/components/schemas/UnknownError"
  2716. }
  2717. }
  2718. }
  2719. }
  2720. },
  2721. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2722. "summary": "Stage session revert",
  2723. "requestBody": {
  2724. "content": {
  2725. "application/json": {
  2726. "schema": {
  2727. "type": "object",
  2728. "properties": {
  2729. "messageID": {
  2730. "type": "string",
  2731. "allOf": [
  2732. {
  2733. "pattern": "^msg_"
  2734. }
  2735. ]
  2736. },
  2737. "files": {
  2738. "anyOf": [
  2739. {
  2740. "type": "boolean"
  2741. },
  2742. {
  2743. "type": "null"
  2744. }
  2745. ]
  2746. }
  2747. },
  2748. "required": ["messageID"],
  2749. "additionalProperties": false
  2750. }
  2751. }
  2752. },
  2753. "required": true
  2754. }
  2755. }
  2756. },
  2757. "/api/session/{sessionID}/revert/clear": {
  2758. "post": {
  2759. "tags": ["session"],
  2760. "operationId": "v2.session.revert.clear",
  2761. "parameters": [
  2762. {
  2763. "name": "sessionID",
  2764. "in": "path",
  2765. "schema": {
  2766. "type": "string",
  2767. "allOf": [
  2768. {
  2769. "pattern": "^ses"
  2770. }
  2771. ]
  2772. },
  2773. "required": true
  2774. }
  2775. ],
  2776. "security": [],
  2777. "responses": {
  2778. "204": {
  2779. "description": "<No Content>"
  2780. },
  2781. "400": {
  2782. "description": "InvalidRequestError",
  2783. "content": {
  2784. "application/json": {
  2785. "schema": {
  2786. "$ref": "#/components/schemas/InvalidRequestError"
  2787. }
  2788. }
  2789. }
  2790. },
  2791. "401": {
  2792. "description": "UnauthorizedError",
  2793. "content": {
  2794. "application/json": {
  2795. "schema": {
  2796. "$ref": "#/components/schemas/UnauthorizedError"
  2797. }
  2798. }
  2799. }
  2800. },
  2801. "404": {
  2802. "description": "SessionNotFoundError",
  2803. "content": {
  2804. "application/json": {
  2805. "schema": {
  2806. "anyOf": [
  2807. {
  2808. "$ref": "#/components/schemas/SessionNotFoundError"
  2809. },
  2810. {
  2811. "$ref": "#/components/schemas/SessionNotFoundError"
  2812. }
  2813. ]
  2814. }
  2815. }
  2816. }
  2817. },
  2818. "409": {
  2819. "description": "SessionBusyError",
  2820. "content": {
  2821. "application/json": {
  2822. "schema": {
  2823. "$ref": "#/components/schemas/SessionBusyError"
  2824. }
  2825. }
  2826. }
  2827. },
  2828. "500": {
  2829. "description": "UnknownError",
  2830. "content": {
  2831. "application/json": {
  2832. "schema": {
  2833. "$ref": "#/components/schemas/UnknownError"
  2834. }
  2835. }
  2836. }
  2837. }
  2838. },
  2839. "summary": "Clear staged revert"
  2840. }
  2841. },
  2842. "/api/session/{sessionID}/revert/commit": {
  2843. "post": {
  2844. "tags": ["session"],
  2845. "operationId": "v2.session.revert.commit",
  2846. "parameters": [
  2847. {
  2848. "name": "sessionID",
  2849. "in": "path",
  2850. "schema": {
  2851. "type": "string",
  2852. "allOf": [
  2853. {
  2854. "pattern": "^ses"
  2855. }
  2856. ]
  2857. },
  2858. "required": true
  2859. }
  2860. ],
  2861. "security": [],
  2862. "responses": {
  2863. "204": {
  2864. "description": "<No Content>"
  2865. },
  2866. "400": {
  2867. "description": "InvalidRequestError",
  2868. "content": {
  2869. "application/json": {
  2870. "schema": {
  2871. "$ref": "#/components/schemas/InvalidRequestError"
  2872. }
  2873. }
  2874. }
  2875. },
  2876. "401": {
  2877. "description": "UnauthorizedError",
  2878. "content": {
  2879. "application/json": {
  2880. "schema": {
  2881. "$ref": "#/components/schemas/UnauthorizedError"
  2882. }
  2883. }
  2884. }
  2885. },
  2886. "404": {
  2887. "description": "SessionNotFoundError",
  2888. "content": {
  2889. "application/json": {
  2890. "schema": {
  2891. "anyOf": [
  2892. {
  2893. "$ref": "#/components/schemas/SessionNotFoundError"
  2894. },
  2895. {
  2896. "$ref": "#/components/schemas/SessionNotFoundError"
  2897. }
  2898. ]
  2899. }
  2900. }
  2901. }
  2902. },
  2903. "409": {
  2904. "description": "SessionBusyError",
  2905. "content": {
  2906. "application/json": {
  2907. "schema": {
  2908. "$ref": "#/components/schemas/SessionBusyError"
  2909. }
  2910. }
  2911. }
  2912. }
  2913. },
  2914. "summary": "Commit staged revert"
  2915. }
  2916. },
  2917. "/api/session/{sessionID}/context": {
  2918. "get": {
  2919. "tags": ["session"],
  2920. "operationId": "v2.session.context",
  2921. "parameters": [
  2922. {
  2923. "name": "sessionID",
  2924. "in": "path",
  2925. "schema": {
  2926. "type": "string",
  2927. "allOf": [
  2928. {
  2929. "pattern": "^ses"
  2930. }
  2931. ]
  2932. },
  2933. "required": true
  2934. }
  2935. ],
  2936. "security": [],
  2937. "responses": {
  2938. "200": {
  2939. "description": "Success",
  2940. "content": {
  2941. "application/json": {
  2942. "schema": {
  2943. "type": "object",
  2944. "properties": {
  2945. "data": {
  2946. "type": "array",
  2947. "items": {
  2948. "$ref": "#/components/schemas/Session.Message.Info"
  2949. }
  2950. }
  2951. },
  2952. "required": ["data"],
  2953. "additionalProperties": false
  2954. }
  2955. }
  2956. }
  2957. },
  2958. "400": {
  2959. "description": "InvalidRequestError",
  2960. "content": {
  2961. "application/json": {
  2962. "schema": {
  2963. "$ref": "#/components/schemas/InvalidRequestError"
  2964. }
  2965. }
  2966. }
  2967. },
  2968. "401": {
  2969. "description": "UnauthorizedError",
  2970. "content": {
  2971. "application/json": {
  2972. "schema": {
  2973. "$ref": "#/components/schemas/UnauthorizedError"
  2974. }
  2975. }
  2976. }
  2977. },
  2978. "404": {
  2979. "description": "SessionNotFoundError",
  2980. "content": {
  2981. "application/json": {
  2982. "schema": {
  2983. "$ref": "#/components/schemas/SessionNotFoundError"
  2984. }
  2985. }
  2986. }
  2987. },
  2988. "500": {
  2989. "description": "UnknownError",
  2990. "content": {
  2991. "application/json": {
  2992. "schema": {
  2993. "$ref": "#/components/schemas/UnknownError"
  2994. }
  2995. }
  2996. }
  2997. }
  2998. },
  2999. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  3000. "summary": "Get session context"
  3001. }
  3002. },
  3003. "/api/session/{sessionID}/pending": {
  3004. "get": {
  3005. "tags": ["session"],
  3006. "operationId": "v2.session.pending.list",
  3007. "parameters": [
  3008. {
  3009. "name": "sessionID",
  3010. "in": "path",
  3011. "schema": {
  3012. "type": "string",
  3013. "allOf": [
  3014. {
  3015. "pattern": "^ses"
  3016. }
  3017. ]
  3018. },
  3019. "required": true
  3020. }
  3021. ],
  3022. "security": [],
  3023. "responses": {
  3024. "200": {
  3025. "description": "Success",
  3026. "content": {
  3027. "application/json": {
  3028. "schema": {
  3029. "type": "object",
  3030. "properties": {
  3031. "data": {
  3032. "type": "array",
  3033. "items": {
  3034. "$ref": "#/components/schemas/SessionPending.Info"
  3035. }
  3036. }
  3037. },
  3038. "required": ["data"],
  3039. "additionalProperties": false
  3040. }
  3041. }
  3042. }
  3043. },
  3044. "400": {
  3045. "description": "InvalidRequestError",
  3046. "content": {
  3047. "application/json": {
  3048. "schema": {
  3049. "$ref": "#/components/schemas/InvalidRequestError"
  3050. }
  3051. }
  3052. }
  3053. },
  3054. "401": {
  3055. "description": "UnauthorizedError",
  3056. "content": {
  3057. "application/json": {
  3058. "schema": {
  3059. "$ref": "#/components/schemas/UnauthorizedError"
  3060. }
  3061. }
  3062. }
  3063. },
  3064. "404": {
  3065. "description": "SessionNotFoundError",
  3066. "content": {
  3067. "application/json": {
  3068. "schema": {
  3069. "$ref": "#/components/schemas/SessionNotFoundError"
  3070. }
  3071. }
  3072. }
  3073. }
  3074. },
  3075. "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.",
  3076. "summary": "List pending session work"
  3077. }
  3078. },
  3079. "/api/session/{sessionID}/pending/{inputID}": {
  3080. "delete": {
  3081. "tags": ["session"],
  3082. "operationId": "v2.session.pending.cancel",
  3083. "parameters": [
  3084. {
  3085. "name": "sessionID",
  3086. "in": "path",
  3087. "schema": {
  3088. "type": "string",
  3089. "allOf": [
  3090. {
  3091. "pattern": "^ses"
  3092. }
  3093. ]
  3094. },
  3095. "required": true
  3096. },
  3097. {
  3098. "name": "inputID",
  3099. "in": "path",
  3100. "schema": {
  3101. "type": "string",
  3102. "allOf": [
  3103. {
  3104. "pattern": "^msg_"
  3105. }
  3106. ]
  3107. },
  3108. "required": true
  3109. }
  3110. ],
  3111. "security": [],
  3112. "responses": {
  3113. "204": {
  3114. "description": "<No Content>"
  3115. },
  3116. "400": {
  3117. "description": "InvalidRequestError",
  3118. "content": {
  3119. "application/json": {
  3120. "schema": {
  3121. "$ref": "#/components/schemas/InvalidRequestError"
  3122. }
  3123. }
  3124. }
  3125. },
  3126. "401": {
  3127. "description": "UnauthorizedError",
  3128. "content": {
  3129. "application/json": {
  3130. "schema": {
  3131. "$ref": "#/components/schemas/UnauthorizedError"
  3132. }
  3133. }
  3134. }
  3135. },
  3136. "404": {
  3137. "description": "SessionNotFoundError",
  3138. "content": {
  3139. "application/json": {
  3140. "schema": {
  3141. "$ref": "#/components/schemas/SessionNotFoundError"
  3142. }
  3143. }
  3144. }
  3145. },
  3146. "409": {
  3147. "description": "ConflictError",
  3148. "content": {
  3149. "application/json": {
  3150. "schema": {
  3151. "$ref": "#/components/schemas/ConflictError"
  3152. }
  3153. }
  3154. }
  3155. }
  3156. },
  3157. "description": "Cancel an input that has not yet been promoted into session history.",
  3158. "summary": "Cancel pending input"
  3159. }
  3160. },
  3161. "/api/session/{sessionID}/pending/{inputID}/steer": {
  3162. "post": {
  3163. "tags": ["session"],
  3164. "operationId": "v2.session.pending.steer",
  3165. "parameters": [
  3166. {
  3167. "name": "sessionID",
  3168. "in": "path",
  3169. "schema": {
  3170. "type": "string",
  3171. "allOf": [
  3172. {
  3173. "pattern": "^ses"
  3174. }
  3175. ]
  3176. },
  3177. "required": true
  3178. },
  3179. {
  3180. "name": "inputID",
  3181. "in": "path",
  3182. "schema": {
  3183. "type": "string",
  3184. "allOf": [
  3185. {
  3186. "pattern": "^msg_"
  3187. }
  3188. ]
  3189. },
  3190. "required": true
  3191. }
  3192. ],
  3193. "security": [],
  3194. "responses": {
  3195. "204": {
  3196. "description": "<No Content>"
  3197. },
  3198. "400": {
  3199. "description": "InvalidRequestError",
  3200. "content": {
  3201. "application/json": {
  3202. "schema": {
  3203. "$ref": "#/components/schemas/InvalidRequestError"
  3204. }
  3205. }
  3206. }
  3207. },
  3208. "401": {
  3209. "description": "UnauthorizedError",
  3210. "content": {
  3211. "application/json": {
  3212. "schema": {
  3213. "$ref": "#/components/schemas/UnauthorizedError"
  3214. }
  3215. }
  3216. }
  3217. },
  3218. "404": {
  3219. "description": "SessionNotFoundError",
  3220. "content": {
  3221. "application/json": {
  3222. "schema": {
  3223. "$ref": "#/components/schemas/SessionNotFoundError"
  3224. }
  3225. }
  3226. }
  3227. },
  3228. "409": {
  3229. "description": "ConflictError",
  3230. "content": {
  3231. "application/json": {
  3232. "schema": {
  3233. "$ref": "#/components/schemas/ConflictError"
  3234. }
  3235. }
  3236. }
  3237. }
  3238. },
  3239. "description": "Change a queued input to steer delivery and wake session execution.",
  3240. "summary": "Steer queued input"
  3241. }
  3242. },
  3243. "/api/session/{sessionID}/pending/{inputID}/queue": {
  3244. "post": {
  3245. "tags": ["session"],
  3246. "operationId": "v2.session.pending.queue",
  3247. "parameters": [
  3248. {
  3249. "name": "sessionID",
  3250. "in": "path",
  3251. "schema": {
  3252. "type": "string",
  3253. "allOf": [
  3254. {
  3255. "pattern": "^ses"
  3256. }
  3257. ]
  3258. },
  3259. "required": true
  3260. },
  3261. {
  3262. "name": "inputID",
  3263. "in": "path",
  3264. "schema": {
  3265. "type": "string",
  3266. "allOf": [
  3267. {
  3268. "pattern": "^msg_"
  3269. }
  3270. ]
  3271. },
  3272. "required": true
  3273. }
  3274. ],
  3275. "security": [],
  3276. "responses": {
  3277. "204": {
  3278. "description": "<No Content>"
  3279. },
  3280. "400": {
  3281. "description": "InvalidRequestError",
  3282. "content": {
  3283. "application/json": {
  3284. "schema": {
  3285. "$ref": "#/components/schemas/InvalidRequestError"
  3286. }
  3287. }
  3288. }
  3289. },
  3290. "401": {
  3291. "description": "UnauthorizedError",
  3292. "content": {
  3293. "application/json": {
  3294. "schema": {
  3295. "$ref": "#/components/schemas/UnauthorizedError"
  3296. }
  3297. }
  3298. }
  3299. },
  3300. "404": {
  3301. "description": "SessionNotFoundError",
  3302. "content": {
  3303. "application/json": {
  3304. "schema": {
  3305. "$ref": "#/components/schemas/SessionNotFoundError"
  3306. }
  3307. }
  3308. }
  3309. },
  3310. "409": {
  3311. "description": "ConflictError",
  3312. "content": {
  3313. "application/json": {
  3314. "schema": {
  3315. "$ref": "#/components/schemas/ConflictError"
  3316. }
  3317. }
  3318. }
  3319. }
  3320. },
  3321. "description": "Change a pending steer to queued delivery.",
  3322. "summary": "Queue pending steer"
  3323. }
  3324. },
  3325. "/api/session/{sessionID}/instructions/entries": {
  3326. "get": {
  3327. "tags": ["session"],
  3328. "operationId": "v2.session.instructions.entry.list",
  3329. "parameters": [
  3330. {
  3331. "name": "sessionID",
  3332. "in": "path",
  3333. "schema": {
  3334. "type": "string",
  3335. "allOf": [
  3336. {
  3337. "pattern": "^ses"
  3338. }
  3339. ]
  3340. },
  3341. "required": true
  3342. }
  3343. ],
  3344. "security": [],
  3345. "responses": {
  3346. "200": {
  3347. "description": "Success",
  3348. "content": {
  3349. "application/json": {
  3350. "schema": {
  3351. "type": "object",
  3352. "properties": {
  3353. "data": {
  3354. "type": "array",
  3355. "items": {
  3356. "$ref": "#/components/schemas/InstructionEntry.Info"
  3357. }
  3358. }
  3359. },
  3360. "required": ["data"],
  3361. "additionalProperties": false
  3362. }
  3363. }
  3364. }
  3365. },
  3366. "400": {
  3367. "description": "InvalidRequestError",
  3368. "content": {
  3369. "application/json": {
  3370. "schema": {
  3371. "$ref": "#/components/schemas/InvalidRequestError"
  3372. }
  3373. }
  3374. }
  3375. },
  3376. "401": {
  3377. "description": "UnauthorizedError",
  3378. "content": {
  3379. "application/json": {
  3380. "schema": {
  3381. "$ref": "#/components/schemas/UnauthorizedError"
  3382. }
  3383. }
  3384. }
  3385. },
  3386. "404": {
  3387. "description": "SessionNotFoundError",
  3388. "content": {
  3389. "application/json": {
  3390. "schema": {
  3391. "anyOf": [
  3392. {
  3393. "$ref": "#/components/schemas/SessionNotFoundError"
  3394. },
  3395. {
  3396. "$ref": "#/components/schemas/SessionNotFoundError"
  3397. }
  3398. ]
  3399. }
  3400. }
  3401. }
  3402. }
  3403. },
  3404. "description": "List API-managed instruction entries attached to the session.",
  3405. "summary": "List instruction entries"
  3406. }
  3407. },
  3408. "/api/session/{sessionID}/instructions/entries/{key}": {
  3409. "put": {
  3410. "tags": ["session"],
  3411. "operationId": "v2.session.instructions.entry.put",
  3412. "parameters": [
  3413. {
  3414. "name": "sessionID",
  3415. "in": "path",
  3416. "schema": {
  3417. "type": "string",
  3418. "allOf": [
  3419. {
  3420. "pattern": "^ses"
  3421. }
  3422. ]
  3423. },
  3424. "required": true
  3425. },
  3426. {
  3427. "name": "key",
  3428. "in": "path",
  3429. "schema": {
  3430. "$ref": "#/components/schemas/InstructionEntry.Key"
  3431. },
  3432. "required": true
  3433. }
  3434. ],
  3435. "security": [],
  3436. "responses": {
  3437. "204": {
  3438. "description": "<No Content>"
  3439. },
  3440. "400": {
  3441. "description": "InvalidRequestError",
  3442. "content": {
  3443. "application/json": {
  3444. "schema": {
  3445. "$ref": "#/components/schemas/InvalidRequestError"
  3446. }
  3447. }
  3448. }
  3449. },
  3450. "401": {
  3451. "description": "UnauthorizedError",
  3452. "content": {
  3453. "application/json": {
  3454. "schema": {
  3455. "$ref": "#/components/schemas/UnauthorizedError"
  3456. }
  3457. }
  3458. }
  3459. },
  3460. "404": {
  3461. "description": "SessionNotFoundError",
  3462. "content": {
  3463. "application/json": {
  3464. "schema": {
  3465. "anyOf": [
  3466. {
  3467. "$ref": "#/components/schemas/SessionNotFoundError"
  3468. },
  3469. {
  3470. "$ref": "#/components/schemas/SessionNotFoundError"
  3471. }
  3472. ]
  3473. }
  3474. }
  3475. }
  3476. },
  3477. "413": {
  3478. "description": "InstructionEntryValueTooLargeError",
  3479. "content": {
  3480. "application/json": {
  3481. "schema": {
  3482. "$ref": "#/components/schemas/InstructionEntryValueTooLargeError"
  3483. }
  3484. }
  3485. }
  3486. }
  3487. },
  3488. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  3489. "summary": "Put instruction entry",
  3490. "requestBody": {
  3491. "content": {
  3492. "application/json": {
  3493. "schema": {
  3494. "type": "object",
  3495. "properties": {
  3496. "value": {}
  3497. },
  3498. "required": ["value"],
  3499. "additionalProperties": false
  3500. }
  3501. }
  3502. },
  3503. "required": true
  3504. }
  3505. },
  3506. "delete": {
  3507. "tags": ["session"],
  3508. "operationId": "v2.session.instructions.entry.remove",
  3509. "parameters": [
  3510. {
  3511. "name": "sessionID",
  3512. "in": "path",
  3513. "schema": {
  3514. "type": "string",
  3515. "allOf": [
  3516. {
  3517. "pattern": "^ses"
  3518. }
  3519. ]
  3520. },
  3521. "required": true
  3522. },
  3523. {
  3524. "name": "key",
  3525. "in": "path",
  3526. "schema": {
  3527. "$ref": "#/components/schemas/InstructionEntry.Key"
  3528. },
  3529. "required": true
  3530. }
  3531. ],
  3532. "security": [],
  3533. "responses": {
  3534. "204": {
  3535. "description": "<No Content>"
  3536. },
  3537. "400": {
  3538. "description": "InvalidRequestError",
  3539. "content": {
  3540. "application/json": {
  3541. "schema": {
  3542. "$ref": "#/components/schemas/InvalidRequestError"
  3543. }
  3544. }
  3545. }
  3546. },
  3547. "401": {
  3548. "description": "UnauthorizedError",
  3549. "content": {
  3550. "application/json": {
  3551. "schema": {
  3552. "$ref": "#/components/schemas/UnauthorizedError"
  3553. }
  3554. }
  3555. }
  3556. },
  3557. "404": {
  3558. "description": "SessionNotFoundError",
  3559. "content": {
  3560. "application/json": {
  3561. "schema": {
  3562. "anyOf": [
  3563. {
  3564. "$ref": "#/components/schemas/SessionNotFoundError"
  3565. },
  3566. {
  3567. "$ref": "#/components/schemas/SessionNotFoundError"
  3568. }
  3569. ]
  3570. }
  3571. }
  3572. }
  3573. }
  3574. },
  3575. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  3576. "summary": "Remove instruction entry"
  3577. }
  3578. },
  3579. "/api/session/{sessionID}/generate": {
  3580. "post": {
  3581. "tags": ["session"],
  3582. "operationId": "v2.session.generate",
  3583. "parameters": [
  3584. {
  3585. "name": "sessionID",
  3586. "in": "path",
  3587. "schema": {
  3588. "type": "string",
  3589. "allOf": [
  3590. {
  3591. "pattern": "^ses"
  3592. }
  3593. ]
  3594. },
  3595. "required": true
  3596. }
  3597. ],
  3598. "security": [],
  3599. "responses": {
  3600. "200": {
  3601. "description": "SessionGenerateResponse",
  3602. "content": {
  3603. "application/json": {
  3604. "schema": {
  3605. "$ref": "#/components/schemas/SessionGenerateResponse"
  3606. }
  3607. }
  3608. }
  3609. },
  3610. "400": {
  3611. "description": "InvalidRequestError",
  3612. "content": {
  3613. "application/json": {
  3614. "schema": {
  3615. "$ref": "#/components/schemas/InvalidRequestError"
  3616. }
  3617. }
  3618. }
  3619. },
  3620. "401": {
  3621. "description": "UnauthorizedError",
  3622. "content": {
  3623. "application/json": {
  3624. "schema": {
  3625. "$ref": "#/components/schemas/UnauthorizedError"
  3626. }
  3627. }
  3628. }
  3629. },
  3630. "404": {
  3631. "description": "SessionNotFoundError",
  3632. "content": {
  3633. "application/json": {
  3634. "schema": {
  3635. "anyOf": [
  3636. {
  3637. "$ref": "#/components/schemas/SessionNotFoundError"
  3638. },
  3639. {
  3640. "$ref": "#/components/schemas/SessionNotFoundError"
  3641. }
  3642. ]
  3643. }
  3644. }
  3645. }
  3646. },
  3647. "503": {
  3648. "description": "ServiceUnavailableError",
  3649. "content": {
  3650. "application/json": {
  3651. "schema": {
  3652. "$ref": "#/components/schemas/ServiceUnavailableError"
  3653. }
  3654. }
  3655. }
  3656. }
  3657. },
  3658. "description": "Generate transient text from the current session context without mutating session history.",
  3659. "summary": "Generate text from session context",
  3660. "requestBody": {
  3661. "content": {
  3662. "application/json": {
  3663. "schema": {
  3664. "type": "object",
  3665. "properties": {
  3666. "prompt": {
  3667. "type": "string"
  3668. }
  3669. },
  3670. "required": ["prompt"],
  3671. "additionalProperties": false
  3672. }
  3673. }
  3674. },
  3675. "required": true
  3676. }
  3677. }
  3678. },
  3679. "/api/experimental/session/{sessionID}/log": {
  3680. "get": {
  3681. "tags": ["session"],
  3682. "operationId": "v2.session.log",
  3683. "parameters": [
  3684. {
  3685. "name": "sessionID",
  3686. "in": "path",
  3687. "schema": {
  3688. "type": "string",
  3689. "allOf": [
  3690. {
  3691. "pattern": "^ses"
  3692. }
  3693. ]
  3694. },
  3695. "required": true
  3696. },
  3697. {
  3698. "name": "after",
  3699. "in": "query",
  3700. "schema": {
  3701. "anyOf": [
  3702. {
  3703. "type": "string"
  3704. },
  3705. {
  3706. "type": "null"
  3707. }
  3708. ]
  3709. },
  3710. "required": false
  3711. },
  3712. {
  3713. "name": "follow",
  3714. "in": "query",
  3715. "schema": {
  3716. "anyOf": [
  3717. {
  3718. "type": "string",
  3719. "enum": ["true", "false"]
  3720. },
  3721. {
  3722. "type": "null"
  3723. }
  3724. ]
  3725. },
  3726. "required": false
  3727. }
  3728. ],
  3729. "security": [],
  3730. "responses": {
  3731. "200": {
  3732. "description": "Success",
  3733. "content": {
  3734. "text/event-stream": {
  3735. "schema": {
  3736. "type": "object",
  3737. "properties": {
  3738. "id": {
  3739. "anyOf": [
  3740. {
  3741. "type": "string"
  3742. },
  3743. {
  3744. "type": "null"
  3745. }
  3746. ]
  3747. },
  3748. "event": {
  3749. "type": "string"
  3750. },
  3751. "data": {
  3752. "$ref": "#/components/schemas/SessionLogItemJsonString"
  3753. }
  3754. },
  3755. "required": ["id", "event", "data"],
  3756. "additionalProperties": false
  3757. },
  3758. "x-effect-stream": {
  3759. "encoding": "sse",
  3760. "causeSchema": {
  3761. "type": "array",
  3762. "items": {
  3763. "anyOf": [
  3764. {
  3765. "type": "object",
  3766. "properties": {
  3767. "_tag": {
  3768. "type": "string",
  3769. "enum": ["Fail"]
  3770. },
  3771. "error": {
  3772. "not": {}
  3773. }
  3774. },
  3775. "required": ["_tag", "error"],
  3776. "additionalProperties": false
  3777. },
  3778. {
  3779. "type": "object",
  3780. "properties": {
  3781. "_tag": {
  3782. "type": "string",
  3783. "enum": ["Die"]
  3784. },
  3785. "defect": {}
  3786. },
  3787. "required": ["_tag", "defect"],
  3788. "additionalProperties": false
  3789. },
  3790. {
  3791. "type": "object",
  3792. "properties": {
  3793. "_tag": {
  3794. "type": "string",
  3795. "enum": ["Interrupt"]
  3796. },
  3797. "fiberId": {
  3798. "anyOf": [
  3799. {
  3800. "type": "number"
  3801. },
  3802. {
  3803. "type": "null"
  3804. }
  3805. ]
  3806. }
  3807. },
  3808. "required": ["_tag", "fiberId"],
  3809. "additionalProperties": false
  3810. }
  3811. ]
  3812. }
  3813. },
  3814. "errorSchema": {
  3815. "not": {}
  3816. },
  3817. "failureEvent": "effect/httpapi/stream/failure"
  3818. }
  3819. }
  3820. }
  3821. },
  3822. "400": {
  3823. "description": "InvalidRequestError",
  3824. "content": {
  3825. "application/json": {
  3826. "schema": {
  3827. "$ref": "#/components/schemas/InvalidRequestError"
  3828. }
  3829. }
  3830. }
  3831. },
  3832. "401": {
  3833. "description": "UnauthorizedError",
  3834. "content": {
  3835. "application/json": {
  3836. "schema": {
  3837. "$ref": "#/components/schemas/UnauthorizedError"
  3838. }
  3839. }
  3840. }
  3841. },
  3842. "404": {
  3843. "description": "SessionNotFoundError",
  3844. "content": {
  3845. "application/json": {
  3846. "schema": {
  3847. "$ref": "#/components/schemas/SessionNotFoundError"
  3848. }
  3849. }
  3850. }
  3851. }
  3852. },
  3853. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3854. "summary": "Read the session log"
  3855. }
  3856. },
  3857. "/api/session/{sessionID}/interrupt": {
  3858. "post": {
  3859. "tags": ["session"],
  3860. "operationId": "v2.session.interrupt",
  3861. "parameters": [
  3862. {
  3863. "name": "sessionID",
  3864. "in": "path",
  3865. "schema": {
  3866. "type": "string",
  3867. "allOf": [
  3868. {
  3869. "pattern": "^ses"
  3870. }
  3871. ]
  3872. },
  3873. "required": true
  3874. }
  3875. ],
  3876. "security": [],
  3877. "responses": {
  3878. "204": {
  3879. "description": "<No Content>"
  3880. },
  3881. "400": {
  3882. "description": "InvalidRequestError",
  3883. "content": {
  3884. "application/json": {
  3885. "schema": {
  3886. "$ref": "#/components/schemas/InvalidRequestError"
  3887. }
  3888. }
  3889. }
  3890. },
  3891. "401": {
  3892. "description": "UnauthorizedError",
  3893. "content": {
  3894. "application/json": {
  3895. "schema": {
  3896. "$ref": "#/components/schemas/UnauthorizedError"
  3897. }
  3898. }
  3899. }
  3900. },
  3901. "404": {
  3902. "description": "SessionNotFoundError",
  3903. "content": {
  3904. "application/json": {
  3905. "schema": {
  3906. "anyOf": [
  3907. {
  3908. "$ref": "#/components/schemas/SessionNotFoundError"
  3909. },
  3910. {
  3911. "$ref": "#/components/schemas/SessionNotFoundError"
  3912. }
  3913. ]
  3914. }
  3915. }
  3916. }
  3917. }
  3918. },
  3919. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3920. "summary": "Interrupt session execution"
  3921. }
  3922. },
  3923. "/api/session/{sessionID}/background": {
  3924. "post": {
  3925. "tags": ["session"],
  3926. "operationId": "v2.session.background",
  3927. "parameters": [
  3928. {
  3929. "name": "sessionID",
  3930. "in": "path",
  3931. "schema": {
  3932. "type": "string",
  3933. "allOf": [
  3934. {
  3935. "pattern": "^ses"
  3936. }
  3937. ]
  3938. },
  3939. "required": true
  3940. }
  3941. ],
  3942. "security": [],
  3943. "responses": {
  3944. "204": {
  3945. "description": "<No Content>"
  3946. },
  3947. "400": {
  3948. "description": "InvalidRequestError",
  3949. "content": {
  3950. "application/json": {
  3951. "schema": {
  3952. "$ref": "#/components/schemas/InvalidRequestError"
  3953. }
  3954. }
  3955. }
  3956. },
  3957. "401": {
  3958. "description": "UnauthorizedError",
  3959. "content": {
  3960. "application/json": {
  3961. "schema": {
  3962. "$ref": "#/components/schemas/UnauthorizedError"
  3963. }
  3964. }
  3965. }
  3966. },
  3967. "404": {
  3968. "description": "SessionNotFoundError",
  3969. "content": {
  3970. "application/json": {
  3971. "schema": {
  3972. "anyOf": [
  3973. {
  3974. "$ref": "#/components/schemas/SessionNotFoundError"
  3975. },
  3976. {
  3977. "$ref": "#/components/schemas/SessionNotFoundError"
  3978. }
  3979. ]
  3980. }
  3981. }
  3982. }
  3983. }
  3984. },
  3985. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3986. "summary": "Background blocking session tools"
  3987. }
  3988. },
  3989. "/api/session/{sessionID}/message/{messageID}": {
  3990. "get": {
  3991. "tags": ["session"],
  3992. "operationId": "v2.session.message",
  3993. "parameters": [
  3994. {
  3995. "name": "sessionID",
  3996. "in": "path",
  3997. "schema": {
  3998. "type": "string",
  3999. "allOf": [
  4000. {
  4001. "pattern": "^ses"
  4002. }
  4003. ]
  4004. },
  4005. "required": true
  4006. },
  4007. {
  4008. "name": "messageID",
  4009. "in": "path",
  4010. "schema": {
  4011. "type": "string",
  4012. "allOf": [
  4013. {
  4014. "pattern": "^msg_"
  4015. }
  4016. ]
  4017. },
  4018. "required": true
  4019. }
  4020. ],
  4021. "security": [],
  4022. "responses": {
  4023. "200": {
  4024. "description": "Success",
  4025. "content": {
  4026. "application/json": {
  4027. "schema": {
  4028. "type": "object",
  4029. "properties": {
  4030. "data": {
  4031. "$ref": "#/components/schemas/Session.Message.Info"
  4032. }
  4033. },
  4034. "required": ["data"],
  4035. "additionalProperties": false
  4036. }
  4037. }
  4038. }
  4039. },
  4040. "400": {
  4041. "description": "InvalidRequestError",
  4042. "content": {
  4043. "application/json": {
  4044. "schema": {
  4045. "$ref": "#/components/schemas/InvalidRequestError"
  4046. }
  4047. }
  4048. }
  4049. },
  4050. "401": {
  4051. "description": "UnauthorizedError",
  4052. "content": {
  4053. "application/json": {
  4054. "schema": {
  4055. "$ref": "#/components/schemas/UnauthorizedError"
  4056. }
  4057. }
  4058. }
  4059. },
  4060. "404": {
  4061. "description": "SessionNotFoundError | MessageNotFoundError",
  4062. "content": {
  4063. "application/json": {
  4064. "schema": {
  4065. "anyOf": [
  4066. {
  4067. "$ref": "#/components/schemas/SessionNotFoundError"
  4068. },
  4069. {
  4070. "$ref": "#/components/schemas/MessageNotFoundError"
  4071. }
  4072. ]
  4073. }
  4074. }
  4075. }
  4076. }
  4077. },
  4078. "description": "Retrieve one projected message owned by the Session.",
  4079. "summary": "Get session message"
  4080. }
  4081. },
  4082. "/api/session/{sessionID}/message": {
  4083. "get": {
  4084. "tags": ["session"],
  4085. "operationId": "v2.message.list",
  4086. "parameters": [
  4087. {
  4088. "name": "sessionID",
  4089. "in": "path",
  4090. "schema": {
  4091. "type": "string",
  4092. "allOf": [
  4093. {
  4094. "pattern": "^ses"
  4095. }
  4096. ]
  4097. },
  4098. "required": true
  4099. },
  4100. {
  4101. "name": "limit",
  4102. "in": "query",
  4103. "schema": {
  4104. "anyOf": [
  4105. {
  4106. "type": "string"
  4107. },
  4108. {
  4109. "type": "null"
  4110. }
  4111. ],
  4112. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  4113. },
  4114. "required": false
  4115. },
  4116. {
  4117. "name": "order",
  4118. "in": "query",
  4119. "schema": {
  4120. "anyOf": [
  4121. {
  4122. "type": "string",
  4123. "enum": ["asc", "desc"]
  4124. },
  4125. {
  4126. "type": "null"
  4127. }
  4128. ],
  4129. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  4130. },
  4131. "required": false
  4132. },
  4133. {
  4134. "name": "cursor",
  4135. "in": "query",
  4136. "schema": {
  4137. "anyOf": [
  4138. {
  4139. "type": "string",
  4140. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  4141. },
  4142. {
  4143. "type": "null"
  4144. }
  4145. ]
  4146. },
  4147. "required": false
  4148. }
  4149. ],
  4150. "security": [],
  4151. "responses": {
  4152. "200": {
  4153. "description": "SessionMessagesResponse",
  4154. "content": {
  4155. "application/json": {
  4156. "schema": {
  4157. "$ref": "#/components/schemas/SessionMessagesResponse"
  4158. }
  4159. }
  4160. }
  4161. },
  4162. "400": {
  4163. "description": "InvalidCursorError | InvalidRequestError",
  4164. "content": {
  4165. "application/json": {
  4166. "schema": {
  4167. "anyOf": [
  4168. {
  4169. "$ref": "#/components/schemas/InvalidCursorError"
  4170. },
  4171. {
  4172. "$ref": "#/components/schemas/InvalidRequestError"
  4173. }
  4174. ]
  4175. }
  4176. }
  4177. }
  4178. },
  4179. "401": {
  4180. "description": "UnauthorizedError",
  4181. "content": {
  4182. "application/json": {
  4183. "schema": {
  4184. "$ref": "#/components/schemas/UnauthorizedError"
  4185. }
  4186. }
  4187. }
  4188. },
  4189. "404": {
  4190. "description": "SessionNotFoundError",
  4191. "content": {
  4192. "application/json": {
  4193. "schema": {
  4194. "$ref": "#/components/schemas/SessionNotFoundError"
  4195. }
  4196. }
  4197. }
  4198. },
  4199. "500": {
  4200. "description": "UnknownError",
  4201. "content": {
  4202. "application/json": {
  4203. "schema": {
  4204. "$ref": "#/components/schemas/UnknownError"
  4205. }
  4206. }
  4207. }
  4208. }
  4209. },
  4210. "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.",
  4211. "summary": "Get session messages"
  4212. }
  4213. },
  4214. "/api/model": {
  4215. "get": {
  4216. "tags": ["model"],
  4217. "operationId": "v2.model.list",
  4218. "parameters": [
  4219. {
  4220. "name": "location",
  4221. "in": "query",
  4222. "schema": {
  4223. "anyOf": [
  4224. {
  4225. "type": "object",
  4226. "properties": {
  4227. "directory": {
  4228. "anyOf": [
  4229. {
  4230. "type": "string"
  4231. },
  4232. {
  4233. "type": "null"
  4234. }
  4235. ]
  4236. },
  4237. "workspace": {
  4238. "anyOf": [
  4239. {
  4240. "type": "string"
  4241. },
  4242. {
  4243. "type": "null"
  4244. }
  4245. ]
  4246. }
  4247. },
  4248. "additionalProperties": false
  4249. },
  4250. {
  4251. "type": "null"
  4252. }
  4253. ]
  4254. },
  4255. "required": false,
  4256. "style": "deepObject",
  4257. "explode": true
  4258. }
  4259. ],
  4260. "security": [],
  4261. "responses": {
  4262. "200": {
  4263. "description": "Success",
  4264. "content": {
  4265. "application/json": {
  4266. "schema": {
  4267. "type": "object",
  4268. "properties": {
  4269. "location": {
  4270. "$ref": "#/components/schemas/Location.Info"
  4271. },
  4272. "data": {
  4273. "type": "array",
  4274. "items": {
  4275. "$ref": "#/components/schemas/Model.Info"
  4276. }
  4277. }
  4278. },
  4279. "required": ["location", "data"],
  4280. "additionalProperties": false
  4281. }
  4282. }
  4283. }
  4284. },
  4285. "400": {
  4286. "description": "InvalidRequestError",
  4287. "content": {
  4288. "application/json": {
  4289. "schema": {
  4290. "$ref": "#/components/schemas/InvalidRequestError"
  4291. }
  4292. }
  4293. }
  4294. },
  4295. "401": {
  4296. "description": "UnauthorizedError",
  4297. "content": {
  4298. "application/json": {
  4299. "schema": {
  4300. "$ref": "#/components/schemas/UnauthorizedError"
  4301. }
  4302. }
  4303. }
  4304. },
  4305. "503": {
  4306. "description": "ServiceUnavailableError",
  4307. "content": {
  4308. "application/json": {
  4309. "schema": {
  4310. "$ref": "#/components/schemas/ServiceUnavailableError"
  4311. }
  4312. }
  4313. }
  4314. }
  4315. },
  4316. "description": "Retrieve the current snapshot of available models ordered by release date. The snapshot may precede initial plugin settlement.",
  4317. "summary": "List models"
  4318. }
  4319. },
  4320. "/api/model/default": {
  4321. "get": {
  4322. "tags": ["model"],
  4323. "operationId": "v2.model.default",
  4324. "parameters": [
  4325. {
  4326. "name": "location",
  4327. "in": "query",
  4328. "schema": {
  4329. "anyOf": [
  4330. {
  4331. "type": "object",
  4332. "properties": {
  4333. "directory": {
  4334. "anyOf": [
  4335. {
  4336. "type": "string"
  4337. },
  4338. {
  4339. "type": "null"
  4340. }
  4341. ]
  4342. },
  4343. "workspace": {
  4344. "anyOf": [
  4345. {
  4346. "type": "string"
  4347. },
  4348. {
  4349. "type": "null"
  4350. }
  4351. ]
  4352. }
  4353. },
  4354. "additionalProperties": false
  4355. },
  4356. {
  4357. "type": "null"
  4358. }
  4359. ]
  4360. },
  4361. "required": false,
  4362. "style": "deepObject",
  4363. "explode": true
  4364. }
  4365. ],
  4366. "security": [],
  4367. "responses": {
  4368. "200": {
  4369. "description": "Success",
  4370. "content": {
  4371. "application/json": {
  4372. "schema": {
  4373. "type": "object",
  4374. "properties": {
  4375. "location": {
  4376. "$ref": "#/components/schemas/Location.Info"
  4377. },
  4378. "data": {
  4379. "anyOf": [
  4380. {
  4381. "$ref": "#/components/schemas/Model.Info"
  4382. },
  4383. {
  4384. "type": "null"
  4385. }
  4386. ]
  4387. }
  4388. },
  4389. "required": ["location", "data"],
  4390. "additionalProperties": false
  4391. }
  4392. }
  4393. }
  4394. },
  4395. "400": {
  4396. "description": "InvalidRequestError",
  4397. "content": {
  4398. "application/json": {
  4399. "schema": {
  4400. "$ref": "#/components/schemas/InvalidRequestError"
  4401. }
  4402. }
  4403. }
  4404. },
  4405. "401": {
  4406. "description": "UnauthorizedError",
  4407. "content": {
  4408. "application/json": {
  4409. "schema": {
  4410. "$ref": "#/components/schemas/UnauthorizedError"
  4411. }
  4412. }
  4413. }
  4414. },
  4415. "503": {
  4416. "description": "ServiceUnavailableError",
  4417. "content": {
  4418. "application/json": {
  4419. "schema": {
  4420. "$ref": "#/components/schemas/ServiceUnavailableError"
  4421. }
  4422. }
  4423. }
  4424. }
  4425. },
  4426. "description": "Retrieve the model used when a session has no explicit model selection.",
  4427. "summary": "Get default model"
  4428. }
  4429. },
  4430. "/api/generate": {
  4431. "post": {
  4432. "tags": ["generate"],
  4433. "operationId": "v2.generate.text",
  4434. "parameters": [
  4435. {
  4436. "name": "location",
  4437. "in": "query",
  4438. "schema": {
  4439. "anyOf": [
  4440. {
  4441. "type": "object",
  4442. "properties": {
  4443. "directory": {
  4444. "anyOf": [
  4445. {
  4446. "type": "string"
  4447. },
  4448. {
  4449. "type": "null"
  4450. }
  4451. ]
  4452. },
  4453. "workspace": {
  4454. "anyOf": [
  4455. {
  4456. "type": "string"
  4457. },
  4458. {
  4459. "type": "null"
  4460. }
  4461. ]
  4462. }
  4463. },
  4464. "additionalProperties": false
  4465. },
  4466. {
  4467. "type": "null"
  4468. }
  4469. ]
  4470. },
  4471. "required": false,
  4472. "style": "deepObject",
  4473. "explode": true
  4474. }
  4475. ],
  4476. "security": [],
  4477. "responses": {
  4478. "200": {
  4479. "description": "GenerateTextResponse",
  4480. "content": {
  4481. "application/json": {
  4482. "schema": {
  4483. "$ref": "#/components/schemas/GenerateTextResponse"
  4484. }
  4485. }
  4486. }
  4487. },
  4488. "400": {
  4489. "description": "InvalidRequestError",
  4490. "content": {
  4491. "application/json": {
  4492. "schema": {
  4493. "anyOf": [
  4494. {
  4495. "$ref": "#/components/schemas/InvalidRequestError1"
  4496. },
  4497. {
  4498. "$ref": "#/components/schemas/InvalidRequestError"
  4499. }
  4500. ]
  4501. }
  4502. }
  4503. }
  4504. },
  4505. "401": {
  4506. "description": "UnauthorizedError",
  4507. "content": {
  4508. "application/json": {
  4509. "schema": {
  4510. "$ref": "#/components/schemas/UnauthorizedError"
  4511. }
  4512. }
  4513. }
  4514. },
  4515. "503": {
  4516. "description": "ServiceUnavailableError",
  4517. "content": {
  4518. "application/json": {
  4519. "schema": {
  4520. "$ref": "#/components/schemas/ServiceUnavailableError"
  4521. }
  4522. }
  4523. }
  4524. }
  4525. },
  4526. "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.",
  4527. "summary": "Generate text",
  4528. "requestBody": {
  4529. "content": {
  4530. "application/json": {
  4531. "schema": {
  4532. "type": "object",
  4533. "properties": {
  4534. "prompt": {
  4535. "type": "string"
  4536. },
  4537. "model": {
  4538. "anyOf": [
  4539. {
  4540. "$ref": "#/components/schemas/Model.Ref"
  4541. },
  4542. {
  4543. "type": "null"
  4544. }
  4545. ]
  4546. }
  4547. },
  4548. "required": ["prompt"],
  4549. "additionalProperties": false
  4550. }
  4551. }
  4552. },
  4553. "required": true
  4554. }
  4555. }
  4556. },
  4557. "/api/provider": {
  4558. "get": {
  4559. "tags": ["provider"],
  4560. "operationId": "v2.provider.list",
  4561. "parameters": [
  4562. {
  4563. "name": "location",
  4564. "in": "query",
  4565. "schema": {
  4566. "anyOf": [
  4567. {
  4568. "type": "object",
  4569. "properties": {
  4570. "directory": {
  4571. "anyOf": [
  4572. {
  4573. "type": "string"
  4574. },
  4575. {
  4576. "type": "null"
  4577. }
  4578. ]
  4579. },
  4580. "workspace": {
  4581. "anyOf": [
  4582. {
  4583. "type": "string"
  4584. },
  4585. {
  4586. "type": "null"
  4587. }
  4588. ]
  4589. }
  4590. },
  4591. "additionalProperties": false
  4592. },
  4593. {
  4594. "type": "null"
  4595. }
  4596. ]
  4597. },
  4598. "required": false,
  4599. "style": "deepObject",
  4600. "explode": true
  4601. }
  4602. ],
  4603. "security": [],
  4604. "responses": {
  4605. "200": {
  4606. "description": "Success",
  4607. "content": {
  4608. "application/json": {
  4609. "schema": {
  4610. "type": "object",
  4611. "properties": {
  4612. "location": {
  4613. "$ref": "#/components/schemas/Location.Info"
  4614. },
  4615. "data": {
  4616. "type": "array",
  4617. "items": {
  4618. "$ref": "#/components/schemas/Provider.Info"
  4619. }
  4620. }
  4621. },
  4622. "required": ["location", "data"],
  4623. "additionalProperties": false
  4624. }
  4625. }
  4626. }
  4627. },
  4628. "400": {
  4629. "description": "InvalidRequestError",
  4630. "content": {
  4631. "application/json": {
  4632. "schema": {
  4633. "$ref": "#/components/schemas/InvalidRequestError"
  4634. }
  4635. }
  4636. }
  4637. },
  4638. "401": {
  4639. "description": "UnauthorizedError",
  4640. "content": {
  4641. "application/json": {
  4642. "schema": {
  4643. "$ref": "#/components/schemas/UnauthorizedError"
  4644. }
  4645. }
  4646. }
  4647. },
  4648. "503": {
  4649. "description": "ServiceUnavailableError",
  4650. "content": {
  4651. "application/json": {
  4652. "schema": {
  4653. "$ref": "#/components/schemas/ServiceUnavailableError"
  4654. }
  4655. }
  4656. }
  4657. }
  4658. },
  4659. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4660. "summary": "List providers"
  4661. }
  4662. },
  4663. "/api/provider/{providerID}": {
  4664. "get": {
  4665. "tags": ["provider"],
  4666. "operationId": "v2.provider.get",
  4667. "parameters": [
  4668. {
  4669. "name": "providerID",
  4670. "in": "path",
  4671. "schema": {
  4672. "type": "string"
  4673. },
  4674. "required": true
  4675. },
  4676. {
  4677. "name": "location",
  4678. "in": "query",
  4679. "schema": {
  4680. "anyOf": [
  4681. {
  4682. "type": "object",
  4683. "properties": {
  4684. "directory": {
  4685. "anyOf": [
  4686. {
  4687. "type": "string"
  4688. },
  4689. {
  4690. "type": "null"
  4691. }
  4692. ]
  4693. },
  4694. "workspace": {
  4695. "anyOf": [
  4696. {
  4697. "type": "string"
  4698. },
  4699. {
  4700. "type": "null"
  4701. }
  4702. ]
  4703. }
  4704. },
  4705. "additionalProperties": false
  4706. },
  4707. {
  4708. "type": "null"
  4709. }
  4710. ]
  4711. },
  4712. "required": false,
  4713. "style": "deepObject",
  4714. "explode": true
  4715. }
  4716. ],
  4717. "security": [],
  4718. "responses": {
  4719. "200": {
  4720. "description": "Success",
  4721. "content": {
  4722. "application/json": {
  4723. "schema": {
  4724. "type": "object",
  4725. "properties": {
  4726. "location": {
  4727. "$ref": "#/components/schemas/Location.Info"
  4728. },
  4729. "data": {
  4730. "$ref": "#/components/schemas/Provider.Info"
  4731. }
  4732. },
  4733. "required": ["location", "data"],
  4734. "additionalProperties": false
  4735. }
  4736. }
  4737. }
  4738. },
  4739. "400": {
  4740. "description": "InvalidRequestError",
  4741. "content": {
  4742. "application/json": {
  4743. "schema": {
  4744. "$ref": "#/components/schemas/InvalidRequestError"
  4745. }
  4746. }
  4747. }
  4748. },
  4749. "401": {
  4750. "description": "UnauthorizedError",
  4751. "content": {
  4752. "application/json": {
  4753. "schema": {
  4754. "$ref": "#/components/schemas/UnauthorizedError"
  4755. }
  4756. }
  4757. }
  4758. },
  4759. "404": {
  4760. "description": "ProviderNotFoundError",
  4761. "content": {
  4762. "application/json": {
  4763. "schema": {
  4764. "$ref": "#/components/schemas/ProviderNotFoundError"
  4765. }
  4766. }
  4767. }
  4768. },
  4769. "503": {
  4770. "description": "ServiceUnavailableError",
  4771. "content": {
  4772. "application/json": {
  4773. "schema": {
  4774. "$ref": "#/components/schemas/ServiceUnavailableError"
  4775. }
  4776. }
  4777. }
  4778. }
  4779. },
  4780. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4781. "summary": "Get provider"
  4782. }
  4783. },
  4784. "/api/integration": {
  4785. "get": {
  4786. "tags": ["integration"],
  4787. "operationId": "v2.integration.list",
  4788. "parameters": [
  4789. {
  4790. "name": "location",
  4791. "in": "query",
  4792. "schema": {
  4793. "anyOf": [
  4794. {
  4795. "type": "object",
  4796. "properties": {
  4797. "directory": {
  4798. "anyOf": [
  4799. {
  4800. "type": "string"
  4801. },
  4802. {
  4803. "type": "null"
  4804. }
  4805. ]
  4806. },
  4807. "workspace": {
  4808. "anyOf": [
  4809. {
  4810. "type": "string"
  4811. },
  4812. {
  4813. "type": "null"
  4814. }
  4815. ]
  4816. }
  4817. },
  4818. "additionalProperties": false
  4819. },
  4820. {
  4821. "type": "null"
  4822. }
  4823. ]
  4824. },
  4825. "required": false,
  4826. "style": "deepObject",
  4827. "explode": true
  4828. }
  4829. ],
  4830. "security": [],
  4831. "responses": {
  4832. "200": {
  4833. "description": "Success",
  4834. "content": {
  4835. "application/json": {
  4836. "schema": {
  4837. "type": "object",
  4838. "properties": {
  4839. "location": {
  4840. "$ref": "#/components/schemas/Location.Info"
  4841. },
  4842. "data": {
  4843. "type": "array",
  4844. "items": {
  4845. "$ref": "#/components/schemas/Integration.Info"
  4846. }
  4847. }
  4848. },
  4849. "required": ["location", "data"],
  4850. "additionalProperties": false
  4851. }
  4852. }
  4853. }
  4854. },
  4855. "400": {
  4856. "description": "InvalidRequestError",
  4857. "content": {
  4858. "application/json": {
  4859. "schema": {
  4860. "$ref": "#/components/schemas/InvalidRequestError"
  4861. }
  4862. }
  4863. }
  4864. },
  4865. "401": {
  4866. "description": "UnauthorizedError",
  4867. "content": {
  4868. "application/json": {
  4869. "schema": {
  4870. "$ref": "#/components/schemas/UnauthorizedError"
  4871. }
  4872. }
  4873. }
  4874. }
  4875. },
  4876. "description": "Retrieve available integrations and their authentication methods.",
  4877. "summary": "List integrations"
  4878. }
  4879. },
  4880. "/api/integration/{integrationID}": {
  4881. "get": {
  4882. "tags": ["integration"],
  4883. "operationId": "v2.integration.get",
  4884. "parameters": [
  4885. {
  4886. "name": "integrationID",
  4887. "in": "path",
  4888. "schema": {
  4889. "type": "string"
  4890. },
  4891. "required": true
  4892. },
  4893. {
  4894. "name": "location",
  4895. "in": "query",
  4896. "schema": {
  4897. "anyOf": [
  4898. {
  4899. "type": "object",
  4900. "properties": {
  4901. "directory": {
  4902. "anyOf": [
  4903. {
  4904. "type": "string"
  4905. },
  4906. {
  4907. "type": "null"
  4908. }
  4909. ]
  4910. },
  4911. "workspace": {
  4912. "anyOf": [
  4913. {
  4914. "type": "string"
  4915. },
  4916. {
  4917. "type": "null"
  4918. }
  4919. ]
  4920. }
  4921. },
  4922. "additionalProperties": false
  4923. },
  4924. {
  4925. "type": "null"
  4926. }
  4927. ]
  4928. },
  4929. "required": false,
  4930. "style": "deepObject",
  4931. "explode": true
  4932. }
  4933. ],
  4934. "security": [],
  4935. "responses": {
  4936. "200": {
  4937. "description": "Success",
  4938. "content": {
  4939. "application/json": {
  4940. "schema": {
  4941. "type": "object",
  4942. "properties": {
  4943. "location": {
  4944. "$ref": "#/components/schemas/Location.Info"
  4945. },
  4946. "data": {
  4947. "anyOf": [
  4948. {
  4949. "$ref": "#/components/schemas/Integration.Info"
  4950. },
  4951. {
  4952. "type": "null"
  4953. }
  4954. ]
  4955. }
  4956. },
  4957. "required": ["location", "data"],
  4958. "additionalProperties": false
  4959. }
  4960. }
  4961. }
  4962. },
  4963. "400": {
  4964. "description": "InvalidRequestError",
  4965. "content": {
  4966. "application/json": {
  4967. "schema": {
  4968. "$ref": "#/components/schemas/InvalidRequestError"
  4969. }
  4970. }
  4971. }
  4972. },
  4973. "401": {
  4974. "description": "UnauthorizedError",
  4975. "content": {
  4976. "application/json": {
  4977. "schema": {
  4978. "$ref": "#/components/schemas/UnauthorizedError"
  4979. }
  4980. }
  4981. }
  4982. }
  4983. },
  4984. "description": "Retrieve one integration and its authentication methods.",
  4985. "summary": "Get integration"
  4986. }
  4987. },
  4988. "/api/experimental/integration/wellknown": {
  4989. "post": {
  4990. "tags": ["integration"],
  4991. "operationId": "v2.experimental.integration.wellknown.add",
  4992. "parameters": [
  4993. {
  4994. "name": "location",
  4995. "in": "query",
  4996. "schema": {
  4997. "anyOf": [
  4998. {
  4999. "type": "object",
  5000. "properties": {
  5001. "directory": {
  5002. "anyOf": [
  5003. {
  5004. "type": "string"
  5005. },
  5006. {
  5007. "type": "null"
  5008. }
  5009. ]
  5010. },
  5011. "workspace": {
  5012. "anyOf": [
  5013. {
  5014. "type": "string"
  5015. },
  5016. {
  5017. "type": "null"
  5018. }
  5019. ]
  5020. }
  5021. },
  5022. "additionalProperties": false
  5023. },
  5024. {
  5025. "type": "null"
  5026. }
  5027. ]
  5028. },
  5029. "required": false,
  5030. "style": "deepObject",
  5031. "explode": true
  5032. }
  5033. ],
  5034. "security": [],
  5035. "responses": {
  5036. "204": {
  5037. "description": "<No Content>"
  5038. },
  5039. "400": {
  5040. "description": "InvalidRequestError",
  5041. "content": {
  5042. "application/json": {
  5043. "schema": {
  5044. "anyOf": [
  5045. {
  5046. "$ref": "#/components/schemas/InvalidRequestError1"
  5047. },
  5048. {
  5049. "$ref": "#/components/schemas/InvalidRequestError"
  5050. }
  5051. ]
  5052. }
  5053. }
  5054. }
  5055. },
  5056. "401": {
  5057. "description": "UnauthorizedError",
  5058. "content": {
  5059. "application/json": {
  5060. "schema": {
  5061. "$ref": "#/components/schemas/UnauthorizedError"
  5062. }
  5063. }
  5064. }
  5065. }
  5066. },
  5067. "description": "Discover and persist an experimental wellknown integration source.",
  5068. "summary": "Add wellknown integration",
  5069. "requestBody": {
  5070. "content": {
  5071. "application/json": {
  5072. "schema": {
  5073. "type": "object",
  5074. "properties": {
  5075. "url": {
  5076. "type": "string"
  5077. }
  5078. },
  5079. "required": ["url"],
  5080. "additionalProperties": false
  5081. }
  5082. }
  5083. },
  5084. "required": true
  5085. }
  5086. }
  5087. },
  5088. "/api/integration/{integrationID}/connect/key": {
  5089. "post": {
  5090. "tags": ["integration"],
  5091. "operationId": "v2.integration.connect.key",
  5092. "parameters": [
  5093. {
  5094. "name": "integrationID",
  5095. "in": "path",
  5096. "schema": {
  5097. "type": "string"
  5098. },
  5099. "required": true
  5100. },
  5101. {
  5102. "name": "location",
  5103. "in": "query",
  5104. "schema": {
  5105. "anyOf": [
  5106. {
  5107. "type": "object",
  5108. "properties": {
  5109. "directory": {
  5110. "anyOf": [
  5111. {
  5112. "type": "string"
  5113. },
  5114. {
  5115. "type": "null"
  5116. }
  5117. ]
  5118. },
  5119. "workspace": {
  5120. "anyOf": [
  5121. {
  5122. "type": "string"
  5123. },
  5124. {
  5125. "type": "null"
  5126. }
  5127. ]
  5128. }
  5129. },
  5130. "additionalProperties": false
  5131. },
  5132. {
  5133. "type": "null"
  5134. }
  5135. ]
  5136. },
  5137. "required": false,
  5138. "style": "deepObject",
  5139. "explode": true
  5140. }
  5141. ],
  5142. "security": [],
  5143. "responses": {
  5144. "204": {
  5145. "description": "<No Content>"
  5146. },
  5147. "400": {
  5148. "description": "InvalidRequestError",
  5149. "content": {
  5150. "application/json": {
  5151. "schema": {
  5152. "anyOf": [
  5153. {
  5154. "$ref": "#/components/schemas/InvalidRequestError1"
  5155. },
  5156. {
  5157. "$ref": "#/components/schemas/InvalidRequestError"
  5158. }
  5159. ]
  5160. }
  5161. }
  5162. }
  5163. },
  5164. "401": {
  5165. "description": "UnauthorizedError",
  5166. "content": {
  5167. "application/json": {
  5168. "schema": {
  5169. "$ref": "#/components/schemas/UnauthorizedError"
  5170. }
  5171. }
  5172. }
  5173. }
  5174. },
  5175. "description": "Run a key authentication method and store the resulting credential.",
  5176. "summary": "Connect with key",
  5177. "requestBody": {
  5178. "content": {
  5179. "application/json": {
  5180. "schema": {
  5181. "type": "object",
  5182. "properties": {
  5183. "key": {
  5184. "type": "string"
  5185. },
  5186. "answer": {
  5187. "anyOf": [
  5188. {
  5189. "$ref": "#/components/schemas/Form.Answer"
  5190. },
  5191. {
  5192. "type": "null"
  5193. }
  5194. ]
  5195. },
  5196. "label": {
  5197. "anyOf": [
  5198. {
  5199. "type": "string"
  5200. },
  5201. {
  5202. "type": "null"
  5203. }
  5204. ]
  5205. }
  5206. },
  5207. "required": ["key"],
  5208. "additionalProperties": false
  5209. }
  5210. }
  5211. },
  5212. "required": true
  5213. }
  5214. }
  5215. },
  5216. "/api/integration/{integrationID}/connect/oauth": {
  5217. "post": {
  5218. "tags": ["integration"],
  5219. "operationId": "v2.integration.oauth.connect",
  5220. "parameters": [
  5221. {
  5222. "name": "integrationID",
  5223. "in": "path",
  5224. "schema": {
  5225. "type": "string"
  5226. },
  5227. "required": true
  5228. },
  5229. {
  5230. "name": "location",
  5231. "in": "query",
  5232. "schema": {
  5233. "anyOf": [
  5234. {
  5235. "type": "object",
  5236. "properties": {
  5237. "directory": {
  5238. "anyOf": [
  5239. {
  5240. "type": "string"
  5241. },
  5242. {
  5243. "type": "null"
  5244. }
  5245. ]
  5246. },
  5247. "workspace": {
  5248. "anyOf": [
  5249. {
  5250. "type": "string"
  5251. },
  5252. {
  5253. "type": "null"
  5254. }
  5255. ]
  5256. }
  5257. },
  5258. "additionalProperties": false
  5259. },
  5260. {
  5261. "type": "null"
  5262. }
  5263. ]
  5264. },
  5265. "required": false,
  5266. "style": "deepObject",
  5267. "explode": true
  5268. }
  5269. ],
  5270. "security": [],
  5271. "responses": {
  5272. "200": {
  5273. "description": "Success",
  5274. "content": {
  5275. "application/json": {
  5276. "schema": {
  5277. "type": "object",
  5278. "properties": {
  5279. "location": {
  5280. "$ref": "#/components/schemas/Location.Info"
  5281. },
  5282. "data": {
  5283. "$ref": "#/components/schemas/Integration.Attempt"
  5284. }
  5285. },
  5286. "required": ["location", "data"],
  5287. "additionalProperties": false
  5288. }
  5289. }
  5290. }
  5291. },
  5292. "400": {
  5293. "description": "InvalidRequestError",
  5294. "content": {
  5295. "application/json": {
  5296. "schema": {
  5297. "anyOf": [
  5298. {
  5299. "$ref": "#/components/schemas/InvalidRequestError1"
  5300. },
  5301. {
  5302. "$ref": "#/components/schemas/InvalidRequestError"
  5303. }
  5304. ]
  5305. }
  5306. }
  5307. }
  5308. },
  5309. "401": {
  5310. "description": "UnauthorizedError",
  5311. "content": {
  5312. "application/json": {
  5313. "schema": {
  5314. "$ref": "#/components/schemas/UnauthorizedError"
  5315. }
  5316. }
  5317. }
  5318. }
  5319. },
  5320. "description": "Start an OAuth attempt and return the authorization details.",
  5321. "summary": "Begin OAuth connection",
  5322. "requestBody": {
  5323. "content": {
  5324. "application/json": {
  5325. "schema": {
  5326. "type": "object",
  5327. "properties": {
  5328. "methodID": {
  5329. "type": "string"
  5330. },
  5331. "answer": {
  5332. "anyOf": [
  5333. {
  5334. "$ref": "#/components/schemas/Form.Answer"
  5335. },
  5336. {
  5337. "type": "null"
  5338. }
  5339. ]
  5340. },
  5341. "label": {
  5342. "anyOf": [
  5343. {
  5344. "type": "string"
  5345. },
  5346. {
  5347. "type": "null"
  5348. }
  5349. ]
  5350. }
  5351. },
  5352. "required": ["methodID"],
  5353. "additionalProperties": false
  5354. }
  5355. }
  5356. },
  5357. "required": true
  5358. }
  5359. }
  5360. },
  5361. "/api/integration/{integrationID}/connect/oauth/{attemptID}": {
  5362. "get": {
  5363. "tags": ["integration"],
  5364. "operationId": "v2.integration.oauth.status",
  5365. "parameters": [
  5366. {
  5367. "name": "integrationID",
  5368. "in": "path",
  5369. "schema": {
  5370. "type": "string"
  5371. },
  5372. "required": true
  5373. },
  5374. {
  5375. "name": "attemptID",
  5376. "in": "path",
  5377. "schema": {
  5378. "type": "string"
  5379. },
  5380. "required": true
  5381. },
  5382. {
  5383. "name": "location",
  5384. "in": "query",
  5385. "schema": {
  5386. "anyOf": [
  5387. {
  5388. "type": "object",
  5389. "properties": {
  5390. "directory": {
  5391. "anyOf": [
  5392. {
  5393. "type": "string"
  5394. },
  5395. {
  5396. "type": "null"
  5397. }
  5398. ]
  5399. },
  5400. "workspace": {
  5401. "anyOf": [
  5402. {
  5403. "type": "string"
  5404. },
  5405. {
  5406. "type": "null"
  5407. }
  5408. ]
  5409. }
  5410. },
  5411. "additionalProperties": false
  5412. },
  5413. {
  5414. "type": "null"
  5415. }
  5416. ]
  5417. },
  5418. "required": false,
  5419. "style": "deepObject",
  5420. "explode": true
  5421. }
  5422. ],
  5423. "security": [],
  5424. "responses": {
  5425. "200": {
  5426. "description": "Success",
  5427. "content": {
  5428. "application/json": {
  5429. "schema": {
  5430. "type": "object",
  5431. "properties": {
  5432. "location": {
  5433. "$ref": "#/components/schemas/Location.Info"
  5434. },
  5435. "data": {
  5436. "$ref": "#/components/schemas/Integration.AttemptStatus"
  5437. }
  5438. },
  5439. "required": ["location", "data"],
  5440. "additionalProperties": false
  5441. }
  5442. }
  5443. }
  5444. },
  5445. "400": {
  5446. "description": "InvalidRequestError",
  5447. "content": {
  5448. "application/json": {
  5449. "schema": {
  5450. "$ref": "#/components/schemas/InvalidRequestError"
  5451. }
  5452. }
  5453. }
  5454. },
  5455. "401": {
  5456. "description": "UnauthorizedError",
  5457. "content": {
  5458. "application/json": {
  5459. "schema": {
  5460. "$ref": "#/components/schemas/UnauthorizedError"
  5461. }
  5462. }
  5463. }
  5464. }
  5465. },
  5466. "description": "Poll the current status of an OAuth attempt.",
  5467. "summary": "Get OAuth attempt status"
  5468. },
  5469. "delete": {
  5470. "tags": ["integration"],
  5471. "operationId": "v2.integration.oauth.cancel",
  5472. "parameters": [
  5473. {
  5474. "name": "integrationID",
  5475. "in": "path",
  5476. "schema": {
  5477. "type": "string"
  5478. },
  5479. "required": true
  5480. },
  5481. {
  5482. "name": "attemptID",
  5483. "in": "path",
  5484. "schema": {
  5485. "type": "string"
  5486. },
  5487. "required": true
  5488. },
  5489. {
  5490. "name": "location",
  5491. "in": "query",
  5492. "schema": {
  5493. "anyOf": [
  5494. {
  5495. "type": "object",
  5496. "properties": {
  5497. "directory": {
  5498. "anyOf": [
  5499. {
  5500. "type": "string"
  5501. },
  5502. {
  5503. "type": "null"
  5504. }
  5505. ]
  5506. },
  5507. "workspace": {
  5508. "anyOf": [
  5509. {
  5510. "type": "string"
  5511. },
  5512. {
  5513. "type": "null"
  5514. }
  5515. ]
  5516. }
  5517. },
  5518. "additionalProperties": false
  5519. },
  5520. {
  5521. "type": "null"
  5522. }
  5523. ]
  5524. },
  5525. "required": false,
  5526. "style": "deepObject",
  5527. "explode": true
  5528. }
  5529. ],
  5530. "security": [],
  5531. "responses": {
  5532. "204": {
  5533. "description": "<No Content>"
  5534. },
  5535. "400": {
  5536. "description": "InvalidRequestError",
  5537. "content": {
  5538. "application/json": {
  5539. "schema": {
  5540. "$ref": "#/components/schemas/InvalidRequestError"
  5541. }
  5542. }
  5543. }
  5544. },
  5545. "401": {
  5546. "description": "UnauthorizedError",
  5547. "content": {
  5548. "application/json": {
  5549. "schema": {
  5550. "$ref": "#/components/schemas/UnauthorizedError"
  5551. }
  5552. }
  5553. }
  5554. }
  5555. },
  5556. "description": "Cancel an OAuth attempt and release its resources.",
  5557. "summary": "Cancel OAuth connection"
  5558. }
  5559. },
  5560. "/api/integration/{integrationID}/connect/oauth/{attemptID}/complete": {
  5561. "post": {
  5562. "tags": ["integration"],
  5563. "operationId": "v2.integration.oauth.complete",
  5564. "parameters": [
  5565. {
  5566. "name": "integrationID",
  5567. "in": "path",
  5568. "schema": {
  5569. "type": "string"
  5570. },
  5571. "required": true
  5572. },
  5573. {
  5574. "name": "attemptID",
  5575. "in": "path",
  5576. "schema": {
  5577. "type": "string"
  5578. },
  5579. "required": true
  5580. },
  5581. {
  5582. "name": "location",
  5583. "in": "query",
  5584. "schema": {
  5585. "anyOf": [
  5586. {
  5587. "type": "object",
  5588. "properties": {
  5589. "directory": {
  5590. "anyOf": [
  5591. {
  5592. "type": "string"
  5593. },
  5594. {
  5595. "type": "null"
  5596. }
  5597. ]
  5598. },
  5599. "workspace": {
  5600. "anyOf": [
  5601. {
  5602. "type": "string"
  5603. },
  5604. {
  5605. "type": "null"
  5606. }
  5607. ]
  5608. }
  5609. },
  5610. "additionalProperties": false
  5611. },
  5612. {
  5613. "type": "null"
  5614. }
  5615. ]
  5616. },
  5617. "required": false,
  5618. "style": "deepObject",
  5619. "explode": true
  5620. }
  5621. ],
  5622. "security": [],
  5623. "responses": {
  5624. "204": {
  5625. "description": "<No Content>"
  5626. },
  5627. "400": {
  5628. "description": "InvalidRequestError",
  5629. "content": {
  5630. "application/json": {
  5631. "schema": {
  5632. "anyOf": [
  5633. {
  5634. "$ref": "#/components/schemas/InvalidRequestError1"
  5635. },
  5636. {
  5637. "$ref": "#/components/schemas/InvalidRequestError"
  5638. }
  5639. ]
  5640. }
  5641. }
  5642. }
  5643. },
  5644. "401": {
  5645. "description": "UnauthorizedError",
  5646. "content": {
  5647. "application/json": {
  5648. "schema": {
  5649. "$ref": "#/components/schemas/UnauthorizedError"
  5650. }
  5651. }
  5652. }
  5653. }
  5654. },
  5655. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  5656. "summary": "Complete OAuth connection",
  5657. "requestBody": {
  5658. "content": {
  5659. "application/json": {
  5660. "schema": {
  5661. "type": "object",
  5662. "properties": {
  5663. "code": {
  5664. "anyOf": [
  5665. {
  5666. "type": "string"
  5667. },
  5668. {
  5669. "type": "null"
  5670. }
  5671. ]
  5672. }
  5673. },
  5674. "additionalProperties": false
  5675. }
  5676. }
  5677. },
  5678. "required": true
  5679. }
  5680. }
  5681. },
  5682. "/api/integration/{integrationID}/connect/command": {
  5683. "post": {
  5684. "tags": ["integration"],
  5685. "operationId": "v2.integration.command.connect",
  5686. "parameters": [
  5687. {
  5688. "name": "integrationID",
  5689. "in": "path",
  5690. "schema": {
  5691. "type": "string"
  5692. },
  5693. "required": true
  5694. },
  5695. {
  5696. "name": "location",
  5697. "in": "query",
  5698. "schema": {
  5699. "anyOf": [
  5700. {
  5701. "type": "object",
  5702. "properties": {
  5703. "directory": {
  5704. "anyOf": [
  5705. {
  5706. "type": "string"
  5707. },
  5708. {
  5709. "type": "null"
  5710. }
  5711. ]
  5712. },
  5713. "workspace": {
  5714. "anyOf": [
  5715. {
  5716. "type": "string"
  5717. },
  5718. {
  5719. "type": "null"
  5720. }
  5721. ]
  5722. }
  5723. },
  5724. "additionalProperties": false
  5725. },
  5726. {
  5727. "type": "null"
  5728. }
  5729. ]
  5730. },
  5731. "required": false,
  5732. "style": "deepObject",
  5733. "explode": true
  5734. }
  5735. ],
  5736. "security": [],
  5737. "responses": {
  5738. "200": {
  5739. "description": "Success",
  5740. "content": {
  5741. "application/json": {
  5742. "schema": {
  5743. "type": "object",
  5744. "properties": {
  5745. "location": {
  5746. "$ref": "#/components/schemas/Location.Info"
  5747. },
  5748. "data": {
  5749. "$ref": "#/components/schemas/Integration.CommandAttempt"
  5750. }
  5751. },
  5752. "required": ["location", "data"],
  5753. "additionalProperties": false
  5754. }
  5755. }
  5756. }
  5757. },
  5758. "400": {
  5759. "description": "InvalidRequestError",
  5760. "content": {
  5761. "application/json": {
  5762. "schema": {
  5763. "anyOf": [
  5764. {
  5765. "$ref": "#/components/schemas/InvalidRequestError1"
  5766. },
  5767. {
  5768. "$ref": "#/components/schemas/InvalidRequestError"
  5769. }
  5770. ]
  5771. }
  5772. }
  5773. }
  5774. },
  5775. "401": {
  5776. "description": "UnauthorizedError",
  5777. "content": {
  5778. "application/json": {
  5779. "schema": {
  5780. "$ref": "#/components/schemas/UnauthorizedError"
  5781. }
  5782. }
  5783. }
  5784. }
  5785. },
  5786. "description": "Start a command authentication attempt.",
  5787. "summary": "Begin command connection",
  5788. "requestBody": {
  5789. "content": {
  5790. "application/json": {
  5791. "schema": {
  5792. "type": "object",
  5793. "properties": {
  5794. "methodID": {
  5795. "type": "string"
  5796. },
  5797. "label": {
  5798. "anyOf": [
  5799. {
  5800. "type": "string"
  5801. },
  5802. {
  5803. "type": "null"
  5804. }
  5805. ]
  5806. }
  5807. },
  5808. "required": ["methodID"],
  5809. "additionalProperties": false
  5810. }
  5811. }
  5812. },
  5813. "required": true
  5814. }
  5815. }
  5816. },
  5817. "/api/integration/{integrationID}/connect/command/{attemptID}": {
  5818. "get": {
  5819. "tags": ["integration"],
  5820. "operationId": "v2.integration.command.status",
  5821. "parameters": [
  5822. {
  5823. "name": "integrationID",
  5824. "in": "path",
  5825. "schema": {
  5826. "type": "string"
  5827. },
  5828. "required": true
  5829. },
  5830. {
  5831. "name": "attemptID",
  5832. "in": "path",
  5833. "schema": {
  5834. "type": "string"
  5835. },
  5836. "required": true
  5837. },
  5838. {
  5839. "name": "location",
  5840. "in": "query",
  5841. "schema": {
  5842. "anyOf": [
  5843. {
  5844. "type": "object",
  5845. "properties": {
  5846. "directory": {
  5847. "anyOf": [
  5848. {
  5849. "type": "string"
  5850. },
  5851. {
  5852. "type": "null"
  5853. }
  5854. ]
  5855. },
  5856. "workspace": {
  5857. "anyOf": [
  5858. {
  5859. "type": "string"
  5860. },
  5861. {
  5862. "type": "null"
  5863. }
  5864. ]
  5865. }
  5866. },
  5867. "additionalProperties": false
  5868. },
  5869. {
  5870. "type": "null"
  5871. }
  5872. ]
  5873. },
  5874. "required": false,
  5875. "style": "deepObject",
  5876. "explode": true
  5877. }
  5878. ],
  5879. "security": [],
  5880. "responses": {
  5881. "200": {
  5882. "description": "Success",
  5883. "content": {
  5884. "application/json": {
  5885. "schema": {
  5886. "type": "object",
  5887. "properties": {
  5888. "location": {
  5889. "$ref": "#/components/schemas/Location.Info"
  5890. },
  5891. "data": {
  5892. "$ref": "#/components/schemas/Integration.CommandAttemptStatus"
  5893. }
  5894. },
  5895. "required": ["location", "data"],
  5896. "additionalProperties": false
  5897. }
  5898. }
  5899. }
  5900. },
  5901. "400": {
  5902. "description": "InvalidRequestError",
  5903. "content": {
  5904. "application/json": {
  5905. "schema": {
  5906. "$ref": "#/components/schemas/InvalidRequestError"
  5907. }
  5908. }
  5909. }
  5910. },
  5911. "401": {
  5912. "description": "UnauthorizedError",
  5913. "content": {
  5914. "application/json": {
  5915. "schema": {
  5916. "$ref": "#/components/schemas/UnauthorizedError"
  5917. }
  5918. }
  5919. }
  5920. }
  5921. },
  5922. "description": "Poll the current status and output of a command authentication attempt.",
  5923. "summary": "Get command attempt status"
  5924. },
  5925. "delete": {
  5926. "tags": ["integration"],
  5927. "operationId": "v2.integration.command.cancel",
  5928. "parameters": [
  5929. {
  5930. "name": "integrationID",
  5931. "in": "path",
  5932. "schema": {
  5933. "type": "string"
  5934. },
  5935. "required": true
  5936. },
  5937. {
  5938. "name": "attemptID",
  5939. "in": "path",
  5940. "schema": {
  5941. "type": "string"
  5942. },
  5943. "required": true
  5944. },
  5945. {
  5946. "name": "location",
  5947. "in": "query",
  5948. "schema": {
  5949. "anyOf": [
  5950. {
  5951. "type": "object",
  5952. "properties": {
  5953. "directory": {
  5954. "anyOf": [
  5955. {
  5956. "type": "string"
  5957. },
  5958. {
  5959. "type": "null"
  5960. }
  5961. ]
  5962. },
  5963. "workspace": {
  5964. "anyOf": [
  5965. {
  5966. "type": "string"
  5967. },
  5968. {
  5969. "type": "null"
  5970. }
  5971. ]
  5972. }
  5973. },
  5974. "additionalProperties": false
  5975. },
  5976. {
  5977. "type": "null"
  5978. }
  5979. ]
  5980. },
  5981. "required": false,
  5982. "style": "deepObject",
  5983. "explode": true
  5984. }
  5985. ],
  5986. "security": [],
  5987. "responses": {
  5988. "204": {
  5989. "description": "<No Content>"
  5990. },
  5991. "400": {
  5992. "description": "InvalidRequestError",
  5993. "content": {
  5994. "application/json": {
  5995. "schema": {
  5996. "$ref": "#/components/schemas/InvalidRequestError"
  5997. }
  5998. }
  5999. }
  6000. },
  6001. "401": {
  6002. "description": "UnauthorizedError",
  6003. "content": {
  6004. "application/json": {
  6005. "schema": {
  6006. "$ref": "#/components/schemas/UnauthorizedError"
  6007. }
  6008. }
  6009. }
  6010. }
  6011. },
  6012. "description": "Cancel a command authentication attempt and terminate its process.",
  6013. "summary": "Cancel command connection"
  6014. }
  6015. },
  6016. "/api/mcp": {
  6017. "get": {
  6018. "tags": ["mcp"],
  6019. "operationId": "v2.mcp.list",
  6020. "parameters": [
  6021. {
  6022. "name": "location",
  6023. "in": "query",
  6024. "schema": {
  6025. "anyOf": [
  6026. {
  6027. "type": "object",
  6028. "properties": {
  6029. "directory": {
  6030. "anyOf": [
  6031. {
  6032. "type": "string"
  6033. },
  6034. {
  6035. "type": "null"
  6036. }
  6037. ]
  6038. },
  6039. "workspace": {
  6040. "anyOf": [
  6041. {
  6042. "type": "string"
  6043. },
  6044. {
  6045. "type": "null"
  6046. }
  6047. ]
  6048. }
  6049. },
  6050. "additionalProperties": false
  6051. },
  6052. {
  6053. "type": "null"
  6054. }
  6055. ]
  6056. },
  6057. "required": false,
  6058. "style": "deepObject",
  6059. "explode": true
  6060. }
  6061. ],
  6062. "security": [],
  6063. "responses": {
  6064. "200": {
  6065. "description": "Success",
  6066. "content": {
  6067. "application/json": {
  6068. "schema": {
  6069. "type": "object",
  6070. "properties": {
  6071. "location": {
  6072. "$ref": "#/components/schemas/Location.Info"
  6073. },
  6074. "data": {
  6075. "type": "array",
  6076. "items": {
  6077. "$ref": "#/components/schemas/Mcp.Server"
  6078. }
  6079. }
  6080. },
  6081. "required": ["location", "data"],
  6082. "additionalProperties": false
  6083. }
  6084. }
  6085. }
  6086. },
  6087. "400": {
  6088. "description": "InvalidRequestError",
  6089. "content": {
  6090. "application/json": {
  6091. "schema": {
  6092. "$ref": "#/components/schemas/InvalidRequestError"
  6093. }
  6094. }
  6095. }
  6096. },
  6097. "401": {
  6098. "description": "UnauthorizedError",
  6099. "content": {
  6100. "application/json": {
  6101. "schema": {
  6102. "$ref": "#/components/schemas/UnauthorizedError"
  6103. }
  6104. }
  6105. }
  6106. }
  6107. },
  6108. "description": "Retrieve configured MCP servers and their connection status.",
  6109. "summary": "List MCP servers"
  6110. }
  6111. },
  6112. "/api/mcp/{server}": {
  6113. "put": {
  6114. "tags": ["mcp"],
  6115. "operationId": "v2.mcp.add",
  6116. "parameters": [
  6117. {
  6118. "name": "server",
  6119. "in": "path",
  6120. "schema": {
  6121. "type": "string"
  6122. },
  6123. "required": true
  6124. },
  6125. {
  6126. "name": "location",
  6127. "in": "query",
  6128. "schema": {
  6129. "anyOf": [
  6130. {
  6131. "type": "object",
  6132. "properties": {
  6133. "directory": {
  6134. "anyOf": [
  6135. {
  6136. "type": "string"
  6137. },
  6138. {
  6139. "type": "null"
  6140. }
  6141. ]
  6142. },
  6143. "workspace": {
  6144. "anyOf": [
  6145. {
  6146. "type": "string"
  6147. },
  6148. {
  6149. "type": "null"
  6150. }
  6151. ]
  6152. }
  6153. },
  6154. "additionalProperties": false
  6155. },
  6156. {
  6157. "type": "null"
  6158. }
  6159. ]
  6160. },
  6161. "required": false,
  6162. "style": "deepObject",
  6163. "explode": true
  6164. }
  6165. ],
  6166. "security": [],
  6167. "responses": {
  6168. "204": {
  6169. "description": "<No Content>"
  6170. },
  6171. "400": {
  6172. "description": "InvalidRequestError",
  6173. "content": {
  6174. "application/json": {
  6175. "schema": {
  6176. "$ref": "#/components/schemas/InvalidRequestError"
  6177. }
  6178. }
  6179. }
  6180. },
  6181. "401": {
  6182. "description": "UnauthorizedError",
  6183. "content": {
  6184. "application/json": {
  6185. "schema": {
  6186. "$ref": "#/components/schemas/UnauthorizedError"
  6187. }
  6188. }
  6189. }
  6190. }
  6191. },
  6192. "description": "Add an MCP server at runtime or replace an existing one, connecting it immediately.",
  6193. "summary": "Add MCP server",
  6194. "requestBody": {
  6195. "content": {
  6196. "application/json": {
  6197. "schema": {
  6198. "type": "object",
  6199. "properties": {
  6200. "config": {
  6201. "anyOf": [
  6202. {
  6203. "$ref": "#/components/schemas/Mcp.LocalConfig"
  6204. },
  6205. {
  6206. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  6207. }
  6208. ]
  6209. }
  6210. },
  6211. "required": ["config"],
  6212. "additionalProperties": false
  6213. }
  6214. }
  6215. },
  6216. "required": true
  6217. }
  6218. },
  6219. "delete": {
  6220. "tags": ["mcp"],
  6221. "operationId": "v2.mcp.remove",
  6222. "parameters": [
  6223. {
  6224. "name": "server",
  6225. "in": "path",
  6226. "schema": {
  6227. "type": "string"
  6228. },
  6229. "required": true
  6230. },
  6231. {
  6232. "name": "location",
  6233. "in": "query",
  6234. "schema": {
  6235. "anyOf": [
  6236. {
  6237. "type": "object",
  6238. "properties": {
  6239. "directory": {
  6240. "anyOf": [
  6241. {
  6242. "type": "string"
  6243. },
  6244. {
  6245. "type": "null"
  6246. }
  6247. ]
  6248. },
  6249. "workspace": {
  6250. "anyOf": [
  6251. {
  6252. "type": "string"
  6253. },
  6254. {
  6255. "type": "null"
  6256. }
  6257. ]
  6258. }
  6259. },
  6260. "additionalProperties": false
  6261. },
  6262. {
  6263. "type": "null"
  6264. }
  6265. ]
  6266. },
  6267. "required": false,
  6268. "style": "deepObject",
  6269. "explode": true
  6270. }
  6271. ],
  6272. "security": [],
  6273. "responses": {
  6274. "204": {
  6275. "description": "<No Content>"
  6276. },
  6277. "400": {
  6278. "description": "InvalidRequestError",
  6279. "content": {
  6280. "application/json": {
  6281. "schema": {
  6282. "$ref": "#/components/schemas/InvalidRequestError"
  6283. }
  6284. }
  6285. }
  6286. },
  6287. "401": {
  6288. "description": "UnauthorizedError",
  6289. "content": {
  6290. "application/json": {
  6291. "schema": {
  6292. "$ref": "#/components/schemas/UnauthorizedError"
  6293. }
  6294. }
  6295. }
  6296. },
  6297. "404": {
  6298. "description": "McpServerNotFoundError",
  6299. "content": {
  6300. "application/json": {
  6301. "schema": {
  6302. "$ref": "#/components/schemas/McpServerNotFoundError"
  6303. }
  6304. }
  6305. }
  6306. }
  6307. },
  6308. "description": "Stop an MCP server and remove it from the runtime set until restart.",
  6309. "summary": "Remove MCP server"
  6310. }
  6311. },
  6312. "/api/mcp/{server}/connect": {
  6313. "post": {
  6314. "tags": ["mcp"],
  6315. "operationId": "v2.mcp.connect",
  6316. "parameters": [
  6317. {
  6318. "name": "server",
  6319. "in": "path",
  6320. "schema": {
  6321. "type": "string"
  6322. },
  6323. "required": true
  6324. },
  6325. {
  6326. "name": "location",
  6327. "in": "query",
  6328. "schema": {
  6329. "anyOf": [
  6330. {
  6331. "type": "object",
  6332. "properties": {
  6333. "directory": {
  6334. "anyOf": [
  6335. {
  6336. "type": "string"
  6337. },
  6338. {
  6339. "type": "null"
  6340. }
  6341. ]
  6342. },
  6343. "workspace": {
  6344. "anyOf": [
  6345. {
  6346. "type": "string"
  6347. },
  6348. {
  6349. "type": "null"
  6350. }
  6351. ]
  6352. }
  6353. },
  6354. "additionalProperties": false
  6355. },
  6356. {
  6357. "type": "null"
  6358. }
  6359. ]
  6360. },
  6361. "required": false,
  6362. "style": "deepObject",
  6363. "explode": true
  6364. }
  6365. ],
  6366. "security": [],
  6367. "responses": {
  6368. "204": {
  6369. "description": "<No Content>"
  6370. },
  6371. "400": {
  6372. "description": "InvalidRequestError",
  6373. "content": {
  6374. "application/json": {
  6375. "schema": {
  6376. "$ref": "#/components/schemas/InvalidRequestError"
  6377. }
  6378. }
  6379. }
  6380. },
  6381. "401": {
  6382. "description": "UnauthorizedError",
  6383. "content": {
  6384. "application/json": {
  6385. "schema": {
  6386. "$ref": "#/components/schemas/UnauthorizedError"
  6387. }
  6388. }
  6389. }
  6390. },
  6391. "404": {
  6392. "description": "McpServerNotFoundError",
  6393. "content": {
  6394. "application/json": {
  6395. "schema": {
  6396. "$ref": "#/components/schemas/McpServerNotFoundError"
  6397. }
  6398. }
  6399. }
  6400. }
  6401. },
  6402. "description": "Connect an MCP server at runtime, overriding a disabled configuration until restart.",
  6403. "summary": "Connect MCP server"
  6404. }
  6405. },
  6406. "/api/mcp/{server}/disconnect": {
  6407. "post": {
  6408. "tags": ["mcp"],
  6409. "operationId": "v2.mcp.disconnect",
  6410. "parameters": [
  6411. {
  6412. "name": "server",
  6413. "in": "path",
  6414. "schema": {
  6415. "type": "string"
  6416. },
  6417. "required": true
  6418. },
  6419. {
  6420. "name": "location",
  6421. "in": "query",
  6422. "schema": {
  6423. "anyOf": [
  6424. {
  6425. "type": "object",
  6426. "properties": {
  6427. "directory": {
  6428. "anyOf": [
  6429. {
  6430. "type": "string"
  6431. },
  6432. {
  6433. "type": "null"
  6434. }
  6435. ]
  6436. },
  6437. "workspace": {
  6438. "anyOf": [
  6439. {
  6440. "type": "string"
  6441. },
  6442. {
  6443. "type": "null"
  6444. }
  6445. ]
  6446. }
  6447. },
  6448. "additionalProperties": false
  6449. },
  6450. {
  6451. "type": "null"
  6452. }
  6453. ]
  6454. },
  6455. "required": false,
  6456. "style": "deepObject",
  6457. "explode": true
  6458. }
  6459. ],
  6460. "security": [],
  6461. "responses": {
  6462. "204": {
  6463. "description": "<No Content>"
  6464. },
  6465. "400": {
  6466. "description": "InvalidRequestError",
  6467. "content": {
  6468. "application/json": {
  6469. "schema": {
  6470. "$ref": "#/components/schemas/InvalidRequestError"
  6471. }
  6472. }
  6473. }
  6474. },
  6475. "401": {
  6476. "description": "UnauthorizedError",
  6477. "content": {
  6478. "application/json": {
  6479. "schema": {
  6480. "$ref": "#/components/schemas/UnauthorizedError"
  6481. }
  6482. }
  6483. }
  6484. },
  6485. "404": {
  6486. "description": "McpServerNotFoundError",
  6487. "content": {
  6488. "application/json": {
  6489. "schema": {
  6490. "$ref": "#/components/schemas/McpServerNotFoundError"
  6491. }
  6492. }
  6493. }
  6494. }
  6495. },
  6496. "description": "Disconnect an MCP server at runtime, removing its tools until reconnected.",
  6497. "summary": "Disconnect MCP server"
  6498. }
  6499. },
  6500. "/api/mcp/resource": {
  6501. "get": {
  6502. "tags": ["mcp"],
  6503. "operationId": "v2.mcp.resource.catalog",
  6504. "parameters": [
  6505. {
  6506. "name": "location",
  6507. "in": "query",
  6508. "schema": {
  6509. "anyOf": [
  6510. {
  6511. "type": "object",
  6512. "properties": {
  6513. "directory": {
  6514. "anyOf": [
  6515. {
  6516. "type": "string"
  6517. },
  6518. {
  6519. "type": "null"
  6520. }
  6521. ]
  6522. },
  6523. "workspace": {
  6524. "anyOf": [
  6525. {
  6526. "type": "string"
  6527. },
  6528. {
  6529. "type": "null"
  6530. }
  6531. ]
  6532. }
  6533. },
  6534. "additionalProperties": false
  6535. },
  6536. {
  6537. "type": "null"
  6538. }
  6539. ]
  6540. },
  6541. "required": false,
  6542. "style": "deepObject",
  6543. "explode": true
  6544. }
  6545. ],
  6546. "security": [],
  6547. "responses": {
  6548. "200": {
  6549. "description": "Success",
  6550. "content": {
  6551. "application/json": {
  6552. "schema": {
  6553. "type": "object",
  6554. "properties": {
  6555. "location": {
  6556. "$ref": "#/components/schemas/Location.Info"
  6557. },
  6558. "data": {
  6559. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  6560. }
  6561. },
  6562. "required": ["location", "data"],
  6563. "additionalProperties": false
  6564. }
  6565. }
  6566. }
  6567. },
  6568. "400": {
  6569. "description": "InvalidRequestError",
  6570. "content": {
  6571. "application/json": {
  6572. "schema": {
  6573. "$ref": "#/components/schemas/InvalidRequestError"
  6574. }
  6575. }
  6576. }
  6577. },
  6578. "401": {
  6579. "description": "UnauthorizedError",
  6580. "content": {
  6581. "application/json": {
  6582. "schema": {
  6583. "$ref": "#/components/schemas/UnauthorizedError"
  6584. }
  6585. }
  6586. }
  6587. }
  6588. },
  6589. "description": "Retrieve resources and resource templates from connected MCP servers.",
  6590. "summary": "List MCP resources"
  6591. }
  6592. },
  6593. "/api/credential/{credentialID}": {
  6594. "patch": {
  6595. "tags": ["credential"],
  6596. "operationId": "v2.credential.update",
  6597. "parameters": [
  6598. {
  6599. "name": "credentialID",
  6600. "in": "path",
  6601. "schema": {
  6602. "type": "string"
  6603. },
  6604. "required": true
  6605. },
  6606. {
  6607. "name": "location",
  6608. "in": "query",
  6609. "schema": {
  6610. "anyOf": [
  6611. {
  6612. "type": "object",
  6613. "properties": {
  6614. "directory": {
  6615. "anyOf": [
  6616. {
  6617. "type": "string"
  6618. },
  6619. {
  6620. "type": "null"
  6621. }
  6622. ]
  6623. },
  6624. "workspace": {
  6625. "anyOf": [
  6626. {
  6627. "type": "string"
  6628. },
  6629. {
  6630. "type": "null"
  6631. }
  6632. ]
  6633. }
  6634. },
  6635. "additionalProperties": false
  6636. },
  6637. {
  6638. "type": "null"
  6639. }
  6640. ]
  6641. },
  6642. "required": false,
  6643. "style": "deepObject",
  6644. "explode": true
  6645. }
  6646. ],
  6647. "security": [],
  6648. "responses": {
  6649. "204": {
  6650. "description": "<No Content>"
  6651. },
  6652. "400": {
  6653. "description": "InvalidRequestError",
  6654. "content": {
  6655. "application/json": {
  6656. "schema": {
  6657. "$ref": "#/components/schemas/InvalidRequestError"
  6658. }
  6659. }
  6660. }
  6661. },
  6662. "401": {
  6663. "description": "UnauthorizedError",
  6664. "content": {
  6665. "application/json": {
  6666. "schema": {
  6667. "$ref": "#/components/schemas/UnauthorizedError"
  6668. }
  6669. }
  6670. }
  6671. }
  6672. },
  6673. "description": "Update a stored credential label.",
  6674. "summary": "Update credential",
  6675. "requestBody": {
  6676. "content": {
  6677. "application/json": {
  6678. "schema": {
  6679. "type": "object",
  6680. "properties": {
  6681. "label": {
  6682. "type": "string"
  6683. }
  6684. },
  6685. "required": ["label"],
  6686. "additionalProperties": false
  6687. }
  6688. }
  6689. },
  6690. "required": true
  6691. }
  6692. },
  6693. "delete": {
  6694. "tags": ["credential"],
  6695. "operationId": "v2.credential.remove",
  6696. "parameters": [
  6697. {
  6698. "name": "credentialID",
  6699. "in": "path",
  6700. "schema": {
  6701. "type": "string"
  6702. },
  6703. "required": true
  6704. },
  6705. {
  6706. "name": "location",
  6707. "in": "query",
  6708. "schema": {
  6709. "anyOf": [
  6710. {
  6711. "type": "object",
  6712. "properties": {
  6713. "directory": {
  6714. "anyOf": [
  6715. {
  6716. "type": "string"
  6717. },
  6718. {
  6719. "type": "null"
  6720. }
  6721. ]
  6722. },
  6723. "workspace": {
  6724. "anyOf": [
  6725. {
  6726. "type": "string"
  6727. },
  6728. {
  6729. "type": "null"
  6730. }
  6731. ]
  6732. }
  6733. },
  6734. "additionalProperties": false
  6735. },
  6736. {
  6737. "type": "null"
  6738. }
  6739. ]
  6740. },
  6741. "required": false,
  6742. "style": "deepObject",
  6743. "explode": true
  6744. }
  6745. ],
  6746. "security": [],
  6747. "responses": {
  6748. "204": {
  6749. "description": "<No Content>"
  6750. },
  6751. "400": {
  6752. "description": "InvalidRequestError",
  6753. "content": {
  6754. "application/json": {
  6755. "schema": {
  6756. "$ref": "#/components/schemas/InvalidRequestError"
  6757. }
  6758. }
  6759. }
  6760. },
  6761. "401": {
  6762. "description": "UnauthorizedError",
  6763. "content": {
  6764. "application/json": {
  6765. "schema": {
  6766. "$ref": "#/components/schemas/UnauthorizedError"
  6767. }
  6768. }
  6769. }
  6770. }
  6771. },
  6772. "description": "Remove a stored integration credential.",
  6773. "summary": "Remove credential"
  6774. }
  6775. },
  6776. "/api/project": {
  6777. "get": {
  6778. "tags": ["project"],
  6779. "operationId": "v2.project.list",
  6780. "parameters": [],
  6781. "security": [],
  6782. "responses": {
  6783. "200": {
  6784. "description": "Success",
  6785. "content": {
  6786. "application/json": {
  6787. "schema": {
  6788. "type": "array",
  6789. "items": {
  6790. "$ref": "#/components/schemas/Project"
  6791. }
  6792. }
  6793. }
  6794. }
  6795. },
  6796. "400": {
  6797. "description": "InvalidRequestError",
  6798. "content": {
  6799. "application/json": {
  6800. "schema": {
  6801. "$ref": "#/components/schemas/InvalidRequestError"
  6802. }
  6803. }
  6804. }
  6805. },
  6806. "401": {
  6807. "description": "UnauthorizedError",
  6808. "content": {
  6809. "application/json": {
  6810. "schema": {
  6811. "$ref": "#/components/schemas/UnauthorizedError"
  6812. }
  6813. }
  6814. }
  6815. }
  6816. },
  6817. "description": "List known projects.",
  6818. "summary": "List projects"
  6819. }
  6820. },
  6821. "/api/project/current": {
  6822. "get": {
  6823. "tags": ["project"],
  6824. "operationId": "v2.project.current",
  6825. "parameters": [
  6826. {
  6827. "name": "location",
  6828. "in": "query",
  6829. "schema": {
  6830. "anyOf": [
  6831. {
  6832. "type": "object",
  6833. "properties": {
  6834. "directory": {
  6835. "anyOf": [
  6836. {
  6837. "type": "string"
  6838. },
  6839. {
  6840. "type": "null"
  6841. }
  6842. ]
  6843. },
  6844. "workspace": {
  6845. "anyOf": [
  6846. {
  6847. "type": "string"
  6848. },
  6849. {
  6850. "type": "null"
  6851. }
  6852. ]
  6853. }
  6854. },
  6855. "additionalProperties": false
  6856. },
  6857. {
  6858. "type": "null"
  6859. }
  6860. ]
  6861. },
  6862. "required": false,
  6863. "style": "deepObject",
  6864. "explode": true
  6865. }
  6866. ],
  6867. "security": [],
  6868. "responses": {
  6869. "200": {
  6870. "description": "Project.Current",
  6871. "content": {
  6872. "application/json": {
  6873. "schema": {
  6874. "$ref": "#/components/schemas/Project.Current"
  6875. }
  6876. }
  6877. }
  6878. },
  6879. "400": {
  6880. "description": "InvalidRequestError",
  6881. "content": {
  6882. "application/json": {
  6883. "schema": {
  6884. "$ref": "#/components/schemas/InvalidRequestError"
  6885. }
  6886. }
  6887. }
  6888. },
  6889. "401": {
  6890. "description": "UnauthorizedError",
  6891. "content": {
  6892. "application/json": {
  6893. "schema": {
  6894. "$ref": "#/components/schemas/UnauthorizedError"
  6895. }
  6896. }
  6897. }
  6898. }
  6899. },
  6900. "description": "Resolve the project for the requested location.",
  6901. "summary": "Get current project"
  6902. }
  6903. },
  6904. "/api/project/{projectID}/directories": {
  6905. "get": {
  6906. "tags": ["project"],
  6907. "operationId": "v2.project.directories",
  6908. "parameters": [
  6909. {
  6910. "name": "projectID",
  6911. "in": "path",
  6912. "schema": {
  6913. "type": "string"
  6914. },
  6915. "required": true
  6916. },
  6917. {
  6918. "name": "location",
  6919. "in": "query",
  6920. "schema": {
  6921. "anyOf": [
  6922. {
  6923. "type": "object",
  6924. "properties": {
  6925. "directory": {
  6926. "anyOf": [
  6927. {
  6928. "type": "string"
  6929. },
  6930. {
  6931. "type": "null"
  6932. }
  6933. ]
  6934. },
  6935. "workspace": {
  6936. "anyOf": [
  6937. {
  6938. "type": "string"
  6939. },
  6940. {
  6941. "type": "null"
  6942. }
  6943. ]
  6944. }
  6945. },
  6946. "additionalProperties": false
  6947. },
  6948. {
  6949. "type": "null"
  6950. }
  6951. ]
  6952. },
  6953. "required": false,
  6954. "style": "deepObject",
  6955. "explode": true
  6956. }
  6957. ],
  6958. "security": [],
  6959. "responses": {
  6960. "200": {
  6961. "description": "Project.Directories",
  6962. "content": {
  6963. "application/json": {
  6964. "schema": {
  6965. "$ref": "#/components/schemas/Project.Directories"
  6966. }
  6967. }
  6968. }
  6969. },
  6970. "400": {
  6971. "description": "InvalidRequestError",
  6972. "content": {
  6973. "application/json": {
  6974. "schema": {
  6975. "$ref": "#/components/schemas/InvalidRequestError"
  6976. }
  6977. }
  6978. }
  6979. },
  6980. "401": {
  6981. "description": "UnauthorizedError",
  6982. "content": {
  6983. "application/json": {
  6984. "schema": {
  6985. "$ref": "#/components/schemas/UnauthorizedError"
  6986. }
  6987. }
  6988. }
  6989. }
  6990. },
  6991. "description": "List known local absolute directories for a project.",
  6992. "summary": "List project directories"
  6993. }
  6994. },
  6995. "/api/form/request": {
  6996. "get": {
  6997. "tags": ["form"],
  6998. "operationId": "v2.form.request.list",
  6999. "parameters": [
  7000. {
  7001. "name": "location",
  7002. "in": "query",
  7003. "schema": {
  7004. "anyOf": [
  7005. {
  7006. "type": "object",
  7007. "properties": {
  7008. "directory": {
  7009. "anyOf": [
  7010. {
  7011. "type": "string"
  7012. },
  7013. {
  7014. "type": "null"
  7015. }
  7016. ]
  7017. },
  7018. "workspace": {
  7019. "anyOf": [
  7020. {
  7021. "type": "string"
  7022. },
  7023. {
  7024. "type": "null"
  7025. }
  7026. ]
  7027. }
  7028. },
  7029. "additionalProperties": false
  7030. },
  7031. {
  7032. "type": "null"
  7033. }
  7034. ]
  7035. },
  7036. "required": false,
  7037. "style": "deepObject",
  7038. "explode": true
  7039. }
  7040. ],
  7041. "security": [],
  7042. "responses": {
  7043. "200": {
  7044. "description": "Success",
  7045. "content": {
  7046. "application/json": {
  7047. "schema": {
  7048. "type": "object",
  7049. "properties": {
  7050. "location": {
  7051. "$ref": "#/components/schemas/Location.Info"
  7052. },
  7053. "data": {
  7054. "type": "array",
  7055. "items": {
  7056. "$ref": "#/components/schemas/Form.Info"
  7057. }
  7058. }
  7059. },
  7060. "required": ["location", "data"],
  7061. "additionalProperties": false
  7062. }
  7063. }
  7064. }
  7065. },
  7066. "400": {
  7067. "description": "InvalidRequestError",
  7068. "content": {
  7069. "application/json": {
  7070. "schema": {
  7071. "$ref": "#/components/schemas/InvalidRequestError"
  7072. }
  7073. }
  7074. }
  7075. },
  7076. "401": {
  7077. "description": "UnauthorizedError",
  7078. "content": {
  7079. "application/json": {
  7080. "schema": {
  7081. "$ref": "#/components/schemas/UnauthorizedError"
  7082. }
  7083. }
  7084. }
  7085. }
  7086. },
  7087. "description": "Retrieve pending forms for a location.",
  7088. "summary": "List pending form requests"
  7089. }
  7090. },
  7091. "/api/session/{sessionID}/form": {
  7092. "get": {
  7093. "tags": ["form"],
  7094. "operationId": "v2.session.form.list",
  7095. "parameters": [
  7096. {
  7097. "name": "sessionID",
  7098. "in": "path",
  7099. "schema": {
  7100. "type": "string"
  7101. },
  7102. "required": true
  7103. }
  7104. ],
  7105. "security": [],
  7106. "responses": {
  7107. "200": {
  7108. "description": "Success",
  7109. "content": {
  7110. "application/json": {
  7111. "schema": {
  7112. "type": "object",
  7113. "properties": {
  7114. "data": {
  7115. "type": "array",
  7116. "items": {
  7117. "$ref": "#/components/schemas/Form.Info"
  7118. }
  7119. }
  7120. },
  7121. "required": ["data"],
  7122. "additionalProperties": false
  7123. }
  7124. }
  7125. }
  7126. },
  7127. "400": {
  7128. "description": "InvalidRequestError",
  7129. "content": {
  7130. "application/json": {
  7131. "schema": {
  7132. "$ref": "#/components/schemas/InvalidRequestError"
  7133. }
  7134. }
  7135. }
  7136. },
  7137. "401": {
  7138. "description": "UnauthorizedError",
  7139. "content": {
  7140. "application/json": {
  7141. "schema": {
  7142. "$ref": "#/components/schemas/UnauthorizedError"
  7143. }
  7144. }
  7145. }
  7146. },
  7147. "404": {
  7148. "description": "SessionNotFoundError",
  7149. "content": {
  7150. "application/json": {
  7151. "schema": {
  7152. "anyOf": [
  7153. {
  7154. "$ref": "#/components/schemas/SessionNotFoundError"
  7155. },
  7156. {
  7157. "$ref": "#/components/schemas/SessionNotFoundError"
  7158. }
  7159. ]
  7160. }
  7161. }
  7162. }
  7163. }
  7164. },
  7165. "description": "Retrieve pending forms for a session.",
  7166. "summary": "List session forms"
  7167. },
  7168. "post": {
  7169. "tags": ["form"],
  7170. "operationId": "v2.session.form.create",
  7171. "parameters": [
  7172. {
  7173. "name": "sessionID",
  7174. "in": "path",
  7175. "schema": {
  7176. "type": "string"
  7177. },
  7178. "required": true
  7179. }
  7180. ],
  7181. "security": [],
  7182. "responses": {
  7183. "200": {
  7184. "description": "Success",
  7185. "content": {
  7186. "application/json": {
  7187. "schema": {
  7188. "type": "object",
  7189. "properties": {
  7190. "data": {
  7191. "$ref": "#/components/schemas/Form.Info"
  7192. }
  7193. },
  7194. "required": ["data"],
  7195. "additionalProperties": false
  7196. }
  7197. }
  7198. }
  7199. },
  7200. "400": {
  7201. "description": "InvalidRequestError",
  7202. "content": {
  7203. "application/json": {
  7204. "schema": {
  7205. "anyOf": [
  7206. {
  7207. "$ref": "#/components/schemas/InvalidRequestError1"
  7208. },
  7209. {
  7210. "$ref": "#/components/schemas/InvalidRequestError"
  7211. }
  7212. ]
  7213. }
  7214. }
  7215. }
  7216. },
  7217. "401": {
  7218. "description": "UnauthorizedError",
  7219. "content": {
  7220. "application/json": {
  7221. "schema": {
  7222. "$ref": "#/components/schemas/UnauthorizedError"
  7223. }
  7224. }
  7225. }
  7226. },
  7227. "404": {
  7228. "description": "SessionNotFoundError",
  7229. "content": {
  7230. "application/json": {
  7231. "schema": {
  7232. "anyOf": [
  7233. {
  7234. "$ref": "#/components/schemas/SessionNotFoundError"
  7235. },
  7236. {
  7237. "$ref": "#/components/schemas/SessionNotFoundError"
  7238. }
  7239. ]
  7240. }
  7241. }
  7242. }
  7243. },
  7244. "409": {
  7245. "description": "ConflictError",
  7246. "content": {
  7247. "application/json": {
  7248. "schema": {
  7249. "$ref": "#/components/schemas/ConflictError"
  7250. }
  7251. }
  7252. }
  7253. }
  7254. },
  7255. "description": "Create a form for a session.",
  7256. "summary": "Create session form",
  7257. "requestBody": {
  7258. "content": {
  7259. "application/json": {
  7260. "schema": {
  7261. "$ref": "#/components/schemas/Form.CreatePayload"
  7262. }
  7263. }
  7264. },
  7265. "required": true
  7266. }
  7267. }
  7268. },
  7269. "/api/session/{sessionID}/form/{formID}": {
  7270. "get": {
  7271. "tags": ["form"],
  7272. "operationId": "v2.session.form.get",
  7273. "parameters": [
  7274. {
  7275. "name": "sessionID",
  7276. "in": "path",
  7277. "schema": {
  7278. "type": "string"
  7279. },
  7280. "required": true
  7281. },
  7282. {
  7283. "name": "formID",
  7284. "in": "path",
  7285. "schema": {
  7286. "type": "string",
  7287. "allOf": [
  7288. {
  7289. "pattern": "^frm_"
  7290. }
  7291. ]
  7292. },
  7293. "required": true
  7294. }
  7295. ],
  7296. "security": [],
  7297. "responses": {
  7298. "200": {
  7299. "description": "Success",
  7300. "content": {
  7301. "application/json": {
  7302. "schema": {
  7303. "type": "object",
  7304. "properties": {
  7305. "data": {
  7306. "$ref": "#/components/schemas/Form.Info"
  7307. }
  7308. },
  7309. "required": ["data"],
  7310. "additionalProperties": false
  7311. }
  7312. }
  7313. }
  7314. },
  7315. "400": {
  7316. "description": "InvalidRequestError",
  7317. "content": {
  7318. "application/json": {
  7319. "schema": {
  7320. "$ref": "#/components/schemas/InvalidRequestError"
  7321. }
  7322. }
  7323. }
  7324. },
  7325. "401": {
  7326. "description": "UnauthorizedError",
  7327. "content": {
  7328. "application/json": {
  7329. "schema": {
  7330. "$ref": "#/components/schemas/UnauthorizedError"
  7331. }
  7332. }
  7333. }
  7334. },
  7335. "404": {
  7336. "description": "SessionNotFoundError | FormNotFoundError",
  7337. "content": {
  7338. "application/json": {
  7339. "schema": {
  7340. "anyOf": [
  7341. {
  7342. "$ref": "#/components/schemas/FormNotFoundError"
  7343. },
  7344. {
  7345. "$ref": "#/components/schemas/SessionNotFoundError"
  7346. },
  7347. {
  7348. "$ref": "#/components/schemas/SessionNotFoundError"
  7349. }
  7350. ]
  7351. }
  7352. }
  7353. }
  7354. }
  7355. },
  7356. "description": "Retrieve a form for a session.",
  7357. "summary": "Get session form"
  7358. }
  7359. },
  7360. "/api/session/{sessionID}/form/{formID}/state": {
  7361. "get": {
  7362. "tags": ["form"],
  7363. "operationId": "v2.session.form.state",
  7364. "parameters": [
  7365. {
  7366. "name": "sessionID",
  7367. "in": "path",
  7368. "schema": {
  7369. "type": "string"
  7370. },
  7371. "required": true
  7372. },
  7373. {
  7374. "name": "formID",
  7375. "in": "path",
  7376. "schema": {
  7377. "type": "string",
  7378. "allOf": [
  7379. {
  7380. "pattern": "^frm_"
  7381. }
  7382. ]
  7383. },
  7384. "required": true
  7385. }
  7386. ],
  7387. "security": [],
  7388. "responses": {
  7389. "200": {
  7390. "description": "Success",
  7391. "content": {
  7392. "application/json": {
  7393. "schema": {
  7394. "type": "object",
  7395. "properties": {
  7396. "data": {
  7397. "$ref": "#/components/schemas/Form.State"
  7398. }
  7399. },
  7400. "required": ["data"],
  7401. "additionalProperties": false
  7402. }
  7403. }
  7404. }
  7405. },
  7406. "400": {
  7407. "description": "InvalidRequestError",
  7408. "content": {
  7409. "application/json": {
  7410. "schema": {
  7411. "$ref": "#/components/schemas/InvalidRequestError"
  7412. }
  7413. }
  7414. }
  7415. },
  7416. "401": {
  7417. "description": "UnauthorizedError",
  7418. "content": {
  7419. "application/json": {
  7420. "schema": {
  7421. "$ref": "#/components/schemas/UnauthorizedError"
  7422. }
  7423. }
  7424. }
  7425. },
  7426. "404": {
  7427. "description": "SessionNotFoundError | FormNotFoundError",
  7428. "content": {
  7429. "application/json": {
  7430. "schema": {
  7431. "anyOf": [
  7432. {
  7433. "$ref": "#/components/schemas/FormNotFoundError"
  7434. },
  7435. {
  7436. "$ref": "#/components/schemas/SessionNotFoundError"
  7437. },
  7438. {
  7439. "$ref": "#/components/schemas/SessionNotFoundError"
  7440. }
  7441. ]
  7442. }
  7443. }
  7444. }
  7445. }
  7446. },
  7447. "description": "Retrieve the current state for a form.",
  7448. "summary": "Get form state"
  7449. }
  7450. },
  7451. "/api/session/{sessionID}/form/{formID}/reply": {
  7452. "post": {
  7453. "tags": ["form"],
  7454. "operationId": "v2.session.form.reply",
  7455. "parameters": [
  7456. {
  7457. "name": "sessionID",
  7458. "in": "path",
  7459. "schema": {
  7460. "type": "string"
  7461. },
  7462. "required": true
  7463. },
  7464. {
  7465. "name": "formID",
  7466. "in": "path",
  7467. "schema": {
  7468. "type": "string",
  7469. "allOf": [
  7470. {
  7471. "pattern": "^frm_"
  7472. }
  7473. ]
  7474. },
  7475. "required": true
  7476. }
  7477. ],
  7478. "security": [],
  7479. "responses": {
  7480. "204": {
  7481. "description": "<No Content>"
  7482. },
  7483. "400": {
  7484. "description": "FormInvalidAnswerError | InvalidRequestError",
  7485. "content": {
  7486. "application/json": {
  7487. "schema": {
  7488. "anyOf": [
  7489. {
  7490. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7491. },
  7492. {
  7493. "$ref": "#/components/schemas/InvalidRequestError"
  7494. }
  7495. ]
  7496. }
  7497. }
  7498. }
  7499. },
  7500. "401": {
  7501. "description": "UnauthorizedError",
  7502. "content": {
  7503. "application/json": {
  7504. "schema": {
  7505. "$ref": "#/components/schemas/UnauthorizedError"
  7506. }
  7507. }
  7508. }
  7509. },
  7510. "404": {
  7511. "description": "SessionNotFoundError | FormNotFoundError",
  7512. "content": {
  7513. "application/json": {
  7514. "schema": {
  7515. "anyOf": [
  7516. {
  7517. "$ref": "#/components/schemas/FormNotFoundError"
  7518. },
  7519. {
  7520. "$ref": "#/components/schemas/SessionNotFoundError"
  7521. },
  7522. {
  7523. "$ref": "#/components/schemas/SessionNotFoundError"
  7524. }
  7525. ]
  7526. }
  7527. }
  7528. }
  7529. },
  7530. "409": {
  7531. "description": "FormAlreadySettledError",
  7532. "content": {
  7533. "application/json": {
  7534. "schema": {
  7535. "$ref": "#/components/schemas/FormAlreadySettledError"
  7536. }
  7537. }
  7538. }
  7539. }
  7540. },
  7541. "description": "Submit an answer to a pending form.",
  7542. "summary": "Reply to form",
  7543. "requestBody": {
  7544. "content": {
  7545. "application/json": {
  7546. "schema": {
  7547. "$ref": "#/components/schemas/Form.Reply"
  7548. }
  7549. }
  7550. },
  7551. "required": true
  7552. }
  7553. }
  7554. },
  7555. "/api/session/{sessionID}/form/{formID}/cancel": {
  7556. "post": {
  7557. "tags": ["form"],
  7558. "operationId": "v2.session.form.cancel",
  7559. "parameters": [
  7560. {
  7561. "name": "sessionID",
  7562. "in": "path",
  7563. "schema": {
  7564. "type": "string"
  7565. },
  7566. "required": true
  7567. },
  7568. {
  7569. "name": "formID",
  7570. "in": "path",
  7571. "schema": {
  7572. "type": "string",
  7573. "allOf": [
  7574. {
  7575. "pattern": "^frm_"
  7576. }
  7577. ]
  7578. },
  7579. "required": true
  7580. }
  7581. ],
  7582. "security": [],
  7583. "responses": {
  7584. "204": {
  7585. "description": "<No Content>"
  7586. },
  7587. "400": {
  7588. "description": "InvalidRequestError",
  7589. "content": {
  7590. "application/json": {
  7591. "schema": {
  7592. "$ref": "#/components/schemas/InvalidRequestError"
  7593. }
  7594. }
  7595. }
  7596. },
  7597. "401": {
  7598. "description": "UnauthorizedError",
  7599. "content": {
  7600. "application/json": {
  7601. "schema": {
  7602. "$ref": "#/components/schemas/UnauthorizedError"
  7603. }
  7604. }
  7605. }
  7606. },
  7607. "404": {
  7608. "description": "SessionNotFoundError | FormNotFoundError",
  7609. "content": {
  7610. "application/json": {
  7611. "schema": {
  7612. "anyOf": [
  7613. {
  7614. "$ref": "#/components/schemas/FormNotFoundError"
  7615. },
  7616. {
  7617. "$ref": "#/components/schemas/SessionNotFoundError"
  7618. },
  7619. {
  7620. "$ref": "#/components/schemas/SessionNotFoundError"
  7621. }
  7622. ]
  7623. }
  7624. }
  7625. }
  7626. },
  7627. "409": {
  7628. "description": "FormAlreadySettledError",
  7629. "content": {
  7630. "application/json": {
  7631. "schema": {
  7632. "$ref": "#/components/schemas/FormAlreadySettledError"
  7633. }
  7634. }
  7635. }
  7636. }
  7637. },
  7638. "description": "Cancel a pending form.",
  7639. "summary": "Cancel form"
  7640. }
  7641. },
  7642. "/api/permission/request": {
  7643. "get": {
  7644. "tags": ["permission"],
  7645. "operationId": "v2.permission.request.list",
  7646. "parameters": [
  7647. {
  7648. "name": "location",
  7649. "in": "query",
  7650. "schema": {
  7651. "anyOf": [
  7652. {
  7653. "type": "object",
  7654. "properties": {
  7655. "directory": {
  7656. "anyOf": [
  7657. {
  7658. "type": "string"
  7659. },
  7660. {
  7661. "type": "null"
  7662. }
  7663. ]
  7664. },
  7665. "workspace": {
  7666. "anyOf": [
  7667. {
  7668. "type": "string"
  7669. },
  7670. {
  7671. "type": "null"
  7672. }
  7673. ]
  7674. }
  7675. },
  7676. "additionalProperties": false
  7677. },
  7678. {
  7679. "type": "null"
  7680. }
  7681. ]
  7682. },
  7683. "required": false,
  7684. "style": "deepObject",
  7685. "explode": true
  7686. }
  7687. ],
  7688. "security": [],
  7689. "responses": {
  7690. "200": {
  7691. "description": "Success",
  7692. "content": {
  7693. "application/json": {
  7694. "schema": {
  7695. "type": "object",
  7696. "properties": {
  7697. "location": {
  7698. "$ref": "#/components/schemas/Location.Info"
  7699. },
  7700. "data": {
  7701. "type": "array",
  7702. "items": {
  7703. "$ref": "#/components/schemas/Permission.Request"
  7704. }
  7705. }
  7706. },
  7707. "required": ["location", "data"],
  7708. "additionalProperties": false
  7709. }
  7710. }
  7711. }
  7712. },
  7713. "400": {
  7714. "description": "InvalidRequestError",
  7715. "content": {
  7716. "application/json": {
  7717. "schema": {
  7718. "$ref": "#/components/schemas/InvalidRequestError"
  7719. }
  7720. }
  7721. }
  7722. },
  7723. "401": {
  7724. "description": "UnauthorizedError",
  7725. "content": {
  7726. "application/json": {
  7727. "schema": {
  7728. "$ref": "#/components/schemas/UnauthorizedError"
  7729. }
  7730. }
  7731. }
  7732. }
  7733. },
  7734. "description": "Retrieve pending permission requests for a location.",
  7735. "summary": "List pending permission requests"
  7736. }
  7737. },
  7738. "/api/permission/saved": {
  7739. "get": {
  7740. "tags": ["permission"],
  7741. "operationId": "v2.permission.saved.list",
  7742. "parameters": [
  7743. {
  7744. "name": "projectID",
  7745. "in": "query",
  7746. "schema": {
  7747. "anyOf": [
  7748. {
  7749. "type": "string"
  7750. },
  7751. {
  7752. "type": "null"
  7753. }
  7754. ]
  7755. },
  7756. "required": false
  7757. }
  7758. ],
  7759. "security": [],
  7760. "responses": {
  7761. "200": {
  7762. "description": "Success",
  7763. "content": {
  7764. "application/json": {
  7765. "schema": {
  7766. "type": "object",
  7767. "properties": {
  7768. "data": {
  7769. "type": "array",
  7770. "items": {
  7771. "$ref": "#/components/schemas/PermissionSaved.Info"
  7772. }
  7773. }
  7774. },
  7775. "required": ["data"],
  7776. "additionalProperties": false
  7777. }
  7778. }
  7779. }
  7780. },
  7781. "400": {
  7782. "description": "InvalidRequestError",
  7783. "content": {
  7784. "application/json": {
  7785. "schema": {
  7786. "$ref": "#/components/schemas/InvalidRequestError"
  7787. }
  7788. }
  7789. }
  7790. },
  7791. "401": {
  7792. "description": "UnauthorizedError",
  7793. "content": {
  7794. "application/json": {
  7795. "schema": {
  7796. "$ref": "#/components/schemas/UnauthorizedError"
  7797. }
  7798. }
  7799. }
  7800. }
  7801. },
  7802. "description": "Retrieve saved permissions, optionally filtered by project.",
  7803. "summary": "List saved permissions"
  7804. }
  7805. },
  7806. "/api/permission/saved/{id}": {
  7807. "delete": {
  7808. "tags": ["permission"],
  7809. "operationId": "v2.permission.saved.remove",
  7810. "parameters": [
  7811. {
  7812. "name": "id",
  7813. "in": "path",
  7814. "schema": {
  7815. "type": "string"
  7816. },
  7817. "required": true
  7818. }
  7819. ],
  7820. "security": [],
  7821. "responses": {
  7822. "204": {
  7823. "description": "<No Content>"
  7824. },
  7825. "400": {
  7826. "description": "InvalidRequestError",
  7827. "content": {
  7828. "application/json": {
  7829. "schema": {
  7830. "$ref": "#/components/schemas/InvalidRequestError"
  7831. }
  7832. }
  7833. }
  7834. },
  7835. "401": {
  7836. "description": "UnauthorizedError",
  7837. "content": {
  7838. "application/json": {
  7839. "schema": {
  7840. "$ref": "#/components/schemas/UnauthorizedError"
  7841. }
  7842. }
  7843. }
  7844. }
  7845. },
  7846. "description": "Remove a saved permission by ID.",
  7847. "summary": "Remove saved permission"
  7848. }
  7849. },
  7850. "/api/session/{sessionID}/permission": {
  7851. "post": {
  7852. "tags": ["permission"],
  7853. "operationId": "v2.session.permission.create",
  7854. "parameters": [
  7855. {
  7856. "name": "sessionID",
  7857. "in": "path",
  7858. "schema": {
  7859. "type": "string",
  7860. "allOf": [
  7861. {
  7862. "pattern": "^ses"
  7863. }
  7864. ]
  7865. },
  7866. "required": true
  7867. }
  7868. ],
  7869. "security": [],
  7870. "responses": {
  7871. "200": {
  7872. "description": "Success",
  7873. "content": {
  7874. "application/json": {
  7875. "schema": {
  7876. "type": "object",
  7877. "properties": {
  7878. "data": {
  7879. "type": "object",
  7880. "properties": {
  7881. "id": {
  7882. "type": "string",
  7883. "allOf": [
  7884. {
  7885. "pattern": "^per"
  7886. }
  7887. ]
  7888. },
  7889. "effect": {
  7890. "$ref": "#/components/schemas/Permission.Effect"
  7891. }
  7892. },
  7893. "required": ["id", "effect"],
  7894. "additionalProperties": false
  7895. }
  7896. },
  7897. "required": ["data"],
  7898. "additionalProperties": false
  7899. }
  7900. }
  7901. }
  7902. },
  7903. "400": {
  7904. "description": "InvalidRequestError",
  7905. "content": {
  7906. "application/json": {
  7907. "schema": {
  7908. "$ref": "#/components/schemas/InvalidRequestError"
  7909. }
  7910. }
  7911. }
  7912. },
  7913. "401": {
  7914. "description": "UnauthorizedError",
  7915. "content": {
  7916. "application/json": {
  7917. "schema": {
  7918. "$ref": "#/components/schemas/UnauthorizedError"
  7919. }
  7920. }
  7921. }
  7922. },
  7923. "404": {
  7924. "description": "SessionNotFoundError",
  7925. "content": {
  7926. "application/json": {
  7927. "schema": {
  7928. "anyOf": [
  7929. {
  7930. "$ref": "#/components/schemas/SessionNotFoundError"
  7931. },
  7932. {
  7933. "$ref": "#/components/schemas/SessionNotFoundError"
  7934. }
  7935. ]
  7936. }
  7937. }
  7938. }
  7939. }
  7940. },
  7941. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7942. "summary": "Create permission request",
  7943. "requestBody": {
  7944. "content": {
  7945. "application/json": {
  7946. "schema": {
  7947. "type": "object",
  7948. "properties": {
  7949. "id": {
  7950. "anyOf": [
  7951. {
  7952. "type": "string",
  7953. "allOf": [
  7954. {
  7955. "pattern": "^per"
  7956. }
  7957. ]
  7958. },
  7959. {
  7960. "type": "null"
  7961. }
  7962. ]
  7963. },
  7964. "action": {
  7965. "type": "string"
  7966. },
  7967. "resources": {
  7968. "type": "array",
  7969. "items": {
  7970. "type": "string"
  7971. }
  7972. },
  7973. "save": {
  7974. "type": "array",
  7975. "items": {
  7976. "type": "string"
  7977. }
  7978. },
  7979. "metadata": {
  7980. "type": "object"
  7981. },
  7982. "source": {
  7983. "$ref": "#/components/schemas/Permission.Source"
  7984. },
  7985. "agent": {
  7986. "anyOf": [
  7987. {
  7988. "type": "string"
  7989. },
  7990. {
  7991. "type": "null"
  7992. }
  7993. ]
  7994. }
  7995. },
  7996. "required": ["action", "resources"],
  7997. "additionalProperties": false
  7998. }
  7999. }
  8000. },
  8001. "required": true
  8002. }
  8003. },
  8004. "get": {
  8005. "tags": ["permission"],
  8006. "operationId": "v2.session.permission.list",
  8007. "parameters": [
  8008. {
  8009. "name": "sessionID",
  8010. "in": "path",
  8011. "schema": {
  8012. "type": "string",
  8013. "allOf": [
  8014. {
  8015. "pattern": "^ses"
  8016. }
  8017. ]
  8018. },
  8019. "required": true
  8020. }
  8021. ],
  8022. "security": [],
  8023. "responses": {
  8024. "200": {
  8025. "description": "Success",
  8026. "content": {
  8027. "application/json": {
  8028. "schema": {
  8029. "type": "object",
  8030. "properties": {
  8031. "data": {
  8032. "type": "array",
  8033. "items": {
  8034. "$ref": "#/components/schemas/Permission.Request"
  8035. }
  8036. }
  8037. },
  8038. "required": ["data"],
  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",
  8066. "content": {
  8067. "application/json": {
  8068. "schema": {
  8069. "anyOf": [
  8070. {
  8071. "$ref": "#/components/schemas/SessionNotFoundError"
  8072. },
  8073. {
  8074. "$ref": "#/components/schemas/SessionNotFoundError"
  8075. }
  8076. ]
  8077. }
  8078. }
  8079. }
  8080. }
  8081. },
  8082. "description": "Retrieve pending permission requests owned by a session.",
  8083. "summary": "List session permission requests"
  8084. }
  8085. },
  8086. "/api/session/{sessionID}/permission/{requestID}": {
  8087. "get": {
  8088. "tags": ["permission"],
  8089. "operationId": "v2.session.permission.get",
  8090. "parameters": [
  8091. {
  8092. "name": "sessionID",
  8093. "in": "path",
  8094. "schema": {
  8095. "type": "string",
  8096. "allOf": [
  8097. {
  8098. "pattern": "^ses"
  8099. }
  8100. ]
  8101. },
  8102. "required": true
  8103. },
  8104. {
  8105. "name": "requestID",
  8106. "in": "path",
  8107. "schema": {
  8108. "type": "string",
  8109. "allOf": [
  8110. {
  8111. "pattern": "^per"
  8112. }
  8113. ]
  8114. },
  8115. "required": true
  8116. }
  8117. ],
  8118. "security": [],
  8119. "responses": {
  8120. "200": {
  8121. "description": "Success",
  8122. "content": {
  8123. "application/json": {
  8124. "schema": {
  8125. "type": "object",
  8126. "properties": {
  8127. "data": {
  8128. "$ref": "#/components/schemas/Permission.Request"
  8129. }
  8130. },
  8131. "required": ["data"],
  8132. "additionalProperties": false
  8133. }
  8134. }
  8135. }
  8136. },
  8137. "400": {
  8138. "description": "InvalidRequestError",
  8139. "content": {
  8140. "application/json": {
  8141. "schema": {
  8142. "$ref": "#/components/schemas/InvalidRequestError"
  8143. }
  8144. }
  8145. }
  8146. },
  8147. "401": {
  8148. "description": "UnauthorizedError",
  8149. "content": {
  8150. "application/json": {
  8151. "schema": {
  8152. "$ref": "#/components/schemas/UnauthorizedError"
  8153. }
  8154. }
  8155. }
  8156. },
  8157. "404": {
  8158. "description": "SessionNotFoundError | PermissionNotFoundError",
  8159. "content": {
  8160. "application/json": {
  8161. "schema": {
  8162. "anyOf": [
  8163. {
  8164. "$ref": "#/components/schemas/PermissionNotFoundError"
  8165. },
  8166. {
  8167. "$ref": "#/components/schemas/SessionNotFoundError"
  8168. },
  8169. {
  8170. "$ref": "#/components/schemas/SessionNotFoundError"
  8171. }
  8172. ]
  8173. }
  8174. }
  8175. }
  8176. }
  8177. },
  8178. "description": "Retrieve a pending permission request owned by a session.",
  8179. "summary": "Get permission request"
  8180. }
  8181. },
  8182. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8183. "post": {
  8184. "tags": ["permission"],
  8185. "operationId": "v2.session.permission.reply",
  8186. "parameters": [
  8187. {
  8188. "name": "sessionID",
  8189. "in": "path",
  8190. "schema": {
  8191. "type": "string",
  8192. "allOf": [
  8193. {
  8194. "pattern": "^ses"
  8195. }
  8196. ]
  8197. },
  8198. "required": true
  8199. },
  8200. {
  8201. "name": "requestID",
  8202. "in": "path",
  8203. "schema": {
  8204. "type": "string",
  8205. "allOf": [
  8206. {
  8207. "pattern": "^per"
  8208. }
  8209. ]
  8210. },
  8211. "required": true
  8212. }
  8213. ],
  8214. "security": [],
  8215. "responses": {
  8216. "204": {
  8217. "description": "<No Content>"
  8218. },
  8219. "400": {
  8220. "description": "InvalidRequestError",
  8221. "content": {
  8222. "application/json": {
  8223. "schema": {
  8224. "$ref": "#/components/schemas/InvalidRequestError"
  8225. }
  8226. }
  8227. }
  8228. },
  8229. "401": {
  8230. "description": "UnauthorizedError",
  8231. "content": {
  8232. "application/json": {
  8233. "schema": {
  8234. "$ref": "#/components/schemas/UnauthorizedError"
  8235. }
  8236. }
  8237. }
  8238. },
  8239. "404": {
  8240. "description": "SessionNotFoundError | PermissionNotFoundError",
  8241. "content": {
  8242. "application/json": {
  8243. "schema": {
  8244. "anyOf": [
  8245. {
  8246. "$ref": "#/components/schemas/PermissionNotFoundError"
  8247. },
  8248. {
  8249. "$ref": "#/components/schemas/SessionNotFoundError"
  8250. },
  8251. {
  8252. "$ref": "#/components/schemas/SessionNotFoundError"
  8253. }
  8254. ]
  8255. }
  8256. }
  8257. }
  8258. }
  8259. },
  8260. "description": "Respond to a pending permission request owned by a session.",
  8261. "summary": "Reply to pending permission request",
  8262. "requestBody": {
  8263. "content": {
  8264. "application/json": {
  8265. "schema": {
  8266. "type": "object",
  8267. "properties": {
  8268. "reply": {
  8269. "$ref": "#/components/schemas/Permission.Reply"
  8270. },
  8271. "message": {
  8272. "anyOf": [
  8273. {
  8274. "type": "string"
  8275. },
  8276. {
  8277. "type": "null"
  8278. }
  8279. ]
  8280. }
  8281. },
  8282. "required": ["reply"],
  8283. "additionalProperties": false
  8284. }
  8285. }
  8286. },
  8287. "required": true
  8288. }
  8289. }
  8290. },
  8291. "/api/fs/read/*": {
  8292. "get": {
  8293. "tags": ["filesystem"],
  8294. "operationId": "v2.fs.read",
  8295. "parameters": [
  8296. {
  8297. "name": "location",
  8298. "in": "query",
  8299. "schema": {
  8300. "anyOf": [
  8301. {
  8302. "type": "object",
  8303. "properties": {
  8304. "directory": {
  8305. "anyOf": [
  8306. {
  8307. "type": "string"
  8308. },
  8309. {
  8310. "type": "null"
  8311. }
  8312. ]
  8313. },
  8314. "workspace": {
  8315. "anyOf": [
  8316. {
  8317. "type": "string"
  8318. },
  8319. {
  8320. "type": "null"
  8321. }
  8322. ]
  8323. }
  8324. },
  8325. "additionalProperties": false
  8326. },
  8327. {
  8328. "type": "null"
  8329. }
  8330. ]
  8331. },
  8332. "required": false,
  8333. "style": "deepObject",
  8334. "explode": true
  8335. }
  8336. ],
  8337. "security": [],
  8338. "responses": {
  8339. "200": {
  8340. "description": "Success",
  8341. "content": {
  8342. "application/octet-stream": {
  8343. "schema": {
  8344. "type": "string",
  8345. "format": "binary"
  8346. }
  8347. }
  8348. }
  8349. },
  8350. "400": {
  8351. "description": "InvalidRequestError",
  8352. "content": {
  8353. "application/json": {
  8354. "schema": {
  8355. "$ref": "#/components/schemas/InvalidRequestError"
  8356. }
  8357. }
  8358. }
  8359. },
  8360. "401": {
  8361. "description": "UnauthorizedError",
  8362. "content": {
  8363. "application/json": {
  8364. "schema": {
  8365. "$ref": "#/components/schemas/UnauthorizedError"
  8366. }
  8367. }
  8368. }
  8369. }
  8370. },
  8371. "description": "Serve one file relative to the requested location.",
  8372. "summary": "Read file"
  8373. }
  8374. },
  8375. "/api/fs/list": {
  8376. "get": {
  8377. "tags": ["filesystem"],
  8378. "operationId": "v2.fs.list",
  8379. "parameters": [
  8380. {
  8381. "name": "location",
  8382. "in": "query",
  8383. "schema": {
  8384. "anyOf": [
  8385. {
  8386. "type": "object",
  8387. "properties": {
  8388. "directory": {
  8389. "anyOf": [
  8390. {
  8391. "type": "string"
  8392. },
  8393. {
  8394. "type": "null"
  8395. }
  8396. ]
  8397. },
  8398. "workspace": {
  8399. "anyOf": [
  8400. {
  8401. "type": "string"
  8402. },
  8403. {
  8404. "type": "null"
  8405. }
  8406. ]
  8407. }
  8408. },
  8409. "additionalProperties": false
  8410. },
  8411. {
  8412. "type": "null"
  8413. }
  8414. ]
  8415. },
  8416. "required": false,
  8417. "style": "deepObject",
  8418. "explode": true
  8419. },
  8420. {
  8421. "name": "path",
  8422. "in": "query",
  8423. "schema": {
  8424. "anyOf": [
  8425. {
  8426. "type": "string"
  8427. },
  8428. {
  8429. "type": "null"
  8430. }
  8431. ]
  8432. },
  8433. "required": false
  8434. }
  8435. ],
  8436. "security": [],
  8437. "responses": {
  8438. "200": {
  8439. "description": "Success",
  8440. "content": {
  8441. "application/json": {
  8442. "schema": {
  8443. "type": "object",
  8444. "properties": {
  8445. "location": {
  8446. "$ref": "#/components/schemas/Location.Info"
  8447. },
  8448. "data": {
  8449. "type": "array",
  8450. "items": {
  8451. "$ref": "#/components/schemas/FileSystem.Entry"
  8452. }
  8453. }
  8454. },
  8455. "required": ["location", "data"],
  8456. "additionalProperties": false
  8457. }
  8458. }
  8459. }
  8460. },
  8461. "400": {
  8462. "description": "InvalidRequestError",
  8463. "content": {
  8464. "application/json": {
  8465. "schema": {
  8466. "$ref": "#/components/schemas/InvalidRequestError"
  8467. }
  8468. }
  8469. }
  8470. },
  8471. "401": {
  8472. "description": "UnauthorizedError",
  8473. "content": {
  8474. "application/json": {
  8475. "schema": {
  8476. "$ref": "#/components/schemas/UnauthorizedError"
  8477. }
  8478. }
  8479. }
  8480. }
  8481. },
  8482. "description": "List direct children of one directory relative to the requested location.",
  8483. "summary": "List directory"
  8484. }
  8485. },
  8486. "/api/fs/find": {
  8487. "get": {
  8488. "tags": ["filesystem"],
  8489. "operationId": "v2.fs.find",
  8490. "parameters": [
  8491. {
  8492. "name": "location",
  8493. "in": "query",
  8494. "schema": {
  8495. "anyOf": [
  8496. {
  8497. "type": "object",
  8498. "properties": {
  8499. "directory": {
  8500. "anyOf": [
  8501. {
  8502. "type": "string"
  8503. },
  8504. {
  8505. "type": "null"
  8506. }
  8507. ]
  8508. },
  8509. "workspace": {
  8510. "anyOf": [
  8511. {
  8512. "type": "string"
  8513. },
  8514. {
  8515. "type": "null"
  8516. }
  8517. ]
  8518. }
  8519. },
  8520. "additionalProperties": false
  8521. },
  8522. {
  8523. "type": "null"
  8524. }
  8525. ]
  8526. },
  8527. "required": false,
  8528. "style": "deepObject",
  8529. "explode": true
  8530. },
  8531. {
  8532. "name": "query",
  8533. "in": "query",
  8534. "schema": {
  8535. "type": "string"
  8536. },
  8537. "required": true
  8538. },
  8539. {
  8540. "name": "type",
  8541. "in": "query",
  8542. "schema": {
  8543. "type": "string",
  8544. "enum": ["file", "directory"]
  8545. },
  8546. "required": false
  8547. },
  8548. {
  8549. "name": "limit",
  8550. "in": "query",
  8551. "schema": {
  8552. "anyOf": [
  8553. {
  8554. "type": "string"
  8555. },
  8556. {
  8557. "type": "null"
  8558. }
  8559. ]
  8560. },
  8561. "required": false
  8562. }
  8563. ],
  8564. "security": [],
  8565. "responses": {
  8566. "200": {
  8567. "description": "Success",
  8568. "content": {
  8569. "application/json": {
  8570. "schema": {
  8571. "type": "object",
  8572. "properties": {
  8573. "location": {
  8574. "$ref": "#/components/schemas/Location.Info"
  8575. },
  8576. "data": {
  8577. "type": "array",
  8578. "items": {
  8579. "$ref": "#/components/schemas/FileSystem.Entry"
  8580. }
  8581. }
  8582. },
  8583. "required": ["location", "data"],
  8584. "additionalProperties": false
  8585. }
  8586. }
  8587. }
  8588. },
  8589. "400": {
  8590. "description": "InvalidRequestError",
  8591. "content": {
  8592. "application/json": {
  8593. "schema": {
  8594. "$ref": "#/components/schemas/InvalidRequestError"
  8595. }
  8596. }
  8597. }
  8598. },
  8599. "401": {
  8600. "description": "UnauthorizedError",
  8601. "content": {
  8602. "application/json": {
  8603. "schema": {
  8604. "$ref": "#/components/schemas/UnauthorizedError"
  8605. }
  8606. }
  8607. }
  8608. }
  8609. },
  8610. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8611. "summary": "Find files"
  8612. }
  8613. },
  8614. "/api/command": {
  8615. "get": {
  8616. "tags": ["command"],
  8617. "operationId": "v2.command.list",
  8618. "parameters": [
  8619. {
  8620. "name": "location",
  8621. "in": "query",
  8622. "schema": {
  8623. "anyOf": [
  8624. {
  8625. "type": "object",
  8626. "properties": {
  8627. "directory": {
  8628. "anyOf": [
  8629. {
  8630. "type": "string"
  8631. },
  8632. {
  8633. "type": "null"
  8634. }
  8635. ]
  8636. },
  8637. "workspace": {
  8638. "anyOf": [
  8639. {
  8640. "type": "string"
  8641. },
  8642. {
  8643. "type": "null"
  8644. }
  8645. ]
  8646. }
  8647. },
  8648. "additionalProperties": false
  8649. },
  8650. {
  8651. "type": "null"
  8652. }
  8653. ]
  8654. },
  8655. "required": false,
  8656. "style": "deepObject",
  8657. "explode": true
  8658. }
  8659. ],
  8660. "security": [],
  8661. "responses": {
  8662. "200": {
  8663. "description": "Success",
  8664. "content": {
  8665. "application/json": {
  8666. "schema": {
  8667. "type": "object",
  8668. "properties": {
  8669. "location": {
  8670. "$ref": "#/components/schemas/Location.Info"
  8671. },
  8672. "data": {
  8673. "type": "array",
  8674. "items": {
  8675. "$ref": "#/components/schemas/Command.Info"
  8676. }
  8677. }
  8678. },
  8679. "required": ["location", "data"],
  8680. "additionalProperties": false
  8681. }
  8682. }
  8683. }
  8684. },
  8685. "400": {
  8686. "description": "InvalidRequestError",
  8687. "content": {
  8688. "application/json": {
  8689. "schema": {
  8690. "$ref": "#/components/schemas/InvalidRequestError"
  8691. }
  8692. }
  8693. }
  8694. },
  8695. "401": {
  8696. "description": "UnauthorizedError",
  8697. "content": {
  8698. "application/json": {
  8699. "schema": {
  8700. "$ref": "#/components/schemas/UnauthorizedError"
  8701. }
  8702. }
  8703. }
  8704. }
  8705. },
  8706. "description": "Retrieve currently registered commands.",
  8707. "summary": "List commands"
  8708. }
  8709. },
  8710. "/api/skill": {
  8711. "get": {
  8712. "tags": ["skill"],
  8713. "operationId": "v2.skill.list",
  8714. "parameters": [
  8715. {
  8716. "name": "location",
  8717. "in": "query",
  8718. "schema": {
  8719. "anyOf": [
  8720. {
  8721. "type": "object",
  8722. "properties": {
  8723. "directory": {
  8724. "anyOf": [
  8725. {
  8726. "type": "string"
  8727. },
  8728. {
  8729. "type": "null"
  8730. }
  8731. ]
  8732. },
  8733. "workspace": {
  8734. "anyOf": [
  8735. {
  8736. "type": "string"
  8737. },
  8738. {
  8739. "type": "null"
  8740. }
  8741. ]
  8742. }
  8743. },
  8744. "additionalProperties": false
  8745. },
  8746. {
  8747. "type": "null"
  8748. }
  8749. ]
  8750. },
  8751. "required": false,
  8752. "style": "deepObject",
  8753. "explode": true
  8754. }
  8755. ],
  8756. "security": [],
  8757. "responses": {
  8758. "200": {
  8759. "description": "Success",
  8760. "content": {
  8761. "application/json": {
  8762. "schema": {
  8763. "type": "object",
  8764. "properties": {
  8765. "location": {
  8766. "$ref": "#/components/schemas/Location.Info"
  8767. },
  8768. "data": {
  8769. "type": "array",
  8770. "items": {
  8771. "$ref": "#/components/schemas/Skill.Info"
  8772. }
  8773. }
  8774. },
  8775. "required": ["location", "data"],
  8776. "additionalProperties": false
  8777. }
  8778. }
  8779. }
  8780. },
  8781. "400": {
  8782. "description": "InvalidRequestError",
  8783. "content": {
  8784. "application/json": {
  8785. "schema": {
  8786. "$ref": "#/components/schemas/InvalidRequestError"
  8787. }
  8788. }
  8789. }
  8790. },
  8791. "401": {
  8792. "description": "UnauthorizedError",
  8793. "content": {
  8794. "application/json": {
  8795. "schema": {
  8796. "$ref": "#/components/schemas/UnauthorizedError"
  8797. }
  8798. }
  8799. }
  8800. }
  8801. },
  8802. "description": "Retrieve currently registered skills.",
  8803. "summary": "List skills"
  8804. }
  8805. },
  8806. "/api/event": {
  8807. "get": {
  8808. "tags": ["event"],
  8809. "operationId": "v2.event.subscribe",
  8810. "parameters": [],
  8811. "security": [],
  8812. "responses": {
  8813. "200": {
  8814. "description": "Success",
  8815. "content": {
  8816. "text/event-stream": {
  8817. "schema": {
  8818. "type": "object",
  8819. "properties": {
  8820. "id": {
  8821. "anyOf": [
  8822. {
  8823. "type": "string"
  8824. },
  8825. {
  8826. "type": "null"
  8827. }
  8828. ]
  8829. },
  8830. "event": {
  8831. "type": "string"
  8832. },
  8833. "data": {
  8834. "$ref": "#/components/schemas/V2EventJsonString"
  8835. }
  8836. },
  8837. "required": ["id", "event", "data"],
  8838. "additionalProperties": false
  8839. },
  8840. "x-effect-stream": {
  8841. "encoding": "sse",
  8842. "causeSchema": {
  8843. "type": "array",
  8844. "items": {
  8845. "anyOf": [
  8846. {
  8847. "type": "object",
  8848. "properties": {
  8849. "_tag": {
  8850. "type": "string",
  8851. "enum": ["Fail"]
  8852. },
  8853. "error": {
  8854. "not": {}
  8855. }
  8856. },
  8857. "required": ["_tag", "error"],
  8858. "additionalProperties": false
  8859. },
  8860. {
  8861. "type": "object",
  8862. "properties": {
  8863. "_tag": {
  8864. "type": "string",
  8865. "enum": ["Die"]
  8866. },
  8867. "defect": {}
  8868. },
  8869. "required": ["_tag", "defect"],
  8870. "additionalProperties": false
  8871. },
  8872. {
  8873. "type": "object",
  8874. "properties": {
  8875. "_tag": {
  8876. "type": "string",
  8877. "enum": ["Interrupt"]
  8878. },
  8879. "fiberId": {
  8880. "anyOf": [
  8881. {
  8882. "type": "number"
  8883. },
  8884. {
  8885. "type": "null"
  8886. }
  8887. ]
  8888. }
  8889. },
  8890. "required": ["_tag", "fiberId"],
  8891. "additionalProperties": false
  8892. }
  8893. ]
  8894. }
  8895. },
  8896. "errorSchema": {
  8897. "not": {}
  8898. },
  8899. "failureEvent": "effect/httpapi/stream/failure"
  8900. }
  8901. }
  8902. }
  8903. },
  8904. "400": {
  8905. "description": "InvalidRequestError",
  8906. "content": {
  8907. "application/json": {
  8908. "schema": {
  8909. "$ref": "#/components/schemas/InvalidRequestError"
  8910. }
  8911. }
  8912. }
  8913. },
  8914. "401": {
  8915. "description": "UnauthorizedError",
  8916. "content": {
  8917. "application/json": {
  8918. "schema": {
  8919. "$ref": "#/components/schemas/UnauthorizedError"
  8920. }
  8921. }
  8922. }
  8923. }
  8924. },
  8925. "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.",
  8926. "summary": "Subscribe to events"
  8927. }
  8928. },
  8929. "/api/pty": {
  8930. "get": {
  8931. "tags": ["pty"],
  8932. "operationId": "v2.pty.list",
  8933. "parameters": [
  8934. {
  8935. "name": "location",
  8936. "in": "query",
  8937. "schema": {
  8938. "anyOf": [
  8939. {
  8940. "type": "object",
  8941. "properties": {
  8942. "directory": {
  8943. "anyOf": [
  8944. {
  8945. "type": "string"
  8946. },
  8947. {
  8948. "type": "null"
  8949. }
  8950. ]
  8951. },
  8952. "workspace": {
  8953. "anyOf": [
  8954. {
  8955. "type": "string"
  8956. },
  8957. {
  8958. "type": "null"
  8959. }
  8960. ]
  8961. }
  8962. },
  8963. "additionalProperties": false
  8964. },
  8965. {
  8966. "type": "null"
  8967. }
  8968. ]
  8969. },
  8970. "required": false,
  8971. "style": "deepObject",
  8972. "explode": true
  8973. }
  8974. ],
  8975. "security": [],
  8976. "responses": {
  8977. "200": {
  8978. "description": "Success",
  8979. "content": {
  8980. "application/json": {
  8981. "schema": {
  8982. "type": "object",
  8983. "properties": {
  8984. "location": {
  8985. "$ref": "#/components/schemas/Location.Info"
  8986. },
  8987. "data": {
  8988. "type": "array",
  8989. "items": {
  8990. "$ref": "#/components/schemas/Pty"
  8991. }
  8992. }
  8993. },
  8994. "required": ["location", "data"],
  8995. "additionalProperties": false
  8996. }
  8997. }
  8998. }
  8999. },
  9000. "400": {
  9001. "description": "InvalidRequestError",
  9002. "content": {
  9003. "application/json": {
  9004. "schema": {
  9005. "$ref": "#/components/schemas/InvalidRequestError"
  9006. }
  9007. }
  9008. }
  9009. },
  9010. "401": {
  9011. "description": "UnauthorizedError",
  9012. "content": {
  9013. "application/json": {
  9014. "schema": {
  9015. "$ref": "#/components/schemas/UnauthorizedError"
  9016. }
  9017. }
  9018. }
  9019. }
  9020. },
  9021. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  9022. "summary": "List PTY sessions"
  9023. },
  9024. "post": {
  9025. "tags": ["pty"],
  9026. "operationId": "v2.pty.create",
  9027. "parameters": [
  9028. {
  9029. "name": "location",
  9030. "in": "query",
  9031. "schema": {
  9032. "anyOf": [
  9033. {
  9034. "type": "object",
  9035. "properties": {
  9036. "directory": {
  9037. "anyOf": [
  9038. {
  9039. "type": "string"
  9040. },
  9041. {
  9042. "type": "null"
  9043. }
  9044. ]
  9045. },
  9046. "workspace": {
  9047. "anyOf": [
  9048. {
  9049. "type": "string"
  9050. },
  9051. {
  9052. "type": "null"
  9053. }
  9054. ]
  9055. }
  9056. },
  9057. "additionalProperties": false
  9058. },
  9059. {
  9060. "type": "null"
  9061. }
  9062. ]
  9063. },
  9064. "required": false,
  9065. "style": "deepObject",
  9066. "explode": true
  9067. }
  9068. ],
  9069. "security": [],
  9070. "responses": {
  9071. "200": {
  9072. "description": "Success",
  9073. "content": {
  9074. "application/json": {
  9075. "schema": {
  9076. "type": "object",
  9077. "properties": {
  9078. "location": {
  9079. "$ref": "#/components/schemas/Location.Info"
  9080. },
  9081. "data": {
  9082. "$ref": "#/components/schemas/Pty"
  9083. }
  9084. },
  9085. "required": ["location", "data"],
  9086. "additionalProperties": false
  9087. }
  9088. }
  9089. }
  9090. },
  9091. "400": {
  9092. "description": "InvalidRequestError",
  9093. "content": {
  9094. "application/json": {
  9095. "schema": {
  9096. "$ref": "#/components/schemas/InvalidRequestError"
  9097. }
  9098. }
  9099. }
  9100. },
  9101. "401": {
  9102. "description": "UnauthorizedError",
  9103. "content": {
  9104. "application/json": {
  9105. "schema": {
  9106. "$ref": "#/components/schemas/UnauthorizedError"
  9107. }
  9108. }
  9109. }
  9110. }
  9111. },
  9112. "description": "Create a pseudo-terminal session for a location.",
  9113. "summary": "Create PTY session",
  9114. "requestBody": {
  9115. "content": {
  9116. "application/json": {
  9117. "schema": {
  9118. "type": "object",
  9119. "properties": {
  9120. "command": {
  9121. "type": "string"
  9122. },
  9123. "args": {
  9124. "type": "array",
  9125. "items": {
  9126. "type": "string"
  9127. }
  9128. },
  9129. "cwd": {
  9130. "type": "string"
  9131. },
  9132. "title": {
  9133. "type": "string"
  9134. },
  9135. "env": {
  9136. "type": "object",
  9137. "additionalProperties": {
  9138. "type": "string"
  9139. }
  9140. }
  9141. },
  9142. "additionalProperties": false
  9143. }
  9144. }
  9145. },
  9146. "required": true
  9147. }
  9148. }
  9149. },
  9150. "/api/pty/{ptyID}": {
  9151. "get": {
  9152. "tags": ["pty"],
  9153. "operationId": "v2.pty.get",
  9154. "parameters": [
  9155. {
  9156. "name": "ptyID",
  9157. "in": "path",
  9158. "schema": {
  9159. "type": "string",
  9160. "allOf": [
  9161. {
  9162. "pattern": "^pty"
  9163. }
  9164. ]
  9165. },
  9166. "required": true
  9167. },
  9168. {
  9169. "name": "location",
  9170. "in": "query",
  9171. "schema": {
  9172. "anyOf": [
  9173. {
  9174. "type": "object",
  9175. "properties": {
  9176. "directory": {
  9177. "anyOf": [
  9178. {
  9179. "type": "string"
  9180. },
  9181. {
  9182. "type": "null"
  9183. }
  9184. ]
  9185. },
  9186. "workspace": {
  9187. "anyOf": [
  9188. {
  9189. "type": "string"
  9190. },
  9191. {
  9192. "type": "null"
  9193. }
  9194. ]
  9195. }
  9196. },
  9197. "additionalProperties": false
  9198. },
  9199. {
  9200. "type": "null"
  9201. }
  9202. ]
  9203. },
  9204. "required": false,
  9205. "style": "deepObject",
  9206. "explode": true
  9207. }
  9208. ],
  9209. "security": [],
  9210. "responses": {
  9211. "200": {
  9212. "description": "Success",
  9213. "content": {
  9214. "application/json": {
  9215. "schema": {
  9216. "type": "object",
  9217. "properties": {
  9218. "location": {
  9219. "$ref": "#/components/schemas/Location.Info"
  9220. },
  9221. "data": {
  9222. "$ref": "#/components/schemas/Pty"
  9223. }
  9224. },
  9225. "required": ["location", "data"],
  9226. "additionalProperties": false
  9227. }
  9228. }
  9229. }
  9230. },
  9231. "400": {
  9232. "description": "InvalidRequestError",
  9233. "content": {
  9234. "application/json": {
  9235. "schema": {
  9236. "$ref": "#/components/schemas/InvalidRequestError"
  9237. }
  9238. }
  9239. }
  9240. },
  9241. "401": {
  9242. "description": "UnauthorizedError",
  9243. "content": {
  9244. "application/json": {
  9245. "schema": {
  9246. "$ref": "#/components/schemas/UnauthorizedError"
  9247. }
  9248. }
  9249. }
  9250. },
  9251. "404": {
  9252. "description": "PtyNotFoundError",
  9253. "content": {
  9254. "application/json": {
  9255. "schema": {
  9256. "$ref": "#/components/schemas/PtyNotFoundError"
  9257. }
  9258. }
  9259. }
  9260. }
  9261. },
  9262. "description": "Get one PTY session, including its exit code once exited.",
  9263. "summary": "Get PTY session"
  9264. },
  9265. "put": {
  9266. "tags": ["pty"],
  9267. "operationId": "v2.pty.update",
  9268. "parameters": [
  9269. {
  9270. "name": "ptyID",
  9271. "in": "path",
  9272. "schema": {
  9273. "type": "string",
  9274. "allOf": [
  9275. {
  9276. "pattern": "^pty"
  9277. }
  9278. ]
  9279. },
  9280. "required": true
  9281. },
  9282. {
  9283. "name": "location",
  9284. "in": "query",
  9285. "schema": {
  9286. "anyOf": [
  9287. {
  9288. "type": "object",
  9289. "properties": {
  9290. "directory": {
  9291. "anyOf": [
  9292. {
  9293. "type": "string"
  9294. },
  9295. {
  9296. "type": "null"
  9297. }
  9298. ]
  9299. },
  9300. "workspace": {
  9301. "anyOf": [
  9302. {
  9303. "type": "string"
  9304. },
  9305. {
  9306. "type": "null"
  9307. }
  9308. ]
  9309. }
  9310. },
  9311. "additionalProperties": false
  9312. },
  9313. {
  9314. "type": "null"
  9315. }
  9316. ]
  9317. },
  9318. "required": false,
  9319. "style": "deepObject",
  9320. "explode": true
  9321. }
  9322. ],
  9323. "security": [],
  9324. "responses": {
  9325. "200": {
  9326. "description": "Success",
  9327. "content": {
  9328. "application/json": {
  9329. "schema": {
  9330. "type": "object",
  9331. "properties": {
  9332. "location": {
  9333. "$ref": "#/components/schemas/Location.Info"
  9334. },
  9335. "data": {
  9336. "$ref": "#/components/schemas/Pty"
  9337. }
  9338. },
  9339. "required": ["location", "data"],
  9340. "additionalProperties": false
  9341. }
  9342. }
  9343. }
  9344. },
  9345. "400": {
  9346. "description": "InvalidRequestError",
  9347. "content": {
  9348. "application/json": {
  9349. "schema": {
  9350. "$ref": "#/components/schemas/InvalidRequestError"
  9351. }
  9352. }
  9353. }
  9354. },
  9355. "401": {
  9356. "description": "UnauthorizedError",
  9357. "content": {
  9358. "application/json": {
  9359. "schema": {
  9360. "$ref": "#/components/schemas/UnauthorizedError"
  9361. }
  9362. }
  9363. }
  9364. },
  9365. "404": {
  9366. "description": "PtyNotFoundError",
  9367. "content": {
  9368. "application/json": {
  9369. "schema": {
  9370. "$ref": "#/components/schemas/PtyNotFoundError"
  9371. }
  9372. }
  9373. }
  9374. }
  9375. },
  9376. "description": "Update the title or viewport size of one PTY session.",
  9377. "summary": "Update PTY session",
  9378. "requestBody": {
  9379. "content": {
  9380. "application/json": {
  9381. "schema": {
  9382. "type": "object",
  9383. "properties": {
  9384. "title": {
  9385. "type": "string"
  9386. },
  9387. "size": {
  9388. "type": "object",
  9389. "properties": {
  9390. "rows": {
  9391. "type": "integer",
  9392. "allOf": [
  9393. {
  9394. "exclusiveMinimum": 0
  9395. }
  9396. ]
  9397. },
  9398. "cols": {
  9399. "type": "integer",
  9400. "allOf": [
  9401. {
  9402. "exclusiveMinimum": 0
  9403. }
  9404. ]
  9405. }
  9406. },
  9407. "required": ["rows", "cols"],
  9408. "additionalProperties": false
  9409. }
  9410. },
  9411. "additionalProperties": false
  9412. }
  9413. }
  9414. },
  9415. "required": true
  9416. }
  9417. },
  9418. "delete": {
  9419. "tags": ["pty"],
  9420. "operationId": "v2.pty.remove",
  9421. "parameters": [
  9422. {
  9423. "name": "ptyID",
  9424. "in": "path",
  9425. "schema": {
  9426. "type": "string",
  9427. "allOf": [
  9428. {
  9429. "pattern": "^pty"
  9430. }
  9431. ]
  9432. },
  9433. "required": true
  9434. },
  9435. {
  9436. "name": "location",
  9437. "in": "query",
  9438. "schema": {
  9439. "anyOf": [
  9440. {
  9441. "type": "object",
  9442. "properties": {
  9443. "directory": {
  9444. "anyOf": [
  9445. {
  9446. "type": "string"
  9447. },
  9448. {
  9449. "type": "null"
  9450. }
  9451. ]
  9452. },
  9453. "workspace": {
  9454. "anyOf": [
  9455. {
  9456. "type": "string"
  9457. },
  9458. {
  9459. "type": "null"
  9460. }
  9461. ]
  9462. }
  9463. },
  9464. "additionalProperties": false
  9465. },
  9466. {
  9467. "type": "null"
  9468. }
  9469. ]
  9470. },
  9471. "required": false,
  9472. "style": "deepObject",
  9473. "explode": true
  9474. }
  9475. ],
  9476. "security": [],
  9477. "responses": {
  9478. "204": {
  9479. "description": "<No Content>"
  9480. },
  9481. "400": {
  9482. "description": "InvalidRequestError",
  9483. "content": {
  9484. "application/json": {
  9485. "schema": {
  9486. "$ref": "#/components/schemas/InvalidRequestError"
  9487. }
  9488. }
  9489. }
  9490. },
  9491. "401": {
  9492. "description": "UnauthorizedError",
  9493. "content": {
  9494. "application/json": {
  9495. "schema": {
  9496. "$ref": "#/components/schemas/UnauthorizedError"
  9497. }
  9498. }
  9499. }
  9500. },
  9501. "404": {
  9502. "description": "PtyNotFoundError",
  9503. "content": {
  9504. "application/json": {
  9505. "schema": {
  9506. "$ref": "#/components/schemas/PtyNotFoundError"
  9507. }
  9508. }
  9509. }
  9510. }
  9511. },
  9512. "description": "Terminate and remove one PTY session.",
  9513. "summary": "Remove PTY session"
  9514. }
  9515. },
  9516. "/api/pty/{ptyID}/connect-token": {
  9517. "post": {
  9518. "tags": ["pty"],
  9519. "operationId": "v2.pty.connect.token",
  9520. "parameters": [
  9521. {
  9522. "name": "ptyID",
  9523. "in": "path",
  9524. "schema": {
  9525. "type": "string",
  9526. "allOf": [
  9527. {
  9528. "pattern": "^pty"
  9529. }
  9530. ]
  9531. },
  9532. "required": true
  9533. },
  9534. {
  9535. "name": "location",
  9536. "in": "query",
  9537. "schema": {
  9538. "anyOf": [
  9539. {
  9540. "type": "object",
  9541. "properties": {
  9542. "directory": {
  9543. "anyOf": [
  9544. {
  9545. "type": "string"
  9546. },
  9547. {
  9548. "type": "null"
  9549. }
  9550. ]
  9551. },
  9552. "workspace": {
  9553. "anyOf": [
  9554. {
  9555. "type": "string"
  9556. },
  9557. {
  9558. "type": "null"
  9559. }
  9560. ]
  9561. }
  9562. },
  9563. "additionalProperties": false
  9564. },
  9565. {
  9566. "type": "null"
  9567. }
  9568. ]
  9569. },
  9570. "required": false,
  9571. "style": "deepObject",
  9572. "explode": true
  9573. }
  9574. ],
  9575. "security": [],
  9576. "responses": {
  9577. "200": {
  9578. "description": "Success",
  9579. "content": {
  9580. "application/json": {
  9581. "schema": {
  9582. "type": "object",
  9583. "properties": {
  9584. "location": {
  9585. "$ref": "#/components/schemas/Location.Info"
  9586. },
  9587. "data": {
  9588. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9589. }
  9590. },
  9591. "required": ["location", "data"],
  9592. "additionalProperties": false
  9593. }
  9594. }
  9595. }
  9596. },
  9597. "400": {
  9598. "description": "InvalidRequestError",
  9599. "content": {
  9600. "application/json": {
  9601. "schema": {
  9602. "$ref": "#/components/schemas/InvalidRequestError"
  9603. }
  9604. }
  9605. }
  9606. },
  9607. "401": {
  9608. "description": "UnauthorizedError",
  9609. "content": {
  9610. "application/json": {
  9611. "schema": {
  9612. "$ref": "#/components/schemas/UnauthorizedError"
  9613. }
  9614. }
  9615. }
  9616. },
  9617. "403": {
  9618. "description": "ForbiddenError",
  9619. "content": {
  9620. "application/json": {
  9621. "schema": {
  9622. "$ref": "#/components/schemas/ForbiddenError"
  9623. }
  9624. }
  9625. }
  9626. },
  9627. "404": {
  9628. "description": "PtyNotFoundError",
  9629. "content": {
  9630. "application/json": {
  9631. "schema": {
  9632. "$ref": "#/components/schemas/PtyNotFoundError"
  9633. }
  9634. }
  9635. }
  9636. }
  9637. },
  9638. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9639. "summary": "Create PTY WebSocket token"
  9640. }
  9641. },
  9642. "/api/pty/{ptyID}/connect": {
  9643. "get": {
  9644. "tags": ["pty"],
  9645. "operationId": "v2.pty.connect",
  9646. "parameters": [
  9647. {
  9648. "name": "ptyID",
  9649. "in": "path",
  9650. "schema": {
  9651. "type": "string",
  9652. "allOf": [
  9653. {
  9654. "pattern": "^pty"
  9655. }
  9656. ]
  9657. },
  9658. "required": true
  9659. },
  9660. {
  9661. "in": "query",
  9662. "name": "location[directory]",
  9663. "schema": {
  9664. "type": "string"
  9665. }
  9666. },
  9667. {
  9668. "in": "query",
  9669. "name": "location[workspace]",
  9670. "schema": {
  9671. "type": "string"
  9672. }
  9673. },
  9674. {
  9675. "in": "query",
  9676. "name": "cursor",
  9677. "schema": {
  9678. "type": "string"
  9679. }
  9680. },
  9681. {
  9682. "in": "query",
  9683. "name": "ticket",
  9684. "schema": {
  9685. "type": "string"
  9686. }
  9687. }
  9688. ],
  9689. "security": [],
  9690. "responses": {
  9691. "200": {
  9692. "description": "Success",
  9693. "content": {
  9694. "application/json": {
  9695. "schema": {
  9696. "type": "boolean"
  9697. }
  9698. }
  9699. }
  9700. },
  9701. "400": {
  9702. "description": "InvalidRequestError",
  9703. "content": {
  9704. "application/json": {
  9705. "schema": {
  9706. "$ref": "#/components/schemas/InvalidRequestError"
  9707. }
  9708. }
  9709. }
  9710. },
  9711. "401": {
  9712. "description": "UnauthorizedError",
  9713. "content": {
  9714. "application/json": {
  9715. "schema": {
  9716. "$ref": "#/components/schemas/UnauthorizedError"
  9717. }
  9718. }
  9719. }
  9720. },
  9721. "403": {
  9722. "description": "ForbiddenError",
  9723. "content": {
  9724. "application/json": {
  9725. "schema": {
  9726. "$ref": "#/components/schemas/ForbiddenError"
  9727. }
  9728. }
  9729. }
  9730. },
  9731. "404": {
  9732. "description": "PtyNotFoundError",
  9733. "content": {
  9734. "application/json": {
  9735. "schema": {
  9736. "$ref": "#/components/schemas/PtyNotFoundError"
  9737. }
  9738. }
  9739. }
  9740. }
  9741. },
  9742. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9743. "summary": "Connect to PTY session",
  9744. "x-websocket": true
  9745. }
  9746. },
  9747. "/api/shell": {
  9748. "get": {
  9749. "tags": ["shell"],
  9750. "operationId": "v2.shell.list",
  9751. "parameters": [
  9752. {
  9753. "name": "location",
  9754. "in": "query",
  9755. "schema": {
  9756. "anyOf": [
  9757. {
  9758. "type": "object",
  9759. "properties": {
  9760. "directory": {
  9761. "anyOf": [
  9762. {
  9763. "type": "string"
  9764. },
  9765. {
  9766. "type": "null"
  9767. }
  9768. ]
  9769. },
  9770. "workspace": {
  9771. "anyOf": [
  9772. {
  9773. "type": "string"
  9774. },
  9775. {
  9776. "type": "null"
  9777. }
  9778. ]
  9779. }
  9780. },
  9781. "additionalProperties": false
  9782. },
  9783. {
  9784. "type": "null"
  9785. }
  9786. ]
  9787. },
  9788. "required": false,
  9789. "style": "deepObject",
  9790. "explode": true
  9791. }
  9792. ],
  9793. "security": [],
  9794. "responses": {
  9795. "200": {
  9796. "description": "Success",
  9797. "content": {
  9798. "application/json": {
  9799. "schema": {
  9800. "type": "object",
  9801. "properties": {
  9802. "location": {
  9803. "$ref": "#/components/schemas/Location.Info"
  9804. },
  9805. "data": {
  9806. "type": "array",
  9807. "items": {
  9808. "$ref": "#/components/schemas/Shell.Info1"
  9809. }
  9810. }
  9811. },
  9812. "required": ["location", "data"],
  9813. "additionalProperties": false
  9814. }
  9815. }
  9816. }
  9817. },
  9818. "400": {
  9819. "description": "InvalidRequestError",
  9820. "content": {
  9821. "application/json": {
  9822. "schema": {
  9823. "$ref": "#/components/schemas/InvalidRequestError"
  9824. }
  9825. }
  9826. }
  9827. },
  9828. "401": {
  9829. "description": "UnauthorizedError",
  9830. "content": {
  9831. "application/json": {
  9832. "schema": {
  9833. "$ref": "#/components/schemas/UnauthorizedError"
  9834. }
  9835. }
  9836. }
  9837. }
  9838. },
  9839. "description": "List currently running shell commands for a location. Exited commands are not included.",
  9840. "summary": "List running shell commands"
  9841. },
  9842. "post": {
  9843. "tags": ["shell"],
  9844. "operationId": "v2.shell.create",
  9845. "parameters": [
  9846. {
  9847. "name": "location",
  9848. "in": "query",
  9849. "schema": {
  9850. "anyOf": [
  9851. {
  9852. "type": "object",
  9853. "properties": {
  9854. "directory": {
  9855. "anyOf": [
  9856. {
  9857. "type": "string"
  9858. },
  9859. {
  9860. "type": "null"
  9861. }
  9862. ]
  9863. },
  9864. "workspace": {
  9865. "anyOf": [
  9866. {
  9867. "type": "string"
  9868. },
  9869. {
  9870. "type": "null"
  9871. }
  9872. ]
  9873. }
  9874. },
  9875. "additionalProperties": false
  9876. },
  9877. {
  9878. "type": "null"
  9879. }
  9880. ]
  9881. },
  9882. "required": false,
  9883. "style": "deepObject",
  9884. "explode": true
  9885. }
  9886. ],
  9887. "security": [],
  9888. "responses": {
  9889. "200": {
  9890. "description": "Success",
  9891. "content": {
  9892. "application/json": {
  9893. "schema": {
  9894. "type": "object",
  9895. "properties": {
  9896. "location": {
  9897. "$ref": "#/components/schemas/Location.Info"
  9898. },
  9899. "data": {
  9900. "$ref": "#/components/schemas/Shell.Info1"
  9901. }
  9902. },
  9903. "required": ["location", "data"],
  9904. "additionalProperties": false
  9905. }
  9906. }
  9907. }
  9908. },
  9909. "400": {
  9910. "description": "InvalidRequestError",
  9911. "content": {
  9912. "application/json": {
  9913. "schema": {
  9914. "$ref": "#/components/schemas/InvalidRequestError"
  9915. }
  9916. }
  9917. }
  9918. },
  9919. "401": {
  9920. "description": "UnauthorizedError",
  9921. "content": {
  9922. "application/json": {
  9923. "schema": {
  9924. "$ref": "#/components/schemas/UnauthorizedError"
  9925. }
  9926. }
  9927. }
  9928. }
  9929. },
  9930. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9931. "summary": "Run shell command",
  9932. "requestBody": {
  9933. "content": {
  9934. "application/json": {
  9935. "schema": {
  9936. "type": "object",
  9937. "properties": {
  9938. "command": {
  9939. "type": "string"
  9940. },
  9941. "cwd": {
  9942. "type": "string"
  9943. },
  9944. "timeout": {
  9945. "type": "integer",
  9946. "allOf": [
  9947. {
  9948. "minimum": 0
  9949. }
  9950. ]
  9951. },
  9952. "metadata": {
  9953. "type": "object"
  9954. }
  9955. },
  9956. "required": ["command", "timeout"],
  9957. "additionalProperties": false
  9958. }
  9959. }
  9960. },
  9961. "required": true
  9962. }
  9963. }
  9964. },
  9965. "/api/shell/{id}": {
  9966. "get": {
  9967. "tags": ["shell"],
  9968. "operationId": "v2.shell.get",
  9969. "parameters": [
  9970. {
  9971. "name": "id",
  9972. "in": "path",
  9973. "schema": {
  9974. "type": "string",
  9975. "allOf": [
  9976. {
  9977. "pattern": "^sh_"
  9978. }
  9979. ]
  9980. },
  9981. "required": true
  9982. },
  9983. {
  9984. "name": "location",
  9985. "in": "query",
  9986. "schema": {
  9987. "anyOf": [
  9988. {
  9989. "type": "object",
  9990. "properties": {
  9991. "directory": {
  9992. "anyOf": [
  9993. {
  9994. "type": "string"
  9995. },
  9996. {
  9997. "type": "null"
  9998. }
  9999. ]
  10000. },
  10001. "workspace": {
  10002. "anyOf": [
  10003. {
  10004. "type": "string"
  10005. },
  10006. {
  10007. "type": "null"
  10008. }
  10009. ]
  10010. }
  10011. },
  10012. "additionalProperties": false
  10013. },
  10014. {
  10015. "type": "null"
  10016. }
  10017. ]
  10018. },
  10019. "required": false,
  10020. "style": "deepObject",
  10021. "explode": true
  10022. }
  10023. ],
  10024. "security": [],
  10025. "responses": {
  10026. "200": {
  10027. "description": "Success",
  10028. "content": {
  10029. "application/json": {
  10030. "schema": {
  10031. "type": "object",
  10032. "properties": {
  10033. "location": {
  10034. "$ref": "#/components/schemas/Location.Info"
  10035. },
  10036. "data": {
  10037. "$ref": "#/components/schemas/Shell.Info1"
  10038. }
  10039. },
  10040. "required": ["location", "data"],
  10041. "additionalProperties": false
  10042. }
  10043. }
  10044. }
  10045. },
  10046. "400": {
  10047. "description": "InvalidRequestError",
  10048. "content": {
  10049. "application/json": {
  10050. "schema": {
  10051. "$ref": "#/components/schemas/InvalidRequestError"
  10052. }
  10053. }
  10054. }
  10055. },
  10056. "401": {
  10057. "description": "UnauthorizedError",
  10058. "content": {
  10059. "application/json": {
  10060. "schema": {
  10061. "$ref": "#/components/schemas/UnauthorizedError"
  10062. }
  10063. }
  10064. }
  10065. },
  10066. "404": {
  10067. "description": "ShellNotFoundError",
  10068. "content": {
  10069. "application/json": {
  10070. "schema": {
  10071. "$ref": "#/components/schemas/ShellNotFoundError"
  10072. }
  10073. }
  10074. }
  10075. }
  10076. },
  10077. "description": "Get one shell command, including its status and exit code once exited.",
  10078. "summary": "Get shell command"
  10079. },
  10080. "delete": {
  10081. "tags": ["shell"],
  10082. "operationId": "v2.shell.remove",
  10083. "parameters": [
  10084. {
  10085. "name": "id",
  10086. "in": "path",
  10087. "schema": {
  10088. "type": "string",
  10089. "allOf": [
  10090. {
  10091. "pattern": "^sh_"
  10092. }
  10093. ]
  10094. },
  10095. "required": true
  10096. },
  10097. {
  10098. "name": "location",
  10099. "in": "query",
  10100. "schema": {
  10101. "anyOf": [
  10102. {
  10103. "type": "object",
  10104. "properties": {
  10105. "directory": {
  10106. "anyOf": [
  10107. {
  10108. "type": "string"
  10109. },
  10110. {
  10111. "type": "null"
  10112. }
  10113. ]
  10114. },
  10115. "workspace": {
  10116. "anyOf": [
  10117. {
  10118. "type": "string"
  10119. },
  10120. {
  10121. "type": "null"
  10122. }
  10123. ]
  10124. }
  10125. },
  10126. "additionalProperties": false
  10127. },
  10128. {
  10129. "type": "null"
  10130. }
  10131. ]
  10132. },
  10133. "required": false,
  10134. "style": "deepObject",
  10135. "explode": true
  10136. }
  10137. ],
  10138. "security": [],
  10139. "responses": {
  10140. "204": {
  10141. "description": "<No Content>"
  10142. },
  10143. "400": {
  10144. "description": "InvalidRequestError",
  10145. "content": {
  10146. "application/json": {
  10147. "schema": {
  10148. "$ref": "#/components/schemas/InvalidRequestError"
  10149. }
  10150. }
  10151. }
  10152. },
  10153. "401": {
  10154. "description": "UnauthorizedError",
  10155. "content": {
  10156. "application/json": {
  10157. "schema": {
  10158. "$ref": "#/components/schemas/UnauthorizedError"
  10159. }
  10160. }
  10161. }
  10162. },
  10163. "404": {
  10164. "description": "ShellNotFoundError",
  10165. "content": {
  10166. "application/json": {
  10167. "schema": {
  10168. "$ref": "#/components/schemas/ShellNotFoundError"
  10169. }
  10170. }
  10171. }
  10172. }
  10173. },
  10174. "description": "Terminate and remove one shell command and its retained output.",
  10175. "summary": "Remove shell command"
  10176. }
  10177. },
  10178. "/api/shell/{id}/timeout": {
  10179. "patch": {
  10180. "tags": ["shell"],
  10181. "operationId": "v2.shell.timeout",
  10182. "parameters": [
  10183. {
  10184. "name": "id",
  10185. "in": "path",
  10186. "schema": {
  10187. "type": "string",
  10188. "allOf": [
  10189. {
  10190. "pattern": "^sh_"
  10191. }
  10192. ]
  10193. },
  10194. "required": true
  10195. },
  10196. {
  10197. "name": "location",
  10198. "in": "query",
  10199. "schema": {
  10200. "anyOf": [
  10201. {
  10202. "type": "object",
  10203. "properties": {
  10204. "directory": {
  10205. "anyOf": [
  10206. {
  10207. "type": "string"
  10208. },
  10209. {
  10210. "type": "null"
  10211. }
  10212. ]
  10213. },
  10214. "workspace": {
  10215. "anyOf": [
  10216. {
  10217. "type": "string"
  10218. },
  10219. {
  10220. "type": "null"
  10221. }
  10222. ]
  10223. }
  10224. },
  10225. "additionalProperties": false
  10226. },
  10227. {
  10228. "type": "null"
  10229. }
  10230. ]
  10231. },
  10232. "required": false,
  10233. "style": "deepObject",
  10234. "explode": true
  10235. }
  10236. ],
  10237. "security": [],
  10238. "responses": {
  10239. "200": {
  10240. "description": "Success",
  10241. "content": {
  10242. "application/json": {
  10243. "schema": {
  10244. "type": "object",
  10245. "properties": {
  10246. "location": {
  10247. "$ref": "#/components/schemas/Location.Info"
  10248. },
  10249. "data": {
  10250. "$ref": "#/components/schemas/Shell.Info1"
  10251. }
  10252. },
  10253. "required": ["location", "data"],
  10254. "additionalProperties": false
  10255. }
  10256. }
  10257. }
  10258. },
  10259. "400": {
  10260. "description": "InvalidRequestError",
  10261. "content": {
  10262. "application/json": {
  10263. "schema": {
  10264. "$ref": "#/components/schemas/InvalidRequestError"
  10265. }
  10266. }
  10267. }
  10268. },
  10269. "401": {
  10270. "description": "UnauthorizedError",
  10271. "content": {
  10272. "application/json": {
  10273. "schema": {
  10274. "$ref": "#/components/schemas/UnauthorizedError"
  10275. }
  10276. }
  10277. }
  10278. },
  10279. "404": {
  10280. "description": "ShellNotFoundError",
  10281. "content": {
  10282. "application/json": {
  10283. "schema": {
  10284. "$ref": "#/components/schemas/ShellNotFoundError"
  10285. }
  10286. }
  10287. }
  10288. }
  10289. },
  10290. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10291. "summary": "Update shell timeout",
  10292. "requestBody": {
  10293. "content": {
  10294. "application/json": {
  10295. "schema": {
  10296. "type": "object",
  10297. "properties": {
  10298. "timeout": {
  10299. "type": "integer",
  10300. "allOf": [
  10301. {
  10302. "minimum": 0
  10303. }
  10304. ]
  10305. }
  10306. },
  10307. "required": ["timeout"],
  10308. "additionalProperties": false
  10309. }
  10310. }
  10311. },
  10312. "required": true
  10313. }
  10314. }
  10315. },
  10316. "/api/shell/{id}/output": {
  10317. "get": {
  10318. "tags": ["shell"],
  10319. "operationId": "v2.shell.output",
  10320. "parameters": [
  10321. {
  10322. "name": "id",
  10323. "in": "path",
  10324. "schema": {
  10325. "type": "string",
  10326. "allOf": [
  10327. {
  10328. "pattern": "^sh_"
  10329. }
  10330. ]
  10331. },
  10332. "required": true
  10333. },
  10334. {
  10335. "name": "location",
  10336. "in": "query",
  10337. "schema": {
  10338. "anyOf": [
  10339. {
  10340. "type": "object",
  10341. "properties": {
  10342. "directory": {
  10343. "anyOf": [
  10344. {
  10345. "type": "string"
  10346. },
  10347. {
  10348. "type": "null"
  10349. }
  10350. ]
  10351. },
  10352. "workspace": {
  10353. "anyOf": [
  10354. {
  10355. "type": "string"
  10356. },
  10357. {
  10358. "type": "null"
  10359. }
  10360. ]
  10361. }
  10362. },
  10363. "additionalProperties": false
  10364. },
  10365. {
  10366. "type": "null"
  10367. }
  10368. ]
  10369. },
  10370. "required": false,
  10371. "style": "deepObject",
  10372. "explode": true
  10373. },
  10374. {
  10375. "name": "cursor",
  10376. "in": "query",
  10377. "schema": {
  10378. "type": "string",
  10379. "allOf": [
  10380. {
  10381. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10382. }
  10383. ]
  10384. },
  10385. "required": false
  10386. },
  10387. {
  10388. "name": "limit",
  10389. "in": "query",
  10390. "schema": {
  10391. "type": "string",
  10392. "allOf": [
  10393. {
  10394. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10395. }
  10396. ]
  10397. },
  10398. "required": false
  10399. }
  10400. ],
  10401. "security": [],
  10402. "responses": {
  10403. "200": {
  10404. "description": "Success",
  10405. "content": {
  10406. "application/json": {
  10407. "schema": {
  10408. "type": "object",
  10409. "properties": {
  10410. "location": {
  10411. "$ref": "#/components/schemas/Location.Info"
  10412. },
  10413. "data": {
  10414. "type": "object",
  10415. "properties": {
  10416. "output": {
  10417. "type": "string"
  10418. },
  10419. "cursor": {
  10420. "type": "integer",
  10421. "allOf": [
  10422. {
  10423. "minimum": 0
  10424. }
  10425. ]
  10426. },
  10427. "size": {
  10428. "type": "integer",
  10429. "allOf": [
  10430. {
  10431. "minimum": 0
  10432. }
  10433. ]
  10434. },
  10435. "truncated": {
  10436. "type": "boolean"
  10437. }
  10438. },
  10439. "required": ["output", "cursor", "size", "truncated"],
  10440. "additionalProperties": false
  10441. }
  10442. },
  10443. "required": ["location", "data"],
  10444. "additionalProperties": false
  10445. }
  10446. }
  10447. }
  10448. },
  10449. "400": {
  10450. "description": "InvalidRequestError",
  10451. "content": {
  10452. "application/json": {
  10453. "schema": {
  10454. "$ref": "#/components/schemas/InvalidRequestError"
  10455. }
  10456. }
  10457. }
  10458. },
  10459. "401": {
  10460. "description": "UnauthorizedError",
  10461. "content": {
  10462. "application/json": {
  10463. "schema": {
  10464. "$ref": "#/components/schemas/UnauthorizedError"
  10465. }
  10466. }
  10467. }
  10468. },
  10469. "404": {
  10470. "description": "ShellNotFoundError",
  10471. "content": {
  10472. "application/json": {
  10473. "schema": {
  10474. "$ref": "#/components/schemas/ShellNotFoundError"
  10475. }
  10476. }
  10477. }
  10478. }
  10479. },
  10480. "description": "Page through captured combined output by absolute byte cursor.",
  10481. "summary": "Read shell output"
  10482. }
  10483. },
  10484. "/api/question/request": {
  10485. "get": {
  10486. "tags": ["question"],
  10487. "operationId": "v2.question.request.list",
  10488. "parameters": [
  10489. {
  10490. "name": "location",
  10491. "in": "query",
  10492. "schema": {
  10493. "anyOf": [
  10494. {
  10495. "type": "object",
  10496. "properties": {
  10497. "directory": {
  10498. "anyOf": [
  10499. {
  10500. "type": "string"
  10501. },
  10502. {
  10503. "type": "null"
  10504. }
  10505. ]
  10506. },
  10507. "workspace": {
  10508. "anyOf": [
  10509. {
  10510. "type": "string"
  10511. },
  10512. {
  10513. "type": "null"
  10514. }
  10515. ]
  10516. }
  10517. },
  10518. "additionalProperties": false
  10519. },
  10520. {
  10521. "type": "null"
  10522. }
  10523. ]
  10524. },
  10525. "required": false,
  10526. "style": "deepObject",
  10527. "explode": true
  10528. }
  10529. ],
  10530. "security": [],
  10531. "responses": {
  10532. "200": {
  10533. "description": "Success",
  10534. "content": {
  10535. "application/json": {
  10536. "schema": {
  10537. "type": "object",
  10538. "properties": {
  10539. "location": {
  10540. "$ref": "#/components/schemas/Location.Info"
  10541. },
  10542. "data": {
  10543. "type": "array",
  10544. "items": {
  10545. "$ref": "#/components/schemas/Question.Request"
  10546. }
  10547. }
  10548. },
  10549. "required": ["location", "data"],
  10550. "additionalProperties": false
  10551. }
  10552. }
  10553. }
  10554. },
  10555. "400": {
  10556. "description": "InvalidRequestError",
  10557. "content": {
  10558. "application/json": {
  10559. "schema": {
  10560. "$ref": "#/components/schemas/InvalidRequestError"
  10561. }
  10562. }
  10563. }
  10564. },
  10565. "401": {
  10566. "description": "UnauthorizedError",
  10567. "content": {
  10568. "application/json": {
  10569. "schema": {
  10570. "$ref": "#/components/schemas/UnauthorizedError"
  10571. }
  10572. }
  10573. }
  10574. }
  10575. },
  10576. "description": "Retrieve pending question requests for a location.",
  10577. "summary": "List pending question requests"
  10578. }
  10579. },
  10580. "/api/session/{sessionID}/question": {
  10581. "get": {
  10582. "tags": ["question"],
  10583. "operationId": "v2.session.question.list",
  10584. "parameters": [
  10585. {
  10586. "name": "sessionID",
  10587. "in": "path",
  10588. "schema": {
  10589. "type": "string",
  10590. "allOf": [
  10591. {
  10592. "pattern": "^ses"
  10593. }
  10594. ]
  10595. },
  10596. "required": true
  10597. }
  10598. ],
  10599. "security": [],
  10600. "responses": {
  10601. "200": {
  10602. "description": "Success",
  10603. "content": {
  10604. "application/json": {
  10605. "schema": {
  10606. "type": "object",
  10607. "properties": {
  10608. "data": {
  10609. "type": "array",
  10610. "items": {
  10611. "$ref": "#/components/schemas/Question.Request"
  10612. }
  10613. }
  10614. },
  10615. "required": ["data"],
  10616. "additionalProperties": false
  10617. }
  10618. }
  10619. }
  10620. },
  10621. "400": {
  10622. "description": "InvalidRequestError",
  10623. "content": {
  10624. "application/json": {
  10625. "schema": {
  10626. "$ref": "#/components/schemas/InvalidRequestError"
  10627. }
  10628. }
  10629. }
  10630. },
  10631. "401": {
  10632. "description": "UnauthorizedError",
  10633. "content": {
  10634. "application/json": {
  10635. "schema": {
  10636. "$ref": "#/components/schemas/UnauthorizedError"
  10637. }
  10638. }
  10639. }
  10640. },
  10641. "404": {
  10642. "description": "SessionNotFoundError",
  10643. "content": {
  10644. "application/json": {
  10645. "schema": {
  10646. "anyOf": [
  10647. {
  10648. "$ref": "#/components/schemas/SessionNotFoundError"
  10649. },
  10650. {
  10651. "$ref": "#/components/schemas/SessionNotFoundError"
  10652. }
  10653. ]
  10654. }
  10655. }
  10656. }
  10657. }
  10658. },
  10659. "description": "Retrieve pending question requests owned by a session.",
  10660. "summary": "List session question requests"
  10661. }
  10662. },
  10663. "/api/session/{sessionID}/question/{requestID}/reply": {
  10664. "post": {
  10665. "tags": ["question"],
  10666. "operationId": "v2.session.question.reply",
  10667. "parameters": [
  10668. {
  10669. "name": "sessionID",
  10670. "in": "path",
  10671. "schema": {
  10672. "type": "string",
  10673. "allOf": [
  10674. {
  10675. "pattern": "^ses"
  10676. }
  10677. ]
  10678. },
  10679. "required": true
  10680. },
  10681. {
  10682. "name": "requestID",
  10683. "in": "path",
  10684. "schema": {
  10685. "type": "string",
  10686. "allOf": [
  10687. {
  10688. "pattern": "^que"
  10689. }
  10690. ]
  10691. },
  10692. "required": true
  10693. }
  10694. ],
  10695. "security": [],
  10696. "responses": {
  10697. "204": {
  10698. "description": "<No Content>"
  10699. },
  10700. "400": {
  10701. "description": "InvalidRequestError",
  10702. "content": {
  10703. "application/json": {
  10704. "schema": {
  10705. "$ref": "#/components/schemas/InvalidRequestError"
  10706. }
  10707. }
  10708. }
  10709. },
  10710. "401": {
  10711. "description": "UnauthorizedError",
  10712. "content": {
  10713. "application/json": {
  10714. "schema": {
  10715. "$ref": "#/components/schemas/UnauthorizedError"
  10716. }
  10717. }
  10718. }
  10719. },
  10720. "404": {
  10721. "description": "SessionNotFoundError | QuestionNotFoundError",
  10722. "content": {
  10723. "application/json": {
  10724. "schema": {
  10725. "anyOf": [
  10726. {
  10727. "$ref": "#/components/schemas/QuestionNotFoundError"
  10728. },
  10729. {
  10730. "$ref": "#/components/schemas/SessionNotFoundError"
  10731. },
  10732. {
  10733. "$ref": "#/components/schemas/SessionNotFoundError"
  10734. }
  10735. ]
  10736. }
  10737. }
  10738. }
  10739. }
  10740. },
  10741. "description": "Answer a pending question request owned by a session.",
  10742. "summary": "Reply to pending question request",
  10743. "requestBody": {
  10744. "content": {
  10745. "application/json": {
  10746. "schema": {
  10747. "$ref": "#/components/schemas/Question.Reply"
  10748. }
  10749. }
  10750. },
  10751. "required": true
  10752. }
  10753. }
  10754. },
  10755. "/api/session/{sessionID}/question/{requestID}/reject": {
  10756. "post": {
  10757. "tags": ["question"],
  10758. "operationId": "v2.session.question.reject",
  10759. "parameters": [
  10760. {
  10761. "name": "sessionID",
  10762. "in": "path",
  10763. "schema": {
  10764. "type": "string",
  10765. "allOf": [
  10766. {
  10767. "pattern": "^ses"
  10768. }
  10769. ]
  10770. },
  10771. "required": true
  10772. },
  10773. {
  10774. "name": "requestID",
  10775. "in": "path",
  10776. "schema": {
  10777. "type": "string",
  10778. "allOf": [
  10779. {
  10780. "pattern": "^que"
  10781. }
  10782. ]
  10783. },
  10784. "required": true
  10785. }
  10786. ],
  10787. "security": [],
  10788. "responses": {
  10789. "204": {
  10790. "description": "<No Content>"
  10791. },
  10792. "400": {
  10793. "description": "InvalidRequestError",
  10794. "content": {
  10795. "application/json": {
  10796. "schema": {
  10797. "$ref": "#/components/schemas/InvalidRequestError"
  10798. }
  10799. }
  10800. }
  10801. },
  10802. "401": {
  10803. "description": "UnauthorizedError",
  10804. "content": {
  10805. "application/json": {
  10806. "schema": {
  10807. "$ref": "#/components/schemas/UnauthorizedError"
  10808. }
  10809. }
  10810. }
  10811. },
  10812. "404": {
  10813. "description": "SessionNotFoundError | QuestionNotFoundError",
  10814. "content": {
  10815. "application/json": {
  10816. "schema": {
  10817. "anyOf": [
  10818. {
  10819. "$ref": "#/components/schemas/QuestionNotFoundError"
  10820. },
  10821. {
  10822. "$ref": "#/components/schemas/SessionNotFoundError"
  10823. },
  10824. {
  10825. "$ref": "#/components/schemas/SessionNotFoundError"
  10826. }
  10827. ]
  10828. }
  10829. }
  10830. }
  10831. }
  10832. },
  10833. "description": "Reject a pending question request owned by a session.",
  10834. "summary": "Reject pending question request"
  10835. }
  10836. },
  10837. "/api/reference": {
  10838. "get": {
  10839. "tags": ["reference"],
  10840. "operationId": "v2.reference.list",
  10841. "parameters": [
  10842. {
  10843. "name": "location",
  10844. "in": "query",
  10845. "schema": {
  10846. "anyOf": [
  10847. {
  10848. "type": "object",
  10849. "properties": {
  10850. "directory": {
  10851. "anyOf": [
  10852. {
  10853. "type": "string"
  10854. },
  10855. {
  10856. "type": "null"
  10857. }
  10858. ]
  10859. },
  10860. "workspace": {
  10861. "anyOf": [
  10862. {
  10863. "type": "string"
  10864. },
  10865. {
  10866. "type": "null"
  10867. }
  10868. ]
  10869. }
  10870. },
  10871. "additionalProperties": false
  10872. },
  10873. {
  10874. "type": "null"
  10875. }
  10876. ]
  10877. },
  10878. "required": false,
  10879. "style": "deepObject",
  10880. "explode": true
  10881. }
  10882. ],
  10883. "security": [],
  10884. "responses": {
  10885. "200": {
  10886. "description": "Success",
  10887. "content": {
  10888. "application/json": {
  10889. "schema": {
  10890. "type": "object",
  10891. "properties": {
  10892. "location": {
  10893. "$ref": "#/components/schemas/Location.Info"
  10894. },
  10895. "data": {
  10896. "type": "array",
  10897. "items": {
  10898. "$ref": "#/components/schemas/Reference.Info"
  10899. }
  10900. }
  10901. },
  10902. "required": ["location", "data"],
  10903. "additionalProperties": false
  10904. }
  10905. }
  10906. }
  10907. },
  10908. "400": {
  10909. "description": "InvalidRequestError",
  10910. "content": {
  10911. "application/json": {
  10912. "schema": {
  10913. "$ref": "#/components/schemas/InvalidRequestError"
  10914. }
  10915. }
  10916. }
  10917. },
  10918. "401": {
  10919. "description": "UnauthorizedError",
  10920. "content": {
  10921. "application/json": {
  10922. "schema": {
  10923. "$ref": "#/components/schemas/UnauthorizedError"
  10924. }
  10925. }
  10926. }
  10927. }
  10928. },
  10929. "description": "List references available in the requested location.",
  10930. "summary": "List references"
  10931. }
  10932. },
  10933. "/experimental/project/{projectID}/copy": {
  10934. "post": {
  10935. "tags": ["projectCopy"],
  10936. "operationId": "v2.projectCopy.create",
  10937. "parameters": [
  10938. {
  10939. "name": "projectID",
  10940. "in": "path",
  10941. "schema": {
  10942. "type": "string"
  10943. },
  10944. "required": true
  10945. },
  10946. {
  10947. "name": "location",
  10948. "in": "query",
  10949. "schema": {
  10950. "anyOf": [
  10951. {
  10952. "type": "object",
  10953. "properties": {
  10954. "directory": {
  10955. "anyOf": [
  10956. {
  10957. "type": "string"
  10958. },
  10959. {
  10960. "type": "null"
  10961. }
  10962. ]
  10963. },
  10964. "workspace": {
  10965. "anyOf": [
  10966. {
  10967. "type": "string"
  10968. },
  10969. {
  10970. "type": "null"
  10971. }
  10972. ]
  10973. }
  10974. },
  10975. "additionalProperties": false
  10976. },
  10977. {
  10978. "type": "null"
  10979. }
  10980. ]
  10981. },
  10982. "required": false,
  10983. "style": "deepObject",
  10984. "explode": true
  10985. }
  10986. ],
  10987. "security": [],
  10988. "responses": {
  10989. "200": {
  10990. "description": "ProjectCopy.Copy",
  10991. "content": {
  10992. "application/json": {
  10993. "schema": {
  10994. "$ref": "#/components/schemas/ProjectCopy.Copy"
  10995. }
  10996. }
  10997. }
  10998. },
  10999. "400": {
  11000. "description": "ProjectCopyError | InvalidRequestError",
  11001. "content": {
  11002. "application/json": {
  11003. "schema": {
  11004. "anyOf": [
  11005. {
  11006. "$ref": "#/components/schemas/ProjectCopyError"
  11007. },
  11008. {
  11009. "$ref": "#/components/schemas/InvalidRequestError"
  11010. }
  11011. ]
  11012. }
  11013. }
  11014. }
  11015. },
  11016. "401": {
  11017. "description": "UnauthorizedError",
  11018. "content": {
  11019. "application/json": {
  11020. "schema": {
  11021. "$ref": "#/components/schemas/UnauthorizedError"
  11022. }
  11023. }
  11024. }
  11025. }
  11026. },
  11027. "requestBody": {
  11028. "content": {
  11029. "application/json": {
  11030. "schema": {
  11031. "type": "object",
  11032. "properties": {
  11033. "strategy": {
  11034. "type": "string"
  11035. },
  11036. "directory": {
  11037. "type": "string"
  11038. },
  11039. "name": {
  11040. "type": "string"
  11041. }
  11042. },
  11043. "required": ["strategy", "directory"],
  11044. "additionalProperties": false
  11045. }
  11046. }
  11047. },
  11048. "required": true
  11049. }
  11050. },
  11051. "delete": {
  11052. "tags": ["projectCopy"],
  11053. "operationId": "v2.projectCopy.remove",
  11054. "parameters": [
  11055. {
  11056. "name": "projectID",
  11057. "in": "path",
  11058. "schema": {
  11059. "type": "string"
  11060. },
  11061. "required": true
  11062. },
  11063. {
  11064. "name": "location",
  11065. "in": "query",
  11066. "schema": {
  11067. "anyOf": [
  11068. {
  11069. "type": "object",
  11070. "properties": {
  11071. "directory": {
  11072. "anyOf": [
  11073. {
  11074. "type": "string"
  11075. },
  11076. {
  11077. "type": "null"
  11078. }
  11079. ]
  11080. },
  11081. "workspace": {
  11082. "anyOf": [
  11083. {
  11084. "type": "string"
  11085. },
  11086. {
  11087. "type": "null"
  11088. }
  11089. ]
  11090. }
  11091. },
  11092. "additionalProperties": false
  11093. },
  11094. {
  11095. "type": "null"
  11096. }
  11097. ]
  11098. },
  11099. "required": false,
  11100. "style": "deepObject",
  11101. "explode": true
  11102. }
  11103. ],
  11104. "security": [],
  11105. "responses": {
  11106. "204": {
  11107. "description": "<No Content>"
  11108. },
  11109. "400": {
  11110. "description": "ProjectCopyError | InvalidRequestError",
  11111. "content": {
  11112. "application/json": {
  11113. "schema": {
  11114. "anyOf": [
  11115. {
  11116. "$ref": "#/components/schemas/ProjectCopyError"
  11117. },
  11118. {
  11119. "$ref": "#/components/schemas/InvalidRequestError"
  11120. }
  11121. ]
  11122. }
  11123. }
  11124. }
  11125. },
  11126. "401": {
  11127. "description": "UnauthorizedError",
  11128. "content": {
  11129. "application/json": {
  11130. "schema": {
  11131. "$ref": "#/components/schemas/UnauthorizedError"
  11132. }
  11133. }
  11134. }
  11135. }
  11136. },
  11137. "requestBody": {
  11138. "content": {
  11139. "application/json": {
  11140. "schema": {
  11141. "type": "object",
  11142. "properties": {
  11143. "directory": {
  11144. "type": "string"
  11145. },
  11146. "force": {
  11147. "type": "boolean"
  11148. }
  11149. },
  11150. "required": ["directory", "force"],
  11151. "additionalProperties": false
  11152. }
  11153. }
  11154. },
  11155. "required": true
  11156. }
  11157. }
  11158. },
  11159. "/experimental/project/{projectID}/copy/refresh": {
  11160. "post": {
  11161. "tags": ["projectCopy"],
  11162. "operationId": "v2.projectCopy.refresh",
  11163. "parameters": [
  11164. {
  11165. "name": "projectID",
  11166. "in": "path",
  11167. "schema": {
  11168. "type": "string"
  11169. },
  11170. "required": true
  11171. },
  11172. {
  11173. "name": "location",
  11174. "in": "query",
  11175. "schema": {
  11176. "anyOf": [
  11177. {
  11178. "type": "object",
  11179. "properties": {
  11180. "directory": {
  11181. "anyOf": [
  11182. {
  11183. "type": "string"
  11184. },
  11185. {
  11186. "type": "null"
  11187. }
  11188. ]
  11189. },
  11190. "workspace": {
  11191. "anyOf": [
  11192. {
  11193. "type": "string"
  11194. },
  11195. {
  11196. "type": "null"
  11197. }
  11198. ]
  11199. }
  11200. },
  11201. "additionalProperties": false
  11202. },
  11203. {
  11204. "type": "null"
  11205. }
  11206. ]
  11207. },
  11208. "required": false,
  11209. "style": "deepObject",
  11210. "explode": true
  11211. }
  11212. ],
  11213. "security": [],
  11214. "responses": {
  11215. "204": {
  11216. "description": "<No Content>"
  11217. },
  11218. "400": {
  11219. "description": "ProjectCopyError | InvalidRequestError",
  11220. "content": {
  11221. "application/json": {
  11222. "schema": {
  11223. "anyOf": [
  11224. {
  11225. "$ref": "#/components/schemas/ProjectCopyError"
  11226. },
  11227. {
  11228. "$ref": "#/components/schemas/InvalidRequestError"
  11229. }
  11230. ]
  11231. }
  11232. }
  11233. }
  11234. },
  11235. "401": {
  11236. "description": "UnauthorizedError",
  11237. "content": {
  11238. "application/json": {
  11239. "schema": {
  11240. "$ref": "#/components/schemas/UnauthorizedError"
  11241. }
  11242. }
  11243. }
  11244. }
  11245. }
  11246. }
  11247. },
  11248. "/api/vcs": {
  11249. "get": {
  11250. "tags": ["vcs"],
  11251. "operationId": "v2.vcs.get",
  11252. "parameters": [
  11253. {
  11254. "name": "location",
  11255. "in": "query",
  11256. "schema": {
  11257. "anyOf": [
  11258. {
  11259. "type": "object",
  11260. "properties": {
  11261. "directory": {
  11262. "anyOf": [
  11263. {
  11264. "type": "string"
  11265. },
  11266. {
  11267. "type": "null"
  11268. }
  11269. ]
  11270. },
  11271. "workspace": {
  11272. "anyOf": [
  11273. {
  11274. "type": "string"
  11275. },
  11276. {
  11277. "type": "null"
  11278. }
  11279. ]
  11280. }
  11281. },
  11282. "additionalProperties": false
  11283. },
  11284. {
  11285. "type": "null"
  11286. }
  11287. ]
  11288. },
  11289. "required": false,
  11290. "style": "deepObject",
  11291. "explode": true
  11292. }
  11293. ],
  11294. "security": [],
  11295. "responses": {
  11296. "200": {
  11297. "description": "Success",
  11298. "content": {
  11299. "application/json": {
  11300. "schema": {
  11301. "type": "object",
  11302. "properties": {
  11303. "location": {
  11304. "$ref": "#/components/schemas/Location.Info"
  11305. },
  11306. "data": {
  11307. "$ref": "#/components/schemas/Vcs.Info"
  11308. }
  11309. },
  11310. "required": ["location", "data"],
  11311. "additionalProperties": false
  11312. }
  11313. }
  11314. }
  11315. },
  11316. "400": {
  11317. "description": "InvalidRequestError",
  11318. "content": {
  11319. "application/json": {
  11320. "schema": {
  11321. "$ref": "#/components/schemas/InvalidRequestError"
  11322. }
  11323. }
  11324. }
  11325. },
  11326. "401": {
  11327. "description": "UnauthorizedError",
  11328. "content": {
  11329. "application/json": {
  11330. "schema": {
  11331. "$ref": "#/components/schemas/UnauthorizedError"
  11332. }
  11333. }
  11334. }
  11335. }
  11336. },
  11337. "description": "Get current and default branch information for the requested location.",
  11338. "summary": "VCS info"
  11339. }
  11340. },
  11341. "/api/vcs/status": {
  11342. "get": {
  11343. "tags": ["vcs"],
  11344. "operationId": "v2.vcs.status",
  11345. "parameters": [
  11346. {
  11347. "name": "location",
  11348. "in": "query",
  11349. "schema": {
  11350. "anyOf": [
  11351. {
  11352. "type": "object",
  11353. "properties": {
  11354. "directory": {
  11355. "anyOf": [
  11356. {
  11357. "type": "string"
  11358. },
  11359. {
  11360. "type": "null"
  11361. }
  11362. ]
  11363. },
  11364. "workspace": {
  11365. "anyOf": [
  11366. {
  11367. "type": "string"
  11368. },
  11369. {
  11370. "type": "null"
  11371. }
  11372. ]
  11373. }
  11374. },
  11375. "additionalProperties": false
  11376. },
  11377. {
  11378. "type": "null"
  11379. }
  11380. ]
  11381. },
  11382. "required": false,
  11383. "style": "deepObject",
  11384. "explode": true
  11385. }
  11386. ],
  11387. "security": [],
  11388. "responses": {
  11389. "200": {
  11390. "description": "Success",
  11391. "content": {
  11392. "application/json": {
  11393. "schema": {
  11394. "type": "object",
  11395. "properties": {
  11396. "location": {
  11397. "$ref": "#/components/schemas/Location.Info"
  11398. },
  11399. "data": {
  11400. "type": "array",
  11401. "items": {
  11402. "$ref": "#/components/schemas/Vcs.FileStatus"
  11403. }
  11404. }
  11405. },
  11406. "required": ["location", "data"],
  11407. "additionalProperties": false
  11408. }
  11409. }
  11410. }
  11411. },
  11412. "400": {
  11413. "description": "InvalidRequestError",
  11414. "content": {
  11415. "application/json": {
  11416. "schema": {
  11417. "$ref": "#/components/schemas/InvalidRequestError"
  11418. }
  11419. }
  11420. }
  11421. },
  11422. "401": {
  11423. "description": "UnauthorizedError",
  11424. "content": {
  11425. "application/json": {
  11426. "schema": {
  11427. "$ref": "#/components/schemas/UnauthorizedError"
  11428. }
  11429. }
  11430. }
  11431. }
  11432. },
  11433. "description": "List uncommitted working-copy changes relative to the requested location.",
  11434. "summary": "VCS status"
  11435. }
  11436. },
  11437. "/api/vcs/diff": {
  11438. "get": {
  11439. "tags": ["vcs"],
  11440. "operationId": "v2.vcs.diff",
  11441. "parameters": [
  11442. {
  11443. "name": "location",
  11444. "in": "query",
  11445. "schema": {
  11446. "anyOf": [
  11447. {
  11448. "type": "object",
  11449. "properties": {
  11450. "directory": {
  11451. "anyOf": [
  11452. {
  11453. "type": "string"
  11454. },
  11455. {
  11456. "type": "null"
  11457. }
  11458. ]
  11459. },
  11460. "workspace": {
  11461. "anyOf": [
  11462. {
  11463. "type": "string"
  11464. },
  11465. {
  11466. "type": "null"
  11467. }
  11468. ]
  11469. }
  11470. },
  11471. "additionalProperties": false
  11472. },
  11473. {
  11474. "type": "null"
  11475. }
  11476. ]
  11477. },
  11478. "required": false,
  11479. "style": "deepObject",
  11480. "explode": true
  11481. },
  11482. {
  11483. "name": "mode",
  11484. "in": "query",
  11485. "schema": {
  11486. "$ref": "#/components/schemas/Vcs.Mode"
  11487. },
  11488. "required": true
  11489. },
  11490. {
  11491. "name": "context",
  11492. "in": "query",
  11493. "schema": {
  11494. "anyOf": [
  11495. {
  11496. "type": "string"
  11497. },
  11498. {
  11499. "type": "null"
  11500. }
  11501. ]
  11502. },
  11503. "required": false
  11504. }
  11505. ],
  11506. "security": [],
  11507. "responses": {
  11508. "200": {
  11509. "description": "Success",
  11510. "content": {
  11511. "application/json": {
  11512. "schema": {
  11513. "type": "object",
  11514. "properties": {
  11515. "location": {
  11516. "$ref": "#/components/schemas/Location.Info"
  11517. },
  11518. "data": {
  11519. "type": "array",
  11520. "items": {
  11521. "$ref": "#/components/schemas/FileDiff.Info"
  11522. }
  11523. }
  11524. },
  11525. "required": ["location", "data"],
  11526. "additionalProperties": false
  11527. }
  11528. }
  11529. }
  11530. },
  11531. "400": {
  11532. "description": "InvalidRequestError",
  11533. "content": {
  11534. "application/json": {
  11535. "schema": {
  11536. "$ref": "#/components/schemas/InvalidRequestError"
  11537. }
  11538. }
  11539. }
  11540. },
  11541. "401": {
  11542. "description": "UnauthorizedError",
  11543. "content": {
  11544. "application/json": {
  11545. "schema": {
  11546. "$ref": "#/components/schemas/UnauthorizedError"
  11547. }
  11548. }
  11549. }
  11550. }
  11551. },
  11552. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11553. "summary": "VCS diff"
  11554. }
  11555. },
  11556. "/api/debug/location": {
  11557. "get": {
  11558. "tags": ["debug"],
  11559. "operationId": "v2.debug.location.list",
  11560. "parameters": [],
  11561. "security": [],
  11562. "responses": {
  11563. "200": {
  11564. "description": "Success",
  11565. "content": {
  11566. "application/json": {
  11567. "schema": {
  11568. "type": "array",
  11569. "items": {
  11570. "$ref": "#/components/schemas/Location.Ref"
  11571. }
  11572. }
  11573. }
  11574. }
  11575. },
  11576. "400": {
  11577. "description": "InvalidRequestError",
  11578. "content": {
  11579. "application/json": {
  11580. "schema": {
  11581. "$ref": "#/components/schemas/InvalidRequestError"
  11582. }
  11583. }
  11584. }
  11585. },
  11586. "401": {
  11587. "description": "UnauthorizedError",
  11588. "content": {
  11589. "application/json": {
  11590. "schema": {
  11591. "$ref": "#/components/schemas/UnauthorizedError"
  11592. }
  11593. }
  11594. }
  11595. }
  11596. },
  11597. "description": "List locations currently loaded by the server.",
  11598. "summary": "List loaded locations"
  11599. },
  11600. "delete": {
  11601. "tags": ["debug"],
  11602. "operationId": "v2.debug.location.evict",
  11603. "parameters": [
  11604. {
  11605. "name": "location",
  11606. "in": "query",
  11607. "schema": {
  11608. "anyOf": [
  11609. {
  11610. "type": "object",
  11611. "properties": {
  11612. "directory": {
  11613. "anyOf": [
  11614. {
  11615. "type": "string"
  11616. },
  11617. {
  11618. "type": "null"
  11619. }
  11620. ]
  11621. },
  11622. "workspace": {
  11623. "anyOf": [
  11624. {
  11625. "type": "string"
  11626. },
  11627. {
  11628. "type": "null"
  11629. }
  11630. ]
  11631. }
  11632. },
  11633. "additionalProperties": false
  11634. },
  11635. {
  11636. "type": "null"
  11637. }
  11638. ]
  11639. },
  11640. "required": false,
  11641. "style": "deepObject",
  11642. "explode": true
  11643. }
  11644. ],
  11645. "security": [],
  11646. "responses": {
  11647. "204": {
  11648. "description": "<No Content>"
  11649. },
  11650. "400": {
  11651. "description": "InvalidRequestError",
  11652. "content": {
  11653. "application/json": {
  11654. "schema": {
  11655. "$ref": "#/components/schemas/InvalidRequestError"
  11656. }
  11657. }
  11658. }
  11659. },
  11660. "401": {
  11661. "description": "UnauthorizedError",
  11662. "content": {
  11663. "application/json": {
  11664. "schema": {
  11665. "$ref": "#/components/schemas/UnauthorizedError"
  11666. }
  11667. }
  11668. }
  11669. }
  11670. },
  11671. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11672. "summary": "Evict a loaded location"
  11673. }
  11674. },
  11675. "/api/experimental/migration/v1": {
  11676. "get": {
  11677. "tags": ["migration"],
  11678. "operationId": "v2.experimental.migration.v1.status",
  11679. "parameters": [],
  11680. "security": [],
  11681. "responses": {
  11682. "200": {
  11683. "description": "Success",
  11684. "content": {
  11685. "application/json": {
  11686. "schema": {
  11687. "anyOf": [
  11688. {
  11689. "type": "object",
  11690. "properties": {
  11691. "status": {
  11692. "type": "string",
  11693. "enum": ["required", "completed"]
  11694. }
  11695. },
  11696. "required": ["status"],
  11697. "additionalProperties": false
  11698. },
  11699. {
  11700. "type": "object",
  11701. "properties": {
  11702. "status": {
  11703. "type": "string",
  11704. "enum": ["running"]
  11705. },
  11706. "progress": {
  11707. "type": "object",
  11708. "properties": {
  11709. "label": {
  11710. "type": "string"
  11711. },
  11712. "numerator": {
  11713. "anyOf": [
  11714. {
  11715. "type": "integer",
  11716. "allOf": [
  11717. {
  11718. "minimum": 0
  11719. }
  11720. ]
  11721. },
  11722. {
  11723. "type": "null"
  11724. }
  11725. ]
  11726. },
  11727. "denominator": {
  11728. "anyOf": [
  11729. {
  11730. "type": "integer",
  11731. "allOf": [
  11732. {
  11733. "minimum": 0
  11734. }
  11735. ]
  11736. },
  11737. {
  11738. "type": "null"
  11739. }
  11740. ]
  11741. }
  11742. },
  11743. "required": ["label"],
  11744. "additionalProperties": false
  11745. }
  11746. },
  11747. "required": ["status", "progress"],
  11748. "additionalProperties": false
  11749. },
  11750. {
  11751. "type": "object",
  11752. "properties": {
  11753. "status": {
  11754. "type": "string",
  11755. "enum": ["error"]
  11756. },
  11757. "error": {
  11758. "type": "string"
  11759. }
  11760. },
  11761. "required": ["status", "error"],
  11762. "additionalProperties": false
  11763. }
  11764. ]
  11765. }
  11766. }
  11767. }
  11768. },
  11769. "400": {
  11770. "description": "InvalidRequestError",
  11771. "content": {
  11772. "application/json": {
  11773. "schema": {
  11774. "$ref": "#/components/schemas/InvalidRequestError"
  11775. }
  11776. }
  11777. }
  11778. },
  11779. "401": {
  11780. "description": "UnauthorizedError",
  11781. "content": {
  11782. "application/json": {
  11783. "schema": {
  11784. "$ref": "#/components/schemas/UnauthorizedError"
  11785. }
  11786. }
  11787. }
  11788. }
  11789. },
  11790. "description": "Return the progress of the V1 to V2 session history migration.",
  11791. "summary": "Get V1 migration status"
  11792. }
  11793. },
  11794. "/api/websearch/provider": {
  11795. "get": {
  11796. "tags": ["websearch"],
  11797. "operationId": "v2.websearch.providers",
  11798. "parameters": [
  11799. {
  11800. "name": "location",
  11801. "in": "query",
  11802. "schema": {
  11803. "anyOf": [
  11804. {
  11805. "type": "object",
  11806. "properties": {
  11807. "directory": {
  11808. "anyOf": [
  11809. {
  11810. "type": "string"
  11811. },
  11812. {
  11813. "type": "null"
  11814. }
  11815. ]
  11816. },
  11817. "workspace": {
  11818. "anyOf": [
  11819. {
  11820. "type": "string"
  11821. },
  11822. {
  11823. "type": "null"
  11824. }
  11825. ]
  11826. }
  11827. },
  11828. "additionalProperties": false
  11829. },
  11830. {
  11831. "type": "null"
  11832. }
  11833. ]
  11834. },
  11835. "required": false,
  11836. "style": "deepObject",
  11837. "explode": true
  11838. }
  11839. ],
  11840. "security": [],
  11841. "responses": {
  11842. "200": {
  11843. "description": "Success",
  11844. "content": {
  11845. "application/json": {
  11846. "schema": {
  11847. "type": "object",
  11848. "properties": {
  11849. "location": {
  11850. "$ref": "#/components/schemas/Location.Info"
  11851. },
  11852. "data": {
  11853. "type": "array",
  11854. "items": {
  11855. "$ref": "#/components/schemas/WebSearch.Provider"
  11856. }
  11857. }
  11858. },
  11859. "required": ["location", "data"],
  11860. "additionalProperties": false
  11861. }
  11862. }
  11863. }
  11864. },
  11865. "400": {
  11866. "description": "InvalidRequestError",
  11867. "content": {
  11868. "application/json": {
  11869. "schema": {
  11870. "$ref": "#/components/schemas/InvalidRequestError"
  11871. }
  11872. }
  11873. }
  11874. },
  11875. "401": {
  11876. "description": "UnauthorizedError",
  11877. "content": {
  11878. "application/json": {
  11879. "schema": {
  11880. "$ref": "#/components/schemas/UnauthorizedError"
  11881. }
  11882. }
  11883. }
  11884. },
  11885. "503": {
  11886. "description": "ServiceUnavailableError",
  11887. "content": {
  11888. "application/json": {
  11889. "schema": {
  11890. "$ref": "#/components/schemas/ServiceUnavailableError"
  11891. }
  11892. }
  11893. }
  11894. }
  11895. },
  11896. "description": "Return the registered web search providers.",
  11897. "summary": "List web search providers"
  11898. }
  11899. },
  11900. "/api/websearch": {
  11901. "post": {
  11902. "tags": ["websearch"],
  11903. "operationId": "v2.websearch.query",
  11904. "parameters": [
  11905. {
  11906. "name": "location",
  11907. "in": "query",
  11908. "schema": {
  11909. "anyOf": [
  11910. {
  11911. "type": "object",
  11912. "properties": {
  11913. "directory": {
  11914. "anyOf": [
  11915. {
  11916. "type": "string"
  11917. },
  11918. {
  11919. "type": "null"
  11920. }
  11921. ]
  11922. },
  11923. "workspace": {
  11924. "anyOf": [
  11925. {
  11926. "type": "string"
  11927. },
  11928. {
  11929. "type": "null"
  11930. }
  11931. ]
  11932. }
  11933. },
  11934. "additionalProperties": false
  11935. },
  11936. {
  11937. "type": "null"
  11938. }
  11939. ]
  11940. },
  11941. "required": false,
  11942. "style": "deepObject",
  11943. "explode": true
  11944. }
  11945. ],
  11946. "security": [],
  11947. "responses": {
  11948. "200": {
  11949. "description": "Success",
  11950. "content": {
  11951. "application/json": {
  11952. "schema": {
  11953. "type": "object",
  11954. "properties": {
  11955. "location": {
  11956. "$ref": "#/components/schemas/Location.Info"
  11957. },
  11958. "data": {
  11959. "$ref": "#/components/schemas/WebSearch.Response"
  11960. }
  11961. },
  11962. "required": ["location", "data"],
  11963. "additionalProperties": false
  11964. }
  11965. }
  11966. }
  11967. },
  11968. "400": {
  11969. "description": "InvalidRequestError",
  11970. "content": {
  11971. "application/json": {
  11972. "schema": {
  11973. "anyOf": [
  11974. {
  11975. "$ref": "#/components/schemas/InvalidRequestError1"
  11976. },
  11977. {
  11978. "$ref": "#/components/schemas/InvalidRequestError"
  11979. }
  11980. ]
  11981. }
  11982. }
  11983. }
  11984. },
  11985. "401": {
  11986. "description": "UnauthorizedError",
  11987. "content": {
  11988. "application/json": {
  11989. "schema": {
  11990. "$ref": "#/components/schemas/UnauthorizedError"
  11991. }
  11992. }
  11993. }
  11994. },
  11995. "503": {
  11996. "description": "ServiceUnavailableError",
  11997. "content": {
  11998. "application/json": {
  11999. "schema": {
  12000. "$ref": "#/components/schemas/ServiceUnavailableError"
  12001. }
  12002. }
  12003. }
  12004. }
  12005. },
  12006. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  12007. "summary": "Search the web",
  12008. "requestBody": {
  12009. "content": {
  12010. "application/json": {
  12011. "schema": {
  12012. "type": "object",
  12013. "properties": {
  12014. "query": {
  12015. "type": "string"
  12016. },
  12017. "providerID": {
  12018. "type": "string"
  12019. }
  12020. },
  12021. "required": ["query"],
  12022. "additionalProperties": false
  12023. }
  12024. }
  12025. },
  12026. "required": true
  12027. }
  12028. }
  12029. },
  12030. "/api/config": {
  12031. "get": {
  12032. "tags": ["config"],
  12033. "operationId": "v2.config.get",
  12034. "parameters": [
  12035. {
  12036. "name": "location",
  12037. "in": "query",
  12038. "schema": {
  12039. "anyOf": [
  12040. {
  12041. "type": "object",
  12042. "properties": {
  12043. "directory": {
  12044. "anyOf": [
  12045. {
  12046. "type": "string"
  12047. },
  12048. {
  12049. "type": "null"
  12050. }
  12051. ]
  12052. },
  12053. "workspace": {
  12054. "anyOf": [
  12055. {
  12056. "type": "string"
  12057. },
  12058. {
  12059. "type": "null"
  12060. }
  12061. ]
  12062. }
  12063. },
  12064. "additionalProperties": false
  12065. },
  12066. {
  12067. "type": "null"
  12068. }
  12069. ]
  12070. },
  12071. "required": false,
  12072. "style": "deepObject",
  12073. "explode": true
  12074. }
  12075. ],
  12076. "security": [],
  12077. "responses": {
  12078. "200": {
  12079. "description": "Success",
  12080. "content": {
  12081. "application/json": {
  12082. "schema": {
  12083. "type": "array",
  12084. "items": {
  12085. "$ref": "#/components/schemas/Config.Entry"
  12086. }
  12087. }
  12088. }
  12089. }
  12090. },
  12091. "400": {
  12092. "description": "InvalidRequestError",
  12093. "content": {
  12094. "application/json": {
  12095. "schema": {
  12096. "$ref": "#/components/schemas/InvalidRequestError"
  12097. }
  12098. }
  12099. }
  12100. },
  12101. "401": {
  12102. "description": "UnauthorizedError",
  12103. "content": {
  12104. "application/json": {
  12105. "schema": {
  12106. "$ref": "#/components/schemas/UnauthorizedError"
  12107. }
  12108. }
  12109. }
  12110. }
  12111. },
  12112. "description": "Return configuration documents and discovery sources for the requested location, from lowest to highest priority.",
  12113. "summary": "Get configuration"
  12114. }
  12115. }
  12116. },
  12117. "components": {
  12118. "schemas": {
  12119. "ServiceHealth": {
  12120. "type": "object",
  12121. "properties": {
  12122. "healthy": {
  12123. "type": "boolean",
  12124. "enum": [true]
  12125. },
  12126. "version": {
  12127. "type": "string"
  12128. },
  12129. "pid": {
  12130. "type": "integer",
  12131. "allOf": [
  12132. {
  12133. "exclusiveMinimum": 0
  12134. }
  12135. ]
  12136. }
  12137. },
  12138. "required": ["healthy", "version", "pid"],
  12139. "additionalProperties": false
  12140. },
  12141. "UnauthorizedError": {
  12142. "type": "object",
  12143. "properties": {
  12144. "_tag": {
  12145. "type": "string",
  12146. "enum": ["UnauthorizedError"]
  12147. },
  12148. "message": {
  12149. "type": "string"
  12150. }
  12151. },
  12152. "required": ["_tag", "message"],
  12153. "additionalProperties": false
  12154. },
  12155. "InvalidRequestError": {
  12156. "type": "object",
  12157. "properties": {
  12158. "_tag": {
  12159. "type": "string",
  12160. "enum": ["InvalidRequestError"]
  12161. },
  12162. "message": {
  12163. "type": "string"
  12164. },
  12165. "kind": {
  12166. "anyOf": [
  12167. {
  12168. "type": "string"
  12169. },
  12170. {
  12171. "type": "null"
  12172. }
  12173. ]
  12174. },
  12175. "field": {
  12176. "anyOf": [
  12177. {
  12178. "type": "string"
  12179. },
  12180. {
  12181. "type": "null"
  12182. }
  12183. ]
  12184. }
  12185. },
  12186. "required": ["_tag", "message"],
  12187. "additionalProperties": false
  12188. },
  12189. "ServiceStopRequest": {
  12190. "type": "object",
  12191. "properties": {
  12192. "instanceID": {
  12193. "type": "string"
  12194. }
  12195. },
  12196. "required": ["instanceID"],
  12197. "additionalProperties": false
  12198. },
  12199. "ServiceStopResponse": {
  12200. "type": "object",
  12201. "properties": {
  12202. "accepted": {
  12203. "type": "boolean"
  12204. }
  12205. },
  12206. "required": ["accepted"],
  12207. "additionalProperties": false
  12208. },
  12209. "Location.Info": {
  12210. "type": "object",
  12211. "properties": {
  12212. "directory": {
  12213. "type": "string"
  12214. },
  12215. "workspaceID": {
  12216. "type": "string",
  12217. "allOf": [
  12218. {
  12219. "pattern": "^wrk"
  12220. }
  12221. ]
  12222. },
  12223. "project": {
  12224. "type": "object",
  12225. "properties": {
  12226. "id": {
  12227. "type": "string"
  12228. },
  12229. "directory": {
  12230. "type": "string"
  12231. },
  12232. "canonical": {
  12233. "type": "string"
  12234. }
  12235. },
  12236. "required": ["id", "directory", "canonical"],
  12237. "additionalProperties": false
  12238. }
  12239. },
  12240. "required": ["directory", "project"],
  12241. "additionalProperties": false
  12242. },
  12243. "Model.Ref": {
  12244. "type": "object",
  12245. "properties": {
  12246. "id": {
  12247. "type": "string"
  12248. },
  12249. "providerID": {
  12250. "type": "string"
  12251. },
  12252. "variant": {
  12253. "type": "string"
  12254. }
  12255. },
  12256. "required": ["id", "providerID"],
  12257. "additionalProperties": false
  12258. },
  12259. "Provider.Settings": {
  12260. "type": "object"
  12261. },
  12262. "Provider.Request": {
  12263. "type": "object",
  12264. "properties": {
  12265. "settings": {
  12266. "$ref": "#/components/schemas/Provider.Settings"
  12267. },
  12268. "headers": {
  12269. "type": "object",
  12270. "additionalProperties": {
  12271. "type": "string"
  12272. }
  12273. },
  12274. "body": {
  12275. "type": "object"
  12276. }
  12277. },
  12278. "required": ["settings", "headers", "body"],
  12279. "additionalProperties": false
  12280. },
  12281. "Agent.Color": {
  12282. "type": "string"
  12283. },
  12284. "Permission.Effect": {
  12285. "type": "string",
  12286. "enum": ["allow", "deny", "ask"]
  12287. },
  12288. "Permission.Rule": {
  12289. "type": "object",
  12290. "properties": {
  12291. "action": {
  12292. "type": "string"
  12293. },
  12294. "resource": {
  12295. "type": "string"
  12296. },
  12297. "effect": {
  12298. "$ref": "#/components/schemas/Permission.Effect"
  12299. }
  12300. },
  12301. "required": ["action", "resource", "effect"],
  12302. "additionalProperties": false
  12303. },
  12304. "Permission.Ruleset": {
  12305. "type": "array",
  12306. "items": {
  12307. "$ref": "#/components/schemas/Permission.Rule"
  12308. }
  12309. },
  12310. "Agent.Info": {
  12311. "type": "object",
  12312. "properties": {
  12313. "id": {
  12314. "type": "string"
  12315. },
  12316. "name": {
  12317. "type": "string"
  12318. },
  12319. "model": {
  12320. "$ref": "#/components/schemas/Model.Ref"
  12321. },
  12322. "request": {
  12323. "$ref": "#/components/schemas/Provider.Request"
  12324. },
  12325. "system": {
  12326. "type": "string"
  12327. },
  12328. "description": {
  12329. "type": "string"
  12330. },
  12331. "mode": {
  12332. "type": "string",
  12333. "enum": ["subagent", "primary", "all"]
  12334. },
  12335. "hidden": {
  12336. "type": "boolean"
  12337. },
  12338. "color": {
  12339. "$ref": "#/components/schemas/Agent.Color"
  12340. },
  12341. "steps": {
  12342. "type": "integer",
  12343. "allOf": [
  12344. {
  12345. "exclusiveMinimum": 0
  12346. }
  12347. ]
  12348. },
  12349. "permissions": {
  12350. "$ref": "#/components/schemas/Permission.Ruleset"
  12351. }
  12352. },
  12353. "required": ["id", "name", "request", "mode", "hidden", "permissions"],
  12354. "additionalProperties": false
  12355. },
  12356. "AgentNotFoundError": {
  12357. "type": "object",
  12358. "properties": {
  12359. "_tag": {
  12360. "type": "string",
  12361. "enum": ["AgentNotFoundError"]
  12362. },
  12363. "agentID": {
  12364. "type": "string"
  12365. },
  12366. "message": {
  12367. "type": "string"
  12368. }
  12369. },
  12370. "required": ["_tag", "agentID", "message"],
  12371. "additionalProperties": false
  12372. },
  12373. "Plugin.Info": {
  12374. "type": "object",
  12375. "properties": {
  12376. "id": {
  12377. "type": "string"
  12378. }
  12379. },
  12380. "required": ["id"],
  12381. "additionalProperties": false
  12382. },
  12383. "Session.ForkBoundary": {
  12384. "anyOf": [
  12385. {
  12386. "type": "object",
  12387. "properties": {
  12388. "type": {
  12389. "type": "string",
  12390. "enum": ["before"]
  12391. },
  12392. "messageID": {
  12393. "type": "string",
  12394. "allOf": [
  12395. {
  12396. "pattern": "^msg_"
  12397. }
  12398. ]
  12399. }
  12400. },
  12401. "required": ["type", "messageID"],
  12402. "additionalProperties": false
  12403. },
  12404. {
  12405. "type": "object",
  12406. "properties": {
  12407. "type": {
  12408. "type": "string",
  12409. "enum": ["through"]
  12410. },
  12411. "messageID": {
  12412. "type": "string",
  12413. "allOf": [
  12414. {
  12415. "pattern": "^msg_"
  12416. }
  12417. ]
  12418. }
  12419. },
  12420. "required": ["type", "messageID"],
  12421. "additionalProperties": false
  12422. }
  12423. ]
  12424. },
  12425. "Money.USD": {
  12426. "type": "number"
  12427. },
  12428. "TokenUsage.Info": {
  12429. "type": "object",
  12430. "properties": {
  12431. "input": {
  12432. "type": "number"
  12433. },
  12434. "output": {
  12435. "type": "number"
  12436. },
  12437. "reasoning": {
  12438. "type": "number"
  12439. },
  12440. "cache": {
  12441. "type": "object",
  12442. "properties": {
  12443. "read": {
  12444. "type": "number"
  12445. },
  12446. "write": {
  12447. "type": "number"
  12448. }
  12449. },
  12450. "required": ["read", "write"],
  12451. "additionalProperties": false
  12452. }
  12453. },
  12454. "required": ["input", "output", "reasoning", "cache"],
  12455. "additionalProperties": false
  12456. },
  12457. "Location.Ref": {
  12458. "type": "object",
  12459. "properties": {
  12460. "directory": {
  12461. "type": "string"
  12462. },
  12463. "workspaceID": {
  12464. "type": "string",
  12465. "allOf": [
  12466. {
  12467. "pattern": "^wrk"
  12468. }
  12469. ]
  12470. }
  12471. },
  12472. "required": ["directory"],
  12473. "additionalProperties": false
  12474. },
  12475. "FileDiff.Info": {
  12476. "type": "object",
  12477. "properties": {
  12478. "file": {
  12479. "type": "string"
  12480. },
  12481. "patch": {
  12482. "type": "string"
  12483. },
  12484. "additions": {
  12485. "type": "integer",
  12486. "allOf": [
  12487. {
  12488. "minimum": 0
  12489. }
  12490. ]
  12491. },
  12492. "deletions": {
  12493. "type": "integer",
  12494. "allOf": [
  12495. {
  12496. "minimum": 0
  12497. }
  12498. ]
  12499. },
  12500. "status": {
  12501. "type": "string",
  12502. "enum": ["added", "deleted", "modified"]
  12503. }
  12504. },
  12505. "required": ["file", "patch", "additions", "deletions", "status"],
  12506. "additionalProperties": false
  12507. },
  12508. "Session.Revert": {
  12509. "type": "object",
  12510. "properties": {
  12511. "messageID": {
  12512. "type": "string",
  12513. "allOf": [
  12514. {
  12515. "pattern": "^msg_"
  12516. }
  12517. ]
  12518. },
  12519. "partID": {
  12520. "type": "string"
  12521. },
  12522. "snapshot": {
  12523. "type": "string"
  12524. },
  12525. "files": {
  12526. "type": "array",
  12527. "items": {
  12528. "$ref": "#/components/schemas/FileDiff.Info"
  12529. }
  12530. }
  12531. },
  12532. "required": ["messageID"],
  12533. "additionalProperties": false
  12534. },
  12535. "Session.Info": {
  12536. "type": "object",
  12537. "properties": {
  12538. "id": {
  12539. "type": "string",
  12540. "allOf": [
  12541. {
  12542. "pattern": "^ses"
  12543. }
  12544. ]
  12545. },
  12546. "parentID": {
  12547. "type": "string",
  12548. "allOf": [
  12549. {
  12550. "pattern": "^ses"
  12551. }
  12552. ]
  12553. },
  12554. "fork": {
  12555. "type": "object",
  12556. "properties": {
  12557. "sessionID": {
  12558. "type": "string",
  12559. "allOf": [
  12560. {
  12561. "pattern": "^ses"
  12562. }
  12563. ]
  12564. },
  12565. "boundary": {
  12566. "$ref": "#/components/schemas/Session.ForkBoundary"
  12567. }
  12568. },
  12569. "required": ["sessionID", "boundary"],
  12570. "additionalProperties": false
  12571. },
  12572. "projectID": {
  12573. "type": "string"
  12574. },
  12575. "agent": {
  12576. "type": "string"
  12577. },
  12578. "model": {
  12579. "$ref": "#/components/schemas/Model.Ref"
  12580. },
  12581. "cost": {
  12582. "$ref": "#/components/schemas/Money.USD"
  12583. },
  12584. "tokens": {
  12585. "$ref": "#/components/schemas/TokenUsage.Info"
  12586. },
  12587. "time": {
  12588. "type": "object",
  12589. "properties": {
  12590. "created": {
  12591. "type": "number"
  12592. },
  12593. "updated": {
  12594. "type": "number"
  12595. },
  12596. "archived": {
  12597. "type": "number"
  12598. }
  12599. },
  12600. "required": ["created", "updated"],
  12601. "additionalProperties": false
  12602. },
  12603. "title": {
  12604. "type": "string"
  12605. },
  12606. "location": {
  12607. "$ref": "#/components/schemas/Location.Ref"
  12608. },
  12609. "subpath": {
  12610. "type": "string"
  12611. },
  12612. "revert": {
  12613. "$ref": "#/components/schemas/Session.Revert"
  12614. }
  12615. },
  12616. "required": ["id", "projectID", "cost", "tokens", "time", "location"],
  12617. "additionalProperties": false
  12618. },
  12619. "SessionsResponse": {
  12620. "type": "object",
  12621. "properties": {
  12622. "data": {
  12623. "type": "array",
  12624. "items": {
  12625. "$ref": "#/components/schemas/Session.Info"
  12626. }
  12627. },
  12628. "cursor": {
  12629. "type": "object",
  12630. "properties": {
  12631. "previous": {
  12632. "anyOf": [
  12633. {
  12634. "type": "string"
  12635. },
  12636. {
  12637. "type": "null"
  12638. }
  12639. ]
  12640. },
  12641. "next": {
  12642. "anyOf": [
  12643. {
  12644. "type": "string"
  12645. },
  12646. {
  12647. "type": "null"
  12648. }
  12649. ]
  12650. }
  12651. },
  12652. "additionalProperties": false
  12653. }
  12654. },
  12655. "required": ["data", "cursor"],
  12656. "additionalProperties": false
  12657. },
  12658. "InvalidCursorError": {
  12659. "type": "object",
  12660. "properties": {
  12661. "_tag": {
  12662. "type": "string",
  12663. "enum": ["InvalidCursorError"]
  12664. },
  12665. "message": {
  12666. "type": "string"
  12667. }
  12668. },
  12669. "required": ["_tag", "message"],
  12670. "additionalProperties": false
  12671. },
  12672. "InvalidRequestError1": {
  12673. "type": "object",
  12674. "properties": {
  12675. "_tag": {
  12676. "type": "string",
  12677. "enum": ["InvalidRequestError"]
  12678. },
  12679. "message": {
  12680. "type": "string"
  12681. },
  12682. "kind": {
  12683. "anyOf": [
  12684. {
  12685. "type": "string"
  12686. },
  12687. {
  12688. "type": "null"
  12689. }
  12690. ]
  12691. },
  12692. "field": {
  12693. "anyOf": [
  12694. {
  12695. "type": "string"
  12696. },
  12697. {
  12698. "type": "null"
  12699. }
  12700. ]
  12701. }
  12702. },
  12703. "required": ["_tag", "message"],
  12704. "additionalProperties": false
  12705. },
  12706. "Session.Message.AgentSelected": {
  12707. "type": "object",
  12708. "properties": {
  12709. "id": {
  12710. "type": "string",
  12711. "allOf": [
  12712. {
  12713. "pattern": "^msg_"
  12714. }
  12715. ]
  12716. },
  12717. "metadata": {
  12718. "type": "object"
  12719. },
  12720. "time": {
  12721. "type": "object",
  12722. "properties": {
  12723. "created": {
  12724. "type": "number"
  12725. }
  12726. },
  12727. "required": ["created"],
  12728. "additionalProperties": false
  12729. },
  12730. "type": {
  12731. "type": "string",
  12732. "enum": ["agent-switched"]
  12733. },
  12734. "agent": {
  12735. "type": "string"
  12736. }
  12737. },
  12738. "required": ["id", "time", "type", "agent"],
  12739. "additionalProperties": false
  12740. },
  12741. "Session.Message.ModelSelected": {
  12742. "type": "object",
  12743. "properties": {
  12744. "id": {
  12745. "type": "string",
  12746. "allOf": [
  12747. {
  12748. "pattern": "^msg_"
  12749. }
  12750. ]
  12751. },
  12752. "metadata": {
  12753. "type": "object"
  12754. },
  12755. "time": {
  12756. "type": "object",
  12757. "properties": {
  12758. "created": {
  12759. "type": "number"
  12760. }
  12761. },
  12762. "required": ["created"],
  12763. "additionalProperties": false
  12764. },
  12765. "type": {
  12766. "type": "string",
  12767. "enum": ["model-switched"]
  12768. },
  12769. "model": {
  12770. "$ref": "#/components/schemas/Model.Ref"
  12771. },
  12772. "previous": {
  12773. "$ref": "#/components/schemas/Model.Ref"
  12774. }
  12775. },
  12776. "required": ["id", "time", "type", "model"],
  12777. "additionalProperties": false
  12778. },
  12779. "Prompt.Base64": {
  12780. "type": "string",
  12781. "allOf": [
  12782. {
  12783. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  12784. }
  12785. ]
  12786. },
  12787. "Prompt.FileSource": {
  12788. "anyOf": [
  12789. {
  12790. "type": "object",
  12791. "properties": {
  12792. "type": {
  12793. "type": "string",
  12794. "enum": ["inline"]
  12795. }
  12796. },
  12797. "required": ["type"],
  12798. "additionalProperties": false
  12799. },
  12800. {
  12801. "type": "object",
  12802. "properties": {
  12803. "type": {
  12804. "type": "string",
  12805. "enum": ["uri"]
  12806. },
  12807. "uri": {
  12808. "type": "string"
  12809. }
  12810. },
  12811. "required": ["type", "uri"],
  12812. "additionalProperties": false
  12813. }
  12814. ]
  12815. },
  12816. "Prompt.Mention": {
  12817. "type": "object",
  12818. "properties": {
  12819. "start": {
  12820. "type": "number"
  12821. },
  12822. "end": {
  12823. "type": "number"
  12824. },
  12825. "text": {
  12826. "type": "string"
  12827. }
  12828. },
  12829. "required": ["start", "end", "text"],
  12830. "additionalProperties": false
  12831. },
  12832. "Prompt.FileAttachment": {
  12833. "type": "object",
  12834. "properties": {
  12835. "data": {
  12836. "$ref": "#/components/schemas/Prompt.Base64"
  12837. },
  12838. "mime": {
  12839. "type": "string"
  12840. },
  12841. "source": {
  12842. "$ref": "#/components/schemas/Prompt.FileSource"
  12843. },
  12844. "name": {
  12845. "type": "string"
  12846. },
  12847. "description": {
  12848. "type": "string"
  12849. },
  12850. "mention": {
  12851. "$ref": "#/components/schemas/Prompt.Mention"
  12852. }
  12853. },
  12854. "required": ["data", "mime", "source"],
  12855. "additionalProperties": false
  12856. },
  12857. "Prompt.AgentAttachment": {
  12858. "type": "object",
  12859. "properties": {
  12860. "name": {
  12861. "type": "string"
  12862. },
  12863. "mention": {
  12864. "$ref": "#/components/schemas/Prompt.Mention"
  12865. }
  12866. },
  12867. "required": ["name"],
  12868. "additionalProperties": false
  12869. },
  12870. "Prompt.SkillAttachment": {
  12871. "type": "object",
  12872. "properties": {
  12873. "id": {
  12874. "type": "string"
  12875. },
  12876. "name": {
  12877. "type": "string"
  12878. },
  12879. "text": {
  12880. "type": "string"
  12881. },
  12882. "mention": {
  12883. "$ref": "#/components/schemas/Prompt.Mention"
  12884. }
  12885. },
  12886. "required": ["id", "name", "text"],
  12887. "additionalProperties": false
  12888. },
  12889. "Session.Message.User": {
  12890. "type": "object",
  12891. "properties": {
  12892. "id": {
  12893. "type": "string",
  12894. "allOf": [
  12895. {
  12896. "pattern": "^msg_"
  12897. }
  12898. ]
  12899. },
  12900. "metadata": {
  12901. "type": "object"
  12902. },
  12903. "time": {
  12904. "type": "object",
  12905. "properties": {
  12906. "created": {
  12907. "type": "number"
  12908. }
  12909. },
  12910. "required": ["created"],
  12911. "additionalProperties": false
  12912. },
  12913. "text": {
  12914. "type": "string"
  12915. },
  12916. "files": {
  12917. "type": "array",
  12918. "items": {
  12919. "$ref": "#/components/schemas/Prompt.FileAttachment"
  12920. }
  12921. },
  12922. "agents": {
  12923. "type": "array",
  12924. "items": {
  12925. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  12926. }
  12927. },
  12928. "skills": {
  12929. "type": "array",
  12930. "items": {
  12931. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  12932. }
  12933. },
  12934. "type": {
  12935. "type": "string",
  12936. "enum": ["user"]
  12937. }
  12938. },
  12939. "required": ["id", "time", "text", "type"],
  12940. "additionalProperties": false
  12941. },
  12942. "Session.Message.Synthetic": {
  12943. "type": "object",
  12944. "properties": {
  12945. "id": {
  12946. "type": "string",
  12947. "allOf": [
  12948. {
  12949. "pattern": "^msg_"
  12950. }
  12951. ]
  12952. },
  12953. "metadata": {
  12954. "type": "object"
  12955. },
  12956. "time": {
  12957. "type": "object",
  12958. "properties": {
  12959. "created": {
  12960. "type": "number"
  12961. }
  12962. },
  12963. "required": ["created"],
  12964. "additionalProperties": false
  12965. },
  12966. "text": {
  12967. "type": "string"
  12968. },
  12969. "description": {
  12970. "type": "string"
  12971. },
  12972. "type": {
  12973. "type": "string",
  12974. "enum": ["synthetic"]
  12975. }
  12976. },
  12977. "required": ["id", "time", "text", "type"],
  12978. "additionalProperties": false
  12979. },
  12980. "Session.Message.System": {
  12981. "type": "object",
  12982. "properties": {
  12983. "id": {
  12984. "type": "string",
  12985. "allOf": [
  12986. {
  12987. "pattern": "^msg_"
  12988. }
  12989. ]
  12990. },
  12991. "metadata": {
  12992. "type": "object"
  12993. },
  12994. "time": {
  12995. "type": "object",
  12996. "properties": {
  12997. "created": {
  12998. "type": "number"
  12999. }
  13000. },
  13001. "required": ["created"],
  13002. "additionalProperties": false
  13003. },
  13004. "type": {
  13005. "type": "string",
  13006. "enum": ["system"]
  13007. },
  13008. "text": {
  13009. "type": "string"
  13010. }
  13011. },
  13012. "required": ["id", "time", "type", "text"],
  13013. "additionalProperties": false
  13014. },
  13015. "Session.Message.Skill": {
  13016. "type": "object",
  13017. "properties": {
  13018. "id": {
  13019. "type": "string",
  13020. "allOf": [
  13021. {
  13022. "pattern": "^msg_"
  13023. }
  13024. ]
  13025. },
  13026. "metadata": {
  13027. "type": "object"
  13028. },
  13029. "time": {
  13030. "type": "object",
  13031. "properties": {
  13032. "created": {
  13033. "type": "number"
  13034. }
  13035. },
  13036. "required": ["created"],
  13037. "additionalProperties": false
  13038. },
  13039. "type": {
  13040. "type": "string",
  13041. "enum": ["skill"]
  13042. },
  13043. "skill": {
  13044. "type": "string"
  13045. },
  13046. "name": {
  13047. "type": "string"
  13048. },
  13049. "text": {
  13050. "type": "string"
  13051. }
  13052. },
  13053. "required": ["id", "time", "type", "skill", "name", "text"],
  13054. "additionalProperties": false
  13055. },
  13056. "Session.Message.Shell": {
  13057. "type": "object",
  13058. "properties": {
  13059. "id": {
  13060. "type": "string",
  13061. "allOf": [
  13062. {
  13063. "pattern": "^msg_"
  13064. }
  13065. ]
  13066. },
  13067. "metadata": {
  13068. "type": "object"
  13069. },
  13070. "time": {
  13071. "type": "object",
  13072. "properties": {
  13073. "created": {
  13074. "type": "number"
  13075. },
  13076. "completed": {
  13077. "type": "number"
  13078. }
  13079. },
  13080. "required": ["created"],
  13081. "additionalProperties": false
  13082. },
  13083. "type": {
  13084. "type": "string",
  13085. "enum": ["shell"]
  13086. },
  13087. "shellID": {
  13088. "type": "string",
  13089. "allOf": [
  13090. {
  13091. "pattern": "^sh_"
  13092. }
  13093. ]
  13094. },
  13095. "command": {
  13096. "type": "string"
  13097. },
  13098. "status": {
  13099. "type": "string",
  13100. "enum": ["running", "exited", "timeout", "killed"]
  13101. },
  13102. "exit": {
  13103. "anyOf": [
  13104. {
  13105. "anyOf": [
  13106. {
  13107. "type": "number"
  13108. },
  13109. {
  13110. "type": "string",
  13111. "enum": ["NaN"]
  13112. },
  13113. {
  13114. "type": "string",
  13115. "enum": ["Infinity"]
  13116. },
  13117. {
  13118. "type": "string",
  13119. "enum": ["-Infinity"]
  13120. }
  13121. ]
  13122. },
  13123. {
  13124. "type": "string",
  13125. "enum": ["Infinity", "-Infinity", "NaN"]
  13126. }
  13127. ]
  13128. },
  13129. "output": {
  13130. "type": "object",
  13131. "properties": {
  13132. "output": {
  13133. "type": "string"
  13134. },
  13135. "cursor": {
  13136. "type": "integer",
  13137. "allOf": [
  13138. {
  13139. "minimum": 0
  13140. }
  13141. ]
  13142. },
  13143. "size": {
  13144. "type": "integer",
  13145. "allOf": [
  13146. {
  13147. "minimum": 0
  13148. }
  13149. ]
  13150. },
  13151. "truncated": {
  13152. "type": "boolean"
  13153. }
  13154. },
  13155. "required": ["output", "cursor", "size", "truncated"],
  13156. "additionalProperties": false
  13157. }
  13158. },
  13159. "required": ["id", "time", "type", "shellID", "command", "status"],
  13160. "additionalProperties": false
  13161. },
  13162. "Session.Message.ProviderState": {
  13163. "type": "object"
  13164. },
  13165. "Session.Message.Assistant.Text": {
  13166. "type": "object",
  13167. "properties": {
  13168. "type": {
  13169. "type": "string",
  13170. "enum": ["text"]
  13171. },
  13172. "text": {
  13173. "type": "string"
  13174. },
  13175. "state": {
  13176. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13177. }
  13178. },
  13179. "required": ["type", "text"],
  13180. "additionalProperties": false
  13181. },
  13182. "Session.Message.Assistant.Reasoning": {
  13183. "type": "object",
  13184. "properties": {
  13185. "type": {
  13186. "type": "string",
  13187. "enum": ["reasoning"]
  13188. },
  13189. "text": {
  13190. "type": "string"
  13191. },
  13192. "state": {
  13193. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13194. },
  13195. "time": {
  13196. "type": "object",
  13197. "properties": {
  13198. "created": {
  13199. "type": "number"
  13200. },
  13201. "completed": {
  13202. "type": "number"
  13203. }
  13204. },
  13205. "required": ["created"],
  13206. "additionalProperties": false
  13207. }
  13208. },
  13209. "required": ["type", "text"],
  13210. "additionalProperties": false
  13211. },
  13212. "Session.Message.ToolState.Streaming": {
  13213. "type": "object",
  13214. "properties": {
  13215. "status": {
  13216. "type": "string",
  13217. "enum": ["streaming"]
  13218. },
  13219. "input": {
  13220. "type": "string"
  13221. }
  13222. },
  13223. "required": ["status", "input"],
  13224. "additionalProperties": false
  13225. },
  13226. "Session.Message.ToolState.Running": {
  13227. "type": "object",
  13228. "properties": {
  13229. "status": {
  13230. "type": "string",
  13231. "enum": ["running"]
  13232. },
  13233. "input": {
  13234. "type": "object"
  13235. },
  13236. "metadata": {
  13237. "type": "object"
  13238. }
  13239. },
  13240. "required": ["status", "input", "metadata"],
  13241. "additionalProperties": false
  13242. },
  13243. "Tool.TextContent": {
  13244. "type": "object",
  13245. "properties": {
  13246. "type": {
  13247. "type": "string",
  13248. "enum": ["text"]
  13249. },
  13250. "text": {
  13251. "type": "string"
  13252. }
  13253. },
  13254. "required": ["type", "text"],
  13255. "additionalProperties": false
  13256. },
  13257. "Tool.FileContent": {
  13258. "type": "object",
  13259. "properties": {
  13260. "type": {
  13261. "type": "string",
  13262. "enum": ["file"]
  13263. },
  13264. "uri": {
  13265. "type": "string"
  13266. },
  13267. "mime": {
  13268. "type": "string"
  13269. },
  13270. "name": {
  13271. "anyOf": [
  13272. {
  13273. "type": "string"
  13274. },
  13275. {
  13276. "type": "null"
  13277. }
  13278. ]
  13279. }
  13280. },
  13281. "required": ["type", "uri", "mime"],
  13282. "additionalProperties": false
  13283. },
  13284. "Tool.Content": {
  13285. "anyOf": [
  13286. {
  13287. "$ref": "#/components/schemas/Tool.TextContent"
  13288. },
  13289. {
  13290. "$ref": "#/components/schemas/Tool.FileContent"
  13291. }
  13292. ]
  13293. },
  13294. "Session.Message.ToolState.Completed": {
  13295. "type": "object",
  13296. "properties": {
  13297. "status": {
  13298. "type": "string",
  13299. "enum": ["completed"]
  13300. },
  13301. "input": {
  13302. "type": "object"
  13303. },
  13304. "content": {
  13305. "type": "array",
  13306. "prefixItems": [
  13307. {
  13308. "$ref": "#/components/schemas/Tool.Content"
  13309. }
  13310. ],
  13311. "minItems": 1,
  13312. "items": {
  13313. "$ref": "#/components/schemas/Tool.Content"
  13314. }
  13315. },
  13316. "metadata": {
  13317. "type": "object"
  13318. }
  13319. },
  13320. "required": ["status", "input", "content"],
  13321. "additionalProperties": false
  13322. },
  13323. "Session.StructuredError": {
  13324. "type": "object",
  13325. "properties": {
  13326. "type": {
  13327. "type": "string"
  13328. },
  13329. "message": {
  13330. "type": "string"
  13331. },
  13332. "status": {
  13333. "type": "integer",
  13334. "allOf": [
  13335. {
  13336. "minimum": 100,
  13337. "maximum": 599
  13338. }
  13339. ]
  13340. }
  13341. },
  13342. "required": ["type", "message"],
  13343. "additionalProperties": false
  13344. },
  13345. "Session.Message.ToolState.Error": {
  13346. "type": "object",
  13347. "properties": {
  13348. "status": {
  13349. "type": "string",
  13350. "enum": ["error"]
  13351. },
  13352. "input": {
  13353. "type": "object"
  13354. },
  13355. "error": {
  13356. "$ref": "#/components/schemas/Session.StructuredError"
  13357. },
  13358. "content": {
  13359. "type": "array",
  13360. "prefixItems": [
  13361. {
  13362. "$ref": "#/components/schemas/Tool.Content"
  13363. }
  13364. ],
  13365. "minItems": 1,
  13366. "items": {
  13367. "$ref": "#/components/schemas/Tool.Content"
  13368. }
  13369. },
  13370. "metadata": {
  13371. "type": "object"
  13372. }
  13373. },
  13374. "required": ["status", "input", "error"],
  13375. "additionalProperties": false
  13376. },
  13377. "Session.Message.Assistant.Tool": {
  13378. "type": "object",
  13379. "properties": {
  13380. "type": {
  13381. "type": "string",
  13382. "enum": ["tool"]
  13383. },
  13384. "id": {
  13385. "type": "string"
  13386. },
  13387. "name": {
  13388. "type": "string"
  13389. },
  13390. "executed": {
  13391. "type": "boolean"
  13392. },
  13393. "providerState": {
  13394. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13395. },
  13396. "providerResultState": {
  13397. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13398. },
  13399. "state": {
  13400. "anyOf": [
  13401. {
  13402. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  13403. },
  13404. {
  13405. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  13406. },
  13407. {
  13408. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  13409. },
  13410. {
  13411. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  13412. }
  13413. ]
  13414. },
  13415. "time": {
  13416. "type": "object",
  13417. "properties": {
  13418. "created": {
  13419. "type": "number"
  13420. },
  13421. "ran": {
  13422. "type": "number"
  13423. },
  13424. "completed": {
  13425. "type": "number"
  13426. }
  13427. },
  13428. "required": ["created"],
  13429. "additionalProperties": false
  13430. }
  13431. },
  13432. "required": ["type", "id", "name", "state", "time"],
  13433. "additionalProperties": false
  13434. },
  13435. "Session.Message.Assistant.Retry": {
  13436. "type": "object",
  13437. "properties": {
  13438. "attempt": {
  13439. "type": "integer",
  13440. "allOf": [
  13441. {
  13442. "exclusiveMinimum": 0
  13443. }
  13444. ]
  13445. },
  13446. "at": {
  13447. "type": "number"
  13448. },
  13449. "error": {
  13450. "$ref": "#/components/schemas/Session.StructuredError"
  13451. }
  13452. },
  13453. "required": ["attempt", "at", "error"],
  13454. "additionalProperties": false
  13455. },
  13456. "Session.Message.Assistant": {
  13457. "type": "object",
  13458. "properties": {
  13459. "id": {
  13460. "type": "string",
  13461. "allOf": [
  13462. {
  13463. "pattern": "^msg_"
  13464. }
  13465. ]
  13466. },
  13467. "metadata": {
  13468. "type": "object"
  13469. },
  13470. "time": {
  13471. "type": "object",
  13472. "properties": {
  13473. "created": {
  13474. "type": "number"
  13475. },
  13476. "completed": {
  13477. "type": "number"
  13478. }
  13479. },
  13480. "required": ["created"],
  13481. "additionalProperties": false
  13482. },
  13483. "type": {
  13484. "type": "string",
  13485. "enum": ["assistant"]
  13486. },
  13487. "agent": {
  13488. "type": "string"
  13489. },
  13490. "model": {
  13491. "$ref": "#/components/schemas/Model.Ref"
  13492. },
  13493. "content": {
  13494. "type": "array",
  13495. "items": {
  13496. "anyOf": [
  13497. {
  13498. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  13499. },
  13500. {
  13501. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  13502. },
  13503. {
  13504. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  13505. }
  13506. ]
  13507. }
  13508. },
  13509. "snapshot": {
  13510. "type": "object",
  13511. "properties": {
  13512. "start": {
  13513. "type": "string"
  13514. },
  13515. "end": {
  13516. "type": "string"
  13517. },
  13518. "files": {
  13519. "type": "array",
  13520. "items": {
  13521. "type": "string"
  13522. }
  13523. }
  13524. },
  13525. "additionalProperties": false
  13526. },
  13527. "finish": {
  13528. "type": "string",
  13529. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  13530. },
  13531. "cost": {
  13532. "$ref": "#/components/schemas/Money.USD"
  13533. },
  13534. "tokens": {
  13535. "$ref": "#/components/schemas/TokenUsage.Info"
  13536. },
  13537. "error": {
  13538. "$ref": "#/components/schemas/Session.StructuredError"
  13539. },
  13540. "retry": {
  13541. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  13542. }
  13543. },
  13544. "required": ["id", "time", "type", "agent", "model", "content"],
  13545. "additionalProperties": false
  13546. },
  13547. "Session.Message.Compaction.Running": {
  13548. "type": "object",
  13549. "properties": {
  13550. "type": {
  13551. "type": "string",
  13552. "enum": ["compaction"]
  13553. },
  13554. "id": {
  13555. "type": "string",
  13556. "allOf": [
  13557. {
  13558. "pattern": "^msg_"
  13559. }
  13560. ]
  13561. },
  13562. "metadata": {
  13563. "type": "object"
  13564. },
  13565. "time": {
  13566. "type": "object",
  13567. "properties": {
  13568. "created": {
  13569. "type": "number"
  13570. }
  13571. },
  13572. "required": ["created"],
  13573. "additionalProperties": false
  13574. },
  13575. "status": {
  13576. "type": "string",
  13577. "enum": ["running"]
  13578. },
  13579. "reason": {
  13580. "type": "string",
  13581. "enum": ["auto", "manual"]
  13582. },
  13583. "summary": {
  13584. "type": "string"
  13585. },
  13586. "recent": {
  13587. "type": "string"
  13588. }
  13589. },
  13590. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13591. "additionalProperties": false
  13592. },
  13593. "Session.Message.Compaction.Completed": {
  13594. "type": "object",
  13595. "properties": {
  13596. "type": {
  13597. "type": "string",
  13598. "enum": ["compaction"]
  13599. },
  13600. "id": {
  13601. "type": "string",
  13602. "allOf": [
  13603. {
  13604. "pattern": "^msg_"
  13605. }
  13606. ]
  13607. },
  13608. "metadata": {
  13609. "type": "object"
  13610. },
  13611. "time": {
  13612. "type": "object",
  13613. "properties": {
  13614. "created": {
  13615. "type": "number"
  13616. }
  13617. },
  13618. "required": ["created"],
  13619. "additionalProperties": false
  13620. },
  13621. "status": {
  13622. "type": "string",
  13623. "enum": ["completed"]
  13624. },
  13625. "reason": {
  13626. "type": "string",
  13627. "enum": ["auto", "manual"]
  13628. },
  13629. "summary": {
  13630. "type": "string"
  13631. },
  13632. "recent": {
  13633. "type": "string"
  13634. }
  13635. },
  13636. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13637. "additionalProperties": false
  13638. },
  13639. "Session.Message.Compaction.Failed": {
  13640. "type": "object",
  13641. "properties": {
  13642. "type": {
  13643. "type": "string",
  13644. "enum": ["compaction"]
  13645. },
  13646. "id": {
  13647. "type": "string",
  13648. "allOf": [
  13649. {
  13650. "pattern": "^msg_"
  13651. }
  13652. ]
  13653. },
  13654. "metadata": {
  13655. "type": "object"
  13656. },
  13657. "time": {
  13658. "type": "object",
  13659. "properties": {
  13660. "created": {
  13661. "type": "number"
  13662. }
  13663. },
  13664. "required": ["created"],
  13665. "additionalProperties": false
  13666. },
  13667. "status": {
  13668. "type": "string",
  13669. "enum": ["failed"]
  13670. },
  13671. "reason": {
  13672. "type": "string",
  13673. "enum": ["auto", "manual"]
  13674. },
  13675. "error": {
  13676. "$ref": "#/components/schemas/Session.StructuredError"
  13677. }
  13678. },
  13679. "required": ["type", "id", "time", "status", "reason", "error"],
  13680. "additionalProperties": false
  13681. },
  13682. "Session.Message.Compaction": {
  13683. "anyOf": [
  13684. {
  13685. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  13686. },
  13687. {
  13688. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  13689. },
  13690. {
  13691. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  13692. }
  13693. ]
  13694. },
  13695. "Session.Message.Info": {
  13696. "anyOf": [
  13697. {
  13698. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  13699. },
  13700. {
  13701. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  13702. },
  13703. {
  13704. "$ref": "#/components/schemas/Session.Message.User"
  13705. },
  13706. {
  13707. "$ref": "#/components/schemas/Session.Message.Synthetic"
  13708. },
  13709. {
  13710. "$ref": "#/components/schemas/Session.Message.System"
  13711. },
  13712. {
  13713. "$ref": "#/components/schemas/Session.Message.Skill"
  13714. },
  13715. {
  13716. "$ref": "#/components/schemas/Session.Message.Shell"
  13717. },
  13718. {
  13719. "$ref": "#/components/schemas/Session.Message.Assistant"
  13720. },
  13721. {
  13722. "$ref": "#/components/schemas/Session.Message.Compaction"
  13723. }
  13724. ]
  13725. },
  13726. "ConflictError": {
  13727. "type": "object",
  13728. "properties": {
  13729. "_tag": {
  13730. "type": "string",
  13731. "enum": ["ConflictError"]
  13732. },
  13733. "message": {
  13734. "type": "string"
  13735. },
  13736. "resource": {
  13737. "anyOf": [
  13738. {
  13739. "type": "string"
  13740. },
  13741. {
  13742. "type": "null"
  13743. }
  13744. ]
  13745. }
  13746. },
  13747. "required": ["_tag", "message"],
  13748. "additionalProperties": false
  13749. },
  13750. "SessionTransfer.Data": {
  13751. "type": "object",
  13752. "properties": {
  13753. "info": {
  13754. "$ref": "#/components/schemas/Session.Info"
  13755. },
  13756. "messages": {
  13757. "type": "array",
  13758. "items": {
  13759. "$ref": "#/components/schemas/Session.Message.Info"
  13760. }
  13761. }
  13762. },
  13763. "required": ["info", "messages"],
  13764. "additionalProperties": false
  13765. },
  13766. "SessionNotFoundError": {
  13767. "type": "object",
  13768. "properties": {
  13769. "_tag": {
  13770. "type": "string",
  13771. "enum": ["SessionNotFoundError"]
  13772. },
  13773. "sessionID": {
  13774. "type": "string"
  13775. },
  13776. "message": {
  13777. "type": "string"
  13778. }
  13779. },
  13780. "required": ["_tag", "sessionID", "message"],
  13781. "additionalProperties": false
  13782. },
  13783. "UnknownError": {
  13784. "type": "object",
  13785. "properties": {
  13786. "_tag": {
  13787. "type": "string",
  13788. "enum": ["UnknownError"]
  13789. },
  13790. "message": {
  13791. "type": "string"
  13792. },
  13793. "ref": {
  13794. "anyOf": [
  13795. {
  13796. "type": "string"
  13797. },
  13798. {
  13799. "type": "null"
  13800. }
  13801. ]
  13802. }
  13803. },
  13804. "required": ["_tag", "message"],
  13805. "additionalProperties": false
  13806. },
  13807. "SessionActive": {
  13808. "type": "object",
  13809. "properties": {
  13810. "type": {
  13811. "type": "string",
  13812. "enum": ["running"]
  13813. }
  13814. },
  13815. "required": ["type"],
  13816. "additionalProperties": false
  13817. },
  13818. "Session.ForkRequestBoundary": {
  13819. "anyOf": [
  13820. {
  13821. "type": "object",
  13822. "properties": {
  13823. "type": {
  13824. "type": "string",
  13825. "enum": ["before"]
  13826. },
  13827. "messageID": {
  13828. "type": "string",
  13829. "allOf": [
  13830. {
  13831. "pattern": "^msg_"
  13832. }
  13833. ]
  13834. }
  13835. },
  13836. "required": ["type", "messageID"],
  13837. "additionalProperties": false
  13838. },
  13839. {
  13840. "type": "object",
  13841. "properties": {
  13842. "type": {
  13843. "type": "string",
  13844. "enum": ["through"]
  13845. }
  13846. },
  13847. "required": ["type"],
  13848. "additionalProperties": false
  13849. }
  13850. ]
  13851. },
  13852. "MessageNotFoundError": {
  13853. "type": "object",
  13854. "properties": {
  13855. "_tag": {
  13856. "type": "string",
  13857. "enum": ["MessageNotFoundError"]
  13858. },
  13859. "sessionID": {
  13860. "type": "string"
  13861. },
  13862. "messageID": {
  13863. "type": "string"
  13864. },
  13865. "message": {
  13866. "type": "string"
  13867. }
  13868. },
  13869. "required": ["_tag", "sessionID", "messageID", "message"],
  13870. "additionalProperties": false
  13871. },
  13872. "PromptInput.FileAttachment": {
  13873. "type": "object",
  13874. "properties": {
  13875. "uri": {
  13876. "type": "string"
  13877. },
  13878. "name": {
  13879. "type": "string"
  13880. },
  13881. "description": {
  13882. "type": "string"
  13883. },
  13884. "mention": {
  13885. "$ref": "#/components/schemas/Prompt.Mention"
  13886. }
  13887. },
  13888. "required": ["uri"],
  13889. "additionalProperties": false
  13890. },
  13891. "PromptInput.SkillAttachment": {
  13892. "type": "object",
  13893. "properties": {
  13894. "id": {
  13895. "type": "string"
  13896. },
  13897. "mention": {
  13898. "$ref": "#/components/schemas/Prompt.Mention"
  13899. }
  13900. },
  13901. "required": ["id"],
  13902. "additionalProperties": false
  13903. },
  13904. "SessionPending.UserData": {
  13905. "type": "object",
  13906. "properties": {
  13907. "text": {
  13908. "type": "string"
  13909. },
  13910. "files": {
  13911. "type": "array",
  13912. "items": {
  13913. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13914. }
  13915. },
  13916. "agents": {
  13917. "type": "array",
  13918. "items": {
  13919. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13920. }
  13921. },
  13922. "skills": {
  13923. "type": "array",
  13924. "items": {
  13925. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  13926. }
  13927. },
  13928. "metadata": {
  13929. "type": "object"
  13930. }
  13931. },
  13932. "required": ["text"],
  13933. "additionalProperties": false
  13934. },
  13935. "SessionPending.User": {
  13936. "type": "object",
  13937. "properties": {
  13938. "id": {
  13939. "type": "string",
  13940. "allOf": [
  13941. {
  13942. "pattern": "^msg_"
  13943. }
  13944. ]
  13945. },
  13946. "sessionID": {
  13947. "type": "string",
  13948. "allOf": [
  13949. {
  13950. "pattern": "^ses"
  13951. }
  13952. ]
  13953. },
  13954. "timeCreated": {
  13955. "type": "number"
  13956. },
  13957. "type": {
  13958. "type": "string",
  13959. "enum": ["user"]
  13960. },
  13961. "data": {
  13962. "$ref": "#/components/schemas/SessionPending.UserData"
  13963. },
  13964. "delivery": {
  13965. "type": "string",
  13966. "enum": ["steer", "queue"]
  13967. }
  13968. },
  13969. "required": ["id", "sessionID", "timeCreated", "type", "data", "delivery"],
  13970. "additionalProperties": false
  13971. },
  13972. "CommandNotFoundError": {
  13973. "type": "object",
  13974. "properties": {
  13975. "_tag": {
  13976. "type": "string",
  13977. "enum": ["CommandNotFoundError"]
  13978. },
  13979. "command": {
  13980. "type": "string"
  13981. },
  13982. "message": {
  13983. "type": "string"
  13984. }
  13985. },
  13986. "required": ["_tag", "command", "message"],
  13987. "additionalProperties": false
  13988. },
  13989. "CommandEvaluationError": {
  13990. "type": "object",
  13991. "properties": {
  13992. "_tag": {
  13993. "type": "string",
  13994. "enum": ["CommandEvaluationError"]
  13995. },
  13996. "command": {
  13997. "type": "string"
  13998. },
  13999. "message": {
  14000. "type": "string"
  14001. }
  14002. },
  14003. "required": ["_tag", "command", "message"],
  14004. "additionalProperties": false
  14005. },
  14006. "SkillNotFoundError": {
  14007. "type": "object",
  14008. "properties": {
  14009. "_tag": {
  14010. "type": "string",
  14011. "enum": ["SkillNotFoundError"]
  14012. },
  14013. "skill": {
  14014. "type": "string"
  14015. },
  14016. "message": {
  14017. "type": "string"
  14018. }
  14019. },
  14020. "required": ["_tag", "skill", "message"],
  14021. "additionalProperties": false
  14022. },
  14023. "SessionPending.SyntheticData": {
  14024. "type": "object",
  14025. "properties": {
  14026. "text": {
  14027. "type": "string"
  14028. },
  14029. "description": {
  14030. "type": "string"
  14031. },
  14032. "metadata": {
  14033. "type": "object"
  14034. }
  14035. },
  14036. "required": ["text"],
  14037. "additionalProperties": false
  14038. },
  14039. "SessionPending.Synthetic": {
  14040. "type": "object",
  14041. "properties": {
  14042. "id": {
  14043. "type": "string",
  14044. "allOf": [
  14045. {
  14046. "pattern": "^msg_"
  14047. }
  14048. ]
  14049. },
  14050. "sessionID": {
  14051. "type": "string",
  14052. "allOf": [
  14053. {
  14054. "pattern": "^ses"
  14055. }
  14056. ]
  14057. },
  14058. "timeCreated": {
  14059. "type": "number"
  14060. },
  14061. "type": {
  14062. "type": "string",
  14063. "enum": ["synthetic"]
  14064. },
  14065. "data": {
  14066. "$ref": "#/components/schemas/SessionPending.SyntheticData"
  14067. },
  14068. "delivery": {
  14069. "type": "string",
  14070. "enum": ["steer", "queue"]
  14071. }
  14072. },
  14073. "required": ["id", "sessionID", "timeCreated", "type", "data", "delivery"],
  14074. "additionalProperties": false
  14075. },
  14076. "SessionPending.Compaction": {
  14077. "type": "object",
  14078. "properties": {
  14079. "id": {
  14080. "type": "string",
  14081. "allOf": [
  14082. {
  14083. "pattern": "^msg_"
  14084. }
  14085. ]
  14086. },
  14087. "sessionID": {
  14088. "type": "string",
  14089. "allOf": [
  14090. {
  14091. "pattern": "^ses"
  14092. }
  14093. ]
  14094. },
  14095. "timeCreated": {
  14096. "type": "number"
  14097. },
  14098. "type": {
  14099. "type": "string",
  14100. "enum": ["compaction"]
  14101. }
  14102. },
  14103. "required": ["id", "sessionID", "timeCreated", "type"],
  14104. "additionalProperties": false
  14105. },
  14106. "ServiceUnavailableError": {
  14107. "type": "object",
  14108. "properties": {
  14109. "_tag": {
  14110. "type": "string",
  14111. "enum": ["ServiceUnavailableError"]
  14112. },
  14113. "message": {
  14114. "type": "string"
  14115. },
  14116. "service": {
  14117. "anyOf": [
  14118. {
  14119. "type": "string"
  14120. },
  14121. {
  14122. "type": "null"
  14123. }
  14124. ]
  14125. }
  14126. },
  14127. "required": ["_tag", "message"],
  14128. "additionalProperties": false
  14129. },
  14130. "SessionBusyError": {
  14131. "type": "object",
  14132. "properties": {
  14133. "_tag": {
  14134. "type": "string",
  14135. "enum": ["SessionBusyError"]
  14136. },
  14137. "sessionID": {
  14138. "type": "string"
  14139. },
  14140. "message": {
  14141. "type": "string"
  14142. }
  14143. },
  14144. "required": ["_tag", "sessionID", "message"],
  14145. "additionalProperties": false
  14146. },
  14147. "SessionPending.Info": {
  14148. "anyOf": [
  14149. {
  14150. "$ref": "#/components/schemas/SessionPending.User"
  14151. },
  14152. {
  14153. "$ref": "#/components/schemas/SessionPending.Synthetic"
  14154. },
  14155. {
  14156. "$ref": "#/components/schemas/SessionPending.Compaction"
  14157. }
  14158. ]
  14159. },
  14160. "InstructionEntry.Key": {
  14161. "type": "string",
  14162. "allOf": [
  14163. {
  14164. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  14165. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  14166. }
  14167. ]
  14168. },
  14169. "InstructionEntry.Info": {
  14170. "type": "object",
  14171. "properties": {
  14172. "key": {
  14173. "$ref": "#/components/schemas/InstructionEntry.Key"
  14174. },
  14175. "value": {}
  14176. },
  14177. "required": ["key", "value"],
  14178. "additionalProperties": false
  14179. },
  14180. "InstructionEntryValueTooLargeError": {
  14181. "type": "object",
  14182. "properties": {
  14183. "_tag": {
  14184. "type": "string",
  14185. "enum": ["InstructionEntryValueTooLargeError"]
  14186. },
  14187. "actualBytes": {
  14188. "type": "integer"
  14189. },
  14190. "maxBytes": {
  14191. "type": "integer"
  14192. },
  14193. "message": {
  14194. "type": "string"
  14195. }
  14196. },
  14197. "required": ["_tag", "actualBytes", "maxBytes", "message"],
  14198. "additionalProperties": false
  14199. },
  14200. "SessionGenerateResponse": {
  14201. "type": "object",
  14202. "properties": {
  14203. "data": {
  14204. "type": "object",
  14205. "properties": {
  14206. "text": {
  14207. "type": "string"
  14208. }
  14209. },
  14210. "required": ["text"],
  14211. "additionalProperties": false
  14212. }
  14213. },
  14214. "required": ["data"],
  14215. "additionalProperties": false
  14216. },
  14217. "session.created": {
  14218. "type": "object",
  14219. "properties": {
  14220. "id": {
  14221. "type": "string",
  14222. "allOf": [
  14223. {
  14224. "pattern": "^evt_"
  14225. }
  14226. ]
  14227. },
  14228. "created": {
  14229. "type": "number"
  14230. },
  14231. "metadata": {
  14232. "type": "object"
  14233. },
  14234. "type": {
  14235. "type": "string",
  14236. "enum": ["session.created"]
  14237. },
  14238. "durable": {
  14239. "type": "object",
  14240. "properties": {
  14241. "aggregateID": {
  14242. "type": "string"
  14243. },
  14244. "seq": {
  14245. "type": "integer",
  14246. "allOf": [
  14247. {
  14248. "minimum": 0
  14249. }
  14250. ]
  14251. },
  14252. "version": {
  14253. "type": "number",
  14254. "enum": [1]
  14255. }
  14256. },
  14257. "required": ["aggregateID", "seq", "version"],
  14258. "additionalProperties": false
  14259. },
  14260. "location": {
  14261. "$ref": "#/components/schemas/Location.Ref"
  14262. },
  14263. "data": {
  14264. "type": "object",
  14265. "properties": {
  14266. "sessionID": {
  14267. "type": "string",
  14268. "allOf": [
  14269. {
  14270. "pattern": "^ses"
  14271. }
  14272. ]
  14273. },
  14274. "projectID": {
  14275. "type": "string"
  14276. },
  14277. "location": {
  14278. "$ref": "#/components/schemas/Location.Ref"
  14279. },
  14280. "subpath": {
  14281. "type": "string"
  14282. },
  14283. "parentID": {
  14284. "type": "string",
  14285. "allOf": [
  14286. {
  14287. "pattern": "^ses"
  14288. }
  14289. ]
  14290. },
  14291. "slug": {
  14292. "type": "string"
  14293. },
  14294. "title": {
  14295. "type": "string"
  14296. },
  14297. "agent": {
  14298. "type": "string"
  14299. },
  14300. "model": {
  14301. "$ref": "#/components/schemas/Model.Ref"
  14302. },
  14303. "version": {
  14304. "type": "string"
  14305. }
  14306. },
  14307. "required": ["sessionID", "projectID", "location", "slug", "version"],
  14308. "additionalProperties": false
  14309. }
  14310. },
  14311. "required": ["id", "created", "type", "durable", "data"],
  14312. "additionalProperties": false
  14313. },
  14314. "session.agent.selected": {
  14315. "type": "object",
  14316. "properties": {
  14317. "id": {
  14318. "type": "string",
  14319. "allOf": [
  14320. {
  14321. "pattern": "^evt_"
  14322. }
  14323. ]
  14324. },
  14325. "created": {
  14326. "type": "number"
  14327. },
  14328. "metadata": {
  14329. "type": "object"
  14330. },
  14331. "type": {
  14332. "type": "string",
  14333. "enum": ["session.agent.selected"]
  14334. },
  14335. "durable": {
  14336. "type": "object",
  14337. "properties": {
  14338. "aggregateID": {
  14339. "type": "string"
  14340. },
  14341. "seq": {
  14342. "type": "integer",
  14343. "allOf": [
  14344. {
  14345. "minimum": 0
  14346. }
  14347. ]
  14348. },
  14349. "version": {
  14350. "type": "number",
  14351. "enum": [1]
  14352. }
  14353. },
  14354. "required": ["aggregateID", "seq", "version"],
  14355. "additionalProperties": false
  14356. },
  14357. "location": {
  14358. "$ref": "#/components/schemas/Location.Ref"
  14359. },
  14360. "data": {
  14361. "type": "object",
  14362. "properties": {
  14363. "sessionID": {
  14364. "type": "string",
  14365. "allOf": [
  14366. {
  14367. "pattern": "^ses"
  14368. }
  14369. ]
  14370. },
  14371. "agent": {
  14372. "type": "string"
  14373. }
  14374. },
  14375. "required": ["sessionID", "agent"],
  14376. "additionalProperties": false
  14377. }
  14378. },
  14379. "required": ["id", "created", "type", "durable", "data"],
  14380. "additionalProperties": false
  14381. },
  14382. "session.model.selected": {
  14383. "type": "object",
  14384. "properties": {
  14385. "id": {
  14386. "type": "string",
  14387. "allOf": [
  14388. {
  14389. "pattern": "^evt_"
  14390. }
  14391. ]
  14392. },
  14393. "created": {
  14394. "type": "number"
  14395. },
  14396. "metadata": {
  14397. "type": "object"
  14398. },
  14399. "type": {
  14400. "type": "string",
  14401. "enum": ["session.model.selected"]
  14402. },
  14403. "durable": {
  14404. "type": "object",
  14405. "properties": {
  14406. "aggregateID": {
  14407. "type": "string"
  14408. },
  14409. "seq": {
  14410. "type": "integer",
  14411. "allOf": [
  14412. {
  14413. "minimum": 0
  14414. }
  14415. ]
  14416. },
  14417. "version": {
  14418. "type": "number",
  14419. "enum": [1]
  14420. }
  14421. },
  14422. "required": ["aggregateID", "seq", "version"],
  14423. "additionalProperties": false
  14424. },
  14425. "location": {
  14426. "$ref": "#/components/schemas/Location.Ref"
  14427. },
  14428. "data": {
  14429. "type": "object",
  14430. "properties": {
  14431. "sessionID": {
  14432. "type": "string",
  14433. "allOf": [
  14434. {
  14435. "pattern": "^ses"
  14436. }
  14437. ]
  14438. },
  14439. "model": {
  14440. "$ref": "#/components/schemas/Model.Ref"
  14441. }
  14442. },
  14443. "required": ["sessionID", "model"],
  14444. "additionalProperties": false
  14445. }
  14446. },
  14447. "required": ["id", "created", "type", "durable", "data"],
  14448. "additionalProperties": false
  14449. },
  14450. "session.moved": {
  14451. "type": "object",
  14452. "properties": {
  14453. "id": {
  14454. "type": "string",
  14455. "allOf": [
  14456. {
  14457. "pattern": "^evt_"
  14458. }
  14459. ]
  14460. },
  14461. "created": {
  14462. "type": "number"
  14463. },
  14464. "metadata": {
  14465. "type": "object"
  14466. },
  14467. "type": {
  14468. "type": "string",
  14469. "enum": ["session.moved"]
  14470. },
  14471. "durable": {
  14472. "type": "object",
  14473. "properties": {
  14474. "aggregateID": {
  14475. "type": "string"
  14476. },
  14477. "seq": {
  14478. "type": "integer",
  14479. "allOf": [
  14480. {
  14481. "minimum": 0
  14482. }
  14483. ]
  14484. },
  14485. "version": {
  14486. "type": "number",
  14487. "enum": [1]
  14488. }
  14489. },
  14490. "required": ["aggregateID", "seq", "version"],
  14491. "additionalProperties": false
  14492. },
  14493. "location": {
  14494. "$ref": "#/components/schemas/Location.Ref"
  14495. },
  14496. "data": {
  14497. "type": "object",
  14498. "properties": {
  14499. "sessionID": {
  14500. "type": "string",
  14501. "allOf": [
  14502. {
  14503. "pattern": "^ses"
  14504. }
  14505. ]
  14506. },
  14507. "location": {
  14508. "$ref": "#/components/schemas/Location.Ref"
  14509. },
  14510. "projectID": {
  14511. "type": "string"
  14512. },
  14513. "subpath": {
  14514. "type": "string"
  14515. }
  14516. },
  14517. "required": ["sessionID", "location"],
  14518. "additionalProperties": false
  14519. }
  14520. },
  14521. "required": ["id", "created", "type", "durable", "data"],
  14522. "additionalProperties": false
  14523. },
  14524. "session.renamed": {
  14525. "type": "object",
  14526. "properties": {
  14527. "id": {
  14528. "type": "string",
  14529. "allOf": [
  14530. {
  14531. "pattern": "^evt_"
  14532. }
  14533. ]
  14534. },
  14535. "created": {
  14536. "type": "number"
  14537. },
  14538. "metadata": {
  14539. "type": "object"
  14540. },
  14541. "type": {
  14542. "type": "string",
  14543. "enum": ["session.renamed"]
  14544. },
  14545. "durable": {
  14546. "type": "object",
  14547. "properties": {
  14548. "aggregateID": {
  14549. "type": "string"
  14550. },
  14551. "seq": {
  14552. "type": "integer",
  14553. "allOf": [
  14554. {
  14555. "minimum": 0
  14556. }
  14557. ]
  14558. },
  14559. "version": {
  14560. "type": "number",
  14561. "enum": [1]
  14562. }
  14563. },
  14564. "required": ["aggregateID", "seq", "version"],
  14565. "additionalProperties": false
  14566. },
  14567. "location": {
  14568. "$ref": "#/components/schemas/Location.Ref"
  14569. },
  14570. "data": {
  14571. "type": "object",
  14572. "properties": {
  14573. "sessionID": {
  14574. "type": "string",
  14575. "allOf": [
  14576. {
  14577. "pattern": "^ses"
  14578. }
  14579. ]
  14580. },
  14581. "title": {
  14582. "type": "string"
  14583. }
  14584. },
  14585. "required": ["sessionID", "title"],
  14586. "additionalProperties": false
  14587. }
  14588. },
  14589. "required": ["id", "created", "type", "durable", "data"],
  14590. "additionalProperties": false
  14591. },
  14592. "session.deleted": {
  14593. "type": "object",
  14594. "properties": {
  14595. "id": {
  14596. "type": "string",
  14597. "allOf": [
  14598. {
  14599. "pattern": "^evt_"
  14600. }
  14601. ]
  14602. },
  14603. "created": {
  14604. "type": "number"
  14605. },
  14606. "metadata": {
  14607. "type": "object"
  14608. },
  14609. "type": {
  14610. "type": "string",
  14611. "enum": ["session.deleted"]
  14612. },
  14613. "durable": {
  14614. "type": "object",
  14615. "properties": {
  14616. "aggregateID": {
  14617. "type": "string"
  14618. },
  14619. "seq": {
  14620. "type": "integer",
  14621. "allOf": [
  14622. {
  14623. "minimum": 0
  14624. }
  14625. ]
  14626. },
  14627. "version": {
  14628. "type": "number",
  14629. "enum": [2]
  14630. }
  14631. },
  14632. "required": ["aggregateID", "seq", "version"],
  14633. "additionalProperties": false
  14634. },
  14635. "location": {
  14636. "$ref": "#/components/schemas/Location.Ref"
  14637. },
  14638. "data": {
  14639. "type": "object",
  14640. "properties": {
  14641. "sessionID": {
  14642. "type": "string",
  14643. "allOf": [
  14644. {
  14645. "pattern": "^ses"
  14646. }
  14647. ]
  14648. }
  14649. },
  14650. "required": ["sessionID"],
  14651. "additionalProperties": false
  14652. }
  14653. },
  14654. "required": ["id", "created", "type", "durable", "data"],
  14655. "additionalProperties": false
  14656. },
  14657. "session.forked": {
  14658. "type": "object",
  14659. "properties": {
  14660. "id": {
  14661. "type": "string",
  14662. "allOf": [
  14663. {
  14664. "pattern": "^evt_"
  14665. }
  14666. ]
  14667. },
  14668. "created": {
  14669. "type": "number"
  14670. },
  14671. "metadata": {
  14672. "type": "object"
  14673. },
  14674. "type": {
  14675. "type": "string",
  14676. "enum": ["session.forked"]
  14677. },
  14678. "durable": {
  14679. "type": "object",
  14680. "properties": {
  14681. "aggregateID": {
  14682. "type": "string"
  14683. },
  14684. "seq": {
  14685. "type": "integer",
  14686. "allOf": [
  14687. {
  14688. "minimum": 0
  14689. }
  14690. ]
  14691. },
  14692. "version": {
  14693. "type": "number",
  14694. "enum": [2]
  14695. }
  14696. },
  14697. "required": ["aggregateID", "seq", "version"],
  14698. "additionalProperties": false
  14699. },
  14700. "location": {
  14701. "$ref": "#/components/schemas/Location.Ref"
  14702. },
  14703. "data": {
  14704. "type": "object",
  14705. "properties": {
  14706. "sessionID": {
  14707. "type": "string",
  14708. "allOf": [
  14709. {
  14710. "pattern": "^ses"
  14711. }
  14712. ]
  14713. },
  14714. "parentID": {
  14715. "type": "string",
  14716. "allOf": [
  14717. {
  14718. "pattern": "^ses"
  14719. }
  14720. ]
  14721. },
  14722. "boundary": {
  14723. "$ref": "#/components/schemas/Session.ForkBoundary"
  14724. },
  14725. "instructions": {
  14726. "type": "object",
  14727. "patternProperties": {
  14728. "^[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._/-]*$": {
  14729. "type": "string",
  14730. "allOf": [
  14731. {
  14732. "pattern": "^[a-f0-9]{64}$"
  14733. }
  14734. ]
  14735. }
  14736. }
  14737. }
  14738. },
  14739. "required": ["sessionID", "parentID", "boundary"],
  14740. "additionalProperties": false
  14741. }
  14742. },
  14743. "required": ["id", "created", "type", "durable", "data"],
  14744. "additionalProperties": false
  14745. },
  14746. "session.input.promoted": {
  14747. "type": "object",
  14748. "properties": {
  14749. "id": {
  14750. "type": "string",
  14751. "allOf": [
  14752. {
  14753. "pattern": "^evt_"
  14754. }
  14755. ]
  14756. },
  14757. "created": {
  14758. "type": "number"
  14759. },
  14760. "metadata": {
  14761. "type": "object"
  14762. },
  14763. "type": {
  14764. "type": "string",
  14765. "enum": ["session.input.promoted"]
  14766. },
  14767. "durable": {
  14768. "type": "object",
  14769. "properties": {
  14770. "aggregateID": {
  14771. "type": "string"
  14772. },
  14773. "seq": {
  14774. "type": "integer",
  14775. "allOf": [
  14776. {
  14777. "minimum": 0
  14778. }
  14779. ]
  14780. },
  14781. "version": {
  14782. "type": "number",
  14783. "enum": [1]
  14784. }
  14785. },
  14786. "required": ["aggregateID", "seq", "version"],
  14787. "additionalProperties": false
  14788. },
  14789. "location": {
  14790. "$ref": "#/components/schemas/Location.Ref"
  14791. },
  14792. "data": {
  14793. "type": "object",
  14794. "properties": {
  14795. "sessionID": {
  14796. "type": "string",
  14797. "allOf": [
  14798. {
  14799. "pattern": "^ses"
  14800. }
  14801. ]
  14802. },
  14803. "inputID": {
  14804. "type": "string",
  14805. "allOf": [
  14806. {
  14807. "pattern": "^msg_"
  14808. }
  14809. ]
  14810. }
  14811. },
  14812. "required": ["sessionID", "inputID"],
  14813. "additionalProperties": false
  14814. }
  14815. },
  14816. "required": ["id", "created", "type", "durable", "data"],
  14817. "additionalProperties": false
  14818. },
  14819. "SessionPending.UserData1": {
  14820. "type": "object",
  14821. "properties": {
  14822. "text": {
  14823. "type": "string"
  14824. },
  14825. "files": {
  14826. "type": "array",
  14827. "items": {
  14828. "$ref": "#/components/schemas/Prompt.FileAttachment"
  14829. }
  14830. },
  14831. "agents": {
  14832. "type": "array",
  14833. "items": {
  14834. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  14835. }
  14836. },
  14837. "skills": {
  14838. "type": "array",
  14839. "items": {
  14840. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  14841. }
  14842. },
  14843. "metadata": {
  14844. "type": "object"
  14845. }
  14846. },
  14847. "required": ["text"],
  14848. "additionalProperties": false
  14849. },
  14850. "SessionPending.UserMessage": {
  14851. "type": "object",
  14852. "properties": {
  14853. "type": {
  14854. "type": "string",
  14855. "enum": ["user"]
  14856. },
  14857. "data": {
  14858. "$ref": "#/components/schemas/SessionPending.UserData1"
  14859. },
  14860. "delivery": {
  14861. "type": "string",
  14862. "enum": ["steer", "queue"]
  14863. }
  14864. },
  14865. "required": ["type", "data", "delivery"],
  14866. "additionalProperties": false
  14867. },
  14868. "SessionPending.SyntheticData1": {
  14869. "type": "object",
  14870. "properties": {
  14871. "text": {
  14872. "type": "string"
  14873. },
  14874. "description": {
  14875. "type": "string"
  14876. },
  14877. "metadata": {
  14878. "type": "object"
  14879. }
  14880. },
  14881. "required": ["text"],
  14882. "additionalProperties": false
  14883. },
  14884. "SessionPending.SyntheticMessage": {
  14885. "type": "object",
  14886. "properties": {
  14887. "type": {
  14888. "type": "string",
  14889. "enum": ["synthetic"]
  14890. },
  14891. "data": {
  14892. "$ref": "#/components/schemas/SessionPending.SyntheticData1"
  14893. },
  14894. "delivery": {
  14895. "type": "string",
  14896. "enum": ["steer", "queue"]
  14897. }
  14898. },
  14899. "required": ["type", "data", "delivery"],
  14900. "additionalProperties": false
  14901. },
  14902. "SessionPending.Message": {
  14903. "anyOf": [
  14904. {
  14905. "$ref": "#/components/schemas/SessionPending.UserMessage"
  14906. },
  14907. {
  14908. "$ref": "#/components/schemas/SessionPending.SyntheticMessage"
  14909. }
  14910. ]
  14911. },
  14912. "session.input.admitted": {
  14913. "type": "object",
  14914. "properties": {
  14915. "id": {
  14916. "type": "string",
  14917. "allOf": [
  14918. {
  14919. "pattern": "^evt_"
  14920. }
  14921. ]
  14922. },
  14923. "created": {
  14924. "type": "number"
  14925. },
  14926. "metadata": {
  14927. "type": "object"
  14928. },
  14929. "type": {
  14930. "type": "string",
  14931. "enum": ["session.input.admitted"]
  14932. },
  14933. "durable": {
  14934. "type": "object",
  14935. "properties": {
  14936. "aggregateID": {
  14937. "type": "string"
  14938. },
  14939. "seq": {
  14940. "type": "integer",
  14941. "allOf": [
  14942. {
  14943. "minimum": 0
  14944. }
  14945. ]
  14946. },
  14947. "version": {
  14948. "type": "number",
  14949. "enum": [1]
  14950. }
  14951. },
  14952. "required": ["aggregateID", "seq", "version"],
  14953. "additionalProperties": false
  14954. },
  14955. "location": {
  14956. "$ref": "#/components/schemas/Location.Ref"
  14957. },
  14958. "data": {
  14959. "type": "object",
  14960. "properties": {
  14961. "sessionID": {
  14962. "type": "string",
  14963. "allOf": [
  14964. {
  14965. "pattern": "^ses"
  14966. }
  14967. ]
  14968. },
  14969. "inputID": {
  14970. "type": "string",
  14971. "allOf": [
  14972. {
  14973. "pattern": "^msg_"
  14974. }
  14975. ]
  14976. },
  14977. "input": {
  14978. "$ref": "#/components/schemas/SessionPending.Message"
  14979. }
  14980. },
  14981. "required": ["sessionID", "inputID", "input"],
  14982. "additionalProperties": false
  14983. }
  14984. },
  14985. "required": ["id", "created", "type", "durable", "data"],
  14986. "additionalProperties": false
  14987. },
  14988. "session.input.cancelled": {
  14989. "type": "object",
  14990. "properties": {
  14991. "id": {
  14992. "type": "string",
  14993. "allOf": [
  14994. {
  14995. "pattern": "^evt_"
  14996. }
  14997. ]
  14998. },
  14999. "created": {
  15000. "type": "number"
  15001. },
  15002. "metadata": {
  15003. "type": "object"
  15004. },
  15005. "type": {
  15006. "type": "string",
  15007. "enum": ["session.input.cancelled"]
  15008. },
  15009. "durable": {
  15010. "type": "object",
  15011. "properties": {
  15012. "aggregateID": {
  15013. "type": "string"
  15014. },
  15015. "seq": {
  15016. "type": "integer",
  15017. "allOf": [
  15018. {
  15019. "minimum": 0
  15020. }
  15021. ]
  15022. },
  15023. "version": {
  15024. "type": "number",
  15025. "enum": [1]
  15026. }
  15027. },
  15028. "required": ["aggregateID", "seq", "version"],
  15029. "additionalProperties": false
  15030. },
  15031. "location": {
  15032. "$ref": "#/components/schemas/Location.Ref"
  15033. },
  15034. "data": {
  15035. "type": "object",
  15036. "properties": {
  15037. "sessionID": {
  15038. "type": "string",
  15039. "allOf": [
  15040. {
  15041. "pattern": "^ses"
  15042. }
  15043. ]
  15044. },
  15045. "inputID": {
  15046. "type": "string",
  15047. "allOf": [
  15048. {
  15049. "pattern": "^msg_"
  15050. }
  15051. ]
  15052. }
  15053. },
  15054. "required": ["sessionID", "inputID"],
  15055. "additionalProperties": false
  15056. }
  15057. },
  15058. "required": ["id", "created", "type", "durable", "data"],
  15059. "additionalProperties": false
  15060. },
  15061. "session.input.steered": {
  15062. "type": "object",
  15063. "properties": {
  15064. "id": {
  15065. "type": "string",
  15066. "allOf": [
  15067. {
  15068. "pattern": "^evt_"
  15069. }
  15070. ]
  15071. },
  15072. "created": {
  15073. "type": "number"
  15074. },
  15075. "metadata": {
  15076. "type": "object"
  15077. },
  15078. "type": {
  15079. "type": "string",
  15080. "enum": ["session.input.steered"]
  15081. },
  15082. "durable": {
  15083. "type": "object",
  15084. "properties": {
  15085. "aggregateID": {
  15086. "type": "string"
  15087. },
  15088. "seq": {
  15089. "type": "integer",
  15090. "allOf": [
  15091. {
  15092. "minimum": 0
  15093. }
  15094. ]
  15095. },
  15096. "version": {
  15097. "type": "number",
  15098. "enum": [1]
  15099. }
  15100. },
  15101. "required": ["aggregateID", "seq", "version"],
  15102. "additionalProperties": false
  15103. },
  15104. "location": {
  15105. "$ref": "#/components/schemas/Location.Ref"
  15106. },
  15107. "data": {
  15108. "type": "object",
  15109. "properties": {
  15110. "sessionID": {
  15111. "type": "string",
  15112. "allOf": [
  15113. {
  15114. "pattern": "^ses"
  15115. }
  15116. ]
  15117. },
  15118. "inputID": {
  15119. "type": "string",
  15120. "allOf": [
  15121. {
  15122. "pattern": "^msg_"
  15123. }
  15124. ]
  15125. }
  15126. },
  15127. "required": ["sessionID", "inputID"],
  15128. "additionalProperties": false
  15129. }
  15130. },
  15131. "required": ["id", "created", "type", "durable", "data"],
  15132. "additionalProperties": false
  15133. },
  15134. "session.input.queued": {
  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": ["session.input.queued"]
  15154. },
  15155. "durable": {
  15156. "type": "object",
  15157. "properties": {
  15158. "aggregateID": {
  15159. "type": "string"
  15160. },
  15161. "seq": {
  15162. "type": "integer",
  15163. "allOf": [
  15164. {
  15165. "minimum": 0
  15166. }
  15167. ]
  15168. },
  15169. "version": {
  15170. "type": "number",
  15171. "enum": [1]
  15172. }
  15173. },
  15174. "required": ["aggregateID", "seq", "version"],
  15175. "additionalProperties": false
  15176. },
  15177. "location": {
  15178. "$ref": "#/components/schemas/Location.Ref"
  15179. },
  15180. "data": {
  15181. "type": "object",
  15182. "properties": {
  15183. "sessionID": {
  15184. "type": "string",
  15185. "allOf": [
  15186. {
  15187. "pattern": "^ses"
  15188. }
  15189. ]
  15190. },
  15191. "inputID": {
  15192. "type": "string",
  15193. "allOf": [
  15194. {
  15195. "pattern": "^msg_"
  15196. }
  15197. ]
  15198. }
  15199. },
  15200. "required": ["sessionID", "inputID"],
  15201. "additionalProperties": false
  15202. }
  15203. },
  15204. "required": ["id", "created", "type", "durable", "data"],
  15205. "additionalProperties": false
  15206. },
  15207. "session.execution.started": {
  15208. "type": "object",
  15209. "properties": {
  15210. "id": {
  15211. "type": "string",
  15212. "allOf": [
  15213. {
  15214. "pattern": "^evt_"
  15215. }
  15216. ]
  15217. },
  15218. "created": {
  15219. "type": "number"
  15220. },
  15221. "metadata": {
  15222. "type": "object"
  15223. },
  15224. "type": {
  15225. "type": "string",
  15226. "enum": ["session.execution.started"]
  15227. },
  15228. "durable": {
  15229. "type": "object",
  15230. "properties": {
  15231. "aggregateID": {
  15232. "type": "string"
  15233. },
  15234. "seq": {
  15235. "type": "integer",
  15236. "allOf": [
  15237. {
  15238. "minimum": 0
  15239. }
  15240. ]
  15241. },
  15242. "version": {
  15243. "type": "number",
  15244. "enum": [1]
  15245. }
  15246. },
  15247. "required": ["aggregateID", "seq", "version"],
  15248. "additionalProperties": false
  15249. },
  15250. "location": {
  15251. "$ref": "#/components/schemas/Location.Ref"
  15252. },
  15253. "data": {
  15254. "type": "object",
  15255. "properties": {
  15256. "sessionID": {
  15257. "type": "string",
  15258. "allOf": [
  15259. {
  15260. "pattern": "^ses"
  15261. }
  15262. ]
  15263. }
  15264. },
  15265. "required": ["sessionID"],
  15266. "additionalProperties": false
  15267. }
  15268. },
  15269. "required": ["id", "created", "type", "durable", "data"],
  15270. "additionalProperties": false
  15271. },
  15272. "session.execution.succeeded": {
  15273. "type": "object",
  15274. "properties": {
  15275. "id": {
  15276. "type": "string",
  15277. "allOf": [
  15278. {
  15279. "pattern": "^evt_"
  15280. }
  15281. ]
  15282. },
  15283. "created": {
  15284. "type": "number"
  15285. },
  15286. "metadata": {
  15287. "type": "object"
  15288. },
  15289. "type": {
  15290. "type": "string",
  15291. "enum": ["session.execution.succeeded"]
  15292. },
  15293. "durable": {
  15294. "type": "object",
  15295. "properties": {
  15296. "aggregateID": {
  15297. "type": "string"
  15298. },
  15299. "seq": {
  15300. "type": "integer",
  15301. "allOf": [
  15302. {
  15303. "minimum": 0
  15304. }
  15305. ]
  15306. },
  15307. "version": {
  15308. "type": "number",
  15309. "enum": [1]
  15310. }
  15311. },
  15312. "required": ["aggregateID", "seq", "version"],
  15313. "additionalProperties": false
  15314. },
  15315. "location": {
  15316. "$ref": "#/components/schemas/Location.Ref"
  15317. },
  15318. "data": {
  15319. "type": "object",
  15320. "properties": {
  15321. "sessionID": {
  15322. "type": "string",
  15323. "allOf": [
  15324. {
  15325. "pattern": "^ses"
  15326. }
  15327. ]
  15328. }
  15329. },
  15330. "required": ["sessionID"],
  15331. "additionalProperties": false
  15332. }
  15333. },
  15334. "required": ["id", "created", "type", "durable", "data"],
  15335. "additionalProperties": false
  15336. },
  15337. "session.execution.failed": {
  15338. "type": "object",
  15339. "properties": {
  15340. "id": {
  15341. "type": "string",
  15342. "allOf": [
  15343. {
  15344. "pattern": "^evt_"
  15345. }
  15346. ]
  15347. },
  15348. "created": {
  15349. "type": "number"
  15350. },
  15351. "metadata": {
  15352. "type": "object"
  15353. },
  15354. "type": {
  15355. "type": "string",
  15356. "enum": ["session.execution.failed"]
  15357. },
  15358. "durable": {
  15359. "type": "object",
  15360. "properties": {
  15361. "aggregateID": {
  15362. "type": "string"
  15363. },
  15364. "seq": {
  15365. "type": "integer",
  15366. "allOf": [
  15367. {
  15368. "minimum": 0
  15369. }
  15370. ]
  15371. },
  15372. "version": {
  15373. "type": "number",
  15374. "enum": [1]
  15375. }
  15376. },
  15377. "required": ["aggregateID", "seq", "version"],
  15378. "additionalProperties": false
  15379. },
  15380. "location": {
  15381. "$ref": "#/components/schemas/Location.Ref"
  15382. },
  15383. "data": {
  15384. "type": "object",
  15385. "properties": {
  15386. "sessionID": {
  15387. "type": "string",
  15388. "allOf": [
  15389. {
  15390. "pattern": "^ses"
  15391. }
  15392. ]
  15393. },
  15394. "error": {
  15395. "$ref": "#/components/schemas/Session.StructuredError"
  15396. }
  15397. },
  15398. "required": ["sessionID", "error"],
  15399. "additionalProperties": false
  15400. }
  15401. },
  15402. "required": ["id", "created", "type", "durable", "data"],
  15403. "additionalProperties": false
  15404. },
  15405. "session.execution.interrupted": {
  15406. "type": "object",
  15407. "properties": {
  15408. "id": {
  15409. "type": "string",
  15410. "allOf": [
  15411. {
  15412. "pattern": "^evt_"
  15413. }
  15414. ]
  15415. },
  15416. "created": {
  15417. "type": "number"
  15418. },
  15419. "metadata": {
  15420. "type": "object"
  15421. },
  15422. "type": {
  15423. "type": "string",
  15424. "enum": ["session.execution.interrupted"]
  15425. },
  15426. "durable": {
  15427. "type": "object",
  15428. "properties": {
  15429. "aggregateID": {
  15430. "type": "string"
  15431. },
  15432. "seq": {
  15433. "type": "integer",
  15434. "allOf": [
  15435. {
  15436. "minimum": 0
  15437. }
  15438. ]
  15439. },
  15440. "version": {
  15441. "type": "number",
  15442. "enum": [1]
  15443. }
  15444. },
  15445. "required": ["aggregateID", "seq", "version"],
  15446. "additionalProperties": false
  15447. },
  15448. "location": {
  15449. "$ref": "#/components/schemas/Location.Ref"
  15450. },
  15451. "data": {
  15452. "type": "object",
  15453. "properties": {
  15454. "sessionID": {
  15455. "type": "string",
  15456. "allOf": [
  15457. {
  15458. "pattern": "^ses"
  15459. }
  15460. ]
  15461. },
  15462. "reason": {
  15463. "type": "string",
  15464. "enum": ["user", "shutdown", "superseded"]
  15465. }
  15466. },
  15467. "required": ["sessionID", "reason"],
  15468. "additionalProperties": false
  15469. }
  15470. },
  15471. "required": ["id", "created", "type", "durable", "data"],
  15472. "additionalProperties": false
  15473. },
  15474. "session.instructions.updated": {
  15475. "type": "object",
  15476. "properties": {
  15477. "id": {
  15478. "type": "string",
  15479. "allOf": [
  15480. {
  15481. "pattern": "^evt_"
  15482. }
  15483. ]
  15484. },
  15485. "created": {
  15486. "type": "number"
  15487. },
  15488. "metadata": {
  15489. "type": "object"
  15490. },
  15491. "type": {
  15492. "type": "string",
  15493. "enum": ["session.instructions.updated"]
  15494. },
  15495. "durable": {
  15496. "type": "object",
  15497. "properties": {
  15498. "aggregateID": {
  15499. "type": "string"
  15500. },
  15501. "seq": {
  15502. "type": "integer",
  15503. "allOf": [
  15504. {
  15505. "minimum": 0
  15506. }
  15507. ]
  15508. },
  15509. "version": {
  15510. "type": "number",
  15511. "enum": [2]
  15512. }
  15513. },
  15514. "required": ["aggregateID", "seq", "version"],
  15515. "additionalProperties": false
  15516. },
  15517. "location": {
  15518. "$ref": "#/components/schemas/Location.Ref"
  15519. },
  15520. "data": {
  15521. "type": "object",
  15522. "properties": {
  15523. "sessionID": {
  15524. "type": "string",
  15525. "allOf": [
  15526. {
  15527. "pattern": "^ses"
  15528. }
  15529. ]
  15530. },
  15531. "delta": {
  15532. "type": "object",
  15533. "additionalProperties": {
  15534. "anyOf": [
  15535. {
  15536. "type": "string",
  15537. "allOf": [
  15538. {
  15539. "pattern": "^[a-f0-9]{64}$"
  15540. }
  15541. ]
  15542. },
  15543. {
  15544. "type": "string",
  15545. "enum": ["removed"]
  15546. }
  15547. ]
  15548. }
  15549. },
  15550. "text": {
  15551. "type": "string"
  15552. }
  15553. },
  15554. "required": ["sessionID", "delta"],
  15555. "additionalProperties": false
  15556. }
  15557. },
  15558. "required": ["id", "created", "type", "durable", "data"],
  15559. "additionalProperties": false
  15560. },
  15561. "session.synthetic": {
  15562. "type": "object",
  15563. "properties": {
  15564. "id": {
  15565. "type": "string",
  15566. "allOf": [
  15567. {
  15568. "pattern": "^evt_"
  15569. }
  15570. ]
  15571. },
  15572. "created": {
  15573. "type": "number"
  15574. },
  15575. "metadata": {
  15576. "type": "object"
  15577. },
  15578. "type": {
  15579. "type": "string",
  15580. "enum": ["session.synthetic"]
  15581. },
  15582. "durable": {
  15583. "type": "object",
  15584. "properties": {
  15585. "aggregateID": {
  15586. "type": "string"
  15587. },
  15588. "seq": {
  15589. "type": "integer",
  15590. "allOf": [
  15591. {
  15592. "minimum": 0
  15593. }
  15594. ]
  15595. },
  15596. "version": {
  15597. "type": "number",
  15598. "enum": [1]
  15599. }
  15600. },
  15601. "required": ["aggregateID", "seq", "version"],
  15602. "additionalProperties": false
  15603. },
  15604. "location": {
  15605. "$ref": "#/components/schemas/Location.Ref"
  15606. },
  15607. "data": {
  15608. "type": "object",
  15609. "properties": {
  15610. "sessionID": {
  15611. "type": "string",
  15612. "allOf": [
  15613. {
  15614. "pattern": "^ses"
  15615. }
  15616. ]
  15617. },
  15618. "text": {
  15619. "type": "string"
  15620. },
  15621. "description": {
  15622. "type": "string"
  15623. },
  15624. "metadata": {
  15625. "type": "object"
  15626. }
  15627. },
  15628. "required": ["sessionID", "text"],
  15629. "additionalProperties": false
  15630. }
  15631. },
  15632. "required": ["id", "created", "type", "durable", "data"],
  15633. "additionalProperties": false
  15634. },
  15635. "session.skill.activated": {
  15636. "type": "object",
  15637. "properties": {
  15638. "id": {
  15639. "type": "string",
  15640. "allOf": [
  15641. {
  15642. "pattern": "^evt_"
  15643. }
  15644. ]
  15645. },
  15646. "created": {
  15647. "type": "number"
  15648. },
  15649. "metadata": {
  15650. "type": "object"
  15651. },
  15652. "type": {
  15653. "type": "string",
  15654. "enum": ["session.skill.activated"]
  15655. },
  15656. "durable": {
  15657. "type": "object",
  15658. "properties": {
  15659. "aggregateID": {
  15660. "type": "string"
  15661. },
  15662. "seq": {
  15663. "type": "integer",
  15664. "allOf": [
  15665. {
  15666. "minimum": 0
  15667. }
  15668. ]
  15669. },
  15670. "version": {
  15671. "type": "number",
  15672. "enum": [1]
  15673. }
  15674. },
  15675. "required": ["aggregateID", "seq", "version"],
  15676. "additionalProperties": false
  15677. },
  15678. "location": {
  15679. "$ref": "#/components/schemas/Location.Ref"
  15680. },
  15681. "data": {
  15682. "type": "object",
  15683. "properties": {
  15684. "sessionID": {
  15685. "type": "string",
  15686. "allOf": [
  15687. {
  15688. "pattern": "^ses"
  15689. }
  15690. ]
  15691. },
  15692. "id": {
  15693. "type": "string"
  15694. },
  15695. "name": {
  15696. "type": "string"
  15697. },
  15698. "text": {
  15699. "type": "string"
  15700. }
  15701. },
  15702. "required": ["sessionID", "id", "name", "text"],
  15703. "additionalProperties": false
  15704. }
  15705. },
  15706. "required": ["id", "created", "type", "durable", "data"],
  15707. "additionalProperties": false
  15708. },
  15709. "Shell.Info": {
  15710. "type": "object",
  15711. "properties": {
  15712. "id": {
  15713. "type": "string",
  15714. "allOf": [
  15715. {
  15716. "pattern": "^sh_"
  15717. }
  15718. ]
  15719. },
  15720. "status": {
  15721. "type": "string",
  15722. "enum": ["running", "exited", "timeout", "killed"]
  15723. },
  15724. "command": {
  15725. "type": "string"
  15726. },
  15727. "cwd": {
  15728. "type": "string"
  15729. },
  15730. "shell": {
  15731. "type": "string"
  15732. },
  15733. "file": {
  15734. "type": "string"
  15735. },
  15736. "pid": {
  15737. "type": "integer",
  15738. "allOf": [
  15739. {
  15740. "minimum": 0
  15741. }
  15742. ]
  15743. },
  15744. "exit": {
  15745. "type": "number"
  15746. },
  15747. "metadata": {
  15748. "type": "object"
  15749. },
  15750. "time": {
  15751. "type": "object",
  15752. "properties": {
  15753. "started": {
  15754. "type": "number"
  15755. },
  15756. "completed": {
  15757. "type": "number"
  15758. }
  15759. },
  15760. "required": ["started"],
  15761. "additionalProperties": false
  15762. }
  15763. },
  15764. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  15765. "additionalProperties": false
  15766. },
  15767. "session.shell.started": {
  15768. "type": "object",
  15769. "properties": {
  15770. "id": {
  15771. "type": "string",
  15772. "allOf": [
  15773. {
  15774. "pattern": "^evt_"
  15775. }
  15776. ]
  15777. },
  15778. "created": {
  15779. "type": "number"
  15780. },
  15781. "metadata": {
  15782. "type": "object"
  15783. },
  15784. "type": {
  15785. "type": "string",
  15786. "enum": ["session.shell.started"]
  15787. },
  15788. "durable": {
  15789. "type": "object",
  15790. "properties": {
  15791. "aggregateID": {
  15792. "type": "string"
  15793. },
  15794. "seq": {
  15795. "type": "integer",
  15796. "allOf": [
  15797. {
  15798. "minimum": 0
  15799. }
  15800. ]
  15801. },
  15802. "version": {
  15803. "type": "number",
  15804. "enum": [1]
  15805. }
  15806. },
  15807. "required": ["aggregateID", "seq", "version"],
  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. "shell": {
  15825. "$ref": "#/components/schemas/Shell.Info"
  15826. }
  15827. },
  15828. "required": ["sessionID", "shell"],
  15829. "additionalProperties": false
  15830. }
  15831. },
  15832. "required": ["id", "created", "type", "durable", "data"],
  15833. "additionalProperties": false
  15834. },
  15835. "session.shell.ended": {
  15836. "type": "object",
  15837. "properties": {
  15838. "id": {
  15839. "type": "string",
  15840. "allOf": [
  15841. {
  15842. "pattern": "^evt_"
  15843. }
  15844. ]
  15845. },
  15846. "created": {
  15847. "type": "number"
  15848. },
  15849. "metadata": {
  15850. "type": "object"
  15851. },
  15852. "type": {
  15853. "type": "string",
  15854. "enum": ["session.shell.ended"]
  15855. },
  15856. "durable": {
  15857. "type": "object",
  15858. "properties": {
  15859. "aggregateID": {
  15860. "type": "string"
  15861. },
  15862. "seq": {
  15863. "type": "integer",
  15864. "allOf": [
  15865. {
  15866. "minimum": 0
  15867. }
  15868. ]
  15869. },
  15870. "version": {
  15871. "type": "number",
  15872. "enum": [1]
  15873. }
  15874. },
  15875. "required": ["aggregateID", "seq", "version"],
  15876. "additionalProperties": false
  15877. },
  15878. "location": {
  15879. "$ref": "#/components/schemas/Location.Ref"
  15880. },
  15881. "data": {
  15882. "type": "object",
  15883. "properties": {
  15884. "sessionID": {
  15885. "type": "string",
  15886. "allOf": [
  15887. {
  15888. "pattern": "^ses"
  15889. }
  15890. ]
  15891. },
  15892. "shell": {
  15893. "$ref": "#/components/schemas/Shell.Info"
  15894. },
  15895. "output": {
  15896. "type": "object",
  15897. "properties": {
  15898. "output": {
  15899. "type": "string"
  15900. },
  15901. "cursor": {
  15902. "type": "integer",
  15903. "allOf": [
  15904. {
  15905. "minimum": 0
  15906. }
  15907. ]
  15908. },
  15909. "size": {
  15910. "type": "integer",
  15911. "allOf": [
  15912. {
  15913. "minimum": 0
  15914. }
  15915. ]
  15916. },
  15917. "truncated": {
  15918. "type": "boolean"
  15919. }
  15920. },
  15921. "required": ["output", "cursor", "size", "truncated"],
  15922. "additionalProperties": false
  15923. }
  15924. },
  15925. "required": ["sessionID", "shell", "output"],
  15926. "additionalProperties": false
  15927. }
  15928. },
  15929. "required": ["id", "created", "type", "durable", "data"],
  15930. "additionalProperties": false
  15931. },
  15932. "session.step.started": {
  15933. "type": "object",
  15934. "properties": {
  15935. "id": {
  15936. "type": "string",
  15937. "allOf": [
  15938. {
  15939. "pattern": "^evt_"
  15940. }
  15941. ]
  15942. },
  15943. "created": {
  15944. "type": "number"
  15945. },
  15946. "metadata": {
  15947. "type": "object"
  15948. },
  15949. "type": {
  15950. "type": "string",
  15951. "enum": ["session.step.started"]
  15952. },
  15953. "durable": {
  15954. "type": "object",
  15955. "properties": {
  15956. "aggregateID": {
  15957. "type": "string"
  15958. },
  15959. "seq": {
  15960. "type": "integer",
  15961. "allOf": [
  15962. {
  15963. "minimum": 0
  15964. }
  15965. ]
  15966. },
  15967. "version": {
  15968. "type": "number",
  15969. "enum": [1]
  15970. }
  15971. },
  15972. "required": ["aggregateID", "seq", "version"],
  15973. "additionalProperties": false
  15974. },
  15975. "location": {
  15976. "$ref": "#/components/schemas/Location.Ref"
  15977. },
  15978. "data": {
  15979. "type": "object",
  15980. "properties": {
  15981. "sessionID": {
  15982. "type": "string",
  15983. "allOf": [
  15984. {
  15985. "pattern": "^ses"
  15986. }
  15987. ]
  15988. },
  15989. "assistantMessageID": {
  15990. "type": "string",
  15991. "allOf": [
  15992. {
  15993. "pattern": "^msg_"
  15994. }
  15995. ]
  15996. },
  15997. "agent": {
  15998. "type": "string"
  15999. },
  16000. "model": {
  16001. "$ref": "#/components/schemas/Model.Ref"
  16002. },
  16003. "snapshot": {
  16004. "type": "string"
  16005. }
  16006. },
  16007. "required": ["sessionID", "assistantMessageID", "agent", "model"],
  16008. "additionalProperties": false
  16009. }
  16010. },
  16011. "required": ["id", "created", "type", "durable", "data"],
  16012. "additionalProperties": false
  16013. },
  16014. "session.step.ended": {
  16015. "type": "object",
  16016. "properties": {
  16017. "id": {
  16018. "type": "string",
  16019. "allOf": [
  16020. {
  16021. "pattern": "^evt_"
  16022. }
  16023. ]
  16024. },
  16025. "created": {
  16026. "type": "number"
  16027. },
  16028. "metadata": {
  16029. "type": "object"
  16030. },
  16031. "type": {
  16032. "type": "string",
  16033. "enum": ["session.step.ended"]
  16034. },
  16035. "durable": {
  16036. "type": "object",
  16037. "properties": {
  16038. "aggregateID": {
  16039. "type": "string"
  16040. },
  16041. "seq": {
  16042. "type": "integer",
  16043. "allOf": [
  16044. {
  16045. "minimum": 0
  16046. }
  16047. ]
  16048. },
  16049. "version": {
  16050. "type": "number",
  16051. "enum": [1]
  16052. }
  16053. },
  16054. "required": ["aggregateID", "seq", "version"],
  16055. "additionalProperties": false
  16056. },
  16057. "location": {
  16058. "$ref": "#/components/schemas/Location.Ref"
  16059. },
  16060. "data": {
  16061. "type": "object",
  16062. "properties": {
  16063. "sessionID": {
  16064. "type": "string",
  16065. "allOf": [
  16066. {
  16067. "pattern": "^ses"
  16068. }
  16069. ]
  16070. },
  16071. "assistantMessageID": {
  16072. "type": "string",
  16073. "allOf": [
  16074. {
  16075. "pattern": "^msg_"
  16076. }
  16077. ]
  16078. },
  16079. "finish": {
  16080. "type": "string",
  16081. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  16082. },
  16083. "cost": {
  16084. "$ref": "#/components/schemas/Money.USD"
  16085. },
  16086. "tokens": {
  16087. "$ref": "#/components/schemas/TokenUsage.Info"
  16088. },
  16089. "snapshot": {
  16090. "type": "string"
  16091. },
  16092. "files": {
  16093. "type": "array",
  16094. "items": {
  16095. "type": "string"
  16096. }
  16097. }
  16098. },
  16099. "required": ["sessionID", "assistantMessageID", "finish", "cost", "tokens"],
  16100. "additionalProperties": false
  16101. }
  16102. },
  16103. "required": ["id", "created", "type", "durable", "data"],
  16104. "additionalProperties": false
  16105. },
  16106. "session.step.failed": {
  16107. "type": "object",
  16108. "properties": {
  16109. "id": {
  16110. "type": "string",
  16111. "allOf": [
  16112. {
  16113. "pattern": "^evt_"
  16114. }
  16115. ]
  16116. },
  16117. "created": {
  16118. "type": "number"
  16119. },
  16120. "metadata": {
  16121. "type": "object"
  16122. },
  16123. "type": {
  16124. "type": "string",
  16125. "enum": ["session.step.failed"]
  16126. },
  16127. "durable": {
  16128. "type": "object",
  16129. "properties": {
  16130. "aggregateID": {
  16131. "type": "string"
  16132. },
  16133. "seq": {
  16134. "type": "integer",
  16135. "allOf": [
  16136. {
  16137. "minimum": 0
  16138. }
  16139. ]
  16140. },
  16141. "version": {
  16142. "type": "number",
  16143. "enum": [1]
  16144. }
  16145. },
  16146. "required": ["aggregateID", "seq", "version"],
  16147. "additionalProperties": false
  16148. },
  16149. "location": {
  16150. "$ref": "#/components/schemas/Location.Ref"
  16151. },
  16152. "data": {
  16153. "type": "object",
  16154. "properties": {
  16155. "sessionID": {
  16156. "type": "string",
  16157. "allOf": [
  16158. {
  16159. "pattern": "^ses"
  16160. }
  16161. ]
  16162. },
  16163. "assistantMessageID": {
  16164. "type": "string",
  16165. "allOf": [
  16166. {
  16167. "pattern": "^msg_"
  16168. }
  16169. ]
  16170. },
  16171. "error": {
  16172. "$ref": "#/components/schemas/Session.StructuredError"
  16173. },
  16174. "cost": {
  16175. "$ref": "#/components/schemas/Money.USD"
  16176. },
  16177. "tokens": {
  16178. "$ref": "#/components/schemas/TokenUsage.Info"
  16179. },
  16180. "snapshot": {
  16181. "type": "string"
  16182. },
  16183. "files": {
  16184. "type": "array",
  16185. "items": {
  16186. "type": "string"
  16187. }
  16188. }
  16189. },
  16190. "required": ["sessionID", "assistantMessageID", "error"],
  16191. "additionalProperties": false
  16192. }
  16193. },
  16194. "required": ["id", "created", "type", "durable", "data"],
  16195. "additionalProperties": false
  16196. },
  16197. "session.text.started": {
  16198. "type": "object",
  16199. "properties": {
  16200. "id": {
  16201. "type": "string",
  16202. "allOf": [
  16203. {
  16204. "pattern": "^evt_"
  16205. }
  16206. ]
  16207. },
  16208. "created": {
  16209. "type": "number"
  16210. },
  16211. "metadata": {
  16212. "type": "object"
  16213. },
  16214. "type": {
  16215. "type": "string",
  16216. "enum": ["session.text.started"]
  16217. },
  16218. "durable": {
  16219. "type": "object",
  16220. "properties": {
  16221. "aggregateID": {
  16222. "type": "string"
  16223. },
  16224. "seq": {
  16225. "type": "integer",
  16226. "allOf": [
  16227. {
  16228. "minimum": 0
  16229. }
  16230. ]
  16231. },
  16232. "version": {
  16233. "type": "number",
  16234. "enum": [1]
  16235. }
  16236. },
  16237. "required": ["aggregateID", "seq", "version"],
  16238. "additionalProperties": false
  16239. },
  16240. "location": {
  16241. "$ref": "#/components/schemas/Location.Ref"
  16242. },
  16243. "data": {
  16244. "type": "object",
  16245. "properties": {
  16246. "sessionID": {
  16247. "type": "string",
  16248. "allOf": [
  16249. {
  16250. "pattern": "^ses"
  16251. }
  16252. ]
  16253. },
  16254. "assistantMessageID": {
  16255. "type": "string",
  16256. "allOf": [
  16257. {
  16258. "pattern": "^msg_"
  16259. }
  16260. ]
  16261. },
  16262. "ordinal": {
  16263. "type": "integer",
  16264. "allOf": [
  16265. {
  16266. "minimum": 0
  16267. }
  16268. ]
  16269. }
  16270. },
  16271. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16272. "additionalProperties": false
  16273. }
  16274. },
  16275. "required": ["id", "created", "type", "durable", "data"],
  16276. "additionalProperties": false
  16277. },
  16278. "Session.Message.ProviderState4": {
  16279. "type": "object"
  16280. },
  16281. "session.text.ended": {
  16282. "type": "object",
  16283. "properties": {
  16284. "id": {
  16285. "type": "string",
  16286. "allOf": [
  16287. {
  16288. "pattern": "^evt_"
  16289. }
  16290. ]
  16291. },
  16292. "created": {
  16293. "type": "number"
  16294. },
  16295. "metadata": {
  16296. "type": "object"
  16297. },
  16298. "type": {
  16299. "type": "string",
  16300. "enum": ["session.text.ended"]
  16301. },
  16302. "durable": {
  16303. "type": "object",
  16304. "properties": {
  16305. "aggregateID": {
  16306. "type": "string"
  16307. },
  16308. "seq": {
  16309. "type": "integer",
  16310. "allOf": [
  16311. {
  16312. "minimum": 0
  16313. }
  16314. ]
  16315. },
  16316. "version": {
  16317. "type": "number",
  16318. "enum": [1]
  16319. }
  16320. },
  16321. "required": ["aggregateID", "seq", "version"],
  16322. "additionalProperties": false
  16323. },
  16324. "location": {
  16325. "$ref": "#/components/schemas/Location.Ref"
  16326. },
  16327. "data": {
  16328. "type": "object",
  16329. "properties": {
  16330. "sessionID": {
  16331. "type": "string",
  16332. "allOf": [
  16333. {
  16334. "pattern": "^ses"
  16335. }
  16336. ]
  16337. },
  16338. "assistantMessageID": {
  16339. "type": "string",
  16340. "allOf": [
  16341. {
  16342. "pattern": "^msg_"
  16343. }
  16344. ]
  16345. },
  16346. "ordinal": {
  16347. "type": "integer",
  16348. "allOf": [
  16349. {
  16350. "minimum": 0
  16351. }
  16352. ]
  16353. },
  16354. "text": {
  16355. "type": "string"
  16356. },
  16357. "state": {
  16358. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  16359. }
  16360. },
  16361. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16362. "additionalProperties": false
  16363. }
  16364. },
  16365. "required": ["id", "created", "type", "durable", "data"],
  16366. "additionalProperties": false
  16367. },
  16368. "Session.Message.ProviderState5": {
  16369. "type": "object"
  16370. },
  16371. "session.reasoning.started": {
  16372. "type": "object",
  16373. "properties": {
  16374. "id": {
  16375. "type": "string",
  16376. "allOf": [
  16377. {
  16378. "pattern": "^evt_"
  16379. }
  16380. ]
  16381. },
  16382. "created": {
  16383. "type": "number"
  16384. },
  16385. "metadata": {
  16386. "type": "object"
  16387. },
  16388. "type": {
  16389. "type": "string",
  16390. "enum": ["session.reasoning.started"]
  16391. },
  16392. "durable": {
  16393. "type": "object",
  16394. "properties": {
  16395. "aggregateID": {
  16396. "type": "string"
  16397. },
  16398. "seq": {
  16399. "type": "integer",
  16400. "allOf": [
  16401. {
  16402. "minimum": 0
  16403. }
  16404. ]
  16405. },
  16406. "version": {
  16407. "type": "number",
  16408. "enum": [1]
  16409. }
  16410. },
  16411. "required": ["aggregateID", "seq", "version"],
  16412. "additionalProperties": false
  16413. },
  16414. "location": {
  16415. "$ref": "#/components/schemas/Location.Ref"
  16416. },
  16417. "data": {
  16418. "type": "object",
  16419. "properties": {
  16420. "sessionID": {
  16421. "type": "string",
  16422. "allOf": [
  16423. {
  16424. "pattern": "^ses"
  16425. }
  16426. ]
  16427. },
  16428. "assistantMessageID": {
  16429. "type": "string",
  16430. "allOf": [
  16431. {
  16432. "pattern": "^msg_"
  16433. }
  16434. ]
  16435. },
  16436. "ordinal": {
  16437. "type": "integer",
  16438. "allOf": [
  16439. {
  16440. "minimum": 0
  16441. }
  16442. ]
  16443. },
  16444. "state": {
  16445. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  16446. }
  16447. },
  16448. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16449. "additionalProperties": false
  16450. }
  16451. },
  16452. "required": ["id", "created", "type", "durable", "data"],
  16453. "additionalProperties": false
  16454. },
  16455. "Session.Message.ProviderState6": {
  16456. "type": "object"
  16457. },
  16458. "session.reasoning.ended": {
  16459. "type": "object",
  16460. "properties": {
  16461. "id": {
  16462. "type": "string",
  16463. "allOf": [
  16464. {
  16465. "pattern": "^evt_"
  16466. }
  16467. ]
  16468. },
  16469. "created": {
  16470. "type": "number"
  16471. },
  16472. "metadata": {
  16473. "type": "object"
  16474. },
  16475. "type": {
  16476. "type": "string",
  16477. "enum": ["session.reasoning.ended"]
  16478. },
  16479. "durable": {
  16480. "type": "object",
  16481. "properties": {
  16482. "aggregateID": {
  16483. "type": "string"
  16484. },
  16485. "seq": {
  16486. "type": "integer",
  16487. "allOf": [
  16488. {
  16489. "minimum": 0
  16490. }
  16491. ]
  16492. },
  16493. "version": {
  16494. "type": "number",
  16495. "enum": [1]
  16496. }
  16497. },
  16498. "required": ["aggregateID", "seq", "version"],
  16499. "additionalProperties": false
  16500. },
  16501. "location": {
  16502. "$ref": "#/components/schemas/Location.Ref"
  16503. },
  16504. "data": {
  16505. "type": "object",
  16506. "properties": {
  16507. "sessionID": {
  16508. "type": "string",
  16509. "allOf": [
  16510. {
  16511. "pattern": "^ses"
  16512. }
  16513. ]
  16514. },
  16515. "assistantMessageID": {
  16516. "type": "string",
  16517. "allOf": [
  16518. {
  16519. "pattern": "^msg_"
  16520. }
  16521. ]
  16522. },
  16523. "ordinal": {
  16524. "type": "integer",
  16525. "allOf": [
  16526. {
  16527. "minimum": 0
  16528. }
  16529. ]
  16530. },
  16531. "text": {
  16532. "type": "string"
  16533. },
  16534. "state": {
  16535. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  16536. }
  16537. },
  16538. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16539. "additionalProperties": false
  16540. }
  16541. },
  16542. "required": ["id", "created", "type", "durable", "data"],
  16543. "additionalProperties": false
  16544. },
  16545. "session.tool.input.started": {
  16546. "type": "object",
  16547. "properties": {
  16548. "id": {
  16549. "type": "string",
  16550. "allOf": [
  16551. {
  16552. "pattern": "^evt_"
  16553. }
  16554. ]
  16555. },
  16556. "created": {
  16557. "type": "number"
  16558. },
  16559. "metadata": {
  16560. "type": "object"
  16561. },
  16562. "type": {
  16563. "type": "string",
  16564. "enum": ["session.tool.input.started"]
  16565. },
  16566. "durable": {
  16567. "type": "object",
  16568. "properties": {
  16569. "aggregateID": {
  16570. "type": "string"
  16571. },
  16572. "seq": {
  16573. "type": "integer",
  16574. "allOf": [
  16575. {
  16576. "minimum": 0
  16577. }
  16578. ]
  16579. },
  16580. "version": {
  16581. "type": "number",
  16582. "enum": [1]
  16583. }
  16584. },
  16585. "required": ["aggregateID", "seq", "version"],
  16586. "additionalProperties": false
  16587. },
  16588. "location": {
  16589. "$ref": "#/components/schemas/Location.Ref"
  16590. },
  16591. "data": {
  16592. "type": "object",
  16593. "properties": {
  16594. "sessionID": {
  16595. "type": "string",
  16596. "allOf": [
  16597. {
  16598. "pattern": "^ses"
  16599. }
  16600. ]
  16601. },
  16602. "assistantMessageID": {
  16603. "type": "string",
  16604. "allOf": [
  16605. {
  16606. "pattern": "^msg_"
  16607. }
  16608. ]
  16609. },
  16610. "id": {
  16611. "type": "string"
  16612. },
  16613. "name": {
  16614. "type": "string"
  16615. }
  16616. },
  16617. "required": ["sessionID", "assistantMessageID", "id", "name"],
  16618. "additionalProperties": false
  16619. }
  16620. },
  16621. "required": ["id", "created", "type", "durable", "data"],
  16622. "additionalProperties": false
  16623. },
  16624. "session.tool.input.ended": {
  16625. "type": "object",
  16626. "properties": {
  16627. "id": {
  16628. "type": "string",
  16629. "allOf": [
  16630. {
  16631. "pattern": "^evt_"
  16632. }
  16633. ]
  16634. },
  16635. "created": {
  16636. "type": "number"
  16637. },
  16638. "metadata": {
  16639. "type": "object"
  16640. },
  16641. "type": {
  16642. "type": "string",
  16643. "enum": ["session.tool.input.ended"]
  16644. },
  16645. "durable": {
  16646. "type": "object",
  16647. "properties": {
  16648. "aggregateID": {
  16649. "type": "string"
  16650. },
  16651. "seq": {
  16652. "type": "integer",
  16653. "allOf": [
  16654. {
  16655. "minimum": 0
  16656. }
  16657. ]
  16658. },
  16659. "version": {
  16660. "type": "number",
  16661. "enum": [1]
  16662. }
  16663. },
  16664. "required": ["aggregateID", "seq", "version"],
  16665. "additionalProperties": false
  16666. },
  16667. "location": {
  16668. "$ref": "#/components/schemas/Location.Ref"
  16669. },
  16670. "data": {
  16671. "type": "object",
  16672. "properties": {
  16673. "sessionID": {
  16674. "type": "string",
  16675. "allOf": [
  16676. {
  16677. "pattern": "^ses"
  16678. }
  16679. ]
  16680. },
  16681. "assistantMessageID": {
  16682. "type": "string",
  16683. "allOf": [
  16684. {
  16685. "pattern": "^msg_"
  16686. }
  16687. ]
  16688. },
  16689. "id": {
  16690. "type": "string"
  16691. },
  16692. "text": {
  16693. "type": "string"
  16694. }
  16695. },
  16696. "required": ["sessionID", "assistantMessageID", "id", "text"],
  16697. "additionalProperties": false
  16698. }
  16699. },
  16700. "required": ["id", "created", "type", "durable", "data"],
  16701. "additionalProperties": false
  16702. },
  16703. "Session.Message.ProviderState7": {
  16704. "type": "object"
  16705. },
  16706. "session.tool.called": {
  16707. "type": "object",
  16708. "properties": {
  16709. "id": {
  16710. "type": "string",
  16711. "allOf": [
  16712. {
  16713. "pattern": "^evt_"
  16714. }
  16715. ]
  16716. },
  16717. "created": {
  16718. "type": "number"
  16719. },
  16720. "metadata": {
  16721. "type": "object"
  16722. },
  16723. "type": {
  16724. "type": "string",
  16725. "enum": ["session.tool.called"]
  16726. },
  16727. "durable": {
  16728. "type": "object",
  16729. "properties": {
  16730. "aggregateID": {
  16731. "type": "string"
  16732. },
  16733. "seq": {
  16734. "type": "integer",
  16735. "allOf": [
  16736. {
  16737. "minimum": 0
  16738. }
  16739. ]
  16740. },
  16741. "version": {
  16742. "type": "number",
  16743. "enum": [1]
  16744. }
  16745. },
  16746. "required": ["aggregateID", "seq", "version"],
  16747. "additionalProperties": false
  16748. },
  16749. "location": {
  16750. "$ref": "#/components/schemas/Location.Ref"
  16751. },
  16752. "data": {
  16753. "type": "object",
  16754. "properties": {
  16755. "sessionID": {
  16756. "type": "string",
  16757. "allOf": [
  16758. {
  16759. "pattern": "^ses"
  16760. }
  16761. ]
  16762. },
  16763. "assistantMessageID": {
  16764. "type": "string",
  16765. "allOf": [
  16766. {
  16767. "pattern": "^msg_"
  16768. }
  16769. ]
  16770. },
  16771. "id": {
  16772. "type": "string"
  16773. },
  16774. "input": {
  16775. "type": "object"
  16776. },
  16777. "executed": {
  16778. "type": "boolean"
  16779. },
  16780. "state": {
  16781. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  16782. }
  16783. },
  16784. "required": ["sessionID", "assistantMessageID", "id", "input", "executed"],
  16785. "additionalProperties": false
  16786. }
  16787. },
  16788. "required": ["id", "created", "type", "durable", "data"],
  16789. "additionalProperties": false
  16790. },
  16791. "Tool.FileContent1": {
  16792. "type": "object",
  16793. "properties": {
  16794. "type": {
  16795. "type": "string",
  16796. "enum": ["file"]
  16797. },
  16798. "uri": {
  16799. "type": "string"
  16800. },
  16801. "mime": {
  16802. "type": "string"
  16803. },
  16804. "name": {
  16805. "anyOf": [
  16806. {
  16807. "type": "string"
  16808. },
  16809. {
  16810. "type": "null"
  16811. }
  16812. ]
  16813. }
  16814. },
  16815. "required": ["type", "uri", "mime"],
  16816. "additionalProperties": false
  16817. },
  16818. "Tool.Content1": {
  16819. "anyOf": [
  16820. {
  16821. "$ref": "#/components/schemas/Tool.TextContent"
  16822. },
  16823. {
  16824. "$ref": "#/components/schemas/Tool.FileContent1"
  16825. }
  16826. ]
  16827. },
  16828. "Session.Message.ProviderState8": {
  16829. "type": "object"
  16830. },
  16831. "session.tool.success": {
  16832. "type": "object",
  16833. "properties": {
  16834. "id": {
  16835. "type": "string",
  16836. "allOf": [
  16837. {
  16838. "pattern": "^evt_"
  16839. }
  16840. ]
  16841. },
  16842. "created": {
  16843. "type": "number"
  16844. },
  16845. "metadata": {
  16846. "type": "object"
  16847. },
  16848. "type": {
  16849. "type": "string",
  16850. "enum": ["session.tool.success"]
  16851. },
  16852. "durable": {
  16853. "type": "object",
  16854. "properties": {
  16855. "aggregateID": {
  16856. "type": "string"
  16857. },
  16858. "seq": {
  16859. "type": "integer",
  16860. "allOf": [
  16861. {
  16862. "minimum": 0
  16863. }
  16864. ]
  16865. },
  16866. "version": {
  16867. "type": "number",
  16868. "enum": [2]
  16869. }
  16870. },
  16871. "required": ["aggregateID", "seq", "version"],
  16872. "additionalProperties": false
  16873. },
  16874. "location": {
  16875. "$ref": "#/components/schemas/Location.Ref"
  16876. },
  16877. "data": {
  16878. "type": "object",
  16879. "properties": {
  16880. "sessionID": {
  16881. "type": "string",
  16882. "allOf": [
  16883. {
  16884. "pattern": "^ses"
  16885. }
  16886. ]
  16887. },
  16888. "assistantMessageID": {
  16889. "type": "string",
  16890. "allOf": [
  16891. {
  16892. "pattern": "^msg_"
  16893. }
  16894. ]
  16895. },
  16896. "id": {
  16897. "type": "string"
  16898. },
  16899. "content": {
  16900. "type": "array",
  16901. "prefixItems": [
  16902. {
  16903. "$ref": "#/components/schemas/Tool.Content1"
  16904. }
  16905. ],
  16906. "minItems": 1,
  16907. "items": {
  16908. "$ref": "#/components/schemas/Tool.Content1"
  16909. }
  16910. },
  16911. "metadata": {
  16912. "type": "object"
  16913. },
  16914. "executed": {
  16915. "type": "boolean"
  16916. },
  16917. "resultState": {
  16918. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  16919. }
  16920. },
  16921. "required": ["sessionID", "assistantMessageID", "id", "content", "executed"],
  16922. "additionalProperties": false
  16923. }
  16924. },
  16925. "required": ["id", "created", "type", "durable", "data"],
  16926. "additionalProperties": false
  16927. },
  16928. "Session.Message.ProviderState9": {
  16929. "type": "object"
  16930. },
  16931. "session.tool.failed": {
  16932. "type": "object",
  16933. "properties": {
  16934. "id": {
  16935. "type": "string",
  16936. "allOf": [
  16937. {
  16938. "pattern": "^evt_"
  16939. }
  16940. ]
  16941. },
  16942. "created": {
  16943. "type": "number"
  16944. },
  16945. "metadata": {
  16946. "type": "object"
  16947. },
  16948. "type": {
  16949. "type": "string",
  16950. "enum": ["session.tool.failed"]
  16951. },
  16952. "durable": {
  16953. "type": "object",
  16954. "properties": {
  16955. "aggregateID": {
  16956. "type": "string"
  16957. },
  16958. "seq": {
  16959. "type": "integer",
  16960. "allOf": [
  16961. {
  16962. "minimum": 0
  16963. }
  16964. ]
  16965. },
  16966. "version": {
  16967. "type": "number",
  16968. "enum": [2]
  16969. }
  16970. },
  16971. "required": ["aggregateID", "seq", "version"],
  16972. "additionalProperties": false
  16973. },
  16974. "location": {
  16975. "$ref": "#/components/schemas/Location.Ref"
  16976. },
  16977. "data": {
  16978. "type": "object",
  16979. "properties": {
  16980. "sessionID": {
  16981. "type": "string",
  16982. "allOf": [
  16983. {
  16984. "pattern": "^ses"
  16985. }
  16986. ]
  16987. },
  16988. "assistantMessageID": {
  16989. "type": "string",
  16990. "allOf": [
  16991. {
  16992. "pattern": "^msg_"
  16993. }
  16994. ]
  16995. },
  16996. "id": {
  16997. "type": "string"
  16998. },
  16999. "error": {
  17000. "$ref": "#/components/schemas/Session.StructuredError"
  17001. },
  17002. "content": {
  17003. "type": "array",
  17004. "prefixItems": [
  17005. {
  17006. "$ref": "#/components/schemas/Tool.Content1"
  17007. }
  17008. ],
  17009. "minItems": 1,
  17010. "items": {
  17011. "$ref": "#/components/schemas/Tool.Content1"
  17012. }
  17013. },
  17014. "metadata": {
  17015. "type": "object"
  17016. },
  17017. "executed": {
  17018. "type": "boolean"
  17019. },
  17020. "resultState": {
  17021. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  17022. }
  17023. },
  17024. "required": ["sessionID", "assistantMessageID", "id", "error", "executed"],
  17025. "additionalProperties": false
  17026. }
  17027. },
  17028. "required": ["id", "created", "type", "durable", "data"],
  17029. "additionalProperties": false
  17030. },
  17031. "session.retry.scheduled": {
  17032. "type": "object",
  17033. "properties": {
  17034. "id": {
  17035. "type": "string",
  17036. "allOf": [
  17037. {
  17038. "pattern": "^evt_"
  17039. }
  17040. ]
  17041. },
  17042. "created": {
  17043. "type": "number"
  17044. },
  17045. "metadata": {
  17046. "type": "object"
  17047. },
  17048. "type": {
  17049. "type": "string",
  17050. "enum": ["session.retry.scheduled"]
  17051. },
  17052. "durable": {
  17053. "type": "object",
  17054. "properties": {
  17055. "aggregateID": {
  17056. "type": "string"
  17057. },
  17058. "seq": {
  17059. "type": "integer",
  17060. "allOf": [
  17061. {
  17062. "minimum": 0
  17063. }
  17064. ]
  17065. },
  17066. "version": {
  17067. "type": "number",
  17068. "enum": [1]
  17069. }
  17070. },
  17071. "required": ["aggregateID", "seq", "version"],
  17072. "additionalProperties": false
  17073. },
  17074. "location": {
  17075. "$ref": "#/components/schemas/Location.Ref"
  17076. },
  17077. "data": {
  17078. "type": "object",
  17079. "properties": {
  17080. "sessionID": {
  17081. "type": "string",
  17082. "allOf": [
  17083. {
  17084. "pattern": "^ses"
  17085. }
  17086. ]
  17087. },
  17088. "assistantMessageID": {
  17089. "type": "string",
  17090. "allOf": [
  17091. {
  17092. "pattern": "^msg_"
  17093. }
  17094. ]
  17095. },
  17096. "attempt": {
  17097. "type": "integer",
  17098. "allOf": [
  17099. {
  17100. "exclusiveMinimum": 0
  17101. }
  17102. ]
  17103. },
  17104. "at": {
  17105. "type": "integer",
  17106. "allOf": [
  17107. {
  17108. "minimum": 0
  17109. }
  17110. ]
  17111. },
  17112. "error": {
  17113. "$ref": "#/components/schemas/Session.StructuredError"
  17114. }
  17115. },
  17116. "required": ["sessionID", "assistantMessageID", "attempt", "at", "error"],
  17117. "additionalProperties": false
  17118. }
  17119. },
  17120. "required": ["id", "created", "type", "durable", "data"],
  17121. "additionalProperties": false
  17122. },
  17123. "session.compaction.admitted": {
  17124. "type": "object",
  17125. "properties": {
  17126. "id": {
  17127. "type": "string",
  17128. "allOf": [
  17129. {
  17130. "pattern": "^evt_"
  17131. }
  17132. ]
  17133. },
  17134. "created": {
  17135. "type": "number"
  17136. },
  17137. "metadata": {
  17138. "type": "object"
  17139. },
  17140. "type": {
  17141. "type": "string",
  17142. "enum": ["session.compaction.admitted"]
  17143. },
  17144. "durable": {
  17145. "type": "object",
  17146. "properties": {
  17147. "aggregateID": {
  17148. "type": "string"
  17149. },
  17150. "seq": {
  17151. "type": "integer",
  17152. "allOf": [
  17153. {
  17154. "minimum": 0
  17155. }
  17156. ]
  17157. },
  17158. "version": {
  17159. "type": "number",
  17160. "enum": [1]
  17161. }
  17162. },
  17163. "required": ["aggregateID", "seq", "version"],
  17164. "additionalProperties": false
  17165. },
  17166. "location": {
  17167. "$ref": "#/components/schemas/Location.Ref"
  17168. },
  17169. "data": {
  17170. "type": "object",
  17171. "properties": {
  17172. "sessionID": {
  17173. "type": "string",
  17174. "allOf": [
  17175. {
  17176. "pattern": "^ses"
  17177. }
  17178. ]
  17179. },
  17180. "inputID": {
  17181. "type": "string",
  17182. "allOf": [
  17183. {
  17184. "pattern": "^msg_"
  17185. }
  17186. ]
  17187. }
  17188. },
  17189. "required": ["sessionID", "inputID"],
  17190. "additionalProperties": false
  17191. }
  17192. },
  17193. "required": ["id", "created", "type", "durable", "data"],
  17194. "additionalProperties": false
  17195. },
  17196. "session.compaction.started": {
  17197. "type": "object",
  17198. "properties": {
  17199. "id": {
  17200. "type": "string",
  17201. "allOf": [
  17202. {
  17203. "pattern": "^evt_"
  17204. }
  17205. ]
  17206. },
  17207. "created": {
  17208. "type": "number"
  17209. },
  17210. "metadata": {
  17211. "type": "object"
  17212. },
  17213. "type": {
  17214. "type": "string",
  17215. "enum": ["session.compaction.started"]
  17216. },
  17217. "durable": {
  17218. "type": "object",
  17219. "properties": {
  17220. "aggregateID": {
  17221. "type": "string"
  17222. },
  17223. "seq": {
  17224. "type": "integer",
  17225. "allOf": [
  17226. {
  17227. "minimum": 0
  17228. }
  17229. ]
  17230. },
  17231. "version": {
  17232. "type": "number",
  17233. "enum": [1]
  17234. }
  17235. },
  17236. "required": ["aggregateID", "seq", "version"],
  17237. "additionalProperties": false
  17238. },
  17239. "location": {
  17240. "$ref": "#/components/schemas/Location.Ref"
  17241. },
  17242. "data": {
  17243. "type": "object",
  17244. "properties": {
  17245. "sessionID": {
  17246. "type": "string",
  17247. "allOf": [
  17248. {
  17249. "pattern": "^ses"
  17250. }
  17251. ]
  17252. },
  17253. "reason": {
  17254. "type": "string",
  17255. "enum": ["auto", "manual"]
  17256. },
  17257. "recent": {
  17258. "type": "string"
  17259. },
  17260. "inputID": {
  17261. "type": "string",
  17262. "allOf": [
  17263. {
  17264. "pattern": "^msg_"
  17265. }
  17266. ]
  17267. }
  17268. },
  17269. "required": ["sessionID", "reason", "recent"],
  17270. "additionalProperties": false
  17271. }
  17272. },
  17273. "required": ["id", "created", "type", "durable", "data"],
  17274. "additionalProperties": false
  17275. },
  17276. "session.compaction.ended": {
  17277. "type": "object",
  17278. "properties": {
  17279. "id": {
  17280. "type": "string",
  17281. "allOf": [
  17282. {
  17283. "pattern": "^evt_"
  17284. }
  17285. ]
  17286. },
  17287. "created": {
  17288. "type": "number"
  17289. },
  17290. "metadata": {
  17291. "type": "object"
  17292. },
  17293. "type": {
  17294. "type": "string",
  17295. "enum": ["session.compaction.ended"]
  17296. },
  17297. "durable": {
  17298. "type": "object",
  17299. "properties": {
  17300. "aggregateID": {
  17301. "type": "string"
  17302. },
  17303. "seq": {
  17304. "type": "integer",
  17305. "allOf": [
  17306. {
  17307. "minimum": 0
  17308. }
  17309. ]
  17310. },
  17311. "version": {
  17312. "type": "number",
  17313. "enum": [1]
  17314. }
  17315. },
  17316. "required": ["aggregateID", "seq", "version"],
  17317. "additionalProperties": false
  17318. },
  17319. "location": {
  17320. "$ref": "#/components/schemas/Location.Ref"
  17321. },
  17322. "data": {
  17323. "type": "object",
  17324. "properties": {
  17325. "sessionID": {
  17326. "type": "string",
  17327. "allOf": [
  17328. {
  17329. "pattern": "^ses"
  17330. }
  17331. ]
  17332. },
  17333. "reason": {
  17334. "type": "string",
  17335. "enum": ["auto", "manual"]
  17336. },
  17337. "text": {
  17338. "type": "string"
  17339. },
  17340. "recent": {
  17341. "type": "string"
  17342. }
  17343. },
  17344. "required": ["sessionID", "reason", "text", "recent"],
  17345. "additionalProperties": false
  17346. }
  17347. },
  17348. "required": ["id", "created", "type", "durable", "data"],
  17349. "additionalProperties": false
  17350. },
  17351. "session.compaction.failed": {
  17352. "type": "object",
  17353. "properties": {
  17354. "id": {
  17355. "type": "string",
  17356. "allOf": [
  17357. {
  17358. "pattern": "^evt_"
  17359. }
  17360. ]
  17361. },
  17362. "created": {
  17363. "type": "number"
  17364. },
  17365. "metadata": {
  17366. "type": "object"
  17367. },
  17368. "type": {
  17369. "type": "string",
  17370. "enum": ["session.compaction.failed"]
  17371. },
  17372. "durable": {
  17373. "type": "object",
  17374. "properties": {
  17375. "aggregateID": {
  17376. "type": "string"
  17377. },
  17378. "seq": {
  17379. "type": "integer",
  17380. "allOf": [
  17381. {
  17382. "minimum": 0
  17383. }
  17384. ]
  17385. },
  17386. "version": {
  17387. "type": "number",
  17388. "enum": [1]
  17389. }
  17390. },
  17391. "required": ["aggregateID", "seq", "version"],
  17392. "additionalProperties": false
  17393. },
  17394. "location": {
  17395. "$ref": "#/components/schemas/Location.Ref"
  17396. },
  17397. "data": {
  17398. "type": "object",
  17399. "properties": {
  17400. "sessionID": {
  17401. "type": "string",
  17402. "allOf": [
  17403. {
  17404. "pattern": "^ses"
  17405. }
  17406. ]
  17407. },
  17408. "reason": {
  17409. "type": "string",
  17410. "enum": ["auto", "manual"]
  17411. },
  17412. "error": {
  17413. "$ref": "#/components/schemas/Session.StructuredError"
  17414. },
  17415. "inputID": {
  17416. "type": "string",
  17417. "allOf": [
  17418. {
  17419. "pattern": "^msg_"
  17420. }
  17421. ]
  17422. }
  17423. },
  17424. "required": ["sessionID", "reason", "error"],
  17425. "additionalProperties": false
  17426. }
  17427. },
  17428. "required": ["id", "created", "type", "durable", "data"],
  17429. "additionalProperties": false
  17430. },
  17431. "session.revert.staged": {
  17432. "type": "object",
  17433. "properties": {
  17434. "id": {
  17435. "type": "string",
  17436. "allOf": [
  17437. {
  17438. "pattern": "^evt_"
  17439. }
  17440. ]
  17441. },
  17442. "created": {
  17443. "type": "number"
  17444. },
  17445. "metadata": {
  17446. "type": "object"
  17447. },
  17448. "type": {
  17449. "type": "string",
  17450. "enum": ["session.revert.staged"]
  17451. },
  17452. "durable": {
  17453. "type": "object",
  17454. "properties": {
  17455. "aggregateID": {
  17456. "type": "string"
  17457. },
  17458. "seq": {
  17459. "type": "integer",
  17460. "allOf": [
  17461. {
  17462. "minimum": 0
  17463. }
  17464. ]
  17465. },
  17466. "version": {
  17467. "type": "number",
  17468. "enum": [1]
  17469. }
  17470. },
  17471. "required": ["aggregateID", "seq", "version"],
  17472. "additionalProperties": false
  17473. },
  17474. "location": {
  17475. "$ref": "#/components/schemas/Location.Ref"
  17476. },
  17477. "data": {
  17478. "type": "object",
  17479. "properties": {
  17480. "sessionID": {
  17481. "type": "string",
  17482. "allOf": [
  17483. {
  17484. "pattern": "^ses"
  17485. }
  17486. ]
  17487. },
  17488. "revert": {
  17489. "$ref": "#/components/schemas/Session.Revert"
  17490. }
  17491. },
  17492. "required": ["sessionID", "revert"],
  17493. "additionalProperties": false
  17494. }
  17495. },
  17496. "required": ["id", "created", "type", "durable", "data"],
  17497. "additionalProperties": false
  17498. },
  17499. "session.revert.cleared": {
  17500. "type": "object",
  17501. "properties": {
  17502. "id": {
  17503. "type": "string",
  17504. "allOf": [
  17505. {
  17506. "pattern": "^evt_"
  17507. }
  17508. ]
  17509. },
  17510. "created": {
  17511. "type": "number"
  17512. },
  17513. "metadata": {
  17514. "type": "object"
  17515. },
  17516. "type": {
  17517. "type": "string",
  17518. "enum": ["session.revert.cleared"]
  17519. },
  17520. "durable": {
  17521. "type": "object",
  17522. "properties": {
  17523. "aggregateID": {
  17524. "type": "string"
  17525. },
  17526. "seq": {
  17527. "type": "integer",
  17528. "allOf": [
  17529. {
  17530. "minimum": 0
  17531. }
  17532. ]
  17533. },
  17534. "version": {
  17535. "type": "number",
  17536. "enum": [1]
  17537. }
  17538. },
  17539. "required": ["aggregateID", "seq", "version"],
  17540. "additionalProperties": false
  17541. },
  17542. "location": {
  17543. "$ref": "#/components/schemas/Location.Ref"
  17544. },
  17545. "data": {
  17546. "type": "object",
  17547. "properties": {
  17548. "sessionID": {
  17549. "type": "string",
  17550. "allOf": [
  17551. {
  17552. "pattern": "^ses"
  17553. }
  17554. ]
  17555. }
  17556. },
  17557. "required": ["sessionID"],
  17558. "additionalProperties": false
  17559. }
  17560. },
  17561. "required": ["id", "created", "type", "durable", "data"],
  17562. "additionalProperties": false
  17563. },
  17564. "session.revert.committed": {
  17565. "type": "object",
  17566. "properties": {
  17567. "id": {
  17568. "type": "string",
  17569. "allOf": [
  17570. {
  17571. "pattern": "^evt_"
  17572. }
  17573. ]
  17574. },
  17575. "created": {
  17576. "type": "number"
  17577. },
  17578. "metadata": {
  17579. "type": "object"
  17580. },
  17581. "type": {
  17582. "type": "string",
  17583. "enum": ["session.revert.committed"]
  17584. },
  17585. "durable": {
  17586. "type": "object",
  17587. "properties": {
  17588. "aggregateID": {
  17589. "type": "string"
  17590. },
  17591. "seq": {
  17592. "type": "integer",
  17593. "allOf": [
  17594. {
  17595. "minimum": 0
  17596. }
  17597. ]
  17598. },
  17599. "version": {
  17600. "type": "number",
  17601. "enum": [1]
  17602. }
  17603. },
  17604. "required": ["aggregateID", "seq", "version"],
  17605. "additionalProperties": false
  17606. },
  17607. "location": {
  17608. "$ref": "#/components/schemas/Location.Ref"
  17609. },
  17610. "data": {
  17611. "type": "object",
  17612. "properties": {
  17613. "sessionID": {
  17614. "type": "string",
  17615. "allOf": [
  17616. {
  17617. "pattern": "^ses"
  17618. }
  17619. ]
  17620. },
  17621. "to": {
  17622. "type": "string",
  17623. "allOf": [
  17624. {
  17625. "pattern": "^msg_"
  17626. }
  17627. ]
  17628. }
  17629. },
  17630. "required": ["sessionID", "to"],
  17631. "additionalProperties": false
  17632. }
  17633. },
  17634. "required": ["id", "created", "type", "durable", "data"],
  17635. "additionalProperties": false
  17636. },
  17637. "session.usage.recorded": {
  17638. "type": "object",
  17639. "properties": {
  17640. "id": {
  17641. "type": "string",
  17642. "allOf": [
  17643. {
  17644. "pattern": "^evt_"
  17645. }
  17646. ]
  17647. },
  17648. "created": {
  17649. "type": "number"
  17650. },
  17651. "metadata": {
  17652. "type": "object"
  17653. },
  17654. "type": {
  17655. "type": "string",
  17656. "enum": ["session.usage.recorded"]
  17657. },
  17658. "durable": {
  17659. "type": "object",
  17660. "properties": {
  17661. "aggregateID": {
  17662. "type": "string"
  17663. },
  17664. "seq": {
  17665. "type": "integer",
  17666. "allOf": [
  17667. {
  17668. "minimum": 0
  17669. }
  17670. ]
  17671. },
  17672. "version": {
  17673. "type": "number",
  17674. "enum": [1]
  17675. }
  17676. },
  17677. "required": ["aggregateID", "seq", "version"],
  17678. "additionalProperties": false
  17679. },
  17680. "location": {
  17681. "$ref": "#/components/schemas/Location.Ref"
  17682. },
  17683. "data": {
  17684. "type": "object",
  17685. "properties": {
  17686. "sessionID": {
  17687. "type": "string",
  17688. "allOf": [
  17689. {
  17690. "pattern": "^ses"
  17691. }
  17692. ]
  17693. },
  17694. "source": {
  17695. "type": "string",
  17696. "enum": ["title", "compaction"]
  17697. },
  17698. "cost": {
  17699. "$ref": "#/components/schemas/Money.USD"
  17700. },
  17701. "tokens": {
  17702. "$ref": "#/components/schemas/TokenUsage.Info"
  17703. }
  17704. },
  17705. "required": ["sessionID", "source", "cost", "tokens"],
  17706. "additionalProperties": false
  17707. }
  17708. },
  17709. "required": ["id", "created", "type", "durable", "data"],
  17710. "additionalProperties": false
  17711. },
  17712. "Session.Event.Durable": {
  17713. "oneOf": [
  17714. {
  17715. "$ref": "#/components/schemas/session.created"
  17716. },
  17717. {
  17718. "$ref": "#/components/schemas/session.agent.selected"
  17719. },
  17720. {
  17721. "$ref": "#/components/schemas/session.model.selected"
  17722. },
  17723. {
  17724. "$ref": "#/components/schemas/session.moved"
  17725. },
  17726. {
  17727. "$ref": "#/components/schemas/session.renamed"
  17728. },
  17729. {
  17730. "$ref": "#/components/schemas/session.deleted"
  17731. },
  17732. {
  17733. "$ref": "#/components/schemas/session.forked"
  17734. },
  17735. {
  17736. "$ref": "#/components/schemas/session.input.promoted"
  17737. },
  17738. {
  17739. "$ref": "#/components/schemas/session.input.admitted"
  17740. },
  17741. {
  17742. "$ref": "#/components/schemas/session.input.cancelled"
  17743. },
  17744. {
  17745. "$ref": "#/components/schemas/session.input.steered"
  17746. },
  17747. {
  17748. "$ref": "#/components/schemas/session.input.queued"
  17749. },
  17750. {
  17751. "$ref": "#/components/schemas/session.execution.started"
  17752. },
  17753. {
  17754. "$ref": "#/components/schemas/session.execution.succeeded"
  17755. },
  17756. {
  17757. "$ref": "#/components/schemas/session.execution.failed"
  17758. },
  17759. {
  17760. "$ref": "#/components/schemas/session.execution.interrupted"
  17761. },
  17762. {
  17763. "$ref": "#/components/schemas/session.instructions.updated"
  17764. },
  17765. {
  17766. "$ref": "#/components/schemas/session.synthetic"
  17767. },
  17768. {
  17769. "$ref": "#/components/schemas/session.skill.activated"
  17770. },
  17771. {
  17772. "$ref": "#/components/schemas/session.shell.started"
  17773. },
  17774. {
  17775. "$ref": "#/components/schemas/session.shell.ended"
  17776. },
  17777. {
  17778. "$ref": "#/components/schemas/session.step.started"
  17779. },
  17780. {
  17781. "$ref": "#/components/schemas/session.step.ended"
  17782. },
  17783. {
  17784. "$ref": "#/components/schemas/session.step.failed"
  17785. },
  17786. {
  17787. "$ref": "#/components/schemas/session.text.started"
  17788. },
  17789. {
  17790. "$ref": "#/components/schemas/session.text.ended"
  17791. },
  17792. {
  17793. "$ref": "#/components/schemas/session.reasoning.started"
  17794. },
  17795. {
  17796. "$ref": "#/components/schemas/session.reasoning.ended"
  17797. },
  17798. {
  17799. "$ref": "#/components/schemas/session.tool.input.started"
  17800. },
  17801. {
  17802. "$ref": "#/components/schemas/session.tool.input.ended"
  17803. },
  17804. {
  17805. "$ref": "#/components/schemas/session.tool.called"
  17806. },
  17807. {
  17808. "$ref": "#/components/schemas/session.tool.success"
  17809. },
  17810. {
  17811. "$ref": "#/components/schemas/session.tool.failed"
  17812. },
  17813. {
  17814. "$ref": "#/components/schemas/session.retry.scheduled"
  17815. },
  17816. {
  17817. "$ref": "#/components/schemas/session.compaction.admitted"
  17818. },
  17819. {
  17820. "$ref": "#/components/schemas/session.compaction.started"
  17821. },
  17822. {
  17823. "$ref": "#/components/schemas/session.compaction.ended"
  17824. },
  17825. {
  17826. "$ref": "#/components/schemas/session.compaction.failed"
  17827. },
  17828. {
  17829. "$ref": "#/components/schemas/session.revert.staged"
  17830. },
  17831. {
  17832. "$ref": "#/components/schemas/session.revert.cleared"
  17833. },
  17834. {
  17835. "$ref": "#/components/schemas/session.revert.committed"
  17836. },
  17837. {
  17838. "$ref": "#/components/schemas/session.usage.recorded"
  17839. }
  17840. ]
  17841. },
  17842. "EventLog.Synced": {
  17843. "type": "object",
  17844. "properties": {
  17845. "type": {
  17846. "type": "string",
  17847. "enum": ["log.synced"]
  17848. },
  17849. "aggregateID": {
  17850. "type": "string"
  17851. },
  17852. "seq": {
  17853. "type": "integer",
  17854. "allOf": [
  17855. {
  17856. "minimum": 0
  17857. }
  17858. ]
  17859. }
  17860. },
  17861. "required": ["type", "aggregateID"],
  17862. "additionalProperties": false,
  17863. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  17864. },
  17865. "SessionLogItem": {
  17866. "anyOf": [
  17867. {
  17868. "$ref": "#/components/schemas/Session.Event.Durable"
  17869. },
  17870. {
  17871. "$ref": "#/components/schemas/EventLog.Synced"
  17872. }
  17873. ]
  17874. },
  17875. "SessionLogItemJsonString": {
  17876. "type": "string",
  17877. "contentSchema": {
  17878. "$ref": "#/components/schemas/SessionLogItem"
  17879. },
  17880. "contentMediaType": "application/json"
  17881. },
  17882. "SessionMessagesResponse": {
  17883. "type": "object",
  17884. "properties": {
  17885. "data": {
  17886. "type": "array",
  17887. "items": {
  17888. "$ref": "#/components/schemas/Session.Message.Info"
  17889. }
  17890. },
  17891. "cursor": {
  17892. "type": "object",
  17893. "properties": {
  17894. "previous": {
  17895. "anyOf": [
  17896. {
  17897. "type": "string"
  17898. },
  17899. {
  17900. "type": "null"
  17901. }
  17902. ]
  17903. },
  17904. "next": {
  17905. "anyOf": [
  17906. {
  17907. "type": "string"
  17908. },
  17909. {
  17910. "type": "null"
  17911. }
  17912. ]
  17913. }
  17914. },
  17915. "additionalProperties": false
  17916. }
  17917. },
  17918. "required": ["data", "cursor"],
  17919. "additionalProperties": false
  17920. },
  17921. "Model.ReasoningField": {
  17922. "anyOf": [
  17923. {
  17924. "type": "string",
  17925. "enum": ["reasoning", "reasoning_content", "reasoning_text"]
  17926. },
  17927. {
  17928. "type": "string"
  17929. }
  17930. ]
  17931. },
  17932. "Model.MaxTokensField": {
  17933. "type": "string",
  17934. "enum": ["max_completion_tokens", "max_tokens"]
  17935. },
  17936. "Model.Compatibility": {
  17937. "type": "object",
  17938. "properties": {
  17939. "reasoningField": {
  17940. "$ref": "#/components/schemas/Model.ReasoningField"
  17941. },
  17942. "maxTokensField": {
  17943. "$ref": "#/components/schemas/Model.MaxTokensField"
  17944. },
  17945. "requireFinishReason": {
  17946. "type": "boolean"
  17947. }
  17948. },
  17949. "additionalProperties": false
  17950. },
  17951. "Model.Capabilities": {
  17952. "type": "object",
  17953. "properties": {
  17954. "tools": {
  17955. "type": "boolean"
  17956. },
  17957. "input": {
  17958. "type": "array",
  17959. "items": {
  17960. "type": "string"
  17961. }
  17962. },
  17963. "output": {
  17964. "type": "array",
  17965. "items": {
  17966. "type": "string"
  17967. }
  17968. }
  17969. },
  17970. "required": ["tools", "input", "output"],
  17971. "additionalProperties": false
  17972. },
  17973. "Model.Variant": {
  17974. "type": "object",
  17975. "properties": {
  17976. "id": {
  17977. "type": "string"
  17978. },
  17979. "settings": {
  17980. "type": "object"
  17981. },
  17982. "headers": {
  17983. "type": "object",
  17984. "additionalProperties": {
  17985. "type": "string"
  17986. }
  17987. },
  17988. "body": {
  17989. "type": "object"
  17990. }
  17991. },
  17992. "required": ["id"],
  17993. "additionalProperties": false
  17994. },
  17995. "Money.USDPerMillionTokens": {
  17996. "type": "number"
  17997. },
  17998. "Model.Cost": {
  17999. "type": "object",
  18000. "properties": {
  18001. "tier": {
  18002. "type": "object",
  18003. "properties": {
  18004. "type": {
  18005. "type": "string",
  18006. "enum": ["context"]
  18007. },
  18008. "size": {
  18009. "type": "integer"
  18010. }
  18011. },
  18012. "required": ["type", "size"],
  18013. "additionalProperties": false
  18014. },
  18015. "input": {
  18016. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18017. },
  18018. "output": {
  18019. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18020. },
  18021. "cache": {
  18022. "type": "object",
  18023. "properties": {
  18024. "read": {
  18025. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18026. },
  18027. "write": {
  18028. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18029. }
  18030. },
  18031. "required": ["read", "write"],
  18032. "additionalProperties": false
  18033. }
  18034. },
  18035. "required": ["input", "output", "cache"],
  18036. "additionalProperties": false
  18037. },
  18038. "Model.Info": {
  18039. "type": "object",
  18040. "properties": {
  18041. "id": {
  18042. "type": "string"
  18043. },
  18044. "modelID": {
  18045. "type": "string"
  18046. },
  18047. "providerID": {
  18048. "type": "string"
  18049. },
  18050. "family": {
  18051. "type": "string"
  18052. },
  18053. "name": {
  18054. "type": "string"
  18055. },
  18056. "compatibility": {
  18057. "$ref": "#/components/schemas/Model.Compatibility"
  18058. },
  18059. "package": {
  18060. "type": "string"
  18061. },
  18062. "settings": {
  18063. "type": "object"
  18064. },
  18065. "headers": {
  18066. "type": "object",
  18067. "additionalProperties": {
  18068. "type": "string"
  18069. }
  18070. },
  18071. "body": {
  18072. "type": "object"
  18073. },
  18074. "capabilities": {
  18075. "$ref": "#/components/schemas/Model.Capabilities"
  18076. },
  18077. "variants": {
  18078. "type": "array",
  18079. "items": {
  18080. "$ref": "#/components/schemas/Model.Variant"
  18081. }
  18082. },
  18083. "time": {
  18084. "type": "object",
  18085. "properties": {
  18086. "released": {
  18087. "type": "number"
  18088. }
  18089. },
  18090. "required": ["released"],
  18091. "additionalProperties": false
  18092. },
  18093. "cost": {
  18094. "type": "array",
  18095. "items": {
  18096. "$ref": "#/components/schemas/Model.Cost"
  18097. }
  18098. },
  18099. "status": {
  18100. "type": "string",
  18101. "enum": ["alpha", "beta", "deprecated", "active"]
  18102. },
  18103. "enabled": {
  18104. "type": "boolean"
  18105. },
  18106. "limit": {
  18107. "type": "object",
  18108. "properties": {
  18109. "context": {
  18110. "type": "integer"
  18111. },
  18112. "input": {
  18113. "type": "integer"
  18114. },
  18115. "output": {
  18116. "type": "integer"
  18117. }
  18118. },
  18119. "required": ["context", "output"],
  18120. "additionalProperties": false
  18121. }
  18122. },
  18123. "required": [
  18124. "id",
  18125. "modelID",
  18126. "providerID",
  18127. "name",
  18128. "capabilities",
  18129. "variants",
  18130. "time",
  18131. "cost",
  18132. "status",
  18133. "enabled",
  18134. "limit"
  18135. ],
  18136. "additionalProperties": false
  18137. },
  18138. "GenerateTextResponse": {
  18139. "type": "object",
  18140. "properties": {
  18141. "data": {
  18142. "type": "object",
  18143. "properties": {
  18144. "text": {
  18145. "type": "string"
  18146. }
  18147. },
  18148. "required": ["text"],
  18149. "additionalProperties": false
  18150. }
  18151. },
  18152. "required": ["data"],
  18153. "additionalProperties": false
  18154. },
  18155. "Provider.Info": {
  18156. "type": "object",
  18157. "properties": {
  18158. "id": {
  18159. "type": "string"
  18160. },
  18161. "integrationID": {
  18162. "type": "string"
  18163. },
  18164. "name": {
  18165. "type": "string"
  18166. },
  18167. "disabled": {
  18168. "type": "boolean"
  18169. },
  18170. "package": {
  18171. "type": "string"
  18172. },
  18173. "settings": {
  18174. "type": "object"
  18175. },
  18176. "headers": {
  18177. "type": "object",
  18178. "additionalProperties": {
  18179. "type": "string"
  18180. }
  18181. },
  18182. "body": {
  18183. "type": "object"
  18184. }
  18185. },
  18186. "required": ["id", "name", "package"],
  18187. "additionalProperties": false
  18188. },
  18189. "ProviderNotFoundError": {
  18190. "type": "object",
  18191. "properties": {
  18192. "_tag": {
  18193. "type": "string",
  18194. "enum": ["ProviderNotFoundError"]
  18195. },
  18196. "providerID": {
  18197. "type": "string"
  18198. },
  18199. "message": {
  18200. "type": "string"
  18201. }
  18202. },
  18203. "required": ["_tag", "providerID", "message"],
  18204. "additionalProperties": false
  18205. },
  18206. "Form.When": {
  18207. "type": "object",
  18208. "properties": {
  18209. "key": {
  18210. "type": "string"
  18211. },
  18212. "op": {
  18213. "type": "string",
  18214. "enum": ["eq", "neq"]
  18215. },
  18216. "value": {
  18217. "anyOf": [
  18218. {
  18219. "type": "string"
  18220. },
  18221. {
  18222. "anyOf": [
  18223. {
  18224. "anyOf": [
  18225. {
  18226. "type": "number"
  18227. },
  18228. {
  18229. "type": "string",
  18230. "enum": ["NaN"]
  18231. },
  18232. {
  18233. "type": "string",
  18234. "enum": ["Infinity"]
  18235. },
  18236. {
  18237. "type": "string",
  18238. "enum": ["-Infinity"]
  18239. }
  18240. ]
  18241. },
  18242. {
  18243. "type": "string",
  18244. "enum": ["Infinity", "-Infinity", "NaN"]
  18245. }
  18246. ]
  18247. },
  18248. {
  18249. "type": "boolean"
  18250. }
  18251. ]
  18252. }
  18253. },
  18254. "required": ["key", "op", "value"],
  18255. "additionalProperties": false
  18256. },
  18257. "Form.Option": {
  18258. "type": "object",
  18259. "properties": {
  18260. "value": {
  18261. "type": "string"
  18262. },
  18263. "label": {
  18264. "type": "string"
  18265. },
  18266. "description": {
  18267. "type": "string"
  18268. }
  18269. },
  18270. "required": ["value", "label"],
  18271. "additionalProperties": false
  18272. },
  18273. "Form.StringField": {
  18274. "type": "object",
  18275. "properties": {
  18276. "key": {
  18277. "type": "string"
  18278. },
  18279. "title": {
  18280. "type": "string"
  18281. },
  18282. "description": {
  18283. "type": "string"
  18284. },
  18285. "required": {
  18286. "type": "boolean"
  18287. },
  18288. "when": {
  18289. "type": "array",
  18290. "items": {
  18291. "$ref": "#/components/schemas/Form.When"
  18292. }
  18293. },
  18294. "type": {
  18295. "type": "string",
  18296. "enum": ["string"]
  18297. },
  18298. "format": {
  18299. "type": "string",
  18300. "enum": ["email", "uri", "date", "date-time"]
  18301. },
  18302. "minLength": {
  18303. "type": "integer",
  18304. "allOf": [
  18305. {
  18306. "minimum": 0
  18307. }
  18308. ]
  18309. },
  18310. "maxLength": {
  18311. "type": "integer",
  18312. "allOf": [
  18313. {
  18314. "minimum": 0
  18315. }
  18316. ]
  18317. },
  18318. "pattern": {
  18319. "type": "string"
  18320. },
  18321. "placeholder": {
  18322. "type": "string"
  18323. },
  18324. "default": {
  18325. "type": "string"
  18326. },
  18327. "options": {
  18328. "type": "array",
  18329. "items": {
  18330. "$ref": "#/components/schemas/Form.Option"
  18331. }
  18332. },
  18333. "custom": {
  18334. "type": "boolean"
  18335. }
  18336. },
  18337. "required": ["key", "type"],
  18338. "additionalProperties": false
  18339. },
  18340. "Form.NumberField": {
  18341. "type": "object",
  18342. "properties": {
  18343. "key": {
  18344. "type": "string"
  18345. },
  18346. "title": {
  18347. "type": "string"
  18348. },
  18349. "description": {
  18350. "type": "string"
  18351. },
  18352. "required": {
  18353. "type": "boolean"
  18354. },
  18355. "when": {
  18356. "type": "array",
  18357. "items": {
  18358. "$ref": "#/components/schemas/Form.When"
  18359. }
  18360. },
  18361. "type": {
  18362. "type": "string",
  18363. "enum": ["number"]
  18364. },
  18365. "minimum": {
  18366. "anyOf": [
  18367. {
  18368. "anyOf": [
  18369. {
  18370. "type": "number"
  18371. },
  18372. {
  18373. "type": "string",
  18374. "enum": ["NaN"]
  18375. },
  18376. {
  18377. "type": "string",
  18378. "enum": ["Infinity"]
  18379. },
  18380. {
  18381. "type": "string",
  18382. "enum": ["-Infinity"]
  18383. }
  18384. ]
  18385. },
  18386. {
  18387. "type": "string",
  18388. "enum": ["Infinity", "-Infinity", "NaN"]
  18389. }
  18390. ]
  18391. },
  18392. "maximum": {
  18393. "anyOf": [
  18394. {
  18395. "anyOf": [
  18396. {
  18397. "type": "number"
  18398. },
  18399. {
  18400. "type": "string",
  18401. "enum": ["NaN"]
  18402. },
  18403. {
  18404. "type": "string",
  18405. "enum": ["Infinity"]
  18406. },
  18407. {
  18408. "type": "string",
  18409. "enum": ["-Infinity"]
  18410. }
  18411. ]
  18412. },
  18413. {
  18414. "type": "string",
  18415. "enum": ["Infinity", "-Infinity", "NaN"]
  18416. }
  18417. ]
  18418. },
  18419. "default": {
  18420. "anyOf": [
  18421. {
  18422. "anyOf": [
  18423. {
  18424. "type": "number"
  18425. },
  18426. {
  18427. "type": "string",
  18428. "enum": ["NaN"]
  18429. },
  18430. {
  18431. "type": "string",
  18432. "enum": ["Infinity"]
  18433. },
  18434. {
  18435. "type": "string",
  18436. "enum": ["-Infinity"]
  18437. }
  18438. ]
  18439. },
  18440. {
  18441. "type": "string",
  18442. "enum": ["Infinity", "-Infinity", "NaN"]
  18443. }
  18444. ]
  18445. }
  18446. },
  18447. "required": ["key", "type"],
  18448. "additionalProperties": false
  18449. },
  18450. "Form.IntegerField": {
  18451. "type": "object",
  18452. "properties": {
  18453. "key": {
  18454. "type": "string"
  18455. },
  18456. "title": {
  18457. "type": "string"
  18458. },
  18459. "description": {
  18460. "type": "string"
  18461. },
  18462. "required": {
  18463. "type": "boolean"
  18464. },
  18465. "when": {
  18466. "type": "array",
  18467. "items": {
  18468. "$ref": "#/components/schemas/Form.When"
  18469. }
  18470. },
  18471. "type": {
  18472. "type": "string",
  18473. "enum": ["integer"]
  18474. },
  18475. "minimum": {
  18476. "anyOf": [
  18477. {
  18478. "anyOf": [
  18479. {
  18480. "type": "number"
  18481. },
  18482. {
  18483. "type": "string",
  18484. "enum": ["NaN"]
  18485. },
  18486. {
  18487. "type": "string",
  18488. "enum": ["Infinity"]
  18489. },
  18490. {
  18491. "type": "string",
  18492. "enum": ["-Infinity"]
  18493. }
  18494. ]
  18495. },
  18496. {
  18497. "type": "string",
  18498. "enum": ["Infinity", "-Infinity", "NaN"]
  18499. }
  18500. ]
  18501. },
  18502. "maximum": {
  18503. "anyOf": [
  18504. {
  18505. "anyOf": [
  18506. {
  18507. "type": "number"
  18508. },
  18509. {
  18510. "type": "string",
  18511. "enum": ["NaN"]
  18512. },
  18513. {
  18514. "type": "string",
  18515. "enum": ["Infinity"]
  18516. },
  18517. {
  18518. "type": "string",
  18519. "enum": ["-Infinity"]
  18520. }
  18521. ]
  18522. },
  18523. {
  18524. "type": "string",
  18525. "enum": ["Infinity", "-Infinity", "NaN"]
  18526. }
  18527. ]
  18528. },
  18529. "default": {
  18530. "anyOf": [
  18531. {
  18532. "anyOf": [
  18533. {
  18534. "type": "number"
  18535. },
  18536. {
  18537. "type": "string",
  18538. "enum": ["NaN"]
  18539. },
  18540. {
  18541. "type": "string",
  18542. "enum": ["Infinity"]
  18543. },
  18544. {
  18545. "type": "string",
  18546. "enum": ["-Infinity"]
  18547. }
  18548. ]
  18549. },
  18550. {
  18551. "type": "string",
  18552. "enum": ["Infinity", "-Infinity", "NaN"]
  18553. }
  18554. ]
  18555. }
  18556. },
  18557. "required": ["key", "type"],
  18558. "additionalProperties": false
  18559. },
  18560. "Form.BooleanField": {
  18561. "type": "object",
  18562. "properties": {
  18563. "key": {
  18564. "type": "string"
  18565. },
  18566. "title": {
  18567. "type": "string"
  18568. },
  18569. "description": {
  18570. "type": "string"
  18571. },
  18572. "required": {
  18573. "type": "boolean"
  18574. },
  18575. "when": {
  18576. "type": "array",
  18577. "items": {
  18578. "$ref": "#/components/schemas/Form.When"
  18579. }
  18580. },
  18581. "type": {
  18582. "type": "string",
  18583. "enum": ["boolean"]
  18584. },
  18585. "default": {
  18586. "type": "boolean"
  18587. }
  18588. },
  18589. "required": ["key", "type"],
  18590. "additionalProperties": false
  18591. },
  18592. "Form.MultiselectField": {
  18593. "type": "object",
  18594. "properties": {
  18595. "key": {
  18596. "type": "string"
  18597. },
  18598. "title": {
  18599. "type": "string"
  18600. },
  18601. "description": {
  18602. "type": "string"
  18603. },
  18604. "required": {
  18605. "type": "boolean"
  18606. },
  18607. "when": {
  18608. "type": "array",
  18609. "items": {
  18610. "$ref": "#/components/schemas/Form.When"
  18611. }
  18612. },
  18613. "type": {
  18614. "type": "string",
  18615. "enum": ["multiselect"]
  18616. },
  18617. "options": {
  18618. "type": "array",
  18619. "items": {
  18620. "$ref": "#/components/schemas/Form.Option"
  18621. }
  18622. },
  18623. "minItems": {
  18624. "type": "integer",
  18625. "allOf": [
  18626. {
  18627. "minimum": 0
  18628. }
  18629. ]
  18630. },
  18631. "maxItems": {
  18632. "type": "integer",
  18633. "allOf": [
  18634. {
  18635. "minimum": 0
  18636. }
  18637. ]
  18638. },
  18639. "custom": {
  18640. "type": "boolean"
  18641. },
  18642. "default": {
  18643. "type": "array",
  18644. "items": {
  18645. "type": "string"
  18646. }
  18647. }
  18648. },
  18649. "required": ["key", "type", "options"],
  18650. "additionalProperties": false
  18651. },
  18652. "Form.ExternalField": {
  18653. "type": "object",
  18654. "properties": {
  18655. "key": {
  18656. "type": "string"
  18657. },
  18658. "type": {
  18659. "type": "string",
  18660. "enum": ["external"]
  18661. },
  18662. "url": {
  18663. "type": "string"
  18664. },
  18665. "title": {
  18666. "type": "string"
  18667. },
  18668. "description": {
  18669. "type": "string"
  18670. }
  18671. },
  18672. "required": ["key", "type", "url"],
  18673. "additionalProperties": false
  18674. },
  18675. "Form.Field": {
  18676. "anyOf": [
  18677. {
  18678. "$ref": "#/components/schemas/Form.StringField"
  18679. },
  18680. {
  18681. "$ref": "#/components/schemas/Form.NumberField"
  18682. },
  18683. {
  18684. "$ref": "#/components/schemas/Form.IntegerField"
  18685. },
  18686. {
  18687. "$ref": "#/components/schemas/Form.BooleanField"
  18688. },
  18689. {
  18690. "$ref": "#/components/schemas/Form.MultiselectField"
  18691. },
  18692. {
  18693. "$ref": "#/components/schemas/Form.ExternalField"
  18694. }
  18695. ]
  18696. },
  18697. "Form.Fields": {
  18698. "type": "array",
  18699. "prefixItems": [
  18700. {
  18701. "$ref": "#/components/schemas/Form.Field"
  18702. }
  18703. ],
  18704. "minItems": 1,
  18705. "items": {
  18706. "$ref": "#/components/schemas/Form.Field"
  18707. }
  18708. },
  18709. "Integration.OAuthMethod": {
  18710. "type": "object",
  18711. "properties": {
  18712. "id": {
  18713. "type": "string"
  18714. },
  18715. "type": {
  18716. "type": "string",
  18717. "enum": ["oauth"]
  18718. },
  18719. "label": {
  18720. "type": "string"
  18721. },
  18722. "form": {
  18723. "$ref": "#/components/schemas/Form.Fields"
  18724. }
  18725. },
  18726. "required": ["id", "type", "label"],
  18727. "additionalProperties": false
  18728. },
  18729. "Integration.CommandMethod": {
  18730. "type": "object",
  18731. "properties": {
  18732. "id": {
  18733. "type": "string"
  18734. },
  18735. "type": {
  18736. "type": "string",
  18737. "enum": ["command"]
  18738. },
  18739. "label": {
  18740. "type": "string"
  18741. },
  18742. "command": {
  18743. "type": "array",
  18744. "items": {
  18745. "type": "string"
  18746. }
  18747. }
  18748. },
  18749. "required": ["id", "type", "label", "command"],
  18750. "additionalProperties": false
  18751. },
  18752. "Integration.KeyMethod": {
  18753. "type": "object",
  18754. "properties": {
  18755. "type": {
  18756. "type": "string",
  18757. "enum": ["key"]
  18758. },
  18759. "label": {
  18760. "type": "string"
  18761. },
  18762. "form": {
  18763. "$ref": "#/components/schemas/Form.Fields"
  18764. }
  18765. },
  18766. "required": ["type"],
  18767. "additionalProperties": false
  18768. },
  18769. "Integration.EnvMethod": {
  18770. "type": "object",
  18771. "properties": {
  18772. "type": {
  18773. "type": "string",
  18774. "enum": ["env"]
  18775. },
  18776. "names": {
  18777. "type": "array",
  18778. "items": {
  18779. "type": "string"
  18780. }
  18781. }
  18782. },
  18783. "required": ["type", "names"],
  18784. "additionalProperties": false
  18785. },
  18786. "Integration.Method": {
  18787. "anyOf": [
  18788. {
  18789. "$ref": "#/components/schemas/Integration.OAuthMethod"
  18790. },
  18791. {
  18792. "$ref": "#/components/schemas/Integration.CommandMethod"
  18793. },
  18794. {
  18795. "$ref": "#/components/schemas/Integration.KeyMethod"
  18796. },
  18797. {
  18798. "$ref": "#/components/schemas/Integration.EnvMethod"
  18799. }
  18800. ]
  18801. },
  18802. "Connection.CredentialInfo": {
  18803. "type": "object",
  18804. "properties": {
  18805. "type": {
  18806. "type": "string",
  18807. "enum": ["credential"]
  18808. },
  18809. "id": {
  18810. "type": "string"
  18811. },
  18812. "label": {
  18813. "type": "string"
  18814. }
  18815. },
  18816. "required": ["type", "id", "label"],
  18817. "additionalProperties": false
  18818. },
  18819. "Connection.EnvInfo": {
  18820. "type": "object",
  18821. "properties": {
  18822. "type": {
  18823. "type": "string",
  18824. "enum": ["env"]
  18825. },
  18826. "name": {
  18827. "type": "string"
  18828. }
  18829. },
  18830. "required": ["type", "name"],
  18831. "additionalProperties": false
  18832. },
  18833. "Connection.Info": {
  18834. "anyOf": [
  18835. {
  18836. "$ref": "#/components/schemas/Connection.CredentialInfo"
  18837. },
  18838. {
  18839. "$ref": "#/components/schemas/Connection.EnvInfo"
  18840. }
  18841. ]
  18842. },
  18843. "Integration.Info": {
  18844. "type": "object",
  18845. "properties": {
  18846. "id": {
  18847. "type": "string"
  18848. },
  18849. "name": {
  18850. "type": "string"
  18851. },
  18852. "methods": {
  18853. "type": "array",
  18854. "items": {
  18855. "$ref": "#/components/schemas/Integration.Method"
  18856. }
  18857. },
  18858. "connections": {
  18859. "type": "array",
  18860. "items": {
  18861. "$ref": "#/components/schemas/Connection.Info"
  18862. }
  18863. }
  18864. },
  18865. "required": ["id", "name", "methods", "connections"],
  18866. "additionalProperties": false
  18867. },
  18868. "Form.Value": {
  18869. "anyOf": [
  18870. {
  18871. "type": "string"
  18872. },
  18873. {
  18874. "anyOf": [
  18875. {
  18876. "anyOf": [
  18877. {
  18878. "type": "number"
  18879. },
  18880. {
  18881. "type": "string",
  18882. "enum": ["NaN"]
  18883. },
  18884. {
  18885. "type": "string",
  18886. "enum": ["Infinity"]
  18887. },
  18888. {
  18889. "type": "string",
  18890. "enum": ["-Infinity"]
  18891. }
  18892. ]
  18893. },
  18894. {
  18895. "type": "string",
  18896. "enum": ["Infinity", "-Infinity", "NaN"]
  18897. }
  18898. ]
  18899. },
  18900. {
  18901. "type": "boolean"
  18902. },
  18903. {
  18904. "type": "array",
  18905. "items": {
  18906. "type": "string"
  18907. }
  18908. }
  18909. ]
  18910. },
  18911. "Form.Answer": {
  18912. "type": "object",
  18913. "additionalProperties": {
  18914. "$ref": "#/components/schemas/Form.Value"
  18915. }
  18916. },
  18917. "Integration.Attempt": {
  18918. "type": "object",
  18919. "properties": {
  18920. "attemptID": {
  18921. "type": "string"
  18922. },
  18923. "url": {
  18924. "type": "string"
  18925. },
  18926. "instructions": {
  18927. "type": "string"
  18928. },
  18929. "mode": {
  18930. "type": "string",
  18931. "enum": ["auto", "code"]
  18932. },
  18933. "time": {
  18934. "type": "object",
  18935. "properties": {
  18936. "created": {
  18937. "anyOf": [
  18938. {
  18939. "anyOf": [
  18940. {
  18941. "type": "number"
  18942. },
  18943. {
  18944. "type": "string",
  18945. "enum": ["NaN"]
  18946. },
  18947. {
  18948. "type": "string",
  18949. "enum": ["Infinity"]
  18950. },
  18951. {
  18952. "type": "string",
  18953. "enum": ["-Infinity"]
  18954. }
  18955. ]
  18956. },
  18957. {
  18958. "type": "string",
  18959. "enum": ["Infinity", "-Infinity", "NaN"]
  18960. }
  18961. ]
  18962. },
  18963. "expires": {
  18964. "anyOf": [
  18965. {
  18966. "anyOf": [
  18967. {
  18968. "type": "number"
  18969. },
  18970. {
  18971. "type": "string",
  18972. "enum": ["NaN"]
  18973. },
  18974. {
  18975. "type": "string",
  18976. "enum": ["Infinity"]
  18977. },
  18978. {
  18979. "type": "string",
  18980. "enum": ["-Infinity"]
  18981. }
  18982. ]
  18983. },
  18984. {
  18985. "type": "string",
  18986. "enum": ["Infinity", "-Infinity", "NaN"]
  18987. }
  18988. ]
  18989. }
  18990. },
  18991. "required": ["created", "expires"],
  18992. "additionalProperties": false
  18993. }
  18994. },
  18995. "required": ["attemptID", "url", "instructions", "mode", "time"],
  18996. "additionalProperties": false
  18997. },
  18998. "Integration.AttemptStatus": {
  18999. "anyOf": [
  19000. {
  19001. "type": "object",
  19002. "properties": {
  19003. "status": {
  19004. "type": "string",
  19005. "enum": ["pending"]
  19006. },
  19007. "time": {
  19008. "type": "object",
  19009. "properties": {
  19010. "created": {
  19011. "anyOf": [
  19012. {
  19013. "anyOf": [
  19014. {
  19015. "type": "number"
  19016. },
  19017. {
  19018. "type": "string",
  19019. "enum": ["NaN"]
  19020. },
  19021. {
  19022. "type": "string",
  19023. "enum": ["Infinity"]
  19024. },
  19025. {
  19026. "type": "string",
  19027. "enum": ["-Infinity"]
  19028. }
  19029. ]
  19030. },
  19031. {
  19032. "type": "string",
  19033. "enum": ["Infinity", "-Infinity", "NaN"]
  19034. }
  19035. ]
  19036. },
  19037. "expires": {
  19038. "anyOf": [
  19039. {
  19040. "anyOf": [
  19041. {
  19042. "type": "number"
  19043. },
  19044. {
  19045. "type": "string",
  19046. "enum": ["NaN"]
  19047. },
  19048. {
  19049. "type": "string",
  19050. "enum": ["Infinity"]
  19051. },
  19052. {
  19053. "type": "string",
  19054. "enum": ["-Infinity"]
  19055. }
  19056. ]
  19057. },
  19058. {
  19059. "type": "string",
  19060. "enum": ["Infinity", "-Infinity", "NaN"]
  19061. }
  19062. ]
  19063. }
  19064. },
  19065. "required": ["created", "expires"],
  19066. "additionalProperties": false
  19067. }
  19068. },
  19069. "required": ["status", "time"],
  19070. "additionalProperties": false
  19071. },
  19072. {
  19073. "type": "object",
  19074. "properties": {
  19075. "status": {
  19076. "type": "string",
  19077. "enum": ["complete"]
  19078. },
  19079. "time": {
  19080. "type": "object",
  19081. "properties": {
  19082. "created": {
  19083. "anyOf": [
  19084. {
  19085. "anyOf": [
  19086. {
  19087. "type": "number"
  19088. },
  19089. {
  19090. "type": "string",
  19091. "enum": ["NaN"]
  19092. },
  19093. {
  19094. "type": "string",
  19095. "enum": ["Infinity"]
  19096. },
  19097. {
  19098. "type": "string",
  19099. "enum": ["-Infinity"]
  19100. }
  19101. ]
  19102. },
  19103. {
  19104. "type": "string",
  19105. "enum": ["Infinity", "-Infinity", "NaN"]
  19106. }
  19107. ]
  19108. },
  19109. "expires": {
  19110. "anyOf": [
  19111. {
  19112. "anyOf": [
  19113. {
  19114. "type": "number"
  19115. },
  19116. {
  19117. "type": "string",
  19118. "enum": ["NaN"]
  19119. },
  19120. {
  19121. "type": "string",
  19122. "enum": ["Infinity"]
  19123. },
  19124. {
  19125. "type": "string",
  19126. "enum": ["-Infinity"]
  19127. }
  19128. ]
  19129. },
  19130. {
  19131. "type": "string",
  19132. "enum": ["Infinity", "-Infinity", "NaN"]
  19133. }
  19134. ]
  19135. }
  19136. },
  19137. "required": ["created", "expires"],
  19138. "additionalProperties": false
  19139. }
  19140. },
  19141. "required": ["status", "time"],
  19142. "additionalProperties": false
  19143. },
  19144. {
  19145. "type": "object",
  19146. "properties": {
  19147. "status": {
  19148. "type": "string",
  19149. "enum": ["failed"]
  19150. },
  19151. "message": {
  19152. "type": "string"
  19153. },
  19154. "time": {
  19155. "type": "object",
  19156. "properties": {
  19157. "created": {
  19158. "anyOf": [
  19159. {
  19160. "anyOf": [
  19161. {
  19162. "type": "number"
  19163. },
  19164. {
  19165. "type": "string",
  19166. "enum": ["NaN"]
  19167. },
  19168. {
  19169. "type": "string",
  19170. "enum": ["Infinity"]
  19171. },
  19172. {
  19173. "type": "string",
  19174. "enum": ["-Infinity"]
  19175. }
  19176. ]
  19177. },
  19178. {
  19179. "type": "string",
  19180. "enum": ["Infinity", "-Infinity", "NaN"]
  19181. }
  19182. ]
  19183. },
  19184. "expires": {
  19185. "anyOf": [
  19186. {
  19187. "anyOf": [
  19188. {
  19189. "type": "number"
  19190. },
  19191. {
  19192. "type": "string",
  19193. "enum": ["NaN"]
  19194. },
  19195. {
  19196. "type": "string",
  19197. "enum": ["Infinity"]
  19198. },
  19199. {
  19200. "type": "string",
  19201. "enum": ["-Infinity"]
  19202. }
  19203. ]
  19204. },
  19205. {
  19206. "type": "string",
  19207. "enum": ["Infinity", "-Infinity", "NaN"]
  19208. }
  19209. ]
  19210. }
  19211. },
  19212. "required": ["created", "expires"],
  19213. "additionalProperties": false
  19214. }
  19215. },
  19216. "required": ["status", "message", "time"],
  19217. "additionalProperties": false
  19218. },
  19219. {
  19220. "type": "object",
  19221. "properties": {
  19222. "status": {
  19223. "type": "string",
  19224. "enum": ["expired"]
  19225. },
  19226. "time": {
  19227. "type": "object",
  19228. "properties": {
  19229. "created": {
  19230. "anyOf": [
  19231. {
  19232. "anyOf": [
  19233. {
  19234. "type": "number"
  19235. },
  19236. {
  19237. "type": "string",
  19238. "enum": ["NaN"]
  19239. },
  19240. {
  19241. "type": "string",
  19242. "enum": ["Infinity"]
  19243. },
  19244. {
  19245. "type": "string",
  19246. "enum": ["-Infinity"]
  19247. }
  19248. ]
  19249. },
  19250. {
  19251. "type": "string",
  19252. "enum": ["Infinity", "-Infinity", "NaN"]
  19253. }
  19254. ]
  19255. },
  19256. "expires": {
  19257. "anyOf": [
  19258. {
  19259. "anyOf": [
  19260. {
  19261. "type": "number"
  19262. },
  19263. {
  19264. "type": "string",
  19265. "enum": ["NaN"]
  19266. },
  19267. {
  19268. "type": "string",
  19269. "enum": ["Infinity"]
  19270. },
  19271. {
  19272. "type": "string",
  19273. "enum": ["-Infinity"]
  19274. }
  19275. ]
  19276. },
  19277. {
  19278. "type": "string",
  19279. "enum": ["Infinity", "-Infinity", "NaN"]
  19280. }
  19281. ]
  19282. }
  19283. },
  19284. "required": ["created", "expires"],
  19285. "additionalProperties": false
  19286. }
  19287. },
  19288. "required": ["status", "time"],
  19289. "additionalProperties": false
  19290. }
  19291. ]
  19292. },
  19293. "Integration.CommandAttempt": {
  19294. "type": "object",
  19295. "properties": {
  19296. "attemptID": {
  19297. "type": "string"
  19298. },
  19299. "time": {
  19300. "type": "object",
  19301. "properties": {
  19302. "created": {
  19303. "anyOf": [
  19304. {
  19305. "anyOf": [
  19306. {
  19307. "type": "number"
  19308. },
  19309. {
  19310. "type": "string",
  19311. "enum": ["NaN"]
  19312. },
  19313. {
  19314. "type": "string",
  19315. "enum": ["Infinity"]
  19316. },
  19317. {
  19318. "type": "string",
  19319. "enum": ["-Infinity"]
  19320. }
  19321. ]
  19322. },
  19323. {
  19324. "type": "string",
  19325. "enum": ["Infinity", "-Infinity", "NaN"]
  19326. }
  19327. ]
  19328. },
  19329. "expires": {
  19330. "anyOf": [
  19331. {
  19332. "anyOf": [
  19333. {
  19334. "type": "number"
  19335. },
  19336. {
  19337. "type": "string",
  19338. "enum": ["NaN"]
  19339. },
  19340. {
  19341. "type": "string",
  19342. "enum": ["Infinity"]
  19343. },
  19344. {
  19345. "type": "string",
  19346. "enum": ["-Infinity"]
  19347. }
  19348. ]
  19349. },
  19350. {
  19351. "type": "string",
  19352. "enum": ["Infinity", "-Infinity", "NaN"]
  19353. }
  19354. ]
  19355. }
  19356. },
  19357. "required": ["created", "expires"],
  19358. "additionalProperties": false
  19359. }
  19360. },
  19361. "required": ["attemptID", "time"],
  19362. "additionalProperties": false
  19363. },
  19364. "Integration.CommandAttemptStatus": {
  19365. "anyOf": [
  19366. {
  19367. "type": "object",
  19368. "properties": {
  19369. "status": {
  19370. "type": "string",
  19371. "enum": ["pending"]
  19372. },
  19373. "message": {
  19374. "type": "string"
  19375. },
  19376. "time": {
  19377. "type": "object",
  19378. "properties": {
  19379. "created": {
  19380. "anyOf": [
  19381. {
  19382. "anyOf": [
  19383. {
  19384. "type": "number"
  19385. },
  19386. {
  19387. "type": "string",
  19388. "enum": ["NaN"]
  19389. },
  19390. {
  19391. "type": "string",
  19392. "enum": ["Infinity"]
  19393. },
  19394. {
  19395. "type": "string",
  19396. "enum": ["-Infinity"]
  19397. }
  19398. ]
  19399. },
  19400. {
  19401. "type": "string",
  19402. "enum": ["Infinity", "-Infinity", "NaN"]
  19403. }
  19404. ]
  19405. },
  19406. "expires": {
  19407. "anyOf": [
  19408. {
  19409. "anyOf": [
  19410. {
  19411. "type": "number"
  19412. },
  19413. {
  19414. "type": "string",
  19415. "enum": ["NaN"]
  19416. },
  19417. {
  19418. "type": "string",
  19419. "enum": ["Infinity"]
  19420. },
  19421. {
  19422. "type": "string",
  19423. "enum": ["-Infinity"]
  19424. }
  19425. ]
  19426. },
  19427. {
  19428. "type": "string",
  19429. "enum": ["Infinity", "-Infinity", "NaN"]
  19430. }
  19431. ]
  19432. }
  19433. },
  19434. "required": ["created", "expires"],
  19435. "additionalProperties": false
  19436. }
  19437. },
  19438. "required": ["status", "time"],
  19439. "additionalProperties": false
  19440. },
  19441. {
  19442. "type": "object",
  19443. "properties": {
  19444. "status": {
  19445. "type": "string",
  19446. "enum": ["complete"]
  19447. },
  19448. "time": {
  19449. "type": "object",
  19450. "properties": {
  19451. "created": {
  19452. "anyOf": [
  19453. {
  19454. "anyOf": [
  19455. {
  19456. "type": "number"
  19457. },
  19458. {
  19459. "type": "string",
  19460. "enum": ["NaN"]
  19461. },
  19462. {
  19463. "type": "string",
  19464. "enum": ["Infinity"]
  19465. },
  19466. {
  19467. "type": "string",
  19468. "enum": ["-Infinity"]
  19469. }
  19470. ]
  19471. },
  19472. {
  19473. "type": "string",
  19474. "enum": ["Infinity", "-Infinity", "NaN"]
  19475. }
  19476. ]
  19477. },
  19478. "expires": {
  19479. "anyOf": [
  19480. {
  19481. "anyOf": [
  19482. {
  19483. "type": "number"
  19484. },
  19485. {
  19486. "type": "string",
  19487. "enum": ["NaN"]
  19488. },
  19489. {
  19490. "type": "string",
  19491. "enum": ["Infinity"]
  19492. },
  19493. {
  19494. "type": "string",
  19495. "enum": ["-Infinity"]
  19496. }
  19497. ]
  19498. },
  19499. {
  19500. "type": "string",
  19501. "enum": ["Infinity", "-Infinity", "NaN"]
  19502. }
  19503. ]
  19504. }
  19505. },
  19506. "required": ["created", "expires"],
  19507. "additionalProperties": false
  19508. }
  19509. },
  19510. "required": ["status", "time"],
  19511. "additionalProperties": false
  19512. },
  19513. {
  19514. "type": "object",
  19515. "properties": {
  19516. "status": {
  19517. "type": "string",
  19518. "enum": ["failed"]
  19519. },
  19520. "message": {
  19521. "type": "string"
  19522. },
  19523. "time": {
  19524. "type": "object",
  19525. "properties": {
  19526. "created": {
  19527. "anyOf": [
  19528. {
  19529. "anyOf": [
  19530. {
  19531. "type": "number"
  19532. },
  19533. {
  19534. "type": "string",
  19535. "enum": ["NaN"]
  19536. },
  19537. {
  19538. "type": "string",
  19539. "enum": ["Infinity"]
  19540. },
  19541. {
  19542. "type": "string",
  19543. "enum": ["-Infinity"]
  19544. }
  19545. ]
  19546. },
  19547. {
  19548. "type": "string",
  19549. "enum": ["Infinity", "-Infinity", "NaN"]
  19550. }
  19551. ]
  19552. },
  19553. "expires": {
  19554. "anyOf": [
  19555. {
  19556. "anyOf": [
  19557. {
  19558. "type": "number"
  19559. },
  19560. {
  19561. "type": "string",
  19562. "enum": ["NaN"]
  19563. },
  19564. {
  19565. "type": "string",
  19566. "enum": ["Infinity"]
  19567. },
  19568. {
  19569. "type": "string",
  19570. "enum": ["-Infinity"]
  19571. }
  19572. ]
  19573. },
  19574. {
  19575. "type": "string",
  19576. "enum": ["Infinity", "-Infinity", "NaN"]
  19577. }
  19578. ]
  19579. }
  19580. },
  19581. "required": ["created", "expires"],
  19582. "additionalProperties": false
  19583. }
  19584. },
  19585. "required": ["status", "message", "time"],
  19586. "additionalProperties": false
  19587. },
  19588. {
  19589. "type": "object",
  19590. "properties": {
  19591. "status": {
  19592. "type": "string",
  19593. "enum": ["expired"]
  19594. },
  19595. "time": {
  19596. "type": "object",
  19597. "properties": {
  19598. "created": {
  19599. "anyOf": [
  19600. {
  19601. "anyOf": [
  19602. {
  19603. "type": "number"
  19604. },
  19605. {
  19606. "type": "string",
  19607. "enum": ["NaN"]
  19608. },
  19609. {
  19610. "type": "string",
  19611. "enum": ["Infinity"]
  19612. },
  19613. {
  19614. "type": "string",
  19615. "enum": ["-Infinity"]
  19616. }
  19617. ]
  19618. },
  19619. {
  19620. "type": "string",
  19621. "enum": ["Infinity", "-Infinity", "NaN"]
  19622. }
  19623. ]
  19624. },
  19625. "expires": {
  19626. "anyOf": [
  19627. {
  19628. "anyOf": [
  19629. {
  19630. "type": "number"
  19631. },
  19632. {
  19633. "type": "string",
  19634. "enum": ["NaN"]
  19635. },
  19636. {
  19637. "type": "string",
  19638. "enum": ["Infinity"]
  19639. },
  19640. {
  19641. "type": "string",
  19642. "enum": ["-Infinity"]
  19643. }
  19644. ]
  19645. },
  19646. {
  19647. "type": "string",
  19648. "enum": ["Infinity", "-Infinity", "NaN"]
  19649. }
  19650. ]
  19651. }
  19652. },
  19653. "required": ["created", "expires"],
  19654. "additionalProperties": false
  19655. }
  19656. },
  19657. "required": ["status", "time"],
  19658. "additionalProperties": false
  19659. }
  19660. ]
  19661. },
  19662. "Mcp.Status.Connected": {
  19663. "type": "object",
  19664. "properties": {
  19665. "status": {
  19666. "type": "string",
  19667. "enum": ["connected"]
  19668. }
  19669. },
  19670. "required": ["status"],
  19671. "additionalProperties": false
  19672. },
  19673. "Mcp.Status.Pending": {
  19674. "type": "object",
  19675. "properties": {
  19676. "status": {
  19677. "type": "string",
  19678. "enum": ["pending"]
  19679. }
  19680. },
  19681. "required": ["status"],
  19682. "additionalProperties": false
  19683. },
  19684. "Mcp.Status.Disabled": {
  19685. "type": "object",
  19686. "properties": {
  19687. "status": {
  19688. "type": "string",
  19689. "enum": ["disabled"]
  19690. }
  19691. },
  19692. "required": ["status"],
  19693. "additionalProperties": false
  19694. },
  19695. "Mcp.Status.Failed": {
  19696. "type": "object",
  19697. "properties": {
  19698. "status": {
  19699. "type": "string",
  19700. "enum": ["failed"]
  19701. },
  19702. "error": {
  19703. "type": "string"
  19704. }
  19705. },
  19706. "required": ["status", "error"],
  19707. "additionalProperties": false
  19708. },
  19709. "Mcp.Status.NeedsAuth": {
  19710. "type": "object",
  19711. "properties": {
  19712. "status": {
  19713. "type": "string",
  19714. "enum": ["needs_auth"]
  19715. }
  19716. },
  19717. "required": ["status"],
  19718. "additionalProperties": false
  19719. },
  19720. "Mcp.Server": {
  19721. "type": "object",
  19722. "properties": {
  19723. "name": {
  19724. "type": "string"
  19725. },
  19726. "status": {
  19727. "anyOf": [
  19728. {
  19729. "$ref": "#/components/schemas/Mcp.Status.Connected"
  19730. },
  19731. {
  19732. "$ref": "#/components/schemas/Mcp.Status.Pending"
  19733. },
  19734. {
  19735. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  19736. },
  19737. {
  19738. "$ref": "#/components/schemas/Mcp.Status.Failed"
  19739. },
  19740. {
  19741. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  19742. }
  19743. ]
  19744. },
  19745. "integrationID": {
  19746. "type": "string"
  19747. }
  19748. },
  19749. "required": ["name", "status"],
  19750. "additionalProperties": false
  19751. },
  19752. "Mcp.LocalConfig": {
  19753. "type": "object",
  19754. "properties": {
  19755. "type": {
  19756. "type": "string",
  19757. "enum": ["local"]
  19758. },
  19759. "command": {
  19760. "type": "array",
  19761. "items": {
  19762. "type": "string"
  19763. }
  19764. },
  19765. "cwd": {
  19766. "type": "string"
  19767. },
  19768. "environment": {
  19769. "type": "object",
  19770. "additionalProperties": {
  19771. "type": "string"
  19772. }
  19773. },
  19774. "disabled": {
  19775. "type": "boolean"
  19776. },
  19777. "codemode": {
  19778. "type": "boolean"
  19779. },
  19780. "timeout": {
  19781. "type": "object",
  19782. "properties": {
  19783. "startup": {
  19784. "type": "integer",
  19785. "allOf": [
  19786. {
  19787. "exclusiveMinimum": 0
  19788. }
  19789. ]
  19790. },
  19791. "catalog": {
  19792. "type": "integer",
  19793. "allOf": [
  19794. {
  19795. "exclusiveMinimum": 0
  19796. }
  19797. ]
  19798. },
  19799. "execution": {
  19800. "type": "integer",
  19801. "allOf": [
  19802. {
  19803. "exclusiveMinimum": 0
  19804. }
  19805. ]
  19806. }
  19807. },
  19808. "additionalProperties": false
  19809. }
  19810. },
  19811. "required": ["type", "command"],
  19812. "additionalProperties": false
  19813. },
  19814. "Mcp.OAuthConfig": {
  19815. "type": "object",
  19816. "properties": {
  19817. "client_id": {
  19818. "type": "string"
  19819. },
  19820. "client_secret": {
  19821. "type": "string"
  19822. },
  19823. "scope": {
  19824. "type": "string"
  19825. },
  19826. "callback_port": {
  19827. "type": "integer",
  19828. "allOf": [
  19829. {
  19830. "minimum": 1,
  19831. "maximum": 65535
  19832. }
  19833. ]
  19834. },
  19835. "redirect_uri": {
  19836. "type": "string"
  19837. }
  19838. },
  19839. "additionalProperties": false
  19840. },
  19841. "Mcp.RemoteConfig": {
  19842. "type": "object",
  19843. "properties": {
  19844. "type": {
  19845. "type": "string",
  19846. "enum": ["remote"]
  19847. },
  19848. "url": {
  19849. "type": "string"
  19850. },
  19851. "headers": {
  19852. "type": "object",
  19853. "additionalProperties": {
  19854. "type": "string"
  19855. }
  19856. },
  19857. "oauth": {
  19858. "anyOf": [
  19859. {
  19860. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  19861. },
  19862. {
  19863. "type": "boolean",
  19864. "enum": [false]
  19865. }
  19866. ]
  19867. },
  19868. "disabled": {
  19869. "type": "boolean"
  19870. },
  19871. "codemode": {
  19872. "type": "boolean"
  19873. },
  19874. "timeout": {
  19875. "type": "object",
  19876. "properties": {
  19877. "startup": {
  19878. "type": "integer",
  19879. "allOf": [
  19880. {
  19881. "exclusiveMinimum": 0
  19882. }
  19883. ]
  19884. },
  19885. "catalog": {
  19886. "type": "integer",
  19887. "allOf": [
  19888. {
  19889. "exclusiveMinimum": 0
  19890. }
  19891. ]
  19892. },
  19893. "execution": {
  19894. "type": "integer",
  19895. "allOf": [
  19896. {
  19897. "exclusiveMinimum": 0
  19898. }
  19899. ]
  19900. }
  19901. },
  19902. "additionalProperties": false
  19903. }
  19904. },
  19905. "required": ["type", "url"],
  19906. "additionalProperties": false
  19907. },
  19908. "McpServerNotFoundError": {
  19909. "type": "object",
  19910. "properties": {
  19911. "_tag": {
  19912. "type": "string",
  19913. "enum": ["McpServerNotFoundError"]
  19914. },
  19915. "server": {
  19916. "type": "string"
  19917. },
  19918. "message": {
  19919. "type": "string"
  19920. }
  19921. },
  19922. "required": ["_tag", "server", "message"],
  19923. "additionalProperties": false
  19924. },
  19925. "Mcp.Resource": {
  19926. "type": "object",
  19927. "properties": {
  19928. "server": {
  19929. "type": "string"
  19930. },
  19931. "name": {
  19932. "type": "string"
  19933. },
  19934. "uri": {
  19935. "type": "string"
  19936. },
  19937. "description": {
  19938. "type": "string"
  19939. },
  19940. "mimeType": {
  19941. "type": "string"
  19942. }
  19943. },
  19944. "required": ["server", "name", "uri"],
  19945. "additionalProperties": false
  19946. },
  19947. "Mcp.ResourceTemplate": {
  19948. "type": "object",
  19949. "properties": {
  19950. "server": {
  19951. "type": "string"
  19952. },
  19953. "name": {
  19954. "type": "string"
  19955. },
  19956. "uriTemplate": {
  19957. "type": "string"
  19958. },
  19959. "description": {
  19960. "type": "string"
  19961. },
  19962. "mimeType": {
  19963. "type": "string"
  19964. }
  19965. },
  19966. "required": ["server", "name", "uriTemplate"],
  19967. "additionalProperties": false
  19968. },
  19969. "Mcp.ResourceCatalog": {
  19970. "type": "object",
  19971. "properties": {
  19972. "resources": {
  19973. "type": "array",
  19974. "items": {
  19975. "$ref": "#/components/schemas/Mcp.Resource"
  19976. }
  19977. },
  19978. "templates": {
  19979. "type": "array",
  19980. "items": {
  19981. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  19982. }
  19983. }
  19984. },
  19985. "required": ["resources", "templates"],
  19986. "additionalProperties": false
  19987. },
  19988. "Project.Vcs": {
  19989. "type": "string",
  19990. "enum": ["git", "hg"]
  19991. },
  19992. "Project.Icon": {
  19993. "type": "object",
  19994. "properties": {
  19995. "url": {
  19996. "type": "string"
  19997. },
  19998. "override": {
  19999. "type": "string"
  20000. },
  20001. "color": {
  20002. "type": "string"
  20003. }
  20004. },
  20005. "additionalProperties": false
  20006. },
  20007. "Project.Commands": {
  20008. "type": "object",
  20009. "properties": {
  20010. "start": {
  20011. "type": "string",
  20012. "description": "Startup script to run when creating a new workspace (worktree)"
  20013. }
  20014. },
  20015. "additionalProperties": false
  20016. },
  20017. "Project.Time": {
  20018. "type": "object",
  20019. "properties": {
  20020. "created": {
  20021. "type": "integer",
  20022. "allOf": [
  20023. {
  20024. "minimum": 0
  20025. }
  20026. ]
  20027. },
  20028. "updated": {
  20029. "type": "integer",
  20030. "allOf": [
  20031. {
  20032. "minimum": 0
  20033. }
  20034. ]
  20035. },
  20036. "initialized": {
  20037. "type": "integer",
  20038. "allOf": [
  20039. {
  20040. "minimum": 0
  20041. }
  20042. ]
  20043. }
  20044. },
  20045. "required": ["created", "updated"],
  20046. "additionalProperties": false
  20047. },
  20048. "Project": {
  20049. "type": "object",
  20050. "properties": {
  20051. "id": {
  20052. "type": "string"
  20053. },
  20054. "canonical": {
  20055. "type": "string"
  20056. },
  20057. "vcs": {
  20058. "$ref": "#/components/schemas/Project.Vcs"
  20059. },
  20060. "name": {
  20061. "type": "string"
  20062. },
  20063. "icon": {
  20064. "$ref": "#/components/schemas/Project.Icon"
  20065. },
  20066. "commands": {
  20067. "$ref": "#/components/schemas/Project.Commands"
  20068. },
  20069. "time": {
  20070. "$ref": "#/components/schemas/Project.Time"
  20071. },
  20072. "sandboxes": {
  20073. "type": "array",
  20074. "items": {
  20075. "type": "string"
  20076. }
  20077. }
  20078. },
  20079. "required": ["id", "canonical", "time", "sandboxes"],
  20080. "additionalProperties": false
  20081. },
  20082. "Project.Current": {
  20083. "type": "object",
  20084. "properties": {
  20085. "id": {
  20086. "type": "string"
  20087. },
  20088. "directory": {
  20089. "type": "string"
  20090. },
  20091. "canonical": {
  20092. "type": "string"
  20093. }
  20094. },
  20095. "required": ["id", "directory", "canonical"],
  20096. "additionalProperties": false
  20097. },
  20098. "Project.Directory": {
  20099. "type": "object",
  20100. "properties": {
  20101. "directory": {
  20102. "type": "string"
  20103. },
  20104. "strategy": {
  20105. "type": "string"
  20106. }
  20107. },
  20108. "required": ["directory"],
  20109. "additionalProperties": false
  20110. },
  20111. "Project.Directories": {
  20112. "type": "array",
  20113. "items": {
  20114. "$ref": "#/components/schemas/Project.Directory"
  20115. }
  20116. },
  20117. "Form.Metadata": {
  20118. "type": "object"
  20119. },
  20120. "Form.Info": {
  20121. "type": "object",
  20122. "properties": {
  20123. "id": {
  20124. "type": "string",
  20125. "allOf": [
  20126. {
  20127. "pattern": "^frm_"
  20128. }
  20129. ]
  20130. },
  20131. "sessionID": {
  20132. "type": "string"
  20133. },
  20134. "title": {
  20135. "type": "string"
  20136. },
  20137. "metadata": {
  20138. "$ref": "#/components/schemas/Form.Metadata"
  20139. },
  20140. "fields": {
  20141. "$ref": "#/components/schemas/Form.Fields"
  20142. }
  20143. },
  20144. "required": ["id", "sessionID", "title", "fields"],
  20145. "additionalProperties": false
  20146. },
  20147. "Form.CreatePayload": {
  20148. "type": "object",
  20149. "properties": {
  20150. "id": {
  20151. "anyOf": [
  20152. {
  20153. "type": "string",
  20154. "allOf": [
  20155. {
  20156. "pattern": "^frm_"
  20157. }
  20158. ]
  20159. },
  20160. {
  20161. "type": "null"
  20162. }
  20163. ]
  20164. },
  20165. "title": {
  20166. "type": "string"
  20167. },
  20168. "metadata": {
  20169. "$ref": "#/components/schemas/Form.Metadata"
  20170. },
  20171. "fields": {
  20172. "$ref": "#/components/schemas/Form.Fields"
  20173. }
  20174. },
  20175. "required": ["title", "fields"],
  20176. "additionalProperties": false
  20177. },
  20178. "FormNotFoundError": {
  20179. "type": "object",
  20180. "properties": {
  20181. "_tag": {
  20182. "type": "string",
  20183. "enum": ["FormNotFoundError"]
  20184. },
  20185. "id": {
  20186. "type": "string"
  20187. },
  20188. "message": {
  20189. "type": "string"
  20190. }
  20191. },
  20192. "required": ["_tag", "id", "message"],
  20193. "additionalProperties": false
  20194. },
  20195. "Form.State": {
  20196. "anyOf": [
  20197. {
  20198. "type": "object",
  20199. "properties": {
  20200. "status": {
  20201. "type": "string",
  20202. "enum": ["pending"]
  20203. }
  20204. },
  20205. "required": ["status"],
  20206. "additionalProperties": false
  20207. },
  20208. {
  20209. "type": "object",
  20210. "properties": {
  20211. "status": {
  20212. "type": "string",
  20213. "enum": ["answered"]
  20214. },
  20215. "answer": {
  20216. "$ref": "#/components/schemas/Form.Answer"
  20217. }
  20218. },
  20219. "required": ["status", "answer"],
  20220. "additionalProperties": false
  20221. },
  20222. {
  20223. "type": "object",
  20224. "properties": {
  20225. "status": {
  20226. "type": "string",
  20227. "enum": ["cancelled"]
  20228. }
  20229. },
  20230. "required": ["status"],
  20231. "additionalProperties": false
  20232. }
  20233. ]
  20234. },
  20235. "Form.Reply": {
  20236. "type": "object",
  20237. "properties": {
  20238. "answer": {
  20239. "$ref": "#/components/schemas/Form.Answer"
  20240. }
  20241. },
  20242. "required": ["answer"],
  20243. "additionalProperties": false
  20244. },
  20245. "FormAlreadySettledError": {
  20246. "type": "object",
  20247. "properties": {
  20248. "_tag": {
  20249. "type": "string",
  20250. "enum": ["FormAlreadySettledError"]
  20251. },
  20252. "id": {
  20253. "type": "string"
  20254. },
  20255. "message": {
  20256. "type": "string"
  20257. }
  20258. },
  20259. "required": ["_tag", "id", "message"],
  20260. "additionalProperties": false
  20261. },
  20262. "FormInvalidAnswerError": {
  20263. "type": "object",
  20264. "properties": {
  20265. "_tag": {
  20266. "type": "string",
  20267. "enum": ["FormInvalidAnswerError"]
  20268. },
  20269. "id": {
  20270. "type": "string"
  20271. },
  20272. "message": {
  20273. "type": "string"
  20274. }
  20275. },
  20276. "required": ["_tag", "id", "message"],
  20277. "additionalProperties": false
  20278. },
  20279. "Permission.Source": {
  20280. "anyOf": [
  20281. {
  20282. "type": "object",
  20283. "properties": {
  20284. "type": {
  20285. "type": "string",
  20286. "enum": ["tool"]
  20287. },
  20288. "messageID": {
  20289. "type": "string"
  20290. },
  20291. "id": {
  20292. "type": "string"
  20293. }
  20294. },
  20295. "required": ["type", "messageID", "id"],
  20296. "additionalProperties": false
  20297. }
  20298. ]
  20299. },
  20300. "Permission.Request": {
  20301. "type": "object",
  20302. "properties": {
  20303. "id": {
  20304. "type": "string",
  20305. "allOf": [
  20306. {
  20307. "pattern": "^per"
  20308. }
  20309. ]
  20310. },
  20311. "sessionID": {
  20312. "type": "string",
  20313. "allOf": [
  20314. {
  20315. "pattern": "^ses"
  20316. }
  20317. ]
  20318. },
  20319. "action": {
  20320. "type": "string"
  20321. },
  20322. "resources": {
  20323. "type": "array",
  20324. "items": {
  20325. "type": "string"
  20326. }
  20327. },
  20328. "save": {
  20329. "type": "array",
  20330. "items": {
  20331. "type": "string"
  20332. }
  20333. },
  20334. "metadata": {
  20335. "type": "object"
  20336. },
  20337. "source": {
  20338. "$ref": "#/components/schemas/Permission.Source"
  20339. }
  20340. },
  20341. "required": ["id", "sessionID", "action", "resources"],
  20342. "additionalProperties": false
  20343. },
  20344. "PermissionSaved.Info": {
  20345. "type": "object",
  20346. "properties": {
  20347. "id": {
  20348. "type": "string"
  20349. },
  20350. "projectID": {
  20351. "type": "string"
  20352. },
  20353. "action": {
  20354. "type": "string"
  20355. },
  20356. "resource": {
  20357. "type": "string"
  20358. }
  20359. },
  20360. "required": ["id", "projectID", "action", "resource"],
  20361. "additionalProperties": false
  20362. },
  20363. "PermissionNotFoundError": {
  20364. "type": "object",
  20365. "properties": {
  20366. "_tag": {
  20367. "type": "string",
  20368. "enum": ["PermissionNotFoundError"]
  20369. },
  20370. "requestID": {
  20371. "type": "string"
  20372. },
  20373. "message": {
  20374. "type": "string"
  20375. }
  20376. },
  20377. "required": ["_tag", "requestID", "message"],
  20378. "additionalProperties": false
  20379. },
  20380. "Permission.Reply": {
  20381. "type": "string",
  20382. "enum": ["once", "always", "reject"]
  20383. },
  20384. "FileSystem.Entry": {
  20385. "type": "object",
  20386. "properties": {
  20387. "path": {
  20388. "type": "string"
  20389. },
  20390. "type": {
  20391. "type": "string",
  20392. "enum": ["file", "directory"]
  20393. }
  20394. },
  20395. "required": ["path", "type"],
  20396. "additionalProperties": false
  20397. },
  20398. "Command.Info": {
  20399. "type": "object",
  20400. "properties": {
  20401. "name": {
  20402. "type": "string"
  20403. },
  20404. "template": {
  20405. "type": "string"
  20406. },
  20407. "description": {
  20408. "type": "string"
  20409. },
  20410. "agent": {
  20411. "type": "string"
  20412. },
  20413. "model": {
  20414. "$ref": "#/components/schemas/Model.Ref"
  20415. },
  20416. "subtask": {
  20417. "type": "boolean"
  20418. }
  20419. },
  20420. "required": ["name", "template"],
  20421. "additionalProperties": false
  20422. },
  20423. "Skill.Info": {
  20424. "type": "object",
  20425. "properties": {
  20426. "id": {
  20427. "type": "string"
  20428. },
  20429. "name": {
  20430. "type": "string"
  20431. },
  20432. "description": {
  20433. "type": "string"
  20434. },
  20435. "slash": {
  20436. "type": "boolean"
  20437. },
  20438. "autoinvoke": {
  20439. "type": "boolean"
  20440. },
  20441. "location": {
  20442. "type": "string"
  20443. },
  20444. "content": {
  20445. "type": "string"
  20446. }
  20447. },
  20448. "required": ["id", "name", "location", "content"],
  20449. "additionalProperties": false
  20450. },
  20451. "models-dev.refreshed": {
  20452. "type": "object",
  20453. "properties": {
  20454. "id": {
  20455. "type": "string",
  20456. "allOf": [
  20457. {
  20458. "pattern": "^evt_"
  20459. }
  20460. ]
  20461. },
  20462. "created": {
  20463. "type": "number"
  20464. },
  20465. "metadata": {
  20466. "type": "object"
  20467. },
  20468. "type": {
  20469. "type": "string",
  20470. "enum": ["models-dev.refreshed"]
  20471. },
  20472. "location": {
  20473. "$ref": "#/components/schemas/Location.Ref"
  20474. },
  20475. "data": {
  20476. "anyOf": [
  20477. {
  20478. "type": "object"
  20479. },
  20480. {
  20481. "type": "array"
  20482. }
  20483. ]
  20484. }
  20485. },
  20486. "required": ["id", "created", "type", "data"],
  20487. "additionalProperties": false
  20488. },
  20489. "integration.updated": {
  20490. "type": "object",
  20491. "properties": {
  20492. "id": {
  20493. "type": "string",
  20494. "allOf": [
  20495. {
  20496. "pattern": "^evt_"
  20497. }
  20498. ]
  20499. },
  20500. "created": {
  20501. "type": "number"
  20502. },
  20503. "metadata": {
  20504. "type": "object"
  20505. },
  20506. "type": {
  20507. "type": "string",
  20508. "enum": ["integration.updated"]
  20509. },
  20510. "location": {
  20511. "$ref": "#/components/schemas/Location.Ref"
  20512. },
  20513. "data": {
  20514. "anyOf": [
  20515. {
  20516. "type": "object"
  20517. },
  20518. {
  20519. "type": "array"
  20520. }
  20521. ]
  20522. }
  20523. },
  20524. "required": ["id", "created", "type", "data"],
  20525. "additionalProperties": false
  20526. },
  20527. "integration.connection.updated": {
  20528. "type": "object",
  20529. "properties": {
  20530. "id": {
  20531. "type": "string",
  20532. "allOf": [
  20533. {
  20534. "pattern": "^evt_"
  20535. }
  20536. ]
  20537. },
  20538. "created": {
  20539. "type": "number"
  20540. },
  20541. "metadata": {
  20542. "type": "object"
  20543. },
  20544. "type": {
  20545. "type": "string",
  20546. "enum": ["integration.connection.updated"]
  20547. },
  20548. "location": {
  20549. "$ref": "#/components/schemas/Location.Ref"
  20550. },
  20551. "data": {
  20552. "type": "object",
  20553. "properties": {
  20554. "integrationID": {
  20555. "type": "string"
  20556. }
  20557. },
  20558. "required": ["integrationID"],
  20559. "additionalProperties": false
  20560. }
  20561. },
  20562. "required": ["id", "created", "type", "data"],
  20563. "additionalProperties": false
  20564. },
  20565. "catalog.updated": {
  20566. "type": "object",
  20567. "properties": {
  20568. "id": {
  20569. "type": "string",
  20570. "allOf": [
  20571. {
  20572. "pattern": "^evt_"
  20573. }
  20574. ]
  20575. },
  20576. "created": {
  20577. "type": "number"
  20578. },
  20579. "metadata": {
  20580. "type": "object"
  20581. },
  20582. "type": {
  20583. "type": "string",
  20584. "enum": ["catalog.updated"]
  20585. },
  20586. "location": {
  20587. "$ref": "#/components/schemas/Location.Ref"
  20588. },
  20589. "data": {
  20590. "anyOf": [
  20591. {
  20592. "type": "object"
  20593. },
  20594. {
  20595. "type": "array"
  20596. }
  20597. ]
  20598. }
  20599. },
  20600. "required": ["id", "created", "type", "data"],
  20601. "additionalProperties": false
  20602. },
  20603. "agent.updated": {
  20604. "type": "object",
  20605. "properties": {
  20606. "id": {
  20607. "type": "string",
  20608. "allOf": [
  20609. {
  20610. "pattern": "^evt_"
  20611. }
  20612. ]
  20613. },
  20614. "created": {
  20615. "type": "number"
  20616. },
  20617. "metadata": {
  20618. "type": "object"
  20619. },
  20620. "type": {
  20621. "type": "string",
  20622. "enum": ["agent.updated"]
  20623. },
  20624. "location": {
  20625. "$ref": "#/components/schemas/Location.Ref"
  20626. },
  20627. "data": {
  20628. "anyOf": [
  20629. {
  20630. "type": "object"
  20631. },
  20632. {
  20633. "type": "array"
  20634. }
  20635. ]
  20636. }
  20637. },
  20638. "required": ["id", "created", "type", "data"],
  20639. "additionalProperties": false
  20640. },
  20641. "session.usage.updated": {
  20642. "type": "object",
  20643. "properties": {
  20644. "id": {
  20645. "type": "string",
  20646. "allOf": [
  20647. {
  20648. "pattern": "^evt_"
  20649. }
  20650. ]
  20651. },
  20652. "created": {
  20653. "type": "number"
  20654. },
  20655. "metadata": {
  20656. "type": "object"
  20657. },
  20658. "type": {
  20659. "type": "string",
  20660. "enum": ["session.usage.updated"]
  20661. },
  20662. "location": {
  20663. "$ref": "#/components/schemas/Location.Ref"
  20664. },
  20665. "data": {
  20666. "type": "object",
  20667. "properties": {
  20668. "sessionID": {
  20669. "type": "string",
  20670. "allOf": [
  20671. {
  20672. "pattern": "^ses"
  20673. }
  20674. ]
  20675. },
  20676. "cost": {
  20677. "$ref": "#/components/schemas/Money.USD"
  20678. },
  20679. "tokens": {
  20680. "$ref": "#/components/schemas/TokenUsage.Info"
  20681. }
  20682. },
  20683. "required": ["sessionID", "cost", "tokens"],
  20684. "additionalProperties": false
  20685. }
  20686. },
  20687. "required": ["id", "created", "type", "data"],
  20688. "additionalProperties": false
  20689. },
  20690. "session.text.delta": {
  20691. "type": "object",
  20692. "properties": {
  20693. "id": {
  20694. "type": "string",
  20695. "allOf": [
  20696. {
  20697. "pattern": "^evt_"
  20698. }
  20699. ]
  20700. },
  20701. "created": {
  20702. "type": "number"
  20703. },
  20704. "metadata": {
  20705. "type": "object"
  20706. },
  20707. "type": {
  20708. "type": "string",
  20709. "enum": ["session.text.delta"]
  20710. },
  20711. "location": {
  20712. "$ref": "#/components/schemas/Location.Ref"
  20713. },
  20714. "data": {
  20715. "type": "object",
  20716. "properties": {
  20717. "sessionID": {
  20718. "type": "string",
  20719. "allOf": [
  20720. {
  20721. "pattern": "^ses"
  20722. }
  20723. ]
  20724. },
  20725. "assistantMessageID": {
  20726. "type": "string",
  20727. "allOf": [
  20728. {
  20729. "pattern": "^msg_"
  20730. }
  20731. ]
  20732. },
  20733. "ordinal": {
  20734. "type": "integer",
  20735. "allOf": [
  20736. {
  20737. "minimum": 0
  20738. }
  20739. ]
  20740. },
  20741. "delta": {
  20742. "type": "string"
  20743. }
  20744. },
  20745. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20746. "additionalProperties": false
  20747. }
  20748. },
  20749. "required": ["id", "created", "type", "data"],
  20750. "additionalProperties": false
  20751. },
  20752. "session.reasoning.delta": {
  20753. "type": "object",
  20754. "properties": {
  20755. "id": {
  20756. "type": "string",
  20757. "allOf": [
  20758. {
  20759. "pattern": "^evt_"
  20760. }
  20761. ]
  20762. },
  20763. "created": {
  20764. "type": "number"
  20765. },
  20766. "metadata": {
  20767. "type": "object"
  20768. },
  20769. "type": {
  20770. "type": "string",
  20771. "enum": ["session.reasoning.delta"]
  20772. },
  20773. "location": {
  20774. "$ref": "#/components/schemas/Location.Ref"
  20775. },
  20776. "data": {
  20777. "type": "object",
  20778. "properties": {
  20779. "sessionID": {
  20780. "type": "string",
  20781. "allOf": [
  20782. {
  20783. "pattern": "^ses"
  20784. }
  20785. ]
  20786. },
  20787. "assistantMessageID": {
  20788. "type": "string",
  20789. "allOf": [
  20790. {
  20791. "pattern": "^msg_"
  20792. }
  20793. ]
  20794. },
  20795. "ordinal": {
  20796. "type": "integer",
  20797. "allOf": [
  20798. {
  20799. "minimum": 0
  20800. }
  20801. ]
  20802. },
  20803. "delta": {
  20804. "type": "string"
  20805. }
  20806. },
  20807. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20808. "additionalProperties": false
  20809. }
  20810. },
  20811. "required": ["id", "created", "type", "data"],
  20812. "additionalProperties": false
  20813. },
  20814. "session.tool.input.delta": {
  20815. "type": "object",
  20816. "properties": {
  20817. "id": {
  20818. "type": "string",
  20819. "allOf": [
  20820. {
  20821. "pattern": "^evt_"
  20822. }
  20823. ]
  20824. },
  20825. "created": {
  20826. "type": "number"
  20827. },
  20828. "metadata": {
  20829. "type": "object"
  20830. },
  20831. "type": {
  20832. "type": "string",
  20833. "enum": ["session.tool.input.delta"]
  20834. },
  20835. "location": {
  20836. "$ref": "#/components/schemas/Location.Ref"
  20837. },
  20838. "data": {
  20839. "type": "object",
  20840. "properties": {
  20841. "sessionID": {
  20842. "type": "string",
  20843. "allOf": [
  20844. {
  20845. "pattern": "^ses"
  20846. }
  20847. ]
  20848. },
  20849. "assistantMessageID": {
  20850. "type": "string",
  20851. "allOf": [
  20852. {
  20853. "pattern": "^msg_"
  20854. }
  20855. ]
  20856. },
  20857. "id": {
  20858. "type": "string"
  20859. },
  20860. "delta": {
  20861. "type": "string"
  20862. }
  20863. },
  20864. "required": ["sessionID", "assistantMessageID", "id", "delta"],
  20865. "additionalProperties": false
  20866. }
  20867. },
  20868. "required": ["id", "created", "type", "data"],
  20869. "additionalProperties": false
  20870. },
  20871. "session.tool.progress": {
  20872. "type": "object",
  20873. "properties": {
  20874. "id": {
  20875. "type": "string",
  20876. "allOf": [
  20877. {
  20878. "pattern": "^evt_"
  20879. }
  20880. ]
  20881. },
  20882. "created": {
  20883. "type": "number"
  20884. },
  20885. "metadata": {
  20886. "type": "object"
  20887. },
  20888. "type": {
  20889. "type": "string",
  20890. "enum": ["session.tool.progress"]
  20891. },
  20892. "location": {
  20893. "$ref": "#/components/schemas/Location.Ref"
  20894. },
  20895. "data": {
  20896. "type": "object",
  20897. "properties": {
  20898. "sessionID": {
  20899. "type": "string",
  20900. "allOf": [
  20901. {
  20902. "pattern": "^ses"
  20903. }
  20904. ]
  20905. },
  20906. "assistantMessageID": {
  20907. "type": "string",
  20908. "allOf": [
  20909. {
  20910. "pattern": "^msg_"
  20911. }
  20912. ]
  20913. },
  20914. "id": {
  20915. "type": "string"
  20916. },
  20917. "metadata": {
  20918. "type": "object"
  20919. }
  20920. },
  20921. "required": ["sessionID", "assistantMessageID", "id", "metadata"],
  20922. "additionalProperties": false
  20923. }
  20924. },
  20925. "required": ["id", "created", "type", "data"],
  20926. "additionalProperties": false
  20927. },
  20928. "session.compaction.delta": {
  20929. "type": "object",
  20930. "properties": {
  20931. "id": {
  20932. "type": "string",
  20933. "allOf": [
  20934. {
  20935. "pattern": "^evt_"
  20936. }
  20937. ]
  20938. },
  20939. "created": {
  20940. "type": "number"
  20941. },
  20942. "metadata": {
  20943. "type": "object"
  20944. },
  20945. "type": {
  20946. "type": "string",
  20947. "enum": ["session.compaction.delta"]
  20948. },
  20949. "location": {
  20950. "$ref": "#/components/schemas/Location.Ref"
  20951. },
  20952. "data": {
  20953. "type": "object",
  20954. "properties": {
  20955. "sessionID": {
  20956. "type": "string",
  20957. "allOf": [
  20958. {
  20959. "pattern": "^ses"
  20960. }
  20961. ]
  20962. },
  20963. "text": {
  20964. "type": "string"
  20965. }
  20966. },
  20967. "required": ["sessionID", "text"],
  20968. "additionalProperties": false
  20969. }
  20970. },
  20971. "required": ["id", "created", "type", "data"],
  20972. "additionalProperties": false
  20973. },
  20974. "filesystem.changed": {
  20975. "type": "object",
  20976. "properties": {
  20977. "id": {
  20978. "type": "string",
  20979. "allOf": [
  20980. {
  20981. "pattern": "^evt_"
  20982. }
  20983. ]
  20984. },
  20985. "created": {
  20986. "type": "number"
  20987. },
  20988. "metadata": {
  20989. "type": "object"
  20990. },
  20991. "type": {
  20992. "type": "string",
  20993. "enum": ["filesystem.changed"]
  20994. },
  20995. "location": {
  20996. "$ref": "#/components/schemas/Location.Ref"
  20997. },
  20998. "data": {
  20999. "type": "object",
  21000. "properties": {
  21001. "file": {
  21002. "type": "string"
  21003. },
  21004. "event": {
  21005. "type": "string",
  21006. "enum": ["add", "change", "unlink"]
  21007. }
  21008. },
  21009. "required": ["file", "event"],
  21010. "additionalProperties": false
  21011. }
  21012. },
  21013. "required": ["id", "created", "type", "data"],
  21014. "additionalProperties": false
  21015. },
  21016. "reference.updated": {
  21017. "type": "object",
  21018. "properties": {
  21019. "id": {
  21020. "type": "string",
  21021. "allOf": [
  21022. {
  21023. "pattern": "^evt_"
  21024. }
  21025. ]
  21026. },
  21027. "created": {
  21028. "type": "number"
  21029. },
  21030. "metadata": {
  21031. "type": "object"
  21032. },
  21033. "type": {
  21034. "type": "string",
  21035. "enum": ["reference.updated"]
  21036. },
  21037. "location": {
  21038. "$ref": "#/components/schemas/Location.Ref"
  21039. },
  21040. "data": {
  21041. "anyOf": [
  21042. {
  21043. "type": "object"
  21044. },
  21045. {
  21046. "type": "array"
  21047. }
  21048. ]
  21049. }
  21050. },
  21051. "required": ["id", "created", "type", "data"],
  21052. "additionalProperties": false
  21053. },
  21054. "permission.asked": {
  21055. "type": "object",
  21056. "properties": {
  21057. "id": {
  21058. "type": "string",
  21059. "allOf": [
  21060. {
  21061. "pattern": "^evt_"
  21062. }
  21063. ]
  21064. },
  21065. "created": {
  21066. "type": "number"
  21067. },
  21068. "metadata": {
  21069. "type": "object"
  21070. },
  21071. "type": {
  21072. "type": "string",
  21073. "enum": ["permission.asked"]
  21074. },
  21075. "location": {
  21076. "$ref": "#/components/schemas/Location.Ref"
  21077. },
  21078. "data": {
  21079. "type": "object",
  21080. "properties": {
  21081. "id": {
  21082. "type": "string",
  21083. "allOf": [
  21084. {
  21085. "pattern": "^per"
  21086. }
  21087. ]
  21088. },
  21089. "sessionID": {
  21090. "type": "string",
  21091. "allOf": [
  21092. {
  21093. "pattern": "^ses"
  21094. }
  21095. ]
  21096. },
  21097. "action": {
  21098. "type": "string"
  21099. },
  21100. "resources": {
  21101. "type": "array",
  21102. "items": {
  21103. "type": "string"
  21104. }
  21105. },
  21106. "save": {
  21107. "type": "array",
  21108. "items": {
  21109. "type": "string"
  21110. }
  21111. },
  21112. "metadata": {
  21113. "type": "object"
  21114. },
  21115. "source": {
  21116. "$ref": "#/components/schemas/Permission.Source"
  21117. }
  21118. },
  21119. "required": ["id", "sessionID", "action", "resources"],
  21120. "additionalProperties": false
  21121. }
  21122. },
  21123. "required": ["id", "created", "type", "data"],
  21124. "additionalProperties": false
  21125. },
  21126. "permission.replied": {
  21127. "type": "object",
  21128. "properties": {
  21129. "id": {
  21130. "type": "string",
  21131. "allOf": [
  21132. {
  21133. "pattern": "^evt_"
  21134. }
  21135. ]
  21136. },
  21137. "created": {
  21138. "type": "number"
  21139. },
  21140. "metadata": {
  21141. "type": "object"
  21142. },
  21143. "type": {
  21144. "type": "string",
  21145. "enum": ["permission.replied"]
  21146. },
  21147. "location": {
  21148. "$ref": "#/components/schemas/Location.Ref"
  21149. },
  21150. "data": {
  21151. "type": "object",
  21152. "properties": {
  21153. "sessionID": {
  21154. "type": "string",
  21155. "allOf": [
  21156. {
  21157. "pattern": "^ses"
  21158. }
  21159. ]
  21160. },
  21161. "requestID": {
  21162. "type": "string",
  21163. "allOf": [
  21164. {
  21165. "pattern": "^per"
  21166. }
  21167. ]
  21168. },
  21169. "reply": {
  21170. "$ref": "#/components/schemas/Permission.Reply"
  21171. }
  21172. },
  21173. "required": ["sessionID", "requestID", "reply"],
  21174. "additionalProperties": false
  21175. }
  21176. },
  21177. "required": ["id", "created", "type", "data"],
  21178. "additionalProperties": false
  21179. },
  21180. "plugin.added": {
  21181. "type": "object",
  21182. "properties": {
  21183. "id": {
  21184. "type": "string",
  21185. "allOf": [
  21186. {
  21187. "pattern": "^evt_"
  21188. }
  21189. ]
  21190. },
  21191. "created": {
  21192. "type": "number"
  21193. },
  21194. "metadata": {
  21195. "type": "object"
  21196. },
  21197. "type": {
  21198. "type": "string",
  21199. "enum": ["plugin.added"]
  21200. },
  21201. "location": {
  21202. "$ref": "#/components/schemas/Location.Ref"
  21203. },
  21204. "data": {
  21205. "type": "object",
  21206. "properties": {
  21207. "id": {
  21208. "type": "string"
  21209. }
  21210. },
  21211. "required": ["id"],
  21212. "additionalProperties": false
  21213. }
  21214. },
  21215. "required": ["id", "created", "type", "data"],
  21216. "additionalProperties": false
  21217. },
  21218. "plugin.updated": {
  21219. "type": "object",
  21220. "properties": {
  21221. "id": {
  21222. "type": "string",
  21223. "allOf": [
  21224. {
  21225. "pattern": "^evt_"
  21226. }
  21227. ]
  21228. },
  21229. "created": {
  21230. "type": "number"
  21231. },
  21232. "metadata": {
  21233. "type": "object"
  21234. },
  21235. "type": {
  21236. "type": "string",
  21237. "enum": ["plugin.updated"]
  21238. },
  21239. "location": {
  21240. "$ref": "#/components/schemas/Location.Ref"
  21241. },
  21242. "data": {
  21243. "anyOf": [
  21244. {
  21245. "type": "object"
  21246. },
  21247. {
  21248. "type": "array"
  21249. }
  21250. ]
  21251. }
  21252. },
  21253. "required": ["id", "created", "type", "data"],
  21254. "additionalProperties": false
  21255. },
  21256. "project.directories.updated": {
  21257. "type": "object",
  21258. "properties": {
  21259. "id": {
  21260. "type": "string",
  21261. "allOf": [
  21262. {
  21263. "pattern": "^evt_"
  21264. }
  21265. ]
  21266. },
  21267. "created": {
  21268. "type": "number"
  21269. },
  21270. "metadata": {
  21271. "type": "object"
  21272. },
  21273. "type": {
  21274. "type": "string",
  21275. "enum": ["project.directories.updated"]
  21276. },
  21277. "location": {
  21278. "$ref": "#/components/schemas/Location.Ref"
  21279. },
  21280. "data": {
  21281. "type": "object",
  21282. "properties": {
  21283. "projectID": {
  21284. "type": "string"
  21285. }
  21286. },
  21287. "required": ["projectID"],
  21288. "additionalProperties": false
  21289. }
  21290. },
  21291. "required": ["id", "created", "type", "data"],
  21292. "additionalProperties": false
  21293. },
  21294. "command.updated": {
  21295. "type": "object",
  21296. "properties": {
  21297. "id": {
  21298. "type": "string",
  21299. "allOf": [
  21300. {
  21301. "pattern": "^evt_"
  21302. }
  21303. ]
  21304. },
  21305. "created": {
  21306. "type": "number"
  21307. },
  21308. "metadata": {
  21309. "type": "object"
  21310. },
  21311. "type": {
  21312. "type": "string",
  21313. "enum": ["command.updated"]
  21314. },
  21315. "location": {
  21316. "$ref": "#/components/schemas/Location.Ref"
  21317. },
  21318. "data": {
  21319. "anyOf": [
  21320. {
  21321. "type": "object"
  21322. },
  21323. {
  21324. "type": "array"
  21325. }
  21326. ]
  21327. }
  21328. },
  21329. "required": ["id", "created", "type", "data"],
  21330. "additionalProperties": false
  21331. },
  21332. "config.updated": {
  21333. "type": "object",
  21334. "properties": {
  21335. "id": {
  21336. "type": "string",
  21337. "allOf": [
  21338. {
  21339. "pattern": "^evt_"
  21340. }
  21341. ]
  21342. },
  21343. "created": {
  21344. "type": "number"
  21345. },
  21346. "metadata": {
  21347. "type": "object"
  21348. },
  21349. "type": {
  21350. "type": "string",
  21351. "enum": ["config.updated"]
  21352. },
  21353. "location": {
  21354. "$ref": "#/components/schemas/Location.Ref"
  21355. },
  21356. "data": {
  21357. "anyOf": [
  21358. {
  21359. "type": "object"
  21360. },
  21361. {
  21362. "type": "array"
  21363. }
  21364. ]
  21365. }
  21366. },
  21367. "required": ["id", "created", "type", "data"],
  21368. "additionalProperties": false
  21369. },
  21370. "skill.updated": {
  21371. "type": "object",
  21372. "properties": {
  21373. "id": {
  21374. "type": "string",
  21375. "allOf": [
  21376. {
  21377. "pattern": "^evt_"
  21378. }
  21379. ]
  21380. },
  21381. "created": {
  21382. "type": "number"
  21383. },
  21384. "metadata": {
  21385. "type": "object"
  21386. },
  21387. "type": {
  21388. "type": "string",
  21389. "enum": ["skill.updated"]
  21390. },
  21391. "location": {
  21392. "$ref": "#/components/schemas/Location.Ref"
  21393. },
  21394. "data": {
  21395. "anyOf": [
  21396. {
  21397. "type": "object"
  21398. },
  21399. {
  21400. "type": "array"
  21401. }
  21402. ]
  21403. }
  21404. },
  21405. "required": ["id", "created", "type", "data"],
  21406. "additionalProperties": false
  21407. },
  21408. "Pty": {
  21409. "type": "object",
  21410. "properties": {
  21411. "id": {
  21412. "type": "string",
  21413. "allOf": [
  21414. {
  21415. "pattern": "^pty"
  21416. }
  21417. ]
  21418. },
  21419. "title": {
  21420. "type": "string"
  21421. },
  21422. "command": {
  21423. "type": "string"
  21424. },
  21425. "args": {
  21426. "type": "array",
  21427. "items": {
  21428. "type": "string"
  21429. }
  21430. },
  21431. "cwd": {
  21432. "type": "string"
  21433. },
  21434. "status": {
  21435. "type": "string",
  21436. "enum": ["running", "exited"]
  21437. },
  21438. "pid": {
  21439. "type": "integer",
  21440. "allOf": [
  21441. {
  21442. "minimum": 0
  21443. }
  21444. ]
  21445. },
  21446. "exitCode": {
  21447. "type": "integer",
  21448. "allOf": [
  21449. {
  21450. "minimum": 0
  21451. }
  21452. ]
  21453. }
  21454. },
  21455. "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
  21456. "additionalProperties": false
  21457. },
  21458. "pty.created": {
  21459. "type": "object",
  21460. "properties": {
  21461. "id": {
  21462. "type": "string",
  21463. "allOf": [
  21464. {
  21465. "pattern": "^evt_"
  21466. }
  21467. ]
  21468. },
  21469. "created": {
  21470. "type": "number"
  21471. },
  21472. "metadata": {
  21473. "type": "object"
  21474. },
  21475. "type": {
  21476. "type": "string",
  21477. "enum": ["pty.created"]
  21478. },
  21479. "location": {
  21480. "$ref": "#/components/schemas/Location.Ref"
  21481. },
  21482. "data": {
  21483. "type": "object",
  21484. "properties": {
  21485. "info": {
  21486. "$ref": "#/components/schemas/Pty"
  21487. }
  21488. },
  21489. "required": ["info"],
  21490. "additionalProperties": false
  21491. }
  21492. },
  21493. "required": ["id", "created", "type", "data"],
  21494. "additionalProperties": false
  21495. },
  21496. "pty.updated": {
  21497. "type": "object",
  21498. "properties": {
  21499. "id": {
  21500. "type": "string",
  21501. "allOf": [
  21502. {
  21503. "pattern": "^evt_"
  21504. }
  21505. ]
  21506. },
  21507. "created": {
  21508. "type": "number"
  21509. },
  21510. "metadata": {
  21511. "type": "object"
  21512. },
  21513. "type": {
  21514. "type": "string",
  21515. "enum": ["pty.updated"]
  21516. },
  21517. "location": {
  21518. "$ref": "#/components/schemas/Location.Ref"
  21519. },
  21520. "data": {
  21521. "type": "object",
  21522. "properties": {
  21523. "info": {
  21524. "$ref": "#/components/schemas/Pty"
  21525. }
  21526. },
  21527. "required": ["info"],
  21528. "additionalProperties": false
  21529. }
  21530. },
  21531. "required": ["id", "created", "type", "data"],
  21532. "additionalProperties": false
  21533. },
  21534. "pty.exited": {
  21535. "type": "object",
  21536. "properties": {
  21537. "id": {
  21538. "type": "string",
  21539. "allOf": [
  21540. {
  21541. "pattern": "^evt_"
  21542. }
  21543. ]
  21544. },
  21545. "created": {
  21546. "type": "number"
  21547. },
  21548. "metadata": {
  21549. "type": "object"
  21550. },
  21551. "type": {
  21552. "type": "string",
  21553. "enum": ["pty.exited"]
  21554. },
  21555. "location": {
  21556. "$ref": "#/components/schemas/Location.Ref"
  21557. },
  21558. "data": {
  21559. "type": "object",
  21560. "properties": {
  21561. "id": {
  21562. "type": "string",
  21563. "allOf": [
  21564. {
  21565. "pattern": "^pty"
  21566. }
  21567. ]
  21568. },
  21569. "exitCode": {
  21570. "type": "integer",
  21571. "allOf": [
  21572. {
  21573. "minimum": 0
  21574. }
  21575. ]
  21576. }
  21577. },
  21578. "required": ["id", "exitCode"],
  21579. "additionalProperties": false
  21580. }
  21581. },
  21582. "required": ["id", "created", "type", "data"],
  21583. "additionalProperties": false
  21584. },
  21585. "pty.deleted": {
  21586. "type": "object",
  21587. "properties": {
  21588. "id": {
  21589. "type": "string",
  21590. "allOf": [
  21591. {
  21592. "pattern": "^evt_"
  21593. }
  21594. ]
  21595. },
  21596. "created": {
  21597. "type": "number"
  21598. },
  21599. "metadata": {
  21600. "type": "object"
  21601. },
  21602. "type": {
  21603. "type": "string",
  21604. "enum": ["pty.deleted"]
  21605. },
  21606. "location": {
  21607. "$ref": "#/components/schemas/Location.Ref"
  21608. },
  21609. "data": {
  21610. "type": "object",
  21611. "properties": {
  21612. "id": {
  21613. "type": "string",
  21614. "allOf": [
  21615. {
  21616. "pattern": "^pty"
  21617. }
  21618. ]
  21619. }
  21620. },
  21621. "required": ["id"],
  21622. "additionalProperties": false
  21623. }
  21624. },
  21625. "required": ["id", "created", "type", "data"],
  21626. "additionalProperties": false
  21627. },
  21628. "shell.created": {
  21629. "type": "object",
  21630. "properties": {
  21631. "id": {
  21632. "type": "string",
  21633. "allOf": [
  21634. {
  21635. "pattern": "^evt_"
  21636. }
  21637. ]
  21638. },
  21639. "created": {
  21640. "type": "number"
  21641. },
  21642. "metadata": {
  21643. "type": "object"
  21644. },
  21645. "type": {
  21646. "type": "string",
  21647. "enum": ["shell.created"]
  21648. },
  21649. "location": {
  21650. "$ref": "#/components/schemas/Location.Ref"
  21651. },
  21652. "data": {
  21653. "type": "object",
  21654. "properties": {
  21655. "info": {
  21656. "$ref": "#/components/schemas/Shell.Info"
  21657. }
  21658. },
  21659. "required": ["info"],
  21660. "additionalProperties": false
  21661. }
  21662. },
  21663. "required": ["id", "created", "type", "data"],
  21664. "additionalProperties": false
  21665. },
  21666. "shell.exited": {
  21667. "type": "object",
  21668. "properties": {
  21669. "id": {
  21670. "type": "string",
  21671. "allOf": [
  21672. {
  21673. "pattern": "^evt_"
  21674. }
  21675. ]
  21676. },
  21677. "created": {
  21678. "type": "number"
  21679. },
  21680. "metadata": {
  21681. "type": "object"
  21682. },
  21683. "type": {
  21684. "type": "string",
  21685. "enum": ["shell.exited"]
  21686. },
  21687. "location": {
  21688. "$ref": "#/components/schemas/Location.Ref"
  21689. },
  21690. "data": {
  21691. "type": "object",
  21692. "properties": {
  21693. "id": {
  21694. "type": "string",
  21695. "allOf": [
  21696. {
  21697. "pattern": "^sh_"
  21698. }
  21699. ]
  21700. },
  21701. "exit": {
  21702. "type": "number"
  21703. },
  21704. "status": {
  21705. "type": "string",
  21706. "enum": ["running", "exited", "timeout", "killed"]
  21707. }
  21708. },
  21709. "required": ["id", "status"],
  21710. "additionalProperties": false
  21711. }
  21712. },
  21713. "required": ["id", "created", "type", "data"],
  21714. "additionalProperties": false
  21715. },
  21716. "shell.deleted": {
  21717. "type": "object",
  21718. "properties": {
  21719. "id": {
  21720. "type": "string",
  21721. "allOf": [
  21722. {
  21723. "pattern": "^evt_"
  21724. }
  21725. ]
  21726. },
  21727. "created": {
  21728. "type": "number"
  21729. },
  21730. "metadata": {
  21731. "type": "object"
  21732. },
  21733. "type": {
  21734. "type": "string",
  21735. "enum": ["shell.deleted"]
  21736. },
  21737. "location": {
  21738. "$ref": "#/components/schemas/Location.Ref"
  21739. },
  21740. "data": {
  21741. "type": "object",
  21742. "properties": {
  21743. "id": {
  21744. "type": "string",
  21745. "allOf": [
  21746. {
  21747. "pattern": "^sh_"
  21748. }
  21749. ]
  21750. }
  21751. },
  21752. "required": ["id"],
  21753. "additionalProperties": false
  21754. }
  21755. },
  21756. "required": ["id", "created", "type", "data"],
  21757. "additionalProperties": false
  21758. },
  21759. "Question.Option": {
  21760. "type": "object",
  21761. "properties": {
  21762. "label": {
  21763. "type": "string",
  21764. "description": "Display text (1-5 words, concise)"
  21765. },
  21766. "description": {
  21767. "type": "string",
  21768. "description": "Explanation of choice"
  21769. }
  21770. },
  21771. "required": ["label", "description"],
  21772. "additionalProperties": false
  21773. },
  21774. "Question.Info": {
  21775. "type": "object",
  21776. "properties": {
  21777. "question": {
  21778. "type": "string",
  21779. "description": "Complete question"
  21780. },
  21781. "header": {
  21782. "type": "string",
  21783. "description": "Very short label (max 30 chars)"
  21784. },
  21785. "options": {
  21786. "type": "array",
  21787. "items": {
  21788. "$ref": "#/components/schemas/Question.Option"
  21789. },
  21790. "description": "Available choices"
  21791. },
  21792. "multiple": {
  21793. "type": "boolean"
  21794. },
  21795. "custom": {
  21796. "type": "boolean"
  21797. }
  21798. },
  21799. "required": ["question", "header", "options"],
  21800. "additionalProperties": false
  21801. },
  21802. "Question.Tool": {
  21803. "type": "object",
  21804. "properties": {
  21805. "messageID": {
  21806. "type": "string"
  21807. },
  21808. "id": {
  21809. "type": "string"
  21810. }
  21811. },
  21812. "required": ["messageID", "id"],
  21813. "additionalProperties": false
  21814. },
  21815. "question.asked": {
  21816. "type": "object",
  21817. "properties": {
  21818. "id": {
  21819. "type": "string",
  21820. "allOf": [
  21821. {
  21822. "pattern": "^evt_"
  21823. }
  21824. ]
  21825. },
  21826. "created": {
  21827. "type": "number"
  21828. },
  21829. "metadata": {
  21830. "type": "object"
  21831. },
  21832. "type": {
  21833. "type": "string",
  21834. "enum": ["question.asked"]
  21835. },
  21836. "location": {
  21837. "$ref": "#/components/schemas/Location.Ref"
  21838. },
  21839. "data": {
  21840. "type": "object",
  21841. "properties": {
  21842. "id": {
  21843. "type": "string",
  21844. "allOf": [
  21845. {
  21846. "pattern": "^que"
  21847. }
  21848. ]
  21849. },
  21850. "sessionID": {
  21851. "type": "string",
  21852. "allOf": [
  21853. {
  21854. "pattern": "^ses"
  21855. }
  21856. ]
  21857. },
  21858. "questions": {
  21859. "type": "array",
  21860. "items": {
  21861. "$ref": "#/components/schemas/Question.Info"
  21862. },
  21863. "description": "Questions to ask"
  21864. },
  21865. "tool": {
  21866. "$ref": "#/components/schemas/Question.Tool"
  21867. }
  21868. },
  21869. "required": ["id", "sessionID", "questions"],
  21870. "additionalProperties": false
  21871. }
  21872. },
  21873. "required": ["id", "created", "type", "data"],
  21874. "additionalProperties": false
  21875. },
  21876. "Question.Answer": {
  21877. "type": "array",
  21878. "items": {
  21879. "type": "string"
  21880. }
  21881. },
  21882. "question.replied": {
  21883. "type": "object",
  21884. "properties": {
  21885. "id": {
  21886. "type": "string",
  21887. "allOf": [
  21888. {
  21889. "pattern": "^evt_"
  21890. }
  21891. ]
  21892. },
  21893. "created": {
  21894. "type": "number"
  21895. },
  21896. "metadata": {
  21897. "type": "object"
  21898. },
  21899. "type": {
  21900. "type": "string",
  21901. "enum": ["question.replied"]
  21902. },
  21903. "location": {
  21904. "$ref": "#/components/schemas/Location.Ref"
  21905. },
  21906. "data": {
  21907. "type": "object",
  21908. "properties": {
  21909. "sessionID": {
  21910. "type": "string",
  21911. "allOf": [
  21912. {
  21913. "pattern": "^ses"
  21914. }
  21915. ]
  21916. },
  21917. "requestID": {
  21918. "type": "string",
  21919. "allOf": [
  21920. {
  21921. "pattern": "^que"
  21922. }
  21923. ]
  21924. },
  21925. "answers": {
  21926. "type": "array",
  21927. "items": {
  21928. "$ref": "#/components/schemas/Question.Answer"
  21929. }
  21930. }
  21931. },
  21932. "required": ["sessionID", "requestID", "answers"],
  21933. "additionalProperties": false
  21934. }
  21935. },
  21936. "required": ["id", "created", "type", "data"],
  21937. "additionalProperties": false
  21938. },
  21939. "question.rejected": {
  21940. "type": "object",
  21941. "properties": {
  21942. "id": {
  21943. "type": "string",
  21944. "allOf": [
  21945. {
  21946. "pattern": "^evt_"
  21947. }
  21948. ]
  21949. },
  21950. "created": {
  21951. "type": "number"
  21952. },
  21953. "metadata": {
  21954. "type": "object"
  21955. },
  21956. "type": {
  21957. "type": "string",
  21958. "enum": ["question.rejected"]
  21959. },
  21960. "location": {
  21961. "$ref": "#/components/schemas/Location.Ref"
  21962. },
  21963. "data": {
  21964. "type": "object",
  21965. "properties": {
  21966. "sessionID": {
  21967. "type": "string",
  21968. "allOf": [
  21969. {
  21970. "pattern": "^ses"
  21971. }
  21972. ]
  21973. },
  21974. "requestID": {
  21975. "type": "string",
  21976. "allOf": [
  21977. {
  21978. "pattern": "^que"
  21979. }
  21980. ]
  21981. }
  21982. },
  21983. "required": ["sessionID", "requestID"],
  21984. "additionalProperties": false
  21985. }
  21986. },
  21987. "required": ["id", "created", "type", "data"],
  21988. "additionalProperties": false
  21989. },
  21990. "Form.Metadata1": {
  21991. "type": "object"
  21992. },
  21993. "Form.When1": {
  21994. "type": "object",
  21995. "properties": {
  21996. "key": {
  21997. "type": "string"
  21998. },
  21999. "op": {
  22000. "type": "string",
  22001. "enum": ["eq", "neq"]
  22002. },
  22003. "value": {
  22004. "anyOf": [
  22005. {
  22006. "type": "string"
  22007. },
  22008. {
  22009. "anyOf": [
  22010. {
  22011. "type": "number"
  22012. },
  22013. {
  22014. "type": "string",
  22015. "enum": ["NaN"]
  22016. },
  22017. {
  22018. "type": "string",
  22019. "enum": ["Infinity"]
  22020. },
  22021. {
  22022. "type": "string",
  22023. "enum": ["-Infinity"]
  22024. }
  22025. ]
  22026. },
  22027. {
  22028. "type": "boolean"
  22029. }
  22030. ]
  22031. }
  22032. },
  22033. "required": ["key", "op", "value"],
  22034. "additionalProperties": false
  22035. },
  22036. "Form.StringField1": {
  22037. "type": "object",
  22038. "properties": {
  22039. "key": {
  22040. "type": "string"
  22041. },
  22042. "title": {
  22043. "type": "string"
  22044. },
  22045. "description": {
  22046. "type": "string"
  22047. },
  22048. "required": {
  22049. "type": "boolean"
  22050. },
  22051. "when": {
  22052. "type": "array",
  22053. "items": {
  22054. "$ref": "#/components/schemas/Form.When1"
  22055. }
  22056. },
  22057. "type": {
  22058. "type": "string",
  22059. "enum": ["string"]
  22060. },
  22061. "format": {
  22062. "type": "string",
  22063. "enum": ["email", "uri", "date", "date-time"]
  22064. },
  22065. "minLength": {
  22066. "type": "integer",
  22067. "allOf": [
  22068. {
  22069. "minimum": 0
  22070. }
  22071. ]
  22072. },
  22073. "maxLength": {
  22074. "type": "integer",
  22075. "allOf": [
  22076. {
  22077. "minimum": 0
  22078. }
  22079. ]
  22080. },
  22081. "pattern": {
  22082. "type": "string"
  22083. },
  22084. "placeholder": {
  22085. "type": "string"
  22086. },
  22087. "default": {
  22088. "type": "string"
  22089. },
  22090. "options": {
  22091. "type": "array",
  22092. "items": {
  22093. "$ref": "#/components/schemas/Form.Option"
  22094. }
  22095. },
  22096. "custom": {
  22097. "type": "boolean"
  22098. }
  22099. },
  22100. "required": ["key", "type"],
  22101. "additionalProperties": false
  22102. },
  22103. "Form.NumberField1": {
  22104. "type": "object",
  22105. "properties": {
  22106. "key": {
  22107. "type": "string"
  22108. },
  22109. "title": {
  22110. "type": "string"
  22111. },
  22112. "description": {
  22113. "type": "string"
  22114. },
  22115. "required": {
  22116. "type": "boolean"
  22117. },
  22118. "when": {
  22119. "type": "array",
  22120. "items": {
  22121. "$ref": "#/components/schemas/Form.When1"
  22122. }
  22123. },
  22124. "type": {
  22125. "type": "string",
  22126. "enum": ["number"]
  22127. },
  22128. "minimum": {
  22129. "anyOf": [
  22130. {
  22131. "type": "number"
  22132. },
  22133. {
  22134. "type": "string",
  22135. "enum": ["NaN"]
  22136. },
  22137. {
  22138. "type": "string",
  22139. "enum": ["Infinity"]
  22140. },
  22141. {
  22142. "type": "string",
  22143. "enum": ["-Infinity"]
  22144. }
  22145. ]
  22146. },
  22147. "maximum": {
  22148. "anyOf": [
  22149. {
  22150. "type": "number"
  22151. },
  22152. {
  22153. "type": "string",
  22154. "enum": ["NaN"]
  22155. },
  22156. {
  22157. "type": "string",
  22158. "enum": ["Infinity"]
  22159. },
  22160. {
  22161. "type": "string",
  22162. "enum": ["-Infinity"]
  22163. }
  22164. ]
  22165. },
  22166. "default": {
  22167. "anyOf": [
  22168. {
  22169. "type": "number"
  22170. },
  22171. {
  22172. "type": "string",
  22173. "enum": ["NaN"]
  22174. },
  22175. {
  22176. "type": "string",
  22177. "enum": ["Infinity"]
  22178. },
  22179. {
  22180. "type": "string",
  22181. "enum": ["-Infinity"]
  22182. }
  22183. ]
  22184. }
  22185. },
  22186. "required": ["key", "type"],
  22187. "additionalProperties": false
  22188. },
  22189. "Form.IntegerField1": {
  22190. "type": "object",
  22191. "properties": {
  22192. "key": {
  22193. "type": "string"
  22194. },
  22195. "title": {
  22196. "type": "string"
  22197. },
  22198. "description": {
  22199. "type": "string"
  22200. },
  22201. "required": {
  22202. "type": "boolean"
  22203. },
  22204. "when": {
  22205. "type": "array",
  22206. "items": {
  22207. "$ref": "#/components/schemas/Form.When1"
  22208. }
  22209. },
  22210. "type": {
  22211. "type": "string",
  22212. "enum": ["integer"]
  22213. },
  22214. "minimum": {
  22215. "anyOf": [
  22216. {
  22217. "type": "number"
  22218. },
  22219. {
  22220. "type": "string",
  22221. "enum": ["NaN"]
  22222. },
  22223. {
  22224. "type": "string",
  22225. "enum": ["Infinity"]
  22226. },
  22227. {
  22228. "type": "string",
  22229. "enum": ["-Infinity"]
  22230. }
  22231. ]
  22232. },
  22233. "maximum": {
  22234. "anyOf": [
  22235. {
  22236. "type": "number"
  22237. },
  22238. {
  22239. "type": "string",
  22240. "enum": ["NaN"]
  22241. },
  22242. {
  22243. "type": "string",
  22244. "enum": ["Infinity"]
  22245. },
  22246. {
  22247. "type": "string",
  22248. "enum": ["-Infinity"]
  22249. }
  22250. ]
  22251. },
  22252. "default": {
  22253. "anyOf": [
  22254. {
  22255. "type": "number"
  22256. },
  22257. {
  22258. "type": "string",
  22259. "enum": ["NaN"]
  22260. },
  22261. {
  22262. "type": "string",
  22263. "enum": ["Infinity"]
  22264. },
  22265. {
  22266. "type": "string",
  22267. "enum": ["-Infinity"]
  22268. }
  22269. ]
  22270. }
  22271. },
  22272. "required": ["key", "type"],
  22273. "additionalProperties": false
  22274. },
  22275. "Form.BooleanField1": {
  22276. "type": "object",
  22277. "properties": {
  22278. "key": {
  22279. "type": "string"
  22280. },
  22281. "title": {
  22282. "type": "string"
  22283. },
  22284. "description": {
  22285. "type": "string"
  22286. },
  22287. "required": {
  22288. "type": "boolean"
  22289. },
  22290. "when": {
  22291. "type": "array",
  22292. "items": {
  22293. "$ref": "#/components/schemas/Form.When1"
  22294. }
  22295. },
  22296. "type": {
  22297. "type": "string",
  22298. "enum": ["boolean"]
  22299. },
  22300. "default": {
  22301. "type": "boolean"
  22302. }
  22303. },
  22304. "required": ["key", "type"],
  22305. "additionalProperties": false
  22306. },
  22307. "Form.MultiselectField1": {
  22308. "type": "object",
  22309. "properties": {
  22310. "key": {
  22311. "type": "string"
  22312. },
  22313. "title": {
  22314. "type": "string"
  22315. },
  22316. "description": {
  22317. "type": "string"
  22318. },
  22319. "required": {
  22320. "type": "boolean"
  22321. },
  22322. "when": {
  22323. "type": "array",
  22324. "items": {
  22325. "$ref": "#/components/schemas/Form.When1"
  22326. }
  22327. },
  22328. "type": {
  22329. "type": "string",
  22330. "enum": ["multiselect"]
  22331. },
  22332. "options": {
  22333. "type": "array",
  22334. "items": {
  22335. "$ref": "#/components/schemas/Form.Option"
  22336. }
  22337. },
  22338. "minItems": {
  22339. "type": "integer",
  22340. "allOf": [
  22341. {
  22342. "minimum": 0
  22343. }
  22344. ]
  22345. },
  22346. "maxItems": {
  22347. "type": "integer",
  22348. "allOf": [
  22349. {
  22350. "minimum": 0
  22351. }
  22352. ]
  22353. },
  22354. "custom": {
  22355. "type": "boolean"
  22356. },
  22357. "default": {
  22358. "type": "array",
  22359. "items": {
  22360. "type": "string"
  22361. }
  22362. }
  22363. },
  22364. "required": ["key", "type", "options"],
  22365. "additionalProperties": false
  22366. },
  22367. "Form.Field1": {
  22368. "anyOf": [
  22369. {
  22370. "$ref": "#/components/schemas/Form.StringField1"
  22371. },
  22372. {
  22373. "$ref": "#/components/schemas/Form.NumberField1"
  22374. },
  22375. {
  22376. "$ref": "#/components/schemas/Form.IntegerField1"
  22377. },
  22378. {
  22379. "$ref": "#/components/schemas/Form.BooleanField1"
  22380. },
  22381. {
  22382. "$ref": "#/components/schemas/Form.MultiselectField1"
  22383. },
  22384. {
  22385. "$ref": "#/components/schemas/Form.ExternalField"
  22386. }
  22387. ]
  22388. },
  22389. "Form.Fields3": {
  22390. "type": "array",
  22391. "prefixItems": [
  22392. {
  22393. "$ref": "#/components/schemas/Form.Field1"
  22394. }
  22395. ],
  22396. "minItems": 1,
  22397. "items": {
  22398. "$ref": "#/components/schemas/Form.Field1"
  22399. }
  22400. },
  22401. "Form.Info1": {
  22402. "type": "object",
  22403. "properties": {
  22404. "id": {
  22405. "type": "string",
  22406. "allOf": [
  22407. {
  22408. "pattern": "^frm_"
  22409. }
  22410. ]
  22411. },
  22412. "sessionID": {
  22413. "type": "string"
  22414. },
  22415. "title": {
  22416. "type": "string"
  22417. },
  22418. "metadata": {
  22419. "$ref": "#/components/schemas/Form.Metadata1"
  22420. },
  22421. "fields": {
  22422. "$ref": "#/components/schemas/Form.Fields3"
  22423. }
  22424. },
  22425. "required": ["id", "sessionID", "title", "fields"],
  22426. "additionalProperties": false
  22427. },
  22428. "form.created": {
  22429. "type": "object",
  22430. "properties": {
  22431. "id": {
  22432. "type": "string",
  22433. "allOf": [
  22434. {
  22435. "pattern": "^evt_"
  22436. }
  22437. ]
  22438. },
  22439. "created": {
  22440. "type": "number"
  22441. },
  22442. "metadata": {
  22443. "type": "object"
  22444. },
  22445. "type": {
  22446. "type": "string",
  22447. "enum": ["form.created"]
  22448. },
  22449. "location": {
  22450. "$ref": "#/components/schemas/Location.Ref"
  22451. },
  22452. "data": {
  22453. "type": "object",
  22454. "properties": {
  22455. "form": {
  22456. "$ref": "#/components/schemas/Form.Info1"
  22457. }
  22458. },
  22459. "required": ["form"],
  22460. "additionalProperties": false
  22461. }
  22462. },
  22463. "required": ["id", "created", "type", "data"],
  22464. "additionalProperties": false
  22465. },
  22466. "Form.Value1": {
  22467. "anyOf": [
  22468. {
  22469. "type": "string"
  22470. },
  22471. {
  22472. "anyOf": [
  22473. {
  22474. "type": "number"
  22475. },
  22476. {
  22477. "type": "string",
  22478. "enum": ["NaN"]
  22479. },
  22480. {
  22481. "type": "string",
  22482. "enum": ["Infinity"]
  22483. },
  22484. {
  22485. "type": "string",
  22486. "enum": ["-Infinity"]
  22487. }
  22488. ]
  22489. },
  22490. {
  22491. "type": "boolean"
  22492. },
  22493. {
  22494. "type": "array",
  22495. "items": {
  22496. "type": "string"
  22497. }
  22498. }
  22499. ]
  22500. },
  22501. "Form.Answer1": {
  22502. "type": "object",
  22503. "additionalProperties": {
  22504. "$ref": "#/components/schemas/Form.Value1"
  22505. }
  22506. },
  22507. "form.replied": {
  22508. "type": "object",
  22509. "properties": {
  22510. "id": {
  22511. "type": "string",
  22512. "allOf": [
  22513. {
  22514. "pattern": "^evt_"
  22515. }
  22516. ]
  22517. },
  22518. "created": {
  22519. "type": "number"
  22520. },
  22521. "metadata": {
  22522. "type": "object"
  22523. },
  22524. "type": {
  22525. "type": "string",
  22526. "enum": ["form.replied"]
  22527. },
  22528. "location": {
  22529. "$ref": "#/components/schemas/Location.Ref"
  22530. },
  22531. "data": {
  22532. "type": "object",
  22533. "properties": {
  22534. "id": {
  22535. "type": "string",
  22536. "allOf": [
  22537. {
  22538. "pattern": "^frm_"
  22539. }
  22540. ]
  22541. },
  22542. "sessionID": {
  22543. "type": "string"
  22544. },
  22545. "answer": {
  22546. "$ref": "#/components/schemas/Form.Answer1"
  22547. }
  22548. },
  22549. "required": ["id", "sessionID", "answer"],
  22550. "additionalProperties": false
  22551. }
  22552. },
  22553. "required": ["id", "created", "type", "data"],
  22554. "additionalProperties": false
  22555. },
  22556. "form.cancelled": {
  22557. "type": "object",
  22558. "properties": {
  22559. "id": {
  22560. "type": "string",
  22561. "allOf": [
  22562. {
  22563. "pattern": "^evt_"
  22564. }
  22565. ]
  22566. },
  22567. "created": {
  22568. "type": "number"
  22569. },
  22570. "metadata": {
  22571. "type": "object"
  22572. },
  22573. "type": {
  22574. "type": "string",
  22575. "enum": ["form.cancelled"]
  22576. },
  22577. "location": {
  22578. "$ref": "#/components/schemas/Location.Ref"
  22579. },
  22580. "data": {
  22581. "type": "object",
  22582. "properties": {
  22583. "id": {
  22584. "type": "string",
  22585. "allOf": [
  22586. {
  22587. "pattern": "^frm_"
  22588. }
  22589. ]
  22590. },
  22591. "sessionID": {
  22592. "type": "string"
  22593. }
  22594. },
  22595. "required": ["id", "sessionID"],
  22596. "additionalProperties": false
  22597. }
  22598. },
  22599. "required": ["id", "created", "type", "data"],
  22600. "additionalProperties": false
  22601. },
  22602. "websearch.updated": {
  22603. "type": "object",
  22604. "properties": {
  22605. "id": {
  22606. "type": "string",
  22607. "allOf": [
  22608. {
  22609. "pattern": "^evt_"
  22610. }
  22611. ]
  22612. },
  22613. "created": {
  22614. "type": "number"
  22615. },
  22616. "metadata": {
  22617. "type": "object"
  22618. },
  22619. "type": {
  22620. "type": "string",
  22621. "enum": ["websearch.updated"]
  22622. },
  22623. "location": {
  22624. "$ref": "#/components/schemas/Location.Ref"
  22625. },
  22626. "data": {
  22627. "anyOf": [
  22628. {
  22629. "type": "object"
  22630. },
  22631. {
  22632. "type": "array"
  22633. }
  22634. ]
  22635. }
  22636. },
  22637. "required": ["id", "created", "type", "data"],
  22638. "additionalProperties": false
  22639. },
  22640. "SessionStatus": {
  22641. "anyOf": [
  22642. {
  22643. "type": "object",
  22644. "properties": {
  22645. "type": {
  22646. "type": "string",
  22647. "enum": ["idle"]
  22648. }
  22649. },
  22650. "required": ["type"],
  22651. "additionalProperties": false
  22652. },
  22653. {
  22654. "type": "object",
  22655. "properties": {
  22656. "type": {
  22657. "type": "string",
  22658. "enum": ["retry"]
  22659. },
  22660. "attempt": {
  22661. "type": "integer",
  22662. "allOf": [
  22663. {
  22664. "minimum": 0
  22665. }
  22666. ]
  22667. },
  22668. "message": {
  22669. "type": "string"
  22670. },
  22671. "action": {
  22672. "type": "object",
  22673. "properties": {
  22674. "reason": {
  22675. "type": "string"
  22676. },
  22677. "provider": {
  22678. "type": "string"
  22679. },
  22680. "title": {
  22681. "type": "string"
  22682. },
  22683. "message": {
  22684. "type": "string"
  22685. },
  22686. "label": {
  22687. "type": "string"
  22688. },
  22689. "link": {
  22690. "type": "string"
  22691. }
  22692. },
  22693. "required": ["reason", "provider", "title", "message", "label"],
  22694. "additionalProperties": false
  22695. },
  22696. "next": {
  22697. "type": "integer",
  22698. "allOf": [
  22699. {
  22700. "minimum": 0
  22701. }
  22702. ]
  22703. }
  22704. },
  22705. "required": ["type", "attempt", "message", "next"],
  22706. "additionalProperties": false
  22707. },
  22708. {
  22709. "type": "object",
  22710. "properties": {
  22711. "type": {
  22712. "type": "string",
  22713. "enum": ["busy"]
  22714. }
  22715. },
  22716. "required": ["type"],
  22717. "additionalProperties": false
  22718. }
  22719. ]
  22720. },
  22721. "session.status": {
  22722. "type": "object",
  22723. "properties": {
  22724. "id": {
  22725. "type": "string",
  22726. "allOf": [
  22727. {
  22728. "pattern": "^evt_"
  22729. }
  22730. ]
  22731. },
  22732. "created": {
  22733. "type": "number"
  22734. },
  22735. "metadata": {
  22736. "type": "object"
  22737. },
  22738. "type": {
  22739. "type": "string",
  22740. "enum": ["session.status"]
  22741. },
  22742. "location": {
  22743. "$ref": "#/components/schemas/Location.Ref"
  22744. },
  22745. "data": {
  22746. "type": "object",
  22747. "properties": {
  22748. "sessionID": {
  22749. "type": "string",
  22750. "allOf": [
  22751. {
  22752. "pattern": "^ses"
  22753. }
  22754. ]
  22755. },
  22756. "status": {
  22757. "$ref": "#/components/schemas/SessionStatus"
  22758. }
  22759. },
  22760. "required": ["sessionID", "status"],
  22761. "additionalProperties": false
  22762. }
  22763. },
  22764. "required": ["id", "created", "type", "data"],
  22765. "additionalProperties": false
  22766. },
  22767. "session.idle": {
  22768. "type": "object",
  22769. "properties": {
  22770. "id": {
  22771. "type": "string",
  22772. "allOf": [
  22773. {
  22774. "pattern": "^evt_"
  22775. }
  22776. ]
  22777. },
  22778. "created": {
  22779. "type": "number"
  22780. },
  22781. "metadata": {
  22782. "type": "object"
  22783. },
  22784. "type": {
  22785. "type": "string",
  22786. "enum": ["session.idle"]
  22787. },
  22788. "location": {
  22789. "$ref": "#/components/schemas/Location.Ref"
  22790. },
  22791. "data": {
  22792. "type": "object",
  22793. "properties": {
  22794. "sessionID": {
  22795. "type": "string",
  22796. "allOf": [
  22797. {
  22798. "pattern": "^ses"
  22799. }
  22800. ]
  22801. }
  22802. },
  22803. "required": ["sessionID"],
  22804. "additionalProperties": false
  22805. }
  22806. },
  22807. "required": ["id", "created", "type", "data"],
  22808. "additionalProperties": false
  22809. },
  22810. "tui.prompt.append": {
  22811. "type": "object",
  22812. "properties": {
  22813. "id": {
  22814. "type": "string",
  22815. "allOf": [
  22816. {
  22817. "pattern": "^evt_"
  22818. }
  22819. ]
  22820. },
  22821. "created": {
  22822. "type": "number"
  22823. },
  22824. "metadata": {
  22825. "type": "object"
  22826. },
  22827. "type": {
  22828. "type": "string",
  22829. "enum": ["tui.prompt.append"]
  22830. },
  22831. "location": {
  22832. "$ref": "#/components/schemas/Location.Ref"
  22833. },
  22834. "data": {
  22835. "type": "object",
  22836. "properties": {
  22837. "text": {
  22838. "type": "string"
  22839. }
  22840. },
  22841. "required": ["text"],
  22842. "additionalProperties": false
  22843. }
  22844. },
  22845. "required": ["id", "created", "type", "data"],
  22846. "additionalProperties": false
  22847. },
  22848. "tui.command.execute": {
  22849. "type": "object",
  22850. "properties": {
  22851. "id": {
  22852. "type": "string",
  22853. "allOf": [
  22854. {
  22855. "pattern": "^evt_"
  22856. }
  22857. ]
  22858. },
  22859. "created": {
  22860. "type": "number"
  22861. },
  22862. "metadata": {
  22863. "type": "object"
  22864. },
  22865. "type": {
  22866. "type": "string",
  22867. "enum": ["tui.command.execute"]
  22868. },
  22869. "location": {
  22870. "$ref": "#/components/schemas/Location.Ref"
  22871. },
  22872. "data": {
  22873. "type": "object",
  22874. "properties": {
  22875. "command": {
  22876. "anyOf": [
  22877. {
  22878. "type": "string",
  22879. "enum": [
  22880. "session.list",
  22881. "session.new",
  22882. "session.share",
  22883. "session.interrupt",
  22884. "session.background",
  22885. "session.compact",
  22886. "session.page.up",
  22887. "session.page.down",
  22888. "session.line.up",
  22889. "session.line.down",
  22890. "session.half.page.up",
  22891. "session.half.page.down",
  22892. "session.first",
  22893. "session.last",
  22894. "prompt.clear",
  22895. "prompt.submit",
  22896. "agent.cycle"
  22897. ]
  22898. },
  22899. {
  22900. "type": "string"
  22901. }
  22902. ]
  22903. }
  22904. },
  22905. "required": ["command"],
  22906. "additionalProperties": false
  22907. }
  22908. },
  22909. "required": ["id", "created", "type", "data"],
  22910. "additionalProperties": false
  22911. },
  22912. "tui.toast.show": {
  22913. "type": "object",
  22914. "properties": {
  22915. "id": {
  22916. "type": "string",
  22917. "allOf": [
  22918. {
  22919. "pattern": "^evt_"
  22920. }
  22921. ]
  22922. },
  22923. "created": {
  22924. "type": "number"
  22925. },
  22926. "metadata": {
  22927. "type": "object"
  22928. },
  22929. "type": {
  22930. "type": "string",
  22931. "enum": ["tui.toast.show"]
  22932. },
  22933. "location": {
  22934. "$ref": "#/components/schemas/Location.Ref"
  22935. },
  22936. "data": {
  22937. "type": "object",
  22938. "properties": {
  22939. "title": {
  22940. "type": "string"
  22941. },
  22942. "message": {
  22943. "type": "string"
  22944. },
  22945. "variant": {
  22946. "type": "string",
  22947. "enum": ["info", "success", "warning", "error"]
  22948. },
  22949. "duration": {
  22950. "anyOf": [
  22951. {
  22952. "type": "integer",
  22953. "allOf": [
  22954. {
  22955. "exclusiveMinimum": 0
  22956. }
  22957. ]
  22958. },
  22959. {
  22960. "type": "null"
  22961. }
  22962. ]
  22963. }
  22964. },
  22965. "required": ["message", "variant"],
  22966. "additionalProperties": false
  22967. }
  22968. },
  22969. "required": ["id", "created", "type", "data"],
  22970. "additionalProperties": false
  22971. },
  22972. "tui.session.select": {
  22973. "type": "object",
  22974. "properties": {
  22975. "id": {
  22976. "type": "string",
  22977. "allOf": [
  22978. {
  22979. "pattern": "^evt_"
  22980. }
  22981. ]
  22982. },
  22983. "created": {
  22984. "type": "number"
  22985. },
  22986. "metadata": {
  22987. "type": "object"
  22988. },
  22989. "type": {
  22990. "type": "string",
  22991. "enum": ["tui.session.select"]
  22992. },
  22993. "location": {
  22994. "$ref": "#/components/schemas/Location.Ref"
  22995. },
  22996. "data": {
  22997. "type": "object",
  22998. "properties": {
  22999. "sessionID": {
  23000. "type": "string",
  23001. "allOf": [
  23002. {
  23003. "pattern": "^ses",
  23004. "description": "Session ID to navigate to"
  23005. }
  23006. ]
  23007. }
  23008. },
  23009. "required": ["sessionID"],
  23010. "additionalProperties": false
  23011. }
  23012. },
  23013. "required": ["id", "created", "type", "data"],
  23014. "additionalProperties": false
  23015. },
  23016. "installation.updated": {
  23017. "type": "object",
  23018. "properties": {
  23019. "id": {
  23020. "type": "string",
  23021. "allOf": [
  23022. {
  23023. "pattern": "^evt_"
  23024. }
  23025. ]
  23026. },
  23027. "created": {
  23028. "type": "number"
  23029. },
  23030. "metadata": {
  23031. "type": "object"
  23032. },
  23033. "type": {
  23034. "type": "string",
  23035. "enum": ["installation.updated"]
  23036. },
  23037. "location": {
  23038. "$ref": "#/components/schemas/Location.Ref"
  23039. },
  23040. "data": {
  23041. "type": "object",
  23042. "properties": {
  23043. "version": {
  23044. "type": "string"
  23045. }
  23046. },
  23047. "required": ["version"],
  23048. "additionalProperties": false
  23049. }
  23050. },
  23051. "required": ["id", "created", "type", "data"],
  23052. "additionalProperties": false
  23053. },
  23054. "installation.update-available": {
  23055. "type": "object",
  23056. "properties": {
  23057. "id": {
  23058. "type": "string",
  23059. "allOf": [
  23060. {
  23061. "pattern": "^evt_"
  23062. }
  23063. ]
  23064. },
  23065. "created": {
  23066. "type": "number"
  23067. },
  23068. "metadata": {
  23069. "type": "object"
  23070. },
  23071. "type": {
  23072. "type": "string",
  23073. "enum": ["installation.update-available"]
  23074. },
  23075. "location": {
  23076. "$ref": "#/components/schemas/Location.Ref"
  23077. },
  23078. "data": {
  23079. "type": "object",
  23080. "properties": {
  23081. "version": {
  23082. "type": "string"
  23083. }
  23084. },
  23085. "required": ["version"],
  23086. "additionalProperties": false
  23087. }
  23088. },
  23089. "required": ["id", "created", "type", "data"],
  23090. "additionalProperties": false
  23091. },
  23092. "vcs.branch.updated": {
  23093. "type": "object",
  23094. "properties": {
  23095. "id": {
  23096. "type": "string",
  23097. "allOf": [
  23098. {
  23099. "pattern": "^evt_"
  23100. }
  23101. ]
  23102. },
  23103. "created": {
  23104. "type": "number"
  23105. },
  23106. "metadata": {
  23107. "type": "object"
  23108. },
  23109. "type": {
  23110. "type": "string",
  23111. "enum": ["vcs.branch.updated"]
  23112. },
  23113. "location": {
  23114. "$ref": "#/components/schemas/Location.Ref"
  23115. },
  23116. "data": {
  23117. "type": "object",
  23118. "properties": {
  23119. "branch": {
  23120. "type": "string"
  23121. }
  23122. },
  23123. "additionalProperties": false
  23124. }
  23125. },
  23126. "required": ["id", "created", "type", "data"],
  23127. "additionalProperties": false
  23128. },
  23129. "mcp.status.changed": {
  23130. "type": "object",
  23131. "properties": {
  23132. "id": {
  23133. "type": "string",
  23134. "allOf": [
  23135. {
  23136. "pattern": "^evt_"
  23137. }
  23138. ]
  23139. },
  23140. "created": {
  23141. "type": "number"
  23142. },
  23143. "metadata": {
  23144. "type": "object"
  23145. },
  23146. "type": {
  23147. "type": "string",
  23148. "enum": ["mcp.status.changed"]
  23149. },
  23150. "location": {
  23151. "$ref": "#/components/schemas/Location.Ref"
  23152. },
  23153. "data": {
  23154. "type": "object",
  23155. "properties": {
  23156. "server": {
  23157. "type": "string"
  23158. }
  23159. },
  23160. "required": ["server"],
  23161. "additionalProperties": false
  23162. }
  23163. },
  23164. "required": ["id", "created", "type", "data"],
  23165. "additionalProperties": false
  23166. },
  23167. "mcp.resources.changed": {
  23168. "type": "object",
  23169. "properties": {
  23170. "id": {
  23171. "type": "string",
  23172. "allOf": [
  23173. {
  23174. "pattern": "^evt_"
  23175. }
  23176. ]
  23177. },
  23178. "created": {
  23179. "type": "number"
  23180. },
  23181. "metadata": {
  23182. "type": "object"
  23183. },
  23184. "type": {
  23185. "type": "string",
  23186. "enum": ["mcp.resources.changed"]
  23187. },
  23188. "location": {
  23189. "$ref": "#/components/schemas/Location.Ref"
  23190. },
  23191. "data": {
  23192. "type": "object",
  23193. "properties": {
  23194. "server": {
  23195. "type": "string"
  23196. }
  23197. },
  23198. "required": ["server"],
  23199. "additionalProperties": false
  23200. }
  23201. },
  23202. "required": ["id", "created", "type", "data"],
  23203. "additionalProperties": false
  23204. },
  23205. "V2Event.server.connected": {
  23206. "type": "object",
  23207. "properties": {
  23208. "id": {
  23209. "type": "string",
  23210. "allOf": [
  23211. {
  23212. "pattern": "^evt_"
  23213. }
  23214. ]
  23215. },
  23216. "metadata": {
  23217. "anyOf": [
  23218. {
  23219. "type": "object"
  23220. },
  23221. {
  23222. "type": "null"
  23223. }
  23224. ]
  23225. },
  23226. "location": {
  23227. "anyOf": [
  23228. {
  23229. "$ref": "#/components/schemas/Location.Ref"
  23230. },
  23231. {
  23232. "type": "null"
  23233. }
  23234. ]
  23235. },
  23236. "type": {
  23237. "type": "string",
  23238. "enum": ["server.connected"]
  23239. },
  23240. "data": {
  23241. "anyOf": [
  23242. {
  23243. "type": "object"
  23244. },
  23245. {
  23246. "type": "array"
  23247. }
  23248. ]
  23249. }
  23250. },
  23251. "required": ["id", "type", "data"],
  23252. "additionalProperties": false
  23253. },
  23254. "V2Event": {
  23255. "anyOf": [
  23256. {
  23257. "$ref": "#/components/schemas/models-dev.refreshed"
  23258. },
  23259. {
  23260. "$ref": "#/components/schemas/integration.updated"
  23261. },
  23262. {
  23263. "$ref": "#/components/schemas/integration.connection.updated"
  23264. },
  23265. {
  23266. "$ref": "#/components/schemas/catalog.updated"
  23267. },
  23268. {
  23269. "$ref": "#/components/schemas/agent.updated"
  23270. },
  23271. {
  23272. "$ref": "#/components/schemas/session.created"
  23273. },
  23274. {
  23275. "$ref": "#/components/schemas/session.agent.selected"
  23276. },
  23277. {
  23278. "$ref": "#/components/schemas/session.model.selected"
  23279. },
  23280. {
  23281. "$ref": "#/components/schemas/session.moved"
  23282. },
  23283. {
  23284. "$ref": "#/components/schemas/session.renamed"
  23285. },
  23286. {
  23287. "$ref": "#/components/schemas/session.usage.updated"
  23288. },
  23289. {
  23290. "$ref": "#/components/schemas/session.deleted"
  23291. },
  23292. {
  23293. "$ref": "#/components/schemas/session.forked"
  23294. },
  23295. {
  23296. "$ref": "#/components/schemas/session.input.promoted"
  23297. },
  23298. {
  23299. "$ref": "#/components/schemas/session.input.admitted"
  23300. },
  23301. {
  23302. "$ref": "#/components/schemas/session.input.cancelled"
  23303. },
  23304. {
  23305. "$ref": "#/components/schemas/session.input.steered"
  23306. },
  23307. {
  23308. "$ref": "#/components/schemas/session.input.queued"
  23309. },
  23310. {
  23311. "$ref": "#/components/schemas/session.execution.started"
  23312. },
  23313. {
  23314. "$ref": "#/components/schemas/session.execution.succeeded"
  23315. },
  23316. {
  23317. "$ref": "#/components/schemas/session.execution.failed"
  23318. },
  23319. {
  23320. "$ref": "#/components/schemas/session.execution.interrupted"
  23321. },
  23322. {
  23323. "$ref": "#/components/schemas/session.instructions.updated"
  23324. },
  23325. {
  23326. "$ref": "#/components/schemas/session.synthetic"
  23327. },
  23328. {
  23329. "$ref": "#/components/schemas/session.skill.activated"
  23330. },
  23331. {
  23332. "$ref": "#/components/schemas/session.shell.started"
  23333. },
  23334. {
  23335. "$ref": "#/components/schemas/session.shell.ended"
  23336. },
  23337. {
  23338. "$ref": "#/components/schemas/session.step.started"
  23339. },
  23340. {
  23341. "$ref": "#/components/schemas/session.step.ended"
  23342. },
  23343. {
  23344. "$ref": "#/components/schemas/session.step.failed"
  23345. },
  23346. {
  23347. "$ref": "#/components/schemas/session.text.started"
  23348. },
  23349. {
  23350. "$ref": "#/components/schemas/session.text.delta"
  23351. },
  23352. {
  23353. "$ref": "#/components/schemas/session.text.ended"
  23354. },
  23355. {
  23356. "$ref": "#/components/schemas/session.reasoning.started"
  23357. },
  23358. {
  23359. "$ref": "#/components/schemas/session.reasoning.delta"
  23360. },
  23361. {
  23362. "$ref": "#/components/schemas/session.reasoning.ended"
  23363. },
  23364. {
  23365. "$ref": "#/components/schemas/session.tool.input.started"
  23366. },
  23367. {
  23368. "$ref": "#/components/schemas/session.tool.input.delta"
  23369. },
  23370. {
  23371. "$ref": "#/components/schemas/session.tool.input.ended"
  23372. },
  23373. {
  23374. "$ref": "#/components/schemas/session.tool.called"
  23375. },
  23376. {
  23377. "$ref": "#/components/schemas/session.tool.progress"
  23378. },
  23379. {
  23380. "$ref": "#/components/schemas/session.tool.success"
  23381. },
  23382. {
  23383. "$ref": "#/components/schemas/session.tool.failed"
  23384. },
  23385. {
  23386. "$ref": "#/components/schemas/session.retry.scheduled"
  23387. },
  23388. {
  23389. "$ref": "#/components/schemas/session.compaction.admitted"
  23390. },
  23391. {
  23392. "$ref": "#/components/schemas/session.compaction.started"
  23393. },
  23394. {
  23395. "$ref": "#/components/schemas/session.compaction.delta"
  23396. },
  23397. {
  23398. "$ref": "#/components/schemas/session.compaction.ended"
  23399. },
  23400. {
  23401. "$ref": "#/components/schemas/session.compaction.failed"
  23402. },
  23403. {
  23404. "$ref": "#/components/schemas/session.revert.staged"
  23405. },
  23406. {
  23407. "$ref": "#/components/schemas/session.revert.cleared"
  23408. },
  23409. {
  23410. "$ref": "#/components/schemas/session.revert.committed"
  23411. },
  23412. {
  23413. "$ref": "#/components/schemas/filesystem.changed"
  23414. },
  23415. {
  23416. "$ref": "#/components/schemas/reference.updated"
  23417. },
  23418. {
  23419. "$ref": "#/components/schemas/permission.asked"
  23420. },
  23421. {
  23422. "$ref": "#/components/schemas/permission.replied"
  23423. },
  23424. {
  23425. "$ref": "#/components/schemas/plugin.added"
  23426. },
  23427. {
  23428. "$ref": "#/components/schemas/plugin.updated"
  23429. },
  23430. {
  23431. "$ref": "#/components/schemas/project.directories.updated"
  23432. },
  23433. {
  23434. "$ref": "#/components/schemas/command.updated"
  23435. },
  23436. {
  23437. "$ref": "#/components/schemas/config.updated"
  23438. },
  23439. {
  23440. "$ref": "#/components/schemas/skill.updated"
  23441. },
  23442. {
  23443. "$ref": "#/components/schemas/pty.created"
  23444. },
  23445. {
  23446. "$ref": "#/components/schemas/pty.updated"
  23447. },
  23448. {
  23449. "$ref": "#/components/schemas/pty.exited"
  23450. },
  23451. {
  23452. "$ref": "#/components/schemas/pty.deleted"
  23453. },
  23454. {
  23455. "$ref": "#/components/schemas/shell.created"
  23456. },
  23457. {
  23458. "$ref": "#/components/schemas/shell.exited"
  23459. },
  23460. {
  23461. "$ref": "#/components/schemas/shell.deleted"
  23462. },
  23463. {
  23464. "$ref": "#/components/schemas/question.asked"
  23465. },
  23466. {
  23467. "$ref": "#/components/schemas/question.replied"
  23468. },
  23469. {
  23470. "$ref": "#/components/schemas/question.rejected"
  23471. },
  23472. {
  23473. "$ref": "#/components/schemas/form.created"
  23474. },
  23475. {
  23476. "$ref": "#/components/schemas/form.replied"
  23477. },
  23478. {
  23479. "$ref": "#/components/schemas/form.cancelled"
  23480. },
  23481. {
  23482. "$ref": "#/components/schemas/websearch.updated"
  23483. },
  23484. {
  23485. "$ref": "#/components/schemas/session.status"
  23486. },
  23487. {
  23488. "$ref": "#/components/schemas/session.idle"
  23489. },
  23490. {
  23491. "$ref": "#/components/schemas/tui.prompt.append"
  23492. },
  23493. {
  23494. "$ref": "#/components/schemas/tui.command.execute"
  23495. },
  23496. {
  23497. "$ref": "#/components/schemas/tui.toast.show"
  23498. },
  23499. {
  23500. "$ref": "#/components/schemas/tui.session.select"
  23501. },
  23502. {
  23503. "$ref": "#/components/schemas/installation.updated"
  23504. },
  23505. {
  23506. "$ref": "#/components/schemas/installation.update-available"
  23507. },
  23508. {
  23509. "$ref": "#/components/schemas/vcs.branch.updated"
  23510. },
  23511. {
  23512. "$ref": "#/components/schemas/mcp.status.changed"
  23513. },
  23514. {
  23515. "$ref": "#/components/schemas/mcp.resources.changed"
  23516. },
  23517. {
  23518. "$ref": "#/components/schemas/V2Event.server.connected"
  23519. }
  23520. ]
  23521. },
  23522. "V2EventJsonString": {
  23523. "type": "string",
  23524. "contentSchema": {
  23525. "$ref": "#/components/schemas/V2Event"
  23526. },
  23527. "contentMediaType": "application/json"
  23528. },
  23529. "PtyNotFoundError": {
  23530. "type": "object",
  23531. "properties": {
  23532. "_tag": {
  23533. "type": "string",
  23534. "enum": ["PtyNotFoundError"]
  23535. },
  23536. "ptyID": {
  23537. "type": "string"
  23538. },
  23539. "message": {
  23540. "type": "string"
  23541. }
  23542. },
  23543. "required": ["_tag", "ptyID", "message"],
  23544. "additionalProperties": false
  23545. },
  23546. "PtyTicket.ConnectToken": {
  23547. "type": "object",
  23548. "properties": {
  23549. "ticket": {
  23550. "type": "string"
  23551. },
  23552. "expires_in": {
  23553. "type": "integer",
  23554. "allOf": [
  23555. {
  23556. "exclusiveMinimum": 0
  23557. }
  23558. ]
  23559. }
  23560. },
  23561. "required": ["ticket", "expires_in"],
  23562. "additionalProperties": false
  23563. },
  23564. "ForbiddenError": {
  23565. "type": "object",
  23566. "properties": {
  23567. "_tag": {
  23568. "type": "string",
  23569. "enum": ["ForbiddenError"]
  23570. },
  23571. "message": {
  23572. "type": "string"
  23573. }
  23574. },
  23575. "required": ["_tag", "message"],
  23576. "additionalProperties": false
  23577. },
  23578. "Shell.Info1": {
  23579. "type": "object",
  23580. "properties": {
  23581. "id": {
  23582. "type": "string",
  23583. "allOf": [
  23584. {
  23585. "pattern": "^sh_"
  23586. }
  23587. ]
  23588. },
  23589. "status": {
  23590. "type": "string",
  23591. "enum": ["running", "exited", "timeout", "killed"]
  23592. },
  23593. "command": {
  23594. "type": "string"
  23595. },
  23596. "cwd": {
  23597. "type": "string"
  23598. },
  23599. "shell": {
  23600. "type": "string"
  23601. },
  23602. "file": {
  23603. "type": "string"
  23604. },
  23605. "pid": {
  23606. "type": "integer",
  23607. "allOf": [
  23608. {
  23609. "minimum": 0
  23610. }
  23611. ]
  23612. },
  23613. "exit": {
  23614. "type": "number"
  23615. },
  23616. "metadata": {
  23617. "type": "object"
  23618. },
  23619. "time": {
  23620. "type": "object",
  23621. "properties": {
  23622. "started": {
  23623. "type": "number"
  23624. },
  23625. "completed": {
  23626. "type": "number"
  23627. }
  23628. },
  23629. "required": ["started"],
  23630. "additionalProperties": false
  23631. }
  23632. },
  23633. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  23634. "additionalProperties": false
  23635. },
  23636. "ShellNotFoundError": {
  23637. "type": "object",
  23638. "properties": {
  23639. "_tag": {
  23640. "type": "string",
  23641. "enum": ["ShellNotFoundError"]
  23642. },
  23643. "id": {
  23644. "type": "string"
  23645. },
  23646. "message": {
  23647. "type": "string"
  23648. }
  23649. },
  23650. "required": ["_tag", "id", "message"],
  23651. "additionalProperties": false
  23652. },
  23653. "Question.Request": {
  23654. "type": "object",
  23655. "properties": {
  23656. "id": {
  23657. "type": "string",
  23658. "allOf": [
  23659. {
  23660. "pattern": "^que"
  23661. }
  23662. ]
  23663. },
  23664. "sessionID": {
  23665. "type": "string",
  23666. "allOf": [
  23667. {
  23668. "pattern": "^ses"
  23669. }
  23670. ]
  23671. },
  23672. "questions": {
  23673. "type": "array",
  23674. "items": {
  23675. "$ref": "#/components/schemas/Question.Info"
  23676. },
  23677. "description": "Questions to ask"
  23678. },
  23679. "tool": {
  23680. "$ref": "#/components/schemas/Question.Tool"
  23681. }
  23682. },
  23683. "required": ["id", "sessionID", "questions"],
  23684. "additionalProperties": false
  23685. },
  23686. "Question.Reply": {
  23687. "type": "object",
  23688. "properties": {
  23689. "answers": {
  23690. "type": "array",
  23691. "items": {
  23692. "$ref": "#/components/schemas/Question.Answer"
  23693. },
  23694. "description": "User answers in order of questions (each answer is an array of selected labels)"
  23695. }
  23696. },
  23697. "required": ["answers"],
  23698. "additionalProperties": false
  23699. },
  23700. "QuestionNotFoundError": {
  23701. "type": "object",
  23702. "properties": {
  23703. "_tag": {
  23704. "type": "string",
  23705. "enum": ["QuestionNotFoundError"]
  23706. },
  23707. "requestID": {
  23708. "type": "string"
  23709. },
  23710. "message": {
  23711. "type": "string"
  23712. }
  23713. },
  23714. "required": ["_tag", "requestID", "message"],
  23715. "additionalProperties": false
  23716. },
  23717. "Reference.LocalSource": {
  23718. "type": "object",
  23719. "properties": {
  23720. "type": {
  23721. "type": "string",
  23722. "enum": ["local"]
  23723. },
  23724. "path": {
  23725. "type": "string"
  23726. },
  23727. "description": {
  23728. "type": "string"
  23729. },
  23730. "hidden": {
  23731. "type": "boolean"
  23732. }
  23733. },
  23734. "required": ["type", "path"],
  23735. "additionalProperties": false
  23736. },
  23737. "Reference.GitSource": {
  23738. "type": "object",
  23739. "properties": {
  23740. "type": {
  23741. "type": "string",
  23742. "enum": ["git"]
  23743. },
  23744. "repository": {
  23745. "type": "string"
  23746. },
  23747. "branch": {
  23748. "type": "string"
  23749. },
  23750. "description": {
  23751. "type": "string"
  23752. },
  23753. "hidden": {
  23754. "type": "boolean"
  23755. }
  23756. },
  23757. "required": ["type", "repository"],
  23758. "additionalProperties": false
  23759. },
  23760. "Reference.Source": {
  23761. "anyOf": [
  23762. {
  23763. "$ref": "#/components/schemas/Reference.LocalSource"
  23764. },
  23765. {
  23766. "$ref": "#/components/schemas/Reference.GitSource"
  23767. }
  23768. ]
  23769. },
  23770. "Reference.Info": {
  23771. "type": "object",
  23772. "properties": {
  23773. "name": {
  23774. "type": "string"
  23775. },
  23776. "path": {
  23777. "type": "string"
  23778. },
  23779. "description": {
  23780. "type": "string"
  23781. },
  23782. "hidden": {
  23783. "type": "boolean"
  23784. },
  23785. "source": {
  23786. "$ref": "#/components/schemas/Reference.Source"
  23787. }
  23788. },
  23789. "required": ["name", "path", "source"],
  23790. "additionalProperties": false
  23791. },
  23792. "ProjectCopy.Copy": {
  23793. "type": "object",
  23794. "properties": {
  23795. "directory": {
  23796. "type": "string"
  23797. }
  23798. },
  23799. "required": ["directory"],
  23800. "additionalProperties": false
  23801. },
  23802. "ProjectCopyError": {
  23803. "type": "object",
  23804. "properties": {
  23805. "name": {
  23806. "type": "string",
  23807. "enum": ["ProjectCopyError"]
  23808. },
  23809. "data": {
  23810. "type": "object",
  23811. "properties": {
  23812. "message": {
  23813. "type": "string"
  23814. },
  23815. "forceRequired": {
  23816. "anyOf": [
  23817. {
  23818. "type": "boolean"
  23819. },
  23820. {
  23821. "type": "null"
  23822. }
  23823. ]
  23824. }
  23825. },
  23826. "required": ["message"],
  23827. "additionalProperties": false
  23828. }
  23829. },
  23830. "required": ["name", "data"],
  23831. "additionalProperties": false
  23832. },
  23833. "Vcs.Branch": {
  23834. "type": "object",
  23835. "properties": {
  23836. "current": {
  23837. "type": "string"
  23838. },
  23839. "default": {
  23840. "type": "string"
  23841. }
  23842. },
  23843. "additionalProperties": false
  23844. },
  23845. "Vcs.Info": {
  23846. "type": "object",
  23847. "properties": {
  23848. "branch": {
  23849. "$ref": "#/components/schemas/Vcs.Branch"
  23850. }
  23851. },
  23852. "required": ["branch"],
  23853. "additionalProperties": false
  23854. },
  23855. "Vcs.FileStatus": {
  23856. "type": "object",
  23857. "properties": {
  23858. "file": {
  23859. "type": "string"
  23860. },
  23861. "additions": {
  23862. "type": "integer",
  23863. "allOf": [
  23864. {
  23865. "minimum": 0
  23866. }
  23867. ]
  23868. },
  23869. "deletions": {
  23870. "type": "integer",
  23871. "allOf": [
  23872. {
  23873. "minimum": 0
  23874. }
  23875. ]
  23876. },
  23877. "status": {
  23878. "type": "string",
  23879. "enum": ["added", "deleted", "modified"]
  23880. }
  23881. },
  23882. "required": ["file", "additions", "deletions", "status"],
  23883. "additionalProperties": false
  23884. },
  23885. "Vcs.Mode": {
  23886. "type": "string",
  23887. "enum": ["working", "branch"]
  23888. },
  23889. "WebSearch.Provider": {
  23890. "type": "object",
  23891. "properties": {
  23892. "id": {
  23893. "type": "string"
  23894. },
  23895. "name": {
  23896. "type": "string"
  23897. }
  23898. },
  23899. "required": ["id", "name"],
  23900. "additionalProperties": false
  23901. },
  23902. "WebSearch.Result": {
  23903. "type": "object",
  23904. "properties": {
  23905. "url": {
  23906. "type": "string"
  23907. },
  23908. "title": {
  23909. "type": "string"
  23910. },
  23911. "content": {
  23912. "type": "string"
  23913. },
  23914. "time": {
  23915. "type": "object",
  23916. "properties": {
  23917. "published": {
  23918. "type": "number"
  23919. }
  23920. },
  23921. "additionalProperties": false
  23922. }
  23923. },
  23924. "required": ["url", "time"],
  23925. "additionalProperties": false
  23926. },
  23927. "WebSearch.Response": {
  23928. "type": "object",
  23929. "properties": {
  23930. "providerID": {
  23931. "type": "string"
  23932. },
  23933. "results": {
  23934. "type": "array",
  23935. "items": {
  23936. "$ref": "#/components/schemas/WebSearch.Result"
  23937. }
  23938. }
  23939. },
  23940. "required": ["providerID", "results"],
  23941. "additionalProperties": false
  23942. },
  23943. "Config.Agent": {
  23944. "type": "object",
  23945. "properties": {
  23946. "model": {
  23947. "anyOf": [
  23948. {
  23949. "type": "string",
  23950. "allOf": [
  23951. {
  23952. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23953. }
  23954. ]
  23955. },
  23956. {
  23957. "type": "object",
  23958. "properties": {
  23959. "providerID": {
  23960. "type": "string",
  23961. "allOf": [
  23962. {
  23963. "pattern": "^[^/#]+$"
  23964. }
  23965. ]
  23966. },
  23967. "model": {
  23968. "type": "string",
  23969. "allOf": [
  23970. {
  23971. "pattern": "^[^#]+$"
  23972. }
  23973. ]
  23974. },
  23975. "variant": {
  23976. "type": "string",
  23977. "allOf": [
  23978. {
  23979. "pattern": "^[^#]+$"
  23980. }
  23981. ]
  23982. }
  23983. },
  23984. "required": ["providerID", "model"],
  23985. "additionalProperties": false
  23986. }
  23987. ]
  23988. },
  23989. "request": {
  23990. "type": "object",
  23991. "properties": {
  23992. "headers": {
  23993. "type": "object",
  23994. "additionalProperties": {
  23995. "type": "string"
  23996. }
  23997. },
  23998. "body": {
  23999. "type": "object"
  24000. }
  24001. },
  24002. "additionalProperties": false
  24003. },
  24004. "system": {
  24005. "type": "string"
  24006. },
  24007. "description": {
  24008. "type": "string"
  24009. },
  24010. "mode": {
  24011. "type": "string",
  24012. "enum": ["subagent", "primary", "all"]
  24013. },
  24014. "hidden": {
  24015. "type": "boolean"
  24016. },
  24017. "color": {
  24018. "type": "string",
  24019. "allOf": [
  24020. {
  24021. "pattern": "^#[0-9a-fA-F]{6}$"
  24022. }
  24023. ]
  24024. },
  24025. "steps": {
  24026. "type": "integer",
  24027. "allOf": [
  24028. {
  24029. "exclusiveMinimum": 0
  24030. }
  24031. ]
  24032. },
  24033. "disabled": {
  24034. "type": "boolean"
  24035. },
  24036. "permissions": {
  24037. "$ref": "#/components/schemas/Permission.Ruleset"
  24038. }
  24039. },
  24040. "additionalProperties": false
  24041. },
  24042. "Config.Formatter.Entry": {
  24043. "type": "object",
  24044. "properties": {
  24045. "disabled": {
  24046. "type": "boolean"
  24047. },
  24048. "command": {
  24049. "type": "array",
  24050. "items": {
  24051. "type": "string"
  24052. }
  24053. },
  24054. "environment": {
  24055. "type": "object",
  24056. "additionalProperties": {
  24057. "type": "string"
  24058. }
  24059. },
  24060. "extensions": {
  24061. "type": "array",
  24062. "items": {
  24063. "type": "string"
  24064. }
  24065. }
  24066. },
  24067. "additionalProperties": false
  24068. },
  24069. "Config.LSP.Server": {
  24070. "type": "object",
  24071. "properties": {
  24072. "command": {
  24073. "type": "array",
  24074. "items": {
  24075. "type": "string"
  24076. }
  24077. },
  24078. "extensions": {
  24079. "type": "array",
  24080. "items": {
  24081. "type": "string"
  24082. }
  24083. },
  24084. "disabled": {
  24085. "type": "boolean"
  24086. },
  24087. "env": {
  24088. "type": "object",
  24089. "additionalProperties": {
  24090. "type": "string"
  24091. }
  24092. },
  24093. "initialization": {
  24094. "type": "object"
  24095. }
  24096. },
  24097. "required": ["command"],
  24098. "additionalProperties": false
  24099. },
  24100. "Config.Command": {
  24101. "type": "object",
  24102. "properties": {
  24103. "template": {
  24104. "type": "string"
  24105. },
  24106. "description": {
  24107. "type": "string"
  24108. },
  24109. "agent": {
  24110. "type": "string"
  24111. },
  24112. "model": {
  24113. "anyOf": [
  24114. {
  24115. "type": "string",
  24116. "allOf": [
  24117. {
  24118. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  24119. }
  24120. ]
  24121. },
  24122. {
  24123. "type": "object",
  24124. "properties": {
  24125. "providerID": {
  24126. "type": "string",
  24127. "allOf": [
  24128. {
  24129. "pattern": "^[^/#]+$"
  24130. }
  24131. ]
  24132. },
  24133. "model": {
  24134. "type": "string",
  24135. "allOf": [
  24136. {
  24137. "pattern": "^[^#]+$"
  24138. }
  24139. ]
  24140. },
  24141. "variant": {
  24142. "type": "string",
  24143. "allOf": [
  24144. {
  24145. "pattern": "^[^#]+$"
  24146. }
  24147. ]
  24148. }
  24149. },
  24150. "required": ["providerID", "model"],
  24151. "additionalProperties": false
  24152. }
  24153. ]
  24154. },
  24155. "subtask": {
  24156. "type": "boolean"
  24157. }
  24158. },
  24159. "required": ["template"],
  24160. "additionalProperties": false
  24161. },
  24162. "Config.Reference.Git": {
  24163. "type": "object",
  24164. "properties": {
  24165. "repository": {
  24166. "type": "string"
  24167. },
  24168. "branch": {
  24169. "type": "string"
  24170. },
  24171. "description": {
  24172. "type": "string"
  24173. },
  24174. "hidden": {
  24175. "type": "boolean"
  24176. }
  24177. },
  24178. "required": ["repository"],
  24179. "additionalProperties": false
  24180. },
  24181. "Config.Reference.Local": {
  24182. "type": "object",
  24183. "properties": {
  24184. "path": {
  24185. "type": "string"
  24186. },
  24187. "description": {
  24188. "type": "string"
  24189. },
  24190. "hidden": {
  24191. "type": "boolean"
  24192. }
  24193. },
  24194. "required": ["path"],
  24195. "additionalProperties": false
  24196. },
  24197. "Config.Plugin.Entry": {
  24198. "type": "object",
  24199. "properties": {
  24200. "package": {
  24201. "type": "string"
  24202. },
  24203. "options": {
  24204. "type": "object"
  24205. }
  24206. },
  24207. "required": ["package"],
  24208. "additionalProperties": false
  24209. },
  24210. "Config.Warming": {
  24211. "type": "object",
  24212. "properties": {
  24213. "prompt": {
  24214. "type": "string"
  24215. },
  24216. "interval": {
  24217. "type": "string"
  24218. },
  24219. "duration": {
  24220. "type": "string"
  24221. }
  24222. },
  24223. "additionalProperties": false
  24224. },
  24225. "Config.Model.Cost": {
  24226. "type": "object",
  24227. "properties": {
  24228. "tier": {
  24229. "type": "object",
  24230. "properties": {
  24231. "type": {
  24232. "type": "string",
  24233. "enum": ["context"]
  24234. },
  24235. "size": {
  24236. "type": "integer"
  24237. }
  24238. },
  24239. "required": ["type", "size"],
  24240. "additionalProperties": false
  24241. },
  24242. "input": {
  24243. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24244. },
  24245. "output": {
  24246. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24247. },
  24248. "cache": {
  24249. "type": "object",
  24250. "properties": {
  24251. "read": {
  24252. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24253. },
  24254. "write": {
  24255. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24256. }
  24257. },
  24258. "additionalProperties": false
  24259. }
  24260. },
  24261. "required": ["input", "output"],
  24262. "additionalProperties": false
  24263. },
  24264. "Config.Model": {
  24265. "type": "object",
  24266. "properties": {
  24267. "modelID": {
  24268. "type": "string"
  24269. },
  24270. "family": {
  24271. "type": "string"
  24272. },
  24273. "name": {
  24274. "type": "string"
  24275. },
  24276. "compatibility": {
  24277. "$ref": "#/components/schemas/Model.Compatibility"
  24278. },
  24279. "package": {
  24280. "type": "string"
  24281. },
  24282. "settings": {
  24283. "type": "object"
  24284. },
  24285. "headers": {
  24286. "type": "object",
  24287. "additionalProperties": {
  24288. "type": "string"
  24289. }
  24290. },
  24291. "body": {
  24292. "type": "object"
  24293. },
  24294. "capabilities": {
  24295. "$ref": "#/components/schemas/Model.Capabilities"
  24296. },
  24297. "variants": {
  24298. "type": "array",
  24299. "items": {
  24300. "type": "object",
  24301. "properties": {
  24302. "id": {
  24303. "type": "string"
  24304. },
  24305. "settings": {
  24306. "type": "object"
  24307. },
  24308. "headers": {
  24309. "type": "object",
  24310. "additionalProperties": {
  24311. "type": "string"
  24312. }
  24313. },
  24314. "body": {
  24315. "type": "object"
  24316. }
  24317. },
  24318. "required": ["id"],
  24319. "additionalProperties": false
  24320. }
  24321. },
  24322. "cost": {
  24323. "anyOf": [
  24324. {
  24325. "$ref": "#/components/schemas/Config.Model.Cost"
  24326. },
  24327. {
  24328. "type": "array",
  24329. "items": {
  24330. "$ref": "#/components/schemas/Config.Model.Cost"
  24331. }
  24332. }
  24333. ]
  24334. },
  24335. "disabled": {
  24336. "type": "boolean"
  24337. },
  24338. "limit": {
  24339. "type": "object",
  24340. "properties": {
  24341. "context": {
  24342. "type": "integer"
  24343. },
  24344. "input": {
  24345. "type": "integer"
  24346. },
  24347. "output": {
  24348. "type": "integer"
  24349. }
  24350. },
  24351. "additionalProperties": false
  24352. }
  24353. },
  24354. "additionalProperties": false
  24355. },
  24356. "Config.Provider": {
  24357. "type": "object",
  24358. "properties": {
  24359. "name": {
  24360. "type": "string"
  24361. },
  24362. "env": {
  24363. "type": "array",
  24364. "items": {
  24365. "type": "string"
  24366. }
  24367. },
  24368. "package": {
  24369. "type": "string"
  24370. },
  24371. "settings": {
  24372. "type": "object"
  24373. },
  24374. "headers": {
  24375. "type": "object",
  24376. "additionalProperties": {
  24377. "type": "string"
  24378. }
  24379. },
  24380. "body": {
  24381. "type": "object"
  24382. },
  24383. "models": {
  24384. "type": "object",
  24385. "additionalProperties": {
  24386. "$ref": "#/components/schemas/Config.Model"
  24387. }
  24388. }
  24389. },
  24390. "additionalProperties": false
  24391. },
  24392. "Config.Info": {
  24393. "type": "object",
  24394. "properties": {
  24395. "$schema": {
  24396. "type": "string"
  24397. },
  24398. "shell": {
  24399. "type": "string"
  24400. },
  24401. "model": {
  24402. "anyOf": [
  24403. {
  24404. "type": "string",
  24405. "allOf": [
  24406. {
  24407. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  24408. }
  24409. ]
  24410. },
  24411. {
  24412. "type": "object",
  24413. "properties": {
  24414. "providerID": {
  24415. "type": "string",
  24416. "allOf": [
  24417. {
  24418. "pattern": "^[^/#]+$"
  24419. }
  24420. ]
  24421. },
  24422. "model": {
  24423. "type": "string",
  24424. "allOf": [
  24425. {
  24426. "pattern": "^[^#]+$"
  24427. }
  24428. ]
  24429. },
  24430. "variant": {
  24431. "type": "string",
  24432. "allOf": [
  24433. {
  24434. "pattern": "^[^#]+$"
  24435. }
  24436. ]
  24437. }
  24438. },
  24439. "required": ["providerID", "model"],
  24440. "additionalProperties": false
  24441. }
  24442. ]
  24443. },
  24444. "default_agent": {
  24445. "type": "string"
  24446. },
  24447. "autoupdate": {
  24448. "anyOf": [
  24449. {
  24450. "type": "boolean"
  24451. },
  24452. {
  24453. "type": "string",
  24454. "enum": ["notify"]
  24455. }
  24456. ]
  24457. },
  24458. "share": {
  24459. "type": "string",
  24460. "enum": ["manual", "auto", "disabled"]
  24461. },
  24462. "enterprise": {
  24463. "type": "object",
  24464. "properties": {
  24465. "url": {
  24466. "type": "string"
  24467. }
  24468. },
  24469. "additionalProperties": false
  24470. },
  24471. "username": {
  24472. "type": "string"
  24473. },
  24474. "permissions": {
  24475. "$ref": "#/components/schemas/Permission.Ruleset"
  24476. },
  24477. "agents": {
  24478. "type": "object",
  24479. "additionalProperties": {
  24480. "$ref": "#/components/schemas/Config.Agent"
  24481. }
  24482. },
  24483. "snapshots": {
  24484. "type": "boolean"
  24485. },
  24486. "watcher": {
  24487. "type": "object",
  24488. "properties": {
  24489. "ignore": {
  24490. "type": "array",
  24491. "items": {
  24492. "type": "string"
  24493. }
  24494. }
  24495. },
  24496. "additionalProperties": false
  24497. },
  24498. "formatter": {
  24499. "anyOf": [
  24500. {
  24501. "type": "boolean"
  24502. },
  24503. {
  24504. "type": "object",
  24505. "additionalProperties": {
  24506. "$ref": "#/components/schemas/Config.Formatter.Entry"
  24507. }
  24508. }
  24509. ]
  24510. },
  24511. "lsp": {
  24512. "anyOf": [
  24513. {
  24514. "type": "boolean"
  24515. },
  24516. {
  24517. "type": "object",
  24518. "additionalProperties": {
  24519. "anyOf": [
  24520. {
  24521. "type": "object",
  24522. "properties": {
  24523. "disabled": {
  24524. "type": "boolean",
  24525. "enum": [true]
  24526. }
  24527. },
  24528. "required": ["disabled"],
  24529. "additionalProperties": false
  24530. },
  24531. {
  24532. "$ref": "#/components/schemas/Config.LSP.Server"
  24533. }
  24534. ]
  24535. }
  24536. }
  24537. ]
  24538. },
  24539. "media": {
  24540. "type": "object",
  24541. "properties": {
  24542. "image": {
  24543. "type": "object",
  24544. "properties": {
  24545. "auto_resize": {
  24546. "type": "boolean"
  24547. },
  24548. "max_width": {
  24549. "type": "integer",
  24550. "allOf": [
  24551. {
  24552. "exclusiveMinimum": 0
  24553. }
  24554. ]
  24555. },
  24556. "max_height": {
  24557. "type": "integer",
  24558. "allOf": [
  24559. {
  24560. "exclusiveMinimum": 0
  24561. }
  24562. ]
  24563. },
  24564. "max_base64_bytes": {
  24565. "type": "integer",
  24566. "allOf": [
  24567. {
  24568. "exclusiveMinimum": 0
  24569. }
  24570. ]
  24571. }
  24572. },
  24573. "additionalProperties": false
  24574. }
  24575. },
  24576. "additionalProperties": false
  24577. },
  24578. "tool_output": {
  24579. "type": "object",
  24580. "properties": {
  24581. "max_lines": {
  24582. "type": "integer",
  24583. "allOf": [
  24584. {
  24585. "exclusiveMinimum": 0
  24586. }
  24587. ]
  24588. },
  24589. "max_bytes": {
  24590. "type": "integer",
  24591. "allOf": [
  24592. {
  24593. "exclusiveMinimum": 0
  24594. }
  24595. ]
  24596. }
  24597. },
  24598. "additionalProperties": false
  24599. },
  24600. "mcp": {
  24601. "type": "object",
  24602. "properties": {
  24603. "timeout": {
  24604. "type": "object",
  24605. "properties": {
  24606. "startup": {
  24607. "type": "integer",
  24608. "allOf": [
  24609. {
  24610. "exclusiveMinimum": 0
  24611. }
  24612. ]
  24613. },
  24614. "catalog": {
  24615. "type": "integer",
  24616. "allOf": [
  24617. {
  24618. "exclusiveMinimum": 0
  24619. }
  24620. ]
  24621. },
  24622. "execution": {
  24623. "type": "integer",
  24624. "allOf": [
  24625. {
  24626. "exclusiveMinimum": 0
  24627. }
  24628. ]
  24629. }
  24630. },
  24631. "additionalProperties": false
  24632. },
  24633. "servers": {
  24634. "type": "object",
  24635. "additionalProperties": {
  24636. "anyOf": [
  24637. {
  24638. "$ref": "#/components/schemas/Mcp.LocalConfig"
  24639. },
  24640. {
  24641. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  24642. }
  24643. ]
  24644. }
  24645. }
  24646. },
  24647. "additionalProperties": false
  24648. },
  24649. "compaction": {
  24650. "type": "object",
  24651. "properties": {
  24652. "auto": {
  24653. "type": "boolean"
  24654. },
  24655. "keep": {
  24656. "type": "object",
  24657. "properties": {
  24658. "tokens": {
  24659. "type": "integer",
  24660. "allOf": [
  24661. {
  24662. "minimum": 0
  24663. }
  24664. ]
  24665. }
  24666. },
  24667. "additionalProperties": false
  24668. },
  24669. "buffer": {
  24670. "type": "integer",
  24671. "allOf": [
  24672. {
  24673. "minimum": 0
  24674. }
  24675. ]
  24676. }
  24677. },
  24678. "additionalProperties": false
  24679. },
  24680. "skills": {
  24681. "type": "array",
  24682. "items": {
  24683. "type": "string"
  24684. }
  24685. },
  24686. "commands": {
  24687. "type": "object",
  24688. "additionalProperties": {
  24689. "$ref": "#/components/schemas/Config.Command"
  24690. }
  24691. },
  24692. "instructions": {
  24693. "type": "array",
  24694. "items": {
  24695. "type": "string"
  24696. }
  24697. },
  24698. "references": {
  24699. "type": "object",
  24700. "additionalProperties": {
  24701. "anyOf": [
  24702. {
  24703. "type": "string"
  24704. },
  24705. {
  24706. "$ref": "#/components/schemas/Config.Reference.Git"
  24707. },
  24708. {
  24709. "$ref": "#/components/schemas/Config.Reference.Local"
  24710. }
  24711. ]
  24712. }
  24713. },
  24714. "websearch": {
  24715. "type": "object",
  24716. "properties": {
  24717. "provider": {
  24718. "type": "string"
  24719. }
  24720. },
  24721. "required": ["provider"],
  24722. "additionalProperties": false
  24723. },
  24724. "plugins": {
  24725. "type": "array",
  24726. "items": {
  24727. "anyOf": [
  24728. {
  24729. "type": "string"
  24730. },
  24731. {
  24732. "$ref": "#/components/schemas/Config.Plugin.Entry"
  24733. }
  24734. ]
  24735. }
  24736. },
  24737. "warming": {
  24738. "anyOf": [
  24739. {
  24740. "type": "boolean"
  24741. },
  24742. {
  24743. "$ref": "#/components/schemas/Config.Warming"
  24744. }
  24745. ]
  24746. },
  24747. "providers": {
  24748. "type": "object",
  24749. "additionalProperties": {
  24750. "$ref": "#/components/schemas/Config.Provider"
  24751. }
  24752. },
  24753. "experimental": {
  24754. "type": "object",
  24755. "properties": {
  24756. "subagent_depth": {
  24757. "type": "integer",
  24758. "allOf": [
  24759. {
  24760. "minimum": 0
  24761. }
  24762. ]
  24763. },
  24764. "policies": {
  24765. "type": "array",
  24766. "items": {
  24767. "type": "object",
  24768. "properties": {
  24769. "action": {
  24770. "type": "string",
  24771. "enum": ["provider.use"]
  24772. },
  24773. "resource": {
  24774. "type": "string"
  24775. },
  24776. "effect": {
  24777. "type": "string",
  24778. "enum": ["allow", "deny"]
  24779. }
  24780. },
  24781. "required": ["action", "resource", "effect"],
  24782. "additionalProperties": false
  24783. }
  24784. }
  24785. },
  24786. "additionalProperties": false
  24787. }
  24788. },
  24789. "additionalProperties": false
  24790. },
  24791. "Config.Document": {
  24792. "type": "object",
  24793. "properties": {
  24794. "type": {
  24795. "type": "string",
  24796. "enum": ["document"]
  24797. },
  24798. "path": {
  24799. "type": "string"
  24800. },
  24801. "info": {
  24802. "$ref": "#/components/schemas/Config.Info"
  24803. }
  24804. },
  24805. "required": ["type", "info"],
  24806. "additionalProperties": false
  24807. },
  24808. "Config.Directory": {
  24809. "type": "object",
  24810. "properties": {
  24811. "type": {
  24812. "type": "string",
  24813. "enum": ["directory"]
  24814. },
  24815. "path": {
  24816. "type": "string"
  24817. }
  24818. },
  24819. "required": ["type", "path"],
  24820. "additionalProperties": false
  24821. },
  24822. "Config.File": {
  24823. "type": "object",
  24824. "properties": {
  24825. "type": {
  24826. "type": "string",
  24827. "enum": ["file"]
  24828. },
  24829. "path": {
  24830. "type": "string"
  24831. }
  24832. },
  24833. "required": ["type", "path"],
  24834. "additionalProperties": false
  24835. },
  24836. "Config.AgentsDirectory": {
  24837. "type": "object",
  24838. "properties": {
  24839. "type": {
  24840. "type": "string",
  24841. "enum": ["agents"]
  24842. },
  24843. "path": {
  24844. "type": "string"
  24845. }
  24846. },
  24847. "required": ["type", "path"],
  24848. "additionalProperties": false
  24849. },
  24850. "Config.ClaudeDirectory": {
  24851. "type": "object",
  24852. "properties": {
  24853. "type": {
  24854. "type": "string",
  24855. "enum": ["claude"]
  24856. },
  24857. "path": {
  24858. "type": "string"
  24859. }
  24860. },
  24861. "required": ["type", "path"],
  24862. "additionalProperties": false
  24863. },
  24864. "Config.Entry": {
  24865. "anyOf": [
  24866. {
  24867. "$ref": "#/components/schemas/Config.Document"
  24868. },
  24869. {
  24870. "$ref": "#/components/schemas/Config.Directory"
  24871. },
  24872. {
  24873. "$ref": "#/components/schemas/Config.File"
  24874. },
  24875. {
  24876. "$ref": "#/components/schemas/Config.AgentsDirectory"
  24877. },
  24878. {
  24879. "$ref": "#/components/schemas/Config.ClaudeDirectory"
  24880. }
  24881. ]
  24882. }
  24883. },
  24884. "securitySchemes": {}
  24885. },
  24886. "security": [],
  24887. "tags": [
  24888. {
  24889. "name": "health"
  24890. },
  24891. {
  24892. "name": "server"
  24893. },
  24894. {
  24895. "name": "location"
  24896. },
  24897. {
  24898. "name": "agent"
  24899. },
  24900. {
  24901. "name": "plugin",
  24902. "description": "Experimental plugin routes."
  24903. },
  24904. {
  24905. "name": "session",
  24906. "description": "Experimental session routes."
  24907. },
  24908. {
  24909. "name": "session",
  24910. "description": "Experimental message routes."
  24911. },
  24912. {
  24913. "name": "model",
  24914. "description": "Experimental model routes."
  24915. },
  24916. {
  24917. "name": "generate",
  24918. "description": "Experimental one-shot generation routes."
  24919. },
  24920. {
  24921. "name": "provider",
  24922. "description": "Experimental provider routes."
  24923. },
  24924. {
  24925. "name": "integration",
  24926. "description": "Integration discovery and authentication routes."
  24927. },
  24928. {
  24929. "name": "mcp",
  24930. "description": "MCP server and resource routes."
  24931. },
  24932. {
  24933. "name": "credential"
  24934. },
  24935. {
  24936. "name": "project",
  24937. "description": "Location-scoped project routes."
  24938. },
  24939. {
  24940. "name": "form",
  24941. "description": "Session form routes."
  24942. },
  24943. {
  24944. "name": "permission",
  24945. "description": "Experimental permission routes."
  24946. },
  24947. {
  24948. "name": "filesystem",
  24949. "description": "Experimental location-scoped filesystem routes."
  24950. },
  24951. {
  24952. "name": "command",
  24953. "description": "Experimental command routes."
  24954. },
  24955. {
  24956. "name": "skill",
  24957. "description": "Experimental skill routes."
  24958. },
  24959. {
  24960. "name": "event",
  24961. "description": "Experimental event stream routes."
  24962. },
  24963. {
  24964. "name": "pty",
  24965. "description": "Experimental location-scoped PTY routes."
  24966. },
  24967. {
  24968. "name": "shell",
  24969. "description": "Experimental location-scoped shell command routes."
  24970. },
  24971. {
  24972. "name": "question",
  24973. "description": "Experimental session question routes."
  24974. },
  24975. {
  24976. "name": "reference",
  24977. "description": "Location-scoped project references."
  24978. },
  24979. {
  24980. "name": "projectCopy",
  24981. "description": "Project copy management routes."
  24982. },
  24983. {
  24984. "name": "vcs",
  24985. "description": "Location-scoped version control routes."
  24986. },
  24987. {
  24988. "name": "debug"
  24989. },
  24990. {
  24991. "name": "migration"
  24992. },
  24993. {
  24994. "name": "websearch",
  24995. "description": "Location-scoped web search routes."
  24996. },
  24997. {
  24998. "name": "config",
  24999. "description": "Location-scoped configuration routes."
  25000. }
  25001. ]
  25002. }