openapi.json 707 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "opencode HttpApi",
  5. "version": "0.0.1",
  6. "description": "Experimental HttpApi surface for selected instance routes."
  7. },
  8. "paths": {
  9. "/api/health": {
  10. "get": {
  11. "tags": [
  12. "health"
  13. ],
  14. "operationId": "v2.health.get",
  15. "parameters": [],
  16. "security": [],
  17. "responses": {
  18. "200": {
  19. "description": "ServiceHealth",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "$ref": "#/components/schemas/ServiceHealth"
  24. }
  25. }
  26. }
  27. },
  28. "400": {
  29. "description": "InvalidRequestError",
  30. "content": {
  31. "application/json": {
  32. "schema": {
  33. "$ref": "#/components/schemas/InvalidRequestError"
  34. }
  35. }
  36. }
  37. },
  38. "401": {
  39. "description": "UnauthorizedError",
  40. "content": {
  41. "application/json": {
  42. "schema": {
  43. "$ref": "#/components/schemas/UnauthorizedError"
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "description": "Report the owning server process and its application status.",
  50. "summary": "Check server health"
  51. }
  52. },
  53. "/api/service/stop": {
  54. "post": {
  55. "tags": [
  56. "health"
  57. ],
  58. "operationId": "v2.health.stop",
  59. "parameters": [],
  60. "security": [],
  61. "responses": {
  62. "200": {
  63. "description": "ServiceStopResponse",
  64. "content": {
  65. "application/json": {
  66. "schema": {
  67. "$ref": "#/components/schemas/ServiceStopResponse"
  68. }
  69. }
  70. }
  71. },
  72. "400": {
  73. "description": "InvalidRequestError",
  74. "content": {
  75. "application/json": {
  76. "schema": {
  77. "$ref": "#/components/schemas/InvalidRequestError"
  78. }
  79. }
  80. }
  81. },
  82. "401": {
  83. "description": "UnauthorizedError",
  84. "content": {
  85. "application/json": {
  86. "schema": {
  87. "$ref": "#/components/schemas/UnauthorizedError"
  88. }
  89. }
  90. }
  91. }
  92. },
  93. "description": "Request graceful shutdown of one exact managed server instance.",
  94. "summary": "Stop the managed server",
  95. "requestBody": {
  96. "content": {
  97. "application/json": {
  98. "schema": {
  99. "$ref": "#/components/schemas/ServiceStopRequest"
  100. }
  101. }
  102. },
  103. "required": true
  104. }
  105. }
  106. },
  107. "/api/server": {
  108. "get": {
  109. "tags": [
  110. "server"
  111. ],
  112. "operationId": "v2.server.get",
  113. "parameters": [],
  114. "security": [],
  115. "responses": {
  116. "200": {
  117. "description": "Success",
  118. "content": {
  119. "application/json": {
  120. "schema": {
  121. "type": "object",
  122. "properties": {
  123. "urls": {
  124. "type": "array",
  125. "items": {
  126. "type": "string"
  127. }
  128. }
  129. },
  130. "required": [
  131. "urls"
  132. ],
  133. "additionalProperties": false
  134. }
  135. }
  136. }
  137. },
  138. "400": {
  139. "description": "InvalidRequestError",
  140. "content": {
  141. "application/json": {
  142. "schema": {
  143. "$ref": "#/components/schemas/InvalidRequestError"
  144. }
  145. }
  146. }
  147. },
  148. "401": {
  149. "description": "UnauthorizedError",
  150. "content": {
  151. "application/json": {
  152. "schema": {
  153. "$ref": "#/components/schemas/UnauthorizedError"
  154. }
  155. }
  156. }
  157. }
  158. },
  159. "description": "Return the URLs that can be used to connect to this server.",
  160. "summary": "Get server information"
  161. }
  162. },
  163. "/api/location": {
  164. "get": {
  165. "tags": [
  166. "location"
  167. ],
  168. "operationId": "v2.location.get",
  169. "parameters": [
  170. {
  171. "name": "location",
  172. "in": "query",
  173. "schema": {
  174. "anyOf": [
  175. {
  176. "type": "object",
  177. "properties": {
  178. "directory": {
  179. "anyOf": [
  180. {
  181. "type": "string"
  182. },
  183. {
  184. "type": "null"
  185. }
  186. ]
  187. },
  188. "workspace": {
  189. "anyOf": [
  190. {
  191. "type": "string"
  192. },
  193. {
  194. "type": "null"
  195. }
  196. ]
  197. }
  198. },
  199. "additionalProperties": false
  200. },
  201. {
  202. "type": "null"
  203. }
  204. ]
  205. },
  206. "required": false,
  207. "style": "deepObject",
  208. "explode": true
  209. }
  210. ],
  211. "security": [],
  212. "responses": {
  213. "200": {
  214. "description": "Location.Info",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "$ref": "#/components/schemas/Location.Info"
  219. }
  220. }
  221. }
  222. },
  223. "400": {
  224. "description": "InvalidRequestError",
  225. "content": {
  226. "application/json": {
  227. "schema": {
  228. "$ref": "#/components/schemas/InvalidRequestError"
  229. }
  230. }
  231. }
  232. },
  233. "401": {
  234. "description": "UnauthorizedError",
  235. "content": {
  236. "application/json": {
  237. "schema": {
  238. "$ref": "#/components/schemas/UnauthorizedError"
  239. }
  240. }
  241. }
  242. }
  243. },
  244. "description": "Resolve the requested location or the server default location.",
  245. "summary": "Get location"
  246. }
  247. },
  248. "/api/agent": {
  249. "get": {
  250. "tags": [
  251. "agent"
  252. ],
  253. "operationId": "v2.agent.list",
  254. "parameters": [
  255. {
  256. "name": "location",
  257. "in": "query",
  258. "schema": {
  259. "anyOf": [
  260. {
  261. "type": "object",
  262. "properties": {
  263. "directory": {
  264. "anyOf": [
  265. {
  266. "type": "string"
  267. },
  268. {
  269. "type": "null"
  270. }
  271. ]
  272. },
  273. "workspace": {
  274. "anyOf": [
  275. {
  276. "type": "string"
  277. },
  278. {
  279. "type": "null"
  280. }
  281. ]
  282. }
  283. },
  284. "additionalProperties": false
  285. },
  286. {
  287. "type": "null"
  288. }
  289. ]
  290. },
  291. "required": false,
  292. "style": "deepObject",
  293. "explode": true
  294. }
  295. ],
  296. "security": [],
  297. "responses": {
  298. "200": {
  299. "description": "Success",
  300. "content": {
  301. "application/json": {
  302. "schema": {
  303. "type": "object",
  304. "properties": {
  305. "location": {
  306. "$ref": "#/components/schemas/Location.Info"
  307. },
  308. "data": {
  309. "type": "array",
  310. "items": {
  311. "$ref": "#/components/schemas/Agent.Info"
  312. }
  313. }
  314. },
  315. "required": [
  316. "location",
  317. "data"
  318. ],
  319. "additionalProperties": false
  320. }
  321. }
  322. }
  323. },
  324. "400": {
  325. "description": "InvalidRequestError",
  326. "content": {
  327. "application/json": {
  328. "schema": {
  329. "$ref": "#/components/schemas/InvalidRequestError"
  330. }
  331. }
  332. }
  333. },
  334. "401": {
  335. "description": "UnauthorizedError",
  336. "content": {
  337. "application/json": {
  338. "schema": {
  339. "$ref": "#/components/schemas/UnauthorizedError"
  340. }
  341. }
  342. }
  343. }
  344. },
  345. "description": "Retrieve currently registered agents.",
  346. "summary": "List agents"
  347. }
  348. },
  349. "/api/agent/{agentID}": {
  350. "get": {
  351. "tags": [
  352. "agent"
  353. ],
  354. "operationId": "v2.agent.get",
  355. "parameters": [
  356. {
  357. "name": "agentID",
  358. "in": "path",
  359. "schema": {
  360. "type": "string"
  361. },
  362. "required": true
  363. },
  364. {
  365. "name": "location",
  366. "in": "query",
  367. "schema": {
  368. "anyOf": [
  369. {
  370. "type": "object",
  371. "properties": {
  372. "directory": {
  373. "anyOf": [
  374. {
  375. "type": "string"
  376. },
  377. {
  378. "type": "null"
  379. }
  380. ]
  381. },
  382. "workspace": {
  383. "anyOf": [
  384. {
  385. "type": "string"
  386. },
  387. {
  388. "type": "null"
  389. }
  390. ]
  391. }
  392. },
  393. "additionalProperties": false
  394. },
  395. {
  396. "type": "null"
  397. }
  398. ]
  399. },
  400. "required": false,
  401. "style": "deepObject",
  402. "explode": true
  403. }
  404. ],
  405. "security": [],
  406. "responses": {
  407. "200": {
  408. "description": "Success",
  409. "content": {
  410. "application/json": {
  411. "schema": {
  412. "type": "object",
  413. "properties": {
  414. "location": {
  415. "$ref": "#/components/schemas/Location.Info"
  416. },
  417. "data": {
  418. "$ref": "#/components/schemas/Agent.Info"
  419. }
  420. },
  421. "required": [
  422. "location",
  423. "data"
  424. ],
  425. "additionalProperties": false
  426. }
  427. }
  428. }
  429. },
  430. "400": {
  431. "description": "InvalidRequestError",
  432. "content": {
  433. "application/json": {
  434. "schema": {
  435. "$ref": "#/components/schemas/InvalidRequestError"
  436. }
  437. }
  438. }
  439. },
  440. "401": {
  441. "description": "UnauthorizedError",
  442. "content": {
  443. "application/json": {
  444. "schema": {
  445. "$ref": "#/components/schemas/UnauthorizedError"
  446. }
  447. }
  448. }
  449. },
  450. "404": {
  451. "description": "AgentNotFoundError",
  452. "content": {
  453. "application/json": {
  454. "schema": {
  455. "$ref": "#/components/schemas/AgentNotFoundError"
  456. }
  457. }
  458. }
  459. }
  460. },
  461. "description": "Retrieve a single currently registered agent.",
  462. "summary": "Get agent"
  463. }
  464. },
  465. "/api/plugin": {
  466. "get": {
  467. "tags": [
  468. "plugin"
  469. ],
  470. "operationId": "v2.plugin.list",
  471. "parameters": [
  472. {
  473. "name": "location",
  474. "in": "query",
  475. "schema": {
  476. "anyOf": [
  477. {
  478. "type": "object",
  479. "properties": {
  480. "directory": {
  481. "anyOf": [
  482. {
  483. "type": "string"
  484. },
  485. {
  486. "type": "null"
  487. }
  488. ]
  489. },
  490. "workspace": {
  491. "anyOf": [
  492. {
  493. "type": "string"
  494. },
  495. {
  496. "type": "null"
  497. }
  498. ]
  499. }
  500. },
  501. "additionalProperties": false
  502. },
  503. {
  504. "type": "null"
  505. }
  506. ]
  507. },
  508. "required": false,
  509. "style": "deepObject",
  510. "explode": true
  511. }
  512. ],
  513. "security": [],
  514. "responses": {
  515. "200": {
  516. "description": "Success",
  517. "content": {
  518. "application/json": {
  519. "schema": {
  520. "type": "object",
  521. "properties": {
  522. "location": {
  523. "$ref": "#/components/schemas/Location.Info"
  524. },
  525. "data": {
  526. "type": "array",
  527. "items": {
  528. "$ref": "#/components/schemas/Plugin.Info"
  529. }
  530. }
  531. },
  532. "required": [
  533. "location",
  534. "data"
  535. ],
  536. "additionalProperties": false
  537. }
  538. }
  539. }
  540. },
  541. "400": {
  542. "description": "InvalidRequestError",
  543. "content": {
  544. "application/json": {
  545. "schema": {
  546. "$ref": "#/components/schemas/InvalidRequestError"
  547. }
  548. }
  549. }
  550. },
  551. "401": {
  552. "description": "UnauthorizedError",
  553. "content": {
  554. "application/json": {
  555. "schema": {
  556. "$ref": "#/components/schemas/UnauthorizedError"
  557. }
  558. }
  559. }
  560. }
  561. },
  562. "description": "Retrieve currently loaded plugins.",
  563. "summary": "List plugins"
  564. }
  565. },
  566. "/api/session": {
  567. "get": {
  568. "tags": [
  569. "session"
  570. ],
  571. "operationId": "v2.session.list",
  572. "parameters": [
  573. {
  574. "name": "workspace",
  575. "in": "query",
  576. "schema": {
  577. "anyOf": [
  578. {
  579. "type": "string",
  580. "allOf": [
  581. {
  582. "pattern": "^wrk"
  583. }
  584. ]
  585. },
  586. {
  587. "type": "null"
  588. }
  589. ]
  590. },
  591. "required": false
  592. },
  593. {
  594. "name": "limit",
  595. "in": "query",
  596. "schema": {
  597. "anyOf": [
  598. {
  599. "type": "string"
  600. },
  601. {
  602. "type": "null"
  603. }
  604. ],
  605. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  606. },
  607. "required": false
  608. },
  609. {
  610. "name": "order",
  611. "in": "query",
  612. "schema": {
  613. "anyOf": [
  614. {
  615. "type": "string",
  616. "enum": [
  617. "asc",
  618. "desc"
  619. ]
  620. },
  621. {
  622. "type": "null"
  623. }
  624. ],
  625. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  626. },
  627. "required": false
  628. },
  629. {
  630. "name": "search",
  631. "in": "query",
  632. "schema": {
  633. "anyOf": [
  634. {
  635. "type": "string"
  636. },
  637. {
  638. "type": "null"
  639. }
  640. ]
  641. },
  642. "required": false
  643. },
  644. {
  645. "name": "parentID",
  646. "in": "query",
  647. "schema": {
  648. "anyOf": [
  649. {
  650. "anyOf": [
  651. {
  652. "type": "string",
  653. "allOf": [
  654. {
  655. "pattern": "^ses"
  656. }
  657. ]
  658. },
  659. {
  660. "type": "string",
  661. "enum": [
  662. "null"
  663. ]
  664. }
  665. ],
  666. "description": "Filter by parent session. Use null to return only root sessions."
  667. },
  668. {
  669. "type": "null"
  670. }
  671. ]
  672. },
  673. "required": false
  674. },
  675. {
  676. "name": "directory",
  677. "in": "query",
  678. "schema": {
  679. "anyOf": [
  680. {
  681. "type": "string"
  682. },
  683. {
  684. "type": "null"
  685. }
  686. ]
  687. },
  688. "required": false
  689. },
  690. {
  691. "name": "project",
  692. "in": "query",
  693. "schema": {
  694. "anyOf": [
  695. {
  696. "type": "string"
  697. },
  698. {
  699. "type": "null"
  700. }
  701. ]
  702. },
  703. "required": false
  704. },
  705. {
  706. "name": "subpath",
  707. "in": "query",
  708. "schema": {
  709. "anyOf": [
  710. {
  711. "type": "string"
  712. },
  713. {
  714. "type": "null"
  715. }
  716. ]
  717. },
  718. "required": false
  719. },
  720. {
  721. "name": "cursor",
  722. "in": "query",
  723. "schema": {
  724. "anyOf": [
  725. {
  726. "type": "string",
  727. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  728. },
  729. {
  730. "type": "null"
  731. }
  732. ]
  733. },
  734. "required": false
  735. }
  736. ],
  737. "security": [],
  738. "responses": {
  739. "200": {
  740. "description": "SessionsResponse",
  741. "content": {
  742. "application/json": {
  743. "schema": {
  744. "$ref": "#/components/schemas/SessionsResponse"
  745. }
  746. }
  747. }
  748. },
  749. "400": {
  750. "description": "InvalidCursorError | InvalidRequestError",
  751. "content": {
  752. "application/json": {
  753. "schema": {
  754. "anyOf": [
  755. {
  756. "$ref": "#/components/schemas/InvalidCursorError"
  757. },
  758. {
  759. "$ref": "#/components/schemas/InvalidRequestError1"
  760. },
  761. {
  762. "$ref": "#/components/schemas/InvalidRequestError"
  763. }
  764. ]
  765. }
  766. }
  767. }
  768. },
  769. "401": {
  770. "description": "UnauthorizedError",
  771. "content": {
  772. "application/json": {
  773. "schema": {
  774. "$ref": "#/components/schemas/UnauthorizedError"
  775. }
  776. }
  777. }
  778. }
  779. },
  780. "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
  781. "summary": "List sessions"
  782. },
  783. "post": {
  784. "tags": [
  785. "session"
  786. ],
  787. "operationId": "v2.session.create",
  788. "parameters": [],
  789. "security": [],
  790. "responses": {
  791. "200": {
  792. "description": "Success",
  793. "content": {
  794. "application/json": {
  795. "schema": {
  796. "type": "object",
  797. "properties": {
  798. "data": {
  799. "$ref": "#/components/schemas/Session.Info"
  800. }
  801. },
  802. "required": [
  803. "data"
  804. ],
  805. "additionalProperties": false
  806. }
  807. }
  808. }
  809. },
  810. "400": {
  811. "description": "InvalidRequestError",
  812. "content": {
  813. "application/json": {
  814. "schema": {
  815. "$ref": "#/components/schemas/InvalidRequestError"
  816. }
  817. }
  818. }
  819. },
  820. "401": {
  821. "description": "UnauthorizedError",
  822. "content": {
  823. "application/json": {
  824. "schema": {
  825. "$ref": "#/components/schemas/UnauthorizedError"
  826. }
  827. }
  828. }
  829. }
  830. },
  831. "description": "Create a session at the requested location.",
  832. "summary": "Create session",
  833. "requestBody": {
  834. "content": {
  835. "application/json": {
  836. "schema": {
  837. "type": "object",
  838. "properties": {
  839. "id": {
  840. "anyOf": [
  841. {
  842. "type": "string",
  843. "allOf": [
  844. {
  845. "pattern": "^ses"
  846. }
  847. ]
  848. },
  849. {
  850. "type": "null"
  851. }
  852. ]
  853. },
  854. "title": {
  855. "anyOf": [
  856. {
  857. "type": "string"
  858. },
  859. {
  860. "type": "null"
  861. }
  862. ]
  863. },
  864. "agent": {
  865. "anyOf": [
  866. {
  867. "type": "string"
  868. },
  869. {
  870. "type": "null"
  871. }
  872. ]
  873. },
  874. "model": {
  875. "anyOf": [
  876. {
  877. "$ref": "#/components/schemas/Model.Ref"
  878. },
  879. {
  880. "type": "null"
  881. }
  882. ]
  883. },
  884. "location": {
  885. "anyOf": [
  886. {
  887. "$ref": "#/components/schemas/Location.Ref"
  888. },
  889. {
  890. "type": "null"
  891. }
  892. ]
  893. }
  894. },
  895. "additionalProperties": false
  896. }
  897. }
  898. },
  899. "required": true
  900. }
  901. }
  902. },
  903. "/api/session/active": {
  904. "get": {
  905. "tags": [
  906. "session"
  907. ],
  908. "operationId": "v2.session.active",
  909. "parameters": [],
  910. "security": [],
  911. "responses": {
  912. "200": {
  913. "description": "Success",
  914. "content": {
  915. "application/json": {
  916. "schema": {
  917. "type": "object",
  918. "properties": {
  919. "data": {
  920. "type": "object",
  921. "patternProperties": {
  922. "^ses": {
  923. "$ref": "#/components/schemas/SessionActive"
  924. }
  925. }
  926. }
  927. },
  928. "required": [
  929. "data"
  930. ],
  931. "additionalProperties": false
  932. }
  933. }
  934. }
  935. },
  936. "400": {
  937. "description": "InvalidRequestError",
  938. "content": {
  939. "application/json": {
  940. "schema": {
  941. "$ref": "#/components/schemas/InvalidRequestError"
  942. }
  943. }
  944. }
  945. },
  946. "401": {
  947. "description": "UnauthorizedError",
  948. "content": {
  949. "application/json": {
  950. "schema": {
  951. "$ref": "#/components/schemas/UnauthorizedError"
  952. }
  953. }
  954. }
  955. }
  956. },
  957. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  958. "summary": "List active sessions"
  959. }
  960. },
  961. "/api/session/{sessionID}": {
  962. "get": {
  963. "tags": [
  964. "session"
  965. ],
  966. "operationId": "v2.session.get",
  967. "parameters": [
  968. {
  969. "name": "sessionID",
  970. "in": "path",
  971. "schema": {
  972. "type": "string",
  973. "allOf": [
  974. {
  975. "pattern": "^ses"
  976. }
  977. ]
  978. },
  979. "required": true
  980. }
  981. ],
  982. "security": [],
  983. "responses": {
  984. "200": {
  985. "description": "Success",
  986. "content": {
  987. "application/json": {
  988. "schema": {
  989. "type": "object",
  990. "properties": {
  991. "data": {
  992. "$ref": "#/components/schemas/Session.Info"
  993. }
  994. },
  995. "required": [
  996. "data"
  997. ],
  998. "additionalProperties": false
  999. }
  1000. }
  1001. }
  1002. },
  1003. "400": {
  1004. "description": "InvalidRequestError",
  1005. "content": {
  1006. "application/json": {
  1007. "schema": {
  1008. "$ref": "#/components/schemas/InvalidRequestError"
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "401": {
  1014. "description": "UnauthorizedError",
  1015. "content": {
  1016. "application/json": {
  1017. "schema": {
  1018. "$ref": "#/components/schemas/UnauthorizedError"
  1019. }
  1020. }
  1021. }
  1022. },
  1023. "404": {
  1024. "description": "SessionNotFoundError",
  1025. "content": {
  1026. "application/json": {
  1027. "schema": {
  1028. "$ref": "#/components/schemas/SessionNotFoundError"
  1029. }
  1030. }
  1031. }
  1032. }
  1033. },
  1034. "description": "Retrieve a session by ID.",
  1035. "summary": "Get session"
  1036. },
  1037. "delete": {
  1038. "tags": [
  1039. "session"
  1040. ],
  1041. "operationId": "v2.session.remove",
  1042. "parameters": [
  1043. {
  1044. "name": "sessionID",
  1045. "in": "path",
  1046. "schema": {
  1047. "type": "string",
  1048. "allOf": [
  1049. {
  1050. "pattern": "^ses"
  1051. }
  1052. ]
  1053. },
  1054. "required": true
  1055. }
  1056. ],
  1057. "security": [],
  1058. "responses": {
  1059. "204": {
  1060. "description": "<No Content>"
  1061. },
  1062. "400": {
  1063. "description": "InvalidRequestError",
  1064. "content": {
  1065. "application/json": {
  1066. "schema": {
  1067. "$ref": "#/components/schemas/InvalidRequestError"
  1068. }
  1069. }
  1070. }
  1071. },
  1072. "401": {
  1073. "description": "UnauthorizedError",
  1074. "content": {
  1075. "application/json": {
  1076. "schema": {
  1077. "$ref": "#/components/schemas/UnauthorizedError"
  1078. }
  1079. }
  1080. }
  1081. },
  1082. "404": {
  1083. "description": "SessionNotFoundError",
  1084. "content": {
  1085. "application/json": {
  1086. "schema": {
  1087. "anyOf": [
  1088. {
  1089. "$ref": "#/components/schemas/SessionNotFoundError"
  1090. },
  1091. {
  1092. "$ref": "#/components/schemas/SessionNotFoundError"
  1093. }
  1094. ]
  1095. }
  1096. }
  1097. }
  1098. }
  1099. },
  1100. "description": "Delete a session and its child sessions.",
  1101. "summary": "Delete session"
  1102. }
  1103. },
  1104. "/api/session/{sessionID}/fork": {
  1105. "post": {
  1106. "tags": [
  1107. "session"
  1108. ],
  1109. "operationId": "v2.session.fork",
  1110. "parameters": [
  1111. {
  1112. "name": "sessionID",
  1113. "in": "path",
  1114. "schema": {
  1115. "type": "string",
  1116. "allOf": [
  1117. {
  1118. "pattern": "^ses"
  1119. }
  1120. ]
  1121. },
  1122. "required": true
  1123. }
  1124. ],
  1125. "security": [],
  1126. "responses": {
  1127. "200": {
  1128. "description": "Success",
  1129. "content": {
  1130. "application/json": {
  1131. "schema": {
  1132. "type": "object",
  1133. "properties": {
  1134. "data": {
  1135. "$ref": "#/components/schemas/Session.Info"
  1136. }
  1137. },
  1138. "required": [
  1139. "data"
  1140. ],
  1141. "additionalProperties": false
  1142. }
  1143. }
  1144. }
  1145. },
  1146. "400": {
  1147. "description": "InvalidRequestError",
  1148. "content": {
  1149. "application/json": {
  1150. "schema": {
  1151. "anyOf": [
  1152. {
  1153. "$ref": "#/components/schemas/InvalidRequestError1"
  1154. },
  1155. {
  1156. "$ref": "#/components/schemas/InvalidRequestError"
  1157. }
  1158. ]
  1159. }
  1160. }
  1161. }
  1162. },
  1163. "401": {
  1164. "description": "UnauthorizedError",
  1165. "content": {
  1166. "application/json": {
  1167. "schema": {
  1168. "$ref": "#/components/schemas/UnauthorizedError"
  1169. }
  1170. }
  1171. }
  1172. },
  1173. "404": {
  1174. "description": "SessionNotFoundError | MessageNotFoundError",
  1175. "content": {
  1176. "application/json": {
  1177. "schema": {
  1178. "anyOf": [
  1179. {
  1180. "$ref": "#/components/schemas/MessageNotFoundError"
  1181. },
  1182. {
  1183. "$ref": "#/components/schemas/SessionNotFoundError"
  1184. },
  1185. {
  1186. "$ref": "#/components/schemas/SessionNotFoundError"
  1187. }
  1188. ]
  1189. }
  1190. }
  1191. }
  1192. }
  1193. },
  1194. "description": "Create a child session by copying projected history through or before a message boundary.",
  1195. "summary": "Fork session",
  1196. "requestBody": {
  1197. "content": {
  1198. "application/json": {
  1199. "schema": {
  1200. "type": "object",
  1201. "properties": {
  1202. "boundary": {
  1203. "$ref": "#/components/schemas/Session.ForkRequestBoundary"
  1204. }
  1205. },
  1206. "required": [
  1207. "boundary"
  1208. ],
  1209. "additionalProperties": false
  1210. }
  1211. }
  1212. },
  1213. "required": true
  1214. }
  1215. }
  1216. },
  1217. "/api/session/{sessionID}/agent": {
  1218. "post": {
  1219. "tags": [
  1220. "session"
  1221. ],
  1222. "operationId": "v2.session.switchAgent",
  1223. "parameters": [
  1224. {
  1225. "name": "sessionID",
  1226. "in": "path",
  1227. "schema": {
  1228. "type": "string",
  1229. "allOf": [
  1230. {
  1231. "pattern": "^ses"
  1232. }
  1233. ]
  1234. },
  1235. "required": true
  1236. }
  1237. ],
  1238. "security": [],
  1239. "responses": {
  1240. "204": {
  1241. "description": "<No Content>"
  1242. },
  1243. "400": {
  1244. "description": "InvalidRequestError",
  1245. "content": {
  1246. "application/json": {
  1247. "schema": {
  1248. "$ref": "#/components/schemas/InvalidRequestError"
  1249. }
  1250. }
  1251. }
  1252. },
  1253. "401": {
  1254. "description": "UnauthorizedError",
  1255. "content": {
  1256. "application/json": {
  1257. "schema": {
  1258. "$ref": "#/components/schemas/UnauthorizedError"
  1259. }
  1260. }
  1261. }
  1262. },
  1263. "404": {
  1264. "description": "SessionNotFoundError",
  1265. "content": {
  1266. "application/json": {
  1267. "schema": {
  1268. "anyOf": [
  1269. {
  1270. "$ref": "#/components/schemas/SessionNotFoundError"
  1271. },
  1272. {
  1273. "$ref": "#/components/schemas/SessionNotFoundError"
  1274. }
  1275. ]
  1276. }
  1277. }
  1278. }
  1279. }
  1280. },
  1281. "description": "Switch the agent used by subsequent provider turns.",
  1282. "summary": "Switch session agent",
  1283. "requestBody": {
  1284. "content": {
  1285. "application/json": {
  1286. "schema": {
  1287. "type": "object",
  1288. "properties": {
  1289. "agent": {
  1290. "type": "string"
  1291. }
  1292. },
  1293. "required": [
  1294. "agent"
  1295. ],
  1296. "additionalProperties": false
  1297. }
  1298. }
  1299. },
  1300. "required": true
  1301. }
  1302. }
  1303. },
  1304. "/api/session/{sessionID}/model": {
  1305. "post": {
  1306. "tags": [
  1307. "session"
  1308. ],
  1309. "operationId": "v2.session.switchModel",
  1310. "parameters": [
  1311. {
  1312. "name": "sessionID",
  1313. "in": "path",
  1314. "schema": {
  1315. "type": "string",
  1316. "allOf": [
  1317. {
  1318. "pattern": "^ses"
  1319. }
  1320. ]
  1321. },
  1322. "required": true
  1323. }
  1324. ],
  1325. "security": [],
  1326. "responses": {
  1327. "204": {
  1328. "description": "<No Content>"
  1329. },
  1330. "400": {
  1331. "description": "InvalidRequestError",
  1332. "content": {
  1333. "application/json": {
  1334. "schema": {
  1335. "$ref": "#/components/schemas/InvalidRequestError"
  1336. }
  1337. }
  1338. }
  1339. },
  1340. "401": {
  1341. "description": "UnauthorizedError",
  1342. "content": {
  1343. "application/json": {
  1344. "schema": {
  1345. "$ref": "#/components/schemas/UnauthorizedError"
  1346. }
  1347. }
  1348. }
  1349. },
  1350. "404": {
  1351. "description": "SessionNotFoundError",
  1352. "content": {
  1353. "application/json": {
  1354. "schema": {
  1355. "anyOf": [
  1356. {
  1357. "$ref": "#/components/schemas/SessionNotFoundError"
  1358. },
  1359. {
  1360. "$ref": "#/components/schemas/SessionNotFoundError"
  1361. }
  1362. ]
  1363. }
  1364. }
  1365. }
  1366. }
  1367. },
  1368. "description": "Switch the model used by subsequent provider turns.",
  1369. "summary": "Switch session model",
  1370. "requestBody": {
  1371. "content": {
  1372. "application/json": {
  1373. "schema": {
  1374. "type": "object",
  1375. "properties": {
  1376. "model": {
  1377. "$ref": "#/components/schemas/Model.Ref"
  1378. }
  1379. },
  1380. "required": [
  1381. "model"
  1382. ],
  1383. "additionalProperties": false
  1384. }
  1385. }
  1386. },
  1387. "required": true
  1388. }
  1389. }
  1390. },
  1391. "/api/session/{sessionID}/rename": {
  1392. "post": {
  1393. "tags": [
  1394. "session"
  1395. ],
  1396. "operationId": "v2.session.rename",
  1397. "parameters": [
  1398. {
  1399. "name": "sessionID",
  1400. "in": "path",
  1401. "schema": {
  1402. "type": "string",
  1403. "allOf": [
  1404. {
  1405. "pattern": "^ses"
  1406. }
  1407. ]
  1408. },
  1409. "required": true
  1410. }
  1411. ],
  1412. "security": [],
  1413. "responses": {
  1414. "204": {
  1415. "description": "<No Content>"
  1416. },
  1417. "400": {
  1418. "description": "InvalidRequestError",
  1419. "content": {
  1420. "application/json": {
  1421. "schema": {
  1422. "$ref": "#/components/schemas/InvalidRequestError"
  1423. }
  1424. }
  1425. }
  1426. },
  1427. "401": {
  1428. "description": "UnauthorizedError",
  1429. "content": {
  1430. "application/json": {
  1431. "schema": {
  1432. "$ref": "#/components/schemas/UnauthorizedError"
  1433. }
  1434. }
  1435. }
  1436. },
  1437. "404": {
  1438. "description": "SessionNotFoundError",
  1439. "content": {
  1440. "application/json": {
  1441. "schema": {
  1442. "anyOf": [
  1443. {
  1444. "$ref": "#/components/schemas/SessionNotFoundError"
  1445. },
  1446. {
  1447. "$ref": "#/components/schemas/SessionNotFoundError"
  1448. }
  1449. ]
  1450. }
  1451. }
  1452. }
  1453. }
  1454. },
  1455. "description": "Update the session title.",
  1456. "summary": "Rename session",
  1457. "requestBody": {
  1458. "content": {
  1459. "application/json": {
  1460. "schema": {
  1461. "type": "object",
  1462. "properties": {
  1463. "title": {
  1464. "type": "string"
  1465. }
  1466. },
  1467. "required": [
  1468. "title"
  1469. ],
  1470. "additionalProperties": false
  1471. }
  1472. }
  1473. },
  1474. "required": true
  1475. }
  1476. }
  1477. },
  1478. "/api/session/{sessionID}/move": {
  1479. "post": {
  1480. "tags": [
  1481. "session"
  1482. ],
  1483. "operationId": "v2.session.move",
  1484. "parameters": [
  1485. {
  1486. "name": "sessionID",
  1487. "in": "path",
  1488. "schema": {
  1489. "type": "string",
  1490. "allOf": [
  1491. {
  1492. "pattern": "^ses"
  1493. }
  1494. ]
  1495. },
  1496. "required": true
  1497. }
  1498. ],
  1499. "security": [],
  1500. "responses": {
  1501. "204": {
  1502. "description": "<No Content>"
  1503. },
  1504. "400": {
  1505. "description": "InvalidRequestError",
  1506. "content": {
  1507. "application/json": {
  1508. "schema": {
  1509. "anyOf": [
  1510. {
  1511. "$ref": "#/components/schemas/InvalidRequestError1"
  1512. },
  1513. {
  1514. "$ref": "#/components/schemas/InvalidRequestError"
  1515. }
  1516. ]
  1517. }
  1518. }
  1519. }
  1520. },
  1521. "401": {
  1522. "description": "UnauthorizedError",
  1523. "content": {
  1524. "application/json": {
  1525. "schema": {
  1526. "$ref": "#/components/schemas/UnauthorizedError"
  1527. }
  1528. }
  1529. }
  1530. },
  1531. "404": {
  1532. "description": "SessionNotFoundError",
  1533. "content": {
  1534. "application/json": {
  1535. "schema": {
  1536. "$ref": "#/components/schemas/SessionNotFoundError"
  1537. }
  1538. }
  1539. }
  1540. }
  1541. },
  1542. "description": "Move a session to another project directory, optionally transferring local changes.",
  1543. "summary": "Move session",
  1544. "requestBody": {
  1545. "content": {
  1546. "application/json": {
  1547. "schema": {
  1548. "$ref": "#/components/schemas/Location.Ref"
  1549. }
  1550. }
  1551. },
  1552. "required": true
  1553. }
  1554. }
  1555. },
  1556. "/api/session/{sessionID}/prompt": {
  1557. "post": {
  1558. "tags": [
  1559. "session"
  1560. ],
  1561. "operationId": "v2.session.prompt",
  1562. "parameters": [
  1563. {
  1564. "name": "sessionID",
  1565. "in": "path",
  1566. "schema": {
  1567. "type": "string",
  1568. "allOf": [
  1569. {
  1570. "pattern": "^ses"
  1571. }
  1572. ]
  1573. },
  1574. "required": true
  1575. }
  1576. ],
  1577. "security": [],
  1578. "responses": {
  1579. "200": {
  1580. "description": "Success",
  1581. "content": {
  1582. "application/json": {
  1583. "schema": {
  1584. "type": "object",
  1585. "properties": {
  1586. "data": {
  1587. "$ref": "#/components/schemas/SessionPending.User"
  1588. }
  1589. },
  1590. "required": [
  1591. "data"
  1592. ],
  1593. "additionalProperties": false
  1594. }
  1595. }
  1596. }
  1597. },
  1598. "400": {
  1599. "description": "InvalidRequestError",
  1600. "content": {
  1601. "application/json": {
  1602. "schema": {
  1603. "anyOf": [
  1604. {
  1605. "$ref": "#/components/schemas/InvalidRequestError1"
  1606. },
  1607. {
  1608. "$ref": "#/components/schemas/InvalidRequestError"
  1609. }
  1610. ]
  1611. }
  1612. }
  1613. }
  1614. },
  1615. "401": {
  1616. "description": "UnauthorizedError",
  1617. "content": {
  1618. "application/json": {
  1619. "schema": {
  1620. "$ref": "#/components/schemas/UnauthorizedError"
  1621. }
  1622. }
  1623. }
  1624. },
  1625. "404": {
  1626. "description": "SessionNotFoundError",
  1627. "content": {
  1628. "application/json": {
  1629. "schema": {
  1630. "anyOf": [
  1631. {
  1632. "$ref": "#/components/schemas/SessionNotFoundError"
  1633. },
  1634. {
  1635. "$ref": "#/components/schemas/SessionNotFoundError"
  1636. }
  1637. ]
  1638. }
  1639. }
  1640. }
  1641. },
  1642. "409": {
  1643. "description": "ConflictError",
  1644. "content": {
  1645. "application/json": {
  1646. "schema": {
  1647. "$ref": "#/components/schemas/ConflictError"
  1648. }
  1649. }
  1650. }
  1651. }
  1652. },
  1653. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1654. "summary": "Send message",
  1655. "requestBody": {
  1656. "content": {
  1657. "application/json": {
  1658. "schema": {
  1659. "type": "object",
  1660. "properties": {
  1661. "id": {
  1662. "anyOf": [
  1663. {
  1664. "type": "string",
  1665. "allOf": [
  1666. {
  1667. "pattern": "^msg_"
  1668. }
  1669. ]
  1670. },
  1671. {
  1672. "type": "null"
  1673. }
  1674. ]
  1675. },
  1676. "text": {
  1677. "type": "string"
  1678. },
  1679. "files": {
  1680. "type": "array",
  1681. "items": {
  1682. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1683. }
  1684. },
  1685. "agents": {
  1686. "type": "array",
  1687. "items": {
  1688. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1689. }
  1690. },
  1691. "metadata": {
  1692. "type": "object"
  1693. },
  1694. "delivery": {
  1695. "anyOf": [
  1696. {
  1697. "type": "string",
  1698. "enum": [
  1699. "steer",
  1700. "queue"
  1701. ]
  1702. },
  1703. {
  1704. "type": "null"
  1705. }
  1706. ]
  1707. },
  1708. "resume": {
  1709. "anyOf": [
  1710. {
  1711. "type": "boolean"
  1712. },
  1713. {
  1714. "type": "null"
  1715. }
  1716. ]
  1717. }
  1718. },
  1719. "required": [
  1720. "text"
  1721. ],
  1722. "additionalProperties": false
  1723. }
  1724. }
  1725. },
  1726. "required": true
  1727. }
  1728. }
  1729. },
  1730. "/api/session/{sessionID}/command": {
  1731. "post": {
  1732. "tags": [
  1733. "session"
  1734. ],
  1735. "operationId": "v2.session.command",
  1736. "parameters": [
  1737. {
  1738. "name": "sessionID",
  1739. "in": "path",
  1740. "schema": {
  1741. "type": "string",
  1742. "allOf": [
  1743. {
  1744. "pattern": "^ses"
  1745. }
  1746. ]
  1747. },
  1748. "required": true
  1749. }
  1750. ],
  1751. "security": [],
  1752. "responses": {
  1753. "200": {
  1754. "description": "Success",
  1755. "content": {
  1756. "application/json": {
  1757. "schema": {
  1758. "type": "object",
  1759. "properties": {
  1760. "data": {
  1761. "$ref": "#/components/schemas/SessionPending.User"
  1762. }
  1763. },
  1764. "required": [
  1765. "data"
  1766. ],
  1767. "additionalProperties": false
  1768. }
  1769. }
  1770. }
  1771. },
  1772. "400": {
  1773. "description": "InvalidRequestError",
  1774. "content": {
  1775. "application/json": {
  1776. "schema": {
  1777. "anyOf": [
  1778. {
  1779. "$ref": "#/components/schemas/InvalidRequestError1"
  1780. },
  1781. {
  1782. "$ref": "#/components/schemas/InvalidRequestError"
  1783. }
  1784. ]
  1785. }
  1786. }
  1787. }
  1788. },
  1789. "401": {
  1790. "description": "UnauthorizedError",
  1791. "content": {
  1792. "application/json": {
  1793. "schema": {
  1794. "$ref": "#/components/schemas/UnauthorizedError"
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "404": {
  1800. "description": "SessionNotFoundError | CommandNotFoundError",
  1801. "content": {
  1802. "application/json": {
  1803. "schema": {
  1804. "anyOf": [
  1805. {
  1806. "$ref": "#/components/schemas/CommandNotFoundError"
  1807. },
  1808. {
  1809. "$ref": "#/components/schemas/SessionNotFoundError"
  1810. },
  1811. {
  1812. "$ref": "#/components/schemas/SessionNotFoundError"
  1813. }
  1814. ]
  1815. }
  1816. }
  1817. }
  1818. },
  1819. "409": {
  1820. "description": "ConflictError",
  1821. "content": {
  1822. "application/json": {
  1823. "schema": {
  1824. "$ref": "#/components/schemas/ConflictError"
  1825. }
  1826. }
  1827. }
  1828. },
  1829. "500": {
  1830. "description": "CommandEvaluationError",
  1831. "content": {
  1832. "application/json": {
  1833. "schema": {
  1834. "$ref": "#/components/schemas/CommandEvaluationError"
  1835. }
  1836. }
  1837. }
  1838. }
  1839. },
  1840. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1841. "summary": "Run command",
  1842. "requestBody": {
  1843. "content": {
  1844. "application/json": {
  1845. "schema": {
  1846. "type": "object",
  1847. "properties": {
  1848. "id": {
  1849. "anyOf": [
  1850. {
  1851. "type": "string",
  1852. "allOf": [
  1853. {
  1854. "pattern": "^msg_"
  1855. }
  1856. ]
  1857. },
  1858. {
  1859. "type": "null"
  1860. }
  1861. ]
  1862. },
  1863. "command": {
  1864. "type": "string"
  1865. },
  1866. "arguments": {
  1867. "anyOf": [
  1868. {
  1869. "type": "string"
  1870. },
  1871. {
  1872. "type": "null"
  1873. }
  1874. ]
  1875. },
  1876. "agent": {
  1877. "anyOf": [
  1878. {
  1879. "type": "string"
  1880. },
  1881. {
  1882. "type": "null"
  1883. }
  1884. ]
  1885. },
  1886. "model": {
  1887. "anyOf": [
  1888. {
  1889. "$ref": "#/components/schemas/Model.Ref"
  1890. },
  1891. {
  1892. "type": "null"
  1893. }
  1894. ]
  1895. },
  1896. "files": {
  1897. "type": "array",
  1898. "items": {
  1899. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1900. }
  1901. },
  1902. "agents": {
  1903. "type": "array",
  1904. "items": {
  1905. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1906. }
  1907. },
  1908. "delivery": {
  1909. "anyOf": [
  1910. {
  1911. "type": "string",
  1912. "enum": [
  1913. "steer",
  1914. "queue"
  1915. ]
  1916. },
  1917. {
  1918. "type": "null"
  1919. }
  1920. ]
  1921. },
  1922. "resume": {
  1923. "anyOf": [
  1924. {
  1925. "type": "boolean"
  1926. },
  1927. {
  1928. "type": "null"
  1929. }
  1930. ]
  1931. }
  1932. },
  1933. "required": [
  1934. "command"
  1935. ],
  1936. "additionalProperties": false
  1937. }
  1938. }
  1939. },
  1940. "required": true
  1941. }
  1942. }
  1943. },
  1944. "/api/session/{sessionID}/skill": {
  1945. "post": {
  1946. "tags": [
  1947. "session"
  1948. ],
  1949. "operationId": "v2.session.skill",
  1950. "parameters": [
  1951. {
  1952. "name": "sessionID",
  1953. "in": "path",
  1954. "schema": {
  1955. "type": "string",
  1956. "allOf": [
  1957. {
  1958. "pattern": "^ses"
  1959. }
  1960. ]
  1961. },
  1962. "required": true
  1963. }
  1964. ],
  1965. "security": [],
  1966. "responses": {
  1967. "204": {
  1968. "description": "<No Content>"
  1969. },
  1970. "400": {
  1971. "description": "InvalidRequestError",
  1972. "content": {
  1973. "application/json": {
  1974. "schema": {
  1975. "$ref": "#/components/schemas/InvalidRequestError"
  1976. }
  1977. }
  1978. }
  1979. },
  1980. "401": {
  1981. "description": "UnauthorizedError",
  1982. "content": {
  1983. "application/json": {
  1984. "schema": {
  1985. "$ref": "#/components/schemas/UnauthorizedError"
  1986. }
  1987. }
  1988. }
  1989. },
  1990. "404": {
  1991. "description": "SessionNotFoundError | SkillNotFoundError",
  1992. "content": {
  1993. "application/json": {
  1994. "schema": {
  1995. "anyOf": [
  1996. {
  1997. "$ref": "#/components/schemas/SkillNotFoundError"
  1998. },
  1999. {
  2000. "$ref": "#/components/schemas/SessionNotFoundError"
  2001. },
  2002. {
  2003. "$ref": "#/components/schemas/SessionNotFoundError"
  2004. }
  2005. ]
  2006. }
  2007. }
  2008. }
  2009. }
  2010. },
  2011. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  2012. "summary": "Activate skill",
  2013. "requestBody": {
  2014. "content": {
  2015. "application/json": {
  2016. "schema": {
  2017. "type": "object",
  2018. "properties": {
  2019. "id": {
  2020. "anyOf": [
  2021. {
  2022. "type": "string",
  2023. "allOf": [
  2024. {
  2025. "pattern": "^msg_"
  2026. }
  2027. ]
  2028. },
  2029. {
  2030. "type": "null"
  2031. }
  2032. ]
  2033. },
  2034. "skill": {
  2035. "type": "string"
  2036. },
  2037. "resume": {
  2038. "anyOf": [
  2039. {
  2040. "type": "boolean"
  2041. },
  2042. {
  2043. "type": "null"
  2044. }
  2045. ]
  2046. }
  2047. },
  2048. "required": [
  2049. "skill"
  2050. ],
  2051. "additionalProperties": false
  2052. }
  2053. }
  2054. },
  2055. "required": true
  2056. }
  2057. }
  2058. },
  2059. "/api/session/{sessionID}/synthetic": {
  2060. "post": {
  2061. "tags": [
  2062. "session"
  2063. ],
  2064. "operationId": "v2.session.synthetic",
  2065. "parameters": [
  2066. {
  2067. "name": "sessionID",
  2068. "in": "path",
  2069. "schema": {
  2070. "type": "string",
  2071. "allOf": [
  2072. {
  2073. "pattern": "^ses"
  2074. }
  2075. ]
  2076. },
  2077. "required": true
  2078. }
  2079. ],
  2080. "security": [],
  2081. "responses": {
  2082. "200": {
  2083. "description": "Success",
  2084. "content": {
  2085. "application/json": {
  2086. "schema": {
  2087. "type": "object",
  2088. "properties": {
  2089. "data": {
  2090. "$ref": "#/components/schemas/SessionPending.Synthetic"
  2091. }
  2092. },
  2093. "required": [
  2094. "data"
  2095. ],
  2096. "additionalProperties": false
  2097. }
  2098. }
  2099. }
  2100. },
  2101. "400": {
  2102. "description": "InvalidRequestError",
  2103. "content": {
  2104. "application/json": {
  2105. "schema": {
  2106. "$ref": "#/components/schemas/InvalidRequestError"
  2107. }
  2108. }
  2109. }
  2110. },
  2111. "401": {
  2112. "description": "UnauthorizedError",
  2113. "content": {
  2114. "application/json": {
  2115. "schema": {
  2116. "$ref": "#/components/schemas/UnauthorizedError"
  2117. }
  2118. }
  2119. }
  2120. },
  2121. "404": {
  2122. "description": "SessionNotFoundError",
  2123. "content": {
  2124. "application/json": {
  2125. "schema": {
  2126. "anyOf": [
  2127. {
  2128. "$ref": "#/components/schemas/SessionNotFoundError"
  2129. },
  2130. {
  2131. "$ref": "#/components/schemas/SessionNotFoundError"
  2132. }
  2133. ]
  2134. }
  2135. }
  2136. }
  2137. },
  2138. "409": {
  2139. "description": "ConflictError",
  2140. "content": {
  2141. "application/json": {
  2142. "schema": {
  2143. "$ref": "#/components/schemas/ConflictError"
  2144. }
  2145. }
  2146. }
  2147. }
  2148. },
  2149. "description": "Durably admit synthetic session input and schedule execution unless resume is false.",
  2150. "summary": "Add synthetic message",
  2151. "requestBody": {
  2152. "content": {
  2153. "application/json": {
  2154. "schema": {
  2155. "type": "object",
  2156. "properties": {
  2157. "id": {
  2158. "anyOf": [
  2159. {
  2160. "type": "string",
  2161. "allOf": [
  2162. {
  2163. "pattern": "^msg_"
  2164. }
  2165. ]
  2166. },
  2167. {
  2168. "type": "null"
  2169. }
  2170. ]
  2171. },
  2172. "text": {
  2173. "type": "string"
  2174. },
  2175. "description": {
  2176. "anyOf": [
  2177. {
  2178. "type": "string"
  2179. },
  2180. {
  2181. "type": "null"
  2182. }
  2183. ]
  2184. },
  2185. "metadata": {
  2186. "type": "object"
  2187. },
  2188. "delivery": {
  2189. "anyOf": [
  2190. {
  2191. "type": "string",
  2192. "enum": [
  2193. "steer",
  2194. "queue"
  2195. ]
  2196. },
  2197. {
  2198. "type": "null"
  2199. }
  2200. ]
  2201. },
  2202. "resume": {
  2203. "anyOf": [
  2204. {
  2205. "type": "boolean"
  2206. },
  2207. {
  2208. "type": "null"
  2209. }
  2210. ]
  2211. }
  2212. },
  2213. "required": [
  2214. "text"
  2215. ],
  2216. "additionalProperties": false
  2217. }
  2218. }
  2219. },
  2220. "required": true
  2221. }
  2222. }
  2223. },
  2224. "/api/session/{sessionID}/shell": {
  2225. "post": {
  2226. "tags": [
  2227. "session"
  2228. ],
  2229. "operationId": "v2.session.shell",
  2230. "parameters": [
  2231. {
  2232. "name": "sessionID",
  2233. "in": "path",
  2234. "schema": {
  2235. "type": "string",
  2236. "allOf": [
  2237. {
  2238. "pattern": "^ses"
  2239. }
  2240. ]
  2241. },
  2242. "required": true
  2243. }
  2244. ],
  2245. "security": [],
  2246. "responses": {
  2247. "204": {
  2248. "description": "<No Content>"
  2249. },
  2250. "400": {
  2251. "description": "InvalidRequestError",
  2252. "content": {
  2253. "application/json": {
  2254. "schema": {
  2255. "$ref": "#/components/schemas/InvalidRequestError"
  2256. }
  2257. }
  2258. }
  2259. },
  2260. "401": {
  2261. "description": "UnauthorizedError",
  2262. "content": {
  2263. "application/json": {
  2264. "schema": {
  2265. "$ref": "#/components/schemas/UnauthorizedError"
  2266. }
  2267. }
  2268. }
  2269. },
  2270. "404": {
  2271. "description": "SessionNotFoundError",
  2272. "content": {
  2273. "application/json": {
  2274. "schema": {
  2275. "anyOf": [
  2276. {
  2277. "$ref": "#/components/schemas/SessionNotFoundError"
  2278. },
  2279. {
  2280. "$ref": "#/components/schemas/SessionNotFoundError"
  2281. }
  2282. ]
  2283. }
  2284. }
  2285. }
  2286. }
  2287. },
  2288. "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.",
  2289. "summary": "Run shell command",
  2290. "requestBody": {
  2291. "content": {
  2292. "application/json": {
  2293. "schema": {
  2294. "type": "object",
  2295. "properties": {
  2296. "id": {
  2297. "anyOf": [
  2298. {
  2299. "type": "string",
  2300. "allOf": [
  2301. {
  2302. "pattern": "^evt_"
  2303. }
  2304. ]
  2305. },
  2306. {
  2307. "type": "null"
  2308. }
  2309. ]
  2310. },
  2311. "command": {
  2312. "type": "string"
  2313. }
  2314. },
  2315. "required": [
  2316. "command"
  2317. ],
  2318. "additionalProperties": false
  2319. }
  2320. }
  2321. },
  2322. "required": true
  2323. }
  2324. }
  2325. },
  2326. "/api/session/{sessionID}/compact": {
  2327. "post": {
  2328. "tags": [
  2329. "session"
  2330. ],
  2331. "operationId": "v2.session.compact",
  2332. "parameters": [
  2333. {
  2334. "name": "sessionID",
  2335. "in": "path",
  2336. "schema": {
  2337. "type": "string",
  2338. "allOf": [
  2339. {
  2340. "pattern": "^ses"
  2341. }
  2342. ]
  2343. },
  2344. "required": true
  2345. }
  2346. ],
  2347. "security": [],
  2348. "responses": {
  2349. "200": {
  2350. "description": "Success",
  2351. "content": {
  2352. "application/json": {
  2353. "schema": {
  2354. "type": "object",
  2355. "properties": {
  2356. "data": {
  2357. "$ref": "#/components/schemas/SessionPending.Compaction"
  2358. }
  2359. },
  2360. "required": [
  2361. "data"
  2362. ],
  2363. "additionalProperties": false
  2364. }
  2365. }
  2366. }
  2367. },
  2368. "400": {
  2369. "description": "InvalidRequestError",
  2370. "content": {
  2371. "application/json": {
  2372. "schema": {
  2373. "$ref": "#/components/schemas/InvalidRequestError"
  2374. }
  2375. }
  2376. }
  2377. },
  2378. "401": {
  2379. "description": "UnauthorizedError",
  2380. "content": {
  2381. "application/json": {
  2382. "schema": {
  2383. "$ref": "#/components/schemas/UnauthorizedError"
  2384. }
  2385. }
  2386. }
  2387. },
  2388. "404": {
  2389. "description": "SessionNotFoundError",
  2390. "content": {
  2391. "application/json": {
  2392. "schema": {
  2393. "anyOf": [
  2394. {
  2395. "$ref": "#/components/schemas/SessionNotFoundError"
  2396. },
  2397. {
  2398. "$ref": "#/components/schemas/SessionNotFoundError"
  2399. }
  2400. ]
  2401. }
  2402. }
  2403. }
  2404. },
  2405. "409": {
  2406. "description": "ConflictError",
  2407. "content": {
  2408. "application/json": {
  2409. "schema": {
  2410. "$ref": "#/components/schemas/ConflictError"
  2411. }
  2412. }
  2413. }
  2414. }
  2415. },
  2416. "description": "Queue a durable session compaction request.",
  2417. "summary": "Compact session",
  2418. "requestBody": {
  2419. "content": {
  2420. "application/json": {
  2421. "schema": {
  2422. "type": "object",
  2423. "properties": {
  2424. "id": {
  2425. "anyOf": [
  2426. {
  2427. "type": "string",
  2428. "allOf": [
  2429. {
  2430. "pattern": "^msg_"
  2431. }
  2432. ]
  2433. },
  2434. {
  2435. "type": "null"
  2436. }
  2437. ]
  2438. }
  2439. },
  2440. "additionalProperties": false
  2441. }
  2442. }
  2443. },
  2444. "required": true
  2445. }
  2446. }
  2447. },
  2448. "/api/session/{sessionID}/wait": {
  2449. "post": {
  2450. "tags": [
  2451. "session"
  2452. ],
  2453. "operationId": "v2.session.wait",
  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. "204": {
  2472. "description": "<No Content>"
  2473. },
  2474. "400": {
  2475. "description": "InvalidRequestError",
  2476. "content": {
  2477. "application/json": {
  2478. "schema": {
  2479. "$ref": "#/components/schemas/InvalidRequestError"
  2480. }
  2481. }
  2482. }
  2483. },
  2484. "401": {
  2485. "description": "UnauthorizedError",
  2486. "content": {
  2487. "application/json": {
  2488. "schema": {
  2489. "$ref": "#/components/schemas/UnauthorizedError"
  2490. }
  2491. }
  2492. }
  2493. },
  2494. "404": {
  2495. "description": "SessionNotFoundError",
  2496. "content": {
  2497. "application/json": {
  2498. "schema": {
  2499. "anyOf": [
  2500. {
  2501. "$ref": "#/components/schemas/SessionNotFoundError"
  2502. },
  2503. {
  2504. "$ref": "#/components/schemas/SessionNotFoundError"
  2505. }
  2506. ]
  2507. }
  2508. }
  2509. }
  2510. },
  2511. "503": {
  2512. "description": "ServiceUnavailableError",
  2513. "content": {
  2514. "application/json": {
  2515. "schema": {
  2516. "$ref": "#/components/schemas/ServiceUnavailableError"
  2517. }
  2518. }
  2519. }
  2520. }
  2521. },
  2522. "description": "Wait for a session agent loop to become idle.",
  2523. "summary": "Wait for session"
  2524. }
  2525. },
  2526. "/api/session/{sessionID}/revert/stage": {
  2527. "post": {
  2528. "tags": [
  2529. "session"
  2530. ],
  2531. "operationId": "v2.session.revert.stage",
  2532. "parameters": [
  2533. {
  2534. "name": "sessionID",
  2535. "in": "path",
  2536. "schema": {
  2537. "type": "string",
  2538. "allOf": [
  2539. {
  2540. "pattern": "^ses"
  2541. }
  2542. ]
  2543. },
  2544. "required": true
  2545. }
  2546. ],
  2547. "security": [],
  2548. "responses": {
  2549. "200": {
  2550. "description": "Success",
  2551. "content": {
  2552. "application/json": {
  2553. "schema": {
  2554. "type": "object",
  2555. "properties": {
  2556. "data": {
  2557. "$ref": "#/components/schemas/Session.Revert"
  2558. }
  2559. },
  2560. "required": [
  2561. "data"
  2562. ],
  2563. "additionalProperties": false
  2564. }
  2565. }
  2566. }
  2567. },
  2568. "400": {
  2569. "description": "InvalidRequestError",
  2570. "content": {
  2571. "application/json": {
  2572. "schema": {
  2573. "$ref": "#/components/schemas/InvalidRequestError"
  2574. }
  2575. }
  2576. }
  2577. },
  2578. "401": {
  2579. "description": "UnauthorizedError",
  2580. "content": {
  2581. "application/json": {
  2582. "schema": {
  2583. "$ref": "#/components/schemas/UnauthorizedError"
  2584. }
  2585. }
  2586. }
  2587. },
  2588. "404": {
  2589. "description": "MessageNotFoundError | SessionNotFoundError",
  2590. "content": {
  2591. "application/json": {
  2592. "schema": {
  2593. "anyOf": [
  2594. {
  2595. "$ref": "#/components/schemas/MessageNotFoundError"
  2596. },
  2597. {
  2598. "$ref": "#/components/schemas/SessionNotFoundError"
  2599. },
  2600. {
  2601. "$ref": "#/components/schemas/SessionNotFoundError"
  2602. }
  2603. ]
  2604. }
  2605. }
  2606. }
  2607. },
  2608. "409": {
  2609. "description": "SessionBusyError",
  2610. "content": {
  2611. "application/json": {
  2612. "schema": {
  2613. "$ref": "#/components/schemas/SessionBusyError"
  2614. }
  2615. }
  2616. }
  2617. },
  2618. "500": {
  2619. "description": "UnknownError",
  2620. "content": {
  2621. "application/json": {
  2622. "schema": {
  2623. "$ref": "#/components/schemas/UnknownError"
  2624. }
  2625. }
  2626. }
  2627. }
  2628. },
  2629. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2630. "summary": "Stage session revert",
  2631. "requestBody": {
  2632. "content": {
  2633. "application/json": {
  2634. "schema": {
  2635. "type": "object",
  2636. "properties": {
  2637. "messageID": {
  2638. "type": "string",
  2639. "allOf": [
  2640. {
  2641. "pattern": "^msg_"
  2642. }
  2643. ]
  2644. },
  2645. "files": {
  2646. "anyOf": [
  2647. {
  2648. "type": "boolean"
  2649. },
  2650. {
  2651. "type": "null"
  2652. }
  2653. ]
  2654. }
  2655. },
  2656. "required": [
  2657. "messageID"
  2658. ],
  2659. "additionalProperties": false
  2660. }
  2661. }
  2662. },
  2663. "required": true
  2664. }
  2665. }
  2666. },
  2667. "/api/session/{sessionID}/revert/clear": {
  2668. "post": {
  2669. "tags": [
  2670. "session"
  2671. ],
  2672. "operationId": "v2.session.revert.clear",
  2673. "parameters": [
  2674. {
  2675. "name": "sessionID",
  2676. "in": "path",
  2677. "schema": {
  2678. "type": "string",
  2679. "allOf": [
  2680. {
  2681. "pattern": "^ses"
  2682. }
  2683. ]
  2684. },
  2685. "required": true
  2686. }
  2687. ],
  2688. "security": [],
  2689. "responses": {
  2690. "204": {
  2691. "description": "<No Content>"
  2692. },
  2693. "400": {
  2694. "description": "InvalidRequestError",
  2695. "content": {
  2696. "application/json": {
  2697. "schema": {
  2698. "$ref": "#/components/schemas/InvalidRequestError"
  2699. }
  2700. }
  2701. }
  2702. },
  2703. "401": {
  2704. "description": "UnauthorizedError",
  2705. "content": {
  2706. "application/json": {
  2707. "schema": {
  2708. "$ref": "#/components/schemas/UnauthorizedError"
  2709. }
  2710. }
  2711. }
  2712. },
  2713. "404": {
  2714. "description": "SessionNotFoundError",
  2715. "content": {
  2716. "application/json": {
  2717. "schema": {
  2718. "anyOf": [
  2719. {
  2720. "$ref": "#/components/schemas/SessionNotFoundError"
  2721. },
  2722. {
  2723. "$ref": "#/components/schemas/SessionNotFoundError"
  2724. }
  2725. ]
  2726. }
  2727. }
  2728. }
  2729. },
  2730. "409": {
  2731. "description": "SessionBusyError",
  2732. "content": {
  2733. "application/json": {
  2734. "schema": {
  2735. "$ref": "#/components/schemas/SessionBusyError"
  2736. }
  2737. }
  2738. }
  2739. },
  2740. "500": {
  2741. "description": "UnknownError",
  2742. "content": {
  2743. "application/json": {
  2744. "schema": {
  2745. "$ref": "#/components/schemas/UnknownError"
  2746. }
  2747. }
  2748. }
  2749. }
  2750. },
  2751. "summary": "Clear staged revert"
  2752. }
  2753. },
  2754. "/api/session/{sessionID}/revert/commit": {
  2755. "post": {
  2756. "tags": [
  2757. "session"
  2758. ],
  2759. "operationId": "v2.session.revert.commit",
  2760. "parameters": [
  2761. {
  2762. "name": "sessionID",
  2763. "in": "path",
  2764. "schema": {
  2765. "type": "string",
  2766. "allOf": [
  2767. {
  2768. "pattern": "^ses"
  2769. }
  2770. ]
  2771. },
  2772. "required": true
  2773. }
  2774. ],
  2775. "security": [],
  2776. "responses": {
  2777. "204": {
  2778. "description": "<No Content>"
  2779. },
  2780. "400": {
  2781. "description": "InvalidRequestError",
  2782. "content": {
  2783. "application/json": {
  2784. "schema": {
  2785. "$ref": "#/components/schemas/InvalidRequestError"
  2786. }
  2787. }
  2788. }
  2789. },
  2790. "401": {
  2791. "description": "UnauthorizedError",
  2792. "content": {
  2793. "application/json": {
  2794. "schema": {
  2795. "$ref": "#/components/schemas/UnauthorizedError"
  2796. }
  2797. }
  2798. }
  2799. },
  2800. "404": {
  2801. "description": "SessionNotFoundError",
  2802. "content": {
  2803. "application/json": {
  2804. "schema": {
  2805. "anyOf": [
  2806. {
  2807. "$ref": "#/components/schemas/SessionNotFoundError"
  2808. },
  2809. {
  2810. "$ref": "#/components/schemas/SessionNotFoundError"
  2811. }
  2812. ]
  2813. }
  2814. }
  2815. }
  2816. },
  2817. "409": {
  2818. "description": "SessionBusyError",
  2819. "content": {
  2820. "application/json": {
  2821. "schema": {
  2822. "$ref": "#/components/schemas/SessionBusyError"
  2823. }
  2824. }
  2825. }
  2826. }
  2827. },
  2828. "summary": "Commit staged revert"
  2829. }
  2830. },
  2831. "/api/session/{sessionID}/context": {
  2832. "get": {
  2833. "tags": [
  2834. "session"
  2835. ],
  2836. "operationId": "v2.session.context",
  2837. "parameters": [
  2838. {
  2839. "name": "sessionID",
  2840. "in": "path",
  2841. "schema": {
  2842. "type": "string",
  2843. "allOf": [
  2844. {
  2845. "pattern": "^ses"
  2846. }
  2847. ]
  2848. },
  2849. "required": true
  2850. }
  2851. ],
  2852. "security": [],
  2853. "responses": {
  2854. "200": {
  2855. "description": "Success",
  2856. "content": {
  2857. "application/json": {
  2858. "schema": {
  2859. "type": "object",
  2860. "properties": {
  2861. "data": {
  2862. "type": "array",
  2863. "items": {
  2864. "$ref": "#/components/schemas/Session.Message.Info"
  2865. }
  2866. }
  2867. },
  2868. "required": [
  2869. "data"
  2870. ],
  2871. "additionalProperties": false
  2872. }
  2873. }
  2874. }
  2875. },
  2876. "400": {
  2877. "description": "InvalidRequestError",
  2878. "content": {
  2879. "application/json": {
  2880. "schema": {
  2881. "$ref": "#/components/schemas/InvalidRequestError"
  2882. }
  2883. }
  2884. }
  2885. },
  2886. "401": {
  2887. "description": "UnauthorizedError",
  2888. "content": {
  2889. "application/json": {
  2890. "schema": {
  2891. "$ref": "#/components/schemas/UnauthorizedError"
  2892. }
  2893. }
  2894. }
  2895. },
  2896. "404": {
  2897. "description": "SessionNotFoundError",
  2898. "content": {
  2899. "application/json": {
  2900. "schema": {
  2901. "$ref": "#/components/schemas/SessionNotFoundError"
  2902. }
  2903. }
  2904. }
  2905. },
  2906. "500": {
  2907. "description": "UnknownError",
  2908. "content": {
  2909. "application/json": {
  2910. "schema": {
  2911. "$ref": "#/components/schemas/UnknownError"
  2912. }
  2913. }
  2914. }
  2915. }
  2916. },
  2917. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2918. "summary": "Get session context"
  2919. }
  2920. },
  2921. "/api/session/{sessionID}/pending": {
  2922. "get": {
  2923. "tags": [
  2924. "session"
  2925. ],
  2926. "operationId": "v2.session.pending.list",
  2927. "parameters": [
  2928. {
  2929. "name": "sessionID",
  2930. "in": "path",
  2931. "schema": {
  2932. "type": "string",
  2933. "allOf": [
  2934. {
  2935. "pattern": "^ses"
  2936. }
  2937. ]
  2938. },
  2939. "required": true
  2940. }
  2941. ],
  2942. "security": [],
  2943. "responses": {
  2944. "200": {
  2945. "description": "Success",
  2946. "content": {
  2947. "application/json": {
  2948. "schema": {
  2949. "type": "object",
  2950. "properties": {
  2951. "data": {
  2952. "type": "array",
  2953. "items": {
  2954. "$ref": "#/components/schemas/SessionPending.Info"
  2955. }
  2956. }
  2957. },
  2958. "required": [
  2959. "data"
  2960. ],
  2961. "additionalProperties": false
  2962. }
  2963. }
  2964. }
  2965. },
  2966. "400": {
  2967. "description": "InvalidRequestError",
  2968. "content": {
  2969. "application/json": {
  2970. "schema": {
  2971. "$ref": "#/components/schemas/InvalidRequestError"
  2972. }
  2973. }
  2974. }
  2975. },
  2976. "401": {
  2977. "description": "UnauthorizedError",
  2978. "content": {
  2979. "application/json": {
  2980. "schema": {
  2981. "$ref": "#/components/schemas/UnauthorizedError"
  2982. }
  2983. }
  2984. }
  2985. },
  2986. "404": {
  2987. "description": "SessionNotFoundError",
  2988. "content": {
  2989. "application/json": {
  2990. "schema": {
  2991. "$ref": "#/components/schemas/SessionNotFoundError"
  2992. }
  2993. }
  2994. }
  2995. }
  2996. },
  2997. "description": "List durable admitted session work not yet visible in projected history, ordered by admission. Includes unpromoted user and synthetic inputs and unhandled compaction barriers. The runner owns consumption; items disappear once promoted or handled.",
  2998. "summary": "List pending session work"
  2999. }
  3000. },
  3001. "/api/session/{sessionID}/instructions/entries": {
  3002. "get": {
  3003. "tags": [
  3004. "session"
  3005. ],
  3006. "operationId": "v2.session.instructions.entry.list",
  3007. "parameters": [
  3008. {
  3009. "name": "sessionID",
  3010. "in": "path",
  3011. "schema": {
  3012. "type": "string",
  3013. "allOf": [
  3014. {
  3015. "pattern": "^ses"
  3016. }
  3017. ]
  3018. },
  3019. "required": true
  3020. }
  3021. ],
  3022. "security": [],
  3023. "responses": {
  3024. "200": {
  3025. "description": "Success",
  3026. "content": {
  3027. "application/json": {
  3028. "schema": {
  3029. "type": "object",
  3030. "properties": {
  3031. "data": {
  3032. "type": "array",
  3033. "items": {
  3034. "$ref": "#/components/schemas/InstructionEntry.Info"
  3035. }
  3036. }
  3037. },
  3038. "required": [
  3039. "data"
  3040. ],
  3041. "additionalProperties": false
  3042. }
  3043. }
  3044. }
  3045. },
  3046. "400": {
  3047. "description": "InvalidRequestError",
  3048. "content": {
  3049. "application/json": {
  3050. "schema": {
  3051. "$ref": "#/components/schemas/InvalidRequestError"
  3052. }
  3053. }
  3054. }
  3055. },
  3056. "401": {
  3057. "description": "UnauthorizedError",
  3058. "content": {
  3059. "application/json": {
  3060. "schema": {
  3061. "$ref": "#/components/schemas/UnauthorizedError"
  3062. }
  3063. }
  3064. }
  3065. },
  3066. "404": {
  3067. "description": "SessionNotFoundError",
  3068. "content": {
  3069. "application/json": {
  3070. "schema": {
  3071. "anyOf": [
  3072. {
  3073. "$ref": "#/components/schemas/SessionNotFoundError"
  3074. },
  3075. {
  3076. "$ref": "#/components/schemas/SessionNotFoundError"
  3077. }
  3078. ]
  3079. }
  3080. }
  3081. }
  3082. }
  3083. },
  3084. "description": "List API-managed instruction entries attached to the session.",
  3085. "summary": "List instruction entries"
  3086. }
  3087. },
  3088. "/api/session/{sessionID}/instructions/entries/{key}": {
  3089. "put": {
  3090. "tags": [
  3091. "session"
  3092. ],
  3093. "operationId": "v2.session.instructions.entry.put",
  3094. "parameters": [
  3095. {
  3096. "name": "sessionID",
  3097. "in": "path",
  3098. "schema": {
  3099. "type": "string",
  3100. "allOf": [
  3101. {
  3102. "pattern": "^ses"
  3103. }
  3104. ]
  3105. },
  3106. "required": true
  3107. },
  3108. {
  3109. "name": "key",
  3110. "in": "path",
  3111. "schema": {
  3112. "$ref": "#/components/schemas/InstructionEntry.Key"
  3113. },
  3114. "required": true
  3115. }
  3116. ],
  3117. "security": [],
  3118. "responses": {
  3119. "204": {
  3120. "description": "<No Content>"
  3121. },
  3122. "400": {
  3123. "description": "InvalidRequestError",
  3124. "content": {
  3125. "application/json": {
  3126. "schema": {
  3127. "$ref": "#/components/schemas/InvalidRequestError"
  3128. }
  3129. }
  3130. }
  3131. },
  3132. "401": {
  3133. "description": "UnauthorizedError",
  3134. "content": {
  3135. "application/json": {
  3136. "schema": {
  3137. "$ref": "#/components/schemas/UnauthorizedError"
  3138. }
  3139. }
  3140. }
  3141. },
  3142. "404": {
  3143. "description": "SessionNotFoundError",
  3144. "content": {
  3145. "application/json": {
  3146. "schema": {
  3147. "anyOf": [
  3148. {
  3149. "$ref": "#/components/schemas/SessionNotFoundError"
  3150. },
  3151. {
  3152. "$ref": "#/components/schemas/SessionNotFoundError"
  3153. }
  3154. ]
  3155. }
  3156. }
  3157. }
  3158. },
  3159. "413": {
  3160. "description": "InstructionEntryValueTooLargeError",
  3161. "content": {
  3162. "application/json": {
  3163. "schema": {
  3164. "$ref": "#/components/schemas/InstructionEntryValueTooLargeError"
  3165. }
  3166. }
  3167. }
  3168. }
  3169. },
  3170. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  3171. "summary": "Put instruction entry",
  3172. "requestBody": {
  3173. "content": {
  3174. "application/json": {
  3175. "schema": {
  3176. "type": "object",
  3177. "properties": {
  3178. "value": {}
  3179. },
  3180. "required": [
  3181. "value"
  3182. ],
  3183. "additionalProperties": false
  3184. }
  3185. }
  3186. },
  3187. "required": true
  3188. }
  3189. },
  3190. "delete": {
  3191. "tags": [
  3192. "session"
  3193. ],
  3194. "operationId": "v2.session.instructions.entry.remove",
  3195. "parameters": [
  3196. {
  3197. "name": "sessionID",
  3198. "in": "path",
  3199. "schema": {
  3200. "type": "string",
  3201. "allOf": [
  3202. {
  3203. "pattern": "^ses"
  3204. }
  3205. ]
  3206. },
  3207. "required": true
  3208. },
  3209. {
  3210. "name": "key",
  3211. "in": "path",
  3212. "schema": {
  3213. "$ref": "#/components/schemas/InstructionEntry.Key"
  3214. },
  3215. "required": true
  3216. }
  3217. ],
  3218. "security": [],
  3219. "responses": {
  3220. "204": {
  3221. "description": "<No Content>"
  3222. },
  3223. "400": {
  3224. "description": "InvalidRequestError",
  3225. "content": {
  3226. "application/json": {
  3227. "schema": {
  3228. "$ref": "#/components/schemas/InvalidRequestError"
  3229. }
  3230. }
  3231. }
  3232. },
  3233. "401": {
  3234. "description": "UnauthorizedError",
  3235. "content": {
  3236. "application/json": {
  3237. "schema": {
  3238. "$ref": "#/components/schemas/UnauthorizedError"
  3239. }
  3240. }
  3241. }
  3242. },
  3243. "404": {
  3244. "description": "SessionNotFoundError",
  3245. "content": {
  3246. "application/json": {
  3247. "schema": {
  3248. "anyOf": [
  3249. {
  3250. "$ref": "#/components/schemas/SessionNotFoundError"
  3251. },
  3252. {
  3253. "$ref": "#/components/schemas/SessionNotFoundError"
  3254. }
  3255. ]
  3256. }
  3257. }
  3258. }
  3259. }
  3260. },
  3261. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  3262. "summary": "Remove instruction entry"
  3263. }
  3264. },
  3265. "/api/session/{sessionID}/generate": {
  3266. "post": {
  3267. "tags": [
  3268. "session"
  3269. ],
  3270. "operationId": "v2.session.generate",
  3271. "parameters": [
  3272. {
  3273. "name": "sessionID",
  3274. "in": "path",
  3275. "schema": {
  3276. "type": "string",
  3277. "allOf": [
  3278. {
  3279. "pattern": "^ses"
  3280. }
  3281. ]
  3282. },
  3283. "required": true
  3284. }
  3285. ],
  3286. "security": [],
  3287. "responses": {
  3288. "200": {
  3289. "description": "SessionGenerateResponse",
  3290. "content": {
  3291. "application/json": {
  3292. "schema": {
  3293. "$ref": "#/components/schemas/SessionGenerateResponse"
  3294. }
  3295. }
  3296. }
  3297. },
  3298. "400": {
  3299. "description": "InvalidRequestError",
  3300. "content": {
  3301. "application/json": {
  3302. "schema": {
  3303. "$ref": "#/components/schemas/InvalidRequestError"
  3304. }
  3305. }
  3306. }
  3307. },
  3308. "401": {
  3309. "description": "UnauthorizedError",
  3310. "content": {
  3311. "application/json": {
  3312. "schema": {
  3313. "$ref": "#/components/schemas/UnauthorizedError"
  3314. }
  3315. }
  3316. }
  3317. },
  3318. "404": {
  3319. "description": "SessionNotFoundError",
  3320. "content": {
  3321. "application/json": {
  3322. "schema": {
  3323. "anyOf": [
  3324. {
  3325. "$ref": "#/components/schemas/SessionNotFoundError"
  3326. },
  3327. {
  3328. "$ref": "#/components/schemas/SessionNotFoundError"
  3329. }
  3330. ]
  3331. }
  3332. }
  3333. }
  3334. },
  3335. "503": {
  3336. "description": "ServiceUnavailableError",
  3337. "content": {
  3338. "application/json": {
  3339. "schema": {
  3340. "$ref": "#/components/schemas/ServiceUnavailableError"
  3341. }
  3342. }
  3343. }
  3344. }
  3345. },
  3346. "description": "Generate transient text from the current session context without mutating session history.",
  3347. "summary": "Generate text from session context",
  3348. "requestBody": {
  3349. "content": {
  3350. "application/json": {
  3351. "schema": {
  3352. "type": "object",
  3353. "properties": {
  3354. "prompt": {
  3355. "type": "string"
  3356. }
  3357. },
  3358. "required": [
  3359. "prompt"
  3360. ],
  3361. "additionalProperties": false
  3362. }
  3363. }
  3364. },
  3365. "required": true
  3366. }
  3367. }
  3368. },
  3369. "/api/experimental/session/{sessionID}/log": {
  3370. "get": {
  3371. "tags": [
  3372. "session"
  3373. ],
  3374. "operationId": "v2.session.log",
  3375. "parameters": [
  3376. {
  3377. "name": "sessionID",
  3378. "in": "path",
  3379. "schema": {
  3380. "type": "string",
  3381. "allOf": [
  3382. {
  3383. "pattern": "^ses"
  3384. }
  3385. ]
  3386. },
  3387. "required": true
  3388. },
  3389. {
  3390. "name": "after",
  3391. "in": "query",
  3392. "schema": {
  3393. "anyOf": [
  3394. {
  3395. "type": "string"
  3396. },
  3397. {
  3398. "type": "null"
  3399. }
  3400. ]
  3401. },
  3402. "required": false
  3403. },
  3404. {
  3405. "name": "follow",
  3406. "in": "query",
  3407. "schema": {
  3408. "anyOf": [
  3409. {
  3410. "type": "string",
  3411. "enum": [
  3412. "true",
  3413. "false"
  3414. ]
  3415. },
  3416. {
  3417. "type": "null"
  3418. }
  3419. ]
  3420. },
  3421. "required": false
  3422. }
  3423. ],
  3424. "security": [],
  3425. "responses": {
  3426. "200": {
  3427. "description": "Success",
  3428. "content": {
  3429. "text/event-stream": {
  3430. "schema": {
  3431. "type": "object",
  3432. "properties": {
  3433. "id": {
  3434. "anyOf": [
  3435. {
  3436. "type": "string"
  3437. },
  3438. {
  3439. "type": "null"
  3440. }
  3441. ]
  3442. },
  3443. "event": {
  3444. "type": "string"
  3445. },
  3446. "data": {
  3447. "$ref": "#/components/schemas/SessionLogItemJsonString"
  3448. }
  3449. },
  3450. "required": [
  3451. "id",
  3452. "event",
  3453. "data"
  3454. ],
  3455. "additionalProperties": false
  3456. },
  3457. "x-effect-stream": {
  3458. "encoding": "sse",
  3459. "causeSchema": {
  3460. "type": "array",
  3461. "items": {
  3462. "anyOf": [
  3463. {
  3464. "type": "object",
  3465. "properties": {
  3466. "_tag": {
  3467. "type": "string",
  3468. "enum": [
  3469. "Fail"
  3470. ]
  3471. },
  3472. "error": {
  3473. "not": {}
  3474. }
  3475. },
  3476. "required": [
  3477. "_tag",
  3478. "error"
  3479. ],
  3480. "additionalProperties": false
  3481. },
  3482. {
  3483. "type": "object",
  3484. "properties": {
  3485. "_tag": {
  3486. "type": "string",
  3487. "enum": [
  3488. "Die"
  3489. ]
  3490. },
  3491. "defect": {}
  3492. },
  3493. "required": [
  3494. "_tag",
  3495. "defect"
  3496. ],
  3497. "additionalProperties": false
  3498. },
  3499. {
  3500. "type": "object",
  3501. "properties": {
  3502. "_tag": {
  3503. "type": "string",
  3504. "enum": [
  3505. "Interrupt"
  3506. ]
  3507. },
  3508. "fiberId": {
  3509. "anyOf": [
  3510. {
  3511. "type": "number"
  3512. },
  3513. {
  3514. "type": "null"
  3515. }
  3516. ]
  3517. }
  3518. },
  3519. "required": [
  3520. "_tag",
  3521. "fiberId"
  3522. ],
  3523. "additionalProperties": false
  3524. }
  3525. ]
  3526. }
  3527. },
  3528. "errorSchema": {
  3529. "not": {}
  3530. },
  3531. "failureEvent": "effect/httpapi/stream/failure"
  3532. }
  3533. }
  3534. }
  3535. },
  3536. "400": {
  3537. "description": "InvalidRequestError",
  3538. "content": {
  3539. "application/json": {
  3540. "schema": {
  3541. "$ref": "#/components/schemas/InvalidRequestError"
  3542. }
  3543. }
  3544. }
  3545. },
  3546. "401": {
  3547. "description": "UnauthorizedError",
  3548. "content": {
  3549. "application/json": {
  3550. "schema": {
  3551. "$ref": "#/components/schemas/UnauthorizedError"
  3552. }
  3553. }
  3554. }
  3555. },
  3556. "404": {
  3557. "description": "SessionNotFoundError",
  3558. "content": {
  3559. "application/json": {
  3560. "schema": {
  3561. "$ref": "#/components/schemas/SessionNotFoundError"
  3562. }
  3563. }
  3564. }
  3565. }
  3566. },
  3567. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3568. "summary": "Read the session log"
  3569. }
  3570. },
  3571. "/api/session/{sessionID}/interrupt": {
  3572. "post": {
  3573. "tags": [
  3574. "session"
  3575. ],
  3576. "operationId": "v2.session.interrupt",
  3577. "parameters": [
  3578. {
  3579. "name": "sessionID",
  3580. "in": "path",
  3581. "schema": {
  3582. "type": "string",
  3583. "allOf": [
  3584. {
  3585. "pattern": "^ses"
  3586. }
  3587. ]
  3588. },
  3589. "required": true
  3590. }
  3591. ],
  3592. "security": [],
  3593. "responses": {
  3594. "204": {
  3595. "description": "<No Content>"
  3596. },
  3597. "400": {
  3598. "description": "InvalidRequestError",
  3599. "content": {
  3600. "application/json": {
  3601. "schema": {
  3602. "$ref": "#/components/schemas/InvalidRequestError"
  3603. }
  3604. }
  3605. }
  3606. },
  3607. "401": {
  3608. "description": "UnauthorizedError",
  3609. "content": {
  3610. "application/json": {
  3611. "schema": {
  3612. "$ref": "#/components/schemas/UnauthorizedError"
  3613. }
  3614. }
  3615. }
  3616. },
  3617. "404": {
  3618. "description": "SessionNotFoundError",
  3619. "content": {
  3620. "application/json": {
  3621. "schema": {
  3622. "anyOf": [
  3623. {
  3624. "$ref": "#/components/schemas/SessionNotFoundError"
  3625. },
  3626. {
  3627. "$ref": "#/components/schemas/SessionNotFoundError"
  3628. }
  3629. ]
  3630. }
  3631. }
  3632. }
  3633. }
  3634. },
  3635. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3636. "summary": "Interrupt session execution"
  3637. }
  3638. },
  3639. "/api/session/{sessionID}/background": {
  3640. "post": {
  3641. "tags": [
  3642. "session"
  3643. ],
  3644. "operationId": "v2.session.background",
  3645. "parameters": [
  3646. {
  3647. "name": "sessionID",
  3648. "in": "path",
  3649. "schema": {
  3650. "type": "string",
  3651. "allOf": [
  3652. {
  3653. "pattern": "^ses"
  3654. }
  3655. ]
  3656. },
  3657. "required": true
  3658. }
  3659. ],
  3660. "security": [],
  3661. "responses": {
  3662. "204": {
  3663. "description": "<No Content>"
  3664. },
  3665. "400": {
  3666. "description": "InvalidRequestError",
  3667. "content": {
  3668. "application/json": {
  3669. "schema": {
  3670. "$ref": "#/components/schemas/InvalidRequestError"
  3671. }
  3672. }
  3673. }
  3674. },
  3675. "401": {
  3676. "description": "UnauthorizedError",
  3677. "content": {
  3678. "application/json": {
  3679. "schema": {
  3680. "$ref": "#/components/schemas/UnauthorizedError"
  3681. }
  3682. }
  3683. }
  3684. },
  3685. "404": {
  3686. "description": "SessionNotFoundError",
  3687. "content": {
  3688. "application/json": {
  3689. "schema": {
  3690. "anyOf": [
  3691. {
  3692. "$ref": "#/components/schemas/SessionNotFoundError"
  3693. },
  3694. {
  3695. "$ref": "#/components/schemas/SessionNotFoundError"
  3696. }
  3697. ]
  3698. }
  3699. }
  3700. }
  3701. }
  3702. },
  3703. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3704. "summary": "Background blocking session tools"
  3705. }
  3706. },
  3707. "/api/session/{sessionID}/message/{messageID}": {
  3708. "get": {
  3709. "tags": [
  3710. "session"
  3711. ],
  3712. "operationId": "v2.session.message",
  3713. "parameters": [
  3714. {
  3715. "name": "sessionID",
  3716. "in": "path",
  3717. "schema": {
  3718. "type": "string",
  3719. "allOf": [
  3720. {
  3721. "pattern": "^ses"
  3722. }
  3723. ]
  3724. },
  3725. "required": true
  3726. },
  3727. {
  3728. "name": "messageID",
  3729. "in": "path",
  3730. "schema": {
  3731. "type": "string",
  3732. "allOf": [
  3733. {
  3734. "pattern": "^msg_"
  3735. }
  3736. ]
  3737. },
  3738. "required": true
  3739. }
  3740. ],
  3741. "security": [],
  3742. "responses": {
  3743. "200": {
  3744. "description": "Success",
  3745. "content": {
  3746. "application/json": {
  3747. "schema": {
  3748. "type": "object",
  3749. "properties": {
  3750. "data": {
  3751. "$ref": "#/components/schemas/Session.Message.Info"
  3752. }
  3753. },
  3754. "required": [
  3755. "data"
  3756. ],
  3757. "additionalProperties": false
  3758. }
  3759. }
  3760. }
  3761. },
  3762. "400": {
  3763. "description": "InvalidRequestError",
  3764. "content": {
  3765. "application/json": {
  3766. "schema": {
  3767. "$ref": "#/components/schemas/InvalidRequestError"
  3768. }
  3769. }
  3770. }
  3771. },
  3772. "401": {
  3773. "description": "UnauthorizedError",
  3774. "content": {
  3775. "application/json": {
  3776. "schema": {
  3777. "$ref": "#/components/schemas/UnauthorizedError"
  3778. }
  3779. }
  3780. }
  3781. },
  3782. "404": {
  3783. "description": "SessionNotFoundError | MessageNotFoundError",
  3784. "content": {
  3785. "application/json": {
  3786. "schema": {
  3787. "anyOf": [
  3788. {
  3789. "$ref": "#/components/schemas/SessionNotFoundError"
  3790. },
  3791. {
  3792. "$ref": "#/components/schemas/MessageNotFoundError"
  3793. }
  3794. ]
  3795. }
  3796. }
  3797. }
  3798. }
  3799. },
  3800. "description": "Retrieve one projected message owned by the Session.",
  3801. "summary": "Get session message"
  3802. }
  3803. },
  3804. "/api/session/{sessionID}/message": {
  3805. "get": {
  3806. "tags": [
  3807. "session"
  3808. ],
  3809. "operationId": "v2.message.list",
  3810. "parameters": [
  3811. {
  3812. "name": "sessionID",
  3813. "in": "path",
  3814. "schema": {
  3815. "type": "string",
  3816. "allOf": [
  3817. {
  3818. "pattern": "^ses"
  3819. }
  3820. ]
  3821. },
  3822. "required": true
  3823. },
  3824. {
  3825. "name": "limit",
  3826. "in": "query",
  3827. "schema": {
  3828. "anyOf": [
  3829. {
  3830. "type": "string"
  3831. },
  3832. {
  3833. "type": "null"
  3834. }
  3835. ],
  3836. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3837. },
  3838. "required": false
  3839. },
  3840. {
  3841. "name": "order",
  3842. "in": "query",
  3843. "schema": {
  3844. "anyOf": [
  3845. {
  3846. "type": "string",
  3847. "enum": [
  3848. "asc",
  3849. "desc"
  3850. ]
  3851. },
  3852. {
  3853. "type": "null"
  3854. }
  3855. ],
  3856. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3857. },
  3858. "required": false
  3859. },
  3860. {
  3861. "name": "cursor",
  3862. "in": "query",
  3863. "schema": {
  3864. "anyOf": [
  3865. {
  3866. "type": "string",
  3867. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3868. },
  3869. {
  3870. "type": "null"
  3871. }
  3872. ]
  3873. },
  3874. "required": false
  3875. }
  3876. ],
  3877. "security": [],
  3878. "responses": {
  3879. "200": {
  3880. "description": "SessionMessagesResponse",
  3881. "content": {
  3882. "application/json": {
  3883. "schema": {
  3884. "$ref": "#/components/schemas/SessionMessagesResponse"
  3885. }
  3886. }
  3887. }
  3888. },
  3889. "400": {
  3890. "description": "InvalidCursorError | InvalidRequestError",
  3891. "content": {
  3892. "application/json": {
  3893. "schema": {
  3894. "anyOf": [
  3895. {
  3896. "$ref": "#/components/schemas/InvalidCursorError"
  3897. },
  3898. {
  3899. "$ref": "#/components/schemas/InvalidRequestError"
  3900. }
  3901. ]
  3902. }
  3903. }
  3904. }
  3905. },
  3906. "401": {
  3907. "description": "UnauthorizedError",
  3908. "content": {
  3909. "application/json": {
  3910. "schema": {
  3911. "$ref": "#/components/schemas/UnauthorizedError"
  3912. }
  3913. }
  3914. }
  3915. },
  3916. "404": {
  3917. "description": "SessionNotFoundError",
  3918. "content": {
  3919. "application/json": {
  3920. "schema": {
  3921. "$ref": "#/components/schemas/SessionNotFoundError"
  3922. }
  3923. }
  3924. }
  3925. },
  3926. "500": {
  3927. "description": "UnknownError",
  3928. "content": {
  3929. "application/json": {
  3930. "schema": {
  3931. "$ref": "#/components/schemas/UnknownError"
  3932. }
  3933. }
  3934. }
  3935. }
  3936. },
  3937. "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.",
  3938. "summary": "Get session messages"
  3939. }
  3940. },
  3941. "/api/model": {
  3942. "get": {
  3943. "tags": [
  3944. "model"
  3945. ],
  3946. "operationId": "v2.model.list",
  3947. "parameters": [
  3948. {
  3949. "name": "location",
  3950. "in": "query",
  3951. "schema": {
  3952. "anyOf": [
  3953. {
  3954. "type": "object",
  3955. "properties": {
  3956. "directory": {
  3957. "anyOf": [
  3958. {
  3959. "type": "string"
  3960. },
  3961. {
  3962. "type": "null"
  3963. }
  3964. ]
  3965. },
  3966. "workspace": {
  3967. "anyOf": [
  3968. {
  3969. "type": "string"
  3970. },
  3971. {
  3972. "type": "null"
  3973. }
  3974. ]
  3975. }
  3976. },
  3977. "additionalProperties": false
  3978. },
  3979. {
  3980. "type": "null"
  3981. }
  3982. ]
  3983. },
  3984. "required": false,
  3985. "style": "deepObject",
  3986. "explode": true
  3987. }
  3988. ],
  3989. "security": [],
  3990. "responses": {
  3991. "200": {
  3992. "description": "Success",
  3993. "content": {
  3994. "application/json": {
  3995. "schema": {
  3996. "type": "object",
  3997. "properties": {
  3998. "location": {
  3999. "$ref": "#/components/schemas/Location.Info"
  4000. },
  4001. "data": {
  4002. "type": "array",
  4003. "items": {
  4004. "$ref": "#/components/schemas/Model.Info"
  4005. }
  4006. }
  4007. },
  4008. "required": [
  4009. "location",
  4010. "data"
  4011. ],
  4012. "additionalProperties": false
  4013. }
  4014. }
  4015. }
  4016. },
  4017. "400": {
  4018. "description": "InvalidRequestError",
  4019. "content": {
  4020. "application/json": {
  4021. "schema": {
  4022. "$ref": "#/components/schemas/InvalidRequestError"
  4023. }
  4024. }
  4025. }
  4026. },
  4027. "401": {
  4028. "description": "UnauthorizedError",
  4029. "content": {
  4030. "application/json": {
  4031. "schema": {
  4032. "$ref": "#/components/schemas/UnauthorizedError"
  4033. }
  4034. }
  4035. }
  4036. },
  4037. "503": {
  4038. "description": "ServiceUnavailableError",
  4039. "content": {
  4040. "application/json": {
  4041. "schema": {
  4042. "$ref": "#/components/schemas/ServiceUnavailableError"
  4043. }
  4044. }
  4045. }
  4046. }
  4047. },
  4048. "description": "Retrieve the current snapshot of available models ordered by release date. The snapshot may precede initial plugin settlement.",
  4049. "summary": "List models"
  4050. }
  4051. },
  4052. "/api/model/default": {
  4053. "get": {
  4054. "tags": [
  4055. "model"
  4056. ],
  4057. "operationId": "v2.model.default",
  4058. "parameters": [
  4059. {
  4060. "name": "location",
  4061. "in": "query",
  4062. "schema": {
  4063. "anyOf": [
  4064. {
  4065. "type": "object",
  4066. "properties": {
  4067. "directory": {
  4068. "anyOf": [
  4069. {
  4070. "type": "string"
  4071. },
  4072. {
  4073. "type": "null"
  4074. }
  4075. ]
  4076. },
  4077. "workspace": {
  4078. "anyOf": [
  4079. {
  4080. "type": "string"
  4081. },
  4082. {
  4083. "type": "null"
  4084. }
  4085. ]
  4086. }
  4087. },
  4088. "additionalProperties": false
  4089. },
  4090. {
  4091. "type": "null"
  4092. }
  4093. ]
  4094. },
  4095. "required": false,
  4096. "style": "deepObject",
  4097. "explode": true
  4098. }
  4099. ],
  4100. "security": [],
  4101. "responses": {
  4102. "200": {
  4103. "description": "Success",
  4104. "content": {
  4105. "application/json": {
  4106. "schema": {
  4107. "type": "object",
  4108. "properties": {
  4109. "location": {
  4110. "$ref": "#/components/schemas/Location.Info"
  4111. },
  4112. "data": {
  4113. "anyOf": [
  4114. {
  4115. "$ref": "#/components/schemas/Model.Info"
  4116. },
  4117. {
  4118. "type": "null"
  4119. }
  4120. ]
  4121. }
  4122. },
  4123. "required": [
  4124. "location",
  4125. "data"
  4126. ],
  4127. "additionalProperties": false
  4128. }
  4129. }
  4130. }
  4131. },
  4132. "400": {
  4133. "description": "InvalidRequestError",
  4134. "content": {
  4135. "application/json": {
  4136. "schema": {
  4137. "$ref": "#/components/schemas/InvalidRequestError"
  4138. }
  4139. }
  4140. }
  4141. },
  4142. "401": {
  4143. "description": "UnauthorizedError",
  4144. "content": {
  4145. "application/json": {
  4146. "schema": {
  4147. "$ref": "#/components/schemas/UnauthorizedError"
  4148. }
  4149. }
  4150. }
  4151. },
  4152. "503": {
  4153. "description": "ServiceUnavailableError",
  4154. "content": {
  4155. "application/json": {
  4156. "schema": {
  4157. "$ref": "#/components/schemas/ServiceUnavailableError"
  4158. }
  4159. }
  4160. }
  4161. }
  4162. },
  4163. "description": "Retrieve the model used when a session has no explicit model selection.",
  4164. "summary": "Get default model"
  4165. }
  4166. },
  4167. "/api/generate": {
  4168. "post": {
  4169. "tags": [
  4170. "generate"
  4171. ],
  4172. "operationId": "v2.generate.text",
  4173. "parameters": [
  4174. {
  4175. "name": "location",
  4176. "in": "query",
  4177. "schema": {
  4178. "anyOf": [
  4179. {
  4180. "type": "object",
  4181. "properties": {
  4182. "directory": {
  4183. "anyOf": [
  4184. {
  4185. "type": "string"
  4186. },
  4187. {
  4188. "type": "null"
  4189. }
  4190. ]
  4191. },
  4192. "workspace": {
  4193. "anyOf": [
  4194. {
  4195. "type": "string"
  4196. },
  4197. {
  4198. "type": "null"
  4199. }
  4200. ]
  4201. }
  4202. },
  4203. "additionalProperties": false
  4204. },
  4205. {
  4206. "type": "null"
  4207. }
  4208. ]
  4209. },
  4210. "required": false,
  4211. "style": "deepObject",
  4212. "explode": true
  4213. }
  4214. ],
  4215. "security": [],
  4216. "responses": {
  4217. "200": {
  4218. "description": "GenerateTextResponse",
  4219. "content": {
  4220. "application/json": {
  4221. "schema": {
  4222. "$ref": "#/components/schemas/GenerateTextResponse"
  4223. }
  4224. }
  4225. }
  4226. },
  4227. "400": {
  4228. "description": "InvalidRequestError",
  4229. "content": {
  4230. "application/json": {
  4231. "schema": {
  4232. "anyOf": [
  4233. {
  4234. "$ref": "#/components/schemas/InvalidRequestError1"
  4235. },
  4236. {
  4237. "$ref": "#/components/schemas/InvalidRequestError"
  4238. }
  4239. ]
  4240. }
  4241. }
  4242. }
  4243. },
  4244. "401": {
  4245. "description": "UnauthorizedError",
  4246. "content": {
  4247. "application/json": {
  4248. "schema": {
  4249. "$ref": "#/components/schemas/UnauthorizedError"
  4250. }
  4251. }
  4252. }
  4253. },
  4254. "503": {
  4255. "description": "ServiceUnavailableError",
  4256. "content": {
  4257. "application/json": {
  4258. "schema": {
  4259. "$ref": "#/components/schemas/ServiceUnavailableError"
  4260. }
  4261. }
  4262. }
  4263. }
  4264. },
  4265. "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.",
  4266. "summary": "Generate text",
  4267. "requestBody": {
  4268. "content": {
  4269. "application/json": {
  4270. "schema": {
  4271. "type": "object",
  4272. "properties": {
  4273. "prompt": {
  4274. "type": "string"
  4275. },
  4276. "model": {
  4277. "anyOf": [
  4278. {
  4279. "$ref": "#/components/schemas/Model.Ref"
  4280. },
  4281. {
  4282. "type": "null"
  4283. }
  4284. ]
  4285. }
  4286. },
  4287. "required": [
  4288. "prompt"
  4289. ],
  4290. "additionalProperties": false
  4291. }
  4292. }
  4293. },
  4294. "required": true
  4295. }
  4296. }
  4297. },
  4298. "/api/provider": {
  4299. "get": {
  4300. "tags": [
  4301. "provider"
  4302. ],
  4303. "operationId": "v2.provider.list",
  4304. "parameters": [
  4305. {
  4306. "name": "location",
  4307. "in": "query",
  4308. "schema": {
  4309. "anyOf": [
  4310. {
  4311. "type": "object",
  4312. "properties": {
  4313. "directory": {
  4314. "anyOf": [
  4315. {
  4316. "type": "string"
  4317. },
  4318. {
  4319. "type": "null"
  4320. }
  4321. ]
  4322. },
  4323. "workspace": {
  4324. "anyOf": [
  4325. {
  4326. "type": "string"
  4327. },
  4328. {
  4329. "type": "null"
  4330. }
  4331. ]
  4332. }
  4333. },
  4334. "additionalProperties": false
  4335. },
  4336. {
  4337. "type": "null"
  4338. }
  4339. ]
  4340. },
  4341. "required": false,
  4342. "style": "deepObject",
  4343. "explode": true
  4344. }
  4345. ],
  4346. "security": [],
  4347. "responses": {
  4348. "200": {
  4349. "description": "Success",
  4350. "content": {
  4351. "application/json": {
  4352. "schema": {
  4353. "type": "object",
  4354. "properties": {
  4355. "location": {
  4356. "$ref": "#/components/schemas/Location.Info"
  4357. },
  4358. "data": {
  4359. "type": "array",
  4360. "items": {
  4361. "$ref": "#/components/schemas/Provider.Info"
  4362. }
  4363. }
  4364. },
  4365. "required": [
  4366. "location",
  4367. "data"
  4368. ],
  4369. "additionalProperties": false
  4370. }
  4371. }
  4372. }
  4373. },
  4374. "400": {
  4375. "description": "InvalidRequestError",
  4376. "content": {
  4377. "application/json": {
  4378. "schema": {
  4379. "$ref": "#/components/schemas/InvalidRequestError"
  4380. }
  4381. }
  4382. }
  4383. },
  4384. "401": {
  4385. "description": "UnauthorizedError",
  4386. "content": {
  4387. "application/json": {
  4388. "schema": {
  4389. "$ref": "#/components/schemas/UnauthorizedError"
  4390. }
  4391. }
  4392. }
  4393. },
  4394. "503": {
  4395. "description": "ServiceUnavailableError",
  4396. "content": {
  4397. "application/json": {
  4398. "schema": {
  4399. "$ref": "#/components/schemas/ServiceUnavailableError"
  4400. }
  4401. }
  4402. }
  4403. }
  4404. },
  4405. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4406. "summary": "List providers"
  4407. }
  4408. },
  4409. "/api/provider/{providerID}": {
  4410. "get": {
  4411. "tags": [
  4412. "provider"
  4413. ],
  4414. "operationId": "v2.provider.get",
  4415. "parameters": [
  4416. {
  4417. "name": "providerID",
  4418. "in": "path",
  4419. "schema": {
  4420. "type": "string"
  4421. },
  4422. "required": true
  4423. },
  4424. {
  4425. "name": "location",
  4426. "in": "query",
  4427. "schema": {
  4428. "anyOf": [
  4429. {
  4430. "type": "object",
  4431. "properties": {
  4432. "directory": {
  4433. "anyOf": [
  4434. {
  4435. "type": "string"
  4436. },
  4437. {
  4438. "type": "null"
  4439. }
  4440. ]
  4441. },
  4442. "workspace": {
  4443. "anyOf": [
  4444. {
  4445. "type": "string"
  4446. },
  4447. {
  4448. "type": "null"
  4449. }
  4450. ]
  4451. }
  4452. },
  4453. "additionalProperties": false
  4454. },
  4455. {
  4456. "type": "null"
  4457. }
  4458. ]
  4459. },
  4460. "required": false,
  4461. "style": "deepObject",
  4462. "explode": true
  4463. }
  4464. ],
  4465. "security": [],
  4466. "responses": {
  4467. "200": {
  4468. "description": "Success",
  4469. "content": {
  4470. "application/json": {
  4471. "schema": {
  4472. "type": "object",
  4473. "properties": {
  4474. "location": {
  4475. "$ref": "#/components/schemas/Location.Info"
  4476. },
  4477. "data": {
  4478. "$ref": "#/components/schemas/Provider.Info"
  4479. }
  4480. },
  4481. "required": [
  4482. "location",
  4483. "data"
  4484. ],
  4485. "additionalProperties": false
  4486. }
  4487. }
  4488. }
  4489. },
  4490. "400": {
  4491. "description": "InvalidRequestError",
  4492. "content": {
  4493. "application/json": {
  4494. "schema": {
  4495. "$ref": "#/components/schemas/InvalidRequestError"
  4496. }
  4497. }
  4498. }
  4499. },
  4500. "401": {
  4501. "description": "UnauthorizedError",
  4502. "content": {
  4503. "application/json": {
  4504. "schema": {
  4505. "$ref": "#/components/schemas/UnauthorizedError"
  4506. }
  4507. }
  4508. }
  4509. },
  4510. "404": {
  4511. "description": "ProviderNotFoundError",
  4512. "content": {
  4513. "application/json": {
  4514. "schema": {
  4515. "$ref": "#/components/schemas/ProviderNotFoundError"
  4516. }
  4517. }
  4518. }
  4519. },
  4520. "503": {
  4521. "description": "ServiceUnavailableError",
  4522. "content": {
  4523. "application/json": {
  4524. "schema": {
  4525. "$ref": "#/components/schemas/ServiceUnavailableError"
  4526. }
  4527. }
  4528. }
  4529. }
  4530. },
  4531. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4532. "summary": "Get provider"
  4533. }
  4534. },
  4535. "/api/integration": {
  4536. "get": {
  4537. "tags": [
  4538. "integration"
  4539. ],
  4540. "operationId": "v2.integration.list",
  4541. "parameters": [
  4542. {
  4543. "name": "location",
  4544. "in": "query",
  4545. "schema": {
  4546. "anyOf": [
  4547. {
  4548. "type": "object",
  4549. "properties": {
  4550. "directory": {
  4551. "anyOf": [
  4552. {
  4553. "type": "string"
  4554. },
  4555. {
  4556. "type": "null"
  4557. }
  4558. ]
  4559. },
  4560. "workspace": {
  4561. "anyOf": [
  4562. {
  4563. "type": "string"
  4564. },
  4565. {
  4566. "type": "null"
  4567. }
  4568. ]
  4569. }
  4570. },
  4571. "additionalProperties": false
  4572. },
  4573. {
  4574. "type": "null"
  4575. }
  4576. ]
  4577. },
  4578. "required": false,
  4579. "style": "deepObject",
  4580. "explode": true
  4581. }
  4582. ],
  4583. "security": [],
  4584. "responses": {
  4585. "200": {
  4586. "description": "Success",
  4587. "content": {
  4588. "application/json": {
  4589. "schema": {
  4590. "type": "object",
  4591. "properties": {
  4592. "location": {
  4593. "$ref": "#/components/schemas/Location.Info"
  4594. },
  4595. "data": {
  4596. "type": "array",
  4597. "items": {
  4598. "$ref": "#/components/schemas/Integration.Info"
  4599. }
  4600. }
  4601. },
  4602. "required": [
  4603. "location",
  4604. "data"
  4605. ],
  4606. "additionalProperties": false
  4607. }
  4608. }
  4609. }
  4610. },
  4611. "400": {
  4612. "description": "InvalidRequestError",
  4613. "content": {
  4614. "application/json": {
  4615. "schema": {
  4616. "$ref": "#/components/schemas/InvalidRequestError"
  4617. }
  4618. }
  4619. }
  4620. },
  4621. "401": {
  4622. "description": "UnauthorizedError",
  4623. "content": {
  4624. "application/json": {
  4625. "schema": {
  4626. "$ref": "#/components/schemas/UnauthorizedError"
  4627. }
  4628. }
  4629. }
  4630. }
  4631. },
  4632. "description": "Retrieve available integrations and their authentication methods.",
  4633. "summary": "List integrations"
  4634. }
  4635. },
  4636. "/api/integration/{integrationID}": {
  4637. "get": {
  4638. "tags": [
  4639. "integration"
  4640. ],
  4641. "operationId": "v2.integration.get",
  4642. "parameters": [
  4643. {
  4644. "name": "integrationID",
  4645. "in": "path",
  4646. "schema": {
  4647. "type": "string"
  4648. },
  4649. "required": true
  4650. },
  4651. {
  4652. "name": "location",
  4653. "in": "query",
  4654. "schema": {
  4655. "anyOf": [
  4656. {
  4657. "type": "object",
  4658. "properties": {
  4659. "directory": {
  4660. "anyOf": [
  4661. {
  4662. "type": "string"
  4663. },
  4664. {
  4665. "type": "null"
  4666. }
  4667. ]
  4668. },
  4669. "workspace": {
  4670. "anyOf": [
  4671. {
  4672. "type": "string"
  4673. },
  4674. {
  4675. "type": "null"
  4676. }
  4677. ]
  4678. }
  4679. },
  4680. "additionalProperties": false
  4681. },
  4682. {
  4683. "type": "null"
  4684. }
  4685. ]
  4686. },
  4687. "required": false,
  4688. "style": "deepObject",
  4689. "explode": true
  4690. }
  4691. ],
  4692. "security": [],
  4693. "responses": {
  4694. "200": {
  4695. "description": "Success",
  4696. "content": {
  4697. "application/json": {
  4698. "schema": {
  4699. "type": "object",
  4700. "properties": {
  4701. "location": {
  4702. "$ref": "#/components/schemas/Location.Info"
  4703. },
  4704. "data": {
  4705. "anyOf": [
  4706. {
  4707. "$ref": "#/components/schemas/Integration.Info"
  4708. },
  4709. {
  4710. "type": "null"
  4711. }
  4712. ]
  4713. }
  4714. },
  4715. "required": [
  4716. "location",
  4717. "data"
  4718. ],
  4719. "additionalProperties": false
  4720. }
  4721. }
  4722. }
  4723. },
  4724. "400": {
  4725. "description": "InvalidRequestError",
  4726. "content": {
  4727. "application/json": {
  4728. "schema": {
  4729. "$ref": "#/components/schemas/InvalidRequestError"
  4730. }
  4731. }
  4732. }
  4733. },
  4734. "401": {
  4735. "description": "UnauthorizedError",
  4736. "content": {
  4737. "application/json": {
  4738. "schema": {
  4739. "$ref": "#/components/schemas/UnauthorizedError"
  4740. }
  4741. }
  4742. }
  4743. }
  4744. },
  4745. "description": "Retrieve one integration and its authentication methods.",
  4746. "summary": "Get integration"
  4747. }
  4748. },
  4749. "/api/experimental/integration/wellknown": {
  4750. "post": {
  4751. "tags": [
  4752. "integration"
  4753. ],
  4754. "operationId": "v2.experimental.integration.wellknown.add",
  4755. "parameters": [
  4756. {
  4757. "name": "location",
  4758. "in": "query",
  4759. "schema": {
  4760. "anyOf": [
  4761. {
  4762. "type": "object",
  4763. "properties": {
  4764. "directory": {
  4765. "anyOf": [
  4766. {
  4767. "type": "string"
  4768. },
  4769. {
  4770. "type": "null"
  4771. }
  4772. ]
  4773. },
  4774. "workspace": {
  4775. "anyOf": [
  4776. {
  4777. "type": "string"
  4778. },
  4779. {
  4780. "type": "null"
  4781. }
  4782. ]
  4783. }
  4784. },
  4785. "additionalProperties": false
  4786. },
  4787. {
  4788. "type": "null"
  4789. }
  4790. ]
  4791. },
  4792. "required": false,
  4793. "style": "deepObject",
  4794. "explode": true
  4795. }
  4796. ],
  4797. "security": [],
  4798. "responses": {
  4799. "204": {
  4800. "description": "<No Content>"
  4801. },
  4802. "400": {
  4803. "description": "InvalidRequestError",
  4804. "content": {
  4805. "application/json": {
  4806. "schema": {
  4807. "anyOf": [
  4808. {
  4809. "$ref": "#/components/schemas/InvalidRequestError1"
  4810. },
  4811. {
  4812. "$ref": "#/components/schemas/InvalidRequestError"
  4813. }
  4814. ]
  4815. }
  4816. }
  4817. }
  4818. },
  4819. "401": {
  4820. "description": "UnauthorizedError",
  4821. "content": {
  4822. "application/json": {
  4823. "schema": {
  4824. "$ref": "#/components/schemas/UnauthorizedError"
  4825. }
  4826. }
  4827. }
  4828. }
  4829. },
  4830. "description": "Discover and persist an experimental wellknown integration source.",
  4831. "summary": "Add wellknown integration",
  4832. "requestBody": {
  4833. "content": {
  4834. "application/json": {
  4835. "schema": {
  4836. "type": "object",
  4837. "properties": {
  4838. "url": {
  4839. "type": "string"
  4840. }
  4841. },
  4842. "required": [
  4843. "url"
  4844. ],
  4845. "additionalProperties": false
  4846. }
  4847. }
  4848. },
  4849. "required": true
  4850. }
  4851. }
  4852. },
  4853. "/api/integration/{integrationID}/connect/key": {
  4854. "post": {
  4855. "tags": [
  4856. "integration"
  4857. ],
  4858. "operationId": "v2.integration.connect.key",
  4859. "parameters": [
  4860. {
  4861. "name": "integrationID",
  4862. "in": "path",
  4863. "schema": {
  4864. "type": "string"
  4865. },
  4866. "required": true
  4867. },
  4868. {
  4869. "name": "location",
  4870. "in": "query",
  4871. "schema": {
  4872. "anyOf": [
  4873. {
  4874. "type": "object",
  4875. "properties": {
  4876. "directory": {
  4877. "anyOf": [
  4878. {
  4879. "type": "string"
  4880. },
  4881. {
  4882. "type": "null"
  4883. }
  4884. ]
  4885. },
  4886. "workspace": {
  4887. "anyOf": [
  4888. {
  4889. "type": "string"
  4890. },
  4891. {
  4892. "type": "null"
  4893. }
  4894. ]
  4895. }
  4896. },
  4897. "additionalProperties": false
  4898. },
  4899. {
  4900. "type": "null"
  4901. }
  4902. ]
  4903. },
  4904. "required": false,
  4905. "style": "deepObject",
  4906. "explode": true
  4907. }
  4908. ],
  4909. "security": [],
  4910. "responses": {
  4911. "204": {
  4912. "description": "<No Content>"
  4913. },
  4914. "400": {
  4915. "description": "InvalidRequestError",
  4916. "content": {
  4917. "application/json": {
  4918. "schema": {
  4919. "anyOf": [
  4920. {
  4921. "$ref": "#/components/schemas/InvalidRequestError1"
  4922. },
  4923. {
  4924. "$ref": "#/components/schemas/InvalidRequestError"
  4925. }
  4926. ]
  4927. }
  4928. }
  4929. }
  4930. },
  4931. "401": {
  4932. "description": "UnauthorizedError",
  4933. "content": {
  4934. "application/json": {
  4935. "schema": {
  4936. "$ref": "#/components/schemas/UnauthorizedError"
  4937. }
  4938. }
  4939. }
  4940. }
  4941. },
  4942. "description": "Run a key authentication method and store the resulting credential.",
  4943. "summary": "Connect with key",
  4944. "requestBody": {
  4945. "content": {
  4946. "application/json": {
  4947. "schema": {
  4948. "type": "object",
  4949. "properties": {
  4950. "key": {
  4951. "type": "string"
  4952. },
  4953. "label": {
  4954. "anyOf": [
  4955. {
  4956. "type": "string"
  4957. },
  4958. {
  4959. "type": "null"
  4960. }
  4961. ]
  4962. }
  4963. },
  4964. "required": [
  4965. "key"
  4966. ],
  4967. "additionalProperties": false
  4968. }
  4969. }
  4970. },
  4971. "required": true
  4972. }
  4973. }
  4974. },
  4975. "/api/integration/{integrationID}/connect/oauth": {
  4976. "post": {
  4977. "tags": [
  4978. "integration"
  4979. ],
  4980. "operationId": "v2.integration.oauth.connect",
  4981. "parameters": [
  4982. {
  4983. "name": "integrationID",
  4984. "in": "path",
  4985. "schema": {
  4986. "type": "string"
  4987. },
  4988. "required": true
  4989. },
  4990. {
  4991. "name": "location",
  4992. "in": "query",
  4993. "schema": {
  4994. "anyOf": [
  4995. {
  4996. "type": "object",
  4997. "properties": {
  4998. "directory": {
  4999. "anyOf": [
  5000. {
  5001. "type": "string"
  5002. },
  5003. {
  5004. "type": "null"
  5005. }
  5006. ]
  5007. },
  5008. "workspace": {
  5009. "anyOf": [
  5010. {
  5011. "type": "string"
  5012. },
  5013. {
  5014. "type": "null"
  5015. }
  5016. ]
  5017. }
  5018. },
  5019. "additionalProperties": false
  5020. },
  5021. {
  5022. "type": "null"
  5023. }
  5024. ]
  5025. },
  5026. "required": false,
  5027. "style": "deepObject",
  5028. "explode": true
  5029. }
  5030. ],
  5031. "security": [],
  5032. "responses": {
  5033. "200": {
  5034. "description": "Success",
  5035. "content": {
  5036. "application/json": {
  5037. "schema": {
  5038. "type": "object",
  5039. "properties": {
  5040. "location": {
  5041. "$ref": "#/components/schemas/Location.Info"
  5042. },
  5043. "data": {
  5044. "$ref": "#/components/schemas/Integration.Attempt"
  5045. }
  5046. },
  5047. "required": [
  5048. "location",
  5049. "data"
  5050. ],
  5051. "additionalProperties": false
  5052. }
  5053. }
  5054. }
  5055. },
  5056. "400": {
  5057. "description": "InvalidRequestError",
  5058. "content": {
  5059. "application/json": {
  5060. "schema": {
  5061. "anyOf": [
  5062. {
  5063. "$ref": "#/components/schemas/InvalidRequestError1"
  5064. },
  5065. {
  5066. "$ref": "#/components/schemas/InvalidRequestError"
  5067. }
  5068. ]
  5069. }
  5070. }
  5071. }
  5072. },
  5073. "401": {
  5074. "description": "UnauthorizedError",
  5075. "content": {
  5076. "application/json": {
  5077. "schema": {
  5078. "$ref": "#/components/schemas/UnauthorizedError"
  5079. }
  5080. }
  5081. }
  5082. }
  5083. },
  5084. "description": "Start an OAuth attempt and return the authorization details.",
  5085. "summary": "Begin OAuth connection",
  5086. "requestBody": {
  5087. "content": {
  5088. "application/json": {
  5089. "schema": {
  5090. "type": "object",
  5091. "properties": {
  5092. "methodID": {
  5093. "type": "string"
  5094. },
  5095. "inputs": {
  5096. "type": "object",
  5097. "additionalProperties": {
  5098. "type": "string"
  5099. }
  5100. },
  5101. "label": {
  5102. "anyOf": [
  5103. {
  5104. "type": "string"
  5105. },
  5106. {
  5107. "type": "null"
  5108. }
  5109. ]
  5110. }
  5111. },
  5112. "required": [
  5113. "methodID",
  5114. "inputs"
  5115. ],
  5116. "additionalProperties": false
  5117. }
  5118. }
  5119. },
  5120. "required": true
  5121. }
  5122. }
  5123. },
  5124. "/api/integration/{integrationID}/connect/oauth/{attemptID}": {
  5125. "get": {
  5126. "tags": [
  5127. "integration"
  5128. ],
  5129. "operationId": "v2.integration.oauth.status",
  5130. "parameters": [
  5131. {
  5132. "name": "integrationID",
  5133. "in": "path",
  5134. "schema": {
  5135. "type": "string"
  5136. },
  5137. "required": true
  5138. },
  5139. {
  5140. "name": "attemptID",
  5141. "in": "path",
  5142. "schema": {
  5143. "type": "string"
  5144. },
  5145. "required": true
  5146. },
  5147. {
  5148. "name": "location",
  5149. "in": "query",
  5150. "schema": {
  5151. "anyOf": [
  5152. {
  5153. "type": "object",
  5154. "properties": {
  5155. "directory": {
  5156. "anyOf": [
  5157. {
  5158. "type": "string"
  5159. },
  5160. {
  5161. "type": "null"
  5162. }
  5163. ]
  5164. },
  5165. "workspace": {
  5166. "anyOf": [
  5167. {
  5168. "type": "string"
  5169. },
  5170. {
  5171. "type": "null"
  5172. }
  5173. ]
  5174. }
  5175. },
  5176. "additionalProperties": false
  5177. },
  5178. {
  5179. "type": "null"
  5180. }
  5181. ]
  5182. },
  5183. "required": false,
  5184. "style": "deepObject",
  5185. "explode": true
  5186. }
  5187. ],
  5188. "security": [],
  5189. "responses": {
  5190. "200": {
  5191. "description": "Success",
  5192. "content": {
  5193. "application/json": {
  5194. "schema": {
  5195. "type": "object",
  5196. "properties": {
  5197. "location": {
  5198. "$ref": "#/components/schemas/Location.Info"
  5199. },
  5200. "data": {
  5201. "$ref": "#/components/schemas/Integration.AttemptStatus"
  5202. }
  5203. },
  5204. "required": [
  5205. "location",
  5206. "data"
  5207. ],
  5208. "additionalProperties": false
  5209. }
  5210. }
  5211. }
  5212. },
  5213. "400": {
  5214. "description": "InvalidRequestError",
  5215. "content": {
  5216. "application/json": {
  5217. "schema": {
  5218. "$ref": "#/components/schemas/InvalidRequestError"
  5219. }
  5220. }
  5221. }
  5222. },
  5223. "401": {
  5224. "description": "UnauthorizedError",
  5225. "content": {
  5226. "application/json": {
  5227. "schema": {
  5228. "$ref": "#/components/schemas/UnauthorizedError"
  5229. }
  5230. }
  5231. }
  5232. }
  5233. },
  5234. "description": "Poll the current status of an OAuth attempt.",
  5235. "summary": "Get OAuth attempt status"
  5236. },
  5237. "delete": {
  5238. "tags": [
  5239. "integration"
  5240. ],
  5241. "operationId": "v2.integration.oauth.cancel",
  5242. "parameters": [
  5243. {
  5244. "name": "integrationID",
  5245. "in": "path",
  5246. "schema": {
  5247. "type": "string"
  5248. },
  5249. "required": true
  5250. },
  5251. {
  5252. "name": "attemptID",
  5253. "in": "path",
  5254. "schema": {
  5255. "type": "string"
  5256. },
  5257. "required": true
  5258. },
  5259. {
  5260. "name": "location",
  5261. "in": "query",
  5262. "schema": {
  5263. "anyOf": [
  5264. {
  5265. "type": "object",
  5266. "properties": {
  5267. "directory": {
  5268. "anyOf": [
  5269. {
  5270. "type": "string"
  5271. },
  5272. {
  5273. "type": "null"
  5274. }
  5275. ]
  5276. },
  5277. "workspace": {
  5278. "anyOf": [
  5279. {
  5280. "type": "string"
  5281. },
  5282. {
  5283. "type": "null"
  5284. }
  5285. ]
  5286. }
  5287. },
  5288. "additionalProperties": false
  5289. },
  5290. {
  5291. "type": "null"
  5292. }
  5293. ]
  5294. },
  5295. "required": false,
  5296. "style": "deepObject",
  5297. "explode": true
  5298. }
  5299. ],
  5300. "security": [],
  5301. "responses": {
  5302. "204": {
  5303. "description": "<No Content>"
  5304. },
  5305. "400": {
  5306. "description": "InvalidRequestError",
  5307. "content": {
  5308. "application/json": {
  5309. "schema": {
  5310. "$ref": "#/components/schemas/InvalidRequestError"
  5311. }
  5312. }
  5313. }
  5314. },
  5315. "401": {
  5316. "description": "UnauthorizedError",
  5317. "content": {
  5318. "application/json": {
  5319. "schema": {
  5320. "$ref": "#/components/schemas/UnauthorizedError"
  5321. }
  5322. }
  5323. }
  5324. }
  5325. },
  5326. "description": "Cancel an OAuth attempt and release its resources.",
  5327. "summary": "Cancel OAuth connection"
  5328. }
  5329. },
  5330. "/api/integration/{integrationID}/connect/oauth/{attemptID}/complete": {
  5331. "post": {
  5332. "tags": [
  5333. "integration"
  5334. ],
  5335. "operationId": "v2.integration.oauth.complete",
  5336. "parameters": [
  5337. {
  5338. "name": "integrationID",
  5339. "in": "path",
  5340. "schema": {
  5341. "type": "string"
  5342. },
  5343. "required": true
  5344. },
  5345. {
  5346. "name": "attemptID",
  5347. "in": "path",
  5348. "schema": {
  5349. "type": "string"
  5350. },
  5351. "required": true
  5352. },
  5353. {
  5354. "name": "location",
  5355. "in": "query",
  5356. "schema": {
  5357. "anyOf": [
  5358. {
  5359. "type": "object",
  5360. "properties": {
  5361. "directory": {
  5362. "anyOf": [
  5363. {
  5364. "type": "string"
  5365. },
  5366. {
  5367. "type": "null"
  5368. }
  5369. ]
  5370. },
  5371. "workspace": {
  5372. "anyOf": [
  5373. {
  5374. "type": "string"
  5375. },
  5376. {
  5377. "type": "null"
  5378. }
  5379. ]
  5380. }
  5381. },
  5382. "additionalProperties": false
  5383. },
  5384. {
  5385. "type": "null"
  5386. }
  5387. ]
  5388. },
  5389. "required": false,
  5390. "style": "deepObject",
  5391. "explode": true
  5392. }
  5393. ],
  5394. "security": [],
  5395. "responses": {
  5396. "204": {
  5397. "description": "<No Content>"
  5398. },
  5399. "400": {
  5400. "description": "InvalidRequestError",
  5401. "content": {
  5402. "application/json": {
  5403. "schema": {
  5404. "anyOf": [
  5405. {
  5406. "$ref": "#/components/schemas/InvalidRequestError1"
  5407. },
  5408. {
  5409. "$ref": "#/components/schemas/InvalidRequestError"
  5410. }
  5411. ]
  5412. }
  5413. }
  5414. }
  5415. },
  5416. "401": {
  5417. "description": "UnauthorizedError",
  5418. "content": {
  5419. "application/json": {
  5420. "schema": {
  5421. "$ref": "#/components/schemas/UnauthorizedError"
  5422. }
  5423. }
  5424. }
  5425. }
  5426. },
  5427. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  5428. "summary": "Complete OAuth connection",
  5429. "requestBody": {
  5430. "content": {
  5431. "application/json": {
  5432. "schema": {
  5433. "type": "object",
  5434. "properties": {
  5435. "code": {
  5436. "anyOf": [
  5437. {
  5438. "type": "string"
  5439. },
  5440. {
  5441. "type": "null"
  5442. }
  5443. ]
  5444. }
  5445. },
  5446. "additionalProperties": false
  5447. }
  5448. }
  5449. },
  5450. "required": true
  5451. }
  5452. }
  5453. },
  5454. "/api/integration/{integrationID}/connect/command": {
  5455. "post": {
  5456. "tags": [
  5457. "integration"
  5458. ],
  5459. "operationId": "v2.integration.command.connect",
  5460. "parameters": [
  5461. {
  5462. "name": "integrationID",
  5463. "in": "path",
  5464. "schema": {
  5465. "type": "string"
  5466. },
  5467. "required": true
  5468. },
  5469. {
  5470. "name": "location",
  5471. "in": "query",
  5472. "schema": {
  5473. "anyOf": [
  5474. {
  5475. "type": "object",
  5476. "properties": {
  5477. "directory": {
  5478. "anyOf": [
  5479. {
  5480. "type": "string"
  5481. },
  5482. {
  5483. "type": "null"
  5484. }
  5485. ]
  5486. },
  5487. "workspace": {
  5488. "anyOf": [
  5489. {
  5490. "type": "string"
  5491. },
  5492. {
  5493. "type": "null"
  5494. }
  5495. ]
  5496. }
  5497. },
  5498. "additionalProperties": false
  5499. },
  5500. {
  5501. "type": "null"
  5502. }
  5503. ]
  5504. },
  5505. "required": false,
  5506. "style": "deepObject",
  5507. "explode": true
  5508. }
  5509. ],
  5510. "security": [],
  5511. "responses": {
  5512. "200": {
  5513. "description": "Success",
  5514. "content": {
  5515. "application/json": {
  5516. "schema": {
  5517. "type": "object",
  5518. "properties": {
  5519. "location": {
  5520. "$ref": "#/components/schemas/Location.Info"
  5521. },
  5522. "data": {
  5523. "$ref": "#/components/schemas/Integration.CommandAttempt"
  5524. }
  5525. },
  5526. "required": [
  5527. "location",
  5528. "data"
  5529. ],
  5530. "additionalProperties": false
  5531. }
  5532. }
  5533. }
  5534. },
  5535. "400": {
  5536. "description": "InvalidRequestError",
  5537. "content": {
  5538. "application/json": {
  5539. "schema": {
  5540. "anyOf": [
  5541. {
  5542. "$ref": "#/components/schemas/InvalidRequestError1"
  5543. },
  5544. {
  5545. "$ref": "#/components/schemas/InvalidRequestError"
  5546. }
  5547. ]
  5548. }
  5549. }
  5550. }
  5551. },
  5552. "401": {
  5553. "description": "UnauthorizedError",
  5554. "content": {
  5555. "application/json": {
  5556. "schema": {
  5557. "$ref": "#/components/schemas/UnauthorizedError"
  5558. }
  5559. }
  5560. }
  5561. }
  5562. },
  5563. "description": "Start a command authentication attempt.",
  5564. "summary": "Begin command connection",
  5565. "requestBody": {
  5566. "content": {
  5567. "application/json": {
  5568. "schema": {
  5569. "type": "object",
  5570. "properties": {
  5571. "methodID": {
  5572. "type": "string"
  5573. },
  5574. "label": {
  5575. "anyOf": [
  5576. {
  5577. "type": "string"
  5578. },
  5579. {
  5580. "type": "null"
  5581. }
  5582. ]
  5583. }
  5584. },
  5585. "required": [
  5586. "methodID"
  5587. ],
  5588. "additionalProperties": false
  5589. }
  5590. }
  5591. },
  5592. "required": true
  5593. }
  5594. }
  5595. },
  5596. "/api/integration/{integrationID}/connect/command/{attemptID}": {
  5597. "get": {
  5598. "tags": [
  5599. "integration"
  5600. ],
  5601. "operationId": "v2.integration.command.status",
  5602. "parameters": [
  5603. {
  5604. "name": "integrationID",
  5605. "in": "path",
  5606. "schema": {
  5607. "type": "string"
  5608. },
  5609. "required": true
  5610. },
  5611. {
  5612. "name": "attemptID",
  5613. "in": "path",
  5614. "schema": {
  5615. "type": "string"
  5616. },
  5617. "required": true
  5618. },
  5619. {
  5620. "name": "location",
  5621. "in": "query",
  5622. "schema": {
  5623. "anyOf": [
  5624. {
  5625. "type": "object",
  5626. "properties": {
  5627. "directory": {
  5628. "anyOf": [
  5629. {
  5630. "type": "string"
  5631. },
  5632. {
  5633. "type": "null"
  5634. }
  5635. ]
  5636. },
  5637. "workspace": {
  5638. "anyOf": [
  5639. {
  5640. "type": "string"
  5641. },
  5642. {
  5643. "type": "null"
  5644. }
  5645. ]
  5646. }
  5647. },
  5648. "additionalProperties": false
  5649. },
  5650. {
  5651. "type": "null"
  5652. }
  5653. ]
  5654. },
  5655. "required": false,
  5656. "style": "deepObject",
  5657. "explode": true
  5658. }
  5659. ],
  5660. "security": [],
  5661. "responses": {
  5662. "200": {
  5663. "description": "Success",
  5664. "content": {
  5665. "application/json": {
  5666. "schema": {
  5667. "type": "object",
  5668. "properties": {
  5669. "location": {
  5670. "$ref": "#/components/schemas/Location.Info"
  5671. },
  5672. "data": {
  5673. "$ref": "#/components/schemas/Integration.CommandAttemptStatus"
  5674. }
  5675. },
  5676. "required": [
  5677. "location",
  5678. "data"
  5679. ],
  5680. "additionalProperties": false
  5681. }
  5682. }
  5683. }
  5684. },
  5685. "400": {
  5686. "description": "InvalidRequestError",
  5687. "content": {
  5688. "application/json": {
  5689. "schema": {
  5690. "$ref": "#/components/schemas/InvalidRequestError"
  5691. }
  5692. }
  5693. }
  5694. },
  5695. "401": {
  5696. "description": "UnauthorizedError",
  5697. "content": {
  5698. "application/json": {
  5699. "schema": {
  5700. "$ref": "#/components/schemas/UnauthorizedError"
  5701. }
  5702. }
  5703. }
  5704. }
  5705. },
  5706. "description": "Poll the current status and output of a command authentication attempt.",
  5707. "summary": "Get command attempt status"
  5708. },
  5709. "delete": {
  5710. "tags": [
  5711. "integration"
  5712. ],
  5713. "operationId": "v2.integration.command.cancel",
  5714. "parameters": [
  5715. {
  5716. "name": "integrationID",
  5717. "in": "path",
  5718. "schema": {
  5719. "type": "string"
  5720. },
  5721. "required": true
  5722. },
  5723. {
  5724. "name": "attemptID",
  5725. "in": "path",
  5726. "schema": {
  5727. "type": "string"
  5728. },
  5729. "required": true
  5730. },
  5731. {
  5732. "name": "location",
  5733. "in": "query",
  5734. "schema": {
  5735. "anyOf": [
  5736. {
  5737. "type": "object",
  5738. "properties": {
  5739. "directory": {
  5740. "anyOf": [
  5741. {
  5742. "type": "string"
  5743. },
  5744. {
  5745. "type": "null"
  5746. }
  5747. ]
  5748. },
  5749. "workspace": {
  5750. "anyOf": [
  5751. {
  5752. "type": "string"
  5753. },
  5754. {
  5755. "type": "null"
  5756. }
  5757. ]
  5758. }
  5759. },
  5760. "additionalProperties": false
  5761. },
  5762. {
  5763. "type": "null"
  5764. }
  5765. ]
  5766. },
  5767. "required": false,
  5768. "style": "deepObject",
  5769. "explode": true
  5770. }
  5771. ],
  5772. "security": [],
  5773. "responses": {
  5774. "204": {
  5775. "description": "<No Content>"
  5776. },
  5777. "400": {
  5778. "description": "InvalidRequestError",
  5779. "content": {
  5780. "application/json": {
  5781. "schema": {
  5782. "$ref": "#/components/schemas/InvalidRequestError"
  5783. }
  5784. }
  5785. }
  5786. },
  5787. "401": {
  5788. "description": "UnauthorizedError",
  5789. "content": {
  5790. "application/json": {
  5791. "schema": {
  5792. "$ref": "#/components/schemas/UnauthorizedError"
  5793. }
  5794. }
  5795. }
  5796. }
  5797. },
  5798. "description": "Cancel a command authentication attempt and terminate its process.",
  5799. "summary": "Cancel command connection"
  5800. }
  5801. },
  5802. "/api/mcp": {
  5803. "get": {
  5804. "tags": [
  5805. "mcp"
  5806. ],
  5807. "operationId": "v2.mcp.list",
  5808. "parameters": [
  5809. {
  5810. "name": "location",
  5811. "in": "query",
  5812. "schema": {
  5813. "anyOf": [
  5814. {
  5815. "type": "object",
  5816. "properties": {
  5817. "directory": {
  5818. "anyOf": [
  5819. {
  5820. "type": "string"
  5821. },
  5822. {
  5823. "type": "null"
  5824. }
  5825. ]
  5826. },
  5827. "workspace": {
  5828. "anyOf": [
  5829. {
  5830. "type": "string"
  5831. },
  5832. {
  5833. "type": "null"
  5834. }
  5835. ]
  5836. }
  5837. },
  5838. "additionalProperties": false
  5839. },
  5840. {
  5841. "type": "null"
  5842. }
  5843. ]
  5844. },
  5845. "required": false,
  5846. "style": "deepObject",
  5847. "explode": true
  5848. }
  5849. ],
  5850. "security": [],
  5851. "responses": {
  5852. "200": {
  5853. "description": "Success",
  5854. "content": {
  5855. "application/json": {
  5856. "schema": {
  5857. "type": "object",
  5858. "properties": {
  5859. "location": {
  5860. "$ref": "#/components/schemas/Location.Info"
  5861. },
  5862. "data": {
  5863. "type": "array",
  5864. "items": {
  5865. "$ref": "#/components/schemas/Mcp.Server"
  5866. }
  5867. }
  5868. },
  5869. "required": [
  5870. "location",
  5871. "data"
  5872. ],
  5873. "additionalProperties": false
  5874. }
  5875. }
  5876. }
  5877. },
  5878. "400": {
  5879. "description": "InvalidRequestError",
  5880. "content": {
  5881. "application/json": {
  5882. "schema": {
  5883. "$ref": "#/components/schemas/InvalidRequestError"
  5884. }
  5885. }
  5886. }
  5887. },
  5888. "401": {
  5889. "description": "UnauthorizedError",
  5890. "content": {
  5891. "application/json": {
  5892. "schema": {
  5893. "$ref": "#/components/schemas/UnauthorizedError"
  5894. }
  5895. }
  5896. }
  5897. }
  5898. },
  5899. "description": "Retrieve configured MCP servers and their connection status.",
  5900. "summary": "List MCP servers"
  5901. }
  5902. },
  5903. "/api/mcp/{server}": {
  5904. "put": {
  5905. "tags": [
  5906. "mcp"
  5907. ],
  5908. "operationId": "v2.mcp.add",
  5909. "parameters": [
  5910. {
  5911. "name": "server",
  5912. "in": "path",
  5913. "schema": {
  5914. "type": "string"
  5915. },
  5916. "required": true
  5917. },
  5918. {
  5919. "name": "location",
  5920. "in": "query",
  5921. "schema": {
  5922. "anyOf": [
  5923. {
  5924. "type": "object",
  5925. "properties": {
  5926. "directory": {
  5927. "anyOf": [
  5928. {
  5929. "type": "string"
  5930. },
  5931. {
  5932. "type": "null"
  5933. }
  5934. ]
  5935. },
  5936. "workspace": {
  5937. "anyOf": [
  5938. {
  5939. "type": "string"
  5940. },
  5941. {
  5942. "type": "null"
  5943. }
  5944. ]
  5945. }
  5946. },
  5947. "additionalProperties": false
  5948. },
  5949. {
  5950. "type": "null"
  5951. }
  5952. ]
  5953. },
  5954. "required": false,
  5955. "style": "deepObject",
  5956. "explode": true
  5957. }
  5958. ],
  5959. "security": [],
  5960. "responses": {
  5961. "204": {
  5962. "description": "<No Content>"
  5963. },
  5964. "400": {
  5965. "description": "InvalidRequestError",
  5966. "content": {
  5967. "application/json": {
  5968. "schema": {
  5969. "$ref": "#/components/schemas/InvalidRequestError"
  5970. }
  5971. }
  5972. }
  5973. },
  5974. "401": {
  5975. "description": "UnauthorizedError",
  5976. "content": {
  5977. "application/json": {
  5978. "schema": {
  5979. "$ref": "#/components/schemas/UnauthorizedError"
  5980. }
  5981. }
  5982. }
  5983. }
  5984. },
  5985. "description": "Add an MCP server at runtime or replace an existing one, connecting it immediately.",
  5986. "summary": "Add MCP server",
  5987. "requestBody": {
  5988. "content": {
  5989. "application/json": {
  5990. "schema": {
  5991. "type": "object",
  5992. "properties": {
  5993. "config": {
  5994. "anyOf": [
  5995. {
  5996. "$ref": "#/components/schemas/Mcp.LocalConfig"
  5997. },
  5998. {
  5999. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  6000. }
  6001. ]
  6002. }
  6003. },
  6004. "required": [
  6005. "config"
  6006. ],
  6007. "additionalProperties": false
  6008. }
  6009. }
  6010. },
  6011. "required": true
  6012. }
  6013. },
  6014. "delete": {
  6015. "tags": [
  6016. "mcp"
  6017. ],
  6018. "operationId": "v2.mcp.remove",
  6019. "parameters": [
  6020. {
  6021. "name": "server",
  6022. "in": "path",
  6023. "schema": {
  6024. "type": "string"
  6025. },
  6026. "required": true
  6027. },
  6028. {
  6029. "name": "location",
  6030. "in": "query",
  6031. "schema": {
  6032. "anyOf": [
  6033. {
  6034. "type": "object",
  6035. "properties": {
  6036. "directory": {
  6037. "anyOf": [
  6038. {
  6039. "type": "string"
  6040. },
  6041. {
  6042. "type": "null"
  6043. }
  6044. ]
  6045. },
  6046. "workspace": {
  6047. "anyOf": [
  6048. {
  6049. "type": "string"
  6050. },
  6051. {
  6052. "type": "null"
  6053. }
  6054. ]
  6055. }
  6056. },
  6057. "additionalProperties": false
  6058. },
  6059. {
  6060. "type": "null"
  6061. }
  6062. ]
  6063. },
  6064. "required": false,
  6065. "style": "deepObject",
  6066. "explode": true
  6067. }
  6068. ],
  6069. "security": [],
  6070. "responses": {
  6071. "204": {
  6072. "description": "<No Content>"
  6073. },
  6074. "400": {
  6075. "description": "InvalidRequestError",
  6076. "content": {
  6077. "application/json": {
  6078. "schema": {
  6079. "$ref": "#/components/schemas/InvalidRequestError"
  6080. }
  6081. }
  6082. }
  6083. },
  6084. "401": {
  6085. "description": "UnauthorizedError",
  6086. "content": {
  6087. "application/json": {
  6088. "schema": {
  6089. "$ref": "#/components/schemas/UnauthorizedError"
  6090. }
  6091. }
  6092. }
  6093. },
  6094. "404": {
  6095. "description": "McpServerNotFoundError",
  6096. "content": {
  6097. "application/json": {
  6098. "schema": {
  6099. "$ref": "#/components/schemas/McpServerNotFoundError"
  6100. }
  6101. }
  6102. }
  6103. }
  6104. },
  6105. "description": "Stop an MCP server and remove it from the runtime set until restart.",
  6106. "summary": "Remove MCP server"
  6107. }
  6108. },
  6109. "/api/mcp/{server}/connect": {
  6110. "post": {
  6111. "tags": [
  6112. "mcp"
  6113. ],
  6114. "operationId": "v2.mcp.connect",
  6115. "parameters": [
  6116. {
  6117. "name": "server",
  6118. "in": "path",
  6119. "schema": {
  6120. "type": "string"
  6121. },
  6122. "required": true
  6123. },
  6124. {
  6125. "name": "location",
  6126. "in": "query",
  6127. "schema": {
  6128. "anyOf": [
  6129. {
  6130. "type": "object",
  6131. "properties": {
  6132. "directory": {
  6133. "anyOf": [
  6134. {
  6135. "type": "string"
  6136. },
  6137. {
  6138. "type": "null"
  6139. }
  6140. ]
  6141. },
  6142. "workspace": {
  6143. "anyOf": [
  6144. {
  6145. "type": "string"
  6146. },
  6147. {
  6148. "type": "null"
  6149. }
  6150. ]
  6151. }
  6152. },
  6153. "additionalProperties": false
  6154. },
  6155. {
  6156. "type": "null"
  6157. }
  6158. ]
  6159. },
  6160. "required": false,
  6161. "style": "deepObject",
  6162. "explode": true
  6163. }
  6164. ],
  6165. "security": [],
  6166. "responses": {
  6167. "204": {
  6168. "description": "<No Content>"
  6169. },
  6170. "400": {
  6171. "description": "InvalidRequestError",
  6172. "content": {
  6173. "application/json": {
  6174. "schema": {
  6175. "$ref": "#/components/schemas/InvalidRequestError"
  6176. }
  6177. }
  6178. }
  6179. },
  6180. "401": {
  6181. "description": "UnauthorizedError",
  6182. "content": {
  6183. "application/json": {
  6184. "schema": {
  6185. "$ref": "#/components/schemas/UnauthorizedError"
  6186. }
  6187. }
  6188. }
  6189. },
  6190. "404": {
  6191. "description": "McpServerNotFoundError",
  6192. "content": {
  6193. "application/json": {
  6194. "schema": {
  6195. "$ref": "#/components/schemas/McpServerNotFoundError"
  6196. }
  6197. }
  6198. }
  6199. }
  6200. },
  6201. "description": "Connect an MCP server at runtime, overriding a disabled configuration until restart.",
  6202. "summary": "Connect MCP server"
  6203. }
  6204. },
  6205. "/api/mcp/{server}/disconnect": {
  6206. "post": {
  6207. "tags": [
  6208. "mcp"
  6209. ],
  6210. "operationId": "v2.mcp.disconnect",
  6211. "parameters": [
  6212. {
  6213. "name": "server",
  6214. "in": "path",
  6215. "schema": {
  6216. "type": "string"
  6217. },
  6218. "required": true
  6219. },
  6220. {
  6221. "name": "location",
  6222. "in": "query",
  6223. "schema": {
  6224. "anyOf": [
  6225. {
  6226. "type": "object",
  6227. "properties": {
  6228. "directory": {
  6229. "anyOf": [
  6230. {
  6231. "type": "string"
  6232. },
  6233. {
  6234. "type": "null"
  6235. }
  6236. ]
  6237. },
  6238. "workspace": {
  6239. "anyOf": [
  6240. {
  6241. "type": "string"
  6242. },
  6243. {
  6244. "type": "null"
  6245. }
  6246. ]
  6247. }
  6248. },
  6249. "additionalProperties": false
  6250. },
  6251. {
  6252. "type": "null"
  6253. }
  6254. ]
  6255. },
  6256. "required": false,
  6257. "style": "deepObject",
  6258. "explode": true
  6259. }
  6260. ],
  6261. "security": [],
  6262. "responses": {
  6263. "204": {
  6264. "description": "<No Content>"
  6265. },
  6266. "400": {
  6267. "description": "InvalidRequestError",
  6268. "content": {
  6269. "application/json": {
  6270. "schema": {
  6271. "$ref": "#/components/schemas/InvalidRequestError"
  6272. }
  6273. }
  6274. }
  6275. },
  6276. "401": {
  6277. "description": "UnauthorizedError",
  6278. "content": {
  6279. "application/json": {
  6280. "schema": {
  6281. "$ref": "#/components/schemas/UnauthorizedError"
  6282. }
  6283. }
  6284. }
  6285. },
  6286. "404": {
  6287. "description": "McpServerNotFoundError",
  6288. "content": {
  6289. "application/json": {
  6290. "schema": {
  6291. "$ref": "#/components/schemas/McpServerNotFoundError"
  6292. }
  6293. }
  6294. }
  6295. }
  6296. },
  6297. "description": "Disconnect an MCP server at runtime, removing its tools until reconnected.",
  6298. "summary": "Disconnect MCP server"
  6299. }
  6300. },
  6301. "/api/mcp/resource": {
  6302. "get": {
  6303. "tags": [
  6304. "mcp"
  6305. ],
  6306. "operationId": "v2.mcp.resource.catalog",
  6307. "parameters": [
  6308. {
  6309. "name": "location",
  6310. "in": "query",
  6311. "schema": {
  6312. "anyOf": [
  6313. {
  6314. "type": "object",
  6315. "properties": {
  6316. "directory": {
  6317. "anyOf": [
  6318. {
  6319. "type": "string"
  6320. },
  6321. {
  6322. "type": "null"
  6323. }
  6324. ]
  6325. },
  6326. "workspace": {
  6327. "anyOf": [
  6328. {
  6329. "type": "string"
  6330. },
  6331. {
  6332. "type": "null"
  6333. }
  6334. ]
  6335. }
  6336. },
  6337. "additionalProperties": false
  6338. },
  6339. {
  6340. "type": "null"
  6341. }
  6342. ]
  6343. },
  6344. "required": false,
  6345. "style": "deepObject",
  6346. "explode": true
  6347. }
  6348. ],
  6349. "security": [],
  6350. "responses": {
  6351. "200": {
  6352. "description": "Success",
  6353. "content": {
  6354. "application/json": {
  6355. "schema": {
  6356. "type": "object",
  6357. "properties": {
  6358. "location": {
  6359. "$ref": "#/components/schemas/Location.Info"
  6360. },
  6361. "data": {
  6362. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  6363. }
  6364. },
  6365. "required": [
  6366. "location",
  6367. "data"
  6368. ],
  6369. "additionalProperties": false
  6370. }
  6371. }
  6372. }
  6373. },
  6374. "400": {
  6375. "description": "InvalidRequestError",
  6376. "content": {
  6377. "application/json": {
  6378. "schema": {
  6379. "$ref": "#/components/schemas/InvalidRequestError"
  6380. }
  6381. }
  6382. }
  6383. },
  6384. "401": {
  6385. "description": "UnauthorizedError",
  6386. "content": {
  6387. "application/json": {
  6388. "schema": {
  6389. "$ref": "#/components/schemas/UnauthorizedError"
  6390. }
  6391. }
  6392. }
  6393. }
  6394. },
  6395. "description": "Retrieve resources and resource templates from connected MCP servers.",
  6396. "summary": "List MCP resources"
  6397. }
  6398. },
  6399. "/api/credential/{credentialID}": {
  6400. "patch": {
  6401. "tags": [
  6402. "credential"
  6403. ],
  6404. "operationId": "v2.credential.update",
  6405. "parameters": [
  6406. {
  6407. "name": "credentialID",
  6408. "in": "path",
  6409. "schema": {
  6410. "type": "string"
  6411. },
  6412. "required": true
  6413. },
  6414. {
  6415. "name": "location",
  6416. "in": "query",
  6417. "schema": {
  6418. "anyOf": [
  6419. {
  6420. "type": "object",
  6421. "properties": {
  6422. "directory": {
  6423. "anyOf": [
  6424. {
  6425. "type": "string"
  6426. },
  6427. {
  6428. "type": "null"
  6429. }
  6430. ]
  6431. },
  6432. "workspace": {
  6433. "anyOf": [
  6434. {
  6435. "type": "string"
  6436. },
  6437. {
  6438. "type": "null"
  6439. }
  6440. ]
  6441. }
  6442. },
  6443. "additionalProperties": false
  6444. },
  6445. {
  6446. "type": "null"
  6447. }
  6448. ]
  6449. },
  6450. "required": false,
  6451. "style": "deepObject",
  6452. "explode": true
  6453. }
  6454. ],
  6455. "security": [],
  6456. "responses": {
  6457. "204": {
  6458. "description": "<No Content>"
  6459. },
  6460. "400": {
  6461. "description": "InvalidRequestError",
  6462. "content": {
  6463. "application/json": {
  6464. "schema": {
  6465. "$ref": "#/components/schemas/InvalidRequestError"
  6466. }
  6467. }
  6468. }
  6469. },
  6470. "401": {
  6471. "description": "UnauthorizedError",
  6472. "content": {
  6473. "application/json": {
  6474. "schema": {
  6475. "$ref": "#/components/schemas/UnauthorizedError"
  6476. }
  6477. }
  6478. }
  6479. }
  6480. },
  6481. "description": "Update a stored credential label.",
  6482. "summary": "Update credential",
  6483. "requestBody": {
  6484. "content": {
  6485. "application/json": {
  6486. "schema": {
  6487. "type": "object",
  6488. "properties": {
  6489. "label": {
  6490. "type": "string"
  6491. }
  6492. },
  6493. "required": [
  6494. "label"
  6495. ],
  6496. "additionalProperties": false
  6497. }
  6498. }
  6499. },
  6500. "required": true
  6501. }
  6502. },
  6503. "delete": {
  6504. "tags": [
  6505. "credential"
  6506. ],
  6507. "operationId": "v2.credential.remove",
  6508. "parameters": [
  6509. {
  6510. "name": "credentialID",
  6511. "in": "path",
  6512. "schema": {
  6513. "type": "string"
  6514. },
  6515. "required": true
  6516. },
  6517. {
  6518. "name": "location",
  6519. "in": "query",
  6520. "schema": {
  6521. "anyOf": [
  6522. {
  6523. "type": "object",
  6524. "properties": {
  6525. "directory": {
  6526. "anyOf": [
  6527. {
  6528. "type": "string"
  6529. },
  6530. {
  6531. "type": "null"
  6532. }
  6533. ]
  6534. },
  6535. "workspace": {
  6536. "anyOf": [
  6537. {
  6538. "type": "string"
  6539. },
  6540. {
  6541. "type": "null"
  6542. }
  6543. ]
  6544. }
  6545. },
  6546. "additionalProperties": false
  6547. },
  6548. {
  6549. "type": "null"
  6550. }
  6551. ]
  6552. },
  6553. "required": false,
  6554. "style": "deepObject",
  6555. "explode": true
  6556. }
  6557. ],
  6558. "security": [],
  6559. "responses": {
  6560. "204": {
  6561. "description": "<No Content>"
  6562. },
  6563. "400": {
  6564. "description": "InvalidRequestError",
  6565. "content": {
  6566. "application/json": {
  6567. "schema": {
  6568. "$ref": "#/components/schemas/InvalidRequestError"
  6569. }
  6570. }
  6571. }
  6572. },
  6573. "401": {
  6574. "description": "UnauthorizedError",
  6575. "content": {
  6576. "application/json": {
  6577. "schema": {
  6578. "$ref": "#/components/schemas/UnauthorizedError"
  6579. }
  6580. }
  6581. }
  6582. }
  6583. },
  6584. "description": "Remove a stored integration credential.",
  6585. "summary": "Remove credential"
  6586. }
  6587. },
  6588. "/api/project": {
  6589. "get": {
  6590. "tags": [
  6591. "project"
  6592. ],
  6593. "operationId": "v2.project.list",
  6594. "parameters": [],
  6595. "security": [],
  6596. "responses": {
  6597. "200": {
  6598. "description": "Success",
  6599. "content": {
  6600. "application/json": {
  6601. "schema": {
  6602. "type": "array",
  6603. "items": {
  6604. "$ref": "#/components/schemas/Project"
  6605. }
  6606. }
  6607. }
  6608. }
  6609. },
  6610. "400": {
  6611. "description": "InvalidRequestError",
  6612. "content": {
  6613. "application/json": {
  6614. "schema": {
  6615. "$ref": "#/components/schemas/InvalidRequestError"
  6616. }
  6617. }
  6618. }
  6619. },
  6620. "401": {
  6621. "description": "UnauthorizedError",
  6622. "content": {
  6623. "application/json": {
  6624. "schema": {
  6625. "$ref": "#/components/schemas/UnauthorizedError"
  6626. }
  6627. }
  6628. }
  6629. }
  6630. },
  6631. "description": "List known projects.",
  6632. "summary": "List projects"
  6633. }
  6634. },
  6635. "/api/project/current": {
  6636. "get": {
  6637. "tags": [
  6638. "project"
  6639. ],
  6640. "operationId": "v2.project.current",
  6641. "parameters": [
  6642. {
  6643. "name": "location",
  6644. "in": "query",
  6645. "schema": {
  6646. "anyOf": [
  6647. {
  6648. "type": "object",
  6649. "properties": {
  6650. "directory": {
  6651. "anyOf": [
  6652. {
  6653. "type": "string"
  6654. },
  6655. {
  6656. "type": "null"
  6657. }
  6658. ]
  6659. },
  6660. "workspace": {
  6661. "anyOf": [
  6662. {
  6663. "type": "string"
  6664. },
  6665. {
  6666. "type": "null"
  6667. }
  6668. ]
  6669. }
  6670. },
  6671. "additionalProperties": false
  6672. },
  6673. {
  6674. "type": "null"
  6675. }
  6676. ]
  6677. },
  6678. "required": false,
  6679. "style": "deepObject",
  6680. "explode": true
  6681. }
  6682. ],
  6683. "security": [],
  6684. "responses": {
  6685. "200": {
  6686. "description": "Project.Current",
  6687. "content": {
  6688. "application/json": {
  6689. "schema": {
  6690. "$ref": "#/components/schemas/Project.Current"
  6691. }
  6692. }
  6693. }
  6694. },
  6695. "400": {
  6696. "description": "InvalidRequestError",
  6697. "content": {
  6698. "application/json": {
  6699. "schema": {
  6700. "$ref": "#/components/schemas/InvalidRequestError"
  6701. }
  6702. }
  6703. }
  6704. },
  6705. "401": {
  6706. "description": "UnauthorizedError",
  6707. "content": {
  6708. "application/json": {
  6709. "schema": {
  6710. "$ref": "#/components/schemas/UnauthorizedError"
  6711. }
  6712. }
  6713. }
  6714. }
  6715. },
  6716. "description": "Resolve the project for the requested location.",
  6717. "summary": "Get current project"
  6718. }
  6719. },
  6720. "/api/project/{projectID}/directories": {
  6721. "get": {
  6722. "tags": [
  6723. "project"
  6724. ],
  6725. "operationId": "v2.project.directories",
  6726. "parameters": [
  6727. {
  6728. "name": "projectID",
  6729. "in": "path",
  6730. "schema": {
  6731. "type": "string"
  6732. },
  6733. "required": true
  6734. },
  6735. {
  6736. "name": "location",
  6737. "in": "query",
  6738. "schema": {
  6739. "anyOf": [
  6740. {
  6741. "type": "object",
  6742. "properties": {
  6743. "directory": {
  6744. "anyOf": [
  6745. {
  6746. "type": "string"
  6747. },
  6748. {
  6749. "type": "null"
  6750. }
  6751. ]
  6752. },
  6753. "workspace": {
  6754. "anyOf": [
  6755. {
  6756. "type": "string"
  6757. },
  6758. {
  6759. "type": "null"
  6760. }
  6761. ]
  6762. }
  6763. },
  6764. "additionalProperties": false
  6765. },
  6766. {
  6767. "type": "null"
  6768. }
  6769. ]
  6770. },
  6771. "required": false,
  6772. "style": "deepObject",
  6773. "explode": true
  6774. }
  6775. ],
  6776. "security": [],
  6777. "responses": {
  6778. "200": {
  6779. "description": "Project.Directories",
  6780. "content": {
  6781. "application/json": {
  6782. "schema": {
  6783. "$ref": "#/components/schemas/Project.Directories"
  6784. }
  6785. }
  6786. }
  6787. },
  6788. "400": {
  6789. "description": "InvalidRequestError",
  6790. "content": {
  6791. "application/json": {
  6792. "schema": {
  6793. "$ref": "#/components/schemas/InvalidRequestError"
  6794. }
  6795. }
  6796. }
  6797. },
  6798. "401": {
  6799. "description": "UnauthorizedError",
  6800. "content": {
  6801. "application/json": {
  6802. "schema": {
  6803. "$ref": "#/components/schemas/UnauthorizedError"
  6804. }
  6805. }
  6806. }
  6807. }
  6808. },
  6809. "description": "List known local absolute directories for a project.",
  6810. "summary": "List project directories"
  6811. }
  6812. },
  6813. "/api/form/request": {
  6814. "get": {
  6815. "tags": [
  6816. "form"
  6817. ],
  6818. "operationId": "v2.form.request.list",
  6819. "parameters": [
  6820. {
  6821. "name": "location",
  6822. "in": "query",
  6823. "schema": {
  6824. "anyOf": [
  6825. {
  6826. "type": "object",
  6827. "properties": {
  6828. "directory": {
  6829. "anyOf": [
  6830. {
  6831. "type": "string"
  6832. },
  6833. {
  6834. "type": "null"
  6835. }
  6836. ]
  6837. },
  6838. "workspace": {
  6839. "anyOf": [
  6840. {
  6841. "type": "string"
  6842. },
  6843. {
  6844. "type": "null"
  6845. }
  6846. ]
  6847. }
  6848. },
  6849. "additionalProperties": false
  6850. },
  6851. {
  6852. "type": "null"
  6853. }
  6854. ]
  6855. },
  6856. "required": false,
  6857. "style": "deepObject",
  6858. "explode": true
  6859. }
  6860. ],
  6861. "security": [],
  6862. "responses": {
  6863. "200": {
  6864. "description": "Success",
  6865. "content": {
  6866. "application/json": {
  6867. "schema": {
  6868. "type": "object",
  6869. "properties": {
  6870. "location": {
  6871. "$ref": "#/components/schemas/Location.Info"
  6872. },
  6873. "data": {
  6874. "type": "array",
  6875. "items": {
  6876. "$ref": "#/components/schemas/Form.Info"
  6877. }
  6878. }
  6879. },
  6880. "required": [
  6881. "location",
  6882. "data"
  6883. ],
  6884. "additionalProperties": false
  6885. }
  6886. }
  6887. }
  6888. },
  6889. "400": {
  6890. "description": "InvalidRequestError",
  6891. "content": {
  6892. "application/json": {
  6893. "schema": {
  6894. "$ref": "#/components/schemas/InvalidRequestError"
  6895. }
  6896. }
  6897. }
  6898. },
  6899. "401": {
  6900. "description": "UnauthorizedError",
  6901. "content": {
  6902. "application/json": {
  6903. "schema": {
  6904. "$ref": "#/components/schemas/UnauthorizedError"
  6905. }
  6906. }
  6907. }
  6908. }
  6909. },
  6910. "description": "Retrieve pending forms for a location.",
  6911. "summary": "List pending form requests"
  6912. }
  6913. },
  6914. "/api/session/{sessionID}/form": {
  6915. "get": {
  6916. "tags": [
  6917. "form"
  6918. ],
  6919. "operationId": "v2.session.form.list",
  6920. "parameters": [
  6921. {
  6922. "name": "sessionID",
  6923. "in": "path",
  6924. "schema": {
  6925. "type": "string"
  6926. },
  6927. "required": true
  6928. }
  6929. ],
  6930. "security": [],
  6931. "responses": {
  6932. "200": {
  6933. "description": "Success",
  6934. "content": {
  6935. "application/json": {
  6936. "schema": {
  6937. "type": "object",
  6938. "properties": {
  6939. "data": {
  6940. "type": "array",
  6941. "items": {
  6942. "$ref": "#/components/schemas/Form.Info"
  6943. }
  6944. }
  6945. },
  6946. "required": [
  6947. "data"
  6948. ],
  6949. "additionalProperties": false
  6950. }
  6951. }
  6952. }
  6953. },
  6954. "400": {
  6955. "description": "InvalidRequestError",
  6956. "content": {
  6957. "application/json": {
  6958. "schema": {
  6959. "$ref": "#/components/schemas/InvalidRequestError"
  6960. }
  6961. }
  6962. }
  6963. },
  6964. "401": {
  6965. "description": "UnauthorizedError",
  6966. "content": {
  6967. "application/json": {
  6968. "schema": {
  6969. "$ref": "#/components/schemas/UnauthorizedError"
  6970. }
  6971. }
  6972. }
  6973. },
  6974. "404": {
  6975. "description": "SessionNotFoundError",
  6976. "content": {
  6977. "application/json": {
  6978. "schema": {
  6979. "anyOf": [
  6980. {
  6981. "$ref": "#/components/schemas/SessionNotFoundError"
  6982. },
  6983. {
  6984. "$ref": "#/components/schemas/SessionNotFoundError"
  6985. }
  6986. ]
  6987. }
  6988. }
  6989. }
  6990. }
  6991. },
  6992. "description": "Retrieve pending forms for a session.",
  6993. "summary": "List session forms"
  6994. },
  6995. "post": {
  6996. "tags": [
  6997. "form"
  6998. ],
  6999. "operationId": "v2.session.form.create",
  7000. "parameters": [
  7001. {
  7002. "name": "sessionID",
  7003. "in": "path",
  7004. "schema": {
  7005. "type": "string"
  7006. },
  7007. "required": true
  7008. }
  7009. ],
  7010. "security": [],
  7011. "responses": {
  7012. "200": {
  7013. "description": "Success",
  7014. "content": {
  7015. "application/json": {
  7016. "schema": {
  7017. "type": "object",
  7018. "properties": {
  7019. "data": {
  7020. "$ref": "#/components/schemas/Form.Info"
  7021. }
  7022. },
  7023. "required": [
  7024. "data"
  7025. ],
  7026. "additionalProperties": false
  7027. }
  7028. }
  7029. }
  7030. },
  7031. "400": {
  7032. "description": "InvalidRequestError",
  7033. "content": {
  7034. "application/json": {
  7035. "schema": {
  7036. "anyOf": [
  7037. {
  7038. "$ref": "#/components/schemas/InvalidRequestError1"
  7039. },
  7040. {
  7041. "$ref": "#/components/schemas/InvalidRequestError"
  7042. }
  7043. ]
  7044. }
  7045. }
  7046. }
  7047. },
  7048. "401": {
  7049. "description": "UnauthorizedError",
  7050. "content": {
  7051. "application/json": {
  7052. "schema": {
  7053. "$ref": "#/components/schemas/UnauthorizedError"
  7054. }
  7055. }
  7056. }
  7057. },
  7058. "404": {
  7059. "description": "SessionNotFoundError",
  7060. "content": {
  7061. "application/json": {
  7062. "schema": {
  7063. "anyOf": [
  7064. {
  7065. "$ref": "#/components/schemas/SessionNotFoundError"
  7066. },
  7067. {
  7068. "$ref": "#/components/schemas/SessionNotFoundError"
  7069. }
  7070. ]
  7071. }
  7072. }
  7073. }
  7074. },
  7075. "409": {
  7076. "description": "ConflictError",
  7077. "content": {
  7078. "application/json": {
  7079. "schema": {
  7080. "$ref": "#/components/schemas/ConflictError"
  7081. }
  7082. }
  7083. }
  7084. }
  7085. },
  7086. "description": "Create a form for a session.",
  7087. "summary": "Create session form",
  7088. "requestBody": {
  7089. "content": {
  7090. "application/json": {
  7091. "schema": {
  7092. "$ref": "#/components/schemas/Form.CreatePayload"
  7093. }
  7094. }
  7095. },
  7096. "required": true
  7097. }
  7098. }
  7099. },
  7100. "/api/session/{sessionID}/form/{formID}": {
  7101. "get": {
  7102. "tags": [
  7103. "form"
  7104. ],
  7105. "operationId": "v2.session.form.get",
  7106. "parameters": [
  7107. {
  7108. "name": "sessionID",
  7109. "in": "path",
  7110. "schema": {
  7111. "type": "string"
  7112. },
  7113. "required": true
  7114. },
  7115. {
  7116. "name": "formID",
  7117. "in": "path",
  7118. "schema": {
  7119. "type": "string",
  7120. "allOf": [
  7121. {
  7122. "pattern": "^frm_"
  7123. }
  7124. ]
  7125. },
  7126. "required": true
  7127. }
  7128. ],
  7129. "security": [],
  7130. "responses": {
  7131. "200": {
  7132. "description": "Success",
  7133. "content": {
  7134. "application/json": {
  7135. "schema": {
  7136. "type": "object",
  7137. "properties": {
  7138. "data": {
  7139. "$ref": "#/components/schemas/Form.Info"
  7140. }
  7141. },
  7142. "required": [
  7143. "data"
  7144. ],
  7145. "additionalProperties": false
  7146. }
  7147. }
  7148. }
  7149. },
  7150. "400": {
  7151. "description": "InvalidRequestError",
  7152. "content": {
  7153. "application/json": {
  7154. "schema": {
  7155. "$ref": "#/components/schemas/InvalidRequestError"
  7156. }
  7157. }
  7158. }
  7159. },
  7160. "401": {
  7161. "description": "UnauthorizedError",
  7162. "content": {
  7163. "application/json": {
  7164. "schema": {
  7165. "$ref": "#/components/schemas/UnauthorizedError"
  7166. }
  7167. }
  7168. }
  7169. },
  7170. "404": {
  7171. "description": "SessionNotFoundError | FormNotFoundError",
  7172. "content": {
  7173. "application/json": {
  7174. "schema": {
  7175. "anyOf": [
  7176. {
  7177. "$ref": "#/components/schemas/FormNotFoundError"
  7178. },
  7179. {
  7180. "$ref": "#/components/schemas/SessionNotFoundError"
  7181. },
  7182. {
  7183. "$ref": "#/components/schemas/SessionNotFoundError"
  7184. }
  7185. ]
  7186. }
  7187. }
  7188. }
  7189. }
  7190. },
  7191. "description": "Retrieve a form for a session.",
  7192. "summary": "Get session form"
  7193. }
  7194. },
  7195. "/api/session/{sessionID}/form/{formID}/state": {
  7196. "get": {
  7197. "tags": [
  7198. "form"
  7199. ],
  7200. "operationId": "v2.session.form.state",
  7201. "parameters": [
  7202. {
  7203. "name": "sessionID",
  7204. "in": "path",
  7205. "schema": {
  7206. "type": "string"
  7207. },
  7208. "required": true
  7209. },
  7210. {
  7211. "name": "formID",
  7212. "in": "path",
  7213. "schema": {
  7214. "type": "string",
  7215. "allOf": [
  7216. {
  7217. "pattern": "^frm_"
  7218. }
  7219. ]
  7220. },
  7221. "required": true
  7222. }
  7223. ],
  7224. "security": [],
  7225. "responses": {
  7226. "200": {
  7227. "description": "Success",
  7228. "content": {
  7229. "application/json": {
  7230. "schema": {
  7231. "type": "object",
  7232. "properties": {
  7233. "data": {
  7234. "$ref": "#/components/schemas/Form.State"
  7235. }
  7236. },
  7237. "required": [
  7238. "data"
  7239. ],
  7240. "additionalProperties": false
  7241. }
  7242. }
  7243. }
  7244. },
  7245. "400": {
  7246. "description": "InvalidRequestError",
  7247. "content": {
  7248. "application/json": {
  7249. "schema": {
  7250. "$ref": "#/components/schemas/InvalidRequestError"
  7251. }
  7252. }
  7253. }
  7254. },
  7255. "401": {
  7256. "description": "UnauthorizedError",
  7257. "content": {
  7258. "application/json": {
  7259. "schema": {
  7260. "$ref": "#/components/schemas/UnauthorizedError"
  7261. }
  7262. }
  7263. }
  7264. },
  7265. "404": {
  7266. "description": "SessionNotFoundError | FormNotFoundError",
  7267. "content": {
  7268. "application/json": {
  7269. "schema": {
  7270. "anyOf": [
  7271. {
  7272. "$ref": "#/components/schemas/FormNotFoundError"
  7273. },
  7274. {
  7275. "$ref": "#/components/schemas/SessionNotFoundError"
  7276. },
  7277. {
  7278. "$ref": "#/components/schemas/SessionNotFoundError"
  7279. }
  7280. ]
  7281. }
  7282. }
  7283. }
  7284. }
  7285. },
  7286. "description": "Retrieve the current state for a form.",
  7287. "summary": "Get form state"
  7288. }
  7289. },
  7290. "/api/session/{sessionID}/form/{formID}/reply": {
  7291. "post": {
  7292. "tags": [
  7293. "form"
  7294. ],
  7295. "operationId": "v2.session.form.reply",
  7296. "parameters": [
  7297. {
  7298. "name": "sessionID",
  7299. "in": "path",
  7300. "schema": {
  7301. "type": "string"
  7302. },
  7303. "required": true
  7304. },
  7305. {
  7306. "name": "formID",
  7307. "in": "path",
  7308. "schema": {
  7309. "type": "string",
  7310. "allOf": [
  7311. {
  7312. "pattern": "^frm_"
  7313. }
  7314. ]
  7315. },
  7316. "required": true
  7317. }
  7318. ],
  7319. "security": [],
  7320. "responses": {
  7321. "204": {
  7322. "description": "<No Content>"
  7323. },
  7324. "400": {
  7325. "description": "FormInvalidAnswerError | InvalidRequestError",
  7326. "content": {
  7327. "application/json": {
  7328. "schema": {
  7329. "anyOf": [
  7330. {
  7331. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7332. },
  7333. {
  7334. "$ref": "#/components/schemas/InvalidRequestError"
  7335. }
  7336. ]
  7337. }
  7338. }
  7339. }
  7340. },
  7341. "401": {
  7342. "description": "UnauthorizedError",
  7343. "content": {
  7344. "application/json": {
  7345. "schema": {
  7346. "$ref": "#/components/schemas/UnauthorizedError"
  7347. }
  7348. }
  7349. }
  7350. },
  7351. "404": {
  7352. "description": "SessionNotFoundError | FormNotFoundError",
  7353. "content": {
  7354. "application/json": {
  7355. "schema": {
  7356. "anyOf": [
  7357. {
  7358. "$ref": "#/components/schemas/FormNotFoundError"
  7359. },
  7360. {
  7361. "$ref": "#/components/schemas/SessionNotFoundError"
  7362. },
  7363. {
  7364. "$ref": "#/components/schemas/SessionNotFoundError"
  7365. }
  7366. ]
  7367. }
  7368. }
  7369. }
  7370. },
  7371. "409": {
  7372. "description": "FormAlreadySettledError",
  7373. "content": {
  7374. "application/json": {
  7375. "schema": {
  7376. "$ref": "#/components/schemas/FormAlreadySettledError"
  7377. }
  7378. }
  7379. }
  7380. }
  7381. },
  7382. "description": "Submit an answer to a pending form.",
  7383. "summary": "Reply to form",
  7384. "requestBody": {
  7385. "content": {
  7386. "application/json": {
  7387. "schema": {
  7388. "$ref": "#/components/schemas/Form.Reply"
  7389. }
  7390. }
  7391. },
  7392. "required": true
  7393. }
  7394. }
  7395. },
  7396. "/api/session/{sessionID}/form/{formID}/cancel": {
  7397. "post": {
  7398. "tags": [
  7399. "form"
  7400. ],
  7401. "operationId": "v2.session.form.cancel",
  7402. "parameters": [
  7403. {
  7404. "name": "sessionID",
  7405. "in": "path",
  7406. "schema": {
  7407. "type": "string"
  7408. },
  7409. "required": true
  7410. },
  7411. {
  7412. "name": "formID",
  7413. "in": "path",
  7414. "schema": {
  7415. "type": "string",
  7416. "allOf": [
  7417. {
  7418. "pattern": "^frm_"
  7419. }
  7420. ]
  7421. },
  7422. "required": true
  7423. }
  7424. ],
  7425. "security": [],
  7426. "responses": {
  7427. "204": {
  7428. "description": "<No Content>"
  7429. },
  7430. "400": {
  7431. "description": "InvalidRequestError",
  7432. "content": {
  7433. "application/json": {
  7434. "schema": {
  7435. "$ref": "#/components/schemas/InvalidRequestError"
  7436. }
  7437. }
  7438. }
  7439. },
  7440. "401": {
  7441. "description": "UnauthorizedError",
  7442. "content": {
  7443. "application/json": {
  7444. "schema": {
  7445. "$ref": "#/components/schemas/UnauthorizedError"
  7446. }
  7447. }
  7448. }
  7449. },
  7450. "404": {
  7451. "description": "SessionNotFoundError | FormNotFoundError",
  7452. "content": {
  7453. "application/json": {
  7454. "schema": {
  7455. "anyOf": [
  7456. {
  7457. "$ref": "#/components/schemas/FormNotFoundError"
  7458. },
  7459. {
  7460. "$ref": "#/components/schemas/SessionNotFoundError"
  7461. },
  7462. {
  7463. "$ref": "#/components/schemas/SessionNotFoundError"
  7464. }
  7465. ]
  7466. }
  7467. }
  7468. }
  7469. },
  7470. "409": {
  7471. "description": "FormAlreadySettledError",
  7472. "content": {
  7473. "application/json": {
  7474. "schema": {
  7475. "$ref": "#/components/schemas/FormAlreadySettledError"
  7476. }
  7477. }
  7478. }
  7479. }
  7480. },
  7481. "description": "Cancel a pending form.",
  7482. "summary": "Cancel form"
  7483. }
  7484. },
  7485. "/api/permission/request": {
  7486. "get": {
  7487. "tags": [
  7488. "permission"
  7489. ],
  7490. "operationId": "v2.permission.request.list",
  7491. "parameters": [
  7492. {
  7493. "name": "location",
  7494. "in": "query",
  7495. "schema": {
  7496. "anyOf": [
  7497. {
  7498. "type": "object",
  7499. "properties": {
  7500. "directory": {
  7501. "anyOf": [
  7502. {
  7503. "type": "string"
  7504. },
  7505. {
  7506. "type": "null"
  7507. }
  7508. ]
  7509. },
  7510. "workspace": {
  7511. "anyOf": [
  7512. {
  7513. "type": "string"
  7514. },
  7515. {
  7516. "type": "null"
  7517. }
  7518. ]
  7519. }
  7520. },
  7521. "additionalProperties": false
  7522. },
  7523. {
  7524. "type": "null"
  7525. }
  7526. ]
  7527. },
  7528. "required": false,
  7529. "style": "deepObject",
  7530. "explode": true
  7531. }
  7532. ],
  7533. "security": [],
  7534. "responses": {
  7535. "200": {
  7536. "description": "Success",
  7537. "content": {
  7538. "application/json": {
  7539. "schema": {
  7540. "type": "object",
  7541. "properties": {
  7542. "location": {
  7543. "$ref": "#/components/schemas/Location.Info"
  7544. },
  7545. "data": {
  7546. "type": "array",
  7547. "items": {
  7548. "$ref": "#/components/schemas/Permission.Request"
  7549. }
  7550. }
  7551. },
  7552. "required": [
  7553. "location",
  7554. "data"
  7555. ],
  7556. "additionalProperties": false
  7557. }
  7558. }
  7559. }
  7560. },
  7561. "400": {
  7562. "description": "InvalidRequestError",
  7563. "content": {
  7564. "application/json": {
  7565. "schema": {
  7566. "$ref": "#/components/schemas/InvalidRequestError"
  7567. }
  7568. }
  7569. }
  7570. },
  7571. "401": {
  7572. "description": "UnauthorizedError",
  7573. "content": {
  7574. "application/json": {
  7575. "schema": {
  7576. "$ref": "#/components/schemas/UnauthorizedError"
  7577. }
  7578. }
  7579. }
  7580. }
  7581. },
  7582. "description": "Retrieve pending permission requests for a location.",
  7583. "summary": "List pending permission requests"
  7584. }
  7585. },
  7586. "/api/permission/saved": {
  7587. "get": {
  7588. "tags": [
  7589. "permission"
  7590. ],
  7591. "operationId": "v2.permission.saved.list",
  7592. "parameters": [
  7593. {
  7594. "name": "projectID",
  7595. "in": "query",
  7596. "schema": {
  7597. "anyOf": [
  7598. {
  7599. "type": "string"
  7600. },
  7601. {
  7602. "type": "null"
  7603. }
  7604. ]
  7605. },
  7606. "required": false
  7607. }
  7608. ],
  7609. "security": [],
  7610. "responses": {
  7611. "200": {
  7612. "description": "Success",
  7613. "content": {
  7614. "application/json": {
  7615. "schema": {
  7616. "type": "object",
  7617. "properties": {
  7618. "data": {
  7619. "type": "array",
  7620. "items": {
  7621. "$ref": "#/components/schemas/PermissionSaved.Info"
  7622. }
  7623. }
  7624. },
  7625. "required": [
  7626. "data"
  7627. ],
  7628. "additionalProperties": false
  7629. }
  7630. }
  7631. }
  7632. },
  7633. "400": {
  7634. "description": "InvalidRequestError",
  7635. "content": {
  7636. "application/json": {
  7637. "schema": {
  7638. "$ref": "#/components/schemas/InvalidRequestError"
  7639. }
  7640. }
  7641. }
  7642. },
  7643. "401": {
  7644. "description": "UnauthorizedError",
  7645. "content": {
  7646. "application/json": {
  7647. "schema": {
  7648. "$ref": "#/components/schemas/UnauthorizedError"
  7649. }
  7650. }
  7651. }
  7652. }
  7653. },
  7654. "description": "Retrieve saved permissions, optionally filtered by project.",
  7655. "summary": "List saved permissions"
  7656. }
  7657. },
  7658. "/api/permission/saved/{id}": {
  7659. "delete": {
  7660. "tags": [
  7661. "permission"
  7662. ],
  7663. "operationId": "v2.permission.saved.remove",
  7664. "parameters": [
  7665. {
  7666. "name": "id",
  7667. "in": "path",
  7668. "schema": {
  7669. "type": "string"
  7670. },
  7671. "required": true
  7672. }
  7673. ],
  7674. "security": [],
  7675. "responses": {
  7676. "204": {
  7677. "description": "<No Content>"
  7678. },
  7679. "400": {
  7680. "description": "InvalidRequestError",
  7681. "content": {
  7682. "application/json": {
  7683. "schema": {
  7684. "$ref": "#/components/schemas/InvalidRequestError"
  7685. }
  7686. }
  7687. }
  7688. },
  7689. "401": {
  7690. "description": "UnauthorizedError",
  7691. "content": {
  7692. "application/json": {
  7693. "schema": {
  7694. "$ref": "#/components/schemas/UnauthorizedError"
  7695. }
  7696. }
  7697. }
  7698. }
  7699. },
  7700. "description": "Remove a saved permission by ID.",
  7701. "summary": "Remove saved permission"
  7702. }
  7703. },
  7704. "/api/session/{sessionID}/permission": {
  7705. "post": {
  7706. "tags": [
  7707. "permission"
  7708. ],
  7709. "operationId": "v2.session.permission.create",
  7710. "parameters": [
  7711. {
  7712. "name": "sessionID",
  7713. "in": "path",
  7714. "schema": {
  7715. "type": "string",
  7716. "allOf": [
  7717. {
  7718. "pattern": "^ses"
  7719. }
  7720. ]
  7721. },
  7722. "required": true
  7723. }
  7724. ],
  7725. "security": [],
  7726. "responses": {
  7727. "200": {
  7728. "description": "Success",
  7729. "content": {
  7730. "application/json": {
  7731. "schema": {
  7732. "type": "object",
  7733. "properties": {
  7734. "data": {
  7735. "type": "object",
  7736. "properties": {
  7737. "id": {
  7738. "type": "string",
  7739. "allOf": [
  7740. {
  7741. "pattern": "^per"
  7742. }
  7743. ]
  7744. },
  7745. "effect": {
  7746. "$ref": "#/components/schemas/Permission.Effect"
  7747. }
  7748. },
  7749. "required": [
  7750. "id",
  7751. "effect"
  7752. ],
  7753. "additionalProperties": false
  7754. }
  7755. },
  7756. "required": [
  7757. "data"
  7758. ],
  7759. "additionalProperties": false
  7760. }
  7761. }
  7762. }
  7763. },
  7764. "400": {
  7765. "description": "InvalidRequestError",
  7766. "content": {
  7767. "application/json": {
  7768. "schema": {
  7769. "$ref": "#/components/schemas/InvalidRequestError"
  7770. }
  7771. }
  7772. }
  7773. },
  7774. "401": {
  7775. "description": "UnauthorizedError",
  7776. "content": {
  7777. "application/json": {
  7778. "schema": {
  7779. "$ref": "#/components/schemas/UnauthorizedError"
  7780. }
  7781. }
  7782. }
  7783. },
  7784. "404": {
  7785. "description": "SessionNotFoundError",
  7786. "content": {
  7787. "application/json": {
  7788. "schema": {
  7789. "anyOf": [
  7790. {
  7791. "$ref": "#/components/schemas/SessionNotFoundError"
  7792. },
  7793. {
  7794. "$ref": "#/components/schemas/SessionNotFoundError"
  7795. }
  7796. ]
  7797. }
  7798. }
  7799. }
  7800. }
  7801. },
  7802. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7803. "summary": "Create permission request",
  7804. "requestBody": {
  7805. "content": {
  7806. "application/json": {
  7807. "schema": {
  7808. "type": "object",
  7809. "properties": {
  7810. "id": {
  7811. "anyOf": [
  7812. {
  7813. "type": "string",
  7814. "allOf": [
  7815. {
  7816. "pattern": "^per"
  7817. }
  7818. ]
  7819. },
  7820. {
  7821. "type": "null"
  7822. }
  7823. ]
  7824. },
  7825. "action": {
  7826. "type": "string"
  7827. },
  7828. "resources": {
  7829. "type": "array",
  7830. "items": {
  7831. "type": "string"
  7832. }
  7833. },
  7834. "save": {
  7835. "type": "array",
  7836. "items": {
  7837. "type": "string"
  7838. }
  7839. },
  7840. "metadata": {
  7841. "type": "object"
  7842. },
  7843. "source": {
  7844. "$ref": "#/components/schemas/Permission.Source"
  7845. },
  7846. "agent": {
  7847. "anyOf": [
  7848. {
  7849. "type": "string"
  7850. },
  7851. {
  7852. "type": "null"
  7853. }
  7854. ]
  7855. }
  7856. },
  7857. "required": [
  7858. "action",
  7859. "resources"
  7860. ],
  7861. "additionalProperties": false
  7862. }
  7863. }
  7864. },
  7865. "required": true
  7866. }
  7867. },
  7868. "get": {
  7869. "tags": [
  7870. "permission"
  7871. ],
  7872. "operationId": "v2.session.permission.list",
  7873. "parameters": [
  7874. {
  7875. "name": "sessionID",
  7876. "in": "path",
  7877. "schema": {
  7878. "type": "string",
  7879. "allOf": [
  7880. {
  7881. "pattern": "^ses"
  7882. }
  7883. ]
  7884. },
  7885. "required": true
  7886. }
  7887. ],
  7888. "security": [],
  7889. "responses": {
  7890. "200": {
  7891. "description": "Success",
  7892. "content": {
  7893. "application/json": {
  7894. "schema": {
  7895. "type": "object",
  7896. "properties": {
  7897. "data": {
  7898. "type": "array",
  7899. "items": {
  7900. "$ref": "#/components/schemas/Permission.Request"
  7901. }
  7902. }
  7903. },
  7904. "required": [
  7905. "data"
  7906. ],
  7907. "additionalProperties": false
  7908. }
  7909. }
  7910. }
  7911. },
  7912. "400": {
  7913. "description": "InvalidRequestError",
  7914. "content": {
  7915. "application/json": {
  7916. "schema": {
  7917. "$ref": "#/components/schemas/InvalidRequestError"
  7918. }
  7919. }
  7920. }
  7921. },
  7922. "401": {
  7923. "description": "UnauthorizedError",
  7924. "content": {
  7925. "application/json": {
  7926. "schema": {
  7927. "$ref": "#/components/schemas/UnauthorizedError"
  7928. }
  7929. }
  7930. }
  7931. },
  7932. "404": {
  7933. "description": "SessionNotFoundError",
  7934. "content": {
  7935. "application/json": {
  7936. "schema": {
  7937. "anyOf": [
  7938. {
  7939. "$ref": "#/components/schemas/SessionNotFoundError"
  7940. },
  7941. {
  7942. "$ref": "#/components/schemas/SessionNotFoundError"
  7943. }
  7944. ]
  7945. }
  7946. }
  7947. }
  7948. }
  7949. },
  7950. "description": "Retrieve pending permission requests owned by a session.",
  7951. "summary": "List session permission requests"
  7952. }
  7953. },
  7954. "/api/session/{sessionID}/permission/{requestID}": {
  7955. "get": {
  7956. "tags": [
  7957. "permission"
  7958. ],
  7959. "operationId": "v2.session.permission.get",
  7960. "parameters": [
  7961. {
  7962. "name": "sessionID",
  7963. "in": "path",
  7964. "schema": {
  7965. "type": "string",
  7966. "allOf": [
  7967. {
  7968. "pattern": "^ses"
  7969. }
  7970. ]
  7971. },
  7972. "required": true
  7973. },
  7974. {
  7975. "name": "requestID",
  7976. "in": "path",
  7977. "schema": {
  7978. "type": "string",
  7979. "allOf": [
  7980. {
  7981. "pattern": "^per"
  7982. }
  7983. ]
  7984. },
  7985. "required": true
  7986. }
  7987. ],
  7988. "security": [],
  7989. "responses": {
  7990. "200": {
  7991. "description": "Success",
  7992. "content": {
  7993. "application/json": {
  7994. "schema": {
  7995. "type": "object",
  7996. "properties": {
  7997. "data": {
  7998. "$ref": "#/components/schemas/Permission.Request"
  7999. }
  8000. },
  8001. "required": [
  8002. "data"
  8003. ],
  8004. "additionalProperties": false
  8005. }
  8006. }
  8007. }
  8008. },
  8009. "400": {
  8010. "description": "InvalidRequestError",
  8011. "content": {
  8012. "application/json": {
  8013. "schema": {
  8014. "$ref": "#/components/schemas/InvalidRequestError"
  8015. }
  8016. }
  8017. }
  8018. },
  8019. "401": {
  8020. "description": "UnauthorizedError",
  8021. "content": {
  8022. "application/json": {
  8023. "schema": {
  8024. "$ref": "#/components/schemas/UnauthorizedError"
  8025. }
  8026. }
  8027. }
  8028. },
  8029. "404": {
  8030. "description": "SessionNotFoundError | PermissionNotFoundError",
  8031. "content": {
  8032. "application/json": {
  8033. "schema": {
  8034. "anyOf": [
  8035. {
  8036. "$ref": "#/components/schemas/PermissionNotFoundError"
  8037. },
  8038. {
  8039. "$ref": "#/components/schemas/SessionNotFoundError"
  8040. },
  8041. {
  8042. "$ref": "#/components/schemas/SessionNotFoundError"
  8043. }
  8044. ]
  8045. }
  8046. }
  8047. }
  8048. }
  8049. },
  8050. "description": "Retrieve a pending permission request owned by a session.",
  8051. "summary": "Get permission request"
  8052. }
  8053. },
  8054. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8055. "post": {
  8056. "tags": [
  8057. "permission"
  8058. ],
  8059. "operationId": "v2.session.permission.reply",
  8060. "parameters": [
  8061. {
  8062. "name": "sessionID",
  8063. "in": "path",
  8064. "schema": {
  8065. "type": "string",
  8066. "allOf": [
  8067. {
  8068. "pattern": "^ses"
  8069. }
  8070. ]
  8071. },
  8072. "required": true
  8073. },
  8074. {
  8075. "name": "requestID",
  8076. "in": "path",
  8077. "schema": {
  8078. "type": "string",
  8079. "allOf": [
  8080. {
  8081. "pattern": "^per"
  8082. }
  8083. ]
  8084. },
  8085. "required": true
  8086. }
  8087. ],
  8088. "security": [],
  8089. "responses": {
  8090. "204": {
  8091. "description": "<No Content>"
  8092. },
  8093. "400": {
  8094. "description": "InvalidRequestError",
  8095. "content": {
  8096. "application/json": {
  8097. "schema": {
  8098. "$ref": "#/components/schemas/InvalidRequestError"
  8099. }
  8100. }
  8101. }
  8102. },
  8103. "401": {
  8104. "description": "UnauthorizedError",
  8105. "content": {
  8106. "application/json": {
  8107. "schema": {
  8108. "$ref": "#/components/schemas/UnauthorizedError"
  8109. }
  8110. }
  8111. }
  8112. },
  8113. "404": {
  8114. "description": "SessionNotFoundError | PermissionNotFoundError",
  8115. "content": {
  8116. "application/json": {
  8117. "schema": {
  8118. "anyOf": [
  8119. {
  8120. "$ref": "#/components/schemas/PermissionNotFoundError"
  8121. },
  8122. {
  8123. "$ref": "#/components/schemas/SessionNotFoundError"
  8124. },
  8125. {
  8126. "$ref": "#/components/schemas/SessionNotFoundError"
  8127. }
  8128. ]
  8129. }
  8130. }
  8131. }
  8132. }
  8133. },
  8134. "description": "Respond to a pending permission request owned by a session.",
  8135. "summary": "Reply to pending permission request",
  8136. "requestBody": {
  8137. "content": {
  8138. "application/json": {
  8139. "schema": {
  8140. "type": "object",
  8141. "properties": {
  8142. "reply": {
  8143. "$ref": "#/components/schemas/Permission.Reply"
  8144. },
  8145. "message": {
  8146. "anyOf": [
  8147. {
  8148. "type": "string"
  8149. },
  8150. {
  8151. "type": "null"
  8152. }
  8153. ]
  8154. }
  8155. },
  8156. "required": [
  8157. "reply"
  8158. ],
  8159. "additionalProperties": false
  8160. }
  8161. }
  8162. },
  8163. "required": true
  8164. }
  8165. }
  8166. },
  8167. "/api/fs/read/*": {
  8168. "get": {
  8169. "tags": [
  8170. "filesystem"
  8171. ],
  8172. "operationId": "v2.fs.read",
  8173. "parameters": [
  8174. {
  8175. "name": "location",
  8176. "in": "query",
  8177. "schema": {
  8178. "anyOf": [
  8179. {
  8180. "type": "object",
  8181. "properties": {
  8182. "directory": {
  8183. "anyOf": [
  8184. {
  8185. "type": "string"
  8186. },
  8187. {
  8188. "type": "null"
  8189. }
  8190. ]
  8191. },
  8192. "workspace": {
  8193. "anyOf": [
  8194. {
  8195. "type": "string"
  8196. },
  8197. {
  8198. "type": "null"
  8199. }
  8200. ]
  8201. }
  8202. },
  8203. "additionalProperties": false
  8204. },
  8205. {
  8206. "type": "null"
  8207. }
  8208. ]
  8209. },
  8210. "required": false,
  8211. "style": "deepObject",
  8212. "explode": true
  8213. }
  8214. ],
  8215. "security": [],
  8216. "responses": {
  8217. "200": {
  8218. "description": "Success",
  8219. "content": {
  8220. "application/octet-stream": {
  8221. "schema": {
  8222. "type": "string",
  8223. "format": "binary"
  8224. }
  8225. }
  8226. }
  8227. },
  8228. "400": {
  8229. "description": "InvalidRequestError",
  8230. "content": {
  8231. "application/json": {
  8232. "schema": {
  8233. "$ref": "#/components/schemas/InvalidRequestError"
  8234. }
  8235. }
  8236. }
  8237. },
  8238. "401": {
  8239. "description": "UnauthorizedError",
  8240. "content": {
  8241. "application/json": {
  8242. "schema": {
  8243. "$ref": "#/components/schemas/UnauthorizedError"
  8244. }
  8245. }
  8246. }
  8247. }
  8248. },
  8249. "description": "Serve one file relative to the requested location.",
  8250. "summary": "Read file"
  8251. }
  8252. },
  8253. "/api/fs/list": {
  8254. "get": {
  8255. "tags": [
  8256. "filesystem"
  8257. ],
  8258. "operationId": "v2.fs.list",
  8259. "parameters": [
  8260. {
  8261. "name": "location",
  8262. "in": "query",
  8263. "schema": {
  8264. "anyOf": [
  8265. {
  8266. "type": "object",
  8267. "properties": {
  8268. "directory": {
  8269. "anyOf": [
  8270. {
  8271. "type": "string"
  8272. },
  8273. {
  8274. "type": "null"
  8275. }
  8276. ]
  8277. },
  8278. "workspace": {
  8279. "anyOf": [
  8280. {
  8281. "type": "string"
  8282. },
  8283. {
  8284. "type": "null"
  8285. }
  8286. ]
  8287. }
  8288. },
  8289. "additionalProperties": false
  8290. },
  8291. {
  8292. "type": "null"
  8293. }
  8294. ]
  8295. },
  8296. "required": false,
  8297. "style": "deepObject",
  8298. "explode": true
  8299. },
  8300. {
  8301. "name": "path",
  8302. "in": "query",
  8303. "schema": {
  8304. "anyOf": [
  8305. {
  8306. "type": "string"
  8307. },
  8308. {
  8309. "type": "null"
  8310. }
  8311. ]
  8312. },
  8313. "required": false
  8314. }
  8315. ],
  8316. "security": [],
  8317. "responses": {
  8318. "200": {
  8319. "description": "Success",
  8320. "content": {
  8321. "application/json": {
  8322. "schema": {
  8323. "type": "object",
  8324. "properties": {
  8325. "location": {
  8326. "$ref": "#/components/schemas/Location.Info"
  8327. },
  8328. "data": {
  8329. "type": "array",
  8330. "items": {
  8331. "$ref": "#/components/schemas/FileSystem.Entry"
  8332. }
  8333. }
  8334. },
  8335. "required": [
  8336. "location",
  8337. "data"
  8338. ],
  8339. "additionalProperties": false
  8340. }
  8341. }
  8342. }
  8343. },
  8344. "400": {
  8345. "description": "InvalidRequestError",
  8346. "content": {
  8347. "application/json": {
  8348. "schema": {
  8349. "$ref": "#/components/schemas/InvalidRequestError"
  8350. }
  8351. }
  8352. }
  8353. },
  8354. "401": {
  8355. "description": "UnauthorizedError",
  8356. "content": {
  8357. "application/json": {
  8358. "schema": {
  8359. "$ref": "#/components/schemas/UnauthorizedError"
  8360. }
  8361. }
  8362. }
  8363. }
  8364. },
  8365. "description": "List direct children of one directory relative to the requested location.",
  8366. "summary": "List directory"
  8367. }
  8368. },
  8369. "/api/fs/find": {
  8370. "get": {
  8371. "tags": [
  8372. "filesystem"
  8373. ],
  8374. "operationId": "v2.fs.find",
  8375. "parameters": [
  8376. {
  8377. "name": "location",
  8378. "in": "query",
  8379. "schema": {
  8380. "anyOf": [
  8381. {
  8382. "type": "object",
  8383. "properties": {
  8384. "directory": {
  8385. "anyOf": [
  8386. {
  8387. "type": "string"
  8388. },
  8389. {
  8390. "type": "null"
  8391. }
  8392. ]
  8393. },
  8394. "workspace": {
  8395. "anyOf": [
  8396. {
  8397. "type": "string"
  8398. },
  8399. {
  8400. "type": "null"
  8401. }
  8402. ]
  8403. }
  8404. },
  8405. "additionalProperties": false
  8406. },
  8407. {
  8408. "type": "null"
  8409. }
  8410. ]
  8411. },
  8412. "required": false,
  8413. "style": "deepObject",
  8414. "explode": true
  8415. },
  8416. {
  8417. "name": "query",
  8418. "in": "query",
  8419. "schema": {
  8420. "type": "string"
  8421. },
  8422. "required": true
  8423. },
  8424. {
  8425. "name": "type",
  8426. "in": "query",
  8427. "schema": {
  8428. "type": "string",
  8429. "enum": [
  8430. "file",
  8431. "directory"
  8432. ]
  8433. },
  8434. "required": false
  8435. },
  8436. {
  8437. "name": "limit",
  8438. "in": "query",
  8439. "schema": {
  8440. "anyOf": [
  8441. {
  8442. "type": "string"
  8443. },
  8444. {
  8445. "type": "null"
  8446. }
  8447. ]
  8448. },
  8449. "required": false
  8450. }
  8451. ],
  8452. "security": [],
  8453. "responses": {
  8454. "200": {
  8455. "description": "Success",
  8456. "content": {
  8457. "application/json": {
  8458. "schema": {
  8459. "type": "object",
  8460. "properties": {
  8461. "location": {
  8462. "$ref": "#/components/schemas/Location.Info"
  8463. },
  8464. "data": {
  8465. "type": "array",
  8466. "items": {
  8467. "$ref": "#/components/schemas/FileSystem.Entry"
  8468. }
  8469. }
  8470. },
  8471. "required": [
  8472. "location",
  8473. "data"
  8474. ],
  8475. "additionalProperties": false
  8476. }
  8477. }
  8478. }
  8479. },
  8480. "400": {
  8481. "description": "InvalidRequestError",
  8482. "content": {
  8483. "application/json": {
  8484. "schema": {
  8485. "$ref": "#/components/schemas/InvalidRequestError"
  8486. }
  8487. }
  8488. }
  8489. },
  8490. "401": {
  8491. "description": "UnauthorizedError",
  8492. "content": {
  8493. "application/json": {
  8494. "schema": {
  8495. "$ref": "#/components/schemas/UnauthorizedError"
  8496. }
  8497. }
  8498. }
  8499. }
  8500. },
  8501. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8502. "summary": "Find files"
  8503. }
  8504. },
  8505. "/api/command": {
  8506. "get": {
  8507. "tags": [
  8508. "command"
  8509. ],
  8510. "operationId": "v2.command.list",
  8511. "parameters": [
  8512. {
  8513. "name": "location",
  8514. "in": "query",
  8515. "schema": {
  8516. "anyOf": [
  8517. {
  8518. "type": "object",
  8519. "properties": {
  8520. "directory": {
  8521. "anyOf": [
  8522. {
  8523. "type": "string"
  8524. },
  8525. {
  8526. "type": "null"
  8527. }
  8528. ]
  8529. },
  8530. "workspace": {
  8531. "anyOf": [
  8532. {
  8533. "type": "string"
  8534. },
  8535. {
  8536. "type": "null"
  8537. }
  8538. ]
  8539. }
  8540. },
  8541. "additionalProperties": false
  8542. },
  8543. {
  8544. "type": "null"
  8545. }
  8546. ]
  8547. },
  8548. "required": false,
  8549. "style": "deepObject",
  8550. "explode": true
  8551. }
  8552. ],
  8553. "security": [],
  8554. "responses": {
  8555. "200": {
  8556. "description": "Success",
  8557. "content": {
  8558. "application/json": {
  8559. "schema": {
  8560. "type": "object",
  8561. "properties": {
  8562. "location": {
  8563. "$ref": "#/components/schemas/Location.Info"
  8564. },
  8565. "data": {
  8566. "type": "array",
  8567. "items": {
  8568. "$ref": "#/components/schemas/Command.Info"
  8569. }
  8570. }
  8571. },
  8572. "required": [
  8573. "location",
  8574. "data"
  8575. ],
  8576. "additionalProperties": false
  8577. }
  8578. }
  8579. }
  8580. },
  8581. "400": {
  8582. "description": "InvalidRequestError",
  8583. "content": {
  8584. "application/json": {
  8585. "schema": {
  8586. "$ref": "#/components/schemas/InvalidRequestError"
  8587. }
  8588. }
  8589. }
  8590. },
  8591. "401": {
  8592. "description": "UnauthorizedError",
  8593. "content": {
  8594. "application/json": {
  8595. "schema": {
  8596. "$ref": "#/components/schemas/UnauthorizedError"
  8597. }
  8598. }
  8599. }
  8600. }
  8601. },
  8602. "description": "Retrieve currently registered commands.",
  8603. "summary": "List commands"
  8604. }
  8605. },
  8606. "/api/skill": {
  8607. "get": {
  8608. "tags": [
  8609. "skill"
  8610. ],
  8611. "operationId": "v2.skill.list",
  8612. "parameters": [
  8613. {
  8614. "name": "location",
  8615. "in": "query",
  8616. "schema": {
  8617. "anyOf": [
  8618. {
  8619. "type": "object",
  8620. "properties": {
  8621. "directory": {
  8622. "anyOf": [
  8623. {
  8624. "type": "string"
  8625. },
  8626. {
  8627. "type": "null"
  8628. }
  8629. ]
  8630. },
  8631. "workspace": {
  8632. "anyOf": [
  8633. {
  8634. "type": "string"
  8635. },
  8636. {
  8637. "type": "null"
  8638. }
  8639. ]
  8640. }
  8641. },
  8642. "additionalProperties": false
  8643. },
  8644. {
  8645. "type": "null"
  8646. }
  8647. ]
  8648. },
  8649. "required": false,
  8650. "style": "deepObject",
  8651. "explode": true
  8652. }
  8653. ],
  8654. "security": [],
  8655. "responses": {
  8656. "200": {
  8657. "description": "Success",
  8658. "content": {
  8659. "application/json": {
  8660. "schema": {
  8661. "type": "object",
  8662. "properties": {
  8663. "location": {
  8664. "$ref": "#/components/schemas/Location.Info"
  8665. },
  8666. "data": {
  8667. "type": "array",
  8668. "items": {
  8669. "$ref": "#/components/schemas/Skill.Info"
  8670. }
  8671. }
  8672. },
  8673. "required": [
  8674. "location",
  8675. "data"
  8676. ],
  8677. "additionalProperties": false
  8678. }
  8679. }
  8680. }
  8681. },
  8682. "400": {
  8683. "description": "InvalidRequestError",
  8684. "content": {
  8685. "application/json": {
  8686. "schema": {
  8687. "$ref": "#/components/schemas/InvalidRequestError"
  8688. }
  8689. }
  8690. }
  8691. },
  8692. "401": {
  8693. "description": "UnauthorizedError",
  8694. "content": {
  8695. "application/json": {
  8696. "schema": {
  8697. "$ref": "#/components/schemas/UnauthorizedError"
  8698. }
  8699. }
  8700. }
  8701. }
  8702. },
  8703. "description": "Retrieve currently registered skills.",
  8704. "summary": "List skills"
  8705. }
  8706. },
  8707. "/api/event": {
  8708. "get": {
  8709. "tags": [
  8710. "event"
  8711. ],
  8712. "operationId": "v2.event.subscribe",
  8713. "parameters": [],
  8714. "security": [],
  8715. "responses": {
  8716. "200": {
  8717. "description": "Success",
  8718. "content": {
  8719. "text/event-stream": {
  8720. "schema": {
  8721. "type": "object",
  8722. "properties": {
  8723. "id": {
  8724. "anyOf": [
  8725. {
  8726. "type": "string"
  8727. },
  8728. {
  8729. "type": "null"
  8730. }
  8731. ]
  8732. },
  8733. "event": {
  8734. "type": "string"
  8735. },
  8736. "data": {
  8737. "$ref": "#/components/schemas/V2EventJsonString"
  8738. }
  8739. },
  8740. "required": [
  8741. "id",
  8742. "event",
  8743. "data"
  8744. ],
  8745. "additionalProperties": false
  8746. },
  8747. "x-effect-stream": {
  8748. "encoding": "sse",
  8749. "causeSchema": {
  8750. "type": "array",
  8751. "items": {
  8752. "anyOf": [
  8753. {
  8754. "type": "object",
  8755. "properties": {
  8756. "_tag": {
  8757. "type": "string",
  8758. "enum": [
  8759. "Fail"
  8760. ]
  8761. },
  8762. "error": {
  8763. "not": {}
  8764. }
  8765. },
  8766. "required": [
  8767. "_tag",
  8768. "error"
  8769. ],
  8770. "additionalProperties": false
  8771. },
  8772. {
  8773. "type": "object",
  8774. "properties": {
  8775. "_tag": {
  8776. "type": "string",
  8777. "enum": [
  8778. "Die"
  8779. ]
  8780. },
  8781. "defect": {}
  8782. },
  8783. "required": [
  8784. "_tag",
  8785. "defect"
  8786. ],
  8787. "additionalProperties": false
  8788. },
  8789. {
  8790. "type": "object",
  8791. "properties": {
  8792. "_tag": {
  8793. "type": "string",
  8794. "enum": [
  8795. "Interrupt"
  8796. ]
  8797. },
  8798. "fiberId": {
  8799. "anyOf": [
  8800. {
  8801. "type": "number"
  8802. },
  8803. {
  8804. "type": "null"
  8805. }
  8806. ]
  8807. }
  8808. },
  8809. "required": [
  8810. "_tag",
  8811. "fiberId"
  8812. ],
  8813. "additionalProperties": false
  8814. }
  8815. ]
  8816. }
  8817. },
  8818. "errorSchema": {
  8819. "not": {}
  8820. },
  8821. "failureEvent": "effect/httpapi/stream/failure"
  8822. }
  8823. }
  8824. }
  8825. },
  8826. "400": {
  8827. "description": "InvalidRequestError",
  8828. "content": {
  8829. "application/json": {
  8830. "schema": {
  8831. "$ref": "#/components/schemas/InvalidRequestError"
  8832. }
  8833. }
  8834. }
  8835. },
  8836. "401": {
  8837. "description": "UnauthorizedError",
  8838. "content": {
  8839. "application/json": {
  8840. "schema": {
  8841. "$ref": "#/components/schemas/UnauthorizedError"
  8842. }
  8843. }
  8844. }
  8845. }
  8846. },
  8847. "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.",
  8848. "summary": "Subscribe to events"
  8849. }
  8850. },
  8851. "/api/pty": {
  8852. "get": {
  8853. "tags": [
  8854. "pty"
  8855. ],
  8856. "operationId": "v2.pty.list",
  8857. "parameters": [
  8858. {
  8859. "name": "location",
  8860. "in": "query",
  8861. "schema": {
  8862. "anyOf": [
  8863. {
  8864. "type": "object",
  8865. "properties": {
  8866. "directory": {
  8867. "anyOf": [
  8868. {
  8869. "type": "string"
  8870. },
  8871. {
  8872. "type": "null"
  8873. }
  8874. ]
  8875. },
  8876. "workspace": {
  8877. "anyOf": [
  8878. {
  8879. "type": "string"
  8880. },
  8881. {
  8882. "type": "null"
  8883. }
  8884. ]
  8885. }
  8886. },
  8887. "additionalProperties": false
  8888. },
  8889. {
  8890. "type": "null"
  8891. }
  8892. ]
  8893. },
  8894. "required": false,
  8895. "style": "deepObject",
  8896. "explode": true
  8897. }
  8898. ],
  8899. "security": [],
  8900. "responses": {
  8901. "200": {
  8902. "description": "Success",
  8903. "content": {
  8904. "application/json": {
  8905. "schema": {
  8906. "type": "object",
  8907. "properties": {
  8908. "location": {
  8909. "$ref": "#/components/schemas/Location.Info"
  8910. },
  8911. "data": {
  8912. "type": "array",
  8913. "items": {
  8914. "$ref": "#/components/schemas/Pty"
  8915. }
  8916. }
  8917. },
  8918. "required": [
  8919. "location",
  8920. "data"
  8921. ],
  8922. "additionalProperties": false
  8923. }
  8924. }
  8925. }
  8926. },
  8927. "400": {
  8928. "description": "InvalidRequestError",
  8929. "content": {
  8930. "application/json": {
  8931. "schema": {
  8932. "$ref": "#/components/schemas/InvalidRequestError"
  8933. }
  8934. }
  8935. }
  8936. },
  8937. "401": {
  8938. "description": "UnauthorizedError",
  8939. "content": {
  8940. "application/json": {
  8941. "schema": {
  8942. "$ref": "#/components/schemas/UnauthorizedError"
  8943. }
  8944. }
  8945. }
  8946. }
  8947. },
  8948. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  8949. "summary": "List PTY sessions"
  8950. },
  8951. "post": {
  8952. "tags": [
  8953. "pty"
  8954. ],
  8955. "operationId": "v2.pty.create",
  8956. "parameters": [
  8957. {
  8958. "name": "location",
  8959. "in": "query",
  8960. "schema": {
  8961. "anyOf": [
  8962. {
  8963. "type": "object",
  8964. "properties": {
  8965. "directory": {
  8966. "anyOf": [
  8967. {
  8968. "type": "string"
  8969. },
  8970. {
  8971. "type": "null"
  8972. }
  8973. ]
  8974. },
  8975. "workspace": {
  8976. "anyOf": [
  8977. {
  8978. "type": "string"
  8979. },
  8980. {
  8981. "type": "null"
  8982. }
  8983. ]
  8984. }
  8985. },
  8986. "additionalProperties": false
  8987. },
  8988. {
  8989. "type": "null"
  8990. }
  8991. ]
  8992. },
  8993. "required": false,
  8994. "style": "deepObject",
  8995. "explode": true
  8996. }
  8997. ],
  8998. "security": [],
  8999. "responses": {
  9000. "200": {
  9001. "description": "Success",
  9002. "content": {
  9003. "application/json": {
  9004. "schema": {
  9005. "type": "object",
  9006. "properties": {
  9007. "location": {
  9008. "$ref": "#/components/schemas/Location.Info"
  9009. },
  9010. "data": {
  9011. "$ref": "#/components/schemas/Pty"
  9012. }
  9013. },
  9014. "required": [
  9015. "location",
  9016. "data"
  9017. ],
  9018. "additionalProperties": false
  9019. }
  9020. }
  9021. }
  9022. },
  9023. "400": {
  9024. "description": "InvalidRequestError",
  9025. "content": {
  9026. "application/json": {
  9027. "schema": {
  9028. "$ref": "#/components/schemas/InvalidRequestError"
  9029. }
  9030. }
  9031. }
  9032. },
  9033. "401": {
  9034. "description": "UnauthorizedError",
  9035. "content": {
  9036. "application/json": {
  9037. "schema": {
  9038. "$ref": "#/components/schemas/UnauthorizedError"
  9039. }
  9040. }
  9041. }
  9042. }
  9043. },
  9044. "description": "Create a pseudo-terminal session for a location.",
  9045. "summary": "Create PTY session",
  9046. "requestBody": {
  9047. "content": {
  9048. "application/json": {
  9049. "schema": {
  9050. "type": "object",
  9051. "properties": {
  9052. "command": {
  9053. "type": "string"
  9054. },
  9055. "args": {
  9056. "type": "array",
  9057. "items": {
  9058. "type": "string"
  9059. }
  9060. },
  9061. "cwd": {
  9062. "type": "string"
  9063. },
  9064. "title": {
  9065. "type": "string"
  9066. },
  9067. "env": {
  9068. "type": "object",
  9069. "additionalProperties": {
  9070. "type": "string"
  9071. }
  9072. }
  9073. },
  9074. "additionalProperties": false
  9075. }
  9076. }
  9077. },
  9078. "required": true
  9079. }
  9080. }
  9081. },
  9082. "/api/pty/{ptyID}": {
  9083. "get": {
  9084. "tags": [
  9085. "pty"
  9086. ],
  9087. "operationId": "v2.pty.get",
  9088. "parameters": [
  9089. {
  9090. "name": "ptyID",
  9091. "in": "path",
  9092. "schema": {
  9093. "type": "string",
  9094. "allOf": [
  9095. {
  9096. "pattern": "^pty"
  9097. }
  9098. ]
  9099. },
  9100. "required": true
  9101. },
  9102. {
  9103. "name": "location",
  9104. "in": "query",
  9105. "schema": {
  9106. "anyOf": [
  9107. {
  9108. "type": "object",
  9109. "properties": {
  9110. "directory": {
  9111. "anyOf": [
  9112. {
  9113. "type": "string"
  9114. },
  9115. {
  9116. "type": "null"
  9117. }
  9118. ]
  9119. },
  9120. "workspace": {
  9121. "anyOf": [
  9122. {
  9123. "type": "string"
  9124. },
  9125. {
  9126. "type": "null"
  9127. }
  9128. ]
  9129. }
  9130. },
  9131. "additionalProperties": false
  9132. },
  9133. {
  9134. "type": "null"
  9135. }
  9136. ]
  9137. },
  9138. "required": false,
  9139. "style": "deepObject",
  9140. "explode": true
  9141. }
  9142. ],
  9143. "security": [],
  9144. "responses": {
  9145. "200": {
  9146. "description": "Success",
  9147. "content": {
  9148. "application/json": {
  9149. "schema": {
  9150. "type": "object",
  9151. "properties": {
  9152. "location": {
  9153. "$ref": "#/components/schemas/Location.Info"
  9154. },
  9155. "data": {
  9156. "$ref": "#/components/schemas/Pty"
  9157. }
  9158. },
  9159. "required": [
  9160. "location",
  9161. "data"
  9162. ],
  9163. "additionalProperties": false
  9164. }
  9165. }
  9166. }
  9167. },
  9168. "400": {
  9169. "description": "InvalidRequestError",
  9170. "content": {
  9171. "application/json": {
  9172. "schema": {
  9173. "$ref": "#/components/schemas/InvalidRequestError"
  9174. }
  9175. }
  9176. }
  9177. },
  9178. "401": {
  9179. "description": "UnauthorizedError",
  9180. "content": {
  9181. "application/json": {
  9182. "schema": {
  9183. "$ref": "#/components/schemas/UnauthorizedError"
  9184. }
  9185. }
  9186. }
  9187. },
  9188. "404": {
  9189. "description": "PtyNotFoundError",
  9190. "content": {
  9191. "application/json": {
  9192. "schema": {
  9193. "$ref": "#/components/schemas/PtyNotFoundError"
  9194. }
  9195. }
  9196. }
  9197. }
  9198. },
  9199. "description": "Get one PTY session, including its exit code once exited.",
  9200. "summary": "Get PTY session"
  9201. },
  9202. "put": {
  9203. "tags": [
  9204. "pty"
  9205. ],
  9206. "operationId": "v2.pty.update",
  9207. "parameters": [
  9208. {
  9209. "name": "ptyID",
  9210. "in": "path",
  9211. "schema": {
  9212. "type": "string",
  9213. "allOf": [
  9214. {
  9215. "pattern": "^pty"
  9216. }
  9217. ]
  9218. },
  9219. "required": true
  9220. },
  9221. {
  9222. "name": "location",
  9223. "in": "query",
  9224. "schema": {
  9225. "anyOf": [
  9226. {
  9227. "type": "object",
  9228. "properties": {
  9229. "directory": {
  9230. "anyOf": [
  9231. {
  9232. "type": "string"
  9233. },
  9234. {
  9235. "type": "null"
  9236. }
  9237. ]
  9238. },
  9239. "workspace": {
  9240. "anyOf": [
  9241. {
  9242. "type": "string"
  9243. },
  9244. {
  9245. "type": "null"
  9246. }
  9247. ]
  9248. }
  9249. },
  9250. "additionalProperties": false
  9251. },
  9252. {
  9253. "type": "null"
  9254. }
  9255. ]
  9256. },
  9257. "required": false,
  9258. "style": "deepObject",
  9259. "explode": true
  9260. }
  9261. ],
  9262. "security": [],
  9263. "responses": {
  9264. "200": {
  9265. "description": "Success",
  9266. "content": {
  9267. "application/json": {
  9268. "schema": {
  9269. "type": "object",
  9270. "properties": {
  9271. "location": {
  9272. "$ref": "#/components/schemas/Location.Info"
  9273. },
  9274. "data": {
  9275. "$ref": "#/components/schemas/Pty"
  9276. }
  9277. },
  9278. "required": [
  9279. "location",
  9280. "data"
  9281. ],
  9282. "additionalProperties": false
  9283. }
  9284. }
  9285. }
  9286. },
  9287. "400": {
  9288. "description": "InvalidRequestError",
  9289. "content": {
  9290. "application/json": {
  9291. "schema": {
  9292. "$ref": "#/components/schemas/InvalidRequestError"
  9293. }
  9294. }
  9295. }
  9296. },
  9297. "401": {
  9298. "description": "UnauthorizedError",
  9299. "content": {
  9300. "application/json": {
  9301. "schema": {
  9302. "$ref": "#/components/schemas/UnauthorizedError"
  9303. }
  9304. }
  9305. }
  9306. },
  9307. "404": {
  9308. "description": "PtyNotFoundError",
  9309. "content": {
  9310. "application/json": {
  9311. "schema": {
  9312. "$ref": "#/components/schemas/PtyNotFoundError"
  9313. }
  9314. }
  9315. }
  9316. }
  9317. },
  9318. "description": "Update the title or viewport size of one PTY session.",
  9319. "summary": "Update PTY session",
  9320. "requestBody": {
  9321. "content": {
  9322. "application/json": {
  9323. "schema": {
  9324. "type": "object",
  9325. "properties": {
  9326. "title": {
  9327. "type": "string"
  9328. },
  9329. "size": {
  9330. "type": "object",
  9331. "properties": {
  9332. "rows": {
  9333. "type": "integer",
  9334. "allOf": [
  9335. {
  9336. "exclusiveMinimum": 0
  9337. }
  9338. ]
  9339. },
  9340. "cols": {
  9341. "type": "integer",
  9342. "allOf": [
  9343. {
  9344. "exclusiveMinimum": 0
  9345. }
  9346. ]
  9347. }
  9348. },
  9349. "required": [
  9350. "rows",
  9351. "cols"
  9352. ],
  9353. "additionalProperties": false
  9354. }
  9355. },
  9356. "additionalProperties": false
  9357. }
  9358. }
  9359. },
  9360. "required": true
  9361. }
  9362. },
  9363. "delete": {
  9364. "tags": [
  9365. "pty"
  9366. ],
  9367. "operationId": "v2.pty.remove",
  9368. "parameters": [
  9369. {
  9370. "name": "ptyID",
  9371. "in": "path",
  9372. "schema": {
  9373. "type": "string",
  9374. "allOf": [
  9375. {
  9376. "pattern": "^pty"
  9377. }
  9378. ]
  9379. },
  9380. "required": true
  9381. },
  9382. {
  9383. "name": "location",
  9384. "in": "query",
  9385. "schema": {
  9386. "anyOf": [
  9387. {
  9388. "type": "object",
  9389. "properties": {
  9390. "directory": {
  9391. "anyOf": [
  9392. {
  9393. "type": "string"
  9394. },
  9395. {
  9396. "type": "null"
  9397. }
  9398. ]
  9399. },
  9400. "workspace": {
  9401. "anyOf": [
  9402. {
  9403. "type": "string"
  9404. },
  9405. {
  9406. "type": "null"
  9407. }
  9408. ]
  9409. }
  9410. },
  9411. "additionalProperties": false
  9412. },
  9413. {
  9414. "type": "null"
  9415. }
  9416. ]
  9417. },
  9418. "required": false,
  9419. "style": "deepObject",
  9420. "explode": true
  9421. }
  9422. ],
  9423. "security": [],
  9424. "responses": {
  9425. "204": {
  9426. "description": "<No Content>"
  9427. },
  9428. "400": {
  9429. "description": "InvalidRequestError",
  9430. "content": {
  9431. "application/json": {
  9432. "schema": {
  9433. "$ref": "#/components/schemas/InvalidRequestError"
  9434. }
  9435. }
  9436. }
  9437. },
  9438. "401": {
  9439. "description": "UnauthorizedError",
  9440. "content": {
  9441. "application/json": {
  9442. "schema": {
  9443. "$ref": "#/components/schemas/UnauthorizedError"
  9444. }
  9445. }
  9446. }
  9447. },
  9448. "404": {
  9449. "description": "PtyNotFoundError",
  9450. "content": {
  9451. "application/json": {
  9452. "schema": {
  9453. "$ref": "#/components/schemas/PtyNotFoundError"
  9454. }
  9455. }
  9456. }
  9457. }
  9458. },
  9459. "description": "Terminate and remove one PTY session.",
  9460. "summary": "Remove PTY session"
  9461. }
  9462. },
  9463. "/api/pty/{ptyID}/connect-token": {
  9464. "post": {
  9465. "tags": [
  9466. "pty"
  9467. ],
  9468. "operationId": "v2.pty.connect.token",
  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. "200": {
  9527. "description": "Success",
  9528. "content": {
  9529. "application/json": {
  9530. "schema": {
  9531. "type": "object",
  9532. "properties": {
  9533. "location": {
  9534. "$ref": "#/components/schemas/Location.Info"
  9535. },
  9536. "data": {
  9537. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9538. }
  9539. },
  9540. "required": [
  9541. "location",
  9542. "data"
  9543. ],
  9544. "additionalProperties": false
  9545. }
  9546. }
  9547. }
  9548. },
  9549. "400": {
  9550. "description": "InvalidRequestError",
  9551. "content": {
  9552. "application/json": {
  9553. "schema": {
  9554. "$ref": "#/components/schemas/InvalidRequestError"
  9555. }
  9556. }
  9557. }
  9558. },
  9559. "401": {
  9560. "description": "UnauthorizedError",
  9561. "content": {
  9562. "application/json": {
  9563. "schema": {
  9564. "$ref": "#/components/schemas/UnauthorizedError"
  9565. }
  9566. }
  9567. }
  9568. },
  9569. "403": {
  9570. "description": "ForbiddenError",
  9571. "content": {
  9572. "application/json": {
  9573. "schema": {
  9574. "$ref": "#/components/schemas/ForbiddenError"
  9575. }
  9576. }
  9577. }
  9578. },
  9579. "404": {
  9580. "description": "PtyNotFoundError",
  9581. "content": {
  9582. "application/json": {
  9583. "schema": {
  9584. "$ref": "#/components/schemas/PtyNotFoundError"
  9585. }
  9586. }
  9587. }
  9588. }
  9589. },
  9590. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9591. "summary": "Create PTY WebSocket token"
  9592. }
  9593. },
  9594. "/api/pty/{ptyID}/connect": {
  9595. "get": {
  9596. "tags": [
  9597. "pty"
  9598. ],
  9599. "operationId": "v2.pty.connect",
  9600. "parameters": [
  9601. {
  9602. "name": "ptyID",
  9603. "in": "path",
  9604. "schema": {
  9605. "type": "string",
  9606. "allOf": [
  9607. {
  9608. "pattern": "^pty"
  9609. }
  9610. ]
  9611. },
  9612. "required": true
  9613. },
  9614. {
  9615. "in": "query",
  9616. "name": "location[directory]",
  9617. "schema": {
  9618. "type": "string"
  9619. }
  9620. },
  9621. {
  9622. "in": "query",
  9623. "name": "location[workspace]",
  9624. "schema": {
  9625. "type": "string"
  9626. }
  9627. },
  9628. {
  9629. "in": "query",
  9630. "name": "cursor",
  9631. "schema": {
  9632. "type": "string"
  9633. }
  9634. },
  9635. {
  9636. "in": "query",
  9637. "name": "ticket",
  9638. "schema": {
  9639. "type": "string"
  9640. }
  9641. }
  9642. ],
  9643. "security": [],
  9644. "responses": {
  9645. "200": {
  9646. "description": "Success",
  9647. "content": {
  9648. "application/json": {
  9649. "schema": {
  9650. "type": "boolean"
  9651. }
  9652. }
  9653. }
  9654. },
  9655. "400": {
  9656. "description": "InvalidRequestError",
  9657. "content": {
  9658. "application/json": {
  9659. "schema": {
  9660. "$ref": "#/components/schemas/InvalidRequestError"
  9661. }
  9662. }
  9663. }
  9664. },
  9665. "401": {
  9666. "description": "UnauthorizedError",
  9667. "content": {
  9668. "application/json": {
  9669. "schema": {
  9670. "$ref": "#/components/schemas/UnauthorizedError"
  9671. }
  9672. }
  9673. }
  9674. },
  9675. "403": {
  9676. "description": "ForbiddenError",
  9677. "content": {
  9678. "application/json": {
  9679. "schema": {
  9680. "$ref": "#/components/schemas/ForbiddenError"
  9681. }
  9682. }
  9683. }
  9684. },
  9685. "404": {
  9686. "description": "PtyNotFoundError",
  9687. "content": {
  9688. "application/json": {
  9689. "schema": {
  9690. "$ref": "#/components/schemas/PtyNotFoundError"
  9691. }
  9692. }
  9693. }
  9694. }
  9695. },
  9696. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9697. "summary": "Connect to PTY session",
  9698. "x-websocket": true
  9699. }
  9700. },
  9701. "/api/shell": {
  9702. "get": {
  9703. "tags": [
  9704. "shell"
  9705. ],
  9706. "operationId": "v2.shell.list",
  9707. "parameters": [
  9708. {
  9709. "name": "location",
  9710. "in": "query",
  9711. "schema": {
  9712. "anyOf": [
  9713. {
  9714. "type": "object",
  9715. "properties": {
  9716. "directory": {
  9717. "anyOf": [
  9718. {
  9719. "type": "string"
  9720. },
  9721. {
  9722. "type": "null"
  9723. }
  9724. ]
  9725. },
  9726. "workspace": {
  9727. "anyOf": [
  9728. {
  9729. "type": "string"
  9730. },
  9731. {
  9732. "type": "null"
  9733. }
  9734. ]
  9735. }
  9736. },
  9737. "additionalProperties": false
  9738. },
  9739. {
  9740. "type": "null"
  9741. }
  9742. ]
  9743. },
  9744. "required": false,
  9745. "style": "deepObject",
  9746. "explode": true
  9747. }
  9748. ],
  9749. "security": [],
  9750. "responses": {
  9751. "200": {
  9752. "description": "Success",
  9753. "content": {
  9754. "application/json": {
  9755. "schema": {
  9756. "type": "object",
  9757. "properties": {
  9758. "location": {
  9759. "$ref": "#/components/schemas/Location.Info"
  9760. },
  9761. "data": {
  9762. "type": "array",
  9763. "items": {
  9764. "$ref": "#/components/schemas/Shell.Info1"
  9765. }
  9766. }
  9767. },
  9768. "required": [
  9769. "location",
  9770. "data"
  9771. ],
  9772. "additionalProperties": false
  9773. }
  9774. }
  9775. }
  9776. },
  9777. "400": {
  9778. "description": "InvalidRequestError",
  9779. "content": {
  9780. "application/json": {
  9781. "schema": {
  9782. "$ref": "#/components/schemas/InvalidRequestError"
  9783. }
  9784. }
  9785. }
  9786. },
  9787. "401": {
  9788. "description": "UnauthorizedError",
  9789. "content": {
  9790. "application/json": {
  9791. "schema": {
  9792. "$ref": "#/components/schemas/UnauthorizedError"
  9793. }
  9794. }
  9795. }
  9796. }
  9797. },
  9798. "description": "List currently running shell commands for a location. Exited commands are not included.",
  9799. "summary": "List running shell commands"
  9800. },
  9801. "post": {
  9802. "tags": [
  9803. "shell"
  9804. ],
  9805. "operationId": "v2.shell.create",
  9806. "parameters": [
  9807. {
  9808. "name": "location",
  9809. "in": "query",
  9810. "schema": {
  9811. "anyOf": [
  9812. {
  9813. "type": "object",
  9814. "properties": {
  9815. "directory": {
  9816. "anyOf": [
  9817. {
  9818. "type": "string"
  9819. },
  9820. {
  9821. "type": "null"
  9822. }
  9823. ]
  9824. },
  9825. "workspace": {
  9826. "anyOf": [
  9827. {
  9828. "type": "string"
  9829. },
  9830. {
  9831. "type": "null"
  9832. }
  9833. ]
  9834. }
  9835. },
  9836. "additionalProperties": false
  9837. },
  9838. {
  9839. "type": "null"
  9840. }
  9841. ]
  9842. },
  9843. "required": false,
  9844. "style": "deepObject",
  9845. "explode": true
  9846. }
  9847. ],
  9848. "security": [],
  9849. "responses": {
  9850. "200": {
  9851. "description": "Success",
  9852. "content": {
  9853. "application/json": {
  9854. "schema": {
  9855. "type": "object",
  9856. "properties": {
  9857. "location": {
  9858. "$ref": "#/components/schemas/Location.Info"
  9859. },
  9860. "data": {
  9861. "$ref": "#/components/schemas/Shell.Info1"
  9862. }
  9863. },
  9864. "required": [
  9865. "location",
  9866. "data"
  9867. ],
  9868. "additionalProperties": false
  9869. }
  9870. }
  9871. }
  9872. },
  9873. "400": {
  9874. "description": "InvalidRequestError",
  9875. "content": {
  9876. "application/json": {
  9877. "schema": {
  9878. "$ref": "#/components/schemas/InvalidRequestError"
  9879. }
  9880. }
  9881. }
  9882. },
  9883. "401": {
  9884. "description": "UnauthorizedError",
  9885. "content": {
  9886. "application/json": {
  9887. "schema": {
  9888. "$ref": "#/components/schemas/UnauthorizedError"
  9889. }
  9890. }
  9891. }
  9892. }
  9893. },
  9894. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9895. "summary": "Run shell command",
  9896. "requestBody": {
  9897. "content": {
  9898. "application/json": {
  9899. "schema": {
  9900. "type": "object",
  9901. "properties": {
  9902. "command": {
  9903. "type": "string"
  9904. },
  9905. "cwd": {
  9906. "type": "string"
  9907. },
  9908. "timeout": {
  9909. "type": "integer",
  9910. "allOf": [
  9911. {
  9912. "minimum": 0
  9913. }
  9914. ]
  9915. },
  9916. "metadata": {
  9917. "type": "object"
  9918. }
  9919. },
  9920. "required": [
  9921. "command",
  9922. "timeout"
  9923. ],
  9924. "additionalProperties": false
  9925. }
  9926. }
  9927. },
  9928. "required": true
  9929. }
  9930. }
  9931. },
  9932. "/api/shell/{id}": {
  9933. "get": {
  9934. "tags": [
  9935. "shell"
  9936. ],
  9937. "operationId": "v2.shell.get",
  9938. "parameters": [
  9939. {
  9940. "name": "id",
  9941. "in": "path",
  9942. "schema": {
  9943. "type": "string",
  9944. "allOf": [
  9945. {
  9946. "pattern": "^sh_"
  9947. }
  9948. ]
  9949. },
  9950. "required": true
  9951. },
  9952. {
  9953. "name": "location",
  9954. "in": "query",
  9955. "schema": {
  9956. "anyOf": [
  9957. {
  9958. "type": "object",
  9959. "properties": {
  9960. "directory": {
  9961. "anyOf": [
  9962. {
  9963. "type": "string"
  9964. },
  9965. {
  9966. "type": "null"
  9967. }
  9968. ]
  9969. },
  9970. "workspace": {
  9971. "anyOf": [
  9972. {
  9973. "type": "string"
  9974. },
  9975. {
  9976. "type": "null"
  9977. }
  9978. ]
  9979. }
  9980. },
  9981. "additionalProperties": false
  9982. },
  9983. {
  9984. "type": "null"
  9985. }
  9986. ]
  9987. },
  9988. "required": false,
  9989. "style": "deepObject",
  9990. "explode": true
  9991. }
  9992. ],
  9993. "security": [],
  9994. "responses": {
  9995. "200": {
  9996. "description": "Success",
  9997. "content": {
  9998. "application/json": {
  9999. "schema": {
  10000. "type": "object",
  10001. "properties": {
  10002. "location": {
  10003. "$ref": "#/components/schemas/Location.Info"
  10004. },
  10005. "data": {
  10006. "$ref": "#/components/schemas/Shell.Info1"
  10007. }
  10008. },
  10009. "required": [
  10010. "location",
  10011. "data"
  10012. ],
  10013. "additionalProperties": false
  10014. }
  10015. }
  10016. }
  10017. },
  10018. "400": {
  10019. "description": "InvalidRequestError",
  10020. "content": {
  10021. "application/json": {
  10022. "schema": {
  10023. "$ref": "#/components/schemas/InvalidRequestError"
  10024. }
  10025. }
  10026. }
  10027. },
  10028. "401": {
  10029. "description": "UnauthorizedError",
  10030. "content": {
  10031. "application/json": {
  10032. "schema": {
  10033. "$ref": "#/components/schemas/UnauthorizedError"
  10034. }
  10035. }
  10036. }
  10037. },
  10038. "404": {
  10039. "description": "ShellNotFoundError",
  10040. "content": {
  10041. "application/json": {
  10042. "schema": {
  10043. "$ref": "#/components/schemas/ShellNotFoundError"
  10044. }
  10045. }
  10046. }
  10047. }
  10048. },
  10049. "description": "Get one shell command, including its status and exit code once exited.",
  10050. "summary": "Get shell command"
  10051. },
  10052. "delete": {
  10053. "tags": [
  10054. "shell"
  10055. ],
  10056. "operationId": "v2.shell.remove",
  10057. "parameters": [
  10058. {
  10059. "name": "id",
  10060. "in": "path",
  10061. "schema": {
  10062. "type": "string",
  10063. "allOf": [
  10064. {
  10065. "pattern": "^sh_"
  10066. }
  10067. ]
  10068. },
  10069. "required": true
  10070. },
  10071. {
  10072. "name": "location",
  10073. "in": "query",
  10074. "schema": {
  10075. "anyOf": [
  10076. {
  10077. "type": "object",
  10078. "properties": {
  10079. "directory": {
  10080. "anyOf": [
  10081. {
  10082. "type": "string"
  10083. },
  10084. {
  10085. "type": "null"
  10086. }
  10087. ]
  10088. },
  10089. "workspace": {
  10090. "anyOf": [
  10091. {
  10092. "type": "string"
  10093. },
  10094. {
  10095. "type": "null"
  10096. }
  10097. ]
  10098. }
  10099. },
  10100. "additionalProperties": false
  10101. },
  10102. {
  10103. "type": "null"
  10104. }
  10105. ]
  10106. },
  10107. "required": false,
  10108. "style": "deepObject",
  10109. "explode": true
  10110. }
  10111. ],
  10112. "security": [],
  10113. "responses": {
  10114. "204": {
  10115. "description": "<No Content>"
  10116. },
  10117. "400": {
  10118. "description": "InvalidRequestError",
  10119. "content": {
  10120. "application/json": {
  10121. "schema": {
  10122. "$ref": "#/components/schemas/InvalidRequestError"
  10123. }
  10124. }
  10125. }
  10126. },
  10127. "401": {
  10128. "description": "UnauthorizedError",
  10129. "content": {
  10130. "application/json": {
  10131. "schema": {
  10132. "$ref": "#/components/schemas/UnauthorizedError"
  10133. }
  10134. }
  10135. }
  10136. },
  10137. "404": {
  10138. "description": "ShellNotFoundError",
  10139. "content": {
  10140. "application/json": {
  10141. "schema": {
  10142. "$ref": "#/components/schemas/ShellNotFoundError"
  10143. }
  10144. }
  10145. }
  10146. }
  10147. },
  10148. "description": "Terminate and remove one shell command and its retained output.",
  10149. "summary": "Remove shell command"
  10150. }
  10151. },
  10152. "/api/shell/{id}/timeout": {
  10153. "patch": {
  10154. "tags": [
  10155. "shell"
  10156. ],
  10157. "operationId": "v2.shell.timeout",
  10158. "parameters": [
  10159. {
  10160. "name": "id",
  10161. "in": "path",
  10162. "schema": {
  10163. "type": "string",
  10164. "allOf": [
  10165. {
  10166. "pattern": "^sh_"
  10167. }
  10168. ]
  10169. },
  10170. "required": true
  10171. },
  10172. {
  10173. "name": "location",
  10174. "in": "query",
  10175. "schema": {
  10176. "anyOf": [
  10177. {
  10178. "type": "object",
  10179. "properties": {
  10180. "directory": {
  10181. "anyOf": [
  10182. {
  10183. "type": "string"
  10184. },
  10185. {
  10186. "type": "null"
  10187. }
  10188. ]
  10189. },
  10190. "workspace": {
  10191. "anyOf": [
  10192. {
  10193. "type": "string"
  10194. },
  10195. {
  10196. "type": "null"
  10197. }
  10198. ]
  10199. }
  10200. },
  10201. "additionalProperties": false
  10202. },
  10203. {
  10204. "type": "null"
  10205. }
  10206. ]
  10207. },
  10208. "required": false,
  10209. "style": "deepObject",
  10210. "explode": true
  10211. }
  10212. ],
  10213. "security": [],
  10214. "responses": {
  10215. "200": {
  10216. "description": "Success",
  10217. "content": {
  10218. "application/json": {
  10219. "schema": {
  10220. "type": "object",
  10221. "properties": {
  10222. "location": {
  10223. "$ref": "#/components/schemas/Location.Info"
  10224. },
  10225. "data": {
  10226. "$ref": "#/components/schemas/Shell.Info1"
  10227. }
  10228. },
  10229. "required": [
  10230. "location",
  10231. "data"
  10232. ],
  10233. "additionalProperties": false
  10234. }
  10235. }
  10236. }
  10237. },
  10238. "400": {
  10239. "description": "InvalidRequestError",
  10240. "content": {
  10241. "application/json": {
  10242. "schema": {
  10243. "$ref": "#/components/schemas/InvalidRequestError"
  10244. }
  10245. }
  10246. }
  10247. },
  10248. "401": {
  10249. "description": "UnauthorizedError",
  10250. "content": {
  10251. "application/json": {
  10252. "schema": {
  10253. "$ref": "#/components/schemas/UnauthorizedError"
  10254. }
  10255. }
  10256. }
  10257. },
  10258. "404": {
  10259. "description": "ShellNotFoundError",
  10260. "content": {
  10261. "application/json": {
  10262. "schema": {
  10263. "$ref": "#/components/schemas/ShellNotFoundError"
  10264. }
  10265. }
  10266. }
  10267. }
  10268. },
  10269. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10270. "summary": "Update shell timeout",
  10271. "requestBody": {
  10272. "content": {
  10273. "application/json": {
  10274. "schema": {
  10275. "type": "object",
  10276. "properties": {
  10277. "timeout": {
  10278. "type": "integer",
  10279. "allOf": [
  10280. {
  10281. "minimum": 0
  10282. }
  10283. ]
  10284. }
  10285. },
  10286. "required": [
  10287. "timeout"
  10288. ],
  10289. "additionalProperties": false
  10290. }
  10291. }
  10292. },
  10293. "required": true
  10294. }
  10295. }
  10296. },
  10297. "/api/shell/{id}/output": {
  10298. "get": {
  10299. "tags": [
  10300. "shell"
  10301. ],
  10302. "operationId": "v2.shell.output",
  10303. "parameters": [
  10304. {
  10305. "name": "id",
  10306. "in": "path",
  10307. "schema": {
  10308. "type": "string",
  10309. "allOf": [
  10310. {
  10311. "pattern": "^sh_"
  10312. }
  10313. ]
  10314. },
  10315. "required": true
  10316. },
  10317. {
  10318. "name": "location",
  10319. "in": "query",
  10320. "schema": {
  10321. "anyOf": [
  10322. {
  10323. "type": "object",
  10324. "properties": {
  10325. "directory": {
  10326. "anyOf": [
  10327. {
  10328. "type": "string"
  10329. },
  10330. {
  10331. "type": "null"
  10332. }
  10333. ]
  10334. },
  10335. "workspace": {
  10336. "anyOf": [
  10337. {
  10338. "type": "string"
  10339. },
  10340. {
  10341. "type": "null"
  10342. }
  10343. ]
  10344. }
  10345. },
  10346. "additionalProperties": false
  10347. },
  10348. {
  10349. "type": "null"
  10350. }
  10351. ]
  10352. },
  10353. "required": false,
  10354. "style": "deepObject",
  10355. "explode": true
  10356. },
  10357. {
  10358. "name": "cursor",
  10359. "in": "query",
  10360. "schema": {
  10361. "type": "string",
  10362. "allOf": [
  10363. {
  10364. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10365. }
  10366. ]
  10367. },
  10368. "required": false
  10369. },
  10370. {
  10371. "name": "limit",
  10372. "in": "query",
  10373. "schema": {
  10374. "type": "string",
  10375. "allOf": [
  10376. {
  10377. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10378. }
  10379. ]
  10380. },
  10381. "required": false
  10382. }
  10383. ],
  10384. "security": [],
  10385. "responses": {
  10386. "200": {
  10387. "description": "Success",
  10388. "content": {
  10389. "application/json": {
  10390. "schema": {
  10391. "type": "object",
  10392. "properties": {
  10393. "location": {
  10394. "$ref": "#/components/schemas/Location.Info"
  10395. },
  10396. "data": {
  10397. "type": "object",
  10398. "properties": {
  10399. "output": {
  10400. "type": "string"
  10401. },
  10402. "cursor": {
  10403. "type": "integer",
  10404. "allOf": [
  10405. {
  10406. "minimum": 0
  10407. }
  10408. ]
  10409. },
  10410. "size": {
  10411. "type": "integer",
  10412. "allOf": [
  10413. {
  10414. "minimum": 0
  10415. }
  10416. ]
  10417. },
  10418. "truncated": {
  10419. "type": "boolean"
  10420. }
  10421. },
  10422. "required": [
  10423. "output",
  10424. "cursor",
  10425. "size",
  10426. "truncated"
  10427. ],
  10428. "additionalProperties": false
  10429. }
  10430. },
  10431. "required": [
  10432. "location",
  10433. "data"
  10434. ],
  10435. "additionalProperties": false
  10436. }
  10437. }
  10438. }
  10439. },
  10440. "400": {
  10441. "description": "InvalidRequestError",
  10442. "content": {
  10443. "application/json": {
  10444. "schema": {
  10445. "$ref": "#/components/schemas/InvalidRequestError"
  10446. }
  10447. }
  10448. }
  10449. },
  10450. "401": {
  10451. "description": "UnauthorizedError",
  10452. "content": {
  10453. "application/json": {
  10454. "schema": {
  10455. "$ref": "#/components/schemas/UnauthorizedError"
  10456. }
  10457. }
  10458. }
  10459. },
  10460. "404": {
  10461. "description": "ShellNotFoundError",
  10462. "content": {
  10463. "application/json": {
  10464. "schema": {
  10465. "$ref": "#/components/schemas/ShellNotFoundError"
  10466. }
  10467. }
  10468. }
  10469. }
  10470. },
  10471. "description": "Page through captured combined output by absolute byte cursor.",
  10472. "summary": "Read shell output"
  10473. }
  10474. },
  10475. "/api/question/request": {
  10476. "get": {
  10477. "tags": [
  10478. "question"
  10479. ],
  10480. "operationId": "v2.question.request.list",
  10481. "parameters": [
  10482. {
  10483. "name": "location",
  10484. "in": "query",
  10485. "schema": {
  10486. "anyOf": [
  10487. {
  10488. "type": "object",
  10489. "properties": {
  10490. "directory": {
  10491. "anyOf": [
  10492. {
  10493. "type": "string"
  10494. },
  10495. {
  10496. "type": "null"
  10497. }
  10498. ]
  10499. },
  10500. "workspace": {
  10501. "anyOf": [
  10502. {
  10503. "type": "string"
  10504. },
  10505. {
  10506. "type": "null"
  10507. }
  10508. ]
  10509. }
  10510. },
  10511. "additionalProperties": false
  10512. },
  10513. {
  10514. "type": "null"
  10515. }
  10516. ]
  10517. },
  10518. "required": false,
  10519. "style": "deepObject",
  10520. "explode": true
  10521. }
  10522. ],
  10523. "security": [],
  10524. "responses": {
  10525. "200": {
  10526. "description": "Success",
  10527. "content": {
  10528. "application/json": {
  10529. "schema": {
  10530. "type": "object",
  10531. "properties": {
  10532. "location": {
  10533. "$ref": "#/components/schemas/Location.Info"
  10534. },
  10535. "data": {
  10536. "type": "array",
  10537. "items": {
  10538. "$ref": "#/components/schemas/Question.Request"
  10539. }
  10540. }
  10541. },
  10542. "required": [
  10543. "location",
  10544. "data"
  10545. ],
  10546. "additionalProperties": false
  10547. }
  10548. }
  10549. }
  10550. },
  10551. "400": {
  10552. "description": "InvalidRequestError",
  10553. "content": {
  10554. "application/json": {
  10555. "schema": {
  10556. "$ref": "#/components/schemas/InvalidRequestError"
  10557. }
  10558. }
  10559. }
  10560. },
  10561. "401": {
  10562. "description": "UnauthorizedError",
  10563. "content": {
  10564. "application/json": {
  10565. "schema": {
  10566. "$ref": "#/components/schemas/UnauthorizedError"
  10567. }
  10568. }
  10569. }
  10570. }
  10571. },
  10572. "description": "Retrieve pending question requests for a location.",
  10573. "summary": "List pending question requests"
  10574. }
  10575. },
  10576. "/api/session/{sessionID}/question": {
  10577. "get": {
  10578. "tags": [
  10579. "question"
  10580. ],
  10581. "operationId": "v2.session.question.list",
  10582. "parameters": [
  10583. {
  10584. "name": "sessionID",
  10585. "in": "path",
  10586. "schema": {
  10587. "type": "string",
  10588. "allOf": [
  10589. {
  10590. "pattern": "^ses"
  10591. }
  10592. ]
  10593. },
  10594. "required": true
  10595. }
  10596. ],
  10597. "security": [],
  10598. "responses": {
  10599. "200": {
  10600. "description": "Success",
  10601. "content": {
  10602. "application/json": {
  10603. "schema": {
  10604. "type": "object",
  10605. "properties": {
  10606. "data": {
  10607. "type": "array",
  10608. "items": {
  10609. "$ref": "#/components/schemas/Question.Request"
  10610. }
  10611. }
  10612. },
  10613. "required": [
  10614. "data"
  10615. ],
  10616. "additionalProperties": false
  10617. }
  10618. }
  10619. }
  10620. },
  10621. "400": {
  10622. "description": "InvalidRequestError",
  10623. "content": {
  10624. "application/json": {
  10625. "schema": {
  10626. "$ref": "#/components/schemas/InvalidRequestError"
  10627. }
  10628. }
  10629. }
  10630. },
  10631. "401": {
  10632. "description": "UnauthorizedError",
  10633. "content": {
  10634. "application/json": {
  10635. "schema": {
  10636. "$ref": "#/components/schemas/UnauthorizedError"
  10637. }
  10638. }
  10639. }
  10640. },
  10641. "404": {
  10642. "description": "SessionNotFoundError",
  10643. "content": {
  10644. "application/json": {
  10645. "schema": {
  10646. "anyOf": [
  10647. {
  10648. "$ref": "#/components/schemas/SessionNotFoundError"
  10649. },
  10650. {
  10651. "$ref": "#/components/schemas/SessionNotFoundError"
  10652. }
  10653. ]
  10654. }
  10655. }
  10656. }
  10657. }
  10658. },
  10659. "description": "Retrieve pending question requests owned by a session.",
  10660. "summary": "List session question requests"
  10661. }
  10662. },
  10663. "/api/session/{sessionID}/question/{requestID}/reply": {
  10664. "post": {
  10665. "tags": [
  10666. "question"
  10667. ],
  10668. "operationId": "v2.session.question.reply",
  10669. "parameters": [
  10670. {
  10671. "name": "sessionID",
  10672. "in": "path",
  10673. "schema": {
  10674. "type": "string",
  10675. "allOf": [
  10676. {
  10677. "pattern": "^ses"
  10678. }
  10679. ]
  10680. },
  10681. "required": true
  10682. },
  10683. {
  10684. "name": "requestID",
  10685. "in": "path",
  10686. "schema": {
  10687. "type": "string",
  10688. "allOf": [
  10689. {
  10690. "pattern": "^que"
  10691. }
  10692. ]
  10693. },
  10694. "required": true
  10695. }
  10696. ],
  10697. "security": [],
  10698. "responses": {
  10699. "204": {
  10700. "description": "<No Content>"
  10701. },
  10702. "400": {
  10703. "description": "InvalidRequestError",
  10704. "content": {
  10705. "application/json": {
  10706. "schema": {
  10707. "$ref": "#/components/schemas/InvalidRequestError"
  10708. }
  10709. }
  10710. }
  10711. },
  10712. "401": {
  10713. "description": "UnauthorizedError",
  10714. "content": {
  10715. "application/json": {
  10716. "schema": {
  10717. "$ref": "#/components/schemas/UnauthorizedError"
  10718. }
  10719. }
  10720. }
  10721. },
  10722. "404": {
  10723. "description": "SessionNotFoundError | QuestionNotFoundError",
  10724. "content": {
  10725. "application/json": {
  10726. "schema": {
  10727. "anyOf": [
  10728. {
  10729. "$ref": "#/components/schemas/QuestionNotFoundError"
  10730. },
  10731. {
  10732. "$ref": "#/components/schemas/SessionNotFoundError"
  10733. },
  10734. {
  10735. "$ref": "#/components/schemas/SessionNotFoundError"
  10736. }
  10737. ]
  10738. }
  10739. }
  10740. }
  10741. }
  10742. },
  10743. "description": "Answer a pending question request owned by a session.",
  10744. "summary": "Reply to pending question request",
  10745. "requestBody": {
  10746. "content": {
  10747. "application/json": {
  10748. "schema": {
  10749. "$ref": "#/components/schemas/Question.Reply"
  10750. }
  10751. }
  10752. },
  10753. "required": true
  10754. }
  10755. }
  10756. },
  10757. "/api/session/{sessionID}/question/{requestID}/reject": {
  10758. "post": {
  10759. "tags": [
  10760. "question"
  10761. ],
  10762. "operationId": "v2.session.question.reject",
  10763. "parameters": [
  10764. {
  10765. "name": "sessionID",
  10766. "in": "path",
  10767. "schema": {
  10768. "type": "string",
  10769. "allOf": [
  10770. {
  10771. "pattern": "^ses"
  10772. }
  10773. ]
  10774. },
  10775. "required": true
  10776. },
  10777. {
  10778. "name": "requestID",
  10779. "in": "path",
  10780. "schema": {
  10781. "type": "string",
  10782. "allOf": [
  10783. {
  10784. "pattern": "^que"
  10785. }
  10786. ]
  10787. },
  10788. "required": true
  10789. }
  10790. ],
  10791. "security": [],
  10792. "responses": {
  10793. "204": {
  10794. "description": "<No Content>"
  10795. },
  10796. "400": {
  10797. "description": "InvalidRequestError",
  10798. "content": {
  10799. "application/json": {
  10800. "schema": {
  10801. "$ref": "#/components/schemas/InvalidRequestError"
  10802. }
  10803. }
  10804. }
  10805. },
  10806. "401": {
  10807. "description": "UnauthorizedError",
  10808. "content": {
  10809. "application/json": {
  10810. "schema": {
  10811. "$ref": "#/components/schemas/UnauthorizedError"
  10812. }
  10813. }
  10814. }
  10815. },
  10816. "404": {
  10817. "description": "SessionNotFoundError | QuestionNotFoundError",
  10818. "content": {
  10819. "application/json": {
  10820. "schema": {
  10821. "anyOf": [
  10822. {
  10823. "$ref": "#/components/schemas/QuestionNotFoundError"
  10824. },
  10825. {
  10826. "$ref": "#/components/schemas/SessionNotFoundError"
  10827. },
  10828. {
  10829. "$ref": "#/components/schemas/SessionNotFoundError"
  10830. }
  10831. ]
  10832. }
  10833. }
  10834. }
  10835. }
  10836. },
  10837. "description": "Reject a pending question request owned by a session.",
  10838. "summary": "Reject pending question request"
  10839. }
  10840. },
  10841. "/api/reference": {
  10842. "get": {
  10843. "tags": [
  10844. "reference"
  10845. ],
  10846. "operationId": "v2.reference.list",
  10847. "parameters": [
  10848. {
  10849. "name": "location",
  10850. "in": "query",
  10851. "schema": {
  10852. "anyOf": [
  10853. {
  10854. "type": "object",
  10855. "properties": {
  10856. "directory": {
  10857. "anyOf": [
  10858. {
  10859. "type": "string"
  10860. },
  10861. {
  10862. "type": "null"
  10863. }
  10864. ]
  10865. },
  10866. "workspace": {
  10867. "anyOf": [
  10868. {
  10869. "type": "string"
  10870. },
  10871. {
  10872. "type": "null"
  10873. }
  10874. ]
  10875. }
  10876. },
  10877. "additionalProperties": false
  10878. },
  10879. {
  10880. "type": "null"
  10881. }
  10882. ]
  10883. },
  10884. "required": false,
  10885. "style": "deepObject",
  10886. "explode": true
  10887. }
  10888. ],
  10889. "security": [],
  10890. "responses": {
  10891. "200": {
  10892. "description": "Success",
  10893. "content": {
  10894. "application/json": {
  10895. "schema": {
  10896. "type": "object",
  10897. "properties": {
  10898. "location": {
  10899. "$ref": "#/components/schemas/Location.Info"
  10900. },
  10901. "data": {
  10902. "type": "array",
  10903. "items": {
  10904. "$ref": "#/components/schemas/Reference.Info"
  10905. }
  10906. }
  10907. },
  10908. "required": [
  10909. "location",
  10910. "data"
  10911. ],
  10912. "additionalProperties": false
  10913. }
  10914. }
  10915. }
  10916. },
  10917. "400": {
  10918. "description": "InvalidRequestError",
  10919. "content": {
  10920. "application/json": {
  10921. "schema": {
  10922. "$ref": "#/components/schemas/InvalidRequestError"
  10923. }
  10924. }
  10925. }
  10926. },
  10927. "401": {
  10928. "description": "UnauthorizedError",
  10929. "content": {
  10930. "application/json": {
  10931. "schema": {
  10932. "$ref": "#/components/schemas/UnauthorizedError"
  10933. }
  10934. }
  10935. }
  10936. }
  10937. },
  10938. "description": "List references available in the requested location.",
  10939. "summary": "List references"
  10940. }
  10941. },
  10942. "/experimental/project/{projectID}/copy": {
  10943. "post": {
  10944. "tags": [
  10945. "projectCopy"
  10946. ],
  10947. "operationId": "v2.projectCopy.create",
  10948. "parameters": [
  10949. {
  10950. "name": "projectID",
  10951. "in": "path",
  10952. "schema": {
  10953. "type": "string"
  10954. },
  10955. "required": true
  10956. },
  10957. {
  10958. "name": "location",
  10959. "in": "query",
  10960. "schema": {
  10961. "anyOf": [
  10962. {
  10963. "type": "object",
  10964. "properties": {
  10965. "directory": {
  10966. "anyOf": [
  10967. {
  10968. "type": "string"
  10969. },
  10970. {
  10971. "type": "null"
  10972. }
  10973. ]
  10974. },
  10975. "workspace": {
  10976. "anyOf": [
  10977. {
  10978. "type": "string"
  10979. },
  10980. {
  10981. "type": "null"
  10982. }
  10983. ]
  10984. }
  10985. },
  10986. "additionalProperties": false
  10987. },
  10988. {
  10989. "type": "null"
  10990. }
  10991. ]
  10992. },
  10993. "required": false,
  10994. "style": "deepObject",
  10995. "explode": true
  10996. }
  10997. ],
  10998. "security": [],
  10999. "responses": {
  11000. "200": {
  11001. "description": "ProjectCopy.Copy",
  11002. "content": {
  11003. "application/json": {
  11004. "schema": {
  11005. "$ref": "#/components/schemas/ProjectCopy.Copy"
  11006. }
  11007. }
  11008. }
  11009. },
  11010. "400": {
  11011. "description": "ProjectCopyError | InvalidRequestError",
  11012. "content": {
  11013. "application/json": {
  11014. "schema": {
  11015. "anyOf": [
  11016. {
  11017. "$ref": "#/components/schemas/ProjectCopyError"
  11018. },
  11019. {
  11020. "$ref": "#/components/schemas/InvalidRequestError"
  11021. }
  11022. ]
  11023. }
  11024. }
  11025. }
  11026. },
  11027. "401": {
  11028. "description": "UnauthorizedError",
  11029. "content": {
  11030. "application/json": {
  11031. "schema": {
  11032. "$ref": "#/components/schemas/UnauthorizedError"
  11033. }
  11034. }
  11035. }
  11036. }
  11037. },
  11038. "requestBody": {
  11039. "content": {
  11040. "application/json": {
  11041. "schema": {
  11042. "type": "object",
  11043. "properties": {
  11044. "strategy": {
  11045. "type": "string"
  11046. },
  11047. "directory": {
  11048. "type": "string"
  11049. },
  11050. "name": {
  11051. "type": "string"
  11052. }
  11053. },
  11054. "required": [
  11055. "strategy",
  11056. "directory"
  11057. ],
  11058. "additionalProperties": false
  11059. }
  11060. }
  11061. },
  11062. "required": true
  11063. }
  11064. },
  11065. "delete": {
  11066. "tags": [
  11067. "projectCopy"
  11068. ],
  11069. "operationId": "v2.projectCopy.remove",
  11070. "parameters": [
  11071. {
  11072. "name": "projectID",
  11073. "in": "path",
  11074. "schema": {
  11075. "type": "string"
  11076. },
  11077. "required": true
  11078. },
  11079. {
  11080. "name": "location",
  11081. "in": "query",
  11082. "schema": {
  11083. "anyOf": [
  11084. {
  11085. "type": "object",
  11086. "properties": {
  11087. "directory": {
  11088. "anyOf": [
  11089. {
  11090. "type": "string"
  11091. },
  11092. {
  11093. "type": "null"
  11094. }
  11095. ]
  11096. },
  11097. "workspace": {
  11098. "anyOf": [
  11099. {
  11100. "type": "string"
  11101. },
  11102. {
  11103. "type": "null"
  11104. }
  11105. ]
  11106. }
  11107. },
  11108. "additionalProperties": false
  11109. },
  11110. {
  11111. "type": "null"
  11112. }
  11113. ]
  11114. },
  11115. "required": false,
  11116. "style": "deepObject",
  11117. "explode": true
  11118. }
  11119. ],
  11120. "security": [],
  11121. "responses": {
  11122. "204": {
  11123. "description": "<No Content>"
  11124. },
  11125. "400": {
  11126. "description": "ProjectCopyError | InvalidRequestError",
  11127. "content": {
  11128. "application/json": {
  11129. "schema": {
  11130. "anyOf": [
  11131. {
  11132. "$ref": "#/components/schemas/ProjectCopyError"
  11133. },
  11134. {
  11135. "$ref": "#/components/schemas/InvalidRequestError"
  11136. }
  11137. ]
  11138. }
  11139. }
  11140. }
  11141. },
  11142. "401": {
  11143. "description": "UnauthorizedError",
  11144. "content": {
  11145. "application/json": {
  11146. "schema": {
  11147. "$ref": "#/components/schemas/UnauthorizedError"
  11148. }
  11149. }
  11150. }
  11151. }
  11152. },
  11153. "requestBody": {
  11154. "content": {
  11155. "application/json": {
  11156. "schema": {
  11157. "type": "object",
  11158. "properties": {
  11159. "directory": {
  11160. "type": "string"
  11161. },
  11162. "force": {
  11163. "type": "boolean"
  11164. }
  11165. },
  11166. "required": [
  11167. "directory",
  11168. "force"
  11169. ],
  11170. "additionalProperties": false
  11171. }
  11172. }
  11173. },
  11174. "required": true
  11175. }
  11176. }
  11177. },
  11178. "/experimental/project/{projectID}/copy/refresh": {
  11179. "post": {
  11180. "tags": [
  11181. "projectCopy"
  11182. ],
  11183. "operationId": "v2.projectCopy.refresh",
  11184. "parameters": [
  11185. {
  11186. "name": "projectID",
  11187. "in": "path",
  11188. "schema": {
  11189. "type": "string"
  11190. },
  11191. "required": true
  11192. },
  11193. {
  11194. "name": "location",
  11195. "in": "query",
  11196. "schema": {
  11197. "anyOf": [
  11198. {
  11199. "type": "object",
  11200. "properties": {
  11201. "directory": {
  11202. "anyOf": [
  11203. {
  11204. "type": "string"
  11205. },
  11206. {
  11207. "type": "null"
  11208. }
  11209. ]
  11210. },
  11211. "workspace": {
  11212. "anyOf": [
  11213. {
  11214. "type": "string"
  11215. },
  11216. {
  11217. "type": "null"
  11218. }
  11219. ]
  11220. }
  11221. },
  11222. "additionalProperties": false
  11223. },
  11224. {
  11225. "type": "null"
  11226. }
  11227. ]
  11228. },
  11229. "required": false,
  11230. "style": "deepObject",
  11231. "explode": true
  11232. }
  11233. ],
  11234. "security": [],
  11235. "responses": {
  11236. "204": {
  11237. "description": "<No Content>"
  11238. },
  11239. "400": {
  11240. "description": "ProjectCopyError | InvalidRequestError",
  11241. "content": {
  11242. "application/json": {
  11243. "schema": {
  11244. "anyOf": [
  11245. {
  11246. "$ref": "#/components/schemas/ProjectCopyError"
  11247. },
  11248. {
  11249. "$ref": "#/components/schemas/InvalidRequestError"
  11250. }
  11251. ]
  11252. }
  11253. }
  11254. }
  11255. },
  11256. "401": {
  11257. "description": "UnauthorizedError",
  11258. "content": {
  11259. "application/json": {
  11260. "schema": {
  11261. "$ref": "#/components/schemas/UnauthorizedError"
  11262. }
  11263. }
  11264. }
  11265. }
  11266. }
  11267. }
  11268. },
  11269. "/api/vcs": {
  11270. "get": {
  11271. "tags": [
  11272. "vcs"
  11273. ],
  11274. "operationId": "v2.vcs.get",
  11275. "parameters": [
  11276. {
  11277. "name": "location",
  11278. "in": "query",
  11279. "schema": {
  11280. "anyOf": [
  11281. {
  11282. "type": "object",
  11283. "properties": {
  11284. "directory": {
  11285. "anyOf": [
  11286. {
  11287. "type": "string"
  11288. },
  11289. {
  11290. "type": "null"
  11291. }
  11292. ]
  11293. },
  11294. "workspace": {
  11295. "anyOf": [
  11296. {
  11297. "type": "string"
  11298. },
  11299. {
  11300. "type": "null"
  11301. }
  11302. ]
  11303. }
  11304. },
  11305. "additionalProperties": false
  11306. },
  11307. {
  11308. "type": "null"
  11309. }
  11310. ]
  11311. },
  11312. "required": false,
  11313. "style": "deepObject",
  11314. "explode": true
  11315. }
  11316. ],
  11317. "security": [],
  11318. "responses": {
  11319. "200": {
  11320. "description": "Success",
  11321. "content": {
  11322. "application/json": {
  11323. "schema": {
  11324. "type": "object",
  11325. "properties": {
  11326. "location": {
  11327. "$ref": "#/components/schemas/Location.Info"
  11328. },
  11329. "data": {
  11330. "$ref": "#/components/schemas/Vcs.Info"
  11331. }
  11332. },
  11333. "required": [
  11334. "location",
  11335. "data"
  11336. ],
  11337. "additionalProperties": false
  11338. }
  11339. }
  11340. }
  11341. },
  11342. "400": {
  11343. "description": "InvalidRequestError",
  11344. "content": {
  11345. "application/json": {
  11346. "schema": {
  11347. "$ref": "#/components/schemas/InvalidRequestError"
  11348. }
  11349. }
  11350. }
  11351. },
  11352. "401": {
  11353. "description": "UnauthorizedError",
  11354. "content": {
  11355. "application/json": {
  11356. "schema": {
  11357. "$ref": "#/components/schemas/UnauthorizedError"
  11358. }
  11359. }
  11360. }
  11361. }
  11362. },
  11363. "description": "Get current and default branch information for the requested location.",
  11364. "summary": "VCS info"
  11365. }
  11366. },
  11367. "/api/vcs/status": {
  11368. "get": {
  11369. "tags": [
  11370. "vcs"
  11371. ],
  11372. "operationId": "v2.vcs.status",
  11373. "parameters": [
  11374. {
  11375. "name": "location",
  11376. "in": "query",
  11377. "schema": {
  11378. "anyOf": [
  11379. {
  11380. "type": "object",
  11381. "properties": {
  11382. "directory": {
  11383. "anyOf": [
  11384. {
  11385. "type": "string"
  11386. },
  11387. {
  11388. "type": "null"
  11389. }
  11390. ]
  11391. },
  11392. "workspace": {
  11393. "anyOf": [
  11394. {
  11395. "type": "string"
  11396. },
  11397. {
  11398. "type": "null"
  11399. }
  11400. ]
  11401. }
  11402. },
  11403. "additionalProperties": false
  11404. },
  11405. {
  11406. "type": "null"
  11407. }
  11408. ]
  11409. },
  11410. "required": false,
  11411. "style": "deepObject",
  11412. "explode": true
  11413. }
  11414. ],
  11415. "security": [],
  11416. "responses": {
  11417. "200": {
  11418. "description": "Success",
  11419. "content": {
  11420. "application/json": {
  11421. "schema": {
  11422. "type": "object",
  11423. "properties": {
  11424. "location": {
  11425. "$ref": "#/components/schemas/Location.Info"
  11426. },
  11427. "data": {
  11428. "type": "array",
  11429. "items": {
  11430. "$ref": "#/components/schemas/Vcs.FileStatus"
  11431. }
  11432. }
  11433. },
  11434. "required": [
  11435. "location",
  11436. "data"
  11437. ],
  11438. "additionalProperties": false
  11439. }
  11440. }
  11441. }
  11442. },
  11443. "400": {
  11444. "description": "InvalidRequestError",
  11445. "content": {
  11446. "application/json": {
  11447. "schema": {
  11448. "$ref": "#/components/schemas/InvalidRequestError"
  11449. }
  11450. }
  11451. }
  11452. },
  11453. "401": {
  11454. "description": "UnauthorizedError",
  11455. "content": {
  11456. "application/json": {
  11457. "schema": {
  11458. "$ref": "#/components/schemas/UnauthorizedError"
  11459. }
  11460. }
  11461. }
  11462. }
  11463. },
  11464. "description": "List uncommitted working-copy changes relative to the requested location.",
  11465. "summary": "VCS status"
  11466. }
  11467. },
  11468. "/api/vcs/diff": {
  11469. "get": {
  11470. "tags": [
  11471. "vcs"
  11472. ],
  11473. "operationId": "v2.vcs.diff",
  11474. "parameters": [
  11475. {
  11476. "name": "location",
  11477. "in": "query",
  11478. "schema": {
  11479. "anyOf": [
  11480. {
  11481. "type": "object",
  11482. "properties": {
  11483. "directory": {
  11484. "anyOf": [
  11485. {
  11486. "type": "string"
  11487. },
  11488. {
  11489. "type": "null"
  11490. }
  11491. ]
  11492. },
  11493. "workspace": {
  11494. "anyOf": [
  11495. {
  11496. "type": "string"
  11497. },
  11498. {
  11499. "type": "null"
  11500. }
  11501. ]
  11502. }
  11503. },
  11504. "additionalProperties": false
  11505. },
  11506. {
  11507. "type": "null"
  11508. }
  11509. ]
  11510. },
  11511. "required": false,
  11512. "style": "deepObject",
  11513. "explode": true
  11514. },
  11515. {
  11516. "name": "mode",
  11517. "in": "query",
  11518. "schema": {
  11519. "$ref": "#/components/schemas/Vcs.Mode"
  11520. },
  11521. "required": true
  11522. },
  11523. {
  11524. "name": "context",
  11525. "in": "query",
  11526. "schema": {
  11527. "anyOf": [
  11528. {
  11529. "type": "string"
  11530. },
  11531. {
  11532. "type": "null"
  11533. }
  11534. ]
  11535. },
  11536. "required": false
  11537. }
  11538. ],
  11539. "security": [],
  11540. "responses": {
  11541. "200": {
  11542. "description": "Success",
  11543. "content": {
  11544. "application/json": {
  11545. "schema": {
  11546. "type": "object",
  11547. "properties": {
  11548. "location": {
  11549. "$ref": "#/components/schemas/Location.Info"
  11550. },
  11551. "data": {
  11552. "type": "array",
  11553. "items": {
  11554. "$ref": "#/components/schemas/FileDiff.Info"
  11555. }
  11556. }
  11557. },
  11558. "required": [
  11559. "location",
  11560. "data"
  11561. ],
  11562. "additionalProperties": false
  11563. }
  11564. }
  11565. }
  11566. },
  11567. "400": {
  11568. "description": "InvalidRequestError",
  11569. "content": {
  11570. "application/json": {
  11571. "schema": {
  11572. "$ref": "#/components/schemas/InvalidRequestError"
  11573. }
  11574. }
  11575. }
  11576. },
  11577. "401": {
  11578. "description": "UnauthorizedError",
  11579. "content": {
  11580. "application/json": {
  11581. "schema": {
  11582. "$ref": "#/components/schemas/UnauthorizedError"
  11583. }
  11584. }
  11585. }
  11586. }
  11587. },
  11588. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11589. "summary": "VCS diff"
  11590. }
  11591. },
  11592. "/api/debug/location": {
  11593. "get": {
  11594. "tags": [
  11595. "debug"
  11596. ],
  11597. "operationId": "v2.debug.location.list",
  11598. "parameters": [],
  11599. "security": [],
  11600. "responses": {
  11601. "200": {
  11602. "description": "Success",
  11603. "content": {
  11604. "application/json": {
  11605. "schema": {
  11606. "type": "array",
  11607. "items": {
  11608. "$ref": "#/components/schemas/Location.Ref"
  11609. }
  11610. }
  11611. }
  11612. }
  11613. },
  11614. "400": {
  11615. "description": "InvalidRequestError",
  11616. "content": {
  11617. "application/json": {
  11618. "schema": {
  11619. "$ref": "#/components/schemas/InvalidRequestError"
  11620. }
  11621. }
  11622. }
  11623. },
  11624. "401": {
  11625. "description": "UnauthorizedError",
  11626. "content": {
  11627. "application/json": {
  11628. "schema": {
  11629. "$ref": "#/components/schemas/UnauthorizedError"
  11630. }
  11631. }
  11632. }
  11633. }
  11634. },
  11635. "description": "List locations currently loaded by the server.",
  11636. "summary": "List loaded locations"
  11637. },
  11638. "delete": {
  11639. "tags": [
  11640. "debug"
  11641. ],
  11642. "operationId": "v2.debug.location.evict",
  11643. "parameters": [
  11644. {
  11645. "name": "location",
  11646. "in": "query",
  11647. "schema": {
  11648. "anyOf": [
  11649. {
  11650. "type": "object",
  11651. "properties": {
  11652. "directory": {
  11653. "anyOf": [
  11654. {
  11655. "type": "string"
  11656. },
  11657. {
  11658. "type": "null"
  11659. }
  11660. ]
  11661. },
  11662. "workspace": {
  11663. "anyOf": [
  11664. {
  11665. "type": "string"
  11666. },
  11667. {
  11668. "type": "null"
  11669. }
  11670. ]
  11671. }
  11672. },
  11673. "additionalProperties": false
  11674. },
  11675. {
  11676. "type": "null"
  11677. }
  11678. ]
  11679. },
  11680. "required": false,
  11681. "style": "deepObject",
  11682. "explode": true
  11683. }
  11684. ],
  11685. "security": [],
  11686. "responses": {
  11687. "204": {
  11688. "description": "<No Content>"
  11689. },
  11690. "400": {
  11691. "description": "InvalidRequestError",
  11692. "content": {
  11693. "application/json": {
  11694. "schema": {
  11695. "$ref": "#/components/schemas/InvalidRequestError"
  11696. }
  11697. }
  11698. }
  11699. },
  11700. "401": {
  11701. "description": "UnauthorizedError",
  11702. "content": {
  11703. "application/json": {
  11704. "schema": {
  11705. "$ref": "#/components/schemas/UnauthorizedError"
  11706. }
  11707. }
  11708. }
  11709. }
  11710. },
  11711. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11712. "summary": "Evict a loaded location"
  11713. }
  11714. },
  11715. "/api/experimental/migration/v1": {
  11716. "get": {
  11717. "tags": [
  11718. "migration"
  11719. ],
  11720. "operationId": "v2.experimental.migration.v1.status",
  11721. "parameters": [],
  11722. "security": [],
  11723. "responses": {
  11724. "200": {
  11725. "description": "Success",
  11726. "content": {
  11727. "application/json": {
  11728. "schema": {
  11729. "anyOf": [
  11730. {
  11731. "type": "object",
  11732. "properties": {
  11733. "status": {
  11734. "type": "string",
  11735. "enum": [
  11736. "required",
  11737. "completed"
  11738. ]
  11739. }
  11740. },
  11741. "required": [
  11742. "status"
  11743. ],
  11744. "additionalProperties": false
  11745. },
  11746. {
  11747. "type": "object",
  11748. "properties": {
  11749. "status": {
  11750. "type": "string",
  11751. "enum": [
  11752. "running"
  11753. ]
  11754. },
  11755. "progress": {
  11756. "type": "object",
  11757. "properties": {
  11758. "label": {
  11759. "type": "string"
  11760. },
  11761. "numerator": {
  11762. "anyOf": [
  11763. {
  11764. "type": "integer",
  11765. "allOf": [
  11766. {
  11767. "minimum": 0
  11768. }
  11769. ]
  11770. },
  11771. {
  11772. "type": "null"
  11773. }
  11774. ]
  11775. },
  11776. "denominator": {
  11777. "anyOf": [
  11778. {
  11779. "type": "integer",
  11780. "allOf": [
  11781. {
  11782. "minimum": 0
  11783. }
  11784. ]
  11785. },
  11786. {
  11787. "type": "null"
  11788. }
  11789. ]
  11790. }
  11791. },
  11792. "required": [
  11793. "label"
  11794. ],
  11795. "additionalProperties": false
  11796. }
  11797. },
  11798. "required": [
  11799. "status",
  11800. "progress"
  11801. ],
  11802. "additionalProperties": false
  11803. },
  11804. {
  11805. "type": "object",
  11806. "properties": {
  11807. "status": {
  11808. "type": "string",
  11809. "enum": [
  11810. "error"
  11811. ]
  11812. },
  11813. "error": {
  11814. "type": "string"
  11815. }
  11816. },
  11817. "required": [
  11818. "status",
  11819. "error"
  11820. ],
  11821. "additionalProperties": false
  11822. }
  11823. ]
  11824. }
  11825. }
  11826. }
  11827. },
  11828. "400": {
  11829. "description": "InvalidRequestError",
  11830. "content": {
  11831. "application/json": {
  11832. "schema": {
  11833. "$ref": "#/components/schemas/InvalidRequestError"
  11834. }
  11835. }
  11836. }
  11837. },
  11838. "401": {
  11839. "description": "UnauthorizedError",
  11840. "content": {
  11841. "application/json": {
  11842. "schema": {
  11843. "$ref": "#/components/schemas/UnauthorizedError"
  11844. }
  11845. }
  11846. }
  11847. }
  11848. },
  11849. "description": "Return the progress of the V1 to V2 session history migration.",
  11850. "summary": "Get V1 migration status"
  11851. }
  11852. },
  11853. "/api/websearch/provider": {
  11854. "get": {
  11855. "tags": [
  11856. "websearch"
  11857. ],
  11858. "operationId": "v2.websearch.providers",
  11859. "parameters": [
  11860. {
  11861. "name": "location",
  11862. "in": "query",
  11863. "schema": {
  11864. "anyOf": [
  11865. {
  11866. "type": "object",
  11867. "properties": {
  11868. "directory": {
  11869. "anyOf": [
  11870. {
  11871. "type": "string"
  11872. },
  11873. {
  11874. "type": "null"
  11875. }
  11876. ]
  11877. },
  11878. "workspace": {
  11879. "anyOf": [
  11880. {
  11881. "type": "string"
  11882. },
  11883. {
  11884. "type": "null"
  11885. }
  11886. ]
  11887. }
  11888. },
  11889. "additionalProperties": false
  11890. },
  11891. {
  11892. "type": "null"
  11893. }
  11894. ]
  11895. },
  11896. "required": false,
  11897. "style": "deepObject",
  11898. "explode": true
  11899. }
  11900. ],
  11901. "security": [],
  11902. "responses": {
  11903. "200": {
  11904. "description": "Success",
  11905. "content": {
  11906. "application/json": {
  11907. "schema": {
  11908. "type": "object",
  11909. "properties": {
  11910. "location": {
  11911. "$ref": "#/components/schemas/Location.Info"
  11912. },
  11913. "data": {
  11914. "type": "array",
  11915. "items": {
  11916. "$ref": "#/components/schemas/WebSearch.Provider"
  11917. }
  11918. }
  11919. },
  11920. "required": [
  11921. "location",
  11922. "data"
  11923. ],
  11924. "additionalProperties": false
  11925. }
  11926. }
  11927. }
  11928. },
  11929. "400": {
  11930. "description": "InvalidRequestError",
  11931. "content": {
  11932. "application/json": {
  11933. "schema": {
  11934. "$ref": "#/components/schemas/InvalidRequestError"
  11935. }
  11936. }
  11937. }
  11938. },
  11939. "401": {
  11940. "description": "UnauthorizedError",
  11941. "content": {
  11942. "application/json": {
  11943. "schema": {
  11944. "$ref": "#/components/schemas/UnauthorizedError"
  11945. }
  11946. }
  11947. }
  11948. },
  11949. "503": {
  11950. "description": "ServiceUnavailableError",
  11951. "content": {
  11952. "application/json": {
  11953. "schema": {
  11954. "$ref": "#/components/schemas/ServiceUnavailableError"
  11955. }
  11956. }
  11957. }
  11958. }
  11959. },
  11960. "description": "Return the registered web search providers.",
  11961. "summary": "List web search providers"
  11962. }
  11963. },
  11964. "/api/websearch": {
  11965. "post": {
  11966. "tags": [
  11967. "websearch"
  11968. ],
  11969. "operationId": "v2.websearch.query",
  11970. "parameters": [
  11971. {
  11972. "name": "location",
  11973. "in": "query",
  11974. "schema": {
  11975. "anyOf": [
  11976. {
  11977. "type": "object",
  11978. "properties": {
  11979. "directory": {
  11980. "anyOf": [
  11981. {
  11982. "type": "string"
  11983. },
  11984. {
  11985. "type": "null"
  11986. }
  11987. ]
  11988. },
  11989. "workspace": {
  11990. "anyOf": [
  11991. {
  11992. "type": "string"
  11993. },
  11994. {
  11995. "type": "null"
  11996. }
  11997. ]
  11998. }
  11999. },
  12000. "additionalProperties": false
  12001. },
  12002. {
  12003. "type": "null"
  12004. }
  12005. ]
  12006. },
  12007. "required": false,
  12008. "style": "deepObject",
  12009. "explode": true
  12010. }
  12011. ],
  12012. "security": [],
  12013. "responses": {
  12014. "200": {
  12015. "description": "Success",
  12016. "content": {
  12017. "application/json": {
  12018. "schema": {
  12019. "type": "object",
  12020. "properties": {
  12021. "location": {
  12022. "$ref": "#/components/schemas/Location.Info"
  12023. },
  12024. "data": {
  12025. "$ref": "#/components/schemas/WebSearch.Response"
  12026. }
  12027. },
  12028. "required": [
  12029. "location",
  12030. "data"
  12031. ],
  12032. "additionalProperties": false
  12033. }
  12034. }
  12035. }
  12036. },
  12037. "400": {
  12038. "description": "InvalidRequestError",
  12039. "content": {
  12040. "application/json": {
  12041. "schema": {
  12042. "anyOf": [
  12043. {
  12044. "$ref": "#/components/schemas/InvalidRequestError1"
  12045. },
  12046. {
  12047. "$ref": "#/components/schemas/InvalidRequestError"
  12048. }
  12049. ]
  12050. }
  12051. }
  12052. }
  12053. },
  12054. "401": {
  12055. "description": "UnauthorizedError",
  12056. "content": {
  12057. "application/json": {
  12058. "schema": {
  12059. "$ref": "#/components/schemas/UnauthorizedError"
  12060. }
  12061. }
  12062. }
  12063. },
  12064. "503": {
  12065. "description": "ServiceUnavailableError",
  12066. "content": {
  12067. "application/json": {
  12068. "schema": {
  12069. "$ref": "#/components/schemas/ServiceUnavailableError"
  12070. }
  12071. }
  12072. }
  12073. }
  12074. },
  12075. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  12076. "summary": "Search the web",
  12077. "requestBody": {
  12078. "content": {
  12079. "application/json": {
  12080. "schema": {
  12081. "type": "object",
  12082. "properties": {
  12083. "query": {
  12084. "type": "string"
  12085. },
  12086. "providerID": {
  12087. "type": "string"
  12088. }
  12089. },
  12090. "required": [
  12091. "query"
  12092. ],
  12093. "additionalProperties": false
  12094. }
  12095. }
  12096. },
  12097. "required": true
  12098. }
  12099. }
  12100. },
  12101. "/api/config": {
  12102. "get": {
  12103. "tags": [
  12104. "config"
  12105. ],
  12106. "operationId": "v2.config.get",
  12107. "parameters": [
  12108. {
  12109. "name": "location",
  12110. "in": "query",
  12111. "schema": {
  12112. "anyOf": [
  12113. {
  12114. "type": "object",
  12115. "properties": {
  12116. "directory": {
  12117. "anyOf": [
  12118. {
  12119. "type": "string"
  12120. },
  12121. {
  12122. "type": "null"
  12123. }
  12124. ]
  12125. },
  12126. "workspace": {
  12127. "anyOf": [
  12128. {
  12129. "type": "string"
  12130. },
  12131. {
  12132. "type": "null"
  12133. }
  12134. ]
  12135. }
  12136. },
  12137. "additionalProperties": false
  12138. },
  12139. {
  12140. "type": "null"
  12141. }
  12142. ]
  12143. },
  12144. "required": false,
  12145. "style": "deepObject",
  12146. "explode": true
  12147. }
  12148. ],
  12149. "security": [],
  12150. "responses": {
  12151. "200": {
  12152. "description": "Success",
  12153. "content": {
  12154. "application/json": {
  12155. "schema": {
  12156. "type": "array",
  12157. "items": {
  12158. "$ref": "#/components/schemas/Config.Entry"
  12159. }
  12160. }
  12161. }
  12162. }
  12163. },
  12164. "400": {
  12165. "description": "InvalidRequestError",
  12166. "content": {
  12167. "application/json": {
  12168. "schema": {
  12169. "$ref": "#/components/schemas/InvalidRequestError"
  12170. }
  12171. }
  12172. }
  12173. },
  12174. "401": {
  12175. "description": "UnauthorizedError",
  12176. "content": {
  12177. "application/json": {
  12178. "schema": {
  12179. "$ref": "#/components/schemas/UnauthorizedError"
  12180. }
  12181. }
  12182. }
  12183. }
  12184. },
  12185. "description": "Return configuration documents and discovery sources for the requested location, from lowest to highest priority.",
  12186. "summary": "Get configuration"
  12187. }
  12188. }
  12189. },
  12190. "components": {
  12191. "schemas": {
  12192. "ServiceHealth": {
  12193. "type": "object",
  12194. "properties": {
  12195. "healthy": {
  12196. "type": "boolean",
  12197. "enum": [
  12198. true
  12199. ]
  12200. },
  12201. "version": {
  12202. "type": "string"
  12203. },
  12204. "pid": {
  12205. "type": "integer",
  12206. "allOf": [
  12207. {
  12208. "exclusiveMinimum": 0
  12209. }
  12210. ]
  12211. }
  12212. },
  12213. "required": [
  12214. "healthy",
  12215. "version",
  12216. "pid"
  12217. ],
  12218. "additionalProperties": false
  12219. },
  12220. "UnauthorizedError": {
  12221. "type": "object",
  12222. "properties": {
  12223. "_tag": {
  12224. "type": "string",
  12225. "enum": [
  12226. "UnauthorizedError"
  12227. ]
  12228. },
  12229. "message": {
  12230. "type": "string"
  12231. }
  12232. },
  12233. "required": [
  12234. "_tag",
  12235. "message"
  12236. ],
  12237. "additionalProperties": false
  12238. },
  12239. "InvalidRequestError": {
  12240. "type": "object",
  12241. "properties": {
  12242. "_tag": {
  12243. "type": "string",
  12244. "enum": [
  12245. "InvalidRequestError"
  12246. ]
  12247. },
  12248. "message": {
  12249. "type": "string"
  12250. },
  12251. "kind": {
  12252. "anyOf": [
  12253. {
  12254. "type": "string"
  12255. },
  12256. {
  12257. "type": "null"
  12258. }
  12259. ]
  12260. },
  12261. "field": {
  12262. "anyOf": [
  12263. {
  12264. "type": "string"
  12265. },
  12266. {
  12267. "type": "null"
  12268. }
  12269. ]
  12270. }
  12271. },
  12272. "required": [
  12273. "_tag",
  12274. "message"
  12275. ],
  12276. "additionalProperties": false
  12277. },
  12278. "ServiceStopRequest": {
  12279. "type": "object",
  12280. "properties": {
  12281. "instanceID": {
  12282. "type": "string"
  12283. }
  12284. },
  12285. "required": [
  12286. "instanceID"
  12287. ],
  12288. "additionalProperties": false
  12289. },
  12290. "ServiceStopResponse": {
  12291. "type": "object",
  12292. "properties": {
  12293. "accepted": {
  12294. "type": "boolean"
  12295. }
  12296. },
  12297. "required": [
  12298. "accepted"
  12299. ],
  12300. "additionalProperties": false
  12301. },
  12302. "Location.Info": {
  12303. "type": "object",
  12304. "properties": {
  12305. "directory": {
  12306. "type": "string"
  12307. },
  12308. "workspaceID": {
  12309. "type": "string",
  12310. "allOf": [
  12311. {
  12312. "pattern": "^wrk"
  12313. }
  12314. ]
  12315. },
  12316. "project": {
  12317. "type": "object",
  12318. "properties": {
  12319. "id": {
  12320. "type": "string"
  12321. },
  12322. "directory": {
  12323. "type": "string"
  12324. },
  12325. "canonical": {
  12326. "type": "string"
  12327. }
  12328. },
  12329. "required": [
  12330. "id",
  12331. "directory",
  12332. "canonical"
  12333. ],
  12334. "additionalProperties": false
  12335. }
  12336. },
  12337. "required": [
  12338. "directory",
  12339. "project"
  12340. ],
  12341. "additionalProperties": false
  12342. },
  12343. "Model.Ref": {
  12344. "type": "object",
  12345. "properties": {
  12346. "id": {
  12347. "type": "string"
  12348. },
  12349. "providerID": {
  12350. "type": "string"
  12351. },
  12352. "variant": {
  12353. "type": "string"
  12354. }
  12355. },
  12356. "required": [
  12357. "id",
  12358. "providerID"
  12359. ],
  12360. "additionalProperties": false
  12361. },
  12362. "Provider.Settings": {
  12363. "type": "object"
  12364. },
  12365. "Provider.Request": {
  12366. "type": "object",
  12367. "properties": {
  12368. "settings": {
  12369. "$ref": "#/components/schemas/Provider.Settings"
  12370. },
  12371. "headers": {
  12372. "type": "object",
  12373. "additionalProperties": {
  12374. "type": "string"
  12375. }
  12376. },
  12377. "body": {
  12378. "type": "object"
  12379. }
  12380. },
  12381. "required": [
  12382. "settings",
  12383. "headers",
  12384. "body"
  12385. ],
  12386. "additionalProperties": false
  12387. },
  12388. "Agent.Color": {
  12389. "type": "string"
  12390. },
  12391. "Permission.Effect": {
  12392. "type": "string",
  12393. "enum": [
  12394. "allow",
  12395. "deny",
  12396. "ask"
  12397. ]
  12398. },
  12399. "Permission.Rule": {
  12400. "type": "object",
  12401. "properties": {
  12402. "action": {
  12403. "type": "string"
  12404. },
  12405. "resource": {
  12406. "type": "string"
  12407. },
  12408. "effect": {
  12409. "$ref": "#/components/schemas/Permission.Effect"
  12410. }
  12411. },
  12412. "required": [
  12413. "action",
  12414. "resource",
  12415. "effect"
  12416. ],
  12417. "additionalProperties": false
  12418. },
  12419. "Permission.Ruleset": {
  12420. "type": "array",
  12421. "items": {
  12422. "$ref": "#/components/schemas/Permission.Rule"
  12423. }
  12424. },
  12425. "Agent.Info": {
  12426. "type": "object",
  12427. "properties": {
  12428. "id": {
  12429. "type": "string"
  12430. },
  12431. "name": {
  12432. "type": "string"
  12433. },
  12434. "model": {
  12435. "$ref": "#/components/schemas/Model.Ref"
  12436. },
  12437. "request": {
  12438. "$ref": "#/components/schemas/Provider.Request"
  12439. },
  12440. "system": {
  12441. "type": "string"
  12442. },
  12443. "description": {
  12444. "type": "string"
  12445. },
  12446. "mode": {
  12447. "type": "string",
  12448. "enum": [
  12449. "subagent",
  12450. "primary",
  12451. "all"
  12452. ]
  12453. },
  12454. "hidden": {
  12455. "type": "boolean"
  12456. },
  12457. "color": {
  12458. "$ref": "#/components/schemas/Agent.Color"
  12459. },
  12460. "steps": {
  12461. "type": "integer",
  12462. "allOf": [
  12463. {
  12464. "exclusiveMinimum": 0
  12465. }
  12466. ]
  12467. },
  12468. "permissions": {
  12469. "$ref": "#/components/schemas/Permission.Ruleset"
  12470. }
  12471. },
  12472. "required": [
  12473. "id",
  12474. "name",
  12475. "request",
  12476. "mode",
  12477. "hidden",
  12478. "permissions"
  12479. ],
  12480. "additionalProperties": false
  12481. },
  12482. "AgentNotFoundError": {
  12483. "type": "object",
  12484. "properties": {
  12485. "_tag": {
  12486. "type": "string",
  12487. "enum": [
  12488. "AgentNotFoundError"
  12489. ]
  12490. },
  12491. "agentID": {
  12492. "type": "string"
  12493. },
  12494. "message": {
  12495. "type": "string"
  12496. }
  12497. },
  12498. "required": [
  12499. "_tag",
  12500. "agentID",
  12501. "message"
  12502. ],
  12503. "additionalProperties": false
  12504. },
  12505. "Plugin.Info": {
  12506. "type": "object",
  12507. "properties": {
  12508. "id": {
  12509. "type": "string"
  12510. }
  12511. },
  12512. "required": [
  12513. "id"
  12514. ],
  12515. "additionalProperties": false
  12516. },
  12517. "Session.ForkBoundary": {
  12518. "anyOf": [
  12519. {
  12520. "type": "object",
  12521. "properties": {
  12522. "type": {
  12523. "type": "string",
  12524. "enum": [
  12525. "before"
  12526. ]
  12527. },
  12528. "messageID": {
  12529. "type": "string",
  12530. "allOf": [
  12531. {
  12532. "pattern": "^msg_"
  12533. }
  12534. ]
  12535. }
  12536. },
  12537. "required": [
  12538. "type",
  12539. "messageID"
  12540. ],
  12541. "additionalProperties": false
  12542. },
  12543. {
  12544. "type": "object",
  12545. "properties": {
  12546. "type": {
  12547. "type": "string",
  12548. "enum": [
  12549. "through"
  12550. ]
  12551. },
  12552. "messageID": {
  12553. "type": "string",
  12554. "allOf": [
  12555. {
  12556. "pattern": "^msg_"
  12557. }
  12558. ]
  12559. }
  12560. },
  12561. "required": [
  12562. "type",
  12563. "messageID"
  12564. ],
  12565. "additionalProperties": false
  12566. }
  12567. ]
  12568. },
  12569. "Money.USD": {
  12570. "type": "number"
  12571. },
  12572. "TokenUsage.Info": {
  12573. "type": "object",
  12574. "properties": {
  12575. "input": {
  12576. "type": "number"
  12577. },
  12578. "output": {
  12579. "type": "number"
  12580. },
  12581. "reasoning": {
  12582. "type": "number"
  12583. },
  12584. "cache": {
  12585. "type": "object",
  12586. "properties": {
  12587. "read": {
  12588. "type": "number"
  12589. },
  12590. "write": {
  12591. "type": "number"
  12592. }
  12593. },
  12594. "required": [
  12595. "read",
  12596. "write"
  12597. ],
  12598. "additionalProperties": false
  12599. }
  12600. },
  12601. "required": [
  12602. "input",
  12603. "output",
  12604. "reasoning",
  12605. "cache"
  12606. ],
  12607. "additionalProperties": false
  12608. },
  12609. "Location.Ref": {
  12610. "type": "object",
  12611. "properties": {
  12612. "directory": {
  12613. "type": "string"
  12614. },
  12615. "workspaceID": {
  12616. "type": "string",
  12617. "allOf": [
  12618. {
  12619. "pattern": "^wrk"
  12620. }
  12621. ]
  12622. }
  12623. },
  12624. "required": [
  12625. "directory"
  12626. ],
  12627. "additionalProperties": false
  12628. },
  12629. "FileDiff.Info": {
  12630. "type": "object",
  12631. "properties": {
  12632. "file": {
  12633. "type": "string"
  12634. },
  12635. "patch": {
  12636. "type": "string"
  12637. },
  12638. "additions": {
  12639. "type": "integer",
  12640. "allOf": [
  12641. {
  12642. "minimum": 0
  12643. }
  12644. ]
  12645. },
  12646. "deletions": {
  12647. "type": "integer",
  12648. "allOf": [
  12649. {
  12650. "minimum": 0
  12651. }
  12652. ]
  12653. },
  12654. "status": {
  12655. "type": "string",
  12656. "enum": [
  12657. "added",
  12658. "deleted",
  12659. "modified"
  12660. ]
  12661. }
  12662. },
  12663. "required": [
  12664. "file",
  12665. "patch",
  12666. "additions",
  12667. "deletions",
  12668. "status"
  12669. ],
  12670. "additionalProperties": false
  12671. },
  12672. "Session.Revert": {
  12673. "type": "object",
  12674. "properties": {
  12675. "messageID": {
  12676. "type": "string",
  12677. "allOf": [
  12678. {
  12679. "pattern": "^msg_"
  12680. }
  12681. ]
  12682. },
  12683. "partID": {
  12684. "type": "string"
  12685. },
  12686. "snapshot": {
  12687. "type": "string"
  12688. },
  12689. "files": {
  12690. "type": "array",
  12691. "items": {
  12692. "$ref": "#/components/schemas/FileDiff.Info"
  12693. }
  12694. }
  12695. },
  12696. "required": [
  12697. "messageID"
  12698. ],
  12699. "additionalProperties": false
  12700. },
  12701. "Session.Info": {
  12702. "type": "object",
  12703. "properties": {
  12704. "id": {
  12705. "type": "string",
  12706. "allOf": [
  12707. {
  12708. "pattern": "^ses"
  12709. }
  12710. ]
  12711. },
  12712. "parentID": {
  12713. "type": "string",
  12714. "allOf": [
  12715. {
  12716. "pattern": "^ses"
  12717. }
  12718. ]
  12719. },
  12720. "fork": {
  12721. "type": "object",
  12722. "properties": {
  12723. "sessionID": {
  12724. "type": "string",
  12725. "allOf": [
  12726. {
  12727. "pattern": "^ses"
  12728. }
  12729. ]
  12730. },
  12731. "boundary": {
  12732. "$ref": "#/components/schemas/Session.ForkBoundary"
  12733. }
  12734. },
  12735. "required": [
  12736. "sessionID",
  12737. "boundary"
  12738. ],
  12739. "additionalProperties": false
  12740. },
  12741. "projectID": {
  12742. "type": "string"
  12743. },
  12744. "agent": {
  12745. "type": "string"
  12746. },
  12747. "model": {
  12748. "$ref": "#/components/schemas/Model.Ref"
  12749. },
  12750. "cost": {
  12751. "$ref": "#/components/schemas/Money.USD"
  12752. },
  12753. "tokens": {
  12754. "$ref": "#/components/schemas/TokenUsage.Info"
  12755. },
  12756. "time": {
  12757. "type": "object",
  12758. "properties": {
  12759. "created": {
  12760. "type": "number"
  12761. },
  12762. "updated": {
  12763. "type": "number"
  12764. },
  12765. "archived": {
  12766. "type": "number"
  12767. }
  12768. },
  12769. "required": [
  12770. "created",
  12771. "updated"
  12772. ],
  12773. "additionalProperties": false
  12774. },
  12775. "title": {
  12776. "type": "string"
  12777. },
  12778. "location": {
  12779. "$ref": "#/components/schemas/Location.Ref"
  12780. },
  12781. "subpath": {
  12782. "type": "string"
  12783. },
  12784. "revert": {
  12785. "$ref": "#/components/schemas/Session.Revert"
  12786. }
  12787. },
  12788. "required": [
  12789. "id",
  12790. "projectID",
  12791. "cost",
  12792. "tokens",
  12793. "time",
  12794. "location"
  12795. ],
  12796. "additionalProperties": false
  12797. },
  12798. "SessionsResponse": {
  12799. "type": "object",
  12800. "properties": {
  12801. "data": {
  12802. "type": "array",
  12803. "items": {
  12804. "$ref": "#/components/schemas/Session.Info"
  12805. }
  12806. },
  12807. "cursor": {
  12808. "type": "object",
  12809. "properties": {
  12810. "previous": {
  12811. "anyOf": [
  12812. {
  12813. "type": "string"
  12814. },
  12815. {
  12816. "type": "null"
  12817. }
  12818. ]
  12819. },
  12820. "next": {
  12821. "anyOf": [
  12822. {
  12823. "type": "string"
  12824. },
  12825. {
  12826. "type": "null"
  12827. }
  12828. ]
  12829. }
  12830. },
  12831. "additionalProperties": false
  12832. }
  12833. },
  12834. "required": [
  12835. "data",
  12836. "cursor"
  12837. ],
  12838. "additionalProperties": false
  12839. },
  12840. "InvalidCursorError": {
  12841. "type": "object",
  12842. "properties": {
  12843. "_tag": {
  12844. "type": "string",
  12845. "enum": [
  12846. "InvalidCursorError"
  12847. ]
  12848. },
  12849. "message": {
  12850. "type": "string"
  12851. }
  12852. },
  12853. "required": [
  12854. "_tag",
  12855. "message"
  12856. ],
  12857. "additionalProperties": false
  12858. },
  12859. "InvalidRequestError1": {
  12860. "type": "object",
  12861. "properties": {
  12862. "_tag": {
  12863. "type": "string",
  12864. "enum": [
  12865. "InvalidRequestError"
  12866. ]
  12867. },
  12868. "message": {
  12869. "type": "string"
  12870. },
  12871. "kind": {
  12872. "anyOf": [
  12873. {
  12874. "type": "string"
  12875. },
  12876. {
  12877. "type": "null"
  12878. }
  12879. ]
  12880. },
  12881. "field": {
  12882. "anyOf": [
  12883. {
  12884. "type": "string"
  12885. },
  12886. {
  12887. "type": "null"
  12888. }
  12889. ]
  12890. }
  12891. },
  12892. "required": [
  12893. "_tag",
  12894. "message"
  12895. ],
  12896. "additionalProperties": false
  12897. },
  12898. "SessionActive": {
  12899. "type": "object",
  12900. "properties": {
  12901. "type": {
  12902. "type": "string",
  12903. "enum": [
  12904. "running"
  12905. ]
  12906. }
  12907. },
  12908. "required": [
  12909. "type"
  12910. ],
  12911. "additionalProperties": false
  12912. },
  12913. "SessionNotFoundError": {
  12914. "type": "object",
  12915. "properties": {
  12916. "_tag": {
  12917. "type": "string",
  12918. "enum": [
  12919. "SessionNotFoundError"
  12920. ]
  12921. },
  12922. "sessionID": {
  12923. "type": "string"
  12924. },
  12925. "message": {
  12926. "type": "string"
  12927. }
  12928. },
  12929. "required": [
  12930. "_tag",
  12931. "sessionID",
  12932. "message"
  12933. ],
  12934. "additionalProperties": false
  12935. },
  12936. "Session.ForkRequestBoundary": {
  12937. "anyOf": [
  12938. {
  12939. "type": "object",
  12940. "properties": {
  12941. "type": {
  12942. "type": "string",
  12943. "enum": [
  12944. "before"
  12945. ]
  12946. },
  12947. "messageID": {
  12948. "type": "string",
  12949. "allOf": [
  12950. {
  12951. "pattern": "^msg_"
  12952. }
  12953. ]
  12954. }
  12955. },
  12956. "required": [
  12957. "type",
  12958. "messageID"
  12959. ],
  12960. "additionalProperties": false
  12961. },
  12962. {
  12963. "type": "object",
  12964. "properties": {
  12965. "type": {
  12966. "type": "string",
  12967. "enum": [
  12968. "through"
  12969. ]
  12970. }
  12971. },
  12972. "required": [
  12973. "type"
  12974. ],
  12975. "additionalProperties": false
  12976. }
  12977. ]
  12978. },
  12979. "MessageNotFoundError": {
  12980. "type": "object",
  12981. "properties": {
  12982. "_tag": {
  12983. "type": "string",
  12984. "enum": [
  12985. "MessageNotFoundError"
  12986. ]
  12987. },
  12988. "sessionID": {
  12989. "type": "string"
  12990. },
  12991. "messageID": {
  12992. "type": "string"
  12993. },
  12994. "message": {
  12995. "type": "string"
  12996. }
  12997. },
  12998. "required": [
  12999. "_tag",
  13000. "sessionID",
  13001. "messageID",
  13002. "message"
  13003. ],
  13004. "additionalProperties": false
  13005. },
  13006. "Prompt.Mention": {
  13007. "type": "object",
  13008. "properties": {
  13009. "start": {
  13010. "type": "number"
  13011. },
  13012. "end": {
  13013. "type": "number"
  13014. },
  13015. "text": {
  13016. "type": "string"
  13017. }
  13018. },
  13019. "required": [
  13020. "start",
  13021. "end",
  13022. "text"
  13023. ],
  13024. "additionalProperties": false
  13025. },
  13026. "PromptInput.FileAttachment": {
  13027. "type": "object",
  13028. "properties": {
  13029. "uri": {
  13030. "type": "string"
  13031. },
  13032. "name": {
  13033. "type": "string"
  13034. },
  13035. "description": {
  13036. "type": "string"
  13037. },
  13038. "mention": {
  13039. "$ref": "#/components/schemas/Prompt.Mention"
  13040. }
  13041. },
  13042. "required": [
  13043. "uri"
  13044. ],
  13045. "additionalProperties": false
  13046. },
  13047. "Prompt.AgentAttachment": {
  13048. "type": "object",
  13049. "properties": {
  13050. "name": {
  13051. "type": "string"
  13052. },
  13053. "mention": {
  13054. "$ref": "#/components/schemas/Prompt.Mention"
  13055. }
  13056. },
  13057. "required": [
  13058. "name"
  13059. ],
  13060. "additionalProperties": false
  13061. },
  13062. "Prompt.Base64": {
  13063. "type": "string",
  13064. "allOf": [
  13065. {
  13066. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  13067. }
  13068. ]
  13069. },
  13070. "Prompt.FileSource": {
  13071. "anyOf": [
  13072. {
  13073. "type": "object",
  13074. "properties": {
  13075. "type": {
  13076. "type": "string",
  13077. "enum": [
  13078. "inline"
  13079. ]
  13080. }
  13081. },
  13082. "required": [
  13083. "type"
  13084. ],
  13085. "additionalProperties": false
  13086. },
  13087. {
  13088. "type": "object",
  13089. "properties": {
  13090. "type": {
  13091. "type": "string",
  13092. "enum": [
  13093. "uri"
  13094. ]
  13095. },
  13096. "uri": {
  13097. "type": "string"
  13098. }
  13099. },
  13100. "required": [
  13101. "type",
  13102. "uri"
  13103. ],
  13104. "additionalProperties": false
  13105. }
  13106. ]
  13107. },
  13108. "Prompt.FileAttachment": {
  13109. "type": "object",
  13110. "properties": {
  13111. "data": {
  13112. "$ref": "#/components/schemas/Prompt.Base64"
  13113. },
  13114. "mime": {
  13115. "type": "string"
  13116. },
  13117. "source": {
  13118. "$ref": "#/components/schemas/Prompt.FileSource"
  13119. },
  13120. "name": {
  13121. "type": "string"
  13122. },
  13123. "description": {
  13124. "type": "string"
  13125. },
  13126. "mention": {
  13127. "$ref": "#/components/schemas/Prompt.Mention"
  13128. }
  13129. },
  13130. "required": [
  13131. "data",
  13132. "mime",
  13133. "source"
  13134. ],
  13135. "additionalProperties": false
  13136. },
  13137. "SessionPending.UserData": {
  13138. "type": "object",
  13139. "properties": {
  13140. "text": {
  13141. "type": "string"
  13142. },
  13143. "files": {
  13144. "type": "array",
  13145. "items": {
  13146. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13147. }
  13148. },
  13149. "agents": {
  13150. "type": "array",
  13151. "items": {
  13152. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13153. }
  13154. },
  13155. "metadata": {
  13156. "type": "object"
  13157. }
  13158. },
  13159. "required": [
  13160. "text"
  13161. ],
  13162. "additionalProperties": false
  13163. },
  13164. "SessionPending.User": {
  13165. "type": "object",
  13166. "properties": {
  13167. "id": {
  13168. "type": "string",
  13169. "allOf": [
  13170. {
  13171. "pattern": "^msg_"
  13172. }
  13173. ]
  13174. },
  13175. "sessionID": {
  13176. "type": "string",
  13177. "allOf": [
  13178. {
  13179. "pattern": "^ses"
  13180. }
  13181. ]
  13182. },
  13183. "timeCreated": {
  13184. "type": "number"
  13185. },
  13186. "type": {
  13187. "type": "string",
  13188. "enum": [
  13189. "user"
  13190. ]
  13191. },
  13192. "data": {
  13193. "$ref": "#/components/schemas/SessionPending.UserData"
  13194. },
  13195. "delivery": {
  13196. "type": "string",
  13197. "enum": [
  13198. "steer",
  13199. "queue"
  13200. ]
  13201. }
  13202. },
  13203. "required": [
  13204. "id",
  13205. "sessionID",
  13206. "timeCreated",
  13207. "type",
  13208. "data",
  13209. "delivery"
  13210. ],
  13211. "additionalProperties": false
  13212. },
  13213. "ConflictError": {
  13214. "type": "object",
  13215. "properties": {
  13216. "_tag": {
  13217. "type": "string",
  13218. "enum": [
  13219. "ConflictError"
  13220. ]
  13221. },
  13222. "message": {
  13223. "type": "string"
  13224. },
  13225. "resource": {
  13226. "anyOf": [
  13227. {
  13228. "type": "string"
  13229. },
  13230. {
  13231. "type": "null"
  13232. }
  13233. ]
  13234. }
  13235. },
  13236. "required": [
  13237. "_tag",
  13238. "message"
  13239. ],
  13240. "additionalProperties": false
  13241. },
  13242. "CommandNotFoundError": {
  13243. "type": "object",
  13244. "properties": {
  13245. "_tag": {
  13246. "type": "string",
  13247. "enum": [
  13248. "CommandNotFoundError"
  13249. ]
  13250. },
  13251. "command": {
  13252. "type": "string"
  13253. },
  13254. "message": {
  13255. "type": "string"
  13256. }
  13257. },
  13258. "required": [
  13259. "_tag",
  13260. "command",
  13261. "message"
  13262. ],
  13263. "additionalProperties": false
  13264. },
  13265. "CommandEvaluationError": {
  13266. "type": "object",
  13267. "properties": {
  13268. "_tag": {
  13269. "type": "string",
  13270. "enum": [
  13271. "CommandEvaluationError"
  13272. ]
  13273. },
  13274. "command": {
  13275. "type": "string"
  13276. },
  13277. "message": {
  13278. "type": "string"
  13279. }
  13280. },
  13281. "required": [
  13282. "_tag",
  13283. "command",
  13284. "message"
  13285. ],
  13286. "additionalProperties": false
  13287. },
  13288. "SkillNotFoundError": {
  13289. "type": "object",
  13290. "properties": {
  13291. "_tag": {
  13292. "type": "string",
  13293. "enum": [
  13294. "SkillNotFoundError"
  13295. ]
  13296. },
  13297. "skill": {
  13298. "type": "string"
  13299. },
  13300. "message": {
  13301. "type": "string"
  13302. }
  13303. },
  13304. "required": [
  13305. "_tag",
  13306. "skill",
  13307. "message"
  13308. ],
  13309. "additionalProperties": false
  13310. },
  13311. "SessionPending.SyntheticData": {
  13312. "type": "object",
  13313. "properties": {
  13314. "text": {
  13315. "type": "string"
  13316. },
  13317. "description": {
  13318. "type": "string"
  13319. },
  13320. "metadata": {
  13321. "type": "object"
  13322. }
  13323. },
  13324. "required": [
  13325. "text"
  13326. ],
  13327. "additionalProperties": false
  13328. },
  13329. "SessionPending.Synthetic": {
  13330. "type": "object",
  13331. "properties": {
  13332. "id": {
  13333. "type": "string",
  13334. "allOf": [
  13335. {
  13336. "pattern": "^msg_"
  13337. }
  13338. ]
  13339. },
  13340. "sessionID": {
  13341. "type": "string",
  13342. "allOf": [
  13343. {
  13344. "pattern": "^ses"
  13345. }
  13346. ]
  13347. },
  13348. "timeCreated": {
  13349. "type": "number"
  13350. },
  13351. "type": {
  13352. "type": "string",
  13353. "enum": [
  13354. "synthetic"
  13355. ]
  13356. },
  13357. "data": {
  13358. "$ref": "#/components/schemas/SessionPending.SyntheticData"
  13359. },
  13360. "delivery": {
  13361. "type": "string",
  13362. "enum": [
  13363. "steer",
  13364. "queue"
  13365. ]
  13366. }
  13367. },
  13368. "required": [
  13369. "id",
  13370. "sessionID",
  13371. "timeCreated",
  13372. "type",
  13373. "data",
  13374. "delivery"
  13375. ],
  13376. "additionalProperties": false
  13377. },
  13378. "SessionPending.Compaction": {
  13379. "type": "object",
  13380. "properties": {
  13381. "id": {
  13382. "type": "string",
  13383. "allOf": [
  13384. {
  13385. "pattern": "^msg_"
  13386. }
  13387. ]
  13388. },
  13389. "sessionID": {
  13390. "type": "string",
  13391. "allOf": [
  13392. {
  13393. "pattern": "^ses"
  13394. }
  13395. ]
  13396. },
  13397. "timeCreated": {
  13398. "type": "number"
  13399. },
  13400. "type": {
  13401. "type": "string",
  13402. "enum": [
  13403. "compaction"
  13404. ]
  13405. }
  13406. },
  13407. "required": [
  13408. "id",
  13409. "sessionID",
  13410. "timeCreated",
  13411. "type"
  13412. ],
  13413. "additionalProperties": false
  13414. },
  13415. "ServiceUnavailableError": {
  13416. "type": "object",
  13417. "properties": {
  13418. "_tag": {
  13419. "type": "string",
  13420. "enum": [
  13421. "ServiceUnavailableError"
  13422. ]
  13423. },
  13424. "message": {
  13425. "type": "string"
  13426. },
  13427. "service": {
  13428. "anyOf": [
  13429. {
  13430. "type": "string"
  13431. },
  13432. {
  13433. "type": "null"
  13434. }
  13435. ]
  13436. }
  13437. },
  13438. "required": [
  13439. "_tag",
  13440. "message"
  13441. ],
  13442. "additionalProperties": false
  13443. },
  13444. "SessionBusyError": {
  13445. "type": "object",
  13446. "properties": {
  13447. "_tag": {
  13448. "type": "string",
  13449. "enum": [
  13450. "SessionBusyError"
  13451. ]
  13452. },
  13453. "sessionID": {
  13454. "type": "string"
  13455. },
  13456. "message": {
  13457. "type": "string"
  13458. }
  13459. },
  13460. "required": [
  13461. "_tag",
  13462. "sessionID",
  13463. "message"
  13464. ],
  13465. "additionalProperties": false
  13466. },
  13467. "UnknownError": {
  13468. "type": "object",
  13469. "properties": {
  13470. "_tag": {
  13471. "type": "string",
  13472. "enum": [
  13473. "UnknownError"
  13474. ]
  13475. },
  13476. "message": {
  13477. "type": "string"
  13478. },
  13479. "ref": {
  13480. "anyOf": [
  13481. {
  13482. "type": "string"
  13483. },
  13484. {
  13485. "type": "null"
  13486. }
  13487. ]
  13488. }
  13489. },
  13490. "required": [
  13491. "_tag",
  13492. "message"
  13493. ],
  13494. "additionalProperties": false
  13495. },
  13496. "Session.Message.AgentSelected": {
  13497. "type": "object",
  13498. "properties": {
  13499. "id": {
  13500. "type": "string",
  13501. "allOf": [
  13502. {
  13503. "pattern": "^msg_"
  13504. }
  13505. ]
  13506. },
  13507. "metadata": {
  13508. "type": "object"
  13509. },
  13510. "time": {
  13511. "type": "object",
  13512. "properties": {
  13513. "created": {
  13514. "type": "number"
  13515. }
  13516. },
  13517. "required": [
  13518. "created"
  13519. ],
  13520. "additionalProperties": false
  13521. },
  13522. "type": {
  13523. "type": "string",
  13524. "enum": [
  13525. "agent-switched"
  13526. ]
  13527. },
  13528. "agent": {
  13529. "type": "string"
  13530. }
  13531. },
  13532. "required": [
  13533. "id",
  13534. "time",
  13535. "type",
  13536. "agent"
  13537. ],
  13538. "additionalProperties": false
  13539. },
  13540. "Session.Message.ModelSelected": {
  13541. "type": "object",
  13542. "properties": {
  13543. "id": {
  13544. "type": "string",
  13545. "allOf": [
  13546. {
  13547. "pattern": "^msg_"
  13548. }
  13549. ]
  13550. },
  13551. "metadata": {
  13552. "type": "object"
  13553. },
  13554. "time": {
  13555. "type": "object",
  13556. "properties": {
  13557. "created": {
  13558. "type": "number"
  13559. }
  13560. },
  13561. "required": [
  13562. "created"
  13563. ],
  13564. "additionalProperties": false
  13565. },
  13566. "type": {
  13567. "type": "string",
  13568. "enum": [
  13569. "model-switched"
  13570. ]
  13571. },
  13572. "model": {
  13573. "$ref": "#/components/schemas/Model.Ref"
  13574. },
  13575. "previous": {
  13576. "$ref": "#/components/schemas/Model.Ref"
  13577. }
  13578. },
  13579. "required": [
  13580. "id",
  13581. "time",
  13582. "type",
  13583. "model"
  13584. ],
  13585. "additionalProperties": false
  13586. },
  13587. "Session.Message.User": {
  13588. "type": "object",
  13589. "properties": {
  13590. "id": {
  13591. "type": "string",
  13592. "allOf": [
  13593. {
  13594. "pattern": "^msg_"
  13595. }
  13596. ]
  13597. },
  13598. "metadata": {
  13599. "type": "object"
  13600. },
  13601. "time": {
  13602. "type": "object",
  13603. "properties": {
  13604. "created": {
  13605. "type": "number"
  13606. }
  13607. },
  13608. "required": [
  13609. "created"
  13610. ],
  13611. "additionalProperties": false
  13612. },
  13613. "text": {
  13614. "type": "string"
  13615. },
  13616. "files": {
  13617. "type": "array",
  13618. "items": {
  13619. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13620. }
  13621. },
  13622. "agents": {
  13623. "type": "array",
  13624. "items": {
  13625. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13626. }
  13627. },
  13628. "type": {
  13629. "type": "string",
  13630. "enum": [
  13631. "user"
  13632. ]
  13633. }
  13634. },
  13635. "required": [
  13636. "id",
  13637. "time",
  13638. "text",
  13639. "type"
  13640. ],
  13641. "additionalProperties": false
  13642. },
  13643. "Session.Message.Synthetic": {
  13644. "type": "object",
  13645. "properties": {
  13646. "id": {
  13647. "type": "string",
  13648. "allOf": [
  13649. {
  13650. "pattern": "^msg_"
  13651. }
  13652. ]
  13653. },
  13654. "metadata": {
  13655. "type": "object"
  13656. },
  13657. "time": {
  13658. "type": "object",
  13659. "properties": {
  13660. "created": {
  13661. "type": "number"
  13662. }
  13663. },
  13664. "required": [
  13665. "created"
  13666. ],
  13667. "additionalProperties": false
  13668. },
  13669. "text": {
  13670. "type": "string"
  13671. },
  13672. "description": {
  13673. "type": "string"
  13674. },
  13675. "type": {
  13676. "type": "string",
  13677. "enum": [
  13678. "synthetic"
  13679. ]
  13680. }
  13681. },
  13682. "required": [
  13683. "id",
  13684. "time",
  13685. "text",
  13686. "type"
  13687. ],
  13688. "additionalProperties": false
  13689. },
  13690. "Session.Message.System": {
  13691. "type": "object",
  13692. "properties": {
  13693. "id": {
  13694. "type": "string",
  13695. "allOf": [
  13696. {
  13697. "pattern": "^msg_"
  13698. }
  13699. ]
  13700. },
  13701. "metadata": {
  13702. "type": "object"
  13703. },
  13704. "time": {
  13705. "type": "object",
  13706. "properties": {
  13707. "created": {
  13708. "type": "number"
  13709. }
  13710. },
  13711. "required": [
  13712. "created"
  13713. ],
  13714. "additionalProperties": false
  13715. },
  13716. "type": {
  13717. "type": "string",
  13718. "enum": [
  13719. "system"
  13720. ]
  13721. },
  13722. "text": {
  13723. "type": "string"
  13724. }
  13725. },
  13726. "required": [
  13727. "id",
  13728. "time",
  13729. "type",
  13730. "text"
  13731. ],
  13732. "additionalProperties": false
  13733. },
  13734. "Session.Message.Skill": {
  13735. "type": "object",
  13736. "properties": {
  13737. "id": {
  13738. "type": "string",
  13739. "allOf": [
  13740. {
  13741. "pattern": "^msg_"
  13742. }
  13743. ]
  13744. },
  13745. "metadata": {
  13746. "type": "object"
  13747. },
  13748. "time": {
  13749. "type": "object",
  13750. "properties": {
  13751. "created": {
  13752. "type": "number"
  13753. }
  13754. },
  13755. "required": [
  13756. "created"
  13757. ],
  13758. "additionalProperties": false
  13759. },
  13760. "type": {
  13761. "type": "string",
  13762. "enum": [
  13763. "skill"
  13764. ]
  13765. },
  13766. "skill": {
  13767. "type": "string"
  13768. },
  13769. "name": {
  13770. "type": "string"
  13771. },
  13772. "text": {
  13773. "type": "string"
  13774. }
  13775. },
  13776. "required": [
  13777. "id",
  13778. "time",
  13779. "type",
  13780. "skill",
  13781. "name",
  13782. "text"
  13783. ],
  13784. "additionalProperties": false
  13785. },
  13786. "Session.Message.Shell": {
  13787. "type": "object",
  13788. "properties": {
  13789. "id": {
  13790. "type": "string",
  13791. "allOf": [
  13792. {
  13793. "pattern": "^msg_"
  13794. }
  13795. ]
  13796. },
  13797. "metadata": {
  13798. "type": "object"
  13799. },
  13800. "time": {
  13801. "type": "object",
  13802. "properties": {
  13803. "created": {
  13804. "type": "number"
  13805. },
  13806. "completed": {
  13807. "type": "number"
  13808. }
  13809. },
  13810. "required": [
  13811. "created"
  13812. ],
  13813. "additionalProperties": false
  13814. },
  13815. "type": {
  13816. "type": "string",
  13817. "enum": [
  13818. "shell"
  13819. ]
  13820. },
  13821. "shellID": {
  13822. "type": "string",
  13823. "allOf": [
  13824. {
  13825. "pattern": "^sh_"
  13826. }
  13827. ]
  13828. },
  13829. "command": {
  13830. "type": "string"
  13831. },
  13832. "status": {
  13833. "type": "string",
  13834. "enum": [
  13835. "running",
  13836. "exited",
  13837. "timeout",
  13838. "killed"
  13839. ]
  13840. },
  13841. "exit": {
  13842. "anyOf": [
  13843. {
  13844. "anyOf": [
  13845. {
  13846. "type": "number"
  13847. },
  13848. {
  13849. "type": "string",
  13850. "enum": [
  13851. "NaN"
  13852. ]
  13853. },
  13854. {
  13855. "type": "string",
  13856. "enum": [
  13857. "Infinity"
  13858. ]
  13859. },
  13860. {
  13861. "type": "string",
  13862. "enum": [
  13863. "-Infinity"
  13864. ]
  13865. }
  13866. ]
  13867. },
  13868. {
  13869. "type": "string",
  13870. "enum": [
  13871. "Infinity",
  13872. "-Infinity",
  13873. "NaN"
  13874. ]
  13875. }
  13876. ]
  13877. },
  13878. "output": {
  13879. "type": "object",
  13880. "properties": {
  13881. "output": {
  13882. "type": "string"
  13883. },
  13884. "cursor": {
  13885. "type": "integer",
  13886. "allOf": [
  13887. {
  13888. "minimum": 0
  13889. }
  13890. ]
  13891. },
  13892. "size": {
  13893. "type": "integer",
  13894. "allOf": [
  13895. {
  13896. "minimum": 0
  13897. }
  13898. ]
  13899. },
  13900. "truncated": {
  13901. "type": "boolean"
  13902. }
  13903. },
  13904. "required": [
  13905. "output",
  13906. "cursor",
  13907. "size",
  13908. "truncated"
  13909. ],
  13910. "additionalProperties": false
  13911. }
  13912. },
  13913. "required": [
  13914. "id",
  13915. "time",
  13916. "type",
  13917. "shellID",
  13918. "command",
  13919. "status"
  13920. ],
  13921. "additionalProperties": false
  13922. },
  13923. "Session.Message.ProviderState": {
  13924. "type": "object"
  13925. },
  13926. "Session.Message.Assistant.Text": {
  13927. "type": "object",
  13928. "properties": {
  13929. "type": {
  13930. "type": "string",
  13931. "enum": [
  13932. "text"
  13933. ]
  13934. },
  13935. "text": {
  13936. "type": "string"
  13937. },
  13938. "state": {
  13939. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13940. }
  13941. },
  13942. "required": [
  13943. "type",
  13944. "text"
  13945. ],
  13946. "additionalProperties": false
  13947. },
  13948. "Session.Message.Assistant.Reasoning": {
  13949. "type": "object",
  13950. "properties": {
  13951. "type": {
  13952. "type": "string",
  13953. "enum": [
  13954. "reasoning"
  13955. ]
  13956. },
  13957. "text": {
  13958. "type": "string"
  13959. },
  13960. "state": {
  13961. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13962. },
  13963. "time": {
  13964. "type": "object",
  13965. "properties": {
  13966. "created": {
  13967. "type": "number"
  13968. },
  13969. "completed": {
  13970. "type": "number"
  13971. }
  13972. },
  13973. "required": [
  13974. "created"
  13975. ],
  13976. "additionalProperties": false
  13977. }
  13978. },
  13979. "required": [
  13980. "type",
  13981. "text"
  13982. ],
  13983. "additionalProperties": false
  13984. },
  13985. "Session.Message.ToolState.Streaming": {
  13986. "type": "object",
  13987. "properties": {
  13988. "status": {
  13989. "type": "string",
  13990. "enum": [
  13991. "streaming"
  13992. ]
  13993. },
  13994. "input": {
  13995. "type": "string"
  13996. }
  13997. },
  13998. "required": [
  13999. "status",
  14000. "input"
  14001. ],
  14002. "additionalProperties": false
  14003. },
  14004. "Session.Message.ToolState.Running": {
  14005. "type": "object",
  14006. "properties": {
  14007. "status": {
  14008. "type": "string",
  14009. "enum": [
  14010. "running"
  14011. ]
  14012. },
  14013. "input": {
  14014. "type": "object"
  14015. },
  14016. "metadata": {
  14017. "type": "object"
  14018. }
  14019. },
  14020. "required": [
  14021. "status",
  14022. "input",
  14023. "metadata"
  14024. ],
  14025. "additionalProperties": false
  14026. },
  14027. "Tool.TextContent": {
  14028. "type": "object",
  14029. "properties": {
  14030. "type": {
  14031. "type": "string",
  14032. "enum": [
  14033. "text"
  14034. ]
  14035. },
  14036. "text": {
  14037. "type": "string"
  14038. }
  14039. },
  14040. "required": [
  14041. "type",
  14042. "text"
  14043. ],
  14044. "additionalProperties": false
  14045. },
  14046. "Tool.FileContent": {
  14047. "type": "object",
  14048. "properties": {
  14049. "type": {
  14050. "type": "string",
  14051. "enum": [
  14052. "file"
  14053. ]
  14054. },
  14055. "uri": {
  14056. "type": "string"
  14057. },
  14058. "mime": {
  14059. "type": "string"
  14060. },
  14061. "name": {
  14062. "anyOf": [
  14063. {
  14064. "type": "string"
  14065. },
  14066. {
  14067. "type": "null"
  14068. }
  14069. ]
  14070. }
  14071. },
  14072. "required": [
  14073. "type",
  14074. "uri",
  14075. "mime"
  14076. ],
  14077. "additionalProperties": false
  14078. },
  14079. "Tool.Content": {
  14080. "anyOf": [
  14081. {
  14082. "$ref": "#/components/schemas/Tool.TextContent"
  14083. },
  14084. {
  14085. "$ref": "#/components/schemas/Tool.FileContent"
  14086. }
  14087. ]
  14088. },
  14089. "Session.Message.ToolState.Completed": {
  14090. "type": "object",
  14091. "properties": {
  14092. "status": {
  14093. "type": "string",
  14094. "enum": [
  14095. "completed"
  14096. ]
  14097. },
  14098. "input": {
  14099. "type": "object"
  14100. },
  14101. "content": {
  14102. "type": "array",
  14103. "prefixItems": [
  14104. {
  14105. "$ref": "#/components/schemas/Tool.Content"
  14106. }
  14107. ],
  14108. "minItems": 1,
  14109. "items": {
  14110. "$ref": "#/components/schemas/Tool.Content"
  14111. }
  14112. },
  14113. "metadata": {
  14114. "type": "object"
  14115. }
  14116. },
  14117. "required": [
  14118. "status",
  14119. "input",
  14120. "content"
  14121. ],
  14122. "additionalProperties": false
  14123. },
  14124. "Session.StructuredError": {
  14125. "type": "object",
  14126. "properties": {
  14127. "type": {
  14128. "type": "string"
  14129. },
  14130. "message": {
  14131. "type": "string"
  14132. },
  14133. "status": {
  14134. "type": "integer",
  14135. "allOf": [
  14136. {
  14137. "minimum": 100,
  14138. "maximum": 599
  14139. }
  14140. ]
  14141. }
  14142. },
  14143. "required": [
  14144. "type",
  14145. "message"
  14146. ],
  14147. "additionalProperties": false
  14148. },
  14149. "Session.Message.ToolState.Error": {
  14150. "type": "object",
  14151. "properties": {
  14152. "status": {
  14153. "type": "string",
  14154. "enum": [
  14155. "error"
  14156. ]
  14157. },
  14158. "input": {
  14159. "type": "object"
  14160. },
  14161. "error": {
  14162. "$ref": "#/components/schemas/Session.StructuredError"
  14163. },
  14164. "content": {
  14165. "type": "array",
  14166. "prefixItems": [
  14167. {
  14168. "$ref": "#/components/schemas/Tool.Content"
  14169. }
  14170. ],
  14171. "minItems": 1,
  14172. "items": {
  14173. "$ref": "#/components/schemas/Tool.Content"
  14174. }
  14175. },
  14176. "metadata": {
  14177. "type": "object"
  14178. }
  14179. },
  14180. "required": [
  14181. "status",
  14182. "input",
  14183. "error"
  14184. ],
  14185. "additionalProperties": false
  14186. },
  14187. "Session.Message.Assistant.Tool": {
  14188. "type": "object",
  14189. "properties": {
  14190. "type": {
  14191. "type": "string",
  14192. "enum": [
  14193. "tool"
  14194. ]
  14195. },
  14196. "id": {
  14197. "type": "string"
  14198. },
  14199. "name": {
  14200. "type": "string"
  14201. },
  14202. "executed": {
  14203. "type": "boolean"
  14204. },
  14205. "providerState": {
  14206. "$ref": "#/components/schemas/Session.Message.ProviderState"
  14207. },
  14208. "providerResultState": {
  14209. "$ref": "#/components/schemas/Session.Message.ProviderState"
  14210. },
  14211. "state": {
  14212. "anyOf": [
  14213. {
  14214. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  14215. },
  14216. {
  14217. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  14218. },
  14219. {
  14220. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  14221. },
  14222. {
  14223. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  14224. }
  14225. ]
  14226. },
  14227. "time": {
  14228. "type": "object",
  14229. "properties": {
  14230. "created": {
  14231. "type": "number"
  14232. },
  14233. "ran": {
  14234. "type": "number"
  14235. },
  14236. "completed": {
  14237. "type": "number"
  14238. }
  14239. },
  14240. "required": [
  14241. "created"
  14242. ],
  14243. "additionalProperties": false
  14244. }
  14245. },
  14246. "required": [
  14247. "type",
  14248. "id",
  14249. "name",
  14250. "state",
  14251. "time"
  14252. ],
  14253. "additionalProperties": false
  14254. },
  14255. "Session.Message.Assistant.Retry": {
  14256. "type": "object",
  14257. "properties": {
  14258. "attempt": {
  14259. "type": "integer",
  14260. "allOf": [
  14261. {
  14262. "exclusiveMinimum": 0
  14263. }
  14264. ]
  14265. },
  14266. "at": {
  14267. "type": "number"
  14268. },
  14269. "error": {
  14270. "$ref": "#/components/schemas/Session.StructuredError"
  14271. }
  14272. },
  14273. "required": [
  14274. "attempt",
  14275. "at",
  14276. "error"
  14277. ],
  14278. "additionalProperties": false
  14279. },
  14280. "Session.Message.Assistant": {
  14281. "type": "object",
  14282. "properties": {
  14283. "id": {
  14284. "type": "string",
  14285. "allOf": [
  14286. {
  14287. "pattern": "^msg_"
  14288. }
  14289. ]
  14290. },
  14291. "metadata": {
  14292. "type": "object"
  14293. },
  14294. "time": {
  14295. "type": "object",
  14296. "properties": {
  14297. "created": {
  14298. "type": "number"
  14299. },
  14300. "completed": {
  14301. "type": "number"
  14302. }
  14303. },
  14304. "required": [
  14305. "created"
  14306. ],
  14307. "additionalProperties": false
  14308. },
  14309. "type": {
  14310. "type": "string",
  14311. "enum": [
  14312. "assistant"
  14313. ]
  14314. },
  14315. "agent": {
  14316. "type": "string"
  14317. },
  14318. "model": {
  14319. "$ref": "#/components/schemas/Model.Ref"
  14320. },
  14321. "content": {
  14322. "type": "array",
  14323. "items": {
  14324. "anyOf": [
  14325. {
  14326. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  14327. },
  14328. {
  14329. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  14330. },
  14331. {
  14332. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  14333. }
  14334. ]
  14335. }
  14336. },
  14337. "snapshot": {
  14338. "type": "object",
  14339. "properties": {
  14340. "start": {
  14341. "type": "string"
  14342. },
  14343. "end": {
  14344. "type": "string"
  14345. },
  14346. "files": {
  14347. "type": "array",
  14348. "items": {
  14349. "type": "string"
  14350. }
  14351. }
  14352. },
  14353. "additionalProperties": false
  14354. },
  14355. "finish": {
  14356. "type": "string",
  14357. "enum": [
  14358. "stop",
  14359. "length",
  14360. "tool-calls",
  14361. "content-filter",
  14362. "error",
  14363. "unknown"
  14364. ]
  14365. },
  14366. "cost": {
  14367. "$ref": "#/components/schemas/Money.USD"
  14368. },
  14369. "tokens": {
  14370. "$ref": "#/components/schemas/TokenUsage.Info"
  14371. },
  14372. "error": {
  14373. "$ref": "#/components/schemas/Session.StructuredError"
  14374. },
  14375. "retry": {
  14376. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  14377. }
  14378. },
  14379. "required": [
  14380. "id",
  14381. "time",
  14382. "type",
  14383. "agent",
  14384. "model",
  14385. "content"
  14386. ],
  14387. "additionalProperties": false
  14388. },
  14389. "Session.Message.Compaction.Running": {
  14390. "type": "object",
  14391. "properties": {
  14392. "type": {
  14393. "type": "string",
  14394. "enum": [
  14395. "compaction"
  14396. ]
  14397. },
  14398. "id": {
  14399. "type": "string",
  14400. "allOf": [
  14401. {
  14402. "pattern": "^msg_"
  14403. }
  14404. ]
  14405. },
  14406. "metadata": {
  14407. "type": "object"
  14408. },
  14409. "time": {
  14410. "type": "object",
  14411. "properties": {
  14412. "created": {
  14413. "type": "number"
  14414. }
  14415. },
  14416. "required": [
  14417. "created"
  14418. ],
  14419. "additionalProperties": false
  14420. },
  14421. "status": {
  14422. "type": "string",
  14423. "enum": [
  14424. "running"
  14425. ]
  14426. },
  14427. "reason": {
  14428. "type": "string",
  14429. "enum": [
  14430. "auto",
  14431. "manual"
  14432. ]
  14433. },
  14434. "summary": {
  14435. "type": "string"
  14436. },
  14437. "recent": {
  14438. "type": "string"
  14439. }
  14440. },
  14441. "required": [
  14442. "type",
  14443. "id",
  14444. "time",
  14445. "status",
  14446. "reason",
  14447. "summary",
  14448. "recent"
  14449. ],
  14450. "additionalProperties": false
  14451. },
  14452. "Session.Message.Compaction.Completed": {
  14453. "type": "object",
  14454. "properties": {
  14455. "type": {
  14456. "type": "string",
  14457. "enum": [
  14458. "compaction"
  14459. ]
  14460. },
  14461. "id": {
  14462. "type": "string",
  14463. "allOf": [
  14464. {
  14465. "pattern": "^msg_"
  14466. }
  14467. ]
  14468. },
  14469. "metadata": {
  14470. "type": "object"
  14471. },
  14472. "time": {
  14473. "type": "object",
  14474. "properties": {
  14475. "created": {
  14476. "type": "number"
  14477. }
  14478. },
  14479. "required": [
  14480. "created"
  14481. ],
  14482. "additionalProperties": false
  14483. },
  14484. "status": {
  14485. "type": "string",
  14486. "enum": [
  14487. "completed"
  14488. ]
  14489. },
  14490. "reason": {
  14491. "type": "string",
  14492. "enum": [
  14493. "auto",
  14494. "manual"
  14495. ]
  14496. },
  14497. "summary": {
  14498. "type": "string"
  14499. },
  14500. "recent": {
  14501. "type": "string"
  14502. }
  14503. },
  14504. "required": [
  14505. "type",
  14506. "id",
  14507. "time",
  14508. "status",
  14509. "reason",
  14510. "summary",
  14511. "recent"
  14512. ],
  14513. "additionalProperties": false
  14514. },
  14515. "Session.Message.Compaction.Failed": {
  14516. "type": "object",
  14517. "properties": {
  14518. "type": {
  14519. "type": "string",
  14520. "enum": [
  14521. "compaction"
  14522. ]
  14523. },
  14524. "id": {
  14525. "type": "string",
  14526. "allOf": [
  14527. {
  14528. "pattern": "^msg_"
  14529. }
  14530. ]
  14531. },
  14532. "metadata": {
  14533. "type": "object"
  14534. },
  14535. "time": {
  14536. "type": "object",
  14537. "properties": {
  14538. "created": {
  14539. "type": "number"
  14540. }
  14541. },
  14542. "required": [
  14543. "created"
  14544. ],
  14545. "additionalProperties": false
  14546. },
  14547. "status": {
  14548. "type": "string",
  14549. "enum": [
  14550. "failed"
  14551. ]
  14552. },
  14553. "reason": {
  14554. "type": "string",
  14555. "enum": [
  14556. "auto",
  14557. "manual"
  14558. ]
  14559. },
  14560. "error": {
  14561. "$ref": "#/components/schemas/Session.StructuredError"
  14562. }
  14563. },
  14564. "required": [
  14565. "type",
  14566. "id",
  14567. "time",
  14568. "status",
  14569. "reason",
  14570. "error"
  14571. ],
  14572. "additionalProperties": false
  14573. },
  14574. "Session.Message.Compaction": {
  14575. "anyOf": [
  14576. {
  14577. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  14578. },
  14579. {
  14580. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  14581. },
  14582. {
  14583. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  14584. }
  14585. ]
  14586. },
  14587. "Session.Message.Info": {
  14588. "anyOf": [
  14589. {
  14590. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  14591. },
  14592. {
  14593. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  14594. },
  14595. {
  14596. "$ref": "#/components/schemas/Session.Message.User"
  14597. },
  14598. {
  14599. "$ref": "#/components/schemas/Session.Message.Synthetic"
  14600. },
  14601. {
  14602. "$ref": "#/components/schemas/Session.Message.System"
  14603. },
  14604. {
  14605. "$ref": "#/components/schemas/Session.Message.Skill"
  14606. },
  14607. {
  14608. "$ref": "#/components/schemas/Session.Message.Shell"
  14609. },
  14610. {
  14611. "$ref": "#/components/schemas/Session.Message.Assistant"
  14612. },
  14613. {
  14614. "$ref": "#/components/schemas/Session.Message.Compaction"
  14615. }
  14616. ]
  14617. },
  14618. "SessionPending.Info": {
  14619. "anyOf": [
  14620. {
  14621. "$ref": "#/components/schemas/SessionPending.User"
  14622. },
  14623. {
  14624. "$ref": "#/components/schemas/SessionPending.Synthetic"
  14625. },
  14626. {
  14627. "$ref": "#/components/schemas/SessionPending.Compaction"
  14628. }
  14629. ]
  14630. },
  14631. "InstructionEntry.Key": {
  14632. "type": "string",
  14633. "allOf": [
  14634. {
  14635. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  14636. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  14637. }
  14638. ]
  14639. },
  14640. "InstructionEntry.Info": {
  14641. "type": "object",
  14642. "properties": {
  14643. "key": {
  14644. "$ref": "#/components/schemas/InstructionEntry.Key"
  14645. },
  14646. "value": {}
  14647. },
  14648. "required": [
  14649. "key",
  14650. "value"
  14651. ],
  14652. "additionalProperties": false
  14653. },
  14654. "InstructionEntryValueTooLargeError": {
  14655. "type": "object",
  14656. "properties": {
  14657. "_tag": {
  14658. "type": "string",
  14659. "enum": [
  14660. "InstructionEntryValueTooLargeError"
  14661. ]
  14662. },
  14663. "actualBytes": {
  14664. "type": "integer"
  14665. },
  14666. "maxBytes": {
  14667. "type": "integer"
  14668. },
  14669. "message": {
  14670. "type": "string"
  14671. }
  14672. },
  14673. "required": [
  14674. "_tag",
  14675. "actualBytes",
  14676. "maxBytes",
  14677. "message"
  14678. ],
  14679. "additionalProperties": false
  14680. },
  14681. "SessionGenerateResponse": {
  14682. "type": "object",
  14683. "properties": {
  14684. "data": {
  14685. "type": "object",
  14686. "properties": {
  14687. "text": {
  14688. "type": "string"
  14689. }
  14690. },
  14691. "required": [
  14692. "text"
  14693. ],
  14694. "additionalProperties": false
  14695. }
  14696. },
  14697. "required": [
  14698. "data"
  14699. ],
  14700. "additionalProperties": false
  14701. },
  14702. "session.created": {
  14703. "type": "object",
  14704. "properties": {
  14705. "id": {
  14706. "type": "string",
  14707. "allOf": [
  14708. {
  14709. "pattern": "^evt_"
  14710. }
  14711. ]
  14712. },
  14713. "created": {
  14714. "type": "number"
  14715. },
  14716. "metadata": {
  14717. "type": "object"
  14718. },
  14719. "type": {
  14720. "type": "string",
  14721. "enum": [
  14722. "session.created"
  14723. ]
  14724. },
  14725. "durable": {
  14726. "type": "object",
  14727. "properties": {
  14728. "aggregateID": {
  14729. "type": "string"
  14730. },
  14731. "seq": {
  14732. "type": "integer",
  14733. "allOf": [
  14734. {
  14735. "minimum": 0
  14736. }
  14737. ]
  14738. },
  14739. "version": {
  14740. "type": "number",
  14741. "enum": [
  14742. 1
  14743. ]
  14744. }
  14745. },
  14746. "required": [
  14747. "aggregateID",
  14748. "seq",
  14749. "version"
  14750. ],
  14751. "additionalProperties": false
  14752. },
  14753. "location": {
  14754. "$ref": "#/components/schemas/Location.Ref"
  14755. },
  14756. "data": {
  14757. "type": "object",
  14758. "properties": {
  14759. "sessionID": {
  14760. "type": "string",
  14761. "allOf": [
  14762. {
  14763. "pattern": "^ses"
  14764. }
  14765. ]
  14766. },
  14767. "projectID": {
  14768. "type": "string"
  14769. },
  14770. "location": {
  14771. "$ref": "#/components/schemas/Location.Ref"
  14772. },
  14773. "subpath": {
  14774. "type": "string"
  14775. },
  14776. "parentID": {
  14777. "type": "string",
  14778. "allOf": [
  14779. {
  14780. "pattern": "^ses"
  14781. }
  14782. ]
  14783. },
  14784. "slug": {
  14785. "type": "string"
  14786. },
  14787. "title": {
  14788. "type": "string"
  14789. },
  14790. "agent": {
  14791. "type": "string"
  14792. },
  14793. "model": {
  14794. "$ref": "#/components/schemas/Model.Ref"
  14795. },
  14796. "version": {
  14797. "type": "string"
  14798. }
  14799. },
  14800. "required": [
  14801. "sessionID",
  14802. "projectID",
  14803. "location",
  14804. "slug",
  14805. "version"
  14806. ],
  14807. "additionalProperties": false
  14808. }
  14809. },
  14810. "required": [
  14811. "id",
  14812. "created",
  14813. "type",
  14814. "durable",
  14815. "data"
  14816. ],
  14817. "additionalProperties": false
  14818. },
  14819. "session.agent.selected": {
  14820. "type": "object",
  14821. "properties": {
  14822. "id": {
  14823. "type": "string",
  14824. "allOf": [
  14825. {
  14826. "pattern": "^evt_"
  14827. }
  14828. ]
  14829. },
  14830. "created": {
  14831. "type": "number"
  14832. },
  14833. "metadata": {
  14834. "type": "object"
  14835. },
  14836. "type": {
  14837. "type": "string",
  14838. "enum": [
  14839. "session.agent.selected"
  14840. ]
  14841. },
  14842. "durable": {
  14843. "type": "object",
  14844. "properties": {
  14845. "aggregateID": {
  14846. "type": "string"
  14847. },
  14848. "seq": {
  14849. "type": "integer",
  14850. "allOf": [
  14851. {
  14852. "minimum": 0
  14853. }
  14854. ]
  14855. },
  14856. "version": {
  14857. "type": "number",
  14858. "enum": [
  14859. 1
  14860. ]
  14861. }
  14862. },
  14863. "required": [
  14864. "aggregateID",
  14865. "seq",
  14866. "version"
  14867. ],
  14868. "additionalProperties": false
  14869. },
  14870. "location": {
  14871. "$ref": "#/components/schemas/Location.Ref"
  14872. },
  14873. "data": {
  14874. "type": "object",
  14875. "properties": {
  14876. "sessionID": {
  14877. "type": "string",
  14878. "allOf": [
  14879. {
  14880. "pattern": "^ses"
  14881. }
  14882. ]
  14883. },
  14884. "agent": {
  14885. "type": "string"
  14886. }
  14887. },
  14888. "required": [
  14889. "sessionID",
  14890. "agent"
  14891. ],
  14892. "additionalProperties": false
  14893. }
  14894. },
  14895. "required": [
  14896. "id",
  14897. "created",
  14898. "type",
  14899. "durable",
  14900. "data"
  14901. ],
  14902. "additionalProperties": false
  14903. },
  14904. "session.model.selected": {
  14905. "type": "object",
  14906. "properties": {
  14907. "id": {
  14908. "type": "string",
  14909. "allOf": [
  14910. {
  14911. "pattern": "^evt_"
  14912. }
  14913. ]
  14914. },
  14915. "created": {
  14916. "type": "number"
  14917. },
  14918. "metadata": {
  14919. "type": "object"
  14920. },
  14921. "type": {
  14922. "type": "string",
  14923. "enum": [
  14924. "session.model.selected"
  14925. ]
  14926. },
  14927. "durable": {
  14928. "type": "object",
  14929. "properties": {
  14930. "aggregateID": {
  14931. "type": "string"
  14932. },
  14933. "seq": {
  14934. "type": "integer",
  14935. "allOf": [
  14936. {
  14937. "minimum": 0
  14938. }
  14939. ]
  14940. },
  14941. "version": {
  14942. "type": "number",
  14943. "enum": [
  14944. 1
  14945. ]
  14946. }
  14947. },
  14948. "required": [
  14949. "aggregateID",
  14950. "seq",
  14951. "version"
  14952. ],
  14953. "additionalProperties": false
  14954. },
  14955. "location": {
  14956. "$ref": "#/components/schemas/Location.Ref"
  14957. },
  14958. "data": {
  14959. "type": "object",
  14960. "properties": {
  14961. "sessionID": {
  14962. "type": "string",
  14963. "allOf": [
  14964. {
  14965. "pattern": "^ses"
  14966. }
  14967. ]
  14968. },
  14969. "model": {
  14970. "$ref": "#/components/schemas/Model.Ref"
  14971. }
  14972. },
  14973. "required": [
  14974. "sessionID",
  14975. "model"
  14976. ],
  14977. "additionalProperties": false
  14978. }
  14979. },
  14980. "required": [
  14981. "id",
  14982. "created",
  14983. "type",
  14984. "durable",
  14985. "data"
  14986. ],
  14987. "additionalProperties": false
  14988. },
  14989. "session.moved": {
  14990. "type": "object",
  14991. "properties": {
  14992. "id": {
  14993. "type": "string",
  14994. "allOf": [
  14995. {
  14996. "pattern": "^evt_"
  14997. }
  14998. ]
  14999. },
  15000. "created": {
  15001. "type": "number"
  15002. },
  15003. "metadata": {
  15004. "type": "object"
  15005. },
  15006. "type": {
  15007. "type": "string",
  15008. "enum": [
  15009. "session.moved"
  15010. ]
  15011. },
  15012. "durable": {
  15013. "type": "object",
  15014. "properties": {
  15015. "aggregateID": {
  15016. "type": "string"
  15017. },
  15018. "seq": {
  15019. "type": "integer",
  15020. "allOf": [
  15021. {
  15022. "minimum": 0
  15023. }
  15024. ]
  15025. },
  15026. "version": {
  15027. "type": "number",
  15028. "enum": [
  15029. 1
  15030. ]
  15031. }
  15032. },
  15033. "required": [
  15034. "aggregateID",
  15035. "seq",
  15036. "version"
  15037. ],
  15038. "additionalProperties": false
  15039. },
  15040. "location": {
  15041. "$ref": "#/components/schemas/Location.Ref"
  15042. },
  15043. "data": {
  15044. "type": "object",
  15045. "properties": {
  15046. "sessionID": {
  15047. "type": "string",
  15048. "allOf": [
  15049. {
  15050. "pattern": "^ses"
  15051. }
  15052. ]
  15053. },
  15054. "location": {
  15055. "$ref": "#/components/schemas/Location.Ref"
  15056. },
  15057. "projectID": {
  15058. "type": "string"
  15059. },
  15060. "subpath": {
  15061. "type": "string"
  15062. }
  15063. },
  15064. "required": [
  15065. "sessionID",
  15066. "location"
  15067. ],
  15068. "additionalProperties": false
  15069. }
  15070. },
  15071. "required": [
  15072. "id",
  15073. "created",
  15074. "type",
  15075. "durable",
  15076. "data"
  15077. ],
  15078. "additionalProperties": false
  15079. },
  15080. "session.renamed": {
  15081. "type": "object",
  15082. "properties": {
  15083. "id": {
  15084. "type": "string",
  15085. "allOf": [
  15086. {
  15087. "pattern": "^evt_"
  15088. }
  15089. ]
  15090. },
  15091. "created": {
  15092. "type": "number"
  15093. },
  15094. "metadata": {
  15095. "type": "object"
  15096. },
  15097. "type": {
  15098. "type": "string",
  15099. "enum": [
  15100. "session.renamed"
  15101. ]
  15102. },
  15103. "durable": {
  15104. "type": "object",
  15105. "properties": {
  15106. "aggregateID": {
  15107. "type": "string"
  15108. },
  15109. "seq": {
  15110. "type": "integer",
  15111. "allOf": [
  15112. {
  15113. "minimum": 0
  15114. }
  15115. ]
  15116. },
  15117. "version": {
  15118. "type": "number",
  15119. "enum": [
  15120. 1
  15121. ]
  15122. }
  15123. },
  15124. "required": [
  15125. "aggregateID",
  15126. "seq",
  15127. "version"
  15128. ],
  15129. "additionalProperties": false
  15130. },
  15131. "location": {
  15132. "$ref": "#/components/schemas/Location.Ref"
  15133. },
  15134. "data": {
  15135. "type": "object",
  15136. "properties": {
  15137. "sessionID": {
  15138. "type": "string",
  15139. "allOf": [
  15140. {
  15141. "pattern": "^ses"
  15142. }
  15143. ]
  15144. },
  15145. "title": {
  15146. "type": "string"
  15147. }
  15148. },
  15149. "required": [
  15150. "sessionID",
  15151. "title"
  15152. ],
  15153. "additionalProperties": false
  15154. }
  15155. },
  15156. "required": [
  15157. "id",
  15158. "created",
  15159. "type",
  15160. "durable",
  15161. "data"
  15162. ],
  15163. "additionalProperties": false
  15164. },
  15165. "session.deleted": {
  15166. "type": "object",
  15167. "properties": {
  15168. "id": {
  15169. "type": "string",
  15170. "allOf": [
  15171. {
  15172. "pattern": "^evt_"
  15173. }
  15174. ]
  15175. },
  15176. "created": {
  15177. "type": "number"
  15178. },
  15179. "metadata": {
  15180. "type": "object"
  15181. },
  15182. "type": {
  15183. "type": "string",
  15184. "enum": [
  15185. "session.deleted"
  15186. ]
  15187. },
  15188. "durable": {
  15189. "type": "object",
  15190. "properties": {
  15191. "aggregateID": {
  15192. "type": "string"
  15193. },
  15194. "seq": {
  15195. "type": "integer",
  15196. "allOf": [
  15197. {
  15198. "minimum": 0
  15199. }
  15200. ]
  15201. },
  15202. "version": {
  15203. "type": "number",
  15204. "enum": [
  15205. 2
  15206. ]
  15207. }
  15208. },
  15209. "required": [
  15210. "aggregateID",
  15211. "seq",
  15212. "version"
  15213. ],
  15214. "additionalProperties": false
  15215. },
  15216. "location": {
  15217. "$ref": "#/components/schemas/Location.Ref"
  15218. },
  15219. "data": {
  15220. "type": "object",
  15221. "properties": {
  15222. "sessionID": {
  15223. "type": "string",
  15224. "allOf": [
  15225. {
  15226. "pattern": "^ses"
  15227. }
  15228. ]
  15229. }
  15230. },
  15231. "required": [
  15232. "sessionID"
  15233. ],
  15234. "additionalProperties": false
  15235. }
  15236. },
  15237. "required": [
  15238. "id",
  15239. "created",
  15240. "type",
  15241. "durable",
  15242. "data"
  15243. ],
  15244. "additionalProperties": false
  15245. },
  15246. "session.forked": {
  15247. "type": "object",
  15248. "properties": {
  15249. "id": {
  15250. "type": "string",
  15251. "allOf": [
  15252. {
  15253. "pattern": "^evt_"
  15254. }
  15255. ]
  15256. },
  15257. "created": {
  15258. "type": "number"
  15259. },
  15260. "metadata": {
  15261. "type": "object"
  15262. },
  15263. "type": {
  15264. "type": "string",
  15265. "enum": [
  15266. "session.forked"
  15267. ]
  15268. },
  15269. "durable": {
  15270. "type": "object",
  15271. "properties": {
  15272. "aggregateID": {
  15273. "type": "string"
  15274. },
  15275. "seq": {
  15276. "type": "integer",
  15277. "allOf": [
  15278. {
  15279. "minimum": 0
  15280. }
  15281. ]
  15282. },
  15283. "version": {
  15284. "type": "number",
  15285. "enum": [
  15286. 2
  15287. ]
  15288. }
  15289. },
  15290. "required": [
  15291. "aggregateID",
  15292. "seq",
  15293. "version"
  15294. ],
  15295. "additionalProperties": false
  15296. },
  15297. "location": {
  15298. "$ref": "#/components/schemas/Location.Ref"
  15299. },
  15300. "data": {
  15301. "type": "object",
  15302. "properties": {
  15303. "sessionID": {
  15304. "type": "string",
  15305. "allOf": [
  15306. {
  15307. "pattern": "^ses"
  15308. }
  15309. ]
  15310. },
  15311. "parentID": {
  15312. "type": "string",
  15313. "allOf": [
  15314. {
  15315. "pattern": "^ses"
  15316. }
  15317. ]
  15318. },
  15319. "boundary": {
  15320. "$ref": "#/components/schemas/Session.ForkBoundary"
  15321. },
  15322. "instructions": {
  15323. "type": "object",
  15324. "patternProperties": {
  15325. "^[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._/-]*$": {
  15326. "type": "string",
  15327. "allOf": [
  15328. {
  15329. "pattern": "^[a-f0-9]{64}$"
  15330. }
  15331. ]
  15332. }
  15333. }
  15334. }
  15335. },
  15336. "required": [
  15337. "sessionID",
  15338. "parentID",
  15339. "boundary"
  15340. ],
  15341. "additionalProperties": false
  15342. }
  15343. },
  15344. "required": [
  15345. "id",
  15346. "created",
  15347. "type",
  15348. "durable",
  15349. "data"
  15350. ],
  15351. "additionalProperties": false
  15352. },
  15353. "session.input.promoted": {
  15354. "type": "object",
  15355. "properties": {
  15356. "id": {
  15357. "type": "string",
  15358. "allOf": [
  15359. {
  15360. "pattern": "^evt_"
  15361. }
  15362. ]
  15363. },
  15364. "created": {
  15365. "type": "number"
  15366. },
  15367. "metadata": {
  15368. "type": "object"
  15369. },
  15370. "type": {
  15371. "type": "string",
  15372. "enum": [
  15373. "session.input.promoted"
  15374. ]
  15375. },
  15376. "durable": {
  15377. "type": "object",
  15378. "properties": {
  15379. "aggregateID": {
  15380. "type": "string"
  15381. },
  15382. "seq": {
  15383. "type": "integer",
  15384. "allOf": [
  15385. {
  15386. "minimum": 0
  15387. }
  15388. ]
  15389. },
  15390. "version": {
  15391. "type": "number",
  15392. "enum": [
  15393. 1
  15394. ]
  15395. }
  15396. },
  15397. "required": [
  15398. "aggregateID",
  15399. "seq",
  15400. "version"
  15401. ],
  15402. "additionalProperties": false
  15403. },
  15404. "location": {
  15405. "$ref": "#/components/schemas/Location.Ref"
  15406. },
  15407. "data": {
  15408. "type": "object",
  15409. "properties": {
  15410. "sessionID": {
  15411. "type": "string",
  15412. "allOf": [
  15413. {
  15414. "pattern": "^ses"
  15415. }
  15416. ]
  15417. },
  15418. "inputID": {
  15419. "type": "string",
  15420. "allOf": [
  15421. {
  15422. "pattern": "^msg_"
  15423. }
  15424. ]
  15425. }
  15426. },
  15427. "required": [
  15428. "sessionID",
  15429. "inputID"
  15430. ],
  15431. "additionalProperties": false
  15432. }
  15433. },
  15434. "required": [
  15435. "id",
  15436. "created",
  15437. "type",
  15438. "durable",
  15439. "data"
  15440. ],
  15441. "additionalProperties": false
  15442. },
  15443. "SessionPending.UserData1": {
  15444. "type": "object",
  15445. "properties": {
  15446. "text": {
  15447. "type": "string"
  15448. },
  15449. "files": {
  15450. "type": "array",
  15451. "items": {
  15452. "$ref": "#/components/schemas/Prompt.FileAttachment"
  15453. }
  15454. },
  15455. "agents": {
  15456. "type": "array",
  15457. "items": {
  15458. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  15459. }
  15460. },
  15461. "metadata": {
  15462. "type": "object"
  15463. }
  15464. },
  15465. "required": [
  15466. "text"
  15467. ],
  15468. "additionalProperties": false
  15469. },
  15470. "SessionPending.UserMessage": {
  15471. "type": "object",
  15472. "properties": {
  15473. "type": {
  15474. "type": "string",
  15475. "enum": [
  15476. "user"
  15477. ]
  15478. },
  15479. "data": {
  15480. "$ref": "#/components/schemas/SessionPending.UserData1"
  15481. },
  15482. "delivery": {
  15483. "type": "string",
  15484. "enum": [
  15485. "steer",
  15486. "queue"
  15487. ]
  15488. }
  15489. },
  15490. "required": [
  15491. "type",
  15492. "data",
  15493. "delivery"
  15494. ],
  15495. "additionalProperties": false
  15496. },
  15497. "SessionPending.SyntheticData1": {
  15498. "type": "object",
  15499. "properties": {
  15500. "text": {
  15501. "type": "string"
  15502. },
  15503. "description": {
  15504. "type": "string"
  15505. },
  15506. "metadata": {
  15507. "type": "object"
  15508. }
  15509. },
  15510. "required": [
  15511. "text"
  15512. ],
  15513. "additionalProperties": false
  15514. },
  15515. "SessionPending.SyntheticMessage": {
  15516. "type": "object",
  15517. "properties": {
  15518. "type": {
  15519. "type": "string",
  15520. "enum": [
  15521. "synthetic"
  15522. ]
  15523. },
  15524. "data": {
  15525. "$ref": "#/components/schemas/SessionPending.SyntheticData1"
  15526. },
  15527. "delivery": {
  15528. "type": "string",
  15529. "enum": [
  15530. "steer",
  15531. "queue"
  15532. ]
  15533. }
  15534. },
  15535. "required": [
  15536. "type",
  15537. "data",
  15538. "delivery"
  15539. ],
  15540. "additionalProperties": false
  15541. },
  15542. "SessionPending.Message": {
  15543. "anyOf": [
  15544. {
  15545. "$ref": "#/components/schemas/SessionPending.UserMessage"
  15546. },
  15547. {
  15548. "$ref": "#/components/schemas/SessionPending.SyntheticMessage"
  15549. }
  15550. ]
  15551. },
  15552. "session.input.admitted": {
  15553. "type": "object",
  15554. "properties": {
  15555. "id": {
  15556. "type": "string",
  15557. "allOf": [
  15558. {
  15559. "pattern": "^evt_"
  15560. }
  15561. ]
  15562. },
  15563. "created": {
  15564. "type": "number"
  15565. },
  15566. "metadata": {
  15567. "type": "object"
  15568. },
  15569. "type": {
  15570. "type": "string",
  15571. "enum": [
  15572. "session.input.admitted"
  15573. ]
  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": [
  15592. 1
  15593. ]
  15594. }
  15595. },
  15596. "required": [
  15597. "aggregateID",
  15598. "seq",
  15599. "version"
  15600. ],
  15601. "additionalProperties": false
  15602. },
  15603. "location": {
  15604. "$ref": "#/components/schemas/Location.Ref"
  15605. },
  15606. "data": {
  15607. "type": "object",
  15608. "properties": {
  15609. "sessionID": {
  15610. "type": "string",
  15611. "allOf": [
  15612. {
  15613. "pattern": "^ses"
  15614. }
  15615. ]
  15616. },
  15617. "inputID": {
  15618. "type": "string",
  15619. "allOf": [
  15620. {
  15621. "pattern": "^msg_"
  15622. }
  15623. ]
  15624. },
  15625. "input": {
  15626. "$ref": "#/components/schemas/SessionPending.Message"
  15627. }
  15628. },
  15629. "required": [
  15630. "sessionID",
  15631. "inputID",
  15632. "input"
  15633. ],
  15634. "additionalProperties": false
  15635. }
  15636. },
  15637. "required": [
  15638. "id",
  15639. "created",
  15640. "type",
  15641. "durable",
  15642. "data"
  15643. ],
  15644. "additionalProperties": false
  15645. },
  15646. "session.execution.started": {
  15647. "type": "object",
  15648. "properties": {
  15649. "id": {
  15650. "type": "string",
  15651. "allOf": [
  15652. {
  15653. "pattern": "^evt_"
  15654. }
  15655. ]
  15656. },
  15657. "created": {
  15658. "type": "number"
  15659. },
  15660. "metadata": {
  15661. "type": "object"
  15662. },
  15663. "type": {
  15664. "type": "string",
  15665. "enum": [
  15666. "session.execution.started"
  15667. ]
  15668. },
  15669. "durable": {
  15670. "type": "object",
  15671. "properties": {
  15672. "aggregateID": {
  15673. "type": "string"
  15674. },
  15675. "seq": {
  15676. "type": "integer",
  15677. "allOf": [
  15678. {
  15679. "minimum": 0
  15680. }
  15681. ]
  15682. },
  15683. "version": {
  15684. "type": "number",
  15685. "enum": [
  15686. 1
  15687. ]
  15688. }
  15689. },
  15690. "required": [
  15691. "aggregateID",
  15692. "seq",
  15693. "version"
  15694. ],
  15695. "additionalProperties": false
  15696. },
  15697. "location": {
  15698. "$ref": "#/components/schemas/Location.Ref"
  15699. },
  15700. "data": {
  15701. "type": "object",
  15702. "properties": {
  15703. "sessionID": {
  15704. "type": "string",
  15705. "allOf": [
  15706. {
  15707. "pattern": "^ses"
  15708. }
  15709. ]
  15710. }
  15711. },
  15712. "required": [
  15713. "sessionID"
  15714. ],
  15715. "additionalProperties": false
  15716. }
  15717. },
  15718. "required": [
  15719. "id",
  15720. "created",
  15721. "type",
  15722. "durable",
  15723. "data"
  15724. ],
  15725. "additionalProperties": false
  15726. },
  15727. "session.execution.succeeded": {
  15728. "type": "object",
  15729. "properties": {
  15730. "id": {
  15731. "type": "string",
  15732. "allOf": [
  15733. {
  15734. "pattern": "^evt_"
  15735. }
  15736. ]
  15737. },
  15738. "created": {
  15739. "type": "number"
  15740. },
  15741. "metadata": {
  15742. "type": "object"
  15743. },
  15744. "type": {
  15745. "type": "string",
  15746. "enum": [
  15747. "session.execution.succeeded"
  15748. ]
  15749. },
  15750. "durable": {
  15751. "type": "object",
  15752. "properties": {
  15753. "aggregateID": {
  15754. "type": "string"
  15755. },
  15756. "seq": {
  15757. "type": "integer",
  15758. "allOf": [
  15759. {
  15760. "minimum": 0
  15761. }
  15762. ]
  15763. },
  15764. "version": {
  15765. "type": "number",
  15766. "enum": [
  15767. 1
  15768. ]
  15769. }
  15770. },
  15771. "required": [
  15772. "aggregateID",
  15773. "seq",
  15774. "version"
  15775. ],
  15776. "additionalProperties": false
  15777. },
  15778. "location": {
  15779. "$ref": "#/components/schemas/Location.Ref"
  15780. },
  15781. "data": {
  15782. "type": "object",
  15783. "properties": {
  15784. "sessionID": {
  15785. "type": "string",
  15786. "allOf": [
  15787. {
  15788. "pattern": "^ses"
  15789. }
  15790. ]
  15791. }
  15792. },
  15793. "required": [
  15794. "sessionID"
  15795. ],
  15796. "additionalProperties": false
  15797. }
  15798. },
  15799. "required": [
  15800. "id",
  15801. "created",
  15802. "type",
  15803. "durable",
  15804. "data"
  15805. ],
  15806. "additionalProperties": false
  15807. },
  15808. "session.execution.failed": {
  15809. "type": "object",
  15810. "properties": {
  15811. "id": {
  15812. "type": "string",
  15813. "allOf": [
  15814. {
  15815. "pattern": "^evt_"
  15816. }
  15817. ]
  15818. },
  15819. "created": {
  15820. "type": "number"
  15821. },
  15822. "metadata": {
  15823. "type": "object"
  15824. },
  15825. "type": {
  15826. "type": "string",
  15827. "enum": [
  15828. "session.execution.failed"
  15829. ]
  15830. },
  15831. "durable": {
  15832. "type": "object",
  15833. "properties": {
  15834. "aggregateID": {
  15835. "type": "string"
  15836. },
  15837. "seq": {
  15838. "type": "integer",
  15839. "allOf": [
  15840. {
  15841. "minimum": 0
  15842. }
  15843. ]
  15844. },
  15845. "version": {
  15846. "type": "number",
  15847. "enum": [
  15848. 1
  15849. ]
  15850. }
  15851. },
  15852. "required": [
  15853. "aggregateID",
  15854. "seq",
  15855. "version"
  15856. ],
  15857. "additionalProperties": false
  15858. },
  15859. "location": {
  15860. "$ref": "#/components/schemas/Location.Ref"
  15861. },
  15862. "data": {
  15863. "type": "object",
  15864. "properties": {
  15865. "sessionID": {
  15866. "type": "string",
  15867. "allOf": [
  15868. {
  15869. "pattern": "^ses"
  15870. }
  15871. ]
  15872. },
  15873. "error": {
  15874. "$ref": "#/components/schemas/Session.StructuredError"
  15875. }
  15876. },
  15877. "required": [
  15878. "sessionID",
  15879. "error"
  15880. ],
  15881. "additionalProperties": false
  15882. }
  15883. },
  15884. "required": [
  15885. "id",
  15886. "created",
  15887. "type",
  15888. "durable",
  15889. "data"
  15890. ],
  15891. "additionalProperties": false
  15892. },
  15893. "session.execution.interrupted": {
  15894. "type": "object",
  15895. "properties": {
  15896. "id": {
  15897. "type": "string",
  15898. "allOf": [
  15899. {
  15900. "pattern": "^evt_"
  15901. }
  15902. ]
  15903. },
  15904. "created": {
  15905. "type": "number"
  15906. },
  15907. "metadata": {
  15908. "type": "object"
  15909. },
  15910. "type": {
  15911. "type": "string",
  15912. "enum": [
  15913. "session.execution.interrupted"
  15914. ]
  15915. },
  15916. "durable": {
  15917. "type": "object",
  15918. "properties": {
  15919. "aggregateID": {
  15920. "type": "string"
  15921. },
  15922. "seq": {
  15923. "type": "integer",
  15924. "allOf": [
  15925. {
  15926. "minimum": 0
  15927. }
  15928. ]
  15929. },
  15930. "version": {
  15931. "type": "number",
  15932. "enum": [
  15933. 1
  15934. ]
  15935. }
  15936. },
  15937. "required": [
  15938. "aggregateID",
  15939. "seq",
  15940. "version"
  15941. ],
  15942. "additionalProperties": false
  15943. },
  15944. "location": {
  15945. "$ref": "#/components/schemas/Location.Ref"
  15946. },
  15947. "data": {
  15948. "type": "object",
  15949. "properties": {
  15950. "sessionID": {
  15951. "type": "string",
  15952. "allOf": [
  15953. {
  15954. "pattern": "^ses"
  15955. }
  15956. ]
  15957. },
  15958. "reason": {
  15959. "type": "string",
  15960. "enum": [
  15961. "user",
  15962. "shutdown",
  15963. "superseded"
  15964. ]
  15965. }
  15966. },
  15967. "required": [
  15968. "sessionID",
  15969. "reason"
  15970. ],
  15971. "additionalProperties": false
  15972. }
  15973. },
  15974. "required": [
  15975. "id",
  15976. "created",
  15977. "type",
  15978. "durable",
  15979. "data"
  15980. ],
  15981. "additionalProperties": false
  15982. },
  15983. "session.instructions.updated": {
  15984. "type": "object",
  15985. "properties": {
  15986. "id": {
  15987. "type": "string",
  15988. "allOf": [
  15989. {
  15990. "pattern": "^evt_"
  15991. }
  15992. ]
  15993. },
  15994. "created": {
  15995. "type": "number"
  15996. },
  15997. "metadata": {
  15998. "type": "object"
  15999. },
  16000. "type": {
  16001. "type": "string",
  16002. "enum": [
  16003. "session.instructions.updated"
  16004. ]
  16005. },
  16006. "durable": {
  16007. "type": "object",
  16008. "properties": {
  16009. "aggregateID": {
  16010. "type": "string"
  16011. },
  16012. "seq": {
  16013. "type": "integer",
  16014. "allOf": [
  16015. {
  16016. "minimum": 0
  16017. }
  16018. ]
  16019. },
  16020. "version": {
  16021. "type": "number",
  16022. "enum": [
  16023. 2
  16024. ]
  16025. }
  16026. },
  16027. "required": [
  16028. "aggregateID",
  16029. "seq",
  16030. "version"
  16031. ],
  16032. "additionalProperties": false
  16033. },
  16034. "location": {
  16035. "$ref": "#/components/schemas/Location.Ref"
  16036. },
  16037. "data": {
  16038. "type": "object",
  16039. "properties": {
  16040. "sessionID": {
  16041. "type": "string",
  16042. "allOf": [
  16043. {
  16044. "pattern": "^ses"
  16045. }
  16046. ]
  16047. },
  16048. "delta": {
  16049. "type": "object",
  16050. "additionalProperties": {
  16051. "anyOf": [
  16052. {
  16053. "type": "string",
  16054. "allOf": [
  16055. {
  16056. "pattern": "^[a-f0-9]{64}$"
  16057. }
  16058. ]
  16059. },
  16060. {
  16061. "type": "string",
  16062. "enum": [
  16063. "removed"
  16064. ]
  16065. }
  16066. ]
  16067. }
  16068. },
  16069. "text": {
  16070. "type": "string"
  16071. }
  16072. },
  16073. "required": [
  16074. "sessionID",
  16075. "delta"
  16076. ],
  16077. "additionalProperties": false
  16078. }
  16079. },
  16080. "required": [
  16081. "id",
  16082. "created",
  16083. "type",
  16084. "durable",
  16085. "data"
  16086. ],
  16087. "additionalProperties": false
  16088. },
  16089. "session.synthetic": {
  16090. "type": "object",
  16091. "properties": {
  16092. "id": {
  16093. "type": "string",
  16094. "allOf": [
  16095. {
  16096. "pattern": "^evt_"
  16097. }
  16098. ]
  16099. },
  16100. "created": {
  16101. "type": "number"
  16102. },
  16103. "metadata": {
  16104. "type": "object"
  16105. },
  16106. "type": {
  16107. "type": "string",
  16108. "enum": [
  16109. "session.synthetic"
  16110. ]
  16111. },
  16112. "durable": {
  16113. "type": "object",
  16114. "properties": {
  16115. "aggregateID": {
  16116. "type": "string"
  16117. },
  16118. "seq": {
  16119. "type": "integer",
  16120. "allOf": [
  16121. {
  16122. "minimum": 0
  16123. }
  16124. ]
  16125. },
  16126. "version": {
  16127. "type": "number",
  16128. "enum": [
  16129. 1
  16130. ]
  16131. }
  16132. },
  16133. "required": [
  16134. "aggregateID",
  16135. "seq",
  16136. "version"
  16137. ],
  16138. "additionalProperties": false
  16139. },
  16140. "location": {
  16141. "$ref": "#/components/schemas/Location.Ref"
  16142. },
  16143. "data": {
  16144. "type": "object",
  16145. "properties": {
  16146. "sessionID": {
  16147. "type": "string",
  16148. "allOf": [
  16149. {
  16150. "pattern": "^ses"
  16151. }
  16152. ]
  16153. },
  16154. "text": {
  16155. "type": "string"
  16156. },
  16157. "description": {
  16158. "type": "string"
  16159. },
  16160. "metadata": {
  16161. "type": "object"
  16162. }
  16163. },
  16164. "required": [
  16165. "sessionID",
  16166. "text"
  16167. ],
  16168. "additionalProperties": false
  16169. }
  16170. },
  16171. "required": [
  16172. "id",
  16173. "created",
  16174. "type",
  16175. "durable",
  16176. "data"
  16177. ],
  16178. "additionalProperties": false
  16179. },
  16180. "session.skill.activated": {
  16181. "type": "object",
  16182. "properties": {
  16183. "id": {
  16184. "type": "string",
  16185. "allOf": [
  16186. {
  16187. "pattern": "^evt_"
  16188. }
  16189. ]
  16190. },
  16191. "created": {
  16192. "type": "number"
  16193. },
  16194. "metadata": {
  16195. "type": "object"
  16196. },
  16197. "type": {
  16198. "type": "string",
  16199. "enum": [
  16200. "session.skill.activated"
  16201. ]
  16202. },
  16203. "durable": {
  16204. "type": "object",
  16205. "properties": {
  16206. "aggregateID": {
  16207. "type": "string"
  16208. },
  16209. "seq": {
  16210. "type": "integer",
  16211. "allOf": [
  16212. {
  16213. "minimum": 0
  16214. }
  16215. ]
  16216. },
  16217. "version": {
  16218. "type": "number",
  16219. "enum": [
  16220. 1
  16221. ]
  16222. }
  16223. },
  16224. "required": [
  16225. "aggregateID",
  16226. "seq",
  16227. "version"
  16228. ],
  16229. "additionalProperties": false
  16230. },
  16231. "location": {
  16232. "$ref": "#/components/schemas/Location.Ref"
  16233. },
  16234. "data": {
  16235. "type": "object",
  16236. "properties": {
  16237. "sessionID": {
  16238. "type": "string",
  16239. "allOf": [
  16240. {
  16241. "pattern": "^ses"
  16242. }
  16243. ]
  16244. },
  16245. "id": {
  16246. "type": "string"
  16247. },
  16248. "name": {
  16249. "type": "string"
  16250. },
  16251. "text": {
  16252. "type": "string"
  16253. }
  16254. },
  16255. "required": [
  16256. "sessionID",
  16257. "id",
  16258. "name",
  16259. "text"
  16260. ],
  16261. "additionalProperties": false
  16262. }
  16263. },
  16264. "required": [
  16265. "id",
  16266. "created",
  16267. "type",
  16268. "durable",
  16269. "data"
  16270. ],
  16271. "additionalProperties": false
  16272. },
  16273. "Shell.Info": {
  16274. "type": "object",
  16275. "properties": {
  16276. "id": {
  16277. "type": "string",
  16278. "allOf": [
  16279. {
  16280. "pattern": "^sh_"
  16281. }
  16282. ]
  16283. },
  16284. "status": {
  16285. "type": "string",
  16286. "enum": [
  16287. "running",
  16288. "exited",
  16289. "timeout",
  16290. "killed"
  16291. ]
  16292. },
  16293. "command": {
  16294. "type": "string"
  16295. },
  16296. "cwd": {
  16297. "type": "string"
  16298. },
  16299. "shell": {
  16300. "type": "string"
  16301. },
  16302. "file": {
  16303. "type": "string"
  16304. },
  16305. "pid": {
  16306. "type": "integer",
  16307. "allOf": [
  16308. {
  16309. "minimum": 0
  16310. }
  16311. ]
  16312. },
  16313. "exit": {
  16314. "type": "number"
  16315. },
  16316. "metadata": {
  16317. "type": "object"
  16318. },
  16319. "time": {
  16320. "type": "object",
  16321. "properties": {
  16322. "started": {
  16323. "type": "number"
  16324. },
  16325. "completed": {
  16326. "type": "number"
  16327. }
  16328. },
  16329. "required": [
  16330. "started"
  16331. ],
  16332. "additionalProperties": false
  16333. }
  16334. },
  16335. "required": [
  16336. "id",
  16337. "status",
  16338. "command",
  16339. "cwd",
  16340. "shell",
  16341. "file",
  16342. "metadata",
  16343. "time"
  16344. ],
  16345. "additionalProperties": false
  16346. },
  16347. "session.shell.started": {
  16348. "type": "object",
  16349. "properties": {
  16350. "id": {
  16351. "type": "string",
  16352. "allOf": [
  16353. {
  16354. "pattern": "^evt_"
  16355. }
  16356. ]
  16357. },
  16358. "created": {
  16359. "type": "number"
  16360. },
  16361. "metadata": {
  16362. "type": "object"
  16363. },
  16364. "type": {
  16365. "type": "string",
  16366. "enum": [
  16367. "session.shell.started"
  16368. ]
  16369. },
  16370. "durable": {
  16371. "type": "object",
  16372. "properties": {
  16373. "aggregateID": {
  16374. "type": "string"
  16375. },
  16376. "seq": {
  16377. "type": "integer",
  16378. "allOf": [
  16379. {
  16380. "minimum": 0
  16381. }
  16382. ]
  16383. },
  16384. "version": {
  16385. "type": "number",
  16386. "enum": [
  16387. 1
  16388. ]
  16389. }
  16390. },
  16391. "required": [
  16392. "aggregateID",
  16393. "seq",
  16394. "version"
  16395. ],
  16396. "additionalProperties": false
  16397. },
  16398. "location": {
  16399. "$ref": "#/components/schemas/Location.Ref"
  16400. },
  16401. "data": {
  16402. "type": "object",
  16403. "properties": {
  16404. "sessionID": {
  16405. "type": "string",
  16406. "allOf": [
  16407. {
  16408. "pattern": "^ses"
  16409. }
  16410. ]
  16411. },
  16412. "shell": {
  16413. "$ref": "#/components/schemas/Shell.Info"
  16414. }
  16415. },
  16416. "required": [
  16417. "sessionID",
  16418. "shell"
  16419. ],
  16420. "additionalProperties": false
  16421. }
  16422. },
  16423. "required": [
  16424. "id",
  16425. "created",
  16426. "type",
  16427. "durable",
  16428. "data"
  16429. ],
  16430. "additionalProperties": false
  16431. },
  16432. "session.shell.ended": {
  16433. "type": "object",
  16434. "properties": {
  16435. "id": {
  16436. "type": "string",
  16437. "allOf": [
  16438. {
  16439. "pattern": "^evt_"
  16440. }
  16441. ]
  16442. },
  16443. "created": {
  16444. "type": "number"
  16445. },
  16446. "metadata": {
  16447. "type": "object"
  16448. },
  16449. "type": {
  16450. "type": "string",
  16451. "enum": [
  16452. "session.shell.ended"
  16453. ]
  16454. },
  16455. "durable": {
  16456. "type": "object",
  16457. "properties": {
  16458. "aggregateID": {
  16459. "type": "string"
  16460. },
  16461. "seq": {
  16462. "type": "integer",
  16463. "allOf": [
  16464. {
  16465. "minimum": 0
  16466. }
  16467. ]
  16468. },
  16469. "version": {
  16470. "type": "number",
  16471. "enum": [
  16472. 1
  16473. ]
  16474. }
  16475. },
  16476. "required": [
  16477. "aggregateID",
  16478. "seq",
  16479. "version"
  16480. ],
  16481. "additionalProperties": false
  16482. },
  16483. "location": {
  16484. "$ref": "#/components/schemas/Location.Ref"
  16485. },
  16486. "data": {
  16487. "type": "object",
  16488. "properties": {
  16489. "sessionID": {
  16490. "type": "string",
  16491. "allOf": [
  16492. {
  16493. "pattern": "^ses"
  16494. }
  16495. ]
  16496. },
  16497. "shell": {
  16498. "$ref": "#/components/schemas/Shell.Info"
  16499. },
  16500. "output": {
  16501. "type": "object",
  16502. "properties": {
  16503. "output": {
  16504. "type": "string"
  16505. },
  16506. "cursor": {
  16507. "type": "integer",
  16508. "allOf": [
  16509. {
  16510. "minimum": 0
  16511. }
  16512. ]
  16513. },
  16514. "size": {
  16515. "type": "integer",
  16516. "allOf": [
  16517. {
  16518. "minimum": 0
  16519. }
  16520. ]
  16521. },
  16522. "truncated": {
  16523. "type": "boolean"
  16524. }
  16525. },
  16526. "required": [
  16527. "output",
  16528. "cursor",
  16529. "size",
  16530. "truncated"
  16531. ],
  16532. "additionalProperties": false
  16533. }
  16534. },
  16535. "required": [
  16536. "sessionID",
  16537. "shell",
  16538. "output"
  16539. ],
  16540. "additionalProperties": false
  16541. }
  16542. },
  16543. "required": [
  16544. "id",
  16545. "created",
  16546. "type",
  16547. "durable",
  16548. "data"
  16549. ],
  16550. "additionalProperties": false
  16551. },
  16552. "session.step.started": {
  16553. "type": "object",
  16554. "properties": {
  16555. "id": {
  16556. "type": "string",
  16557. "allOf": [
  16558. {
  16559. "pattern": "^evt_"
  16560. }
  16561. ]
  16562. },
  16563. "created": {
  16564. "type": "number"
  16565. },
  16566. "metadata": {
  16567. "type": "object"
  16568. },
  16569. "type": {
  16570. "type": "string",
  16571. "enum": [
  16572. "session.step.started"
  16573. ]
  16574. },
  16575. "durable": {
  16576. "type": "object",
  16577. "properties": {
  16578. "aggregateID": {
  16579. "type": "string"
  16580. },
  16581. "seq": {
  16582. "type": "integer",
  16583. "allOf": [
  16584. {
  16585. "minimum": 0
  16586. }
  16587. ]
  16588. },
  16589. "version": {
  16590. "type": "number",
  16591. "enum": [
  16592. 1
  16593. ]
  16594. }
  16595. },
  16596. "required": [
  16597. "aggregateID",
  16598. "seq",
  16599. "version"
  16600. ],
  16601. "additionalProperties": false
  16602. },
  16603. "location": {
  16604. "$ref": "#/components/schemas/Location.Ref"
  16605. },
  16606. "data": {
  16607. "type": "object",
  16608. "properties": {
  16609. "sessionID": {
  16610. "type": "string",
  16611. "allOf": [
  16612. {
  16613. "pattern": "^ses"
  16614. }
  16615. ]
  16616. },
  16617. "assistantMessageID": {
  16618. "type": "string",
  16619. "allOf": [
  16620. {
  16621. "pattern": "^msg_"
  16622. }
  16623. ]
  16624. },
  16625. "agent": {
  16626. "type": "string"
  16627. },
  16628. "model": {
  16629. "$ref": "#/components/schemas/Model.Ref"
  16630. },
  16631. "snapshot": {
  16632. "type": "string"
  16633. }
  16634. },
  16635. "required": [
  16636. "sessionID",
  16637. "assistantMessageID",
  16638. "agent",
  16639. "model"
  16640. ],
  16641. "additionalProperties": false
  16642. }
  16643. },
  16644. "required": [
  16645. "id",
  16646. "created",
  16647. "type",
  16648. "durable",
  16649. "data"
  16650. ],
  16651. "additionalProperties": false
  16652. },
  16653. "session.step.ended": {
  16654. "type": "object",
  16655. "properties": {
  16656. "id": {
  16657. "type": "string",
  16658. "allOf": [
  16659. {
  16660. "pattern": "^evt_"
  16661. }
  16662. ]
  16663. },
  16664. "created": {
  16665. "type": "number"
  16666. },
  16667. "metadata": {
  16668. "type": "object"
  16669. },
  16670. "type": {
  16671. "type": "string",
  16672. "enum": [
  16673. "session.step.ended"
  16674. ]
  16675. },
  16676. "durable": {
  16677. "type": "object",
  16678. "properties": {
  16679. "aggregateID": {
  16680. "type": "string"
  16681. },
  16682. "seq": {
  16683. "type": "integer",
  16684. "allOf": [
  16685. {
  16686. "minimum": 0
  16687. }
  16688. ]
  16689. },
  16690. "version": {
  16691. "type": "number",
  16692. "enum": [
  16693. 1
  16694. ]
  16695. }
  16696. },
  16697. "required": [
  16698. "aggregateID",
  16699. "seq",
  16700. "version"
  16701. ],
  16702. "additionalProperties": false
  16703. },
  16704. "location": {
  16705. "$ref": "#/components/schemas/Location.Ref"
  16706. },
  16707. "data": {
  16708. "type": "object",
  16709. "properties": {
  16710. "sessionID": {
  16711. "type": "string",
  16712. "allOf": [
  16713. {
  16714. "pattern": "^ses"
  16715. }
  16716. ]
  16717. },
  16718. "assistantMessageID": {
  16719. "type": "string",
  16720. "allOf": [
  16721. {
  16722. "pattern": "^msg_"
  16723. }
  16724. ]
  16725. },
  16726. "finish": {
  16727. "type": "string",
  16728. "enum": [
  16729. "stop",
  16730. "length",
  16731. "tool-calls",
  16732. "content-filter",
  16733. "error",
  16734. "unknown"
  16735. ]
  16736. },
  16737. "cost": {
  16738. "$ref": "#/components/schemas/Money.USD"
  16739. },
  16740. "tokens": {
  16741. "$ref": "#/components/schemas/TokenUsage.Info"
  16742. },
  16743. "snapshot": {
  16744. "type": "string"
  16745. },
  16746. "files": {
  16747. "type": "array",
  16748. "items": {
  16749. "type": "string"
  16750. }
  16751. }
  16752. },
  16753. "required": [
  16754. "sessionID",
  16755. "assistantMessageID",
  16756. "finish",
  16757. "cost",
  16758. "tokens"
  16759. ],
  16760. "additionalProperties": false
  16761. }
  16762. },
  16763. "required": [
  16764. "id",
  16765. "created",
  16766. "type",
  16767. "durable",
  16768. "data"
  16769. ],
  16770. "additionalProperties": false
  16771. },
  16772. "session.step.failed": {
  16773. "type": "object",
  16774. "properties": {
  16775. "id": {
  16776. "type": "string",
  16777. "allOf": [
  16778. {
  16779. "pattern": "^evt_"
  16780. }
  16781. ]
  16782. },
  16783. "created": {
  16784. "type": "number"
  16785. },
  16786. "metadata": {
  16787. "type": "object"
  16788. },
  16789. "type": {
  16790. "type": "string",
  16791. "enum": [
  16792. "session.step.failed"
  16793. ]
  16794. },
  16795. "durable": {
  16796. "type": "object",
  16797. "properties": {
  16798. "aggregateID": {
  16799. "type": "string"
  16800. },
  16801. "seq": {
  16802. "type": "integer",
  16803. "allOf": [
  16804. {
  16805. "minimum": 0
  16806. }
  16807. ]
  16808. },
  16809. "version": {
  16810. "type": "number",
  16811. "enum": [
  16812. 1
  16813. ]
  16814. }
  16815. },
  16816. "required": [
  16817. "aggregateID",
  16818. "seq",
  16819. "version"
  16820. ],
  16821. "additionalProperties": false
  16822. },
  16823. "location": {
  16824. "$ref": "#/components/schemas/Location.Ref"
  16825. },
  16826. "data": {
  16827. "type": "object",
  16828. "properties": {
  16829. "sessionID": {
  16830. "type": "string",
  16831. "allOf": [
  16832. {
  16833. "pattern": "^ses"
  16834. }
  16835. ]
  16836. },
  16837. "assistantMessageID": {
  16838. "type": "string",
  16839. "allOf": [
  16840. {
  16841. "pattern": "^msg_"
  16842. }
  16843. ]
  16844. },
  16845. "error": {
  16846. "$ref": "#/components/schemas/Session.StructuredError"
  16847. },
  16848. "cost": {
  16849. "$ref": "#/components/schemas/Money.USD"
  16850. },
  16851. "tokens": {
  16852. "$ref": "#/components/schemas/TokenUsage.Info"
  16853. },
  16854. "snapshot": {
  16855. "type": "string"
  16856. },
  16857. "files": {
  16858. "type": "array",
  16859. "items": {
  16860. "type": "string"
  16861. }
  16862. }
  16863. },
  16864. "required": [
  16865. "sessionID",
  16866. "assistantMessageID",
  16867. "error"
  16868. ],
  16869. "additionalProperties": false
  16870. }
  16871. },
  16872. "required": [
  16873. "id",
  16874. "created",
  16875. "type",
  16876. "durable",
  16877. "data"
  16878. ],
  16879. "additionalProperties": false
  16880. },
  16881. "session.text.started": {
  16882. "type": "object",
  16883. "properties": {
  16884. "id": {
  16885. "type": "string",
  16886. "allOf": [
  16887. {
  16888. "pattern": "^evt_"
  16889. }
  16890. ]
  16891. },
  16892. "created": {
  16893. "type": "number"
  16894. },
  16895. "metadata": {
  16896. "type": "object"
  16897. },
  16898. "type": {
  16899. "type": "string",
  16900. "enum": [
  16901. "session.text.started"
  16902. ]
  16903. },
  16904. "durable": {
  16905. "type": "object",
  16906. "properties": {
  16907. "aggregateID": {
  16908. "type": "string"
  16909. },
  16910. "seq": {
  16911. "type": "integer",
  16912. "allOf": [
  16913. {
  16914. "minimum": 0
  16915. }
  16916. ]
  16917. },
  16918. "version": {
  16919. "type": "number",
  16920. "enum": [
  16921. 1
  16922. ]
  16923. }
  16924. },
  16925. "required": [
  16926. "aggregateID",
  16927. "seq",
  16928. "version"
  16929. ],
  16930. "additionalProperties": false
  16931. },
  16932. "location": {
  16933. "$ref": "#/components/schemas/Location.Ref"
  16934. },
  16935. "data": {
  16936. "type": "object",
  16937. "properties": {
  16938. "sessionID": {
  16939. "type": "string",
  16940. "allOf": [
  16941. {
  16942. "pattern": "^ses"
  16943. }
  16944. ]
  16945. },
  16946. "assistantMessageID": {
  16947. "type": "string",
  16948. "allOf": [
  16949. {
  16950. "pattern": "^msg_"
  16951. }
  16952. ]
  16953. },
  16954. "ordinal": {
  16955. "type": "integer",
  16956. "allOf": [
  16957. {
  16958. "minimum": 0
  16959. }
  16960. ]
  16961. }
  16962. },
  16963. "required": [
  16964. "sessionID",
  16965. "assistantMessageID",
  16966. "ordinal"
  16967. ],
  16968. "additionalProperties": false
  16969. }
  16970. },
  16971. "required": [
  16972. "id",
  16973. "created",
  16974. "type",
  16975. "durable",
  16976. "data"
  16977. ],
  16978. "additionalProperties": false
  16979. },
  16980. "Session.Message.ProviderState4": {
  16981. "type": "object"
  16982. },
  16983. "session.text.ended": {
  16984. "type": "object",
  16985. "properties": {
  16986. "id": {
  16987. "type": "string",
  16988. "allOf": [
  16989. {
  16990. "pattern": "^evt_"
  16991. }
  16992. ]
  16993. },
  16994. "created": {
  16995. "type": "number"
  16996. },
  16997. "metadata": {
  16998. "type": "object"
  16999. },
  17000. "type": {
  17001. "type": "string",
  17002. "enum": [
  17003. "session.text.ended"
  17004. ]
  17005. },
  17006. "durable": {
  17007. "type": "object",
  17008. "properties": {
  17009. "aggregateID": {
  17010. "type": "string"
  17011. },
  17012. "seq": {
  17013. "type": "integer",
  17014. "allOf": [
  17015. {
  17016. "minimum": 0
  17017. }
  17018. ]
  17019. },
  17020. "version": {
  17021. "type": "number",
  17022. "enum": [
  17023. 1
  17024. ]
  17025. }
  17026. },
  17027. "required": [
  17028. "aggregateID",
  17029. "seq",
  17030. "version"
  17031. ],
  17032. "additionalProperties": false
  17033. },
  17034. "location": {
  17035. "$ref": "#/components/schemas/Location.Ref"
  17036. },
  17037. "data": {
  17038. "type": "object",
  17039. "properties": {
  17040. "sessionID": {
  17041. "type": "string",
  17042. "allOf": [
  17043. {
  17044. "pattern": "^ses"
  17045. }
  17046. ]
  17047. },
  17048. "assistantMessageID": {
  17049. "type": "string",
  17050. "allOf": [
  17051. {
  17052. "pattern": "^msg_"
  17053. }
  17054. ]
  17055. },
  17056. "ordinal": {
  17057. "type": "integer",
  17058. "allOf": [
  17059. {
  17060. "minimum": 0
  17061. }
  17062. ]
  17063. },
  17064. "text": {
  17065. "type": "string"
  17066. },
  17067. "state": {
  17068. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  17069. }
  17070. },
  17071. "required": [
  17072. "sessionID",
  17073. "assistantMessageID",
  17074. "ordinal",
  17075. "text"
  17076. ],
  17077. "additionalProperties": false
  17078. }
  17079. },
  17080. "required": [
  17081. "id",
  17082. "created",
  17083. "type",
  17084. "durable",
  17085. "data"
  17086. ],
  17087. "additionalProperties": false
  17088. },
  17089. "Session.Message.ProviderState5": {
  17090. "type": "object"
  17091. },
  17092. "session.reasoning.started": {
  17093. "type": "object",
  17094. "properties": {
  17095. "id": {
  17096. "type": "string",
  17097. "allOf": [
  17098. {
  17099. "pattern": "^evt_"
  17100. }
  17101. ]
  17102. },
  17103. "created": {
  17104. "type": "number"
  17105. },
  17106. "metadata": {
  17107. "type": "object"
  17108. },
  17109. "type": {
  17110. "type": "string",
  17111. "enum": [
  17112. "session.reasoning.started"
  17113. ]
  17114. },
  17115. "durable": {
  17116. "type": "object",
  17117. "properties": {
  17118. "aggregateID": {
  17119. "type": "string"
  17120. },
  17121. "seq": {
  17122. "type": "integer",
  17123. "allOf": [
  17124. {
  17125. "minimum": 0
  17126. }
  17127. ]
  17128. },
  17129. "version": {
  17130. "type": "number",
  17131. "enum": [
  17132. 1
  17133. ]
  17134. }
  17135. },
  17136. "required": [
  17137. "aggregateID",
  17138. "seq",
  17139. "version"
  17140. ],
  17141. "additionalProperties": false
  17142. },
  17143. "location": {
  17144. "$ref": "#/components/schemas/Location.Ref"
  17145. },
  17146. "data": {
  17147. "type": "object",
  17148. "properties": {
  17149. "sessionID": {
  17150. "type": "string",
  17151. "allOf": [
  17152. {
  17153. "pattern": "^ses"
  17154. }
  17155. ]
  17156. },
  17157. "assistantMessageID": {
  17158. "type": "string",
  17159. "allOf": [
  17160. {
  17161. "pattern": "^msg_"
  17162. }
  17163. ]
  17164. },
  17165. "ordinal": {
  17166. "type": "integer",
  17167. "allOf": [
  17168. {
  17169. "minimum": 0
  17170. }
  17171. ]
  17172. },
  17173. "state": {
  17174. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  17175. }
  17176. },
  17177. "required": [
  17178. "sessionID",
  17179. "assistantMessageID",
  17180. "ordinal"
  17181. ],
  17182. "additionalProperties": false
  17183. }
  17184. },
  17185. "required": [
  17186. "id",
  17187. "created",
  17188. "type",
  17189. "durable",
  17190. "data"
  17191. ],
  17192. "additionalProperties": false
  17193. },
  17194. "Session.Message.ProviderState6": {
  17195. "type": "object"
  17196. },
  17197. "session.reasoning.ended": {
  17198. "type": "object",
  17199. "properties": {
  17200. "id": {
  17201. "type": "string",
  17202. "allOf": [
  17203. {
  17204. "pattern": "^evt_"
  17205. }
  17206. ]
  17207. },
  17208. "created": {
  17209. "type": "number"
  17210. },
  17211. "metadata": {
  17212. "type": "object"
  17213. },
  17214. "type": {
  17215. "type": "string",
  17216. "enum": [
  17217. "session.reasoning.ended"
  17218. ]
  17219. },
  17220. "durable": {
  17221. "type": "object",
  17222. "properties": {
  17223. "aggregateID": {
  17224. "type": "string"
  17225. },
  17226. "seq": {
  17227. "type": "integer",
  17228. "allOf": [
  17229. {
  17230. "minimum": 0
  17231. }
  17232. ]
  17233. },
  17234. "version": {
  17235. "type": "number",
  17236. "enum": [
  17237. 1
  17238. ]
  17239. }
  17240. },
  17241. "required": [
  17242. "aggregateID",
  17243. "seq",
  17244. "version"
  17245. ],
  17246. "additionalProperties": false
  17247. },
  17248. "location": {
  17249. "$ref": "#/components/schemas/Location.Ref"
  17250. },
  17251. "data": {
  17252. "type": "object",
  17253. "properties": {
  17254. "sessionID": {
  17255. "type": "string",
  17256. "allOf": [
  17257. {
  17258. "pattern": "^ses"
  17259. }
  17260. ]
  17261. },
  17262. "assistantMessageID": {
  17263. "type": "string",
  17264. "allOf": [
  17265. {
  17266. "pattern": "^msg_"
  17267. }
  17268. ]
  17269. },
  17270. "ordinal": {
  17271. "type": "integer",
  17272. "allOf": [
  17273. {
  17274. "minimum": 0
  17275. }
  17276. ]
  17277. },
  17278. "text": {
  17279. "type": "string"
  17280. },
  17281. "state": {
  17282. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  17283. }
  17284. },
  17285. "required": [
  17286. "sessionID",
  17287. "assistantMessageID",
  17288. "ordinal",
  17289. "text"
  17290. ],
  17291. "additionalProperties": false
  17292. }
  17293. },
  17294. "required": [
  17295. "id",
  17296. "created",
  17297. "type",
  17298. "durable",
  17299. "data"
  17300. ],
  17301. "additionalProperties": false
  17302. },
  17303. "session.tool.input.started": {
  17304. "type": "object",
  17305. "properties": {
  17306. "id": {
  17307. "type": "string",
  17308. "allOf": [
  17309. {
  17310. "pattern": "^evt_"
  17311. }
  17312. ]
  17313. },
  17314. "created": {
  17315. "type": "number"
  17316. },
  17317. "metadata": {
  17318. "type": "object"
  17319. },
  17320. "type": {
  17321. "type": "string",
  17322. "enum": [
  17323. "session.tool.input.started"
  17324. ]
  17325. },
  17326. "durable": {
  17327. "type": "object",
  17328. "properties": {
  17329. "aggregateID": {
  17330. "type": "string"
  17331. },
  17332. "seq": {
  17333. "type": "integer",
  17334. "allOf": [
  17335. {
  17336. "minimum": 0
  17337. }
  17338. ]
  17339. },
  17340. "version": {
  17341. "type": "number",
  17342. "enum": [
  17343. 1
  17344. ]
  17345. }
  17346. },
  17347. "required": [
  17348. "aggregateID",
  17349. "seq",
  17350. "version"
  17351. ],
  17352. "additionalProperties": false
  17353. },
  17354. "location": {
  17355. "$ref": "#/components/schemas/Location.Ref"
  17356. },
  17357. "data": {
  17358. "type": "object",
  17359. "properties": {
  17360. "sessionID": {
  17361. "type": "string",
  17362. "allOf": [
  17363. {
  17364. "pattern": "^ses"
  17365. }
  17366. ]
  17367. },
  17368. "assistantMessageID": {
  17369. "type": "string",
  17370. "allOf": [
  17371. {
  17372. "pattern": "^msg_"
  17373. }
  17374. ]
  17375. },
  17376. "id": {
  17377. "type": "string"
  17378. },
  17379. "name": {
  17380. "type": "string"
  17381. }
  17382. },
  17383. "required": [
  17384. "sessionID",
  17385. "assistantMessageID",
  17386. "id",
  17387. "name"
  17388. ],
  17389. "additionalProperties": false
  17390. }
  17391. },
  17392. "required": [
  17393. "id",
  17394. "created",
  17395. "type",
  17396. "durable",
  17397. "data"
  17398. ],
  17399. "additionalProperties": false
  17400. },
  17401. "session.tool.input.ended": {
  17402. "type": "object",
  17403. "properties": {
  17404. "id": {
  17405. "type": "string",
  17406. "allOf": [
  17407. {
  17408. "pattern": "^evt_"
  17409. }
  17410. ]
  17411. },
  17412. "created": {
  17413. "type": "number"
  17414. },
  17415. "metadata": {
  17416. "type": "object"
  17417. },
  17418. "type": {
  17419. "type": "string",
  17420. "enum": [
  17421. "session.tool.input.ended"
  17422. ]
  17423. },
  17424. "durable": {
  17425. "type": "object",
  17426. "properties": {
  17427. "aggregateID": {
  17428. "type": "string"
  17429. },
  17430. "seq": {
  17431. "type": "integer",
  17432. "allOf": [
  17433. {
  17434. "minimum": 0
  17435. }
  17436. ]
  17437. },
  17438. "version": {
  17439. "type": "number",
  17440. "enum": [
  17441. 1
  17442. ]
  17443. }
  17444. },
  17445. "required": [
  17446. "aggregateID",
  17447. "seq",
  17448. "version"
  17449. ],
  17450. "additionalProperties": false
  17451. },
  17452. "location": {
  17453. "$ref": "#/components/schemas/Location.Ref"
  17454. },
  17455. "data": {
  17456. "type": "object",
  17457. "properties": {
  17458. "sessionID": {
  17459. "type": "string",
  17460. "allOf": [
  17461. {
  17462. "pattern": "^ses"
  17463. }
  17464. ]
  17465. },
  17466. "assistantMessageID": {
  17467. "type": "string",
  17468. "allOf": [
  17469. {
  17470. "pattern": "^msg_"
  17471. }
  17472. ]
  17473. },
  17474. "id": {
  17475. "type": "string"
  17476. },
  17477. "text": {
  17478. "type": "string"
  17479. }
  17480. },
  17481. "required": [
  17482. "sessionID",
  17483. "assistantMessageID",
  17484. "id",
  17485. "text"
  17486. ],
  17487. "additionalProperties": false
  17488. }
  17489. },
  17490. "required": [
  17491. "id",
  17492. "created",
  17493. "type",
  17494. "durable",
  17495. "data"
  17496. ],
  17497. "additionalProperties": false
  17498. },
  17499. "Session.Message.ProviderState7": {
  17500. "type": "object"
  17501. },
  17502. "session.tool.called": {
  17503. "type": "object",
  17504. "properties": {
  17505. "id": {
  17506. "type": "string",
  17507. "allOf": [
  17508. {
  17509. "pattern": "^evt_"
  17510. }
  17511. ]
  17512. },
  17513. "created": {
  17514. "type": "number"
  17515. },
  17516. "metadata": {
  17517. "type": "object"
  17518. },
  17519. "type": {
  17520. "type": "string",
  17521. "enum": [
  17522. "session.tool.called"
  17523. ]
  17524. },
  17525. "durable": {
  17526. "type": "object",
  17527. "properties": {
  17528. "aggregateID": {
  17529. "type": "string"
  17530. },
  17531. "seq": {
  17532. "type": "integer",
  17533. "allOf": [
  17534. {
  17535. "minimum": 0
  17536. }
  17537. ]
  17538. },
  17539. "version": {
  17540. "type": "number",
  17541. "enum": [
  17542. 1
  17543. ]
  17544. }
  17545. },
  17546. "required": [
  17547. "aggregateID",
  17548. "seq",
  17549. "version"
  17550. ],
  17551. "additionalProperties": false
  17552. },
  17553. "location": {
  17554. "$ref": "#/components/schemas/Location.Ref"
  17555. },
  17556. "data": {
  17557. "type": "object",
  17558. "properties": {
  17559. "sessionID": {
  17560. "type": "string",
  17561. "allOf": [
  17562. {
  17563. "pattern": "^ses"
  17564. }
  17565. ]
  17566. },
  17567. "assistantMessageID": {
  17568. "type": "string",
  17569. "allOf": [
  17570. {
  17571. "pattern": "^msg_"
  17572. }
  17573. ]
  17574. },
  17575. "id": {
  17576. "type": "string"
  17577. },
  17578. "input": {
  17579. "type": "object"
  17580. },
  17581. "executed": {
  17582. "type": "boolean"
  17583. },
  17584. "state": {
  17585. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  17586. }
  17587. },
  17588. "required": [
  17589. "sessionID",
  17590. "assistantMessageID",
  17591. "id",
  17592. "input",
  17593. "executed"
  17594. ],
  17595. "additionalProperties": false
  17596. }
  17597. },
  17598. "required": [
  17599. "id",
  17600. "created",
  17601. "type",
  17602. "durable",
  17603. "data"
  17604. ],
  17605. "additionalProperties": false
  17606. },
  17607. "Tool.FileContent1": {
  17608. "type": "object",
  17609. "properties": {
  17610. "type": {
  17611. "type": "string",
  17612. "enum": [
  17613. "file"
  17614. ]
  17615. },
  17616. "uri": {
  17617. "type": "string"
  17618. },
  17619. "mime": {
  17620. "type": "string"
  17621. },
  17622. "name": {
  17623. "anyOf": [
  17624. {
  17625. "type": "string"
  17626. },
  17627. {
  17628. "type": "null"
  17629. }
  17630. ]
  17631. }
  17632. },
  17633. "required": [
  17634. "type",
  17635. "uri",
  17636. "mime"
  17637. ],
  17638. "additionalProperties": false
  17639. },
  17640. "Tool.Content1": {
  17641. "anyOf": [
  17642. {
  17643. "$ref": "#/components/schemas/Tool.TextContent"
  17644. },
  17645. {
  17646. "$ref": "#/components/schemas/Tool.FileContent1"
  17647. }
  17648. ]
  17649. },
  17650. "Session.Message.ProviderState8": {
  17651. "type": "object"
  17652. },
  17653. "session.tool.success": {
  17654. "type": "object",
  17655. "properties": {
  17656. "id": {
  17657. "type": "string",
  17658. "allOf": [
  17659. {
  17660. "pattern": "^evt_"
  17661. }
  17662. ]
  17663. },
  17664. "created": {
  17665. "type": "number"
  17666. },
  17667. "metadata": {
  17668. "type": "object"
  17669. },
  17670. "type": {
  17671. "type": "string",
  17672. "enum": [
  17673. "session.tool.success"
  17674. ]
  17675. },
  17676. "durable": {
  17677. "type": "object",
  17678. "properties": {
  17679. "aggregateID": {
  17680. "type": "string"
  17681. },
  17682. "seq": {
  17683. "type": "integer",
  17684. "allOf": [
  17685. {
  17686. "minimum": 0
  17687. }
  17688. ]
  17689. },
  17690. "version": {
  17691. "type": "number",
  17692. "enum": [
  17693. 2
  17694. ]
  17695. }
  17696. },
  17697. "required": [
  17698. "aggregateID",
  17699. "seq",
  17700. "version"
  17701. ],
  17702. "additionalProperties": false
  17703. },
  17704. "location": {
  17705. "$ref": "#/components/schemas/Location.Ref"
  17706. },
  17707. "data": {
  17708. "type": "object",
  17709. "properties": {
  17710. "sessionID": {
  17711. "type": "string",
  17712. "allOf": [
  17713. {
  17714. "pattern": "^ses"
  17715. }
  17716. ]
  17717. },
  17718. "assistantMessageID": {
  17719. "type": "string",
  17720. "allOf": [
  17721. {
  17722. "pattern": "^msg_"
  17723. }
  17724. ]
  17725. },
  17726. "id": {
  17727. "type": "string"
  17728. },
  17729. "content": {
  17730. "type": "array",
  17731. "prefixItems": [
  17732. {
  17733. "$ref": "#/components/schemas/Tool.Content1"
  17734. }
  17735. ],
  17736. "minItems": 1,
  17737. "items": {
  17738. "$ref": "#/components/schemas/Tool.Content1"
  17739. }
  17740. },
  17741. "metadata": {
  17742. "type": "object"
  17743. },
  17744. "executed": {
  17745. "type": "boolean"
  17746. },
  17747. "resultState": {
  17748. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  17749. }
  17750. },
  17751. "required": [
  17752. "sessionID",
  17753. "assistantMessageID",
  17754. "id",
  17755. "content",
  17756. "executed"
  17757. ],
  17758. "additionalProperties": false
  17759. }
  17760. },
  17761. "required": [
  17762. "id",
  17763. "created",
  17764. "type",
  17765. "durable",
  17766. "data"
  17767. ],
  17768. "additionalProperties": false
  17769. },
  17770. "Session.Message.ProviderState9": {
  17771. "type": "object"
  17772. },
  17773. "session.tool.failed": {
  17774. "type": "object",
  17775. "properties": {
  17776. "id": {
  17777. "type": "string",
  17778. "allOf": [
  17779. {
  17780. "pattern": "^evt_"
  17781. }
  17782. ]
  17783. },
  17784. "created": {
  17785. "type": "number"
  17786. },
  17787. "metadata": {
  17788. "type": "object"
  17789. },
  17790. "type": {
  17791. "type": "string",
  17792. "enum": [
  17793. "session.tool.failed"
  17794. ]
  17795. },
  17796. "durable": {
  17797. "type": "object",
  17798. "properties": {
  17799. "aggregateID": {
  17800. "type": "string"
  17801. },
  17802. "seq": {
  17803. "type": "integer",
  17804. "allOf": [
  17805. {
  17806. "minimum": 0
  17807. }
  17808. ]
  17809. },
  17810. "version": {
  17811. "type": "number",
  17812. "enum": [
  17813. 2
  17814. ]
  17815. }
  17816. },
  17817. "required": [
  17818. "aggregateID",
  17819. "seq",
  17820. "version"
  17821. ],
  17822. "additionalProperties": false
  17823. },
  17824. "location": {
  17825. "$ref": "#/components/schemas/Location.Ref"
  17826. },
  17827. "data": {
  17828. "type": "object",
  17829. "properties": {
  17830. "sessionID": {
  17831. "type": "string",
  17832. "allOf": [
  17833. {
  17834. "pattern": "^ses"
  17835. }
  17836. ]
  17837. },
  17838. "assistantMessageID": {
  17839. "type": "string",
  17840. "allOf": [
  17841. {
  17842. "pattern": "^msg_"
  17843. }
  17844. ]
  17845. },
  17846. "id": {
  17847. "type": "string"
  17848. },
  17849. "error": {
  17850. "$ref": "#/components/schemas/Session.StructuredError"
  17851. },
  17852. "content": {
  17853. "type": "array",
  17854. "prefixItems": [
  17855. {
  17856. "$ref": "#/components/schemas/Tool.Content1"
  17857. }
  17858. ],
  17859. "minItems": 1,
  17860. "items": {
  17861. "$ref": "#/components/schemas/Tool.Content1"
  17862. }
  17863. },
  17864. "metadata": {
  17865. "type": "object"
  17866. },
  17867. "executed": {
  17868. "type": "boolean"
  17869. },
  17870. "resultState": {
  17871. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  17872. }
  17873. },
  17874. "required": [
  17875. "sessionID",
  17876. "assistantMessageID",
  17877. "id",
  17878. "error",
  17879. "executed"
  17880. ],
  17881. "additionalProperties": false
  17882. }
  17883. },
  17884. "required": [
  17885. "id",
  17886. "created",
  17887. "type",
  17888. "durable",
  17889. "data"
  17890. ],
  17891. "additionalProperties": false
  17892. },
  17893. "session.retry.scheduled": {
  17894. "type": "object",
  17895. "properties": {
  17896. "id": {
  17897. "type": "string",
  17898. "allOf": [
  17899. {
  17900. "pattern": "^evt_"
  17901. }
  17902. ]
  17903. },
  17904. "created": {
  17905. "type": "number"
  17906. },
  17907. "metadata": {
  17908. "type": "object"
  17909. },
  17910. "type": {
  17911. "type": "string",
  17912. "enum": [
  17913. "session.retry.scheduled"
  17914. ]
  17915. },
  17916. "durable": {
  17917. "type": "object",
  17918. "properties": {
  17919. "aggregateID": {
  17920. "type": "string"
  17921. },
  17922. "seq": {
  17923. "type": "integer",
  17924. "allOf": [
  17925. {
  17926. "minimum": 0
  17927. }
  17928. ]
  17929. },
  17930. "version": {
  17931. "type": "number",
  17932. "enum": [
  17933. 1
  17934. ]
  17935. }
  17936. },
  17937. "required": [
  17938. "aggregateID",
  17939. "seq",
  17940. "version"
  17941. ],
  17942. "additionalProperties": false
  17943. },
  17944. "location": {
  17945. "$ref": "#/components/schemas/Location.Ref"
  17946. },
  17947. "data": {
  17948. "type": "object",
  17949. "properties": {
  17950. "sessionID": {
  17951. "type": "string",
  17952. "allOf": [
  17953. {
  17954. "pattern": "^ses"
  17955. }
  17956. ]
  17957. },
  17958. "assistantMessageID": {
  17959. "type": "string",
  17960. "allOf": [
  17961. {
  17962. "pattern": "^msg_"
  17963. }
  17964. ]
  17965. },
  17966. "attempt": {
  17967. "type": "integer",
  17968. "allOf": [
  17969. {
  17970. "exclusiveMinimum": 0
  17971. }
  17972. ]
  17973. },
  17974. "at": {
  17975. "type": "integer",
  17976. "allOf": [
  17977. {
  17978. "minimum": 0
  17979. }
  17980. ]
  17981. },
  17982. "error": {
  17983. "$ref": "#/components/schemas/Session.StructuredError"
  17984. }
  17985. },
  17986. "required": [
  17987. "sessionID",
  17988. "assistantMessageID",
  17989. "attempt",
  17990. "at",
  17991. "error"
  17992. ],
  17993. "additionalProperties": false
  17994. }
  17995. },
  17996. "required": [
  17997. "id",
  17998. "created",
  17999. "type",
  18000. "durable",
  18001. "data"
  18002. ],
  18003. "additionalProperties": false
  18004. },
  18005. "session.compaction.admitted": {
  18006. "type": "object",
  18007. "properties": {
  18008. "id": {
  18009. "type": "string",
  18010. "allOf": [
  18011. {
  18012. "pattern": "^evt_"
  18013. }
  18014. ]
  18015. },
  18016. "created": {
  18017. "type": "number"
  18018. },
  18019. "metadata": {
  18020. "type": "object"
  18021. },
  18022. "type": {
  18023. "type": "string",
  18024. "enum": [
  18025. "session.compaction.admitted"
  18026. ]
  18027. },
  18028. "durable": {
  18029. "type": "object",
  18030. "properties": {
  18031. "aggregateID": {
  18032. "type": "string"
  18033. },
  18034. "seq": {
  18035. "type": "integer",
  18036. "allOf": [
  18037. {
  18038. "minimum": 0
  18039. }
  18040. ]
  18041. },
  18042. "version": {
  18043. "type": "number",
  18044. "enum": [
  18045. 1
  18046. ]
  18047. }
  18048. },
  18049. "required": [
  18050. "aggregateID",
  18051. "seq",
  18052. "version"
  18053. ],
  18054. "additionalProperties": false
  18055. },
  18056. "location": {
  18057. "$ref": "#/components/schemas/Location.Ref"
  18058. },
  18059. "data": {
  18060. "type": "object",
  18061. "properties": {
  18062. "sessionID": {
  18063. "type": "string",
  18064. "allOf": [
  18065. {
  18066. "pattern": "^ses"
  18067. }
  18068. ]
  18069. },
  18070. "inputID": {
  18071. "type": "string",
  18072. "allOf": [
  18073. {
  18074. "pattern": "^msg_"
  18075. }
  18076. ]
  18077. }
  18078. },
  18079. "required": [
  18080. "sessionID",
  18081. "inputID"
  18082. ],
  18083. "additionalProperties": false
  18084. }
  18085. },
  18086. "required": [
  18087. "id",
  18088. "created",
  18089. "type",
  18090. "durable",
  18091. "data"
  18092. ],
  18093. "additionalProperties": false
  18094. },
  18095. "session.compaction.started": {
  18096. "type": "object",
  18097. "properties": {
  18098. "id": {
  18099. "type": "string",
  18100. "allOf": [
  18101. {
  18102. "pattern": "^evt_"
  18103. }
  18104. ]
  18105. },
  18106. "created": {
  18107. "type": "number"
  18108. },
  18109. "metadata": {
  18110. "type": "object"
  18111. },
  18112. "type": {
  18113. "type": "string",
  18114. "enum": [
  18115. "session.compaction.started"
  18116. ]
  18117. },
  18118. "durable": {
  18119. "type": "object",
  18120. "properties": {
  18121. "aggregateID": {
  18122. "type": "string"
  18123. },
  18124. "seq": {
  18125. "type": "integer",
  18126. "allOf": [
  18127. {
  18128. "minimum": 0
  18129. }
  18130. ]
  18131. },
  18132. "version": {
  18133. "type": "number",
  18134. "enum": [
  18135. 1
  18136. ]
  18137. }
  18138. },
  18139. "required": [
  18140. "aggregateID",
  18141. "seq",
  18142. "version"
  18143. ],
  18144. "additionalProperties": false
  18145. },
  18146. "location": {
  18147. "$ref": "#/components/schemas/Location.Ref"
  18148. },
  18149. "data": {
  18150. "type": "object",
  18151. "properties": {
  18152. "sessionID": {
  18153. "type": "string",
  18154. "allOf": [
  18155. {
  18156. "pattern": "^ses"
  18157. }
  18158. ]
  18159. },
  18160. "reason": {
  18161. "type": "string",
  18162. "enum": [
  18163. "auto",
  18164. "manual"
  18165. ]
  18166. },
  18167. "recent": {
  18168. "type": "string"
  18169. },
  18170. "inputID": {
  18171. "type": "string",
  18172. "allOf": [
  18173. {
  18174. "pattern": "^msg_"
  18175. }
  18176. ]
  18177. }
  18178. },
  18179. "required": [
  18180. "sessionID",
  18181. "reason",
  18182. "recent"
  18183. ],
  18184. "additionalProperties": false
  18185. }
  18186. },
  18187. "required": [
  18188. "id",
  18189. "created",
  18190. "type",
  18191. "durable",
  18192. "data"
  18193. ],
  18194. "additionalProperties": false
  18195. },
  18196. "session.compaction.ended": {
  18197. "type": "object",
  18198. "properties": {
  18199. "id": {
  18200. "type": "string",
  18201. "allOf": [
  18202. {
  18203. "pattern": "^evt_"
  18204. }
  18205. ]
  18206. },
  18207. "created": {
  18208. "type": "number"
  18209. },
  18210. "metadata": {
  18211. "type": "object"
  18212. },
  18213. "type": {
  18214. "type": "string",
  18215. "enum": [
  18216. "session.compaction.ended"
  18217. ]
  18218. },
  18219. "durable": {
  18220. "type": "object",
  18221. "properties": {
  18222. "aggregateID": {
  18223. "type": "string"
  18224. },
  18225. "seq": {
  18226. "type": "integer",
  18227. "allOf": [
  18228. {
  18229. "minimum": 0
  18230. }
  18231. ]
  18232. },
  18233. "version": {
  18234. "type": "number",
  18235. "enum": [
  18236. 1
  18237. ]
  18238. }
  18239. },
  18240. "required": [
  18241. "aggregateID",
  18242. "seq",
  18243. "version"
  18244. ],
  18245. "additionalProperties": false
  18246. },
  18247. "location": {
  18248. "$ref": "#/components/schemas/Location.Ref"
  18249. },
  18250. "data": {
  18251. "type": "object",
  18252. "properties": {
  18253. "sessionID": {
  18254. "type": "string",
  18255. "allOf": [
  18256. {
  18257. "pattern": "^ses"
  18258. }
  18259. ]
  18260. },
  18261. "reason": {
  18262. "type": "string",
  18263. "enum": [
  18264. "auto",
  18265. "manual"
  18266. ]
  18267. },
  18268. "text": {
  18269. "type": "string"
  18270. },
  18271. "recent": {
  18272. "type": "string"
  18273. }
  18274. },
  18275. "required": [
  18276. "sessionID",
  18277. "reason",
  18278. "text",
  18279. "recent"
  18280. ],
  18281. "additionalProperties": false
  18282. }
  18283. },
  18284. "required": [
  18285. "id",
  18286. "created",
  18287. "type",
  18288. "durable",
  18289. "data"
  18290. ],
  18291. "additionalProperties": false
  18292. },
  18293. "session.compaction.failed": {
  18294. "type": "object",
  18295. "properties": {
  18296. "id": {
  18297. "type": "string",
  18298. "allOf": [
  18299. {
  18300. "pattern": "^evt_"
  18301. }
  18302. ]
  18303. },
  18304. "created": {
  18305. "type": "number"
  18306. },
  18307. "metadata": {
  18308. "type": "object"
  18309. },
  18310. "type": {
  18311. "type": "string",
  18312. "enum": [
  18313. "session.compaction.failed"
  18314. ]
  18315. },
  18316. "durable": {
  18317. "type": "object",
  18318. "properties": {
  18319. "aggregateID": {
  18320. "type": "string"
  18321. },
  18322. "seq": {
  18323. "type": "integer",
  18324. "allOf": [
  18325. {
  18326. "minimum": 0
  18327. }
  18328. ]
  18329. },
  18330. "version": {
  18331. "type": "number",
  18332. "enum": [
  18333. 1
  18334. ]
  18335. }
  18336. },
  18337. "required": [
  18338. "aggregateID",
  18339. "seq",
  18340. "version"
  18341. ],
  18342. "additionalProperties": false
  18343. },
  18344. "location": {
  18345. "$ref": "#/components/schemas/Location.Ref"
  18346. },
  18347. "data": {
  18348. "type": "object",
  18349. "properties": {
  18350. "sessionID": {
  18351. "type": "string",
  18352. "allOf": [
  18353. {
  18354. "pattern": "^ses"
  18355. }
  18356. ]
  18357. },
  18358. "reason": {
  18359. "type": "string",
  18360. "enum": [
  18361. "auto",
  18362. "manual"
  18363. ]
  18364. },
  18365. "error": {
  18366. "$ref": "#/components/schemas/Session.StructuredError"
  18367. },
  18368. "inputID": {
  18369. "type": "string",
  18370. "allOf": [
  18371. {
  18372. "pattern": "^msg_"
  18373. }
  18374. ]
  18375. }
  18376. },
  18377. "required": [
  18378. "sessionID",
  18379. "reason",
  18380. "error"
  18381. ],
  18382. "additionalProperties": false
  18383. }
  18384. },
  18385. "required": [
  18386. "id",
  18387. "created",
  18388. "type",
  18389. "durable",
  18390. "data"
  18391. ],
  18392. "additionalProperties": false
  18393. },
  18394. "session.revert.staged": {
  18395. "type": "object",
  18396. "properties": {
  18397. "id": {
  18398. "type": "string",
  18399. "allOf": [
  18400. {
  18401. "pattern": "^evt_"
  18402. }
  18403. ]
  18404. },
  18405. "created": {
  18406. "type": "number"
  18407. },
  18408. "metadata": {
  18409. "type": "object"
  18410. },
  18411. "type": {
  18412. "type": "string",
  18413. "enum": [
  18414. "session.revert.staged"
  18415. ]
  18416. },
  18417. "durable": {
  18418. "type": "object",
  18419. "properties": {
  18420. "aggregateID": {
  18421. "type": "string"
  18422. },
  18423. "seq": {
  18424. "type": "integer",
  18425. "allOf": [
  18426. {
  18427. "minimum": 0
  18428. }
  18429. ]
  18430. },
  18431. "version": {
  18432. "type": "number",
  18433. "enum": [
  18434. 1
  18435. ]
  18436. }
  18437. },
  18438. "required": [
  18439. "aggregateID",
  18440. "seq",
  18441. "version"
  18442. ],
  18443. "additionalProperties": false
  18444. },
  18445. "location": {
  18446. "$ref": "#/components/schemas/Location.Ref"
  18447. },
  18448. "data": {
  18449. "type": "object",
  18450. "properties": {
  18451. "sessionID": {
  18452. "type": "string",
  18453. "allOf": [
  18454. {
  18455. "pattern": "^ses"
  18456. }
  18457. ]
  18458. },
  18459. "revert": {
  18460. "$ref": "#/components/schemas/Session.Revert"
  18461. }
  18462. },
  18463. "required": [
  18464. "sessionID",
  18465. "revert"
  18466. ],
  18467. "additionalProperties": false
  18468. }
  18469. },
  18470. "required": [
  18471. "id",
  18472. "created",
  18473. "type",
  18474. "durable",
  18475. "data"
  18476. ],
  18477. "additionalProperties": false
  18478. },
  18479. "session.revert.cleared": {
  18480. "type": "object",
  18481. "properties": {
  18482. "id": {
  18483. "type": "string",
  18484. "allOf": [
  18485. {
  18486. "pattern": "^evt_"
  18487. }
  18488. ]
  18489. },
  18490. "created": {
  18491. "type": "number"
  18492. },
  18493. "metadata": {
  18494. "type": "object"
  18495. },
  18496. "type": {
  18497. "type": "string",
  18498. "enum": [
  18499. "session.revert.cleared"
  18500. ]
  18501. },
  18502. "durable": {
  18503. "type": "object",
  18504. "properties": {
  18505. "aggregateID": {
  18506. "type": "string"
  18507. },
  18508. "seq": {
  18509. "type": "integer",
  18510. "allOf": [
  18511. {
  18512. "minimum": 0
  18513. }
  18514. ]
  18515. },
  18516. "version": {
  18517. "type": "number",
  18518. "enum": [
  18519. 1
  18520. ]
  18521. }
  18522. },
  18523. "required": [
  18524. "aggregateID",
  18525. "seq",
  18526. "version"
  18527. ],
  18528. "additionalProperties": false
  18529. },
  18530. "location": {
  18531. "$ref": "#/components/schemas/Location.Ref"
  18532. },
  18533. "data": {
  18534. "type": "object",
  18535. "properties": {
  18536. "sessionID": {
  18537. "type": "string",
  18538. "allOf": [
  18539. {
  18540. "pattern": "^ses"
  18541. }
  18542. ]
  18543. }
  18544. },
  18545. "required": [
  18546. "sessionID"
  18547. ],
  18548. "additionalProperties": false
  18549. }
  18550. },
  18551. "required": [
  18552. "id",
  18553. "created",
  18554. "type",
  18555. "durable",
  18556. "data"
  18557. ],
  18558. "additionalProperties": false
  18559. },
  18560. "session.revert.committed": {
  18561. "type": "object",
  18562. "properties": {
  18563. "id": {
  18564. "type": "string",
  18565. "allOf": [
  18566. {
  18567. "pattern": "^evt_"
  18568. }
  18569. ]
  18570. },
  18571. "created": {
  18572. "type": "number"
  18573. },
  18574. "metadata": {
  18575. "type": "object"
  18576. },
  18577. "type": {
  18578. "type": "string",
  18579. "enum": [
  18580. "session.revert.committed"
  18581. ]
  18582. },
  18583. "durable": {
  18584. "type": "object",
  18585. "properties": {
  18586. "aggregateID": {
  18587. "type": "string"
  18588. },
  18589. "seq": {
  18590. "type": "integer",
  18591. "allOf": [
  18592. {
  18593. "minimum": 0
  18594. }
  18595. ]
  18596. },
  18597. "version": {
  18598. "type": "number",
  18599. "enum": [
  18600. 1
  18601. ]
  18602. }
  18603. },
  18604. "required": [
  18605. "aggregateID",
  18606. "seq",
  18607. "version"
  18608. ],
  18609. "additionalProperties": false
  18610. },
  18611. "location": {
  18612. "$ref": "#/components/schemas/Location.Ref"
  18613. },
  18614. "data": {
  18615. "type": "object",
  18616. "properties": {
  18617. "sessionID": {
  18618. "type": "string",
  18619. "allOf": [
  18620. {
  18621. "pattern": "^ses"
  18622. }
  18623. ]
  18624. },
  18625. "to": {
  18626. "type": "string",
  18627. "allOf": [
  18628. {
  18629. "pattern": "^msg_"
  18630. }
  18631. ]
  18632. }
  18633. },
  18634. "required": [
  18635. "sessionID",
  18636. "to"
  18637. ],
  18638. "additionalProperties": false
  18639. }
  18640. },
  18641. "required": [
  18642. "id",
  18643. "created",
  18644. "type",
  18645. "durable",
  18646. "data"
  18647. ],
  18648. "additionalProperties": false
  18649. },
  18650. "session.usage.recorded": {
  18651. "type": "object",
  18652. "properties": {
  18653. "id": {
  18654. "type": "string",
  18655. "allOf": [
  18656. {
  18657. "pattern": "^evt_"
  18658. }
  18659. ]
  18660. },
  18661. "created": {
  18662. "type": "number"
  18663. },
  18664. "metadata": {
  18665. "type": "object"
  18666. },
  18667. "type": {
  18668. "type": "string",
  18669. "enum": [
  18670. "session.usage.recorded"
  18671. ]
  18672. },
  18673. "durable": {
  18674. "type": "object",
  18675. "properties": {
  18676. "aggregateID": {
  18677. "type": "string"
  18678. },
  18679. "seq": {
  18680. "type": "integer",
  18681. "allOf": [
  18682. {
  18683. "minimum": 0
  18684. }
  18685. ]
  18686. },
  18687. "version": {
  18688. "type": "number",
  18689. "enum": [
  18690. 1
  18691. ]
  18692. }
  18693. },
  18694. "required": [
  18695. "aggregateID",
  18696. "seq",
  18697. "version"
  18698. ],
  18699. "additionalProperties": false
  18700. },
  18701. "location": {
  18702. "$ref": "#/components/schemas/Location.Ref"
  18703. },
  18704. "data": {
  18705. "type": "object",
  18706. "properties": {
  18707. "sessionID": {
  18708. "type": "string",
  18709. "allOf": [
  18710. {
  18711. "pattern": "^ses"
  18712. }
  18713. ]
  18714. },
  18715. "source": {
  18716. "type": "string",
  18717. "enum": [
  18718. "title",
  18719. "compaction"
  18720. ]
  18721. },
  18722. "cost": {
  18723. "$ref": "#/components/schemas/Money.USD"
  18724. },
  18725. "tokens": {
  18726. "$ref": "#/components/schemas/TokenUsage.Info"
  18727. }
  18728. },
  18729. "required": [
  18730. "sessionID",
  18731. "source",
  18732. "cost",
  18733. "tokens"
  18734. ],
  18735. "additionalProperties": false
  18736. }
  18737. },
  18738. "required": [
  18739. "id",
  18740. "created",
  18741. "type",
  18742. "durable",
  18743. "data"
  18744. ],
  18745. "additionalProperties": false
  18746. },
  18747. "Session.Event.Durable": {
  18748. "oneOf": [
  18749. {
  18750. "$ref": "#/components/schemas/session.created"
  18751. },
  18752. {
  18753. "$ref": "#/components/schemas/session.agent.selected"
  18754. },
  18755. {
  18756. "$ref": "#/components/schemas/session.model.selected"
  18757. },
  18758. {
  18759. "$ref": "#/components/schemas/session.moved"
  18760. },
  18761. {
  18762. "$ref": "#/components/schemas/session.renamed"
  18763. },
  18764. {
  18765. "$ref": "#/components/schemas/session.deleted"
  18766. },
  18767. {
  18768. "$ref": "#/components/schemas/session.forked"
  18769. },
  18770. {
  18771. "$ref": "#/components/schemas/session.input.promoted"
  18772. },
  18773. {
  18774. "$ref": "#/components/schemas/session.input.admitted"
  18775. },
  18776. {
  18777. "$ref": "#/components/schemas/session.execution.started"
  18778. },
  18779. {
  18780. "$ref": "#/components/schemas/session.execution.succeeded"
  18781. },
  18782. {
  18783. "$ref": "#/components/schemas/session.execution.failed"
  18784. },
  18785. {
  18786. "$ref": "#/components/schemas/session.execution.interrupted"
  18787. },
  18788. {
  18789. "$ref": "#/components/schemas/session.instructions.updated"
  18790. },
  18791. {
  18792. "$ref": "#/components/schemas/session.synthetic"
  18793. },
  18794. {
  18795. "$ref": "#/components/schemas/session.skill.activated"
  18796. },
  18797. {
  18798. "$ref": "#/components/schemas/session.shell.started"
  18799. },
  18800. {
  18801. "$ref": "#/components/schemas/session.shell.ended"
  18802. },
  18803. {
  18804. "$ref": "#/components/schemas/session.step.started"
  18805. },
  18806. {
  18807. "$ref": "#/components/schemas/session.step.ended"
  18808. },
  18809. {
  18810. "$ref": "#/components/schemas/session.step.failed"
  18811. },
  18812. {
  18813. "$ref": "#/components/schemas/session.text.started"
  18814. },
  18815. {
  18816. "$ref": "#/components/schemas/session.text.ended"
  18817. },
  18818. {
  18819. "$ref": "#/components/schemas/session.reasoning.started"
  18820. },
  18821. {
  18822. "$ref": "#/components/schemas/session.reasoning.ended"
  18823. },
  18824. {
  18825. "$ref": "#/components/schemas/session.tool.input.started"
  18826. },
  18827. {
  18828. "$ref": "#/components/schemas/session.tool.input.ended"
  18829. },
  18830. {
  18831. "$ref": "#/components/schemas/session.tool.called"
  18832. },
  18833. {
  18834. "$ref": "#/components/schemas/session.tool.success"
  18835. },
  18836. {
  18837. "$ref": "#/components/schemas/session.tool.failed"
  18838. },
  18839. {
  18840. "$ref": "#/components/schemas/session.retry.scheduled"
  18841. },
  18842. {
  18843. "$ref": "#/components/schemas/session.compaction.admitted"
  18844. },
  18845. {
  18846. "$ref": "#/components/schemas/session.compaction.started"
  18847. },
  18848. {
  18849. "$ref": "#/components/schemas/session.compaction.ended"
  18850. },
  18851. {
  18852. "$ref": "#/components/schemas/session.compaction.failed"
  18853. },
  18854. {
  18855. "$ref": "#/components/schemas/session.revert.staged"
  18856. },
  18857. {
  18858. "$ref": "#/components/schemas/session.revert.cleared"
  18859. },
  18860. {
  18861. "$ref": "#/components/schemas/session.revert.committed"
  18862. },
  18863. {
  18864. "$ref": "#/components/schemas/session.usage.recorded"
  18865. }
  18866. ]
  18867. },
  18868. "EventLog.Synced": {
  18869. "type": "object",
  18870. "properties": {
  18871. "type": {
  18872. "type": "string",
  18873. "enum": [
  18874. "log.synced"
  18875. ]
  18876. },
  18877. "aggregateID": {
  18878. "type": "string"
  18879. },
  18880. "seq": {
  18881. "type": "integer",
  18882. "allOf": [
  18883. {
  18884. "minimum": 0
  18885. }
  18886. ]
  18887. }
  18888. },
  18889. "required": [
  18890. "type",
  18891. "aggregateID"
  18892. ],
  18893. "additionalProperties": false,
  18894. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  18895. },
  18896. "SessionLogItem": {
  18897. "anyOf": [
  18898. {
  18899. "$ref": "#/components/schemas/Session.Event.Durable"
  18900. },
  18901. {
  18902. "$ref": "#/components/schemas/EventLog.Synced"
  18903. }
  18904. ]
  18905. },
  18906. "SessionLogItemJsonString": {
  18907. "type": "string",
  18908. "contentSchema": {
  18909. "$ref": "#/components/schemas/SessionLogItem"
  18910. },
  18911. "contentMediaType": "application/json"
  18912. },
  18913. "SessionMessagesResponse": {
  18914. "type": "object",
  18915. "properties": {
  18916. "data": {
  18917. "type": "array",
  18918. "items": {
  18919. "$ref": "#/components/schemas/Session.Message.Info"
  18920. }
  18921. },
  18922. "cursor": {
  18923. "type": "object",
  18924. "properties": {
  18925. "previous": {
  18926. "anyOf": [
  18927. {
  18928. "type": "string"
  18929. },
  18930. {
  18931. "type": "null"
  18932. }
  18933. ]
  18934. },
  18935. "next": {
  18936. "anyOf": [
  18937. {
  18938. "type": "string"
  18939. },
  18940. {
  18941. "type": "null"
  18942. }
  18943. ]
  18944. }
  18945. },
  18946. "additionalProperties": false
  18947. }
  18948. },
  18949. "required": [
  18950. "data",
  18951. "cursor"
  18952. ],
  18953. "additionalProperties": false
  18954. },
  18955. "Model.ReasoningField": {
  18956. "anyOf": [
  18957. {
  18958. "type": "string",
  18959. "enum": [
  18960. "reasoning",
  18961. "reasoning_content",
  18962. "reasoning_text"
  18963. ]
  18964. },
  18965. {
  18966. "type": "string"
  18967. }
  18968. ]
  18969. },
  18970. "Model.Compatibility": {
  18971. "type": "object",
  18972. "properties": {
  18973. "reasoningField": {
  18974. "$ref": "#/components/schemas/Model.ReasoningField"
  18975. }
  18976. },
  18977. "additionalProperties": false
  18978. },
  18979. "Model.Capabilities": {
  18980. "type": "object",
  18981. "properties": {
  18982. "tools": {
  18983. "type": "boolean"
  18984. },
  18985. "input": {
  18986. "type": "array",
  18987. "items": {
  18988. "type": "string"
  18989. }
  18990. },
  18991. "output": {
  18992. "type": "array",
  18993. "items": {
  18994. "type": "string"
  18995. }
  18996. }
  18997. },
  18998. "required": [
  18999. "tools",
  19000. "input",
  19001. "output"
  19002. ],
  19003. "additionalProperties": false
  19004. },
  19005. "Model.Variant": {
  19006. "type": "object",
  19007. "properties": {
  19008. "id": {
  19009. "type": "string"
  19010. },
  19011. "settings": {
  19012. "type": "object"
  19013. },
  19014. "headers": {
  19015. "type": "object",
  19016. "additionalProperties": {
  19017. "type": "string"
  19018. }
  19019. },
  19020. "body": {
  19021. "type": "object"
  19022. }
  19023. },
  19024. "required": [
  19025. "id"
  19026. ],
  19027. "additionalProperties": false
  19028. },
  19029. "Money.USDPerMillionTokens": {
  19030. "type": "number"
  19031. },
  19032. "Model.Cost": {
  19033. "type": "object",
  19034. "properties": {
  19035. "tier": {
  19036. "type": "object",
  19037. "properties": {
  19038. "type": {
  19039. "type": "string",
  19040. "enum": [
  19041. "context"
  19042. ]
  19043. },
  19044. "size": {
  19045. "type": "integer"
  19046. }
  19047. },
  19048. "required": [
  19049. "type",
  19050. "size"
  19051. ],
  19052. "additionalProperties": false
  19053. },
  19054. "input": {
  19055. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  19056. },
  19057. "output": {
  19058. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  19059. },
  19060. "cache": {
  19061. "type": "object",
  19062. "properties": {
  19063. "read": {
  19064. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  19065. },
  19066. "write": {
  19067. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  19068. }
  19069. },
  19070. "required": [
  19071. "read",
  19072. "write"
  19073. ],
  19074. "additionalProperties": false
  19075. }
  19076. },
  19077. "required": [
  19078. "input",
  19079. "output",
  19080. "cache"
  19081. ],
  19082. "additionalProperties": false
  19083. },
  19084. "Model.Info": {
  19085. "type": "object",
  19086. "properties": {
  19087. "id": {
  19088. "type": "string"
  19089. },
  19090. "modelID": {
  19091. "type": "string"
  19092. },
  19093. "providerID": {
  19094. "type": "string"
  19095. },
  19096. "family": {
  19097. "type": "string"
  19098. },
  19099. "name": {
  19100. "type": "string"
  19101. },
  19102. "compatibility": {
  19103. "$ref": "#/components/schemas/Model.Compatibility"
  19104. },
  19105. "package": {
  19106. "type": "string"
  19107. },
  19108. "settings": {
  19109. "type": "object"
  19110. },
  19111. "headers": {
  19112. "type": "object",
  19113. "additionalProperties": {
  19114. "type": "string"
  19115. }
  19116. },
  19117. "body": {
  19118. "type": "object"
  19119. },
  19120. "capabilities": {
  19121. "$ref": "#/components/schemas/Model.Capabilities"
  19122. },
  19123. "variants": {
  19124. "type": "array",
  19125. "items": {
  19126. "$ref": "#/components/schemas/Model.Variant"
  19127. }
  19128. },
  19129. "time": {
  19130. "type": "object",
  19131. "properties": {
  19132. "released": {
  19133. "type": "number"
  19134. }
  19135. },
  19136. "required": [
  19137. "released"
  19138. ],
  19139. "additionalProperties": false
  19140. },
  19141. "cost": {
  19142. "type": "array",
  19143. "items": {
  19144. "$ref": "#/components/schemas/Model.Cost"
  19145. }
  19146. },
  19147. "status": {
  19148. "type": "string",
  19149. "enum": [
  19150. "alpha",
  19151. "beta",
  19152. "deprecated",
  19153. "active"
  19154. ]
  19155. },
  19156. "enabled": {
  19157. "type": "boolean"
  19158. },
  19159. "limit": {
  19160. "type": "object",
  19161. "properties": {
  19162. "context": {
  19163. "type": "integer"
  19164. },
  19165. "input": {
  19166. "type": "integer"
  19167. },
  19168. "output": {
  19169. "type": "integer"
  19170. }
  19171. },
  19172. "required": [
  19173. "context",
  19174. "output"
  19175. ],
  19176. "additionalProperties": false
  19177. }
  19178. },
  19179. "required": [
  19180. "id",
  19181. "modelID",
  19182. "providerID",
  19183. "name",
  19184. "capabilities",
  19185. "variants",
  19186. "time",
  19187. "cost",
  19188. "status",
  19189. "enabled",
  19190. "limit"
  19191. ],
  19192. "additionalProperties": false
  19193. },
  19194. "GenerateTextResponse": {
  19195. "type": "object",
  19196. "properties": {
  19197. "data": {
  19198. "type": "object",
  19199. "properties": {
  19200. "text": {
  19201. "type": "string"
  19202. }
  19203. },
  19204. "required": [
  19205. "text"
  19206. ],
  19207. "additionalProperties": false
  19208. }
  19209. },
  19210. "required": [
  19211. "data"
  19212. ],
  19213. "additionalProperties": false
  19214. },
  19215. "Provider.Info": {
  19216. "type": "object",
  19217. "properties": {
  19218. "id": {
  19219. "type": "string"
  19220. },
  19221. "integrationID": {
  19222. "type": "string"
  19223. },
  19224. "name": {
  19225. "type": "string"
  19226. },
  19227. "disabled": {
  19228. "type": "boolean"
  19229. },
  19230. "package": {
  19231. "type": "string"
  19232. },
  19233. "settings": {
  19234. "type": "object"
  19235. },
  19236. "headers": {
  19237. "type": "object",
  19238. "additionalProperties": {
  19239. "type": "string"
  19240. }
  19241. },
  19242. "body": {
  19243. "type": "object"
  19244. }
  19245. },
  19246. "required": [
  19247. "id",
  19248. "name",
  19249. "package"
  19250. ],
  19251. "additionalProperties": false
  19252. },
  19253. "ProviderNotFoundError": {
  19254. "type": "object",
  19255. "properties": {
  19256. "_tag": {
  19257. "type": "string",
  19258. "enum": [
  19259. "ProviderNotFoundError"
  19260. ]
  19261. },
  19262. "providerID": {
  19263. "type": "string"
  19264. },
  19265. "message": {
  19266. "type": "string"
  19267. }
  19268. },
  19269. "required": [
  19270. "_tag",
  19271. "providerID",
  19272. "message"
  19273. ],
  19274. "additionalProperties": false
  19275. },
  19276. "Integration.When": {
  19277. "type": "object",
  19278. "properties": {
  19279. "key": {
  19280. "type": "string"
  19281. },
  19282. "op": {
  19283. "type": "string",
  19284. "enum": [
  19285. "eq",
  19286. "neq"
  19287. ]
  19288. },
  19289. "value": {
  19290. "type": "string"
  19291. }
  19292. },
  19293. "required": [
  19294. "key",
  19295. "op",
  19296. "value"
  19297. ],
  19298. "additionalProperties": false
  19299. },
  19300. "Integration.TextPrompt": {
  19301. "type": "object",
  19302. "properties": {
  19303. "type": {
  19304. "type": "string",
  19305. "enum": [
  19306. "text"
  19307. ]
  19308. },
  19309. "key": {
  19310. "type": "string"
  19311. },
  19312. "message": {
  19313. "type": "string"
  19314. },
  19315. "placeholder": {
  19316. "type": "string"
  19317. },
  19318. "when": {
  19319. "$ref": "#/components/schemas/Integration.When"
  19320. }
  19321. },
  19322. "required": [
  19323. "type",
  19324. "key",
  19325. "message"
  19326. ],
  19327. "additionalProperties": false
  19328. },
  19329. "Integration.SelectPrompt": {
  19330. "type": "object",
  19331. "properties": {
  19332. "type": {
  19333. "type": "string",
  19334. "enum": [
  19335. "select"
  19336. ]
  19337. },
  19338. "key": {
  19339. "type": "string"
  19340. },
  19341. "message": {
  19342. "type": "string"
  19343. },
  19344. "options": {
  19345. "type": "array",
  19346. "items": {
  19347. "type": "object",
  19348. "properties": {
  19349. "label": {
  19350. "type": "string"
  19351. },
  19352. "value": {
  19353. "type": "string"
  19354. },
  19355. "hint": {
  19356. "type": "string"
  19357. }
  19358. },
  19359. "required": [
  19360. "label",
  19361. "value"
  19362. ],
  19363. "additionalProperties": false
  19364. }
  19365. },
  19366. "when": {
  19367. "$ref": "#/components/schemas/Integration.When"
  19368. }
  19369. },
  19370. "required": [
  19371. "type",
  19372. "key",
  19373. "message",
  19374. "options"
  19375. ],
  19376. "additionalProperties": false
  19377. },
  19378. "Integration.OAuthMethod": {
  19379. "type": "object",
  19380. "properties": {
  19381. "id": {
  19382. "type": "string"
  19383. },
  19384. "type": {
  19385. "type": "string",
  19386. "enum": [
  19387. "oauth"
  19388. ]
  19389. },
  19390. "label": {
  19391. "type": "string"
  19392. },
  19393. "prompts": {
  19394. "type": "array",
  19395. "items": {
  19396. "anyOf": [
  19397. {
  19398. "$ref": "#/components/schemas/Integration.TextPrompt"
  19399. },
  19400. {
  19401. "$ref": "#/components/schemas/Integration.SelectPrompt"
  19402. }
  19403. ]
  19404. }
  19405. }
  19406. },
  19407. "required": [
  19408. "id",
  19409. "type",
  19410. "label"
  19411. ],
  19412. "additionalProperties": false
  19413. },
  19414. "Integration.CommandMethod": {
  19415. "type": "object",
  19416. "properties": {
  19417. "id": {
  19418. "type": "string"
  19419. },
  19420. "type": {
  19421. "type": "string",
  19422. "enum": [
  19423. "command"
  19424. ]
  19425. },
  19426. "label": {
  19427. "type": "string"
  19428. },
  19429. "command": {
  19430. "type": "array",
  19431. "items": {
  19432. "type": "string"
  19433. }
  19434. }
  19435. },
  19436. "required": [
  19437. "id",
  19438. "type",
  19439. "label",
  19440. "command"
  19441. ],
  19442. "additionalProperties": false
  19443. },
  19444. "Integration.KeyMethod": {
  19445. "type": "object",
  19446. "properties": {
  19447. "type": {
  19448. "type": "string",
  19449. "enum": [
  19450. "key"
  19451. ]
  19452. },
  19453. "label": {
  19454. "type": "string"
  19455. }
  19456. },
  19457. "required": [
  19458. "type"
  19459. ],
  19460. "additionalProperties": false
  19461. },
  19462. "Integration.EnvMethod": {
  19463. "type": "object",
  19464. "properties": {
  19465. "type": {
  19466. "type": "string",
  19467. "enum": [
  19468. "env"
  19469. ]
  19470. },
  19471. "names": {
  19472. "type": "array",
  19473. "items": {
  19474. "type": "string"
  19475. }
  19476. }
  19477. },
  19478. "required": [
  19479. "type",
  19480. "names"
  19481. ],
  19482. "additionalProperties": false
  19483. },
  19484. "Integration.Method": {
  19485. "anyOf": [
  19486. {
  19487. "$ref": "#/components/schemas/Integration.OAuthMethod"
  19488. },
  19489. {
  19490. "$ref": "#/components/schemas/Integration.CommandMethod"
  19491. },
  19492. {
  19493. "$ref": "#/components/schemas/Integration.KeyMethod"
  19494. },
  19495. {
  19496. "$ref": "#/components/schemas/Integration.EnvMethod"
  19497. }
  19498. ]
  19499. },
  19500. "Connection.CredentialInfo": {
  19501. "type": "object",
  19502. "properties": {
  19503. "type": {
  19504. "type": "string",
  19505. "enum": [
  19506. "credential"
  19507. ]
  19508. },
  19509. "id": {
  19510. "type": "string"
  19511. },
  19512. "label": {
  19513. "type": "string"
  19514. }
  19515. },
  19516. "required": [
  19517. "type",
  19518. "id",
  19519. "label"
  19520. ],
  19521. "additionalProperties": false
  19522. },
  19523. "Connection.EnvInfo": {
  19524. "type": "object",
  19525. "properties": {
  19526. "type": {
  19527. "type": "string",
  19528. "enum": [
  19529. "env"
  19530. ]
  19531. },
  19532. "name": {
  19533. "type": "string"
  19534. }
  19535. },
  19536. "required": [
  19537. "type",
  19538. "name"
  19539. ],
  19540. "additionalProperties": false
  19541. },
  19542. "Connection.Info": {
  19543. "anyOf": [
  19544. {
  19545. "$ref": "#/components/schemas/Connection.CredentialInfo"
  19546. },
  19547. {
  19548. "$ref": "#/components/schemas/Connection.EnvInfo"
  19549. }
  19550. ]
  19551. },
  19552. "Integration.Info": {
  19553. "type": "object",
  19554. "properties": {
  19555. "id": {
  19556. "type": "string"
  19557. },
  19558. "name": {
  19559. "type": "string"
  19560. },
  19561. "methods": {
  19562. "type": "array",
  19563. "items": {
  19564. "$ref": "#/components/schemas/Integration.Method"
  19565. }
  19566. },
  19567. "connections": {
  19568. "type": "array",
  19569. "items": {
  19570. "$ref": "#/components/schemas/Connection.Info"
  19571. }
  19572. }
  19573. },
  19574. "required": [
  19575. "id",
  19576. "name",
  19577. "methods",
  19578. "connections"
  19579. ],
  19580. "additionalProperties": false
  19581. },
  19582. "Integration.Attempt": {
  19583. "type": "object",
  19584. "properties": {
  19585. "attemptID": {
  19586. "type": "string"
  19587. },
  19588. "url": {
  19589. "type": "string"
  19590. },
  19591. "instructions": {
  19592. "type": "string"
  19593. },
  19594. "mode": {
  19595. "type": "string",
  19596. "enum": [
  19597. "auto",
  19598. "code"
  19599. ]
  19600. },
  19601. "time": {
  19602. "type": "object",
  19603. "properties": {
  19604. "created": {
  19605. "anyOf": [
  19606. {
  19607. "anyOf": [
  19608. {
  19609. "type": "number"
  19610. },
  19611. {
  19612. "type": "string",
  19613. "enum": [
  19614. "NaN"
  19615. ]
  19616. },
  19617. {
  19618. "type": "string",
  19619. "enum": [
  19620. "Infinity"
  19621. ]
  19622. },
  19623. {
  19624. "type": "string",
  19625. "enum": [
  19626. "-Infinity"
  19627. ]
  19628. }
  19629. ]
  19630. },
  19631. {
  19632. "type": "string",
  19633. "enum": [
  19634. "Infinity",
  19635. "-Infinity",
  19636. "NaN"
  19637. ]
  19638. }
  19639. ]
  19640. },
  19641. "expires": {
  19642. "anyOf": [
  19643. {
  19644. "anyOf": [
  19645. {
  19646. "type": "number"
  19647. },
  19648. {
  19649. "type": "string",
  19650. "enum": [
  19651. "NaN"
  19652. ]
  19653. },
  19654. {
  19655. "type": "string",
  19656. "enum": [
  19657. "Infinity"
  19658. ]
  19659. },
  19660. {
  19661. "type": "string",
  19662. "enum": [
  19663. "-Infinity"
  19664. ]
  19665. }
  19666. ]
  19667. },
  19668. {
  19669. "type": "string",
  19670. "enum": [
  19671. "Infinity",
  19672. "-Infinity",
  19673. "NaN"
  19674. ]
  19675. }
  19676. ]
  19677. }
  19678. },
  19679. "required": [
  19680. "created",
  19681. "expires"
  19682. ],
  19683. "additionalProperties": false
  19684. }
  19685. },
  19686. "required": [
  19687. "attemptID",
  19688. "url",
  19689. "instructions",
  19690. "mode",
  19691. "time"
  19692. ],
  19693. "additionalProperties": false
  19694. },
  19695. "Integration.AttemptStatus": {
  19696. "anyOf": [
  19697. {
  19698. "type": "object",
  19699. "properties": {
  19700. "status": {
  19701. "type": "string",
  19702. "enum": [
  19703. "pending"
  19704. ]
  19705. },
  19706. "time": {
  19707. "type": "object",
  19708. "properties": {
  19709. "created": {
  19710. "anyOf": [
  19711. {
  19712. "anyOf": [
  19713. {
  19714. "type": "number"
  19715. },
  19716. {
  19717. "type": "string",
  19718. "enum": [
  19719. "NaN"
  19720. ]
  19721. },
  19722. {
  19723. "type": "string",
  19724. "enum": [
  19725. "Infinity"
  19726. ]
  19727. },
  19728. {
  19729. "type": "string",
  19730. "enum": [
  19731. "-Infinity"
  19732. ]
  19733. }
  19734. ]
  19735. },
  19736. {
  19737. "type": "string",
  19738. "enum": [
  19739. "Infinity",
  19740. "-Infinity",
  19741. "NaN"
  19742. ]
  19743. }
  19744. ]
  19745. },
  19746. "expires": {
  19747. "anyOf": [
  19748. {
  19749. "anyOf": [
  19750. {
  19751. "type": "number"
  19752. },
  19753. {
  19754. "type": "string",
  19755. "enum": [
  19756. "NaN"
  19757. ]
  19758. },
  19759. {
  19760. "type": "string",
  19761. "enum": [
  19762. "Infinity"
  19763. ]
  19764. },
  19765. {
  19766. "type": "string",
  19767. "enum": [
  19768. "-Infinity"
  19769. ]
  19770. }
  19771. ]
  19772. },
  19773. {
  19774. "type": "string",
  19775. "enum": [
  19776. "Infinity",
  19777. "-Infinity",
  19778. "NaN"
  19779. ]
  19780. }
  19781. ]
  19782. }
  19783. },
  19784. "required": [
  19785. "created",
  19786. "expires"
  19787. ],
  19788. "additionalProperties": false
  19789. }
  19790. },
  19791. "required": [
  19792. "status",
  19793. "time"
  19794. ],
  19795. "additionalProperties": false
  19796. },
  19797. {
  19798. "type": "object",
  19799. "properties": {
  19800. "status": {
  19801. "type": "string",
  19802. "enum": [
  19803. "complete"
  19804. ]
  19805. },
  19806. "time": {
  19807. "type": "object",
  19808. "properties": {
  19809. "created": {
  19810. "anyOf": [
  19811. {
  19812. "anyOf": [
  19813. {
  19814. "type": "number"
  19815. },
  19816. {
  19817. "type": "string",
  19818. "enum": [
  19819. "NaN"
  19820. ]
  19821. },
  19822. {
  19823. "type": "string",
  19824. "enum": [
  19825. "Infinity"
  19826. ]
  19827. },
  19828. {
  19829. "type": "string",
  19830. "enum": [
  19831. "-Infinity"
  19832. ]
  19833. }
  19834. ]
  19835. },
  19836. {
  19837. "type": "string",
  19838. "enum": [
  19839. "Infinity",
  19840. "-Infinity",
  19841. "NaN"
  19842. ]
  19843. }
  19844. ]
  19845. },
  19846. "expires": {
  19847. "anyOf": [
  19848. {
  19849. "anyOf": [
  19850. {
  19851. "type": "number"
  19852. },
  19853. {
  19854. "type": "string",
  19855. "enum": [
  19856. "NaN"
  19857. ]
  19858. },
  19859. {
  19860. "type": "string",
  19861. "enum": [
  19862. "Infinity"
  19863. ]
  19864. },
  19865. {
  19866. "type": "string",
  19867. "enum": [
  19868. "-Infinity"
  19869. ]
  19870. }
  19871. ]
  19872. },
  19873. {
  19874. "type": "string",
  19875. "enum": [
  19876. "Infinity",
  19877. "-Infinity",
  19878. "NaN"
  19879. ]
  19880. }
  19881. ]
  19882. }
  19883. },
  19884. "required": [
  19885. "created",
  19886. "expires"
  19887. ],
  19888. "additionalProperties": false
  19889. }
  19890. },
  19891. "required": [
  19892. "status",
  19893. "time"
  19894. ],
  19895. "additionalProperties": false
  19896. },
  19897. {
  19898. "type": "object",
  19899. "properties": {
  19900. "status": {
  19901. "type": "string",
  19902. "enum": [
  19903. "failed"
  19904. ]
  19905. },
  19906. "message": {
  19907. "type": "string"
  19908. },
  19909. "time": {
  19910. "type": "object",
  19911. "properties": {
  19912. "created": {
  19913. "anyOf": [
  19914. {
  19915. "anyOf": [
  19916. {
  19917. "type": "number"
  19918. },
  19919. {
  19920. "type": "string",
  19921. "enum": [
  19922. "NaN"
  19923. ]
  19924. },
  19925. {
  19926. "type": "string",
  19927. "enum": [
  19928. "Infinity"
  19929. ]
  19930. },
  19931. {
  19932. "type": "string",
  19933. "enum": [
  19934. "-Infinity"
  19935. ]
  19936. }
  19937. ]
  19938. },
  19939. {
  19940. "type": "string",
  19941. "enum": [
  19942. "Infinity",
  19943. "-Infinity",
  19944. "NaN"
  19945. ]
  19946. }
  19947. ]
  19948. },
  19949. "expires": {
  19950. "anyOf": [
  19951. {
  19952. "anyOf": [
  19953. {
  19954. "type": "number"
  19955. },
  19956. {
  19957. "type": "string",
  19958. "enum": [
  19959. "NaN"
  19960. ]
  19961. },
  19962. {
  19963. "type": "string",
  19964. "enum": [
  19965. "Infinity"
  19966. ]
  19967. },
  19968. {
  19969. "type": "string",
  19970. "enum": [
  19971. "-Infinity"
  19972. ]
  19973. }
  19974. ]
  19975. },
  19976. {
  19977. "type": "string",
  19978. "enum": [
  19979. "Infinity",
  19980. "-Infinity",
  19981. "NaN"
  19982. ]
  19983. }
  19984. ]
  19985. }
  19986. },
  19987. "required": [
  19988. "created",
  19989. "expires"
  19990. ],
  19991. "additionalProperties": false
  19992. }
  19993. },
  19994. "required": [
  19995. "status",
  19996. "message",
  19997. "time"
  19998. ],
  19999. "additionalProperties": false
  20000. },
  20001. {
  20002. "type": "object",
  20003. "properties": {
  20004. "status": {
  20005. "type": "string",
  20006. "enum": [
  20007. "expired"
  20008. ]
  20009. },
  20010. "time": {
  20011. "type": "object",
  20012. "properties": {
  20013. "created": {
  20014. "anyOf": [
  20015. {
  20016. "anyOf": [
  20017. {
  20018. "type": "number"
  20019. },
  20020. {
  20021. "type": "string",
  20022. "enum": [
  20023. "NaN"
  20024. ]
  20025. },
  20026. {
  20027. "type": "string",
  20028. "enum": [
  20029. "Infinity"
  20030. ]
  20031. },
  20032. {
  20033. "type": "string",
  20034. "enum": [
  20035. "-Infinity"
  20036. ]
  20037. }
  20038. ]
  20039. },
  20040. {
  20041. "type": "string",
  20042. "enum": [
  20043. "Infinity",
  20044. "-Infinity",
  20045. "NaN"
  20046. ]
  20047. }
  20048. ]
  20049. },
  20050. "expires": {
  20051. "anyOf": [
  20052. {
  20053. "anyOf": [
  20054. {
  20055. "type": "number"
  20056. },
  20057. {
  20058. "type": "string",
  20059. "enum": [
  20060. "NaN"
  20061. ]
  20062. },
  20063. {
  20064. "type": "string",
  20065. "enum": [
  20066. "Infinity"
  20067. ]
  20068. },
  20069. {
  20070. "type": "string",
  20071. "enum": [
  20072. "-Infinity"
  20073. ]
  20074. }
  20075. ]
  20076. },
  20077. {
  20078. "type": "string",
  20079. "enum": [
  20080. "Infinity",
  20081. "-Infinity",
  20082. "NaN"
  20083. ]
  20084. }
  20085. ]
  20086. }
  20087. },
  20088. "required": [
  20089. "created",
  20090. "expires"
  20091. ],
  20092. "additionalProperties": false
  20093. }
  20094. },
  20095. "required": [
  20096. "status",
  20097. "time"
  20098. ],
  20099. "additionalProperties": false
  20100. }
  20101. ]
  20102. },
  20103. "Integration.CommandAttempt": {
  20104. "type": "object",
  20105. "properties": {
  20106. "attemptID": {
  20107. "type": "string"
  20108. },
  20109. "time": {
  20110. "type": "object",
  20111. "properties": {
  20112. "created": {
  20113. "anyOf": [
  20114. {
  20115. "anyOf": [
  20116. {
  20117. "type": "number"
  20118. },
  20119. {
  20120. "type": "string",
  20121. "enum": [
  20122. "NaN"
  20123. ]
  20124. },
  20125. {
  20126. "type": "string",
  20127. "enum": [
  20128. "Infinity"
  20129. ]
  20130. },
  20131. {
  20132. "type": "string",
  20133. "enum": [
  20134. "-Infinity"
  20135. ]
  20136. }
  20137. ]
  20138. },
  20139. {
  20140. "type": "string",
  20141. "enum": [
  20142. "Infinity",
  20143. "-Infinity",
  20144. "NaN"
  20145. ]
  20146. }
  20147. ]
  20148. },
  20149. "expires": {
  20150. "anyOf": [
  20151. {
  20152. "anyOf": [
  20153. {
  20154. "type": "number"
  20155. },
  20156. {
  20157. "type": "string",
  20158. "enum": [
  20159. "NaN"
  20160. ]
  20161. },
  20162. {
  20163. "type": "string",
  20164. "enum": [
  20165. "Infinity"
  20166. ]
  20167. },
  20168. {
  20169. "type": "string",
  20170. "enum": [
  20171. "-Infinity"
  20172. ]
  20173. }
  20174. ]
  20175. },
  20176. {
  20177. "type": "string",
  20178. "enum": [
  20179. "Infinity",
  20180. "-Infinity",
  20181. "NaN"
  20182. ]
  20183. }
  20184. ]
  20185. }
  20186. },
  20187. "required": [
  20188. "created",
  20189. "expires"
  20190. ],
  20191. "additionalProperties": false
  20192. }
  20193. },
  20194. "required": [
  20195. "attemptID",
  20196. "time"
  20197. ],
  20198. "additionalProperties": false
  20199. },
  20200. "Integration.CommandAttemptStatus": {
  20201. "anyOf": [
  20202. {
  20203. "type": "object",
  20204. "properties": {
  20205. "status": {
  20206. "type": "string",
  20207. "enum": [
  20208. "pending"
  20209. ]
  20210. },
  20211. "message": {
  20212. "type": "string"
  20213. },
  20214. "time": {
  20215. "type": "object",
  20216. "properties": {
  20217. "created": {
  20218. "anyOf": [
  20219. {
  20220. "anyOf": [
  20221. {
  20222. "type": "number"
  20223. },
  20224. {
  20225. "type": "string",
  20226. "enum": [
  20227. "NaN"
  20228. ]
  20229. },
  20230. {
  20231. "type": "string",
  20232. "enum": [
  20233. "Infinity"
  20234. ]
  20235. },
  20236. {
  20237. "type": "string",
  20238. "enum": [
  20239. "-Infinity"
  20240. ]
  20241. }
  20242. ]
  20243. },
  20244. {
  20245. "type": "string",
  20246. "enum": [
  20247. "Infinity",
  20248. "-Infinity",
  20249. "NaN"
  20250. ]
  20251. }
  20252. ]
  20253. },
  20254. "expires": {
  20255. "anyOf": [
  20256. {
  20257. "anyOf": [
  20258. {
  20259. "type": "number"
  20260. },
  20261. {
  20262. "type": "string",
  20263. "enum": [
  20264. "NaN"
  20265. ]
  20266. },
  20267. {
  20268. "type": "string",
  20269. "enum": [
  20270. "Infinity"
  20271. ]
  20272. },
  20273. {
  20274. "type": "string",
  20275. "enum": [
  20276. "-Infinity"
  20277. ]
  20278. }
  20279. ]
  20280. },
  20281. {
  20282. "type": "string",
  20283. "enum": [
  20284. "Infinity",
  20285. "-Infinity",
  20286. "NaN"
  20287. ]
  20288. }
  20289. ]
  20290. }
  20291. },
  20292. "required": [
  20293. "created",
  20294. "expires"
  20295. ],
  20296. "additionalProperties": false
  20297. }
  20298. },
  20299. "required": [
  20300. "status",
  20301. "time"
  20302. ],
  20303. "additionalProperties": false
  20304. },
  20305. {
  20306. "type": "object",
  20307. "properties": {
  20308. "status": {
  20309. "type": "string",
  20310. "enum": [
  20311. "complete"
  20312. ]
  20313. },
  20314. "time": {
  20315. "type": "object",
  20316. "properties": {
  20317. "created": {
  20318. "anyOf": [
  20319. {
  20320. "anyOf": [
  20321. {
  20322. "type": "number"
  20323. },
  20324. {
  20325. "type": "string",
  20326. "enum": [
  20327. "NaN"
  20328. ]
  20329. },
  20330. {
  20331. "type": "string",
  20332. "enum": [
  20333. "Infinity"
  20334. ]
  20335. },
  20336. {
  20337. "type": "string",
  20338. "enum": [
  20339. "-Infinity"
  20340. ]
  20341. }
  20342. ]
  20343. },
  20344. {
  20345. "type": "string",
  20346. "enum": [
  20347. "Infinity",
  20348. "-Infinity",
  20349. "NaN"
  20350. ]
  20351. }
  20352. ]
  20353. },
  20354. "expires": {
  20355. "anyOf": [
  20356. {
  20357. "anyOf": [
  20358. {
  20359. "type": "number"
  20360. },
  20361. {
  20362. "type": "string",
  20363. "enum": [
  20364. "NaN"
  20365. ]
  20366. },
  20367. {
  20368. "type": "string",
  20369. "enum": [
  20370. "Infinity"
  20371. ]
  20372. },
  20373. {
  20374. "type": "string",
  20375. "enum": [
  20376. "-Infinity"
  20377. ]
  20378. }
  20379. ]
  20380. },
  20381. {
  20382. "type": "string",
  20383. "enum": [
  20384. "Infinity",
  20385. "-Infinity",
  20386. "NaN"
  20387. ]
  20388. }
  20389. ]
  20390. }
  20391. },
  20392. "required": [
  20393. "created",
  20394. "expires"
  20395. ],
  20396. "additionalProperties": false
  20397. }
  20398. },
  20399. "required": [
  20400. "status",
  20401. "time"
  20402. ],
  20403. "additionalProperties": false
  20404. },
  20405. {
  20406. "type": "object",
  20407. "properties": {
  20408. "status": {
  20409. "type": "string",
  20410. "enum": [
  20411. "failed"
  20412. ]
  20413. },
  20414. "message": {
  20415. "type": "string"
  20416. },
  20417. "time": {
  20418. "type": "object",
  20419. "properties": {
  20420. "created": {
  20421. "anyOf": [
  20422. {
  20423. "anyOf": [
  20424. {
  20425. "type": "number"
  20426. },
  20427. {
  20428. "type": "string",
  20429. "enum": [
  20430. "NaN"
  20431. ]
  20432. },
  20433. {
  20434. "type": "string",
  20435. "enum": [
  20436. "Infinity"
  20437. ]
  20438. },
  20439. {
  20440. "type": "string",
  20441. "enum": [
  20442. "-Infinity"
  20443. ]
  20444. }
  20445. ]
  20446. },
  20447. {
  20448. "type": "string",
  20449. "enum": [
  20450. "Infinity",
  20451. "-Infinity",
  20452. "NaN"
  20453. ]
  20454. }
  20455. ]
  20456. },
  20457. "expires": {
  20458. "anyOf": [
  20459. {
  20460. "anyOf": [
  20461. {
  20462. "type": "number"
  20463. },
  20464. {
  20465. "type": "string",
  20466. "enum": [
  20467. "NaN"
  20468. ]
  20469. },
  20470. {
  20471. "type": "string",
  20472. "enum": [
  20473. "Infinity"
  20474. ]
  20475. },
  20476. {
  20477. "type": "string",
  20478. "enum": [
  20479. "-Infinity"
  20480. ]
  20481. }
  20482. ]
  20483. },
  20484. {
  20485. "type": "string",
  20486. "enum": [
  20487. "Infinity",
  20488. "-Infinity",
  20489. "NaN"
  20490. ]
  20491. }
  20492. ]
  20493. }
  20494. },
  20495. "required": [
  20496. "created",
  20497. "expires"
  20498. ],
  20499. "additionalProperties": false
  20500. }
  20501. },
  20502. "required": [
  20503. "status",
  20504. "message",
  20505. "time"
  20506. ],
  20507. "additionalProperties": false
  20508. },
  20509. {
  20510. "type": "object",
  20511. "properties": {
  20512. "status": {
  20513. "type": "string",
  20514. "enum": [
  20515. "expired"
  20516. ]
  20517. },
  20518. "time": {
  20519. "type": "object",
  20520. "properties": {
  20521. "created": {
  20522. "anyOf": [
  20523. {
  20524. "anyOf": [
  20525. {
  20526. "type": "number"
  20527. },
  20528. {
  20529. "type": "string",
  20530. "enum": [
  20531. "NaN"
  20532. ]
  20533. },
  20534. {
  20535. "type": "string",
  20536. "enum": [
  20537. "Infinity"
  20538. ]
  20539. },
  20540. {
  20541. "type": "string",
  20542. "enum": [
  20543. "-Infinity"
  20544. ]
  20545. }
  20546. ]
  20547. },
  20548. {
  20549. "type": "string",
  20550. "enum": [
  20551. "Infinity",
  20552. "-Infinity",
  20553. "NaN"
  20554. ]
  20555. }
  20556. ]
  20557. },
  20558. "expires": {
  20559. "anyOf": [
  20560. {
  20561. "anyOf": [
  20562. {
  20563. "type": "number"
  20564. },
  20565. {
  20566. "type": "string",
  20567. "enum": [
  20568. "NaN"
  20569. ]
  20570. },
  20571. {
  20572. "type": "string",
  20573. "enum": [
  20574. "Infinity"
  20575. ]
  20576. },
  20577. {
  20578. "type": "string",
  20579. "enum": [
  20580. "-Infinity"
  20581. ]
  20582. }
  20583. ]
  20584. },
  20585. {
  20586. "type": "string",
  20587. "enum": [
  20588. "Infinity",
  20589. "-Infinity",
  20590. "NaN"
  20591. ]
  20592. }
  20593. ]
  20594. }
  20595. },
  20596. "required": [
  20597. "created",
  20598. "expires"
  20599. ],
  20600. "additionalProperties": false
  20601. }
  20602. },
  20603. "required": [
  20604. "status",
  20605. "time"
  20606. ],
  20607. "additionalProperties": false
  20608. }
  20609. ]
  20610. },
  20611. "Mcp.Status.Connected": {
  20612. "type": "object",
  20613. "properties": {
  20614. "status": {
  20615. "type": "string",
  20616. "enum": [
  20617. "connected"
  20618. ]
  20619. }
  20620. },
  20621. "required": [
  20622. "status"
  20623. ],
  20624. "additionalProperties": false
  20625. },
  20626. "Mcp.Status.Pending": {
  20627. "type": "object",
  20628. "properties": {
  20629. "status": {
  20630. "type": "string",
  20631. "enum": [
  20632. "pending"
  20633. ]
  20634. }
  20635. },
  20636. "required": [
  20637. "status"
  20638. ],
  20639. "additionalProperties": false
  20640. },
  20641. "Mcp.Status.Disabled": {
  20642. "type": "object",
  20643. "properties": {
  20644. "status": {
  20645. "type": "string",
  20646. "enum": [
  20647. "disabled"
  20648. ]
  20649. }
  20650. },
  20651. "required": [
  20652. "status"
  20653. ],
  20654. "additionalProperties": false
  20655. },
  20656. "Mcp.Status.Failed": {
  20657. "type": "object",
  20658. "properties": {
  20659. "status": {
  20660. "type": "string",
  20661. "enum": [
  20662. "failed"
  20663. ]
  20664. },
  20665. "error": {
  20666. "type": "string"
  20667. }
  20668. },
  20669. "required": [
  20670. "status",
  20671. "error"
  20672. ],
  20673. "additionalProperties": false
  20674. },
  20675. "Mcp.Status.NeedsAuth": {
  20676. "type": "object",
  20677. "properties": {
  20678. "status": {
  20679. "type": "string",
  20680. "enum": [
  20681. "needs_auth"
  20682. ]
  20683. }
  20684. },
  20685. "required": [
  20686. "status"
  20687. ],
  20688. "additionalProperties": false
  20689. },
  20690. "Mcp.Status.NeedsClientRegistration": {
  20691. "type": "object",
  20692. "properties": {
  20693. "status": {
  20694. "type": "string",
  20695. "enum": [
  20696. "needs_client_registration"
  20697. ]
  20698. },
  20699. "error": {
  20700. "type": "string"
  20701. }
  20702. },
  20703. "required": [
  20704. "status",
  20705. "error"
  20706. ],
  20707. "additionalProperties": false
  20708. },
  20709. "Mcp.Server": {
  20710. "type": "object",
  20711. "properties": {
  20712. "name": {
  20713. "type": "string"
  20714. },
  20715. "status": {
  20716. "anyOf": [
  20717. {
  20718. "$ref": "#/components/schemas/Mcp.Status.Connected"
  20719. },
  20720. {
  20721. "$ref": "#/components/schemas/Mcp.Status.Pending"
  20722. },
  20723. {
  20724. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  20725. },
  20726. {
  20727. "$ref": "#/components/schemas/Mcp.Status.Failed"
  20728. },
  20729. {
  20730. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  20731. },
  20732. {
  20733. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  20734. }
  20735. ]
  20736. },
  20737. "integrationID": {
  20738. "type": "string"
  20739. }
  20740. },
  20741. "required": [
  20742. "name",
  20743. "status"
  20744. ],
  20745. "additionalProperties": false
  20746. },
  20747. "Mcp.TimeoutConfig": {
  20748. "type": "object",
  20749. "properties": {
  20750. "startup": {
  20751. "anyOf": [
  20752. {
  20753. "type": "integer",
  20754. "allOf": [
  20755. {
  20756. "exclusiveMinimum": 0
  20757. }
  20758. ]
  20759. },
  20760. {
  20761. "type": "null"
  20762. }
  20763. ],
  20764. "description": "Maximum time in milliseconds to establish and initialize the MCP server."
  20765. },
  20766. "catalog": {
  20767. "anyOf": [
  20768. {
  20769. "type": "integer",
  20770. "allOf": [
  20771. {
  20772. "exclusiveMinimum": 0
  20773. }
  20774. ]
  20775. },
  20776. {
  20777. "type": "null"
  20778. }
  20779. ],
  20780. "description": "Maximum time in milliseconds to wait for MCP discovery requests such as tools/list and prompts/list."
  20781. },
  20782. "execution": {
  20783. "anyOf": [
  20784. {
  20785. "type": "integer",
  20786. "allOf": [
  20787. {
  20788. "exclusiveMinimum": 0
  20789. }
  20790. ]
  20791. },
  20792. {
  20793. "type": "null"
  20794. }
  20795. ],
  20796. "description": "Maximum time in milliseconds to wait for MCP tool and prompt execution."
  20797. }
  20798. },
  20799. "additionalProperties": false
  20800. },
  20801. "Mcp.LocalConfig": {
  20802. "type": "object",
  20803. "properties": {
  20804. "type": {
  20805. "type": "string",
  20806. "enum": [
  20807. "local"
  20808. ]
  20809. },
  20810. "command": {
  20811. "type": "array",
  20812. "items": {
  20813. "type": "string"
  20814. }
  20815. },
  20816. "cwd": {
  20817. "anyOf": [
  20818. {
  20819. "type": "string"
  20820. },
  20821. {
  20822. "type": "null"
  20823. }
  20824. ],
  20825. "description": "Working directory for the MCP server process. Relative paths resolve from the workspace directory."
  20826. },
  20827. "environment": {
  20828. "anyOf": [
  20829. {
  20830. "type": "object",
  20831. "additionalProperties": {
  20832. "type": "string"
  20833. }
  20834. },
  20835. {
  20836. "type": "null"
  20837. }
  20838. ]
  20839. },
  20840. "disabled": {
  20841. "anyOf": [
  20842. {
  20843. "type": "boolean"
  20844. },
  20845. {
  20846. "type": "null"
  20847. }
  20848. ]
  20849. },
  20850. "codemode": {
  20851. "anyOf": [
  20852. {
  20853. "type": "boolean"
  20854. },
  20855. {
  20856. "type": "null"
  20857. }
  20858. ],
  20859. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20860. },
  20861. "timeout": {
  20862. "anyOf": [
  20863. {
  20864. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20865. },
  20866. {
  20867. "type": "null"
  20868. }
  20869. ]
  20870. }
  20871. },
  20872. "required": [
  20873. "type",
  20874. "command"
  20875. ],
  20876. "additionalProperties": false
  20877. },
  20878. "Mcp.OAuthConfig": {
  20879. "type": "object",
  20880. "properties": {
  20881. "client_id": {
  20882. "anyOf": [
  20883. {
  20884. "type": "string"
  20885. },
  20886. {
  20887. "type": "null"
  20888. }
  20889. ]
  20890. },
  20891. "client_secret": {
  20892. "anyOf": [
  20893. {
  20894. "type": "string"
  20895. },
  20896. {
  20897. "type": "null"
  20898. }
  20899. ]
  20900. },
  20901. "scope": {
  20902. "anyOf": [
  20903. {
  20904. "type": "string"
  20905. },
  20906. {
  20907. "type": "null"
  20908. }
  20909. ]
  20910. },
  20911. "callback_port": {
  20912. "anyOf": [
  20913. {
  20914. "type": "integer",
  20915. "allOf": [
  20916. {
  20917. "minimum": 1,
  20918. "maximum": 65535
  20919. }
  20920. ]
  20921. },
  20922. {
  20923. "type": "null"
  20924. }
  20925. ]
  20926. },
  20927. "redirect_uri": {
  20928. "anyOf": [
  20929. {
  20930. "type": "string"
  20931. },
  20932. {
  20933. "type": "null"
  20934. }
  20935. ]
  20936. }
  20937. },
  20938. "additionalProperties": false
  20939. },
  20940. "Mcp.RemoteConfig": {
  20941. "type": "object",
  20942. "properties": {
  20943. "type": {
  20944. "type": "string",
  20945. "enum": [
  20946. "remote"
  20947. ]
  20948. },
  20949. "url": {
  20950. "type": "string"
  20951. },
  20952. "headers": {
  20953. "anyOf": [
  20954. {
  20955. "type": "object",
  20956. "additionalProperties": {
  20957. "type": "string"
  20958. }
  20959. },
  20960. {
  20961. "type": "null"
  20962. }
  20963. ]
  20964. },
  20965. "oauth": {
  20966. "anyOf": [
  20967. {
  20968. "anyOf": [
  20969. {
  20970. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  20971. },
  20972. {
  20973. "type": "boolean",
  20974. "enum": [
  20975. false
  20976. ]
  20977. }
  20978. ]
  20979. },
  20980. {
  20981. "type": "null"
  20982. }
  20983. ]
  20984. },
  20985. "disabled": {
  20986. "anyOf": [
  20987. {
  20988. "type": "boolean"
  20989. },
  20990. {
  20991. "type": "null"
  20992. }
  20993. ]
  20994. },
  20995. "codemode": {
  20996. "anyOf": [
  20997. {
  20998. "type": "boolean"
  20999. },
  21000. {
  21001. "type": "null"
  21002. }
  21003. ],
  21004. "description": "Expose this server's tools through Code Mode. Defaults to true."
  21005. },
  21006. "timeout": {
  21007. "anyOf": [
  21008. {
  21009. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  21010. },
  21011. {
  21012. "type": "null"
  21013. }
  21014. ]
  21015. }
  21016. },
  21017. "required": [
  21018. "type",
  21019. "url"
  21020. ],
  21021. "additionalProperties": false
  21022. },
  21023. "McpServerNotFoundError": {
  21024. "type": "object",
  21025. "properties": {
  21026. "_tag": {
  21027. "type": "string",
  21028. "enum": [
  21029. "McpServerNotFoundError"
  21030. ]
  21031. },
  21032. "server": {
  21033. "type": "string"
  21034. },
  21035. "message": {
  21036. "type": "string"
  21037. }
  21038. },
  21039. "required": [
  21040. "_tag",
  21041. "server",
  21042. "message"
  21043. ],
  21044. "additionalProperties": false
  21045. },
  21046. "Mcp.Resource": {
  21047. "type": "object",
  21048. "properties": {
  21049. "server": {
  21050. "type": "string"
  21051. },
  21052. "name": {
  21053. "type": "string"
  21054. },
  21055. "uri": {
  21056. "type": "string"
  21057. },
  21058. "description": {
  21059. "type": "string"
  21060. },
  21061. "mimeType": {
  21062. "type": "string"
  21063. }
  21064. },
  21065. "required": [
  21066. "server",
  21067. "name",
  21068. "uri"
  21069. ],
  21070. "additionalProperties": false
  21071. },
  21072. "Mcp.ResourceTemplate": {
  21073. "type": "object",
  21074. "properties": {
  21075. "server": {
  21076. "type": "string"
  21077. },
  21078. "name": {
  21079. "type": "string"
  21080. },
  21081. "uriTemplate": {
  21082. "type": "string"
  21083. },
  21084. "description": {
  21085. "type": "string"
  21086. },
  21087. "mimeType": {
  21088. "type": "string"
  21089. }
  21090. },
  21091. "required": [
  21092. "server",
  21093. "name",
  21094. "uriTemplate"
  21095. ],
  21096. "additionalProperties": false
  21097. },
  21098. "Mcp.ResourceCatalog": {
  21099. "type": "object",
  21100. "properties": {
  21101. "resources": {
  21102. "type": "array",
  21103. "items": {
  21104. "$ref": "#/components/schemas/Mcp.Resource"
  21105. }
  21106. },
  21107. "templates": {
  21108. "type": "array",
  21109. "items": {
  21110. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  21111. }
  21112. }
  21113. },
  21114. "required": [
  21115. "resources",
  21116. "templates"
  21117. ],
  21118. "additionalProperties": false
  21119. },
  21120. "Project.Vcs": {
  21121. "type": "string",
  21122. "enum": [
  21123. "git",
  21124. "hg"
  21125. ]
  21126. },
  21127. "Project.Icon": {
  21128. "type": "object",
  21129. "properties": {
  21130. "url": {
  21131. "type": "string"
  21132. },
  21133. "override": {
  21134. "type": "string"
  21135. },
  21136. "color": {
  21137. "type": "string"
  21138. }
  21139. },
  21140. "additionalProperties": false
  21141. },
  21142. "Project.Commands": {
  21143. "type": "object",
  21144. "properties": {
  21145. "start": {
  21146. "type": "string",
  21147. "description": "Startup script to run when creating a new workspace (worktree)"
  21148. }
  21149. },
  21150. "additionalProperties": false
  21151. },
  21152. "Project.Time": {
  21153. "type": "object",
  21154. "properties": {
  21155. "created": {
  21156. "type": "integer",
  21157. "allOf": [
  21158. {
  21159. "minimum": 0
  21160. }
  21161. ]
  21162. },
  21163. "updated": {
  21164. "type": "integer",
  21165. "allOf": [
  21166. {
  21167. "minimum": 0
  21168. }
  21169. ]
  21170. },
  21171. "initialized": {
  21172. "type": "integer",
  21173. "allOf": [
  21174. {
  21175. "minimum": 0
  21176. }
  21177. ]
  21178. }
  21179. },
  21180. "required": [
  21181. "created",
  21182. "updated"
  21183. ],
  21184. "additionalProperties": false
  21185. },
  21186. "Project": {
  21187. "type": "object",
  21188. "properties": {
  21189. "id": {
  21190. "type": "string"
  21191. },
  21192. "canonical": {
  21193. "type": "string"
  21194. },
  21195. "vcs": {
  21196. "$ref": "#/components/schemas/Project.Vcs"
  21197. },
  21198. "name": {
  21199. "type": "string"
  21200. },
  21201. "icon": {
  21202. "$ref": "#/components/schemas/Project.Icon"
  21203. },
  21204. "commands": {
  21205. "$ref": "#/components/schemas/Project.Commands"
  21206. },
  21207. "time": {
  21208. "$ref": "#/components/schemas/Project.Time"
  21209. },
  21210. "sandboxes": {
  21211. "type": "array",
  21212. "items": {
  21213. "type": "string"
  21214. }
  21215. }
  21216. },
  21217. "required": [
  21218. "id",
  21219. "canonical",
  21220. "time",
  21221. "sandboxes"
  21222. ],
  21223. "additionalProperties": false
  21224. },
  21225. "Project.Current": {
  21226. "type": "object",
  21227. "properties": {
  21228. "id": {
  21229. "type": "string"
  21230. },
  21231. "directory": {
  21232. "type": "string"
  21233. },
  21234. "canonical": {
  21235. "type": "string"
  21236. }
  21237. },
  21238. "required": [
  21239. "id",
  21240. "directory",
  21241. "canonical"
  21242. ],
  21243. "additionalProperties": false
  21244. },
  21245. "Project.Directory": {
  21246. "type": "object",
  21247. "properties": {
  21248. "directory": {
  21249. "type": "string"
  21250. },
  21251. "strategy": {
  21252. "type": "string"
  21253. }
  21254. },
  21255. "required": [
  21256. "directory"
  21257. ],
  21258. "additionalProperties": false
  21259. },
  21260. "Project.Directories": {
  21261. "type": "array",
  21262. "items": {
  21263. "$ref": "#/components/schemas/Project.Directory"
  21264. }
  21265. },
  21266. "Form.Metadata": {
  21267. "type": "object"
  21268. },
  21269. "Form.When": {
  21270. "type": "object",
  21271. "properties": {
  21272. "key": {
  21273. "type": "string"
  21274. },
  21275. "op": {
  21276. "type": "string",
  21277. "enum": [
  21278. "eq",
  21279. "neq"
  21280. ]
  21281. },
  21282. "value": {
  21283. "anyOf": [
  21284. {
  21285. "type": "string"
  21286. },
  21287. {
  21288. "anyOf": [
  21289. {
  21290. "anyOf": [
  21291. {
  21292. "type": "number"
  21293. },
  21294. {
  21295. "type": "string",
  21296. "enum": [
  21297. "NaN"
  21298. ]
  21299. },
  21300. {
  21301. "type": "string",
  21302. "enum": [
  21303. "Infinity"
  21304. ]
  21305. },
  21306. {
  21307. "type": "string",
  21308. "enum": [
  21309. "-Infinity"
  21310. ]
  21311. }
  21312. ]
  21313. },
  21314. {
  21315. "type": "string",
  21316. "enum": [
  21317. "Infinity",
  21318. "-Infinity",
  21319. "NaN"
  21320. ]
  21321. }
  21322. ]
  21323. },
  21324. {
  21325. "type": "boolean"
  21326. }
  21327. ]
  21328. }
  21329. },
  21330. "required": [
  21331. "key",
  21332. "op",
  21333. "value"
  21334. ],
  21335. "additionalProperties": false
  21336. },
  21337. "Form.Option": {
  21338. "type": "object",
  21339. "properties": {
  21340. "value": {
  21341. "type": "string"
  21342. },
  21343. "label": {
  21344. "type": "string"
  21345. },
  21346. "description": {
  21347. "type": "string"
  21348. }
  21349. },
  21350. "required": [
  21351. "value",
  21352. "label"
  21353. ],
  21354. "additionalProperties": false
  21355. },
  21356. "Form.StringField": {
  21357. "type": "object",
  21358. "properties": {
  21359. "key": {
  21360. "type": "string"
  21361. },
  21362. "title": {
  21363. "type": "string"
  21364. },
  21365. "description": {
  21366. "type": "string"
  21367. },
  21368. "required": {
  21369. "type": "boolean"
  21370. },
  21371. "when": {
  21372. "type": "array",
  21373. "items": {
  21374. "$ref": "#/components/schemas/Form.When"
  21375. }
  21376. },
  21377. "type": {
  21378. "type": "string",
  21379. "enum": [
  21380. "string"
  21381. ]
  21382. },
  21383. "format": {
  21384. "type": "string",
  21385. "enum": [
  21386. "email",
  21387. "uri",
  21388. "date",
  21389. "date-time"
  21390. ]
  21391. },
  21392. "minLength": {
  21393. "type": "integer",
  21394. "allOf": [
  21395. {
  21396. "minimum": 0
  21397. }
  21398. ]
  21399. },
  21400. "maxLength": {
  21401. "type": "integer",
  21402. "allOf": [
  21403. {
  21404. "minimum": 0
  21405. }
  21406. ]
  21407. },
  21408. "pattern": {
  21409. "type": "string"
  21410. },
  21411. "placeholder": {
  21412. "type": "string"
  21413. },
  21414. "default": {
  21415. "type": "string"
  21416. },
  21417. "options": {
  21418. "type": "array",
  21419. "items": {
  21420. "$ref": "#/components/schemas/Form.Option"
  21421. }
  21422. },
  21423. "custom": {
  21424. "type": "boolean"
  21425. }
  21426. },
  21427. "required": [
  21428. "key",
  21429. "type"
  21430. ],
  21431. "additionalProperties": false
  21432. },
  21433. "Form.NumberField": {
  21434. "type": "object",
  21435. "properties": {
  21436. "key": {
  21437. "type": "string"
  21438. },
  21439. "title": {
  21440. "type": "string"
  21441. },
  21442. "description": {
  21443. "type": "string"
  21444. },
  21445. "required": {
  21446. "type": "boolean"
  21447. },
  21448. "when": {
  21449. "type": "array",
  21450. "items": {
  21451. "$ref": "#/components/schemas/Form.When"
  21452. }
  21453. },
  21454. "type": {
  21455. "type": "string",
  21456. "enum": [
  21457. "number"
  21458. ]
  21459. },
  21460. "minimum": {
  21461. "anyOf": [
  21462. {
  21463. "anyOf": [
  21464. {
  21465. "type": "number"
  21466. },
  21467. {
  21468. "type": "string",
  21469. "enum": [
  21470. "NaN"
  21471. ]
  21472. },
  21473. {
  21474. "type": "string",
  21475. "enum": [
  21476. "Infinity"
  21477. ]
  21478. },
  21479. {
  21480. "type": "string",
  21481. "enum": [
  21482. "-Infinity"
  21483. ]
  21484. }
  21485. ]
  21486. },
  21487. {
  21488. "type": "string",
  21489. "enum": [
  21490. "Infinity",
  21491. "-Infinity",
  21492. "NaN"
  21493. ]
  21494. }
  21495. ]
  21496. },
  21497. "maximum": {
  21498. "anyOf": [
  21499. {
  21500. "anyOf": [
  21501. {
  21502. "type": "number"
  21503. },
  21504. {
  21505. "type": "string",
  21506. "enum": [
  21507. "NaN"
  21508. ]
  21509. },
  21510. {
  21511. "type": "string",
  21512. "enum": [
  21513. "Infinity"
  21514. ]
  21515. },
  21516. {
  21517. "type": "string",
  21518. "enum": [
  21519. "-Infinity"
  21520. ]
  21521. }
  21522. ]
  21523. },
  21524. {
  21525. "type": "string",
  21526. "enum": [
  21527. "Infinity",
  21528. "-Infinity",
  21529. "NaN"
  21530. ]
  21531. }
  21532. ]
  21533. },
  21534. "default": {
  21535. "anyOf": [
  21536. {
  21537. "anyOf": [
  21538. {
  21539. "type": "number"
  21540. },
  21541. {
  21542. "type": "string",
  21543. "enum": [
  21544. "NaN"
  21545. ]
  21546. },
  21547. {
  21548. "type": "string",
  21549. "enum": [
  21550. "Infinity"
  21551. ]
  21552. },
  21553. {
  21554. "type": "string",
  21555. "enum": [
  21556. "-Infinity"
  21557. ]
  21558. }
  21559. ]
  21560. },
  21561. {
  21562. "type": "string",
  21563. "enum": [
  21564. "Infinity",
  21565. "-Infinity",
  21566. "NaN"
  21567. ]
  21568. }
  21569. ]
  21570. }
  21571. },
  21572. "required": [
  21573. "key",
  21574. "type"
  21575. ],
  21576. "additionalProperties": false
  21577. },
  21578. "Form.IntegerField": {
  21579. "type": "object",
  21580. "properties": {
  21581. "key": {
  21582. "type": "string"
  21583. },
  21584. "title": {
  21585. "type": "string"
  21586. },
  21587. "description": {
  21588. "type": "string"
  21589. },
  21590. "required": {
  21591. "type": "boolean"
  21592. },
  21593. "when": {
  21594. "type": "array",
  21595. "items": {
  21596. "$ref": "#/components/schemas/Form.When"
  21597. }
  21598. },
  21599. "type": {
  21600. "type": "string",
  21601. "enum": [
  21602. "integer"
  21603. ]
  21604. },
  21605. "minimum": {
  21606. "anyOf": [
  21607. {
  21608. "anyOf": [
  21609. {
  21610. "type": "number"
  21611. },
  21612. {
  21613. "type": "string",
  21614. "enum": [
  21615. "NaN"
  21616. ]
  21617. },
  21618. {
  21619. "type": "string",
  21620. "enum": [
  21621. "Infinity"
  21622. ]
  21623. },
  21624. {
  21625. "type": "string",
  21626. "enum": [
  21627. "-Infinity"
  21628. ]
  21629. }
  21630. ]
  21631. },
  21632. {
  21633. "type": "string",
  21634. "enum": [
  21635. "Infinity",
  21636. "-Infinity",
  21637. "NaN"
  21638. ]
  21639. }
  21640. ]
  21641. },
  21642. "maximum": {
  21643. "anyOf": [
  21644. {
  21645. "anyOf": [
  21646. {
  21647. "type": "number"
  21648. },
  21649. {
  21650. "type": "string",
  21651. "enum": [
  21652. "NaN"
  21653. ]
  21654. },
  21655. {
  21656. "type": "string",
  21657. "enum": [
  21658. "Infinity"
  21659. ]
  21660. },
  21661. {
  21662. "type": "string",
  21663. "enum": [
  21664. "-Infinity"
  21665. ]
  21666. }
  21667. ]
  21668. },
  21669. {
  21670. "type": "string",
  21671. "enum": [
  21672. "Infinity",
  21673. "-Infinity",
  21674. "NaN"
  21675. ]
  21676. }
  21677. ]
  21678. },
  21679. "default": {
  21680. "anyOf": [
  21681. {
  21682. "anyOf": [
  21683. {
  21684. "type": "number"
  21685. },
  21686. {
  21687. "type": "string",
  21688. "enum": [
  21689. "NaN"
  21690. ]
  21691. },
  21692. {
  21693. "type": "string",
  21694. "enum": [
  21695. "Infinity"
  21696. ]
  21697. },
  21698. {
  21699. "type": "string",
  21700. "enum": [
  21701. "-Infinity"
  21702. ]
  21703. }
  21704. ]
  21705. },
  21706. {
  21707. "type": "string",
  21708. "enum": [
  21709. "Infinity",
  21710. "-Infinity",
  21711. "NaN"
  21712. ]
  21713. }
  21714. ]
  21715. }
  21716. },
  21717. "required": [
  21718. "key",
  21719. "type"
  21720. ],
  21721. "additionalProperties": false
  21722. },
  21723. "Form.BooleanField": {
  21724. "type": "object",
  21725. "properties": {
  21726. "key": {
  21727. "type": "string"
  21728. },
  21729. "title": {
  21730. "type": "string"
  21731. },
  21732. "description": {
  21733. "type": "string"
  21734. },
  21735. "required": {
  21736. "type": "boolean"
  21737. },
  21738. "when": {
  21739. "type": "array",
  21740. "items": {
  21741. "$ref": "#/components/schemas/Form.When"
  21742. }
  21743. },
  21744. "type": {
  21745. "type": "string",
  21746. "enum": [
  21747. "boolean"
  21748. ]
  21749. },
  21750. "default": {
  21751. "type": "boolean"
  21752. }
  21753. },
  21754. "required": [
  21755. "key",
  21756. "type"
  21757. ],
  21758. "additionalProperties": false
  21759. },
  21760. "Form.MultiselectField": {
  21761. "type": "object",
  21762. "properties": {
  21763. "key": {
  21764. "type": "string"
  21765. },
  21766. "title": {
  21767. "type": "string"
  21768. },
  21769. "description": {
  21770. "type": "string"
  21771. },
  21772. "required": {
  21773. "type": "boolean"
  21774. },
  21775. "when": {
  21776. "type": "array",
  21777. "items": {
  21778. "$ref": "#/components/schemas/Form.When"
  21779. }
  21780. },
  21781. "type": {
  21782. "type": "string",
  21783. "enum": [
  21784. "multiselect"
  21785. ]
  21786. },
  21787. "options": {
  21788. "type": "array",
  21789. "items": {
  21790. "$ref": "#/components/schemas/Form.Option"
  21791. }
  21792. },
  21793. "minItems": {
  21794. "type": "integer",
  21795. "allOf": [
  21796. {
  21797. "minimum": 0
  21798. }
  21799. ]
  21800. },
  21801. "maxItems": {
  21802. "type": "integer",
  21803. "allOf": [
  21804. {
  21805. "minimum": 0
  21806. }
  21807. ]
  21808. },
  21809. "custom": {
  21810. "type": "boolean"
  21811. },
  21812. "default": {
  21813. "type": "array",
  21814. "items": {
  21815. "type": "string"
  21816. }
  21817. }
  21818. },
  21819. "required": [
  21820. "key",
  21821. "type",
  21822. "options"
  21823. ],
  21824. "additionalProperties": false
  21825. },
  21826. "Form.ExternalField": {
  21827. "type": "object",
  21828. "properties": {
  21829. "key": {
  21830. "type": "string"
  21831. },
  21832. "type": {
  21833. "type": "string",
  21834. "enum": [
  21835. "external"
  21836. ]
  21837. },
  21838. "url": {
  21839. "type": "string"
  21840. },
  21841. "title": {
  21842. "type": "string"
  21843. },
  21844. "description": {
  21845. "type": "string"
  21846. }
  21847. },
  21848. "required": [
  21849. "key",
  21850. "type",
  21851. "url"
  21852. ],
  21853. "additionalProperties": false
  21854. },
  21855. "Form.Field": {
  21856. "anyOf": [
  21857. {
  21858. "$ref": "#/components/schemas/Form.StringField"
  21859. },
  21860. {
  21861. "$ref": "#/components/schemas/Form.NumberField"
  21862. },
  21863. {
  21864. "$ref": "#/components/schemas/Form.IntegerField"
  21865. },
  21866. {
  21867. "$ref": "#/components/schemas/Form.BooleanField"
  21868. },
  21869. {
  21870. "$ref": "#/components/schemas/Form.MultiselectField"
  21871. },
  21872. {
  21873. "$ref": "#/components/schemas/Form.ExternalField"
  21874. }
  21875. ]
  21876. },
  21877. "Form.Fields": {
  21878. "type": "array",
  21879. "prefixItems": [
  21880. {
  21881. "$ref": "#/components/schemas/Form.Field"
  21882. }
  21883. ],
  21884. "minItems": 1,
  21885. "items": {
  21886. "$ref": "#/components/schemas/Form.Field"
  21887. }
  21888. },
  21889. "Form.Info": {
  21890. "type": "object",
  21891. "properties": {
  21892. "id": {
  21893. "type": "string",
  21894. "allOf": [
  21895. {
  21896. "pattern": "^frm_"
  21897. }
  21898. ]
  21899. },
  21900. "sessionID": {
  21901. "type": "string"
  21902. },
  21903. "title": {
  21904. "type": "string"
  21905. },
  21906. "metadata": {
  21907. "$ref": "#/components/schemas/Form.Metadata"
  21908. },
  21909. "fields": {
  21910. "$ref": "#/components/schemas/Form.Fields"
  21911. }
  21912. },
  21913. "required": [
  21914. "id",
  21915. "sessionID",
  21916. "title",
  21917. "fields"
  21918. ],
  21919. "additionalProperties": false
  21920. },
  21921. "Form.CreatePayload": {
  21922. "type": "object",
  21923. "properties": {
  21924. "id": {
  21925. "anyOf": [
  21926. {
  21927. "type": "string",
  21928. "allOf": [
  21929. {
  21930. "pattern": "^frm_"
  21931. }
  21932. ]
  21933. },
  21934. {
  21935. "type": "null"
  21936. }
  21937. ]
  21938. },
  21939. "title": {
  21940. "type": "string"
  21941. },
  21942. "metadata": {
  21943. "$ref": "#/components/schemas/Form.Metadata"
  21944. },
  21945. "fields": {
  21946. "$ref": "#/components/schemas/Form.Fields"
  21947. }
  21948. },
  21949. "required": [
  21950. "title",
  21951. "fields"
  21952. ],
  21953. "additionalProperties": false
  21954. },
  21955. "FormNotFoundError": {
  21956. "type": "object",
  21957. "properties": {
  21958. "_tag": {
  21959. "type": "string",
  21960. "enum": [
  21961. "FormNotFoundError"
  21962. ]
  21963. },
  21964. "id": {
  21965. "type": "string"
  21966. },
  21967. "message": {
  21968. "type": "string"
  21969. }
  21970. },
  21971. "required": [
  21972. "_tag",
  21973. "id",
  21974. "message"
  21975. ],
  21976. "additionalProperties": false
  21977. },
  21978. "Form.Value": {
  21979. "anyOf": [
  21980. {
  21981. "type": "string"
  21982. },
  21983. {
  21984. "anyOf": [
  21985. {
  21986. "anyOf": [
  21987. {
  21988. "type": "number"
  21989. },
  21990. {
  21991. "type": "string",
  21992. "enum": [
  21993. "NaN"
  21994. ]
  21995. },
  21996. {
  21997. "type": "string",
  21998. "enum": [
  21999. "Infinity"
  22000. ]
  22001. },
  22002. {
  22003. "type": "string",
  22004. "enum": [
  22005. "-Infinity"
  22006. ]
  22007. }
  22008. ]
  22009. },
  22010. {
  22011. "type": "string",
  22012. "enum": [
  22013. "Infinity",
  22014. "-Infinity",
  22015. "NaN"
  22016. ]
  22017. }
  22018. ]
  22019. },
  22020. {
  22021. "type": "boolean"
  22022. },
  22023. {
  22024. "type": "array",
  22025. "items": {
  22026. "type": "string"
  22027. }
  22028. }
  22029. ]
  22030. },
  22031. "Form.Answer": {
  22032. "type": "object",
  22033. "additionalProperties": {
  22034. "$ref": "#/components/schemas/Form.Value"
  22035. }
  22036. },
  22037. "Form.State": {
  22038. "anyOf": [
  22039. {
  22040. "type": "object",
  22041. "properties": {
  22042. "status": {
  22043. "type": "string",
  22044. "enum": [
  22045. "pending"
  22046. ]
  22047. }
  22048. },
  22049. "required": [
  22050. "status"
  22051. ],
  22052. "additionalProperties": false
  22053. },
  22054. {
  22055. "type": "object",
  22056. "properties": {
  22057. "status": {
  22058. "type": "string",
  22059. "enum": [
  22060. "answered"
  22061. ]
  22062. },
  22063. "answer": {
  22064. "$ref": "#/components/schemas/Form.Answer"
  22065. }
  22066. },
  22067. "required": [
  22068. "status",
  22069. "answer"
  22070. ],
  22071. "additionalProperties": false
  22072. },
  22073. {
  22074. "type": "object",
  22075. "properties": {
  22076. "status": {
  22077. "type": "string",
  22078. "enum": [
  22079. "cancelled"
  22080. ]
  22081. }
  22082. },
  22083. "required": [
  22084. "status"
  22085. ],
  22086. "additionalProperties": false
  22087. }
  22088. ]
  22089. },
  22090. "Form.Reply": {
  22091. "type": "object",
  22092. "properties": {
  22093. "answer": {
  22094. "$ref": "#/components/schemas/Form.Answer"
  22095. }
  22096. },
  22097. "required": [
  22098. "answer"
  22099. ],
  22100. "additionalProperties": false
  22101. },
  22102. "FormAlreadySettledError": {
  22103. "type": "object",
  22104. "properties": {
  22105. "_tag": {
  22106. "type": "string",
  22107. "enum": [
  22108. "FormAlreadySettledError"
  22109. ]
  22110. },
  22111. "id": {
  22112. "type": "string"
  22113. },
  22114. "message": {
  22115. "type": "string"
  22116. }
  22117. },
  22118. "required": [
  22119. "_tag",
  22120. "id",
  22121. "message"
  22122. ],
  22123. "additionalProperties": false
  22124. },
  22125. "FormInvalidAnswerError": {
  22126. "type": "object",
  22127. "properties": {
  22128. "_tag": {
  22129. "type": "string",
  22130. "enum": [
  22131. "FormInvalidAnswerError"
  22132. ]
  22133. },
  22134. "id": {
  22135. "type": "string"
  22136. },
  22137. "message": {
  22138. "type": "string"
  22139. }
  22140. },
  22141. "required": [
  22142. "_tag",
  22143. "id",
  22144. "message"
  22145. ],
  22146. "additionalProperties": false
  22147. },
  22148. "Permission.Source": {
  22149. "anyOf": [
  22150. {
  22151. "type": "object",
  22152. "properties": {
  22153. "type": {
  22154. "type": "string",
  22155. "enum": [
  22156. "tool"
  22157. ]
  22158. },
  22159. "messageID": {
  22160. "type": "string"
  22161. },
  22162. "id": {
  22163. "type": "string"
  22164. }
  22165. },
  22166. "required": [
  22167. "type",
  22168. "messageID",
  22169. "id"
  22170. ],
  22171. "additionalProperties": false
  22172. }
  22173. ]
  22174. },
  22175. "Permission.Request": {
  22176. "type": "object",
  22177. "properties": {
  22178. "id": {
  22179. "type": "string",
  22180. "allOf": [
  22181. {
  22182. "pattern": "^per"
  22183. }
  22184. ]
  22185. },
  22186. "sessionID": {
  22187. "type": "string",
  22188. "allOf": [
  22189. {
  22190. "pattern": "^ses"
  22191. }
  22192. ]
  22193. },
  22194. "action": {
  22195. "type": "string"
  22196. },
  22197. "resources": {
  22198. "type": "array",
  22199. "items": {
  22200. "type": "string"
  22201. }
  22202. },
  22203. "save": {
  22204. "type": "array",
  22205. "items": {
  22206. "type": "string"
  22207. }
  22208. },
  22209. "metadata": {
  22210. "type": "object"
  22211. },
  22212. "source": {
  22213. "$ref": "#/components/schemas/Permission.Source"
  22214. }
  22215. },
  22216. "required": [
  22217. "id",
  22218. "sessionID",
  22219. "action",
  22220. "resources"
  22221. ],
  22222. "additionalProperties": false
  22223. },
  22224. "PermissionSaved.Info": {
  22225. "type": "object",
  22226. "properties": {
  22227. "id": {
  22228. "type": "string"
  22229. },
  22230. "projectID": {
  22231. "type": "string"
  22232. },
  22233. "action": {
  22234. "type": "string"
  22235. },
  22236. "resource": {
  22237. "type": "string"
  22238. }
  22239. },
  22240. "required": [
  22241. "id",
  22242. "projectID",
  22243. "action",
  22244. "resource"
  22245. ],
  22246. "additionalProperties": false
  22247. },
  22248. "PermissionNotFoundError": {
  22249. "type": "object",
  22250. "properties": {
  22251. "_tag": {
  22252. "type": "string",
  22253. "enum": [
  22254. "PermissionNotFoundError"
  22255. ]
  22256. },
  22257. "requestID": {
  22258. "type": "string"
  22259. },
  22260. "message": {
  22261. "type": "string"
  22262. }
  22263. },
  22264. "required": [
  22265. "_tag",
  22266. "requestID",
  22267. "message"
  22268. ],
  22269. "additionalProperties": false
  22270. },
  22271. "Permission.Reply": {
  22272. "type": "string",
  22273. "enum": [
  22274. "once",
  22275. "always",
  22276. "reject"
  22277. ]
  22278. },
  22279. "FileSystem.Entry": {
  22280. "type": "object",
  22281. "properties": {
  22282. "path": {
  22283. "type": "string"
  22284. },
  22285. "type": {
  22286. "type": "string",
  22287. "enum": [
  22288. "file",
  22289. "directory"
  22290. ]
  22291. }
  22292. },
  22293. "required": [
  22294. "path",
  22295. "type"
  22296. ],
  22297. "additionalProperties": false
  22298. },
  22299. "Command.Info": {
  22300. "type": "object",
  22301. "properties": {
  22302. "name": {
  22303. "type": "string"
  22304. },
  22305. "template": {
  22306. "type": "string"
  22307. },
  22308. "description": {
  22309. "type": "string"
  22310. },
  22311. "agent": {
  22312. "type": "string"
  22313. },
  22314. "model": {
  22315. "$ref": "#/components/schemas/Model.Ref"
  22316. },
  22317. "subtask": {
  22318. "type": "boolean"
  22319. }
  22320. },
  22321. "required": [
  22322. "name",
  22323. "template"
  22324. ],
  22325. "additionalProperties": false
  22326. },
  22327. "Skill.Info": {
  22328. "type": "object",
  22329. "properties": {
  22330. "id": {
  22331. "type": "string"
  22332. },
  22333. "name": {
  22334. "type": "string"
  22335. },
  22336. "description": {
  22337. "type": "string"
  22338. },
  22339. "slash": {
  22340. "type": "boolean"
  22341. },
  22342. "autoinvoke": {
  22343. "type": "boolean"
  22344. },
  22345. "location": {
  22346. "type": "string"
  22347. },
  22348. "content": {
  22349. "type": "string"
  22350. }
  22351. },
  22352. "required": [
  22353. "id",
  22354. "name",
  22355. "location",
  22356. "content"
  22357. ],
  22358. "additionalProperties": false
  22359. },
  22360. "models-dev.refreshed": {
  22361. "type": "object",
  22362. "properties": {
  22363. "id": {
  22364. "type": "string",
  22365. "allOf": [
  22366. {
  22367. "pattern": "^evt_"
  22368. }
  22369. ]
  22370. },
  22371. "created": {
  22372. "type": "number"
  22373. },
  22374. "metadata": {
  22375. "type": "object"
  22376. },
  22377. "type": {
  22378. "type": "string",
  22379. "enum": [
  22380. "models-dev.refreshed"
  22381. ]
  22382. },
  22383. "location": {
  22384. "$ref": "#/components/schemas/Location.Ref"
  22385. },
  22386. "data": {
  22387. "anyOf": [
  22388. {
  22389. "type": "object"
  22390. },
  22391. {
  22392. "type": "array"
  22393. }
  22394. ]
  22395. }
  22396. },
  22397. "required": [
  22398. "id",
  22399. "created",
  22400. "type",
  22401. "data"
  22402. ],
  22403. "additionalProperties": false
  22404. },
  22405. "integration.updated": {
  22406. "type": "object",
  22407. "properties": {
  22408. "id": {
  22409. "type": "string",
  22410. "allOf": [
  22411. {
  22412. "pattern": "^evt_"
  22413. }
  22414. ]
  22415. },
  22416. "created": {
  22417. "type": "number"
  22418. },
  22419. "metadata": {
  22420. "type": "object"
  22421. },
  22422. "type": {
  22423. "type": "string",
  22424. "enum": [
  22425. "integration.updated"
  22426. ]
  22427. },
  22428. "location": {
  22429. "$ref": "#/components/schemas/Location.Ref"
  22430. },
  22431. "data": {
  22432. "anyOf": [
  22433. {
  22434. "type": "object"
  22435. },
  22436. {
  22437. "type": "array"
  22438. }
  22439. ]
  22440. }
  22441. },
  22442. "required": [
  22443. "id",
  22444. "created",
  22445. "type",
  22446. "data"
  22447. ],
  22448. "additionalProperties": false
  22449. },
  22450. "integration.connection.updated": {
  22451. "type": "object",
  22452. "properties": {
  22453. "id": {
  22454. "type": "string",
  22455. "allOf": [
  22456. {
  22457. "pattern": "^evt_"
  22458. }
  22459. ]
  22460. },
  22461. "created": {
  22462. "type": "number"
  22463. },
  22464. "metadata": {
  22465. "type": "object"
  22466. },
  22467. "type": {
  22468. "type": "string",
  22469. "enum": [
  22470. "integration.connection.updated"
  22471. ]
  22472. },
  22473. "location": {
  22474. "$ref": "#/components/schemas/Location.Ref"
  22475. },
  22476. "data": {
  22477. "type": "object",
  22478. "properties": {
  22479. "integrationID": {
  22480. "type": "string"
  22481. }
  22482. },
  22483. "required": [
  22484. "integrationID"
  22485. ],
  22486. "additionalProperties": false
  22487. }
  22488. },
  22489. "required": [
  22490. "id",
  22491. "created",
  22492. "type",
  22493. "data"
  22494. ],
  22495. "additionalProperties": false
  22496. },
  22497. "catalog.updated": {
  22498. "type": "object",
  22499. "properties": {
  22500. "id": {
  22501. "type": "string",
  22502. "allOf": [
  22503. {
  22504. "pattern": "^evt_"
  22505. }
  22506. ]
  22507. },
  22508. "created": {
  22509. "type": "number"
  22510. },
  22511. "metadata": {
  22512. "type": "object"
  22513. },
  22514. "type": {
  22515. "type": "string",
  22516. "enum": [
  22517. "catalog.updated"
  22518. ]
  22519. },
  22520. "location": {
  22521. "$ref": "#/components/schemas/Location.Ref"
  22522. },
  22523. "data": {
  22524. "anyOf": [
  22525. {
  22526. "type": "object"
  22527. },
  22528. {
  22529. "type": "array"
  22530. }
  22531. ]
  22532. }
  22533. },
  22534. "required": [
  22535. "id",
  22536. "created",
  22537. "type",
  22538. "data"
  22539. ],
  22540. "additionalProperties": false
  22541. },
  22542. "agent.updated": {
  22543. "type": "object",
  22544. "properties": {
  22545. "id": {
  22546. "type": "string",
  22547. "allOf": [
  22548. {
  22549. "pattern": "^evt_"
  22550. }
  22551. ]
  22552. },
  22553. "created": {
  22554. "type": "number"
  22555. },
  22556. "metadata": {
  22557. "type": "object"
  22558. },
  22559. "type": {
  22560. "type": "string",
  22561. "enum": [
  22562. "agent.updated"
  22563. ]
  22564. },
  22565. "location": {
  22566. "$ref": "#/components/schemas/Location.Ref"
  22567. },
  22568. "data": {
  22569. "anyOf": [
  22570. {
  22571. "type": "object"
  22572. },
  22573. {
  22574. "type": "array"
  22575. }
  22576. ]
  22577. }
  22578. },
  22579. "required": [
  22580. "id",
  22581. "created",
  22582. "type",
  22583. "data"
  22584. ],
  22585. "additionalProperties": false
  22586. },
  22587. "session.usage.updated": {
  22588. "type": "object",
  22589. "properties": {
  22590. "id": {
  22591. "type": "string",
  22592. "allOf": [
  22593. {
  22594. "pattern": "^evt_"
  22595. }
  22596. ]
  22597. },
  22598. "created": {
  22599. "type": "number"
  22600. },
  22601. "metadata": {
  22602. "type": "object"
  22603. },
  22604. "type": {
  22605. "type": "string",
  22606. "enum": [
  22607. "session.usage.updated"
  22608. ]
  22609. },
  22610. "location": {
  22611. "$ref": "#/components/schemas/Location.Ref"
  22612. },
  22613. "data": {
  22614. "type": "object",
  22615. "properties": {
  22616. "sessionID": {
  22617. "type": "string",
  22618. "allOf": [
  22619. {
  22620. "pattern": "^ses"
  22621. }
  22622. ]
  22623. },
  22624. "cost": {
  22625. "$ref": "#/components/schemas/Money.USD"
  22626. },
  22627. "tokens": {
  22628. "$ref": "#/components/schemas/TokenUsage.Info"
  22629. }
  22630. },
  22631. "required": [
  22632. "sessionID",
  22633. "cost",
  22634. "tokens"
  22635. ],
  22636. "additionalProperties": false
  22637. }
  22638. },
  22639. "required": [
  22640. "id",
  22641. "created",
  22642. "type",
  22643. "data"
  22644. ],
  22645. "additionalProperties": false
  22646. },
  22647. "session.text.delta": {
  22648. "type": "object",
  22649. "properties": {
  22650. "id": {
  22651. "type": "string",
  22652. "allOf": [
  22653. {
  22654. "pattern": "^evt_"
  22655. }
  22656. ]
  22657. },
  22658. "created": {
  22659. "type": "number"
  22660. },
  22661. "metadata": {
  22662. "type": "object"
  22663. },
  22664. "type": {
  22665. "type": "string",
  22666. "enum": [
  22667. "session.text.delta"
  22668. ]
  22669. },
  22670. "location": {
  22671. "$ref": "#/components/schemas/Location.Ref"
  22672. },
  22673. "data": {
  22674. "type": "object",
  22675. "properties": {
  22676. "sessionID": {
  22677. "type": "string",
  22678. "allOf": [
  22679. {
  22680. "pattern": "^ses"
  22681. }
  22682. ]
  22683. },
  22684. "assistantMessageID": {
  22685. "type": "string",
  22686. "allOf": [
  22687. {
  22688. "pattern": "^msg_"
  22689. }
  22690. ]
  22691. },
  22692. "ordinal": {
  22693. "type": "integer",
  22694. "allOf": [
  22695. {
  22696. "minimum": 0
  22697. }
  22698. ]
  22699. },
  22700. "delta": {
  22701. "type": "string"
  22702. }
  22703. },
  22704. "required": [
  22705. "sessionID",
  22706. "assistantMessageID",
  22707. "ordinal",
  22708. "delta"
  22709. ],
  22710. "additionalProperties": false
  22711. }
  22712. },
  22713. "required": [
  22714. "id",
  22715. "created",
  22716. "type",
  22717. "data"
  22718. ],
  22719. "additionalProperties": false
  22720. },
  22721. "session.reasoning.delta": {
  22722. "type": "object",
  22723. "properties": {
  22724. "id": {
  22725. "type": "string",
  22726. "allOf": [
  22727. {
  22728. "pattern": "^evt_"
  22729. }
  22730. ]
  22731. },
  22732. "created": {
  22733. "type": "number"
  22734. },
  22735. "metadata": {
  22736. "type": "object"
  22737. },
  22738. "type": {
  22739. "type": "string",
  22740. "enum": [
  22741. "session.reasoning.delta"
  22742. ]
  22743. },
  22744. "location": {
  22745. "$ref": "#/components/schemas/Location.Ref"
  22746. },
  22747. "data": {
  22748. "type": "object",
  22749. "properties": {
  22750. "sessionID": {
  22751. "type": "string",
  22752. "allOf": [
  22753. {
  22754. "pattern": "^ses"
  22755. }
  22756. ]
  22757. },
  22758. "assistantMessageID": {
  22759. "type": "string",
  22760. "allOf": [
  22761. {
  22762. "pattern": "^msg_"
  22763. }
  22764. ]
  22765. },
  22766. "ordinal": {
  22767. "type": "integer",
  22768. "allOf": [
  22769. {
  22770. "minimum": 0
  22771. }
  22772. ]
  22773. },
  22774. "delta": {
  22775. "type": "string"
  22776. }
  22777. },
  22778. "required": [
  22779. "sessionID",
  22780. "assistantMessageID",
  22781. "ordinal",
  22782. "delta"
  22783. ],
  22784. "additionalProperties": false
  22785. }
  22786. },
  22787. "required": [
  22788. "id",
  22789. "created",
  22790. "type",
  22791. "data"
  22792. ],
  22793. "additionalProperties": false
  22794. },
  22795. "session.tool.input.delta": {
  22796. "type": "object",
  22797. "properties": {
  22798. "id": {
  22799. "type": "string",
  22800. "allOf": [
  22801. {
  22802. "pattern": "^evt_"
  22803. }
  22804. ]
  22805. },
  22806. "created": {
  22807. "type": "number"
  22808. },
  22809. "metadata": {
  22810. "type": "object"
  22811. },
  22812. "type": {
  22813. "type": "string",
  22814. "enum": [
  22815. "session.tool.input.delta"
  22816. ]
  22817. },
  22818. "location": {
  22819. "$ref": "#/components/schemas/Location.Ref"
  22820. },
  22821. "data": {
  22822. "type": "object",
  22823. "properties": {
  22824. "sessionID": {
  22825. "type": "string",
  22826. "allOf": [
  22827. {
  22828. "pattern": "^ses"
  22829. }
  22830. ]
  22831. },
  22832. "assistantMessageID": {
  22833. "type": "string",
  22834. "allOf": [
  22835. {
  22836. "pattern": "^msg_"
  22837. }
  22838. ]
  22839. },
  22840. "id": {
  22841. "type": "string"
  22842. },
  22843. "delta": {
  22844. "type": "string"
  22845. }
  22846. },
  22847. "required": [
  22848. "sessionID",
  22849. "assistantMessageID",
  22850. "id",
  22851. "delta"
  22852. ],
  22853. "additionalProperties": false
  22854. }
  22855. },
  22856. "required": [
  22857. "id",
  22858. "created",
  22859. "type",
  22860. "data"
  22861. ],
  22862. "additionalProperties": false
  22863. },
  22864. "session.tool.progress": {
  22865. "type": "object",
  22866. "properties": {
  22867. "id": {
  22868. "type": "string",
  22869. "allOf": [
  22870. {
  22871. "pattern": "^evt_"
  22872. }
  22873. ]
  22874. },
  22875. "created": {
  22876. "type": "number"
  22877. },
  22878. "metadata": {
  22879. "type": "object"
  22880. },
  22881. "type": {
  22882. "type": "string",
  22883. "enum": [
  22884. "session.tool.progress"
  22885. ]
  22886. },
  22887. "location": {
  22888. "$ref": "#/components/schemas/Location.Ref"
  22889. },
  22890. "data": {
  22891. "type": "object",
  22892. "properties": {
  22893. "sessionID": {
  22894. "type": "string",
  22895. "allOf": [
  22896. {
  22897. "pattern": "^ses"
  22898. }
  22899. ]
  22900. },
  22901. "assistantMessageID": {
  22902. "type": "string",
  22903. "allOf": [
  22904. {
  22905. "pattern": "^msg_"
  22906. }
  22907. ]
  22908. },
  22909. "id": {
  22910. "type": "string"
  22911. },
  22912. "metadata": {
  22913. "type": "object"
  22914. }
  22915. },
  22916. "required": [
  22917. "sessionID",
  22918. "assistantMessageID",
  22919. "id",
  22920. "metadata"
  22921. ],
  22922. "additionalProperties": false
  22923. }
  22924. },
  22925. "required": [
  22926. "id",
  22927. "created",
  22928. "type",
  22929. "data"
  22930. ],
  22931. "additionalProperties": false
  22932. },
  22933. "session.compaction.delta": {
  22934. "type": "object",
  22935. "properties": {
  22936. "id": {
  22937. "type": "string",
  22938. "allOf": [
  22939. {
  22940. "pattern": "^evt_"
  22941. }
  22942. ]
  22943. },
  22944. "created": {
  22945. "type": "number"
  22946. },
  22947. "metadata": {
  22948. "type": "object"
  22949. },
  22950. "type": {
  22951. "type": "string",
  22952. "enum": [
  22953. "session.compaction.delta"
  22954. ]
  22955. },
  22956. "location": {
  22957. "$ref": "#/components/schemas/Location.Ref"
  22958. },
  22959. "data": {
  22960. "type": "object",
  22961. "properties": {
  22962. "sessionID": {
  22963. "type": "string",
  22964. "allOf": [
  22965. {
  22966. "pattern": "^ses"
  22967. }
  22968. ]
  22969. },
  22970. "text": {
  22971. "type": "string"
  22972. }
  22973. },
  22974. "required": [
  22975. "sessionID",
  22976. "text"
  22977. ],
  22978. "additionalProperties": false
  22979. }
  22980. },
  22981. "required": [
  22982. "id",
  22983. "created",
  22984. "type",
  22985. "data"
  22986. ],
  22987. "additionalProperties": false
  22988. },
  22989. "filesystem.changed": {
  22990. "type": "object",
  22991. "properties": {
  22992. "id": {
  22993. "type": "string",
  22994. "allOf": [
  22995. {
  22996. "pattern": "^evt_"
  22997. }
  22998. ]
  22999. },
  23000. "created": {
  23001. "type": "number"
  23002. },
  23003. "metadata": {
  23004. "type": "object"
  23005. },
  23006. "type": {
  23007. "type": "string",
  23008. "enum": [
  23009. "filesystem.changed"
  23010. ]
  23011. },
  23012. "location": {
  23013. "$ref": "#/components/schemas/Location.Ref"
  23014. },
  23015. "data": {
  23016. "type": "object",
  23017. "properties": {
  23018. "file": {
  23019. "type": "string"
  23020. },
  23021. "event": {
  23022. "type": "string",
  23023. "enum": [
  23024. "add",
  23025. "change",
  23026. "unlink"
  23027. ]
  23028. }
  23029. },
  23030. "required": [
  23031. "file",
  23032. "event"
  23033. ],
  23034. "additionalProperties": false
  23035. }
  23036. },
  23037. "required": [
  23038. "id",
  23039. "created",
  23040. "type",
  23041. "data"
  23042. ],
  23043. "additionalProperties": false
  23044. },
  23045. "reference.updated": {
  23046. "type": "object",
  23047. "properties": {
  23048. "id": {
  23049. "type": "string",
  23050. "allOf": [
  23051. {
  23052. "pattern": "^evt_"
  23053. }
  23054. ]
  23055. },
  23056. "created": {
  23057. "type": "number"
  23058. },
  23059. "metadata": {
  23060. "type": "object"
  23061. },
  23062. "type": {
  23063. "type": "string",
  23064. "enum": [
  23065. "reference.updated"
  23066. ]
  23067. },
  23068. "location": {
  23069. "$ref": "#/components/schemas/Location.Ref"
  23070. },
  23071. "data": {
  23072. "anyOf": [
  23073. {
  23074. "type": "object"
  23075. },
  23076. {
  23077. "type": "array"
  23078. }
  23079. ]
  23080. }
  23081. },
  23082. "required": [
  23083. "id",
  23084. "created",
  23085. "type",
  23086. "data"
  23087. ],
  23088. "additionalProperties": false
  23089. },
  23090. "permission.asked": {
  23091. "type": "object",
  23092. "properties": {
  23093. "id": {
  23094. "type": "string",
  23095. "allOf": [
  23096. {
  23097. "pattern": "^evt_"
  23098. }
  23099. ]
  23100. },
  23101. "created": {
  23102. "type": "number"
  23103. },
  23104. "metadata": {
  23105. "type": "object"
  23106. },
  23107. "type": {
  23108. "type": "string",
  23109. "enum": [
  23110. "permission.asked"
  23111. ]
  23112. },
  23113. "location": {
  23114. "$ref": "#/components/schemas/Location.Ref"
  23115. },
  23116. "data": {
  23117. "type": "object",
  23118. "properties": {
  23119. "id": {
  23120. "type": "string",
  23121. "allOf": [
  23122. {
  23123. "pattern": "^per"
  23124. }
  23125. ]
  23126. },
  23127. "sessionID": {
  23128. "type": "string",
  23129. "allOf": [
  23130. {
  23131. "pattern": "^ses"
  23132. }
  23133. ]
  23134. },
  23135. "action": {
  23136. "type": "string"
  23137. },
  23138. "resources": {
  23139. "type": "array",
  23140. "items": {
  23141. "type": "string"
  23142. }
  23143. },
  23144. "save": {
  23145. "type": "array",
  23146. "items": {
  23147. "type": "string"
  23148. }
  23149. },
  23150. "metadata": {
  23151. "type": "object"
  23152. },
  23153. "source": {
  23154. "$ref": "#/components/schemas/Permission.Source"
  23155. }
  23156. },
  23157. "required": [
  23158. "id",
  23159. "sessionID",
  23160. "action",
  23161. "resources"
  23162. ],
  23163. "additionalProperties": false
  23164. }
  23165. },
  23166. "required": [
  23167. "id",
  23168. "created",
  23169. "type",
  23170. "data"
  23171. ],
  23172. "additionalProperties": false
  23173. },
  23174. "permission.replied": {
  23175. "type": "object",
  23176. "properties": {
  23177. "id": {
  23178. "type": "string",
  23179. "allOf": [
  23180. {
  23181. "pattern": "^evt_"
  23182. }
  23183. ]
  23184. },
  23185. "created": {
  23186. "type": "number"
  23187. },
  23188. "metadata": {
  23189. "type": "object"
  23190. },
  23191. "type": {
  23192. "type": "string",
  23193. "enum": [
  23194. "permission.replied"
  23195. ]
  23196. },
  23197. "location": {
  23198. "$ref": "#/components/schemas/Location.Ref"
  23199. },
  23200. "data": {
  23201. "type": "object",
  23202. "properties": {
  23203. "sessionID": {
  23204. "type": "string",
  23205. "allOf": [
  23206. {
  23207. "pattern": "^ses"
  23208. }
  23209. ]
  23210. },
  23211. "requestID": {
  23212. "type": "string",
  23213. "allOf": [
  23214. {
  23215. "pattern": "^per"
  23216. }
  23217. ]
  23218. },
  23219. "reply": {
  23220. "$ref": "#/components/schemas/Permission.Reply"
  23221. }
  23222. },
  23223. "required": [
  23224. "sessionID",
  23225. "requestID",
  23226. "reply"
  23227. ],
  23228. "additionalProperties": false
  23229. }
  23230. },
  23231. "required": [
  23232. "id",
  23233. "created",
  23234. "type",
  23235. "data"
  23236. ],
  23237. "additionalProperties": false
  23238. },
  23239. "plugin.added": {
  23240. "type": "object",
  23241. "properties": {
  23242. "id": {
  23243. "type": "string",
  23244. "allOf": [
  23245. {
  23246. "pattern": "^evt_"
  23247. }
  23248. ]
  23249. },
  23250. "created": {
  23251. "type": "number"
  23252. },
  23253. "metadata": {
  23254. "type": "object"
  23255. },
  23256. "type": {
  23257. "type": "string",
  23258. "enum": [
  23259. "plugin.added"
  23260. ]
  23261. },
  23262. "location": {
  23263. "$ref": "#/components/schemas/Location.Ref"
  23264. },
  23265. "data": {
  23266. "type": "object",
  23267. "properties": {
  23268. "id": {
  23269. "type": "string"
  23270. }
  23271. },
  23272. "required": [
  23273. "id"
  23274. ],
  23275. "additionalProperties": false
  23276. }
  23277. },
  23278. "required": [
  23279. "id",
  23280. "created",
  23281. "type",
  23282. "data"
  23283. ],
  23284. "additionalProperties": false
  23285. },
  23286. "plugin.updated": {
  23287. "type": "object",
  23288. "properties": {
  23289. "id": {
  23290. "type": "string",
  23291. "allOf": [
  23292. {
  23293. "pattern": "^evt_"
  23294. }
  23295. ]
  23296. },
  23297. "created": {
  23298. "type": "number"
  23299. },
  23300. "metadata": {
  23301. "type": "object"
  23302. },
  23303. "type": {
  23304. "type": "string",
  23305. "enum": [
  23306. "plugin.updated"
  23307. ]
  23308. },
  23309. "location": {
  23310. "$ref": "#/components/schemas/Location.Ref"
  23311. },
  23312. "data": {
  23313. "anyOf": [
  23314. {
  23315. "type": "object"
  23316. },
  23317. {
  23318. "type": "array"
  23319. }
  23320. ]
  23321. }
  23322. },
  23323. "required": [
  23324. "id",
  23325. "created",
  23326. "type",
  23327. "data"
  23328. ],
  23329. "additionalProperties": false
  23330. },
  23331. "project.directories.updated": {
  23332. "type": "object",
  23333. "properties": {
  23334. "id": {
  23335. "type": "string",
  23336. "allOf": [
  23337. {
  23338. "pattern": "^evt_"
  23339. }
  23340. ]
  23341. },
  23342. "created": {
  23343. "type": "number"
  23344. },
  23345. "metadata": {
  23346. "type": "object"
  23347. },
  23348. "type": {
  23349. "type": "string",
  23350. "enum": [
  23351. "project.directories.updated"
  23352. ]
  23353. },
  23354. "location": {
  23355. "$ref": "#/components/schemas/Location.Ref"
  23356. },
  23357. "data": {
  23358. "type": "object",
  23359. "properties": {
  23360. "projectID": {
  23361. "type": "string"
  23362. }
  23363. },
  23364. "required": [
  23365. "projectID"
  23366. ],
  23367. "additionalProperties": false
  23368. }
  23369. },
  23370. "required": [
  23371. "id",
  23372. "created",
  23373. "type",
  23374. "data"
  23375. ],
  23376. "additionalProperties": false
  23377. },
  23378. "command.updated": {
  23379. "type": "object",
  23380. "properties": {
  23381. "id": {
  23382. "type": "string",
  23383. "allOf": [
  23384. {
  23385. "pattern": "^evt_"
  23386. }
  23387. ]
  23388. },
  23389. "created": {
  23390. "type": "number"
  23391. },
  23392. "metadata": {
  23393. "type": "object"
  23394. },
  23395. "type": {
  23396. "type": "string",
  23397. "enum": [
  23398. "command.updated"
  23399. ]
  23400. },
  23401. "location": {
  23402. "$ref": "#/components/schemas/Location.Ref"
  23403. },
  23404. "data": {
  23405. "anyOf": [
  23406. {
  23407. "type": "object"
  23408. },
  23409. {
  23410. "type": "array"
  23411. }
  23412. ]
  23413. }
  23414. },
  23415. "required": [
  23416. "id",
  23417. "created",
  23418. "type",
  23419. "data"
  23420. ],
  23421. "additionalProperties": false
  23422. },
  23423. "config.updated": {
  23424. "type": "object",
  23425. "properties": {
  23426. "id": {
  23427. "type": "string",
  23428. "allOf": [
  23429. {
  23430. "pattern": "^evt_"
  23431. }
  23432. ]
  23433. },
  23434. "created": {
  23435. "type": "number"
  23436. },
  23437. "metadata": {
  23438. "type": "object"
  23439. },
  23440. "type": {
  23441. "type": "string",
  23442. "enum": [
  23443. "config.updated"
  23444. ]
  23445. },
  23446. "location": {
  23447. "$ref": "#/components/schemas/Location.Ref"
  23448. },
  23449. "data": {
  23450. "anyOf": [
  23451. {
  23452. "type": "object"
  23453. },
  23454. {
  23455. "type": "array"
  23456. }
  23457. ]
  23458. }
  23459. },
  23460. "required": [
  23461. "id",
  23462. "created",
  23463. "type",
  23464. "data"
  23465. ],
  23466. "additionalProperties": false
  23467. },
  23468. "skill.updated": {
  23469. "type": "object",
  23470. "properties": {
  23471. "id": {
  23472. "type": "string",
  23473. "allOf": [
  23474. {
  23475. "pattern": "^evt_"
  23476. }
  23477. ]
  23478. },
  23479. "created": {
  23480. "type": "number"
  23481. },
  23482. "metadata": {
  23483. "type": "object"
  23484. },
  23485. "type": {
  23486. "type": "string",
  23487. "enum": [
  23488. "skill.updated"
  23489. ]
  23490. },
  23491. "location": {
  23492. "$ref": "#/components/schemas/Location.Ref"
  23493. },
  23494. "data": {
  23495. "anyOf": [
  23496. {
  23497. "type": "object"
  23498. },
  23499. {
  23500. "type": "array"
  23501. }
  23502. ]
  23503. }
  23504. },
  23505. "required": [
  23506. "id",
  23507. "created",
  23508. "type",
  23509. "data"
  23510. ],
  23511. "additionalProperties": false
  23512. },
  23513. "Pty": {
  23514. "type": "object",
  23515. "properties": {
  23516. "id": {
  23517. "type": "string",
  23518. "allOf": [
  23519. {
  23520. "pattern": "^pty"
  23521. }
  23522. ]
  23523. },
  23524. "title": {
  23525. "type": "string"
  23526. },
  23527. "command": {
  23528. "type": "string"
  23529. },
  23530. "args": {
  23531. "type": "array",
  23532. "items": {
  23533. "type": "string"
  23534. }
  23535. },
  23536. "cwd": {
  23537. "type": "string"
  23538. },
  23539. "status": {
  23540. "type": "string",
  23541. "enum": [
  23542. "running",
  23543. "exited"
  23544. ]
  23545. },
  23546. "pid": {
  23547. "type": "integer",
  23548. "allOf": [
  23549. {
  23550. "minimum": 0
  23551. }
  23552. ]
  23553. },
  23554. "exitCode": {
  23555. "type": "integer",
  23556. "allOf": [
  23557. {
  23558. "minimum": 0
  23559. }
  23560. ]
  23561. }
  23562. },
  23563. "required": [
  23564. "id",
  23565. "title",
  23566. "command",
  23567. "args",
  23568. "cwd",
  23569. "status",
  23570. "pid"
  23571. ],
  23572. "additionalProperties": false
  23573. },
  23574. "pty.created": {
  23575. "type": "object",
  23576. "properties": {
  23577. "id": {
  23578. "type": "string",
  23579. "allOf": [
  23580. {
  23581. "pattern": "^evt_"
  23582. }
  23583. ]
  23584. },
  23585. "created": {
  23586. "type": "number"
  23587. },
  23588. "metadata": {
  23589. "type": "object"
  23590. },
  23591. "type": {
  23592. "type": "string",
  23593. "enum": [
  23594. "pty.created"
  23595. ]
  23596. },
  23597. "location": {
  23598. "$ref": "#/components/schemas/Location.Ref"
  23599. },
  23600. "data": {
  23601. "type": "object",
  23602. "properties": {
  23603. "info": {
  23604. "$ref": "#/components/schemas/Pty"
  23605. }
  23606. },
  23607. "required": [
  23608. "info"
  23609. ],
  23610. "additionalProperties": false
  23611. }
  23612. },
  23613. "required": [
  23614. "id",
  23615. "created",
  23616. "type",
  23617. "data"
  23618. ],
  23619. "additionalProperties": false
  23620. },
  23621. "pty.updated": {
  23622. "type": "object",
  23623. "properties": {
  23624. "id": {
  23625. "type": "string",
  23626. "allOf": [
  23627. {
  23628. "pattern": "^evt_"
  23629. }
  23630. ]
  23631. },
  23632. "created": {
  23633. "type": "number"
  23634. },
  23635. "metadata": {
  23636. "type": "object"
  23637. },
  23638. "type": {
  23639. "type": "string",
  23640. "enum": [
  23641. "pty.updated"
  23642. ]
  23643. },
  23644. "location": {
  23645. "$ref": "#/components/schemas/Location.Ref"
  23646. },
  23647. "data": {
  23648. "type": "object",
  23649. "properties": {
  23650. "info": {
  23651. "$ref": "#/components/schemas/Pty"
  23652. }
  23653. },
  23654. "required": [
  23655. "info"
  23656. ],
  23657. "additionalProperties": false
  23658. }
  23659. },
  23660. "required": [
  23661. "id",
  23662. "created",
  23663. "type",
  23664. "data"
  23665. ],
  23666. "additionalProperties": false
  23667. },
  23668. "pty.exited": {
  23669. "type": "object",
  23670. "properties": {
  23671. "id": {
  23672. "type": "string",
  23673. "allOf": [
  23674. {
  23675. "pattern": "^evt_"
  23676. }
  23677. ]
  23678. },
  23679. "created": {
  23680. "type": "number"
  23681. },
  23682. "metadata": {
  23683. "type": "object"
  23684. },
  23685. "type": {
  23686. "type": "string",
  23687. "enum": [
  23688. "pty.exited"
  23689. ]
  23690. },
  23691. "location": {
  23692. "$ref": "#/components/schemas/Location.Ref"
  23693. },
  23694. "data": {
  23695. "type": "object",
  23696. "properties": {
  23697. "id": {
  23698. "type": "string",
  23699. "allOf": [
  23700. {
  23701. "pattern": "^pty"
  23702. }
  23703. ]
  23704. },
  23705. "exitCode": {
  23706. "type": "integer",
  23707. "allOf": [
  23708. {
  23709. "minimum": 0
  23710. }
  23711. ]
  23712. }
  23713. },
  23714. "required": [
  23715. "id",
  23716. "exitCode"
  23717. ],
  23718. "additionalProperties": false
  23719. }
  23720. },
  23721. "required": [
  23722. "id",
  23723. "created",
  23724. "type",
  23725. "data"
  23726. ],
  23727. "additionalProperties": false
  23728. },
  23729. "pty.deleted": {
  23730. "type": "object",
  23731. "properties": {
  23732. "id": {
  23733. "type": "string",
  23734. "allOf": [
  23735. {
  23736. "pattern": "^evt_"
  23737. }
  23738. ]
  23739. },
  23740. "created": {
  23741. "type": "number"
  23742. },
  23743. "metadata": {
  23744. "type": "object"
  23745. },
  23746. "type": {
  23747. "type": "string",
  23748. "enum": [
  23749. "pty.deleted"
  23750. ]
  23751. },
  23752. "location": {
  23753. "$ref": "#/components/schemas/Location.Ref"
  23754. },
  23755. "data": {
  23756. "type": "object",
  23757. "properties": {
  23758. "id": {
  23759. "type": "string",
  23760. "allOf": [
  23761. {
  23762. "pattern": "^pty"
  23763. }
  23764. ]
  23765. }
  23766. },
  23767. "required": [
  23768. "id"
  23769. ],
  23770. "additionalProperties": false
  23771. }
  23772. },
  23773. "required": [
  23774. "id",
  23775. "created",
  23776. "type",
  23777. "data"
  23778. ],
  23779. "additionalProperties": false
  23780. },
  23781. "shell.created": {
  23782. "type": "object",
  23783. "properties": {
  23784. "id": {
  23785. "type": "string",
  23786. "allOf": [
  23787. {
  23788. "pattern": "^evt_"
  23789. }
  23790. ]
  23791. },
  23792. "created": {
  23793. "type": "number"
  23794. },
  23795. "metadata": {
  23796. "type": "object"
  23797. },
  23798. "type": {
  23799. "type": "string",
  23800. "enum": [
  23801. "shell.created"
  23802. ]
  23803. },
  23804. "location": {
  23805. "$ref": "#/components/schemas/Location.Ref"
  23806. },
  23807. "data": {
  23808. "type": "object",
  23809. "properties": {
  23810. "info": {
  23811. "$ref": "#/components/schemas/Shell.Info"
  23812. }
  23813. },
  23814. "required": [
  23815. "info"
  23816. ],
  23817. "additionalProperties": false
  23818. }
  23819. },
  23820. "required": [
  23821. "id",
  23822. "created",
  23823. "type",
  23824. "data"
  23825. ],
  23826. "additionalProperties": false
  23827. },
  23828. "shell.exited": {
  23829. "type": "object",
  23830. "properties": {
  23831. "id": {
  23832. "type": "string",
  23833. "allOf": [
  23834. {
  23835. "pattern": "^evt_"
  23836. }
  23837. ]
  23838. },
  23839. "created": {
  23840. "type": "number"
  23841. },
  23842. "metadata": {
  23843. "type": "object"
  23844. },
  23845. "type": {
  23846. "type": "string",
  23847. "enum": [
  23848. "shell.exited"
  23849. ]
  23850. },
  23851. "location": {
  23852. "$ref": "#/components/schemas/Location.Ref"
  23853. },
  23854. "data": {
  23855. "type": "object",
  23856. "properties": {
  23857. "id": {
  23858. "type": "string",
  23859. "allOf": [
  23860. {
  23861. "pattern": "^sh_"
  23862. }
  23863. ]
  23864. },
  23865. "exit": {
  23866. "type": "number"
  23867. },
  23868. "status": {
  23869. "type": "string",
  23870. "enum": [
  23871. "running",
  23872. "exited",
  23873. "timeout",
  23874. "killed"
  23875. ]
  23876. }
  23877. },
  23878. "required": [
  23879. "id",
  23880. "status"
  23881. ],
  23882. "additionalProperties": false
  23883. }
  23884. },
  23885. "required": [
  23886. "id",
  23887. "created",
  23888. "type",
  23889. "data"
  23890. ],
  23891. "additionalProperties": false
  23892. },
  23893. "shell.deleted": {
  23894. "type": "object",
  23895. "properties": {
  23896. "id": {
  23897. "type": "string",
  23898. "allOf": [
  23899. {
  23900. "pattern": "^evt_"
  23901. }
  23902. ]
  23903. },
  23904. "created": {
  23905. "type": "number"
  23906. },
  23907. "metadata": {
  23908. "type": "object"
  23909. },
  23910. "type": {
  23911. "type": "string",
  23912. "enum": [
  23913. "shell.deleted"
  23914. ]
  23915. },
  23916. "location": {
  23917. "$ref": "#/components/schemas/Location.Ref"
  23918. },
  23919. "data": {
  23920. "type": "object",
  23921. "properties": {
  23922. "id": {
  23923. "type": "string",
  23924. "allOf": [
  23925. {
  23926. "pattern": "^sh_"
  23927. }
  23928. ]
  23929. }
  23930. },
  23931. "required": [
  23932. "id"
  23933. ],
  23934. "additionalProperties": false
  23935. }
  23936. },
  23937. "required": [
  23938. "id",
  23939. "created",
  23940. "type",
  23941. "data"
  23942. ],
  23943. "additionalProperties": false
  23944. },
  23945. "Question.Option": {
  23946. "type": "object",
  23947. "properties": {
  23948. "label": {
  23949. "type": "string",
  23950. "description": "Display text (1-5 words, concise)"
  23951. },
  23952. "description": {
  23953. "type": "string",
  23954. "description": "Explanation of choice"
  23955. }
  23956. },
  23957. "required": [
  23958. "label",
  23959. "description"
  23960. ],
  23961. "additionalProperties": false
  23962. },
  23963. "Question.Info": {
  23964. "type": "object",
  23965. "properties": {
  23966. "question": {
  23967. "type": "string",
  23968. "description": "Complete question"
  23969. },
  23970. "header": {
  23971. "type": "string",
  23972. "description": "Very short label (max 30 chars)"
  23973. },
  23974. "options": {
  23975. "type": "array",
  23976. "items": {
  23977. "$ref": "#/components/schemas/Question.Option"
  23978. },
  23979. "description": "Available choices"
  23980. },
  23981. "multiple": {
  23982. "type": "boolean"
  23983. },
  23984. "custom": {
  23985. "type": "boolean"
  23986. }
  23987. },
  23988. "required": [
  23989. "question",
  23990. "header",
  23991. "options"
  23992. ],
  23993. "additionalProperties": false
  23994. },
  23995. "Question.Tool": {
  23996. "type": "object",
  23997. "properties": {
  23998. "messageID": {
  23999. "type": "string"
  24000. },
  24001. "id": {
  24002. "type": "string"
  24003. }
  24004. },
  24005. "required": [
  24006. "messageID",
  24007. "id"
  24008. ],
  24009. "additionalProperties": false
  24010. },
  24011. "question.asked": {
  24012. "type": "object",
  24013. "properties": {
  24014. "id": {
  24015. "type": "string",
  24016. "allOf": [
  24017. {
  24018. "pattern": "^evt_"
  24019. }
  24020. ]
  24021. },
  24022. "created": {
  24023. "type": "number"
  24024. },
  24025. "metadata": {
  24026. "type": "object"
  24027. },
  24028. "type": {
  24029. "type": "string",
  24030. "enum": [
  24031. "question.asked"
  24032. ]
  24033. },
  24034. "location": {
  24035. "$ref": "#/components/schemas/Location.Ref"
  24036. },
  24037. "data": {
  24038. "type": "object",
  24039. "properties": {
  24040. "id": {
  24041. "type": "string",
  24042. "allOf": [
  24043. {
  24044. "pattern": "^que"
  24045. }
  24046. ]
  24047. },
  24048. "sessionID": {
  24049. "type": "string",
  24050. "allOf": [
  24051. {
  24052. "pattern": "^ses"
  24053. }
  24054. ]
  24055. },
  24056. "questions": {
  24057. "type": "array",
  24058. "items": {
  24059. "$ref": "#/components/schemas/Question.Info"
  24060. },
  24061. "description": "Questions to ask"
  24062. },
  24063. "tool": {
  24064. "$ref": "#/components/schemas/Question.Tool"
  24065. }
  24066. },
  24067. "required": [
  24068. "id",
  24069. "sessionID",
  24070. "questions"
  24071. ],
  24072. "additionalProperties": false
  24073. }
  24074. },
  24075. "required": [
  24076. "id",
  24077. "created",
  24078. "type",
  24079. "data"
  24080. ],
  24081. "additionalProperties": false
  24082. },
  24083. "Question.Answer": {
  24084. "type": "array",
  24085. "items": {
  24086. "type": "string"
  24087. }
  24088. },
  24089. "question.replied": {
  24090. "type": "object",
  24091. "properties": {
  24092. "id": {
  24093. "type": "string",
  24094. "allOf": [
  24095. {
  24096. "pattern": "^evt_"
  24097. }
  24098. ]
  24099. },
  24100. "created": {
  24101. "type": "number"
  24102. },
  24103. "metadata": {
  24104. "type": "object"
  24105. },
  24106. "type": {
  24107. "type": "string",
  24108. "enum": [
  24109. "question.replied"
  24110. ]
  24111. },
  24112. "location": {
  24113. "$ref": "#/components/schemas/Location.Ref"
  24114. },
  24115. "data": {
  24116. "type": "object",
  24117. "properties": {
  24118. "sessionID": {
  24119. "type": "string",
  24120. "allOf": [
  24121. {
  24122. "pattern": "^ses"
  24123. }
  24124. ]
  24125. },
  24126. "requestID": {
  24127. "type": "string",
  24128. "allOf": [
  24129. {
  24130. "pattern": "^que"
  24131. }
  24132. ]
  24133. },
  24134. "answers": {
  24135. "type": "array",
  24136. "items": {
  24137. "$ref": "#/components/schemas/Question.Answer"
  24138. }
  24139. }
  24140. },
  24141. "required": [
  24142. "sessionID",
  24143. "requestID",
  24144. "answers"
  24145. ],
  24146. "additionalProperties": false
  24147. }
  24148. },
  24149. "required": [
  24150. "id",
  24151. "created",
  24152. "type",
  24153. "data"
  24154. ],
  24155. "additionalProperties": false
  24156. },
  24157. "question.rejected": {
  24158. "type": "object",
  24159. "properties": {
  24160. "id": {
  24161. "type": "string",
  24162. "allOf": [
  24163. {
  24164. "pattern": "^evt_"
  24165. }
  24166. ]
  24167. },
  24168. "created": {
  24169. "type": "number"
  24170. },
  24171. "metadata": {
  24172. "type": "object"
  24173. },
  24174. "type": {
  24175. "type": "string",
  24176. "enum": [
  24177. "question.rejected"
  24178. ]
  24179. },
  24180. "location": {
  24181. "$ref": "#/components/schemas/Location.Ref"
  24182. },
  24183. "data": {
  24184. "type": "object",
  24185. "properties": {
  24186. "sessionID": {
  24187. "type": "string",
  24188. "allOf": [
  24189. {
  24190. "pattern": "^ses"
  24191. }
  24192. ]
  24193. },
  24194. "requestID": {
  24195. "type": "string",
  24196. "allOf": [
  24197. {
  24198. "pattern": "^que"
  24199. }
  24200. ]
  24201. }
  24202. },
  24203. "required": [
  24204. "sessionID",
  24205. "requestID"
  24206. ],
  24207. "additionalProperties": false
  24208. }
  24209. },
  24210. "required": [
  24211. "id",
  24212. "created",
  24213. "type",
  24214. "data"
  24215. ],
  24216. "additionalProperties": false
  24217. },
  24218. "Form.Metadata1": {
  24219. "type": "object"
  24220. },
  24221. "Form.When1": {
  24222. "type": "object",
  24223. "properties": {
  24224. "key": {
  24225. "type": "string"
  24226. },
  24227. "op": {
  24228. "type": "string",
  24229. "enum": [
  24230. "eq",
  24231. "neq"
  24232. ]
  24233. },
  24234. "value": {
  24235. "anyOf": [
  24236. {
  24237. "type": "string"
  24238. },
  24239. {
  24240. "anyOf": [
  24241. {
  24242. "type": "number"
  24243. },
  24244. {
  24245. "type": "string",
  24246. "enum": [
  24247. "NaN"
  24248. ]
  24249. },
  24250. {
  24251. "type": "string",
  24252. "enum": [
  24253. "Infinity"
  24254. ]
  24255. },
  24256. {
  24257. "type": "string",
  24258. "enum": [
  24259. "-Infinity"
  24260. ]
  24261. }
  24262. ]
  24263. },
  24264. {
  24265. "type": "boolean"
  24266. }
  24267. ]
  24268. }
  24269. },
  24270. "required": [
  24271. "key",
  24272. "op",
  24273. "value"
  24274. ],
  24275. "additionalProperties": false
  24276. },
  24277. "Form.StringField1": {
  24278. "type": "object",
  24279. "properties": {
  24280. "key": {
  24281. "type": "string"
  24282. },
  24283. "title": {
  24284. "type": "string"
  24285. },
  24286. "description": {
  24287. "type": "string"
  24288. },
  24289. "required": {
  24290. "type": "boolean"
  24291. },
  24292. "when": {
  24293. "type": "array",
  24294. "items": {
  24295. "$ref": "#/components/schemas/Form.When1"
  24296. }
  24297. },
  24298. "type": {
  24299. "type": "string",
  24300. "enum": [
  24301. "string"
  24302. ]
  24303. },
  24304. "format": {
  24305. "type": "string",
  24306. "enum": [
  24307. "email",
  24308. "uri",
  24309. "date",
  24310. "date-time"
  24311. ]
  24312. },
  24313. "minLength": {
  24314. "type": "integer",
  24315. "allOf": [
  24316. {
  24317. "minimum": 0
  24318. }
  24319. ]
  24320. },
  24321. "maxLength": {
  24322. "type": "integer",
  24323. "allOf": [
  24324. {
  24325. "minimum": 0
  24326. }
  24327. ]
  24328. },
  24329. "pattern": {
  24330. "type": "string"
  24331. },
  24332. "placeholder": {
  24333. "type": "string"
  24334. },
  24335. "default": {
  24336. "type": "string"
  24337. },
  24338. "options": {
  24339. "type": "array",
  24340. "items": {
  24341. "$ref": "#/components/schemas/Form.Option"
  24342. }
  24343. },
  24344. "custom": {
  24345. "type": "boolean"
  24346. }
  24347. },
  24348. "required": [
  24349. "key",
  24350. "type"
  24351. ],
  24352. "additionalProperties": false
  24353. },
  24354. "Form.NumberField1": {
  24355. "type": "object",
  24356. "properties": {
  24357. "key": {
  24358. "type": "string"
  24359. },
  24360. "title": {
  24361. "type": "string"
  24362. },
  24363. "description": {
  24364. "type": "string"
  24365. },
  24366. "required": {
  24367. "type": "boolean"
  24368. },
  24369. "when": {
  24370. "type": "array",
  24371. "items": {
  24372. "$ref": "#/components/schemas/Form.When1"
  24373. }
  24374. },
  24375. "type": {
  24376. "type": "string",
  24377. "enum": [
  24378. "number"
  24379. ]
  24380. },
  24381. "minimum": {
  24382. "anyOf": [
  24383. {
  24384. "type": "number"
  24385. },
  24386. {
  24387. "type": "string",
  24388. "enum": [
  24389. "NaN"
  24390. ]
  24391. },
  24392. {
  24393. "type": "string",
  24394. "enum": [
  24395. "Infinity"
  24396. ]
  24397. },
  24398. {
  24399. "type": "string",
  24400. "enum": [
  24401. "-Infinity"
  24402. ]
  24403. }
  24404. ]
  24405. },
  24406. "maximum": {
  24407. "anyOf": [
  24408. {
  24409. "type": "number"
  24410. },
  24411. {
  24412. "type": "string",
  24413. "enum": [
  24414. "NaN"
  24415. ]
  24416. },
  24417. {
  24418. "type": "string",
  24419. "enum": [
  24420. "Infinity"
  24421. ]
  24422. },
  24423. {
  24424. "type": "string",
  24425. "enum": [
  24426. "-Infinity"
  24427. ]
  24428. }
  24429. ]
  24430. },
  24431. "default": {
  24432. "anyOf": [
  24433. {
  24434. "type": "number"
  24435. },
  24436. {
  24437. "type": "string",
  24438. "enum": [
  24439. "NaN"
  24440. ]
  24441. },
  24442. {
  24443. "type": "string",
  24444. "enum": [
  24445. "Infinity"
  24446. ]
  24447. },
  24448. {
  24449. "type": "string",
  24450. "enum": [
  24451. "-Infinity"
  24452. ]
  24453. }
  24454. ]
  24455. }
  24456. },
  24457. "required": [
  24458. "key",
  24459. "type"
  24460. ],
  24461. "additionalProperties": false
  24462. },
  24463. "Form.IntegerField1": {
  24464. "type": "object",
  24465. "properties": {
  24466. "key": {
  24467. "type": "string"
  24468. },
  24469. "title": {
  24470. "type": "string"
  24471. },
  24472. "description": {
  24473. "type": "string"
  24474. },
  24475. "required": {
  24476. "type": "boolean"
  24477. },
  24478. "when": {
  24479. "type": "array",
  24480. "items": {
  24481. "$ref": "#/components/schemas/Form.When1"
  24482. }
  24483. },
  24484. "type": {
  24485. "type": "string",
  24486. "enum": [
  24487. "integer"
  24488. ]
  24489. },
  24490. "minimum": {
  24491. "anyOf": [
  24492. {
  24493. "type": "number"
  24494. },
  24495. {
  24496. "type": "string",
  24497. "enum": [
  24498. "NaN"
  24499. ]
  24500. },
  24501. {
  24502. "type": "string",
  24503. "enum": [
  24504. "Infinity"
  24505. ]
  24506. },
  24507. {
  24508. "type": "string",
  24509. "enum": [
  24510. "-Infinity"
  24511. ]
  24512. }
  24513. ]
  24514. },
  24515. "maximum": {
  24516. "anyOf": [
  24517. {
  24518. "type": "number"
  24519. },
  24520. {
  24521. "type": "string",
  24522. "enum": [
  24523. "NaN"
  24524. ]
  24525. },
  24526. {
  24527. "type": "string",
  24528. "enum": [
  24529. "Infinity"
  24530. ]
  24531. },
  24532. {
  24533. "type": "string",
  24534. "enum": [
  24535. "-Infinity"
  24536. ]
  24537. }
  24538. ]
  24539. },
  24540. "default": {
  24541. "anyOf": [
  24542. {
  24543. "type": "number"
  24544. },
  24545. {
  24546. "type": "string",
  24547. "enum": [
  24548. "NaN"
  24549. ]
  24550. },
  24551. {
  24552. "type": "string",
  24553. "enum": [
  24554. "Infinity"
  24555. ]
  24556. },
  24557. {
  24558. "type": "string",
  24559. "enum": [
  24560. "-Infinity"
  24561. ]
  24562. }
  24563. ]
  24564. }
  24565. },
  24566. "required": [
  24567. "key",
  24568. "type"
  24569. ],
  24570. "additionalProperties": false
  24571. },
  24572. "Form.BooleanField1": {
  24573. "type": "object",
  24574. "properties": {
  24575. "key": {
  24576. "type": "string"
  24577. },
  24578. "title": {
  24579. "type": "string"
  24580. },
  24581. "description": {
  24582. "type": "string"
  24583. },
  24584. "required": {
  24585. "type": "boolean"
  24586. },
  24587. "when": {
  24588. "type": "array",
  24589. "items": {
  24590. "$ref": "#/components/schemas/Form.When1"
  24591. }
  24592. },
  24593. "type": {
  24594. "type": "string",
  24595. "enum": [
  24596. "boolean"
  24597. ]
  24598. },
  24599. "default": {
  24600. "type": "boolean"
  24601. }
  24602. },
  24603. "required": [
  24604. "key",
  24605. "type"
  24606. ],
  24607. "additionalProperties": false
  24608. },
  24609. "Form.MultiselectField1": {
  24610. "type": "object",
  24611. "properties": {
  24612. "key": {
  24613. "type": "string"
  24614. },
  24615. "title": {
  24616. "type": "string"
  24617. },
  24618. "description": {
  24619. "type": "string"
  24620. },
  24621. "required": {
  24622. "type": "boolean"
  24623. },
  24624. "when": {
  24625. "type": "array",
  24626. "items": {
  24627. "$ref": "#/components/schemas/Form.When1"
  24628. }
  24629. },
  24630. "type": {
  24631. "type": "string",
  24632. "enum": [
  24633. "multiselect"
  24634. ]
  24635. },
  24636. "options": {
  24637. "type": "array",
  24638. "items": {
  24639. "$ref": "#/components/schemas/Form.Option"
  24640. }
  24641. },
  24642. "minItems": {
  24643. "type": "integer",
  24644. "allOf": [
  24645. {
  24646. "minimum": 0
  24647. }
  24648. ]
  24649. },
  24650. "maxItems": {
  24651. "type": "integer",
  24652. "allOf": [
  24653. {
  24654. "minimum": 0
  24655. }
  24656. ]
  24657. },
  24658. "custom": {
  24659. "type": "boolean"
  24660. },
  24661. "default": {
  24662. "type": "array",
  24663. "items": {
  24664. "type": "string"
  24665. }
  24666. }
  24667. },
  24668. "required": [
  24669. "key",
  24670. "type",
  24671. "options"
  24672. ],
  24673. "additionalProperties": false
  24674. },
  24675. "Form.Field1": {
  24676. "anyOf": [
  24677. {
  24678. "$ref": "#/components/schemas/Form.StringField1"
  24679. },
  24680. {
  24681. "$ref": "#/components/schemas/Form.NumberField1"
  24682. },
  24683. {
  24684. "$ref": "#/components/schemas/Form.IntegerField1"
  24685. },
  24686. {
  24687. "$ref": "#/components/schemas/Form.BooleanField1"
  24688. },
  24689. {
  24690. "$ref": "#/components/schemas/Form.MultiselectField1"
  24691. },
  24692. {
  24693. "$ref": "#/components/schemas/Form.ExternalField"
  24694. }
  24695. ]
  24696. },
  24697. "Form.Fields1": {
  24698. "type": "array",
  24699. "prefixItems": [
  24700. {
  24701. "$ref": "#/components/schemas/Form.Field1"
  24702. }
  24703. ],
  24704. "minItems": 1,
  24705. "items": {
  24706. "$ref": "#/components/schemas/Form.Field1"
  24707. }
  24708. },
  24709. "Form.Info1": {
  24710. "type": "object",
  24711. "properties": {
  24712. "id": {
  24713. "type": "string",
  24714. "allOf": [
  24715. {
  24716. "pattern": "^frm_"
  24717. }
  24718. ]
  24719. },
  24720. "sessionID": {
  24721. "type": "string"
  24722. },
  24723. "title": {
  24724. "type": "string"
  24725. },
  24726. "metadata": {
  24727. "$ref": "#/components/schemas/Form.Metadata1"
  24728. },
  24729. "fields": {
  24730. "$ref": "#/components/schemas/Form.Fields1"
  24731. }
  24732. },
  24733. "required": [
  24734. "id",
  24735. "sessionID",
  24736. "title",
  24737. "fields"
  24738. ],
  24739. "additionalProperties": false
  24740. },
  24741. "form.created": {
  24742. "type": "object",
  24743. "properties": {
  24744. "id": {
  24745. "type": "string",
  24746. "allOf": [
  24747. {
  24748. "pattern": "^evt_"
  24749. }
  24750. ]
  24751. },
  24752. "created": {
  24753. "type": "number"
  24754. },
  24755. "metadata": {
  24756. "type": "object"
  24757. },
  24758. "type": {
  24759. "type": "string",
  24760. "enum": [
  24761. "form.created"
  24762. ]
  24763. },
  24764. "location": {
  24765. "$ref": "#/components/schemas/Location.Ref"
  24766. },
  24767. "data": {
  24768. "type": "object",
  24769. "properties": {
  24770. "form": {
  24771. "$ref": "#/components/schemas/Form.Info1"
  24772. }
  24773. },
  24774. "required": [
  24775. "form"
  24776. ],
  24777. "additionalProperties": false
  24778. }
  24779. },
  24780. "required": [
  24781. "id",
  24782. "created",
  24783. "type",
  24784. "data"
  24785. ],
  24786. "additionalProperties": false
  24787. },
  24788. "Form.Value1": {
  24789. "anyOf": [
  24790. {
  24791. "type": "string"
  24792. },
  24793. {
  24794. "anyOf": [
  24795. {
  24796. "type": "number"
  24797. },
  24798. {
  24799. "type": "string",
  24800. "enum": [
  24801. "NaN"
  24802. ]
  24803. },
  24804. {
  24805. "type": "string",
  24806. "enum": [
  24807. "Infinity"
  24808. ]
  24809. },
  24810. {
  24811. "type": "string",
  24812. "enum": [
  24813. "-Infinity"
  24814. ]
  24815. }
  24816. ]
  24817. },
  24818. {
  24819. "type": "boolean"
  24820. },
  24821. {
  24822. "type": "array",
  24823. "items": {
  24824. "type": "string"
  24825. }
  24826. }
  24827. ]
  24828. },
  24829. "Form.Answer1": {
  24830. "type": "object",
  24831. "additionalProperties": {
  24832. "$ref": "#/components/schemas/Form.Value1"
  24833. }
  24834. },
  24835. "form.replied": {
  24836. "type": "object",
  24837. "properties": {
  24838. "id": {
  24839. "type": "string",
  24840. "allOf": [
  24841. {
  24842. "pattern": "^evt_"
  24843. }
  24844. ]
  24845. },
  24846. "created": {
  24847. "type": "number"
  24848. },
  24849. "metadata": {
  24850. "type": "object"
  24851. },
  24852. "type": {
  24853. "type": "string",
  24854. "enum": [
  24855. "form.replied"
  24856. ]
  24857. },
  24858. "location": {
  24859. "$ref": "#/components/schemas/Location.Ref"
  24860. },
  24861. "data": {
  24862. "type": "object",
  24863. "properties": {
  24864. "id": {
  24865. "type": "string",
  24866. "allOf": [
  24867. {
  24868. "pattern": "^frm_"
  24869. }
  24870. ]
  24871. },
  24872. "sessionID": {
  24873. "type": "string"
  24874. },
  24875. "answer": {
  24876. "$ref": "#/components/schemas/Form.Answer1"
  24877. }
  24878. },
  24879. "required": [
  24880. "id",
  24881. "sessionID",
  24882. "answer"
  24883. ],
  24884. "additionalProperties": false
  24885. }
  24886. },
  24887. "required": [
  24888. "id",
  24889. "created",
  24890. "type",
  24891. "data"
  24892. ],
  24893. "additionalProperties": false
  24894. },
  24895. "form.cancelled": {
  24896. "type": "object",
  24897. "properties": {
  24898. "id": {
  24899. "type": "string",
  24900. "allOf": [
  24901. {
  24902. "pattern": "^evt_"
  24903. }
  24904. ]
  24905. },
  24906. "created": {
  24907. "type": "number"
  24908. },
  24909. "metadata": {
  24910. "type": "object"
  24911. },
  24912. "type": {
  24913. "type": "string",
  24914. "enum": [
  24915. "form.cancelled"
  24916. ]
  24917. },
  24918. "location": {
  24919. "$ref": "#/components/schemas/Location.Ref"
  24920. },
  24921. "data": {
  24922. "type": "object",
  24923. "properties": {
  24924. "id": {
  24925. "type": "string",
  24926. "allOf": [
  24927. {
  24928. "pattern": "^frm_"
  24929. }
  24930. ]
  24931. },
  24932. "sessionID": {
  24933. "type": "string"
  24934. }
  24935. },
  24936. "required": [
  24937. "id",
  24938. "sessionID"
  24939. ],
  24940. "additionalProperties": false
  24941. }
  24942. },
  24943. "required": [
  24944. "id",
  24945. "created",
  24946. "type",
  24947. "data"
  24948. ],
  24949. "additionalProperties": false
  24950. },
  24951. "websearch.updated": {
  24952. "type": "object",
  24953. "properties": {
  24954. "id": {
  24955. "type": "string",
  24956. "allOf": [
  24957. {
  24958. "pattern": "^evt_"
  24959. }
  24960. ]
  24961. },
  24962. "created": {
  24963. "type": "number"
  24964. },
  24965. "metadata": {
  24966. "type": "object"
  24967. },
  24968. "type": {
  24969. "type": "string",
  24970. "enum": [
  24971. "websearch.updated"
  24972. ]
  24973. },
  24974. "location": {
  24975. "$ref": "#/components/schemas/Location.Ref"
  24976. },
  24977. "data": {
  24978. "anyOf": [
  24979. {
  24980. "type": "object"
  24981. },
  24982. {
  24983. "type": "array"
  24984. }
  24985. ]
  24986. }
  24987. },
  24988. "required": [
  24989. "id",
  24990. "created",
  24991. "type",
  24992. "data"
  24993. ],
  24994. "additionalProperties": false
  24995. },
  24996. "SessionStatus": {
  24997. "anyOf": [
  24998. {
  24999. "type": "object",
  25000. "properties": {
  25001. "type": {
  25002. "type": "string",
  25003. "enum": [
  25004. "idle"
  25005. ]
  25006. }
  25007. },
  25008. "required": [
  25009. "type"
  25010. ],
  25011. "additionalProperties": false
  25012. },
  25013. {
  25014. "type": "object",
  25015. "properties": {
  25016. "type": {
  25017. "type": "string",
  25018. "enum": [
  25019. "retry"
  25020. ]
  25021. },
  25022. "attempt": {
  25023. "type": "integer",
  25024. "allOf": [
  25025. {
  25026. "minimum": 0
  25027. }
  25028. ]
  25029. },
  25030. "message": {
  25031. "type": "string"
  25032. },
  25033. "action": {
  25034. "type": "object",
  25035. "properties": {
  25036. "reason": {
  25037. "type": "string"
  25038. },
  25039. "provider": {
  25040. "type": "string"
  25041. },
  25042. "title": {
  25043. "type": "string"
  25044. },
  25045. "message": {
  25046. "type": "string"
  25047. },
  25048. "label": {
  25049. "type": "string"
  25050. },
  25051. "link": {
  25052. "type": "string"
  25053. }
  25054. },
  25055. "required": [
  25056. "reason",
  25057. "provider",
  25058. "title",
  25059. "message",
  25060. "label"
  25061. ],
  25062. "additionalProperties": false
  25063. },
  25064. "next": {
  25065. "type": "integer",
  25066. "allOf": [
  25067. {
  25068. "minimum": 0
  25069. }
  25070. ]
  25071. }
  25072. },
  25073. "required": [
  25074. "type",
  25075. "attempt",
  25076. "message",
  25077. "next"
  25078. ],
  25079. "additionalProperties": false
  25080. },
  25081. {
  25082. "type": "object",
  25083. "properties": {
  25084. "type": {
  25085. "type": "string",
  25086. "enum": [
  25087. "busy"
  25088. ]
  25089. }
  25090. },
  25091. "required": [
  25092. "type"
  25093. ],
  25094. "additionalProperties": false
  25095. }
  25096. ]
  25097. },
  25098. "session.status": {
  25099. "type": "object",
  25100. "properties": {
  25101. "id": {
  25102. "type": "string",
  25103. "allOf": [
  25104. {
  25105. "pattern": "^evt_"
  25106. }
  25107. ]
  25108. },
  25109. "created": {
  25110. "type": "number"
  25111. },
  25112. "metadata": {
  25113. "type": "object"
  25114. },
  25115. "type": {
  25116. "type": "string",
  25117. "enum": [
  25118. "session.status"
  25119. ]
  25120. },
  25121. "location": {
  25122. "$ref": "#/components/schemas/Location.Ref"
  25123. },
  25124. "data": {
  25125. "type": "object",
  25126. "properties": {
  25127. "sessionID": {
  25128. "type": "string",
  25129. "allOf": [
  25130. {
  25131. "pattern": "^ses"
  25132. }
  25133. ]
  25134. },
  25135. "status": {
  25136. "$ref": "#/components/schemas/SessionStatus"
  25137. }
  25138. },
  25139. "required": [
  25140. "sessionID",
  25141. "status"
  25142. ],
  25143. "additionalProperties": false
  25144. }
  25145. },
  25146. "required": [
  25147. "id",
  25148. "created",
  25149. "type",
  25150. "data"
  25151. ],
  25152. "additionalProperties": false
  25153. },
  25154. "session.idle": {
  25155. "type": "object",
  25156. "properties": {
  25157. "id": {
  25158. "type": "string",
  25159. "allOf": [
  25160. {
  25161. "pattern": "^evt_"
  25162. }
  25163. ]
  25164. },
  25165. "created": {
  25166. "type": "number"
  25167. },
  25168. "metadata": {
  25169. "type": "object"
  25170. },
  25171. "type": {
  25172. "type": "string",
  25173. "enum": [
  25174. "session.idle"
  25175. ]
  25176. },
  25177. "location": {
  25178. "$ref": "#/components/schemas/Location.Ref"
  25179. },
  25180. "data": {
  25181. "type": "object",
  25182. "properties": {
  25183. "sessionID": {
  25184. "type": "string",
  25185. "allOf": [
  25186. {
  25187. "pattern": "^ses"
  25188. }
  25189. ]
  25190. }
  25191. },
  25192. "required": [
  25193. "sessionID"
  25194. ],
  25195. "additionalProperties": false
  25196. }
  25197. },
  25198. "required": [
  25199. "id",
  25200. "created",
  25201. "type",
  25202. "data"
  25203. ],
  25204. "additionalProperties": false
  25205. },
  25206. "tui.prompt.append": {
  25207. "type": "object",
  25208. "properties": {
  25209. "id": {
  25210. "type": "string",
  25211. "allOf": [
  25212. {
  25213. "pattern": "^evt_"
  25214. }
  25215. ]
  25216. },
  25217. "created": {
  25218. "type": "number"
  25219. },
  25220. "metadata": {
  25221. "type": "object"
  25222. },
  25223. "type": {
  25224. "type": "string",
  25225. "enum": [
  25226. "tui.prompt.append"
  25227. ]
  25228. },
  25229. "location": {
  25230. "$ref": "#/components/schemas/Location.Ref"
  25231. },
  25232. "data": {
  25233. "type": "object",
  25234. "properties": {
  25235. "text": {
  25236. "type": "string"
  25237. }
  25238. },
  25239. "required": [
  25240. "text"
  25241. ],
  25242. "additionalProperties": false
  25243. }
  25244. },
  25245. "required": [
  25246. "id",
  25247. "created",
  25248. "type",
  25249. "data"
  25250. ],
  25251. "additionalProperties": false
  25252. },
  25253. "tui.command.execute": {
  25254. "type": "object",
  25255. "properties": {
  25256. "id": {
  25257. "type": "string",
  25258. "allOf": [
  25259. {
  25260. "pattern": "^evt_"
  25261. }
  25262. ]
  25263. },
  25264. "created": {
  25265. "type": "number"
  25266. },
  25267. "metadata": {
  25268. "type": "object"
  25269. },
  25270. "type": {
  25271. "type": "string",
  25272. "enum": [
  25273. "tui.command.execute"
  25274. ]
  25275. },
  25276. "location": {
  25277. "$ref": "#/components/schemas/Location.Ref"
  25278. },
  25279. "data": {
  25280. "type": "object",
  25281. "properties": {
  25282. "command": {
  25283. "anyOf": [
  25284. {
  25285. "type": "string",
  25286. "enum": [
  25287. "session.list",
  25288. "session.new",
  25289. "session.share",
  25290. "session.interrupt",
  25291. "session.background",
  25292. "session.compact",
  25293. "session.page.up",
  25294. "session.page.down",
  25295. "session.line.up",
  25296. "session.line.down",
  25297. "session.half.page.up",
  25298. "session.half.page.down",
  25299. "session.first",
  25300. "session.last",
  25301. "prompt.clear",
  25302. "prompt.submit",
  25303. "agent.cycle"
  25304. ]
  25305. },
  25306. {
  25307. "type": "string"
  25308. }
  25309. ]
  25310. }
  25311. },
  25312. "required": [
  25313. "command"
  25314. ],
  25315. "additionalProperties": false
  25316. }
  25317. },
  25318. "required": [
  25319. "id",
  25320. "created",
  25321. "type",
  25322. "data"
  25323. ],
  25324. "additionalProperties": false
  25325. },
  25326. "tui.toast.show": {
  25327. "type": "object",
  25328. "properties": {
  25329. "id": {
  25330. "type": "string",
  25331. "allOf": [
  25332. {
  25333. "pattern": "^evt_"
  25334. }
  25335. ]
  25336. },
  25337. "created": {
  25338. "type": "number"
  25339. },
  25340. "metadata": {
  25341. "type": "object"
  25342. },
  25343. "type": {
  25344. "type": "string",
  25345. "enum": [
  25346. "tui.toast.show"
  25347. ]
  25348. },
  25349. "location": {
  25350. "$ref": "#/components/schemas/Location.Ref"
  25351. },
  25352. "data": {
  25353. "type": "object",
  25354. "properties": {
  25355. "title": {
  25356. "type": "string"
  25357. },
  25358. "message": {
  25359. "type": "string"
  25360. },
  25361. "variant": {
  25362. "type": "string",
  25363. "enum": [
  25364. "info",
  25365. "success",
  25366. "warning",
  25367. "error"
  25368. ]
  25369. },
  25370. "duration": {
  25371. "anyOf": [
  25372. {
  25373. "type": "integer",
  25374. "allOf": [
  25375. {
  25376. "exclusiveMinimum": 0
  25377. }
  25378. ]
  25379. },
  25380. {
  25381. "type": "null"
  25382. }
  25383. ]
  25384. }
  25385. },
  25386. "required": [
  25387. "message",
  25388. "variant"
  25389. ],
  25390. "additionalProperties": false
  25391. }
  25392. },
  25393. "required": [
  25394. "id",
  25395. "created",
  25396. "type",
  25397. "data"
  25398. ],
  25399. "additionalProperties": false
  25400. },
  25401. "tui.session.select": {
  25402. "type": "object",
  25403. "properties": {
  25404. "id": {
  25405. "type": "string",
  25406. "allOf": [
  25407. {
  25408. "pattern": "^evt_"
  25409. }
  25410. ]
  25411. },
  25412. "created": {
  25413. "type": "number"
  25414. },
  25415. "metadata": {
  25416. "type": "object"
  25417. },
  25418. "type": {
  25419. "type": "string",
  25420. "enum": [
  25421. "tui.session.select"
  25422. ]
  25423. },
  25424. "location": {
  25425. "$ref": "#/components/schemas/Location.Ref"
  25426. },
  25427. "data": {
  25428. "type": "object",
  25429. "properties": {
  25430. "sessionID": {
  25431. "type": "string",
  25432. "allOf": [
  25433. {
  25434. "pattern": "^ses",
  25435. "description": "Session ID to navigate to"
  25436. }
  25437. ]
  25438. }
  25439. },
  25440. "required": [
  25441. "sessionID"
  25442. ],
  25443. "additionalProperties": false
  25444. }
  25445. },
  25446. "required": [
  25447. "id",
  25448. "created",
  25449. "type",
  25450. "data"
  25451. ],
  25452. "additionalProperties": false
  25453. },
  25454. "installation.updated": {
  25455. "type": "object",
  25456. "properties": {
  25457. "id": {
  25458. "type": "string",
  25459. "allOf": [
  25460. {
  25461. "pattern": "^evt_"
  25462. }
  25463. ]
  25464. },
  25465. "created": {
  25466. "type": "number"
  25467. },
  25468. "metadata": {
  25469. "type": "object"
  25470. },
  25471. "type": {
  25472. "type": "string",
  25473. "enum": [
  25474. "installation.updated"
  25475. ]
  25476. },
  25477. "location": {
  25478. "$ref": "#/components/schemas/Location.Ref"
  25479. },
  25480. "data": {
  25481. "type": "object",
  25482. "properties": {
  25483. "version": {
  25484. "type": "string"
  25485. }
  25486. },
  25487. "required": [
  25488. "version"
  25489. ],
  25490. "additionalProperties": false
  25491. }
  25492. },
  25493. "required": [
  25494. "id",
  25495. "created",
  25496. "type",
  25497. "data"
  25498. ],
  25499. "additionalProperties": false
  25500. },
  25501. "installation.update-available": {
  25502. "type": "object",
  25503. "properties": {
  25504. "id": {
  25505. "type": "string",
  25506. "allOf": [
  25507. {
  25508. "pattern": "^evt_"
  25509. }
  25510. ]
  25511. },
  25512. "created": {
  25513. "type": "number"
  25514. },
  25515. "metadata": {
  25516. "type": "object"
  25517. },
  25518. "type": {
  25519. "type": "string",
  25520. "enum": [
  25521. "installation.update-available"
  25522. ]
  25523. },
  25524. "location": {
  25525. "$ref": "#/components/schemas/Location.Ref"
  25526. },
  25527. "data": {
  25528. "type": "object",
  25529. "properties": {
  25530. "version": {
  25531. "type": "string"
  25532. }
  25533. },
  25534. "required": [
  25535. "version"
  25536. ],
  25537. "additionalProperties": false
  25538. }
  25539. },
  25540. "required": [
  25541. "id",
  25542. "created",
  25543. "type",
  25544. "data"
  25545. ],
  25546. "additionalProperties": false
  25547. },
  25548. "vcs.branch.updated": {
  25549. "type": "object",
  25550. "properties": {
  25551. "id": {
  25552. "type": "string",
  25553. "allOf": [
  25554. {
  25555. "pattern": "^evt_"
  25556. }
  25557. ]
  25558. },
  25559. "created": {
  25560. "type": "number"
  25561. },
  25562. "metadata": {
  25563. "type": "object"
  25564. },
  25565. "type": {
  25566. "type": "string",
  25567. "enum": [
  25568. "vcs.branch.updated"
  25569. ]
  25570. },
  25571. "location": {
  25572. "$ref": "#/components/schemas/Location.Ref"
  25573. },
  25574. "data": {
  25575. "type": "object",
  25576. "properties": {
  25577. "branch": {
  25578. "type": "string"
  25579. }
  25580. },
  25581. "additionalProperties": false
  25582. }
  25583. },
  25584. "required": [
  25585. "id",
  25586. "created",
  25587. "type",
  25588. "data"
  25589. ],
  25590. "additionalProperties": false
  25591. },
  25592. "mcp.status.changed": {
  25593. "type": "object",
  25594. "properties": {
  25595. "id": {
  25596. "type": "string",
  25597. "allOf": [
  25598. {
  25599. "pattern": "^evt_"
  25600. }
  25601. ]
  25602. },
  25603. "created": {
  25604. "type": "number"
  25605. },
  25606. "metadata": {
  25607. "type": "object"
  25608. },
  25609. "type": {
  25610. "type": "string",
  25611. "enum": [
  25612. "mcp.status.changed"
  25613. ]
  25614. },
  25615. "location": {
  25616. "$ref": "#/components/schemas/Location.Ref"
  25617. },
  25618. "data": {
  25619. "type": "object",
  25620. "properties": {
  25621. "server": {
  25622. "type": "string"
  25623. }
  25624. },
  25625. "required": [
  25626. "server"
  25627. ],
  25628. "additionalProperties": false
  25629. }
  25630. },
  25631. "required": [
  25632. "id",
  25633. "created",
  25634. "type",
  25635. "data"
  25636. ],
  25637. "additionalProperties": false
  25638. },
  25639. "mcp.resources.changed": {
  25640. "type": "object",
  25641. "properties": {
  25642. "id": {
  25643. "type": "string",
  25644. "allOf": [
  25645. {
  25646. "pattern": "^evt_"
  25647. }
  25648. ]
  25649. },
  25650. "created": {
  25651. "type": "number"
  25652. },
  25653. "metadata": {
  25654. "type": "object"
  25655. },
  25656. "type": {
  25657. "type": "string",
  25658. "enum": [
  25659. "mcp.resources.changed"
  25660. ]
  25661. },
  25662. "location": {
  25663. "$ref": "#/components/schemas/Location.Ref"
  25664. },
  25665. "data": {
  25666. "type": "object",
  25667. "properties": {
  25668. "server": {
  25669. "type": "string"
  25670. }
  25671. },
  25672. "required": [
  25673. "server"
  25674. ],
  25675. "additionalProperties": false
  25676. }
  25677. },
  25678. "required": [
  25679. "id",
  25680. "created",
  25681. "type",
  25682. "data"
  25683. ],
  25684. "additionalProperties": false
  25685. },
  25686. "V2Event.server.connected": {
  25687. "type": "object",
  25688. "properties": {
  25689. "id": {
  25690. "type": "string",
  25691. "allOf": [
  25692. {
  25693. "pattern": "^evt_"
  25694. }
  25695. ]
  25696. },
  25697. "metadata": {
  25698. "anyOf": [
  25699. {
  25700. "type": "object"
  25701. },
  25702. {
  25703. "type": "null"
  25704. }
  25705. ]
  25706. },
  25707. "location": {
  25708. "anyOf": [
  25709. {
  25710. "$ref": "#/components/schemas/Location.Ref"
  25711. },
  25712. {
  25713. "type": "null"
  25714. }
  25715. ]
  25716. },
  25717. "type": {
  25718. "type": "string",
  25719. "enum": [
  25720. "server.connected"
  25721. ]
  25722. },
  25723. "data": {
  25724. "anyOf": [
  25725. {
  25726. "type": "object"
  25727. },
  25728. {
  25729. "type": "array"
  25730. }
  25731. ]
  25732. }
  25733. },
  25734. "required": [
  25735. "id",
  25736. "type",
  25737. "data"
  25738. ],
  25739. "additionalProperties": false
  25740. },
  25741. "V2Event": {
  25742. "anyOf": [
  25743. {
  25744. "$ref": "#/components/schemas/models-dev.refreshed"
  25745. },
  25746. {
  25747. "$ref": "#/components/schemas/integration.updated"
  25748. },
  25749. {
  25750. "$ref": "#/components/schemas/integration.connection.updated"
  25751. },
  25752. {
  25753. "$ref": "#/components/schemas/catalog.updated"
  25754. },
  25755. {
  25756. "$ref": "#/components/schemas/agent.updated"
  25757. },
  25758. {
  25759. "$ref": "#/components/schemas/session.created"
  25760. },
  25761. {
  25762. "$ref": "#/components/schemas/session.agent.selected"
  25763. },
  25764. {
  25765. "$ref": "#/components/schemas/session.model.selected"
  25766. },
  25767. {
  25768. "$ref": "#/components/schemas/session.moved"
  25769. },
  25770. {
  25771. "$ref": "#/components/schemas/session.renamed"
  25772. },
  25773. {
  25774. "$ref": "#/components/schemas/session.usage.updated"
  25775. },
  25776. {
  25777. "$ref": "#/components/schemas/session.deleted"
  25778. },
  25779. {
  25780. "$ref": "#/components/schemas/session.forked"
  25781. },
  25782. {
  25783. "$ref": "#/components/schemas/session.input.promoted"
  25784. },
  25785. {
  25786. "$ref": "#/components/schemas/session.input.admitted"
  25787. },
  25788. {
  25789. "$ref": "#/components/schemas/session.execution.started"
  25790. },
  25791. {
  25792. "$ref": "#/components/schemas/session.execution.succeeded"
  25793. },
  25794. {
  25795. "$ref": "#/components/schemas/session.execution.failed"
  25796. },
  25797. {
  25798. "$ref": "#/components/schemas/session.execution.interrupted"
  25799. },
  25800. {
  25801. "$ref": "#/components/schemas/session.instructions.updated"
  25802. },
  25803. {
  25804. "$ref": "#/components/schemas/session.synthetic"
  25805. },
  25806. {
  25807. "$ref": "#/components/schemas/session.skill.activated"
  25808. },
  25809. {
  25810. "$ref": "#/components/schemas/session.shell.started"
  25811. },
  25812. {
  25813. "$ref": "#/components/schemas/session.shell.ended"
  25814. },
  25815. {
  25816. "$ref": "#/components/schemas/session.step.started"
  25817. },
  25818. {
  25819. "$ref": "#/components/schemas/session.step.ended"
  25820. },
  25821. {
  25822. "$ref": "#/components/schemas/session.step.failed"
  25823. },
  25824. {
  25825. "$ref": "#/components/schemas/session.text.started"
  25826. },
  25827. {
  25828. "$ref": "#/components/schemas/session.text.delta"
  25829. },
  25830. {
  25831. "$ref": "#/components/schemas/session.text.ended"
  25832. },
  25833. {
  25834. "$ref": "#/components/schemas/session.reasoning.started"
  25835. },
  25836. {
  25837. "$ref": "#/components/schemas/session.reasoning.delta"
  25838. },
  25839. {
  25840. "$ref": "#/components/schemas/session.reasoning.ended"
  25841. },
  25842. {
  25843. "$ref": "#/components/schemas/session.tool.input.started"
  25844. },
  25845. {
  25846. "$ref": "#/components/schemas/session.tool.input.delta"
  25847. },
  25848. {
  25849. "$ref": "#/components/schemas/session.tool.input.ended"
  25850. },
  25851. {
  25852. "$ref": "#/components/schemas/session.tool.called"
  25853. },
  25854. {
  25855. "$ref": "#/components/schemas/session.tool.progress"
  25856. },
  25857. {
  25858. "$ref": "#/components/schemas/session.tool.success"
  25859. },
  25860. {
  25861. "$ref": "#/components/schemas/session.tool.failed"
  25862. },
  25863. {
  25864. "$ref": "#/components/schemas/session.retry.scheduled"
  25865. },
  25866. {
  25867. "$ref": "#/components/schemas/session.compaction.admitted"
  25868. },
  25869. {
  25870. "$ref": "#/components/schemas/session.compaction.started"
  25871. },
  25872. {
  25873. "$ref": "#/components/schemas/session.compaction.delta"
  25874. },
  25875. {
  25876. "$ref": "#/components/schemas/session.compaction.ended"
  25877. },
  25878. {
  25879. "$ref": "#/components/schemas/session.compaction.failed"
  25880. },
  25881. {
  25882. "$ref": "#/components/schemas/session.revert.staged"
  25883. },
  25884. {
  25885. "$ref": "#/components/schemas/session.revert.cleared"
  25886. },
  25887. {
  25888. "$ref": "#/components/schemas/session.revert.committed"
  25889. },
  25890. {
  25891. "$ref": "#/components/schemas/filesystem.changed"
  25892. },
  25893. {
  25894. "$ref": "#/components/schemas/reference.updated"
  25895. },
  25896. {
  25897. "$ref": "#/components/schemas/permission.asked"
  25898. },
  25899. {
  25900. "$ref": "#/components/schemas/permission.replied"
  25901. },
  25902. {
  25903. "$ref": "#/components/schemas/plugin.added"
  25904. },
  25905. {
  25906. "$ref": "#/components/schemas/plugin.updated"
  25907. },
  25908. {
  25909. "$ref": "#/components/schemas/project.directories.updated"
  25910. },
  25911. {
  25912. "$ref": "#/components/schemas/command.updated"
  25913. },
  25914. {
  25915. "$ref": "#/components/schemas/config.updated"
  25916. },
  25917. {
  25918. "$ref": "#/components/schemas/skill.updated"
  25919. },
  25920. {
  25921. "$ref": "#/components/schemas/pty.created"
  25922. },
  25923. {
  25924. "$ref": "#/components/schemas/pty.updated"
  25925. },
  25926. {
  25927. "$ref": "#/components/schemas/pty.exited"
  25928. },
  25929. {
  25930. "$ref": "#/components/schemas/pty.deleted"
  25931. },
  25932. {
  25933. "$ref": "#/components/schemas/shell.created"
  25934. },
  25935. {
  25936. "$ref": "#/components/schemas/shell.exited"
  25937. },
  25938. {
  25939. "$ref": "#/components/schemas/shell.deleted"
  25940. },
  25941. {
  25942. "$ref": "#/components/schemas/question.asked"
  25943. },
  25944. {
  25945. "$ref": "#/components/schemas/question.replied"
  25946. },
  25947. {
  25948. "$ref": "#/components/schemas/question.rejected"
  25949. },
  25950. {
  25951. "$ref": "#/components/schemas/form.created"
  25952. },
  25953. {
  25954. "$ref": "#/components/schemas/form.replied"
  25955. },
  25956. {
  25957. "$ref": "#/components/schemas/form.cancelled"
  25958. },
  25959. {
  25960. "$ref": "#/components/schemas/websearch.updated"
  25961. },
  25962. {
  25963. "$ref": "#/components/schemas/session.status"
  25964. },
  25965. {
  25966. "$ref": "#/components/schemas/session.idle"
  25967. },
  25968. {
  25969. "$ref": "#/components/schemas/tui.prompt.append"
  25970. },
  25971. {
  25972. "$ref": "#/components/schemas/tui.command.execute"
  25973. },
  25974. {
  25975. "$ref": "#/components/schemas/tui.toast.show"
  25976. },
  25977. {
  25978. "$ref": "#/components/schemas/tui.session.select"
  25979. },
  25980. {
  25981. "$ref": "#/components/schemas/installation.updated"
  25982. },
  25983. {
  25984. "$ref": "#/components/schemas/installation.update-available"
  25985. },
  25986. {
  25987. "$ref": "#/components/schemas/vcs.branch.updated"
  25988. },
  25989. {
  25990. "$ref": "#/components/schemas/mcp.status.changed"
  25991. },
  25992. {
  25993. "$ref": "#/components/schemas/mcp.resources.changed"
  25994. },
  25995. {
  25996. "$ref": "#/components/schemas/V2Event.server.connected"
  25997. }
  25998. ]
  25999. },
  26000. "V2EventJsonString": {
  26001. "type": "string",
  26002. "contentSchema": {
  26003. "$ref": "#/components/schemas/V2Event"
  26004. },
  26005. "contentMediaType": "application/json"
  26006. },
  26007. "PtyNotFoundError": {
  26008. "type": "object",
  26009. "properties": {
  26010. "_tag": {
  26011. "type": "string",
  26012. "enum": [
  26013. "PtyNotFoundError"
  26014. ]
  26015. },
  26016. "ptyID": {
  26017. "type": "string"
  26018. },
  26019. "message": {
  26020. "type": "string"
  26021. }
  26022. },
  26023. "required": [
  26024. "_tag",
  26025. "ptyID",
  26026. "message"
  26027. ],
  26028. "additionalProperties": false
  26029. },
  26030. "PtyTicket.ConnectToken": {
  26031. "type": "object",
  26032. "properties": {
  26033. "ticket": {
  26034. "type": "string"
  26035. },
  26036. "expires_in": {
  26037. "type": "integer",
  26038. "allOf": [
  26039. {
  26040. "exclusiveMinimum": 0
  26041. }
  26042. ]
  26043. }
  26044. },
  26045. "required": [
  26046. "ticket",
  26047. "expires_in"
  26048. ],
  26049. "additionalProperties": false
  26050. },
  26051. "ForbiddenError": {
  26052. "type": "object",
  26053. "properties": {
  26054. "_tag": {
  26055. "type": "string",
  26056. "enum": [
  26057. "ForbiddenError"
  26058. ]
  26059. },
  26060. "message": {
  26061. "type": "string"
  26062. }
  26063. },
  26064. "required": [
  26065. "_tag",
  26066. "message"
  26067. ],
  26068. "additionalProperties": false
  26069. },
  26070. "Shell.Info1": {
  26071. "type": "object",
  26072. "properties": {
  26073. "id": {
  26074. "type": "string",
  26075. "allOf": [
  26076. {
  26077. "pattern": "^sh_"
  26078. }
  26079. ]
  26080. },
  26081. "status": {
  26082. "type": "string",
  26083. "enum": [
  26084. "running",
  26085. "exited",
  26086. "timeout",
  26087. "killed"
  26088. ]
  26089. },
  26090. "command": {
  26091. "type": "string"
  26092. },
  26093. "cwd": {
  26094. "type": "string"
  26095. },
  26096. "shell": {
  26097. "type": "string"
  26098. },
  26099. "file": {
  26100. "type": "string"
  26101. },
  26102. "pid": {
  26103. "type": "integer",
  26104. "allOf": [
  26105. {
  26106. "minimum": 0
  26107. }
  26108. ]
  26109. },
  26110. "exit": {
  26111. "type": "number"
  26112. },
  26113. "metadata": {
  26114. "type": "object"
  26115. },
  26116. "time": {
  26117. "type": "object",
  26118. "properties": {
  26119. "started": {
  26120. "type": "number"
  26121. },
  26122. "completed": {
  26123. "type": "number"
  26124. }
  26125. },
  26126. "required": [
  26127. "started"
  26128. ],
  26129. "additionalProperties": false
  26130. }
  26131. },
  26132. "required": [
  26133. "id",
  26134. "status",
  26135. "command",
  26136. "cwd",
  26137. "shell",
  26138. "file",
  26139. "metadata",
  26140. "time"
  26141. ],
  26142. "additionalProperties": false
  26143. },
  26144. "ShellNotFoundError": {
  26145. "type": "object",
  26146. "properties": {
  26147. "_tag": {
  26148. "type": "string",
  26149. "enum": [
  26150. "ShellNotFoundError"
  26151. ]
  26152. },
  26153. "id": {
  26154. "type": "string"
  26155. },
  26156. "message": {
  26157. "type": "string"
  26158. }
  26159. },
  26160. "required": [
  26161. "_tag",
  26162. "id",
  26163. "message"
  26164. ],
  26165. "additionalProperties": false
  26166. },
  26167. "Question.Request": {
  26168. "type": "object",
  26169. "properties": {
  26170. "id": {
  26171. "type": "string",
  26172. "allOf": [
  26173. {
  26174. "pattern": "^que"
  26175. }
  26176. ]
  26177. },
  26178. "sessionID": {
  26179. "type": "string",
  26180. "allOf": [
  26181. {
  26182. "pattern": "^ses"
  26183. }
  26184. ]
  26185. },
  26186. "questions": {
  26187. "type": "array",
  26188. "items": {
  26189. "$ref": "#/components/schemas/Question.Info"
  26190. },
  26191. "description": "Questions to ask"
  26192. },
  26193. "tool": {
  26194. "$ref": "#/components/schemas/Question.Tool"
  26195. }
  26196. },
  26197. "required": [
  26198. "id",
  26199. "sessionID",
  26200. "questions"
  26201. ],
  26202. "additionalProperties": false
  26203. },
  26204. "Question.Reply": {
  26205. "type": "object",
  26206. "properties": {
  26207. "answers": {
  26208. "type": "array",
  26209. "items": {
  26210. "$ref": "#/components/schemas/Question.Answer"
  26211. },
  26212. "description": "User answers in order of questions (each answer is an array of selected labels)"
  26213. }
  26214. },
  26215. "required": [
  26216. "answers"
  26217. ],
  26218. "additionalProperties": false
  26219. },
  26220. "QuestionNotFoundError": {
  26221. "type": "object",
  26222. "properties": {
  26223. "_tag": {
  26224. "type": "string",
  26225. "enum": [
  26226. "QuestionNotFoundError"
  26227. ]
  26228. },
  26229. "requestID": {
  26230. "type": "string"
  26231. },
  26232. "message": {
  26233. "type": "string"
  26234. }
  26235. },
  26236. "required": [
  26237. "_tag",
  26238. "requestID",
  26239. "message"
  26240. ],
  26241. "additionalProperties": false
  26242. },
  26243. "Reference.LocalSource": {
  26244. "type": "object",
  26245. "properties": {
  26246. "type": {
  26247. "type": "string",
  26248. "enum": [
  26249. "local"
  26250. ]
  26251. },
  26252. "path": {
  26253. "type": "string"
  26254. },
  26255. "description": {
  26256. "type": "string"
  26257. },
  26258. "hidden": {
  26259. "type": "boolean"
  26260. }
  26261. },
  26262. "required": [
  26263. "type",
  26264. "path"
  26265. ],
  26266. "additionalProperties": false
  26267. },
  26268. "Reference.GitSource": {
  26269. "type": "object",
  26270. "properties": {
  26271. "type": {
  26272. "type": "string",
  26273. "enum": [
  26274. "git"
  26275. ]
  26276. },
  26277. "repository": {
  26278. "type": "string"
  26279. },
  26280. "branch": {
  26281. "type": "string"
  26282. },
  26283. "description": {
  26284. "type": "string"
  26285. },
  26286. "hidden": {
  26287. "type": "boolean"
  26288. }
  26289. },
  26290. "required": [
  26291. "type",
  26292. "repository"
  26293. ],
  26294. "additionalProperties": false
  26295. },
  26296. "Reference.Source": {
  26297. "anyOf": [
  26298. {
  26299. "$ref": "#/components/schemas/Reference.LocalSource"
  26300. },
  26301. {
  26302. "$ref": "#/components/schemas/Reference.GitSource"
  26303. }
  26304. ]
  26305. },
  26306. "Reference.Info": {
  26307. "type": "object",
  26308. "properties": {
  26309. "name": {
  26310. "type": "string"
  26311. },
  26312. "path": {
  26313. "type": "string"
  26314. },
  26315. "description": {
  26316. "type": "string"
  26317. },
  26318. "hidden": {
  26319. "type": "boolean"
  26320. },
  26321. "source": {
  26322. "$ref": "#/components/schemas/Reference.Source"
  26323. }
  26324. },
  26325. "required": [
  26326. "name",
  26327. "path",
  26328. "source"
  26329. ],
  26330. "additionalProperties": false
  26331. },
  26332. "ProjectCopy.Copy": {
  26333. "type": "object",
  26334. "properties": {
  26335. "directory": {
  26336. "type": "string"
  26337. }
  26338. },
  26339. "required": [
  26340. "directory"
  26341. ],
  26342. "additionalProperties": false
  26343. },
  26344. "ProjectCopyError": {
  26345. "type": "object",
  26346. "properties": {
  26347. "name": {
  26348. "type": "string",
  26349. "enum": [
  26350. "ProjectCopyError"
  26351. ]
  26352. },
  26353. "data": {
  26354. "type": "object",
  26355. "properties": {
  26356. "message": {
  26357. "type": "string"
  26358. },
  26359. "forceRequired": {
  26360. "anyOf": [
  26361. {
  26362. "type": "boolean"
  26363. },
  26364. {
  26365. "type": "null"
  26366. }
  26367. ]
  26368. }
  26369. },
  26370. "required": [
  26371. "message"
  26372. ],
  26373. "additionalProperties": false
  26374. }
  26375. },
  26376. "required": [
  26377. "name",
  26378. "data"
  26379. ],
  26380. "additionalProperties": false
  26381. },
  26382. "Vcs.Branch": {
  26383. "type": "object",
  26384. "properties": {
  26385. "current": {
  26386. "type": "string"
  26387. },
  26388. "default": {
  26389. "type": "string"
  26390. }
  26391. },
  26392. "additionalProperties": false
  26393. },
  26394. "Vcs.Info": {
  26395. "type": "object",
  26396. "properties": {
  26397. "branch": {
  26398. "$ref": "#/components/schemas/Vcs.Branch"
  26399. }
  26400. },
  26401. "required": [
  26402. "branch"
  26403. ],
  26404. "additionalProperties": false
  26405. },
  26406. "Vcs.FileStatus": {
  26407. "type": "object",
  26408. "properties": {
  26409. "file": {
  26410. "type": "string"
  26411. },
  26412. "additions": {
  26413. "type": "integer",
  26414. "allOf": [
  26415. {
  26416. "minimum": 0
  26417. }
  26418. ]
  26419. },
  26420. "deletions": {
  26421. "type": "integer",
  26422. "allOf": [
  26423. {
  26424. "minimum": 0
  26425. }
  26426. ]
  26427. },
  26428. "status": {
  26429. "type": "string",
  26430. "enum": [
  26431. "added",
  26432. "deleted",
  26433. "modified"
  26434. ]
  26435. }
  26436. },
  26437. "required": [
  26438. "file",
  26439. "additions",
  26440. "deletions",
  26441. "status"
  26442. ],
  26443. "additionalProperties": false
  26444. },
  26445. "Vcs.Mode": {
  26446. "type": "string",
  26447. "enum": [
  26448. "working",
  26449. "branch"
  26450. ]
  26451. },
  26452. "WebSearch.Provider": {
  26453. "type": "object",
  26454. "properties": {
  26455. "id": {
  26456. "type": "string"
  26457. },
  26458. "name": {
  26459. "type": "string"
  26460. }
  26461. },
  26462. "required": [
  26463. "id",
  26464. "name"
  26465. ],
  26466. "additionalProperties": false
  26467. },
  26468. "WebSearch.Result": {
  26469. "type": "object",
  26470. "properties": {
  26471. "url": {
  26472. "type": "string"
  26473. },
  26474. "title": {
  26475. "type": "string"
  26476. },
  26477. "content": {
  26478. "type": "string"
  26479. },
  26480. "time": {
  26481. "type": "object",
  26482. "properties": {
  26483. "published": {
  26484. "type": "number"
  26485. }
  26486. },
  26487. "additionalProperties": false
  26488. }
  26489. },
  26490. "required": [
  26491. "url",
  26492. "time"
  26493. ],
  26494. "additionalProperties": false
  26495. },
  26496. "WebSearch.Response": {
  26497. "type": "object",
  26498. "properties": {
  26499. "providerID": {
  26500. "type": "string"
  26501. },
  26502. "results": {
  26503. "type": "array",
  26504. "items": {
  26505. "$ref": "#/components/schemas/WebSearch.Result"
  26506. }
  26507. }
  26508. },
  26509. "required": [
  26510. "providerID",
  26511. "results"
  26512. ],
  26513. "additionalProperties": false
  26514. },
  26515. "Config.ModelSelection": {
  26516. "anyOf": [
  26517. {
  26518. "type": "string",
  26519. "allOf": [
  26520. {
  26521. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  26522. }
  26523. ]
  26524. },
  26525. {
  26526. "type": "object",
  26527. "properties": {
  26528. "providerID": {
  26529. "type": "string",
  26530. "allOf": [
  26531. {
  26532. "pattern": "^[^/#]+$"
  26533. }
  26534. ]
  26535. },
  26536. "model": {
  26537. "type": "string",
  26538. "allOf": [
  26539. {
  26540. "pattern": "^[^#]+$"
  26541. }
  26542. ]
  26543. },
  26544. "variant": {
  26545. "anyOf": [
  26546. {
  26547. "type": "string",
  26548. "allOf": [
  26549. {
  26550. "pattern": "^[^#]+$"
  26551. }
  26552. ]
  26553. },
  26554. {
  26555. "type": "null"
  26556. }
  26557. ]
  26558. }
  26559. },
  26560. "required": [
  26561. "providerID",
  26562. "model"
  26563. ],
  26564. "additionalProperties": false
  26565. }
  26566. ]
  26567. },
  26568. "Config.Provider.Request": {
  26569. "type": "object",
  26570. "properties": {
  26571. "headers": {
  26572. "anyOf": [
  26573. {
  26574. "type": "object",
  26575. "additionalProperties": {
  26576. "type": "string"
  26577. }
  26578. },
  26579. {
  26580. "type": "null"
  26581. }
  26582. ]
  26583. },
  26584. "body": {
  26585. "anyOf": [
  26586. {
  26587. "type": "object"
  26588. },
  26589. {
  26590. "type": "null"
  26591. }
  26592. ]
  26593. }
  26594. },
  26595. "additionalProperties": false
  26596. },
  26597. "Config.Agent": {
  26598. "type": "object",
  26599. "properties": {
  26600. "model": {
  26601. "anyOf": [
  26602. {
  26603. "$ref": "#/components/schemas/Config.ModelSelection"
  26604. },
  26605. {
  26606. "type": "null"
  26607. }
  26608. ]
  26609. },
  26610. "request": {
  26611. "anyOf": [
  26612. {
  26613. "$ref": "#/components/schemas/Config.Provider.Request"
  26614. },
  26615. {
  26616. "type": "null"
  26617. }
  26618. ]
  26619. },
  26620. "system": {
  26621. "anyOf": [
  26622. {
  26623. "type": "string"
  26624. },
  26625. {
  26626. "type": "null"
  26627. }
  26628. ]
  26629. },
  26630. "description": {
  26631. "anyOf": [
  26632. {
  26633. "type": "string"
  26634. },
  26635. {
  26636. "type": "null"
  26637. }
  26638. ]
  26639. },
  26640. "mode": {
  26641. "anyOf": [
  26642. {
  26643. "type": "string",
  26644. "enum": [
  26645. "subagent",
  26646. "primary",
  26647. "all"
  26648. ]
  26649. },
  26650. {
  26651. "type": "null"
  26652. }
  26653. ]
  26654. },
  26655. "hidden": {
  26656. "anyOf": [
  26657. {
  26658. "type": "boolean"
  26659. },
  26660. {
  26661. "type": "null"
  26662. }
  26663. ]
  26664. },
  26665. "color": {
  26666. "anyOf": [
  26667. {
  26668. "type": "string",
  26669. "allOf": [
  26670. {
  26671. "pattern": "^#[0-9a-fA-F]{6}$"
  26672. }
  26673. ]
  26674. },
  26675. {
  26676. "type": "null"
  26677. }
  26678. ]
  26679. },
  26680. "steps": {
  26681. "anyOf": [
  26682. {
  26683. "type": "integer",
  26684. "allOf": [
  26685. {
  26686. "exclusiveMinimum": 0
  26687. }
  26688. ]
  26689. },
  26690. {
  26691. "type": "null"
  26692. }
  26693. ]
  26694. },
  26695. "disabled": {
  26696. "anyOf": [
  26697. {
  26698. "type": "boolean"
  26699. },
  26700. {
  26701. "type": "null"
  26702. }
  26703. ]
  26704. },
  26705. "permissions": {
  26706. "anyOf": [
  26707. {
  26708. "$ref": "#/components/schemas/Permission.Ruleset"
  26709. },
  26710. {
  26711. "type": "null"
  26712. }
  26713. ]
  26714. }
  26715. },
  26716. "additionalProperties": false
  26717. },
  26718. "Config.Watcher": {
  26719. "type": "object",
  26720. "properties": {
  26721. "ignore": {
  26722. "anyOf": [
  26723. {
  26724. "type": "array",
  26725. "items": {
  26726. "type": "string"
  26727. }
  26728. },
  26729. {
  26730. "type": "null"
  26731. }
  26732. ]
  26733. }
  26734. },
  26735. "additionalProperties": false
  26736. },
  26737. "Config.Formatter.Entry": {
  26738. "type": "object",
  26739. "properties": {
  26740. "disabled": {
  26741. "anyOf": [
  26742. {
  26743. "type": "boolean"
  26744. },
  26745. {
  26746. "type": "null"
  26747. }
  26748. ]
  26749. },
  26750. "command": {
  26751. "anyOf": [
  26752. {
  26753. "type": "array",
  26754. "items": {
  26755. "type": "string"
  26756. }
  26757. },
  26758. {
  26759. "type": "null"
  26760. }
  26761. ]
  26762. },
  26763. "environment": {
  26764. "anyOf": [
  26765. {
  26766. "type": "object",
  26767. "additionalProperties": {
  26768. "type": "string"
  26769. }
  26770. },
  26771. {
  26772. "type": "null"
  26773. }
  26774. ]
  26775. },
  26776. "extensions": {
  26777. "anyOf": [
  26778. {
  26779. "type": "array",
  26780. "items": {
  26781. "type": "string"
  26782. }
  26783. },
  26784. {
  26785. "type": "null"
  26786. }
  26787. ]
  26788. }
  26789. },
  26790. "additionalProperties": false
  26791. },
  26792. "Config.LSP.Server": {
  26793. "type": "object",
  26794. "properties": {
  26795. "command": {
  26796. "type": "array",
  26797. "items": {
  26798. "type": "string"
  26799. }
  26800. },
  26801. "extensions": {
  26802. "anyOf": [
  26803. {
  26804. "type": "array",
  26805. "items": {
  26806. "type": "string"
  26807. }
  26808. },
  26809. {
  26810. "type": "null"
  26811. }
  26812. ]
  26813. },
  26814. "disabled": {
  26815. "anyOf": [
  26816. {
  26817. "type": "boolean"
  26818. },
  26819. {
  26820. "type": "null"
  26821. }
  26822. ]
  26823. },
  26824. "env": {
  26825. "anyOf": [
  26826. {
  26827. "type": "object",
  26828. "additionalProperties": {
  26829. "type": "string"
  26830. }
  26831. },
  26832. {
  26833. "type": "null"
  26834. }
  26835. ]
  26836. },
  26837. "initialization": {
  26838. "anyOf": [
  26839. {
  26840. "type": "object"
  26841. },
  26842. {
  26843. "type": "null"
  26844. }
  26845. ]
  26846. }
  26847. },
  26848. "required": [
  26849. "command"
  26850. ],
  26851. "additionalProperties": false
  26852. },
  26853. "Config.Media.Image": {
  26854. "type": "object",
  26855. "properties": {
  26856. "auto_resize": {
  26857. "anyOf": [
  26858. {
  26859. "type": "boolean"
  26860. },
  26861. {
  26862. "type": "null"
  26863. }
  26864. ]
  26865. },
  26866. "max_width": {
  26867. "anyOf": [
  26868. {
  26869. "type": "integer",
  26870. "allOf": [
  26871. {
  26872. "exclusiveMinimum": 0
  26873. }
  26874. ]
  26875. },
  26876. {
  26877. "type": "null"
  26878. }
  26879. ]
  26880. },
  26881. "max_height": {
  26882. "anyOf": [
  26883. {
  26884. "type": "integer",
  26885. "allOf": [
  26886. {
  26887. "exclusiveMinimum": 0
  26888. }
  26889. ]
  26890. },
  26891. {
  26892. "type": "null"
  26893. }
  26894. ]
  26895. },
  26896. "max_base64_bytes": {
  26897. "anyOf": [
  26898. {
  26899. "type": "integer",
  26900. "allOf": [
  26901. {
  26902. "exclusiveMinimum": 0
  26903. }
  26904. ]
  26905. },
  26906. {
  26907. "type": "null"
  26908. }
  26909. ]
  26910. }
  26911. },
  26912. "additionalProperties": false
  26913. },
  26914. "Config.Media": {
  26915. "type": "object",
  26916. "properties": {
  26917. "image": {
  26918. "anyOf": [
  26919. {
  26920. "$ref": "#/components/schemas/Config.Media.Image"
  26921. },
  26922. {
  26923. "type": "null"
  26924. }
  26925. ]
  26926. }
  26927. },
  26928. "additionalProperties": false
  26929. },
  26930. "Config.ToolOutput": {
  26931. "type": "object",
  26932. "properties": {
  26933. "max_lines": {
  26934. "anyOf": [
  26935. {
  26936. "type": "integer",
  26937. "allOf": [
  26938. {
  26939. "exclusiveMinimum": 0
  26940. }
  26941. ]
  26942. },
  26943. {
  26944. "type": "null"
  26945. }
  26946. ]
  26947. },
  26948. "max_bytes": {
  26949. "anyOf": [
  26950. {
  26951. "type": "integer",
  26952. "allOf": [
  26953. {
  26954. "exclusiveMinimum": 0
  26955. }
  26956. ]
  26957. },
  26958. {
  26959. "type": "null"
  26960. }
  26961. ]
  26962. }
  26963. },
  26964. "additionalProperties": false
  26965. },
  26966. "Config.MCP": {
  26967. "type": "object",
  26968. "properties": {
  26969. "timeout": {
  26970. "anyOf": [
  26971. {
  26972. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  26973. },
  26974. {
  26975. "type": "null"
  26976. }
  26977. ]
  26978. },
  26979. "servers": {
  26980. "anyOf": [
  26981. {
  26982. "type": "object",
  26983. "additionalProperties": {
  26984. "anyOf": [
  26985. {
  26986. "$ref": "#/components/schemas/Mcp.LocalConfig"
  26987. },
  26988. {
  26989. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  26990. }
  26991. ]
  26992. }
  26993. },
  26994. {
  26995. "type": "null"
  26996. }
  26997. ]
  26998. }
  26999. },
  27000. "additionalProperties": false
  27001. },
  27002. "Config.Compaction.Keep": {
  27003. "type": "object",
  27004. "properties": {
  27005. "tokens": {
  27006. "anyOf": [
  27007. {
  27008. "type": "integer",
  27009. "allOf": [
  27010. {
  27011. "minimum": 0
  27012. }
  27013. ]
  27014. },
  27015. {
  27016. "type": "null"
  27017. }
  27018. ]
  27019. }
  27020. },
  27021. "additionalProperties": false
  27022. },
  27023. "Config.Compaction": {
  27024. "type": "object",
  27025. "properties": {
  27026. "auto": {
  27027. "anyOf": [
  27028. {
  27029. "type": "boolean"
  27030. },
  27031. {
  27032. "type": "null"
  27033. }
  27034. ]
  27035. },
  27036. "keep": {
  27037. "anyOf": [
  27038. {
  27039. "$ref": "#/components/schemas/Config.Compaction.Keep"
  27040. },
  27041. {
  27042. "type": "null"
  27043. }
  27044. ]
  27045. },
  27046. "buffer": {
  27047. "anyOf": [
  27048. {
  27049. "type": "integer",
  27050. "allOf": [
  27051. {
  27052. "minimum": 0
  27053. }
  27054. ]
  27055. },
  27056. {
  27057. "type": "null"
  27058. }
  27059. ]
  27060. }
  27061. },
  27062. "additionalProperties": false
  27063. },
  27064. "Config.Command": {
  27065. "type": "object",
  27066. "properties": {
  27067. "template": {
  27068. "type": "string"
  27069. },
  27070. "description": {
  27071. "anyOf": [
  27072. {
  27073. "type": "string"
  27074. },
  27075. {
  27076. "type": "null"
  27077. }
  27078. ]
  27079. },
  27080. "agent": {
  27081. "anyOf": [
  27082. {
  27083. "type": "string"
  27084. },
  27085. {
  27086. "type": "null"
  27087. }
  27088. ]
  27089. },
  27090. "model": {
  27091. "anyOf": [
  27092. {
  27093. "$ref": "#/components/schemas/Config.ModelSelection"
  27094. },
  27095. {
  27096. "type": "null"
  27097. }
  27098. ]
  27099. },
  27100. "subtask": {
  27101. "anyOf": [
  27102. {
  27103. "type": "boolean"
  27104. },
  27105. {
  27106. "type": "null"
  27107. }
  27108. ]
  27109. }
  27110. },
  27111. "required": [
  27112. "template"
  27113. ],
  27114. "additionalProperties": false
  27115. },
  27116. "Config.Reference.Git": {
  27117. "type": "object",
  27118. "properties": {
  27119. "repository": {
  27120. "type": "string"
  27121. },
  27122. "branch": {
  27123. "anyOf": [
  27124. {
  27125. "type": "string"
  27126. },
  27127. {
  27128. "type": "null"
  27129. }
  27130. ]
  27131. },
  27132. "description": {
  27133. "anyOf": [
  27134. {
  27135. "type": "string"
  27136. },
  27137. {
  27138. "type": "null"
  27139. }
  27140. ]
  27141. },
  27142. "hidden": {
  27143. "anyOf": [
  27144. {
  27145. "type": "boolean"
  27146. },
  27147. {
  27148. "type": "null"
  27149. }
  27150. ]
  27151. }
  27152. },
  27153. "required": [
  27154. "repository"
  27155. ],
  27156. "additionalProperties": false
  27157. },
  27158. "Config.Reference.Local": {
  27159. "type": "object",
  27160. "properties": {
  27161. "path": {
  27162. "type": "string"
  27163. },
  27164. "description": {
  27165. "anyOf": [
  27166. {
  27167. "type": "string"
  27168. },
  27169. {
  27170. "type": "null"
  27171. }
  27172. ]
  27173. },
  27174. "hidden": {
  27175. "anyOf": [
  27176. {
  27177. "type": "boolean"
  27178. },
  27179. {
  27180. "type": "null"
  27181. }
  27182. ]
  27183. }
  27184. },
  27185. "required": [
  27186. "path"
  27187. ],
  27188. "additionalProperties": false
  27189. },
  27190. "ConfigWebSearch.Info": {
  27191. "type": "object",
  27192. "properties": {
  27193. "provider": {
  27194. "type": "string"
  27195. }
  27196. },
  27197. "required": [
  27198. "provider"
  27199. ],
  27200. "additionalProperties": false
  27201. },
  27202. "Config.Plugin.Entry": {
  27203. "type": "object",
  27204. "properties": {
  27205. "package": {
  27206. "type": "string"
  27207. },
  27208. "options": {
  27209. "anyOf": [
  27210. {
  27211. "type": "object"
  27212. },
  27213. {
  27214. "type": "null"
  27215. }
  27216. ]
  27217. }
  27218. },
  27219. "required": [
  27220. "package"
  27221. ],
  27222. "additionalProperties": false
  27223. },
  27224. "Config.Warming": {
  27225. "type": "object",
  27226. "properties": {
  27227. "prompt": {
  27228. "anyOf": [
  27229. {
  27230. "type": "string"
  27231. },
  27232. {
  27233. "type": "null"
  27234. }
  27235. ],
  27236. "description": "Prompt sent for keep-alive requests"
  27237. },
  27238. "interval": {
  27239. "anyOf": [
  27240. {
  27241. "type": "string"
  27242. },
  27243. {
  27244. "type": "null"
  27245. }
  27246. ],
  27247. "description": "Idle time between keep-alive requests (default: \"4 minutes\")"
  27248. },
  27249. "duration": {
  27250. "anyOf": [
  27251. {
  27252. "type": "string"
  27253. },
  27254. {
  27255. "type": "null"
  27256. }
  27257. ],
  27258. "description": "Time after the last active request to keep a session warm (default: \"30 minutes\")"
  27259. }
  27260. },
  27261. "additionalProperties": false
  27262. },
  27263. "Config.Model.Cost.Cache": {
  27264. "type": "object",
  27265. "properties": {
  27266. "read": {
  27267. "anyOf": [
  27268. {
  27269. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  27270. },
  27271. {
  27272. "type": "null"
  27273. }
  27274. ]
  27275. },
  27276. "write": {
  27277. "anyOf": [
  27278. {
  27279. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  27280. },
  27281. {
  27282. "type": "null"
  27283. }
  27284. ]
  27285. }
  27286. },
  27287. "additionalProperties": false
  27288. },
  27289. "Config.Model.Cost": {
  27290. "type": "object",
  27291. "properties": {
  27292. "tier": {
  27293. "anyOf": [
  27294. {
  27295. "type": "object",
  27296. "properties": {
  27297. "type": {
  27298. "type": "string",
  27299. "enum": [
  27300. "context"
  27301. ]
  27302. },
  27303. "size": {
  27304. "type": "integer"
  27305. }
  27306. },
  27307. "required": [
  27308. "type",
  27309. "size"
  27310. ],
  27311. "additionalProperties": false
  27312. },
  27313. {
  27314. "type": "null"
  27315. }
  27316. ]
  27317. },
  27318. "input": {
  27319. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  27320. },
  27321. "output": {
  27322. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  27323. },
  27324. "cache": {
  27325. "anyOf": [
  27326. {
  27327. "$ref": "#/components/schemas/Config.Model.Cost.Cache"
  27328. },
  27329. {
  27330. "type": "null"
  27331. }
  27332. ]
  27333. }
  27334. },
  27335. "required": [
  27336. "input",
  27337. "output"
  27338. ],
  27339. "additionalProperties": false
  27340. },
  27341. "Config.Model.Limit": {
  27342. "type": "object",
  27343. "properties": {
  27344. "context": {
  27345. "anyOf": [
  27346. {
  27347. "type": "integer"
  27348. },
  27349. {
  27350. "type": "null"
  27351. }
  27352. ]
  27353. },
  27354. "input": {
  27355. "anyOf": [
  27356. {
  27357. "type": "integer"
  27358. },
  27359. {
  27360. "type": "null"
  27361. }
  27362. ]
  27363. },
  27364. "output": {
  27365. "anyOf": [
  27366. {
  27367. "type": "integer"
  27368. },
  27369. {
  27370. "type": "null"
  27371. }
  27372. ]
  27373. }
  27374. },
  27375. "additionalProperties": false
  27376. },
  27377. "Config.Model": {
  27378. "type": "object",
  27379. "properties": {
  27380. "modelID": {
  27381. "anyOf": [
  27382. {
  27383. "type": "string"
  27384. },
  27385. {
  27386. "type": "null"
  27387. }
  27388. ]
  27389. },
  27390. "family": {
  27391. "anyOf": [
  27392. {
  27393. "type": "string"
  27394. },
  27395. {
  27396. "type": "null"
  27397. }
  27398. ]
  27399. },
  27400. "name": {
  27401. "anyOf": [
  27402. {
  27403. "type": "string"
  27404. },
  27405. {
  27406. "type": "null"
  27407. }
  27408. ]
  27409. },
  27410. "compatibility": {
  27411. "anyOf": [
  27412. {
  27413. "$ref": "#/components/schemas/Model.Compatibility"
  27414. },
  27415. {
  27416. "type": "null"
  27417. }
  27418. ]
  27419. },
  27420. "package": {
  27421. "anyOf": [
  27422. {
  27423. "type": "string"
  27424. },
  27425. {
  27426. "type": "null"
  27427. }
  27428. ]
  27429. },
  27430. "settings": {
  27431. "anyOf": [
  27432. {
  27433. "type": "object"
  27434. },
  27435. {
  27436. "type": "null"
  27437. }
  27438. ]
  27439. },
  27440. "headers": {
  27441. "anyOf": [
  27442. {
  27443. "type": "object",
  27444. "additionalProperties": {
  27445. "type": "string"
  27446. }
  27447. },
  27448. {
  27449. "type": "null"
  27450. }
  27451. ]
  27452. },
  27453. "body": {
  27454. "anyOf": [
  27455. {
  27456. "type": "object"
  27457. },
  27458. {
  27459. "type": "null"
  27460. }
  27461. ]
  27462. },
  27463. "capabilities": {
  27464. "anyOf": [
  27465. {
  27466. "$ref": "#/components/schemas/Model.Capabilities"
  27467. },
  27468. {
  27469. "type": "null"
  27470. }
  27471. ]
  27472. },
  27473. "variants": {
  27474. "anyOf": [
  27475. {
  27476. "type": "array",
  27477. "items": {
  27478. "type": "object",
  27479. "properties": {
  27480. "id": {
  27481. "type": "string"
  27482. },
  27483. "settings": {
  27484. "anyOf": [
  27485. {
  27486. "type": "object"
  27487. },
  27488. {
  27489. "type": "null"
  27490. }
  27491. ]
  27492. },
  27493. "headers": {
  27494. "anyOf": [
  27495. {
  27496. "type": "object",
  27497. "additionalProperties": {
  27498. "type": "string"
  27499. }
  27500. },
  27501. {
  27502. "type": "null"
  27503. }
  27504. ]
  27505. },
  27506. "body": {
  27507. "anyOf": [
  27508. {
  27509. "type": "object"
  27510. },
  27511. {
  27512. "type": "null"
  27513. }
  27514. ]
  27515. }
  27516. },
  27517. "required": [
  27518. "id"
  27519. ],
  27520. "additionalProperties": false
  27521. }
  27522. },
  27523. {
  27524. "type": "null"
  27525. }
  27526. ]
  27527. },
  27528. "cost": {
  27529. "anyOf": [
  27530. {
  27531. "anyOf": [
  27532. {
  27533. "$ref": "#/components/schemas/Config.Model.Cost"
  27534. },
  27535. {
  27536. "type": "array",
  27537. "items": {
  27538. "$ref": "#/components/schemas/Config.Model.Cost"
  27539. }
  27540. }
  27541. ]
  27542. },
  27543. {
  27544. "type": "null"
  27545. }
  27546. ]
  27547. },
  27548. "disabled": {
  27549. "anyOf": [
  27550. {
  27551. "type": "boolean"
  27552. },
  27553. {
  27554. "type": "null"
  27555. }
  27556. ]
  27557. },
  27558. "limit": {
  27559. "anyOf": [
  27560. {
  27561. "$ref": "#/components/schemas/Config.Model.Limit"
  27562. },
  27563. {
  27564. "type": "null"
  27565. }
  27566. ]
  27567. }
  27568. },
  27569. "additionalProperties": false
  27570. },
  27571. "Config.Provider": {
  27572. "type": "object",
  27573. "properties": {
  27574. "name": {
  27575. "anyOf": [
  27576. {
  27577. "type": "string"
  27578. },
  27579. {
  27580. "type": "null"
  27581. }
  27582. ]
  27583. },
  27584. "env": {
  27585. "anyOf": [
  27586. {
  27587. "type": "array",
  27588. "items": {
  27589. "type": "string"
  27590. }
  27591. },
  27592. {
  27593. "type": "null"
  27594. }
  27595. ]
  27596. },
  27597. "package": {
  27598. "anyOf": [
  27599. {
  27600. "type": "string"
  27601. },
  27602. {
  27603. "type": "null"
  27604. }
  27605. ]
  27606. },
  27607. "settings": {
  27608. "anyOf": [
  27609. {
  27610. "type": "object"
  27611. },
  27612. {
  27613. "type": "null"
  27614. }
  27615. ]
  27616. },
  27617. "headers": {
  27618. "anyOf": [
  27619. {
  27620. "type": "object",
  27621. "additionalProperties": {
  27622. "type": "string"
  27623. }
  27624. },
  27625. {
  27626. "type": "null"
  27627. }
  27628. ]
  27629. },
  27630. "body": {
  27631. "anyOf": [
  27632. {
  27633. "type": "object"
  27634. },
  27635. {
  27636. "type": "null"
  27637. }
  27638. ]
  27639. },
  27640. "models": {
  27641. "anyOf": [
  27642. {
  27643. "type": "object",
  27644. "additionalProperties": {
  27645. "$ref": "#/components/schemas/Config.Model"
  27646. }
  27647. },
  27648. {
  27649. "type": "null"
  27650. }
  27651. ]
  27652. }
  27653. },
  27654. "additionalProperties": false
  27655. },
  27656. "ConfigExperimental.Info": {
  27657. "type": "object",
  27658. "properties": {
  27659. "subagent_depth": {
  27660. "anyOf": [
  27661. {
  27662. "type": "integer",
  27663. "allOf": [
  27664. {
  27665. "minimum": 0
  27666. }
  27667. ]
  27668. },
  27669. {
  27670. "type": "null"
  27671. }
  27672. ],
  27673. "description": "Maximum subagent nesting depth. Defaults to 1."
  27674. },
  27675. "policies": {
  27676. "anyOf": [
  27677. {
  27678. "type": "array",
  27679. "items": {
  27680. "type": "object",
  27681. "properties": {
  27682. "action": {
  27683. "type": "string",
  27684. "enum": [
  27685. "provider.use"
  27686. ]
  27687. },
  27688. "resource": {
  27689. "type": "string"
  27690. },
  27691. "effect": {
  27692. "type": "string",
  27693. "enum": [
  27694. "allow",
  27695. "deny"
  27696. ]
  27697. }
  27698. },
  27699. "required": [
  27700. "action",
  27701. "resource",
  27702. "effect"
  27703. ],
  27704. "additionalProperties": false
  27705. }
  27706. },
  27707. {
  27708. "type": "null"
  27709. }
  27710. ],
  27711. "description": "Ordered policies controlling access to configured resources"
  27712. }
  27713. },
  27714. "additionalProperties": false
  27715. },
  27716. "Config.Info": {
  27717. "type": "object",
  27718. "properties": {
  27719. "$schema": {
  27720. "anyOf": [
  27721. {
  27722. "type": "string"
  27723. },
  27724. {
  27725. "type": "null"
  27726. }
  27727. ],
  27728. "description": "JSON schema reference for configuration validation"
  27729. },
  27730. "shell": {
  27731. "anyOf": [
  27732. {
  27733. "type": "string"
  27734. },
  27735. {
  27736. "type": "null"
  27737. }
  27738. ],
  27739. "description": "Default shell to use for terminal and shell tool execution"
  27740. },
  27741. "model": {
  27742. "anyOf": [
  27743. {
  27744. "$ref": "#/components/schemas/Config.ModelSelection"
  27745. },
  27746. {
  27747. "type": "null"
  27748. }
  27749. ],
  27750. "description": "Default model to use when no session or agent model is selected"
  27751. },
  27752. "default_agent": {
  27753. "anyOf": [
  27754. {
  27755. "type": "string"
  27756. },
  27757. {
  27758. "type": "null"
  27759. }
  27760. ],
  27761. "description": "Default primary agent to use when no session agent is selected"
  27762. },
  27763. "autoupdate": {
  27764. "anyOf": [
  27765. {
  27766. "anyOf": [
  27767. {
  27768. "type": "boolean"
  27769. },
  27770. {
  27771. "type": "string",
  27772. "enum": [
  27773. "notify"
  27774. ]
  27775. }
  27776. ]
  27777. },
  27778. {
  27779. "type": "null"
  27780. }
  27781. ],
  27782. "description": "Automatically update or notify when a new version is available"
  27783. },
  27784. "share": {
  27785. "anyOf": [
  27786. {
  27787. "type": "string",
  27788. "enum": [
  27789. "manual",
  27790. "auto",
  27791. "disabled"
  27792. ]
  27793. },
  27794. {
  27795. "type": "null"
  27796. }
  27797. ],
  27798. "description": "Control whether sessions may be shared manually, automatically, or not at all"
  27799. },
  27800. "enterprise": {
  27801. "anyOf": [
  27802. {
  27803. "type": "object",
  27804. "properties": {
  27805. "url": {
  27806. "anyOf": [
  27807. {
  27808. "type": "string"
  27809. },
  27810. {
  27811. "type": "null"
  27812. }
  27813. ]
  27814. }
  27815. },
  27816. "additionalProperties": false
  27817. },
  27818. {
  27819. "type": "null"
  27820. }
  27821. ],
  27822. "description": "Enterprise sharing service configuration"
  27823. },
  27824. "username": {
  27825. "anyOf": [
  27826. {
  27827. "type": "string"
  27828. },
  27829. {
  27830. "type": "null"
  27831. }
  27832. ],
  27833. "description": "Username displayed in conversations and used for telemetry identity"
  27834. },
  27835. "permissions": {
  27836. "anyOf": [
  27837. {
  27838. "$ref": "#/components/schemas/Permission.Ruleset"
  27839. },
  27840. {
  27841. "type": "null"
  27842. }
  27843. ],
  27844. "description": "Ordered tool permission rules applied to agent tool use"
  27845. },
  27846. "agents": {
  27847. "anyOf": [
  27848. {
  27849. "type": "object",
  27850. "additionalProperties": {
  27851. "$ref": "#/components/schemas/Config.Agent"
  27852. }
  27853. },
  27854. {
  27855. "type": "null"
  27856. }
  27857. ],
  27858. "description": "Named built-in agent overrides and custom agent definitions"
  27859. },
  27860. "snapshots": {
  27861. "anyOf": [
  27862. {
  27863. "type": "boolean"
  27864. },
  27865. {
  27866. "type": "null"
  27867. }
  27868. ],
  27869. "description": "Enable snapshots used for undo and revert behavior"
  27870. },
  27871. "watcher": {
  27872. "anyOf": [
  27873. {
  27874. "$ref": "#/components/schemas/Config.Watcher"
  27875. },
  27876. {
  27877. "type": "null"
  27878. }
  27879. ],
  27880. "description": "Filesystem watcher configuration"
  27881. },
  27882. "formatter": {
  27883. "anyOf": [
  27884. {
  27885. "anyOf": [
  27886. {
  27887. "type": "boolean"
  27888. },
  27889. {
  27890. "type": "object",
  27891. "additionalProperties": {
  27892. "$ref": "#/components/schemas/Config.Formatter.Entry"
  27893. }
  27894. }
  27895. ]
  27896. },
  27897. {
  27898. "type": "null"
  27899. }
  27900. ],
  27901. "description": "Enable built-in formatters or configure formatter overrides"
  27902. },
  27903. "lsp": {
  27904. "anyOf": [
  27905. {
  27906. "anyOf": [
  27907. {
  27908. "type": "boolean"
  27909. },
  27910. {
  27911. "type": "object",
  27912. "additionalProperties": {
  27913. "anyOf": [
  27914. {
  27915. "type": "object",
  27916. "properties": {
  27917. "disabled": {
  27918. "type": "boolean",
  27919. "enum": [
  27920. true
  27921. ]
  27922. }
  27923. },
  27924. "required": [
  27925. "disabled"
  27926. ],
  27927. "additionalProperties": false
  27928. },
  27929. {
  27930. "$ref": "#/components/schemas/Config.LSP.Server"
  27931. }
  27932. ]
  27933. }
  27934. }
  27935. ]
  27936. },
  27937. {
  27938. "type": "null"
  27939. }
  27940. ],
  27941. "description": "Enable built-in language servers or configure server overrides"
  27942. },
  27943. "media": {
  27944. "anyOf": [
  27945. {
  27946. "$ref": "#/components/schemas/Config.Media"
  27947. },
  27948. {
  27949. "type": "null"
  27950. }
  27951. ],
  27952. "description": "Media processing configuration"
  27953. },
  27954. "tool_output": {
  27955. "anyOf": [
  27956. {
  27957. "$ref": "#/components/schemas/Config.ToolOutput"
  27958. },
  27959. {
  27960. "type": "null"
  27961. }
  27962. ],
  27963. "description": "Tool output truncation thresholds"
  27964. },
  27965. "mcp": {
  27966. "anyOf": [
  27967. {
  27968. "$ref": "#/components/schemas/Config.MCP"
  27969. },
  27970. {
  27971. "type": "null"
  27972. }
  27973. ],
  27974. "description": "MCP server configuration"
  27975. },
  27976. "compaction": {
  27977. "anyOf": [
  27978. {
  27979. "$ref": "#/components/schemas/Config.Compaction"
  27980. },
  27981. {
  27982. "type": "null"
  27983. }
  27984. ],
  27985. "description": "Conversation compaction behavior"
  27986. },
  27987. "skills": {
  27988. "anyOf": [
  27989. {
  27990. "type": "array",
  27991. "items": {
  27992. "type": "string"
  27993. }
  27994. },
  27995. {
  27996. "type": "null"
  27997. }
  27998. ],
  27999. "description": "Additional paths or URLs to discover skills from"
  28000. },
  28001. "commands": {
  28002. "anyOf": [
  28003. {
  28004. "type": "object",
  28005. "additionalProperties": {
  28006. "$ref": "#/components/schemas/Config.Command"
  28007. }
  28008. },
  28009. {
  28010. "type": "null"
  28011. }
  28012. ],
  28013. "description": "Named slash command definitions"
  28014. },
  28015. "instructions": {
  28016. "anyOf": [
  28017. {
  28018. "type": "array",
  28019. "items": {
  28020. "type": "string"
  28021. }
  28022. },
  28023. {
  28024. "type": "null"
  28025. }
  28026. ],
  28027. "description": "Additional paths or URLs supplying ambient instructions"
  28028. },
  28029. "references": {
  28030. "anyOf": [
  28031. {
  28032. "type": "object",
  28033. "additionalProperties": {
  28034. "anyOf": [
  28035. {
  28036. "type": "string"
  28037. },
  28038. {
  28039. "$ref": "#/components/schemas/Config.Reference.Git"
  28040. },
  28041. {
  28042. "$ref": "#/components/schemas/Config.Reference.Local"
  28043. }
  28044. ]
  28045. }
  28046. },
  28047. {
  28048. "type": "null"
  28049. }
  28050. ],
  28051. "description": "Named local directories or Git repositories available as external context"
  28052. },
  28053. "websearch": {
  28054. "anyOf": [
  28055. {
  28056. "$ref": "#/components/schemas/ConfigWebSearch.Info"
  28057. },
  28058. {
  28059. "type": "null"
  28060. }
  28061. ],
  28062. "description": "Web search provider selection"
  28063. },
  28064. "plugins": {
  28065. "anyOf": [
  28066. {
  28067. "type": "array",
  28068. "items": {
  28069. "anyOf": [
  28070. {
  28071. "type": "string"
  28072. },
  28073. {
  28074. "$ref": "#/components/schemas/Config.Plugin.Entry"
  28075. }
  28076. ]
  28077. }
  28078. },
  28079. {
  28080. "type": "null"
  28081. }
  28082. ],
  28083. "description": "Ordered plugin enablement directives and external package declarations"
  28084. },
  28085. "warming": {
  28086. "anyOf": [
  28087. {
  28088. "anyOf": [
  28089. {
  28090. "type": "boolean"
  28091. },
  28092. {
  28093. "$ref": "#/components/schemas/Config.Warming"
  28094. }
  28095. ]
  28096. },
  28097. {
  28098. "type": "null"
  28099. }
  28100. ],
  28101. "description": "Keep recently active sessions warm with transient model requests (default: false)"
  28102. },
  28103. "providers": {
  28104. "anyOf": [
  28105. {
  28106. "type": "object",
  28107. "additionalProperties": {
  28108. "$ref": "#/components/schemas/Config.Provider"
  28109. }
  28110. },
  28111. {
  28112. "type": "null"
  28113. }
  28114. ]
  28115. },
  28116. "experimental": {
  28117. "anyOf": [
  28118. {
  28119. "$ref": "#/components/schemas/ConfigExperimental.Info"
  28120. },
  28121. {
  28122. "type": "null"
  28123. }
  28124. ]
  28125. }
  28126. },
  28127. "additionalProperties": false
  28128. },
  28129. "Config.Document": {
  28130. "type": "object",
  28131. "properties": {
  28132. "type": {
  28133. "type": "string",
  28134. "enum": [
  28135. "document"
  28136. ]
  28137. },
  28138. "path": {
  28139. "anyOf": [
  28140. {
  28141. "type": "string"
  28142. },
  28143. {
  28144. "type": "null"
  28145. }
  28146. ]
  28147. },
  28148. "info": {
  28149. "$ref": "#/components/schemas/Config.Info"
  28150. }
  28151. },
  28152. "required": [
  28153. "type",
  28154. "info"
  28155. ],
  28156. "additionalProperties": false
  28157. },
  28158. "Config.Directory": {
  28159. "type": "object",
  28160. "properties": {
  28161. "type": {
  28162. "type": "string",
  28163. "enum": [
  28164. "directory"
  28165. ]
  28166. },
  28167. "path": {
  28168. "type": "string"
  28169. }
  28170. },
  28171. "required": [
  28172. "type",
  28173. "path"
  28174. ],
  28175. "additionalProperties": false
  28176. },
  28177. "Config.File": {
  28178. "type": "object",
  28179. "properties": {
  28180. "type": {
  28181. "type": "string",
  28182. "enum": [
  28183. "file"
  28184. ]
  28185. },
  28186. "path": {
  28187. "type": "string"
  28188. }
  28189. },
  28190. "required": [
  28191. "type",
  28192. "path"
  28193. ],
  28194. "additionalProperties": false
  28195. },
  28196. "Config.AgentsDirectory": {
  28197. "type": "object",
  28198. "properties": {
  28199. "type": {
  28200. "type": "string",
  28201. "enum": [
  28202. "agents"
  28203. ]
  28204. },
  28205. "path": {
  28206. "type": "string"
  28207. }
  28208. },
  28209. "required": [
  28210. "type",
  28211. "path"
  28212. ],
  28213. "additionalProperties": false
  28214. },
  28215. "Config.ClaudeDirectory": {
  28216. "type": "object",
  28217. "properties": {
  28218. "type": {
  28219. "type": "string",
  28220. "enum": [
  28221. "claude"
  28222. ]
  28223. },
  28224. "path": {
  28225. "type": "string"
  28226. }
  28227. },
  28228. "required": [
  28229. "type",
  28230. "path"
  28231. ],
  28232. "additionalProperties": false
  28233. },
  28234. "Config.Entry": {
  28235. "anyOf": [
  28236. {
  28237. "$ref": "#/components/schemas/Config.Document"
  28238. },
  28239. {
  28240. "$ref": "#/components/schemas/Config.Directory"
  28241. },
  28242. {
  28243. "$ref": "#/components/schemas/Config.File"
  28244. },
  28245. {
  28246. "$ref": "#/components/schemas/Config.AgentsDirectory"
  28247. },
  28248. {
  28249. "$ref": "#/components/schemas/Config.ClaudeDirectory"
  28250. }
  28251. ]
  28252. }
  28253. },
  28254. "securitySchemes": {}
  28255. },
  28256. "security": [],
  28257. "tags": [
  28258. {
  28259. "name": "health"
  28260. },
  28261. {
  28262. "name": "server"
  28263. },
  28264. {
  28265. "name": "location"
  28266. },
  28267. {
  28268. "name": "agent"
  28269. },
  28270. {
  28271. "name": "plugin",
  28272. "description": "Experimental plugin routes."
  28273. },
  28274. {
  28275. "name": "session",
  28276. "description": "Experimental session routes."
  28277. },
  28278. {
  28279. "name": "session",
  28280. "description": "Experimental message routes."
  28281. },
  28282. {
  28283. "name": "model",
  28284. "description": "Experimental model routes."
  28285. },
  28286. {
  28287. "name": "generate",
  28288. "description": "Experimental one-shot generation routes."
  28289. },
  28290. {
  28291. "name": "provider",
  28292. "description": "Experimental provider routes."
  28293. },
  28294. {
  28295. "name": "integration",
  28296. "description": "Integration discovery and authentication routes."
  28297. },
  28298. {
  28299. "name": "mcp",
  28300. "description": "MCP server and resource routes."
  28301. },
  28302. {
  28303. "name": "credential"
  28304. },
  28305. {
  28306. "name": "project",
  28307. "description": "Location-scoped project routes."
  28308. },
  28309. {
  28310. "name": "form",
  28311. "description": "Session form routes."
  28312. },
  28313. {
  28314. "name": "permission",
  28315. "description": "Experimental permission routes."
  28316. },
  28317. {
  28318. "name": "filesystem",
  28319. "description": "Experimental location-scoped filesystem routes."
  28320. },
  28321. {
  28322. "name": "command",
  28323. "description": "Experimental command routes."
  28324. },
  28325. {
  28326. "name": "skill",
  28327. "description": "Experimental skill routes."
  28328. },
  28329. {
  28330. "name": "event",
  28331. "description": "Experimental event stream routes."
  28332. },
  28333. {
  28334. "name": "pty",
  28335. "description": "Experimental location-scoped PTY routes."
  28336. },
  28337. {
  28338. "name": "shell",
  28339. "description": "Experimental location-scoped shell command routes."
  28340. },
  28341. {
  28342. "name": "question",
  28343. "description": "Experimental session question routes."
  28344. },
  28345. {
  28346. "name": "reference",
  28347. "description": "Location-scoped project references."
  28348. },
  28349. {
  28350. "name": "projectCopy",
  28351. "description": "Project copy management routes."
  28352. },
  28353. {
  28354. "name": "vcs",
  28355. "description": "Location-scoped version control routes."
  28356. },
  28357. {
  28358. "name": "debug"
  28359. },
  28360. {
  28361. "name": "migration"
  28362. },
  28363. {
  28364. "name": "websearch",
  28365. "description": "Location-scoped web search routes."
  28366. },
  28367. {
  28368. "name": "config",
  28369. "description": "Location-scoped configuration routes."
  28370. }
  28371. ]
  28372. }