openapi.json 661 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982
  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. "type": "object",
  1674. "properties": {
  1675. "directory": {
  1676. "type": "string"
  1677. },
  1678. "workspaceID": {
  1679. "type": "string",
  1680. "allOf": [
  1681. {
  1682. "pattern": "^wrk"
  1683. }
  1684. ]
  1685. },
  1686. "delivery": {
  1687. "anyOf": [
  1688. {
  1689. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  1690. },
  1691. {
  1692. "type": "null"
  1693. }
  1694. ]
  1695. }
  1696. },
  1697. "required": ["directory"],
  1698. "additionalProperties": false
  1699. }
  1700. }
  1701. },
  1702. "required": true
  1703. }
  1704. }
  1705. },
  1706. "/api/session/{sessionID}/prompt": {
  1707. "post": {
  1708. "tags": ["session"],
  1709. "operationId": "v2.session.prompt",
  1710. "parameters": [
  1711. {
  1712. "name": "sessionID",
  1713. "in": "path",
  1714. "schema": {
  1715. "type": "string",
  1716. "allOf": [
  1717. {
  1718. "pattern": "^ses"
  1719. }
  1720. ]
  1721. },
  1722. "required": true
  1723. }
  1724. ],
  1725. "security": [],
  1726. "responses": {
  1727. "200": {
  1728. "description": "Success",
  1729. "content": {
  1730. "application/json": {
  1731. "schema": {
  1732. "type": "object",
  1733. "properties": {
  1734. "data": {
  1735. "$ref": "#/components/schemas/Session.Inbox.User"
  1736. }
  1737. },
  1738. "required": ["data"],
  1739. "additionalProperties": false
  1740. }
  1741. }
  1742. }
  1743. },
  1744. "400": {
  1745. "description": "InvalidRequestError",
  1746. "content": {
  1747. "application/json": {
  1748. "schema": {
  1749. "anyOf": [
  1750. {
  1751. "$ref": "#/components/schemas/InvalidRequestError1"
  1752. },
  1753. {
  1754. "$ref": "#/components/schemas/InvalidRequestError"
  1755. }
  1756. ]
  1757. }
  1758. }
  1759. }
  1760. },
  1761. "401": {
  1762. "description": "UnauthorizedError",
  1763. "content": {
  1764. "application/json": {
  1765. "schema": {
  1766. "$ref": "#/components/schemas/UnauthorizedError"
  1767. }
  1768. }
  1769. }
  1770. },
  1771. "404": {
  1772. "description": "SessionNotFoundError",
  1773. "content": {
  1774. "application/json": {
  1775. "schema": {
  1776. "anyOf": [
  1777. {
  1778. "$ref": "#/components/schemas/SessionNotFoundError"
  1779. },
  1780. {
  1781. "$ref": "#/components/schemas/SessionNotFoundError"
  1782. }
  1783. ]
  1784. }
  1785. }
  1786. }
  1787. },
  1788. "409": {
  1789. "description": "ConflictError",
  1790. "content": {
  1791. "application/json": {
  1792. "schema": {
  1793. "$ref": "#/components/schemas/ConflictError"
  1794. }
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1800. "summary": "Send message",
  1801. "requestBody": {
  1802. "content": {
  1803. "application/json": {
  1804. "schema": {
  1805. "type": "object",
  1806. "properties": {
  1807. "id": {
  1808. "anyOf": [
  1809. {
  1810. "type": "string",
  1811. "allOf": [
  1812. {
  1813. "pattern": "^msg_"
  1814. }
  1815. ]
  1816. },
  1817. {
  1818. "type": "null"
  1819. }
  1820. ]
  1821. },
  1822. "text": {
  1823. "type": "string"
  1824. },
  1825. "files": {
  1826. "type": "array",
  1827. "items": {
  1828. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1829. }
  1830. },
  1831. "agents": {
  1832. "type": "array",
  1833. "items": {
  1834. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1835. }
  1836. },
  1837. "skills": {
  1838. "type": "array",
  1839. "items": {
  1840. "$ref": "#/components/schemas/PromptInput.SkillAttachment"
  1841. }
  1842. },
  1843. "metadata": {
  1844. "type": "object"
  1845. },
  1846. "delivery": {
  1847. "anyOf": [
  1848. {
  1849. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  1850. },
  1851. {
  1852. "type": "null"
  1853. }
  1854. ]
  1855. },
  1856. "resume": {
  1857. "anyOf": [
  1858. {
  1859. "type": "boolean"
  1860. },
  1861. {
  1862. "type": "null"
  1863. }
  1864. ]
  1865. }
  1866. },
  1867. "required": ["text"],
  1868. "additionalProperties": false
  1869. }
  1870. }
  1871. },
  1872. "required": true
  1873. }
  1874. }
  1875. },
  1876. "/api/session/{sessionID}/command": {
  1877. "post": {
  1878. "tags": ["session"],
  1879. "operationId": "v2.session.command",
  1880. "parameters": [
  1881. {
  1882. "name": "sessionID",
  1883. "in": "path",
  1884. "schema": {
  1885. "type": "string",
  1886. "allOf": [
  1887. {
  1888. "pattern": "^ses"
  1889. }
  1890. ]
  1891. },
  1892. "required": true
  1893. }
  1894. ],
  1895. "security": [],
  1896. "responses": {
  1897. "200": {
  1898. "description": "Success",
  1899. "content": {
  1900. "application/json": {
  1901. "schema": {
  1902. "type": "object",
  1903. "properties": {
  1904. "data": {
  1905. "$ref": "#/components/schemas/Session.Inbox.User"
  1906. }
  1907. },
  1908. "required": ["data"],
  1909. "additionalProperties": false
  1910. }
  1911. }
  1912. }
  1913. },
  1914. "400": {
  1915. "description": "InvalidRequestError",
  1916. "content": {
  1917. "application/json": {
  1918. "schema": {
  1919. "anyOf": [
  1920. {
  1921. "$ref": "#/components/schemas/InvalidRequestError1"
  1922. },
  1923. {
  1924. "$ref": "#/components/schemas/InvalidRequestError"
  1925. }
  1926. ]
  1927. }
  1928. }
  1929. }
  1930. },
  1931. "401": {
  1932. "description": "UnauthorizedError",
  1933. "content": {
  1934. "application/json": {
  1935. "schema": {
  1936. "$ref": "#/components/schemas/UnauthorizedError"
  1937. }
  1938. }
  1939. }
  1940. },
  1941. "404": {
  1942. "description": "SessionNotFoundError | CommandNotFoundError",
  1943. "content": {
  1944. "application/json": {
  1945. "schema": {
  1946. "anyOf": [
  1947. {
  1948. "$ref": "#/components/schemas/CommandNotFoundError"
  1949. },
  1950. {
  1951. "$ref": "#/components/schemas/SessionNotFoundError"
  1952. },
  1953. {
  1954. "$ref": "#/components/schemas/SessionNotFoundError"
  1955. }
  1956. ]
  1957. }
  1958. }
  1959. }
  1960. },
  1961. "409": {
  1962. "description": "ConflictError",
  1963. "content": {
  1964. "application/json": {
  1965. "schema": {
  1966. "$ref": "#/components/schemas/ConflictError"
  1967. }
  1968. }
  1969. }
  1970. },
  1971. "500": {
  1972. "description": "CommandEvaluationError",
  1973. "content": {
  1974. "application/json": {
  1975. "schema": {
  1976. "$ref": "#/components/schemas/CommandEvaluationError"
  1977. }
  1978. }
  1979. }
  1980. }
  1981. },
  1982. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1983. "summary": "Run command",
  1984. "requestBody": {
  1985. "content": {
  1986. "application/json": {
  1987. "schema": {
  1988. "type": "object",
  1989. "properties": {
  1990. "id": {
  1991. "anyOf": [
  1992. {
  1993. "type": "string",
  1994. "allOf": [
  1995. {
  1996. "pattern": "^msg_"
  1997. }
  1998. ]
  1999. },
  2000. {
  2001. "type": "null"
  2002. }
  2003. ]
  2004. },
  2005. "command": {
  2006. "type": "string"
  2007. },
  2008. "arguments": {
  2009. "anyOf": [
  2010. {
  2011. "type": "string"
  2012. },
  2013. {
  2014. "type": "null"
  2015. }
  2016. ]
  2017. },
  2018. "agent": {
  2019. "anyOf": [
  2020. {
  2021. "type": "string"
  2022. },
  2023. {
  2024. "type": "null"
  2025. }
  2026. ]
  2027. },
  2028. "model": {
  2029. "anyOf": [
  2030. {
  2031. "$ref": "#/components/schemas/Model.Ref"
  2032. },
  2033. {
  2034. "type": "null"
  2035. }
  2036. ]
  2037. },
  2038. "files": {
  2039. "type": "array",
  2040. "items": {
  2041. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  2042. }
  2043. },
  2044. "agents": {
  2045. "type": "array",
  2046. "items": {
  2047. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  2048. }
  2049. },
  2050. "skills": {
  2051. "type": "array",
  2052. "items": {
  2053. "$ref": "#/components/schemas/PromptInput.SkillAttachment"
  2054. }
  2055. },
  2056. "delivery": {
  2057. "anyOf": [
  2058. {
  2059. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2060. },
  2061. {
  2062. "type": "null"
  2063. }
  2064. ]
  2065. },
  2066. "resume": {
  2067. "anyOf": [
  2068. {
  2069. "type": "boolean"
  2070. },
  2071. {
  2072. "type": "null"
  2073. }
  2074. ]
  2075. }
  2076. },
  2077. "required": ["command"],
  2078. "additionalProperties": false
  2079. }
  2080. }
  2081. },
  2082. "required": true
  2083. }
  2084. }
  2085. },
  2086. "/api/session/{sessionID}/skill": {
  2087. "post": {
  2088. "tags": ["session"],
  2089. "operationId": "v2.session.skill",
  2090. "parameters": [
  2091. {
  2092. "name": "sessionID",
  2093. "in": "path",
  2094. "schema": {
  2095. "type": "string",
  2096. "allOf": [
  2097. {
  2098. "pattern": "^ses"
  2099. }
  2100. ]
  2101. },
  2102. "required": true
  2103. }
  2104. ],
  2105. "security": [],
  2106. "responses": {
  2107. "204": {
  2108. "description": "<No Content>"
  2109. },
  2110. "400": {
  2111. "description": "InvalidRequestError",
  2112. "content": {
  2113. "application/json": {
  2114. "schema": {
  2115. "$ref": "#/components/schemas/InvalidRequestError"
  2116. }
  2117. }
  2118. }
  2119. },
  2120. "401": {
  2121. "description": "UnauthorizedError",
  2122. "content": {
  2123. "application/json": {
  2124. "schema": {
  2125. "$ref": "#/components/schemas/UnauthorizedError"
  2126. }
  2127. }
  2128. }
  2129. },
  2130. "404": {
  2131. "description": "SessionNotFoundError | SkillNotFoundError",
  2132. "content": {
  2133. "application/json": {
  2134. "schema": {
  2135. "anyOf": [
  2136. {
  2137. "$ref": "#/components/schemas/SkillNotFoundError"
  2138. },
  2139. {
  2140. "$ref": "#/components/schemas/SessionNotFoundError"
  2141. },
  2142. {
  2143. "$ref": "#/components/schemas/SessionNotFoundError"
  2144. }
  2145. ]
  2146. }
  2147. }
  2148. }
  2149. }
  2150. },
  2151. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  2152. "summary": "Activate skill",
  2153. "requestBody": {
  2154. "content": {
  2155. "application/json": {
  2156. "schema": {
  2157. "type": "object",
  2158. "properties": {
  2159. "id": {
  2160. "anyOf": [
  2161. {
  2162. "type": "string",
  2163. "allOf": [
  2164. {
  2165. "pattern": "^msg_"
  2166. }
  2167. ]
  2168. },
  2169. {
  2170. "type": "null"
  2171. }
  2172. ]
  2173. },
  2174. "skill": {
  2175. "type": "string"
  2176. },
  2177. "resume": {
  2178. "anyOf": [
  2179. {
  2180. "type": "boolean"
  2181. },
  2182. {
  2183. "type": "null"
  2184. }
  2185. ]
  2186. }
  2187. },
  2188. "required": ["skill"],
  2189. "additionalProperties": false
  2190. }
  2191. }
  2192. },
  2193. "required": true
  2194. }
  2195. }
  2196. },
  2197. "/api/session/{sessionID}/synthetic": {
  2198. "post": {
  2199. "tags": ["session"],
  2200. "operationId": "v2.session.synthetic",
  2201. "parameters": [
  2202. {
  2203. "name": "sessionID",
  2204. "in": "path",
  2205. "schema": {
  2206. "type": "string",
  2207. "allOf": [
  2208. {
  2209. "pattern": "^ses"
  2210. }
  2211. ]
  2212. },
  2213. "required": true
  2214. }
  2215. ],
  2216. "security": [],
  2217. "responses": {
  2218. "200": {
  2219. "description": "Success",
  2220. "content": {
  2221. "application/json": {
  2222. "schema": {
  2223. "type": "object",
  2224. "properties": {
  2225. "data": {
  2226. "$ref": "#/components/schemas/Session.Inbox.Synthetic"
  2227. }
  2228. },
  2229. "required": ["data"],
  2230. "additionalProperties": false
  2231. }
  2232. }
  2233. }
  2234. },
  2235. "400": {
  2236. "description": "InvalidRequestError",
  2237. "content": {
  2238. "application/json": {
  2239. "schema": {
  2240. "$ref": "#/components/schemas/InvalidRequestError"
  2241. }
  2242. }
  2243. }
  2244. },
  2245. "401": {
  2246. "description": "UnauthorizedError",
  2247. "content": {
  2248. "application/json": {
  2249. "schema": {
  2250. "$ref": "#/components/schemas/UnauthorizedError"
  2251. }
  2252. }
  2253. }
  2254. },
  2255. "404": {
  2256. "description": "SessionNotFoundError",
  2257. "content": {
  2258. "application/json": {
  2259. "schema": {
  2260. "anyOf": [
  2261. {
  2262. "$ref": "#/components/schemas/SessionNotFoundError"
  2263. },
  2264. {
  2265. "$ref": "#/components/schemas/SessionNotFoundError"
  2266. }
  2267. ]
  2268. }
  2269. }
  2270. }
  2271. },
  2272. "409": {
  2273. "description": "ConflictError",
  2274. "content": {
  2275. "application/json": {
  2276. "schema": {
  2277. "$ref": "#/components/schemas/ConflictError"
  2278. }
  2279. }
  2280. }
  2281. }
  2282. },
  2283. "description": "Durably admit synthetic session input and schedule execution unless resume is false.",
  2284. "summary": "Add synthetic message",
  2285. "requestBody": {
  2286. "content": {
  2287. "application/json": {
  2288. "schema": {
  2289. "type": "object",
  2290. "properties": {
  2291. "id": {
  2292. "anyOf": [
  2293. {
  2294. "type": "string",
  2295. "allOf": [
  2296. {
  2297. "pattern": "^msg_"
  2298. }
  2299. ]
  2300. },
  2301. {
  2302. "type": "null"
  2303. }
  2304. ]
  2305. },
  2306. "text": {
  2307. "type": "string"
  2308. },
  2309. "description": {
  2310. "anyOf": [
  2311. {
  2312. "type": "string"
  2313. },
  2314. {
  2315. "type": "null"
  2316. }
  2317. ]
  2318. },
  2319. "metadata": {
  2320. "type": "object"
  2321. },
  2322. "delivery": {
  2323. "anyOf": [
  2324. {
  2325. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2326. },
  2327. {
  2328. "type": "null"
  2329. }
  2330. ]
  2331. },
  2332. "resume": {
  2333. "anyOf": [
  2334. {
  2335. "type": "boolean"
  2336. },
  2337. {
  2338. "type": "null"
  2339. }
  2340. ]
  2341. }
  2342. },
  2343. "required": ["text"],
  2344. "additionalProperties": false
  2345. }
  2346. }
  2347. },
  2348. "required": true
  2349. }
  2350. }
  2351. },
  2352. "/api/session/{sessionID}/shell": {
  2353. "post": {
  2354. "tags": ["session"],
  2355. "operationId": "v2.session.shell",
  2356. "parameters": [
  2357. {
  2358. "name": "sessionID",
  2359. "in": "path",
  2360. "schema": {
  2361. "type": "string",
  2362. "allOf": [
  2363. {
  2364. "pattern": "^ses"
  2365. }
  2366. ]
  2367. },
  2368. "required": true
  2369. }
  2370. ],
  2371. "security": [],
  2372. "responses": {
  2373. "204": {
  2374. "description": "<No Content>"
  2375. },
  2376. "400": {
  2377. "description": "InvalidRequestError",
  2378. "content": {
  2379. "application/json": {
  2380. "schema": {
  2381. "$ref": "#/components/schemas/InvalidRequestError"
  2382. }
  2383. }
  2384. }
  2385. },
  2386. "401": {
  2387. "description": "UnauthorizedError",
  2388. "content": {
  2389. "application/json": {
  2390. "schema": {
  2391. "$ref": "#/components/schemas/UnauthorizedError"
  2392. }
  2393. }
  2394. }
  2395. },
  2396. "404": {
  2397. "description": "SessionNotFoundError",
  2398. "content": {
  2399. "application/json": {
  2400. "schema": {
  2401. "anyOf": [
  2402. {
  2403. "$ref": "#/components/schemas/SessionNotFoundError"
  2404. },
  2405. {
  2406. "$ref": "#/components/schemas/SessionNotFoundError"
  2407. }
  2408. ]
  2409. }
  2410. }
  2411. }
  2412. }
  2413. },
  2414. "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.",
  2415. "summary": "Run shell command",
  2416. "requestBody": {
  2417. "content": {
  2418. "application/json": {
  2419. "schema": {
  2420. "type": "object",
  2421. "properties": {
  2422. "id": {
  2423. "anyOf": [
  2424. {
  2425. "type": "string",
  2426. "allOf": [
  2427. {
  2428. "pattern": "^evt_"
  2429. }
  2430. ]
  2431. },
  2432. {
  2433. "type": "null"
  2434. }
  2435. ]
  2436. },
  2437. "command": {
  2438. "type": "string"
  2439. }
  2440. },
  2441. "required": ["command"],
  2442. "additionalProperties": false
  2443. }
  2444. }
  2445. },
  2446. "required": true
  2447. }
  2448. }
  2449. },
  2450. "/api/session/{sessionID}/compact": {
  2451. "post": {
  2452. "tags": ["session"],
  2453. "operationId": "v2.session.compact",
  2454. "parameters": [
  2455. {
  2456. "name": "sessionID",
  2457. "in": "path",
  2458. "schema": {
  2459. "type": "string",
  2460. "allOf": [
  2461. {
  2462. "pattern": "^ses"
  2463. }
  2464. ]
  2465. },
  2466. "required": true
  2467. }
  2468. ],
  2469. "security": [],
  2470. "responses": {
  2471. "200": {
  2472. "description": "Success",
  2473. "content": {
  2474. "application/json": {
  2475. "schema": {
  2476. "type": "object",
  2477. "properties": {
  2478. "data": {
  2479. "$ref": "#/components/schemas/Session.Inbox.Compaction"
  2480. }
  2481. },
  2482. "required": ["data"],
  2483. "additionalProperties": false
  2484. }
  2485. }
  2486. }
  2487. },
  2488. "400": {
  2489. "description": "InvalidRequestError",
  2490. "content": {
  2491. "application/json": {
  2492. "schema": {
  2493. "$ref": "#/components/schemas/InvalidRequestError"
  2494. }
  2495. }
  2496. }
  2497. },
  2498. "401": {
  2499. "description": "UnauthorizedError",
  2500. "content": {
  2501. "application/json": {
  2502. "schema": {
  2503. "$ref": "#/components/schemas/UnauthorizedError"
  2504. }
  2505. }
  2506. }
  2507. },
  2508. "404": {
  2509. "description": "SessionNotFoundError",
  2510. "content": {
  2511. "application/json": {
  2512. "schema": {
  2513. "anyOf": [
  2514. {
  2515. "$ref": "#/components/schemas/SessionNotFoundError"
  2516. },
  2517. {
  2518. "$ref": "#/components/schemas/SessionNotFoundError"
  2519. }
  2520. ]
  2521. }
  2522. }
  2523. }
  2524. },
  2525. "409": {
  2526. "description": "ConflictError",
  2527. "content": {
  2528. "application/json": {
  2529. "schema": {
  2530. "$ref": "#/components/schemas/ConflictError"
  2531. }
  2532. }
  2533. }
  2534. }
  2535. },
  2536. "description": "Queue a durable session compaction request.",
  2537. "summary": "Compact session",
  2538. "requestBody": {
  2539. "content": {
  2540. "application/json": {
  2541. "schema": {
  2542. "type": "object",
  2543. "properties": {
  2544. "id": {
  2545. "anyOf": [
  2546. {
  2547. "type": "string",
  2548. "allOf": [
  2549. {
  2550. "pattern": "^msg_"
  2551. }
  2552. ]
  2553. },
  2554. {
  2555. "type": "null"
  2556. }
  2557. ]
  2558. },
  2559. "delivery": {
  2560. "anyOf": [
  2561. {
  2562. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2563. },
  2564. {
  2565. "type": "null"
  2566. }
  2567. ]
  2568. }
  2569. },
  2570. "additionalProperties": false
  2571. }
  2572. }
  2573. },
  2574. "required": true
  2575. }
  2576. }
  2577. },
  2578. "/api/session/{sessionID}/wait": {
  2579. "post": {
  2580. "tags": ["session"],
  2581. "operationId": "v2.session.wait",
  2582. "parameters": [
  2583. {
  2584. "name": "sessionID",
  2585. "in": "path",
  2586. "schema": {
  2587. "type": "string",
  2588. "allOf": [
  2589. {
  2590. "pattern": "^ses"
  2591. }
  2592. ]
  2593. },
  2594. "required": true
  2595. }
  2596. ],
  2597. "security": [],
  2598. "responses": {
  2599. "204": {
  2600. "description": "<No Content>"
  2601. },
  2602. "400": {
  2603. "description": "InvalidRequestError",
  2604. "content": {
  2605. "application/json": {
  2606. "schema": {
  2607. "$ref": "#/components/schemas/InvalidRequestError"
  2608. }
  2609. }
  2610. }
  2611. },
  2612. "401": {
  2613. "description": "UnauthorizedError",
  2614. "content": {
  2615. "application/json": {
  2616. "schema": {
  2617. "$ref": "#/components/schemas/UnauthorizedError"
  2618. }
  2619. }
  2620. }
  2621. },
  2622. "404": {
  2623. "description": "SessionNotFoundError",
  2624. "content": {
  2625. "application/json": {
  2626. "schema": {
  2627. "anyOf": [
  2628. {
  2629. "$ref": "#/components/schemas/SessionNotFoundError"
  2630. },
  2631. {
  2632. "$ref": "#/components/schemas/SessionNotFoundError"
  2633. }
  2634. ]
  2635. }
  2636. }
  2637. }
  2638. },
  2639. "503": {
  2640. "description": "ServiceUnavailableError",
  2641. "content": {
  2642. "application/json": {
  2643. "schema": {
  2644. "$ref": "#/components/schemas/ServiceUnavailableError"
  2645. }
  2646. }
  2647. }
  2648. }
  2649. },
  2650. "description": "Wait for a session agent loop to become idle.",
  2651. "summary": "Wait for session"
  2652. }
  2653. },
  2654. "/api/session/{sessionID}/revert/stage": {
  2655. "post": {
  2656. "tags": ["session"],
  2657. "operationId": "v2.session.revert.stage",
  2658. "parameters": [
  2659. {
  2660. "name": "sessionID",
  2661. "in": "path",
  2662. "schema": {
  2663. "type": "string",
  2664. "allOf": [
  2665. {
  2666. "pattern": "^ses"
  2667. }
  2668. ]
  2669. },
  2670. "required": true
  2671. }
  2672. ],
  2673. "security": [],
  2674. "responses": {
  2675. "200": {
  2676. "description": "Success",
  2677. "content": {
  2678. "application/json": {
  2679. "schema": {
  2680. "type": "object",
  2681. "properties": {
  2682. "data": {
  2683. "$ref": "#/components/schemas/Session.Revert"
  2684. }
  2685. },
  2686. "required": ["data"],
  2687. "additionalProperties": false
  2688. }
  2689. }
  2690. }
  2691. },
  2692. "400": {
  2693. "description": "InvalidRequestError",
  2694. "content": {
  2695. "application/json": {
  2696. "schema": {
  2697. "$ref": "#/components/schemas/InvalidRequestError"
  2698. }
  2699. }
  2700. }
  2701. },
  2702. "401": {
  2703. "description": "UnauthorizedError",
  2704. "content": {
  2705. "application/json": {
  2706. "schema": {
  2707. "$ref": "#/components/schemas/UnauthorizedError"
  2708. }
  2709. }
  2710. }
  2711. },
  2712. "404": {
  2713. "description": "MessageNotFoundError | SessionNotFoundError",
  2714. "content": {
  2715. "application/json": {
  2716. "schema": {
  2717. "anyOf": [
  2718. {
  2719. "$ref": "#/components/schemas/MessageNotFoundError"
  2720. },
  2721. {
  2722. "$ref": "#/components/schemas/SessionNotFoundError"
  2723. },
  2724. {
  2725. "$ref": "#/components/schemas/SessionNotFoundError"
  2726. }
  2727. ]
  2728. }
  2729. }
  2730. }
  2731. },
  2732. "409": {
  2733. "description": "SessionBusyError",
  2734. "content": {
  2735. "application/json": {
  2736. "schema": {
  2737. "$ref": "#/components/schemas/SessionBusyError"
  2738. }
  2739. }
  2740. }
  2741. },
  2742. "500": {
  2743. "description": "UnknownError",
  2744. "content": {
  2745. "application/json": {
  2746. "schema": {
  2747. "$ref": "#/components/schemas/UnknownError"
  2748. }
  2749. }
  2750. }
  2751. }
  2752. },
  2753. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2754. "summary": "Stage session revert",
  2755. "requestBody": {
  2756. "content": {
  2757. "application/json": {
  2758. "schema": {
  2759. "type": "object",
  2760. "properties": {
  2761. "messageID": {
  2762. "type": "string",
  2763. "allOf": [
  2764. {
  2765. "pattern": "^msg_"
  2766. }
  2767. ]
  2768. },
  2769. "files": {
  2770. "anyOf": [
  2771. {
  2772. "type": "boolean"
  2773. },
  2774. {
  2775. "type": "null"
  2776. }
  2777. ]
  2778. }
  2779. },
  2780. "required": ["messageID"],
  2781. "additionalProperties": false
  2782. }
  2783. }
  2784. },
  2785. "required": true
  2786. }
  2787. }
  2788. },
  2789. "/api/session/{sessionID}/revert/clear": {
  2790. "post": {
  2791. "tags": ["session"],
  2792. "operationId": "v2.session.revert.clear",
  2793. "parameters": [
  2794. {
  2795. "name": "sessionID",
  2796. "in": "path",
  2797. "schema": {
  2798. "type": "string",
  2799. "allOf": [
  2800. {
  2801. "pattern": "^ses"
  2802. }
  2803. ]
  2804. },
  2805. "required": true
  2806. }
  2807. ],
  2808. "security": [],
  2809. "responses": {
  2810. "204": {
  2811. "description": "<No Content>"
  2812. },
  2813. "400": {
  2814. "description": "InvalidRequestError",
  2815. "content": {
  2816. "application/json": {
  2817. "schema": {
  2818. "$ref": "#/components/schemas/InvalidRequestError"
  2819. }
  2820. }
  2821. }
  2822. },
  2823. "401": {
  2824. "description": "UnauthorizedError",
  2825. "content": {
  2826. "application/json": {
  2827. "schema": {
  2828. "$ref": "#/components/schemas/UnauthorizedError"
  2829. }
  2830. }
  2831. }
  2832. },
  2833. "404": {
  2834. "description": "SessionNotFoundError",
  2835. "content": {
  2836. "application/json": {
  2837. "schema": {
  2838. "anyOf": [
  2839. {
  2840. "$ref": "#/components/schemas/SessionNotFoundError"
  2841. },
  2842. {
  2843. "$ref": "#/components/schemas/SessionNotFoundError"
  2844. }
  2845. ]
  2846. }
  2847. }
  2848. }
  2849. },
  2850. "409": {
  2851. "description": "SessionBusyError",
  2852. "content": {
  2853. "application/json": {
  2854. "schema": {
  2855. "$ref": "#/components/schemas/SessionBusyError"
  2856. }
  2857. }
  2858. }
  2859. },
  2860. "500": {
  2861. "description": "UnknownError",
  2862. "content": {
  2863. "application/json": {
  2864. "schema": {
  2865. "$ref": "#/components/schemas/UnknownError"
  2866. }
  2867. }
  2868. }
  2869. }
  2870. },
  2871. "summary": "Clear staged revert"
  2872. }
  2873. },
  2874. "/api/session/{sessionID}/revert/commit": {
  2875. "post": {
  2876. "tags": ["session"],
  2877. "operationId": "v2.session.revert.commit",
  2878. "parameters": [
  2879. {
  2880. "name": "sessionID",
  2881. "in": "path",
  2882. "schema": {
  2883. "type": "string",
  2884. "allOf": [
  2885. {
  2886. "pattern": "^ses"
  2887. }
  2888. ]
  2889. },
  2890. "required": true
  2891. }
  2892. ],
  2893. "security": [],
  2894. "responses": {
  2895. "204": {
  2896. "description": "<No Content>"
  2897. },
  2898. "400": {
  2899. "description": "InvalidRequestError",
  2900. "content": {
  2901. "application/json": {
  2902. "schema": {
  2903. "$ref": "#/components/schemas/InvalidRequestError"
  2904. }
  2905. }
  2906. }
  2907. },
  2908. "401": {
  2909. "description": "UnauthorizedError",
  2910. "content": {
  2911. "application/json": {
  2912. "schema": {
  2913. "$ref": "#/components/schemas/UnauthorizedError"
  2914. }
  2915. }
  2916. }
  2917. },
  2918. "404": {
  2919. "description": "SessionNotFoundError",
  2920. "content": {
  2921. "application/json": {
  2922. "schema": {
  2923. "anyOf": [
  2924. {
  2925. "$ref": "#/components/schemas/SessionNotFoundError"
  2926. },
  2927. {
  2928. "$ref": "#/components/schemas/SessionNotFoundError"
  2929. }
  2930. ]
  2931. }
  2932. }
  2933. }
  2934. },
  2935. "409": {
  2936. "description": "SessionBusyError",
  2937. "content": {
  2938. "application/json": {
  2939. "schema": {
  2940. "$ref": "#/components/schemas/SessionBusyError"
  2941. }
  2942. }
  2943. }
  2944. }
  2945. },
  2946. "summary": "Commit staged revert"
  2947. }
  2948. },
  2949. "/api/session/{sessionID}/context": {
  2950. "get": {
  2951. "tags": ["session"],
  2952. "operationId": "v2.session.context",
  2953. "parameters": [
  2954. {
  2955. "name": "sessionID",
  2956. "in": "path",
  2957. "schema": {
  2958. "type": "string",
  2959. "allOf": [
  2960. {
  2961. "pattern": "^ses"
  2962. }
  2963. ]
  2964. },
  2965. "required": true
  2966. }
  2967. ],
  2968. "security": [],
  2969. "responses": {
  2970. "200": {
  2971. "description": "Success",
  2972. "content": {
  2973. "application/json": {
  2974. "schema": {
  2975. "type": "object",
  2976. "properties": {
  2977. "data": {
  2978. "type": "array",
  2979. "items": {
  2980. "$ref": "#/components/schemas/Session.Message.Info"
  2981. }
  2982. }
  2983. },
  2984. "required": ["data"],
  2985. "additionalProperties": false
  2986. }
  2987. }
  2988. }
  2989. },
  2990. "400": {
  2991. "description": "InvalidRequestError",
  2992. "content": {
  2993. "application/json": {
  2994. "schema": {
  2995. "$ref": "#/components/schemas/InvalidRequestError"
  2996. }
  2997. }
  2998. }
  2999. },
  3000. "401": {
  3001. "description": "UnauthorizedError",
  3002. "content": {
  3003. "application/json": {
  3004. "schema": {
  3005. "$ref": "#/components/schemas/UnauthorizedError"
  3006. }
  3007. }
  3008. }
  3009. },
  3010. "404": {
  3011. "description": "SessionNotFoundError",
  3012. "content": {
  3013. "application/json": {
  3014. "schema": {
  3015. "$ref": "#/components/schemas/SessionNotFoundError"
  3016. }
  3017. }
  3018. }
  3019. },
  3020. "500": {
  3021. "description": "UnknownError",
  3022. "content": {
  3023. "application/json": {
  3024. "schema": {
  3025. "$ref": "#/components/schemas/UnknownError"
  3026. }
  3027. }
  3028. }
  3029. }
  3030. },
  3031. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  3032. "summary": "Get session context"
  3033. }
  3034. },
  3035. "/api/session/{sessionID}/inbox": {
  3036. "get": {
  3037. "tags": ["session"],
  3038. "operationId": "v2.session.inbox.list",
  3039. "parameters": [
  3040. {
  3041. "name": "sessionID",
  3042. "in": "path",
  3043. "schema": {
  3044. "type": "string",
  3045. "allOf": [
  3046. {
  3047. "pattern": "^ses"
  3048. }
  3049. ]
  3050. },
  3051. "required": true
  3052. }
  3053. ],
  3054. "security": [],
  3055. "responses": {
  3056. "200": {
  3057. "description": "Success",
  3058. "content": {
  3059. "application/json": {
  3060. "schema": {
  3061. "type": "object",
  3062. "properties": {
  3063. "data": {
  3064. "type": "array",
  3065. "items": {
  3066. "$ref": "#/components/schemas/Session.Inbox.Info"
  3067. }
  3068. }
  3069. },
  3070. "required": ["data"],
  3071. "additionalProperties": false
  3072. }
  3073. }
  3074. }
  3075. },
  3076. "400": {
  3077. "description": "InvalidRequestError",
  3078. "content": {
  3079. "application/json": {
  3080. "schema": {
  3081. "$ref": "#/components/schemas/InvalidRequestError"
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "401": {
  3087. "description": "UnauthorizedError",
  3088. "content": {
  3089. "application/json": {
  3090. "schema": {
  3091. "$ref": "#/components/schemas/UnauthorizedError"
  3092. }
  3093. }
  3094. }
  3095. },
  3096. "404": {
  3097. "description": "SessionNotFoundError",
  3098. "content": {
  3099. "application/json": {
  3100. "schema": {
  3101. "$ref": "#/components/schemas/SessionNotFoundError"
  3102. }
  3103. }
  3104. }
  3105. }
  3106. },
  3107. "description": "List durable enqueued session work not yet delivered, ordered by enqueue sequence. Includes user, synthetic, compaction, and move items.",
  3108. "summary": "List session inbox"
  3109. }
  3110. },
  3111. "/api/session/{sessionID}/inbox/{inboxID}": {
  3112. "delete": {
  3113. "tags": ["session"],
  3114. "operationId": "v2.session.inbox.cancel",
  3115. "parameters": [
  3116. {
  3117. "name": "sessionID",
  3118. "in": "path",
  3119. "schema": {
  3120. "type": "string",
  3121. "allOf": [
  3122. {
  3123. "pattern": "^ses"
  3124. }
  3125. ]
  3126. },
  3127. "required": true
  3128. },
  3129. {
  3130. "name": "inboxID",
  3131. "in": "path",
  3132. "schema": {
  3133. "type": "string",
  3134. "allOf": [
  3135. {
  3136. "pattern": "^msg_"
  3137. }
  3138. ]
  3139. },
  3140. "required": true
  3141. }
  3142. ],
  3143. "security": [],
  3144. "responses": {
  3145. "204": {
  3146. "description": "<No Content>"
  3147. },
  3148. "400": {
  3149. "description": "InvalidRequestError",
  3150. "content": {
  3151. "application/json": {
  3152. "schema": {
  3153. "$ref": "#/components/schemas/InvalidRequestError"
  3154. }
  3155. }
  3156. }
  3157. },
  3158. "401": {
  3159. "description": "UnauthorizedError",
  3160. "content": {
  3161. "application/json": {
  3162. "schema": {
  3163. "$ref": "#/components/schemas/UnauthorizedError"
  3164. }
  3165. }
  3166. }
  3167. },
  3168. "404": {
  3169. "description": "SessionNotFoundError",
  3170. "content": {
  3171. "application/json": {
  3172. "schema": {
  3173. "$ref": "#/components/schemas/SessionNotFoundError"
  3174. }
  3175. }
  3176. }
  3177. },
  3178. "409": {
  3179. "description": "ConflictError",
  3180. "content": {
  3181. "application/json": {
  3182. "schema": {
  3183. "$ref": "#/components/schemas/ConflictError"
  3184. }
  3185. }
  3186. }
  3187. }
  3188. },
  3189. "description": "Cancel an inbox item that has not yet been delivered.",
  3190. "summary": "Cancel inbox input"
  3191. }
  3192. },
  3193. "/api/session/{sessionID}/inbox/{inboxID}/steer": {
  3194. "post": {
  3195. "tags": ["session"],
  3196. "operationId": "v2.session.inbox.steer",
  3197. "parameters": [
  3198. {
  3199. "name": "sessionID",
  3200. "in": "path",
  3201. "schema": {
  3202. "type": "string",
  3203. "allOf": [
  3204. {
  3205. "pattern": "^ses"
  3206. }
  3207. ]
  3208. },
  3209. "required": true
  3210. },
  3211. {
  3212. "name": "inboxID",
  3213. "in": "path",
  3214. "schema": {
  3215. "type": "string",
  3216. "allOf": [
  3217. {
  3218. "pattern": "^msg_"
  3219. }
  3220. ]
  3221. },
  3222. "required": true
  3223. }
  3224. ],
  3225. "security": [],
  3226. "responses": {
  3227. "204": {
  3228. "description": "<No Content>"
  3229. },
  3230. "400": {
  3231. "description": "InvalidRequestError",
  3232. "content": {
  3233. "application/json": {
  3234. "schema": {
  3235. "$ref": "#/components/schemas/InvalidRequestError"
  3236. }
  3237. }
  3238. }
  3239. },
  3240. "401": {
  3241. "description": "UnauthorizedError",
  3242. "content": {
  3243. "application/json": {
  3244. "schema": {
  3245. "$ref": "#/components/schemas/UnauthorizedError"
  3246. }
  3247. }
  3248. }
  3249. },
  3250. "404": {
  3251. "description": "SessionNotFoundError",
  3252. "content": {
  3253. "application/json": {
  3254. "schema": {
  3255. "$ref": "#/components/schemas/SessionNotFoundError"
  3256. }
  3257. }
  3258. }
  3259. },
  3260. "409": {
  3261. "description": "ConflictError",
  3262. "content": {
  3263. "application/json": {
  3264. "schema": {
  3265. "$ref": "#/components/schemas/ConflictError"
  3266. }
  3267. }
  3268. }
  3269. }
  3270. },
  3271. "description": "Change a queued inbox item to steer delivery and wake session execution.",
  3272. "summary": "Steer queued item"
  3273. }
  3274. },
  3275. "/api/session/{sessionID}/inbox/{inboxID}/queue": {
  3276. "post": {
  3277. "tags": ["session"],
  3278. "operationId": "v2.session.inbox.queue",
  3279. "parameters": [
  3280. {
  3281. "name": "sessionID",
  3282. "in": "path",
  3283. "schema": {
  3284. "type": "string",
  3285. "allOf": [
  3286. {
  3287. "pattern": "^ses"
  3288. }
  3289. ]
  3290. },
  3291. "required": true
  3292. },
  3293. {
  3294. "name": "inboxID",
  3295. "in": "path",
  3296. "schema": {
  3297. "type": "string",
  3298. "allOf": [
  3299. {
  3300. "pattern": "^msg_"
  3301. }
  3302. ]
  3303. },
  3304. "required": true
  3305. }
  3306. ],
  3307. "security": [],
  3308. "responses": {
  3309. "204": {
  3310. "description": "<No Content>"
  3311. },
  3312. "400": {
  3313. "description": "InvalidRequestError",
  3314. "content": {
  3315. "application/json": {
  3316. "schema": {
  3317. "$ref": "#/components/schemas/InvalidRequestError"
  3318. }
  3319. }
  3320. }
  3321. },
  3322. "401": {
  3323. "description": "UnauthorizedError",
  3324. "content": {
  3325. "application/json": {
  3326. "schema": {
  3327. "$ref": "#/components/schemas/UnauthorizedError"
  3328. }
  3329. }
  3330. }
  3331. },
  3332. "404": {
  3333. "description": "SessionNotFoundError",
  3334. "content": {
  3335. "application/json": {
  3336. "schema": {
  3337. "$ref": "#/components/schemas/SessionNotFoundError"
  3338. }
  3339. }
  3340. }
  3341. },
  3342. "409": {
  3343. "description": "ConflictError",
  3344. "content": {
  3345. "application/json": {
  3346. "schema": {
  3347. "$ref": "#/components/schemas/ConflictError"
  3348. }
  3349. }
  3350. }
  3351. }
  3352. },
  3353. "description": "Change a steered inbox item to queued delivery.",
  3354. "summary": "Queue steered item"
  3355. }
  3356. },
  3357. "/api/session/{sessionID}/instructions/entries": {
  3358. "get": {
  3359. "tags": ["session"],
  3360. "operationId": "v2.session.instructions.entry.list",
  3361. "parameters": [
  3362. {
  3363. "name": "sessionID",
  3364. "in": "path",
  3365. "schema": {
  3366. "type": "string",
  3367. "allOf": [
  3368. {
  3369. "pattern": "^ses"
  3370. }
  3371. ]
  3372. },
  3373. "required": true
  3374. }
  3375. ],
  3376. "security": [],
  3377. "responses": {
  3378. "200": {
  3379. "description": "Success",
  3380. "content": {
  3381. "application/json": {
  3382. "schema": {
  3383. "type": "object",
  3384. "properties": {
  3385. "data": {
  3386. "type": "array",
  3387. "items": {
  3388. "$ref": "#/components/schemas/InstructionEntry.Info"
  3389. }
  3390. }
  3391. },
  3392. "required": ["data"],
  3393. "additionalProperties": false
  3394. }
  3395. }
  3396. }
  3397. },
  3398. "400": {
  3399. "description": "InvalidRequestError",
  3400. "content": {
  3401. "application/json": {
  3402. "schema": {
  3403. "$ref": "#/components/schemas/InvalidRequestError"
  3404. }
  3405. }
  3406. }
  3407. },
  3408. "401": {
  3409. "description": "UnauthorizedError",
  3410. "content": {
  3411. "application/json": {
  3412. "schema": {
  3413. "$ref": "#/components/schemas/UnauthorizedError"
  3414. }
  3415. }
  3416. }
  3417. },
  3418. "404": {
  3419. "description": "SessionNotFoundError",
  3420. "content": {
  3421. "application/json": {
  3422. "schema": {
  3423. "anyOf": [
  3424. {
  3425. "$ref": "#/components/schemas/SessionNotFoundError"
  3426. },
  3427. {
  3428. "$ref": "#/components/schemas/SessionNotFoundError"
  3429. }
  3430. ]
  3431. }
  3432. }
  3433. }
  3434. }
  3435. },
  3436. "description": "List API-managed instruction entries attached to the session.",
  3437. "summary": "List instruction entries"
  3438. }
  3439. },
  3440. "/api/session/{sessionID}/instructions/entries/{key}": {
  3441. "put": {
  3442. "tags": ["session"],
  3443. "operationId": "v2.session.instructions.entry.put",
  3444. "parameters": [
  3445. {
  3446. "name": "sessionID",
  3447. "in": "path",
  3448. "schema": {
  3449. "type": "string",
  3450. "allOf": [
  3451. {
  3452. "pattern": "^ses"
  3453. }
  3454. ]
  3455. },
  3456. "required": true
  3457. },
  3458. {
  3459. "name": "key",
  3460. "in": "path",
  3461. "schema": {
  3462. "$ref": "#/components/schemas/InstructionEntry.Key"
  3463. },
  3464. "required": true
  3465. }
  3466. ],
  3467. "security": [],
  3468. "responses": {
  3469. "204": {
  3470. "description": "<No Content>"
  3471. },
  3472. "400": {
  3473. "description": "InvalidRequestError",
  3474. "content": {
  3475. "application/json": {
  3476. "schema": {
  3477. "$ref": "#/components/schemas/InvalidRequestError"
  3478. }
  3479. }
  3480. }
  3481. },
  3482. "401": {
  3483. "description": "UnauthorizedError",
  3484. "content": {
  3485. "application/json": {
  3486. "schema": {
  3487. "$ref": "#/components/schemas/UnauthorizedError"
  3488. }
  3489. }
  3490. }
  3491. },
  3492. "404": {
  3493. "description": "SessionNotFoundError",
  3494. "content": {
  3495. "application/json": {
  3496. "schema": {
  3497. "anyOf": [
  3498. {
  3499. "$ref": "#/components/schemas/SessionNotFoundError"
  3500. },
  3501. {
  3502. "$ref": "#/components/schemas/SessionNotFoundError"
  3503. }
  3504. ]
  3505. }
  3506. }
  3507. }
  3508. },
  3509. "413": {
  3510. "description": "InstructionEntryValueTooLargeError",
  3511. "content": {
  3512. "application/json": {
  3513. "schema": {
  3514. "$ref": "#/components/schemas/InstructionEntryValueTooLargeError"
  3515. }
  3516. }
  3517. }
  3518. }
  3519. },
  3520. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  3521. "summary": "Put instruction entry",
  3522. "requestBody": {
  3523. "content": {
  3524. "application/json": {
  3525. "schema": {
  3526. "type": "object",
  3527. "properties": {
  3528. "value": {}
  3529. },
  3530. "required": ["value"],
  3531. "additionalProperties": false
  3532. }
  3533. }
  3534. },
  3535. "required": true
  3536. }
  3537. },
  3538. "delete": {
  3539. "tags": ["session"],
  3540. "operationId": "v2.session.instructions.entry.remove",
  3541. "parameters": [
  3542. {
  3543. "name": "sessionID",
  3544. "in": "path",
  3545. "schema": {
  3546. "type": "string",
  3547. "allOf": [
  3548. {
  3549. "pattern": "^ses"
  3550. }
  3551. ]
  3552. },
  3553. "required": true
  3554. },
  3555. {
  3556. "name": "key",
  3557. "in": "path",
  3558. "schema": {
  3559. "$ref": "#/components/schemas/InstructionEntry.Key"
  3560. },
  3561. "required": true
  3562. }
  3563. ],
  3564. "security": [],
  3565. "responses": {
  3566. "204": {
  3567. "description": "<No Content>"
  3568. },
  3569. "400": {
  3570. "description": "InvalidRequestError",
  3571. "content": {
  3572. "application/json": {
  3573. "schema": {
  3574. "$ref": "#/components/schemas/InvalidRequestError"
  3575. }
  3576. }
  3577. }
  3578. },
  3579. "401": {
  3580. "description": "UnauthorizedError",
  3581. "content": {
  3582. "application/json": {
  3583. "schema": {
  3584. "$ref": "#/components/schemas/UnauthorizedError"
  3585. }
  3586. }
  3587. }
  3588. },
  3589. "404": {
  3590. "description": "SessionNotFoundError",
  3591. "content": {
  3592. "application/json": {
  3593. "schema": {
  3594. "anyOf": [
  3595. {
  3596. "$ref": "#/components/schemas/SessionNotFoundError"
  3597. },
  3598. {
  3599. "$ref": "#/components/schemas/SessionNotFoundError"
  3600. }
  3601. ]
  3602. }
  3603. }
  3604. }
  3605. }
  3606. },
  3607. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  3608. "summary": "Remove instruction entry"
  3609. }
  3610. },
  3611. "/api/session/{sessionID}/generate": {
  3612. "post": {
  3613. "tags": ["session"],
  3614. "operationId": "v2.session.generate",
  3615. "parameters": [
  3616. {
  3617. "name": "sessionID",
  3618. "in": "path",
  3619. "schema": {
  3620. "type": "string",
  3621. "allOf": [
  3622. {
  3623. "pattern": "^ses"
  3624. }
  3625. ]
  3626. },
  3627. "required": true
  3628. }
  3629. ],
  3630. "security": [],
  3631. "responses": {
  3632. "200": {
  3633. "description": "SessionGenerateResponse",
  3634. "content": {
  3635. "application/json": {
  3636. "schema": {
  3637. "$ref": "#/components/schemas/SessionGenerateResponse"
  3638. }
  3639. }
  3640. }
  3641. },
  3642. "400": {
  3643. "description": "InvalidRequestError",
  3644. "content": {
  3645. "application/json": {
  3646. "schema": {
  3647. "$ref": "#/components/schemas/InvalidRequestError"
  3648. }
  3649. }
  3650. }
  3651. },
  3652. "401": {
  3653. "description": "UnauthorizedError",
  3654. "content": {
  3655. "application/json": {
  3656. "schema": {
  3657. "$ref": "#/components/schemas/UnauthorizedError"
  3658. }
  3659. }
  3660. }
  3661. },
  3662. "404": {
  3663. "description": "SessionNotFoundError",
  3664. "content": {
  3665. "application/json": {
  3666. "schema": {
  3667. "anyOf": [
  3668. {
  3669. "$ref": "#/components/schemas/SessionNotFoundError"
  3670. },
  3671. {
  3672. "$ref": "#/components/schemas/SessionNotFoundError"
  3673. }
  3674. ]
  3675. }
  3676. }
  3677. }
  3678. },
  3679. "503": {
  3680. "description": "ServiceUnavailableError",
  3681. "content": {
  3682. "application/json": {
  3683. "schema": {
  3684. "$ref": "#/components/schemas/ServiceUnavailableError"
  3685. }
  3686. }
  3687. }
  3688. }
  3689. },
  3690. "description": "Generate transient text from the current session context without mutating session history.",
  3691. "summary": "Generate text from session context",
  3692. "requestBody": {
  3693. "content": {
  3694. "application/json": {
  3695. "schema": {
  3696. "type": "object",
  3697. "properties": {
  3698. "prompt": {
  3699. "type": "string"
  3700. }
  3701. },
  3702. "required": ["prompt"],
  3703. "additionalProperties": false
  3704. }
  3705. }
  3706. },
  3707. "required": true
  3708. }
  3709. }
  3710. },
  3711. "/api/experimental/session/{sessionID}/log": {
  3712. "get": {
  3713. "tags": ["session"],
  3714. "operationId": "v2.session.log",
  3715. "parameters": [
  3716. {
  3717. "name": "sessionID",
  3718. "in": "path",
  3719. "schema": {
  3720. "type": "string",
  3721. "allOf": [
  3722. {
  3723. "pattern": "^ses"
  3724. }
  3725. ]
  3726. },
  3727. "required": true
  3728. },
  3729. {
  3730. "name": "after",
  3731. "in": "query",
  3732. "schema": {
  3733. "anyOf": [
  3734. {
  3735. "type": "string"
  3736. },
  3737. {
  3738. "type": "null"
  3739. }
  3740. ]
  3741. },
  3742. "required": false
  3743. },
  3744. {
  3745. "name": "follow",
  3746. "in": "query",
  3747. "schema": {
  3748. "anyOf": [
  3749. {
  3750. "type": "string",
  3751. "enum": ["true", "false"]
  3752. },
  3753. {
  3754. "type": "null"
  3755. }
  3756. ]
  3757. },
  3758. "required": false
  3759. }
  3760. ],
  3761. "security": [],
  3762. "responses": {
  3763. "200": {
  3764. "description": "Success",
  3765. "content": {
  3766. "text/event-stream": {
  3767. "schema": {
  3768. "type": "object",
  3769. "properties": {
  3770. "id": {
  3771. "anyOf": [
  3772. {
  3773. "type": "string"
  3774. },
  3775. {
  3776. "type": "null"
  3777. }
  3778. ]
  3779. },
  3780. "event": {
  3781. "type": "string"
  3782. },
  3783. "data": {
  3784. "$ref": "#/components/schemas/SessionLogItemJsonString"
  3785. }
  3786. },
  3787. "required": ["id", "event", "data"],
  3788. "additionalProperties": false
  3789. },
  3790. "x-effect-stream": {
  3791. "encoding": "sse",
  3792. "causeSchema": {
  3793. "type": "array",
  3794. "items": {
  3795. "anyOf": [
  3796. {
  3797. "type": "object",
  3798. "properties": {
  3799. "_tag": {
  3800. "type": "string",
  3801. "enum": ["Fail"]
  3802. },
  3803. "error": {
  3804. "not": {}
  3805. }
  3806. },
  3807. "required": ["_tag", "error"],
  3808. "additionalProperties": false
  3809. },
  3810. {
  3811. "type": "object",
  3812. "properties": {
  3813. "_tag": {
  3814. "type": "string",
  3815. "enum": ["Die"]
  3816. },
  3817. "defect": {}
  3818. },
  3819. "required": ["_tag", "defect"],
  3820. "additionalProperties": false
  3821. },
  3822. {
  3823. "type": "object",
  3824. "properties": {
  3825. "_tag": {
  3826. "type": "string",
  3827. "enum": ["Interrupt"]
  3828. },
  3829. "fiberId": {
  3830. "anyOf": [
  3831. {
  3832. "type": "number"
  3833. },
  3834. {
  3835. "type": "null"
  3836. }
  3837. ]
  3838. }
  3839. },
  3840. "required": ["_tag", "fiberId"],
  3841. "additionalProperties": false
  3842. }
  3843. ]
  3844. }
  3845. },
  3846. "errorSchema": {
  3847. "not": {}
  3848. },
  3849. "failureEvent": "effect/httpapi/stream/failure"
  3850. }
  3851. }
  3852. }
  3853. },
  3854. "400": {
  3855. "description": "InvalidRequestError",
  3856. "content": {
  3857. "application/json": {
  3858. "schema": {
  3859. "$ref": "#/components/schemas/InvalidRequestError"
  3860. }
  3861. }
  3862. }
  3863. },
  3864. "401": {
  3865. "description": "UnauthorizedError",
  3866. "content": {
  3867. "application/json": {
  3868. "schema": {
  3869. "$ref": "#/components/schemas/UnauthorizedError"
  3870. }
  3871. }
  3872. }
  3873. },
  3874. "404": {
  3875. "description": "SessionNotFoundError",
  3876. "content": {
  3877. "application/json": {
  3878. "schema": {
  3879. "$ref": "#/components/schemas/SessionNotFoundError"
  3880. }
  3881. }
  3882. }
  3883. }
  3884. },
  3885. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3886. "summary": "Read the session log"
  3887. }
  3888. },
  3889. "/api/session/{sessionID}/interrupt": {
  3890. "post": {
  3891. "tags": ["session"],
  3892. "operationId": "v2.session.interrupt",
  3893. "parameters": [
  3894. {
  3895. "name": "sessionID",
  3896. "in": "path",
  3897. "schema": {
  3898. "type": "string",
  3899. "allOf": [
  3900. {
  3901. "pattern": "^ses"
  3902. }
  3903. ]
  3904. },
  3905. "required": true
  3906. },
  3907. {
  3908. "name": "continue",
  3909. "in": "query",
  3910. "schema": {
  3911. "anyOf": [
  3912. {
  3913. "type": "string",
  3914. "enum": ["true", "false"]
  3915. },
  3916. {
  3917. "type": "null"
  3918. }
  3919. ]
  3920. },
  3921. "required": false
  3922. }
  3923. ],
  3924. "security": [],
  3925. "responses": {
  3926. "204": {
  3927. "description": "<No Content>"
  3928. },
  3929. "400": {
  3930. "description": "InvalidRequestError",
  3931. "content": {
  3932. "application/json": {
  3933. "schema": {
  3934. "$ref": "#/components/schemas/InvalidRequestError"
  3935. }
  3936. }
  3937. }
  3938. },
  3939. "401": {
  3940. "description": "UnauthorizedError",
  3941. "content": {
  3942. "application/json": {
  3943. "schema": {
  3944. "$ref": "#/components/schemas/UnauthorizedError"
  3945. }
  3946. }
  3947. }
  3948. },
  3949. "404": {
  3950. "description": "SessionNotFoundError",
  3951. "content": {
  3952. "application/json": {
  3953. "schema": {
  3954. "anyOf": [
  3955. {
  3956. "$ref": "#/components/schemas/SessionNotFoundError"
  3957. },
  3958. {
  3959. "$ref": "#/components/schemas/SessionNotFoundError"
  3960. }
  3961. ]
  3962. }
  3963. }
  3964. }
  3965. }
  3966. },
  3967. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op. When continue=true, execution resumes if durable inbox work remains after interruption.",
  3968. "summary": "Interrupt session execution"
  3969. }
  3970. },
  3971. "/api/session/{sessionID}/background": {
  3972. "post": {
  3973. "tags": ["session"],
  3974. "operationId": "v2.session.background",
  3975. "parameters": [
  3976. {
  3977. "name": "sessionID",
  3978. "in": "path",
  3979. "schema": {
  3980. "type": "string",
  3981. "allOf": [
  3982. {
  3983. "pattern": "^ses"
  3984. }
  3985. ]
  3986. },
  3987. "required": true
  3988. }
  3989. ],
  3990. "security": [],
  3991. "responses": {
  3992. "204": {
  3993. "description": "<No Content>"
  3994. },
  3995. "400": {
  3996. "description": "InvalidRequestError",
  3997. "content": {
  3998. "application/json": {
  3999. "schema": {
  4000. "$ref": "#/components/schemas/InvalidRequestError"
  4001. }
  4002. }
  4003. }
  4004. },
  4005. "401": {
  4006. "description": "UnauthorizedError",
  4007. "content": {
  4008. "application/json": {
  4009. "schema": {
  4010. "$ref": "#/components/schemas/UnauthorizedError"
  4011. }
  4012. }
  4013. }
  4014. },
  4015. "404": {
  4016. "description": "SessionNotFoundError",
  4017. "content": {
  4018. "application/json": {
  4019. "schema": {
  4020. "anyOf": [
  4021. {
  4022. "$ref": "#/components/schemas/SessionNotFoundError"
  4023. },
  4024. {
  4025. "$ref": "#/components/schemas/SessionNotFoundError"
  4026. }
  4027. ]
  4028. }
  4029. }
  4030. }
  4031. }
  4032. },
  4033. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  4034. "summary": "Background blocking session tools"
  4035. }
  4036. },
  4037. "/api/session/{sessionID}/message/{messageID}": {
  4038. "get": {
  4039. "tags": ["session"],
  4040. "operationId": "v2.session.message",
  4041. "parameters": [
  4042. {
  4043. "name": "sessionID",
  4044. "in": "path",
  4045. "schema": {
  4046. "type": "string",
  4047. "allOf": [
  4048. {
  4049. "pattern": "^ses"
  4050. }
  4051. ]
  4052. },
  4053. "required": true
  4054. },
  4055. {
  4056. "name": "messageID",
  4057. "in": "path",
  4058. "schema": {
  4059. "type": "string",
  4060. "allOf": [
  4061. {
  4062. "pattern": "^msg_"
  4063. }
  4064. ]
  4065. },
  4066. "required": true
  4067. }
  4068. ],
  4069. "security": [],
  4070. "responses": {
  4071. "200": {
  4072. "description": "Success",
  4073. "content": {
  4074. "application/json": {
  4075. "schema": {
  4076. "type": "object",
  4077. "properties": {
  4078. "data": {
  4079. "$ref": "#/components/schemas/Session.Message.Info"
  4080. }
  4081. },
  4082. "required": ["data"],
  4083. "additionalProperties": false
  4084. }
  4085. }
  4086. }
  4087. },
  4088. "400": {
  4089. "description": "InvalidRequestError",
  4090. "content": {
  4091. "application/json": {
  4092. "schema": {
  4093. "$ref": "#/components/schemas/InvalidRequestError"
  4094. }
  4095. }
  4096. }
  4097. },
  4098. "401": {
  4099. "description": "UnauthorizedError",
  4100. "content": {
  4101. "application/json": {
  4102. "schema": {
  4103. "$ref": "#/components/schemas/UnauthorizedError"
  4104. }
  4105. }
  4106. }
  4107. },
  4108. "404": {
  4109. "description": "SessionNotFoundError | MessageNotFoundError",
  4110. "content": {
  4111. "application/json": {
  4112. "schema": {
  4113. "anyOf": [
  4114. {
  4115. "$ref": "#/components/schemas/SessionNotFoundError"
  4116. },
  4117. {
  4118. "$ref": "#/components/schemas/MessageNotFoundError"
  4119. }
  4120. ]
  4121. }
  4122. }
  4123. }
  4124. }
  4125. },
  4126. "description": "Retrieve one projected message owned by the Session.",
  4127. "summary": "Get session message"
  4128. }
  4129. },
  4130. "/api/session/{sessionID}/message": {
  4131. "get": {
  4132. "tags": ["session"],
  4133. "operationId": "v2.message.list",
  4134. "parameters": [
  4135. {
  4136. "name": "sessionID",
  4137. "in": "path",
  4138. "schema": {
  4139. "type": "string",
  4140. "allOf": [
  4141. {
  4142. "pattern": "^ses"
  4143. }
  4144. ]
  4145. },
  4146. "required": true
  4147. },
  4148. {
  4149. "name": "limit",
  4150. "in": "query",
  4151. "schema": {
  4152. "anyOf": [
  4153. {
  4154. "type": "string"
  4155. },
  4156. {
  4157. "type": "null"
  4158. }
  4159. ],
  4160. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  4161. },
  4162. "required": false
  4163. },
  4164. {
  4165. "name": "order",
  4166. "in": "query",
  4167. "schema": {
  4168. "anyOf": [
  4169. {
  4170. "type": "string",
  4171. "enum": ["asc", "desc"]
  4172. },
  4173. {
  4174. "type": "null"
  4175. }
  4176. ],
  4177. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  4178. },
  4179. "required": false
  4180. },
  4181. {
  4182. "name": "cursor",
  4183. "in": "query",
  4184. "schema": {
  4185. "anyOf": [
  4186. {
  4187. "type": "string",
  4188. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  4189. },
  4190. {
  4191. "type": "null"
  4192. }
  4193. ]
  4194. },
  4195. "required": false
  4196. }
  4197. ],
  4198. "security": [],
  4199. "responses": {
  4200. "200": {
  4201. "description": "SessionMessagesResponse",
  4202. "content": {
  4203. "application/json": {
  4204. "schema": {
  4205. "$ref": "#/components/schemas/SessionMessagesResponse"
  4206. }
  4207. }
  4208. }
  4209. },
  4210. "400": {
  4211. "description": "InvalidCursorError | InvalidRequestError",
  4212. "content": {
  4213. "application/json": {
  4214. "schema": {
  4215. "anyOf": [
  4216. {
  4217. "$ref": "#/components/schemas/InvalidCursorError"
  4218. },
  4219. {
  4220. "$ref": "#/components/schemas/InvalidRequestError"
  4221. }
  4222. ]
  4223. }
  4224. }
  4225. }
  4226. },
  4227. "401": {
  4228. "description": "UnauthorizedError",
  4229. "content": {
  4230. "application/json": {
  4231. "schema": {
  4232. "$ref": "#/components/schemas/UnauthorizedError"
  4233. }
  4234. }
  4235. }
  4236. },
  4237. "404": {
  4238. "description": "SessionNotFoundError",
  4239. "content": {
  4240. "application/json": {
  4241. "schema": {
  4242. "$ref": "#/components/schemas/SessionNotFoundError"
  4243. }
  4244. }
  4245. }
  4246. },
  4247. "500": {
  4248. "description": "UnknownError",
  4249. "content": {
  4250. "application/json": {
  4251. "schema": {
  4252. "$ref": "#/components/schemas/UnknownError"
  4253. }
  4254. }
  4255. }
  4256. }
  4257. },
  4258. "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.",
  4259. "summary": "Get session messages"
  4260. }
  4261. },
  4262. "/api/model": {
  4263. "get": {
  4264. "tags": ["model"],
  4265. "operationId": "v2.model.list",
  4266. "parameters": [
  4267. {
  4268. "name": "location",
  4269. "in": "query",
  4270. "schema": {
  4271. "anyOf": [
  4272. {
  4273. "type": "object",
  4274. "properties": {
  4275. "directory": {
  4276. "anyOf": [
  4277. {
  4278. "type": "string"
  4279. },
  4280. {
  4281. "type": "null"
  4282. }
  4283. ]
  4284. },
  4285. "workspace": {
  4286. "anyOf": [
  4287. {
  4288. "type": "string"
  4289. },
  4290. {
  4291. "type": "null"
  4292. }
  4293. ]
  4294. }
  4295. },
  4296. "additionalProperties": false
  4297. },
  4298. {
  4299. "type": "null"
  4300. }
  4301. ]
  4302. },
  4303. "required": false,
  4304. "style": "deepObject",
  4305. "explode": true
  4306. }
  4307. ],
  4308. "security": [],
  4309. "responses": {
  4310. "200": {
  4311. "description": "Success",
  4312. "content": {
  4313. "application/json": {
  4314. "schema": {
  4315. "type": "object",
  4316. "properties": {
  4317. "location": {
  4318. "$ref": "#/components/schemas/Location.Info"
  4319. },
  4320. "data": {
  4321. "type": "array",
  4322. "items": {
  4323. "$ref": "#/components/schemas/Model.Info"
  4324. }
  4325. }
  4326. },
  4327. "required": ["location", "data"],
  4328. "additionalProperties": false
  4329. }
  4330. }
  4331. }
  4332. },
  4333. "400": {
  4334. "description": "InvalidRequestError",
  4335. "content": {
  4336. "application/json": {
  4337. "schema": {
  4338. "$ref": "#/components/schemas/InvalidRequestError"
  4339. }
  4340. }
  4341. }
  4342. },
  4343. "401": {
  4344. "description": "UnauthorizedError",
  4345. "content": {
  4346. "application/json": {
  4347. "schema": {
  4348. "$ref": "#/components/schemas/UnauthorizedError"
  4349. }
  4350. }
  4351. }
  4352. },
  4353. "503": {
  4354. "description": "ServiceUnavailableError",
  4355. "content": {
  4356. "application/json": {
  4357. "schema": {
  4358. "$ref": "#/components/schemas/ServiceUnavailableError"
  4359. }
  4360. }
  4361. }
  4362. }
  4363. },
  4364. "description": "Retrieve the current snapshot of available models ordered by release date. The snapshot may precede initial plugin settlement.",
  4365. "summary": "List models"
  4366. }
  4367. },
  4368. "/api/model/default": {
  4369. "get": {
  4370. "tags": ["model"],
  4371. "operationId": "v2.model.default",
  4372. "parameters": [
  4373. {
  4374. "name": "location",
  4375. "in": "query",
  4376. "schema": {
  4377. "anyOf": [
  4378. {
  4379. "type": "object",
  4380. "properties": {
  4381. "directory": {
  4382. "anyOf": [
  4383. {
  4384. "type": "string"
  4385. },
  4386. {
  4387. "type": "null"
  4388. }
  4389. ]
  4390. },
  4391. "workspace": {
  4392. "anyOf": [
  4393. {
  4394. "type": "string"
  4395. },
  4396. {
  4397. "type": "null"
  4398. }
  4399. ]
  4400. }
  4401. },
  4402. "additionalProperties": false
  4403. },
  4404. {
  4405. "type": "null"
  4406. }
  4407. ]
  4408. },
  4409. "required": false,
  4410. "style": "deepObject",
  4411. "explode": true
  4412. }
  4413. ],
  4414. "security": [],
  4415. "responses": {
  4416. "200": {
  4417. "description": "Success",
  4418. "content": {
  4419. "application/json": {
  4420. "schema": {
  4421. "type": "object",
  4422. "properties": {
  4423. "location": {
  4424. "$ref": "#/components/schemas/Location.Info"
  4425. },
  4426. "data": {
  4427. "anyOf": [
  4428. {
  4429. "$ref": "#/components/schemas/Model.Info"
  4430. },
  4431. {
  4432. "type": "null"
  4433. }
  4434. ]
  4435. }
  4436. },
  4437. "required": ["location", "data"],
  4438. "additionalProperties": false
  4439. }
  4440. }
  4441. }
  4442. },
  4443. "400": {
  4444. "description": "InvalidRequestError",
  4445. "content": {
  4446. "application/json": {
  4447. "schema": {
  4448. "$ref": "#/components/schemas/InvalidRequestError"
  4449. }
  4450. }
  4451. }
  4452. },
  4453. "401": {
  4454. "description": "UnauthorizedError",
  4455. "content": {
  4456. "application/json": {
  4457. "schema": {
  4458. "$ref": "#/components/schemas/UnauthorizedError"
  4459. }
  4460. }
  4461. }
  4462. },
  4463. "503": {
  4464. "description": "ServiceUnavailableError",
  4465. "content": {
  4466. "application/json": {
  4467. "schema": {
  4468. "$ref": "#/components/schemas/ServiceUnavailableError"
  4469. }
  4470. }
  4471. }
  4472. }
  4473. },
  4474. "description": "Retrieve the model used when a session has no explicit model selection.",
  4475. "summary": "Get default model"
  4476. }
  4477. },
  4478. "/api/generate": {
  4479. "post": {
  4480. "tags": ["generate"],
  4481. "operationId": "v2.generate.text",
  4482. "parameters": [
  4483. {
  4484. "name": "location",
  4485. "in": "query",
  4486. "schema": {
  4487. "anyOf": [
  4488. {
  4489. "type": "object",
  4490. "properties": {
  4491. "directory": {
  4492. "anyOf": [
  4493. {
  4494. "type": "string"
  4495. },
  4496. {
  4497. "type": "null"
  4498. }
  4499. ]
  4500. },
  4501. "workspace": {
  4502. "anyOf": [
  4503. {
  4504. "type": "string"
  4505. },
  4506. {
  4507. "type": "null"
  4508. }
  4509. ]
  4510. }
  4511. },
  4512. "additionalProperties": false
  4513. },
  4514. {
  4515. "type": "null"
  4516. }
  4517. ]
  4518. },
  4519. "required": false,
  4520. "style": "deepObject",
  4521. "explode": true
  4522. }
  4523. ],
  4524. "security": [],
  4525. "responses": {
  4526. "200": {
  4527. "description": "GenerateTextResponse",
  4528. "content": {
  4529. "application/json": {
  4530. "schema": {
  4531. "$ref": "#/components/schemas/GenerateTextResponse"
  4532. }
  4533. }
  4534. }
  4535. },
  4536. "400": {
  4537. "description": "InvalidRequestError",
  4538. "content": {
  4539. "application/json": {
  4540. "schema": {
  4541. "anyOf": [
  4542. {
  4543. "$ref": "#/components/schemas/InvalidRequestError1"
  4544. },
  4545. {
  4546. "$ref": "#/components/schemas/InvalidRequestError"
  4547. }
  4548. ]
  4549. }
  4550. }
  4551. }
  4552. },
  4553. "401": {
  4554. "description": "UnauthorizedError",
  4555. "content": {
  4556. "application/json": {
  4557. "schema": {
  4558. "$ref": "#/components/schemas/UnauthorizedError"
  4559. }
  4560. }
  4561. }
  4562. },
  4563. "503": {
  4564. "description": "ServiceUnavailableError",
  4565. "content": {
  4566. "application/json": {
  4567. "schema": {
  4568. "$ref": "#/components/schemas/ServiceUnavailableError"
  4569. }
  4570. }
  4571. }
  4572. }
  4573. },
  4574. "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.",
  4575. "summary": "Generate text",
  4576. "requestBody": {
  4577. "content": {
  4578. "application/json": {
  4579. "schema": {
  4580. "type": "object",
  4581. "properties": {
  4582. "prompt": {
  4583. "type": "string"
  4584. },
  4585. "model": {
  4586. "anyOf": [
  4587. {
  4588. "$ref": "#/components/schemas/Model.Ref"
  4589. },
  4590. {
  4591. "type": "null"
  4592. }
  4593. ]
  4594. }
  4595. },
  4596. "required": ["prompt"],
  4597. "additionalProperties": false
  4598. }
  4599. }
  4600. },
  4601. "required": true
  4602. }
  4603. }
  4604. },
  4605. "/api/provider": {
  4606. "get": {
  4607. "tags": ["provider"],
  4608. "operationId": "v2.provider.list",
  4609. "parameters": [
  4610. {
  4611. "name": "location",
  4612. "in": "query",
  4613. "schema": {
  4614. "anyOf": [
  4615. {
  4616. "type": "object",
  4617. "properties": {
  4618. "directory": {
  4619. "anyOf": [
  4620. {
  4621. "type": "string"
  4622. },
  4623. {
  4624. "type": "null"
  4625. }
  4626. ]
  4627. },
  4628. "workspace": {
  4629. "anyOf": [
  4630. {
  4631. "type": "string"
  4632. },
  4633. {
  4634. "type": "null"
  4635. }
  4636. ]
  4637. }
  4638. },
  4639. "additionalProperties": false
  4640. },
  4641. {
  4642. "type": "null"
  4643. }
  4644. ]
  4645. },
  4646. "required": false,
  4647. "style": "deepObject",
  4648. "explode": true
  4649. }
  4650. ],
  4651. "security": [],
  4652. "responses": {
  4653. "200": {
  4654. "description": "Success",
  4655. "content": {
  4656. "application/json": {
  4657. "schema": {
  4658. "type": "object",
  4659. "properties": {
  4660. "location": {
  4661. "$ref": "#/components/schemas/Location.Info"
  4662. },
  4663. "data": {
  4664. "type": "array",
  4665. "items": {
  4666. "$ref": "#/components/schemas/Provider.Info"
  4667. }
  4668. }
  4669. },
  4670. "required": ["location", "data"],
  4671. "additionalProperties": false
  4672. }
  4673. }
  4674. }
  4675. },
  4676. "400": {
  4677. "description": "InvalidRequestError",
  4678. "content": {
  4679. "application/json": {
  4680. "schema": {
  4681. "$ref": "#/components/schemas/InvalidRequestError"
  4682. }
  4683. }
  4684. }
  4685. },
  4686. "401": {
  4687. "description": "UnauthorizedError",
  4688. "content": {
  4689. "application/json": {
  4690. "schema": {
  4691. "$ref": "#/components/schemas/UnauthorizedError"
  4692. }
  4693. }
  4694. }
  4695. },
  4696. "503": {
  4697. "description": "ServiceUnavailableError",
  4698. "content": {
  4699. "application/json": {
  4700. "schema": {
  4701. "$ref": "#/components/schemas/ServiceUnavailableError"
  4702. }
  4703. }
  4704. }
  4705. }
  4706. },
  4707. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4708. "summary": "List providers"
  4709. }
  4710. },
  4711. "/api/provider/{providerID}": {
  4712. "get": {
  4713. "tags": ["provider"],
  4714. "operationId": "v2.provider.get",
  4715. "parameters": [
  4716. {
  4717. "name": "providerID",
  4718. "in": "path",
  4719. "schema": {
  4720. "type": "string"
  4721. },
  4722. "required": true
  4723. },
  4724. {
  4725. "name": "location",
  4726. "in": "query",
  4727. "schema": {
  4728. "anyOf": [
  4729. {
  4730. "type": "object",
  4731. "properties": {
  4732. "directory": {
  4733. "anyOf": [
  4734. {
  4735. "type": "string"
  4736. },
  4737. {
  4738. "type": "null"
  4739. }
  4740. ]
  4741. },
  4742. "workspace": {
  4743. "anyOf": [
  4744. {
  4745. "type": "string"
  4746. },
  4747. {
  4748. "type": "null"
  4749. }
  4750. ]
  4751. }
  4752. },
  4753. "additionalProperties": false
  4754. },
  4755. {
  4756. "type": "null"
  4757. }
  4758. ]
  4759. },
  4760. "required": false,
  4761. "style": "deepObject",
  4762. "explode": true
  4763. }
  4764. ],
  4765. "security": [],
  4766. "responses": {
  4767. "200": {
  4768. "description": "Success",
  4769. "content": {
  4770. "application/json": {
  4771. "schema": {
  4772. "type": "object",
  4773. "properties": {
  4774. "location": {
  4775. "$ref": "#/components/schemas/Location.Info"
  4776. },
  4777. "data": {
  4778. "$ref": "#/components/schemas/Provider.Info"
  4779. }
  4780. },
  4781. "required": ["location", "data"],
  4782. "additionalProperties": false
  4783. }
  4784. }
  4785. }
  4786. },
  4787. "400": {
  4788. "description": "InvalidRequestError",
  4789. "content": {
  4790. "application/json": {
  4791. "schema": {
  4792. "$ref": "#/components/schemas/InvalidRequestError"
  4793. }
  4794. }
  4795. }
  4796. },
  4797. "401": {
  4798. "description": "UnauthorizedError",
  4799. "content": {
  4800. "application/json": {
  4801. "schema": {
  4802. "$ref": "#/components/schemas/UnauthorizedError"
  4803. }
  4804. }
  4805. }
  4806. },
  4807. "404": {
  4808. "description": "ProviderNotFoundError",
  4809. "content": {
  4810. "application/json": {
  4811. "schema": {
  4812. "$ref": "#/components/schemas/ProviderNotFoundError"
  4813. }
  4814. }
  4815. }
  4816. },
  4817. "503": {
  4818. "description": "ServiceUnavailableError",
  4819. "content": {
  4820. "application/json": {
  4821. "schema": {
  4822. "$ref": "#/components/schemas/ServiceUnavailableError"
  4823. }
  4824. }
  4825. }
  4826. }
  4827. },
  4828. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4829. "summary": "Get provider"
  4830. }
  4831. },
  4832. "/api/integration": {
  4833. "get": {
  4834. "tags": ["integration"],
  4835. "operationId": "v2.integration.list",
  4836. "parameters": [
  4837. {
  4838. "name": "location",
  4839. "in": "query",
  4840. "schema": {
  4841. "anyOf": [
  4842. {
  4843. "type": "object",
  4844. "properties": {
  4845. "directory": {
  4846. "anyOf": [
  4847. {
  4848. "type": "string"
  4849. },
  4850. {
  4851. "type": "null"
  4852. }
  4853. ]
  4854. },
  4855. "workspace": {
  4856. "anyOf": [
  4857. {
  4858. "type": "string"
  4859. },
  4860. {
  4861. "type": "null"
  4862. }
  4863. ]
  4864. }
  4865. },
  4866. "additionalProperties": false
  4867. },
  4868. {
  4869. "type": "null"
  4870. }
  4871. ]
  4872. },
  4873. "required": false,
  4874. "style": "deepObject",
  4875. "explode": true
  4876. }
  4877. ],
  4878. "security": [],
  4879. "responses": {
  4880. "200": {
  4881. "description": "Success",
  4882. "content": {
  4883. "application/json": {
  4884. "schema": {
  4885. "type": "object",
  4886. "properties": {
  4887. "location": {
  4888. "$ref": "#/components/schemas/Location.Info"
  4889. },
  4890. "data": {
  4891. "type": "array",
  4892. "items": {
  4893. "$ref": "#/components/schemas/Integration.Info"
  4894. }
  4895. }
  4896. },
  4897. "required": ["location", "data"],
  4898. "additionalProperties": false
  4899. }
  4900. }
  4901. }
  4902. },
  4903. "400": {
  4904. "description": "InvalidRequestError",
  4905. "content": {
  4906. "application/json": {
  4907. "schema": {
  4908. "$ref": "#/components/schemas/InvalidRequestError"
  4909. }
  4910. }
  4911. }
  4912. },
  4913. "401": {
  4914. "description": "UnauthorizedError",
  4915. "content": {
  4916. "application/json": {
  4917. "schema": {
  4918. "$ref": "#/components/schemas/UnauthorizedError"
  4919. }
  4920. }
  4921. }
  4922. }
  4923. },
  4924. "description": "Retrieve available integrations and their authentication methods.",
  4925. "summary": "List integrations"
  4926. }
  4927. },
  4928. "/api/integration/{integrationID}": {
  4929. "get": {
  4930. "tags": ["integration"],
  4931. "operationId": "v2.integration.get",
  4932. "parameters": [
  4933. {
  4934. "name": "integrationID",
  4935. "in": "path",
  4936. "schema": {
  4937. "type": "string"
  4938. },
  4939. "required": true
  4940. },
  4941. {
  4942. "name": "location",
  4943. "in": "query",
  4944. "schema": {
  4945. "anyOf": [
  4946. {
  4947. "type": "object",
  4948. "properties": {
  4949. "directory": {
  4950. "anyOf": [
  4951. {
  4952. "type": "string"
  4953. },
  4954. {
  4955. "type": "null"
  4956. }
  4957. ]
  4958. },
  4959. "workspace": {
  4960. "anyOf": [
  4961. {
  4962. "type": "string"
  4963. },
  4964. {
  4965. "type": "null"
  4966. }
  4967. ]
  4968. }
  4969. },
  4970. "additionalProperties": false
  4971. },
  4972. {
  4973. "type": "null"
  4974. }
  4975. ]
  4976. },
  4977. "required": false,
  4978. "style": "deepObject",
  4979. "explode": true
  4980. }
  4981. ],
  4982. "security": [],
  4983. "responses": {
  4984. "200": {
  4985. "description": "Success",
  4986. "content": {
  4987. "application/json": {
  4988. "schema": {
  4989. "type": "object",
  4990. "properties": {
  4991. "location": {
  4992. "$ref": "#/components/schemas/Location.Info"
  4993. },
  4994. "data": {
  4995. "anyOf": [
  4996. {
  4997. "$ref": "#/components/schemas/Integration.Info"
  4998. },
  4999. {
  5000. "type": "null"
  5001. }
  5002. ]
  5003. }
  5004. },
  5005. "required": ["location", "data"],
  5006. "additionalProperties": false
  5007. }
  5008. }
  5009. }
  5010. },
  5011. "400": {
  5012. "description": "InvalidRequestError",
  5013. "content": {
  5014. "application/json": {
  5015. "schema": {
  5016. "$ref": "#/components/schemas/InvalidRequestError"
  5017. }
  5018. }
  5019. }
  5020. },
  5021. "401": {
  5022. "description": "UnauthorizedError",
  5023. "content": {
  5024. "application/json": {
  5025. "schema": {
  5026. "$ref": "#/components/schemas/UnauthorizedError"
  5027. }
  5028. }
  5029. }
  5030. }
  5031. },
  5032. "description": "Retrieve one integration and its authentication methods.",
  5033. "summary": "Get integration"
  5034. }
  5035. },
  5036. "/api/experimental/integration/wellknown": {
  5037. "post": {
  5038. "tags": ["integration"],
  5039. "operationId": "v2.experimental.integration.wellknown.add",
  5040. "parameters": [
  5041. {
  5042. "name": "location",
  5043. "in": "query",
  5044. "schema": {
  5045. "anyOf": [
  5046. {
  5047. "type": "object",
  5048. "properties": {
  5049. "directory": {
  5050. "anyOf": [
  5051. {
  5052. "type": "string"
  5053. },
  5054. {
  5055. "type": "null"
  5056. }
  5057. ]
  5058. },
  5059. "workspace": {
  5060. "anyOf": [
  5061. {
  5062. "type": "string"
  5063. },
  5064. {
  5065. "type": "null"
  5066. }
  5067. ]
  5068. }
  5069. },
  5070. "additionalProperties": false
  5071. },
  5072. {
  5073. "type": "null"
  5074. }
  5075. ]
  5076. },
  5077. "required": false,
  5078. "style": "deepObject",
  5079. "explode": true
  5080. }
  5081. ],
  5082. "security": [],
  5083. "responses": {
  5084. "204": {
  5085. "description": "<No Content>"
  5086. },
  5087. "400": {
  5088. "description": "InvalidRequestError",
  5089. "content": {
  5090. "application/json": {
  5091. "schema": {
  5092. "anyOf": [
  5093. {
  5094. "$ref": "#/components/schemas/InvalidRequestError1"
  5095. },
  5096. {
  5097. "$ref": "#/components/schemas/InvalidRequestError"
  5098. }
  5099. ]
  5100. }
  5101. }
  5102. }
  5103. },
  5104. "401": {
  5105. "description": "UnauthorizedError",
  5106. "content": {
  5107. "application/json": {
  5108. "schema": {
  5109. "$ref": "#/components/schemas/UnauthorizedError"
  5110. }
  5111. }
  5112. }
  5113. }
  5114. },
  5115. "description": "Discover and persist an experimental wellknown integration source.",
  5116. "summary": "Add wellknown integration",
  5117. "requestBody": {
  5118. "content": {
  5119. "application/json": {
  5120. "schema": {
  5121. "type": "object",
  5122. "properties": {
  5123. "url": {
  5124. "type": "string"
  5125. }
  5126. },
  5127. "required": ["url"],
  5128. "additionalProperties": false
  5129. }
  5130. }
  5131. },
  5132. "required": true
  5133. }
  5134. }
  5135. },
  5136. "/api/integration/{integrationID}/connect/key": {
  5137. "post": {
  5138. "tags": ["integration"],
  5139. "operationId": "v2.integration.connect.key",
  5140. "parameters": [
  5141. {
  5142. "name": "integrationID",
  5143. "in": "path",
  5144. "schema": {
  5145. "type": "string"
  5146. },
  5147. "required": true
  5148. },
  5149. {
  5150. "name": "location",
  5151. "in": "query",
  5152. "schema": {
  5153. "anyOf": [
  5154. {
  5155. "type": "object",
  5156. "properties": {
  5157. "directory": {
  5158. "anyOf": [
  5159. {
  5160. "type": "string"
  5161. },
  5162. {
  5163. "type": "null"
  5164. }
  5165. ]
  5166. },
  5167. "workspace": {
  5168. "anyOf": [
  5169. {
  5170. "type": "string"
  5171. },
  5172. {
  5173. "type": "null"
  5174. }
  5175. ]
  5176. }
  5177. },
  5178. "additionalProperties": false
  5179. },
  5180. {
  5181. "type": "null"
  5182. }
  5183. ]
  5184. },
  5185. "required": false,
  5186. "style": "deepObject",
  5187. "explode": true
  5188. }
  5189. ],
  5190. "security": [],
  5191. "responses": {
  5192. "204": {
  5193. "description": "<No Content>"
  5194. },
  5195. "400": {
  5196. "description": "InvalidRequestError",
  5197. "content": {
  5198. "application/json": {
  5199. "schema": {
  5200. "anyOf": [
  5201. {
  5202. "$ref": "#/components/schemas/InvalidRequestError1"
  5203. },
  5204. {
  5205. "$ref": "#/components/schemas/InvalidRequestError"
  5206. }
  5207. ]
  5208. }
  5209. }
  5210. }
  5211. },
  5212. "401": {
  5213. "description": "UnauthorizedError",
  5214. "content": {
  5215. "application/json": {
  5216. "schema": {
  5217. "$ref": "#/components/schemas/UnauthorizedError"
  5218. }
  5219. }
  5220. }
  5221. }
  5222. },
  5223. "description": "Run a key authentication method and store the resulting credential.",
  5224. "summary": "Connect with key",
  5225. "requestBody": {
  5226. "content": {
  5227. "application/json": {
  5228. "schema": {
  5229. "type": "object",
  5230. "properties": {
  5231. "key": {
  5232. "type": "string"
  5233. },
  5234. "answer": {
  5235. "anyOf": [
  5236. {
  5237. "$ref": "#/components/schemas/Form.Answer"
  5238. },
  5239. {
  5240. "type": "null"
  5241. }
  5242. ]
  5243. },
  5244. "label": {
  5245. "anyOf": [
  5246. {
  5247. "type": "string"
  5248. },
  5249. {
  5250. "type": "null"
  5251. }
  5252. ]
  5253. }
  5254. },
  5255. "required": ["key"],
  5256. "additionalProperties": false
  5257. }
  5258. }
  5259. },
  5260. "required": true
  5261. }
  5262. }
  5263. },
  5264. "/api/integration/{integrationID}/connect/oauth": {
  5265. "post": {
  5266. "tags": ["integration"],
  5267. "operationId": "v2.integration.oauth.connect",
  5268. "parameters": [
  5269. {
  5270. "name": "integrationID",
  5271. "in": "path",
  5272. "schema": {
  5273. "type": "string"
  5274. },
  5275. "required": true
  5276. },
  5277. {
  5278. "name": "location",
  5279. "in": "query",
  5280. "schema": {
  5281. "anyOf": [
  5282. {
  5283. "type": "object",
  5284. "properties": {
  5285. "directory": {
  5286. "anyOf": [
  5287. {
  5288. "type": "string"
  5289. },
  5290. {
  5291. "type": "null"
  5292. }
  5293. ]
  5294. },
  5295. "workspace": {
  5296. "anyOf": [
  5297. {
  5298. "type": "string"
  5299. },
  5300. {
  5301. "type": "null"
  5302. }
  5303. ]
  5304. }
  5305. },
  5306. "additionalProperties": false
  5307. },
  5308. {
  5309. "type": "null"
  5310. }
  5311. ]
  5312. },
  5313. "required": false,
  5314. "style": "deepObject",
  5315. "explode": true
  5316. }
  5317. ],
  5318. "security": [],
  5319. "responses": {
  5320. "200": {
  5321. "description": "Success",
  5322. "content": {
  5323. "application/json": {
  5324. "schema": {
  5325. "type": "object",
  5326. "properties": {
  5327. "location": {
  5328. "$ref": "#/components/schemas/Location.Info"
  5329. },
  5330. "data": {
  5331. "$ref": "#/components/schemas/Integration.Attempt"
  5332. }
  5333. },
  5334. "required": ["location", "data"],
  5335. "additionalProperties": false
  5336. }
  5337. }
  5338. }
  5339. },
  5340. "400": {
  5341. "description": "InvalidRequestError",
  5342. "content": {
  5343. "application/json": {
  5344. "schema": {
  5345. "anyOf": [
  5346. {
  5347. "$ref": "#/components/schemas/InvalidRequestError1"
  5348. },
  5349. {
  5350. "$ref": "#/components/schemas/InvalidRequestError"
  5351. }
  5352. ]
  5353. }
  5354. }
  5355. }
  5356. },
  5357. "401": {
  5358. "description": "UnauthorizedError",
  5359. "content": {
  5360. "application/json": {
  5361. "schema": {
  5362. "$ref": "#/components/schemas/UnauthorizedError"
  5363. }
  5364. }
  5365. }
  5366. }
  5367. },
  5368. "description": "Start an OAuth attempt and return the authorization details.",
  5369. "summary": "Begin OAuth connection",
  5370. "requestBody": {
  5371. "content": {
  5372. "application/json": {
  5373. "schema": {
  5374. "type": "object",
  5375. "properties": {
  5376. "methodID": {
  5377. "type": "string"
  5378. },
  5379. "answer": {
  5380. "anyOf": [
  5381. {
  5382. "$ref": "#/components/schemas/Form.Answer"
  5383. },
  5384. {
  5385. "type": "null"
  5386. }
  5387. ]
  5388. },
  5389. "label": {
  5390. "anyOf": [
  5391. {
  5392. "type": "string"
  5393. },
  5394. {
  5395. "type": "null"
  5396. }
  5397. ]
  5398. }
  5399. },
  5400. "required": ["methodID"],
  5401. "additionalProperties": false
  5402. }
  5403. }
  5404. },
  5405. "required": true
  5406. }
  5407. }
  5408. },
  5409. "/api/integration/{integrationID}/connect/oauth/{attemptID}": {
  5410. "get": {
  5411. "tags": ["integration"],
  5412. "operationId": "v2.integration.oauth.status",
  5413. "parameters": [
  5414. {
  5415. "name": "integrationID",
  5416. "in": "path",
  5417. "schema": {
  5418. "type": "string"
  5419. },
  5420. "required": true
  5421. },
  5422. {
  5423. "name": "attemptID",
  5424. "in": "path",
  5425. "schema": {
  5426. "type": "string"
  5427. },
  5428. "required": true
  5429. },
  5430. {
  5431. "name": "location",
  5432. "in": "query",
  5433. "schema": {
  5434. "anyOf": [
  5435. {
  5436. "type": "object",
  5437. "properties": {
  5438. "directory": {
  5439. "anyOf": [
  5440. {
  5441. "type": "string"
  5442. },
  5443. {
  5444. "type": "null"
  5445. }
  5446. ]
  5447. },
  5448. "workspace": {
  5449. "anyOf": [
  5450. {
  5451. "type": "string"
  5452. },
  5453. {
  5454. "type": "null"
  5455. }
  5456. ]
  5457. }
  5458. },
  5459. "additionalProperties": false
  5460. },
  5461. {
  5462. "type": "null"
  5463. }
  5464. ]
  5465. },
  5466. "required": false,
  5467. "style": "deepObject",
  5468. "explode": true
  5469. }
  5470. ],
  5471. "security": [],
  5472. "responses": {
  5473. "200": {
  5474. "description": "Success",
  5475. "content": {
  5476. "application/json": {
  5477. "schema": {
  5478. "type": "object",
  5479. "properties": {
  5480. "location": {
  5481. "$ref": "#/components/schemas/Location.Info"
  5482. },
  5483. "data": {
  5484. "$ref": "#/components/schemas/Integration.AttemptStatus"
  5485. }
  5486. },
  5487. "required": ["location", "data"],
  5488. "additionalProperties": false
  5489. }
  5490. }
  5491. }
  5492. },
  5493. "400": {
  5494. "description": "InvalidRequestError",
  5495. "content": {
  5496. "application/json": {
  5497. "schema": {
  5498. "$ref": "#/components/schemas/InvalidRequestError"
  5499. }
  5500. }
  5501. }
  5502. },
  5503. "401": {
  5504. "description": "UnauthorizedError",
  5505. "content": {
  5506. "application/json": {
  5507. "schema": {
  5508. "$ref": "#/components/schemas/UnauthorizedError"
  5509. }
  5510. }
  5511. }
  5512. }
  5513. },
  5514. "description": "Poll the current status of an OAuth attempt.",
  5515. "summary": "Get OAuth attempt status"
  5516. },
  5517. "delete": {
  5518. "tags": ["integration"],
  5519. "operationId": "v2.integration.oauth.cancel",
  5520. "parameters": [
  5521. {
  5522. "name": "integrationID",
  5523. "in": "path",
  5524. "schema": {
  5525. "type": "string"
  5526. },
  5527. "required": true
  5528. },
  5529. {
  5530. "name": "attemptID",
  5531. "in": "path",
  5532. "schema": {
  5533. "type": "string"
  5534. },
  5535. "required": true
  5536. },
  5537. {
  5538. "name": "location",
  5539. "in": "query",
  5540. "schema": {
  5541. "anyOf": [
  5542. {
  5543. "type": "object",
  5544. "properties": {
  5545. "directory": {
  5546. "anyOf": [
  5547. {
  5548. "type": "string"
  5549. },
  5550. {
  5551. "type": "null"
  5552. }
  5553. ]
  5554. },
  5555. "workspace": {
  5556. "anyOf": [
  5557. {
  5558. "type": "string"
  5559. },
  5560. {
  5561. "type": "null"
  5562. }
  5563. ]
  5564. }
  5565. },
  5566. "additionalProperties": false
  5567. },
  5568. {
  5569. "type": "null"
  5570. }
  5571. ]
  5572. },
  5573. "required": false,
  5574. "style": "deepObject",
  5575. "explode": true
  5576. }
  5577. ],
  5578. "security": [],
  5579. "responses": {
  5580. "204": {
  5581. "description": "<No Content>"
  5582. },
  5583. "400": {
  5584. "description": "InvalidRequestError",
  5585. "content": {
  5586. "application/json": {
  5587. "schema": {
  5588. "$ref": "#/components/schemas/InvalidRequestError"
  5589. }
  5590. }
  5591. }
  5592. },
  5593. "401": {
  5594. "description": "UnauthorizedError",
  5595. "content": {
  5596. "application/json": {
  5597. "schema": {
  5598. "$ref": "#/components/schemas/UnauthorizedError"
  5599. }
  5600. }
  5601. }
  5602. }
  5603. },
  5604. "description": "Cancel an OAuth attempt and release its resources.",
  5605. "summary": "Cancel OAuth connection"
  5606. }
  5607. },
  5608. "/api/integration/{integrationID}/connect/oauth/{attemptID}/complete": {
  5609. "post": {
  5610. "tags": ["integration"],
  5611. "operationId": "v2.integration.oauth.complete",
  5612. "parameters": [
  5613. {
  5614. "name": "integrationID",
  5615. "in": "path",
  5616. "schema": {
  5617. "type": "string"
  5618. },
  5619. "required": true
  5620. },
  5621. {
  5622. "name": "attemptID",
  5623. "in": "path",
  5624. "schema": {
  5625. "type": "string"
  5626. },
  5627. "required": true
  5628. },
  5629. {
  5630. "name": "location",
  5631. "in": "query",
  5632. "schema": {
  5633. "anyOf": [
  5634. {
  5635. "type": "object",
  5636. "properties": {
  5637. "directory": {
  5638. "anyOf": [
  5639. {
  5640. "type": "string"
  5641. },
  5642. {
  5643. "type": "null"
  5644. }
  5645. ]
  5646. },
  5647. "workspace": {
  5648. "anyOf": [
  5649. {
  5650. "type": "string"
  5651. },
  5652. {
  5653. "type": "null"
  5654. }
  5655. ]
  5656. }
  5657. },
  5658. "additionalProperties": false
  5659. },
  5660. {
  5661. "type": "null"
  5662. }
  5663. ]
  5664. },
  5665. "required": false,
  5666. "style": "deepObject",
  5667. "explode": true
  5668. }
  5669. ],
  5670. "security": [],
  5671. "responses": {
  5672. "204": {
  5673. "description": "<No Content>"
  5674. },
  5675. "400": {
  5676. "description": "InvalidRequestError",
  5677. "content": {
  5678. "application/json": {
  5679. "schema": {
  5680. "anyOf": [
  5681. {
  5682. "$ref": "#/components/schemas/InvalidRequestError1"
  5683. },
  5684. {
  5685. "$ref": "#/components/schemas/InvalidRequestError"
  5686. }
  5687. ]
  5688. }
  5689. }
  5690. }
  5691. },
  5692. "401": {
  5693. "description": "UnauthorizedError",
  5694. "content": {
  5695. "application/json": {
  5696. "schema": {
  5697. "$ref": "#/components/schemas/UnauthorizedError"
  5698. }
  5699. }
  5700. }
  5701. }
  5702. },
  5703. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  5704. "summary": "Complete OAuth connection",
  5705. "requestBody": {
  5706. "content": {
  5707. "application/json": {
  5708. "schema": {
  5709. "type": "object",
  5710. "properties": {
  5711. "code": {
  5712. "anyOf": [
  5713. {
  5714. "type": "string"
  5715. },
  5716. {
  5717. "type": "null"
  5718. }
  5719. ]
  5720. }
  5721. },
  5722. "additionalProperties": false
  5723. }
  5724. }
  5725. },
  5726. "required": true
  5727. }
  5728. }
  5729. },
  5730. "/api/integration/{integrationID}/connect/command": {
  5731. "post": {
  5732. "tags": ["integration"],
  5733. "operationId": "v2.integration.command.connect",
  5734. "parameters": [
  5735. {
  5736. "name": "integrationID",
  5737. "in": "path",
  5738. "schema": {
  5739. "type": "string"
  5740. },
  5741. "required": true
  5742. },
  5743. {
  5744. "name": "location",
  5745. "in": "query",
  5746. "schema": {
  5747. "anyOf": [
  5748. {
  5749. "type": "object",
  5750. "properties": {
  5751. "directory": {
  5752. "anyOf": [
  5753. {
  5754. "type": "string"
  5755. },
  5756. {
  5757. "type": "null"
  5758. }
  5759. ]
  5760. },
  5761. "workspace": {
  5762. "anyOf": [
  5763. {
  5764. "type": "string"
  5765. },
  5766. {
  5767. "type": "null"
  5768. }
  5769. ]
  5770. }
  5771. },
  5772. "additionalProperties": false
  5773. },
  5774. {
  5775. "type": "null"
  5776. }
  5777. ]
  5778. },
  5779. "required": false,
  5780. "style": "deepObject",
  5781. "explode": true
  5782. }
  5783. ],
  5784. "security": [],
  5785. "responses": {
  5786. "200": {
  5787. "description": "Success",
  5788. "content": {
  5789. "application/json": {
  5790. "schema": {
  5791. "type": "object",
  5792. "properties": {
  5793. "location": {
  5794. "$ref": "#/components/schemas/Location.Info"
  5795. },
  5796. "data": {
  5797. "$ref": "#/components/schemas/Integration.CommandAttempt"
  5798. }
  5799. },
  5800. "required": ["location", "data"],
  5801. "additionalProperties": false
  5802. }
  5803. }
  5804. }
  5805. },
  5806. "400": {
  5807. "description": "InvalidRequestError",
  5808. "content": {
  5809. "application/json": {
  5810. "schema": {
  5811. "anyOf": [
  5812. {
  5813. "$ref": "#/components/schemas/InvalidRequestError1"
  5814. },
  5815. {
  5816. "$ref": "#/components/schemas/InvalidRequestError"
  5817. }
  5818. ]
  5819. }
  5820. }
  5821. }
  5822. },
  5823. "401": {
  5824. "description": "UnauthorizedError",
  5825. "content": {
  5826. "application/json": {
  5827. "schema": {
  5828. "$ref": "#/components/schemas/UnauthorizedError"
  5829. }
  5830. }
  5831. }
  5832. }
  5833. },
  5834. "description": "Start a command authentication attempt.",
  5835. "summary": "Begin command connection",
  5836. "requestBody": {
  5837. "content": {
  5838. "application/json": {
  5839. "schema": {
  5840. "type": "object",
  5841. "properties": {
  5842. "methodID": {
  5843. "type": "string"
  5844. },
  5845. "label": {
  5846. "anyOf": [
  5847. {
  5848. "type": "string"
  5849. },
  5850. {
  5851. "type": "null"
  5852. }
  5853. ]
  5854. }
  5855. },
  5856. "required": ["methodID"],
  5857. "additionalProperties": false
  5858. }
  5859. }
  5860. },
  5861. "required": true
  5862. }
  5863. }
  5864. },
  5865. "/api/integration/{integrationID}/connect/command/{attemptID}": {
  5866. "get": {
  5867. "tags": ["integration"],
  5868. "operationId": "v2.integration.command.status",
  5869. "parameters": [
  5870. {
  5871. "name": "integrationID",
  5872. "in": "path",
  5873. "schema": {
  5874. "type": "string"
  5875. },
  5876. "required": true
  5877. },
  5878. {
  5879. "name": "attemptID",
  5880. "in": "path",
  5881. "schema": {
  5882. "type": "string"
  5883. },
  5884. "required": true
  5885. },
  5886. {
  5887. "name": "location",
  5888. "in": "query",
  5889. "schema": {
  5890. "anyOf": [
  5891. {
  5892. "type": "object",
  5893. "properties": {
  5894. "directory": {
  5895. "anyOf": [
  5896. {
  5897. "type": "string"
  5898. },
  5899. {
  5900. "type": "null"
  5901. }
  5902. ]
  5903. },
  5904. "workspace": {
  5905. "anyOf": [
  5906. {
  5907. "type": "string"
  5908. },
  5909. {
  5910. "type": "null"
  5911. }
  5912. ]
  5913. }
  5914. },
  5915. "additionalProperties": false
  5916. },
  5917. {
  5918. "type": "null"
  5919. }
  5920. ]
  5921. },
  5922. "required": false,
  5923. "style": "deepObject",
  5924. "explode": true
  5925. }
  5926. ],
  5927. "security": [],
  5928. "responses": {
  5929. "200": {
  5930. "description": "Success",
  5931. "content": {
  5932. "application/json": {
  5933. "schema": {
  5934. "type": "object",
  5935. "properties": {
  5936. "location": {
  5937. "$ref": "#/components/schemas/Location.Info"
  5938. },
  5939. "data": {
  5940. "$ref": "#/components/schemas/Integration.CommandAttemptStatus"
  5941. }
  5942. },
  5943. "required": ["location", "data"],
  5944. "additionalProperties": false
  5945. }
  5946. }
  5947. }
  5948. },
  5949. "400": {
  5950. "description": "InvalidRequestError",
  5951. "content": {
  5952. "application/json": {
  5953. "schema": {
  5954. "$ref": "#/components/schemas/InvalidRequestError"
  5955. }
  5956. }
  5957. }
  5958. },
  5959. "401": {
  5960. "description": "UnauthorizedError",
  5961. "content": {
  5962. "application/json": {
  5963. "schema": {
  5964. "$ref": "#/components/schemas/UnauthorizedError"
  5965. }
  5966. }
  5967. }
  5968. }
  5969. },
  5970. "description": "Poll the current status and output of a command authentication attempt.",
  5971. "summary": "Get command attempt status"
  5972. },
  5973. "delete": {
  5974. "tags": ["integration"],
  5975. "operationId": "v2.integration.command.cancel",
  5976. "parameters": [
  5977. {
  5978. "name": "integrationID",
  5979. "in": "path",
  5980. "schema": {
  5981. "type": "string"
  5982. },
  5983. "required": true
  5984. },
  5985. {
  5986. "name": "attemptID",
  5987. "in": "path",
  5988. "schema": {
  5989. "type": "string"
  5990. },
  5991. "required": true
  5992. },
  5993. {
  5994. "name": "location",
  5995. "in": "query",
  5996. "schema": {
  5997. "anyOf": [
  5998. {
  5999. "type": "object",
  6000. "properties": {
  6001. "directory": {
  6002. "anyOf": [
  6003. {
  6004. "type": "string"
  6005. },
  6006. {
  6007. "type": "null"
  6008. }
  6009. ]
  6010. },
  6011. "workspace": {
  6012. "anyOf": [
  6013. {
  6014. "type": "string"
  6015. },
  6016. {
  6017. "type": "null"
  6018. }
  6019. ]
  6020. }
  6021. },
  6022. "additionalProperties": false
  6023. },
  6024. {
  6025. "type": "null"
  6026. }
  6027. ]
  6028. },
  6029. "required": false,
  6030. "style": "deepObject",
  6031. "explode": true
  6032. }
  6033. ],
  6034. "security": [],
  6035. "responses": {
  6036. "204": {
  6037. "description": "<No Content>"
  6038. },
  6039. "400": {
  6040. "description": "InvalidRequestError",
  6041. "content": {
  6042. "application/json": {
  6043. "schema": {
  6044. "$ref": "#/components/schemas/InvalidRequestError"
  6045. }
  6046. }
  6047. }
  6048. },
  6049. "401": {
  6050. "description": "UnauthorizedError",
  6051. "content": {
  6052. "application/json": {
  6053. "schema": {
  6054. "$ref": "#/components/schemas/UnauthorizedError"
  6055. }
  6056. }
  6057. }
  6058. }
  6059. },
  6060. "description": "Cancel a command authentication attempt and terminate its process.",
  6061. "summary": "Cancel command connection"
  6062. }
  6063. },
  6064. "/api/mcp": {
  6065. "get": {
  6066. "tags": ["mcp"],
  6067. "operationId": "v2.mcp.list",
  6068. "parameters": [
  6069. {
  6070. "name": "location",
  6071. "in": "query",
  6072. "schema": {
  6073. "anyOf": [
  6074. {
  6075. "type": "object",
  6076. "properties": {
  6077. "directory": {
  6078. "anyOf": [
  6079. {
  6080. "type": "string"
  6081. },
  6082. {
  6083. "type": "null"
  6084. }
  6085. ]
  6086. },
  6087. "workspace": {
  6088. "anyOf": [
  6089. {
  6090. "type": "string"
  6091. },
  6092. {
  6093. "type": "null"
  6094. }
  6095. ]
  6096. }
  6097. },
  6098. "additionalProperties": false
  6099. },
  6100. {
  6101. "type": "null"
  6102. }
  6103. ]
  6104. },
  6105. "required": false,
  6106. "style": "deepObject",
  6107. "explode": true
  6108. }
  6109. ],
  6110. "security": [],
  6111. "responses": {
  6112. "200": {
  6113. "description": "Success",
  6114. "content": {
  6115. "application/json": {
  6116. "schema": {
  6117. "type": "object",
  6118. "properties": {
  6119. "location": {
  6120. "$ref": "#/components/schemas/Location.Info"
  6121. },
  6122. "data": {
  6123. "type": "array",
  6124. "items": {
  6125. "$ref": "#/components/schemas/Mcp.Server"
  6126. }
  6127. }
  6128. },
  6129. "required": ["location", "data"],
  6130. "additionalProperties": false
  6131. }
  6132. }
  6133. }
  6134. },
  6135. "400": {
  6136. "description": "InvalidRequestError",
  6137. "content": {
  6138. "application/json": {
  6139. "schema": {
  6140. "$ref": "#/components/schemas/InvalidRequestError"
  6141. }
  6142. }
  6143. }
  6144. },
  6145. "401": {
  6146. "description": "UnauthorizedError",
  6147. "content": {
  6148. "application/json": {
  6149. "schema": {
  6150. "$ref": "#/components/schemas/UnauthorizedError"
  6151. }
  6152. }
  6153. }
  6154. }
  6155. },
  6156. "description": "Retrieve configured MCP servers and their connection status.",
  6157. "summary": "List MCP servers"
  6158. }
  6159. },
  6160. "/api/mcp/{server}": {
  6161. "put": {
  6162. "tags": ["mcp"],
  6163. "operationId": "v2.mcp.add",
  6164. "parameters": [
  6165. {
  6166. "name": "server",
  6167. "in": "path",
  6168. "schema": {
  6169. "type": "string"
  6170. },
  6171. "required": true
  6172. },
  6173. {
  6174. "name": "location",
  6175. "in": "query",
  6176. "schema": {
  6177. "anyOf": [
  6178. {
  6179. "type": "object",
  6180. "properties": {
  6181. "directory": {
  6182. "anyOf": [
  6183. {
  6184. "type": "string"
  6185. },
  6186. {
  6187. "type": "null"
  6188. }
  6189. ]
  6190. },
  6191. "workspace": {
  6192. "anyOf": [
  6193. {
  6194. "type": "string"
  6195. },
  6196. {
  6197. "type": "null"
  6198. }
  6199. ]
  6200. }
  6201. },
  6202. "additionalProperties": false
  6203. },
  6204. {
  6205. "type": "null"
  6206. }
  6207. ]
  6208. },
  6209. "required": false,
  6210. "style": "deepObject",
  6211. "explode": true
  6212. }
  6213. ],
  6214. "security": [],
  6215. "responses": {
  6216. "204": {
  6217. "description": "<No Content>"
  6218. },
  6219. "400": {
  6220. "description": "InvalidRequestError",
  6221. "content": {
  6222. "application/json": {
  6223. "schema": {
  6224. "$ref": "#/components/schemas/InvalidRequestError"
  6225. }
  6226. }
  6227. }
  6228. },
  6229. "401": {
  6230. "description": "UnauthorizedError",
  6231. "content": {
  6232. "application/json": {
  6233. "schema": {
  6234. "$ref": "#/components/schemas/UnauthorizedError"
  6235. }
  6236. }
  6237. }
  6238. }
  6239. },
  6240. "description": "Add an MCP server at runtime or replace an existing one, connecting it immediately.",
  6241. "summary": "Add MCP server",
  6242. "requestBody": {
  6243. "content": {
  6244. "application/json": {
  6245. "schema": {
  6246. "type": "object",
  6247. "properties": {
  6248. "config": {
  6249. "anyOf": [
  6250. {
  6251. "$ref": "#/components/schemas/Mcp.LocalConfig"
  6252. },
  6253. {
  6254. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  6255. }
  6256. ]
  6257. }
  6258. },
  6259. "required": ["config"],
  6260. "additionalProperties": false
  6261. }
  6262. }
  6263. },
  6264. "required": true
  6265. }
  6266. },
  6267. "delete": {
  6268. "tags": ["mcp"],
  6269. "operationId": "v2.mcp.remove",
  6270. "parameters": [
  6271. {
  6272. "name": "server",
  6273. "in": "path",
  6274. "schema": {
  6275. "type": "string"
  6276. },
  6277. "required": true
  6278. },
  6279. {
  6280. "name": "location",
  6281. "in": "query",
  6282. "schema": {
  6283. "anyOf": [
  6284. {
  6285. "type": "object",
  6286. "properties": {
  6287. "directory": {
  6288. "anyOf": [
  6289. {
  6290. "type": "string"
  6291. },
  6292. {
  6293. "type": "null"
  6294. }
  6295. ]
  6296. },
  6297. "workspace": {
  6298. "anyOf": [
  6299. {
  6300. "type": "string"
  6301. },
  6302. {
  6303. "type": "null"
  6304. }
  6305. ]
  6306. }
  6307. },
  6308. "additionalProperties": false
  6309. },
  6310. {
  6311. "type": "null"
  6312. }
  6313. ]
  6314. },
  6315. "required": false,
  6316. "style": "deepObject",
  6317. "explode": true
  6318. }
  6319. ],
  6320. "security": [],
  6321. "responses": {
  6322. "204": {
  6323. "description": "<No Content>"
  6324. },
  6325. "400": {
  6326. "description": "InvalidRequestError",
  6327. "content": {
  6328. "application/json": {
  6329. "schema": {
  6330. "$ref": "#/components/schemas/InvalidRequestError"
  6331. }
  6332. }
  6333. }
  6334. },
  6335. "401": {
  6336. "description": "UnauthorizedError",
  6337. "content": {
  6338. "application/json": {
  6339. "schema": {
  6340. "$ref": "#/components/schemas/UnauthorizedError"
  6341. }
  6342. }
  6343. }
  6344. },
  6345. "404": {
  6346. "description": "McpServerNotFoundError",
  6347. "content": {
  6348. "application/json": {
  6349. "schema": {
  6350. "$ref": "#/components/schemas/McpServerNotFoundError"
  6351. }
  6352. }
  6353. }
  6354. }
  6355. },
  6356. "description": "Stop an MCP server and remove it from the runtime set until restart.",
  6357. "summary": "Remove MCP server"
  6358. }
  6359. },
  6360. "/api/mcp/{server}/connect": {
  6361. "post": {
  6362. "tags": ["mcp"],
  6363. "operationId": "v2.mcp.connect",
  6364. "parameters": [
  6365. {
  6366. "name": "server",
  6367. "in": "path",
  6368. "schema": {
  6369. "type": "string"
  6370. },
  6371. "required": true
  6372. },
  6373. {
  6374. "name": "location",
  6375. "in": "query",
  6376. "schema": {
  6377. "anyOf": [
  6378. {
  6379. "type": "object",
  6380. "properties": {
  6381. "directory": {
  6382. "anyOf": [
  6383. {
  6384. "type": "string"
  6385. },
  6386. {
  6387. "type": "null"
  6388. }
  6389. ]
  6390. },
  6391. "workspace": {
  6392. "anyOf": [
  6393. {
  6394. "type": "string"
  6395. },
  6396. {
  6397. "type": "null"
  6398. }
  6399. ]
  6400. }
  6401. },
  6402. "additionalProperties": false
  6403. },
  6404. {
  6405. "type": "null"
  6406. }
  6407. ]
  6408. },
  6409. "required": false,
  6410. "style": "deepObject",
  6411. "explode": true
  6412. }
  6413. ],
  6414. "security": [],
  6415. "responses": {
  6416. "204": {
  6417. "description": "<No Content>"
  6418. },
  6419. "400": {
  6420. "description": "InvalidRequestError",
  6421. "content": {
  6422. "application/json": {
  6423. "schema": {
  6424. "$ref": "#/components/schemas/InvalidRequestError"
  6425. }
  6426. }
  6427. }
  6428. },
  6429. "401": {
  6430. "description": "UnauthorizedError",
  6431. "content": {
  6432. "application/json": {
  6433. "schema": {
  6434. "$ref": "#/components/schemas/UnauthorizedError"
  6435. }
  6436. }
  6437. }
  6438. },
  6439. "404": {
  6440. "description": "McpServerNotFoundError",
  6441. "content": {
  6442. "application/json": {
  6443. "schema": {
  6444. "$ref": "#/components/schemas/McpServerNotFoundError"
  6445. }
  6446. }
  6447. }
  6448. }
  6449. },
  6450. "description": "Connect an MCP server at runtime, overriding a disabled configuration until restart.",
  6451. "summary": "Connect MCP server"
  6452. }
  6453. },
  6454. "/api/mcp/{server}/disconnect": {
  6455. "post": {
  6456. "tags": ["mcp"],
  6457. "operationId": "v2.mcp.disconnect",
  6458. "parameters": [
  6459. {
  6460. "name": "server",
  6461. "in": "path",
  6462. "schema": {
  6463. "type": "string"
  6464. },
  6465. "required": true
  6466. },
  6467. {
  6468. "name": "location",
  6469. "in": "query",
  6470. "schema": {
  6471. "anyOf": [
  6472. {
  6473. "type": "object",
  6474. "properties": {
  6475. "directory": {
  6476. "anyOf": [
  6477. {
  6478. "type": "string"
  6479. },
  6480. {
  6481. "type": "null"
  6482. }
  6483. ]
  6484. },
  6485. "workspace": {
  6486. "anyOf": [
  6487. {
  6488. "type": "string"
  6489. },
  6490. {
  6491. "type": "null"
  6492. }
  6493. ]
  6494. }
  6495. },
  6496. "additionalProperties": false
  6497. },
  6498. {
  6499. "type": "null"
  6500. }
  6501. ]
  6502. },
  6503. "required": false,
  6504. "style": "deepObject",
  6505. "explode": true
  6506. }
  6507. ],
  6508. "security": [],
  6509. "responses": {
  6510. "204": {
  6511. "description": "<No Content>"
  6512. },
  6513. "400": {
  6514. "description": "InvalidRequestError",
  6515. "content": {
  6516. "application/json": {
  6517. "schema": {
  6518. "$ref": "#/components/schemas/InvalidRequestError"
  6519. }
  6520. }
  6521. }
  6522. },
  6523. "401": {
  6524. "description": "UnauthorizedError",
  6525. "content": {
  6526. "application/json": {
  6527. "schema": {
  6528. "$ref": "#/components/schemas/UnauthorizedError"
  6529. }
  6530. }
  6531. }
  6532. },
  6533. "404": {
  6534. "description": "McpServerNotFoundError",
  6535. "content": {
  6536. "application/json": {
  6537. "schema": {
  6538. "$ref": "#/components/schemas/McpServerNotFoundError"
  6539. }
  6540. }
  6541. }
  6542. }
  6543. },
  6544. "description": "Disconnect an MCP server at runtime, removing its tools until reconnected.",
  6545. "summary": "Disconnect MCP server"
  6546. }
  6547. },
  6548. "/api/mcp/resource": {
  6549. "get": {
  6550. "tags": ["mcp"],
  6551. "operationId": "v2.mcp.resource.catalog",
  6552. "parameters": [
  6553. {
  6554. "name": "location",
  6555. "in": "query",
  6556. "schema": {
  6557. "anyOf": [
  6558. {
  6559. "type": "object",
  6560. "properties": {
  6561. "directory": {
  6562. "anyOf": [
  6563. {
  6564. "type": "string"
  6565. },
  6566. {
  6567. "type": "null"
  6568. }
  6569. ]
  6570. },
  6571. "workspace": {
  6572. "anyOf": [
  6573. {
  6574. "type": "string"
  6575. },
  6576. {
  6577. "type": "null"
  6578. }
  6579. ]
  6580. }
  6581. },
  6582. "additionalProperties": false
  6583. },
  6584. {
  6585. "type": "null"
  6586. }
  6587. ]
  6588. },
  6589. "required": false,
  6590. "style": "deepObject",
  6591. "explode": true
  6592. }
  6593. ],
  6594. "security": [],
  6595. "responses": {
  6596. "200": {
  6597. "description": "Success",
  6598. "content": {
  6599. "application/json": {
  6600. "schema": {
  6601. "type": "object",
  6602. "properties": {
  6603. "location": {
  6604. "$ref": "#/components/schemas/Location.Info"
  6605. },
  6606. "data": {
  6607. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  6608. }
  6609. },
  6610. "required": ["location", "data"],
  6611. "additionalProperties": false
  6612. }
  6613. }
  6614. }
  6615. },
  6616. "400": {
  6617. "description": "InvalidRequestError",
  6618. "content": {
  6619. "application/json": {
  6620. "schema": {
  6621. "$ref": "#/components/schemas/InvalidRequestError"
  6622. }
  6623. }
  6624. }
  6625. },
  6626. "401": {
  6627. "description": "UnauthorizedError",
  6628. "content": {
  6629. "application/json": {
  6630. "schema": {
  6631. "$ref": "#/components/schemas/UnauthorizedError"
  6632. }
  6633. }
  6634. }
  6635. }
  6636. },
  6637. "description": "Retrieve resources and resource templates from connected MCP servers.",
  6638. "summary": "List MCP resources"
  6639. }
  6640. },
  6641. "/api/credential/{credentialID}": {
  6642. "patch": {
  6643. "tags": ["credential"],
  6644. "operationId": "v2.credential.update",
  6645. "parameters": [
  6646. {
  6647. "name": "credentialID",
  6648. "in": "path",
  6649. "schema": {
  6650. "type": "string"
  6651. },
  6652. "required": true
  6653. },
  6654. {
  6655. "name": "location",
  6656. "in": "query",
  6657. "schema": {
  6658. "anyOf": [
  6659. {
  6660. "type": "object",
  6661. "properties": {
  6662. "directory": {
  6663. "anyOf": [
  6664. {
  6665. "type": "string"
  6666. },
  6667. {
  6668. "type": "null"
  6669. }
  6670. ]
  6671. },
  6672. "workspace": {
  6673. "anyOf": [
  6674. {
  6675. "type": "string"
  6676. },
  6677. {
  6678. "type": "null"
  6679. }
  6680. ]
  6681. }
  6682. },
  6683. "additionalProperties": false
  6684. },
  6685. {
  6686. "type": "null"
  6687. }
  6688. ]
  6689. },
  6690. "required": false,
  6691. "style": "deepObject",
  6692. "explode": true
  6693. }
  6694. ],
  6695. "security": [],
  6696. "responses": {
  6697. "204": {
  6698. "description": "<No Content>"
  6699. },
  6700. "400": {
  6701. "description": "InvalidRequestError",
  6702. "content": {
  6703. "application/json": {
  6704. "schema": {
  6705. "$ref": "#/components/schemas/InvalidRequestError"
  6706. }
  6707. }
  6708. }
  6709. },
  6710. "401": {
  6711. "description": "UnauthorizedError",
  6712. "content": {
  6713. "application/json": {
  6714. "schema": {
  6715. "$ref": "#/components/schemas/UnauthorizedError"
  6716. }
  6717. }
  6718. }
  6719. }
  6720. },
  6721. "description": "Update a stored credential label.",
  6722. "summary": "Update credential",
  6723. "requestBody": {
  6724. "content": {
  6725. "application/json": {
  6726. "schema": {
  6727. "type": "object",
  6728. "properties": {
  6729. "label": {
  6730. "type": "string"
  6731. }
  6732. },
  6733. "required": ["label"],
  6734. "additionalProperties": false
  6735. }
  6736. }
  6737. },
  6738. "required": true
  6739. }
  6740. },
  6741. "delete": {
  6742. "tags": ["credential"],
  6743. "operationId": "v2.credential.remove",
  6744. "parameters": [
  6745. {
  6746. "name": "credentialID",
  6747. "in": "path",
  6748. "schema": {
  6749. "type": "string"
  6750. },
  6751. "required": true
  6752. },
  6753. {
  6754. "name": "location",
  6755. "in": "query",
  6756. "schema": {
  6757. "anyOf": [
  6758. {
  6759. "type": "object",
  6760. "properties": {
  6761. "directory": {
  6762. "anyOf": [
  6763. {
  6764. "type": "string"
  6765. },
  6766. {
  6767. "type": "null"
  6768. }
  6769. ]
  6770. },
  6771. "workspace": {
  6772. "anyOf": [
  6773. {
  6774. "type": "string"
  6775. },
  6776. {
  6777. "type": "null"
  6778. }
  6779. ]
  6780. }
  6781. },
  6782. "additionalProperties": false
  6783. },
  6784. {
  6785. "type": "null"
  6786. }
  6787. ]
  6788. },
  6789. "required": false,
  6790. "style": "deepObject",
  6791. "explode": true
  6792. }
  6793. ],
  6794. "security": [],
  6795. "responses": {
  6796. "204": {
  6797. "description": "<No Content>"
  6798. },
  6799. "400": {
  6800. "description": "InvalidRequestError",
  6801. "content": {
  6802. "application/json": {
  6803. "schema": {
  6804. "$ref": "#/components/schemas/InvalidRequestError"
  6805. }
  6806. }
  6807. }
  6808. },
  6809. "401": {
  6810. "description": "UnauthorizedError",
  6811. "content": {
  6812. "application/json": {
  6813. "schema": {
  6814. "$ref": "#/components/schemas/UnauthorizedError"
  6815. }
  6816. }
  6817. }
  6818. }
  6819. },
  6820. "description": "Remove a stored integration credential.",
  6821. "summary": "Remove credential"
  6822. }
  6823. },
  6824. "/api/project": {
  6825. "get": {
  6826. "tags": ["project"],
  6827. "operationId": "v2.project.list",
  6828. "parameters": [],
  6829. "security": [],
  6830. "responses": {
  6831. "200": {
  6832. "description": "Success",
  6833. "content": {
  6834. "application/json": {
  6835. "schema": {
  6836. "type": "array",
  6837. "items": {
  6838. "$ref": "#/components/schemas/Project"
  6839. }
  6840. }
  6841. }
  6842. }
  6843. },
  6844. "400": {
  6845. "description": "InvalidRequestError",
  6846. "content": {
  6847. "application/json": {
  6848. "schema": {
  6849. "$ref": "#/components/schemas/InvalidRequestError"
  6850. }
  6851. }
  6852. }
  6853. },
  6854. "401": {
  6855. "description": "UnauthorizedError",
  6856. "content": {
  6857. "application/json": {
  6858. "schema": {
  6859. "$ref": "#/components/schemas/UnauthorizedError"
  6860. }
  6861. }
  6862. }
  6863. }
  6864. },
  6865. "description": "List known projects.",
  6866. "summary": "List projects"
  6867. }
  6868. },
  6869. "/api/project/current": {
  6870. "get": {
  6871. "tags": ["project"],
  6872. "operationId": "v2.project.current",
  6873. "parameters": [
  6874. {
  6875. "name": "location",
  6876. "in": "query",
  6877. "schema": {
  6878. "anyOf": [
  6879. {
  6880. "type": "object",
  6881. "properties": {
  6882. "directory": {
  6883. "anyOf": [
  6884. {
  6885. "type": "string"
  6886. },
  6887. {
  6888. "type": "null"
  6889. }
  6890. ]
  6891. },
  6892. "workspace": {
  6893. "anyOf": [
  6894. {
  6895. "type": "string"
  6896. },
  6897. {
  6898. "type": "null"
  6899. }
  6900. ]
  6901. }
  6902. },
  6903. "additionalProperties": false
  6904. },
  6905. {
  6906. "type": "null"
  6907. }
  6908. ]
  6909. },
  6910. "required": false,
  6911. "style": "deepObject",
  6912. "explode": true
  6913. }
  6914. ],
  6915. "security": [],
  6916. "responses": {
  6917. "200": {
  6918. "description": "Project.Current",
  6919. "content": {
  6920. "application/json": {
  6921. "schema": {
  6922. "$ref": "#/components/schemas/Project.Current"
  6923. }
  6924. }
  6925. }
  6926. },
  6927. "400": {
  6928. "description": "InvalidRequestError",
  6929. "content": {
  6930. "application/json": {
  6931. "schema": {
  6932. "$ref": "#/components/schemas/InvalidRequestError"
  6933. }
  6934. }
  6935. }
  6936. },
  6937. "401": {
  6938. "description": "UnauthorizedError",
  6939. "content": {
  6940. "application/json": {
  6941. "schema": {
  6942. "$ref": "#/components/schemas/UnauthorizedError"
  6943. }
  6944. }
  6945. }
  6946. }
  6947. },
  6948. "description": "Resolve the project for the requested location.",
  6949. "summary": "Get current project"
  6950. }
  6951. },
  6952. "/api/form/request": {
  6953. "get": {
  6954. "tags": ["form"],
  6955. "operationId": "v2.form.request.list",
  6956. "parameters": [
  6957. {
  6958. "name": "location",
  6959. "in": "query",
  6960. "schema": {
  6961. "anyOf": [
  6962. {
  6963. "type": "object",
  6964. "properties": {
  6965. "directory": {
  6966. "anyOf": [
  6967. {
  6968. "type": "string"
  6969. },
  6970. {
  6971. "type": "null"
  6972. }
  6973. ]
  6974. },
  6975. "workspace": {
  6976. "anyOf": [
  6977. {
  6978. "type": "string"
  6979. },
  6980. {
  6981. "type": "null"
  6982. }
  6983. ]
  6984. }
  6985. },
  6986. "additionalProperties": false
  6987. },
  6988. {
  6989. "type": "null"
  6990. }
  6991. ]
  6992. },
  6993. "required": false,
  6994. "style": "deepObject",
  6995. "explode": true
  6996. }
  6997. ],
  6998. "security": [],
  6999. "responses": {
  7000. "200": {
  7001. "description": "Success",
  7002. "content": {
  7003. "application/json": {
  7004. "schema": {
  7005. "type": "object",
  7006. "properties": {
  7007. "location": {
  7008. "$ref": "#/components/schemas/Location.Info"
  7009. },
  7010. "data": {
  7011. "type": "array",
  7012. "items": {
  7013. "$ref": "#/components/schemas/Form.Info"
  7014. }
  7015. }
  7016. },
  7017. "required": ["location", "data"],
  7018. "additionalProperties": false
  7019. }
  7020. }
  7021. }
  7022. },
  7023. "400": {
  7024. "description": "InvalidRequestError",
  7025. "content": {
  7026. "application/json": {
  7027. "schema": {
  7028. "$ref": "#/components/schemas/InvalidRequestError"
  7029. }
  7030. }
  7031. }
  7032. },
  7033. "401": {
  7034. "description": "UnauthorizedError",
  7035. "content": {
  7036. "application/json": {
  7037. "schema": {
  7038. "$ref": "#/components/schemas/UnauthorizedError"
  7039. }
  7040. }
  7041. }
  7042. }
  7043. },
  7044. "description": "Retrieve pending forms for a location.",
  7045. "summary": "List pending form requests"
  7046. }
  7047. },
  7048. "/api/session/{sessionID}/form": {
  7049. "get": {
  7050. "tags": ["form"],
  7051. "operationId": "v2.session.form.list",
  7052. "parameters": [
  7053. {
  7054. "name": "sessionID",
  7055. "in": "path",
  7056. "schema": {
  7057. "type": "string"
  7058. },
  7059. "required": true
  7060. }
  7061. ],
  7062. "security": [],
  7063. "responses": {
  7064. "200": {
  7065. "description": "Success",
  7066. "content": {
  7067. "application/json": {
  7068. "schema": {
  7069. "type": "object",
  7070. "properties": {
  7071. "data": {
  7072. "type": "array",
  7073. "items": {
  7074. "$ref": "#/components/schemas/Form.Info"
  7075. }
  7076. }
  7077. },
  7078. "required": ["data"],
  7079. "additionalProperties": false
  7080. }
  7081. }
  7082. }
  7083. },
  7084. "400": {
  7085. "description": "InvalidRequestError",
  7086. "content": {
  7087. "application/json": {
  7088. "schema": {
  7089. "$ref": "#/components/schemas/InvalidRequestError"
  7090. }
  7091. }
  7092. }
  7093. },
  7094. "401": {
  7095. "description": "UnauthorizedError",
  7096. "content": {
  7097. "application/json": {
  7098. "schema": {
  7099. "$ref": "#/components/schemas/UnauthorizedError"
  7100. }
  7101. }
  7102. }
  7103. },
  7104. "404": {
  7105. "description": "SessionNotFoundError",
  7106. "content": {
  7107. "application/json": {
  7108. "schema": {
  7109. "anyOf": [
  7110. {
  7111. "$ref": "#/components/schemas/SessionNotFoundError"
  7112. },
  7113. {
  7114. "$ref": "#/components/schemas/SessionNotFoundError"
  7115. }
  7116. ]
  7117. }
  7118. }
  7119. }
  7120. }
  7121. },
  7122. "description": "Retrieve pending forms for a session.",
  7123. "summary": "List session forms"
  7124. },
  7125. "post": {
  7126. "tags": ["form"],
  7127. "operationId": "v2.session.form.create",
  7128. "parameters": [
  7129. {
  7130. "name": "sessionID",
  7131. "in": "path",
  7132. "schema": {
  7133. "type": "string"
  7134. },
  7135. "required": true
  7136. }
  7137. ],
  7138. "security": [],
  7139. "responses": {
  7140. "200": {
  7141. "description": "Success",
  7142. "content": {
  7143. "application/json": {
  7144. "schema": {
  7145. "type": "object",
  7146. "properties": {
  7147. "data": {
  7148. "$ref": "#/components/schemas/Form.Info"
  7149. }
  7150. },
  7151. "required": ["data"],
  7152. "additionalProperties": false
  7153. }
  7154. }
  7155. }
  7156. },
  7157. "400": {
  7158. "description": "InvalidRequestError",
  7159. "content": {
  7160. "application/json": {
  7161. "schema": {
  7162. "anyOf": [
  7163. {
  7164. "$ref": "#/components/schemas/InvalidRequestError1"
  7165. },
  7166. {
  7167. "$ref": "#/components/schemas/InvalidRequestError"
  7168. }
  7169. ]
  7170. }
  7171. }
  7172. }
  7173. },
  7174. "401": {
  7175. "description": "UnauthorizedError",
  7176. "content": {
  7177. "application/json": {
  7178. "schema": {
  7179. "$ref": "#/components/schemas/UnauthorizedError"
  7180. }
  7181. }
  7182. }
  7183. },
  7184. "404": {
  7185. "description": "SessionNotFoundError",
  7186. "content": {
  7187. "application/json": {
  7188. "schema": {
  7189. "anyOf": [
  7190. {
  7191. "$ref": "#/components/schemas/SessionNotFoundError"
  7192. },
  7193. {
  7194. "$ref": "#/components/schemas/SessionNotFoundError"
  7195. }
  7196. ]
  7197. }
  7198. }
  7199. }
  7200. },
  7201. "409": {
  7202. "description": "ConflictError",
  7203. "content": {
  7204. "application/json": {
  7205. "schema": {
  7206. "$ref": "#/components/schemas/ConflictError"
  7207. }
  7208. }
  7209. }
  7210. }
  7211. },
  7212. "description": "Create a form for a session.",
  7213. "summary": "Create session form",
  7214. "requestBody": {
  7215. "content": {
  7216. "application/json": {
  7217. "schema": {
  7218. "$ref": "#/components/schemas/Form.CreatePayload"
  7219. }
  7220. }
  7221. },
  7222. "required": true
  7223. }
  7224. }
  7225. },
  7226. "/api/session/{sessionID}/form/{formID}": {
  7227. "get": {
  7228. "tags": ["form"],
  7229. "operationId": "v2.session.form.get",
  7230. "parameters": [
  7231. {
  7232. "name": "sessionID",
  7233. "in": "path",
  7234. "schema": {
  7235. "type": "string"
  7236. },
  7237. "required": true
  7238. },
  7239. {
  7240. "name": "formID",
  7241. "in": "path",
  7242. "schema": {
  7243. "type": "string",
  7244. "allOf": [
  7245. {
  7246. "pattern": "^frm_"
  7247. }
  7248. ]
  7249. },
  7250. "required": true
  7251. }
  7252. ],
  7253. "security": [],
  7254. "responses": {
  7255. "200": {
  7256. "description": "Success",
  7257. "content": {
  7258. "application/json": {
  7259. "schema": {
  7260. "type": "object",
  7261. "properties": {
  7262. "data": {
  7263. "$ref": "#/components/schemas/Form.Info"
  7264. }
  7265. },
  7266. "required": ["data"],
  7267. "additionalProperties": false
  7268. }
  7269. }
  7270. }
  7271. },
  7272. "400": {
  7273. "description": "InvalidRequestError",
  7274. "content": {
  7275. "application/json": {
  7276. "schema": {
  7277. "$ref": "#/components/schemas/InvalidRequestError"
  7278. }
  7279. }
  7280. }
  7281. },
  7282. "401": {
  7283. "description": "UnauthorizedError",
  7284. "content": {
  7285. "application/json": {
  7286. "schema": {
  7287. "$ref": "#/components/schemas/UnauthorizedError"
  7288. }
  7289. }
  7290. }
  7291. },
  7292. "404": {
  7293. "description": "SessionNotFoundError | FormNotFoundError",
  7294. "content": {
  7295. "application/json": {
  7296. "schema": {
  7297. "anyOf": [
  7298. {
  7299. "$ref": "#/components/schemas/FormNotFoundError"
  7300. },
  7301. {
  7302. "$ref": "#/components/schemas/SessionNotFoundError"
  7303. },
  7304. {
  7305. "$ref": "#/components/schemas/SessionNotFoundError"
  7306. }
  7307. ]
  7308. }
  7309. }
  7310. }
  7311. }
  7312. },
  7313. "description": "Retrieve a form for a session.",
  7314. "summary": "Get session form"
  7315. }
  7316. },
  7317. "/api/session/{sessionID}/form/{formID}/state": {
  7318. "get": {
  7319. "tags": ["form"],
  7320. "operationId": "v2.session.form.state",
  7321. "parameters": [
  7322. {
  7323. "name": "sessionID",
  7324. "in": "path",
  7325. "schema": {
  7326. "type": "string"
  7327. },
  7328. "required": true
  7329. },
  7330. {
  7331. "name": "formID",
  7332. "in": "path",
  7333. "schema": {
  7334. "type": "string",
  7335. "allOf": [
  7336. {
  7337. "pattern": "^frm_"
  7338. }
  7339. ]
  7340. },
  7341. "required": true
  7342. }
  7343. ],
  7344. "security": [],
  7345. "responses": {
  7346. "200": {
  7347. "description": "Success",
  7348. "content": {
  7349. "application/json": {
  7350. "schema": {
  7351. "type": "object",
  7352. "properties": {
  7353. "data": {
  7354. "$ref": "#/components/schemas/Form.State"
  7355. }
  7356. },
  7357. "required": ["data"],
  7358. "additionalProperties": false
  7359. }
  7360. }
  7361. }
  7362. },
  7363. "400": {
  7364. "description": "InvalidRequestError",
  7365. "content": {
  7366. "application/json": {
  7367. "schema": {
  7368. "$ref": "#/components/schemas/InvalidRequestError"
  7369. }
  7370. }
  7371. }
  7372. },
  7373. "401": {
  7374. "description": "UnauthorizedError",
  7375. "content": {
  7376. "application/json": {
  7377. "schema": {
  7378. "$ref": "#/components/schemas/UnauthorizedError"
  7379. }
  7380. }
  7381. }
  7382. },
  7383. "404": {
  7384. "description": "SessionNotFoundError | FormNotFoundError",
  7385. "content": {
  7386. "application/json": {
  7387. "schema": {
  7388. "anyOf": [
  7389. {
  7390. "$ref": "#/components/schemas/FormNotFoundError"
  7391. },
  7392. {
  7393. "$ref": "#/components/schemas/SessionNotFoundError"
  7394. },
  7395. {
  7396. "$ref": "#/components/schemas/SessionNotFoundError"
  7397. }
  7398. ]
  7399. }
  7400. }
  7401. }
  7402. }
  7403. },
  7404. "description": "Retrieve the current state for a form.",
  7405. "summary": "Get form state"
  7406. }
  7407. },
  7408. "/api/session/{sessionID}/form/{formID}/reply": {
  7409. "post": {
  7410. "tags": ["form"],
  7411. "operationId": "v2.session.form.reply",
  7412. "parameters": [
  7413. {
  7414. "name": "sessionID",
  7415. "in": "path",
  7416. "schema": {
  7417. "type": "string"
  7418. },
  7419. "required": true
  7420. },
  7421. {
  7422. "name": "formID",
  7423. "in": "path",
  7424. "schema": {
  7425. "type": "string",
  7426. "allOf": [
  7427. {
  7428. "pattern": "^frm_"
  7429. }
  7430. ]
  7431. },
  7432. "required": true
  7433. }
  7434. ],
  7435. "security": [],
  7436. "responses": {
  7437. "204": {
  7438. "description": "<No Content>"
  7439. },
  7440. "400": {
  7441. "description": "FormInvalidAnswerError | InvalidRequestError",
  7442. "content": {
  7443. "application/json": {
  7444. "schema": {
  7445. "anyOf": [
  7446. {
  7447. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7448. },
  7449. {
  7450. "$ref": "#/components/schemas/InvalidRequestError"
  7451. }
  7452. ]
  7453. }
  7454. }
  7455. }
  7456. },
  7457. "401": {
  7458. "description": "UnauthorizedError",
  7459. "content": {
  7460. "application/json": {
  7461. "schema": {
  7462. "$ref": "#/components/schemas/UnauthorizedError"
  7463. }
  7464. }
  7465. }
  7466. },
  7467. "404": {
  7468. "description": "SessionNotFoundError | FormNotFoundError",
  7469. "content": {
  7470. "application/json": {
  7471. "schema": {
  7472. "anyOf": [
  7473. {
  7474. "$ref": "#/components/schemas/FormNotFoundError"
  7475. },
  7476. {
  7477. "$ref": "#/components/schemas/SessionNotFoundError"
  7478. },
  7479. {
  7480. "$ref": "#/components/schemas/SessionNotFoundError"
  7481. }
  7482. ]
  7483. }
  7484. }
  7485. }
  7486. },
  7487. "409": {
  7488. "description": "FormAlreadySettledError",
  7489. "content": {
  7490. "application/json": {
  7491. "schema": {
  7492. "$ref": "#/components/schemas/FormAlreadySettledError"
  7493. }
  7494. }
  7495. }
  7496. }
  7497. },
  7498. "description": "Submit an answer to a pending form.",
  7499. "summary": "Reply to form",
  7500. "requestBody": {
  7501. "content": {
  7502. "application/json": {
  7503. "schema": {
  7504. "$ref": "#/components/schemas/Form.Reply"
  7505. }
  7506. }
  7507. },
  7508. "required": true
  7509. }
  7510. }
  7511. },
  7512. "/api/session/{sessionID}/form/{formID}/cancel": {
  7513. "post": {
  7514. "tags": ["form"],
  7515. "operationId": "v2.session.form.cancel",
  7516. "parameters": [
  7517. {
  7518. "name": "sessionID",
  7519. "in": "path",
  7520. "schema": {
  7521. "type": "string"
  7522. },
  7523. "required": true
  7524. },
  7525. {
  7526. "name": "formID",
  7527. "in": "path",
  7528. "schema": {
  7529. "type": "string",
  7530. "allOf": [
  7531. {
  7532. "pattern": "^frm_"
  7533. }
  7534. ]
  7535. },
  7536. "required": true
  7537. }
  7538. ],
  7539. "security": [],
  7540. "responses": {
  7541. "204": {
  7542. "description": "<No Content>"
  7543. },
  7544. "400": {
  7545. "description": "InvalidRequestError",
  7546. "content": {
  7547. "application/json": {
  7548. "schema": {
  7549. "$ref": "#/components/schemas/InvalidRequestError"
  7550. }
  7551. }
  7552. }
  7553. },
  7554. "401": {
  7555. "description": "UnauthorizedError",
  7556. "content": {
  7557. "application/json": {
  7558. "schema": {
  7559. "$ref": "#/components/schemas/UnauthorizedError"
  7560. }
  7561. }
  7562. }
  7563. },
  7564. "404": {
  7565. "description": "SessionNotFoundError | FormNotFoundError",
  7566. "content": {
  7567. "application/json": {
  7568. "schema": {
  7569. "anyOf": [
  7570. {
  7571. "$ref": "#/components/schemas/FormNotFoundError"
  7572. },
  7573. {
  7574. "$ref": "#/components/schemas/SessionNotFoundError"
  7575. },
  7576. {
  7577. "$ref": "#/components/schemas/SessionNotFoundError"
  7578. }
  7579. ]
  7580. }
  7581. }
  7582. }
  7583. },
  7584. "409": {
  7585. "description": "FormAlreadySettledError",
  7586. "content": {
  7587. "application/json": {
  7588. "schema": {
  7589. "$ref": "#/components/schemas/FormAlreadySettledError"
  7590. }
  7591. }
  7592. }
  7593. }
  7594. },
  7595. "description": "Cancel a pending form.",
  7596. "summary": "Cancel form"
  7597. }
  7598. },
  7599. "/api/permission/request": {
  7600. "get": {
  7601. "tags": ["permission"],
  7602. "operationId": "v2.permission.request.list",
  7603. "parameters": [
  7604. {
  7605. "name": "location",
  7606. "in": "query",
  7607. "schema": {
  7608. "anyOf": [
  7609. {
  7610. "type": "object",
  7611. "properties": {
  7612. "directory": {
  7613. "anyOf": [
  7614. {
  7615. "type": "string"
  7616. },
  7617. {
  7618. "type": "null"
  7619. }
  7620. ]
  7621. },
  7622. "workspace": {
  7623. "anyOf": [
  7624. {
  7625. "type": "string"
  7626. },
  7627. {
  7628. "type": "null"
  7629. }
  7630. ]
  7631. }
  7632. },
  7633. "additionalProperties": false
  7634. },
  7635. {
  7636. "type": "null"
  7637. }
  7638. ]
  7639. },
  7640. "required": false,
  7641. "style": "deepObject",
  7642. "explode": true
  7643. }
  7644. ],
  7645. "security": [],
  7646. "responses": {
  7647. "200": {
  7648. "description": "Success",
  7649. "content": {
  7650. "application/json": {
  7651. "schema": {
  7652. "type": "object",
  7653. "properties": {
  7654. "location": {
  7655. "$ref": "#/components/schemas/Location.Info"
  7656. },
  7657. "data": {
  7658. "type": "array",
  7659. "items": {
  7660. "$ref": "#/components/schemas/Permission.Request"
  7661. }
  7662. }
  7663. },
  7664. "required": ["location", "data"],
  7665. "additionalProperties": false
  7666. }
  7667. }
  7668. }
  7669. },
  7670. "400": {
  7671. "description": "InvalidRequestError",
  7672. "content": {
  7673. "application/json": {
  7674. "schema": {
  7675. "$ref": "#/components/schemas/InvalidRequestError"
  7676. }
  7677. }
  7678. }
  7679. },
  7680. "401": {
  7681. "description": "UnauthorizedError",
  7682. "content": {
  7683. "application/json": {
  7684. "schema": {
  7685. "$ref": "#/components/schemas/UnauthorizedError"
  7686. }
  7687. }
  7688. }
  7689. }
  7690. },
  7691. "description": "Retrieve pending permission requests for a location.",
  7692. "summary": "List pending permission requests"
  7693. }
  7694. },
  7695. "/api/permission/saved": {
  7696. "get": {
  7697. "tags": ["permission"],
  7698. "operationId": "v2.permission.saved.list",
  7699. "parameters": [
  7700. {
  7701. "name": "projectID",
  7702. "in": "query",
  7703. "schema": {
  7704. "anyOf": [
  7705. {
  7706. "type": "string"
  7707. },
  7708. {
  7709. "type": "null"
  7710. }
  7711. ]
  7712. },
  7713. "required": false
  7714. }
  7715. ],
  7716. "security": [],
  7717. "responses": {
  7718. "200": {
  7719. "description": "Success",
  7720. "content": {
  7721. "application/json": {
  7722. "schema": {
  7723. "type": "object",
  7724. "properties": {
  7725. "data": {
  7726. "type": "array",
  7727. "items": {
  7728. "$ref": "#/components/schemas/PermissionSaved.Info"
  7729. }
  7730. }
  7731. },
  7732. "required": ["data"],
  7733. "additionalProperties": false
  7734. }
  7735. }
  7736. }
  7737. },
  7738. "400": {
  7739. "description": "InvalidRequestError",
  7740. "content": {
  7741. "application/json": {
  7742. "schema": {
  7743. "$ref": "#/components/schemas/InvalidRequestError"
  7744. }
  7745. }
  7746. }
  7747. },
  7748. "401": {
  7749. "description": "UnauthorizedError",
  7750. "content": {
  7751. "application/json": {
  7752. "schema": {
  7753. "$ref": "#/components/schemas/UnauthorizedError"
  7754. }
  7755. }
  7756. }
  7757. }
  7758. },
  7759. "description": "Retrieve saved permissions, optionally filtered by project.",
  7760. "summary": "List saved permissions"
  7761. }
  7762. },
  7763. "/api/permission/saved/{id}": {
  7764. "delete": {
  7765. "tags": ["permission"],
  7766. "operationId": "v2.permission.saved.remove",
  7767. "parameters": [
  7768. {
  7769. "name": "id",
  7770. "in": "path",
  7771. "schema": {
  7772. "type": "string"
  7773. },
  7774. "required": true
  7775. }
  7776. ],
  7777. "security": [],
  7778. "responses": {
  7779. "204": {
  7780. "description": "<No Content>"
  7781. },
  7782. "400": {
  7783. "description": "InvalidRequestError",
  7784. "content": {
  7785. "application/json": {
  7786. "schema": {
  7787. "$ref": "#/components/schemas/InvalidRequestError"
  7788. }
  7789. }
  7790. }
  7791. },
  7792. "401": {
  7793. "description": "UnauthorizedError",
  7794. "content": {
  7795. "application/json": {
  7796. "schema": {
  7797. "$ref": "#/components/schemas/UnauthorizedError"
  7798. }
  7799. }
  7800. }
  7801. }
  7802. },
  7803. "description": "Remove a saved permission by ID.",
  7804. "summary": "Remove saved permission"
  7805. }
  7806. },
  7807. "/api/session/{sessionID}/permission": {
  7808. "post": {
  7809. "tags": ["permission"],
  7810. "operationId": "v2.session.permission.create",
  7811. "parameters": [
  7812. {
  7813. "name": "sessionID",
  7814. "in": "path",
  7815. "schema": {
  7816. "type": "string",
  7817. "allOf": [
  7818. {
  7819. "pattern": "^ses"
  7820. }
  7821. ]
  7822. },
  7823. "required": true
  7824. }
  7825. ],
  7826. "security": [],
  7827. "responses": {
  7828. "200": {
  7829. "description": "Success",
  7830. "content": {
  7831. "application/json": {
  7832. "schema": {
  7833. "type": "object",
  7834. "properties": {
  7835. "data": {
  7836. "type": "object",
  7837. "properties": {
  7838. "id": {
  7839. "type": "string",
  7840. "allOf": [
  7841. {
  7842. "pattern": "^per"
  7843. }
  7844. ]
  7845. },
  7846. "effect": {
  7847. "$ref": "#/components/schemas/Permission.Effect"
  7848. }
  7849. },
  7850. "required": ["id", "effect"],
  7851. "additionalProperties": false
  7852. }
  7853. },
  7854. "required": ["data"],
  7855. "additionalProperties": false
  7856. }
  7857. }
  7858. }
  7859. },
  7860. "400": {
  7861. "description": "InvalidRequestError",
  7862. "content": {
  7863. "application/json": {
  7864. "schema": {
  7865. "$ref": "#/components/schemas/InvalidRequestError"
  7866. }
  7867. }
  7868. }
  7869. },
  7870. "401": {
  7871. "description": "UnauthorizedError",
  7872. "content": {
  7873. "application/json": {
  7874. "schema": {
  7875. "$ref": "#/components/schemas/UnauthorizedError"
  7876. }
  7877. }
  7878. }
  7879. },
  7880. "404": {
  7881. "description": "SessionNotFoundError",
  7882. "content": {
  7883. "application/json": {
  7884. "schema": {
  7885. "anyOf": [
  7886. {
  7887. "$ref": "#/components/schemas/SessionNotFoundError"
  7888. },
  7889. {
  7890. "$ref": "#/components/schemas/SessionNotFoundError"
  7891. }
  7892. ]
  7893. }
  7894. }
  7895. }
  7896. }
  7897. },
  7898. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7899. "summary": "Create permission request",
  7900. "requestBody": {
  7901. "content": {
  7902. "application/json": {
  7903. "schema": {
  7904. "type": "object",
  7905. "properties": {
  7906. "id": {
  7907. "anyOf": [
  7908. {
  7909. "type": "string",
  7910. "allOf": [
  7911. {
  7912. "pattern": "^per"
  7913. }
  7914. ]
  7915. },
  7916. {
  7917. "type": "null"
  7918. }
  7919. ]
  7920. },
  7921. "action": {
  7922. "type": "string"
  7923. },
  7924. "resources": {
  7925. "type": "array",
  7926. "items": {
  7927. "type": "string"
  7928. }
  7929. },
  7930. "save": {
  7931. "type": "array",
  7932. "items": {
  7933. "type": "string"
  7934. }
  7935. },
  7936. "metadata": {
  7937. "type": "object"
  7938. },
  7939. "source": {
  7940. "$ref": "#/components/schemas/Permission.Source"
  7941. },
  7942. "agent": {
  7943. "anyOf": [
  7944. {
  7945. "type": "string"
  7946. },
  7947. {
  7948. "type": "null"
  7949. }
  7950. ]
  7951. }
  7952. },
  7953. "required": ["action", "resources"],
  7954. "additionalProperties": false
  7955. }
  7956. }
  7957. },
  7958. "required": true
  7959. }
  7960. },
  7961. "get": {
  7962. "tags": ["permission"],
  7963. "operationId": "v2.session.permission.list",
  7964. "parameters": [
  7965. {
  7966. "name": "sessionID",
  7967. "in": "path",
  7968. "schema": {
  7969. "type": "string",
  7970. "allOf": [
  7971. {
  7972. "pattern": "^ses"
  7973. }
  7974. ]
  7975. },
  7976. "required": true
  7977. }
  7978. ],
  7979. "security": [],
  7980. "responses": {
  7981. "200": {
  7982. "description": "Success",
  7983. "content": {
  7984. "application/json": {
  7985. "schema": {
  7986. "type": "object",
  7987. "properties": {
  7988. "data": {
  7989. "type": "array",
  7990. "items": {
  7991. "$ref": "#/components/schemas/Permission.Request"
  7992. }
  7993. }
  7994. },
  7995. "required": ["data"],
  7996. "additionalProperties": false
  7997. }
  7998. }
  7999. }
  8000. },
  8001. "400": {
  8002. "description": "InvalidRequestError",
  8003. "content": {
  8004. "application/json": {
  8005. "schema": {
  8006. "$ref": "#/components/schemas/InvalidRequestError"
  8007. }
  8008. }
  8009. }
  8010. },
  8011. "401": {
  8012. "description": "UnauthorizedError",
  8013. "content": {
  8014. "application/json": {
  8015. "schema": {
  8016. "$ref": "#/components/schemas/UnauthorizedError"
  8017. }
  8018. }
  8019. }
  8020. },
  8021. "404": {
  8022. "description": "SessionNotFoundError",
  8023. "content": {
  8024. "application/json": {
  8025. "schema": {
  8026. "anyOf": [
  8027. {
  8028. "$ref": "#/components/schemas/SessionNotFoundError"
  8029. },
  8030. {
  8031. "$ref": "#/components/schemas/SessionNotFoundError"
  8032. }
  8033. ]
  8034. }
  8035. }
  8036. }
  8037. }
  8038. },
  8039. "description": "Retrieve pending permission requests owned by a session.",
  8040. "summary": "List session permission requests"
  8041. }
  8042. },
  8043. "/api/session/{sessionID}/permission/{requestID}": {
  8044. "get": {
  8045. "tags": ["permission"],
  8046. "operationId": "v2.session.permission.get",
  8047. "parameters": [
  8048. {
  8049. "name": "sessionID",
  8050. "in": "path",
  8051. "schema": {
  8052. "type": "string",
  8053. "allOf": [
  8054. {
  8055. "pattern": "^ses"
  8056. }
  8057. ]
  8058. },
  8059. "required": true
  8060. },
  8061. {
  8062. "name": "requestID",
  8063. "in": "path",
  8064. "schema": {
  8065. "type": "string",
  8066. "allOf": [
  8067. {
  8068. "pattern": "^per"
  8069. }
  8070. ]
  8071. },
  8072. "required": true
  8073. }
  8074. ],
  8075. "security": [],
  8076. "responses": {
  8077. "200": {
  8078. "description": "Success",
  8079. "content": {
  8080. "application/json": {
  8081. "schema": {
  8082. "type": "object",
  8083. "properties": {
  8084. "data": {
  8085. "$ref": "#/components/schemas/Permission.Request"
  8086. }
  8087. },
  8088. "required": ["data"],
  8089. "additionalProperties": false
  8090. }
  8091. }
  8092. }
  8093. },
  8094. "400": {
  8095. "description": "InvalidRequestError",
  8096. "content": {
  8097. "application/json": {
  8098. "schema": {
  8099. "$ref": "#/components/schemas/InvalidRequestError"
  8100. }
  8101. }
  8102. }
  8103. },
  8104. "401": {
  8105. "description": "UnauthorizedError",
  8106. "content": {
  8107. "application/json": {
  8108. "schema": {
  8109. "$ref": "#/components/schemas/UnauthorizedError"
  8110. }
  8111. }
  8112. }
  8113. },
  8114. "404": {
  8115. "description": "SessionNotFoundError | PermissionNotFoundError",
  8116. "content": {
  8117. "application/json": {
  8118. "schema": {
  8119. "anyOf": [
  8120. {
  8121. "$ref": "#/components/schemas/PermissionNotFoundError"
  8122. },
  8123. {
  8124. "$ref": "#/components/schemas/SessionNotFoundError"
  8125. },
  8126. {
  8127. "$ref": "#/components/schemas/SessionNotFoundError"
  8128. }
  8129. ]
  8130. }
  8131. }
  8132. }
  8133. }
  8134. },
  8135. "description": "Retrieve a pending permission request owned by a session.",
  8136. "summary": "Get permission request"
  8137. }
  8138. },
  8139. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8140. "post": {
  8141. "tags": ["permission"],
  8142. "operationId": "v2.session.permission.reply",
  8143. "parameters": [
  8144. {
  8145. "name": "sessionID",
  8146. "in": "path",
  8147. "schema": {
  8148. "type": "string",
  8149. "allOf": [
  8150. {
  8151. "pattern": "^ses"
  8152. }
  8153. ]
  8154. },
  8155. "required": true
  8156. },
  8157. {
  8158. "name": "requestID",
  8159. "in": "path",
  8160. "schema": {
  8161. "type": "string",
  8162. "allOf": [
  8163. {
  8164. "pattern": "^per"
  8165. }
  8166. ]
  8167. },
  8168. "required": true
  8169. }
  8170. ],
  8171. "security": [],
  8172. "responses": {
  8173. "204": {
  8174. "description": "<No Content>"
  8175. },
  8176. "400": {
  8177. "description": "InvalidRequestError",
  8178. "content": {
  8179. "application/json": {
  8180. "schema": {
  8181. "$ref": "#/components/schemas/InvalidRequestError"
  8182. }
  8183. }
  8184. }
  8185. },
  8186. "401": {
  8187. "description": "UnauthorizedError",
  8188. "content": {
  8189. "application/json": {
  8190. "schema": {
  8191. "$ref": "#/components/schemas/UnauthorizedError"
  8192. }
  8193. }
  8194. }
  8195. },
  8196. "404": {
  8197. "description": "SessionNotFoundError | PermissionNotFoundError",
  8198. "content": {
  8199. "application/json": {
  8200. "schema": {
  8201. "anyOf": [
  8202. {
  8203. "$ref": "#/components/schemas/PermissionNotFoundError"
  8204. },
  8205. {
  8206. "$ref": "#/components/schemas/SessionNotFoundError"
  8207. },
  8208. {
  8209. "$ref": "#/components/schemas/SessionNotFoundError"
  8210. }
  8211. ]
  8212. }
  8213. }
  8214. }
  8215. }
  8216. },
  8217. "description": "Respond to a pending permission request owned by a session.",
  8218. "summary": "Reply to pending permission request",
  8219. "requestBody": {
  8220. "content": {
  8221. "application/json": {
  8222. "schema": {
  8223. "type": "object",
  8224. "properties": {
  8225. "reply": {
  8226. "$ref": "#/components/schemas/Permission.Reply"
  8227. },
  8228. "message": {
  8229. "anyOf": [
  8230. {
  8231. "type": "string"
  8232. },
  8233. {
  8234. "type": "null"
  8235. }
  8236. ]
  8237. }
  8238. },
  8239. "required": ["reply"],
  8240. "additionalProperties": false
  8241. }
  8242. }
  8243. },
  8244. "required": true
  8245. }
  8246. }
  8247. },
  8248. "/api/fs/read/*": {
  8249. "get": {
  8250. "tags": ["filesystem"],
  8251. "operationId": "v2.fs.read",
  8252. "parameters": [
  8253. {
  8254. "name": "location",
  8255. "in": "query",
  8256. "schema": {
  8257. "anyOf": [
  8258. {
  8259. "type": "object",
  8260. "properties": {
  8261. "directory": {
  8262. "anyOf": [
  8263. {
  8264. "type": "string"
  8265. },
  8266. {
  8267. "type": "null"
  8268. }
  8269. ]
  8270. },
  8271. "workspace": {
  8272. "anyOf": [
  8273. {
  8274. "type": "string"
  8275. },
  8276. {
  8277. "type": "null"
  8278. }
  8279. ]
  8280. }
  8281. },
  8282. "additionalProperties": false
  8283. },
  8284. {
  8285. "type": "null"
  8286. }
  8287. ]
  8288. },
  8289. "required": false,
  8290. "style": "deepObject",
  8291. "explode": true
  8292. }
  8293. ],
  8294. "security": [],
  8295. "responses": {
  8296. "200": {
  8297. "description": "Success",
  8298. "content": {
  8299. "application/octet-stream": {
  8300. "schema": {
  8301. "type": "string",
  8302. "format": "binary"
  8303. }
  8304. }
  8305. }
  8306. },
  8307. "400": {
  8308. "description": "InvalidRequestError",
  8309. "content": {
  8310. "application/json": {
  8311. "schema": {
  8312. "$ref": "#/components/schemas/InvalidRequestError"
  8313. }
  8314. }
  8315. }
  8316. },
  8317. "401": {
  8318. "description": "UnauthorizedError",
  8319. "content": {
  8320. "application/json": {
  8321. "schema": {
  8322. "$ref": "#/components/schemas/UnauthorizedError"
  8323. }
  8324. }
  8325. }
  8326. }
  8327. },
  8328. "description": "Serve one file relative to the requested location.",
  8329. "summary": "Read file"
  8330. }
  8331. },
  8332. "/api/fs/list": {
  8333. "get": {
  8334. "tags": ["filesystem"],
  8335. "operationId": "v2.fs.list",
  8336. "parameters": [
  8337. {
  8338. "name": "location",
  8339. "in": "query",
  8340. "schema": {
  8341. "anyOf": [
  8342. {
  8343. "type": "object",
  8344. "properties": {
  8345. "directory": {
  8346. "anyOf": [
  8347. {
  8348. "type": "string"
  8349. },
  8350. {
  8351. "type": "null"
  8352. }
  8353. ]
  8354. },
  8355. "workspace": {
  8356. "anyOf": [
  8357. {
  8358. "type": "string"
  8359. },
  8360. {
  8361. "type": "null"
  8362. }
  8363. ]
  8364. }
  8365. },
  8366. "additionalProperties": false
  8367. },
  8368. {
  8369. "type": "null"
  8370. }
  8371. ]
  8372. },
  8373. "required": false,
  8374. "style": "deepObject",
  8375. "explode": true
  8376. },
  8377. {
  8378. "name": "path",
  8379. "in": "query",
  8380. "schema": {
  8381. "anyOf": [
  8382. {
  8383. "type": "string"
  8384. },
  8385. {
  8386. "type": "null"
  8387. }
  8388. ]
  8389. },
  8390. "required": false
  8391. }
  8392. ],
  8393. "security": [],
  8394. "responses": {
  8395. "200": {
  8396. "description": "Success",
  8397. "content": {
  8398. "application/json": {
  8399. "schema": {
  8400. "type": "object",
  8401. "properties": {
  8402. "location": {
  8403. "$ref": "#/components/schemas/Location.Info"
  8404. },
  8405. "data": {
  8406. "type": "array",
  8407. "items": {
  8408. "$ref": "#/components/schemas/FileSystem.Entry"
  8409. }
  8410. }
  8411. },
  8412. "required": ["location", "data"],
  8413. "additionalProperties": false
  8414. }
  8415. }
  8416. }
  8417. },
  8418. "400": {
  8419. "description": "InvalidRequestError",
  8420. "content": {
  8421. "application/json": {
  8422. "schema": {
  8423. "$ref": "#/components/schemas/InvalidRequestError"
  8424. }
  8425. }
  8426. }
  8427. },
  8428. "401": {
  8429. "description": "UnauthorizedError",
  8430. "content": {
  8431. "application/json": {
  8432. "schema": {
  8433. "$ref": "#/components/schemas/UnauthorizedError"
  8434. }
  8435. }
  8436. }
  8437. }
  8438. },
  8439. "description": "List direct children of one directory relative to the requested location.",
  8440. "summary": "List directory"
  8441. }
  8442. },
  8443. "/api/fs/find": {
  8444. "get": {
  8445. "tags": ["filesystem"],
  8446. "operationId": "v2.fs.find",
  8447. "parameters": [
  8448. {
  8449. "name": "location",
  8450. "in": "query",
  8451. "schema": {
  8452. "anyOf": [
  8453. {
  8454. "type": "object",
  8455. "properties": {
  8456. "directory": {
  8457. "anyOf": [
  8458. {
  8459. "type": "string"
  8460. },
  8461. {
  8462. "type": "null"
  8463. }
  8464. ]
  8465. },
  8466. "workspace": {
  8467. "anyOf": [
  8468. {
  8469. "type": "string"
  8470. },
  8471. {
  8472. "type": "null"
  8473. }
  8474. ]
  8475. }
  8476. },
  8477. "additionalProperties": false
  8478. },
  8479. {
  8480. "type": "null"
  8481. }
  8482. ]
  8483. },
  8484. "required": false,
  8485. "style": "deepObject",
  8486. "explode": true
  8487. },
  8488. {
  8489. "name": "query",
  8490. "in": "query",
  8491. "schema": {
  8492. "type": "string"
  8493. },
  8494. "required": true
  8495. },
  8496. {
  8497. "name": "type",
  8498. "in": "query",
  8499. "schema": {
  8500. "type": "string",
  8501. "enum": ["file", "directory"]
  8502. },
  8503. "required": false
  8504. },
  8505. {
  8506. "name": "limit",
  8507. "in": "query",
  8508. "schema": {
  8509. "anyOf": [
  8510. {
  8511. "type": "string"
  8512. },
  8513. {
  8514. "type": "null"
  8515. }
  8516. ]
  8517. },
  8518. "required": false
  8519. }
  8520. ],
  8521. "security": [],
  8522. "responses": {
  8523. "200": {
  8524. "description": "Success",
  8525. "content": {
  8526. "application/json": {
  8527. "schema": {
  8528. "type": "object",
  8529. "properties": {
  8530. "location": {
  8531. "$ref": "#/components/schemas/Location.Info"
  8532. },
  8533. "data": {
  8534. "type": "array",
  8535. "items": {
  8536. "$ref": "#/components/schemas/FileSystem.Entry"
  8537. }
  8538. }
  8539. },
  8540. "required": ["location", "data"],
  8541. "additionalProperties": false
  8542. }
  8543. }
  8544. }
  8545. },
  8546. "400": {
  8547. "description": "InvalidRequestError",
  8548. "content": {
  8549. "application/json": {
  8550. "schema": {
  8551. "$ref": "#/components/schemas/InvalidRequestError"
  8552. }
  8553. }
  8554. }
  8555. },
  8556. "401": {
  8557. "description": "UnauthorizedError",
  8558. "content": {
  8559. "application/json": {
  8560. "schema": {
  8561. "$ref": "#/components/schemas/UnauthorizedError"
  8562. }
  8563. }
  8564. }
  8565. }
  8566. },
  8567. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8568. "summary": "Find files"
  8569. }
  8570. },
  8571. "/api/command": {
  8572. "get": {
  8573. "tags": ["command"],
  8574. "operationId": "v2.command.list",
  8575. "parameters": [
  8576. {
  8577. "name": "location",
  8578. "in": "query",
  8579. "schema": {
  8580. "anyOf": [
  8581. {
  8582. "type": "object",
  8583. "properties": {
  8584. "directory": {
  8585. "anyOf": [
  8586. {
  8587. "type": "string"
  8588. },
  8589. {
  8590. "type": "null"
  8591. }
  8592. ]
  8593. },
  8594. "workspace": {
  8595. "anyOf": [
  8596. {
  8597. "type": "string"
  8598. },
  8599. {
  8600. "type": "null"
  8601. }
  8602. ]
  8603. }
  8604. },
  8605. "additionalProperties": false
  8606. },
  8607. {
  8608. "type": "null"
  8609. }
  8610. ]
  8611. },
  8612. "required": false,
  8613. "style": "deepObject",
  8614. "explode": true
  8615. }
  8616. ],
  8617. "security": [],
  8618. "responses": {
  8619. "200": {
  8620. "description": "Success",
  8621. "content": {
  8622. "application/json": {
  8623. "schema": {
  8624. "type": "object",
  8625. "properties": {
  8626. "location": {
  8627. "$ref": "#/components/schemas/Location.Info"
  8628. },
  8629. "data": {
  8630. "type": "array",
  8631. "items": {
  8632. "$ref": "#/components/schemas/Command.Info"
  8633. }
  8634. }
  8635. },
  8636. "required": ["location", "data"],
  8637. "additionalProperties": false
  8638. }
  8639. }
  8640. }
  8641. },
  8642. "400": {
  8643. "description": "InvalidRequestError",
  8644. "content": {
  8645. "application/json": {
  8646. "schema": {
  8647. "$ref": "#/components/schemas/InvalidRequestError"
  8648. }
  8649. }
  8650. }
  8651. },
  8652. "401": {
  8653. "description": "UnauthorizedError",
  8654. "content": {
  8655. "application/json": {
  8656. "schema": {
  8657. "$ref": "#/components/schemas/UnauthorizedError"
  8658. }
  8659. }
  8660. }
  8661. }
  8662. },
  8663. "description": "Retrieve currently registered commands.",
  8664. "summary": "List commands"
  8665. }
  8666. },
  8667. "/api/skill": {
  8668. "get": {
  8669. "tags": ["skill"],
  8670. "operationId": "v2.skill.list",
  8671. "parameters": [
  8672. {
  8673. "name": "location",
  8674. "in": "query",
  8675. "schema": {
  8676. "anyOf": [
  8677. {
  8678. "type": "object",
  8679. "properties": {
  8680. "directory": {
  8681. "anyOf": [
  8682. {
  8683. "type": "string"
  8684. },
  8685. {
  8686. "type": "null"
  8687. }
  8688. ]
  8689. },
  8690. "workspace": {
  8691. "anyOf": [
  8692. {
  8693. "type": "string"
  8694. },
  8695. {
  8696. "type": "null"
  8697. }
  8698. ]
  8699. }
  8700. },
  8701. "additionalProperties": false
  8702. },
  8703. {
  8704. "type": "null"
  8705. }
  8706. ]
  8707. },
  8708. "required": false,
  8709. "style": "deepObject",
  8710. "explode": true
  8711. }
  8712. ],
  8713. "security": [],
  8714. "responses": {
  8715. "200": {
  8716. "description": "Success",
  8717. "content": {
  8718. "application/json": {
  8719. "schema": {
  8720. "type": "object",
  8721. "properties": {
  8722. "location": {
  8723. "$ref": "#/components/schemas/Location.Info"
  8724. },
  8725. "data": {
  8726. "type": "array",
  8727. "items": {
  8728. "$ref": "#/components/schemas/Skill.Info"
  8729. }
  8730. }
  8731. },
  8732. "required": ["location", "data"],
  8733. "additionalProperties": false
  8734. }
  8735. }
  8736. }
  8737. },
  8738. "400": {
  8739. "description": "InvalidRequestError",
  8740. "content": {
  8741. "application/json": {
  8742. "schema": {
  8743. "$ref": "#/components/schemas/InvalidRequestError"
  8744. }
  8745. }
  8746. }
  8747. },
  8748. "401": {
  8749. "description": "UnauthorizedError",
  8750. "content": {
  8751. "application/json": {
  8752. "schema": {
  8753. "$ref": "#/components/schemas/UnauthorizedError"
  8754. }
  8755. }
  8756. }
  8757. }
  8758. },
  8759. "description": "Retrieve currently registered skills.",
  8760. "summary": "List skills"
  8761. }
  8762. },
  8763. "/api/event": {
  8764. "get": {
  8765. "tags": ["event"],
  8766. "operationId": "v2.event.subscribe",
  8767. "parameters": [],
  8768. "security": [],
  8769. "responses": {
  8770. "200": {
  8771. "description": "Success",
  8772. "content": {
  8773. "text/event-stream": {
  8774. "schema": {
  8775. "type": "object",
  8776. "properties": {
  8777. "id": {
  8778. "anyOf": [
  8779. {
  8780. "type": "string"
  8781. },
  8782. {
  8783. "type": "null"
  8784. }
  8785. ]
  8786. },
  8787. "event": {
  8788. "type": "string"
  8789. },
  8790. "data": {
  8791. "$ref": "#/components/schemas/V2EventJsonString"
  8792. }
  8793. },
  8794. "required": ["id", "event", "data"],
  8795. "additionalProperties": false
  8796. },
  8797. "x-effect-stream": {
  8798. "encoding": "sse",
  8799. "causeSchema": {
  8800. "type": "array",
  8801. "items": {
  8802. "anyOf": [
  8803. {
  8804. "type": "object",
  8805. "properties": {
  8806. "_tag": {
  8807. "type": "string",
  8808. "enum": ["Fail"]
  8809. },
  8810. "error": {
  8811. "not": {}
  8812. }
  8813. },
  8814. "required": ["_tag", "error"],
  8815. "additionalProperties": false
  8816. },
  8817. {
  8818. "type": "object",
  8819. "properties": {
  8820. "_tag": {
  8821. "type": "string",
  8822. "enum": ["Die"]
  8823. },
  8824. "defect": {}
  8825. },
  8826. "required": ["_tag", "defect"],
  8827. "additionalProperties": false
  8828. },
  8829. {
  8830. "type": "object",
  8831. "properties": {
  8832. "_tag": {
  8833. "type": "string",
  8834. "enum": ["Interrupt"]
  8835. },
  8836. "fiberId": {
  8837. "anyOf": [
  8838. {
  8839. "type": "number"
  8840. },
  8841. {
  8842. "type": "null"
  8843. }
  8844. ]
  8845. }
  8846. },
  8847. "required": ["_tag", "fiberId"],
  8848. "additionalProperties": false
  8849. }
  8850. ]
  8851. }
  8852. },
  8853. "errorSchema": {
  8854. "not": {}
  8855. },
  8856. "failureEvent": "effect/httpapi/stream/failure"
  8857. }
  8858. }
  8859. }
  8860. },
  8861. "400": {
  8862. "description": "InvalidRequestError",
  8863. "content": {
  8864. "application/json": {
  8865. "schema": {
  8866. "$ref": "#/components/schemas/InvalidRequestError"
  8867. }
  8868. }
  8869. }
  8870. },
  8871. "401": {
  8872. "description": "UnauthorizedError",
  8873. "content": {
  8874. "application/json": {
  8875. "schema": {
  8876. "$ref": "#/components/schemas/UnauthorizedError"
  8877. }
  8878. }
  8879. }
  8880. }
  8881. },
  8882. "description": "Subscribe to native event payloads for the server. Volatile by contract: a slow consumer overflows and fails the stream, and events during disconnection are missed.",
  8883. "summary": "Subscribe to events"
  8884. }
  8885. },
  8886. "/api/pty": {
  8887. "get": {
  8888. "tags": ["pty"],
  8889. "operationId": "v2.pty.list",
  8890. "parameters": [
  8891. {
  8892. "name": "location",
  8893. "in": "query",
  8894. "schema": {
  8895. "anyOf": [
  8896. {
  8897. "type": "object",
  8898. "properties": {
  8899. "directory": {
  8900. "anyOf": [
  8901. {
  8902. "type": "string"
  8903. },
  8904. {
  8905. "type": "null"
  8906. }
  8907. ]
  8908. },
  8909. "workspace": {
  8910. "anyOf": [
  8911. {
  8912. "type": "string"
  8913. },
  8914. {
  8915. "type": "null"
  8916. }
  8917. ]
  8918. }
  8919. },
  8920. "additionalProperties": false
  8921. },
  8922. {
  8923. "type": "null"
  8924. }
  8925. ]
  8926. },
  8927. "required": false,
  8928. "style": "deepObject",
  8929. "explode": true
  8930. }
  8931. ],
  8932. "security": [],
  8933. "responses": {
  8934. "200": {
  8935. "description": "Success",
  8936. "content": {
  8937. "application/json": {
  8938. "schema": {
  8939. "type": "object",
  8940. "properties": {
  8941. "location": {
  8942. "$ref": "#/components/schemas/Location.Info"
  8943. },
  8944. "data": {
  8945. "type": "array",
  8946. "items": {
  8947. "$ref": "#/components/schemas/Pty"
  8948. }
  8949. }
  8950. },
  8951. "required": ["location", "data"],
  8952. "additionalProperties": false
  8953. }
  8954. }
  8955. }
  8956. },
  8957. "400": {
  8958. "description": "InvalidRequestError",
  8959. "content": {
  8960. "application/json": {
  8961. "schema": {
  8962. "$ref": "#/components/schemas/InvalidRequestError"
  8963. }
  8964. }
  8965. }
  8966. },
  8967. "401": {
  8968. "description": "UnauthorizedError",
  8969. "content": {
  8970. "application/json": {
  8971. "schema": {
  8972. "$ref": "#/components/schemas/UnauthorizedError"
  8973. }
  8974. }
  8975. }
  8976. }
  8977. },
  8978. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  8979. "summary": "List PTY sessions"
  8980. },
  8981. "post": {
  8982. "tags": ["pty"],
  8983. "operationId": "v2.pty.create",
  8984. "parameters": [
  8985. {
  8986. "name": "location",
  8987. "in": "query",
  8988. "schema": {
  8989. "anyOf": [
  8990. {
  8991. "type": "object",
  8992. "properties": {
  8993. "directory": {
  8994. "anyOf": [
  8995. {
  8996. "type": "string"
  8997. },
  8998. {
  8999. "type": "null"
  9000. }
  9001. ]
  9002. },
  9003. "workspace": {
  9004. "anyOf": [
  9005. {
  9006. "type": "string"
  9007. },
  9008. {
  9009. "type": "null"
  9010. }
  9011. ]
  9012. }
  9013. },
  9014. "additionalProperties": false
  9015. },
  9016. {
  9017. "type": "null"
  9018. }
  9019. ]
  9020. },
  9021. "required": false,
  9022. "style": "deepObject",
  9023. "explode": true
  9024. }
  9025. ],
  9026. "security": [],
  9027. "responses": {
  9028. "200": {
  9029. "description": "Success",
  9030. "content": {
  9031. "application/json": {
  9032. "schema": {
  9033. "type": "object",
  9034. "properties": {
  9035. "location": {
  9036. "$ref": "#/components/schemas/Location.Info"
  9037. },
  9038. "data": {
  9039. "$ref": "#/components/schemas/Pty"
  9040. }
  9041. },
  9042. "required": ["location", "data"],
  9043. "additionalProperties": false
  9044. }
  9045. }
  9046. }
  9047. },
  9048. "400": {
  9049. "description": "InvalidRequestError",
  9050. "content": {
  9051. "application/json": {
  9052. "schema": {
  9053. "$ref": "#/components/schemas/InvalidRequestError"
  9054. }
  9055. }
  9056. }
  9057. },
  9058. "401": {
  9059. "description": "UnauthorizedError",
  9060. "content": {
  9061. "application/json": {
  9062. "schema": {
  9063. "$ref": "#/components/schemas/UnauthorizedError"
  9064. }
  9065. }
  9066. }
  9067. }
  9068. },
  9069. "description": "Create a pseudo-terminal session for a location.",
  9070. "summary": "Create PTY session",
  9071. "requestBody": {
  9072. "content": {
  9073. "application/json": {
  9074. "schema": {
  9075. "type": "object",
  9076. "properties": {
  9077. "command": {
  9078. "type": "string"
  9079. },
  9080. "args": {
  9081. "type": "array",
  9082. "items": {
  9083. "type": "string"
  9084. }
  9085. },
  9086. "cwd": {
  9087. "type": "string"
  9088. },
  9089. "title": {
  9090. "type": "string"
  9091. },
  9092. "env": {
  9093. "type": "object",
  9094. "additionalProperties": {
  9095. "type": "string"
  9096. }
  9097. }
  9098. },
  9099. "additionalProperties": false
  9100. }
  9101. }
  9102. },
  9103. "required": true
  9104. }
  9105. }
  9106. },
  9107. "/api/pty/{ptyID}": {
  9108. "get": {
  9109. "tags": ["pty"],
  9110. "operationId": "v2.pty.get",
  9111. "parameters": [
  9112. {
  9113. "name": "ptyID",
  9114. "in": "path",
  9115. "schema": {
  9116. "type": "string",
  9117. "allOf": [
  9118. {
  9119. "pattern": "^pty"
  9120. }
  9121. ]
  9122. },
  9123. "required": true
  9124. },
  9125. {
  9126. "name": "location",
  9127. "in": "query",
  9128. "schema": {
  9129. "anyOf": [
  9130. {
  9131. "type": "object",
  9132. "properties": {
  9133. "directory": {
  9134. "anyOf": [
  9135. {
  9136. "type": "string"
  9137. },
  9138. {
  9139. "type": "null"
  9140. }
  9141. ]
  9142. },
  9143. "workspace": {
  9144. "anyOf": [
  9145. {
  9146. "type": "string"
  9147. },
  9148. {
  9149. "type": "null"
  9150. }
  9151. ]
  9152. }
  9153. },
  9154. "additionalProperties": false
  9155. },
  9156. {
  9157. "type": "null"
  9158. }
  9159. ]
  9160. },
  9161. "required": false,
  9162. "style": "deepObject",
  9163. "explode": true
  9164. }
  9165. ],
  9166. "security": [],
  9167. "responses": {
  9168. "200": {
  9169. "description": "Success",
  9170. "content": {
  9171. "application/json": {
  9172. "schema": {
  9173. "type": "object",
  9174. "properties": {
  9175. "location": {
  9176. "$ref": "#/components/schemas/Location.Info"
  9177. },
  9178. "data": {
  9179. "$ref": "#/components/schemas/Pty"
  9180. }
  9181. },
  9182. "required": ["location", "data"],
  9183. "additionalProperties": false
  9184. }
  9185. }
  9186. }
  9187. },
  9188. "400": {
  9189. "description": "InvalidRequestError",
  9190. "content": {
  9191. "application/json": {
  9192. "schema": {
  9193. "$ref": "#/components/schemas/InvalidRequestError"
  9194. }
  9195. }
  9196. }
  9197. },
  9198. "401": {
  9199. "description": "UnauthorizedError",
  9200. "content": {
  9201. "application/json": {
  9202. "schema": {
  9203. "$ref": "#/components/schemas/UnauthorizedError"
  9204. }
  9205. }
  9206. }
  9207. },
  9208. "404": {
  9209. "description": "PtyNotFoundError",
  9210. "content": {
  9211. "application/json": {
  9212. "schema": {
  9213. "$ref": "#/components/schemas/PtyNotFoundError"
  9214. }
  9215. }
  9216. }
  9217. }
  9218. },
  9219. "description": "Get one PTY session, including its exit code once exited.",
  9220. "summary": "Get PTY session"
  9221. },
  9222. "put": {
  9223. "tags": ["pty"],
  9224. "operationId": "v2.pty.update",
  9225. "parameters": [
  9226. {
  9227. "name": "ptyID",
  9228. "in": "path",
  9229. "schema": {
  9230. "type": "string",
  9231. "allOf": [
  9232. {
  9233. "pattern": "^pty"
  9234. }
  9235. ]
  9236. },
  9237. "required": true
  9238. },
  9239. {
  9240. "name": "location",
  9241. "in": "query",
  9242. "schema": {
  9243. "anyOf": [
  9244. {
  9245. "type": "object",
  9246. "properties": {
  9247. "directory": {
  9248. "anyOf": [
  9249. {
  9250. "type": "string"
  9251. },
  9252. {
  9253. "type": "null"
  9254. }
  9255. ]
  9256. },
  9257. "workspace": {
  9258. "anyOf": [
  9259. {
  9260. "type": "string"
  9261. },
  9262. {
  9263. "type": "null"
  9264. }
  9265. ]
  9266. }
  9267. },
  9268. "additionalProperties": false
  9269. },
  9270. {
  9271. "type": "null"
  9272. }
  9273. ]
  9274. },
  9275. "required": false,
  9276. "style": "deepObject",
  9277. "explode": true
  9278. }
  9279. ],
  9280. "security": [],
  9281. "responses": {
  9282. "200": {
  9283. "description": "Success",
  9284. "content": {
  9285. "application/json": {
  9286. "schema": {
  9287. "type": "object",
  9288. "properties": {
  9289. "location": {
  9290. "$ref": "#/components/schemas/Location.Info"
  9291. },
  9292. "data": {
  9293. "$ref": "#/components/schemas/Pty"
  9294. }
  9295. },
  9296. "required": ["location", "data"],
  9297. "additionalProperties": false
  9298. }
  9299. }
  9300. }
  9301. },
  9302. "400": {
  9303. "description": "InvalidRequestError",
  9304. "content": {
  9305. "application/json": {
  9306. "schema": {
  9307. "$ref": "#/components/schemas/InvalidRequestError"
  9308. }
  9309. }
  9310. }
  9311. },
  9312. "401": {
  9313. "description": "UnauthorizedError",
  9314. "content": {
  9315. "application/json": {
  9316. "schema": {
  9317. "$ref": "#/components/schemas/UnauthorizedError"
  9318. }
  9319. }
  9320. }
  9321. },
  9322. "404": {
  9323. "description": "PtyNotFoundError",
  9324. "content": {
  9325. "application/json": {
  9326. "schema": {
  9327. "$ref": "#/components/schemas/PtyNotFoundError"
  9328. }
  9329. }
  9330. }
  9331. }
  9332. },
  9333. "description": "Update the title or viewport size of one PTY session.",
  9334. "summary": "Update PTY session",
  9335. "requestBody": {
  9336. "content": {
  9337. "application/json": {
  9338. "schema": {
  9339. "type": "object",
  9340. "properties": {
  9341. "title": {
  9342. "type": "string"
  9343. },
  9344. "size": {
  9345. "type": "object",
  9346. "properties": {
  9347. "rows": {
  9348. "type": "integer",
  9349. "allOf": [
  9350. {
  9351. "exclusiveMinimum": 0
  9352. }
  9353. ]
  9354. },
  9355. "cols": {
  9356. "type": "integer",
  9357. "allOf": [
  9358. {
  9359. "exclusiveMinimum": 0
  9360. }
  9361. ]
  9362. }
  9363. },
  9364. "required": ["rows", "cols"],
  9365. "additionalProperties": false
  9366. }
  9367. },
  9368. "additionalProperties": false
  9369. }
  9370. }
  9371. },
  9372. "required": true
  9373. }
  9374. },
  9375. "delete": {
  9376. "tags": ["pty"],
  9377. "operationId": "v2.pty.remove",
  9378. "parameters": [
  9379. {
  9380. "name": "ptyID",
  9381. "in": "path",
  9382. "schema": {
  9383. "type": "string",
  9384. "allOf": [
  9385. {
  9386. "pattern": "^pty"
  9387. }
  9388. ]
  9389. },
  9390. "required": true
  9391. },
  9392. {
  9393. "name": "location",
  9394. "in": "query",
  9395. "schema": {
  9396. "anyOf": [
  9397. {
  9398. "type": "object",
  9399. "properties": {
  9400. "directory": {
  9401. "anyOf": [
  9402. {
  9403. "type": "string"
  9404. },
  9405. {
  9406. "type": "null"
  9407. }
  9408. ]
  9409. },
  9410. "workspace": {
  9411. "anyOf": [
  9412. {
  9413. "type": "string"
  9414. },
  9415. {
  9416. "type": "null"
  9417. }
  9418. ]
  9419. }
  9420. },
  9421. "additionalProperties": false
  9422. },
  9423. {
  9424. "type": "null"
  9425. }
  9426. ]
  9427. },
  9428. "required": false,
  9429. "style": "deepObject",
  9430. "explode": true
  9431. }
  9432. ],
  9433. "security": [],
  9434. "responses": {
  9435. "204": {
  9436. "description": "<No Content>"
  9437. },
  9438. "400": {
  9439. "description": "InvalidRequestError",
  9440. "content": {
  9441. "application/json": {
  9442. "schema": {
  9443. "$ref": "#/components/schemas/InvalidRequestError"
  9444. }
  9445. }
  9446. }
  9447. },
  9448. "401": {
  9449. "description": "UnauthorizedError",
  9450. "content": {
  9451. "application/json": {
  9452. "schema": {
  9453. "$ref": "#/components/schemas/UnauthorizedError"
  9454. }
  9455. }
  9456. }
  9457. },
  9458. "404": {
  9459. "description": "PtyNotFoundError",
  9460. "content": {
  9461. "application/json": {
  9462. "schema": {
  9463. "$ref": "#/components/schemas/PtyNotFoundError"
  9464. }
  9465. }
  9466. }
  9467. }
  9468. },
  9469. "description": "Terminate and remove one PTY session.",
  9470. "summary": "Remove PTY session"
  9471. }
  9472. },
  9473. "/api/pty/{ptyID}/connect-token": {
  9474. "post": {
  9475. "tags": ["pty"],
  9476. "operationId": "v2.pty.connect.token",
  9477. "parameters": [
  9478. {
  9479. "name": "ptyID",
  9480. "in": "path",
  9481. "schema": {
  9482. "type": "string",
  9483. "allOf": [
  9484. {
  9485. "pattern": "^pty"
  9486. }
  9487. ]
  9488. },
  9489. "required": true
  9490. },
  9491. {
  9492. "name": "location",
  9493. "in": "query",
  9494. "schema": {
  9495. "anyOf": [
  9496. {
  9497. "type": "object",
  9498. "properties": {
  9499. "directory": {
  9500. "anyOf": [
  9501. {
  9502. "type": "string"
  9503. },
  9504. {
  9505. "type": "null"
  9506. }
  9507. ]
  9508. },
  9509. "workspace": {
  9510. "anyOf": [
  9511. {
  9512. "type": "string"
  9513. },
  9514. {
  9515. "type": "null"
  9516. }
  9517. ]
  9518. }
  9519. },
  9520. "additionalProperties": false
  9521. },
  9522. {
  9523. "type": "null"
  9524. }
  9525. ]
  9526. },
  9527. "required": false,
  9528. "style": "deepObject",
  9529. "explode": true
  9530. }
  9531. ],
  9532. "security": [],
  9533. "responses": {
  9534. "200": {
  9535. "description": "Success",
  9536. "content": {
  9537. "application/json": {
  9538. "schema": {
  9539. "type": "object",
  9540. "properties": {
  9541. "location": {
  9542. "$ref": "#/components/schemas/Location.Info"
  9543. },
  9544. "data": {
  9545. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9546. }
  9547. },
  9548. "required": ["location", "data"],
  9549. "additionalProperties": false
  9550. }
  9551. }
  9552. }
  9553. },
  9554. "400": {
  9555. "description": "InvalidRequestError",
  9556. "content": {
  9557. "application/json": {
  9558. "schema": {
  9559. "$ref": "#/components/schemas/InvalidRequestError"
  9560. }
  9561. }
  9562. }
  9563. },
  9564. "401": {
  9565. "description": "UnauthorizedError",
  9566. "content": {
  9567. "application/json": {
  9568. "schema": {
  9569. "$ref": "#/components/schemas/UnauthorizedError"
  9570. }
  9571. }
  9572. }
  9573. },
  9574. "403": {
  9575. "description": "ForbiddenError",
  9576. "content": {
  9577. "application/json": {
  9578. "schema": {
  9579. "$ref": "#/components/schemas/ForbiddenError"
  9580. }
  9581. }
  9582. }
  9583. },
  9584. "404": {
  9585. "description": "PtyNotFoundError",
  9586. "content": {
  9587. "application/json": {
  9588. "schema": {
  9589. "$ref": "#/components/schemas/PtyNotFoundError"
  9590. }
  9591. }
  9592. }
  9593. }
  9594. },
  9595. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9596. "summary": "Create PTY WebSocket token"
  9597. }
  9598. },
  9599. "/api/pty/{ptyID}/connect": {
  9600. "get": {
  9601. "tags": ["pty"],
  9602. "operationId": "v2.pty.connect",
  9603. "parameters": [
  9604. {
  9605. "name": "ptyID",
  9606. "in": "path",
  9607. "schema": {
  9608. "type": "string",
  9609. "allOf": [
  9610. {
  9611. "pattern": "^pty"
  9612. }
  9613. ]
  9614. },
  9615. "required": true
  9616. },
  9617. {
  9618. "in": "query",
  9619. "name": "location[directory]",
  9620. "schema": {
  9621. "type": "string"
  9622. }
  9623. },
  9624. {
  9625. "in": "query",
  9626. "name": "location[workspace]",
  9627. "schema": {
  9628. "type": "string"
  9629. }
  9630. },
  9631. {
  9632. "in": "query",
  9633. "name": "cursor",
  9634. "schema": {
  9635. "type": "string"
  9636. }
  9637. },
  9638. {
  9639. "in": "query",
  9640. "name": "ticket",
  9641. "schema": {
  9642. "type": "string"
  9643. }
  9644. }
  9645. ],
  9646. "security": [],
  9647. "responses": {
  9648. "200": {
  9649. "description": "Success",
  9650. "content": {
  9651. "application/json": {
  9652. "schema": {
  9653. "type": "boolean"
  9654. }
  9655. }
  9656. }
  9657. },
  9658. "400": {
  9659. "description": "InvalidRequestError",
  9660. "content": {
  9661. "application/json": {
  9662. "schema": {
  9663. "$ref": "#/components/schemas/InvalidRequestError"
  9664. }
  9665. }
  9666. }
  9667. },
  9668. "401": {
  9669. "description": "UnauthorizedError",
  9670. "content": {
  9671. "application/json": {
  9672. "schema": {
  9673. "$ref": "#/components/schemas/UnauthorizedError"
  9674. }
  9675. }
  9676. }
  9677. },
  9678. "403": {
  9679. "description": "ForbiddenError",
  9680. "content": {
  9681. "application/json": {
  9682. "schema": {
  9683. "$ref": "#/components/schemas/ForbiddenError"
  9684. }
  9685. }
  9686. }
  9687. },
  9688. "404": {
  9689. "description": "PtyNotFoundError",
  9690. "content": {
  9691. "application/json": {
  9692. "schema": {
  9693. "$ref": "#/components/schemas/PtyNotFoundError"
  9694. }
  9695. }
  9696. }
  9697. }
  9698. },
  9699. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9700. "summary": "Connect to PTY session",
  9701. "x-websocket": true
  9702. }
  9703. },
  9704. "/api/shell": {
  9705. "get": {
  9706. "tags": ["shell"],
  9707. "operationId": "v2.shell.list",
  9708. "parameters": [
  9709. {
  9710. "name": "location",
  9711. "in": "query",
  9712. "schema": {
  9713. "anyOf": [
  9714. {
  9715. "type": "object",
  9716. "properties": {
  9717. "directory": {
  9718. "anyOf": [
  9719. {
  9720. "type": "string"
  9721. },
  9722. {
  9723. "type": "null"
  9724. }
  9725. ]
  9726. },
  9727. "workspace": {
  9728. "anyOf": [
  9729. {
  9730. "type": "string"
  9731. },
  9732. {
  9733. "type": "null"
  9734. }
  9735. ]
  9736. }
  9737. },
  9738. "additionalProperties": false
  9739. },
  9740. {
  9741. "type": "null"
  9742. }
  9743. ]
  9744. },
  9745. "required": false,
  9746. "style": "deepObject",
  9747. "explode": true
  9748. }
  9749. ],
  9750. "security": [],
  9751. "responses": {
  9752. "200": {
  9753. "description": "Success",
  9754. "content": {
  9755. "application/json": {
  9756. "schema": {
  9757. "type": "object",
  9758. "properties": {
  9759. "location": {
  9760. "$ref": "#/components/schemas/Location.Info"
  9761. },
  9762. "data": {
  9763. "type": "array",
  9764. "items": {
  9765. "$ref": "#/components/schemas/Shell.Info1"
  9766. }
  9767. }
  9768. },
  9769. "required": ["location", "data"],
  9770. "additionalProperties": false
  9771. }
  9772. }
  9773. }
  9774. },
  9775. "400": {
  9776. "description": "InvalidRequestError",
  9777. "content": {
  9778. "application/json": {
  9779. "schema": {
  9780. "$ref": "#/components/schemas/InvalidRequestError"
  9781. }
  9782. }
  9783. }
  9784. },
  9785. "401": {
  9786. "description": "UnauthorizedError",
  9787. "content": {
  9788. "application/json": {
  9789. "schema": {
  9790. "$ref": "#/components/schemas/UnauthorizedError"
  9791. }
  9792. }
  9793. }
  9794. }
  9795. },
  9796. "description": "List currently running shell commands for a location. Exited commands are not included.",
  9797. "summary": "List running shell commands"
  9798. },
  9799. "post": {
  9800. "tags": ["shell"],
  9801. "operationId": "v2.shell.create",
  9802. "parameters": [
  9803. {
  9804. "name": "location",
  9805. "in": "query",
  9806. "schema": {
  9807. "anyOf": [
  9808. {
  9809. "type": "object",
  9810. "properties": {
  9811. "directory": {
  9812. "anyOf": [
  9813. {
  9814. "type": "string"
  9815. },
  9816. {
  9817. "type": "null"
  9818. }
  9819. ]
  9820. },
  9821. "workspace": {
  9822. "anyOf": [
  9823. {
  9824. "type": "string"
  9825. },
  9826. {
  9827. "type": "null"
  9828. }
  9829. ]
  9830. }
  9831. },
  9832. "additionalProperties": false
  9833. },
  9834. {
  9835. "type": "null"
  9836. }
  9837. ]
  9838. },
  9839. "required": false,
  9840. "style": "deepObject",
  9841. "explode": true
  9842. }
  9843. ],
  9844. "security": [],
  9845. "responses": {
  9846. "200": {
  9847. "description": "Success",
  9848. "content": {
  9849. "application/json": {
  9850. "schema": {
  9851. "type": "object",
  9852. "properties": {
  9853. "location": {
  9854. "$ref": "#/components/schemas/Location.Info"
  9855. },
  9856. "data": {
  9857. "$ref": "#/components/schemas/Shell.Info1"
  9858. }
  9859. },
  9860. "required": ["location", "data"],
  9861. "additionalProperties": false
  9862. }
  9863. }
  9864. }
  9865. },
  9866. "400": {
  9867. "description": "InvalidRequestError",
  9868. "content": {
  9869. "application/json": {
  9870. "schema": {
  9871. "$ref": "#/components/schemas/InvalidRequestError"
  9872. }
  9873. }
  9874. }
  9875. },
  9876. "401": {
  9877. "description": "UnauthorizedError",
  9878. "content": {
  9879. "application/json": {
  9880. "schema": {
  9881. "$ref": "#/components/schemas/UnauthorizedError"
  9882. }
  9883. }
  9884. }
  9885. }
  9886. },
  9887. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9888. "summary": "Run shell command",
  9889. "requestBody": {
  9890. "content": {
  9891. "application/json": {
  9892. "schema": {
  9893. "type": "object",
  9894. "properties": {
  9895. "command": {
  9896. "type": "string"
  9897. },
  9898. "cwd": {
  9899. "type": "string"
  9900. },
  9901. "timeout": {
  9902. "type": "integer",
  9903. "allOf": [
  9904. {
  9905. "minimum": 0
  9906. }
  9907. ]
  9908. },
  9909. "metadata": {
  9910. "type": "object"
  9911. }
  9912. },
  9913. "required": ["command", "timeout"],
  9914. "additionalProperties": false
  9915. }
  9916. }
  9917. },
  9918. "required": true
  9919. }
  9920. }
  9921. },
  9922. "/api/shell/{id}": {
  9923. "get": {
  9924. "tags": ["shell"],
  9925. "operationId": "v2.shell.get",
  9926. "parameters": [
  9927. {
  9928. "name": "id",
  9929. "in": "path",
  9930. "schema": {
  9931. "type": "string",
  9932. "allOf": [
  9933. {
  9934. "pattern": "^sh_"
  9935. }
  9936. ]
  9937. },
  9938. "required": true
  9939. },
  9940. {
  9941. "name": "location",
  9942. "in": "query",
  9943. "schema": {
  9944. "anyOf": [
  9945. {
  9946. "type": "object",
  9947. "properties": {
  9948. "directory": {
  9949. "anyOf": [
  9950. {
  9951. "type": "string"
  9952. },
  9953. {
  9954. "type": "null"
  9955. }
  9956. ]
  9957. },
  9958. "workspace": {
  9959. "anyOf": [
  9960. {
  9961. "type": "string"
  9962. },
  9963. {
  9964. "type": "null"
  9965. }
  9966. ]
  9967. }
  9968. },
  9969. "additionalProperties": false
  9970. },
  9971. {
  9972. "type": "null"
  9973. }
  9974. ]
  9975. },
  9976. "required": false,
  9977. "style": "deepObject",
  9978. "explode": true
  9979. }
  9980. ],
  9981. "security": [],
  9982. "responses": {
  9983. "200": {
  9984. "description": "Success",
  9985. "content": {
  9986. "application/json": {
  9987. "schema": {
  9988. "type": "object",
  9989. "properties": {
  9990. "location": {
  9991. "$ref": "#/components/schemas/Location.Info"
  9992. },
  9993. "data": {
  9994. "$ref": "#/components/schemas/Shell.Info1"
  9995. }
  9996. },
  9997. "required": ["location", "data"],
  9998. "additionalProperties": false
  9999. }
  10000. }
  10001. }
  10002. },
  10003. "400": {
  10004. "description": "InvalidRequestError",
  10005. "content": {
  10006. "application/json": {
  10007. "schema": {
  10008. "$ref": "#/components/schemas/InvalidRequestError"
  10009. }
  10010. }
  10011. }
  10012. },
  10013. "401": {
  10014. "description": "UnauthorizedError",
  10015. "content": {
  10016. "application/json": {
  10017. "schema": {
  10018. "$ref": "#/components/schemas/UnauthorizedError"
  10019. }
  10020. }
  10021. }
  10022. },
  10023. "404": {
  10024. "description": "ShellNotFoundError",
  10025. "content": {
  10026. "application/json": {
  10027. "schema": {
  10028. "$ref": "#/components/schemas/ShellNotFoundError"
  10029. }
  10030. }
  10031. }
  10032. }
  10033. },
  10034. "description": "Get one shell command, including its status and exit code once exited.",
  10035. "summary": "Get shell command"
  10036. },
  10037. "delete": {
  10038. "tags": ["shell"],
  10039. "operationId": "v2.shell.remove",
  10040. "parameters": [
  10041. {
  10042. "name": "id",
  10043. "in": "path",
  10044. "schema": {
  10045. "type": "string",
  10046. "allOf": [
  10047. {
  10048. "pattern": "^sh_"
  10049. }
  10050. ]
  10051. },
  10052. "required": true
  10053. },
  10054. {
  10055. "name": "location",
  10056. "in": "query",
  10057. "schema": {
  10058. "anyOf": [
  10059. {
  10060. "type": "object",
  10061. "properties": {
  10062. "directory": {
  10063. "anyOf": [
  10064. {
  10065. "type": "string"
  10066. },
  10067. {
  10068. "type": "null"
  10069. }
  10070. ]
  10071. },
  10072. "workspace": {
  10073. "anyOf": [
  10074. {
  10075. "type": "string"
  10076. },
  10077. {
  10078. "type": "null"
  10079. }
  10080. ]
  10081. }
  10082. },
  10083. "additionalProperties": false
  10084. },
  10085. {
  10086. "type": "null"
  10087. }
  10088. ]
  10089. },
  10090. "required": false,
  10091. "style": "deepObject",
  10092. "explode": true
  10093. }
  10094. ],
  10095. "security": [],
  10096. "responses": {
  10097. "204": {
  10098. "description": "<No Content>"
  10099. },
  10100. "400": {
  10101. "description": "InvalidRequestError",
  10102. "content": {
  10103. "application/json": {
  10104. "schema": {
  10105. "$ref": "#/components/schemas/InvalidRequestError"
  10106. }
  10107. }
  10108. }
  10109. },
  10110. "401": {
  10111. "description": "UnauthorizedError",
  10112. "content": {
  10113. "application/json": {
  10114. "schema": {
  10115. "$ref": "#/components/schemas/UnauthorizedError"
  10116. }
  10117. }
  10118. }
  10119. },
  10120. "404": {
  10121. "description": "ShellNotFoundError",
  10122. "content": {
  10123. "application/json": {
  10124. "schema": {
  10125. "$ref": "#/components/schemas/ShellNotFoundError"
  10126. }
  10127. }
  10128. }
  10129. }
  10130. },
  10131. "description": "Terminate and remove one shell command and its retained output.",
  10132. "summary": "Remove shell command"
  10133. }
  10134. },
  10135. "/api/shell/{id}/timeout": {
  10136. "patch": {
  10137. "tags": ["shell"],
  10138. "operationId": "v2.shell.timeout",
  10139. "parameters": [
  10140. {
  10141. "name": "id",
  10142. "in": "path",
  10143. "schema": {
  10144. "type": "string",
  10145. "allOf": [
  10146. {
  10147. "pattern": "^sh_"
  10148. }
  10149. ]
  10150. },
  10151. "required": true
  10152. },
  10153. {
  10154. "name": "location",
  10155. "in": "query",
  10156. "schema": {
  10157. "anyOf": [
  10158. {
  10159. "type": "object",
  10160. "properties": {
  10161. "directory": {
  10162. "anyOf": [
  10163. {
  10164. "type": "string"
  10165. },
  10166. {
  10167. "type": "null"
  10168. }
  10169. ]
  10170. },
  10171. "workspace": {
  10172. "anyOf": [
  10173. {
  10174. "type": "string"
  10175. },
  10176. {
  10177. "type": "null"
  10178. }
  10179. ]
  10180. }
  10181. },
  10182. "additionalProperties": false
  10183. },
  10184. {
  10185. "type": "null"
  10186. }
  10187. ]
  10188. },
  10189. "required": false,
  10190. "style": "deepObject",
  10191. "explode": true
  10192. }
  10193. ],
  10194. "security": [],
  10195. "responses": {
  10196. "200": {
  10197. "description": "Success",
  10198. "content": {
  10199. "application/json": {
  10200. "schema": {
  10201. "type": "object",
  10202. "properties": {
  10203. "location": {
  10204. "$ref": "#/components/schemas/Location.Info"
  10205. },
  10206. "data": {
  10207. "$ref": "#/components/schemas/Shell.Info1"
  10208. }
  10209. },
  10210. "required": ["location", "data"],
  10211. "additionalProperties": false
  10212. }
  10213. }
  10214. }
  10215. },
  10216. "400": {
  10217. "description": "InvalidRequestError",
  10218. "content": {
  10219. "application/json": {
  10220. "schema": {
  10221. "$ref": "#/components/schemas/InvalidRequestError"
  10222. }
  10223. }
  10224. }
  10225. },
  10226. "401": {
  10227. "description": "UnauthorizedError",
  10228. "content": {
  10229. "application/json": {
  10230. "schema": {
  10231. "$ref": "#/components/schemas/UnauthorizedError"
  10232. }
  10233. }
  10234. }
  10235. },
  10236. "404": {
  10237. "description": "ShellNotFoundError",
  10238. "content": {
  10239. "application/json": {
  10240. "schema": {
  10241. "$ref": "#/components/schemas/ShellNotFoundError"
  10242. }
  10243. }
  10244. }
  10245. }
  10246. },
  10247. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10248. "summary": "Update shell timeout",
  10249. "requestBody": {
  10250. "content": {
  10251. "application/json": {
  10252. "schema": {
  10253. "type": "object",
  10254. "properties": {
  10255. "timeout": {
  10256. "type": "integer",
  10257. "allOf": [
  10258. {
  10259. "minimum": 0
  10260. }
  10261. ]
  10262. }
  10263. },
  10264. "required": ["timeout"],
  10265. "additionalProperties": false
  10266. }
  10267. }
  10268. },
  10269. "required": true
  10270. }
  10271. }
  10272. },
  10273. "/api/shell/{id}/output": {
  10274. "get": {
  10275. "tags": ["shell"],
  10276. "operationId": "v2.shell.output",
  10277. "parameters": [
  10278. {
  10279. "name": "id",
  10280. "in": "path",
  10281. "schema": {
  10282. "type": "string",
  10283. "allOf": [
  10284. {
  10285. "pattern": "^sh_"
  10286. }
  10287. ]
  10288. },
  10289. "required": true
  10290. },
  10291. {
  10292. "name": "location",
  10293. "in": "query",
  10294. "schema": {
  10295. "anyOf": [
  10296. {
  10297. "type": "object",
  10298. "properties": {
  10299. "directory": {
  10300. "anyOf": [
  10301. {
  10302. "type": "string"
  10303. },
  10304. {
  10305. "type": "null"
  10306. }
  10307. ]
  10308. },
  10309. "workspace": {
  10310. "anyOf": [
  10311. {
  10312. "type": "string"
  10313. },
  10314. {
  10315. "type": "null"
  10316. }
  10317. ]
  10318. }
  10319. },
  10320. "additionalProperties": false
  10321. },
  10322. {
  10323. "type": "null"
  10324. }
  10325. ]
  10326. },
  10327. "required": false,
  10328. "style": "deepObject",
  10329. "explode": true
  10330. },
  10331. {
  10332. "name": "cursor",
  10333. "in": "query",
  10334. "schema": {
  10335. "type": "string",
  10336. "allOf": [
  10337. {
  10338. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10339. }
  10340. ]
  10341. },
  10342. "required": false
  10343. },
  10344. {
  10345. "name": "limit",
  10346. "in": "query",
  10347. "schema": {
  10348. "type": "string",
  10349. "allOf": [
  10350. {
  10351. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10352. }
  10353. ]
  10354. },
  10355. "required": false
  10356. }
  10357. ],
  10358. "security": [],
  10359. "responses": {
  10360. "200": {
  10361. "description": "Success",
  10362. "content": {
  10363. "application/json": {
  10364. "schema": {
  10365. "type": "object",
  10366. "properties": {
  10367. "location": {
  10368. "$ref": "#/components/schemas/Location.Info"
  10369. },
  10370. "data": {
  10371. "type": "object",
  10372. "properties": {
  10373. "output": {
  10374. "type": "string"
  10375. },
  10376. "cursor": {
  10377. "type": "integer",
  10378. "allOf": [
  10379. {
  10380. "minimum": 0
  10381. }
  10382. ]
  10383. },
  10384. "size": {
  10385. "type": "integer",
  10386. "allOf": [
  10387. {
  10388. "minimum": 0
  10389. }
  10390. ]
  10391. },
  10392. "truncated": {
  10393. "type": "boolean"
  10394. }
  10395. },
  10396. "required": ["output", "cursor", "size", "truncated"],
  10397. "additionalProperties": false
  10398. }
  10399. },
  10400. "required": ["location", "data"],
  10401. "additionalProperties": false
  10402. }
  10403. }
  10404. }
  10405. },
  10406. "400": {
  10407. "description": "InvalidRequestError",
  10408. "content": {
  10409. "application/json": {
  10410. "schema": {
  10411. "$ref": "#/components/schemas/InvalidRequestError"
  10412. }
  10413. }
  10414. }
  10415. },
  10416. "401": {
  10417. "description": "UnauthorizedError",
  10418. "content": {
  10419. "application/json": {
  10420. "schema": {
  10421. "$ref": "#/components/schemas/UnauthorizedError"
  10422. }
  10423. }
  10424. }
  10425. },
  10426. "404": {
  10427. "description": "ShellNotFoundError",
  10428. "content": {
  10429. "application/json": {
  10430. "schema": {
  10431. "$ref": "#/components/schemas/ShellNotFoundError"
  10432. }
  10433. }
  10434. }
  10435. }
  10436. },
  10437. "description": "Page through captured combined output by absolute byte cursor.",
  10438. "summary": "Read shell output"
  10439. }
  10440. },
  10441. "/api/question/request": {
  10442. "get": {
  10443. "tags": ["question"],
  10444. "operationId": "v2.question.request.list",
  10445. "parameters": [
  10446. {
  10447. "name": "location",
  10448. "in": "query",
  10449. "schema": {
  10450. "anyOf": [
  10451. {
  10452. "type": "object",
  10453. "properties": {
  10454. "directory": {
  10455. "anyOf": [
  10456. {
  10457. "type": "string"
  10458. },
  10459. {
  10460. "type": "null"
  10461. }
  10462. ]
  10463. },
  10464. "workspace": {
  10465. "anyOf": [
  10466. {
  10467. "type": "string"
  10468. },
  10469. {
  10470. "type": "null"
  10471. }
  10472. ]
  10473. }
  10474. },
  10475. "additionalProperties": false
  10476. },
  10477. {
  10478. "type": "null"
  10479. }
  10480. ]
  10481. },
  10482. "required": false,
  10483. "style": "deepObject",
  10484. "explode": true
  10485. }
  10486. ],
  10487. "security": [],
  10488. "responses": {
  10489. "200": {
  10490. "description": "Success",
  10491. "content": {
  10492. "application/json": {
  10493. "schema": {
  10494. "type": "object",
  10495. "properties": {
  10496. "location": {
  10497. "$ref": "#/components/schemas/Location.Info"
  10498. },
  10499. "data": {
  10500. "type": "array",
  10501. "items": {
  10502. "$ref": "#/components/schemas/Question.Request"
  10503. }
  10504. }
  10505. },
  10506. "required": ["location", "data"],
  10507. "additionalProperties": false
  10508. }
  10509. }
  10510. }
  10511. },
  10512. "400": {
  10513. "description": "InvalidRequestError",
  10514. "content": {
  10515. "application/json": {
  10516. "schema": {
  10517. "$ref": "#/components/schemas/InvalidRequestError"
  10518. }
  10519. }
  10520. }
  10521. },
  10522. "401": {
  10523. "description": "UnauthorizedError",
  10524. "content": {
  10525. "application/json": {
  10526. "schema": {
  10527. "$ref": "#/components/schemas/UnauthorizedError"
  10528. }
  10529. }
  10530. }
  10531. }
  10532. },
  10533. "description": "Retrieve pending question requests for a location.",
  10534. "summary": "List pending question requests"
  10535. }
  10536. },
  10537. "/api/session/{sessionID}/question": {
  10538. "get": {
  10539. "tags": ["question"],
  10540. "operationId": "v2.session.question.list",
  10541. "parameters": [
  10542. {
  10543. "name": "sessionID",
  10544. "in": "path",
  10545. "schema": {
  10546. "type": "string",
  10547. "allOf": [
  10548. {
  10549. "pattern": "^ses"
  10550. }
  10551. ]
  10552. },
  10553. "required": true
  10554. }
  10555. ],
  10556. "security": [],
  10557. "responses": {
  10558. "200": {
  10559. "description": "Success",
  10560. "content": {
  10561. "application/json": {
  10562. "schema": {
  10563. "type": "object",
  10564. "properties": {
  10565. "data": {
  10566. "type": "array",
  10567. "items": {
  10568. "$ref": "#/components/schemas/Question.Request"
  10569. }
  10570. }
  10571. },
  10572. "required": ["data"],
  10573. "additionalProperties": false
  10574. }
  10575. }
  10576. }
  10577. },
  10578. "400": {
  10579. "description": "InvalidRequestError",
  10580. "content": {
  10581. "application/json": {
  10582. "schema": {
  10583. "$ref": "#/components/schemas/InvalidRequestError"
  10584. }
  10585. }
  10586. }
  10587. },
  10588. "401": {
  10589. "description": "UnauthorizedError",
  10590. "content": {
  10591. "application/json": {
  10592. "schema": {
  10593. "$ref": "#/components/schemas/UnauthorizedError"
  10594. }
  10595. }
  10596. }
  10597. },
  10598. "404": {
  10599. "description": "SessionNotFoundError",
  10600. "content": {
  10601. "application/json": {
  10602. "schema": {
  10603. "anyOf": [
  10604. {
  10605. "$ref": "#/components/schemas/SessionNotFoundError"
  10606. },
  10607. {
  10608. "$ref": "#/components/schemas/SessionNotFoundError"
  10609. }
  10610. ]
  10611. }
  10612. }
  10613. }
  10614. }
  10615. },
  10616. "description": "Retrieve pending question requests owned by a session.",
  10617. "summary": "List session question requests"
  10618. }
  10619. },
  10620. "/api/session/{sessionID}/question/{requestID}/reply": {
  10621. "post": {
  10622. "tags": ["question"],
  10623. "operationId": "v2.session.question.reply",
  10624. "parameters": [
  10625. {
  10626. "name": "sessionID",
  10627. "in": "path",
  10628. "schema": {
  10629. "type": "string",
  10630. "allOf": [
  10631. {
  10632. "pattern": "^ses"
  10633. }
  10634. ]
  10635. },
  10636. "required": true
  10637. },
  10638. {
  10639. "name": "requestID",
  10640. "in": "path",
  10641. "schema": {
  10642. "type": "string",
  10643. "allOf": [
  10644. {
  10645. "pattern": "^que"
  10646. }
  10647. ]
  10648. },
  10649. "required": true
  10650. }
  10651. ],
  10652. "security": [],
  10653. "responses": {
  10654. "204": {
  10655. "description": "<No Content>"
  10656. },
  10657. "400": {
  10658. "description": "InvalidRequestError",
  10659. "content": {
  10660. "application/json": {
  10661. "schema": {
  10662. "$ref": "#/components/schemas/InvalidRequestError"
  10663. }
  10664. }
  10665. }
  10666. },
  10667. "401": {
  10668. "description": "UnauthorizedError",
  10669. "content": {
  10670. "application/json": {
  10671. "schema": {
  10672. "$ref": "#/components/schemas/UnauthorizedError"
  10673. }
  10674. }
  10675. }
  10676. },
  10677. "404": {
  10678. "description": "SessionNotFoundError | QuestionNotFoundError",
  10679. "content": {
  10680. "application/json": {
  10681. "schema": {
  10682. "anyOf": [
  10683. {
  10684. "$ref": "#/components/schemas/QuestionNotFoundError"
  10685. },
  10686. {
  10687. "$ref": "#/components/schemas/SessionNotFoundError"
  10688. },
  10689. {
  10690. "$ref": "#/components/schemas/SessionNotFoundError"
  10691. }
  10692. ]
  10693. }
  10694. }
  10695. }
  10696. }
  10697. },
  10698. "description": "Answer a pending question request owned by a session.",
  10699. "summary": "Reply to pending question request",
  10700. "requestBody": {
  10701. "content": {
  10702. "application/json": {
  10703. "schema": {
  10704. "$ref": "#/components/schemas/Question.Reply"
  10705. }
  10706. }
  10707. },
  10708. "required": true
  10709. }
  10710. }
  10711. },
  10712. "/api/session/{sessionID}/question/{requestID}/reject": {
  10713. "post": {
  10714. "tags": ["question"],
  10715. "operationId": "v2.session.question.reject",
  10716. "parameters": [
  10717. {
  10718. "name": "sessionID",
  10719. "in": "path",
  10720. "schema": {
  10721. "type": "string",
  10722. "allOf": [
  10723. {
  10724. "pattern": "^ses"
  10725. }
  10726. ]
  10727. },
  10728. "required": true
  10729. },
  10730. {
  10731. "name": "requestID",
  10732. "in": "path",
  10733. "schema": {
  10734. "type": "string",
  10735. "allOf": [
  10736. {
  10737. "pattern": "^que"
  10738. }
  10739. ]
  10740. },
  10741. "required": true
  10742. }
  10743. ],
  10744. "security": [],
  10745. "responses": {
  10746. "204": {
  10747. "description": "<No Content>"
  10748. },
  10749. "400": {
  10750. "description": "InvalidRequestError",
  10751. "content": {
  10752. "application/json": {
  10753. "schema": {
  10754. "$ref": "#/components/schemas/InvalidRequestError"
  10755. }
  10756. }
  10757. }
  10758. },
  10759. "401": {
  10760. "description": "UnauthorizedError",
  10761. "content": {
  10762. "application/json": {
  10763. "schema": {
  10764. "$ref": "#/components/schemas/UnauthorizedError"
  10765. }
  10766. }
  10767. }
  10768. },
  10769. "404": {
  10770. "description": "SessionNotFoundError | QuestionNotFoundError",
  10771. "content": {
  10772. "application/json": {
  10773. "schema": {
  10774. "anyOf": [
  10775. {
  10776. "$ref": "#/components/schemas/QuestionNotFoundError"
  10777. },
  10778. {
  10779. "$ref": "#/components/schemas/SessionNotFoundError"
  10780. },
  10781. {
  10782. "$ref": "#/components/schemas/SessionNotFoundError"
  10783. }
  10784. ]
  10785. }
  10786. }
  10787. }
  10788. }
  10789. },
  10790. "description": "Reject a pending question request owned by a session.",
  10791. "summary": "Reject pending question request"
  10792. }
  10793. },
  10794. "/api/reference": {
  10795. "get": {
  10796. "tags": ["reference"],
  10797. "operationId": "v2.reference.list",
  10798. "parameters": [
  10799. {
  10800. "name": "location",
  10801. "in": "query",
  10802. "schema": {
  10803. "anyOf": [
  10804. {
  10805. "type": "object",
  10806. "properties": {
  10807. "directory": {
  10808. "anyOf": [
  10809. {
  10810. "type": "string"
  10811. },
  10812. {
  10813. "type": "null"
  10814. }
  10815. ]
  10816. },
  10817. "workspace": {
  10818. "anyOf": [
  10819. {
  10820. "type": "string"
  10821. },
  10822. {
  10823. "type": "null"
  10824. }
  10825. ]
  10826. }
  10827. },
  10828. "additionalProperties": false
  10829. },
  10830. {
  10831. "type": "null"
  10832. }
  10833. ]
  10834. },
  10835. "required": false,
  10836. "style": "deepObject",
  10837. "explode": true
  10838. }
  10839. ],
  10840. "security": [],
  10841. "responses": {
  10842. "200": {
  10843. "description": "Success",
  10844. "content": {
  10845. "application/json": {
  10846. "schema": {
  10847. "type": "object",
  10848. "properties": {
  10849. "location": {
  10850. "$ref": "#/components/schemas/Location.Info"
  10851. },
  10852. "data": {
  10853. "type": "array",
  10854. "items": {
  10855. "$ref": "#/components/schemas/Reference.Info"
  10856. }
  10857. }
  10858. },
  10859. "required": ["location", "data"],
  10860. "additionalProperties": false
  10861. }
  10862. }
  10863. }
  10864. },
  10865. "400": {
  10866. "description": "InvalidRequestError",
  10867. "content": {
  10868. "application/json": {
  10869. "schema": {
  10870. "$ref": "#/components/schemas/InvalidRequestError"
  10871. }
  10872. }
  10873. }
  10874. },
  10875. "401": {
  10876. "description": "UnauthorizedError",
  10877. "content": {
  10878. "application/json": {
  10879. "schema": {
  10880. "$ref": "#/components/schemas/UnauthorizedError"
  10881. }
  10882. }
  10883. }
  10884. }
  10885. },
  10886. "description": "List references available in the requested location.",
  10887. "summary": "List references"
  10888. }
  10889. },
  10890. "/api/experimental/project/{projectID}/worktree": {
  10891. "get": {
  10892. "tags": ["worktree"],
  10893. "operationId": "v2.worktree.list",
  10894. "parameters": [
  10895. {
  10896. "name": "projectID",
  10897. "in": "path",
  10898. "schema": {
  10899. "type": "string"
  10900. },
  10901. "required": true
  10902. }
  10903. ],
  10904. "security": [],
  10905. "responses": {
  10906. "200": {
  10907. "description": "Worktree.List",
  10908. "content": {
  10909. "application/json": {
  10910. "schema": {
  10911. "$ref": "#/components/schemas/Worktree.List"
  10912. }
  10913. }
  10914. }
  10915. },
  10916. "400": {
  10917. "description": "InvalidRequestError",
  10918. "content": {
  10919. "application/json": {
  10920. "schema": {
  10921. "$ref": "#/components/schemas/InvalidRequestError"
  10922. }
  10923. }
  10924. }
  10925. },
  10926. "401": {
  10927. "description": "UnauthorizedError",
  10928. "content": {
  10929. "application/json": {
  10930. "schema": {
  10931. "$ref": "#/components/schemas/UnauthorizedError"
  10932. }
  10933. }
  10934. }
  10935. }
  10936. },
  10937. "description": "List known local worktrees for a project.",
  10938. "summary": "List worktrees"
  10939. },
  10940. "post": {
  10941. "tags": ["worktree"],
  10942. "operationId": "v2.worktree.create",
  10943. "parameters": [
  10944. {
  10945. "name": "projectID",
  10946. "in": "path",
  10947. "schema": {
  10948. "type": "string"
  10949. },
  10950. "required": true
  10951. }
  10952. ],
  10953. "security": [],
  10954. "responses": {
  10955. "200": {
  10956. "description": "Worktree.Info",
  10957. "content": {
  10958. "application/json": {
  10959. "schema": {
  10960. "$ref": "#/components/schemas/Worktree.Info"
  10961. }
  10962. }
  10963. }
  10964. },
  10965. "400": {
  10966. "description": "WorktreeError | InvalidRequestError",
  10967. "content": {
  10968. "application/json": {
  10969. "schema": {
  10970. "anyOf": [
  10971. {
  10972. "$ref": "#/components/schemas/WorktreeError"
  10973. },
  10974. {
  10975. "$ref": "#/components/schemas/InvalidRequestError"
  10976. }
  10977. ]
  10978. }
  10979. }
  10980. }
  10981. },
  10982. "401": {
  10983. "description": "UnauthorizedError",
  10984. "content": {
  10985. "application/json": {
  10986. "schema": {
  10987. "$ref": "#/components/schemas/UnauthorizedError"
  10988. }
  10989. }
  10990. }
  10991. }
  10992. },
  10993. "description": "Create a worktree for a project.",
  10994. "summary": "Create worktree",
  10995. "requestBody": {
  10996. "content": {
  10997. "application/json": {
  10998. "schema": {
  10999. "type": "object",
  11000. "properties": {
  11001. "strategy": {
  11002. "type": "string"
  11003. },
  11004. "from": {
  11005. "type": "string"
  11006. },
  11007. "directory": {
  11008. "type": "string"
  11009. },
  11010. "name": {
  11011. "type": "string"
  11012. }
  11013. },
  11014. "required": ["strategy", "directory"],
  11015. "additionalProperties": false
  11016. }
  11017. }
  11018. },
  11019. "required": true
  11020. }
  11021. },
  11022. "delete": {
  11023. "tags": ["worktree"],
  11024. "operationId": "v2.worktree.remove",
  11025. "parameters": [
  11026. {
  11027. "name": "projectID",
  11028. "in": "path",
  11029. "schema": {
  11030. "type": "string"
  11031. },
  11032. "required": true
  11033. }
  11034. ],
  11035. "security": [],
  11036. "responses": {
  11037. "204": {
  11038. "description": "<No Content>"
  11039. },
  11040. "400": {
  11041. "description": "WorktreeError | InvalidRequestError",
  11042. "content": {
  11043. "application/json": {
  11044. "schema": {
  11045. "anyOf": [
  11046. {
  11047. "$ref": "#/components/schemas/WorktreeError"
  11048. },
  11049. {
  11050. "$ref": "#/components/schemas/InvalidRequestError"
  11051. }
  11052. ]
  11053. }
  11054. }
  11055. }
  11056. },
  11057. "401": {
  11058. "description": "UnauthorizedError",
  11059. "content": {
  11060. "application/json": {
  11061. "schema": {
  11062. "$ref": "#/components/schemas/UnauthorizedError"
  11063. }
  11064. }
  11065. }
  11066. }
  11067. },
  11068. "description": "Remove a managed worktree from a project.",
  11069. "summary": "Remove worktree",
  11070. "requestBody": {
  11071. "content": {
  11072. "application/json": {
  11073. "schema": {
  11074. "type": "object",
  11075. "properties": {
  11076. "directory": {
  11077. "type": "string"
  11078. },
  11079. "force": {
  11080. "type": "boolean"
  11081. }
  11082. },
  11083. "required": ["directory", "force"],
  11084. "additionalProperties": false
  11085. }
  11086. }
  11087. },
  11088. "required": true
  11089. }
  11090. }
  11091. },
  11092. "/api/experimental/project/{projectID}/worktree/refresh": {
  11093. "post": {
  11094. "tags": ["worktree"],
  11095. "operationId": "v2.worktree.refresh",
  11096. "parameters": [
  11097. {
  11098. "name": "projectID",
  11099. "in": "path",
  11100. "schema": {
  11101. "type": "string"
  11102. },
  11103. "required": true
  11104. }
  11105. ],
  11106. "security": [],
  11107. "responses": {
  11108. "204": {
  11109. "description": "<No Content>"
  11110. },
  11111. "400": {
  11112. "description": "WorktreeError | InvalidRequestError",
  11113. "content": {
  11114. "application/json": {
  11115. "schema": {
  11116. "anyOf": [
  11117. {
  11118. "$ref": "#/components/schemas/WorktreeError"
  11119. },
  11120. {
  11121. "$ref": "#/components/schemas/InvalidRequestError"
  11122. }
  11123. ]
  11124. }
  11125. }
  11126. }
  11127. },
  11128. "401": {
  11129. "description": "UnauthorizedError",
  11130. "content": {
  11131. "application/json": {
  11132. "schema": {
  11133. "$ref": "#/components/schemas/UnauthorizedError"
  11134. }
  11135. }
  11136. }
  11137. }
  11138. },
  11139. "description": "Reconcile stored worktrees with the project repositories.",
  11140. "summary": "Refresh worktrees"
  11141. }
  11142. },
  11143. "/api/vcs": {
  11144. "get": {
  11145. "tags": ["vcs"],
  11146. "operationId": "v2.vcs.get",
  11147. "parameters": [
  11148. {
  11149. "name": "location",
  11150. "in": "query",
  11151. "schema": {
  11152. "anyOf": [
  11153. {
  11154. "type": "object",
  11155. "properties": {
  11156. "directory": {
  11157. "anyOf": [
  11158. {
  11159. "type": "string"
  11160. },
  11161. {
  11162. "type": "null"
  11163. }
  11164. ]
  11165. },
  11166. "workspace": {
  11167. "anyOf": [
  11168. {
  11169. "type": "string"
  11170. },
  11171. {
  11172. "type": "null"
  11173. }
  11174. ]
  11175. }
  11176. },
  11177. "additionalProperties": false
  11178. },
  11179. {
  11180. "type": "null"
  11181. }
  11182. ]
  11183. },
  11184. "required": false,
  11185. "style": "deepObject",
  11186. "explode": true
  11187. }
  11188. ],
  11189. "security": [],
  11190. "responses": {
  11191. "200": {
  11192. "description": "Success",
  11193. "content": {
  11194. "application/json": {
  11195. "schema": {
  11196. "type": "object",
  11197. "properties": {
  11198. "location": {
  11199. "$ref": "#/components/schemas/Location.Info"
  11200. },
  11201. "data": {
  11202. "$ref": "#/components/schemas/Vcs.Info"
  11203. }
  11204. },
  11205. "required": ["location", "data"],
  11206. "additionalProperties": false
  11207. }
  11208. }
  11209. }
  11210. },
  11211. "400": {
  11212. "description": "InvalidRequestError",
  11213. "content": {
  11214. "application/json": {
  11215. "schema": {
  11216. "$ref": "#/components/schemas/InvalidRequestError"
  11217. }
  11218. }
  11219. }
  11220. },
  11221. "401": {
  11222. "description": "UnauthorizedError",
  11223. "content": {
  11224. "application/json": {
  11225. "schema": {
  11226. "$ref": "#/components/schemas/UnauthorizedError"
  11227. }
  11228. }
  11229. }
  11230. }
  11231. },
  11232. "description": "Get current and default branch information for the requested location.",
  11233. "summary": "VCS info"
  11234. }
  11235. },
  11236. "/api/vcs/status": {
  11237. "get": {
  11238. "tags": ["vcs"],
  11239. "operationId": "v2.vcs.status",
  11240. "parameters": [
  11241. {
  11242. "name": "location",
  11243. "in": "query",
  11244. "schema": {
  11245. "anyOf": [
  11246. {
  11247. "type": "object",
  11248. "properties": {
  11249. "directory": {
  11250. "anyOf": [
  11251. {
  11252. "type": "string"
  11253. },
  11254. {
  11255. "type": "null"
  11256. }
  11257. ]
  11258. },
  11259. "workspace": {
  11260. "anyOf": [
  11261. {
  11262. "type": "string"
  11263. },
  11264. {
  11265. "type": "null"
  11266. }
  11267. ]
  11268. }
  11269. },
  11270. "additionalProperties": false
  11271. },
  11272. {
  11273. "type": "null"
  11274. }
  11275. ]
  11276. },
  11277. "required": false,
  11278. "style": "deepObject",
  11279. "explode": true
  11280. }
  11281. ],
  11282. "security": [],
  11283. "responses": {
  11284. "200": {
  11285. "description": "Success",
  11286. "content": {
  11287. "application/json": {
  11288. "schema": {
  11289. "type": "object",
  11290. "properties": {
  11291. "location": {
  11292. "$ref": "#/components/schemas/Location.Info"
  11293. },
  11294. "data": {
  11295. "type": "array",
  11296. "items": {
  11297. "$ref": "#/components/schemas/Vcs.FileStatus"
  11298. }
  11299. }
  11300. },
  11301. "required": ["location", "data"],
  11302. "additionalProperties": false
  11303. }
  11304. }
  11305. }
  11306. },
  11307. "400": {
  11308. "description": "InvalidRequestError",
  11309. "content": {
  11310. "application/json": {
  11311. "schema": {
  11312. "$ref": "#/components/schemas/InvalidRequestError"
  11313. }
  11314. }
  11315. }
  11316. },
  11317. "401": {
  11318. "description": "UnauthorizedError",
  11319. "content": {
  11320. "application/json": {
  11321. "schema": {
  11322. "$ref": "#/components/schemas/UnauthorizedError"
  11323. }
  11324. }
  11325. }
  11326. }
  11327. },
  11328. "description": "List uncommitted working-copy changes relative to the requested location.",
  11329. "summary": "VCS status"
  11330. }
  11331. },
  11332. "/api/vcs/diff": {
  11333. "get": {
  11334. "tags": ["vcs"],
  11335. "operationId": "v2.vcs.diff",
  11336. "parameters": [
  11337. {
  11338. "name": "location",
  11339. "in": "query",
  11340. "schema": {
  11341. "anyOf": [
  11342. {
  11343. "type": "object",
  11344. "properties": {
  11345. "directory": {
  11346. "anyOf": [
  11347. {
  11348. "type": "string"
  11349. },
  11350. {
  11351. "type": "null"
  11352. }
  11353. ]
  11354. },
  11355. "workspace": {
  11356. "anyOf": [
  11357. {
  11358. "type": "string"
  11359. },
  11360. {
  11361. "type": "null"
  11362. }
  11363. ]
  11364. }
  11365. },
  11366. "additionalProperties": false
  11367. },
  11368. {
  11369. "type": "null"
  11370. }
  11371. ]
  11372. },
  11373. "required": false,
  11374. "style": "deepObject",
  11375. "explode": true
  11376. },
  11377. {
  11378. "name": "mode",
  11379. "in": "query",
  11380. "schema": {
  11381. "$ref": "#/components/schemas/Vcs.Mode"
  11382. },
  11383. "required": true
  11384. },
  11385. {
  11386. "name": "context",
  11387. "in": "query",
  11388. "schema": {
  11389. "anyOf": [
  11390. {
  11391. "type": "string"
  11392. },
  11393. {
  11394. "type": "null"
  11395. }
  11396. ]
  11397. },
  11398. "required": false
  11399. }
  11400. ],
  11401. "security": [],
  11402. "responses": {
  11403. "200": {
  11404. "description": "Success",
  11405. "content": {
  11406. "application/json": {
  11407. "schema": {
  11408. "type": "object",
  11409. "properties": {
  11410. "location": {
  11411. "$ref": "#/components/schemas/Location.Info"
  11412. },
  11413. "data": {
  11414. "type": "array",
  11415. "items": {
  11416. "$ref": "#/components/schemas/FileDiff.Info"
  11417. }
  11418. }
  11419. },
  11420. "required": ["location", "data"],
  11421. "additionalProperties": false
  11422. }
  11423. }
  11424. }
  11425. },
  11426. "400": {
  11427. "description": "InvalidRequestError",
  11428. "content": {
  11429. "application/json": {
  11430. "schema": {
  11431. "$ref": "#/components/schemas/InvalidRequestError"
  11432. }
  11433. }
  11434. }
  11435. },
  11436. "401": {
  11437. "description": "UnauthorizedError",
  11438. "content": {
  11439. "application/json": {
  11440. "schema": {
  11441. "$ref": "#/components/schemas/UnauthorizedError"
  11442. }
  11443. }
  11444. }
  11445. }
  11446. },
  11447. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11448. "summary": "VCS diff"
  11449. }
  11450. },
  11451. "/api/debug/location": {
  11452. "get": {
  11453. "tags": ["debug"],
  11454. "operationId": "v2.debug.location.list",
  11455. "parameters": [],
  11456. "security": [],
  11457. "responses": {
  11458. "200": {
  11459. "description": "Success",
  11460. "content": {
  11461. "application/json": {
  11462. "schema": {
  11463. "type": "array",
  11464. "items": {
  11465. "$ref": "#/components/schemas/Location.Ref"
  11466. }
  11467. }
  11468. }
  11469. }
  11470. },
  11471. "400": {
  11472. "description": "InvalidRequestError",
  11473. "content": {
  11474. "application/json": {
  11475. "schema": {
  11476. "$ref": "#/components/schemas/InvalidRequestError"
  11477. }
  11478. }
  11479. }
  11480. },
  11481. "401": {
  11482. "description": "UnauthorizedError",
  11483. "content": {
  11484. "application/json": {
  11485. "schema": {
  11486. "$ref": "#/components/schemas/UnauthorizedError"
  11487. }
  11488. }
  11489. }
  11490. }
  11491. },
  11492. "description": "List locations currently loaded by the server.",
  11493. "summary": "List loaded locations"
  11494. },
  11495. "delete": {
  11496. "tags": ["debug"],
  11497. "operationId": "v2.debug.location.evict",
  11498. "parameters": [
  11499. {
  11500. "name": "location",
  11501. "in": "query",
  11502. "schema": {
  11503. "anyOf": [
  11504. {
  11505. "type": "object",
  11506. "properties": {
  11507. "directory": {
  11508. "anyOf": [
  11509. {
  11510. "type": "string"
  11511. },
  11512. {
  11513. "type": "null"
  11514. }
  11515. ]
  11516. },
  11517. "workspace": {
  11518. "anyOf": [
  11519. {
  11520. "type": "string"
  11521. },
  11522. {
  11523. "type": "null"
  11524. }
  11525. ]
  11526. }
  11527. },
  11528. "additionalProperties": false
  11529. },
  11530. {
  11531. "type": "null"
  11532. }
  11533. ]
  11534. },
  11535. "required": false,
  11536. "style": "deepObject",
  11537. "explode": true
  11538. }
  11539. ],
  11540. "security": [],
  11541. "responses": {
  11542. "204": {
  11543. "description": "<No Content>"
  11544. },
  11545. "400": {
  11546. "description": "InvalidRequestError",
  11547. "content": {
  11548. "application/json": {
  11549. "schema": {
  11550. "$ref": "#/components/schemas/InvalidRequestError"
  11551. }
  11552. }
  11553. }
  11554. },
  11555. "401": {
  11556. "description": "UnauthorizedError",
  11557. "content": {
  11558. "application/json": {
  11559. "schema": {
  11560. "$ref": "#/components/schemas/UnauthorizedError"
  11561. }
  11562. }
  11563. }
  11564. }
  11565. },
  11566. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11567. "summary": "Evict a loaded location"
  11568. }
  11569. },
  11570. "/api/experimental/migration/v1": {
  11571. "get": {
  11572. "tags": ["migration"],
  11573. "operationId": "v2.experimental.migration.v1.status",
  11574. "parameters": [],
  11575. "security": [],
  11576. "responses": {
  11577. "200": {
  11578. "description": "Success",
  11579. "content": {
  11580. "application/json": {
  11581. "schema": {
  11582. "anyOf": [
  11583. {
  11584. "type": "object",
  11585. "properties": {
  11586. "status": {
  11587. "type": "string",
  11588. "enum": ["required", "completed"]
  11589. }
  11590. },
  11591. "required": ["status"],
  11592. "additionalProperties": false
  11593. },
  11594. {
  11595. "type": "object",
  11596. "properties": {
  11597. "status": {
  11598. "type": "string",
  11599. "enum": ["running"]
  11600. },
  11601. "progress": {
  11602. "type": "object",
  11603. "properties": {
  11604. "label": {
  11605. "type": "string"
  11606. },
  11607. "numerator": {
  11608. "anyOf": [
  11609. {
  11610. "type": "integer",
  11611. "allOf": [
  11612. {
  11613. "minimum": 0
  11614. }
  11615. ]
  11616. },
  11617. {
  11618. "type": "null"
  11619. }
  11620. ]
  11621. },
  11622. "denominator": {
  11623. "anyOf": [
  11624. {
  11625. "type": "integer",
  11626. "allOf": [
  11627. {
  11628. "minimum": 0
  11629. }
  11630. ]
  11631. },
  11632. {
  11633. "type": "null"
  11634. }
  11635. ]
  11636. }
  11637. },
  11638. "required": ["label"],
  11639. "additionalProperties": false
  11640. }
  11641. },
  11642. "required": ["status", "progress"],
  11643. "additionalProperties": false
  11644. },
  11645. {
  11646. "type": "object",
  11647. "properties": {
  11648. "status": {
  11649. "type": "string",
  11650. "enum": ["error"]
  11651. },
  11652. "error": {
  11653. "type": "string"
  11654. }
  11655. },
  11656. "required": ["status", "error"],
  11657. "additionalProperties": false
  11658. }
  11659. ]
  11660. }
  11661. }
  11662. }
  11663. },
  11664. "400": {
  11665. "description": "InvalidRequestError",
  11666. "content": {
  11667. "application/json": {
  11668. "schema": {
  11669. "$ref": "#/components/schemas/InvalidRequestError"
  11670. }
  11671. }
  11672. }
  11673. },
  11674. "401": {
  11675. "description": "UnauthorizedError",
  11676. "content": {
  11677. "application/json": {
  11678. "schema": {
  11679. "$ref": "#/components/schemas/UnauthorizedError"
  11680. }
  11681. }
  11682. }
  11683. }
  11684. },
  11685. "description": "Return the progress of the V1 to V2 session history migration.",
  11686. "summary": "Get V1 migration status"
  11687. }
  11688. },
  11689. "/api/websearch/provider": {
  11690. "get": {
  11691. "tags": ["websearch"],
  11692. "operationId": "v2.websearch.providers",
  11693. "parameters": [
  11694. {
  11695. "name": "location",
  11696. "in": "query",
  11697. "schema": {
  11698. "anyOf": [
  11699. {
  11700. "type": "object",
  11701. "properties": {
  11702. "directory": {
  11703. "anyOf": [
  11704. {
  11705. "type": "string"
  11706. },
  11707. {
  11708. "type": "null"
  11709. }
  11710. ]
  11711. },
  11712. "workspace": {
  11713. "anyOf": [
  11714. {
  11715. "type": "string"
  11716. },
  11717. {
  11718. "type": "null"
  11719. }
  11720. ]
  11721. }
  11722. },
  11723. "additionalProperties": false
  11724. },
  11725. {
  11726. "type": "null"
  11727. }
  11728. ]
  11729. },
  11730. "required": false,
  11731. "style": "deepObject",
  11732. "explode": true
  11733. }
  11734. ],
  11735. "security": [],
  11736. "responses": {
  11737. "200": {
  11738. "description": "Success",
  11739. "content": {
  11740. "application/json": {
  11741. "schema": {
  11742. "type": "object",
  11743. "properties": {
  11744. "location": {
  11745. "$ref": "#/components/schemas/Location.Info"
  11746. },
  11747. "data": {
  11748. "type": "array",
  11749. "items": {
  11750. "$ref": "#/components/schemas/WebSearch.Provider"
  11751. }
  11752. }
  11753. },
  11754. "required": ["location", "data"],
  11755. "additionalProperties": false
  11756. }
  11757. }
  11758. }
  11759. },
  11760. "400": {
  11761. "description": "InvalidRequestError",
  11762. "content": {
  11763. "application/json": {
  11764. "schema": {
  11765. "$ref": "#/components/schemas/InvalidRequestError"
  11766. }
  11767. }
  11768. }
  11769. },
  11770. "401": {
  11771. "description": "UnauthorizedError",
  11772. "content": {
  11773. "application/json": {
  11774. "schema": {
  11775. "$ref": "#/components/schemas/UnauthorizedError"
  11776. }
  11777. }
  11778. }
  11779. },
  11780. "503": {
  11781. "description": "ServiceUnavailableError",
  11782. "content": {
  11783. "application/json": {
  11784. "schema": {
  11785. "$ref": "#/components/schemas/ServiceUnavailableError"
  11786. }
  11787. }
  11788. }
  11789. }
  11790. },
  11791. "description": "Return the registered web search providers.",
  11792. "summary": "List web search providers"
  11793. }
  11794. },
  11795. "/api/websearch": {
  11796. "post": {
  11797. "tags": ["websearch"],
  11798. "operationId": "v2.websearch.query",
  11799. "parameters": [
  11800. {
  11801. "name": "location",
  11802. "in": "query",
  11803. "schema": {
  11804. "anyOf": [
  11805. {
  11806. "type": "object",
  11807. "properties": {
  11808. "directory": {
  11809. "anyOf": [
  11810. {
  11811. "type": "string"
  11812. },
  11813. {
  11814. "type": "null"
  11815. }
  11816. ]
  11817. },
  11818. "workspace": {
  11819. "anyOf": [
  11820. {
  11821. "type": "string"
  11822. },
  11823. {
  11824. "type": "null"
  11825. }
  11826. ]
  11827. }
  11828. },
  11829. "additionalProperties": false
  11830. },
  11831. {
  11832. "type": "null"
  11833. }
  11834. ]
  11835. },
  11836. "required": false,
  11837. "style": "deepObject",
  11838. "explode": true
  11839. }
  11840. ],
  11841. "security": [],
  11842. "responses": {
  11843. "200": {
  11844. "description": "Success",
  11845. "content": {
  11846. "application/json": {
  11847. "schema": {
  11848. "type": "object",
  11849. "properties": {
  11850. "location": {
  11851. "$ref": "#/components/schemas/Location.Info"
  11852. },
  11853. "data": {
  11854. "$ref": "#/components/schemas/WebSearch.Response"
  11855. }
  11856. },
  11857. "required": ["location", "data"],
  11858. "additionalProperties": false
  11859. }
  11860. }
  11861. }
  11862. },
  11863. "400": {
  11864. "description": "InvalidRequestError",
  11865. "content": {
  11866. "application/json": {
  11867. "schema": {
  11868. "anyOf": [
  11869. {
  11870. "$ref": "#/components/schemas/InvalidRequestError1"
  11871. },
  11872. {
  11873. "$ref": "#/components/schemas/InvalidRequestError"
  11874. }
  11875. ]
  11876. }
  11877. }
  11878. }
  11879. },
  11880. "401": {
  11881. "description": "UnauthorizedError",
  11882. "content": {
  11883. "application/json": {
  11884. "schema": {
  11885. "$ref": "#/components/schemas/UnauthorizedError"
  11886. }
  11887. }
  11888. }
  11889. },
  11890. "503": {
  11891. "description": "ServiceUnavailableError",
  11892. "content": {
  11893. "application/json": {
  11894. "schema": {
  11895. "$ref": "#/components/schemas/ServiceUnavailableError"
  11896. }
  11897. }
  11898. }
  11899. }
  11900. },
  11901. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  11902. "summary": "Search the web",
  11903. "requestBody": {
  11904. "content": {
  11905. "application/json": {
  11906. "schema": {
  11907. "type": "object",
  11908. "properties": {
  11909. "query": {
  11910. "type": "string"
  11911. },
  11912. "providerID": {
  11913. "type": "string"
  11914. }
  11915. },
  11916. "required": ["query"],
  11917. "additionalProperties": false
  11918. }
  11919. }
  11920. },
  11921. "required": true
  11922. }
  11923. }
  11924. },
  11925. "/api/config": {
  11926. "get": {
  11927. "tags": ["config"],
  11928. "operationId": "v2.config.get",
  11929. "parameters": [
  11930. {
  11931. "name": "location",
  11932. "in": "query",
  11933. "schema": {
  11934. "anyOf": [
  11935. {
  11936. "type": "object",
  11937. "properties": {
  11938. "directory": {
  11939. "anyOf": [
  11940. {
  11941. "type": "string"
  11942. },
  11943. {
  11944. "type": "null"
  11945. }
  11946. ]
  11947. },
  11948. "workspace": {
  11949. "anyOf": [
  11950. {
  11951. "type": "string"
  11952. },
  11953. {
  11954. "type": "null"
  11955. }
  11956. ]
  11957. }
  11958. },
  11959. "additionalProperties": false
  11960. },
  11961. {
  11962. "type": "null"
  11963. }
  11964. ]
  11965. },
  11966. "required": false,
  11967. "style": "deepObject",
  11968. "explode": true
  11969. }
  11970. ],
  11971. "security": [],
  11972. "responses": {
  11973. "200": {
  11974. "description": "Success",
  11975. "content": {
  11976. "application/json": {
  11977. "schema": {
  11978. "type": "array",
  11979. "items": {
  11980. "$ref": "#/components/schemas/Config.Entry"
  11981. }
  11982. }
  11983. }
  11984. }
  11985. },
  11986. "400": {
  11987. "description": "InvalidRequestError",
  11988. "content": {
  11989. "application/json": {
  11990. "schema": {
  11991. "$ref": "#/components/schemas/InvalidRequestError"
  11992. }
  11993. }
  11994. }
  11995. },
  11996. "401": {
  11997. "description": "UnauthorizedError",
  11998. "content": {
  11999. "application/json": {
  12000. "schema": {
  12001. "$ref": "#/components/schemas/UnauthorizedError"
  12002. }
  12003. }
  12004. }
  12005. }
  12006. },
  12007. "description": "Return configuration documents and discovery sources for the requested location, from lowest to highest priority.",
  12008. "summary": "Get configuration"
  12009. }
  12010. }
  12011. },
  12012. "components": {
  12013. "schemas": {
  12014. "ServiceHealth": {
  12015. "type": "object",
  12016. "properties": {
  12017. "healthy": {
  12018. "type": "boolean",
  12019. "enum": [true]
  12020. },
  12021. "version": {
  12022. "type": "string"
  12023. },
  12024. "pid": {
  12025. "type": "integer",
  12026. "allOf": [
  12027. {
  12028. "minimum": 0
  12029. }
  12030. ]
  12031. }
  12032. },
  12033. "required": ["healthy", "version", "pid"],
  12034. "additionalProperties": false
  12035. },
  12036. "UnauthorizedError": {
  12037. "type": "object",
  12038. "properties": {
  12039. "_tag": {
  12040. "type": "string",
  12041. "enum": ["UnauthorizedError"]
  12042. },
  12043. "message": {
  12044. "type": "string"
  12045. }
  12046. },
  12047. "required": ["_tag", "message"],
  12048. "additionalProperties": false
  12049. },
  12050. "InvalidRequestError": {
  12051. "type": "object",
  12052. "properties": {
  12053. "_tag": {
  12054. "type": "string",
  12055. "enum": ["InvalidRequestError"]
  12056. },
  12057. "message": {
  12058. "type": "string"
  12059. },
  12060. "kind": {
  12061. "anyOf": [
  12062. {
  12063. "type": "string"
  12064. },
  12065. {
  12066. "type": "null"
  12067. }
  12068. ]
  12069. },
  12070. "field": {
  12071. "anyOf": [
  12072. {
  12073. "type": "string"
  12074. },
  12075. {
  12076. "type": "null"
  12077. }
  12078. ]
  12079. }
  12080. },
  12081. "required": ["_tag", "message"],
  12082. "additionalProperties": false
  12083. },
  12084. "ServiceStopRequest": {
  12085. "type": "object",
  12086. "properties": {
  12087. "instanceID": {
  12088. "type": "string"
  12089. }
  12090. },
  12091. "required": ["instanceID"],
  12092. "additionalProperties": false
  12093. },
  12094. "ServiceStopResponse": {
  12095. "type": "object",
  12096. "properties": {
  12097. "accepted": {
  12098. "type": "boolean"
  12099. }
  12100. },
  12101. "required": ["accepted"],
  12102. "additionalProperties": false
  12103. },
  12104. "Location.Info": {
  12105. "type": "object",
  12106. "properties": {
  12107. "directory": {
  12108. "type": "string"
  12109. },
  12110. "workspaceID": {
  12111. "type": "string",
  12112. "allOf": [
  12113. {
  12114. "pattern": "^wrk"
  12115. }
  12116. ]
  12117. },
  12118. "project": {
  12119. "type": "object",
  12120. "properties": {
  12121. "id": {
  12122. "type": "string"
  12123. },
  12124. "directory": {
  12125. "type": "string"
  12126. },
  12127. "canonical": {
  12128. "type": "string"
  12129. }
  12130. },
  12131. "required": ["id", "directory", "canonical"],
  12132. "additionalProperties": false
  12133. }
  12134. },
  12135. "required": ["directory", "project"],
  12136. "additionalProperties": false
  12137. },
  12138. "Model.Ref": {
  12139. "type": "object",
  12140. "properties": {
  12141. "id": {
  12142. "type": "string"
  12143. },
  12144. "providerID": {
  12145. "type": "string"
  12146. },
  12147. "variant": {
  12148. "type": "string"
  12149. }
  12150. },
  12151. "required": ["id", "providerID"],
  12152. "additionalProperties": false
  12153. },
  12154. "Provider.Settings": {
  12155. "type": "object"
  12156. },
  12157. "Provider.Request": {
  12158. "type": "object",
  12159. "properties": {
  12160. "settings": {
  12161. "$ref": "#/components/schemas/Provider.Settings"
  12162. },
  12163. "headers": {
  12164. "type": "object",
  12165. "additionalProperties": {
  12166. "type": "string"
  12167. }
  12168. },
  12169. "body": {
  12170. "type": "object"
  12171. }
  12172. },
  12173. "required": ["settings", "headers", "body"],
  12174. "additionalProperties": false
  12175. },
  12176. "Agent.Color": {
  12177. "type": "string"
  12178. },
  12179. "Permission.Effect": {
  12180. "type": "string",
  12181. "enum": ["allow", "deny", "ask"]
  12182. },
  12183. "Permission.Rule": {
  12184. "type": "object",
  12185. "properties": {
  12186. "action": {
  12187. "type": "string"
  12188. },
  12189. "resource": {
  12190. "type": "string"
  12191. },
  12192. "effect": {
  12193. "$ref": "#/components/schemas/Permission.Effect"
  12194. }
  12195. },
  12196. "required": ["action", "resource", "effect"],
  12197. "additionalProperties": false
  12198. },
  12199. "Permission.Ruleset": {
  12200. "type": "array",
  12201. "items": {
  12202. "$ref": "#/components/schemas/Permission.Rule"
  12203. }
  12204. },
  12205. "Agent.Info": {
  12206. "type": "object",
  12207. "properties": {
  12208. "id": {
  12209. "type": "string"
  12210. },
  12211. "name": {
  12212. "type": "string"
  12213. },
  12214. "model": {
  12215. "$ref": "#/components/schemas/Model.Ref"
  12216. },
  12217. "request": {
  12218. "$ref": "#/components/schemas/Provider.Request"
  12219. },
  12220. "system": {
  12221. "type": "string"
  12222. },
  12223. "description": {
  12224. "type": "string"
  12225. },
  12226. "mode": {
  12227. "type": "string",
  12228. "enum": ["subagent", "primary", "all"]
  12229. },
  12230. "hidden": {
  12231. "type": "boolean"
  12232. },
  12233. "color": {
  12234. "$ref": "#/components/schemas/Agent.Color"
  12235. },
  12236. "steps": {
  12237. "type": "integer",
  12238. "allOf": [
  12239. {
  12240. "exclusiveMinimum": 0
  12241. }
  12242. ]
  12243. },
  12244. "permissions": {
  12245. "$ref": "#/components/schemas/Permission.Ruleset"
  12246. }
  12247. },
  12248. "required": ["id", "name", "request", "mode", "hidden", "permissions"],
  12249. "additionalProperties": false
  12250. },
  12251. "AgentNotFoundError": {
  12252. "type": "object",
  12253. "properties": {
  12254. "_tag": {
  12255. "type": "string",
  12256. "enum": ["AgentNotFoundError"]
  12257. },
  12258. "agentID": {
  12259. "type": "string"
  12260. },
  12261. "message": {
  12262. "type": "string"
  12263. }
  12264. },
  12265. "required": ["_tag", "agentID", "message"],
  12266. "additionalProperties": false
  12267. },
  12268. "Plugin.Info": {
  12269. "type": "object",
  12270. "properties": {
  12271. "id": {
  12272. "type": "string"
  12273. }
  12274. },
  12275. "required": ["id"],
  12276. "additionalProperties": false
  12277. },
  12278. "Session.ForkBoundary": {
  12279. "anyOf": [
  12280. {
  12281. "type": "object",
  12282. "properties": {
  12283. "type": {
  12284. "type": "string",
  12285. "enum": ["before"]
  12286. },
  12287. "messageID": {
  12288. "type": "string",
  12289. "allOf": [
  12290. {
  12291. "pattern": "^msg_"
  12292. }
  12293. ]
  12294. }
  12295. },
  12296. "required": ["type", "messageID"],
  12297. "additionalProperties": false
  12298. },
  12299. {
  12300. "type": "object",
  12301. "properties": {
  12302. "type": {
  12303. "type": "string",
  12304. "enum": ["through"]
  12305. },
  12306. "messageID": {
  12307. "type": "string",
  12308. "allOf": [
  12309. {
  12310. "pattern": "^msg_"
  12311. }
  12312. ]
  12313. }
  12314. },
  12315. "required": ["type", "messageID"],
  12316. "additionalProperties": false
  12317. }
  12318. ]
  12319. },
  12320. "Money.USD": {
  12321. "type": "number"
  12322. },
  12323. "TokenUsage.Info": {
  12324. "type": "object",
  12325. "properties": {
  12326. "input": {
  12327. "type": "number"
  12328. },
  12329. "output": {
  12330. "type": "number"
  12331. },
  12332. "reasoning": {
  12333. "type": "number"
  12334. },
  12335. "cache": {
  12336. "type": "object",
  12337. "properties": {
  12338. "read": {
  12339. "type": "number"
  12340. },
  12341. "write": {
  12342. "type": "number"
  12343. }
  12344. },
  12345. "required": ["read", "write"],
  12346. "additionalProperties": false
  12347. }
  12348. },
  12349. "required": ["input", "output", "reasoning", "cache"],
  12350. "additionalProperties": false
  12351. },
  12352. "Location.Ref": {
  12353. "type": "object",
  12354. "properties": {
  12355. "directory": {
  12356. "type": "string"
  12357. },
  12358. "workspaceID": {
  12359. "type": "string",
  12360. "allOf": [
  12361. {
  12362. "pattern": "^wrk"
  12363. }
  12364. ]
  12365. }
  12366. },
  12367. "required": ["directory"],
  12368. "additionalProperties": false
  12369. },
  12370. "FileDiff.Info": {
  12371. "type": "object",
  12372. "properties": {
  12373. "file": {
  12374. "type": "string"
  12375. },
  12376. "patch": {
  12377. "type": "string"
  12378. },
  12379. "additions": {
  12380. "type": "integer",
  12381. "allOf": [
  12382. {
  12383. "minimum": 0
  12384. }
  12385. ]
  12386. },
  12387. "deletions": {
  12388. "type": "integer",
  12389. "allOf": [
  12390. {
  12391. "minimum": 0
  12392. }
  12393. ]
  12394. },
  12395. "status": {
  12396. "type": "string",
  12397. "enum": ["added", "deleted", "modified"]
  12398. }
  12399. },
  12400. "required": ["file", "patch", "additions", "deletions", "status"],
  12401. "additionalProperties": false
  12402. },
  12403. "Session.Revert": {
  12404. "type": "object",
  12405. "properties": {
  12406. "messageID": {
  12407. "type": "string",
  12408. "allOf": [
  12409. {
  12410. "pattern": "^msg_"
  12411. }
  12412. ]
  12413. },
  12414. "partID": {
  12415. "type": "string"
  12416. },
  12417. "snapshot": {
  12418. "type": "string"
  12419. },
  12420. "files": {
  12421. "type": "array",
  12422. "items": {
  12423. "$ref": "#/components/schemas/FileDiff.Info"
  12424. }
  12425. }
  12426. },
  12427. "required": ["messageID"],
  12428. "additionalProperties": false
  12429. },
  12430. "Session.Info": {
  12431. "type": "object",
  12432. "properties": {
  12433. "id": {
  12434. "type": "string",
  12435. "allOf": [
  12436. {
  12437. "pattern": "^ses"
  12438. }
  12439. ]
  12440. },
  12441. "parentID": {
  12442. "type": "string",
  12443. "allOf": [
  12444. {
  12445. "pattern": "^ses"
  12446. }
  12447. ]
  12448. },
  12449. "fork": {
  12450. "type": "object",
  12451. "properties": {
  12452. "sessionID": {
  12453. "type": "string",
  12454. "allOf": [
  12455. {
  12456. "pattern": "^ses"
  12457. }
  12458. ]
  12459. },
  12460. "boundary": {
  12461. "$ref": "#/components/schemas/Session.ForkBoundary"
  12462. }
  12463. },
  12464. "required": ["sessionID", "boundary"],
  12465. "additionalProperties": false
  12466. },
  12467. "projectID": {
  12468. "type": "string"
  12469. },
  12470. "agent": {
  12471. "type": "string"
  12472. },
  12473. "model": {
  12474. "$ref": "#/components/schemas/Model.Ref"
  12475. },
  12476. "cost": {
  12477. "$ref": "#/components/schemas/Money.USD"
  12478. },
  12479. "tokens": {
  12480. "$ref": "#/components/schemas/TokenUsage.Info"
  12481. },
  12482. "time": {
  12483. "type": "object",
  12484. "properties": {
  12485. "created": {
  12486. "type": "number"
  12487. },
  12488. "updated": {
  12489. "type": "number"
  12490. },
  12491. "archived": {
  12492. "type": "number"
  12493. }
  12494. },
  12495. "required": ["created", "updated"],
  12496. "additionalProperties": false
  12497. },
  12498. "title": {
  12499. "type": "string"
  12500. },
  12501. "location": {
  12502. "$ref": "#/components/schemas/Location.Ref"
  12503. },
  12504. "subpath": {
  12505. "type": "string"
  12506. },
  12507. "revert": {
  12508. "$ref": "#/components/schemas/Session.Revert"
  12509. }
  12510. },
  12511. "required": ["id", "projectID", "cost", "tokens", "time", "location"],
  12512. "additionalProperties": false
  12513. },
  12514. "SessionsResponse": {
  12515. "type": "object",
  12516. "properties": {
  12517. "data": {
  12518. "type": "array",
  12519. "items": {
  12520. "$ref": "#/components/schemas/Session.Info"
  12521. }
  12522. },
  12523. "cursor": {
  12524. "type": "object",
  12525. "properties": {
  12526. "previous": {
  12527. "anyOf": [
  12528. {
  12529. "type": "string"
  12530. },
  12531. {
  12532. "type": "null"
  12533. }
  12534. ]
  12535. },
  12536. "next": {
  12537. "anyOf": [
  12538. {
  12539. "type": "string"
  12540. },
  12541. {
  12542. "type": "null"
  12543. }
  12544. ]
  12545. }
  12546. },
  12547. "additionalProperties": false
  12548. }
  12549. },
  12550. "required": ["data", "cursor"],
  12551. "additionalProperties": false
  12552. },
  12553. "InvalidCursorError": {
  12554. "type": "object",
  12555. "properties": {
  12556. "_tag": {
  12557. "type": "string",
  12558. "enum": ["InvalidCursorError"]
  12559. },
  12560. "message": {
  12561. "type": "string"
  12562. }
  12563. },
  12564. "required": ["_tag", "message"],
  12565. "additionalProperties": false
  12566. },
  12567. "InvalidRequestError1": {
  12568. "type": "object",
  12569. "properties": {
  12570. "_tag": {
  12571. "type": "string",
  12572. "enum": ["InvalidRequestError"]
  12573. },
  12574. "message": {
  12575. "type": "string"
  12576. },
  12577. "kind": {
  12578. "anyOf": [
  12579. {
  12580. "type": "string"
  12581. },
  12582. {
  12583. "type": "null"
  12584. }
  12585. ]
  12586. },
  12587. "field": {
  12588. "anyOf": [
  12589. {
  12590. "type": "string"
  12591. },
  12592. {
  12593. "type": "null"
  12594. }
  12595. ]
  12596. }
  12597. },
  12598. "required": ["_tag", "message"],
  12599. "additionalProperties": false
  12600. },
  12601. "Session.Message.AgentSelected": {
  12602. "type": "object",
  12603. "properties": {
  12604. "id": {
  12605. "type": "string",
  12606. "allOf": [
  12607. {
  12608. "pattern": "^msg_"
  12609. }
  12610. ]
  12611. },
  12612. "metadata": {
  12613. "type": "object"
  12614. },
  12615. "time": {
  12616. "type": "object",
  12617. "properties": {
  12618. "created": {
  12619. "type": "number"
  12620. }
  12621. },
  12622. "required": ["created"],
  12623. "additionalProperties": false
  12624. },
  12625. "type": {
  12626. "type": "string",
  12627. "enum": ["agent-switched"]
  12628. },
  12629. "agent": {
  12630. "type": "string"
  12631. },
  12632. "previous": {
  12633. "type": "string"
  12634. }
  12635. },
  12636. "required": ["id", "time", "type", "agent"],
  12637. "additionalProperties": false
  12638. },
  12639. "Session.Message.ModelSelected": {
  12640. "type": "object",
  12641. "properties": {
  12642. "id": {
  12643. "type": "string",
  12644. "allOf": [
  12645. {
  12646. "pattern": "^msg_"
  12647. }
  12648. ]
  12649. },
  12650. "metadata": {
  12651. "type": "object"
  12652. },
  12653. "time": {
  12654. "type": "object",
  12655. "properties": {
  12656. "created": {
  12657. "type": "number"
  12658. }
  12659. },
  12660. "required": ["created"],
  12661. "additionalProperties": false
  12662. },
  12663. "type": {
  12664. "type": "string",
  12665. "enum": ["model-switched"]
  12666. },
  12667. "model": {
  12668. "$ref": "#/components/schemas/Model.Ref"
  12669. },
  12670. "previous": {
  12671. "$ref": "#/components/schemas/Model.Ref"
  12672. }
  12673. },
  12674. "required": ["id", "time", "type", "model"],
  12675. "additionalProperties": false
  12676. },
  12677. "Session.Message.LocationSwitched": {
  12678. "type": "object",
  12679. "properties": {
  12680. "id": {
  12681. "type": "string",
  12682. "allOf": [
  12683. {
  12684. "pattern": "^msg_"
  12685. }
  12686. ]
  12687. },
  12688. "metadata": {
  12689. "type": "object"
  12690. },
  12691. "time": {
  12692. "type": "object",
  12693. "properties": {
  12694. "created": {
  12695. "type": "number"
  12696. }
  12697. },
  12698. "required": ["created"],
  12699. "additionalProperties": false
  12700. },
  12701. "type": {
  12702. "type": "string",
  12703. "enum": ["location-switched"]
  12704. },
  12705. "location": {
  12706. "$ref": "#/components/schemas/Location.Ref"
  12707. },
  12708. "projectID": {
  12709. "type": "string"
  12710. },
  12711. "subpath": {
  12712. "type": "string"
  12713. },
  12714. "previous": {
  12715. "type": "object",
  12716. "properties": {
  12717. "location": {
  12718. "$ref": "#/components/schemas/Location.Ref"
  12719. },
  12720. "projectID": {
  12721. "type": "string"
  12722. },
  12723. "subpath": {
  12724. "type": "string"
  12725. }
  12726. },
  12727. "required": ["location"],
  12728. "additionalProperties": false
  12729. }
  12730. },
  12731. "required": ["id", "time", "type", "location"],
  12732. "additionalProperties": false
  12733. },
  12734. "Prompt.Base64": {
  12735. "type": "string",
  12736. "allOf": [
  12737. {
  12738. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  12739. }
  12740. ]
  12741. },
  12742. "Prompt.FileSource": {
  12743. "anyOf": [
  12744. {
  12745. "type": "object",
  12746. "properties": {
  12747. "type": {
  12748. "type": "string",
  12749. "enum": ["inline"]
  12750. }
  12751. },
  12752. "required": ["type"],
  12753. "additionalProperties": false
  12754. },
  12755. {
  12756. "type": "object",
  12757. "properties": {
  12758. "type": {
  12759. "type": "string",
  12760. "enum": ["uri"]
  12761. },
  12762. "uri": {
  12763. "type": "string"
  12764. }
  12765. },
  12766. "required": ["type", "uri"],
  12767. "additionalProperties": false
  12768. }
  12769. ]
  12770. },
  12771. "Prompt.Mention": {
  12772. "type": "object",
  12773. "properties": {
  12774. "start": {
  12775. "type": "number"
  12776. },
  12777. "end": {
  12778. "type": "number"
  12779. },
  12780. "text": {
  12781. "type": "string"
  12782. }
  12783. },
  12784. "required": ["start", "end", "text"],
  12785. "additionalProperties": false
  12786. },
  12787. "Prompt.FileAttachment": {
  12788. "type": "object",
  12789. "properties": {
  12790. "data": {
  12791. "$ref": "#/components/schemas/Prompt.Base64"
  12792. },
  12793. "mime": {
  12794. "type": "string"
  12795. },
  12796. "source": {
  12797. "$ref": "#/components/schemas/Prompt.FileSource"
  12798. },
  12799. "name": {
  12800. "type": "string"
  12801. },
  12802. "description": {
  12803. "type": "string"
  12804. },
  12805. "mention": {
  12806. "$ref": "#/components/schemas/Prompt.Mention"
  12807. }
  12808. },
  12809. "required": ["data", "mime", "source"],
  12810. "additionalProperties": false
  12811. },
  12812. "Prompt.AgentAttachment": {
  12813. "type": "object",
  12814. "properties": {
  12815. "name": {
  12816. "type": "string"
  12817. },
  12818. "mention": {
  12819. "$ref": "#/components/schemas/Prompt.Mention"
  12820. }
  12821. },
  12822. "required": ["name"],
  12823. "additionalProperties": false
  12824. },
  12825. "Prompt.SkillAttachment": {
  12826. "type": "object",
  12827. "properties": {
  12828. "id": {
  12829. "type": "string"
  12830. },
  12831. "name": {
  12832. "type": "string"
  12833. },
  12834. "text": {
  12835. "type": "string"
  12836. },
  12837. "mention": {
  12838. "$ref": "#/components/schemas/Prompt.Mention"
  12839. }
  12840. },
  12841. "required": ["id", "name", "text"],
  12842. "additionalProperties": false
  12843. },
  12844. "Session.Message.User": {
  12845. "type": "object",
  12846. "properties": {
  12847. "id": {
  12848. "type": "string",
  12849. "allOf": [
  12850. {
  12851. "pattern": "^msg_"
  12852. }
  12853. ]
  12854. },
  12855. "metadata": {
  12856. "type": "object"
  12857. },
  12858. "time": {
  12859. "type": "object",
  12860. "properties": {
  12861. "created": {
  12862. "type": "number"
  12863. }
  12864. },
  12865. "required": ["created"],
  12866. "additionalProperties": false
  12867. },
  12868. "text": {
  12869. "type": "string"
  12870. },
  12871. "files": {
  12872. "type": "array",
  12873. "items": {
  12874. "$ref": "#/components/schemas/Prompt.FileAttachment"
  12875. }
  12876. },
  12877. "agents": {
  12878. "type": "array",
  12879. "items": {
  12880. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  12881. }
  12882. },
  12883. "skills": {
  12884. "type": "array",
  12885. "items": {
  12886. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  12887. }
  12888. },
  12889. "type": {
  12890. "type": "string",
  12891. "enum": ["user"]
  12892. }
  12893. },
  12894. "required": ["id", "time", "text", "type"],
  12895. "additionalProperties": false
  12896. },
  12897. "Session.Message.Synthetic": {
  12898. "type": "object",
  12899. "properties": {
  12900. "id": {
  12901. "type": "string",
  12902. "allOf": [
  12903. {
  12904. "pattern": "^msg_"
  12905. }
  12906. ]
  12907. },
  12908. "metadata": {
  12909. "type": "object"
  12910. },
  12911. "time": {
  12912. "type": "object",
  12913. "properties": {
  12914. "created": {
  12915. "type": "number"
  12916. }
  12917. },
  12918. "required": ["created"],
  12919. "additionalProperties": false
  12920. },
  12921. "text": {
  12922. "type": "string"
  12923. },
  12924. "description": {
  12925. "type": "string"
  12926. },
  12927. "type": {
  12928. "type": "string",
  12929. "enum": ["synthetic"]
  12930. }
  12931. },
  12932. "required": ["id", "time", "text", "type"],
  12933. "additionalProperties": false
  12934. },
  12935. "Session.Message.System": {
  12936. "type": "object",
  12937. "properties": {
  12938. "id": {
  12939. "type": "string",
  12940. "allOf": [
  12941. {
  12942. "pattern": "^msg_"
  12943. }
  12944. ]
  12945. },
  12946. "metadata": {
  12947. "type": "object"
  12948. },
  12949. "time": {
  12950. "type": "object",
  12951. "properties": {
  12952. "created": {
  12953. "type": "number"
  12954. }
  12955. },
  12956. "required": ["created"],
  12957. "additionalProperties": false
  12958. },
  12959. "type": {
  12960. "type": "string",
  12961. "enum": ["system"]
  12962. },
  12963. "text": {
  12964. "type": "string"
  12965. },
  12966. "description": {
  12967. "type": "string"
  12968. }
  12969. },
  12970. "required": ["id", "time", "type", "text"],
  12971. "additionalProperties": false
  12972. },
  12973. "Session.Message.Skill": {
  12974. "type": "object",
  12975. "properties": {
  12976. "id": {
  12977. "type": "string",
  12978. "allOf": [
  12979. {
  12980. "pattern": "^msg_"
  12981. }
  12982. ]
  12983. },
  12984. "metadata": {
  12985. "type": "object"
  12986. },
  12987. "time": {
  12988. "type": "object",
  12989. "properties": {
  12990. "created": {
  12991. "type": "number"
  12992. }
  12993. },
  12994. "required": ["created"],
  12995. "additionalProperties": false
  12996. },
  12997. "type": {
  12998. "type": "string",
  12999. "enum": ["skill"]
  13000. },
  13001. "skill": {
  13002. "type": "string"
  13003. },
  13004. "name": {
  13005. "type": "string"
  13006. },
  13007. "text": {
  13008. "type": "string"
  13009. }
  13010. },
  13011. "required": ["id", "time", "type", "skill", "name", "text"],
  13012. "additionalProperties": false
  13013. },
  13014. "Session.Message.Shell": {
  13015. "type": "object",
  13016. "properties": {
  13017. "id": {
  13018. "type": "string",
  13019. "allOf": [
  13020. {
  13021. "pattern": "^msg_"
  13022. }
  13023. ]
  13024. },
  13025. "metadata": {
  13026. "type": "object"
  13027. },
  13028. "time": {
  13029. "type": "object",
  13030. "properties": {
  13031. "created": {
  13032. "type": "number"
  13033. },
  13034. "completed": {
  13035. "type": "number"
  13036. }
  13037. },
  13038. "required": ["created"],
  13039. "additionalProperties": false
  13040. },
  13041. "type": {
  13042. "type": "string",
  13043. "enum": ["shell"]
  13044. },
  13045. "shellID": {
  13046. "type": "string",
  13047. "allOf": [
  13048. {
  13049. "pattern": "^sh_"
  13050. }
  13051. ]
  13052. },
  13053. "command": {
  13054. "type": "string"
  13055. },
  13056. "status": {
  13057. "type": "string",
  13058. "enum": ["running", "exited", "timeout", "killed"]
  13059. },
  13060. "exit": {
  13061. "anyOf": [
  13062. {
  13063. "anyOf": [
  13064. {
  13065. "type": "number"
  13066. },
  13067. {
  13068. "type": "string",
  13069. "enum": ["NaN"]
  13070. },
  13071. {
  13072. "type": "string",
  13073. "enum": ["Infinity"]
  13074. },
  13075. {
  13076. "type": "string",
  13077. "enum": ["-Infinity"]
  13078. }
  13079. ]
  13080. },
  13081. {
  13082. "type": "string",
  13083. "enum": ["Infinity", "-Infinity", "NaN"]
  13084. }
  13085. ]
  13086. },
  13087. "output": {
  13088. "type": "object",
  13089. "properties": {
  13090. "output": {
  13091. "type": "string"
  13092. },
  13093. "cursor": {
  13094. "type": "integer",
  13095. "allOf": [
  13096. {
  13097. "minimum": 0
  13098. }
  13099. ]
  13100. },
  13101. "size": {
  13102. "type": "integer",
  13103. "allOf": [
  13104. {
  13105. "minimum": 0
  13106. }
  13107. ]
  13108. },
  13109. "truncated": {
  13110. "type": "boolean"
  13111. }
  13112. },
  13113. "required": ["output", "cursor", "size", "truncated"],
  13114. "additionalProperties": false
  13115. }
  13116. },
  13117. "required": ["id", "time", "type", "shellID", "command", "status"],
  13118. "additionalProperties": false
  13119. },
  13120. "Session.Message.ProviderState": {
  13121. "type": "object"
  13122. },
  13123. "Session.Message.Assistant.Text": {
  13124. "type": "object",
  13125. "properties": {
  13126. "type": {
  13127. "type": "string",
  13128. "enum": ["text"]
  13129. },
  13130. "text": {
  13131. "type": "string"
  13132. },
  13133. "state": {
  13134. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13135. }
  13136. },
  13137. "required": ["type", "text"],
  13138. "additionalProperties": false
  13139. },
  13140. "Session.Message.Assistant.Reasoning": {
  13141. "type": "object",
  13142. "properties": {
  13143. "type": {
  13144. "type": "string",
  13145. "enum": ["reasoning"]
  13146. },
  13147. "text": {
  13148. "type": "string"
  13149. },
  13150. "state": {
  13151. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13152. },
  13153. "time": {
  13154. "type": "object",
  13155. "properties": {
  13156. "created": {
  13157. "type": "number"
  13158. },
  13159. "completed": {
  13160. "type": "number"
  13161. }
  13162. },
  13163. "required": ["created"],
  13164. "additionalProperties": false
  13165. }
  13166. },
  13167. "required": ["type", "text"],
  13168. "additionalProperties": false
  13169. },
  13170. "Session.Message.ToolState.Streaming": {
  13171. "type": "object",
  13172. "properties": {
  13173. "status": {
  13174. "type": "string",
  13175. "enum": ["streaming"]
  13176. },
  13177. "input": {
  13178. "type": "string"
  13179. }
  13180. },
  13181. "required": ["status", "input"],
  13182. "additionalProperties": false
  13183. },
  13184. "Session.Message.ToolState.Running": {
  13185. "type": "object",
  13186. "properties": {
  13187. "status": {
  13188. "type": "string",
  13189. "enum": ["running"]
  13190. },
  13191. "input": {
  13192. "type": "object"
  13193. },
  13194. "metadata": {
  13195. "type": "object"
  13196. }
  13197. },
  13198. "required": ["status", "input", "metadata"],
  13199. "additionalProperties": false
  13200. },
  13201. "Tool.TextContent": {
  13202. "type": "object",
  13203. "properties": {
  13204. "type": {
  13205. "type": "string",
  13206. "enum": ["text"]
  13207. },
  13208. "text": {
  13209. "type": "string"
  13210. }
  13211. },
  13212. "required": ["type", "text"],
  13213. "additionalProperties": false
  13214. },
  13215. "Tool.FileContent": {
  13216. "type": "object",
  13217. "properties": {
  13218. "type": {
  13219. "type": "string",
  13220. "enum": ["file"]
  13221. },
  13222. "uri": {
  13223. "type": "string"
  13224. },
  13225. "mime": {
  13226. "type": "string"
  13227. },
  13228. "name": {
  13229. "anyOf": [
  13230. {
  13231. "type": "string"
  13232. },
  13233. {
  13234. "type": "null"
  13235. }
  13236. ]
  13237. }
  13238. },
  13239. "required": ["type", "uri", "mime"],
  13240. "additionalProperties": false
  13241. },
  13242. "Tool.Content": {
  13243. "anyOf": [
  13244. {
  13245. "$ref": "#/components/schemas/Tool.TextContent"
  13246. },
  13247. {
  13248. "$ref": "#/components/schemas/Tool.FileContent"
  13249. }
  13250. ]
  13251. },
  13252. "Session.Message.ToolState.Completed": {
  13253. "type": "object",
  13254. "properties": {
  13255. "status": {
  13256. "type": "string",
  13257. "enum": ["completed"]
  13258. },
  13259. "input": {
  13260. "type": "object"
  13261. },
  13262. "content": {
  13263. "type": "array",
  13264. "prefixItems": [
  13265. {
  13266. "$ref": "#/components/schemas/Tool.Content"
  13267. }
  13268. ],
  13269. "minItems": 1,
  13270. "items": {
  13271. "$ref": "#/components/schemas/Tool.Content"
  13272. }
  13273. },
  13274. "metadata": {
  13275. "type": "object"
  13276. }
  13277. },
  13278. "required": ["status", "input", "content"],
  13279. "additionalProperties": false
  13280. },
  13281. "Session.StructuredError": {
  13282. "type": "object",
  13283. "properties": {
  13284. "type": {
  13285. "type": "string"
  13286. },
  13287. "message": {
  13288. "type": "string"
  13289. },
  13290. "status": {
  13291. "type": "integer",
  13292. "allOf": [
  13293. {
  13294. "minimum": 100,
  13295. "maximum": 599
  13296. }
  13297. ]
  13298. }
  13299. },
  13300. "required": ["type", "message"],
  13301. "additionalProperties": false
  13302. },
  13303. "Session.Message.ToolState.Error": {
  13304. "type": "object",
  13305. "properties": {
  13306. "status": {
  13307. "type": "string",
  13308. "enum": ["error"]
  13309. },
  13310. "input": {
  13311. "type": "object"
  13312. },
  13313. "error": {
  13314. "$ref": "#/components/schemas/Session.StructuredError"
  13315. },
  13316. "content": {
  13317. "type": "array",
  13318. "prefixItems": [
  13319. {
  13320. "$ref": "#/components/schemas/Tool.Content"
  13321. }
  13322. ],
  13323. "minItems": 1,
  13324. "items": {
  13325. "$ref": "#/components/schemas/Tool.Content"
  13326. }
  13327. },
  13328. "metadata": {
  13329. "type": "object"
  13330. }
  13331. },
  13332. "required": ["status", "input", "error"],
  13333. "additionalProperties": false
  13334. },
  13335. "Session.Message.Assistant.Tool": {
  13336. "type": "object",
  13337. "properties": {
  13338. "type": {
  13339. "type": "string",
  13340. "enum": ["tool"]
  13341. },
  13342. "id": {
  13343. "type": "string"
  13344. },
  13345. "name": {
  13346. "type": "string"
  13347. },
  13348. "executed": {
  13349. "type": "boolean"
  13350. },
  13351. "providerState": {
  13352. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13353. },
  13354. "providerResultState": {
  13355. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13356. },
  13357. "state": {
  13358. "anyOf": [
  13359. {
  13360. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  13361. },
  13362. {
  13363. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  13364. },
  13365. {
  13366. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  13367. },
  13368. {
  13369. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  13370. }
  13371. ]
  13372. },
  13373. "time": {
  13374. "type": "object",
  13375. "properties": {
  13376. "created": {
  13377. "type": "number"
  13378. },
  13379. "ran": {
  13380. "type": "number"
  13381. },
  13382. "completed": {
  13383. "type": "number"
  13384. }
  13385. },
  13386. "required": ["created"],
  13387. "additionalProperties": false
  13388. }
  13389. },
  13390. "required": ["type", "id", "name", "state", "time"],
  13391. "additionalProperties": false
  13392. },
  13393. "Session.Message.Assistant.Retry": {
  13394. "type": "object",
  13395. "properties": {
  13396. "attempt": {
  13397. "type": "integer",
  13398. "allOf": [
  13399. {
  13400. "exclusiveMinimum": 0
  13401. }
  13402. ]
  13403. },
  13404. "at": {
  13405. "type": "number"
  13406. },
  13407. "error": {
  13408. "$ref": "#/components/schemas/Session.StructuredError"
  13409. }
  13410. },
  13411. "required": ["attempt", "at", "error"],
  13412. "additionalProperties": false
  13413. },
  13414. "Session.Message.Assistant": {
  13415. "type": "object",
  13416. "properties": {
  13417. "id": {
  13418. "type": "string",
  13419. "allOf": [
  13420. {
  13421. "pattern": "^msg_"
  13422. }
  13423. ]
  13424. },
  13425. "metadata": {
  13426. "type": "object"
  13427. },
  13428. "time": {
  13429. "type": "object",
  13430. "properties": {
  13431. "created": {
  13432. "type": "number"
  13433. },
  13434. "completed": {
  13435. "type": "number"
  13436. }
  13437. },
  13438. "required": ["created"],
  13439. "additionalProperties": false
  13440. },
  13441. "type": {
  13442. "type": "string",
  13443. "enum": ["assistant"]
  13444. },
  13445. "agent": {
  13446. "type": "string"
  13447. },
  13448. "model": {
  13449. "$ref": "#/components/schemas/Model.Ref"
  13450. },
  13451. "content": {
  13452. "type": "array",
  13453. "items": {
  13454. "anyOf": [
  13455. {
  13456. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  13457. },
  13458. {
  13459. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  13460. },
  13461. {
  13462. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  13463. }
  13464. ]
  13465. }
  13466. },
  13467. "snapshot": {
  13468. "type": "object",
  13469. "properties": {
  13470. "start": {
  13471. "type": "string"
  13472. },
  13473. "end": {
  13474. "type": "string"
  13475. },
  13476. "files": {
  13477. "type": "array",
  13478. "items": {
  13479. "type": "string"
  13480. }
  13481. }
  13482. },
  13483. "additionalProperties": false
  13484. },
  13485. "finish": {
  13486. "type": "string",
  13487. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  13488. },
  13489. "cost": {
  13490. "$ref": "#/components/schemas/Money.USD"
  13491. },
  13492. "tokens": {
  13493. "$ref": "#/components/schemas/TokenUsage.Info"
  13494. },
  13495. "error": {
  13496. "$ref": "#/components/schemas/Session.StructuredError"
  13497. },
  13498. "retry": {
  13499. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  13500. }
  13501. },
  13502. "required": ["id", "time", "type", "agent", "model", "content"],
  13503. "additionalProperties": false
  13504. },
  13505. "Session.Message.Compaction.Running": {
  13506. "type": "object",
  13507. "properties": {
  13508. "type": {
  13509. "type": "string",
  13510. "enum": ["compaction"]
  13511. },
  13512. "id": {
  13513. "type": "string",
  13514. "allOf": [
  13515. {
  13516. "pattern": "^msg_"
  13517. }
  13518. ]
  13519. },
  13520. "metadata": {
  13521. "type": "object"
  13522. },
  13523. "time": {
  13524. "type": "object",
  13525. "properties": {
  13526. "created": {
  13527. "type": "number"
  13528. }
  13529. },
  13530. "required": ["created"],
  13531. "additionalProperties": false
  13532. },
  13533. "status": {
  13534. "type": "string",
  13535. "enum": ["running"]
  13536. },
  13537. "reason": {
  13538. "type": "string",
  13539. "enum": ["auto", "manual"]
  13540. },
  13541. "summary": {
  13542. "type": "string"
  13543. },
  13544. "recent": {
  13545. "type": "string"
  13546. }
  13547. },
  13548. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13549. "additionalProperties": false
  13550. },
  13551. "Session.Message.Compaction.Completed": {
  13552. "type": "object",
  13553. "properties": {
  13554. "type": {
  13555. "type": "string",
  13556. "enum": ["compaction"]
  13557. },
  13558. "id": {
  13559. "type": "string",
  13560. "allOf": [
  13561. {
  13562. "pattern": "^msg_"
  13563. }
  13564. ]
  13565. },
  13566. "metadata": {
  13567. "type": "object"
  13568. },
  13569. "time": {
  13570. "type": "object",
  13571. "properties": {
  13572. "created": {
  13573. "type": "number"
  13574. }
  13575. },
  13576. "required": ["created"],
  13577. "additionalProperties": false
  13578. },
  13579. "status": {
  13580. "type": "string",
  13581. "enum": ["completed"]
  13582. },
  13583. "reason": {
  13584. "type": "string",
  13585. "enum": ["auto", "manual"]
  13586. },
  13587. "summary": {
  13588. "type": "string"
  13589. },
  13590. "recent": {
  13591. "type": "string"
  13592. }
  13593. },
  13594. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13595. "additionalProperties": false
  13596. },
  13597. "Session.Message.Compaction.Failed": {
  13598. "type": "object",
  13599. "properties": {
  13600. "type": {
  13601. "type": "string",
  13602. "enum": ["compaction"]
  13603. },
  13604. "id": {
  13605. "type": "string",
  13606. "allOf": [
  13607. {
  13608. "pattern": "^msg_"
  13609. }
  13610. ]
  13611. },
  13612. "metadata": {
  13613. "type": "object"
  13614. },
  13615. "time": {
  13616. "type": "object",
  13617. "properties": {
  13618. "created": {
  13619. "type": "number"
  13620. }
  13621. },
  13622. "required": ["created"],
  13623. "additionalProperties": false
  13624. },
  13625. "status": {
  13626. "type": "string",
  13627. "enum": ["failed"]
  13628. },
  13629. "reason": {
  13630. "type": "string",
  13631. "enum": ["auto", "manual"]
  13632. },
  13633. "error": {
  13634. "$ref": "#/components/schemas/Session.StructuredError"
  13635. }
  13636. },
  13637. "required": ["type", "id", "time", "status", "reason", "error"],
  13638. "additionalProperties": false
  13639. },
  13640. "Session.Message.Compaction": {
  13641. "anyOf": [
  13642. {
  13643. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  13644. },
  13645. {
  13646. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  13647. },
  13648. {
  13649. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  13650. }
  13651. ]
  13652. },
  13653. "Session.Message.Info": {
  13654. "anyOf": [
  13655. {
  13656. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  13657. },
  13658. {
  13659. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  13660. },
  13661. {
  13662. "$ref": "#/components/schemas/Session.Message.LocationSwitched"
  13663. },
  13664. {
  13665. "$ref": "#/components/schemas/Session.Message.User"
  13666. },
  13667. {
  13668. "$ref": "#/components/schemas/Session.Message.Synthetic"
  13669. },
  13670. {
  13671. "$ref": "#/components/schemas/Session.Message.System"
  13672. },
  13673. {
  13674. "$ref": "#/components/schemas/Session.Message.Skill"
  13675. },
  13676. {
  13677. "$ref": "#/components/schemas/Session.Message.Shell"
  13678. },
  13679. {
  13680. "$ref": "#/components/schemas/Session.Message.Assistant"
  13681. },
  13682. {
  13683. "$ref": "#/components/schemas/Session.Message.Compaction"
  13684. }
  13685. ]
  13686. },
  13687. "ConflictError": {
  13688. "type": "object",
  13689. "properties": {
  13690. "_tag": {
  13691. "type": "string",
  13692. "enum": ["ConflictError"]
  13693. },
  13694. "message": {
  13695. "type": "string"
  13696. },
  13697. "resource": {
  13698. "anyOf": [
  13699. {
  13700. "type": "string"
  13701. },
  13702. {
  13703. "type": "null"
  13704. }
  13705. ]
  13706. }
  13707. },
  13708. "required": ["_tag", "message"],
  13709. "additionalProperties": false
  13710. },
  13711. "SessionTransfer.Data": {
  13712. "type": "object",
  13713. "properties": {
  13714. "info": {
  13715. "$ref": "#/components/schemas/Session.Info"
  13716. },
  13717. "messages": {
  13718. "type": "array",
  13719. "items": {
  13720. "$ref": "#/components/schemas/Session.Message.Info"
  13721. }
  13722. }
  13723. },
  13724. "required": ["info", "messages"],
  13725. "additionalProperties": false
  13726. },
  13727. "SessionNotFoundError": {
  13728. "type": "object",
  13729. "properties": {
  13730. "_tag": {
  13731. "type": "string",
  13732. "enum": ["SessionNotFoundError"]
  13733. },
  13734. "sessionID": {
  13735. "type": "string"
  13736. },
  13737. "message": {
  13738. "type": "string"
  13739. }
  13740. },
  13741. "required": ["_tag", "sessionID", "message"],
  13742. "additionalProperties": false
  13743. },
  13744. "UnknownError": {
  13745. "type": "object",
  13746. "properties": {
  13747. "_tag": {
  13748. "type": "string",
  13749. "enum": ["UnknownError"]
  13750. },
  13751. "message": {
  13752. "type": "string"
  13753. },
  13754. "ref": {
  13755. "anyOf": [
  13756. {
  13757. "type": "string"
  13758. },
  13759. {
  13760. "type": "null"
  13761. }
  13762. ]
  13763. }
  13764. },
  13765. "required": ["_tag", "message"],
  13766. "additionalProperties": false
  13767. },
  13768. "SessionActive": {
  13769. "type": "object",
  13770. "properties": {
  13771. "type": {
  13772. "type": "string",
  13773. "enum": ["running"]
  13774. }
  13775. },
  13776. "required": ["type"],
  13777. "additionalProperties": false
  13778. },
  13779. "Session.ForkRequestBoundary": {
  13780. "anyOf": [
  13781. {
  13782. "type": "object",
  13783. "properties": {
  13784. "type": {
  13785. "type": "string",
  13786. "enum": ["before"]
  13787. },
  13788. "messageID": {
  13789. "type": "string",
  13790. "allOf": [
  13791. {
  13792. "pattern": "^msg_"
  13793. }
  13794. ]
  13795. }
  13796. },
  13797. "required": ["type", "messageID"],
  13798. "additionalProperties": false
  13799. },
  13800. {
  13801. "type": "object",
  13802. "properties": {
  13803. "type": {
  13804. "type": "string",
  13805. "enum": ["through"]
  13806. }
  13807. },
  13808. "required": ["type"],
  13809. "additionalProperties": false
  13810. }
  13811. ]
  13812. },
  13813. "MessageNotFoundError": {
  13814. "type": "object",
  13815. "properties": {
  13816. "_tag": {
  13817. "type": "string",
  13818. "enum": ["MessageNotFoundError"]
  13819. },
  13820. "sessionID": {
  13821. "type": "string"
  13822. },
  13823. "messageID": {
  13824. "type": "string"
  13825. },
  13826. "message": {
  13827. "type": "string"
  13828. }
  13829. },
  13830. "required": ["_tag", "sessionID", "messageID", "message"],
  13831. "additionalProperties": false
  13832. },
  13833. "Session.Inbox.Delivery": {
  13834. "type": "string",
  13835. "enum": ["steer", "queue"]
  13836. },
  13837. "PromptInput.FileAttachment": {
  13838. "type": "object",
  13839. "properties": {
  13840. "uri": {
  13841. "type": "string"
  13842. },
  13843. "name": {
  13844. "type": "string"
  13845. },
  13846. "description": {
  13847. "type": "string"
  13848. },
  13849. "mention": {
  13850. "$ref": "#/components/schemas/Prompt.Mention"
  13851. }
  13852. },
  13853. "required": ["uri"],
  13854. "additionalProperties": false
  13855. },
  13856. "PromptInput.SkillAttachment": {
  13857. "type": "object",
  13858. "properties": {
  13859. "id": {
  13860. "type": "string"
  13861. },
  13862. "mention": {
  13863. "$ref": "#/components/schemas/Prompt.Mention"
  13864. }
  13865. },
  13866. "required": ["id"],
  13867. "additionalProperties": false
  13868. },
  13869. "Session.Inbox.UserPayload": {
  13870. "type": "object",
  13871. "properties": {
  13872. "text": {
  13873. "type": "string"
  13874. },
  13875. "files": {
  13876. "type": "array",
  13877. "items": {
  13878. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13879. }
  13880. },
  13881. "agents": {
  13882. "type": "array",
  13883. "items": {
  13884. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13885. }
  13886. },
  13887. "skills": {
  13888. "type": "array",
  13889. "items": {
  13890. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  13891. }
  13892. },
  13893. "metadata": {
  13894. "type": "object"
  13895. }
  13896. },
  13897. "required": ["text"],
  13898. "additionalProperties": false
  13899. },
  13900. "Session.Inbox.User": {
  13901. "type": "object",
  13902. "properties": {
  13903. "id": {
  13904. "type": "string",
  13905. "allOf": [
  13906. {
  13907. "pattern": "^msg_"
  13908. }
  13909. ]
  13910. },
  13911. "sessionID": {
  13912. "type": "string",
  13913. "allOf": [
  13914. {
  13915. "pattern": "^ses"
  13916. }
  13917. ]
  13918. },
  13919. "timeCreated": {
  13920. "type": "number"
  13921. },
  13922. "type": {
  13923. "type": "string",
  13924. "enum": ["user"]
  13925. },
  13926. "payload": {
  13927. "$ref": "#/components/schemas/Session.Inbox.UserPayload"
  13928. },
  13929. "delivery": {
  13930. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13931. }
  13932. },
  13933. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13934. "additionalProperties": false
  13935. },
  13936. "CommandNotFoundError": {
  13937. "type": "object",
  13938. "properties": {
  13939. "_tag": {
  13940. "type": "string",
  13941. "enum": ["CommandNotFoundError"]
  13942. },
  13943. "command": {
  13944. "type": "string"
  13945. },
  13946. "message": {
  13947. "type": "string"
  13948. }
  13949. },
  13950. "required": ["_tag", "command", "message"],
  13951. "additionalProperties": false
  13952. },
  13953. "CommandEvaluationError": {
  13954. "type": "object",
  13955. "properties": {
  13956. "_tag": {
  13957. "type": "string",
  13958. "enum": ["CommandEvaluationError"]
  13959. },
  13960. "command": {
  13961. "type": "string"
  13962. },
  13963. "message": {
  13964. "type": "string"
  13965. }
  13966. },
  13967. "required": ["_tag", "command", "message"],
  13968. "additionalProperties": false
  13969. },
  13970. "SkillNotFoundError": {
  13971. "type": "object",
  13972. "properties": {
  13973. "_tag": {
  13974. "type": "string",
  13975. "enum": ["SkillNotFoundError"]
  13976. },
  13977. "skill": {
  13978. "type": "string"
  13979. },
  13980. "message": {
  13981. "type": "string"
  13982. }
  13983. },
  13984. "required": ["_tag", "skill", "message"],
  13985. "additionalProperties": false
  13986. },
  13987. "Session.Inbox.SyntheticPayload": {
  13988. "type": "object",
  13989. "properties": {
  13990. "text": {
  13991. "type": "string"
  13992. },
  13993. "description": {
  13994. "type": "string"
  13995. },
  13996. "metadata": {
  13997. "type": "object"
  13998. }
  13999. },
  14000. "required": ["text"],
  14001. "additionalProperties": false
  14002. },
  14003. "Session.Inbox.Synthetic": {
  14004. "type": "object",
  14005. "properties": {
  14006. "id": {
  14007. "type": "string",
  14008. "allOf": [
  14009. {
  14010. "pattern": "^msg_"
  14011. }
  14012. ]
  14013. },
  14014. "sessionID": {
  14015. "type": "string",
  14016. "allOf": [
  14017. {
  14018. "pattern": "^ses"
  14019. }
  14020. ]
  14021. },
  14022. "timeCreated": {
  14023. "type": "number"
  14024. },
  14025. "type": {
  14026. "type": "string",
  14027. "enum": ["synthetic"]
  14028. },
  14029. "payload": {
  14030. "$ref": "#/components/schemas/Session.Inbox.SyntheticPayload"
  14031. },
  14032. "delivery": {
  14033. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14034. }
  14035. },
  14036. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  14037. "additionalProperties": false
  14038. },
  14039. "Session.Inbox.CompactionPayload": {
  14040. "anyOf": [
  14041. {
  14042. "type": "object"
  14043. },
  14044. {
  14045. "type": "array"
  14046. }
  14047. ]
  14048. },
  14049. "Session.Inbox.Compaction": {
  14050. "type": "object",
  14051. "properties": {
  14052. "id": {
  14053. "type": "string",
  14054. "allOf": [
  14055. {
  14056. "pattern": "^msg_"
  14057. }
  14058. ]
  14059. },
  14060. "sessionID": {
  14061. "type": "string",
  14062. "allOf": [
  14063. {
  14064. "pattern": "^ses"
  14065. }
  14066. ]
  14067. },
  14068. "timeCreated": {
  14069. "type": "number"
  14070. },
  14071. "type": {
  14072. "type": "string",
  14073. "enum": ["compaction"]
  14074. },
  14075. "payload": {
  14076. "$ref": "#/components/schemas/Session.Inbox.CompactionPayload"
  14077. },
  14078. "delivery": {
  14079. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14080. }
  14081. },
  14082. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  14083. "additionalProperties": false
  14084. },
  14085. "ServiceUnavailableError": {
  14086. "type": "object",
  14087. "properties": {
  14088. "_tag": {
  14089. "type": "string",
  14090. "enum": ["ServiceUnavailableError"]
  14091. },
  14092. "message": {
  14093. "type": "string"
  14094. },
  14095. "service": {
  14096. "anyOf": [
  14097. {
  14098. "type": "string"
  14099. },
  14100. {
  14101. "type": "null"
  14102. }
  14103. ]
  14104. }
  14105. },
  14106. "required": ["_tag", "message"],
  14107. "additionalProperties": false
  14108. },
  14109. "SessionBusyError": {
  14110. "type": "object",
  14111. "properties": {
  14112. "_tag": {
  14113. "type": "string",
  14114. "enum": ["SessionBusyError"]
  14115. },
  14116. "sessionID": {
  14117. "type": "string"
  14118. },
  14119. "message": {
  14120. "type": "string"
  14121. }
  14122. },
  14123. "required": ["_tag", "sessionID", "message"],
  14124. "additionalProperties": false
  14125. },
  14126. "Session.Inbox.MovePayload": {
  14127. "type": "object",
  14128. "properties": {
  14129. "location": {
  14130. "$ref": "#/components/schemas/Location.Ref"
  14131. },
  14132. "projectID": {
  14133. "type": "string"
  14134. },
  14135. "subpath": {
  14136. "type": "string"
  14137. }
  14138. },
  14139. "required": ["location", "projectID"],
  14140. "additionalProperties": false
  14141. },
  14142. "Session.Inbox.Move": {
  14143. "type": "object",
  14144. "properties": {
  14145. "id": {
  14146. "type": "string",
  14147. "allOf": [
  14148. {
  14149. "pattern": "^msg_"
  14150. }
  14151. ]
  14152. },
  14153. "sessionID": {
  14154. "type": "string",
  14155. "allOf": [
  14156. {
  14157. "pattern": "^ses"
  14158. }
  14159. ]
  14160. },
  14161. "timeCreated": {
  14162. "type": "number"
  14163. },
  14164. "type": {
  14165. "type": "string",
  14166. "enum": ["move"]
  14167. },
  14168. "payload": {
  14169. "$ref": "#/components/schemas/Session.Inbox.MovePayload"
  14170. },
  14171. "delivery": {
  14172. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14173. }
  14174. },
  14175. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  14176. "additionalProperties": false
  14177. },
  14178. "Session.Inbox.Info": {
  14179. "anyOf": [
  14180. {
  14181. "$ref": "#/components/schemas/Session.Inbox.User"
  14182. },
  14183. {
  14184. "$ref": "#/components/schemas/Session.Inbox.Synthetic"
  14185. },
  14186. {
  14187. "$ref": "#/components/schemas/Session.Inbox.Compaction"
  14188. },
  14189. {
  14190. "$ref": "#/components/schemas/Session.Inbox.Move"
  14191. }
  14192. ]
  14193. },
  14194. "InstructionEntry.Key": {
  14195. "type": "string",
  14196. "allOf": [
  14197. {
  14198. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  14199. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  14200. }
  14201. ]
  14202. },
  14203. "InstructionEntry.Info": {
  14204. "type": "object",
  14205. "properties": {
  14206. "key": {
  14207. "$ref": "#/components/schemas/InstructionEntry.Key"
  14208. },
  14209. "value": {}
  14210. },
  14211. "required": ["key", "value"],
  14212. "additionalProperties": false
  14213. },
  14214. "InstructionEntryValueTooLargeError": {
  14215. "type": "object",
  14216. "properties": {
  14217. "_tag": {
  14218. "type": "string",
  14219. "enum": ["InstructionEntryValueTooLargeError"]
  14220. },
  14221. "actualBytes": {
  14222. "type": "integer"
  14223. },
  14224. "maxBytes": {
  14225. "type": "integer"
  14226. },
  14227. "message": {
  14228. "type": "string"
  14229. }
  14230. },
  14231. "required": ["_tag", "actualBytes", "maxBytes", "message"],
  14232. "additionalProperties": false
  14233. },
  14234. "SessionGenerateResponse": {
  14235. "type": "object",
  14236. "properties": {
  14237. "data": {
  14238. "type": "object",
  14239. "properties": {
  14240. "text": {
  14241. "type": "string"
  14242. }
  14243. },
  14244. "required": ["text"],
  14245. "additionalProperties": false
  14246. }
  14247. },
  14248. "required": ["data"],
  14249. "additionalProperties": false
  14250. },
  14251. "session.created": {
  14252. "type": "object",
  14253. "properties": {
  14254. "id": {
  14255. "type": "string",
  14256. "allOf": [
  14257. {
  14258. "pattern": "^evt_"
  14259. }
  14260. ]
  14261. },
  14262. "created": {
  14263. "type": "number"
  14264. },
  14265. "metadata": {
  14266. "type": "object"
  14267. },
  14268. "type": {
  14269. "type": "string",
  14270. "enum": ["session.created"]
  14271. },
  14272. "durable": {
  14273. "type": "object",
  14274. "properties": {
  14275. "aggregateID": {
  14276. "type": "string"
  14277. },
  14278. "seq": {
  14279. "type": "integer",
  14280. "allOf": [
  14281. {
  14282. "minimum": 0
  14283. }
  14284. ]
  14285. },
  14286. "version": {
  14287. "type": "number",
  14288. "enum": [1]
  14289. }
  14290. },
  14291. "required": ["aggregateID", "seq", "version"],
  14292. "additionalProperties": false
  14293. },
  14294. "location": {
  14295. "$ref": "#/components/schemas/Location.Ref"
  14296. },
  14297. "data": {
  14298. "type": "object",
  14299. "properties": {
  14300. "sessionID": {
  14301. "type": "string",
  14302. "allOf": [
  14303. {
  14304. "pattern": "^ses"
  14305. }
  14306. ]
  14307. },
  14308. "projectID": {
  14309. "type": "string"
  14310. },
  14311. "location": {
  14312. "$ref": "#/components/schemas/Location.Ref"
  14313. },
  14314. "subpath": {
  14315. "type": "string"
  14316. },
  14317. "parentID": {
  14318. "type": "string",
  14319. "allOf": [
  14320. {
  14321. "pattern": "^ses"
  14322. }
  14323. ]
  14324. },
  14325. "slug": {
  14326. "type": "string"
  14327. },
  14328. "title": {
  14329. "type": "string"
  14330. },
  14331. "agent": {
  14332. "type": "string"
  14333. },
  14334. "model": {
  14335. "$ref": "#/components/schemas/Model.Ref"
  14336. },
  14337. "version": {
  14338. "type": "string"
  14339. }
  14340. },
  14341. "required": ["sessionID", "projectID", "location", "slug", "version"],
  14342. "additionalProperties": false
  14343. }
  14344. },
  14345. "required": ["id", "created", "type", "durable", "data"],
  14346. "additionalProperties": false
  14347. },
  14348. "session.agent.selected": {
  14349. "type": "object",
  14350. "properties": {
  14351. "id": {
  14352. "type": "string",
  14353. "allOf": [
  14354. {
  14355. "pattern": "^evt_"
  14356. }
  14357. ]
  14358. },
  14359. "created": {
  14360. "type": "number"
  14361. },
  14362. "metadata": {
  14363. "type": "object"
  14364. },
  14365. "type": {
  14366. "type": "string",
  14367. "enum": ["session.agent.selected"]
  14368. },
  14369. "durable": {
  14370. "type": "object",
  14371. "properties": {
  14372. "aggregateID": {
  14373. "type": "string"
  14374. },
  14375. "seq": {
  14376. "type": "integer",
  14377. "allOf": [
  14378. {
  14379. "minimum": 0
  14380. }
  14381. ]
  14382. },
  14383. "version": {
  14384. "type": "number",
  14385. "enum": [1]
  14386. }
  14387. },
  14388. "required": ["aggregateID", "seq", "version"],
  14389. "additionalProperties": false
  14390. },
  14391. "location": {
  14392. "$ref": "#/components/schemas/Location.Ref"
  14393. },
  14394. "data": {
  14395. "type": "object",
  14396. "properties": {
  14397. "sessionID": {
  14398. "type": "string",
  14399. "allOf": [
  14400. {
  14401. "pattern": "^ses"
  14402. }
  14403. ]
  14404. },
  14405. "agent": {
  14406. "type": "string"
  14407. },
  14408. "previous": {
  14409. "type": "string"
  14410. }
  14411. },
  14412. "required": ["sessionID", "agent"],
  14413. "additionalProperties": false
  14414. }
  14415. },
  14416. "required": ["id", "created", "type", "durable", "data"],
  14417. "additionalProperties": false
  14418. },
  14419. "session.model.selected": {
  14420. "type": "object",
  14421. "properties": {
  14422. "id": {
  14423. "type": "string",
  14424. "allOf": [
  14425. {
  14426. "pattern": "^evt_"
  14427. }
  14428. ]
  14429. },
  14430. "created": {
  14431. "type": "number"
  14432. },
  14433. "metadata": {
  14434. "type": "object"
  14435. },
  14436. "type": {
  14437. "type": "string",
  14438. "enum": ["session.model.selected"]
  14439. },
  14440. "durable": {
  14441. "type": "object",
  14442. "properties": {
  14443. "aggregateID": {
  14444. "type": "string"
  14445. },
  14446. "seq": {
  14447. "type": "integer",
  14448. "allOf": [
  14449. {
  14450. "minimum": 0
  14451. }
  14452. ]
  14453. },
  14454. "version": {
  14455. "type": "number",
  14456. "enum": [1]
  14457. }
  14458. },
  14459. "required": ["aggregateID", "seq", "version"],
  14460. "additionalProperties": false
  14461. },
  14462. "location": {
  14463. "$ref": "#/components/schemas/Location.Ref"
  14464. },
  14465. "data": {
  14466. "type": "object",
  14467. "properties": {
  14468. "sessionID": {
  14469. "type": "string",
  14470. "allOf": [
  14471. {
  14472. "pattern": "^ses"
  14473. }
  14474. ]
  14475. },
  14476. "model": {
  14477. "$ref": "#/components/schemas/Model.Ref"
  14478. },
  14479. "previous": {
  14480. "$ref": "#/components/schemas/Model.Ref"
  14481. }
  14482. },
  14483. "required": ["sessionID", "model"],
  14484. "additionalProperties": false
  14485. }
  14486. },
  14487. "required": ["id", "created", "type", "durable", "data"],
  14488. "additionalProperties": false
  14489. },
  14490. "session.moved": {
  14491. "type": "object",
  14492. "properties": {
  14493. "id": {
  14494. "type": "string",
  14495. "allOf": [
  14496. {
  14497. "pattern": "^evt_"
  14498. }
  14499. ]
  14500. },
  14501. "created": {
  14502. "type": "number"
  14503. },
  14504. "metadata": {
  14505. "type": "object"
  14506. },
  14507. "type": {
  14508. "type": "string",
  14509. "enum": ["session.moved"]
  14510. },
  14511. "durable": {
  14512. "type": "object",
  14513. "properties": {
  14514. "aggregateID": {
  14515. "type": "string"
  14516. },
  14517. "seq": {
  14518. "type": "integer",
  14519. "allOf": [
  14520. {
  14521. "minimum": 0
  14522. }
  14523. ]
  14524. },
  14525. "version": {
  14526. "type": "number",
  14527. "enum": [1]
  14528. }
  14529. },
  14530. "required": ["aggregateID", "seq", "version"],
  14531. "additionalProperties": false
  14532. },
  14533. "location": {
  14534. "$ref": "#/components/schemas/Location.Ref"
  14535. },
  14536. "data": {
  14537. "type": "object",
  14538. "properties": {
  14539. "sessionID": {
  14540. "type": "string",
  14541. "allOf": [
  14542. {
  14543. "pattern": "^ses"
  14544. }
  14545. ]
  14546. },
  14547. "location": {
  14548. "$ref": "#/components/schemas/Location.Ref"
  14549. },
  14550. "projectID": {
  14551. "type": "string"
  14552. },
  14553. "subpath": {
  14554. "type": "string"
  14555. }
  14556. },
  14557. "required": ["sessionID", "location", "projectID"],
  14558. "additionalProperties": false
  14559. }
  14560. },
  14561. "required": ["id", "created", "type", "durable", "data"],
  14562. "additionalProperties": false
  14563. },
  14564. "session.renamed": {
  14565. "type": "object",
  14566. "properties": {
  14567. "id": {
  14568. "type": "string",
  14569. "allOf": [
  14570. {
  14571. "pattern": "^evt_"
  14572. }
  14573. ]
  14574. },
  14575. "created": {
  14576. "type": "number"
  14577. },
  14578. "metadata": {
  14579. "type": "object"
  14580. },
  14581. "type": {
  14582. "type": "string",
  14583. "enum": ["session.renamed"]
  14584. },
  14585. "durable": {
  14586. "type": "object",
  14587. "properties": {
  14588. "aggregateID": {
  14589. "type": "string"
  14590. },
  14591. "seq": {
  14592. "type": "integer",
  14593. "allOf": [
  14594. {
  14595. "minimum": 0
  14596. }
  14597. ]
  14598. },
  14599. "version": {
  14600. "type": "number",
  14601. "enum": [1]
  14602. }
  14603. },
  14604. "required": ["aggregateID", "seq", "version"],
  14605. "additionalProperties": false
  14606. },
  14607. "location": {
  14608. "$ref": "#/components/schemas/Location.Ref"
  14609. },
  14610. "data": {
  14611. "type": "object",
  14612. "properties": {
  14613. "sessionID": {
  14614. "type": "string",
  14615. "allOf": [
  14616. {
  14617. "pattern": "^ses"
  14618. }
  14619. ]
  14620. },
  14621. "title": {
  14622. "type": "string"
  14623. }
  14624. },
  14625. "required": ["sessionID", "title"],
  14626. "additionalProperties": false
  14627. }
  14628. },
  14629. "required": ["id", "created", "type", "durable", "data"],
  14630. "additionalProperties": false
  14631. },
  14632. "session.deleted": {
  14633. "type": "object",
  14634. "properties": {
  14635. "id": {
  14636. "type": "string",
  14637. "allOf": [
  14638. {
  14639. "pattern": "^evt_"
  14640. }
  14641. ]
  14642. },
  14643. "created": {
  14644. "type": "number"
  14645. },
  14646. "metadata": {
  14647. "type": "object"
  14648. },
  14649. "type": {
  14650. "type": "string",
  14651. "enum": ["session.deleted"]
  14652. },
  14653. "durable": {
  14654. "type": "object",
  14655. "properties": {
  14656. "aggregateID": {
  14657. "type": "string"
  14658. },
  14659. "seq": {
  14660. "type": "integer",
  14661. "allOf": [
  14662. {
  14663. "minimum": 0
  14664. }
  14665. ]
  14666. },
  14667. "version": {
  14668. "type": "number",
  14669. "enum": [2]
  14670. }
  14671. },
  14672. "required": ["aggregateID", "seq", "version"],
  14673. "additionalProperties": false
  14674. },
  14675. "location": {
  14676. "$ref": "#/components/schemas/Location.Ref"
  14677. },
  14678. "data": {
  14679. "type": "object",
  14680. "properties": {
  14681. "sessionID": {
  14682. "type": "string",
  14683. "allOf": [
  14684. {
  14685. "pattern": "^ses"
  14686. }
  14687. ]
  14688. }
  14689. },
  14690. "required": ["sessionID"],
  14691. "additionalProperties": false
  14692. }
  14693. },
  14694. "required": ["id", "created", "type", "durable", "data"],
  14695. "additionalProperties": false
  14696. },
  14697. "session.forked": {
  14698. "type": "object",
  14699. "properties": {
  14700. "id": {
  14701. "type": "string",
  14702. "allOf": [
  14703. {
  14704. "pattern": "^evt_"
  14705. }
  14706. ]
  14707. },
  14708. "created": {
  14709. "type": "number"
  14710. },
  14711. "metadata": {
  14712. "type": "object"
  14713. },
  14714. "type": {
  14715. "type": "string",
  14716. "enum": ["session.forked"]
  14717. },
  14718. "durable": {
  14719. "type": "object",
  14720. "properties": {
  14721. "aggregateID": {
  14722. "type": "string"
  14723. },
  14724. "seq": {
  14725. "type": "integer",
  14726. "allOf": [
  14727. {
  14728. "minimum": 0
  14729. }
  14730. ]
  14731. },
  14732. "version": {
  14733. "type": "number",
  14734. "enum": [2]
  14735. }
  14736. },
  14737. "required": ["aggregateID", "seq", "version"],
  14738. "additionalProperties": false
  14739. },
  14740. "location": {
  14741. "$ref": "#/components/schemas/Location.Ref"
  14742. },
  14743. "data": {
  14744. "type": "object",
  14745. "properties": {
  14746. "sessionID": {
  14747. "type": "string",
  14748. "allOf": [
  14749. {
  14750. "pattern": "^ses"
  14751. }
  14752. ]
  14753. },
  14754. "parentID": {
  14755. "type": "string",
  14756. "allOf": [
  14757. {
  14758. "pattern": "^ses"
  14759. }
  14760. ]
  14761. },
  14762. "boundary": {
  14763. "$ref": "#/components/schemas/Session.ForkBoundary"
  14764. },
  14765. "instructions": {
  14766. "type": "object",
  14767. "patternProperties": {
  14768. "^[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._/-]*$": {
  14769. "type": "string",
  14770. "allOf": [
  14771. {
  14772. "pattern": "^[a-f0-9]{64}$"
  14773. }
  14774. ]
  14775. }
  14776. }
  14777. }
  14778. },
  14779. "required": ["sessionID", "parentID", "boundary"],
  14780. "additionalProperties": false
  14781. }
  14782. },
  14783. "required": ["id", "created", "type", "durable", "data"],
  14784. "additionalProperties": false
  14785. },
  14786. "session.inbox.delivered": {
  14787. "type": "object",
  14788. "properties": {
  14789. "id": {
  14790. "type": "string",
  14791. "allOf": [
  14792. {
  14793. "pattern": "^evt_"
  14794. }
  14795. ]
  14796. },
  14797. "created": {
  14798. "type": "number"
  14799. },
  14800. "metadata": {
  14801. "type": "object"
  14802. },
  14803. "type": {
  14804. "type": "string",
  14805. "enum": ["session.inbox.delivered"]
  14806. },
  14807. "durable": {
  14808. "type": "object",
  14809. "properties": {
  14810. "aggregateID": {
  14811. "type": "string"
  14812. },
  14813. "seq": {
  14814. "type": "integer",
  14815. "allOf": [
  14816. {
  14817. "minimum": 0
  14818. }
  14819. ]
  14820. },
  14821. "version": {
  14822. "type": "number",
  14823. "enum": [1]
  14824. }
  14825. },
  14826. "required": ["aggregateID", "seq", "version"],
  14827. "additionalProperties": false
  14828. },
  14829. "location": {
  14830. "$ref": "#/components/schemas/Location.Ref"
  14831. },
  14832. "data": {
  14833. "type": "object",
  14834. "properties": {
  14835. "sessionID": {
  14836. "type": "string",
  14837. "allOf": [
  14838. {
  14839. "pattern": "^ses"
  14840. }
  14841. ]
  14842. },
  14843. "inboxID": {
  14844. "type": "string",
  14845. "allOf": [
  14846. {
  14847. "pattern": "^msg_"
  14848. }
  14849. ]
  14850. }
  14851. },
  14852. "required": ["sessionID", "inboxID"],
  14853. "additionalProperties": false
  14854. }
  14855. },
  14856. "required": ["id", "created", "type", "durable", "data"],
  14857. "additionalProperties": false
  14858. },
  14859. "Session.Inbox.UserPayload1": {
  14860. "type": "object",
  14861. "properties": {
  14862. "text": {
  14863. "type": "string"
  14864. },
  14865. "files": {
  14866. "type": "array",
  14867. "items": {
  14868. "$ref": "#/components/schemas/Prompt.FileAttachment"
  14869. }
  14870. },
  14871. "agents": {
  14872. "type": "array",
  14873. "items": {
  14874. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  14875. }
  14876. },
  14877. "skills": {
  14878. "type": "array",
  14879. "items": {
  14880. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  14881. }
  14882. },
  14883. "metadata": {
  14884. "type": "object"
  14885. }
  14886. },
  14887. "required": ["text"],
  14888. "additionalProperties": false
  14889. },
  14890. "Session.Inbox.SyntheticPayload1": {
  14891. "type": "object",
  14892. "properties": {
  14893. "text": {
  14894. "type": "string"
  14895. },
  14896. "description": {
  14897. "type": "string"
  14898. },
  14899. "metadata": {
  14900. "type": "object"
  14901. }
  14902. },
  14903. "required": ["text"],
  14904. "additionalProperties": false
  14905. },
  14906. "Session.Inbox.Item": {
  14907. "anyOf": [
  14908. {
  14909. "type": "object",
  14910. "properties": {
  14911. "type": {
  14912. "type": "string",
  14913. "enum": ["user"]
  14914. },
  14915. "payload": {
  14916. "$ref": "#/components/schemas/Session.Inbox.UserPayload1"
  14917. },
  14918. "delivery": {
  14919. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14920. }
  14921. },
  14922. "required": ["type", "payload", "delivery"],
  14923. "additionalProperties": false
  14924. },
  14925. {
  14926. "type": "object",
  14927. "properties": {
  14928. "type": {
  14929. "type": "string",
  14930. "enum": ["synthetic"]
  14931. },
  14932. "payload": {
  14933. "$ref": "#/components/schemas/Session.Inbox.SyntheticPayload1"
  14934. },
  14935. "delivery": {
  14936. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14937. }
  14938. },
  14939. "required": ["type", "payload", "delivery"],
  14940. "additionalProperties": false
  14941. },
  14942. {
  14943. "type": "object",
  14944. "properties": {
  14945. "type": {
  14946. "type": "string",
  14947. "enum": ["compaction"]
  14948. },
  14949. "payload": {
  14950. "$ref": "#/components/schemas/Session.Inbox.CompactionPayload"
  14951. },
  14952. "delivery": {
  14953. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14954. }
  14955. },
  14956. "required": ["type", "payload", "delivery"],
  14957. "additionalProperties": false
  14958. },
  14959. {
  14960. "type": "object",
  14961. "properties": {
  14962. "type": {
  14963. "type": "string",
  14964. "enum": ["move"]
  14965. },
  14966. "payload": {
  14967. "$ref": "#/components/schemas/Session.Inbox.MovePayload"
  14968. },
  14969. "delivery": {
  14970. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14971. }
  14972. },
  14973. "required": ["type", "payload", "delivery"],
  14974. "additionalProperties": false
  14975. }
  14976. ]
  14977. },
  14978. "session.inbox.enqueued": {
  14979. "type": "object",
  14980. "properties": {
  14981. "id": {
  14982. "type": "string",
  14983. "allOf": [
  14984. {
  14985. "pattern": "^evt_"
  14986. }
  14987. ]
  14988. },
  14989. "created": {
  14990. "type": "number"
  14991. },
  14992. "metadata": {
  14993. "type": "object"
  14994. },
  14995. "type": {
  14996. "type": "string",
  14997. "enum": ["session.inbox.enqueued"]
  14998. },
  14999. "durable": {
  15000. "type": "object",
  15001. "properties": {
  15002. "aggregateID": {
  15003. "type": "string"
  15004. },
  15005. "seq": {
  15006. "type": "integer",
  15007. "allOf": [
  15008. {
  15009. "minimum": 0
  15010. }
  15011. ]
  15012. },
  15013. "version": {
  15014. "type": "number",
  15015. "enum": [1]
  15016. }
  15017. },
  15018. "required": ["aggregateID", "seq", "version"],
  15019. "additionalProperties": false
  15020. },
  15021. "location": {
  15022. "$ref": "#/components/schemas/Location.Ref"
  15023. },
  15024. "data": {
  15025. "type": "object",
  15026. "properties": {
  15027. "sessionID": {
  15028. "type": "string",
  15029. "allOf": [
  15030. {
  15031. "pattern": "^ses"
  15032. }
  15033. ]
  15034. },
  15035. "inboxID": {
  15036. "type": "string",
  15037. "allOf": [
  15038. {
  15039. "pattern": "^msg_"
  15040. }
  15041. ]
  15042. },
  15043. "item": {
  15044. "$ref": "#/components/schemas/Session.Inbox.Item"
  15045. }
  15046. },
  15047. "required": ["sessionID", "inboxID", "item"],
  15048. "additionalProperties": false
  15049. }
  15050. },
  15051. "required": ["id", "created", "type", "durable", "data"],
  15052. "additionalProperties": false
  15053. },
  15054. "session.inbox.cancelled": {
  15055. "type": "object",
  15056. "properties": {
  15057. "id": {
  15058. "type": "string",
  15059. "allOf": [
  15060. {
  15061. "pattern": "^evt_"
  15062. }
  15063. ]
  15064. },
  15065. "created": {
  15066. "type": "number"
  15067. },
  15068. "metadata": {
  15069. "type": "object"
  15070. },
  15071. "type": {
  15072. "type": "string",
  15073. "enum": ["session.inbox.cancelled"]
  15074. },
  15075. "durable": {
  15076. "type": "object",
  15077. "properties": {
  15078. "aggregateID": {
  15079. "type": "string"
  15080. },
  15081. "seq": {
  15082. "type": "integer",
  15083. "allOf": [
  15084. {
  15085. "minimum": 0
  15086. }
  15087. ]
  15088. },
  15089. "version": {
  15090. "type": "number",
  15091. "enum": [1]
  15092. }
  15093. },
  15094. "required": ["aggregateID", "seq", "version"],
  15095. "additionalProperties": false
  15096. },
  15097. "location": {
  15098. "$ref": "#/components/schemas/Location.Ref"
  15099. },
  15100. "data": {
  15101. "type": "object",
  15102. "properties": {
  15103. "sessionID": {
  15104. "type": "string",
  15105. "allOf": [
  15106. {
  15107. "pattern": "^ses"
  15108. }
  15109. ]
  15110. },
  15111. "inboxID": {
  15112. "type": "string",
  15113. "allOf": [
  15114. {
  15115. "pattern": "^msg_"
  15116. }
  15117. ]
  15118. }
  15119. },
  15120. "required": ["sessionID", "inboxID"],
  15121. "additionalProperties": false
  15122. }
  15123. },
  15124. "required": ["id", "created", "type", "durable", "data"],
  15125. "additionalProperties": false
  15126. },
  15127. "session.inbox.delivery.changed": {
  15128. "type": "object",
  15129. "properties": {
  15130. "id": {
  15131. "type": "string",
  15132. "allOf": [
  15133. {
  15134. "pattern": "^evt_"
  15135. }
  15136. ]
  15137. },
  15138. "created": {
  15139. "type": "number"
  15140. },
  15141. "metadata": {
  15142. "type": "object"
  15143. },
  15144. "type": {
  15145. "type": "string",
  15146. "enum": ["session.inbox.delivery.changed"]
  15147. },
  15148. "durable": {
  15149. "type": "object",
  15150. "properties": {
  15151. "aggregateID": {
  15152. "type": "string"
  15153. },
  15154. "seq": {
  15155. "type": "integer",
  15156. "allOf": [
  15157. {
  15158. "minimum": 0
  15159. }
  15160. ]
  15161. },
  15162. "version": {
  15163. "type": "number",
  15164. "enum": [1]
  15165. }
  15166. },
  15167. "required": ["aggregateID", "seq", "version"],
  15168. "additionalProperties": false
  15169. },
  15170. "location": {
  15171. "$ref": "#/components/schemas/Location.Ref"
  15172. },
  15173. "data": {
  15174. "type": "object",
  15175. "properties": {
  15176. "sessionID": {
  15177. "type": "string",
  15178. "allOf": [
  15179. {
  15180. "pattern": "^ses"
  15181. }
  15182. ]
  15183. },
  15184. "inboxID": {
  15185. "type": "string",
  15186. "allOf": [
  15187. {
  15188. "pattern": "^msg_"
  15189. }
  15190. ]
  15191. },
  15192. "delivery": {
  15193. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  15194. }
  15195. },
  15196. "required": ["sessionID", "inboxID", "delivery"],
  15197. "additionalProperties": false
  15198. }
  15199. },
  15200. "required": ["id", "created", "type", "durable", "data"],
  15201. "additionalProperties": false
  15202. },
  15203. "session.execution.started": {
  15204. "type": "object",
  15205. "properties": {
  15206. "id": {
  15207. "type": "string",
  15208. "allOf": [
  15209. {
  15210. "pattern": "^evt_"
  15211. }
  15212. ]
  15213. },
  15214. "created": {
  15215. "type": "number"
  15216. },
  15217. "metadata": {
  15218. "type": "object"
  15219. },
  15220. "type": {
  15221. "type": "string",
  15222. "enum": ["session.execution.started"]
  15223. },
  15224. "durable": {
  15225. "type": "object",
  15226. "properties": {
  15227. "aggregateID": {
  15228. "type": "string"
  15229. },
  15230. "seq": {
  15231. "type": "integer",
  15232. "allOf": [
  15233. {
  15234. "minimum": 0
  15235. }
  15236. ]
  15237. },
  15238. "version": {
  15239. "type": "number",
  15240. "enum": [1]
  15241. }
  15242. },
  15243. "required": ["aggregateID", "seq", "version"],
  15244. "additionalProperties": false
  15245. },
  15246. "location": {
  15247. "$ref": "#/components/schemas/Location.Ref"
  15248. },
  15249. "data": {
  15250. "type": "object",
  15251. "properties": {
  15252. "sessionID": {
  15253. "type": "string",
  15254. "allOf": [
  15255. {
  15256. "pattern": "^ses"
  15257. }
  15258. ]
  15259. }
  15260. },
  15261. "required": ["sessionID"],
  15262. "additionalProperties": false
  15263. }
  15264. },
  15265. "required": ["id", "created", "type", "durable", "data"],
  15266. "additionalProperties": false
  15267. },
  15268. "session.execution.succeeded": {
  15269. "type": "object",
  15270. "properties": {
  15271. "id": {
  15272. "type": "string",
  15273. "allOf": [
  15274. {
  15275. "pattern": "^evt_"
  15276. }
  15277. ]
  15278. },
  15279. "created": {
  15280. "type": "number"
  15281. },
  15282. "metadata": {
  15283. "type": "object"
  15284. },
  15285. "type": {
  15286. "type": "string",
  15287. "enum": ["session.execution.succeeded"]
  15288. },
  15289. "durable": {
  15290. "type": "object",
  15291. "properties": {
  15292. "aggregateID": {
  15293. "type": "string"
  15294. },
  15295. "seq": {
  15296. "type": "integer",
  15297. "allOf": [
  15298. {
  15299. "minimum": 0
  15300. }
  15301. ]
  15302. },
  15303. "version": {
  15304. "type": "number",
  15305. "enum": [1]
  15306. }
  15307. },
  15308. "required": ["aggregateID", "seq", "version"],
  15309. "additionalProperties": false
  15310. },
  15311. "location": {
  15312. "$ref": "#/components/schemas/Location.Ref"
  15313. },
  15314. "data": {
  15315. "type": "object",
  15316. "properties": {
  15317. "sessionID": {
  15318. "type": "string",
  15319. "allOf": [
  15320. {
  15321. "pattern": "^ses"
  15322. }
  15323. ]
  15324. }
  15325. },
  15326. "required": ["sessionID"],
  15327. "additionalProperties": false
  15328. }
  15329. },
  15330. "required": ["id", "created", "type", "durable", "data"],
  15331. "additionalProperties": false
  15332. },
  15333. "session.execution.failed": {
  15334. "type": "object",
  15335. "properties": {
  15336. "id": {
  15337. "type": "string",
  15338. "allOf": [
  15339. {
  15340. "pattern": "^evt_"
  15341. }
  15342. ]
  15343. },
  15344. "created": {
  15345. "type": "number"
  15346. },
  15347. "metadata": {
  15348. "type": "object"
  15349. },
  15350. "type": {
  15351. "type": "string",
  15352. "enum": ["session.execution.failed"]
  15353. },
  15354. "durable": {
  15355. "type": "object",
  15356. "properties": {
  15357. "aggregateID": {
  15358. "type": "string"
  15359. },
  15360. "seq": {
  15361. "type": "integer",
  15362. "allOf": [
  15363. {
  15364. "minimum": 0
  15365. }
  15366. ]
  15367. },
  15368. "version": {
  15369. "type": "number",
  15370. "enum": [1]
  15371. }
  15372. },
  15373. "required": ["aggregateID", "seq", "version"],
  15374. "additionalProperties": false
  15375. },
  15376. "location": {
  15377. "$ref": "#/components/schemas/Location.Ref"
  15378. },
  15379. "data": {
  15380. "type": "object",
  15381. "properties": {
  15382. "sessionID": {
  15383. "type": "string",
  15384. "allOf": [
  15385. {
  15386. "pattern": "^ses"
  15387. }
  15388. ]
  15389. },
  15390. "error": {
  15391. "$ref": "#/components/schemas/Session.StructuredError"
  15392. }
  15393. },
  15394. "required": ["sessionID", "error"],
  15395. "additionalProperties": false
  15396. }
  15397. },
  15398. "required": ["id", "created", "type", "durable", "data"],
  15399. "additionalProperties": false
  15400. },
  15401. "session.execution.interrupted": {
  15402. "type": "object",
  15403. "properties": {
  15404. "id": {
  15405. "type": "string",
  15406. "allOf": [
  15407. {
  15408. "pattern": "^evt_"
  15409. }
  15410. ]
  15411. },
  15412. "created": {
  15413. "type": "number"
  15414. },
  15415. "metadata": {
  15416. "type": "object"
  15417. },
  15418. "type": {
  15419. "type": "string",
  15420. "enum": ["session.execution.interrupted"]
  15421. },
  15422. "durable": {
  15423. "type": "object",
  15424. "properties": {
  15425. "aggregateID": {
  15426. "type": "string"
  15427. },
  15428. "seq": {
  15429. "type": "integer",
  15430. "allOf": [
  15431. {
  15432. "minimum": 0
  15433. }
  15434. ]
  15435. },
  15436. "version": {
  15437. "type": "number",
  15438. "enum": [1]
  15439. }
  15440. },
  15441. "required": ["aggregateID", "seq", "version"],
  15442. "additionalProperties": false
  15443. },
  15444. "location": {
  15445. "$ref": "#/components/schemas/Location.Ref"
  15446. },
  15447. "data": {
  15448. "type": "object",
  15449. "properties": {
  15450. "sessionID": {
  15451. "type": "string",
  15452. "allOf": [
  15453. {
  15454. "pattern": "^ses"
  15455. }
  15456. ]
  15457. },
  15458. "reason": {
  15459. "type": "string",
  15460. "enum": ["user", "shutdown", "superseded"]
  15461. }
  15462. },
  15463. "required": ["sessionID", "reason"],
  15464. "additionalProperties": false
  15465. }
  15466. },
  15467. "required": ["id", "created", "type", "durable", "data"],
  15468. "additionalProperties": false
  15469. },
  15470. "session.instructions.updated": {
  15471. "type": "object",
  15472. "properties": {
  15473. "id": {
  15474. "type": "string",
  15475. "allOf": [
  15476. {
  15477. "pattern": "^evt_"
  15478. }
  15479. ]
  15480. },
  15481. "created": {
  15482. "type": "number"
  15483. },
  15484. "metadata": {
  15485. "type": "object"
  15486. },
  15487. "type": {
  15488. "type": "string",
  15489. "enum": ["session.instructions.updated"]
  15490. },
  15491. "durable": {
  15492. "type": "object",
  15493. "properties": {
  15494. "aggregateID": {
  15495. "type": "string"
  15496. },
  15497. "seq": {
  15498. "type": "integer",
  15499. "allOf": [
  15500. {
  15501. "minimum": 0
  15502. }
  15503. ]
  15504. },
  15505. "version": {
  15506. "type": "number",
  15507. "enum": [2]
  15508. }
  15509. },
  15510. "required": ["aggregateID", "seq", "version"],
  15511. "additionalProperties": false
  15512. },
  15513. "location": {
  15514. "$ref": "#/components/schemas/Location.Ref"
  15515. },
  15516. "data": {
  15517. "type": "object",
  15518. "properties": {
  15519. "sessionID": {
  15520. "type": "string",
  15521. "allOf": [
  15522. {
  15523. "pattern": "^ses"
  15524. }
  15525. ]
  15526. },
  15527. "delta": {
  15528. "type": "object",
  15529. "additionalProperties": {
  15530. "anyOf": [
  15531. {
  15532. "type": "string",
  15533. "allOf": [
  15534. {
  15535. "pattern": "^[a-f0-9]{64}$"
  15536. }
  15537. ]
  15538. },
  15539. {
  15540. "type": "string",
  15541. "enum": ["removed"]
  15542. }
  15543. ]
  15544. }
  15545. },
  15546. "text": {
  15547. "type": "string"
  15548. }
  15549. },
  15550. "required": ["sessionID", "delta"],
  15551. "additionalProperties": false
  15552. }
  15553. },
  15554. "required": ["id", "created", "type", "durable", "data"],
  15555. "additionalProperties": false
  15556. },
  15557. "session.synthetic": {
  15558. "type": "object",
  15559. "properties": {
  15560. "id": {
  15561. "type": "string",
  15562. "allOf": [
  15563. {
  15564. "pattern": "^evt_"
  15565. }
  15566. ]
  15567. },
  15568. "created": {
  15569. "type": "number"
  15570. },
  15571. "metadata": {
  15572. "type": "object"
  15573. },
  15574. "type": {
  15575. "type": "string",
  15576. "enum": ["session.synthetic"]
  15577. },
  15578. "durable": {
  15579. "type": "object",
  15580. "properties": {
  15581. "aggregateID": {
  15582. "type": "string"
  15583. },
  15584. "seq": {
  15585. "type": "integer",
  15586. "allOf": [
  15587. {
  15588. "minimum": 0
  15589. }
  15590. ]
  15591. },
  15592. "version": {
  15593. "type": "number",
  15594. "enum": [1]
  15595. }
  15596. },
  15597. "required": ["aggregateID", "seq", "version"],
  15598. "additionalProperties": false
  15599. },
  15600. "location": {
  15601. "$ref": "#/components/schemas/Location.Ref"
  15602. },
  15603. "data": {
  15604. "type": "object",
  15605. "properties": {
  15606. "sessionID": {
  15607. "type": "string",
  15608. "allOf": [
  15609. {
  15610. "pattern": "^ses"
  15611. }
  15612. ]
  15613. },
  15614. "text": {
  15615. "type": "string"
  15616. },
  15617. "description": {
  15618. "type": "string"
  15619. },
  15620. "metadata": {
  15621. "type": "object"
  15622. }
  15623. },
  15624. "required": ["sessionID", "text"],
  15625. "additionalProperties": false
  15626. }
  15627. },
  15628. "required": ["id", "created", "type", "durable", "data"],
  15629. "additionalProperties": false
  15630. },
  15631. "session.skill.activated": {
  15632. "type": "object",
  15633. "properties": {
  15634. "id": {
  15635. "type": "string",
  15636. "allOf": [
  15637. {
  15638. "pattern": "^evt_"
  15639. }
  15640. ]
  15641. },
  15642. "created": {
  15643. "type": "number"
  15644. },
  15645. "metadata": {
  15646. "type": "object"
  15647. },
  15648. "type": {
  15649. "type": "string",
  15650. "enum": ["session.skill.activated"]
  15651. },
  15652. "durable": {
  15653. "type": "object",
  15654. "properties": {
  15655. "aggregateID": {
  15656. "type": "string"
  15657. },
  15658. "seq": {
  15659. "type": "integer",
  15660. "allOf": [
  15661. {
  15662. "minimum": 0
  15663. }
  15664. ]
  15665. },
  15666. "version": {
  15667. "type": "number",
  15668. "enum": [1]
  15669. }
  15670. },
  15671. "required": ["aggregateID", "seq", "version"],
  15672. "additionalProperties": false
  15673. },
  15674. "location": {
  15675. "$ref": "#/components/schemas/Location.Ref"
  15676. },
  15677. "data": {
  15678. "type": "object",
  15679. "properties": {
  15680. "sessionID": {
  15681. "type": "string",
  15682. "allOf": [
  15683. {
  15684. "pattern": "^ses"
  15685. }
  15686. ]
  15687. },
  15688. "id": {
  15689. "type": "string"
  15690. },
  15691. "name": {
  15692. "type": "string"
  15693. },
  15694. "text": {
  15695. "type": "string"
  15696. }
  15697. },
  15698. "required": ["sessionID", "id", "name", "text"],
  15699. "additionalProperties": false
  15700. }
  15701. },
  15702. "required": ["id", "created", "type", "durable", "data"],
  15703. "additionalProperties": false
  15704. },
  15705. "Shell.Info": {
  15706. "type": "object",
  15707. "properties": {
  15708. "id": {
  15709. "type": "string",
  15710. "allOf": [
  15711. {
  15712. "pattern": "^sh_"
  15713. }
  15714. ]
  15715. },
  15716. "status": {
  15717. "type": "string",
  15718. "enum": ["running", "exited", "timeout", "killed"]
  15719. },
  15720. "command": {
  15721. "type": "string"
  15722. },
  15723. "cwd": {
  15724. "type": "string"
  15725. },
  15726. "shell": {
  15727. "type": "string"
  15728. },
  15729. "file": {
  15730. "type": "string"
  15731. },
  15732. "pid": {
  15733. "type": "integer",
  15734. "allOf": [
  15735. {
  15736. "minimum": 0
  15737. }
  15738. ]
  15739. },
  15740. "exit": {
  15741. "type": "number"
  15742. },
  15743. "metadata": {
  15744. "type": "object"
  15745. },
  15746. "time": {
  15747. "type": "object",
  15748. "properties": {
  15749. "started": {
  15750. "type": "number"
  15751. },
  15752. "completed": {
  15753. "type": "number"
  15754. }
  15755. },
  15756. "required": ["started"],
  15757. "additionalProperties": false
  15758. }
  15759. },
  15760. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  15761. "additionalProperties": false
  15762. },
  15763. "session.shell.started": {
  15764. "type": "object",
  15765. "properties": {
  15766. "id": {
  15767. "type": "string",
  15768. "allOf": [
  15769. {
  15770. "pattern": "^evt_"
  15771. }
  15772. ]
  15773. },
  15774. "created": {
  15775. "type": "number"
  15776. },
  15777. "metadata": {
  15778. "type": "object"
  15779. },
  15780. "type": {
  15781. "type": "string",
  15782. "enum": ["session.shell.started"]
  15783. },
  15784. "durable": {
  15785. "type": "object",
  15786. "properties": {
  15787. "aggregateID": {
  15788. "type": "string"
  15789. },
  15790. "seq": {
  15791. "type": "integer",
  15792. "allOf": [
  15793. {
  15794. "minimum": 0
  15795. }
  15796. ]
  15797. },
  15798. "version": {
  15799. "type": "number",
  15800. "enum": [1]
  15801. }
  15802. },
  15803. "required": ["aggregateID", "seq", "version"],
  15804. "additionalProperties": false
  15805. },
  15806. "location": {
  15807. "$ref": "#/components/schemas/Location.Ref"
  15808. },
  15809. "data": {
  15810. "type": "object",
  15811. "properties": {
  15812. "sessionID": {
  15813. "type": "string",
  15814. "allOf": [
  15815. {
  15816. "pattern": "^ses"
  15817. }
  15818. ]
  15819. },
  15820. "shell": {
  15821. "$ref": "#/components/schemas/Shell.Info"
  15822. }
  15823. },
  15824. "required": ["sessionID", "shell"],
  15825. "additionalProperties": false
  15826. }
  15827. },
  15828. "required": ["id", "created", "type", "durable", "data"],
  15829. "additionalProperties": false
  15830. },
  15831. "session.shell.ended": {
  15832. "type": "object",
  15833. "properties": {
  15834. "id": {
  15835. "type": "string",
  15836. "allOf": [
  15837. {
  15838. "pattern": "^evt_"
  15839. }
  15840. ]
  15841. },
  15842. "created": {
  15843. "type": "number"
  15844. },
  15845. "metadata": {
  15846. "type": "object"
  15847. },
  15848. "type": {
  15849. "type": "string",
  15850. "enum": ["session.shell.ended"]
  15851. },
  15852. "durable": {
  15853. "type": "object",
  15854. "properties": {
  15855. "aggregateID": {
  15856. "type": "string"
  15857. },
  15858. "seq": {
  15859. "type": "integer",
  15860. "allOf": [
  15861. {
  15862. "minimum": 0
  15863. }
  15864. ]
  15865. },
  15866. "version": {
  15867. "type": "number",
  15868. "enum": [1]
  15869. }
  15870. },
  15871. "required": ["aggregateID", "seq", "version"],
  15872. "additionalProperties": false
  15873. },
  15874. "location": {
  15875. "$ref": "#/components/schemas/Location.Ref"
  15876. },
  15877. "data": {
  15878. "type": "object",
  15879. "properties": {
  15880. "sessionID": {
  15881. "type": "string",
  15882. "allOf": [
  15883. {
  15884. "pattern": "^ses"
  15885. }
  15886. ]
  15887. },
  15888. "shell": {
  15889. "$ref": "#/components/schemas/Shell.Info"
  15890. },
  15891. "output": {
  15892. "type": "object",
  15893. "properties": {
  15894. "output": {
  15895. "type": "string"
  15896. },
  15897. "cursor": {
  15898. "type": "integer",
  15899. "allOf": [
  15900. {
  15901. "minimum": 0
  15902. }
  15903. ]
  15904. },
  15905. "size": {
  15906. "type": "integer",
  15907. "allOf": [
  15908. {
  15909. "minimum": 0
  15910. }
  15911. ]
  15912. },
  15913. "truncated": {
  15914. "type": "boolean"
  15915. }
  15916. },
  15917. "required": ["output", "cursor", "size", "truncated"],
  15918. "additionalProperties": false
  15919. }
  15920. },
  15921. "required": ["sessionID", "shell", "output"],
  15922. "additionalProperties": false
  15923. }
  15924. },
  15925. "required": ["id", "created", "type", "durable", "data"],
  15926. "additionalProperties": false
  15927. },
  15928. "session.step.started": {
  15929. "type": "object",
  15930. "properties": {
  15931. "id": {
  15932. "type": "string",
  15933. "allOf": [
  15934. {
  15935. "pattern": "^evt_"
  15936. }
  15937. ]
  15938. },
  15939. "created": {
  15940. "type": "number"
  15941. },
  15942. "metadata": {
  15943. "type": "object"
  15944. },
  15945. "type": {
  15946. "type": "string",
  15947. "enum": ["session.step.started"]
  15948. },
  15949. "durable": {
  15950. "type": "object",
  15951. "properties": {
  15952. "aggregateID": {
  15953. "type": "string"
  15954. },
  15955. "seq": {
  15956. "type": "integer",
  15957. "allOf": [
  15958. {
  15959. "minimum": 0
  15960. }
  15961. ]
  15962. },
  15963. "version": {
  15964. "type": "number",
  15965. "enum": [1]
  15966. }
  15967. },
  15968. "required": ["aggregateID", "seq", "version"],
  15969. "additionalProperties": false
  15970. },
  15971. "location": {
  15972. "$ref": "#/components/schemas/Location.Ref"
  15973. },
  15974. "data": {
  15975. "type": "object",
  15976. "properties": {
  15977. "sessionID": {
  15978. "type": "string",
  15979. "allOf": [
  15980. {
  15981. "pattern": "^ses"
  15982. }
  15983. ]
  15984. },
  15985. "assistantMessageID": {
  15986. "type": "string",
  15987. "allOf": [
  15988. {
  15989. "pattern": "^msg_"
  15990. }
  15991. ]
  15992. },
  15993. "agent": {
  15994. "type": "string"
  15995. },
  15996. "model": {
  15997. "$ref": "#/components/schemas/Model.Ref"
  15998. },
  15999. "snapshot": {
  16000. "type": "string"
  16001. }
  16002. },
  16003. "required": ["sessionID", "assistantMessageID", "agent", "model"],
  16004. "additionalProperties": false
  16005. }
  16006. },
  16007. "required": ["id", "created", "type", "durable", "data"],
  16008. "additionalProperties": false
  16009. },
  16010. "session.step.ended": {
  16011. "type": "object",
  16012. "properties": {
  16013. "id": {
  16014. "type": "string",
  16015. "allOf": [
  16016. {
  16017. "pattern": "^evt_"
  16018. }
  16019. ]
  16020. },
  16021. "created": {
  16022. "type": "number"
  16023. },
  16024. "metadata": {
  16025. "type": "object"
  16026. },
  16027. "type": {
  16028. "type": "string",
  16029. "enum": ["session.step.ended"]
  16030. },
  16031. "durable": {
  16032. "type": "object",
  16033. "properties": {
  16034. "aggregateID": {
  16035. "type": "string"
  16036. },
  16037. "seq": {
  16038. "type": "integer",
  16039. "allOf": [
  16040. {
  16041. "minimum": 0
  16042. }
  16043. ]
  16044. },
  16045. "version": {
  16046. "type": "number",
  16047. "enum": [1]
  16048. }
  16049. },
  16050. "required": ["aggregateID", "seq", "version"],
  16051. "additionalProperties": false
  16052. },
  16053. "location": {
  16054. "$ref": "#/components/schemas/Location.Ref"
  16055. },
  16056. "data": {
  16057. "type": "object",
  16058. "properties": {
  16059. "sessionID": {
  16060. "type": "string",
  16061. "allOf": [
  16062. {
  16063. "pattern": "^ses"
  16064. }
  16065. ]
  16066. },
  16067. "assistantMessageID": {
  16068. "type": "string",
  16069. "allOf": [
  16070. {
  16071. "pattern": "^msg_"
  16072. }
  16073. ]
  16074. },
  16075. "finish": {
  16076. "type": "string",
  16077. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  16078. },
  16079. "cost": {
  16080. "$ref": "#/components/schemas/Money.USD"
  16081. },
  16082. "tokens": {
  16083. "$ref": "#/components/schemas/TokenUsage.Info"
  16084. },
  16085. "snapshot": {
  16086. "type": "string"
  16087. },
  16088. "files": {
  16089. "type": "array",
  16090. "items": {
  16091. "type": "string"
  16092. }
  16093. }
  16094. },
  16095. "required": ["sessionID", "assistantMessageID", "finish", "cost", "tokens"],
  16096. "additionalProperties": false
  16097. }
  16098. },
  16099. "required": ["id", "created", "type", "durable", "data"],
  16100. "additionalProperties": false
  16101. },
  16102. "session.step.failed": {
  16103. "type": "object",
  16104. "properties": {
  16105. "id": {
  16106. "type": "string",
  16107. "allOf": [
  16108. {
  16109. "pattern": "^evt_"
  16110. }
  16111. ]
  16112. },
  16113. "created": {
  16114. "type": "number"
  16115. },
  16116. "metadata": {
  16117. "type": "object"
  16118. },
  16119. "type": {
  16120. "type": "string",
  16121. "enum": ["session.step.failed"]
  16122. },
  16123. "durable": {
  16124. "type": "object",
  16125. "properties": {
  16126. "aggregateID": {
  16127. "type": "string"
  16128. },
  16129. "seq": {
  16130. "type": "integer",
  16131. "allOf": [
  16132. {
  16133. "minimum": 0
  16134. }
  16135. ]
  16136. },
  16137. "version": {
  16138. "type": "number",
  16139. "enum": [1]
  16140. }
  16141. },
  16142. "required": ["aggregateID", "seq", "version"],
  16143. "additionalProperties": false
  16144. },
  16145. "location": {
  16146. "$ref": "#/components/schemas/Location.Ref"
  16147. },
  16148. "data": {
  16149. "type": "object",
  16150. "properties": {
  16151. "sessionID": {
  16152. "type": "string",
  16153. "allOf": [
  16154. {
  16155. "pattern": "^ses"
  16156. }
  16157. ]
  16158. },
  16159. "assistantMessageID": {
  16160. "type": "string",
  16161. "allOf": [
  16162. {
  16163. "pattern": "^msg_"
  16164. }
  16165. ]
  16166. },
  16167. "error": {
  16168. "$ref": "#/components/schemas/Session.StructuredError"
  16169. },
  16170. "cost": {
  16171. "$ref": "#/components/schemas/Money.USD"
  16172. },
  16173. "tokens": {
  16174. "$ref": "#/components/schemas/TokenUsage.Info"
  16175. },
  16176. "snapshot": {
  16177. "type": "string"
  16178. },
  16179. "files": {
  16180. "type": "array",
  16181. "items": {
  16182. "type": "string"
  16183. }
  16184. }
  16185. },
  16186. "required": ["sessionID", "assistantMessageID", "error"],
  16187. "additionalProperties": false
  16188. }
  16189. },
  16190. "required": ["id", "created", "type", "durable", "data"],
  16191. "additionalProperties": false
  16192. },
  16193. "session.text.started": {
  16194. "type": "object",
  16195. "properties": {
  16196. "id": {
  16197. "type": "string",
  16198. "allOf": [
  16199. {
  16200. "pattern": "^evt_"
  16201. }
  16202. ]
  16203. },
  16204. "created": {
  16205. "type": "number"
  16206. },
  16207. "metadata": {
  16208. "type": "object"
  16209. },
  16210. "type": {
  16211. "type": "string",
  16212. "enum": ["session.text.started"]
  16213. },
  16214. "durable": {
  16215. "type": "object",
  16216. "properties": {
  16217. "aggregateID": {
  16218. "type": "string"
  16219. },
  16220. "seq": {
  16221. "type": "integer",
  16222. "allOf": [
  16223. {
  16224. "minimum": 0
  16225. }
  16226. ]
  16227. },
  16228. "version": {
  16229. "type": "number",
  16230. "enum": [1]
  16231. }
  16232. },
  16233. "required": ["aggregateID", "seq", "version"],
  16234. "additionalProperties": false
  16235. },
  16236. "location": {
  16237. "$ref": "#/components/schemas/Location.Ref"
  16238. },
  16239. "data": {
  16240. "type": "object",
  16241. "properties": {
  16242. "sessionID": {
  16243. "type": "string",
  16244. "allOf": [
  16245. {
  16246. "pattern": "^ses"
  16247. }
  16248. ]
  16249. },
  16250. "assistantMessageID": {
  16251. "type": "string",
  16252. "allOf": [
  16253. {
  16254. "pattern": "^msg_"
  16255. }
  16256. ]
  16257. },
  16258. "ordinal": {
  16259. "type": "integer",
  16260. "allOf": [
  16261. {
  16262. "minimum": 0
  16263. }
  16264. ]
  16265. }
  16266. },
  16267. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16268. "additionalProperties": false
  16269. }
  16270. },
  16271. "required": ["id", "created", "type", "durable", "data"],
  16272. "additionalProperties": false
  16273. },
  16274. "Session.Message.ProviderState4": {
  16275. "type": "object"
  16276. },
  16277. "session.text.ended": {
  16278. "type": "object",
  16279. "properties": {
  16280. "id": {
  16281. "type": "string",
  16282. "allOf": [
  16283. {
  16284. "pattern": "^evt_"
  16285. }
  16286. ]
  16287. },
  16288. "created": {
  16289. "type": "number"
  16290. },
  16291. "metadata": {
  16292. "type": "object"
  16293. },
  16294. "type": {
  16295. "type": "string",
  16296. "enum": ["session.text.ended"]
  16297. },
  16298. "durable": {
  16299. "type": "object",
  16300. "properties": {
  16301. "aggregateID": {
  16302. "type": "string"
  16303. },
  16304. "seq": {
  16305. "type": "integer",
  16306. "allOf": [
  16307. {
  16308. "minimum": 0
  16309. }
  16310. ]
  16311. },
  16312. "version": {
  16313. "type": "number",
  16314. "enum": [1]
  16315. }
  16316. },
  16317. "required": ["aggregateID", "seq", "version"],
  16318. "additionalProperties": false
  16319. },
  16320. "location": {
  16321. "$ref": "#/components/schemas/Location.Ref"
  16322. },
  16323. "data": {
  16324. "type": "object",
  16325. "properties": {
  16326. "sessionID": {
  16327. "type": "string",
  16328. "allOf": [
  16329. {
  16330. "pattern": "^ses"
  16331. }
  16332. ]
  16333. },
  16334. "assistantMessageID": {
  16335. "type": "string",
  16336. "allOf": [
  16337. {
  16338. "pattern": "^msg_"
  16339. }
  16340. ]
  16341. },
  16342. "ordinal": {
  16343. "type": "integer",
  16344. "allOf": [
  16345. {
  16346. "minimum": 0
  16347. }
  16348. ]
  16349. },
  16350. "text": {
  16351. "type": "string"
  16352. },
  16353. "state": {
  16354. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  16355. }
  16356. },
  16357. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16358. "additionalProperties": false
  16359. }
  16360. },
  16361. "required": ["id", "created", "type", "durable", "data"],
  16362. "additionalProperties": false
  16363. },
  16364. "Session.Message.ProviderState5": {
  16365. "type": "object"
  16366. },
  16367. "session.reasoning.started": {
  16368. "type": "object",
  16369. "properties": {
  16370. "id": {
  16371. "type": "string",
  16372. "allOf": [
  16373. {
  16374. "pattern": "^evt_"
  16375. }
  16376. ]
  16377. },
  16378. "created": {
  16379. "type": "number"
  16380. },
  16381. "metadata": {
  16382. "type": "object"
  16383. },
  16384. "type": {
  16385. "type": "string",
  16386. "enum": ["session.reasoning.started"]
  16387. },
  16388. "durable": {
  16389. "type": "object",
  16390. "properties": {
  16391. "aggregateID": {
  16392. "type": "string"
  16393. },
  16394. "seq": {
  16395. "type": "integer",
  16396. "allOf": [
  16397. {
  16398. "minimum": 0
  16399. }
  16400. ]
  16401. },
  16402. "version": {
  16403. "type": "number",
  16404. "enum": [1]
  16405. }
  16406. },
  16407. "required": ["aggregateID", "seq", "version"],
  16408. "additionalProperties": false
  16409. },
  16410. "location": {
  16411. "$ref": "#/components/schemas/Location.Ref"
  16412. },
  16413. "data": {
  16414. "type": "object",
  16415. "properties": {
  16416. "sessionID": {
  16417. "type": "string",
  16418. "allOf": [
  16419. {
  16420. "pattern": "^ses"
  16421. }
  16422. ]
  16423. },
  16424. "assistantMessageID": {
  16425. "type": "string",
  16426. "allOf": [
  16427. {
  16428. "pattern": "^msg_"
  16429. }
  16430. ]
  16431. },
  16432. "ordinal": {
  16433. "type": "integer",
  16434. "allOf": [
  16435. {
  16436. "minimum": 0
  16437. }
  16438. ]
  16439. },
  16440. "state": {
  16441. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  16442. }
  16443. },
  16444. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16445. "additionalProperties": false
  16446. }
  16447. },
  16448. "required": ["id", "created", "type", "durable", "data"],
  16449. "additionalProperties": false
  16450. },
  16451. "Session.Message.ProviderState6": {
  16452. "type": "object"
  16453. },
  16454. "session.reasoning.ended": {
  16455. "type": "object",
  16456. "properties": {
  16457. "id": {
  16458. "type": "string",
  16459. "allOf": [
  16460. {
  16461. "pattern": "^evt_"
  16462. }
  16463. ]
  16464. },
  16465. "created": {
  16466. "type": "number"
  16467. },
  16468. "metadata": {
  16469. "type": "object"
  16470. },
  16471. "type": {
  16472. "type": "string",
  16473. "enum": ["session.reasoning.ended"]
  16474. },
  16475. "durable": {
  16476. "type": "object",
  16477. "properties": {
  16478. "aggregateID": {
  16479. "type": "string"
  16480. },
  16481. "seq": {
  16482. "type": "integer",
  16483. "allOf": [
  16484. {
  16485. "minimum": 0
  16486. }
  16487. ]
  16488. },
  16489. "version": {
  16490. "type": "number",
  16491. "enum": [1]
  16492. }
  16493. },
  16494. "required": ["aggregateID", "seq", "version"],
  16495. "additionalProperties": false
  16496. },
  16497. "location": {
  16498. "$ref": "#/components/schemas/Location.Ref"
  16499. },
  16500. "data": {
  16501. "type": "object",
  16502. "properties": {
  16503. "sessionID": {
  16504. "type": "string",
  16505. "allOf": [
  16506. {
  16507. "pattern": "^ses"
  16508. }
  16509. ]
  16510. },
  16511. "assistantMessageID": {
  16512. "type": "string",
  16513. "allOf": [
  16514. {
  16515. "pattern": "^msg_"
  16516. }
  16517. ]
  16518. },
  16519. "ordinal": {
  16520. "type": "integer",
  16521. "allOf": [
  16522. {
  16523. "minimum": 0
  16524. }
  16525. ]
  16526. },
  16527. "text": {
  16528. "type": "string"
  16529. },
  16530. "state": {
  16531. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  16532. }
  16533. },
  16534. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16535. "additionalProperties": false
  16536. }
  16537. },
  16538. "required": ["id", "created", "type", "durable", "data"],
  16539. "additionalProperties": false
  16540. },
  16541. "session.tool.input.started": {
  16542. "type": "object",
  16543. "properties": {
  16544. "id": {
  16545. "type": "string",
  16546. "allOf": [
  16547. {
  16548. "pattern": "^evt_"
  16549. }
  16550. ]
  16551. },
  16552. "created": {
  16553. "type": "number"
  16554. },
  16555. "metadata": {
  16556. "type": "object"
  16557. },
  16558. "type": {
  16559. "type": "string",
  16560. "enum": ["session.tool.input.started"]
  16561. },
  16562. "durable": {
  16563. "type": "object",
  16564. "properties": {
  16565. "aggregateID": {
  16566. "type": "string"
  16567. },
  16568. "seq": {
  16569. "type": "integer",
  16570. "allOf": [
  16571. {
  16572. "minimum": 0
  16573. }
  16574. ]
  16575. },
  16576. "version": {
  16577. "type": "number",
  16578. "enum": [1]
  16579. }
  16580. },
  16581. "required": ["aggregateID", "seq", "version"],
  16582. "additionalProperties": false
  16583. },
  16584. "location": {
  16585. "$ref": "#/components/schemas/Location.Ref"
  16586. },
  16587. "data": {
  16588. "type": "object",
  16589. "properties": {
  16590. "sessionID": {
  16591. "type": "string",
  16592. "allOf": [
  16593. {
  16594. "pattern": "^ses"
  16595. }
  16596. ]
  16597. },
  16598. "assistantMessageID": {
  16599. "type": "string",
  16600. "allOf": [
  16601. {
  16602. "pattern": "^msg_"
  16603. }
  16604. ]
  16605. },
  16606. "id": {
  16607. "type": "string"
  16608. },
  16609. "name": {
  16610. "type": "string"
  16611. }
  16612. },
  16613. "required": ["sessionID", "assistantMessageID", "id", "name"],
  16614. "additionalProperties": false
  16615. }
  16616. },
  16617. "required": ["id", "created", "type", "durable", "data"],
  16618. "additionalProperties": false
  16619. },
  16620. "session.tool.input.ended": {
  16621. "type": "object",
  16622. "properties": {
  16623. "id": {
  16624. "type": "string",
  16625. "allOf": [
  16626. {
  16627. "pattern": "^evt_"
  16628. }
  16629. ]
  16630. },
  16631. "created": {
  16632. "type": "number"
  16633. },
  16634. "metadata": {
  16635. "type": "object"
  16636. },
  16637. "type": {
  16638. "type": "string",
  16639. "enum": ["session.tool.input.ended"]
  16640. },
  16641. "durable": {
  16642. "type": "object",
  16643. "properties": {
  16644. "aggregateID": {
  16645. "type": "string"
  16646. },
  16647. "seq": {
  16648. "type": "integer",
  16649. "allOf": [
  16650. {
  16651. "minimum": 0
  16652. }
  16653. ]
  16654. },
  16655. "version": {
  16656. "type": "number",
  16657. "enum": [1]
  16658. }
  16659. },
  16660. "required": ["aggregateID", "seq", "version"],
  16661. "additionalProperties": false
  16662. },
  16663. "location": {
  16664. "$ref": "#/components/schemas/Location.Ref"
  16665. },
  16666. "data": {
  16667. "type": "object",
  16668. "properties": {
  16669. "sessionID": {
  16670. "type": "string",
  16671. "allOf": [
  16672. {
  16673. "pattern": "^ses"
  16674. }
  16675. ]
  16676. },
  16677. "assistantMessageID": {
  16678. "type": "string",
  16679. "allOf": [
  16680. {
  16681. "pattern": "^msg_"
  16682. }
  16683. ]
  16684. },
  16685. "id": {
  16686. "type": "string"
  16687. },
  16688. "text": {
  16689. "type": "string"
  16690. }
  16691. },
  16692. "required": ["sessionID", "assistantMessageID", "id", "text"],
  16693. "additionalProperties": false
  16694. }
  16695. },
  16696. "required": ["id", "created", "type", "durable", "data"],
  16697. "additionalProperties": false
  16698. },
  16699. "Session.Message.ProviderState7": {
  16700. "type": "object"
  16701. },
  16702. "session.tool.called": {
  16703. "type": "object",
  16704. "properties": {
  16705. "id": {
  16706. "type": "string",
  16707. "allOf": [
  16708. {
  16709. "pattern": "^evt_"
  16710. }
  16711. ]
  16712. },
  16713. "created": {
  16714. "type": "number"
  16715. },
  16716. "metadata": {
  16717. "type": "object"
  16718. },
  16719. "type": {
  16720. "type": "string",
  16721. "enum": ["session.tool.called"]
  16722. },
  16723. "durable": {
  16724. "type": "object",
  16725. "properties": {
  16726. "aggregateID": {
  16727. "type": "string"
  16728. },
  16729. "seq": {
  16730. "type": "integer",
  16731. "allOf": [
  16732. {
  16733. "minimum": 0
  16734. }
  16735. ]
  16736. },
  16737. "version": {
  16738. "type": "number",
  16739. "enum": [1]
  16740. }
  16741. },
  16742. "required": ["aggregateID", "seq", "version"],
  16743. "additionalProperties": false
  16744. },
  16745. "location": {
  16746. "$ref": "#/components/schemas/Location.Ref"
  16747. },
  16748. "data": {
  16749. "type": "object",
  16750. "properties": {
  16751. "sessionID": {
  16752. "type": "string",
  16753. "allOf": [
  16754. {
  16755. "pattern": "^ses"
  16756. }
  16757. ]
  16758. },
  16759. "assistantMessageID": {
  16760. "type": "string",
  16761. "allOf": [
  16762. {
  16763. "pattern": "^msg_"
  16764. }
  16765. ]
  16766. },
  16767. "id": {
  16768. "type": "string"
  16769. },
  16770. "input": {
  16771. "type": "object"
  16772. },
  16773. "executed": {
  16774. "type": "boolean"
  16775. },
  16776. "state": {
  16777. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  16778. }
  16779. },
  16780. "required": ["sessionID", "assistantMessageID", "id", "input", "executed"],
  16781. "additionalProperties": false
  16782. }
  16783. },
  16784. "required": ["id", "created", "type", "durable", "data"],
  16785. "additionalProperties": false
  16786. },
  16787. "Tool.FileContent1": {
  16788. "type": "object",
  16789. "properties": {
  16790. "type": {
  16791. "type": "string",
  16792. "enum": ["file"]
  16793. },
  16794. "uri": {
  16795. "type": "string"
  16796. },
  16797. "mime": {
  16798. "type": "string"
  16799. },
  16800. "name": {
  16801. "anyOf": [
  16802. {
  16803. "type": "string"
  16804. },
  16805. {
  16806. "type": "null"
  16807. }
  16808. ]
  16809. }
  16810. },
  16811. "required": ["type", "uri", "mime"],
  16812. "additionalProperties": false
  16813. },
  16814. "Tool.Content1": {
  16815. "anyOf": [
  16816. {
  16817. "$ref": "#/components/schemas/Tool.TextContent"
  16818. },
  16819. {
  16820. "$ref": "#/components/schemas/Tool.FileContent1"
  16821. }
  16822. ]
  16823. },
  16824. "Session.Message.ProviderState8": {
  16825. "type": "object"
  16826. },
  16827. "session.tool.success": {
  16828. "type": "object",
  16829. "properties": {
  16830. "id": {
  16831. "type": "string",
  16832. "allOf": [
  16833. {
  16834. "pattern": "^evt_"
  16835. }
  16836. ]
  16837. },
  16838. "created": {
  16839. "type": "number"
  16840. },
  16841. "metadata": {
  16842. "type": "object"
  16843. },
  16844. "type": {
  16845. "type": "string",
  16846. "enum": ["session.tool.success"]
  16847. },
  16848. "durable": {
  16849. "type": "object",
  16850. "properties": {
  16851. "aggregateID": {
  16852. "type": "string"
  16853. },
  16854. "seq": {
  16855. "type": "integer",
  16856. "allOf": [
  16857. {
  16858. "minimum": 0
  16859. }
  16860. ]
  16861. },
  16862. "version": {
  16863. "type": "number",
  16864. "enum": [2]
  16865. }
  16866. },
  16867. "required": ["aggregateID", "seq", "version"],
  16868. "additionalProperties": false
  16869. },
  16870. "location": {
  16871. "$ref": "#/components/schemas/Location.Ref"
  16872. },
  16873. "data": {
  16874. "type": "object",
  16875. "properties": {
  16876. "sessionID": {
  16877. "type": "string",
  16878. "allOf": [
  16879. {
  16880. "pattern": "^ses"
  16881. }
  16882. ]
  16883. },
  16884. "assistantMessageID": {
  16885. "type": "string",
  16886. "allOf": [
  16887. {
  16888. "pattern": "^msg_"
  16889. }
  16890. ]
  16891. },
  16892. "id": {
  16893. "type": "string"
  16894. },
  16895. "content": {
  16896. "type": "array",
  16897. "prefixItems": [
  16898. {
  16899. "$ref": "#/components/schemas/Tool.Content1"
  16900. }
  16901. ],
  16902. "minItems": 1,
  16903. "items": {
  16904. "$ref": "#/components/schemas/Tool.Content1"
  16905. }
  16906. },
  16907. "metadata": {
  16908. "type": "object"
  16909. },
  16910. "executed": {
  16911. "type": "boolean"
  16912. },
  16913. "resultState": {
  16914. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  16915. }
  16916. },
  16917. "required": ["sessionID", "assistantMessageID", "id", "content", "executed"],
  16918. "additionalProperties": false
  16919. }
  16920. },
  16921. "required": ["id", "created", "type", "durable", "data"],
  16922. "additionalProperties": false
  16923. },
  16924. "Session.Message.ProviderState9": {
  16925. "type": "object"
  16926. },
  16927. "session.tool.failed": {
  16928. "type": "object",
  16929. "properties": {
  16930. "id": {
  16931. "type": "string",
  16932. "allOf": [
  16933. {
  16934. "pattern": "^evt_"
  16935. }
  16936. ]
  16937. },
  16938. "created": {
  16939. "type": "number"
  16940. },
  16941. "metadata": {
  16942. "type": "object"
  16943. },
  16944. "type": {
  16945. "type": "string",
  16946. "enum": ["session.tool.failed"]
  16947. },
  16948. "durable": {
  16949. "type": "object",
  16950. "properties": {
  16951. "aggregateID": {
  16952. "type": "string"
  16953. },
  16954. "seq": {
  16955. "type": "integer",
  16956. "allOf": [
  16957. {
  16958. "minimum": 0
  16959. }
  16960. ]
  16961. },
  16962. "version": {
  16963. "type": "number",
  16964. "enum": [2]
  16965. }
  16966. },
  16967. "required": ["aggregateID", "seq", "version"],
  16968. "additionalProperties": false
  16969. },
  16970. "location": {
  16971. "$ref": "#/components/schemas/Location.Ref"
  16972. },
  16973. "data": {
  16974. "type": "object",
  16975. "properties": {
  16976. "sessionID": {
  16977. "type": "string",
  16978. "allOf": [
  16979. {
  16980. "pattern": "^ses"
  16981. }
  16982. ]
  16983. },
  16984. "assistantMessageID": {
  16985. "type": "string",
  16986. "allOf": [
  16987. {
  16988. "pattern": "^msg_"
  16989. }
  16990. ]
  16991. },
  16992. "id": {
  16993. "type": "string"
  16994. },
  16995. "error": {
  16996. "$ref": "#/components/schemas/Session.StructuredError"
  16997. },
  16998. "content": {
  16999. "type": "array",
  17000. "prefixItems": [
  17001. {
  17002. "$ref": "#/components/schemas/Tool.Content1"
  17003. }
  17004. ],
  17005. "minItems": 1,
  17006. "items": {
  17007. "$ref": "#/components/schemas/Tool.Content1"
  17008. }
  17009. },
  17010. "metadata": {
  17011. "type": "object"
  17012. },
  17013. "executed": {
  17014. "type": "boolean"
  17015. },
  17016. "resultState": {
  17017. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  17018. }
  17019. },
  17020. "required": ["sessionID", "assistantMessageID", "id", "error", "executed"],
  17021. "additionalProperties": false
  17022. }
  17023. },
  17024. "required": ["id", "created", "type", "durable", "data"],
  17025. "additionalProperties": false
  17026. },
  17027. "session.retry.scheduled": {
  17028. "type": "object",
  17029. "properties": {
  17030. "id": {
  17031. "type": "string",
  17032. "allOf": [
  17033. {
  17034. "pattern": "^evt_"
  17035. }
  17036. ]
  17037. },
  17038. "created": {
  17039. "type": "number"
  17040. },
  17041. "metadata": {
  17042. "type": "object"
  17043. },
  17044. "type": {
  17045. "type": "string",
  17046. "enum": ["session.retry.scheduled"]
  17047. },
  17048. "durable": {
  17049. "type": "object",
  17050. "properties": {
  17051. "aggregateID": {
  17052. "type": "string"
  17053. },
  17054. "seq": {
  17055. "type": "integer",
  17056. "allOf": [
  17057. {
  17058. "minimum": 0
  17059. }
  17060. ]
  17061. },
  17062. "version": {
  17063. "type": "number",
  17064. "enum": [1]
  17065. }
  17066. },
  17067. "required": ["aggregateID", "seq", "version"],
  17068. "additionalProperties": false
  17069. },
  17070. "location": {
  17071. "$ref": "#/components/schemas/Location.Ref"
  17072. },
  17073. "data": {
  17074. "type": "object",
  17075. "properties": {
  17076. "sessionID": {
  17077. "type": "string",
  17078. "allOf": [
  17079. {
  17080. "pattern": "^ses"
  17081. }
  17082. ]
  17083. },
  17084. "assistantMessageID": {
  17085. "type": "string",
  17086. "allOf": [
  17087. {
  17088. "pattern": "^msg_"
  17089. }
  17090. ]
  17091. },
  17092. "attempt": {
  17093. "type": "integer",
  17094. "allOf": [
  17095. {
  17096. "exclusiveMinimum": 0
  17097. }
  17098. ]
  17099. },
  17100. "at": {
  17101. "type": "integer",
  17102. "allOf": [
  17103. {
  17104. "minimum": 0
  17105. }
  17106. ]
  17107. },
  17108. "error": {
  17109. "$ref": "#/components/schemas/Session.StructuredError"
  17110. }
  17111. },
  17112. "required": ["sessionID", "assistantMessageID", "attempt", "at", "error"],
  17113. "additionalProperties": false
  17114. }
  17115. },
  17116. "required": ["id", "created", "type", "durable", "data"],
  17117. "additionalProperties": false
  17118. },
  17119. "session.compaction.started": {
  17120. "type": "object",
  17121. "properties": {
  17122. "id": {
  17123. "type": "string",
  17124. "allOf": [
  17125. {
  17126. "pattern": "^evt_"
  17127. }
  17128. ]
  17129. },
  17130. "created": {
  17131. "type": "number"
  17132. },
  17133. "metadata": {
  17134. "type": "object"
  17135. },
  17136. "type": {
  17137. "type": "string",
  17138. "enum": ["session.compaction.started"]
  17139. },
  17140. "durable": {
  17141. "type": "object",
  17142. "properties": {
  17143. "aggregateID": {
  17144. "type": "string"
  17145. },
  17146. "seq": {
  17147. "type": "integer",
  17148. "allOf": [
  17149. {
  17150. "minimum": 0
  17151. }
  17152. ]
  17153. },
  17154. "version": {
  17155. "type": "number",
  17156. "enum": [1]
  17157. }
  17158. },
  17159. "required": ["aggregateID", "seq", "version"],
  17160. "additionalProperties": false
  17161. },
  17162. "location": {
  17163. "$ref": "#/components/schemas/Location.Ref"
  17164. },
  17165. "data": {
  17166. "type": "object",
  17167. "properties": {
  17168. "sessionID": {
  17169. "type": "string",
  17170. "allOf": [
  17171. {
  17172. "pattern": "^ses"
  17173. }
  17174. ]
  17175. },
  17176. "reason": {
  17177. "type": "string",
  17178. "enum": ["auto", "manual"]
  17179. },
  17180. "recent": {
  17181. "type": "string"
  17182. },
  17183. "inputID": {
  17184. "type": "string",
  17185. "allOf": [
  17186. {
  17187. "pattern": "^msg_"
  17188. }
  17189. ]
  17190. }
  17191. },
  17192. "required": ["sessionID", "reason", "recent"],
  17193. "additionalProperties": false
  17194. }
  17195. },
  17196. "required": ["id", "created", "type", "durable", "data"],
  17197. "additionalProperties": false
  17198. },
  17199. "session.compaction.ended": {
  17200. "type": "object",
  17201. "properties": {
  17202. "id": {
  17203. "type": "string",
  17204. "allOf": [
  17205. {
  17206. "pattern": "^evt_"
  17207. }
  17208. ]
  17209. },
  17210. "created": {
  17211. "type": "number"
  17212. },
  17213. "metadata": {
  17214. "type": "object"
  17215. },
  17216. "type": {
  17217. "type": "string",
  17218. "enum": ["session.compaction.ended"]
  17219. },
  17220. "durable": {
  17221. "type": "object",
  17222. "properties": {
  17223. "aggregateID": {
  17224. "type": "string"
  17225. },
  17226. "seq": {
  17227. "type": "integer",
  17228. "allOf": [
  17229. {
  17230. "minimum": 0
  17231. }
  17232. ]
  17233. },
  17234. "version": {
  17235. "type": "number",
  17236. "enum": [1]
  17237. }
  17238. },
  17239. "required": ["aggregateID", "seq", "version"],
  17240. "additionalProperties": false
  17241. },
  17242. "location": {
  17243. "$ref": "#/components/schemas/Location.Ref"
  17244. },
  17245. "data": {
  17246. "type": "object",
  17247. "properties": {
  17248. "sessionID": {
  17249. "type": "string",
  17250. "allOf": [
  17251. {
  17252. "pattern": "^ses"
  17253. }
  17254. ]
  17255. },
  17256. "reason": {
  17257. "type": "string",
  17258. "enum": ["auto", "manual"]
  17259. },
  17260. "text": {
  17261. "type": "string"
  17262. },
  17263. "recent": {
  17264. "type": "string"
  17265. }
  17266. },
  17267. "required": ["sessionID", "reason", "text", "recent"],
  17268. "additionalProperties": false
  17269. }
  17270. },
  17271. "required": ["id", "created", "type", "durable", "data"],
  17272. "additionalProperties": false
  17273. },
  17274. "session.compaction.failed": {
  17275. "type": "object",
  17276. "properties": {
  17277. "id": {
  17278. "type": "string",
  17279. "allOf": [
  17280. {
  17281. "pattern": "^evt_"
  17282. }
  17283. ]
  17284. },
  17285. "created": {
  17286. "type": "number"
  17287. },
  17288. "metadata": {
  17289. "type": "object"
  17290. },
  17291. "type": {
  17292. "type": "string",
  17293. "enum": ["session.compaction.failed"]
  17294. },
  17295. "durable": {
  17296. "type": "object",
  17297. "properties": {
  17298. "aggregateID": {
  17299. "type": "string"
  17300. },
  17301. "seq": {
  17302. "type": "integer",
  17303. "allOf": [
  17304. {
  17305. "minimum": 0
  17306. }
  17307. ]
  17308. },
  17309. "version": {
  17310. "type": "number",
  17311. "enum": [1]
  17312. }
  17313. },
  17314. "required": ["aggregateID", "seq", "version"],
  17315. "additionalProperties": false
  17316. },
  17317. "location": {
  17318. "$ref": "#/components/schemas/Location.Ref"
  17319. },
  17320. "data": {
  17321. "type": "object",
  17322. "properties": {
  17323. "sessionID": {
  17324. "type": "string",
  17325. "allOf": [
  17326. {
  17327. "pattern": "^ses"
  17328. }
  17329. ]
  17330. },
  17331. "reason": {
  17332. "type": "string",
  17333. "enum": ["auto", "manual"]
  17334. },
  17335. "error": {
  17336. "$ref": "#/components/schemas/Session.StructuredError"
  17337. },
  17338. "inputID": {
  17339. "type": "string",
  17340. "allOf": [
  17341. {
  17342. "pattern": "^msg_"
  17343. }
  17344. ]
  17345. }
  17346. },
  17347. "required": ["sessionID", "reason", "error"],
  17348. "additionalProperties": false
  17349. }
  17350. },
  17351. "required": ["id", "created", "type", "durable", "data"],
  17352. "additionalProperties": false
  17353. },
  17354. "session.revert.staged": {
  17355. "type": "object",
  17356. "properties": {
  17357. "id": {
  17358. "type": "string",
  17359. "allOf": [
  17360. {
  17361. "pattern": "^evt_"
  17362. }
  17363. ]
  17364. },
  17365. "created": {
  17366. "type": "number"
  17367. },
  17368. "metadata": {
  17369. "type": "object"
  17370. },
  17371. "type": {
  17372. "type": "string",
  17373. "enum": ["session.revert.staged"]
  17374. },
  17375. "durable": {
  17376. "type": "object",
  17377. "properties": {
  17378. "aggregateID": {
  17379. "type": "string"
  17380. },
  17381. "seq": {
  17382. "type": "integer",
  17383. "allOf": [
  17384. {
  17385. "minimum": 0
  17386. }
  17387. ]
  17388. },
  17389. "version": {
  17390. "type": "number",
  17391. "enum": [1]
  17392. }
  17393. },
  17394. "required": ["aggregateID", "seq", "version"],
  17395. "additionalProperties": false
  17396. },
  17397. "location": {
  17398. "$ref": "#/components/schemas/Location.Ref"
  17399. },
  17400. "data": {
  17401. "type": "object",
  17402. "properties": {
  17403. "sessionID": {
  17404. "type": "string",
  17405. "allOf": [
  17406. {
  17407. "pattern": "^ses"
  17408. }
  17409. ]
  17410. },
  17411. "revert": {
  17412. "$ref": "#/components/schemas/Session.Revert"
  17413. }
  17414. },
  17415. "required": ["sessionID", "revert"],
  17416. "additionalProperties": false
  17417. }
  17418. },
  17419. "required": ["id", "created", "type", "durable", "data"],
  17420. "additionalProperties": false
  17421. },
  17422. "session.revert.cleared": {
  17423. "type": "object",
  17424. "properties": {
  17425. "id": {
  17426. "type": "string",
  17427. "allOf": [
  17428. {
  17429. "pattern": "^evt_"
  17430. }
  17431. ]
  17432. },
  17433. "created": {
  17434. "type": "number"
  17435. },
  17436. "metadata": {
  17437. "type": "object"
  17438. },
  17439. "type": {
  17440. "type": "string",
  17441. "enum": ["session.revert.cleared"]
  17442. },
  17443. "durable": {
  17444. "type": "object",
  17445. "properties": {
  17446. "aggregateID": {
  17447. "type": "string"
  17448. },
  17449. "seq": {
  17450. "type": "integer",
  17451. "allOf": [
  17452. {
  17453. "minimum": 0
  17454. }
  17455. ]
  17456. },
  17457. "version": {
  17458. "type": "number",
  17459. "enum": [1]
  17460. }
  17461. },
  17462. "required": ["aggregateID", "seq", "version"],
  17463. "additionalProperties": false
  17464. },
  17465. "location": {
  17466. "$ref": "#/components/schemas/Location.Ref"
  17467. },
  17468. "data": {
  17469. "type": "object",
  17470. "properties": {
  17471. "sessionID": {
  17472. "type": "string",
  17473. "allOf": [
  17474. {
  17475. "pattern": "^ses"
  17476. }
  17477. ]
  17478. }
  17479. },
  17480. "required": ["sessionID"],
  17481. "additionalProperties": false
  17482. }
  17483. },
  17484. "required": ["id", "created", "type", "durable", "data"],
  17485. "additionalProperties": false
  17486. },
  17487. "session.revert.committed": {
  17488. "type": "object",
  17489. "properties": {
  17490. "id": {
  17491. "type": "string",
  17492. "allOf": [
  17493. {
  17494. "pattern": "^evt_"
  17495. }
  17496. ]
  17497. },
  17498. "created": {
  17499. "type": "number"
  17500. },
  17501. "metadata": {
  17502. "type": "object"
  17503. },
  17504. "type": {
  17505. "type": "string",
  17506. "enum": ["session.revert.committed"]
  17507. },
  17508. "durable": {
  17509. "type": "object",
  17510. "properties": {
  17511. "aggregateID": {
  17512. "type": "string"
  17513. },
  17514. "seq": {
  17515. "type": "integer",
  17516. "allOf": [
  17517. {
  17518. "minimum": 0
  17519. }
  17520. ]
  17521. },
  17522. "version": {
  17523. "type": "number",
  17524. "enum": [1]
  17525. }
  17526. },
  17527. "required": ["aggregateID", "seq", "version"],
  17528. "additionalProperties": false
  17529. },
  17530. "location": {
  17531. "$ref": "#/components/schemas/Location.Ref"
  17532. },
  17533. "data": {
  17534. "type": "object",
  17535. "properties": {
  17536. "sessionID": {
  17537. "type": "string",
  17538. "allOf": [
  17539. {
  17540. "pattern": "^ses"
  17541. }
  17542. ]
  17543. },
  17544. "to": {
  17545. "type": "string",
  17546. "allOf": [
  17547. {
  17548. "pattern": "^msg_"
  17549. }
  17550. ]
  17551. }
  17552. },
  17553. "required": ["sessionID", "to"],
  17554. "additionalProperties": false
  17555. }
  17556. },
  17557. "required": ["id", "created", "type", "durable", "data"],
  17558. "additionalProperties": false
  17559. },
  17560. "session.usage.recorded": {
  17561. "type": "object",
  17562. "properties": {
  17563. "id": {
  17564. "type": "string",
  17565. "allOf": [
  17566. {
  17567. "pattern": "^evt_"
  17568. }
  17569. ]
  17570. },
  17571. "created": {
  17572. "type": "number"
  17573. },
  17574. "metadata": {
  17575. "type": "object"
  17576. },
  17577. "type": {
  17578. "type": "string",
  17579. "enum": ["session.usage.recorded"]
  17580. },
  17581. "durable": {
  17582. "type": "object",
  17583. "properties": {
  17584. "aggregateID": {
  17585. "type": "string"
  17586. },
  17587. "seq": {
  17588. "type": "integer",
  17589. "allOf": [
  17590. {
  17591. "minimum": 0
  17592. }
  17593. ]
  17594. },
  17595. "version": {
  17596. "type": "number",
  17597. "enum": [1]
  17598. }
  17599. },
  17600. "required": ["aggregateID", "seq", "version"],
  17601. "additionalProperties": false
  17602. },
  17603. "location": {
  17604. "$ref": "#/components/schemas/Location.Ref"
  17605. },
  17606. "data": {
  17607. "type": "object",
  17608. "properties": {
  17609. "sessionID": {
  17610. "type": "string",
  17611. "allOf": [
  17612. {
  17613. "pattern": "^ses"
  17614. }
  17615. ]
  17616. },
  17617. "source": {
  17618. "type": "string",
  17619. "enum": ["title", "compaction"]
  17620. },
  17621. "cost": {
  17622. "$ref": "#/components/schemas/Money.USD"
  17623. },
  17624. "tokens": {
  17625. "$ref": "#/components/schemas/TokenUsage.Info"
  17626. }
  17627. },
  17628. "required": ["sessionID", "source", "cost", "tokens"],
  17629. "additionalProperties": false
  17630. }
  17631. },
  17632. "required": ["id", "created", "type", "durable", "data"],
  17633. "additionalProperties": false
  17634. },
  17635. "Session.Event.Durable": {
  17636. "oneOf": [
  17637. {
  17638. "$ref": "#/components/schemas/session.created"
  17639. },
  17640. {
  17641. "$ref": "#/components/schemas/session.agent.selected"
  17642. },
  17643. {
  17644. "$ref": "#/components/schemas/session.model.selected"
  17645. },
  17646. {
  17647. "$ref": "#/components/schemas/session.moved"
  17648. },
  17649. {
  17650. "$ref": "#/components/schemas/session.renamed"
  17651. },
  17652. {
  17653. "$ref": "#/components/schemas/session.deleted"
  17654. },
  17655. {
  17656. "$ref": "#/components/schemas/session.forked"
  17657. },
  17658. {
  17659. "$ref": "#/components/schemas/session.inbox.delivered"
  17660. },
  17661. {
  17662. "$ref": "#/components/schemas/session.inbox.enqueued"
  17663. },
  17664. {
  17665. "$ref": "#/components/schemas/session.inbox.cancelled"
  17666. },
  17667. {
  17668. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  17669. },
  17670. {
  17671. "$ref": "#/components/schemas/session.execution.started"
  17672. },
  17673. {
  17674. "$ref": "#/components/schemas/session.execution.succeeded"
  17675. },
  17676. {
  17677. "$ref": "#/components/schemas/session.execution.failed"
  17678. },
  17679. {
  17680. "$ref": "#/components/schemas/session.execution.interrupted"
  17681. },
  17682. {
  17683. "$ref": "#/components/schemas/session.instructions.updated"
  17684. },
  17685. {
  17686. "$ref": "#/components/schemas/session.synthetic"
  17687. },
  17688. {
  17689. "$ref": "#/components/schemas/session.skill.activated"
  17690. },
  17691. {
  17692. "$ref": "#/components/schemas/session.shell.started"
  17693. },
  17694. {
  17695. "$ref": "#/components/schemas/session.shell.ended"
  17696. },
  17697. {
  17698. "$ref": "#/components/schemas/session.step.started"
  17699. },
  17700. {
  17701. "$ref": "#/components/schemas/session.step.ended"
  17702. },
  17703. {
  17704. "$ref": "#/components/schemas/session.step.failed"
  17705. },
  17706. {
  17707. "$ref": "#/components/schemas/session.text.started"
  17708. },
  17709. {
  17710. "$ref": "#/components/schemas/session.text.ended"
  17711. },
  17712. {
  17713. "$ref": "#/components/schemas/session.reasoning.started"
  17714. },
  17715. {
  17716. "$ref": "#/components/schemas/session.reasoning.ended"
  17717. },
  17718. {
  17719. "$ref": "#/components/schemas/session.tool.input.started"
  17720. },
  17721. {
  17722. "$ref": "#/components/schemas/session.tool.input.ended"
  17723. },
  17724. {
  17725. "$ref": "#/components/schemas/session.tool.called"
  17726. },
  17727. {
  17728. "$ref": "#/components/schemas/session.tool.success"
  17729. },
  17730. {
  17731. "$ref": "#/components/schemas/session.tool.failed"
  17732. },
  17733. {
  17734. "$ref": "#/components/schemas/session.retry.scheduled"
  17735. },
  17736. {
  17737. "$ref": "#/components/schemas/session.compaction.started"
  17738. },
  17739. {
  17740. "$ref": "#/components/schemas/session.compaction.ended"
  17741. },
  17742. {
  17743. "$ref": "#/components/schemas/session.compaction.failed"
  17744. },
  17745. {
  17746. "$ref": "#/components/schemas/session.revert.staged"
  17747. },
  17748. {
  17749. "$ref": "#/components/schemas/session.revert.cleared"
  17750. },
  17751. {
  17752. "$ref": "#/components/schemas/session.revert.committed"
  17753. },
  17754. {
  17755. "$ref": "#/components/schemas/session.usage.recorded"
  17756. }
  17757. ]
  17758. },
  17759. "EventLog.Synced": {
  17760. "type": "object",
  17761. "properties": {
  17762. "type": {
  17763. "type": "string",
  17764. "enum": ["log.synced"]
  17765. },
  17766. "aggregateID": {
  17767. "type": "string"
  17768. },
  17769. "seq": {
  17770. "type": "integer",
  17771. "allOf": [
  17772. {
  17773. "minimum": 0
  17774. }
  17775. ]
  17776. }
  17777. },
  17778. "required": ["type", "aggregateID"],
  17779. "additionalProperties": false,
  17780. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  17781. },
  17782. "SessionLogItem": {
  17783. "anyOf": [
  17784. {
  17785. "$ref": "#/components/schemas/Session.Event.Durable"
  17786. },
  17787. {
  17788. "$ref": "#/components/schemas/EventLog.Synced"
  17789. }
  17790. ]
  17791. },
  17792. "SessionLogItemJsonString": {
  17793. "type": "string",
  17794. "contentSchema": {
  17795. "$ref": "#/components/schemas/SessionLogItem"
  17796. },
  17797. "contentMediaType": "application/json"
  17798. },
  17799. "SessionMessagesResponse": {
  17800. "type": "object",
  17801. "properties": {
  17802. "data": {
  17803. "type": "array",
  17804. "items": {
  17805. "$ref": "#/components/schemas/Session.Message.Info"
  17806. }
  17807. },
  17808. "cursor": {
  17809. "type": "object",
  17810. "properties": {
  17811. "previous": {
  17812. "anyOf": [
  17813. {
  17814. "type": "string"
  17815. },
  17816. {
  17817. "type": "null"
  17818. }
  17819. ]
  17820. },
  17821. "next": {
  17822. "anyOf": [
  17823. {
  17824. "type": "string"
  17825. },
  17826. {
  17827. "type": "null"
  17828. }
  17829. ]
  17830. }
  17831. },
  17832. "additionalProperties": false
  17833. }
  17834. },
  17835. "required": ["data", "cursor"],
  17836. "additionalProperties": false
  17837. },
  17838. "Model.ReasoningField": {
  17839. "anyOf": [
  17840. {
  17841. "type": "string",
  17842. "enum": ["reasoning", "reasoning_content", "reasoning_text"]
  17843. },
  17844. {
  17845. "type": "string"
  17846. }
  17847. ]
  17848. },
  17849. "Model.MaxTokensField": {
  17850. "type": "string",
  17851. "enum": ["max_completion_tokens", "max_tokens"]
  17852. },
  17853. "Model.Compatibility": {
  17854. "type": "object",
  17855. "properties": {
  17856. "reasoningField": {
  17857. "$ref": "#/components/schemas/Model.ReasoningField"
  17858. },
  17859. "maxTokensField": {
  17860. "$ref": "#/components/schemas/Model.MaxTokensField"
  17861. },
  17862. "requireFinishReason": {
  17863. "type": "boolean"
  17864. }
  17865. },
  17866. "additionalProperties": false
  17867. },
  17868. "Model.Capabilities": {
  17869. "type": "object",
  17870. "properties": {
  17871. "tools": {
  17872. "type": "boolean"
  17873. },
  17874. "input": {
  17875. "type": "array",
  17876. "items": {
  17877. "type": "string"
  17878. }
  17879. },
  17880. "output": {
  17881. "type": "array",
  17882. "items": {
  17883. "type": "string"
  17884. }
  17885. }
  17886. },
  17887. "required": ["tools", "input", "output"],
  17888. "additionalProperties": false
  17889. },
  17890. "Model.Variant": {
  17891. "type": "object",
  17892. "properties": {
  17893. "id": {
  17894. "type": "string"
  17895. },
  17896. "settings": {
  17897. "type": "object"
  17898. },
  17899. "headers": {
  17900. "type": "object",
  17901. "additionalProperties": {
  17902. "type": "string"
  17903. }
  17904. },
  17905. "body": {
  17906. "type": "object"
  17907. }
  17908. },
  17909. "required": ["id"],
  17910. "additionalProperties": false
  17911. },
  17912. "Money.USDPerMillionTokens": {
  17913. "type": "number"
  17914. },
  17915. "Model.Cost": {
  17916. "type": "object",
  17917. "properties": {
  17918. "tier": {
  17919. "type": "object",
  17920. "properties": {
  17921. "type": {
  17922. "type": "string",
  17923. "enum": ["context"]
  17924. },
  17925. "size": {
  17926. "type": "integer"
  17927. }
  17928. },
  17929. "required": ["type", "size"],
  17930. "additionalProperties": false
  17931. },
  17932. "input": {
  17933. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17934. },
  17935. "output": {
  17936. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17937. },
  17938. "cache": {
  17939. "type": "object",
  17940. "properties": {
  17941. "read": {
  17942. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17943. },
  17944. "write": {
  17945. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17946. }
  17947. },
  17948. "required": ["read", "write"],
  17949. "additionalProperties": false
  17950. }
  17951. },
  17952. "required": ["input", "output", "cache"],
  17953. "additionalProperties": false
  17954. },
  17955. "Model.Info": {
  17956. "type": "object",
  17957. "properties": {
  17958. "id": {
  17959. "type": "string"
  17960. },
  17961. "modelID": {
  17962. "type": "string"
  17963. },
  17964. "providerID": {
  17965. "type": "string"
  17966. },
  17967. "family": {
  17968. "type": "string"
  17969. },
  17970. "name": {
  17971. "type": "string"
  17972. },
  17973. "compatibility": {
  17974. "$ref": "#/components/schemas/Model.Compatibility"
  17975. },
  17976. "package": {
  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. "capabilities": {
  17992. "$ref": "#/components/schemas/Model.Capabilities"
  17993. },
  17994. "variants": {
  17995. "type": "array",
  17996. "items": {
  17997. "$ref": "#/components/schemas/Model.Variant"
  17998. }
  17999. },
  18000. "time": {
  18001. "type": "object",
  18002. "properties": {
  18003. "released": {
  18004. "type": "number"
  18005. }
  18006. },
  18007. "required": ["released"],
  18008. "additionalProperties": false
  18009. },
  18010. "cost": {
  18011. "type": "array",
  18012. "items": {
  18013. "$ref": "#/components/schemas/Model.Cost"
  18014. }
  18015. },
  18016. "status": {
  18017. "type": "string",
  18018. "enum": ["alpha", "beta", "deprecated", "active"]
  18019. },
  18020. "enabled": {
  18021. "type": "boolean"
  18022. },
  18023. "limit": {
  18024. "type": "object",
  18025. "properties": {
  18026. "context": {
  18027. "type": "integer"
  18028. },
  18029. "input": {
  18030. "type": "integer"
  18031. },
  18032. "output": {
  18033. "type": "integer"
  18034. }
  18035. },
  18036. "required": ["context", "output"],
  18037. "additionalProperties": false
  18038. }
  18039. },
  18040. "required": [
  18041. "id",
  18042. "modelID",
  18043. "providerID",
  18044. "name",
  18045. "capabilities",
  18046. "variants",
  18047. "time",
  18048. "cost",
  18049. "status",
  18050. "enabled",
  18051. "limit"
  18052. ],
  18053. "additionalProperties": false
  18054. },
  18055. "GenerateTextResponse": {
  18056. "type": "object",
  18057. "properties": {
  18058. "data": {
  18059. "type": "object",
  18060. "properties": {
  18061. "text": {
  18062. "type": "string"
  18063. }
  18064. },
  18065. "required": ["text"],
  18066. "additionalProperties": false
  18067. }
  18068. },
  18069. "required": ["data"],
  18070. "additionalProperties": false
  18071. },
  18072. "Provider.Info": {
  18073. "type": "object",
  18074. "properties": {
  18075. "id": {
  18076. "type": "string"
  18077. },
  18078. "integrationID": {
  18079. "type": "string"
  18080. },
  18081. "name": {
  18082. "type": "string"
  18083. },
  18084. "disabled": {
  18085. "type": "boolean"
  18086. },
  18087. "package": {
  18088. "type": "string"
  18089. },
  18090. "settings": {
  18091. "type": "object"
  18092. },
  18093. "headers": {
  18094. "type": "object",
  18095. "additionalProperties": {
  18096. "type": "string"
  18097. }
  18098. },
  18099. "body": {
  18100. "type": "object"
  18101. }
  18102. },
  18103. "required": ["id", "name", "package"],
  18104. "additionalProperties": false
  18105. },
  18106. "ProviderNotFoundError": {
  18107. "type": "object",
  18108. "properties": {
  18109. "_tag": {
  18110. "type": "string",
  18111. "enum": ["ProviderNotFoundError"]
  18112. },
  18113. "providerID": {
  18114. "type": "string"
  18115. },
  18116. "message": {
  18117. "type": "string"
  18118. }
  18119. },
  18120. "required": ["_tag", "providerID", "message"],
  18121. "additionalProperties": false
  18122. },
  18123. "Form.When": {
  18124. "type": "object",
  18125. "properties": {
  18126. "key": {
  18127. "type": "string"
  18128. },
  18129. "op": {
  18130. "type": "string",
  18131. "enum": ["eq", "neq"]
  18132. },
  18133. "value": {
  18134. "anyOf": [
  18135. {
  18136. "type": "string"
  18137. },
  18138. {
  18139. "anyOf": [
  18140. {
  18141. "anyOf": [
  18142. {
  18143. "type": "number"
  18144. },
  18145. {
  18146. "type": "string",
  18147. "enum": ["NaN"]
  18148. },
  18149. {
  18150. "type": "string",
  18151. "enum": ["Infinity"]
  18152. },
  18153. {
  18154. "type": "string",
  18155. "enum": ["-Infinity"]
  18156. }
  18157. ]
  18158. },
  18159. {
  18160. "type": "string",
  18161. "enum": ["Infinity", "-Infinity", "NaN"]
  18162. }
  18163. ]
  18164. },
  18165. {
  18166. "type": "boolean"
  18167. }
  18168. ]
  18169. }
  18170. },
  18171. "required": ["key", "op", "value"],
  18172. "additionalProperties": false
  18173. },
  18174. "Form.Option": {
  18175. "type": "object",
  18176. "properties": {
  18177. "value": {
  18178. "type": "string"
  18179. },
  18180. "label": {
  18181. "type": "string"
  18182. },
  18183. "description": {
  18184. "type": "string"
  18185. }
  18186. },
  18187. "required": ["value", "label"],
  18188. "additionalProperties": false
  18189. },
  18190. "Form.StringField": {
  18191. "type": "object",
  18192. "properties": {
  18193. "key": {
  18194. "type": "string"
  18195. },
  18196. "title": {
  18197. "type": "string"
  18198. },
  18199. "description": {
  18200. "type": "string"
  18201. },
  18202. "required": {
  18203. "type": "boolean"
  18204. },
  18205. "when": {
  18206. "type": "array",
  18207. "items": {
  18208. "$ref": "#/components/schemas/Form.When"
  18209. }
  18210. },
  18211. "type": {
  18212. "type": "string",
  18213. "enum": ["string"]
  18214. },
  18215. "format": {
  18216. "type": "string",
  18217. "enum": ["email", "uri", "date", "date-time"]
  18218. },
  18219. "minLength": {
  18220. "type": "integer",
  18221. "allOf": [
  18222. {
  18223. "minimum": 0
  18224. }
  18225. ]
  18226. },
  18227. "maxLength": {
  18228. "type": "integer",
  18229. "allOf": [
  18230. {
  18231. "minimum": 0
  18232. }
  18233. ]
  18234. },
  18235. "pattern": {
  18236. "type": "string"
  18237. },
  18238. "placeholder": {
  18239. "type": "string"
  18240. },
  18241. "default": {
  18242. "type": "string"
  18243. },
  18244. "options": {
  18245. "type": "array",
  18246. "items": {
  18247. "$ref": "#/components/schemas/Form.Option"
  18248. }
  18249. },
  18250. "custom": {
  18251. "type": "boolean"
  18252. }
  18253. },
  18254. "required": ["key", "type"],
  18255. "additionalProperties": false
  18256. },
  18257. "Form.NumberField": {
  18258. "type": "object",
  18259. "properties": {
  18260. "key": {
  18261. "type": "string"
  18262. },
  18263. "title": {
  18264. "type": "string"
  18265. },
  18266. "description": {
  18267. "type": "string"
  18268. },
  18269. "required": {
  18270. "type": "boolean"
  18271. },
  18272. "when": {
  18273. "type": "array",
  18274. "items": {
  18275. "$ref": "#/components/schemas/Form.When"
  18276. }
  18277. },
  18278. "type": {
  18279. "type": "string",
  18280. "enum": ["number"]
  18281. },
  18282. "minimum": {
  18283. "anyOf": [
  18284. {
  18285. "anyOf": [
  18286. {
  18287. "type": "number"
  18288. },
  18289. {
  18290. "type": "string",
  18291. "enum": ["NaN"]
  18292. },
  18293. {
  18294. "type": "string",
  18295. "enum": ["Infinity"]
  18296. },
  18297. {
  18298. "type": "string",
  18299. "enum": ["-Infinity"]
  18300. }
  18301. ]
  18302. },
  18303. {
  18304. "type": "string",
  18305. "enum": ["Infinity", "-Infinity", "NaN"]
  18306. }
  18307. ]
  18308. },
  18309. "maximum": {
  18310. "anyOf": [
  18311. {
  18312. "anyOf": [
  18313. {
  18314. "type": "number"
  18315. },
  18316. {
  18317. "type": "string",
  18318. "enum": ["NaN"]
  18319. },
  18320. {
  18321. "type": "string",
  18322. "enum": ["Infinity"]
  18323. },
  18324. {
  18325. "type": "string",
  18326. "enum": ["-Infinity"]
  18327. }
  18328. ]
  18329. },
  18330. {
  18331. "type": "string",
  18332. "enum": ["Infinity", "-Infinity", "NaN"]
  18333. }
  18334. ]
  18335. },
  18336. "default": {
  18337. "anyOf": [
  18338. {
  18339. "anyOf": [
  18340. {
  18341. "type": "number"
  18342. },
  18343. {
  18344. "type": "string",
  18345. "enum": ["NaN"]
  18346. },
  18347. {
  18348. "type": "string",
  18349. "enum": ["Infinity"]
  18350. },
  18351. {
  18352. "type": "string",
  18353. "enum": ["-Infinity"]
  18354. }
  18355. ]
  18356. },
  18357. {
  18358. "type": "string",
  18359. "enum": ["Infinity", "-Infinity", "NaN"]
  18360. }
  18361. ]
  18362. }
  18363. },
  18364. "required": ["key", "type"],
  18365. "additionalProperties": false
  18366. },
  18367. "Form.IntegerField": {
  18368. "type": "object",
  18369. "properties": {
  18370. "key": {
  18371. "type": "string"
  18372. },
  18373. "title": {
  18374. "type": "string"
  18375. },
  18376. "description": {
  18377. "type": "string"
  18378. },
  18379. "required": {
  18380. "type": "boolean"
  18381. },
  18382. "when": {
  18383. "type": "array",
  18384. "items": {
  18385. "$ref": "#/components/schemas/Form.When"
  18386. }
  18387. },
  18388. "type": {
  18389. "type": "string",
  18390. "enum": ["integer"]
  18391. },
  18392. "minimum": {
  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. "maximum": {
  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. "default": {
  18447. "anyOf": [
  18448. {
  18449. "anyOf": [
  18450. {
  18451. "type": "number"
  18452. },
  18453. {
  18454. "type": "string",
  18455. "enum": ["NaN"]
  18456. },
  18457. {
  18458. "type": "string",
  18459. "enum": ["Infinity"]
  18460. },
  18461. {
  18462. "type": "string",
  18463. "enum": ["-Infinity"]
  18464. }
  18465. ]
  18466. },
  18467. {
  18468. "type": "string",
  18469. "enum": ["Infinity", "-Infinity", "NaN"]
  18470. }
  18471. ]
  18472. }
  18473. },
  18474. "required": ["key", "type"],
  18475. "additionalProperties": false
  18476. },
  18477. "Form.BooleanField": {
  18478. "type": "object",
  18479. "properties": {
  18480. "key": {
  18481. "type": "string"
  18482. },
  18483. "title": {
  18484. "type": "string"
  18485. },
  18486. "description": {
  18487. "type": "string"
  18488. },
  18489. "required": {
  18490. "type": "boolean"
  18491. },
  18492. "when": {
  18493. "type": "array",
  18494. "items": {
  18495. "$ref": "#/components/schemas/Form.When"
  18496. }
  18497. },
  18498. "type": {
  18499. "type": "string",
  18500. "enum": ["boolean"]
  18501. },
  18502. "default": {
  18503. "type": "boolean"
  18504. }
  18505. },
  18506. "required": ["key", "type"],
  18507. "additionalProperties": false
  18508. },
  18509. "Form.MultiselectField": {
  18510. "type": "object",
  18511. "properties": {
  18512. "key": {
  18513. "type": "string"
  18514. },
  18515. "title": {
  18516. "type": "string"
  18517. },
  18518. "description": {
  18519. "type": "string"
  18520. },
  18521. "required": {
  18522. "type": "boolean"
  18523. },
  18524. "when": {
  18525. "type": "array",
  18526. "items": {
  18527. "$ref": "#/components/schemas/Form.When"
  18528. }
  18529. },
  18530. "type": {
  18531. "type": "string",
  18532. "enum": ["multiselect"]
  18533. },
  18534. "options": {
  18535. "type": "array",
  18536. "items": {
  18537. "$ref": "#/components/schemas/Form.Option"
  18538. }
  18539. },
  18540. "minItems": {
  18541. "type": "integer",
  18542. "allOf": [
  18543. {
  18544. "minimum": 0
  18545. }
  18546. ]
  18547. },
  18548. "maxItems": {
  18549. "type": "integer",
  18550. "allOf": [
  18551. {
  18552. "minimum": 0
  18553. }
  18554. ]
  18555. },
  18556. "custom": {
  18557. "type": "boolean"
  18558. },
  18559. "default": {
  18560. "type": "array",
  18561. "items": {
  18562. "type": "string"
  18563. }
  18564. }
  18565. },
  18566. "required": ["key", "type", "options"],
  18567. "additionalProperties": false
  18568. },
  18569. "Form.ExternalField": {
  18570. "type": "object",
  18571. "properties": {
  18572. "key": {
  18573. "type": "string"
  18574. },
  18575. "type": {
  18576. "type": "string",
  18577. "enum": ["external"]
  18578. },
  18579. "url": {
  18580. "type": "string"
  18581. },
  18582. "title": {
  18583. "type": "string"
  18584. },
  18585. "description": {
  18586. "type": "string"
  18587. }
  18588. },
  18589. "required": ["key", "type", "url"],
  18590. "additionalProperties": false
  18591. },
  18592. "Form.Field": {
  18593. "anyOf": [
  18594. {
  18595. "$ref": "#/components/schemas/Form.StringField"
  18596. },
  18597. {
  18598. "$ref": "#/components/schemas/Form.NumberField"
  18599. },
  18600. {
  18601. "$ref": "#/components/schemas/Form.IntegerField"
  18602. },
  18603. {
  18604. "$ref": "#/components/schemas/Form.BooleanField"
  18605. },
  18606. {
  18607. "$ref": "#/components/schemas/Form.MultiselectField"
  18608. },
  18609. {
  18610. "$ref": "#/components/schemas/Form.ExternalField"
  18611. }
  18612. ]
  18613. },
  18614. "Form.Fields": {
  18615. "type": "array",
  18616. "prefixItems": [
  18617. {
  18618. "$ref": "#/components/schemas/Form.Field"
  18619. }
  18620. ],
  18621. "minItems": 1,
  18622. "items": {
  18623. "$ref": "#/components/schemas/Form.Field"
  18624. }
  18625. },
  18626. "Integration.OAuthMethod": {
  18627. "type": "object",
  18628. "properties": {
  18629. "id": {
  18630. "type": "string"
  18631. },
  18632. "type": {
  18633. "type": "string",
  18634. "enum": ["oauth"]
  18635. },
  18636. "label": {
  18637. "type": "string"
  18638. },
  18639. "form": {
  18640. "$ref": "#/components/schemas/Form.Fields"
  18641. }
  18642. },
  18643. "required": ["id", "type", "label"],
  18644. "additionalProperties": false
  18645. },
  18646. "Integration.CommandMethod": {
  18647. "type": "object",
  18648. "properties": {
  18649. "id": {
  18650. "type": "string"
  18651. },
  18652. "type": {
  18653. "type": "string",
  18654. "enum": ["command"]
  18655. },
  18656. "label": {
  18657. "type": "string"
  18658. },
  18659. "command": {
  18660. "type": "array",
  18661. "items": {
  18662. "type": "string"
  18663. }
  18664. }
  18665. },
  18666. "required": ["id", "type", "label", "command"],
  18667. "additionalProperties": false
  18668. },
  18669. "Integration.KeyMethod": {
  18670. "type": "object",
  18671. "properties": {
  18672. "type": {
  18673. "type": "string",
  18674. "enum": ["key"]
  18675. },
  18676. "label": {
  18677. "type": "string"
  18678. },
  18679. "form": {
  18680. "$ref": "#/components/schemas/Form.Fields"
  18681. }
  18682. },
  18683. "required": ["type"],
  18684. "additionalProperties": false
  18685. },
  18686. "Integration.EnvMethod": {
  18687. "type": "object",
  18688. "properties": {
  18689. "type": {
  18690. "type": "string",
  18691. "enum": ["env"]
  18692. },
  18693. "names": {
  18694. "type": "array",
  18695. "items": {
  18696. "type": "string"
  18697. }
  18698. }
  18699. },
  18700. "required": ["type", "names"],
  18701. "additionalProperties": false
  18702. },
  18703. "Integration.Method": {
  18704. "anyOf": [
  18705. {
  18706. "$ref": "#/components/schemas/Integration.OAuthMethod"
  18707. },
  18708. {
  18709. "$ref": "#/components/schemas/Integration.CommandMethod"
  18710. },
  18711. {
  18712. "$ref": "#/components/schemas/Integration.KeyMethod"
  18713. },
  18714. {
  18715. "$ref": "#/components/schemas/Integration.EnvMethod"
  18716. }
  18717. ]
  18718. },
  18719. "Connection.CredentialInfo": {
  18720. "type": "object",
  18721. "properties": {
  18722. "type": {
  18723. "type": "string",
  18724. "enum": ["credential"]
  18725. },
  18726. "id": {
  18727. "type": "string"
  18728. },
  18729. "label": {
  18730. "type": "string"
  18731. }
  18732. },
  18733. "required": ["type", "id", "label"],
  18734. "additionalProperties": false
  18735. },
  18736. "Connection.EnvInfo": {
  18737. "type": "object",
  18738. "properties": {
  18739. "type": {
  18740. "type": "string",
  18741. "enum": ["env"]
  18742. },
  18743. "name": {
  18744. "type": "string"
  18745. }
  18746. },
  18747. "required": ["type", "name"],
  18748. "additionalProperties": false
  18749. },
  18750. "Connection.Info": {
  18751. "anyOf": [
  18752. {
  18753. "$ref": "#/components/schemas/Connection.CredentialInfo"
  18754. },
  18755. {
  18756. "$ref": "#/components/schemas/Connection.EnvInfo"
  18757. }
  18758. ]
  18759. },
  18760. "Integration.Info": {
  18761. "type": "object",
  18762. "properties": {
  18763. "id": {
  18764. "type": "string"
  18765. },
  18766. "name": {
  18767. "type": "string"
  18768. },
  18769. "methods": {
  18770. "type": "array",
  18771. "items": {
  18772. "$ref": "#/components/schemas/Integration.Method"
  18773. }
  18774. },
  18775. "connections": {
  18776. "type": "array",
  18777. "items": {
  18778. "$ref": "#/components/schemas/Connection.Info"
  18779. }
  18780. }
  18781. },
  18782. "required": ["id", "name", "methods", "connections"],
  18783. "additionalProperties": false
  18784. },
  18785. "Form.Value": {
  18786. "anyOf": [
  18787. {
  18788. "type": "string"
  18789. },
  18790. {
  18791. "anyOf": [
  18792. {
  18793. "anyOf": [
  18794. {
  18795. "type": "number"
  18796. },
  18797. {
  18798. "type": "string",
  18799. "enum": ["NaN"]
  18800. },
  18801. {
  18802. "type": "string",
  18803. "enum": ["Infinity"]
  18804. },
  18805. {
  18806. "type": "string",
  18807. "enum": ["-Infinity"]
  18808. }
  18809. ]
  18810. },
  18811. {
  18812. "type": "string",
  18813. "enum": ["Infinity", "-Infinity", "NaN"]
  18814. }
  18815. ]
  18816. },
  18817. {
  18818. "type": "boolean"
  18819. },
  18820. {
  18821. "type": "array",
  18822. "items": {
  18823. "type": "string"
  18824. }
  18825. }
  18826. ]
  18827. },
  18828. "Form.Answer": {
  18829. "type": "object",
  18830. "additionalProperties": {
  18831. "$ref": "#/components/schemas/Form.Value"
  18832. }
  18833. },
  18834. "Integration.Attempt": {
  18835. "type": "object",
  18836. "properties": {
  18837. "attemptID": {
  18838. "type": "string"
  18839. },
  18840. "url": {
  18841. "type": "string"
  18842. },
  18843. "instructions": {
  18844. "type": "string"
  18845. },
  18846. "mode": {
  18847. "type": "string",
  18848. "enum": ["auto", "code"]
  18849. },
  18850. "time": {
  18851. "type": "object",
  18852. "properties": {
  18853. "created": {
  18854. "anyOf": [
  18855. {
  18856. "anyOf": [
  18857. {
  18858. "type": "number"
  18859. },
  18860. {
  18861. "type": "string",
  18862. "enum": ["NaN"]
  18863. },
  18864. {
  18865. "type": "string",
  18866. "enum": ["Infinity"]
  18867. },
  18868. {
  18869. "type": "string",
  18870. "enum": ["-Infinity"]
  18871. }
  18872. ]
  18873. },
  18874. {
  18875. "type": "string",
  18876. "enum": ["Infinity", "-Infinity", "NaN"]
  18877. }
  18878. ]
  18879. },
  18880. "expires": {
  18881. "anyOf": [
  18882. {
  18883. "anyOf": [
  18884. {
  18885. "type": "number"
  18886. },
  18887. {
  18888. "type": "string",
  18889. "enum": ["NaN"]
  18890. },
  18891. {
  18892. "type": "string",
  18893. "enum": ["Infinity"]
  18894. },
  18895. {
  18896. "type": "string",
  18897. "enum": ["-Infinity"]
  18898. }
  18899. ]
  18900. },
  18901. {
  18902. "type": "string",
  18903. "enum": ["Infinity", "-Infinity", "NaN"]
  18904. }
  18905. ]
  18906. }
  18907. },
  18908. "required": ["created", "expires"],
  18909. "additionalProperties": false
  18910. }
  18911. },
  18912. "required": ["attemptID", "url", "instructions", "mode", "time"],
  18913. "additionalProperties": false
  18914. },
  18915. "Integration.AttemptStatus": {
  18916. "anyOf": [
  18917. {
  18918. "type": "object",
  18919. "properties": {
  18920. "status": {
  18921. "type": "string",
  18922. "enum": ["pending"]
  18923. },
  18924. "time": {
  18925. "type": "object",
  18926. "properties": {
  18927. "created": {
  18928. "anyOf": [
  18929. {
  18930. "anyOf": [
  18931. {
  18932. "type": "number"
  18933. },
  18934. {
  18935. "type": "string",
  18936. "enum": ["NaN"]
  18937. },
  18938. {
  18939. "type": "string",
  18940. "enum": ["Infinity"]
  18941. },
  18942. {
  18943. "type": "string",
  18944. "enum": ["-Infinity"]
  18945. }
  18946. ]
  18947. },
  18948. {
  18949. "type": "string",
  18950. "enum": ["Infinity", "-Infinity", "NaN"]
  18951. }
  18952. ]
  18953. },
  18954. "expires": {
  18955. "anyOf": [
  18956. {
  18957. "anyOf": [
  18958. {
  18959. "type": "number"
  18960. },
  18961. {
  18962. "type": "string",
  18963. "enum": ["NaN"]
  18964. },
  18965. {
  18966. "type": "string",
  18967. "enum": ["Infinity"]
  18968. },
  18969. {
  18970. "type": "string",
  18971. "enum": ["-Infinity"]
  18972. }
  18973. ]
  18974. },
  18975. {
  18976. "type": "string",
  18977. "enum": ["Infinity", "-Infinity", "NaN"]
  18978. }
  18979. ]
  18980. }
  18981. },
  18982. "required": ["created", "expires"],
  18983. "additionalProperties": false
  18984. }
  18985. },
  18986. "required": ["status", "time"],
  18987. "additionalProperties": false
  18988. },
  18989. {
  18990. "type": "object",
  18991. "properties": {
  18992. "status": {
  18993. "type": "string",
  18994. "enum": ["complete"]
  18995. },
  18996. "time": {
  18997. "type": "object",
  18998. "properties": {
  18999. "created": {
  19000. "anyOf": [
  19001. {
  19002. "anyOf": [
  19003. {
  19004. "type": "number"
  19005. },
  19006. {
  19007. "type": "string",
  19008. "enum": ["NaN"]
  19009. },
  19010. {
  19011. "type": "string",
  19012. "enum": ["Infinity"]
  19013. },
  19014. {
  19015. "type": "string",
  19016. "enum": ["-Infinity"]
  19017. }
  19018. ]
  19019. },
  19020. {
  19021. "type": "string",
  19022. "enum": ["Infinity", "-Infinity", "NaN"]
  19023. }
  19024. ]
  19025. },
  19026. "expires": {
  19027. "anyOf": [
  19028. {
  19029. "anyOf": [
  19030. {
  19031. "type": "number"
  19032. },
  19033. {
  19034. "type": "string",
  19035. "enum": ["NaN"]
  19036. },
  19037. {
  19038. "type": "string",
  19039. "enum": ["Infinity"]
  19040. },
  19041. {
  19042. "type": "string",
  19043. "enum": ["-Infinity"]
  19044. }
  19045. ]
  19046. },
  19047. {
  19048. "type": "string",
  19049. "enum": ["Infinity", "-Infinity", "NaN"]
  19050. }
  19051. ]
  19052. }
  19053. },
  19054. "required": ["created", "expires"],
  19055. "additionalProperties": false
  19056. }
  19057. },
  19058. "required": ["status", "time"],
  19059. "additionalProperties": false
  19060. },
  19061. {
  19062. "type": "object",
  19063. "properties": {
  19064. "status": {
  19065. "type": "string",
  19066. "enum": ["failed"]
  19067. },
  19068. "message": {
  19069. "type": "string"
  19070. },
  19071. "time": {
  19072. "type": "object",
  19073. "properties": {
  19074. "created": {
  19075. "anyOf": [
  19076. {
  19077. "anyOf": [
  19078. {
  19079. "type": "number"
  19080. },
  19081. {
  19082. "type": "string",
  19083. "enum": ["NaN"]
  19084. },
  19085. {
  19086. "type": "string",
  19087. "enum": ["Infinity"]
  19088. },
  19089. {
  19090. "type": "string",
  19091. "enum": ["-Infinity"]
  19092. }
  19093. ]
  19094. },
  19095. {
  19096. "type": "string",
  19097. "enum": ["Infinity", "-Infinity", "NaN"]
  19098. }
  19099. ]
  19100. },
  19101. "expires": {
  19102. "anyOf": [
  19103. {
  19104. "anyOf": [
  19105. {
  19106. "type": "number"
  19107. },
  19108. {
  19109. "type": "string",
  19110. "enum": ["NaN"]
  19111. },
  19112. {
  19113. "type": "string",
  19114. "enum": ["Infinity"]
  19115. },
  19116. {
  19117. "type": "string",
  19118. "enum": ["-Infinity"]
  19119. }
  19120. ]
  19121. },
  19122. {
  19123. "type": "string",
  19124. "enum": ["Infinity", "-Infinity", "NaN"]
  19125. }
  19126. ]
  19127. }
  19128. },
  19129. "required": ["created", "expires"],
  19130. "additionalProperties": false
  19131. }
  19132. },
  19133. "required": ["status", "message", "time"],
  19134. "additionalProperties": false
  19135. },
  19136. {
  19137. "type": "object",
  19138. "properties": {
  19139. "status": {
  19140. "type": "string",
  19141. "enum": ["expired"]
  19142. },
  19143. "time": {
  19144. "type": "object",
  19145. "properties": {
  19146. "created": {
  19147. "anyOf": [
  19148. {
  19149. "anyOf": [
  19150. {
  19151. "type": "number"
  19152. },
  19153. {
  19154. "type": "string",
  19155. "enum": ["NaN"]
  19156. },
  19157. {
  19158. "type": "string",
  19159. "enum": ["Infinity"]
  19160. },
  19161. {
  19162. "type": "string",
  19163. "enum": ["-Infinity"]
  19164. }
  19165. ]
  19166. },
  19167. {
  19168. "type": "string",
  19169. "enum": ["Infinity", "-Infinity", "NaN"]
  19170. }
  19171. ]
  19172. },
  19173. "expires": {
  19174. "anyOf": [
  19175. {
  19176. "anyOf": [
  19177. {
  19178. "type": "number"
  19179. },
  19180. {
  19181. "type": "string",
  19182. "enum": ["NaN"]
  19183. },
  19184. {
  19185. "type": "string",
  19186. "enum": ["Infinity"]
  19187. },
  19188. {
  19189. "type": "string",
  19190. "enum": ["-Infinity"]
  19191. }
  19192. ]
  19193. },
  19194. {
  19195. "type": "string",
  19196. "enum": ["Infinity", "-Infinity", "NaN"]
  19197. }
  19198. ]
  19199. }
  19200. },
  19201. "required": ["created", "expires"],
  19202. "additionalProperties": false
  19203. }
  19204. },
  19205. "required": ["status", "time"],
  19206. "additionalProperties": false
  19207. }
  19208. ]
  19209. },
  19210. "Integration.CommandAttempt": {
  19211. "type": "object",
  19212. "properties": {
  19213. "attemptID": {
  19214. "type": "string"
  19215. },
  19216. "time": {
  19217. "type": "object",
  19218. "properties": {
  19219. "created": {
  19220. "anyOf": [
  19221. {
  19222. "anyOf": [
  19223. {
  19224. "type": "number"
  19225. },
  19226. {
  19227. "type": "string",
  19228. "enum": ["NaN"]
  19229. },
  19230. {
  19231. "type": "string",
  19232. "enum": ["Infinity"]
  19233. },
  19234. {
  19235. "type": "string",
  19236. "enum": ["-Infinity"]
  19237. }
  19238. ]
  19239. },
  19240. {
  19241. "type": "string",
  19242. "enum": ["Infinity", "-Infinity", "NaN"]
  19243. }
  19244. ]
  19245. },
  19246. "expires": {
  19247. "anyOf": [
  19248. {
  19249. "anyOf": [
  19250. {
  19251. "type": "number"
  19252. },
  19253. {
  19254. "type": "string",
  19255. "enum": ["NaN"]
  19256. },
  19257. {
  19258. "type": "string",
  19259. "enum": ["Infinity"]
  19260. },
  19261. {
  19262. "type": "string",
  19263. "enum": ["-Infinity"]
  19264. }
  19265. ]
  19266. },
  19267. {
  19268. "type": "string",
  19269. "enum": ["Infinity", "-Infinity", "NaN"]
  19270. }
  19271. ]
  19272. }
  19273. },
  19274. "required": ["created", "expires"],
  19275. "additionalProperties": false
  19276. }
  19277. },
  19278. "required": ["attemptID", "time"],
  19279. "additionalProperties": false
  19280. },
  19281. "Integration.CommandAttemptStatus": {
  19282. "anyOf": [
  19283. {
  19284. "type": "object",
  19285. "properties": {
  19286. "status": {
  19287. "type": "string",
  19288. "enum": ["pending"]
  19289. },
  19290. "message": {
  19291. "type": "string"
  19292. },
  19293. "time": {
  19294. "type": "object",
  19295. "properties": {
  19296. "created": {
  19297. "anyOf": [
  19298. {
  19299. "anyOf": [
  19300. {
  19301. "type": "number"
  19302. },
  19303. {
  19304. "type": "string",
  19305. "enum": ["NaN"]
  19306. },
  19307. {
  19308. "type": "string",
  19309. "enum": ["Infinity"]
  19310. },
  19311. {
  19312. "type": "string",
  19313. "enum": ["-Infinity"]
  19314. }
  19315. ]
  19316. },
  19317. {
  19318. "type": "string",
  19319. "enum": ["Infinity", "-Infinity", "NaN"]
  19320. }
  19321. ]
  19322. },
  19323. "expires": {
  19324. "anyOf": [
  19325. {
  19326. "anyOf": [
  19327. {
  19328. "type": "number"
  19329. },
  19330. {
  19331. "type": "string",
  19332. "enum": ["NaN"]
  19333. },
  19334. {
  19335. "type": "string",
  19336. "enum": ["Infinity"]
  19337. },
  19338. {
  19339. "type": "string",
  19340. "enum": ["-Infinity"]
  19341. }
  19342. ]
  19343. },
  19344. {
  19345. "type": "string",
  19346. "enum": ["Infinity", "-Infinity", "NaN"]
  19347. }
  19348. ]
  19349. }
  19350. },
  19351. "required": ["created", "expires"],
  19352. "additionalProperties": false
  19353. }
  19354. },
  19355. "required": ["status", "time"],
  19356. "additionalProperties": false
  19357. },
  19358. {
  19359. "type": "object",
  19360. "properties": {
  19361. "status": {
  19362. "type": "string",
  19363. "enum": ["complete"]
  19364. },
  19365. "time": {
  19366. "type": "object",
  19367. "properties": {
  19368. "created": {
  19369. "anyOf": [
  19370. {
  19371. "anyOf": [
  19372. {
  19373. "type": "number"
  19374. },
  19375. {
  19376. "type": "string",
  19377. "enum": ["NaN"]
  19378. },
  19379. {
  19380. "type": "string",
  19381. "enum": ["Infinity"]
  19382. },
  19383. {
  19384. "type": "string",
  19385. "enum": ["-Infinity"]
  19386. }
  19387. ]
  19388. },
  19389. {
  19390. "type": "string",
  19391. "enum": ["Infinity", "-Infinity", "NaN"]
  19392. }
  19393. ]
  19394. },
  19395. "expires": {
  19396. "anyOf": [
  19397. {
  19398. "anyOf": [
  19399. {
  19400. "type": "number"
  19401. },
  19402. {
  19403. "type": "string",
  19404. "enum": ["NaN"]
  19405. },
  19406. {
  19407. "type": "string",
  19408. "enum": ["Infinity"]
  19409. },
  19410. {
  19411. "type": "string",
  19412. "enum": ["-Infinity"]
  19413. }
  19414. ]
  19415. },
  19416. {
  19417. "type": "string",
  19418. "enum": ["Infinity", "-Infinity", "NaN"]
  19419. }
  19420. ]
  19421. }
  19422. },
  19423. "required": ["created", "expires"],
  19424. "additionalProperties": false
  19425. }
  19426. },
  19427. "required": ["status", "time"],
  19428. "additionalProperties": false
  19429. },
  19430. {
  19431. "type": "object",
  19432. "properties": {
  19433. "status": {
  19434. "type": "string",
  19435. "enum": ["failed"]
  19436. },
  19437. "message": {
  19438. "type": "string"
  19439. },
  19440. "time": {
  19441. "type": "object",
  19442. "properties": {
  19443. "created": {
  19444. "anyOf": [
  19445. {
  19446. "anyOf": [
  19447. {
  19448. "type": "number"
  19449. },
  19450. {
  19451. "type": "string",
  19452. "enum": ["NaN"]
  19453. },
  19454. {
  19455. "type": "string",
  19456. "enum": ["Infinity"]
  19457. },
  19458. {
  19459. "type": "string",
  19460. "enum": ["-Infinity"]
  19461. }
  19462. ]
  19463. },
  19464. {
  19465. "type": "string",
  19466. "enum": ["Infinity", "-Infinity", "NaN"]
  19467. }
  19468. ]
  19469. },
  19470. "expires": {
  19471. "anyOf": [
  19472. {
  19473. "anyOf": [
  19474. {
  19475. "type": "number"
  19476. },
  19477. {
  19478. "type": "string",
  19479. "enum": ["NaN"]
  19480. },
  19481. {
  19482. "type": "string",
  19483. "enum": ["Infinity"]
  19484. },
  19485. {
  19486. "type": "string",
  19487. "enum": ["-Infinity"]
  19488. }
  19489. ]
  19490. },
  19491. {
  19492. "type": "string",
  19493. "enum": ["Infinity", "-Infinity", "NaN"]
  19494. }
  19495. ]
  19496. }
  19497. },
  19498. "required": ["created", "expires"],
  19499. "additionalProperties": false
  19500. }
  19501. },
  19502. "required": ["status", "message", "time"],
  19503. "additionalProperties": false
  19504. },
  19505. {
  19506. "type": "object",
  19507. "properties": {
  19508. "status": {
  19509. "type": "string",
  19510. "enum": ["expired"]
  19511. },
  19512. "time": {
  19513. "type": "object",
  19514. "properties": {
  19515. "created": {
  19516. "anyOf": [
  19517. {
  19518. "anyOf": [
  19519. {
  19520. "type": "number"
  19521. },
  19522. {
  19523. "type": "string",
  19524. "enum": ["NaN"]
  19525. },
  19526. {
  19527. "type": "string",
  19528. "enum": ["Infinity"]
  19529. },
  19530. {
  19531. "type": "string",
  19532. "enum": ["-Infinity"]
  19533. }
  19534. ]
  19535. },
  19536. {
  19537. "type": "string",
  19538. "enum": ["Infinity", "-Infinity", "NaN"]
  19539. }
  19540. ]
  19541. },
  19542. "expires": {
  19543. "anyOf": [
  19544. {
  19545. "anyOf": [
  19546. {
  19547. "type": "number"
  19548. },
  19549. {
  19550. "type": "string",
  19551. "enum": ["NaN"]
  19552. },
  19553. {
  19554. "type": "string",
  19555. "enum": ["Infinity"]
  19556. },
  19557. {
  19558. "type": "string",
  19559. "enum": ["-Infinity"]
  19560. }
  19561. ]
  19562. },
  19563. {
  19564. "type": "string",
  19565. "enum": ["Infinity", "-Infinity", "NaN"]
  19566. }
  19567. ]
  19568. }
  19569. },
  19570. "required": ["created", "expires"],
  19571. "additionalProperties": false
  19572. }
  19573. },
  19574. "required": ["status", "time"],
  19575. "additionalProperties": false
  19576. }
  19577. ]
  19578. },
  19579. "Mcp.Status.Connected": {
  19580. "type": "object",
  19581. "properties": {
  19582. "status": {
  19583. "type": "string",
  19584. "enum": ["connected"]
  19585. }
  19586. },
  19587. "required": ["status"],
  19588. "additionalProperties": false
  19589. },
  19590. "Mcp.Status.Pending": {
  19591. "type": "object",
  19592. "properties": {
  19593. "status": {
  19594. "type": "string",
  19595. "enum": ["pending"]
  19596. }
  19597. },
  19598. "required": ["status"],
  19599. "additionalProperties": false
  19600. },
  19601. "Mcp.Status.Disabled": {
  19602. "type": "object",
  19603. "properties": {
  19604. "status": {
  19605. "type": "string",
  19606. "enum": ["disabled"]
  19607. }
  19608. },
  19609. "required": ["status"],
  19610. "additionalProperties": false
  19611. },
  19612. "Mcp.Status.Failed": {
  19613. "type": "object",
  19614. "properties": {
  19615. "status": {
  19616. "type": "string",
  19617. "enum": ["failed"]
  19618. },
  19619. "error": {
  19620. "type": "string"
  19621. }
  19622. },
  19623. "required": ["status", "error"],
  19624. "additionalProperties": false
  19625. },
  19626. "Mcp.Status.NeedsAuth": {
  19627. "type": "object",
  19628. "properties": {
  19629. "status": {
  19630. "type": "string",
  19631. "enum": ["needs_auth"]
  19632. }
  19633. },
  19634. "required": ["status"],
  19635. "additionalProperties": false
  19636. },
  19637. "Mcp.Server": {
  19638. "type": "object",
  19639. "properties": {
  19640. "name": {
  19641. "type": "string"
  19642. },
  19643. "status": {
  19644. "anyOf": [
  19645. {
  19646. "$ref": "#/components/schemas/Mcp.Status.Connected"
  19647. },
  19648. {
  19649. "$ref": "#/components/schemas/Mcp.Status.Pending"
  19650. },
  19651. {
  19652. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  19653. },
  19654. {
  19655. "$ref": "#/components/schemas/Mcp.Status.Failed"
  19656. },
  19657. {
  19658. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  19659. }
  19660. ]
  19661. },
  19662. "integrationID": {
  19663. "type": "string"
  19664. }
  19665. },
  19666. "required": ["name", "status"],
  19667. "additionalProperties": false
  19668. },
  19669. "Mcp.LocalConfig": {
  19670. "type": "object",
  19671. "properties": {
  19672. "type": {
  19673. "type": "string",
  19674. "enum": ["local"]
  19675. },
  19676. "command": {
  19677. "type": "array",
  19678. "items": {
  19679. "type": "string"
  19680. }
  19681. },
  19682. "cwd": {
  19683. "type": "string"
  19684. },
  19685. "environment": {
  19686. "type": "object",
  19687. "additionalProperties": {
  19688. "type": "string"
  19689. }
  19690. },
  19691. "disabled": {
  19692. "type": "boolean"
  19693. },
  19694. "codemode": {
  19695. "type": "boolean"
  19696. },
  19697. "timeout": {
  19698. "type": "object",
  19699. "properties": {
  19700. "startup": {
  19701. "type": "integer",
  19702. "allOf": [
  19703. {
  19704. "exclusiveMinimum": 0
  19705. }
  19706. ]
  19707. },
  19708. "catalog": {
  19709. "type": "integer",
  19710. "allOf": [
  19711. {
  19712. "exclusiveMinimum": 0
  19713. }
  19714. ]
  19715. },
  19716. "execution": {
  19717. "type": "integer",
  19718. "allOf": [
  19719. {
  19720. "exclusiveMinimum": 0
  19721. }
  19722. ]
  19723. }
  19724. },
  19725. "additionalProperties": false
  19726. }
  19727. },
  19728. "required": ["type", "command"],
  19729. "additionalProperties": false
  19730. },
  19731. "Mcp.OAuthConfig": {
  19732. "type": "object",
  19733. "properties": {
  19734. "client_id": {
  19735. "type": "string"
  19736. },
  19737. "client_secret": {
  19738. "type": "string"
  19739. },
  19740. "scope": {
  19741. "type": "string"
  19742. },
  19743. "callback_port": {
  19744. "type": "integer",
  19745. "allOf": [
  19746. {
  19747. "minimum": 1,
  19748. "maximum": 65535
  19749. }
  19750. ]
  19751. },
  19752. "redirect_uri": {
  19753. "type": "string"
  19754. }
  19755. },
  19756. "additionalProperties": false
  19757. },
  19758. "Mcp.RemoteConfig": {
  19759. "type": "object",
  19760. "properties": {
  19761. "type": {
  19762. "type": "string",
  19763. "enum": ["remote"]
  19764. },
  19765. "url": {
  19766. "type": "string"
  19767. },
  19768. "headers": {
  19769. "type": "object",
  19770. "additionalProperties": {
  19771. "type": "string"
  19772. }
  19773. },
  19774. "oauth": {
  19775. "anyOf": [
  19776. {
  19777. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  19778. },
  19779. {
  19780. "type": "boolean",
  19781. "enum": [false]
  19782. }
  19783. ]
  19784. },
  19785. "disabled": {
  19786. "type": "boolean"
  19787. },
  19788. "codemode": {
  19789. "type": "boolean"
  19790. },
  19791. "timeout": {
  19792. "type": "object",
  19793. "properties": {
  19794. "startup": {
  19795. "type": "integer",
  19796. "allOf": [
  19797. {
  19798. "exclusiveMinimum": 0
  19799. }
  19800. ]
  19801. },
  19802. "catalog": {
  19803. "type": "integer",
  19804. "allOf": [
  19805. {
  19806. "exclusiveMinimum": 0
  19807. }
  19808. ]
  19809. },
  19810. "execution": {
  19811. "type": "integer",
  19812. "allOf": [
  19813. {
  19814. "exclusiveMinimum": 0
  19815. }
  19816. ]
  19817. }
  19818. },
  19819. "additionalProperties": false
  19820. }
  19821. },
  19822. "required": ["type", "url"],
  19823. "additionalProperties": false
  19824. },
  19825. "McpServerNotFoundError": {
  19826. "type": "object",
  19827. "properties": {
  19828. "_tag": {
  19829. "type": "string",
  19830. "enum": ["McpServerNotFoundError"]
  19831. },
  19832. "server": {
  19833. "type": "string"
  19834. },
  19835. "message": {
  19836. "type": "string"
  19837. }
  19838. },
  19839. "required": ["_tag", "server", "message"],
  19840. "additionalProperties": false
  19841. },
  19842. "Mcp.Resource": {
  19843. "type": "object",
  19844. "properties": {
  19845. "server": {
  19846. "type": "string"
  19847. },
  19848. "name": {
  19849. "type": "string"
  19850. },
  19851. "uri": {
  19852. "type": "string"
  19853. },
  19854. "description": {
  19855. "type": "string"
  19856. },
  19857. "mimeType": {
  19858. "type": "string"
  19859. }
  19860. },
  19861. "required": ["server", "name", "uri"],
  19862. "additionalProperties": false
  19863. },
  19864. "Mcp.ResourceTemplate": {
  19865. "type": "object",
  19866. "properties": {
  19867. "server": {
  19868. "type": "string"
  19869. },
  19870. "name": {
  19871. "type": "string"
  19872. },
  19873. "uriTemplate": {
  19874. "type": "string"
  19875. },
  19876. "description": {
  19877. "type": "string"
  19878. },
  19879. "mimeType": {
  19880. "type": "string"
  19881. }
  19882. },
  19883. "required": ["server", "name", "uriTemplate"],
  19884. "additionalProperties": false
  19885. },
  19886. "Mcp.ResourceCatalog": {
  19887. "type": "object",
  19888. "properties": {
  19889. "resources": {
  19890. "type": "array",
  19891. "items": {
  19892. "$ref": "#/components/schemas/Mcp.Resource"
  19893. }
  19894. },
  19895. "templates": {
  19896. "type": "array",
  19897. "items": {
  19898. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  19899. }
  19900. }
  19901. },
  19902. "required": ["resources", "templates"],
  19903. "additionalProperties": false
  19904. },
  19905. "Project.Vcs": {
  19906. "type": "string",
  19907. "enum": ["git", "hg"]
  19908. },
  19909. "Project.Icon": {
  19910. "type": "object",
  19911. "properties": {
  19912. "url": {
  19913. "type": "string"
  19914. },
  19915. "override": {
  19916. "type": "string"
  19917. },
  19918. "color": {
  19919. "type": "string"
  19920. }
  19921. },
  19922. "additionalProperties": false
  19923. },
  19924. "Project.Commands": {
  19925. "type": "object",
  19926. "properties": {
  19927. "start": {
  19928. "type": "string",
  19929. "description": "Startup script to run when creating a new workspace (worktree)"
  19930. }
  19931. },
  19932. "additionalProperties": false
  19933. },
  19934. "Project.Time": {
  19935. "type": "object",
  19936. "properties": {
  19937. "created": {
  19938. "type": "integer",
  19939. "allOf": [
  19940. {
  19941. "minimum": 0
  19942. }
  19943. ]
  19944. },
  19945. "updated": {
  19946. "type": "integer",
  19947. "allOf": [
  19948. {
  19949. "minimum": 0
  19950. }
  19951. ]
  19952. },
  19953. "initialized": {
  19954. "type": "integer",
  19955. "allOf": [
  19956. {
  19957. "minimum": 0
  19958. }
  19959. ]
  19960. }
  19961. },
  19962. "required": ["created", "updated"],
  19963. "additionalProperties": false
  19964. },
  19965. "Project": {
  19966. "type": "object",
  19967. "properties": {
  19968. "id": {
  19969. "type": "string"
  19970. },
  19971. "canonical": {
  19972. "type": "string"
  19973. },
  19974. "vcs": {
  19975. "$ref": "#/components/schemas/Project.Vcs"
  19976. },
  19977. "name": {
  19978. "type": "string"
  19979. },
  19980. "icon": {
  19981. "$ref": "#/components/schemas/Project.Icon"
  19982. },
  19983. "commands": {
  19984. "$ref": "#/components/schemas/Project.Commands"
  19985. },
  19986. "time": {
  19987. "$ref": "#/components/schemas/Project.Time"
  19988. },
  19989. "sandboxes": {
  19990. "type": "array",
  19991. "items": {
  19992. "type": "string"
  19993. }
  19994. }
  19995. },
  19996. "required": ["id", "canonical", "time", "sandboxes"],
  19997. "additionalProperties": false
  19998. },
  19999. "Project.Current": {
  20000. "type": "object",
  20001. "properties": {
  20002. "id": {
  20003. "type": "string"
  20004. },
  20005. "directory": {
  20006. "type": "string"
  20007. },
  20008. "canonical": {
  20009. "type": "string"
  20010. }
  20011. },
  20012. "required": ["id", "directory", "canonical"],
  20013. "additionalProperties": false
  20014. },
  20015. "Form.Metadata": {
  20016. "type": "object"
  20017. },
  20018. "Form.Info": {
  20019. "type": "object",
  20020. "properties": {
  20021. "id": {
  20022. "type": "string",
  20023. "allOf": [
  20024. {
  20025. "pattern": "^frm_"
  20026. }
  20027. ]
  20028. },
  20029. "sessionID": {
  20030. "type": "string"
  20031. },
  20032. "title": {
  20033. "type": "string"
  20034. },
  20035. "metadata": {
  20036. "$ref": "#/components/schemas/Form.Metadata"
  20037. },
  20038. "fields": {
  20039. "$ref": "#/components/schemas/Form.Fields"
  20040. }
  20041. },
  20042. "required": ["id", "sessionID", "title", "fields"],
  20043. "additionalProperties": false
  20044. },
  20045. "Form.CreatePayload": {
  20046. "type": "object",
  20047. "properties": {
  20048. "id": {
  20049. "anyOf": [
  20050. {
  20051. "type": "string",
  20052. "allOf": [
  20053. {
  20054. "pattern": "^frm_"
  20055. }
  20056. ]
  20057. },
  20058. {
  20059. "type": "null"
  20060. }
  20061. ]
  20062. },
  20063. "title": {
  20064. "type": "string"
  20065. },
  20066. "metadata": {
  20067. "$ref": "#/components/schemas/Form.Metadata"
  20068. },
  20069. "fields": {
  20070. "$ref": "#/components/schemas/Form.Fields"
  20071. }
  20072. },
  20073. "required": ["title", "fields"],
  20074. "additionalProperties": false
  20075. },
  20076. "FormNotFoundError": {
  20077. "type": "object",
  20078. "properties": {
  20079. "_tag": {
  20080. "type": "string",
  20081. "enum": ["FormNotFoundError"]
  20082. },
  20083. "id": {
  20084. "type": "string"
  20085. },
  20086. "message": {
  20087. "type": "string"
  20088. }
  20089. },
  20090. "required": ["_tag", "id", "message"],
  20091. "additionalProperties": false
  20092. },
  20093. "Form.State": {
  20094. "anyOf": [
  20095. {
  20096. "type": "object",
  20097. "properties": {
  20098. "status": {
  20099. "type": "string",
  20100. "enum": ["pending"]
  20101. }
  20102. },
  20103. "required": ["status"],
  20104. "additionalProperties": false
  20105. },
  20106. {
  20107. "type": "object",
  20108. "properties": {
  20109. "status": {
  20110. "type": "string",
  20111. "enum": ["answered"]
  20112. },
  20113. "answer": {
  20114. "$ref": "#/components/schemas/Form.Answer"
  20115. }
  20116. },
  20117. "required": ["status", "answer"],
  20118. "additionalProperties": false
  20119. },
  20120. {
  20121. "type": "object",
  20122. "properties": {
  20123. "status": {
  20124. "type": "string",
  20125. "enum": ["cancelled"]
  20126. }
  20127. },
  20128. "required": ["status"],
  20129. "additionalProperties": false
  20130. }
  20131. ]
  20132. },
  20133. "Form.Reply": {
  20134. "type": "object",
  20135. "properties": {
  20136. "answer": {
  20137. "$ref": "#/components/schemas/Form.Answer"
  20138. }
  20139. },
  20140. "required": ["answer"],
  20141. "additionalProperties": false
  20142. },
  20143. "FormAlreadySettledError": {
  20144. "type": "object",
  20145. "properties": {
  20146. "_tag": {
  20147. "type": "string",
  20148. "enum": ["FormAlreadySettledError"]
  20149. },
  20150. "id": {
  20151. "type": "string"
  20152. },
  20153. "message": {
  20154. "type": "string"
  20155. }
  20156. },
  20157. "required": ["_tag", "id", "message"],
  20158. "additionalProperties": false
  20159. },
  20160. "FormInvalidAnswerError": {
  20161. "type": "object",
  20162. "properties": {
  20163. "_tag": {
  20164. "type": "string",
  20165. "enum": ["FormInvalidAnswerError"]
  20166. },
  20167. "id": {
  20168. "type": "string"
  20169. },
  20170. "message": {
  20171. "type": "string"
  20172. }
  20173. },
  20174. "required": ["_tag", "id", "message"],
  20175. "additionalProperties": false
  20176. },
  20177. "Permission.Source": {
  20178. "anyOf": [
  20179. {
  20180. "type": "object",
  20181. "properties": {
  20182. "type": {
  20183. "type": "string",
  20184. "enum": ["tool"]
  20185. },
  20186. "messageID": {
  20187. "type": "string"
  20188. },
  20189. "id": {
  20190. "type": "string"
  20191. }
  20192. },
  20193. "required": ["type", "messageID", "id"],
  20194. "additionalProperties": false
  20195. }
  20196. ]
  20197. },
  20198. "Permission.Request": {
  20199. "type": "object",
  20200. "properties": {
  20201. "id": {
  20202. "type": "string",
  20203. "allOf": [
  20204. {
  20205. "pattern": "^per"
  20206. }
  20207. ]
  20208. },
  20209. "sessionID": {
  20210. "type": "string",
  20211. "allOf": [
  20212. {
  20213. "pattern": "^ses"
  20214. }
  20215. ]
  20216. },
  20217. "action": {
  20218. "type": "string"
  20219. },
  20220. "resources": {
  20221. "type": "array",
  20222. "items": {
  20223. "type": "string"
  20224. }
  20225. },
  20226. "save": {
  20227. "type": "array",
  20228. "items": {
  20229. "type": "string"
  20230. }
  20231. },
  20232. "metadata": {
  20233. "type": "object"
  20234. },
  20235. "source": {
  20236. "$ref": "#/components/schemas/Permission.Source"
  20237. }
  20238. },
  20239. "required": ["id", "sessionID", "action", "resources"],
  20240. "additionalProperties": false
  20241. },
  20242. "PermissionSaved.Info": {
  20243. "type": "object",
  20244. "properties": {
  20245. "id": {
  20246. "type": "string"
  20247. },
  20248. "projectID": {
  20249. "type": "string"
  20250. },
  20251. "action": {
  20252. "type": "string"
  20253. },
  20254. "resource": {
  20255. "type": "string"
  20256. }
  20257. },
  20258. "required": ["id", "projectID", "action", "resource"],
  20259. "additionalProperties": false
  20260. },
  20261. "PermissionNotFoundError": {
  20262. "type": "object",
  20263. "properties": {
  20264. "_tag": {
  20265. "type": "string",
  20266. "enum": ["PermissionNotFoundError"]
  20267. },
  20268. "requestID": {
  20269. "type": "string"
  20270. },
  20271. "message": {
  20272. "type": "string"
  20273. }
  20274. },
  20275. "required": ["_tag", "requestID", "message"],
  20276. "additionalProperties": false
  20277. },
  20278. "Permission.Reply": {
  20279. "type": "string",
  20280. "enum": ["once", "always", "reject"]
  20281. },
  20282. "FileSystem.Entry": {
  20283. "type": "object",
  20284. "properties": {
  20285. "path": {
  20286. "type": "string"
  20287. },
  20288. "type": {
  20289. "type": "string",
  20290. "enum": ["file", "directory"]
  20291. }
  20292. },
  20293. "required": ["path", "type"],
  20294. "additionalProperties": false
  20295. },
  20296. "Command.Info": {
  20297. "type": "object",
  20298. "properties": {
  20299. "name": {
  20300. "type": "string"
  20301. },
  20302. "template": {
  20303. "type": "string"
  20304. },
  20305. "description": {
  20306. "type": "string"
  20307. },
  20308. "agent": {
  20309. "type": "string"
  20310. },
  20311. "model": {
  20312. "$ref": "#/components/schemas/Model.Ref"
  20313. },
  20314. "subtask": {
  20315. "type": "boolean"
  20316. }
  20317. },
  20318. "required": ["name", "template"],
  20319. "additionalProperties": false
  20320. },
  20321. "Skill.Info": {
  20322. "type": "object",
  20323. "properties": {
  20324. "id": {
  20325. "type": "string"
  20326. },
  20327. "name": {
  20328. "type": "string"
  20329. },
  20330. "description": {
  20331. "type": "string"
  20332. },
  20333. "slash": {
  20334. "type": "boolean"
  20335. },
  20336. "autoinvoke": {
  20337. "type": "boolean"
  20338. },
  20339. "location": {
  20340. "type": "string"
  20341. },
  20342. "content": {
  20343. "type": "string"
  20344. }
  20345. },
  20346. "required": ["id", "name", "location", "content"],
  20347. "additionalProperties": false
  20348. },
  20349. "models-dev.refreshed": {
  20350. "type": "object",
  20351. "properties": {
  20352. "id": {
  20353. "type": "string",
  20354. "allOf": [
  20355. {
  20356. "pattern": "^evt_"
  20357. }
  20358. ]
  20359. },
  20360. "created": {
  20361. "type": "number"
  20362. },
  20363. "metadata": {
  20364. "type": "object"
  20365. },
  20366. "type": {
  20367. "type": "string",
  20368. "enum": ["models-dev.refreshed"]
  20369. },
  20370. "location": {
  20371. "$ref": "#/components/schemas/Location.Ref"
  20372. },
  20373. "data": {
  20374. "anyOf": [
  20375. {
  20376. "type": "object"
  20377. },
  20378. {
  20379. "type": "array"
  20380. }
  20381. ]
  20382. }
  20383. },
  20384. "required": ["id", "created", "type", "data"],
  20385. "additionalProperties": false
  20386. },
  20387. "integration.updated": {
  20388. "type": "object",
  20389. "properties": {
  20390. "id": {
  20391. "type": "string",
  20392. "allOf": [
  20393. {
  20394. "pattern": "^evt_"
  20395. }
  20396. ]
  20397. },
  20398. "created": {
  20399. "type": "number"
  20400. },
  20401. "metadata": {
  20402. "type": "object"
  20403. },
  20404. "type": {
  20405. "type": "string",
  20406. "enum": ["integration.updated"]
  20407. },
  20408. "location": {
  20409. "$ref": "#/components/schemas/Location.Ref"
  20410. },
  20411. "data": {
  20412. "anyOf": [
  20413. {
  20414. "type": "object"
  20415. },
  20416. {
  20417. "type": "array"
  20418. }
  20419. ]
  20420. }
  20421. },
  20422. "required": ["id", "created", "type", "data"],
  20423. "additionalProperties": false
  20424. },
  20425. "integration.connection.updated": {
  20426. "type": "object",
  20427. "properties": {
  20428. "id": {
  20429. "type": "string",
  20430. "allOf": [
  20431. {
  20432. "pattern": "^evt_"
  20433. }
  20434. ]
  20435. },
  20436. "created": {
  20437. "type": "number"
  20438. },
  20439. "metadata": {
  20440. "type": "object"
  20441. },
  20442. "type": {
  20443. "type": "string",
  20444. "enum": ["integration.connection.updated"]
  20445. },
  20446. "location": {
  20447. "$ref": "#/components/schemas/Location.Ref"
  20448. },
  20449. "data": {
  20450. "type": "object",
  20451. "properties": {
  20452. "integrationID": {
  20453. "type": "string"
  20454. }
  20455. },
  20456. "required": ["integrationID"],
  20457. "additionalProperties": false
  20458. }
  20459. },
  20460. "required": ["id", "created", "type", "data"],
  20461. "additionalProperties": false
  20462. },
  20463. "catalog.updated": {
  20464. "type": "object",
  20465. "properties": {
  20466. "id": {
  20467. "type": "string",
  20468. "allOf": [
  20469. {
  20470. "pattern": "^evt_"
  20471. }
  20472. ]
  20473. },
  20474. "created": {
  20475. "type": "number"
  20476. },
  20477. "metadata": {
  20478. "type": "object"
  20479. },
  20480. "type": {
  20481. "type": "string",
  20482. "enum": ["catalog.updated"]
  20483. },
  20484. "location": {
  20485. "$ref": "#/components/schemas/Location.Ref"
  20486. },
  20487. "data": {
  20488. "anyOf": [
  20489. {
  20490. "type": "object"
  20491. },
  20492. {
  20493. "type": "array"
  20494. }
  20495. ]
  20496. }
  20497. },
  20498. "required": ["id", "created", "type", "data"],
  20499. "additionalProperties": false
  20500. },
  20501. "agent.updated": {
  20502. "type": "object",
  20503. "properties": {
  20504. "id": {
  20505. "type": "string",
  20506. "allOf": [
  20507. {
  20508. "pattern": "^evt_"
  20509. }
  20510. ]
  20511. },
  20512. "created": {
  20513. "type": "number"
  20514. },
  20515. "metadata": {
  20516. "type": "object"
  20517. },
  20518. "type": {
  20519. "type": "string",
  20520. "enum": ["agent.updated"]
  20521. },
  20522. "location": {
  20523. "$ref": "#/components/schemas/Location.Ref"
  20524. },
  20525. "data": {
  20526. "anyOf": [
  20527. {
  20528. "type": "object"
  20529. },
  20530. {
  20531. "type": "array"
  20532. }
  20533. ]
  20534. }
  20535. },
  20536. "required": ["id", "created", "type", "data"],
  20537. "additionalProperties": false
  20538. },
  20539. "session.usage.updated": {
  20540. "type": "object",
  20541. "properties": {
  20542. "id": {
  20543. "type": "string",
  20544. "allOf": [
  20545. {
  20546. "pattern": "^evt_"
  20547. }
  20548. ]
  20549. },
  20550. "created": {
  20551. "type": "number"
  20552. },
  20553. "metadata": {
  20554. "type": "object"
  20555. },
  20556. "type": {
  20557. "type": "string",
  20558. "enum": ["session.usage.updated"]
  20559. },
  20560. "location": {
  20561. "$ref": "#/components/schemas/Location.Ref"
  20562. },
  20563. "data": {
  20564. "type": "object",
  20565. "properties": {
  20566. "sessionID": {
  20567. "type": "string",
  20568. "allOf": [
  20569. {
  20570. "pattern": "^ses"
  20571. }
  20572. ]
  20573. },
  20574. "cost": {
  20575. "$ref": "#/components/schemas/Money.USD"
  20576. },
  20577. "tokens": {
  20578. "$ref": "#/components/schemas/TokenUsage.Info"
  20579. }
  20580. },
  20581. "required": ["sessionID", "cost", "tokens"],
  20582. "additionalProperties": false
  20583. }
  20584. },
  20585. "required": ["id", "created", "type", "data"],
  20586. "additionalProperties": false
  20587. },
  20588. "session.text.delta": {
  20589. "type": "object",
  20590. "properties": {
  20591. "id": {
  20592. "type": "string",
  20593. "allOf": [
  20594. {
  20595. "pattern": "^evt_"
  20596. }
  20597. ]
  20598. },
  20599. "created": {
  20600. "type": "number"
  20601. },
  20602. "metadata": {
  20603. "type": "object"
  20604. },
  20605. "type": {
  20606. "type": "string",
  20607. "enum": ["session.text.delta"]
  20608. },
  20609. "location": {
  20610. "$ref": "#/components/schemas/Location.Ref"
  20611. },
  20612. "data": {
  20613. "type": "object",
  20614. "properties": {
  20615. "sessionID": {
  20616. "type": "string",
  20617. "allOf": [
  20618. {
  20619. "pattern": "^ses"
  20620. }
  20621. ]
  20622. },
  20623. "assistantMessageID": {
  20624. "type": "string",
  20625. "allOf": [
  20626. {
  20627. "pattern": "^msg_"
  20628. }
  20629. ]
  20630. },
  20631. "ordinal": {
  20632. "type": "integer",
  20633. "allOf": [
  20634. {
  20635. "minimum": 0
  20636. }
  20637. ]
  20638. },
  20639. "delta": {
  20640. "type": "string"
  20641. }
  20642. },
  20643. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20644. "additionalProperties": false
  20645. }
  20646. },
  20647. "required": ["id", "created", "type", "data"],
  20648. "additionalProperties": false
  20649. },
  20650. "session.reasoning.delta": {
  20651. "type": "object",
  20652. "properties": {
  20653. "id": {
  20654. "type": "string",
  20655. "allOf": [
  20656. {
  20657. "pattern": "^evt_"
  20658. }
  20659. ]
  20660. },
  20661. "created": {
  20662. "type": "number"
  20663. },
  20664. "metadata": {
  20665. "type": "object"
  20666. },
  20667. "type": {
  20668. "type": "string",
  20669. "enum": ["session.reasoning.delta"]
  20670. },
  20671. "location": {
  20672. "$ref": "#/components/schemas/Location.Ref"
  20673. },
  20674. "data": {
  20675. "type": "object",
  20676. "properties": {
  20677. "sessionID": {
  20678. "type": "string",
  20679. "allOf": [
  20680. {
  20681. "pattern": "^ses"
  20682. }
  20683. ]
  20684. },
  20685. "assistantMessageID": {
  20686. "type": "string",
  20687. "allOf": [
  20688. {
  20689. "pattern": "^msg_"
  20690. }
  20691. ]
  20692. },
  20693. "ordinal": {
  20694. "type": "integer",
  20695. "allOf": [
  20696. {
  20697. "minimum": 0
  20698. }
  20699. ]
  20700. },
  20701. "delta": {
  20702. "type": "string"
  20703. }
  20704. },
  20705. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20706. "additionalProperties": false
  20707. }
  20708. },
  20709. "required": ["id", "created", "type", "data"],
  20710. "additionalProperties": false
  20711. },
  20712. "session.tool.input.delta": {
  20713. "type": "object",
  20714. "properties": {
  20715. "id": {
  20716. "type": "string",
  20717. "allOf": [
  20718. {
  20719. "pattern": "^evt_"
  20720. }
  20721. ]
  20722. },
  20723. "created": {
  20724. "type": "number"
  20725. },
  20726. "metadata": {
  20727. "type": "object"
  20728. },
  20729. "type": {
  20730. "type": "string",
  20731. "enum": ["session.tool.input.delta"]
  20732. },
  20733. "location": {
  20734. "$ref": "#/components/schemas/Location.Ref"
  20735. },
  20736. "data": {
  20737. "type": "object",
  20738. "properties": {
  20739. "sessionID": {
  20740. "type": "string",
  20741. "allOf": [
  20742. {
  20743. "pattern": "^ses"
  20744. }
  20745. ]
  20746. },
  20747. "assistantMessageID": {
  20748. "type": "string",
  20749. "allOf": [
  20750. {
  20751. "pattern": "^msg_"
  20752. }
  20753. ]
  20754. },
  20755. "id": {
  20756. "type": "string"
  20757. },
  20758. "delta": {
  20759. "type": "string"
  20760. }
  20761. },
  20762. "required": ["sessionID", "assistantMessageID", "id", "delta"],
  20763. "additionalProperties": false
  20764. }
  20765. },
  20766. "required": ["id", "created", "type", "data"],
  20767. "additionalProperties": false
  20768. },
  20769. "session.tool.progress": {
  20770. "type": "object",
  20771. "properties": {
  20772. "id": {
  20773. "type": "string",
  20774. "allOf": [
  20775. {
  20776. "pattern": "^evt_"
  20777. }
  20778. ]
  20779. },
  20780. "created": {
  20781. "type": "number"
  20782. },
  20783. "metadata": {
  20784. "type": "object"
  20785. },
  20786. "type": {
  20787. "type": "string",
  20788. "enum": ["session.tool.progress"]
  20789. },
  20790. "location": {
  20791. "$ref": "#/components/schemas/Location.Ref"
  20792. },
  20793. "data": {
  20794. "type": "object",
  20795. "properties": {
  20796. "sessionID": {
  20797. "type": "string",
  20798. "allOf": [
  20799. {
  20800. "pattern": "^ses"
  20801. }
  20802. ]
  20803. },
  20804. "assistantMessageID": {
  20805. "type": "string",
  20806. "allOf": [
  20807. {
  20808. "pattern": "^msg_"
  20809. }
  20810. ]
  20811. },
  20812. "id": {
  20813. "type": "string"
  20814. },
  20815. "metadata": {
  20816. "type": "object"
  20817. }
  20818. },
  20819. "required": ["sessionID", "assistantMessageID", "id", "metadata"],
  20820. "additionalProperties": false
  20821. }
  20822. },
  20823. "required": ["id", "created", "type", "data"],
  20824. "additionalProperties": false
  20825. },
  20826. "session.compaction.delta": {
  20827. "type": "object",
  20828. "properties": {
  20829. "id": {
  20830. "type": "string",
  20831. "allOf": [
  20832. {
  20833. "pattern": "^evt_"
  20834. }
  20835. ]
  20836. },
  20837. "created": {
  20838. "type": "number"
  20839. },
  20840. "metadata": {
  20841. "type": "object"
  20842. },
  20843. "type": {
  20844. "type": "string",
  20845. "enum": ["session.compaction.delta"]
  20846. },
  20847. "location": {
  20848. "$ref": "#/components/schemas/Location.Ref"
  20849. },
  20850. "data": {
  20851. "type": "object",
  20852. "properties": {
  20853. "sessionID": {
  20854. "type": "string",
  20855. "allOf": [
  20856. {
  20857. "pattern": "^ses"
  20858. }
  20859. ]
  20860. },
  20861. "text": {
  20862. "type": "string"
  20863. }
  20864. },
  20865. "required": ["sessionID", "text"],
  20866. "additionalProperties": false
  20867. }
  20868. },
  20869. "required": ["id", "created", "type", "data"],
  20870. "additionalProperties": false
  20871. },
  20872. "filesystem.changed": {
  20873. "type": "object",
  20874. "properties": {
  20875. "id": {
  20876. "type": "string",
  20877. "allOf": [
  20878. {
  20879. "pattern": "^evt_"
  20880. }
  20881. ]
  20882. },
  20883. "created": {
  20884. "type": "number"
  20885. },
  20886. "metadata": {
  20887. "type": "object"
  20888. },
  20889. "type": {
  20890. "type": "string",
  20891. "enum": ["filesystem.changed"]
  20892. },
  20893. "location": {
  20894. "$ref": "#/components/schemas/Location.Ref"
  20895. },
  20896. "data": {
  20897. "type": "object",
  20898. "properties": {
  20899. "file": {
  20900. "type": "string"
  20901. },
  20902. "event": {
  20903. "type": "string",
  20904. "enum": ["add", "change", "unlink"]
  20905. }
  20906. },
  20907. "required": ["file", "event"],
  20908. "additionalProperties": false
  20909. }
  20910. },
  20911. "required": ["id", "created", "type", "data"],
  20912. "additionalProperties": false
  20913. },
  20914. "reference.updated": {
  20915. "type": "object",
  20916. "properties": {
  20917. "id": {
  20918. "type": "string",
  20919. "allOf": [
  20920. {
  20921. "pattern": "^evt_"
  20922. }
  20923. ]
  20924. },
  20925. "created": {
  20926. "type": "number"
  20927. },
  20928. "metadata": {
  20929. "type": "object"
  20930. },
  20931. "type": {
  20932. "type": "string",
  20933. "enum": ["reference.updated"]
  20934. },
  20935. "location": {
  20936. "$ref": "#/components/schemas/Location.Ref"
  20937. },
  20938. "data": {
  20939. "anyOf": [
  20940. {
  20941. "type": "object"
  20942. },
  20943. {
  20944. "type": "array"
  20945. }
  20946. ]
  20947. }
  20948. },
  20949. "required": ["id", "created", "type", "data"],
  20950. "additionalProperties": false
  20951. },
  20952. "permission.asked": {
  20953. "type": "object",
  20954. "properties": {
  20955. "id": {
  20956. "type": "string",
  20957. "allOf": [
  20958. {
  20959. "pattern": "^evt_"
  20960. }
  20961. ]
  20962. },
  20963. "created": {
  20964. "type": "number"
  20965. },
  20966. "metadata": {
  20967. "type": "object"
  20968. },
  20969. "type": {
  20970. "type": "string",
  20971. "enum": ["permission.asked"]
  20972. },
  20973. "location": {
  20974. "$ref": "#/components/schemas/Location.Ref"
  20975. },
  20976. "data": {
  20977. "type": "object",
  20978. "properties": {
  20979. "id": {
  20980. "type": "string",
  20981. "allOf": [
  20982. {
  20983. "pattern": "^per"
  20984. }
  20985. ]
  20986. },
  20987. "sessionID": {
  20988. "type": "string",
  20989. "allOf": [
  20990. {
  20991. "pattern": "^ses"
  20992. }
  20993. ]
  20994. },
  20995. "action": {
  20996. "type": "string"
  20997. },
  20998. "resources": {
  20999. "type": "array",
  21000. "items": {
  21001. "type": "string"
  21002. }
  21003. },
  21004. "save": {
  21005. "type": "array",
  21006. "items": {
  21007. "type": "string"
  21008. }
  21009. },
  21010. "metadata": {
  21011. "type": "object"
  21012. },
  21013. "source": {
  21014. "$ref": "#/components/schemas/Permission.Source"
  21015. }
  21016. },
  21017. "required": ["id", "sessionID", "action", "resources"],
  21018. "additionalProperties": false
  21019. }
  21020. },
  21021. "required": ["id", "created", "type", "data"],
  21022. "additionalProperties": false
  21023. },
  21024. "permission.replied": {
  21025. "type": "object",
  21026. "properties": {
  21027. "id": {
  21028. "type": "string",
  21029. "allOf": [
  21030. {
  21031. "pattern": "^evt_"
  21032. }
  21033. ]
  21034. },
  21035. "created": {
  21036. "type": "number"
  21037. },
  21038. "metadata": {
  21039. "type": "object"
  21040. },
  21041. "type": {
  21042. "type": "string",
  21043. "enum": ["permission.replied"]
  21044. },
  21045. "location": {
  21046. "$ref": "#/components/schemas/Location.Ref"
  21047. },
  21048. "data": {
  21049. "type": "object",
  21050. "properties": {
  21051. "sessionID": {
  21052. "type": "string",
  21053. "allOf": [
  21054. {
  21055. "pattern": "^ses"
  21056. }
  21057. ]
  21058. },
  21059. "requestID": {
  21060. "type": "string",
  21061. "allOf": [
  21062. {
  21063. "pattern": "^per"
  21064. }
  21065. ]
  21066. },
  21067. "reply": {
  21068. "$ref": "#/components/schemas/Permission.Reply"
  21069. }
  21070. },
  21071. "required": ["sessionID", "requestID", "reply"],
  21072. "additionalProperties": false
  21073. }
  21074. },
  21075. "required": ["id", "created", "type", "data"],
  21076. "additionalProperties": false
  21077. },
  21078. "plugin.added": {
  21079. "type": "object",
  21080. "properties": {
  21081. "id": {
  21082. "type": "string",
  21083. "allOf": [
  21084. {
  21085. "pattern": "^evt_"
  21086. }
  21087. ]
  21088. },
  21089. "created": {
  21090. "type": "number"
  21091. },
  21092. "metadata": {
  21093. "type": "object"
  21094. },
  21095. "type": {
  21096. "type": "string",
  21097. "enum": ["plugin.added"]
  21098. },
  21099. "location": {
  21100. "$ref": "#/components/schemas/Location.Ref"
  21101. },
  21102. "data": {
  21103. "type": "object",
  21104. "properties": {
  21105. "id": {
  21106. "type": "string"
  21107. }
  21108. },
  21109. "required": ["id"],
  21110. "additionalProperties": false
  21111. }
  21112. },
  21113. "required": ["id", "created", "type", "data"],
  21114. "additionalProperties": false
  21115. },
  21116. "plugin.updated": {
  21117. "type": "object",
  21118. "properties": {
  21119. "id": {
  21120. "type": "string",
  21121. "allOf": [
  21122. {
  21123. "pattern": "^evt_"
  21124. }
  21125. ]
  21126. },
  21127. "created": {
  21128. "type": "number"
  21129. },
  21130. "metadata": {
  21131. "type": "object"
  21132. },
  21133. "type": {
  21134. "type": "string",
  21135. "enum": ["plugin.updated"]
  21136. },
  21137. "location": {
  21138. "$ref": "#/components/schemas/Location.Ref"
  21139. },
  21140. "data": {
  21141. "anyOf": [
  21142. {
  21143. "type": "object"
  21144. },
  21145. {
  21146. "type": "array"
  21147. }
  21148. ]
  21149. }
  21150. },
  21151. "required": ["id", "created", "type", "data"],
  21152. "additionalProperties": false
  21153. },
  21154. "worktree.updated": {
  21155. "type": "object",
  21156. "properties": {
  21157. "id": {
  21158. "type": "string",
  21159. "allOf": [
  21160. {
  21161. "pattern": "^evt_"
  21162. }
  21163. ]
  21164. },
  21165. "created": {
  21166. "type": "number"
  21167. },
  21168. "metadata": {
  21169. "type": "object"
  21170. },
  21171. "type": {
  21172. "type": "string",
  21173. "enum": ["worktree.updated"]
  21174. },
  21175. "location": {
  21176. "$ref": "#/components/schemas/Location.Ref"
  21177. },
  21178. "data": {
  21179. "type": "object",
  21180. "properties": {
  21181. "projectID": {
  21182. "type": "string"
  21183. }
  21184. },
  21185. "required": ["projectID"],
  21186. "additionalProperties": false
  21187. }
  21188. },
  21189. "required": ["id", "created", "type", "data"],
  21190. "additionalProperties": false
  21191. },
  21192. "worktree.resolved": {
  21193. "type": "object",
  21194. "properties": {
  21195. "id": {
  21196. "type": "string",
  21197. "allOf": [
  21198. {
  21199. "pattern": "^evt_"
  21200. }
  21201. ]
  21202. },
  21203. "created": {
  21204. "type": "number"
  21205. },
  21206. "metadata": {
  21207. "type": "object"
  21208. },
  21209. "type": {
  21210. "type": "string",
  21211. "enum": ["worktree.resolved"]
  21212. },
  21213. "durable": {
  21214. "type": "object",
  21215. "properties": {
  21216. "aggregateID": {
  21217. "type": "string"
  21218. },
  21219. "seq": {
  21220. "type": "integer",
  21221. "allOf": [
  21222. {
  21223. "minimum": 0
  21224. }
  21225. ]
  21226. },
  21227. "version": {
  21228. "type": "number",
  21229. "enum": [1]
  21230. }
  21231. },
  21232. "required": ["aggregateID", "seq", "version"],
  21233. "additionalProperties": false
  21234. },
  21235. "location": {
  21236. "$ref": "#/components/schemas/Location.Ref"
  21237. },
  21238. "data": {
  21239. "type": "object",
  21240. "properties": {
  21241. "projectID": {
  21242. "type": "string"
  21243. },
  21244. "directory": {
  21245. "type": "string"
  21246. },
  21247. "previous": {
  21248. "type": "string"
  21249. }
  21250. },
  21251. "required": ["projectID", "directory", "previous"],
  21252. "additionalProperties": false
  21253. }
  21254. },
  21255. "required": ["id", "created", "type", "durable", "data"],
  21256. "additionalProperties": false
  21257. },
  21258. "command.updated": {
  21259. "type": "object",
  21260. "properties": {
  21261. "id": {
  21262. "type": "string",
  21263. "allOf": [
  21264. {
  21265. "pattern": "^evt_"
  21266. }
  21267. ]
  21268. },
  21269. "created": {
  21270. "type": "number"
  21271. },
  21272. "metadata": {
  21273. "type": "object"
  21274. },
  21275. "type": {
  21276. "type": "string",
  21277. "enum": ["command.updated"]
  21278. },
  21279. "location": {
  21280. "$ref": "#/components/schemas/Location.Ref"
  21281. },
  21282. "data": {
  21283. "anyOf": [
  21284. {
  21285. "type": "object"
  21286. },
  21287. {
  21288. "type": "array"
  21289. }
  21290. ]
  21291. }
  21292. },
  21293. "required": ["id", "created", "type", "data"],
  21294. "additionalProperties": false
  21295. },
  21296. "config.updated": {
  21297. "type": "object",
  21298. "properties": {
  21299. "id": {
  21300. "type": "string",
  21301. "allOf": [
  21302. {
  21303. "pattern": "^evt_"
  21304. }
  21305. ]
  21306. },
  21307. "created": {
  21308. "type": "number"
  21309. },
  21310. "metadata": {
  21311. "type": "object"
  21312. },
  21313. "type": {
  21314. "type": "string",
  21315. "enum": ["config.updated"]
  21316. },
  21317. "location": {
  21318. "$ref": "#/components/schemas/Location.Ref"
  21319. },
  21320. "data": {
  21321. "anyOf": [
  21322. {
  21323. "type": "object"
  21324. },
  21325. {
  21326. "type": "array"
  21327. }
  21328. ]
  21329. }
  21330. },
  21331. "required": ["id", "created", "type", "data"],
  21332. "additionalProperties": false
  21333. },
  21334. "skill.updated": {
  21335. "type": "object",
  21336. "properties": {
  21337. "id": {
  21338. "type": "string",
  21339. "allOf": [
  21340. {
  21341. "pattern": "^evt_"
  21342. }
  21343. ]
  21344. },
  21345. "created": {
  21346. "type": "number"
  21347. },
  21348. "metadata": {
  21349. "type": "object"
  21350. },
  21351. "type": {
  21352. "type": "string",
  21353. "enum": ["skill.updated"]
  21354. },
  21355. "location": {
  21356. "$ref": "#/components/schemas/Location.Ref"
  21357. },
  21358. "data": {
  21359. "anyOf": [
  21360. {
  21361. "type": "object"
  21362. },
  21363. {
  21364. "type": "array"
  21365. }
  21366. ]
  21367. }
  21368. },
  21369. "required": ["id", "created", "type", "data"],
  21370. "additionalProperties": false
  21371. },
  21372. "Pty": {
  21373. "type": "object",
  21374. "properties": {
  21375. "id": {
  21376. "type": "string",
  21377. "allOf": [
  21378. {
  21379. "pattern": "^pty"
  21380. }
  21381. ]
  21382. },
  21383. "title": {
  21384. "type": "string"
  21385. },
  21386. "command": {
  21387. "type": "string"
  21388. },
  21389. "args": {
  21390. "type": "array",
  21391. "items": {
  21392. "type": "string"
  21393. }
  21394. },
  21395. "cwd": {
  21396. "type": "string"
  21397. },
  21398. "status": {
  21399. "type": "string",
  21400. "enum": ["running", "exited"]
  21401. },
  21402. "pid": {
  21403. "type": "integer",
  21404. "allOf": [
  21405. {
  21406. "minimum": 0
  21407. }
  21408. ]
  21409. },
  21410. "exitCode": {
  21411. "type": "integer",
  21412. "allOf": [
  21413. {
  21414. "minimum": 0
  21415. }
  21416. ]
  21417. }
  21418. },
  21419. "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
  21420. "additionalProperties": false
  21421. },
  21422. "pty.created": {
  21423. "type": "object",
  21424. "properties": {
  21425. "id": {
  21426. "type": "string",
  21427. "allOf": [
  21428. {
  21429. "pattern": "^evt_"
  21430. }
  21431. ]
  21432. },
  21433. "created": {
  21434. "type": "number"
  21435. },
  21436. "metadata": {
  21437. "type": "object"
  21438. },
  21439. "type": {
  21440. "type": "string",
  21441. "enum": ["pty.created"]
  21442. },
  21443. "location": {
  21444. "$ref": "#/components/schemas/Location.Ref"
  21445. },
  21446. "data": {
  21447. "type": "object",
  21448. "properties": {
  21449. "info": {
  21450. "$ref": "#/components/schemas/Pty"
  21451. }
  21452. },
  21453. "required": ["info"],
  21454. "additionalProperties": false
  21455. }
  21456. },
  21457. "required": ["id", "created", "type", "data"],
  21458. "additionalProperties": false
  21459. },
  21460. "pty.updated": {
  21461. "type": "object",
  21462. "properties": {
  21463. "id": {
  21464. "type": "string",
  21465. "allOf": [
  21466. {
  21467. "pattern": "^evt_"
  21468. }
  21469. ]
  21470. },
  21471. "created": {
  21472. "type": "number"
  21473. },
  21474. "metadata": {
  21475. "type": "object"
  21476. },
  21477. "type": {
  21478. "type": "string",
  21479. "enum": ["pty.updated"]
  21480. },
  21481. "location": {
  21482. "$ref": "#/components/schemas/Location.Ref"
  21483. },
  21484. "data": {
  21485. "type": "object",
  21486. "properties": {
  21487. "info": {
  21488. "$ref": "#/components/schemas/Pty"
  21489. }
  21490. },
  21491. "required": ["info"],
  21492. "additionalProperties": false
  21493. }
  21494. },
  21495. "required": ["id", "created", "type", "data"],
  21496. "additionalProperties": false
  21497. },
  21498. "pty.exited": {
  21499. "type": "object",
  21500. "properties": {
  21501. "id": {
  21502. "type": "string",
  21503. "allOf": [
  21504. {
  21505. "pattern": "^evt_"
  21506. }
  21507. ]
  21508. },
  21509. "created": {
  21510. "type": "number"
  21511. },
  21512. "metadata": {
  21513. "type": "object"
  21514. },
  21515. "type": {
  21516. "type": "string",
  21517. "enum": ["pty.exited"]
  21518. },
  21519. "location": {
  21520. "$ref": "#/components/schemas/Location.Ref"
  21521. },
  21522. "data": {
  21523. "type": "object",
  21524. "properties": {
  21525. "id": {
  21526. "type": "string",
  21527. "allOf": [
  21528. {
  21529. "pattern": "^pty"
  21530. }
  21531. ]
  21532. },
  21533. "exitCode": {
  21534. "type": "integer",
  21535. "allOf": [
  21536. {
  21537. "minimum": 0
  21538. }
  21539. ]
  21540. }
  21541. },
  21542. "required": ["id", "exitCode"],
  21543. "additionalProperties": false
  21544. }
  21545. },
  21546. "required": ["id", "created", "type", "data"],
  21547. "additionalProperties": false
  21548. },
  21549. "pty.deleted": {
  21550. "type": "object",
  21551. "properties": {
  21552. "id": {
  21553. "type": "string",
  21554. "allOf": [
  21555. {
  21556. "pattern": "^evt_"
  21557. }
  21558. ]
  21559. },
  21560. "created": {
  21561. "type": "number"
  21562. },
  21563. "metadata": {
  21564. "type": "object"
  21565. },
  21566. "type": {
  21567. "type": "string",
  21568. "enum": ["pty.deleted"]
  21569. },
  21570. "location": {
  21571. "$ref": "#/components/schemas/Location.Ref"
  21572. },
  21573. "data": {
  21574. "type": "object",
  21575. "properties": {
  21576. "id": {
  21577. "type": "string",
  21578. "allOf": [
  21579. {
  21580. "pattern": "^pty"
  21581. }
  21582. ]
  21583. }
  21584. },
  21585. "required": ["id"],
  21586. "additionalProperties": false
  21587. }
  21588. },
  21589. "required": ["id", "created", "type", "data"],
  21590. "additionalProperties": false
  21591. },
  21592. "shell.created": {
  21593. "type": "object",
  21594. "properties": {
  21595. "id": {
  21596. "type": "string",
  21597. "allOf": [
  21598. {
  21599. "pattern": "^evt_"
  21600. }
  21601. ]
  21602. },
  21603. "created": {
  21604. "type": "number"
  21605. },
  21606. "metadata": {
  21607. "type": "object"
  21608. },
  21609. "type": {
  21610. "type": "string",
  21611. "enum": ["shell.created"]
  21612. },
  21613. "location": {
  21614. "$ref": "#/components/schemas/Location.Ref"
  21615. },
  21616. "data": {
  21617. "type": "object",
  21618. "properties": {
  21619. "info": {
  21620. "$ref": "#/components/schemas/Shell.Info"
  21621. }
  21622. },
  21623. "required": ["info"],
  21624. "additionalProperties": false
  21625. }
  21626. },
  21627. "required": ["id", "created", "type", "data"],
  21628. "additionalProperties": false
  21629. },
  21630. "shell.exited": {
  21631. "type": "object",
  21632. "properties": {
  21633. "id": {
  21634. "type": "string",
  21635. "allOf": [
  21636. {
  21637. "pattern": "^evt_"
  21638. }
  21639. ]
  21640. },
  21641. "created": {
  21642. "type": "number"
  21643. },
  21644. "metadata": {
  21645. "type": "object"
  21646. },
  21647. "type": {
  21648. "type": "string",
  21649. "enum": ["shell.exited"]
  21650. },
  21651. "location": {
  21652. "$ref": "#/components/schemas/Location.Ref"
  21653. },
  21654. "data": {
  21655. "type": "object",
  21656. "properties": {
  21657. "id": {
  21658. "type": "string",
  21659. "allOf": [
  21660. {
  21661. "pattern": "^sh_"
  21662. }
  21663. ]
  21664. },
  21665. "exit": {
  21666. "type": "number"
  21667. },
  21668. "status": {
  21669. "type": "string",
  21670. "enum": ["running", "exited", "timeout", "killed"]
  21671. }
  21672. },
  21673. "required": ["id", "status"],
  21674. "additionalProperties": false
  21675. }
  21676. },
  21677. "required": ["id", "created", "type", "data"],
  21678. "additionalProperties": false
  21679. },
  21680. "shell.deleted": {
  21681. "type": "object",
  21682. "properties": {
  21683. "id": {
  21684. "type": "string",
  21685. "allOf": [
  21686. {
  21687. "pattern": "^evt_"
  21688. }
  21689. ]
  21690. },
  21691. "created": {
  21692. "type": "number"
  21693. },
  21694. "metadata": {
  21695. "type": "object"
  21696. },
  21697. "type": {
  21698. "type": "string",
  21699. "enum": ["shell.deleted"]
  21700. },
  21701. "location": {
  21702. "$ref": "#/components/schemas/Location.Ref"
  21703. },
  21704. "data": {
  21705. "type": "object",
  21706. "properties": {
  21707. "id": {
  21708. "type": "string",
  21709. "allOf": [
  21710. {
  21711. "pattern": "^sh_"
  21712. }
  21713. ]
  21714. }
  21715. },
  21716. "required": ["id"],
  21717. "additionalProperties": false
  21718. }
  21719. },
  21720. "required": ["id", "created", "type", "data"],
  21721. "additionalProperties": false
  21722. },
  21723. "Question.Option": {
  21724. "type": "object",
  21725. "properties": {
  21726. "label": {
  21727. "type": "string",
  21728. "description": "Display text (1-5 words, concise)"
  21729. },
  21730. "description": {
  21731. "type": "string",
  21732. "description": "Explanation of choice"
  21733. }
  21734. },
  21735. "required": ["label", "description"],
  21736. "additionalProperties": false
  21737. },
  21738. "Question.Info": {
  21739. "type": "object",
  21740. "properties": {
  21741. "question": {
  21742. "type": "string",
  21743. "description": "Complete question"
  21744. },
  21745. "header": {
  21746. "type": "string",
  21747. "description": "Very short label (max 30 chars)"
  21748. },
  21749. "options": {
  21750. "type": "array",
  21751. "items": {
  21752. "$ref": "#/components/schemas/Question.Option"
  21753. },
  21754. "description": "Available choices"
  21755. },
  21756. "multiple": {
  21757. "type": "boolean"
  21758. },
  21759. "custom": {
  21760. "type": "boolean"
  21761. }
  21762. },
  21763. "required": ["question", "header", "options"],
  21764. "additionalProperties": false
  21765. },
  21766. "Question.Tool": {
  21767. "type": "object",
  21768. "properties": {
  21769. "messageID": {
  21770. "type": "string"
  21771. },
  21772. "id": {
  21773. "type": "string"
  21774. }
  21775. },
  21776. "required": ["messageID", "id"],
  21777. "additionalProperties": false
  21778. },
  21779. "question.asked": {
  21780. "type": "object",
  21781. "properties": {
  21782. "id": {
  21783. "type": "string",
  21784. "allOf": [
  21785. {
  21786. "pattern": "^evt_"
  21787. }
  21788. ]
  21789. },
  21790. "created": {
  21791. "type": "number"
  21792. },
  21793. "metadata": {
  21794. "type": "object"
  21795. },
  21796. "type": {
  21797. "type": "string",
  21798. "enum": ["question.asked"]
  21799. },
  21800. "location": {
  21801. "$ref": "#/components/schemas/Location.Ref"
  21802. },
  21803. "data": {
  21804. "type": "object",
  21805. "properties": {
  21806. "id": {
  21807. "type": "string",
  21808. "allOf": [
  21809. {
  21810. "pattern": "^que"
  21811. }
  21812. ]
  21813. },
  21814. "sessionID": {
  21815. "type": "string",
  21816. "allOf": [
  21817. {
  21818. "pattern": "^ses"
  21819. }
  21820. ]
  21821. },
  21822. "questions": {
  21823. "type": "array",
  21824. "items": {
  21825. "$ref": "#/components/schemas/Question.Info"
  21826. },
  21827. "description": "Questions to ask"
  21828. },
  21829. "tool": {
  21830. "$ref": "#/components/schemas/Question.Tool"
  21831. }
  21832. },
  21833. "required": ["id", "sessionID", "questions"],
  21834. "additionalProperties": false
  21835. }
  21836. },
  21837. "required": ["id", "created", "type", "data"],
  21838. "additionalProperties": false
  21839. },
  21840. "Question.Answer": {
  21841. "type": "array",
  21842. "items": {
  21843. "type": "string"
  21844. }
  21845. },
  21846. "question.replied": {
  21847. "type": "object",
  21848. "properties": {
  21849. "id": {
  21850. "type": "string",
  21851. "allOf": [
  21852. {
  21853. "pattern": "^evt_"
  21854. }
  21855. ]
  21856. },
  21857. "created": {
  21858. "type": "number"
  21859. },
  21860. "metadata": {
  21861. "type": "object"
  21862. },
  21863. "type": {
  21864. "type": "string",
  21865. "enum": ["question.replied"]
  21866. },
  21867. "location": {
  21868. "$ref": "#/components/schemas/Location.Ref"
  21869. },
  21870. "data": {
  21871. "type": "object",
  21872. "properties": {
  21873. "sessionID": {
  21874. "type": "string",
  21875. "allOf": [
  21876. {
  21877. "pattern": "^ses"
  21878. }
  21879. ]
  21880. },
  21881. "requestID": {
  21882. "type": "string",
  21883. "allOf": [
  21884. {
  21885. "pattern": "^que"
  21886. }
  21887. ]
  21888. },
  21889. "answers": {
  21890. "type": "array",
  21891. "items": {
  21892. "$ref": "#/components/schemas/Question.Answer"
  21893. }
  21894. }
  21895. },
  21896. "required": ["sessionID", "requestID", "answers"],
  21897. "additionalProperties": false
  21898. }
  21899. },
  21900. "required": ["id", "created", "type", "data"],
  21901. "additionalProperties": false
  21902. },
  21903. "question.rejected": {
  21904. "type": "object",
  21905. "properties": {
  21906. "id": {
  21907. "type": "string",
  21908. "allOf": [
  21909. {
  21910. "pattern": "^evt_"
  21911. }
  21912. ]
  21913. },
  21914. "created": {
  21915. "type": "number"
  21916. },
  21917. "metadata": {
  21918. "type": "object"
  21919. },
  21920. "type": {
  21921. "type": "string",
  21922. "enum": ["question.rejected"]
  21923. },
  21924. "location": {
  21925. "$ref": "#/components/schemas/Location.Ref"
  21926. },
  21927. "data": {
  21928. "type": "object",
  21929. "properties": {
  21930. "sessionID": {
  21931. "type": "string",
  21932. "allOf": [
  21933. {
  21934. "pattern": "^ses"
  21935. }
  21936. ]
  21937. },
  21938. "requestID": {
  21939. "type": "string",
  21940. "allOf": [
  21941. {
  21942. "pattern": "^que"
  21943. }
  21944. ]
  21945. }
  21946. },
  21947. "required": ["sessionID", "requestID"],
  21948. "additionalProperties": false
  21949. }
  21950. },
  21951. "required": ["id", "created", "type", "data"],
  21952. "additionalProperties": false
  21953. },
  21954. "Form.Metadata1": {
  21955. "type": "object"
  21956. },
  21957. "Form.When1": {
  21958. "type": "object",
  21959. "properties": {
  21960. "key": {
  21961. "type": "string"
  21962. },
  21963. "op": {
  21964. "type": "string",
  21965. "enum": ["eq", "neq"]
  21966. },
  21967. "value": {
  21968. "anyOf": [
  21969. {
  21970. "type": "string"
  21971. },
  21972. {
  21973. "anyOf": [
  21974. {
  21975. "type": "number"
  21976. },
  21977. {
  21978. "type": "string",
  21979. "enum": ["NaN"]
  21980. },
  21981. {
  21982. "type": "string",
  21983. "enum": ["Infinity"]
  21984. },
  21985. {
  21986. "type": "string",
  21987. "enum": ["-Infinity"]
  21988. }
  21989. ]
  21990. },
  21991. {
  21992. "type": "boolean"
  21993. }
  21994. ]
  21995. }
  21996. },
  21997. "required": ["key", "op", "value"],
  21998. "additionalProperties": false
  21999. },
  22000. "Form.StringField1": {
  22001. "type": "object",
  22002. "properties": {
  22003. "key": {
  22004. "type": "string"
  22005. },
  22006. "title": {
  22007. "type": "string"
  22008. },
  22009. "description": {
  22010. "type": "string"
  22011. },
  22012. "required": {
  22013. "type": "boolean"
  22014. },
  22015. "when": {
  22016. "type": "array",
  22017. "items": {
  22018. "$ref": "#/components/schemas/Form.When1"
  22019. }
  22020. },
  22021. "type": {
  22022. "type": "string",
  22023. "enum": ["string"]
  22024. },
  22025. "format": {
  22026. "type": "string",
  22027. "enum": ["email", "uri", "date", "date-time"]
  22028. },
  22029. "minLength": {
  22030. "type": "integer",
  22031. "allOf": [
  22032. {
  22033. "minimum": 0
  22034. }
  22035. ]
  22036. },
  22037. "maxLength": {
  22038. "type": "integer",
  22039. "allOf": [
  22040. {
  22041. "minimum": 0
  22042. }
  22043. ]
  22044. },
  22045. "pattern": {
  22046. "type": "string"
  22047. },
  22048. "placeholder": {
  22049. "type": "string"
  22050. },
  22051. "default": {
  22052. "type": "string"
  22053. },
  22054. "options": {
  22055. "type": "array",
  22056. "items": {
  22057. "$ref": "#/components/schemas/Form.Option"
  22058. }
  22059. },
  22060. "custom": {
  22061. "type": "boolean"
  22062. }
  22063. },
  22064. "required": ["key", "type"],
  22065. "additionalProperties": false
  22066. },
  22067. "Form.NumberField1": {
  22068. "type": "object",
  22069. "properties": {
  22070. "key": {
  22071. "type": "string"
  22072. },
  22073. "title": {
  22074. "type": "string"
  22075. },
  22076. "description": {
  22077. "type": "string"
  22078. },
  22079. "required": {
  22080. "type": "boolean"
  22081. },
  22082. "when": {
  22083. "type": "array",
  22084. "items": {
  22085. "$ref": "#/components/schemas/Form.When1"
  22086. }
  22087. },
  22088. "type": {
  22089. "type": "string",
  22090. "enum": ["number"]
  22091. },
  22092. "minimum": {
  22093. "anyOf": [
  22094. {
  22095. "type": "number"
  22096. },
  22097. {
  22098. "type": "string",
  22099. "enum": ["NaN"]
  22100. },
  22101. {
  22102. "type": "string",
  22103. "enum": ["Infinity"]
  22104. },
  22105. {
  22106. "type": "string",
  22107. "enum": ["-Infinity"]
  22108. }
  22109. ]
  22110. },
  22111. "maximum": {
  22112. "anyOf": [
  22113. {
  22114. "type": "number"
  22115. },
  22116. {
  22117. "type": "string",
  22118. "enum": ["NaN"]
  22119. },
  22120. {
  22121. "type": "string",
  22122. "enum": ["Infinity"]
  22123. },
  22124. {
  22125. "type": "string",
  22126. "enum": ["-Infinity"]
  22127. }
  22128. ]
  22129. },
  22130. "default": {
  22131. "anyOf": [
  22132. {
  22133. "type": "number"
  22134. },
  22135. {
  22136. "type": "string",
  22137. "enum": ["NaN"]
  22138. },
  22139. {
  22140. "type": "string",
  22141. "enum": ["Infinity"]
  22142. },
  22143. {
  22144. "type": "string",
  22145. "enum": ["-Infinity"]
  22146. }
  22147. ]
  22148. }
  22149. },
  22150. "required": ["key", "type"],
  22151. "additionalProperties": false
  22152. },
  22153. "Form.IntegerField1": {
  22154. "type": "object",
  22155. "properties": {
  22156. "key": {
  22157. "type": "string"
  22158. },
  22159. "title": {
  22160. "type": "string"
  22161. },
  22162. "description": {
  22163. "type": "string"
  22164. },
  22165. "required": {
  22166. "type": "boolean"
  22167. },
  22168. "when": {
  22169. "type": "array",
  22170. "items": {
  22171. "$ref": "#/components/schemas/Form.When1"
  22172. }
  22173. },
  22174. "type": {
  22175. "type": "string",
  22176. "enum": ["integer"]
  22177. },
  22178. "minimum": {
  22179. "anyOf": [
  22180. {
  22181. "type": "number"
  22182. },
  22183. {
  22184. "type": "string",
  22185. "enum": ["NaN"]
  22186. },
  22187. {
  22188. "type": "string",
  22189. "enum": ["Infinity"]
  22190. },
  22191. {
  22192. "type": "string",
  22193. "enum": ["-Infinity"]
  22194. }
  22195. ]
  22196. },
  22197. "maximum": {
  22198. "anyOf": [
  22199. {
  22200. "type": "number"
  22201. },
  22202. {
  22203. "type": "string",
  22204. "enum": ["NaN"]
  22205. },
  22206. {
  22207. "type": "string",
  22208. "enum": ["Infinity"]
  22209. },
  22210. {
  22211. "type": "string",
  22212. "enum": ["-Infinity"]
  22213. }
  22214. ]
  22215. },
  22216. "default": {
  22217. "anyOf": [
  22218. {
  22219. "type": "number"
  22220. },
  22221. {
  22222. "type": "string",
  22223. "enum": ["NaN"]
  22224. },
  22225. {
  22226. "type": "string",
  22227. "enum": ["Infinity"]
  22228. },
  22229. {
  22230. "type": "string",
  22231. "enum": ["-Infinity"]
  22232. }
  22233. ]
  22234. }
  22235. },
  22236. "required": ["key", "type"],
  22237. "additionalProperties": false
  22238. },
  22239. "Form.BooleanField1": {
  22240. "type": "object",
  22241. "properties": {
  22242. "key": {
  22243. "type": "string"
  22244. },
  22245. "title": {
  22246. "type": "string"
  22247. },
  22248. "description": {
  22249. "type": "string"
  22250. },
  22251. "required": {
  22252. "type": "boolean"
  22253. },
  22254. "when": {
  22255. "type": "array",
  22256. "items": {
  22257. "$ref": "#/components/schemas/Form.When1"
  22258. }
  22259. },
  22260. "type": {
  22261. "type": "string",
  22262. "enum": ["boolean"]
  22263. },
  22264. "default": {
  22265. "type": "boolean"
  22266. }
  22267. },
  22268. "required": ["key", "type"],
  22269. "additionalProperties": false
  22270. },
  22271. "Form.MultiselectField1": {
  22272. "type": "object",
  22273. "properties": {
  22274. "key": {
  22275. "type": "string"
  22276. },
  22277. "title": {
  22278. "type": "string"
  22279. },
  22280. "description": {
  22281. "type": "string"
  22282. },
  22283. "required": {
  22284. "type": "boolean"
  22285. },
  22286. "when": {
  22287. "type": "array",
  22288. "items": {
  22289. "$ref": "#/components/schemas/Form.When1"
  22290. }
  22291. },
  22292. "type": {
  22293. "type": "string",
  22294. "enum": ["multiselect"]
  22295. },
  22296. "options": {
  22297. "type": "array",
  22298. "items": {
  22299. "$ref": "#/components/schemas/Form.Option"
  22300. }
  22301. },
  22302. "minItems": {
  22303. "type": "integer",
  22304. "allOf": [
  22305. {
  22306. "minimum": 0
  22307. }
  22308. ]
  22309. },
  22310. "maxItems": {
  22311. "type": "integer",
  22312. "allOf": [
  22313. {
  22314. "minimum": 0
  22315. }
  22316. ]
  22317. },
  22318. "custom": {
  22319. "type": "boolean"
  22320. },
  22321. "default": {
  22322. "type": "array",
  22323. "items": {
  22324. "type": "string"
  22325. }
  22326. }
  22327. },
  22328. "required": ["key", "type", "options"],
  22329. "additionalProperties": false
  22330. },
  22331. "Form.Field1": {
  22332. "anyOf": [
  22333. {
  22334. "$ref": "#/components/schemas/Form.StringField1"
  22335. },
  22336. {
  22337. "$ref": "#/components/schemas/Form.NumberField1"
  22338. },
  22339. {
  22340. "$ref": "#/components/schemas/Form.IntegerField1"
  22341. },
  22342. {
  22343. "$ref": "#/components/schemas/Form.BooleanField1"
  22344. },
  22345. {
  22346. "$ref": "#/components/schemas/Form.MultiselectField1"
  22347. },
  22348. {
  22349. "$ref": "#/components/schemas/Form.ExternalField"
  22350. }
  22351. ]
  22352. },
  22353. "Form.Fields3": {
  22354. "type": "array",
  22355. "prefixItems": [
  22356. {
  22357. "$ref": "#/components/schemas/Form.Field1"
  22358. }
  22359. ],
  22360. "minItems": 1,
  22361. "items": {
  22362. "$ref": "#/components/schemas/Form.Field1"
  22363. }
  22364. },
  22365. "Form.Info1": {
  22366. "type": "object",
  22367. "properties": {
  22368. "id": {
  22369. "type": "string",
  22370. "allOf": [
  22371. {
  22372. "pattern": "^frm_"
  22373. }
  22374. ]
  22375. },
  22376. "sessionID": {
  22377. "type": "string"
  22378. },
  22379. "title": {
  22380. "type": "string"
  22381. },
  22382. "metadata": {
  22383. "$ref": "#/components/schemas/Form.Metadata1"
  22384. },
  22385. "fields": {
  22386. "$ref": "#/components/schemas/Form.Fields3"
  22387. }
  22388. },
  22389. "required": ["id", "sessionID", "title", "fields"],
  22390. "additionalProperties": false
  22391. },
  22392. "form.created": {
  22393. "type": "object",
  22394. "properties": {
  22395. "id": {
  22396. "type": "string",
  22397. "allOf": [
  22398. {
  22399. "pattern": "^evt_"
  22400. }
  22401. ]
  22402. },
  22403. "created": {
  22404. "type": "number"
  22405. },
  22406. "metadata": {
  22407. "type": "object"
  22408. },
  22409. "type": {
  22410. "type": "string",
  22411. "enum": ["form.created"]
  22412. },
  22413. "location": {
  22414. "$ref": "#/components/schemas/Location.Ref"
  22415. },
  22416. "data": {
  22417. "type": "object",
  22418. "properties": {
  22419. "form": {
  22420. "$ref": "#/components/schemas/Form.Info1"
  22421. }
  22422. },
  22423. "required": ["form"],
  22424. "additionalProperties": false
  22425. }
  22426. },
  22427. "required": ["id", "created", "type", "data"],
  22428. "additionalProperties": false
  22429. },
  22430. "Form.Value1": {
  22431. "anyOf": [
  22432. {
  22433. "type": "string"
  22434. },
  22435. {
  22436. "anyOf": [
  22437. {
  22438. "type": "number"
  22439. },
  22440. {
  22441. "type": "string",
  22442. "enum": ["NaN"]
  22443. },
  22444. {
  22445. "type": "string",
  22446. "enum": ["Infinity"]
  22447. },
  22448. {
  22449. "type": "string",
  22450. "enum": ["-Infinity"]
  22451. }
  22452. ]
  22453. },
  22454. {
  22455. "type": "boolean"
  22456. },
  22457. {
  22458. "type": "array",
  22459. "items": {
  22460. "type": "string"
  22461. }
  22462. }
  22463. ]
  22464. },
  22465. "Form.Answer1": {
  22466. "type": "object",
  22467. "additionalProperties": {
  22468. "$ref": "#/components/schemas/Form.Value1"
  22469. }
  22470. },
  22471. "form.replied": {
  22472. "type": "object",
  22473. "properties": {
  22474. "id": {
  22475. "type": "string",
  22476. "allOf": [
  22477. {
  22478. "pattern": "^evt_"
  22479. }
  22480. ]
  22481. },
  22482. "created": {
  22483. "type": "number"
  22484. },
  22485. "metadata": {
  22486. "type": "object"
  22487. },
  22488. "type": {
  22489. "type": "string",
  22490. "enum": ["form.replied"]
  22491. },
  22492. "location": {
  22493. "$ref": "#/components/schemas/Location.Ref"
  22494. },
  22495. "data": {
  22496. "type": "object",
  22497. "properties": {
  22498. "id": {
  22499. "type": "string",
  22500. "allOf": [
  22501. {
  22502. "pattern": "^frm_"
  22503. }
  22504. ]
  22505. },
  22506. "sessionID": {
  22507. "type": "string"
  22508. },
  22509. "answer": {
  22510. "$ref": "#/components/schemas/Form.Answer1"
  22511. }
  22512. },
  22513. "required": ["id", "sessionID", "answer"],
  22514. "additionalProperties": false
  22515. }
  22516. },
  22517. "required": ["id", "created", "type", "data"],
  22518. "additionalProperties": false
  22519. },
  22520. "form.cancelled": {
  22521. "type": "object",
  22522. "properties": {
  22523. "id": {
  22524. "type": "string",
  22525. "allOf": [
  22526. {
  22527. "pattern": "^evt_"
  22528. }
  22529. ]
  22530. },
  22531. "created": {
  22532. "type": "number"
  22533. },
  22534. "metadata": {
  22535. "type": "object"
  22536. },
  22537. "type": {
  22538. "type": "string",
  22539. "enum": ["form.cancelled"]
  22540. },
  22541. "location": {
  22542. "$ref": "#/components/schemas/Location.Ref"
  22543. },
  22544. "data": {
  22545. "type": "object",
  22546. "properties": {
  22547. "id": {
  22548. "type": "string",
  22549. "allOf": [
  22550. {
  22551. "pattern": "^frm_"
  22552. }
  22553. ]
  22554. },
  22555. "sessionID": {
  22556. "type": "string"
  22557. }
  22558. },
  22559. "required": ["id", "sessionID"],
  22560. "additionalProperties": false
  22561. }
  22562. },
  22563. "required": ["id", "created", "type", "data"],
  22564. "additionalProperties": false
  22565. },
  22566. "websearch.updated": {
  22567. "type": "object",
  22568. "properties": {
  22569. "id": {
  22570. "type": "string",
  22571. "allOf": [
  22572. {
  22573. "pattern": "^evt_"
  22574. }
  22575. ]
  22576. },
  22577. "created": {
  22578. "type": "number"
  22579. },
  22580. "metadata": {
  22581. "type": "object"
  22582. },
  22583. "type": {
  22584. "type": "string",
  22585. "enum": ["websearch.updated"]
  22586. },
  22587. "location": {
  22588. "$ref": "#/components/schemas/Location.Ref"
  22589. },
  22590. "data": {
  22591. "anyOf": [
  22592. {
  22593. "type": "object"
  22594. },
  22595. {
  22596. "type": "array"
  22597. }
  22598. ]
  22599. }
  22600. },
  22601. "required": ["id", "created", "type", "data"],
  22602. "additionalProperties": false
  22603. },
  22604. "SessionStatus": {
  22605. "anyOf": [
  22606. {
  22607. "type": "object",
  22608. "properties": {
  22609. "type": {
  22610. "type": "string",
  22611. "enum": ["idle"]
  22612. }
  22613. },
  22614. "required": ["type"],
  22615. "additionalProperties": false
  22616. },
  22617. {
  22618. "type": "object",
  22619. "properties": {
  22620. "type": {
  22621. "type": "string",
  22622. "enum": ["retry"]
  22623. },
  22624. "attempt": {
  22625. "type": "integer",
  22626. "allOf": [
  22627. {
  22628. "minimum": 0
  22629. }
  22630. ]
  22631. },
  22632. "message": {
  22633. "type": "string"
  22634. },
  22635. "action": {
  22636. "type": "object",
  22637. "properties": {
  22638. "reason": {
  22639. "type": "string"
  22640. },
  22641. "provider": {
  22642. "type": "string"
  22643. },
  22644. "title": {
  22645. "type": "string"
  22646. },
  22647. "message": {
  22648. "type": "string"
  22649. },
  22650. "label": {
  22651. "type": "string"
  22652. },
  22653. "link": {
  22654. "type": "string"
  22655. }
  22656. },
  22657. "required": ["reason", "provider", "title", "message", "label"],
  22658. "additionalProperties": false
  22659. },
  22660. "next": {
  22661. "type": "integer",
  22662. "allOf": [
  22663. {
  22664. "minimum": 0
  22665. }
  22666. ]
  22667. }
  22668. },
  22669. "required": ["type", "attempt", "message", "next"],
  22670. "additionalProperties": false
  22671. },
  22672. {
  22673. "type": "object",
  22674. "properties": {
  22675. "type": {
  22676. "type": "string",
  22677. "enum": ["busy"]
  22678. }
  22679. },
  22680. "required": ["type"],
  22681. "additionalProperties": false
  22682. }
  22683. ]
  22684. },
  22685. "session.status": {
  22686. "type": "object",
  22687. "properties": {
  22688. "id": {
  22689. "type": "string",
  22690. "allOf": [
  22691. {
  22692. "pattern": "^evt_"
  22693. }
  22694. ]
  22695. },
  22696. "created": {
  22697. "type": "number"
  22698. },
  22699. "metadata": {
  22700. "type": "object"
  22701. },
  22702. "type": {
  22703. "type": "string",
  22704. "enum": ["session.status"]
  22705. },
  22706. "location": {
  22707. "$ref": "#/components/schemas/Location.Ref"
  22708. },
  22709. "data": {
  22710. "type": "object",
  22711. "properties": {
  22712. "sessionID": {
  22713. "type": "string",
  22714. "allOf": [
  22715. {
  22716. "pattern": "^ses"
  22717. }
  22718. ]
  22719. },
  22720. "status": {
  22721. "$ref": "#/components/schemas/SessionStatus"
  22722. }
  22723. },
  22724. "required": ["sessionID", "status"],
  22725. "additionalProperties": false
  22726. }
  22727. },
  22728. "required": ["id", "created", "type", "data"],
  22729. "additionalProperties": false
  22730. },
  22731. "session.idle": {
  22732. "type": "object",
  22733. "properties": {
  22734. "id": {
  22735. "type": "string",
  22736. "allOf": [
  22737. {
  22738. "pattern": "^evt_"
  22739. }
  22740. ]
  22741. },
  22742. "created": {
  22743. "type": "number"
  22744. },
  22745. "metadata": {
  22746. "type": "object"
  22747. },
  22748. "type": {
  22749. "type": "string",
  22750. "enum": ["session.idle"]
  22751. },
  22752. "location": {
  22753. "$ref": "#/components/schemas/Location.Ref"
  22754. },
  22755. "data": {
  22756. "type": "object",
  22757. "properties": {
  22758. "sessionID": {
  22759. "type": "string",
  22760. "allOf": [
  22761. {
  22762. "pattern": "^ses"
  22763. }
  22764. ]
  22765. }
  22766. },
  22767. "required": ["sessionID"],
  22768. "additionalProperties": false
  22769. }
  22770. },
  22771. "required": ["id", "created", "type", "data"],
  22772. "additionalProperties": false
  22773. },
  22774. "tui.prompt.append": {
  22775. "type": "object",
  22776. "properties": {
  22777. "id": {
  22778. "type": "string",
  22779. "allOf": [
  22780. {
  22781. "pattern": "^evt_"
  22782. }
  22783. ]
  22784. },
  22785. "created": {
  22786. "type": "number"
  22787. },
  22788. "metadata": {
  22789. "type": "object"
  22790. },
  22791. "type": {
  22792. "type": "string",
  22793. "enum": ["tui.prompt.append"]
  22794. },
  22795. "location": {
  22796. "$ref": "#/components/schemas/Location.Ref"
  22797. },
  22798. "data": {
  22799. "type": "object",
  22800. "properties": {
  22801. "text": {
  22802. "type": "string"
  22803. }
  22804. },
  22805. "required": ["text"],
  22806. "additionalProperties": false
  22807. }
  22808. },
  22809. "required": ["id", "created", "type", "data"],
  22810. "additionalProperties": false
  22811. },
  22812. "tui.command.execute": {
  22813. "type": "object",
  22814. "properties": {
  22815. "id": {
  22816. "type": "string",
  22817. "allOf": [
  22818. {
  22819. "pattern": "^evt_"
  22820. }
  22821. ]
  22822. },
  22823. "created": {
  22824. "type": "number"
  22825. },
  22826. "metadata": {
  22827. "type": "object"
  22828. },
  22829. "type": {
  22830. "type": "string",
  22831. "enum": ["tui.command.execute"]
  22832. },
  22833. "location": {
  22834. "$ref": "#/components/schemas/Location.Ref"
  22835. },
  22836. "data": {
  22837. "type": "object",
  22838. "properties": {
  22839. "command": {
  22840. "anyOf": [
  22841. {
  22842. "type": "string",
  22843. "enum": [
  22844. "session.list",
  22845. "session.new",
  22846. "session.share",
  22847. "session.interrupt",
  22848. "session.background",
  22849. "session.compact",
  22850. "session.page.up",
  22851. "session.page.down",
  22852. "session.line.up",
  22853. "session.line.down",
  22854. "session.half.page.up",
  22855. "session.half.page.down",
  22856. "session.first",
  22857. "session.last",
  22858. "prompt.clear",
  22859. "prompt.submit",
  22860. "agent.cycle"
  22861. ]
  22862. },
  22863. {
  22864. "type": "string"
  22865. }
  22866. ]
  22867. }
  22868. },
  22869. "required": ["command"],
  22870. "additionalProperties": false
  22871. }
  22872. },
  22873. "required": ["id", "created", "type", "data"],
  22874. "additionalProperties": false
  22875. },
  22876. "tui.toast.show": {
  22877. "type": "object",
  22878. "properties": {
  22879. "id": {
  22880. "type": "string",
  22881. "allOf": [
  22882. {
  22883. "pattern": "^evt_"
  22884. }
  22885. ]
  22886. },
  22887. "created": {
  22888. "type": "number"
  22889. },
  22890. "metadata": {
  22891. "type": "object"
  22892. },
  22893. "type": {
  22894. "type": "string",
  22895. "enum": ["tui.toast.show"]
  22896. },
  22897. "location": {
  22898. "$ref": "#/components/schemas/Location.Ref"
  22899. },
  22900. "data": {
  22901. "type": "object",
  22902. "properties": {
  22903. "title": {
  22904. "type": "string"
  22905. },
  22906. "message": {
  22907. "type": "string"
  22908. },
  22909. "variant": {
  22910. "type": "string",
  22911. "enum": ["info", "success", "warning", "error"]
  22912. },
  22913. "duration": {
  22914. "anyOf": [
  22915. {
  22916. "type": "integer",
  22917. "allOf": [
  22918. {
  22919. "exclusiveMinimum": 0
  22920. }
  22921. ]
  22922. },
  22923. {
  22924. "type": "null"
  22925. }
  22926. ]
  22927. }
  22928. },
  22929. "required": ["message", "variant"],
  22930. "additionalProperties": false
  22931. }
  22932. },
  22933. "required": ["id", "created", "type", "data"],
  22934. "additionalProperties": false
  22935. },
  22936. "tui.session.select": {
  22937. "type": "object",
  22938. "properties": {
  22939. "id": {
  22940. "type": "string",
  22941. "allOf": [
  22942. {
  22943. "pattern": "^evt_"
  22944. }
  22945. ]
  22946. },
  22947. "created": {
  22948. "type": "number"
  22949. },
  22950. "metadata": {
  22951. "type": "object"
  22952. },
  22953. "type": {
  22954. "type": "string",
  22955. "enum": ["tui.session.select"]
  22956. },
  22957. "location": {
  22958. "$ref": "#/components/schemas/Location.Ref"
  22959. },
  22960. "data": {
  22961. "type": "object",
  22962. "properties": {
  22963. "sessionID": {
  22964. "type": "string",
  22965. "allOf": [
  22966. {
  22967. "pattern": "^ses",
  22968. "description": "Session ID to navigate to"
  22969. }
  22970. ]
  22971. }
  22972. },
  22973. "required": ["sessionID"],
  22974. "additionalProperties": false
  22975. }
  22976. },
  22977. "required": ["id", "created", "type", "data"],
  22978. "additionalProperties": false
  22979. },
  22980. "installation.updated": {
  22981. "type": "object",
  22982. "properties": {
  22983. "id": {
  22984. "type": "string",
  22985. "allOf": [
  22986. {
  22987. "pattern": "^evt_"
  22988. }
  22989. ]
  22990. },
  22991. "created": {
  22992. "type": "number"
  22993. },
  22994. "metadata": {
  22995. "type": "object"
  22996. },
  22997. "type": {
  22998. "type": "string",
  22999. "enum": ["installation.updated"]
  23000. },
  23001. "location": {
  23002. "$ref": "#/components/schemas/Location.Ref"
  23003. },
  23004. "data": {
  23005. "type": "object",
  23006. "properties": {
  23007. "version": {
  23008. "type": "string"
  23009. }
  23010. },
  23011. "required": ["version"],
  23012. "additionalProperties": false
  23013. }
  23014. },
  23015. "required": ["id", "created", "type", "data"],
  23016. "additionalProperties": false
  23017. },
  23018. "installation.update-available": {
  23019. "type": "object",
  23020. "properties": {
  23021. "id": {
  23022. "type": "string",
  23023. "allOf": [
  23024. {
  23025. "pattern": "^evt_"
  23026. }
  23027. ]
  23028. },
  23029. "created": {
  23030. "type": "number"
  23031. },
  23032. "metadata": {
  23033. "type": "object"
  23034. },
  23035. "type": {
  23036. "type": "string",
  23037. "enum": ["installation.update-available"]
  23038. },
  23039. "location": {
  23040. "$ref": "#/components/schemas/Location.Ref"
  23041. },
  23042. "data": {
  23043. "type": "object",
  23044. "properties": {
  23045. "version": {
  23046. "type": "string"
  23047. }
  23048. },
  23049. "required": ["version"],
  23050. "additionalProperties": false
  23051. }
  23052. },
  23053. "required": ["id", "created", "type", "data"],
  23054. "additionalProperties": false
  23055. },
  23056. "vcs.branch.updated": {
  23057. "type": "object",
  23058. "properties": {
  23059. "id": {
  23060. "type": "string",
  23061. "allOf": [
  23062. {
  23063. "pattern": "^evt_"
  23064. }
  23065. ]
  23066. },
  23067. "created": {
  23068. "type": "number"
  23069. },
  23070. "metadata": {
  23071. "type": "object"
  23072. },
  23073. "type": {
  23074. "type": "string",
  23075. "enum": ["vcs.branch.updated"]
  23076. },
  23077. "location": {
  23078. "$ref": "#/components/schemas/Location.Ref"
  23079. },
  23080. "data": {
  23081. "type": "object",
  23082. "properties": {
  23083. "branch": {
  23084. "type": "string"
  23085. }
  23086. },
  23087. "additionalProperties": false
  23088. }
  23089. },
  23090. "required": ["id", "created", "type", "data"],
  23091. "additionalProperties": false
  23092. },
  23093. "mcp.status.changed": {
  23094. "type": "object",
  23095. "properties": {
  23096. "id": {
  23097. "type": "string",
  23098. "allOf": [
  23099. {
  23100. "pattern": "^evt_"
  23101. }
  23102. ]
  23103. },
  23104. "created": {
  23105. "type": "number"
  23106. },
  23107. "metadata": {
  23108. "type": "object"
  23109. },
  23110. "type": {
  23111. "type": "string",
  23112. "enum": ["mcp.status.changed"]
  23113. },
  23114. "location": {
  23115. "$ref": "#/components/schemas/Location.Ref"
  23116. },
  23117. "data": {
  23118. "type": "object",
  23119. "properties": {
  23120. "server": {
  23121. "type": "string"
  23122. }
  23123. },
  23124. "required": ["server"],
  23125. "additionalProperties": false
  23126. }
  23127. },
  23128. "required": ["id", "created", "type", "data"],
  23129. "additionalProperties": false
  23130. },
  23131. "mcp.resources.changed": {
  23132. "type": "object",
  23133. "properties": {
  23134. "id": {
  23135. "type": "string",
  23136. "allOf": [
  23137. {
  23138. "pattern": "^evt_"
  23139. }
  23140. ]
  23141. },
  23142. "created": {
  23143. "type": "number"
  23144. },
  23145. "metadata": {
  23146. "type": "object"
  23147. },
  23148. "type": {
  23149. "type": "string",
  23150. "enum": ["mcp.resources.changed"]
  23151. },
  23152. "location": {
  23153. "$ref": "#/components/schemas/Location.Ref"
  23154. },
  23155. "data": {
  23156. "type": "object",
  23157. "properties": {
  23158. "server": {
  23159. "type": "string"
  23160. }
  23161. },
  23162. "required": ["server"],
  23163. "additionalProperties": false
  23164. }
  23165. },
  23166. "required": ["id", "created", "type", "data"],
  23167. "additionalProperties": false
  23168. },
  23169. "V2Event.server.connected": {
  23170. "type": "object",
  23171. "properties": {
  23172. "id": {
  23173. "type": "string",
  23174. "allOf": [
  23175. {
  23176. "pattern": "^evt_"
  23177. }
  23178. ]
  23179. },
  23180. "metadata": {
  23181. "anyOf": [
  23182. {
  23183. "type": "object"
  23184. },
  23185. {
  23186. "type": "null"
  23187. }
  23188. ]
  23189. },
  23190. "location": {
  23191. "anyOf": [
  23192. {
  23193. "$ref": "#/components/schemas/Location.Ref"
  23194. },
  23195. {
  23196. "type": "null"
  23197. }
  23198. ]
  23199. },
  23200. "type": {
  23201. "type": "string",
  23202. "enum": ["server.connected"]
  23203. },
  23204. "data": {
  23205. "anyOf": [
  23206. {
  23207. "type": "object"
  23208. },
  23209. {
  23210. "type": "array"
  23211. }
  23212. ]
  23213. }
  23214. },
  23215. "required": ["id", "type", "data"],
  23216. "additionalProperties": false
  23217. },
  23218. "V2Event": {
  23219. "anyOf": [
  23220. {
  23221. "$ref": "#/components/schemas/models-dev.refreshed"
  23222. },
  23223. {
  23224. "$ref": "#/components/schemas/integration.updated"
  23225. },
  23226. {
  23227. "$ref": "#/components/schemas/integration.connection.updated"
  23228. },
  23229. {
  23230. "$ref": "#/components/schemas/catalog.updated"
  23231. },
  23232. {
  23233. "$ref": "#/components/schemas/agent.updated"
  23234. },
  23235. {
  23236. "$ref": "#/components/schemas/session.created"
  23237. },
  23238. {
  23239. "$ref": "#/components/schemas/session.agent.selected"
  23240. },
  23241. {
  23242. "$ref": "#/components/schemas/session.model.selected"
  23243. },
  23244. {
  23245. "$ref": "#/components/schemas/session.moved"
  23246. },
  23247. {
  23248. "$ref": "#/components/schemas/session.renamed"
  23249. },
  23250. {
  23251. "$ref": "#/components/schemas/session.usage.updated"
  23252. },
  23253. {
  23254. "$ref": "#/components/schemas/session.deleted"
  23255. },
  23256. {
  23257. "$ref": "#/components/schemas/session.forked"
  23258. },
  23259. {
  23260. "$ref": "#/components/schemas/session.inbox.delivered"
  23261. },
  23262. {
  23263. "$ref": "#/components/schemas/session.inbox.enqueued"
  23264. },
  23265. {
  23266. "$ref": "#/components/schemas/session.inbox.cancelled"
  23267. },
  23268. {
  23269. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  23270. },
  23271. {
  23272. "$ref": "#/components/schemas/session.execution.started"
  23273. },
  23274. {
  23275. "$ref": "#/components/schemas/session.execution.succeeded"
  23276. },
  23277. {
  23278. "$ref": "#/components/schemas/session.execution.failed"
  23279. },
  23280. {
  23281. "$ref": "#/components/schemas/session.execution.interrupted"
  23282. },
  23283. {
  23284. "$ref": "#/components/schemas/session.instructions.updated"
  23285. },
  23286. {
  23287. "$ref": "#/components/schemas/session.synthetic"
  23288. },
  23289. {
  23290. "$ref": "#/components/schemas/session.skill.activated"
  23291. },
  23292. {
  23293. "$ref": "#/components/schemas/session.shell.started"
  23294. },
  23295. {
  23296. "$ref": "#/components/schemas/session.shell.ended"
  23297. },
  23298. {
  23299. "$ref": "#/components/schemas/session.step.started"
  23300. },
  23301. {
  23302. "$ref": "#/components/schemas/session.step.ended"
  23303. },
  23304. {
  23305. "$ref": "#/components/schemas/session.step.failed"
  23306. },
  23307. {
  23308. "$ref": "#/components/schemas/session.text.started"
  23309. },
  23310. {
  23311. "$ref": "#/components/schemas/session.text.delta"
  23312. },
  23313. {
  23314. "$ref": "#/components/schemas/session.text.ended"
  23315. },
  23316. {
  23317. "$ref": "#/components/schemas/session.reasoning.started"
  23318. },
  23319. {
  23320. "$ref": "#/components/schemas/session.reasoning.delta"
  23321. },
  23322. {
  23323. "$ref": "#/components/schemas/session.reasoning.ended"
  23324. },
  23325. {
  23326. "$ref": "#/components/schemas/session.tool.input.started"
  23327. },
  23328. {
  23329. "$ref": "#/components/schemas/session.tool.input.delta"
  23330. },
  23331. {
  23332. "$ref": "#/components/schemas/session.tool.input.ended"
  23333. },
  23334. {
  23335. "$ref": "#/components/schemas/session.tool.called"
  23336. },
  23337. {
  23338. "$ref": "#/components/schemas/session.tool.progress"
  23339. },
  23340. {
  23341. "$ref": "#/components/schemas/session.tool.success"
  23342. },
  23343. {
  23344. "$ref": "#/components/schemas/session.tool.failed"
  23345. },
  23346. {
  23347. "$ref": "#/components/schemas/session.retry.scheduled"
  23348. },
  23349. {
  23350. "$ref": "#/components/schemas/session.compaction.started"
  23351. },
  23352. {
  23353. "$ref": "#/components/schemas/session.compaction.delta"
  23354. },
  23355. {
  23356. "$ref": "#/components/schemas/session.compaction.ended"
  23357. },
  23358. {
  23359. "$ref": "#/components/schemas/session.compaction.failed"
  23360. },
  23361. {
  23362. "$ref": "#/components/schemas/session.revert.staged"
  23363. },
  23364. {
  23365. "$ref": "#/components/schemas/session.revert.cleared"
  23366. },
  23367. {
  23368. "$ref": "#/components/schemas/session.revert.committed"
  23369. },
  23370. {
  23371. "$ref": "#/components/schemas/filesystem.changed"
  23372. },
  23373. {
  23374. "$ref": "#/components/schemas/reference.updated"
  23375. },
  23376. {
  23377. "$ref": "#/components/schemas/permission.asked"
  23378. },
  23379. {
  23380. "$ref": "#/components/schemas/permission.replied"
  23381. },
  23382. {
  23383. "$ref": "#/components/schemas/plugin.added"
  23384. },
  23385. {
  23386. "$ref": "#/components/schemas/plugin.updated"
  23387. },
  23388. {
  23389. "$ref": "#/components/schemas/worktree.updated"
  23390. },
  23391. {
  23392. "$ref": "#/components/schemas/worktree.resolved"
  23393. },
  23394. {
  23395. "$ref": "#/components/schemas/command.updated"
  23396. },
  23397. {
  23398. "$ref": "#/components/schemas/config.updated"
  23399. },
  23400. {
  23401. "$ref": "#/components/schemas/skill.updated"
  23402. },
  23403. {
  23404. "$ref": "#/components/schemas/pty.created"
  23405. },
  23406. {
  23407. "$ref": "#/components/schemas/pty.updated"
  23408. },
  23409. {
  23410. "$ref": "#/components/schemas/pty.exited"
  23411. },
  23412. {
  23413. "$ref": "#/components/schemas/pty.deleted"
  23414. },
  23415. {
  23416. "$ref": "#/components/schemas/shell.created"
  23417. },
  23418. {
  23419. "$ref": "#/components/schemas/shell.exited"
  23420. },
  23421. {
  23422. "$ref": "#/components/schemas/shell.deleted"
  23423. },
  23424. {
  23425. "$ref": "#/components/schemas/question.asked"
  23426. },
  23427. {
  23428. "$ref": "#/components/schemas/question.replied"
  23429. },
  23430. {
  23431. "$ref": "#/components/schemas/question.rejected"
  23432. },
  23433. {
  23434. "$ref": "#/components/schemas/form.created"
  23435. },
  23436. {
  23437. "$ref": "#/components/schemas/form.replied"
  23438. },
  23439. {
  23440. "$ref": "#/components/schemas/form.cancelled"
  23441. },
  23442. {
  23443. "$ref": "#/components/schemas/websearch.updated"
  23444. },
  23445. {
  23446. "$ref": "#/components/schemas/session.status"
  23447. },
  23448. {
  23449. "$ref": "#/components/schemas/session.idle"
  23450. },
  23451. {
  23452. "$ref": "#/components/schemas/tui.prompt.append"
  23453. },
  23454. {
  23455. "$ref": "#/components/schemas/tui.command.execute"
  23456. },
  23457. {
  23458. "$ref": "#/components/schemas/tui.toast.show"
  23459. },
  23460. {
  23461. "$ref": "#/components/schemas/tui.session.select"
  23462. },
  23463. {
  23464. "$ref": "#/components/schemas/installation.updated"
  23465. },
  23466. {
  23467. "$ref": "#/components/schemas/installation.update-available"
  23468. },
  23469. {
  23470. "$ref": "#/components/schemas/vcs.branch.updated"
  23471. },
  23472. {
  23473. "$ref": "#/components/schemas/mcp.status.changed"
  23474. },
  23475. {
  23476. "$ref": "#/components/schemas/mcp.resources.changed"
  23477. },
  23478. {
  23479. "$ref": "#/components/schemas/V2Event.server.connected"
  23480. }
  23481. ]
  23482. },
  23483. "V2EventJsonString": {
  23484. "type": "string",
  23485. "contentSchema": {
  23486. "$ref": "#/components/schemas/V2Event"
  23487. },
  23488. "contentMediaType": "application/json"
  23489. },
  23490. "PtyNotFoundError": {
  23491. "type": "object",
  23492. "properties": {
  23493. "_tag": {
  23494. "type": "string",
  23495. "enum": ["PtyNotFoundError"]
  23496. },
  23497. "ptyID": {
  23498. "type": "string"
  23499. },
  23500. "message": {
  23501. "type": "string"
  23502. }
  23503. },
  23504. "required": ["_tag", "ptyID", "message"],
  23505. "additionalProperties": false
  23506. },
  23507. "PtyTicket.ConnectToken": {
  23508. "type": "object",
  23509. "properties": {
  23510. "ticket": {
  23511. "type": "string"
  23512. },
  23513. "expires_in": {
  23514. "type": "integer",
  23515. "allOf": [
  23516. {
  23517. "exclusiveMinimum": 0
  23518. }
  23519. ]
  23520. }
  23521. },
  23522. "required": ["ticket", "expires_in"],
  23523. "additionalProperties": false
  23524. },
  23525. "ForbiddenError": {
  23526. "type": "object",
  23527. "properties": {
  23528. "_tag": {
  23529. "type": "string",
  23530. "enum": ["ForbiddenError"]
  23531. },
  23532. "message": {
  23533. "type": "string"
  23534. }
  23535. },
  23536. "required": ["_tag", "message"],
  23537. "additionalProperties": false
  23538. },
  23539. "Shell.Info1": {
  23540. "type": "object",
  23541. "properties": {
  23542. "id": {
  23543. "type": "string",
  23544. "allOf": [
  23545. {
  23546. "pattern": "^sh_"
  23547. }
  23548. ]
  23549. },
  23550. "status": {
  23551. "type": "string",
  23552. "enum": ["running", "exited", "timeout", "killed"]
  23553. },
  23554. "command": {
  23555. "type": "string"
  23556. },
  23557. "cwd": {
  23558. "type": "string"
  23559. },
  23560. "shell": {
  23561. "type": "string"
  23562. },
  23563. "file": {
  23564. "type": "string"
  23565. },
  23566. "pid": {
  23567. "type": "integer",
  23568. "allOf": [
  23569. {
  23570. "minimum": 0
  23571. }
  23572. ]
  23573. },
  23574. "exit": {
  23575. "type": "number"
  23576. },
  23577. "metadata": {
  23578. "type": "object"
  23579. },
  23580. "time": {
  23581. "type": "object",
  23582. "properties": {
  23583. "started": {
  23584. "type": "number"
  23585. },
  23586. "completed": {
  23587. "type": "number"
  23588. }
  23589. },
  23590. "required": ["started"],
  23591. "additionalProperties": false
  23592. }
  23593. },
  23594. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  23595. "additionalProperties": false
  23596. },
  23597. "ShellNotFoundError": {
  23598. "type": "object",
  23599. "properties": {
  23600. "_tag": {
  23601. "type": "string",
  23602. "enum": ["ShellNotFoundError"]
  23603. },
  23604. "id": {
  23605. "type": "string"
  23606. },
  23607. "message": {
  23608. "type": "string"
  23609. }
  23610. },
  23611. "required": ["_tag", "id", "message"],
  23612. "additionalProperties": false
  23613. },
  23614. "Question.Request": {
  23615. "type": "object",
  23616. "properties": {
  23617. "id": {
  23618. "type": "string",
  23619. "allOf": [
  23620. {
  23621. "pattern": "^que"
  23622. }
  23623. ]
  23624. },
  23625. "sessionID": {
  23626. "type": "string",
  23627. "allOf": [
  23628. {
  23629. "pattern": "^ses"
  23630. }
  23631. ]
  23632. },
  23633. "questions": {
  23634. "type": "array",
  23635. "items": {
  23636. "$ref": "#/components/schemas/Question.Info"
  23637. },
  23638. "description": "Questions to ask"
  23639. },
  23640. "tool": {
  23641. "$ref": "#/components/schemas/Question.Tool"
  23642. }
  23643. },
  23644. "required": ["id", "sessionID", "questions"],
  23645. "additionalProperties": false
  23646. },
  23647. "Question.Reply": {
  23648. "type": "object",
  23649. "properties": {
  23650. "answers": {
  23651. "type": "array",
  23652. "items": {
  23653. "$ref": "#/components/schemas/Question.Answer"
  23654. },
  23655. "description": "User answers in order of questions (each answer is an array of selected labels)"
  23656. }
  23657. },
  23658. "required": ["answers"],
  23659. "additionalProperties": false
  23660. },
  23661. "QuestionNotFoundError": {
  23662. "type": "object",
  23663. "properties": {
  23664. "_tag": {
  23665. "type": "string",
  23666. "enum": ["QuestionNotFoundError"]
  23667. },
  23668. "requestID": {
  23669. "type": "string"
  23670. },
  23671. "message": {
  23672. "type": "string"
  23673. }
  23674. },
  23675. "required": ["_tag", "requestID", "message"],
  23676. "additionalProperties": false
  23677. },
  23678. "Reference.LocalSource": {
  23679. "type": "object",
  23680. "properties": {
  23681. "type": {
  23682. "type": "string",
  23683. "enum": ["local"]
  23684. },
  23685. "path": {
  23686. "type": "string"
  23687. },
  23688. "description": {
  23689. "type": "string"
  23690. },
  23691. "hidden": {
  23692. "type": "boolean"
  23693. }
  23694. },
  23695. "required": ["type", "path"],
  23696. "additionalProperties": false
  23697. },
  23698. "Reference.GitSource": {
  23699. "type": "object",
  23700. "properties": {
  23701. "type": {
  23702. "type": "string",
  23703. "enum": ["git"]
  23704. },
  23705. "repository": {
  23706. "type": "string"
  23707. },
  23708. "branch": {
  23709. "type": "string"
  23710. },
  23711. "description": {
  23712. "type": "string"
  23713. },
  23714. "hidden": {
  23715. "type": "boolean"
  23716. }
  23717. },
  23718. "required": ["type", "repository"],
  23719. "additionalProperties": false
  23720. },
  23721. "Reference.Source": {
  23722. "anyOf": [
  23723. {
  23724. "$ref": "#/components/schemas/Reference.LocalSource"
  23725. },
  23726. {
  23727. "$ref": "#/components/schemas/Reference.GitSource"
  23728. }
  23729. ]
  23730. },
  23731. "Reference.Info": {
  23732. "type": "object",
  23733. "properties": {
  23734. "name": {
  23735. "type": "string"
  23736. },
  23737. "path": {
  23738. "type": "string"
  23739. },
  23740. "description": {
  23741. "type": "string"
  23742. },
  23743. "hidden": {
  23744. "type": "boolean"
  23745. },
  23746. "source": {
  23747. "$ref": "#/components/schemas/Reference.Source"
  23748. }
  23749. },
  23750. "required": ["name", "path", "source"],
  23751. "additionalProperties": false
  23752. },
  23753. "Worktree.Directory": {
  23754. "type": "object",
  23755. "properties": {
  23756. "directory": {
  23757. "type": "string"
  23758. },
  23759. "strategy": {
  23760. "type": "string"
  23761. }
  23762. },
  23763. "required": ["directory"],
  23764. "additionalProperties": false
  23765. },
  23766. "Worktree.List": {
  23767. "type": "array",
  23768. "items": {
  23769. "$ref": "#/components/schemas/Worktree.Directory"
  23770. }
  23771. },
  23772. "Worktree.Info": {
  23773. "type": "object",
  23774. "properties": {
  23775. "directory": {
  23776. "type": "string"
  23777. }
  23778. },
  23779. "required": ["directory"],
  23780. "additionalProperties": false
  23781. },
  23782. "WorktreeError": {
  23783. "type": "object",
  23784. "properties": {
  23785. "name": {
  23786. "type": "string",
  23787. "enum": ["WorktreeError"]
  23788. },
  23789. "data": {
  23790. "type": "object",
  23791. "properties": {
  23792. "message": {
  23793. "type": "string"
  23794. },
  23795. "forceRequired": {
  23796. "anyOf": [
  23797. {
  23798. "type": "boolean"
  23799. },
  23800. {
  23801. "type": "null"
  23802. }
  23803. ]
  23804. }
  23805. },
  23806. "required": ["message"],
  23807. "additionalProperties": false
  23808. }
  23809. },
  23810. "required": ["name", "data"],
  23811. "additionalProperties": false
  23812. },
  23813. "Vcs.Branch": {
  23814. "type": "object",
  23815. "properties": {
  23816. "current": {
  23817. "type": "string"
  23818. },
  23819. "default": {
  23820. "type": "string"
  23821. }
  23822. },
  23823. "additionalProperties": false
  23824. },
  23825. "Vcs.Info": {
  23826. "type": "object",
  23827. "properties": {
  23828. "branch": {
  23829. "$ref": "#/components/schemas/Vcs.Branch"
  23830. }
  23831. },
  23832. "required": ["branch"],
  23833. "additionalProperties": false
  23834. },
  23835. "Vcs.FileStatus": {
  23836. "type": "object",
  23837. "properties": {
  23838. "file": {
  23839. "type": "string"
  23840. },
  23841. "additions": {
  23842. "type": "integer",
  23843. "allOf": [
  23844. {
  23845. "minimum": 0
  23846. }
  23847. ]
  23848. },
  23849. "deletions": {
  23850. "type": "integer",
  23851. "allOf": [
  23852. {
  23853. "minimum": 0
  23854. }
  23855. ]
  23856. },
  23857. "status": {
  23858. "type": "string",
  23859. "enum": ["added", "deleted", "modified"]
  23860. }
  23861. },
  23862. "required": ["file", "additions", "deletions", "status"],
  23863. "additionalProperties": false
  23864. },
  23865. "Vcs.Mode": {
  23866. "type": "string",
  23867. "enum": ["working", "branch"]
  23868. },
  23869. "WebSearch.Provider": {
  23870. "type": "object",
  23871. "properties": {
  23872. "id": {
  23873. "type": "string"
  23874. },
  23875. "name": {
  23876. "type": "string"
  23877. }
  23878. },
  23879. "required": ["id", "name"],
  23880. "additionalProperties": false
  23881. },
  23882. "WebSearch.Result": {
  23883. "type": "object",
  23884. "properties": {
  23885. "url": {
  23886. "type": "string"
  23887. },
  23888. "title": {
  23889. "type": "string"
  23890. },
  23891. "content": {
  23892. "type": "string"
  23893. },
  23894. "time": {
  23895. "type": "object",
  23896. "properties": {
  23897. "published": {
  23898. "type": "number"
  23899. }
  23900. },
  23901. "additionalProperties": false
  23902. }
  23903. },
  23904. "required": ["url", "time"],
  23905. "additionalProperties": false
  23906. },
  23907. "WebSearch.Response": {
  23908. "type": "object",
  23909. "properties": {
  23910. "providerID": {
  23911. "type": "string"
  23912. },
  23913. "results": {
  23914. "type": "array",
  23915. "items": {
  23916. "$ref": "#/components/schemas/WebSearch.Result"
  23917. }
  23918. }
  23919. },
  23920. "required": ["providerID", "results"],
  23921. "additionalProperties": false
  23922. },
  23923. "Config.Agent": {
  23924. "type": "object",
  23925. "properties": {
  23926. "model": {
  23927. "anyOf": [
  23928. {
  23929. "type": "string",
  23930. "allOf": [
  23931. {
  23932. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23933. }
  23934. ]
  23935. },
  23936. {
  23937. "type": "object",
  23938. "properties": {
  23939. "providerID": {
  23940. "type": "string",
  23941. "allOf": [
  23942. {
  23943. "pattern": "^[^/#]+$"
  23944. }
  23945. ]
  23946. },
  23947. "model": {
  23948. "type": "string",
  23949. "allOf": [
  23950. {
  23951. "pattern": "^[^#]+$"
  23952. }
  23953. ]
  23954. },
  23955. "variant": {
  23956. "type": "string",
  23957. "allOf": [
  23958. {
  23959. "pattern": "^[^#]+$"
  23960. }
  23961. ]
  23962. }
  23963. },
  23964. "required": ["providerID", "model"],
  23965. "additionalProperties": false
  23966. }
  23967. ]
  23968. },
  23969. "request": {
  23970. "type": "object",
  23971. "properties": {
  23972. "headers": {
  23973. "type": "object",
  23974. "additionalProperties": {
  23975. "type": "string"
  23976. }
  23977. },
  23978. "body": {
  23979. "type": "object"
  23980. }
  23981. },
  23982. "additionalProperties": false
  23983. },
  23984. "system": {
  23985. "type": "string"
  23986. },
  23987. "description": {
  23988. "type": "string"
  23989. },
  23990. "mode": {
  23991. "type": "string",
  23992. "enum": ["subagent", "primary", "all"]
  23993. },
  23994. "hidden": {
  23995. "type": "boolean"
  23996. },
  23997. "color": {
  23998. "type": "string",
  23999. "allOf": [
  24000. {
  24001. "pattern": "^#[0-9a-fA-F]{6}$"
  24002. }
  24003. ]
  24004. },
  24005. "steps": {
  24006. "type": "integer",
  24007. "allOf": [
  24008. {
  24009. "exclusiveMinimum": 0
  24010. }
  24011. ]
  24012. },
  24013. "disabled": {
  24014. "type": "boolean"
  24015. },
  24016. "permissions": {
  24017. "$ref": "#/components/schemas/Permission.Ruleset"
  24018. }
  24019. },
  24020. "additionalProperties": false
  24021. },
  24022. "Config.Formatter.Entry": {
  24023. "type": "object",
  24024. "properties": {
  24025. "disabled": {
  24026. "type": "boolean"
  24027. },
  24028. "command": {
  24029. "type": "array",
  24030. "items": {
  24031. "type": "string"
  24032. }
  24033. },
  24034. "environment": {
  24035. "type": "object",
  24036. "additionalProperties": {
  24037. "type": "string"
  24038. }
  24039. },
  24040. "extensions": {
  24041. "type": "array",
  24042. "items": {
  24043. "type": "string"
  24044. }
  24045. }
  24046. },
  24047. "additionalProperties": false
  24048. },
  24049. "Config.LSP.Server": {
  24050. "type": "object",
  24051. "properties": {
  24052. "command": {
  24053. "type": "array",
  24054. "items": {
  24055. "type": "string"
  24056. }
  24057. },
  24058. "extensions": {
  24059. "type": "array",
  24060. "items": {
  24061. "type": "string"
  24062. }
  24063. },
  24064. "disabled": {
  24065. "type": "boolean"
  24066. },
  24067. "env": {
  24068. "type": "object",
  24069. "additionalProperties": {
  24070. "type": "string"
  24071. }
  24072. },
  24073. "initialization": {
  24074. "type": "object"
  24075. }
  24076. },
  24077. "required": ["command"],
  24078. "additionalProperties": false
  24079. },
  24080. "Config.Command": {
  24081. "type": "object",
  24082. "properties": {
  24083. "template": {
  24084. "type": "string"
  24085. },
  24086. "description": {
  24087. "type": "string"
  24088. },
  24089. "agent": {
  24090. "type": "string"
  24091. },
  24092. "model": {
  24093. "anyOf": [
  24094. {
  24095. "type": "string",
  24096. "allOf": [
  24097. {
  24098. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  24099. }
  24100. ]
  24101. },
  24102. {
  24103. "type": "object",
  24104. "properties": {
  24105. "providerID": {
  24106. "type": "string",
  24107. "allOf": [
  24108. {
  24109. "pattern": "^[^/#]+$"
  24110. }
  24111. ]
  24112. },
  24113. "model": {
  24114. "type": "string",
  24115. "allOf": [
  24116. {
  24117. "pattern": "^[^#]+$"
  24118. }
  24119. ]
  24120. },
  24121. "variant": {
  24122. "type": "string",
  24123. "allOf": [
  24124. {
  24125. "pattern": "^[^#]+$"
  24126. }
  24127. ]
  24128. }
  24129. },
  24130. "required": ["providerID", "model"],
  24131. "additionalProperties": false
  24132. }
  24133. ]
  24134. },
  24135. "subtask": {
  24136. "type": "boolean"
  24137. }
  24138. },
  24139. "required": ["template"],
  24140. "additionalProperties": false
  24141. },
  24142. "Config.Reference.Git": {
  24143. "type": "object",
  24144. "properties": {
  24145. "repository": {
  24146. "type": "string"
  24147. },
  24148. "branch": {
  24149. "type": "string"
  24150. },
  24151. "description": {
  24152. "type": "string"
  24153. },
  24154. "hidden": {
  24155. "type": "boolean"
  24156. }
  24157. },
  24158. "required": ["repository"],
  24159. "additionalProperties": false
  24160. },
  24161. "Config.Reference.Local": {
  24162. "type": "object",
  24163. "properties": {
  24164. "path": {
  24165. "type": "string"
  24166. },
  24167. "description": {
  24168. "type": "string"
  24169. },
  24170. "hidden": {
  24171. "type": "boolean"
  24172. }
  24173. },
  24174. "required": ["path"],
  24175. "additionalProperties": false
  24176. },
  24177. "Config.Plugin.Entry": {
  24178. "type": "object",
  24179. "properties": {
  24180. "package": {
  24181. "type": "string"
  24182. },
  24183. "options": {
  24184. "type": "object"
  24185. }
  24186. },
  24187. "required": ["package"],
  24188. "additionalProperties": false
  24189. },
  24190. "Config.Warming": {
  24191. "type": "object",
  24192. "properties": {
  24193. "prompt": {
  24194. "type": "string"
  24195. },
  24196. "interval": {
  24197. "type": "string"
  24198. },
  24199. "duration": {
  24200. "type": "string"
  24201. }
  24202. },
  24203. "additionalProperties": false
  24204. },
  24205. "Config.Model.Cost": {
  24206. "type": "object",
  24207. "properties": {
  24208. "tier": {
  24209. "type": "object",
  24210. "properties": {
  24211. "type": {
  24212. "type": "string",
  24213. "enum": ["context"]
  24214. },
  24215. "size": {
  24216. "type": "integer"
  24217. }
  24218. },
  24219. "required": ["type", "size"],
  24220. "additionalProperties": false
  24221. },
  24222. "input": {
  24223. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24224. },
  24225. "output": {
  24226. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24227. },
  24228. "cache": {
  24229. "type": "object",
  24230. "properties": {
  24231. "read": {
  24232. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24233. },
  24234. "write": {
  24235. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24236. }
  24237. },
  24238. "additionalProperties": false
  24239. }
  24240. },
  24241. "required": ["input", "output"],
  24242. "additionalProperties": false
  24243. },
  24244. "Config.Model": {
  24245. "type": "object",
  24246. "properties": {
  24247. "modelID": {
  24248. "type": "string"
  24249. },
  24250. "family": {
  24251. "type": "string"
  24252. },
  24253. "name": {
  24254. "type": "string"
  24255. },
  24256. "compatibility": {
  24257. "$ref": "#/components/schemas/Model.Compatibility"
  24258. },
  24259. "package": {
  24260. "type": "string"
  24261. },
  24262. "settings": {
  24263. "type": "object"
  24264. },
  24265. "headers": {
  24266. "type": "object",
  24267. "additionalProperties": {
  24268. "type": "string"
  24269. }
  24270. },
  24271. "body": {
  24272. "type": "object"
  24273. },
  24274. "capabilities": {
  24275. "$ref": "#/components/schemas/Model.Capabilities"
  24276. },
  24277. "variants": {
  24278. "type": "array",
  24279. "items": {
  24280. "type": "object",
  24281. "properties": {
  24282. "id": {
  24283. "type": "string"
  24284. },
  24285. "settings": {
  24286. "type": "object"
  24287. },
  24288. "headers": {
  24289. "type": "object",
  24290. "additionalProperties": {
  24291. "type": "string"
  24292. }
  24293. },
  24294. "body": {
  24295. "type": "object"
  24296. }
  24297. },
  24298. "required": ["id"],
  24299. "additionalProperties": false
  24300. }
  24301. },
  24302. "cost": {
  24303. "anyOf": [
  24304. {
  24305. "$ref": "#/components/schemas/Config.Model.Cost"
  24306. },
  24307. {
  24308. "type": "array",
  24309. "items": {
  24310. "$ref": "#/components/schemas/Config.Model.Cost"
  24311. }
  24312. }
  24313. ]
  24314. },
  24315. "disabled": {
  24316. "type": "boolean"
  24317. },
  24318. "limit": {
  24319. "type": "object",
  24320. "properties": {
  24321. "context": {
  24322. "type": "integer"
  24323. },
  24324. "input": {
  24325. "type": "integer"
  24326. },
  24327. "output": {
  24328. "type": "integer"
  24329. }
  24330. },
  24331. "additionalProperties": false
  24332. }
  24333. },
  24334. "additionalProperties": false
  24335. },
  24336. "Config.Provider": {
  24337. "type": "object",
  24338. "properties": {
  24339. "name": {
  24340. "type": "string"
  24341. },
  24342. "env": {
  24343. "type": "array",
  24344. "items": {
  24345. "type": "string"
  24346. }
  24347. },
  24348. "package": {
  24349. "type": "string"
  24350. },
  24351. "settings": {
  24352. "type": "object"
  24353. },
  24354. "headers": {
  24355. "type": "object",
  24356. "additionalProperties": {
  24357. "type": "string"
  24358. }
  24359. },
  24360. "body": {
  24361. "type": "object"
  24362. },
  24363. "models": {
  24364. "type": "object",
  24365. "additionalProperties": {
  24366. "$ref": "#/components/schemas/Config.Model"
  24367. }
  24368. }
  24369. },
  24370. "additionalProperties": false
  24371. },
  24372. "Config.Info": {
  24373. "type": "object",
  24374. "properties": {
  24375. "$schema": {
  24376. "type": "string"
  24377. },
  24378. "shell": {
  24379. "type": "string"
  24380. },
  24381. "model": {
  24382. "anyOf": [
  24383. {
  24384. "type": "string",
  24385. "allOf": [
  24386. {
  24387. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  24388. }
  24389. ]
  24390. },
  24391. {
  24392. "type": "object",
  24393. "properties": {
  24394. "providerID": {
  24395. "type": "string",
  24396. "allOf": [
  24397. {
  24398. "pattern": "^[^/#]+$"
  24399. }
  24400. ]
  24401. },
  24402. "model": {
  24403. "type": "string",
  24404. "allOf": [
  24405. {
  24406. "pattern": "^[^#]+$"
  24407. }
  24408. ]
  24409. },
  24410. "variant": {
  24411. "type": "string",
  24412. "allOf": [
  24413. {
  24414. "pattern": "^[^#]+$"
  24415. }
  24416. ]
  24417. }
  24418. },
  24419. "required": ["providerID", "model"],
  24420. "additionalProperties": false
  24421. }
  24422. ]
  24423. },
  24424. "default_agent": {
  24425. "type": "string"
  24426. },
  24427. "autoupdate": {
  24428. "anyOf": [
  24429. {
  24430. "type": "boolean"
  24431. },
  24432. {
  24433. "type": "string",
  24434. "enum": ["notify"]
  24435. }
  24436. ]
  24437. },
  24438. "share": {
  24439. "type": "string",
  24440. "enum": ["manual", "auto", "disabled"]
  24441. },
  24442. "enterprise": {
  24443. "type": "object",
  24444. "properties": {
  24445. "url": {
  24446. "type": "string"
  24447. }
  24448. },
  24449. "additionalProperties": false
  24450. },
  24451. "username": {
  24452. "type": "string"
  24453. },
  24454. "permissions": {
  24455. "$ref": "#/components/schemas/Permission.Ruleset"
  24456. },
  24457. "agents": {
  24458. "type": "object",
  24459. "additionalProperties": {
  24460. "$ref": "#/components/schemas/Config.Agent"
  24461. }
  24462. },
  24463. "snapshots": {
  24464. "type": "boolean"
  24465. },
  24466. "watcher": {
  24467. "type": "object",
  24468. "properties": {
  24469. "ignore": {
  24470. "type": "array",
  24471. "items": {
  24472. "type": "string"
  24473. }
  24474. }
  24475. },
  24476. "additionalProperties": false
  24477. },
  24478. "formatter": {
  24479. "anyOf": [
  24480. {
  24481. "type": "boolean"
  24482. },
  24483. {
  24484. "type": "object",
  24485. "additionalProperties": {
  24486. "$ref": "#/components/schemas/Config.Formatter.Entry"
  24487. }
  24488. }
  24489. ]
  24490. },
  24491. "lsp": {
  24492. "anyOf": [
  24493. {
  24494. "type": "boolean"
  24495. },
  24496. {
  24497. "type": "object",
  24498. "additionalProperties": {
  24499. "anyOf": [
  24500. {
  24501. "type": "object",
  24502. "properties": {
  24503. "disabled": {
  24504. "type": "boolean",
  24505. "enum": [true]
  24506. }
  24507. },
  24508. "required": ["disabled"],
  24509. "additionalProperties": false
  24510. },
  24511. {
  24512. "$ref": "#/components/schemas/Config.LSP.Server"
  24513. }
  24514. ]
  24515. }
  24516. }
  24517. ]
  24518. },
  24519. "media": {
  24520. "type": "object",
  24521. "properties": {
  24522. "image": {
  24523. "type": "object",
  24524. "properties": {
  24525. "auto_resize": {
  24526. "type": "boolean"
  24527. },
  24528. "max_width": {
  24529. "type": "integer",
  24530. "allOf": [
  24531. {
  24532. "exclusiveMinimum": 0
  24533. }
  24534. ]
  24535. },
  24536. "max_height": {
  24537. "type": "integer",
  24538. "allOf": [
  24539. {
  24540. "exclusiveMinimum": 0
  24541. }
  24542. ]
  24543. },
  24544. "max_base64_bytes": {
  24545. "type": "integer",
  24546. "allOf": [
  24547. {
  24548. "exclusiveMinimum": 0
  24549. }
  24550. ]
  24551. }
  24552. },
  24553. "additionalProperties": false
  24554. }
  24555. },
  24556. "additionalProperties": false
  24557. },
  24558. "tool_output": {
  24559. "type": "object",
  24560. "properties": {
  24561. "max_lines": {
  24562. "type": "integer",
  24563. "allOf": [
  24564. {
  24565. "exclusiveMinimum": 0
  24566. }
  24567. ]
  24568. },
  24569. "max_bytes": {
  24570. "type": "integer",
  24571. "allOf": [
  24572. {
  24573. "exclusiveMinimum": 0
  24574. }
  24575. ]
  24576. }
  24577. },
  24578. "additionalProperties": false
  24579. },
  24580. "mcp": {
  24581. "type": "object",
  24582. "properties": {
  24583. "timeout": {
  24584. "type": "object",
  24585. "properties": {
  24586. "startup": {
  24587. "type": "integer",
  24588. "allOf": [
  24589. {
  24590. "exclusiveMinimum": 0
  24591. }
  24592. ]
  24593. },
  24594. "catalog": {
  24595. "type": "integer",
  24596. "allOf": [
  24597. {
  24598. "exclusiveMinimum": 0
  24599. }
  24600. ]
  24601. },
  24602. "execution": {
  24603. "type": "integer",
  24604. "allOf": [
  24605. {
  24606. "exclusiveMinimum": 0
  24607. }
  24608. ]
  24609. }
  24610. },
  24611. "additionalProperties": false
  24612. },
  24613. "servers": {
  24614. "type": "object",
  24615. "additionalProperties": {
  24616. "anyOf": [
  24617. {
  24618. "$ref": "#/components/schemas/Mcp.LocalConfig"
  24619. },
  24620. {
  24621. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  24622. }
  24623. ]
  24624. }
  24625. }
  24626. },
  24627. "additionalProperties": false
  24628. },
  24629. "compaction": {
  24630. "type": "object",
  24631. "properties": {
  24632. "auto": {
  24633. "type": "boolean"
  24634. },
  24635. "keep": {
  24636. "type": "object",
  24637. "properties": {
  24638. "tokens": {
  24639. "type": "integer",
  24640. "allOf": [
  24641. {
  24642. "minimum": 0
  24643. }
  24644. ]
  24645. }
  24646. },
  24647. "additionalProperties": false
  24648. },
  24649. "buffer": {
  24650. "type": "integer",
  24651. "allOf": [
  24652. {
  24653. "minimum": 0
  24654. }
  24655. ]
  24656. }
  24657. },
  24658. "additionalProperties": false
  24659. },
  24660. "skills": {
  24661. "type": "array",
  24662. "items": {
  24663. "type": "string"
  24664. }
  24665. },
  24666. "commands": {
  24667. "type": "object",
  24668. "additionalProperties": {
  24669. "$ref": "#/components/schemas/Config.Command"
  24670. }
  24671. },
  24672. "instructions": {
  24673. "type": "array",
  24674. "items": {
  24675. "type": "string"
  24676. }
  24677. },
  24678. "references": {
  24679. "type": "object",
  24680. "additionalProperties": {
  24681. "anyOf": [
  24682. {
  24683. "type": "string"
  24684. },
  24685. {
  24686. "$ref": "#/components/schemas/Config.Reference.Git"
  24687. },
  24688. {
  24689. "$ref": "#/components/schemas/Config.Reference.Local"
  24690. }
  24691. ]
  24692. }
  24693. },
  24694. "websearch": {
  24695. "type": "object",
  24696. "properties": {
  24697. "provider": {
  24698. "type": "string"
  24699. }
  24700. },
  24701. "required": ["provider"],
  24702. "additionalProperties": false
  24703. },
  24704. "plugins": {
  24705. "type": "array",
  24706. "items": {
  24707. "anyOf": [
  24708. {
  24709. "type": "string"
  24710. },
  24711. {
  24712. "$ref": "#/components/schemas/Config.Plugin.Entry"
  24713. }
  24714. ]
  24715. }
  24716. },
  24717. "warming": {
  24718. "anyOf": [
  24719. {
  24720. "type": "boolean"
  24721. },
  24722. {
  24723. "$ref": "#/components/schemas/Config.Warming"
  24724. }
  24725. ]
  24726. },
  24727. "providers": {
  24728. "type": "object",
  24729. "additionalProperties": {
  24730. "$ref": "#/components/schemas/Config.Provider"
  24731. }
  24732. },
  24733. "experimental": {
  24734. "type": "object",
  24735. "properties": {
  24736. "subagent_depth": {
  24737. "type": "integer",
  24738. "allOf": [
  24739. {
  24740. "minimum": 0
  24741. }
  24742. ]
  24743. },
  24744. "policies": {
  24745. "type": "array",
  24746. "items": {
  24747. "type": "object",
  24748. "properties": {
  24749. "action": {
  24750. "type": "string",
  24751. "enum": ["provider.use"]
  24752. },
  24753. "resource": {
  24754. "type": "string"
  24755. },
  24756. "effect": {
  24757. "type": "string",
  24758. "enum": ["allow", "deny"]
  24759. }
  24760. },
  24761. "required": ["action", "resource", "effect"],
  24762. "additionalProperties": false
  24763. }
  24764. }
  24765. },
  24766. "additionalProperties": false
  24767. }
  24768. },
  24769. "additionalProperties": false
  24770. },
  24771. "Config.Document": {
  24772. "type": "object",
  24773. "properties": {
  24774. "type": {
  24775. "type": "string",
  24776. "enum": ["document"]
  24777. },
  24778. "path": {
  24779. "type": "string"
  24780. },
  24781. "info": {
  24782. "$ref": "#/components/schemas/Config.Info"
  24783. }
  24784. },
  24785. "required": ["type", "info"],
  24786. "additionalProperties": false
  24787. },
  24788. "Config.Directory": {
  24789. "type": "object",
  24790. "properties": {
  24791. "type": {
  24792. "type": "string",
  24793. "enum": ["directory"]
  24794. },
  24795. "path": {
  24796. "type": "string"
  24797. }
  24798. },
  24799. "required": ["type", "path"],
  24800. "additionalProperties": false
  24801. },
  24802. "Config.File": {
  24803. "type": "object",
  24804. "properties": {
  24805. "type": {
  24806. "type": "string",
  24807. "enum": ["file"]
  24808. },
  24809. "path": {
  24810. "type": "string"
  24811. }
  24812. },
  24813. "required": ["type", "path"],
  24814. "additionalProperties": false
  24815. },
  24816. "Config.AgentsDirectory": {
  24817. "type": "object",
  24818. "properties": {
  24819. "type": {
  24820. "type": "string",
  24821. "enum": ["agents"]
  24822. },
  24823. "path": {
  24824. "type": "string"
  24825. }
  24826. },
  24827. "required": ["type", "path"],
  24828. "additionalProperties": false
  24829. },
  24830. "Config.ClaudeDirectory": {
  24831. "type": "object",
  24832. "properties": {
  24833. "type": {
  24834. "type": "string",
  24835. "enum": ["claude"]
  24836. },
  24837. "path": {
  24838. "type": "string"
  24839. }
  24840. },
  24841. "required": ["type", "path"],
  24842. "additionalProperties": false
  24843. },
  24844. "Config.Entry": {
  24845. "anyOf": [
  24846. {
  24847. "$ref": "#/components/schemas/Config.Document"
  24848. },
  24849. {
  24850. "$ref": "#/components/schemas/Config.Directory"
  24851. },
  24852. {
  24853. "$ref": "#/components/schemas/Config.File"
  24854. },
  24855. {
  24856. "$ref": "#/components/schemas/Config.AgentsDirectory"
  24857. },
  24858. {
  24859. "$ref": "#/components/schemas/Config.ClaudeDirectory"
  24860. }
  24861. ]
  24862. }
  24863. },
  24864. "securitySchemes": {}
  24865. },
  24866. "security": [],
  24867. "tags": [
  24868. {
  24869. "name": "health"
  24870. },
  24871. {
  24872. "name": "server"
  24873. },
  24874. {
  24875. "name": "location"
  24876. },
  24877. {
  24878. "name": "agent"
  24879. },
  24880. {
  24881. "name": "plugin",
  24882. "description": "Experimental plugin routes."
  24883. },
  24884. {
  24885. "name": "session",
  24886. "description": "Experimental session routes."
  24887. },
  24888. {
  24889. "name": "session",
  24890. "description": "Experimental message routes."
  24891. },
  24892. {
  24893. "name": "model",
  24894. "description": "Experimental model routes."
  24895. },
  24896. {
  24897. "name": "generate",
  24898. "description": "Experimental one-shot generation routes."
  24899. },
  24900. {
  24901. "name": "provider",
  24902. "description": "Experimental provider routes."
  24903. },
  24904. {
  24905. "name": "integration",
  24906. "description": "Integration discovery and authentication routes."
  24907. },
  24908. {
  24909. "name": "mcp",
  24910. "description": "MCP server and resource routes."
  24911. },
  24912. {
  24913. "name": "credential"
  24914. },
  24915. {
  24916. "name": "project",
  24917. "description": "Project routes."
  24918. },
  24919. {
  24920. "name": "form",
  24921. "description": "Session form routes."
  24922. },
  24923. {
  24924. "name": "permission",
  24925. "description": "Experimental permission routes."
  24926. },
  24927. {
  24928. "name": "filesystem",
  24929. "description": "Experimental location-scoped filesystem routes."
  24930. },
  24931. {
  24932. "name": "command",
  24933. "description": "Experimental command routes."
  24934. },
  24935. {
  24936. "name": "skill",
  24937. "description": "Experimental skill routes."
  24938. },
  24939. {
  24940. "name": "event",
  24941. "description": "Experimental event stream routes."
  24942. },
  24943. {
  24944. "name": "pty",
  24945. "description": "Experimental location-scoped PTY routes."
  24946. },
  24947. {
  24948. "name": "shell",
  24949. "description": "Experimental location-scoped shell command routes."
  24950. },
  24951. {
  24952. "name": "question",
  24953. "description": "Experimental session question routes."
  24954. },
  24955. {
  24956. "name": "reference",
  24957. "description": "Location-scoped project references."
  24958. },
  24959. {
  24960. "name": "worktree",
  24961. "description": "Project worktree management routes."
  24962. },
  24963. {
  24964. "name": "vcs",
  24965. "description": "Location-scoped version control routes."
  24966. },
  24967. {
  24968. "name": "debug"
  24969. },
  24970. {
  24971. "name": "migration"
  24972. },
  24973. {
  24974. "name": "websearch",
  24975. "description": "Location-scoped web search routes."
  24976. },
  24977. {
  24978. "name": "config",
  24979. "description": "Location-scoped configuration routes."
  24980. }
  24981. ]
  24982. }