openapi.json 665 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135
  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/project/{projectID}/directories": {
  6953. "get": {
  6954. "tags": ["project"],
  6955. "operationId": "v2.project.directories",
  6956. "parameters": [
  6957. {
  6958. "name": "projectID",
  6959. "in": "path",
  6960. "schema": {
  6961. "type": "string"
  6962. },
  6963. "required": true
  6964. },
  6965. {
  6966. "name": "location",
  6967. "in": "query",
  6968. "schema": {
  6969. "anyOf": [
  6970. {
  6971. "type": "object",
  6972. "properties": {
  6973. "directory": {
  6974. "anyOf": [
  6975. {
  6976. "type": "string"
  6977. },
  6978. {
  6979. "type": "null"
  6980. }
  6981. ]
  6982. },
  6983. "workspace": {
  6984. "anyOf": [
  6985. {
  6986. "type": "string"
  6987. },
  6988. {
  6989. "type": "null"
  6990. }
  6991. ]
  6992. }
  6993. },
  6994. "additionalProperties": false
  6995. },
  6996. {
  6997. "type": "null"
  6998. }
  6999. ]
  7000. },
  7001. "required": false,
  7002. "style": "deepObject",
  7003. "explode": true
  7004. }
  7005. ],
  7006. "security": [],
  7007. "responses": {
  7008. "200": {
  7009. "description": "Project.Directories",
  7010. "content": {
  7011. "application/json": {
  7012. "schema": {
  7013. "$ref": "#/components/schemas/Project.Directories"
  7014. }
  7015. }
  7016. }
  7017. },
  7018. "400": {
  7019. "description": "InvalidRequestError",
  7020. "content": {
  7021. "application/json": {
  7022. "schema": {
  7023. "$ref": "#/components/schemas/InvalidRequestError"
  7024. }
  7025. }
  7026. }
  7027. },
  7028. "401": {
  7029. "description": "UnauthorizedError",
  7030. "content": {
  7031. "application/json": {
  7032. "schema": {
  7033. "$ref": "#/components/schemas/UnauthorizedError"
  7034. }
  7035. }
  7036. }
  7037. }
  7038. },
  7039. "description": "List known local absolute directories for a project.",
  7040. "summary": "List project directories"
  7041. }
  7042. },
  7043. "/api/form/request": {
  7044. "get": {
  7045. "tags": ["form"],
  7046. "operationId": "v2.form.request.list",
  7047. "parameters": [
  7048. {
  7049. "name": "location",
  7050. "in": "query",
  7051. "schema": {
  7052. "anyOf": [
  7053. {
  7054. "type": "object",
  7055. "properties": {
  7056. "directory": {
  7057. "anyOf": [
  7058. {
  7059. "type": "string"
  7060. },
  7061. {
  7062. "type": "null"
  7063. }
  7064. ]
  7065. },
  7066. "workspace": {
  7067. "anyOf": [
  7068. {
  7069. "type": "string"
  7070. },
  7071. {
  7072. "type": "null"
  7073. }
  7074. ]
  7075. }
  7076. },
  7077. "additionalProperties": false
  7078. },
  7079. {
  7080. "type": "null"
  7081. }
  7082. ]
  7083. },
  7084. "required": false,
  7085. "style": "deepObject",
  7086. "explode": true
  7087. }
  7088. ],
  7089. "security": [],
  7090. "responses": {
  7091. "200": {
  7092. "description": "Success",
  7093. "content": {
  7094. "application/json": {
  7095. "schema": {
  7096. "type": "object",
  7097. "properties": {
  7098. "location": {
  7099. "$ref": "#/components/schemas/Location.Info"
  7100. },
  7101. "data": {
  7102. "type": "array",
  7103. "items": {
  7104. "$ref": "#/components/schemas/Form.Info"
  7105. }
  7106. }
  7107. },
  7108. "required": ["location", "data"],
  7109. "additionalProperties": false
  7110. }
  7111. }
  7112. }
  7113. },
  7114. "400": {
  7115. "description": "InvalidRequestError",
  7116. "content": {
  7117. "application/json": {
  7118. "schema": {
  7119. "$ref": "#/components/schemas/InvalidRequestError"
  7120. }
  7121. }
  7122. }
  7123. },
  7124. "401": {
  7125. "description": "UnauthorizedError",
  7126. "content": {
  7127. "application/json": {
  7128. "schema": {
  7129. "$ref": "#/components/schemas/UnauthorizedError"
  7130. }
  7131. }
  7132. }
  7133. }
  7134. },
  7135. "description": "Retrieve pending forms for a location.",
  7136. "summary": "List pending form requests"
  7137. }
  7138. },
  7139. "/api/session/{sessionID}/form": {
  7140. "get": {
  7141. "tags": ["form"],
  7142. "operationId": "v2.session.form.list",
  7143. "parameters": [
  7144. {
  7145. "name": "sessionID",
  7146. "in": "path",
  7147. "schema": {
  7148. "type": "string"
  7149. },
  7150. "required": true
  7151. }
  7152. ],
  7153. "security": [],
  7154. "responses": {
  7155. "200": {
  7156. "description": "Success",
  7157. "content": {
  7158. "application/json": {
  7159. "schema": {
  7160. "type": "object",
  7161. "properties": {
  7162. "data": {
  7163. "type": "array",
  7164. "items": {
  7165. "$ref": "#/components/schemas/Form.Info"
  7166. }
  7167. }
  7168. },
  7169. "required": ["data"],
  7170. "additionalProperties": false
  7171. }
  7172. }
  7173. }
  7174. },
  7175. "400": {
  7176. "description": "InvalidRequestError",
  7177. "content": {
  7178. "application/json": {
  7179. "schema": {
  7180. "$ref": "#/components/schemas/InvalidRequestError"
  7181. }
  7182. }
  7183. }
  7184. },
  7185. "401": {
  7186. "description": "UnauthorizedError",
  7187. "content": {
  7188. "application/json": {
  7189. "schema": {
  7190. "$ref": "#/components/schemas/UnauthorizedError"
  7191. }
  7192. }
  7193. }
  7194. },
  7195. "404": {
  7196. "description": "SessionNotFoundError",
  7197. "content": {
  7198. "application/json": {
  7199. "schema": {
  7200. "anyOf": [
  7201. {
  7202. "$ref": "#/components/schemas/SessionNotFoundError"
  7203. },
  7204. {
  7205. "$ref": "#/components/schemas/SessionNotFoundError"
  7206. }
  7207. ]
  7208. }
  7209. }
  7210. }
  7211. }
  7212. },
  7213. "description": "Retrieve pending forms for a session.",
  7214. "summary": "List session forms"
  7215. },
  7216. "post": {
  7217. "tags": ["form"],
  7218. "operationId": "v2.session.form.create",
  7219. "parameters": [
  7220. {
  7221. "name": "sessionID",
  7222. "in": "path",
  7223. "schema": {
  7224. "type": "string"
  7225. },
  7226. "required": true
  7227. }
  7228. ],
  7229. "security": [],
  7230. "responses": {
  7231. "200": {
  7232. "description": "Success",
  7233. "content": {
  7234. "application/json": {
  7235. "schema": {
  7236. "type": "object",
  7237. "properties": {
  7238. "data": {
  7239. "$ref": "#/components/schemas/Form.Info"
  7240. }
  7241. },
  7242. "required": ["data"],
  7243. "additionalProperties": false
  7244. }
  7245. }
  7246. }
  7247. },
  7248. "400": {
  7249. "description": "InvalidRequestError",
  7250. "content": {
  7251. "application/json": {
  7252. "schema": {
  7253. "anyOf": [
  7254. {
  7255. "$ref": "#/components/schemas/InvalidRequestError1"
  7256. },
  7257. {
  7258. "$ref": "#/components/schemas/InvalidRequestError"
  7259. }
  7260. ]
  7261. }
  7262. }
  7263. }
  7264. },
  7265. "401": {
  7266. "description": "UnauthorizedError",
  7267. "content": {
  7268. "application/json": {
  7269. "schema": {
  7270. "$ref": "#/components/schemas/UnauthorizedError"
  7271. }
  7272. }
  7273. }
  7274. },
  7275. "404": {
  7276. "description": "SessionNotFoundError",
  7277. "content": {
  7278. "application/json": {
  7279. "schema": {
  7280. "anyOf": [
  7281. {
  7282. "$ref": "#/components/schemas/SessionNotFoundError"
  7283. },
  7284. {
  7285. "$ref": "#/components/schemas/SessionNotFoundError"
  7286. }
  7287. ]
  7288. }
  7289. }
  7290. }
  7291. },
  7292. "409": {
  7293. "description": "ConflictError",
  7294. "content": {
  7295. "application/json": {
  7296. "schema": {
  7297. "$ref": "#/components/schemas/ConflictError"
  7298. }
  7299. }
  7300. }
  7301. }
  7302. },
  7303. "description": "Create a form for a session.",
  7304. "summary": "Create session form",
  7305. "requestBody": {
  7306. "content": {
  7307. "application/json": {
  7308. "schema": {
  7309. "$ref": "#/components/schemas/Form.CreatePayload"
  7310. }
  7311. }
  7312. },
  7313. "required": true
  7314. }
  7315. }
  7316. },
  7317. "/api/session/{sessionID}/form/{formID}": {
  7318. "get": {
  7319. "tags": ["form"],
  7320. "operationId": "v2.session.form.get",
  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.Info"
  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 a form for a session.",
  7405. "summary": "Get session form"
  7406. }
  7407. },
  7408. "/api/session/{sessionID}/form/{formID}/state": {
  7409. "get": {
  7410. "tags": ["form"],
  7411. "operationId": "v2.session.form.state",
  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. "200": {
  7438. "description": "Success",
  7439. "content": {
  7440. "application/json": {
  7441. "schema": {
  7442. "type": "object",
  7443. "properties": {
  7444. "data": {
  7445. "$ref": "#/components/schemas/Form.State"
  7446. }
  7447. },
  7448. "required": ["data"],
  7449. "additionalProperties": false
  7450. }
  7451. }
  7452. }
  7453. },
  7454. "400": {
  7455. "description": "InvalidRequestError",
  7456. "content": {
  7457. "application/json": {
  7458. "schema": {
  7459. "$ref": "#/components/schemas/InvalidRequestError"
  7460. }
  7461. }
  7462. }
  7463. },
  7464. "401": {
  7465. "description": "UnauthorizedError",
  7466. "content": {
  7467. "application/json": {
  7468. "schema": {
  7469. "$ref": "#/components/schemas/UnauthorizedError"
  7470. }
  7471. }
  7472. }
  7473. },
  7474. "404": {
  7475. "description": "SessionNotFoundError | FormNotFoundError",
  7476. "content": {
  7477. "application/json": {
  7478. "schema": {
  7479. "anyOf": [
  7480. {
  7481. "$ref": "#/components/schemas/FormNotFoundError"
  7482. },
  7483. {
  7484. "$ref": "#/components/schemas/SessionNotFoundError"
  7485. },
  7486. {
  7487. "$ref": "#/components/schemas/SessionNotFoundError"
  7488. }
  7489. ]
  7490. }
  7491. }
  7492. }
  7493. }
  7494. },
  7495. "description": "Retrieve the current state for a form.",
  7496. "summary": "Get form state"
  7497. }
  7498. },
  7499. "/api/session/{sessionID}/form/{formID}/reply": {
  7500. "post": {
  7501. "tags": ["form"],
  7502. "operationId": "v2.session.form.reply",
  7503. "parameters": [
  7504. {
  7505. "name": "sessionID",
  7506. "in": "path",
  7507. "schema": {
  7508. "type": "string"
  7509. },
  7510. "required": true
  7511. },
  7512. {
  7513. "name": "formID",
  7514. "in": "path",
  7515. "schema": {
  7516. "type": "string",
  7517. "allOf": [
  7518. {
  7519. "pattern": "^frm_"
  7520. }
  7521. ]
  7522. },
  7523. "required": true
  7524. }
  7525. ],
  7526. "security": [],
  7527. "responses": {
  7528. "204": {
  7529. "description": "<No Content>"
  7530. },
  7531. "400": {
  7532. "description": "FormInvalidAnswerError | InvalidRequestError",
  7533. "content": {
  7534. "application/json": {
  7535. "schema": {
  7536. "anyOf": [
  7537. {
  7538. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7539. },
  7540. {
  7541. "$ref": "#/components/schemas/InvalidRequestError"
  7542. }
  7543. ]
  7544. }
  7545. }
  7546. }
  7547. },
  7548. "401": {
  7549. "description": "UnauthorizedError",
  7550. "content": {
  7551. "application/json": {
  7552. "schema": {
  7553. "$ref": "#/components/schemas/UnauthorizedError"
  7554. }
  7555. }
  7556. }
  7557. },
  7558. "404": {
  7559. "description": "SessionNotFoundError | FormNotFoundError",
  7560. "content": {
  7561. "application/json": {
  7562. "schema": {
  7563. "anyOf": [
  7564. {
  7565. "$ref": "#/components/schemas/FormNotFoundError"
  7566. },
  7567. {
  7568. "$ref": "#/components/schemas/SessionNotFoundError"
  7569. },
  7570. {
  7571. "$ref": "#/components/schemas/SessionNotFoundError"
  7572. }
  7573. ]
  7574. }
  7575. }
  7576. }
  7577. },
  7578. "409": {
  7579. "description": "FormAlreadySettledError",
  7580. "content": {
  7581. "application/json": {
  7582. "schema": {
  7583. "$ref": "#/components/schemas/FormAlreadySettledError"
  7584. }
  7585. }
  7586. }
  7587. }
  7588. },
  7589. "description": "Submit an answer to a pending form.",
  7590. "summary": "Reply to form",
  7591. "requestBody": {
  7592. "content": {
  7593. "application/json": {
  7594. "schema": {
  7595. "$ref": "#/components/schemas/Form.Reply"
  7596. }
  7597. }
  7598. },
  7599. "required": true
  7600. }
  7601. }
  7602. },
  7603. "/api/session/{sessionID}/form/{formID}/cancel": {
  7604. "post": {
  7605. "tags": ["form"],
  7606. "operationId": "v2.session.form.cancel",
  7607. "parameters": [
  7608. {
  7609. "name": "sessionID",
  7610. "in": "path",
  7611. "schema": {
  7612. "type": "string"
  7613. },
  7614. "required": true
  7615. },
  7616. {
  7617. "name": "formID",
  7618. "in": "path",
  7619. "schema": {
  7620. "type": "string",
  7621. "allOf": [
  7622. {
  7623. "pattern": "^frm_"
  7624. }
  7625. ]
  7626. },
  7627. "required": true
  7628. }
  7629. ],
  7630. "security": [],
  7631. "responses": {
  7632. "204": {
  7633. "description": "<No Content>"
  7634. },
  7635. "400": {
  7636. "description": "InvalidRequestError",
  7637. "content": {
  7638. "application/json": {
  7639. "schema": {
  7640. "$ref": "#/components/schemas/InvalidRequestError"
  7641. }
  7642. }
  7643. }
  7644. },
  7645. "401": {
  7646. "description": "UnauthorizedError",
  7647. "content": {
  7648. "application/json": {
  7649. "schema": {
  7650. "$ref": "#/components/schemas/UnauthorizedError"
  7651. }
  7652. }
  7653. }
  7654. },
  7655. "404": {
  7656. "description": "SessionNotFoundError | FormNotFoundError",
  7657. "content": {
  7658. "application/json": {
  7659. "schema": {
  7660. "anyOf": [
  7661. {
  7662. "$ref": "#/components/schemas/FormNotFoundError"
  7663. },
  7664. {
  7665. "$ref": "#/components/schemas/SessionNotFoundError"
  7666. },
  7667. {
  7668. "$ref": "#/components/schemas/SessionNotFoundError"
  7669. }
  7670. ]
  7671. }
  7672. }
  7673. }
  7674. },
  7675. "409": {
  7676. "description": "FormAlreadySettledError",
  7677. "content": {
  7678. "application/json": {
  7679. "schema": {
  7680. "$ref": "#/components/schemas/FormAlreadySettledError"
  7681. }
  7682. }
  7683. }
  7684. }
  7685. },
  7686. "description": "Cancel a pending form.",
  7687. "summary": "Cancel form"
  7688. }
  7689. },
  7690. "/api/permission/request": {
  7691. "get": {
  7692. "tags": ["permission"],
  7693. "operationId": "v2.permission.request.list",
  7694. "parameters": [
  7695. {
  7696. "name": "location",
  7697. "in": "query",
  7698. "schema": {
  7699. "anyOf": [
  7700. {
  7701. "type": "object",
  7702. "properties": {
  7703. "directory": {
  7704. "anyOf": [
  7705. {
  7706. "type": "string"
  7707. },
  7708. {
  7709. "type": "null"
  7710. }
  7711. ]
  7712. },
  7713. "workspace": {
  7714. "anyOf": [
  7715. {
  7716. "type": "string"
  7717. },
  7718. {
  7719. "type": "null"
  7720. }
  7721. ]
  7722. }
  7723. },
  7724. "additionalProperties": false
  7725. },
  7726. {
  7727. "type": "null"
  7728. }
  7729. ]
  7730. },
  7731. "required": false,
  7732. "style": "deepObject",
  7733. "explode": true
  7734. }
  7735. ],
  7736. "security": [],
  7737. "responses": {
  7738. "200": {
  7739. "description": "Success",
  7740. "content": {
  7741. "application/json": {
  7742. "schema": {
  7743. "type": "object",
  7744. "properties": {
  7745. "location": {
  7746. "$ref": "#/components/schemas/Location.Info"
  7747. },
  7748. "data": {
  7749. "type": "array",
  7750. "items": {
  7751. "$ref": "#/components/schemas/Permission.Request"
  7752. }
  7753. }
  7754. },
  7755. "required": ["location", "data"],
  7756. "additionalProperties": false
  7757. }
  7758. }
  7759. }
  7760. },
  7761. "400": {
  7762. "description": "InvalidRequestError",
  7763. "content": {
  7764. "application/json": {
  7765. "schema": {
  7766. "$ref": "#/components/schemas/InvalidRequestError"
  7767. }
  7768. }
  7769. }
  7770. },
  7771. "401": {
  7772. "description": "UnauthorizedError",
  7773. "content": {
  7774. "application/json": {
  7775. "schema": {
  7776. "$ref": "#/components/schemas/UnauthorizedError"
  7777. }
  7778. }
  7779. }
  7780. }
  7781. },
  7782. "description": "Retrieve pending permission requests for a location.",
  7783. "summary": "List pending permission requests"
  7784. }
  7785. },
  7786. "/api/permission/saved": {
  7787. "get": {
  7788. "tags": ["permission"],
  7789. "operationId": "v2.permission.saved.list",
  7790. "parameters": [
  7791. {
  7792. "name": "projectID",
  7793. "in": "query",
  7794. "schema": {
  7795. "anyOf": [
  7796. {
  7797. "type": "string"
  7798. },
  7799. {
  7800. "type": "null"
  7801. }
  7802. ]
  7803. },
  7804. "required": false
  7805. }
  7806. ],
  7807. "security": [],
  7808. "responses": {
  7809. "200": {
  7810. "description": "Success",
  7811. "content": {
  7812. "application/json": {
  7813. "schema": {
  7814. "type": "object",
  7815. "properties": {
  7816. "data": {
  7817. "type": "array",
  7818. "items": {
  7819. "$ref": "#/components/schemas/PermissionSaved.Info"
  7820. }
  7821. }
  7822. },
  7823. "required": ["data"],
  7824. "additionalProperties": false
  7825. }
  7826. }
  7827. }
  7828. },
  7829. "400": {
  7830. "description": "InvalidRequestError",
  7831. "content": {
  7832. "application/json": {
  7833. "schema": {
  7834. "$ref": "#/components/schemas/InvalidRequestError"
  7835. }
  7836. }
  7837. }
  7838. },
  7839. "401": {
  7840. "description": "UnauthorizedError",
  7841. "content": {
  7842. "application/json": {
  7843. "schema": {
  7844. "$ref": "#/components/schemas/UnauthorizedError"
  7845. }
  7846. }
  7847. }
  7848. }
  7849. },
  7850. "description": "Retrieve saved permissions, optionally filtered by project.",
  7851. "summary": "List saved permissions"
  7852. }
  7853. },
  7854. "/api/permission/saved/{id}": {
  7855. "delete": {
  7856. "tags": ["permission"],
  7857. "operationId": "v2.permission.saved.remove",
  7858. "parameters": [
  7859. {
  7860. "name": "id",
  7861. "in": "path",
  7862. "schema": {
  7863. "type": "string"
  7864. },
  7865. "required": true
  7866. }
  7867. ],
  7868. "security": [],
  7869. "responses": {
  7870. "204": {
  7871. "description": "<No Content>"
  7872. },
  7873. "400": {
  7874. "description": "InvalidRequestError",
  7875. "content": {
  7876. "application/json": {
  7877. "schema": {
  7878. "$ref": "#/components/schemas/InvalidRequestError"
  7879. }
  7880. }
  7881. }
  7882. },
  7883. "401": {
  7884. "description": "UnauthorizedError",
  7885. "content": {
  7886. "application/json": {
  7887. "schema": {
  7888. "$ref": "#/components/schemas/UnauthorizedError"
  7889. }
  7890. }
  7891. }
  7892. }
  7893. },
  7894. "description": "Remove a saved permission by ID.",
  7895. "summary": "Remove saved permission"
  7896. }
  7897. },
  7898. "/api/session/{sessionID}/permission": {
  7899. "post": {
  7900. "tags": ["permission"],
  7901. "operationId": "v2.session.permission.create",
  7902. "parameters": [
  7903. {
  7904. "name": "sessionID",
  7905. "in": "path",
  7906. "schema": {
  7907. "type": "string",
  7908. "allOf": [
  7909. {
  7910. "pattern": "^ses"
  7911. }
  7912. ]
  7913. },
  7914. "required": true
  7915. }
  7916. ],
  7917. "security": [],
  7918. "responses": {
  7919. "200": {
  7920. "description": "Success",
  7921. "content": {
  7922. "application/json": {
  7923. "schema": {
  7924. "type": "object",
  7925. "properties": {
  7926. "data": {
  7927. "type": "object",
  7928. "properties": {
  7929. "id": {
  7930. "type": "string",
  7931. "allOf": [
  7932. {
  7933. "pattern": "^per"
  7934. }
  7935. ]
  7936. },
  7937. "effect": {
  7938. "$ref": "#/components/schemas/Permission.Effect"
  7939. }
  7940. },
  7941. "required": ["id", "effect"],
  7942. "additionalProperties": false
  7943. }
  7944. },
  7945. "required": ["data"],
  7946. "additionalProperties": false
  7947. }
  7948. }
  7949. }
  7950. },
  7951. "400": {
  7952. "description": "InvalidRequestError",
  7953. "content": {
  7954. "application/json": {
  7955. "schema": {
  7956. "$ref": "#/components/schemas/InvalidRequestError"
  7957. }
  7958. }
  7959. }
  7960. },
  7961. "401": {
  7962. "description": "UnauthorizedError",
  7963. "content": {
  7964. "application/json": {
  7965. "schema": {
  7966. "$ref": "#/components/schemas/UnauthorizedError"
  7967. }
  7968. }
  7969. }
  7970. },
  7971. "404": {
  7972. "description": "SessionNotFoundError",
  7973. "content": {
  7974. "application/json": {
  7975. "schema": {
  7976. "anyOf": [
  7977. {
  7978. "$ref": "#/components/schemas/SessionNotFoundError"
  7979. },
  7980. {
  7981. "$ref": "#/components/schemas/SessionNotFoundError"
  7982. }
  7983. ]
  7984. }
  7985. }
  7986. }
  7987. }
  7988. },
  7989. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7990. "summary": "Create permission request",
  7991. "requestBody": {
  7992. "content": {
  7993. "application/json": {
  7994. "schema": {
  7995. "type": "object",
  7996. "properties": {
  7997. "id": {
  7998. "anyOf": [
  7999. {
  8000. "type": "string",
  8001. "allOf": [
  8002. {
  8003. "pattern": "^per"
  8004. }
  8005. ]
  8006. },
  8007. {
  8008. "type": "null"
  8009. }
  8010. ]
  8011. },
  8012. "action": {
  8013. "type": "string"
  8014. },
  8015. "resources": {
  8016. "type": "array",
  8017. "items": {
  8018. "type": "string"
  8019. }
  8020. },
  8021. "save": {
  8022. "type": "array",
  8023. "items": {
  8024. "type": "string"
  8025. }
  8026. },
  8027. "metadata": {
  8028. "type": "object"
  8029. },
  8030. "source": {
  8031. "$ref": "#/components/schemas/Permission.Source"
  8032. },
  8033. "agent": {
  8034. "anyOf": [
  8035. {
  8036. "type": "string"
  8037. },
  8038. {
  8039. "type": "null"
  8040. }
  8041. ]
  8042. }
  8043. },
  8044. "required": ["action", "resources"],
  8045. "additionalProperties": false
  8046. }
  8047. }
  8048. },
  8049. "required": true
  8050. }
  8051. },
  8052. "get": {
  8053. "tags": ["permission"],
  8054. "operationId": "v2.session.permission.list",
  8055. "parameters": [
  8056. {
  8057. "name": "sessionID",
  8058. "in": "path",
  8059. "schema": {
  8060. "type": "string",
  8061. "allOf": [
  8062. {
  8063. "pattern": "^ses"
  8064. }
  8065. ]
  8066. },
  8067. "required": true
  8068. }
  8069. ],
  8070. "security": [],
  8071. "responses": {
  8072. "200": {
  8073. "description": "Success",
  8074. "content": {
  8075. "application/json": {
  8076. "schema": {
  8077. "type": "object",
  8078. "properties": {
  8079. "data": {
  8080. "type": "array",
  8081. "items": {
  8082. "$ref": "#/components/schemas/Permission.Request"
  8083. }
  8084. }
  8085. },
  8086. "required": ["data"],
  8087. "additionalProperties": false
  8088. }
  8089. }
  8090. }
  8091. },
  8092. "400": {
  8093. "description": "InvalidRequestError",
  8094. "content": {
  8095. "application/json": {
  8096. "schema": {
  8097. "$ref": "#/components/schemas/InvalidRequestError"
  8098. }
  8099. }
  8100. }
  8101. },
  8102. "401": {
  8103. "description": "UnauthorizedError",
  8104. "content": {
  8105. "application/json": {
  8106. "schema": {
  8107. "$ref": "#/components/schemas/UnauthorizedError"
  8108. }
  8109. }
  8110. }
  8111. },
  8112. "404": {
  8113. "description": "SessionNotFoundError",
  8114. "content": {
  8115. "application/json": {
  8116. "schema": {
  8117. "anyOf": [
  8118. {
  8119. "$ref": "#/components/schemas/SessionNotFoundError"
  8120. },
  8121. {
  8122. "$ref": "#/components/schemas/SessionNotFoundError"
  8123. }
  8124. ]
  8125. }
  8126. }
  8127. }
  8128. }
  8129. },
  8130. "description": "Retrieve pending permission requests owned by a session.",
  8131. "summary": "List session permission requests"
  8132. }
  8133. },
  8134. "/api/session/{sessionID}/permission/{requestID}": {
  8135. "get": {
  8136. "tags": ["permission"],
  8137. "operationId": "v2.session.permission.get",
  8138. "parameters": [
  8139. {
  8140. "name": "sessionID",
  8141. "in": "path",
  8142. "schema": {
  8143. "type": "string",
  8144. "allOf": [
  8145. {
  8146. "pattern": "^ses"
  8147. }
  8148. ]
  8149. },
  8150. "required": true
  8151. },
  8152. {
  8153. "name": "requestID",
  8154. "in": "path",
  8155. "schema": {
  8156. "type": "string",
  8157. "allOf": [
  8158. {
  8159. "pattern": "^per"
  8160. }
  8161. ]
  8162. },
  8163. "required": true
  8164. }
  8165. ],
  8166. "security": [],
  8167. "responses": {
  8168. "200": {
  8169. "description": "Success",
  8170. "content": {
  8171. "application/json": {
  8172. "schema": {
  8173. "type": "object",
  8174. "properties": {
  8175. "data": {
  8176. "$ref": "#/components/schemas/Permission.Request"
  8177. }
  8178. },
  8179. "required": ["data"],
  8180. "additionalProperties": false
  8181. }
  8182. }
  8183. }
  8184. },
  8185. "400": {
  8186. "description": "InvalidRequestError",
  8187. "content": {
  8188. "application/json": {
  8189. "schema": {
  8190. "$ref": "#/components/schemas/InvalidRequestError"
  8191. }
  8192. }
  8193. }
  8194. },
  8195. "401": {
  8196. "description": "UnauthorizedError",
  8197. "content": {
  8198. "application/json": {
  8199. "schema": {
  8200. "$ref": "#/components/schemas/UnauthorizedError"
  8201. }
  8202. }
  8203. }
  8204. },
  8205. "404": {
  8206. "description": "SessionNotFoundError | PermissionNotFoundError",
  8207. "content": {
  8208. "application/json": {
  8209. "schema": {
  8210. "anyOf": [
  8211. {
  8212. "$ref": "#/components/schemas/PermissionNotFoundError"
  8213. },
  8214. {
  8215. "$ref": "#/components/schemas/SessionNotFoundError"
  8216. },
  8217. {
  8218. "$ref": "#/components/schemas/SessionNotFoundError"
  8219. }
  8220. ]
  8221. }
  8222. }
  8223. }
  8224. }
  8225. },
  8226. "description": "Retrieve a pending permission request owned by a session.",
  8227. "summary": "Get permission request"
  8228. }
  8229. },
  8230. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8231. "post": {
  8232. "tags": ["permission"],
  8233. "operationId": "v2.session.permission.reply",
  8234. "parameters": [
  8235. {
  8236. "name": "sessionID",
  8237. "in": "path",
  8238. "schema": {
  8239. "type": "string",
  8240. "allOf": [
  8241. {
  8242. "pattern": "^ses"
  8243. }
  8244. ]
  8245. },
  8246. "required": true
  8247. },
  8248. {
  8249. "name": "requestID",
  8250. "in": "path",
  8251. "schema": {
  8252. "type": "string",
  8253. "allOf": [
  8254. {
  8255. "pattern": "^per"
  8256. }
  8257. ]
  8258. },
  8259. "required": true
  8260. }
  8261. ],
  8262. "security": [],
  8263. "responses": {
  8264. "204": {
  8265. "description": "<No Content>"
  8266. },
  8267. "400": {
  8268. "description": "InvalidRequestError",
  8269. "content": {
  8270. "application/json": {
  8271. "schema": {
  8272. "$ref": "#/components/schemas/InvalidRequestError"
  8273. }
  8274. }
  8275. }
  8276. },
  8277. "401": {
  8278. "description": "UnauthorizedError",
  8279. "content": {
  8280. "application/json": {
  8281. "schema": {
  8282. "$ref": "#/components/schemas/UnauthorizedError"
  8283. }
  8284. }
  8285. }
  8286. },
  8287. "404": {
  8288. "description": "SessionNotFoundError | PermissionNotFoundError",
  8289. "content": {
  8290. "application/json": {
  8291. "schema": {
  8292. "anyOf": [
  8293. {
  8294. "$ref": "#/components/schemas/PermissionNotFoundError"
  8295. },
  8296. {
  8297. "$ref": "#/components/schemas/SessionNotFoundError"
  8298. },
  8299. {
  8300. "$ref": "#/components/schemas/SessionNotFoundError"
  8301. }
  8302. ]
  8303. }
  8304. }
  8305. }
  8306. }
  8307. },
  8308. "description": "Respond to a pending permission request owned by a session.",
  8309. "summary": "Reply to pending permission request",
  8310. "requestBody": {
  8311. "content": {
  8312. "application/json": {
  8313. "schema": {
  8314. "type": "object",
  8315. "properties": {
  8316. "reply": {
  8317. "$ref": "#/components/schemas/Permission.Reply"
  8318. },
  8319. "message": {
  8320. "anyOf": [
  8321. {
  8322. "type": "string"
  8323. },
  8324. {
  8325. "type": "null"
  8326. }
  8327. ]
  8328. }
  8329. },
  8330. "required": ["reply"],
  8331. "additionalProperties": false
  8332. }
  8333. }
  8334. },
  8335. "required": true
  8336. }
  8337. }
  8338. },
  8339. "/api/fs/read/*": {
  8340. "get": {
  8341. "tags": ["filesystem"],
  8342. "operationId": "v2.fs.read",
  8343. "parameters": [
  8344. {
  8345. "name": "location",
  8346. "in": "query",
  8347. "schema": {
  8348. "anyOf": [
  8349. {
  8350. "type": "object",
  8351. "properties": {
  8352. "directory": {
  8353. "anyOf": [
  8354. {
  8355. "type": "string"
  8356. },
  8357. {
  8358. "type": "null"
  8359. }
  8360. ]
  8361. },
  8362. "workspace": {
  8363. "anyOf": [
  8364. {
  8365. "type": "string"
  8366. },
  8367. {
  8368. "type": "null"
  8369. }
  8370. ]
  8371. }
  8372. },
  8373. "additionalProperties": false
  8374. },
  8375. {
  8376. "type": "null"
  8377. }
  8378. ]
  8379. },
  8380. "required": false,
  8381. "style": "deepObject",
  8382. "explode": true
  8383. }
  8384. ],
  8385. "security": [],
  8386. "responses": {
  8387. "200": {
  8388. "description": "Success",
  8389. "content": {
  8390. "application/octet-stream": {
  8391. "schema": {
  8392. "type": "string",
  8393. "format": "binary"
  8394. }
  8395. }
  8396. }
  8397. },
  8398. "400": {
  8399. "description": "InvalidRequestError",
  8400. "content": {
  8401. "application/json": {
  8402. "schema": {
  8403. "$ref": "#/components/schemas/InvalidRequestError"
  8404. }
  8405. }
  8406. }
  8407. },
  8408. "401": {
  8409. "description": "UnauthorizedError",
  8410. "content": {
  8411. "application/json": {
  8412. "schema": {
  8413. "$ref": "#/components/schemas/UnauthorizedError"
  8414. }
  8415. }
  8416. }
  8417. }
  8418. },
  8419. "description": "Serve one file relative to the requested location.",
  8420. "summary": "Read file"
  8421. }
  8422. },
  8423. "/api/fs/list": {
  8424. "get": {
  8425. "tags": ["filesystem"],
  8426. "operationId": "v2.fs.list",
  8427. "parameters": [
  8428. {
  8429. "name": "location",
  8430. "in": "query",
  8431. "schema": {
  8432. "anyOf": [
  8433. {
  8434. "type": "object",
  8435. "properties": {
  8436. "directory": {
  8437. "anyOf": [
  8438. {
  8439. "type": "string"
  8440. },
  8441. {
  8442. "type": "null"
  8443. }
  8444. ]
  8445. },
  8446. "workspace": {
  8447. "anyOf": [
  8448. {
  8449. "type": "string"
  8450. },
  8451. {
  8452. "type": "null"
  8453. }
  8454. ]
  8455. }
  8456. },
  8457. "additionalProperties": false
  8458. },
  8459. {
  8460. "type": "null"
  8461. }
  8462. ]
  8463. },
  8464. "required": false,
  8465. "style": "deepObject",
  8466. "explode": true
  8467. },
  8468. {
  8469. "name": "path",
  8470. "in": "query",
  8471. "schema": {
  8472. "anyOf": [
  8473. {
  8474. "type": "string"
  8475. },
  8476. {
  8477. "type": "null"
  8478. }
  8479. ]
  8480. },
  8481. "required": false
  8482. }
  8483. ],
  8484. "security": [],
  8485. "responses": {
  8486. "200": {
  8487. "description": "Success",
  8488. "content": {
  8489. "application/json": {
  8490. "schema": {
  8491. "type": "object",
  8492. "properties": {
  8493. "location": {
  8494. "$ref": "#/components/schemas/Location.Info"
  8495. },
  8496. "data": {
  8497. "type": "array",
  8498. "items": {
  8499. "$ref": "#/components/schemas/FileSystem.Entry"
  8500. }
  8501. }
  8502. },
  8503. "required": ["location", "data"],
  8504. "additionalProperties": false
  8505. }
  8506. }
  8507. }
  8508. },
  8509. "400": {
  8510. "description": "InvalidRequestError",
  8511. "content": {
  8512. "application/json": {
  8513. "schema": {
  8514. "$ref": "#/components/schemas/InvalidRequestError"
  8515. }
  8516. }
  8517. }
  8518. },
  8519. "401": {
  8520. "description": "UnauthorizedError",
  8521. "content": {
  8522. "application/json": {
  8523. "schema": {
  8524. "$ref": "#/components/schemas/UnauthorizedError"
  8525. }
  8526. }
  8527. }
  8528. }
  8529. },
  8530. "description": "List direct children of one directory relative to the requested location.",
  8531. "summary": "List directory"
  8532. }
  8533. },
  8534. "/api/fs/find": {
  8535. "get": {
  8536. "tags": ["filesystem"],
  8537. "operationId": "v2.fs.find",
  8538. "parameters": [
  8539. {
  8540. "name": "location",
  8541. "in": "query",
  8542. "schema": {
  8543. "anyOf": [
  8544. {
  8545. "type": "object",
  8546. "properties": {
  8547. "directory": {
  8548. "anyOf": [
  8549. {
  8550. "type": "string"
  8551. },
  8552. {
  8553. "type": "null"
  8554. }
  8555. ]
  8556. },
  8557. "workspace": {
  8558. "anyOf": [
  8559. {
  8560. "type": "string"
  8561. },
  8562. {
  8563. "type": "null"
  8564. }
  8565. ]
  8566. }
  8567. },
  8568. "additionalProperties": false
  8569. },
  8570. {
  8571. "type": "null"
  8572. }
  8573. ]
  8574. },
  8575. "required": false,
  8576. "style": "deepObject",
  8577. "explode": true
  8578. },
  8579. {
  8580. "name": "query",
  8581. "in": "query",
  8582. "schema": {
  8583. "type": "string"
  8584. },
  8585. "required": true
  8586. },
  8587. {
  8588. "name": "type",
  8589. "in": "query",
  8590. "schema": {
  8591. "type": "string",
  8592. "enum": ["file", "directory"]
  8593. },
  8594. "required": false
  8595. },
  8596. {
  8597. "name": "limit",
  8598. "in": "query",
  8599. "schema": {
  8600. "anyOf": [
  8601. {
  8602. "type": "string"
  8603. },
  8604. {
  8605. "type": "null"
  8606. }
  8607. ]
  8608. },
  8609. "required": false
  8610. }
  8611. ],
  8612. "security": [],
  8613. "responses": {
  8614. "200": {
  8615. "description": "Success",
  8616. "content": {
  8617. "application/json": {
  8618. "schema": {
  8619. "type": "object",
  8620. "properties": {
  8621. "location": {
  8622. "$ref": "#/components/schemas/Location.Info"
  8623. },
  8624. "data": {
  8625. "type": "array",
  8626. "items": {
  8627. "$ref": "#/components/schemas/FileSystem.Entry"
  8628. }
  8629. }
  8630. },
  8631. "required": ["location", "data"],
  8632. "additionalProperties": false
  8633. }
  8634. }
  8635. }
  8636. },
  8637. "400": {
  8638. "description": "InvalidRequestError",
  8639. "content": {
  8640. "application/json": {
  8641. "schema": {
  8642. "$ref": "#/components/schemas/InvalidRequestError"
  8643. }
  8644. }
  8645. }
  8646. },
  8647. "401": {
  8648. "description": "UnauthorizedError",
  8649. "content": {
  8650. "application/json": {
  8651. "schema": {
  8652. "$ref": "#/components/schemas/UnauthorizedError"
  8653. }
  8654. }
  8655. }
  8656. }
  8657. },
  8658. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8659. "summary": "Find files"
  8660. }
  8661. },
  8662. "/api/command": {
  8663. "get": {
  8664. "tags": ["command"],
  8665. "operationId": "v2.command.list",
  8666. "parameters": [
  8667. {
  8668. "name": "location",
  8669. "in": "query",
  8670. "schema": {
  8671. "anyOf": [
  8672. {
  8673. "type": "object",
  8674. "properties": {
  8675. "directory": {
  8676. "anyOf": [
  8677. {
  8678. "type": "string"
  8679. },
  8680. {
  8681. "type": "null"
  8682. }
  8683. ]
  8684. },
  8685. "workspace": {
  8686. "anyOf": [
  8687. {
  8688. "type": "string"
  8689. },
  8690. {
  8691. "type": "null"
  8692. }
  8693. ]
  8694. }
  8695. },
  8696. "additionalProperties": false
  8697. },
  8698. {
  8699. "type": "null"
  8700. }
  8701. ]
  8702. },
  8703. "required": false,
  8704. "style": "deepObject",
  8705. "explode": true
  8706. }
  8707. ],
  8708. "security": [],
  8709. "responses": {
  8710. "200": {
  8711. "description": "Success",
  8712. "content": {
  8713. "application/json": {
  8714. "schema": {
  8715. "type": "object",
  8716. "properties": {
  8717. "location": {
  8718. "$ref": "#/components/schemas/Location.Info"
  8719. },
  8720. "data": {
  8721. "type": "array",
  8722. "items": {
  8723. "$ref": "#/components/schemas/Command.Info"
  8724. }
  8725. }
  8726. },
  8727. "required": ["location", "data"],
  8728. "additionalProperties": false
  8729. }
  8730. }
  8731. }
  8732. },
  8733. "400": {
  8734. "description": "InvalidRequestError",
  8735. "content": {
  8736. "application/json": {
  8737. "schema": {
  8738. "$ref": "#/components/schemas/InvalidRequestError"
  8739. }
  8740. }
  8741. }
  8742. },
  8743. "401": {
  8744. "description": "UnauthorizedError",
  8745. "content": {
  8746. "application/json": {
  8747. "schema": {
  8748. "$ref": "#/components/schemas/UnauthorizedError"
  8749. }
  8750. }
  8751. }
  8752. }
  8753. },
  8754. "description": "Retrieve currently registered commands.",
  8755. "summary": "List commands"
  8756. }
  8757. },
  8758. "/api/skill": {
  8759. "get": {
  8760. "tags": ["skill"],
  8761. "operationId": "v2.skill.list",
  8762. "parameters": [
  8763. {
  8764. "name": "location",
  8765. "in": "query",
  8766. "schema": {
  8767. "anyOf": [
  8768. {
  8769. "type": "object",
  8770. "properties": {
  8771. "directory": {
  8772. "anyOf": [
  8773. {
  8774. "type": "string"
  8775. },
  8776. {
  8777. "type": "null"
  8778. }
  8779. ]
  8780. },
  8781. "workspace": {
  8782. "anyOf": [
  8783. {
  8784. "type": "string"
  8785. },
  8786. {
  8787. "type": "null"
  8788. }
  8789. ]
  8790. }
  8791. },
  8792. "additionalProperties": false
  8793. },
  8794. {
  8795. "type": "null"
  8796. }
  8797. ]
  8798. },
  8799. "required": false,
  8800. "style": "deepObject",
  8801. "explode": true
  8802. }
  8803. ],
  8804. "security": [],
  8805. "responses": {
  8806. "200": {
  8807. "description": "Success",
  8808. "content": {
  8809. "application/json": {
  8810. "schema": {
  8811. "type": "object",
  8812. "properties": {
  8813. "location": {
  8814. "$ref": "#/components/schemas/Location.Info"
  8815. },
  8816. "data": {
  8817. "type": "array",
  8818. "items": {
  8819. "$ref": "#/components/schemas/Skill.Info"
  8820. }
  8821. }
  8822. },
  8823. "required": ["location", "data"],
  8824. "additionalProperties": false
  8825. }
  8826. }
  8827. }
  8828. },
  8829. "400": {
  8830. "description": "InvalidRequestError",
  8831. "content": {
  8832. "application/json": {
  8833. "schema": {
  8834. "$ref": "#/components/schemas/InvalidRequestError"
  8835. }
  8836. }
  8837. }
  8838. },
  8839. "401": {
  8840. "description": "UnauthorizedError",
  8841. "content": {
  8842. "application/json": {
  8843. "schema": {
  8844. "$ref": "#/components/schemas/UnauthorizedError"
  8845. }
  8846. }
  8847. }
  8848. }
  8849. },
  8850. "description": "Retrieve currently registered skills.",
  8851. "summary": "List skills"
  8852. }
  8853. },
  8854. "/api/event": {
  8855. "get": {
  8856. "tags": ["event"],
  8857. "operationId": "v2.event.subscribe",
  8858. "parameters": [],
  8859. "security": [],
  8860. "responses": {
  8861. "200": {
  8862. "description": "Success",
  8863. "content": {
  8864. "text/event-stream": {
  8865. "schema": {
  8866. "type": "object",
  8867. "properties": {
  8868. "id": {
  8869. "anyOf": [
  8870. {
  8871. "type": "string"
  8872. },
  8873. {
  8874. "type": "null"
  8875. }
  8876. ]
  8877. },
  8878. "event": {
  8879. "type": "string"
  8880. },
  8881. "data": {
  8882. "$ref": "#/components/schemas/V2EventJsonString"
  8883. }
  8884. },
  8885. "required": ["id", "event", "data"],
  8886. "additionalProperties": false
  8887. },
  8888. "x-effect-stream": {
  8889. "encoding": "sse",
  8890. "causeSchema": {
  8891. "type": "array",
  8892. "items": {
  8893. "anyOf": [
  8894. {
  8895. "type": "object",
  8896. "properties": {
  8897. "_tag": {
  8898. "type": "string",
  8899. "enum": ["Fail"]
  8900. },
  8901. "error": {
  8902. "not": {}
  8903. }
  8904. },
  8905. "required": ["_tag", "error"],
  8906. "additionalProperties": false
  8907. },
  8908. {
  8909. "type": "object",
  8910. "properties": {
  8911. "_tag": {
  8912. "type": "string",
  8913. "enum": ["Die"]
  8914. },
  8915. "defect": {}
  8916. },
  8917. "required": ["_tag", "defect"],
  8918. "additionalProperties": false
  8919. },
  8920. {
  8921. "type": "object",
  8922. "properties": {
  8923. "_tag": {
  8924. "type": "string",
  8925. "enum": ["Interrupt"]
  8926. },
  8927. "fiberId": {
  8928. "anyOf": [
  8929. {
  8930. "type": "number"
  8931. },
  8932. {
  8933. "type": "null"
  8934. }
  8935. ]
  8936. }
  8937. },
  8938. "required": ["_tag", "fiberId"],
  8939. "additionalProperties": false
  8940. }
  8941. ]
  8942. }
  8943. },
  8944. "errorSchema": {
  8945. "not": {}
  8946. },
  8947. "failureEvent": "effect/httpapi/stream/failure"
  8948. }
  8949. }
  8950. }
  8951. },
  8952. "400": {
  8953. "description": "InvalidRequestError",
  8954. "content": {
  8955. "application/json": {
  8956. "schema": {
  8957. "$ref": "#/components/schemas/InvalidRequestError"
  8958. }
  8959. }
  8960. }
  8961. },
  8962. "401": {
  8963. "description": "UnauthorizedError",
  8964. "content": {
  8965. "application/json": {
  8966. "schema": {
  8967. "$ref": "#/components/schemas/UnauthorizedError"
  8968. }
  8969. }
  8970. }
  8971. }
  8972. },
  8973. "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.",
  8974. "summary": "Subscribe to events"
  8975. }
  8976. },
  8977. "/api/pty": {
  8978. "get": {
  8979. "tags": ["pty"],
  8980. "operationId": "v2.pty.list",
  8981. "parameters": [
  8982. {
  8983. "name": "location",
  8984. "in": "query",
  8985. "schema": {
  8986. "anyOf": [
  8987. {
  8988. "type": "object",
  8989. "properties": {
  8990. "directory": {
  8991. "anyOf": [
  8992. {
  8993. "type": "string"
  8994. },
  8995. {
  8996. "type": "null"
  8997. }
  8998. ]
  8999. },
  9000. "workspace": {
  9001. "anyOf": [
  9002. {
  9003. "type": "string"
  9004. },
  9005. {
  9006. "type": "null"
  9007. }
  9008. ]
  9009. }
  9010. },
  9011. "additionalProperties": false
  9012. },
  9013. {
  9014. "type": "null"
  9015. }
  9016. ]
  9017. },
  9018. "required": false,
  9019. "style": "deepObject",
  9020. "explode": true
  9021. }
  9022. ],
  9023. "security": [],
  9024. "responses": {
  9025. "200": {
  9026. "description": "Success",
  9027. "content": {
  9028. "application/json": {
  9029. "schema": {
  9030. "type": "object",
  9031. "properties": {
  9032. "location": {
  9033. "$ref": "#/components/schemas/Location.Info"
  9034. },
  9035. "data": {
  9036. "type": "array",
  9037. "items": {
  9038. "$ref": "#/components/schemas/Pty"
  9039. }
  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": "List PTY sessions for a location, including exited sessions retained until removal.",
  9070. "summary": "List PTY sessions"
  9071. },
  9072. "post": {
  9073. "tags": ["pty"],
  9074. "operationId": "v2.pty.create",
  9075. "parameters": [
  9076. {
  9077. "name": "location",
  9078. "in": "query",
  9079. "schema": {
  9080. "anyOf": [
  9081. {
  9082. "type": "object",
  9083. "properties": {
  9084. "directory": {
  9085. "anyOf": [
  9086. {
  9087. "type": "string"
  9088. },
  9089. {
  9090. "type": "null"
  9091. }
  9092. ]
  9093. },
  9094. "workspace": {
  9095. "anyOf": [
  9096. {
  9097. "type": "string"
  9098. },
  9099. {
  9100. "type": "null"
  9101. }
  9102. ]
  9103. }
  9104. },
  9105. "additionalProperties": false
  9106. },
  9107. {
  9108. "type": "null"
  9109. }
  9110. ]
  9111. },
  9112. "required": false,
  9113. "style": "deepObject",
  9114. "explode": true
  9115. }
  9116. ],
  9117. "security": [],
  9118. "responses": {
  9119. "200": {
  9120. "description": "Success",
  9121. "content": {
  9122. "application/json": {
  9123. "schema": {
  9124. "type": "object",
  9125. "properties": {
  9126. "location": {
  9127. "$ref": "#/components/schemas/Location.Info"
  9128. },
  9129. "data": {
  9130. "$ref": "#/components/schemas/Pty"
  9131. }
  9132. },
  9133. "required": ["location", "data"],
  9134. "additionalProperties": false
  9135. }
  9136. }
  9137. }
  9138. },
  9139. "400": {
  9140. "description": "InvalidRequestError",
  9141. "content": {
  9142. "application/json": {
  9143. "schema": {
  9144. "$ref": "#/components/schemas/InvalidRequestError"
  9145. }
  9146. }
  9147. }
  9148. },
  9149. "401": {
  9150. "description": "UnauthorizedError",
  9151. "content": {
  9152. "application/json": {
  9153. "schema": {
  9154. "$ref": "#/components/schemas/UnauthorizedError"
  9155. }
  9156. }
  9157. }
  9158. }
  9159. },
  9160. "description": "Create a pseudo-terminal session for a location.",
  9161. "summary": "Create PTY session",
  9162. "requestBody": {
  9163. "content": {
  9164. "application/json": {
  9165. "schema": {
  9166. "type": "object",
  9167. "properties": {
  9168. "command": {
  9169. "type": "string"
  9170. },
  9171. "args": {
  9172. "type": "array",
  9173. "items": {
  9174. "type": "string"
  9175. }
  9176. },
  9177. "cwd": {
  9178. "type": "string"
  9179. },
  9180. "title": {
  9181. "type": "string"
  9182. },
  9183. "env": {
  9184. "type": "object",
  9185. "additionalProperties": {
  9186. "type": "string"
  9187. }
  9188. }
  9189. },
  9190. "additionalProperties": false
  9191. }
  9192. }
  9193. },
  9194. "required": true
  9195. }
  9196. }
  9197. },
  9198. "/api/pty/{ptyID}": {
  9199. "get": {
  9200. "tags": ["pty"],
  9201. "operationId": "v2.pty.get",
  9202. "parameters": [
  9203. {
  9204. "name": "ptyID",
  9205. "in": "path",
  9206. "schema": {
  9207. "type": "string",
  9208. "allOf": [
  9209. {
  9210. "pattern": "^pty"
  9211. }
  9212. ]
  9213. },
  9214. "required": true
  9215. },
  9216. {
  9217. "name": "location",
  9218. "in": "query",
  9219. "schema": {
  9220. "anyOf": [
  9221. {
  9222. "type": "object",
  9223. "properties": {
  9224. "directory": {
  9225. "anyOf": [
  9226. {
  9227. "type": "string"
  9228. },
  9229. {
  9230. "type": "null"
  9231. }
  9232. ]
  9233. },
  9234. "workspace": {
  9235. "anyOf": [
  9236. {
  9237. "type": "string"
  9238. },
  9239. {
  9240. "type": "null"
  9241. }
  9242. ]
  9243. }
  9244. },
  9245. "additionalProperties": false
  9246. },
  9247. {
  9248. "type": "null"
  9249. }
  9250. ]
  9251. },
  9252. "required": false,
  9253. "style": "deepObject",
  9254. "explode": true
  9255. }
  9256. ],
  9257. "security": [],
  9258. "responses": {
  9259. "200": {
  9260. "description": "Success",
  9261. "content": {
  9262. "application/json": {
  9263. "schema": {
  9264. "type": "object",
  9265. "properties": {
  9266. "location": {
  9267. "$ref": "#/components/schemas/Location.Info"
  9268. },
  9269. "data": {
  9270. "$ref": "#/components/schemas/Pty"
  9271. }
  9272. },
  9273. "required": ["location", "data"],
  9274. "additionalProperties": false
  9275. }
  9276. }
  9277. }
  9278. },
  9279. "400": {
  9280. "description": "InvalidRequestError",
  9281. "content": {
  9282. "application/json": {
  9283. "schema": {
  9284. "$ref": "#/components/schemas/InvalidRequestError"
  9285. }
  9286. }
  9287. }
  9288. },
  9289. "401": {
  9290. "description": "UnauthorizedError",
  9291. "content": {
  9292. "application/json": {
  9293. "schema": {
  9294. "$ref": "#/components/schemas/UnauthorizedError"
  9295. }
  9296. }
  9297. }
  9298. },
  9299. "404": {
  9300. "description": "PtyNotFoundError",
  9301. "content": {
  9302. "application/json": {
  9303. "schema": {
  9304. "$ref": "#/components/schemas/PtyNotFoundError"
  9305. }
  9306. }
  9307. }
  9308. }
  9309. },
  9310. "description": "Get one PTY session, including its exit code once exited.",
  9311. "summary": "Get PTY session"
  9312. },
  9313. "put": {
  9314. "tags": ["pty"],
  9315. "operationId": "v2.pty.update",
  9316. "parameters": [
  9317. {
  9318. "name": "ptyID",
  9319. "in": "path",
  9320. "schema": {
  9321. "type": "string",
  9322. "allOf": [
  9323. {
  9324. "pattern": "^pty"
  9325. }
  9326. ]
  9327. },
  9328. "required": true
  9329. },
  9330. {
  9331. "name": "location",
  9332. "in": "query",
  9333. "schema": {
  9334. "anyOf": [
  9335. {
  9336. "type": "object",
  9337. "properties": {
  9338. "directory": {
  9339. "anyOf": [
  9340. {
  9341. "type": "string"
  9342. },
  9343. {
  9344. "type": "null"
  9345. }
  9346. ]
  9347. },
  9348. "workspace": {
  9349. "anyOf": [
  9350. {
  9351. "type": "string"
  9352. },
  9353. {
  9354. "type": "null"
  9355. }
  9356. ]
  9357. }
  9358. },
  9359. "additionalProperties": false
  9360. },
  9361. {
  9362. "type": "null"
  9363. }
  9364. ]
  9365. },
  9366. "required": false,
  9367. "style": "deepObject",
  9368. "explode": true
  9369. }
  9370. ],
  9371. "security": [],
  9372. "responses": {
  9373. "200": {
  9374. "description": "Success",
  9375. "content": {
  9376. "application/json": {
  9377. "schema": {
  9378. "type": "object",
  9379. "properties": {
  9380. "location": {
  9381. "$ref": "#/components/schemas/Location.Info"
  9382. },
  9383. "data": {
  9384. "$ref": "#/components/schemas/Pty"
  9385. }
  9386. },
  9387. "required": ["location", "data"],
  9388. "additionalProperties": false
  9389. }
  9390. }
  9391. }
  9392. },
  9393. "400": {
  9394. "description": "InvalidRequestError",
  9395. "content": {
  9396. "application/json": {
  9397. "schema": {
  9398. "$ref": "#/components/schemas/InvalidRequestError"
  9399. }
  9400. }
  9401. }
  9402. },
  9403. "401": {
  9404. "description": "UnauthorizedError",
  9405. "content": {
  9406. "application/json": {
  9407. "schema": {
  9408. "$ref": "#/components/schemas/UnauthorizedError"
  9409. }
  9410. }
  9411. }
  9412. },
  9413. "404": {
  9414. "description": "PtyNotFoundError",
  9415. "content": {
  9416. "application/json": {
  9417. "schema": {
  9418. "$ref": "#/components/schemas/PtyNotFoundError"
  9419. }
  9420. }
  9421. }
  9422. }
  9423. },
  9424. "description": "Update the title or viewport size of one PTY session.",
  9425. "summary": "Update PTY session",
  9426. "requestBody": {
  9427. "content": {
  9428. "application/json": {
  9429. "schema": {
  9430. "type": "object",
  9431. "properties": {
  9432. "title": {
  9433. "type": "string"
  9434. },
  9435. "size": {
  9436. "type": "object",
  9437. "properties": {
  9438. "rows": {
  9439. "type": "integer",
  9440. "allOf": [
  9441. {
  9442. "exclusiveMinimum": 0
  9443. }
  9444. ]
  9445. },
  9446. "cols": {
  9447. "type": "integer",
  9448. "allOf": [
  9449. {
  9450. "exclusiveMinimum": 0
  9451. }
  9452. ]
  9453. }
  9454. },
  9455. "required": ["rows", "cols"],
  9456. "additionalProperties": false
  9457. }
  9458. },
  9459. "additionalProperties": false
  9460. }
  9461. }
  9462. },
  9463. "required": true
  9464. }
  9465. },
  9466. "delete": {
  9467. "tags": ["pty"],
  9468. "operationId": "v2.pty.remove",
  9469. "parameters": [
  9470. {
  9471. "name": "ptyID",
  9472. "in": "path",
  9473. "schema": {
  9474. "type": "string",
  9475. "allOf": [
  9476. {
  9477. "pattern": "^pty"
  9478. }
  9479. ]
  9480. },
  9481. "required": true
  9482. },
  9483. {
  9484. "name": "location",
  9485. "in": "query",
  9486. "schema": {
  9487. "anyOf": [
  9488. {
  9489. "type": "object",
  9490. "properties": {
  9491. "directory": {
  9492. "anyOf": [
  9493. {
  9494. "type": "string"
  9495. },
  9496. {
  9497. "type": "null"
  9498. }
  9499. ]
  9500. },
  9501. "workspace": {
  9502. "anyOf": [
  9503. {
  9504. "type": "string"
  9505. },
  9506. {
  9507. "type": "null"
  9508. }
  9509. ]
  9510. }
  9511. },
  9512. "additionalProperties": false
  9513. },
  9514. {
  9515. "type": "null"
  9516. }
  9517. ]
  9518. },
  9519. "required": false,
  9520. "style": "deepObject",
  9521. "explode": true
  9522. }
  9523. ],
  9524. "security": [],
  9525. "responses": {
  9526. "204": {
  9527. "description": "<No Content>"
  9528. },
  9529. "400": {
  9530. "description": "InvalidRequestError",
  9531. "content": {
  9532. "application/json": {
  9533. "schema": {
  9534. "$ref": "#/components/schemas/InvalidRequestError"
  9535. }
  9536. }
  9537. }
  9538. },
  9539. "401": {
  9540. "description": "UnauthorizedError",
  9541. "content": {
  9542. "application/json": {
  9543. "schema": {
  9544. "$ref": "#/components/schemas/UnauthorizedError"
  9545. }
  9546. }
  9547. }
  9548. },
  9549. "404": {
  9550. "description": "PtyNotFoundError",
  9551. "content": {
  9552. "application/json": {
  9553. "schema": {
  9554. "$ref": "#/components/schemas/PtyNotFoundError"
  9555. }
  9556. }
  9557. }
  9558. }
  9559. },
  9560. "description": "Terminate and remove one PTY session.",
  9561. "summary": "Remove PTY session"
  9562. }
  9563. },
  9564. "/api/pty/{ptyID}/connect-token": {
  9565. "post": {
  9566. "tags": ["pty"],
  9567. "operationId": "v2.pty.connect.token",
  9568. "parameters": [
  9569. {
  9570. "name": "ptyID",
  9571. "in": "path",
  9572. "schema": {
  9573. "type": "string",
  9574. "allOf": [
  9575. {
  9576. "pattern": "^pty"
  9577. }
  9578. ]
  9579. },
  9580. "required": true
  9581. },
  9582. {
  9583. "name": "location",
  9584. "in": "query",
  9585. "schema": {
  9586. "anyOf": [
  9587. {
  9588. "type": "object",
  9589. "properties": {
  9590. "directory": {
  9591. "anyOf": [
  9592. {
  9593. "type": "string"
  9594. },
  9595. {
  9596. "type": "null"
  9597. }
  9598. ]
  9599. },
  9600. "workspace": {
  9601. "anyOf": [
  9602. {
  9603. "type": "string"
  9604. },
  9605. {
  9606. "type": "null"
  9607. }
  9608. ]
  9609. }
  9610. },
  9611. "additionalProperties": false
  9612. },
  9613. {
  9614. "type": "null"
  9615. }
  9616. ]
  9617. },
  9618. "required": false,
  9619. "style": "deepObject",
  9620. "explode": true
  9621. }
  9622. ],
  9623. "security": [],
  9624. "responses": {
  9625. "200": {
  9626. "description": "Success",
  9627. "content": {
  9628. "application/json": {
  9629. "schema": {
  9630. "type": "object",
  9631. "properties": {
  9632. "location": {
  9633. "$ref": "#/components/schemas/Location.Info"
  9634. },
  9635. "data": {
  9636. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9637. }
  9638. },
  9639. "required": ["location", "data"],
  9640. "additionalProperties": false
  9641. }
  9642. }
  9643. }
  9644. },
  9645. "400": {
  9646. "description": "InvalidRequestError",
  9647. "content": {
  9648. "application/json": {
  9649. "schema": {
  9650. "$ref": "#/components/schemas/InvalidRequestError"
  9651. }
  9652. }
  9653. }
  9654. },
  9655. "401": {
  9656. "description": "UnauthorizedError",
  9657. "content": {
  9658. "application/json": {
  9659. "schema": {
  9660. "$ref": "#/components/schemas/UnauthorizedError"
  9661. }
  9662. }
  9663. }
  9664. },
  9665. "403": {
  9666. "description": "ForbiddenError",
  9667. "content": {
  9668. "application/json": {
  9669. "schema": {
  9670. "$ref": "#/components/schemas/ForbiddenError"
  9671. }
  9672. }
  9673. }
  9674. },
  9675. "404": {
  9676. "description": "PtyNotFoundError",
  9677. "content": {
  9678. "application/json": {
  9679. "schema": {
  9680. "$ref": "#/components/schemas/PtyNotFoundError"
  9681. }
  9682. }
  9683. }
  9684. }
  9685. },
  9686. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9687. "summary": "Create PTY WebSocket token"
  9688. }
  9689. },
  9690. "/api/pty/{ptyID}/connect": {
  9691. "get": {
  9692. "tags": ["pty"],
  9693. "operationId": "v2.pty.connect",
  9694. "parameters": [
  9695. {
  9696. "name": "ptyID",
  9697. "in": "path",
  9698. "schema": {
  9699. "type": "string",
  9700. "allOf": [
  9701. {
  9702. "pattern": "^pty"
  9703. }
  9704. ]
  9705. },
  9706. "required": true
  9707. },
  9708. {
  9709. "in": "query",
  9710. "name": "location[directory]",
  9711. "schema": {
  9712. "type": "string"
  9713. }
  9714. },
  9715. {
  9716. "in": "query",
  9717. "name": "location[workspace]",
  9718. "schema": {
  9719. "type": "string"
  9720. }
  9721. },
  9722. {
  9723. "in": "query",
  9724. "name": "cursor",
  9725. "schema": {
  9726. "type": "string"
  9727. }
  9728. },
  9729. {
  9730. "in": "query",
  9731. "name": "ticket",
  9732. "schema": {
  9733. "type": "string"
  9734. }
  9735. }
  9736. ],
  9737. "security": [],
  9738. "responses": {
  9739. "200": {
  9740. "description": "Success",
  9741. "content": {
  9742. "application/json": {
  9743. "schema": {
  9744. "type": "boolean"
  9745. }
  9746. }
  9747. }
  9748. },
  9749. "400": {
  9750. "description": "InvalidRequestError",
  9751. "content": {
  9752. "application/json": {
  9753. "schema": {
  9754. "$ref": "#/components/schemas/InvalidRequestError"
  9755. }
  9756. }
  9757. }
  9758. },
  9759. "401": {
  9760. "description": "UnauthorizedError",
  9761. "content": {
  9762. "application/json": {
  9763. "schema": {
  9764. "$ref": "#/components/schemas/UnauthorizedError"
  9765. }
  9766. }
  9767. }
  9768. },
  9769. "403": {
  9770. "description": "ForbiddenError",
  9771. "content": {
  9772. "application/json": {
  9773. "schema": {
  9774. "$ref": "#/components/schemas/ForbiddenError"
  9775. }
  9776. }
  9777. }
  9778. },
  9779. "404": {
  9780. "description": "PtyNotFoundError",
  9781. "content": {
  9782. "application/json": {
  9783. "schema": {
  9784. "$ref": "#/components/schemas/PtyNotFoundError"
  9785. }
  9786. }
  9787. }
  9788. }
  9789. },
  9790. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9791. "summary": "Connect to PTY session",
  9792. "x-websocket": true
  9793. }
  9794. },
  9795. "/api/shell": {
  9796. "get": {
  9797. "tags": ["shell"],
  9798. "operationId": "v2.shell.list",
  9799. "parameters": [
  9800. {
  9801. "name": "location",
  9802. "in": "query",
  9803. "schema": {
  9804. "anyOf": [
  9805. {
  9806. "type": "object",
  9807. "properties": {
  9808. "directory": {
  9809. "anyOf": [
  9810. {
  9811. "type": "string"
  9812. },
  9813. {
  9814. "type": "null"
  9815. }
  9816. ]
  9817. },
  9818. "workspace": {
  9819. "anyOf": [
  9820. {
  9821. "type": "string"
  9822. },
  9823. {
  9824. "type": "null"
  9825. }
  9826. ]
  9827. }
  9828. },
  9829. "additionalProperties": false
  9830. },
  9831. {
  9832. "type": "null"
  9833. }
  9834. ]
  9835. },
  9836. "required": false,
  9837. "style": "deepObject",
  9838. "explode": true
  9839. }
  9840. ],
  9841. "security": [],
  9842. "responses": {
  9843. "200": {
  9844. "description": "Success",
  9845. "content": {
  9846. "application/json": {
  9847. "schema": {
  9848. "type": "object",
  9849. "properties": {
  9850. "location": {
  9851. "$ref": "#/components/schemas/Location.Info"
  9852. },
  9853. "data": {
  9854. "type": "array",
  9855. "items": {
  9856. "$ref": "#/components/schemas/Shell.Info1"
  9857. }
  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": "List currently running shell commands for a location. Exited commands are not included.",
  9888. "summary": "List running shell commands"
  9889. },
  9890. "post": {
  9891. "tags": ["shell"],
  9892. "operationId": "v2.shell.create",
  9893. "parameters": [
  9894. {
  9895. "name": "location",
  9896. "in": "query",
  9897. "schema": {
  9898. "anyOf": [
  9899. {
  9900. "type": "object",
  9901. "properties": {
  9902. "directory": {
  9903. "anyOf": [
  9904. {
  9905. "type": "string"
  9906. },
  9907. {
  9908. "type": "null"
  9909. }
  9910. ]
  9911. },
  9912. "workspace": {
  9913. "anyOf": [
  9914. {
  9915. "type": "string"
  9916. },
  9917. {
  9918. "type": "null"
  9919. }
  9920. ]
  9921. }
  9922. },
  9923. "additionalProperties": false
  9924. },
  9925. {
  9926. "type": "null"
  9927. }
  9928. ]
  9929. },
  9930. "required": false,
  9931. "style": "deepObject",
  9932. "explode": true
  9933. }
  9934. ],
  9935. "security": [],
  9936. "responses": {
  9937. "200": {
  9938. "description": "Success",
  9939. "content": {
  9940. "application/json": {
  9941. "schema": {
  9942. "type": "object",
  9943. "properties": {
  9944. "location": {
  9945. "$ref": "#/components/schemas/Location.Info"
  9946. },
  9947. "data": {
  9948. "$ref": "#/components/schemas/Shell.Info1"
  9949. }
  9950. },
  9951. "required": ["location", "data"],
  9952. "additionalProperties": false
  9953. }
  9954. }
  9955. }
  9956. },
  9957. "400": {
  9958. "description": "InvalidRequestError",
  9959. "content": {
  9960. "application/json": {
  9961. "schema": {
  9962. "$ref": "#/components/schemas/InvalidRequestError"
  9963. }
  9964. }
  9965. }
  9966. },
  9967. "401": {
  9968. "description": "UnauthorizedError",
  9969. "content": {
  9970. "application/json": {
  9971. "schema": {
  9972. "$ref": "#/components/schemas/UnauthorizedError"
  9973. }
  9974. }
  9975. }
  9976. }
  9977. },
  9978. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9979. "summary": "Run shell command",
  9980. "requestBody": {
  9981. "content": {
  9982. "application/json": {
  9983. "schema": {
  9984. "type": "object",
  9985. "properties": {
  9986. "command": {
  9987. "type": "string"
  9988. },
  9989. "cwd": {
  9990. "type": "string"
  9991. },
  9992. "timeout": {
  9993. "type": "integer",
  9994. "allOf": [
  9995. {
  9996. "minimum": 0
  9997. }
  9998. ]
  9999. },
  10000. "metadata": {
  10001. "type": "object"
  10002. }
  10003. },
  10004. "required": ["command", "timeout"],
  10005. "additionalProperties": false
  10006. }
  10007. }
  10008. },
  10009. "required": true
  10010. }
  10011. }
  10012. },
  10013. "/api/shell/{id}": {
  10014. "get": {
  10015. "tags": ["shell"],
  10016. "operationId": "v2.shell.get",
  10017. "parameters": [
  10018. {
  10019. "name": "id",
  10020. "in": "path",
  10021. "schema": {
  10022. "type": "string",
  10023. "allOf": [
  10024. {
  10025. "pattern": "^sh_"
  10026. }
  10027. ]
  10028. },
  10029. "required": true
  10030. },
  10031. {
  10032. "name": "location",
  10033. "in": "query",
  10034. "schema": {
  10035. "anyOf": [
  10036. {
  10037. "type": "object",
  10038. "properties": {
  10039. "directory": {
  10040. "anyOf": [
  10041. {
  10042. "type": "string"
  10043. },
  10044. {
  10045. "type": "null"
  10046. }
  10047. ]
  10048. },
  10049. "workspace": {
  10050. "anyOf": [
  10051. {
  10052. "type": "string"
  10053. },
  10054. {
  10055. "type": "null"
  10056. }
  10057. ]
  10058. }
  10059. },
  10060. "additionalProperties": false
  10061. },
  10062. {
  10063. "type": "null"
  10064. }
  10065. ]
  10066. },
  10067. "required": false,
  10068. "style": "deepObject",
  10069. "explode": true
  10070. }
  10071. ],
  10072. "security": [],
  10073. "responses": {
  10074. "200": {
  10075. "description": "Success",
  10076. "content": {
  10077. "application/json": {
  10078. "schema": {
  10079. "type": "object",
  10080. "properties": {
  10081. "location": {
  10082. "$ref": "#/components/schemas/Location.Info"
  10083. },
  10084. "data": {
  10085. "$ref": "#/components/schemas/Shell.Info1"
  10086. }
  10087. },
  10088. "required": ["location", "data"],
  10089. "additionalProperties": false
  10090. }
  10091. }
  10092. }
  10093. },
  10094. "400": {
  10095. "description": "InvalidRequestError",
  10096. "content": {
  10097. "application/json": {
  10098. "schema": {
  10099. "$ref": "#/components/schemas/InvalidRequestError"
  10100. }
  10101. }
  10102. }
  10103. },
  10104. "401": {
  10105. "description": "UnauthorizedError",
  10106. "content": {
  10107. "application/json": {
  10108. "schema": {
  10109. "$ref": "#/components/schemas/UnauthorizedError"
  10110. }
  10111. }
  10112. }
  10113. },
  10114. "404": {
  10115. "description": "ShellNotFoundError",
  10116. "content": {
  10117. "application/json": {
  10118. "schema": {
  10119. "$ref": "#/components/schemas/ShellNotFoundError"
  10120. }
  10121. }
  10122. }
  10123. }
  10124. },
  10125. "description": "Get one shell command, including its status and exit code once exited.",
  10126. "summary": "Get shell command"
  10127. },
  10128. "delete": {
  10129. "tags": ["shell"],
  10130. "operationId": "v2.shell.remove",
  10131. "parameters": [
  10132. {
  10133. "name": "id",
  10134. "in": "path",
  10135. "schema": {
  10136. "type": "string",
  10137. "allOf": [
  10138. {
  10139. "pattern": "^sh_"
  10140. }
  10141. ]
  10142. },
  10143. "required": true
  10144. },
  10145. {
  10146. "name": "location",
  10147. "in": "query",
  10148. "schema": {
  10149. "anyOf": [
  10150. {
  10151. "type": "object",
  10152. "properties": {
  10153. "directory": {
  10154. "anyOf": [
  10155. {
  10156. "type": "string"
  10157. },
  10158. {
  10159. "type": "null"
  10160. }
  10161. ]
  10162. },
  10163. "workspace": {
  10164. "anyOf": [
  10165. {
  10166. "type": "string"
  10167. },
  10168. {
  10169. "type": "null"
  10170. }
  10171. ]
  10172. }
  10173. },
  10174. "additionalProperties": false
  10175. },
  10176. {
  10177. "type": "null"
  10178. }
  10179. ]
  10180. },
  10181. "required": false,
  10182. "style": "deepObject",
  10183. "explode": true
  10184. }
  10185. ],
  10186. "security": [],
  10187. "responses": {
  10188. "204": {
  10189. "description": "<No Content>"
  10190. },
  10191. "400": {
  10192. "description": "InvalidRequestError",
  10193. "content": {
  10194. "application/json": {
  10195. "schema": {
  10196. "$ref": "#/components/schemas/InvalidRequestError"
  10197. }
  10198. }
  10199. }
  10200. },
  10201. "401": {
  10202. "description": "UnauthorizedError",
  10203. "content": {
  10204. "application/json": {
  10205. "schema": {
  10206. "$ref": "#/components/schemas/UnauthorizedError"
  10207. }
  10208. }
  10209. }
  10210. },
  10211. "404": {
  10212. "description": "ShellNotFoundError",
  10213. "content": {
  10214. "application/json": {
  10215. "schema": {
  10216. "$ref": "#/components/schemas/ShellNotFoundError"
  10217. }
  10218. }
  10219. }
  10220. }
  10221. },
  10222. "description": "Terminate and remove one shell command and its retained output.",
  10223. "summary": "Remove shell command"
  10224. }
  10225. },
  10226. "/api/shell/{id}/timeout": {
  10227. "patch": {
  10228. "tags": ["shell"],
  10229. "operationId": "v2.shell.timeout",
  10230. "parameters": [
  10231. {
  10232. "name": "id",
  10233. "in": "path",
  10234. "schema": {
  10235. "type": "string",
  10236. "allOf": [
  10237. {
  10238. "pattern": "^sh_"
  10239. }
  10240. ]
  10241. },
  10242. "required": true
  10243. },
  10244. {
  10245. "name": "location",
  10246. "in": "query",
  10247. "schema": {
  10248. "anyOf": [
  10249. {
  10250. "type": "object",
  10251. "properties": {
  10252. "directory": {
  10253. "anyOf": [
  10254. {
  10255. "type": "string"
  10256. },
  10257. {
  10258. "type": "null"
  10259. }
  10260. ]
  10261. },
  10262. "workspace": {
  10263. "anyOf": [
  10264. {
  10265. "type": "string"
  10266. },
  10267. {
  10268. "type": "null"
  10269. }
  10270. ]
  10271. }
  10272. },
  10273. "additionalProperties": false
  10274. },
  10275. {
  10276. "type": "null"
  10277. }
  10278. ]
  10279. },
  10280. "required": false,
  10281. "style": "deepObject",
  10282. "explode": true
  10283. }
  10284. ],
  10285. "security": [],
  10286. "responses": {
  10287. "200": {
  10288. "description": "Success",
  10289. "content": {
  10290. "application/json": {
  10291. "schema": {
  10292. "type": "object",
  10293. "properties": {
  10294. "location": {
  10295. "$ref": "#/components/schemas/Location.Info"
  10296. },
  10297. "data": {
  10298. "$ref": "#/components/schemas/Shell.Info1"
  10299. }
  10300. },
  10301. "required": ["location", "data"],
  10302. "additionalProperties": false
  10303. }
  10304. }
  10305. }
  10306. },
  10307. "400": {
  10308. "description": "InvalidRequestError",
  10309. "content": {
  10310. "application/json": {
  10311. "schema": {
  10312. "$ref": "#/components/schemas/InvalidRequestError"
  10313. }
  10314. }
  10315. }
  10316. },
  10317. "401": {
  10318. "description": "UnauthorizedError",
  10319. "content": {
  10320. "application/json": {
  10321. "schema": {
  10322. "$ref": "#/components/schemas/UnauthorizedError"
  10323. }
  10324. }
  10325. }
  10326. },
  10327. "404": {
  10328. "description": "ShellNotFoundError",
  10329. "content": {
  10330. "application/json": {
  10331. "schema": {
  10332. "$ref": "#/components/schemas/ShellNotFoundError"
  10333. }
  10334. }
  10335. }
  10336. }
  10337. },
  10338. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10339. "summary": "Update shell timeout",
  10340. "requestBody": {
  10341. "content": {
  10342. "application/json": {
  10343. "schema": {
  10344. "type": "object",
  10345. "properties": {
  10346. "timeout": {
  10347. "type": "integer",
  10348. "allOf": [
  10349. {
  10350. "minimum": 0
  10351. }
  10352. ]
  10353. }
  10354. },
  10355. "required": ["timeout"],
  10356. "additionalProperties": false
  10357. }
  10358. }
  10359. },
  10360. "required": true
  10361. }
  10362. }
  10363. },
  10364. "/api/shell/{id}/output": {
  10365. "get": {
  10366. "tags": ["shell"],
  10367. "operationId": "v2.shell.output",
  10368. "parameters": [
  10369. {
  10370. "name": "id",
  10371. "in": "path",
  10372. "schema": {
  10373. "type": "string",
  10374. "allOf": [
  10375. {
  10376. "pattern": "^sh_"
  10377. }
  10378. ]
  10379. },
  10380. "required": true
  10381. },
  10382. {
  10383. "name": "location",
  10384. "in": "query",
  10385. "schema": {
  10386. "anyOf": [
  10387. {
  10388. "type": "object",
  10389. "properties": {
  10390. "directory": {
  10391. "anyOf": [
  10392. {
  10393. "type": "string"
  10394. },
  10395. {
  10396. "type": "null"
  10397. }
  10398. ]
  10399. },
  10400. "workspace": {
  10401. "anyOf": [
  10402. {
  10403. "type": "string"
  10404. },
  10405. {
  10406. "type": "null"
  10407. }
  10408. ]
  10409. }
  10410. },
  10411. "additionalProperties": false
  10412. },
  10413. {
  10414. "type": "null"
  10415. }
  10416. ]
  10417. },
  10418. "required": false,
  10419. "style": "deepObject",
  10420. "explode": true
  10421. },
  10422. {
  10423. "name": "cursor",
  10424. "in": "query",
  10425. "schema": {
  10426. "type": "string",
  10427. "allOf": [
  10428. {
  10429. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10430. }
  10431. ]
  10432. },
  10433. "required": false
  10434. },
  10435. {
  10436. "name": "limit",
  10437. "in": "query",
  10438. "schema": {
  10439. "type": "string",
  10440. "allOf": [
  10441. {
  10442. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10443. }
  10444. ]
  10445. },
  10446. "required": false
  10447. }
  10448. ],
  10449. "security": [],
  10450. "responses": {
  10451. "200": {
  10452. "description": "Success",
  10453. "content": {
  10454. "application/json": {
  10455. "schema": {
  10456. "type": "object",
  10457. "properties": {
  10458. "location": {
  10459. "$ref": "#/components/schemas/Location.Info"
  10460. },
  10461. "data": {
  10462. "type": "object",
  10463. "properties": {
  10464. "output": {
  10465. "type": "string"
  10466. },
  10467. "cursor": {
  10468. "type": "integer",
  10469. "allOf": [
  10470. {
  10471. "minimum": 0
  10472. }
  10473. ]
  10474. },
  10475. "size": {
  10476. "type": "integer",
  10477. "allOf": [
  10478. {
  10479. "minimum": 0
  10480. }
  10481. ]
  10482. },
  10483. "truncated": {
  10484. "type": "boolean"
  10485. }
  10486. },
  10487. "required": ["output", "cursor", "size", "truncated"],
  10488. "additionalProperties": false
  10489. }
  10490. },
  10491. "required": ["location", "data"],
  10492. "additionalProperties": false
  10493. }
  10494. }
  10495. }
  10496. },
  10497. "400": {
  10498. "description": "InvalidRequestError",
  10499. "content": {
  10500. "application/json": {
  10501. "schema": {
  10502. "$ref": "#/components/schemas/InvalidRequestError"
  10503. }
  10504. }
  10505. }
  10506. },
  10507. "401": {
  10508. "description": "UnauthorizedError",
  10509. "content": {
  10510. "application/json": {
  10511. "schema": {
  10512. "$ref": "#/components/schemas/UnauthorizedError"
  10513. }
  10514. }
  10515. }
  10516. },
  10517. "404": {
  10518. "description": "ShellNotFoundError",
  10519. "content": {
  10520. "application/json": {
  10521. "schema": {
  10522. "$ref": "#/components/schemas/ShellNotFoundError"
  10523. }
  10524. }
  10525. }
  10526. }
  10527. },
  10528. "description": "Page through captured combined output by absolute byte cursor.",
  10529. "summary": "Read shell output"
  10530. }
  10531. },
  10532. "/api/question/request": {
  10533. "get": {
  10534. "tags": ["question"],
  10535. "operationId": "v2.question.request.list",
  10536. "parameters": [
  10537. {
  10538. "name": "location",
  10539. "in": "query",
  10540. "schema": {
  10541. "anyOf": [
  10542. {
  10543. "type": "object",
  10544. "properties": {
  10545. "directory": {
  10546. "anyOf": [
  10547. {
  10548. "type": "string"
  10549. },
  10550. {
  10551. "type": "null"
  10552. }
  10553. ]
  10554. },
  10555. "workspace": {
  10556. "anyOf": [
  10557. {
  10558. "type": "string"
  10559. },
  10560. {
  10561. "type": "null"
  10562. }
  10563. ]
  10564. }
  10565. },
  10566. "additionalProperties": false
  10567. },
  10568. {
  10569. "type": "null"
  10570. }
  10571. ]
  10572. },
  10573. "required": false,
  10574. "style": "deepObject",
  10575. "explode": true
  10576. }
  10577. ],
  10578. "security": [],
  10579. "responses": {
  10580. "200": {
  10581. "description": "Success",
  10582. "content": {
  10583. "application/json": {
  10584. "schema": {
  10585. "type": "object",
  10586. "properties": {
  10587. "location": {
  10588. "$ref": "#/components/schemas/Location.Info"
  10589. },
  10590. "data": {
  10591. "type": "array",
  10592. "items": {
  10593. "$ref": "#/components/schemas/Question.Request"
  10594. }
  10595. }
  10596. },
  10597. "required": ["location", "data"],
  10598. "additionalProperties": false
  10599. }
  10600. }
  10601. }
  10602. },
  10603. "400": {
  10604. "description": "InvalidRequestError",
  10605. "content": {
  10606. "application/json": {
  10607. "schema": {
  10608. "$ref": "#/components/schemas/InvalidRequestError"
  10609. }
  10610. }
  10611. }
  10612. },
  10613. "401": {
  10614. "description": "UnauthorizedError",
  10615. "content": {
  10616. "application/json": {
  10617. "schema": {
  10618. "$ref": "#/components/schemas/UnauthorizedError"
  10619. }
  10620. }
  10621. }
  10622. }
  10623. },
  10624. "description": "Retrieve pending question requests for a location.",
  10625. "summary": "List pending question requests"
  10626. }
  10627. },
  10628. "/api/session/{sessionID}/question": {
  10629. "get": {
  10630. "tags": ["question"],
  10631. "operationId": "v2.session.question.list",
  10632. "parameters": [
  10633. {
  10634. "name": "sessionID",
  10635. "in": "path",
  10636. "schema": {
  10637. "type": "string",
  10638. "allOf": [
  10639. {
  10640. "pattern": "^ses"
  10641. }
  10642. ]
  10643. },
  10644. "required": true
  10645. }
  10646. ],
  10647. "security": [],
  10648. "responses": {
  10649. "200": {
  10650. "description": "Success",
  10651. "content": {
  10652. "application/json": {
  10653. "schema": {
  10654. "type": "object",
  10655. "properties": {
  10656. "data": {
  10657. "type": "array",
  10658. "items": {
  10659. "$ref": "#/components/schemas/Question.Request"
  10660. }
  10661. }
  10662. },
  10663. "required": ["data"],
  10664. "additionalProperties": false
  10665. }
  10666. }
  10667. }
  10668. },
  10669. "400": {
  10670. "description": "InvalidRequestError",
  10671. "content": {
  10672. "application/json": {
  10673. "schema": {
  10674. "$ref": "#/components/schemas/InvalidRequestError"
  10675. }
  10676. }
  10677. }
  10678. },
  10679. "401": {
  10680. "description": "UnauthorizedError",
  10681. "content": {
  10682. "application/json": {
  10683. "schema": {
  10684. "$ref": "#/components/schemas/UnauthorizedError"
  10685. }
  10686. }
  10687. }
  10688. },
  10689. "404": {
  10690. "description": "SessionNotFoundError",
  10691. "content": {
  10692. "application/json": {
  10693. "schema": {
  10694. "anyOf": [
  10695. {
  10696. "$ref": "#/components/schemas/SessionNotFoundError"
  10697. },
  10698. {
  10699. "$ref": "#/components/schemas/SessionNotFoundError"
  10700. }
  10701. ]
  10702. }
  10703. }
  10704. }
  10705. }
  10706. },
  10707. "description": "Retrieve pending question requests owned by a session.",
  10708. "summary": "List session question requests"
  10709. }
  10710. },
  10711. "/api/session/{sessionID}/question/{requestID}/reply": {
  10712. "post": {
  10713. "tags": ["question"],
  10714. "operationId": "v2.session.question.reply",
  10715. "parameters": [
  10716. {
  10717. "name": "sessionID",
  10718. "in": "path",
  10719. "schema": {
  10720. "type": "string",
  10721. "allOf": [
  10722. {
  10723. "pattern": "^ses"
  10724. }
  10725. ]
  10726. },
  10727. "required": true
  10728. },
  10729. {
  10730. "name": "requestID",
  10731. "in": "path",
  10732. "schema": {
  10733. "type": "string",
  10734. "allOf": [
  10735. {
  10736. "pattern": "^que"
  10737. }
  10738. ]
  10739. },
  10740. "required": true
  10741. }
  10742. ],
  10743. "security": [],
  10744. "responses": {
  10745. "204": {
  10746. "description": "<No Content>"
  10747. },
  10748. "400": {
  10749. "description": "InvalidRequestError",
  10750. "content": {
  10751. "application/json": {
  10752. "schema": {
  10753. "$ref": "#/components/schemas/InvalidRequestError"
  10754. }
  10755. }
  10756. }
  10757. },
  10758. "401": {
  10759. "description": "UnauthorizedError",
  10760. "content": {
  10761. "application/json": {
  10762. "schema": {
  10763. "$ref": "#/components/schemas/UnauthorizedError"
  10764. }
  10765. }
  10766. }
  10767. },
  10768. "404": {
  10769. "description": "SessionNotFoundError | QuestionNotFoundError",
  10770. "content": {
  10771. "application/json": {
  10772. "schema": {
  10773. "anyOf": [
  10774. {
  10775. "$ref": "#/components/schemas/QuestionNotFoundError"
  10776. },
  10777. {
  10778. "$ref": "#/components/schemas/SessionNotFoundError"
  10779. },
  10780. {
  10781. "$ref": "#/components/schemas/SessionNotFoundError"
  10782. }
  10783. ]
  10784. }
  10785. }
  10786. }
  10787. }
  10788. },
  10789. "description": "Answer a pending question request owned by a session.",
  10790. "summary": "Reply to pending question request",
  10791. "requestBody": {
  10792. "content": {
  10793. "application/json": {
  10794. "schema": {
  10795. "$ref": "#/components/schemas/Question.Reply"
  10796. }
  10797. }
  10798. },
  10799. "required": true
  10800. }
  10801. }
  10802. },
  10803. "/api/session/{sessionID}/question/{requestID}/reject": {
  10804. "post": {
  10805. "tags": ["question"],
  10806. "operationId": "v2.session.question.reject",
  10807. "parameters": [
  10808. {
  10809. "name": "sessionID",
  10810. "in": "path",
  10811. "schema": {
  10812. "type": "string",
  10813. "allOf": [
  10814. {
  10815. "pattern": "^ses"
  10816. }
  10817. ]
  10818. },
  10819. "required": true
  10820. },
  10821. {
  10822. "name": "requestID",
  10823. "in": "path",
  10824. "schema": {
  10825. "type": "string",
  10826. "allOf": [
  10827. {
  10828. "pattern": "^que"
  10829. }
  10830. ]
  10831. },
  10832. "required": true
  10833. }
  10834. ],
  10835. "security": [],
  10836. "responses": {
  10837. "204": {
  10838. "description": "<No Content>"
  10839. },
  10840. "400": {
  10841. "description": "InvalidRequestError",
  10842. "content": {
  10843. "application/json": {
  10844. "schema": {
  10845. "$ref": "#/components/schemas/InvalidRequestError"
  10846. }
  10847. }
  10848. }
  10849. },
  10850. "401": {
  10851. "description": "UnauthorizedError",
  10852. "content": {
  10853. "application/json": {
  10854. "schema": {
  10855. "$ref": "#/components/schemas/UnauthorizedError"
  10856. }
  10857. }
  10858. }
  10859. },
  10860. "404": {
  10861. "description": "SessionNotFoundError | QuestionNotFoundError",
  10862. "content": {
  10863. "application/json": {
  10864. "schema": {
  10865. "anyOf": [
  10866. {
  10867. "$ref": "#/components/schemas/QuestionNotFoundError"
  10868. },
  10869. {
  10870. "$ref": "#/components/schemas/SessionNotFoundError"
  10871. },
  10872. {
  10873. "$ref": "#/components/schemas/SessionNotFoundError"
  10874. }
  10875. ]
  10876. }
  10877. }
  10878. }
  10879. }
  10880. },
  10881. "description": "Reject a pending question request owned by a session.",
  10882. "summary": "Reject pending question request"
  10883. }
  10884. },
  10885. "/api/reference": {
  10886. "get": {
  10887. "tags": ["reference"],
  10888. "operationId": "v2.reference.list",
  10889. "parameters": [
  10890. {
  10891. "name": "location",
  10892. "in": "query",
  10893. "schema": {
  10894. "anyOf": [
  10895. {
  10896. "type": "object",
  10897. "properties": {
  10898. "directory": {
  10899. "anyOf": [
  10900. {
  10901. "type": "string"
  10902. },
  10903. {
  10904. "type": "null"
  10905. }
  10906. ]
  10907. },
  10908. "workspace": {
  10909. "anyOf": [
  10910. {
  10911. "type": "string"
  10912. },
  10913. {
  10914. "type": "null"
  10915. }
  10916. ]
  10917. }
  10918. },
  10919. "additionalProperties": false
  10920. },
  10921. {
  10922. "type": "null"
  10923. }
  10924. ]
  10925. },
  10926. "required": false,
  10927. "style": "deepObject",
  10928. "explode": true
  10929. }
  10930. ],
  10931. "security": [],
  10932. "responses": {
  10933. "200": {
  10934. "description": "Success",
  10935. "content": {
  10936. "application/json": {
  10937. "schema": {
  10938. "type": "object",
  10939. "properties": {
  10940. "location": {
  10941. "$ref": "#/components/schemas/Location.Info"
  10942. },
  10943. "data": {
  10944. "type": "array",
  10945. "items": {
  10946. "$ref": "#/components/schemas/Reference.Info"
  10947. }
  10948. }
  10949. },
  10950. "required": ["location", "data"],
  10951. "additionalProperties": false
  10952. }
  10953. }
  10954. }
  10955. },
  10956. "400": {
  10957. "description": "InvalidRequestError",
  10958. "content": {
  10959. "application/json": {
  10960. "schema": {
  10961. "$ref": "#/components/schemas/InvalidRequestError"
  10962. }
  10963. }
  10964. }
  10965. },
  10966. "401": {
  10967. "description": "UnauthorizedError",
  10968. "content": {
  10969. "application/json": {
  10970. "schema": {
  10971. "$ref": "#/components/schemas/UnauthorizedError"
  10972. }
  10973. }
  10974. }
  10975. }
  10976. },
  10977. "description": "List references available in the requested location.",
  10978. "summary": "List references"
  10979. }
  10980. },
  10981. "/api/experimental/project/{projectID}/copy": {
  10982. "post": {
  10983. "tags": ["projectCopy"],
  10984. "operationId": "v2.projectCopy.create",
  10985. "parameters": [
  10986. {
  10987. "name": "projectID",
  10988. "in": "path",
  10989. "schema": {
  10990. "type": "string"
  10991. },
  10992. "required": true
  10993. },
  10994. {
  10995. "name": "location",
  10996. "in": "query",
  10997. "schema": {
  10998. "anyOf": [
  10999. {
  11000. "type": "object",
  11001. "properties": {
  11002. "directory": {
  11003. "anyOf": [
  11004. {
  11005. "type": "string"
  11006. },
  11007. {
  11008. "type": "null"
  11009. }
  11010. ]
  11011. },
  11012. "workspace": {
  11013. "anyOf": [
  11014. {
  11015. "type": "string"
  11016. },
  11017. {
  11018. "type": "null"
  11019. }
  11020. ]
  11021. }
  11022. },
  11023. "additionalProperties": false
  11024. },
  11025. {
  11026. "type": "null"
  11027. }
  11028. ]
  11029. },
  11030. "required": false,
  11031. "style": "deepObject",
  11032. "explode": true
  11033. }
  11034. ],
  11035. "security": [],
  11036. "responses": {
  11037. "200": {
  11038. "description": "ProjectCopy.Copy",
  11039. "content": {
  11040. "application/json": {
  11041. "schema": {
  11042. "$ref": "#/components/schemas/ProjectCopy.Copy"
  11043. }
  11044. }
  11045. }
  11046. },
  11047. "400": {
  11048. "description": "ProjectCopyError | InvalidRequestError",
  11049. "content": {
  11050. "application/json": {
  11051. "schema": {
  11052. "anyOf": [
  11053. {
  11054. "$ref": "#/components/schemas/ProjectCopyError"
  11055. },
  11056. {
  11057. "$ref": "#/components/schemas/InvalidRequestError"
  11058. }
  11059. ]
  11060. }
  11061. }
  11062. }
  11063. },
  11064. "401": {
  11065. "description": "UnauthorizedError",
  11066. "content": {
  11067. "application/json": {
  11068. "schema": {
  11069. "$ref": "#/components/schemas/UnauthorizedError"
  11070. }
  11071. }
  11072. }
  11073. }
  11074. },
  11075. "requestBody": {
  11076. "content": {
  11077. "application/json": {
  11078. "schema": {
  11079. "type": "object",
  11080. "properties": {
  11081. "strategy": {
  11082. "type": "string"
  11083. },
  11084. "directory": {
  11085. "type": "string"
  11086. },
  11087. "name": {
  11088. "type": "string"
  11089. }
  11090. },
  11091. "required": ["strategy", "directory"],
  11092. "additionalProperties": false
  11093. }
  11094. }
  11095. },
  11096. "required": true
  11097. }
  11098. },
  11099. "delete": {
  11100. "tags": ["projectCopy"],
  11101. "operationId": "v2.projectCopy.remove",
  11102. "parameters": [
  11103. {
  11104. "name": "projectID",
  11105. "in": "path",
  11106. "schema": {
  11107. "type": "string"
  11108. },
  11109. "required": true
  11110. },
  11111. {
  11112. "name": "location",
  11113. "in": "query",
  11114. "schema": {
  11115. "anyOf": [
  11116. {
  11117. "type": "object",
  11118. "properties": {
  11119. "directory": {
  11120. "anyOf": [
  11121. {
  11122. "type": "string"
  11123. },
  11124. {
  11125. "type": "null"
  11126. }
  11127. ]
  11128. },
  11129. "workspace": {
  11130. "anyOf": [
  11131. {
  11132. "type": "string"
  11133. },
  11134. {
  11135. "type": "null"
  11136. }
  11137. ]
  11138. }
  11139. },
  11140. "additionalProperties": false
  11141. },
  11142. {
  11143. "type": "null"
  11144. }
  11145. ]
  11146. },
  11147. "required": false,
  11148. "style": "deepObject",
  11149. "explode": true
  11150. }
  11151. ],
  11152. "security": [],
  11153. "responses": {
  11154. "204": {
  11155. "description": "<No Content>"
  11156. },
  11157. "400": {
  11158. "description": "ProjectCopyError | InvalidRequestError",
  11159. "content": {
  11160. "application/json": {
  11161. "schema": {
  11162. "anyOf": [
  11163. {
  11164. "$ref": "#/components/schemas/ProjectCopyError"
  11165. },
  11166. {
  11167. "$ref": "#/components/schemas/InvalidRequestError"
  11168. }
  11169. ]
  11170. }
  11171. }
  11172. }
  11173. },
  11174. "401": {
  11175. "description": "UnauthorizedError",
  11176. "content": {
  11177. "application/json": {
  11178. "schema": {
  11179. "$ref": "#/components/schemas/UnauthorizedError"
  11180. }
  11181. }
  11182. }
  11183. }
  11184. },
  11185. "requestBody": {
  11186. "content": {
  11187. "application/json": {
  11188. "schema": {
  11189. "type": "object",
  11190. "properties": {
  11191. "directory": {
  11192. "type": "string"
  11193. },
  11194. "force": {
  11195. "type": "boolean"
  11196. }
  11197. },
  11198. "required": ["directory", "force"],
  11199. "additionalProperties": false
  11200. }
  11201. }
  11202. },
  11203. "required": true
  11204. }
  11205. }
  11206. },
  11207. "/api/experimental/project/{projectID}/copy/refresh": {
  11208. "post": {
  11209. "tags": ["projectCopy"],
  11210. "operationId": "v2.projectCopy.refresh",
  11211. "parameters": [
  11212. {
  11213. "name": "projectID",
  11214. "in": "path",
  11215. "schema": {
  11216. "type": "string"
  11217. },
  11218. "required": true
  11219. },
  11220. {
  11221. "name": "location",
  11222. "in": "query",
  11223. "schema": {
  11224. "anyOf": [
  11225. {
  11226. "type": "object",
  11227. "properties": {
  11228. "directory": {
  11229. "anyOf": [
  11230. {
  11231. "type": "string"
  11232. },
  11233. {
  11234. "type": "null"
  11235. }
  11236. ]
  11237. },
  11238. "workspace": {
  11239. "anyOf": [
  11240. {
  11241. "type": "string"
  11242. },
  11243. {
  11244. "type": "null"
  11245. }
  11246. ]
  11247. }
  11248. },
  11249. "additionalProperties": false
  11250. },
  11251. {
  11252. "type": "null"
  11253. }
  11254. ]
  11255. },
  11256. "required": false,
  11257. "style": "deepObject",
  11258. "explode": true
  11259. }
  11260. ],
  11261. "security": [],
  11262. "responses": {
  11263. "204": {
  11264. "description": "<No Content>"
  11265. },
  11266. "400": {
  11267. "description": "ProjectCopyError | InvalidRequestError",
  11268. "content": {
  11269. "application/json": {
  11270. "schema": {
  11271. "anyOf": [
  11272. {
  11273. "$ref": "#/components/schemas/ProjectCopyError"
  11274. },
  11275. {
  11276. "$ref": "#/components/schemas/InvalidRequestError"
  11277. }
  11278. ]
  11279. }
  11280. }
  11281. }
  11282. },
  11283. "401": {
  11284. "description": "UnauthorizedError",
  11285. "content": {
  11286. "application/json": {
  11287. "schema": {
  11288. "$ref": "#/components/schemas/UnauthorizedError"
  11289. }
  11290. }
  11291. }
  11292. }
  11293. }
  11294. }
  11295. },
  11296. "/api/vcs": {
  11297. "get": {
  11298. "tags": ["vcs"],
  11299. "operationId": "v2.vcs.get",
  11300. "parameters": [
  11301. {
  11302. "name": "location",
  11303. "in": "query",
  11304. "schema": {
  11305. "anyOf": [
  11306. {
  11307. "type": "object",
  11308. "properties": {
  11309. "directory": {
  11310. "anyOf": [
  11311. {
  11312. "type": "string"
  11313. },
  11314. {
  11315. "type": "null"
  11316. }
  11317. ]
  11318. },
  11319. "workspace": {
  11320. "anyOf": [
  11321. {
  11322. "type": "string"
  11323. },
  11324. {
  11325. "type": "null"
  11326. }
  11327. ]
  11328. }
  11329. },
  11330. "additionalProperties": false
  11331. },
  11332. {
  11333. "type": "null"
  11334. }
  11335. ]
  11336. },
  11337. "required": false,
  11338. "style": "deepObject",
  11339. "explode": true
  11340. }
  11341. ],
  11342. "security": [],
  11343. "responses": {
  11344. "200": {
  11345. "description": "Success",
  11346. "content": {
  11347. "application/json": {
  11348. "schema": {
  11349. "type": "object",
  11350. "properties": {
  11351. "location": {
  11352. "$ref": "#/components/schemas/Location.Info"
  11353. },
  11354. "data": {
  11355. "$ref": "#/components/schemas/Vcs.Info"
  11356. }
  11357. },
  11358. "required": ["location", "data"],
  11359. "additionalProperties": false
  11360. }
  11361. }
  11362. }
  11363. },
  11364. "400": {
  11365. "description": "InvalidRequestError",
  11366. "content": {
  11367. "application/json": {
  11368. "schema": {
  11369. "$ref": "#/components/schemas/InvalidRequestError"
  11370. }
  11371. }
  11372. }
  11373. },
  11374. "401": {
  11375. "description": "UnauthorizedError",
  11376. "content": {
  11377. "application/json": {
  11378. "schema": {
  11379. "$ref": "#/components/schemas/UnauthorizedError"
  11380. }
  11381. }
  11382. }
  11383. }
  11384. },
  11385. "description": "Get current and default branch information for the requested location.",
  11386. "summary": "VCS info"
  11387. }
  11388. },
  11389. "/api/vcs/status": {
  11390. "get": {
  11391. "tags": ["vcs"],
  11392. "operationId": "v2.vcs.status",
  11393. "parameters": [
  11394. {
  11395. "name": "location",
  11396. "in": "query",
  11397. "schema": {
  11398. "anyOf": [
  11399. {
  11400. "type": "object",
  11401. "properties": {
  11402. "directory": {
  11403. "anyOf": [
  11404. {
  11405. "type": "string"
  11406. },
  11407. {
  11408. "type": "null"
  11409. }
  11410. ]
  11411. },
  11412. "workspace": {
  11413. "anyOf": [
  11414. {
  11415. "type": "string"
  11416. },
  11417. {
  11418. "type": "null"
  11419. }
  11420. ]
  11421. }
  11422. },
  11423. "additionalProperties": false
  11424. },
  11425. {
  11426. "type": "null"
  11427. }
  11428. ]
  11429. },
  11430. "required": false,
  11431. "style": "deepObject",
  11432. "explode": true
  11433. }
  11434. ],
  11435. "security": [],
  11436. "responses": {
  11437. "200": {
  11438. "description": "Success",
  11439. "content": {
  11440. "application/json": {
  11441. "schema": {
  11442. "type": "object",
  11443. "properties": {
  11444. "location": {
  11445. "$ref": "#/components/schemas/Location.Info"
  11446. },
  11447. "data": {
  11448. "type": "array",
  11449. "items": {
  11450. "$ref": "#/components/schemas/Vcs.FileStatus"
  11451. }
  11452. }
  11453. },
  11454. "required": ["location", "data"],
  11455. "additionalProperties": false
  11456. }
  11457. }
  11458. }
  11459. },
  11460. "400": {
  11461. "description": "InvalidRequestError",
  11462. "content": {
  11463. "application/json": {
  11464. "schema": {
  11465. "$ref": "#/components/schemas/InvalidRequestError"
  11466. }
  11467. }
  11468. }
  11469. },
  11470. "401": {
  11471. "description": "UnauthorizedError",
  11472. "content": {
  11473. "application/json": {
  11474. "schema": {
  11475. "$ref": "#/components/schemas/UnauthorizedError"
  11476. }
  11477. }
  11478. }
  11479. }
  11480. },
  11481. "description": "List uncommitted working-copy changes relative to the requested location.",
  11482. "summary": "VCS status"
  11483. }
  11484. },
  11485. "/api/vcs/diff": {
  11486. "get": {
  11487. "tags": ["vcs"],
  11488. "operationId": "v2.vcs.diff",
  11489. "parameters": [
  11490. {
  11491. "name": "location",
  11492. "in": "query",
  11493. "schema": {
  11494. "anyOf": [
  11495. {
  11496. "type": "object",
  11497. "properties": {
  11498. "directory": {
  11499. "anyOf": [
  11500. {
  11501. "type": "string"
  11502. },
  11503. {
  11504. "type": "null"
  11505. }
  11506. ]
  11507. },
  11508. "workspace": {
  11509. "anyOf": [
  11510. {
  11511. "type": "string"
  11512. },
  11513. {
  11514. "type": "null"
  11515. }
  11516. ]
  11517. }
  11518. },
  11519. "additionalProperties": false
  11520. },
  11521. {
  11522. "type": "null"
  11523. }
  11524. ]
  11525. },
  11526. "required": false,
  11527. "style": "deepObject",
  11528. "explode": true
  11529. },
  11530. {
  11531. "name": "mode",
  11532. "in": "query",
  11533. "schema": {
  11534. "$ref": "#/components/schemas/Vcs.Mode"
  11535. },
  11536. "required": true
  11537. },
  11538. {
  11539. "name": "context",
  11540. "in": "query",
  11541. "schema": {
  11542. "anyOf": [
  11543. {
  11544. "type": "string"
  11545. },
  11546. {
  11547. "type": "null"
  11548. }
  11549. ]
  11550. },
  11551. "required": false
  11552. }
  11553. ],
  11554. "security": [],
  11555. "responses": {
  11556. "200": {
  11557. "description": "Success",
  11558. "content": {
  11559. "application/json": {
  11560. "schema": {
  11561. "type": "object",
  11562. "properties": {
  11563. "location": {
  11564. "$ref": "#/components/schemas/Location.Info"
  11565. },
  11566. "data": {
  11567. "type": "array",
  11568. "items": {
  11569. "$ref": "#/components/schemas/FileDiff.Info"
  11570. }
  11571. }
  11572. },
  11573. "required": ["location", "data"],
  11574. "additionalProperties": false
  11575. }
  11576. }
  11577. }
  11578. },
  11579. "400": {
  11580. "description": "InvalidRequestError",
  11581. "content": {
  11582. "application/json": {
  11583. "schema": {
  11584. "$ref": "#/components/schemas/InvalidRequestError"
  11585. }
  11586. }
  11587. }
  11588. },
  11589. "401": {
  11590. "description": "UnauthorizedError",
  11591. "content": {
  11592. "application/json": {
  11593. "schema": {
  11594. "$ref": "#/components/schemas/UnauthorizedError"
  11595. }
  11596. }
  11597. }
  11598. }
  11599. },
  11600. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11601. "summary": "VCS diff"
  11602. }
  11603. },
  11604. "/api/debug/location": {
  11605. "get": {
  11606. "tags": ["debug"],
  11607. "operationId": "v2.debug.location.list",
  11608. "parameters": [],
  11609. "security": [],
  11610. "responses": {
  11611. "200": {
  11612. "description": "Success",
  11613. "content": {
  11614. "application/json": {
  11615. "schema": {
  11616. "type": "array",
  11617. "items": {
  11618. "$ref": "#/components/schemas/Location.Ref"
  11619. }
  11620. }
  11621. }
  11622. }
  11623. },
  11624. "400": {
  11625. "description": "InvalidRequestError",
  11626. "content": {
  11627. "application/json": {
  11628. "schema": {
  11629. "$ref": "#/components/schemas/InvalidRequestError"
  11630. }
  11631. }
  11632. }
  11633. },
  11634. "401": {
  11635. "description": "UnauthorizedError",
  11636. "content": {
  11637. "application/json": {
  11638. "schema": {
  11639. "$ref": "#/components/schemas/UnauthorizedError"
  11640. }
  11641. }
  11642. }
  11643. }
  11644. },
  11645. "description": "List locations currently loaded by the server.",
  11646. "summary": "List loaded locations"
  11647. },
  11648. "delete": {
  11649. "tags": ["debug"],
  11650. "operationId": "v2.debug.location.evict",
  11651. "parameters": [
  11652. {
  11653. "name": "location",
  11654. "in": "query",
  11655. "schema": {
  11656. "anyOf": [
  11657. {
  11658. "type": "object",
  11659. "properties": {
  11660. "directory": {
  11661. "anyOf": [
  11662. {
  11663. "type": "string"
  11664. },
  11665. {
  11666. "type": "null"
  11667. }
  11668. ]
  11669. },
  11670. "workspace": {
  11671. "anyOf": [
  11672. {
  11673. "type": "string"
  11674. },
  11675. {
  11676. "type": "null"
  11677. }
  11678. ]
  11679. }
  11680. },
  11681. "additionalProperties": false
  11682. },
  11683. {
  11684. "type": "null"
  11685. }
  11686. ]
  11687. },
  11688. "required": false,
  11689. "style": "deepObject",
  11690. "explode": true
  11691. }
  11692. ],
  11693. "security": [],
  11694. "responses": {
  11695. "204": {
  11696. "description": "<No Content>"
  11697. },
  11698. "400": {
  11699. "description": "InvalidRequestError",
  11700. "content": {
  11701. "application/json": {
  11702. "schema": {
  11703. "$ref": "#/components/schemas/InvalidRequestError"
  11704. }
  11705. }
  11706. }
  11707. },
  11708. "401": {
  11709. "description": "UnauthorizedError",
  11710. "content": {
  11711. "application/json": {
  11712. "schema": {
  11713. "$ref": "#/components/schemas/UnauthorizedError"
  11714. }
  11715. }
  11716. }
  11717. }
  11718. },
  11719. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11720. "summary": "Evict a loaded location"
  11721. }
  11722. },
  11723. "/api/experimental/migration/v1": {
  11724. "get": {
  11725. "tags": ["migration"],
  11726. "operationId": "v2.experimental.migration.v1.status",
  11727. "parameters": [],
  11728. "security": [],
  11729. "responses": {
  11730. "200": {
  11731. "description": "Success",
  11732. "content": {
  11733. "application/json": {
  11734. "schema": {
  11735. "anyOf": [
  11736. {
  11737. "type": "object",
  11738. "properties": {
  11739. "status": {
  11740. "type": "string",
  11741. "enum": ["required", "completed"]
  11742. }
  11743. },
  11744. "required": ["status"],
  11745. "additionalProperties": false
  11746. },
  11747. {
  11748. "type": "object",
  11749. "properties": {
  11750. "status": {
  11751. "type": "string",
  11752. "enum": ["running"]
  11753. },
  11754. "progress": {
  11755. "type": "object",
  11756. "properties": {
  11757. "label": {
  11758. "type": "string"
  11759. },
  11760. "numerator": {
  11761. "anyOf": [
  11762. {
  11763. "type": "integer",
  11764. "allOf": [
  11765. {
  11766. "minimum": 0
  11767. }
  11768. ]
  11769. },
  11770. {
  11771. "type": "null"
  11772. }
  11773. ]
  11774. },
  11775. "denominator": {
  11776. "anyOf": [
  11777. {
  11778. "type": "integer",
  11779. "allOf": [
  11780. {
  11781. "minimum": 0
  11782. }
  11783. ]
  11784. },
  11785. {
  11786. "type": "null"
  11787. }
  11788. ]
  11789. }
  11790. },
  11791. "required": ["label"],
  11792. "additionalProperties": false
  11793. }
  11794. },
  11795. "required": ["status", "progress"],
  11796. "additionalProperties": false
  11797. },
  11798. {
  11799. "type": "object",
  11800. "properties": {
  11801. "status": {
  11802. "type": "string",
  11803. "enum": ["error"]
  11804. },
  11805. "error": {
  11806. "type": "string"
  11807. }
  11808. },
  11809. "required": ["status", "error"],
  11810. "additionalProperties": false
  11811. }
  11812. ]
  11813. }
  11814. }
  11815. }
  11816. },
  11817. "400": {
  11818. "description": "InvalidRequestError",
  11819. "content": {
  11820. "application/json": {
  11821. "schema": {
  11822. "$ref": "#/components/schemas/InvalidRequestError"
  11823. }
  11824. }
  11825. }
  11826. },
  11827. "401": {
  11828. "description": "UnauthorizedError",
  11829. "content": {
  11830. "application/json": {
  11831. "schema": {
  11832. "$ref": "#/components/schemas/UnauthorizedError"
  11833. }
  11834. }
  11835. }
  11836. }
  11837. },
  11838. "description": "Return the progress of the V1 to V2 session history migration.",
  11839. "summary": "Get V1 migration status"
  11840. }
  11841. },
  11842. "/api/websearch/provider": {
  11843. "get": {
  11844. "tags": ["websearch"],
  11845. "operationId": "v2.websearch.providers",
  11846. "parameters": [
  11847. {
  11848. "name": "location",
  11849. "in": "query",
  11850. "schema": {
  11851. "anyOf": [
  11852. {
  11853. "type": "object",
  11854. "properties": {
  11855. "directory": {
  11856. "anyOf": [
  11857. {
  11858. "type": "string"
  11859. },
  11860. {
  11861. "type": "null"
  11862. }
  11863. ]
  11864. },
  11865. "workspace": {
  11866. "anyOf": [
  11867. {
  11868. "type": "string"
  11869. },
  11870. {
  11871. "type": "null"
  11872. }
  11873. ]
  11874. }
  11875. },
  11876. "additionalProperties": false
  11877. },
  11878. {
  11879. "type": "null"
  11880. }
  11881. ]
  11882. },
  11883. "required": false,
  11884. "style": "deepObject",
  11885. "explode": true
  11886. }
  11887. ],
  11888. "security": [],
  11889. "responses": {
  11890. "200": {
  11891. "description": "Success",
  11892. "content": {
  11893. "application/json": {
  11894. "schema": {
  11895. "type": "object",
  11896. "properties": {
  11897. "location": {
  11898. "$ref": "#/components/schemas/Location.Info"
  11899. },
  11900. "data": {
  11901. "type": "array",
  11902. "items": {
  11903. "$ref": "#/components/schemas/WebSearch.Provider"
  11904. }
  11905. }
  11906. },
  11907. "required": ["location", "data"],
  11908. "additionalProperties": false
  11909. }
  11910. }
  11911. }
  11912. },
  11913. "400": {
  11914. "description": "InvalidRequestError",
  11915. "content": {
  11916. "application/json": {
  11917. "schema": {
  11918. "$ref": "#/components/schemas/InvalidRequestError"
  11919. }
  11920. }
  11921. }
  11922. },
  11923. "401": {
  11924. "description": "UnauthorizedError",
  11925. "content": {
  11926. "application/json": {
  11927. "schema": {
  11928. "$ref": "#/components/schemas/UnauthorizedError"
  11929. }
  11930. }
  11931. }
  11932. },
  11933. "503": {
  11934. "description": "ServiceUnavailableError",
  11935. "content": {
  11936. "application/json": {
  11937. "schema": {
  11938. "$ref": "#/components/schemas/ServiceUnavailableError"
  11939. }
  11940. }
  11941. }
  11942. }
  11943. },
  11944. "description": "Return the registered web search providers.",
  11945. "summary": "List web search providers"
  11946. }
  11947. },
  11948. "/api/websearch": {
  11949. "post": {
  11950. "tags": ["websearch"],
  11951. "operationId": "v2.websearch.query",
  11952. "parameters": [
  11953. {
  11954. "name": "location",
  11955. "in": "query",
  11956. "schema": {
  11957. "anyOf": [
  11958. {
  11959. "type": "object",
  11960. "properties": {
  11961. "directory": {
  11962. "anyOf": [
  11963. {
  11964. "type": "string"
  11965. },
  11966. {
  11967. "type": "null"
  11968. }
  11969. ]
  11970. },
  11971. "workspace": {
  11972. "anyOf": [
  11973. {
  11974. "type": "string"
  11975. },
  11976. {
  11977. "type": "null"
  11978. }
  11979. ]
  11980. }
  11981. },
  11982. "additionalProperties": false
  11983. },
  11984. {
  11985. "type": "null"
  11986. }
  11987. ]
  11988. },
  11989. "required": false,
  11990. "style": "deepObject",
  11991. "explode": true
  11992. }
  11993. ],
  11994. "security": [],
  11995. "responses": {
  11996. "200": {
  11997. "description": "Success",
  11998. "content": {
  11999. "application/json": {
  12000. "schema": {
  12001. "type": "object",
  12002. "properties": {
  12003. "location": {
  12004. "$ref": "#/components/schemas/Location.Info"
  12005. },
  12006. "data": {
  12007. "$ref": "#/components/schemas/WebSearch.Response"
  12008. }
  12009. },
  12010. "required": ["location", "data"],
  12011. "additionalProperties": false
  12012. }
  12013. }
  12014. }
  12015. },
  12016. "400": {
  12017. "description": "InvalidRequestError",
  12018. "content": {
  12019. "application/json": {
  12020. "schema": {
  12021. "anyOf": [
  12022. {
  12023. "$ref": "#/components/schemas/InvalidRequestError1"
  12024. },
  12025. {
  12026. "$ref": "#/components/schemas/InvalidRequestError"
  12027. }
  12028. ]
  12029. }
  12030. }
  12031. }
  12032. },
  12033. "401": {
  12034. "description": "UnauthorizedError",
  12035. "content": {
  12036. "application/json": {
  12037. "schema": {
  12038. "$ref": "#/components/schemas/UnauthorizedError"
  12039. }
  12040. }
  12041. }
  12042. },
  12043. "503": {
  12044. "description": "ServiceUnavailableError",
  12045. "content": {
  12046. "application/json": {
  12047. "schema": {
  12048. "$ref": "#/components/schemas/ServiceUnavailableError"
  12049. }
  12050. }
  12051. }
  12052. }
  12053. },
  12054. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  12055. "summary": "Search the web",
  12056. "requestBody": {
  12057. "content": {
  12058. "application/json": {
  12059. "schema": {
  12060. "type": "object",
  12061. "properties": {
  12062. "query": {
  12063. "type": "string"
  12064. },
  12065. "providerID": {
  12066. "type": "string"
  12067. }
  12068. },
  12069. "required": ["query"],
  12070. "additionalProperties": false
  12071. }
  12072. }
  12073. },
  12074. "required": true
  12075. }
  12076. }
  12077. },
  12078. "/api/config": {
  12079. "get": {
  12080. "tags": ["config"],
  12081. "operationId": "v2.config.get",
  12082. "parameters": [
  12083. {
  12084. "name": "location",
  12085. "in": "query",
  12086. "schema": {
  12087. "anyOf": [
  12088. {
  12089. "type": "object",
  12090. "properties": {
  12091. "directory": {
  12092. "anyOf": [
  12093. {
  12094. "type": "string"
  12095. },
  12096. {
  12097. "type": "null"
  12098. }
  12099. ]
  12100. },
  12101. "workspace": {
  12102. "anyOf": [
  12103. {
  12104. "type": "string"
  12105. },
  12106. {
  12107. "type": "null"
  12108. }
  12109. ]
  12110. }
  12111. },
  12112. "additionalProperties": false
  12113. },
  12114. {
  12115. "type": "null"
  12116. }
  12117. ]
  12118. },
  12119. "required": false,
  12120. "style": "deepObject",
  12121. "explode": true
  12122. }
  12123. ],
  12124. "security": [],
  12125. "responses": {
  12126. "200": {
  12127. "description": "Success",
  12128. "content": {
  12129. "application/json": {
  12130. "schema": {
  12131. "type": "array",
  12132. "items": {
  12133. "$ref": "#/components/schemas/Config.Entry"
  12134. }
  12135. }
  12136. }
  12137. }
  12138. },
  12139. "400": {
  12140. "description": "InvalidRequestError",
  12141. "content": {
  12142. "application/json": {
  12143. "schema": {
  12144. "$ref": "#/components/schemas/InvalidRequestError"
  12145. }
  12146. }
  12147. }
  12148. },
  12149. "401": {
  12150. "description": "UnauthorizedError",
  12151. "content": {
  12152. "application/json": {
  12153. "schema": {
  12154. "$ref": "#/components/schemas/UnauthorizedError"
  12155. }
  12156. }
  12157. }
  12158. }
  12159. },
  12160. "description": "Return configuration documents and discovery sources for the requested location, from lowest to highest priority.",
  12161. "summary": "Get configuration"
  12162. }
  12163. }
  12164. },
  12165. "components": {
  12166. "schemas": {
  12167. "ServiceHealth": {
  12168. "type": "object",
  12169. "properties": {
  12170. "healthy": {
  12171. "type": "boolean",
  12172. "enum": [true]
  12173. },
  12174. "version": {
  12175. "type": "string"
  12176. },
  12177. "pid": {
  12178. "type": "integer",
  12179. "allOf": [
  12180. {
  12181. "minimum": 0
  12182. }
  12183. ]
  12184. }
  12185. },
  12186. "required": ["healthy", "version", "pid"],
  12187. "additionalProperties": false
  12188. },
  12189. "UnauthorizedError": {
  12190. "type": "object",
  12191. "properties": {
  12192. "_tag": {
  12193. "type": "string",
  12194. "enum": ["UnauthorizedError"]
  12195. },
  12196. "message": {
  12197. "type": "string"
  12198. }
  12199. },
  12200. "required": ["_tag", "message"],
  12201. "additionalProperties": false
  12202. },
  12203. "InvalidRequestError": {
  12204. "type": "object",
  12205. "properties": {
  12206. "_tag": {
  12207. "type": "string",
  12208. "enum": ["InvalidRequestError"]
  12209. },
  12210. "message": {
  12211. "type": "string"
  12212. },
  12213. "kind": {
  12214. "anyOf": [
  12215. {
  12216. "type": "string"
  12217. },
  12218. {
  12219. "type": "null"
  12220. }
  12221. ]
  12222. },
  12223. "field": {
  12224. "anyOf": [
  12225. {
  12226. "type": "string"
  12227. },
  12228. {
  12229. "type": "null"
  12230. }
  12231. ]
  12232. }
  12233. },
  12234. "required": ["_tag", "message"],
  12235. "additionalProperties": false
  12236. },
  12237. "ServiceStopRequest": {
  12238. "type": "object",
  12239. "properties": {
  12240. "instanceID": {
  12241. "type": "string"
  12242. }
  12243. },
  12244. "required": ["instanceID"],
  12245. "additionalProperties": false
  12246. },
  12247. "ServiceStopResponse": {
  12248. "type": "object",
  12249. "properties": {
  12250. "accepted": {
  12251. "type": "boolean"
  12252. }
  12253. },
  12254. "required": ["accepted"],
  12255. "additionalProperties": false
  12256. },
  12257. "Location.Info": {
  12258. "type": "object",
  12259. "properties": {
  12260. "directory": {
  12261. "type": "string"
  12262. },
  12263. "workspaceID": {
  12264. "type": "string",
  12265. "allOf": [
  12266. {
  12267. "pattern": "^wrk"
  12268. }
  12269. ]
  12270. },
  12271. "project": {
  12272. "type": "object",
  12273. "properties": {
  12274. "id": {
  12275. "type": "string"
  12276. },
  12277. "directory": {
  12278. "type": "string"
  12279. },
  12280. "canonical": {
  12281. "type": "string"
  12282. }
  12283. },
  12284. "required": ["id", "directory", "canonical"],
  12285. "additionalProperties": false
  12286. }
  12287. },
  12288. "required": ["directory", "project"],
  12289. "additionalProperties": false
  12290. },
  12291. "Model.Ref": {
  12292. "type": "object",
  12293. "properties": {
  12294. "id": {
  12295. "type": "string"
  12296. },
  12297. "providerID": {
  12298. "type": "string"
  12299. },
  12300. "variant": {
  12301. "type": "string"
  12302. }
  12303. },
  12304. "required": ["id", "providerID"],
  12305. "additionalProperties": false
  12306. },
  12307. "Provider.Settings": {
  12308. "type": "object"
  12309. },
  12310. "Provider.Request": {
  12311. "type": "object",
  12312. "properties": {
  12313. "settings": {
  12314. "$ref": "#/components/schemas/Provider.Settings"
  12315. },
  12316. "headers": {
  12317. "type": "object",
  12318. "additionalProperties": {
  12319. "type": "string"
  12320. }
  12321. },
  12322. "body": {
  12323. "type": "object"
  12324. }
  12325. },
  12326. "required": ["settings", "headers", "body"],
  12327. "additionalProperties": false
  12328. },
  12329. "Agent.Color": {
  12330. "type": "string"
  12331. },
  12332. "Permission.Effect": {
  12333. "type": "string",
  12334. "enum": ["allow", "deny", "ask"]
  12335. },
  12336. "Permission.Rule": {
  12337. "type": "object",
  12338. "properties": {
  12339. "action": {
  12340. "type": "string"
  12341. },
  12342. "resource": {
  12343. "type": "string"
  12344. },
  12345. "effect": {
  12346. "$ref": "#/components/schemas/Permission.Effect"
  12347. }
  12348. },
  12349. "required": ["action", "resource", "effect"],
  12350. "additionalProperties": false
  12351. },
  12352. "Permission.Ruleset": {
  12353. "type": "array",
  12354. "items": {
  12355. "$ref": "#/components/schemas/Permission.Rule"
  12356. }
  12357. },
  12358. "Agent.Info": {
  12359. "type": "object",
  12360. "properties": {
  12361. "id": {
  12362. "type": "string"
  12363. },
  12364. "name": {
  12365. "type": "string"
  12366. },
  12367. "model": {
  12368. "$ref": "#/components/schemas/Model.Ref"
  12369. },
  12370. "request": {
  12371. "$ref": "#/components/schemas/Provider.Request"
  12372. },
  12373. "system": {
  12374. "type": "string"
  12375. },
  12376. "description": {
  12377. "type": "string"
  12378. },
  12379. "mode": {
  12380. "type": "string",
  12381. "enum": ["subagent", "primary", "all"]
  12382. },
  12383. "hidden": {
  12384. "type": "boolean"
  12385. },
  12386. "color": {
  12387. "$ref": "#/components/schemas/Agent.Color"
  12388. },
  12389. "steps": {
  12390. "type": "integer",
  12391. "allOf": [
  12392. {
  12393. "exclusiveMinimum": 0
  12394. }
  12395. ]
  12396. },
  12397. "permissions": {
  12398. "$ref": "#/components/schemas/Permission.Ruleset"
  12399. }
  12400. },
  12401. "required": ["id", "name", "request", "mode", "hidden", "permissions"],
  12402. "additionalProperties": false
  12403. },
  12404. "AgentNotFoundError": {
  12405. "type": "object",
  12406. "properties": {
  12407. "_tag": {
  12408. "type": "string",
  12409. "enum": ["AgentNotFoundError"]
  12410. },
  12411. "agentID": {
  12412. "type": "string"
  12413. },
  12414. "message": {
  12415. "type": "string"
  12416. }
  12417. },
  12418. "required": ["_tag", "agentID", "message"],
  12419. "additionalProperties": false
  12420. },
  12421. "Plugin.Info": {
  12422. "type": "object",
  12423. "properties": {
  12424. "id": {
  12425. "type": "string"
  12426. }
  12427. },
  12428. "required": ["id"],
  12429. "additionalProperties": false
  12430. },
  12431. "Session.ForkBoundary": {
  12432. "anyOf": [
  12433. {
  12434. "type": "object",
  12435. "properties": {
  12436. "type": {
  12437. "type": "string",
  12438. "enum": ["before"]
  12439. },
  12440. "messageID": {
  12441. "type": "string",
  12442. "allOf": [
  12443. {
  12444. "pattern": "^msg_"
  12445. }
  12446. ]
  12447. }
  12448. },
  12449. "required": ["type", "messageID"],
  12450. "additionalProperties": false
  12451. },
  12452. {
  12453. "type": "object",
  12454. "properties": {
  12455. "type": {
  12456. "type": "string",
  12457. "enum": ["through"]
  12458. },
  12459. "messageID": {
  12460. "type": "string",
  12461. "allOf": [
  12462. {
  12463. "pattern": "^msg_"
  12464. }
  12465. ]
  12466. }
  12467. },
  12468. "required": ["type", "messageID"],
  12469. "additionalProperties": false
  12470. }
  12471. ]
  12472. },
  12473. "Money.USD": {
  12474. "type": "number"
  12475. },
  12476. "TokenUsage.Info": {
  12477. "type": "object",
  12478. "properties": {
  12479. "input": {
  12480. "type": "number"
  12481. },
  12482. "output": {
  12483. "type": "number"
  12484. },
  12485. "reasoning": {
  12486. "type": "number"
  12487. },
  12488. "cache": {
  12489. "type": "object",
  12490. "properties": {
  12491. "read": {
  12492. "type": "number"
  12493. },
  12494. "write": {
  12495. "type": "number"
  12496. }
  12497. },
  12498. "required": ["read", "write"],
  12499. "additionalProperties": false
  12500. }
  12501. },
  12502. "required": ["input", "output", "reasoning", "cache"],
  12503. "additionalProperties": false
  12504. },
  12505. "Location.Ref": {
  12506. "type": "object",
  12507. "properties": {
  12508. "directory": {
  12509. "type": "string"
  12510. },
  12511. "workspaceID": {
  12512. "type": "string",
  12513. "allOf": [
  12514. {
  12515. "pattern": "^wrk"
  12516. }
  12517. ]
  12518. }
  12519. },
  12520. "required": ["directory"],
  12521. "additionalProperties": false
  12522. },
  12523. "FileDiff.Info": {
  12524. "type": "object",
  12525. "properties": {
  12526. "file": {
  12527. "type": "string"
  12528. },
  12529. "patch": {
  12530. "type": "string"
  12531. },
  12532. "additions": {
  12533. "type": "integer",
  12534. "allOf": [
  12535. {
  12536. "minimum": 0
  12537. }
  12538. ]
  12539. },
  12540. "deletions": {
  12541. "type": "integer",
  12542. "allOf": [
  12543. {
  12544. "minimum": 0
  12545. }
  12546. ]
  12547. },
  12548. "status": {
  12549. "type": "string",
  12550. "enum": ["added", "deleted", "modified"]
  12551. }
  12552. },
  12553. "required": ["file", "patch", "additions", "deletions", "status"],
  12554. "additionalProperties": false
  12555. },
  12556. "Session.Revert": {
  12557. "type": "object",
  12558. "properties": {
  12559. "messageID": {
  12560. "type": "string",
  12561. "allOf": [
  12562. {
  12563. "pattern": "^msg_"
  12564. }
  12565. ]
  12566. },
  12567. "partID": {
  12568. "type": "string"
  12569. },
  12570. "snapshot": {
  12571. "type": "string"
  12572. },
  12573. "files": {
  12574. "type": "array",
  12575. "items": {
  12576. "$ref": "#/components/schemas/FileDiff.Info"
  12577. }
  12578. }
  12579. },
  12580. "required": ["messageID"],
  12581. "additionalProperties": false
  12582. },
  12583. "Session.Info": {
  12584. "type": "object",
  12585. "properties": {
  12586. "id": {
  12587. "type": "string",
  12588. "allOf": [
  12589. {
  12590. "pattern": "^ses"
  12591. }
  12592. ]
  12593. },
  12594. "parentID": {
  12595. "type": "string",
  12596. "allOf": [
  12597. {
  12598. "pattern": "^ses"
  12599. }
  12600. ]
  12601. },
  12602. "fork": {
  12603. "type": "object",
  12604. "properties": {
  12605. "sessionID": {
  12606. "type": "string",
  12607. "allOf": [
  12608. {
  12609. "pattern": "^ses"
  12610. }
  12611. ]
  12612. },
  12613. "boundary": {
  12614. "$ref": "#/components/schemas/Session.ForkBoundary"
  12615. }
  12616. },
  12617. "required": ["sessionID", "boundary"],
  12618. "additionalProperties": false
  12619. },
  12620. "projectID": {
  12621. "type": "string"
  12622. },
  12623. "agent": {
  12624. "type": "string"
  12625. },
  12626. "model": {
  12627. "$ref": "#/components/schemas/Model.Ref"
  12628. },
  12629. "cost": {
  12630. "$ref": "#/components/schemas/Money.USD"
  12631. },
  12632. "tokens": {
  12633. "$ref": "#/components/schemas/TokenUsage.Info"
  12634. },
  12635. "time": {
  12636. "type": "object",
  12637. "properties": {
  12638. "created": {
  12639. "type": "number"
  12640. },
  12641. "updated": {
  12642. "type": "number"
  12643. },
  12644. "archived": {
  12645. "type": "number"
  12646. }
  12647. },
  12648. "required": ["created", "updated"],
  12649. "additionalProperties": false
  12650. },
  12651. "title": {
  12652. "type": "string"
  12653. },
  12654. "location": {
  12655. "$ref": "#/components/schemas/Location.Ref"
  12656. },
  12657. "subpath": {
  12658. "type": "string"
  12659. },
  12660. "revert": {
  12661. "$ref": "#/components/schemas/Session.Revert"
  12662. }
  12663. },
  12664. "required": ["id", "projectID", "cost", "tokens", "time", "location"],
  12665. "additionalProperties": false
  12666. },
  12667. "SessionsResponse": {
  12668. "type": "object",
  12669. "properties": {
  12670. "data": {
  12671. "type": "array",
  12672. "items": {
  12673. "$ref": "#/components/schemas/Session.Info"
  12674. }
  12675. },
  12676. "cursor": {
  12677. "type": "object",
  12678. "properties": {
  12679. "previous": {
  12680. "anyOf": [
  12681. {
  12682. "type": "string"
  12683. },
  12684. {
  12685. "type": "null"
  12686. }
  12687. ]
  12688. },
  12689. "next": {
  12690. "anyOf": [
  12691. {
  12692. "type": "string"
  12693. },
  12694. {
  12695. "type": "null"
  12696. }
  12697. ]
  12698. }
  12699. },
  12700. "additionalProperties": false
  12701. }
  12702. },
  12703. "required": ["data", "cursor"],
  12704. "additionalProperties": false
  12705. },
  12706. "InvalidCursorError": {
  12707. "type": "object",
  12708. "properties": {
  12709. "_tag": {
  12710. "type": "string",
  12711. "enum": ["InvalidCursorError"]
  12712. },
  12713. "message": {
  12714. "type": "string"
  12715. }
  12716. },
  12717. "required": ["_tag", "message"],
  12718. "additionalProperties": false
  12719. },
  12720. "InvalidRequestError1": {
  12721. "type": "object",
  12722. "properties": {
  12723. "_tag": {
  12724. "type": "string",
  12725. "enum": ["InvalidRequestError"]
  12726. },
  12727. "message": {
  12728. "type": "string"
  12729. },
  12730. "kind": {
  12731. "anyOf": [
  12732. {
  12733. "type": "string"
  12734. },
  12735. {
  12736. "type": "null"
  12737. }
  12738. ]
  12739. },
  12740. "field": {
  12741. "anyOf": [
  12742. {
  12743. "type": "string"
  12744. },
  12745. {
  12746. "type": "null"
  12747. }
  12748. ]
  12749. }
  12750. },
  12751. "required": ["_tag", "message"],
  12752. "additionalProperties": false
  12753. },
  12754. "Session.Message.AgentSelected": {
  12755. "type": "object",
  12756. "properties": {
  12757. "id": {
  12758. "type": "string",
  12759. "allOf": [
  12760. {
  12761. "pattern": "^msg_"
  12762. }
  12763. ]
  12764. },
  12765. "metadata": {
  12766. "type": "object"
  12767. },
  12768. "time": {
  12769. "type": "object",
  12770. "properties": {
  12771. "created": {
  12772. "type": "number"
  12773. }
  12774. },
  12775. "required": ["created"],
  12776. "additionalProperties": false
  12777. },
  12778. "type": {
  12779. "type": "string",
  12780. "enum": ["agent-switched"]
  12781. },
  12782. "agent": {
  12783. "type": "string"
  12784. },
  12785. "previous": {
  12786. "type": "string"
  12787. }
  12788. },
  12789. "required": ["id", "time", "type", "agent"],
  12790. "additionalProperties": false
  12791. },
  12792. "Session.Message.ModelSelected": {
  12793. "type": "object",
  12794. "properties": {
  12795. "id": {
  12796. "type": "string",
  12797. "allOf": [
  12798. {
  12799. "pattern": "^msg_"
  12800. }
  12801. ]
  12802. },
  12803. "metadata": {
  12804. "type": "object"
  12805. },
  12806. "time": {
  12807. "type": "object",
  12808. "properties": {
  12809. "created": {
  12810. "type": "number"
  12811. }
  12812. },
  12813. "required": ["created"],
  12814. "additionalProperties": false
  12815. },
  12816. "type": {
  12817. "type": "string",
  12818. "enum": ["model-switched"]
  12819. },
  12820. "model": {
  12821. "$ref": "#/components/schemas/Model.Ref"
  12822. },
  12823. "previous": {
  12824. "$ref": "#/components/schemas/Model.Ref"
  12825. }
  12826. },
  12827. "required": ["id", "time", "type", "model"],
  12828. "additionalProperties": false
  12829. },
  12830. "Session.Message.LocationSwitched": {
  12831. "type": "object",
  12832. "properties": {
  12833. "id": {
  12834. "type": "string",
  12835. "allOf": [
  12836. {
  12837. "pattern": "^msg_"
  12838. }
  12839. ]
  12840. },
  12841. "metadata": {
  12842. "type": "object"
  12843. },
  12844. "time": {
  12845. "type": "object",
  12846. "properties": {
  12847. "created": {
  12848. "type": "number"
  12849. }
  12850. },
  12851. "required": ["created"],
  12852. "additionalProperties": false
  12853. },
  12854. "type": {
  12855. "type": "string",
  12856. "enum": ["location-switched"]
  12857. },
  12858. "location": {
  12859. "$ref": "#/components/schemas/Location.Ref"
  12860. },
  12861. "projectID": {
  12862. "type": "string"
  12863. },
  12864. "subpath": {
  12865. "type": "string"
  12866. },
  12867. "previous": {
  12868. "type": "object",
  12869. "properties": {
  12870. "location": {
  12871. "$ref": "#/components/schemas/Location.Ref"
  12872. },
  12873. "projectID": {
  12874. "type": "string"
  12875. },
  12876. "subpath": {
  12877. "type": "string"
  12878. }
  12879. },
  12880. "required": ["location"],
  12881. "additionalProperties": false
  12882. }
  12883. },
  12884. "required": ["id", "time", "type", "location"],
  12885. "additionalProperties": false
  12886. },
  12887. "Prompt.Base64": {
  12888. "type": "string",
  12889. "allOf": [
  12890. {
  12891. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  12892. }
  12893. ]
  12894. },
  12895. "Prompt.FileSource": {
  12896. "anyOf": [
  12897. {
  12898. "type": "object",
  12899. "properties": {
  12900. "type": {
  12901. "type": "string",
  12902. "enum": ["inline"]
  12903. }
  12904. },
  12905. "required": ["type"],
  12906. "additionalProperties": false
  12907. },
  12908. {
  12909. "type": "object",
  12910. "properties": {
  12911. "type": {
  12912. "type": "string",
  12913. "enum": ["uri"]
  12914. },
  12915. "uri": {
  12916. "type": "string"
  12917. }
  12918. },
  12919. "required": ["type", "uri"],
  12920. "additionalProperties": false
  12921. }
  12922. ]
  12923. },
  12924. "Prompt.Mention": {
  12925. "type": "object",
  12926. "properties": {
  12927. "start": {
  12928. "type": "number"
  12929. },
  12930. "end": {
  12931. "type": "number"
  12932. },
  12933. "text": {
  12934. "type": "string"
  12935. }
  12936. },
  12937. "required": ["start", "end", "text"],
  12938. "additionalProperties": false
  12939. },
  12940. "Prompt.FileAttachment": {
  12941. "type": "object",
  12942. "properties": {
  12943. "data": {
  12944. "$ref": "#/components/schemas/Prompt.Base64"
  12945. },
  12946. "mime": {
  12947. "type": "string"
  12948. },
  12949. "source": {
  12950. "$ref": "#/components/schemas/Prompt.FileSource"
  12951. },
  12952. "name": {
  12953. "type": "string"
  12954. },
  12955. "description": {
  12956. "type": "string"
  12957. },
  12958. "mention": {
  12959. "$ref": "#/components/schemas/Prompt.Mention"
  12960. }
  12961. },
  12962. "required": ["data", "mime", "source"],
  12963. "additionalProperties": false
  12964. },
  12965. "Prompt.AgentAttachment": {
  12966. "type": "object",
  12967. "properties": {
  12968. "name": {
  12969. "type": "string"
  12970. },
  12971. "mention": {
  12972. "$ref": "#/components/schemas/Prompt.Mention"
  12973. }
  12974. },
  12975. "required": ["name"],
  12976. "additionalProperties": false
  12977. },
  12978. "Prompt.SkillAttachment": {
  12979. "type": "object",
  12980. "properties": {
  12981. "id": {
  12982. "type": "string"
  12983. },
  12984. "name": {
  12985. "type": "string"
  12986. },
  12987. "text": {
  12988. "type": "string"
  12989. },
  12990. "mention": {
  12991. "$ref": "#/components/schemas/Prompt.Mention"
  12992. }
  12993. },
  12994. "required": ["id", "name", "text"],
  12995. "additionalProperties": false
  12996. },
  12997. "Session.Message.User": {
  12998. "type": "object",
  12999. "properties": {
  13000. "id": {
  13001. "type": "string",
  13002. "allOf": [
  13003. {
  13004. "pattern": "^msg_"
  13005. }
  13006. ]
  13007. },
  13008. "metadata": {
  13009. "type": "object"
  13010. },
  13011. "time": {
  13012. "type": "object",
  13013. "properties": {
  13014. "created": {
  13015. "type": "number"
  13016. }
  13017. },
  13018. "required": ["created"],
  13019. "additionalProperties": false
  13020. },
  13021. "text": {
  13022. "type": "string"
  13023. },
  13024. "files": {
  13025. "type": "array",
  13026. "items": {
  13027. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13028. }
  13029. },
  13030. "agents": {
  13031. "type": "array",
  13032. "items": {
  13033. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13034. }
  13035. },
  13036. "skills": {
  13037. "type": "array",
  13038. "items": {
  13039. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  13040. }
  13041. },
  13042. "type": {
  13043. "type": "string",
  13044. "enum": ["user"]
  13045. }
  13046. },
  13047. "required": ["id", "time", "text", "type"],
  13048. "additionalProperties": false
  13049. },
  13050. "Session.Message.Synthetic": {
  13051. "type": "object",
  13052. "properties": {
  13053. "id": {
  13054. "type": "string",
  13055. "allOf": [
  13056. {
  13057. "pattern": "^msg_"
  13058. }
  13059. ]
  13060. },
  13061. "metadata": {
  13062. "type": "object"
  13063. },
  13064. "time": {
  13065. "type": "object",
  13066. "properties": {
  13067. "created": {
  13068. "type": "number"
  13069. }
  13070. },
  13071. "required": ["created"],
  13072. "additionalProperties": false
  13073. },
  13074. "text": {
  13075. "type": "string"
  13076. },
  13077. "description": {
  13078. "type": "string"
  13079. },
  13080. "type": {
  13081. "type": "string",
  13082. "enum": ["synthetic"]
  13083. }
  13084. },
  13085. "required": ["id", "time", "text", "type"],
  13086. "additionalProperties": false
  13087. },
  13088. "Session.Message.System": {
  13089. "type": "object",
  13090. "properties": {
  13091. "id": {
  13092. "type": "string",
  13093. "allOf": [
  13094. {
  13095. "pattern": "^msg_"
  13096. }
  13097. ]
  13098. },
  13099. "metadata": {
  13100. "type": "object"
  13101. },
  13102. "time": {
  13103. "type": "object",
  13104. "properties": {
  13105. "created": {
  13106. "type": "number"
  13107. }
  13108. },
  13109. "required": ["created"],
  13110. "additionalProperties": false
  13111. },
  13112. "type": {
  13113. "type": "string",
  13114. "enum": ["system"]
  13115. },
  13116. "text": {
  13117. "type": "string"
  13118. },
  13119. "description": {
  13120. "type": "string"
  13121. }
  13122. },
  13123. "required": ["id", "time", "type", "text"],
  13124. "additionalProperties": false
  13125. },
  13126. "Session.Message.Skill": {
  13127. "type": "object",
  13128. "properties": {
  13129. "id": {
  13130. "type": "string",
  13131. "allOf": [
  13132. {
  13133. "pattern": "^msg_"
  13134. }
  13135. ]
  13136. },
  13137. "metadata": {
  13138. "type": "object"
  13139. },
  13140. "time": {
  13141. "type": "object",
  13142. "properties": {
  13143. "created": {
  13144. "type": "number"
  13145. }
  13146. },
  13147. "required": ["created"],
  13148. "additionalProperties": false
  13149. },
  13150. "type": {
  13151. "type": "string",
  13152. "enum": ["skill"]
  13153. },
  13154. "skill": {
  13155. "type": "string"
  13156. },
  13157. "name": {
  13158. "type": "string"
  13159. },
  13160. "text": {
  13161. "type": "string"
  13162. }
  13163. },
  13164. "required": ["id", "time", "type", "skill", "name", "text"],
  13165. "additionalProperties": false
  13166. },
  13167. "Session.Message.Shell": {
  13168. "type": "object",
  13169. "properties": {
  13170. "id": {
  13171. "type": "string",
  13172. "allOf": [
  13173. {
  13174. "pattern": "^msg_"
  13175. }
  13176. ]
  13177. },
  13178. "metadata": {
  13179. "type": "object"
  13180. },
  13181. "time": {
  13182. "type": "object",
  13183. "properties": {
  13184. "created": {
  13185. "type": "number"
  13186. },
  13187. "completed": {
  13188. "type": "number"
  13189. }
  13190. },
  13191. "required": ["created"],
  13192. "additionalProperties": false
  13193. },
  13194. "type": {
  13195. "type": "string",
  13196. "enum": ["shell"]
  13197. },
  13198. "shellID": {
  13199. "type": "string",
  13200. "allOf": [
  13201. {
  13202. "pattern": "^sh_"
  13203. }
  13204. ]
  13205. },
  13206. "command": {
  13207. "type": "string"
  13208. },
  13209. "status": {
  13210. "type": "string",
  13211. "enum": ["running", "exited", "timeout", "killed"]
  13212. },
  13213. "exit": {
  13214. "anyOf": [
  13215. {
  13216. "anyOf": [
  13217. {
  13218. "type": "number"
  13219. },
  13220. {
  13221. "type": "string",
  13222. "enum": ["NaN"]
  13223. },
  13224. {
  13225. "type": "string",
  13226. "enum": ["Infinity"]
  13227. },
  13228. {
  13229. "type": "string",
  13230. "enum": ["-Infinity"]
  13231. }
  13232. ]
  13233. },
  13234. {
  13235. "type": "string",
  13236. "enum": ["Infinity", "-Infinity", "NaN"]
  13237. }
  13238. ]
  13239. },
  13240. "output": {
  13241. "type": "object",
  13242. "properties": {
  13243. "output": {
  13244. "type": "string"
  13245. },
  13246. "cursor": {
  13247. "type": "integer",
  13248. "allOf": [
  13249. {
  13250. "minimum": 0
  13251. }
  13252. ]
  13253. },
  13254. "size": {
  13255. "type": "integer",
  13256. "allOf": [
  13257. {
  13258. "minimum": 0
  13259. }
  13260. ]
  13261. },
  13262. "truncated": {
  13263. "type": "boolean"
  13264. }
  13265. },
  13266. "required": ["output", "cursor", "size", "truncated"],
  13267. "additionalProperties": false
  13268. }
  13269. },
  13270. "required": ["id", "time", "type", "shellID", "command", "status"],
  13271. "additionalProperties": false
  13272. },
  13273. "Session.Message.ProviderState": {
  13274. "type": "object"
  13275. },
  13276. "Session.Message.Assistant.Text": {
  13277. "type": "object",
  13278. "properties": {
  13279. "type": {
  13280. "type": "string",
  13281. "enum": ["text"]
  13282. },
  13283. "text": {
  13284. "type": "string"
  13285. },
  13286. "state": {
  13287. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13288. }
  13289. },
  13290. "required": ["type", "text"],
  13291. "additionalProperties": false
  13292. },
  13293. "Session.Message.Assistant.Reasoning": {
  13294. "type": "object",
  13295. "properties": {
  13296. "type": {
  13297. "type": "string",
  13298. "enum": ["reasoning"]
  13299. },
  13300. "text": {
  13301. "type": "string"
  13302. },
  13303. "state": {
  13304. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13305. },
  13306. "time": {
  13307. "type": "object",
  13308. "properties": {
  13309. "created": {
  13310. "type": "number"
  13311. },
  13312. "completed": {
  13313. "type": "number"
  13314. }
  13315. },
  13316. "required": ["created"],
  13317. "additionalProperties": false
  13318. }
  13319. },
  13320. "required": ["type", "text"],
  13321. "additionalProperties": false
  13322. },
  13323. "Session.Message.ToolState.Streaming": {
  13324. "type": "object",
  13325. "properties": {
  13326. "status": {
  13327. "type": "string",
  13328. "enum": ["streaming"]
  13329. },
  13330. "input": {
  13331. "type": "string"
  13332. }
  13333. },
  13334. "required": ["status", "input"],
  13335. "additionalProperties": false
  13336. },
  13337. "Session.Message.ToolState.Running": {
  13338. "type": "object",
  13339. "properties": {
  13340. "status": {
  13341. "type": "string",
  13342. "enum": ["running"]
  13343. },
  13344. "input": {
  13345. "type": "object"
  13346. },
  13347. "metadata": {
  13348. "type": "object"
  13349. }
  13350. },
  13351. "required": ["status", "input", "metadata"],
  13352. "additionalProperties": false
  13353. },
  13354. "Tool.TextContent": {
  13355. "type": "object",
  13356. "properties": {
  13357. "type": {
  13358. "type": "string",
  13359. "enum": ["text"]
  13360. },
  13361. "text": {
  13362. "type": "string"
  13363. }
  13364. },
  13365. "required": ["type", "text"],
  13366. "additionalProperties": false
  13367. },
  13368. "Tool.FileContent": {
  13369. "type": "object",
  13370. "properties": {
  13371. "type": {
  13372. "type": "string",
  13373. "enum": ["file"]
  13374. },
  13375. "uri": {
  13376. "type": "string"
  13377. },
  13378. "mime": {
  13379. "type": "string"
  13380. },
  13381. "name": {
  13382. "anyOf": [
  13383. {
  13384. "type": "string"
  13385. },
  13386. {
  13387. "type": "null"
  13388. }
  13389. ]
  13390. }
  13391. },
  13392. "required": ["type", "uri", "mime"],
  13393. "additionalProperties": false
  13394. },
  13395. "Tool.Content": {
  13396. "anyOf": [
  13397. {
  13398. "$ref": "#/components/schemas/Tool.TextContent"
  13399. },
  13400. {
  13401. "$ref": "#/components/schemas/Tool.FileContent"
  13402. }
  13403. ]
  13404. },
  13405. "Session.Message.ToolState.Completed": {
  13406. "type": "object",
  13407. "properties": {
  13408. "status": {
  13409. "type": "string",
  13410. "enum": ["completed"]
  13411. },
  13412. "input": {
  13413. "type": "object"
  13414. },
  13415. "content": {
  13416. "type": "array",
  13417. "prefixItems": [
  13418. {
  13419. "$ref": "#/components/schemas/Tool.Content"
  13420. }
  13421. ],
  13422. "minItems": 1,
  13423. "items": {
  13424. "$ref": "#/components/schemas/Tool.Content"
  13425. }
  13426. },
  13427. "metadata": {
  13428. "type": "object"
  13429. }
  13430. },
  13431. "required": ["status", "input", "content"],
  13432. "additionalProperties": false
  13433. },
  13434. "Session.StructuredError": {
  13435. "type": "object",
  13436. "properties": {
  13437. "type": {
  13438. "type": "string"
  13439. },
  13440. "message": {
  13441. "type": "string"
  13442. },
  13443. "status": {
  13444. "type": "integer",
  13445. "allOf": [
  13446. {
  13447. "minimum": 100,
  13448. "maximum": 599
  13449. }
  13450. ]
  13451. }
  13452. },
  13453. "required": ["type", "message"],
  13454. "additionalProperties": false
  13455. },
  13456. "Session.Message.ToolState.Error": {
  13457. "type": "object",
  13458. "properties": {
  13459. "status": {
  13460. "type": "string",
  13461. "enum": ["error"]
  13462. },
  13463. "input": {
  13464. "type": "object"
  13465. },
  13466. "error": {
  13467. "$ref": "#/components/schemas/Session.StructuredError"
  13468. },
  13469. "content": {
  13470. "type": "array",
  13471. "prefixItems": [
  13472. {
  13473. "$ref": "#/components/schemas/Tool.Content"
  13474. }
  13475. ],
  13476. "minItems": 1,
  13477. "items": {
  13478. "$ref": "#/components/schemas/Tool.Content"
  13479. }
  13480. },
  13481. "metadata": {
  13482. "type": "object"
  13483. }
  13484. },
  13485. "required": ["status", "input", "error"],
  13486. "additionalProperties": false
  13487. },
  13488. "Session.Message.Assistant.Tool": {
  13489. "type": "object",
  13490. "properties": {
  13491. "type": {
  13492. "type": "string",
  13493. "enum": ["tool"]
  13494. },
  13495. "id": {
  13496. "type": "string"
  13497. },
  13498. "name": {
  13499. "type": "string"
  13500. },
  13501. "executed": {
  13502. "type": "boolean"
  13503. },
  13504. "providerState": {
  13505. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13506. },
  13507. "providerResultState": {
  13508. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13509. },
  13510. "state": {
  13511. "anyOf": [
  13512. {
  13513. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  13514. },
  13515. {
  13516. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  13517. },
  13518. {
  13519. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  13520. },
  13521. {
  13522. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  13523. }
  13524. ]
  13525. },
  13526. "time": {
  13527. "type": "object",
  13528. "properties": {
  13529. "created": {
  13530. "type": "number"
  13531. },
  13532. "ran": {
  13533. "type": "number"
  13534. },
  13535. "completed": {
  13536. "type": "number"
  13537. }
  13538. },
  13539. "required": ["created"],
  13540. "additionalProperties": false
  13541. }
  13542. },
  13543. "required": ["type", "id", "name", "state", "time"],
  13544. "additionalProperties": false
  13545. },
  13546. "Session.Message.Assistant.Retry": {
  13547. "type": "object",
  13548. "properties": {
  13549. "attempt": {
  13550. "type": "integer",
  13551. "allOf": [
  13552. {
  13553. "exclusiveMinimum": 0
  13554. }
  13555. ]
  13556. },
  13557. "at": {
  13558. "type": "number"
  13559. },
  13560. "error": {
  13561. "$ref": "#/components/schemas/Session.StructuredError"
  13562. }
  13563. },
  13564. "required": ["attempt", "at", "error"],
  13565. "additionalProperties": false
  13566. },
  13567. "Session.Message.Assistant": {
  13568. "type": "object",
  13569. "properties": {
  13570. "id": {
  13571. "type": "string",
  13572. "allOf": [
  13573. {
  13574. "pattern": "^msg_"
  13575. }
  13576. ]
  13577. },
  13578. "metadata": {
  13579. "type": "object"
  13580. },
  13581. "time": {
  13582. "type": "object",
  13583. "properties": {
  13584. "created": {
  13585. "type": "number"
  13586. },
  13587. "completed": {
  13588. "type": "number"
  13589. }
  13590. },
  13591. "required": ["created"],
  13592. "additionalProperties": false
  13593. },
  13594. "type": {
  13595. "type": "string",
  13596. "enum": ["assistant"]
  13597. },
  13598. "agent": {
  13599. "type": "string"
  13600. },
  13601. "model": {
  13602. "$ref": "#/components/schemas/Model.Ref"
  13603. },
  13604. "content": {
  13605. "type": "array",
  13606. "items": {
  13607. "anyOf": [
  13608. {
  13609. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  13610. },
  13611. {
  13612. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  13613. },
  13614. {
  13615. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  13616. }
  13617. ]
  13618. }
  13619. },
  13620. "snapshot": {
  13621. "type": "object",
  13622. "properties": {
  13623. "start": {
  13624. "type": "string"
  13625. },
  13626. "end": {
  13627. "type": "string"
  13628. },
  13629. "files": {
  13630. "type": "array",
  13631. "items": {
  13632. "type": "string"
  13633. }
  13634. }
  13635. },
  13636. "additionalProperties": false
  13637. },
  13638. "finish": {
  13639. "type": "string",
  13640. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  13641. },
  13642. "cost": {
  13643. "$ref": "#/components/schemas/Money.USD"
  13644. },
  13645. "tokens": {
  13646. "$ref": "#/components/schemas/TokenUsage.Info"
  13647. },
  13648. "error": {
  13649. "$ref": "#/components/schemas/Session.StructuredError"
  13650. },
  13651. "retry": {
  13652. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  13653. }
  13654. },
  13655. "required": ["id", "time", "type", "agent", "model", "content"],
  13656. "additionalProperties": false
  13657. },
  13658. "Session.Message.Compaction.Running": {
  13659. "type": "object",
  13660. "properties": {
  13661. "type": {
  13662. "type": "string",
  13663. "enum": ["compaction"]
  13664. },
  13665. "id": {
  13666. "type": "string",
  13667. "allOf": [
  13668. {
  13669. "pattern": "^msg_"
  13670. }
  13671. ]
  13672. },
  13673. "metadata": {
  13674. "type": "object"
  13675. },
  13676. "time": {
  13677. "type": "object",
  13678. "properties": {
  13679. "created": {
  13680. "type": "number"
  13681. }
  13682. },
  13683. "required": ["created"],
  13684. "additionalProperties": false
  13685. },
  13686. "status": {
  13687. "type": "string",
  13688. "enum": ["running"]
  13689. },
  13690. "reason": {
  13691. "type": "string",
  13692. "enum": ["auto", "manual"]
  13693. },
  13694. "summary": {
  13695. "type": "string"
  13696. },
  13697. "recent": {
  13698. "type": "string"
  13699. }
  13700. },
  13701. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13702. "additionalProperties": false
  13703. },
  13704. "Session.Message.Compaction.Completed": {
  13705. "type": "object",
  13706. "properties": {
  13707. "type": {
  13708. "type": "string",
  13709. "enum": ["compaction"]
  13710. },
  13711. "id": {
  13712. "type": "string",
  13713. "allOf": [
  13714. {
  13715. "pattern": "^msg_"
  13716. }
  13717. ]
  13718. },
  13719. "metadata": {
  13720. "type": "object"
  13721. },
  13722. "time": {
  13723. "type": "object",
  13724. "properties": {
  13725. "created": {
  13726. "type": "number"
  13727. }
  13728. },
  13729. "required": ["created"],
  13730. "additionalProperties": false
  13731. },
  13732. "status": {
  13733. "type": "string",
  13734. "enum": ["completed"]
  13735. },
  13736. "reason": {
  13737. "type": "string",
  13738. "enum": ["auto", "manual"]
  13739. },
  13740. "summary": {
  13741. "type": "string"
  13742. },
  13743. "recent": {
  13744. "type": "string"
  13745. }
  13746. },
  13747. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13748. "additionalProperties": false
  13749. },
  13750. "Session.Message.Compaction.Failed": {
  13751. "type": "object",
  13752. "properties": {
  13753. "type": {
  13754. "type": "string",
  13755. "enum": ["compaction"]
  13756. },
  13757. "id": {
  13758. "type": "string",
  13759. "allOf": [
  13760. {
  13761. "pattern": "^msg_"
  13762. }
  13763. ]
  13764. },
  13765. "metadata": {
  13766. "type": "object"
  13767. },
  13768. "time": {
  13769. "type": "object",
  13770. "properties": {
  13771. "created": {
  13772. "type": "number"
  13773. }
  13774. },
  13775. "required": ["created"],
  13776. "additionalProperties": false
  13777. },
  13778. "status": {
  13779. "type": "string",
  13780. "enum": ["failed"]
  13781. },
  13782. "reason": {
  13783. "type": "string",
  13784. "enum": ["auto", "manual"]
  13785. },
  13786. "error": {
  13787. "$ref": "#/components/schemas/Session.StructuredError"
  13788. }
  13789. },
  13790. "required": ["type", "id", "time", "status", "reason", "error"],
  13791. "additionalProperties": false
  13792. },
  13793. "Session.Message.Compaction": {
  13794. "anyOf": [
  13795. {
  13796. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  13797. },
  13798. {
  13799. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  13800. },
  13801. {
  13802. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  13803. }
  13804. ]
  13805. },
  13806. "Session.Message.Info": {
  13807. "anyOf": [
  13808. {
  13809. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  13810. },
  13811. {
  13812. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  13813. },
  13814. {
  13815. "$ref": "#/components/schemas/Session.Message.LocationSwitched"
  13816. },
  13817. {
  13818. "$ref": "#/components/schemas/Session.Message.User"
  13819. },
  13820. {
  13821. "$ref": "#/components/schemas/Session.Message.Synthetic"
  13822. },
  13823. {
  13824. "$ref": "#/components/schemas/Session.Message.System"
  13825. },
  13826. {
  13827. "$ref": "#/components/schemas/Session.Message.Skill"
  13828. },
  13829. {
  13830. "$ref": "#/components/schemas/Session.Message.Shell"
  13831. },
  13832. {
  13833. "$ref": "#/components/schemas/Session.Message.Assistant"
  13834. },
  13835. {
  13836. "$ref": "#/components/schemas/Session.Message.Compaction"
  13837. }
  13838. ]
  13839. },
  13840. "ConflictError": {
  13841. "type": "object",
  13842. "properties": {
  13843. "_tag": {
  13844. "type": "string",
  13845. "enum": ["ConflictError"]
  13846. },
  13847. "message": {
  13848. "type": "string"
  13849. },
  13850. "resource": {
  13851. "anyOf": [
  13852. {
  13853. "type": "string"
  13854. },
  13855. {
  13856. "type": "null"
  13857. }
  13858. ]
  13859. }
  13860. },
  13861. "required": ["_tag", "message"],
  13862. "additionalProperties": false
  13863. },
  13864. "SessionTransfer.Data": {
  13865. "type": "object",
  13866. "properties": {
  13867. "info": {
  13868. "$ref": "#/components/schemas/Session.Info"
  13869. },
  13870. "messages": {
  13871. "type": "array",
  13872. "items": {
  13873. "$ref": "#/components/schemas/Session.Message.Info"
  13874. }
  13875. }
  13876. },
  13877. "required": ["info", "messages"],
  13878. "additionalProperties": false
  13879. },
  13880. "SessionNotFoundError": {
  13881. "type": "object",
  13882. "properties": {
  13883. "_tag": {
  13884. "type": "string",
  13885. "enum": ["SessionNotFoundError"]
  13886. },
  13887. "sessionID": {
  13888. "type": "string"
  13889. },
  13890. "message": {
  13891. "type": "string"
  13892. }
  13893. },
  13894. "required": ["_tag", "sessionID", "message"],
  13895. "additionalProperties": false
  13896. },
  13897. "UnknownError": {
  13898. "type": "object",
  13899. "properties": {
  13900. "_tag": {
  13901. "type": "string",
  13902. "enum": ["UnknownError"]
  13903. },
  13904. "message": {
  13905. "type": "string"
  13906. },
  13907. "ref": {
  13908. "anyOf": [
  13909. {
  13910. "type": "string"
  13911. },
  13912. {
  13913. "type": "null"
  13914. }
  13915. ]
  13916. }
  13917. },
  13918. "required": ["_tag", "message"],
  13919. "additionalProperties": false
  13920. },
  13921. "SessionActive": {
  13922. "type": "object",
  13923. "properties": {
  13924. "type": {
  13925. "type": "string",
  13926. "enum": ["running"]
  13927. }
  13928. },
  13929. "required": ["type"],
  13930. "additionalProperties": false
  13931. },
  13932. "Session.ForkRequestBoundary": {
  13933. "anyOf": [
  13934. {
  13935. "type": "object",
  13936. "properties": {
  13937. "type": {
  13938. "type": "string",
  13939. "enum": ["before"]
  13940. },
  13941. "messageID": {
  13942. "type": "string",
  13943. "allOf": [
  13944. {
  13945. "pattern": "^msg_"
  13946. }
  13947. ]
  13948. }
  13949. },
  13950. "required": ["type", "messageID"],
  13951. "additionalProperties": false
  13952. },
  13953. {
  13954. "type": "object",
  13955. "properties": {
  13956. "type": {
  13957. "type": "string",
  13958. "enum": ["through"]
  13959. }
  13960. },
  13961. "required": ["type"],
  13962. "additionalProperties": false
  13963. }
  13964. ]
  13965. },
  13966. "MessageNotFoundError": {
  13967. "type": "object",
  13968. "properties": {
  13969. "_tag": {
  13970. "type": "string",
  13971. "enum": ["MessageNotFoundError"]
  13972. },
  13973. "sessionID": {
  13974. "type": "string"
  13975. },
  13976. "messageID": {
  13977. "type": "string"
  13978. },
  13979. "message": {
  13980. "type": "string"
  13981. }
  13982. },
  13983. "required": ["_tag", "sessionID", "messageID", "message"],
  13984. "additionalProperties": false
  13985. },
  13986. "Session.Inbox.Delivery": {
  13987. "type": "string",
  13988. "enum": ["steer", "queue"]
  13989. },
  13990. "PromptInput.FileAttachment": {
  13991. "type": "object",
  13992. "properties": {
  13993. "uri": {
  13994. "type": "string"
  13995. },
  13996. "name": {
  13997. "type": "string"
  13998. },
  13999. "description": {
  14000. "type": "string"
  14001. },
  14002. "mention": {
  14003. "$ref": "#/components/schemas/Prompt.Mention"
  14004. }
  14005. },
  14006. "required": ["uri"],
  14007. "additionalProperties": false
  14008. },
  14009. "PromptInput.SkillAttachment": {
  14010. "type": "object",
  14011. "properties": {
  14012. "id": {
  14013. "type": "string"
  14014. },
  14015. "mention": {
  14016. "$ref": "#/components/schemas/Prompt.Mention"
  14017. }
  14018. },
  14019. "required": ["id"],
  14020. "additionalProperties": false
  14021. },
  14022. "Session.Inbox.UserPayload": {
  14023. "type": "object",
  14024. "properties": {
  14025. "text": {
  14026. "type": "string"
  14027. },
  14028. "files": {
  14029. "type": "array",
  14030. "items": {
  14031. "$ref": "#/components/schemas/Prompt.FileAttachment"
  14032. }
  14033. },
  14034. "agents": {
  14035. "type": "array",
  14036. "items": {
  14037. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  14038. }
  14039. },
  14040. "skills": {
  14041. "type": "array",
  14042. "items": {
  14043. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  14044. }
  14045. },
  14046. "metadata": {
  14047. "type": "object"
  14048. }
  14049. },
  14050. "required": ["text"],
  14051. "additionalProperties": false
  14052. },
  14053. "Session.Inbox.User": {
  14054. "type": "object",
  14055. "properties": {
  14056. "id": {
  14057. "type": "string",
  14058. "allOf": [
  14059. {
  14060. "pattern": "^msg_"
  14061. }
  14062. ]
  14063. },
  14064. "sessionID": {
  14065. "type": "string",
  14066. "allOf": [
  14067. {
  14068. "pattern": "^ses"
  14069. }
  14070. ]
  14071. },
  14072. "timeCreated": {
  14073. "type": "number"
  14074. },
  14075. "type": {
  14076. "type": "string",
  14077. "enum": ["user"]
  14078. },
  14079. "payload": {
  14080. "$ref": "#/components/schemas/Session.Inbox.UserPayload"
  14081. },
  14082. "delivery": {
  14083. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14084. }
  14085. },
  14086. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  14087. "additionalProperties": false
  14088. },
  14089. "CommandNotFoundError": {
  14090. "type": "object",
  14091. "properties": {
  14092. "_tag": {
  14093. "type": "string",
  14094. "enum": ["CommandNotFoundError"]
  14095. },
  14096. "command": {
  14097. "type": "string"
  14098. },
  14099. "message": {
  14100. "type": "string"
  14101. }
  14102. },
  14103. "required": ["_tag", "command", "message"],
  14104. "additionalProperties": false
  14105. },
  14106. "CommandEvaluationError": {
  14107. "type": "object",
  14108. "properties": {
  14109. "_tag": {
  14110. "type": "string",
  14111. "enum": ["CommandEvaluationError"]
  14112. },
  14113. "command": {
  14114. "type": "string"
  14115. },
  14116. "message": {
  14117. "type": "string"
  14118. }
  14119. },
  14120. "required": ["_tag", "command", "message"],
  14121. "additionalProperties": false
  14122. },
  14123. "SkillNotFoundError": {
  14124. "type": "object",
  14125. "properties": {
  14126. "_tag": {
  14127. "type": "string",
  14128. "enum": ["SkillNotFoundError"]
  14129. },
  14130. "skill": {
  14131. "type": "string"
  14132. },
  14133. "message": {
  14134. "type": "string"
  14135. }
  14136. },
  14137. "required": ["_tag", "skill", "message"],
  14138. "additionalProperties": false
  14139. },
  14140. "Session.Inbox.SyntheticPayload": {
  14141. "type": "object",
  14142. "properties": {
  14143. "text": {
  14144. "type": "string"
  14145. },
  14146. "description": {
  14147. "type": "string"
  14148. },
  14149. "metadata": {
  14150. "type": "object"
  14151. }
  14152. },
  14153. "required": ["text"],
  14154. "additionalProperties": false
  14155. },
  14156. "Session.Inbox.Synthetic": {
  14157. "type": "object",
  14158. "properties": {
  14159. "id": {
  14160. "type": "string",
  14161. "allOf": [
  14162. {
  14163. "pattern": "^msg_"
  14164. }
  14165. ]
  14166. },
  14167. "sessionID": {
  14168. "type": "string",
  14169. "allOf": [
  14170. {
  14171. "pattern": "^ses"
  14172. }
  14173. ]
  14174. },
  14175. "timeCreated": {
  14176. "type": "number"
  14177. },
  14178. "type": {
  14179. "type": "string",
  14180. "enum": ["synthetic"]
  14181. },
  14182. "payload": {
  14183. "$ref": "#/components/schemas/Session.Inbox.SyntheticPayload"
  14184. },
  14185. "delivery": {
  14186. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14187. }
  14188. },
  14189. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  14190. "additionalProperties": false
  14191. },
  14192. "Session.Inbox.CompactionPayload": {
  14193. "anyOf": [
  14194. {
  14195. "type": "object"
  14196. },
  14197. {
  14198. "type": "array"
  14199. }
  14200. ]
  14201. },
  14202. "Session.Inbox.Compaction": {
  14203. "type": "object",
  14204. "properties": {
  14205. "id": {
  14206. "type": "string",
  14207. "allOf": [
  14208. {
  14209. "pattern": "^msg_"
  14210. }
  14211. ]
  14212. },
  14213. "sessionID": {
  14214. "type": "string",
  14215. "allOf": [
  14216. {
  14217. "pattern": "^ses"
  14218. }
  14219. ]
  14220. },
  14221. "timeCreated": {
  14222. "type": "number"
  14223. },
  14224. "type": {
  14225. "type": "string",
  14226. "enum": ["compaction"]
  14227. },
  14228. "payload": {
  14229. "$ref": "#/components/schemas/Session.Inbox.CompactionPayload"
  14230. },
  14231. "delivery": {
  14232. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14233. }
  14234. },
  14235. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  14236. "additionalProperties": false
  14237. },
  14238. "ServiceUnavailableError": {
  14239. "type": "object",
  14240. "properties": {
  14241. "_tag": {
  14242. "type": "string",
  14243. "enum": ["ServiceUnavailableError"]
  14244. },
  14245. "message": {
  14246. "type": "string"
  14247. },
  14248. "service": {
  14249. "anyOf": [
  14250. {
  14251. "type": "string"
  14252. },
  14253. {
  14254. "type": "null"
  14255. }
  14256. ]
  14257. }
  14258. },
  14259. "required": ["_tag", "message"],
  14260. "additionalProperties": false
  14261. },
  14262. "SessionBusyError": {
  14263. "type": "object",
  14264. "properties": {
  14265. "_tag": {
  14266. "type": "string",
  14267. "enum": ["SessionBusyError"]
  14268. },
  14269. "sessionID": {
  14270. "type": "string"
  14271. },
  14272. "message": {
  14273. "type": "string"
  14274. }
  14275. },
  14276. "required": ["_tag", "sessionID", "message"],
  14277. "additionalProperties": false
  14278. },
  14279. "Session.Inbox.MovePayload": {
  14280. "type": "object",
  14281. "properties": {
  14282. "location": {
  14283. "$ref": "#/components/schemas/Location.Ref"
  14284. },
  14285. "projectID": {
  14286. "type": "string"
  14287. },
  14288. "subpath": {
  14289. "type": "string"
  14290. }
  14291. },
  14292. "required": ["location", "projectID"],
  14293. "additionalProperties": false
  14294. },
  14295. "Session.Inbox.Move": {
  14296. "type": "object",
  14297. "properties": {
  14298. "id": {
  14299. "type": "string",
  14300. "allOf": [
  14301. {
  14302. "pattern": "^msg_"
  14303. }
  14304. ]
  14305. },
  14306. "sessionID": {
  14307. "type": "string",
  14308. "allOf": [
  14309. {
  14310. "pattern": "^ses"
  14311. }
  14312. ]
  14313. },
  14314. "timeCreated": {
  14315. "type": "number"
  14316. },
  14317. "type": {
  14318. "type": "string",
  14319. "enum": ["move"]
  14320. },
  14321. "payload": {
  14322. "$ref": "#/components/schemas/Session.Inbox.MovePayload"
  14323. },
  14324. "delivery": {
  14325. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14326. }
  14327. },
  14328. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  14329. "additionalProperties": false
  14330. },
  14331. "Session.Inbox.Info": {
  14332. "anyOf": [
  14333. {
  14334. "$ref": "#/components/schemas/Session.Inbox.User"
  14335. },
  14336. {
  14337. "$ref": "#/components/schemas/Session.Inbox.Synthetic"
  14338. },
  14339. {
  14340. "$ref": "#/components/schemas/Session.Inbox.Compaction"
  14341. },
  14342. {
  14343. "$ref": "#/components/schemas/Session.Inbox.Move"
  14344. }
  14345. ]
  14346. },
  14347. "InstructionEntry.Key": {
  14348. "type": "string",
  14349. "allOf": [
  14350. {
  14351. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  14352. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  14353. }
  14354. ]
  14355. },
  14356. "InstructionEntry.Info": {
  14357. "type": "object",
  14358. "properties": {
  14359. "key": {
  14360. "$ref": "#/components/schemas/InstructionEntry.Key"
  14361. },
  14362. "value": {}
  14363. },
  14364. "required": ["key", "value"],
  14365. "additionalProperties": false
  14366. },
  14367. "InstructionEntryValueTooLargeError": {
  14368. "type": "object",
  14369. "properties": {
  14370. "_tag": {
  14371. "type": "string",
  14372. "enum": ["InstructionEntryValueTooLargeError"]
  14373. },
  14374. "actualBytes": {
  14375. "type": "integer"
  14376. },
  14377. "maxBytes": {
  14378. "type": "integer"
  14379. },
  14380. "message": {
  14381. "type": "string"
  14382. }
  14383. },
  14384. "required": ["_tag", "actualBytes", "maxBytes", "message"],
  14385. "additionalProperties": false
  14386. },
  14387. "SessionGenerateResponse": {
  14388. "type": "object",
  14389. "properties": {
  14390. "data": {
  14391. "type": "object",
  14392. "properties": {
  14393. "text": {
  14394. "type": "string"
  14395. }
  14396. },
  14397. "required": ["text"],
  14398. "additionalProperties": false
  14399. }
  14400. },
  14401. "required": ["data"],
  14402. "additionalProperties": false
  14403. },
  14404. "session.created": {
  14405. "type": "object",
  14406. "properties": {
  14407. "id": {
  14408. "type": "string",
  14409. "allOf": [
  14410. {
  14411. "pattern": "^evt_"
  14412. }
  14413. ]
  14414. },
  14415. "created": {
  14416. "type": "number"
  14417. },
  14418. "metadata": {
  14419. "type": "object"
  14420. },
  14421. "type": {
  14422. "type": "string",
  14423. "enum": ["session.created"]
  14424. },
  14425. "durable": {
  14426. "type": "object",
  14427. "properties": {
  14428. "aggregateID": {
  14429. "type": "string"
  14430. },
  14431. "seq": {
  14432. "type": "integer",
  14433. "allOf": [
  14434. {
  14435. "minimum": 0
  14436. }
  14437. ]
  14438. },
  14439. "version": {
  14440. "type": "number",
  14441. "enum": [1]
  14442. }
  14443. },
  14444. "required": ["aggregateID", "seq", "version"],
  14445. "additionalProperties": false
  14446. },
  14447. "location": {
  14448. "$ref": "#/components/schemas/Location.Ref"
  14449. },
  14450. "data": {
  14451. "type": "object",
  14452. "properties": {
  14453. "sessionID": {
  14454. "type": "string",
  14455. "allOf": [
  14456. {
  14457. "pattern": "^ses"
  14458. }
  14459. ]
  14460. },
  14461. "projectID": {
  14462. "type": "string"
  14463. },
  14464. "location": {
  14465. "$ref": "#/components/schemas/Location.Ref"
  14466. },
  14467. "subpath": {
  14468. "type": "string"
  14469. },
  14470. "parentID": {
  14471. "type": "string",
  14472. "allOf": [
  14473. {
  14474. "pattern": "^ses"
  14475. }
  14476. ]
  14477. },
  14478. "slug": {
  14479. "type": "string"
  14480. },
  14481. "title": {
  14482. "type": "string"
  14483. },
  14484. "agent": {
  14485. "type": "string"
  14486. },
  14487. "model": {
  14488. "$ref": "#/components/schemas/Model.Ref"
  14489. },
  14490. "version": {
  14491. "type": "string"
  14492. }
  14493. },
  14494. "required": ["sessionID", "projectID", "location", "slug", "version"],
  14495. "additionalProperties": false
  14496. }
  14497. },
  14498. "required": ["id", "created", "type", "durable", "data"],
  14499. "additionalProperties": false
  14500. },
  14501. "session.agent.selected": {
  14502. "type": "object",
  14503. "properties": {
  14504. "id": {
  14505. "type": "string",
  14506. "allOf": [
  14507. {
  14508. "pattern": "^evt_"
  14509. }
  14510. ]
  14511. },
  14512. "created": {
  14513. "type": "number"
  14514. },
  14515. "metadata": {
  14516. "type": "object"
  14517. },
  14518. "type": {
  14519. "type": "string",
  14520. "enum": ["session.agent.selected"]
  14521. },
  14522. "durable": {
  14523. "type": "object",
  14524. "properties": {
  14525. "aggregateID": {
  14526. "type": "string"
  14527. },
  14528. "seq": {
  14529. "type": "integer",
  14530. "allOf": [
  14531. {
  14532. "minimum": 0
  14533. }
  14534. ]
  14535. },
  14536. "version": {
  14537. "type": "number",
  14538. "enum": [1]
  14539. }
  14540. },
  14541. "required": ["aggregateID", "seq", "version"],
  14542. "additionalProperties": false
  14543. },
  14544. "location": {
  14545. "$ref": "#/components/schemas/Location.Ref"
  14546. },
  14547. "data": {
  14548. "type": "object",
  14549. "properties": {
  14550. "sessionID": {
  14551. "type": "string",
  14552. "allOf": [
  14553. {
  14554. "pattern": "^ses"
  14555. }
  14556. ]
  14557. },
  14558. "agent": {
  14559. "type": "string"
  14560. },
  14561. "previous": {
  14562. "type": "string"
  14563. }
  14564. },
  14565. "required": ["sessionID", "agent"],
  14566. "additionalProperties": false
  14567. }
  14568. },
  14569. "required": ["id", "created", "type", "durable", "data"],
  14570. "additionalProperties": false
  14571. },
  14572. "session.model.selected": {
  14573. "type": "object",
  14574. "properties": {
  14575. "id": {
  14576. "type": "string",
  14577. "allOf": [
  14578. {
  14579. "pattern": "^evt_"
  14580. }
  14581. ]
  14582. },
  14583. "created": {
  14584. "type": "number"
  14585. },
  14586. "metadata": {
  14587. "type": "object"
  14588. },
  14589. "type": {
  14590. "type": "string",
  14591. "enum": ["session.model.selected"]
  14592. },
  14593. "durable": {
  14594. "type": "object",
  14595. "properties": {
  14596. "aggregateID": {
  14597. "type": "string"
  14598. },
  14599. "seq": {
  14600. "type": "integer",
  14601. "allOf": [
  14602. {
  14603. "minimum": 0
  14604. }
  14605. ]
  14606. },
  14607. "version": {
  14608. "type": "number",
  14609. "enum": [1]
  14610. }
  14611. },
  14612. "required": ["aggregateID", "seq", "version"],
  14613. "additionalProperties": false
  14614. },
  14615. "location": {
  14616. "$ref": "#/components/schemas/Location.Ref"
  14617. },
  14618. "data": {
  14619. "type": "object",
  14620. "properties": {
  14621. "sessionID": {
  14622. "type": "string",
  14623. "allOf": [
  14624. {
  14625. "pattern": "^ses"
  14626. }
  14627. ]
  14628. },
  14629. "model": {
  14630. "$ref": "#/components/schemas/Model.Ref"
  14631. },
  14632. "previous": {
  14633. "$ref": "#/components/schemas/Model.Ref"
  14634. }
  14635. },
  14636. "required": ["sessionID", "model"],
  14637. "additionalProperties": false
  14638. }
  14639. },
  14640. "required": ["id", "created", "type", "durable", "data"],
  14641. "additionalProperties": false
  14642. },
  14643. "session.moved": {
  14644. "type": "object",
  14645. "properties": {
  14646. "id": {
  14647. "type": "string",
  14648. "allOf": [
  14649. {
  14650. "pattern": "^evt_"
  14651. }
  14652. ]
  14653. },
  14654. "created": {
  14655. "type": "number"
  14656. },
  14657. "metadata": {
  14658. "type": "object"
  14659. },
  14660. "type": {
  14661. "type": "string",
  14662. "enum": ["session.moved"]
  14663. },
  14664. "durable": {
  14665. "type": "object",
  14666. "properties": {
  14667. "aggregateID": {
  14668. "type": "string"
  14669. },
  14670. "seq": {
  14671. "type": "integer",
  14672. "allOf": [
  14673. {
  14674. "minimum": 0
  14675. }
  14676. ]
  14677. },
  14678. "version": {
  14679. "type": "number",
  14680. "enum": [1]
  14681. }
  14682. },
  14683. "required": ["aggregateID", "seq", "version"],
  14684. "additionalProperties": false
  14685. },
  14686. "location": {
  14687. "$ref": "#/components/schemas/Location.Ref"
  14688. },
  14689. "data": {
  14690. "type": "object",
  14691. "properties": {
  14692. "sessionID": {
  14693. "type": "string",
  14694. "allOf": [
  14695. {
  14696. "pattern": "^ses"
  14697. }
  14698. ]
  14699. },
  14700. "location": {
  14701. "$ref": "#/components/schemas/Location.Ref"
  14702. },
  14703. "projectID": {
  14704. "type": "string"
  14705. },
  14706. "subpath": {
  14707. "type": "string"
  14708. }
  14709. },
  14710. "required": ["sessionID", "location", "projectID"],
  14711. "additionalProperties": false
  14712. }
  14713. },
  14714. "required": ["id", "created", "type", "durable", "data"],
  14715. "additionalProperties": false
  14716. },
  14717. "session.renamed": {
  14718. "type": "object",
  14719. "properties": {
  14720. "id": {
  14721. "type": "string",
  14722. "allOf": [
  14723. {
  14724. "pattern": "^evt_"
  14725. }
  14726. ]
  14727. },
  14728. "created": {
  14729. "type": "number"
  14730. },
  14731. "metadata": {
  14732. "type": "object"
  14733. },
  14734. "type": {
  14735. "type": "string",
  14736. "enum": ["session.renamed"]
  14737. },
  14738. "durable": {
  14739. "type": "object",
  14740. "properties": {
  14741. "aggregateID": {
  14742. "type": "string"
  14743. },
  14744. "seq": {
  14745. "type": "integer",
  14746. "allOf": [
  14747. {
  14748. "minimum": 0
  14749. }
  14750. ]
  14751. },
  14752. "version": {
  14753. "type": "number",
  14754. "enum": [1]
  14755. }
  14756. },
  14757. "required": ["aggregateID", "seq", "version"],
  14758. "additionalProperties": false
  14759. },
  14760. "location": {
  14761. "$ref": "#/components/schemas/Location.Ref"
  14762. },
  14763. "data": {
  14764. "type": "object",
  14765. "properties": {
  14766. "sessionID": {
  14767. "type": "string",
  14768. "allOf": [
  14769. {
  14770. "pattern": "^ses"
  14771. }
  14772. ]
  14773. },
  14774. "title": {
  14775. "type": "string"
  14776. }
  14777. },
  14778. "required": ["sessionID", "title"],
  14779. "additionalProperties": false
  14780. }
  14781. },
  14782. "required": ["id", "created", "type", "durable", "data"],
  14783. "additionalProperties": false
  14784. },
  14785. "session.deleted": {
  14786. "type": "object",
  14787. "properties": {
  14788. "id": {
  14789. "type": "string",
  14790. "allOf": [
  14791. {
  14792. "pattern": "^evt_"
  14793. }
  14794. ]
  14795. },
  14796. "created": {
  14797. "type": "number"
  14798. },
  14799. "metadata": {
  14800. "type": "object"
  14801. },
  14802. "type": {
  14803. "type": "string",
  14804. "enum": ["session.deleted"]
  14805. },
  14806. "durable": {
  14807. "type": "object",
  14808. "properties": {
  14809. "aggregateID": {
  14810. "type": "string"
  14811. },
  14812. "seq": {
  14813. "type": "integer",
  14814. "allOf": [
  14815. {
  14816. "minimum": 0
  14817. }
  14818. ]
  14819. },
  14820. "version": {
  14821. "type": "number",
  14822. "enum": [2]
  14823. }
  14824. },
  14825. "required": ["aggregateID", "seq", "version"],
  14826. "additionalProperties": false
  14827. },
  14828. "location": {
  14829. "$ref": "#/components/schemas/Location.Ref"
  14830. },
  14831. "data": {
  14832. "type": "object",
  14833. "properties": {
  14834. "sessionID": {
  14835. "type": "string",
  14836. "allOf": [
  14837. {
  14838. "pattern": "^ses"
  14839. }
  14840. ]
  14841. }
  14842. },
  14843. "required": ["sessionID"],
  14844. "additionalProperties": false
  14845. }
  14846. },
  14847. "required": ["id", "created", "type", "durable", "data"],
  14848. "additionalProperties": false
  14849. },
  14850. "session.forked": {
  14851. "type": "object",
  14852. "properties": {
  14853. "id": {
  14854. "type": "string",
  14855. "allOf": [
  14856. {
  14857. "pattern": "^evt_"
  14858. }
  14859. ]
  14860. },
  14861. "created": {
  14862. "type": "number"
  14863. },
  14864. "metadata": {
  14865. "type": "object"
  14866. },
  14867. "type": {
  14868. "type": "string",
  14869. "enum": ["session.forked"]
  14870. },
  14871. "durable": {
  14872. "type": "object",
  14873. "properties": {
  14874. "aggregateID": {
  14875. "type": "string"
  14876. },
  14877. "seq": {
  14878. "type": "integer",
  14879. "allOf": [
  14880. {
  14881. "minimum": 0
  14882. }
  14883. ]
  14884. },
  14885. "version": {
  14886. "type": "number",
  14887. "enum": [2]
  14888. }
  14889. },
  14890. "required": ["aggregateID", "seq", "version"],
  14891. "additionalProperties": false
  14892. },
  14893. "location": {
  14894. "$ref": "#/components/schemas/Location.Ref"
  14895. },
  14896. "data": {
  14897. "type": "object",
  14898. "properties": {
  14899. "sessionID": {
  14900. "type": "string",
  14901. "allOf": [
  14902. {
  14903. "pattern": "^ses"
  14904. }
  14905. ]
  14906. },
  14907. "parentID": {
  14908. "type": "string",
  14909. "allOf": [
  14910. {
  14911. "pattern": "^ses"
  14912. }
  14913. ]
  14914. },
  14915. "boundary": {
  14916. "$ref": "#/components/schemas/Session.ForkBoundary"
  14917. },
  14918. "instructions": {
  14919. "type": "object",
  14920. "patternProperties": {
  14921. "^[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._/-]*$": {
  14922. "type": "string",
  14923. "allOf": [
  14924. {
  14925. "pattern": "^[a-f0-9]{64}$"
  14926. }
  14927. ]
  14928. }
  14929. }
  14930. }
  14931. },
  14932. "required": ["sessionID", "parentID", "boundary"],
  14933. "additionalProperties": false
  14934. }
  14935. },
  14936. "required": ["id", "created", "type", "durable", "data"],
  14937. "additionalProperties": false
  14938. },
  14939. "session.inbox.delivered": {
  14940. "type": "object",
  14941. "properties": {
  14942. "id": {
  14943. "type": "string",
  14944. "allOf": [
  14945. {
  14946. "pattern": "^evt_"
  14947. }
  14948. ]
  14949. },
  14950. "created": {
  14951. "type": "number"
  14952. },
  14953. "metadata": {
  14954. "type": "object"
  14955. },
  14956. "type": {
  14957. "type": "string",
  14958. "enum": ["session.inbox.delivered"]
  14959. },
  14960. "durable": {
  14961. "type": "object",
  14962. "properties": {
  14963. "aggregateID": {
  14964. "type": "string"
  14965. },
  14966. "seq": {
  14967. "type": "integer",
  14968. "allOf": [
  14969. {
  14970. "minimum": 0
  14971. }
  14972. ]
  14973. },
  14974. "version": {
  14975. "type": "number",
  14976. "enum": [1]
  14977. }
  14978. },
  14979. "required": ["aggregateID", "seq", "version"],
  14980. "additionalProperties": false
  14981. },
  14982. "location": {
  14983. "$ref": "#/components/schemas/Location.Ref"
  14984. },
  14985. "data": {
  14986. "type": "object",
  14987. "properties": {
  14988. "sessionID": {
  14989. "type": "string",
  14990. "allOf": [
  14991. {
  14992. "pattern": "^ses"
  14993. }
  14994. ]
  14995. },
  14996. "inboxID": {
  14997. "type": "string",
  14998. "allOf": [
  14999. {
  15000. "pattern": "^msg_"
  15001. }
  15002. ]
  15003. }
  15004. },
  15005. "required": ["sessionID", "inboxID"],
  15006. "additionalProperties": false
  15007. }
  15008. },
  15009. "required": ["id", "created", "type", "durable", "data"],
  15010. "additionalProperties": false
  15011. },
  15012. "Session.Inbox.UserPayload1": {
  15013. "type": "object",
  15014. "properties": {
  15015. "text": {
  15016. "type": "string"
  15017. },
  15018. "files": {
  15019. "type": "array",
  15020. "items": {
  15021. "$ref": "#/components/schemas/Prompt.FileAttachment"
  15022. }
  15023. },
  15024. "agents": {
  15025. "type": "array",
  15026. "items": {
  15027. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  15028. }
  15029. },
  15030. "skills": {
  15031. "type": "array",
  15032. "items": {
  15033. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  15034. }
  15035. },
  15036. "metadata": {
  15037. "type": "object"
  15038. }
  15039. },
  15040. "required": ["text"],
  15041. "additionalProperties": false
  15042. },
  15043. "Session.Inbox.SyntheticPayload1": {
  15044. "type": "object",
  15045. "properties": {
  15046. "text": {
  15047. "type": "string"
  15048. },
  15049. "description": {
  15050. "type": "string"
  15051. },
  15052. "metadata": {
  15053. "type": "object"
  15054. }
  15055. },
  15056. "required": ["text"],
  15057. "additionalProperties": false
  15058. },
  15059. "Session.Inbox.Item": {
  15060. "anyOf": [
  15061. {
  15062. "type": "object",
  15063. "properties": {
  15064. "type": {
  15065. "type": "string",
  15066. "enum": ["user"]
  15067. },
  15068. "payload": {
  15069. "$ref": "#/components/schemas/Session.Inbox.UserPayload1"
  15070. },
  15071. "delivery": {
  15072. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  15073. }
  15074. },
  15075. "required": ["type", "payload", "delivery"],
  15076. "additionalProperties": false
  15077. },
  15078. {
  15079. "type": "object",
  15080. "properties": {
  15081. "type": {
  15082. "type": "string",
  15083. "enum": ["synthetic"]
  15084. },
  15085. "payload": {
  15086. "$ref": "#/components/schemas/Session.Inbox.SyntheticPayload1"
  15087. },
  15088. "delivery": {
  15089. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  15090. }
  15091. },
  15092. "required": ["type", "payload", "delivery"],
  15093. "additionalProperties": false
  15094. },
  15095. {
  15096. "type": "object",
  15097. "properties": {
  15098. "type": {
  15099. "type": "string",
  15100. "enum": ["compaction"]
  15101. },
  15102. "payload": {
  15103. "$ref": "#/components/schemas/Session.Inbox.CompactionPayload"
  15104. },
  15105. "delivery": {
  15106. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  15107. }
  15108. },
  15109. "required": ["type", "payload", "delivery"],
  15110. "additionalProperties": false
  15111. },
  15112. {
  15113. "type": "object",
  15114. "properties": {
  15115. "type": {
  15116. "type": "string",
  15117. "enum": ["move"]
  15118. },
  15119. "payload": {
  15120. "$ref": "#/components/schemas/Session.Inbox.MovePayload"
  15121. },
  15122. "delivery": {
  15123. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  15124. }
  15125. },
  15126. "required": ["type", "payload", "delivery"],
  15127. "additionalProperties": false
  15128. }
  15129. ]
  15130. },
  15131. "session.inbox.enqueued": {
  15132. "type": "object",
  15133. "properties": {
  15134. "id": {
  15135. "type": "string",
  15136. "allOf": [
  15137. {
  15138. "pattern": "^evt_"
  15139. }
  15140. ]
  15141. },
  15142. "created": {
  15143. "type": "number"
  15144. },
  15145. "metadata": {
  15146. "type": "object"
  15147. },
  15148. "type": {
  15149. "type": "string",
  15150. "enum": ["session.inbox.enqueued"]
  15151. },
  15152. "durable": {
  15153. "type": "object",
  15154. "properties": {
  15155. "aggregateID": {
  15156. "type": "string"
  15157. },
  15158. "seq": {
  15159. "type": "integer",
  15160. "allOf": [
  15161. {
  15162. "minimum": 0
  15163. }
  15164. ]
  15165. },
  15166. "version": {
  15167. "type": "number",
  15168. "enum": [1]
  15169. }
  15170. },
  15171. "required": ["aggregateID", "seq", "version"],
  15172. "additionalProperties": false
  15173. },
  15174. "location": {
  15175. "$ref": "#/components/schemas/Location.Ref"
  15176. },
  15177. "data": {
  15178. "type": "object",
  15179. "properties": {
  15180. "sessionID": {
  15181. "type": "string",
  15182. "allOf": [
  15183. {
  15184. "pattern": "^ses"
  15185. }
  15186. ]
  15187. },
  15188. "inboxID": {
  15189. "type": "string",
  15190. "allOf": [
  15191. {
  15192. "pattern": "^msg_"
  15193. }
  15194. ]
  15195. },
  15196. "item": {
  15197. "$ref": "#/components/schemas/Session.Inbox.Item"
  15198. }
  15199. },
  15200. "required": ["sessionID", "inboxID", "item"],
  15201. "additionalProperties": false
  15202. }
  15203. },
  15204. "required": ["id", "created", "type", "durable", "data"],
  15205. "additionalProperties": false
  15206. },
  15207. "session.inbox.cancelled": {
  15208. "type": "object",
  15209. "properties": {
  15210. "id": {
  15211. "type": "string",
  15212. "allOf": [
  15213. {
  15214. "pattern": "^evt_"
  15215. }
  15216. ]
  15217. },
  15218. "created": {
  15219. "type": "number"
  15220. },
  15221. "metadata": {
  15222. "type": "object"
  15223. },
  15224. "type": {
  15225. "type": "string",
  15226. "enum": ["session.inbox.cancelled"]
  15227. },
  15228. "durable": {
  15229. "type": "object",
  15230. "properties": {
  15231. "aggregateID": {
  15232. "type": "string"
  15233. },
  15234. "seq": {
  15235. "type": "integer",
  15236. "allOf": [
  15237. {
  15238. "minimum": 0
  15239. }
  15240. ]
  15241. },
  15242. "version": {
  15243. "type": "number",
  15244. "enum": [1]
  15245. }
  15246. },
  15247. "required": ["aggregateID", "seq", "version"],
  15248. "additionalProperties": false
  15249. },
  15250. "location": {
  15251. "$ref": "#/components/schemas/Location.Ref"
  15252. },
  15253. "data": {
  15254. "type": "object",
  15255. "properties": {
  15256. "sessionID": {
  15257. "type": "string",
  15258. "allOf": [
  15259. {
  15260. "pattern": "^ses"
  15261. }
  15262. ]
  15263. },
  15264. "inboxID": {
  15265. "type": "string",
  15266. "allOf": [
  15267. {
  15268. "pattern": "^msg_"
  15269. }
  15270. ]
  15271. }
  15272. },
  15273. "required": ["sessionID", "inboxID"],
  15274. "additionalProperties": false
  15275. }
  15276. },
  15277. "required": ["id", "created", "type", "durable", "data"],
  15278. "additionalProperties": false
  15279. },
  15280. "session.inbox.delivery.changed": {
  15281. "type": "object",
  15282. "properties": {
  15283. "id": {
  15284. "type": "string",
  15285. "allOf": [
  15286. {
  15287. "pattern": "^evt_"
  15288. }
  15289. ]
  15290. },
  15291. "created": {
  15292. "type": "number"
  15293. },
  15294. "metadata": {
  15295. "type": "object"
  15296. },
  15297. "type": {
  15298. "type": "string",
  15299. "enum": ["session.inbox.delivery.changed"]
  15300. },
  15301. "durable": {
  15302. "type": "object",
  15303. "properties": {
  15304. "aggregateID": {
  15305. "type": "string"
  15306. },
  15307. "seq": {
  15308. "type": "integer",
  15309. "allOf": [
  15310. {
  15311. "minimum": 0
  15312. }
  15313. ]
  15314. },
  15315. "version": {
  15316. "type": "number",
  15317. "enum": [1]
  15318. }
  15319. },
  15320. "required": ["aggregateID", "seq", "version"],
  15321. "additionalProperties": false
  15322. },
  15323. "location": {
  15324. "$ref": "#/components/schemas/Location.Ref"
  15325. },
  15326. "data": {
  15327. "type": "object",
  15328. "properties": {
  15329. "sessionID": {
  15330. "type": "string",
  15331. "allOf": [
  15332. {
  15333. "pattern": "^ses"
  15334. }
  15335. ]
  15336. },
  15337. "inboxID": {
  15338. "type": "string",
  15339. "allOf": [
  15340. {
  15341. "pattern": "^msg_"
  15342. }
  15343. ]
  15344. },
  15345. "delivery": {
  15346. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  15347. }
  15348. },
  15349. "required": ["sessionID", "inboxID", "delivery"],
  15350. "additionalProperties": false
  15351. }
  15352. },
  15353. "required": ["id", "created", "type", "durable", "data"],
  15354. "additionalProperties": false
  15355. },
  15356. "session.execution.started": {
  15357. "type": "object",
  15358. "properties": {
  15359. "id": {
  15360. "type": "string",
  15361. "allOf": [
  15362. {
  15363. "pattern": "^evt_"
  15364. }
  15365. ]
  15366. },
  15367. "created": {
  15368. "type": "number"
  15369. },
  15370. "metadata": {
  15371. "type": "object"
  15372. },
  15373. "type": {
  15374. "type": "string",
  15375. "enum": ["session.execution.started"]
  15376. },
  15377. "durable": {
  15378. "type": "object",
  15379. "properties": {
  15380. "aggregateID": {
  15381. "type": "string"
  15382. },
  15383. "seq": {
  15384. "type": "integer",
  15385. "allOf": [
  15386. {
  15387. "minimum": 0
  15388. }
  15389. ]
  15390. },
  15391. "version": {
  15392. "type": "number",
  15393. "enum": [1]
  15394. }
  15395. },
  15396. "required": ["aggregateID", "seq", "version"],
  15397. "additionalProperties": false
  15398. },
  15399. "location": {
  15400. "$ref": "#/components/schemas/Location.Ref"
  15401. },
  15402. "data": {
  15403. "type": "object",
  15404. "properties": {
  15405. "sessionID": {
  15406. "type": "string",
  15407. "allOf": [
  15408. {
  15409. "pattern": "^ses"
  15410. }
  15411. ]
  15412. }
  15413. },
  15414. "required": ["sessionID"],
  15415. "additionalProperties": false
  15416. }
  15417. },
  15418. "required": ["id", "created", "type", "durable", "data"],
  15419. "additionalProperties": false
  15420. },
  15421. "session.execution.succeeded": {
  15422. "type": "object",
  15423. "properties": {
  15424. "id": {
  15425. "type": "string",
  15426. "allOf": [
  15427. {
  15428. "pattern": "^evt_"
  15429. }
  15430. ]
  15431. },
  15432. "created": {
  15433. "type": "number"
  15434. },
  15435. "metadata": {
  15436. "type": "object"
  15437. },
  15438. "type": {
  15439. "type": "string",
  15440. "enum": ["session.execution.succeeded"]
  15441. },
  15442. "durable": {
  15443. "type": "object",
  15444. "properties": {
  15445. "aggregateID": {
  15446. "type": "string"
  15447. },
  15448. "seq": {
  15449. "type": "integer",
  15450. "allOf": [
  15451. {
  15452. "minimum": 0
  15453. }
  15454. ]
  15455. },
  15456. "version": {
  15457. "type": "number",
  15458. "enum": [1]
  15459. }
  15460. },
  15461. "required": ["aggregateID", "seq", "version"],
  15462. "additionalProperties": false
  15463. },
  15464. "location": {
  15465. "$ref": "#/components/schemas/Location.Ref"
  15466. },
  15467. "data": {
  15468. "type": "object",
  15469. "properties": {
  15470. "sessionID": {
  15471. "type": "string",
  15472. "allOf": [
  15473. {
  15474. "pattern": "^ses"
  15475. }
  15476. ]
  15477. }
  15478. },
  15479. "required": ["sessionID"],
  15480. "additionalProperties": false
  15481. }
  15482. },
  15483. "required": ["id", "created", "type", "durable", "data"],
  15484. "additionalProperties": false
  15485. },
  15486. "session.execution.failed": {
  15487. "type": "object",
  15488. "properties": {
  15489. "id": {
  15490. "type": "string",
  15491. "allOf": [
  15492. {
  15493. "pattern": "^evt_"
  15494. }
  15495. ]
  15496. },
  15497. "created": {
  15498. "type": "number"
  15499. },
  15500. "metadata": {
  15501. "type": "object"
  15502. },
  15503. "type": {
  15504. "type": "string",
  15505. "enum": ["session.execution.failed"]
  15506. },
  15507. "durable": {
  15508. "type": "object",
  15509. "properties": {
  15510. "aggregateID": {
  15511. "type": "string"
  15512. },
  15513. "seq": {
  15514. "type": "integer",
  15515. "allOf": [
  15516. {
  15517. "minimum": 0
  15518. }
  15519. ]
  15520. },
  15521. "version": {
  15522. "type": "number",
  15523. "enum": [1]
  15524. }
  15525. },
  15526. "required": ["aggregateID", "seq", "version"],
  15527. "additionalProperties": false
  15528. },
  15529. "location": {
  15530. "$ref": "#/components/schemas/Location.Ref"
  15531. },
  15532. "data": {
  15533. "type": "object",
  15534. "properties": {
  15535. "sessionID": {
  15536. "type": "string",
  15537. "allOf": [
  15538. {
  15539. "pattern": "^ses"
  15540. }
  15541. ]
  15542. },
  15543. "error": {
  15544. "$ref": "#/components/schemas/Session.StructuredError"
  15545. }
  15546. },
  15547. "required": ["sessionID", "error"],
  15548. "additionalProperties": false
  15549. }
  15550. },
  15551. "required": ["id", "created", "type", "durable", "data"],
  15552. "additionalProperties": false
  15553. },
  15554. "session.execution.interrupted": {
  15555. "type": "object",
  15556. "properties": {
  15557. "id": {
  15558. "type": "string",
  15559. "allOf": [
  15560. {
  15561. "pattern": "^evt_"
  15562. }
  15563. ]
  15564. },
  15565. "created": {
  15566. "type": "number"
  15567. },
  15568. "metadata": {
  15569. "type": "object"
  15570. },
  15571. "type": {
  15572. "type": "string",
  15573. "enum": ["session.execution.interrupted"]
  15574. },
  15575. "durable": {
  15576. "type": "object",
  15577. "properties": {
  15578. "aggregateID": {
  15579. "type": "string"
  15580. },
  15581. "seq": {
  15582. "type": "integer",
  15583. "allOf": [
  15584. {
  15585. "minimum": 0
  15586. }
  15587. ]
  15588. },
  15589. "version": {
  15590. "type": "number",
  15591. "enum": [1]
  15592. }
  15593. },
  15594. "required": ["aggregateID", "seq", "version"],
  15595. "additionalProperties": false
  15596. },
  15597. "location": {
  15598. "$ref": "#/components/schemas/Location.Ref"
  15599. },
  15600. "data": {
  15601. "type": "object",
  15602. "properties": {
  15603. "sessionID": {
  15604. "type": "string",
  15605. "allOf": [
  15606. {
  15607. "pattern": "^ses"
  15608. }
  15609. ]
  15610. },
  15611. "reason": {
  15612. "type": "string",
  15613. "enum": ["user", "shutdown", "superseded"]
  15614. }
  15615. },
  15616. "required": ["sessionID", "reason"],
  15617. "additionalProperties": false
  15618. }
  15619. },
  15620. "required": ["id", "created", "type", "durable", "data"],
  15621. "additionalProperties": false
  15622. },
  15623. "session.instructions.updated": {
  15624. "type": "object",
  15625. "properties": {
  15626. "id": {
  15627. "type": "string",
  15628. "allOf": [
  15629. {
  15630. "pattern": "^evt_"
  15631. }
  15632. ]
  15633. },
  15634. "created": {
  15635. "type": "number"
  15636. },
  15637. "metadata": {
  15638. "type": "object"
  15639. },
  15640. "type": {
  15641. "type": "string",
  15642. "enum": ["session.instructions.updated"]
  15643. },
  15644. "durable": {
  15645. "type": "object",
  15646. "properties": {
  15647. "aggregateID": {
  15648. "type": "string"
  15649. },
  15650. "seq": {
  15651. "type": "integer",
  15652. "allOf": [
  15653. {
  15654. "minimum": 0
  15655. }
  15656. ]
  15657. },
  15658. "version": {
  15659. "type": "number",
  15660. "enum": [2]
  15661. }
  15662. },
  15663. "required": ["aggregateID", "seq", "version"],
  15664. "additionalProperties": false
  15665. },
  15666. "location": {
  15667. "$ref": "#/components/schemas/Location.Ref"
  15668. },
  15669. "data": {
  15670. "type": "object",
  15671. "properties": {
  15672. "sessionID": {
  15673. "type": "string",
  15674. "allOf": [
  15675. {
  15676. "pattern": "^ses"
  15677. }
  15678. ]
  15679. },
  15680. "delta": {
  15681. "type": "object",
  15682. "additionalProperties": {
  15683. "anyOf": [
  15684. {
  15685. "type": "string",
  15686. "allOf": [
  15687. {
  15688. "pattern": "^[a-f0-9]{64}$"
  15689. }
  15690. ]
  15691. },
  15692. {
  15693. "type": "string",
  15694. "enum": ["removed"]
  15695. }
  15696. ]
  15697. }
  15698. },
  15699. "text": {
  15700. "type": "string"
  15701. }
  15702. },
  15703. "required": ["sessionID", "delta"],
  15704. "additionalProperties": false
  15705. }
  15706. },
  15707. "required": ["id", "created", "type", "durable", "data"],
  15708. "additionalProperties": false
  15709. },
  15710. "session.synthetic": {
  15711. "type": "object",
  15712. "properties": {
  15713. "id": {
  15714. "type": "string",
  15715. "allOf": [
  15716. {
  15717. "pattern": "^evt_"
  15718. }
  15719. ]
  15720. },
  15721. "created": {
  15722. "type": "number"
  15723. },
  15724. "metadata": {
  15725. "type": "object"
  15726. },
  15727. "type": {
  15728. "type": "string",
  15729. "enum": ["session.synthetic"]
  15730. },
  15731. "durable": {
  15732. "type": "object",
  15733. "properties": {
  15734. "aggregateID": {
  15735. "type": "string"
  15736. },
  15737. "seq": {
  15738. "type": "integer",
  15739. "allOf": [
  15740. {
  15741. "minimum": 0
  15742. }
  15743. ]
  15744. },
  15745. "version": {
  15746. "type": "number",
  15747. "enum": [1]
  15748. }
  15749. },
  15750. "required": ["aggregateID", "seq", "version"],
  15751. "additionalProperties": false
  15752. },
  15753. "location": {
  15754. "$ref": "#/components/schemas/Location.Ref"
  15755. },
  15756. "data": {
  15757. "type": "object",
  15758. "properties": {
  15759. "sessionID": {
  15760. "type": "string",
  15761. "allOf": [
  15762. {
  15763. "pattern": "^ses"
  15764. }
  15765. ]
  15766. },
  15767. "text": {
  15768. "type": "string"
  15769. },
  15770. "description": {
  15771. "type": "string"
  15772. },
  15773. "metadata": {
  15774. "type": "object"
  15775. }
  15776. },
  15777. "required": ["sessionID", "text"],
  15778. "additionalProperties": false
  15779. }
  15780. },
  15781. "required": ["id", "created", "type", "durable", "data"],
  15782. "additionalProperties": false
  15783. },
  15784. "session.skill.activated": {
  15785. "type": "object",
  15786. "properties": {
  15787. "id": {
  15788. "type": "string",
  15789. "allOf": [
  15790. {
  15791. "pattern": "^evt_"
  15792. }
  15793. ]
  15794. },
  15795. "created": {
  15796. "type": "number"
  15797. },
  15798. "metadata": {
  15799. "type": "object"
  15800. },
  15801. "type": {
  15802. "type": "string",
  15803. "enum": ["session.skill.activated"]
  15804. },
  15805. "durable": {
  15806. "type": "object",
  15807. "properties": {
  15808. "aggregateID": {
  15809. "type": "string"
  15810. },
  15811. "seq": {
  15812. "type": "integer",
  15813. "allOf": [
  15814. {
  15815. "minimum": 0
  15816. }
  15817. ]
  15818. },
  15819. "version": {
  15820. "type": "number",
  15821. "enum": [1]
  15822. }
  15823. },
  15824. "required": ["aggregateID", "seq", "version"],
  15825. "additionalProperties": false
  15826. },
  15827. "location": {
  15828. "$ref": "#/components/schemas/Location.Ref"
  15829. },
  15830. "data": {
  15831. "type": "object",
  15832. "properties": {
  15833. "sessionID": {
  15834. "type": "string",
  15835. "allOf": [
  15836. {
  15837. "pattern": "^ses"
  15838. }
  15839. ]
  15840. },
  15841. "id": {
  15842. "type": "string"
  15843. },
  15844. "name": {
  15845. "type": "string"
  15846. },
  15847. "text": {
  15848. "type": "string"
  15849. }
  15850. },
  15851. "required": ["sessionID", "id", "name", "text"],
  15852. "additionalProperties": false
  15853. }
  15854. },
  15855. "required": ["id", "created", "type", "durable", "data"],
  15856. "additionalProperties": false
  15857. },
  15858. "Shell.Info": {
  15859. "type": "object",
  15860. "properties": {
  15861. "id": {
  15862. "type": "string",
  15863. "allOf": [
  15864. {
  15865. "pattern": "^sh_"
  15866. }
  15867. ]
  15868. },
  15869. "status": {
  15870. "type": "string",
  15871. "enum": ["running", "exited", "timeout", "killed"]
  15872. },
  15873. "command": {
  15874. "type": "string"
  15875. },
  15876. "cwd": {
  15877. "type": "string"
  15878. },
  15879. "shell": {
  15880. "type": "string"
  15881. },
  15882. "file": {
  15883. "type": "string"
  15884. },
  15885. "pid": {
  15886. "type": "integer",
  15887. "allOf": [
  15888. {
  15889. "minimum": 0
  15890. }
  15891. ]
  15892. },
  15893. "exit": {
  15894. "type": "number"
  15895. },
  15896. "metadata": {
  15897. "type": "object"
  15898. },
  15899. "time": {
  15900. "type": "object",
  15901. "properties": {
  15902. "started": {
  15903. "type": "number"
  15904. },
  15905. "completed": {
  15906. "type": "number"
  15907. }
  15908. },
  15909. "required": ["started"],
  15910. "additionalProperties": false
  15911. }
  15912. },
  15913. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  15914. "additionalProperties": false
  15915. },
  15916. "session.shell.started": {
  15917. "type": "object",
  15918. "properties": {
  15919. "id": {
  15920. "type": "string",
  15921. "allOf": [
  15922. {
  15923. "pattern": "^evt_"
  15924. }
  15925. ]
  15926. },
  15927. "created": {
  15928. "type": "number"
  15929. },
  15930. "metadata": {
  15931. "type": "object"
  15932. },
  15933. "type": {
  15934. "type": "string",
  15935. "enum": ["session.shell.started"]
  15936. },
  15937. "durable": {
  15938. "type": "object",
  15939. "properties": {
  15940. "aggregateID": {
  15941. "type": "string"
  15942. },
  15943. "seq": {
  15944. "type": "integer",
  15945. "allOf": [
  15946. {
  15947. "minimum": 0
  15948. }
  15949. ]
  15950. },
  15951. "version": {
  15952. "type": "number",
  15953. "enum": [1]
  15954. }
  15955. },
  15956. "required": ["aggregateID", "seq", "version"],
  15957. "additionalProperties": false
  15958. },
  15959. "location": {
  15960. "$ref": "#/components/schemas/Location.Ref"
  15961. },
  15962. "data": {
  15963. "type": "object",
  15964. "properties": {
  15965. "sessionID": {
  15966. "type": "string",
  15967. "allOf": [
  15968. {
  15969. "pattern": "^ses"
  15970. }
  15971. ]
  15972. },
  15973. "shell": {
  15974. "$ref": "#/components/schemas/Shell.Info"
  15975. }
  15976. },
  15977. "required": ["sessionID", "shell"],
  15978. "additionalProperties": false
  15979. }
  15980. },
  15981. "required": ["id", "created", "type", "durable", "data"],
  15982. "additionalProperties": false
  15983. },
  15984. "session.shell.ended": {
  15985. "type": "object",
  15986. "properties": {
  15987. "id": {
  15988. "type": "string",
  15989. "allOf": [
  15990. {
  15991. "pattern": "^evt_"
  15992. }
  15993. ]
  15994. },
  15995. "created": {
  15996. "type": "number"
  15997. },
  15998. "metadata": {
  15999. "type": "object"
  16000. },
  16001. "type": {
  16002. "type": "string",
  16003. "enum": ["session.shell.ended"]
  16004. },
  16005. "durable": {
  16006. "type": "object",
  16007. "properties": {
  16008. "aggregateID": {
  16009. "type": "string"
  16010. },
  16011. "seq": {
  16012. "type": "integer",
  16013. "allOf": [
  16014. {
  16015. "minimum": 0
  16016. }
  16017. ]
  16018. },
  16019. "version": {
  16020. "type": "number",
  16021. "enum": [1]
  16022. }
  16023. },
  16024. "required": ["aggregateID", "seq", "version"],
  16025. "additionalProperties": false
  16026. },
  16027. "location": {
  16028. "$ref": "#/components/schemas/Location.Ref"
  16029. },
  16030. "data": {
  16031. "type": "object",
  16032. "properties": {
  16033. "sessionID": {
  16034. "type": "string",
  16035. "allOf": [
  16036. {
  16037. "pattern": "^ses"
  16038. }
  16039. ]
  16040. },
  16041. "shell": {
  16042. "$ref": "#/components/schemas/Shell.Info"
  16043. },
  16044. "output": {
  16045. "type": "object",
  16046. "properties": {
  16047. "output": {
  16048. "type": "string"
  16049. },
  16050. "cursor": {
  16051. "type": "integer",
  16052. "allOf": [
  16053. {
  16054. "minimum": 0
  16055. }
  16056. ]
  16057. },
  16058. "size": {
  16059. "type": "integer",
  16060. "allOf": [
  16061. {
  16062. "minimum": 0
  16063. }
  16064. ]
  16065. },
  16066. "truncated": {
  16067. "type": "boolean"
  16068. }
  16069. },
  16070. "required": ["output", "cursor", "size", "truncated"],
  16071. "additionalProperties": false
  16072. }
  16073. },
  16074. "required": ["sessionID", "shell", "output"],
  16075. "additionalProperties": false
  16076. }
  16077. },
  16078. "required": ["id", "created", "type", "durable", "data"],
  16079. "additionalProperties": false
  16080. },
  16081. "session.step.started": {
  16082. "type": "object",
  16083. "properties": {
  16084. "id": {
  16085. "type": "string",
  16086. "allOf": [
  16087. {
  16088. "pattern": "^evt_"
  16089. }
  16090. ]
  16091. },
  16092. "created": {
  16093. "type": "number"
  16094. },
  16095. "metadata": {
  16096. "type": "object"
  16097. },
  16098. "type": {
  16099. "type": "string",
  16100. "enum": ["session.step.started"]
  16101. },
  16102. "durable": {
  16103. "type": "object",
  16104. "properties": {
  16105. "aggregateID": {
  16106. "type": "string"
  16107. },
  16108. "seq": {
  16109. "type": "integer",
  16110. "allOf": [
  16111. {
  16112. "minimum": 0
  16113. }
  16114. ]
  16115. },
  16116. "version": {
  16117. "type": "number",
  16118. "enum": [1]
  16119. }
  16120. },
  16121. "required": ["aggregateID", "seq", "version"],
  16122. "additionalProperties": false
  16123. },
  16124. "location": {
  16125. "$ref": "#/components/schemas/Location.Ref"
  16126. },
  16127. "data": {
  16128. "type": "object",
  16129. "properties": {
  16130. "sessionID": {
  16131. "type": "string",
  16132. "allOf": [
  16133. {
  16134. "pattern": "^ses"
  16135. }
  16136. ]
  16137. },
  16138. "assistantMessageID": {
  16139. "type": "string",
  16140. "allOf": [
  16141. {
  16142. "pattern": "^msg_"
  16143. }
  16144. ]
  16145. },
  16146. "agent": {
  16147. "type": "string"
  16148. },
  16149. "model": {
  16150. "$ref": "#/components/schemas/Model.Ref"
  16151. },
  16152. "snapshot": {
  16153. "type": "string"
  16154. }
  16155. },
  16156. "required": ["sessionID", "assistantMessageID", "agent", "model"],
  16157. "additionalProperties": false
  16158. }
  16159. },
  16160. "required": ["id", "created", "type", "durable", "data"],
  16161. "additionalProperties": false
  16162. },
  16163. "session.step.ended": {
  16164. "type": "object",
  16165. "properties": {
  16166. "id": {
  16167. "type": "string",
  16168. "allOf": [
  16169. {
  16170. "pattern": "^evt_"
  16171. }
  16172. ]
  16173. },
  16174. "created": {
  16175. "type": "number"
  16176. },
  16177. "metadata": {
  16178. "type": "object"
  16179. },
  16180. "type": {
  16181. "type": "string",
  16182. "enum": ["session.step.ended"]
  16183. },
  16184. "durable": {
  16185. "type": "object",
  16186. "properties": {
  16187. "aggregateID": {
  16188. "type": "string"
  16189. },
  16190. "seq": {
  16191. "type": "integer",
  16192. "allOf": [
  16193. {
  16194. "minimum": 0
  16195. }
  16196. ]
  16197. },
  16198. "version": {
  16199. "type": "number",
  16200. "enum": [1]
  16201. }
  16202. },
  16203. "required": ["aggregateID", "seq", "version"],
  16204. "additionalProperties": false
  16205. },
  16206. "location": {
  16207. "$ref": "#/components/schemas/Location.Ref"
  16208. },
  16209. "data": {
  16210. "type": "object",
  16211. "properties": {
  16212. "sessionID": {
  16213. "type": "string",
  16214. "allOf": [
  16215. {
  16216. "pattern": "^ses"
  16217. }
  16218. ]
  16219. },
  16220. "assistantMessageID": {
  16221. "type": "string",
  16222. "allOf": [
  16223. {
  16224. "pattern": "^msg_"
  16225. }
  16226. ]
  16227. },
  16228. "finish": {
  16229. "type": "string",
  16230. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  16231. },
  16232. "cost": {
  16233. "$ref": "#/components/schemas/Money.USD"
  16234. },
  16235. "tokens": {
  16236. "$ref": "#/components/schemas/TokenUsage.Info"
  16237. },
  16238. "snapshot": {
  16239. "type": "string"
  16240. },
  16241. "files": {
  16242. "type": "array",
  16243. "items": {
  16244. "type": "string"
  16245. }
  16246. }
  16247. },
  16248. "required": ["sessionID", "assistantMessageID", "finish", "cost", "tokens"],
  16249. "additionalProperties": false
  16250. }
  16251. },
  16252. "required": ["id", "created", "type", "durable", "data"],
  16253. "additionalProperties": false
  16254. },
  16255. "session.step.failed": {
  16256. "type": "object",
  16257. "properties": {
  16258. "id": {
  16259. "type": "string",
  16260. "allOf": [
  16261. {
  16262. "pattern": "^evt_"
  16263. }
  16264. ]
  16265. },
  16266. "created": {
  16267. "type": "number"
  16268. },
  16269. "metadata": {
  16270. "type": "object"
  16271. },
  16272. "type": {
  16273. "type": "string",
  16274. "enum": ["session.step.failed"]
  16275. },
  16276. "durable": {
  16277. "type": "object",
  16278. "properties": {
  16279. "aggregateID": {
  16280. "type": "string"
  16281. },
  16282. "seq": {
  16283. "type": "integer",
  16284. "allOf": [
  16285. {
  16286. "minimum": 0
  16287. }
  16288. ]
  16289. },
  16290. "version": {
  16291. "type": "number",
  16292. "enum": [1]
  16293. }
  16294. },
  16295. "required": ["aggregateID", "seq", "version"],
  16296. "additionalProperties": false
  16297. },
  16298. "location": {
  16299. "$ref": "#/components/schemas/Location.Ref"
  16300. },
  16301. "data": {
  16302. "type": "object",
  16303. "properties": {
  16304. "sessionID": {
  16305. "type": "string",
  16306. "allOf": [
  16307. {
  16308. "pattern": "^ses"
  16309. }
  16310. ]
  16311. },
  16312. "assistantMessageID": {
  16313. "type": "string",
  16314. "allOf": [
  16315. {
  16316. "pattern": "^msg_"
  16317. }
  16318. ]
  16319. },
  16320. "error": {
  16321. "$ref": "#/components/schemas/Session.StructuredError"
  16322. },
  16323. "cost": {
  16324. "$ref": "#/components/schemas/Money.USD"
  16325. },
  16326. "tokens": {
  16327. "$ref": "#/components/schemas/TokenUsage.Info"
  16328. },
  16329. "snapshot": {
  16330. "type": "string"
  16331. },
  16332. "files": {
  16333. "type": "array",
  16334. "items": {
  16335. "type": "string"
  16336. }
  16337. }
  16338. },
  16339. "required": ["sessionID", "assistantMessageID", "error"],
  16340. "additionalProperties": false
  16341. }
  16342. },
  16343. "required": ["id", "created", "type", "durable", "data"],
  16344. "additionalProperties": false
  16345. },
  16346. "session.text.started": {
  16347. "type": "object",
  16348. "properties": {
  16349. "id": {
  16350. "type": "string",
  16351. "allOf": [
  16352. {
  16353. "pattern": "^evt_"
  16354. }
  16355. ]
  16356. },
  16357. "created": {
  16358. "type": "number"
  16359. },
  16360. "metadata": {
  16361. "type": "object"
  16362. },
  16363. "type": {
  16364. "type": "string",
  16365. "enum": ["session.text.started"]
  16366. },
  16367. "durable": {
  16368. "type": "object",
  16369. "properties": {
  16370. "aggregateID": {
  16371. "type": "string"
  16372. },
  16373. "seq": {
  16374. "type": "integer",
  16375. "allOf": [
  16376. {
  16377. "minimum": 0
  16378. }
  16379. ]
  16380. },
  16381. "version": {
  16382. "type": "number",
  16383. "enum": [1]
  16384. }
  16385. },
  16386. "required": ["aggregateID", "seq", "version"],
  16387. "additionalProperties": false
  16388. },
  16389. "location": {
  16390. "$ref": "#/components/schemas/Location.Ref"
  16391. },
  16392. "data": {
  16393. "type": "object",
  16394. "properties": {
  16395. "sessionID": {
  16396. "type": "string",
  16397. "allOf": [
  16398. {
  16399. "pattern": "^ses"
  16400. }
  16401. ]
  16402. },
  16403. "assistantMessageID": {
  16404. "type": "string",
  16405. "allOf": [
  16406. {
  16407. "pattern": "^msg_"
  16408. }
  16409. ]
  16410. },
  16411. "ordinal": {
  16412. "type": "integer",
  16413. "allOf": [
  16414. {
  16415. "minimum": 0
  16416. }
  16417. ]
  16418. }
  16419. },
  16420. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16421. "additionalProperties": false
  16422. }
  16423. },
  16424. "required": ["id", "created", "type", "durable", "data"],
  16425. "additionalProperties": false
  16426. },
  16427. "Session.Message.ProviderState4": {
  16428. "type": "object"
  16429. },
  16430. "session.text.ended": {
  16431. "type": "object",
  16432. "properties": {
  16433. "id": {
  16434. "type": "string",
  16435. "allOf": [
  16436. {
  16437. "pattern": "^evt_"
  16438. }
  16439. ]
  16440. },
  16441. "created": {
  16442. "type": "number"
  16443. },
  16444. "metadata": {
  16445. "type": "object"
  16446. },
  16447. "type": {
  16448. "type": "string",
  16449. "enum": ["session.text.ended"]
  16450. },
  16451. "durable": {
  16452. "type": "object",
  16453. "properties": {
  16454. "aggregateID": {
  16455. "type": "string"
  16456. },
  16457. "seq": {
  16458. "type": "integer",
  16459. "allOf": [
  16460. {
  16461. "minimum": 0
  16462. }
  16463. ]
  16464. },
  16465. "version": {
  16466. "type": "number",
  16467. "enum": [1]
  16468. }
  16469. },
  16470. "required": ["aggregateID", "seq", "version"],
  16471. "additionalProperties": false
  16472. },
  16473. "location": {
  16474. "$ref": "#/components/schemas/Location.Ref"
  16475. },
  16476. "data": {
  16477. "type": "object",
  16478. "properties": {
  16479. "sessionID": {
  16480. "type": "string",
  16481. "allOf": [
  16482. {
  16483. "pattern": "^ses"
  16484. }
  16485. ]
  16486. },
  16487. "assistantMessageID": {
  16488. "type": "string",
  16489. "allOf": [
  16490. {
  16491. "pattern": "^msg_"
  16492. }
  16493. ]
  16494. },
  16495. "ordinal": {
  16496. "type": "integer",
  16497. "allOf": [
  16498. {
  16499. "minimum": 0
  16500. }
  16501. ]
  16502. },
  16503. "text": {
  16504. "type": "string"
  16505. },
  16506. "state": {
  16507. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  16508. }
  16509. },
  16510. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16511. "additionalProperties": false
  16512. }
  16513. },
  16514. "required": ["id", "created", "type", "durable", "data"],
  16515. "additionalProperties": false
  16516. },
  16517. "Session.Message.ProviderState5": {
  16518. "type": "object"
  16519. },
  16520. "session.reasoning.started": {
  16521. "type": "object",
  16522. "properties": {
  16523. "id": {
  16524. "type": "string",
  16525. "allOf": [
  16526. {
  16527. "pattern": "^evt_"
  16528. }
  16529. ]
  16530. },
  16531. "created": {
  16532. "type": "number"
  16533. },
  16534. "metadata": {
  16535. "type": "object"
  16536. },
  16537. "type": {
  16538. "type": "string",
  16539. "enum": ["session.reasoning.started"]
  16540. },
  16541. "durable": {
  16542. "type": "object",
  16543. "properties": {
  16544. "aggregateID": {
  16545. "type": "string"
  16546. },
  16547. "seq": {
  16548. "type": "integer",
  16549. "allOf": [
  16550. {
  16551. "minimum": 0
  16552. }
  16553. ]
  16554. },
  16555. "version": {
  16556. "type": "number",
  16557. "enum": [1]
  16558. }
  16559. },
  16560. "required": ["aggregateID", "seq", "version"],
  16561. "additionalProperties": false
  16562. },
  16563. "location": {
  16564. "$ref": "#/components/schemas/Location.Ref"
  16565. },
  16566. "data": {
  16567. "type": "object",
  16568. "properties": {
  16569. "sessionID": {
  16570. "type": "string",
  16571. "allOf": [
  16572. {
  16573. "pattern": "^ses"
  16574. }
  16575. ]
  16576. },
  16577. "assistantMessageID": {
  16578. "type": "string",
  16579. "allOf": [
  16580. {
  16581. "pattern": "^msg_"
  16582. }
  16583. ]
  16584. },
  16585. "ordinal": {
  16586. "type": "integer",
  16587. "allOf": [
  16588. {
  16589. "minimum": 0
  16590. }
  16591. ]
  16592. },
  16593. "state": {
  16594. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  16595. }
  16596. },
  16597. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16598. "additionalProperties": false
  16599. }
  16600. },
  16601. "required": ["id", "created", "type", "durable", "data"],
  16602. "additionalProperties": false
  16603. },
  16604. "Session.Message.ProviderState6": {
  16605. "type": "object"
  16606. },
  16607. "session.reasoning.ended": {
  16608. "type": "object",
  16609. "properties": {
  16610. "id": {
  16611. "type": "string",
  16612. "allOf": [
  16613. {
  16614. "pattern": "^evt_"
  16615. }
  16616. ]
  16617. },
  16618. "created": {
  16619. "type": "number"
  16620. },
  16621. "metadata": {
  16622. "type": "object"
  16623. },
  16624. "type": {
  16625. "type": "string",
  16626. "enum": ["session.reasoning.ended"]
  16627. },
  16628. "durable": {
  16629. "type": "object",
  16630. "properties": {
  16631. "aggregateID": {
  16632. "type": "string"
  16633. },
  16634. "seq": {
  16635. "type": "integer",
  16636. "allOf": [
  16637. {
  16638. "minimum": 0
  16639. }
  16640. ]
  16641. },
  16642. "version": {
  16643. "type": "number",
  16644. "enum": [1]
  16645. }
  16646. },
  16647. "required": ["aggregateID", "seq", "version"],
  16648. "additionalProperties": false
  16649. },
  16650. "location": {
  16651. "$ref": "#/components/schemas/Location.Ref"
  16652. },
  16653. "data": {
  16654. "type": "object",
  16655. "properties": {
  16656. "sessionID": {
  16657. "type": "string",
  16658. "allOf": [
  16659. {
  16660. "pattern": "^ses"
  16661. }
  16662. ]
  16663. },
  16664. "assistantMessageID": {
  16665. "type": "string",
  16666. "allOf": [
  16667. {
  16668. "pattern": "^msg_"
  16669. }
  16670. ]
  16671. },
  16672. "ordinal": {
  16673. "type": "integer",
  16674. "allOf": [
  16675. {
  16676. "minimum": 0
  16677. }
  16678. ]
  16679. },
  16680. "text": {
  16681. "type": "string"
  16682. },
  16683. "state": {
  16684. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  16685. }
  16686. },
  16687. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16688. "additionalProperties": false
  16689. }
  16690. },
  16691. "required": ["id", "created", "type", "durable", "data"],
  16692. "additionalProperties": false
  16693. },
  16694. "session.tool.input.started": {
  16695. "type": "object",
  16696. "properties": {
  16697. "id": {
  16698. "type": "string",
  16699. "allOf": [
  16700. {
  16701. "pattern": "^evt_"
  16702. }
  16703. ]
  16704. },
  16705. "created": {
  16706. "type": "number"
  16707. },
  16708. "metadata": {
  16709. "type": "object"
  16710. },
  16711. "type": {
  16712. "type": "string",
  16713. "enum": ["session.tool.input.started"]
  16714. },
  16715. "durable": {
  16716. "type": "object",
  16717. "properties": {
  16718. "aggregateID": {
  16719. "type": "string"
  16720. },
  16721. "seq": {
  16722. "type": "integer",
  16723. "allOf": [
  16724. {
  16725. "minimum": 0
  16726. }
  16727. ]
  16728. },
  16729. "version": {
  16730. "type": "number",
  16731. "enum": [1]
  16732. }
  16733. },
  16734. "required": ["aggregateID", "seq", "version"],
  16735. "additionalProperties": false
  16736. },
  16737. "location": {
  16738. "$ref": "#/components/schemas/Location.Ref"
  16739. },
  16740. "data": {
  16741. "type": "object",
  16742. "properties": {
  16743. "sessionID": {
  16744. "type": "string",
  16745. "allOf": [
  16746. {
  16747. "pattern": "^ses"
  16748. }
  16749. ]
  16750. },
  16751. "assistantMessageID": {
  16752. "type": "string",
  16753. "allOf": [
  16754. {
  16755. "pattern": "^msg_"
  16756. }
  16757. ]
  16758. },
  16759. "id": {
  16760. "type": "string"
  16761. },
  16762. "name": {
  16763. "type": "string"
  16764. }
  16765. },
  16766. "required": ["sessionID", "assistantMessageID", "id", "name"],
  16767. "additionalProperties": false
  16768. }
  16769. },
  16770. "required": ["id", "created", "type", "durable", "data"],
  16771. "additionalProperties": false
  16772. },
  16773. "session.tool.input.ended": {
  16774. "type": "object",
  16775. "properties": {
  16776. "id": {
  16777. "type": "string",
  16778. "allOf": [
  16779. {
  16780. "pattern": "^evt_"
  16781. }
  16782. ]
  16783. },
  16784. "created": {
  16785. "type": "number"
  16786. },
  16787. "metadata": {
  16788. "type": "object"
  16789. },
  16790. "type": {
  16791. "type": "string",
  16792. "enum": ["session.tool.input.ended"]
  16793. },
  16794. "durable": {
  16795. "type": "object",
  16796. "properties": {
  16797. "aggregateID": {
  16798. "type": "string"
  16799. },
  16800. "seq": {
  16801. "type": "integer",
  16802. "allOf": [
  16803. {
  16804. "minimum": 0
  16805. }
  16806. ]
  16807. },
  16808. "version": {
  16809. "type": "number",
  16810. "enum": [1]
  16811. }
  16812. },
  16813. "required": ["aggregateID", "seq", "version"],
  16814. "additionalProperties": false
  16815. },
  16816. "location": {
  16817. "$ref": "#/components/schemas/Location.Ref"
  16818. },
  16819. "data": {
  16820. "type": "object",
  16821. "properties": {
  16822. "sessionID": {
  16823. "type": "string",
  16824. "allOf": [
  16825. {
  16826. "pattern": "^ses"
  16827. }
  16828. ]
  16829. },
  16830. "assistantMessageID": {
  16831. "type": "string",
  16832. "allOf": [
  16833. {
  16834. "pattern": "^msg_"
  16835. }
  16836. ]
  16837. },
  16838. "id": {
  16839. "type": "string"
  16840. },
  16841. "text": {
  16842. "type": "string"
  16843. }
  16844. },
  16845. "required": ["sessionID", "assistantMessageID", "id", "text"],
  16846. "additionalProperties": false
  16847. }
  16848. },
  16849. "required": ["id", "created", "type", "durable", "data"],
  16850. "additionalProperties": false
  16851. },
  16852. "Session.Message.ProviderState7": {
  16853. "type": "object"
  16854. },
  16855. "session.tool.called": {
  16856. "type": "object",
  16857. "properties": {
  16858. "id": {
  16859. "type": "string",
  16860. "allOf": [
  16861. {
  16862. "pattern": "^evt_"
  16863. }
  16864. ]
  16865. },
  16866. "created": {
  16867. "type": "number"
  16868. },
  16869. "metadata": {
  16870. "type": "object"
  16871. },
  16872. "type": {
  16873. "type": "string",
  16874. "enum": ["session.tool.called"]
  16875. },
  16876. "durable": {
  16877. "type": "object",
  16878. "properties": {
  16879. "aggregateID": {
  16880. "type": "string"
  16881. },
  16882. "seq": {
  16883. "type": "integer",
  16884. "allOf": [
  16885. {
  16886. "minimum": 0
  16887. }
  16888. ]
  16889. },
  16890. "version": {
  16891. "type": "number",
  16892. "enum": [1]
  16893. }
  16894. },
  16895. "required": ["aggregateID", "seq", "version"],
  16896. "additionalProperties": false
  16897. },
  16898. "location": {
  16899. "$ref": "#/components/schemas/Location.Ref"
  16900. },
  16901. "data": {
  16902. "type": "object",
  16903. "properties": {
  16904. "sessionID": {
  16905. "type": "string",
  16906. "allOf": [
  16907. {
  16908. "pattern": "^ses"
  16909. }
  16910. ]
  16911. },
  16912. "assistantMessageID": {
  16913. "type": "string",
  16914. "allOf": [
  16915. {
  16916. "pattern": "^msg_"
  16917. }
  16918. ]
  16919. },
  16920. "id": {
  16921. "type": "string"
  16922. },
  16923. "input": {
  16924. "type": "object"
  16925. },
  16926. "executed": {
  16927. "type": "boolean"
  16928. },
  16929. "state": {
  16930. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  16931. }
  16932. },
  16933. "required": ["sessionID", "assistantMessageID", "id", "input", "executed"],
  16934. "additionalProperties": false
  16935. }
  16936. },
  16937. "required": ["id", "created", "type", "durable", "data"],
  16938. "additionalProperties": false
  16939. },
  16940. "Tool.FileContent1": {
  16941. "type": "object",
  16942. "properties": {
  16943. "type": {
  16944. "type": "string",
  16945. "enum": ["file"]
  16946. },
  16947. "uri": {
  16948. "type": "string"
  16949. },
  16950. "mime": {
  16951. "type": "string"
  16952. },
  16953. "name": {
  16954. "anyOf": [
  16955. {
  16956. "type": "string"
  16957. },
  16958. {
  16959. "type": "null"
  16960. }
  16961. ]
  16962. }
  16963. },
  16964. "required": ["type", "uri", "mime"],
  16965. "additionalProperties": false
  16966. },
  16967. "Tool.Content1": {
  16968. "anyOf": [
  16969. {
  16970. "$ref": "#/components/schemas/Tool.TextContent"
  16971. },
  16972. {
  16973. "$ref": "#/components/schemas/Tool.FileContent1"
  16974. }
  16975. ]
  16976. },
  16977. "Session.Message.ProviderState8": {
  16978. "type": "object"
  16979. },
  16980. "session.tool.success": {
  16981. "type": "object",
  16982. "properties": {
  16983. "id": {
  16984. "type": "string",
  16985. "allOf": [
  16986. {
  16987. "pattern": "^evt_"
  16988. }
  16989. ]
  16990. },
  16991. "created": {
  16992. "type": "number"
  16993. },
  16994. "metadata": {
  16995. "type": "object"
  16996. },
  16997. "type": {
  16998. "type": "string",
  16999. "enum": ["session.tool.success"]
  17000. },
  17001. "durable": {
  17002. "type": "object",
  17003. "properties": {
  17004. "aggregateID": {
  17005. "type": "string"
  17006. },
  17007. "seq": {
  17008. "type": "integer",
  17009. "allOf": [
  17010. {
  17011. "minimum": 0
  17012. }
  17013. ]
  17014. },
  17015. "version": {
  17016. "type": "number",
  17017. "enum": [2]
  17018. }
  17019. },
  17020. "required": ["aggregateID", "seq", "version"],
  17021. "additionalProperties": false
  17022. },
  17023. "location": {
  17024. "$ref": "#/components/schemas/Location.Ref"
  17025. },
  17026. "data": {
  17027. "type": "object",
  17028. "properties": {
  17029. "sessionID": {
  17030. "type": "string",
  17031. "allOf": [
  17032. {
  17033. "pattern": "^ses"
  17034. }
  17035. ]
  17036. },
  17037. "assistantMessageID": {
  17038. "type": "string",
  17039. "allOf": [
  17040. {
  17041. "pattern": "^msg_"
  17042. }
  17043. ]
  17044. },
  17045. "id": {
  17046. "type": "string"
  17047. },
  17048. "content": {
  17049. "type": "array",
  17050. "prefixItems": [
  17051. {
  17052. "$ref": "#/components/schemas/Tool.Content1"
  17053. }
  17054. ],
  17055. "minItems": 1,
  17056. "items": {
  17057. "$ref": "#/components/schemas/Tool.Content1"
  17058. }
  17059. },
  17060. "metadata": {
  17061. "type": "object"
  17062. },
  17063. "executed": {
  17064. "type": "boolean"
  17065. },
  17066. "resultState": {
  17067. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  17068. }
  17069. },
  17070. "required": ["sessionID", "assistantMessageID", "id", "content", "executed"],
  17071. "additionalProperties": false
  17072. }
  17073. },
  17074. "required": ["id", "created", "type", "durable", "data"],
  17075. "additionalProperties": false
  17076. },
  17077. "Session.Message.ProviderState9": {
  17078. "type": "object"
  17079. },
  17080. "session.tool.failed": {
  17081. "type": "object",
  17082. "properties": {
  17083. "id": {
  17084. "type": "string",
  17085. "allOf": [
  17086. {
  17087. "pattern": "^evt_"
  17088. }
  17089. ]
  17090. },
  17091. "created": {
  17092. "type": "number"
  17093. },
  17094. "metadata": {
  17095. "type": "object"
  17096. },
  17097. "type": {
  17098. "type": "string",
  17099. "enum": ["session.tool.failed"]
  17100. },
  17101. "durable": {
  17102. "type": "object",
  17103. "properties": {
  17104. "aggregateID": {
  17105. "type": "string"
  17106. },
  17107. "seq": {
  17108. "type": "integer",
  17109. "allOf": [
  17110. {
  17111. "minimum": 0
  17112. }
  17113. ]
  17114. },
  17115. "version": {
  17116. "type": "number",
  17117. "enum": [2]
  17118. }
  17119. },
  17120. "required": ["aggregateID", "seq", "version"],
  17121. "additionalProperties": false
  17122. },
  17123. "location": {
  17124. "$ref": "#/components/schemas/Location.Ref"
  17125. },
  17126. "data": {
  17127. "type": "object",
  17128. "properties": {
  17129. "sessionID": {
  17130. "type": "string",
  17131. "allOf": [
  17132. {
  17133. "pattern": "^ses"
  17134. }
  17135. ]
  17136. },
  17137. "assistantMessageID": {
  17138. "type": "string",
  17139. "allOf": [
  17140. {
  17141. "pattern": "^msg_"
  17142. }
  17143. ]
  17144. },
  17145. "id": {
  17146. "type": "string"
  17147. },
  17148. "error": {
  17149. "$ref": "#/components/schemas/Session.StructuredError"
  17150. },
  17151. "content": {
  17152. "type": "array",
  17153. "prefixItems": [
  17154. {
  17155. "$ref": "#/components/schemas/Tool.Content1"
  17156. }
  17157. ],
  17158. "minItems": 1,
  17159. "items": {
  17160. "$ref": "#/components/schemas/Tool.Content1"
  17161. }
  17162. },
  17163. "metadata": {
  17164. "type": "object"
  17165. },
  17166. "executed": {
  17167. "type": "boolean"
  17168. },
  17169. "resultState": {
  17170. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  17171. }
  17172. },
  17173. "required": ["sessionID", "assistantMessageID", "id", "error", "executed"],
  17174. "additionalProperties": false
  17175. }
  17176. },
  17177. "required": ["id", "created", "type", "durable", "data"],
  17178. "additionalProperties": false
  17179. },
  17180. "session.retry.scheduled": {
  17181. "type": "object",
  17182. "properties": {
  17183. "id": {
  17184. "type": "string",
  17185. "allOf": [
  17186. {
  17187. "pattern": "^evt_"
  17188. }
  17189. ]
  17190. },
  17191. "created": {
  17192. "type": "number"
  17193. },
  17194. "metadata": {
  17195. "type": "object"
  17196. },
  17197. "type": {
  17198. "type": "string",
  17199. "enum": ["session.retry.scheduled"]
  17200. },
  17201. "durable": {
  17202. "type": "object",
  17203. "properties": {
  17204. "aggregateID": {
  17205. "type": "string"
  17206. },
  17207. "seq": {
  17208. "type": "integer",
  17209. "allOf": [
  17210. {
  17211. "minimum": 0
  17212. }
  17213. ]
  17214. },
  17215. "version": {
  17216. "type": "number",
  17217. "enum": [1]
  17218. }
  17219. },
  17220. "required": ["aggregateID", "seq", "version"],
  17221. "additionalProperties": false
  17222. },
  17223. "location": {
  17224. "$ref": "#/components/schemas/Location.Ref"
  17225. },
  17226. "data": {
  17227. "type": "object",
  17228. "properties": {
  17229. "sessionID": {
  17230. "type": "string",
  17231. "allOf": [
  17232. {
  17233. "pattern": "^ses"
  17234. }
  17235. ]
  17236. },
  17237. "assistantMessageID": {
  17238. "type": "string",
  17239. "allOf": [
  17240. {
  17241. "pattern": "^msg_"
  17242. }
  17243. ]
  17244. },
  17245. "attempt": {
  17246. "type": "integer",
  17247. "allOf": [
  17248. {
  17249. "exclusiveMinimum": 0
  17250. }
  17251. ]
  17252. },
  17253. "at": {
  17254. "type": "integer",
  17255. "allOf": [
  17256. {
  17257. "minimum": 0
  17258. }
  17259. ]
  17260. },
  17261. "error": {
  17262. "$ref": "#/components/schemas/Session.StructuredError"
  17263. }
  17264. },
  17265. "required": ["sessionID", "assistantMessageID", "attempt", "at", "error"],
  17266. "additionalProperties": false
  17267. }
  17268. },
  17269. "required": ["id", "created", "type", "durable", "data"],
  17270. "additionalProperties": false
  17271. },
  17272. "session.compaction.started": {
  17273. "type": "object",
  17274. "properties": {
  17275. "id": {
  17276. "type": "string",
  17277. "allOf": [
  17278. {
  17279. "pattern": "^evt_"
  17280. }
  17281. ]
  17282. },
  17283. "created": {
  17284. "type": "number"
  17285. },
  17286. "metadata": {
  17287. "type": "object"
  17288. },
  17289. "type": {
  17290. "type": "string",
  17291. "enum": ["session.compaction.started"]
  17292. },
  17293. "durable": {
  17294. "type": "object",
  17295. "properties": {
  17296. "aggregateID": {
  17297. "type": "string"
  17298. },
  17299. "seq": {
  17300. "type": "integer",
  17301. "allOf": [
  17302. {
  17303. "minimum": 0
  17304. }
  17305. ]
  17306. },
  17307. "version": {
  17308. "type": "number",
  17309. "enum": [1]
  17310. }
  17311. },
  17312. "required": ["aggregateID", "seq", "version"],
  17313. "additionalProperties": false
  17314. },
  17315. "location": {
  17316. "$ref": "#/components/schemas/Location.Ref"
  17317. },
  17318. "data": {
  17319. "type": "object",
  17320. "properties": {
  17321. "sessionID": {
  17322. "type": "string",
  17323. "allOf": [
  17324. {
  17325. "pattern": "^ses"
  17326. }
  17327. ]
  17328. },
  17329. "reason": {
  17330. "type": "string",
  17331. "enum": ["auto", "manual"]
  17332. },
  17333. "recent": {
  17334. "type": "string"
  17335. },
  17336. "inputID": {
  17337. "type": "string",
  17338. "allOf": [
  17339. {
  17340. "pattern": "^msg_"
  17341. }
  17342. ]
  17343. }
  17344. },
  17345. "required": ["sessionID", "reason", "recent"],
  17346. "additionalProperties": false
  17347. }
  17348. },
  17349. "required": ["id", "created", "type", "durable", "data"],
  17350. "additionalProperties": false
  17351. },
  17352. "session.compaction.ended": {
  17353. "type": "object",
  17354. "properties": {
  17355. "id": {
  17356. "type": "string",
  17357. "allOf": [
  17358. {
  17359. "pattern": "^evt_"
  17360. }
  17361. ]
  17362. },
  17363. "created": {
  17364. "type": "number"
  17365. },
  17366. "metadata": {
  17367. "type": "object"
  17368. },
  17369. "type": {
  17370. "type": "string",
  17371. "enum": ["session.compaction.ended"]
  17372. },
  17373. "durable": {
  17374. "type": "object",
  17375. "properties": {
  17376. "aggregateID": {
  17377. "type": "string"
  17378. },
  17379. "seq": {
  17380. "type": "integer",
  17381. "allOf": [
  17382. {
  17383. "minimum": 0
  17384. }
  17385. ]
  17386. },
  17387. "version": {
  17388. "type": "number",
  17389. "enum": [1]
  17390. }
  17391. },
  17392. "required": ["aggregateID", "seq", "version"],
  17393. "additionalProperties": false
  17394. },
  17395. "location": {
  17396. "$ref": "#/components/schemas/Location.Ref"
  17397. },
  17398. "data": {
  17399. "type": "object",
  17400. "properties": {
  17401. "sessionID": {
  17402. "type": "string",
  17403. "allOf": [
  17404. {
  17405. "pattern": "^ses"
  17406. }
  17407. ]
  17408. },
  17409. "reason": {
  17410. "type": "string",
  17411. "enum": ["auto", "manual"]
  17412. },
  17413. "text": {
  17414. "type": "string"
  17415. },
  17416. "recent": {
  17417. "type": "string"
  17418. }
  17419. },
  17420. "required": ["sessionID", "reason", "text", "recent"],
  17421. "additionalProperties": false
  17422. }
  17423. },
  17424. "required": ["id", "created", "type", "durable", "data"],
  17425. "additionalProperties": false
  17426. },
  17427. "session.compaction.failed": {
  17428. "type": "object",
  17429. "properties": {
  17430. "id": {
  17431. "type": "string",
  17432. "allOf": [
  17433. {
  17434. "pattern": "^evt_"
  17435. }
  17436. ]
  17437. },
  17438. "created": {
  17439. "type": "number"
  17440. },
  17441. "metadata": {
  17442. "type": "object"
  17443. },
  17444. "type": {
  17445. "type": "string",
  17446. "enum": ["session.compaction.failed"]
  17447. },
  17448. "durable": {
  17449. "type": "object",
  17450. "properties": {
  17451. "aggregateID": {
  17452. "type": "string"
  17453. },
  17454. "seq": {
  17455. "type": "integer",
  17456. "allOf": [
  17457. {
  17458. "minimum": 0
  17459. }
  17460. ]
  17461. },
  17462. "version": {
  17463. "type": "number",
  17464. "enum": [1]
  17465. }
  17466. },
  17467. "required": ["aggregateID", "seq", "version"],
  17468. "additionalProperties": false
  17469. },
  17470. "location": {
  17471. "$ref": "#/components/schemas/Location.Ref"
  17472. },
  17473. "data": {
  17474. "type": "object",
  17475. "properties": {
  17476. "sessionID": {
  17477. "type": "string",
  17478. "allOf": [
  17479. {
  17480. "pattern": "^ses"
  17481. }
  17482. ]
  17483. },
  17484. "reason": {
  17485. "type": "string",
  17486. "enum": ["auto", "manual"]
  17487. },
  17488. "error": {
  17489. "$ref": "#/components/schemas/Session.StructuredError"
  17490. },
  17491. "inputID": {
  17492. "type": "string",
  17493. "allOf": [
  17494. {
  17495. "pattern": "^msg_"
  17496. }
  17497. ]
  17498. }
  17499. },
  17500. "required": ["sessionID", "reason", "error"],
  17501. "additionalProperties": false
  17502. }
  17503. },
  17504. "required": ["id", "created", "type", "durable", "data"],
  17505. "additionalProperties": false
  17506. },
  17507. "session.revert.staged": {
  17508. "type": "object",
  17509. "properties": {
  17510. "id": {
  17511. "type": "string",
  17512. "allOf": [
  17513. {
  17514. "pattern": "^evt_"
  17515. }
  17516. ]
  17517. },
  17518. "created": {
  17519. "type": "number"
  17520. },
  17521. "metadata": {
  17522. "type": "object"
  17523. },
  17524. "type": {
  17525. "type": "string",
  17526. "enum": ["session.revert.staged"]
  17527. },
  17528. "durable": {
  17529. "type": "object",
  17530. "properties": {
  17531. "aggregateID": {
  17532. "type": "string"
  17533. },
  17534. "seq": {
  17535. "type": "integer",
  17536. "allOf": [
  17537. {
  17538. "minimum": 0
  17539. }
  17540. ]
  17541. },
  17542. "version": {
  17543. "type": "number",
  17544. "enum": [1]
  17545. }
  17546. },
  17547. "required": ["aggregateID", "seq", "version"],
  17548. "additionalProperties": false
  17549. },
  17550. "location": {
  17551. "$ref": "#/components/schemas/Location.Ref"
  17552. },
  17553. "data": {
  17554. "type": "object",
  17555. "properties": {
  17556. "sessionID": {
  17557. "type": "string",
  17558. "allOf": [
  17559. {
  17560. "pattern": "^ses"
  17561. }
  17562. ]
  17563. },
  17564. "revert": {
  17565. "$ref": "#/components/schemas/Session.Revert"
  17566. }
  17567. },
  17568. "required": ["sessionID", "revert"],
  17569. "additionalProperties": false
  17570. }
  17571. },
  17572. "required": ["id", "created", "type", "durable", "data"],
  17573. "additionalProperties": false
  17574. },
  17575. "session.revert.cleared": {
  17576. "type": "object",
  17577. "properties": {
  17578. "id": {
  17579. "type": "string",
  17580. "allOf": [
  17581. {
  17582. "pattern": "^evt_"
  17583. }
  17584. ]
  17585. },
  17586. "created": {
  17587. "type": "number"
  17588. },
  17589. "metadata": {
  17590. "type": "object"
  17591. },
  17592. "type": {
  17593. "type": "string",
  17594. "enum": ["session.revert.cleared"]
  17595. },
  17596. "durable": {
  17597. "type": "object",
  17598. "properties": {
  17599. "aggregateID": {
  17600. "type": "string"
  17601. },
  17602. "seq": {
  17603. "type": "integer",
  17604. "allOf": [
  17605. {
  17606. "minimum": 0
  17607. }
  17608. ]
  17609. },
  17610. "version": {
  17611. "type": "number",
  17612. "enum": [1]
  17613. }
  17614. },
  17615. "required": ["aggregateID", "seq", "version"],
  17616. "additionalProperties": false
  17617. },
  17618. "location": {
  17619. "$ref": "#/components/schemas/Location.Ref"
  17620. },
  17621. "data": {
  17622. "type": "object",
  17623. "properties": {
  17624. "sessionID": {
  17625. "type": "string",
  17626. "allOf": [
  17627. {
  17628. "pattern": "^ses"
  17629. }
  17630. ]
  17631. }
  17632. },
  17633. "required": ["sessionID"],
  17634. "additionalProperties": false
  17635. }
  17636. },
  17637. "required": ["id", "created", "type", "durable", "data"],
  17638. "additionalProperties": false
  17639. },
  17640. "session.revert.committed": {
  17641. "type": "object",
  17642. "properties": {
  17643. "id": {
  17644. "type": "string",
  17645. "allOf": [
  17646. {
  17647. "pattern": "^evt_"
  17648. }
  17649. ]
  17650. },
  17651. "created": {
  17652. "type": "number"
  17653. },
  17654. "metadata": {
  17655. "type": "object"
  17656. },
  17657. "type": {
  17658. "type": "string",
  17659. "enum": ["session.revert.committed"]
  17660. },
  17661. "durable": {
  17662. "type": "object",
  17663. "properties": {
  17664. "aggregateID": {
  17665. "type": "string"
  17666. },
  17667. "seq": {
  17668. "type": "integer",
  17669. "allOf": [
  17670. {
  17671. "minimum": 0
  17672. }
  17673. ]
  17674. },
  17675. "version": {
  17676. "type": "number",
  17677. "enum": [1]
  17678. }
  17679. },
  17680. "required": ["aggregateID", "seq", "version"],
  17681. "additionalProperties": false
  17682. },
  17683. "location": {
  17684. "$ref": "#/components/schemas/Location.Ref"
  17685. },
  17686. "data": {
  17687. "type": "object",
  17688. "properties": {
  17689. "sessionID": {
  17690. "type": "string",
  17691. "allOf": [
  17692. {
  17693. "pattern": "^ses"
  17694. }
  17695. ]
  17696. },
  17697. "to": {
  17698. "type": "string",
  17699. "allOf": [
  17700. {
  17701. "pattern": "^msg_"
  17702. }
  17703. ]
  17704. }
  17705. },
  17706. "required": ["sessionID", "to"],
  17707. "additionalProperties": false
  17708. }
  17709. },
  17710. "required": ["id", "created", "type", "durable", "data"],
  17711. "additionalProperties": false
  17712. },
  17713. "session.usage.recorded": {
  17714. "type": "object",
  17715. "properties": {
  17716. "id": {
  17717. "type": "string",
  17718. "allOf": [
  17719. {
  17720. "pattern": "^evt_"
  17721. }
  17722. ]
  17723. },
  17724. "created": {
  17725. "type": "number"
  17726. },
  17727. "metadata": {
  17728. "type": "object"
  17729. },
  17730. "type": {
  17731. "type": "string",
  17732. "enum": ["session.usage.recorded"]
  17733. },
  17734. "durable": {
  17735. "type": "object",
  17736. "properties": {
  17737. "aggregateID": {
  17738. "type": "string"
  17739. },
  17740. "seq": {
  17741. "type": "integer",
  17742. "allOf": [
  17743. {
  17744. "minimum": 0
  17745. }
  17746. ]
  17747. },
  17748. "version": {
  17749. "type": "number",
  17750. "enum": [1]
  17751. }
  17752. },
  17753. "required": ["aggregateID", "seq", "version"],
  17754. "additionalProperties": false
  17755. },
  17756. "location": {
  17757. "$ref": "#/components/schemas/Location.Ref"
  17758. },
  17759. "data": {
  17760. "type": "object",
  17761. "properties": {
  17762. "sessionID": {
  17763. "type": "string",
  17764. "allOf": [
  17765. {
  17766. "pattern": "^ses"
  17767. }
  17768. ]
  17769. },
  17770. "source": {
  17771. "type": "string",
  17772. "enum": ["title", "compaction"]
  17773. },
  17774. "cost": {
  17775. "$ref": "#/components/schemas/Money.USD"
  17776. },
  17777. "tokens": {
  17778. "$ref": "#/components/schemas/TokenUsage.Info"
  17779. }
  17780. },
  17781. "required": ["sessionID", "source", "cost", "tokens"],
  17782. "additionalProperties": false
  17783. }
  17784. },
  17785. "required": ["id", "created", "type", "durable", "data"],
  17786. "additionalProperties": false
  17787. },
  17788. "Session.Event.Durable": {
  17789. "oneOf": [
  17790. {
  17791. "$ref": "#/components/schemas/session.created"
  17792. },
  17793. {
  17794. "$ref": "#/components/schemas/session.agent.selected"
  17795. },
  17796. {
  17797. "$ref": "#/components/schemas/session.model.selected"
  17798. },
  17799. {
  17800. "$ref": "#/components/schemas/session.moved"
  17801. },
  17802. {
  17803. "$ref": "#/components/schemas/session.renamed"
  17804. },
  17805. {
  17806. "$ref": "#/components/schemas/session.deleted"
  17807. },
  17808. {
  17809. "$ref": "#/components/schemas/session.forked"
  17810. },
  17811. {
  17812. "$ref": "#/components/schemas/session.inbox.delivered"
  17813. },
  17814. {
  17815. "$ref": "#/components/schemas/session.inbox.enqueued"
  17816. },
  17817. {
  17818. "$ref": "#/components/schemas/session.inbox.cancelled"
  17819. },
  17820. {
  17821. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  17822. },
  17823. {
  17824. "$ref": "#/components/schemas/session.execution.started"
  17825. },
  17826. {
  17827. "$ref": "#/components/schemas/session.execution.succeeded"
  17828. },
  17829. {
  17830. "$ref": "#/components/schemas/session.execution.failed"
  17831. },
  17832. {
  17833. "$ref": "#/components/schemas/session.execution.interrupted"
  17834. },
  17835. {
  17836. "$ref": "#/components/schemas/session.instructions.updated"
  17837. },
  17838. {
  17839. "$ref": "#/components/schemas/session.synthetic"
  17840. },
  17841. {
  17842. "$ref": "#/components/schemas/session.skill.activated"
  17843. },
  17844. {
  17845. "$ref": "#/components/schemas/session.shell.started"
  17846. },
  17847. {
  17848. "$ref": "#/components/schemas/session.shell.ended"
  17849. },
  17850. {
  17851. "$ref": "#/components/schemas/session.step.started"
  17852. },
  17853. {
  17854. "$ref": "#/components/schemas/session.step.ended"
  17855. },
  17856. {
  17857. "$ref": "#/components/schemas/session.step.failed"
  17858. },
  17859. {
  17860. "$ref": "#/components/schemas/session.text.started"
  17861. },
  17862. {
  17863. "$ref": "#/components/schemas/session.text.ended"
  17864. },
  17865. {
  17866. "$ref": "#/components/schemas/session.reasoning.started"
  17867. },
  17868. {
  17869. "$ref": "#/components/schemas/session.reasoning.ended"
  17870. },
  17871. {
  17872. "$ref": "#/components/schemas/session.tool.input.started"
  17873. },
  17874. {
  17875. "$ref": "#/components/schemas/session.tool.input.ended"
  17876. },
  17877. {
  17878. "$ref": "#/components/schemas/session.tool.called"
  17879. },
  17880. {
  17881. "$ref": "#/components/schemas/session.tool.success"
  17882. },
  17883. {
  17884. "$ref": "#/components/schemas/session.tool.failed"
  17885. },
  17886. {
  17887. "$ref": "#/components/schemas/session.retry.scheduled"
  17888. },
  17889. {
  17890. "$ref": "#/components/schemas/session.compaction.started"
  17891. },
  17892. {
  17893. "$ref": "#/components/schemas/session.compaction.ended"
  17894. },
  17895. {
  17896. "$ref": "#/components/schemas/session.compaction.failed"
  17897. },
  17898. {
  17899. "$ref": "#/components/schemas/session.revert.staged"
  17900. },
  17901. {
  17902. "$ref": "#/components/schemas/session.revert.cleared"
  17903. },
  17904. {
  17905. "$ref": "#/components/schemas/session.revert.committed"
  17906. },
  17907. {
  17908. "$ref": "#/components/schemas/session.usage.recorded"
  17909. }
  17910. ]
  17911. },
  17912. "EventLog.Synced": {
  17913. "type": "object",
  17914. "properties": {
  17915. "type": {
  17916. "type": "string",
  17917. "enum": ["log.synced"]
  17918. },
  17919. "aggregateID": {
  17920. "type": "string"
  17921. },
  17922. "seq": {
  17923. "type": "integer",
  17924. "allOf": [
  17925. {
  17926. "minimum": 0
  17927. }
  17928. ]
  17929. }
  17930. },
  17931. "required": ["type", "aggregateID"],
  17932. "additionalProperties": false,
  17933. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  17934. },
  17935. "SessionLogItem": {
  17936. "anyOf": [
  17937. {
  17938. "$ref": "#/components/schemas/Session.Event.Durable"
  17939. },
  17940. {
  17941. "$ref": "#/components/schemas/EventLog.Synced"
  17942. }
  17943. ]
  17944. },
  17945. "SessionLogItemJsonString": {
  17946. "type": "string",
  17947. "contentSchema": {
  17948. "$ref": "#/components/schemas/SessionLogItem"
  17949. },
  17950. "contentMediaType": "application/json"
  17951. },
  17952. "SessionMessagesResponse": {
  17953. "type": "object",
  17954. "properties": {
  17955. "data": {
  17956. "type": "array",
  17957. "items": {
  17958. "$ref": "#/components/schemas/Session.Message.Info"
  17959. }
  17960. },
  17961. "cursor": {
  17962. "type": "object",
  17963. "properties": {
  17964. "previous": {
  17965. "anyOf": [
  17966. {
  17967. "type": "string"
  17968. },
  17969. {
  17970. "type": "null"
  17971. }
  17972. ]
  17973. },
  17974. "next": {
  17975. "anyOf": [
  17976. {
  17977. "type": "string"
  17978. },
  17979. {
  17980. "type": "null"
  17981. }
  17982. ]
  17983. }
  17984. },
  17985. "additionalProperties": false
  17986. }
  17987. },
  17988. "required": ["data", "cursor"],
  17989. "additionalProperties": false
  17990. },
  17991. "Model.ReasoningField": {
  17992. "anyOf": [
  17993. {
  17994. "type": "string",
  17995. "enum": ["reasoning", "reasoning_content", "reasoning_text"]
  17996. },
  17997. {
  17998. "type": "string"
  17999. }
  18000. ]
  18001. },
  18002. "Model.MaxTokensField": {
  18003. "type": "string",
  18004. "enum": ["max_completion_tokens", "max_tokens"]
  18005. },
  18006. "Model.Compatibility": {
  18007. "type": "object",
  18008. "properties": {
  18009. "reasoningField": {
  18010. "$ref": "#/components/schemas/Model.ReasoningField"
  18011. },
  18012. "maxTokensField": {
  18013. "$ref": "#/components/schemas/Model.MaxTokensField"
  18014. },
  18015. "requireFinishReason": {
  18016. "type": "boolean"
  18017. }
  18018. },
  18019. "additionalProperties": false
  18020. },
  18021. "Model.Capabilities": {
  18022. "type": "object",
  18023. "properties": {
  18024. "tools": {
  18025. "type": "boolean"
  18026. },
  18027. "input": {
  18028. "type": "array",
  18029. "items": {
  18030. "type": "string"
  18031. }
  18032. },
  18033. "output": {
  18034. "type": "array",
  18035. "items": {
  18036. "type": "string"
  18037. }
  18038. }
  18039. },
  18040. "required": ["tools", "input", "output"],
  18041. "additionalProperties": false
  18042. },
  18043. "Model.Variant": {
  18044. "type": "object",
  18045. "properties": {
  18046. "id": {
  18047. "type": "string"
  18048. },
  18049. "settings": {
  18050. "type": "object"
  18051. },
  18052. "headers": {
  18053. "type": "object",
  18054. "additionalProperties": {
  18055. "type": "string"
  18056. }
  18057. },
  18058. "body": {
  18059. "type": "object"
  18060. }
  18061. },
  18062. "required": ["id"],
  18063. "additionalProperties": false
  18064. },
  18065. "Money.USDPerMillionTokens": {
  18066. "type": "number"
  18067. },
  18068. "Model.Cost": {
  18069. "type": "object",
  18070. "properties": {
  18071. "tier": {
  18072. "type": "object",
  18073. "properties": {
  18074. "type": {
  18075. "type": "string",
  18076. "enum": ["context"]
  18077. },
  18078. "size": {
  18079. "type": "integer"
  18080. }
  18081. },
  18082. "required": ["type", "size"],
  18083. "additionalProperties": false
  18084. },
  18085. "input": {
  18086. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18087. },
  18088. "output": {
  18089. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18090. },
  18091. "cache": {
  18092. "type": "object",
  18093. "properties": {
  18094. "read": {
  18095. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18096. },
  18097. "write": {
  18098. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18099. }
  18100. },
  18101. "required": ["read", "write"],
  18102. "additionalProperties": false
  18103. }
  18104. },
  18105. "required": ["input", "output", "cache"],
  18106. "additionalProperties": false
  18107. },
  18108. "Model.Info": {
  18109. "type": "object",
  18110. "properties": {
  18111. "id": {
  18112. "type": "string"
  18113. },
  18114. "modelID": {
  18115. "type": "string"
  18116. },
  18117. "providerID": {
  18118. "type": "string"
  18119. },
  18120. "family": {
  18121. "type": "string"
  18122. },
  18123. "name": {
  18124. "type": "string"
  18125. },
  18126. "compatibility": {
  18127. "$ref": "#/components/schemas/Model.Compatibility"
  18128. },
  18129. "package": {
  18130. "type": "string"
  18131. },
  18132. "settings": {
  18133. "type": "object"
  18134. },
  18135. "headers": {
  18136. "type": "object",
  18137. "additionalProperties": {
  18138. "type": "string"
  18139. }
  18140. },
  18141. "body": {
  18142. "type": "object"
  18143. },
  18144. "capabilities": {
  18145. "$ref": "#/components/schemas/Model.Capabilities"
  18146. },
  18147. "variants": {
  18148. "type": "array",
  18149. "items": {
  18150. "$ref": "#/components/schemas/Model.Variant"
  18151. }
  18152. },
  18153. "time": {
  18154. "type": "object",
  18155. "properties": {
  18156. "released": {
  18157. "type": "number"
  18158. }
  18159. },
  18160. "required": ["released"],
  18161. "additionalProperties": false
  18162. },
  18163. "cost": {
  18164. "type": "array",
  18165. "items": {
  18166. "$ref": "#/components/schemas/Model.Cost"
  18167. }
  18168. },
  18169. "status": {
  18170. "type": "string",
  18171. "enum": ["alpha", "beta", "deprecated", "active"]
  18172. },
  18173. "enabled": {
  18174. "type": "boolean"
  18175. },
  18176. "limit": {
  18177. "type": "object",
  18178. "properties": {
  18179. "context": {
  18180. "type": "integer"
  18181. },
  18182. "input": {
  18183. "type": "integer"
  18184. },
  18185. "output": {
  18186. "type": "integer"
  18187. }
  18188. },
  18189. "required": ["context", "output"],
  18190. "additionalProperties": false
  18191. }
  18192. },
  18193. "required": [
  18194. "id",
  18195. "modelID",
  18196. "providerID",
  18197. "name",
  18198. "capabilities",
  18199. "variants",
  18200. "time",
  18201. "cost",
  18202. "status",
  18203. "enabled",
  18204. "limit"
  18205. ],
  18206. "additionalProperties": false
  18207. },
  18208. "GenerateTextResponse": {
  18209. "type": "object",
  18210. "properties": {
  18211. "data": {
  18212. "type": "object",
  18213. "properties": {
  18214. "text": {
  18215. "type": "string"
  18216. }
  18217. },
  18218. "required": ["text"],
  18219. "additionalProperties": false
  18220. }
  18221. },
  18222. "required": ["data"],
  18223. "additionalProperties": false
  18224. },
  18225. "Provider.Info": {
  18226. "type": "object",
  18227. "properties": {
  18228. "id": {
  18229. "type": "string"
  18230. },
  18231. "integrationID": {
  18232. "type": "string"
  18233. },
  18234. "name": {
  18235. "type": "string"
  18236. },
  18237. "disabled": {
  18238. "type": "boolean"
  18239. },
  18240. "package": {
  18241. "type": "string"
  18242. },
  18243. "settings": {
  18244. "type": "object"
  18245. },
  18246. "headers": {
  18247. "type": "object",
  18248. "additionalProperties": {
  18249. "type": "string"
  18250. }
  18251. },
  18252. "body": {
  18253. "type": "object"
  18254. }
  18255. },
  18256. "required": ["id", "name", "package"],
  18257. "additionalProperties": false
  18258. },
  18259. "ProviderNotFoundError": {
  18260. "type": "object",
  18261. "properties": {
  18262. "_tag": {
  18263. "type": "string",
  18264. "enum": ["ProviderNotFoundError"]
  18265. },
  18266. "providerID": {
  18267. "type": "string"
  18268. },
  18269. "message": {
  18270. "type": "string"
  18271. }
  18272. },
  18273. "required": ["_tag", "providerID", "message"],
  18274. "additionalProperties": false
  18275. },
  18276. "Form.When": {
  18277. "type": "object",
  18278. "properties": {
  18279. "key": {
  18280. "type": "string"
  18281. },
  18282. "op": {
  18283. "type": "string",
  18284. "enum": ["eq", "neq"]
  18285. },
  18286. "value": {
  18287. "anyOf": [
  18288. {
  18289. "type": "string"
  18290. },
  18291. {
  18292. "anyOf": [
  18293. {
  18294. "anyOf": [
  18295. {
  18296. "type": "number"
  18297. },
  18298. {
  18299. "type": "string",
  18300. "enum": ["NaN"]
  18301. },
  18302. {
  18303. "type": "string",
  18304. "enum": ["Infinity"]
  18305. },
  18306. {
  18307. "type": "string",
  18308. "enum": ["-Infinity"]
  18309. }
  18310. ]
  18311. },
  18312. {
  18313. "type": "string",
  18314. "enum": ["Infinity", "-Infinity", "NaN"]
  18315. }
  18316. ]
  18317. },
  18318. {
  18319. "type": "boolean"
  18320. }
  18321. ]
  18322. }
  18323. },
  18324. "required": ["key", "op", "value"],
  18325. "additionalProperties": false
  18326. },
  18327. "Form.Option": {
  18328. "type": "object",
  18329. "properties": {
  18330. "value": {
  18331. "type": "string"
  18332. },
  18333. "label": {
  18334. "type": "string"
  18335. },
  18336. "description": {
  18337. "type": "string"
  18338. }
  18339. },
  18340. "required": ["value", "label"],
  18341. "additionalProperties": false
  18342. },
  18343. "Form.StringField": {
  18344. "type": "object",
  18345. "properties": {
  18346. "key": {
  18347. "type": "string"
  18348. },
  18349. "title": {
  18350. "type": "string"
  18351. },
  18352. "description": {
  18353. "type": "string"
  18354. },
  18355. "required": {
  18356. "type": "boolean"
  18357. },
  18358. "when": {
  18359. "type": "array",
  18360. "items": {
  18361. "$ref": "#/components/schemas/Form.When"
  18362. }
  18363. },
  18364. "type": {
  18365. "type": "string",
  18366. "enum": ["string"]
  18367. },
  18368. "format": {
  18369. "type": "string",
  18370. "enum": ["email", "uri", "date", "date-time"]
  18371. },
  18372. "minLength": {
  18373. "type": "integer",
  18374. "allOf": [
  18375. {
  18376. "minimum": 0
  18377. }
  18378. ]
  18379. },
  18380. "maxLength": {
  18381. "type": "integer",
  18382. "allOf": [
  18383. {
  18384. "minimum": 0
  18385. }
  18386. ]
  18387. },
  18388. "pattern": {
  18389. "type": "string"
  18390. },
  18391. "placeholder": {
  18392. "type": "string"
  18393. },
  18394. "default": {
  18395. "type": "string"
  18396. },
  18397. "options": {
  18398. "type": "array",
  18399. "items": {
  18400. "$ref": "#/components/schemas/Form.Option"
  18401. }
  18402. },
  18403. "custom": {
  18404. "type": "boolean"
  18405. }
  18406. },
  18407. "required": ["key", "type"],
  18408. "additionalProperties": false
  18409. },
  18410. "Form.NumberField": {
  18411. "type": "object",
  18412. "properties": {
  18413. "key": {
  18414. "type": "string"
  18415. },
  18416. "title": {
  18417. "type": "string"
  18418. },
  18419. "description": {
  18420. "type": "string"
  18421. },
  18422. "required": {
  18423. "type": "boolean"
  18424. },
  18425. "when": {
  18426. "type": "array",
  18427. "items": {
  18428. "$ref": "#/components/schemas/Form.When"
  18429. }
  18430. },
  18431. "type": {
  18432. "type": "string",
  18433. "enum": ["number"]
  18434. },
  18435. "minimum": {
  18436. "anyOf": [
  18437. {
  18438. "anyOf": [
  18439. {
  18440. "type": "number"
  18441. },
  18442. {
  18443. "type": "string",
  18444. "enum": ["NaN"]
  18445. },
  18446. {
  18447. "type": "string",
  18448. "enum": ["Infinity"]
  18449. },
  18450. {
  18451. "type": "string",
  18452. "enum": ["-Infinity"]
  18453. }
  18454. ]
  18455. },
  18456. {
  18457. "type": "string",
  18458. "enum": ["Infinity", "-Infinity", "NaN"]
  18459. }
  18460. ]
  18461. },
  18462. "maximum": {
  18463. "anyOf": [
  18464. {
  18465. "anyOf": [
  18466. {
  18467. "type": "number"
  18468. },
  18469. {
  18470. "type": "string",
  18471. "enum": ["NaN"]
  18472. },
  18473. {
  18474. "type": "string",
  18475. "enum": ["Infinity"]
  18476. },
  18477. {
  18478. "type": "string",
  18479. "enum": ["-Infinity"]
  18480. }
  18481. ]
  18482. },
  18483. {
  18484. "type": "string",
  18485. "enum": ["Infinity", "-Infinity", "NaN"]
  18486. }
  18487. ]
  18488. },
  18489. "default": {
  18490. "anyOf": [
  18491. {
  18492. "anyOf": [
  18493. {
  18494. "type": "number"
  18495. },
  18496. {
  18497. "type": "string",
  18498. "enum": ["NaN"]
  18499. },
  18500. {
  18501. "type": "string",
  18502. "enum": ["Infinity"]
  18503. },
  18504. {
  18505. "type": "string",
  18506. "enum": ["-Infinity"]
  18507. }
  18508. ]
  18509. },
  18510. {
  18511. "type": "string",
  18512. "enum": ["Infinity", "-Infinity", "NaN"]
  18513. }
  18514. ]
  18515. }
  18516. },
  18517. "required": ["key", "type"],
  18518. "additionalProperties": false
  18519. },
  18520. "Form.IntegerField": {
  18521. "type": "object",
  18522. "properties": {
  18523. "key": {
  18524. "type": "string"
  18525. },
  18526. "title": {
  18527. "type": "string"
  18528. },
  18529. "description": {
  18530. "type": "string"
  18531. },
  18532. "required": {
  18533. "type": "boolean"
  18534. },
  18535. "when": {
  18536. "type": "array",
  18537. "items": {
  18538. "$ref": "#/components/schemas/Form.When"
  18539. }
  18540. },
  18541. "type": {
  18542. "type": "string",
  18543. "enum": ["integer"]
  18544. },
  18545. "minimum": {
  18546. "anyOf": [
  18547. {
  18548. "anyOf": [
  18549. {
  18550. "type": "number"
  18551. },
  18552. {
  18553. "type": "string",
  18554. "enum": ["NaN"]
  18555. },
  18556. {
  18557. "type": "string",
  18558. "enum": ["Infinity"]
  18559. },
  18560. {
  18561. "type": "string",
  18562. "enum": ["-Infinity"]
  18563. }
  18564. ]
  18565. },
  18566. {
  18567. "type": "string",
  18568. "enum": ["Infinity", "-Infinity", "NaN"]
  18569. }
  18570. ]
  18571. },
  18572. "maximum": {
  18573. "anyOf": [
  18574. {
  18575. "anyOf": [
  18576. {
  18577. "type": "number"
  18578. },
  18579. {
  18580. "type": "string",
  18581. "enum": ["NaN"]
  18582. },
  18583. {
  18584. "type": "string",
  18585. "enum": ["Infinity"]
  18586. },
  18587. {
  18588. "type": "string",
  18589. "enum": ["-Infinity"]
  18590. }
  18591. ]
  18592. },
  18593. {
  18594. "type": "string",
  18595. "enum": ["Infinity", "-Infinity", "NaN"]
  18596. }
  18597. ]
  18598. },
  18599. "default": {
  18600. "anyOf": [
  18601. {
  18602. "anyOf": [
  18603. {
  18604. "type": "number"
  18605. },
  18606. {
  18607. "type": "string",
  18608. "enum": ["NaN"]
  18609. },
  18610. {
  18611. "type": "string",
  18612. "enum": ["Infinity"]
  18613. },
  18614. {
  18615. "type": "string",
  18616. "enum": ["-Infinity"]
  18617. }
  18618. ]
  18619. },
  18620. {
  18621. "type": "string",
  18622. "enum": ["Infinity", "-Infinity", "NaN"]
  18623. }
  18624. ]
  18625. }
  18626. },
  18627. "required": ["key", "type"],
  18628. "additionalProperties": false
  18629. },
  18630. "Form.BooleanField": {
  18631. "type": "object",
  18632. "properties": {
  18633. "key": {
  18634. "type": "string"
  18635. },
  18636. "title": {
  18637. "type": "string"
  18638. },
  18639. "description": {
  18640. "type": "string"
  18641. },
  18642. "required": {
  18643. "type": "boolean"
  18644. },
  18645. "when": {
  18646. "type": "array",
  18647. "items": {
  18648. "$ref": "#/components/schemas/Form.When"
  18649. }
  18650. },
  18651. "type": {
  18652. "type": "string",
  18653. "enum": ["boolean"]
  18654. },
  18655. "default": {
  18656. "type": "boolean"
  18657. }
  18658. },
  18659. "required": ["key", "type"],
  18660. "additionalProperties": false
  18661. },
  18662. "Form.MultiselectField": {
  18663. "type": "object",
  18664. "properties": {
  18665. "key": {
  18666. "type": "string"
  18667. },
  18668. "title": {
  18669. "type": "string"
  18670. },
  18671. "description": {
  18672. "type": "string"
  18673. },
  18674. "required": {
  18675. "type": "boolean"
  18676. },
  18677. "when": {
  18678. "type": "array",
  18679. "items": {
  18680. "$ref": "#/components/schemas/Form.When"
  18681. }
  18682. },
  18683. "type": {
  18684. "type": "string",
  18685. "enum": ["multiselect"]
  18686. },
  18687. "options": {
  18688. "type": "array",
  18689. "items": {
  18690. "$ref": "#/components/schemas/Form.Option"
  18691. }
  18692. },
  18693. "minItems": {
  18694. "type": "integer",
  18695. "allOf": [
  18696. {
  18697. "minimum": 0
  18698. }
  18699. ]
  18700. },
  18701. "maxItems": {
  18702. "type": "integer",
  18703. "allOf": [
  18704. {
  18705. "minimum": 0
  18706. }
  18707. ]
  18708. },
  18709. "custom": {
  18710. "type": "boolean"
  18711. },
  18712. "default": {
  18713. "type": "array",
  18714. "items": {
  18715. "type": "string"
  18716. }
  18717. }
  18718. },
  18719. "required": ["key", "type", "options"],
  18720. "additionalProperties": false
  18721. },
  18722. "Form.ExternalField": {
  18723. "type": "object",
  18724. "properties": {
  18725. "key": {
  18726. "type": "string"
  18727. },
  18728. "type": {
  18729. "type": "string",
  18730. "enum": ["external"]
  18731. },
  18732. "url": {
  18733. "type": "string"
  18734. },
  18735. "title": {
  18736. "type": "string"
  18737. },
  18738. "description": {
  18739. "type": "string"
  18740. }
  18741. },
  18742. "required": ["key", "type", "url"],
  18743. "additionalProperties": false
  18744. },
  18745. "Form.Field": {
  18746. "anyOf": [
  18747. {
  18748. "$ref": "#/components/schemas/Form.StringField"
  18749. },
  18750. {
  18751. "$ref": "#/components/schemas/Form.NumberField"
  18752. },
  18753. {
  18754. "$ref": "#/components/schemas/Form.IntegerField"
  18755. },
  18756. {
  18757. "$ref": "#/components/schemas/Form.BooleanField"
  18758. },
  18759. {
  18760. "$ref": "#/components/schemas/Form.MultiselectField"
  18761. },
  18762. {
  18763. "$ref": "#/components/schemas/Form.ExternalField"
  18764. }
  18765. ]
  18766. },
  18767. "Form.Fields": {
  18768. "type": "array",
  18769. "prefixItems": [
  18770. {
  18771. "$ref": "#/components/schemas/Form.Field"
  18772. }
  18773. ],
  18774. "minItems": 1,
  18775. "items": {
  18776. "$ref": "#/components/schemas/Form.Field"
  18777. }
  18778. },
  18779. "Integration.OAuthMethod": {
  18780. "type": "object",
  18781. "properties": {
  18782. "id": {
  18783. "type": "string"
  18784. },
  18785. "type": {
  18786. "type": "string",
  18787. "enum": ["oauth"]
  18788. },
  18789. "label": {
  18790. "type": "string"
  18791. },
  18792. "form": {
  18793. "$ref": "#/components/schemas/Form.Fields"
  18794. }
  18795. },
  18796. "required": ["id", "type", "label"],
  18797. "additionalProperties": false
  18798. },
  18799. "Integration.CommandMethod": {
  18800. "type": "object",
  18801. "properties": {
  18802. "id": {
  18803. "type": "string"
  18804. },
  18805. "type": {
  18806. "type": "string",
  18807. "enum": ["command"]
  18808. },
  18809. "label": {
  18810. "type": "string"
  18811. },
  18812. "command": {
  18813. "type": "array",
  18814. "items": {
  18815. "type": "string"
  18816. }
  18817. }
  18818. },
  18819. "required": ["id", "type", "label", "command"],
  18820. "additionalProperties": false
  18821. },
  18822. "Integration.KeyMethod": {
  18823. "type": "object",
  18824. "properties": {
  18825. "type": {
  18826. "type": "string",
  18827. "enum": ["key"]
  18828. },
  18829. "label": {
  18830. "type": "string"
  18831. },
  18832. "form": {
  18833. "$ref": "#/components/schemas/Form.Fields"
  18834. }
  18835. },
  18836. "required": ["type"],
  18837. "additionalProperties": false
  18838. },
  18839. "Integration.EnvMethod": {
  18840. "type": "object",
  18841. "properties": {
  18842. "type": {
  18843. "type": "string",
  18844. "enum": ["env"]
  18845. },
  18846. "names": {
  18847. "type": "array",
  18848. "items": {
  18849. "type": "string"
  18850. }
  18851. }
  18852. },
  18853. "required": ["type", "names"],
  18854. "additionalProperties": false
  18855. },
  18856. "Integration.Method": {
  18857. "anyOf": [
  18858. {
  18859. "$ref": "#/components/schemas/Integration.OAuthMethod"
  18860. },
  18861. {
  18862. "$ref": "#/components/schemas/Integration.CommandMethod"
  18863. },
  18864. {
  18865. "$ref": "#/components/schemas/Integration.KeyMethod"
  18866. },
  18867. {
  18868. "$ref": "#/components/schemas/Integration.EnvMethod"
  18869. }
  18870. ]
  18871. },
  18872. "Connection.CredentialInfo": {
  18873. "type": "object",
  18874. "properties": {
  18875. "type": {
  18876. "type": "string",
  18877. "enum": ["credential"]
  18878. },
  18879. "id": {
  18880. "type": "string"
  18881. },
  18882. "label": {
  18883. "type": "string"
  18884. }
  18885. },
  18886. "required": ["type", "id", "label"],
  18887. "additionalProperties": false
  18888. },
  18889. "Connection.EnvInfo": {
  18890. "type": "object",
  18891. "properties": {
  18892. "type": {
  18893. "type": "string",
  18894. "enum": ["env"]
  18895. },
  18896. "name": {
  18897. "type": "string"
  18898. }
  18899. },
  18900. "required": ["type", "name"],
  18901. "additionalProperties": false
  18902. },
  18903. "Connection.Info": {
  18904. "anyOf": [
  18905. {
  18906. "$ref": "#/components/schemas/Connection.CredentialInfo"
  18907. },
  18908. {
  18909. "$ref": "#/components/schemas/Connection.EnvInfo"
  18910. }
  18911. ]
  18912. },
  18913. "Integration.Info": {
  18914. "type": "object",
  18915. "properties": {
  18916. "id": {
  18917. "type": "string"
  18918. },
  18919. "name": {
  18920. "type": "string"
  18921. },
  18922. "methods": {
  18923. "type": "array",
  18924. "items": {
  18925. "$ref": "#/components/schemas/Integration.Method"
  18926. }
  18927. },
  18928. "connections": {
  18929. "type": "array",
  18930. "items": {
  18931. "$ref": "#/components/schemas/Connection.Info"
  18932. }
  18933. }
  18934. },
  18935. "required": ["id", "name", "methods", "connections"],
  18936. "additionalProperties": false
  18937. },
  18938. "Form.Value": {
  18939. "anyOf": [
  18940. {
  18941. "type": "string"
  18942. },
  18943. {
  18944. "anyOf": [
  18945. {
  18946. "anyOf": [
  18947. {
  18948. "type": "number"
  18949. },
  18950. {
  18951. "type": "string",
  18952. "enum": ["NaN"]
  18953. },
  18954. {
  18955. "type": "string",
  18956. "enum": ["Infinity"]
  18957. },
  18958. {
  18959. "type": "string",
  18960. "enum": ["-Infinity"]
  18961. }
  18962. ]
  18963. },
  18964. {
  18965. "type": "string",
  18966. "enum": ["Infinity", "-Infinity", "NaN"]
  18967. }
  18968. ]
  18969. },
  18970. {
  18971. "type": "boolean"
  18972. },
  18973. {
  18974. "type": "array",
  18975. "items": {
  18976. "type": "string"
  18977. }
  18978. }
  18979. ]
  18980. },
  18981. "Form.Answer": {
  18982. "type": "object",
  18983. "additionalProperties": {
  18984. "$ref": "#/components/schemas/Form.Value"
  18985. }
  18986. },
  18987. "Integration.Attempt": {
  18988. "type": "object",
  18989. "properties": {
  18990. "attemptID": {
  18991. "type": "string"
  18992. },
  18993. "url": {
  18994. "type": "string"
  18995. },
  18996. "instructions": {
  18997. "type": "string"
  18998. },
  18999. "mode": {
  19000. "type": "string",
  19001. "enum": ["auto", "code"]
  19002. },
  19003. "time": {
  19004. "type": "object",
  19005. "properties": {
  19006. "created": {
  19007. "anyOf": [
  19008. {
  19009. "anyOf": [
  19010. {
  19011. "type": "number"
  19012. },
  19013. {
  19014. "type": "string",
  19015. "enum": ["NaN"]
  19016. },
  19017. {
  19018. "type": "string",
  19019. "enum": ["Infinity"]
  19020. },
  19021. {
  19022. "type": "string",
  19023. "enum": ["-Infinity"]
  19024. }
  19025. ]
  19026. },
  19027. {
  19028. "type": "string",
  19029. "enum": ["Infinity", "-Infinity", "NaN"]
  19030. }
  19031. ]
  19032. },
  19033. "expires": {
  19034. "anyOf": [
  19035. {
  19036. "anyOf": [
  19037. {
  19038. "type": "number"
  19039. },
  19040. {
  19041. "type": "string",
  19042. "enum": ["NaN"]
  19043. },
  19044. {
  19045. "type": "string",
  19046. "enum": ["Infinity"]
  19047. },
  19048. {
  19049. "type": "string",
  19050. "enum": ["-Infinity"]
  19051. }
  19052. ]
  19053. },
  19054. {
  19055. "type": "string",
  19056. "enum": ["Infinity", "-Infinity", "NaN"]
  19057. }
  19058. ]
  19059. }
  19060. },
  19061. "required": ["created", "expires"],
  19062. "additionalProperties": false
  19063. }
  19064. },
  19065. "required": ["attemptID", "url", "instructions", "mode", "time"],
  19066. "additionalProperties": false
  19067. },
  19068. "Integration.AttemptStatus": {
  19069. "anyOf": [
  19070. {
  19071. "type": "object",
  19072. "properties": {
  19073. "status": {
  19074. "type": "string",
  19075. "enum": ["pending"]
  19076. },
  19077. "time": {
  19078. "type": "object",
  19079. "properties": {
  19080. "created": {
  19081. "anyOf": [
  19082. {
  19083. "anyOf": [
  19084. {
  19085. "type": "number"
  19086. },
  19087. {
  19088. "type": "string",
  19089. "enum": ["NaN"]
  19090. },
  19091. {
  19092. "type": "string",
  19093. "enum": ["Infinity"]
  19094. },
  19095. {
  19096. "type": "string",
  19097. "enum": ["-Infinity"]
  19098. }
  19099. ]
  19100. },
  19101. {
  19102. "type": "string",
  19103. "enum": ["Infinity", "-Infinity", "NaN"]
  19104. }
  19105. ]
  19106. },
  19107. "expires": {
  19108. "anyOf": [
  19109. {
  19110. "anyOf": [
  19111. {
  19112. "type": "number"
  19113. },
  19114. {
  19115. "type": "string",
  19116. "enum": ["NaN"]
  19117. },
  19118. {
  19119. "type": "string",
  19120. "enum": ["Infinity"]
  19121. },
  19122. {
  19123. "type": "string",
  19124. "enum": ["-Infinity"]
  19125. }
  19126. ]
  19127. },
  19128. {
  19129. "type": "string",
  19130. "enum": ["Infinity", "-Infinity", "NaN"]
  19131. }
  19132. ]
  19133. }
  19134. },
  19135. "required": ["created", "expires"],
  19136. "additionalProperties": false
  19137. }
  19138. },
  19139. "required": ["status", "time"],
  19140. "additionalProperties": false
  19141. },
  19142. {
  19143. "type": "object",
  19144. "properties": {
  19145. "status": {
  19146. "type": "string",
  19147. "enum": ["complete"]
  19148. },
  19149. "time": {
  19150. "type": "object",
  19151. "properties": {
  19152. "created": {
  19153. "anyOf": [
  19154. {
  19155. "anyOf": [
  19156. {
  19157. "type": "number"
  19158. },
  19159. {
  19160. "type": "string",
  19161. "enum": ["NaN"]
  19162. },
  19163. {
  19164. "type": "string",
  19165. "enum": ["Infinity"]
  19166. },
  19167. {
  19168. "type": "string",
  19169. "enum": ["-Infinity"]
  19170. }
  19171. ]
  19172. },
  19173. {
  19174. "type": "string",
  19175. "enum": ["Infinity", "-Infinity", "NaN"]
  19176. }
  19177. ]
  19178. },
  19179. "expires": {
  19180. "anyOf": [
  19181. {
  19182. "anyOf": [
  19183. {
  19184. "type": "number"
  19185. },
  19186. {
  19187. "type": "string",
  19188. "enum": ["NaN"]
  19189. },
  19190. {
  19191. "type": "string",
  19192. "enum": ["Infinity"]
  19193. },
  19194. {
  19195. "type": "string",
  19196. "enum": ["-Infinity"]
  19197. }
  19198. ]
  19199. },
  19200. {
  19201. "type": "string",
  19202. "enum": ["Infinity", "-Infinity", "NaN"]
  19203. }
  19204. ]
  19205. }
  19206. },
  19207. "required": ["created", "expires"],
  19208. "additionalProperties": false
  19209. }
  19210. },
  19211. "required": ["status", "time"],
  19212. "additionalProperties": false
  19213. },
  19214. {
  19215. "type": "object",
  19216. "properties": {
  19217. "status": {
  19218. "type": "string",
  19219. "enum": ["failed"]
  19220. },
  19221. "message": {
  19222. "type": "string"
  19223. },
  19224. "time": {
  19225. "type": "object",
  19226. "properties": {
  19227. "created": {
  19228. "anyOf": [
  19229. {
  19230. "anyOf": [
  19231. {
  19232. "type": "number"
  19233. },
  19234. {
  19235. "type": "string",
  19236. "enum": ["NaN"]
  19237. },
  19238. {
  19239. "type": "string",
  19240. "enum": ["Infinity"]
  19241. },
  19242. {
  19243. "type": "string",
  19244. "enum": ["-Infinity"]
  19245. }
  19246. ]
  19247. },
  19248. {
  19249. "type": "string",
  19250. "enum": ["Infinity", "-Infinity", "NaN"]
  19251. }
  19252. ]
  19253. },
  19254. "expires": {
  19255. "anyOf": [
  19256. {
  19257. "anyOf": [
  19258. {
  19259. "type": "number"
  19260. },
  19261. {
  19262. "type": "string",
  19263. "enum": ["NaN"]
  19264. },
  19265. {
  19266. "type": "string",
  19267. "enum": ["Infinity"]
  19268. },
  19269. {
  19270. "type": "string",
  19271. "enum": ["-Infinity"]
  19272. }
  19273. ]
  19274. },
  19275. {
  19276. "type": "string",
  19277. "enum": ["Infinity", "-Infinity", "NaN"]
  19278. }
  19279. ]
  19280. }
  19281. },
  19282. "required": ["created", "expires"],
  19283. "additionalProperties": false
  19284. }
  19285. },
  19286. "required": ["status", "message", "time"],
  19287. "additionalProperties": false
  19288. },
  19289. {
  19290. "type": "object",
  19291. "properties": {
  19292. "status": {
  19293. "type": "string",
  19294. "enum": ["expired"]
  19295. },
  19296. "time": {
  19297. "type": "object",
  19298. "properties": {
  19299. "created": {
  19300. "anyOf": [
  19301. {
  19302. "anyOf": [
  19303. {
  19304. "type": "number"
  19305. },
  19306. {
  19307. "type": "string",
  19308. "enum": ["NaN"]
  19309. },
  19310. {
  19311. "type": "string",
  19312. "enum": ["Infinity"]
  19313. },
  19314. {
  19315. "type": "string",
  19316. "enum": ["-Infinity"]
  19317. }
  19318. ]
  19319. },
  19320. {
  19321. "type": "string",
  19322. "enum": ["Infinity", "-Infinity", "NaN"]
  19323. }
  19324. ]
  19325. },
  19326. "expires": {
  19327. "anyOf": [
  19328. {
  19329. "anyOf": [
  19330. {
  19331. "type": "number"
  19332. },
  19333. {
  19334. "type": "string",
  19335. "enum": ["NaN"]
  19336. },
  19337. {
  19338. "type": "string",
  19339. "enum": ["Infinity"]
  19340. },
  19341. {
  19342. "type": "string",
  19343. "enum": ["-Infinity"]
  19344. }
  19345. ]
  19346. },
  19347. {
  19348. "type": "string",
  19349. "enum": ["Infinity", "-Infinity", "NaN"]
  19350. }
  19351. ]
  19352. }
  19353. },
  19354. "required": ["created", "expires"],
  19355. "additionalProperties": false
  19356. }
  19357. },
  19358. "required": ["status", "time"],
  19359. "additionalProperties": false
  19360. }
  19361. ]
  19362. },
  19363. "Integration.CommandAttempt": {
  19364. "type": "object",
  19365. "properties": {
  19366. "attemptID": {
  19367. "type": "string"
  19368. },
  19369. "time": {
  19370. "type": "object",
  19371. "properties": {
  19372. "created": {
  19373. "anyOf": [
  19374. {
  19375. "anyOf": [
  19376. {
  19377. "type": "number"
  19378. },
  19379. {
  19380. "type": "string",
  19381. "enum": ["NaN"]
  19382. },
  19383. {
  19384. "type": "string",
  19385. "enum": ["Infinity"]
  19386. },
  19387. {
  19388. "type": "string",
  19389. "enum": ["-Infinity"]
  19390. }
  19391. ]
  19392. },
  19393. {
  19394. "type": "string",
  19395. "enum": ["Infinity", "-Infinity", "NaN"]
  19396. }
  19397. ]
  19398. },
  19399. "expires": {
  19400. "anyOf": [
  19401. {
  19402. "anyOf": [
  19403. {
  19404. "type": "number"
  19405. },
  19406. {
  19407. "type": "string",
  19408. "enum": ["NaN"]
  19409. },
  19410. {
  19411. "type": "string",
  19412. "enum": ["Infinity"]
  19413. },
  19414. {
  19415. "type": "string",
  19416. "enum": ["-Infinity"]
  19417. }
  19418. ]
  19419. },
  19420. {
  19421. "type": "string",
  19422. "enum": ["Infinity", "-Infinity", "NaN"]
  19423. }
  19424. ]
  19425. }
  19426. },
  19427. "required": ["created", "expires"],
  19428. "additionalProperties": false
  19429. }
  19430. },
  19431. "required": ["attemptID", "time"],
  19432. "additionalProperties": false
  19433. },
  19434. "Integration.CommandAttemptStatus": {
  19435. "anyOf": [
  19436. {
  19437. "type": "object",
  19438. "properties": {
  19439. "status": {
  19440. "type": "string",
  19441. "enum": ["pending"]
  19442. },
  19443. "message": {
  19444. "type": "string"
  19445. },
  19446. "time": {
  19447. "type": "object",
  19448. "properties": {
  19449. "created": {
  19450. "anyOf": [
  19451. {
  19452. "anyOf": [
  19453. {
  19454. "type": "number"
  19455. },
  19456. {
  19457. "type": "string",
  19458. "enum": ["NaN"]
  19459. },
  19460. {
  19461. "type": "string",
  19462. "enum": ["Infinity"]
  19463. },
  19464. {
  19465. "type": "string",
  19466. "enum": ["-Infinity"]
  19467. }
  19468. ]
  19469. },
  19470. {
  19471. "type": "string",
  19472. "enum": ["Infinity", "-Infinity", "NaN"]
  19473. }
  19474. ]
  19475. },
  19476. "expires": {
  19477. "anyOf": [
  19478. {
  19479. "anyOf": [
  19480. {
  19481. "type": "number"
  19482. },
  19483. {
  19484. "type": "string",
  19485. "enum": ["NaN"]
  19486. },
  19487. {
  19488. "type": "string",
  19489. "enum": ["Infinity"]
  19490. },
  19491. {
  19492. "type": "string",
  19493. "enum": ["-Infinity"]
  19494. }
  19495. ]
  19496. },
  19497. {
  19498. "type": "string",
  19499. "enum": ["Infinity", "-Infinity", "NaN"]
  19500. }
  19501. ]
  19502. }
  19503. },
  19504. "required": ["created", "expires"],
  19505. "additionalProperties": false
  19506. }
  19507. },
  19508. "required": ["status", "time"],
  19509. "additionalProperties": false
  19510. },
  19511. {
  19512. "type": "object",
  19513. "properties": {
  19514. "status": {
  19515. "type": "string",
  19516. "enum": ["complete"]
  19517. },
  19518. "time": {
  19519. "type": "object",
  19520. "properties": {
  19521. "created": {
  19522. "anyOf": [
  19523. {
  19524. "anyOf": [
  19525. {
  19526. "type": "number"
  19527. },
  19528. {
  19529. "type": "string",
  19530. "enum": ["NaN"]
  19531. },
  19532. {
  19533. "type": "string",
  19534. "enum": ["Infinity"]
  19535. },
  19536. {
  19537. "type": "string",
  19538. "enum": ["-Infinity"]
  19539. }
  19540. ]
  19541. },
  19542. {
  19543. "type": "string",
  19544. "enum": ["Infinity", "-Infinity", "NaN"]
  19545. }
  19546. ]
  19547. },
  19548. "expires": {
  19549. "anyOf": [
  19550. {
  19551. "anyOf": [
  19552. {
  19553. "type": "number"
  19554. },
  19555. {
  19556. "type": "string",
  19557. "enum": ["NaN"]
  19558. },
  19559. {
  19560. "type": "string",
  19561. "enum": ["Infinity"]
  19562. },
  19563. {
  19564. "type": "string",
  19565. "enum": ["-Infinity"]
  19566. }
  19567. ]
  19568. },
  19569. {
  19570. "type": "string",
  19571. "enum": ["Infinity", "-Infinity", "NaN"]
  19572. }
  19573. ]
  19574. }
  19575. },
  19576. "required": ["created", "expires"],
  19577. "additionalProperties": false
  19578. }
  19579. },
  19580. "required": ["status", "time"],
  19581. "additionalProperties": false
  19582. },
  19583. {
  19584. "type": "object",
  19585. "properties": {
  19586. "status": {
  19587. "type": "string",
  19588. "enum": ["failed"]
  19589. },
  19590. "message": {
  19591. "type": "string"
  19592. },
  19593. "time": {
  19594. "type": "object",
  19595. "properties": {
  19596. "created": {
  19597. "anyOf": [
  19598. {
  19599. "anyOf": [
  19600. {
  19601. "type": "number"
  19602. },
  19603. {
  19604. "type": "string",
  19605. "enum": ["NaN"]
  19606. },
  19607. {
  19608. "type": "string",
  19609. "enum": ["Infinity"]
  19610. },
  19611. {
  19612. "type": "string",
  19613. "enum": ["-Infinity"]
  19614. }
  19615. ]
  19616. },
  19617. {
  19618. "type": "string",
  19619. "enum": ["Infinity", "-Infinity", "NaN"]
  19620. }
  19621. ]
  19622. },
  19623. "expires": {
  19624. "anyOf": [
  19625. {
  19626. "anyOf": [
  19627. {
  19628. "type": "number"
  19629. },
  19630. {
  19631. "type": "string",
  19632. "enum": ["NaN"]
  19633. },
  19634. {
  19635. "type": "string",
  19636. "enum": ["Infinity"]
  19637. },
  19638. {
  19639. "type": "string",
  19640. "enum": ["-Infinity"]
  19641. }
  19642. ]
  19643. },
  19644. {
  19645. "type": "string",
  19646. "enum": ["Infinity", "-Infinity", "NaN"]
  19647. }
  19648. ]
  19649. }
  19650. },
  19651. "required": ["created", "expires"],
  19652. "additionalProperties": false
  19653. }
  19654. },
  19655. "required": ["status", "message", "time"],
  19656. "additionalProperties": false
  19657. },
  19658. {
  19659. "type": "object",
  19660. "properties": {
  19661. "status": {
  19662. "type": "string",
  19663. "enum": ["expired"]
  19664. },
  19665. "time": {
  19666. "type": "object",
  19667. "properties": {
  19668. "created": {
  19669. "anyOf": [
  19670. {
  19671. "anyOf": [
  19672. {
  19673. "type": "number"
  19674. },
  19675. {
  19676. "type": "string",
  19677. "enum": ["NaN"]
  19678. },
  19679. {
  19680. "type": "string",
  19681. "enum": ["Infinity"]
  19682. },
  19683. {
  19684. "type": "string",
  19685. "enum": ["-Infinity"]
  19686. }
  19687. ]
  19688. },
  19689. {
  19690. "type": "string",
  19691. "enum": ["Infinity", "-Infinity", "NaN"]
  19692. }
  19693. ]
  19694. },
  19695. "expires": {
  19696. "anyOf": [
  19697. {
  19698. "anyOf": [
  19699. {
  19700. "type": "number"
  19701. },
  19702. {
  19703. "type": "string",
  19704. "enum": ["NaN"]
  19705. },
  19706. {
  19707. "type": "string",
  19708. "enum": ["Infinity"]
  19709. },
  19710. {
  19711. "type": "string",
  19712. "enum": ["-Infinity"]
  19713. }
  19714. ]
  19715. },
  19716. {
  19717. "type": "string",
  19718. "enum": ["Infinity", "-Infinity", "NaN"]
  19719. }
  19720. ]
  19721. }
  19722. },
  19723. "required": ["created", "expires"],
  19724. "additionalProperties": false
  19725. }
  19726. },
  19727. "required": ["status", "time"],
  19728. "additionalProperties": false
  19729. }
  19730. ]
  19731. },
  19732. "Mcp.Status.Connected": {
  19733. "type": "object",
  19734. "properties": {
  19735. "status": {
  19736. "type": "string",
  19737. "enum": ["connected"]
  19738. }
  19739. },
  19740. "required": ["status"],
  19741. "additionalProperties": false
  19742. },
  19743. "Mcp.Status.Pending": {
  19744. "type": "object",
  19745. "properties": {
  19746. "status": {
  19747. "type": "string",
  19748. "enum": ["pending"]
  19749. }
  19750. },
  19751. "required": ["status"],
  19752. "additionalProperties": false
  19753. },
  19754. "Mcp.Status.Disabled": {
  19755. "type": "object",
  19756. "properties": {
  19757. "status": {
  19758. "type": "string",
  19759. "enum": ["disabled"]
  19760. }
  19761. },
  19762. "required": ["status"],
  19763. "additionalProperties": false
  19764. },
  19765. "Mcp.Status.Failed": {
  19766. "type": "object",
  19767. "properties": {
  19768. "status": {
  19769. "type": "string",
  19770. "enum": ["failed"]
  19771. },
  19772. "error": {
  19773. "type": "string"
  19774. }
  19775. },
  19776. "required": ["status", "error"],
  19777. "additionalProperties": false
  19778. },
  19779. "Mcp.Status.NeedsAuth": {
  19780. "type": "object",
  19781. "properties": {
  19782. "status": {
  19783. "type": "string",
  19784. "enum": ["needs_auth"]
  19785. }
  19786. },
  19787. "required": ["status"],
  19788. "additionalProperties": false
  19789. },
  19790. "Mcp.Server": {
  19791. "type": "object",
  19792. "properties": {
  19793. "name": {
  19794. "type": "string"
  19795. },
  19796. "status": {
  19797. "anyOf": [
  19798. {
  19799. "$ref": "#/components/schemas/Mcp.Status.Connected"
  19800. },
  19801. {
  19802. "$ref": "#/components/schemas/Mcp.Status.Pending"
  19803. },
  19804. {
  19805. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  19806. },
  19807. {
  19808. "$ref": "#/components/schemas/Mcp.Status.Failed"
  19809. },
  19810. {
  19811. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  19812. }
  19813. ]
  19814. },
  19815. "integrationID": {
  19816. "type": "string"
  19817. }
  19818. },
  19819. "required": ["name", "status"],
  19820. "additionalProperties": false
  19821. },
  19822. "Mcp.LocalConfig": {
  19823. "type": "object",
  19824. "properties": {
  19825. "type": {
  19826. "type": "string",
  19827. "enum": ["local"]
  19828. },
  19829. "command": {
  19830. "type": "array",
  19831. "items": {
  19832. "type": "string"
  19833. }
  19834. },
  19835. "cwd": {
  19836. "type": "string"
  19837. },
  19838. "environment": {
  19839. "type": "object",
  19840. "additionalProperties": {
  19841. "type": "string"
  19842. }
  19843. },
  19844. "disabled": {
  19845. "type": "boolean"
  19846. },
  19847. "codemode": {
  19848. "type": "boolean"
  19849. },
  19850. "timeout": {
  19851. "type": "object",
  19852. "properties": {
  19853. "startup": {
  19854. "type": "integer",
  19855. "allOf": [
  19856. {
  19857. "exclusiveMinimum": 0
  19858. }
  19859. ]
  19860. },
  19861. "catalog": {
  19862. "type": "integer",
  19863. "allOf": [
  19864. {
  19865. "exclusiveMinimum": 0
  19866. }
  19867. ]
  19868. },
  19869. "execution": {
  19870. "type": "integer",
  19871. "allOf": [
  19872. {
  19873. "exclusiveMinimum": 0
  19874. }
  19875. ]
  19876. }
  19877. },
  19878. "additionalProperties": false
  19879. }
  19880. },
  19881. "required": ["type", "command"],
  19882. "additionalProperties": false
  19883. },
  19884. "Mcp.OAuthConfig": {
  19885. "type": "object",
  19886. "properties": {
  19887. "client_id": {
  19888. "type": "string"
  19889. },
  19890. "client_secret": {
  19891. "type": "string"
  19892. },
  19893. "scope": {
  19894. "type": "string"
  19895. },
  19896. "callback_port": {
  19897. "type": "integer",
  19898. "allOf": [
  19899. {
  19900. "minimum": 1,
  19901. "maximum": 65535
  19902. }
  19903. ]
  19904. },
  19905. "redirect_uri": {
  19906. "type": "string"
  19907. }
  19908. },
  19909. "additionalProperties": false
  19910. },
  19911. "Mcp.RemoteConfig": {
  19912. "type": "object",
  19913. "properties": {
  19914. "type": {
  19915. "type": "string",
  19916. "enum": ["remote"]
  19917. },
  19918. "url": {
  19919. "type": "string"
  19920. },
  19921. "headers": {
  19922. "type": "object",
  19923. "additionalProperties": {
  19924. "type": "string"
  19925. }
  19926. },
  19927. "oauth": {
  19928. "anyOf": [
  19929. {
  19930. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  19931. },
  19932. {
  19933. "type": "boolean",
  19934. "enum": [false]
  19935. }
  19936. ]
  19937. },
  19938. "disabled": {
  19939. "type": "boolean"
  19940. },
  19941. "codemode": {
  19942. "type": "boolean"
  19943. },
  19944. "timeout": {
  19945. "type": "object",
  19946. "properties": {
  19947. "startup": {
  19948. "type": "integer",
  19949. "allOf": [
  19950. {
  19951. "exclusiveMinimum": 0
  19952. }
  19953. ]
  19954. },
  19955. "catalog": {
  19956. "type": "integer",
  19957. "allOf": [
  19958. {
  19959. "exclusiveMinimum": 0
  19960. }
  19961. ]
  19962. },
  19963. "execution": {
  19964. "type": "integer",
  19965. "allOf": [
  19966. {
  19967. "exclusiveMinimum": 0
  19968. }
  19969. ]
  19970. }
  19971. },
  19972. "additionalProperties": false
  19973. }
  19974. },
  19975. "required": ["type", "url"],
  19976. "additionalProperties": false
  19977. },
  19978. "McpServerNotFoundError": {
  19979. "type": "object",
  19980. "properties": {
  19981. "_tag": {
  19982. "type": "string",
  19983. "enum": ["McpServerNotFoundError"]
  19984. },
  19985. "server": {
  19986. "type": "string"
  19987. },
  19988. "message": {
  19989. "type": "string"
  19990. }
  19991. },
  19992. "required": ["_tag", "server", "message"],
  19993. "additionalProperties": false
  19994. },
  19995. "Mcp.Resource": {
  19996. "type": "object",
  19997. "properties": {
  19998. "server": {
  19999. "type": "string"
  20000. },
  20001. "name": {
  20002. "type": "string"
  20003. },
  20004. "uri": {
  20005. "type": "string"
  20006. },
  20007. "description": {
  20008. "type": "string"
  20009. },
  20010. "mimeType": {
  20011. "type": "string"
  20012. }
  20013. },
  20014. "required": ["server", "name", "uri"],
  20015. "additionalProperties": false
  20016. },
  20017. "Mcp.ResourceTemplate": {
  20018. "type": "object",
  20019. "properties": {
  20020. "server": {
  20021. "type": "string"
  20022. },
  20023. "name": {
  20024. "type": "string"
  20025. },
  20026. "uriTemplate": {
  20027. "type": "string"
  20028. },
  20029. "description": {
  20030. "type": "string"
  20031. },
  20032. "mimeType": {
  20033. "type": "string"
  20034. }
  20035. },
  20036. "required": ["server", "name", "uriTemplate"],
  20037. "additionalProperties": false
  20038. },
  20039. "Mcp.ResourceCatalog": {
  20040. "type": "object",
  20041. "properties": {
  20042. "resources": {
  20043. "type": "array",
  20044. "items": {
  20045. "$ref": "#/components/schemas/Mcp.Resource"
  20046. }
  20047. },
  20048. "templates": {
  20049. "type": "array",
  20050. "items": {
  20051. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  20052. }
  20053. }
  20054. },
  20055. "required": ["resources", "templates"],
  20056. "additionalProperties": false
  20057. },
  20058. "Project.Vcs": {
  20059. "type": "string",
  20060. "enum": ["git", "hg"]
  20061. },
  20062. "Project.Icon": {
  20063. "type": "object",
  20064. "properties": {
  20065. "url": {
  20066. "type": "string"
  20067. },
  20068. "override": {
  20069. "type": "string"
  20070. },
  20071. "color": {
  20072. "type": "string"
  20073. }
  20074. },
  20075. "additionalProperties": false
  20076. },
  20077. "Project.Commands": {
  20078. "type": "object",
  20079. "properties": {
  20080. "start": {
  20081. "type": "string",
  20082. "description": "Startup script to run when creating a new workspace (worktree)"
  20083. }
  20084. },
  20085. "additionalProperties": false
  20086. },
  20087. "Project.Time": {
  20088. "type": "object",
  20089. "properties": {
  20090. "created": {
  20091. "type": "integer",
  20092. "allOf": [
  20093. {
  20094. "minimum": 0
  20095. }
  20096. ]
  20097. },
  20098. "updated": {
  20099. "type": "integer",
  20100. "allOf": [
  20101. {
  20102. "minimum": 0
  20103. }
  20104. ]
  20105. },
  20106. "initialized": {
  20107. "type": "integer",
  20108. "allOf": [
  20109. {
  20110. "minimum": 0
  20111. }
  20112. ]
  20113. }
  20114. },
  20115. "required": ["created", "updated"],
  20116. "additionalProperties": false
  20117. },
  20118. "Project": {
  20119. "type": "object",
  20120. "properties": {
  20121. "id": {
  20122. "type": "string"
  20123. },
  20124. "canonical": {
  20125. "type": "string"
  20126. },
  20127. "vcs": {
  20128. "$ref": "#/components/schemas/Project.Vcs"
  20129. },
  20130. "name": {
  20131. "type": "string"
  20132. },
  20133. "icon": {
  20134. "$ref": "#/components/schemas/Project.Icon"
  20135. },
  20136. "commands": {
  20137. "$ref": "#/components/schemas/Project.Commands"
  20138. },
  20139. "time": {
  20140. "$ref": "#/components/schemas/Project.Time"
  20141. },
  20142. "sandboxes": {
  20143. "type": "array",
  20144. "items": {
  20145. "type": "string"
  20146. }
  20147. }
  20148. },
  20149. "required": ["id", "canonical", "time", "sandboxes"],
  20150. "additionalProperties": false
  20151. },
  20152. "Project.Current": {
  20153. "type": "object",
  20154. "properties": {
  20155. "id": {
  20156. "type": "string"
  20157. },
  20158. "directory": {
  20159. "type": "string"
  20160. },
  20161. "canonical": {
  20162. "type": "string"
  20163. }
  20164. },
  20165. "required": ["id", "directory", "canonical"],
  20166. "additionalProperties": false
  20167. },
  20168. "Project.Directory": {
  20169. "type": "object",
  20170. "properties": {
  20171. "directory": {
  20172. "type": "string"
  20173. },
  20174. "strategy": {
  20175. "type": "string"
  20176. }
  20177. },
  20178. "required": ["directory"],
  20179. "additionalProperties": false
  20180. },
  20181. "Project.Directories": {
  20182. "type": "array",
  20183. "items": {
  20184. "$ref": "#/components/schemas/Project.Directory"
  20185. }
  20186. },
  20187. "Form.Metadata": {
  20188. "type": "object"
  20189. },
  20190. "Form.Info": {
  20191. "type": "object",
  20192. "properties": {
  20193. "id": {
  20194. "type": "string",
  20195. "allOf": [
  20196. {
  20197. "pattern": "^frm_"
  20198. }
  20199. ]
  20200. },
  20201. "sessionID": {
  20202. "type": "string"
  20203. },
  20204. "title": {
  20205. "type": "string"
  20206. },
  20207. "metadata": {
  20208. "$ref": "#/components/schemas/Form.Metadata"
  20209. },
  20210. "fields": {
  20211. "$ref": "#/components/schemas/Form.Fields"
  20212. }
  20213. },
  20214. "required": ["id", "sessionID", "title", "fields"],
  20215. "additionalProperties": false
  20216. },
  20217. "Form.CreatePayload": {
  20218. "type": "object",
  20219. "properties": {
  20220. "id": {
  20221. "anyOf": [
  20222. {
  20223. "type": "string",
  20224. "allOf": [
  20225. {
  20226. "pattern": "^frm_"
  20227. }
  20228. ]
  20229. },
  20230. {
  20231. "type": "null"
  20232. }
  20233. ]
  20234. },
  20235. "title": {
  20236. "type": "string"
  20237. },
  20238. "metadata": {
  20239. "$ref": "#/components/schemas/Form.Metadata"
  20240. },
  20241. "fields": {
  20242. "$ref": "#/components/schemas/Form.Fields"
  20243. }
  20244. },
  20245. "required": ["title", "fields"],
  20246. "additionalProperties": false
  20247. },
  20248. "FormNotFoundError": {
  20249. "type": "object",
  20250. "properties": {
  20251. "_tag": {
  20252. "type": "string",
  20253. "enum": ["FormNotFoundError"]
  20254. },
  20255. "id": {
  20256. "type": "string"
  20257. },
  20258. "message": {
  20259. "type": "string"
  20260. }
  20261. },
  20262. "required": ["_tag", "id", "message"],
  20263. "additionalProperties": false
  20264. },
  20265. "Form.State": {
  20266. "anyOf": [
  20267. {
  20268. "type": "object",
  20269. "properties": {
  20270. "status": {
  20271. "type": "string",
  20272. "enum": ["pending"]
  20273. }
  20274. },
  20275. "required": ["status"],
  20276. "additionalProperties": false
  20277. },
  20278. {
  20279. "type": "object",
  20280. "properties": {
  20281. "status": {
  20282. "type": "string",
  20283. "enum": ["answered"]
  20284. },
  20285. "answer": {
  20286. "$ref": "#/components/schemas/Form.Answer"
  20287. }
  20288. },
  20289. "required": ["status", "answer"],
  20290. "additionalProperties": false
  20291. },
  20292. {
  20293. "type": "object",
  20294. "properties": {
  20295. "status": {
  20296. "type": "string",
  20297. "enum": ["cancelled"]
  20298. }
  20299. },
  20300. "required": ["status"],
  20301. "additionalProperties": false
  20302. }
  20303. ]
  20304. },
  20305. "Form.Reply": {
  20306. "type": "object",
  20307. "properties": {
  20308. "answer": {
  20309. "$ref": "#/components/schemas/Form.Answer"
  20310. }
  20311. },
  20312. "required": ["answer"],
  20313. "additionalProperties": false
  20314. },
  20315. "FormAlreadySettledError": {
  20316. "type": "object",
  20317. "properties": {
  20318. "_tag": {
  20319. "type": "string",
  20320. "enum": ["FormAlreadySettledError"]
  20321. },
  20322. "id": {
  20323. "type": "string"
  20324. },
  20325. "message": {
  20326. "type": "string"
  20327. }
  20328. },
  20329. "required": ["_tag", "id", "message"],
  20330. "additionalProperties": false
  20331. },
  20332. "FormInvalidAnswerError": {
  20333. "type": "object",
  20334. "properties": {
  20335. "_tag": {
  20336. "type": "string",
  20337. "enum": ["FormInvalidAnswerError"]
  20338. },
  20339. "id": {
  20340. "type": "string"
  20341. },
  20342. "message": {
  20343. "type": "string"
  20344. }
  20345. },
  20346. "required": ["_tag", "id", "message"],
  20347. "additionalProperties": false
  20348. },
  20349. "Permission.Source": {
  20350. "anyOf": [
  20351. {
  20352. "type": "object",
  20353. "properties": {
  20354. "type": {
  20355. "type": "string",
  20356. "enum": ["tool"]
  20357. },
  20358. "messageID": {
  20359. "type": "string"
  20360. },
  20361. "id": {
  20362. "type": "string"
  20363. }
  20364. },
  20365. "required": ["type", "messageID", "id"],
  20366. "additionalProperties": false
  20367. }
  20368. ]
  20369. },
  20370. "Permission.Request": {
  20371. "type": "object",
  20372. "properties": {
  20373. "id": {
  20374. "type": "string",
  20375. "allOf": [
  20376. {
  20377. "pattern": "^per"
  20378. }
  20379. ]
  20380. },
  20381. "sessionID": {
  20382. "type": "string",
  20383. "allOf": [
  20384. {
  20385. "pattern": "^ses"
  20386. }
  20387. ]
  20388. },
  20389. "action": {
  20390. "type": "string"
  20391. },
  20392. "resources": {
  20393. "type": "array",
  20394. "items": {
  20395. "type": "string"
  20396. }
  20397. },
  20398. "save": {
  20399. "type": "array",
  20400. "items": {
  20401. "type": "string"
  20402. }
  20403. },
  20404. "metadata": {
  20405. "type": "object"
  20406. },
  20407. "source": {
  20408. "$ref": "#/components/schemas/Permission.Source"
  20409. }
  20410. },
  20411. "required": ["id", "sessionID", "action", "resources"],
  20412. "additionalProperties": false
  20413. },
  20414. "PermissionSaved.Info": {
  20415. "type": "object",
  20416. "properties": {
  20417. "id": {
  20418. "type": "string"
  20419. },
  20420. "projectID": {
  20421. "type": "string"
  20422. },
  20423. "action": {
  20424. "type": "string"
  20425. },
  20426. "resource": {
  20427. "type": "string"
  20428. }
  20429. },
  20430. "required": ["id", "projectID", "action", "resource"],
  20431. "additionalProperties": false
  20432. },
  20433. "PermissionNotFoundError": {
  20434. "type": "object",
  20435. "properties": {
  20436. "_tag": {
  20437. "type": "string",
  20438. "enum": ["PermissionNotFoundError"]
  20439. },
  20440. "requestID": {
  20441. "type": "string"
  20442. },
  20443. "message": {
  20444. "type": "string"
  20445. }
  20446. },
  20447. "required": ["_tag", "requestID", "message"],
  20448. "additionalProperties": false
  20449. },
  20450. "Permission.Reply": {
  20451. "type": "string",
  20452. "enum": ["once", "always", "reject"]
  20453. },
  20454. "FileSystem.Entry": {
  20455. "type": "object",
  20456. "properties": {
  20457. "path": {
  20458. "type": "string"
  20459. },
  20460. "type": {
  20461. "type": "string",
  20462. "enum": ["file", "directory"]
  20463. }
  20464. },
  20465. "required": ["path", "type"],
  20466. "additionalProperties": false
  20467. },
  20468. "Command.Info": {
  20469. "type": "object",
  20470. "properties": {
  20471. "name": {
  20472. "type": "string"
  20473. },
  20474. "template": {
  20475. "type": "string"
  20476. },
  20477. "description": {
  20478. "type": "string"
  20479. },
  20480. "agent": {
  20481. "type": "string"
  20482. },
  20483. "model": {
  20484. "$ref": "#/components/schemas/Model.Ref"
  20485. },
  20486. "subtask": {
  20487. "type": "boolean"
  20488. }
  20489. },
  20490. "required": ["name", "template"],
  20491. "additionalProperties": false
  20492. },
  20493. "Skill.Info": {
  20494. "type": "object",
  20495. "properties": {
  20496. "id": {
  20497. "type": "string"
  20498. },
  20499. "name": {
  20500. "type": "string"
  20501. },
  20502. "description": {
  20503. "type": "string"
  20504. },
  20505. "slash": {
  20506. "type": "boolean"
  20507. },
  20508. "autoinvoke": {
  20509. "type": "boolean"
  20510. },
  20511. "location": {
  20512. "type": "string"
  20513. },
  20514. "content": {
  20515. "type": "string"
  20516. }
  20517. },
  20518. "required": ["id", "name", "location", "content"],
  20519. "additionalProperties": false
  20520. },
  20521. "models-dev.refreshed": {
  20522. "type": "object",
  20523. "properties": {
  20524. "id": {
  20525. "type": "string",
  20526. "allOf": [
  20527. {
  20528. "pattern": "^evt_"
  20529. }
  20530. ]
  20531. },
  20532. "created": {
  20533. "type": "number"
  20534. },
  20535. "metadata": {
  20536. "type": "object"
  20537. },
  20538. "type": {
  20539. "type": "string",
  20540. "enum": ["models-dev.refreshed"]
  20541. },
  20542. "location": {
  20543. "$ref": "#/components/schemas/Location.Ref"
  20544. },
  20545. "data": {
  20546. "anyOf": [
  20547. {
  20548. "type": "object"
  20549. },
  20550. {
  20551. "type": "array"
  20552. }
  20553. ]
  20554. }
  20555. },
  20556. "required": ["id", "created", "type", "data"],
  20557. "additionalProperties": false
  20558. },
  20559. "integration.updated": {
  20560. "type": "object",
  20561. "properties": {
  20562. "id": {
  20563. "type": "string",
  20564. "allOf": [
  20565. {
  20566. "pattern": "^evt_"
  20567. }
  20568. ]
  20569. },
  20570. "created": {
  20571. "type": "number"
  20572. },
  20573. "metadata": {
  20574. "type": "object"
  20575. },
  20576. "type": {
  20577. "type": "string",
  20578. "enum": ["integration.updated"]
  20579. },
  20580. "location": {
  20581. "$ref": "#/components/schemas/Location.Ref"
  20582. },
  20583. "data": {
  20584. "anyOf": [
  20585. {
  20586. "type": "object"
  20587. },
  20588. {
  20589. "type": "array"
  20590. }
  20591. ]
  20592. }
  20593. },
  20594. "required": ["id", "created", "type", "data"],
  20595. "additionalProperties": false
  20596. },
  20597. "integration.connection.updated": {
  20598. "type": "object",
  20599. "properties": {
  20600. "id": {
  20601. "type": "string",
  20602. "allOf": [
  20603. {
  20604. "pattern": "^evt_"
  20605. }
  20606. ]
  20607. },
  20608. "created": {
  20609. "type": "number"
  20610. },
  20611. "metadata": {
  20612. "type": "object"
  20613. },
  20614. "type": {
  20615. "type": "string",
  20616. "enum": ["integration.connection.updated"]
  20617. },
  20618. "location": {
  20619. "$ref": "#/components/schemas/Location.Ref"
  20620. },
  20621. "data": {
  20622. "type": "object",
  20623. "properties": {
  20624. "integrationID": {
  20625. "type": "string"
  20626. }
  20627. },
  20628. "required": ["integrationID"],
  20629. "additionalProperties": false
  20630. }
  20631. },
  20632. "required": ["id", "created", "type", "data"],
  20633. "additionalProperties": false
  20634. },
  20635. "catalog.updated": {
  20636. "type": "object",
  20637. "properties": {
  20638. "id": {
  20639. "type": "string",
  20640. "allOf": [
  20641. {
  20642. "pattern": "^evt_"
  20643. }
  20644. ]
  20645. },
  20646. "created": {
  20647. "type": "number"
  20648. },
  20649. "metadata": {
  20650. "type": "object"
  20651. },
  20652. "type": {
  20653. "type": "string",
  20654. "enum": ["catalog.updated"]
  20655. },
  20656. "location": {
  20657. "$ref": "#/components/schemas/Location.Ref"
  20658. },
  20659. "data": {
  20660. "anyOf": [
  20661. {
  20662. "type": "object"
  20663. },
  20664. {
  20665. "type": "array"
  20666. }
  20667. ]
  20668. }
  20669. },
  20670. "required": ["id", "created", "type", "data"],
  20671. "additionalProperties": false
  20672. },
  20673. "agent.updated": {
  20674. "type": "object",
  20675. "properties": {
  20676. "id": {
  20677. "type": "string",
  20678. "allOf": [
  20679. {
  20680. "pattern": "^evt_"
  20681. }
  20682. ]
  20683. },
  20684. "created": {
  20685. "type": "number"
  20686. },
  20687. "metadata": {
  20688. "type": "object"
  20689. },
  20690. "type": {
  20691. "type": "string",
  20692. "enum": ["agent.updated"]
  20693. },
  20694. "location": {
  20695. "$ref": "#/components/schemas/Location.Ref"
  20696. },
  20697. "data": {
  20698. "anyOf": [
  20699. {
  20700. "type": "object"
  20701. },
  20702. {
  20703. "type": "array"
  20704. }
  20705. ]
  20706. }
  20707. },
  20708. "required": ["id", "created", "type", "data"],
  20709. "additionalProperties": false
  20710. },
  20711. "session.usage.updated": {
  20712. "type": "object",
  20713. "properties": {
  20714. "id": {
  20715. "type": "string",
  20716. "allOf": [
  20717. {
  20718. "pattern": "^evt_"
  20719. }
  20720. ]
  20721. },
  20722. "created": {
  20723. "type": "number"
  20724. },
  20725. "metadata": {
  20726. "type": "object"
  20727. },
  20728. "type": {
  20729. "type": "string",
  20730. "enum": ["session.usage.updated"]
  20731. },
  20732. "location": {
  20733. "$ref": "#/components/schemas/Location.Ref"
  20734. },
  20735. "data": {
  20736. "type": "object",
  20737. "properties": {
  20738. "sessionID": {
  20739. "type": "string",
  20740. "allOf": [
  20741. {
  20742. "pattern": "^ses"
  20743. }
  20744. ]
  20745. },
  20746. "cost": {
  20747. "$ref": "#/components/schemas/Money.USD"
  20748. },
  20749. "tokens": {
  20750. "$ref": "#/components/schemas/TokenUsage.Info"
  20751. }
  20752. },
  20753. "required": ["sessionID", "cost", "tokens"],
  20754. "additionalProperties": false
  20755. }
  20756. },
  20757. "required": ["id", "created", "type", "data"],
  20758. "additionalProperties": false
  20759. },
  20760. "session.text.delta": {
  20761. "type": "object",
  20762. "properties": {
  20763. "id": {
  20764. "type": "string",
  20765. "allOf": [
  20766. {
  20767. "pattern": "^evt_"
  20768. }
  20769. ]
  20770. },
  20771. "created": {
  20772. "type": "number"
  20773. },
  20774. "metadata": {
  20775. "type": "object"
  20776. },
  20777. "type": {
  20778. "type": "string",
  20779. "enum": ["session.text.delta"]
  20780. },
  20781. "location": {
  20782. "$ref": "#/components/schemas/Location.Ref"
  20783. },
  20784. "data": {
  20785. "type": "object",
  20786. "properties": {
  20787. "sessionID": {
  20788. "type": "string",
  20789. "allOf": [
  20790. {
  20791. "pattern": "^ses"
  20792. }
  20793. ]
  20794. },
  20795. "assistantMessageID": {
  20796. "type": "string",
  20797. "allOf": [
  20798. {
  20799. "pattern": "^msg_"
  20800. }
  20801. ]
  20802. },
  20803. "ordinal": {
  20804. "type": "integer",
  20805. "allOf": [
  20806. {
  20807. "minimum": 0
  20808. }
  20809. ]
  20810. },
  20811. "delta": {
  20812. "type": "string"
  20813. }
  20814. },
  20815. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20816. "additionalProperties": false
  20817. }
  20818. },
  20819. "required": ["id", "created", "type", "data"],
  20820. "additionalProperties": false
  20821. },
  20822. "session.reasoning.delta": {
  20823. "type": "object",
  20824. "properties": {
  20825. "id": {
  20826. "type": "string",
  20827. "allOf": [
  20828. {
  20829. "pattern": "^evt_"
  20830. }
  20831. ]
  20832. },
  20833. "created": {
  20834. "type": "number"
  20835. },
  20836. "metadata": {
  20837. "type": "object"
  20838. },
  20839. "type": {
  20840. "type": "string",
  20841. "enum": ["session.reasoning.delta"]
  20842. },
  20843. "location": {
  20844. "$ref": "#/components/schemas/Location.Ref"
  20845. },
  20846. "data": {
  20847. "type": "object",
  20848. "properties": {
  20849. "sessionID": {
  20850. "type": "string",
  20851. "allOf": [
  20852. {
  20853. "pattern": "^ses"
  20854. }
  20855. ]
  20856. },
  20857. "assistantMessageID": {
  20858. "type": "string",
  20859. "allOf": [
  20860. {
  20861. "pattern": "^msg_"
  20862. }
  20863. ]
  20864. },
  20865. "ordinal": {
  20866. "type": "integer",
  20867. "allOf": [
  20868. {
  20869. "minimum": 0
  20870. }
  20871. ]
  20872. },
  20873. "delta": {
  20874. "type": "string"
  20875. }
  20876. },
  20877. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20878. "additionalProperties": false
  20879. }
  20880. },
  20881. "required": ["id", "created", "type", "data"],
  20882. "additionalProperties": false
  20883. },
  20884. "session.tool.input.delta": {
  20885. "type": "object",
  20886. "properties": {
  20887. "id": {
  20888. "type": "string",
  20889. "allOf": [
  20890. {
  20891. "pattern": "^evt_"
  20892. }
  20893. ]
  20894. },
  20895. "created": {
  20896. "type": "number"
  20897. },
  20898. "metadata": {
  20899. "type": "object"
  20900. },
  20901. "type": {
  20902. "type": "string",
  20903. "enum": ["session.tool.input.delta"]
  20904. },
  20905. "location": {
  20906. "$ref": "#/components/schemas/Location.Ref"
  20907. },
  20908. "data": {
  20909. "type": "object",
  20910. "properties": {
  20911. "sessionID": {
  20912. "type": "string",
  20913. "allOf": [
  20914. {
  20915. "pattern": "^ses"
  20916. }
  20917. ]
  20918. },
  20919. "assistantMessageID": {
  20920. "type": "string",
  20921. "allOf": [
  20922. {
  20923. "pattern": "^msg_"
  20924. }
  20925. ]
  20926. },
  20927. "id": {
  20928. "type": "string"
  20929. },
  20930. "delta": {
  20931. "type": "string"
  20932. }
  20933. },
  20934. "required": ["sessionID", "assistantMessageID", "id", "delta"],
  20935. "additionalProperties": false
  20936. }
  20937. },
  20938. "required": ["id", "created", "type", "data"],
  20939. "additionalProperties": false
  20940. },
  20941. "session.tool.progress": {
  20942. "type": "object",
  20943. "properties": {
  20944. "id": {
  20945. "type": "string",
  20946. "allOf": [
  20947. {
  20948. "pattern": "^evt_"
  20949. }
  20950. ]
  20951. },
  20952. "created": {
  20953. "type": "number"
  20954. },
  20955. "metadata": {
  20956. "type": "object"
  20957. },
  20958. "type": {
  20959. "type": "string",
  20960. "enum": ["session.tool.progress"]
  20961. },
  20962. "location": {
  20963. "$ref": "#/components/schemas/Location.Ref"
  20964. },
  20965. "data": {
  20966. "type": "object",
  20967. "properties": {
  20968. "sessionID": {
  20969. "type": "string",
  20970. "allOf": [
  20971. {
  20972. "pattern": "^ses"
  20973. }
  20974. ]
  20975. },
  20976. "assistantMessageID": {
  20977. "type": "string",
  20978. "allOf": [
  20979. {
  20980. "pattern": "^msg_"
  20981. }
  20982. ]
  20983. },
  20984. "id": {
  20985. "type": "string"
  20986. },
  20987. "metadata": {
  20988. "type": "object"
  20989. }
  20990. },
  20991. "required": ["sessionID", "assistantMessageID", "id", "metadata"],
  20992. "additionalProperties": false
  20993. }
  20994. },
  20995. "required": ["id", "created", "type", "data"],
  20996. "additionalProperties": false
  20997. },
  20998. "session.compaction.delta": {
  20999. "type": "object",
  21000. "properties": {
  21001. "id": {
  21002. "type": "string",
  21003. "allOf": [
  21004. {
  21005. "pattern": "^evt_"
  21006. }
  21007. ]
  21008. },
  21009. "created": {
  21010. "type": "number"
  21011. },
  21012. "metadata": {
  21013. "type": "object"
  21014. },
  21015. "type": {
  21016. "type": "string",
  21017. "enum": ["session.compaction.delta"]
  21018. },
  21019. "location": {
  21020. "$ref": "#/components/schemas/Location.Ref"
  21021. },
  21022. "data": {
  21023. "type": "object",
  21024. "properties": {
  21025. "sessionID": {
  21026. "type": "string",
  21027. "allOf": [
  21028. {
  21029. "pattern": "^ses"
  21030. }
  21031. ]
  21032. },
  21033. "text": {
  21034. "type": "string"
  21035. }
  21036. },
  21037. "required": ["sessionID", "text"],
  21038. "additionalProperties": false
  21039. }
  21040. },
  21041. "required": ["id", "created", "type", "data"],
  21042. "additionalProperties": false
  21043. },
  21044. "filesystem.changed": {
  21045. "type": "object",
  21046. "properties": {
  21047. "id": {
  21048. "type": "string",
  21049. "allOf": [
  21050. {
  21051. "pattern": "^evt_"
  21052. }
  21053. ]
  21054. },
  21055. "created": {
  21056. "type": "number"
  21057. },
  21058. "metadata": {
  21059. "type": "object"
  21060. },
  21061. "type": {
  21062. "type": "string",
  21063. "enum": ["filesystem.changed"]
  21064. },
  21065. "location": {
  21066. "$ref": "#/components/schemas/Location.Ref"
  21067. },
  21068. "data": {
  21069. "type": "object",
  21070. "properties": {
  21071. "file": {
  21072. "type": "string"
  21073. },
  21074. "event": {
  21075. "type": "string",
  21076. "enum": ["add", "change", "unlink"]
  21077. }
  21078. },
  21079. "required": ["file", "event"],
  21080. "additionalProperties": false
  21081. }
  21082. },
  21083. "required": ["id", "created", "type", "data"],
  21084. "additionalProperties": false
  21085. },
  21086. "reference.updated": {
  21087. "type": "object",
  21088. "properties": {
  21089. "id": {
  21090. "type": "string",
  21091. "allOf": [
  21092. {
  21093. "pattern": "^evt_"
  21094. }
  21095. ]
  21096. },
  21097. "created": {
  21098. "type": "number"
  21099. },
  21100. "metadata": {
  21101. "type": "object"
  21102. },
  21103. "type": {
  21104. "type": "string",
  21105. "enum": ["reference.updated"]
  21106. },
  21107. "location": {
  21108. "$ref": "#/components/schemas/Location.Ref"
  21109. },
  21110. "data": {
  21111. "anyOf": [
  21112. {
  21113. "type": "object"
  21114. },
  21115. {
  21116. "type": "array"
  21117. }
  21118. ]
  21119. }
  21120. },
  21121. "required": ["id", "created", "type", "data"],
  21122. "additionalProperties": false
  21123. },
  21124. "permission.asked": {
  21125. "type": "object",
  21126. "properties": {
  21127. "id": {
  21128. "type": "string",
  21129. "allOf": [
  21130. {
  21131. "pattern": "^evt_"
  21132. }
  21133. ]
  21134. },
  21135. "created": {
  21136. "type": "number"
  21137. },
  21138. "metadata": {
  21139. "type": "object"
  21140. },
  21141. "type": {
  21142. "type": "string",
  21143. "enum": ["permission.asked"]
  21144. },
  21145. "location": {
  21146. "$ref": "#/components/schemas/Location.Ref"
  21147. },
  21148. "data": {
  21149. "type": "object",
  21150. "properties": {
  21151. "id": {
  21152. "type": "string",
  21153. "allOf": [
  21154. {
  21155. "pattern": "^per"
  21156. }
  21157. ]
  21158. },
  21159. "sessionID": {
  21160. "type": "string",
  21161. "allOf": [
  21162. {
  21163. "pattern": "^ses"
  21164. }
  21165. ]
  21166. },
  21167. "action": {
  21168. "type": "string"
  21169. },
  21170. "resources": {
  21171. "type": "array",
  21172. "items": {
  21173. "type": "string"
  21174. }
  21175. },
  21176. "save": {
  21177. "type": "array",
  21178. "items": {
  21179. "type": "string"
  21180. }
  21181. },
  21182. "metadata": {
  21183. "type": "object"
  21184. },
  21185. "source": {
  21186. "$ref": "#/components/schemas/Permission.Source"
  21187. }
  21188. },
  21189. "required": ["id", "sessionID", "action", "resources"],
  21190. "additionalProperties": false
  21191. }
  21192. },
  21193. "required": ["id", "created", "type", "data"],
  21194. "additionalProperties": false
  21195. },
  21196. "permission.replied": {
  21197. "type": "object",
  21198. "properties": {
  21199. "id": {
  21200. "type": "string",
  21201. "allOf": [
  21202. {
  21203. "pattern": "^evt_"
  21204. }
  21205. ]
  21206. },
  21207. "created": {
  21208. "type": "number"
  21209. },
  21210. "metadata": {
  21211. "type": "object"
  21212. },
  21213. "type": {
  21214. "type": "string",
  21215. "enum": ["permission.replied"]
  21216. },
  21217. "location": {
  21218. "$ref": "#/components/schemas/Location.Ref"
  21219. },
  21220. "data": {
  21221. "type": "object",
  21222. "properties": {
  21223. "sessionID": {
  21224. "type": "string",
  21225. "allOf": [
  21226. {
  21227. "pattern": "^ses"
  21228. }
  21229. ]
  21230. },
  21231. "requestID": {
  21232. "type": "string",
  21233. "allOf": [
  21234. {
  21235. "pattern": "^per"
  21236. }
  21237. ]
  21238. },
  21239. "reply": {
  21240. "$ref": "#/components/schemas/Permission.Reply"
  21241. }
  21242. },
  21243. "required": ["sessionID", "requestID", "reply"],
  21244. "additionalProperties": false
  21245. }
  21246. },
  21247. "required": ["id", "created", "type", "data"],
  21248. "additionalProperties": false
  21249. },
  21250. "plugin.added": {
  21251. "type": "object",
  21252. "properties": {
  21253. "id": {
  21254. "type": "string",
  21255. "allOf": [
  21256. {
  21257. "pattern": "^evt_"
  21258. }
  21259. ]
  21260. },
  21261. "created": {
  21262. "type": "number"
  21263. },
  21264. "metadata": {
  21265. "type": "object"
  21266. },
  21267. "type": {
  21268. "type": "string",
  21269. "enum": ["plugin.added"]
  21270. },
  21271. "location": {
  21272. "$ref": "#/components/schemas/Location.Ref"
  21273. },
  21274. "data": {
  21275. "type": "object",
  21276. "properties": {
  21277. "id": {
  21278. "type": "string"
  21279. }
  21280. },
  21281. "required": ["id"],
  21282. "additionalProperties": false
  21283. }
  21284. },
  21285. "required": ["id", "created", "type", "data"],
  21286. "additionalProperties": false
  21287. },
  21288. "plugin.updated": {
  21289. "type": "object",
  21290. "properties": {
  21291. "id": {
  21292. "type": "string",
  21293. "allOf": [
  21294. {
  21295. "pattern": "^evt_"
  21296. }
  21297. ]
  21298. },
  21299. "created": {
  21300. "type": "number"
  21301. },
  21302. "metadata": {
  21303. "type": "object"
  21304. },
  21305. "type": {
  21306. "type": "string",
  21307. "enum": ["plugin.updated"]
  21308. },
  21309. "location": {
  21310. "$ref": "#/components/schemas/Location.Ref"
  21311. },
  21312. "data": {
  21313. "anyOf": [
  21314. {
  21315. "type": "object"
  21316. },
  21317. {
  21318. "type": "array"
  21319. }
  21320. ]
  21321. }
  21322. },
  21323. "required": ["id", "created", "type", "data"],
  21324. "additionalProperties": false
  21325. },
  21326. "project.directories.updated": {
  21327. "type": "object",
  21328. "properties": {
  21329. "id": {
  21330. "type": "string",
  21331. "allOf": [
  21332. {
  21333. "pattern": "^evt_"
  21334. }
  21335. ]
  21336. },
  21337. "created": {
  21338. "type": "number"
  21339. },
  21340. "metadata": {
  21341. "type": "object"
  21342. },
  21343. "type": {
  21344. "type": "string",
  21345. "enum": ["project.directories.updated"]
  21346. },
  21347. "location": {
  21348. "$ref": "#/components/schemas/Location.Ref"
  21349. },
  21350. "data": {
  21351. "type": "object",
  21352. "properties": {
  21353. "projectID": {
  21354. "type": "string"
  21355. }
  21356. },
  21357. "required": ["projectID"],
  21358. "additionalProperties": false
  21359. }
  21360. },
  21361. "required": ["id", "created", "type", "data"],
  21362. "additionalProperties": false
  21363. },
  21364. "project.directory.resolved": {
  21365. "type": "object",
  21366. "properties": {
  21367. "id": {
  21368. "type": "string",
  21369. "allOf": [
  21370. {
  21371. "pattern": "^evt_"
  21372. }
  21373. ]
  21374. },
  21375. "created": {
  21376. "type": "number"
  21377. },
  21378. "metadata": {
  21379. "type": "object"
  21380. },
  21381. "type": {
  21382. "type": "string",
  21383. "enum": ["project.directory.resolved"]
  21384. },
  21385. "durable": {
  21386. "type": "object",
  21387. "properties": {
  21388. "aggregateID": {
  21389. "type": "string"
  21390. },
  21391. "seq": {
  21392. "type": "integer",
  21393. "allOf": [
  21394. {
  21395. "minimum": 0
  21396. }
  21397. ]
  21398. },
  21399. "version": {
  21400. "type": "number",
  21401. "enum": [1]
  21402. }
  21403. },
  21404. "required": ["aggregateID", "seq", "version"],
  21405. "additionalProperties": false
  21406. },
  21407. "location": {
  21408. "$ref": "#/components/schemas/Location.Ref"
  21409. },
  21410. "data": {
  21411. "type": "object",
  21412. "properties": {
  21413. "projectID": {
  21414. "type": "string"
  21415. },
  21416. "directory": {
  21417. "type": "string"
  21418. },
  21419. "previous": {
  21420. "type": "string"
  21421. }
  21422. },
  21423. "required": ["projectID", "directory", "previous"],
  21424. "additionalProperties": false
  21425. }
  21426. },
  21427. "required": ["id", "created", "type", "durable", "data"],
  21428. "additionalProperties": false
  21429. },
  21430. "command.updated": {
  21431. "type": "object",
  21432. "properties": {
  21433. "id": {
  21434. "type": "string",
  21435. "allOf": [
  21436. {
  21437. "pattern": "^evt_"
  21438. }
  21439. ]
  21440. },
  21441. "created": {
  21442. "type": "number"
  21443. },
  21444. "metadata": {
  21445. "type": "object"
  21446. },
  21447. "type": {
  21448. "type": "string",
  21449. "enum": ["command.updated"]
  21450. },
  21451. "location": {
  21452. "$ref": "#/components/schemas/Location.Ref"
  21453. },
  21454. "data": {
  21455. "anyOf": [
  21456. {
  21457. "type": "object"
  21458. },
  21459. {
  21460. "type": "array"
  21461. }
  21462. ]
  21463. }
  21464. },
  21465. "required": ["id", "created", "type", "data"],
  21466. "additionalProperties": false
  21467. },
  21468. "config.updated": {
  21469. "type": "object",
  21470. "properties": {
  21471. "id": {
  21472. "type": "string",
  21473. "allOf": [
  21474. {
  21475. "pattern": "^evt_"
  21476. }
  21477. ]
  21478. },
  21479. "created": {
  21480. "type": "number"
  21481. },
  21482. "metadata": {
  21483. "type": "object"
  21484. },
  21485. "type": {
  21486. "type": "string",
  21487. "enum": ["config.updated"]
  21488. },
  21489. "location": {
  21490. "$ref": "#/components/schemas/Location.Ref"
  21491. },
  21492. "data": {
  21493. "anyOf": [
  21494. {
  21495. "type": "object"
  21496. },
  21497. {
  21498. "type": "array"
  21499. }
  21500. ]
  21501. }
  21502. },
  21503. "required": ["id", "created", "type", "data"],
  21504. "additionalProperties": false
  21505. },
  21506. "skill.updated": {
  21507. "type": "object",
  21508. "properties": {
  21509. "id": {
  21510. "type": "string",
  21511. "allOf": [
  21512. {
  21513. "pattern": "^evt_"
  21514. }
  21515. ]
  21516. },
  21517. "created": {
  21518. "type": "number"
  21519. },
  21520. "metadata": {
  21521. "type": "object"
  21522. },
  21523. "type": {
  21524. "type": "string",
  21525. "enum": ["skill.updated"]
  21526. },
  21527. "location": {
  21528. "$ref": "#/components/schemas/Location.Ref"
  21529. },
  21530. "data": {
  21531. "anyOf": [
  21532. {
  21533. "type": "object"
  21534. },
  21535. {
  21536. "type": "array"
  21537. }
  21538. ]
  21539. }
  21540. },
  21541. "required": ["id", "created", "type", "data"],
  21542. "additionalProperties": false
  21543. },
  21544. "Pty": {
  21545. "type": "object",
  21546. "properties": {
  21547. "id": {
  21548. "type": "string",
  21549. "allOf": [
  21550. {
  21551. "pattern": "^pty"
  21552. }
  21553. ]
  21554. },
  21555. "title": {
  21556. "type": "string"
  21557. },
  21558. "command": {
  21559. "type": "string"
  21560. },
  21561. "args": {
  21562. "type": "array",
  21563. "items": {
  21564. "type": "string"
  21565. }
  21566. },
  21567. "cwd": {
  21568. "type": "string"
  21569. },
  21570. "status": {
  21571. "type": "string",
  21572. "enum": ["running", "exited"]
  21573. },
  21574. "pid": {
  21575. "type": "integer",
  21576. "allOf": [
  21577. {
  21578. "minimum": 0
  21579. }
  21580. ]
  21581. },
  21582. "exitCode": {
  21583. "type": "integer",
  21584. "allOf": [
  21585. {
  21586. "minimum": 0
  21587. }
  21588. ]
  21589. }
  21590. },
  21591. "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
  21592. "additionalProperties": false
  21593. },
  21594. "pty.created": {
  21595. "type": "object",
  21596. "properties": {
  21597. "id": {
  21598. "type": "string",
  21599. "allOf": [
  21600. {
  21601. "pattern": "^evt_"
  21602. }
  21603. ]
  21604. },
  21605. "created": {
  21606. "type": "number"
  21607. },
  21608. "metadata": {
  21609. "type": "object"
  21610. },
  21611. "type": {
  21612. "type": "string",
  21613. "enum": ["pty.created"]
  21614. },
  21615. "location": {
  21616. "$ref": "#/components/schemas/Location.Ref"
  21617. },
  21618. "data": {
  21619. "type": "object",
  21620. "properties": {
  21621. "info": {
  21622. "$ref": "#/components/schemas/Pty"
  21623. }
  21624. },
  21625. "required": ["info"],
  21626. "additionalProperties": false
  21627. }
  21628. },
  21629. "required": ["id", "created", "type", "data"],
  21630. "additionalProperties": false
  21631. },
  21632. "pty.updated": {
  21633. "type": "object",
  21634. "properties": {
  21635. "id": {
  21636. "type": "string",
  21637. "allOf": [
  21638. {
  21639. "pattern": "^evt_"
  21640. }
  21641. ]
  21642. },
  21643. "created": {
  21644. "type": "number"
  21645. },
  21646. "metadata": {
  21647. "type": "object"
  21648. },
  21649. "type": {
  21650. "type": "string",
  21651. "enum": ["pty.updated"]
  21652. },
  21653. "location": {
  21654. "$ref": "#/components/schemas/Location.Ref"
  21655. },
  21656. "data": {
  21657. "type": "object",
  21658. "properties": {
  21659. "info": {
  21660. "$ref": "#/components/schemas/Pty"
  21661. }
  21662. },
  21663. "required": ["info"],
  21664. "additionalProperties": false
  21665. }
  21666. },
  21667. "required": ["id", "created", "type", "data"],
  21668. "additionalProperties": false
  21669. },
  21670. "pty.exited": {
  21671. "type": "object",
  21672. "properties": {
  21673. "id": {
  21674. "type": "string",
  21675. "allOf": [
  21676. {
  21677. "pattern": "^evt_"
  21678. }
  21679. ]
  21680. },
  21681. "created": {
  21682. "type": "number"
  21683. },
  21684. "metadata": {
  21685. "type": "object"
  21686. },
  21687. "type": {
  21688. "type": "string",
  21689. "enum": ["pty.exited"]
  21690. },
  21691. "location": {
  21692. "$ref": "#/components/schemas/Location.Ref"
  21693. },
  21694. "data": {
  21695. "type": "object",
  21696. "properties": {
  21697. "id": {
  21698. "type": "string",
  21699. "allOf": [
  21700. {
  21701. "pattern": "^pty"
  21702. }
  21703. ]
  21704. },
  21705. "exitCode": {
  21706. "type": "integer",
  21707. "allOf": [
  21708. {
  21709. "minimum": 0
  21710. }
  21711. ]
  21712. }
  21713. },
  21714. "required": ["id", "exitCode"],
  21715. "additionalProperties": false
  21716. }
  21717. },
  21718. "required": ["id", "created", "type", "data"],
  21719. "additionalProperties": false
  21720. },
  21721. "pty.deleted": {
  21722. "type": "object",
  21723. "properties": {
  21724. "id": {
  21725. "type": "string",
  21726. "allOf": [
  21727. {
  21728. "pattern": "^evt_"
  21729. }
  21730. ]
  21731. },
  21732. "created": {
  21733. "type": "number"
  21734. },
  21735. "metadata": {
  21736. "type": "object"
  21737. },
  21738. "type": {
  21739. "type": "string",
  21740. "enum": ["pty.deleted"]
  21741. },
  21742. "location": {
  21743. "$ref": "#/components/schemas/Location.Ref"
  21744. },
  21745. "data": {
  21746. "type": "object",
  21747. "properties": {
  21748. "id": {
  21749. "type": "string",
  21750. "allOf": [
  21751. {
  21752. "pattern": "^pty"
  21753. }
  21754. ]
  21755. }
  21756. },
  21757. "required": ["id"],
  21758. "additionalProperties": false
  21759. }
  21760. },
  21761. "required": ["id", "created", "type", "data"],
  21762. "additionalProperties": false
  21763. },
  21764. "shell.created": {
  21765. "type": "object",
  21766. "properties": {
  21767. "id": {
  21768. "type": "string",
  21769. "allOf": [
  21770. {
  21771. "pattern": "^evt_"
  21772. }
  21773. ]
  21774. },
  21775. "created": {
  21776. "type": "number"
  21777. },
  21778. "metadata": {
  21779. "type": "object"
  21780. },
  21781. "type": {
  21782. "type": "string",
  21783. "enum": ["shell.created"]
  21784. },
  21785. "location": {
  21786. "$ref": "#/components/schemas/Location.Ref"
  21787. },
  21788. "data": {
  21789. "type": "object",
  21790. "properties": {
  21791. "info": {
  21792. "$ref": "#/components/schemas/Shell.Info"
  21793. }
  21794. },
  21795. "required": ["info"],
  21796. "additionalProperties": false
  21797. }
  21798. },
  21799. "required": ["id", "created", "type", "data"],
  21800. "additionalProperties": false
  21801. },
  21802. "shell.exited": {
  21803. "type": "object",
  21804. "properties": {
  21805. "id": {
  21806. "type": "string",
  21807. "allOf": [
  21808. {
  21809. "pattern": "^evt_"
  21810. }
  21811. ]
  21812. },
  21813. "created": {
  21814. "type": "number"
  21815. },
  21816. "metadata": {
  21817. "type": "object"
  21818. },
  21819. "type": {
  21820. "type": "string",
  21821. "enum": ["shell.exited"]
  21822. },
  21823. "location": {
  21824. "$ref": "#/components/schemas/Location.Ref"
  21825. },
  21826. "data": {
  21827. "type": "object",
  21828. "properties": {
  21829. "id": {
  21830. "type": "string",
  21831. "allOf": [
  21832. {
  21833. "pattern": "^sh_"
  21834. }
  21835. ]
  21836. },
  21837. "exit": {
  21838. "type": "number"
  21839. },
  21840. "status": {
  21841. "type": "string",
  21842. "enum": ["running", "exited", "timeout", "killed"]
  21843. }
  21844. },
  21845. "required": ["id", "status"],
  21846. "additionalProperties": false
  21847. }
  21848. },
  21849. "required": ["id", "created", "type", "data"],
  21850. "additionalProperties": false
  21851. },
  21852. "shell.deleted": {
  21853. "type": "object",
  21854. "properties": {
  21855. "id": {
  21856. "type": "string",
  21857. "allOf": [
  21858. {
  21859. "pattern": "^evt_"
  21860. }
  21861. ]
  21862. },
  21863. "created": {
  21864. "type": "number"
  21865. },
  21866. "metadata": {
  21867. "type": "object"
  21868. },
  21869. "type": {
  21870. "type": "string",
  21871. "enum": ["shell.deleted"]
  21872. },
  21873. "location": {
  21874. "$ref": "#/components/schemas/Location.Ref"
  21875. },
  21876. "data": {
  21877. "type": "object",
  21878. "properties": {
  21879. "id": {
  21880. "type": "string",
  21881. "allOf": [
  21882. {
  21883. "pattern": "^sh_"
  21884. }
  21885. ]
  21886. }
  21887. },
  21888. "required": ["id"],
  21889. "additionalProperties": false
  21890. }
  21891. },
  21892. "required": ["id", "created", "type", "data"],
  21893. "additionalProperties": false
  21894. },
  21895. "Question.Option": {
  21896. "type": "object",
  21897. "properties": {
  21898. "label": {
  21899. "type": "string",
  21900. "description": "Display text (1-5 words, concise)"
  21901. },
  21902. "description": {
  21903. "type": "string",
  21904. "description": "Explanation of choice"
  21905. }
  21906. },
  21907. "required": ["label", "description"],
  21908. "additionalProperties": false
  21909. },
  21910. "Question.Info": {
  21911. "type": "object",
  21912. "properties": {
  21913. "question": {
  21914. "type": "string",
  21915. "description": "Complete question"
  21916. },
  21917. "header": {
  21918. "type": "string",
  21919. "description": "Very short label (max 30 chars)"
  21920. },
  21921. "options": {
  21922. "type": "array",
  21923. "items": {
  21924. "$ref": "#/components/schemas/Question.Option"
  21925. },
  21926. "description": "Available choices"
  21927. },
  21928. "multiple": {
  21929. "type": "boolean"
  21930. },
  21931. "custom": {
  21932. "type": "boolean"
  21933. }
  21934. },
  21935. "required": ["question", "header", "options"],
  21936. "additionalProperties": false
  21937. },
  21938. "Question.Tool": {
  21939. "type": "object",
  21940. "properties": {
  21941. "messageID": {
  21942. "type": "string"
  21943. },
  21944. "id": {
  21945. "type": "string"
  21946. }
  21947. },
  21948. "required": ["messageID", "id"],
  21949. "additionalProperties": false
  21950. },
  21951. "question.asked": {
  21952. "type": "object",
  21953. "properties": {
  21954. "id": {
  21955. "type": "string",
  21956. "allOf": [
  21957. {
  21958. "pattern": "^evt_"
  21959. }
  21960. ]
  21961. },
  21962. "created": {
  21963. "type": "number"
  21964. },
  21965. "metadata": {
  21966. "type": "object"
  21967. },
  21968. "type": {
  21969. "type": "string",
  21970. "enum": ["question.asked"]
  21971. },
  21972. "location": {
  21973. "$ref": "#/components/schemas/Location.Ref"
  21974. },
  21975. "data": {
  21976. "type": "object",
  21977. "properties": {
  21978. "id": {
  21979. "type": "string",
  21980. "allOf": [
  21981. {
  21982. "pattern": "^que"
  21983. }
  21984. ]
  21985. },
  21986. "sessionID": {
  21987. "type": "string",
  21988. "allOf": [
  21989. {
  21990. "pattern": "^ses"
  21991. }
  21992. ]
  21993. },
  21994. "questions": {
  21995. "type": "array",
  21996. "items": {
  21997. "$ref": "#/components/schemas/Question.Info"
  21998. },
  21999. "description": "Questions to ask"
  22000. },
  22001. "tool": {
  22002. "$ref": "#/components/schemas/Question.Tool"
  22003. }
  22004. },
  22005. "required": ["id", "sessionID", "questions"],
  22006. "additionalProperties": false
  22007. }
  22008. },
  22009. "required": ["id", "created", "type", "data"],
  22010. "additionalProperties": false
  22011. },
  22012. "Question.Answer": {
  22013. "type": "array",
  22014. "items": {
  22015. "type": "string"
  22016. }
  22017. },
  22018. "question.replied": {
  22019. "type": "object",
  22020. "properties": {
  22021. "id": {
  22022. "type": "string",
  22023. "allOf": [
  22024. {
  22025. "pattern": "^evt_"
  22026. }
  22027. ]
  22028. },
  22029. "created": {
  22030. "type": "number"
  22031. },
  22032. "metadata": {
  22033. "type": "object"
  22034. },
  22035. "type": {
  22036. "type": "string",
  22037. "enum": ["question.replied"]
  22038. },
  22039. "location": {
  22040. "$ref": "#/components/schemas/Location.Ref"
  22041. },
  22042. "data": {
  22043. "type": "object",
  22044. "properties": {
  22045. "sessionID": {
  22046. "type": "string",
  22047. "allOf": [
  22048. {
  22049. "pattern": "^ses"
  22050. }
  22051. ]
  22052. },
  22053. "requestID": {
  22054. "type": "string",
  22055. "allOf": [
  22056. {
  22057. "pattern": "^que"
  22058. }
  22059. ]
  22060. },
  22061. "answers": {
  22062. "type": "array",
  22063. "items": {
  22064. "$ref": "#/components/schemas/Question.Answer"
  22065. }
  22066. }
  22067. },
  22068. "required": ["sessionID", "requestID", "answers"],
  22069. "additionalProperties": false
  22070. }
  22071. },
  22072. "required": ["id", "created", "type", "data"],
  22073. "additionalProperties": false
  22074. },
  22075. "question.rejected": {
  22076. "type": "object",
  22077. "properties": {
  22078. "id": {
  22079. "type": "string",
  22080. "allOf": [
  22081. {
  22082. "pattern": "^evt_"
  22083. }
  22084. ]
  22085. },
  22086. "created": {
  22087. "type": "number"
  22088. },
  22089. "metadata": {
  22090. "type": "object"
  22091. },
  22092. "type": {
  22093. "type": "string",
  22094. "enum": ["question.rejected"]
  22095. },
  22096. "location": {
  22097. "$ref": "#/components/schemas/Location.Ref"
  22098. },
  22099. "data": {
  22100. "type": "object",
  22101. "properties": {
  22102. "sessionID": {
  22103. "type": "string",
  22104. "allOf": [
  22105. {
  22106. "pattern": "^ses"
  22107. }
  22108. ]
  22109. },
  22110. "requestID": {
  22111. "type": "string",
  22112. "allOf": [
  22113. {
  22114. "pattern": "^que"
  22115. }
  22116. ]
  22117. }
  22118. },
  22119. "required": ["sessionID", "requestID"],
  22120. "additionalProperties": false
  22121. }
  22122. },
  22123. "required": ["id", "created", "type", "data"],
  22124. "additionalProperties": false
  22125. },
  22126. "Form.Metadata1": {
  22127. "type": "object"
  22128. },
  22129. "Form.When1": {
  22130. "type": "object",
  22131. "properties": {
  22132. "key": {
  22133. "type": "string"
  22134. },
  22135. "op": {
  22136. "type": "string",
  22137. "enum": ["eq", "neq"]
  22138. },
  22139. "value": {
  22140. "anyOf": [
  22141. {
  22142. "type": "string"
  22143. },
  22144. {
  22145. "anyOf": [
  22146. {
  22147. "type": "number"
  22148. },
  22149. {
  22150. "type": "string",
  22151. "enum": ["NaN"]
  22152. },
  22153. {
  22154. "type": "string",
  22155. "enum": ["Infinity"]
  22156. },
  22157. {
  22158. "type": "string",
  22159. "enum": ["-Infinity"]
  22160. }
  22161. ]
  22162. },
  22163. {
  22164. "type": "boolean"
  22165. }
  22166. ]
  22167. }
  22168. },
  22169. "required": ["key", "op", "value"],
  22170. "additionalProperties": false
  22171. },
  22172. "Form.StringField1": {
  22173. "type": "object",
  22174. "properties": {
  22175. "key": {
  22176. "type": "string"
  22177. },
  22178. "title": {
  22179. "type": "string"
  22180. },
  22181. "description": {
  22182. "type": "string"
  22183. },
  22184. "required": {
  22185. "type": "boolean"
  22186. },
  22187. "when": {
  22188. "type": "array",
  22189. "items": {
  22190. "$ref": "#/components/schemas/Form.When1"
  22191. }
  22192. },
  22193. "type": {
  22194. "type": "string",
  22195. "enum": ["string"]
  22196. },
  22197. "format": {
  22198. "type": "string",
  22199. "enum": ["email", "uri", "date", "date-time"]
  22200. },
  22201. "minLength": {
  22202. "type": "integer",
  22203. "allOf": [
  22204. {
  22205. "minimum": 0
  22206. }
  22207. ]
  22208. },
  22209. "maxLength": {
  22210. "type": "integer",
  22211. "allOf": [
  22212. {
  22213. "minimum": 0
  22214. }
  22215. ]
  22216. },
  22217. "pattern": {
  22218. "type": "string"
  22219. },
  22220. "placeholder": {
  22221. "type": "string"
  22222. },
  22223. "default": {
  22224. "type": "string"
  22225. },
  22226. "options": {
  22227. "type": "array",
  22228. "items": {
  22229. "$ref": "#/components/schemas/Form.Option"
  22230. }
  22231. },
  22232. "custom": {
  22233. "type": "boolean"
  22234. }
  22235. },
  22236. "required": ["key", "type"],
  22237. "additionalProperties": false
  22238. },
  22239. "Form.NumberField1": {
  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": ["number"]
  22263. },
  22264. "minimum": {
  22265. "anyOf": [
  22266. {
  22267. "type": "number"
  22268. },
  22269. {
  22270. "type": "string",
  22271. "enum": ["NaN"]
  22272. },
  22273. {
  22274. "type": "string",
  22275. "enum": ["Infinity"]
  22276. },
  22277. {
  22278. "type": "string",
  22279. "enum": ["-Infinity"]
  22280. }
  22281. ]
  22282. },
  22283. "maximum": {
  22284. "anyOf": [
  22285. {
  22286. "type": "number"
  22287. },
  22288. {
  22289. "type": "string",
  22290. "enum": ["NaN"]
  22291. },
  22292. {
  22293. "type": "string",
  22294. "enum": ["Infinity"]
  22295. },
  22296. {
  22297. "type": "string",
  22298. "enum": ["-Infinity"]
  22299. }
  22300. ]
  22301. },
  22302. "default": {
  22303. "anyOf": [
  22304. {
  22305. "type": "number"
  22306. },
  22307. {
  22308. "type": "string",
  22309. "enum": ["NaN"]
  22310. },
  22311. {
  22312. "type": "string",
  22313. "enum": ["Infinity"]
  22314. },
  22315. {
  22316. "type": "string",
  22317. "enum": ["-Infinity"]
  22318. }
  22319. ]
  22320. }
  22321. },
  22322. "required": ["key", "type"],
  22323. "additionalProperties": false
  22324. },
  22325. "Form.IntegerField1": {
  22326. "type": "object",
  22327. "properties": {
  22328. "key": {
  22329. "type": "string"
  22330. },
  22331. "title": {
  22332. "type": "string"
  22333. },
  22334. "description": {
  22335. "type": "string"
  22336. },
  22337. "required": {
  22338. "type": "boolean"
  22339. },
  22340. "when": {
  22341. "type": "array",
  22342. "items": {
  22343. "$ref": "#/components/schemas/Form.When1"
  22344. }
  22345. },
  22346. "type": {
  22347. "type": "string",
  22348. "enum": ["integer"]
  22349. },
  22350. "minimum": {
  22351. "anyOf": [
  22352. {
  22353. "type": "number"
  22354. },
  22355. {
  22356. "type": "string",
  22357. "enum": ["NaN"]
  22358. },
  22359. {
  22360. "type": "string",
  22361. "enum": ["Infinity"]
  22362. },
  22363. {
  22364. "type": "string",
  22365. "enum": ["-Infinity"]
  22366. }
  22367. ]
  22368. },
  22369. "maximum": {
  22370. "anyOf": [
  22371. {
  22372. "type": "number"
  22373. },
  22374. {
  22375. "type": "string",
  22376. "enum": ["NaN"]
  22377. },
  22378. {
  22379. "type": "string",
  22380. "enum": ["Infinity"]
  22381. },
  22382. {
  22383. "type": "string",
  22384. "enum": ["-Infinity"]
  22385. }
  22386. ]
  22387. },
  22388. "default": {
  22389. "anyOf": [
  22390. {
  22391. "type": "number"
  22392. },
  22393. {
  22394. "type": "string",
  22395. "enum": ["NaN"]
  22396. },
  22397. {
  22398. "type": "string",
  22399. "enum": ["Infinity"]
  22400. },
  22401. {
  22402. "type": "string",
  22403. "enum": ["-Infinity"]
  22404. }
  22405. ]
  22406. }
  22407. },
  22408. "required": ["key", "type"],
  22409. "additionalProperties": false
  22410. },
  22411. "Form.BooleanField1": {
  22412. "type": "object",
  22413. "properties": {
  22414. "key": {
  22415. "type": "string"
  22416. },
  22417. "title": {
  22418. "type": "string"
  22419. },
  22420. "description": {
  22421. "type": "string"
  22422. },
  22423. "required": {
  22424. "type": "boolean"
  22425. },
  22426. "when": {
  22427. "type": "array",
  22428. "items": {
  22429. "$ref": "#/components/schemas/Form.When1"
  22430. }
  22431. },
  22432. "type": {
  22433. "type": "string",
  22434. "enum": ["boolean"]
  22435. },
  22436. "default": {
  22437. "type": "boolean"
  22438. }
  22439. },
  22440. "required": ["key", "type"],
  22441. "additionalProperties": false
  22442. },
  22443. "Form.MultiselectField1": {
  22444. "type": "object",
  22445. "properties": {
  22446. "key": {
  22447. "type": "string"
  22448. },
  22449. "title": {
  22450. "type": "string"
  22451. },
  22452. "description": {
  22453. "type": "string"
  22454. },
  22455. "required": {
  22456. "type": "boolean"
  22457. },
  22458. "when": {
  22459. "type": "array",
  22460. "items": {
  22461. "$ref": "#/components/schemas/Form.When1"
  22462. }
  22463. },
  22464. "type": {
  22465. "type": "string",
  22466. "enum": ["multiselect"]
  22467. },
  22468. "options": {
  22469. "type": "array",
  22470. "items": {
  22471. "$ref": "#/components/schemas/Form.Option"
  22472. }
  22473. },
  22474. "minItems": {
  22475. "type": "integer",
  22476. "allOf": [
  22477. {
  22478. "minimum": 0
  22479. }
  22480. ]
  22481. },
  22482. "maxItems": {
  22483. "type": "integer",
  22484. "allOf": [
  22485. {
  22486. "minimum": 0
  22487. }
  22488. ]
  22489. },
  22490. "custom": {
  22491. "type": "boolean"
  22492. },
  22493. "default": {
  22494. "type": "array",
  22495. "items": {
  22496. "type": "string"
  22497. }
  22498. }
  22499. },
  22500. "required": ["key", "type", "options"],
  22501. "additionalProperties": false
  22502. },
  22503. "Form.Field1": {
  22504. "anyOf": [
  22505. {
  22506. "$ref": "#/components/schemas/Form.StringField1"
  22507. },
  22508. {
  22509. "$ref": "#/components/schemas/Form.NumberField1"
  22510. },
  22511. {
  22512. "$ref": "#/components/schemas/Form.IntegerField1"
  22513. },
  22514. {
  22515. "$ref": "#/components/schemas/Form.BooleanField1"
  22516. },
  22517. {
  22518. "$ref": "#/components/schemas/Form.MultiselectField1"
  22519. },
  22520. {
  22521. "$ref": "#/components/schemas/Form.ExternalField"
  22522. }
  22523. ]
  22524. },
  22525. "Form.Fields3": {
  22526. "type": "array",
  22527. "prefixItems": [
  22528. {
  22529. "$ref": "#/components/schemas/Form.Field1"
  22530. }
  22531. ],
  22532. "minItems": 1,
  22533. "items": {
  22534. "$ref": "#/components/schemas/Form.Field1"
  22535. }
  22536. },
  22537. "Form.Info1": {
  22538. "type": "object",
  22539. "properties": {
  22540. "id": {
  22541. "type": "string",
  22542. "allOf": [
  22543. {
  22544. "pattern": "^frm_"
  22545. }
  22546. ]
  22547. },
  22548. "sessionID": {
  22549. "type": "string"
  22550. },
  22551. "title": {
  22552. "type": "string"
  22553. },
  22554. "metadata": {
  22555. "$ref": "#/components/schemas/Form.Metadata1"
  22556. },
  22557. "fields": {
  22558. "$ref": "#/components/schemas/Form.Fields3"
  22559. }
  22560. },
  22561. "required": ["id", "sessionID", "title", "fields"],
  22562. "additionalProperties": false
  22563. },
  22564. "form.created": {
  22565. "type": "object",
  22566. "properties": {
  22567. "id": {
  22568. "type": "string",
  22569. "allOf": [
  22570. {
  22571. "pattern": "^evt_"
  22572. }
  22573. ]
  22574. },
  22575. "created": {
  22576. "type": "number"
  22577. },
  22578. "metadata": {
  22579. "type": "object"
  22580. },
  22581. "type": {
  22582. "type": "string",
  22583. "enum": ["form.created"]
  22584. },
  22585. "location": {
  22586. "$ref": "#/components/schemas/Location.Ref"
  22587. },
  22588. "data": {
  22589. "type": "object",
  22590. "properties": {
  22591. "form": {
  22592. "$ref": "#/components/schemas/Form.Info1"
  22593. }
  22594. },
  22595. "required": ["form"],
  22596. "additionalProperties": false
  22597. }
  22598. },
  22599. "required": ["id", "created", "type", "data"],
  22600. "additionalProperties": false
  22601. },
  22602. "Form.Value1": {
  22603. "anyOf": [
  22604. {
  22605. "type": "string"
  22606. },
  22607. {
  22608. "anyOf": [
  22609. {
  22610. "type": "number"
  22611. },
  22612. {
  22613. "type": "string",
  22614. "enum": ["NaN"]
  22615. },
  22616. {
  22617. "type": "string",
  22618. "enum": ["Infinity"]
  22619. },
  22620. {
  22621. "type": "string",
  22622. "enum": ["-Infinity"]
  22623. }
  22624. ]
  22625. },
  22626. {
  22627. "type": "boolean"
  22628. },
  22629. {
  22630. "type": "array",
  22631. "items": {
  22632. "type": "string"
  22633. }
  22634. }
  22635. ]
  22636. },
  22637. "Form.Answer1": {
  22638. "type": "object",
  22639. "additionalProperties": {
  22640. "$ref": "#/components/schemas/Form.Value1"
  22641. }
  22642. },
  22643. "form.replied": {
  22644. "type": "object",
  22645. "properties": {
  22646. "id": {
  22647. "type": "string",
  22648. "allOf": [
  22649. {
  22650. "pattern": "^evt_"
  22651. }
  22652. ]
  22653. },
  22654. "created": {
  22655. "type": "number"
  22656. },
  22657. "metadata": {
  22658. "type": "object"
  22659. },
  22660. "type": {
  22661. "type": "string",
  22662. "enum": ["form.replied"]
  22663. },
  22664. "location": {
  22665. "$ref": "#/components/schemas/Location.Ref"
  22666. },
  22667. "data": {
  22668. "type": "object",
  22669. "properties": {
  22670. "id": {
  22671. "type": "string",
  22672. "allOf": [
  22673. {
  22674. "pattern": "^frm_"
  22675. }
  22676. ]
  22677. },
  22678. "sessionID": {
  22679. "type": "string"
  22680. },
  22681. "answer": {
  22682. "$ref": "#/components/schemas/Form.Answer1"
  22683. }
  22684. },
  22685. "required": ["id", "sessionID", "answer"],
  22686. "additionalProperties": false
  22687. }
  22688. },
  22689. "required": ["id", "created", "type", "data"],
  22690. "additionalProperties": false
  22691. },
  22692. "form.cancelled": {
  22693. "type": "object",
  22694. "properties": {
  22695. "id": {
  22696. "type": "string",
  22697. "allOf": [
  22698. {
  22699. "pattern": "^evt_"
  22700. }
  22701. ]
  22702. },
  22703. "created": {
  22704. "type": "number"
  22705. },
  22706. "metadata": {
  22707. "type": "object"
  22708. },
  22709. "type": {
  22710. "type": "string",
  22711. "enum": ["form.cancelled"]
  22712. },
  22713. "location": {
  22714. "$ref": "#/components/schemas/Location.Ref"
  22715. },
  22716. "data": {
  22717. "type": "object",
  22718. "properties": {
  22719. "id": {
  22720. "type": "string",
  22721. "allOf": [
  22722. {
  22723. "pattern": "^frm_"
  22724. }
  22725. ]
  22726. },
  22727. "sessionID": {
  22728. "type": "string"
  22729. }
  22730. },
  22731. "required": ["id", "sessionID"],
  22732. "additionalProperties": false
  22733. }
  22734. },
  22735. "required": ["id", "created", "type", "data"],
  22736. "additionalProperties": false
  22737. },
  22738. "websearch.updated": {
  22739. "type": "object",
  22740. "properties": {
  22741. "id": {
  22742. "type": "string",
  22743. "allOf": [
  22744. {
  22745. "pattern": "^evt_"
  22746. }
  22747. ]
  22748. },
  22749. "created": {
  22750. "type": "number"
  22751. },
  22752. "metadata": {
  22753. "type": "object"
  22754. },
  22755. "type": {
  22756. "type": "string",
  22757. "enum": ["websearch.updated"]
  22758. },
  22759. "location": {
  22760. "$ref": "#/components/schemas/Location.Ref"
  22761. },
  22762. "data": {
  22763. "anyOf": [
  22764. {
  22765. "type": "object"
  22766. },
  22767. {
  22768. "type": "array"
  22769. }
  22770. ]
  22771. }
  22772. },
  22773. "required": ["id", "created", "type", "data"],
  22774. "additionalProperties": false
  22775. },
  22776. "SessionStatus": {
  22777. "anyOf": [
  22778. {
  22779. "type": "object",
  22780. "properties": {
  22781. "type": {
  22782. "type": "string",
  22783. "enum": ["idle"]
  22784. }
  22785. },
  22786. "required": ["type"],
  22787. "additionalProperties": false
  22788. },
  22789. {
  22790. "type": "object",
  22791. "properties": {
  22792. "type": {
  22793. "type": "string",
  22794. "enum": ["retry"]
  22795. },
  22796. "attempt": {
  22797. "type": "integer",
  22798. "allOf": [
  22799. {
  22800. "minimum": 0
  22801. }
  22802. ]
  22803. },
  22804. "message": {
  22805. "type": "string"
  22806. },
  22807. "action": {
  22808. "type": "object",
  22809. "properties": {
  22810. "reason": {
  22811. "type": "string"
  22812. },
  22813. "provider": {
  22814. "type": "string"
  22815. },
  22816. "title": {
  22817. "type": "string"
  22818. },
  22819. "message": {
  22820. "type": "string"
  22821. },
  22822. "label": {
  22823. "type": "string"
  22824. },
  22825. "link": {
  22826. "type": "string"
  22827. }
  22828. },
  22829. "required": ["reason", "provider", "title", "message", "label"],
  22830. "additionalProperties": false
  22831. },
  22832. "next": {
  22833. "type": "integer",
  22834. "allOf": [
  22835. {
  22836. "minimum": 0
  22837. }
  22838. ]
  22839. }
  22840. },
  22841. "required": ["type", "attempt", "message", "next"],
  22842. "additionalProperties": false
  22843. },
  22844. {
  22845. "type": "object",
  22846. "properties": {
  22847. "type": {
  22848. "type": "string",
  22849. "enum": ["busy"]
  22850. }
  22851. },
  22852. "required": ["type"],
  22853. "additionalProperties": false
  22854. }
  22855. ]
  22856. },
  22857. "session.status": {
  22858. "type": "object",
  22859. "properties": {
  22860. "id": {
  22861. "type": "string",
  22862. "allOf": [
  22863. {
  22864. "pattern": "^evt_"
  22865. }
  22866. ]
  22867. },
  22868. "created": {
  22869. "type": "number"
  22870. },
  22871. "metadata": {
  22872. "type": "object"
  22873. },
  22874. "type": {
  22875. "type": "string",
  22876. "enum": ["session.status"]
  22877. },
  22878. "location": {
  22879. "$ref": "#/components/schemas/Location.Ref"
  22880. },
  22881. "data": {
  22882. "type": "object",
  22883. "properties": {
  22884. "sessionID": {
  22885. "type": "string",
  22886. "allOf": [
  22887. {
  22888. "pattern": "^ses"
  22889. }
  22890. ]
  22891. },
  22892. "status": {
  22893. "$ref": "#/components/schemas/SessionStatus"
  22894. }
  22895. },
  22896. "required": ["sessionID", "status"],
  22897. "additionalProperties": false
  22898. }
  22899. },
  22900. "required": ["id", "created", "type", "data"],
  22901. "additionalProperties": false
  22902. },
  22903. "session.idle": {
  22904. "type": "object",
  22905. "properties": {
  22906. "id": {
  22907. "type": "string",
  22908. "allOf": [
  22909. {
  22910. "pattern": "^evt_"
  22911. }
  22912. ]
  22913. },
  22914. "created": {
  22915. "type": "number"
  22916. },
  22917. "metadata": {
  22918. "type": "object"
  22919. },
  22920. "type": {
  22921. "type": "string",
  22922. "enum": ["session.idle"]
  22923. },
  22924. "location": {
  22925. "$ref": "#/components/schemas/Location.Ref"
  22926. },
  22927. "data": {
  22928. "type": "object",
  22929. "properties": {
  22930. "sessionID": {
  22931. "type": "string",
  22932. "allOf": [
  22933. {
  22934. "pattern": "^ses"
  22935. }
  22936. ]
  22937. }
  22938. },
  22939. "required": ["sessionID"],
  22940. "additionalProperties": false
  22941. }
  22942. },
  22943. "required": ["id", "created", "type", "data"],
  22944. "additionalProperties": false
  22945. },
  22946. "tui.prompt.append": {
  22947. "type": "object",
  22948. "properties": {
  22949. "id": {
  22950. "type": "string",
  22951. "allOf": [
  22952. {
  22953. "pattern": "^evt_"
  22954. }
  22955. ]
  22956. },
  22957. "created": {
  22958. "type": "number"
  22959. },
  22960. "metadata": {
  22961. "type": "object"
  22962. },
  22963. "type": {
  22964. "type": "string",
  22965. "enum": ["tui.prompt.append"]
  22966. },
  22967. "location": {
  22968. "$ref": "#/components/schemas/Location.Ref"
  22969. },
  22970. "data": {
  22971. "type": "object",
  22972. "properties": {
  22973. "text": {
  22974. "type": "string"
  22975. }
  22976. },
  22977. "required": ["text"],
  22978. "additionalProperties": false
  22979. }
  22980. },
  22981. "required": ["id", "created", "type", "data"],
  22982. "additionalProperties": false
  22983. },
  22984. "tui.command.execute": {
  22985. "type": "object",
  22986. "properties": {
  22987. "id": {
  22988. "type": "string",
  22989. "allOf": [
  22990. {
  22991. "pattern": "^evt_"
  22992. }
  22993. ]
  22994. },
  22995. "created": {
  22996. "type": "number"
  22997. },
  22998. "metadata": {
  22999. "type": "object"
  23000. },
  23001. "type": {
  23002. "type": "string",
  23003. "enum": ["tui.command.execute"]
  23004. },
  23005. "location": {
  23006. "$ref": "#/components/schemas/Location.Ref"
  23007. },
  23008. "data": {
  23009. "type": "object",
  23010. "properties": {
  23011. "command": {
  23012. "anyOf": [
  23013. {
  23014. "type": "string",
  23015. "enum": [
  23016. "session.list",
  23017. "session.new",
  23018. "session.share",
  23019. "session.interrupt",
  23020. "session.background",
  23021. "session.compact",
  23022. "session.page.up",
  23023. "session.page.down",
  23024. "session.line.up",
  23025. "session.line.down",
  23026. "session.half.page.up",
  23027. "session.half.page.down",
  23028. "session.first",
  23029. "session.last",
  23030. "prompt.clear",
  23031. "prompt.submit",
  23032. "agent.cycle"
  23033. ]
  23034. },
  23035. {
  23036. "type": "string"
  23037. }
  23038. ]
  23039. }
  23040. },
  23041. "required": ["command"],
  23042. "additionalProperties": false
  23043. }
  23044. },
  23045. "required": ["id", "created", "type", "data"],
  23046. "additionalProperties": false
  23047. },
  23048. "tui.toast.show": {
  23049. "type": "object",
  23050. "properties": {
  23051. "id": {
  23052. "type": "string",
  23053. "allOf": [
  23054. {
  23055. "pattern": "^evt_"
  23056. }
  23057. ]
  23058. },
  23059. "created": {
  23060. "type": "number"
  23061. },
  23062. "metadata": {
  23063. "type": "object"
  23064. },
  23065. "type": {
  23066. "type": "string",
  23067. "enum": ["tui.toast.show"]
  23068. },
  23069. "location": {
  23070. "$ref": "#/components/schemas/Location.Ref"
  23071. },
  23072. "data": {
  23073. "type": "object",
  23074. "properties": {
  23075. "title": {
  23076. "type": "string"
  23077. },
  23078. "message": {
  23079. "type": "string"
  23080. },
  23081. "variant": {
  23082. "type": "string",
  23083. "enum": ["info", "success", "warning", "error"]
  23084. },
  23085. "duration": {
  23086. "anyOf": [
  23087. {
  23088. "type": "integer",
  23089. "allOf": [
  23090. {
  23091. "exclusiveMinimum": 0
  23092. }
  23093. ]
  23094. },
  23095. {
  23096. "type": "null"
  23097. }
  23098. ]
  23099. }
  23100. },
  23101. "required": ["message", "variant"],
  23102. "additionalProperties": false
  23103. }
  23104. },
  23105. "required": ["id", "created", "type", "data"],
  23106. "additionalProperties": false
  23107. },
  23108. "tui.session.select": {
  23109. "type": "object",
  23110. "properties": {
  23111. "id": {
  23112. "type": "string",
  23113. "allOf": [
  23114. {
  23115. "pattern": "^evt_"
  23116. }
  23117. ]
  23118. },
  23119. "created": {
  23120. "type": "number"
  23121. },
  23122. "metadata": {
  23123. "type": "object"
  23124. },
  23125. "type": {
  23126. "type": "string",
  23127. "enum": ["tui.session.select"]
  23128. },
  23129. "location": {
  23130. "$ref": "#/components/schemas/Location.Ref"
  23131. },
  23132. "data": {
  23133. "type": "object",
  23134. "properties": {
  23135. "sessionID": {
  23136. "type": "string",
  23137. "allOf": [
  23138. {
  23139. "pattern": "^ses",
  23140. "description": "Session ID to navigate to"
  23141. }
  23142. ]
  23143. }
  23144. },
  23145. "required": ["sessionID"],
  23146. "additionalProperties": false
  23147. }
  23148. },
  23149. "required": ["id", "created", "type", "data"],
  23150. "additionalProperties": false
  23151. },
  23152. "installation.updated": {
  23153. "type": "object",
  23154. "properties": {
  23155. "id": {
  23156. "type": "string",
  23157. "allOf": [
  23158. {
  23159. "pattern": "^evt_"
  23160. }
  23161. ]
  23162. },
  23163. "created": {
  23164. "type": "number"
  23165. },
  23166. "metadata": {
  23167. "type": "object"
  23168. },
  23169. "type": {
  23170. "type": "string",
  23171. "enum": ["installation.updated"]
  23172. },
  23173. "location": {
  23174. "$ref": "#/components/schemas/Location.Ref"
  23175. },
  23176. "data": {
  23177. "type": "object",
  23178. "properties": {
  23179. "version": {
  23180. "type": "string"
  23181. }
  23182. },
  23183. "required": ["version"],
  23184. "additionalProperties": false
  23185. }
  23186. },
  23187. "required": ["id", "created", "type", "data"],
  23188. "additionalProperties": false
  23189. },
  23190. "installation.update-available": {
  23191. "type": "object",
  23192. "properties": {
  23193. "id": {
  23194. "type": "string",
  23195. "allOf": [
  23196. {
  23197. "pattern": "^evt_"
  23198. }
  23199. ]
  23200. },
  23201. "created": {
  23202. "type": "number"
  23203. },
  23204. "metadata": {
  23205. "type": "object"
  23206. },
  23207. "type": {
  23208. "type": "string",
  23209. "enum": ["installation.update-available"]
  23210. },
  23211. "location": {
  23212. "$ref": "#/components/schemas/Location.Ref"
  23213. },
  23214. "data": {
  23215. "type": "object",
  23216. "properties": {
  23217. "version": {
  23218. "type": "string"
  23219. }
  23220. },
  23221. "required": ["version"],
  23222. "additionalProperties": false
  23223. }
  23224. },
  23225. "required": ["id", "created", "type", "data"],
  23226. "additionalProperties": false
  23227. },
  23228. "vcs.branch.updated": {
  23229. "type": "object",
  23230. "properties": {
  23231. "id": {
  23232. "type": "string",
  23233. "allOf": [
  23234. {
  23235. "pattern": "^evt_"
  23236. }
  23237. ]
  23238. },
  23239. "created": {
  23240. "type": "number"
  23241. },
  23242. "metadata": {
  23243. "type": "object"
  23244. },
  23245. "type": {
  23246. "type": "string",
  23247. "enum": ["vcs.branch.updated"]
  23248. },
  23249. "location": {
  23250. "$ref": "#/components/schemas/Location.Ref"
  23251. },
  23252. "data": {
  23253. "type": "object",
  23254. "properties": {
  23255. "branch": {
  23256. "type": "string"
  23257. }
  23258. },
  23259. "additionalProperties": false
  23260. }
  23261. },
  23262. "required": ["id", "created", "type", "data"],
  23263. "additionalProperties": false
  23264. },
  23265. "mcp.status.changed": {
  23266. "type": "object",
  23267. "properties": {
  23268. "id": {
  23269. "type": "string",
  23270. "allOf": [
  23271. {
  23272. "pattern": "^evt_"
  23273. }
  23274. ]
  23275. },
  23276. "created": {
  23277. "type": "number"
  23278. },
  23279. "metadata": {
  23280. "type": "object"
  23281. },
  23282. "type": {
  23283. "type": "string",
  23284. "enum": ["mcp.status.changed"]
  23285. },
  23286. "location": {
  23287. "$ref": "#/components/schemas/Location.Ref"
  23288. },
  23289. "data": {
  23290. "type": "object",
  23291. "properties": {
  23292. "server": {
  23293. "type": "string"
  23294. }
  23295. },
  23296. "required": ["server"],
  23297. "additionalProperties": false
  23298. }
  23299. },
  23300. "required": ["id", "created", "type", "data"],
  23301. "additionalProperties": false
  23302. },
  23303. "mcp.resources.changed": {
  23304. "type": "object",
  23305. "properties": {
  23306. "id": {
  23307. "type": "string",
  23308. "allOf": [
  23309. {
  23310. "pattern": "^evt_"
  23311. }
  23312. ]
  23313. },
  23314. "created": {
  23315. "type": "number"
  23316. },
  23317. "metadata": {
  23318. "type": "object"
  23319. },
  23320. "type": {
  23321. "type": "string",
  23322. "enum": ["mcp.resources.changed"]
  23323. },
  23324. "location": {
  23325. "$ref": "#/components/schemas/Location.Ref"
  23326. },
  23327. "data": {
  23328. "type": "object",
  23329. "properties": {
  23330. "server": {
  23331. "type": "string"
  23332. }
  23333. },
  23334. "required": ["server"],
  23335. "additionalProperties": false
  23336. }
  23337. },
  23338. "required": ["id", "created", "type", "data"],
  23339. "additionalProperties": false
  23340. },
  23341. "V2Event.server.connected": {
  23342. "type": "object",
  23343. "properties": {
  23344. "id": {
  23345. "type": "string",
  23346. "allOf": [
  23347. {
  23348. "pattern": "^evt_"
  23349. }
  23350. ]
  23351. },
  23352. "metadata": {
  23353. "anyOf": [
  23354. {
  23355. "type": "object"
  23356. },
  23357. {
  23358. "type": "null"
  23359. }
  23360. ]
  23361. },
  23362. "location": {
  23363. "anyOf": [
  23364. {
  23365. "$ref": "#/components/schemas/Location.Ref"
  23366. },
  23367. {
  23368. "type": "null"
  23369. }
  23370. ]
  23371. },
  23372. "type": {
  23373. "type": "string",
  23374. "enum": ["server.connected"]
  23375. },
  23376. "data": {
  23377. "anyOf": [
  23378. {
  23379. "type": "object"
  23380. },
  23381. {
  23382. "type": "array"
  23383. }
  23384. ]
  23385. }
  23386. },
  23387. "required": ["id", "type", "data"],
  23388. "additionalProperties": false
  23389. },
  23390. "V2Event": {
  23391. "anyOf": [
  23392. {
  23393. "$ref": "#/components/schemas/models-dev.refreshed"
  23394. },
  23395. {
  23396. "$ref": "#/components/schemas/integration.updated"
  23397. },
  23398. {
  23399. "$ref": "#/components/schemas/integration.connection.updated"
  23400. },
  23401. {
  23402. "$ref": "#/components/schemas/catalog.updated"
  23403. },
  23404. {
  23405. "$ref": "#/components/schemas/agent.updated"
  23406. },
  23407. {
  23408. "$ref": "#/components/schemas/session.created"
  23409. },
  23410. {
  23411. "$ref": "#/components/schemas/session.agent.selected"
  23412. },
  23413. {
  23414. "$ref": "#/components/schemas/session.model.selected"
  23415. },
  23416. {
  23417. "$ref": "#/components/schemas/session.moved"
  23418. },
  23419. {
  23420. "$ref": "#/components/schemas/session.renamed"
  23421. },
  23422. {
  23423. "$ref": "#/components/schemas/session.usage.updated"
  23424. },
  23425. {
  23426. "$ref": "#/components/schemas/session.deleted"
  23427. },
  23428. {
  23429. "$ref": "#/components/schemas/session.forked"
  23430. },
  23431. {
  23432. "$ref": "#/components/schemas/session.inbox.delivered"
  23433. },
  23434. {
  23435. "$ref": "#/components/schemas/session.inbox.enqueued"
  23436. },
  23437. {
  23438. "$ref": "#/components/schemas/session.inbox.cancelled"
  23439. },
  23440. {
  23441. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  23442. },
  23443. {
  23444. "$ref": "#/components/schemas/session.execution.started"
  23445. },
  23446. {
  23447. "$ref": "#/components/schemas/session.execution.succeeded"
  23448. },
  23449. {
  23450. "$ref": "#/components/schemas/session.execution.failed"
  23451. },
  23452. {
  23453. "$ref": "#/components/schemas/session.execution.interrupted"
  23454. },
  23455. {
  23456. "$ref": "#/components/schemas/session.instructions.updated"
  23457. },
  23458. {
  23459. "$ref": "#/components/schemas/session.synthetic"
  23460. },
  23461. {
  23462. "$ref": "#/components/schemas/session.skill.activated"
  23463. },
  23464. {
  23465. "$ref": "#/components/schemas/session.shell.started"
  23466. },
  23467. {
  23468. "$ref": "#/components/schemas/session.shell.ended"
  23469. },
  23470. {
  23471. "$ref": "#/components/schemas/session.step.started"
  23472. },
  23473. {
  23474. "$ref": "#/components/schemas/session.step.ended"
  23475. },
  23476. {
  23477. "$ref": "#/components/schemas/session.step.failed"
  23478. },
  23479. {
  23480. "$ref": "#/components/schemas/session.text.started"
  23481. },
  23482. {
  23483. "$ref": "#/components/schemas/session.text.delta"
  23484. },
  23485. {
  23486. "$ref": "#/components/schemas/session.text.ended"
  23487. },
  23488. {
  23489. "$ref": "#/components/schemas/session.reasoning.started"
  23490. },
  23491. {
  23492. "$ref": "#/components/schemas/session.reasoning.delta"
  23493. },
  23494. {
  23495. "$ref": "#/components/schemas/session.reasoning.ended"
  23496. },
  23497. {
  23498. "$ref": "#/components/schemas/session.tool.input.started"
  23499. },
  23500. {
  23501. "$ref": "#/components/schemas/session.tool.input.delta"
  23502. },
  23503. {
  23504. "$ref": "#/components/schemas/session.tool.input.ended"
  23505. },
  23506. {
  23507. "$ref": "#/components/schemas/session.tool.called"
  23508. },
  23509. {
  23510. "$ref": "#/components/schemas/session.tool.progress"
  23511. },
  23512. {
  23513. "$ref": "#/components/schemas/session.tool.success"
  23514. },
  23515. {
  23516. "$ref": "#/components/schemas/session.tool.failed"
  23517. },
  23518. {
  23519. "$ref": "#/components/schemas/session.retry.scheduled"
  23520. },
  23521. {
  23522. "$ref": "#/components/schemas/session.compaction.started"
  23523. },
  23524. {
  23525. "$ref": "#/components/schemas/session.compaction.delta"
  23526. },
  23527. {
  23528. "$ref": "#/components/schemas/session.compaction.ended"
  23529. },
  23530. {
  23531. "$ref": "#/components/schemas/session.compaction.failed"
  23532. },
  23533. {
  23534. "$ref": "#/components/schemas/session.revert.staged"
  23535. },
  23536. {
  23537. "$ref": "#/components/schemas/session.revert.cleared"
  23538. },
  23539. {
  23540. "$ref": "#/components/schemas/session.revert.committed"
  23541. },
  23542. {
  23543. "$ref": "#/components/schemas/filesystem.changed"
  23544. },
  23545. {
  23546. "$ref": "#/components/schemas/reference.updated"
  23547. },
  23548. {
  23549. "$ref": "#/components/schemas/permission.asked"
  23550. },
  23551. {
  23552. "$ref": "#/components/schemas/permission.replied"
  23553. },
  23554. {
  23555. "$ref": "#/components/schemas/plugin.added"
  23556. },
  23557. {
  23558. "$ref": "#/components/schemas/plugin.updated"
  23559. },
  23560. {
  23561. "$ref": "#/components/schemas/project.directories.updated"
  23562. },
  23563. {
  23564. "$ref": "#/components/schemas/project.directory.resolved"
  23565. },
  23566. {
  23567. "$ref": "#/components/schemas/command.updated"
  23568. },
  23569. {
  23570. "$ref": "#/components/schemas/config.updated"
  23571. },
  23572. {
  23573. "$ref": "#/components/schemas/skill.updated"
  23574. },
  23575. {
  23576. "$ref": "#/components/schemas/pty.created"
  23577. },
  23578. {
  23579. "$ref": "#/components/schemas/pty.updated"
  23580. },
  23581. {
  23582. "$ref": "#/components/schemas/pty.exited"
  23583. },
  23584. {
  23585. "$ref": "#/components/schemas/pty.deleted"
  23586. },
  23587. {
  23588. "$ref": "#/components/schemas/shell.created"
  23589. },
  23590. {
  23591. "$ref": "#/components/schemas/shell.exited"
  23592. },
  23593. {
  23594. "$ref": "#/components/schemas/shell.deleted"
  23595. },
  23596. {
  23597. "$ref": "#/components/schemas/question.asked"
  23598. },
  23599. {
  23600. "$ref": "#/components/schemas/question.replied"
  23601. },
  23602. {
  23603. "$ref": "#/components/schemas/question.rejected"
  23604. },
  23605. {
  23606. "$ref": "#/components/schemas/form.created"
  23607. },
  23608. {
  23609. "$ref": "#/components/schemas/form.replied"
  23610. },
  23611. {
  23612. "$ref": "#/components/schemas/form.cancelled"
  23613. },
  23614. {
  23615. "$ref": "#/components/schemas/websearch.updated"
  23616. },
  23617. {
  23618. "$ref": "#/components/schemas/session.status"
  23619. },
  23620. {
  23621. "$ref": "#/components/schemas/session.idle"
  23622. },
  23623. {
  23624. "$ref": "#/components/schemas/tui.prompt.append"
  23625. },
  23626. {
  23627. "$ref": "#/components/schemas/tui.command.execute"
  23628. },
  23629. {
  23630. "$ref": "#/components/schemas/tui.toast.show"
  23631. },
  23632. {
  23633. "$ref": "#/components/schemas/tui.session.select"
  23634. },
  23635. {
  23636. "$ref": "#/components/schemas/installation.updated"
  23637. },
  23638. {
  23639. "$ref": "#/components/schemas/installation.update-available"
  23640. },
  23641. {
  23642. "$ref": "#/components/schemas/vcs.branch.updated"
  23643. },
  23644. {
  23645. "$ref": "#/components/schemas/mcp.status.changed"
  23646. },
  23647. {
  23648. "$ref": "#/components/schemas/mcp.resources.changed"
  23649. },
  23650. {
  23651. "$ref": "#/components/schemas/V2Event.server.connected"
  23652. }
  23653. ]
  23654. },
  23655. "V2EventJsonString": {
  23656. "type": "string",
  23657. "contentSchema": {
  23658. "$ref": "#/components/schemas/V2Event"
  23659. },
  23660. "contentMediaType": "application/json"
  23661. },
  23662. "PtyNotFoundError": {
  23663. "type": "object",
  23664. "properties": {
  23665. "_tag": {
  23666. "type": "string",
  23667. "enum": ["PtyNotFoundError"]
  23668. },
  23669. "ptyID": {
  23670. "type": "string"
  23671. },
  23672. "message": {
  23673. "type": "string"
  23674. }
  23675. },
  23676. "required": ["_tag", "ptyID", "message"],
  23677. "additionalProperties": false
  23678. },
  23679. "PtyTicket.ConnectToken": {
  23680. "type": "object",
  23681. "properties": {
  23682. "ticket": {
  23683. "type": "string"
  23684. },
  23685. "expires_in": {
  23686. "type": "integer",
  23687. "allOf": [
  23688. {
  23689. "exclusiveMinimum": 0
  23690. }
  23691. ]
  23692. }
  23693. },
  23694. "required": ["ticket", "expires_in"],
  23695. "additionalProperties": false
  23696. },
  23697. "ForbiddenError": {
  23698. "type": "object",
  23699. "properties": {
  23700. "_tag": {
  23701. "type": "string",
  23702. "enum": ["ForbiddenError"]
  23703. },
  23704. "message": {
  23705. "type": "string"
  23706. }
  23707. },
  23708. "required": ["_tag", "message"],
  23709. "additionalProperties": false
  23710. },
  23711. "Shell.Info1": {
  23712. "type": "object",
  23713. "properties": {
  23714. "id": {
  23715. "type": "string",
  23716. "allOf": [
  23717. {
  23718. "pattern": "^sh_"
  23719. }
  23720. ]
  23721. },
  23722. "status": {
  23723. "type": "string",
  23724. "enum": ["running", "exited", "timeout", "killed"]
  23725. },
  23726. "command": {
  23727. "type": "string"
  23728. },
  23729. "cwd": {
  23730. "type": "string"
  23731. },
  23732. "shell": {
  23733. "type": "string"
  23734. },
  23735. "file": {
  23736. "type": "string"
  23737. },
  23738. "pid": {
  23739. "type": "integer",
  23740. "allOf": [
  23741. {
  23742. "minimum": 0
  23743. }
  23744. ]
  23745. },
  23746. "exit": {
  23747. "type": "number"
  23748. },
  23749. "metadata": {
  23750. "type": "object"
  23751. },
  23752. "time": {
  23753. "type": "object",
  23754. "properties": {
  23755. "started": {
  23756. "type": "number"
  23757. },
  23758. "completed": {
  23759. "type": "number"
  23760. }
  23761. },
  23762. "required": ["started"],
  23763. "additionalProperties": false
  23764. }
  23765. },
  23766. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  23767. "additionalProperties": false
  23768. },
  23769. "ShellNotFoundError": {
  23770. "type": "object",
  23771. "properties": {
  23772. "_tag": {
  23773. "type": "string",
  23774. "enum": ["ShellNotFoundError"]
  23775. },
  23776. "id": {
  23777. "type": "string"
  23778. },
  23779. "message": {
  23780. "type": "string"
  23781. }
  23782. },
  23783. "required": ["_tag", "id", "message"],
  23784. "additionalProperties": false
  23785. },
  23786. "Question.Request": {
  23787. "type": "object",
  23788. "properties": {
  23789. "id": {
  23790. "type": "string",
  23791. "allOf": [
  23792. {
  23793. "pattern": "^que"
  23794. }
  23795. ]
  23796. },
  23797. "sessionID": {
  23798. "type": "string",
  23799. "allOf": [
  23800. {
  23801. "pattern": "^ses"
  23802. }
  23803. ]
  23804. },
  23805. "questions": {
  23806. "type": "array",
  23807. "items": {
  23808. "$ref": "#/components/schemas/Question.Info"
  23809. },
  23810. "description": "Questions to ask"
  23811. },
  23812. "tool": {
  23813. "$ref": "#/components/schemas/Question.Tool"
  23814. }
  23815. },
  23816. "required": ["id", "sessionID", "questions"],
  23817. "additionalProperties": false
  23818. },
  23819. "Question.Reply": {
  23820. "type": "object",
  23821. "properties": {
  23822. "answers": {
  23823. "type": "array",
  23824. "items": {
  23825. "$ref": "#/components/schemas/Question.Answer"
  23826. },
  23827. "description": "User answers in order of questions (each answer is an array of selected labels)"
  23828. }
  23829. },
  23830. "required": ["answers"],
  23831. "additionalProperties": false
  23832. },
  23833. "QuestionNotFoundError": {
  23834. "type": "object",
  23835. "properties": {
  23836. "_tag": {
  23837. "type": "string",
  23838. "enum": ["QuestionNotFoundError"]
  23839. },
  23840. "requestID": {
  23841. "type": "string"
  23842. },
  23843. "message": {
  23844. "type": "string"
  23845. }
  23846. },
  23847. "required": ["_tag", "requestID", "message"],
  23848. "additionalProperties": false
  23849. },
  23850. "Reference.LocalSource": {
  23851. "type": "object",
  23852. "properties": {
  23853. "type": {
  23854. "type": "string",
  23855. "enum": ["local"]
  23856. },
  23857. "path": {
  23858. "type": "string"
  23859. },
  23860. "description": {
  23861. "type": "string"
  23862. },
  23863. "hidden": {
  23864. "type": "boolean"
  23865. }
  23866. },
  23867. "required": ["type", "path"],
  23868. "additionalProperties": false
  23869. },
  23870. "Reference.GitSource": {
  23871. "type": "object",
  23872. "properties": {
  23873. "type": {
  23874. "type": "string",
  23875. "enum": ["git"]
  23876. },
  23877. "repository": {
  23878. "type": "string"
  23879. },
  23880. "branch": {
  23881. "type": "string"
  23882. },
  23883. "description": {
  23884. "type": "string"
  23885. },
  23886. "hidden": {
  23887. "type": "boolean"
  23888. }
  23889. },
  23890. "required": ["type", "repository"],
  23891. "additionalProperties": false
  23892. },
  23893. "Reference.Source": {
  23894. "anyOf": [
  23895. {
  23896. "$ref": "#/components/schemas/Reference.LocalSource"
  23897. },
  23898. {
  23899. "$ref": "#/components/schemas/Reference.GitSource"
  23900. }
  23901. ]
  23902. },
  23903. "Reference.Info": {
  23904. "type": "object",
  23905. "properties": {
  23906. "name": {
  23907. "type": "string"
  23908. },
  23909. "path": {
  23910. "type": "string"
  23911. },
  23912. "description": {
  23913. "type": "string"
  23914. },
  23915. "hidden": {
  23916. "type": "boolean"
  23917. },
  23918. "source": {
  23919. "$ref": "#/components/schemas/Reference.Source"
  23920. }
  23921. },
  23922. "required": ["name", "path", "source"],
  23923. "additionalProperties": false
  23924. },
  23925. "ProjectCopy.Copy": {
  23926. "type": "object",
  23927. "properties": {
  23928. "directory": {
  23929. "type": "string"
  23930. }
  23931. },
  23932. "required": ["directory"],
  23933. "additionalProperties": false
  23934. },
  23935. "ProjectCopyError": {
  23936. "type": "object",
  23937. "properties": {
  23938. "name": {
  23939. "type": "string",
  23940. "enum": ["ProjectCopyError"]
  23941. },
  23942. "data": {
  23943. "type": "object",
  23944. "properties": {
  23945. "message": {
  23946. "type": "string"
  23947. },
  23948. "forceRequired": {
  23949. "anyOf": [
  23950. {
  23951. "type": "boolean"
  23952. },
  23953. {
  23954. "type": "null"
  23955. }
  23956. ]
  23957. }
  23958. },
  23959. "required": ["message"],
  23960. "additionalProperties": false
  23961. }
  23962. },
  23963. "required": ["name", "data"],
  23964. "additionalProperties": false
  23965. },
  23966. "Vcs.Branch": {
  23967. "type": "object",
  23968. "properties": {
  23969. "current": {
  23970. "type": "string"
  23971. },
  23972. "default": {
  23973. "type": "string"
  23974. }
  23975. },
  23976. "additionalProperties": false
  23977. },
  23978. "Vcs.Info": {
  23979. "type": "object",
  23980. "properties": {
  23981. "branch": {
  23982. "$ref": "#/components/schemas/Vcs.Branch"
  23983. }
  23984. },
  23985. "required": ["branch"],
  23986. "additionalProperties": false
  23987. },
  23988. "Vcs.FileStatus": {
  23989. "type": "object",
  23990. "properties": {
  23991. "file": {
  23992. "type": "string"
  23993. },
  23994. "additions": {
  23995. "type": "integer",
  23996. "allOf": [
  23997. {
  23998. "minimum": 0
  23999. }
  24000. ]
  24001. },
  24002. "deletions": {
  24003. "type": "integer",
  24004. "allOf": [
  24005. {
  24006. "minimum": 0
  24007. }
  24008. ]
  24009. },
  24010. "status": {
  24011. "type": "string",
  24012. "enum": ["added", "deleted", "modified"]
  24013. }
  24014. },
  24015. "required": ["file", "additions", "deletions", "status"],
  24016. "additionalProperties": false
  24017. },
  24018. "Vcs.Mode": {
  24019. "type": "string",
  24020. "enum": ["working", "branch"]
  24021. },
  24022. "WebSearch.Provider": {
  24023. "type": "object",
  24024. "properties": {
  24025. "id": {
  24026. "type": "string"
  24027. },
  24028. "name": {
  24029. "type": "string"
  24030. }
  24031. },
  24032. "required": ["id", "name"],
  24033. "additionalProperties": false
  24034. },
  24035. "WebSearch.Result": {
  24036. "type": "object",
  24037. "properties": {
  24038. "url": {
  24039. "type": "string"
  24040. },
  24041. "title": {
  24042. "type": "string"
  24043. },
  24044. "content": {
  24045. "type": "string"
  24046. },
  24047. "time": {
  24048. "type": "object",
  24049. "properties": {
  24050. "published": {
  24051. "type": "number"
  24052. }
  24053. },
  24054. "additionalProperties": false
  24055. }
  24056. },
  24057. "required": ["url", "time"],
  24058. "additionalProperties": false
  24059. },
  24060. "WebSearch.Response": {
  24061. "type": "object",
  24062. "properties": {
  24063. "providerID": {
  24064. "type": "string"
  24065. },
  24066. "results": {
  24067. "type": "array",
  24068. "items": {
  24069. "$ref": "#/components/schemas/WebSearch.Result"
  24070. }
  24071. }
  24072. },
  24073. "required": ["providerID", "results"],
  24074. "additionalProperties": false
  24075. },
  24076. "Config.Agent": {
  24077. "type": "object",
  24078. "properties": {
  24079. "model": {
  24080. "anyOf": [
  24081. {
  24082. "type": "string",
  24083. "allOf": [
  24084. {
  24085. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  24086. }
  24087. ]
  24088. },
  24089. {
  24090. "type": "object",
  24091. "properties": {
  24092. "providerID": {
  24093. "type": "string",
  24094. "allOf": [
  24095. {
  24096. "pattern": "^[^/#]+$"
  24097. }
  24098. ]
  24099. },
  24100. "model": {
  24101. "type": "string",
  24102. "allOf": [
  24103. {
  24104. "pattern": "^[^#]+$"
  24105. }
  24106. ]
  24107. },
  24108. "variant": {
  24109. "type": "string",
  24110. "allOf": [
  24111. {
  24112. "pattern": "^[^#]+$"
  24113. }
  24114. ]
  24115. }
  24116. },
  24117. "required": ["providerID", "model"],
  24118. "additionalProperties": false
  24119. }
  24120. ]
  24121. },
  24122. "request": {
  24123. "type": "object",
  24124. "properties": {
  24125. "headers": {
  24126. "type": "object",
  24127. "additionalProperties": {
  24128. "type": "string"
  24129. }
  24130. },
  24131. "body": {
  24132. "type": "object"
  24133. }
  24134. },
  24135. "additionalProperties": false
  24136. },
  24137. "system": {
  24138. "type": "string"
  24139. },
  24140. "description": {
  24141. "type": "string"
  24142. },
  24143. "mode": {
  24144. "type": "string",
  24145. "enum": ["subagent", "primary", "all"]
  24146. },
  24147. "hidden": {
  24148. "type": "boolean"
  24149. },
  24150. "color": {
  24151. "type": "string",
  24152. "allOf": [
  24153. {
  24154. "pattern": "^#[0-9a-fA-F]{6}$"
  24155. }
  24156. ]
  24157. },
  24158. "steps": {
  24159. "type": "integer",
  24160. "allOf": [
  24161. {
  24162. "exclusiveMinimum": 0
  24163. }
  24164. ]
  24165. },
  24166. "disabled": {
  24167. "type": "boolean"
  24168. },
  24169. "permissions": {
  24170. "$ref": "#/components/schemas/Permission.Ruleset"
  24171. }
  24172. },
  24173. "additionalProperties": false
  24174. },
  24175. "Config.Formatter.Entry": {
  24176. "type": "object",
  24177. "properties": {
  24178. "disabled": {
  24179. "type": "boolean"
  24180. },
  24181. "command": {
  24182. "type": "array",
  24183. "items": {
  24184. "type": "string"
  24185. }
  24186. },
  24187. "environment": {
  24188. "type": "object",
  24189. "additionalProperties": {
  24190. "type": "string"
  24191. }
  24192. },
  24193. "extensions": {
  24194. "type": "array",
  24195. "items": {
  24196. "type": "string"
  24197. }
  24198. }
  24199. },
  24200. "additionalProperties": false
  24201. },
  24202. "Config.LSP.Server": {
  24203. "type": "object",
  24204. "properties": {
  24205. "command": {
  24206. "type": "array",
  24207. "items": {
  24208. "type": "string"
  24209. }
  24210. },
  24211. "extensions": {
  24212. "type": "array",
  24213. "items": {
  24214. "type": "string"
  24215. }
  24216. },
  24217. "disabled": {
  24218. "type": "boolean"
  24219. },
  24220. "env": {
  24221. "type": "object",
  24222. "additionalProperties": {
  24223. "type": "string"
  24224. }
  24225. },
  24226. "initialization": {
  24227. "type": "object"
  24228. }
  24229. },
  24230. "required": ["command"],
  24231. "additionalProperties": false
  24232. },
  24233. "Config.Command": {
  24234. "type": "object",
  24235. "properties": {
  24236. "template": {
  24237. "type": "string"
  24238. },
  24239. "description": {
  24240. "type": "string"
  24241. },
  24242. "agent": {
  24243. "type": "string"
  24244. },
  24245. "model": {
  24246. "anyOf": [
  24247. {
  24248. "type": "string",
  24249. "allOf": [
  24250. {
  24251. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  24252. }
  24253. ]
  24254. },
  24255. {
  24256. "type": "object",
  24257. "properties": {
  24258. "providerID": {
  24259. "type": "string",
  24260. "allOf": [
  24261. {
  24262. "pattern": "^[^/#]+$"
  24263. }
  24264. ]
  24265. },
  24266. "model": {
  24267. "type": "string",
  24268. "allOf": [
  24269. {
  24270. "pattern": "^[^#]+$"
  24271. }
  24272. ]
  24273. },
  24274. "variant": {
  24275. "type": "string",
  24276. "allOf": [
  24277. {
  24278. "pattern": "^[^#]+$"
  24279. }
  24280. ]
  24281. }
  24282. },
  24283. "required": ["providerID", "model"],
  24284. "additionalProperties": false
  24285. }
  24286. ]
  24287. },
  24288. "subtask": {
  24289. "type": "boolean"
  24290. }
  24291. },
  24292. "required": ["template"],
  24293. "additionalProperties": false
  24294. },
  24295. "Config.Reference.Git": {
  24296. "type": "object",
  24297. "properties": {
  24298. "repository": {
  24299. "type": "string"
  24300. },
  24301. "branch": {
  24302. "type": "string"
  24303. },
  24304. "description": {
  24305. "type": "string"
  24306. },
  24307. "hidden": {
  24308. "type": "boolean"
  24309. }
  24310. },
  24311. "required": ["repository"],
  24312. "additionalProperties": false
  24313. },
  24314. "Config.Reference.Local": {
  24315. "type": "object",
  24316. "properties": {
  24317. "path": {
  24318. "type": "string"
  24319. },
  24320. "description": {
  24321. "type": "string"
  24322. },
  24323. "hidden": {
  24324. "type": "boolean"
  24325. }
  24326. },
  24327. "required": ["path"],
  24328. "additionalProperties": false
  24329. },
  24330. "Config.Plugin.Entry": {
  24331. "type": "object",
  24332. "properties": {
  24333. "package": {
  24334. "type": "string"
  24335. },
  24336. "options": {
  24337. "type": "object"
  24338. }
  24339. },
  24340. "required": ["package"],
  24341. "additionalProperties": false
  24342. },
  24343. "Config.Warming": {
  24344. "type": "object",
  24345. "properties": {
  24346. "prompt": {
  24347. "type": "string"
  24348. },
  24349. "interval": {
  24350. "type": "string"
  24351. },
  24352. "duration": {
  24353. "type": "string"
  24354. }
  24355. },
  24356. "additionalProperties": false
  24357. },
  24358. "Config.Model.Cost": {
  24359. "type": "object",
  24360. "properties": {
  24361. "tier": {
  24362. "type": "object",
  24363. "properties": {
  24364. "type": {
  24365. "type": "string",
  24366. "enum": ["context"]
  24367. },
  24368. "size": {
  24369. "type": "integer"
  24370. }
  24371. },
  24372. "required": ["type", "size"],
  24373. "additionalProperties": false
  24374. },
  24375. "input": {
  24376. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24377. },
  24378. "output": {
  24379. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24380. },
  24381. "cache": {
  24382. "type": "object",
  24383. "properties": {
  24384. "read": {
  24385. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24386. },
  24387. "write": {
  24388. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  24389. }
  24390. },
  24391. "additionalProperties": false
  24392. }
  24393. },
  24394. "required": ["input", "output"],
  24395. "additionalProperties": false
  24396. },
  24397. "Config.Model": {
  24398. "type": "object",
  24399. "properties": {
  24400. "modelID": {
  24401. "type": "string"
  24402. },
  24403. "family": {
  24404. "type": "string"
  24405. },
  24406. "name": {
  24407. "type": "string"
  24408. },
  24409. "compatibility": {
  24410. "$ref": "#/components/schemas/Model.Compatibility"
  24411. },
  24412. "package": {
  24413. "type": "string"
  24414. },
  24415. "settings": {
  24416. "type": "object"
  24417. },
  24418. "headers": {
  24419. "type": "object",
  24420. "additionalProperties": {
  24421. "type": "string"
  24422. }
  24423. },
  24424. "body": {
  24425. "type": "object"
  24426. },
  24427. "capabilities": {
  24428. "$ref": "#/components/schemas/Model.Capabilities"
  24429. },
  24430. "variants": {
  24431. "type": "array",
  24432. "items": {
  24433. "type": "object",
  24434. "properties": {
  24435. "id": {
  24436. "type": "string"
  24437. },
  24438. "settings": {
  24439. "type": "object"
  24440. },
  24441. "headers": {
  24442. "type": "object",
  24443. "additionalProperties": {
  24444. "type": "string"
  24445. }
  24446. },
  24447. "body": {
  24448. "type": "object"
  24449. }
  24450. },
  24451. "required": ["id"],
  24452. "additionalProperties": false
  24453. }
  24454. },
  24455. "cost": {
  24456. "anyOf": [
  24457. {
  24458. "$ref": "#/components/schemas/Config.Model.Cost"
  24459. },
  24460. {
  24461. "type": "array",
  24462. "items": {
  24463. "$ref": "#/components/schemas/Config.Model.Cost"
  24464. }
  24465. }
  24466. ]
  24467. },
  24468. "disabled": {
  24469. "type": "boolean"
  24470. },
  24471. "limit": {
  24472. "type": "object",
  24473. "properties": {
  24474. "context": {
  24475. "type": "integer"
  24476. },
  24477. "input": {
  24478. "type": "integer"
  24479. },
  24480. "output": {
  24481. "type": "integer"
  24482. }
  24483. },
  24484. "additionalProperties": false
  24485. }
  24486. },
  24487. "additionalProperties": false
  24488. },
  24489. "Config.Provider": {
  24490. "type": "object",
  24491. "properties": {
  24492. "name": {
  24493. "type": "string"
  24494. },
  24495. "env": {
  24496. "type": "array",
  24497. "items": {
  24498. "type": "string"
  24499. }
  24500. },
  24501. "package": {
  24502. "type": "string"
  24503. },
  24504. "settings": {
  24505. "type": "object"
  24506. },
  24507. "headers": {
  24508. "type": "object",
  24509. "additionalProperties": {
  24510. "type": "string"
  24511. }
  24512. },
  24513. "body": {
  24514. "type": "object"
  24515. },
  24516. "models": {
  24517. "type": "object",
  24518. "additionalProperties": {
  24519. "$ref": "#/components/schemas/Config.Model"
  24520. }
  24521. }
  24522. },
  24523. "additionalProperties": false
  24524. },
  24525. "Config.Info": {
  24526. "type": "object",
  24527. "properties": {
  24528. "$schema": {
  24529. "type": "string"
  24530. },
  24531. "shell": {
  24532. "type": "string"
  24533. },
  24534. "model": {
  24535. "anyOf": [
  24536. {
  24537. "type": "string",
  24538. "allOf": [
  24539. {
  24540. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  24541. }
  24542. ]
  24543. },
  24544. {
  24545. "type": "object",
  24546. "properties": {
  24547. "providerID": {
  24548. "type": "string",
  24549. "allOf": [
  24550. {
  24551. "pattern": "^[^/#]+$"
  24552. }
  24553. ]
  24554. },
  24555. "model": {
  24556. "type": "string",
  24557. "allOf": [
  24558. {
  24559. "pattern": "^[^#]+$"
  24560. }
  24561. ]
  24562. },
  24563. "variant": {
  24564. "type": "string",
  24565. "allOf": [
  24566. {
  24567. "pattern": "^[^#]+$"
  24568. }
  24569. ]
  24570. }
  24571. },
  24572. "required": ["providerID", "model"],
  24573. "additionalProperties": false
  24574. }
  24575. ]
  24576. },
  24577. "default_agent": {
  24578. "type": "string"
  24579. },
  24580. "autoupdate": {
  24581. "anyOf": [
  24582. {
  24583. "type": "boolean"
  24584. },
  24585. {
  24586. "type": "string",
  24587. "enum": ["notify"]
  24588. }
  24589. ]
  24590. },
  24591. "share": {
  24592. "type": "string",
  24593. "enum": ["manual", "auto", "disabled"]
  24594. },
  24595. "enterprise": {
  24596. "type": "object",
  24597. "properties": {
  24598. "url": {
  24599. "type": "string"
  24600. }
  24601. },
  24602. "additionalProperties": false
  24603. },
  24604. "username": {
  24605. "type": "string"
  24606. },
  24607. "permissions": {
  24608. "$ref": "#/components/schemas/Permission.Ruleset"
  24609. },
  24610. "agents": {
  24611. "type": "object",
  24612. "additionalProperties": {
  24613. "$ref": "#/components/schemas/Config.Agent"
  24614. }
  24615. },
  24616. "snapshots": {
  24617. "type": "boolean"
  24618. },
  24619. "watcher": {
  24620. "type": "object",
  24621. "properties": {
  24622. "ignore": {
  24623. "type": "array",
  24624. "items": {
  24625. "type": "string"
  24626. }
  24627. }
  24628. },
  24629. "additionalProperties": false
  24630. },
  24631. "formatter": {
  24632. "anyOf": [
  24633. {
  24634. "type": "boolean"
  24635. },
  24636. {
  24637. "type": "object",
  24638. "additionalProperties": {
  24639. "$ref": "#/components/schemas/Config.Formatter.Entry"
  24640. }
  24641. }
  24642. ]
  24643. },
  24644. "lsp": {
  24645. "anyOf": [
  24646. {
  24647. "type": "boolean"
  24648. },
  24649. {
  24650. "type": "object",
  24651. "additionalProperties": {
  24652. "anyOf": [
  24653. {
  24654. "type": "object",
  24655. "properties": {
  24656. "disabled": {
  24657. "type": "boolean",
  24658. "enum": [true]
  24659. }
  24660. },
  24661. "required": ["disabled"],
  24662. "additionalProperties": false
  24663. },
  24664. {
  24665. "$ref": "#/components/schemas/Config.LSP.Server"
  24666. }
  24667. ]
  24668. }
  24669. }
  24670. ]
  24671. },
  24672. "media": {
  24673. "type": "object",
  24674. "properties": {
  24675. "image": {
  24676. "type": "object",
  24677. "properties": {
  24678. "auto_resize": {
  24679. "type": "boolean"
  24680. },
  24681. "max_width": {
  24682. "type": "integer",
  24683. "allOf": [
  24684. {
  24685. "exclusiveMinimum": 0
  24686. }
  24687. ]
  24688. },
  24689. "max_height": {
  24690. "type": "integer",
  24691. "allOf": [
  24692. {
  24693. "exclusiveMinimum": 0
  24694. }
  24695. ]
  24696. },
  24697. "max_base64_bytes": {
  24698. "type": "integer",
  24699. "allOf": [
  24700. {
  24701. "exclusiveMinimum": 0
  24702. }
  24703. ]
  24704. }
  24705. },
  24706. "additionalProperties": false
  24707. }
  24708. },
  24709. "additionalProperties": false
  24710. },
  24711. "tool_output": {
  24712. "type": "object",
  24713. "properties": {
  24714. "max_lines": {
  24715. "type": "integer",
  24716. "allOf": [
  24717. {
  24718. "exclusiveMinimum": 0
  24719. }
  24720. ]
  24721. },
  24722. "max_bytes": {
  24723. "type": "integer",
  24724. "allOf": [
  24725. {
  24726. "exclusiveMinimum": 0
  24727. }
  24728. ]
  24729. }
  24730. },
  24731. "additionalProperties": false
  24732. },
  24733. "mcp": {
  24734. "type": "object",
  24735. "properties": {
  24736. "timeout": {
  24737. "type": "object",
  24738. "properties": {
  24739. "startup": {
  24740. "type": "integer",
  24741. "allOf": [
  24742. {
  24743. "exclusiveMinimum": 0
  24744. }
  24745. ]
  24746. },
  24747. "catalog": {
  24748. "type": "integer",
  24749. "allOf": [
  24750. {
  24751. "exclusiveMinimum": 0
  24752. }
  24753. ]
  24754. },
  24755. "execution": {
  24756. "type": "integer",
  24757. "allOf": [
  24758. {
  24759. "exclusiveMinimum": 0
  24760. }
  24761. ]
  24762. }
  24763. },
  24764. "additionalProperties": false
  24765. },
  24766. "servers": {
  24767. "type": "object",
  24768. "additionalProperties": {
  24769. "anyOf": [
  24770. {
  24771. "$ref": "#/components/schemas/Mcp.LocalConfig"
  24772. },
  24773. {
  24774. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  24775. }
  24776. ]
  24777. }
  24778. }
  24779. },
  24780. "additionalProperties": false
  24781. },
  24782. "compaction": {
  24783. "type": "object",
  24784. "properties": {
  24785. "auto": {
  24786. "type": "boolean"
  24787. },
  24788. "keep": {
  24789. "type": "object",
  24790. "properties": {
  24791. "tokens": {
  24792. "type": "integer",
  24793. "allOf": [
  24794. {
  24795. "minimum": 0
  24796. }
  24797. ]
  24798. }
  24799. },
  24800. "additionalProperties": false
  24801. },
  24802. "buffer": {
  24803. "type": "integer",
  24804. "allOf": [
  24805. {
  24806. "minimum": 0
  24807. }
  24808. ]
  24809. }
  24810. },
  24811. "additionalProperties": false
  24812. },
  24813. "skills": {
  24814. "type": "array",
  24815. "items": {
  24816. "type": "string"
  24817. }
  24818. },
  24819. "commands": {
  24820. "type": "object",
  24821. "additionalProperties": {
  24822. "$ref": "#/components/schemas/Config.Command"
  24823. }
  24824. },
  24825. "instructions": {
  24826. "type": "array",
  24827. "items": {
  24828. "type": "string"
  24829. }
  24830. },
  24831. "references": {
  24832. "type": "object",
  24833. "additionalProperties": {
  24834. "anyOf": [
  24835. {
  24836. "type": "string"
  24837. },
  24838. {
  24839. "$ref": "#/components/schemas/Config.Reference.Git"
  24840. },
  24841. {
  24842. "$ref": "#/components/schemas/Config.Reference.Local"
  24843. }
  24844. ]
  24845. }
  24846. },
  24847. "websearch": {
  24848. "type": "object",
  24849. "properties": {
  24850. "provider": {
  24851. "type": "string"
  24852. }
  24853. },
  24854. "required": ["provider"],
  24855. "additionalProperties": false
  24856. },
  24857. "plugins": {
  24858. "type": "array",
  24859. "items": {
  24860. "anyOf": [
  24861. {
  24862. "type": "string"
  24863. },
  24864. {
  24865. "$ref": "#/components/schemas/Config.Plugin.Entry"
  24866. }
  24867. ]
  24868. }
  24869. },
  24870. "warming": {
  24871. "anyOf": [
  24872. {
  24873. "type": "boolean"
  24874. },
  24875. {
  24876. "$ref": "#/components/schemas/Config.Warming"
  24877. }
  24878. ]
  24879. },
  24880. "providers": {
  24881. "type": "object",
  24882. "additionalProperties": {
  24883. "$ref": "#/components/schemas/Config.Provider"
  24884. }
  24885. },
  24886. "experimental": {
  24887. "type": "object",
  24888. "properties": {
  24889. "subagent_depth": {
  24890. "type": "integer",
  24891. "allOf": [
  24892. {
  24893. "minimum": 0
  24894. }
  24895. ]
  24896. },
  24897. "policies": {
  24898. "type": "array",
  24899. "items": {
  24900. "type": "object",
  24901. "properties": {
  24902. "action": {
  24903. "type": "string",
  24904. "enum": ["provider.use"]
  24905. },
  24906. "resource": {
  24907. "type": "string"
  24908. },
  24909. "effect": {
  24910. "type": "string",
  24911. "enum": ["allow", "deny"]
  24912. }
  24913. },
  24914. "required": ["action", "resource", "effect"],
  24915. "additionalProperties": false
  24916. }
  24917. }
  24918. },
  24919. "additionalProperties": false
  24920. }
  24921. },
  24922. "additionalProperties": false
  24923. },
  24924. "Config.Document": {
  24925. "type": "object",
  24926. "properties": {
  24927. "type": {
  24928. "type": "string",
  24929. "enum": ["document"]
  24930. },
  24931. "path": {
  24932. "type": "string"
  24933. },
  24934. "info": {
  24935. "$ref": "#/components/schemas/Config.Info"
  24936. }
  24937. },
  24938. "required": ["type", "info"],
  24939. "additionalProperties": false
  24940. },
  24941. "Config.Directory": {
  24942. "type": "object",
  24943. "properties": {
  24944. "type": {
  24945. "type": "string",
  24946. "enum": ["directory"]
  24947. },
  24948. "path": {
  24949. "type": "string"
  24950. }
  24951. },
  24952. "required": ["type", "path"],
  24953. "additionalProperties": false
  24954. },
  24955. "Config.File": {
  24956. "type": "object",
  24957. "properties": {
  24958. "type": {
  24959. "type": "string",
  24960. "enum": ["file"]
  24961. },
  24962. "path": {
  24963. "type": "string"
  24964. }
  24965. },
  24966. "required": ["type", "path"],
  24967. "additionalProperties": false
  24968. },
  24969. "Config.AgentsDirectory": {
  24970. "type": "object",
  24971. "properties": {
  24972. "type": {
  24973. "type": "string",
  24974. "enum": ["agents"]
  24975. },
  24976. "path": {
  24977. "type": "string"
  24978. }
  24979. },
  24980. "required": ["type", "path"],
  24981. "additionalProperties": false
  24982. },
  24983. "Config.ClaudeDirectory": {
  24984. "type": "object",
  24985. "properties": {
  24986. "type": {
  24987. "type": "string",
  24988. "enum": ["claude"]
  24989. },
  24990. "path": {
  24991. "type": "string"
  24992. }
  24993. },
  24994. "required": ["type", "path"],
  24995. "additionalProperties": false
  24996. },
  24997. "Config.Entry": {
  24998. "anyOf": [
  24999. {
  25000. "$ref": "#/components/schemas/Config.Document"
  25001. },
  25002. {
  25003. "$ref": "#/components/schemas/Config.Directory"
  25004. },
  25005. {
  25006. "$ref": "#/components/schemas/Config.File"
  25007. },
  25008. {
  25009. "$ref": "#/components/schemas/Config.AgentsDirectory"
  25010. },
  25011. {
  25012. "$ref": "#/components/schemas/Config.ClaudeDirectory"
  25013. }
  25014. ]
  25015. }
  25016. },
  25017. "securitySchemes": {}
  25018. },
  25019. "security": [],
  25020. "tags": [
  25021. {
  25022. "name": "health"
  25023. },
  25024. {
  25025. "name": "server"
  25026. },
  25027. {
  25028. "name": "location"
  25029. },
  25030. {
  25031. "name": "agent"
  25032. },
  25033. {
  25034. "name": "plugin",
  25035. "description": "Experimental plugin routes."
  25036. },
  25037. {
  25038. "name": "session",
  25039. "description": "Experimental session routes."
  25040. },
  25041. {
  25042. "name": "session",
  25043. "description": "Experimental message routes."
  25044. },
  25045. {
  25046. "name": "model",
  25047. "description": "Experimental model routes."
  25048. },
  25049. {
  25050. "name": "generate",
  25051. "description": "Experimental one-shot generation routes."
  25052. },
  25053. {
  25054. "name": "provider",
  25055. "description": "Experimental provider routes."
  25056. },
  25057. {
  25058. "name": "integration",
  25059. "description": "Integration discovery and authentication routes."
  25060. },
  25061. {
  25062. "name": "mcp",
  25063. "description": "MCP server and resource routes."
  25064. },
  25065. {
  25066. "name": "credential"
  25067. },
  25068. {
  25069. "name": "project",
  25070. "description": "Location-scoped project routes."
  25071. },
  25072. {
  25073. "name": "form",
  25074. "description": "Session form routes."
  25075. },
  25076. {
  25077. "name": "permission",
  25078. "description": "Experimental permission routes."
  25079. },
  25080. {
  25081. "name": "filesystem",
  25082. "description": "Experimental location-scoped filesystem routes."
  25083. },
  25084. {
  25085. "name": "command",
  25086. "description": "Experimental command routes."
  25087. },
  25088. {
  25089. "name": "skill",
  25090. "description": "Experimental skill routes."
  25091. },
  25092. {
  25093. "name": "event",
  25094. "description": "Experimental event stream routes."
  25095. },
  25096. {
  25097. "name": "pty",
  25098. "description": "Experimental location-scoped PTY routes."
  25099. },
  25100. {
  25101. "name": "shell",
  25102. "description": "Experimental location-scoped shell command routes."
  25103. },
  25104. {
  25105. "name": "question",
  25106. "description": "Experimental session question routes."
  25107. },
  25108. {
  25109. "name": "reference",
  25110. "description": "Location-scoped project references."
  25111. },
  25112. {
  25113. "name": "projectCopy",
  25114. "description": "Project copy management routes."
  25115. },
  25116. {
  25117. "name": "vcs",
  25118. "description": "Location-scoped version control routes."
  25119. },
  25120. {
  25121. "name": "debug"
  25122. },
  25123. {
  25124. "name": "migration"
  25125. },
  25126. {
  25127. "name": "websearch",
  25128. "description": "Location-scoped web search routes."
  25129. },
  25130. {
  25131. "name": "config",
  25132. "description": "Location-scoped configuration routes."
  25133. }
  25134. ]
  25135. }