openapi.json 647 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "opencode HttpApi",
  5. "version": "0.0.1",
  6. "description": "Experimental HttpApi surface for selected instance routes."
  7. },
  8. "paths": {
  9. "/api/health": {
  10. "get": {
  11. "tags": ["health"],
  12. "operationId": "v2.health.get",
  13. "parameters": [],
  14. "security": [],
  15. "responses": {
  16. "200": {
  17. "description": "ServiceHealth",
  18. "content": {
  19. "application/json": {
  20. "schema": {
  21. "$ref": "#/components/schemas/ServiceHealth"
  22. }
  23. }
  24. }
  25. },
  26. "400": {
  27. "description": "InvalidRequestError",
  28. "content": {
  29. "application/json": {
  30. "schema": {
  31. "$ref": "#/components/schemas/InvalidRequestError"
  32. }
  33. }
  34. }
  35. },
  36. "401": {
  37. "description": "UnauthorizedError",
  38. "content": {
  39. "application/json": {
  40. "schema": {
  41. "$ref": "#/components/schemas/UnauthorizedError"
  42. }
  43. }
  44. }
  45. }
  46. },
  47. "description": "Report the owning server process and its application status.",
  48. "summary": "Check server health"
  49. }
  50. },
  51. "/api/service/stop": {
  52. "post": {
  53. "tags": ["health"],
  54. "operationId": "v2.health.stop",
  55. "parameters": [],
  56. "security": [],
  57. "responses": {
  58. "200": {
  59. "description": "ServiceStopResponse",
  60. "content": {
  61. "application/json": {
  62. "schema": {
  63. "$ref": "#/components/schemas/ServiceStopResponse"
  64. }
  65. }
  66. }
  67. },
  68. "400": {
  69. "description": "InvalidRequestError",
  70. "content": {
  71. "application/json": {
  72. "schema": {
  73. "$ref": "#/components/schemas/InvalidRequestError"
  74. }
  75. }
  76. }
  77. },
  78. "401": {
  79. "description": "UnauthorizedError",
  80. "content": {
  81. "application/json": {
  82. "schema": {
  83. "$ref": "#/components/schemas/UnauthorizedError"
  84. }
  85. }
  86. }
  87. }
  88. },
  89. "description": "Request graceful shutdown of one exact managed server instance.",
  90. "summary": "Stop the managed server",
  91. "requestBody": {
  92. "content": {
  93. "application/json": {
  94. "schema": {
  95. "$ref": "#/components/schemas/ServiceStopRequest"
  96. }
  97. }
  98. },
  99. "required": true
  100. }
  101. }
  102. },
  103. "/api/server": {
  104. "get": {
  105. "tags": ["server"],
  106. "operationId": "v2.server.get",
  107. "parameters": [],
  108. "security": [],
  109. "responses": {
  110. "200": {
  111. "description": "Success",
  112. "content": {
  113. "application/json": {
  114. "schema": {
  115. "type": "object",
  116. "properties": {
  117. "urls": {
  118. "type": "array",
  119. "items": {
  120. "type": "string"
  121. }
  122. }
  123. },
  124. "required": ["urls"],
  125. "additionalProperties": false
  126. }
  127. }
  128. }
  129. },
  130. "400": {
  131. "description": "InvalidRequestError",
  132. "content": {
  133. "application/json": {
  134. "schema": {
  135. "$ref": "#/components/schemas/InvalidRequestError"
  136. }
  137. }
  138. }
  139. },
  140. "401": {
  141. "description": "UnauthorizedError",
  142. "content": {
  143. "application/json": {
  144. "schema": {
  145. "$ref": "#/components/schemas/UnauthorizedError"
  146. }
  147. }
  148. }
  149. }
  150. },
  151. "description": "Return the URLs that can be used to connect to this server.",
  152. "summary": "Get server information"
  153. }
  154. },
  155. "/api/location": {
  156. "get": {
  157. "tags": ["location"],
  158. "operationId": "v2.location.get",
  159. "parameters": [
  160. {
  161. "name": "location",
  162. "in": "query",
  163. "schema": {
  164. "anyOf": [
  165. {
  166. "type": "object",
  167. "properties": {
  168. "directory": {
  169. "anyOf": [
  170. {
  171. "type": "string"
  172. },
  173. {
  174. "type": "null"
  175. }
  176. ]
  177. },
  178. "workspace": {
  179. "anyOf": [
  180. {
  181. "type": "string"
  182. },
  183. {
  184. "type": "null"
  185. }
  186. ]
  187. }
  188. },
  189. "additionalProperties": false
  190. },
  191. {
  192. "type": "null"
  193. }
  194. ]
  195. },
  196. "required": false,
  197. "style": "deepObject",
  198. "explode": true
  199. }
  200. ],
  201. "security": [],
  202. "responses": {
  203. "200": {
  204. "description": "Location.Info",
  205. "content": {
  206. "application/json": {
  207. "schema": {
  208. "$ref": "#/components/schemas/Location.Info"
  209. }
  210. }
  211. }
  212. },
  213. "400": {
  214. "description": "InvalidRequestError",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "$ref": "#/components/schemas/InvalidRequestError"
  219. }
  220. }
  221. }
  222. },
  223. "401": {
  224. "description": "UnauthorizedError",
  225. "content": {
  226. "application/json": {
  227. "schema": {
  228. "$ref": "#/components/schemas/UnauthorizedError"
  229. }
  230. }
  231. }
  232. }
  233. },
  234. "description": "Resolve the requested location or the server default location.",
  235. "summary": "Get location"
  236. }
  237. },
  238. "/api/agent": {
  239. "get": {
  240. "tags": ["agent"],
  241. "operationId": "v2.agent.list",
  242. "parameters": [
  243. {
  244. "name": "location",
  245. "in": "query",
  246. "schema": {
  247. "anyOf": [
  248. {
  249. "type": "object",
  250. "properties": {
  251. "directory": {
  252. "anyOf": [
  253. {
  254. "type": "string"
  255. },
  256. {
  257. "type": "null"
  258. }
  259. ]
  260. },
  261. "workspace": {
  262. "anyOf": [
  263. {
  264. "type": "string"
  265. },
  266. {
  267. "type": "null"
  268. }
  269. ]
  270. }
  271. },
  272. "additionalProperties": false
  273. },
  274. {
  275. "type": "null"
  276. }
  277. ]
  278. },
  279. "required": false,
  280. "style": "deepObject",
  281. "explode": true
  282. }
  283. ],
  284. "security": [],
  285. "responses": {
  286. "200": {
  287. "description": "Success",
  288. "content": {
  289. "application/json": {
  290. "schema": {
  291. "type": "object",
  292. "properties": {
  293. "location": {
  294. "$ref": "#/components/schemas/Location.Info"
  295. },
  296. "data": {
  297. "type": "array",
  298. "items": {
  299. "$ref": "#/components/schemas/Agent.Info"
  300. }
  301. }
  302. },
  303. "required": ["location", "data"],
  304. "additionalProperties": false
  305. }
  306. }
  307. }
  308. },
  309. "400": {
  310. "description": "InvalidRequestError",
  311. "content": {
  312. "application/json": {
  313. "schema": {
  314. "$ref": "#/components/schemas/InvalidRequestError"
  315. }
  316. }
  317. }
  318. },
  319. "401": {
  320. "description": "UnauthorizedError",
  321. "content": {
  322. "application/json": {
  323. "schema": {
  324. "$ref": "#/components/schemas/UnauthorizedError"
  325. }
  326. }
  327. }
  328. }
  329. },
  330. "description": "Retrieve currently registered agents.",
  331. "summary": "List agents"
  332. }
  333. },
  334. "/api/agent/{agentID}": {
  335. "get": {
  336. "tags": ["agent"],
  337. "operationId": "v2.agent.get",
  338. "parameters": [
  339. {
  340. "name": "agentID",
  341. "in": "path",
  342. "schema": {
  343. "type": "string"
  344. },
  345. "required": true
  346. },
  347. {
  348. "name": "location",
  349. "in": "query",
  350. "schema": {
  351. "anyOf": [
  352. {
  353. "type": "object",
  354. "properties": {
  355. "directory": {
  356. "anyOf": [
  357. {
  358. "type": "string"
  359. },
  360. {
  361. "type": "null"
  362. }
  363. ]
  364. },
  365. "workspace": {
  366. "anyOf": [
  367. {
  368. "type": "string"
  369. },
  370. {
  371. "type": "null"
  372. }
  373. ]
  374. }
  375. },
  376. "additionalProperties": false
  377. },
  378. {
  379. "type": "null"
  380. }
  381. ]
  382. },
  383. "required": false,
  384. "style": "deepObject",
  385. "explode": true
  386. }
  387. ],
  388. "security": [],
  389. "responses": {
  390. "200": {
  391. "description": "Success",
  392. "content": {
  393. "application/json": {
  394. "schema": {
  395. "type": "object",
  396. "properties": {
  397. "location": {
  398. "$ref": "#/components/schemas/Location.Info"
  399. },
  400. "data": {
  401. "$ref": "#/components/schemas/Agent.Info"
  402. }
  403. },
  404. "required": ["location", "data"],
  405. "additionalProperties": false
  406. }
  407. }
  408. }
  409. },
  410. "400": {
  411. "description": "InvalidRequestError",
  412. "content": {
  413. "application/json": {
  414. "schema": {
  415. "$ref": "#/components/schemas/InvalidRequestError"
  416. }
  417. }
  418. }
  419. },
  420. "401": {
  421. "description": "UnauthorizedError",
  422. "content": {
  423. "application/json": {
  424. "schema": {
  425. "$ref": "#/components/schemas/UnauthorizedError"
  426. }
  427. }
  428. }
  429. },
  430. "404": {
  431. "description": "AgentNotFoundError",
  432. "content": {
  433. "application/json": {
  434. "schema": {
  435. "$ref": "#/components/schemas/AgentNotFoundError"
  436. }
  437. }
  438. }
  439. }
  440. },
  441. "description": "Retrieve a single currently registered agent.",
  442. "summary": "Get agent"
  443. }
  444. },
  445. "/api/plugin": {
  446. "get": {
  447. "tags": ["plugin"],
  448. "operationId": "v2.plugin.list",
  449. "parameters": [
  450. {
  451. "name": "location",
  452. "in": "query",
  453. "schema": {
  454. "anyOf": [
  455. {
  456. "type": "object",
  457. "properties": {
  458. "directory": {
  459. "anyOf": [
  460. {
  461. "type": "string"
  462. },
  463. {
  464. "type": "null"
  465. }
  466. ]
  467. },
  468. "workspace": {
  469. "anyOf": [
  470. {
  471. "type": "string"
  472. },
  473. {
  474. "type": "null"
  475. }
  476. ]
  477. }
  478. },
  479. "additionalProperties": false
  480. },
  481. {
  482. "type": "null"
  483. }
  484. ]
  485. },
  486. "required": false,
  487. "style": "deepObject",
  488. "explode": true
  489. }
  490. ],
  491. "security": [],
  492. "responses": {
  493. "200": {
  494. "description": "Success",
  495. "content": {
  496. "application/json": {
  497. "schema": {
  498. "type": "object",
  499. "properties": {
  500. "location": {
  501. "$ref": "#/components/schemas/Location.Info"
  502. },
  503. "data": {
  504. "type": "array",
  505. "items": {
  506. "$ref": "#/components/schemas/Plugin.Info"
  507. }
  508. }
  509. },
  510. "required": ["location", "data"],
  511. "additionalProperties": false
  512. }
  513. }
  514. }
  515. },
  516. "400": {
  517. "description": "InvalidRequestError",
  518. "content": {
  519. "application/json": {
  520. "schema": {
  521. "$ref": "#/components/schemas/InvalidRequestError"
  522. }
  523. }
  524. }
  525. },
  526. "401": {
  527. "description": "UnauthorizedError",
  528. "content": {
  529. "application/json": {
  530. "schema": {
  531. "$ref": "#/components/schemas/UnauthorizedError"
  532. }
  533. }
  534. }
  535. }
  536. },
  537. "description": "Retrieve currently loaded plugins.",
  538. "summary": "List plugins"
  539. }
  540. },
  541. "/api/session": {
  542. "get": {
  543. "tags": ["session"],
  544. "operationId": "v2.session.list",
  545. "parameters": [
  546. {
  547. "name": "workspace",
  548. "in": "query",
  549. "schema": {
  550. "anyOf": [
  551. {
  552. "type": "string",
  553. "allOf": [
  554. {
  555. "pattern": "^wrk"
  556. }
  557. ]
  558. },
  559. {
  560. "type": "null"
  561. }
  562. ]
  563. },
  564. "required": false
  565. },
  566. {
  567. "name": "limit",
  568. "in": "query",
  569. "schema": {
  570. "anyOf": [
  571. {
  572. "type": "string"
  573. },
  574. {
  575. "type": "null"
  576. }
  577. ],
  578. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  579. },
  580. "required": false
  581. },
  582. {
  583. "name": "order",
  584. "in": "query",
  585. "schema": {
  586. "anyOf": [
  587. {
  588. "type": "string",
  589. "enum": ["asc", "desc"]
  590. },
  591. {
  592. "type": "null"
  593. }
  594. ],
  595. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  596. },
  597. "required": false
  598. },
  599. {
  600. "name": "search",
  601. "in": "query",
  602. "schema": {
  603. "anyOf": [
  604. {
  605. "type": "string"
  606. },
  607. {
  608. "type": "null"
  609. }
  610. ]
  611. },
  612. "required": false
  613. },
  614. {
  615. "name": "parentID",
  616. "in": "query",
  617. "schema": {
  618. "anyOf": [
  619. {
  620. "anyOf": [
  621. {
  622. "type": "string",
  623. "allOf": [
  624. {
  625. "pattern": "^ses"
  626. }
  627. ]
  628. },
  629. {
  630. "type": "string",
  631. "enum": ["null"]
  632. }
  633. ],
  634. "description": "Filter by parent session. Use null to return only root sessions."
  635. },
  636. {
  637. "type": "null"
  638. }
  639. ]
  640. },
  641. "required": false
  642. },
  643. {
  644. "name": "directory",
  645. "in": "query",
  646. "schema": {
  647. "anyOf": [
  648. {
  649. "type": "string"
  650. },
  651. {
  652. "type": "null"
  653. }
  654. ]
  655. },
  656. "required": false
  657. },
  658. {
  659. "name": "project",
  660. "in": "query",
  661. "schema": {
  662. "anyOf": [
  663. {
  664. "type": "string"
  665. },
  666. {
  667. "type": "null"
  668. }
  669. ]
  670. },
  671. "required": false
  672. },
  673. {
  674. "name": "subpath",
  675. "in": "query",
  676. "schema": {
  677. "anyOf": [
  678. {
  679. "type": "string"
  680. },
  681. {
  682. "type": "null"
  683. }
  684. ]
  685. },
  686. "required": false
  687. },
  688. {
  689. "name": "cursor",
  690. "in": "query",
  691. "schema": {
  692. "anyOf": [
  693. {
  694. "type": "string",
  695. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  696. },
  697. {
  698. "type": "null"
  699. }
  700. ]
  701. },
  702. "required": false
  703. }
  704. ],
  705. "security": [],
  706. "responses": {
  707. "200": {
  708. "description": "SessionsResponse",
  709. "content": {
  710. "application/json": {
  711. "schema": {
  712. "$ref": "#/components/schemas/SessionsResponse"
  713. }
  714. }
  715. }
  716. },
  717. "400": {
  718. "description": "InvalidCursorError | InvalidRequestError",
  719. "content": {
  720. "application/json": {
  721. "schema": {
  722. "anyOf": [
  723. {
  724. "$ref": "#/components/schemas/InvalidCursorError"
  725. },
  726. {
  727. "$ref": "#/components/schemas/InvalidRequestError1"
  728. },
  729. {
  730. "$ref": "#/components/schemas/InvalidRequestError"
  731. }
  732. ]
  733. }
  734. }
  735. }
  736. },
  737. "401": {
  738. "description": "UnauthorizedError",
  739. "content": {
  740. "application/json": {
  741. "schema": {
  742. "$ref": "#/components/schemas/UnauthorizedError"
  743. }
  744. }
  745. }
  746. }
  747. },
  748. "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
  749. "summary": "List sessions"
  750. },
  751. "post": {
  752. "tags": ["session"],
  753. "operationId": "v2.session.create",
  754. "parameters": [],
  755. "security": [],
  756. "responses": {
  757. "200": {
  758. "description": "Success",
  759. "content": {
  760. "application/json": {
  761. "schema": {
  762. "type": "object",
  763. "properties": {
  764. "data": {
  765. "$ref": "#/components/schemas/Session.Info"
  766. }
  767. },
  768. "required": ["data"],
  769. "additionalProperties": false
  770. }
  771. }
  772. }
  773. },
  774. "400": {
  775. "description": "InvalidRequestError",
  776. "content": {
  777. "application/json": {
  778. "schema": {
  779. "$ref": "#/components/schemas/InvalidRequestError"
  780. }
  781. }
  782. }
  783. },
  784. "401": {
  785. "description": "UnauthorizedError",
  786. "content": {
  787. "application/json": {
  788. "schema": {
  789. "$ref": "#/components/schemas/UnauthorizedError"
  790. }
  791. }
  792. }
  793. }
  794. },
  795. "description": "Create a session at the requested location.",
  796. "summary": "Create session",
  797. "requestBody": {
  798. "content": {
  799. "application/json": {
  800. "schema": {
  801. "type": "object",
  802. "properties": {
  803. "id": {
  804. "anyOf": [
  805. {
  806. "type": "string",
  807. "allOf": [
  808. {
  809. "pattern": "^ses"
  810. }
  811. ]
  812. },
  813. {
  814. "type": "null"
  815. }
  816. ]
  817. },
  818. "title": {
  819. "anyOf": [
  820. {
  821. "type": "string"
  822. },
  823. {
  824. "type": "null"
  825. }
  826. ]
  827. },
  828. "agent": {
  829. "anyOf": [
  830. {
  831. "type": "string"
  832. },
  833. {
  834. "type": "null"
  835. }
  836. ]
  837. },
  838. "model": {
  839. "anyOf": [
  840. {
  841. "$ref": "#/components/schemas/Model.Ref"
  842. },
  843. {
  844. "type": "null"
  845. }
  846. ]
  847. },
  848. "location": {
  849. "anyOf": [
  850. {
  851. "$ref": "#/components/schemas/Location.Ref"
  852. },
  853. {
  854. "type": "null"
  855. }
  856. ]
  857. }
  858. },
  859. "additionalProperties": false
  860. }
  861. }
  862. },
  863. "required": true
  864. }
  865. }
  866. },
  867. "/api/session/import": {
  868. "post": {
  869. "tags": ["session"],
  870. "operationId": "v2.session.import",
  871. "parameters": [],
  872. "security": [],
  873. "responses": {
  874. "200": {
  875. "description": "Success",
  876. "content": {
  877. "application/json": {
  878. "schema": {
  879. "type": "object",
  880. "properties": {
  881. "data": {
  882. "$ref": "#/components/schemas/Session.Info"
  883. }
  884. },
  885. "required": ["data"],
  886. "additionalProperties": false
  887. }
  888. }
  889. }
  890. },
  891. "400": {
  892. "description": "InvalidRequestError",
  893. "content": {
  894. "application/json": {
  895. "schema": {
  896. "$ref": "#/components/schemas/InvalidRequestError"
  897. }
  898. }
  899. }
  900. },
  901. "401": {
  902. "description": "UnauthorizedError",
  903. "content": {
  904. "application/json": {
  905. "schema": {
  906. "$ref": "#/components/schemas/UnauthorizedError"
  907. }
  908. }
  909. }
  910. },
  911. "409": {
  912. "description": "ConflictError",
  913. "content": {
  914. "application/json": {
  915. "schema": {
  916. "$ref": "#/components/schemas/ConflictError"
  917. }
  918. }
  919. }
  920. }
  921. },
  922. "description": "Import a projected session transcript at the requested location.",
  923. "summary": "Import session",
  924. "requestBody": {
  925. "content": {
  926. "application/json": {
  927. "schema": {
  928. "type": "object",
  929. "properties": {
  930. "info": {
  931. "$ref": "#/components/schemas/Session.Info"
  932. },
  933. "messages": {
  934. "type": "array",
  935. "items": {
  936. "$ref": "#/components/schemas/Session.Message.Info"
  937. }
  938. },
  939. "location": {
  940. "anyOf": [
  941. {
  942. "$ref": "#/components/schemas/Location.Ref"
  943. },
  944. {
  945. "type": "null"
  946. }
  947. ]
  948. }
  949. },
  950. "required": ["info", "messages"],
  951. "additionalProperties": false
  952. }
  953. }
  954. },
  955. "required": true
  956. }
  957. }
  958. },
  959. "/api/session/{sessionID}/export": {
  960. "get": {
  961. "tags": ["session"],
  962. "operationId": "v2.session.export",
  963. "parameters": [
  964. {
  965. "name": "sessionID",
  966. "in": "path",
  967. "schema": {
  968. "type": "string",
  969. "allOf": [
  970. {
  971. "pattern": "^ses"
  972. }
  973. ]
  974. },
  975. "required": true
  976. },
  977. {
  978. "name": "sanitize",
  979. "in": "query",
  980. "schema": {
  981. "anyOf": [
  982. {
  983. "type": "string",
  984. "enum": ["true", "false"]
  985. },
  986. {
  987. "type": "null"
  988. }
  989. ]
  990. },
  991. "required": false
  992. }
  993. ],
  994. "security": [],
  995. "responses": {
  996. "200": {
  997. "description": "Success",
  998. "content": {
  999. "application/json": {
  1000. "schema": {
  1001. "type": "object",
  1002. "properties": {
  1003. "data": {
  1004. "$ref": "#/components/schemas/SessionTransfer.Data"
  1005. }
  1006. },
  1007. "required": ["data"],
  1008. "additionalProperties": false
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "400": {
  1014. "description": "InvalidRequestError",
  1015. "content": {
  1016. "application/json": {
  1017. "schema": {
  1018. "$ref": "#/components/schemas/InvalidRequestError"
  1019. }
  1020. }
  1021. }
  1022. },
  1023. "401": {
  1024. "description": "UnauthorizedError",
  1025. "content": {
  1026. "application/json": {
  1027. "schema": {
  1028. "$ref": "#/components/schemas/UnauthorizedError"
  1029. }
  1030. }
  1031. }
  1032. },
  1033. "404": {
  1034. "description": "SessionNotFoundError",
  1035. "content": {
  1036. "application/json": {
  1037. "schema": {
  1038. "$ref": "#/components/schemas/SessionNotFoundError"
  1039. }
  1040. }
  1041. }
  1042. },
  1043. "500": {
  1044. "description": "UnknownError",
  1045. "content": {
  1046. "application/json": {
  1047. "schema": {
  1048. "$ref": "#/components/schemas/UnknownError"
  1049. }
  1050. }
  1051. }
  1052. }
  1053. },
  1054. "description": "Export a complete projected session transcript.",
  1055. "summary": "Export session"
  1056. }
  1057. },
  1058. "/api/session/active": {
  1059. "get": {
  1060. "tags": ["session"],
  1061. "operationId": "v2.session.active",
  1062. "parameters": [],
  1063. "security": [],
  1064. "responses": {
  1065. "200": {
  1066. "description": "Success",
  1067. "content": {
  1068. "application/json": {
  1069. "schema": {
  1070. "type": "object",
  1071. "properties": {
  1072. "data": {
  1073. "type": "object",
  1074. "patternProperties": {
  1075. "^ses": {
  1076. "$ref": "#/components/schemas/SessionActive"
  1077. }
  1078. }
  1079. }
  1080. },
  1081. "required": ["data"],
  1082. "additionalProperties": false
  1083. }
  1084. }
  1085. }
  1086. },
  1087. "400": {
  1088. "description": "InvalidRequestError",
  1089. "content": {
  1090. "application/json": {
  1091. "schema": {
  1092. "$ref": "#/components/schemas/InvalidRequestError"
  1093. }
  1094. }
  1095. }
  1096. },
  1097. "401": {
  1098. "description": "UnauthorizedError",
  1099. "content": {
  1100. "application/json": {
  1101. "schema": {
  1102. "$ref": "#/components/schemas/UnauthorizedError"
  1103. }
  1104. }
  1105. }
  1106. }
  1107. },
  1108. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  1109. "summary": "List active sessions"
  1110. }
  1111. },
  1112. "/api/session/{sessionID}": {
  1113. "get": {
  1114. "tags": ["session"],
  1115. "operationId": "v2.session.get",
  1116. "parameters": [
  1117. {
  1118. "name": "sessionID",
  1119. "in": "path",
  1120. "schema": {
  1121. "type": "string",
  1122. "allOf": [
  1123. {
  1124. "pattern": "^ses"
  1125. }
  1126. ]
  1127. },
  1128. "required": true
  1129. }
  1130. ],
  1131. "security": [],
  1132. "responses": {
  1133. "200": {
  1134. "description": "Success",
  1135. "content": {
  1136. "application/json": {
  1137. "schema": {
  1138. "type": "object",
  1139. "properties": {
  1140. "data": {
  1141. "$ref": "#/components/schemas/Session.Info"
  1142. }
  1143. },
  1144. "required": ["data"],
  1145. "additionalProperties": false
  1146. }
  1147. }
  1148. }
  1149. },
  1150. "400": {
  1151. "description": "InvalidRequestError",
  1152. "content": {
  1153. "application/json": {
  1154. "schema": {
  1155. "$ref": "#/components/schemas/InvalidRequestError"
  1156. }
  1157. }
  1158. }
  1159. },
  1160. "401": {
  1161. "description": "UnauthorizedError",
  1162. "content": {
  1163. "application/json": {
  1164. "schema": {
  1165. "$ref": "#/components/schemas/UnauthorizedError"
  1166. }
  1167. }
  1168. }
  1169. },
  1170. "404": {
  1171. "description": "SessionNotFoundError",
  1172. "content": {
  1173. "application/json": {
  1174. "schema": {
  1175. "$ref": "#/components/schemas/SessionNotFoundError"
  1176. }
  1177. }
  1178. }
  1179. }
  1180. },
  1181. "description": "Retrieve a session by ID.",
  1182. "summary": "Get session"
  1183. },
  1184. "delete": {
  1185. "tags": ["session"],
  1186. "operationId": "v2.session.remove",
  1187. "parameters": [
  1188. {
  1189. "name": "sessionID",
  1190. "in": "path",
  1191. "schema": {
  1192. "type": "string",
  1193. "allOf": [
  1194. {
  1195. "pattern": "^ses"
  1196. }
  1197. ]
  1198. },
  1199. "required": true
  1200. }
  1201. ],
  1202. "security": [],
  1203. "responses": {
  1204. "204": {
  1205. "description": "<No Content>"
  1206. },
  1207. "400": {
  1208. "description": "InvalidRequestError",
  1209. "content": {
  1210. "application/json": {
  1211. "schema": {
  1212. "$ref": "#/components/schemas/InvalidRequestError"
  1213. }
  1214. }
  1215. }
  1216. },
  1217. "401": {
  1218. "description": "UnauthorizedError",
  1219. "content": {
  1220. "application/json": {
  1221. "schema": {
  1222. "$ref": "#/components/schemas/UnauthorizedError"
  1223. }
  1224. }
  1225. }
  1226. },
  1227. "404": {
  1228. "description": "SessionNotFoundError",
  1229. "content": {
  1230. "application/json": {
  1231. "schema": {
  1232. "anyOf": [
  1233. {
  1234. "$ref": "#/components/schemas/SessionNotFoundError"
  1235. },
  1236. {
  1237. "$ref": "#/components/schemas/SessionNotFoundError"
  1238. }
  1239. ]
  1240. }
  1241. }
  1242. }
  1243. }
  1244. },
  1245. "description": "Delete a session and its child sessions.",
  1246. "summary": "Delete session"
  1247. }
  1248. },
  1249. "/api/session/{sessionID}/fork": {
  1250. "post": {
  1251. "tags": ["session"],
  1252. "operationId": "v2.session.fork",
  1253. "parameters": [
  1254. {
  1255. "name": "sessionID",
  1256. "in": "path",
  1257. "schema": {
  1258. "type": "string",
  1259. "allOf": [
  1260. {
  1261. "pattern": "^ses"
  1262. }
  1263. ]
  1264. },
  1265. "required": true
  1266. }
  1267. ],
  1268. "security": [],
  1269. "responses": {
  1270. "200": {
  1271. "description": "Success",
  1272. "content": {
  1273. "application/json": {
  1274. "schema": {
  1275. "type": "object",
  1276. "properties": {
  1277. "data": {
  1278. "$ref": "#/components/schemas/Session.Info"
  1279. }
  1280. },
  1281. "required": ["data"],
  1282. "additionalProperties": false
  1283. }
  1284. }
  1285. }
  1286. },
  1287. "400": {
  1288. "description": "InvalidRequestError",
  1289. "content": {
  1290. "application/json": {
  1291. "schema": {
  1292. "anyOf": [
  1293. {
  1294. "$ref": "#/components/schemas/InvalidRequestError1"
  1295. },
  1296. {
  1297. "$ref": "#/components/schemas/InvalidRequestError"
  1298. }
  1299. ]
  1300. }
  1301. }
  1302. }
  1303. },
  1304. "401": {
  1305. "description": "UnauthorizedError",
  1306. "content": {
  1307. "application/json": {
  1308. "schema": {
  1309. "$ref": "#/components/schemas/UnauthorizedError"
  1310. }
  1311. }
  1312. }
  1313. },
  1314. "404": {
  1315. "description": "SessionNotFoundError | MessageNotFoundError",
  1316. "content": {
  1317. "application/json": {
  1318. "schema": {
  1319. "anyOf": [
  1320. {
  1321. "$ref": "#/components/schemas/MessageNotFoundError"
  1322. },
  1323. {
  1324. "$ref": "#/components/schemas/SessionNotFoundError"
  1325. },
  1326. {
  1327. "$ref": "#/components/schemas/SessionNotFoundError"
  1328. }
  1329. ]
  1330. }
  1331. }
  1332. }
  1333. }
  1334. },
  1335. "description": "Create a child session by copying projected history through or before a message boundary.",
  1336. "summary": "Fork session",
  1337. "requestBody": {
  1338. "content": {
  1339. "application/json": {
  1340. "schema": {
  1341. "type": "object",
  1342. "properties": {
  1343. "boundary": {
  1344. "$ref": "#/components/schemas/Session.ForkRequestBoundary"
  1345. }
  1346. },
  1347. "required": ["boundary"],
  1348. "additionalProperties": false
  1349. }
  1350. }
  1351. },
  1352. "required": true
  1353. }
  1354. }
  1355. },
  1356. "/api/session/{sessionID}/agent": {
  1357. "post": {
  1358. "tags": ["session"],
  1359. "operationId": "v2.session.switchAgent",
  1360. "parameters": [
  1361. {
  1362. "name": "sessionID",
  1363. "in": "path",
  1364. "schema": {
  1365. "type": "string",
  1366. "allOf": [
  1367. {
  1368. "pattern": "^ses"
  1369. }
  1370. ]
  1371. },
  1372. "required": true
  1373. }
  1374. ],
  1375. "security": [],
  1376. "responses": {
  1377. "204": {
  1378. "description": "<No Content>"
  1379. },
  1380. "400": {
  1381. "description": "InvalidRequestError",
  1382. "content": {
  1383. "application/json": {
  1384. "schema": {
  1385. "$ref": "#/components/schemas/InvalidRequestError"
  1386. }
  1387. }
  1388. }
  1389. },
  1390. "401": {
  1391. "description": "UnauthorizedError",
  1392. "content": {
  1393. "application/json": {
  1394. "schema": {
  1395. "$ref": "#/components/schemas/UnauthorizedError"
  1396. }
  1397. }
  1398. }
  1399. },
  1400. "404": {
  1401. "description": "SessionNotFoundError",
  1402. "content": {
  1403. "application/json": {
  1404. "schema": {
  1405. "anyOf": [
  1406. {
  1407. "$ref": "#/components/schemas/SessionNotFoundError"
  1408. },
  1409. {
  1410. "$ref": "#/components/schemas/SessionNotFoundError"
  1411. }
  1412. ]
  1413. }
  1414. }
  1415. }
  1416. }
  1417. },
  1418. "description": "Switch the agent used by subsequent provider turns.",
  1419. "summary": "Switch session agent",
  1420. "requestBody": {
  1421. "content": {
  1422. "application/json": {
  1423. "schema": {
  1424. "type": "object",
  1425. "properties": {
  1426. "agent": {
  1427. "type": "string"
  1428. }
  1429. },
  1430. "required": ["agent"],
  1431. "additionalProperties": false
  1432. }
  1433. }
  1434. },
  1435. "required": true
  1436. }
  1437. }
  1438. },
  1439. "/api/session/{sessionID}/model": {
  1440. "post": {
  1441. "tags": ["session"],
  1442. "operationId": "v2.session.switchModel",
  1443. "parameters": [
  1444. {
  1445. "name": "sessionID",
  1446. "in": "path",
  1447. "schema": {
  1448. "type": "string",
  1449. "allOf": [
  1450. {
  1451. "pattern": "^ses"
  1452. }
  1453. ]
  1454. },
  1455. "required": true
  1456. }
  1457. ],
  1458. "security": [],
  1459. "responses": {
  1460. "204": {
  1461. "description": "<No Content>"
  1462. },
  1463. "400": {
  1464. "description": "InvalidRequestError",
  1465. "content": {
  1466. "application/json": {
  1467. "schema": {
  1468. "$ref": "#/components/schemas/InvalidRequestError"
  1469. }
  1470. }
  1471. }
  1472. },
  1473. "401": {
  1474. "description": "UnauthorizedError",
  1475. "content": {
  1476. "application/json": {
  1477. "schema": {
  1478. "$ref": "#/components/schemas/UnauthorizedError"
  1479. }
  1480. }
  1481. }
  1482. },
  1483. "404": {
  1484. "description": "SessionNotFoundError",
  1485. "content": {
  1486. "application/json": {
  1487. "schema": {
  1488. "anyOf": [
  1489. {
  1490. "$ref": "#/components/schemas/SessionNotFoundError"
  1491. },
  1492. {
  1493. "$ref": "#/components/schemas/SessionNotFoundError"
  1494. }
  1495. ]
  1496. }
  1497. }
  1498. }
  1499. }
  1500. },
  1501. "description": "Switch the model used by subsequent provider turns.",
  1502. "summary": "Switch session model",
  1503. "requestBody": {
  1504. "content": {
  1505. "application/json": {
  1506. "schema": {
  1507. "type": "object",
  1508. "properties": {
  1509. "model": {
  1510. "$ref": "#/components/schemas/Model.Ref"
  1511. }
  1512. },
  1513. "required": ["model"],
  1514. "additionalProperties": false
  1515. }
  1516. }
  1517. },
  1518. "required": true
  1519. }
  1520. }
  1521. },
  1522. "/api/session/{sessionID}/rename": {
  1523. "post": {
  1524. "tags": ["session"],
  1525. "operationId": "v2.session.rename",
  1526. "parameters": [
  1527. {
  1528. "name": "sessionID",
  1529. "in": "path",
  1530. "schema": {
  1531. "type": "string",
  1532. "allOf": [
  1533. {
  1534. "pattern": "^ses"
  1535. }
  1536. ]
  1537. },
  1538. "required": true
  1539. }
  1540. ],
  1541. "security": [],
  1542. "responses": {
  1543. "204": {
  1544. "description": "<No Content>"
  1545. },
  1546. "400": {
  1547. "description": "InvalidRequestError",
  1548. "content": {
  1549. "application/json": {
  1550. "schema": {
  1551. "$ref": "#/components/schemas/InvalidRequestError"
  1552. }
  1553. }
  1554. }
  1555. },
  1556. "401": {
  1557. "description": "UnauthorizedError",
  1558. "content": {
  1559. "application/json": {
  1560. "schema": {
  1561. "$ref": "#/components/schemas/UnauthorizedError"
  1562. }
  1563. }
  1564. }
  1565. },
  1566. "404": {
  1567. "description": "SessionNotFoundError",
  1568. "content": {
  1569. "application/json": {
  1570. "schema": {
  1571. "anyOf": [
  1572. {
  1573. "$ref": "#/components/schemas/SessionNotFoundError"
  1574. },
  1575. {
  1576. "$ref": "#/components/schemas/SessionNotFoundError"
  1577. }
  1578. ]
  1579. }
  1580. }
  1581. }
  1582. }
  1583. },
  1584. "description": "Update the session title.",
  1585. "summary": "Rename session",
  1586. "requestBody": {
  1587. "content": {
  1588. "application/json": {
  1589. "schema": {
  1590. "type": "object",
  1591. "properties": {
  1592. "title": {
  1593. "type": "string"
  1594. }
  1595. },
  1596. "required": ["title"],
  1597. "additionalProperties": false
  1598. }
  1599. }
  1600. },
  1601. "required": true
  1602. }
  1603. }
  1604. },
  1605. "/api/session/{sessionID}/move": {
  1606. "post": {
  1607. "tags": ["session"],
  1608. "operationId": "v2.session.move",
  1609. "parameters": [
  1610. {
  1611. "name": "sessionID",
  1612. "in": "path",
  1613. "schema": {
  1614. "type": "string",
  1615. "allOf": [
  1616. {
  1617. "pattern": "^ses"
  1618. }
  1619. ]
  1620. },
  1621. "required": true
  1622. }
  1623. ],
  1624. "security": [],
  1625. "responses": {
  1626. "204": {
  1627. "description": "<No Content>"
  1628. },
  1629. "400": {
  1630. "description": "InvalidRequestError",
  1631. "content": {
  1632. "application/json": {
  1633. "schema": {
  1634. "anyOf": [
  1635. {
  1636. "$ref": "#/components/schemas/InvalidRequestError1"
  1637. },
  1638. {
  1639. "$ref": "#/components/schemas/InvalidRequestError"
  1640. }
  1641. ]
  1642. }
  1643. }
  1644. }
  1645. },
  1646. "401": {
  1647. "description": "UnauthorizedError",
  1648. "content": {
  1649. "application/json": {
  1650. "schema": {
  1651. "$ref": "#/components/schemas/UnauthorizedError"
  1652. }
  1653. }
  1654. }
  1655. },
  1656. "404": {
  1657. "description": "SessionNotFoundError",
  1658. "content": {
  1659. "application/json": {
  1660. "schema": {
  1661. "$ref": "#/components/schemas/SessionNotFoundError"
  1662. }
  1663. }
  1664. }
  1665. }
  1666. },
  1667. "description": "Move a session to another project directory, optionally transferring local changes.",
  1668. "summary": "Move session",
  1669. "requestBody": {
  1670. "content": {
  1671. "application/json": {
  1672. "schema": {
  1673. "type": "object",
  1674. "properties": {
  1675. "directory": {
  1676. "type": "string"
  1677. },
  1678. "workspaceID": {
  1679. "type": "string",
  1680. "allOf": [
  1681. {
  1682. "pattern": "^wrk"
  1683. }
  1684. ]
  1685. },
  1686. "delivery": {
  1687. "anyOf": [
  1688. {
  1689. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  1690. },
  1691. {
  1692. "type": "null"
  1693. }
  1694. ]
  1695. }
  1696. },
  1697. "required": ["directory"],
  1698. "additionalProperties": false
  1699. }
  1700. }
  1701. },
  1702. "required": true
  1703. }
  1704. }
  1705. },
  1706. "/api/session/{sessionID}/prompt": {
  1707. "post": {
  1708. "tags": ["session"],
  1709. "operationId": "v2.session.prompt",
  1710. "parameters": [
  1711. {
  1712. "name": "sessionID",
  1713. "in": "path",
  1714. "schema": {
  1715. "type": "string",
  1716. "allOf": [
  1717. {
  1718. "pattern": "^ses"
  1719. }
  1720. ]
  1721. },
  1722. "required": true
  1723. }
  1724. ],
  1725. "security": [],
  1726. "responses": {
  1727. "200": {
  1728. "description": "Success",
  1729. "content": {
  1730. "application/json": {
  1731. "schema": {
  1732. "type": "object",
  1733. "properties": {
  1734. "data": {
  1735. "$ref": "#/components/schemas/Session.Inbox.User"
  1736. }
  1737. },
  1738. "required": ["data"],
  1739. "additionalProperties": false
  1740. }
  1741. }
  1742. }
  1743. },
  1744. "400": {
  1745. "description": "InvalidRequestError",
  1746. "content": {
  1747. "application/json": {
  1748. "schema": {
  1749. "anyOf": [
  1750. {
  1751. "$ref": "#/components/schemas/InvalidRequestError1"
  1752. },
  1753. {
  1754. "$ref": "#/components/schemas/InvalidRequestError"
  1755. }
  1756. ]
  1757. }
  1758. }
  1759. }
  1760. },
  1761. "401": {
  1762. "description": "UnauthorizedError",
  1763. "content": {
  1764. "application/json": {
  1765. "schema": {
  1766. "$ref": "#/components/schemas/UnauthorizedError"
  1767. }
  1768. }
  1769. }
  1770. },
  1771. "404": {
  1772. "description": "SessionNotFoundError",
  1773. "content": {
  1774. "application/json": {
  1775. "schema": {
  1776. "anyOf": [
  1777. {
  1778. "$ref": "#/components/schemas/SessionNotFoundError"
  1779. },
  1780. {
  1781. "$ref": "#/components/schemas/SessionNotFoundError"
  1782. }
  1783. ]
  1784. }
  1785. }
  1786. }
  1787. },
  1788. "409": {
  1789. "description": "ConflictError",
  1790. "content": {
  1791. "application/json": {
  1792. "schema": {
  1793. "$ref": "#/components/schemas/ConflictError"
  1794. }
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1800. "summary": "Send message",
  1801. "requestBody": {
  1802. "content": {
  1803. "application/json": {
  1804. "schema": {
  1805. "type": "object",
  1806. "properties": {
  1807. "id": {
  1808. "anyOf": [
  1809. {
  1810. "type": "string",
  1811. "allOf": [
  1812. {
  1813. "pattern": "^msg_"
  1814. }
  1815. ]
  1816. },
  1817. {
  1818. "type": "null"
  1819. }
  1820. ]
  1821. },
  1822. "text": {
  1823. "type": "string"
  1824. },
  1825. "files": {
  1826. "type": "array",
  1827. "items": {
  1828. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1829. }
  1830. },
  1831. "agents": {
  1832. "type": "array",
  1833. "items": {
  1834. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1835. }
  1836. },
  1837. "skills": {
  1838. "type": "array",
  1839. "items": {
  1840. "$ref": "#/components/schemas/PromptInput.SkillAttachment"
  1841. }
  1842. },
  1843. "metadata": {
  1844. "type": "object"
  1845. },
  1846. "delivery": {
  1847. "anyOf": [
  1848. {
  1849. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  1850. },
  1851. {
  1852. "type": "null"
  1853. }
  1854. ]
  1855. },
  1856. "resume": {
  1857. "anyOf": [
  1858. {
  1859. "type": "boolean"
  1860. },
  1861. {
  1862. "type": "null"
  1863. }
  1864. ]
  1865. }
  1866. },
  1867. "required": ["text"],
  1868. "additionalProperties": false
  1869. }
  1870. }
  1871. },
  1872. "required": true
  1873. }
  1874. }
  1875. },
  1876. "/api/session/{sessionID}/command": {
  1877. "post": {
  1878. "tags": ["session"],
  1879. "operationId": "v2.session.command",
  1880. "parameters": [
  1881. {
  1882. "name": "sessionID",
  1883. "in": "path",
  1884. "schema": {
  1885. "type": "string",
  1886. "allOf": [
  1887. {
  1888. "pattern": "^ses"
  1889. }
  1890. ]
  1891. },
  1892. "required": true
  1893. }
  1894. ],
  1895. "security": [],
  1896. "responses": {
  1897. "200": {
  1898. "description": "Success",
  1899. "content": {
  1900. "application/json": {
  1901. "schema": {
  1902. "type": "object",
  1903. "properties": {
  1904. "data": {
  1905. "$ref": "#/components/schemas/Session.Inbox.User"
  1906. }
  1907. },
  1908. "required": ["data"],
  1909. "additionalProperties": false
  1910. }
  1911. }
  1912. }
  1913. },
  1914. "400": {
  1915. "description": "InvalidRequestError",
  1916. "content": {
  1917. "application/json": {
  1918. "schema": {
  1919. "anyOf": [
  1920. {
  1921. "$ref": "#/components/schemas/InvalidRequestError1"
  1922. },
  1923. {
  1924. "$ref": "#/components/schemas/InvalidRequestError"
  1925. }
  1926. ]
  1927. }
  1928. }
  1929. }
  1930. },
  1931. "401": {
  1932. "description": "UnauthorizedError",
  1933. "content": {
  1934. "application/json": {
  1935. "schema": {
  1936. "$ref": "#/components/schemas/UnauthorizedError"
  1937. }
  1938. }
  1939. }
  1940. },
  1941. "404": {
  1942. "description": "SessionNotFoundError | CommandNotFoundError",
  1943. "content": {
  1944. "application/json": {
  1945. "schema": {
  1946. "anyOf": [
  1947. {
  1948. "$ref": "#/components/schemas/CommandNotFoundError"
  1949. },
  1950. {
  1951. "$ref": "#/components/schemas/SessionNotFoundError"
  1952. },
  1953. {
  1954. "$ref": "#/components/schemas/SessionNotFoundError"
  1955. }
  1956. ]
  1957. }
  1958. }
  1959. }
  1960. },
  1961. "409": {
  1962. "description": "ConflictError",
  1963. "content": {
  1964. "application/json": {
  1965. "schema": {
  1966. "$ref": "#/components/schemas/ConflictError"
  1967. }
  1968. }
  1969. }
  1970. },
  1971. "500": {
  1972. "description": "CommandEvaluationError",
  1973. "content": {
  1974. "application/json": {
  1975. "schema": {
  1976. "$ref": "#/components/schemas/CommandEvaluationError"
  1977. }
  1978. }
  1979. }
  1980. }
  1981. },
  1982. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1983. "summary": "Run command",
  1984. "requestBody": {
  1985. "content": {
  1986. "application/json": {
  1987. "schema": {
  1988. "type": "object",
  1989. "properties": {
  1990. "id": {
  1991. "anyOf": [
  1992. {
  1993. "type": "string",
  1994. "allOf": [
  1995. {
  1996. "pattern": "^msg_"
  1997. }
  1998. ]
  1999. },
  2000. {
  2001. "type": "null"
  2002. }
  2003. ]
  2004. },
  2005. "command": {
  2006. "type": "string"
  2007. },
  2008. "arguments": {
  2009. "anyOf": [
  2010. {
  2011. "type": "string"
  2012. },
  2013. {
  2014. "type": "null"
  2015. }
  2016. ]
  2017. },
  2018. "agent": {
  2019. "anyOf": [
  2020. {
  2021. "type": "string"
  2022. },
  2023. {
  2024. "type": "null"
  2025. }
  2026. ]
  2027. },
  2028. "model": {
  2029. "anyOf": [
  2030. {
  2031. "$ref": "#/components/schemas/Model.Ref"
  2032. },
  2033. {
  2034. "type": "null"
  2035. }
  2036. ]
  2037. },
  2038. "files": {
  2039. "type": "array",
  2040. "items": {
  2041. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  2042. }
  2043. },
  2044. "agents": {
  2045. "type": "array",
  2046. "items": {
  2047. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  2048. }
  2049. },
  2050. "skills": {
  2051. "type": "array",
  2052. "items": {
  2053. "$ref": "#/components/schemas/PromptInput.SkillAttachment"
  2054. }
  2055. },
  2056. "delivery": {
  2057. "anyOf": [
  2058. {
  2059. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2060. },
  2061. {
  2062. "type": "null"
  2063. }
  2064. ]
  2065. },
  2066. "resume": {
  2067. "anyOf": [
  2068. {
  2069. "type": "boolean"
  2070. },
  2071. {
  2072. "type": "null"
  2073. }
  2074. ]
  2075. }
  2076. },
  2077. "required": ["command"],
  2078. "additionalProperties": false
  2079. }
  2080. }
  2081. },
  2082. "required": true
  2083. }
  2084. }
  2085. },
  2086. "/api/session/{sessionID}/skill": {
  2087. "post": {
  2088. "tags": ["session"],
  2089. "operationId": "v2.session.skill",
  2090. "parameters": [
  2091. {
  2092. "name": "sessionID",
  2093. "in": "path",
  2094. "schema": {
  2095. "type": "string",
  2096. "allOf": [
  2097. {
  2098. "pattern": "^ses"
  2099. }
  2100. ]
  2101. },
  2102. "required": true
  2103. }
  2104. ],
  2105. "security": [],
  2106. "responses": {
  2107. "204": {
  2108. "description": "<No Content>"
  2109. },
  2110. "400": {
  2111. "description": "InvalidRequestError",
  2112. "content": {
  2113. "application/json": {
  2114. "schema": {
  2115. "$ref": "#/components/schemas/InvalidRequestError"
  2116. }
  2117. }
  2118. }
  2119. },
  2120. "401": {
  2121. "description": "UnauthorizedError",
  2122. "content": {
  2123. "application/json": {
  2124. "schema": {
  2125. "$ref": "#/components/schemas/UnauthorizedError"
  2126. }
  2127. }
  2128. }
  2129. },
  2130. "404": {
  2131. "description": "SessionNotFoundError | SkillNotFoundError",
  2132. "content": {
  2133. "application/json": {
  2134. "schema": {
  2135. "anyOf": [
  2136. {
  2137. "$ref": "#/components/schemas/SkillNotFoundError"
  2138. },
  2139. {
  2140. "$ref": "#/components/schemas/SessionNotFoundError"
  2141. },
  2142. {
  2143. "$ref": "#/components/schemas/SessionNotFoundError"
  2144. }
  2145. ]
  2146. }
  2147. }
  2148. }
  2149. }
  2150. },
  2151. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  2152. "summary": "Activate skill",
  2153. "requestBody": {
  2154. "content": {
  2155. "application/json": {
  2156. "schema": {
  2157. "type": "object",
  2158. "properties": {
  2159. "id": {
  2160. "anyOf": [
  2161. {
  2162. "type": "string",
  2163. "allOf": [
  2164. {
  2165. "pattern": "^msg_"
  2166. }
  2167. ]
  2168. },
  2169. {
  2170. "type": "null"
  2171. }
  2172. ]
  2173. },
  2174. "skill": {
  2175. "type": "string"
  2176. },
  2177. "resume": {
  2178. "anyOf": [
  2179. {
  2180. "type": "boolean"
  2181. },
  2182. {
  2183. "type": "null"
  2184. }
  2185. ]
  2186. }
  2187. },
  2188. "required": ["skill"],
  2189. "additionalProperties": false
  2190. }
  2191. }
  2192. },
  2193. "required": true
  2194. }
  2195. }
  2196. },
  2197. "/api/session/{sessionID}/synthetic": {
  2198. "post": {
  2199. "tags": ["session"],
  2200. "operationId": "v2.session.synthetic",
  2201. "parameters": [
  2202. {
  2203. "name": "sessionID",
  2204. "in": "path",
  2205. "schema": {
  2206. "type": "string",
  2207. "allOf": [
  2208. {
  2209. "pattern": "^ses"
  2210. }
  2211. ]
  2212. },
  2213. "required": true
  2214. }
  2215. ],
  2216. "security": [],
  2217. "responses": {
  2218. "200": {
  2219. "description": "Success",
  2220. "content": {
  2221. "application/json": {
  2222. "schema": {
  2223. "type": "object",
  2224. "properties": {
  2225. "data": {
  2226. "$ref": "#/components/schemas/Session.Inbox.Synthetic"
  2227. }
  2228. },
  2229. "required": ["data"],
  2230. "additionalProperties": false
  2231. }
  2232. }
  2233. }
  2234. },
  2235. "400": {
  2236. "description": "InvalidRequestError",
  2237. "content": {
  2238. "application/json": {
  2239. "schema": {
  2240. "$ref": "#/components/schemas/InvalidRequestError"
  2241. }
  2242. }
  2243. }
  2244. },
  2245. "401": {
  2246. "description": "UnauthorizedError",
  2247. "content": {
  2248. "application/json": {
  2249. "schema": {
  2250. "$ref": "#/components/schemas/UnauthorizedError"
  2251. }
  2252. }
  2253. }
  2254. },
  2255. "404": {
  2256. "description": "SessionNotFoundError",
  2257. "content": {
  2258. "application/json": {
  2259. "schema": {
  2260. "anyOf": [
  2261. {
  2262. "$ref": "#/components/schemas/SessionNotFoundError"
  2263. },
  2264. {
  2265. "$ref": "#/components/schemas/SessionNotFoundError"
  2266. }
  2267. ]
  2268. }
  2269. }
  2270. }
  2271. },
  2272. "409": {
  2273. "description": "ConflictError",
  2274. "content": {
  2275. "application/json": {
  2276. "schema": {
  2277. "$ref": "#/components/schemas/ConflictError"
  2278. }
  2279. }
  2280. }
  2281. }
  2282. },
  2283. "description": "Durably admit synthetic session input and schedule execution unless resume is false.",
  2284. "summary": "Add synthetic message",
  2285. "requestBody": {
  2286. "content": {
  2287. "application/json": {
  2288. "schema": {
  2289. "type": "object",
  2290. "properties": {
  2291. "id": {
  2292. "anyOf": [
  2293. {
  2294. "type": "string",
  2295. "allOf": [
  2296. {
  2297. "pattern": "^msg_"
  2298. }
  2299. ]
  2300. },
  2301. {
  2302. "type": "null"
  2303. }
  2304. ]
  2305. },
  2306. "text": {
  2307. "type": "string"
  2308. },
  2309. "description": {
  2310. "anyOf": [
  2311. {
  2312. "type": "string"
  2313. },
  2314. {
  2315. "type": "null"
  2316. }
  2317. ]
  2318. },
  2319. "metadata": {
  2320. "type": "object"
  2321. },
  2322. "delivery": {
  2323. "anyOf": [
  2324. {
  2325. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2326. },
  2327. {
  2328. "type": "null"
  2329. }
  2330. ]
  2331. },
  2332. "resume": {
  2333. "anyOf": [
  2334. {
  2335. "type": "boolean"
  2336. },
  2337. {
  2338. "type": "null"
  2339. }
  2340. ]
  2341. }
  2342. },
  2343. "required": ["text"],
  2344. "additionalProperties": false
  2345. }
  2346. }
  2347. },
  2348. "required": true
  2349. }
  2350. }
  2351. },
  2352. "/api/session/{sessionID}/shell": {
  2353. "post": {
  2354. "tags": ["session"],
  2355. "operationId": "v2.session.shell",
  2356. "parameters": [
  2357. {
  2358. "name": "sessionID",
  2359. "in": "path",
  2360. "schema": {
  2361. "type": "string",
  2362. "allOf": [
  2363. {
  2364. "pattern": "^ses"
  2365. }
  2366. ]
  2367. },
  2368. "required": true
  2369. }
  2370. ],
  2371. "security": [],
  2372. "responses": {
  2373. "204": {
  2374. "description": "<No Content>"
  2375. },
  2376. "400": {
  2377. "description": "InvalidRequestError",
  2378. "content": {
  2379. "application/json": {
  2380. "schema": {
  2381. "$ref": "#/components/schemas/InvalidRequestError"
  2382. }
  2383. }
  2384. }
  2385. },
  2386. "401": {
  2387. "description": "UnauthorizedError",
  2388. "content": {
  2389. "application/json": {
  2390. "schema": {
  2391. "$ref": "#/components/schemas/UnauthorizedError"
  2392. }
  2393. }
  2394. }
  2395. },
  2396. "404": {
  2397. "description": "SessionNotFoundError",
  2398. "content": {
  2399. "application/json": {
  2400. "schema": {
  2401. "anyOf": [
  2402. {
  2403. "$ref": "#/components/schemas/SessionNotFoundError"
  2404. },
  2405. {
  2406. "$ref": "#/components/schemas/SessionNotFoundError"
  2407. }
  2408. ]
  2409. }
  2410. }
  2411. }
  2412. }
  2413. },
  2414. "description": "Execute one shell command in the session's working directory. Emits a shell.started event before execution and a shell.ended event with the merged output after.",
  2415. "summary": "Run shell command",
  2416. "requestBody": {
  2417. "content": {
  2418. "application/json": {
  2419. "schema": {
  2420. "type": "object",
  2421. "properties": {
  2422. "id": {
  2423. "anyOf": [
  2424. {
  2425. "type": "string",
  2426. "allOf": [
  2427. {
  2428. "pattern": "^evt_"
  2429. }
  2430. ]
  2431. },
  2432. {
  2433. "type": "null"
  2434. }
  2435. ]
  2436. },
  2437. "command": {
  2438. "type": "string"
  2439. }
  2440. },
  2441. "required": ["command"],
  2442. "additionalProperties": false
  2443. }
  2444. }
  2445. },
  2446. "required": true
  2447. }
  2448. }
  2449. },
  2450. "/api/session/{sessionID}/compact": {
  2451. "post": {
  2452. "tags": ["session"],
  2453. "operationId": "v2.session.compact",
  2454. "parameters": [
  2455. {
  2456. "name": "sessionID",
  2457. "in": "path",
  2458. "schema": {
  2459. "type": "string",
  2460. "allOf": [
  2461. {
  2462. "pattern": "^ses"
  2463. }
  2464. ]
  2465. },
  2466. "required": true
  2467. }
  2468. ],
  2469. "security": [],
  2470. "responses": {
  2471. "200": {
  2472. "description": "Success",
  2473. "content": {
  2474. "application/json": {
  2475. "schema": {
  2476. "type": "object",
  2477. "properties": {
  2478. "data": {
  2479. "$ref": "#/components/schemas/Session.Inbox.Compaction"
  2480. }
  2481. },
  2482. "required": ["data"],
  2483. "additionalProperties": false
  2484. }
  2485. }
  2486. }
  2487. },
  2488. "400": {
  2489. "description": "InvalidRequestError",
  2490. "content": {
  2491. "application/json": {
  2492. "schema": {
  2493. "$ref": "#/components/schemas/InvalidRequestError"
  2494. }
  2495. }
  2496. }
  2497. },
  2498. "401": {
  2499. "description": "UnauthorizedError",
  2500. "content": {
  2501. "application/json": {
  2502. "schema": {
  2503. "$ref": "#/components/schemas/UnauthorizedError"
  2504. }
  2505. }
  2506. }
  2507. },
  2508. "404": {
  2509. "description": "SessionNotFoundError",
  2510. "content": {
  2511. "application/json": {
  2512. "schema": {
  2513. "anyOf": [
  2514. {
  2515. "$ref": "#/components/schemas/SessionNotFoundError"
  2516. },
  2517. {
  2518. "$ref": "#/components/schemas/SessionNotFoundError"
  2519. }
  2520. ]
  2521. }
  2522. }
  2523. }
  2524. },
  2525. "409": {
  2526. "description": "ConflictError",
  2527. "content": {
  2528. "application/json": {
  2529. "schema": {
  2530. "$ref": "#/components/schemas/ConflictError"
  2531. }
  2532. }
  2533. }
  2534. }
  2535. },
  2536. "description": "Queue a durable session compaction request.",
  2537. "summary": "Compact session",
  2538. "requestBody": {
  2539. "content": {
  2540. "application/json": {
  2541. "schema": {
  2542. "type": "object",
  2543. "properties": {
  2544. "id": {
  2545. "anyOf": [
  2546. {
  2547. "type": "string",
  2548. "allOf": [
  2549. {
  2550. "pattern": "^msg_"
  2551. }
  2552. ]
  2553. },
  2554. {
  2555. "type": "null"
  2556. }
  2557. ]
  2558. },
  2559. "delivery": {
  2560. "anyOf": [
  2561. {
  2562. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  2563. },
  2564. {
  2565. "type": "null"
  2566. }
  2567. ]
  2568. }
  2569. },
  2570. "additionalProperties": false
  2571. }
  2572. }
  2573. },
  2574. "required": true
  2575. }
  2576. }
  2577. },
  2578. "/api/session/{sessionID}/wait": {
  2579. "post": {
  2580. "tags": ["session"],
  2581. "operationId": "v2.session.wait",
  2582. "parameters": [
  2583. {
  2584. "name": "sessionID",
  2585. "in": "path",
  2586. "schema": {
  2587. "type": "string",
  2588. "allOf": [
  2589. {
  2590. "pattern": "^ses"
  2591. }
  2592. ]
  2593. },
  2594. "required": true
  2595. }
  2596. ],
  2597. "security": [],
  2598. "responses": {
  2599. "204": {
  2600. "description": "<No Content>"
  2601. },
  2602. "400": {
  2603. "description": "InvalidRequestError",
  2604. "content": {
  2605. "application/json": {
  2606. "schema": {
  2607. "$ref": "#/components/schemas/InvalidRequestError"
  2608. }
  2609. }
  2610. }
  2611. },
  2612. "401": {
  2613. "description": "UnauthorizedError",
  2614. "content": {
  2615. "application/json": {
  2616. "schema": {
  2617. "$ref": "#/components/schemas/UnauthorizedError"
  2618. }
  2619. }
  2620. }
  2621. },
  2622. "404": {
  2623. "description": "SessionNotFoundError",
  2624. "content": {
  2625. "application/json": {
  2626. "schema": {
  2627. "anyOf": [
  2628. {
  2629. "$ref": "#/components/schemas/SessionNotFoundError"
  2630. },
  2631. {
  2632. "$ref": "#/components/schemas/SessionNotFoundError"
  2633. }
  2634. ]
  2635. }
  2636. }
  2637. }
  2638. },
  2639. "503": {
  2640. "description": "ServiceUnavailableError",
  2641. "content": {
  2642. "application/json": {
  2643. "schema": {
  2644. "$ref": "#/components/schemas/ServiceUnavailableError"
  2645. }
  2646. }
  2647. }
  2648. }
  2649. },
  2650. "description": "Wait for a session agent loop to become idle.",
  2651. "summary": "Wait for session"
  2652. }
  2653. },
  2654. "/api/session/{sessionID}/revert/stage": {
  2655. "post": {
  2656. "tags": ["session"],
  2657. "operationId": "v2.session.revert.stage",
  2658. "parameters": [
  2659. {
  2660. "name": "sessionID",
  2661. "in": "path",
  2662. "schema": {
  2663. "type": "string",
  2664. "allOf": [
  2665. {
  2666. "pattern": "^ses"
  2667. }
  2668. ]
  2669. },
  2670. "required": true
  2671. }
  2672. ],
  2673. "security": [],
  2674. "responses": {
  2675. "200": {
  2676. "description": "Success",
  2677. "content": {
  2678. "application/json": {
  2679. "schema": {
  2680. "type": "object",
  2681. "properties": {
  2682. "data": {
  2683. "$ref": "#/components/schemas/Session.Revert"
  2684. }
  2685. },
  2686. "required": ["data"],
  2687. "additionalProperties": false
  2688. }
  2689. }
  2690. }
  2691. },
  2692. "400": {
  2693. "description": "InvalidRequestError",
  2694. "content": {
  2695. "application/json": {
  2696. "schema": {
  2697. "$ref": "#/components/schemas/InvalidRequestError"
  2698. }
  2699. }
  2700. }
  2701. },
  2702. "401": {
  2703. "description": "UnauthorizedError",
  2704. "content": {
  2705. "application/json": {
  2706. "schema": {
  2707. "$ref": "#/components/schemas/UnauthorizedError"
  2708. }
  2709. }
  2710. }
  2711. },
  2712. "404": {
  2713. "description": "MessageNotFoundError | SessionNotFoundError",
  2714. "content": {
  2715. "application/json": {
  2716. "schema": {
  2717. "anyOf": [
  2718. {
  2719. "$ref": "#/components/schemas/MessageNotFoundError"
  2720. },
  2721. {
  2722. "$ref": "#/components/schemas/SessionNotFoundError"
  2723. },
  2724. {
  2725. "$ref": "#/components/schemas/SessionNotFoundError"
  2726. }
  2727. ]
  2728. }
  2729. }
  2730. }
  2731. },
  2732. "409": {
  2733. "description": "SessionBusyError",
  2734. "content": {
  2735. "application/json": {
  2736. "schema": {
  2737. "$ref": "#/components/schemas/SessionBusyError"
  2738. }
  2739. }
  2740. }
  2741. },
  2742. "500": {
  2743. "description": "UnknownError",
  2744. "content": {
  2745. "application/json": {
  2746. "schema": {
  2747. "$ref": "#/components/schemas/UnknownError"
  2748. }
  2749. }
  2750. }
  2751. }
  2752. },
  2753. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2754. "summary": "Stage session revert",
  2755. "requestBody": {
  2756. "content": {
  2757. "application/json": {
  2758. "schema": {
  2759. "type": "object",
  2760. "properties": {
  2761. "messageID": {
  2762. "type": "string",
  2763. "allOf": [
  2764. {
  2765. "pattern": "^msg_"
  2766. }
  2767. ]
  2768. },
  2769. "files": {
  2770. "anyOf": [
  2771. {
  2772. "type": "boolean"
  2773. },
  2774. {
  2775. "type": "null"
  2776. }
  2777. ]
  2778. }
  2779. },
  2780. "required": ["messageID"],
  2781. "additionalProperties": false
  2782. }
  2783. }
  2784. },
  2785. "required": true
  2786. }
  2787. }
  2788. },
  2789. "/api/session/{sessionID}/revert/clear": {
  2790. "post": {
  2791. "tags": ["session"],
  2792. "operationId": "v2.session.revert.clear",
  2793. "parameters": [
  2794. {
  2795. "name": "sessionID",
  2796. "in": "path",
  2797. "schema": {
  2798. "type": "string",
  2799. "allOf": [
  2800. {
  2801. "pattern": "^ses"
  2802. }
  2803. ]
  2804. },
  2805. "required": true
  2806. }
  2807. ],
  2808. "security": [],
  2809. "responses": {
  2810. "204": {
  2811. "description": "<No Content>"
  2812. },
  2813. "400": {
  2814. "description": "InvalidRequestError",
  2815. "content": {
  2816. "application/json": {
  2817. "schema": {
  2818. "$ref": "#/components/schemas/InvalidRequestError"
  2819. }
  2820. }
  2821. }
  2822. },
  2823. "401": {
  2824. "description": "UnauthorizedError",
  2825. "content": {
  2826. "application/json": {
  2827. "schema": {
  2828. "$ref": "#/components/schemas/UnauthorizedError"
  2829. }
  2830. }
  2831. }
  2832. },
  2833. "404": {
  2834. "description": "SessionNotFoundError",
  2835. "content": {
  2836. "application/json": {
  2837. "schema": {
  2838. "anyOf": [
  2839. {
  2840. "$ref": "#/components/schemas/SessionNotFoundError"
  2841. },
  2842. {
  2843. "$ref": "#/components/schemas/SessionNotFoundError"
  2844. }
  2845. ]
  2846. }
  2847. }
  2848. }
  2849. },
  2850. "409": {
  2851. "description": "SessionBusyError",
  2852. "content": {
  2853. "application/json": {
  2854. "schema": {
  2855. "$ref": "#/components/schemas/SessionBusyError"
  2856. }
  2857. }
  2858. }
  2859. },
  2860. "500": {
  2861. "description": "UnknownError",
  2862. "content": {
  2863. "application/json": {
  2864. "schema": {
  2865. "$ref": "#/components/schemas/UnknownError"
  2866. }
  2867. }
  2868. }
  2869. }
  2870. },
  2871. "summary": "Clear staged revert"
  2872. }
  2873. },
  2874. "/api/session/{sessionID}/revert/commit": {
  2875. "post": {
  2876. "tags": ["session"],
  2877. "operationId": "v2.session.revert.commit",
  2878. "parameters": [
  2879. {
  2880. "name": "sessionID",
  2881. "in": "path",
  2882. "schema": {
  2883. "type": "string",
  2884. "allOf": [
  2885. {
  2886. "pattern": "^ses"
  2887. }
  2888. ]
  2889. },
  2890. "required": true
  2891. }
  2892. ],
  2893. "security": [],
  2894. "responses": {
  2895. "204": {
  2896. "description": "<No Content>"
  2897. },
  2898. "400": {
  2899. "description": "InvalidRequestError",
  2900. "content": {
  2901. "application/json": {
  2902. "schema": {
  2903. "$ref": "#/components/schemas/InvalidRequestError"
  2904. }
  2905. }
  2906. }
  2907. },
  2908. "401": {
  2909. "description": "UnauthorizedError",
  2910. "content": {
  2911. "application/json": {
  2912. "schema": {
  2913. "$ref": "#/components/schemas/UnauthorizedError"
  2914. }
  2915. }
  2916. }
  2917. },
  2918. "404": {
  2919. "description": "SessionNotFoundError",
  2920. "content": {
  2921. "application/json": {
  2922. "schema": {
  2923. "anyOf": [
  2924. {
  2925. "$ref": "#/components/schemas/SessionNotFoundError"
  2926. },
  2927. {
  2928. "$ref": "#/components/schemas/SessionNotFoundError"
  2929. }
  2930. ]
  2931. }
  2932. }
  2933. }
  2934. },
  2935. "409": {
  2936. "description": "SessionBusyError",
  2937. "content": {
  2938. "application/json": {
  2939. "schema": {
  2940. "$ref": "#/components/schemas/SessionBusyError"
  2941. }
  2942. }
  2943. }
  2944. }
  2945. },
  2946. "summary": "Commit staged revert"
  2947. }
  2948. },
  2949. "/api/session/{sessionID}/context": {
  2950. "get": {
  2951. "tags": ["session"],
  2952. "operationId": "v2.session.context",
  2953. "parameters": [
  2954. {
  2955. "name": "sessionID",
  2956. "in": "path",
  2957. "schema": {
  2958. "type": "string",
  2959. "allOf": [
  2960. {
  2961. "pattern": "^ses"
  2962. }
  2963. ]
  2964. },
  2965. "required": true
  2966. }
  2967. ],
  2968. "security": [],
  2969. "responses": {
  2970. "200": {
  2971. "description": "Success",
  2972. "content": {
  2973. "application/json": {
  2974. "schema": {
  2975. "type": "object",
  2976. "properties": {
  2977. "data": {
  2978. "type": "array",
  2979. "items": {
  2980. "$ref": "#/components/schemas/Session.Message.Info"
  2981. }
  2982. }
  2983. },
  2984. "required": ["data"],
  2985. "additionalProperties": false
  2986. }
  2987. }
  2988. }
  2989. },
  2990. "400": {
  2991. "description": "InvalidRequestError",
  2992. "content": {
  2993. "application/json": {
  2994. "schema": {
  2995. "$ref": "#/components/schemas/InvalidRequestError"
  2996. }
  2997. }
  2998. }
  2999. },
  3000. "401": {
  3001. "description": "UnauthorizedError",
  3002. "content": {
  3003. "application/json": {
  3004. "schema": {
  3005. "$ref": "#/components/schemas/UnauthorizedError"
  3006. }
  3007. }
  3008. }
  3009. },
  3010. "404": {
  3011. "description": "SessionNotFoundError",
  3012. "content": {
  3013. "application/json": {
  3014. "schema": {
  3015. "$ref": "#/components/schemas/SessionNotFoundError"
  3016. }
  3017. }
  3018. }
  3019. },
  3020. "500": {
  3021. "description": "UnknownError",
  3022. "content": {
  3023. "application/json": {
  3024. "schema": {
  3025. "$ref": "#/components/schemas/UnknownError"
  3026. }
  3027. }
  3028. }
  3029. }
  3030. },
  3031. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  3032. "summary": "Get session context"
  3033. }
  3034. },
  3035. "/api/session/{sessionID}/inbox": {
  3036. "get": {
  3037. "tags": ["session"],
  3038. "operationId": "v2.session.inbox.list",
  3039. "parameters": [
  3040. {
  3041. "name": "sessionID",
  3042. "in": "path",
  3043. "schema": {
  3044. "type": "string",
  3045. "allOf": [
  3046. {
  3047. "pattern": "^ses"
  3048. }
  3049. ]
  3050. },
  3051. "required": true
  3052. }
  3053. ],
  3054. "security": [],
  3055. "responses": {
  3056. "200": {
  3057. "description": "Success",
  3058. "content": {
  3059. "application/json": {
  3060. "schema": {
  3061. "type": "object",
  3062. "properties": {
  3063. "data": {
  3064. "type": "array",
  3065. "items": {
  3066. "$ref": "#/components/schemas/Session.Inbox.Info"
  3067. }
  3068. }
  3069. },
  3070. "required": ["data"],
  3071. "additionalProperties": false
  3072. }
  3073. }
  3074. }
  3075. },
  3076. "400": {
  3077. "description": "InvalidRequestError",
  3078. "content": {
  3079. "application/json": {
  3080. "schema": {
  3081. "$ref": "#/components/schemas/InvalidRequestError"
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "401": {
  3087. "description": "UnauthorizedError",
  3088. "content": {
  3089. "application/json": {
  3090. "schema": {
  3091. "$ref": "#/components/schemas/UnauthorizedError"
  3092. }
  3093. }
  3094. }
  3095. },
  3096. "404": {
  3097. "description": "SessionNotFoundError",
  3098. "content": {
  3099. "application/json": {
  3100. "schema": {
  3101. "$ref": "#/components/schemas/SessionNotFoundError"
  3102. }
  3103. }
  3104. }
  3105. }
  3106. },
  3107. "description": "List durable enqueued session work not yet delivered, ordered by enqueue sequence. Includes user, synthetic, compaction, and move items.",
  3108. "summary": "List session inbox"
  3109. }
  3110. },
  3111. "/api/session/{sessionID}/inbox/{inboxID}": {
  3112. "delete": {
  3113. "tags": ["session"],
  3114. "operationId": "v2.session.inbox.cancel",
  3115. "parameters": [
  3116. {
  3117. "name": "sessionID",
  3118. "in": "path",
  3119. "schema": {
  3120. "type": "string",
  3121. "allOf": [
  3122. {
  3123. "pattern": "^ses"
  3124. }
  3125. ]
  3126. },
  3127. "required": true
  3128. },
  3129. {
  3130. "name": "inboxID",
  3131. "in": "path",
  3132. "schema": {
  3133. "type": "string",
  3134. "allOf": [
  3135. {
  3136. "pattern": "^msg_"
  3137. }
  3138. ]
  3139. },
  3140. "required": true
  3141. }
  3142. ],
  3143. "security": [],
  3144. "responses": {
  3145. "204": {
  3146. "description": "<No Content>"
  3147. },
  3148. "400": {
  3149. "description": "InvalidRequestError",
  3150. "content": {
  3151. "application/json": {
  3152. "schema": {
  3153. "$ref": "#/components/schemas/InvalidRequestError"
  3154. }
  3155. }
  3156. }
  3157. },
  3158. "401": {
  3159. "description": "UnauthorizedError",
  3160. "content": {
  3161. "application/json": {
  3162. "schema": {
  3163. "$ref": "#/components/schemas/UnauthorizedError"
  3164. }
  3165. }
  3166. }
  3167. },
  3168. "404": {
  3169. "description": "SessionNotFoundError",
  3170. "content": {
  3171. "application/json": {
  3172. "schema": {
  3173. "$ref": "#/components/schemas/SessionNotFoundError"
  3174. }
  3175. }
  3176. }
  3177. },
  3178. "409": {
  3179. "description": "ConflictError",
  3180. "content": {
  3181. "application/json": {
  3182. "schema": {
  3183. "$ref": "#/components/schemas/ConflictError"
  3184. }
  3185. }
  3186. }
  3187. }
  3188. },
  3189. "description": "Cancel an inbox item that has not yet been delivered.",
  3190. "summary": "Cancel inbox input"
  3191. }
  3192. },
  3193. "/api/session/{sessionID}/inbox/{inboxID}/steer": {
  3194. "post": {
  3195. "tags": ["session"],
  3196. "operationId": "v2.session.inbox.steer",
  3197. "parameters": [
  3198. {
  3199. "name": "sessionID",
  3200. "in": "path",
  3201. "schema": {
  3202. "type": "string",
  3203. "allOf": [
  3204. {
  3205. "pattern": "^ses"
  3206. }
  3207. ]
  3208. },
  3209. "required": true
  3210. },
  3211. {
  3212. "name": "inboxID",
  3213. "in": "path",
  3214. "schema": {
  3215. "type": "string",
  3216. "allOf": [
  3217. {
  3218. "pattern": "^msg_"
  3219. }
  3220. ]
  3221. },
  3222. "required": true
  3223. }
  3224. ],
  3225. "security": [],
  3226. "responses": {
  3227. "204": {
  3228. "description": "<No Content>"
  3229. },
  3230. "400": {
  3231. "description": "InvalidRequestError",
  3232. "content": {
  3233. "application/json": {
  3234. "schema": {
  3235. "$ref": "#/components/schemas/InvalidRequestError"
  3236. }
  3237. }
  3238. }
  3239. },
  3240. "401": {
  3241. "description": "UnauthorizedError",
  3242. "content": {
  3243. "application/json": {
  3244. "schema": {
  3245. "$ref": "#/components/schemas/UnauthorizedError"
  3246. }
  3247. }
  3248. }
  3249. },
  3250. "404": {
  3251. "description": "SessionNotFoundError",
  3252. "content": {
  3253. "application/json": {
  3254. "schema": {
  3255. "$ref": "#/components/schemas/SessionNotFoundError"
  3256. }
  3257. }
  3258. }
  3259. },
  3260. "409": {
  3261. "description": "ConflictError",
  3262. "content": {
  3263. "application/json": {
  3264. "schema": {
  3265. "$ref": "#/components/schemas/ConflictError"
  3266. }
  3267. }
  3268. }
  3269. }
  3270. },
  3271. "description": "Change a queued inbox item to steer delivery and wake session execution.",
  3272. "summary": "Steer queued item"
  3273. }
  3274. },
  3275. "/api/session/{sessionID}/inbox/{inboxID}/queue": {
  3276. "post": {
  3277. "tags": ["session"],
  3278. "operationId": "v2.session.inbox.queue",
  3279. "parameters": [
  3280. {
  3281. "name": "sessionID",
  3282. "in": "path",
  3283. "schema": {
  3284. "type": "string",
  3285. "allOf": [
  3286. {
  3287. "pattern": "^ses"
  3288. }
  3289. ]
  3290. },
  3291. "required": true
  3292. },
  3293. {
  3294. "name": "inboxID",
  3295. "in": "path",
  3296. "schema": {
  3297. "type": "string",
  3298. "allOf": [
  3299. {
  3300. "pattern": "^msg_"
  3301. }
  3302. ]
  3303. },
  3304. "required": true
  3305. }
  3306. ],
  3307. "security": [],
  3308. "responses": {
  3309. "204": {
  3310. "description": "<No Content>"
  3311. },
  3312. "400": {
  3313. "description": "InvalidRequestError",
  3314. "content": {
  3315. "application/json": {
  3316. "schema": {
  3317. "$ref": "#/components/schemas/InvalidRequestError"
  3318. }
  3319. }
  3320. }
  3321. },
  3322. "401": {
  3323. "description": "UnauthorizedError",
  3324. "content": {
  3325. "application/json": {
  3326. "schema": {
  3327. "$ref": "#/components/schemas/UnauthorizedError"
  3328. }
  3329. }
  3330. }
  3331. },
  3332. "404": {
  3333. "description": "SessionNotFoundError",
  3334. "content": {
  3335. "application/json": {
  3336. "schema": {
  3337. "$ref": "#/components/schemas/SessionNotFoundError"
  3338. }
  3339. }
  3340. }
  3341. },
  3342. "409": {
  3343. "description": "ConflictError",
  3344. "content": {
  3345. "application/json": {
  3346. "schema": {
  3347. "$ref": "#/components/schemas/ConflictError"
  3348. }
  3349. }
  3350. }
  3351. }
  3352. },
  3353. "description": "Change a steered inbox item to queued delivery.",
  3354. "summary": "Queue steered item"
  3355. }
  3356. },
  3357. "/api/session/{sessionID}/instructions/entries": {
  3358. "get": {
  3359. "tags": ["session"],
  3360. "operationId": "v2.session.instructions.entry.list",
  3361. "parameters": [
  3362. {
  3363. "name": "sessionID",
  3364. "in": "path",
  3365. "schema": {
  3366. "type": "string",
  3367. "allOf": [
  3368. {
  3369. "pattern": "^ses"
  3370. }
  3371. ]
  3372. },
  3373. "required": true
  3374. }
  3375. ],
  3376. "security": [],
  3377. "responses": {
  3378. "200": {
  3379. "description": "Success",
  3380. "content": {
  3381. "application/json": {
  3382. "schema": {
  3383. "type": "object",
  3384. "properties": {
  3385. "data": {
  3386. "type": "array",
  3387. "items": {
  3388. "$ref": "#/components/schemas/InstructionEntry.Info"
  3389. }
  3390. }
  3391. },
  3392. "required": ["data"],
  3393. "additionalProperties": false
  3394. }
  3395. }
  3396. }
  3397. },
  3398. "400": {
  3399. "description": "InvalidRequestError",
  3400. "content": {
  3401. "application/json": {
  3402. "schema": {
  3403. "$ref": "#/components/schemas/InvalidRequestError"
  3404. }
  3405. }
  3406. }
  3407. },
  3408. "401": {
  3409. "description": "UnauthorizedError",
  3410. "content": {
  3411. "application/json": {
  3412. "schema": {
  3413. "$ref": "#/components/schemas/UnauthorizedError"
  3414. }
  3415. }
  3416. }
  3417. },
  3418. "404": {
  3419. "description": "SessionNotFoundError",
  3420. "content": {
  3421. "application/json": {
  3422. "schema": {
  3423. "anyOf": [
  3424. {
  3425. "$ref": "#/components/schemas/SessionNotFoundError"
  3426. },
  3427. {
  3428. "$ref": "#/components/schemas/SessionNotFoundError"
  3429. }
  3430. ]
  3431. }
  3432. }
  3433. }
  3434. }
  3435. },
  3436. "description": "List API-managed instruction entries attached to the session.",
  3437. "summary": "List instruction entries"
  3438. }
  3439. },
  3440. "/api/session/{sessionID}/instructions/entries/{key}": {
  3441. "put": {
  3442. "tags": ["session"],
  3443. "operationId": "v2.session.instructions.entry.put",
  3444. "parameters": [
  3445. {
  3446. "name": "sessionID",
  3447. "in": "path",
  3448. "schema": {
  3449. "type": "string",
  3450. "allOf": [
  3451. {
  3452. "pattern": "^ses"
  3453. }
  3454. ]
  3455. },
  3456. "required": true
  3457. },
  3458. {
  3459. "name": "key",
  3460. "in": "path",
  3461. "schema": {
  3462. "$ref": "#/components/schemas/InstructionEntry.Key"
  3463. },
  3464. "required": true
  3465. }
  3466. ],
  3467. "security": [],
  3468. "responses": {
  3469. "204": {
  3470. "description": "<No Content>"
  3471. },
  3472. "400": {
  3473. "description": "InvalidRequestError",
  3474. "content": {
  3475. "application/json": {
  3476. "schema": {
  3477. "$ref": "#/components/schemas/InvalidRequestError"
  3478. }
  3479. }
  3480. }
  3481. },
  3482. "401": {
  3483. "description": "UnauthorizedError",
  3484. "content": {
  3485. "application/json": {
  3486. "schema": {
  3487. "$ref": "#/components/schemas/UnauthorizedError"
  3488. }
  3489. }
  3490. }
  3491. },
  3492. "404": {
  3493. "description": "SessionNotFoundError",
  3494. "content": {
  3495. "application/json": {
  3496. "schema": {
  3497. "anyOf": [
  3498. {
  3499. "$ref": "#/components/schemas/SessionNotFoundError"
  3500. },
  3501. {
  3502. "$ref": "#/components/schemas/SessionNotFoundError"
  3503. }
  3504. ]
  3505. }
  3506. }
  3507. }
  3508. },
  3509. "413": {
  3510. "description": "InstructionEntryValueTooLargeError",
  3511. "content": {
  3512. "application/json": {
  3513. "schema": {
  3514. "$ref": "#/components/schemas/InstructionEntryValueTooLargeError"
  3515. }
  3516. }
  3517. }
  3518. }
  3519. },
  3520. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  3521. "summary": "Put instruction entry",
  3522. "requestBody": {
  3523. "content": {
  3524. "application/json": {
  3525. "schema": {
  3526. "type": "object",
  3527. "properties": {
  3528. "value": {}
  3529. },
  3530. "required": ["value"],
  3531. "additionalProperties": false
  3532. }
  3533. }
  3534. },
  3535. "required": true
  3536. }
  3537. },
  3538. "delete": {
  3539. "tags": ["session"],
  3540. "operationId": "v2.session.instructions.entry.remove",
  3541. "parameters": [
  3542. {
  3543. "name": "sessionID",
  3544. "in": "path",
  3545. "schema": {
  3546. "type": "string",
  3547. "allOf": [
  3548. {
  3549. "pattern": "^ses"
  3550. }
  3551. ]
  3552. },
  3553. "required": true
  3554. },
  3555. {
  3556. "name": "key",
  3557. "in": "path",
  3558. "schema": {
  3559. "$ref": "#/components/schemas/InstructionEntry.Key"
  3560. },
  3561. "required": true
  3562. }
  3563. ],
  3564. "security": [],
  3565. "responses": {
  3566. "204": {
  3567. "description": "<No Content>"
  3568. },
  3569. "400": {
  3570. "description": "InvalidRequestError",
  3571. "content": {
  3572. "application/json": {
  3573. "schema": {
  3574. "$ref": "#/components/schemas/InvalidRequestError"
  3575. }
  3576. }
  3577. }
  3578. },
  3579. "401": {
  3580. "description": "UnauthorizedError",
  3581. "content": {
  3582. "application/json": {
  3583. "schema": {
  3584. "$ref": "#/components/schemas/UnauthorizedError"
  3585. }
  3586. }
  3587. }
  3588. },
  3589. "404": {
  3590. "description": "SessionNotFoundError",
  3591. "content": {
  3592. "application/json": {
  3593. "schema": {
  3594. "anyOf": [
  3595. {
  3596. "$ref": "#/components/schemas/SessionNotFoundError"
  3597. },
  3598. {
  3599. "$ref": "#/components/schemas/SessionNotFoundError"
  3600. }
  3601. ]
  3602. }
  3603. }
  3604. }
  3605. }
  3606. },
  3607. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  3608. "summary": "Remove instruction entry"
  3609. }
  3610. },
  3611. "/api/session/{sessionID}/generate": {
  3612. "post": {
  3613. "tags": ["session"],
  3614. "operationId": "v2.session.generate",
  3615. "parameters": [
  3616. {
  3617. "name": "sessionID",
  3618. "in": "path",
  3619. "schema": {
  3620. "type": "string",
  3621. "allOf": [
  3622. {
  3623. "pattern": "^ses"
  3624. }
  3625. ]
  3626. },
  3627. "required": true
  3628. }
  3629. ],
  3630. "security": [],
  3631. "responses": {
  3632. "200": {
  3633. "description": "SessionGenerateResponse",
  3634. "content": {
  3635. "application/json": {
  3636. "schema": {
  3637. "$ref": "#/components/schemas/SessionGenerateResponse"
  3638. }
  3639. }
  3640. }
  3641. },
  3642. "400": {
  3643. "description": "InvalidRequestError",
  3644. "content": {
  3645. "application/json": {
  3646. "schema": {
  3647. "$ref": "#/components/schemas/InvalidRequestError"
  3648. }
  3649. }
  3650. }
  3651. },
  3652. "401": {
  3653. "description": "UnauthorizedError",
  3654. "content": {
  3655. "application/json": {
  3656. "schema": {
  3657. "$ref": "#/components/schemas/UnauthorizedError"
  3658. }
  3659. }
  3660. }
  3661. },
  3662. "404": {
  3663. "description": "SessionNotFoundError",
  3664. "content": {
  3665. "application/json": {
  3666. "schema": {
  3667. "anyOf": [
  3668. {
  3669. "$ref": "#/components/schemas/SessionNotFoundError"
  3670. },
  3671. {
  3672. "$ref": "#/components/schemas/SessionNotFoundError"
  3673. }
  3674. ]
  3675. }
  3676. }
  3677. }
  3678. },
  3679. "503": {
  3680. "description": "ServiceUnavailableError",
  3681. "content": {
  3682. "application/json": {
  3683. "schema": {
  3684. "$ref": "#/components/schemas/ServiceUnavailableError"
  3685. }
  3686. }
  3687. }
  3688. }
  3689. },
  3690. "description": "Generate transient text from the current session context without mutating session history.",
  3691. "summary": "Generate text from session context",
  3692. "requestBody": {
  3693. "content": {
  3694. "application/json": {
  3695. "schema": {
  3696. "type": "object",
  3697. "properties": {
  3698. "prompt": {
  3699. "type": "string"
  3700. }
  3701. },
  3702. "required": ["prompt"],
  3703. "additionalProperties": false
  3704. }
  3705. }
  3706. },
  3707. "required": true
  3708. }
  3709. }
  3710. },
  3711. "/api/experimental/session/{sessionID}/log": {
  3712. "get": {
  3713. "tags": ["session"],
  3714. "operationId": "v2.session.log",
  3715. "parameters": [
  3716. {
  3717. "name": "sessionID",
  3718. "in": "path",
  3719. "schema": {
  3720. "type": "string",
  3721. "allOf": [
  3722. {
  3723. "pattern": "^ses"
  3724. }
  3725. ]
  3726. },
  3727. "required": true
  3728. },
  3729. {
  3730. "name": "after",
  3731. "in": "query",
  3732. "schema": {
  3733. "anyOf": [
  3734. {
  3735. "type": "string"
  3736. },
  3737. {
  3738. "type": "null"
  3739. }
  3740. ]
  3741. },
  3742. "required": false
  3743. },
  3744. {
  3745. "name": "follow",
  3746. "in": "query",
  3747. "schema": {
  3748. "anyOf": [
  3749. {
  3750. "type": "string",
  3751. "enum": ["true", "false"]
  3752. },
  3753. {
  3754. "type": "null"
  3755. }
  3756. ]
  3757. },
  3758. "required": false
  3759. }
  3760. ],
  3761. "security": [],
  3762. "responses": {
  3763. "200": {
  3764. "description": "Success",
  3765. "content": {
  3766. "text/event-stream": {
  3767. "schema": {
  3768. "type": "object",
  3769. "properties": {
  3770. "id": {
  3771. "anyOf": [
  3772. {
  3773. "type": "string"
  3774. },
  3775. {
  3776. "type": "null"
  3777. }
  3778. ]
  3779. },
  3780. "event": {
  3781. "type": "string"
  3782. },
  3783. "data": {
  3784. "$ref": "#/components/schemas/SessionLogItemJsonString"
  3785. }
  3786. },
  3787. "required": ["id", "event", "data"],
  3788. "additionalProperties": false
  3789. },
  3790. "x-effect-stream": {
  3791. "encoding": "sse",
  3792. "causeSchema": {
  3793. "type": "array",
  3794. "items": {
  3795. "anyOf": [
  3796. {
  3797. "type": "object",
  3798. "properties": {
  3799. "_tag": {
  3800. "type": "string",
  3801. "enum": ["Fail"]
  3802. },
  3803. "error": {
  3804. "not": {}
  3805. }
  3806. },
  3807. "required": ["_tag", "error"],
  3808. "additionalProperties": false
  3809. },
  3810. {
  3811. "type": "object",
  3812. "properties": {
  3813. "_tag": {
  3814. "type": "string",
  3815. "enum": ["Die"]
  3816. },
  3817. "defect": {}
  3818. },
  3819. "required": ["_tag", "defect"],
  3820. "additionalProperties": false
  3821. },
  3822. {
  3823. "type": "object",
  3824. "properties": {
  3825. "_tag": {
  3826. "type": "string",
  3827. "enum": ["Interrupt"]
  3828. },
  3829. "fiberId": {
  3830. "anyOf": [
  3831. {
  3832. "type": "number"
  3833. },
  3834. {
  3835. "type": "null"
  3836. }
  3837. ]
  3838. }
  3839. },
  3840. "required": ["_tag", "fiberId"],
  3841. "additionalProperties": false
  3842. }
  3843. ]
  3844. }
  3845. },
  3846. "errorSchema": {
  3847. "not": {}
  3848. },
  3849. "failureEvent": "effect/httpapi/stream/failure"
  3850. }
  3851. }
  3852. }
  3853. },
  3854. "400": {
  3855. "description": "InvalidRequestError",
  3856. "content": {
  3857. "application/json": {
  3858. "schema": {
  3859. "$ref": "#/components/schemas/InvalidRequestError"
  3860. }
  3861. }
  3862. }
  3863. },
  3864. "401": {
  3865. "description": "UnauthorizedError",
  3866. "content": {
  3867. "application/json": {
  3868. "schema": {
  3869. "$ref": "#/components/schemas/UnauthorizedError"
  3870. }
  3871. }
  3872. }
  3873. },
  3874. "404": {
  3875. "description": "SessionNotFoundError",
  3876. "content": {
  3877. "application/json": {
  3878. "schema": {
  3879. "$ref": "#/components/schemas/SessionNotFoundError"
  3880. }
  3881. }
  3882. }
  3883. }
  3884. },
  3885. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3886. "summary": "Read the session log"
  3887. }
  3888. },
  3889. "/api/session/{sessionID}/interrupt": {
  3890. "post": {
  3891. "tags": ["session"],
  3892. "operationId": "v2.session.interrupt",
  3893. "parameters": [
  3894. {
  3895. "name": "sessionID",
  3896. "in": "path",
  3897. "schema": {
  3898. "type": "string",
  3899. "allOf": [
  3900. {
  3901. "pattern": "^ses"
  3902. }
  3903. ]
  3904. },
  3905. "required": true
  3906. },
  3907. {
  3908. "name": "continue",
  3909. "in": "query",
  3910. "schema": {
  3911. "anyOf": [
  3912. {
  3913. "type": "string",
  3914. "enum": ["true", "false"]
  3915. },
  3916. {
  3917. "type": "null"
  3918. }
  3919. ]
  3920. },
  3921. "required": false
  3922. }
  3923. ],
  3924. "security": [],
  3925. "responses": {
  3926. "204": {
  3927. "description": "<No Content>"
  3928. },
  3929. "400": {
  3930. "description": "InvalidRequestError",
  3931. "content": {
  3932. "application/json": {
  3933. "schema": {
  3934. "$ref": "#/components/schemas/InvalidRequestError"
  3935. }
  3936. }
  3937. }
  3938. },
  3939. "401": {
  3940. "description": "UnauthorizedError",
  3941. "content": {
  3942. "application/json": {
  3943. "schema": {
  3944. "$ref": "#/components/schemas/UnauthorizedError"
  3945. }
  3946. }
  3947. }
  3948. },
  3949. "404": {
  3950. "description": "SessionNotFoundError",
  3951. "content": {
  3952. "application/json": {
  3953. "schema": {
  3954. "anyOf": [
  3955. {
  3956. "$ref": "#/components/schemas/SessionNotFoundError"
  3957. },
  3958. {
  3959. "$ref": "#/components/schemas/SessionNotFoundError"
  3960. }
  3961. ]
  3962. }
  3963. }
  3964. }
  3965. }
  3966. },
  3967. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op. When continue=true, execution resumes pending steering input while queued work remains parked.",
  3968. "summary": "Interrupt session execution"
  3969. }
  3970. },
  3971. "/api/session/{sessionID}/background": {
  3972. "post": {
  3973. "tags": ["session"],
  3974. "operationId": "v2.session.background",
  3975. "parameters": [
  3976. {
  3977. "name": "sessionID",
  3978. "in": "path",
  3979. "schema": {
  3980. "type": "string",
  3981. "allOf": [
  3982. {
  3983. "pattern": "^ses"
  3984. }
  3985. ]
  3986. },
  3987. "required": true
  3988. }
  3989. ],
  3990. "security": [],
  3991. "responses": {
  3992. "204": {
  3993. "description": "<No Content>"
  3994. },
  3995. "400": {
  3996. "description": "InvalidRequestError",
  3997. "content": {
  3998. "application/json": {
  3999. "schema": {
  4000. "$ref": "#/components/schemas/InvalidRequestError"
  4001. }
  4002. }
  4003. }
  4004. },
  4005. "401": {
  4006. "description": "UnauthorizedError",
  4007. "content": {
  4008. "application/json": {
  4009. "schema": {
  4010. "$ref": "#/components/schemas/UnauthorizedError"
  4011. }
  4012. }
  4013. }
  4014. },
  4015. "404": {
  4016. "description": "SessionNotFoundError",
  4017. "content": {
  4018. "application/json": {
  4019. "schema": {
  4020. "anyOf": [
  4021. {
  4022. "$ref": "#/components/schemas/SessionNotFoundError"
  4023. },
  4024. {
  4025. "$ref": "#/components/schemas/SessionNotFoundError"
  4026. }
  4027. ]
  4028. }
  4029. }
  4030. }
  4031. }
  4032. },
  4033. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  4034. "summary": "Background blocking session tools"
  4035. }
  4036. },
  4037. "/api/session/{sessionID}/message/{messageID}": {
  4038. "get": {
  4039. "tags": ["session"],
  4040. "operationId": "v2.session.message",
  4041. "parameters": [
  4042. {
  4043. "name": "sessionID",
  4044. "in": "path",
  4045. "schema": {
  4046. "type": "string",
  4047. "allOf": [
  4048. {
  4049. "pattern": "^ses"
  4050. }
  4051. ]
  4052. },
  4053. "required": true
  4054. },
  4055. {
  4056. "name": "messageID",
  4057. "in": "path",
  4058. "schema": {
  4059. "type": "string",
  4060. "allOf": [
  4061. {
  4062. "pattern": "^msg_"
  4063. }
  4064. ]
  4065. },
  4066. "required": true
  4067. }
  4068. ],
  4069. "security": [],
  4070. "responses": {
  4071. "200": {
  4072. "description": "Success",
  4073. "content": {
  4074. "application/json": {
  4075. "schema": {
  4076. "type": "object",
  4077. "properties": {
  4078. "data": {
  4079. "$ref": "#/components/schemas/Session.Message.Info"
  4080. }
  4081. },
  4082. "required": ["data"],
  4083. "additionalProperties": false
  4084. }
  4085. }
  4086. }
  4087. },
  4088. "400": {
  4089. "description": "InvalidRequestError",
  4090. "content": {
  4091. "application/json": {
  4092. "schema": {
  4093. "$ref": "#/components/schemas/InvalidRequestError"
  4094. }
  4095. }
  4096. }
  4097. },
  4098. "401": {
  4099. "description": "UnauthorizedError",
  4100. "content": {
  4101. "application/json": {
  4102. "schema": {
  4103. "$ref": "#/components/schemas/UnauthorizedError"
  4104. }
  4105. }
  4106. }
  4107. },
  4108. "404": {
  4109. "description": "SessionNotFoundError | MessageNotFoundError",
  4110. "content": {
  4111. "application/json": {
  4112. "schema": {
  4113. "anyOf": [
  4114. {
  4115. "$ref": "#/components/schemas/SessionNotFoundError"
  4116. },
  4117. {
  4118. "$ref": "#/components/schemas/MessageNotFoundError"
  4119. }
  4120. ]
  4121. }
  4122. }
  4123. }
  4124. }
  4125. },
  4126. "description": "Retrieve one projected message owned by the Session.",
  4127. "summary": "Get session message"
  4128. }
  4129. },
  4130. "/api/session/{sessionID}/view": {
  4131. "post": {
  4132. "tags": ["session"],
  4133. "operationId": "v2.session.view",
  4134. "parameters": [
  4135. {
  4136. "name": "sessionID",
  4137. "in": "path",
  4138. "schema": {
  4139. "type": "string",
  4140. "allOf": [
  4141. {
  4142. "pattern": "^ses"
  4143. }
  4144. ]
  4145. },
  4146. "required": true
  4147. }
  4148. ],
  4149. "security": [],
  4150. "responses": {
  4151. "204": {
  4152. "description": "<No Content>"
  4153. },
  4154. "400": {
  4155. "description": "InvalidRequestError",
  4156. "content": {
  4157. "application/json": {
  4158. "schema": {
  4159. "$ref": "#/components/schemas/InvalidRequestError"
  4160. }
  4161. }
  4162. }
  4163. },
  4164. "401": {
  4165. "description": "UnauthorizedError",
  4166. "content": {
  4167. "application/json": {
  4168. "schema": {
  4169. "$ref": "#/components/schemas/UnauthorizedError"
  4170. }
  4171. }
  4172. }
  4173. },
  4174. "404": {
  4175. "description": "SessionNotFoundError",
  4176. "content": {
  4177. "application/json": {
  4178. "schema": {
  4179. "$ref": "#/components/schemas/SessionNotFoundError"
  4180. }
  4181. }
  4182. }
  4183. }
  4184. },
  4185. "description": "Mark the latest recorded idle transition as viewed.",
  4186. "summary": "View session"
  4187. }
  4188. },
  4189. "/api/session/{sessionID}/message": {
  4190. "get": {
  4191. "tags": ["session"],
  4192. "operationId": "v2.message.list",
  4193. "parameters": [
  4194. {
  4195. "name": "sessionID",
  4196. "in": "path",
  4197. "schema": {
  4198. "type": "string",
  4199. "allOf": [
  4200. {
  4201. "pattern": "^ses"
  4202. }
  4203. ]
  4204. },
  4205. "required": true
  4206. },
  4207. {
  4208. "name": "limit",
  4209. "in": "query",
  4210. "schema": {
  4211. "anyOf": [
  4212. {
  4213. "type": "string"
  4214. },
  4215. {
  4216. "type": "null"
  4217. }
  4218. ],
  4219. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  4220. },
  4221. "required": false
  4222. },
  4223. {
  4224. "name": "order",
  4225. "in": "query",
  4226. "schema": {
  4227. "anyOf": [
  4228. {
  4229. "type": "string",
  4230. "enum": ["asc", "desc"]
  4231. },
  4232. {
  4233. "type": "null"
  4234. }
  4235. ],
  4236. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  4237. },
  4238. "required": false
  4239. },
  4240. {
  4241. "name": "cursor",
  4242. "in": "query",
  4243. "schema": {
  4244. "anyOf": [
  4245. {
  4246. "type": "string",
  4247. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  4248. },
  4249. {
  4250. "type": "null"
  4251. }
  4252. ]
  4253. },
  4254. "required": false
  4255. }
  4256. ],
  4257. "security": [],
  4258. "responses": {
  4259. "200": {
  4260. "description": "SessionMessagesResponse",
  4261. "content": {
  4262. "application/json": {
  4263. "schema": {
  4264. "$ref": "#/components/schemas/SessionMessagesResponse"
  4265. }
  4266. }
  4267. }
  4268. },
  4269. "400": {
  4270. "description": "InvalidCursorError | InvalidRequestError",
  4271. "content": {
  4272. "application/json": {
  4273. "schema": {
  4274. "anyOf": [
  4275. {
  4276. "$ref": "#/components/schemas/InvalidCursorError"
  4277. },
  4278. {
  4279. "$ref": "#/components/schemas/InvalidRequestError"
  4280. }
  4281. ]
  4282. }
  4283. }
  4284. }
  4285. },
  4286. "401": {
  4287. "description": "UnauthorizedError",
  4288. "content": {
  4289. "application/json": {
  4290. "schema": {
  4291. "$ref": "#/components/schemas/UnauthorizedError"
  4292. }
  4293. }
  4294. }
  4295. },
  4296. "404": {
  4297. "description": "SessionNotFoundError",
  4298. "content": {
  4299. "application/json": {
  4300. "schema": {
  4301. "$ref": "#/components/schemas/SessionNotFoundError"
  4302. }
  4303. }
  4304. }
  4305. },
  4306. "500": {
  4307. "description": "UnknownError",
  4308. "content": {
  4309. "application/json": {
  4310. "schema": {
  4311. "$ref": "#/components/schemas/UnknownError"
  4312. }
  4313. }
  4314. }
  4315. }
  4316. },
  4317. "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.",
  4318. "summary": "Get session messages"
  4319. }
  4320. },
  4321. "/api/model": {
  4322. "get": {
  4323. "tags": ["model"],
  4324. "operationId": "v2.model.list",
  4325. "parameters": [
  4326. {
  4327. "name": "location",
  4328. "in": "query",
  4329. "schema": {
  4330. "anyOf": [
  4331. {
  4332. "type": "object",
  4333. "properties": {
  4334. "directory": {
  4335. "anyOf": [
  4336. {
  4337. "type": "string"
  4338. },
  4339. {
  4340. "type": "null"
  4341. }
  4342. ]
  4343. },
  4344. "workspace": {
  4345. "anyOf": [
  4346. {
  4347. "type": "string"
  4348. },
  4349. {
  4350. "type": "null"
  4351. }
  4352. ]
  4353. }
  4354. },
  4355. "additionalProperties": false
  4356. },
  4357. {
  4358. "type": "null"
  4359. }
  4360. ]
  4361. },
  4362. "required": false,
  4363. "style": "deepObject",
  4364. "explode": true
  4365. }
  4366. ],
  4367. "security": [],
  4368. "responses": {
  4369. "200": {
  4370. "description": "Success",
  4371. "content": {
  4372. "application/json": {
  4373. "schema": {
  4374. "type": "object",
  4375. "properties": {
  4376. "location": {
  4377. "$ref": "#/components/schemas/Location.Info"
  4378. },
  4379. "data": {
  4380. "type": "array",
  4381. "items": {
  4382. "$ref": "#/components/schemas/Model.Info"
  4383. }
  4384. }
  4385. },
  4386. "required": ["location", "data"],
  4387. "additionalProperties": false
  4388. }
  4389. }
  4390. }
  4391. },
  4392. "400": {
  4393. "description": "InvalidRequestError",
  4394. "content": {
  4395. "application/json": {
  4396. "schema": {
  4397. "$ref": "#/components/schemas/InvalidRequestError"
  4398. }
  4399. }
  4400. }
  4401. },
  4402. "401": {
  4403. "description": "UnauthorizedError",
  4404. "content": {
  4405. "application/json": {
  4406. "schema": {
  4407. "$ref": "#/components/schemas/UnauthorizedError"
  4408. }
  4409. }
  4410. }
  4411. },
  4412. "503": {
  4413. "description": "ServiceUnavailableError",
  4414. "content": {
  4415. "application/json": {
  4416. "schema": {
  4417. "$ref": "#/components/schemas/ServiceUnavailableError"
  4418. }
  4419. }
  4420. }
  4421. }
  4422. },
  4423. "description": "Retrieve the current snapshot of available models ordered by release date. The snapshot may precede initial plugin settlement.",
  4424. "summary": "List models"
  4425. }
  4426. },
  4427. "/api/model/default": {
  4428. "get": {
  4429. "tags": ["model"],
  4430. "operationId": "v2.model.default",
  4431. "parameters": [
  4432. {
  4433. "name": "location",
  4434. "in": "query",
  4435. "schema": {
  4436. "anyOf": [
  4437. {
  4438. "type": "object",
  4439. "properties": {
  4440. "directory": {
  4441. "anyOf": [
  4442. {
  4443. "type": "string"
  4444. },
  4445. {
  4446. "type": "null"
  4447. }
  4448. ]
  4449. },
  4450. "workspace": {
  4451. "anyOf": [
  4452. {
  4453. "type": "string"
  4454. },
  4455. {
  4456. "type": "null"
  4457. }
  4458. ]
  4459. }
  4460. },
  4461. "additionalProperties": false
  4462. },
  4463. {
  4464. "type": "null"
  4465. }
  4466. ]
  4467. },
  4468. "required": false,
  4469. "style": "deepObject",
  4470. "explode": true
  4471. }
  4472. ],
  4473. "security": [],
  4474. "responses": {
  4475. "200": {
  4476. "description": "Success",
  4477. "content": {
  4478. "application/json": {
  4479. "schema": {
  4480. "type": "object",
  4481. "properties": {
  4482. "location": {
  4483. "$ref": "#/components/schemas/Location.Info"
  4484. },
  4485. "data": {
  4486. "anyOf": [
  4487. {
  4488. "$ref": "#/components/schemas/Model.Info"
  4489. },
  4490. {
  4491. "type": "null"
  4492. }
  4493. ]
  4494. }
  4495. },
  4496. "required": ["location", "data"],
  4497. "additionalProperties": false
  4498. }
  4499. }
  4500. }
  4501. },
  4502. "400": {
  4503. "description": "InvalidRequestError",
  4504. "content": {
  4505. "application/json": {
  4506. "schema": {
  4507. "$ref": "#/components/schemas/InvalidRequestError"
  4508. }
  4509. }
  4510. }
  4511. },
  4512. "401": {
  4513. "description": "UnauthorizedError",
  4514. "content": {
  4515. "application/json": {
  4516. "schema": {
  4517. "$ref": "#/components/schemas/UnauthorizedError"
  4518. }
  4519. }
  4520. }
  4521. },
  4522. "503": {
  4523. "description": "ServiceUnavailableError",
  4524. "content": {
  4525. "application/json": {
  4526. "schema": {
  4527. "$ref": "#/components/schemas/ServiceUnavailableError"
  4528. }
  4529. }
  4530. }
  4531. }
  4532. },
  4533. "description": "Retrieve the model used when a session has no explicit model selection.",
  4534. "summary": "Get default model"
  4535. }
  4536. },
  4537. "/api/generate": {
  4538. "post": {
  4539. "tags": ["generate"],
  4540. "operationId": "v2.generate.text",
  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": "GenerateTextResponse",
  4587. "content": {
  4588. "application/json": {
  4589. "schema": {
  4590. "$ref": "#/components/schemas/GenerateTextResponse"
  4591. }
  4592. }
  4593. }
  4594. },
  4595. "400": {
  4596. "description": "InvalidRequestError",
  4597. "content": {
  4598. "application/json": {
  4599. "schema": {
  4600. "anyOf": [
  4601. {
  4602. "$ref": "#/components/schemas/InvalidRequestError1"
  4603. },
  4604. {
  4605. "$ref": "#/components/schemas/InvalidRequestError"
  4606. }
  4607. ]
  4608. }
  4609. }
  4610. }
  4611. },
  4612. "401": {
  4613. "description": "UnauthorizedError",
  4614. "content": {
  4615. "application/json": {
  4616. "schema": {
  4617. "$ref": "#/components/schemas/UnauthorizedError"
  4618. }
  4619. }
  4620. }
  4621. },
  4622. "503": {
  4623. "description": "ServiceUnavailableError",
  4624. "content": {
  4625. "application/json": {
  4626. "schema": {
  4627. "$ref": "#/components/schemas/ServiceUnavailableError"
  4628. }
  4629. }
  4630. }
  4631. }
  4632. },
  4633. "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.",
  4634. "summary": "Generate text",
  4635. "requestBody": {
  4636. "content": {
  4637. "application/json": {
  4638. "schema": {
  4639. "type": "object",
  4640. "properties": {
  4641. "prompt": {
  4642. "type": "string"
  4643. },
  4644. "model": {
  4645. "anyOf": [
  4646. {
  4647. "$ref": "#/components/schemas/Model.Ref"
  4648. },
  4649. {
  4650. "type": "null"
  4651. }
  4652. ]
  4653. }
  4654. },
  4655. "required": ["prompt"],
  4656. "additionalProperties": false
  4657. }
  4658. }
  4659. },
  4660. "required": true
  4661. }
  4662. }
  4663. },
  4664. "/api/provider": {
  4665. "get": {
  4666. "tags": ["provider"],
  4667. "operationId": "v2.provider.list",
  4668. "parameters": [
  4669. {
  4670. "name": "location",
  4671. "in": "query",
  4672. "schema": {
  4673. "anyOf": [
  4674. {
  4675. "type": "object",
  4676. "properties": {
  4677. "directory": {
  4678. "anyOf": [
  4679. {
  4680. "type": "string"
  4681. },
  4682. {
  4683. "type": "null"
  4684. }
  4685. ]
  4686. },
  4687. "workspace": {
  4688. "anyOf": [
  4689. {
  4690. "type": "string"
  4691. },
  4692. {
  4693. "type": "null"
  4694. }
  4695. ]
  4696. }
  4697. },
  4698. "additionalProperties": false
  4699. },
  4700. {
  4701. "type": "null"
  4702. }
  4703. ]
  4704. },
  4705. "required": false,
  4706. "style": "deepObject",
  4707. "explode": true
  4708. }
  4709. ],
  4710. "security": [],
  4711. "responses": {
  4712. "200": {
  4713. "description": "Success",
  4714. "content": {
  4715. "application/json": {
  4716. "schema": {
  4717. "type": "object",
  4718. "properties": {
  4719. "location": {
  4720. "$ref": "#/components/schemas/Location.Info"
  4721. },
  4722. "data": {
  4723. "type": "array",
  4724. "items": {
  4725. "$ref": "#/components/schemas/Provider.Info"
  4726. }
  4727. }
  4728. },
  4729. "required": ["location", "data"],
  4730. "additionalProperties": false
  4731. }
  4732. }
  4733. }
  4734. },
  4735. "400": {
  4736. "description": "InvalidRequestError",
  4737. "content": {
  4738. "application/json": {
  4739. "schema": {
  4740. "$ref": "#/components/schemas/InvalidRequestError"
  4741. }
  4742. }
  4743. }
  4744. },
  4745. "401": {
  4746. "description": "UnauthorizedError",
  4747. "content": {
  4748. "application/json": {
  4749. "schema": {
  4750. "$ref": "#/components/schemas/UnauthorizedError"
  4751. }
  4752. }
  4753. }
  4754. },
  4755. "503": {
  4756. "description": "ServiceUnavailableError",
  4757. "content": {
  4758. "application/json": {
  4759. "schema": {
  4760. "$ref": "#/components/schemas/ServiceUnavailableError"
  4761. }
  4762. }
  4763. }
  4764. }
  4765. },
  4766. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4767. "summary": "List providers"
  4768. }
  4769. },
  4770. "/api/provider/{providerID}": {
  4771. "get": {
  4772. "tags": ["provider"],
  4773. "operationId": "v2.provider.get",
  4774. "parameters": [
  4775. {
  4776. "name": "providerID",
  4777. "in": "path",
  4778. "schema": {
  4779. "type": "string"
  4780. },
  4781. "required": true
  4782. },
  4783. {
  4784. "name": "location",
  4785. "in": "query",
  4786. "schema": {
  4787. "anyOf": [
  4788. {
  4789. "type": "object",
  4790. "properties": {
  4791. "directory": {
  4792. "anyOf": [
  4793. {
  4794. "type": "string"
  4795. },
  4796. {
  4797. "type": "null"
  4798. }
  4799. ]
  4800. },
  4801. "workspace": {
  4802. "anyOf": [
  4803. {
  4804. "type": "string"
  4805. },
  4806. {
  4807. "type": "null"
  4808. }
  4809. ]
  4810. }
  4811. },
  4812. "additionalProperties": false
  4813. },
  4814. {
  4815. "type": "null"
  4816. }
  4817. ]
  4818. },
  4819. "required": false,
  4820. "style": "deepObject",
  4821. "explode": true
  4822. }
  4823. ],
  4824. "security": [],
  4825. "responses": {
  4826. "200": {
  4827. "description": "Success",
  4828. "content": {
  4829. "application/json": {
  4830. "schema": {
  4831. "type": "object",
  4832. "properties": {
  4833. "location": {
  4834. "$ref": "#/components/schemas/Location.Info"
  4835. },
  4836. "data": {
  4837. "$ref": "#/components/schemas/Provider.Info"
  4838. }
  4839. },
  4840. "required": ["location", "data"],
  4841. "additionalProperties": false
  4842. }
  4843. }
  4844. }
  4845. },
  4846. "400": {
  4847. "description": "InvalidRequestError",
  4848. "content": {
  4849. "application/json": {
  4850. "schema": {
  4851. "$ref": "#/components/schemas/InvalidRequestError"
  4852. }
  4853. }
  4854. }
  4855. },
  4856. "401": {
  4857. "description": "UnauthorizedError",
  4858. "content": {
  4859. "application/json": {
  4860. "schema": {
  4861. "$ref": "#/components/schemas/UnauthorizedError"
  4862. }
  4863. }
  4864. }
  4865. },
  4866. "404": {
  4867. "description": "ProviderNotFoundError",
  4868. "content": {
  4869. "application/json": {
  4870. "schema": {
  4871. "$ref": "#/components/schemas/ProviderNotFoundError"
  4872. }
  4873. }
  4874. }
  4875. },
  4876. "503": {
  4877. "description": "ServiceUnavailableError",
  4878. "content": {
  4879. "application/json": {
  4880. "schema": {
  4881. "$ref": "#/components/schemas/ServiceUnavailableError"
  4882. }
  4883. }
  4884. }
  4885. }
  4886. },
  4887. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4888. "summary": "Get provider"
  4889. }
  4890. },
  4891. "/api/integration": {
  4892. "get": {
  4893. "tags": ["integration"],
  4894. "operationId": "v2.integration.list",
  4895. "parameters": [
  4896. {
  4897. "name": "location",
  4898. "in": "query",
  4899. "schema": {
  4900. "anyOf": [
  4901. {
  4902. "type": "object",
  4903. "properties": {
  4904. "directory": {
  4905. "anyOf": [
  4906. {
  4907. "type": "string"
  4908. },
  4909. {
  4910. "type": "null"
  4911. }
  4912. ]
  4913. },
  4914. "workspace": {
  4915. "anyOf": [
  4916. {
  4917. "type": "string"
  4918. },
  4919. {
  4920. "type": "null"
  4921. }
  4922. ]
  4923. }
  4924. },
  4925. "additionalProperties": false
  4926. },
  4927. {
  4928. "type": "null"
  4929. }
  4930. ]
  4931. },
  4932. "required": false,
  4933. "style": "deepObject",
  4934. "explode": true
  4935. }
  4936. ],
  4937. "security": [],
  4938. "responses": {
  4939. "200": {
  4940. "description": "Success",
  4941. "content": {
  4942. "application/json": {
  4943. "schema": {
  4944. "type": "object",
  4945. "properties": {
  4946. "location": {
  4947. "$ref": "#/components/schemas/Location.Info"
  4948. },
  4949. "data": {
  4950. "type": "array",
  4951. "items": {
  4952. "$ref": "#/components/schemas/Integration.Info"
  4953. }
  4954. }
  4955. },
  4956. "required": ["location", "data"],
  4957. "additionalProperties": false
  4958. }
  4959. }
  4960. }
  4961. },
  4962. "400": {
  4963. "description": "InvalidRequestError",
  4964. "content": {
  4965. "application/json": {
  4966. "schema": {
  4967. "$ref": "#/components/schemas/InvalidRequestError"
  4968. }
  4969. }
  4970. }
  4971. },
  4972. "401": {
  4973. "description": "UnauthorizedError",
  4974. "content": {
  4975. "application/json": {
  4976. "schema": {
  4977. "$ref": "#/components/schemas/UnauthorizedError"
  4978. }
  4979. }
  4980. }
  4981. }
  4982. },
  4983. "description": "Retrieve available integrations and their authentication methods.",
  4984. "summary": "List integrations"
  4985. }
  4986. },
  4987. "/api/integration/{integrationID}": {
  4988. "get": {
  4989. "tags": ["integration"],
  4990. "operationId": "v2.integration.get",
  4991. "parameters": [
  4992. {
  4993. "name": "integrationID",
  4994. "in": "path",
  4995. "schema": {
  4996. "type": "string"
  4997. },
  4998. "required": true
  4999. },
  5000. {
  5001. "name": "location",
  5002. "in": "query",
  5003. "schema": {
  5004. "anyOf": [
  5005. {
  5006. "type": "object",
  5007. "properties": {
  5008. "directory": {
  5009. "anyOf": [
  5010. {
  5011. "type": "string"
  5012. },
  5013. {
  5014. "type": "null"
  5015. }
  5016. ]
  5017. },
  5018. "workspace": {
  5019. "anyOf": [
  5020. {
  5021. "type": "string"
  5022. },
  5023. {
  5024. "type": "null"
  5025. }
  5026. ]
  5027. }
  5028. },
  5029. "additionalProperties": false
  5030. },
  5031. {
  5032. "type": "null"
  5033. }
  5034. ]
  5035. },
  5036. "required": false,
  5037. "style": "deepObject",
  5038. "explode": true
  5039. }
  5040. ],
  5041. "security": [],
  5042. "responses": {
  5043. "200": {
  5044. "description": "Success",
  5045. "content": {
  5046. "application/json": {
  5047. "schema": {
  5048. "type": "object",
  5049. "properties": {
  5050. "location": {
  5051. "$ref": "#/components/schemas/Location.Info"
  5052. },
  5053. "data": {
  5054. "anyOf": [
  5055. {
  5056. "$ref": "#/components/schemas/Integration.Info"
  5057. },
  5058. {
  5059. "type": "null"
  5060. }
  5061. ]
  5062. }
  5063. },
  5064. "required": ["location", "data"],
  5065. "additionalProperties": false
  5066. }
  5067. }
  5068. }
  5069. },
  5070. "400": {
  5071. "description": "InvalidRequestError",
  5072. "content": {
  5073. "application/json": {
  5074. "schema": {
  5075. "$ref": "#/components/schemas/InvalidRequestError"
  5076. }
  5077. }
  5078. }
  5079. },
  5080. "401": {
  5081. "description": "UnauthorizedError",
  5082. "content": {
  5083. "application/json": {
  5084. "schema": {
  5085. "$ref": "#/components/schemas/UnauthorizedError"
  5086. }
  5087. }
  5088. }
  5089. }
  5090. },
  5091. "description": "Retrieve one integration and its authentication methods.",
  5092. "summary": "Get integration"
  5093. }
  5094. },
  5095. "/api/experimental/integration/wellknown": {
  5096. "post": {
  5097. "tags": ["integration"],
  5098. "operationId": "v2.experimental.integration.wellknown.add",
  5099. "parameters": [
  5100. {
  5101. "name": "location",
  5102. "in": "query",
  5103. "schema": {
  5104. "anyOf": [
  5105. {
  5106. "type": "object",
  5107. "properties": {
  5108. "directory": {
  5109. "anyOf": [
  5110. {
  5111. "type": "string"
  5112. },
  5113. {
  5114. "type": "null"
  5115. }
  5116. ]
  5117. },
  5118. "workspace": {
  5119. "anyOf": [
  5120. {
  5121. "type": "string"
  5122. },
  5123. {
  5124. "type": "null"
  5125. }
  5126. ]
  5127. }
  5128. },
  5129. "additionalProperties": false
  5130. },
  5131. {
  5132. "type": "null"
  5133. }
  5134. ]
  5135. },
  5136. "required": false,
  5137. "style": "deepObject",
  5138. "explode": true
  5139. }
  5140. ],
  5141. "security": [],
  5142. "responses": {
  5143. "204": {
  5144. "description": "<No Content>"
  5145. },
  5146. "400": {
  5147. "description": "InvalidRequestError",
  5148. "content": {
  5149. "application/json": {
  5150. "schema": {
  5151. "anyOf": [
  5152. {
  5153. "$ref": "#/components/schemas/InvalidRequestError1"
  5154. },
  5155. {
  5156. "$ref": "#/components/schemas/InvalidRequestError"
  5157. }
  5158. ]
  5159. }
  5160. }
  5161. }
  5162. },
  5163. "401": {
  5164. "description": "UnauthorizedError",
  5165. "content": {
  5166. "application/json": {
  5167. "schema": {
  5168. "$ref": "#/components/schemas/UnauthorizedError"
  5169. }
  5170. }
  5171. }
  5172. }
  5173. },
  5174. "description": "Discover and persist an experimental wellknown integration source.",
  5175. "summary": "Add wellknown integration",
  5176. "requestBody": {
  5177. "content": {
  5178. "application/json": {
  5179. "schema": {
  5180. "type": "object",
  5181. "properties": {
  5182. "url": {
  5183. "type": "string"
  5184. }
  5185. },
  5186. "required": ["url"],
  5187. "additionalProperties": false
  5188. }
  5189. }
  5190. },
  5191. "required": true
  5192. }
  5193. }
  5194. },
  5195. "/api/integration/{integrationID}/connect/key": {
  5196. "post": {
  5197. "tags": ["integration"],
  5198. "operationId": "v2.integration.connect.key",
  5199. "parameters": [
  5200. {
  5201. "name": "integrationID",
  5202. "in": "path",
  5203. "schema": {
  5204. "type": "string"
  5205. },
  5206. "required": true
  5207. },
  5208. {
  5209. "name": "location",
  5210. "in": "query",
  5211. "schema": {
  5212. "anyOf": [
  5213. {
  5214. "type": "object",
  5215. "properties": {
  5216. "directory": {
  5217. "anyOf": [
  5218. {
  5219. "type": "string"
  5220. },
  5221. {
  5222. "type": "null"
  5223. }
  5224. ]
  5225. },
  5226. "workspace": {
  5227. "anyOf": [
  5228. {
  5229. "type": "string"
  5230. },
  5231. {
  5232. "type": "null"
  5233. }
  5234. ]
  5235. }
  5236. },
  5237. "additionalProperties": false
  5238. },
  5239. {
  5240. "type": "null"
  5241. }
  5242. ]
  5243. },
  5244. "required": false,
  5245. "style": "deepObject",
  5246. "explode": true
  5247. }
  5248. ],
  5249. "security": [],
  5250. "responses": {
  5251. "204": {
  5252. "description": "<No Content>"
  5253. },
  5254. "400": {
  5255. "description": "InvalidRequestError",
  5256. "content": {
  5257. "application/json": {
  5258. "schema": {
  5259. "anyOf": [
  5260. {
  5261. "$ref": "#/components/schemas/InvalidRequestError1"
  5262. },
  5263. {
  5264. "$ref": "#/components/schemas/InvalidRequestError"
  5265. }
  5266. ]
  5267. }
  5268. }
  5269. }
  5270. },
  5271. "401": {
  5272. "description": "UnauthorizedError",
  5273. "content": {
  5274. "application/json": {
  5275. "schema": {
  5276. "$ref": "#/components/schemas/UnauthorizedError"
  5277. }
  5278. }
  5279. }
  5280. }
  5281. },
  5282. "description": "Run a key authentication method and store the resulting credential.",
  5283. "summary": "Connect with key",
  5284. "requestBody": {
  5285. "content": {
  5286. "application/json": {
  5287. "schema": {
  5288. "type": "object",
  5289. "properties": {
  5290. "key": {
  5291. "type": "string"
  5292. },
  5293. "answer": {
  5294. "anyOf": [
  5295. {
  5296. "$ref": "#/components/schemas/Form.Answer"
  5297. },
  5298. {
  5299. "type": "null"
  5300. }
  5301. ]
  5302. },
  5303. "label": {
  5304. "anyOf": [
  5305. {
  5306. "type": "string"
  5307. },
  5308. {
  5309. "type": "null"
  5310. }
  5311. ]
  5312. }
  5313. },
  5314. "required": ["key"],
  5315. "additionalProperties": false
  5316. }
  5317. }
  5318. },
  5319. "required": true
  5320. }
  5321. }
  5322. },
  5323. "/api/integration/{integrationID}/connect/oauth": {
  5324. "post": {
  5325. "tags": ["integration"],
  5326. "operationId": "v2.integration.oauth.connect",
  5327. "parameters": [
  5328. {
  5329. "name": "integrationID",
  5330. "in": "path",
  5331. "schema": {
  5332. "type": "string"
  5333. },
  5334. "required": true
  5335. },
  5336. {
  5337. "name": "location",
  5338. "in": "query",
  5339. "schema": {
  5340. "anyOf": [
  5341. {
  5342. "type": "object",
  5343. "properties": {
  5344. "directory": {
  5345. "anyOf": [
  5346. {
  5347. "type": "string"
  5348. },
  5349. {
  5350. "type": "null"
  5351. }
  5352. ]
  5353. },
  5354. "workspace": {
  5355. "anyOf": [
  5356. {
  5357. "type": "string"
  5358. },
  5359. {
  5360. "type": "null"
  5361. }
  5362. ]
  5363. }
  5364. },
  5365. "additionalProperties": false
  5366. },
  5367. {
  5368. "type": "null"
  5369. }
  5370. ]
  5371. },
  5372. "required": false,
  5373. "style": "deepObject",
  5374. "explode": true
  5375. }
  5376. ],
  5377. "security": [],
  5378. "responses": {
  5379. "200": {
  5380. "description": "Success",
  5381. "content": {
  5382. "application/json": {
  5383. "schema": {
  5384. "type": "object",
  5385. "properties": {
  5386. "location": {
  5387. "$ref": "#/components/schemas/Location.Info"
  5388. },
  5389. "data": {
  5390. "$ref": "#/components/schemas/Integration.Attempt"
  5391. }
  5392. },
  5393. "required": ["location", "data"],
  5394. "additionalProperties": false
  5395. }
  5396. }
  5397. }
  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": "Start an OAuth attempt and return the authorization details.",
  5428. "summary": "Begin OAuth connection",
  5429. "requestBody": {
  5430. "content": {
  5431. "application/json": {
  5432. "schema": {
  5433. "type": "object",
  5434. "properties": {
  5435. "methodID": {
  5436. "type": "string"
  5437. },
  5438. "answer": {
  5439. "anyOf": [
  5440. {
  5441. "$ref": "#/components/schemas/Form.Answer"
  5442. },
  5443. {
  5444. "type": "null"
  5445. }
  5446. ]
  5447. },
  5448. "label": {
  5449. "anyOf": [
  5450. {
  5451. "type": "string"
  5452. },
  5453. {
  5454. "type": "null"
  5455. }
  5456. ]
  5457. }
  5458. },
  5459. "required": ["methodID"],
  5460. "additionalProperties": false
  5461. }
  5462. }
  5463. },
  5464. "required": true
  5465. }
  5466. }
  5467. },
  5468. "/api/integration/{integrationID}/connect/oauth/{attemptID}": {
  5469. "get": {
  5470. "tags": ["integration"],
  5471. "operationId": "v2.integration.oauth.status",
  5472. "parameters": [
  5473. {
  5474. "name": "integrationID",
  5475. "in": "path",
  5476. "schema": {
  5477. "type": "string"
  5478. },
  5479. "required": true
  5480. },
  5481. {
  5482. "name": "attemptID",
  5483. "in": "path",
  5484. "schema": {
  5485. "type": "string"
  5486. },
  5487. "required": true
  5488. },
  5489. {
  5490. "name": "location",
  5491. "in": "query",
  5492. "schema": {
  5493. "anyOf": [
  5494. {
  5495. "type": "object",
  5496. "properties": {
  5497. "directory": {
  5498. "anyOf": [
  5499. {
  5500. "type": "string"
  5501. },
  5502. {
  5503. "type": "null"
  5504. }
  5505. ]
  5506. },
  5507. "workspace": {
  5508. "anyOf": [
  5509. {
  5510. "type": "string"
  5511. },
  5512. {
  5513. "type": "null"
  5514. }
  5515. ]
  5516. }
  5517. },
  5518. "additionalProperties": false
  5519. },
  5520. {
  5521. "type": "null"
  5522. }
  5523. ]
  5524. },
  5525. "required": false,
  5526. "style": "deepObject",
  5527. "explode": true
  5528. }
  5529. ],
  5530. "security": [],
  5531. "responses": {
  5532. "200": {
  5533. "description": "Success",
  5534. "content": {
  5535. "application/json": {
  5536. "schema": {
  5537. "type": "object",
  5538. "properties": {
  5539. "location": {
  5540. "$ref": "#/components/schemas/Location.Info"
  5541. },
  5542. "data": {
  5543. "$ref": "#/components/schemas/Integration.AttemptStatus"
  5544. }
  5545. },
  5546. "required": ["location", "data"],
  5547. "additionalProperties": false
  5548. }
  5549. }
  5550. }
  5551. },
  5552. "400": {
  5553. "description": "InvalidRequestError",
  5554. "content": {
  5555. "application/json": {
  5556. "schema": {
  5557. "$ref": "#/components/schemas/InvalidRequestError"
  5558. }
  5559. }
  5560. }
  5561. },
  5562. "401": {
  5563. "description": "UnauthorizedError",
  5564. "content": {
  5565. "application/json": {
  5566. "schema": {
  5567. "$ref": "#/components/schemas/UnauthorizedError"
  5568. }
  5569. }
  5570. }
  5571. }
  5572. },
  5573. "description": "Poll the current status of an OAuth attempt.",
  5574. "summary": "Get OAuth attempt status"
  5575. },
  5576. "delete": {
  5577. "tags": ["integration"],
  5578. "operationId": "v2.integration.oauth.cancel",
  5579. "parameters": [
  5580. {
  5581. "name": "integrationID",
  5582. "in": "path",
  5583. "schema": {
  5584. "type": "string"
  5585. },
  5586. "required": true
  5587. },
  5588. {
  5589. "name": "attemptID",
  5590. "in": "path",
  5591. "schema": {
  5592. "type": "string"
  5593. },
  5594. "required": true
  5595. },
  5596. {
  5597. "name": "location",
  5598. "in": "query",
  5599. "schema": {
  5600. "anyOf": [
  5601. {
  5602. "type": "object",
  5603. "properties": {
  5604. "directory": {
  5605. "anyOf": [
  5606. {
  5607. "type": "string"
  5608. },
  5609. {
  5610. "type": "null"
  5611. }
  5612. ]
  5613. },
  5614. "workspace": {
  5615. "anyOf": [
  5616. {
  5617. "type": "string"
  5618. },
  5619. {
  5620. "type": "null"
  5621. }
  5622. ]
  5623. }
  5624. },
  5625. "additionalProperties": false
  5626. },
  5627. {
  5628. "type": "null"
  5629. }
  5630. ]
  5631. },
  5632. "required": false,
  5633. "style": "deepObject",
  5634. "explode": true
  5635. }
  5636. ],
  5637. "security": [],
  5638. "responses": {
  5639. "204": {
  5640. "description": "<No Content>"
  5641. },
  5642. "400": {
  5643. "description": "InvalidRequestError",
  5644. "content": {
  5645. "application/json": {
  5646. "schema": {
  5647. "$ref": "#/components/schemas/InvalidRequestError"
  5648. }
  5649. }
  5650. }
  5651. },
  5652. "401": {
  5653. "description": "UnauthorizedError",
  5654. "content": {
  5655. "application/json": {
  5656. "schema": {
  5657. "$ref": "#/components/schemas/UnauthorizedError"
  5658. }
  5659. }
  5660. }
  5661. }
  5662. },
  5663. "description": "Cancel an OAuth attempt and release its resources.",
  5664. "summary": "Cancel OAuth connection"
  5665. }
  5666. },
  5667. "/api/integration/{integrationID}/connect/oauth/{attemptID}/complete": {
  5668. "post": {
  5669. "tags": ["integration"],
  5670. "operationId": "v2.integration.oauth.complete",
  5671. "parameters": [
  5672. {
  5673. "name": "integrationID",
  5674. "in": "path",
  5675. "schema": {
  5676. "type": "string"
  5677. },
  5678. "required": true
  5679. },
  5680. {
  5681. "name": "attemptID",
  5682. "in": "path",
  5683. "schema": {
  5684. "type": "string"
  5685. },
  5686. "required": true
  5687. },
  5688. {
  5689. "name": "location",
  5690. "in": "query",
  5691. "schema": {
  5692. "anyOf": [
  5693. {
  5694. "type": "object",
  5695. "properties": {
  5696. "directory": {
  5697. "anyOf": [
  5698. {
  5699. "type": "string"
  5700. },
  5701. {
  5702. "type": "null"
  5703. }
  5704. ]
  5705. },
  5706. "workspace": {
  5707. "anyOf": [
  5708. {
  5709. "type": "string"
  5710. },
  5711. {
  5712. "type": "null"
  5713. }
  5714. ]
  5715. }
  5716. },
  5717. "additionalProperties": false
  5718. },
  5719. {
  5720. "type": "null"
  5721. }
  5722. ]
  5723. },
  5724. "required": false,
  5725. "style": "deepObject",
  5726. "explode": true
  5727. }
  5728. ],
  5729. "security": [],
  5730. "responses": {
  5731. "204": {
  5732. "description": "<No Content>"
  5733. },
  5734. "400": {
  5735. "description": "InvalidRequestError",
  5736. "content": {
  5737. "application/json": {
  5738. "schema": {
  5739. "anyOf": [
  5740. {
  5741. "$ref": "#/components/schemas/InvalidRequestError1"
  5742. },
  5743. {
  5744. "$ref": "#/components/schemas/InvalidRequestError"
  5745. }
  5746. ]
  5747. }
  5748. }
  5749. }
  5750. },
  5751. "401": {
  5752. "description": "UnauthorizedError",
  5753. "content": {
  5754. "application/json": {
  5755. "schema": {
  5756. "$ref": "#/components/schemas/UnauthorizedError"
  5757. }
  5758. }
  5759. }
  5760. }
  5761. },
  5762. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  5763. "summary": "Complete OAuth connection",
  5764. "requestBody": {
  5765. "content": {
  5766. "application/json": {
  5767. "schema": {
  5768. "type": "object",
  5769. "properties": {
  5770. "code": {
  5771. "anyOf": [
  5772. {
  5773. "type": "string"
  5774. },
  5775. {
  5776. "type": "null"
  5777. }
  5778. ]
  5779. }
  5780. },
  5781. "additionalProperties": false
  5782. }
  5783. }
  5784. },
  5785. "required": true
  5786. }
  5787. }
  5788. },
  5789. "/api/integration/{integrationID}/connect/command": {
  5790. "post": {
  5791. "tags": ["integration"],
  5792. "operationId": "v2.integration.command.connect",
  5793. "parameters": [
  5794. {
  5795. "name": "integrationID",
  5796. "in": "path",
  5797. "schema": {
  5798. "type": "string"
  5799. },
  5800. "required": true
  5801. },
  5802. {
  5803. "name": "location",
  5804. "in": "query",
  5805. "schema": {
  5806. "anyOf": [
  5807. {
  5808. "type": "object",
  5809. "properties": {
  5810. "directory": {
  5811. "anyOf": [
  5812. {
  5813. "type": "string"
  5814. },
  5815. {
  5816. "type": "null"
  5817. }
  5818. ]
  5819. },
  5820. "workspace": {
  5821. "anyOf": [
  5822. {
  5823. "type": "string"
  5824. },
  5825. {
  5826. "type": "null"
  5827. }
  5828. ]
  5829. }
  5830. },
  5831. "additionalProperties": false
  5832. },
  5833. {
  5834. "type": "null"
  5835. }
  5836. ]
  5837. },
  5838. "required": false,
  5839. "style": "deepObject",
  5840. "explode": true
  5841. }
  5842. ],
  5843. "security": [],
  5844. "responses": {
  5845. "200": {
  5846. "description": "Success",
  5847. "content": {
  5848. "application/json": {
  5849. "schema": {
  5850. "type": "object",
  5851. "properties": {
  5852. "location": {
  5853. "$ref": "#/components/schemas/Location.Info"
  5854. },
  5855. "data": {
  5856. "$ref": "#/components/schemas/Integration.CommandAttempt"
  5857. }
  5858. },
  5859. "required": ["location", "data"],
  5860. "additionalProperties": false
  5861. }
  5862. }
  5863. }
  5864. },
  5865. "400": {
  5866. "description": "InvalidRequestError",
  5867. "content": {
  5868. "application/json": {
  5869. "schema": {
  5870. "anyOf": [
  5871. {
  5872. "$ref": "#/components/schemas/InvalidRequestError1"
  5873. },
  5874. {
  5875. "$ref": "#/components/schemas/InvalidRequestError"
  5876. }
  5877. ]
  5878. }
  5879. }
  5880. }
  5881. },
  5882. "401": {
  5883. "description": "UnauthorizedError",
  5884. "content": {
  5885. "application/json": {
  5886. "schema": {
  5887. "$ref": "#/components/schemas/UnauthorizedError"
  5888. }
  5889. }
  5890. }
  5891. }
  5892. },
  5893. "description": "Start a command authentication attempt.",
  5894. "summary": "Begin command connection",
  5895. "requestBody": {
  5896. "content": {
  5897. "application/json": {
  5898. "schema": {
  5899. "type": "object",
  5900. "properties": {
  5901. "methodID": {
  5902. "type": "string"
  5903. },
  5904. "label": {
  5905. "anyOf": [
  5906. {
  5907. "type": "string"
  5908. },
  5909. {
  5910. "type": "null"
  5911. }
  5912. ]
  5913. }
  5914. },
  5915. "required": ["methodID"],
  5916. "additionalProperties": false
  5917. }
  5918. }
  5919. },
  5920. "required": true
  5921. }
  5922. }
  5923. },
  5924. "/api/integration/{integrationID}/connect/command/{attemptID}": {
  5925. "get": {
  5926. "tags": ["integration"],
  5927. "operationId": "v2.integration.command.status",
  5928. "parameters": [
  5929. {
  5930. "name": "integrationID",
  5931. "in": "path",
  5932. "schema": {
  5933. "type": "string"
  5934. },
  5935. "required": true
  5936. },
  5937. {
  5938. "name": "attemptID",
  5939. "in": "path",
  5940. "schema": {
  5941. "type": "string"
  5942. },
  5943. "required": true
  5944. },
  5945. {
  5946. "name": "location",
  5947. "in": "query",
  5948. "schema": {
  5949. "anyOf": [
  5950. {
  5951. "type": "object",
  5952. "properties": {
  5953. "directory": {
  5954. "anyOf": [
  5955. {
  5956. "type": "string"
  5957. },
  5958. {
  5959. "type": "null"
  5960. }
  5961. ]
  5962. },
  5963. "workspace": {
  5964. "anyOf": [
  5965. {
  5966. "type": "string"
  5967. },
  5968. {
  5969. "type": "null"
  5970. }
  5971. ]
  5972. }
  5973. },
  5974. "additionalProperties": false
  5975. },
  5976. {
  5977. "type": "null"
  5978. }
  5979. ]
  5980. },
  5981. "required": false,
  5982. "style": "deepObject",
  5983. "explode": true
  5984. }
  5985. ],
  5986. "security": [],
  5987. "responses": {
  5988. "200": {
  5989. "description": "Success",
  5990. "content": {
  5991. "application/json": {
  5992. "schema": {
  5993. "type": "object",
  5994. "properties": {
  5995. "location": {
  5996. "$ref": "#/components/schemas/Location.Info"
  5997. },
  5998. "data": {
  5999. "$ref": "#/components/schemas/Integration.CommandAttemptStatus"
  6000. }
  6001. },
  6002. "required": ["location", "data"],
  6003. "additionalProperties": false
  6004. }
  6005. }
  6006. }
  6007. },
  6008. "400": {
  6009. "description": "InvalidRequestError",
  6010. "content": {
  6011. "application/json": {
  6012. "schema": {
  6013. "$ref": "#/components/schemas/InvalidRequestError"
  6014. }
  6015. }
  6016. }
  6017. },
  6018. "401": {
  6019. "description": "UnauthorizedError",
  6020. "content": {
  6021. "application/json": {
  6022. "schema": {
  6023. "$ref": "#/components/schemas/UnauthorizedError"
  6024. }
  6025. }
  6026. }
  6027. }
  6028. },
  6029. "description": "Poll the current status and output of a command authentication attempt.",
  6030. "summary": "Get command attempt status"
  6031. },
  6032. "delete": {
  6033. "tags": ["integration"],
  6034. "operationId": "v2.integration.command.cancel",
  6035. "parameters": [
  6036. {
  6037. "name": "integrationID",
  6038. "in": "path",
  6039. "schema": {
  6040. "type": "string"
  6041. },
  6042. "required": true
  6043. },
  6044. {
  6045. "name": "attemptID",
  6046. "in": "path",
  6047. "schema": {
  6048. "type": "string"
  6049. },
  6050. "required": true
  6051. },
  6052. {
  6053. "name": "location",
  6054. "in": "query",
  6055. "schema": {
  6056. "anyOf": [
  6057. {
  6058. "type": "object",
  6059. "properties": {
  6060. "directory": {
  6061. "anyOf": [
  6062. {
  6063. "type": "string"
  6064. },
  6065. {
  6066. "type": "null"
  6067. }
  6068. ]
  6069. },
  6070. "workspace": {
  6071. "anyOf": [
  6072. {
  6073. "type": "string"
  6074. },
  6075. {
  6076. "type": "null"
  6077. }
  6078. ]
  6079. }
  6080. },
  6081. "additionalProperties": false
  6082. },
  6083. {
  6084. "type": "null"
  6085. }
  6086. ]
  6087. },
  6088. "required": false,
  6089. "style": "deepObject",
  6090. "explode": true
  6091. }
  6092. ],
  6093. "security": [],
  6094. "responses": {
  6095. "204": {
  6096. "description": "<No Content>"
  6097. },
  6098. "400": {
  6099. "description": "InvalidRequestError",
  6100. "content": {
  6101. "application/json": {
  6102. "schema": {
  6103. "$ref": "#/components/schemas/InvalidRequestError"
  6104. }
  6105. }
  6106. }
  6107. },
  6108. "401": {
  6109. "description": "UnauthorizedError",
  6110. "content": {
  6111. "application/json": {
  6112. "schema": {
  6113. "$ref": "#/components/schemas/UnauthorizedError"
  6114. }
  6115. }
  6116. }
  6117. }
  6118. },
  6119. "description": "Cancel a command authentication attempt and terminate its process.",
  6120. "summary": "Cancel command connection"
  6121. }
  6122. },
  6123. "/api/mcp": {
  6124. "get": {
  6125. "tags": ["mcp"],
  6126. "operationId": "v2.mcp.list",
  6127. "parameters": [
  6128. {
  6129. "name": "location",
  6130. "in": "query",
  6131. "schema": {
  6132. "anyOf": [
  6133. {
  6134. "type": "object",
  6135. "properties": {
  6136. "directory": {
  6137. "anyOf": [
  6138. {
  6139. "type": "string"
  6140. },
  6141. {
  6142. "type": "null"
  6143. }
  6144. ]
  6145. },
  6146. "workspace": {
  6147. "anyOf": [
  6148. {
  6149. "type": "string"
  6150. },
  6151. {
  6152. "type": "null"
  6153. }
  6154. ]
  6155. }
  6156. },
  6157. "additionalProperties": false
  6158. },
  6159. {
  6160. "type": "null"
  6161. }
  6162. ]
  6163. },
  6164. "required": false,
  6165. "style": "deepObject",
  6166. "explode": true
  6167. }
  6168. ],
  6169. "security": [],
  6170. "responses": {
  6171. "200": {
  6172. "description": "Success",
  6173. "content": {
  6174. "application/json": {
  6175. "schema": {
  6176. "type": "object",
  6177. "properties": {
  6178. "location": {
  6179. "$ref": "#/components/schemas/Location.Info"
  6180. },
  6181. "data": {
  6182. "type": "array",
  6183. "items": {
  6184. "$ref": "#/components/schemas/Mcp.Server"
  6185. }
  6186. }
  6187. },
  6188. "required": ["location", "data"],
  6189. "additionalProperties": false
  6190. }
  6191. }
  6192. }
  6193. },
  6194. "400": {
  6195. "description": "InvalidRequestError",
  6196. "content": {
  6197. "application/json": {
  6198. "schema": {
  6199. "$ref": "#/components/schemas/InvalidRequestError"
  6200. }
  6201. }
  6202. }
  6203. },
  6204. "401": {
  6205. "description": "UnauthorizedError",
  6206. "content": {
  6207. "application/json": {
  6208. "schema": {
  6209. "$ref": "#/components/schemas/UnauthorizedError"
  6210. }
  6211. }
  6212. }
  6213. }
  6214. },
  6215. "description": "Retrieve configured MCP servers and their connection status.",
  6216. "summary": "List MCP servers"
  6217. }
  6218. },
  6219. "/api/mcp/{server}": {
  6220. "put": {
  6221. "tags": ["mcp"],
  6222. "operationId": "v2.mcp.add",
  6223. "parameters": [
  6224. {
  6225. "name": "server",
  6226. "in": "path",
  6227. "schema": {
  6228. "type": "string"
  6229. },
  6230. "required": true
  6231. },
  6232. {
  6233. "name": "location",
  6234. "in": "query",
  6235. "schema": {
  6236. "anyOf": [
  6237. {
  6238. "type": "object",
  6239. "properties": {
  6240. "directory": {
  6241. "anyOf": [
  6242. {
  6243. "type": "string"
  6244. },
  6245. {
  6246. "type": "null"
  6247. }
  6248. ]
  6249. },
  6250. "workspace": {
  6251. "anyOf": [
  6252. {
  6253. "type": "string"
  6254. },
  6255. {
  6256. "type": "null"
  6257. }
  6258. ]
  6259. }
  6260. },
  6261. "additionalProperties": false
  6262. },
  6263. {
  6264. "type": "null"
  6265. }
  6266. ]
  6267. },
  6268. "required": false,
  6269. "style": "deepObject",
  6270. "explode": true
  6271. }
  6272. ],
  6273. "security": [],
  6274. "responses": {
  6275. "204": {
  6276. "description": "<No Content>"
  6277. },
  6278. "400": {
  6279. "description": "InvalidRequestError",
  6280. "content": {
  6281. "application/json": {
  6282. "schema": {
  6283. "$ref": "#/components/schemas/InvalidRequestError"
  6284. }
  6285. }
  6286. }
  6287. },
  6288. "401": {
  6289. "description": "UnauthorizedError",
  6290. "content": {
  6291. "application/json": {
  6292. "schema": {
  6293. "$ref": "#/components/schemas/UnauthorizedError"
  6294. }
  6295. }
  6296. }
  6297. }
  6298. },
  6299. "description": "Add an MCP server at runtime or replace an existing one, connecting it immediately.",
  6300. "summary": "Add MCP server",
  6301. "requestBody": {
  6302. "content": {
  6303. "application/json": {
  6304. "schema": {
  6305. "type": "object",
  6306. "properties": {
  6307. "config": {
  6308. "anyOf": [
  6309. {
  6310. "$ref": "#/components/schemas/Mcp.LocalConfig"
  6311. },
  6312. {
  6313. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  6314. }
  6315. ]
  6316. }
  6317. },
  6318. "required": ["config"],
  6319. "additionalProperties": false
  6320. }
  6321. }
  6322. },
  6323. "required": true
  6324. }
  6325. },
  6326. "delete": {
  6327. "tags": ["mcp"],
  6328. "operationId": "v2.mcp.remove",
  6329. "parameters": [
  6330. {
  6331. "name": "server",
  6332. "in": "path",
  6333. "schema": {
  6334. "type": "string"
  6335. },
  6336. "required": true
  6337. },
  6338. {
  6339. "name": "location",
  6340. "in": "query",
  6341. "schema": {
  6342. "anyOf": [
  6343. {
  6344. "type": "object",
  6345. "properties": {
  6346. "directory": {
  6347. "anyOf": [
  6348. {
  6349. "type": "string"
  6350. },
  6351. {
  6352. "type": "null"
  6353. }
  6354. ]
  6355. },
  6356. "workspace": {
  6357. "anyOf": [
  6358. {
  6359. "type": "string"
  6360. },
  6361. {
  6362. "type": "null"
  6363. }
  6364. ]
  6365. }
  6366. },
  6367. "additionalProperties": false
  6368. },
  6369. {
  6370. "type": "null"
  6371. }
  6372. ]
  6373. },
  6374. "required": false,
  6375. "style": "deepObject",
  6376. "explode": true
  6377. }
  6378. ],
  6379. "security": [],
  6380. "responses": {
  6381. "204": {
  6382. "description": "<No Content>"
  6383. },
  6384. "400": {
  6385. "description": "InvalidRequestError",
  6386. "content": {
  6387. "application/json": {
  6388. "schema": {
  6389. "$ref": "#/components/schemas/InvalidRequestError"
  6390. }
  6391. }
  6392. }
  6393. },
  6394. "401": {
  6395. "description": "UnauthorizedError",
  6396. "content": {
  6397. "application/json": {
  6398. "schema": {
  6399. "$ref": "#/components/schemas/UnauthorizedError"
  6400. }
  6401. }
  6402. }
  6403. },
  6404. "404": {
  6405. "description": "McpServerNotFoundError",
  6406. "content": {
  6407. "application/json": {
  6408. "schema": {
  6409. "$ref": "#/components/schemas/McpServerNotFoundError"
  6410. }
  6411. }
  6412. }
  6413. }
  6414. },
  6415. "description": "Stop an MCP server and remove it from the runtime set until restart.",
  6416. "summary": "Remove MCP server"
  6417. }
  6418. },
  6419. "/api/mcp/{server}/connect": {
  6420. "post": {
  6421. "tags": ["mcp"],
  6422. "operationId": "v2.mcp.connect",
  6423. "parameters": [
  6424. {
  6425. "name": "server",
  6426. "in": "path",
  6427. "schema": {
  6428. "type": "string"
  6429. },
  6430. "required": true
  6431. },
  6432. {
  6433. "name": "location",
  6434. "in": "query",
  6435. "schema": {
  6436. "anyOf": [
  6437. {
  6438. "type": "object",
  6439. "properties": {
  6440. "directory": {
  6441. "anyOf": [
  6442. {
  6443. "type": "string"
  6444. },
  6445. {
  6446. "type": "null"
  6447. }
  6448. ]
  6449. },
  6450. "workspace": {
  6451. "anyOf": [
  6452. {
  6453. "type": "string"
  6454. },
  6455. {
  6456. "type": "null"
  6457. }
  6458. ]
  6459. }
  6460. },
  6461. "additionalProperties": false
  6462. },
  6463. {
  6464. "type": "null"
  6465. }
  6466. ]
  6467. },
  6468. "required": false,
  6469. "style": "deepObject",
  6470. "explode": true
  6471. }
  6472. ],
  6473. "security": [],
  6474. "responses": {
  6475. "204": {
  6476. "description": "<No Content>"
  6477. },
  6478. "400": {
  6479. "description": "InvalidRequestError",
  6480. "content": {
  6481. "application/json": {
  6482. "schema": {
  6483. "$ref": "#/components/schemas/InvalidRequestError"
  6484. }
  6485. }
  6486. }
  6487. },
  6488. "401": {
  6489. "description": "UnauthorizedError",
  6490. "content": {
  6491. "application/json": {
  6492. "schema": {
  6493. "$ref": "#/components/schemas/UnauthorizedError"
  6494. }
  6495. }
  6496. }
  6497. },
  6498. "404": {
  6499. "description": "McpServerNotFoundError",
  6500. "content": {
  6501. "application/json": {
  6502. "schema": {
  6503. "$ref": "#/components/schemas/McpServerNotFoundError"
  6504. }
  6505. }
  6506. }
  6507. }
  6508. },
  6509. "description": "Connect an MCP server at runtime, overriding a disabled configuration until restart.",
  6510. "summary": "Connect MCP server"
  6511. }
  6512. },
  6513. "/api/mcp/{server}/disconnect": {
  6514. "post": {
  6515. "tags": ["mcp"],
  6516. "operationId": "v2.mcp.disconnect",
  6517. "parameters": [
  6518. {
  6519. "name": "server",
  6520. "in": "path",
  6521. "schema": {
  6522. "type": "string"
  6523. },
  6524. "required": true
  6525. },
  6526. {
  6527. "name": "location",
  6528. "in": "query",
  6529. "schema": {
  6530. "anyOf": [
  6531. {
  6532. "type": "object",
  6533. "properties": {
  6534. "directory": {
  6535. "anyOf": [
  6536. {
  6537. "type": "string"
  6538. },
  6539. {
  6540. "type": "null"
  6541. }
  6542. ]
  6543. },
  6544. "workspace": {
  6545. "anyOf": [
  6546. {
  6547. "type": "string"
  6548. },
  6549. {
  6550. "type": "null"
  6551. }
  6552. ]
  6553. }
  6554. },
  6555. "additionalProperties": false
  6556. },
  6557. {
  6558. "type": "null"
  6559. }
  6560. ]
  6561. },
  6562. "required": false,
  6563. "style": "deepObject",
  6564. "explode": true
  6565. }
  6566. ],
  6567. "security": [],
  6568. "responses": {
  6569. "204": {
  6570. "description": "<No Content>"
  6571. },
  6572. "400": {
  6573. "description": "InvalidRequestError",
  6574. "content": {
  6575. "application/json": {
  6576. "schema": {
  6577. "$ref": "#/components/schemas/InvalidRequestError"
  6578. }
  6579. }
  6580. }
  6581. },
  6582. "401": {
  6583. "description": "UnauthorizedError",
  6584. "content": {
  6585. "application/json": {
  6586. "schema": {
  6587. "$ref": "#/components/schemas/UnauthorizedError"
  6588. }
  6589. }
  6590. }
  6591. },
  6592. "404": {
  6593. "description": "McpServerNotFoundError",
  6594. "content": {
  6595. "application/json": {
  6596. "schema": {
  6597. "$ref": "#/components/schemas/McpServerNotFoundError"
  6598. }
  6599. }
  6600. }
  6601. }
  6602. },
  6603. "description": "Disconnect an MCP server at runtime, removing its tools until reconnected.",
  6604. "summary": "Disconnect MCP server"
  6605. }
  6606. },
  6607. "/api/mcp/resource": {
  6608. "get": {
  6609. "tags": ["mcp"],
  6610. "operationId": "v2.mcp.resource.catalog",
  6611. "parameters": [
  6612. {
  6613. "name": "location",
  6614. "in": "query",
  6615. "schema": {
  6616. "anyOf": [
  6617. {
  6618. "type": "object",
  6619. "properties": {
  6620. "directory": {
  6621. "anyOf": [
  6622. {
  6623. "type": "string"
  6624. },
  6625. {
  6626. "type": "null"
  6627. }
  6628. ]
  6629. },
  6630. "workspace": {
  6631. "anyOf": [
  6632. {
  6633. "type": "string"
  6634. },
  6635. {
  6636. "type": "null"
  6637. }
  6638. ]
  6639. }
  6640. },
  6641. "additionalProperties": false
  6642. },
  6643. {
  6644. "type": "null"
  6645. }
  6646. ]
  6647. },
  6648. "required": false,
  6649. "style": "deepObject",
  6650. "explode": true
  6651. }
  6652. ],
  6653. "security": [],
  6654. "responses": {
  6655. "200": {
  6656. "description": "Success",
  6657. "content": {
  6658. "application/json": {
  6659. "schema": {
  6660. "type": "object",
  6661. "properties": {
  6662. "location": {
  6663. "$ref": "#/components/schemas/Location.Info"
  6664. },
  6665. "data": {
  6666. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  6667. }
  6668. },
  6669. "required": ["location", "data"],
  6670. "additionalProperties": false
  6671. }
  6672. }
  6673. }
  6674. },
  6675. "400": {
  6676. "description": "InvalidRequestError",
  6677. "content": {
  6678. "application/json": {
  6679. "schema": {
  6680. "$ref": "#/components/schemas/InvalidRequestError"
  6681. }
  6682. }
  6683. }
  6684. },
  6685. "401": {
  6686. "description": "UnauthorizedError",
  6687. "content": {
  6688. "application/json": {
  6689. "schema": {
  6690. "$ref": "#/components/schemas/UnauthorizedError"
  6691. }
  6692. }
  6693. }
  6694. }
  6695. },
  6696. "description": "Retrieve resources and resource templates from connected MCP servers.",
  6697. "summary": "List MCP resources"
  6698. }
  6699. },
  6700. "/api/credential/{credentialID}": {
  6701. "patch": {
  6702. "tags": ["credential"],
  6703. "operationId": "v2.credential.update",
  6704. "parameters": [
  6705. {
  6706. "name": "credentialID",
  6707. "in": "path",
  6708. "schema": {
  6709. "type": "string"
  6710. },
  6711. "required": true
  6712. },
  6713. {
  6714. "name": "location",
  6715. "in": "query",
  6716. "schema": {
  6717. "anyOf": [
  6718. {
  6719. "type": "object",
  6720. "properties": {
  6721. "directory": {
  6722. "anyOf": [
  6723. {
  6724. "type": "string"
  6725. },
  6726. {
  6727. "type": "null"
  6728. }
  6729. ]
  6730. },
  6731. "workspace": {
  6732. "anyOf": [
  6733. {
  6734. "type": "string"
  6735. },
  6736. {
  6737. "type": "null"
  6738. }
  6739. ]
  6740. }
  6741. },
  6742. "additionalProperties": false
  6743. },
  6744. {
  6745. "type": "null"
  6746. }
  6747. ]
  6748. },
  6749. "required": false,
  6750. "style": "deepObject",
  6751. "explode": true
  6752. }
  6753. ],
  6754. "security": [],
  6755. "responses": {
  6756. "204": {
  6757. "description": "<No Content>"
  6758. },
  6759. "400": {
  6760. "description": "InvalidRequestError",
  6761. "content": {
  6762. "application/json": {
  6763. "schema": {
  6764. "$ref": "#/components/schemas/InvalidRequestError"
  6765. }
  6766. }
  6767. }
  6768. },
  6769. "401": {
  6770. "description": "UnauthorizedError",
  6771. "content": {
  6772. "application/json": {
  6773. "schema": {
  6774. "$ref": "#/components/schemas/UnauthorizedError"
  6775. }
  6776. }
  6777. }
  6778. }
  6779. },
  6780. "description": "Update a stored credential label.",
  6781. "summary": "Update credential",
  6782. "requestBody": {
  6783. "content": {
  6784. "application/json": {
  6785. "schema": {
  6786. "type": "object",
  6787. "properties": {
  6788. "label": {
  6789. "type": "string"
  6790. }
  6791. },
  6792. "required": ["label"],
  6793. "additionalProperties": false
  6794. }
  6795. }
  6796. },
  6797. "required": true
  6798. }
  6799. },
  6800. "delete": {
  6801. "tags": ["credential"],
  6802. "operationId": "v2.credential.remove",
  6803. "parameters": [
  6804. {
  6805. "name": "credentialID",
  6806. "in": "path",
  6807. "schema": {
  6808. "type": "string"
  6809. },
  6810. "required": true
  6811. },
  6812. {
  6813. "name": "location",
  6814. "in": "query",
  6815. "schema": {
  6816. "anyOf": [
  6817. {
  6818. "type": "object",
  6819. "properties": {
  6820. "directory": {
  6821. "anyOf": [
  6822. {
  6823. "type": "string"
  6824. },
  6825. {
  6826. "type": "null"
  6827. }
  6828. ]
  6829. },
  6830. "workspace": {
  6831. "anyOf": [
  6832. {
  6833. "type": "string"
  6834. },
  6835. {
  6836. "type": "null"
  6837. }
  6838. ]
  6839. }
  6840. },
  6841. "additionalProperties": false
  6842. },
  6843. {
  6844. "type": "null"
  6845. }
  6846. ]
  6847. },
  6848. "required": false,
  6849. "style": "deepObject",
  6850. "explode": true
  6851. }
  6852. ],
  6853. "security": [],
  6854. "responses": {
  6855. "204": {
  6856. "description": "<No Content>"
  6857. },
  6858. "400": {
  6859. "description": "InvalidRequestError",
  6860. "content": {
  6861. "application/json": {
  6862. "schema": {
  6863. "$ref": "#/components/schemas/InvalidRequestError"
  6864. }
  6865. }
  6866. }
  6867. },
  6868. "401": {
  6869. "description": "UnauthorizedError",
  6870. "content": {
  6871. "application/json": {
  6872. "schema": {
  6873. "$ref": "#/components/schemas/UnauthorizedError"
  6874. }
  6875. }
  6876. }
  6877. }
  6878. },
  6879. "description": "Remove a stored integration credential.",
  6880. "summary": "Remove credential"
  6881. }
  6882. },
  6883. "/api/project": {
  6884. "get": {
  6885. "tags": ["project"],
  6886. "operationId": "v2.project.list",
  6887. "parameters": [],
  6888. "security": [],
  6889. "responses": {
  6890. "200": {
  6891. "description": "Success",
  6892. "content": {
  6893. "application/json": {
  6894. "schema": {
  6895. "type": "array",
  6896. "items": {
  6897. "$ref": "#/components/schemas/Project"
  6898. }
  6899. }
  6900. }
  6901. }
  6902. },
  6903. "400": {
  6904. "description": "InvalidRequestError",
  6905. "content": {
  6906. "application/json": {
  6907. "schema": {
  6908. "$ref": "#/components/schemas/InvalidRequestError"
  6909. }
  6910. }
  6911. }
  6912. },
  6913. "401": {
  6914. "description": "UnauthorizedError",
  6915. "content": {
  6916. "application/json": {
  6917. "schema": {
  6918. "$ref": "#/components/schemas/UnauthorizedError"
  6919. }
  6920. }
  6921. }
  6922. }
  6923. },
  6924. "description": "List known projects.",
  6925. "summary": "List projects"
  6926. }
  6927. },
  6928. "/api/project/current": {
  6929. "get": {
  6930. "tags": ["project"],
  6931. "operationId": "v2.project.current",
  6932. "parameters": [
  6933. {
  6934. "name": "location",
  6935. "in": "query",
  6936. "schema": {
  6937. "anyOf": [
  6938. {
  6939. "type": "object",
  6940. "properties": {
  6941. "directory": {
  6942. "anyOf": [
  6943. {
  6944. "type": "string"
  6945. },
  6946. {
  6947. "type": "null"
  6948. }
  6949. ]
  6950. },
  6951. "workspace": {
  6952. "anyOf": [
  6953. {
  6954. "type": "string"
  6955. },
  6956. {
  6957. "type": "null"
  6958. }
  6959. ]
  6960. }
  6961. },
  6962. "additionalProperties": false
  6963. },
  6964. {
  6965. "type": "null"
  6966. }
  6967. ]
  6968. },
  6969. "required": false,
  6970. "style": "deepObject",
  6971. "explode": true
  6972. }
  6973. ],
  6974. "security": [],
  6975. "responses": {
  6976. "200": {
  6977. "description": "Project.Current",
  6978. "content": {
  6979. "application/json": {
  6980. "schema": {
  6981. "$ref": "#/components/schemas/Project.Current"
  6982. }
  6983. }
  6984. }
  6985. },
  6986. "400": {
  6987. "description": "InvalidRequestError",
  6988. "content": {
  6989. "application/json": {
  6990. "schema": {
  6991. "$ref": "#/components/schemas/InvalidRequestError"
  6992. }
  6993. }
  6994. }
  6995. },
  6996. "401": {
  6997. "description": "UnauthorizedError",
  6998. "content": {
  6999. "application/json": {
  7000. "schema": {
  7001. "$ref": "#/components/schemas/UnauthorizedError"
  7002. }
  7003. }
  7004. }
  7005. }
  7006. },
  7007. "description": "Resolve the project for the requested location.",
  7008. "summary": "Get current project"
  7009. }
  7010. },
  7011. "/api/form/request": {
  7012. "get": {
  7013. "tags": ["form"],
  7014. "operationId": "v2.form.request.list",
  7015. "parameters": [
  7016. {
  7017. "name": "location",
  7018. "in": "query",
  7019. "schema": {
  7020. "anyOf": [
  7021. {
  7022. "type": "object",
  7023. "properties": {
  7024. "directory": {
  7025. "anyOf": [
  7026. {
  7027. "type": "string"
  7028. },
  7029. {
  7030. "type": "null"
  7031. }
  7032. ]
  7033. },
  7034. "workspace": {
  7035. "anyOf": [
  7036. {
  7037. "type": "string"
  7038. },
  7039. {
  7040. "type": "null"
  7041. }
  7042. ]
  7043. }
  7044. },
  7045. "additionalProperties": false
  7046. },
  7047. {
  7048. "type": "null"
  7049. }
  7050. ]
  7051. },
  7052. "required": false,
  7053. "style": "deepObject",
  7054. "explode": true
  7055. }
  7056. ],
  7057. "security": [],
  7058. "responses": {
  7059. "200": {
  7060. "description": "Success",
  7061. "content": {
  7062. "application/json": {
  7063. "schema": {
  7064. "type": "object",
  7065. "properties": {
  7066. "location": {
  7067. "$ref": "#/components/schemas/Location.Info"
  7068. },
  7069. "data": {
  7070. "type": "array",
  7071. "items": {
  7072. "$ref": "#/components/schemas/Form.Info"
  7073. }
  7074. }
  7075. },
  7076. "required": ["location", "data"],
  7077. "additionalProperties": false
  7078. }
  7079. }
  7080. }
  7081. },
  7082. "400": {
  7083. "description": "InvalidRequestError",
  7084. "content": {
  7085. "application/json": {
  7086. "schema": {
  7087. "$ref": "#/components/schemas/InvalidRequestError"
  7088. }
  7089. }
  7090. }
  7091. },
  7092. "401": {
  7093. "description": "UnauthorizedError",
  7094. "content": {
  7095. "application/json": {
  7096. "schema": {
  7097. "$ref": "#/components/schemas/UnauthorizedError"
  7098. }
  7099. }
  7100. }
  7101. }
  7102. },
  7103. "description": "Retrieve pending forms for a location.",
  7104. "summary": "List pending form requests"
  7105. }
  7106. },
  7107. "/api/session/{sessionID}/form": {
  7108. "get": {
  7109. "tags": ["form"],
  7110. "operationId": "v2.session.form.list",
  7111. "parameters": [
  7112. {
  7113. "name": "sessionID",
  7114. "in": "path",
  7115. "schema": {
  7116. "type": "string"
  7117. },
  7118. "required": true
  7119. }
  7120. ],
  7121. "security": [],
  7122. "responses": {
  7123. "200": {
  7124. "description": "Success",
  7125. "content": {
  7126. "application/json": {
  7127. "schema": {
  7128. "type": "object",
  7129. "properties": {
  7130. "data": {
  7131. "type": "array",
  7132. "items": {
  7133. "$ref": "#/components/schemas/Form.Info"
  7134. }
  7135. }
  7136. },
  7137. "required": ["data"],
  7138. "additionalProperties": false
  7139. }
  7140. }
  7141. }
  7142. },
  7143. "400": {
  7144. "description": "InvalidRequestError",
  7145. "content": {
  7146. "application/json": {
  7147. "schema": {
  7148. "$ref": "#/components/schemas/InvalidRequestError"
  7149. }
  7150. }
  7151. }
  7152. },
  7153. "401": {
  7154. "description": "UnauthorizedError",
  7155. "content": {
  7156. "application/json": {
  7157. "schema": {
  7158. "$ref": "#/components/schemas/UnauthorizedError"
  7159. }
  7160. }
  7161. }
  7162. },
  7163. "404": {
  7164. "description": "SessionNotFoundError",
  7165. "content": {
  7166. "application/json": {
  7167. "schema": {
  7168. "anyOf": [
  7169. {
  7170. "$ref": "#/components/schemas/SessionNotFoundError"
  7171. },
  7172. {
  7173. "$ref": "#/components/schemas/SessionNotFoundError"
  7174. }
  7175. ]
  7176. }
  7177. }
  7178. }
  7179. }
  7180. },
  7181. "description": "Retrieve pending forms for a session.",
  7182. "summary": "List session forms"
  7183. },
  7184. "post": {
  7185. "tags": ["form"],
  7186. "operationId": "v2.session.form.create",
  7187. "parameters": [
  7188. {
  7189. "name": "sessionID",
  7190. "in": "path",
  7191. "schema": {
  7192. "type": "string"
  7193. },
  7194. "required": true
  7195. }
  7196. ],
  7197. "security": [],
  7198. "responses": {
  7199. "200": {
  7200. "description": "Success",
  7201. "content": {
  7202. "application/json": {
  7203. "schema": {
  7204. "type": "object",
  7205. "properties": {
  7206. "data": {
  7207. "$ref": "#/components/schemas/Form.Info"
  7208. }
  7209. },
  7210. "required": ["data"],
  7211. "additionalProperties": false
  7212. }
  7213. }
  7214. }
  7215. },
  7216. "400": {
  7217. "description": "InvalidRequestError",
  7218. "content": {
  7219. "application/json": {
  7220. "schema": {
  7221. "anyOf": [
  7222. {
  7223. "$ref": "#/components/schemas/InvalidRequestError1"
  7224. },
  7225. {
  7226. "$ref": "#/components/schemas/InvalidRequestError"
  7227. }
  7228. ]
  7229. }
  7230. }
  7231. }
  7232. },
  7233. "401": {
  7234. "description": "UnauthorizedError",
  7235. "content": {
  7236. "application/json": {
  7237. "schema": {
  7238. "$ref": "#/components/schemas/UnauthorizedError"
  7239. }
  7240. }
  7241. }
  7242. },
  7243. "404": {
  7244. "description": "SessionNotFoundError",
  7245. "content": {
  7246. "application/json": {
  7247. "schema": {
  7248. "anyOf": [
  7249. {
  7250. "$ref": "#/components/schemas/SessionNotFoundError"
  7251. },
  7252. {
  7253. "$ref": "#/components/schemas/SessionNotFoundError"
  7254. }
  7255. ]
  7256. }
  7257. }
  7258. }
  7259. },
  7260. "409": {
  7261. "description": "ConflictError",
  7262. "content": {
  7263. "application/json": {
  7264. "schema": {
  7265. "$ref": "#/components/schemas/ConflictError"
  7266. }
  7267. }
  7268. }
  7269. }
  7270. },
  7271. "description": "Create a form for a session.",
  7272. "summary": "Create session form",
  7273. "requestBody": {
  7274. "content": {
  7275. "application/json": {
  7276. "schema": {
  7277. "$ref": "#/components/schemas/Form.CreatePayload"
  7278. }
  7279. }
  7280. },
  7281. "required": true
  7282. }
  7283. }
  7284. },
  7285. "/api/session/{sessionID}/form/{formID}": {
  7286. "get": {
  7287. "tags": ["form"],
  7288. "operationId": "v2.session.form.get",
  7289. "parameters": [
  7290. {
  7291. "name": "sessionID",
  7292. "in": "path",
  7293. "schema": {
  7294. "type": "string"
  7295. },
  7296. "required": true
  7297. },
  7298. {
  7299. "name": "formID",
  7300. "in": "path",
  7301. "schema": {
  7302. "type": "string",
  7303. "allOf": [
  7304. {
  7305. "pattern": "^frm_"
  7306. }
  7307. ]
  7308. },
  7309. "required": true
  7310. }
  7311. ],
  7312. "security": [],
  7313. "responses": {
  7314. "200": {
  7315. "description": "Success",
  7316. "content": {
  7317. "application/json": {
  7318. "schema": {
  7319. "type": "object",
  7320. "properties": {
  7321. "data": {
  7322. "$ref": "#/components/schemas/Form.Info"
  7323. }
  7324. },
  7325. "required": ["data"],
  7326. "additionalProperties": false
  7327. }
  7328. }
  7329. }
  7330. },
  7331. "400": {
  7332. "description": "InvalidRequestError",
  7333. "content": {
  7334. "application/json": {
  7335. "schema": {
  7336. "$ref": "#/components/schemas/InvalidRequestError"
  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. },
  7372. "description": "Retrieve a form for a session.",
  7373. "summary": "Get session form"
  7374. }
  7375. },
  7376. "/api/session/{sessionID}/form/{formID}/state": {
  7377. "get": {
  7378. "tags": ["form"],
  7379. "operationId": "v2.session.form.state",
  7380. "parameters": [
  7381. {
  7382. "name": "sessionID",
  7383. "in": "path",
  7384. "schema": {
  7385. "type": "string"
  7386. },
  7387. "required": true
  7388. },
  7389. {
  7390. "name": "formID",
  7391. "in": "path",
  7392. "schema": {
  7393. "type": "string",
  7394. "allOf": [
  7395. {
  7396. "pattern": "^frm_"
  7397. }
  7398. ]
  7399. },
  7400. "required": true
  7401. }
  7402. ],
  7403. "security": [],
  7404. "responses": {
  7405. "200": {
  7406. "description": "Success",
  7407. "content": {
  7408. "application/json": {
  7409. "schema": {
  7410. "type": "object",
  7411. "properties": {
  7412. "data": {
  7413. "$ref": "#/components/schemas/Form.State"
  7414. }
  7415. },
  7416. "required": ["data"],
  7417. "additionalProperties": false
  7418. }
  7419. }
  7420. }
  7421. },
  7422. "400": {
  7423. "description": "InvalidRequestError",
  7424. "content": {
  7425. "application/json": {
  7426. "schema": {
  7427. "$ref": "#/components/schemas/InvalidRequestError"
  7428. }
  7429. }
  7430. }
  7431. },
  7432. "401": {
  7433. "description": "UnauthorizedError",
  7434. "content": {
  7435. "application/json": {
  7436. "schema": {
  7437. "$ref": "#/components/schemas/UnauthorizedError"
  7438. }
  7439. }
  7440. }
  7441. },
  7442. "404": {
  7443. "description": "SessionNotFoundError | FormNotFoundError",
  7444. "content": {
  7445. "application/json": {
  7446. "schema": {
  7447. "anyOf": [
  7448. {
  7449. "$ref": "#/components/schemas/FormNotFoundError"
  7450. },
  7451. {
  7452. "$ref": "#/components/schemas/SessionNotFoundError"
  7453. },
  7454. {
  7455. "$ref": "#/components/schemas/SessionNotFoundError"
  7456. }
  7457. ]
  7458. }
  7459. }
  7460. }
  7461. }
  7462. },
  7463. "description": "Retrieve the current state for a form.",
  7464. "summary": "Get form state"
  7465. }
  7466. },
  7467. "/api/session/{sessionID}/form/{formID}/reply": {
  7468. "post": {
  7469. "tags": ["form"],
  7470. "operationId": "v2.session.form.reply",
  7471. "parameters": [
  7472. {
  7473. "name": "sessionID",
  7474. "in": "path",
  7475. "schema": {
  7476. "type": "string"
  7477. },
  7478. "required": true
  7479. },
  7480. {
  7481. "name": "formID",
  7482. "in": "path",
  7483. "schema": {
  7484. "type": "string",
  7485. "allOf": [
  7486. {
  7487. "pattern": "^frm_"
  7488. }
  7489. ]
  7490. },
  7491. "required": true
  7492. }
  7493. ],
  7494. "security": [],
  7495. "responses": {
  7496. "204": {
  7497. "description": "<No Content>"
  7498. },
  7499. "400": {
  7500. "description": "FormInvalidAnswerError | InvalidRequestError",
  7501. "content": {
  7502. "application/json": {
  7503. "schema": {
  7504. "anyOf": [
  7505. {
  7506. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7507. },
  7508. {
  7509. "$ref": "#/components/schemas/InvalidRequestError"
  7510. }
  7511. ]
  7512. }
  7513. }
  7514. }
  7515. },
  7516. "401": {
  7517. "description": "UnauthorizedError",
  7518. "content": {
  7519. "application/json": {
  7520. "schema": {
  7521. "$ref": "#/components/schemas/UnauthorizedError"
  7522. }
  7523. }
  7524. }
  7525. },
  7526. "404": {
  7527. "description": "SessionNotFoundError | FormNotFoundError",
  7528. "content": {
  7529. "application/json": {
  7530. "schema": {
  7531. "anyOf": [
  7532. {
  7533. "$ref": "#/components/schemas/FormNotFoundError"
  7534. },
  7535. {
  7536. "$ref": "#/components/schemas/SessionNotFoundError"
  7537. },
  7538. {
  7539. "$ref": "#/components/schemas/SessionNotFoundError"
  7540. }
  7541. ]
  7542. }
  7543. }
  7544. }
  7545. },
  7546. "409": {
  7547. "description": "FormAlreadySettledError",
  7548. "content": {
  7549. "application/json": {
  7550. "schema": {
  7551. "$ref": "#/components/schemas/FormAlreadySettledError"
  7552. }
  7553. }
  7554. }
  7555. }
  7556. },
  7557. "description": "Submit an answer to a pending form.",
  7558. "summary": "Reply to form",
  7559. "requestBody": {
  7560. "content": {
  7561. "application/json": {
  7562. "schema": {
  7563. "$ref": "#/components/schemas/Form.Reply"
  7564. }
  7565. }
  7566. },
  7567. "required": true
  7568. }
  7569. }
  7570. },
  7571. "/api/session/{sessionID}/form/{formID}/cancel": {
  7572. "post": {
  7573. "tags": ["form"],
  7574. "operationId": "v2.session.form.cancel",
  7575. "parameters": [
  7576. {
  7577. "name": "sessionID",
  7578. "in": "path",
  7579. "schema": {
  7580. "type": "string"
  7581. },
  7582. "required": true
  7583. },
  7584. {
  7585. "name": "formID",
  7586. "in": "path",
  7587. "schema": {
  7588. "type": "string",
  7589. "allOf": [
  7590. {
  7591. "pattern": "^frm_"
  7592. }
  7593. ]
  7594. },
  7595. "required": true
  7596. }
  7597. ],
  7598. "security": [],
  7599. "responses": {
  7600. "204": {
  7601. "description": "<No Content>"
  7602. },
  7603. "400": {
  7604. "description": "InvalidRequestError",
  7605. "content": {
  7606. "application/json": {
  7607. "schema": {
  7608. "$ref": "#/components/schemas/InvalidRequestError"
  7609. }
  7610. }
  7611. }
  7612. },
  7613. "401": {
  7614. "description": "UnauthorizedError",
  7615. "content": {
  7616. "application/json": {
  7617. "schema": {
  7618. "$ref": "#/components/schemas/UnauthorizedError"
  7619. }
  7620. }
  7621. }
  7622. },
  7623. "404": {
  7624. "description": "SessionNotFoundError | FormNotFoundError",
  7625. "content": {
  7626. "application/json": {
  7627. "schema": {
  7628. "anyOf": [
  7629. {
  7630. "$ref": "#/components/schemas/FormNotFoundError"
  7631. },
  7632. {
  7633. "$ref": "#/components/schemas/SessionNotFoundError"
  7634. },
  7635. {
  7636. "$ref": "#/components/schemas/SessionNotFoundError"
  7637. }
  7638. ]
  7639. }
  7640. }
  7641. }
  7642. },
  7643. "409": {
  7644. "description": "FormAlreadySettledError",
  7645. "content": {
  7646. "application/json": {
  7647. "schema": {
  7648. "$ref": "#/components/schemas/FormAlreadySettledError"
  7649. }
  7650. }
  7651. }
  7652. }
  7653. },
  7654. "description": "Cancel a pending form.",
  7655. "summary": "Cancel form"
  7656. }
  7657. },
  7658. "/api/permission/request": {
  7659. "get": {
  7660. "tags": ["permission"],
  7661. "operationId": "v2.permission.request.list",
  7662. "parameters": [
  7663. {
  7664. "name": "location",
  7665. "in": "query",
  7666. "schema": {
  7667. "anyOf": [
  7668. {
  7669. "type": "object",
  7670. "properties": {
  7671. "directory": {
  7672. "anyOf": [
  7673. {
  7674. "type": "string"
  7675. },
  7676. {
  7677. "type": "null"
  7678. }
  7679. ]
  7680. },
  7681. "workspace": {
  7682. "anyOf": [
  7683. {
  7684. "type": "string"
  7685. },
  7686. {
  7687. "type": "null"
  7688. }
  7689. ]
  7690. }
  7691. },
  7692. "additionalProperties": false
  7693. },
  7694. {
  7695. "type": "null"
  7696. }
  7697. ]
  7698. },
  7699. "required": false,
  7700. "style": "deepObject",
  7701. "explode": true
  7702. }
  7703. ],
  7704. "security": [],
  7705. "responses": {
  7706. "200": {
  7707. "description": "Success",
  7708. "content": {
  7709. "application/json": {
  7710. "schema": {
  7711. "type": "object",
  7712. "properties": {
  7713. "location": {
  7714. "$ref": "#/components/schemas/Location.Info"
  7715. },
  7716. "data": {
  7717. "type": "array",
  7718. "items": {
  7719. "$ref": "#/components/schemas/Permission.Request"
  7720. }
  7721. }
  7722. },
  7723. "required": ["location", "data"],
  7724. "additionalProperties": false
  7725. }
  7726. }
  7727. }
  7728. },
  7729. "400": {
  7730. "description": "InvalidRequestError",
  7731. "content": {
  7732. "application/json": {
  7733. "schema": {
  7734. "$ref": "#/components/schemas/InvalidRequestError"
  7735. }
  7736. }
  7737. }
  7738. },
  7739. "401": {
  7740. "description": "UnauthorizedError",
  7741. "content": {
  7742. "application/json": {
  7743. "schema": {
  7744. "$ref": "#/components/schemas/UnauthorizedError"
  7745. }
  7746. }
  7747. }
  7748. }
  7749. },
  7750. "description": "Retrieve pending permission requests for a location.",
  7751. "summary": "List pending permission requests"
  7752. }
  7753. },
  7754. "/api/permission/saved": {
  7755. "get": {
  7756. "tags": ["permission"],
  7757. "operationId": "v2.permission.saved.list",
  7758. "parameters": [
  7759. {
  7760. "name": "projectID",
  7761. "in": "query",
  7762. "schema": {
  7763. "anyOf": [
  7764. {
  7765. "type": "string"
  7766. },
  7767. {
  7768. "type": "null"
  7769. }
  7770. ]
  7771. },
  7772. "required": false
  7773. }
  7774. ],
  7775. "security": [],
  7776. "responses": {
  7777. "200": {
  7778. "description": "Success",
  7779. "content": {
  7780. "application/json": {
  7781. "schema": {
  7782. "type": "object",
  7783. "properties": {
  7784. "data": {
  7785. "type": "array",
  7786. "items": {
  7787. "$ref": "#/components/schemas/PermissionSaved.Info"
  7788. }
  7789. }
  7790. },
  7791. "required": ["data"],
  7792. "additionalProperties": false
  7793. }
  7794. }
  7795. }
  7796. },
  7797. "400": {
  7798. "description": "InvalidRequestError",
  7799. "content": {
  7800. "application/json": {
  7801. "schema": {
  7802. "$ref": "#/components/schemas/InvalidRequestError"
  7803. }
  7804. }
  7805. }
  7806. },
  7807. "401": {
  7808. "description": "UnauthorizedError",
  7809. "content": {
  7810. "application/json": {
  7811. "schema": {
  7812. "$ref": "#/components/schemas/UnauthorizedError"
  7813. }
  7814. }
  7815. }
  7816. }
  7817. },
  7818. "description": "Retrieve saved permissions, optionally filtered by project.",
  7819. "summary": "List saved permissions"
  7820. }
  7821. },
  7822. "/api/permission/saved/{id}": {
  7823. "delete": {
  7824. "tags": ["permission"],
  7825. "operationId": "v2.permission.saved.remove",
  7826. "parameters": [
  7827. {
  7828. "name": "id",
  7829. "in": "path",
  7830. "schema": {
  7831. "type": "string"
  7832. },
  7833. "required": true
  7834. }
  7835. ],
  7836. "security": [],
  7837. "responses": {
  7838. "204": {
  7839. "description": "<No Content>"
  7840. },
  7841. "400": {
  7842. "description": "InvalidRequestError",
  7843. "content": {
  7844. "application/json": {
  7845. "schema": {
  7846. "$ref": "#/components/schemas/InvalidRequestError"
  7847. }
  7848. }
  7849. }
  7850. },
  7851. "401": {
  7852. "description": "UnauthorizedError",
  7853. "content": {
  7854. "application/json": {
  7855. "schema": {
  7856. "$ref": "#/components/schemas/UnauthorizedError"
  7857. }
  7858. }
  7859. }
  7860. }
  7861. },
  7862. "description": "Remove a saved permission by ID.",
  7863. "summary": "Remove saved permission"
  7864. }
  7865. },
  7866. "/api/session/{sessionID}/permission": {
  7867. "post": {
  7868. "tags": ["permission"],
  7869. "operationId": "v2.session.permission.create",
  7870. "parameters": [
  7871. {
  7872. "name": "sessionID",
  7873. "in": "path",
  7874. "schema": {
  7875. "type": "string",
  7876. "allOf": [
  7877. {
  7878. "pattern": "^ses"
  7879. }
  7880. ]
  7881. },
  7882. "required": true
  7883. }
  7884. ],
  7885. "security": [],
  7886. "responses": {
  7887. "200": {
  7888. "description": "Success",
  7889. "content": {
  7890. "application/json": {
  7891. "schema": {
  7892. "type": "object",
  7893. "properties": {
  7894. "data": {
  7895. "type": "object",
  7896. "properties": {
  7897. "id": {
  7898. "type": "string",
  7899. "allOf": [
  7900. {
  7901. "pattern": "^per"
  7902. }
  7903. ]
  7904. },
  7905. "effect": {
  7906. "$ref": "#/components/schemas/Permission.Effect"
  7907. }
  7908. },
  7909. "required": ["id", "effect"],
  7910. "additionalProperties": false
  7911. }
  7912. },
  7913. "required": ["data"],
  7914. "additionalProperties": false
  7915. }
  7916. }
  7917. }
  7918. },
  7919. "400": {
  7920. "description": "InvalidRequestError",
  7921. "content": {
  7922. "application/json": {
  7923. "schema": {
  7924. "$ref": "#/components/schemas/InvalidRequestError"
  7925. }
  7926. }
  7927. }
  7928. },
  7929. "401": {
  7930. "description": "UnauthorizedError",
  7931. "content": {
  7932. "application/json": {
  7933. "schema": {
  7934. "$ref": "#/components/schemas/UnauthorizedError"
  7935. }
  7936. }
  7937. }
  7938. },
  7939. "404": {
  7940. "description": "SessionNotFoundError",
  7941. "content": {
  7942. "application/json": {
  7943. "schema": {
  7944. "anyOf": [
  7945. {
  7946. "$ref": "#/components/schemas/SessionNotFoundError"
  7947. },
  7948. {
  7949. "$ref": "#/components/schemas/SessionNotFoundError"
  7950. }
  7951. ]
  7952. }
  7953. }
  7954. }
  7955. }
  7956. },
  7957. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7958. "summary": "Create permission request",
  7959. "requestBody": {
  7960. "content": {
  7961. "application/json": {
  7962. "schema": {
  7963. "type": "object",
  7964. "properties": {
  7965. "id": {
  7966. "anyOf": [
  7967. {
  7968. "type": "string",
  7969. "allOf": [
  7970. {
  7971. "pattern": "^per"
  7972. }
  7973. ]
  7974. },
  7975. {
  7976. "type": "null"
  7977. }
  7978. ]
  7979. },
  7980. "action": {
  7981. "type": "string"
  7982. },
  7983. "resources": {
  7984. "type": "array",
  7985. "items": {
  7986. "type": "string"
  7987. }
  7988. },
  7989. "save": {
  7990. "type": "array",
  7991. "items": {
  7992. "type": "string"
  7993. }
  7994. },
  7995. "metadata": {
  7996. "type": "object"
  7997. },
  7998. "source": {
  7999. "$ref": "#/components/schemas/Permission.Source"
  8000. },
  8001. "agent": {
  8002. "anyOf": [
  8003. {
  8004. "type": "string"
  8005. },
  8006. {
  8007. "type": "null"
  8008. }
  8009. ]
  8010. }
  8011. },
  8012. "required": ["action", "resources"],
  8013. "additionalProperties": false
  8014. }
  8015. }
  8016. },
  8017. "required": true
  8018. }
  8019. },
  8020. "get": {
  8021. "tags": ["permission"],
  8022. "operationId": "v2.session.permission.list",
  8023. "parameters": [
  8024. {
  8025. "name": "sessionID",
  8026. "in": "path",
  8027. "schema": {
  8028. "type": "string",
  8029. "allOf": [
  8030. {
  8031. "pattern": "^ses"
  8032. }
  8033. ]
  8034. },
  8035. "required": true
  8036. }
  8037. ],
  8038. "security": [],
  8039. "responses": {
  8040. "200": {
  8041. "description": "Success",
  8042. "content": {
  8043. "application/json": {
  8044. "schema": {
  8045. "type": "object",
  8046. "properties": {
  8047. "data": {
  8048. "type": "array",
  8049. "items": {
  8050. "$ref": "#/components/schemas/Permission.Request"
  8051. }
  8052. }
  8053. },
  8054. "required": ["data"],
  8055. "additionalProperties": false
  8056. }
  8057. }
  8058. }
  8059. },
  8060. "400": {
  8061. "description": "InvalidRequestError",
  8062. "content": {
  8063. "application/json": {
  8064. "schema": {
  8065. "$ref": "#/components/schemas/InvalidRequestError"
  8066. }
  8067. }
  8068. }
  8069. },
  8070. "401": {
  8071. "description": "UnauthorizedError",
  8072. "content": {
  8073. "application/json": {
  8074. "schema": {
  8075. "$ref": "#/components/schemas/UnauthorizedError"
  8076. }
  8077. }
  8078. }
  8079. },
  8080. "404": {
  8081. "description": "SessionNotFoundError",
  8082. "content": {
  8083. "application/json": {
  8084. "schema": {
  8085. "anyOf": [
  8086. {
  8087. "$ref": "#/components/schemas/SessionNotFoundError"
  8088. },
  8089. {
  8090. "$ref": "#/components/schemas/SessionNotFoundError"
  8091. }
  8092. ]
  8093. }
  8094. }
  8095. }
  8096. }
  8097. },
  8098. "description": "Retrieve pending permission requests owned by a session.",
  8099. "summary": "List session permission requests"
  8100. }
  8101. },
  8102. "/api/session/{sessionID}/permission/{requestID}": {
  8103. "get": {
  8104. "tags": ["permission"],
  8105. "operationId": "v2.session.permission.get",
  8106. "parameters": [
  8107. {
  8108. "name": "sessionID",
  8109. "in": "path",
  8110. "schema": {
  8111. "type": "string",
  8112. "allOf": [
  8113. {
  8114. "pattern": "^ses"
  8115. }
  8116. ]
  8117. },
  8118. "required": true
  8119. },
  8120. {
  8121. "name": "requestID",
  8122. "in": "path",
  8123. "schema": {
  8124. "type": "string",
  8125. "allOf": [
  8126. {
  8127. "pattern": "^per"
  8128. }
  8129. ]
  8130. },
  8131. "required": true
  8132. }
  8133. ],
  8134. "security": [],
  8135. "responses": {
  8136. "200": {
  8137. "description": "Success",
  8138. "content": {
  8139. "application/json": {
  8140. "schema": {
  8141. "type": "object",
  8142. "properties": {
  8143. "data": {
  8144. "$ref": "#/components/schemas/Permission.Request"
  8145. }
  8146. },
  8147. "required": ["data"],
  8148. "additionalProperties": false
  8149. }
  8150. }
  8151. }
  8152. },
  8153. "400": {
  8154. "description": "InvalidRequestError",
  8155. "content": {
  8156. "application/json": {
  8157. "schema": {
  8158. "$ref": "#/components/schemas/InvalidRequestError"
  8159. }
  8160. }
  8161. }
  8162. },
  8163. "401": {
  8164. "description": "UnauthorizedError",
  8165. "content": {
  8166. "application/json": {
  8167. "schema": {
  8168. "$ref": "#/components/schemas/UnauthorizedError"
  8169. }
  8170. }
  8171. }
  8172. },
  8173. "404": {
  8174. "description": "SessionNotFoundError | PermissionNotFoundError",
  8175. "content": {
  8176. "application/json": {
  8177. "schema": {
  8178. "anyOf": [
  8179. {
  8180. "$ref": "#/components/schemas/PermissionNotFoundError"
  8181. },
  8182. {
  8183. "$ref": "#/components/schemas/SessionNotFoundError"
  8184. },
  8185. {
  8186. "$ref": "#/components/schemas/SessionNotFoundError"
  8187. }
  8188. ]
  8189. }
  8190. }
  8191. }
  8192. }
  8193. },
  8194. "description": "Retrieve a pending permission request owned by a session.",
  8195. "summary": "Get permission request"
  8196. }
  8197. },
  8198. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8199. "post": {
  8200. "tags": ["permission"],
  8201. "operationId": "v2.session.permission.reply",
  8202. "parameters": [
  8203. {
  8204. "name": "sessionID",
  8205. "in": "path",
  8206. "schema": {
  8207. "type": "string",
  8208. "allOf": [
  8209. {
  8210. "pattern": "^ses"
  8211. }
  8212. ]
  8213. },
  8214. "required": true
  8215. },
  8216. {
  8217. "name": "requestID",
  8218. "in": "path",
  8219. "schema": {
  8220. "type": "string",
  8221. "allOf": [
  8222. {
  8223. "pattern": "^per"
  8224. }
  8225. ]
  8226. },
  8227. "required": true
  8228. }
  8229. ],
  8230. "security": [],
  8231. "responses": {
  8232. "204": {
  8233. "description": "<No Content>"
  8234. },
  8235. "400": {
  8236. "description": "InvalidRequestError",
  8237. "content": {
  8238. "application/json": {
  8239. "schema": {
  8240. "$ref": "#/components/schemas/InvalidRequestError"
  8241. }
  8242. }
  8243. }
  8244. },
  8245. "401": {
  8246. "description": "UnauthorizedError",
  8247. "content": {
  8248. "application/json": {
  8249. "schema": {
  8250. "$ref": "#/components/schemas/UnauthorizedError"
  8251. }
  8252. }
  8253. }
  8254. },
  8255. "404": {
  8256. "description": "SessionNotFoundError | PermissionNotFoundError",
  8257. "content": {
  8258. "application/json": {
  8259. "schema": {
  8260. "anyOf": [
  8261. {
  8262. "$ref": "#/components/schemas/PermissionNotFoundError"
  8263. },
  8264. {
  8265. "$ref": "#/components/schemas/SessionNotFoundError"
  8266. },
  8267. {
  8268. "$ref": "#/components/schemas/SessionNotFoundError"
  8269. }
  8270. ]
  8271. }
  8272. }
  8273. }
  8274. }
  8275. },
  8276. "description": "Respond to a pending permission request owned by a session.",
  8277. "summary": "Reply to pending permission request",
  8278. "requestBody": {
  8279. "content": {
  8280. "application/json": {
  8281. "schema": {
  8282. "type": "object",
  8283. "properties": {
  8284. "reply": {
  8285. "$ref": "#/components/schemas/Permission.Reply"
  8286. },
  8287. "message": {
  8288. "anyOf": [
  8289. {
  8290. "type": "string"
  8291. },
  8292. {
  8293. "type": "null"
  8294. }
  8295. ]
  8296. }
  8297. },
  8298. "required": ["reply"],
  8299. "additionalProperties": false
  8300. }
  8301. }
  8302. },
  8303. "required": true
  8304. }
  8305. }
  8306. },
  8307. "/api/fs/read/*": {
  8308. "get": {
  8309. "tags": ["filesystem"],
  8310. "operationId": "v2.fs.read",
  8311. "parameters": [
  8312. {
  8313. "name": "location",
  8314. "in": "query",
  8315. "schema": {
  8316. "anyOf": [
  8317. {
  8318. "type": "object",
  8319. "properties": {
  8320. "directory": {
  8321. "anyOf": [
  8322. {
  8323. "type": "string"
  8324. },
  8325. {
  8326. "type": "null"
  8327. }
  8328. ]
  8329. },
  8330. "workspace": {
  8331. "anyOf": [
  8332. {
  8333. "type": "string"
  8334. },
  8335. {
  8336. "type": "null"
  8337. }
  8338. ]
  8339. }
  8340. },
  8341. "additionalProperties": false
  8342. },
  8343. {
  8344. "type": "null"
  8345. }
  8346. ]
  8347. },
  8348. "required": false,
  8349. "style": "deepObject",
  8350. "explode": true
  8351. }
  8352. ],
  8353. "security": [],
  8354. "responses": {
  8355. "200": {
  8356. "description": "Success",
  8357. "content": {
  8358. "application/octet-stream": {
  8359. "schema": {
  8360. "type": "string",
  8361. "format": "binary"
  8362. }
  8363. }
  8364. }
  8365. },
  8366. "400": {
  8367. "description": "InvalidRequestError",
  8368. "content": {
  8369. "application/json": {
  8370. "schema": {
  8371. "$ref": "#/components/schemas/InvalidRequestError"
  8372. }
  8373. }
  8374. }
  8375. },
  8376. "401": {
  8377. "description": "UnauthorizedError",
  8378. "content": {
  8379. "application/json": {
  8380. "schema": {
  8381. "$ref": "#/components/schemas/UnauthorizedError"
  8382. }
  8383. }
  8384. }
  8385. }
  8386. },
  8387. "description": "Serve one file relative to the requested location.",
  8388. "summary": "Read file"
  8389. }
  8390. },
  8391. "/api/fs/list": {
  8392. "get": {
  8393. "tags": ["filesystem"],
  8394. "operationId": "v2.fs.list",
  8395. "parameters": [
  8396. {
  8397. "name": "location",
  8398. "in": "query",
  8399. "schema": {
  8400. "anyOf": [
  8401. {
  8402. "type": "object",
  8403. "properties": {
  8404. "directory": {
  8405. "anyOf": [
  8406. {
  8407. "type": "string"
  8408. },
  8409. {
  8410. "type": "null"
  8411. }
  8412. ]
  8413. },
  8414. "workspace": {
  8415. "anyOf": [
  8416. {
  8417. "type": "string"
  8418. },
  8419. {
  8420. "type": "null"
  8421. }
  8422. ]
  8423. }
  8424. },
  8425. "additionalProperties": false
  8426. },
  8427. {
  8428. "type": "null"
  8429. }
  8430. ]
  8431. },
  8432. "required": false,
  8433. "style": "deepObject",
  8434. "explode": true
  8435. },
  8436. {
  8437. "name": "path",
  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": ["location", "data"],
  8472. "additionalProperties": false
  8473. }
  8474. }
  8475. }
  8476. },
  8477. "400": {
  8478. "description": "InvalidRequestError",
  8479. "content": {
  8480. "application/json": {
  8481. "schema": {
  8482. "$ref": "#/components/schemas/InvalidRequestError"
  8483. }
  8484. }
  8485. }
  8486. },
  8487. "401": {
  8488. "description": "UnauthorizedError",
  8489. "content": {
  8490. "application/json": {
  8491. "schema": {
  8492. "$ref": "#/components/schemas/UnauthorizedError"
  8493. }
  8494. }
  8495. }
  8496. }
  8497. },
  8498. "description": "List direct children of one directory relative to the requested location.",
  8499. "summary": "List directory"
  8500. }
  8501. },
  8502. "/api/fs/find": {
  8503. "get": {
  8504. "tags": ["filesystem"],
  8505. "operationId": "v2.fs.find",
  8506. "parameters": [
  8507. {
  8508. "name": "location",
  8509. "in": "query",
  8510. "schema": {
  8511. "anyOf": [
  8512. {
  8513. "type": "object",
  8514. "properties": {
  8515. "directory": {
  8516. "anyOf": [
  8517. {
  8518. "type": "string"
  8519. },
  8520. {
  8521. "type": "null"
  8522. }
  8523. ]
  8524. },
  8525. "workspace": {
  8526. "anyOf": [
  8527. {
  8528. "type": "string"
  8529. },
  8530. {
  8531. "type": "null"
  8532. }
  8533. ]
  8534. }
  8535. },
  8536. "additionalProperties": false
  8537. },
  8538. {
  8539. "type": "null"
  8540. }
  8541. ]
  8542. },
  8543. "required": false,
  8544. "style": "deepObject",
  8545. "explode": true
  8546. },
  8547. {
  8548. "name": "query",
  8549. "in": "query",
  8550. "schema": {
  8551. "type": "string"
  8552. },
  8553. "required": true
  8554. },
  8555. {
  8556. "name": "type",
  8557. "in": "query",
  8558. "schema": {
  8559. "type": "string",
  8560. "enum": ["file", "directory"]
  8561. },
  8562. "required": false
  8563. },
  8564. {
  8565. "name": "limit",
  8566. "in": "query",
  8567. "schema": {
  8568. "anyOf": [
  8569. {
  8570. "type": "string"
  8571. },
  8572. {
  8573. "type": "null"
  8574. }
  8575. ]
  8576. },
  8577. "required": false
  8578. }
  8579. ],
  8580. "security": [],
  8581. "responses": {
  8582. "200": {
  8583. "description": "Success",
  8584. "content": {
  8585. "application/json": {
  8586. "schema": {
  8587. "type": "object",
  8588. "properties": {
  8589. "location": {
  8590. "$ref": "#/components/schemas/Location.Info"
  8591. },
  8592. "data": {
  8593. "type": "array",
  8594. "items": {
  8595. "$ref": "#/components/schemas/FileSystem.Entry"
  8596. }
  8597. }
  8598. },
  8599. "required": ["location", "data"],
  8600. "additionalProperties": false
  8601. }
  8602. }
  8603. }
  8604. },
  8605. "400": {
  8606. "description": "InvalidRequestError",
  8607. "content": {
  8608. "application/json": {
  8609. "schema": {
  8610. "$ref": "#/components/schemas/InvalidRequestError"
  8611. }
  8612. }
  8613. }
  8614. },
  8615. "401": {
  8616. "description": "UnauthorizedError",
  8617. "content": {
  8618. "application/json": {
  8619. "schema": {
  8620. "$ref": "#/components/schemas/UnauthorizedError"
  8621. }
  8622. }
  8623. }
  8624. }
  8625. },
  8626. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8627. "summary": "Find files"
  8628. }
  8629. },
  8630. "/api/command": {
  8631. "get": {
  8632. "tags": ["command"],
  8633. "operationId": "v2.command.list",
  8634. "parameters": [
  8635. {
  8636. "name": "location",
  8637. "in": "query",
  8638. "schema": {
  8639. "anyOf": [
  8640. {
  8641. "type": "object",
  8642. "properties": {
  8643. "directory": {
  8644. "anyOf": [
  8645. {
  8646. "type": "string"
  8647. },
  8648. {
  8649. "type": "null"
  8650. }
  8651. ]
  8652. },
  8653. "workspace": {
  8654. "anyOf": [
  8655. {
  8656. "type": "string"
  8657. },
  8658. {
  8659. "type": "null"
  8660. }
  8661. ]
  8662. }
  8663. },
  8664. "additionalProperties": false
  8665. },
  8666. {
  8667. "type": "null"
  8668. }
  8669. ]
  8670. },
  8671. "required": false,
  8672. "style": "deepObject",
  8673. "explode": true
  8674. }
  8675. ],
  8676. "security": [],
  8677. "responses": {
  8678. "200": {
  8679. "description": "Success",
  8680. "content": {
  8681. "application/json": {
  8682. "schema": {
  8683. "type": "object",
  8684. "properties": {
  8685. "location": {
  8686. "$ref": "#/components/schemas/Location.Info"
  8687. },
  8688. "data": {
  8689. "type": "array",
  8690. "items": {
  8691. "$ref": "#/components/schemas/Command.Info"
  8692. }
  8693. }
  8694. },
  8695. "required": ["location", "data"],
  8696. "additionalProperties": false
  8697. }
  8698. }
  8699. }
  8700. },
  8701. "400": {
  8702. "description": "InvalidRequestError",
  8703. "content": {
  8704. "application/json": {
  8705. "schema": {
  8706. "$ref": "#/components/schemas/InvalidRequestError"
  8707. }
  8708. }
  8709. }
  8710. },
  8711. "401": {
  8712. "description": "UnauthorizedError",
  8713. "content": {
  8714. "application/json": {
  8715. "schema": {
  8716. "$ref": "#/components/schemas/UnauthorizedError"
  8717. }
  8718. }
  8719. }
  8720. }
  8721. },
  8722. "description": "Retrieve currently registered commands.",
  8723. "summary": "List commands"
  8724. }
  8725. },
  8726. "/api/skill": {
  8727. "get": {
  8728. "tags": ["skill"],
  8729. "operationId": "v2.skill.list",
  8730. "parameters": [
  8731. {
  8732. "name": "location",
  8733. "in": "query",
  8734. "schema": {
  8735. "anyOf": [
  8736. {
  8737. "type": "object",
  8738. "properties": {
  8739. "directory": {
  8740. "anyOf": [
  8741. {
  8742. "type": "string"
  8743. },
  8744. {
  8745. "type": "null"
  8746. }
  8747. ]
  8748. },
  8749. "workspace": {
  8750. "anyOf": [
  8751. {
  8752. "type": "string"
  8753. },
  8754. {
  8755. "type": "null"
  8756. }
  8757. ]
  8758. }
  8759. },
  8760. "additionalProperties": false
  8761. },
  8762. {
  8763. "type": "null"
  8764. }
  8765. ]
  8766. },
  8767. "required": false,
  8768. "style": "deepObject",
  8769. "explode": true
  8770. }
  8771. ],
  8772. "security": [],
  8773. "responses": {
  8774. "200": {
  8775. "description": "Success",
  8776. "content": {
  8777. "application/json": {
  8778. "schema": {
  8779. "type": "object",
  8780. "properties": {
  8781. "location": {
  8782. "$ref": "#/components/schemas/Location.Info"
  8783. },
  8784. "data": {
  8785. "type": "array",
  8786. "items": {
  8787. "$ref": "#/components/schemas/Skill.Info"
  8788. }
  8789. }
  8790. },
  8791. "required": ["location", "data"],
  8792. "additionalProperties": false
  8793. }
  8794. }
  8795. }
  8796. },
  8797. "400": {
  8798. "description": "InvalidRequestError",
  8799. "content": {
  8800. "application/json": {
  8801. "schema": {
  8802. "$ref": "#/components/schemas/InvalidRequestError"
  8803. }
  8804. }
  8805. }
  8806. },
  8807. "401": {
  8808. "description": "UnauthorizedError",
  8809. "content": {
  8810. "application/json": {
  8811. "schema": {
  8812. "$ref": "#/components/schemas/UnauthorizedError"
  8813. }
  8814. }
  8815. }
  8816. }
  8817. },
  8818. "description": "Retrieve currently registered skills.",
  8819. "summary": "List skills"
  8820. }
  8821. },
  8822. "/api/event": {
  8823. "get": {
  8824. "tags": ["event"],
  8825. "operationId": "v2.event.subscribe",
  8826. "parameters": [],
  8827. "security": [],
  8828. "responses": {
  8829. "200": {
  8830. "description": "Success",
  8831. "content": {
  8832. "text/event-stream": {
  8833. "schema": {
  8834. "type": "object",
  8835. "properties": {
  8836. "id": {
  8837. "anyOf": [
  8838. {
  8839. "type": "string"
  8840. },
  8841. {
  8842. "type": "null"
  8843. }
  8844. ]
  8845. },
  8846. "event": {
  8847. "type": "string"
  8848. },
  8849. "data": {
  8850. "$ref": "#/components/schemas/V2EventJsonString"
  8851. }
  8852. },
  8853. "required": ["id", "event", "data"],
  8854. "additionalProperties": false
  8855. },
  8856. "x-effect-stream": {
  8857. "encoding": "sse",
  8858. "causeSchema": {
  8859. "type": "array",
  8860. "items": {
  8861. "anyOf": [
  8862. {
  8863. "type": "object",
  8864. "properties": {
  8865. "_tag": {
  8866. "type": "string",
  8867. "enum": ["Fail"]
  8868. },
  8869. "error": {
  8870. "not": {}
  8871. }
  8872. },
  8873. "required": ["_tag", "error"],
  8874. "additionalProperties": false
  8875. },
  8876. {
  8877. "type": "object",
  8878. "properties": {
  8879. "_tag": {
  8880. "type": "string",
  8881. "enum": ["Die"]
  8882. },
  8883. "defect": {}
  8884. },
  8885. "required": ["_tag", "defect"],
  8886. "additionalProperties": false
  8887. },
  8888. {
  8889. "type": "object",
  8890. "properties": {
  8891. "_tag": {
  8892. "type": "string",
  8893. "enum": ["Interrupt"]
  8894. },
  8895. "fiberId": {
  8896. "anyOf": [
  8897. {
  8898. "type": "number"
  8899. },
  8900. {
  8901. "type": "null"
  8902. }
  8903. ]
  8904. }
  8905. },
  8906. "required": ["_tag", "fiberId"],
  8907. "additionalProperties": false
  8908. }
  8909. ]
  8910. }
  8911. },
  8912. "errorSchema": {
  8913. "not": {}
  8914. },
  8915. "failureEvent": "effect/httpapi/stream/failure"
  8916. }
  8917. }
  8918. }
  8919. },
  8920. "400": {
  8921. "description": "InvalidRequestError",
  8922. "content": {
  8923. "application/json": {
  8924. "schema": {
  8925. "$ref": "#/components/schemas/InvalidRequestError"
  8926. }
  8927. }
  8928. }
  8929. },
  8930. "401": {
  8931. "description": "UnauthorizedError",
  8932. "content": {
  8933. "application/json": {
  8934. "schema": {
  8935. "$ref": "#/components/schemas/UnauthorizedError"
  8936. }
  8937. }
  8938. }
  8939. }
  8940. },
  8941. "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.",
  8942. "summary": "Subscribe to events"
  8943. }
  8944. },
  8945. "/api/pty": {
  8946. "get": {
  8947. "tags": ["pty"],
  8948. "operationId": "v2.pty.list",
  8949. "parameters": [
  8950. {
  8951. "name": "location",
  8952. "in": "query",
  8953. "schema": {
  8954. "anyOf": [
  8955. {
  8956. "type": "object",
  8957. "properties": {
  8958. "directory": {
  8959. "anyOf": [
  8960. {
  8961. "type": "string"
  8962. },
  8963. {
  8964. "type": "null"
  8965. }
  8966. ]
  8967. },
  8968. "workspace": {
  8969. "anyOf": [
  8970. {
  8971. "type": "string"
  8972. },
  8973. {
  8974. "type": "null"
  8975. }
  8976. ]
  8977. }
  8978. },
  8979. "additionalProperties": false
  8980. },
  8981. {
  8982. "type": "null"
  8983. }
  8984. ]
  8985. },
  8986. "required": false,
  8987. "style": "deepObject",
  8988. "explode": true
  8989. }
  8990. ],
  8991. "security": [],
  8992. "responses": {
  8993. "200": {
  8994. "description": "Success",
  8995. "content": {
  8996. "application/json": {
  8997. "schema": {
  8998. "type": "object",
  8999. "properties": {
  9000. "location": {
  9001. "$ref": "#/components/schemas/Location.Info"
  9002. },
  9003. "data": {
  9004. "type": "array",
  9005. "items": {
  9006. "$ref": "#/components/schemas/Pty"
  9007. }
  9008. }
  9009. },
  9010. "required": ["location", "data"],
  9011. "additionalProperties": false
  9012. }
  9013. }
  9014. }
  9015. },
  9016. "400": {
  9017. "description": "InvalidRequestError",
  9018. "content": {
  9019. "application/json": {
  9020. "schema": {
  9021. "$ref": "#/components/schemas/InvalidRequestError"
  9022. }
  9023. }
  9024. }
  9025. },
  9026. "401": {
  9027. "description": "UnauthorizedError",
  9028. "content": {
  9029. "application/json": {
  9030. "schema": {
  9031. "$ref": "#/components/schemas/UnauthorizedError"
  9032. }
  9033. }
  9034. }
  9035. }
  9036. },
  9037. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  9038. "summary": "List PTY sessions"
  9039. },
  9040. "post": {
  9041. "tags": ["pty"],
  9042. "operationId": "v2.pty.create",
  9043. "parameters": [
  9044. {
  9045. "name": "location",
  9046. "in": "query",
  9047. "schema": {
  9048. "anyOf": [
  9049. {
  9050. "type": "object",
  9051. "properties": {
  9052. "directory": {
  9053. "anyOf": [
  9054. {
  9055. "type": "string"
  9056. },
  9057. {
  9058. "type": "null"
  9059. }
  9060. ]
  9061. },
  9062. "workspace": {
  9063. "anyOf": [
  9064. {
  9065. "type": "string"
  9066. },
  9067. {
  9068. "type": "null"
  9069. }
  9070. ]
  9071. }
  9072. },
  9073. "additionalProperties": false
  9074. },
  9075. {
  9076. "type": "null"
  9077. }
  9078. ]
  9079. },
  9080. "required": false,
  9081. "style": "deepObject",
  9082. "explode": true
  9083. }
  9084. ],
  9085. "security": [],
  9086. "responses": {
  9087. "200": {
  9088. "description": "Success",
  9089. "content": {
  9090. "application/json": {
  9091. "schema": {
  9092. "type": "object",
  9093. "properties": {
  9094. "location": {
  9095. "$ref": "#/components/schemas/Location.Info"
  9096. },
  9097. "data": {
  9098. "$ref": "#/components/schemas/Pty"
  9099. }
  9100. },
  9101. "required": ["location", "data"],
  9102. "additionalProperties": false
  9103. }
  9104. }
  9105. }
  9106. },
  9107. "400": {
  9108. "description": "InvalidRequestError",
  9109. "content": {
  9110. "application/json": {
  9111. "schema": {
  9112. "$ref": "#/components/schemas/InvalidRequestError"
  9113. }
  9114. }
  9115. }
  9116. },
  9117. "401": {
  9118. "description": "UnauthorizedError",
  9119. "content": {
  9120. "application/json": {
  9121. "schema": {
  9122. "$ref": "#/components/schemas/UnauthorizedError"
  9123. }
  9124. }
  9125. }
  9126. }
  9127. },
  9128. "description": "Create a pseudo-terminal session for a location.",
  9129. "summary": "Create PTY session",
  9130. "requestBody": {
  9131. "content": {
  9132. "application/json": {
  9133. "schema": {
  9134. "type": "object",
  9135. "properties": {
  9136. "command": {
  9137. "type": "string"
  9138. },
  9139. "args": {
  9140. "type": "array",
  9141. "items": {
  9142. "type": "string"
  9143. }
  9144. },
  9145. "cwd": {
  9146. "type": "string"
  9147. },
  9148. "title": {
  9149. "type": "string"
  9150. },
  9151. "env": {
  9152. "type": "object",
  9153. "additionalProperties": {
  9154. "type": "string"
  9155. }
  9156. }
  9157. },
  9158. "additionalProperties": false
  9159. }
  9160. }
  9161. },
  9162. "required": true
  9163. }
  9164. }
  9165. },
  9166. "/api/pty/{ptyID}": {
  9167. "get": {
  9168. "tags": ["pty"],
  9169. "operationId": "v2.pty.get",
  9170. "parameters": [
  9171. {
  9172. "name": "ptyID",
  9173. "in": "path",
  9174. "schema": {
  9175. "type": "string",
  9176. "allOf": [
  9177. {
  9178. "pattern": "^pty"
  9179. }
  9180. ]
  9181. },
  9182. "required": true
  9183. },
  9184. {
  9185. "name": "location",
  9186. "in": "query",
  9187. "schema": {
  9188. "anyOf": [
  9189. {
  9190. "type": "object",
  9191. "properties": {
  9192. "directory": {
  9193. "anyOf": [
  9194. {
  9195. "type": "string"
  9196. },
  9197. {
  9198. "type": "null"
  9199. }
  9200. ]
  9201. },
  9202. "workspace": {
  9203. "anyOf": [
  9204. {
  9205. "type": "string"
  9206. },
  9207. {
  9208. "type": "null"
  9209. }
  9210. ]
  9211. }
  9212. },
  9213. "additionalProperties": false
  9214. },
  9215. {
  9216. "type": "null"
  9217. }
  9218. ]
  9219. },
  9220. "required": false,
  9221. "style": "deepObject",
  9222. "explode": true
  9223. }
  9224. ],
  9225. "security": [],
  9226. "responses": {
  9227. "200": {
  9228. "description": "Success",
  9229. "content": {
  9230. "application/json": {
  9231. "schema": {
  9232. "type": "object",
  9233. "properties": {
  9234. "location": {
  9235. "$ref": "#/components/schemas/Location.Info"
  9236. },
  9237. "data": {
  9238. "$ref": "#/components/schemas/Pty"
  9239. }
  9240. },
  9241. "required": ["location", "data"],
  9242. "additionalProperties": false
  9243. }
  9244. }
  9245. }
  9246. },
  9247. "400": {
  9248. "description": "InvalidRequestError",
  9249. "content": {
  9250. "application/json": {
  9251. "schema": {
  9252. "$ref": "#/components/schemas/InvalidRequestError"
  9253. }
  9254. }
  9255. }
  9256. },
  9257. "401": {
  9258. "description": "UnauthorizedError",
  9259. "content": {
  9260. "application/json": {
  9261. "schema": {
  9262. "$ref": "#/components/schemas/UnauthorizedError"
  9263. }
  9264. }
  9265. }
  9266. },
  9267. "404": {
  9268. "description": "PtyNotFoundError",
  9269. "content": {
  9270. "application/json": {
  9271. "schema": {
  9272. "$ref": "#/components/schemas/PtyNotFoundError"
  9273. }
  9274. }
  9275. }
  9276. }
  9277. },
  9278. "description": "Get one PTY session, including its exit code once exited.",
  9279. "summary": "Get PTY session"
  9280. },
  9281. "put": {
  9282. "tags": ["pty"],
  9283. "operationId": "v2.pty.update",
  9284. "parameters": [
  9285. {
  9286. "name": "ptyID",
  9287. "in": "path",
  9288. "schema": {
  9289. "type": "string",
  9290. "allOf": [
  9291. {
  9292. "pattern": "^pty"
  9293. }
  9294. ]
  9295. },
  9296. "required": true
  9297. },
  9298. {
  9299. "name": "location",
  9300. "in": "query",
  9301. "schema": {
  9302. "anyOf": [
  9303. {
  9304. "type": "object",
  9305. "properties": {
  9306. "directory": {
  9307. "anyOf": [
  9308. {
  9309. "type": "string"
  9310. },
  9311. {
  9312. "type": "null"
  9313. }
  9314. ]
  9315. },
  9316. "workspace": {
  9317. "anyOf": [
  9318. {
  9319. "type": "string"
  9320. },
  9321. {
  9322. "type": "null"
  9323. }
  9324. ]
  9325. }
  9326. },
  9327. "additionalProperties": false
  9328. },
  9329. {
  9330. "type": "null"
  9331. }
  9332. ]
  9333. },
  9334. "required": false,
  9335. "style": "deepObject",
  9336. "explode": true
  9337. }
  9338. ],
  9339. "security": [],
  9340. "responses": {
  9341. "200": {
  9342. "description": "Success",
  9343. "content": {
  9344. "application/json": {
  9345. "schema": {
  9346. "type": "object",
  9347. "properties": {
  9348. "location": {
  9349. "$ref": "#/components/schemas/Location.Info"
  9350. },
  9351. "data": {
  9352. "$ref": "#/components/schemas/Pty"
  9353. }
  9354. },
  9355. "required": ["location", "data"],
  9356. "additionalProperties": false
  9357. }
  9358. }
  9359. }
  9360. },
  9361. "400": {
  9362. "description": "InvalidRequestError",
  9363. "content": {
  9364. "application/json": {
  9365. "schema": {
  9366. "$ref": "#/components/schemas/InvalidRequestError"
  9367. }
  9368. }
  9369. }
  9370. },
  9371. "401": {
  9372. "description": "UnauthorizedError",
  9373. "content": {
  9374. "application/json": {
  9375. "schema": {
  9376. "$ref": "#/components/schemas/UnauthorizedError"
  9377. }
  9378. }
  9379. }
  9380. },
  9381. "404": {
  9382. "description": "PtyNotFoundError",
  9383. "content": {
  9384. "application/json": {
  9385. "schema": {
  9386. "$ref": "#/components/schemas/PtyNotFoundError"
  9387. }
  9388. }
  9389. }
  9390. }
  9391. },
  9392. "description": "Update the title or viewport size of one PTY session.",
  9393. "summary": "Update PTY session",
  9394. "requestBody": {
  9395. "content": {
  9396. "application/json": {
  9397. "schema": {
  9398. "type": "object",
  9399. "properties": {
  9400. "title": {
  9401. "type": "string"
  9402. },
  9403. "size": {
  9404. "type": "object",
  9405. "properties": {
  9406. "rows": {
  9407. "type": "integer",
  9408. "allOf": [
  9409. {
  9410. "exclusiveMinimum": 0
  9411. }
  9412. ]
  9413. },
  9414. "cols": {
  9415. "type": "integer",
  9416. "allOf": [
  9417. {
  9418. "exclusiveMinimum": 0
  9419. }
  9420. ]
  9421. }
  9422. },
  9423. "required": ["rows", "cols"],
  9424. "additionalProperties": false
  9425. }
  9426. },
  9427. "additionalProperties": false
  9428. }
  9429. }
  9430. },
  9431. "required": true
  9432. }
  9433. },
  9434. "delete": {
  9435. "tags": ["pty"],
  9436. "operationId": "v2.pty.remove",
  9437. "parameters": [
  9438. {
  9439. "name": "ptyID",
  9440. "in": "path",
  9441. "schema": {
  9442. "type": "string",
  9443. "allOf": [
  9444. {
  9445. "pattern": "^pty"
  9446. }
  9447. ]
  9448. },
  9449. "required": true
  9450. },
  9451. {
  9452. "name": "location",
  9453. "in": "query",
  9454. "schema": {
  9455. "anyOf": [
  9456. {
  9457. "type": "object",
  9458. "properties": {
  9459. "directory": {
  9460. "anyOf": [
  9461. {
  9462. "type": "string"
  9463. },
  9464. {
  9465. "type": "null"
  9466. }
  9467. ]
  9468. },
  9469. "workspace": {
  9470. "anyOf": [
  9471. {
  9472. "type": "string"
  9473. },
  9474. {
  9475. "type": "null"
  9476. }
  9477. ]
  9478. }
  9479. },
  9480. "additionalProperties": false
  9481. },
  9482. {
  9483. "type": "null"
  9484. }
  9485. ]
  9486. },
  9487. "required": false,
  9488. "style": "deepObject",
  9489. "explode": true
  9490. }
  9491. ],
  9492. "security": [],
  9493. "responses": {
  9494. "204": {
  9495. "description": "<No Content>"
  9496. },
  9497. "400": {
  9498. "description": "InvalidRequestError",
  9499. "content": {
  9500. "application/json": {
  9501. "schema": {
  9502. "$ref": "#/components/schemas/InvalidRequestError"
  9503. }
  9504. }
  9505. }
  9506. },
  9507. "401": {
  9508. "description": "UnauthorizedError",
  9509. "content": {
  9510. "application/json": {
  9511. "schema": {
  9512. "$ref": "#/components/schemas/UnauthorizedError"
  9513. }
  9514. }
  9515. }
  9516. },
  9517. "404": {
  9518. "description": "PtyNotFoundError",
  9519. "content": {
  9520. "application/json": {
  9521. "schema": {
  9522. "$ref": "#/components/schemas/PtyNotFoundError"
  9523. }
  9524. }
  9525. }
  9526. }
  9527. },
  9528. "description": "Terminate and remove one PTY session.",
  9529. "summary": "Remove PTY session"
  9530. }
  9531. },
  9532. "/api/pty/{ptyID}/connect-token": {
  9533. "post": {
  9534. "tags": ["pty"],
  9535. "operationId": "v2.pty.connect.token",
  9536. "parameters": [
  9537. {
  9538. "name": "ptyID",
  9539. "in": "path",
  9540. "schema": {
  9541. "type": "string",
  9542. "allOf": [
  9543. {
  9544. "pattern": "^pty"
  9545. }
  9546. ]
  9547. },
  9548. "required": true
  9549. },
  9550. {
  9551. "name": "location",
  9552. "in": "query",
  9553. "schema": {
  9554. "anyOf": [
  9555. {
  9556. "type": "object",
  9557. "properties": {
  9558. "directory": {
  9559. "anyOf": [
  9560. {
  9561. "type": "string"
  9562. },
  9563. {
  9564. "type": "null"
  9565. }
  9566. ]
  9567. },
  9568. "workspace": {
  9569. "anyOf": [
  9570. {
  9571. "type": "string"
  9572. },
  9573. {
  9574. "type": "null"
  9575. }
  9576. ]
  9577. }
  9578. },
  9579. "additionalProperties": false
  9580. },
  9581. {
  9582. "type": "null"
  9583. }
  9584. ]
  9585. },
  9586. "required": false,
  9587. "style": "deepObject",
  9588. "explode": true
  9589. }
  9590. ],
  9591. "security": [],
  9592. "responses": {
  9593. "200": {
  9594. "description": "Success",
  9595. "content": {
  9596. "application/json": {
  9597. "schema": {
  9598. "type": "object",
  9599. "properties": {
  9600. "location": {
  9601. "$ref": "#/components/schemas/Location.Info"
  9602. },
  9603. "data": {
  9604. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9605. }
  9606. },
  9607. "required": ["location", "data"],
  9608. "additionalProperties": false
  9609. }
  9610. }
  9611. }
  9612. },
  9613. "400": {
  9614. "description": "InvalidRequestError",
  9615. "content": {
  9616. "application/json": {
  9617. "schema": {
  9618. "$ref": "#/components/schemas/InvalidRequestError"
  9619. }
  9620. }
  9621. }
  9622. },
  9623. "401": {
  9624. "description": "UnauthorizedError",
  9625. "content": {
  9626. "application/json": {
  9627. "schema": {
  9628. "$ref": "#/components/schemas/UnauthorizedError"
  9629. }
  9630. }
  9631. }
  9632. },
  9633. "403": {
  9634. "description": "ForbiddenError",
  9635. "content": {
  9636. "application/json": {
  9637. "schema": {
  9638. "$ref": "#/components/schemas/ForbiddenError"
  9639. }
  9640. }
  9641. }
  9642. },
  9643. "404": {
  9644. "description": "PtyNotFoundError",
  9645. "content": {
  9646. "application/json": {
  9647. "schema": {
  9648. "$ref": "#/components/schemas/PtyNotFoundError"
  9649. }
  9650. }
  9651. }
  9652. }
  9653. },
  9654. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9655. "summary": "Create PTY WebSocket token"
  9656. }
  9657. },
  9658. "/api/pty/{ptyID}/connect": {
  9659. "get": {
  9660. "tags": ["pty"],
  9661. "operationId": "v2.pty.connect",
  9662. "parameters": [
  9663. {
  9664. "name": "ptyID",
  9665. "in": "path",
  9666. "schema": {
  9667. "type": "string",
  9668. "allOf": [
  9669. {
  9670. "pattern": "^pty"
  9671. }
  9672. ]
  9673. },
  9674. "required": true
  9675. },
  9676. {
  9677. "in": "query",
  9678. "name": "location[directory]",
  9679. "schema": {
  9680. "type": "string"
  9681. }
  9682. },
  9683. {
  9684. "in": "query",
  9685. "name": "location[workspace]",
  9686. "schema": {
  9687. "type": "string"
  9688. }
  9689. },
  9690. {
  9691. "in": "query",
  9692. "name": "cursor",
  9693. "schema": {
  9694. "type": "string"
  9695. }
  9696. },
  9697. {
  9698. "in": "query",
  9699. "name": "ticket",
  9700. "schema": {
  9701. "type": "string"
  9702. }
  9703. }
  9704. ],
  9705. "security": [],
  9706. "responses": {
  9707. "200": {
  9708. "description": "Success",
  9709. "content": {
  9710. "application/json": {
  9711. "schema": {
  9712. "type": "boolean"
  9713. }
  9714. }
  9715. }
  9716. },
  9717. "400": {
  9718. "description": "InvalidRequestError",
  9719. "content": {
  9720. "application/json": {
  9721. "schema": {
  9722. "$ref": "#/components/schemas/InvalidRequestError"
  9723. }
  9724. }
  9725. }
  9726. },
  9727. "401": {
  9728. "description": "UnauthorizedError",
  9729. "content": {
  9730. "application/json": {
  9731. "schema": {
  9732. "$ref": "#/components/schemas/UnauthorizedError"
  9733. }
  9734. }
  9735. }
  9736. },
  9737. "403": {
  9738. "description": "ForbiddenError",
  9739. "content": {
  9740. "application/json": {
  9741. "schema": {
  9742. "$ref": "#/components/schemas/ForbiddenError"
  9743. }
  9744. }
  9745. }
  9746. },
  9747. "404": {
  9748. "description": "PtyNotFoundError",
  9749. "content": {
  9750. "application/json": {
  9751. "schema": {
  9752. "$ref": "#/components/schemas/PtyNotFoundError"
  9753. }
  9754. }
  9755. }
  9756. }
  9757. },
  9758. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9759. "summary": "Connect to PTY session",
  9760. "x-websocket": true
  9761. }
  9762. },
  9763. "/api/shell": {
  9764. "get": {
  9765. "tags": ["shell"],
  9766. "operationId": "v2.shell.list",
  9767. "parameters": [
  9768. {
  9769. "name": "location",
  9770. "in": "query",
  9771. "schema": {
  9772. "anyOf": [
  9773. {
  9774. "type": "object",
  9775. "properties": {
  9776. "directory": {
  9777. "anyOf": [
  9778. {
  9779. "type": "string"
  9780. },
  9781. {
  9782. "type": "null"
  9783. }
  9784. ]
  9785. },
  9786. "workspace": {
  9787. "anyOf": [
  9788. {
  9789. "type": "string"
  9790. },
  9791. {
  9792. "type": "null"
  9793. }
  9794. ]
  9795. }
  9796. },
  9797. "additionalProperties": false
  9798. },
  9799. {
  9800. "type": "null"
  9801. }
  9802. ]
  9803. },
  9804. "required": false,
  9805. "style": "deepObject",
  9806. "explode": true
  9807. }
  9808. ],
  9809. "security": [],
  9810. "responses": {
  9811. "200": {
  9812. "description": "Success",
  9813. "content": {
  9814. "application/json": {
  9815. "schema": {
  9816. "type": "object",
  9817. "properties": {
  9818. "location": {
  9819. "$ref": "#/components/schemas/Location.Info"
  9820. },
  9821. "data": {
  9822. "type": "array",
  9823. "items": {
  9824. "$ref": "#/components/schemas/Shell.Info1"
  9825. }
  9826. }
  9827. },
  9828. "required": ["location", "data"],
  9829. "additionalProperties": false
  9830. }
  9831. }
  9832. }
  9833. },
  9834. "400": {
  9835. "description": "InvalidRequestError",
  9836. "content": {
  9837. "application/json": {
  9838. "schema": {
  9839. "$ref": "#/components/schemas/InvalidRequestError"
  9840. }
  9841. }
  9842. }
  9843. },
  9844. "401": {
  9845. "description": "UnauthorizedError",
  9846. "content": {
  9847. "application/json": {
  9848. "schema": {
  9849. "$ref": "#/components/schemas/UnauthorizedError"
  9850. }
  9851. }
  9852. }
  9853. }
  9854. },
  9855. "description": "List currently running shell commands for a location. Exited commands are not included.",
  9856. "summary": "List running shell commands"
  9857. },
  9858. "post": {
  9859. "tags": ["shell"],
  9860. "operationId": "v2.shell.create",
  9861. "parameters": [
  9862. {
  9863. "name": "location",
  9864. "in": "query",
  9865. "schema": {
  9866. "anyOf": [
  9867. {
  9868. "type": "object",
  9869. "properties": {
  9870. "directory": {
  9871. "anyOf": [
  9872. {
  9873. "type": "string"
  9874. },
  9875. {
  9876. "type": "null"
  9877. }
  9878. ]
  9879. },
  9880. "workspace": {
  9881. "anyOf": [
  9882. {
  9883. "type": "string"
  9884. },
  9885. {
  9886. "type": "null"
  9887. }
  9888. ]
  9889. }
  9890. },
  9891. "additionalProperties": false
  9892. },
  9893. {
  9894. "type": "null"
  9895. }
  9896. ]
  9897. },
  9898. "required": false,
  9899. "style": "deepObject",
  9900. "explode": true
  9901. }
  9902. ],
  9903. "security": [],
  9904. "responses": {
  9905. "200": {
  9906. "description": "Success",
  9907. "content": {
  9908. "application/json": {
  9909. "schema": {
  9910. "type": "object",
  9911. "properties": {
  9912. "location": {
  9913. "$ref": "#/components/schemas/Location.Info"
  9914. },
  9915. "data": {
  9916. "$ref": "#/components/schemas/Shell.Info1"
  9917. }
  9918. },
  9919. "required": ["location", "data"],
  9920. "additionalProperties": false
  9921. }
  9922. }
  9923. }
  9924. },
  9925. "400": {
  9926. "description": "InvalidRequestError",
  9927. "content": {
  9928. "application/json": {
  9929. "schema": {
  9930. "$ref": "#/components/schemas/InvalidRequestError"
  9931. }
  9932. }
  9933. }
  9934. },
  9935. "401": {
  9936. "description": "UnauthorizedError",
  9937. "content": {
  9938. "application/json": {
  9939. "schema": {
  9940. "$ref": "#/components/schemas/UnauthorizedError"
  9941. }
  9942. }
  9943. }
  9944. }
  9945. },
  9946. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9947. "summary": "Run shell command",
  9948. "requestBody": {
  9949. "content": {
  9950. "application/json": {
  9951. "schema": {
  9952. "type": "object",
  9953. "properties": {
  9954. "command": {
  9955. "type": "string"
  9956. },
  9957. "cwd": {
  9958. "type": "string"
  9959. },
  9960. "timeout": {
  9961. "type": "integer",
  9962. "allOf": [
  9963. {
  9964. "minimum": 0
  9965. }
  9966. ]
  9967. },
  9968. "metadata": {
  9969. "type": "object"
  9970. }
  9971. },
  9972. "required": ["command", "timeout"],
  9973. "additionalProperties": false
  9974. }
  9975. }
  9976. },
  9977. "required": true
  9978. }
  9979. }
  9980. },
  9981. "/api/shell/{id}": {
  9982. "get": {
  9983. "tags": ["shell"],
  9984. "operationId": "v2.shell.get",
  9985. "parameters": [
  9986. {
  9987. "name": "id",
  9988. "in": "path",
  9989. "schema": {
  9990. "type": "string",
  9991. "allOf": [
  9992. {
  9993. "pattern": "^sh_"
  9994. }
  9995. ]
  9996. },
  9997. "required": true
  9998. },
  9999. {
  10000. "name": "location",
  10001. "in": "query",
  10002. "schema": {
  10003. "anyOf": [
  10004. {
  10005. "type": "object",
  10006. "properties": {
  10007. "directory": {
  10008. "anyOf": [
  10009. {
  10010. "type": "string"
  10011. },
  10012. {
  10013. "type": "null"
  10014. }
  10015. ]
  10016. },
  10017. "workspace": {
  10018. "anyOf": [
  10019. {
  10020. "type": "string"
  10021. },
  10022. {
  10023. "type": "null"
  10024. }
  10025. ]
  10026. }
  10027. },
  10028. "additionalProperties": false
  10029. },
  10030. {
  10031. "type": "null"
  10032. }
  10033. ]
  10034. },
  10035. "required": false,
  10036. "style": "deepObject",
  10037. "explode": true
  10038. }
  10039. ],
  10040. "security": [],
  10041. "responses": {
  10042. "200": {
  10043. "description": "Success",
  10044. "content": {
  10045. "application/json": {
  10046. "schema": {
  10047. "type": "object",
  10048. "properties": {
  10049. "location": {
  10050. "$ref": "#/components/schemas/Location.Info"
  10051. },
  10052. "data": {
  10053. "$ref": "#/components/schemas/Shell.Info1"
  10054. }
  10055. },
  10056. "required": ["location", "data"],
  10057. "additionalProperties": false
  10058. }
  10059. }
  10060. }
  10061. },
  10062. "400": {
  10063. "description": "InvalidRequestError",
  10064. "content": {
  10065. "application/json": {
  10066. "schema": {
  10067. "$ref": "#/components/schemas/InvalidRequestError"
  10068. }
  10069. }
  10070. }
  10071. },
  10072. "401": {
  10073. "description": "UnauthorizedError",
  10074. "content": {
  10075. "application/json": {
  10076. "schema": {
  10077. "$ref": "#/components/schemas/UnauthorizedError"
  10078. }
  10079. }
  10080. }
  10081. },
  10082. "404": {
  10083. "description": "ShellNotFoundError",
  10084. "content": {
  10085. "application/json": {
  10086. "schema": {
  10087. "$ref": "#/components/schemas/ShellNotFoundError"
  10088. }
  10089. }
  10090. }
  10091. }
  10092. },
  10093. "description": "Get one shell command, including its status and exit code once exited.",
  10094. "summary": "Get shell command"
  10095. },
  10096. "delete": {
  10097. "tags": ["shell"],
  10098. "operationId": "v2.shell.remove",
  10099. "parameters": [
  10100. {
  10101. "name": "id",
  10102. "in": "path",
  10103. "schema": {
  10104. "type": "string",
  10105. "allOf": [
  10106. {
  10107. "pattern": "^sh_"
  10108. }
  10109. ]
  10110. },
  10111. "required": true
  10112. },
  10113. {
  10114. "name": "location",
  10115. "in": "query",
  10116. "schema": {
  10117. "anyOf": [
  10118. {
  10119. "type": "object",
  10120. "properties": {
  10121. "directory": {
  10122. "anyOf": [
  10123. {
  10124. "type": "string"
  10125. },
  10126. {
  10127. "type": "null"
  10128. }
  10129. ]
  10130. },
  10131. "workspace": {
  10132. "anyOf": [
  10133. {
  10134. "type": "string"
  10135. },
  10136. {
  10137. "type": "null"
  10138. }
  10139. ]
  10140. }
  10141. },
  10142. "additionalProperties": false
  10143. },
  10144. {
  10145. "type": "null"
  10146. }
  10147. ]
  10148. },
  10149. "required": false,
  10150. "style": "deepObject",
  10151. "explode": true
  10152. }
  10153. ],
  10154. "security": [],
  10155. "responses": {
  10156. "204": {
  10157. "description": "<No Content>"
  10158. },
  10159. "400": {
  10160. "description": "InvalidRequestError",
  10161. "content": {
  10162. "application/json": {
  10163. "schema": {
  10164. "$ref": "#/components/schemas/InvalidRequestError"
  10165. }
  10166. }
  10167. }
  10168. },
  10169. "401": {
  10170. "description": "UnauthorizedError",
  10171. "content": {
  10172. "application/json": {
  10173. "schema": {
  10174. "$ref": "#/components/schemas/UnauthorizedError"
  10175. }
  10176. }
  10177. }
  10178. },
  10179. "404": {
  10180. "description": "ShellNotFoundError",
  10181. "content": {
  10182. "application/json": {
  10183. "schema": {
  10184. "$ref": "#/components/schemas/ShellNotFoundError"
  10185. }
  10186. }
  10187. }
  10188. }
  10189. },
  10190. "description": "Terminate and remove one shell command and its retained output.",
  10191. "summary": "Remove shell command"
  10192. }
  10193. },
  10194. "/api/shell/{id}/timeout": {
  10195. "patch": {
  10196. "tags": ["shell"],
  10197. "operationId": "v2.shell.timeout",
  10198. "parameters": [
  10199. {
  10200. "name": "id",
  10201. "in": "path",
  10202. "schema": {
  10203. "type": "string",
  10204. "allOf": [
  10205. {
  10206. "pattern": "^sh_"
  10207. }
  10208. ]
  10209. },
  10210. "required": true
  10211. },
  10212. {
  10213. "name": "location",
  10214. "in": "query",
  10215. "schema": {
  10216. "anyOf": [
  10217. {
  10218. "type": "object",
  10219. "properties": {
  10220. "directory": {
  10221. "anyOf": [
  10222. {
  10223. "type": "string"
  10224. },
  10225. {
  10226. "type": "null"
  10227. }
  10228. ]
  10229. },
  10230. "workspace": {
  10231. "anyOf": [
  10232. {
  10233. "type": "string"
  10234. },
  10235. {
  10236. "type": "null"
  10237. }
  10238. ]
  10239. }
  10240. },
  10241. "additionalProperties": false
  10242. },
  10243. {
  10244. "type": "null"
  10245. }
  10246. ]
  10247. },
  10248. "required": false,
  10249. "style": "deepObject",
  10250. "explode": true
  10251. }
  10252. ],
  10253. "security": [],
  10254. "responses": {
  10255. "200": {
  10256. "description": "Success",
  10257. "content": {
  10258. "application/json": {
  10259. "schema": {
  10260. "type": "object",
  10261. "properties": {
  10262. "location": {
  10263. "$ref": "#/components/schemas/Location.Info"
  10264. },
  10265. "data": {
  10266. "$ref": "#/components/schemas/Shell.Info1"
  10267. }
  10268. },
  10269. "required": ["location", "data"],
  10270. "additionalProperties": false
  10271. }
  10272. }
  10273. }
  10274. },
  10275. "400": {
  10276. "description": "InvalidRequestError",
  10277. "content": {
  10278. "application/json": {
  10279. "schema": {
  10280. "$ref": "#/components/schemas/InvalidRequestError"
  10281. }
  10282. }
  10283. }
  10284. },
  10285. "401": {
  10286. "description": "UnauthorizedError",
  10287. "content": {
  10288. "application/json": {
  10289. "schema": {
  10290. "$ref": "#/components/schemas/UnauthorizedError"
  10291. }
  10292. }
  10293. }
  10294. },
  10295. "404": {
  10296. "description": "ShellNotFoundError",
  10297. "content": {
  10298. "application/json": {
  10299. "schema": {
  10300. "$ref": "#/components/schemas/ShellNotFoundError"
  10301. }
  10302. }
  10303. }
  10304. }
  10305. },
  10306. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10307. "summary": "Update shell timeout",
  10308. "requestBody": {
  10309. "content": {
  10310. "application/json": {
  10311. "schema": {
  10312. "type": "object",
  10313. "properties": {
  10314. "timeout": {
  10315. "type": "integer",
  10316. "allOf": [
  10317. {
  10318. "minimum": 0
  10319. }
  10320. ]
  10321. }
  10322. },
  10323. "required": ["timeout"],
  10324. "additionalProperties": false
  10325. }
  10326. }
  10327. },
  10328. "required": true
  10329. }
  10330. }
  10331. },
  10332. "/api/shell/{id}/output": {
  10333. "get": {
  10334. "tags": ["shell"],
  10335. "operationId": "v2.shell.output",
  10336. "parameters": [
  10337. {
  10338. "name": "id",
  10339. "in": "path",
  10340. "schema": {
  10341. "type": "string",
  10342. "allOf": [
  10343. {
  10344. "pattern": "^sh_"
  10345. }
  10346. ]
  10347. },
  10348. "required": true
  10349. },
  10350. {
  10351. "name": "location",
  10352. "in": "query",
  10353. "schema": {
  10354. "anyOf": [
  10355. {
  10356. "type": "object",
  10357. "properties": {
  10358. "directory": {
  10359. "anyOf": [
  10360. {
  10361. "type": "string"
  10362. },
  10363. {
  10364. "type": "null"
  10365. }
  10366. ]
  10367. },
  10368. "workspace": {
  10369. "anyOf": [
  10370. {
  10371. "type": "string"
  10372. },
  10373. {
  10374. "type": "null"
  10375. }
  10376. ]
  10377. }
  10378. },
  10379. "additionalProperties": false
  10380. },
  10381. {
  10382. "type": "null"
  10383. }
  10384. ]
  10385. },
  10386. "required": false,
  10387. "style": "deepObject",
  10388. "explode": true
  10389. },
  10390. {
  10391. "name": "cursor",
  10392. "in": "query",
  10393. "schema": {
  10394. "type": "string",
  10395. "allOf": [
  10396. {
  10397. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10398. }
  10399. ]
  10400. },
  10401. "required": false
  10402. },
  10403. {
  10404. "name": "limit",
  10405. "in": "query",
  10406. "schema": {
  10407. "type": "string",
  10408. "allOf": [
  10409. {
  10410. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10411. }
  10412. ]
  10413. },
  10414. "required": false
  10415. }
  10416. ],
  10417. "security": [],
  10418. "responses": {
  10419. "200": {
  10420. "description": "Success",
  10421. "content": {
  10422. "application/json": {
  10423. "schema": {
  10424. "type": "object",
  10425. "properties": {
  10426. "location": {
  10427. "$ref": "#/components/schemas/Location.Info"
  10428. },
  10429. "data": {
  10430. "type": "object",
  10431. "properties": {
  10432. "output": {
  10433. "type": "string"
  10434. },
  10435. "cursor": {
  10436. "type": "integer",
  10437. "allOf": [
  10438. {
  10439. "minimum": 0
  10440. }
  10441. ]
  10442. },
  10443. "size": {
  10444. "type": "integer",
  10445. "allOf": [
  10446. {
  10447. "minimum": 0
  10448. }
  10449. ]
  10450. },
  10451. "truncated": {
  10452. "type": "boolean"
  10453. }
  10454. },
  10455. "required": ["output", "cursor", "size", "truncated"],
  10456. "additionalProperties": false
  10457. }
  10458. },
  10459. "required": ["location", "data"],
  10460. "additionalProperties": false
  10461. }
  10462. }
  10463. }
  10464. },
  10465. "400": {
  10466. "description": "InvalidRequestError",
  10467. "content": {
  10468. "application/json": {
  10469. "schema": {
  10470. "$ref": "#/components/schemas/InvalidRequestError"
  10471. }
  10472. }
  10473. }
  10474. },
  10475. "401": {
  10476. "description": "UnauthorizedError",
  10477. "content": {
  10478. "application/json": {
  10479. "schema": {
  10480. "$ref": "#/components/schemas/UnauthorizedError"
  10481. }
  10482. }
  10483. }
  10484. },
  10485. "404": {
  10486. "description": "ShellNotFoundError",
  10487. "content": {
  10488. "application/json": {
  10489. "schema": {
  10490. "$ref": "#/components/schemas/ShellNotFoundError"
  10491. }
  10492. }
  10493. }
  10494. }
  10495. },
  10496. "description": "Page through captured combined output by absolute byte cursor.",
  10497. "summary": "Read shell output"
  10498. }
  10499. },
  10500. "/api/reference": {
  10501. "get": {
  10502. "tags": ["reference"],
  10503. "operationId": "v2.reference.list",
  10504. "parameters": [
  10505. {
  10506. "name": "location",
  10507. "in": "query",
  10508. "schema": {
  10509. "anyOf": [
  10510. {
  10511. "type": "object",
  10512. "properties": {
  10513. "directory": {
  10514. "anyOf": [
  10515. {
  10516. "type": "string"
  10517. },
  10518. {
  10519. "type": "null"
  10520. }
  10521. ]
  10522. },
  10523. "workspace": {
  10524. "anyOf": [
  10525. {
  10526. "type": "string"
  10527. },
  10528. {
  10529. "type": "null"
  10530. }
  10531. ]
  10532. }
  10533. },
  10534. "additionalProperties": false
  10535. },
  10536. {
  10537. "type": "null"
  10538. }
  10539. ]
  10540. },
  10541. "required": false,
  10542. "style": "deepObject",
  10543. "explode": true
  10544. }
  10545. ],
  10546. "security": [],
  10547. "responses": {
  10548. "200": {
  10549. "description": "Success",
  10550. "content": {
  10551. "application/json": {
  10552. "schema": {
  10553. "type": "object",
  10554. "properties": {
  10555. "location": {
  10556. "$ref": "#/components/schemas/Location.Info"
  10557. },
  10558. "data": {
  10559. "type": "array",
  10560. "items": {
  10561. "$ref": "#/components/schemas/Reference.Info"
  10562. }
  10563. }
  10564. },
  10565. "required": ["location", "data"],
  10566. "additionalProperties": false
  10567. }
  10568. }
  10569. }
  10570. },
  10571. "400": {
  10572. "description": "InvalidRequestError",
  10573. "content": {
  10574. "application/json": {
  10575. "schema": {
  10576. "$ref": "#/components/schemas/InvalidRequestError"
  10577. }
  10578. }
  10579. }
  10580. },
  10581. "401": {
  10582. "description": "UnauthorizedError",
  10583. "content": {
  10584. "application/json": {
  10585. "schema": {
  10586. "$ref": "#/components/schemas/UnauthorizedError"
  10587. }
  10588. }
  10589. }
  10590. }
  10591. },
  10592. "description": "List references available in the requested location.",
  10593. "summary": "List references"
  10594. }
  10595. },
  10596. "/api/worktree/{projectID}": {
  10597. "get": {
  10598. "tags": ["worktree"],
  10599. "operationId": "v2.worktree.list",
  10600. "parameters": [
  10601. {
  10602. "name": "projectID",
  10603. "in": "path",
  10604. "schema": {
  10605. "type": "string"
  10606. },
  10607. "required": true
  10608. }
  10609. ],
  10610. "security": [],
  10611. "responses": {
  10612. "200": {
  10613. "description": "Worktree.List",
  10614. "content": {
  10615. "application/json": {
  10616. "schema": {
  10617. "$ref": "#/components/schemas/Worktree.List"
  10618. }
  10619. }
  10620. }
  10621. },
  10622. "400": {
  10623. "description": "InvalidRequestError",
  10624. "content": {
  10625. "application/json": {
  10626. "schema": {
  10627. "$ref": "#/components/schemas/InvalidRequestError"
  10628. }
  10629. }
  10630. }
  10631. },
  10632. "401": {
  10633. "description": "UnauthorizedError",
  10634. "content": {
  10635. "application/json": {
  10636. "schema": {
  10637. "$ref": "#/components/schemas/UnauthorizedError"
  10638. }
  10639. }
  10640. }
  10641. }
  10642. },
  10643. "description": "List known local worktrees for a project.",
  10644. "summary": "List worktrees"
  10645. },
  10646. "post": {
  10647. "tags": ["worktree"],
  10648. "operationId": "v2.worktree.create",
  10649. "parameters": [
  10650. {
  10651. "name": "projectID",
  10652. "in": "path",
  10653. "schema": {
  10654. "type": "string"
  10655. },
  10656. "required": true
  10657. }
  10658. ],
  10659. "security": [],
  10660. "responses": {
  10661. "200": {
  10662. "description": "Worktree.Info",
  10663. "content": {
  10664. "application/json": {
  10665. "schema": {
  10666. "$ref": "#/components/schemas/Worktree.Info"
  10667. }
  10668. }
  10669. }
  10670. },
  10671. "400": {
  10672. "description": "WorktreeError | InvalidRequestError",
  10673. "content": {
  10674. "application/json": {
  10675. "schema": {
  10676. "anyOf": [
  10677. {
  10678. "$ref": "#/components/schemas/WorktreeError"
  10679. },
  10680. {
  10681. "$ref": "#/components/schemas/InvalidRequestError"
  10682. }
  10683. ]
  10684. }
  10685. }
  10686. }
  10687. },
  10688. "401": {
  10689. "description": "UnauthorizedError",
  10690. "content": {
  10691. "application/json": {
  10692. "schema": {
  10693. "$ref": "#/components/schemas/UnauthorizedError"
  10694. }
  10695. }
  10696. }
  10697. }
  10698. },
  10699. "description": "Create a worktree for a project.",
  10700. "summary": "Create worktree",
  10701. "requestBody": {
  10702. "content": {
  10703. "application/json": {
  10704. "schema": {
  10705. "type": "object",
  10706. "properties": {
  10707. "strategy": {
  10708. "type": "string"
  10709. },
  10710. "from": {
  10711. "type": "string"
  10712. },
  10713. "directory": {
  10714. "type": "string"
  10715. },
  10716. "name": {
  10717. "type": "string"
  10718. }
  10719. },
  10720. "required": ["strategy", "directory"],
  10721. "additionalProperties": false
  10722. }
  10723. }
  10724. },
  10725. "required": true
  10726. }
  10727. },
  10728. "delete": {
  10729. "tags": ["worktree"],
  10730. "operationId": "v2.worktree.remove",
  10731. "parameters": [
  10732. {
  10733. "name": "projectID",
  10734. "in": "path",
  10735. "schema": {
  10736. "type": "string"
  10737. },
  10738. "required": true
  10739. }
  10740. ],
  10741. "security": [],
  10742. "responses": {
  10743. "204": {
  10744. "description": "<No Content>"
  10745. },
  10746. "400": {
  10747. "description": "WorktreeError | InvalidRequestError",
  10748. "content": {
  10749. "application/json": {
  10750. "schema": {
  10751. "anyOf": [
  10752. {
  10753. "$ref": "#/components/schemas/WorktreeError"
  10754. },
  10755. {
  10756. "$ref": "#/components/schemas/InvalidRequestError"
  10757. }
  10758. ]
  10759. }
  10760. }
  10761. }
  10762. },
  10763. "401": {
  10764. "description": "UnauthorizedError",
  10765. "content": {
  10766. "application/json": {
  10767. "schema": {
  10768. "$ref": "#/components/schemas/UnauthorizedError"
  10769. }
  10770. }
  10771. }
  10772. }
  10773. },
  10774. "description": "Remove a managed worktree from a project.",
  10775. "summary": "Remove worktree",
  10776. "requestBody": {
  10777. "content": {
  10778. "application/json": {
  10779. "schema": {
  10780. "type": "object",
  10781. "properties": {
  10782. "directory": {
  10783. "type": "string"
  10784. },
  10785. "force": {
  10786. "type": "boolean"
  10787. }
  10788. },
  10789. "required": ["directory", "force"],
  10790. "additionalProperties": false
  10791. }
  10792. }
  10793. },
  10794. "required": true
  10795. }
  10796. }
  10797. },
  10798. "/api/worktree/{projectID}/refresh": {
  10799. "post": {
  10800. "tags": ["worktree"],
  10801. "operationId": "v2.worktree.refresh",
  10802. "parameters": [
  10803. {
  10804. "name": "projectID",
  10805. "in": "path",
  10806. "schema": {
  10807. "type": "string"
  10808. },
  10809. "required": true
  10810. }
  10811. ],
  10812. "security": [],
  10813. "responses": {
  10814. "204": {
  10815. "description": "<No Content>"
  10816. },
  10817. "400": {
  10818. "description": "WorktreeError | InvalidRequestError",
  10819. "content": {
  10820. "application/json": {
  10821. "schema": {
  10822. "anyOf": [
  10823. {
  10824. "$ref": "#/components/schemas/WorktreeError"
  10825. },
  10826. {
  10827. "$ref": "#/components/schemas/InvalidRequestError"
  10828. }
  10829. ]
  10830. }
  10831. }
  10832. }
  10833. },
  10834. "401": {
  10835. "description": "UnauthorizedError",
  10836. "content": {
  10837. "application/json": {
  10838. "schema": {
  10839. "$ref": "#/components/schemas/UnauthorizedError"
  10840. }
  10841. }
  10842. }
  10843. }
  10844. },
  10845. "description": "Reconcile stored worktrees with the project repositories.",
  10846. "summary": "Refresh worktrees"
  10847. }
  10848. },
  10849. "/api/vcs": {
  10850. "get": {
  10851. "tags": ["vcs"],
  10852. "operationId": "v2.vcs.get",
  10853. "parameters": [
  10854. {
  10855. "name": "location",
  10856. "in": "query",
  10857. "schema": {
  10858. "anyOf": [
  10859. {
  10860. "type": "object",
  10861. "properties": {
  10862. "directory": {
  10863. "anyOf": [
  10864. {
  10865. "type": "string"
  10866. },
  10867. {
  10868. "type": "null"
  10869. }
  10870. ]
  10871. },
  10872. "workspace": {
  10873. "anyOf": [
  10874. {
  10875. "type": "string"
  10876. },
  10877. {
  10878. "type": "null"
  10879. }
  10880. ]
  10881. }
  10882. },
  10883. "additionalProperties": false
  10884. },
  10885. {
  10886. "type": "null"
  10887. }
  10888. ]
  10889. },
  10890. "required": false,
  10891. "style": "deepObject",
  10892. "explode": true
  10893. }
  10894. ],
  10895. "security": [],
  10896. "responses": {
  10897. "200": {
  10898. "description": "Success",
  10899. "content": {
  10900. "application/json": {
  10901. "schema": {
  10902. "type": "object",
  10903. "properties": {
  10904. "location": {
  10905. "$ref": "#/components/schemas/Location.Info"
  10906. },
  10907. "data": {
  10908. "$ref": "#/components/schemas/Vcs.Info"
  10909. }
  10910. },
  10911. "required": ["location", "data"],
  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": "Get current and default branch information for the requested location.",
  10939. "summary": "VCS info"
  10940. }
  10941. },
  10942. "/api/vcs/status": {
  10943. "get": {
  10944. "tags": ["vcs"],
  10945. "operationId": "v2.vcs.status",
  10946. "parameters": [
  10947. {
  10948. "name": "location",
  10949. "in": "query",
  10950. "schema": {
  10951. "anyOf": [
  10952. {
  10953. "type": "object",
  10954. "properties": {
  10955. "directory": {
  10956. "anyOf": [
  10957. {
  10958. "type": "string"
  10959. },
  10960. {
  10961. "type": "null"
  10962. }
  10963. ]
  10964. },
  10965. "workspace": {
  10966. "anyOf": [
  10967. {
  10968. "type": "string"
  10969. },
  10970. {
  10971. "type": "null"
  10972. }
  10973. ]
  10974. }
  10975. },
  10976. "additionalProperties": false
  10977. },
  10978. {
  10979. "type": "null"
  10980. }
  10981. ]
  10982. },
  10983. "required": false,
  10984. "style": "deepObject",
  10985. "explode": true
  10986. }
  10987. ],
  10988. "security": [],
  10989. "responses": {
  10990. "200": {
  10991. "description": "Success",
  10992. "content": {
  10993. "application/json": {
  10994. "schema": {
  10995. "type": "object",
  10996. "properties": {
  10997. "location": {
  10998. "$ref": "#/components/schemas/Location.Info"
  10999. },
  11000. "data": {
  11001. "type": "array",
  11002. "items": {
  11003. "$ref": "#/components/schemas/Vcs.FileStatus"
  11004. }
  11005. }
  11006. },
  11007. "required": ["location", "data"],
  11008. "additionalProperties": false
  11009. }
  11010. }
  11011. }
  11012. },
  11013. "400": {
  11014. "description": "InvalidRequestError",
  11015. "content": {
  11016. "application/json": {
  11017. "schema": {
  11018. "$ref": "#/components/schemas/InvalidRequestError"
  11019. }
  11020. }
  11021. }
  11022. },
  11023. "401": {
  11024. "description": "UnauthorizedError",
  11025. "content": {
  11026. "application/json": {
  11027. "schema": {
  11028. "$ref": "#/components/schemas/UnauthorizedError"
  11029. }
  11030. }
  11031. }
  11032. }
  11033. },
  11034. "description": "List uncommitted working-copy changes relative to the requested location.",
  11035. "summary": "VCS status"
  11036. }
  11037. },
  11038. "/api/vcs/diff": {
  11039. "get": {
  11040. "tags": ["vcs"],
  11041. "operationId": "v2.vcs.diff",
  11042. "parameters": [
  11043. {
  11044. "name": "location",
  11045. "in": "query",
  11046. "schema": {
  11047. "anyOf": [
  11048. {
  11049. "type": "object",
  11050. "properties": {
  11051. "directory": {
  11052. "anyOf": [
  11053. {
  11054. "type": "string"
  11055. },
  11056. {
  11057. "type": "null"
  11058. }
  11059. ]
  11060. },
  11061. "workspace": {
  11062. "anyOf": [
  11063. {
  11064. "type": "string"
  11065. },
  11066. {
  11067. "type": "null"
  11068. }
  11069. ]
  11070. }
  11071. },
  11072. "additionalProperties": false
  11073. },
  11074. {
  11075. "type": "null"
  11076. }
  11077. ]
  11078. },
  11079. "required": false,
  11080. "style": "deepObject",
  11081. "explode": true
  11082. },
  11083. {
  11084. "name": "mode",
  11085. "in": "query",
  11086. "schema": {
  11087. "$ref": "#/components/schemas/Vcs.Mode"
  11088. },
  11089. "required": true
  11090. },
  11091. {
  11092. "name": "context",
  11093. "in": "query",
  11094. "schema": {
  11095. "anyOf": [
  11096. {
  11097. "type": "string"
  11098. },
  11099. {
  11100. "type": "null"
  11101. }
  11102. ]
  11103. },
  11104. "required": false
  11105. }
  11106. ],
  11107. "security": [],
  11108. "responses": {
  11109. "200": {
  11110. "description": "Success",
  11111. "content": {
  11112. "application/json": {
  11113. "schema": {
  11114. "type": "object",
  11115. "properties": {
  11116. "location": {
  11117. "$ref": "#/components/schemas/Location.Info"
  11118. },
  11119. "data": {
  11120. "type": "array",
  11121. "items": {
  11122. "$ref": "#/components/schemas/FileDiff.Info"
  11123. }
  11124. }
  11125. },
  11126. "required": ["location", "data"],
  11127. "additionalProperties": false
  11128. }
  11129. }
  11130. }
  11131. },
  11132. "400": {
  11133. "description": "InvalidRequestError",
  11134. "content": {
  11135. "application/json": {
  11136. "schema": {
  11137. "$ref": "#/components/schemas/InvalidRequestError"
  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. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11154. "summary": "VCS diff"
  11155. }
  11156. },
  11157. "/api/debug/location": {
  11158. "get": {
  11159. "tags": ["debug"],
  11160. "operationId": "v2.debug.location.list",
  11161. "parameters": [],
  11162. "security": [],
  11163. "responses": {
  11164. "200": {
  11165. "description": "Success",
  11166. "content": {
  11167. "application/json": {
  11168. "schema": {
  11169. "type": "array",
  11170. "items": {
  11171. "$ref": "#/components/schemas/Location.Ref"
  11172. }
  11173. }
  11174. }
  11175. }
  11176. },
  11177. "400": {
  11178. "description": "InvalidRequestError",
  11179. "content": {
  11180. "application/json": {
  11181. "schema": {
  11182. "$ref": "#/components/schemas/InvalidRequestError"
  11183. }
  11184. }
  11185. }
  11186. },
  11187. "401": {
  11188. "description": "UnauthorizedError",
  11189. "content": {
  11190. "application/json": {
  11191. "schema": {
  11192. "$ref": "#/components/schemas/UnauthorizedError"
  11193. }
  11194. }
  11195. }
  11196. }
  11197. },
  11198. "description": "List locations currently loaded by the server.",
  11199. "summary": "List loaded locations"
  11200. },
  11201. "delete": {
  11202. "tags": ["debug"],
  11203. "operationId": "v2.debug.location.evict",
  11204. "parameters": [
  11205. {
  11206. "name": "location",
  11207. "in": "query",
  11208. "schema": {
  11209. "anyOf": [
  11210. {
  11211. "type": "object",
  11212. "properties": {
  11213. "directory": {
  11214. "anyOf": [
  11215. {
  11216. "type": "string"
  11217. },
  11218. {
  11219. "type": "null"
  11220. }
  11221. ]
  11222. },
  11223. "workspace": {
  11224. "anyOf": [
  11225. {
  11226. "type": "string"
  11227. },
  11228. {
  11229. "type": "null"
  11230. }
  11231. ]
  11232. }
  11233. },
  11234. "additionalProperties": false
  11235. },
  11236. {
  11237. "type": "null"
  11238. }
  11239. ]
  11240. },
  11241. "required": false,
  11242. "style": "deepObject",
  11243. "explode": true
  11244. }
  11245. ],
  11246. "security": [],
  11247. "responses": {
  11248. "204": {
  11249. "description": "<No Content>"
  11250. },
  11251. "400": {
  11252. "description": "InvalidRequestError",
  11253. "content": {
  11254. "application/json": {
  11255. "schema": {
  11256. "$ref": "#/components/schemas/InvalidRequestError"
  11257. }
  11258. }
  11259. }
  11260. },
  11261. "401": {
  11262. "description": "UnauthorizedError",
  11263. "content": {
  11264. "application/json": {
  11265. "schema": {
  11266. "$ref": "#/components/schemas/UnauthorizedError"
  11267. }
  11268. }
  11269. }
  11270. }
  11271. },
  11272. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11273. "summary": "Evict a loaded location"
  11274. }
  11275. },
  11276. "/api/experimental/migration/v1": {
  11277. "get": {
  11278. "tags": ["migration"],
  11279. "operationId": "v2.experimental.migration.v1.status",
  11280. "parameters": [],
  11281. "security": [],
  11282. "responses": {
  11283. "200": {
  11284. "description": "Success",
  11285. "content": {
  11286. "application/json": {
  11287. "schema": {
  11288. "anyOf": [
  11289. {
  11290. "type": "object",
  11291. "properties": {
  11292. "status": {
  11293. "type": "string",
  11294. "enum": ["required", "completed"]
  11295. }
  11296. },
  11297. "required": ["status"],
  11298. "additionalProperties": false
  11299. },
  11300. {
  11301. "type": "object",
  11302. "properties": {
  11303. "status": {
  11304. "type": "string",
  11305. "enum": ["running"]
  11306. },
  11307. "progress": {
  11308. "type": "object",
  11309. "properties": {
  11310. "label": {
  11311. "type": "string"
  11312. },
  11313. "numerator": {
  11314. "anyOf": [
  11315. {
  11316. "type": "integer",
  11317. "allOf": [
  11318. {
  11319. "minimum": 0
  11320. }
  11321. ]
  11322. },
  11323. {
  11324. "type": "null"
  11325. }
  11326. ]
  11327. },
  11328. "denominator": {
  11329. "anyOf": [
  11330. {
  11331. "type": "integer",
  11332. "allOf": [
  11333. {
  11334. "minimum": 0
  11335. }
  11336. ]
  11337. },
  11338. {
  11339. "type": "null"
  11340. }
  11341. ]
  11342. }
  11343. },
  11344. "required": ["label"],
  11345. "additionalProperties": false
  11346. }
  11347. },
  11348. "required": ["status", "progress"],
  11349. "additionalProperties": false
  11350. },
  11351. {
  11352. "type": "object",
  11353. "properties": {
  11354. "status": {
  11355. "type": "string",
  11356. "enum": ["error"]
  11357. },
  11358. "error": {
  11359. "type": "string"
  11360. }
  11361. },
  11362. "required": ["status", "error"],
  11363. "additionalProperties": false
  11364. }
  11365. ]
  11366. }
  11367. }
  11368. }
  11369. },
  11370. "400": {
  11371. "description": "InvalidRequestError",
  11372. "content": {
  11373. "application/json": {
  11374. "schema": {
  11375. "$ref": "#/components/schemas/InvalidRequestError"
  11376. }
  11377. }
  11378. }
  11379. },
  11380. "401": {
  11381. "description": "UnauthorizedError",
  11382. "content": {
  11383. "application/json": {
  11384. "schema": {
  11385. "$ref": "#/components/schemas/UnauthorizedError"
  11386. }
  11387. }
  11388. }
  11389. }
  11390. },
  11391. "description": "Return the progress of the V1 to V2 session history migration.",
  11392. "summary": "Get V1 migration status"
  11393. }
  11394. },
  11395. "/api/websearch/provider": {
  11396. "get": {
  11397. "tags": ["websearch"],
  11398. "operationId": "v2.websearch.providers",
  11399. "parameters": [
  11400. {
  11401. "name": "location",
  11402. "in": "query",
  11403. "schema": {
  11404. "anyOf": [
  11405. {
  11406. "type": "object",
  11407. "properties": {
  11408. "directory": {
  11409. "anyOf": [
  11410. {
  11411. "type": "string"
  11412. },
  11413. {
  11414. "type": "null"
  11415. }
  11416. ]
  11417. },
  11418. "workspace": {
  11419. "anyOf": [
  11420. {
  11421. "type": "string"
  11422. },
  11423. {
  11424. "type": "null"
  11425. }
  11426. ]
  11427. }
  11428. },
  11429. "additionalProperties": false
  11430. },
  11431. {
  11432. "type": "null"
  11433. }
  11434. ]
  11435. },
  11436. "required": false,
  11437. "style": "deepObject",
  11438. "explode": true
  11439. }
  11440. ],
  11441. "security": [],
  11442. "responses": {
  11443. "200": {
  11444. "description": "Success",
  11445. "content": {
  11446. "application/json": {
  11447. "schema": {
  11448. "type": "object",
  11449. "properties": {
  11450. "location": {
  11451. "$ref": "#/components/schemas/Location.Info"
  11452. },
  11453. "data": {
  11454. "type": "array",
  11455. "items": {
  11456. "$ref": "#/components/schemas/WebSearch.Provider"
  11457. }
  11458. }
  11459. },
  11460. "required": ["location", "data"],
  11461. "additionalProperties": false
  11462. }
  11463. }
  11464. }
  11465. },
  11466. "400": {
  11467. "description": "InvalidRequestError",
  11468. "content": {
  11469. "application/json": {
  11470. "schema": {
  11471. "$ref": "#/components/schemas/InvalidRequestError"
  11472. }
  11473. }
  11474. }
  11475. },
  11476. "401": {
  11477. "description": "UnauthorizedError",
  11478. "content": {
  11479. "application/json": {
  11480. "schema": {
  11481. "$ref": "#/components/schemas/UnauthorizedError"
  11482. }
  11483. }
  11484. }
  11485. },
  11486. "503": {
  11487. "description": "ServiceUnavailableError",
  11488. "content": {
  11489. "application/json": {
  11490. "schema": {
  11491. "$ref": "#/components/schemas/ServiceUnavailableError"
  11492. }
  11493. }
  11494. }
  11495. }
  11496. },
  11497. "description": "Return the registered web search providers.",
  11498. "summary": "List web search providers"
  11499. }
  11500. },
  11501. "/api/websearch": {
  11502. "post": {
  11503. "tags": ["websearch"],
  11504. "operationId": "v2.websearch.query",
  11505. "parameters": [
  11506. {
  11507. "name": "location",
  11508. "in": "query",
  11509. "schema": {
  11510. "anyOf": [
  11511. {
  11512. "type": "object",
  11513. "properties": {
  11514. "directory": {
  11515. "anyOf": [
  11516. {
  11517. "type": "string"
  11518. },
  11519. {
  11520. "type": "null"
  11521. }
  11522. ]
  11523. },
  11524. "workspace": {
  11525. "anyOf": [
  11526. {
  11527. "type": "string"
  11528. },
  11529. {
  11530. "type": "null"
  11531. }
  11532. ]
  11533. }
  11534. },
  11535. "additionalProperties": false
  11536. },
  11537. {
  11538. "type": "null"
  11539. }
  11540. ]
  11541. },
  11542. "required": false,
  11543. "style": "deepObject",
  11544. "explode": true
  11545. }
  11546. ],
  11547. "security": [],
  11548. "responses": {
  11549. "200": {
  11550. "description": "Success",
  11551. "content": {
  11552. "application/json": {
  11553. "schema": {
  11554. "type": "object",
  11555. "properties": {
  11556. "location": {
  11557. "$ref": "#/components/schemas/Location.Info"
  11558. },
  11559. "data": {
  11560. "$ref": "#/components/schemas/WebSearch.Response"
  11561. }
  11562. },
  11563. "required": ["location", "data"],
  11564. "additionalProperties": false
  11565. }
  11566. }
  11567. }
  11568. },
  11569. "400": {
  11570. "description": "InvalidRequestError",
  11571. "content": {
  11572. "application/json": {
  11573. "schema": {
  11574. "anyOf": [
  11575. {
  11576. "$ref": "#/components/schemas/InvalidRequestError1"
  11577. },
  11578. {
  11579. "$ref": "#/components/schemas/InvalidRequestError"
  11580. }
  11581. ]
  11582. }
  11583. }
  11584. }
  11585. },
  11586. "401": {
  11587. "description": "UnauthorizedError",
  11588. "content": {
  11589. "application/json": {
  11590. "schema": {
  11591. "$ref": "#/components/schemas/UnauthorizedError"
  11592. }
  11593. }
  11594. }
  11595. },
  11596. "503": {
  11597. "description": "ServiceUnavailableError",
  11598. "content": {
  11599. "application/json": {
  11600. "schema": {
  11601. "$ref": "#/components/schemas/ServiceUnavailableError"
  11602. }
  11603. }
  11604. }
  11605. }
  11606. },
  11607. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  11608. "summary": "Search the web",
  11609. "requestBody": {
  11610. "content": {
  11611. "application/json": {
  11612. "schema": {
  11613. "type": "object",
  11614. "properties": {
  11615. "query": {
  11616. "type": "string"
  11617. },
  11618. "providerID": {
  11619. "type": "string"
  11620. }
  11621. },
  11622. "required": ["query"],
  11623. "additionalProperties": false
  11624. }
  11625. }
  11626. },
  11627. "required": true
  11628. }
  11629. }
  11630. },
  11631. "/api/config": {
  11632. "get": {
  11633. "tags": ["config"],
  11634. "operationId": "v2.config.get",
  11635. "parameters": [
  11636. {
  11637. "name": "location",
  11638. "in": "query",
  11639. "schema": {
  11640. "anyOf": [
  11641. {
  11642. "type": "object",
  11643. "properties": {
  11644. "directory": {
  11645. "anyOf": [
  11646. {
  11647. "type": "string"
  11648. },
  11649. {
  11650. "type": "null"
  11651. }
  11652. ]
  11653. },
  11654. "workspace": {
  11655. "anyOf": [
  11656. {
  11657. "type": "string"
  11658. },
  11659. {
  11660. "type": "null"
  11661. }
  11662. ]
  11663. }
  11664. },
  11665. "additionalProperties": false
  11666. },
  11667. {
  11668. "type": "null"
  11669. }
  11670. ]
  11671. },
  11672. "required": false,
  11673. "style": "deepObject",
  11674. "explode": true
  11675. }
  11676. ],
  11677. "security": [],
  11678. "responses": {
  11679. "200": {
  11680. "description": "Success",
  11681. "content": {
  11682. "application/json": {
  11683. "schema": {
  11684. "type": "array",
  11685. "items": {
  11686. "$ref": "#/components/schemas/Config.Entry"
  11687. }
  11688. }
  11689. }
  11690. }
  11691. },
  11692. "400": {
  11693. "description": "InvalidRequestError",
  11694. "content": {
  11695. "application/json": {
  11696. "schema": {
  11697. "$ref": "#/components/schemas/InvalidRequestError"
  11698. }
  11699. }
  11700. }
  11701. },
  11702. "401": {
  11703. "description": "UnauthorizedError",
  11704. "content": {
  11705. "application/json": {
  11706. "schema": {
  11707. "$ref": "#/components/schemas/UnauthorizedError"
  11708. }
  11709. }
  11710. }
  11711. }
  11712. },
  11713. "description": "Return configuration documents and discovery sources for the requested location, from lowest to highest priority.",
  11714. "summary": "Get configuration"
  11715. }
  11716. }
  11717. },
  11718. "components": {
  11719. "schemas": {
  11720. "ServiceHealth": {
  11721. "type": "object",
  11722. "properties": {
  11723. "healthy": {
  11724. "type": "boolean",
  11725. "enum": [true]
  11726. },
  11727. "version": {
  11728. "type": "string"
  11729. },
  11730. "pid": {
  11731. "type": "integer",
  11732. "allOf": [
  11733. {
  11734. "minimum": 0
  11735. }
  11736. ]
  11737. }
  11738. },
  11739. "required": ["healthy", "version", "pid"],
  11740. "additionalProperties": false
  11741. },
  11742. "UnauthorizedError": {
  11743. "type": "object",
  11744. "properties": {
  11745. "_tag": {
  11746. "type": "string",
  11747. "enum": ["UnauthorizedError"]
  11748. },
  11749. "message": {
  11750. "type": "string"
  11751. }
  11752. },
  11753. "required": ["_tag", "message"],
  11754. "additionalProperties": false
  11755. },
  11756. "InvalidRequestError": {
  11757. "type": "object",
  11758. "properties": {
  11759. "_tag": {
  11760. "type": "string",
  11761. "enum": ["InvalidRequestError"]
  11762. },
  11763. "message": {
  11764. "type": "string"
  11765. },
  11766. "kind": {
  11767. "anyOf": [
  11768. {
  11769. "type": "string"
  11770. },
  11771. {
  11772. "type": "null"
  11773. }
  11774. ]
  11775. },
  11776. "field": {
  11777. "anyOf": [
  11778. {
  11779. "type": "string"
  11780. },
  11781. {
  11782. "type": "null"
  11783. }
  11784. ]
  11785. }
  11786. },
  11787. "required": ["_tag", "message"],
  11788. "additionalProperties": false
  11789. },
  11790. "ServiceStopRequest": {
  11791. "type": "object",
  11792. "properties": {
  11793. "instanceID": {
  11794. "type": "string"
  11795. }
  11796. },
  11797. "required": ["instanceID"],
  11798. "additionalProperties": false
  11799. },
  11800. "ServiceStopResponse": {
  11801. "type": "object",
  11802. "properties": {
  11803. "accepted": {
  11804. "type": "boolean"
  11805. }
  11806. },
  11807. "required": ["accepted"],
  11808. "additionalProperties": false
  11809. },
  11810. "Location.Info": {
  11811. "type": "object",
  11812. "properties": {
  11813. "directory": {
  11814. "type": "string"
  11815. },
  11816. "workspaceID": {
  11817. "type": "string",
  11818. "allOf": [
  11819. {
  11820. "pattern": "^wrk"
  11821. }
  11822. ]
  11823. },
  11824. "project": {
  11825. "type": "object",
  11826. "properties": {
  11827. "id": {
  11828. "type": "string"
  11829. },
  11830. "directory": {
  11831. "type": "string"
  11832. },
  11833. "canonical": {
  11834. "type": "string"
  11835. }
  11836. },
  11837. "required": ["id", "directory", "canonical"],
  11838. "additionalProperties": false
  11839. }
  11840. },
  11841. "required": ["directory", "project"],
  11842. "additionalProperties": false
  11843. },
  11844. "Model.Ref": {
  11845. "type": "object",
  11846. "properties": {
  11847. "id": {
  11848. "type": "string"
  11849. },
  11850. "providerID": {
  11851. "type": "string"
  11852. },
  11853. "variant": {
  11854. "type": "string"
  11855. }
  11856. },
  11857. "required": ["id", "providerID"],
  11858. "additionalProperties": false
  11859. },
  11860. "Provider.Settings": {
  11861. "type": "object"
  11862. },
  11863. "Provider.Request": {
  11864. "type": "object",
  11865. "properties": {
  11866. "settings": {
  11867. "$ref": "#/components/schemas/Provider.Settings"
  11868. },
  11869. "headers": {
  11870. "type": "object",
  11871. "additionalProperties": {
  11872. "type": "string"
  11873. }
  11874. },
  11875. "body": {
  11876. "type": "object"
  11877. }
  11878. },
  11879. "required": ["settings", "headers", "body"],
  11880. "additionalProperties": false
  11881. },
  11882. "Agent.Color": {
  11883. "type": "string"
  11884. },
  11885. "Permission.Effect": {
  11886. "type": "string",
  11887. "enum": ["allow", "deny", "ask"]
  11888. },
  11889. "Permission.Rule": {
  11890. "type": "object",
  11891. "properties": {
  11892. "action": {
  11893. "type": "string"
  11894. },
  11895. "resource": {
  11896. "type": "string"
  11897. },
  11898. "effect": {
  11899. "$ref": "#/components/schemas/Permission.Effect"
  11900. }
  11901. },
  11902. "required": ["action", "resource", "effect"],
  11903. "additionalProperties": false
  11904. },
  11905. "Permission.Ruleset": {
  11906. "type": "array",
  11907. "items": {
  11908. "$ref": "#/components/schemas/Permission.Rule"
  11909. }
  11910. },
  11911. "Agent.Info": {
  11912. "type": "object",
  11913. "properties": {
  11914. "id": {
  11915. "type": "string"
  11916. },
  11917. "name": {
  11918. "type": "string"
  11919. },
  11920. "model": {
  11921. "$ref": "#/components/schemas/Model.Ref"
  11922. },
  11923. "request": {
  11924. "$ref": "#/components/schemas/Provider.Request"
  11925. },
  11926. "system": {
  11927. "type": "string"
  11928. },
  11929. "description": {
  11930. "type": "string"
  11931. },
  11932. "mode": {
  11933. "type": "string",
  11934. "enum": ["subagent", "primary", "all"]
  11935. },
  11936. "hidden": {
  11937. "type": "boolean"
  11938. },
  11939. "color": {
  11940. "$ref": "#/components/schemas/Agent.Color"
  11941. },
  11942. "steps": {
  11943. "type": "integer",
  11944. "allOf": [
  11945. {
  11946. "exclusiveMinimum": 0
  11947. }
  11948. ]
  11949. },
  11950. "permissions": {
  11951. "$ref": "#/components/schemas/Permission.Ruleset"
  11952. }
  11953. },
  11954. "required": ["id", "name", "request", "mode", "hidden", "permissions"],
  11955. "additionalProperties": false
  11956. },
  11957. "AgentNotFoundError": {
  11958. "type": "object",
  11959. "properties": {
  11960. "_tag": {
  11961. "type": "string",
  11962. "enum": ["AgentNotFoundError"]
  11963. },
  11964. "agentID": {
  11965. "type": "string"
  11966. },
  11967. "message": {
  11968. "type": "string"
  11969. }
  11970. },
  11971. "required": ["_tag", "agentID", "message"],
  11972. "additionalProperties": false
  11973. },
  11974. "Plugin.Info": {
  11975. "type": "object",
  11976. "properties": {
  11977. "id": {
  11978. "type": "string"
  11979. }
  11980. },
  11981. "required": ["id"],
  11982. "additionalProperties": false
  11983. },
  11984. "Session.ForkBoundary": {
  11985. "anyOf": [
  11986. {
  11987. "type": "object",
  11988. "properties": {
  11989. "type": {
  11990. "type": "string",
  11991. "enum": ["before"]
  11992. },
  11993. "messageID": {
  11994. "type": "string",
  11995. "allOf": [
  11996. {
  11997. "pattern": "^msg_"
  11998. }
  11999. ]
  12000. }
  12001. },
  12002. "required": ["type", "messageID"],
  12003. "additionalProperties": false
  12004. },
  12005. {
  12006. "type": "object",
  12007. "properties": {
  12008. "type": {
  12009. "type": "string",
  12010. "enum": ["through"]
  12011. },
  12012. "messageID": {
  12013. "type": "string",
  12014. "allOf": [
  12015. {
  12016. "pattern": "^msg_"
  12017. }
  12018. ]
  12019. }
  12020. },
  12021. "required": ["type", "messageID"],
  12022. "additionalProperties": false
  12023. }
  12024. ]
  12025. },
  12026. "Money.USD": {
  12027. "type": "number"
  12028. },
  12029. "TokenUsage.Info": {
  12030. "type": "object",
  12031. "properties": {
  12032. "input": {
  12033. "type": "number"
  12034. },
  12035. "output": {
  12036. "type": "number"
  12037. },
  12038. "reasoning": {
  12039. "type": "number"
  12040. },
  12041. "cache": {
  12042. "type": "object",
  12043. "properties": {
  12044. "read": {
  12045. "type": "number"
  12046. },
  12047. "write": {
  12048. "type": "number"
  12049. }
  12050. },
  12051. "required": ["read", "write"],
  12052. "additionalProperties": false
  12053. }
  12054. },
  12055. "required": ["input", "output", "reasoning", "cache"],
  12056. "additionalProperties": false
  12057. },
  12058. "Location.Ref": {
  12059. "type": "object",
  12060. "properties": {
  12061. "directory": {
  12062. "type": "string"
  12063. },
  12064. "workspaceID": {
  12065. "type": "string",
  12066. "allOf": [
  12067. {
  12068. "pattern": "^wrk"
  12069. }
  12070. ]
  12071. }
  12072. },
  12073. "required": ["directory"],
  12074. "additionalProperties": false
  12075. },
  12076. "FileDiff.Info": {
  12077. "type": "object",
  12078. "properties": {
  12079. "file": {
  12080. "type": "string"
  12081. },
  12082. "patch": {
  12083. "type": "string"
  12084. },
  12085. "additions": {
  12086. "type": "integer",
  12087. "allOf": [
  12088. {
  12089. "minimum": 0
  12090. }
  12091. ]
  12092. },
  12093. "deletions": {
  12094. "type": "integer",
  12095. "allOf": [
  12096. {
  12097. "minimum": 0
  12098. }
  12099. ]
  12100. },
  12101. "status": {
  12102. "type": "string",
  12103. "enum": ["added", "deleted", "modified"]
  12104. }
  12105. },
  12106. "required": ["file", "patch", "additions", "deletions", "status"],
  12107. "additionalProperties": false
  12108. },
  12109. "Session.Revert": {
  12110. "type": "object",
  12111. "properties": {
  12112. "messageID": {
  12113. "type": "string",
  12114. "allOf": [
  12115. {
  12116. "pattern": "^msg_"
  12117. }
  12118. ]
  12119. },
  12120. "partID": {
  12121. "type": "string"
  12122. },
  12123. "snapshot": {
  12124. "type": "string"
  12125. },
  12126. "files": {
  12127. "type": "array",
  12128. "items": {
  12129. "$ref": "#/components/schemas/FileDiff.Info"
  12130. }
  12131. }
  12132. },
  12133. "required": ["messageID"],
  12134. "additionalProperties": false
  12135. },
  12136. "Session.Info": {
  12137. "type": "object",
  12138. "properties": {
  12139. "id": {
  12140. "type": "string",
  12141. "allOf": [
  12142. {
  12143. "pattern": "^ses"
  12144. }
  12145. ]
  12146. },
  12147. "parentID": {
  12148. "type": "string",
  12149. "allOf": [
  12150. {
  12151. "pattern": "^ses"
  12152. }
  12153. ]
  12154. },
  12155. "fork": {
  12156. "type": "object",
  12157. "properties": {
  12158. "sessionID": {
  12159. "type": "string",
  12160. "allOf": [
  12161. {
  12162. "pattern": "^ses"
  12163. }
  12164. ]
  12165. },
  12166. "boundary": {
  12167. "$ref": "#/components/schemas/Session.ForkBoundary"
  12168. }
  12169. },
  12170. "required": ["sessionID", "boundary"],
  12171. "additionalProperties": false
  12172. },
  12173. "projectID": {
  12174. "type": "string"
  12175. },
  12176. "agent": {
  12177. "type": "string"
  12178. },
  12179. "model": {
  12180. "$ref": "#/components/schemas/Model.Ref"
  12181. },
  12182. "cost": {
  12183. "$ref": "#/components/schemas/Money.USD"
  12184. },
  12185. "tokens": {
  12186. "$ref": "#/components/schemas/TokenUsage.Info"
  12187. },
  12188. "time": {
  12189. "type": "object",
  12190. "properties": {
  12191. "created": {
  12192. "type": "number"
  12193. },
  12194. "updated": {
  12195. "type": "number"
  12196. },
  12197. "idle": {
  12198. "type": "number"
  12199. },
  12200. "viewed": {
  12201. "type": "number"
  12202. },
  12203. "archived": {
  12204. "type": "number"
  12205. }
  12206. },
  12207. "required": ["created", "updated"],
  12208. "additionalProperties": false
  12209. },
  12210. "title": {
  12211. "type": "string"
  12212. },
  12213. "location": {
  12214. "$ref": "#/components/schemas/Location.Ref"
  12215. },
  12216. "subpath": {
  12217. "type": "string"
  12218. },
  12219. "revert": {
  12220. "$ref": "#/components/schemas/Session.Revert"
  12221. }
  12222. },
  12223. "required": ["id", "projectID", "cost", "tokens", "time", "location"],
  12224. "additionalProperties": false
  12225. },
  12226. "SessionsResponse": {
  12227. "type": "object",
  12228. "properties": {
  12229. "data": {
  12230. "type": "array",
  12231. "items": {
  12232. "$ref": "#/components/schemas/Session.Info"
  12233. }
  12234. },
  12235. "cursor": {
  12236. "type": "object",
  12237. "properties": {
  12238. "previous": {
  12239. "anyOf": [
  12240. {
  12241. "type": "string"
  12242. },
  12243. {
  12244. "type": "null"
  12245. }
  12246. ]
  12247. },
  12248. "next": {
  12249. "anyOf": [
  12250. {
  12251. "type": "string"
  12252. },
  12253. {
  12254. "type": "null"
  12255. }
  12256. ]
  12257. }
  12258. },
  12259. "additionalProperties": false
  12260. }
  12261. },
  12262. "required": ["data", "cursor"],
  12263. "additionalProperties": false
  12264. },
  12265. "InvalidCursorError": {
  12266. "type": "object",
  12267. "properties": {
  12268. "_tag": {
  12269. "type": "string",
  12270. "enum": ["InvalidCursorError"]
  12271. },
  12272. "message": {
  12273. "type": "string"
  12274. }
  12275. },
  12276. "required": ["_tag", "message"],
  12277. "additionalProperties": false
  12278. },
  12279. "InvalidRequestError1": {
  12280. "type": "object",
  12281. "properties": {
  12282. "_tag": {
  12283. "type": "string",
  12284. "enum": ["InvalidRequestError"]
  12285. },
  12286. "message": {
  12287. "type": "string"
  12288. },
  12289. "kind": {
  12290. "anyOf": [
  12291. {
  12292. "type": "string"
  12293. },
  12294. {
  12295. "type": "null"
  12296. }
  12297. ]
  12298. },
  12299. "field": {
  12300. "anyOf": [
  12301. {
  12302. "type": "string"
  12303. },
  12304. {
  12305. "type": "null"
  12306. }
  12307. ]
  12308. }
  12309. },
  12310. "required": ["_tag", "message"],
  12311. "additionalProperties": false
  12312. },
  12313. "Session.Message.AgentSelected": {
  12314. "type": "object",
  12315. "properties": {
  12316. "id": {
  12317. "type": "string",
  12318. "allOf": [
  12319. {
  12320. "pattern": "^msg_"
  12321. }
  12322. ]
  12323. },
  12324. "metadata": {
  12325. "type": "object"
  12326. },
  12327. "time": {
  12328. "type": "object",
  12329. "properties": {
  12330. "created": {
  12331. "type": "number"
  12332. }
  12333. },
  12334. "required": ["created"],
  12335. "additionalProperties": false
  12336. },
  12337. "type": {
  12338. "type": "string",
  12339. "enum": ["agent-switched"]
  12340. },
  12341. "agent": {
  12342. "type": "string"
  12343. },
  12344. "previous": {
  12345. "type": "string"
  12346. }
  12347. },
  12348. "required": ["id", "time", "type", "agent"],
  12349. "additionalProperties": false
  12350. },
  12351. "Session.Message.ModelSelected": {
  12352. "type": "object",
  12353. "properties": {
  12354. "id": {
  12355. "type": "string",
  12356. "allOf": [
  12357. {
  12358. "pattern": "^msg_"
  12359. }
  12360. ]
  12361. },
  12362. "metadata": {
  12363. "type": "object"
  12364. },
  12365. "time": {
  12366. "type": "object",
  12367. "properties": {
  12368. "created": {
  12369. "type": "number"
  12370. }
  12371. },
  12372. "required": ["created"],
  12373. "additionalProperties": false
  12374. },
  12375. "type": {
  12376. "type": "string",
  12377. "enum": ["model-switched"]
  12378. },
  12379. "model": {
  12380. "$ref": "#/components/schemas/Model.Ref"
  12381. },
  12382. "previous": {
  12383. "$ref": "#/components/schemas/Model.Ref"
  12384. }
  12385. },
  12386. "required": ["id", "time", "type", "model"],
  12387. "additionalProperties": false
  12388. },
  12389. "Session.Message.LocationSwitched": {
  12390. "type": "object",
  12391. "properties": {
  12392. "id": {
  12393. "type": "string",
  12394. "allOf": [
  12395. {
  12396. "pattern": "^msg_"
  12397. }
  12398. ]
  12399. },
  12400. "metadata": {
  12401. "type": "object"
  12402. },
  12403. "time": {
  12404. "type": "object",
  12405. "properties": {
  12406. "created": {
  12407. "type": "number"
  12408. }
  12409. },
  12410. "required": ["created"],
  12411. "additionalProperties": false
  12412. },
  12413. "type": {
  12414. "type": "string",
  12415. "enum": ["location-switched"]
  12416. },
  12417. "location": {
  12418. "$ref": "#/components/schemas/Location.Ref"
  12419. },
  12420. "projectID": {
  12421. "type": "string"
  12422. },
  12423. "subpath": {
  12424. "type": "string"
  12425. },
  12426. "previous": {
  12427. "type": "object",
  12428. "properties": {
  12429. "location": {
  12430. "$ref": "#/components/schemas/Location.Ref"
  12431. },
  12432. "projectID": {
  12433. "type": "string"
  12434. },
  12435. "subpath": {
  12436. "type": "string"
  12437. }
  12438. },
  12439. "required": ["location"],
  12440. "additionalProperties": false
  12441. }
  12442. },
  12443. "required": ["id", "time", "type", "location"],
  12444. "additionalProperties": false
  12445. },
  12446. "Prompt.Base64": {
  12447. "type": "string",
  12448. "allOf": [
  12449. {
  12450. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  12451. }
  12452. ]
  12453. },
  12454. "Prompt.FileSource": {
  12455. "anyOf": [
  12456. {
  12457. "type": "object",
  12458. "properties": {
  12459. "type": {
  12460. "type": "string",
  12461. "enum": ["inline"]
  12462. }
  12463. },
  12464. "required": ["type"],
  12465. "additionalProperties": false
  12466. },
  12467. {
  12468. "type": "object",
  12469. "properties": {
  12470. "type": {
  12471. "type": "string",
  12472. "enum": ["uri"]
  12473. },
  12474. "uri": {
  12475. "type": "string"
  12476. }
  12477. },
  12478. "required": ["type", "uri"],
  12479. "additionalProperties": false
  12480. }
  12481. ]
  12482. },
  12483. "Prompt.Mention": {
  12484. "type": "object",
  12485. "properties": {
  12486. "start": {
  12487. "type": "number"
  12488. },
  12489. "end": {
  12490. "type": "number"
  12491. },
  12492. "text": {
  12493. "type": "string"
  12494. }
  12495. },
  12496. "required": ["start", "end", "text"],
  12497. "additionalProperties": false
  12498. },
  12499. "Prompt.FileAttachment": {
  12500. "type": "object",
  12501. "properties": {
  12502. "data": {
  12503. "$ref": "#/components/schemas/Prompt.Base64"
  12504. },
  12505. "mime": {
  12506. "type": "string"
  12507. },
  12508. "source": {
  12509. "$ref": "#/components/schemas/Prompt.FileSource"
  12510. },
  12511. "name": {
  12512. "type": "string"
  12513. },
  12514. "description": {
  12515. "type": "string"
  12516. },
  12517. "mention": {
  12518. "$ref": "#/components/schemas/Prompt.Mention"
  12519. }
  12520. },
  12521. "required": ["data", "mime", "source"],
  12522. "additionalProperties": false
  12523. },
  12524. "Prompt.AgentAttachment": {
  12525. "type": "object",
  12526. "properties": {
  12527. "name": {
  12528. "type": "string"
  12529. },
  12530. "mention": {
  12531. "$ref": "#/components/schemas/Prompt.Mention"
  12532. }
  12533. },
  12534. "required": ["name"],
  12535. "additionalProperties": false
  12536. },
  12537. "Prompt.SkillAttachment": {
  12538. "type": "object",
  12539. "properties": {
  12540. "id": {
  12541. "type": "string"
  12542. },
  12543. "name": {
  12544. "type": "string"
  12545. },
  12546. "text": {
  12547. "type": "string"
  12548. },
  12549. "mention": {
  12550. "$ref": "#/components/schemas/Prompt.Mention"
  12551. }
  12552. },
  12553. "required": ["id", "name", "text"],
  12554. "additionalProperties": false
  12555. },
  12556. "Session.Message.User": {
  12557. "type": "object",
  12558. "properties": {
  12559. "id": {
  12560. "type": "string",
  12561. "allOf": [
  12562. {
  12563. "pattern": "^msg_"
  12564. }
  12565. ]
  12566. },
  12567. "metadata": {
  12568. "type": "object"
  12569. },
  12570. "time": {
  12571. "type": "object",
  12572. "properties": {
  12573. "created": {
  12574. "type": "number"
  12575. }
  12576. },
  12577. "required": ["created"],
  12578. "additionalProperties": false
  12579. },
  12580. "text": {
  12581. "type": "string"
  12582. },
  12583. "files": {
  12584. "type": "array",
  12585. "items": {
  12586. "$ref": "#/components/schemas/Prompt.FileAttachment"
  12587. }
  12588. },
  12589. "agents": {
  12590. "type": "array",
  12591. "items": {
  12592. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  12593. }
  12594. },
  12595. "skills": {
  12596. "type": "array",
  12597. "items": {
  12598. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  12599. }
  12600. },
  12601. "type": {
  12602. "type": "string",
  12603. "enum": ["user"]
  12604. }
  12605. },
  12606. "required": ["id", "time", "text", "type"],
  12607. "additionalProperties": false
  12608. },
  12609. "Session.Message.Synthetic": {
  12610. "type": "object",
  12611. "properties": {
  12612. "id": {
  12613. "type": "string",
  12614. "allOf": [
  12615. {
  12616. "pattern": "^msg_"
  12617. }
  12618. ]
  12619. },
  12620. "metadata": {
  12621. "type": "object"
  12622. },
  12623. "time": {
  12624. "type": "object",
  12625. "properties": {
  12626. "created": {
  12627. "type": "number"
  12628. }
  12629. },
  12630. "required": ["created"],
  12631. "additionalProperties": false
  12632. },
  12633. "text": {
  12634. "type": "string"
  12635. },
  12636. "description": {
  12637. "type": "string"
  12638. },
  12639. "type": {
  12640. "type": "string",
  12641. "enum": ["synthetic"]
  12642. }
  12643. },
  12644. "required": ["id", "time", "text", "type"],
  12645. "additionalProperties": false
  12646. },
  12647. "Session.Message.System": {
  12648. "type": "object",
  12649. "properties": {
  12650. "id": {
  12651. "type": "string",
  12652. "allOf": [
  12653. {
  12654. "pattern": "^msg_"
  12655. }
  12656. ]
  12657. },
  12658. "metadata": {
  12659. "type": "object"
  12660. },
  12661. "time": {
  12662. "type": "object",
  12663. "properties": {
  12664. "created": {
  12665. "type": "number"
  12666. }
  12667. },
  12668. "required": ["created"],
  12669. "additionalProperties": false
  12670. },
  12671. "type": {
  12672. "type": "string",
  12673. "enum": ["system"]
  12674. },
  12675. "text": {
  12676. "type": "string"
  12677. },
  12678. "description": {
  12679. "type": "string"
  12680. }
  12681. },
  12682. "required": ["id", "time", "type", "text"],
  12683. "additionalProperties": false
  12684. },
  12685. "Session.Message.Skill": {
  12686. "type": "object",
  12687. "properties": {
  12688. "id": {
  12689. "type": "string",
  12690. "allOf": [
  12691. {
  12692. "pattern": "^msg_"
  12693. }
  12694. ]
  12695. },
  12696. "metadata": {
  12697. "type": "object"
  12698. },
  12699. "time": {
  12700. "type": "object",
  12701. "properties": {
  12702. "created": {
  12703. "type": "number"
  12704. }
  12705. },
  12706. "required": ["created"],
  12707. "additionalProperties": false
  12708. },
  12709. "type": {
  12710. "type": "string",
  12711. "enum": ["skill"]
  12712. },
  12713. "skill": {
  12714. "type": "string"
  12715. },
  12716. "name": {
  12717. "type": "string"
  12718. },
  12719. "text": {
  12720. "type": "string"
  12721. }
  12722. },
  12723. "required": ["id", "time", "type", "skill", "name", "text"],
  12724. "additionalProperties": false
  12725. },
  12726. "Session.Message.Shell": {
  12727. "type": "object",
  12728. "properties": {
  12729. "id": {
  12730. "type": "string",
  12731. "allOf": [
  12732. {
  12733. "pattern": "^msg_"
  12734. }
  12735. ]
  12736. },
  12737. "metadata": {
  12738. "type": "object"
  12739. },
  12740. "time": {
  12741. "type": "object",
  12742. "properties": {
  12743. "created": {
  12744. "type": "number"
  12745. },
  12746. "completed": {
  12747. "type": "number"
  12748. }
  12749. },
  12750. "required": ["created"],
  12751. "additionalProperties": false
  12752. },
  12753. "type": {
  12754. "type": "string",
  12755. "enum": ["shell"]
  12756. },
  12757. "shellID": {
  12758. "type": "string",
  12759. "allOf": [
  12760. {
  12761. "pattern": "^sh_"
  12762. }
  12763. ]
  12764. },
  12765. "command": {
  12766. "type": "string"
  12767. },
  12768. "status": {
  12769. "type": "string",
  12770. "enum": ["running", "exited", "timeout", "killed"]
  12771. },
  12772. "exit": {
  12773. "anyOf": [
  12774. {
  12775. "anyOf": [
  12776. {
  12777. "type": "number"
  12778. },
  12779. {
  12780. "type": "string",
  12781. "enum": ["NaN"]
  12782. },
  12783. {
  12784. "type": "string",
  12785. "enum": ["Infinity"]
  12786. },
  12787. {
  12788. "type": "string",
  12789. "enum": ["-Infinity"]
  12790. }
  12791. ]
  12792. },
  12793. {
  12794. "type": "string",
  12795. "enum": ["Infinity", "-Infinity", "NaN"]
  12796. }
  12797. ]
  12798. },
  12799. "output": {
  12800. "type": "object",
  12801. "properties": {
  12802. "output": {
  12803. "type": "string"
  12804. },
  12805. "cursor": {
  12806. "type": "integer",
  12807. "allOf": [
  12808. {
  12809. "minimum": 0
  12810. }
  12811. ]
  12812. },
  12813. "size": {
  12814. "type": "integer",
  12815. "allOf": [
  12816. {
  12817. "minimum": 0
  12818. }
  12819. ]
  12820. },
  12821. "truncated": {
  12822. "type": "boolean"
  12823. }
  12824. },
  12825. "required": ["output", "cursor", "size", "truncated"],
  12826. "additionalProperties": false
  12827. }
  12828. },
  12829. "required": ["id", "time", "type", "shellID", "command", "status"],
  12830. "additionalProperties": false
  12831. },
  12832. "Session.Message.ProviderState": {
  12833. "type": "object"
  12834. },
  12835. "Session.Message.Assistant.Text": {
  12836. "type": "object",
  12837. "properties": {
  12838. "type": {
  12839. "type": "string",
  12840. "enum": ["text"]
  12841. },
  12842. "text": {
  12843. "type": "string"
  12844. },
  12845. "state": {
  12846. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12847. }
  12848. },
  12849. "required": ["type", "text"],
  12850. "additionalProperties": false
  12851. },
  12852. "Session.Message.Assistant.Reasoning": {
  12853. "type": "object",
  12854. "properties": {
  12855. "type": {
  12856. "type": "string",
  12857. "enum": ["reasoning"]
  12858. },
  12859. "text": {
  12860. "type": "string"
  12861. },
  12862. "state": {
  12863. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12864. },
  12865. "time": {
  12866. "type": "object",
  12867. "properties": {
  12868. "created": {
  12869. "type": "number"
  12870. },
  12871. "completed": {
  12872. "type": "number"
  12873. }
  12874. },
  12875. "required": ["created"],
  12876. "additionalProperties": false
  12877. }
  12878. },
  12879. "required": ["type", "text"],
  12880. "additionalProperties": false
  12881. },
  12882. "Session.Message.ToolState.Streaming": {
  12883. "type": "object",
  12884. "properties": {
  12885. "status": {
  12886. "type": "string",
  12887. "enum": ["streaming"]
  12888. },
  12889. "input": {
  12890. "type": "string"
  12891. }
  12892. },
  12893. "required": ["status", "input"],
  12894. "additionalProperties": false
  12895. },
  12896. "Session.Message.ToolState.Running": {
  12897. "type": "object",
  12898. "properties": {
  12899. "status": {
  12900. "type": "string",
  12901. "enum": ["running"]
  12902. },
  12903. "input": {
  12904. "type": "object"
  12905. },
  12906. "metadata": {
  12907. "type": "object"
  12908. }
  12909. },
  12910. "required": ["status", "input", "metadata"],
  12911. "additionalProperties": false
  12912. },
  12913. "Tool.TextContent": {
  12914. "type": "object",
  12915. "properties": {
  12916. "type": {
  12917. "type": "string",
  12918. "enum": ["text"]
  12919. },
  12920. "text": {
  12921. "type": "string"
  12922. }
  12923. },
  12924. "required": ["type", "text"],
  12925. "additionalProperties": false
  12926. },
  12927. "Tool.FileContent": {
  12928. "type": "object",
  12929. "properties": {
  12930. "type": {
  12931. "type": "string",
  12932. "enum": ["file"]
  12933. },
  12934. "uri": {
  12935. "type": "string"
  12936. },
  12937. "mime": {
  12938. "type": "string"
  12939. },
  12940. "name": {
  12941. "anyOf": [
  12942. {
  12943. "type": "string"
  12944. },
  12945. {
  12946. "type": "null"
  12947. }
  12948. ]
  12949. }
  12950. },
  12951. "required": ["type", "uri", "mime"],
  12952. "additionalProperties": false
  12953. },
  12954. "Tool.Content": {
  12955. "anyOf": [
  12956. {
  12957. "$ref": "#/components/schemas/Tool.TextContent"
  12958. },
  12959. {
  12960. "$ref": "#/components/schemas/Tool.FileContent"
  12961. }
  12962. ]
  12963. },
  12964. "Session.Message.ToolState.Completed": {
  12965. "type": "object",
  12966. "properties": {
  12967. "status": {
  12968. "type": "string",
  12969. "enum": ["completed"]
  12970. },
  12971. "input": {
  12972. "type": "object"
  12973. },
  12974. "content": {
  12975. "type": "array",
  12976. "prefixItems": [
  12977. {
  12978. "$ref": "#/components/schemas/Tool.Content"
  12979. }
  12980. ],
  12981. "minItems": 1,
  12982. "items": {
  12983. "$ref": "#/components/schemas/Tool.Content"
  12984. }
  12985. },
  12986. "metadata": {
  12987. "type": "object"
  12988. }
  12989. },
  12990. "required": ["status", "input", "content"],
  12991. "additionalProperties": false
  12992. },
  12993. "Session.StructuredError": {
  12994. "type": "object",
  12995. "properties": {
  12996. "type": {
  12997. "type": "string"
  12998. },
  12999. "message": {
  13000. "type": "string"
  13001. },
  13002. "status": {
  13003. "type": "integer",
  13004. "allOf": [
  13005. {
  13006. "minimum": 100,
  13007. "maximum": 599
  13008. }
  13009. ]
  13010. }
  13011. },
  13012. "required": ["type", "message"],
  13013. "additionalProperties": false
  13014. },
  13015. "Session.Message.ToolState.Error": {
  13016. "type": "object",
  13017. "properties": {
  13018. "status": {
  13019. "type": "string",
  13020. "enum": ["error"]
  13021. },
  13022. "input": {
  13023. "type": "object"
  13024. },
  13025. "error": {
  13026. "$ref": "#/components/schemas/Session.StructuredError"
  13027. },
  13028. "content": {
  13029. "type": "array",
  13030. "prefixItems": [
  13031. {
  13032. "$ref": "#/components/schemas/Tool.Content"
  13033. }
  13034. ],
  13035. "minItems": 1,
  13036. "items": {
  13037. "$ref": "#/components/schemas/Tool.Content"
  13038. }
  13039. },
  13040. "metadata": {
  13041. "type": "object"
  13042. }
  13043. },
  13044. "required": ["status", "input", "error"],
  13045. "additionalProperties": false
  13046. },
  13047. "Session.Message.Assistant.Tool": {
  13048. "type": "object",
  13049. "properties": {
  13050. "type": {
  13051. "type": "string",
  13052. "enum": ["tool"]
  13053. },
  13054. "id": {
  13055. "type": "string"
  13056. },
  13057. "name": {
  13058. "type": "string"
  13059. },
  13060. "executed": {
  13061. "type": "boolean"
  13062. },
  13063. "providerState": {
  13064. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13065. },
  13066. "providerResultState": {
  13067. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13068. },
  13069. "state": {
  13070. "anyOf": [
  13071. {
  13072. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  13073. },
  13074. {
  13075. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  13076. },
  13077. {
  13078. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  13079. },
  13080. {
  13081. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  13082. }
  13083. ]
  13084. },
  13085. "time": {
  13086. "type": "object",
  13087. "properties": {
  13088. "created": {
  13089. "type": "number"
  13090. },
  13091. "ran": {
  13092. "type": "number"
  13093. },
  13094. "completed": {
  13095. "type": "number"
  13096. }
  13097. },
  13098. "required": ["created"],
  13099. "additionalProperties": false
  13100. }
  13101. },
  13102. "required": ["type", "id", "name", "state", "time"],
  13103. "additionalProperties": false
  13104. },
  13105. "Session.Message.Assistant.Retry": {
  13106. "type": "object",
  13107. "properties": {
  13108. "attempt": {
  13109. "type": "integer",
  13110. "allOf": [
  13111. {
  13112. "exclusiveMinimum": 0
  13113. }
  13114. ]
  13115. },
  13116. "at": {
  13117. "type": "number"
  13118. },
  13119. "error": {
  13120. "$ref": "#/components/schemas/Session.StructuredError"
  13121. }
  13122. },
  13123. "required": ["attempt", "at", "error"],
  13124. "additionalProperties": false
  13125. },
  13126. "Session.Message.Assistant": {
  13127. "type": "object",
  13128. "properties": {
  13129. "id": {
  13130. "type": "string",
  13131. "allOf": [
  13132. {
  13133. "pattern": "^msg_"
  13134. }
  13135. ]
  13136. },
  13137. "metadata": {
  13138. "type": "object"
  13139. },
  13140. "time": {
  13141. "type": "object",
  13142. "properties": {
  13143. "created": {
  13144. "type": "number"
  13145. },
  13146. "completed": {
  13147. "type": "number"
  13148. }
  13149. },
  13150. "required": ["created"],
  13151. "additionalProperties": false
  13152. },
  13153. "type": {
  13154. "type": "string",
  13155. "enum": ["assistant"]
  13156. },
  13157. "agent": {
  13158. "type": "string"
  13159. },
  13160. "model": {
  13161. "$ref": "#/components/schemas/Model.Ref"
  13162. },
  13163. "content": {
  13164. "type": "array",
  13165. "items": {
  13166. "anyOf": [
  13167. {
  13168. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  13169. },
  13170. {
  13171. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  13172. },
  13173. {
  13174. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  13175. }
  13176. ]
  13177. }
  13178. },
  13179. "snapshot": {
  13180. "type": "object",
  13181. "properties": {
  13182. "start": {
  13183. "type": "string"
  13184. },
  13185. "end": {
  13186. "type": "string"
  13187. },
  13188. "files": {
  13189. "type": "array",
  13190. "items": {
  13191. "type": "string"
  13192. }
  13193. }
  13194. },
  13195. "additionalProperties": false
  13196. },
  13197. "finish": {
  13198. "type": "string",
  13199. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  13200. },
  13201. "cost": {
  13202. "$ref": "#/components/schemas/Money.USD"
  13203. },
  13204. "tokens": {
  13205. "$ref": "#/components/schemas/TokenUsage.Info"
  13206. },
  13207. "error": {
  13208. "$ref": "#/components/schemas/Session.StructuredError"
  13209. },
  13210. "retry": {
  13211. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  13212. }
  13213. },
  13214. "required": ["id", "time", "type", "agent", "model", "content"],
  13215. "additionalProperties": false
  13216. },
  13217. "Session.Message.Compaction.Running": {
  13218. "type": "object",
  13219. "properties": {
  13220. "type": {
  13221. "type": "string",
  13222. "enum": ["compaction"]
  13223. },
  13224. "id": {
  13225. "type": "string",
  13226. "allOf": [
  13227. {
  13228. "pattern": "^msg_"
  13229. }
  13230. ]
  13231. },
  13232. "metadata": {
  13233. "type": "object"
  13234. },
  13235. "time": {
  13236. "type": "object",
  13237. "properties": {
  13238. "created": {
  13239. "type": "number"
  13240. }
  13241. },
  13242. "required": ["created"],
  13243. "additionalProperties": false
  13244. },
  13245. "status": {
  13246. "type": "string",
  13247. "enum": ["running"]
  13248. },
  13249. "reason": {
  13250. "type": "string",
  13251. "enum": ["auto", "manual"]
  13252. },
  13253. "summary": {
  13254. "type": "string"
  13255. },
  13256. "recent": {
  13257. "type": "string"
  13258. }
  13259. },
  13260. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13261. "additionalProperties": false
  13262. },
  13263. "Session.Message.Compaction.Completed": {
  13264. "type": "object",
  13265. "properties": {
  13266. "type": {
  13267. "type": "string",
  13268. "enum": ["compaction"]
  13269. },
  13270. "id": {
  13271. "type": "string",
  13272. "allOf": [
  13273. {
  13274. "pattern": "^msg_"
  13275. }
  13276. ]
  13277. },
  13278. "metadata": {
  13279. "type": "object"
  13280. },
  13281. "time": {
  13282. "type": "object",
  13283. "properties": {
  13284. "created": {
  13285. "type": "number"
  13286. }
  13287. },
  13288. "required": ["created"],
  13289. "additionalProperties": false
  13290. },
  13291. "status": {
  13292. "type": "string",
  13293. "enum": ["completed"]
  13294. },
  13295. "reason": {
  13296. "type": "string",
  13297. "enum": ["auto", "manual"]
  13298. },
  13299. "summary": {
  13300. "type": "string"
  13301. },
  13302. "recent": {
  13303. "type": "string"
  13304. }
  13305. },
  13306. "required": ["type", "id", "time", "status", "reason", "summary", "recent"],
  13307. "additionalProperties": false
  13308. },
  13309. "Session.Message.Compaction.Failed": {
  13310. "type": "object",
  13311. "properties": {
  13312. "type": {
  13313. "type": "string",
  13314. "enum": ["compaction"]
  13315. },
  13316. "id": {
  13317. "type": "string",
  13318. "allOf": [
  13319. {
  13320. "pattern": "^msg_"
  13321. }
  13322. ]
  13323. },
  13324. "metadata": {
  13325. "type": "object"
  13326. },
  13327. "time": {
  13328. "type": "object",
  13329. "properties": {
  13330. "created": {
  13331. "type": "number"
  13332. }
  13333. },
  13334. "required": ["created"],
  13335. "additionalProperties": false
  13336. },
  13337. "status": {
  13338. "type": "string",
  13339. "enum": ["failed"]
  13340. },
  13341. "reason": {
  13342. "type": "string",
  13343. "enum": ["auto", "manual"]
  13344. },
  13345. "error": {
  13346. "$ref": "#/components/schemas/Session.StructuredError"
  13347. }
  13348. },
  13349. "required": ["type", "id", "time", "status", "reason", "error"],
  13350. "additionalProperties": false
  13351. },
  13352. "Session.Message.Compaction": {
  13353. "anyOf": [
  13354. {
  13355. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  13356. },
  13357. {
  13358. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  13359. },
  13360. {
  13361. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  13362. }
  13363. ]
  13364. },
  13365. "Session.Message.Info": {
  13366. "anyOf": [
  13367. {
  13368. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  13369. },
  13370. {
  13371. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  13372. },
  13373. {
  13374. "$ref": "#/components/schemas/Session.Message.LocationSwitched"
  13375. },
  13376. {
  13377. "$ref": "#/components/schemas/Session.Message.User"
  13378. },
  13379. {
  13380. "$ref": "#/components/schemas/Session.Message.Synthetic"
  13381. },
  13382. {
  13383. "$ref": "#/components/schemas/Session.Message.System"
  13384. },
  13385. {
  13386. "$ref": "#/components/schemas/Session.Message.Skill"
  13387. },
  13388. {
  13389. "$ref": "#/components/schemas/Session.Message.Shell"
  13390. },
  13391. {
  13392. "$ref": "#/components/schemas/Session.Message.Assistant"
  13393. },
  13394. {
  13395. "$ref": "#/components/schemas/Session.Message.Compaction"
  13396. }
  13397. ]
  13398. },
  13399. "ConflictError": {
  13400. "type": "object",
  13401. "properties": {
  13402. "_tag": {
  13403. "type": "string",
  13404. "enum": ["ConflictError"]
  13405. },
  13406. "message": {
  13407. "type": "string"
  13408. },
  13409. "resource": {
  13410. "anyOf": [
  13411. {
  13412. "type": "string"
  13413. },
  13414. {
  13415. "type": "null"
  13416. }
  13417. ]
  13418. }
  13419. },
  13420. "required": ["_tag", "message"],
  13421. "additionalProperties": false
  13422. },
  13423. "SessionTransfer.Data": {
  13424. "type": "object",
  13425. "properties": {
  13426. "info": {
  13427. "$ref": "#/components/schemas/Session.Info"
  13428. },
  13429. "messages": {
  13430. "type": "array",
  13431. "items": {
  13432. "$ref": "#/components/schemas/Session.Message.Info"
  13433. }
  13434. }
  13435. },
  13436. "required": ["info", "messages"],
  13437. "additionalProperties": false
  13438. },
  13439. "SessionNotFoundError": {
  13440. "type": "object",
  13441. "properties": {
  13442. "_tag": {
  13443. "type": "string",
  13444. "enum": ["SessionNotFoundError"]
  13445. },
  13446. "sessionID": {
  13447. "type": "string"
  13448. },
  13449. "message": {
  13450. "type": "string"
  13451. }
  13452. },
  13453. "required": ["_tag", "sessionID", "message"],
  13454. "additionalProperties": false
  13455. },
  13456. "UnknownError": {
  13457. "type": "object",
  13458. "properties": {
  13459. "_tag": {
  13460. "type": "string",
  13461. "enum": ["UnknownError"]
  13462. },
  13463. "message": {
  13464. "type": "string"
  13465. },
  13466. "ref": {
  13467. "anyOf": [
  13468. {
  13469. "type": "string"
  13470. },
  13471. {
  13472. "type": "null"
  13473. }
  13474. ]
  13475. }
  13476. },
  13477. "required": ["_tag", "message"],
  13478. "additionalProperties": false
  13479. },
  13480. "SessionActive": {
  13481. "type": "object",
  13482. "properties": {
  13483. "type": {
  13484. "type": "string",
  13485. "enum": ["running"]
  13486. }
  13487. },
  13488. "required": ["type"],
  13489. "additionalProperties": false
  13490. },
  13491. "Session.ForkRequestBoundary": {
  13492. "anyOf": [
  13493. {
  13494. "type": "object",
  13495. "properties": {
  13496. "type": {
  13497. "type": "string",
  13498. "enum": ["before"]
  13499. },
  13500. "messageID": {
  13501. "type": "string",
  13502. "allOf": [
  13503. {
  13504. "pattern": "^msg_"
  13505. }
  13506. ]
  13507. }
  13508. },
  13509. "required": ["type", "messageID"],
  13510. "additionalProperties": false
  13511. },
  13512. {
  13513. "type": "object",
  13514. "properties": {
  13515. "type": {
  13516. "type": "string",
  13517. "enum": ["through"]
  13518. }
  13519. },
  13520. "required": ["type"],
  13521. "additionalProperties": false
  13522. }
  13523. ]
  13524. },
  13525. "MessageNotFoundError": {
  13526. "type": "object",
  13527. "properties": {
  13528. "_tag": {
  13529. "type": "string",
  13530. "enum": ["MessageNotFoundError"]
  13531. },
  13532. "sessionID": {
  13533. "type": "string"
  13534. },
  13535. "messageID": {
  13536. "type": "string"
  13537. },
  13538. "message": {
  13539. "type": "string"
  13540. }
  13541. },
  13542. "required": ["_tag", "sessionID", "messageID", "message"],
  13543. "additionalProperties": false
  13544. },
  13545. "Session.Inbox.Delivery": {
  13546. "type": "string",
  13547. "enum": ["steer", "queue"]
  13548. },
  13549. "PromptInput.FileAttachment": {
  13550. "type": "object",
  13551. "properties": {
  13552. "uri": {
  13553. "type": "string"
  13554. },
  13555. "name": {
  13556. "type": "string"
  13557. },
  13558. "description": {
  13559. "type": "string"
  13560. },
  13561. "mention": {
  13562. "$ref": "#/components/schemas/Prompt.Mention"
  13563. }
  13564. },
  13565. "required": ["uri"],
  13566. "additionalProperties": false
  13567. },
  13568. "PromptInput.SkillAttachment": {
  13569. "type": "object",
  13570. "properties": {
  13571. "id": {
  13572. "type": "string"
  13573. },
  13574. "mention": {
  13575. "$ref": "#/components/schemas/Prompt.Mention"
  13576. }
  13577. },
  13578. "required": ["id"],
  13579. "additionalProperties": false
  13580. },
  13581. "Session.Inbox.UserPayload": {
  13582. "type": "object",
  13583. "properties": {
  13584. "text": {
  13585. "type": "string"
  13586. },
  13587. "files": {
  13588. "type": "array",
  13589. "items": {
  13590. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13591. }
  13592. },
  13593. "agents": {
  13594. "type": "array",
  13595. "items": {
  13596. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13597. }
  13598. },
  13599. "skills": {
  13600. "type": "array",
  13601. "items": {
  13602. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  13603. }
  13604. },
  13605. "metadata": {
  13606. "type": "object"
  13607. }
  13608. },
  13609. "required": ["text"],
  13610. "additionalProperties": false
  13611. },
  13612. "Session.Inbox.User": {
  13613. "type": "object",
  13614. "properties": {
  13615. "id": {
  13616. "type": "string",
  13617. "allOf": [
  13618. {
  13619. "pattern": "^msg_"
  13620. }
  13621. ]
  13622. },
  13623. "sessionID": {
  13624. "type": "string",
  13625. "allOf": [
  13626. {
  13627. "pattern": "^ses"
  13628. }
  13629. ]
  13630. },
  13631. "timeCreated": {
  13632. "type": "number"
  13633. },
  13634. "type": {
  13635. "type": "string",
  13636. "enum": ["user"]
  13637. },
  13638. "payload": {
  13639. "$ref": "#/components/schemas/Session.Inbox.UserPayload"
  13640. },
  13641. "delivery": {
  13642. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13643. }
  13644. },
  13645. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13646. "additionalProperties": false
  13647. },
  13648. "CommandNotFoundError": {
  13649. "type": "object",
  13650. "properties": {
  13651. "_tag": {
  13652. "type": "string",
  13653. "enum": ["CommandNotFoundError"]
  13654. },
  13655. "command": {
  13656. "type": "string"
  13657. },
  13658. "message": {
  13659. "type": "string"
  13660. }
  13661. },
  13662. "required": ["_tag", "command", "message"],
  13663. "additionalProperties": false
  13664. },
  13665. "CommandEvaluationError": {
  13666. "type": "object",
  13667. "properties": {
  13668. "_tag": {
  13669. "type": "string",
  13670. "enum": ["CommandEvaluationError"]
  13671. },
  13672. "command": {
  13673. "type": "string"
  13674. },
  13675. "message": {
  13676. "type": "string"
  13677. }
  13678. },
  13679. "required": ["_tag", "command", "message"],
  13680. "additionalProperties": false
  13681. },
  13682. "SkillNotFoundError": {
  13683. "type": "object",
  13684. "properties": {
  13685. "_tag": {
  13686. "type": "string",
  13687. "enum": ["SkillNotFoundError"]
  13688. },
  13689. "skill": {
  13690. "type": "string"
  13691. },
  13692. "message": {
  13693. "type": "string"
  13694. }
  13695. },
  13696. "required": ["_tag", "skill", "message"],
  13697. "additionalProperties": false
  13698. },
  13699. "Session.Inbox.SyntheticPayload": {
  13700. "type": "object",
  13701. "properties": {
  13702. "text": {
  13703. "type": "string"
  13704. },
  13705. "description": {
  13706. "type": "string"
  13707. },
  13708. "metadata": {
  13709. "type": "object"
  13710. }
  13711. },
  13712. "required": ["text"],
  13713. "additionalProperties": false
  13714. },
  13715. "Session.Inbox.Synthetic": {
  13716. "type": "object",
  13717. "properties": {
  13718. "id": {
  13719. "type": "string",
  13720. "allOf": [
  13721. {
  13722. "pattern": "^msg_"
  13723. }
  13724. ]
  13725. },
  13726. "sessionID": {
  13727. "type": "string",
  13728. "allOf": [
  13729. {
  13730. "pattern": "^ses"
  13731. }
  13732. ]
  13733. },
  13734. "timeCreated": {
  13735. "type": "number"
  13736. },
  13737. "type": {
  13738. "type": "string",
  13739. "enum": ["synthetic"]
  13740. },
  13741. "payload": {
  13742. "$ref": "#/components/schemas/Session.Inbox.SyntheticPayload"
  13743. },
  13744. "delivery": {
  13745. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13746. }
  13747. },
  13748. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13749. "additionalProperties": false
  13750. },
  13751. "Session.Inbox.CompactionPayload": {
  13752. "anyOf": [
  13753. {
  13754. "type": "object"
  13755. },
  13756. {
  13757. "type": "array"
  13758. }
  13759. ]
  13760. },
  13761. "Session.Inbox.Compaction": {
  13762. "type": "object",
  13763. "properties": {
  13764. "id": {
  13765. "type": "string",
  13766. "allOf": [
  13767. {
  13768. "pattern": "^msg_"
  13769. }
  13770. ]
  13771. },
  13772. "sessionID": {
  13773. "type": "string",
  13774. "allOf": [
  13775. {
  13776. "pattern": "^ses"
  13777. }
  13778. ]
  13779. },
  13780. "timeCreated": {
  13781. "type": "number"
  13782. },
  13783. "type": {
  13784. "type": "string",
  13785. "enum": ["compaction"]
  13786. },
  13787. "payload": {
  13788. "$ref": "#/components/schemas/Session.Inbox.CompactionPayload"
  13789. },
  13790. "delivery": {
  13791. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13792. }
  13793. },
  13794. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13795. "additionalProperties": false
  13796. },
  13797. "ServiceUnavailableError": {
  13798. "type": "object",
  13799. "properties": {
  13800. "_tag": {
  13801. "type": "string",
  13802. "enum": ["ServiceUnavailableError"]
  13803. },
  13804. "message": {
  13805. "type": "string"
  13806. },
  13807. "service": {
  13808. "anyOf": [
  13809. {
  13810. "type": "string"
  13811. },
  13812. {
  13813. "type": "null"
  13814. }
  13815. ]
  13816. }
  13817. },
  13818. "required": ["_tag", "message"],
  13819. "additionalProperties": false
  13820. },
  13821. "SessionBusyError": {
  13822. "type": "object",
  13823. "properties": {
  13824. "_tag": {
  13825. "type": "string",
  13826. "enum": ["SessionBusyError"]
  13827. },
  13828. "sessionID": {
  13829. "type": "string"
  13830. },
  13831. "message": {
  13832. "type": "string"
  13833. }
  13834. },
  13835. "required": ["_tag", "sessionID", "message"],
  13836. "additionalProperties": false
  13837. },
  13838. "Session.Inbox.MovePayload": {
  13839. "type": "object",
  13840. "properties": {
  13841. "location": {
  13842. "$ref": "#/components/schemas/Location.Ref"
  13843. },
  13844. "projectID": {
  13845. "type": "string"
  13846. },
  13847. "subpath": {
  13848. "type": "string"
  13849. }
  13850. },
  13851. "required": ["location", "projectID"],
  13852. "additionalProperties": false
  13853. },
  13854. "Session.Inbox.Move": {
  13855. "type": "object",
  13856. "properties": {
  13857. "id": {
  13858. "type": "string",
  13859. "allOf": [
  13860. {
  13861. "pattern": "^msg_"
  13862. }
  13863. ]
  13864. },
  13865. "sessionID": {
  13866. "type": "string",
  13867. "allOf": [
  13868. {
  13869. "pattern": "^ses"
  13870. }
  13871. ]
  13872. },
  13873. "timeCreated": {
  13874. "type": "number"
  13875. },
  13876. "type": {
  13877. "type": "string",
  13878. "enum": ["move"]
  13879. },
  13880. "payload": {
  13881. "$ref": "#/components/schemas/Session.Inbox.MovePayload"
  13882. },
  13883. "delivery": {
  13884. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  13885. }
  13886. },
  13887. "required": ["id", "sessionID", "timeCreated", "type", "payload", "delivery"],
  13888. "additionalProperties": false
  13889. },
  13890. "Session.Inbox.Info": {
  13891. "anyOf": [
  13892. {
  13893. "$ref": "#/components/schemas/Session.Inbox.User"
  13894. },
  13895. {
  13896. "$ref": "#/components/schemas/Session.Inbox.Synthetic"
  13897. },
  13898. {
  13899. "$ref": "#/components/schemas/Session.Inbox.Compaction"
  13900. },
  13901. {
  13902. "$ref": "#/components/schemas/Session.Inbox.Move"
  13903. }
  13904. ]
  13905. },
  13906. "InstructionEntry.Key": {
  13907. "type": "string",
  13908. "allOf": [
  13909. {
  13910. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  13911. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  13912. }
  13913. ]
  13914. },
  13915. "InstructionEntry.Info": {
  13916. "type": "object",
  13917. "properties": {
  13918. "key": {
  13919. "$ref": "#/components/schemas/InstructionEntry.Key"
  13920. },
  13921. "value": {}
  13922. },
  13923. "required": ["key", "value"],
  13924. "additionalProperties": false
  13925. },
  13926. "InstructionEntryValueTooLargeError": {
  13927. "type": "object",
  13928. "properties": {
  13929. "_tag": {
  13930. "type": "string",
  13931. "enum": ["InstructionEntryValueTooLargeError"]
  13932. },
  13933. "actualBytes": {
  13934. "type": "integer"
  13935. },
  13936. "maxBytes": {
  13937. "type": "integer"
  13938. },
  13939. "message": {
  13940. "type": "string"
  13941. }
  13942. },
  13943. "required": ["_tag", "actualBytes", "maxBytes", "message"],
  13944. "additionalProperties": false
  13945. },
  13946. "SessionGenerateResponse": {
  13947. "type": "object",
  13948. "properties": {
  13949. "data": {
  13950. "type": "object",
  13951. "properties": {
  13952. "text": {
  13953. "type": "string"
  13954. }
  13955. },
  13956. "required": ["text"],
  13957. "additionalProperties": false
  13958. }
  13959. },
  13960. "required": ["data"],
  13961. "additionalProperties": false
  13962. },
  13963. "session.created": {
  13964. "type": "object",
  13965. "properties": {
  13966. "id": {
  13967. "type": "string",
  13968. "allOf": [
  13969. {
  13970. "pattern": "^evt_"
  13971. }
  13972. ]
  13973. },
  13974. "created": {
  13975. "type": "number"
  13976. },
  13977. "metadata": {
  13978. "type": "object"
  13979. },
  13980. "type": {
  13981. "type": "string",
  13982. "enum": ["session.created"]
  13983. },
  13984. "durable": {
  13985. "type": "object",
  13986. "properties": {
  13987. "aggregateID": {
  13988. "type": "string"
  13989. },
  13990. "seq": {
  13991. "type": "integer",
  13992. "allOf": [
  13993. {
  13994. "minimum": 0
  13995. }
  13996. ]
  13997. },
  13998. "version": {
  13999. "type": "number",
  14000. "enum": [1]
  14001. }
  14002. },
  14003. "required": ["aggregateID", "seq", "version"],
  14004. "additionalProperties": false
  14005. },
  14006. "location": {
  14007. "$ref": "#/components/schemas/Location.Ref"
  14008. },
  14009. "data": {
  14010. "type": "object",
  14011. "properties": {
  14012. "sessionID": {
  14013. "type": "string",
  14014. "allOf": [
  14015. {
  14016. "pattern": "^ses"
  14017. }
  14018. ]
  14019. },
  14020. "projectID": {
  14021. "type": "string"
  14022. },
  14023. "location": {
  14024. "$ref": "#/components/schemas/Location.Ref"
  14025. },
  14026. "subpath": {
  14027. "type": "string"
  14028. },
  14029. "parentID": {
  14030. "type": "string",
  14031. "allOf": [
  14032. {
  14033. "pattern": "^ses"
  14034. }
  14035. ]
  14036. },
  14037. "slug": {
  14038. "type": "string"
  14039. },
  14040. "title": {
  14041. "type": "string"
  14042. },
  14043. "agent": {
  14044. "type": "string"
  14045. },
  14046. "model": {
  14047. "$ref": "#/components/schemas/Model.Ref"
  14048. },
  14049. "version": {
  14050. "type": "string"
  14051. }
  14052. },
  14053. "required": ["sessionID", "projectID", "location", "slug", "version"],
  14054. "additionalProperties": false
  14055. }
  14056. },
  14057. "required": ["id", "created", "type", "durable", "data"],
  14058. "additionalProperties": false
  14059. },
  14060. "session.agent.selected": {
  14061. "type": "object",
  14062. "properties": {
  14063. "id": {
  14064. "type": "string",
  14065. "allOf": [
  14066. {
  14067. "pattern": "^evt_"
  14068. }
  14069. ]
  14070. },
  14071. "created": {
  14072. "type": "number"
  14073. },
  14074. "metadata": {
  14075. "type": "object"
  14076. },
  14077. "type": {
  14078. "type": "string",
  14079. "enum": ["session.agent.selected"]
  14080. },
  14081. "durable": {
  14082. "type": "object",
  14083. "properties": {
  14084. "aggregateID": {
  14085. "type": "string"
  14086. },
  14087. "seq": {
  14088. "type": "integer",
  14089. "allOf": [
  14090. {
  14091. "minimum": 0
  14092. }
  14093. ]
  14094. },
  14095. "version": {
  14096. "type": "number",
  14097. "enum": [1]
  14098. }
  14099. },
  14100. "required": ["aggregateID", "seq", "version"],
  14101. "additionalProperties": false
  14102. },
  14103. "location": {
  14104. "$ref": "#/components/schemas/Location.Ref"
  14105. },
  14106. "data": {
  14107. "type": "object",
  14108. "properties": {
  14109. "sessionID": {
  14110. "type": "string",
  14111. "allOf": [
  14112. {
  14113. "pattern": "^ses"
  14114. }
  14115. ]
  14116. },
  14117. "agent": {
  14118. "type": "string"
  14119. },
  14120. "previous": {
  14121. "type": "string"
  14122. }
  14123. },
  14124. "required": ["sessionID", "agent"],
  14125. "additionalProperties": false
  14126. }
  14127. },
  14128. "required": ["id", "created", "type", "durable", "data"],
  14129. "additionalProperties": false
  14130. },
  14131. "session.model.selected": {
  14132. "type": "object",
  14133. "properties": {
  14134. "id": {
  14135. "type": "string",
  14136. "allOf": [
  14137. {
  14138. "pattern": "^evt_"
  14139. }
  14140. ]
  14141. },
  14142. "created": {
  14143. "type": "number"
  14144. },
  14145. "metadata": {
  14146. "type": "object"
  14147. },
  14148. "type": {
  14149. "type": "string",
  14150. "enum": ["session.model.selected"]
  14151. },
  14152. "durable": {
  14153. "type": "object",
  14154. "properties": {
  14155. "aggregateID": {
  14156. "type": "string"
  14157. },
  14158. "seq": {
  14159. "type": "integer",
  14160. "allOf": [
  14161. {
  14162. "minimum": 0
  14163. }
  14164. ]
  14165. },
  14166. "version": {
  14167. "type": "number",
  14168. "enum": [1]
  14169. }
  14170. },
  14171. "required": ["aggregateID", "seq", "version"],
  14172. "additionalProperties": false
  14173. },
  14174. "location": {
  14175. "$ref": "#/components/schemas/Location.Ref"
  14176. },
  14177. "data": {
  14178. "type": "object",
  14179. "properties": {
  14180. "sessionID": {
  14181. "type": "string",
  14182. "allOf": [
  14183. {
  14184. "pattern": "^ses"
  14185. }
  14186. ]
  14187. },
  14188. "model": {
  14189. "$ref": "#/components/schemas/Model.Ref"
  14190. },
  14191. "previous": {
  14192. "$ref": "#/components/schemas/Model.Ref"
  14193. }
  14194. },
  14195. "required": ["sessionID", "model"],
  14196. "additionalProperties": false
  14197. }
  14198. },
  14199. "required": ["id", "created", "type", "durable", "data"],
  14200. "additionalProperties": false
  14201. },
  14202. "session.moved": {
  14203. "type": "object",
  14204. "properties": {
  14205. "id": {
  14206. "type": "string",
  14207. "allOf": [
  14208. {
  14209. "pattern": "^evt_"
  14210. }
  14211. ]
  14212. },
  14213. "created": {
  14214. "type": "number"
  14215. },
  14216. "metadata": {
  14217. "type": "object"
  14218. },
  14219. "type": {
  14220. "type": "string",
  14221. "enum": ["session.moved"]
  14222. },
  14223. "durable": {
  14224. "type": "object",
  14225. "properties": {
  14226. "aggregateID": {
  14227. "type": "string"
  14228. },
  14229. "seq": {
  14230. "type": "integer",
  14231. "allOf": [
  14232. {
  14233. "minimum": 0
  14234. }
  14235. ]
  14236. },
  14237. "version": {
  14238. "type": "number",
  14239. "enum": [1]
  14240. }
  14241. },
  14242. "required": ["aggregateID", "seq", "version"],
  14243. "additionalProperties": false
  14244. },
  14245. "location": {
  14246. "$ref": "#/components/schemas/Location.Ref"
  14247. },
  14248. "data": {
  14249. "type": "object",
  14250. "properties": {
  14251. "sessionID": {
  14252. "type": "string",
  14253. "allOf": [
  14254. {
  14255. "pattern": "^ses"
  14256. }
  14257. ]
  14258. },
  14259. "location": {
  14260. "$ref": "#/components/schemas/Location.Ref"
  14261. },
  14262. "projectID": {
  14263. "type": "string"
  14264. },
  14265. "subpath": {
  14266. "type": "string"
  14267. }
  14268. },
  14269. "required": ["sessionID", "location", "projectID"],
  14270. "additionalProperties": false
  14271. }
  14272. },
  14273. "required": ["id", "created", "type", "durable", "data"],
  14274. "additionalProperties": false
  14275. },
  14276. "session.renamed": {
  14277. "type": "object",
  14278. "properties": {
  14279. "id": {
  14280. "type": "string",
  14281. "allOf": [
  14282. {
  14283. "pattern": "^evt_"
  14284. }
  14285. ]
  14286. },
  14287. "created": {
  14288. "type": "number"
  14289. },
  14290. "metadata": {
  14291. "type": "object"
  14292. },
  14293. "type": {
  14294. "type": "string",
  14295. "enum": ["session.renamed"]
  14296. },
  14297. "durable": {
  14298. "type": "object",
  14299. "properties": {
  14300. "aggregateID": {
  14301. "type": "string"
  14302. },
  14303. "seq": {
  14304. "type": "integer",
  14305. "allOf": [
  14306. {
  14307. "minimum": 0
  14308. }
  14309. ]
  14310. },
  14311. "version": {
  14312. "type": "number",
  14313. "enum": [1]
  14314. }
  14315. },
  14316. "required": ["aggregateID", "seq", "version"],
  14317. "additionalProperties": false
  14318. },
  14319. "location": {
  14320. "$ref": "#/components/schemas/Location.Ref"
  14321. },
  14322. "data": {
  14323. "type": "object",
  14324. "properties": {
  14325. "sessionID": {
  14326. "type": "string",
  14327. "allOf": [
  14328. {
  14329. "pattern": "^ses"
  14330. }
  14331. ]
  14332. },
  14333. "title": {
  14334. "type": "string"
  14335. }
  14336. },
  14337. "required": ["sessionID", "title"],
  14338. "additionalProperties": false
  14339. }
  14340. },
  14341. "required": ["id", "created", "type", "durable", "data"],
  14342. "additionalProperties": false
  14343. },
  14344. "session.viewed": {
  14345. "type": "object",
  14346. "properties": {
  14347. "id": {
  14348. "type": "string",
  14349. "allOf": [
  14350. {
  14351. "pattern": "^evt_"
  14352. }
  14353. ]
  14354. },
  14355. "created": {
  14356. "type": "number"
  14357. },
  14358. "metadata": {
  14359. "type": "object"
  14360. },
  14361. "type": {
  14362. "type": "string",
  14363. "enum": ["session.viewed"]
  14364. },
  14365. "durable": {
  14366. "type": "object",
  14367. "properties": {
  14368. "aggregateID": {
  14369. "type": "string"
  14370. },
  14371. "seq": {
  14372. "type": "integer",
  14373. "allOf": [
  14374. {
  14375. "minimum": 0
  14376. }
  14377. ]
  14378. },
  14379. "version": {
  14380. "type": "number",
  14381. "enum": [1]
  14382. }
  14383. },
  14384. "required": ["aggregateID", "seq", "version"],
  14385. "additionalProperties": false
  14386. },
  14387. "location": {
  14388. "$ref": "#/components/schemas/Location.Ref"
  14389. },
  14390. "data": {
  14391. "type": "object",
  14392. "properties": {
  14393. "sessionID": {
  14394. "type": "string",
  14395. "allOf": [
  14396. {
  14397. "pattern": "^ses"
  14398. }
  14399. ]
  14400. }
  14401. },
  14402. "required": ["sessionID"],
  14403. "additionalProperties": false
  14404. }
  14405. },
  14406. "required": ["id", "created", "type", "durable", "data"],
  14407. "additionalProperties": false
  14408. },
  14409. "session.deleted": {
  14410. "type": "object",
  14411. "properties": {
  14412. "id": {
  14413. "type": "string",
  14414. "allOf": [
  14415. {
  14416. "pattern": "^evt_"
  14417. }
  14418. ]
  14419. },
  14420. "created": {
  14421. "type": "number"
  14422. },
  14423. "metadata": {
  14424. "type": "object"
  14425. },
  14426. "type": {
  14427. "type": "string",
  14428. "enum": ["session.deleted"]
  14429. },
  14430. "durable": {
  14431. "type": "object",
  14432. "properties": {
  14433. "aggregateID": {
  14434. "type": "string"
  14435. },
  14436. "seq": {
  14437. "type": "integer",
  14438. "allOf": [
  14439. {
  14440. "minimum": 0
  14441. }
  14442. ]
  14443. },
  14444. "version": {
  14445. "type": "number",
  14446. "enum": [2]
  14447. }
  14448. },
  14449. "required": ["aggregateID", "seq", "version"],
  14450. "additionalProperties": false
  14451. },
  14452. "location": {
  14453. "$ref": "#/components/schemas/Location.Ref"
  14454. },
  14455. "data": {
  14456. "type": "object",
  14457. "properties": {
  14458. "sessionID": {
  14459. "type": "string",
  14460. "allOf": [
  14461. {
  14462. "pattern": "^ses"
  14463. }
  14464. ]
  14465. }
  14466. },
  14467. "required": ["sessionID"],
  14468. "additionalProperties": false
  14469. }
  14470. },
  14471. "required": ["id", "created", "type", "durable", "data"],
  14472. "additionalProperties": false
  14473. },
  14474. "session.forked": {
  14475. "type": "object",
  14476. "properties": {
  14477. "id": {
  14478. "type": "string",
  14479. "allOf": [
  14480. {
  14481. "pattern": "^evt_"
  14482. }
  14483. ]
  14484. },
  14485. "created": {
  14486. "type": "number"
  14487. },
  14488. "metadata": {
  14489. "type": "object"
  14490. },
  14491. "type": {
  14492. "type": "string",
  14493. "enum": ["session.forked"]
  14494. },
  14495. "durable": {
  14496. "type": "object",
  14497. "properties": {
  14498. "aggregateID": {
  14499. "type": "string"
  14500. },
  14501. "seq": {
  14502. "type": "integer",
  14503. "allOf": [
  14504. {
  14505. "minimum": 0
  14506. }
  14507. ]
  14508. },
  14509. "version": {
  14510. "type": "number",
  14511. "enum": [2]
  14512. }
  14513. },
  14514. "required": ["aggregateID", "seq", "version"],
  14515. "additionalProperties": false
  14516. },
  14517. "location": {
  14518. "$ref": "#/components/schemas/Location.Ref"
  14519. },
  14520. "data": {
  14521. "type": "object",
  14522. "properties": {
  14523. "sessionID": {
  14524. "type": "string",
  14525. "allOf": [
  14526. {
  14527. "pattern": "^ses"
  14528. }
  14529. ]
  14530. },
  14531. "parentID": {
  14532. "type": "string",
  14533. "allOf": [
  14534. {
  14535. "pattern": "^ses"
  14536. }
  14537. ]
  14538. },
  14539. "boundary": {
  14540. "$ref": "#/components/schemas/Session.ForkBoundary"
  14541. },
  14542. "instructions": {
  14543. "type": "object",
  14544. "patternProperties": {
  14545. "^[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._/-]*$": {
  14546. "type": "string",
  14547. "allOf": [
  14548. {
  14549. "pattern": "^[a-f0-9]{64}$"
  14550. }
  14551. ]
  14552. }
  14553. }
  14554. }
  14555. },
  14556. "required": ["sessionID", "parentID", "boundary"],
  14557. "additionalProperties": false
  14558. }
  14559. },
  14560. "required": ["id", "created", "type", "durable", "data"],
  14561. "additionalProperties": false
  14562. },
  14563. "session.inbox.delivered": {
  14564. "type": "object",
  14565. "properties": {
  14566. "id": {
  14567. "type": "string",
  14568. "allOf": [
  14569. {
  14570. "pattern": "^evt_"
  14571. }
  14572. ]
  14573. },
  14574. "created": {
  14575. "type": "number"
  14576. },
  14577. "metadata": {
  14578. "type": "object"
  14579. },
  14580. "type": {
  14581. "type": "string",
  14582. "enum": ["session.inbox.delivered"]
  14583. },
  14584. "durable": {
  14585. "type": "object",
  14586. "properties": {
  14587. "aggregateID": {
  14588. "type": "string"
  14589. },
  14590. "seq": {
  14591. "type": "integer",
  14592. "allOf": [
  14593. {
  14594. "minimum": 0
  14595. }
  14596. ]
  14597. },
  14598. "version": {
  14599. "type": "number",
  14600. "enum": [1]
  14601. }
  14602. },
  14603. "required": ["aggregateID", "seq", "version"],
  14604. "additionalProperties": false
  14605. },
  14606. "location": {
  14607. "$ref": "#/components/schemas/Location.Ref"
  14608. },
  14609. "data": {
  14610. "type": "object",
  14611. "properties": {
  14612. "sessionID": {
  14613. "type": "string",
  14614. "allOf": [
  14615. {
  14616. "pattern": "^ses"
  14617. }
  14618. ]
  14619. },
  14620. "inboxID": {
  14621. "type": "string",
  14622. "allOf": [
  14623. {
  14624. "pattern": "^msg_"
  14625. }
  14626. ]
  14627. }
  14628. },
  14629. "required": ["sessionID", "inboxID"],
  14630. "additionalProperties": false
  14631. }
  14632. },
  14633. "required": ["id", "created", "type", "durable", "data"],
  14634. "additionalProperties": false
  14635. },
  14636. "Session.Inbox.UserPayload1": {
  14637. "type": "object",
  14638. "properties": {
  14639. "text": {
  14640. "type": "string"
  14641. },
  14642. "files": {
  14643. "type": "array",
  14644. "items": {
  14645. "$ref": "#/components/schemas/Prompt.FileAttachment"
  14646. }
  14647. },
  14648. "agents": {
  14649. "type": "array",
  14650. "items": {
  14651. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  14652. }
  14653. },
  14654. "skills": {
  14655. "type": "array",
  14656. "items": {
  14657. "$ref": "#/components/schemas/Prompt.SkillAttachment"
  14658. }
  14659. },
  14660. "metadata": {
  14661. "type": "object"
  14662. }
  14663. },
  14664. "required": ["text"],
  14665. "additionalProperties": false
  14666. },
  14667. "Session.Inbox.SyntheticPayload1": {
  14668. "type": "object",
  14669. "properties": {
  14670. "text": {
  14671. "type": "string"
  14672. },
  14673. "description": {
  14674. "type": "string"
  14675. },
  14676. "metadata": {
  14677. "type": "object"
  14678. }
  14679. },
  14680. "required": ["text"],
  14681. "additionalProperties": false
  14682. },
  14683. "Session.Inbox.Item": {
  14684. "anyOf": [
  14685. {
  14686. "type": "object",
  14687. "properties": {
  14688. "type": {
  14689. "type": "string",
  14690. "enum": ["user"]
  14691. },
  14692. "payload": {
  14693. "$ref": "#/components/schemas/Session.Inbox.UserPayload1"
  14694. },
  14695. "delivery": {
  14696. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14697. }
  14698. },
  14699. "required": ["type", "payload", "delivery"],
  14700. "additionalProperties": false
  14701. },
  14702. {
  14703. "type": "object",
  14704. "properties": {
  14705. "type": {
  14706. "type": "string",
  14707. "enum": ["synthetic"]
  14708. },
  14709. "payload": {
  14710. "$ref": "#/components/schemas/Session.Inbox.SyntheticPayload1"
  14711. },
  14712. "delivery": {
  14713. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14714. }
  14715. },
  14716. "required": ["type", "payload", "delivery"],
  14717. "additionalProperties": false
  14718. },
  14719. {
  14720. "type": "object",
  14721. "properties": {
  14722. "type": {
  14723. "type": "string",
  14724. "enum": ["compaction"]
  14725. },
  14726. "payload": {
  14727. "$ref": "#/components/schemas/Session.Inbox.CompactionPayload"
  14728. },
  14729. "delivery": {
  14730. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14731. }
  14732. },
  14733. "required": ["type", "payload", "delivery"],
  14734. "additionalProperties": false
  14735. },
  14736. {
  14737. "type": "object",
  14738. "properties": {
  14739. "type": {
  14740. "type": "string",
  14741. "enum": ["move"]
  14742. },
  14743. "payload": {
  14744. "$ref": "#/components/schemas/Session.Inbox.MovePayload"
  14745. },
  14746. "delivery": {
  14747. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14748. }
  14749. },
  14750. "required": ["type", "payload", "delivery"],
  14751. "additionalProperties": false
  14752. }
  14753. ]
  14754. },
  14755. "session.inbox.enqueued": {
  14756. "type": "object",
  14757. "properties": {
  14758. "id": {
  14759. "type": "string",
  14760. "allOf": [
  14761. {
  14762. "pattern": "^evt_"
  14763. }
  14764. ]
  14765. },
  14766. "created": {
  14767. "type": "number"
  14768. },
  14769. "metadata": {
  14770. "type": "object"
  14771. },
  14772. "type": {
  14773. "type": "string",
  14774. "enum": ["session.inbox.enqueued"]
  14775. },
  14776. "durable": {
  14777. "type": "object",
  14778. "properties": {
  14779. "aggregateID": {
  14780. "type": "string"
  14781. },
  14782. "seq": {
  14783. "type": "integer",
  14784. "allOf": [
  14785. {
  14786. "minimum": 0
  14787. }
  14788. ]
  14789. },
  14790. "version": {
  14791. "type": "number",
  14792. "enum": [1]
  14793. }
  14794. },
  14795. "required": ["aggregateID", "seq", "version"],
  14796. "additionalProperties": false
  14797. },
  14798. "location": {
  14799. "$ref": "#/components/schemas/Location.Ref"
  14800. },
  14801. "data": {
  14802. "type": "object",
  14803. "properties": {
  14804. "sessionID": {
  14805. "type": "string",
  14806. "allOf": [
  14807. {
  14808. "pattern": "^ses"
  14809. }
  14810. ]
  14811. },
  14812. "inboxID": {
  14813. "type": "string",
  14814. "allOf": [
  14815. {
  14816. "pattern": "^msg_"
  14817. }
  14818. ]
  14819. },
  14820. "item": {
  14821. "$ref": "#/components/schemas/Session.Inbox.Item"
  14822. }
  14823. },
  14824. "required": ["sessionID", "inboxID", "item"],
  14825. "additionalProperties": false
  14826. }
  14827. },
  14828. "required": ["id", "created", "type", "durable", "data"],
  14829. "additionalProperties": false
  14830. },
  14831. "session.inbox.cancelled": {
  14832. "type": "object",
  14833. "properties": {
  14834. "id": {
  14835. "type": "string",
  14836. "allOf": [
  14837. {
  14838. "pattern": "^evt_"
  14839. }
  14840. ]
  14841. },
  14842. "created": {
  14843. "type": "number"
  14844. },
  14845. "metadata": {
  14846. "type": "object"
  14847. },
  14848. "type": {
  14849. "type": "string",
  14850. "enum": ["session.inbox.cancelled"]
  14851. },
  14852. "durable": {
  14853. "type": "object",
  14854. "properties": {
  14855. "aggregateID": {
  14856. "type": "string"
  14857. },
  14858. "seq": {
  14859. "type": "integer",
  14860. "allOf": [
  14861. {
  14862. "minimum": 0
  14863. }
  14864. ]
  14865. },
  14866. "version": {
  14867. "type": "number",
  14868. "enum": [1]
  14869. }
  14870. },
  14871. "required": ["aggregateID", "seq", "version"],
  14872. "additionalProperties": false
  14873. },
  14874. "location": {
  14875. "$ref": "#/components/schemas/Location.Ref"
  14876. },
  14877. "data": {
  14878. "type": "object",
  14879. "properties": {
  14880. "sessionID": {
  14881. "type": "string",
  14882. "allOf": [
  14883. {
  14884. "pattern": "^ses"
  14885. }
  14886. ]
  14887. },
  14888. "inboxID": {
  14889. "type": "string",
  14890. "allOf": [
  14891. {
  14892. "pattern": "^msg_"
  14893. }
  14894. ]
  14895. }
  14896. },
  14897. "required": ["sessionID", "inboxID"],
  14898. "additionalProperties": false
  14899. }
  14900. },
  14901. "required": ["id", "created", "type", "durable", "data"],
  14902. "additionalProperties": false
  14903. },
  14904. "session.inbox.delivery.changed": {
  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": ["session.inbox.delivery.changed"]
  14924. },
  14925. "durable": {
  14926. "type": "object",
  14927. "properties": {
  14928. "aggregateID": {
  14929. "type": "string"
  14930. },
  14931. "seq": {
  14932. "type": "integer",
  14933. "allOf": [
  14934. {
  14935. "minimum": 0
  14936. }
  14937. ]
  14938. },
  14939. "version": {
  14940. "type": "number",
  14941. "enum": [1]
  14942. }
  14943. },
  14944. "required": ["aggregateID", "seq", "version"],
  14945. "additionalProperties": false
  14946. },
  14947. "location": {
  14948. "$ref": "#/components/schemas/Location.Ref"
  14949. },
  14950. "data": {
  14951. "type": "object",
  14952. "properties": {
  14953. "sessionID": {
  14954. "type": "string",
  14955. "allOf": [
  14956. {
  14957. "pattern": "^ses"
  14958. }
  14959. ]
  14960. },
  14961. "inboxID": {
  14962. "type": "string",
  14963. "allOf": [
  14964. {
  14965. "pattern": "^msg_"
  14966. }
  14967. ]
  14968. },
  14969. "delivery": {
  14970. "$ref": "#/components/schemas/Session.Inbox.Delivery"
  14971. }
  14972. },
  14973. "required": ["sessionID", "inboxID", "delivery"],
  14974. "additionalProperties": false
  14975. }
  14976. },
  14977. "required": ["id", "created", "type", "durable", "data"],
  14978. "additionalProperties": false
  14979. },
  14980. "session.execution.started": {
  14981. "type": "object",
  14982. "properties": {
  14983. "id": {
  14984. "type": "string",
  14985. "allOf": [
  14986. {
  14987. "pattern": "^evt_"
  14988. }
  14989. ]
  14990. },
  14991. "created": {
  14992. "type": "number"
  14993. },
  14994. "metadata": {
  14995. "type": "object"
  14996. },
  14997. "type": {
  14998. "type": "string",
  14999. "enum": ["session.execution.started"]
  15000. },
  15001. "durable": {
  15002. "type": "object",
  15003. "properties": {
  15004. "aggregateID": {
  15005. "type": "string"
  15006. },
  15007. "seq": {
  15008. "type": "integer",
  15009. "allOf": [
  15010. {
  15011. "minimum": 0
  15012. }
  15013. ]
  15014. },
  15015. "version": {
  15016. "type": "number",
  15017. "enum": [1]
  15018. }
  15019. },
  15020. "required": ["aggregateID", "seq", "version"],
  15021. "additionalProperties": false
  15022. },
  15023. "location": {
  15024. "$ref": "#/components/schemas/Location.Ref"
  15025. },
  15026. "data": {
  15027. "type": "object",
  15028. "properties": {
  15029. "sessionID": {
  15030. "type": "string",
  15031. "allOf": [
  15032. {
  15033. "pattern": "^ses"
  15034. }
  15035. ]
  15036. }
  15037. },
  15038. "required": ["sessionID"],
  15039. "additionalProperties": false
  15040. }
  15041. },
  15042. "required": ["id", "created", "type", "durable", "data"],
  15043. "additionalProperties": false
  15044. },
  15045. "session.execution.succeeded": {
  15046. "type": "object",
  15047. "properties": {
  15048. "id": {
  15049. "type": "string",
  15050. "allOf": [
  15051. {
  15052. "pattern": "^evt_"
  15053. }
  15054. ]
  15055. },
  15056. "created": {
  15057. "type": "number"
  15058. },
  15059. "metadata": {
  15060. "type": "object"
  15061. },
  15062. "type": {
  15063. "type": "string",
  15064. "enum": ["session.execution.succeeded"]
  15065. },
  15066. "durable": {
  15067. "type": "object",
  15068. "properties": {
  15069. "aggregateID": {
  15070. "type": "string"
  15071. },
  15072. "seq": {
  15073. "type": "integer",
  15074. "allOf": [
  15075. {
  15076. "minimum": 0
  15077. }
  15078. ]
  15079. },
  15080. "version": {
  15081. "type": "number",
  15082. "enum": [1]
  15083. }
  15084. },
  15085. "required": ["aggregateID", "seq", "version"],
  15086. "additionalProperties": false
  15087. },
  15088. "location": {
  15089. "$ref": "#/components/schemas/Location.Ref"
  15090. },
  15091. "data": {
  15092. "type": "object",
  15093. "properties": {
  15094. "sessionID": {
  15095. "type": "string",
  15096. "allOf": [
  15097. {
  15098. "pattern": "^ses"
  15099. }
  15100. ]
  15101. }
  15102. },
  15103. "required": ["sessionID"],
  15104. "additionalProperties": false
  15105. }
  15106. },
  15107. "required": ["id", "created", "type", "durable", "data"],
  15108. "additionalProperties": false
  15109. },
  15110. "session.execution.failed": {
  15111. "type": "object",
  15112. "properties": {
  15113. "id": {
  15114. "type": "string",
  15115. "allOf": [
  15116. {
  15117. "pattern": "^evt_"
  15118. }
  15119. ]
  15120. },
  15121. "created": {
  15122. "type": "number"
  15123. },
  15124. "metadata": {
  15125. "type": "object"
  15126. },
  15127. "type": {
  15128. "type": "string",
  15129. "enum": ["session.execution.failed"]
  15130. },
  15131. "durable": {
  15132. "type": "object",
  15133. "properties": {
  15134. "aggregateID": {
  15135. "type": "string"
  15136. },
  15137. "seq": {
  15138. "type": "integer",
  15139. "allOf": [
  15140. {
  15141. "minimum": 0
  15142. }
  15143. ]
  15144. },
  15145. "version": {
  15146. "type": "number",
  15147. "enum": [1]
  15148. }
  15149. },
  15150. "required": ["aggregateID", "seq", "version"],
  15151. "additionalProperties": false
  15152. },
  15153. "location": {
  15154. "$ref": "#/components/schemas/Location.Ref"
  15155. },
  15156. "data": {
  15157. "type": "object",
  15158. "properties": {
  15159. "sessionID": {
  15160. "type": "string",
  15161. "allOf": [
  15162. {
  15163. "pattern": "^ses"
  15164. }
  15165. ]
  15166. },
  15167. "error": {
  15168. "$ref": "#/components/schemas/Session.StructuredError"
  15169. }
  15170. },
  15171. "required": ["sessionID", "error"],
  15172. "additionalProperties": false
  15173. }
  15174. },
  15175. "required": ["id", "created", "type", "durable", "data"],
  15176. "additionalProperties": false
  15177. },
  15178. "session.execution.interrupted": {
  15179. "type": "object",
  15180. "properties": {
  15181. "id": {
  15182. "type": "string",
  15183. "allOf": [
  15184. {
  15185. "pattern": "^evt_"
  15186. }
  15187. ]
  15188. },
  15189. "created": {
  15190. "type": "number"
  15191. },
  15192. "metadata": {
  15193. "type": "object"
  15194. },
  15195. "type": {
  15196. "type": "string",
  15197. "enum": ["session.execution.interrupted"]
  15198. },
  15199. "durable": {
  15200. "type": "object",
  15201. "properties": {
  15202. "aggregateID": {
  15203. "type": "string"
  15204. },
  15205. "seq": {
  15206. "type": "integer",
  15207. "allOf": [
  15208. {
  15209. "minimum": 0
  15210. }
  15211. ]
  15212. },
  15213. "version": {
  15214. "type": "number",
  15215. "enum": [1]
  15216. }
  15217. },
  15218. "required": ["aggregateID", "seq", "version"],
  15219. "additionalProperties": false
  15220. },
  15221. "location": {
  15222. "$ref": "#/components/schemas/Location.Ref"
  15223. },
  15224. "data": {
  15225. "type": "object",
  15226. "properties": {
  15227. "sessionID": {
  15228. "type": "string",
  15229. "allOf": [
  15230. {
  15231. "pattern": "^ses"
  15232. }
  15233. ]
  15234. },
  15235. "reason": {
  15236. "type": "string",
  15237. "enum": ["user", "shutdown", "superseded"]
  15238. }
  15239. },
  15240. "required": ["sessionID", "reason"],
  15241. "additionalProperties": false
  15242. }
  15243. },
  15244. "required": ["id", "created", "type", "durable", "data"],
  15245. "additionalProperties": false
  15246. },
  15247. "session.instructions.updated": {
  15248. "type": "object",
  15249. "properties": {
  15250. "id": {
  15251. "type": "string",
  15252. "allOf": [
  15253. {
  15254. "pattern": "^evt_"
  15255. }
  15256. ]
  15257. },
  15258. "created": {
  15259. "type": "number"
  15260. },
  15261. "metadata": {
  15262. "type": "object"
  15263. },
  15264. "type": {
  15265. "type": "string",
  15266. "enum": ["session.instructions.updated"]
  15267. },
  15268. "durable": {
  15269. "type": "object",
  15270. "properties": {
  15271. "aggregateID": {
  15272. "type": "string"
  15273. },
  15274. "seq": {
  15275. "type": "integer",
  15276. "allOf": [
  15277. {
  15278. "minimum": 0
  15279. }
  15280. ]
  15281. },
  15282. "version": {
  15283. "type": "number",
  15284. "enum": [2]
  15285. }
  15286. },
  15287. "required": ["aggregateID", "seq", "version"],
  15288. "additionalProperties": false
  15289. },
  15290. "location": {
  15291. "$ref": "#/components/schemas/Location.Ref"
  15292. },
  15293. "data": {
  15294. "type": "object",
  15295. "properties": {
  15296. "sessionID": {
  15297. "type": "string",
  15298. "allOf": [
  15299. {
  15300. "pattern": "^ses"
  15301. }
  15302. ]
  15303. },
  15304. "delta": {
  15305. "type": "object",
  15306. "additionalProperties": {
  15307. "anyOf": [
  15308. {
  15309. "type": "string",
  15310. "allOf": [
  15311. {
  15312. "pattern": "^[a-f0-9]{64}$"
  15313. }
  15314. ]
  15315. },
  15316. {
  15317. "type": "string",
  15318. "enum": ["removed"]
  15319. }
  15320. ]
  15321. }
  15322. },
  15323. "text": {
  15324. "type": "string"
  15325. }
  15326. },
  15327. "required": ["sessionID", "delta"],
  15328. "additionalProperties": false
  15329. }
  15330. },
  15331. "required": ["id", "created", "type", "durable", "data"],
  15332. "additionalProperties": false
  15333. },
  15334. "session.synthetic": {
  15335. "type": "object",
  15336. "properties": {
  15337. "id": {
  15338. "type": "string",
  15339. "allOf": [
  15340. {
  15341. "pattern": "^evt_"
  15342. }
  15343. ]
  15344. },
  15345. "created": {
  15346. "type": "number"
  15347. },
  15348. "metadata": {
  15349. "type": "object"
  15350. },
  15351. "type": {
  15352. "type": "string",
  15353. "enum": ["session.synthetic"]
  15354. },
  15355. "durable": {
  15356. "type": "object",
  15357. "properties": {
  15358. "aggregateID": {
  15359. "type": "string"
  15360. },
  15361. "seq": {
  15362. "type": "integer",
  15363. "allOf": [
  15364. {
  15365. "minimum": 0
  15366. }
  15367. ]
  15368. },
  15369. "version": {
  15370. "type": "number",
  15371. "enum": [1]
  15372. }
  15373. },
  15374. "required": ["aggregateID", "seq", "version"],
  15375. "additionalProperties": false
  15376. },
  15377. "location": {
  15378. "$ref": "#/components/schemas/Location.Ref"
  15379. },
  15380. "data": {
  15381. "type": "object",
  15382. "properties": {
  15383. "sessionID": {
  15384. "type": "string",
  15385. "allOf": [
  15386. {
  15387. "pattern": "^ses"
  15388. }
  15389. ]
  15390. },
  15391. "text": {
  15392. "type": "string"
  15393. },
  15394. "description": {
  15395. "type": "string"
  15396. },
  15397. "metadata": {
  15398. "type": "object"
  15399. }
  15400. },
  15401. "required": ["sessionID", "text"],
  15402. "additionalProperties": false
  15403. }
  15404. },
  15405. "required": ["id", "created", "type", "durable", "data"],
  15406. "additionalProperties": false
  15407. },
  15408. "session.skill.activated": {
  15409. "type": "object",
  15410. "properties": {
  15411. "id": {
  15412. "type": "string",
  15413. "allOf": [
  15414. {
  15415. "pattern": "^evt_"
  15416. }
  15417. ]
  15418. },
  15419. "created": {
  15420. "type": "number"
  15421. },
  15422. "metadata": {
  15423. "type": "object"
  15424. },
  15425. "type": {
  15426. "type": "string",
  15427. "enum": ["session.skill.activated"]
  15428. },
  15429. "durable": {
  15430. "type": "object",
  15431. "properties": {
  15432. "aggregateID": {
  15433. "type": "string"
  15434. },
  15435. "seq": {
  15436. "type": "integer",
  15437. "allOf": [
  15438. {
  15439. "minimum": 0
  15440. }
  15441. ]
  15442. },
  15443. "version": {
  15444. "type": "number",
  15445. "enum": [1]
  15446. }
  15447. },
  15448. "required": ["aggregateID", "seq", "version"],
  15449. "additionalProperties": false
  15450. },
  15451. "location": {
  15452. "$ref": "#/components/schemas/Location.Ref"
  15453. },
  15454. "data": {
  15455. "type": "object",
  15456. "properties": {
  15457. "sessionID": {
  15458. "type": "string",
  15459. "allOf": [
  15460. {
  15461. "pattern": "^ses"
  15462. }
  15463. ]
  15464. },
  15465. "id": {
  15466. "type": "string"
  15467. },
  15468. "name": {
  15469. "type": "string"
  15470. },
  15471. "text": {
  15472. "type": "string"
  15473. }
  15474. },
  15475. "required": ["sessionID", "id", "name", "text"],
  15476. "additionalProperties": false
  15477. }
  15478. },
  15479. "required": ["id", "created", "type", "durable", "data"],
  15480. "additionalProperties": false
  15481. },
  15482. "Shell.Info": {
  15483. "type": "object",
  15484. "properties": {
  15485. "id": {
  15486. "type": "string",
  15487. "allOf": [
  15488. {
  15489. "pattern": "^sh_"
  15490. }
  15491. ]
  15492. },
  15493. "status": {
  15494. "type": "string",
  15495. "enum": ["running", "exited", "timeout", "killed"]
  15496. },
  15497. "command": {
  15498. "type": "string"
  15499. },
  15500. "cwd": {
  15501. "type": "string"
  15502. },
  15503. "shell": {
  15504. "type": "string"
  15505. },
  15506. "file": {
  15507. "type": "string"
  15508. },
  15509. "pid": {
  15510. "type": "integer",
  15511. "allOf": [
  15512. {
  15513. "minimum": 0
  15514. }
  15515. ]
  15516. },
  15517. "exit": {
  15518. "type": "number"
  15519. },
  15520. "metadata": {
  15521. "type": "object"
  15522. },
  15523. "time": {
  15524. "type": "object",
  15525. "properties": {
  15526. "started": {
  15527. "type": "number"
  15528. },
  15529. "completed": {
  15530. "type": "number"
  15531. }
  15532. },
  15533. "required": ["started"],
  15534. "additionalProperties": false
  15535. }
  15536. },
  15537. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  15538. "additionalProperties": false
  15539. },
  15540. "session.shell.started": {
  15541. "type": "object",
  15542. "properties": {
  15543. "id": {
  15544. "type": "string",
  15545. "allOf": [
  15546. {
  15547. "pattern": "^evt_"
  15548. }
  15549. ]
  15550. },
  15551. "created": {
  15552. "type": "number"
  15553. },
  15554. "metadata": {
  15555. "type": "object"
  15556. },
  15557. "type": {
  15558. "type": "string",
  15559. "enum": ["session.shell.started"]
  15560. },
  15561. "durable": {
  15562. "type": "object",
  15563. "properties": {
  15564. "aggregateID": {
  15565. "type": "string"
  15566. },
  15567. "seq": {
  15568. "type": "integer",
  15569. "allOf": [
  15570. {
  15571. "minimum": 0
  15572. }
  15573. ]
  15574. },
  15575. "version": {
  15576. "type": "number",
  15577. "enum": [1]
  15578. }
  15579. },
  15580. "required": ["aggregateID", "seq", "version"],
  15581. "additionalProperties": false
  15582. },
  15583. "location": {
  15584. "$ref": "#/components/schemas/Location.Ref"
  15585. },
  15586. "data": {
  15587. "type": "object",
  15588. "properties": {
  15589. "sessionID": {
  15590. "type": "string",
  15591. "allOf": [
  15592. {
  15593. "pattern": "^ses"
  15594. }
  15595. ]
  15596. },
  15597. "shell": {
  15598. "$ref": "#/components/schemas/Shell.Info"
  15599. }
  15600. },
  15601. "required": ["sessionID", "shell"],
  15602. "additionalProperties": false
  15603. }
  15604. },
  15605. "required": ["id", "created", "type", "durable", "data"],
  15606. "additionalProperties": false
  15607. },
  15608. "session.shell.ended": {
  15609. "type": "object",
  15610. "properties": {
  15611. "id": {
  15612. "type": "string",
  15613. "allOf": [
  15614. {
  15615. "pattern": "^evt_"
  15616. }
  15617. ]
  15618. },
  15619. "created": {
  15620. "type": "number"
  15621. },
  15622. "metadata": {
  15623. "type": "object"
  15624. },
  15625. "type": {
  15626. "type": "string",
  15627. "enum": ["session.shell.ended"]
  15628. },
  15629. "durable": {
  15630. "type": "object",
  15631. "properties": {
  15632. "aggregateID": {
  15633. "type": "string"
  15634. },
  15635. "seq": {
  15636. "type": "integer",
  15637. "allOf": [
  15638. {
  15639. "minimum": 0
  15640. }
  15641. ]
  15642. },
  15643. "version": {
  15644. "type": "number",
  15645. "enum": [1]
  15646. }
  15647. },
  15648. "required": ["aggregateID", "seq", "version"],
  15649. "additionalProperties": false
  15650. },
  15651. "location": {
  15652. "$ref": "#/components/schemas/Location.Ref"
  15653. },
  15654. "data": {
  15655. "type": "object",
  15656. "properties": {
  15657. "sessionID": {
  15658. "type": "string",
  15659. "allOf": [
  15660. {
  15661. "pattern": "^ses"
  15662. }
  15663. ]
  15664. },
  15665. "shell": {
  15666. "$ref": "#/components/schemas/Shell.Info"
  15667. },
  15668. "output": {
  15669. "type": "object",
  15670. "properties": {
  15671. "output": {
  15672. "type": "string"
  15673. },
  15674. "cursor": {
  15675. "type": "integer",
  15676. "allOf": [
  15677. {
  15678. "minimum": 0
  15679. }
  15680. ]
  15681. },
  15682. "size": {
  15683. "type": "integer",
  15684. "allOf": [
  15685. {
  15686. "minimum": 0
  15687. }
  15688. ]
  15689. },
  15690. "truncated": {
  15691. "type": "boolean"
  15692. }
  15693. },
  15694. "required": ["output", "cursor", "size", "truncated"],
  15695. "additionalProperties": false
  15696. }
  15697. },
  15698. "required": ["sessionID", "shell", "output"],
  15699. "additionalProperties": false
  15700. }
  15701. },
  15702. "required": ["id", "created", "type", "durable", "data"],
  15703. "additionalProperties": false
  15704. },
  15705. "session.step.started": {
  15706. "type": "object",
  15707. "properties": {
  15708. "id": {
  15709. "type": "string",
  15710. "allOf": [
  15711. {
  15712. "pattern": "^evt_"
  15713. }
  15714. ]
  15715. },
  15716. "created": {
  15717. "type": "number"
  15718. },
  15719. "metadata": {
  15720. "type": "object"
  15721. },
  15722. "type": {
  15723. "type": "string",
  15724. "enum": ["session.step.started"]
  15725. },
  15726. "durable": {
  15727. "type": "object",
  15728. "properties": {
  15729. "aggregateID": {
  15730. "type": "string"
  15731. },
  15732. "seq": {
  15733. "type": "integer",
  15734. "allOf": [
  15735. {
  15736. "minimum": 0
  15737. }
  15738. ]
  15739. },
  15740. "version": {
  15741. "type": "number",
  15742. "enum": [1]
  15743. }
  15744. },
  15745. "required": ["aggregateID", "seq", "version"],
  15746. "additionalProperties": false
  15747. },
  15748. "location": {
  15749. "$ref": "#/components/schemas/Location.Ref"
  15750. },
  15751. "data": {
  15752. "type": "object",
  15753. "properties": {
  15754. "sessionID": {
  15755. "type": "string",
  15756. "allOf": [
  15757. {
  15758. "pattern": "^ses"
  15759. }
  15760. ]
  15761. },
  15762. "assistantMessageID": {
  15763. "type": "string",
  15764. "allOf": [
  15765. {
  15766. "pattern": "^msg_"
  15767. }
  15768. ]
  15769. },
  15770. "agent": {
  15771. "type": "string"
  15772. },
  15773. "model": {
  15774. "$ref": "#/components/schemas/Model.Ref"
  15775. },
  15776. "snapshot": {
  15777. "type": "string"
  15778. }
  15779. },
  15780. "required": ["sessionID", "assistantMessageID", "agent", "model"],
  15781. "additionalProperties": false
  15782. }
  15783. },
  15784. "required": ["id", "created", "type", "durable", "data"],
  15785. "additionalProperties": false
  15786. },
  15787. "session.step.ended": {
  15788. "type": "object",
  15789. "properties": {
  15790. "id": {
  15791. "type": "string",
  15792. "allOf": [
  15793. {
  15794. "pattern": "^evt_"
  15795. }
  15796. ]
  15797. },
  15798. "created": {
  15799. "type": "number"
  15800. },
  15801. "metadata": {
  15802. "type": "object"
  15803. },
  15804. "type": {
  15805. "type": "string",
  15806. "enum": ["session.step.ended"]
  15807. },
  15808. "durable": {
  15809. "type": "object",
  15810. "properties": {
  15811. "aggregateID": {
  15812. "type": "string"
  15813. },
  15814. "seq": {
  15815. "type": "integer",
  15816. "allOf": [
  15817. {
  15818. "minimum": 0
  15819. }
  15820. ]
  15821. },
  15822. "version": {
  15823. "type": "number",
  15824. "enum": [1]
  15825. }
  15826. },
  15827. "required": ["aggregateID", "seq", "version"],
  15828. "additionalProperties": false
  15829. },
  15830. "location": {
  15831. "$ref": "#/components/schemas/Location.Ref"
  15832. },
  15833. "data": {
  15834. "type": "object",
  15835. "properties": {
  15836. "sessionID": {
  15837. "type": "string",
  15838. "allOf": [
  15839. {
  15840. "pattern": "^ses"
  15841. }
  15842. ]
  15843. },
  15844. "assistantMessageID": {
  15845. "type": "string",
  15846. "allOf": [
  15847. {
  15848. "pattern": "^msg_"
  15849. }
  15850. ]
  15851. },
  15852. "finish": {
  15853. "type": "string",
  15854. "enum": ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]
  15855. },
  15856. "cost": {
  15857. "$ref": "#/components/schemas/Money.USD"
  15858. },
  15859. "tokens": {
  15860. "$ref": "#/components/schemas/TokenUsage.Info"
  15861. },
  15862. "snapshot": {
  15863. "type": "string"
  15864. },
  15865. "files": {
  15866. "type": "array",
  15867. "items": {
  15868. "type": "string"
  15869. }
  15870. }
  15871. },
  15872. "required": ["sessionID", "assistantMessageID", "finish", "cost", "tokens"],
  15873. "additionalProperties": false
  15874. }
  15875. },
  15876. "required": ["id", "created", "type", "durable", "data"],
  15877. "additionalProperties": false
  15878. },
  15879. "session.step.failed": {
  15880. "type": "object",
  15881. "properties": {
  15882. "id": {
  15883. "type": "string",
  15884. "allOf": [
  15885. {
  15886. "pattern": "^evt_"
  15887. }
  15888. ]
  15889. },
  15890. "created": {
  15891. "type": "number"
  15892. },
  15893. "metadata": {
  15894. "type": "object"
  15895. },
  15896. "type": {
  15897. "type": "string",
  15898. "enum": ["session.step.failed"]
  15899. },
  15900. "durable": {
  15901. "type": "object",
  15902. "properties": {
  15903. "aggregateID": {
  15904. "type": "string"
  15905. },
  15906. "seq": {
  15907. "type": "integer",
  15908. "allOf": [
  15909. {
  15910. "minimum": 0
  15911. }
  15912. ]
  15913. },
  15914. "version": {
  15915. "type": "number",
  15916. "enum": [1]
  15917. }
  15918. },
  15919. "required": ["aggregateID", "seq", "version"],
  15920. "additionalProperties": false
  15921. },
  15922. "location": {
  15923. "$ref": "#/components/schemas/Location.Ref"
  15924. },
  15925. "data": {
  15926. "type": "object",
  15927. "properties": {
  15928. "sessionID": {
  15929. "type": "string",
  15930. "allOf": [
  15931. {
  15932. "pattern": "^ses"
  15933. }
  15934. ]
  15935. },
  15936. "assistantMessageID": {
  15937. "type": "string",
  15938. "allOf": [
  15939. {
  15940. "pattern": "^msg_"
  15941. }
  15942. ]
  15943. },
  15944. "error": {
  15945. "$ref": "#/components/schemas/Session.StructuredError"
  15946. },
  15947. "cost": {
  15948. "$ref": "#/components/schemas/Money.USD"
  15949. },
  15950. "tokens": {
  15951. "$ref": "#/components/schemas/TokenUsage.Info"
  15952. },
  15953. "snapshot": {
  15954. "type": "string"
  15955. },
  15956. "files": {
  15957. "type": "array",
  15958. "items": {
  15959. "type": "string"
  15960. }
  15961. }
  15962. },
  15963. "required": ["sessionID", "assistantMessageID", "error"],
  15964. "additionalProperties": false
  15965. }
  15966. },
  15967. "required": ["id", "created", "type", "durable", "data"],
  15968. "additionalProperties": false
  15969. },
  15970. "session.text.started": {
  15971. "type": "object",
  15972. "properties": {
  15973. "id": {
  15974. "type": "string",
  15975. "allOf": [
  15976. {
  15977. "pattern": "^evt_"
  15978. }
  15979. ]
  15980. },
  15981. "created": {
  15982. "type": "number"
  15983. },
  15984. "metadata": {
  15985. "type": "object"
  15986. },
  15987. "type": {
  15988. "type": "string",
  15989. "enum": ["session.text.started"]
  15990. },
  15991. "durable": {
  15992. "type": "object",
  15993. "properties": {
  15994. "aggregateID": {
  15995. "type": "string"
  15996. },
  15997. "seq": {
  15998. "type": "integer",
  15999. "allOf": [
  16000. {
  16001. "minimum": 0
  16002. }
  16003. ]
  16004. },
  16005. "version": {
  16006. "type": "number",
  16007. "enum": [1]
  16008. }
  16009. },
  16010. "required": ["aggregateID", "seq", "version"],
  16011. "additionalProperties": false
  16012. },
  16013. "location": {
  16014. "$ref": "#/components/schemas/Location.Ref"
  16015. },
  16016. "data": {
  16017. "type": "object",
  16018. "properties": {
  16019. "sessionID": {
  16020. "type": "string",
  16021. "allOf": [
  16022. {
  16023. "pattern": "^ses"
  16024. }
  16025. ]
  16026. },
  16027. "assistantMessageID": {
  16028. "type": "string",
  16029. "allOf": [
  16030. {
  16031. "pattern": "^msg_"
  16032. }
  16033. ]
  16034. },
  16035. "ordinal": {
  16036. "type": "integer",
  16037. "allOf": [
  16038. {
  16039. "minimum": 0
  16040. }
  16041. ]
  16042. }
  16043. },
  16044. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16045. "additionalProperties": false
  16046. }
  16047. },
  16048. "required": ["id", "created", "type", "durable", "data"],
  16049. "additionalProperties": false
  16050. },
  16051. "Session.Message.ProviderState4": {
  16052. "type": "object"
  16053. },
  16054. "session.text.ended": {
  16055. "type": "object",
  16056. "properties": {
  16057. "id": {
  16058. "type": "string",
  16059. "allOf": [
  16060. {
  16061. "pattern": "^evt_"
  16062. }
  16063. ]
  16064. },
  16065. "created": {
  16066. "type": "number"
  16067. },
  16068. "metadata": {
  16069. "type": "object"
  16070. },
  16071. "type": {
  16072. "type": "string",
  16073. "enum": ["session.text.ended"]
  16074. },
  16075. "durable": {
  16076. "type": "object",
  16077. "properties": {
  16078. "aggregateID": {
  16079. "type": "string"
  16080. },
  16081. "seq": {
  16082. "type": "integer",
  16083. "allOf": [
  16084. {
  16085. "minimum": 0
  16086. }
  16087. ]
  16088. },
  16089. "version": {
  16090. "type": "number",
  16091. "enum": [1]
  16092. }
  16093. },
  16094. "required": ["aggregateID", "seq", "version"],
  16095. "additionalProperties": false
  16096. },
  16097. "location": {
  16098. "$ref": "#/components/schemas/Location.Ref"
  16099. },
  16100. "data": {
  16101. "type": "object",
  16102. "properties": {
  16103. "sessionID": {
  16104. "type": "string",
  16105. "allOf": [
  16106. {
  16107. "pattern": "^ses"
  16108. }
  16109. ]
  16110. },
  16111. "assistantMessageID": {
  16112. "type": "string",
  16113. "allOf": [
  16114. {
  16115. "pattern": "^msg_"
  16116. }
  16117. ]
  16118. },
  16119. "ordinal": {
  16120. "type": "integer",
  16121. "allOf": [
  16122. {
  16123. "minimum": 0
  16124. }
  16125. ]
  16126. },
  16127. "text": {
  16128. "type": "string"
  16129. },
  16130. "state": {
  16131. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  16132. }
  16133. },
  16134. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16135. "additionalProperties": false
  16136. }
  16137. },
  16138. "required": ["id", "created", "type", "durable", "data"],
  16139. "additionalProperties": false
  16140. },
  16141. "Session.Message.ProviderState5": {
  16142. "type": "object"
  16143. },
  16144. "session.reasoning.started": {
  16145. "type": "object",
  16146. "properties": {
  16147. "id": {
  16148. "type": "string",
  16149. "allOf": [
  16150. {
  16151. "pattern": "^evt_"
  16152. }
  16153. ]
  16154. },
  16155. "created": {
  16156. "type": "number"
  16157. },
  16158. "metadata": {
  16159. "type": "object"
  16160. },
  16161. "type": {
  16162. "type": "string",
  16163. "enum": ["session.reasoning.started"]
  16164. },
  16165. "durable": {
  16166. "type": "object",
  16167. "properties": {
  16168. "aggregateID": {
  16169. "type": "string"
  16170. },
  16171. "seq": {
  16172. "type": "integer",
  16173. "allOf": [
  16174. {
  16175. "minimum": 0
  16176. }
  16177. ]
  16178. },
  16179. "version": {
  16180. "type": "number",
  16181. "enum": [1]
  16182. }
  16183. },
  16184. "required": ["aggregateID", "seq", "version"],
  16185. "additionalProperties": false
  16186. },
  16187. "location": {
  16188. "$ref": "#/components/schemas/Location.Ref"
  16189. },
  16190. "data": {
  16191. "type": "object",
  16192. "properties": {
  16193. "sessionID": {
  16194. "type": "string",
  16195. "allOf": [
  16196. {
  16197. "pattern": "^ses"
  16198. }
  16199. ]
  16200. },
  16201. "assistantMessageID": {
  16202. "type": "string",
  16203. "allOf": [
  16204. {
  16205. "pattern": "^msg_"
  16206. }
  16207. ]
  16208. },
  16209. "ordinal": {
  16210. "type": "integer",
  16211. "allOf": [
  16212. {
  16213. "minimum": 0
  16214. }
  16215. ]
  16216. },
  16217. "state": {
  16218. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  16219. }
  16220. },
  16221. "required": ["sessionID", "assistantMessageID", "ordinal"],
  16222. "additionalProperties": false
  16223. }
  16224. },
  16225. "required": ["id", "created", "type", "durable", "data"],
  16226. "additionalProperties": false
  16227. },
  16228. "Session.Message.ProviderState6": {
  16229. "type": "object"
  16230. },
  16231. "session.reasoning.ended": {
  16232. "type": "object",
  16233. "properties": {
  16234. "id": {
  16235. "type": "string",
  16236. "allOf": [
  16237. {
  16238. "pattern": "^evt_"
  16239. }
  16240. ]
  16241. },
  16242. "created": {
  16243. "type": "number"
  16244. },
  16245. "metadata": {
  16246. "type": "object"
  16247. },
  16248. "type": {
  16249. "type": "string",
  16250. "enum": ["session.reasoning.ended"]
  16251. },
  16252. "durable": {
  16253. "type": "object",
  16254. "properties": {
  16255. "aggregateID": {
  16256. "type": "string"
  16257. },
  16258. "seq": {
  16259. "type": "integer",
  16260. "allOf": [
  16261. {
  16262. "minimum": 0
  16263. }
  16264. ]
  16265. },
  16266. "version": {
  16267. "type": "number",
  16268. "enum": [1]
  16269. }
  16270. },
  16271. "required": ["aggregateID", "seq", "version"],
  16272. "additionalProperties": false
  16273. },
  16274. "location": {
  16275. "$ref": "#/components/schemas/Location.Ref"
  16276. },
  16277. "data": {
  16278. "type": "object",
  16279. "properties": {
  16280. "sessionID": {
  16281. "type": "string",
  16282. "allOf": [
  16283. {
  16284. "pattern": "^ses"
  16285. }
  16286. ]
  16287. },
  16288. "assistantMessageID": {
  16289. "type": "string",
  16290. "allOf": [
  16291. {
  16292. "pattern": "^msg_"
  16293. }
  16294. ]
  16295. },
  16296. "ordinal": {
  16297. "type": "integer",
  16298. "allOf": [
  16299. {
  16300. "minimum": 0
  16301. }
  16302. ]
  16303. },
  16304. "text": {
  16305. "type": "string"
  16306. },
  16307. "state": {
  16308. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  16309. }
  16310. },
  16311. "required": ["sessionID", "assistantMessageID", "ordinal", "text"],
  16312. "additionalProperties": false
  16313. }
  16314. },
  16315. "required": ["id", "created", "type", "durable", "data"],
  16316. "additionalProperties": false
  16317. },
  16318. "session.tool.input.started": {
  16319. "type": "object",
  16320. "properties": {
  16321. "id": {
  16322. "type": "string",
  16323. "allOf": [
  16324. {
  16325. "pattern": "^evt_"
  16326. }
  16327. ]
  16328. },
  16329. "created": {
  16330. "type": "number"
  16331. },
  16332. "metadata": {
  16333. "type": "object"
  16334. },
  16335. "type": {
  16336. "type": "string",
  16337. "enum": ["session.tool.input.started"]
  16338. },
  16339. "durable": {
  16340. "type": "object",
  16341. "properties": {
  16342. "aggregateID": {
  16343. "type": "string"
  16344. },
  16345. "seq": {
  16346. "type": "integer",
  16347. "allOf": [
  16348. {
  16349. "minimum": 0
  16350. }
  16351. ]
  16352. },
  16353. "version": {
  16354. "type": "number",
  16355. "enum": [1]
  16356. }
  16357. },
  16358. "required": ["aggregateID", "seq", "version"],
  16359. "additionalProperties": false
  16360. },
  16361. "location": {
  16362. "$ref": "#/components/schemas/Location.Ref"
  16363. },
  16364. "data": {
  16365. "type": "object",
  16366. "properties": {
  16367. "sessionID": {
  16368. "type": "string",
  16369. "allOf": [
  16370. {
  16371. "pattern": "^ses"
  16372. }
  16373. ]
  16374. },
  16375. "assistantMessageID": {
  16376. "type": "string",
  16377. "allOf": [
  16378. {
  16379. "pattern": "^msg_"
  16380. }
  16381. ]
  16382. },
  16383. "id": {
  16384. "type": "string"
  16385. },
  16386. "name": {
  16387. "type": "string"
  16388. }
  16389. },
  16390. "required": ["sessionID", "assistantMessageID", "id", "name"],
  16391. "additionalProperties": false
  16392. }
  16393. },
  16394. "required": ["id", "created", "type", "durable", "data"],
  16395. "additionalProperties": false
  16396. },
  16397. "session.tool.input.ended": {
  16398. "type": "object",
  16399. "properties": {
  16400. "id": {
  16401. "type": "string",
  16402. "allOf": [
  16403. {
  16404. "pattern": "^evt_"
  16405. }
  16406. ]
  16407. },
  16408. "created": {
  16409. "type": "number"
  16410. },
  16411. "metadata": {
  16412. "type": "object"
  16413. },
  16414. "type": {
  16415. "type": "string",
  16416. "enum": ["session.tool.input.ended"]
  16417. },
  16418. "durable": {
  16419. "type": "object",
  16420. "properties": {
  16421. "aggregateID": {
  16422. "type": "string"
  16423. },
  16424. "seq": {
  16425. "type": "integer",
  16426. "allOf": [
  16427. {
  16428. "minimum": 0
  16429. }
  16430. ]
  16431. },
  16432. "version": {
  16433. "type": "number",
  16434. "enum": [1]
  16435. }
  16436. },
  16437. "required": ["aggregateID", "seq", "version"],
  16438. "additionalProperties": false
  16439. },
  16440. "location": {
  16441. "$ref": "#/components/schemas/Location.Ref"
  16442. },
  16443. "data": {
  16444. "type": "object",
  16445. "properties": {
  16446. "sessionID": {
  16447. "type": "string",
  16448. "allOf": [
  16449. {
  16450. "pattern": "^ses"
  16451. }
  16452. ]
  16453. },
  16454. "assistantMessageID": {
  16455. "type": "string",
  16456. "allOf": [
  16457. {
  16458. "pattern": "^msg_"
  16459. }
  16460. ]
  16461. },
  16462. "id": {
  16463. "type": "string"
  16464. },
  16465. "text": {
  16466. "type": "string"
  16467. }
  16468. },
  16469. "required": ["sessionID", "assistantMessageID", "id", "text"],
  16470. "additionalProperties": false
  16471. }
  16472. },
  16473. "required": ["id", "created", "type", "durable", "data"],
  16474. "additionalProperties": false
  16475. },
  16476. "Session.Message.ProviderState7": {
  16477. "type": "object"
  16478. },
  16479. "session.tool.called": {
  16480. "type": "object",
  16481. "properties": {
  16482. "id": {
  16483. "type": "string",
  16484. "allOf": [
  16485. {
  16486. "pattern": "^evt_"
  16487. }
  16488. ]
  16489. },
  16490. "created": {
  16491. "type": "number"
  16492. },
  16493. "metadata": {
  16494. "type": "object"
  16495. },
  16496. "type": {
  16497. "type": "string",
  16498. "enum": ["session.tool.called"]
  16499. },
  16500. "durable": {
  16501. "type": "object",
  16502. "properties": {
  16503. "aggregateID": {
  16504. "type": "string"
  16505. },
  16506. "seq": {
  16507. "type": "integer",
  16508. "allOf": [
  16509. {
  16510. "minimum": 0
  16511. }
  16512. ]
  16513. },
  16514. "version": {
  16515. "type": "number",
  16516. "enum": [1]
  16517. }
  16518. },
  16519. "required": ["aggregateID", "seq", "version"],
  16520. "additionalProperties": false
  16521. },
  16522. "location": {
  16523. "$ref": "#/components/schemas/Location.Ref"
  16524. },
  16525. "data": {
  16526. "type": "object",
  16527. "properties": {
  16528. "sessionID": {
  16529. "type": "string",
  16530. "allOf": [
  16531. {
  16532. "pattern": "^ses"
  16533. }
  16534. ]
  16535. },
  16536. "assistantMessageID": {
  16537. "type": "string",
  16538. "allOf": [
  16539. {
  16540. "pattern": "^msg_"
  16541. }
  16542. ]
  16543. },
  16544. "id": {
  16545. "type": "string"
  16546. },
  16547. "input": {
  16548. "type": "object"
  16549. },
  16550. "executed": {
  16551. "type": "boolean"
  16552. },
  16553. "state": {
  16554. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  16555. }
  16556. },
  16557. "required": ["sessionID", "assistantMessageID", "id", "input", "executed"],
  16558. "additionalProperties": false
  16559. }
  16560. },
  16561. "required": ["id", "created", "type", "durable", "data"],
  16562. "additionalProperties": false
  16563. },
  16564. "Tool.FileContent1": {
  16565. "type": "object",
  16566. "properties": {
  16567. "type": {
  16568. "type": "string",
  16569. "enum": ["file"]
  16570. },
  16571. "uri": {
  16572. "type": "string"
  16573. },
  16574. "mime": {
  16575. "type": "string"
  16576. },
  16577. "name": {
  16578. "anyOf": [
  16579. {
  16580. "type": "string"
  16581. },
  16582. {
  16583. "type": "null"
  16584. }
  16585. ]
  16586. }
  16587. },
  16588. "required": ["type", "uri", "mime"],
  16589. "additionalProperties": false
  16590. },
  16591. "Tool.Content1": {
  16592. "anyOf": [
  16593. {
  16594. "$ref": "#/components/schemas/Tool.TextContent"
  16595. },
  16596. {
  16597. "$ref": "#/components/schemas/Tool.FileContent1"
  16598. }
  16599. ]
  16600. },
  16601. "Session.Message.ProviderState8": {
  16602. "type": "object"
  16603. },
  16604. "session.tool.success": {
  16605. "type": "object",
  16606. "properties": {
  16607. "id": {
  16608. "type": "string",
  16609. "allOf": [
  16610. {
  16611. "pattern": "^evt_"
  16612. }
  16613. ]
  16614. },
  16615. "created": {
  16616. "type": "number"
  16617. },
  16618. "metadata": {
  16619. "type": "object"
  16620. },
  16621. "type": {
  16622. "type": "string",
  16623. "enum": ["session.tool.success"]
  16624. },
  16625. "durable": {
  16626. "type": "object",
  16627. "properties": {
  16628. "aggregateID": {
  16629. "type": "string"
  16630. },
  16631. "seq": {
  16632. "type": "integer",
  16633. "allOf": [
  16634. {
  16635. "minimum": 0
  16636. }
  16637. ]
  16638. },
  16639. "version": {
  16640. "type": "number",
  16641. "enum": [2]
  16642. }
  16643. },
  16644. "required": ["aggregateID", "seq", "version"],
  16645. "additionalProperties": false
  16646. },
  16647. "location": {
  16648. "$ref": "#/components/schemas/Location.Ref"
  16649. },
  16650. "data": {
  16651. "type": "object",
  16652. "properties": {
  16653. "sessionID": {
  16654. "type": "string",
  16655. "allOf": [
  16656. {
  16657. "pattern": "^ses"
  16658. }
  16659. ]
  16660. },
  16661. "assistantMessageID": {
  16662. "type": "string",
  16663. "allOf": [
  16664. {
  16665. "pattern": "^msg_"
  16666. }
  16667. ]
  16668. },
  16669. "id": {
  16670. "type": "string"
  16671. },
  16672. "content": {
  16673. "type": "array",
  16674. "prefixItems": [
  16675. {
  16676. "$ref": "#/components/schemas/Tool.Content1"
  16677. }
  16678. ],
  16679. "minItems": 1,
  16680. "items": {
  16681. "$ref": "#/components/schemas/Tool.Content1"
  16682. }
  16683. },
  16684. "metadata": {
  16685. "type": "object"
  16686. },
  16687. "executed": {
  16688. "type": "boolean"
  16689. },
  16690. "resultState": {
  16691. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  16692. }
  16693. },
  16694. "required": ["sessionID", "assistantMessageID", "id", "content", "executed"],
  16695. "additionalProperties": false
  16696. }
  16697. },
  16698. "required": ["id", "created", "type", "durable", "data"],
  16699. "additionalProperties": false
  16700. },
  16701. "Session.Message.ProviderState9": {
  16702. "type": "object"
  16703. },
  16704. "session.tool.failed": {
  16705. "type": "object",
  16706. "properties": {
  16707. "id": {
  16708. "type": "string",
  16709. "allOf": [
  16710. {
  16711. "pattern": "^evt_"
  16712. }
  16713. ]
  16714. },
  16715. "created": {
  16716. "type": "number"
  16717. },
  16718. "metadata": {
  16719. "type": "object"
  16720. },
  16721. "type": {
  16722. "type": "string",
  16723. "enum": ["session.tool.failed"]
  16724. },
  16725. "durable": {
  16726. "type": "object",
  16727. "properties": {
  16728. "aggregateID": {
  16729. "type": "string"
  16730. },
  16731. "seq": {
  16732. "type": "integer",
  16733. "allOf": [
  16734. {
  16735. "minimum": 0
  16736. }
  16737. ]
  16738. },
  16739. "version": {
  16740. "type": "number",
  16741. "enum": [2]
  16742. }
  16743. },
  16744. "required": ["aggregateID", "seq", "version"],
  16745. "additionalProperties": false
  16746. },
  16747. "location": {
  16748. "$ref": "#/components/schemas/Location.Ref"
  16749. },
  16750. "data": {
  16751. "type": "object",
  16752. "properties": {
  16753. "sessionID": {
  16754. "type": "string",
  16755. "allOf": [
  16756. {
  16757. "pattern": "^ses"
  16758. }
  16759. ]
  16760. },
  16761. "assistantMessageID": {
  16762. "type": "string",
  16763. "allOf": [
  16764. {
  16765. "pattern": "^msg_"
  16766. }
  16767. ]
  16768. },
  16769. "id": {
  16770. "type": "string"
  16771. },
  16772. "error": {
  16773. "$ref": "#/components/schemas/Session.StructuredError"
  16774. },
  16775. "content": {
  16776. "type": "array",
  16777. "prefixItems": [
  16778. {
  16779. "$ref": "#/components/schemas/Tool.Content1"
  16780. }
  16781. ],
  16782. "minItems": 1,
  16783. "items": {
  16784. "$ref": "#/components/schemas/Tool.Content1"
  16785. }
  16786. },
  16787. "metadata": {
  16788. "type": "object"
  16789. },
  16790. "executed": {
  16791. "type": "boolean"
  16792. },
  16793. "resultState": {
  16794. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  16795. }
  16796. },
  16797. "required": ["sessionID", "assistantMessageID", "id", "error", "executed"],
  16798. "additionalProperties": false
  16799. }
  16800. },
  16801. "required": ["id", "created", "type", "durable", "data"],
  16802. "additionalProperties": false
  16803. },
  16804. "session.retry.scheduled": {
  16805. "type": "object",
  16806. "properties": {
  16807. "id": {
  16808. "type": "string",
  16809. "allOf": [
  16810. {
  16811. "pattern": "^evt_"
  16812. }
  16813. ]
  16814. },
  16815. "created": {
  16816. "type": "number"
  16817. },
  16818. "metadata": {
  16819. "type": "object"
  16820. },
  16821. "type": {
  16822. "type": "string",
  16823. "enum": ["session.retry.scheduled"]
  16824. },
  16825. "durable": {
  16826. "type": "object",
  16827. "properties": {
  16828. "aggregateID": {
  16829. "type": "string"
  16830. },
  16831. "seq": {
  16832. "type": "integer",
  16833. "allOf": [
  16834. {
  16835. "minimum": 0
  16836. }
  16837. ]
  16838. },
  16839. "version": {
  16840. "type": "number",
  16841. "enum": [1]
  16842. }
  16843. },
  16844. "required": ["aggregateID", "seq", "version"],
  16845. "additionalProperties": false
  16846. },
  16847. "location": {
  16848. "$ref": "#/components/schemas/Location.Ref"
  16849. },
  16850. "data": {
  16851. "type": "object",
  16852. "properties": {
  16853. "sessionID": {
  16854. "type": "string",
  16855. "allOf": [
  16856. {
  16857. "pattern": "^ses"
  16858. }
  16859. ]
  16860. },
  16861. "assistantMessageID": {
  16862. "type": "string",
  16863. "allOf": [
  16864. {
  16865. "pattern": "^msg_"
  16866. }
  16867. ]
  16868. },
  16869. "attempt": {
  16870. "type": "integer",
  16871. "allOf": [
  16872. {
  16873. "exclusiveMinimum": 0
  16874. }
  16875. ]
  16876. },
  16877. "at": {
  16878. "type": "integer",
  16879. "allOf": [
  16880. {
  16881. "minimum": 0
  16882. }
  16883. ]
  16884. },
  16885. "error": {
  16886. "$ref": "#/components/schemas/Session.StructuredError"
  16887. }
  16888. },
  16889. "required": ["sessionID", "assistantMessageID", "attempt", "at", "error"],
  16890. "additionalProperties": false
  16891. }
  16892. },
  16893. "required": ["id", "created", "type", "durable", "data"],
  16894. "additionalProperties": false
  16895. },
  16896. "session.compaction.started": {
  16897. "type": "object",
  16898. "properties": {
  16899. "id": {
  16900. "type": "string",
  16901. "allOf": [
  16902. {
  16903. "pattern": "^evt_"
  16904. }
  16905. ]
  16906. },
  16907. "created": {
  16908. "type": "number"
  16909. },
  16910. "metadata": {
  16911. "type": "object"
  16912. },
  16913. "type": {
  16914. "type": "string",
  16915. "enum": ["session.compaction.started"]
  16916. },
  16917. "durable": {
  16918. "type": "object",
  16919. "properties": {
  16920. "aggregateID": {
  16921. "type": "string"
  16922. },
  16923. "seq": {
  16924. "type": "integer",
  16925. "allOf": [
  16926. {
  16927. "minimum": 0
  16928. }
  16929. ]
  16930. },
  16931. "version": {
  16932. "type": "number",
  16933. "enum": [1]
  16934. }
  16935. },
  16936. "required": ["aggregateID", "seq", "version"],
  16937. "additionalProperties": false
  16938. },
  16939. "location": {
  16940. "$ref": "#/components/schemas/Location.Ref"
  16941. },
  16942. "data": {
  16943. "type": "object",
  16944. "properties": {
  16945. "sessionID": {
  16946. "type": "string",
  16947. "allOf": [
  16948. {
  16949. "pattern": "^ses"
  16950. }
  16951. ]
  16952. },
  16953. "reason": {
  16954. "type": "string",
  16955. "enum": ["auto", "manual"]
  16956. },
  16957. "recent": {
  16958. "type": "string"
  16959. },
  16960. "inputID": {
  16961. "type": "string",
  16962. "allOf": [
  16963. {
  16964. "pattern": "^msg_"
  16965. }
  16966. ]
  16967. }
  16968. },
  16969. "required": ["sessionID", "reason", "recent"],
  16970. "additionalProperties": false
  16971. }
  16972. },
  16973. "required": ["id", "created", "type", "durable", "data"],
  16974. "additionalProperties": false
  16975. },
  16976. "session.compaction.ended": {
  16977. "type": "object",
  16978. "properties": {
  16979. "id": {
  16980. "type": "string",
  16981. "allOf": [
  16982. {
  16983. "pattern": "^evt_"
  16984. }
  16985. ]
  16986. },
  16987. "created": {
  16988. "type": "number"
  16989. },
  16990. "metadata": {
  16991. "type": "object"
  16992. },
  16993. "type": {
  16994. "type": "string",
  16995. "enum": ["session.compaction.ended"]
  16996. },
  16997. "durable": {
  16998. "type": "object",
  16999. "properties": {
  17000. "aggregateID": {
  17001. "type": "string"
  17002. },
  17003. "seq": {
  17004. "type": "integer",
  17005. "allOf": [
  17006. {
  17007. "minimum": 0
  17008. }
  17009. ]
  17010. },
  17011. "version": {
  17012. "type": "number",
  17013. "enum": [1]
  17014. }
  17015. },
  17016. "required": ["aggregateID", "seq", "version"],
  17017. "additionalProperties": false
  17018. },
  17019. "location": {
  17020. "$ref": "#/components/schemas/Location.Ref"
  17021. },
  17022. "data": {
  17023. "type": "object",
  17024. "properties": {
  17025. "sessionID": {
  17026. "type": "string",
  17027. "allOf": [
  17028. {
  17029. "pattern": "^ses"
  17030. }
  17031. ]
  17032. },
  17033. "reason": {
  17034. "type": "string",
  17035. "enum": ["auto", "manual"]
  17036. },
  17037. "text": {
  17038. "type": "string"
  17039. },
  17040. "recent": {
  17041. "type": "string"
  17042. }
  17043. },
  17044. "required": ["sessionID", "reason", "text", "recent"],
  17045. "additionalProperties": false
  17046. }
  17047. },
  17048. "required": ["id", "created", "type", "durable", "data"],
  17049. "additionalProperties": false
  17050. },
  17051. "session.compaction.failed": {
  17052. "type": "object",
  17053. "properties": {
  17054. "id": {
  17055. "type": "string",
  17056. "allOf": [
  17057. {
  17058. "pattern": "^evt_"
  17059. }
  17060. ]
  17061. },
  17062. "created": {
  17063. "type": "number"
  17064. },
  17065. "metadata": {
  17066. "type": "object"
  17067. },
  17068. "type": {
  17069. "type": "string",
  17070. "enum": ["session.compaction.failed"]
  17071. },
  17072. "durable": {
  17073. "type": "object",
  17074. "properties": {
  17075. "aggregateID": {
  17076. "type": "string"
  17077. },
  17078. "seq": {
  17079. "type": "integer",
  17080. "allOf": [
  17081. {
  17082. "minimum": 0
  17083. }
  17084. ]
  17085. },
  17086. "version": {
  17087. "type": "number",
  17088. "enum": [1]
  17089. }
  17090. },
  17091. "required": ["aggregateID", "seq", "version"],
  17092. "additionalProperties": false
  17093. },
  17094. "location": {
  17095. "$ref": "#/components/schemas/Location.Ref"
  17096. },
  17097. "data": {
  17098. "type": "object",
  17099. "properties": {
  17100. "sessionID": {
  17101. "type": "string",
  17102. "allOf": [
  17103. {
  17104. "pattern": "^ses"
  17105. }
  17106. ]
  17107. },
  17108. "reason": {
  17109. "type": "string",
  17110. "enum": ["auto", "manual"]
  17111. },
  17112. "error": {
  17113. "$ref": "#/components/schemas/Session.StructuredError"
  17114. },
  17115. "inputID": {
  17116. "type": "string",
  17117. "allOf": [
  17118. {
  17119. "pattern": "^msg_"
  17120. }
  17121. ]
  17122. }
  17123. },
  17124. "required": ["sessionID", "reason", "error"],
  17125. "additionalProperties": false
  17126. }
  17127. },
  17128. "required": ["id", "created", "type", "durable", "data"],
  17129. "additionalProperties": false
  17130. },
  17131. "session.revert.staged": {
  17132. "type": "object",
  17133. "properties": {
  17134. "id": {
  17135. "type": "string",
  17136. "allOf": [
  17137. {
  17138. "pattern": "^evt_"
  17139. }
  17140. ]
  17141. },
  17142. "created": {
  17143. "type": "number"
  17144. },
  17145. "metadata": {
  17146. "type": "object"
  17147. },
  17148. "type": {
  17149. "type": "string",
  17150. "enum": ["session.revert.staged"]
  17151. },
  17152. "durable": {
  17153. "type": "object",
  17154. "properties": {
  17155. "aggregateID": {
  17156. "type": "string"
  17157. },
  17158. "seq": {
  17159. "type": "integer",
  17160. "allOf": [
  17161. {
  17162. "minimum": 0
  17163. }
  17164. ]
  17165. },
  17166. "version": {
  17167. "type": "number",
  17168. "enum": [1]
  17169. }
  17170. },
  17171. "required": ["aggregateID", "seq", "version"],
  17172. "additionalProperties": false
  17173. },
  17174. "location": {
  17175. "$ref": "#/components/schemas/Location.Ref"
  17176. },
  17177. "data": {
  17178. "type": "object",
  17179. "properties": {
  17180. "sessionID": {
  17181. "type": "string",
  17182. "allOf": [
  17183. {
  17184. "pattern": "^ses"
  17185. }
  17186. ]
  17187. },
  17188. "revert": {
  17189. "$ref": "#/components/schemas/Session.Revert"
  17190. }
  17191. },
  17192. "required": ["sessionID", "revert"],
  17193. "additionalProperties": false
  17194. }
  17195. },
  17196. "required": ["id", "created", "type", "durable", "data"],
  17197. "additionalProperties": false
  17198. },
  17199. "session.revert.cleared": {
  17200. "type": "object",
  17201. "properties": {
  17202. "id": {
  17203. "type": "string",
  17204. "allOf": [
  17205. {
  17206. "pattern": "^evt_"
  17207. }
  17208. ]
  17209. },
  17210. "created": {
  17211. "type": "number"
  17212. },
  17213. "metadata": {
  17214. "type": "object"
  17215. },
  17216. "type": {
  17217. "type": "string",
  17218. "enum": ["session.revert.cleared"]
  17219. },
  17220. "durable": {
  17221. "type": "object",
  17222. "properties": {
  17223. "aggregateID": {
  17224. "type": "string"
  17225. },
  17226. "seq": {
  17227. "type": "integer",
  17228. "allOf": [
  17229. {
  17230. "minimum": 0
  17231. }
  17232. ]
  17233. },
  17234. "version": {
  17235. "type": "number",
  17236. "enum": [1]
  17237. }
  17238. },
  17239. "required": ["aggregateID", "seq", "version"],
  17240. "additionalProperties": false
  17241. },
  17242. "location": {
  17243. "$ref": "#/components/schemas/Location.Ref"
  17244. },
  17245. "data": {
  17246. "type": "object",
  17247. "properties": {
  17248. "sessionID": {
  17249. "type": "string",
  17250. "allOf": [
  17251. {
  17252. "pattern": "^ses"
  17253. }
  17254. ]
  17255. }
  17256. },
  17257. "required": ["sessionID"],
  17258. "additionalProperties": false
  17259. }
  17260. },
  17261. "required": ["id", "created", "type", "durable", "data"],
  17262. "additionalProperties": false
  17263. },
  17264. "session.revert.committed": {
  17265. "type": "object",
  17266. "properties": {
  17267. "id": {
  17268. "type": "string",
  17269. "allOf": [
  17270. {
  17271. "pattern": "^evt_"
  17272. }
  17273. ]
  17274. },
  17275. "created": {
  17276. "type": "number"
  17277. },
  17278. "metadata": {
  17279. "type": "object"
  17280. },
  17281. "type": {
  17282. "type": "string",
  17283. "enum": ["session.revert.committed"]
  17284. },
  17285. "durable": {
  17286. "type": "object",
  17287. "properties": {
  17288. "aggregateID": {
  17289. "type": "string"
  17290. },
  17291. "seq": {
  17292. "type": "integer",
  17293. "allOf": [
  17294. {
  17295. "minimum": 0
  17296. }
  17297. ]
  17298. },
  17299. "version": {
  17300. "type": "number",
  17301. "enum": [1]
  17302. }
  17303. },
  17304. "required": ["aggregateID", "seq", "version"],
  17305. "additionalProperties": false
  17306. },
  17307. "location": {
  17308. "$ref": "#/components/schemas/Location.Ref"
  17309. },
  17310. "data": {
  17311. "type": "object",
  17312. "properties": {
  17313. "sessionID": {
  17314. "type": "string",
  17315. "allOf": [
  17316. {
  17317. "pattern": "^ses"
  17318. }
  17319. ]
  17320. },
  17321. "to": {
  17322. "type": "string",
  17323. "allOf": [
  17324. {
  17325. "pattern": "^msg_"
  17326. }
  17327. ]
  17328. }
  17329. },
  17330. "required": ["sessionID", "to"],
  17331. "additionalProperties": false
  17332. }
  17333. },
  17334. "required": ["id", "created", "type", "durable", "data"],
  17335. "additionalProperties": false
  17336. },
  17337. "session.usage.recorded": {
  17338. "type": "object",
  17339. "properties": {
  17340. "id": {
  17341. "type": "string",
  17342. "allOf": [
  17343. {
  17344. "pattern": "^evt_"
  17345. }
  17346. ]
  17347. },
  17348. "created": {
  17349. "type": "number"
  17350. },
  17351. "metadata": {
  17352. "type": "object"
  17353. },
  17354. "type": {
  17355. "type": "string",
  17356. "enum": ["session.usage.recorded"]
  17357. },
  17358. "durable": {
  17359. "type": "object",
  17360. "properties": {
  17361. "aggregateID": {
  17362. "type": "string"
  17363. },
  17364. "seq": {
  17365. "type": "integer",
  17366. "allOf": [
  17367. {
  17368. "minimum": 0
  17369. }
  17370. ]
  17371. },
  17372. "version": {
  17373. "type": "number",
  17374. "enum": [1]
  17375. }
  17376. },
  17377. "required": ["aggregateID", "seq", "version"],
  17378. "additionalProperties": false
  17379. },
  17380. "location": {
  17381. "$ref": "#/components/schemas/Location.Ref"
  17382. },
  17383. "data": {
  17384. "type": "object",
  17385. "properties": {
  17386. "sessionID": {
  17387. "type": "string",
  17388. "allOf": [
  17389. {
  17390. "pattern": "^ses"
  17391. }
  17392. ]
  17393. },
  17394. "source": {
  17395. "type": "string",
  17396. "enum": ["title", "compaction"]
  17397. },
  17398. "cost": {
  17399. "$ref": "#/components/schemas/Money.USD"
  17400. },
  17401. "tokens": {
  17402. "$ref": "#/components/schemas/TokenUsage.Info"
  17403. }
  17404. },
  17405. "required": ["sessionID", "source", "cost", "tokens"],
  17406. "additionalProperties": false
  17407. }
  17408. },
  17409. "required": ["id", "created", "type", "durable", "data"],
  17410. "additionalProperties": false
  17411. },
  17412. "Session.Event.Durable": {
  17413. "oneOf": [
  17414. {
  17415. "$ref": "#/components/schemas/session.created"
  17416. },
  17417. {
  17418. "$ref": "#/components/schemas/session.agent.selected"
  17419. },
  17420. {
  17421. "$ref": "#/components/schemas/session.model.selected"
  17422. },
  17423. {
  17424. "$ref": "#/components/schemas/session.moved"
  17425. },
  17426. {
  17427. "$ref": "#/components/schemas/session.renamed"
  17428. },
  17429. {
  17430. "$ref": "#/components/schemas/session.viewed"
  17431. },
  17432. {
  17433. "$ref": "#/components/schemas/session.deleted"
  17434. },
  17435. {
  17436. "$ref": "#/components/schemas/session.forked"
  17437. },
  17438. {
  17439. "$ref": "#/components/schemas/session.inbox.delivered"
  17440. },
  17441. {
  17442. "$ref": "#/components/schemas/session.inbox.enqueued"
  17443. },
  17444. {
  17445. "$ref": "#/components/schemas/session.inbox.cancelled"
  17446. },
  17447. {
  17448. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  17449. },
  17450. {
  17451. "$ref": "#/components/schemas/session.execution.started"
  17452. },
  17453. {
  17454. "$ref": "#/components/schemas/session.execution.succeeded"
  17455. },
  17456. {
  17457. "$ref": "#/components/schemas/session.execution.failed"
  17458. },
  17459. {
  17460. "$ref": "#/components/schemas/session.execution.interrupted"
  17461. },
  17462. {
  17463. "$ref": "#/components/schemas/session.instructions.updated"
  17464. },
  17465. {
  17466. "$ref": "#/components/schemas/session.synthetic"
  17467. },
  17468. {
  17469. "$ref": "#/components/schemas/session.skill.activated"
  17470. },
  17471. {
  17472. "$ref": "#/components/schemas/session.shell.started"
  17473. },
  17474. {
  17475. "$ref": "#/components/schemas/session.shell.ended"
  17476. },
  17477. {
  17478. "$ref": "#/components/schemas/session.step.started"
  17479. },
  17480. {
  17481. "$ref": "#/components/schemas/session.step.ended"
  17482. },
  17483. {
  17484. "$ref": "#/components/schemas/session.step.failed"
  17485. },
  17486. {
  17487. "$ref": "#/components/schemas/session.text.started"
  17488. },
  17489. {
  17490. "$ref": "#/components/schemas/session.text.ended"
  17491. },
  17492. {
  17493. "$ref": "#/components/schemas/session.reasoning.started"
  17494. },
  17495. {
  17496. "$ref": "#/components/schemas/session.reasoning.ended"
  17497. },
  17498. {
  17499. "$ref": "#/components/schemas/session.tool.input.started"
  17500. },
  17501. {
  17502. "$ref": "#/components/schemas/session.tool.input.ended"
  17503. },
  17504. {
  17505. "$ref": "#/components/schemas/session.tool.called"
  17506. },
  17507. {
  17508. "$ref": "#/components/schemas/session.tool.success"
  17509. },
  17510. {
  17511. "$ref": "#/components/schemas/session.tool.failed"
  17512. },
  17513. {
  17514. "$ref": "#/components/schemas/session.retry.scheduled"
  17515. },
  17516. {
  17517. "$ref": "#/components/schemas/session.compaction.started"
  17518. },
  17519. {
  17520. "$ref": "#/components/schemas/session.compaction.ended"
  17521. },
  17522. {
  17523. "$ref": "#/components/schemas/session.compaction.failed"
  17524. },
  17525. {
  17526. "$ref": "#/components/schemas/session.revert.staged"
  17527. },
  17528. {
  17529. "$ref": "#/components/schemas/session.revert.cleared"
  17530. },
  17531. {
  17532. "$ref": "#/components/schemas/session.revert.committed"
  17533. },
  17534. {
  17535. "$ref": "#/components/schemas/session.usage.recorded"
  17536. }
  17537. ]
  17538. },
  17539. "EventLog.Synced": {
  17540. "type": "object",
  17541. "properties": {
  17542. "type": {
  17543. "type": "string",
  17544. "enum": ["log.synced"]
  17545. },
  17546. "aggregateID": {
  17547. "type": "string"
  17548. },
  17549. "seq": {
  17550. "type": "integer",
  17551. "allOf": [
  17552. {
  17553. "minimum": 0
  17554. }
  17555. ]
  17556. }
  17557. },
  17558. "required": ["type", "aggregateID"],
  17559. "additionalProperties": false,
  17560. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  17561. },
  17562. "SessionLogItem": {
  17563. "anyOf": [
  17564. {
  17565. "$ref": "#/components/schemas/Session.Event.Durable"
  17566. },
  17567. {
  17568. "$ref": "#/components/schemas/EventLog.Synced"
  17569. }
  17570. ]
  17571. },
  17572. "SessionLogItemJsonString": {
  17573. "type": "string",
  17574. "contentSchema": {
  17575. "$ref": "#/components/schemas/SessionLogItem"
  17576. },
  17577. "contentMediaType": "application/json"
  17578. },
  17579. "SessionMessagesResponse": {
  17580. "type": "object",
  17581. "properties": {
  17582. "data": {
  17583. "type": "array",
  17584. "items": {
  17585. "$ref": "#/components/schemas/Session.Message.Info"
  17586. }
  17587. },
  17588. "cursor": {
  17589. "type": "object",
  17590. "properties": {
  17591. "previous": {
  17592. "anyOf": [
  17593. {
  17594. "type": "string"
  17595. },
  17596. {
  17597. "type": "null"
  17598. }
  17599. ]
  17600. },
  17601. "next": {
  17602. "anyOf": [
  17603. {
  17604. "type": "string"
  17605. },
  17606. {
  17607. "type": "null"
  17608. }
  17609. ]
  17610. }
  17611. },
  17612. "additionalProperties": false
  17613. }
  17614. },
  17615. "required": ["data", "cursor"],
  17616. "additionalProperties": false
  17617. },
  17618. "Model.ReasoningField": {
  17619. "anyOf": [
  17620. {
  17621. "type": "string",
  17622. "enum": ["reasoning", "reasoning_content", "reasoning_text"]
  17623. },
  17624. {
  17625. "type": "string"
  17626. }
  17627. ]
  17628. },
  17629. "Model.MaxTokensField": {
  17630. "type": "string",
  17631. "enum": ["max_completion_tokens", "max_tokens"]
  17632. },
  17633. "Model.Compatibility": {
  17634. "type": "object",
  17635. "properties": {
  17636. "reasoningField": {
  17637. "$ref": "#/components/schemas/Model.ReasoningField"
  17638. },
  17639. "maxTokensField": {
  17640. "$ref": "#/components/schemas/Model.MaxTokensField"
  17641. },
  17642. "requireFinishReason": {
  17643. "type": "boolean"
  17644. }
  17645. },
  17646. "additionalProperties": false
  17647. },
  17648. "Model.Capabilities": {
  17649. "type": "object",
  17650. "properties": {
  17651. "tools": {
  17652. "type": "boolean"
  17653. },
  17654. "input": {
  17655. "type": "array",
  17656. "items": {
  17657. "type": "string"
  17658. }
  17659. },
  17660. "output": {
  17661. "type": "array",
  17662. "items": {
  17663. "type": "string"
  17664. }
  17665. }
  17666. },
  17667. "required": ["tools", "input", "output"],
  17668. "additionalProperties": false
  17669. },
  17670. "Model.Variant": {
  17671. "type": "object",
  17672. "properties": {
  17673. "id": {
  17674. "type": "string"
  17675. },
  17676. "settings": {
  17677. "type": "object"
  17678. },
  17679. "headers": {
  17680. "type": "object",
  17681. "additionalProperties": {
  17682. "type": "string"
  17683. }
  17684. },
  17685. "body": {
  17686. "type": "object"
  17687. }
  17688. },
  17689. "required": ["id"],
  17690. "additionalProperties": false
  17691. },
  17692. "Money.USDPerMillionTokens": {
  17693. "type": "number"
  17694. },
  17695. "Model.Cost": {
  17696. "type": "object",
  17697. "properties": {
  17698. "tier": {
  17699. "type": "object",
  17700. "properties": {
  17701. "type": {
  17702. "type": "string",
  17703. "enum": ["context"]
  17704. },
  17705. "size": {
  17706. "type": "integer"
  17707. }
  17708. },
  17709. "required": ["type", "size"],
  17710. "additionalProperties": false
  17711. },
  17712. "input": {
  17713. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17714. },
  17715. "output": {
  17716. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17717. },
  17718. "cache": {
  17719. "type": "object",
  17720. "properties": {
  17721. "read": {
  17722. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17723. },
  17724. "write": {
  17725. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  17726. }
  17727. },
  17728. "required": ["read", "write"],
  17729. "additionalProperties": false
  17730. }
  17731. },
  17732. "required": ["input", "output", "cache"],
  17733. "additionalProperties": false
  17734. },
  17735. "Model.Info": {
  17736. "type": "object",
  17737. "properties": {
  17738. "id": {
  17739. "type": "string"
  17740. },
  17741. "modelID": {
  17742. "type": "string"
  17743. },
  17744. "providerID": {
  17745. "type": "string"
  17746. },
  17747. "family": {
  17748. "type": "string"
  17749. },
  17750. "name": {
  17751. "type": "string"
  17752. },
  17753. "compatibility": {
  17754. "$ref": "#/components/schemas/Model.Compatibility"
  17755. },
  17756. "package": {
  17757. "type": "string"
  17758. },
  17759. "settings": {
  17760. "type": "object"
  17761. },
  17762. "headers": {
  17763. "type": "object",
  17764. "additionalProperties": {
  17765. "type": "string"
  17766. }
  17767. },
  17768. "body": {
  17769. "type": "object"
  17770. },
  17771. "capabilities": {
  17772. "$ref": "#/components/schemas/Model.Capabilities"
  17773. },
  17774. "variants": {
  17775. "type": "array",
  17776. "items": {
  17777. "$ref": "#/components/schemas/Model.Variant"
  17778. }
  17779. },
  17780. "time": {
  17781. "type": "object",
  17782. "properties": {
  17783. "released": {
  17784. "type": "number"
  17785. }
  17786. },
  17787. "required": ["released"],
  17788. "additionalProperties": false
  17789. },
  17790. "cost": {
  17791. "type": "array",
  17792. "items": {
  17793. "$ref": "#/components/schemas/Model.Cost"
  17794. }
  17795. },
  17796. "status": {
  17797. "type": "string",
  17798. "enum": ["alpha", "beta", "deprecated", "active"]
  17799. },
  17800. "enabled": {
  17801. "type": "boolean"
  17802. },
  17803. "limit": {
  17804. "type": "object",
  17805. "properties": {
  17806. "context": {
  17807. "type": "integer"
  17808. },
  17809. "input": {
  17810. "type": "integer"
  17811. },
  17812. "output": {
  17813. "type": "integer"
  17814. }
  17815. },
  17816. "required": ["context", "output"],
  17817. "additionalProperties": false
  17818. }
  17819. },
  17820. "required": [
  17821. "id",
  17822. "modelID",
  17823. "providerID",
  17824. "name",
  17825. "capabilities",
  17826. "variants",
  17827. "time",
  17828. "cost",
  17829. "status",
  17830. "enabled",
  17831. "limit"
  17832. ],
  17833. "additionalProperties": false
  17834. },
  17835. "GenerateTextResponse": {
  17836. "type": "object",
  17837. "properties": {
  17838. "data": {
  17839. "type": "object",
  17840. "properties": {
  17841. "text": {
  17842. "type": "string"
  17843. }
  17844. },
  17845. "required": ["text"],
  17846. "additionalProperties": false
  17847. }
  17848. },
  17849. "required": ["data"],
  17850. "additionalProperties": false
  17851. },
  17852. "Provider.Info": {
  17853. "type": "object",
  17854. "properties": {
  17855. "id": {
  17856. "type": "string"
  17857. },
  17858. "integrationID": {
  17859. "type": "string"
  17860. },
  17861. "name": {
  17862. "type": "string"
  17863. },
  17864. "activation": {
  17865. "type": "string",
  17866. "enum": ["auto", "enabled", "disabled"]
  17867. },
  17868. "package": {
  17869. "type": "string"
  17870. },
  17871. "settings": {
  17872. "type": "object"
  17873. },
  17874. "headers": {
  17875. "type": "object",
  17876. "additionalProperties": {
  17877. "type": "string"
  17878. }
  17879. },
  17880. "body": {
  17881. "type": "object"
  17882. }
  17883. },
  17884. "required": ["id", "name", "activation", "package"],
  17885. "additionalProperties": false
  17886. },
  17887. "ProviderNotFoundError": {
  17888. "type": "object",
  17889. "properties": {
  17890. "_tag": {
  17891. "type": "string",
  17892. "enum": ["ProviderNotFoundError"]
  17893. },
  17894. "providerID": {
  17895. "type": "string"
  17896. },
  17897. "message": {
  17898. "type": "string"
  17899. }
  17900. },
  17901. "required": ["_tag", "providerID", "message"],
  17902. "additionalProperties": false
  17903. },
  17904. "Form.When": {
  17905. "type": "object",
  17906. "properties": {
  17907. "key": {
  17908. "type": "string"
  17909. },
  17910. "op": {
  17911. "type": "string",
  17912. "enum": ["eq", "neq"]
  17913. },
  17914. "value": {
  17915. "anyOf": [
  17916. {
  17917. "type": "string"
  17918. },
  17919. {
  17920. "anyOf": [
  17921. {
  17922. "anyOf": [
  17923. {
  17924. "type": "number"
  17925. },
  17926. {
  17927. "type": "string",
  17928. "enum": ["NaN"]
  17929. },
  17930. {
  17931. "type": "string",
  17932. "enum": ["Infinity"]
  17933. },
  17934. {
  17935. "type": "string",
  17936. "enum": ["-Infinity"]
  17937. }
  17938. ]
  17939. },
  17940. {
  17941. "type": "string",
  17942. "enum": ["Infinity", "-Infinity", "NaN"]
  17943. }
  17944. ]
  17945. },
  17946. {
  17947. "type": "boolean"
  17948. }
  17949. ]
  17950. }
  17951. },
  17952. "required": ["key", "op", "value"],
  17953. "additionalProperties": false
  17954. },
  17955. "Form.Option": {
  17956. "type": "object",
  17957. "properties": {
  17958. "value": {
  17959. "type": "string"
  17960. },
  17961. "label": {
  17962. "type": "string"
  17963. },
  17964. "description": {
  17965. "type": "string"
  17966. }
  17967. },
  17968. "required": ["value", "label"],
  17969. "additionalProperties": false
  17970. },
  17971. "Form.StringField": {
  17972. "type": "object",
  17973. "properties": {
  17974. "key": {
  17975. "type": "string"
  17976. },
  17977. "title": {
  17978. "type": "string"
  17979. },
  17980. "description": {
  17981. "type": "string"
  17982. },
  17983. "required": {
  17984. "type": "boolean"
  17985. },
  17986. "when": {
  17987. "type": "array",
  17988. "items": {
  17989. "$ref": "#/components/schemas/Form.When"
  17990. }
  17991. },
  17992. "type": {
  17993. "type": "string",
  17994. "enum": ["string"]
  17995. },
  17996. "format": {
  17997. "type": "string",
  17998. "enum": ["email", "uri", "date", "date-time"]
  17999. },
  18000. "minLength": {
  18001. "type": "integer",
  18002. "allOf": [
  18003. {
  18004. "minimum": 0
  18005. }
  18006. ]
  18007. },
  18008. "maxLength": {
  18009. "type": "integer",
  18010. "allOf": [
  18011. {
  18012. "minimum": 0
  18013. }
  18014. ]
  18015. },
  18016. "pattern": {
  18017. "type": "string"
  18018. },
  18019. "placeholder": {
  18020. "type": "string"
  18021. },
  18022. "default": {
  18023. "type": "string"
  18024. },
  18025. "options": {
  18026. "type": "array",
  18027. "items": {
  18028. "$ref": "#/components/schemas/Form.Option"
  18029. }
  18030. },
  18031. "custom": {
  18032. "type": "boolean"
  18033. }
  18034. },
  18035. "required": ["key", "type"],
  18036. "additionalProperties": false
  18037. },
  18038. "Form.NumberField": {
  18039. "type": "object",
  18040. "properties": {
  18041. "key": {
  18042. "type": "string"
  18043. },
  18044. "title": {
  18045. "type": "string"
  18046. },
  18047. "description": {
  18048. "type": "string"
  18049. },
  18050. "required": {
  18051. "type": "boolean"
  18052. },
  18053. "when": {
  18054. "type": "array",
  18055. "items": {
  18056. "$ref": "#/components/schemas/Form.When"
  18057. }
  18058. },
  18059. "type": {
  18060. "type": "string",
  18061. "enum": ["number"]
  18062. },
  18063. "minimum": {
  18064. "anyOf": [
  18065. {
  18066. "anyOf": [
  18067. {
  18068. "type": "number"
  18069. },
  18070. {
  18071. "type": "string",
  18072. "enum": ["NaN"]
  18073. },
  18074. {
  18075. "type": "string",
  18076. "enum": ["Infinity"]
  18077. },
  18078. {
  18079. "type": "string",
  18080. "enum": ["-Infinity"]
  18081. }
  18082. ]
  18083. },
  18084. {
  18085. "type": "string",
  18086. "enum": ["Infinity", "-Infinity", "NaN"]
  18087. }
  18088. ]
  18089. },
  18090. "maximum": {
  18091. "anyOf": [
  18092. {
  18093. "anyOf": [
  18094. {
  18095. "type": "number"
  18096. },
  18097. {
  18098. "type": "string",
  18099. "enum": ["NaN"]
  18100. },
  18101. {
  18102. "type": "string",
  18103. "enum": ["Infinity"]
  18104. },
  18105. {
  18106. "type": "string",
  18107. "enum": ["-Infinity"]
  18108. }
  18109. ]
  18110. },
  18111. {
  18112. "type": "string",
  18113. "enum": ["Infinity", "-Infinity", "NaN"]
  18114. }
  18115. ]
  18116. },
  18117. "default": {
  18118. "anyOf": [
  18119. {
  18120. "anyOf": [
  18121. {
  18122. "type": "number"
  18123. },
  18124. {
  18125. "type": "string",
  18126. "enum": ["NaN"]
  18127. },
  18128. {
  18129. "type": "string",
  18130. "enum": ["Infinity"]
  18131. },
  18132. {
  18133. "type": "string",
  18134. "enum": ["-Infinity"]
  18135. }
  18136. ]
  18137. },
  18138. {
  18139. "type": "string",
  18140. "enum": ["Infinity", "-Infinity", "NaN"]
  18141. }
  18142. ]
  18143. }
  18144. },
  18145. "required": ["key", "type"],
  18146. "additionalProperties": false
  18147. },
  18148. "Form.IntegerField": {
  18149. "type": "object",
  18150. "properties": {
  18151. "key": {
  18152. "type": "string"
  18153. },
  18154. "title": {
  18155. "type": "string"
  18156. },
  18157. "description": {
  18158. "type": "string"
  18159. },
  18160. "required": {
  18161. "type": "boolean"
  18162. },
  18163. "when": {
  18164. "type": "array",
  18165. "items": {
  18166. "$ref": "#/components/schemas/Form.When"
  18167. }
  18168. },
  18169. "type": {
  18170. "type": "string",
  18171. "enum": ["integer"]
  18172. },
  18173. "minimum": {
  18174. "anyOf": [
  18175. {
  18176. "anyOf": [
  18177. {
  18178. "type": "number"
  18179. },
  18180. {
  18181. "type": "string",
  18182. "enum": ["NaN"]
  18183. },
  18184. {
  18185. "type": "string",
  18186. "enum": ["Infinity"]
  18187. },
  18188. {
  18189. "type": "string",
  18190. "enum": ["-Infinity"]
  18191. }
  18192. ]
  18193. },
  18194. {
  18195. "type": "string",
  18196. "enum": ["Infinity", "-Infinity", "NaN"]
  18197. }
  18198. ]
  18199. },
  18200. "maximum": {
  18201. "anyOf": [
  18202. {
  18203. "anyOf": [
  18204. {
  18205. "type": "number"
  18206. },
  18207. {
  18208. "type": "string",
  18209. "enum": ["NaN"]
  18210. },
  18211. {
  18212. "type": "string",
  18213. "enum": ["Infinity"]
  18214. },
  18215. {
  18216. "type": "string",
  18217. "enum": ["-Infinity"]
  18218. }
  18219. ]
  18220. },
  18221. {
  18222. "type": "string",
  18223. "enum": ["Infinity", "-Infinity", "NaN"]
  18224. }
  18225. ]
  18226. },
  18227. "default": {
  18228. "anyOf": [
  18229. {
  18230. "anyOf": [
  18231. {
  18232. "type": "number"
  18233. },
  18234. {
  18235. "type": "string",
  18236. "enum": ["NaN"]
  18237. },
  18238. {
  18239. "type": "string",
  18240. "enum": ["Infinity"]
  18241. },
  18242. {
  18243. "type": "string",
  18244. "enum": ["-Infinity"]
  18245. }
  18246. ]
  18247. },
  18248. {
  18249. "type": "string",
  18250. "enum": ["Infinity", "-Infinity", "NaN"]
  18251. }
  18252. ]
  18253. }
  18254. },
  18255. "required": ["key", "type"],
  18256. "additionalProperties": false
  18257. },
  18258. "Form.BooleanField": {
  18259. "type": "object",
  18260. "properties": {
  18261. "key": {
  18262. "type": "string"
  18263. },
  18264. "title": {
  18265. "type": "string"
  18266. },
  18267. "description": {
  18268. "type": "string"
  18269. },
  18270. "required": {
  18271. "type": "boolean"
  18272. },
  18273. "when": {
  18274. "type": "array",
  18275. "items": {
  18276. "$ref": "#/components/schemas/Form.When"
  18277. }
  18278. },
  18279. "type": {
  18280. "type": "string",
  18281. "enum": ["boolean"]
  18282. },
  18283. "default": {
  18284. "type": "boolean"
  18285. }
  18286. },
  18287. "required": ["key", "type"],
  18288. "additionalProperties": false
  18289. },
  18290. "Form.MultiselectField": {
  18291. "type": "object",
  18292. "properties": {
  18293. "key": {
  18294. "type": "string"
  18295. },
  18296. "title": {
  18297. "type": "string"
  18298. },
  18299. "description": {
  18300. "type": "string"
  18301. },
  18302. "required": {
  18303. "type": "boolean"
  18304. },
  18305. "when": {
  18306. "type": "array",
  18307. "items": {
  18308. "$ref": "#/components/schemas/Form.When"
  18309. }
  18310. },
  18311. "type": {
  18312. "type": "string",
  18313. "enum": ["multiselect"]
  18314. },
  18315. "options": {
  18316. "type": "array",
  18317. "items": {
  18318. "$ref": "#/components/schemas/Form.Option"
  18319. }
  18320. },
  18321. "minItems": {
  18322. "type": "integer",
  18323. "allOf": [
  18324. {
  18325. "minimum": 0
  18326. }
  18327. ]
  18328. },
  18329. "maxItems": {
  18330. "type": "integer",
  18331. "allOf": [
  18332. {
  18333. "minimum": 0
  18334. }
  18335. ]
  18336. },
  18337. "custom": {
  18338. "type": "boolean"
  18339. },
  18340. "default": {
  18341. "type": "array",
  18342. "items": {
  18343. "type": "string"
  18344. }
  18345. }
  18346. },
  18347. "required": ["key", "type", "options"],
  18348. "additionalProperties": false
  18349. },
  18350. "Form.ExternalField": {
  18351. "type": "object",
  18352. "properties": {
  18353. "key": {
  18354. "type": "string"
  18355. },
  18356. "type": {
  18357. "type": "string",
  18358. "enum": ["external"]
  18359. },
  18360. "url": {
  18361. "type": "string"
  18362. },
  18363. "title": {
  18364. "type": "string"
  18365. },
  18366. "description": {
  18367. "type": "string"
  18368. }
  18369. },
  18370. "required": ["key", "type", "url"],
  18371. "additionalProperties": false
  18372. },
  18373. "Form.Field": {
  18374. "anyOf": [
  18375. {
  18376. "$ref": "#/components/schemas/Form.StringField"
  18377. },
  18378. {
  18379. "$ref": "#/components/schemas/Form.NumberField"
  18380. },
  18381. {
  18382. "$ref": "#/components/schemas/Form.IntegerField"
  18383. },
  18384. {
  18385. "$ref": "#/components/schemas/Form.BooleanField"
  18386. },
  18387. {
  18388. "$ref": "#/components/schemas/Form.MultiselectField"
  18389. },
  18390. {
  18391. "$ref": "#/components/schemas/Form.ExternalField"
  18392. }
  18393. ]
  18394. },
  18395. "Form.Fields": {
  18396. "type": "array",
  18397. "prefixItems": [
  18398. {
  18399. "$ref": "#/components/schemas/Form.Field"
  18400. }
  18401. ],
  18402. "minItems": 1,
  18403. "items": {
  18404. "$ref": "#/components/schemas/Form.Field"
  18405. }
  18406. },
  18407. "Integration.OAuthMethod": {
  18408. "type": "object",
  18409. "properties": {
  18410. "id": {
  18411. "type": "string"
  18412. },
  18413. "type": {
  18414. "type": "string",
  18415. "enum": ["oauth"]
  18416. },
  18417. "label": {
  18418. "type": "string"
  18419. },
  18420. "form": {
  18421. "$ref": "#/components/schemas/Form.Fields"
  18422. }
  18423. },
  18424. "required": ["id", "type", "label"],
  18425. "additionalProperties": false
  18426. },
  18427. "Integration.CommandMethod": {
  18428. "type": "object",
  18429. "properties": {
  18430. "id": {
  18431. "type": "string"
  18432. },
  18433. "type": {
  18434. "type": "string",
  18435. "enum": ["command"]
  18436. },
  18437. "label": {
  18438. "type": "string"
  18439. },
  18440. "command": {
  18441. "type": "array",
  18442. "items": {
  18443. "type": "string"
  18444. }
  18445. }
  18446. },
  18447. "required": ["id", "type", "label", "command"],
  18448. "additionalProperties": false
  18449. },
  18450. "Integration.KeyMethod": {
  18451. "type": "object",
  18452. "properties": {
  18453. "type": {
  18454. "type": "string",
  18455. "enum": ["key"]
  18456. },
  18457. "label": {
  18458. "type": "string"
  18459. },
  18460. "form": {
  18461. "$ref": "#/components/schemas/Form.Fields"
  18462. }
  18463. },
  18464. "required": ["type"],
  18465. "additionalProperties": false
  18466. },
  18467. "Integration.EnvMethod": {
  18468. "type": "object",
  18469. "properties": {
  18470. "type": {
  18471. "type": "string",
  18472. "enum": ["env"]
  18473. },
  18474. "names": {
  18475. "type": "array",
  18476. "items": {
  18477. "type": "string"
  18478. }
  18479. }
  18480. },
  18481. "required": ["type", "names"],
  18482. "additionalProperties": false
  18483. },
  18484. "Integration.Method": {
  18485. "anyOf": [
  18486. {
  18487. "$ref": "#/components/schemas/Integration.OAuthMethod"
  18488. },
  18489. {
  18490. "$ref": "#/components/schemas/Integration.CommandMethod"
  18491. },
  18492. {
  18493. "$ref": "#/components/schemas/Integration.KeyMethod"
  18494. },
  18495. {
  18496. "$ref": "#/components/schemas/Integration.EnvMethod"
  18497. }
  18498. ]
  18499. },
  18500. "Connection.CredentialInfo": {
  18501. "type": "object",
  18502. "properties": {
  18503. "type": {
  18504. "type": "string",
  18505. "enum": ["credential"]
  18506. },
  18507. "id": {
  18508. "type": "string"
  18509. },
  18510. "label": {
  18511. "type": "string"
  18512. }
  18513. },
  18514. "required": ["type", "id", "label"],
  18515. "additionalProperties": false
  18516. },
  18517. "Connection.EnvInfo": {
  18518. "type": "object",
  18519. "properties": {
  18520. "type": {
  18521. "type": "string",
  18522. "enum": ["env"]
  18523. },
  18524. "name": {
  18525. "type": "string"
  18526. }
  18527. },
  18528. "required": ["type", "name"],
  18529. "additionalProperties": false
  18530. },
  18531. "Connection.Info": {
  18532. "anyOf": [
  18533. {
  18534. "$ref": "#/components/schemas/Connection.CredentialInfo"
  18535. },
  18536. {
  18537. "$ref": "#/components/schemas/Connection.EnvInfo"
  18538. }
  18539. ]
  18540. },
  18541. "Integration.Info": {
  18542. "type": "object",
  18543. "properties": {
  18544. "id": {
  18545. "type": "string"
  18546. },
  18547. "name": {
  18548. "type": "string"
  18549. },
  18550. "methods": {
  18551. "type": "array",
  18552. "items": {
  18553. "$ref": "#/components/schemas/Integration.Method"
  18554. }
  18555. },
  18556. "connections": {
  18557. "type": "array",
  18558. "items": {
  18559. "$ref": "#/components/schemas/Connection.Info"
  18560. }
  18561. }
  18562. },
  18563. "required": ["id", "name", "methods", "connections"],
  18564. "additionalProperties": false
  18565. },
  18566. "Form.Value": {
  18567. "anyOf": [
  18568. {
  18569. "type": "string"
  18570. },
  18571. {
  18572. "anyOf": [
  18573. {
  18574. "anyOf": [
  18575. {
  18576. "type": "number"
  18577. },
  18578. {
  18579. "type": "string",
  18580. "enum": ["NaN"]
  18581. },
  18582. {
  18583. "type": "string",
  18584. "enum": ["Infinity"]
  18585. },
  18586. {
  18587. "type": "string",
  18588. "enum": ["-Infinity"]
  18589. }
  18590. ]
  18591. },
  18592. {
  18593. "type": "string",
  18594. "enum": ["Infinity", "-Infinity", "NaN"]
  18595. }
  18596. ]
  18597. },
  18598. {
  18599. "type": "boolean"
  18600. },
  18601. {
  18602. "type": "array",
  18603. "items": {
  18604. "type": "string"
  18605. }
  18606. }
  18607. ]
  18608. },
  18609. "Form.Answer": {
  18610. "type": "object",
  18611. "additionalProperties": {
  18612. "$ref": "#/components/schemas/Form.Value"
  18613. }
  18614. },
  18615. "Integration.Attempt": {
  18616. "type": "object",
  18617. "properties": {
  18618. "attemptID": {
  18619. "type": "string"
  18620. },
  18621. "url": {
  18622. "type": "string"
  18623. },
  18624. "instructions": {
  18625. "type": "string"
  18626. },
  18627. "mode": {
  18628. "type": "string",
  18629. "enum": ["auto", "code"]
  18630. },
  18631. "time": {
  18632. "type": "object",
  18633. "properties": {
  18634. "created": {
  18635. "anyOf": [
  18636. {
  18637. "anyOf": [
  18638. {
  18639. "type": "number"
  18640. },
  18641. {
  18642. "type": "string",
  18643. "enum": ["NaN"]
  18644. },
  18645. {
  18646. "type": "string",
  18647. "enum": ["Infinity"]
  18648. },
  18649. {
  18650. "type": "string",
  18651. "enum": ["-Infinity"]
  18652. }
  18653. ]
  18654. },
  18655. {
  18656. "type": "string",
  18657. "enum": ["Infinity", "-Infinity", "NaN"]
  18658. }
  18659. ]
  18660. },
  18661. "expires": {
  18662. "anyOf": [
  18663. {
  18664. "anyOf": [
  18665. {
  18666. "type": "number"
  18667. },
  18668. {
  18669. "type": "string",
  18670. "enum": ["NaN"]
  18671. },
  18672. {
  18673. "type": "string",
  18674. "enum": ["Infinity"]
  18675. },
  18676. {
  18677. "type": "string",
  18678. "enum": ["-Infinity"]
  18679. }
  18680. ]
  18681. },
  18682. {
  18683. "type": "string",
  18684. "enum": ["Infinity", "-Infinity", "NaN"]
  18685. }
  18686. ]
  18687. }
  18688. },
  18689. "required": ["created", "expires"],
  18690. "additionalProperties": false
  18691. }
  18692. },
  18693. "required": ["attemptID", "url", "instructions", "mode", "time"],
  18694. "additionalProperties": false
  18695. },
  18696. "Integration.AttemptStatus": {
  18697. "anyOf": [
  18698. {
  18699. "type": "object",
  18700. "properties": {
  18701. "status": {
  18702. "type": "string",
  18703. "enum": ["pending"]
  18704. },
  18705. "time": {
  18706. "type": "object",
  18707. "properties": {
  18708. "created": {
  18709. "anyOf": [
  18710. {
  18711. "anyOf": [
  18712. {
  18713. "type": "number"
  18714. },
  18715. {
  18716. "type": "string",
  18717. "enum": ["NaN"]
  18718. },
  18719. {
  18720. "type": "string",
  18721. "enum": ["Infinity"]
  18722. },
  18723. {
  18724. "type": "string",
  18725. "enum": ["-Infinity"]
  18726. }
  18727. ]
  18728. },
  18729. {
  18730. "type": "string",
  18731. "enum": ["Infinity", "-Infinity", "NaN"]
  18732. }
  18733. ]
  18734. },
  18735. "expires": {
  18736. "anyOf": [
  18737. {
  18738. "anyOf": [
  18739. {
  18740. "type": "number"
  18741. },
  18742. {
  18743. "type": "string",
  18744. "enum": ["NaN"]
  18745. },
  18746. {
  18747. "type": "string",
  18748. "enum": ["Infinity"]
  18749. },
  18750. {
  18751. "type": "string",
  18752. "enum": ["-Infinity"]
  18753. }
  18754. ]
  18755. },
  18756. {
  18757. "type": "string",
  18758. "enum": ["Infinity", "-Infinity", "NaN"]
  18759. }
  18760. ]
  18761. }
  18762. },
  18763. "required": ["created", "expires"],
  18764. "additionalProperties": false
  18765. }
  18766. },
  18767. "required": ["status", "time"],
  18768. "additionalProperties": false
  18769. },
  18770. {
  18771. "type": "object",
  18772. "properties": {
  18773. "status": {
  18774. "type": "string",
  18775. "enum": ["complete"]
  18776. },
  18777. "time": {
  18778. "type": "object",
  18779. "properties": {
  18780. "created": {
  18781. "anyOf": [
  18782. {
  18783. "anyOf": [
  18784. {
  18785. "type": "number"
  18786. },
  18787. {
  18788. "type": "string",
  18789. "enum": ["NaN"]
  18790. },
  18791. {
  18792. "type": "string",
  18793. "enum": ["Infinity"]
  18794. },
  18795. {
  18796. "type": "string",
  18797. "enum": ["-Infinity"]
  18798. }
  18799. ]
  18800. },
  18801. {
  18802. "type": "string",
  18803. "enum": ["Infinity", "-Infinity", "NaN"]
  18804. }
  18805. ]
  18806. },
  18807. "expires": {
  18808. "anyOf": [
  18809. {
  18810. "anyOf": [
  18811. {
  18812. "type": "number"
  18813. },
  18814. {
  18815. "type": "string",
  18816. "enum": ["NaN"]
  18817. },
  18818. {
  18819. "type": "string",
  18820. "enum": ["Infinity"]
  18821. },
  18822. {
  18823. "type": "string",
  18824. "enum": ["-Infinity"]
  18825. }
  18826. ]
  18827. },
  18828. {
  18829. "type": "string",
  18830. "enum": ["Infinity", "-Infinity", "NaN"]
  18831. }
  18832. ]
  18833. }
  18834. },
  18835. "required": ["created", "expires"],
  18836. "additionalProperties": false
  18837. }
  18838. },
  18839. "required": ["status", "time"],
  18840. "additionalProperties": false
  18841. },
  18842. {
  18843. "type": "object",
  18844. "properties": {
  18845. "status": {
  18846. "type": "string",
  18847. "enum": ["failed"]
  18848. },
  18849. "message": {
  18850. "type": "string"
  18851. },
  18852. "time": {
  18853. "type": "object",
  18854. "properties": {
  18855. "created": {
  18856. "anyOf": [
  18857. {
  18858. "anyOf": [
  18859. {
  18860. "type": "number"
  18861. },
  18862. {
  18863. "type": "string",
  18864. "enum": ["NaN"]
  18865. },
  18866. {
  18867. "type": "string",
  18868. "enum": ["Infinity"]
  18869. },
  18870. {
  18871. "type": "string",
  18872. "enum": ["-Infinity"]
  18873. }
  18874. ]
  18875. },
  18876. {
  18877. "type": "string",
  18878. "enum": ["Infinity", "-Infinity", "NaN"]
  18879. }
  18880. ]
  18881. },
  18882. "expires": {
  18883. "anyOf": [
  18884. {
  18885. "anyOf": [
  18886. {
  18887. "type": "number"
  18888. },
  18889. {
  18890. "type": "string",
  18891. "enum": ["NaN"]
  18892. },
  18893. {
  18894. "type": "string",
  18895. "enum": ["Infinity"]
  18896. },
  18897. {
  18898. "type": "string",
  18899. "enum": ["-Infinity"]
  18900. }
  18901. ]
  18902. },
  18903. {
  18904. "type": "string",
  18905. "enum": ["Infinity", "-Infinity", "NaN"]
  18906. }
  18907. ]
  18908. }
  18909. },
  18910. "required": ["created", "expires"],
  18911. "additionalProperties": false
  18912. }
  18913. },
  18914. "required": ["status", "message", "time"],
  18915. "additionalProperties": false
  18916. },
  18917. {
  18918. "type": "object",
  18919. "properties": {
  18920. "status": {
  18921. "type": "string",
  18922. "enum": ["expired"]
  18923. },
  18924. "time": {
  18925. "type": "object",
  18926. "properties": {
  18927. "created": {
  18928. "anyOf": [
  18929. {
  18930. "anyOf": [
  18931. {
  18932. "type": "number"
  18933. },
  18934. {
  18935. "type": "string",
  18936. "enum": ["NaN"]
  18937. },
  18938. {
  18939. "type": "string",
  18940. "enum": ["Infinity"]
  18941. },
  18942. {
  18943. "type": "string",
  18944. "enum": ["-Infinity"]
  18945. }
  18946. ]
  18947. },
  18948. {
  18949. "type": "string",
  18950. "enum": ["Infinity", "-Infinity", "NaN"]
  18951. }
  18952. ]
  18953. },
  18954. "expires": {
  18955. "anyOf": [
  18956. {
  18957. "anyOf": [
  18958. {
  18959. "type": "number"
  18960. },
  18961. {
  18962. "type": "string",
  18963. "enum": ["NaN"]
  18964. },
  18965. {
  18966. "type": "string",
  18967. "enum": ["Infinity"]
  18968. },
  18969. {
  18970. "type": "string",
  18971. "enum": ["-Infinity"]
  18972. }
  18973. ]
  18974. },
  18975. {
  18976. "type": "string",
  18977. "enum": ["Infinity", "-Infinity", "NaN"]
  18978. }
  18979. ]
  18980. }
  18981. },
  18982. "required": ["created", "expires"],
  18983. "additionalProperties": false
  18984. }
  18985. },
  18986. "required": ["status", "time"],
  18987. "additionalProperties": false
  18988. }
  18989. ]
  18990. },
  18991. "Integration.CommandAttempt": {
  18992. "type": "object",
  18993. "properties": {
  18994. "attemptID": {
  18995. "type": "string"
  18996. },
  18997. "time": {
  18998. "type": "object",
  18999. "properties": {
  19000. "created": {
  19001. "anyOf": [
  19002. {
  19003. "anyOf": [
  19004. {
  19005. "type": "number"
  19006. },
  19007. {
  19008. "type": "string",
  19009. "enum": ["NaN"]
  19010. },
  19011. {
  19012. "type": "string",
  19013. "enum": ["Infinity"]
  19014. },
  19015. {
  19016. "type": "string",
  19017. "enum": ["-Infinity"]
  19018. }
  19019. ]
  19020. },
  19021. {
  19022. "type": "string",
  19023. "enum": ["Infinity", "-Infinity", "NaN"]
  19024. }
  19025. ]
  19026. },
  19027. "expires": {
  19028. "anyOf": [
  19029. {
  19030. "anyOf": [
  19031. {
  19032. "type": "number"
  19033. },
  19034. {
  19035. "type": "string",
  19036. "enum": ["NaN"]
  19037. },
  19038. {
  19039. "type": "string",
  19040. "enum": ["Infinity"]
  19041. },
  19042. {
  19043. "type": "string",
  19044. "enum": ["-Infinity"]
  19045. }
  19046. ]
  19047. },
  19048. {
  19049. "type": "string",
  19050. "enum": ["Infinity", "-Infinity", "NaN"]
  19051. }
  19052. ]
  19053. }
  19054. },
  19055. "required": ["created", "expires"],
  19056. "additionalProperties": false
  19057. }
  19058. },
  19059. "required": ["attemptID", "time"],
  19060. "additionalProperties": false
  19061. },
  19062. "Integration.CommandAttemptStatus": {
  19063. "anyOf": [
  19064. {
  19065. "type": "object",
  19066. "properties": {
  19067. "status": {
  19068. "type": "string",
  19069. "enum": ["pending"]
  19070. },
  19071. "message": {
  19072. "type": "string"
  19073. },
  19074. "time": {
  19075. "type": "object",
  19076. "properties": {
  19077. "created": {
  19078. "anyOf": [
  19079. {
  19080. "anyOf": [
  19081. {
  19082. "type": "number"
  19083. },
  19084. {
  19085. "type": "string",
  19086. "enum": ["NaN"]
  19087. },
  19088. {
  19089. "type": "string",
  19090. "enum": ["Infinity"]
  19091. },
  19092. {
  19093. "type": "string",
  19094. "enum": ["-Infinity"]
  19095. }
  19096. ]
  19097. },
  19098. {
  19099. "type": "string",
  19100. "enum": ["Infinity", "-Infinity", "NaN"]
  19101. }
  19102. ]
  19103. },
  19104. "expires": {
  19105. "anyOf": [
  19106. {
  19107. "anyOf": [
  19108. {
  19109. "type": "number"
  19110. },
  19111. {
  19112. "type": "string",
  19113. "enum": ["NaN"]
  19114. },
  19115. {
  19116. "type": "string",
  19117. "enum": ["Infinity"]
  19118. },
  19119. {
  19120. "type": "string",
  19121. "enum": ["-Infinity"]
  19122. }
  19123. ]
  19124. },
  19125. {
  19126. "type": "string",
  19127. "enum": ["Infinity", "-Infinity", "NaN"]
  19128. }
  19129. ]
  19130. }
  19131. },
  19132. "required": ["created", "expires"],
  19133. "additionalProperties": false
  19134. }
  19135. },
  19136. "required": ["status", "time"],
  19137. "additionalProperties": false
  19138. },
  19139. {
  19140. "type": "object",
  19141. "properties": {
  19142. "status": {
  19143. "type": "string",
  19144. "enum": ["complete"]
  19145. },
  19146. "time": {
  19147. "type": "object",
  19148. "properties": {
  19149. "created": {
  19150. "anyOf": [
  19151. {
  19152. "anyOf": [
  19153. {
  19154. "type": "number"
  19155. },
  19156. {
  19157. "type": "string",
  19158. "enum": ["NaN"]
  19159. },
  19160. {
  19161. "type": "string",
  19162. "enum": ["Infinity"]
  19163. },
  19164. {
  19165. "type": "string",
  19166. "enum": ["-Infinity"]
  19167. }
  19168. ]
  19169. },
  19170. {
  19171. "type": "string",
  19172. "enum": ["Infinity", "-Infinity", "NaN"]
  19173. }
  19174. ]
  19175. },
  19176. "expires": {
  19177. "anyOf": [
  19178. {
  19179. "anyOf": [
  19180. {
  19181. "type": "number"
  19182. },
  19183. {
  19184. "type": "string",
  19185. "enum": ["NaN"]
  19186. },
  19187. {
  19188. "type": "string",
  19189. "enum": ["Infinity"]
  19190. },
  19191. {
  19192. "type": "string",
  19193. "enum": ["-Infinity"]
  19194. }
  19195. ]
  19196. },
  19197. {
  19198. "type": "string",
  19199. "enum": ["Infinity", "-Infinity", "NaN"]
  19200. }
  19201. ]
  19202. }
  19203. },
  19204. "required": ["created", "expires"],
  19205. "additionalProperties": false
  19206. }
  19207. },
  19208. "required": ["status", "time"],
  19209. "additionalProperties": false
  19210. },
  19211. {
  19212. "type": "object",
  19213. "properties": {
  19214. "status": {
  19215. "type": "string",
  19216. "enum": ["failed"]
  19217. },
  19218. "message": {
  19219. "type": "string"
  19220. },
  19221. "time": {
  19222. "type": "object",
  19223. "properties": {
  19224. "created": {
  19225. "anyOf": [
  19226. {
  19227. "anyOf": [
  19228. {
  19229. "type": "number"
  19230. },
  19231. {
  19232. "type": "string",
  19233. "enum": ["NaN"]
  19234. },
  19235. {
  19236. "type": "string",
  19237. "enum": ["Infinity"]
  19238. },
  19239. {
  19240. "type": "string",
  19241. "enum": ["-Infinity"]
  19242. }
  19243. ]
  19244. },
  19245. {
  19246. "type": "string",
  19247. "enum": ["Infinity", "-Infinity", "NaN"]
  19248. }
  19249. ]
  19250. },
  19251. "expires": {
  19252. "anyOf": [
  19253. {
  19254. "anyOf": [
  19255. {
  19256. "type": "number"
  19257. },
  19258. {
  19259. "type": "string",
  19260. "enum": ["NaN"]
  19261. },
  19262. {
  19263. "type": "string",
  19264. "enum": ["Infinity"]
  19265. },
  19266. {
  19267. "type": "string",
  19268. "enum": ["-Infinity"]
  19269. }
  19270. ]
  19271. },
  19272. {
  19273. "type": "string",
  19274. "enum": ["Infinity", "-Infinity", "NaN"]
  19275. }
  19276. ]
  19277. }
  19278. },
  19279. "required": ["created", "expires"],
  19280. "additionalProperties": false
  19281. }
  19282. },
  19283. "required": ["status", "message", "time"],
  19284. "additionalProperties": false
  19285. },
  19286. {
  19287. "type": "object",
  19288. "properties": {
  19289. "status": {
  19290. "type": "string",
  19291. "enum": ["expired"]
  19292. },
  19293. "time": {
  19294. "type": "object",
  19295. "properties": {
  19296. "created": {
  19297. "anyOf": [
  19298. {
  19299. "anyOf": [
  19300. {
  19301. "type": "number"
  19302. },
  19303. {
  19304. "type": "string",
  19305. "enum": ["NaN"]
  19306. },
  19307. {
  19308. "type": "string",
  19309. "enum": ["Infinity"]
  19310. },
  19311. {
  19312. "type": "string",
  19313. "enum": ["-Infinity"]
  19314. }
  19315. ]
  19316. },
  19317. {
  19318. "type": "string",
  19319. "enum": ["Infinity", "-Infinity", "NaN"]
  19320. }
  19321. ]
  19322. },
  19323. "expires": {
  19324. "anyOf": [
  19325. {
  19326. "anyOf": [
  19327. {
  19328. "type": "number"
  19329. },
  19330. {
  19331. "type": "string",
  19332. "enum": ["NaN"]
  19333. },
  19334. {
  19335. "type": "string",
  19336. "enum": ["Infinity"]
  19337. },
  19338. {
  19339. "type": "string",
  19340. "enum": ["-Infinity"]
  19341. }
  19342. ]
  19343. },
  19344. {
  19345. "type": "string",
  19346. "enum": ["Infinity", "-Infinity", "NaN"]
  19347. }
  19348. ]
  19349. }
  19350. },
  19351. "required": ["created", "expires"],
  19352. "additionalProperties": false
  19353. }
  19354. },
  19355. "required": ["status", "time"],
  19356. "additionalProperties": false
  19357. }
  19358. ]
  19359. },
  19360. "Mcp.Status.Connected": {
  19361. "type": "object",
  19362. "properties": {
  19363. "status": {
  19364. "type": "string",
  19365. "enum": ["connected"]
  19366. }
  19367. },
  19368. "required": ["status"],
  19369. "additionalProperties": false
  19370. },
  19371. "Mcp.Status.Pending": {
  19372. "type": "object",
  19373. "properties": {
  19374. "status": {
  19375. "type": "string",
  19376. "enum": ["pending"]
  19377. }
  19378. },
  19379. "required": ["status"],
  19380. "additionalProperties": false
  19381. },
  19382. "Mcp.Status.Disabled": {
  19383. "type": "object",
  19384. "properties": {
  19385. "status": {
  19386. "type": "string",
  19387. "enum": ["disabled"]
  19388. }
  19389. },
  19390. "required": ["status"],
  19391. "additionalProperties": false
  19392. },
  19393. "Mcp.Status.Failed": {
  19394. "type": "object",
  19395. "properties": {
  19396. "status": {
  19397. "type": "string",
  19398. "enum": ["failed"]
  19399. },
  19400. "error": {
  19401. "type": "string"
  19402. }
  19403. },
  19404. "required": ["status", "error"],
  19405. "additionalProperties": false
  19406. },
  19407. "Mcp.Status.NeedsAuth": {
  19408. "type": "object",
  19409. "properties": {
  19410. "status": {
  19411. "type": "string",
  19412. "enum": ["needs_auth"]
  19413. }
  19414. },
  19415. "required": ["status"],
  19416. "additionalProperties": false
  19417. },
  19418. "Mcp.Server": {
  19419. "type": "object",
  19420. "properties": {
  19421. "name": {
  19422. "type": "string"
  19423. },
  19424. "status": {
  19425. "anyOf": [
  19426. {
  19427. "$ref": "#/components/schemas/Mcp.Status.Connected"
  19428. },
  19429. {
  19430. "$ref": "#/components/schemas/Mcp.Status.Pending"
  19431. },
  19432. {
  19433. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  19434. },
  19435. {
  19436. "$ref": "#/components/schemas/Mcp.Status.Failed"
  19437. },
  19438. {
  19439. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  19440. }
  19441. ]
  19442. },
  19443. "integrationID": {
  19444. "type": "string"
  19445. }
  19446. },
  19447. "required": ["name", "status"],
  19448. "additionalProperties": false
  19449. },
  19450. "Mcp.LocalConfig": {
  19451. "type": "object",
  19452. "properties": {
  19453. "type": {
  19454. "type": "string",
  19455. "enum": ["local"]
  19456. },
  19457. "command": {
  19458. "type": "array",
  19459. "items": {
  19460. "type": "string"
  19461. }
  19462. },
  19463. "cwd": {
  19464. "type": "string"
  19465. },
  19466. "environment": {
  19467. "type": "object",
  19468. "additionalProperties": {
  19469. "type": "string"
  19470. }
  19471. },
  19472. "disabled": {
  19473. "type": "boolean"
  19474. },
  19475. "codemode": {
  19476. "type": "boolean"
  19477. },
  19478. "timeout": {
  19479. "type": "object",
  19480. "properties": {
  19481. "startup": {
  19482. "type": "integer",
  19483. "allOf": [
  19484. {
  19485. "exclusiveMinimum": 0
  19486. }
  19487. ]
  19488. },
  19489. "catalog": {
  19490. "type": "integer",
  19491. "allOf": [
  19492. {
  19493. "exclusiveMinimum": 0
  19494. }
  19495. ]
  19496. },
  19497. "execution": {
  19498. "type": "integer",
  19499. "allOf": [
  19500. {
  19501. "exclusiveMinimum": 0
  19502. }
  19503. ]
  19504. }
  19505. },
  19506. "additionalProperties": false
  19507. }
  19508. },
  19509. "required": ["type", "command"],
  19510. "additionalProperties": false
  19511. },
  19512. "Mcp.OAuthConfig": {
  19513. "type": "object",
  19514. "properties": {
  19515. "client_id": {
  19516. "type": "string"
  19517. },
  19518. "client_secret": {
  19519. "type": "string"
  19520. },
  19521. "scope": {
  19522. "type": "string"
  19523. },
  19524. "callback_port": {
  19525. "type": "integer",
  19526. "allOf": [
  19527. {
  19528. "minimum": 1,
  19529. "maximum": 65535
  19530. }
  19531. ]
  19532. },
  19533. "redirect_uri": {
  19534. "type": "string"
  19535. }
  19536. },
  19537. "additionalProperties": false
  19538. },
  19539. "Mcp.RemoteConfig": {
  19540. "type": "object",
  19541. "properties": {
  19542. "type": {
  19543. "type": "string",
  19544. "enum": ["remote"]
  19545. },
  19546. "url": {
  19547. "type": "string"
  19548. },
  19549. "headers": {
  19550. "type": "object",
  19551. "additionalProperties": {
  19552. "type": "string"
  19553. }
  19554. },
  19555. "oauth": {
  19556. "anyOf": [
  19557. {
  19558. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  19559. },
  19560. {
  19561. "type": "boolean",
  19562. "enum": [false]
  19563. }
  19564. ]
  19565. },
  19566. "disabled": {
  19567. "type": "boolean"
  19568. },
  19569. "codemode": {
  19570. "type": "boolean"
  19571. },
  19572. "timeout": {
  19573. "type": "object",
  19574. "properties": {
  19575. "startup": {
  19576. "type": "integer",
  19577. "allOf": [
  19578. {
  19579. "exclusiveMinimum": 0
  19580. }
  19581. ]
  19582. },
  19583. "catalog": {
  19584. "type": "integer",
  19585. "allOf": [
  19586. {
  19587. "exclusiveMinimum": 0
  19588. }
  19589. ]
  19590. },
  19591. "execution": {
  19592. "type": "integer",
  19593. "allOf": [
  19594. {
  19595. "exclusiveMinimum": 0
  19596. }
  19597. ]
  19598. }
  19599. },
  19600. "additionalProperties": false
  19601. }
  19602. },
  19603. "required": ["type", "url"],
  19604. "additionalProperties": false
  19605. },
  19606. "McpServerNotFoundError": {
  19607. "type": "object",
  19608. "properties": {
  19609. "_tag": {
  19610. "type": "string",
  19611. "enum": ["McpServerNotFoundError"]
  19612. },
  19613. "server": {
  19614. "type": "string"
  19615. },
  19616. "message": {
  19617. "type": "string"
  19618. }
  19619. },
  19620. "required": ["_tag", "server", "message"],
  19621. "additionalProperties": false
  19622. },
  19623. "Mcp.Resource": {
  19624. "type": "object",
  19625. "properties": {
  19626. "server": {
  19627. "type": "string"
  19628. },
  19629. "name": {
  19630. "type": "string"
  19631. },
  19632. "uri": {
  19633. "type": "string"
  19634. },
  19635. "description": {
  19636. "type": "string"
  19637. },
  19638. "mimeType": {
  19639. "type": "string"
  19640. }
  19641. },
  19642. "required": ["server", "name", "uri"],
  19643. "additionalProperties": false
  19644. },
  19645. "Mcp.ResourceTemplate": {
  19646. "type": "object",
  19647. "properties": {
  19648. "server": {
  19649. "type": "string"
  19650. },
  19651. "name": {
  19652. "type": "string"
  19653. },
  19654. "uriTemplate": {
  19655. "type": "string"
  19656. },
  19657. "description": {
  19658. "type": "string"
  19659. },
  19660. "mimeType": {
  19661. "type": "string"
  19662. }
  19663. },
  19664. "required": ["server", "name", "uriTemplate"],
  19665. "additionalProperties": false
  19666. },
  19667. "Mcp.ResourceCatalog": {
  19668. "type": "object",
  19669. "properties": {
  19670. "resources": {
  19671. "type": "array",
  19672. "items": {
  19673. "$ref": "#/components/schemas/Mcp.Resource"
  19674. }
  19675. },
  19676. "templates": {
  19677. "type": "array",
  19678. "items": {
  19679. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  19680. }
  19681. }
  19682. },
  19683. "required": ["resources", "templates"],
  19684. "additionalProperties": false
  19685. },
  19686. "Project.Vcs": {
  19687. "type": "string",
  19688. "enum": ["git", "hg"]
  19689. },
  19690. "Project.Icon": {
  19691. "type": "object",
  19692. "properties": {
  19693. "url": {
  19694. "type": "string"
  19695. },
  19696. "override": {
  19697. "type": "string"
  19698. },
  19699. "color": {
  19700. "type": "string"
  19701. }
  19702. },
  19703. "additionalProperties": false
  19704. },
  19705. "Project.Commands": {
  19706. "type": "object",
  19707. "properties": {
  19708. "start": {
  19709. "type": "string",
  19710. "description": "Startup script to run when creating a new workspace (worktree)"
  19711. }
  19712. },
  19713. "additionalProperties": false
  19714. },
  19715. "Project.Time": {
  19716. "type": "object",
  19717. "properties": {
  19718. "created": {
  19719. "type": "integer",
  19720. "allOf": [
  19721. {
  19722. "minimum": 0
  19723. }
  19724. ]
  19725. },
  19726. "updated": {
  19727. "type": "integer",
  19728. "allOf": [
  19729. {
  19730. "minimum": 0
  19731. }
  19732. ]
  19733. },
  19734. "initialized": {
  19735. "type": "integer",
  19736. "allOf": [
  19737. {
  19738. "minimum": 0
  19739. }
  19740. ]
  19741. }
  19742. },
  19743. "required": ["created", "updated"],
  19744. "additionalProperties": false
  19745. },
  19746. "Project": {
  19747. "type": "object",
  19748. "properties": {
  19749. "id": {
  19750. "type": "string"
  19751. },
  19752. "canonical": {
  19753. "type": "string"
  19754. },
  19755. "vcs": {
  19756. "$ref": "#/components/schemas/Project.Vcs"
  19757. },
  19758. "name": {
  19759. "type": "string"
  19760. },
  19761. "icon": {
  19762. "$ref": "#/components/schemas/Project.Icon"
  19763. },
  19764. "commands": {
  19765. "$ref": "#/components/schemas/Project.Commands"
  19766. },
  19767. "time": {
  19768. "$ref": "#/components/schemas/Project.Time"
  19769. },
  19770. "sandboxes": {
  19771. "type": "array",
  19772. "items": {
  19773. "type": "string"
  19774. }
  19775. }
  19776. },
  19777. "required": ["id", "canonical", "time", "sandboxes"],
  19778. "additionalProperties": false
  19779. },
  19780. "Project.Current": {
  19781. "type": "object",
  19782. "properties": {
  19783. "id": {
  19784. "type": "string"
  19785. },
  19786. "directory": {
  19787. "type": "string"
  19788. },
  19789. "canonical": {
  19790. "type": "string"
  19791. }
  19792. },
  19793. "required": ["id", "directory", "canonical"],
  19794. "additionalProperties": false
  19795. },
  19796. "Form.Metadata": {
  19797. "type": "object"
  19798. },
  19799. "Form.Info": {
  19800. "type": "object",
  19801. "properties": {
  19802. "id": {
  19803. "type": "string",
  19804. "allOf": [
  19805. {
  19806. "pattern": "^frm_"
  19807. }
  19808. ]
  19809. },
  19810. "sessionID": {
  19811. "type": "string"
  19812. },
  19813. "title": {
  19814. "type": "string"
  19815. },
  19816. "metadata": {
  19817. "$ref": "#/components/schemas/Form.Metadata"
  19818. },
  19819. "fields": {
  19820. "$ref": "#/components/schemas/Form.Fields"
  19821. }
  19822. },
  19823. "required": ["id", "sessionID", "title", "fields"],
  19824. "additionalProperties": false
  19825. },
  19826. "Form.CreatePayload": {
  19827. "type": "object",
  19828. "properties": {
  19829. "id": {
  19830. "anyOf": [
  19831. {
  19832. "type": "string",
  19833. "allOf": [
  19834. {
  19835. "pattern": "^frm_"
  19836. }
  19837. ]
  19838. },
  19839. {
  19840. "type": "null"
  19841. }
  19842. ]
  19843. },
  19844. "title": {
  19845. "type": "string"
  19846. },
  19847. "metadata": {
  19848. "$ref": "#/components/schemas/Form.Metadata"
  19849. },
  19850. "fields": {
  19851. "$ref": "#/components/schemas/Form.Fields"
  19852. }
  19853. },
  19854. "required": ["title", "fields"],
  19855. "additionalProperties": false
  19856. },
  19857. "FormNotFoundError": {
  19858. "type": "object",
  19859. "properties": {
  19860. "_tag": {
  19861. "type": "string",
  19862. "enum": ["FormNotFoundError"]
  19863. },
  19864. "id": {
  19865. "type": "string"
  19866. },
  19867. "message": {
  19868. "type": "string"
  19869. }
  19870. },
  19871. "required": ["_tag", "id", "message"],
  19872. "additionalProperties": false
  19873. },
  19874. "Form.State": {
  19875. "anyOf": [
  19876. {
  19877. "type": "object",
  19878. "properties": {
  19879. "status": {
  19880. "type": "string",
  19881. "enum": ["pending"]
  19882. }
  19883. },
  19884. "required": ["status"],
  19885. "additionalProperties": false
  19886. },
  19887. {
  19888. "type": "object",
  19889. "properties": {
  19890. "status": {
  19891. "type": "string",
  19892. "enum": ["answered"]
  19893. },
  19894. "answer": {
  19895. "$ref": "#/components/schemas/Form.Answer"
  19896. }
  19897. },
  19898. "required": ["status", "answer"],
  19899. "additionalProperties": false
  19900. },
  19901. {
  19902. "type": "object",
  19903. "properties": {
  19904. "status": {
  19905. "type": "string",
  19906. "enum": ["cancelled"]
  19907. }
  19908. },
  19909. "required": ["status"],
  19910. "additionalProperties": false
  19911. }
  19912. ]
  19913. },
  19914. "Form.Reply": {
  19915. "type": "object",
  19916. "properties": {
  19917. "answer": {
  19918. "$ref": "#/components/schemas/Form.Answer"
  19919. }
  19920. },
  19921. "required": ["answer"],
  19922. "additionalProperties": false
  19923. },
  19924. "FormAlreadySettledError": {
  19925. "type": "object",
  19926. "properties": {
  19927. "_tag": {
  19928. "type": "string",
  19929. "enum": ["FormAlreadySettledError"]
  19930. },
  19931. "id": {
  19932. "type": "string"
  19933. },
  19934. "message": {
  19935. "type": "string"
  19936. }
  19937. },
  19938. "required": ["_tag", "id", "message"],
  19939. "additionalProperties": false
  19940. },
  19941. "FormInvalidAnswerError": {
  19942. "type": "object",
  19943. "properties": {
  19944. "_tag": {
  19945. "type": "string",
  19946. "enum": ["FormInvalidAnswerError"]
  19947. },
  19948. "id": {
  19949. "type": "string"
  19950. },
  19951. "message": {
  19952. "type": "string"
  19953. }
  19954. },
  19955. "required": ["_tag", "id", "message"],
  19956. "additionalProperties": false
  19957. },
  19958. "Permission.Source": {
  19959. "anyOf": [
  19960. {
  19961. "type": "object",
  19962. "properties": {
  19963. "type": {
  19964. "type": "string",
  19965. "enum": ["tool"]
  19966. },
  19967. "messageID": {
  19968. "type": "string"
  19969. },
  19970. "id": {
  19971. "type": "string"
  19972. }
  19973. },
  19974. "required": ["type", "messageID", "id"],
  19975. "additionalProperties": false
  19976. }
  19977. ]
  19978. },
  19979. "Permission.Request": {
  19980. "type": "object",
  19981. "properties": {
  19982. "id": {
  19983. "type": "string",
  19984. "allOf": [
  19985. {
  19986. "pattern": "^per"
  19987. }
  19988. ]
  19989. },
  19990. "sessionID": {
  19991. "type": "string",
  19992. "allOf": [
  19993. {
  19994. "pattern": "^ses"
  19995. }
  19996. ]
  19997. },
  19998. "action": {
  19999. "type": "string"
  20000. },
  20001. "resources": {
  20002. "type": "array",
  20003. "items": {
  20004. "type": "string"
  20005. }
  20006. },
  20007. "save": {
  20008. "type": "array",
  20009. "items": {
  20010. "type": "string"
  20011. }
  20012. },
  20013. "metadata": {
  20014. "type": "object"
  20015. },
  20016. "source": {
  20017. "$ref": "#/components/schemas/Permission.Source"
  20018. }
  20019. },
  20020. "required": ["id", "sessionID", "action", "resources"],
  20021. "additionalProperties": false
  20022. },
  20023. "PermissionSaved.Info": {
  20024. "type": "object",
  20025. "properties": {
  20026. "id": {
  20027. "type": "string"
  20028. },
  20029. "projectID": {
  20030. "type": "string"
  20031. },
  20032. "action": {
  20033. "type": "string"
  20034. },
  20035. "resource": {
  20036. "type": "string"
  20037. }
  20038. },
  20039. "required": ["id", "projectID", "action", "resource"],
  20040. "additionalProperties": false
  20041. },
  20042. "PermissionNotFoundError": {
  20043. "type": "object",
  20044. "properties": {
  20045. "_tag": {
  20046. "type": "string",
  20047. "enum": ["PermissionNotFoundError"]
  20048. },
  20049. "requestID": {
  20050. "type": "string"
  20051. },
  20052. "message": {
  20053. "type": "string"
  20054. }
  20055. },
  20056. "required": ["_tag", "requestID", "message"],
  20057. "additionalProperties": false
  20058. },
  20059. "Permission.Reply": {
  20060. "type": "string",
  20061. "enum": ["once", "always", "reject"]
  20062. },
  20063. "FileSystem.Entry": {
  20064. "type": "object",
  20065. "properties": {
  20066. "path": {
  20067. "type": "string"
  20068. },
  20069. "type": {
  20070. "type": "string",
  20071. "enum": ["file", "directory"]
  20072. }
  20073. },
  20074. "required": ["path", "type"],
  20075. "additionalProperties": false
  20076. },
  20077. "Command.Info": {
  20078. "type": "object",
  20079. "properties": {
  20080. "name": {
  20081. "type": "string"
  20082. },
  20083. "template": {
  20084. "type": "string"
  20085. },
  20086. "description": {
  20087. "type": "string"
  20088. },
  20089. "agent": {
  20090. "type": "string"
  20091. },
  20092. "model": {
  20093. "$ref": "#/components/schemas/Model.Ref"
  20094. },
  20095. "subtask": {
  20096. "type": "boolean"
  20097. }
  20098. },
  20099. "required": ["name", "template"],
  20100. "additionalProperties": false
  20101. },
  20102. "Skill.Info": {
  20103. "type": "object",
  20104. "properties": {
  20105. "id": {
  20106. "type": "string"
  20107. },
  20108. "name": {
  20109. "type": "string"
  20110. },
  20111. "description": {
  20112. "type": "string"
  20113. },
  20114. "slash": {
  20115. "type": "boolean"
  20116. },
  20117. "autoinvoke": {
  20118. "type": "boolean"
  20119. },
  20120. "location": {
  20121. "type": "string"
  20122. },
  20123. "content": {
  20124. "type": "string"
  20125. }
  20126. },
  20127. "required": ["id", "name", "location", "content"],
  20128. "additionalProperties": false
  20129. },
  20130. "models-dev.refreshed": {
  20131. "type": "object",
  20132. "properties": {
  20133. "id": {
  20134. "type": "string",
  20135. "allOf": [
  20136. {
  20137. "pattern": "^evt_"
  20138. }
  20139. ]
  20140. },
  20141. "created": {
  20142. "type": "number"
  20143. },
  20144. "metadata": {
  20145. "type": "object"
  20146. },
  20147. "type": {
  20148. "type": "string",
  20149. "enum": ["models-dev.refreshed"]
  20150. },
  20151. "location": {
  20152. "$ref": "#/components/schemas/Location.Ref"
  20153. },
  20154. "data": {
  20155. "anyOf": [
  20156. {
  20157. "type": "object"
  20158. },
  20159. {
  20160. "type": "array"
  20161. }
  20162. ]
  20163. }
  20164. },
  20165. "required": ["id", "created", "type", "data"],
  20166. "additionalProperties": false
  20167. },
  20168. "integration.updated": {
  20169. "type": "object",
  20170. "properties": {
  20171. "id": {
  20172. "type": "string",
  20173. "allOf": [
  20174. {
  20175. "pattern": "^evt_"
  20176. }
  20177. ]
  20178. },
  20179. "created": {
  20180. "type": "number"
  20181. },
  20182. "metadata": {
  20183. "type": "object"
  20184. },
  20185. "type": {
  20186. "type": "string",
  20187. "enum": ["integration.updated"]
  20188. },
  20189. "location": {
  20190. "$ref": "#/components/schemas/Location.Ref"
  20191. },
  20192. "data": {
  20193. "anyOf": [
  20194. {
  20195. "type": "object"
  20196. },
  20197. {
  20198. "type": "array"
  20199. }
  20200. ]
  20201. }
  20202. },
  20203. "required": ["id", "created", "type", "data"],
  20204. "additionalProperties": false
  20205. },
  20206. "integration.connection.updated": {
  20207. "type": "object",
  20208. "properties": {
  20209. "id": {
  20210. "type": "string",
  20211. "allOf": [
  20212. {
  20213. "pattern": "^evt_"
  20214. }
  20215. ]
  20216. },
  20217. "created": {
  20218. "type": "number"
  20219. },
  20220. "metadata": {
  20221. "type": "object"
  20222. },
  20223. "type": {
  20224. "type": "string",
  20225. "enum": ["integration.connection.updated"]
  20226. },
  20227. "location": {
  20228. "$ref": "#/components/schemas/Location.Ref"
  20229. },
  20230. "data": {
  20231. "type": "object",
  20232. "properties": {
  20233. "integrationID": {
  20234. "type": "string"
  20235. }
  20236. },
  20237. "required": ["integrationID"],
  20238. "additionalProperties": false
  20239. }
  20240. },
  20241. "required": ["id", "created", "type", "data"],
  20242. "additionalProperties": false
  20243. },
  20244. "catalog.updated": {
  20245. "type": "object",
  20246. "properties": {
  20247. "id": {
  20248. "type": "string",
  20249. "allOf": [
  20250. {
  20251. "pattern": "^evt_"
  20252. }
  20253. ]
  20254. },
  20255. "created": {
  20256. "type": "number"
  20257. },
  20258. "metadata": {
  20259. "type": "object"
  20260. },
  20261. "type": {
  20262. "type": "string",
  20263. "enum": ["catalog.updated"]
  20264. },
  20265. "location": {
  20266. "$ref": "#/components/schemas/Location.Ref"
  20267. },
  20268. "data": {
  20269. "anyOf": [
  20270. {
  20271. "type": "object"
  20272. },
  20273. {
  20274. "type": "array"
  20275. }
  20276. ]
  20277. }
  20278. },
  20279. "required": ["id", "created", "type", "data"],
  20280. "additionalProperties": false
  20281. },
  20282. "agent.updated": {
  20283. "type": "object",
  20284. "properties": {
  20285. "id": {
  20286. "type": "string",
  20287. "allOf": [
  20288. {
  20289. "pattern": "^evt_"
  20290. }
  20291. ]
  20292. },
  20293. "created": {
  20294. "type": "number"
  20295. },
  20296. "metadata": {
  20297. "type": "object"
  20298. },
  20299. "type": {
  20300. "type": "string",
  20301. "enum": ["agent.updated"]
  20302. },
  20303. "location": {
  20304. "$ref": "#/components/schemas/Location.Ref"
  20305. },
  20306. "data": {
  20307. "anyOf": [
  20308. {
  20309. "type": "object"
  20310. },
  20311. {
  20312. "type": "array"
  20313. }
  20314. ]
  20315. }
  20316. },
  20317. "required": ["id", "created", "type", "data"],
  20318. "additionalProperties": false
  20319. },
  20320. "session.usage.updated": {
  20321. "type": "object",
  20322. "properties": {
  20323. "id": {
  20324. "type": "string",
  20325. "allOf": [
  20326. {
  20327. "pattern": "^evt_"
  20328. }
  20329. ]
  20330. },
  20331. "created": {
  20332. "type": "number"
  20333. },
  20334. "metadata": {
  20335. "type": "object"
  20336. },
  20337. "type": {
  20338. "type": "string",
  20339. "enum": ["session.usage.updated"]
  20340. },
  20341. "location": {
  20342. "$ref": "#/components/schemas/Location.Ref"
  20343. },
  20344. "data": {
  20345. "type": "object",
  20346. "properties": {
  20347. "sessionID": {
  20348. "type": "string",
  20349. "allOf": [
  20350. {
  20351. "pattern": "^ses"
  20352. }
  20353. ]
  20354. },
  20355. "cost": {
  20356. "$ref": "#/components/schemas/Money.USD"
  20357. },
  20358. "tokens": {
  20359. "$ref": "#/components/schemas/TokenUsage.Info"
  20360. }
  20361. },
  20362. "required": ["sessionID", "cost", "tokens"],
  20363. "additionalProperties": false
  20364. }
  20365. },
  20366. "required": ["id", "created", "type", "data"],
  20367. "additionalProperties": false
  20368. },
  20369. "session.text.delta": {
  20370. "type": "object",
  20371. "properties": {
  20372. "id": {
  20373. "type": "string",
  20374. "allOf": [
  20375. {
  20376. "pattern": "^evt_"
  20377. }
  20378. ]
  20379. },
  20380. "created": {
  20381. "type": "number"
  20382. },
  20383. "metadata": {
  20384. "type": "object"
  20385. },
  20386. "type": {
  20387. "type": "string",
  20388. "enum": ["session.text.delta"]
  20389. },
  20390. "location": {
  20391. "$ref": "#/components/schemas/Location.Ref"
  20392. },
  20393. "data": {
  20394. "type": "object",
  20395. "properties": {
  20396. "sessionID": {
  20397. "type": "string",
  20398. "allOf": [
  20399. {
  20400. "pattern": "^ses"
  20401. }
  20402. ]
  20403. },
  20404. "assistantMessageID": {
  20405. "type": "string",
  20406. "allOf": [
  20407. {
  20408. "pattern": "^msg_"
  20409. }
  20410. ]
  20411. },
  20412. "ordinal": {
  20413. "type": "integer",
  20414. "allOf": [
  20415. {
  20416. "minimum": 0
  20417. }
  20418. ]
  20419. },
  20420. "delta": {
  20421. "type": "string"
  20422. }
  20423. },
  20424. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20425. "additionalProperties": false
  20426. }
  20427. },
  20428. "required": ["id", "created", "type", "data"],
  20429. "additionalProperties": false
  20430. },
  20431. "session.reasoning.delta": {
  20432. "type": "object",
  20433. "properties": {
  20434. "id": {
  20435. "type": "string",
  20436. "allOf": [
  20437. {
  20438. "pattern": "^evt_"
  20439. }
  20440. ]
  20441. },
  20442. "created": {
  20443. "type": "number"
  20444. },
  20445. "metadata": {
  20446. "type": "object"
  20447. },
  20448. "type": {
  20449. "type": "string",
  20450. "enum": ["session.reasoning.delta"]
  20451. },
  20452. "location": {
  20453. "$ref": "#/components/schemas/Location.Ref"
  20454. },
  20455. "data": {
  20456. "type": "object",
  20457. "properties": {
  20458. "sessionID": {
  20459. "type": "string",
  20460. "allOf": [
  20461. {
  20462. "pattern": "^ses"
  20463. }
  20464. ]
  20465. },
  20466. "assistantMessageID": {
  20467. "type": "string",
  20468. "allOf": [
  20469. {
  20470. "pattern": "^msg_"
  20471. }
  20472. ]
  20473. },
  20474. "ordinal": {
  20475. "type": "integer",
  20476. "allOf": [
  20477. {
  20478. "minimum": 0
  20479. }
  20480. ]
  20481. },
  20482. "delta": {
  20483. "type": "string"
  20484. }
  20485. },
  20486. "required": ["sessionID", "assistantMessageID", "ordinal", "delta"],
  20487. "additionalProperties": false
  20488. }
  20489. },
  20490. "required": ["id", "created", "type", "data"],
  20491. "additionalProperties": false
  20492. },
  20493. "session.tool.input.delta": {
  20494. "type": "object",
  20495. "properties": {
  20496. "id": {
  20497. "type": "string",
  20498. "allOf": [
  20499. {
  20500. "pattern": "^evt_"
  20501. }
  20502. ]
  20503. },
  20504. "created": {
  20505. "type": "number"
  20506. },
  20507. "metadata": {
  20508. "type": "object"
  20509. },
  20510. "type": {
  20511. "type": "string",
  20512. "enum": ["session.tool.input.delta"]
  20513. },
  20514. "location": {
  20515. "$ref": "#/components/schemas/Location.Ref"
  20516. },
  20517. "data": {
  20518. "type": "object",
  20519. "properties": {
  20520. "sessionID": {
  20521. "type": "string",
  20522. "allOf": [
  20523. {
  20524. "pattern": "^ses"
  20525. }
  20526. ]
  20527. },
  20528. "assistantMessageID": {
  20529. "type": "string",
  20530. "allOf": [
  20531. {
  20532. "pattern": "^msg_"
  20533. }
  20534. ]
  20535. },
  20536. "id": {
  20537. "type": "string"
  20538. },
  20539. "delta": {
  20540. "type": "string"
  20541. }
  20542. },
  20543. "required": ["sessionID", "assistantMessageID", "id", "delta"],
  20544. "additionalProperties": false
  20545. }
  20546. },
  20547. "required": ["id", "created", "type", "data"],
  20548. "additionalProperties": false
  20549. },
  20550. "session.tool.progress": {
  20551. "type": "object",
  20552. "properties": {
  20553. "id": {
  20554. "type": "string",
  20555. "allOf": [
  20556. {
  20557. "pattern": "^evt_"
  20558. }
  20559. ]
  20560. },
  20561. "created": {
  20562. "type": "number"
  20563. },
  20564. "metadata": {
  20565. "type": "object"
  20566. },
  20567. "type": {
  20568. "type": "string",
  20569. "enum": ["session.tool.progress"]
  20570. },
  20571. "location": {
  20572. "$ref": "#/components/schemas/Location.Ref"
  20573. },
  20574. "data": {
  20575. "type": "object",
  20576. "properties": {
  20577. "sessionID": {
  20578. "type": "string",
  20579. "allOf": [
  20580. {
  20581. "pattern": "^ses"
  20582. }
  20583. ]
  20584. },
  20585. "assistantMessageID": {
  20586. "type": "string",
  20587. "allOf": [
  20588. {
  20589. "pattern": "^msg_"
  20590. }
  20591. ]
  20592. },
  20593. "id": {
  20594. "type": "string"
  20595. },
  20596. "metadata": {
  20597. "type": "object"
  20598. }
  20599. },
  20600. "required": ["sessionID", "assistantMessageID", "id", "metadata"],
  20601. "additionalProperties": false
  20602. }
  20603. },
  20604. "required": ["id", "created", "type", "data"],
  20605. "additionalProperties": false
  20606. },
  20607. "session.compaction.delta": {
  20608. "type": "object",
  20609. "properties": {
  20610. "id": {
  20611. "type": "string",
  20612. "allOf": [
  20613. {
  20614. "pattern": "^evt_"
  20615. }
  20616. ]
  20617. },
  20618. "created": {
  20619. "type": "number"
  20620. },
  20621. "metadata": {
  20622. "type": "object"
  20623. },
  20624. "type": {
  20625. "type": "string",
  20626. "enum": ["session.compaction.delta"]
  20627. },
  20628. "location": {
  20629. "$ref": "#/components/schemas/Location.Ref"
  20630. },
  20631. "data": {
  20632. "type": "object",
  20633. "properties": {
  20634. "sessionID": {
  20635. "type": "string",
  20636. "allOf": [
  20637. {
  20638. "pattern": "^ses"
  20639. }
  20640. ]
  20641. },
  20642. "text": {
  20643. "type": "string"
  20644. }
  20645. },
  20646. "required": ["sessionID", "text"],
  20647. "additionalProperties": false
  20648. }
  20649. },
  20650. "required": ["id", "created", "type", "data"],
  20651. "additionalProperties": false
  20652. },
  20653. "filesystem.changed": {
  20654. "type": "object",
  20655. "properties": {
  20656. "id": {
  20657. "type": "string",
  20658. "allOf": [
  20659. {
  20660. "pattern": "^evt_"
  20661. }
  20662. ]
  20663. },
  20664. "created": {
  20665. "type": "number"
  20666. },
  20667. "metadata": {
  20668. "type": "object"
  20669. },
  20670. "type": {
  20671. "type": "string",
  20672. "enum": ["filesystem.changed"]
  20673. },
  20674. "location": {
  20675. "$ref": "#/components/schemas/Location.Ref"
  20676. },
  20677. "data": {
  20678. "type": "object",
  20679. "properties": {
  20680. "file": {
  20681. "type": "string"
  20682. },
  20683. "event": {
  20684. "type": "string",
  20685. "enum": ["add", "change", "unlink"]
  20686. }
  20687. },
  20688. "required": ["file", "event"],
  20689. "additionalProperties": false
  20690. }
  20691. },
  20692. "required": ["id", "created", "type", "data"],
  20693. "additionalProperties": false
  20694. },
  20695. "reference.updated": {
  20696. "type": "object",
  20697. "properties": {
  20698. "id": {
  20699. "type": "string",
  20700. "allOf": [
  20701. {
  20702. "pattern": "^evt_"
  20703. }
  20704. ]
  20705. },
  20706. "created": {
  20707. "type": "number"
  20708. },
  20709. "metadata": {
  20710. "type": "object"
  20711. },
  20712. "type": {
  20713. "type": "string",
  20714. "enum": ["reference.updated"]
  20715. },
  20716. "location": {
  20717. "$ref": "#/components/schemas/Location.Ref"
  20718. },
  20719. "data": {
  20720. "anyOf": [
  20721. {
  20722. "type": "object"
  20723. },
  20724. {
  20725. "type": "array"
  20726. }
  20727. ]
  20728. }
  20729. },
  20730. "required": ["id", "created", "type", "data"],
  20731. "additionalProperties": false
  20732. },
  20733. "permission.asked": {
  20734. "type": "object",
  20735. "properties": {
  20736. "id": {
  20737. "type": "string",
  20738. "allOf": [
  20739. {
  20740. "pattern": "^evt_"
  20741. }
  20742. ]
  20743. },
  20744. "created": {
  20745. "type": "number"
  20746. },
  20747. "metadata": {
  20748. "type": "object"
  20749. },
  20750. "type": {
  20751. "type": "string",
  20752. "enum": ["permission.asked"]
  20753. },
  20754. "location": {
  20755. "$ref": "#/components/schemas/Location.Ref"
  20756. },
  20757. "data": {
  20758. "type": "object",
  20759. "properties": {
  20760. "id": {
  20761. "type": "string",
  20762. "allOf": [
  20763. {
  20764. "pattern": "^per"
  20765. }
  20766. ]
  20767. },
  20768. "sessionID": {
  20769. "type": "string",
  20770. "allOf": [
  20771. {
  20772. "pattern": "^ses"
  20773. }
  20774. ]
  20775. },
  20776. "action": {
  20777. "type": "string"
  20778. },
  20779. "resources": {
  20780. "type": "array",
  20781. "items": {
  20782. "type": "string"
  20783. }
  20784. },
  20785. "save": {
  20786. "type": "array",
  20787. "items": {
  20788. "type": "string"
  20789. }
  20790. },
  20791. "metadata": {
  20792. "type": "object"
  20793. },
  20794. "source": {
  20795. "$ref": "#/components/schemas/Permission.Source"
  20796. }
  20797. },
  20798. "required": ["id", "sessionID", "action", "resources"],
  20799. "additionalProperties": false
  20800. }
  20801. },
  20802. "required": ["id", "created", "type", "data"],
  20803. "additionalProperties": false
  20804. },
  20805. "permission.replied": {
  20806. "type": "object",
  20807. "properties": {
  20808. "id": {
  20809. "type": "string",
  20810. "allOf": [
  20811. {
  20812. "pattern": "^evt_"
  20813. }
  20814. ]
  20815. },
  20816. "created": {
  20817. "type": "number"
  20818. },
  20819. "metadata": {
  20820. "type": "object"
  20821. },
  20822. "type": {
  20823. "type": "string",
  20824. "enum": ["permission.replied"]
  20825. },
  20826. "location": {
  20827. "$ref": "#/components/schemas/Location.Ref"
  20828. },
  20829. "data": {
  20830. "type": "object",
  20831. "properties": {
  20832. "sessionID": {
  20833. "type": "string",
  20834. "allOf": [
  20835. {
  20836. "pattern": "^ses"
  20837. }
  20838. ]
  20839. },
  20840. "requestID": {
  20841. "type": "string",
  20842. "allOf": [
  20843. {
  20844. "pattern": "^per"
  20845. }
  20846. ]
  20847. },
  20848. "reply": {
  20849. "$ref": "#/components/schemas/Permission.Reply"
  20850. }
  20851. },
  20852. "required": ["sessionID", "requestID", "reply"],
  20853. "additionalProperties": false
  20854. }
  20855. },
  20856. "required": ["id", "created", "type", "data"],
  20857. "additionalProperties": false
  20858. },
  20859. "plugin.added": {
  20860. "type": "object",
  20861. "properties": {
  20862. "id": {
  20863. "type": "string",
  20864. "allOf": [
  20865. {
  20866. "pattern": "^evt_"
  20867. }
  20868. ]
  20869. },
  20870. "created": {
  20871. "type": "number"
  20872. },
  20873. "metadata": {
  20874. "type": "object"
  20875. },
  20876. "type": {
  20877. "type": "string",
  20878. "enum": ["plugin.added"]
  20879. },
  20880. "location": {
  20881. "$ref": "#/components/schemas/Location.Ref"
  20882. },
  20883. "data": {
  20884. "type": "object",
  20885. "properties": {
  20886. "id": {
  20887. "type": "string"
  20888. }
  20889. },
  20890. "required": ["id"],
  20891. "additionalProperties": false
  20892. }
  20893. },
  20894. "required": ["id", "created", "type", "data"],
  20895. "additionalProperties": false
  20896. },
  20897. "plugin.updated": {
  20898. "type": "object",
  20899. "properties": {
  20900. "id": {
  20901. "type": "string",
  20902. "allOf": [
  20903. {
  20904. "pattern": "^evt_"
  20905. }
  20906. ]
  20907. },
  20908. "created": {
  20909. "type": "number"
  20910. },
  20911. "metadata": {
  20912. "type": "object"
  20913. },
  20914. "type": {
  20915. "type": "string",
  20916. "enum": ["plugin.updated"]
  20917. },
  20918. "location": {
  20919. "$ref": "#/components/schemas/Location.Ref"
  20920. },
  20921. "data": {
  20922. "anyOf": [
  20923. {
  20924. "type": "object"
  20925. },
  20926. {
  20927. "type": "array"
  20928. }
  20929. ]
  20930. }
  20931. },
  20932. "required": ["id", "created", "type", "data"],
  20933. "additionalProperties": false
  20934. },
  20935. "worktree.updated": {
  20936. "type": "object",
  20937. "properties": {
  20938. "id": {
  20939. "type": "string",
  20940. "allOf": [
  20941. {
  20942. "pattern": "^evt_"
  20943. }
  20944. ]
  20945. },
  20946. "created": {
  20947. "type": "number"
  20948. },
  20949. "metadata": {
  20950. "type": "object"
  20951. },
  20952. "type": {
  20953. "type": "string",
  20954. "enum": ["worktree.updated"]
  20955. },
  20956. "location": {
  20957. "$ref": "#/components/schemas/Location.Ref"
  20958. },
  20959. "data": {
  20960. "type": "object",
  20961. "properties": {
  20962. "projectID": {
  20963. "type": "string"
  20964. }
  20965. },
  20966. "required": ["projectID"],
  20967. "additionalProperties": false
  20968. }
  20969. },
  20970. "required": ["id", "created", "type", "data"],
  20971. "additionalProperties": false
  20972. },
  20973. "worktree.resolved": {
  20974. "type": "object",
  20975. "properties": {
  20976. "id": {
  20977. "type": "string",
  20978. "allOf": [
  20979. {
  20980. "pattern": "^evt_"
  20981. }
  20982. ]
  20983. },
  20984. "created": {
  20985. "type": "number"
  20986. },
  20987. "metadata": {
  20988. "type": "object"
  20989. },
  20990. "type": {
  20991. "type": "string",
  20992. "enum": ["worktree.resolved"]
  20993. },
  20994. "durable": {
  20995. "type": "object",
  20996. "properties": {
  20997. "aggregateID": {
  20998. "type": "string"
  20999. },
  21000. "seq": {
  21001. "type": "integer",
  21002. "allOf": [
  21003. {
  21004. "minimum": 0
  21005. }
  21006. ]
  21007. },
  21008. "version": {
  21009. "type": "number",
  21010. "enum": [1]
  21011. }
  21012. },
  21013. "required": ["aggregateID", "seq", "version"],
  21014. "additionalProperties": false
  21015. },
  21016. "location": {
  21017. "$ref": "#/components/schemas/Location.Ref"
  21018. },
  21019. "data": {
  21020. "type": "object",
  21021. "properties": {
  21022. "projectID": {
  21023. "type": "string"
  21024. },
  21025. "directory": {
  21026. "type": "string"
  21027. },
  21028. "previous": {
  21029. "type": "string"
  21030. }
  21031. },
  21032. "required": ["projectID", "directory", "previous"],
  21033. "additionalProperties": false
  21034. }
  21035. },
  21036. "required": ["id", "created", "type", "durable", "data"],
  21037. "additionalProperties": false
  21038. },
  21039. "command.updated": {
  21040. "type": "object",
  21041. "properties": {
  21042. "id": {
  21043. "type": "string",
  21044. "allOf": [
  21045. {
  21046. "pattern": "^evt_"
  21047. }
  21048. ]
  21049. },
  21050. "created": {
  21051. "type": "number"
  21052. },
  21053. "metadata": {
  21054. "type": "object"
  21055. },
  21056. "type": {
  21057. "type": "string",
  21058. "enum": ["command.updated"]
  21059. },
  21060. "location": {
  21061. "$ref": "#/components/schemas/Location.Ref"
  21062. },
  21063. "data": {
  21064. "anyOf": [
  21065. {
  21066. "type": "object"
  21067. },
  21068. {
  21069. "type": "array"
  21070. }
  21071. ]
  21072. }
  21073. },
  21074. "required": ["id", "created", "type", "data"],
  21075. "additionalProperties": false
  21076. },
  21077. "config.updated": {
  21078. "type": "object",
  21079. "properties": {
  21080. "id": {
  21081. "type": "string",
  21082. "allOf": [
  21083. {
  21084. "pattern": "^evt_"
  21085. }
  21086. ]
  21087. },
  21088. "created": {
  21089. "type": "number"
  21090. },
  21091. "metadata": {
  21092. "type": "object"
  21093. },
  21094. "type": {
  21095. "type": "string",
  21096. "enum": ["config.updated"]
  21097. },
  21098. "location": {
  21099. "$ref": "#/components/schemas/Location.Ref"
  21100. },
  21101. "data": {
  21102. "anyOf": [
  21103. {
  21104. "type": "object"
  21105. },
  21106. {
  21107. "type": "array"
  21108. }
  21109. ]
  21110. }
  21111. },
  21112. "required": ["id", "created", "type", "data"],
  21113. "additionalProperties": false
  21114. },
  21115. "skill.updated": {
  21116. "type": "object",
  21117. "properties": {
  21118. "id": {
  21119. "type": "string",
  21120. "allOf": [
  21121. {
  21122. "pattern": "^evt_"
  21123. }
  21124. ]
  21125. },
  21126. "created": {
  21127. "type": "number"
  21128. },
  21129. "metadata": {
  21130. "type": "object"
  21131. },
  21132. "type": {
  21133. "type": "string",
  21134. "enum": ["skill.updated"]
  21135. },
  21136. "location": {
  21137. "$ref": "#/components/schemas/Location.Ref"
  21138. },
  21139. "data": {
  21140. "anyOf": [
  21141. {
  21142. "type": "object"
  21143. },
  21144. {
  21145. "type": "array"
  21146. }
  21147. ]
  21148. }
  21149. },
  21150. "required": ["id", "created", "type", "data"],
  21151. "additionalProperties": false
  21152. },
  21153. "Pty": {
  21154. "type": "object",
  21155. "properties": {
  21156. "id": {
  21157. "type": "string",
  21158. "allOf": [
  21159. {
  21160. "pattern": "^pty"
  21161. }
  21162. ]
  21163. },
  21164. "title": {
  21165. "type": "string"
  21166. },
  21167. "command": {
  21168. "type": "string"
  21169. },
  21170. "args": {
  21171. "type": "array",
  21172. "items": {
  21173. "type": "string"
  21174. }
  21175. },
  21176. "cwd": {
  21177. "type": "string"
  21178. },
  21179. "status": {
  21180. "type": "string",
  21181. "enum": ["running", "exited"]
  21182. },
  21183. "pid": {
  21184. "type": "integer",
  21185. "allOf": [
  21186. {
  21187. "minimum": 0
  21188. }
  21189. ]
  21190. },
  21191. "exitCode": {
  21192. "type": "integer",
  21193. "allOf": [
  21194. {
  21195. "minimum": 0
  21196. }
  21197. ]
  21198. }
  21199. },
  21200. "required": ["id", "title", "command", "args", "cwd", "status", "pid"],
  21201. "additionalProperties": false
  21202. },
  21203. "pty.created": {
  21204. "type": "object",
  21205. "properties": {
  21206. "id": {
  21207. "type": "string",
  21208. "allOf": [
  21209. {
  21210. "pattern": "^evt_"
  21211. }
  21212. ]
  21213. },
  21214. "created": {
  21215. "type": "number"
  21216. },
  21217. "metadata": {
  21218. "type": "object"
  21219. },
  21220. "type": {
  21221. "type": "string",
  21222. "enum": ["pty.created"]
  21223. },
  21224. "location": {
  21225. "$ref": "#/components/schemas/Location.Ref"
  21226. },
  21227. "data": {
  21228. "type": "object",
  21229. "properties": {
  21230. "info": {
  21231. "$ref": "#/components/schemas/Pty"
  21232. }
  21233. },
  21234. "required": ["info"],
  21235. "additionalProperties": false
  21236. }
  21237. },
  21238. "required": ["id", "created", "type", "data"],
  21239. "additionalProperties": false
  21240. },
  21241. "pty.updated": {
  21242. "type": "object",
  21243. "properties": {
  21244. "id": {
  21245. "type": "string",
  21246. "allOf": [
  21247. {
  21248. "pattern": "^evt_"
  21249. }
  21250. ]
  21251. },
  21252. "created": {
  21253. "type": "number"
  21254. },
  21255. "metadata": {
  21256. "type": "object"
  21257. },
  21258. "type": {
  21259. "type": "string",
  21260. "enum": ["pty.updated"]
  21261. },
  21262. "location": {
  21263. "$ref": "#/components/schemas/Location.Ref"
  21264. },
  21265. "data": {
  21266. "type": "object",
  21267. "properties": {
  21268. "info": {
  21269. "$ref": "#/components/schemas/Pty"
  21270. }
  21271. },
  21272. "required": ["info"],
  21273. "additionalProperties": false
  21274. }
  21275. },
  21276. "required": ["id", "created", "type", "data"],
  21277. "additionalProperties": false
  21278. },
  21279. "pty.exited": {
  21280. "type": "object",
  21281. "properties": {
  21282. "id": {
  21283. "type": "string",
  21284. "allOf": [
  21285. {
  21286. "pattern": "^evt_"
  21287. }
  21288. ]
  21289. },
  21290. "created": {
  21291. "type": "number"
  21292. },
  21293. "metadata": {
  21294. "type": "object"
  21295. },
  21296. "type": {
  21297. "type": "string",
  21298. "enum": ["pty.exited"]
  21299. },
  21300. "location": {
  21301. "$ref": "#/components/schemas/Location.Ref"
  21302. },
  21303. "data": {
  21304. "type": "object",
  21305. "properties": {
  21306. "id": {
  21307. "type": "string",
  21308. "allOf": [
  21309. {
  21310. "pattern": "^pty"
  21311. }
  21312. ]
  21313. },
  21314. "exitCode": {
  21315. "type": "integer",
  21316. "allOf": [
  21317. {
  21318. "minimum": 0
  21319. }
  21320. ]
  21321. }
  21322. },
  21323. "required": ["id", "exitCode"],
  21324. "additionalProperties": false
  21325. }
  21326. },
  21327. "required": ["id", "created", "type", "data"],
  21328. "additionalProperties": false
  21329. },
  21330. "pty.deleted": {
  21331. "type": "object",
  21332. "properties": {
  21333. "id": {
  21334. "type": "string",
  21335. "allOf": [
  21336. {
  21337. "pattern": "^evt_"
  21338. }
  21339. ]
  21340. },
  21341. "created": {
  21342. "type": "number"
  21343. },
  21344. "metadata": {
  21345. "type": "object"
  21346. },
  21347. "type": {
  21348. "type": "string",
  21349. "enum": ["pty.deleted"]
  21350. },
  21351. "location": {
  21352. "$ref": "#/components/schemas/Location.Ref"
  21353. },
  21354. "data": {
  21355. "type": "object",
  21356. "properties": {
  21357. "id": {
  21358. "type": "string",
  21359. "allOf": [
  21360. {
  21361. "pattern": "^pty"
  21362. }
  21363. ]
  21364. }
  21365. },
  21366. "required": ["id"],
  21367. "additionalProperties": false
  21368. }
  21369. },
  21370. "required": ["id", "created", "type", "data"],
  21371. "additionalProperties": false
  21372. },
  21373. "shell.created": {
  21374. "type": "object",
  21375. "properties": {
  21376. "id": {
  21377. "type": "string",
  21378. "allOf": [
  21379. {
  21380. "pattern": "^evt_"
  21381. }
  21382. ]
  21383. },
  21384. "created": {
  21385. "type": "number"
  21386. },
  21387. "metadata": {
  21388. "type": "object"
  21389. },
  21390. "type": {
  21391. "type": "string",
  21392. "enum": ["shell.created"]
  21393. },
  21394. "location": {
  21395. "$ref": "#/components/schemas/Location.Ref"
  21396. },
  21397. "data": {
  21398. "type": "object",
  21399. "properties": {
  21400. "info": {
  21401. "$ref": "#/components/schemas/Shell.Info"
  21402. }
  21403. },
  21404. "required": ["info"],
  21405. "additionalProperties": false
  21406. }
  21407. },
  21408. "required": ["id", "created", "type", "data"],
  21409. "additionalProperties": false
  21410. },
  21411. "shell.exited": {
  21412. "type": "object",
  21413. "properties": {
  21414. "id": {
  21415. "type": "string",
  21416. "allOf": [
  21417. {
  21418. "pattern": "^evt_"
  21419. }
  21420. ]
  21421. },
  21422. "created": {
  21423. "type": "number"
  21424. },
  21425. "metadata": {
  21426. "type": "object"
  21427. },
  21428. "type": {
  21429. "type": "string",
  21430. "enum": ["shell.exited"]
  21431. },
  21432. "location": {
  21433. "$ref": "#/components/schemas/Location.Ref"
  21434. },
  21435. "data": {
  21436. "type": "object",
  21437. "properties": {
  21438. "id": {
  21439. "type": "string",
  21440. "allOf": [
  21441. {
  21442. "pattern": "^sh_"
  21443. }
  21444. ]
  21445. },
  21446. "exit": {
  21447. "type": "number"
  21448. },
  21449. "status": {
  21450. "type": "string",
  21451. "enum": ["running", "exited", "timeout", "killed"]
  21452. }
  21453. },
  21454. "required": ["id", "status"],
  21455. "additionalProperties": false
  21456. }
  21457. },
  21458. "required": ["id", "created", "type", "data"],
  21459. "additionalProperties": false
  21460. },
  21461. "shell.deleted": {
  21462. "type": "object",
  21463. "properties": {
  21464. "id": {
  21465. "type": "string",
  21466. "allOf": [
  21467. {
  21468. "pattern": "^evt_"
  21469. }
  21470. ]
  21471. },
  21472. "created": {
  21473. "type": "number"
  21474. },
  21475. "metadata": {
  21476. "type": "object"
  21477. },
  21478. "type": {
  21479. "type": "string",
  21480. "enum": ["shell.deleted"]
  21481. },
  21482. "location": {
  21483. "$ref": "#/components/schemas/Location.Ref"
  21484. },
  21485. "data": {
  21486. "type": "object",
  21487. "properties": {
  21488. "id": {
  21489. "type": "string",
  21490. "allOf": [
  21491. {
  21492. "pattern": "^sh_"
  21493. }
  21494. ]
  21495. }
  21496. },
  21497. "required": ["id"],
  21498. "additionalProperties": false
  21499. }
  21500. },
  21501. "required": ["id", "created", "type", "data"],
  21502. "additionalProperties": false
  21503. },
  21504. "Form.Metadata1": {
  21505. "type": "object"
  21506. },
  21507. "Form.When1": {
  21508. "type": "object",
  21509. "properties": {
  21510. "key": {
  21511. "type": "string"
  21512. },
  21513. "op": {
  21514. "type": "string",
  21515. "enum": ["eq", "neq"]
  21516. },
  21517. "value": {
  21518. "anyOf": [
  21519. {
  21520. "type": "string"
  21521. },
  21522. {
  21523. "anyOf": [
  21524. {
  21525. "type": "number"
  21526. },
  21527. {
  21528. "type": "string",
  21529. "enum": ["NaN"]
  21530. },
  21531. {
  21532. "type": "string",
  21533. "enum": ["Infinity"]
  21534. },
  21535. {
  21536. "type": "string",
  21537. "enum": ["-Infinity"]
  21538. }
  21539. ]
  21540. },
  21541. {
  21542. "type": "boolean"
  21543. }
  21544. ]
  21545. }
  21546. },
  21547. "required": ["key", "op", "value"],
  21548. "additionalProperties": false
  21549. },
  21550. "Form.StringField1": {
  21551. "type": "object",
  21552. "properties": {
  21553. "key": {
  21554. "type": "string"
  21555. },
  21556. "title": {
  21557. "type": "string"
  21558. },
  21559. "description": {
  21560. "type": "string"
  21561. },
  21562. "required": {
  21563. "type": "boolean"
  21564. },
  21565. "when": {
  21566. "type": "array",
  21567. "items": {
  21568. "$ref": "#/components/schemas/Form.When1"
  21569. }
  21570. },
  21571. "type": {
  21572. "type": "string",
  21573. "enum": ["string"]
  21574. },
  21575. "format": {
  21576. "type": "string",
  21577. "enum": ["email", "uri", "date", "date-time"]
  21578. },
  21579. "minLength": {
  21580. "type": "integer",
  21581. "allOf": [
  21582. {
  21583. "minimum": 0
  21584. }
  21585. ]
  21586. },
  21587. "maxLength": {
  21588. "type": "integer",
  21589. "allOf": [
  21590. {
  21591. "minimum": 0
  21592. }
  21593. ]
  21594. },
  21595. "pattern": {
  21596. "type": "string"
  21597. },
  21598. "placeholder": {
  21599. "type": "string"
  21600. },
  21601. "default": {
  21602. "type": "string"
  21603. },
  21604. "options": {
  21605. "type": "array",
  21606. "items": {
  21607. "$ref": "#/components/schemas/Form.Option"
  21608. }
  21609. },
  21610. "custom": {
  21611. "type": "boolean"
  21612. }
  21613. },
  21614. "required": ["key", "type"],
  21615. "additionalProperties": false
  21616. },
  21617. "Form.NumberField1": {
  21618. "type": "object",
  21619. "properties": {
  21620. "key": {
  21621. "type": "string"
  21622. },
  21623. "title": {
  21624. "type": "string"
  21625. },
  21626. "description": {
  21627. "type": "string"
  21628. },
  21629. "required": {
  21630. "type": "boolean"
  21631. },
  21632. "when": {
  21633. "type": "array",
  21634. "items": {
  21635. "$ref": "#/components/schemas/Form.When1"
  21636. }
  21637. },
  21638. "type": {
  21639. "type": "string",
  21640. "enum": ["number"]
  21641. },
  21642. "minimum": {
  21643. "anyOf": [
  21644. {
  21645. "type": "number"
  21646. },
  21647. {
  21648. "type": "string",
  21649. "enum": ["NaN"]
  21650. },
  21651. {
  21652. "type": "string",
  21653. "enum": ["Infinity"]
  21654. },
  21655. {
  21656. "type": "string",
  21657. "enum": ["-Infinity"]
  21658. }
  21659. ]
  21660. },
  21661. "maximum": {
  21662. "anyOf": [
  21663. {
  21664. "type": "number"
  21665. },
  21666. {
  21667. "type": "string",
  21668. "enum": ["NaN"]
  21669. },
  21670. {
  21671. "type": "string",
  21672. "enum": ["Infinity"]
  21673. },
  21674. {
  21675. "type": "string",
  21676. "enum": ["-Infinity"]
  21677. }
  21678. ]
  21679. },
  21680. "default": {
  21681. "anyOf": [
  21682. {
  21683. "type": "number"
  21684. },
  21685. {
  21686. "type": "string",
  21687. "enum": ["NaN"]
  21688. },
  21689. {
  21690. "type": "string",
  21691. "enum": ["Infinity"]
  21692. },
  21693. {
  21694. "type": "string",
  21695. "enum": ["-Infinity"]
  21696. }
  21697. ]
  21698. }
  21699. },
  21700. "required": ["key", "type"],
  21701. "additionalProperties": false
  21702. },
  21703. "Form.IntegerField1": {
  21704. "type": "object",
  21705. "properties": {
  21706. "key": {
  21707. "type": "string"
  21708. },
  21709. "title": {
  21710. "type": "string"
  21711. },
  21712. "description": {
  21713. "type": "string"
  21714. },
  21715. "required": {
  21716. "type": "boolean"
  21717. },
  21718. "when": {
  21719. "type": "array",
  21720. "items": {
  21721. "$ref": "#/components/schemas/Form.When1"
  21722. }
  21723. },
  21724. "type": {
  21725. "type": "string",
  21726. "enum": ["integer"]
  21727. },
  21728. "minimum": {
  21729. "anyOf": [
  21730. {
  21731. "type": "number"
  21732. },
  21733. {
  21734. "type": "string",
  21735. "enum": ["NaN"]
  21736. },
  21737. {
  21738. "type": "string",
  21739. "enum": ["Infinity"]
  21740. },
  21741. {
  21742. "type": "string",
  21743. "enum": ["-Infinity"]
  21744. }
  21745. ]
  21746. },
  21747. "maximum": {
  21748. "anyOf": [
  21749. {
  21750. "type": "number"
  21751. },
  21752. {
  21753. "type": "string",
  21754. "enum": ["NaN"]
  21755. },
  21756. {
  21757. "type": "string",
  21758. "enum": ["Infinity"]
  21759. },
  21760. {
  21761. "type": "string",
  21762. "enum": ["-Infinity"]
  21763. }
  21764. ]
  21765. },
  21766. "default": {
  21767. "anyOf": [
  21768. {
  21769. "type": "number"
  21770. },
  21771. {
  21772. "type": "string",
  21773. "enum": ["NaN"]
  21774. },
  21775. {
  21776. "type": "string",
  21777. "enum": ["Infinity"]
  21778. },
  21779. {
  21780. "type": "string",
  21781. "enum": ["-Infinity"]
  21782. }
  21783. ]
  21784. }
  21785. },
  21786. "required": ["key", "type"],
  21787. "additionalProperties": false
  21788. },
  21789. "Form.BooleanField1": {
  21790. "type": "object",
  21791. "properties": {
  21792. "key": {
  21793. "type": "string"
  21794. },
  21795. "title": {
  21796. "type": "string"
  21797. },
  21798. "description": {
  21799. "type": "string"
  21800. },
  21801. "required": {
  21802. "type": "boolean"
  21803. },
  21804. "when": {
  21805. "type": "array",
  21806. "items": {
  21807. "$ref": "#/components/schemas/Form.When1"
  21808. }
  21809. },
  21810. "type": {
  21811. "type": "string",
  21812. "enum": ["boolean"]
  21813. },
  21814. "default": {
  21815. "type": "boolean"
  21816. }
  21817. },
  21818. "required": ["key", "type"],
  21819. "additionalProperties": false
  21820. },
  21821. "Form.MultiselectField1": {
  21822. "type": "object",
  21823. "properties": {
  21824. "key": {
  21825. "type": "string"
  21826. },
  21827. "title": {
  21828. "type": "string"
  21829. },
  21830. "description": {
  21831. "type": "string"
  21832. },
  21833. "required": {
  21834. "type": "boolean"
  21835. },
  21836. "when": {
  21837. "type": "array",
  21838. "items": {
  21839. "$ref": "#/components/schemas/Form.When1"
  21840. }
  21841. },
  21842. "type": {
  21843. "type": "string",
  21844. "enum": ["multiselect"]
  21845. },
  21846. "options": {
  21847. "type": "array",
  21848. "items": {
  21849. "$ref": "#/components/schemas/Form.Option"
  21850. }
  21851. },
  21852. "minItems": {
  21853. "type": "integer",
  21854. "allOf": [
  21855. {
  21856. "minimum": 0
  21857. }
  21858. ]
  21859. },
  21860. "maxItems": {
  21861. "type": "integer",
  21862. "allOf": [
  21863. {
  21864. "minimum": 0
  21865. }
  21866. ]
  21867. },
  21868. "custom": {
  21869. "type": "boolean"
  21870. },
  21871. "default": {
  21872. "type": "array",
  21873. "items": {
  21874. "type": "string"
  21875. }
  21876. }
  21877. },
  21878. "required": ["key", "type", "options"],
  21879. "additionalProperties": false
  21880. },
  21881. "Form.Field1": {
  21882. "anyOf": [
  21883. {
  21884. "$ref": "#/components/schemas/Form.StringField1"
  21885. },
  21886. {
  21887. "$ref": "#/components/schemas/Form.NumberField1"
  21888. },
  21889. {
  21890. "$ref": "#/components/schemas/Form.IntegerField1"
  21891. },
  21892. {
  21893. "$ref": "#/components/schemas/Form.BooleanField1"
  21894. },
  21895. {
  21896. "$ref": "#/components/schemas/Form.MultiselectField1"
  21897. },
  21898. {
  21899. "$ref": "#/components/schemas/Form.ExternalField"
  21900. }
  21901. ]
  21902. },
  21903. "Form.Fields3": {
  21904. "type": "array",
  21905. "prefixItems": [
  21906. {
  21907. "$ref": "#/components/schemas/Form.Field1"
  21908. }
  21909. ],
  21910. "minItems": 1,
  21911. "items": {
  21912. "$ref": "#/components/schemas/Form.Field1"
  21913. }
  21914. },
  21915. "Form.Info1": {
  21916. "type": "object",
  21917. "properties": {
  21918. "id": {
  21919. "type": "string",
  21920. "allOf": [
  21921. {
  21922. "pattern": "^frm_"
  21923. }
  21924. ]
  21925. },
  21926. "sessionID": {
  21927. "type": "string"
  21928. },
  21929. "title": {
  21930. "type": "string"
  21931. },
  21932. "metadata": {
  21933. "$ref": "#/components/schemas/Form.Metadata1"
  21934. },
  21935. "fields": {
  21936. "$ref": "#/components/schemas/Form.Fields3"
  21937. }
  21938. },
  21939. "required": ["id", "sessionID", "title", "fields"],
  21940. "additionalProperties": false
  21941. },
  21942. "form.created": {
  21943. "type": "object",
  21944. "properties": {
  21945. "id": {
  21946. "type": "string",
  21947. "allOf": [
  21948. {
  21949. "pattern": "^evt_"
  21950. }
  21951. ]
  21952. },
  21953. "created": {
  21954. "type": "number"
  21955. },
  21956. "metadata": {
  21957. "type": "object"
  21958. },
  21959. "type": {
  21960. "type": "string",
  21961. "enum": ["form.created"]
  21962. },
  21963. "location": {
  21964. "$ref": "#/components/schemas/Location.Ref"
  21965. },
  21966. "data": {
  21967. "type": "object",
  21968. "properties": {
  21969. "form": {
  21970. "$ref": "#/components/schemas/Form.Info1"
  21971. }
  21972. },
  21973. "required": ["form"],
  21974. "additionalProperties": false
  21975. }
  21976. },
  21977. "required": ["id", "created", "type", "data"],
  21978. "additionalProperties": false
  21979. },
  21980. "Form.Value1": {
  21981. "anyOf": [
  21982. {
  21983. "type": "string"
  21984. },
  21985. {
  21986. "anyOf": [
  21987. {
  21988. "type": "number"
  21989. },
  21990. {
  21991. "type": "string",
  21992. "enum": ["NaN"]
  21993. },
  21994. {
  21995. "type": "string",
  21996. "enum": ["Infinity"]
  21997. },
  21998. {
  21999. "type": "string",
  22000. "enum": ["-Infinity"]
  22001. }
  22002. ]
  22003. },
  22004. {
  22005. "type": "boolean"
  22006. },
  22007. {
  22008. "type": "array",
  22009. "items": {
  22010. "type": "string"
  22011. }
  22012. }
  22013. ]
  22014. },
  22015. "Form.Answer1": {
  22016. "type": "object",
  22017. "additionalProperties": {
  22018. "$ref": "#/components/schemas/Form.Value1"
  22019. }
  22020. },
  22021. "form.replied": {
  22022. "type": "object",
  22023. "properties": {
  22024. "id": {
  22025. "type": "string",
  22026. "allOf": [
  22027. {
  22028. "pattern": "^evt_"
  22029. }
  22030. ]
  22031. },
  22032. "created": {
  22033. "type": "number"
  22034. },
  22035. "metadata": {
  22036. "type": "object"
  22037. },
  22038. "type": {
  22039. "type": "string",
  22040. "enum": ["form.replied"]
  22041. },
  22042. "location": {
  22043. "$ref": "#/components/schemas/Location.Ref"
  22044. },
  22045. "data": {
  22046. "type": "object",
  22047. "properties": {
  22048. "id": {
  22049. "type": "string",
  22050. "allOf": [
  22051. {
  22052. "pattern": "^frm_"
  22053. }
  22054. ]
  22055. },
  22056. "sessionID": {
  22057. "type": "string"
  22058. },
  22059. "answer": {
  22060. "$ref": "#/components/schemas/Form.Answer1"
  22061. }
  22062. },
  22063. "required": ["id", "sessionID", "answer"],
  22064. "additionalProperties": false
  22065. }
  22066. },
  22067. "required": ["id", "created", "type", "data"],
  22068. "additionalProperties": false
  22069. },
  22070. "form.cancelled": {
  22071. "type": "object",
  22072. "properties": {
  22073. "id": {
  22074. "type": "string",
  22075. "allOf": [
  22076. {
  22077. "pattern": "^evt_"
  22078. }
  22079. ]
  22080. },
  22081. "created": {
  22082. "type": "number"
  22083. },
  22084. "metadata": {
  22085. "type": "object"
  22086. },
  22087. "type": {
  22088. "type": "string",
  22089. "enum": ["form.cancelled"]
  22090. },
  22091. "location": {
  22092. "$ref": "#/components/schemas/Location.Ref"
  22093. },
  22094. "data": {
  22095. "type": "object",
  22096. "properties": {
  22097. "id": {
  22098. "type": "string",
  22099. "allOf": [
  22100. {
  22101. "pattern": "^frm_"
  22102. }
  22103. ]
  22104. },
  22105. "sessionID": {
  22106. "type": "string"
  22107. }
  22108. },
  22109. "required": ["id", "sessionID"],
  22110. "additionalProperties": false
  22111. }
  22112. },
  22113. "required": ["id", "created", "type", "data"],
  22114. "additionalProperties": false
  22115. },
  22116. "websearch.updated": {
  22117. "type": "object",
  22118. "properties": {
  22119. "id": {
  22120. "type": "string",
  22121. "allOf": [
  22122. {
  22123. "pattern": "^evt_"
  22124. }
  22125. ]
  22126. },
  22127. "created": {
  22128. "type": "number"
  22129. },
  22130. "metadata": {
  22131. "type": "object"
  22132. },
  22133. "type": {
  22134. "type": "string",
  22135. "enum": ["websearch.updated"]
  22136. },
  22137. "location": {
  22138. "$ref": "#/components/schemas/Location.Ref"
  22139. },
  22140. "data": {
  22141. "anyOf": [
  22142. {
  22143. "type": "object"
  22144. },
  22145. {
  22146. "type": "array"
  22147. }
  22148. ]
  22149. }
  22150. },
  22151. "required": ["id", "created", "type", "data"],
  22152. "additionalProperties": false
  22153. },
  22154. "SessionStatus": {
  22155. "anyOf": [
  22156. {
  22157. "type": "object",
  22158. "properties": {
  22159. "type": {
  22160. "type": "string",
  22161. "enum": ["idle"]
  22162. }
  22163. },
  22164. "required": ["type"],
  22165. "additionalProperties": false
  22166. },
  22167. {
  22168. "type": "object",
  22169. "properties": {
  22170. "type": {
  22171. "type": "string",
  22172. "enum": ["retry"]
  22173. },
  22174. "attempt": {
  22175. "type": "integer",
  22176. "allOf": [
  22177. {
  22178. "minimum": 0
  22179. }
  22180. ]
  22181. },
  22182. "message": {
  22183. "type": "string"
  22184. },
  22185. "action": {
  22186. "type": "object",
  22187. "properties": {
  22188. "reason": {
  22189. "type": "string"
  22190. },
  22191. "provider": {
  22192. "type": "string"
  22193. },
  22194. "title": {
  22195. "type": "string"
  22196. },
  22197. "message": {
  22198. "type": "string"
  22199. },
  22200. "label": {
  22201. "type": "string"
  22202. },
  22203. "link": {
  22204. "type": "string"
  22205. }
  22206. },
  22207. "required": ["reason", "provider", "title", "message", "label"],
  22208. "additionalProperties": false
  22209. },
  22210. "next": {
  22211. "type": "integer",
  22212. "allOf": [
  22213. {
  22214. "minimum": 0
  22215. }
  22216. ]
  22217. }
  22218. },
  22219. "required": ["type", "attempt", "message", "next"],
  22220. "additionalProperties": false
  22221. },
  22222. {
  22223. "type": "object",
  22224. "properties": {
  22225. "type": {
  22226. "type": "string",
  22227. "enum": ["busy"]
  22228. }
  22229. },
  22230. "required": ["type"],
  22231. "additionalProperties": false
  22232. }
  22233. ]
  22234. },
  22235. "session.status": {
  22236. "type": "object",
  22237. "properties": {
  22238. "id": {
  22239. "type": "string",
  22240. "allOf": [
  22241. {
  22242. "pattern": "^evt_"
  22243. }
  22244. ]
  22245. },
  22246. "created": {
  22247. "type": "number"
  22248. },
  22249. "metadata": {
  22250. "type": "object"
  22251. },
  22252. "type": {
  22253. "type": "string",
  22254. "enum": ["session.status"]
  22255. },
  22256. "location": {
  22257. "$ref": "#/components/schemas/Location.Ref"
  22258. },
  22259. "data": {
  22260. "type": "object",
  22261. "properties": {
  22262. "sessionID": {
  22263. "type": "string",
  22264. "allOf": [
  22265. {
  22266. "pattern": "^ses"
  22267. }
  22268. ]
  22269. },
  22270. "status": {
  22271. "$ref": "#/components/schemas/SessionStatus"
  22272. }
  22273. },
  22274. "required": ["sessionID", "status"],
  22275. "additionalProperties": false
  22276. }
  22277. },
  22278. "required": ["id", "created", "type", "data"],
  22279. "additionalProperties": false
  22280. },
  22281. "session.idle": {
  22282. "type": "object",
  22283. "properties": {
  22284. "id": {
  22285. "type": "string",
  22286. "allOf": [
  22287. {
  22288. "pattern": "^evt_"
  22289. }
  22290. ]
  22291. },
  22292. "created": {
  22293. "type": "number"
  22294. },
  22295. "metadata": {
  22296. "type": "object"
  22297. },
  22298. "type": {
  22299. "type": "string",
  22300. "enum": ["session.idle"]
  22301. },
  22302. "location": {
  22303. "$ref": "#/components/schemas/Location.Ref"
  22304. },
  22305. "data": {
  22306. "type": "object",
  22307. "properties": {
  22308. "sessionID": {
  22309. "type": "string",
  22310. "allOf": [
  22311. {
  22312. "pattern": "^ses"
  22313. }
  22314. ]
  22315. }
  22316. },
  22317. "required": ["sessionID"],
  22318. "additionalProperties": false
  22319. }
  22320. },
  22321. "required": ["id", "created", "type", "data"],
  22322. "additionalProperties": false
  22323. },
  22324. "tui.prompt.append": {
  22325. "type": "object",
  22326. "properties": {
  22327. "id": {
  22328. "type": "string",
  22329. "allOf": [
  22330. {
  22331. "pattern": "^evt_"
  22332. }
  22333. ]
  22334. },
  22335. "created": {
  22336. "type": "number"
  22337. },
  22338. "metadata": {
  22339. "type": "object"
  22340. },
  22341. "type": {
  22342. "type": "string",
  22343. "enum": ["tui.prompt.append"]
  22344. },
  22345. "location": {
  22346. "$ref": "#/components/schemas/Location.Ref"
  22347. },
  22348. "data": {
  22349. "type": "object",
  22350. "properties": {
  22351. "text": {
  22352. "type": "string"
  22353. }
  22354. },
  22355. "required": ["text"],
  22356. "additionalProperties": false
  22357. }
  22358. },
  22359. "required": ["id", "created", "type", "data"],
  22360. "additionalProperties": false
  22361. },
  22362. "tui.command.execute": {
  22363. "type": "object",
  22364. "properties": {
  22365. "id": {
  22366. "type": "string",
  22367. "allOf": [
  22368. {
  22369. "pattern": "^evt_"
  22370. }
  22371. ]
  22372. },
  22373. "created": {
  22374. "type": "number"
  22375. },
  22376. "metadata": {
  22377. "type": "object"
  22378. },
  22379. "type": {
  22380. "type": "string",
  22381. "enum": ["tui.command.execute"]
  22382. },
  22383. "location": {
  22384. "$ref": "#/components/schemas/Location.Ref"
  22385. },
  22386. "data": {
  22387. "type": "object",
  22388. "properties": {
  22389. "command": {
  22390. "anyOf": [
  22391. {
  22392. "type": "string",
  22393. "enum": [
  22394. "session.list",
  22395. "session.new",
  22396. "session.share",
  22397. "session.interrupt",
  22398. "session.background",
  22399. "session.compact",
  22400. "session.page.up",
  22401. "session.page.down",
  22402. "session.line.up",
  22403. "session.line.down",
  22404. "session.half.page.up",
  22405. "session.half.page.down",
  22406. "session.first",
  22407. "session.last",
  22408. "prompt.clear",
  22409. "prompt.submit",
  22410. "agent.cycle"
  22411. ]
  22412. },
  22413. {
  22414. "type": "string"
  22415. }
  22416. ]
  22417. }
  22418. },
  22419. "required": ["command"],
  22420. "additionalProperties": false
  22421. }
  22422. },
  22423. "required": ["id", "created", "type", "data"],
  22424. "additionalProperties": false
  22425. },
  22426. "tui.toast.show": {
  22427. "type": "object",
  22428. "properties": {
  22429. "id": {
  22430. "type": "string",
  22431. "allOf": [
  22432. {
  22433. "pattern": "^evt_"
  22434. }
  22435. ]
  22436. },
  22437. "created": {
  22438. "type": "number"
  22439. },
  22440. "metadata": {
  22441. "type": "object"
  22442. },
  22443. "type": {
  22444. "type": "string",
  22445. "enum": ["tui.toast.show"]
  22446. },
  22447. "location": {
  22448. "$ref": "#/components/schemas/Location.Ref"
  22449. },
  22450. "data": {
  22451. "type": "object",
  22452. "properties": {
  22453. "title": {
  22454. "type": "string"
  22455. },
  22456. "message": {
  22457. "type": "string"
  22458. },
  22459. "variant": {
  22460. "type": "string",
  22461. "enum": ["info", "success", "warning", "error"]
  22462. },
  22463. "duration": {
  22464. "anyOf": [
  22465. {
  22466. "type": "integer",
  22467. "allOf": [
  22468. {
  22469. "exclusiveMinimum": 0
  22470. }
  22471. ]
  22472. },
  22473. {
  22474. "type": "null"
  22475. }
  22476. ]
  22477. }
  22478. },
  22479. "required": ["message", "variant"],
  22480. "additionalProperties": false
  22481. }
  22482. },
  22483. "required": ["id", "created", "type", "data"],
  22484. "additionalProperties": false
  22485. },
  22486. "tui.session.select": {
  22487. "type": "object",
  22488. "properties": {
  22489. "id": {
  22490. "type": "string",
  22491. "allOf": [
  22492. {
  22493. "pattern": "^evt_"
  22494. }
  22495. ]
  22496. },
  22497. "created": {
  22498. "type": "number"
  22499. },
  22500. "metadata": {
  22501. "type": "object"
  22502. },
  22503. "type": {
  22504. "type": "string",
  22505. "enum": ["tui.session.select"]
  22506. },
  22507. "location": {
  22508. "$ref": "#/components/schemas/Location.Ref"
  22509. },
  22510. "data": {
  22511. "type": "object",
  22512. "properties": {
  22513. "sessionID": {
  22514. "type": "string",
  22515. "allOf": [
  22516. {
  22517. "pattern": "^ses",
  22518. "description": "Session ID to navigate to"
  22519. }
  22520. ]
  22521. }
  22522. },
  22523. "required": ["sessionID"],
  22524. "additionalProperties": false
  22525. }
  22526. },
  22527. "required": ["id", "created", "type", "data"],
  22528. "additionalProperties": false
  22529. },
  22530. "installation.updated": {
  22531. "type": "object",
  22532. "properties": {
  22533. "id": {
  22534. "type": "string",
  22535. "allOf": [
  22536. {
  22537. "pattern": "^evt_"
  22538. }
  22539. ]
  22540. },
  22541. "created": {
  22542. "type": "number"
  22543. },
  22544. "metadata": {
  22545. "type": "object"
  22546. },
  22547. "type": {
  22548. "type": "string",
  22549. "enum": ["installation.updated"]
  22550. },
  22551. "location": {
  22552. "$ref": "#/components/schemas/Location.Ref"
  22553. },
  22554. "data": {
  22555. "type": "object",
  22556. "properties": {
  22557. "version": {
  22558. "type": "string"
  22559. }
  22560. },
  22561. "required": ["version"],
  22562. "additionalProperties": false
  22563. }
  22564. },
  22565. "required": ["id", "created", "type", "data"],
  22566. "additionalProperties": false
  22567. },
  22568. "installation.update-available": {
  22569. "type": "object",
  22570. "properties": {
  22571. "id": {
  22572. "type": "string",
  22573. "allOf": [
  22574. {
  22575. "pattern": "^evt_"
  22576. }
  22577. ]
  22578. },
  22579. "created": {
  22580. "type": "number"
  22581. },
  22582. "metadata": {
  22583. "type": "object"
  22584. },
  22585. "type": {
  22586. "type": "string",
  22587. "enum": ["installation.update-available"]
  22588. },
  22589. "location": {
  22590. "$ref": "#/components/schemas/Location.Ref"
  22591. },
  22592. "data": {
  22593. "type": "object",
  22594. "properties": {
  22595. "version": {
  22596. "type": "string"
  22597. }
  22598. },
  22599. "required": ["version"],
  22600. "additionalProperties": false
  22601. }
  22602. },
  22603. "required": ["id", "created", "type", "data"],
  22604. "additionalProperties": false
  22605. },
  22606. "vcs.branch.updated": {
  22607. "type": "object",
  22608. "properties": {
  22609. "id": {
  22610. "type": "string",
  22611. "allOf": [
  22612. {
  22613. "pattern": "^evt_"
  22614. }
  22615. ]
  22616. },
  22617. "created": {
  22618. "type": "number"
  22619. },
  22620. "metadata": {
  22621. "type": "object"
  22622. },
  22623. "type": {
  22624. "type": "string",
  22625. "enum": ["vcs.branch.updated"]
  22626. },
  22627. "location": {
  22628. "$ref": "#/components/schemas/Location.Ref"
  22629. },
  22630. "data": {
  22631. "type": "object",
  22632. "properties": {
  22633. "branch": {
  22634. "type": "string"
  22635. }
  22636. },
  22637. "additionalProperties": false
  22638. }
  22639. },
  22640. "required": ["id", "created", "type", "data"],
  22641. "additionalProperties": false
  22642. },
  22643. "mcp.status.changed": {
  22644. "type": "object",
  22645. "properties": {
  22646. "id": {
  22647. "type": "string",
  22648. "allOf": [
  22649. {
  22650. "pattern": "^evt_"
  22651. }
  22652. ]
  22653. },
  22654. "created": {
  22655. "type": "number"
  22656. },
  22657. "metadata": {
  22658. "type": "object"
  22659. },
  22660. "type": {
  22661. "type": "string",
  22662. "enum": ["mcp.status.changed"]
  22663. },
  22664. "location": {
  22665. "$ref": "#/components/schemas/Location.Ref"
  22666. },
  22667. "data": {
  22668. "type": "object",
  22669. "properties": {
  22670. "server": {
  22671. "type": "string"
  22672. }
  22673. },
  22674. "required": ["server"],
  22675. "additionalProperties": false
  22676. }
  22677. },
  22678. "required": ["id", "created", "type", "data"],
  22679. "additionalProperties": false
  22680. },
  22681. "mcp.resources.changed": {
  22682. "type": "object",
  22683. "properties": {
  22684. "id": {
  22685. "type": "string",
  22686. "allOf": [
  22687. {
  22688. "pattern": "^evt_"
  22689. }
  22690. ]
  22691. },
  22692. "created": {
  22693. "type": "number"
  22694. },
  22695. "metadata": {
  22696. "type": "object"
  22697. },
  22698. "type": {
  22699. "type": "string",
  22700. "enum": ["mcp.resources.changed"]
  22701. },
  22702. "location": {
  22703. "$ref": "#/components/schemas/Location.Ref"
  22704. },
  22705. "data": {
  22706. "type": "object",
  22707. "properties": {
  22708. "server": {
  22709. "type": "string"
  22710. }
  22711. },
  22712. "required": ["server"],
  22713. "additionalProperties": false
  22714. }
  22715. },
  22716. "required": ["id", "created", "type", "data"],
  22717. "additionalProperties": false
  22718. },
  22719. "V2Event.server.connected": {
  22720. "type": "object",
  22721. "properties": {
  22722. "id": {
  22723. "type": "string",
  22724. "allOf": [
  22725. {
  22726. "pattern": "^evt_"
  22727. }
  22728. ]
  22729. },
  22730. "metadata": {
  22731. "anyOf": [
  22732. {
  22733. "type": "object"
  22734. },
  22735. {
  22736. "type": "null"
  22737. }
  22738. ]
  22739. },
  22740. "location": {
  22741. "anyOf": [
  22742. {
  22743. "$ref": "#/components/schemas/Location.Ref"
  22744. },
  22745. {
  22746. "type": "null"
  22747. }
  22748. ]
  22749. },
  22750. "type": {
  22751. "type": "string",
  22752. "enum": ["server.connected"]
  22753. },
  22754. "data": {
  22755. "anyOf": [
  22756. {
  22757. "type": "object"
  22758. },
  22759. {
  22760. "type": "array"
  22761. }
  22762. ]
  22763. }
  22764. },
  22765. "required": ["id", "type", "data"],
  22766. "additionalProperties": false
  22767. },
  22768. "V2Event": {
  22769. "anyOf": [
  22770. {
  22771. "$ref": "#/components/schemas/models-dev.refreshed"
  22772. },
  22773. {
  22774. "$ref": "#/components/schemas/integration.updated"
  22775. },
  22776. {
  22777. "$ref": "#/components/schemas/integration.connection.updated"
  22778. },
  22779. {
  22780. "$ref": "#/components/schemas/catalog.updated"
  22781. },
  22782. {
  22783. "$ref": "#/components/schemas/agent.updated"
  22784. },
  22785. {
  22786. "$ref": "#/components/schemas/session.created"
  22787. },
  22788. {
  22789. "$ref": "#/components/schemas/session.agent.selected"
  22790. },
  22791. {
  22792. "$ref": "#/components/schemas/session.model.selected"
  22793. },
  22794. {
  22795. "$ref": "#/components/schemas/session.moved"
  22796. },
  22797. {
  22798. "$ref": "#/components/schemas/session.renamed"
  22799. },
  22800. {
  22801. "$ref": "#/components/schemas/session.viewed"
  22802. },
  22803. {
  22804. "$ref": "#/components/schemas/session.usage.updated"
  22805. },
  22806. {
  22807. "$ref": "#/components/schemas/session.deleted"
  22808. },
  22809. {
  22810. "$ref": "#/components/schemas/session.forked"
  22811. },
  22812. {
  22813. "$ref": "#/components/schemas/session.inbox.delivered"
  22814. },
  22815. {
  22816. "$ref": "#/components/schemas/session.inbox.enqueued"
  22817. },
  22818. {
  22819. "$ref": "#/components/schemas/session.inbox.cancelled"
  22820. },
  22821. {
  22822. "$ref": "#/components/schemas/session.inbox.delivery.changed"
  22823. },
  22824. {
  22825. "$ref": "#/components/schemas/session.execution.started"
  22826. },
  22827. {
  22828. "$ref": "#/components/schemas/session.execution.succeeded"
  22829. },
  22830. {
  22831. "$ref": "#/components/schemas/session.execution.failed"
  22832. },
  22833. {
  22834. "$ref": "#/components/schemas/session.execution.interrupted"
  22835. },
  22836. {
  22837. "$ref": "#/components/schemas/session.instructions.updated"
  22838. },
  22839. {
  22840. "$ref": "#/components/schemas/session.synthetic"
  22841. },
  22842. {
  22843. "$ref": "#/components/schemas/session.skill.activated"
  22844. },
  22845. {
  22846. "$ref": "#/components/schemas/session.shell.started"
  22847. },
  22848. {
  22849. "$ref": "#/components/schemas/session.shell.ended"
  22850. },
  22851. {
  22852. "$ref": "#/components/schemas/session.step.started"
  22853. },
  22854. {
  22855. "$ref": "#/components/schemas/session.step.ended"
  22856. },
  22857. {
  22858. "$ref": "#/components/schemas/session.step.failed"
  22859. },
  22860. {
  22861. "$ref": "#/components/schemas/session.text.started"
  22862. },
  22863. {
  22864. "$ref": "#/components/schemas/session.text.delta"
  22865. },
  22866. {
  22867. "$ref": "#/components/schemas/session.text.ended"
  22868. },
  22869. {
  22870. "$ref": "#/components/schemas/session.reasoning.started"
  22871. },
  22872. {
  22873. "$ref": "#/components/schemas/session.reasoning.delta"
  22874. },
  22875. {
  22876. "$ref": "#/components/schemas/session.reasoning.ended"
  22877. },
  22878. {
  22879. "$ref": "#/components/schemas/session.tool.input.started"
  22880. },
  22881. {
  22882. "$ref": "#/components/schemas/session.tool.input.delta"
  22883. },
  22884. {
  22885. "$ref": "#/components/schemas/session.tool.input.ended"
  22886. },
  22887. {
  22888. "$ref": "#/components/schemas/session.tool.called"
  22889. },
  22890. {
  22891. "$ref": "#/components/schemas/session.tool.progress"
  22892. },
  22893. {
  22894. "$ref": "#/components/schemas/session.tool.success"
  22895. },
  22896. {
  22897. "$ref": "#/components/schemas/session.tool.failed"
  22898. },
  22899. {
  22900. "$ref": "#/components/schemas/session.retry.scheduled"
  22901. },
  22902. {
  22903. "$ref": "#/components/schemas/session.compaction.started"
  22904. },
  22905. {
  22906. "$ref": "#/components/schemas/session.compaction.delta"
  22907. },
  22908. {
  22909. "$ref": "#/components/schemas/session.compaction.ended"
  22910. },
  22911. {
  22912. "$ref": "#/components/schemas/session.compaction.failed"
  22913. },
  22914. {
  22915. "$ref": "#/components/schemas/session.revert.staged"
  22916. },
  22917. {
  22918. "$ref": "#/components/schemas/session.revert.cleared"
  22919. },
  22920. {
  22921. "$ref": "#/components/schemas/session.revert.committed"
  22922. },
  22923. {
  22924. "$ref": "#/components/schemas/filesystem.changed"
  22925. },
  22926. {
  22927. "$ref": "#/components/schemas/reference.updated"
  22928. },
  22929. {
  22930. "$ref": "#/components/schemas/permission.asked"
  22931. },
  22932. {
  22933. "$ref": "#/components/schemas/permission.replied"
  22934. },
  22935. {
  22936. "$ref": "#/components/schemas/plugin.added"
  22937. },
  22938. {
  22939. "$ref": "#/components/schemas/plugin.updated"
  22940. },
  22941. {
  22942. "$ref": "#/components/schemas/worktree.updated"
  22943. },
  22944. {
  22945. "$ref": "#/components/schemas/worktree.resolved"
  22946. },
  22947. {
  22948. "$ref": "#/components/schemas/command.updated"
  22949. },
  22950. {
  22951. "$ref": "#/components/schemas/config.updated"
  22952. },
  22953. {
  22954. "$ref": "#/components/schemas/skill.updated"
  22955. },
  22956. {
  22957. "$ref": "#/components/schemas/pty.created"
  22958. },
  22959. {
  22960. "$ref": "#/components/schemas/pty.updated"
  22961. },
  22962. {
  22963. "$ref": "#/components/schemas/pty.exited"
  22964. },
  22965. {
  22966. "$ref": "#/components/schemas/pty.deleted"
  22967. },
  22968. {
  22969. "$ref": "#/components/schemas/shell.created"
  22970. },
  22971. {
  22972. "$ref": "#/components/schemas/shell.exited"
  22973. },
  22974. {
  22975. "$ref": "#/components/schemas/shell.deleted"
  22976. },
  22977. {
  22978. "$ref": "#/components/schemas/form.created"
  22979. },
  22980. {
  22981. "$ref": "#/components/schemas/form.replied"
  22982. },
  22983. {
  22984. "$ref": "#/components/schemas/form.cancelled"
  22985. },
  22986. {
  22987. "$ref": "#/components/schemas/websearch.updated"
  22988. },
  22989. {
  22990. "$ref": "#/components/schemas/session.status"
  22991. },
  22992. {
  22993. "$ref": "#/components/schemas/session.idle"
  22994. },
  22995. {
  22996. "$ref": "#/components/schemas/tui.prompt.append"
  22997. },
  22998. {
  22999. "$ref": "#/components/schemas/tui.command.execute"
  23000. },
  23001. {
  23002. "$ref": "#/components/schemas/tui.toast.show"
  23003. },
  23004. {
  23005. "$ref": "#/components/schemas/tui.session.select"
  23006. },
  23007. {
  23008. "$ref": "#/components/schemas/installation.updated"
  23009. },
  23010. {
  23011. "$ref": "#/components/schemas/installation.update-available"
  23012. },
  23013. {
  23014. "$ref": "#/components/schemas/vcs.branch.updated"
  23015. },
  23016. {
  23017. "$ref": "#/components/schemas/mcp.status.changed"
  23018. },
  23019. {
  23020. "$ref": "#/components/schemas/mcp.resources.changed"
  23021. },
  23022. {
  23023. "$ref": "#/components/schemas/V2Event.server.connected"
  23024. }
  23025. ]
  23026. },
  23027. "V2EventJsonString": {
  23028. "type": "string",
  23029. "contentSchema": {
  23030. "$ref": "#/components/schemas/V2Event"
  23031. },
  23032. "contentMediaType": "application/json"
  23033. },
  23034. "PtyNotFoundError": {
  23035. "type": "object",
  23036. "properties": {
  23037. "_tag": {
  23038. "type": "string",
  23039. "enum": ["PtyNotFoundError"]
  23040. },
  23041. "ptyID": {
  23042. "type": "string"
  23043. },
  23044. "message": {
  23045. "type": "string"
  23046. }
  23047. },
  23048. "required": ["_tag", "ptyID", "message"],
  23049. "additionalProperties": false
  23050. },
  23051. "PtyTicket.ConnectToken": {
  23052. "type": "object",
  23053. "properties": {
  23054. "ticket": {
  23055. "type": "string"
  23056. },
  23057. "expires_in": {
  23058. "type": "integer",
  23059. "allOf": [
  23060. {
  23061. "exclusiveMinimum": 0
  23062. }
  23063. ]
  23064. }
  23065. },
  23066. "required": ["ticket", "expires_in"],
  23067. "additionalProperties": false
  23068. },
  23069. "ForbiddenError": {
  23070. "type": "object",
  23071. "properties": {
  23072. "_tag": {
  23073. "type": "string",
  23074. "enum": ["ForbiddenError"]
  23075. },
  23076. "message": {
  23077. "type": "string"
  23078. }
  23079. },
  23080. "required": ["_tag", "message"],
  23081. "additionalProperties": false
  23082. },
  23083. "Shell.Info1": {
  23084. "type": "object",
  23085. "properties": {
  23086. "id": {
  23087. "type": "string",
  23088. "allOf": [
  23089. {
  23090. "pattern": "^sh_"
  23091. }
  23092. ]
  23093. },
  23094. "status": {
  23095. "type": "string",
  23096. "enum": ["running", "exited", "timeout", "killed"]
  23097. },
  23098. "command": {
  23099. "type": "string"
  23100. },
  23101. "cwd": {
  23102. "type": "string"
  23103. },
  23104. "shell": {
  23105. "type": "string"
  23106. },
  23107. "file": {
  23108. "type": "string"
  23109. },
  23110. "pid": {
  23111. "type": "integer",
  23112. "allOf": [
  23113. {
  23114. "minimum": 0
  23115. }
  23116. ]
  23117. },
  23118. "exit": {
  23119. "type": "number"
  23120. },
  23121. "metadata": {
  23122. "type": "object"
  23123. },
  23124. "time": {
  23125. "type": "object",
  23126. "properties": {
  23127. "started": {
  23128. "type": "number"
  23129. },
  23130. "completed": {
  23131. "type": "number"
  23132. }
  23133. },
  23134. "required": ["started"],
  23135. "additionalProperties": false
  23136. }
  23137. },
  23138. "required": ["id", "status", "command", "cwd", "shell", "file", "metadata", "time"],
  23139. "additionalProperties": false
  23140. },
  23141. "ShellNotFoundError": {
  23142. "type": "object",
  23143. "properties": {
  23144. "_tag": {
  23145. "type": "string",
  23146. "enum": ["ShellNotFoundError"]
  23147. },
  23148. "id": {
  23149. "type": "string"
  23150. },
  23151. "message": {
  23152. "type": "string"
  23153. }
  23154. },
  23155. "required": ["_tag", "id", "message"],
  23156. "additionalProperties": false
  23157. },
  23158. "Reference.LocalSource": {
  23159. "type": "object",
  23160. "properties": {
  23161. "type": {
  23162. "type": "string",
  23163. "enum": ["local"]
  23164. },
  23165. "path": {
  23166. "type": "string"
  23167. },
  23168. "description": {
  23169. "type": "string"
  23170. },
  23171. "hidden": {
  23172. "type": "boolean"
  23173. }
  23174. },
  23175. "required": ["type", "path"],
  23176. "additionalProperties": false
  23177. },
  23178. "Reference.GitSource": {
  23179. "type": "object",
  23180. "properties": {
  23181. "type": {
  23182. "type": "string",
  23183. "enum": ["git"]
  23184. },
  23185. "repository": {
  23186. "type": "string"
  23187. },
  23188. "branch": {
  23189. "type": "string"
  23190. },
  23191. "description": {
  23192. "type": "string"
  23193. },
  23194. "hidden": {
  23195. "type": "boolean"
  23196. }
  23197. },
  23198. "required": ["type", "repository"],
  23199. "additionalProperties": false
  23200. },
  23201. "Reference.Source": {
  23202. "anyOf": [
  23203. {
  23204. "$ref": "#/components/schemas/Reference.LocalSource"
  23205. },
  23206. {
  23207. "$ref": "#/components/schemas/Reference.GitSource"
  23208. }
  23209. ]
  23210. },
  23211. "Reference.Info": {
  23212. "type": "object",
  23213. "properties": {
  23214. "name": {
  23215. "type": "string"
  23216. },
  23217. "path": {
  23218. "type": "string"
  23219. },
  23220. "description": {
  23221. "type": "string"
  23222. },
  23223. "hidden": {
  23224. "type": "boolean"
  23225. },
  23226. "source": {
  23227. "$ref": "#/components/schemas/Reference.Source"
  23228. }
  23229. },
  23230. "required": ["name", "path", "source"],
  23231. "additionalProperties": false
  23232. },
  23233. "Worktree.Directory": {
  23234. "type": "object",
  23235. "properties": {
  23236. "directory": {
  23237. "type": "string"
  23238. },
  23239. "strategy": {
  23240. "type": "string"
  23241. }
  23242. },
  23243. "required": ["directory"],
  23244. "additionalProperties": false
  23245. },
  23246. "Worktree.List": {
  23247. "type": "array",
  23248. "items": {
  23249. "$ref": "#/components/schemas/Worktree.Directory"
  23250. }
  23251. },
  23252. "Worktree.Info": {
  23253. "type": "object",
  23254. "properties": {
  23255. "directory": {
  23256. "type": "string"
  23257. }
  23258. },
  23259. "required": ["directory"],
  23260. "additionalProperties": false
  23261. },
  23262. "WorktreeError": {
  23263. "type": "object",
  23264. "properties": {
  23265. "name": {
  23266. "type": "string",
  23267. "enum": ["WorktreeError"]
  23268. },
  23269. "data": {
  23270. "type": "object",
  23271. "properties": {
  23272. "message": {
  23273. "type": "string"
  23274. },
  23275. "forceRequired": {
  23276. "anyOf": [
  23277. {
  23278. "type": "boolean"
  23279. },
  23280. {
  23281. "type": "null"
  23282. }
  23283. ]
  23284. }
  23285. },
  23286. "required": ["message"],
  23287. "additionalProperties": false
  23288. }
  23289. },
  23290. "required": ["name", "data"],
  23291. "additionalProperties": false
  23292. },
  23293. "Vcs.Branch": {
  23294. "type": "object",
  23295. "properties": {
  23296. "current": {
  23297. "type": "string"
  23298. },
  23299. "default": {
  23300. "type": "string"
  23301. }
  23302. },
  23303. "additionalProperties": false
  23304. },
  23305. "Vcs.Info": {
  23306. "type": "object",
  23307. "properties": {
  23308. "branch": {
  23309. "$ref": "#/components/schemas/Vcs.Branch"
  23310. }
  23311. },
  23312. "required": ["branch"],
  23313. "additionalProperties": false
  23314. },
  23315. "Vcs.FileStatus": {
  23316. "type": "object",
  23317. "properties": {
  23318. "file": {
  23319. "type": "string"
  23320. },
  23321. "additions": {
  23322. "type": "integer",
  23323. "allOf": [
  23324. {
  23325. "minimum": 0
  23326. }
  23327. ]
  23328. },
  23329. "deletions": {
  23330. "type": "integer",
  23331. "allOf": [
  23332. {
  23333. "minimum": 0
  23334. }
  23335. ]
  23336. },
  23337. "status": {
  23338. "type": "string",
  23339. "enum": ["added", "deleted", "modified"]
  23340. }
  23341. },
  23342. "required": ["file", "additions", "deletions", "status"],
  23343. "additionalProperties": false
  23344. },
  23345. "Vcs.Mode": {
  23346. "type": "string",
  23347. "enum": ["working", "branch"]
  23348. },
  23349. "WebSearch.Provider": {
  23350. "type": "object",
  23351. "properties": {
  23352. "id": {
  23353. "type": "string"
  23354. },
  23355. "name": {
  23356. "type": "string"
  23357. }
  23358. },
  23359. "required": ["id", "name"],
  23360. "additionalProperties": false
  23361. },
  23362. "WebSearch.Result": {
  23363. "type": "object",
  23364. "properties": {
  23365. "url": {
  23366. "type": "string"
  23367. },
  23368. "title": {
  23369. "type": "string"
  23370. },
  23371. "content": {
  23372. "type": "string"
  23373. },
  23374. "time": {
  23375. "type": "object",
  23376. "properties": {
  23377. "published": {
  23378. "type": "number"
  23379. }
  23380. },
  23381. "additionalProperties": false
  23382. }
  23383. },
  23384. "required": ["url", "time"],
  23385. "additionalProperties": false
  23386. },
  23387. "WebSearch.Response": {
  23388. "type": "object",
  23389. "properties": {
  23390. "providerID": {
  23391. "type": "string"
  23392. },
  23393. "results": {
  23394. "type": "array",
  23395. "items": {
  23396. "$ref": "#/components/schemas/WebSearch.Result"
  23397. }
  23398. }
  23399. },
  23400. "required": ["providerID", "results"],
  23401. "additionalProperties": false
  23402. },
  23403. "Config.Agent": {
  23404. "type": "object",
  23405. "properties": {
  23406. "model": {
  23407. "anyOf": [
  23408. {
  23409. "type": "string",
  23410. "allOf": [
  23411. {
  23412. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23413. }
  23414. ]
  23415. },
  23416. {
  23417. "type": "object",
  23418. "properties": {
  23419. "providerID": {
  23420. "type": "string",
  23421. "allOf": [
  23422. {
  23423. "pattern": "^[^/#]+$"
  23424. }
  23425. ]
  23426. },
  23427. "model": {
  23428. "type": "string",
  23429. "allOf": [
  23430. {
  23431. "pattern": "^[^#]+$"
  23432. }
  23433. ]
  23434. },
  23435. "variant": {
  23436. "type": "string",
  23437. "allOf": [
  23438. {
  23439. "pattern": "^[^#]+$"
  23440. }
  23441. ]
  23442. }
  23443. },
  23444. "required": ["providerID", "model"],
  23445. "additionalProperties": false
  23446. }
  23447. ]
  23448. },
  23449. "request": {
  23450. "type": "object",
  23451. "properties": {
  23452. "headers": {
  23453. "type": "object",
  23454. "additionalProperties": {
  23455. "type": "string"
  23456. }
  23457. },
  23458. "body": {
  23459. "type": "object"
  23460. }
  23461. },
  23462. "additionalProperties": false
  23463. },
  23464. "system": {
  23465. "type": "string"
  23466. },
  23467. "description": {
  23468. "type": "string"
  23469. },
  23470. "mode": {
  23471. "type": "string",
  23472. "enum": ["subagent", "primary", "all"]
  23473. },
  23474. "hidden": {
  23475. "type": "boolean"
  23476. },
  23477. "color": {
  23478. "type": "string",
  23479. "allOf": [
  23480. {
  23481. "pattern": "^#[0-9a-fA-F]{6}$"
  23482. }
  23483. ]
  23484. },
  23485. "steps": {
  23486. "type": "integer",
  23487. "allOf": [
  23488. {
  23489. "exclusiveMinimum": 0
  23490. }
  23491. ]
  23492. },
  23493. "disabled": {
  23494. "type": "boolean"
  23495. },
  23496. "permissions": {
  23497. "$ref": "#/components/schemas/Permission.Ruleset"
  23498. }
  23499. },
  23500. "additionalProperties": false
  23501. },
  23502. "Config.Formatter.Entry": {
  23503. "type": "object",
  23504. "properties": {
  23505. "disabled": {
  23506. "type": "boolean"
  23507. },
  23508. "command": {
  23509. "type": "array",
  23510. "items": {
  23511. "type": "string"
  23512. }
  23513. },
  23514. "environment": {
  23515. "type": "object",
  23516. "additionalProperties": {
  23517. "type": "string"
  23518. }
  23519. },
  23520. "extensions": {
  23521. "type": "array",
  23522. "items": {
  23523. "type": "string"
  23524. }
  23525. }
  23526. },
  23527. "additionalProperties": false
  23528. },
  23529. "Config.LSP.Server": {
  23530. "type": "object",
  23531. "properties": {
  23532. "command": {
  23533. "type": "array",
  23534. "items": {
  23535. "type": "string"
  23536. }
  23537. },
  23538. "extensions": {
  23539. "type": "array",
  23540. "items": {
  23541. "type": "string"
  23542. }
  23543. },
  23544. "disabled": {
  23545. "type": "boolean"
  23546. },
  23547. "env": {
  23548. "type": "object",
  23549. "additionalProperties": {
  23550. "type": "string"
  23551. }
  23552. },
  23553. "initialization": {
  23554. "type": "object"
  23555. }
  23556. },
  23557. "required": ["command"],
  23558. "additionalProperties": false
  23559. },
  23560. "Config.Command": {
  23561. "type": "object",
  23562. "properties": {
  23563. "template": {
  23564. "type": "string"
  23565. },
  23566. "description": {
  23567. "type": "string"
  23568. },
  23569. "agent": {
  23570. "type": "string"
  23571. },
  23572. "model": {
  23573. "anyOf": [
  23574. {
  23575. "type": "string",
  23576. "allOf": [
  23577. {
  23578. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23579. }
  23580. ]
  23581. },
  23582. {
  23583. "type": "object",
  23584. "properties": {
  23585. "providerID": {
  23586. "type": "string",
  23587. "allOf": [
  23588. {
  23589. "pattern": "^[^/#]+$"
  23590. }
  23591. ]
  23592. },
  23593. "model": {
  23594. "type": "string",
  23595. "allOf": [
  23596. {
  23597. "pattern": "^[^#]+$"
  23598. }
  23599. ]
  23600. },
  23601. "variant": {
  23602. "type": "string",
  23603. "allOf": [
  23604. {
  23605. "pattern": "^[^#]+$"
  23606. }
  23607. ]
  23608. }
  23609. },
  23610. "required": ["providerID", "model"],
  23611. "additionalProperties": false
  23612. }
  23613. ]
  23614. },
  23615. "subtask": {
  23616. "type": "boolean"
  23617. }
  23618. },
  23619. "required": ["template"],
  23620. "additionalProperties": false
  23621. },
  23622. "Config.Reference.Git": {
  23623. "type": "object",
  23624. "properties": {
  23625. "repository": {
  23626. "type": "string"
  23627. },
  23628. "branch": {
  23629. "type": "string"
  23630. },
  23631. "description": {
  23632. "type": "string"
  23633. },
  23634. "hidden": {
  23635. "type": "boolean"
  23636. }
  23637. },
  23638. "required": ["repository"],
  23639. "additionalProperties": false
  23640. },
  23641. "Config.Reference.Local": {
  23642. "type": "object",
  23643. "properties": {
  23644. "path": {
  23645. "type": "string"
  23646. },
  23647. "description": {
  23648. "type": "string"
  23649. },
  23650. "hidden": {
  23651. "type": "boolean"
  23652. }
  23653. },
  23654. "required": ["path"],
  23655. "additionalProperties": false
  23656. },
  23657. "ConfigWebSearch.Info": {
  23658. "type": "object",
  23659. "properties": {
  23660. "provider": {
  23661. "anyOf": [
  23662. {
  23663. "type": "string",
  23664. "enum": ["random"]
  23665. },
  23666. {
  23667. "type": "string"
  23668. }
  23669. ]
  23670. }
  23671. },
  23672. "required": ["provider"],
  23673. "additionalProperties": false
  23674. },
  23675. "Config.Plugin.Entry": {
  23676. "type": "object",
  23677. "properties": {
  23678. "package": {
  23679. "type": "string"
  23680. },
  23681. "options": {
  23682. "type": "object"
  23683. }
  23684. },
  23685. "required": ["package"],
  23686. "additionalProperties": false
  23687. },
  23688. "Config.Warming": {
  23689. "type": "object",
  23690. "properties": {
  23691. "prompt": {
  23692. "type": "string"
  23693. },
  23694. "interval": {
  23695. "type": "string"
  23696. },
  23697. "duration": {
  23698. "type": "string"
  23699. }
  23700. },
  23701. "additionalProperties": false
  23702. },
  23703. "Config.Model.Cost": {
  23704. "type": "object",
  23705. "properties": {
  23706. "tier": {
  23707. "type": "object",
  23708. "properties": {
  23709. "type": {
  23710. "type": "string",
  23711. "enum": ["context"]
  23712. },
  23713. "size": {
  23714. "type": "integer"
  23715. }
  23716. },
  23717. "required": ["type", "size"],
  23718. "additionalProperties": false
  23719. },
  23720. "input": {
  23721. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23722. },
  23723. "output": {
  23724. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23725. },
  23726. "cache": {
  23727. "type": "object",
  23728. "properties": {
  23729. "read": {
  23730. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23731. },
  23732. "write": {
  23733. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  23734. }
  23735. },
  23736. "additionalProperties": false
  23737. }
  23738. },
  23739. "required": ["input", "output"],
  23740. "additionalProperties": false
  23741. },
  23742. "Config.Model": {
  23743. "type": "object",
  23744. "properties": {
  23745. "modelID": {
  23746. "type": "string"
  23747. },
  23748. "family": {
  23749. "type": "string"
  23750. },
  23751. "name": {
  23752. "type": "string"
  23753. },
  23754. "compatibility": {
  23755. "$ref": "#/components/schemas/Model.Compatibility"
  23756. },
  23757. "package": {
  23758. "type": "string"
  23759. },
  23760. "settings": {
  23761. "type": "object"
  23762. },
  23763. "headers": {
  23764. "type": "object",
  23765. "additionalProperties": {
  23766. "type": "string"
  23767. }
  23768. },
  23769. "body": {
  23770. "type": "object"
  23771. },
  23772. "capabilities": {
  23773. "$ref": "#/components/schemas/Model.Capabilities"
  23774. },
  23775. "variants": {
  23776. "type": "array",
  23777. "items": {
  23778. "type": "object",
  23779. "properties": {
  23780. "id": {
  23781. "type": "string"
  23782. },
  23783. "settings": {
  23784. "type": "object"
  23785. },
  23786. "headers": {
  23787. "type": "object",
  23788. "additionalProperties": {
  23789. "type": "string"
  23790. }
  23791. },
  23792. "body": {
  23793. "type": "object"
  23794. }
  23795. },
  23796. "required": ["id"],
  23797. "additionalProperties": false
  23798. }
  23799. },
  23800. "cost": {
  23801. "anyOf": [
  23802. {
  23803. "$ref": "#/components/schemas/Config.Model.Cost"
  23804. },
  23805. {
  23806. "type": "array",
  23807. "items": {
  23808. "$ref": "#/components/schemas/Config.Model.Cost"
  23809. }
  23810. }
  23811. ]
  23812. },
  23813. "disabled": {
  23814. "type": "boolean"
  23815. },
  23816. "limit": {
  23817. "type": "object",
  23818. "properties": {
  23819. "context": {
  23820. "type": "integer"
  23821. },
  23822. "input": {
  23823. "type": "integer"
  23824. },
  23825. "output": {
  23826. "type": "integer"
  23827. }
  23828. },
  23829. "additionalProperties": false
  23830. }
  23831. },
  23832. "additionalProperties": false
  23833. },
  23834. "Config.Provider": {
  23835. "type": "object",
  23836. "properties": {
  23837. "name": {
  23838. "type": "string"
  23839. },
  23840. "env": {
  23841. "type": "array",
  23842. "items": {
  23843. "type": "string"
  23844. }
  23845. },
  23846. "package": {
  23847. "type": "string"
  23848. },
  23849. "settings": {
  23850. "type": "object"
  23851. },
  23852. "headers": {
  23853. "type": "object",
  23854. "additionalProperties": {
  23855. "type": "string"
  23856. }
  23857. },
  23858. "body": {
  23859. "type": "object"
  23860. },
  23861. "models": {
  23862. "type": "object",
  23863. "additionalProperties": {
  23864. "$ref": "#/components/schemas/Config.Model"
  23865. }
  23866. }
  23867. },
  23868. "additionalProperties": false
  23869. },
  23870. "Config.Info": {
  23871. "type": "object",
  23872. "properties": {
  23873. "$schema": {
  23874. "type": "string"
  23875. },
  23876. "shell": {
  23877. "type": "string"
  23878. },
  23879. "model": {
  23880. "anyOf": [
  23881. {
  23882. "type": "string",
  23883. "allOf": [
  23884. {
  23885. "pattern": "^[^/#]+\\/[^#]+(?:#[^#]+)?$"
  23886. }
  23887. ]
  23888. },
  23889. {
  23890. "type": "object",
  23891. "properties": {
  23892. "providerID": {
  23893. "type": "string",
  23894. "allOf": [
  23895. {
  23896. "pattern": "^[^/#]+$"
  23897. }
  23898. ]
  23899. },
  23900. "model": {
  23901. "type": "string",
  23902. "allOf": [
  23903. {
  23904. "pattern": "^[^#]+$"
  23905. }
  23906. ]
  23907. },
  23908. "variant": {
  23909. "type": "string",
  23910. "allOf": [
  23911. {
  23912. "pattern": "^[^#]+$"
  23913. }
  23914. ]
  23915. }
  23916. },
  23917. "required": ["providerID", "model"],
  23918. "additionalProperties": false
  23919. }
  23920. ]
  23921. },
  23922. "default_agent": {
  23923. "type": "string"
  23924. },
  23925. "autoupdate": {
  23926. "anyOf": [
  23927. {
  23928. "type": "boolean"
  23929. },
  23930. {
  23931. "type": "string",
  23932. "enum": ["notify"]
  23933. }
  23934. ]
  23935. },
  23936. "share": {
  23937. "type": "string",
  23938. "enum": ["manual", "auto", "disabled"]
  23939. },
  23940. "enterprise": {
  23941. "type": "object",
  23942. "properties": {
  23943. "url": {
  23944. "type": "string"
  23945. }
  23946. },
  23947. "additionalProperties": false
  23948. },
  23949. "username": {
  23950. "type": "string"
  23951. },
  23952. "permissions": {
  23953. "$ref": "#/components/schemas/Permission.Ruleset"
  23954. },
  23955. "agents": {
  23956. "type": "object",
  23957. "additionalProperties": {
  23958. "$ref": "#/components/schemas/Config.Agent"
  23959. }
  23960. },
  23961. "snapshots": {
  23962. "type": "boolean"
  23963. },
  23964. "watcher": {
  23965. "type": "object",
  23966. "properties": {
  23967. "ignore": {
  23968. "type": "array",
  23969. "items": {
  23970. "type": "string"
  23971. }
  23972. }
  23973. },
  23974. "additionalProperties": false
  23975. },
  23976. "formatter": {
  23977. "anyOf": [
  23978. {
  23979. "type": "boolean"
  23980. },
  23981. {
  23982. "type": "object",
  23983. "additionalProperties": {
  23984. "$ref": "#/components/schemas/Config.Formatter.Entry"
  23985. }
  23986. }
  23987. ]
  23988. },
  23989. "lsp": {
  23990. "anyOf": [
  23991. {
  23992. "type": "boolean"
  23993. },
  23994. {
  23995. "type": "object",
  23996. "additionalProperties": {
  23997. "anyOf": [
  23998. {
  23999. "type": "object",
  24000. "properties": {
  24001. "disabled": {
  24002. "type": "boolean",
  24003. "enum": [true]
  24004. }
  24005. },
  24006. "required": ["disabled"],
  24007. "additionalProperties": false
  24008. },
  24009. {
  24010. "$ref": "#/components/schemas/Config.LSP.Server"
  24011. }
  24012. ]
  24013. }
  24014. }
  24015. ]
  24016. },
  24017. "media": {
  24018. "type": "object",
  24019. "properties": {
  24020. "image": {
  24021. "type": "object",
  24022. "properties": {
  24023. "auto_resize": {
  24024. "type": "boolean"
  24025. },
  24026. "max_width": {
  24027. "type": "integer",
  24028. "allOf": [
  24029. {
  24030. "exclusiveMinimum": 0
  24031. }
  24032. ]
  24033. },
  24034. "max_height": {
  24035. "type": "integer",
  24036. "allOf": [
  24037. {
  24038. "exclusiveMinimum": 0
  24039. }
  24040. ]
  24041. },
  24042. "max_base64_bytes": {
  24043. "type": "integer",
  24044. "allOf": [
  24045. {
  24046. "exclusiveMinimum": 0
  24047. }
  24048. ]
  24049. }
  24050. },
  24051. "additionalProperties": false
  24052. }
  24053. },
  24054. "additionalProperties": false
  24055. },
  24056. "tool_output": {
  24057. "type": "object",
  24058. "properties": {
  24059. "max_lines": {
  24060. "type": "integer",
  24061. "allOf": [
  24062. {
  24063. "exclusiveMinimum": 0
  24064. }
  24065. ]
  24066. },
  24067. "max_bytes": {
  24068. "type": "integer",
  24069. "allOf": [
  24070. {
  24071. "exclusiveMinimum": 0
  24072. }
  24073. ]
  24074. }
  24075. },
  24076. "additionalProperties": false
  24077. },
  24078. "mcp": {
  24079. "type": "object",
  24080. "properties": {
  24081. "timeout": {
  24082. "type": "object",
  24083. "properties": {
  24084. "startup": {
  24085. "type": "integer",
  24086. "allOf": [
  24087. {
  24088. "exclusiveMinimum": 0
  24089. }
  24090. ]
  24091. },
  24092. "catalog": {
  24093. "type": "integer",
  24094. "allOf": [
  24095. {
  24096. "exclusiveMinimum": 0
  24097. }
  24098. ]
  24099. },
  24100. "execution": {
  24101. "type": "integer",
  24102. "allOf": [
  24103. {
  24104. "exclusiveMinimum": 0
  24105. }
  24106. ]
  24107. }
  24108. },
  24109. "additionalProperties": false
  24110. },
  24111. "servers": {
  24112. "type": "object",
  24113. "additionalProperties": {
  24114. "anyOf": [
  24115. {
  24116. "$ref": "#/components/schemas/Mcp.LocalConfig"
  24117. },
  24118. {
  24119. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  24120. }
  24121. ]
  24122. }
  24123. }
  24124. },
  24125. "additionalProperties": false
  24126. },
  24127. "compaction": {
  24128. "type": "object",
  24129. "properties": {
  24130. "auto": {
  24131. "type": "boolean"
  24132. },
  24133. "keep": {
  24134. "type": "object",
  24135. "properties": {
  24136. "tokens": {
  24137. "type": "integer",
  24138. "allOf": [
  24139. {
  24140. "minimum": 0
  24141. }
  24142. ]
  24143. }
  24144. },
  24145. "additionalProperties": false
  24146. },
  24147. "buffer": {
  24148. "type": "integer",
  24149. "allOf": [
  24150. {
  24151. "minimum": 0
  24152. }
  24153. ]
  24154. }
  24155. },
  24156. "additionalProperties": false
  24157. },
  24158. "skills": {
  24159. "type": "array",
  24160. "items": {
  24161. "type": "string"
  24162. }
  24163. },
  24164. "commands": {
  24165. "type": "object",
  24166. "additionalProperties": {
  24167. "$ref": "#/components/schemas/Config.Command"
  24168. }
  24169. },
  24170. "instructions": {
  24171. "type": "array",
  24172. "items": {
  24173. "type": "string"
  24174. }
  24175. },
  24176. "references": {
  24177. "type": "object",
  24178. "additionalProperties": {
  24179. "anyOf": [
  24180. {
  24181. "type": "string"
  24182. },
  24183. {
  24184. "$ref": "#/components/schemas/Config.Reference.Git"
  24185. },
  24186. {
  24187. "$ref": "#/components/schemas/Config.Reference.Local"
  24188. }
  24189. ]
  24190. }
  24191. },
  24192. "websearch": {
  24193. "anyOf": [
  24194. {
  24195. "type": "boolean",
  24196. "enum": [false]
  24197. },
  24198. {
  24199. "$ref": "#/components/schemas/ConfigWebSearch.Info"
  24200. }
  24201. ]
  24202. },
  24203. "plugins": {
  24204. "type": "array",
  24205. "items": {
  24206. "anyOf": [
  24207. {
  24208. "type": "string"
  24209. },
  24210. {
  24211. "$ref": "#/components/schemas/Config.Plugin.Entry"
  24212. }
  24213. ]
  24214. }
  24215. },
  24216. "warming": {
  24217. "anyOf": [
  24218. {
  24219. "type": "boolean"
  24220. },
  24221. {
  24222. "$ref": "#/components/schemas/Config.Warming"
  24223. }
  24224. ]
  24225. },
  24226. "providers": {
  24227. "type": "object",
  24228. "additionalProperties": {
  24229. "$ref": "#/components/schemas/Config.Provider"
  24230. }
  24231. },
  24232. "experimental": {
  24233. "type": "object",
  24234. "properties": {
  24235. "portable_shell_scanner": {
  24236. "type": "boolean"
  24237. },
  24238. "subagent_depth": {
  24239. "type": "integer",
  24240. "allOf": [
  24241. {
  24242. "minimum": 0
  24243. }
  24244. ]
  24245. },
  24246. "policies": {
  24247. "type": "array",
  24248. "items": {
  24249. "type": "object",
  24250. "properties": {
  24251. "action": {
  24252. "type": "string",
  24253. "enum": ["provider.use"]
  24254. },
  24255. "resource": {
  24256. "type": "string"
  24257. },
  24258. "effect": {
  24259. "type": "string",
  24260. "enum": ["allow", "deny"]
  24261. }
  24262. },
  24263. "required": ["action", "resource", "effect"],
  24264. "additionalProperties": false
  24265. }
  24266. }
  24267. },
  24268. "additionalProperties": false
  24269. }
  24270. },
  24271. "additionalProperties": false
  24272. },
  24273. "Config.Document": {
  24274. "type": "object",
  24275. "properties": {
  24276. "type": {
  24277. "type": "string",
  24278. "enum": ["document"]
  24279. },
  24280. "path": {
  24281. "type": "string"
  24282. },
  24283. "info": {
  24284. "$ref": "#/components/schemas/Config.Info"
  24285. }
  24286. },
  24287. "required": ["type", "info"],
  24288. "additionalProperties": false
  24289. },
  24290. "Config.Directory": {
  24291. "type": "object",
  24292. "properties": {
  24293. "type": {
  24294. "type": "string",
  24295. "enum": ["directory"]
  24296. },
  24297. "path": {
  24298. "type": "string"
  24299. }
  24300. },
  24301. "required": ["type", "path"],
  24302. "additionalProperties": false
  24303. },
  24304. "Config.AgentsDirectory": {
  24305. "type": "object",
  24306. "properties": {
  24307. "type": {
  24308. "type": "string",
  24309. "enum": ["agents"]
  24310. },
  24311. "path": {
  24312. "type": "string"
  24313. }
  24314. },
  24315. "required": ["type", "path"],
  24316. "additionalProperties": false
  24317. },
  24318. "Config.ClaudeDirectory": {
  24319. "type": "object",
  24320. "properties": {
  24321. "type": {
  24322. "type": "string",
  24323. "enum": ["claude"]
  24324. },
  24325. "path": {
  24326. "type": "string"
  24327. }
  24328. },
  24329. "required": ["type", "path"],
  24330. "additionalProperties": false
  24331. },
  24332. "Config.Entry": {
  24333. "anyOf": [
  24334. {
  24335. "$ref": "#/components/schemas/Config.Document"
  24336. },
  24337. {
  24338. "$ref": "#/components/schemas/Config.Directory"
  24339. },
  24340. {
  24341. "$ref": "#/components/schemas/Config.AgentsDirectory"
  24342. },
  24343. {
  24344. "$ref": "#/components/schemas/Config.ClaudeDirectory"
  24345. }
  24346. ]
  24347. }
  24348. },
  24349. "securitySchemes": {}
  24350. },
  24351. "security": [],
  24352. "tags": [
  24353. {
  24354. "name": "health"
  24355. },
  24356. {
  24357. "name": "server"
  24358. },
  24359. {
  24360. "name": "location"
  24361. },
  24362. {
  24363. "name": "agent"
  24364. },
  24365. {
  24366. "name": "plugin",
  24367. "description": "Experimental plugin routes."
  24368. },
  24369. {
  24370. "name": "session",
  24371. "description": "Experimental session routes."
  24372. },
  24373. {
  24374. "name": "session",
  24375. "description": "Experimental message routes."
  24376. },
  24377. {
  24378. "name": "model",
  24379. "description": "Experimental model routes."
  24380. },
  24381. {
  24382. "name": "generate",
  24383. "description": "Experimental one-shot generation routes."
  24384. },
  24385. {
  24386. "name": "provider",
  24387. "description": "Experimental provider routes."
  24388. },
  24389. {
  24390. "name": "integration",
  24391. "description": "Integration discovery and authentication routes."
  24392. },
  24393. {
  24394. "name": "mcp",
  24395. "description": "MCP server and resource routes."
  24396. },
  24397. {
  24398. "name": "credential"
  24399. },
  24400. {
  24401. "name": "project",
  24402. "description": "Project routes."
  24403. },
  24404. {
  24405. "name": "form",
  24406. "description": "Session form routes."
  24407. },
  24408. {
  24409. "name": "permission",
  24410. "description": "Experimental permission routes."
  24411. },
  24412. {
  24413. "name": "filesystem",
  24414. "description": "Experimental location-scoped filesystem routes."
  24415. },
  24416. {
  24417. "name": "command",
  24418. "description": "Experimental command routes."
  24419. },
  24420. {
  24421. "name": "skill",
  24422. "description": "Experimental skill routes."
  24423. },
  24424. {
  24425. "name": "event",
  24426. "description": "Experimental event stream routes."
  24427. },
  24428. {
  24429. "name": "pty",
  24430. "description": "Experimental location-scoped PTY routes."
  24431. },
  24432. {
  24433. "name": "shell",
  24434. "description": "Experimental location-scoped shell command routes."
  24435. },
  24436. {
  24437. "name": "reference",
  24438. "description": "Location-scoped project references."
  24439. },
  24440. {
  24441. "name": "worktree",
  24442. "description": "Project worktree management routes."
  24443. },
  24444. {
  24445. "name": "vcs",
  24446. "description": "Location-scoped version control routes."
  24447. },
  24448. {
  24449. "name": "debug"
  24450. },
  24451. {
  24452. "name": "migration"
  24453. },
  24454. {
  24455. "name": "websearch",
  24456. "description": "Location-scoped web search routes."
  24457. },
  24458. {
  24459. "name": "config",
  24460. "description": "Location-scoped configuration routes."
  24461. }
  24462. ]
  24463. }