openapi.json 706 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350
  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.Server": {
  20691. "type": "object",
  20692. "properties": {
  20693. "name": {
  20694. "type": "string"
  20695. },
  20696. "status": {
  20697. "anyOf": [
  20698. {
  20699. "$ref": "#/components/schemas/Mcp.Status.Connected"
  20700. },
  20701. {
  20702. "$ref": "#/components/schemas/Mcp.Status.Pending"
  20703. },
  20704. {
  20705. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  20706. },
  20707. {
  20708. "$ref": "#/components/schemas/Mcp.Status.Failed"
  20709. },
  20710. {
  20711. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  20712. }
  20713. ]
  20714. },
  20715. "integrationID": {
  20716. "type": "string"
  20717. }
  20718. },
  20719. "required": [
  20720. "name",
  20721. "status"
  20722. ],
  20723. "additionalProperties": false
  20724. },
  20725. "Mcp.TimeoutConfig": {
  20726. "type": "object",
  20727. "properties": {
  20728. "startup": {
  20729. "anyOf": [
  20730. {
  20731. "type": "integer",
  20732. "allOf": [
  20733. {
  20734. "exclusiveMinimum": 0
  20735. }
  20736. ]
  20737. },
  20738. {
  20739. "type": "null"
  20740. }
  20741. ],
  20742. "description": "Maximum time in milliseconds to establish and initialize the MCP server."
  20743. },
  20744. "catalog": {
  20745. "anyOf": [
  20746. {
  20747. "type": "integer",
  20748. "allOf": [
  20749. {
  20750. "exclusiveMinimum": 0
  20751. }
  20752. ]
  20753. },
  20754. {
  20755. "type": "null"
  20756. }
  20757. ],
  20758. "description": "Maximum time in milliseconds to wait for MCP discovery requests such as tools/list and prompts/list."
  20759. },
  20760. "execution": {
  20761. "anyOf": [
  20762. {
  20763. "type": "integer",
  20764. "allOf": [
  20765. {
  20766. "exclusiveMinimum": 0
  20767. }
  20768. ]
  20769. },
  20770. {
  20771. "type": "null"
  20772. }
  20773. ],
  20774. "description": "Maximum time in milliseconds to wait for MCP tool and prompt execution."
  20775. }
  20776. },
  20777. "additionalProperties": false
  20778. },
  20779. "Mcp.LocalConfig": {
  20780. "type": "object",
  20781. "properties": {
  20782. "type": {
  20783. "type": "string",
  20784. "enum": [
  20785. "local"
  20786. ]
  20787. },
  20788. "command": {
  20789. "type": "array",
  20790. "items": {
  20791. "type": "string"
  20792. }
  20793. },
  20794. "cwd": {
  20795. "anyOf": [
  20796. {
  20797. "type": "string"
  20798. },
  20799. {
  20800. "type": "null"
  20801. }
  20802. ],
  20803. "description": "Working directory for the MCP server process. Relative paths resolve from the workspace directory."
  20804. },
  20805. "environment": {
  20806. "anyOf": [
  20807. {
  20808. "type": "object",
  20809. "additionalProperties": {
  20810. "type": "string"
  20811. }
  20812. },
  20813. {
  20814. "type": "null"
  20815. }
  20816. ]
  20817. },
  20818. "disabled": {
  20819. "anyOf": [
  20820. {
  20821. "type": "boolean"
  20822. },
  20823. {
  20824. "type": "null"
  20825. }
  20826. ]
  20827. },
  20828. "codemode": {
  20829. "anyOf": [
  20830. {
  20831. "type": "boolean"
  20832. },
  20833. {
  20834. "type": "null"
  20835. }
  20836. ],
  20837. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20838. },
  20839. "timeout": {
  20840. "anyOf": [
  20841. {
  20842. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20843. },
  20844. {
  20845. "type": "null"
  20846. }
  20847. ]
  20848. }
  20849. },
  20850. "required": [
  20851. "type",
  20852. "command"
  20853. ],
  20854. "additionalProperties": false
  20855. },
  20856. "Mcp.OAuthConfig": {
  20857. "type": "object",
  20858. "properties": {
  20859. "client_id": {
  20860. "anyOf": [
  20861. {
  20862. "type": "string"
  20863. },
  20864. {
  20865. "type": "null"
  20866. }
  20867. ]
  20868. },
  20869. "client_secret": {
  20870. "anyOf": [
  20871. {
  20872. "type": "string"
  20873. },
  20874. {
  20875. "type": "null"
  20876. }
  20877. ]
  20878. },
  20879. "scope": {
  20880. "anyOf": [
  20881. {
  20882. "type": "string"
  20883. },
  20884. {
  20885. "type": "null"
  20886. }
  20887. ]
  20888. },
  20889. "callback_port": {
  20890. "anyOf": [
  20891. {
  20892. "type": "integer",
  20893. "allOf": [
  20894. {
  20895. "minimum": 1,
  20896. "maximum": 65535
  20897. }
  20898. ]
  20899. },
  20900. {
  20901. "type": "null"
  20902. }
  20903. ]
  20904. },
  20905. "redirect_uri": {
  20906. "anyOf": [
  20907. {
  20908. "type": "string"
  20909. },
  20910. {
  20911. "type": "null"
  20912. }
  20913. ]
  20914. }
  20915. },
  20916. "additionalProperties": false
  20917. },
  20918. "Mcp.RemoteConfig": {
  20919. "type": "object",
  20920. "properties": {
  20921. "type": {
  20922. "type": "string",
  20923. "enum": [
  20924. "remote"
  20925. ]
  20926. },
  20927. "url": {
  20928. "type": "string"
  20929. },
  20930. "headers": {
  20931. "anyOf": [
  20932. {
  20933. "type": "object",
  20934. "additionalProperties": {
  20935. "type": "string"
  20936. }
  20937. },
  20938. {
  20939. "type": "null"
  20940. }
  20941. ]
  20942. },
  20943. "oauth": {
  20944. "anyOf": [
  20945. {
  20946. "anyOf": [
  20947. {
  20948. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  20949. },
  20950. {
  20951. "type": "boolean",
  20952. "enum": [
  20953. false
  20954. ]
  20955. }
  20956. ]
  20957. },
  20958. {
  20959. "type": "null"
  20960. }
  20961. ]
  20962. },
  20963. "disabled": {
  20964. "anyOf": [
  20965. {
  20966. "type": "boolean"
  20967. },
  20968. {
  20969. "type": "null"
  20970. }
  20971. ]
  20972. },
  20973. "codemode": {
  20974. "anyOf": [
  20975. {
  20976. "type": "boolean"
  20977. },
  20978. {
  20979. "type": "null"
  20980. }
  20981. ],
  20982. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20983. },
  20984. "timeout": {
  20985. "anyOf": [
  20986. {
  20987. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20988. },
  20989. {
  20990. "type": "null"
  20991. }
  20992. ]
  20993. }
  20994. },
  20995. "required": [
  20996. "type",
  20997. "url"
  20998. ],
  20999. "additionalProperties": false
  21000. },
  21001. "McpServerNotFoundError": {
  21002. "type": "object",
  21003. "properties": {
  21004. "_tag": {
  21005. "type": "string",
  21006. "enum": [
  21007. "McpServerNotFoundError"
  21008. ]
  21009. },
  21010. "server": {
  21011. "type": "string"
  21012. },
  21013. "message": {
  21014. "type": "string"
  21015. }
  21016. },
  21017. "required": [
  21018. "_tag",
  21019. "server",
  21020. "message"
  21021. ],
  21022. "additionalProperties": false
  21023. },
  21024. "Mcp.Resource": {
  21025. "type": "object",
  21026. "properties": {
  21027. "server": {
  21028. "type": "string"
  21029. },
  21030. "name": {
  21031. "type": "string"
  21032. },
  21033. "uri": {
  21034. "type": "string"
  21035. },
  21036. "description": {
  21037. "type": "string"
  21038. },
  21039. "mimeType": {
  21040. "type": "string"
  21041. }
  21042. },
  21043. "required": [
  21044. "server",
  21045. "name",
  21046. "uri"
  21047. ],
  21048. "additionalProperties": false
  21049. },
  21050. "Mcp.ResourceTemplate": {
  21051. "type": "object",
  21052. "properties": {
  21053. "server": {
  21054. "type": "string"
  21055. },
  21056. "name": {
  21057. "type": "string"
  21058. },
  21059. "uriTemplate": {
  21060. "type": "string"
  21061. },
  21062. "description": {
  21063. "type": "string"
  21064. },
  21065. "mimeType": {
  21066. "type": "string"
  21067. }
  21068. },
  21069. "required": [
  21070. "server",
  21071. "name",
  21072. "uriTemplate"
  21073. ],
  21074. "additionalProperties": false
  21075. },
  21076. "Mcp.ResourceCatalog": {
  21077. "type": "object",
  21078. "properties": {
  21079. "resources": {
  21080. "type": "array",
  21081. "items": {
  21082. "$ref": "#/components/schemas/Mcp.Resource"
  21083. }
  21084. },
  21085. "templates": {
  21086. "type": "array",
  21087. "items": {
  21088. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  21089. }
  21090. }
  21091. },
  21092. "required": [
  21093. "resources",
  21094. "templates"
  21095. ],
  21096. "additionalProperties": false
  21097. },
  21098. "Project.Vcs": {
  21099. "type": "string",
  21100. "enum": [
  21101. "git",
  21102. "hg"
  21103. ]
  21104. },
  21105. "Project.Icon": {
  21106. "type": "object",
  21107. "properties": {
  21108. "url": {
  21109. "type": "string"
  21110. },
  21111. "override": {
  21112. "type": "string"
  21113. },
  21114. "color": {
  21115. "type": "string"
  21116. }
  21117. },
  21118. "additionalProperties": false
  21119. },
  21120. "Project.Commands": {
  21121. "type": "object",
  21122. "properties": {
  21123. "start": {
  21124. "type": "string",
  21125. "description": "Startup script to run when creating a new workspace (worktree)"
  21126. }
  21127. },
  21128. "additionalProperties": false
  21129. },
  21130. "Project.Time": {
  21131. "type": "object",
  21132. "properties": {
  21133. "created": {
  21134. "type": "integer",
  21135. "allOf": [
  21136. {
  21137. "minimum": 0
  21138. }
  21139. ]
  21140. },
  21141. "updated": {
  21142. "type": "integer",
  21143. "allOf": [
  21144. {
  21145. "minimum": 0
  21146. }
  21147. ]
  21148. },
  21149. "initialized": {
  21150. "type": "integer",
  21151. "allOf": [
  21152. {
  21153. "minimum": 0
  21154. }
  21155. ]
  21156. }
  21157. },
  21158. "required": [
  21159. "created",
  21160. "updated"
  21161. ],
  21162. "additionalProperties": false
  21163. },
  21164. "Project": {
  21165. "type": "object",
  21166. "properties": {
  21167. "id": {
  21168. "type": "string"
  21169. },
  21170. "canonical": {
  21171. "type": "string"
  21172. },
  21173. "vcs": {
  21174. "$ref": "#/components/schemas/Project.Vcs"
  21175. },
  21176. "name": {
  21177. "type": "string"
  21178. },
  21179. "icon": {
  21180. "$ref": "#/components/schemas/Project.Icon"
  21181. },
  21182. "commands": {
  21183. "$ref": "#/components/schemas/Project.Commands"
  21184. },
  21185. "time": {
  21186. "$ref": "#/components/schemas/Project.Time"
  21187. },
  21188. "sandboxes": {
  21189. "type": "array",
  21190. "items": {
  21191. "type": "string"
  21192. }
  21193. }
  21194. },
  21195. "required": [
  21196. "id",
  21197. "canonical",
  21198. "time",
  21199. "sandboxes"
  21200. ],
  21201. "additionalProperties": false
  21202. },
  21203. "Project.Current": {
  21204. "type": "object",
  21205. "properties": {
  21206. "id": {
  21207. "type": "string"
  21208. },
  21209. "directory": {
  21210. "type": "string"
  21211. },
  21212. "canonical": {
  21213. "type": "string"
  21214. }
  21215. },
  21216. "required": [
  21217. "id",
  21218. "directory",
  21219. "canonical"
  21220. ],
  21221. "additionalProperties": false
  21222. },
  21223. "Project.Directory": {
  21224. "type": "object",
  21225. "properties": {
  21226. "directory": {
  21227. "type": "string"
  21228. },
  21229. "strategy": {
  21230. "type": "string"
  21231. }
  21232. },
  21233. "required": [
  21234. "directory"
  21235. ],
  21236. "additionalProperties": false
  21237. },
  21238. "Project.Directories": {
  21239. "type": "array",
  21240. "items": {
  21241. "$ref": "#/components/schemas/Project.Directory"
  21242. }
  21243. },
  21244. "Form.Metadata": {
  21245. "type": "object"
  21246. },
  21247. "Form.When": {
  21248. "type": "object",
  21249. "properties": {
  21250. "key": {
  21251. "type": "string"
  21252. },
  21253. "op": {
  21254. "type": "string",
  21255. "enum": [
  21256. "eq",
  21257. "neq"
  21258. ]
  21259. },
  21260. "value": {
  21261. "anyOf": [
  21262. {
  21263. "type": "string"
  21264. },
  21265. {
  21266. "anyOf": [
  21267. {
  21268. "anyOf": [
  21269. {
  21270. "type": "number"
  21271. },
  21272. {
  21273. "type": "string",
  21274. "enum": [
  21275. "NaN"
  21276. ]
  21277. },
  21278. {
  21279. "type": "string",
  21280. "enum": [
  21281. "Infinity"
  21282. ]
  21283. },
  21284. {
  21285. "type": "string",
  21286. "enum": [
  21287. "-Infinity"
  21288. ]
  21289. }
  21290. ]
  21291. },
  21292. {
  21293. "type": "string",
  21294. "enum": [
  21295. "Infinity",
  21296. "-Infinity",
  21297. "NaN"
  21298. ]
  21299. }
  21300. ]
  21301. },
  21302. {
  21303. "type": "boolean"
  21304. }
  21305. ]
  21306. }
  21307. },
  21308. "required": [
  21309. "key",
  21310. "op",
  21311. "value"
  21312. ],
  21313. "additionalProperties": false
  21314. },
  21315. "Form.Option": {
  21316. "type": "object",
  21317. "properties": {
  21318. "value": {
  21319. "type": "string"
  21320. },
  21321. "label": {
  21322. "type": "string"
  21323. },
  21324. "description": {
  21325. "type": "string"
  21326. }
  21327. },
  21328. "required": [
  21329. "value",
  21330. "label"
  21331. ],
  21332. "additionalProperties": false
  21333. },
  21334. "Form.StringField": {
  21335. "type": "object",
  21336. "properties": {
  21337. "key": {
  21338. "type": "string"
  21339. },
  21340. "title": {
  21341. "type": "string"
  21342. },
  21343. "description": {
  21344. "type": "string"
  21345. },
  21346. "required": {
  21347. "type": "boolean"
  21348. },
  21349. "when": {
  21350. "type": "array",
  21351. "items": {
  21352. "$ref": "#/components/schemas/Form.When"
  21353. }
  21354. },
  21355. "type": {
  21356. "type": "string",
  21357. "enum": [
  21358. "string"
  21359. ]
  21360. },
  21361. "format": {
  21362. "type": "string",
  21363. "enum": [
  21364. "email",
  21365. "uri",
  21366. "date",
  21367. "date-time"
  21368. ]
  21369. },
  21370. "minLength": {
  21371. "type": "integer",
  21372. "allOf": [
  21373. {
  21374. "minimum": 0
  21375. }
  21376. ]
  21377. },
  21378. "maxLength": {
  21379. "type": "integer",
  21380. "allOf": [
  21381. {
  21382. "minimum": 0
  21383. }
  21384. ]
  21385. },
  21386. "pattern": {
  21387. "type": "string"
  21388. },
  21389. "placeholder": {
  21390. "type": "string"
  21391. },
  21392. "default": {
  21393. "type": "string"
  21394. },
  21395. "options": {
  21396. "type": "array",
  21397. "items": {
  21398. "$ref": "#/components/schemas/Form.Option"
  21399. }
  21400. },
  21401. "custom": {
  21402. "type": "boolean"
  21403. }
  21404. },
  21405. "required": [
  21406. "key",
  21407. "type"
  21408. ],
  21409. "additionalProperties": false
  21410. },
  21411. "Form.NumberField": {
  21412. "type": "object",
  21413. "properties": {
  21414. "key": {
  21415. "type": "string"
  21416. },
  21417. "title": {
  21418. "type": "string"
  21419. },
  21420. "description": {
  21421. "type": "string"
  21422. },
  21423. "required": {
  21424. "type": "boolean"
  21425. },
  21426. "when": {
  21427. "type": "array",
  21428. "items": {
  21429. "$ref": "#/components/schemas/Form.When"
  21430. }
  21431. },
  21432. "type": {
  21433. "type": "string",
  21434. "enum": [
  21435. "number"
  21436. ]
  21437. },
  21438. "minimum": {
  21439. "anyOf": [
  21440. {
  21441. "anyOf": [
  21442. {
  21443. "type": "number"
  21444. },
  21445. {
  21446. "type": "string",
  21447. "enum": [
  21448. "NaN"
  21449. ]
  21450. },
  21451. {
  21452. "type": "string",
  21453. "enum": [
  21454. "Infinity"
  21455. ]
  21456. },
  21457. {
  21458. "type": "string",
  21459. "enum": [
  21460. "-Infinity"
  21461. ]
  21462. }
  21463. ]
  21464. },
  21465. {
  21466. "type": "string",
  21467. "enum": [
  21468. "Infinity",
  21469. "-Infinity",
  21470. "NaN"
  21471. ]
  21472. }
  21473. ]
  21474. },
  21475. "maximum": {
  21476. "anyOf": [
  21477. {
  21478. "anyOf": [
  21479. {
  21480. "type": "number"
  21481. },
  21482. {
  21483. "type": "string",
  21484. "enum": [
  21485. "NaN"
  21486. ]
  21487. },
  21488. {
  21489. "type": "string",
  21490. "enum": [
  21491. "Infinity"
  21492. ]
  21493. },
  21494. {
  21495. "type": "string",
  21496. "enum": [
  21497. "-Infinity"
  21498. ]
  21499. }
  21500. ]
  21501. },
  21502. {
  21503. "type": "string",
  21504. "enum": [
  21505. "Infinity",
  21506. "-Infinity",
  21507. "NaN"
  21508. ]
  21509. }
  21510. ]
  21511. },
  21512. "default": {
  21513. "anyOf": [
  21514. {
  21515. "anyOf": [
  21516. {
  21517. "type": "number"
  21518. },
  21519. {
  21520. "type": "string",
  21521. "enum": [
  21522. "NaN"
  21523. ]
  21524. },
  21525. {
  21526. "type": "string",
  21527. "enum": [
  21528. "Infinity"
  21529. ]
  21530. },
  21531. {
  21532. "type": "string",
  21533. "enum": [
  21534. "-Infinity"
  21535. ]
  21536. }
  21537. ]
  21538. },
  21539. {
  21540. "type": "string",
  21541. "enum": [
  21542. "Infinity",
  21543. "-Infinity",
  21544. "NaN"
  21545. ]
  21546. }
  21547. ]
  21548. }
  21549. },
  21550. "required": [
  21551. "key",
  21552. "type"
  21553. ],
  21554. "additionalProperties": false
  21555. },
  21556. "Form.IntegerField": {
  21557. "type": "object",
  21558. "properties": {
  21559. "key": {
  21560. "type": "string"
  21561. },
  21562. "title": {
  21563. "type": "string"
  21564. },
  21565. "description": {
  21566. "type": "string"
  21567. },
  21568. "required": {
  21569. "type": "boolean"
  21570. },
  21571. "when": {
  21572. "type": "array",
  21573. "items": {
  21574. "$ref": "#/components/schemas/Form.When"
  21575. }
  21576. },
  21577. "type": {
  21578. "type": "string",
  21579. "enum": [
  21580. "integer"
  21581. ]
  21582. },
  21583. "minimum": {
  21584. "anyOf": [
  21585. {
  21586. "anyOf": [
  21587. {
  21588. "type": "number"
  21589. },
  21590. {
  21591. "type": "string",
  21592. "enum": [
  21593. "NaN"
  21594. ]
  21595. },
  21596. {
  21597. "type": "string",
  21598. "enum": [
  21599. "Infinity"
  21600. ]
  21601. },
  21602. {
  21603. "type": "string",
  21604. "enum": [
  21605. "-Infinity"
  21606. ]
  21607. }
  21608. ]
  21609. },
  21610. {
  21611. "type": "string",
  21612. "enum": [
  21613. "Infinity",
  21614. "-Infinity",
  21615. "NaN"
  21616. ]
  21617. }
  21618. ]
  21619. },
  21620. "maximum": {
  21621. "anyOf": [
  21622. {
  21623. "anyOf": [
  21624. {
  21625. "type": "number"
  21626. },
  21627. {
  21628. "type": "string",
  21629. "enum": [
  21630. "NaN"
  21631. ]
  21632. },
  21633. {
  21634. "type": "string",
  21635. "enum": [
  21636. "Infinity"
  21637. ]
  21638. },
  21639. {
  21640. "type": "string",
  21641. "enum": [
  21642. "-Infinity"
  21643. ]
  21644. }
  21645. ]
  21646. },
  21647. {
  21648. "type": "string",
  21649. "enum": [
  21650. "Infinity",
  21651. "-Infinity",
  21652. "NaN"
  21653. ]
  21654. }
  21655. ]
  21656. },
  21657. "default": {
  21658. "anyOf": [
  21659. {
  21660. "anyOf": [
  21661. {
  21662. "type": "number"
  21663. },
  21664. {
  21665. "type": "string",
  21666. "enum": [
  21667. "NaN"
  21668. ]
  21669. },
  21670. {
  21671. "type": "string",
  21672. "enum": [
  21673. "Infinity"
  21674. ]
  21675. },
  21676. {
  21677. "type": "string",
  21678. "enum": [
  21679. "-Infinity"
  21680. ]
  21681. }
  21682. ]
  21683. },
  21684. {
  21685. "type": "string",
  21686. "enum": [
  21687. "Infinity",
  21688. "-Infinity",
  21689. "NaN"
  21690. ]
  21691. }
  21692. ]
  21693. }
  21694. },
  21695. "required": [
  21696. "key",
  21697. "type"
  21698. ],
  21699. "additionalProperties": false
  21700. },
  21701. "Form.BooleanField": {
  21702. "type": "object",
  21703. "properties": {
  21704. "key": {
  21705. "type": "string"
  21706. },
  21707. "title": {
  21708. "type": "string"
  21709. },
  21710. "description": {
  21711. "type": "string"
  21712. },
  21713. "required": {
  21714. "type": "boolean"
  21715. },
  21716. "when": {
  21717. "type": "array",
  21718. "items": {
  21719. "$ref": "#/components/schemas/Form.When"
  21720. }
  21721. },
  21722. "type": {
  21723. "type": "string",
  21724. "enum": [
  21725. "boolean"
  21726. ]
  21727. },
  21728. "default": {
  21729. "type": "boolean"
  21730. }
  21731. },
  21732. "required": [
  21733. "key",
  21734. "type"
  21735. ],
  21736. "additionalProperties": false
  21737. },
  21738. "Form.MultiselectField": {
  21739. "type": "object",
  21740. "properties": {
  21741. "key": {
  21742. "type": "string"
  21743. },
  21744. "title": {
  21745. "type": "string"
  21746. },
  21747. "description": {
  21748. "type": "string"
  21749. },
  21750. "required": {
  21751. "type": "boolean"
  21752. },
  21753. "when": {
  21754. "type": "array",
  21755. "items": {
  21756. "$ref": "#/components/schemas/Form.When"
  21757. }
  21758. },
  21759. "type": {
  21760. "type": "string",
  21761. "enum": [
  21762. "multiselect"
  21763. ]
  21764. },
  21765. "options": {
  21766. "type": "array",
  21767. "items": {
  21768. "$ref": "#/components/schemas/Form.Option"
  21769. }
  21770. },
  21771. "minItems": {
  21772. "type": "integer",
  21773. "allOf": [
  21774. {
  21775. "minimum": 0
  21776. }
  21777. ]
  21778. },
  21779. "maxItems": {
  21780. "type": "integer",
  21781. "allOf": [
  21782. {
  21783. "minimum": 0
  21784. }
  21785. ]
  21786. },
  21787. "custom": {
  21788. "type": "boolean"
  21789. },
  21790. "default": {
  21791. "type": "array",
  21792. "items": {
  21793. "type": "string"
  21794. }
  21795. }
  21796. },
  21797. "required": [
  21798. "key",
  21799. "type",
  21800. "options"
  21801. ],
  21802. "additionalProperties": false
  21803. },
  21804. "Form.ExternalField": {
  21805. "type": "object",
  21806. "properties": {
  21807. "key": {
  21808. "type": "string"
  21809. },
  21810. "type": {
  21811. "type": "string",
  21812. "enum": [
  21813. "external"
  21814. ]
  21815. },
  21816. "url": {
  21817. "type": "string"
  21818. },
  21819. "title": {
  21820. "type": "string"
  21821. },
  21822. "description": {
  21823. "type": "string"
  21824. }
  21825. },
  21826. "required": [
  21827. "key",
  21828. "type",
  21829. "url"
  21830. ],
  21831. "additionalProperties": false
  21832. },
  21833. "Form.Field": {
  21834. "anyOf": [
  21835. {
  21836. "$ref": "#/components/schemas/Form.StringField"
  21837. },
  21838. {
  21839. "$ref": "#/components/schemas/Form.NumberField"
  21840. },
  21841. {
  21842. "$ref": "#/components/schemas/Form.IntegerField"
  21843. },
  21844. {
  21845. "$ref": "#/components/schemas/Form.BooleanField"
  21846. },
  21847. {
  21848. "$ref": "#/components/schemas/Form.MultiselectField"
  21849. },
  21850. {
  21851. "$ref": "#/components/schemas/Form.ExternalField"
  21852. }
  21853. ]
  21854. },
  21855. "Form.Fields": {
  21856. "type": "array",
  21857. "prefixItems": [
  21858. {
  21859. "$ref": "#/components/schemas/Form.Field"
  21860. }
  21861. ],
  21862. "minItems": 1,
  21863. "items": {
  21864. "$ref": "#/components/schemas/Form.Field"
  21865. }
  21866. },
  21867. "Form.Info": {
  21868. "type": "object",
  21869. "properties": {
  21870. "id": {
  21871. "type": "string",
  21872. "allOf": [
  21873. {
  21874. "pattern": "^frm_"
  21875. }
  21876. ]
  21877. },
  21878. "sessionID": {
  21879. "type": "string"
  21880. },
  21881. "title": {
  21882. "type": "string"
  21883. },
  21884. "metadata": {
  21885. "$ref": "#/components/schemas/Form.Metadata"
  21886. },
  21887. "fields": {
  21888. "$ref": "#/components/schemas/Form.Fields"
  21889. }
  21890. },
  21891. "required": [
  21892. "id",
  21893. "sessionID",
  21894. "title",
  21895. "fields"
  21896. ],
  21897. "additionalProperties": false
  21898. },
  21899. "Form.CreatePayload": {
  21900. "type": "object",
  21901. "properties": {
  21902. "id": {
  21903. "anyOf": [
  21904. {
  21905. "type": "string",
  21906. "allOf": [
  21907. {
  21908. "pattern": "^frm_"
  21909. }
  21910. ]
  21911. },
  21912. {
  21913. "type": "null"
  21914. }
  21915. ]
  21916. },
  21917. "title": {
  21918. "type": "string"
  21919. },
  21920. "metadata": {
  21921. "$ref": "#/components/schemas/Form.Metadata"
  21922. },
  21923. "fields": {
  21924. "$ref": "#/components/schemas/Form.Fields"
  21925. }
  21926. },
  21927. "required": [
  21928. "title",
  21929. "fields"
  21930. ],
  21931. "additionalProperties": false
  21932. },
  21933. "FormNotFoundError": {
  21934. "type": "object",
  21935. "properties": {
  21936. "_tag": {
  21937. "type": "string",
  21938. "enum": [
  21939. "FormNotFoundError"
  21940. ]
  21941. },
  21942. "id": {
  21943. "type": "string"
  21944. },
  21945. "message": {
  21946. "type": "string"
  21947. }
  21948. },
  21949. "required": [
  21950. "_tag",
  21951. "id",
  21952. "message"
  21953. ],
  21954. "additionalProperties": false
  21955. },
  21956. "Form.Value": {
  21957. "anyOf": [
  21958. {
  21959. "type": "string"
  21960. },
  21961. {
  21962. "anyOf": [
  21963. {
  21964. "anyOf": [
  21965. {
  21966. "type": "number"
  21967. },
  21968. {
  21969. "type": "string",
  21970. "enum": [
  21971. "NaN"
  21972. ]
  21973. },
  21974. {
  21975. "type": "string",
  21976. "enum": [
  21977. "Infinity"
  21978. ]
  21979. },
  21980. {
  21981. "type": "string",
  21982. "enum": [
  21983. "-Infinity"
  21984. ]
  21985. }
  21986. ]
  21987. },
  21988. {
  21989. "type": "string",
  21990. "enum": [
  21991. "Infinity",
  21992. "-Infinity",
  21993. "NaN"
  21994. ]
  21995. }
  21996. ]
  21997. },
  21998. {
  21999. "type": "boolean"
  22000. },
  22001. {
  22002. "type": "array",
  22003. "items": {
  22004. "type": "string"
  22005. }
  22006. }
  22007. ]
  22008. },
  22009. "Form.Answer": {
  22010. "type": "object",
  22011. "additionalProperties": {
  22012. "$ref": "#/components/schemas/Form.Value"
  22013. }
  22014. },
  22015. "Form.State": {
  22016. "anyOf": [
  22017. {
  22018. "type": "object",
  22019. "properties": {
  22020. "status": {
  22021. "type": "string",
  22022. "enum": [
  22023. "pending"
  22024. ]
  22025. }
  22026. },
  22027. "required": [
  22028. "status"
  22029. ],
  22030. "additionalProperties": false
  22031. },
  22032. {
  22033. "type": "object",
  22034. "properties": {
  22035. "status": {
  22036. "type": "string",
  22037. "enum": [
  22038. "answered"
  22039. ]
  22040. },
  22041. "answer": {
  22042. "$ref": "#/components/schemas/Form.Answer"
  22043. }
  22044. },
  22045. "required": [
  22046. "status",
  22047. "answer"
  22048. ],
  22049. "additionalProperties": false
  22050. },
  22051. {
  22052. "type": "object",
  22053. "properties": {
  22054. "status": {
  22055. "type": "string",
  22056. "enum": [
  22057. "cancelled"
  22058. ]
  22059. }
  22060. },
  22061. "required": [
  22062. "status"
  22063. ],
  22064. "additionalProperties": false
  22065. }
  22066. ]
  22067. },
  22068. "Form.Reply": {
  22069. "type": "object",
  22070. "properties": {
  22071. "answer": {
  22072. "$ref": "#/components/schemas/Form.Answer"
  22073. }
  22074. },
  22075. "required": [
  22076. "answer"
  22077. ],
  22078. "additionalProperties": false
  22079. },
  22080. "FormAlreadySettledError": {
  22081. "type": "object",
  22082. "properties": {
  22083. "_tag": {
  22084. "type": "string",
  22085. "enum": [
  22086. "FormAlreadySettledError"
  22087. ]
  22088. },
  22089. "id": {
  22090. "type": "string"
  22091. },
  22092. "message": {
  22093. "type": "string"
  22094. }
  22095. },
  22096. "required": [
  22097. "_tag",
  22098. "id",
  22099. "message"
  22100. ],
  22101. "additionalProperties": false
  22102. },
  22103. "FormInvalidAnswerError": {
  22104. "type": "object",
  22105. "properties": {
  22106. "_tag": {
  22107. "type": "string",
  22108. "enum": [
  22109. "FormInvalidAnswerError"
  22110. ]
  22111. },
  22112. "id": {
  22113. "type": "string"
  22114. },
  22115. "message": {
  22116. "type": "string"
  22117. }
  22118. },
  22119. "required": [
  22120. "_tag",
  22121. "id",
  22122. "message"
  22123. ],
  22124. "additionalProperties": false
  22125. },
  22126. "Permission.Source": {
  22127. "anyOf": [
  22128. {
  22129. "type": "object",
  22130. "properties": {
  22131. "type": {
  22132. "type": "string",
  22133. "enum": [
  22134. "tool"
  22135. ]
  22136. },
  22137. "messageID": {
  22138. "type": "string"
  22139. },
  22140. "id": {
  22141. "type": "string"
  22142. }
  22143. },
  22144. "required": [
  22145. "type",
  22146. "messageID",
  22147. "id"
  22148. ],
  22149. "additionalProperties": false
  22150. }
  22151. ]
  22152. },
  22153. "Permission.Request": {
  22154. "type": "object",
  22155. "properties": {
  22156. "id": {
  22157. "type": "string",
  22158. "allOf": [
  22159. {
  22160. "pattern": "^per"
  22161. }
  22162. ]
  22163. },
  22164. "sessionID": {
  22165. "type": "string",
  22166. "allOf": [
  22167. {
  22168. "pattern": "^ses"
  22169. }
  22170. ]
  22171. },
  22172. "action": {
  22173. "type": "string"
  22174. },
  22175. "resources": {
  22176. "type": "array",
  22177. "items": {
  22178. "type": "string"
  22179. }
  22180. },
  22181. "save": {
  22182. "type": "array",
  22183. "items": {
  22184. "type": "string"
  22185. }
  22186. },
  22187. "metadata": {
  22188. "type": "object"
  22189. },
  22190. "source": {
  22191. "$ref": "#/components/schemas/Permission.Source"
  22192. }
  22193. },
  22194. "required": [
  22195. "id",
  22196. "sessionID",
  22197. "action",
  22198. "resources"
  22199. ],
  22200. "additionalProperties": false
  22201. },
  22202. "PermissionSaved.Info": {
  22203. "type": "object",
  22204. "properties": {
  22205. "id": {
  22206. "type": "string"
  22207. },
  22208. "projectID": {
  22209. "type": "string"
  22210. },
  22211. "action": {
  22212. "type": "string"
  22213. },
  22214. "resource": {
  22215. "type": "string"
  22216. }
  22217. },
  22218. "required": [
  22219. "id",
  22220. "projectID",
  22221. "action",
  22222. "resource"
  22223. ],
  22224. "additionalProperties": false
  22225. },
  22226. "PermissionNotFoundError": {
  22227. "type": "object",
  22228. "properties": {
  22229. "_tag": {
  22230. "type": "string",
  22231. "enum": [
  22232. "PermissionNotFoundError"
  22233. ]
  22234. },
  22235. "requestID": {
  22236. "type": "string"
  22237. },
  22238. "message": {
  22239. "type": "string"
  22240. }
  22241. },
  22242. "required": [
  22243. "_tag",
  22244. "requestID",
  22245. "message"
  22246. ],
  22247. "additionalProperties": false
  22248. },
  22249. "Permission.Reply": {
  22250. "type": "string",
  22251. "enum": [
  22252. "once",
  22253. "always",
  22254. "reject"
  22255. ]
  22256. },
  22257. "FileSystem.Entry": {
  22258. "type": "object",
  22259. "properties": {
  22260. "path": {
  22261. "type": "string"
  22262. },
  22263. "type": {
  22264. "type": "string",
  22265. "enum": [
  22266. "file",
  22267. "directory"
  22268. ]
  22269. }
  22270. },
  22271. "required": [
  22272. "path",
  22273. "type"
  22274. ],
  22275. "additionalProperties": false
  22276. },
  22277. "Command.Info": {
  22278. "type": "object",
  22279. "properties": {
  22280. "name": {
  22281. "type": "string"
  22282. },
  22283. "template": {
  22284. "type": "string"
  22285. },
  22286. "description": {
  22287. "type": "string"
  22288. },
  22289. "agent": {
  22290. "type": "string"
  22291. },
  22292. "model": {
  22293. "$ref": "#/components/schemas/Model.Ref"
  22294. },
  22295. "subtask": {
  22296. "type": "boolean"
  22297. }
  22298. },
  22299. "required": [
  22300. "name",
  22301. "template"
  22302. ],
  22303. "additionalProperties": false
  22304. },
  22305. "Skill.Info": {
  22306. "type": "object",
  22307. "properties": {
  22308. "id": {
  22309. "type": "string"
  22310. },
  22311. "name": {
  22312. "type": "string"
  22313. },
  22314. "description": {
  22315. "type": "string"
  22316. },
  22317. "slash": {
  22318. "type": "boolean"
  22319. },
  22320. "autoinvoke": {
  22321. "type": "boolean"
  22322. },
  22323. "location": {
  22324. "type": "string"
  22325. },
  22326. "content": {
  22327. "type": "string"
  22328. }
  22329. },
  22330. "required": [
  22331. "id",
  22332. "name",
  22333. "location",
  22334. "content"
  22335. ],
  22336. "additionalProperties": false
  22337. },
  22338. "models-dev.refreshed": {
  22339. "type": "object",
  22340. "properties": {
  22341. "id": {
  22342. "type": "string",
  22343. "allOf": [
  22344. {
  22345. "pattern": "^evt_"
  22346. }
  22347. ]
  22348. },
  22349. "created": {
  22350. "type": "number"
  22351. },
  22352. "metadata": {
  22353. "type": "object"
  22354. },
  22355. "type": {
  22356. "type": "string",
  22357. "enum": [
  22358. "models-dev.refreshed"
  22359. ]
  22360. },
  22361. "location": {
  22362. "$ref": "#/components/schemas/Location.Ref"
  22363. },
  22364. "data": {
  22365. "anyOf": [
  22366. {
  22367. "type": "object"
  22368. },
  22369. {
  22370. "type": "array"
  22371. }
  22372. ]
  22373. }
  22374. },
  22375. "required": [
  22376. "id",
  22377. "created",
  22378. "type",
  22379. "data"
  22380. ],
  22381. "additionalProperties": false
  22382. },
  22383. "integration.updated": {
  22384. "type": "object",
  22385. "properties": {
  22386. "id": {
  22387. "type": "string",
  22388. "allOf": [
  22389. {
  22390. "pattern": "^evt_"
  22391. }
  22392. ]
  22393. },
  22394. "created": {
  22395. "type": "number"
  22396. },
  22397. "metadata": {
  22398. "type": "object"
  22399. },
  22400. "type": {
  22401. "type": "string",
  22402. "enum": [
  22403. "integration.updated"
  22404. ]
  22405. },
  22406. "location": {
  22407. "$ref": "#/components/schemas/Location.Ref"
  22408. },
  22409. "data": {
  22410. "anyOf": [
  22411. {
  22412. "type": "object"
  22413. },
  22414. {
  22415. "type": "array"
  22416. }
  22417. ]
  22418. }
  22419. },
  22420. "required": [
  22421. "id",
  22422. "created",
  22423. "type",
  22424. "data"
  22425. ],
  22426. "additionalProperties": false
  22427. },
  22428. "integration.connection.updated": {
  22429. "type": "object",
  22430. "properties": {
  22431. "id": {
  22432. "type": "string",
  22433. "allOf": [
  22434. {
  22435. "pattern": "^evt_"
  22436. }
  22437. ]
  22438. },
  22439. "created": {
  22440. "type": "number"
  22441. },
  22442. "metadata": {
  22443. "type": "object"
  22444. },
  22445. "type": {
  22446. "type": "string",
  22447. "enum": [
  22448. "integration.connection.updated"
  22449. ]
  22450. },
  22451. "location": {
  22452. "$ref": "#/components/schemas/Location.Ref"
  22453. },
  22454. "data": {
  22455. "type": "object",
  22456. "properties": {
  22457. "integrationID": {
  22458. "type": "string"
  22459. }
  22460. },
  22461. "required": [
  22462. "integrationID"
  22463. ],
  22464. "additionalProperties": false
  22465. }
  22466. },
  22467. "required": [
  22468. "id",
  22469. "created",
  22470. "type",
  22471. "data"
  22472. ],
  22473. "additionalProperties": false
  22474. },
  22475. "catalog.updated": {
  22476. "type": "object",
  22477. "properties": {
  22478. "id": {
  22479. "type": "string",
  22480. "allOf": [
  22481. {
  22482. "pattern": "^evt_"
  22483. }
  22484. ]
  22485. },
  22486. "created": {
  22487. "type": "number"
  22488. },
  22489. "metadata": {
  22490. "type": "object"
  22491. },
  22492. "type": {
  22493. "type": "string",
  22494. "enum": [
  22495. "catalog.updated"
  22496. ]
  22497. },
  22498. "location": {
  22499. "$ref": "#/components/schemas/Location.Ref"
  22500. },
  22501. "data": {
  22502. "anyOf": [
  22503. {
  22504. "type": "object"
  22505. },
  22506. {
  22507. "type": "array"
  22508. }
  22509. ]
  22510. }
  22511. },
  22512. "required": [
  22513. "id",
  22514. "created",
  22515. "type",
  22516. "data"
  22517. ],
  22518. "additionalProperties": false
  22519. },
  22520. "agent.updated": {
  22521. "type": "object",
  22522. "properties": {
  22523. "id": {
  22524. "type": "string",
  22525. "allOf": [
  22526. {
  22527. "pattern": "^evt_"
  22528. }
  22529. ]
  22530. },
  22531. "created": {
  22532. "type": "number"
  22533. },
  22534. "metadata": {
  22535. "type": "object"
  22536. },
  22537. "type": {
  22538. "type": "string",
  22539. "enum": [
  22540. "agent.updated"
  22541. ]
  22542. },
  22543. "location": {
  22544. "$ref": "#/components/schemas/Location.Ref"
  22545. },
  22546. "data": {
  22547. "anyOf": [
  22548. {
  22549. "type": "object"
  22550. },
  22551. {
  22552. "type": "array"
  22553. }
  22554. ]
  22555. }
  22556. },
  22557. "required": [
  22558. "id",
  22559. "created",
  22560. "type",
  22561. "data"
  22562. ],
  22563. "additionalProperties": false
  22564. },
  22565. "session.usage.updated": {
  22566. "type": "object",
  22567. "properties": {
  22568. "id": {
  22569. "type": "string",
  22570. "allOf": [
  22571. {
  22572. "pattern": "^evt_"
  22573. }
  22574. ]
  22575. },
  22576. "created": {
  22577. "type": "number"
  22578. },
  22579. "metadata": {
  22580. "type": "object"
  22581. },
  22582. "type": {
  22583. "type": "string",
  22584. "enum": [
  22585. "session.usage.updated"
  22586. ]
  22587. },
  22588. "location": {
  22589. "$ref": "#/components/schemas/Location.Ref"
  22590. },
  22591. "data": {
  22592. "type": "object",
  22593. "properties": {
  22594. "sessionID": {
  22595. "type": "string",
  22596. "allOf": [
  22597. {
  22598. "pattern": "^ses"
  22599. }
  22600. ]
  22601. },
  22602. "cost": {
  22603. "$ref": "#/components/schemas/Money.USD"
  22604. },
  22605. "tokens": {
  22606. "$ref": "#/components/schemas/TokenUsage.Info"
  22607. }
  22608. },
  22609. "required": [
  22610. "sessionID",
  22611. "cost",
  22612. "tokens"
  22613. ],
  22614. "additionalProperties": false
  22615. }
  22616. },
  22617. "required": [
  22618. "id",
  22619. "created",
  22620. "type",
  22621. "data"
  22622. ],
  22623. "additionalProperties": false
  22624. },
  22625. "session.text.delta": {
  22626. "type": "object",
  22627. "properties": {
  22628. "id": {
  22629. "type": "string",
  22630. "allOf": [
  22631. {
  22632. "pattern": "^evt_"
  22633. }
  22634. ]
  22635. },
  22636. "created": {
  22637. "type": "number"
  22638. },
  22639. "metadata": {
  22640. "type": "object"
  22641. },
  22642. "type": {
  22643. "type": "string",
  22644. "enum": [
  22645. "session.text.delta"
  22646. ]
  22647. },
  22648. "location": {
  22649. "$ref": "#/components/schemas/Location.Ref"
  22650. },
  22651. "data": {
  22652. "type": "object",
  22653. "properties": {
  22654. "sessionID": {
  22655. "type": "string",
  22656. "allOf": [
  22657. {
  22658. "pattern": "^ses"
  22659. }
  22660. ]
  22661. },
  22662. "assistantMessageID": {
  22663. "type": "string",
  22664. "allOf": [
  22665. {
  22666. "pattern": "^msg_"
  22667. }
  22668. ]
  22669. },
  22670. "ordinal": {
  22671. "type": "integer",
  22672. "allOf": [
  22673. {
  22674. "minimum": 0
  22675. }
  22676. ]
  22677. },
  22678. "delta": {
  22679. "type": "string"
  22680. }
  22681. },
  22682. "required": [
  22683. "sessionID",
  22684. "assistantMessageID",
  22685. "ordinal",
  22686. "delta"
  22687. ],
  22688. "additionalProperties": false
  22689. }
  22690. },
  22691. "required": [
  22692. "id",
  22693. "created",
  22694. "type",
  22695. "data"
  22696. ],
  22697. "additionalProperties": false
  22698. },
  22699. "session.reasoning.delta": {
  22700. "type": "object",
  22701. "properties": {
  22702. "id": {
  22703. "type": "string",
  22704. "allOf": [
  22705. {
  22706. "pattern": "^evt_"
  22707. }
  22708. ]
  22709. },
  22710. "created": {
  22711. "type": "number"
  22712. },
  22713. "metadata": {
  22714. "type": "object"
  22715. },
  22716. "type": {
  22717. "type": "string",
  22718. "enum": [
  22719. "session.reasoning.delta"
  22720. ]
  22721. },
  22722. "location": {
  22723. "$ref": "#/components/schemas/Location.Ref"
  22724. },
  22725. "data": {
  22726. "type": "object",
  22727. "properties": {
  22728. "sessionID": {
  22729. "type": "string",
  22730. "allOf": [
  22731. {
  22732. "pattern": "^ses"
  22733. }
  22734. ]
  22735. },
  22736. "assistantMessageID": {
  22737. "type": "string",
  22738. "allOf": [
  22739. {
  22740. "pattern": "^msg_"
  22741. }
  22742. ]
  22743. },
  22744. "ordinal": {
  22745. "type": "integer",
  22746. "allOf": [
  22747. {
  22748. "minimum": 0
  22749. }
  22750. ]
  22751. },
  22752. "delta": {
  22753. "type": "string"
  22754. }
  22755. },
  22756. "required": [
  22757. "sessionID",
  22758. "assistantMessageID",
  22759. "ordinal",
  22760. "delta"
  22761. ],
  22762. "additionalProperties": false
  22763. }
  22764. },
  22765. "required": [
  22766. "id",
  22767. "created",
  22768. "type",
  22769. "data"
  22770. ],
  22771. "additionalProperties": false
  22772. },
  22773. "session.tool.input.delta": {
  22774. "type": "object",
  22775. "properties": {
  22776. "id": {
  22777. "type": "string",
  22778. "allOf": [
  22779. {
  22780. "pattern": "^evt_"
  22781. }
  22782. ]
  22783. },
  22784. "created": {
  22785. "type": "number"
  22786. },
  22787. "metadata": {
  22788. "type": "object"
  22789. },
  22790. "type": {
  22791. "type": "string",
  22792. "enum": [
  22793. "session.tool.input.delta"
  22794. ]
  22795. },
  22796. "location": {
  22797. "$ref": "#/components/schemas/Location.Ref"
  22798. },
  22799. "data": {
  22800. "type": "object",
  22801. "properties": {
  22802. "sessionID": {
  22803. "type": "string",
  22804. "allOf": [
  22805. {
  22806. "pattern": "^ses"
  22807. }
  22808. ]
  22809. },
  22810. "assistantMessageID": {
  22811. "type": "string",
  22812. "allOf": [
  22813. {
  22814. "pattern": "^msg_"
  22815. }
  22816. ]
  22817. },
  22818. "id": {
  22819. "type": "string"
  22820. },
  22821. "delta": {
  22822. "type": "string"
  22823. }
  22824. },
  22825. "required": [
  22826. "sessionID",
  22827. "assistantMessageID",
  22828. "id",
  22829. "delta"
  22830. ],
  22831. "additionalProperties": false
  22832. }
  22833. },
  22834. "required": [
  22835. "id",
  22836. "created",
  22837. "type",
  22838. "data"
  22839. ],
  22840. "additionalProperties": false
  22841. },
  22842. "session.tool.progress": {
  22843. "type": "object",
  22844. "properties": {
  22845. "id": {
  22846. "type": "string",
  22847. "allOf": [
  22848. {
  22849. "pattern": "^evt_"
  22850. }
  22851. ]
  22852. },
  22853. "created": {
  22854. "type": "number"
  22855. },
  22856. "metadata": {
  22857. "type": "object"
  22858. },
  22859. "type": {
  22860. "type": "string",
  22861. "enum": [
  22862. "session.tool.progress"
  22863. ]
  22864. },
  22865. "location": {
  22866. "$ref": "#/components/schemas/Location.Ref"
  22867. },
  22868. "data": {
  22869. "type": "object",
  22870. "properties": {
  22871. "sessionID": {
  22872. "type": "string",
  22873. "allOf": [
  22874. {
  22875. "pattern": "^ses"
  22876. }
  22877. ]
  22878. },
  22879. "assistantMessageID": {
  22880. "type": "string",
  22881. "allOf": [
  22882. {
  22883. "pattern": "^msg_"
  22884. }
  22885. ]
  22886. },
  22887. "id": {
  22888. "type": "string"
  22889. },
  22890. "metadata": {
  22891. "type": "object"
  22892. }
  22893. },
  22894. "required": [
  22895. "sessionID",
  22896. "assistantMessageID",
  22897. "id",
  22898. "metadata"
  22899. ],
  22900. "additionalProperties": false
  22901. }
  22902. },
  22903. "required": [
  22904. "id",
  22905. "created",
  22906. "type",
  22907. "data"
  22908. ],
  22909. "additionalProperties": false
  22910. },
  22911. "session.compaction.delta": {
  22912. "type": "object",
  22913. "properties": {
  22914. "id": {
  22915. "type": "string",
  22916. "allOf": [
  22917. {
  22918. "pattern": "^evt_"
  22919. }
  22920. ]
  22921. },
  22922. "created": {
  22923. "type": "number"
  22924. },
  22925. "metadata": {
  22926. "type": "object"
  22927. },
  22928. "type": {
  22929. "type": "string",
  22930. "enum": [
  22931. "session.compaction.delta"
  22932. ]
  22933. },
  22934. "location": {
  22935. "$ref": "#/components/schemas/Location.Ref"
  22936. },
  22937. "data": {
  22938. "type": "object",
  22939. "properties": {
  22940. "sessionID": {
  22941. "type": "string",
  22942. "allOf": [
  22943. {
  22944. "pattern": "^ses"
  22945. }
  22946. ]
  22947. },
  22948. "text": {
  22949. "type": "string"
  22950. }
  22951. },
  22952. "required": [
  22953. "sessionID",
  22954. "text"
  22955. ],
  22956. "additionalProperties": false
  22957. }
  22958. },
  22959. "required": [
  22960. "id",
  22961. "created",
  22962. "type",
  22963. "data"
  22964. ],
  22965. "additionalProperties": false
  22966. },
  22967. "filesystem.changed": {
  22968. "type": "object",
  22969. "properties": {
  22970. "id": {
  22971. "type": "string",
  22972. "allOf": [
  22973. {
  22974. "pattern": "^evt_"
  22975. }
  22976. ]
  22977. },
  22978. "created": {
  22979. "type": "number"
  22980. },
  22981. "metadata": {
  22982. "type": "object"
  22983. },
  22984. "type": {
  22985. "type": "string",
  22986. "enum": [
  22987. "filesystem.changed"
  22988. ]
  22989. },
  22990. "location": {
  22991. "$ref": "#/components/schemas/Location.Ref"
  22992. },
  22993. "data": {
  22994. "type": "object",
  22995. "properties": {
  22996. "file": {
  22997. "type": "string"
  22998. },
  22999. "event": {
  23000. "type": "string",
  23001. "enum": [
  23002. "add",
  23003. "change",
  23004. "unlink"
  23005. ]
  23006. }
  23007. },
  23008. "required": [
  23009. "file",
  23010. "event"
  23011. ],
  23012. "additionalProperties": false
  23013. }
  23014. },
  23015. "required": [
  23016. "id",
  23017. "created",
  23018. "type",
  23019. "data"
  23020. ],
  23021. "additionalProperties": false
  23022. },
  23023. "reference.updated": {
  23024. "type": "object",
  23025. "properties": {
  23026. "id": {
  23027. "type": "string",
  23028. "allOf": [
  23029. {
  23030. "pattern": "^evt_"
  23031. }
  23032. ]
  23033. },
  23034. "created": {
  23035. "type": "number"
  23036. },
  23037. "metadata": {
  23038. "type": "object"
  23039. },
  23040. "type": {
  23041. "type": "string",
  23042. "enum": [
  23043. "reference.updated"
  23044. ]
  23045. },
  23046. "location": {
  23047. "$ref": "#/components/schemas/Location.Ref"
  23048. },
  23049. "data": {
  23050. "anyOf": [
  23051. {
  23052. "type": "object"
  23053. },
  23054. {
  23055. "type": "array"
  23056. }
  23057. ]
  23058. }
  23059. },
  23060. "required": [
  23061. "id",
  23062. "created",
  23063. "type",
  23064. "data"
  23065. ],
  23066. "additionalProperties": false
  23067. },
  23068. "permission.asked": {
  23069. "type": "object",
  23070. "properties": {
  23071. "id": {
  23072. "type": "string",
  23073. "allOf": [
  23074. {
  23075. "pattern": "^evt_"
  23076. }
  23077. ]
  23078. },
  23079. "created": {
  23080. "type": "number"
  23081. },
  23082. "metadata": {
  23083. "type": "object"
  23084. },
  23085. "type": {
  23086. "type": "string",
  23087. "enum": [
  23088. "permission.asked"
  23089. ]
  23090. },
  23091. "location": {
  23092. "$ref": "#/components/schemas/Location.Ref"
  23093. },
  23094. "data": {
  23095. "type": "object",
  23096. "properties": {
  23097. "id": {
  23098. "type": "string",
  23099. "allOf": [
  23100. {
  23101. "pattern": "^per"
  23102. }
  23103. ]
  23104. },
  23105. "sessionID": {
  23106. "type": "string",
  23107. "allOf": [
  23108. {
  23109. "pattern": "^ses"
  23110. }
  23111. ]
  23112. },
  23113. "action": {
  23114. "type": "string"
  23115. },
  23116. "resources": {
  23117. "type": "array",
  23118. "items": {
  23119. "type": "string"
  23120. }
  23121. },
  23122. "save": {
  23123. "type": "array",
  23124. "items": {
  23125. "type": "string"
  23126. }
  23127. },
  23128. "metadata": {
  23129. "type": "object"
  23130. },
  23131. "source": {
  23132. "$ref": "#/components/schemas/Permission.Source"
  23133. }
  23134. },
  23135. "required": [
  23136. "id",
  23137. "sessionID",
  23138. "action",
  23139. "resources"
  23140. ],
  23141. "additionalProperties": false
  23142. }
  23143. },
  23144. "required": [
  23145. "id",
  23146. "created",
  23147. "type",
  23148. "data"
  23149. ],
  23150. "additionalProperties": false
  23151. },
  23152. "permission.replied": {
  23153. "type": "object",
  23154. "properties": {
  23155. "id": {
  23156. "type": "string",
  23157. "allOf": [
  23158. {
  23159. "pattern": "^evt_"
  23160. }
  23161. ]
  23162. },
  23163. "created": {
  23164. "type": "number"
  23165. },
  23166. "metadata": {
  23167. "type": "object"
  23168. },
  23169. "type": {
  23170. "type": "string",
  23171. "enum": [
  23172. "permission.replied"
  23173. ]
  23174. },
  23175. "location": {
  23176. "$ref": "#/components/schemas/Location.Ref"
  23177. },
  23178. "data": {
  23179. "type": "object",
  23180. "properties": {
  23181. "sessionID": {
  23182. "type": "string",
  23183. "allOf": [
  23184. {
  23185. "pattern": "^ses"
  23186. }
  23187. ]
  23188. },
  23189. "requestID": {
  23190. "type": "string",
  23191. "allOf": [
  23192. {
  23193. "pattern": "^per"
  23194. }
  23195. ]
  23196. },
  23197. "reply": {
  23198. "$ref": "#/components/schemas/Permission.Reply"
  23199. }
  23200. },
  23201. "required": [
  23202. "sessionID",
  23203. "requestID",
  23204. "reply"
  23205. ],
  23206. "additionalProperties": false
  23207. }
  23208. },
  23209. "required": [
  23210. "id",
  23211. "created",
  23212. "type",
  23213. "data"
  23214. ],
  23215. "additionalProperties": false
  23216. },
  23217. "plugin.added": {
  23218. "type": "object",
  23219. "properties": {
  23220. "id": {
  23221. "type": "string",
  23222. "allOf": [
  23223. {
  23224. "pattern": "^evt_"
  23225. }
  23226. ]
  23227. },
  23228. "created": {
  23229. "type": "number"
  23230. },
  23231. "metadata": {
  23232. "type": "object"
  23233. },
  23234. "type": {
  23235. "type": "string",
  23236. "enum": [
  23237. "plugin.added"
  23238. ]
  23239. },
  23240. "location": {
  23241. "$ref": "#/components/schemas/Location.Ref"
  23242. },
  23243. "data": {
  23244. "type": "object",
  23245. "properties": {
  23246. "id": {
  23247. "type": "string"
  23248. }
  23249. },
  23250. "required": [
  23251. "id"
  23252. ],
  23253. "additionalProperties": false
  23254. }
  23255. },
  23256. "required": [
  23257. "id",
  23258. "created",
  23259. "type",
  23260. "data"
  23261. ],
  23262. "additionalProperties": false
  23263. },
  23264. "plugin.updated": {
  23265. "type": "object",
  23266. "properties": {
  23267. "id": {
  23268. "type": "string",
  23269. "allOf": [
  23270. {
  23271. "pattern": "^evt_"
  23272. }
  23273. ]
  23274. },
  23275. "created": {
  23276. "type": "number"
  23277. },
  23278. "metadata": {
  23279. "type": "object"
  23280. },
  23281. "type": {
  23282. "type": "string",
  23283. "enum": [
  23284. "plugin.updated"
  23285. ]
  23286. },
  23287. "location": {
  23288. "$ref": "#/components/schemas/Location.Ref"
  23289. },
  23290. "data": {
  23291. "anyOf": [
  23292. {
  23293. "type": "object"
  23294. },
  23295. {
  23296. "type": "array"
  23297. }
  23298. ]
  23299. }
  23300. },
  23301. "required": [
  23302. "id",
  23303. "created",
  23304. "type",
  23305. "data"
  23306. ],
  23307. "additionalProperties": false
  23308. },
  23309. "project.directories.updated": {
  23310. "type": "object",
  23311. "properties": {
  23312. "id": {
  23313. "type": "string",
  23314. "allOf": [
  23315. {
  23316. "pattern": "^evt_"
  23317. }
  23318. ]
  23319. },
  23320. "created": {
  23321. "type": "number"
  23322. },
  23323. "metadata": {
  23324. "type": "object"
  23325. },
  23326. "type": {
  23327. "type": "string",
  23328. "enum": [
  23329. "project.directories.updated"
  23330. ]
  23331. },
  23332. "location": {
  23333. "$ref": "#/components/schemas/Location.Ref"
  23334. },
  23335. "data": {
  23336. "type": "object",
  23337. "properties": {
  23338. "projectID": {
  23339. "type": "string"
  23340. }
  23341. },
  23342. "required": [
  23343. "projectID"
  23344. ],
  23345. "additionalProperties": false
  23346. }
  23347. },
  23348. "required": [
  23349. "id",
  23350. "created",
  23351. "type",
  23352. "data"
  23353. ],
  23354. "additionalProperties": false
  23355. },
  23356. "command.updated": {
  23357. "type": "object",
  23358. "properties": {
  23359. "id": {
  23360. "type": "string",
  23361. "allOf": [
  23362. {
  23363. "pattern": "^evt_"
  23364. }
  23365. ]
  23366. },
  23367. "created": {
  23368. "type": "number"
  23369. },
  23370. "metadata": {
  23371. "type": "object"
  23372. },
  23373. "type": {
  23374. "type": "string",
  23375. "enum": [
  23376. "command.updated"
  23377. ]
  23378. },
  23379. "location": {
  23380. "$ref": "#/components/schemas/Location.Ref"
  23381. },
  23382. "data": {
  23383. "anyOf": [
  23384. {
  23385. "type": "object"
  23386. },
  23387. {
  23388. "type": "array"
  23389. }
  23390. ]
  23391. }
  23392. },
  23393. "required": [
  23394. "id",
  23395. "created",
  23396. "type",
  23397. "data"
  23398. ],
  23399. "additionalProperties": false
  23400. },
  23401. "config.updated": {
  23402. "type": "object",
  23403. "properties": {
  23404. "id": {
  23405. "type": "string",
  23406. "allOf": [
  23407. {
  23408. "pattern": "^evt_"
  23409. }
  23410. ]
  23411. },
  23412. "created": {
  23413. "type": "number"
  23414. },
  23415. "metadata": {
  23416. "type": "object"
  23417. },
  23418. "type": {
  23419. "type": "string",
  23420. "enum": [
  23421. "config.updated"
  23422. ]
  23423. },
  23424. "location": {
  23425. "$ref": "#/components/schemas/Location.Ref"
  23426. },
  23427. "data": {
  23428. "anyOf": [
  23429. {
  23430. "type": "object"
  23431. },
  23432. {
  23433. "type": "array"
  23434. }
  23435. ]
  23436. }
  23437. },
  23438. "required": [
  23439. "id",
  23440. "created",
  23441. "type",
  23442. "data"
  23443. ],
  23444. "additionalProperties": false
  23445. },
  23446. "skill.updated": {
  23447. "type": "object",
  23448. "properties": {
  23449. "id": {
  23450. "type": "string",
  23451. "allOf": [
  23452. {
  23453. "pattern": "^evt_"
  23454. }
  23455. ]
  23456. },
  23457. "created": {
  23458. "type": "number"
  23459. },
  23460. "metadata": {
  23461. "type": "object"
  23462. },
  23463. "type": {
  23464. "type": "string",
  23465. "enum": [
  23466. "skill.updated"
  23467. ]
  23468. },
  23469. "location": {
  23470. "$ref": "#/components/schemas/Location.Ref"
  23471. },
  23472. "data": {
  23473. "anyOf": [
  23474. {
  23475. "type": "object"
  23476. },
  23477. {
  23478. "type": "array"
  23479. }
  23480. ]
  23481. }
  23482. },
  23483. "required": [
  23484. "id",
  23485. "created",
  23486. "type",
  23487. "data"
  23488. ],
  23489. "additionalProperties": false
  23490. },
  23491. "Pty": {
  23492. "type": "object",
  23493. "properties": {
  23494. "id": {
  23495. "type": "string",
  23496. "allOf": [
  23497. {
  23498. "pattern": "^pty"
  23499. }
  23500. ]
  23501. },
  23502. "title": {
  23503. "type": "string"
  23504. },
  23505. "command": {
  23506. "type": "string"
  23507. },
  23508. "args": {
  23509. "type": "array",
  23510. "items": {
  23511. "type": "string"
  23512. }
  23513. },
  23514. "cwd": {
  23515. "type": "string"
  23516. },
  23517. "status": {
  23518. "type": "string",
  23519. "enum": [
  23520. "running",
  23521. "exited"
  23522. ]
  23523. },
  23524. "pid": {
  23525. "type": "integer",
  23526. "allOf": [
  23527. {
  23528. "minimum": 0
  23529. }
  23530. ]
  23531. },
  23532. "exitCode": {
  23533. "type": "integer",
  23534. "allOf": [
  23535. {
  23536. "minimum": 0
  23537. }
  23538. ]
  23539. }
  23540. },
  23541. "required": [
  23542. "id",
  23543. "title",
  23544. "command",
  23545. "args",
  23546. "cwd",
  23547. "status",
  23548. "pid"
  23549. ],
  23550. "additionalProperties": false
  23551. },
  23552. "pty.created": {
  23553. "type": "object",
  23554. "properties": {
  23555. "id": {
  23556. "type": "string",
  23557. "allOf": [
  23558. {
  23559. "pattern": "^evt_"
  23560. }
  23561. ]
  23562. },
  23563. "created": {
  23564. "type": "number"
  23565. },
  23566. "metadata": {
  23567. "type": "object"
  23568. },
  23569. "type": {
  23570. "type": "string",
  23571. "enum": [
  23572. "pty.created"
  23573. ]
  23574. },
  23575. "location": {
  23576. "$ref": "#/components/schemas/Location.Ref"
  23577. },
  23578. "data": {
  23579. "type": "object",
  23580. "properties": {
  23581. "info": {
  23582. "$ref": "#/components/schemas/Pty"
  23583. }
  23584. },
  23585. "required": [
  23586. "info"
  23587. ],
  23588. "additionalProperties": false
  23589. }
  23590. },
  23591. "required": [
  23592. "id",
  23593. "created",
  23594. "type",
  23595. "data"
  23596. ],
  23597. "additionalProperties": false
  23598. },
  23599. "pty.updated": {
  23600. "type": "object",
  23601. "properties": {
  23602. "id": {
  23603. "type": "string",
  23604. "allOf": [
  23605. {
  23606. "pattern": "^evt_"
  23607. }
  23608. ]
  23609. },
  23610. "created": {
  23611. "type": "number"
  23612. },
  23613. "metadata": {
  23614. "type": "object"
  23615. },
  23616. "type": {
  23617. "type": "string",
  23618. "enum": [
  23619. "pty.updated"
  23620. ]
  23621. },
  23622. "location": {
  23623. "$ref": "#/components/schemas/Location.Ref"
  23624. },
  23625. "data": {
  23626. "type": "object",
  23627. "properties": {
  23628. "info": {
  23629. "$ref": "#/components/schemas/Pty"
  23630. }
  23631. },
  23632. "required": [
  23633. "info"
  23634. ],
  23635. "additionalProperties": false
  23636. }
  23637. },
  23638. "required": [
  23639. "id",
  23640. "created",
  23641. "type",
  23642. "data"
  23643. ],
  23644. "additionalProperties": false
  23645. },
  23646. "pty.exited": {
  23647. "type": "object",
  23648. "properties": {
  23649. "id": {
  23650. "type": "string",
  23651. "allOf": [
  23652. {
  23653. "pattern": "^evt_"
  23654. }
  23655. ]
  23656. },
  23657. "created": {
  23658. "type": "number"
  23659. },
  23660. "metadata": {
  23661. "type": "object"
  23662. },
  23663. "type": {
  23664. "type": "string",
  23665. "enum": [
  23666. "pty.exited"
  23667. ]
  23668. },
  23669. "location": {
  23670. "$ref": "#/components/schemas/Location.Ref"
  23671. },
  23672. "data": {
  23673. "type": "object",
  23674. "properties": {
  23675. "id": {
  23676. "type": "string",
  23677. "allOf": [
  23678. {
  23679. "pattern": "^pty"
  23680. }
  23681. ]
  23682. },
  23683. "exitCode": {
  23684. "type": "integer",
  23685. "allOf": [
  23686. {
  23687. "minimum": 0
  23688. }
  23689. ]
  23690. }
  23691. },
  23692. "required": [
  23693. "id",
  23694. "exitCode"
  23695. ],
  23696. "additionalProperties": false
  23697. }
  23698. },
  23699. "required": [
  23700. "id",
  23701. "created",
  23702. "type",
  23703. "data"
  23704. ],
  23705. "additionalProperties": false
  23706. },
  23707. "pty.deleted": {
  23708. "type": "object",
  23709. "properties": {
  23710. "id": {
  23711. "type": "string",
  23712. "allOf": [
  23713. {
  23714. "pattern": "^evt_"
  23715. }
  23716. ]
  23717. },
  23718. "created": {
  23719. "type": "number"
  23720. },
  23721. "metadata": {
  23722. "type": "object"
  23723. },
  23724. "type": {
  23725. "type": "string",
  23726. "enum": [
  23727. "pty.deleted"
  23728. ]
  23729. },
  23730. "location": {
  23731. "$ref": "#/components/schemas/Location.Ref"
  23732. },
  23733. "data": {
  23734. "type": "object",
  23735. "properties": {
  23736. "id": {
  23737. "type": "string",
  23738. "allOf": [
  23739. {
  23740. "pattern": "^pty"
  23741. }
  23742. ]
  23743. }
  23744. },
  23745. "required": [
  23746. "id"
  23747. ],
  23748. "additionalProperties": false
  23749. }
  23750. },
  23751. "required": [
  23752. "id",
  23753. "created",
  23754. "type",
  23755. "data"
  23756. ],
  23757. "additionalProperties": false
  23758. },
  23759. "shell.created": {
  23760. "type": "object",
  23761. "properties": {
  23762. "id": {
  23763. "type": "string",
  23764. "allOf": [
  23765. {
  23766. "pattern": "^evt_"
  23767. }
  23768. ]
  23769. },
  23770. "created": {
  23771. "type": "number"
  23772. },
  23773. "metadata": {
  23774. "type": "object"
  23775. },
  23776. "type": {
  23777. "type": "string",
  23778. "enum": [
  23779. "shell.created"
  23780. ]
  23781. },
  23782. "location": {
  23783. "$ref": "#/components/schemas/Location.Ref"
  23784. },
  23785. "data": {
  23786. "type": "object",
  23787. "properties": {
  23788. "info": {
  23789. "$ref": "#/components/schemas/Shell.Info"
  23790. }
  23791. },
  23792. "required": [
  23793. "info"
  23794. ],
  23795. "additionalProperties": false
  23796. }
  23797. },
  23798. "required": [
  23799. "id",
  23800. "created",
  23801. "type",
  23802. "data"
  23803. ],
  23804. "additionalProperties": false
  23805. },
  23806. "shell.exited": {
  23807. "type": "object",
  23808. "properties": {
  23809. "id": {
  23810. "type": "string",
  23811. "allOf": [
  23812. {
  23813. "pattern": "^evt_"
  23814. }
  23815. ]
  23816. },
  23817. "created": {
  23818. "type": "number"
  23819. },
  23820. "metadata": {
  23821. "type": "object"
  23822. },
  23823. "type": {
  23824. "type": "string",
  23825. "enum": [
  23826. "shell.exited"
  23827. ]
  23828. },
  23829. "location": {
  23830. "$ref": "#/components/schemas/Location.Ref"
  23831. },
  23832. "data": {
  23833. "type": "object",
  23834. "properties": {
  23835. "id": {
  23836. "type": "string",
  23837. "allOf": [
  23838. {
  23839. "pattern": "^sh_"
  23840. }
  23841. ]
  23842. },
  23843. "exit": {
  23844. "type": "number"
  23845. },
  23846. "status": {
  23847. "type": "string",
  23848. "enum": [
  23849. "running",
  23850. "exited",
  23851. "timeout",
  23852. "killed"
  23853. ]
  23854. }
  23855. },
  23856. "required": [
  23857. "id",
  23858. "status"
  23859. ],
  23860. "additionalProperties": false
  23861. }
  23862. },
  23863. "required": [
  23864. "id",
  23865. "created",
  23866. "type",
  23867. "data"
  23868. ],
  23869. "additionalProperties": false
  23870. },
  23871. "shell.deleted": {
  23872. "type": "object",
  23873. "properties": {
  23874. "id": {
  23875. "type": "string",
  23876. "allOf": [
  23877. {
  23878. "pattern": "^evt_"
  23879. }
  23880. ]
  23881. },
  23882. "created": {
  23883. "type": "number"
  23884. },
  23885. "metadata": {
  23886. "type": "object"
  23887. },
  23888. "type": {
  23889. "type": "string",
  23890. "enum": [
  23891. "shell.deleted"
  23892. ]
  23893. },
  23894. "location": {
  23895. "$ref": "#/components/schemas/Location.Ref"
  23896. },
  23897. "data": {
  23898. "type": "object",
  23899. "properties": {
  23900. "id": {
  23901. "type": "string",
  23902. "allOf": [
  23903. {
  23904. "pattern": "^sh_"
  23905. }
  23906. ]
  23907. }
  23908. },
  23909. "required": [
  23910. "id"
  23911. ],
  23912. "additionalProperties": false
  23913. }
  23914. },
  23915. "required": [
  23916. "id",
  23917. "created",
  23918. "type",
  23919. "data"
  23920. ],
  23921. "additionalProperties": false
  23922. },
  23923. "Question.Option": {
  23924. "type": "object",
  23925. "properties": {
  23926. "label": {
  23927. "type": "string",
  23928. "description": "Display text (1-5 words, concise)"
  23929. },
  23930. "description": {
  23931. "type": "string",
  23932. "description": "Explanation of choice"
  23933. }
  23934. },
  23935. "required": [
  23936. "label",
  23937. "description"
  23938. ],
  23939. "additionalProperties": false
  23940. },
  23941. "Question.Info": {
  23942. "type": "object",
  23943. "properties": {
  23944. "question": {
  23945. "type": "string",
  23946. "description": "Complete question"
  23947. },
  23948. "header": {
  23949. "type": "string",
  23950. "description": "Very short label (max 30 chars)"
  23951. },
  23952. "options": {
  23953. "type": "array",
  23954. "items": {
  23955. "$ref": "#/components/schemas/Question.Option"
  23956. },
  23957. "description": "Available choices"
  23958. },
  23959. "multiple": {
  23960. "type": "boolean"
  23961. },
  23962. "custom": {
  23963. "type": "boolean"
  23964. }
  23965. },
  23966. "required": [
  23967. "question",
  23968. "header",
  23969. "options"
  23970. ],
  23971. "additionalProperties": false
  23972. },
  23973. "Question.Tool": {
  23974. "type": "object",
  23975. "properties": {
  23976. "messageID": {
  23977. "type": "string"
  23978. },
  23979. "id": {
  23980. "type": "string"
  23981. }
  23982. },
  23983. "required": [
  23984. "messageID",
  23985. "id"
  23986. ],
  23987. "additionalProperties": false
  23988. },
  23989. "question.asked": {
  23990. "type": "object",
  23991. "properties": {
  23992. "id": {
  23993. "type": "string",
  23994. "allOf": [
  23995. {
  23996. "pattern": "^evt_"
  23997. }
  23998. ]
  23999. },
  24000. "created": {
  24001. "type": "number"
  24002. },
  24003. "metadata": {
  24004. "type": "object"
  24005. },
  24006. "type": {
  24007. "type": "string",
  24008. "enum": [
  24009. "question.asked"
  24010. ]
  24011. },
  24012. "location": {
  24013. "$ref": "#/components/schemas/Location.Ref"
  24014. },
  24015. "data": {
  24016. "type": "object",
  24017. "properties": {
  24018. "id": {
  24019. "type": "string",
  24020. "allOf": [
  24021. {
  24022. "pattern": "^que"
  24023. }
  24024. ]
  24025. },
  24026. "sessionID": {
  24027. "type": "string",
  24028. "allOf": [
  24029. {
  24030. "pattern": "^ses"
  24031. }
  24032. ]
  24033. },
  24034. "questions": {
  24035. "type": "array",
  24036. "items": {
  24037. "$ref": "#/components/schemas/Question.Info"
  24038. },
  24039. "description": "Questions to ask"
  24040. },
  24041. "tool": {
  24042. "$ref": "#/components/schemas/Question.Tool"
  24043. }
  24044. },
  24045. "required": [
  24046. "id",
  24047. "sessionID",
  24048. "questions"
  24049. ],
  24050. "additionalProperties": false
  24051. }
  24052. },
  24053. "required": [
  24054. "id",
  24055. "created",
  24056. "type",
  24057. "data"
  24058. ],
  24059. "additionalProperties": false
  24060. },
  24061. "Question.Answer": {
  24062. "type": "array",
  24063. "items": {
  24064. "type": "string"
  24065. }
  24066. },
  24067. "question.replied": {
  24068. "type": "object",
  24069. "properties": {
  24070. "id": {
  24071. "type": "string",
  24072. "allOf": [
  24073. {
  24074. "pattern": "^evt_"
  24075. }
  24076. ]
  24077. },
  24078. "created": {
  24079. "type": "number"
  24080. },
  24081. "metadata": {
  24082. "type": "object"
  24083. },
  24084. "type": {
  24085. "type": "string",
  24086. "enum": [
  24087. "question.replied"
  24088. ]
  24089. },
  24090. "location": {
  24091. "$ref": "#/components/schemas/Location.Ref"
  24092. },
  24093. "data": {
  24094. "type": "object",
  24095. "properties": {
  24096. "sessionID": {
  24097. "type": "string",
  24098. "allOf": [
  24099. {
  24100. "pattern": "^ses"
  24101. }
  24102. ]
  24103. },
  24104. "requestID": {
  24105. "type": "string",
  24106. "allOf": [
  24107. {
  24108. "pattern": "^que"
  24109. }
  24110. ]
  24111. },
  24112. "answers": {
  24113. "type": "array",
  24114. "items": {
  24115. "$ref": "#/components/schemas/Question.Answer"
  24116. }
  24117. }
  24118. },
  24119. "required": [
  24120. "sessionID",
  24121. "requestID",
  24122. "answers"
  24123. ],
  24124. "additionalProperties": false
  24125. }
  24126. },
  24127. "required": [
  24128. "id",
  24129. "created",
  24130. "type",
  24131. "data"
  24132. ],
  24133. "additionalProperties": false
  24134. },
  24135. "question.rejected": {
  24136. "type": "object",
  24137. "properties": {
  24138. "id": {
  24139. "type": "string",
  24140. "allOf": [
  24141. {
  24142. "pattern": "^evt_"
  24143. }
  24144. ]
  24145. },
  24146. "created": {
  24147. "type": "number"
  24148. },
  24149. "metadata": {
  24150. "type": "object"
  24151. },
  24152. "type": {
  24153. "type": "string",
  24154. "enum": [
  24155. "question.rejected"
  24156. ]
  24157. },
  24158. "location": {
  24159. "$ref": "#/components/schemas/Location.Ref"
  24160. },
  24161. "data": {
  24162. "type": "object",
  24163. "properties": {
  24164. "sessionID": {
  24165. "type": "string",
  24166. "allOf": [
  24167. {
  24168. "pattern": "^ses"
  24169. }
  24170. ]
  24171. },
  24172. "requestID": {
  24173. "type": "string",
  24174. "allOf": [
  24175. {
  24176. "pattern": "^que"
  24177. }
  24178. ]
  24179. }
  24180. },
  24181. "required": [
  24182. "sessionID",
  24183. "requestID"
  24184. ],
  24185. "additionalProperties": false
  24186. }
  24187. },
  24188. "required": [
  24189. "id",
  24190. "created",
  24191. "type",
  24192. "data"
  24193. ],
  24194. "additionalProperties": false
  24195. },
  24196. "Form.Metadata1": {
  24197. "type": "object"
  24198. },
  24199. "Form.When1": {
  24200. "type": "object",
  24201. "properties": {
  24202. "key": {
  24203. "type": "string"
  24204. },
  24205. "op": {
  24206. "type": "string",
  24207. "enum": [
  24208. "eq",
  24209. "neq"
  24210. ]
  24211. },
  24212. "value": {
  24213. "anyOf": [
  24214. {
  24215. "type": "string"
  24216. },
  24217. {
  24218. "anyOf": [
  24219. {
  24220. "type": "number"
  24221. },
  24222. {
  24223. "type": "string",
  24224. "enum": [
  24225. "NaN"
  24226. ]
  24227. },
  24228. {
  24229. "type": "string",
  24230. "enum": [
  24231. "Infinity"
  24232. ]
  24233. },
  24234. {
  24235. "type": "string",
  24236. "enum": [
  24237. "-Infinity"
  24238. ]
  24239. }
  24240. ]
  24241. },
  24242. {
  24243. "type": "boolean"
  24244. }
  24245. ]
  24246. }
  24247. },
  24248. "required": [
  24249. "key",
  24250. "op",
  24251. "value"
  24252. ],
  24253. "additionalProperties": false
  24254. },
  24255. "Form.StringField1": {
  24256. "type": "object",
  24257. "properties": {
  24258. "key": {
  24259. "type": "string"
  24260. },
  24261. "title": {
  24262. "type": "string"
  24263. },
  24264. "description": {
  24265. "type": "string"
  24266. },
  24267. "required": {
  24268. "type": "boolean"
  24269. },
  24270. "when": {
  24271. "type": "array",
  24272. "items": {
  24273. "$ref": "#/components/schemas/Form.When1"
  24274. }
  24275. },
  24276. "type": {
  24277. "type": "string",
  24278. "enum": [
  24279. "string"
  24280. ]
  24281. },
  24282. "format": {
  24283. "type": "string",
  24284. "enum": [
  24285. "email",
  24286. "uri",
  24287. "date",
  24288. "date-time"
  24289. ]
  24290. },
  24291. "minLength": {
  24292. "type": "integer",
  24293. "allOf": [
  24294. {
  24295. "minimum": 0
  24296. }
  24297. ]
  24298. },
  24299. "maxLength": {
  24300. "type": "integer",
  24301. "allOf": [
  24302. {
  24303. "minimum": 0
  24304. }
  24305. ]
  24306. },
  24307. "pattern": {
  24308. "type": "string"
  24309. },
  24310. "placeholder": {
  24311. "type": "string"
  24312. },
  24313. "default": {
  24314. "type": "string"
  24315. },
  24316. "options": {
  24317. "type": "array",
  24318. "items": {
  24319. "$ref": "#/components/schemas/Form.Option"
  24320. }
  24321. },
  24322. "custom": {
  24323. "type": "boolean"
  24324. }
  24325. },
  24326. "required": [
  24327. "key",
  24328. "type"
  24329. ],
  24330. "additionalProperties": false
  24331. },
  24332. "Form.NumberField1": {
  24333. "type": "object",
  24334. "properties": {
  24335. "key": {
  24336. "type": "string"
  24337. },
  24338. "title": {
  24339. "type": "string"
  24340. },
  24341. "description": {
  24342. "type": "string"
  24343. },
  24344. "required": {
  24345. "type": "boolean"
  24346. },
  24347. "when": {
  24348. "type": "array",
  24349. "items": {
  24350. "$ref": "#/components/schemas/Form.When1"
  24351. }
  24352. },
  24353. "type": {
  24354. "type": "string",
  24355. "enum": [
  24356. "number"
  24357. ]
  24358. },
  24359. "minimum": {
  24360. "anyOf": [
  24361. {
  24362. "type": "number"
  24363. },
  24364. {
  24365. "type": "string",
  24366. "enum": [
  24367. "NaN"
  24368. ]
  24369. },
  24370. {
  24371. "type": "string",
  24372. "enum": [
  24373. "Infinity"
  24374. ]
  24375. },
  24376. {
  24377. "type": "string",
  24378. "enum": [
  24379. "-Infinity"
  24380. ]
  24381. }
  24382. ]
  24383. },
  24384. "maximum": {
  24385. "anyOf": [
  24386. {
  24387. "type": "number"
  24388. },
  24389. {
  24390. "type": "string",
  24391. "enum": [
  24392. "NaN"
  24393. ]
  24394. },
  24395. {
  24396. "type": "string",
  24397. "enum": [
  24398. "Infinity"
  24399. ]
  24400. },
  24401. {
  24402. "type": "string",
  24403. "enum": [
  24404. "-Infinity"
  24405. ]
  24406. }
  24407. ]
  24408. },
  24409. "default": {
  24410. "anyOf": [
  24411. {
  24412. "type": "number"
  24413. },
  24414. {
  24415. "type": "string",
  24416. "enum": [
  24417. "NaN"
  24418. ]
  24419. },
  24420. {
  24421. "type": "string",
  24422. "enum": [
  24423. "Infinity"
  24424. ]
  24425. },
  24426. {
  24427. "type": "string",
  24428. "enum": [
  24429. "-Infinity"
  24430. ]
  24431. }
  24432. ]
  24433. }
  24434. },
  24435. "required": [
  24436. "key",
  24437. "type"
  24438. ],
  24439. "additionalProperties": false
  24440. },
  24441. "Form.IntegerField1": {
  24442. "type": "object",
  24443. "properties": {
  24444. "key": {
  24445. "type": "string"
  24446. },
  24447. "title": {
  24448. "type": "string"
  24449. },
  24450. "description": {
  24451. "type": "string"
  24452. },
  24453. "required": {
  24454. "type": "boolean"
  24455. },
  24456. "when": {
  24457. "type": "array",
  24458. "items": {
  24459. "$ref": "#/components/schemas/Form.When1"
  24460. }
  24461. },
  24462. "type": {
  24463. "type": "string",
  24464. "enum": [
  24465. "integer"
  24466. ]
  24467. },
  24468. "minimum": {
  24469. "anyOf": [
  24470. {
  24471. "type": "number"
  24472. },
  24473. {
  24474. "type": "string",
  24475. "enum": [
  24476. "NaN"
  24477. ]
  24478. },
  24479. {
  24480. "type": "string",
  24481. "enum": [
  24482. "Infinity"
  24483. ]
  24484. },
  24485. {
  24486. "type": "string",
  24487. "enum": [
  24488. "-Infinity"
  24489. ]
  24490. }
  24491. ]
  24492. },
  24493. "maximum": {
  24494. "anyOf": [
  24495. {
  24496. "type": "number"
  24497. },
  24498. {
  24499. "type": "string",
  24500. "enum": [
  24501. "NaN"
  24502. ]
  24503. },
  24504. {
  24505. "type": "string",
  24506. "enum": [
  24507. "Infinity"
  24508. ]
  24509. },
  24510. {
  24511. "type": "string",
  24512. "enum": [
  24513. "-Infinity"
  24514. ]
  24515. }
  24516. ]
  24517. },
  24518. "default": {
  24519. "anyOf": [
  24520. {
  24521. "type": "number"
  24522. },
  24523. {
  24524. "type": "string",
  24525. "enum": [
  24526. "NaN"
  24527. ]
  24528. },
  24529. {
  24530. "type": "string",
  24531. "enum": [
  24532. "Infinity"
  24533. ]
  24534. },
  24535. {
  24536. "type": "string",
  24537. "enum": [
  24538. "-Infinity"
  24539. ]
  24540. }
  24541. ]
  24542. }
  24543. },
  24544. "required": [
  24545. "key",
  24546. "type"
  24547. ],
  24548. "additionalProperties": false
  24549. },
  24550. "Form.BooleanField1": {
  24551. "type": "object",
  24552. "properties": {
  24553. "key": {
  24554. "type": "string"
  24555. },
  24556. "title": {
  24557. "type": "string"
  24558. },
  24559. "description": {
  24560. "type": "string"
  24561. },
  24562. "required": {
  24563. "type": "boolean"
  24564. },
  24565. "when": {
  24566. "type": "array",
  24567. "items": {
  24568. "$ref": "#/components/schemas/Form.When1"
  24569. }
  24570. },
  24571. "type": {
  24572. "type": "string",
  24573. "enum": [
  24574. "boolean"
  24575. ]
  24576. },
  24577. "default": {
  24578. "type": "boolean"
  24579. }
  24580. },
  24581. "required": [
  24582. "key",
  24583. "type"
  24584. ],
  24585. "additionalProperties": false
  24586. },
  24587. "Form.MultiselectField1": {
  24588. "type": "object",
  24589. "properties": {
  24590. "key": {
  24591. "type": "string"
  24592. },
  24593. "title": {
  24594. "type": "string"
  24595. },
  24596. "description": {
  24597. "type": "string"
  24598. },
  24599. "required": {
  24600. "type": "boolean"
  24601. },
  24602. "when": {
  24603. "type": "array",
  24604. "items": {
  24605. "$ref": "#/components/schemas/Form.When1"
  24606. }
  24607. },
  24608. "type": {
  24609. "type": "string",
  24610. "enum": [
  24611. "multiselect"
  24612. ]
  24613. },
  24614. "options": {
  24615. "type": "array",
  24616. "items": {
  24617. "$ref": "#/components/schemas/Form.Option"
  24618. }
  24619. },
  24620. "minItems": {
  24621. "type": "integer",
  24622. "allOf": [
  24623. {
  24624. "minimum": 0
  24625. }
  24626. ]
  24627. },
  24628. "maxItems": {
  24629. "type": "integer",
  24630. "allOf": [
  24631. {
  24632. "minimum": 0
  24633. }
  24634. ]
  24635. },
  24636. "custom": {
  24637. "type": "boolean"
  24638. },
  24639. "default": {
  24640. "type": "array",
  24641. "items": {
  24642. "type": "string"
  24643. }
  24644. }
  24645. },
  24646. "required": [
  24647. "key",
  24648. "type",
  24649. "options"
  24650. ],
  24651. "additionalProperties": false
  24652. },
  24653. "Form.Field1": {
  24654. "anyOf": [
  24655. {
  24656. "$ref": "#/components/schemas/Form.StringField1"
  24657. },
  24658. {
  24659. "$ref": "#/components/schemas/Form.NumberField1"
  24660. },
  24661. {
  24662. "$ref": "#/components/schemas/Form.IntegerField1"
  24663. },
  24664. {
  24665. "$ref": "#/components/schemas/Form.BooleanField1"
  24666. },
  24667. {
  24668. "$ref": "#/components/schemas/Form.MultiselectField1"
  24669. },
  24670. {
  24671. "$ref": "#/components/schemas/Form.ExternalField"
  24672. }
  24673. ]
  24674. },
  24675. "Form.Fields1": {
  24676. "type": "array",
  24677. "prefixItems": [
  24678. {
  24679. "$ref": "#/components/schemas/Form.Field1"
  24680. }
  24681. ],
  24682. "minItems": 1,
  24683. "items": {
  24684. "$ref": "#/components/schemas/Form.Field1"
  24685. }
  24686. },
  24687. "Form.Info1": {
  24688. "type": "object",
  24689. "properties": {
  24690. "id": {
  24691. "type": "string",
  24692. "allOf": [
  24693. {
  24694. "pattern": "^frm_"
  24695. }
  24696. ]
  24697. },
  24698. "sessionID": {
  24699. "type": "string"
  24700. },
  24701. "title": {
  24702. "type": "string"
  24703. },
  24704. "metadata": {
  24705. "$ref": "#/components/schemas/Form.Metadata1"
  24706. },
  24707. "fields": {
  24708. "$ref": "#/components/schemas/Form.Fields1"
  24709. }
  24710. },
  24711. "required": [
  24712. "id",
  24713. "sessionID",
  24714. "title",
  24715. "fields"
  24716. ],
  24717. "additionalProperties": false
  24718. },
  24719. "form.created": {
  24720. "type": "object",
  24721. "properties": {
  24722. "id": {
  24723. "type": "string",
  24724. "allOf": [
  24725. {
  24726. "pattern": "^evt_"
  24727. }
  24728. ]
  24729. },
  24730. "created": {
  24731. "type": "number"
  24732. },
  24733. "metadata": {
  24734. "type": "object"
  24735. },
  24736. "type": {
  24737. "type": "string",
  24738. "enum": [
  24739. "form.created"
  24740. ]
  24741. },
  24742. "location": {
  24743. "$ref": "#/components/schemas/Location.Ref"
  24744. },
  24745. "data": {
  24746. "type": "object",
  24747. "properties": {
  24748. "form": {
  24749. "$ref": "#/components/schemas/Form.Info1"
  24750. }
  24751. },
  24752. "required": [
  24753. "form"
  24754. ],
  24755. "additionalProperties": false
  24756. }
  24757. },
  24758. "required": [
  24759. "id",
  24760. "created",
  24761. "type",
  24762. "data"
  24763. ],
  24764. "additionalProperties": false
  24765. },
  24766. "Form.Value1": {
  24767. "anyOf": [
  24768. {
  24769. "type": "string"
  24770. },
  24771. {
  24772. "anyOf": [
  24773. {
  24774. "type": "number"
  24775. },
  24776. {
  24777. "type": "string",
  24778. "enum": [
  24779. "NaN"
  24780. ]
  24781. },
  24782. {
  24783. "type": "string",
  24784. "enum": [
  24785. "Infinity"
  24786. ]
  24787. },
  24788. {
  24789. "type": "string",
  24790. "enum": [
  24791. "-Infinity"
  24792. ]
  24793. }
  24794. ]
  24795. },
  24796. {
  24797. "type": "boolean"
  24798. },
  24799. {
  24800. "type": "array",
  24801. "items": {
  24802. "type": "string"
  24803. }
  24804. }
  24805. ]
  24806. },
  24807. "Form.Answer1": {
  24808. "type": "object",
  24809. "additionalProperties": {
  24810. "$ref": "#/components/schemas/Form.Value1"
  24811. }
  24812. },
  24813. "form.replied": {
  24814. "type": "object",
  24815. "properties": {
  24816. "id": {
  24817. "type": "string",
  24818. "allOf": [
  24819. {
  24820. "pattern": "^evt_"
  24821. }
  24822. ]
  24823. },
  24824. "created": {
  24825. "type": "number"
  24826. },
  24827. "metadata": {
  24828. "type": "object"
  24829. },
  24830. "type": {
  24831. "type": "string",
  24832. "enum": [
  24833. "form.replied"
  24834. ]
  24835. },
  24836. "location": {
  24837. "$ref": "#/components/schemas/Location.Ref"
  24838. },
  24839. "data": {
  24840. "type": "object",
  24841. "properties": {
  24842. "id": {
  24843. "type": "string",
  24844. "allOf": [
  24845. {
  24846. "pattern": "^frm_"
  24847. }
  24848. ]
  24849. },
  24850. "sessionID": {
  24851. "type": "string"
  24852. },
  24853. "answer": {
  24854. "$ref": "#/components/schemas/Form.Answer1"
  24855. }
  24856. },
  24857. "required": [
  24858. "id",
  24859. "sessionID",
  24860. "answer"
  24861. ],
  24862. "additionalProperties": false
  24863. }
  24864. },
  24865. "required": [
  24866. "id",
  24867. "created",
  24868. "type",
  24869. "data"
  24870. ],
  24871. "additionalProperties": false
  24872. },
  24873. "form.cancelled": {
  24874. "type": "object",
  24875. "properties": {
  24876. "id": {
  24877. "type": "string",
  24878. "allOf": [
  24879. {
  24880. "pattern": "^evt_"
  24881. }
  24882. ]
  24883. },
  24884. "created": {
  24885. "type": "number"
  24886. },
  24887. "metadata": {
  24888. "type": "object"
  24889. },
  24890. "type": {
  24891. "type": "string",
  24892. "enum": [
  24893. "form.cancelled"
  24894. ]
  24895. },
  24896. "location": {
  24897. "$ref": "#/components/schemas/Location.Ref"
  24898. },
  24899. "data": {
  24900. "type": "object",
  24901. "properties": {
  24902. "id": {
  24903. "type": "string",
  24904. "allOf": [
  24905. {
  24906. "pattern": "^frm_"
  24907. }
  24908. ]
  24909. },
  24910. "sessionID": {
  24911. "type": "string"
  24912. }
  24913. },
  24914. "required": [
  24915. "id",
  24916. "sessionID"
  24917. ],
  24918. "additionalProperties": false
  24919. }
  24920. },
  24921. "required": [
  24922. "id",
  24923. "created",
  24924. "type",
  24925. "data"
  24926. ],
  24927. "additionalProperties": false
  24928. },
  24929. "websearch.updated": {
  24930. "type": "object",
  24931. "properties": {
  24932. "id": {
  24933. "type": "string",
  24934. "allOf": [
  24935. {
  24936. "pattern": "^evt_"
  24937. }
  24938. ]
  24939. },
  24940. "created": {
  24941. "type": "number"
  24942. },
  24943. "metadata": {
  24944. "type": "object"
  24945. },
  24946. "type": {
  24947. "type": "string",
  24948. "enum": [
  24949. "websearch.updated"
  24950. ]
  24951. },
  24952. "location": {
  24953. "$ref": "#/components/schemas/Location.Ref"
  24954. },
  24955. "data": {
  24956. "anyOf": [
  24957. {
  24958. "type": "object"
  24959. },
  24960. {
  24961. "type": "array"
  24962. }
  24963. ]
  24964. }
  24965. },
  24966. "required": [
  24967. "id",
  24968. "created",
  24969. "type",
  24970. "data"
  24971. ],
  24972. "additionalProperties": false
  24973. },
  24974. "SessionStatus": {
  24975. "anyOf": [
  24976. {
  24977. "type": "object",
  24978. "properties": {
  24979. "type": {
  24980. "type": "string",
  24981. "enum": [
  24982. "idle"
  24983. ]
  24984. }
  24985. },
  24986. "required": [
  24987. "type"
  24988. ],
  24989. "additionalProperties": false
  24990. },
  24991. {
  24992. "type": "object",
  24993. "properties": {
  24994. "type": {
  24995. "type": "string",
  24996. "enum": [
  24997. "retry"
  24998. ]
  24999. },
  25000. "attempt": {
  25001. "type": "integer",
  25002. "allOf": [
  25003. {
  25004. "minimum": 0
  25005. }
  25006. ]
  25007. },
  25008. "message": {
  25009. "type": "string"
  25010. },
  25011. "action": {
  25012. "type": "object",
  25013. "properties": {
  25014. "reason": {
  25015. "type": "string"
  25016. },
  25017. "provider": {
  25018. "type": "string"
  25019. },
  25020. "title": {
  25021. "type": "string"
  25022. },
  25023. "message": {
  25024. "type": "string"
  25025. },
  25026. "label": {
  25027. "type": "string"
  25028. },
  25029. "link": {
  25030. "type": "string"
  25031. }
  25032. },
  25033. "required": [
  25034. "reason",
  25035. "provider",
  25036. "title",
  25037. "message",
  25038. "label"
  25039. ],
  25040. "additionalProperties": false
  25041. },
  25042. "next": {
  25043. "type": "integer",
  25044. "allOf": [
  25045. {
  25046. "minimum": 0
  25047. }
  25048. ]
  25049. }
  25050. },
  25051. "required": [
  25052. "type",
  25053. "attempt",
  25054. "message",
  25055. "next"
  25056. ],
  25057. "additionalProperties": false
  25058. },
  25059. {
  25060. "type": "object",
  25061. "properties": {
  25062. "type": {
  25063. "type": "string",
  25064. "enum": [
  25065. "busy"
  25066. ]
  25067. }
  25068. },
  25069. "required": [
  25070. "type"
  25071. ],
  25072. "additionalProperties": false
  25073. }
  25074. ]
  25075. },
  25076. "session.status": {
  25077. "type": "object",
  25078. "properties": {
  25079. "id": {
  25080. "type": "string",
  25081. "allOf": [
  25082. {
  25083. "pattern": "^evt_"
  25084. }
  25085. ]
  25086. },
  25087. "created": {
  25088. "type": "number"
  25089. },
  25090. "metadata": {
  25091. "type": "object"
  25092. },
  25093. "type": {
  25094. "type": "string",
  25095. "enum": [
  25096. "session.status"
  25097. ]
  25098. },
  25099. "location": {
  25100. "$ref": "#/components/schemas/Location.Ref"
  25101. },
  25102. "data": {
  25103. "type": "object",
  25104. "properties": {
  25105. "sessionID": {
  25106. "type": "string",
  25107. "allOf": [
  25108. {
  25109. "pattern": "^ses"
  25110. }
  25111. ]
  25112. },
  25113. "status": {
  25114. "$ref": "#/components/schemas/SessionStatus"
  25115. }
  25116. },
  25117. "required": [
  25118. "sessionID",
  25119. "status"
  25120. ],
  25121. "additionalProperties": false
  25122. }
  25123. },
  25124. "required": [
  25125. "id",
  25126. "created",
  25127. "type",
  25128. "data"
  25129. ],
  25130. "additionalProperties": false
  25131. },
  25132. "session.idle": {
  25133. "type": "object",
  25134. "properties": {
  25135. "id": {
  25136. "type": "string",
  25137. "allOf": [
  25138. {
  25139. "pattern": "^evt_"
  25140. }
  25141. ]
  25142. },
  25143. "created": {
  25144. "type": "number"
  25145. },
  25146. "metadata": {
  25147. "type": "object"
  25148. },
  25149. "type": {
  25150. "type": "string",
  25151. "enum": [
  25152. "session.idle"
  25153. ]
  25154. },
  25155. "location": {
  25156. "$ref": "#/components/schemas/Location.Ref"
  25157. },
  25158. "data": {
  25159. "type": "object",
  25160. "properties": {
  25161. "sessionID": {
  25162. "type": "string",
  25163. "allOf": [
  25164. {
  25165. "pattern": "^ses"
  25166. }
  25167. ]
  25168. }
  25169. },
  25170. "required": [
  25171. "sessionID"
  25172. ],
  25173. "additionalProperties": false
  25174. }
  25175. },
  25176. "required": [
  25177. "id",
  25178. "created",
  25179. "type",
  25180. "data"
  25181. ],
  25182. "additionalProperties": false
  25183. },
  25184. "tui.prompt.append": {
  25185. "type": "object",
  25186. "properties": {
  25187. "id": {
  25188. "type": "string",
  25189. "allOf": [
  25190. {
  25191. "pattern": "^evt_"
  25192. }
  25193. ]
  25194. },
  25195. "created": {
  25196. "type": "number"
  25197. },
  25198. "metadata": {
  25199. "type": "object"
  25200. },
  25201. "type": {
  25202. "type": "string",
  25203. "enum": [
  25204. "tui.prompt.append"
  25205. ]
  25206. },
  25207. "location": {
  25208. "$ref": "#/components/schemas/Location.Ref"
  25209. },
  25210. "data": {
  25211. "type": "object",
  25212. "properties": {
  25213. "text": {
  25214. "type": "string"
  25215. }
  25216. },
  25217. "required": [
  25218. "text"
  25219. ],
  25220. "additionalProperties": false
  25221. }
  25222. },
  25223. "required": [
  25224. "id",
  25225. "created",
  25226. "type",
  25227. "data"
  25228. ],
  25229. "additionalProperties": false
  25230. },
  25231. "tui.command.execute": {
  25232. "type": "object",
  25233. "properties": {
  25234. "id": {
  25235. "type": "string",
  25236. "allOf": [
  25237. {
  25238. "pattern": "^evt_"
  25239. }
  25240. ]
  25241. },
  25242. "created": {
  25243. "type": "number"
  25244. },
  25245. "metadata": {
  25246. "type": "object"
  25247. },
  25248. "type": {
  25249. "type": "string",
  25250. "enum": [
  25251. "tui.command.execute"
  25252. ]
  25253. },
  25254. "location": {
  25255. "$ref": "#/components/schemas/Location.Ref"
  25256. },
  25257. "data": {
  25258. "type": "object",
  25259. "properties": {
  25260. "command": {
  25261. "anyOf": [
  25262. {
  25263. "type": "string",
  25264. "enum": [
  25265. "session.list",
  25266. "session.new",
  25267. "session.share",
  25268. "session.interrupt",
  25269. "session.background",
  25270. "session.compact",
  25271. "session.page.up",
  25272. "session.page.down",
  25273. "session.line.up",
  25274. "session.line.down",
  25275. "session.half.page.up",
  25276. "session.half.page.down",
  25277. "session.first",
  25278. "session.last",
  25279. "prompt.clear",
  25280. "prompt.submit",
  25281. "agent.cycle"
  25282. ]
  25283. },
  25284. {
  25285. "type": "string"
  25286. }
  25287. ]
  25288. }
  25289. },
  25290. "required": [
  25291. "command"
  25292. ],
  25293. "additionalProperties": false
  25294. }
  25295. },
  25296. "required": [
  25297. "id",
  25298. "created",
  25299. "type",
  25300. "data"
  25301. ],
  25302. "additionalProperties": false
  25303. },
  25304. "tui.toast.show": {
  25305. "type": "object",
  25306. "properties": {
  25307. "id": {
  25308. "type": "string",
  25309. "allOf": [
  25310. {
  25311. "pattern": "^evt_"
  25312. }
  25313. ]
  25314. },
  25315. "created": {
  25316. "type": "number"
  25317. },
  25318. "metadata": {
  25319. "type": "object"
  25320. },
  25321. "type": {
  25322. "type": "string",
  25323. "enum": [
  25324. "tui.toast.show"
  25325. ]
  25326. },
  25327. "location": {
  25328. "$ref": "#/components/schemas/Location.Ref"
  25329. },
  25330. "data": {
  25331. "type": "object",
  25332. "properties": {
  25333. "title": {
  25334. "type": "string"
  25335. },
  25336. "message": {
  25337. "type": "string"
  25338. },
  25339. "variant": {
  25340. "type": "string",
  25341. "enum": [
  25342. "info",
  25343. "success",
  25344. "warning",
  25345. "error"
  25346. ]
  25347. },
  25348. "duration": {
  25349. "anyOf": [
  25350. {
  25351. "type": "integer",
  25352. "allOf": [
  25353. {
  25354. "exclusiveMinimum": 0
  25355. }
  25356. ]
  25357. },
  25358. {
  25359. "type": "null"
  25360. }
  25361. ]
  25362. }
  25363. },
  25364. "required": [
  25365. "message",
  25366. "variant"
  25367. ],
  25368. "additionalProperties": false
  25369. }
  25370. },
  25371. "required": [
  25372. "id",
  25373. "created",
  25374. "type",
  25375. "data"
  25376. ],
  25377. "additionalProperties": false
  25378. },
  25379. "tui.session.select": {
  25380. "type": "object",
  25381. "properties": {
  25382. "id": {
  25383. "type": "string",
  25384. "allOf": [
  25385. {
  25386. "pattern": "^evt_"
  25387. }
  25388. ]
  25389. },
  25390. "created": {
  25391. "type": "number"
  25392. },
  25393. "metadata": {
  25394. "type": "object"
  25395. },
  25396. "type": {
  25397. "type": "string",
  25398. "enum": [
  25399. "tui.session.select"
  25400. ]
  25401. },
  25402. "location": {
  25403. "$ref": "#/components/schemas/Location.Ref"
  25404. },
  25405. "data": {
  25406. "type": "object",
  25407. "properties": {
  25408. "sessionID": {
  25409. "type": "string",
  25410. "allOf": [
  25411. {
  25412. "pattern": "^ses",
  25413. "description": "Session ID to navigate to"
  25414. }
  25415. ]
  25416. }
  25417. },
  25418. "required": [
  25419. "sessionID"
  25420. ],
  25421. "additionalProperties": false
  25422. }
  25423. },
  25424. "required": [
  25425. "id",
  25426. "created",
  25427. "type",
  25428. "data"
  25429. ],
  25430. "additionalProperties": false
  25431. },
  25432. "installation.updated": {
  25433. "type": "object",
  25434. "properties": {
  25435. "id": {
  25436. "type": "string",
  25437. "allOf": [
  25438. {
  25439. "pattern": "^evt_"
  25440. }
  25441. ]
  25442. },
  25443. "created": {
  25444. "type": "number"
  25445. },
  25446. "metadata": {
  25447. "type": "object"
  25448. },
  25449. "type": {
  25450. "type": "string",
  25451. "enum": [
  25452. "installation.updated"
  25453. ]
  25454. },
  25455. "location": {
  25456. "$ref": "#/components/schemas/Location.Ref"
  25457. },
  25458. "data": {
  25459. "type": "object",
  25460. "properties": {
  25461. "version": {
  25462. "type": "string"
  25463. }
  25464. },
  25465. "required": [
  25466. "version"
  25467. ],
  25468. "additionalProperties": false
  25469. }
  25470. },
  25471. "required": [
  25472. "id",
  25473. "created",
  25474. "type",
  25475. "data"
  25476. ],
  25477. "additionalProperties": false
  25478. },
  25479. "installation.update-available": {
  25480. "type": "object",
  25481. "properties": {
  25482. "id": {
  25483. "type": "string",
  25484. "allOf": [
  25485. {
  25486. "pattern": "^evt_"
  25487. }
  25488. ]
  25489. },
  25490. "created": {
  25491. "type": "number"
  25492. },
  25493. "metadata": {
  25494. "type": "object"
  25495. },
  25496. "type": {
  25497. "type": "string",
  25498. "enum": [
  25499. "installation.update-available"
  25500. ]
  25501. },
  25502. "location": {
  25503. "$ref": "#/components/schemas/Location.Ref"
  25504. },
  25505. "data": {
  25506. "type": "object",
  25507. "properties": {
  25508. "version": {
  25509. "type": "string"
  25510. }
  25511. },
  25512. "required": [
  25513. "version"
  25514. ],
  25515. "additionalProperties": false
  25516. }
  25517. },
  25518. "required": [
  25519. "id",
  25520. "created",
  25521. "type",
  25522. "data"
  25523. ],
  25524. "additionalProperties": false
  25525. },
  25526. "vcs.branch.updated": {
  25527. "type": "object",
  25528. "properties": {
  25529. "id": {
  25530. "type": "string",
  25531. "allOf": [
  25532. {
  25533. "pattern": "^evt_"
  25534. }
  25535. ]
  25536. },
  25537. "created": {
  25538. "type": "number"
  25539. },
  25540. "metadata": {
  25541. "type": "object"
  25542. },
  25543. "type": {
  25544. "type": "string",
  25545. "enum": [
  25546. "vcs.branch.updated"
  25547. ]
  25548. },
  25549. "location": {
  25550. "$ref": "#/components/schemas/Location.Ref"
  25551. },
  25552. "data": {
  25553. "type": "object",
  25554. "properties": {
  25555. "branch": {
  25556. "type": "string"
  25557. }
  25558. },
  25559. "additionalProperties": false
  25560. }
  25561. },
  25562. "required": [
  25563. "id",
  25564. "created",
  25565. "type",
  25566. "data"
  25567. ],
  25568. "additionalProperties": false
  25569. },
  25570. "mcp.status.changed": {
  25571. "type": "object",
  25572. "properties": {
  25573. "id": {
  25574. "type": "string",
  25575. "allOf": [
  25576. {
  25577. "pattern": "^evt_"
  25578. }
  25579. ]
  25580. },
  25581. "created": {
  25582. "type": "number"
  25583. },
  25584. "metadata": {
  25585. "type": "object"
  25586. },
  25587. "type": {
  25588. "type": "string",
  25589. "enum": [
  25590. "mcp.status.changed"
  25591. ]
  25592. },
  25593. "location": {
  25594. "$ref": "#/components/schemas/Location.Ref"
  25595. },
  25596. "data": {
  25597. "type": "object",
  25598. "properties": {
  25599. "server": {
  25600. "type": "string"
  25601. }
  25602. },
  25603. "required": [
  25604. "server"
  25605. ],
  25606. "additionalProperties": false
  25607. }
  25608. },
  25609. "required": [
  25610. "id",
  25611. "created",
  25612. "type",
  25613. "data"
  25614. ],
  25615. "additionalProperties": false
  25616. },
  25617. "mcp.resources.changed": {
  25618. "type": "object",
  25619. "properties": {
  25620. "id": {
  25621. "type": "string",
  25622. "allOf": [
  25623. {
  25624. "pattern": "^evt_"
  25625. }
  25626. ]
  25627. },
  25628. "created": {
  25629. "type": "number"
  25630. },
  25631. "metadata": {
  25632. "type": "object"
  25633. },
  25634. "type": {
  25635. "type": "string",
  25636. "enum": [
  25637. "mcp.resources.changed"
  25638. ]
  25639. },
  25640. "location": {
  25641. "$ref": "#/components/schemas/Location.Ref"
  25642. },
  25643. "data": {
  25644. "type": "object",
  25645. "properties": {
  25646. "server": {
  25647. "type": "string"
  25648. }
  25649. },
  25650. "required": [
  25651. "server"
  25652. ],
  25653. "additionalProperties": false
  25654. }
  25655. },
  25656. "required": [
  25657. "id",
  25658. "created",
  25659. "type",
  25660. "data"
  25661. ],
  25662. "additionalProperties": false
  25663. },
  25664. "V2Event.server.connected": {
  25665. "type": "object",
  25666. "properties": {
  25667. "id": {
  25668. "type": "string",
  25669. "allOf": [
  25670. {
  25671. "pattern": "^evt_"
  25672. }
  25673. ]
  25674. },
  25675. "metadata": {
  25676. "anyOf": [
  25677. {
  25678. "type": "object"
  25679. },
  25680. {
  25681. "type": "null"
  25682. }
  25683. ]
  25684. },
  25685. "location": {
  25686. "anyOf": [
  25687. {
  25688. "$ref": "#/components/schemas/Location.Ref"
  25689. },
  25690. {
  25691. "type": "null"
  25692. }
  25693. ]
  25694. },
  25695. "type": {
  25696. "type": "string",
  25697. "enum": [
  25698. "server.connected"
  25699. ]
  25700. },
  25701. "data": {
  25702. "anyOf": [
  25703. {
  25704. "type": "object"
  25705. },
  25706. {
  25707. "type": "array"
  25708. }
  25709. ]
  25710. }
  25711. },
  25712. "required": [
  25713. "id",
  25714. "type",
  25715. "data"
  25716. ],
  25717. "additionalProperties": false
  25718. },
  25719. "V2Event": {
  25720. "anyOf": [
  25721. {
  25722. "$ref": "#/components/schemas/models-dev.refreshed"
  25723. },
  25724. {
  25725. "$ref": "#/components/schemas/integration.updated"
  25726. },
  25727. {
  25728. "$ref": "#/components/schemas/integration.connection.updated"
  25729. },
  25730. {
  25731. "$ref": "#/components/schemas/catalog.updated"
  25732. },
  25733. {
  25734. "$ref": "#/components/schemas/agent.updated"
  25735. },
  25736. {
  25737. "$ref": "#/components/schemas/session.created"
  25738. },
  25739. {
  25740. "$ref": "#/components/schemas/session.agent.selected"
  25741. },
  25742. {
  25743. "$ref": "#/components/schemas/session.model.selected"
  25744. },
  25745. {
  25746. "$ref": "#/components/schemas/session.moved"
  25747. },
  25748. {
  25749. "$ref": "#/components/schemas/session.renamed"
  25750. },
  25751. {
  25752. "$ref": "#/components/schemas/session.usage.updated"
  25753. },
  25754. {
  25755. "$ref": "#/components/schemas/session.deleted"
  25756. },
  25757. {
  25758. "$ref": "#/components/schemas/session.forked"
  25759. },
  25760. {
  25761. "$ref": "#/components/schemas/session.input.promoted"
  25762. },
  25763. {
  25764. "$ref": "#/components/schemas/session.input.admitted"
  25765. },
  25766. {
  25767. "$ref": "#/components/schemas/session.execution.started"
  25768. },
  25769. {
  25770. "$ref": "#/components/schemas/session.execution.succeeded"
  25771. },
  25772. {
  25773. "$ref": "#/components/schemas/session.execution.failed"
  25774. },
  25775. {
  25776. "$ref": "#/components/schemas/session.execution.interrupted"
  25777. },
  25778. {
  25779. "$ref": "#/components/schemas/session.instructions.updated"
  25780. },
  25781. {
  25782. "$ref": "#/components/schemas/session.synthetic"
  25783. },
  25784. {
  25785. "$ref": "#/components/schemas/session.skill.activated"
  25786. },
  25787. {
  25788. "$ref": "#/components/schemas/session.shell.started"
  25789. },
  25790. {
  25791. "$ref": "#/components/schemas/session.shell.ended"
  25792. },
  25793. {
  25794. "$ref": "#/components/schemas/session.step.started"
  25795. },
  25796. {
  25797. "$ref": "#/components/schemas/session.step.ended"
  25798. },
  25799. {
  25800. "$ref": "#/components/schemas/session.step.failed"
  25801. },
  25802. {
  25803. "$ref": "#/components/schemas/session.text.started"
  25804. },
  25805. {
  25806. "$ref": "#/components/schemas/session.text.delta"
  25807. },
  25808. {
  25809. "$ref": "#/components/schemas/session.text.ended"
  25810. },
  25811. {
  25812. "$ref": "#/components/schemas/session.reasoning.started"
  25813. },
  25814. {
  25815. "$ref": "#/components/schemas/session.reasoning.delta"
  25816. },
  25817. {
  25818. "$ref": "#/components/schemas/session.reasoning.ended"
  25819. },
  25820. {
  25821. "$ref": "#/components/schemas/session.tool.input.started"
  25822. },
  25823. {
  25824. "$ref": "#/components/schemas/session.tool.input.delta"
  25825. },
  25826. {
  25827. "$ref": "#/components/schemas/session.tool.input.ended"
  25828. },
  25829. {
  25830. "$ref": "#/components/schemas/session.tool.called"
  25831. },
  25832. {
  25833. "$ref": "#/components/schemas/session.tool.progress"
  25834. },
  25835. {
  25836. "$ref": "#/components/schemas/session.tool.success"
  25837. },
  25838. {
  25839. "$ref": "#/components/schemas/session.tool.failed"
  25840. },
  25841. {
  25842. "$ref": "#/components/schemas/session.retry.scheduled"
  25843. },
  25844. {
  25845. "$ref": "#/components/schemas/session.compaction.admitted"
  25846. },
  25847. {
  25848. "$ref": "#/components/schemas/session.compaction.started"
  25849. },
  25850. {
  25851. "$ref": "#/components/schemas/session.compaction.delta"
  25852. },
  25853. {
  25854. "$ref": "#/components/schemas/session.compaction.ended"
  25855. },
  25856. {
  25857. "$ref": "#/components/schemas/session.compaction.failed"
  25858. },
  25859. {
  25860. "$ref": "#/components/schemas/session.revert.staged"
  25861. },
  25862. {
  25863. "$ref": "#/components/schemas/session.revert.cleared"
  25864. },
  25865. {
  25866. "$ref": "#/components/schemas/session.revert.committed"
  25867. },
  25868. {
  25869. "$ref": "#/components/schemas/filesystem.changed"
  25870. },
  25871. {
  25872. "$ref": "#/components/schemas/reference.updated"
  25873. },
  25874. {
  25875. "$ref": "#/components/schemas/permission.asked"
  25876. },
  25877. {
  25878. "$ref": "#/components/schemas/permission.replied"
  25879. },
  25880. {
  25881. "$ref": "#/components/schemas/plugin.added"
  25882. },
  25883. {
  25884. "$ref": "#/components/schemas/plugin.updated"
  25885. },
  25886. {
  25887. "$ref": "#/components/schemas/project.directories.updated"
  25888. },
  25889. {
  25890. "$ref": "#/components/schemas/command.updated"
  25891. },
  25892. {
  25893. "$ref": "#/components/schemas/config.updated"
  25894. },
  25895. {
  25896. "$ref": "#/components/schemas/skill.updated"
  25897. },
  25898. {
  25899. "$ref": "#/components/schemas/pty.created"
  25900. },
  25901. {
  25902. "$ref": "#/components/schemas/pty.updated"
  25903. },
  25904. {
  25905. "$ref": "#/components/schemas/pty.exited"
  25906. },
  25907. {
  25908. "$ref": "#/components/schemas/pty.deleted"
  25909. },
  25910. {
  25911. "$ref": "#/components/schemas/shell.created"
  25912. },
  25913. {
  25914. "$ref": "#/components/schemas/shell.exited"
  25915. },
  25916. {
  25917. "$ref": "#/components/schemas/shell.deleted"
  25918. },
  25919. {
  25920. "$ref": "#/components/schemas/question.asked"
  25921. },
  25922. {
  25923. "$ref": "#/components/schemas/question.replied"
  25924. },
  25925. {
  25926. "$ref": "#/components/schemas/question.rejected"
  25927. },
  25928. {
  25929. "$ref": "#/components/schemas/form.created"
  25930. },
  25931. {
  25932. "$ref": "#/components/schemas/form.replied"
  25933. },
  25934. {
  25935. "$ref": "#/components/schemas/form.cancelled"
  25936. },
  25937. {
  25938. "$ref": "#/components/schemas/websearch.updated"
  25939. },
  25940. {
  25941. "$ref": "#/components/schemas/session.status"
  25942. },
  25943. {
  25944. "$ref": "#/components/schemas/session.idle"
  25945. },
  25946. {
  25947. "$ref": "#/components/schemas/tui.prompt.append"
  25948. },
  25949. {
  25950. "$ref": "#/components/schemas/tui.command.execute"
  25951. },
  25952. {
  25953. "$ref": "#/components/schemas/tui.toast.show"
  25954. },
  25955. {
  25956. "$ref": "#/components/schemas/tui.session.select"
  25957. },
  25958. {
  25959. "$ref": "#/components/schemas/installation.updated"
  25960. },
  25961. {
  25962. "$ref": "#/components/schemas/installation.update-available"
  25963. },
  25964. {
  25965. "$ref": "#/components/schemas/vcs.branch.updated"
  25966. },
  25967. {
  25968. "$ref": "#/components/schemas/mcp.status.changed"
  25969. },
  25970. {
  25971. "$ref": "#/components/schemas/mcp.resources.changed"
  25972. },
  25973. {
  25974. "$ref": "#/components/schemas/V2Event.server.connected"
  25975. }
  25976. ]
  25977. },
  25978. "V2EventJsonString": {
  25979. "type": "string",
  25980. "contentSchema": {
  25981. "$ref": "#/components/schemas/V2Event"
  25982. },
  25983. "contentMediaType": "application/json"
  25984. },
  25985. "PtyNotFoundError": {
  25986. "type": "object",
  25987. "properties": {
  25988. "_tag": {
  25989. "type": "string",
  25990. "enum": [
  25991. "PtyNotFoundError"
  25992. ]
  25993. },
  25994. "ptyID": {
  25995. "type": "string"
  25996. },
  25997. "message": {
  25998. "type": "string"
  25999. }
  26000. },
  26001. "required": [
  26002. "_tag",
  26003. "ptyID",
  26004. "message"
  26005. ],
  26006. "additionalProperties": false
  26007. },
  26008. "PtyTicket.ConnectToken": {
  26009. "type": "object",
  26010. "properties": {
  26011. "ticket": {
  26012. "type": "string"
  26013. },
  26014. "expires_in": {
  26015. "type": "integer",
  26016. "allOf": [
  26017. {
  26018. "exclusiveMinimum": 0
  26019. }
  26020. ]
  26021. }
  26022. },
  26023. "required": [
  26024. "ticket",
  26025. "expires_in"
  26026. ],
  26027. "additionalProperties": false
  26028. },
  26029. "ForbiddenError": {
  26030. "type": "object",
  26031. "properties": {
  26032. "_tag": {
  26033. "type": "string",
  26034. "enum": [
  26035. "ForbiddenError"
  26036. ]
  26037. },
  26038. "message": {
  26039. "type": "string"
  26040. }
  26041. },
  26042. "required": [
  26043. "_tag",
  26044. "message"
  26045. ],
  26046. "additionalProperties": false
  26047. },
  26048. "Shell.Info1": {
  26049. "type": "object",
  26050. "properties": {
  26051. "id": {
  26052. "type": "string",
  26053. "allOf": [
  26054. {
  26055. "pattern": "^sh_"
  26056. }
  26057. ]
  26058. },
  26059. "status": {
  26060. "type": "string",
  26061. "enum": [
  26062. "running",
  26063. "exited",
  26064. "timeout",
  26065. "killed"
  26066. ]
  26067. },
  26068. "command": {
  26069. "type": "string"
  26070. },
  26071. "cwd": {
  26072. "type": "string"
  26073. },
  26074. "shell": {
  26075. "type": "string"
  26076. },
  26077. "file": {
  26078. "type": "string"
  26079. },
  26080. "pid": {
  26081. "type": "integer",
  26082. "allOf": [
  26083. {
  26084. "minimum": 0
  26085. }
  26086. ]
  26087. },
  26088. "exit": {
  26089. "type": "number"
  26090. },
  26091. "metadata": {
  26092. "type": "object"
  26093. },
  26094. "time": {
  26095. "type": "object",
  26096. "properties": {
  26097. "started": {
  26098. "type": "number"
  26099. },
  26100. "completed": {
  26101. "type": "number"
  26102. }
  26103. },
  26104. "required": [
  26105. "started"
  26106. ],
  26107. "additionalProperties": false
  26108. }
  26109. },
  26110. "required": [
  26111. "id",
  26112. "status",
  26113. "command",
  26114. "cwd",
  26115. "shell",
  26116. "file",
  26117. "metadata",
  26118. "time"
  26119. ],
  26120. "additionalProperties": false
  26121. },
  26122. "ShellNotFoundError": {
  26123. "type": "object",
  26124. "properties": {
  26125. "_tag": {
  26126. "type": "string",
  26127. "enum": [
  26128. "ShellNotFoundError"
  26129. ]
  26130. },
  26131. "id": {
  26132. "type": "string"
  26133. },
  26134. "message": {
  26135. "type": "string"
  26136. }
  26137. },
  26138. "required": [
  26139. "_tag",
  26140. "id",
  26141. "message"
  26142. ],
  26143. "additionalProperties": false
  26144. },
  26145. "Question.Request": {
  26146. "type": "object",
  26147. "properties": {
  26148. "id": {
  26149. "type": "string",
  26150. "allOf": [
  26151. {
  26152. "pattern": "^que"
  26153. }
  26154. ]
  26155. },
  26156. "sessionID": {
  26157. "type": "string",
  26158. "allOf": [
  26159. {
  26160. "pattern": "^ses"
  26161. }
  26162. ]
  26163. },
  26164. "questions": {
  26165. "type": "array",
  26166. "items": {
  26167. "$ref": "#/components/schemas/Question.Info"
  26168. },
  26169. "description": "Questions to ask"
  26170. },
  26171. "tool": {
  26172. "$ref": "#/components/schemas/Question.Tool"
  26173. }
  26174. },
  26175. "required": [
  26176. "id",
  26177. "sessionID",
  26178. "questions"
  26179. ],
  26180. "additionalProperties": false
  26181. },
  26182. "Question.Reply": {
  26183. "type": "object",
  26184. "properties": {
  26185. "answers": {
  26186. "type": "array",
  26187. "items": {
  26188. "$ref": "#/components/schemas/Question.Answer"
  26189. },
  26190. "description": "User answers in order of questions (each answer is an array of selected labels)"
  26191. }
  26192. },
  26193. "required": [
  26194. "answers"
  26195. ],
  26196. "additionalProperties": false
  26197. },
  26198. "QuestionNotFoundError": {
  26199. "type": "object",
  26200. "properties": {
  26201. "_tag": {
  26202. "type": "string",
  26203. "enum": [
  26204. "QuestionNotFoundError"
  26205. ]
  26206. },
  26207. "requestID": {
  26208. "type": "string"
  26209. },
  26210. "message": {
  26211. "type": "string"
  26212. }
  26213. },
  26214. "required": [
  26215. "_tag",
  26216. "requestID",
  26217. "message"
  26218. ],
  26219. "additionalProperties": false
  26220. },
  26221. "Reference.LocalSource": {
  26222. "type": "object",
  26223. "properties": {
  26224. "type": {
  26225. "type": "string",
  26226. "enum": [
  26227. "local"
  26228. ]
  26229. },
  26230. "path": {
  26231. "type": "string"
  26232. },
  26233. "description": {
  26234. "type": "string"
  26235. },
  26236. "hidden": {
  26237. "type": "boolean"
  26238. }
  26239. },
  26240. "required": [
  26241. "type",
  26242. "path"
  26243. ],
  26244. "additionalProperties": false
  26245. },
  26246. "Reference.GitSource": {
  26247. "type": "object",
  26248. "properties": {
  26249. "type": {
  26250. "type": "string",
  26251. "enum": [
  26252. "git"
  26253. ]
  26254. },
  26255. "repository": {
  26256. "type": "string"
  26257. },
  26258. "branch": {
  26259. "type": "string"
  26260. },
  26261. "description": {
  26262. "type": "string"
  26263. },
  26264. "hidden": {
  26265. "type": "boolean"
  26266. }
  26267. },
  26268. "required": [
  26269. "type",
  26270. "repository"
  26271. ],
  26272. "additionalProperties": false
  26273. },
  26274. "Reference.Source": {
  26275. "anyOf": [
  26276. {
  26277. "$ref": "#/components/schemas/Reference.LocalSource"
  26278. },
  26279. {
  26280. "$ref": "#/components/schemas/Reference.GitSource"
  26281. }
  26282. ]
  26283. },
  26284. "Reference.Info": {
  26285. "type": "object",
  26286. "properties": {
  26287. "name": {
  26288. "type": "string"
  26289. },
  26290. "path": {
  26291. "type": "string"
  26292. },
  26293. "description": {
  26294. "type": "string"
  26295. },
  26296. "hidden": {
  26297. "type": "boolean"
  26298. },
  26299. "source": {
  26300. "$ref": "#/components/schemas/Reference.Source"
  26301. }
  26302. },
  26303. "required": [
  26304. "name",
  26305. "path",
  26306. "source"
  26307. ],
  26308. "additionalProperties": false
  26309. },
  26310. "ProjectCopy.Copy": {
  26311. "type": "object",
  26312. "properties": {
  26313. "directory": {
  26314. "type": "string"
  26315. }
  26316. },
  26317. "required": [
  26318. "directory"
  26319. ],
  26320. "additionalProperties": false
  26321. },
  26322. "ProjectCopyError": {
  26323. "type": "object",
  26324. "properties": {
  26325. "name": {
  26326. "type": "string",
  26327. "enum": [
  26328. "ProjectCopyError"
  26329. ]
  26330. },
  26331. "data": {
  26332. "type": "object",
  26333. "properties": {
  26334. "message": {
  26335. "type": "string"
  26336. },
  26337. "forceRequired": {
  26338. "anyOf": [
  26339. {
  26340. "type": "boolean"
  26341. },
  26342. {
  26343. "type": "null"
  26344. }
  26345. ]
  26346. }
  26347. },
  26348. "required": [
  26349. "message"
  26350. ],
  26351. "additionalProperties": false
  26352. }
  26353. },
  26354. "required": [
  26355. "name",
  26356. "data"
  26357. ],
  26358. "additionalProperties": false
  26359. },
  26360. "Vcs.Branch": {
  26361. "type": "object",
  26362. "properties": {
  26363. "current": {
  26364. "type": "string"
  26365. },
  26366. "default": {
  26367. "type": "string"
  26368. }
  26369. },
  26370. "additionalProperties": false
  26371. },
  26372. "Vcs.Info": {
  26373. "type": "object",
  26374. "properties": {
  26375. "branch": {
  26376. "$ref": "#/components/schemas/Vcs.Branch"
  26377. }
  26378. },
  26379. "required": [
  26380. "branch"
  26381. ],
  26382. "additionalProperties": false
  26383. },
  26384. "Vcs.FileStatus": {
  26385. "type": "object",
  26386. "properties": {
  26387. "file": {
  26388. "type": "string"
  26389. },
  26390. "additions": {
  26391. "type": "integer",
  26392. "allOf": [
  26393. {
  26394. "minimum": 0
  26395. }
  26396. ]
  26397. },
  26398. "deletions": {
  26399. "type": "integer",
  26400. "allOf": [
  26401. {
  26402. "minimum": 0
  26403. }
  26404. ]
  26405. },
  26406. "status": {
  26407. "type": "string",
  26408. "enum": [
  26409. "added",
  26410. "deleted",
  26411. "modified"
  26412. ]
  26413. }
  26414. },
  26415. "required": [
  26416. "file",
  26417. "additions",
  26418. "deletions",
  26419. "status"
  26420. ],
  26421. "additionalProperties": false
  26422. },
  26423. "Vcs.Mode": {
  26424. "type": "string",
  26425. "enum": [
  26426. "working",
  26427. "branch"
  26428. ]
  26429. },
  26430. "WebSearch.Provider": {
  26431. "type": "object",
  26432. "properties": {
  26433. "id": {
  26434. "type": "string"
  26435. },
  26436. "name": {
  26437. "type": "string"
  26438. }
  26439. },
  26440. "required": [
  26441. "id",
  26442. "name"
  26443. ],
  26444. "additionalProperties": false
  26445. },
  26446. "WebSearch.Result": {
  26447. "type": "object",
  26448. "properties": {
  26449. "url": {
  26450. "type": "string"
  26451. },
  26452. "title": {
  26453. "type": "string"
  26454. },
  26455. "content": {
  26456. "type": "string"
  26457. },
  26458. "time": {
  26459. "type": "object",
  26460. "properties": {
  26461. "published": {
  26462. "type": "number"
  26463. }
  26464. },
  26465. "additionalProperties": false
  26466. }
  26467. },
  26468. "required": [
  26469. "url",
  26470. "time"
  26471. ],
  26472. "additionalProperties": false
  26473. },
  26474. "WebSearch.Response": {
  26475. "type": "object",
  26476. "properties": {
  26477. "providerID": {
  26478. "type": "string"
  26479. },
  26480. "results": {
  26481. "type": "array",
  26482. "items": {
  26483. "$ref": "#/components/schemas/WebSearch.Result"
  26484. }
  26485. }
  26486. },
  26487. "required": [
  26488. "providerID",
  26489. "results"
  26490. ],
  26491. "additionalProperties": false
  26492. },
  26493. "Config.ModelSelection": {
  26494. "anyOf": [
  26495. {
  26496. "type": "string",
  26497. "allOf": [
  26498. {
  26499. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  26500. }
  26501. ]
  26502. },
  26503. {
  26504. "type": "object",
  26505. "properties": {
  26506. "providerID": {
  26507. "type": "string",
  26508. "allOf": [
  26509. {
  26510. "pattern": "^[^/#]+$"
  26511. }
  26512. ]
  26513. },
  26514. "model": {
  26515. "type": "string",
  26516. "allOf": [
  26517. {
  26518. "pattern": "^[^#]+$"
  26519. }
  26520. ]
  26521. },
  26522. "variant": {
  26523. "anyOf": [
  26524. {
  26525. "type": "string",
  26526. "allOf": [
  26527. {
  26528. "pattern": "^[^#]+$"
  26529. }
  26530. ]
  26531. },
  26532. {
  26533. "type": "null"
  26534. }
  26535. ]
  26536. }
  26537. },
  26538. "required": [
  26539. "providerID",
  26540. "model"
  26541. ],
  26542. "additionalProperties": false
  26543. }
  26544. ]
  26545. },
  26546. "Config.Provider.Request": {
  26547. "type": "object",
  26548. "properties": {
  26549. "headers": {
  26550. "anyOf": [
  26551. {
  26552. "type": "object",
  26553. "additionalProperties": {
  26554. "type": "string"
  26555. }
  26556. },
  26557. {
  26558. "type": "null"
  26559. }
  26560. ]
  26561. },
  26562. "body": {
  26563. "anyOf": [
  26564. {
  26565. "type": "object"
  26566. },
  26567. {
  26568. "type": "null"
  26569. }
  26570. ]
  26571. }
  26572. },
  26573. "additionalProperties": false
  26574. },
  26575. "Config.Agent": {
  26576. "type": "object",
  26577. "properties": {
  26578. "model": {
  26579. "anyOf": [
  26580. {
  26581. "$ref": "#/components/schemas/Config.ModelSelection"
  26582. },
  26583. {
  26584. "type": "null"
  26585. }
  26586. ]
  26587. },
  26588. "request": {
  26589. "anyOf": [
  26590. {
  26591. "$ref": "#/components/schemas/Config.Provider.Request"
  26592. },
  26593. {
  26594. "type": "null"
  26595. }
  26596. ]
  26597. },
  26598. "system": {
  26599. "anyOf": [
  26600. {
  26601. "type": "string"
  26602. },
  26603. {
  26604. "type": "null"
  26605. }
  26606. ]
  26607. },
  26608. "description": {
  26609. "anyOf": [
  26610. {
  26611. "type": "string"
  26612. },
  26613. {
  26614. "type": "null"
  26615. }
  26616. ]
  26617. },
  26618. "mode": {
  26619. "anyOf": [
  26620. {
  26621. "type": "string",
  26622. "enum": [
  26623. "subagent",
  26624. "primary",
  26625. "all"
  26626. ]
  26627. },
  26628. {
  26629. "type": "null"
  26630. }
  26631. ]
  26632. },
  26633. "hidden": {
  26634. "anyOf": [
  26635. {
  26636. "type": "boolean"
  26637. },
  26638. {
  26639. "type": "null"
  26640. }
  26641. ]
  26642. },
  26643. "color": {
  26644. "anyOf": [
  26645. {
  26646. "type": "string",
  26647. "allOf": [
  26648. {
  26649. "pattern": "^#[0-9a-fA-F]{6}$"
  26650. }
  26651. ]
  26652. },
  26653. {
  26654. "type": "null"
  26655. }
  26656. ]
  26657. },
  26658. "steps": {
  26659. "anyOf": [
  26660. {
  26661. "type": "integer",
  26662. "allOf": [
  26663. {
  26664. "exclusiveMinimum": 0
  26665. }
  26666. ]
  26667. },
  26668. {
  26669. "type": "null"
  26670. }
  26671. ]
  26672. },
  26673. "disabled": {
  26674. "anyOf": [
  26675. {
  26676. "type": "boolean"
  26677. },
  26678. {
  26679. "type": "null"
  26680. }
  26681. ]
  26682. },
  26683. "permissions": {
  26684. "anyOf": [
  26685. {
  26686. "$ref": "#/components/schemas/Permission.Ruleset"
  26687. },
  26688. {
  26689. "type": "null"
  26690. }
  26691. ]
  26692. }
  26693. },
  26694. "additionalProperties": false
  26695. },
  26696. "Config.Watcher": {
  26697. "type": "object",
  26698. "properties": {
  26699. "ignore": {
  26700. "anyOf": [
  26701. {
  26702. "type": "array",
  26703. "items": {
  26704. "type": "string"
  26705. }
  26706. },
  26707. {
  26708. "type": "null"
  26709. }
  26710. ]
  26711. }
  26712. },
  26713. "additionalProperties": false
  26714. },
  26715. "Config.Formatter.Entry": {
  26716. "type": "object",
  26717. "properties": {
  26718. "disabled": {
  26719. "anyOf": [
  26720. {
  26721. "type": "boolean"
  26722. },
  26723. {
  26724. "type": "null"
  26725. }
  26726. ]
  26727. },
  26728. "command": {
  26729. "anyOf": [
  26730. {
  26731. "type": "array",
  26732. "items": {
  26733. "type": "string"
  26734. }
  26735. },
  26736. {
  26737. "type": "null"
  26738. }
  26739. ]
  26740. },
  26741. "environment": {
  26742. "anyOf": [
  26743. {
  26744. "type": "object",
  26745. "additionalProperties": {
  26746. "type": "string"
  26747. }
  26748. },
  26749. {
  26750. "type": "null"
  26751. }
  26752. ]
  26753. },
  26754. "extensions": {
  26755. "anyOf": [
  26756. {
  26757. "type": "array",
  26758. "items": {
  26759. "type": "string"
  26760. }
  26761. },
  26762. {
  26763. "type": "null"
  26764. }
  26765. ]
  26766. }
  26767. },
  26768. "additionalProperties": false
  26769. },
  26770. "Config.LSP.Server": {
  26771. "type": "object",
  26772. "properties": {
  26773. "command": {
  26774. "type": "array",
  26775. "items": {
  26776. "type": "string"
  26777. }
  26778. },
  26779. "extensions": {
  26780. "anyOf": [
  26781. {
  26782. "type": "array",
  26783. "items": {
  26784. "type": "string"
  26785. }
  26786. },
  26787. {
  26788. "type": "null"
  26789. }
  26790. ]
  26791. },
  26792. "disabled": {
  26793. "anyOf": [
  26794. {
  26795. "type": "boolean"
  26796. },
  26797. {
  26798. "type": "null"
  26799. }
  26800. ]
  26801. },
  26802. "env": {
  26803. "anyOf": [
  26804. {
  26805. "type": "object",
  26806. "additionalProperties": {
  26807. "type": "string"
  26808. }
  26809. },
  26810. {
  26811. "type": "null"
  26812. }
  26813. ]
  26814. },
  26815. "initialization": {
  26816. "anyOf": [
  26817. {
  26818. "type": "object"
  26819. },
  26820. {
  26821. "type": "null"
  26822. }
  26823. ]
  26824. }
  26825. },
  26826. "required": [
  26827. "command"
  26828. ],
  26829. "additionalProperties": false
  26830. },
  26831. "Config.Media.Image": {
  26832. "type": "object",
  26833. "properties": {
  26834. "auto_resize": {
  26835. "anyOf": [
  26836. {
  26837. "type": "boolean"
  26838. },
  26839. {
  26840. "type": "null"
  26841. }
  26842. ]
  26843. },
  26844. "max_width": {
  26845. "anyOf": [
  26846. {
  26847. "type": "integer",
  26848. "allOf": [
  26849. {
  26850. "exclusiveMinimum": 0
  26851. }
  26852. ]
  26853. },
  26854. {
  26855. "type": "null"
  26856. }
  26857. ]
  26858. },
  26859. "max_height": {
  26860. "anyOf": [
  26861. {
  26862. "type": "integer",
  26863. "allOf": [
  26864. {
  26865. "exclusiveMinimum": 0
  26866. }
  26867. ]
  26868. },
  26869. {
  26870. "type": "null"
  26871. }
  26872. ]
  26873. },
  26874. "max_base64_bytes": {
  26875. "anyOf": [
  26876. {
  26877. "type": "integer",
  26878. "allOf": [
  26879. {
  26880. "exclusiveMinimum": 0
  26881. }
  26882. ]
  26883. },
  26884. {
  26885. "type": "null"
  26886. }
  26887. ]
  26888. }
  26889. },
  26890. "additionalProperties": false
  26891. },
  26892. "Config.Media": {
  26893. "type": "object",
  26894. "properties": {
  26895. "image": {
  26896. "anyOf": [
  26897. {
  26898. "$ref": "#/components/schemas/Config.Media.Image"
  26899. },
  26900. {
  26901. "type": "null"
  26902. }
  26903. ]
  26904. }
  26905. },
  26906. "additionalProperties": false
  26907. },
  26908. "Config.ToolOutput": {
  26909. "type": "object",
  26910. "properties": {
  26911. "max_lines": {
  26912. "anyOf": [
  26913. {
  26914. "type": "integer",
  26915. "allOf": [
  26916. {
  26917. "exclusiveMinimum": 0
  26918. }
  26919. ]
  26920. },
  26921. {
  26922. "type": "null"
  26923. }
  26924. ]
  26925. },
  26926. "max_bytes": {
  26927. "anyOf": [
  26928. {
  26929. "type": "integer",
  26930. "allOf": [
  26931. {
  26932. "exclusiveMinimum": 0
  26933. }
  26934. ]
  26935. },
  26936. {
  26937. "type": "null"
  26938. }
  26939. ]
  26940. }
  26941. },
  26942. "additionalProperties": false
  26943. },
  26944. "Config.MCP": {
  26945. "type": "object",
  26946. "properties": {
  26947. "timeout": {
  26948. "anyOf": [
  26949. {
  26950. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  26951. },
  26952. {
  26953. "type": "null"
  26954. }
  26955. ]
  26956. },
  26957. "servers": {
  26958. "anyOf": [
  26959. {
  26960. "type": "object",
  26961. "additionalProperties": {
  26962. "anyOf": [
  26963. {
  26964. "$ref": "#/components/schemas/Mcp.LocalConfig"
  26965. },
  26966. {
  26967. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  26968. }
  26969. ]
  26970. }
  26971. },
  26972. {
  26973. "type": "null"
  26974. }
  26975. ]
  26976. }
  26977. },
  26978. "additionalProperties": false
  26979. },
  26980. "Config.Compaction.Keep": {
  26981. "type": "object",
  26982. "properties": {
  26983. "tokens": {
  26984. "anyOf": [
  26985. {
  26986. "type": "integer",
  26987. "allOf": [
  26988. {
  26989. "minimum": 0
  26990. }
  26991. ]
  26992. },
  26993. {
  26994. "type": "null"
  26995. }
  26996. ]
  26997. }
  26998. },
  26999. "additionalProperties": false
  27000. },
  27001. "Config.Compaction": {
  27002. "type": "object",
  27003. "properties": {
  27004. "auto": {
  27005. "anyOf": [
  27006. {
  27007. "type": "boolean"
  27008. },
  27009. {
  27010. "type": "null"
  27011. }
  27012. ]
  27013. },
  27014. "keep": {
  27015. "anyOf": [
  27016. {
  27017. "$ref": "#/components/schemas/Config.Compaction.Keep"
  27018. },
  27019. {
  27020. "type": "null"
  27021. }
  27022. ]
  27023. },
  27024. "buffer": {
  27025. "anyOf": [
  27026. {
  27027. "type": "integer",
  27028. "allOf": [
  27029. {
  27030. "minimum": 0
  27031. }
  27032. ]
  27033. },
  27034. {
  27035. "type": "null"
  27036. }
  27037. ]
  27038. }
  27039. },
  27040. "additionalProperties": false
  27041. },
  27042. "Config.Command": {
  27043. "type": "object",
  27044. "properties": {
  27045. "template": {
  27046. "type": "string"
  27047. },
  27048. "description": {
  27049. "anyOf": [
  27050. {
  27051. "type": "string"
  27052. },
  27053. {
  27054. "type": "null"
  27055. }
  27056. ]
  27057. },
  27058. "agent": {
  27059. "anyOf": [
  27060. {
  27061. "type": "string"
  27062. },
  27063. {
  27064. "type": "null"
  27065. }
  27066. ]
  27067. },
  27068. "model": {
  27069. "anyOf": [
  27070. {
  27071. "$ref": "#/components/schemas/Config.ModelSelection"
  27072. },
  27073. {
  27074. "type": "null"
  27075. }
  27076. ]
  27077. },
  27078. "subtask": {
  27079. "anyOf": [
  27080. {
  27081. "type": "boolean"
  27082. },
  27083. {
  27084. "type": "null"
  27085. }
  27086. ]
  27087. }
  27088. },
  27089. "required": [
  27090. "template"
  27091. ],
  27092. "additionalProperties": false
  27093. },
  27094. "Config.Reference.Git": {
  27095. "type": "object",
  27096. "properties": {
  27097. "repository": {
  27098. "type": "string"
  27099. },
  27100. "branch": {
  27101. "anyOf": [
  27102. {
  27103. "type": "string"
  27104. },
  27105. {
  27106. "type": "null"
  27107. }
  27108. ]
  27109. },
  27110. "description": {
  27111. "anyOf": [
  27112. {
  27113. "type": "string"
  27114. },
  27115. {
  27116. "type": "null"
  27117. }
  27118. ]
  27119. },
  27120. "hidden": {
  27121. "anyOf": [
  27122. {
  27123. "type": "boolean"
  27124. },
  27125. {
  27126. "type": "null"
  27127. }
  27128. ]
  27129. }
  27130. },
  27131. "required": [
  27132. "repository"
  27133. ],
  27134. "additionalProperties": false
  27135. },
  27136. "Config.Reference.Local": {
  27137. "type": "object",
  27138. "properties": {
  27139. "path": {
  27140. "type": "string"
  27141. },
  27142. "description": {
  27143. "anyOf": [
  27144. {
  27145. "type": "string"
  27146. },
  27147. {
  27148. "type": "null"
  27149. }
  27150. ]
  27151. },
  27152. "hidden": {
  27153. "anyOf": [
  27154. {
  27155. "type": "boolean"
  27156. },
  27157. {
  27158. "type": "null"
  27159. }
  27160. ]
  27161. }
  27162. },
  27163. "required": [
  27164. "path"
  27165. ],
  27166. "additionalProperties": false
  27167. },
  27168. "ConfigWebSearch.Info": {
  27169. "type": "object",
  27170. "properties": {
  27171. "provider": {
  27172. "type": "string"
  27173. }
  27174. },
  27175. "required": [
  27176. "provider"
  27177. ],
  27178. "additionalProperties": false
  27179. },
  27180. "Config.Plugin.Entry": {
  27181. "type": "object",
  27182. "properties": {
  27183. "package": {
  27184. "type": "string"
  27185. },
  27186. "options": {
  27187. "anyOf": [
  27188. {
  27189. "type": "object"
  27190. },
  27191. {
  27192. "type": "null"
  27193. }
  27194. ]
  27195. }
  27196. },
  27197. "required": [
  27198. "package"
  27199. ],
  27200. "additionalProperties": false
  27201. },
  27202. "Config.Warming": {
  27203. "type": "object",
  27204. "properties": {
  27205. "prompt": {
  27206. "anyOf": [
  27207. {
  27208. "type": "string"
  27209. },
  27210. {
  27211. "type": "null"
  27212. }
  27213. ],
  27214. "description": "Prompt sent for keep-alive requests"
  27215. },
  27216. "interval": {
  27217. "anyOf": [
  27218. {
  27219. "type": "string"
  27220. },
  27221. {
  27222. "type": "null"
  27223. }
  27224. ],
  27225. "description": "Idle time between keep-alive requests (default: \"4 minutes\")"
  27226. },
  27227. "duration": {
  27228. "anyOf": [
  27229. {
  27230. "type": "string"
  27231. },
  27232. {
  27233. "type": "null"
  27234. }
  27235. ],
  27236. "description": "Time after the last active request to keep a session warm (default: \"30 minutes\")"
  27237. }
  27238. },
  27239. "additionalProperties": false
  27240. },
  27241. "Config.Model.Cost.Cache": {
  27242. "type": "object",
  27243. "properties": {
  27244. "read": {
  27245. "anyOf": [
  27246. {
  27247. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  27248. },
  27249. {
  27250. "type": "null"
  27251. }
  27252. ]
  27253. },
  27254. "write": {
  27255. "anyOf": [
  27256. {
  27257. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  27258. },
  27259. {
  27260. "type": "null"
  27261. }
  27262. ]
  27263. }
  27264. },
  27265. "additionalProperties": false
  27266. },
  27267. "Config.Model.Cost": {
  27268. "type": "object",
  27269. "properties": {
  27270. "tier": {
  27271. "anyOf": [
  27272. {
  27273. "type": "object",
  27274. "properties": {
  27275. "type": {
  27276. "type": "string",
  27277. "enum": [
  27278. "context"
  27279. ]
  27280. },
  27281. "size": {
  27282. "type": "integer"
  27283. }
  27284. },
  27285. "required": [
  27286. "type",
  27287. "size"
  27288. ],
  27289. "additionalProperties": false
  27290. },
  27291. {
  27292. "type": "null"
  27293. }
  27294. ]
  27295. },
  27296. "input": {
  27297. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  27298. },
  27299. "output": {
  27300. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  27301. },
  27302. "cache": {
  27303. "anyOf": [
  27304. {
  27305. "$ref": "#/components/schemas/Config.Model.Cost.Cache"
  27306. },
  27307. {
  27308. "type": "null"
  27309. }
  27310. ]
  27311. }
  27312. },
  27313. "required": [
  27314. "input",
  27315. "output"
  27316. ],
  27317. "additionalProperties": false
  27318. },
  27319. "Config.Model.Limit": {
  27320. "type": "object",
  27321. "properties": {
  27322. "context": {
  27323. "anyOf": [
  27324. {
  27325. "type": "integer"
  27326. },
  27327. {
  27328. "type": "null"
  27329. }
  27330. ]
  27331. },
  27332. "input": {
  27333. "anyOf": [
  27334. {
  27335. "type": "integer"
  27336. },
  27337. {
  27338. "type": "null"
  27339. }
  27340. ]
  27341. },
  27342. "output": {
  27343. "anyOf": [
  27344. {
  27345. "type": "integer"
  27346. },
  27347. {
  27348. "type": "null"
  27349. }
  27350. ]
  27351. }
  27352. },
  27353. "additionalProperties": false
  27354. },
  27355. "Config.Model": {
  27356. "type": "object",
  27357. "properties": {
  27358. "modelID": {
  27359. "anyOf": [
  27360. {
  27361. "type": "string"
  27362. },
  27363. {
  27364. "type": "null"
  27365. }
  27366. ]
  27367. },
  27368. "family": {
  27369. "anyOf": [
  27370. {
  27371. "type": "string"
  27372. },
  27373. {
  27374. "type": "null"
  27375. }
  27376. ]
  27377. },
  27378. "name": {
  27379. "anyOf": [
  27380. {
  27381. "type": "string"
  27382. },
  27383. {
  27384. "type": "null"
  27385. }
  27386. ]
  27387. },
  27388. "compatibility": {
  27389. "anyOf": [
  27390. {
  27391. "$ref": "#/components/schemas/Model.Compatibility"
  27392. },
  27393. {
  27394. "type": "null"
  27395. }
  27396. ]
  27397. },
  27398. "package": {
  27399. "anyOf": [
  27400. {
  27401. "type": "string"
  27402. },
  27403. {
  27404. "type": "null"
  27405. }
  27406. ]
  27407. },
  27408. "settings": {
  27409. "anyOf": [
  27410. {
  27411. "type": "object"
  27412. },
  27413. {
  27414. "type": "null"
  27415. }
  27416. ]
  27417. },
  27418. "headers": {
  27419. "anyOf": [
  27420. {
  27421. "type": "object",
  27422. "additionalProperties": {
  27423. "type": "string"
  27424. }
  27425. },
  27426. {
  27427. "type": "null"
  27428. }
  27429. ]
  27430. },
  27431. "body": {
  27432. "anyOf": [
  27433. {
  27434. "type": "object"
  27435. },
  27436. {
  27437. "type": "null"
  27438. }
  27439. ]
  27440. },
  27441. "capabilities": {
  27442. "anyOf": [
  27443. {
  27444. "$ref": "#/components/schemas/Model.Capabilities"
  27445. },
  27446. {
  27447. "type": "null"
  27448. }
  27449. ]
  27450. },
  27451. "variants": {
  27452. "anyOf": [
  27453. {
  27454. "type": "array",
  27455. "items": {
  27456. "type": "object",
  27457. "properties": {
  27458. "id": {
  27459. "type": "string"
  27460. },
  27461. "settings": {
  27462. "anyOf": [
  27463. {
  27464. "type": "object"
  27465. },
  27466. {
  27467. "type": "null"
  27468. }
  27469. ]
  27470. },
  27471. "headers": {
  27472. "anyOf": [
  27473. {
  27474. "type": "object",
  27475. "additionalProperties": {
  27476. "type": "string"
  27477. }
  27478. },
  27479. {
  27480. "type": "null"
  27481. }
  27482. ]
  27483. },
  27484. "body": {
  27485. "anyOf": [
  27486. {
  27487. "type": "object"
  27488. },
  27489. {
  27490. "type": "null"
  27491. }
  27492. ]
  27493. }
  27494. },
  27495. "required": [
  27496. "id"
  27497. ],
  27498. "additionalProperties": false
  27499. }
  27500. },
  27501. {
  27502. "type": "null"
  27503. }
  27504. ]
  27505. },
  27506. "cost": {
  27507. "anyOf": [
  27508. {
  27509. "anyOf": [
  27510. {
  27511. "$ref": "#/components/schemas/Config.Model.Cost"
  27512. },
  27513. {
  27514. "type": "array",
  27515. "items": {
  27516. "$ref": "#/components/schemas/Config.Model.Cost"
  27517. }
  27518. }
  27519. ]
  27520. },
  27521. {
  27522. "type": "null"
  27523. }
  27524. ]
  27525. },
  27526. "disabled": {
  27527. "anyOf": [
  27528. {
  27529. "type": "boolean"
  27530. },
  27531. {
  27532. "type": "null"
  27533. }
  27534. ]
  27535. },
  27536. "limit": {
  27537. "anyOf": [
  27538. {
  27539. "$ref": "#/components/schemas/Config.Model.Limit"
  27540. },
  27541. {
  27542. "type": "null"
  27543. }
  27544. ]
  27545. }
  27546. },
  27547. "additionalProperties": false
  27548. },
  27549. "Config.Provider": {
  27550. "type": "object",
  27551. "properties": {
  27552. "name": {
  27553. "anyOf": [
  27554. {
  27555. "type": "string"
  27556. },
  27557. {
  27558. "type": "null"
  27559. }
  27560. ]
  27561. },
  27562. "env": {
  27563. "anyOf": [
  27564. {
  27565. "type": "array",
  27566. "items": {
  27567. "type": "string"
  27568. }
  27569. },
  27570. {
  27571. "type": "null"
  27572. }
  27573. ]
  27574. },
  27575. "package": {
  27576. "anyOf": [
  27577. {
  27578. "type": "string"
  27579. },
  27580. {
  27581. "type": "null"
  27582. }
  27583. ]
  27584. },
  27585. "settings": {
  27586. "anyOf": [
  27587. {
  27588. "type": "object"
  27589. },
  27590. {
  27591. "type": "null"
  27592. }
  27593. ]
  27594. },
  27595. "headers": {
  27596. "anyOf": [
  27597. {
  27598. "type": "object",
  27599. "additionalProperties": {
  27600. "type": "string"
  27601. }
  27602. },
  27603. {
  27604. "type": "null"
  27605. }
  27606. ]
  27607. },
  27608. "body": {
  27609. "anyOf": [
  27610. {
  27611. "type": "object"
  27612. },
  27613. {
  27614. "type": "null"
  27615. }
  27616. ]
  27617. },
  27618. "models": {
  27619. "anyOf": [
  27620. {
  27621. "type": "object",
  27622. "additionalProperties": {
  27623. "$ref": "#/components/schemas/Config.Model"
  27624. }
  27625. },
  27626. {
  27627. "type": "null"
  27628. }
  27629. ]
  27630. }
  27631. },
  27632. "additionalProperties": false
  27633. },
  27634. "ConfigExperimental.Info": {
  27635. "type": "object",
  27636. "properties": {
  27637. "subagent_depth": {
  27638. "anyOf": [
  27639. {
  27640. "type": "integer",
  27641. "allOf": [
  27642. {
  27643. "minimum": 0
  27644. }
  27645. ]
  27646. },
  27647. {
  27648. "type": "null"
  27649. }
  27650. ],
  27651. "description": "Maximum subagent nesting depth. Defaults to 1."
  27652. },
  27653. "policies": {
  27654. "anyOf": [
  27655. {
  27656. "type": "array",
  27657. "items": {
  27658. "type": "object",
  27659. "properties": {
  27660. "action": {
  27661. "type": "string",
  27662. "enum": [
  27663. "provider.use"
  27664. ]
  27665. },
  27666. "resource": {
  27667. "type": "string"
  27668. },
  27669. "effect": {
  27670. "type": "string",
  27671. "enum": [
  27672. "allow",
  27673. "deny"
  27674. ]
  27675. }
  27676. },
  27677. "required": [
  27678. "action",
  27679. "resource",
  27680. "effect"
  27681. ],
  27682. "additionalProperties": false
  27683. }
  27684. },
  27685. {
  27686. "type": "null"
  27687. }
  27688. ],
  27689. "description": "Ordered policies controlling access to configured resources"
  27690. }
  27691. },
  27692. "additionalProperties": false
  27693. },
  27694. "Config.Info": {
  27695. "type": "object",
  27696. "properties": {
  27697. "$schema": {
  27698. "anyOf": [
  27699. {
  27700. "type": "string"
  27701. },
  27702. {
  27703. "type": "null"
  27704. }
  27705. ],
  27706. "description": "JSON schema reference for configuration validation"
  27707. },
  27708. "shell": {
  27709. "anyOf": [
  27710. {
  27711. "type": "string"
  27712. },
  27713. {
  27714. "type": "null"
  27715. }
  27716. ],
  27717. "description": "Default shell to use for terminal and shell tool execution"
  27718. },
  27719. "model": {
  27720. "anyOf": [
  27721. {
  27722. "$ref": "#/components/schemas/Config.ModelSelection"
  27723. },
  27724. {
  27725. "type": "null"
  27726. }
  27727. ],
  27728. "description": "Default model to use when no session or agent model is selected"
  27729. },
  27730. "default_agent": {
  27731. "anyOf": [
  27732. {
  27733. "type": "string"
  27734. },
  27735. {
  27736. "type": "null"
  27737. }
  27738. ],
  27739. "description": "Default primary agent to use when no session agent is selected"
  27740. },
  27741. "autoupdate": {
  27742. "anyOf": [
  27743. {
  27744. "anyOf": [
  27745. {
  27746. "type": "boolean"
  27747. },
  27748. {
  27749. "type": "string",
  27750. "enum": [
  27751. "notify"
  27752. ]
  27753. }
  27754. ]
  27755. },
  27756. {
  27757. "type": "null"
  27758. }
  27759. ],
  27760. "description": "Automatically update or notify when a new version is available"
  27761. },
  27762. "share": {
  27763. "anyOf": [
  27764. {
  27765. "type": "string",
  27766. "enum": [
  27767. "manual",
  27768. "auto",
  27769. "disabled"
  27770. ]
  27771. },
  27772. {
  27773. "type": "null"
  27774. }
  27775. ],
  27776. "description": "Control whether sessions may be shared manually, automatically, or not at all"
  27777. },
  27778. "enterprise": {
  27779. "anyOf": [
  27780. {
  27781. "type": "object",
  27782. "properties": {
  27783. "url": {
  27784. "anyOf": [
  27785. {
  27786. "type": "string"
  27787. },
  27788. {
  27789. "type": "null"
  27790. }
  27791. ]
  27792. }
  27793. },
  27794. "additionalProperties": false
  27795. },
  27796. {
  27797. "type": "null"
  27798. }
  27799. ],
  27800. "description": "Enterprise sharing service configuration"
  27801. },
  27802. "username": {
  27803. "anyOf": [
  27804. {
  27805. "type": "string"
  27806. },
  27807. {
  27808. "type": "null"
  27809. }
  27810. ],
  27811. "description": "Username displayed in conversations and used for telemetry identity"
  27812. },
  27813. "permissions": {
  27814. "anyOf": [
  27815. {
  27816. "$ref": "#/components/schemas/Permission.Ruleset"
  27817. },
  27818. {
  27819. "type": "null"
  27820. }
  27821. ],
  27822. "description": "Ordered tool permission rules applied to agent tool use"
  27823. },
  27824. "agents": {
  27825. "anyOf": [
  27826. {
  27827. "type": "object",
  27828. "additionalProperties": {
  27829. "$ref": "#/components/schemas/Config.Agent"
  27830. }
  27831. },
  27832. {
  27833. "type": "null"
  27834. }
  27835. ],
  27836. "description": "Named built-in agent overrides and custom agent definitions"
  27837. },
  27838. "snapshots": {
  27839. "anyOf": [
  27840. {
  27841. "type": "boolean"
  27842. },
  27843. {
  27844. "type": "null"
  27845. }
  27846. ],
  27847. "description": "Enable snapshots used for undo and revert behavior"
  27848. },
  27849. "watcher": {
  27850. "anyOf": [
  27851. {
  27852. "$ref": "#/components/schemas/Config.Watcher"
  27853. },
  27854. {
  27855. "type": "null"
  27856. }
  27857. ],
  27858. "description": "Filesystem watcher configuration"
  27859. },
  27860. "formatter": {
  27861. "anyOf": [
  27862. {
  27863. "anyOf": [
  27864. {
  27865. "type": "boolean"
  27866. },
  27867. {
  27868. "type": "object",
  27869. "additionalProperties": {
  27870. "$ref": "#/components/schemas/Config.Formatter.Entry"
  27871. }
  27872. }
  27873. ]
  27874. },
  27875. {
  27876. "type": "null"
  27877. }
  27878. ],
  27879. "description": "Enable built-in formatters or configure formatter overrides"
  27880. },
  27881. "lsp": {
  27882. "anyOf": [
  27883. {
  27884. "anyOf": [
  27885. {
  27886. "type": "boolean"
  27887. },
  27888. {
  27889. "type": "object",
  27890. "additionalProperties": {
  27891. "anyOf": [
  27892. {
  27893. "type": "object",
  27894. "properties": {
  27895. "disabled": {
  27896. "type": "boolean",
  27897. "enum": [
  27898. true
  27899. ]
  27900. }
  27901. },
  27902. "required": [
  27903. "disabled"
  27904. ],
  27905. "additionalProperties": false
  27906. },
  27907. {
  27908. "$ref": "#/components/schemas/Config.LSP.Server"
  27909. }
  27910. ]
  27911. }
  27912. }
  27913. ]
  27914. },
  27915. {
  27916. "type": "null"
  27917. }
  27918. ],
  27919. "description": "Enable built-in language servers or configure server overrides"
  27920. },
  27921. "media": {
  27922. "anyOf": [
  27923. {
  27924. "$ref": "#/components/schemas/Config.Media"
  27925. },
  27926. {
  27927. "type": "null"
  27928. }
  27929. ],
  27930. "description": "Media processing configuration"
  27931. },
  27932. "tool_output": {
  27933. "anyOf": [
  27934. {
  27935. "$ref": "#/components/schemas/Config.ToolOutput"
  27936. },
  27937. {
  27938. "type": "null"
  27939. }
  27940. ],
  27941. "description": "Tool output truncation thresholds"
  27942. },
  27943. "mcp": {
  27944. "anyOf": [
  27945. {
  27946. "$ref": "#/components/schemas/Config.MCP"
  27947. },
  27948. {
  27949. "type": "null"
  27950. }
  27951. ],
  27952. "description": "MCP server configuration"
  27953. },
  27954. "compaction": {
  27955. "anyOf": [
  27956. {
  27957. "$ref": "#/components/schemas/Config.Compaction"
  27958. },
  27959. {
  27960. "type": "null"
  27961. }
  27962. ],
  27963. "description": "Conversation compaction behavior"
  27964. },
  27965. "skills": {
  27966. "anyOf": [
  27967. {
  27968. "type": "array",
  27969. "items": {
  27970. "type": "string"
  27971. }
  27972. },
  27973. {
  27974. "type": "null"
  27975. }
  27976. ],
  27977. "description": "Additional paths or URLs to discover skills from"
  27978. },
  27979. "commands": {
  27980. "anyOf": [
  27981. {
  27982. "type": "object",
  27983. "additionalProperties": {
  27984. "$ref": "#/components/schemas/Config.Command"
  27985. }
  27986. },
  27987. {
  27988. "type": "null"
  27989. }
  27990. ],
  27991. "description": "Named slash command definitions"
  27992. },
  27993. "instructions": {
  27994. "anyOf": [
  27995. {
  27996. "type": "array",
  27997. "items": {
  27998. "type": "string"
  27999. }
  28000. },
  28001. {
  28002. "type": "null"
  28003. }
  28004. ],
  28005. "description": "Additional paths or URLs supplying ambient instructions"
  28006. },
  28007. "references": {
  28008. "anyOf": [
  28009. {
  28010. "type": "object",
  28011. "additionalProperties": {
  28012. "anyOf": [
  28013. {
  28014. "type": "string"
  28015. },
  28016. {
  28017. "$ref": "#/components/schemas/Config.Reference.Git"
  28018. },
  28019. {
  28020. "$ref": "#/components/schemas/Config.Reference.Local"
  28021. }
  28022. ]
  28023. }
  28024. },
  28025. {
  28026. "type": "null"
  28027. }
  28028. ],
  28029. "description": "Named local directories or Git repositories available as external context"
  28030. },
  28031. "websearch": {
  28032. "anyOf": [
  28033. {
  28034. "$ref": "#/components/schemas/ConfigWebSearch.Info"
  28035. },
  28036. {
  28037. "type": "null"
  28038. }
  28039. ],
  28040. "description": "Web search provider selection"
  28041. },
  28042. "plugins": {
  28043. "anyOf": [
  28044. {
  28045. "type": "array",
  28046. "items": {
  28047. "anyOf": [
  28048. {
  28049. "type": "string"
  28050. },
  28051. {
  28052. "$ref": "#/components/schemas/Config.Plugin.Entry"
  28053. }
  28054. ]
  28055. }
  28056. },
  28057. {
  28058. "type": "null"
  28059. }
  28060. ],
  28061. "description": "Ordered plugin enablement directives and external package declarations"
  28062. },
  28063. "warming": {
  28064. "anyOf": [
  28065. {
  28066. "anyOf": [
  28067. {
  28068. "type": "boolean"
  28069. },
  28070. {
  28071. "$ref": "#/components/schemas/Config.Warming"
  28072. }
  28073. ]
  28074. },
  28075. {
  28076. "type": "null"
  28077. }
  28078. ],
  28079. "description": "Keep recently active sessions warm with transient model requests (default: false)"
  28080. },
  28081. "providers": {
  28082. "anyOf": [
  28083. {
  28084. "type": "object",
  28085. "additionalProperties": {
  28086. "$ref": "#/components/schemas/Config.Provider"
  28087. }
  28088. },
  28089. {
  28090. "type": "null"
  28091. }
  28092. ]
  28093. },
  28094. "experimental": {
  28095. "anyOf": [
  28096. {
  28097. "$ref": "#/components/schemas/ConfigExperimental.Info"
  28098. },
  28099. {
  28100. "type": "null"
  28101. }
  28102. ]
  28103. }
  28104. },
  28105. "additionalProperties": false
  28106. },
  28107. "Config.Document": {
  28108. "type": "object",
  28109. "properties": {
  28110. "type": {
  28111. "type": "string",
  28112. "enum": [
  28113. "document"
  28114. ]
  28115. },
  28116. "path": {
  28117. "anyOf": [
  28118. {
  28119. "type": "string"
  28120. },
  28121. {
  28122. "type": "null"
  28123. }
  28124. ]
  28125. },
  28126. "info": {
  28127. "$ref": "#/components/schemas/Config.Info"
  28128. }
  28129. },
  28130. "required": [
  28131. "type",
  28132. "info"
  28133. ],
  28134. "additionalProperties": false
  28135. },
  28136. "Config.Directory": {
  28137. "type": "object",
  28138. "properties": {
  28139. "type": {
  28140. "type": "string",
  28141. "enum": [
  28142. "directory"
  28143. ]
  28144. },
  28145. "path": {
  28146. "type": "string"
  28147. }
  28148. },
  28149. "required": [
  28150. "type",
  28151. "path"
  28152. ],
  28153. "additionalProperties": false
  28154. },
  28155. "Config.File": {
  28156. "type": "object",
  28157. "properties": {
  28158. "type": {
  28159. "type": "string",
  28160. "enum": [
  28161. "file"
  28162. ]
  28163. },
  28164. "path": {
  28165. "type": "string"
  28166. }
  28167. },
  28168. "required": [
  28169. "type",
  28170. "path"
  28171. ],
  28172. "additionalProperties": false
  28173. },
  28174. "Config.AgentsDirectory": {
  28175. "type": "object",
  28176. "properties": {
  28177. "type": {
  28178. "type": "string",
  28179. "enum": [
  28180. "agents"
  28181. ]
  28182. },
  28183. "path": {
  28184. "type": "string"
  28185. }
  28186. },
  28187. "required": [
  28188. "type",
  28189. "path"
  28190. ],
  28191. "additionalProperties": false
  28192. },
  28193. "Config.ClaudeDirectory": {
  28194. "type": "object",
  28195. "properties": {
  28196. "type": {
  28197. "type": "string",
  28198. "enum": [
  28199. "claude"
  28200. ]
  28201. },
  28202. "path": {
  28203. "type": "string"
  28204. }
  28205. },
  28206. "required": [
  28207. "type",
  28208. "path"
  28209. ],
  28210. "additionalProperties": false
  28211. },
  28212. "Config.Entry": {
  28213. "anyOf": [
  28214. {
  28215. "$ref": "#/components/schemas/Config.Document"
  28216. },
  28217. {
  28218. "$ref": "#/components/schemas/Config.Directory"
  28219. },
  28220. {
  28221. "$ref": "#/components/schemas/Config.File"
  28222. },
  28223. {
  28224. "$ref": "#/components/schemas/Config.AgentsDirectory"
  28225. },
  28226. {
  28227. "$ref": "#/components/schemas/Config.ClaudeDirectory"
  28228. }
  28229. ]
  28230. }
  28231. },
  28232. "securitySchemes": {}
  28233. },
  28234. "security": [],
  28235. "tags": [
  28236. {
  28237. "name": "health"
  28238. },
  28239. {
  28240. "name": "server"
  28241. },
  28242. {
  28243. "name": "location"
  28244. },
  28245. {
  28246. "name": "agent"
  28247. },
  28248. {
  28249. "name": "plugin",
  28250. "description": "Experimental plugin routes."
  28251. },
  28252. {
  28253. "name": "session",
  28254. "description": "Experimental session routes."
  28255. },
  28256. {
  28257. "name": "session",
  28258. "description": "Experimental message routes."
  28259. },
  28260. {
  28261. "name": "model",
  28262. "description": "Experimental model routes."
  28263. },
  28264. {
  28265. "name": "generate",
  28266. "description": "Experimental one-shot generation routes."
  28267. },
  28268. {
  28269. "name": "provider",
  28270. "description": "Experimental provider routes."
  28271. },
  28272. {
  28273. "name": "integration",
  28274. "description": "Integration discovery and authentication routes."
  28275. },
  28276. {
  28277. "name": "mcp",
  28278. "description": "MCP server and resource routes."
  28279. },
  28280. {
  28281. "name": "credential"
  28282. },
  28283. {
  28284. "name": "project",
  28285. "description": "Location-scoped project routes."
  28286. },
  28287. {
  28288. "name": "form",
  28289. "description": "Session form routes."
  28290. },
  28291. {
  28292. "name": "permission",
  28293. "description": "Experimental permission routes."
  28294. },
  28295. {
  28296. "name": "filesystem",
  28297. "description": "Experimental location-scoped filesystem routes."
  28298. },
  28299. {
  28300. "name": "command",
  28301. "description": "Experimental command routes."
  28302. },
  28303. {
  28304. "name": "skill",
  28305. "description": "Experimental skill routes."
  28306. },
  28307. {
  28308. "name": "event",
  28309. "description": "Experimental event stream routes."
  28310. },
  28311. {
  28312. "name": "pty",
  28313. "description": "Experimental location-scoped PTY routes."
  28314. },
  28315. {
  28316. "name": "shell",
  28317. "description": "Experimental location-scoped shell command routes."
  28318. },
  28319. {
  28320. "name": "question",
  28321. "description": "Experimental session question routes."
  28322. },
  28323. {
  28324. "name": "reference",
  28325. "description": "Location-scoped project references."
  28326. },
  28327. {
  28328. "name": "projectCopy",
  28329. "description": "Project copy management routes."
  28330. },
  28331. {
  28332. "name": "vcs",
  28333. "description": "Location-scoped version control routes."
  28334. },
  28335. {
  28336. "name": "debug"
  28337. },
  28338. {
  28339. "name": "migration"
  28340. },
  28341. {
  28342. "name": "websearch",
  28343. "description": "Location-scoped web search routes."
  28344. },
  28345. {
  28346. "name": "config",
  28347. "description": "Location-scoped configuration routes."
  28348. }
  28349. ]
  28350. }