openapi.json 730 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "opencode HttpApi",
  5. "version": "0.0.1",
  6. "description": "Experimental HttpApi surface for selected instance routes."
  7. },
  8. "paths": {
  9. "/api/health": {
  10. "get": {
  11. "tags": [
  12. "health"
  13. ],
  14. "operationId": "v2.health.get",
  15. "parameters": [],
  16. "security": [],
  17. "responses": {
  18. "200": {
  19. "description": "ServiceHealth",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "$ref": "#/components/schemas/ServiceHealth"
  24. }
  25. }
  26. }
  27. },
  28. "400": {
  29. "description": "InvalidRequestError",
  30. "content": {
  31. "application/json": {
  32. "schema": {
  33. "$ref": "#/components/schemas/InvalidRequestError"
  34. }
  35. }
  36. }
  37. },
  38. "401": {
  39. "description": "UnauthorizedError",
  40. "content": {
  41. "application/json": {
  42. "schema": {
  43. "$ref": "#/components/schemas/UnauthorizedError"
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "description": "Report the owning server process and its application status.",
  50. "summary": "Check server health"
  51. }
  52. },
  53. "/api/service/stop": {
  54. "post": {
  55. "tags": [
  56. "health"
  57. ],
  58. "operationId": "v2.health.stop",
  59. "parameters": [],
  60. "security": [],
  61. "responses": {
  62. "200": {
  63. "description": "ServiceStopResponse",
  64. "content": {
  65. "application/json": {
  66. "schema": {
  67. "$ref": "#/components/schemas/ServiceStopResponse"
  68. }
  69. }
  70. }
  71. },
  72. "400": {
  73. "description": "InvalidRequestError",
  74. "content": {
  75. "application/json": {
  76. "schema": {
  77. "$ref": "#/components/schemas/InvalidRequestError"
  78. }
  79. }
  80. }
  81. },
  82. "401": {
  83. "description": "UnauthorizedError",
  84. "content": {
  85. "application/json": {
  86. "schema": {
  87. "$ref": "#/components/schemas/UnauthorizedError"
  88. }
  89. }
  90. }
  91. }
  92. },
  93. "description": "Request graceful shutdown of one exact managed server instance.",
  94. "summary": "Stop the managed server",
  95. "requestBody": {
  96. "content": {
  97. "application/json": {
  98. "schema": {
  99. "$ref": "#/components/schemas/ServiceStopRequest"
  100. }
  101. }
  102. },
  103. "required": true
  104. }
  105. }
  106. },
  107. "/api/server": {
  108. "get": {
  109. "tags": [
  110. "server"
  111. ],
  112. "operationId": "v2.server.get",
  113. "parameters": [],
  114. "security": [],
  115. "responses": {
  116. "200": {
  117. "description": "Success",
  118. "content": {
  119. "application/json": {
  120. "schema": {
  121. "type": "object",
  122. "properties": {
  123. "urls": {
  124. "type": "array",
  125. "items": {
  126. "type": "string"
  127. }
  128. }
  129. },
  130. "required": [
  131. "urls"
  132. ],
  133. "additionalProperties": false
  134. }
  135. }
  136. }
  137. },
  138. "400": {
  139. "description": "InvalidRequestError",
  140. "content": {
  141. "application/json": {
  142. "schema": {
  143. "$ref": "#/components/schemas/InvalidRequestError"
  144. }
  145. }
  146. }
  147. },
  148. "401": {
  149. "description": "UnauthorizedError",
  150. "content": {
  151. "application/json": {
  152. "schema": {
  153. "$ref": "#/components/schemas/UnauthorizedError"
  154. }
  155. }
  156. }
  157. }
  158. },
  159. "description": "Return the URLs that can be used to connect to this server.",
  160. "summary": "Get server information"
  161. }
  162. },
  163. "/api/location": {
  164. "get": {
  165. "tags": [
  166. "location"
  167. ],
  168. "operationId": "v2.location.get",
  169. "parameters": [
  170. {
  171. "name": "location",
  172. "in": "query",
  173. "schema": {
  174. "anyOf": [
  175. {
  176. "type": "object",
  177. "properties": {
  178. "directory": {
  179. "anyOf": [
  180. {
  181. "type": "string"
  182. },
  183. {
  184. "type": "null"
  185. }
  186. ]
  187. },
  188. "workspace": {
  189. "anyOf": [
  190. {
  191. "type": "string"
  192. },
  193. {
  194. "type": "null"
  195. }
  196. ]
  197. }
  198. },
  199. "additionalProperties": false
  200. },
  201. {
  202. "type": "null"
  203. }
  204. ]
  205. },
  206. "required": false,
  207. "style": "deepObject",
  208. "explode": true
  209. }
  210. ],
  211. "security": [],
  212. "responses": {
  213. "200": {
  214. "description": "Location.Info",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "$ref": "#/components/schemas/Location.Info"
  219. }
  220. }
  221. }
  222. },
  223. "400": {
  224. "description": "InvalidRequestError",
  225. "content": {
  226. "application/json": {
  227. "schema": {
  228. "$ref": "#/components/schemas/InvalidRequestError"
  229. }
  230. }
  231. }
  232. },
  233. "401": {
  234. "description": "UnauthorizedError",
  235. "content": {
  236. "application/json": {
  237. "schema": {
  238. "$ref": "#/components/schemas/UnauthorizedError"
  239. }
  240. }
  241. }
  242. }
  243. },
  244. "description": "Resolve the requested location or the server default location.",
  245. "summary": "Get location"
  246. }
  247. },
  248. "/api/agent": {
  249. "get": {
  250. "tags": [
  251. "agent"
  252. ],
  253. "operationId": "v2.agent.list",
  254. "parameters": [
  255. {
  256. "name": "location",
  257. "in": "query",
  258. "schema": {
  259. "anyOf": [
  260. {
  261. "type": "object",
  262. "properties": {
  263. "directory": {
  264. "anyOf": [
  265. {
  266. "type": "string"
  267. },
  268. {
  269. "type": "null"
  270. }
  271. ]
  272. },
  273. "workspace": {
  274. "anyOf": [
  275. {
  276. "type": "string"
  277. },
  278. {
  279. "type": "null"
  280. }
  281. ]
  282. }
  283. },
  284. "additionalProperties": false
  285. },
  286. {
  287. "type": "null"
  288. }
  289. ]
  290. },
  291. "required": false,
  292. "style": "deepObject",
  293. "explode": true
  294. }
  295. ],
  296. "security": [],
  297. "responses": {
  298. "200": {
  299. "description": "Success",
  300. "content": {
  301. "application/json": {
  302. "schema": {
  303. "type": "object",
  304. "properties": {
  305. "location": {
  306. "$ref": "#/components/schemas/Location.Info"
  307. },
  308. "data": {
  309. "type": "array",
  310. "items": {
  311. "$ref": "#/components/schemas/Agent.Info"
  312. }
  313. }
  314. },
  315. "required": [
  316. "location",
  317. "data"
  318. ],
  319. "additionalProperties": false
  320. }
  321. }
  322. }
  323. },
  324. "400": {
  325. "description": "InvalidRequestError",
  326. "content": {
  327. "application/json": {
  328. "schema": {
  329. "$ref": "#/components/schemas/InvalidRequestError"
  330. }
  331. }
  332. }
  333. },
  334. "401": {
  335. "description": "UnauthorizedError",
  336. "content": {
  337. "application/json": {
  338. "schema": {
  339. "$ref": "#/components/schemas/UnauthorizedError"
  340. }
  341. }
  342. }
  343. }
  344. },
  345. "description": "Retrieve currently registered agents.",
  346. "summary": "List agents"
  347. }
  348. },
  349. "/api/agent/{agentID}": {
  350. "get": {
  351. "tags": [
  352. "agent"
  353. ],
  354. "operationId": "v2.agent.get",
  355. "parameters": [
  356. {
  357. "name": "agentID",
  358. "in": "path",
  359. "schema": {
  360. "type": "string"
  361. },
  362. "required": true
  363. },
  364. {
  365. "name": "location",
  366. "in": "query",
  367. "schema": {
  368. "anyOf": [
  369. {
  370. "type": "object",
  371. "properties": {
  372. "directory": {
  373. "anyOf": [
  374. {
  375. "type": "string"
  376. },
  377. {
  378. "type": "null"
  379. }
  380. ]
  381. },
  382. "workspace": {
  383. "anyOf": [
  384. {
  385. "type": "string"
  386. },
  387. {
  388. "type": "null"
  389. }
  390. ]
  391. }
  392. },
  393. "additionalProperties": false
  394. },
  395. {
  396. "type": "null"
  397. }
  398. ]
  399. },
  400. "required": false,
  401. "style": "deepObject",
  402. "explode": true
  403. }
  404. ],
  405. "security": [],
  406. "responses": {
  407. "200": {
  408. "description": "Success",
  409. "content": {
  410. "application/json": {
  411. "schema": {
  412. "type": "object",
  413. "properties": {
  414. "location": {
  415. "$ref": "#/components/schemas/Location.Info"
  416. },
  417. "data": {
  418. "$ref": "#/components/schemas/Agent.Info"
  419. }
  420. },
  421. "required": [
  422. "location",
  423. "data"
  424. ],
  425. "additionalProperties": false
  426. }
  427. }
  428. }
  429. },
  430. "400": {
  431. "description": "InvalidRequestError",
  432. "content": {
  433. "application/json": {
  434. "schema": {
  435. "$ref": "#/components/schemas/InvalidRequestError"
  436. }
  437. }
  438. }
  439. },
  440. "401": {
  441. "description": "UnauthorizedError",
  442. "content": {
  443. "application/json": {
  444. "schema": {
  445. "$ref": "#/components/schemas/UnauthorizedError"
  446. }
  447. }
  448. }
  449. },
  450. "404": {
  451. "description": "AgentNotFoundError",
  452. "content": {
  453. "application/json": {
  454. "schema": {
  455. "$ref": "#/components/schemas/AgentNotFoundError"
  456. }
  457. }
  458. }
  459. }
  460. },
  461. "description": "Retrieve a single currently registered agent.",
  462. "summary": "Get agent"
  463. }
  464. },
  465. "/api/plugin": {
  466. "get": {
  467. "tags": [
  468. "plugin"
  469. ],
  470. "operationId": "v2.plugin.list",
  471. "parameters": [
  472. {
  473. "name": "location",
  474. "in": "query",
  475. "schema": {
  476. "anyOf": [
  477. {
  478. "type": "object",
  479. "properties": {
  480. "directory": {
  481. "anyOf": [
  482. {
  483. "type": "string"
  484. },
  485. {
  486. "type": "null"
  487. }
  488. ]
  489. },
  490. "workspace": {
  491. "anyOf": [
  492. {
  493. "type": "string"
  494. },
  495. {
  496. "type": "null"
  497. }
  498. ]
  499. }
  500. },
  501. "additionalProperties": false
  502. },
  503. {
  504. "type": "null"
  505. }
  506. ]
  507. },
  508. "required": false,
  509. "style": "deepObject",
  510. "explode": true
  511. }
  512. ],
  513. "security": [],
  514. "responses": {
  515. "200": {
  516. "description": "Success",
  517. "content": {
  518. "application/json": {
  519. "schema": {
  520. "type": "object",
  521. "properties": {
  522. "location": {
  523. "$ref": "#/components/schemas/Location.Info"
  524. },
  525. "data": {
  526. "type": "array",
  527. "items": {
  528. "$ref": "#/components/schemas/Plugin.Info"
  529. }
  530. }
  531. },
  532. "required": [
  533. "location",
  534. "data"
  535. ],
  536. "additionalProperties": false
  537. }
  538. }
  539. }
  540. },
  541. "400": {
  542. "description": "InvalidRequestError",
  543. "content": {
  544. "application/json": {
  545. "schema": {
  546. "$ref": "#/components/schemas/InvalidRequestError"
  547. }
  548. }
  549. }
  550. },
  551. "401": {
  552. "description": "UnauthorizedError",
  553. "content": {
  554. "application/json": {
  555. "schema": {
  556. "$ref": "#/components/schemas/UnauthorizedError"
  557. }
  558. }
  559. }
  560. }
  561. },
  562. "description": "Retrieve currently loaded plugins.",
  563. "summary": "List plugins"
  564. }
  565. },
  566. "/api/session": {
  567. "get": {
  568. "tags": [
  569. "session"
  570. ],
  571. "operationId": "v2.session.list",
  572. "parameters": [
  573. {
  574. "name": "workspace",
  575. "in": "query",
  576. "schema": {
  577. "anyOf": [
  578. {
  579. "type": "string",
  580. "allOf": [
  581. {
  582. "pattern": "^wrk"
  583. }
  584. ]
  585. },
  586. {
  587. "type": "null"
  588. }
  589. ]
  590. },
  591. "required": false
  592. },
  593. {
  594. "name": "limit",
  595. "in": "query",
  596. "schema": {
  597. "anyOf": [
  598. {
  599. "type": "string"
  600. },
  601. {
  602. "type": "null"
  603. }
  604. ],
  605. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  606. },
  607. "required": false
  608. },
  609. {
  610. "name": "order",
  611. "in": "query",
  612. "schema": {
  613. "anyOf": [
  614. {
  615. "type": "string",
  616. "enum": [
  617. "asc",
  618. "desc"
  619. ]
  620. },
  621. {
  622. "type": "null"
  623. }
  624. ],
  625. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  626. },
  627. "required": false
  628. },
  629. {
  630. "name": "search",
  631. "in": "query",
  632. "schema": {
  633. "anyOf": [
  634. {
  635. "type": "string"
  636. },
  637. {
  638. "type": "null"
  639. }
  640. ]
  641. },
  642. "required": false
  643. },
  644. {
  645. "name": "parentID",
  646. "in": "query",
  647. "schema": {
  648. "anyOf": [
  649. {
  650. "anyOf": [
  651. {
  652. "type": "string",
  653. "allOf": [
  654. {
  655. "pattern": "^ses"
  656. }
  657. ]
  658. },
  659. {
  660. "type": "string",
  661. "enum": [
  662. "null"
  663. ]
  664. }
  665. ],
  666. "description": "Filter by parent session. Use null to return only root sessions."
  667. },
  668. {
  669. "type": "null"
  670. }
  671. ]
  672. },
  673. "required": false
  674. },
  675. {
  676. "name": "directory",
  677. "in": "query",
  678. "schema": {
  679. "anyOf": [
  680. {
  681. "type": "string"
  682. },
  683. {
  684. "type": "null"
  685. }
  686. ]
  687. },
  688. "required": false
  689. },
  690. {
  691. "name": "project",
  692. "in": "query",
  693. "schema": {
  694. "anyOf": [
  695. {
  696. "type": "string"
  697. },
  698. {
  699. "type": "null"
  700. }
  701. ]
  702. },
  703. "required": false
  704. },
  705. {
  706. "name": "subpath",
  707. "in": "query",
  708. "schema": {
  709. "anyOf": [
  710. {
  711. "type": "string"
  712. },
  713. {
  714. "type": "null"
  715. }
  716. ]
  717. },
  718. "required": false
  719. },
  720. {
  721. "name": "cursor",
  722. "in": "query",
  723. "schema": {
  724. "anyOf": [
  725. {
  726. "type": "string",
  727. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  728. },
  729. {
  730. "type": "null"
  731. }
  732. ]
  733. },
  734. "required": false
  735. }
  736. ],
  737. "security": [],
  738. "responses": {
  739. "200": {
  740. "description": "SessionsResponse",
  741. "content": {
  742. "application/json": {
  743. "schema": {
  744. "$ref": "#/components/schemas/SessionsResponse"
  745. }
  746. }
  747. }
  748. },
  749. "400": {
  750. "description": "InvalidCursorError | InvalidRequestError",
  751. "content": {
  752. "application/json": {
  753. "schema": {
  754. "anyOf": [
  755. {
  756. "$ref": "#/components/schemas/InvalidCursorError"
  757. },
  758. {
  759. "$ref": "#/components/schemas/InvalidRequestError1"
  760. },
  761. {
  762. "$ref": "#/components/schemas/InvalidRequestError"
  763. }
  764. ]
  765. }
  766. }
  767. }
  768. },
  769. "401": {
  770. "description": "UnauthorizedError",
  771. "content": {
  772. "application/json": {
  773. "schema": {
  774. "$ref": "#/components/schemas/UnauthorizedError"
  775. }
  776. }
  777. }
  778. }
  779. },
  780. "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
  781. "summary": "List sessions"
  782. },
  783. "post": {
  784. "tags": [
  785. "session"
  786. ],
  787. "operationId": "v2.session.create",
  788. "parameters": [],
  789. "security": [],
  790. "responses": {
  791. "200": {
  792. "description": "Success",
  793. "content": {
  794. "application/json": {
  795. "schema": {
  796. "type": "object",
  797. "properties": {
  798. "data": {
  799. "$ref": "#/components/schemas/Session.Info"
  800. }
  801. },
  802. "required": [
  803. "data"
  804. ],
  805. "additionalProperties": false
  806. }
  807. }
  808. }
  809. },
  810. "400": {
  811. "description": "InvalidRequestError",
  812. "content": {
  813. "application/json": {
  814. "schema": {
  815. "$ref": "#/components/schemas/InvalidRequestError"
  816. }
  817. }
  818. }
  819. },
  820. "401": {
  821. "description": "UnauthorizedError",
  822. "content": {
  823. "application/json": {
  824. "schema": {
  825. "$ref": "#/components/schemas/UnauthorizedError"
  826. }
  827. }
  828. }
  829. }
  830. },
  831. "description": "Create a session at the requested location.",
  832. "summary": "Create session",
  833. "requestBody": {
  834. "content": {
  835. "application/json": {
  836. "schema": {
  837. "type": "object",
  838. "properties": {
  839. "id": {
  840. "anyOf": [
  841. {
  842. "type": "string",
  843. "allOf": [
  844. {
  845. "pattern": "^ses"
  846. }
  847. ]
  848. },
  849. {
  850. "type": "null"
  851. }
  852. ]
  853. },
  854. "title": {
  855. "anyOf": [
  856. {
  857. "type": "string"
  858. },
  859. {
  860. "type": "null"
  861. }
  862. ]
  863. },
  864. "agent": {
  865. "anyOf": [
  866. {
  867. "type": "string"
  868. },
  869. {
  870. "type": "null"
  871. }
  872. ]
  873. },
  874. "model": {
  875. "anyOf": [
  876. {
  877. "$ref": "#/components/schemas/Model.Ref"
  878. },
  879. {
  880. "type": "null"
  881. }
  882. ]
  883. },
  884. "location": {
  885. "anyOf": [
  886. {
  887. "$ref": "#/components/schemas/Location.Ref"
  888. },
  889. {
  890. "type": "null"
  891. }
  892. ]
  893. }
  894. },
  895. "additionalProperties": false
  896. }
  897. }
  898. },
  899. "required": true
  900. }
  901. }
  902. },
  903. "/api/session/active": {
  904. "get": {
  905. "tags": [
  906. "session"
  907. ],
  908. "operationId": "v2.session.active",
  909. "parameters": [],
  910. "security": [],
  911. "responses": {
  912. "200": {
  913. "description": "Success",
  914. "content": {
  915. "application/json": {
  916. "schema": {
  917. "type": "object",
  918. "properties": {
  919. "data": {
  920. "type": "object",
  921. "patternProperties": {
  922. "^ses": {
  923. "$ref": "#/components/schemas/SessionActive"
  924. }
  925. }
  926. }
  927. },
  928. "required": [
  929. "data"
  930. ],
  931. "additionalProperties": false
  932. }
  933. }
  934. }
  935. },
  936. "400": {
  937. "description": "InvalidRequestError",
  938. "content": {
  939. "application/json": {
  940. "schema": {
  941. "$ref": "#/components/schemas/InvalidRequestError"
  942. }
  943. }
  944. }
  945. },
  946. "401": {
  947. "description": "UnauthorizedError",
  948. "content": {
  949. "application/json": {
  950. "schema": {
  951. "$ref": "#/components/schemas/UnauthorizedError"
  952. }
  953. }
  954. }
  955. }
  956. },
  957. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  958. "summary": "List active sessions"
  959. }
  960. },
  961. "/api/session/{sessionID}": {
  962. "get": {
  963. "tags": [
  964. "session"
  965. ],
  966. "operationId": "v2.session.get",
  967. "parameters": [
  968. {
  969. "name": "sessionID",
  970. "in": "path",
  971. "schema": {
  972. "type": "string",
  973. "allOf": [
  974. {
  975. "pattern": "^ses"
  976. }
  977. ]
  978. },
  979. "required": true
  980. }
  981. ],
  982. "security": [],
  983. "responses": {
  984. "200": {
  985. "description": "Success",
  986. "content": {
  987. "application/json": {
  988. "schema": {
  989. "type": "object",
  990. "properties": {
  991. "data": {
  992. "$ref": "#/components/schemas/Session.Info"
  993. }
  994. },
  995. "required": [
  996. "data"
  997. ],
  998. "additionalProperties": false
  999. }
  1000. }
  1001. }
  1002. },
  1003. "400": {
  1004. "description": "InvalidRequestError",
  1005. "content": {
  1006. "application/json": {
  1007. "schema": {
  1008. "$ref": "#/components/schemas/InvalidRequestError"
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "401": {
  1014. "description": "UnauthorizedError",
  1015. "content": {
  1016. "application/json": {
  1017. "schema": {
  1018. "$ref": "#/components/schemas/UnauthorizedError"
  1019. }
  1020. }
  1021. }
  1022. },
  1023. "404": {
  1024. "description": "SessionNotFoundError",
  1025. "content": {
  1026. "application/json": {
  1027. "schema": {
  1028. "anyOf": [
  1029. {
  1030. "$ref": "#/components/schemas/SessionNotFoundError"
  1031. },
  1032. {
  1033. "$ref": "#/components/schemas/SessionNotFoundError"
  1034. }
  1035. ]
  1036. }
  1037. }
  1038. }
  1039. }
  1040. },
  1041. "description": "Retrieve a session by ID.",
  1042. "summary": "Get session"
  1043. },
  1044. "delete": {
  1045. "tags": [
  1046. "session"
  1047. ],
  1048. "operationId": "v2.session.remove",
  1049. "parameters": [
  1050. {
  1051. "name": "sessionID",
  1052. "in": "path",
  1053. "schema": {
  1054. "type": "string",
  1055. "allOf": [
  1056. {
  1057. "pattern": "^ses"
  1058. }
  1059. ]
  1060. },
  1061. "required": true
  1062. }
  1063. ],
  1064. "security": [],
  1065. "responses": {
  1066. "204": {
  1067. "description": "<No Content>"
  1068. },
  1069. "400": {
  1070. "description": "InvalidRequestError",
  1071. "content": {
  1072. "application/json": {
  1073. "schema": {
  1074. "$ref": "#/components/schemas/InvalidRequestError"
  1075. }
  1076. }
  1077. }
  1078. },
  1079. "401": {
  1080. "description": "UnauthorizedError",
  1081. "content": {
  1082. "application/json": {
  1083. "schema": {
  1084. "$ref": "#/components/schemas/UnauthorizedError"
  1085. }
  1086. }
  1087. }
  1088. },
  1089. "404": {
  1090. "description": "SessionNotFoundError",
  1091. "content": {
  1092. "application/json": {
  1093. "schema": {
  1094. "anyOf": [
  1095. {
  1096. "$ref": "#/components/schemas/SessionNotFoundError"
  1097. },
  1098. {
  1099. "$ref": "#/components/schemas/SessionNotFoundError"
  1100. }
  1101. ]
  1102. }
  1103. }
  1104. }
  1105. }
  1106. },
  1107. "description": "Delete a session and its child sessions.",
  1108. "summary": "Delete session"
  1109. }
  1110. },
  1111. "/api/session/{sessionID}/fork": {
  1112. "post": {
  1113. "tags": [
  1114. "session"
  1115. ],
  1116. "operationId": "v2.session.fork",
  1117. "parameters": [
  1118. {
  1119. "name": "sessionID",
  1120. "in": "path",
  1121. "schema": {
  1122. "type": "string",
  1123. "allOf": [
  1124. {
  1125. "pattern": "^ses"
  1126. }
  1127. ]
  1128. },
  1129. "required": true
  1130. }
  1131. ],
  1132. "security": [],
  1133. "responses": {
  1134. "200": {
  1135. "description": "Success",
  1136. "content": {
  1137. "application/json": {
  1138. "schema": {
  1139. "type": "object",
  1140. "properties": {
  1141. "data": {
  1142. "$ref": "#/components/schemas/Session.Info"
  1143. }
  1144. },
  1145. "required": [
  1146. "data"
  1147. ],
  1148. "additionalProperties": false
  1149. }
  1150. }
  1151. }
  1152. },
  1153. "400": {
  1154. "description": "InvalidRequestError",
  1155. "content": {
  1156. "application/json": {
  1157. "schema": {
  1158. "anyOf": [
  1159. {
  1160. "$ref": "#/components/schemas/InvalidRequestError1"
  1161. },
  1162. {
  1163. "$ref": "#/components/schemas/InvalidRequestError"
  1164. }
  1165. ]
  1166. }
  1167. }
  1168. }
  1169. },
  1170. "401": {
  1171. "description": "UnauthorizedError",
  1172. "content": {
  1173. "application/json": {
  1174. "schema": {
  1175. "$ref": "#/components/schemas/UnauthorizedError"
  1176. }
  1177. }
  1178. }
  1179. },
  1180. "404": {
  1181. "description": "SessionNotFoundError | MessageNotFoundError",
  1182. "content": {
  1183. "application/json": {
  1184. "schema": {
  1185. "anyOf": [
  1186. {
  1187. "$ref": "#/components/schemas/MessageNotFoundError"
  1188. },
  1189. {
  1190. "$ref": "#/components/schemas/SessionNotFoundError"
  1191. },
  1192. {
  1193. "$ref": "#/components/schemas/SessionNotFoundError"
  1194. }
  1195. ]
  1196. }
  1197. }
  1198. }
  1199. }
  1200. },
  1201. "description": "Create a child session by copying projected history through or before a message boundary.",
  1202. "summary": "Fork session",
  1203. "requestBody": {
  1204. "content": {
  1205. "application/json": {
  1206. "schema": {
  1207. "type": "object",
  1208. "properties": {
  1209. "boundary": {
  1210. "$ref": "#/components/schemas/Session.ForkRequestBoundary"
  1211. }
  1212. },
  1213. "required": [
  1214. "boundary"
  1215. ],
  1216. "additionalProperties": false
  1217. }
  1218. }
  1219. },
  1220. "required": true
  1221. }
  1222. }
  1223. },
  1224. "/api/session/{sessionID}/agent": {
  1225. "post": {
  1226. "tags": [
  1227. "session"
  1228. ],
  1229. "operationId": "v2.session.switchAgent",
  1230. "parameters": [
  1231. {
  1232. "name": "sessionID",
  1233. "in": "path",
  1234. "schema": {
  1235. "type": "string",
  1236. "allOf": [
  1237. {
  1238. "pattern": "^ses"
  1239. }
  1240. ]
  1241. },
  1242. "required": true
  1243. }
  1244. ],
  1245. "security": [],
  1246. "responses": {
  1247. "204": {
  1248. "description": "<No Content>"
  1249. },
  1250. "400": {
  1251. "description": "InvalidRequestError",
  1252. "content": {
  1253. "application/json": {
  1254. "schema": {
  1255. "$ref": "#/components/schemas/InvalidRequestError"
  1256. }
  1257. }
  1258. }
  1259. },
  1260. "401": {
  1261. "description": "UnauthorizedError",
  1262. "content": {
  1263. "application/json": {
  1264. "schema": {
  1265. "$ref": "#/components/schemas/UnauthorizedError"
  1266. }
  1267. }
  1268. }
  1269. },
  1270. "404": {
  1271. "description": "SessionNotFoundError",
  1272. "content": {
  1273. "application/json": {
  1274. "schema": {
  1275. "anyOf": [
  1276. {
  1277. "$ref": "#/components/schemas/SessionNotFoundError"
  1278. },
  1279. {
  1280. "$ref": "#/components/schemas/SessionNotFoundError"
  1281. }
  1282. ]
  1283. }
  1284. }
  1285. }
  1286. }
  1287. },
  1288. "description": "Switch the agent used by subsequent provider turns.",
  1289. "summary": "Switch session agent",
  1290. "requestBody": {
  1291. "content": {
  1292. "application/json": {
  1293. "schema": {
  1294. "type": "object",
  1295. "properties": {
  1296. "agent": {
  1297. "type": "string"
  1298. }
  1299. },
  1300. "required": [
  1301. "agent"
  1302. ],
  1303. "additionalProperties": false
  1304. }
  1305. }
  1306. },
  1307. "required": true
  1308. }
  1309. }
  1310. },
  1311. "/api/session/{sessionID}/model": {
  1312. "post": {
  1313. "tags": [
  1314. "session"
  1315. ],
  1316. "operationId": "v2.session.switchModel",
  1317. "parameters": [
  1318. {
  1319. "name": "sessionID",
  1320. "in": "path",
  1321. "schema": {
  1322. "type": "string",
  1323. "allOf": [
  1324. {
  1325. "pattern": "^ses"
  1326. }
  1327. ]
  1328. },
  1329. "required": true
  1330. }
  1331. ],
  1332. "security": [],
  1333. "responses": {
  1334. "204": {
  1335. "description": "<No Content>"
  1336. },
  1337. "400": {
  1338. "description": "InvalidRequestError",
  1339. "content": {
  1340. "application/json": {
  1341. "schema": {
  1342. "$ref": "#/components/schemas/InvalidRequestError"
  1343. }
  1344. }
  1345. }
  1346. },
  1347. "401": {
  1348. "description": "UnauthorizedError",
  1349. "content": {
  1350. "application/json": {
  1351. "schema": {
  1352. "$ref": "#/components/schemas/UnauthorizedError"
  1353. }
  1354. }
  1355. }
  1356. },
  1357. "404": {
  1358. "description": "SessionNotFoundError",
  1359. "content": {
  1360. "application/json": {
  1361. "schema": {
  1362. "anyOf": [
  1363. {
  1364. "$ref": "#/components/schemas/SessionNotFoundError"
  1365. },
  1366. {
  1367. "$ref": "#/components/schemas/SessionNotFoundError"
  1368. }
  1369. ]
  1370. }
  1371. }
  1372. }
  1373. }
  1374. },
  1375. "description": "Switch the model used by subsequent provider turns.",
  1376. "summary": "Switch session model",
  1377. "requestBody": {
  1378. "content": {
  1379. "application/json": {
  1380. "schema": {
  1381. "type": "object",
  1382. "properties": {
  1383. "model": {
  1384. "$ref": "#/components/schemas/Model.Ref"
  1385. }
  1386. },
  1387. "required": [
  1388. "model"
  1389. ],
  1390. "additionalProperties": false
  1391. }
  1392. }
  1393. },
  1394. "required": true
  1395. }
  1396. }
  1397. },
  1398. "/api/session/{sessionID}/rename": {
  1399. "post": {
  1400. "tags": [
  1401. "session"
  1402. ],
  1403. "operationId": "v2.session.rename",
  1404. "parameters": [
  1405. {
  1406. "name": "sessionID",
  1407. "in": "path",
  1408. "schema": {
  1409. "type": "string",
  1410. "allOf": [
  1411. {
  1412. "pattern": "^ses"
  1413. }
  1414. ]
  1415. },
  1416. "required": true
  1417. }
  1418. ],
  1419. "security": [],
  1420. "responses": {
  1421. "204": {
  1422. "description": "<No Content>"
  1423. },
  1424. "400": {
  1425. "description": "InvalidRequestError",
  1426. "content": {
  1427. "application/json": {
  1428. "schema": {
  1429. "$ref": "#/components/schemas/InvalidRequestError"
  1430. }
  1431. }
  1432. }
  1433. },
  1434. "401": {
  1435. "description": "UnauthorizedError",
  1436. "content": {
  1437. "application/json": {
  1438. "schema": {
  1439. "$ref": "#/components/schemas/UnauthorizedError"
  1440. }
  1441. }
  1442. }
  1443. },
  1444. "404": {
  1445. "description": "SessionNotFoundError",
  1446. "content": {
  1447. "application/json": {
  1448. "schema": {
  1449. "anyOf": [
  1450. {
  1451. "$ref": "#/components/schemas/SessionNotFoundError"
  1452. },
  1453. {
  1454. "$ref": "#/components/schemas/SessionNotFoundError"
  1455. }
  1456. ]
  1457. }
  1458. }
  1459. }
  1460. }
  1461. },
  1462. "description": "Update the session title.",
  1463. "summary": "Rename session",
  1464. "requestBody": {
  1465. "content": {
  1466. "application/json": {
  1467. "schema": {
  1468. "type": "object",
  1469. "properties": {
  1470. "title": {
  1471. "type": "string"
  1472. }
  1473. },
  1474. "required": [
  1475. "title"
  1476. ],
  1477. "additionalProperties": false
  1478. }
  1479. }
  1480. },
  1481. "required": true
  1482. }
  1483. }
  1484. },
  1485. "/api/session/{sessionID}/move": {
  1486. "post": {
  1487. "tags": [
  1488. "session"
  1489. ],
  1490. "operationId": "v2.session.move",
  1491. "parameters": [
  1492. {
  1493. "name": "sessionID",
  1494. "in": "path",
  1495. "schema": {
  1496. "type": "string",
  1497. "allOf": [
  1498. {
  1499. "pattern": "^ses"
  1500. }
  1501. ]
  1502. },
  1503. "required": true
  1504. }
  1505. ],
  1506. "security": [],
  1507. "responses": {
  1508. "204": {
  1509. "description": "<No Content>"
  1510. },
  1511. "400": {
  1512. "description": "InvalidRequestError",
  1513. "content": {
  1514. "application/json": {
  1515. "schema": {
  1516. "anyOf": [
  1517. {
  1518. "$ref": "#/components/schemas/InvalidRequestError1"
  1519. },
  1520. {
  1521. "$ref": "#/components/schemas/InvalidRequestError"
  1522. }
  1523. ]
  1524. }
  1525. }
  1526. }
  1527. },
  1528. "401": {
  1529. "description": "UnauthorizedError",
  1530. "content": {
  1531. "application/json": {
  1532. "schema": {
  1533. "$ref": "#/components/schemas/UnauthorizedError"
  1534. }
  1535. }
  1536. }
  1537. },
  1538. "404": {
  1539. "description": "SessionNotFoundError",
  1540. "content": {
  1541. "application/json": {
  1542. "schema": {
  1543. "anyOf": [
  1544. {
  1545. "$ref": "#/components/schemas/SessionNotFoundError"
  1546. },
  1547. {
  1548. "$ref": "#/components/schemas/SessionNotFoundError"
  1549. }
  1550. ]
  1551. }
  1552. }
  1553. }
  1554. }
  1555. },
  1556. "description": "Move a session to another project directory, optionally transferring local changes.",
  1557. "summary": "Move session",
  1558. "requestBody": {
  1559. "content": {
  1560. "application/json": {
  1561. "schema": {
  1562. "$ref": "#/components/schemas/Location.Ref"
  1563. }
  1564. }
  1565. },
  1566. "required": true
  1567. }
  1568. }
  1569. },
  1570. "/api/session/{sessionID}/prompt": {
  1571. "post": {
  1572. "tags": [
  1573. "session"
  1574. ],
  1575. "operationId": "v2.session.prompt",
  1576. "parameters": [
  1577. {
  1578. "name": "sessionID",
  1579. "in": "path",
  1580. "schema": {
  1581. "type": "string",
  1582. "allOf": [
  1583. {
  1584. "pattern": "^ses"
  1585. }
  1586. ]
  1587. },
  1588. "required": true
  1589. }
  1590. ],
  1591. "security": [],
  1592. "responses": {
  1593. "200": {
  1594. "description": "Success",
  1595. "content": {
  1596. "application/json": {
  1597. "schema": {
  1598. "type": "object",
  1599. "properties": {
  1600. "data": {
  1601. "$ref": "#/components/schemas/SessionPending.User"
  1602. }
  1603. },
  1604. "required": [
  1605. "data"
  1606. ],
  1607. "additionalProperties": false
  1608. }
  1609. }
  1610. }
  1611. },
  1612. "400": {
  1613. "description": "InvalidRequestError",
  1614. "content": {
  1615. "application/json": {
  1616. "schema": {
  1617. "anyOf": [
  1618. {
  1619. "$ref": "#/components/schemas/InvalidRequestError1"
  1620. },
  1621. {
  1622. "$ref": "#/components/schemas/InvalidRequestError"
  1623. }
  1624. ]
  1625. }
  1626. }
  1627. }
  1628. },
  1629. "401": {
  1630. "description": "UnauthorizedError",
  1631. "content": {
  1632. "application/json": {
  1633. "schema": {
  1634. "$ref": "#/components/schemas/UnauthorizedError"
  1635. }
  1636. }
  1637. }
  1638. },
  1639. "404": {
  1640. "description": "SessionNotFoundError",
  1641. "content": {
  1642. "application/json": {
  1643. "schema": {
  1644. "anyOf": [
  1645. {
  1646. "$ref": "#/components/schemas/SessionNotFoundError"
  1647. },
  1648. {
  1649. "$ref": "#/components/schemas/SessionNotFoundError"
  1650. }
  1651. ]
  1652. }
  1653. }
  1654. }
  1655. },
  1656. "409": {
  1657. "description": "ConflictError",
  1658. "content": {
  1659. "application/json": {
  1660. "schema": {
  1661. "$ref": "#/components/schemas/ConflictError"
  1662. }
  1663. }
  1664. }
  1665. }
  1666. },
  1667. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1668. "summary": "Send message",
  1669. "requestBody": {
  1670. "content": {
  1671. "application/json": {
  1672. "schema": {
  1673. "type": "object",
  1674. "properties": {
  1675. "id": {
  1676. "anyOf": [
  1677. {
  1678. "type": "string",
  1679. "allOf": [
  1680. {
  1681. "pattern": "^msg_"
  1682. }
  1683. ]
  1684. },
  1685. {
  1686. "type": "null"
  1687. }
  1688. ]
  1689. },
  1690. "text": {
  1691. "type": "string"
  1692. },
  1693. "files": {
  1694. "type": "array",
  1695. "items": {
  1696. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1697. }
  1698. },
  1699. "agents": {
  1700. "type": "array",
  1701. "items": {
  1702. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1703. }
  1704. },
  1705. "metadata": {
  1706. "type": "object"
  1707. },
  1708. "delivery": {
  1709. "anyOf": [
  1710. {
  1711. "type": "string",
  1712. "enum": [
  1713. "steer",
  1714. "queue"
  1715. ]
  1716. },
  1717. {
  1718. "type": "null"
  1719. }
  1720. ]
  1721. },
  1722. "resume": {
  1723. "anyOf": [
  1724. {
  1725. "type": "boolean"
  1726. },
  1727. {
  1728. "type": "null"
  1729. }
  1730. ]
  1731. }
  1732. },
  1733. "required": [
  1734. "text"
  1735. ],
  1736. "additionalProperties": false
  1737. }
  1738. }
  1739. },
  1740. "required": true
  1741. }
  1742. }
  1743. },
  1744. "/api/session/{sessionID}/command": {
  1745. "post": {
  1746. "tags": [
  1747. "session"
  1748. ],
  1749. "operationId": "v2.session.command",
  1750. "parameters": [
  1751. {
  1752. "name": "sessionID",
  1753. "in": "path",
  1754. "schema": {
  1755. "type": "string",
  1756. "allOf": [
  1757. {
  1758. "pattern": "^ses"
  1759. }
  1760. ]
  1761. },
  1762. "required": true
  1763. }
  1764. ],
  1765. "security": [],
  1766. "responses": {
  1767. "200": {
  1768. "description": "Success",
  1769. "content": {
  1770. "application/json": {
  1771. "schema": {
  1772. "type": "object",
  1773. "properties": {
  1774. "data": {
  1775. "$ref": "#/components/schemas/SessionPending.User"
  1776. }
  1777. },
  1778. "required": [
  1779. "data"
  1780. ],
  1781. "additionalProperties": false
  1782. }
  1783. }
  1784. }
  1785. },
  1786. "400": {
  1787. "description": "InvalidRequestError",
  1788. "content": {
  1789. "application/json": {
  1790. "schema": {
  1791. "anyOf": [
  1792. {
  1793. "$ref": "#/components/schemas/InvalidRequestError1"
  1794. },
  1795. {
  1796. "$ref": "#/components/schemas/InvalidRequestError"
  1797. }
  1798. ]
  1799. }
  1800. }
  1801. }
  1802. },
  1803. "401": {
  1804. "description": "UnauthorizedError",
  1805. "content": {
  1806. "application/json": {
  1807. "schema": {
  1808. "$ref": "#/components/schemas/UnauthorizedError"
  1809. }
  1810. }
  1811. }
  1812. },
  1813. "404": {
  1814. "description": "SessionNotFoundError | CommandNotFoundError",
  1815. "content": {
  1816. "application/json": {
  1817. "schema": {
  1818. "anyOf": [
  1819. {
  1820. "$ref": "#/components/schemas/CommandNotFoundError"
  1821. },
  1822. {
  1823. "$ref": "#/components/schemas/SessionNotFoundError"
  1824. },
  1825. {
  1826. "$ref": "#/components/schemas/SessionNotFoundError"
  1827. }
  1828. ]
  1829. }
  1830. }
  1831. }
  1832. },
  1833. "409": {
  1834. "description": "ConflictError",
  1835. "content": {
  1836. "application/json": {
  1837. "schema": {
  1838. "$ref": "#/components/schemas/ConflictError"
  1839. }
  1840. }
  1841. }
  1842. },
  1843. "500": {
  1844. "description": "CommandEvaluationError",
  1845. "content": {
  1846. "application/json": {
  1847. "schema": {
  1848. "$ref": "#/components/schemas/CommandEvaluationError"
  1849. }
  1850. }
  1851. }
  1852. }
  1853. },
  1854. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1855. "summary": "Run command",
  1856. "requestBody": {
  1857. "content": {
  1858. "application/json": {
  1859. "schema": {
  1860. "type": "object",
  1861. "properties": {
  1862. "id": {
  1863. "anyOf": [
  1864. {
  1865. "type": "string",
  1866. "allOf": [
  1867. {
  1868. "pattern": "^msg_"
  1869. }
  1870. ]
  1871. },
  1872. {
  1873. "type": "null"
  1874. }
  1875. ]
  1876. },
  1877. "command": {
  1878. "type": "string"
  1879. },
  1880. "arguments": {
  1881. "anyOf": [
  1882. {
  1883. "type": "string"
  1884. },
  1885. {
  1886. "type": "null"
  1887. }
  1888. ]
  1889. },
  1890. "agent": {
  1891. "anyOf": [
  1892. {
  1893. "type": "string"
  1894. },
  1895. {
  1896. "type": "null"
  1897. }
  1898. ]
  1899. },
  1900. "model": {
  1901. "anyOf": [
  1902. {
  1903. "$ref": "#/components/schemas/Model.Ref"
  1904. },
  1905. {
  1906. "type": "null"
  1907. }
  1908. ]
  1909. },
  1910. "files": {
  1911. "type": "array",
  1912. "items": {
  1913. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1914. }
  1915. },
  1916. "agents": {
  1917. "type": "array",
  1918. "items": {
  1919. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1920. }
  1921. },
  1922. "delivery": {
  1923. "anyOf": [
  1924. {
  1925. "type": "string",
  1926. "enum": [
  1927. "steer",
  1928. "queue"
  1929. ]
  1930. },
  1931. {
  1932. "type": "null"
  1933. }
  1934. ]
  1935. },
  1936. "resume": {
  1937. "anyOf": [
  1938. {
  1939. "type": "boolean"
  1940. },
  1941. {
  1942. "type": "null"
  1943. }
  1944. ]
  1945. }
  1946. },
  1947. "required": [
  1948. "command"
  1949. ],
  1950. "additionalProperties": false
  1951. }
  1952. }
  1953. },
  1954. "required": true
  1955. }
  1956. }
  1957. },
  1958. "/api/session/{sessionID}/skill": {
  1959. "post": {
  1960. "tags": [
  1961. "session"
  1962. ],
  1963. "operationId": "v2.session.skill",
  1964. "parameters": [
  1965. {
  1966. "name": "sessionID",
  1967. "in": "path",
  1968. "schema": {
  1969. "type": "string",
  1970. "allOf": [
  1971. {
  1972. "pattern": "^ses"
  1973. }
  1974. ]
  1975. },
  1976. "required": true
  1977. }
  1978. ],
  1979. "security": [],
  1980. "responses": {
  1981. "204": {
  1982. "description": "<No Content>"
  1983. },
  1984. "400": {
  1985. "description": "InvalidRequestError",
  1986. "content": {
  1987. "application/json": {
  1988. "schema": {
  1989. "$ref": "#/components/schemas/InvalidRequestError"
  1990. }
  1991. }
  1992. }
  1993. },
  1994. "401": {
  1995. "description": "UnauthorizedError",
  1996. "content": {
  1997. "application/json": {
  1998. "schema": {
  1999. "$ref": "#/components/schemas/UnauthorizedError"
  2000. }
  2001. }
  2002. }
  2003. },
  2004. "404": {
  2005. "description": "SessionNotFoundError | SkillNotFoundError",
  2006. "content": {
  2007. "application/json": {
  2008. "schema": {
  2009. "anyOf": [
  2010. {
  2011. "$ref": "#/components/schemas/SkillNotFoundError"
  2012. },
  2013. {
  2014. "$ref": "#/components/schemas/SessionNotFoundError"
  2015. },
  2016. {
  2017. "$ref": "#/components/schemas/SessionNotFoundError"
  2018. }
  2019. ]
  2020. }
  2021. }
  2022. }
  2023. }
  2024. },
  2025. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  2026. "summary": "Activate skill",
  2027. "requestBody": {
  2028. "content": {
  2029. "application/json": {
  2030. "schema": {
  2031. "type": "object",
  2032. "properties": {
  2033. "id": {
  2034. "anyOf": [
  2035. {
  2036. "type": "string",
  2037. "allOf": [
  2038. {
  2039. "pattern": "^msg_"
  2040. }
  2041. ]
  2042. },
  2043. {
  2044. "type": "null"
  2045. }
  2046. ]
  2047. },
  2048. "skill": {
  2049. "type": "string"
  2050. },
  2051. "resume": {
  2052. "anyOf": [
  2053. {
  2054. "type": "boolean"
  2055. },
  2056. {
  2057. "type": "null"
  2058. }
  2059. ]
  2060. }
  2061. },
  2062. "required": [
  2063. "skill"
  2064. ],
  2065. "additionalProperties": false
  2066. }
  2067. }
  2068. },
  2069. "required": true
  2070. }
  2071. }
  2072. },
  2073. "/api/session/{sessionID}/synthetic": {
  2074. "post": {
  2075. "tags": [
  2076. "session"
  2077. ],
  2078. "operationId": "v2.session.synthetic",
  2079. "parameters": [
  2080. {
  2081. "name": "sessionID",
  2082. "in": "path",
  2083. "schema": {
  2084. "type": "string",
  2085. "allOf": [
  2086. {
  2087. "pattern": "^ses"
  2088. }
  2089. ]
  2090. },
  2091. "required": true
  2092. }
  2093. ],
  2094. "security": [],
  2095. "responses": {
  2096. "200": {
  2097. "description": "Success",
  2098. "content": {
  2099. "application/json": {
  2100. "schema": {
  2101. "type": "object",
  2102. "properties": {
  2103. "data": {
  2104. "$ref": "#/components/schemas/SessionPending.Synthetic"
  2105. }
  2106. },
  2107. "required": [
  2108. "data"
  2109. ],
  2110. "additionalProperties": false
  2111. }
  2112. }
  2113. }
  2114. },
  2115. "400": {
  2116. "description": "InvalidRequestError",
  2117. "content": {
  2118. "application/json": {
  2119. "schema": {
  2120. "$ref": "#/components/schemas/InvalidRequestError"
  2121. }
  2122. }
  2123. }
  2124. },
  2125. "401": {
  2126. "description": "UnauthorizedError",
  2127. "content": {
  2128. "application/json": {
  2129. "schema": {
  2130. "$ref": "#/components/schemas/UnauthorizedError"
  2131. }
  2132. }
  2133. }
  2134. },
  2135. "404": {
  2136. "description": "SessionNotFoundError",
  2137. "content": {
  2138. "application/json": {
  2139. "schema": {
  2140. "anyOf": [
  2141. {
  2142. "$ref": "#/components/schemas/SessionNotFoundError"
  2143. },
  2144. {
  2145. "$ref": "#/components/schemas/SessionNotFoundError"
  2146. }
  2147. ]
  2148. }
  2149. }
  2150. }
  2151. },
  2152. "409": {
  2153. "description": "ConflictError",
  2154. "content": {
  2155. "application/json": {
  2156. "schema": {
  2157. "$ref": "#/components/schemas/ConflictError"
  2158. }
  2159. }
  2160. }
  2161. }
  2162. },
  2163. "description": "Durably admit synthetic session input and schedule execution unless resume is false.",
  2164. "summary": "Add synthetic message",
  2165. "requestBody": {
  2166. "content": {
  2167. "application/json": {
  2168. "schema": {
  2169. "type": "object",
  2170. "properties": {
  2171. "id": {
  2172. "anyOf": [
  2173. {
  2174. "type": "string",
  2175. "allOf": [
  2176. {
  2177. "pattern": "^msg_"
  2178. }
  2179. ]
  2180. },
  2181. {
  2182. "type": "null"
  2183. }
  2184. ]
  2185. },
  2186. "text": {
  2187. "type": "string"
  2188. },
  2189. "description": {
  2190. "anyOf": [
  2191. {
  2192. "type": "string"
  2193. },
  2194. {
  2195. "type": "null"
  2196. }
  2197. ]
  2198. },
  2199. "metadata": {
  2200. "type": "object"
  2201. },
  2202. "delivery": {
  2203. "anyOf": [
  2204. {
  2205. "type": "string",
  2206. "enum": [
  2207. "steer",
  2208. "queue"
  2209. ]
  2210. },
  2211. {
  2212. "type": "null"
  2213. }
  2214. ]
  2215. },
  2216. "resume": {
  2217. "anyOf": [
  2218. {
  2219. "type": "boolean"
  2220. },
  2221. {
  2222. "type": "null"
  2223. }
  2224. ]
  2225. }
  2226. },
  2227. "required": [
  2228. "text"
  2229. ],
  2230. "additionalProperties": false
  2231. }
  2232. }
  2233. },
  2234. "required": true
  2235. }
  2236. }
  2237. },
  2238. "/api/session/{sessionID}/shell": {
  2239. "post": {
  2240. "tags": [
  2241. "session"
  2242. ],
  2243. "operationId": "v2.session.shell",
  2244. "parameters": [
  2245. {
  2246. "name": "sessionID",
  2247. "in": "path",
  2248. "schema": {
  2249. "type": "string",
  2250. "allOf": [
  2251. {
  2252. "pattern": "^ses"
  2253. }
  2254. ]
  2255. },
  2256. "required": true
  2257. }
  2258. ],
  2259. "security": [],
  2260. "responses": {
  2261. "204": {
  2262. "description": "<No Content>"
  2263. },
  2264. "400": {
  2265. "description": "InvalidRequestError",
  2266. "content": {
  2267. "application/json": {
  2268. "schema": {
  2269. "$ref": "#/components/schemas/InvalidRequestError"
  2270. }
  2271. }
  2272. }
  2273. },
  2274. "401": {
  2275. "description": "UnauthorizedError",
  2276. "content": {
  2277. "application/json": {
  2278. "schema": {
  2279. "$ref": "#/components/schemas/UnauthorizedError"
  2280. }
  2281. }
  2282. }
  2283. },
  2284. "404": {
  2285. "description": "SessionNotFoundError",
  2286. "content": {
  2287. "application/json": {
  2288. "schema": {
  2289. "anyOf": [
  2290. {
  2291. "$ref": "#/components/schemas/SessionNotFoundError"
  2292. },
  2293. {
  2294. "$ref": "#/components/schemas/SessionNotFoundError"
  2295. }
  2296. ]
  2297. }
  2298. }
  2299. }
  2300. }
  2301. },
  2302. "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.",
  2303. "summary": "Run shell command",
  2304. "requestBody": {
  2305. "content": {
  2306. "application/json": {
  2307. "schema": {
  2308. "type": "object",
  2309. "properties": {
  2310. "id": {
  2311. "anyOf": [
  2312. {
  2313. "type": "string",
  2314. "allOf": [
  2315. {
  2316. "pattern": "^evt_"
  2317. }
  2318. ]
  2319. },
  2320. {
  2321. "type": "null"
  2322. }
  2323. ]
  2324. },
  2325. "command": {
  2326. "type": "string"
  2327. }
  2328. },
  2329. "required": [
  2330. "command"
  2331. ],
  2332. "additionalProperties": false
  2333. }
  2334. }
  2335. },
  2336. "required": true
  2337. }
  2338. }
  2339. },
  2340. "/api/session/{sessionID}/compact": {
  2341. "post": {
  2342. "tags": [
  2343. "session"
  2344. ],
  2345. "operationId": "v2.session.compact",
  2346. "parameters": [
  2347. {
  2348. "name": "sessionID",
  2349. "in": "path",
  2350. "schema": {
  2351. "type": "string",
  2352. "allOf": [
  2353. {
  2354. "pattern": "^ses"
  2355. }
  2356. ]
  2357. },
  2358. "required": true
  2359. }
  2360. ],
  2361. "security": [],
  2362. "responses": {
  2363. "200": {
  2364. "description": "Success",
  2365. "content": {
  2366. "application/json": {
  2367. "schema": {
  2368. "type": "object",
  2369. "properties": {
  2370. "data": {
  2371. "$ref": "#/components/schemas/SessionPending.Compaction"
  2372. }
  2373. },
  2374. "required": [
  2375. "data"
  2376. ],
  2377. "additionalProperties": false
  2378. }
  2379. }
  2380. }
  2381. },
  2382. "400": {
  2383. "description": "InvalidRequestError",
  2384. "content": {
  2385. "application/json": {
  2386. "schema": {
  2387. "$ref": "#/components/schemas/InvalidRequestError"
  2388. }
  2389. }
  2390. }
  2391. },
  2392. "401": {
  2393. "description": "UnauthorizedError",
  2394. "content": {
  2395. "application/json": {
  2396. "schema": {
  2397. "$ref": "#/components/schemas/UnauthorizedError"
  2398. }
  2399. }
  2400. }
  2401. },
  2402. "404": {
  2403. "description": "SessionNotFoundError",
  2404. "content": {
  2405. "application/json": {
  2406. "schema": {
  2407. "anyOf": [
  2408. {
  2409. "$ref": "#/components/schemas/SessionNotFoundError"
  2410. },
  2411. {
  2412. "$ref": "#/components/schemas/SessionNotFoundError"
  2413. }
  2414. ]
  2415. }
  2416. }
  2417. }
  2418. },
  2419. "409": {
  2420. "description": "ConflictError",
  2421. "content": {
  2422. "application/json": {
  2423. "schema": {
  2424. "$ref": "#/components/schemas/ConflictError"
  2425. }
  2426. }
  2427. }
  2428. }
  2429. },
  2430. "description": "Queue a durable session compaction request.",
  2431. "summary": "Compact session",
  2432. "requestBody": {
  2433. "content": {
  2434. "application/json": {
  2435. "schema": {
  2436. "type": "object",
  2437. "properties": {
  2438. "id": {
  2439. "anyOf": [
  2440. {
  2441. "type": "string",
  2442. "allOf": [
  2443. {
  2444. "pattern": "^msg_"
  2445. }
  2446. ]
  2447. },
  2448. {
  2449. "type": "null"
  2450. }
  2451. ]
  2452. }
  2453. },
  2454. "additionalProperties": false
  2455. }
  2456. }
  2457. },
  2458. "required": true
  2459. }
  2460. }
  2461. },
  2462. "/api/session/{sessionID}/wait": {
  2463. "post": {
  2464. "tags": [
  2465. "session"
  2466. ],
  2467. "operationId": "v2.session.wait",
  2468. "parameters": [
  2469. {
  2470. "name": "sessionID",
  2471. "in": "path",
  2472. "schema": {
  2473. "type": "string",
  2474. "allOf": [
  2475. {
  2476. "pattern": "^ses"
  2477. }
  2478. ]
  2479. },
  2480. "required": true
  2481. }
  2482. ],
  2483. "security": [],
  2484. "responses": {
  2485. "204": {
  2486. "description": "<No Content>"
  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. "503": {
  2526. "description": "ServiceUnavailableError",
  2527. "content": {
  2528. "application/json": {
  2529. "schema": {
  2530. "$ref": "#/components/schemas/ServiceUnavailableError"
  2531. }
  2532. }
  2533. }
  2534. }
  2535. },
  2536. "description": "Wait for a session agent loop to become idle.",
  2537. "summary": "Wait for session"
  2538. }
  2539. },
  2540. "/api/session/{sessionID}/revert/stage": {
  2541. "post": {
  2542. "tags": [
  2543. "session"
  2544. ],
  2545. "operationId": "v2.session.revert.stage",
  2546. "parameters": [
  2547. {
  2548. "name": "sessionID",
  2549. "in": "path",
  2550. "schema": {
  2551. "type": "string",
  2552. "allOf": [
  2553. {
  2554. "pattern": "^ses"
  2555. }
  2556. ]
  2557. },
  2558. "required": true
  2559. }
  2560. ],
  2561. "security": [],
  2562. "responses": {
  2563. "200": {
  2564. "description": "Success",
  2565. "content": {
  2566. "application/json": {
  2567. "schema": {
  2568. "type": "object",
  2569. "properties": {
  2570. "data": {
  2571. "$ref": "#/components/schemas/Session.Revert"
  2572. }
  2573. },
  2574. "required": [
  2575. "data"
  2576. ],
  2577. "additionalProperties": false
  2578. }
  2579. }
  2580. }
  2581. },
  2582. "400": {
  2583. "description": "InvalidRequestError",
  2584. "content": {
  2585. "application/json": {
  2586. "schema": {
  2587. "$ref": "#/components/schemas/InvalidRequestError"
  2588. }
  2589. }
  2590. }
  2591. },
  2592. "401": {
  2593. "description": "UnauthorizedError",
  2594. "content": {
  2595. "application/json": {
  2596. "schema": {
  2597. "$ref": "#/components/schemas/UnauthorizedError"
  2598. }
  2599. }
  2600. }
  2601. },
  2602. "404": {
  2603. "description": "MessageNotFoundError | SessionNotFoundError",
  2604. "content": {
  2605. "application/json": {
  2606. "schema": {
  2607. "anyOf": [
  2608. {
  2609. "$ref": "#/components/schemas/MessageNotFoundError"
  2610. },
  2611. {
  2612. "$ref": "#/components/schemas/SessionNotFoundError"
  2613. },
  2614. {
  2615. "$ref": "#/components/schemas/SessionNotFoundError"
  2616. }
  2617. ]
  2618. }
  2619. }
  2620. }
  2621. },
  2622. "409": {
  2623. "description": "SessionBusyError",
  2624. "content": {
  2625. "application/json": {
  2626. "schema": {
  2627. "$ref": "#/components/schemas/SessionBusyError"
  2628. }
  2629. }
  2630. }
  2631. },
  2632. "500": {
  2633. "description": "UnknownError",
  2634. "content": {
  2635. "application/json": {
  2636. "schema": {
  2637. "$ref": "#/components/schemas/UnknownError"
  2638. }
  2639. }
  2640. }
  2641. }
  2642. },
  2643. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2644. "summary": "Stage session revert",
  2645. "requestBody": {
  2646. "content": {
  2647. "application/json": {
  2648. "schema": {
  2649. "type": "object",
  2650. "properties": {
  2651. "messageID": {
  2652. "type": "string",
  2653. "allOf": [
  2654. {
  2655. "pattern": "^msg_"
  2656. }
  2657. ]
  2658. },
  2659. "files": {
  2660. "anyOf": [
  2661. {
  2662. "type": "boolean"
  2663. },
  2664. {
  2665. "type": "null"
  2666. }
  2667. ]
  2668. }
  2669. },
  2670. "required": [
  2671. "messageID"
  2672. ],
  2673. "additionalProperties": false
  2674. }
  2675. }
  2676. },
  2677. "required": true
  2678. }
  2679. }
  2680. },
  2681. "/api/session/{sessionID}/revert/clear": {
  2682. "post": {
  2683. "tags": [
  2684. "session"
  2685. ],
  2686. "operationId": "v2.session.revert.clear",
  2687. "parameters": [
  2688. {
  2689. "name": "sessionID",
  2690. "in": "path",
  2691. "schema": {
  2692. "type": "string",
  2693. "allOf": [
  2694. {
  2695. "pattern": "^ses"
  2696. }
  2697. ]
  2698. },
  2699. "required": true
  2700. }
  2701. ],
  2702. "security": [],
  2703. "responses": {
  2704. "204": {
  2705. "description": "<No Content>"
  2706. },
  2707. "400": {
  2708. "description": "InvalidRequestError",
  2709. "content": {
  2710. "application/json": {
  2711. "schema": {
  2712. "$ref": "#/components/schemas/InvalidRequestError"
  2713. }
  2714. }
  2715. }
  2716. },
  2717. "401": {
  2718. "description": "UnauthorizedError",
  2719. "content": {
  2720. "application/json": {
  2721. "schema": {
  2722. "$ref": "#/components/schemas/UnauthorizedError"
  2723. }
  2724. }
  2725. }
  2726. },
  2727. "404": {
  2728. "description": "SessionNotFoundError",
  2729. "content": {
  2730. "application/json": {
  2731. "schema": {
  2732. "anyOf": [
  2733. {
  2734. "$ref": "#/components/schemas/SessionNotFoundError"
  2735. },
  2736. {
  2737. "$ref": "#/components/schemas/SessionNotFoundError"
  2738. }
  2739. ]
  2740. }
  2741. }
  2742. }
  2743. },
  2744. "409": {
  2745. "description": "SessionBusyError",
  2746. "content": {
  2747. "application/json": {
  2748. "schema": {
  2749. "$ref": "#/components/schemas/SessionBusyError"
  2750. }
  2751. }
  2752. }
  2753. },
  2754. "500": {
  2755. "description": "UnknownError",
  2756. "content": {
  2757. "application/json": {
  2758. "schema": {
  2759. "$ref": "#/components/schemas/UnknownError"
  2760. }
  2761. }
  2762. }
  2763. }
  2764. },
  2765. "summary": "Clear staged revert"
  2766. }
  2767. },
  2768. "/api/session/{sessionID}/revert/commit": {
  2769. "post": {
  2770. "tags": [
  2771. "session"
  2772. ],
  2773. "operationId": "v2.session.revert.commit",
  2774. "parameters": [
  2775. {
  2776. "name": "sessionID",
  2777. "in": "path",
  2778. "schema": {
  2779. "type": "string",
  2780. "allOf": [
  2781. {
  2782. "pattern": "^ses"
  2783. }
  2784. ]
  2785. },
  2786. "required": true
  2787. }
  2788. ],
  2789. "security": [],
  2790. "responses": {
  2791. "204": {
  2792. "description": "<No Content>"
  2793. },
  2794. "400": {
  2795. "description": "InvalidRequestError",
  2796. "content": {
  2797. "application/json": {
  2798. "schema": {
  2799. "$ref": "#/components/schemas/InvalidRequestError"
  2800. }
  2801. }
  2802. }
  2803. },
  2804. "401": {
  2805. "description": "UnauthorizedError",
  2806. "content": {
  2807. "application/json": {
  2808. "schema": {
  2809. "$ref": "#/components/schemas/UnauthorizedError"
  2810. }
  2811. }
  2812. }
  2813. },
  2814. "404": {
  2815. "description": "SessionNotFoundError",
  2816. "content": {
  2817. "application/json": {
  2818. "schema": {
  2819. "anyOf": [
  2820. {
  2821. "$ref": "#/components/schemas/SessionNotFoundError"
  2822. },
  2823. {
  2824. "$ref": "#/components/schemas/SessionNotFoundError"
  2825. }
  2826. ]
  2827. }
  2828. }
  2829. }
  2830. },
  2831. "409": {
  2832. "description": "SessionBusyError",
  2833. "content": {
  2834. "application/json": {
  2835. "schema": {
  2836. "$ref": "#/components/schemas/SessionBusyError"
  2837. }
  2838. }
  2839. }
  2840. }
  2841. },
  2842. "summary": "Commit staged revert"
  2843. }
  2844. },
  2845. "/api/session/{sessionID}/context": {
  2846. "get": {
  2847. "tags": [
  2848. "session"
  2849. ],
  2850. "operationId": "v2.session.context",
  2851. "parameters": [
  2852. {
  2853. "name": "sessionID",
  2854. "in": "path",
  2855. "schema": {
  2856. "type": "string",
  2857. "allOf": [
  2858. {
  2859. "pattern": "^ses"
  2860. }
  2861. ]
  2862. },
  2863. "required": true
  2864. }
  2865. ],
  2866. "security": [],
  2867. "responses": {
  2868. "200": {
  2869. "description": "Success",
  2870. "content": {
  2871. "application/json": {
  2872. "schema": {
  2873. "type": "object",
  2874. "properties": {
  2875. "data": {
  2876. "type": "array",
  2877. "items": {
  2878. "$ref": "#/components/schemas/Session.Message.Info"
  2879. }
  2880. }
  2881. },
  2882. "required": [
  2883. "data"
  2884. ],
  2885. "additionalProperties": false
  2886. }
  2887. }
  2888. }
  2889. },
  2890. "400": {
  2891. "description": "InvalidRequestError",
  2892. "content": {
  2893. "application/json": {
  2894. "schema": {
  2895. "$ref": "#/components/schemas/InvalidRequestError"
  2896. }
  2897. }
  2898. }
  2899. },
  2900. "401": {
  2901. "description": "UnauthorizedError",
  2902. "content": {
  2903. "application/json": {
  2904. "schema": {
  2905. "$ref": "#/components/schemas/UnauthorizedError"
  2906. }
  2907. }
  2908. }
  2909. },
  2910. "404": {
  2911. "description": "SessionNotFoundError",
  2912. "content": {
  2913. "application/json": {
  2914. "schema": {
  2915. "anyOf": [
  2916. {
  2917. "$ref": "#/components/schemas/SessionNotFoundError"
  2918. },
  2919. {
  2920. "$ref": "#/components/schemas/SessionNotFoundError"
  2921. }
  2922. ]
  2923. }
  2924. }
  2925. }
  2926. },
  2927. "500": {
  2928. "description": "UnknownError",
  2929. "content": {
  2930. "application/json": {
  2931. "schema": {
  2932. "$ref": "#/components/schemas/UnknownError"
  2933. }
  2934. }
  2935. }
  2936. }
  2937. },
  2938. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2939. "summary": "Get session context"
  2940. }
  2941. },
  2942. "/api/session/{sessionID}/pending": {
  2943. "get": {
  2944. "tags": [
  2945. "session"
  2946. ],
  2947. "operationId": "v2.session.pending.list",
  2948. "parameters": [
  2949. {
  2950. "name": "sessionID",
  2951. "in": "path",
  2952. "schema": {
  2953. "type": "string",
  2954. "allOf": [
  2955. {
  2956. "pattern": "^ses"
  2957. }
  2958. ]
  2959. },
  2960. "required": true
  2961. }
  2962. ],
  2963. "security": [],
  2964. "responses": {
  2965. "200": {
  2966. "description": "Success",
  2967. "content": {
  2968. "application/json": {
  2969. "schema": {
  2970. "type": "object",
  2971. "properties": {
  2972. "data": {
  2973. "type": "array",
  2974. "items": {
  2975. "$ref": "#/components/schemas/SessionPending.Info"
  2976. }
  2977. }
  2978. },
  2979. "required": [
  2980. "data"
  2981. ],
  2982. "additionalProperties": false
  2983. }
  2984. }
  2985. }
  2986. },
  2987. "400": {
  2988. "description": "InvalidRequestError",
  2989. "content": {
  2990. "application/json": {
  2991. "schema": {
  2992. "$ref": "#/components/schemas/InvalidRequestError"
  2993. }
  2994. }
  2995. }
  2996. },
  2997. "401": {
  2998. "description": "UnauthorizedError",
  2999. "content": {
  3000. "application/json": {
  3001. "schema": {
  3002. "$ref": "#/components/schemas/UnauthorizedError"
  3003. }
  3004. }
  3005. }
  3006. },
  3007. "404": {
  3008. "description": "SessionNotFoundError",
  3009. "content": {
  3010. "application/json": {
  3011. "schema": {
  3012. "anyOf": [
  3013. {
  3014. "$ref": "#/components/schemas/SessionNotFoundError"
  3015. },
  3016. {
  3017. "$ref": "#/components/schemas/SessionNotFoundError"
  3018. }
  3019. ]
  3020. }
  3021. }
  3022. }
  3023. }
  3024. },
  3025. "description": "List durable admitted session work not yet visible in projected history, ordered by admission. Includes unpromoted user and synthetic inputs and unhandled compaction barriers. The runner owns consumption; items disappear once promoted or handled.",
  3026. "summary": "List pending session work"
  3027. }
  3028. },
  3029. "/api/session/{sessionID}/instructions/entries": {
  3030. "get": {
  3031. "tags": [
  3032. "session"
  3033. ],
  3034. "operationId": "v2.session.instructions.entry.list",
  3035. "parameters": [
  3036. {
  3037. "name": "sessionID",
  3038. "in": "path",
  3039. "schema": {
  3040. "type": "string",
  3041. "allOf": [
  3042. {
  3043. "pattern": "^ses"
  3044. }
  3045. ]
  3046. },
  3047. "required": true
  3048. }
  3049. ],
  3050. "security": [],
  3051. "responses": {
  3052. "200": {
  3053. "description": "Success",
  3054. "content": {
  3055. "application/json": {
  3056. "schema": {
  3057. "type": "object",
  3058. "properties": {
  3059. "data": {
  3060. "type": "array",
  3061. "items": {
  3062. "$ref": "#/components/schemas/InstructionEntry.Info"
  3063. }
  3064. }
  3065. },
  3066. "required": [
  3067. "data"
  3068. ],
  3069. "additionalProperties": false
  3070. }
  3071. }
  3072. }
  3073. },
  3074. "400": {
  3075. "description": "InvalidRequestError",
  3076. "content": {
  3077. "application/json": {
  3078. "schema": {
  3079. "$ref": "#/components/schemas/InvalidRequestError"
  3080. }
  3081. }
  3082. }
  3083. },
  3084. "401": {
  3085. "description": "UnauthorizedError",
  3086. "content": {
  3087. "application/json": {
  3088. "schema": {
  3089. "$ref": "#/components/schemas/UnauthorizedError"
  3090. }
  3091. }
  3092. }
  3093. },
  3094. "404": {
  3095. "description": "SessionNotFoundError",
  3096. "content": {
  3097. "application/json": {
  3098. "schema": {
  3099. "anyOf": [
  3100. {
  3101. "$ref": "#/components/schemas/SessionNotFoundError"
  3102. },
  3103. {
  3104. "$ref": "#/components/schemas/SessionNotFoundError"
  3105. }
  3106. ]
  3107. }
  3108. }
  3109. }
  3110. }
  3111. },
  3112. "description": "List API-managed instruction entries attached to the session.",
  3113. "summary": "List instruction entries"
  3114. }
  3115. },
  3116. "/api/session/{sessionID}/instructions/entries/{key}": {
  3117. "put": {
  3118. "tags": [
  3119. "session"
  3120. ],
  3121. "operationId": "v2.session.instructions.entry.put",
  3122. "parameters": [
  3123. {
  3124. "name": "sessionID",
  3125. "in": "path",
  3126. "schema": {
  3127. "type": "string",
  3128. "allOf": [
  3129. {
  3130. "pattern": "^ses"
  3131. }
  3132. ]
  3133. },
  3134. "required": true
  3135. },
  3136. {
  3137. "name": "key",
  3138. "in": "path",
  3139. "schema": {
  3140. "$ref": "#/components/schemas/InstructionEntry.Key"
  3141. },
  3142. "required": true
  3143. }
  3144. ],
  3145. "security": [],
  3146. "responses": {
  3147. "204": {
  3148. "description": "<No Content>"
  3149. },
  3150. "400": {
  3151. "description": "InvalidRequestError",
  3152. "content": {
  3153. "application/json": {
  3154. "schema": {
  3155. "$ref": "#/components/schemas/InvalidRequestError"
  3156. }
  3157. }
  3158. }
  3159. },
  3160. "401": {
  3161. "description": "UnauthorizedError",
  3162. "content": {
  3163. "application/json": {
  3164. "schema": {
  3165. "$ref": "#/components/schemas/UnauthorizedError"
  3166. }
  3167. }
  3168. }
  3169. },
  3170. "404": {
  3171. "description": "SessionNotFoundError",
  3172. "content": {
  3173. "application/json": {
  3174. "schema": {
  3175. "anyOf": [
  3176. {
  3177. "$ref": "#/components/schemas/SessionNotFoundError"
  3178. },
  3179. {
  3180. "$ref": "#/components/schemas/SessionNotFoundError"
  3181. }
  3182. ]
  3183. }
  3184. }
  3185. }
  3186. },
  3187. "413": {
  3188. "description": "InstructionEntryValueTooLargeError",
  3189. "content": {
  3190. "application/json": {
  3191. "schema": {
  3192. "$ref": "#/components/schemas/InstructionEntryValueTooLargeError"
  3193. }
  3194. }
  3195. }
  3196. }
  3197. },
  3198. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  3199. "summary": "Put instruction entry",
  3200. "requestBody": {
  3201. "content": {
  3202. "application/json": {
  3203. "schema": {
  3204. "type": "object",
  3205. "properties": {
  3206. "value": {}
  3207. },
  3208. "required": [
  3209. "value"
  3210. ],
  3211. "additionalProperties": false
  3212. }
  3213. }
  3214. },
  3215. "required": true
  3216. }
  3217. },
  3218. "delete": {
  3219. "tags": [
  3220. "session"
  3221. ],
  3222. "operationId": "v2.session.instructions.entry.remove",
  3223. "parameters": [
  3224. {
  3225. "name": "sessionID",
  3226. "in": "path",
  3227. "schema": {
  3228. "type": "string",
  3229. "allOf": [
  3230. {
  3231. "pattern": "^ses"
  3232. }
  3233. ]
  3234. },
  3235. "required": true
  3236. },
  3237. {
  3238. "name": "key",
  3239. "in": "path",
  3240. "schema": {
  3241. "$ref": "#/components/schemas/InstructionEntry.Key"
  3242. },
  3243. "required": true
  3244. }
  3245. ],
  3246. "security": [],
  3247. "responses": {
  3248. "204": {
  3249. "description": "<No Content>"
  3250. },
  3251. "400": {
  3252. "description": "InvalidRequestError",
  3253. "content": {
  3254. "application/json": {
  3255. "schema": {
  3256. "$ref": "#/components/schemas/InvalidRequestError"
  3257. }
  3258. }
  3259. }
  3260. },
  3261. "401": {
  3262. "description": "UnauthorizedError",
  3263. "content": {
  3264. "application/json": {
  3265. "schema": {
  3266. "$ref": "#/components/schemas/UnauthorizedError"
  3267. }
  3268. }
  3269. }
  3270. },
  3271. "404": {
  3272. "description": "SessionNotFoundError",
  3273. "content": {
  3274. "application/json": {
  3275. "schema": {
  3276. "anyOf": [
  3277. {
  3278. "$ref": "#/components/schemas/SessionNotFoundError"
  3279. },
  3280. {
  3281. "$ref": "#/components/schemas/SessionNotFoundError"
  3282. }
  3283. ]
  3284. }
  3285. }
  3286. }
  3287. }
  3288. },
  3289. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  3290. "summary": "Remove instruction entry"
  3291. }
  3292. },
  3293. "/api/session/{sessionID}/generate": {
  3294. "post": {
  3295. "tags": [
  3296. "session"
  3297. ],
  3298. "operationId": "v2.session.generate",
  3299. "parameters": [
  3300. {
  3301. "name": "sessionID",
  3302. "in": "path",
  3303. "schema": {
  3304. "type": "string",
  3305. "allOf": [
  3306. {
  3307. "pattern": "^ses"
  3308. }
  3309. ]
  3310. },
  3311. "required": true
  3312. }
  3313. ],
  3314. "security": [],
  3315. "responses": {
  3316. "200": {
  3317. "description": "SessionGenerateResponse",
  3318. "content": {
  3319. "application/json": {
  3320. "schema": {
  3321. "$ref": "#/components/schemas/SessionGenerateResponse"
  3322. }
  3323. }
  3324. }
  3325. },
  3326. "400": {
  3327. "description": "InvalidRequestError",
  3328. "content": {
  3329. "application/json": {
  3330. "schema": {
  3331. "$ref": "#/components/schemas/InvalidRequestError"
  3332. }
  3333. }
  3334. }
  3335. },
  3336. "401": {
  3337. "description": "UnauthorizedError",
  3338. "content": {
  3339. "application/json": {
  3340. "schema": {
  3341. "$ref": "#/components/schemas/UnauthorizedError"
  3342. }
  3343. }
  3344. }
  3345. },
  3346. "404": {
  3347. "description": "SessionNotFoundError",
  3348. "content": {
  3349. "application/json": {
  3350. "schema": {
  3351. "anyOf": [
  3352. {
  3353. "$ref": "#/components/schemas/SessionNotFoundError"
  3354. },
  3355. {
  3356. "$ref": "#/components/schemas/SessionNotFoundError"
  3357. }
  3358. ]
  3359. }
  3360. }
  3361. }
  3362. },
  3363. "503": {
  3364. "description": "ServiceUnavailableError",
  3365. "content": {
  3366. "application/json": {
  3367. "schema": {
  3368. "$ref": "#/components/schemas/ServiceUnavailableError"
  3369. }
  3370. }
  3371. }
  3372. }
  3373. },
  3374. "description": "Generate transient text from the current session context without mutating session history.",
  3375. "summary": "Generate text from session context",
  3376. "requestBody": {
  3377. "content": {
  3378. "application/json": {
  3379. "schema": {
  3380. "type": "object",
  3381. "properties": {
  3382. "prompt": {
  3383. "type": "string"
  3384. }
  3385. },
  3386. "required": [
  3387. "prompt"
  3388. ],
  3389. "additionalProperties": false
  3390. }
  3391. }
  3392. },
  3393. "required": true
  3394. }
  3395. }
  3396. },
  3397. "/api/experimental/session/{sessionID}/log": {
  3398. "get": {
  3399. "tags": [
  3400. "session"
  3401. ],
  3402. "operationId": "v2.session.log",
  3403. "parameters": [
  3404. {
  3405. "name": "sessionID",
  3406. "in": "path",
  3407. "schema": {
  3408. "type": "string",
  3409. "allOf": [
  3410. {
  3411. "pattern": "^ses"
  3412. }
  3413. ]
  3414. },
  3415. "required": true
  3416. },
  3417. {
  3418. "name": "after",
  3419. "in": "query",
  3420. "schema": {
  3421. "anyOf": [
  3422. {
  3423. "type": "string"
  3424. },
  3425. {
  3426. "type": "null"
  3427. }
  3428. ]
  3429. },
  3430. "required": false
  3431. },
  3432. {
  3433. "name": "follow",
  3434. "in": "query",
  3435. "schema": {
  3436. "anyOf": [
  3437. {
  3438. "type": "string",
  3439. "enum": [
  3440. "true",
  3441. "false"
  3442. ]
  3443. },
  3444. {
  3445. "type": "null"
  3446. }
  3447. ]
  3448. },
  3449. "required": false
  3450. }
  3451. ],
  3452. "security": [],
  3453. "responses": {
  3454. "200": {
  3455. "description": "Success",
  3456. "content": {
  3457. "text/event-stream": {
  3458. "schema": {
  3459. "type": "object",
  3460. "properties": {
  3461. "id": {
  3462. "anyOf": [
  3463. {
  3464. "type": "string"
  3465. },
  3466. {
  3467. "type": "null"
  3468. }
  3469. ]
  3470. },
  3471. "event": {
  3472. "type": "string"
  3473. },
  3474. "data": {
  3475. "$ref": "#/components/schemas/SessionLogItemJsonString"
  3476. }
  3477. },
  3478. "required": [
  3479. "id",
  3480. "event",
  3481. "data"
  3482. ],
  3483. "additionalProperties": false
  3484. },
  3485. "x-effect-stream": {
  3486. "encoding": "sse",
  3487. "causeSchema": {
  3488. "type": "array",
  3489. "items": {
  3490. "anyOf": [
  3491. {
  3492. "type": "object",
  3493. "properties": {
  3494. "_tag": {
  3495. "type": "string",
  3496. "enum": [
  3497. "Fail"
  3498. ]
  3499. },
  3500. "error": {
  3501. "not": {}
  3502. }
  3503. },
  3504. "required": [
  3505. "_tag",
  3506. "error"
  3507. ],
  3508. "additionalProperties": false
  3509. },
  3510. {
  3511. "type": "object",
  3512. "properties": {
  3513. "_tag": {
  3514. "type": "string",
  3515. "enum": [
  3516. "Die"
  3517. ]
  3518. },
  3519. "defect": {}
  3520. },
  3521. "required": [
  3522. "_tag",
  3523. "defect"
  3524. ],
  3525. "additionalProperties": false
  3526. },
  3527. {
  3528. "type": "object",
  3529. "properties": {
  3530. "_tag": {
  3531. "type": "string",
  3532. "enum": [
  3533. "Interrupt"
  3534. ]
  3535. },
  3536. "fiberId": {
  3537. "anyOf": [
  3538. {
  3539. "type": "number"
  3540. },
  3541. {
  3542. "type": "null"
  3543. }
  3544. ]
  3545. }
  3546. },
  3547. "required": [
  3548. "_tag",
  3549. "fiberId"
  3550. ],
  3551. "additionalProperties": false
  3552. }
  3553. ]
  3554. }
  3555. },
  3556. "errorSchema": {
  3557. "not": {}
  3558. },
  3559. "failureEvent": "effect/httpapi/stream/failure"
  3560. }
  3561. }
  3562. }
  3563. },
  3564. "400": {
  3565. "description": "InvalidRequestError",
  3566. "content": {
  3567. "application/json": {
  3568. "schema": {
  3569. "$ref": "#/components/schemas/InvalidRequestError"
  3570. }
  3571. }
  3572. }
  3573. },
  3574. "401": {
  3575. "description": "UnauthorizedError",
  3576. "content": {
  3577. "application/json": {
  3578. "schema": {
  3579. "$ref": "#/components/schemas/UnauthorizedError"
  3580. }
  3581. }
  3582. }
  3583. },
  3584. "404": {
  3585. "description": "SessionNotFoundError",
  3586. "content": {
  3587. "application/json": {
  3588. "schema": {
  3589. "anyOf": [
  3590. {
  3591. "$ref": "#/components/schemas/SessionNotFoundError"
  3592. },
  3593. {
  3594. "$ref": "#/components/schemas/SessionNotFoundError"
  3595. }
  3596. ]
  3597. }
  3598. }
  3599. }
  3600. }
  3601. },
  3602. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3603. "summary": "Read the session log"
  3604. }
  3605. },
  3606. "/api/session/{sessionID}/interrupt": {
  3607. "post": {
  3608. "tags": [
  3609. "session"
  3610. ],
  3611. "operationId": "v2.session.interrupt",
  3612. "parameters": [
  3613. {
  3614. "name": "sessionID",
  3615. "in": "path",
  3616. "schema": {
  3617. "type": "string",
  3618. "allOf": [
  3619. {
  3620. "pattern": "^ses"
  3621. }
  3622. ]
  3623. },
  3624. "required": true
  3625. }
  3626. ],
  3627. "security": [],
  3628. "responses": {
  3629. "204": {
  3630. "description": "<No Content>"
  3631. },
  3632. "400": {
  3633. "description": "InvalidRequestError",
  3634. "content": {
  3635. "application/json": {
  3636. "schema": {
  3637. "$ref": "#/components/schemas/InvalidRequestError"
  3638. }
  3639. }
  3640. }
  3641. },
  3642. "401": {
  3643. "description": "UnauthorizedError",
  3644. "content": {
  3645. "application/json": {
  3646. "schema": {
  3647. "$ref": "#/components/schemas/UnauthorizedError"
  3648. }
  3649. }
  3650. }
  3651. },
  3652. "404": {
  3653. "description": "SessionNotFoundError",
  3654. "content": {
  3655. "application/json": {
  3656. "schema": {
  3657. "anyOf": [
  3658. {
  3659. "$ref": "#/components/schemas/SessionNotFoundError"
  3660. },
  3661. {
  3662. "$ref": "#/components/schemas/SessionNotFoundError"
  3663. }
  3664. ]
  3665. }
  3666. }
  3667. }
  3668. }
  3669. },
  3670. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3671. "summary": "Interrupt session execution"
  3672. }
  3673. },
  3674. "/api/session/{sessionID}/background": {
  3675. "post": {
  3676. "tags": [
  3677. "session"
  3678. ],
  3679. "operationId": "v2.session.background",
  3680. "parameters": [
  3681. {
  3682. "name": "sessionID",
  3683. "in": "path",
  3684. "schema": {
  3685. "type": "string",
  3686. "allOf": [
  3687. {
  3688. "pattern": "^ses"
  3689. }
  3690. ]
  3691. },
  3692. "required": true
  3693. }
  3694. ],
  3695. "security": [],
  3696. "responses": {
  3697. "204": {
  3698. "description": "<No Content>"
  3699. },
  3700. "400": {
  3701. "description": "InvalidRequestError",
  3702. "content": {
  3703. "application/json": {
  3704. "schema": {
  3705. "$ref": "#/components/schemas/InvalidRequestError"
  3706. }
  3707. }
  3708. }
  3709. },
  3710. "401": {
  3711. "description": "UnauthorizedError",
  3712. "content": {
  3713. "application/json": {
  3714. "schema": {
  3715. "$ref": "#/components/schemas/UnauthorizedError"
  3716. }
  3717. }
  3718. }
  3719. },
  3720. "404": {
  3721. "description": "SessionNotFoundError",
  3722. "content": {
  3723. "application/json": {
  3724. "schema": {
  3725. "anyOf": [
  3726. {
  3727. "$ref": "#/components/schemas/SessionNotFoundError"
  3728. },
  3729. {
  3730. "$ref": "#/components/schemas/SessionNotFoundError"
  3731. }
  3732. ]
  3733. }
  3734. }
  3735. }
  3736. }
  3737. },
  3738. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3739. "summary": "Background blocking session tools"
  3740. }
  3741. },
  3742. "/api/session/{sessionID}/message/{messageID}": {
  3743. "get": {
  3744. "tags": [
  3745. "session"
  3746. ],
  3747. "operationId": "v2.session.message",
  3748. "parameters": [
  3749. {
  3750. "name": "sessionID",
  3751. "in": "path",
  3752. "schema": {
  3753. "type": "string",
  3754. "allOf": [
  3755. {
  3756. "pattern": "^ses"
  3757. }
  3758. ]
  3759. },
  3760. "required": true
  3761. },
  3762. {
  3763. "name": "messageID",
  3764. "in": "path",
  3765. "schema": {
  3766. "type": "string",
  3767. "allOf": [
  3768. {
  3769. "pattern": "^msg_"
  3770. }
  3771. ]
  3772. },
  3773. "required": true
  3774. }
  3775. ],
  3776. "security": [],
  3777. "responses": {
  3778. "200": {
  3779. "description": "Success",
  3780. "content": {
  3781. "application/json": {
  3782. "schema": {
  3783. "type": "object",
  3784. "properties": {
  3785. "data": {
  3786. "$ref": "#/components/schemas/Session.Message.Info"
  3787. }
  3788. },
  3789. "required": [
  3790. "data"
  3791. ],
  3792. "additionalProperties": false
  3793. }
  3794. }
  3795. }
  3796. },
  3797. "400": {
  3798. "description": "InvalidRequestError",
  3799. "content": {
  3800. "application/json": {
  3801. "schema": {
  3802. "$ref": "#/components/schemas/InvalidRequestError"
  3803. }
  3804. }
  3805. }
  3806. },
  3807. "401": {
  3808. "description": "UnauthorizedError",
  3809. "content": {
  3810. "application/json": {
  3811. "schema": {
  3812. "$ref": "#/components/schemas/UnauthorizedError"
  3813. }
  3814. }
  3815. }
  3816. },
  3817. "404": {
  3818. "description": "SessionNotFoundError | MessageNotFoundError",
  3819. "content": {
  3820. "application/json": {
  3821. "schema": {
  3822. "anyOf": [
  3823. {
  3824. "$ref": "#/components/schemas/MessageNotFoundError"
  3825. },
  3826. {
  3827. "$ref": "#/components/schemas/SessionNotFoundError"
  3828. },
  3829. {
  3830. "$ref": "#/components/schemas/SessionNotFoundError"
  3831. }
  3832. ]
  3833. }
  3834. }
  3835. }
  3836. }
  3837. },
  3838. "description": "Retrieve one projected message owned by the Session.",
  3839. "summary": "Get session message"
  3840. }
  3841. },
  3842. "/api/session/{sessionID}/message": {
  3843. "get": {
  3844. "tags": [
  3845. "session"
  3846. ],
  3847. "operationId": "v2.message.list",
  3848. "parameters": [
  3849. {
  3850. "name": "sessionID",
  3851. "in": "path",
  3852. "schema": {
  3853. "type": "string",
  3854. "allOf": [
  3855. {
  3856. "pattern": "^ses"
  3857. }
  3858. ]
  3859. },
  3860. "required": true
  3861. },
  3862. {
  3863. "name": "limit",
  3864. "in": "query",
  3865. "schema": {
  3866. "anyOf": [
  3867. {
  3868. "type": "string"
  3869. },
  3870. {
  3871. "type": "null"
  3872. }
  3873. ],
  3874. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3875. },
  3876. "required": false
  3877. },
  3878. {
  3879. "name": "order",
  3880. "in": "query",
  3881. "schema": {
  3882. "anyOf": [
  3883. {
  3884. "type": "string",
  3885. "enum": [
  3886. "asc",
  3887. "desc"
  3888. ]
  3889. },
  3890. {
  3891. "type": "null"
  3892. }
  3893. ],
  3894. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3895. },
  3896. "required": false
  3897. },
  3898. {
  3899. "name": "cursor",
  3900. "in": "query",
  3901. "schema": {
  3902. "anyOf": [
  3903. {
  3904. "type": "string",
  3905. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3906. },
  3907. {
  3908. "type": "null"
  3909. }
  3910. ]
  3911. },
  3912. "required": false
  3913. }
  3914. ],
  3915. "security": [],
  3916. "responses": {
  3917. "200": {
  3918. "description": "SessionMessagesResponse",
  3919. "content": {
  3920. "application/json": {
  3921. "schema": {
  3922. "$ref": "#/components/schemas/SessionMessagesResponse"
  3923. }
  3924. }
  3925. }
  3926. },
  3927. "400": {
  3928. "description": "InvalidCursorError | InvalidRequestError",
  3929. "content": {
  3930. "application/json": {
  3931. "schema": {
  3932. "anyOf": [
  3933. {
  3934. "$ref": "#/components/schemas/InvalidCursorError"
  3935. },
  3936. {
  3937. "$ref": "#/components/schemas/InvalidRequestError"
  3938. }
  3939. ]
  3940. }
  3941. }
  3942. }
  3943. },
  3944. "401": {
  3945. "description": "UnauthorizedError",
  3946. "content": {
  3947. "application/json": {
  3948. "schema": {
  3949. "$ref": "#/components/schemas/UnauthorizedError"
  3950. }
  3951. }
  3952. }
  3953. },
  3954. "404": {
  3955. "description": "SessionNotFoundError",
  3956. "content": {
  3957. "application/json": {
  3958. "schema": {
  3959. "anyOf": [
  3960. {
  3961. "$ref": "#/components/schemas/SessionNotFoundError"
  3962. },
  3963. {
  3964. "$ref": "#/components/schemas/SessionNotFoundError"
  3965. }
  3966. ]
  3967. }
  3968. }
  3969. }
  3970. },
  3971. "500": {
  3972. "description": "UnknownError",
  3973. "content": {
  3974. "application/json": {
  3975. "schema": {
  3976. "$ref": "#/components/schemas/UnknownError"
  3977. }
  3978. }
  3979. }
  3980. }
  3981. },
  3982. "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.",
  3983. "summary": "Get session messages"
  3984. }
  3985. },
  3986. "/api/model": {
  3987. "get": {
  3988. "tags": [
  3989. "model"
  3990. ],
  3991. "operationId": "v2.model.list",
  3992. "parameters": [
  3993. {
  3994. "name": "location",
  3995. "in": "query",
  3996. "schema": {
  3997. "anyOf": [
  3998. {
  3999. "type": "object",
  4000. "properties": {
  4001. "directory": {
  4002. "anyOf": [
  4003. {
  4004. "type": "string"
  4005. },
  4006. {
  4007. "type": "null"
  4008. }
  4009. ]
  4010. },
  4011. "workspace": {
  4012. "anyOf": [
  4013. {
  4014. "type": "string"
  4015. },
  4016. {
  4017. "type": "null"
  4018. }
  4019. ]
  4020. }
  4021. },
  4022. "additionalProperties": false
  4023. },
  4024. {
  4025. "type": "null"
  4026. }
  4027. ]
  4028. },
  4029. "required": false,
  4030. "style": "deepObject",
  4031. "explode": true
  4032. }
  4033. ],
  4034. "security": [],
  4035. "responses": {
  4036. "200": {
  4037. "description": "Success",
  4038. "content": {
  4039. "application/json": {
  4040. "schema": {
  4041. "type": "object",
  4042. "properties": {
  4043. "location": {
  4044. "$ref": "#/components/schemas/Location.Info"
  4045. },
  4046. "data": {
  4047. "type": "array",
  4048. "items": {
  4049. "$ref": "#/components/schemas/Model.Info"
  4050. }
  4051. }
  4052. },
  4053. "required": [
  4054. "location",
  4055. "data"
  4056. ],
  4057. "additionalProperties": false
  4058. }
  4059. }
  4060. }
  4061. },
  4062. "400": {
  4063. "description": "InvalidRequestError",
  4064. "content": {
  4065. "application/json": {
  4066. "schema": {
  4067. "$ref": "#/components/schemas/InvalidRequestError"
  4068. }
  4069. }
  4070. }
  4071. },
  4072. "401": {
  4073. "description": "UnauthorizedError",
  4074. "content": {
  4075. "application/json": {
  4076. "schema": {
  4077. "$ref": "#/components/schemas/UnauthorizedError"
  4078. }
  4079. }
  4080. }
  4081. },
  4082. "503": {
  4083. "description": "ServiceUnavailableError",
  4084. "content": {
  4085. "application/json": {
  4086. "schema": {
  4087. "$ref": "#/components/schemas/ServiceUnavailableError"
  4088. }
  4089. }
  4090. }
  4091. }
  4092. },
  4093. "description": "Retrieve the current snapshot of available models ordered by release date. The snapshot may precede initial plugin settlement.",
  4094. "summary": "List models"
  4095. }
  4096. },
  4097. "/api/model/default": {
  4098. "get": {
  4099. "tags": [
  4100. "model"
  4101. ],
  4102. "operationId": "v2.model.default",
  4103. "parameters": [
  4104. {
  4105. "name": "location",
  4106. "in": "query",
  4107. "schema": {
  4108. "anyOf": [
  4109. {
  4110. "type": "object",
  4111. "properties": {
  4112. "directory": {
  4113. "anyOf": [
  4114. {
  4115. "type": "string"
  4116. },
  4117. {
  4118. "type": "null"
  4119. }
  4120. ]
  4121. },
  4122. "workspace": {
  4123. "anyOf": [
  4124. {
  4125. "type": "string"
  4126. },
  4127. {
  4128. "type": "null"
  4129. }
  4130. ]
  4131. }
  4132. },
  4133. "additionalProperties": false
  4134. },
  4135. {
  4136. "type": "null"
  4137. }
  4138. ]
  4139. },
  4140. "required": false,
  4141. "style": "deepObject",
  4142. "explode": true
  4143. }
  4144. ],
  4145. "security": [],
  4146. "responses": {
  4147. "200": {
  4148. "description": "Success",
  4149. "content": {
  4150. "application/json": {
  4151. "schema": {
  4152. "type": "object",
  4153. "properties": {
  4154. "location": {
  4155. "$ref": "#/components/schemas/Location.Info"
  4156. },
  4157. "data": {
  4158. "anyOf": [
  4159. {
  4160. "$ref": "#/components/schemas/Model.Info"
  4161. },
  4162. {
  4163. "type": "null"
  4164. }
  4165. ]
  4166. }
  4167. },
  4168. "required": [
  4169. "location",
  4170. "data"
  4171. ],
  4172. "additionalProperties": false
  4173. }
  4174. }
  4175. }
  4176. },
  4177. "400": {
  4178. "description": "InvalidRequestError",
  4179. "content": {
  4180. "application/json": {
  4181. "schema": {
  4182. "$ref": "#/components/schemas/InvalidRequestError"
  4183. }
  4184. }
  4185. }
  4186. },
  4187. "401": {
  4188. "description": "UnauthorizedError",
  4189. "content": {
  4190. "application/json": {
  4191. "schema": {
  4192. "$ref": "#/components/schemas/UnauthorizedError"
  4193. }
  4194. }
  4195. }
  4196. },
  4197. "503": {
  4198. "description": "ServiceUnavailableError",
  4199. "content": {
  4200. "application/json": {
  4201. "schema": {
  4202. "$ref": "#/components/schemas/ServiceUnavailableError"
  4203. }
  4204. }
  4205. }
  4206. }
  4207. },
  4208. "description": "Retrieve the model used when a session has no explicit model selection.",
  4209. "summary": "Get default model"
  4210. }
  4211. },
  4212. "/api/generate": {
  4213. "post": {
  4214. "tags": [
  4215. "generate"
  4216. ],
  4217. "operationId": "v2.generate.text",
  4218. "parameters": [
  4219. {
  4220. "name": "location",
  4221. "in": "query",
  4222. "schema": {
  4223. "anyOf": [
  4224. {
  4225. "type": "object",
  4226. "properties": {
  4227. "directory": {
  4228. "anyOf": [
  4229. {
  4230. "type": "string"
  4231. },
  4232. {
  4233. "type": "null"
  4234. }
  4235. ]
  4236. },
  4237. "workspace": {
  4238. "anyOf": [
  4239. {
  4240. "type": "string"
  4241. },
  4242. {
  4243. "type": "null"
  4244. }
  4245. ]
  4246. }
  4247. },
  4248. "additionalProperties": false
  4249. },
  4250. {
  4251. "type": "null"
  4252. }
  4253. ]
  4254. },
  4255. "required": false,
  4256. "style": "deepObject",
  4257. "explode": true
  4258. }
  4259. ],
  4260. "security": [],
  4261. "responses": {
  4262. "200": {
  4263. "description": "GenerateTextResponse",
  4264. "content": {
  4265. "application/json": {
  4266. "schema": {
  4267. "$ref": "#/components/schemas/GenerateTextResponse"
  4268. }
  4269. }
  4270. }
  4271. },
  4272. "400": {
  4273. "description": "InvalidRequestError",
  4274. "content": {
  4275. "application/json": {
  4276. "schema": {
  4277. "anyOf": [
  4278. {
  4279. "$ref": "#/components/schemas/InvalidRequestError1"
  4280. },
  4281. {
  4282. "$ref": "#/components/schemas/InvalidRequestError"
  4283. }
  4284. ]
  4285. }
  4286. }
  4287. }
  4288. },
  4289. "401": {
  4290. "description": "UnauthorizedError",
  4291. "content": {
  4292. "application/json": {
  4293. "schema": {
  4294. "$ref": "#/components/schemas/UnauthorizedError"
  4295. }
  4296. }
  4297. }
  4298. },
  4299. "503": {
  4300. "description": "ServiceUnavailableError",
  4301. "content": {
  4302. "application/json": {
  4303. "schema": {
  4304. "$ref": "#/components/schemas/ServiceUnavailableError"
  4305. }
  4306. }
  4307. }
  4308. }
  4309. },
  4310. "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.",
  4311. "summary": "Generate text",
  4312. "requestBody": {
  4313. "content": {
  4314. "application/json": {
  4315. "schema": {
  4316. "type": "object",
  4317. "properties": {
  4318. "prompt": {
  4319. "type": "string"
  4320. },
  4321. "model": {
  4322. "anyOf": [
  4323. {
  4324. "$ref": "#/components/schemas/Model.Ref"
  4325. },
  4326. {
  4327. "type": "null"
  4328. }
  4329. ]
  4330. }
  4331. },
  4332. "required": [
  4333. "prompt"
  4334. ],
  4335. "additionalProperties": false
  4336. }
  4337. }
  4338. },
  4339. "required": true
  4340. }
  4341. }
  4342. },
  4343. "/api/provider": {
  4344. "get": {
  4345. "tags": [
  4346. "provider"
  4347. ],
  4348. "operationId": "v2.provider.list",
  4349. "parameters": [
  4350. {
  4351. "name": "location",
  4352. "in": "query",
  4353. "schema": {
  4354. "anyOf": [
  4355. {
  4356. "type": "object",
  4357. "properties": {
  4358. "directory": {
  4359. "anyOf": [
  4360. {
  4361. "type": "string"
  4362. },
  4363. {
  4364. "type": "null"
  4365. }
  4366. ]
  4367. },
  4368. "workspace": {
  4369. "anyOf": [
  4370. {
  4371. "type": "string"
  4372. },
  4373. {
  4374. "type": "null"
  4375. }
  4376. ]
  4377. }
  4378. },
  4379. "additionalProperties": false
  4380. },
  4381. {
  4382. "type": "null"
  4383. }
  4384. ]
  4385. },
  4386. "required": false,
  4387. "style": "deepObject",
  4388. "explode": true
  4389. }
  4390. ],
  4391. "security": [],
  4392. "responses": {
  4393. "200": {
  4394. "description": "Success",
  4395. "content": {
  4396. "application/json": {
  4397. "schema": {
  4398. "type": "object",
  4399. "properties": {
  4400. "location": {
  4401. "$ref": "#/components/schemas/Location.Info"
  4402. },
  4403. "data": {
  4404. "type": "array",
  4405. "items": {
  4406. "$ref": "#/components/schemas/Provider.Info"
  4407. }
  4408. }
  4409. },
  4410. "required": [
  4411. "location",
  4412. "data"
  4413. ],
  4414. "additionalProperties": false
  4415. }
  4416. }
  4417. }
  4418. },
  4419. "400": {
  4420. "description": "InvalidRequestError",
  4421. "content": {
  4422. "application/json": {
  4423. "schema": {
  4424. "$ref": "#/components/schemas/InvalidRequestError"
  4425. }
  4426. }
  4427. }
  4428. },
  4429. "401": {
  4430. "description": "UnauthorizedError",
  4431. "content": {
  4432. "application/json": {
  4433. "schema": {
  4434. "$ref": "#/components/schemas/UnauthorizedError"
  4435. }
  4436. }
  4437. }
  4438. },
  4439. "503": {
  4440. "description": "ServiceUnavailableError",
  4441. "content": {
  4442. "application/json": {
  4443. "schema": {
  4444. "$ref": "#/components/schemas/ServiceUnavailableError"
  4445. }
  4446. }
  4447. }
  4448. }
  4449. },
  4450. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4451. "summary": "List providers"
  4452. }
  4453. },
  4454. "/api/provider/{providerID}": {
  4455. "get": {
  4456. "tags": [
  4457. "provider"
  4458. ],
  4459. "operationId": "v2.provider.get",
  4460. "parameters": [
  4461. {
  4462. "name": "providerID",
  4463. "in": "path",
  4464. "schema": {
  4465. "type": "string"
  4466. },
  4467. "required": true
  4468. },
  4469. {
  4470. "name": "location",
  4471. "in": "query",
  4472. "schema": {
  4473. "anyOf": [
  4474. {
  4475. "type": "object",
  4476. "properties": {
  4477. "directory": {
  4478. "anyOf": [
  4479. {
  4480. "type": "string"
  4481. },
  4482. {
  4483. "type": "null"
  4484. }
  4485. ]
  4486. },
  4487. "workspace": {
  4488. "anyOf": [
  4489. {
  4490. "type": "string"
  4491. },
  4492. {
  4493. "type": "null"
  4494. }
  4495. ]
  4496. }
  4497. },
  4498. "additionalProperties": false
  4499. },
  4500. {
  4501. "type": "null"
  4502. }
  4503. ]
  4504. },
  4505. "required": false,
  4506. "style": "deepObject",
  4507. "explode": true
  4508. }
  4509. ],
  4510. "security": [],
  4511. "responses": {
  4512. "200": {
  4513. "description": "Success",
  4514. "content": {
  4515. "application/json": {
  4516. "schema": {
  4517. "type": "object",
  4518. "properties": {
  4519. "location": {
  4520. "$ref": "#/components/schemas/Location.Info"
  4521. },
  4522. "data": {
  4523. "$ref": "#/components/schemas/Provider.Info"
  4524. }
  4525. },
  4526. "required": [
  4527. "location",
  4528. "data"
  4529. ],
  4530. "additionalProperties": false
  4531. }
  4532. }
  4533. }
  4534. },
  4535. "400": {
  4536. "description": "InvalidRequestError",
  4537. "content": {
  4538. "application/json": {
  4539. "schema": {
  4540. "$ref": "#/components/schemas/InvalidRequestError"
  4541. }
  4542. }
  4543. }
  4544. },
  4545. "401": {
  4546. "description": "UnauthorizedError",
  4547. "content": {
  4548. "application/json": {
  4549. "schema": {
  4550. "$ref": "#/components/schemas/UnauthorizedError"
  4551. }
  4552. }
  4553. }
  4554. },
  4555. "404": {
  4556. "description": "ProviderNotFoundError",
  4557. "content": {
  4558. "application/json": {
  4559. "schema": {
  4560. "$ref": "#/components/schemas/ProviderNotFoundError"
  4561. }
  4562. }
  4563. }
  4564. },
  4565. "503": {
  4566. "description": "ServiceUnavailableError",
  4567. "content": {
  4568. "application/json": {
  4569. "schema": {
  4570. "$ref": "#/components/schemas/ServiceUnavailableError"
  4571. }
  4572. }
  4573. }
  4574. }
  4575. },
  4576. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4577. "summary": "Get provider"
  4578. }
  4579. },
  4580. "/api/integration": {
  4581. "get": {
  4582. "tags": [
  4583. "integration"
  4584. ],
  4585. "operationId": "v2.integration.list",
  4586. "parameters": [
  4587. {
  4588. "name": "location",
  4589. "in": "query",
  4590. "schema": {
  4591. "anyOf": [
  4592. {
  4593. "type": "object",
  4594. "properties": {
  4595. "directory": {
  4596. "anyOf": [
  4597. {
  4598. "type": "string"
  4599. },
  4600. {
  4601. "type": "null"
  4602. }
  4603. ]
  4604. },
  4605. "workspace": {
  4606. "anyOf": [
  4607. {
  4608. "type": "string"
  4609. },
  4610. {
  4611. "type": "null"
  4612. }
  4613. ]
  4614. }
  4615. },
  4616. "additionalProperties": false
  4617. },
  4618. {
  4619. "type": "null"
  4620. }
  4621. ]
  4622. },
  4623. "required": false,
  4624. "style": "deepObject",
  4625. "explode": true
  4626. }
  4627. ],
  4628. "security": [],
  4629. "responses": {
  4630. "200": {
  4631. "description": "Success",
  4632. "content": {
  4633. "application/json": {
  4634. "schema": {
  4635. "type": "object",
  4636. "properties": {
  4637. "location": {
  4638. "$ref": "#/components/schemas/Location.Info"
  4639. },
  4640. "data": {
  4641. "type": "array",
  4642. "items": {
  4643. "$ref": "#/components/schemas/Integration.Info"
  4644. }
  4645. }
  4646. },
  4647. "required": [
  4648. "location",
  4649. "data"
  4650. ],
  4651. "additionalProperties": false
  4652. }
  4653. }
  4654. }
  4655. },
  4656. "400": {
  4657. "description": "InvalidRequestError",
  4658. "content": {
  4659. "application/json": {
  4660. "schema": {
  4661. "$ref": "#/components/schemas/InvalidRequestError"
  4662. }
  4663. }
  4664. }
  4665. },
  4666. "401": {
  4667. "description": "UnauthorizedError",
  4668. "content": {
  4669. "application/json": {
  4670. "schema": {
  4671. "$ref": "#/components/schemas/UnauthorizedError"
  4672. }
  4673. }
  4674. }
  4675. }
  4676. },
  4677. "description": "Retrieve available integrations and their authentication methods.",
  4678. "summary": "List integrations"
  4679. }
  4680. },
  4681. "/api/integration/{integrationID}": {
  4682. "get": {
  4683. "tags": [
  4684. "integration"
  4685. ],
  4686. "operationId": "v2.integration.get",
  4687. "parameters": [
  4688. {
  4689. "name": "integrationID",
  4690. "in": "path",
  4691. "schema": {
  4692. "type": "string"
  4693. },
  4694. "required": true
  4695. },
  4696. {
  4697. "name": "location",
  4698. "in": "query",
  4699. "schema": {
  4700. "anyOf": [
  4701. {
  4702. "type": "object",
  4703. "properties": {
  4704. "directory": {
  4705. "anyOf": [
  4706. {
  4707. "type": "string"
  4708. },
  4709. {
  4710. "type": "null"
  4711. }
  4712. ]
  4713. },
  4714. "workspace": {
  4715. "anyOf": [
  4716. {
  4717. "type": "string"
  4718. },
  4719. {
  4720. "type": "null"
  4721. }
  4722. ]
  4723. }
  4724. },
  4725. "additionalProperties": false
  4726. },
  4727. {
  4728. "type": "null"
  4729. }
  4730. ]
  4731. },
  4732. "required": false,
  4733. "style": "deepObject",
  4734. "explode": true
  4735. }
  4736. ],
  4737. "security": [],
  4738. "responses": {
  4739. "200": {
  4740. "description": "Success",
  4741. "content": {
  4742. "application/json": {
  4743. "schema": {
  4744. "type": "object",
  4745. "properties": {
  4746. "location": {
  4747. "$ref": "#/components/schemas/Location.Info"
  4748. },
  4749. "data": {
  4750. "anyOf": [
  4751. {
  4752. "$ref": "#/components/schemas/Integration.Info"
  4753. },
  4754. {
  4755. "type": "null"
  4756. }
  4757. ]
  4758. }
  4759. },
  4760. "required": [
  4761. "location",
  4762. "data"
  4763. ],
  4764. "additionalProperties": false
  4765. }
  4766. }
  4767. }
  4768. },
  4769. "400": {
  4770. "description": "InvalidRequestError",
  4771. "content": {
  4772. "application/json": {
  4773. "schema": {
  4774. "$ref": "#/components/schemas/InvalidRequestError"
  4775. }
  4776. }
  4777. }
  4778. },
  4779. "401": {
  4780. "description": "UnauthorizedError",
  4781. "content": {
  4782. "application/json": {
  4783. "schema": {
  4784. "$ref": "#/components/schemas/UnauthorizedError"
  4785. }
  4786. }
  4787. }
  4788. }
  4789. },
  4790. "description": "Retrieve one integration and its authentication methods.",
  4791. "summary": "Get integration"
  4792. }
  4793. },
  4794. "/api/experimental/integration/wellknown": {
  4795. "post": {
  4796. "tags": [
  4797. "integration"
  4798. ],
  4799. "operationId": "v2.experimental.integration.wellknown.add",
  4800. "parameters": [
  4801. {
  4802. "name": "location",
  4803. "in": "query",
  4804. "schema": {
  4805. "anyOf": [
  4806. {
  4807. "type": "object",
  4808. "properties": {
  4809. "directory": {
  4810. "anyOf": [
  4811. {
  4812. "type": "string"
  4813. },
  4814. {
  4815. "type": "null"
  4816. }
  4817. ]
  4818. },
  4819. "workspace": {
  4820. "anyOf": [
  4821. {
  4822. "type": "string"
  4823. },
  4824. {
  4825. "type": "null"
  4826. }
  4827. ]
  4828. }
  4829. },
  4830. "additionalProperties": false
  4831. },
  4832. {
  4833. "type": "null"
  4834. }
  4835. ]
  4836. },
  4837. "required": false,
  4838. "style": "deepObject",
  4839. "explode": true
  4840. }
  4841. ],
  4842. "security": [],
  4843. "responses": {
  4844. "204": {
  4845. "description": "<No Content>"
  4846. },
  4847. "400": {
  4848. "description": "InvalidRequestError",
  4849. "content": {
  4850. "application/json": {
  4851. "schema": {
  4852. "anyOf": [
  4853. {
  4854. "$ref": "#/components/schemas/InvalidRequestError1"
  4855. },
  4856. {
  4857. "$ref": "#/components/schemas/InvalidRequestError"
  4858. }
  4859. ]
  4860. }
  4861. }
  4862. }
  4863. },
  4864. "401": {
  4865. "description": "UnauthorizedError",
  4866. "content": {
  4867. "application/json": {
  4868. "schema": {
  4869. "$ref": "#/components/schemas/UnauthorizedError"
  4870. }
  4871. }
  4872. }
  4873. }
  4874. },
  4875. "description": "Discover and persist an experimental wellknown integration source.",
  4876. "summary": "Add wellknown integration",
  4877. "requestBody": {
  4878. "content": {
  4879. "application/json": {
  4880. "schema": {
  4881. "type": "object",
  4882. "properties": {
  4883. "url": {
  4884. "type": "string"
  4885. }
  4886. },
  4887. "required": [
  4888. "url"
  4889. ],
  4890. "additionalProperties": false
  4891. }
  4892. }
  4893. },
  4894. "required": true
  4895. }
  4896. }
  4897. },
  4898. "/api/integration/{integrationID}/connect/key": {
  4899. "post": {
  4900. "tags": [
  4901. "integration"
  4902. ],
  4903. "operationId": "v2.integration.connect.key",
  4904. "parameters": [
  4905. {
  4906. "name": "integrationID",
  4907. "in": "path",
  4908. "schema": {
  4909. "type": "string"
  4910. },
  4911. "required": true
  4912. },
  4913. {
  4914. "name": "location",
  4915. "in": "query",
  4916. "schema": {
  4917. "anyOf": [
  4918. {
  4919. "type": "object",
  4920. "properties": {
  4921. "directory": {
  4922. "anyOf": [
  4923. {
  4924. "type": "string"
  4925. },
  4926. {
  4927. "type": "null"
  4928. }
  4929. ]
  4930. },
  4931. "workspace": {
  4932. "anyOf": [
  4933. {
  4934. "type": "string"
  4935. },
  4936. {
  4937. "type": "null"
  4938. }
  4939. ]
  4940. }
  4941. },
  4942. "additionalProperties": false
  4943. },
  4944. {
  4945. "type": "null"
  4946. }
  4947. ]
  4948. },
  4949. "required": false,
  4950. "style": "deepObject",
  4951. "explode": true
  4952. }
  4953. ],
  4954. "security": [],
  4955. "responses": {
  4956. "204": {
  4957. "description": "<No Content>"
  4958. },
  4959. "400": {
  4960. "description": "InvalidRequestError",
  4961. "content": {
  4962. "application/json": {
  4963. "schema": {
  4964. "anyOf": [
  4965. {
  4966. "$ref": "#/components/schemas/InvalidRequestError1"
  4967. },
  4968. {
  4969. "$ref": "#/components/schemas/InvalidRequestError"
  4970. }
  4971. ]
  4972. }
  4973. }
  4974. }
  4975. },
  4976. "401": {
  4977. "description": "UnauthorizedError",
  4978. "content": {
  4979. "application/json": {
  4980. "schema": {
  4981. "$ref": "#/components/schemas/UnauthorizedError"
  4982. }
  4983. }
  4984. }
  4985. }
  4986. },
  4987. "description": "Run a key authentication method and store the resulting credential.",
  4988. "summary": "Connect with key",
  4989. "requestBody": {
  4990. "content": {
  4991. "application/json": {
  4992. "schema": {
  4993. "type": "object",
  4994. "properties": {
  4995. "key": {
  4996. "type": "string"
  4997. },
  4998. "label": {
  4999. "anyOf": [
  5000. {
  5001. "type": "string"
  5002. },
  5003. {
  5004. "type": "null"
  5005. }
  5006. ]
  5007. }
  5008. },
  5009. "required": [
  5010. "key"
  5011. ],
  5012. "additionalProperties": false
  5013. }
  5014. }
  5015. },
  5016. "required": true
  5017. }
  5018. }
  5019. },
  5020. "/api/integration/{integrationID}/connect/oauth": {
  5021. "post": {
  5022. "tags": [
  5023. "integration"
  5024. ],
  5025. "operationId": "v2.integration.oauth.connect",
  5026. "parameters": [
  5027. {
  5028. "name": "integrationID",
  5029. "in": "path",
  5030. "schema": {
  5031. "type": "string"
  5032. },
  5033. "required": true
  5034. },
  5035. {
  5036. "name": "location",
  5037. "in": "query",
  5038. "schema": {
  5039. "anyOf": [
  5040. {
  5041. "type": "object",
  5042. "properties": {
  5043. "directory": {
  5044. "anyOf": [
  5045. {
  5046. "type": "string"
  5047. },
  5048. {
  5049. "type": "null"
  5050. }
  5051. ]
  5052. },
  5053. "workspace": {
  5054. "anyOf": [
  5055. {
  5056. "type": "string"
  5057. },
  5058. {
  5059. "type": "null"
  5060. }
  5061. ]
  5062. }
  5063. },
  5064. "additionalProperties": false
  5065. },
  5066. {
  5067. "type": "null"
  5068. }
  5069. ]
  5070. },
  5071. "required": false,
  5072. "style": "deepObject",
  5073. "explode": true
  5074. }
  5075. ],
  5076. "security": [],
  5077. "responses": {
  5078. "200": {
  5079. "description": "Success",
  5080. "content": {
  5081. "application/json": {
  5082. "schema": {
  5083. "type": "object",
  5084. "properties": {
  5085. "location": {
  5086. "$ref": "#/components/schemas/Location.Info"
  5087. },
  5088. "data": {
  5089. "$ref": "#/components/schemas/Integration.Attempt"
  5090. }
  5091. },
  5092. "required": [
  5093. "location",
  5094. "data"
  5095. ],
  5096. "additionalProperties": false
  5097. }
  5098. }
  5099. }
  5100. },
  5101. "400": {
  5102. "description": "InvalidRequestError",
  5103. "content": {
  5104. "application/json": {
  5105. "schema": {
  5106. "anyOf": [
  5107. {
  5108. "$ref": "#/components/schemas/InvalidRequestError1"
  5109. },
  5110. {
  5111. "$ref": "#/components/schemas/InvalidRequestError"
  5112. }
  5113. ]
  5114. }
  5115. }
  5116. }
  5117. },
  5118. "401": {
  5119. "description": "UnauthorizedError",
  5120. "content": {
  5121. "application/json": {
  5122. "schema": {
  5123. "$ref": "#/components/schemas/UnauthorizedError"
  5124. }
  5125. }
  5126. }
  5127. }
  5128. },
  5129. "description": "Start an OAuth attempt and return the authorization details.",
  5130. "summary": "Begin OAuth connection",
  5131. "requestBody": {
  5132. "content": {
  5133. "application/json": {
  5134. "schema": {
  5135. "type": "object",
  5136. "properties": {
  5137. "methodID": {
  5138. "type": "string"
  5139. },
  5140. "inputs": {
  5141. "type": "object",
  5142. "additionalProperties": {
  5143. "type": "string"
  5144. }
  5145. },
  5146. "label": {
  5147. "anyOf": [
  5148. {
  5149. "type": "string"
  5150. },
  5151. {
  5152. "type": "null"
  5153. }
  5154. ]
  5155. }
  5156. },
  5157. "required": [
  5158. "methodID",
  5159. "inputs"
  5160. ],
  5161. "additionalProperties": false
  5162. }
  5163. }
  5164. },
  5165. "required": true
  5166. }
  5167. }
  5168. },
  5169. "/api/integration/{integrationID}/connect/oauth/{attemptID}": {
  5170. "get": {
  5171. "tags": [
  5172. "integration"
  5173. ],
  5174. "operationId": "v2.integration.oauth.status",
  5175. "parameters": [
  5176. {
  5177. "name": "integrationID",
  5178. "in": "path",
  5179. "schema": {
  5180. "type": "string"
  5181. },
  5182. "required": true
  5183. },
  5184. {
  5185. "name": "attemptID",
  5186. "in": "path",
  5187. "schema": {
  5188. "type": "string"
  5189. },
  5190. "required": true
  5191. },
  5192. {
  5193. "name": "location",
  5194. "in": "query",
  5195. "schema": {
  5196. "anyOf": [
  5197. {
  5198. "type": "object",
  5199. "properties": {
  5200. "directory": {
  5201. "anyOf": [
  5202. {
  5203. "type": "string"
  5204. },
  5205. {
  5206. "type": "null"
  5207. }
  5208. ]
  5209. },
  5210. "workspace": {
  5211. "anyOf": [
  5212. {
  5213. "type": "string"
  5214. },
  5215. {
  5216. "type": "null"
  5217. }
  5218. ]
  5219. }
  5220. },
  5221. "additionalProperties": false
  5222. },
  5223. {
  5224. "type": "null"
  5225. }
  5226. ]
  5227. },
  5228. "required": false,
  5229. "style": "deepObject",
  5230. "explode": true
  5231. }
  5232. ],
  5233. "security": [],
  5234. "responses": {
  5235. "200": {
  5236. "description": "Success",
  5237. "content": {
  5238. "application/json": {
  5239. "schema": {
  5240. "type": "object",
  5241. "properties": {
  5242. "location": {
  5243. "$ref": "#/components/schemas/Location.Info"
  5244. },
  5245. "data": {
  5246. "$ref": "#/components/schemas/Integration.AttemptStatus"
  5247. }
  5248. },
  5249. "required": [
  5250. "location",
  5251. "data"
  5252. ],
  5253. "additionalProperties": false
  5254. }
  5255. }
  5256. }
  5257. },
  5258. "400": {
  5259. "description": "InvalidRequestError",
  5260. "content": {
  5261. "application/json": {
  5262. "schema": {
  5263. "$ref": "#/components/schemas/InvalidRequestError"
  5264. }
  5265. }
  5266. }
  5267. },
  5268. "401": {
  5269. "description": "UnauthorizedError",
  5270. "content": {
  5271. "application/json": {
  5272. "schema": {
  5273. "$ref": "#/components/schemas/UnauthorizedError"
  5274. }
  5275. }
  5276. }
  5277. }
  5278. },
  5279. "description": "Poll the current status of an OAuth attempt.",
  5280. "summary": "Get OAuth attempt status"
  5281. },
  5282. "delete": {
  5283. "tags": [
  5284. "integration"
  5285. ],
  5286. "operationId": "v2.integration.oauth.cancel",
  5287. "parameters": [
  5288. {
  5289. "name": "integrationID",
  5290. "in": "path",
  5291. "schema": {
  5292. "type": "string"
  5293. },
  5294. "required": true
  5295. },
  5296. {
  5297. "name": "attemptID",
  5298. "in": "path",
  5299. "schema": {
  5300. "type": "string"
  5301. },
  5302. "required": true
  5303. },
  5304. {
  5305. "name": "location",
  5306. "in": "query",
  5307. "schema": {
  5308. "anyOf": [
  5309. {
  5310. "type": "object",
  5311. "properties": {
  5312. "directory": {
  5313. "anyOf": [
  5314. {
  5315. "type": "string"
  5316. },
  5317. {
  5318. "type": "null"
  5319. }
  5320. ]
  5321. },
  5322. "workspace": {
  5323. "anyOf": [
  5324. {
  5325. "type": "string"
  5326. },
  5327. {
  5328. "type": "null"
  5329. }
  5330. ]
  5331. }
  5332. },
  5333. "additionalProperties": false
  5334. },
  5335. {
  5336. "type": "null"
  5337. }
  5338. ]
  5339. },
  5340. "required": false,
  5341. "style": "deepObject",
  5342. "explode": true
  5343. }
  5344. ],
  5345. "security": [],
  5346. "responses": {
  5347. "204": {
  5348. "description": "<No Content>"
  5349. },
  5350. "400": {
  5351. "description": "InvalidRequestError",
  5352. "content": {
  5353. "application/json": {
  5354. "schema": {
  5355. "$ref": "#/components/schemas/InvalidRequestError"
  5356. }
  5357. }
  5358. }
  5359. },
  5360. "401": {
  5361. "description": "UnauthorizedError",
  5362. "content": {
  5363. "application/json": {
  5364. "schema": {
  5365. "$ref": "#/components/schemas/UnauthorizedError"
  5366. }
  5367. }
  5368. }
  5369. }
  5370. },
  5371. "description": "Cancel an OAuth attempt and release its resources.",
  5372. "summary": "Cancel OAuth connection"
  5373. }
  5374. },
  5375. "/api/integration/{integrationID}/connect/oauth/{attemptID}/complete": {
  5376. "post": {
  5377. "tags": [
  5378. "integration"
  5379. ],
  5380. "operationId": "v2.integration.oauth.complete",
  5381. "parameters": [
  5382. {
  5383. "name": "integrationID",
  5384. "in": "path",
  5385. "schema": {
  5386. "type": "string"
  5387. },
  5388. "required": true
  5389. },
  5390. {
  5391. "name": "attemptID",
  5392. "in": "path",
  5393. "schema": {
  5394. "type": "string"
  5395. },
  5396. "required": true
  5397. },
  5398. {
  5399. "name": "location",
  5400. "in": "query",
  5401. "schema": {
  5402. "anyOf": [
  5403. {
  5404. "type": "object",
  5405. "properties": {
  5406. "directory": {
  5407. "anyOf": [
  5408. {
  5409. "type": "string"
  5410. },
  5411. {
  5412. "type": "null"
  5413. }
  5414. ]
  5415. },
  5416. "workspace": {
  5417. "anyOf": [
  5418. {
  5419. "type": "string"
  5420. },
  5421. {
  5422. "type": "null"
  5423. }
  5424. ]
  5425. }
  5426. },
  5427. "additionalProperties": false
  5428. },
  5429. {
  5430. "type": "null"
  5431. }
  5432. ]
  5433. },
  5434. "required": false,
  5435. "style": "deepObject",
  5436. "explode": true
  5437. }
  5438. ],
  5439. "security": [],
  5440. "responses": {
  5441. "204": {
  5442. "description": "<No Content>"
  5443. },
  5444. "400": {
  5445. "description": "InvalidRequestError",
  5446. "content": {
  5447. "application/json": {
  5448. "schema": {
  5449. "anyOf": [
  5450. {
  5451. "$ref": "#/components/schemas/InvalidRequestError1"
  5452. },
  5453. {
  5454. "$ref": "#/components/schemas/InvalidRequestError"
  5455. }
  5456. ]
  5457. }
  5458. }
  5459. }
  5460. },
  5461. "401": {
  5462. "description": "UnauthorizedError",
  5463. "content": {
  5464. "application/json": {
  5465. "schema": {
  5466. "$ref": "#/components/schemas/UnauthorizedError"
  5467. }
  5468. }
  5469. }
  5470. }
  5471. },
  5472. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  5473. "summary": "Complete OAuth connection",
  5474. "requestBody": {
  5475. "content": {
  5476. "application/json": {
  5477. "schema": {
  5478. "type": "object",
  5479. "properties": {
  5480. "code": {
  5481. "anyOf": [
  5482. {
  5483. "type": "string"
  5484. },
  5485. {
  5486. "type": "null"
  5487. }
  5488. ]
  5489. }
  5490. },
  5491. "additionalProperties": false
  5492. }
  5493. }
  5494. },
  5495. "required": true
  5496. }
  5497. }
  5498. },
  5499. "/api/integration/{integrationID}/connect/command": {
  5500. "post": {
  5501. "tags": [
  5502. "integration"
  5503. ],
  5504. "operationId": "v2.integration.command.connect",
  5505. "parameters": [
  5506. {
  5507. "name": "integrationID",
  5508. "in": "path",
  5509. "schema": {
  5510. "type": "string"
  5511. },
  5512. "required": true
  5513. },
  5514. {
  5515. "name": "location",
  5516. "in": "query",
  5517. "schema": {
  5518. "anyOf": [
  5519. {
  5520. "type": "object",
  5521. "properties": {
  5522. "directory": {
  5523. "anyOf": [
  5524. {
  5525. "type": "string"
  5526. },
  5527. {
  5528. "type": "null"
  5529. }
  5530. ]
  5531. },
  5532. "workspace": {
  5533. "anyOf": [
  5534. {
  5535. "type": "string"
  5536. },
  5537. {
  5538. "type": "null"
  5539. }
  5540. ]
  5541. }
  5542. },
  5543. "additionalProperties": false
  5544. },
  5545. {
  5546. "type": "null"
  5547. }
  5548. ]
  5549. },
  5550. "required": false,
  5551. "style": "deepObject",
  5552. "explode": true
  5553. }
  5554. ],
  5555. "security": [],
  5556. "responses": {
  5557. "200": {
  5558. "description": "Success",
  5559. "content": {
  5560. "application/json": {
  5561. "schema": {
  5562. "type": "object",
  5563. "properties": {
  5564. "location": {
  5565. "$ref": "#/components/schemas/Location.Info"
  5566. },
  5567. "data": {
  5568. "$ref": "#/components/schemas/Integration.CommandAttempt"
  5569. }
  5570. },
  5571. "required": [
  5572. "location",
  5573. "data"
  5574. ],
  5575. "additionalProperties": false
  5576. }
  5577. }
  5578. }
  5579. },
  5580. "400": {
  5581. "description": "InvalidRequestError",
  5582. "content": {
  5583. "application/json": {
  5584. "schema": {
  5585. "anyOf": [
  5586. {
  5587. "$ref": "#/components/schemas/InvalidRequestError1"
  5588. },
  5589. {
  5590. "$ref": "#/components/schemas/InvalidRequestError"
  5591. }
  5592. ]
  5593. }
  5594. }
  5595. }
  5596. },
  5597. "401": {
  5598. "description": "UnauthorizedError",
  5599. "content": {
  5600. "application/json": {
  5601. "schema": {
  5602. "$ref": "#/components/schemas/UnauthorizedError"
  5603. }
  5604. }
  5605. }
  5606. }
  5607. },
  5608. "description": "Start a command authentication attempt.",
  5609. "summary": "Begin command connection",
  5610. "requestBody": {
  5611. "content": {
  5612. "application/json": {
  5613. "schema": {
  5614. "type": "object",
  5615. "properties": {
  5616. "methodID": {
  5617. "type": "string"
  5618. },
  5619. "label": {
  5620. "anyOf": [
  5621. {
  5622. "type": "string"
  5623. },
  5624. {
  5625. "type": "null"
  5626. }
  5627. ]
  5628. }
  5629. },
  5630. "required": [
  5631. "methodID"
  5632. ],
  5633. "additionalProperties": false
  5634. }
  5635. }
  5636. },
  5637. "required": true
  5638. }
  5639. }
  5640. },
  5641. "/api/integration/{integrationID}/connect/command/{attemptID}": {
  5642. "get": {
  5643. "tags": [
  5644. "integration"
  5645. ],
  5646. "operationId": "v2.integration.command.status",
  5647. "parameters": [
  5648. {
  5649. "name": "integrationID",
  5650. "in": "path",
  5651. "schema": {
  5652. "type": "string"
  5653. },
  5654. "required": true
  5655. },
  5656. {
  5657. "name": "attemptID",
  5658. "in": "path",
  5659. "schema": {
  5660. "type": "string"
  5661. },
  5662. "required": true
  5663. },
  5664. {
  5665. "name": "location",
  5666. "in": "query",
  5667. "schema": {
  5668. "anyOf": [
  5669. {
  5670. "type": "object",
  5671. "properties": {
  5672. "directory": {
  5673. "anyOf": [
  5674. {
  5675. "type": "string"
  5676. },
  5677. {
  5678. "type": "null"
  5679. }
  5680. ]
  5681. },
  5682. "workspace": {
  5683. "anyOf": [
  5684. {
  5685. "type": "string"
  5686. },
  5687. {
  5688. "type": "null"
  5689. }
  5690. ]
  5691. }
  5692. },
  5693. "additionalProperties": false
  5694. },
  5695. {
  5696. "type": "null"
  5697. }
  5698. ]
  5699. },
  5700. "required": false,
  5701. "style": "deepObject",
  5702. "explode": true
  5703. }
  5704. ],
  5705. "security": [],
  5706. "responses": {
  5707. "200": {
  5708. "description": "Success",
  5709. "content": {
  5710. "application/json": {
  5711. "schema": {
  5712. "type": "object",
  5713. "properties": {
  5714. "location": {
  5715. "$ref": "#/components/schemas/Location.Info"
  5716. },
  5717. "data": {
  5718. "$ref": "#/components/schemas/Integration.CommandAttemptStatus"
  5719. }
  5720. },
  5721. "required": [
  5722. "location",
  5723. "data"
  5724. ],
  5725. "additionalProperties": false
  5726. }
  5727. }
  5728. }
  5729. },
  5730. "400": {
  5731. "description": "InvalidRequestError",
  5732. "content": {
  5733. "application/json": {
  5734. "schema": {
  5735. "$ref": "#/components/schemas/InvalidRequestError"
  5736. }
  5737. }
  5738. }
  5739. },
  5740. "401": {
  5741. "description": "UnauthorizedError",
  5742. "content": {
  5743. "application/json": {
  5744. "schema": {
  5745. "$ref": "#/components/schemas/UnauthorizedError"
  5746. }
  5747. }
  5748. }
  5749. }
  5750. },
  5751. "description": "Poll the current status and output of a command authentication attempt.",
  5752. "summary": "Get command attempt status"
  5753. },
  5754. "delete": {
  5755. "tags": [
  5756. "integration"
  5757. ],
  5758. "operationId": "v2.integration.command.cancel",
  5759. "parameters": [
  5760. {
  5761. "name": "integrationID",
  5762. "in": "path",
  5763. "schema": {
  5764. "type": "string"
  5765. },
  5766. "required": true
  5767. },
  5768. {
  5769. "name": "attemptID",
  5770. "in": "path",
  5771. "schema": {
  5772. "type": "string"
  5773. },
  5774. "required": true
  5775. },
  5776. {
  5777. "name": "location",
  5778. "in": "query",
  5779. "schema": {
  5780. "anyOf": [
  5781. {
  5782. "type": "object",
  5783. "properties": {
  5784. "directory": {
  5785. "anyOf": [
  5786. {
  5787. "type": "string"
  5788. },
  5789. {
  5790. "type": "null"
  5791. }
  5792. ]
  5793. },
  5794. "workspace": {
  5795. "anyOf": [
  5796. {
  5797. "type": "string"
  5798. },
  5799. {
  5800. "type": "null"
  5801. }
  5802. ]
  5803. }
  5804. },
  5805. "additionalProperties": false
  5806. },
  5807. {
  5808. "type": "null"
  5809. }
  5810. ]
  5811. },
  5812. "required": false,
  5813. "style": "deepObject",
  5814. "explode": true
  5815. }
  5816. ],
  5817. "security": [],
  5818. "responses": {
  5819. "204": {
  5820. "description": "<No Content>"
  5821. },
  5822. "400": {
  5823. "description": "InvalidRequestError",
  5824. "content": {
  5825. "application/json": {
  5826. "schema": {
  5827. "$ref": "#/components/schemas/InvalidRequestError"
  5828. }
  5829. }
  5830. }
  5831. },
  5832. "401": {
  5833. "description": "UnauthorizedError",
  5834. "content": {
  5835. "application/json": {
  5836. "schema": {
  5837. "$ref": "#/components/schemas/UnauthorizedError"
  5838. }
  5839. }
  5840. }
  5841. }
  5842. },
  5843. "description": "Cancel a command authentication attempt and terminate its process.",
  5844. "summary": "Cancel command connection"
  5845. }
  5846. },
  5847. "/api/mcp": {
  5848. "get": {
  5849. "tags": [
  5850. "mcp"
  5851. ],
  5852. "operationId": "v2.mcp.list",
  5853. "parameters": [
  5854. {
  5855. "name": "location",
  5856. "in": "query",
  5857. "schema": {
  5858. "anyOf": [
  5859. {
  5860. "type": "object",
  5861. "properties": {
  5862. "directory": {
  5863. "anyOf": [
  5864. {
  5865. "type": "string"
  5866. },
  5867. {
  5868. "type": "null"
  5869. }
  5870. ]
  5871. },
  5872. "workspace": {
  5873. "anyOf": [
  5874. {
  5875. "type": "string"
  5876. },
  5877. {
  5878. "type": "null"
  5879. }
  5880. ]
  5881. }
  5882. },
  5883. "additionalProperties": false
  5884. },
  5885. {
  5886. "type": "null"
  5887. }
  5888. ]
  5889. },
  5890. "required": false,
  5891. "style": "deepObject",
  5892. "explode": true
  5893. }
  5894. ],
  5895. "security": [],
  5896. "responses": {
  5897. "200": {
  5898. "description": "Success",
  5899. "content": {
  5900. "application/json": {
  5901. "schema": {
  5902. "type": "object",
  5903. "properties": {
  5904. "location": {
  5905. "$ref": "#/components/schemas/Location.Info"
  5906. },
  5907. "data": {
  5908. "type": "array",
  5909. "items": {
  5910. "$ref": "#/components/schemas/Mcp.Server"
  5911. }
  5912. }
  5913. },
  5914. "required": [
  5915. "location",
  5916. "data"
  5917. ],
  5918. "additionalProperties": false
  5919. }
  5920. }
  5921. }
  5922. },
  5923. "400": {
  5924. "description": "InvalidRequestError",
  5925. "content": {
  5926. "application/json": {
  5927. "schema": {
  5928. "$ref": "#/components/schemas/InvalidRequestError"
  5929. }
  5930. }
  5931. }
  5932. },
  5933. "401": {
  5934. "description": "UnauthorizedError",
  5935. "content": {
  5936. "application/json": {
  5937. "schema": {
  5938. "$ref": "#/components/schemas/UnauthorizedError"
  5939. }
  5940. }
  5941. }
  5942. }
  5943. },
  5944. "description": "Retrieve configured MCP servers and their connection status.",
  5945. "summary": "List MCP servers"
  5946. }
  5947. },
  5948. "/api/mcp/{server}": {
  5949. "put": {
  5950. "tags": [
  5951. "mcp"
  5952. ],
  5953. "operationId": "v2.mcp.add",
  5954. "parameters": [
  5955. {
  5956. "name": "server",
  5957. "in": "path",
  5958. "schema": {
  5959. "type": "string"
  5960. },
  5961. "required": true
  5962. },
  5963. {
  5964. "name": "location",
  5965. "in": "query",
  5966. "schema": {
  5967. "anyOf": [
  5968. {
  5969. "type": "object",
  5970. "properties": {
  5971. "directory": {
  5972. "anyOf": [
  5973. {
  5974. "type": "string"
  5975. },
  5976. {
  5977. "type": "null"
  5978. }
  5979. ]
  5980. },
  5981. "workspace": {
  5982. "anyOf": [
  5983. {
  5984. "type": "string"
  5985. },
  5986. {
  5987. "type": "null"
  5988. }
  5989. ]
  5990. }
  5991. },
  5992. "additionalProperties": false
  5993. },
  5994. {
  5995. "type": "null"
  5996. }
  5997. ]
  5998. },
  5999. "required": false,
  6000. "style": "deepObject",
  6001. "explode": true
  6002. }
  6003. ],
  6004. "security": [],
  6005. "responses": {
  6006. "204": {
  6007. "description": "<No Content>"
  6008. },
  6009. "400": {
  6010. "description": "InvalidRequestError",
  6011. "content": {
  6012. "application/json": {
  6013. "schema": {
  6014. "$ref": "#/components/schemas/InvalidRequestError"
  6015. }
  6016. }
  6017. }
  6018. },
  6019. "401": {
  6020. "description": "UnauthorizedError",
  6021. "content": {
  6022. "application/json": {
  6023. "schema": {
  6024. "$ref": "#/components/schemas/UnauthorizedError"
  6025. }
  6026. }
  6027. }
  6028. }
  6029. },
  6030. "description": "Add an MCP server at runtime or replace an existing one, connecting it immediately.",
  6031. "summary": "Add MCP server",
  6032. "requestBody": {
  6033. "content": {
  6034. "application/json": {
  6035. "schema": {
  6036. "type": "object",
  6037. "properties": {
  6038. "config": {
  6039. "anyOf": [
  6040. {
  6041. "$ref": "#/components/schemas/Mcp.LocalConfig"
  6042. },
  6043. {
  6044. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  6045. }
  6046. ]
  6047. }
  6048. },
  6049. "required": [
  6050. "config"
  6051. ],
  6052. "additionalProperties": false
  6053. }
  6054. }
  6055. },
  6056. "required": true
  6057. }
  6058. },
  6059. "delete": {
  6060. "tags": [
  6061. "mcp"
  6062. ],
  6063. "operationId": "v2.mcp.remove",
  6064. "parameters": [
  6065. {
  6066. "name": "server",
  6067. "in": "path",
  6068. "schema": {
  6069. "type": "string"
  6070. },
  6071. "required": true
  6072. },
  6073. {
  6074. "name": "location",
  6075. "in": "query",
  6076. "schema": {
  6077. "anyOf": [
  6078. {
  6079. "type": "object",
  6080. "properties": {
  6081. "directory": {
  6082. "anyOf": [
  6083. {
  6084. "type": "string"
  6085. },
  6086. {
  6087. "type": "null"
  6088. }
  6089. ]
  6090. },
  6091. "workspace": {
  6092. "anyOf": [
  6093. {
  6094. "type": "string"
  6095. },
  6096. {
  6097. "type": "null"
  6098. }
  6099. ]
  6100. }
  6101. },
  6102. "additionalProperties": false
  6103. },
  6104. {
  6105. "type": "null"
  6106. }
  6107. ]
  6108. },
  6109. "required": false,
  6110. "style": "deepObject",
  6111. "explode": true
  6112. }
  6113. ],
  6114. "security": [],
  6115. "responses": {
  6116. "204": {
  6117. "description": "<No Content>"
  6118. },
  6119. "400": {
  6120. "description": "InvalidRequestError",
  6121. "content": {
  6122. "application/json": {
  6123. "schema": {
  6124. "$ref": "#/components/schemas/InvalidRequestError"
  6125. }
  6126. }
  6127. }
  6128. },
  6129. "401": {
  6130. "description": "UnauthorizedError",
  6131. "content": {
  6132. "application/json": {
  6133. "schema": {
  6134. "$ref": "#/components/schemas/UnauthorizedError"
  6135. }
  6136. }
  6137. }
  6138. },
  6139. "404": {
  6140. "description": "McpServerNotFoundError",
  6141. "content": {
  6142. "application/json": {
  6143. "schema": {
  6144. "$ref": "#/components/schemas/McpServerNotFoundError"
  6145. }
  6146. }
  6147. }
  6148. }
  6149. },
  6150. "description": "Stop an MCP server and remove it from the runtime set until restart.",
  6151. "summary": "Remove MCP server"
  6152. }
  6153. },
  6154. "/api/mcp/{server}/connect": {
  6155. "post": {
  6156. "tags": [
  6157. "mcp"
  6158. ],
  6159. "operationId": "v2.mcp.connect",
  6160. "parameters": [
  6161. {
  6162. "name": "server",
  6163. "in": "path",
  6164. "schema": {
  6165. "type": "string"
  6166. },
  6167. "required": true
  6168. },
  6169. {
  6170. "name": "location",
  6171. "in": "query",
  6172. "schema": {
  6173. "anyOf": [
  6174. {
  6175. "type": "object",
  6176. "properties": {
  6177. "directory": {
  6178. "anyOf": [
  6179. {
  6180. "type": "string"
  6181. },
  6182. {
  6183. "type": "null"
  6184. }
  6185. ]
  6186. },
  6187. "workspace": {
  6188. "anyOf": [
  6189. {
  6190. "type": "string"
  6191. },
  6192. {
  6193. "type": "null"
  6194. }
  6195. ]
  6196. }
  6197. },
  6198. "additionalProperties": false
  6199. },
  6200. {
  6201. "type": "null"
  6202. }
  6203. ]
  6204. },
  6205. "required": false,
  6206. "style": "deepObject",
  6207. "explode": true
  6208. }
  6209. ],
  6210. "security": [],
  6211. "responses": {
  6212. "204": {
  6213. "description": "<No Content>"
  6214. },
  6215. "400": {
  6216. "description": "InvalidRequestError",
  6217. "content": {
  6218. "application/json": {
  6219. "schema": {
  6220. "$ref": "#/components/schemas/InvalidRequestError"
  6221. }
  6222. }
  6223. }
  6224. },
  6225. "401": {
  6226. "description": "UnauthorizedError",
  6227. "content": {
  6228. "application/json": {
  6229. "schema": {
  6230. "$ref": "#/components/schemas/UnauthorizedError"
  6231. }
  6232. }
  6233. }
  6234. },
  6235. "404": {
  6236. "description": "McpServerNotFoundError",
  6237. "content": {
  6238. "application/json": {
  6239. "schema": {
  6240. "$ref": "#/components/schemas/McpServerNotFoundError"
  6241. }
  6242. }
  6243. }
  6244. }
  6245. },
  6246. "description": "Connect an MCP server at runtime, overriding a disabled configuration until restart.",
  6247. "summary": "Connect MCP server"
  6248. }
  6249. },
  6250. "/api/mcp/{server}/disconnect": {
  6251. "post": {
  6252. "tags": [
  6253. "mcp"
  6254. ],
  6255. "operationId": "v2.mcp.disconnect",
  6256. "parameters": [
  6257. {
  6258. "name": "server",
  6259. "in": "path",
  6260. "schema": {
  6261. "type": "string"
  6262. },
  6263. "required": true
  6264. },
  6265. {
  6266. "name": "location",
  6267. "in": "query",
  6268. "schema": {
  6269. "anyOf": [
  6270. {
  6271. "type": "object",
  6272. "properties": {
  6273. "directory": {
  6274. "anyOf": [
  6275. {
  6276. "type": "string"
  6277. },
  6278. {
  6279. "type": "null"
  6280. }
  6281. ]
  6282. },
  6283. "workspace": {
  6284. "anyOf": [
  6285. {
  6286. "type": "string"
  6287. },
  6288. {
  6289. "type": "null"
  6290. }
  6291. ]
  6292. }
  6293. },
  6294. "additionalProperties": false
  6295. },
  6296. {
  6297. "type": "null"
  6298. }
  6299. ]
  6300. },
  6301. "required": false,
  6302. "style": "deepObject",
  6303. "explode": true
  6304. }
  6305. ],
  6306. "security": [],
  6307. "responses": {
  6308. "204": {
  6309. "description": "<No Content>"
  6310. },
  6311. "400": {
  6312. "description": "InvalidRequestError",
  6313. "content": {
  6314. "application/json": {
  6315. "schema": {
  6316. "$ref": "#/components/schemas/InvalidRequestError"
  6317. }
  6318. }
  6319. }
  6320. },
  6321. "401": {
  6322. "description": "UnauthorizedError",
  6323. "content": {
  6324. "application/json": {
  6325. "schema": {
  6326. "$ref": "#/components/schemas/UnauthorizedError"
  6327. }
  6328. }
  6329. }
  6330. },
  6331. "404": {
  6332. "description": "McpServerNotFoundError",
  6333. "content": {
  6334. "application/json": {
  6335. "schema": {
  6336. "$ref": "#/components/schemas/McpServerNotFoundError"
  6337. }
  6338. }
  6339. }
  6340. }
  6341. },
  6342. "description": "Disconnect an MCP server at runtime, removing its tools until reconnected.",
  6343. "summary": "Disconnect MCP server"
  6344. }
  6345. },
  6346. "/api/mcp/resource": {
  6347. "get": {
  6348. "tags": [
  6349. "mcp"
  6350. ],
  6351. "operationId": "v2.mcp.resource.catalog",
  6352. "parameters": [
  6353. {
  6354. "name": "location",
  6355. "in": "query",
  6356. "schema": {
  6357. "anyOf": [
  6358. {
  6359. "type": "object",
  6360. "properties": {
  6361. "directory": {
  6362. "anyOf": [
  6363. {
  6364. "type": "string"
  6365. },
  6366. {
  6367. "type": "null"
  6368. }
  6369. ]
  6370. },
  6371. "workspace": {
  6372. "anyOf": [
  6373. {
  6374. "type": "string"
  6375. },
  6376. {
  6377. "type": "null"
  6378. }
  6379. ]
  6380. }
  6381. },
  6382. "additionalProperties": false
  6383. },
  6384. {
  6385. "type": "null"
  6386. }
  6387. ]
  6388. },
  6389. "required": false,
  6390. "style": "deepObject",
  6391. "explode": true
  6392. }
  6393. ],
  6394. "security": [],
  6395. "responses": {
  6396. "200": {
  6397. "description": "Success",
  6398. "content": {
  6399. "application/json": {
  6400. "schema": {
  6401. "type": "object",
  6402. "properties": {
  6403. "location": {
  6404. "$ref": "#/components/schemas/Location.Info"
  6405. },
  6406. "data": {
  6407. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  6408. }
  6409. },
  6410. "required": [
  6411. "location",
  6412. "data"
  6413. ],
  6414. "additionalProperties": false
  6415. }
  6416. }
  6417. }
  6418. },
  6419. "400": {
  6420. "description": "InvalidRequestError",
  6421. "content": {
  6422. "application/json": {
  6423. "schema": {
  6424. "$ref": "#/components/schemas/InvalidRequestError"
  6425. }
  6426. }
  6427. }
  6428. },
  6429. "401": {
  6430. "description": "UnauthorizedError",
  6431. "content": {
  6432. "application/json": {
  6433. "schema": {
  6434. "$ref": "#/components/schemas/UnauthorizedError"
  6435. }
  6436. }
  6437. }
  6438. }
  6439. },
  6440. "description": "Retrieve resources and resource templates from connected MCP servers.",
  6441. "summary": "List MCP resources"
  6442. }
  6443. },
  6444. "/api/credential/{credentialID}": {
  6445. "patch": {
  6446. "tags": [
  6447. "credential"
  6448. ],
  6449. "operationId": "v2.credential.update",
  6450. "parameters": [
  6451. {
  6452. "name": "credentialID",
  6453. "in": "path",
  6454. "schema": {
  6455. "type": "string"
  6456. },
  6457. "required": true
  6458. },
  6459. {
  6460. "name": "location",
  6461. "in": "query",
  6462. "schema": {
  6463. "anyOf": [
  6464. {
  6465. "type": "object",
  6466. "properties": {
  6467. "directory": {
  6468. "anyOf": [
  6469. {
  6470. "type": "string"
  6471. },
  6472. {
  6473. "type": "null"
  6474. }
  6475. ]
  6476. },
  6477. "workspace": {
  6478. "anyOf": [
  6479. {
  6480. "type": "string"
  6481. },
  6482. {
  6483. "type": "null"
  6484. }
  6485. ]
  6486. }
  6487. },
  6488. "additionalProperties": false
  6489. },
  6490. {
  6491. "type": "null"
  6492. }
  6493. ]
  6494. },
  6495. "required": false,
  6496. "style": "deepObject",
  6497. "explode": true
  6498. }
  6499. ],
  6500. "security": [],
  6501. "responses": {
  6502. "204": {
  6503. "description": "<No Content>"
  6504. },
  6505. "400": {
  6506. "description": "InvalidRequestError",
  6507. "content": {
  6508. "application/json": {
  6509. "schema": {
  6510. "$ref": "#/components/schemas/InvalidRequestError"
  6511. }
  6512. }
  6513. }
  6514. },
  6515. "401": {
  6516. "description": "UnauthorizedError",
  6517. "content": {
  6518. "application/json": {
  6519. "schema": {
  6520. "$ref": "#/components/schemas/UnauthorizedError"
  6521. }
  6522. }
  6523. }
  6524. }
  6525. },
  6526. "description": "Update a stored credential label.",
  6527. "summary": "Update credential",
  6528. "requestBody": {
  6529. "content": {
  6530. "application/json": {
  6531. "schema": {
  6532. "type": "object",
  6533. "properties": {
  6534. "label": {
  6535. "type": "string"
  6536. }
  6537. },
  6538. "required": [
  6539. "label"
  6540. ],
  6541. "additionalProperties": false
  6542. }
  6543. }
  6544. },
  6545. "required": true
  6546. }
  6547. },
  6548. "delete": {
  6549. "tags": [
  6550. "credential"
  6551. ],
  6552. "operationId": "v2.credential.remove",
  6553. "parameters": [
  6554. {
  6555. "name": "credentialID",
  6556. "in": "path",
  6557. "schema": {
  6558. "type": "string"
  6559. },
  6560. "required": true
  6561. },
  6562. {
  6563. "name": "location",
  6564. "in": "query",
  6565. "schema": {
  6566. "anyOf": [
  6567. {
  6568. "type": "object",
  6569. "properties": {
  6570. "directory": {
  6571. "anyOf": [
  6572. {
  6573. "type": "string"
  6574. },
  6575. {
  6576. "type": "null"
  6577. }
  6578. ]
  6579. },
  6580. "workspace": {
  6581. "anyOf": [
  6582. {
  6583. "type": "string"
  6584. },
  6585. {
  6586. "type": "null"
  6587. }
  6588. ]
  6589. }
  6590. },
  6591. "additionalProperties": false
  6592. },
  6593. {
  6594. "type": "null"
  6595. }
  6596. ]
  6597. },
  6598. "required": false,
  6599. "style": "deepObject",
  6600. "explode": true
  6601. }
  6602. ],
  6603. "security": [],
  6604. "responses": {
  6605. "204": {
  6606. "description": "<No Content>"
  6607. },
  6608. "400": {
  6609. "description": "InvalidRequestError",
  6610. "content": {
  6611. "application/json": {
  6612. "schema": {
  6613. "$ref": "#/components/schemas/InvalidRequestError"
  6614. }
  6615. }
  6616. }
  6617. },
  6618. "401": {
  6619. "description": "UnauthorizedError",
  6620. "content": {
  6621. "application/json": {
  6622. "schema": {
  6623. "$ref": "#/components/schemas/UnauthorizedError"
  6624. }
  6625. }
  6626. }
  6627. }
  6628. },
  6629. "description": "Remove a stored integration credential.",
  6630. "summary": "Remove credential"
  6631. }
  6632. },
  6633. "/api/project": {
  6634. "get": {
  6635. "tags": [
  6636. "project"
  6637. ],
  6638. "operationId": "v2.project.list",
  6639. "parameters": [],
  6640. "security": [],
  6641. "responses": {
  6642. "200": {
  6643. "description": "Success",
  6644. "content": {
  6645. "application/json": {
  6646. "schema": {
  6647. "type": "array",
  6648. "items": {
  6649. "$ref": "#/components/schemas/Project"
  6650. }
  6651. }
  6652. }
  6653. }
  6654. },
  6655. "400": {
  6656. "description": "InvalidRequestError",
  6657. "content": {
  6658. "application/json": {
  6659. "schema": {
  6660. "$ref": "#/components/schemas/InvalidRequestError"
  6661. }
  6662. }
  6663. }
  6664. },
  6665. "401": {
  6666. "description": "UnauthorizedError",
  6667. "content": {
  6668. "application/json": {
  6669. "schema": {
  6670. "$ref": "#/components/schemas/UnauthorizedError"
  6671. }
  6672. }
  6673. }
  6674. }
  6675. },
  6676. "description": "List known projects.",
  6677. "summary": "List projects"
  6678. }
  6679. },
  6680. "/api/project/current": {
  6681. "get": {
  6682. "tags": [
  6683. "project"
  6684. ],
  6685. "operationId": "v2.project.current",
  6686. "parameters": [
  6687. {
  6688. "name": "location",
  6689. "in": "query",
  6690. "schema": {
  6691. "anyOf": [
  6692. {
  6693. "type": "object",
  6694. "properties": {
  6695. "directory": {
  6696. "anyOf": [
  6697. {
  6698. "type": "string"
  6699. },
  6700. {
  6701. "type": "null"
  6702. }
  6703. ]
  6704. },
  6705. "workspace": {
  6706. "anyOf": [
  6707. {
  6708. "type": "string"
  6709. },
  6710. {
  6711. "type": "null"
  6712. }
  6713. ]
  6714. }
  6715. },
  6716. "additionalProperties": false
  6717. },
  6718. {
  6719. "type": "null"
  6720. }
  6721. ]
  6722. },
  6723. "required": false,
  6724. "style": "deepObject",
  6725. "explode": true
  6726. }
  6727. ],
  6728. "security": [],
  6729. "responses": {
  6730. "200": {
  6731. "description": "Project.Current",
  6732. "content": {
  6733. "application/json": {
  6734. "schema": {
  6735. "$ref": "#/components/schemas/Project.Current"
  6736. }
  6737. }
  6738. }
  6739. },
  6740. "400": {
  6741. "description": "InvalidRequestError",
  6742. "content": {
  6743. "application/json": {
  6744. "schema": {
  6745. "$ref": "#/components/schemas/InvalidRequestError"
  6746. }
  6747. }
  6748. }
  6749. },
  6750. "401": {
  6751. "description": "UnauthorizedError",
  6752. "content": {
  6753. "application/json": {
  6754. "schema": {
  6755. "$ref": "#/components/schemas/UnauthorizedError"
  6756. }
  6757. }
  6758. }
  6759. }
  6760. },
  6761. "description": "Resolve the project for the requested location.",
  6762. "summary": "Get current project"
  6763. }
  6764. },
  6765. "/api/project/{projectID}/directories": {
  6766. "get": {
  6767. "tags": [
  6768. "project"
  6769. ],
  6770. "operationId": "v2.project.directories",
  6771. "parameters": [
  6772. {
  6773. "name": "projectID",
  6774. "in": "path",
  6775. "schema": {
  6776. "type": "string"
  6777. },
  6778. "required": true
  6779. },
  6780. {
  6781. "name": "location",
  6782. "in": "query",
  6783. "schema": {
  6784. "anyOf": [
  6785. {
  6786. "type": "object",
  6787. "properties": {
  6788. "directory": {
  6789. "anyOf": [
  6790. {
  6791. "type": "string"
  6792. },
  6793. {
  6794. "type": "null"
  6795. }
  6796. ]
  6797. },
  6798. "workspace": {
  6799. "anyOf": [
  6800. {
  6801. "type": "string"
  6802. },
  6803. {
  6804. "type": "null"
  6805. }
  6806. ]
  6807. }
  6808. },
  6809. "additionalProperties": false
  6810. },
  6811. {
  6812. "type": "null"
  6813. }
  6814. ]
  6815. },
  6816. "required": false,
  6817. "style": "deepObject",
  6818. "explode": true
  6819. }
  6820. ],
  6821. "security": [],
  6822. "responses": {
  6823. "200": {
  6824. "description": "Project.Directories",
  6825. "content": {
  6826. "application/json": {
  6827. "schema": {
  6828. "$ref": "#/components/schemas/Project.Directories"
  6829. }
  6830. }
  6831. }
  6832. },
  6833. "400": {
  6834. "description": "InvalidRequestError",
  6835. "content": {
  6836. "application/json": {
  6837. "schema": {
  6838. "$ref": "#/components/schemas/InvalidRequestError"
  6839. }
  6840. }
  6841. }
  6842. },
  6843. "401": {
  6844. "description": "UnauthorizedError",
  6845. "content": {
  6846. "application/json": {
  6847. "schema": {
  6848. "$ref": "#/components/schemas/UnauthorizedError"
  6849. }
  6850. }
  6851. }
  6852. }
  6853. },
  6854. "description": "List known local absolute directories for a project.",
  6855. "summary": "List project directories"
  6856. }
  6857. },
  6858. "/api/form/request": {
  6859. "get": {
  6860. "tags": [
  6861. "form"
  6862. ],
  6863. "operationId": "v2.form.request.list",
  6864. "parameters": [
  6865. {
  6866. "name": "location",
  6867. "in": "query",
  6868. "schema": {
  6869. "anyOf": [
  6870. {
  6871. "type": "object",
  6872. "properties": {
  6873. "directory": {
  6874. "anyOf": [
  6875. {
  6876. "type": "string"
  6877. },
  6878. {
  6879. "type": "null"
  6880. }
  6881. ]
  6882. },
  6883. "workspace": {
  6884. "anyOf": [
  6885. {
  6886. "type": "string"
  6887. },
  6888. {
  6889. "type": "null"
  6890. }
  6891. ]
  6892. }
  6893. },
  6894. "additionalProperties": false
  6895. },
  6896. {
  6897. "type": "null"
  6898. }
  6899. ]
  6900. },
  6901. "required": false,
  6902. "style": "deepObject",
  6903. "explode": true
  6904. }
  6905. ],
  6906. "security": [],
  6907. "responses": {
  6908. "200": {
  6909. "description": "Success",
  6910. "content": {
  6911. "application/json": {
  6912. "schema": {
  6913. "type": "object",
  6914. "properties": {
  6915. "location": {
  6916. "$ref": "#/components/schemas/Location.Info"
  6917. },
  6918. "data": {
  6919. "type": "array",
  6920. "items": {
  6921. "$ref": "#/components/schemas/Form.Info"
  6922. }
  6923. }
  6924. },
  6925. "required": [
  6926. "location",
  6927. "data"
  6928. ],
  6929. "additionalProperties": false
  6930. }
  6931. }
  6932. }
  6933. },
  6934. "400": {
  6935. "description": "InvalidRequestError",
  6936. "content": {
  6937. "application/json": {
  6938. "schema": {
  6939. "$ref": "#/components/schemas/InvalidRequestError"
  6940. }
  6941. }
  6942. }
  6943. },
  6944. "401": {
  6945. "description": "UnauthorizedError",
  6946. "content": {
  6947. "application/json": {
  6948. "schema": {
  6949. "$ref": "#/components/schemas/UnauthorizedError"
  6950. }
  6951. }
  6952. }
  6953. }
  6954. },
  6955. "description": "Retrieve pending forms for a location.",
  6956. "summary": "List pending form requests"
  6957. }
  6958. },
  6959. "/api/session/{sessionID}/form": {
  6960. "get": {
  6961. "tags": [
  6962. "form"
  6963. ],
  6964. "operationId": "v2.session.form.list",
  6965. "parameters": [
  6966. {
  6967. "name": "sessionID",
  6968. "in": "path",
  6969. "schema": {
  6970. "type": "string"
  6971. },
  6972. "required": true
  6973. }
  6974. ],
  6975. "security": [],
  6976. "responses": {
  6977. "200": {
  6978. "description": "Success",
  6979. "content": {
  6980. "application/json": {
  6981. "schema": {
  6982. "type": "object",
  6983. "properties": {
  6984. "data": {
  6985. "type": "array",
  6986. "items": {
  6987. "$ref": "#/components/schemas/Form.Info"
  6988. }
  6989. }
  6990. },
  6991. "required": [
  6992. "data"
  6993. ],
  6994. "additionalProperties": false
  6995. }
  6996. }
  6997. }
  6998. },
  6999. "400": {
  7000. "description": "InvalidRequestError",
  7001. "content": {
  7002. "application/json": {
  7003. "schema": {
  7004. "$ref": "#/components/schemas/InvalidRequestError"
  7005. }
  7006. }
  7007. }
  7008. },
  7009. "401": {
  7010. "description": "UnauthorizedError",
  7011. "content": {
  7012. "application/json": {
  7013. "schema": {
  7014. "$ref": "#/components/schemas/UnauthorizedError"
  7015. }
  7016. }
  7017. }
  7018. },
  7019. "404": {
  7020. "description": "SessionNotFoundError",
  7021. "content": {
  7022. "application/json": {
  7023. "schema": {
  7024. "anyOf": [
  7025. {
  7026. "$ref": "#/components/schemas/SessionNotFoundError"
  7027. },
  7028. {
  7029. "$ref": "#/components/schemas/SessionNotFoundError"
  7030. }
  7031. ]
  7032. }
  7033. }
  7034. }
  7035. }
  7036. },
  7037. "description": "Retrieve pending forms for a session.",
  7038. "summary": "List session forms"
  7039. },
  7040. "post": {
  7041. "tags": [
  7042. "form"
  7043. ],
  7044. "operationId": "v2.session.form.create",
  7045. "parameters": [
  7046. {
  7047. "name": "sessionID",
  7048. "in": "path",
  7049. "schema": {
  7050. "type": "string"
  7051. },
  7052. "required": true
  7053. }
  7054. ],
  7055. "security": [],
  7056. "responses": {
  7057. "200": {
  7058. "description": "Success",
  7059. "content": {
  7060. "application/json": {
  7061. "schema": {
  7062. "type": "object",
  7063. "properties": {
  7064. "data": {
  7065. "$ref": "#/components/schemas/Form.Info"
  7066. }
  7067. },
  7068. "required": [
  7069. "data"
  7070. ],
  7071. "additionalProperties": false
  7072. }
  7073. }
  7074. }
  7075. },
  7076. "400": {
  7077. "description": "InvalidRequestError",
  7078. "content": {
  7079. "application/json": {
  7080. "schema": {
  7081. "anyOf": [
  7082. {
  7083. "$ref": "#/components/schemas/InvalidRequestError1"
  7084. },
  7085. {
  7086. "$ref": "#/components/schemas/InvalidRequestError"
  7087. }
  7088. ]
  7089. }
  7090. }
  7091. }
  7092. },
  7093. "401": {
  7094. "description": "UnauthorizedError",
  7095. "content": {
  7096. "application/json": {
  7097. "schema": {
  7098. "$ref": "#/components/schemas/UnauthorizedError"
  7099. }
  7100. }
  7101. }
  7102. },
  7103. "404": {
  7104. "description": "SessionNotFoundError",
  7105. "content": {
  7106. "application/json": {
  7107. "schema": {
  7108. "anyOf": [
  7109. {
  7110. "$ref": "#/components/schemas/SessionNotFoundError"
  7111. },
  7112. {
  7113. "$ref": "#/components/schemas/SessionNotFoundError"
  7114. }
  7115. ]
  7116. }
  7117. }
  7118. }
  7119. },
  7120. "409": {
  7121. "description": "ConflictError",
  7122. "content": {
  7123. "application/json": {
  7124. "schema": {
  7125. "$ref": "#/components/schemas/ConflictError"
  7126. }
  7127. }
  7128. }
  7129. }
  7130. },
  7131. "description": "Create a form for a session.",
  7132. "summary": "Create session form",
  7133. "requestBody": {
  7134. "content": {
  7135. "application/json": {
  7136. "schema": {
  7137. "$ref": "#/components/schemas/Form.CreatePayload"
  7138. }
  7139. }
  7140. },
  7141. "required": true
  7142. }
  7143. }
  7144. },
  7145. "/api/session/{sessionID}/form/{formID}": {
  7146. "get": {
  7147. "tags": [
  7148. "form"
  7149. ],
  7150. "operationId": "v2.session.form.get",
  7151. "parameters": [
  7152. {
  7153. "name": "sessionID",
  7154. "in": "path",
  7155. "schema": {
  7156. "type": "string"
  7157. },
  7158. "required": true
  7159. },
  7160. {
  7161. "name": "formID",
  7162. "in": "path",
  7163. "schema": {
  7164. "type": "string",
  7165. "allOf": [
  7166. {
  7167. "pattern": "^frm_"
  7168. }
  7169. ]
  7170. },
  7171. "required": true
  7172. }
  7173. ],
  7174. "security": [],
  7175. "responses": {
  7176. "200": {
  7177. "description": "Success",
  7178. "content": {
  7179. "application/json": {
  7180. "schema": {
  7181. "type": "object",
  7182. "properties": {
  7183. "data": {
  7184. "$ref": "#/components/schemas/Form.Info"
  7185. }
  7186. },
  7187. "required": [
  7188. "data"
  7189. ],
  7190. "additionalProperties": false
  7191. }
  7192. }
  7193. }
  7194. },
  7195. "400": {
  7196. "description": "InvalidRequestError",
  7197. "content": {
  7198. "application/json": {
  7199. "schema": {
  7200. "$ref": "#/components/schemas/InvalidRequestError"
  7201. }
  7202. }
  7203. }
  7204. },
  7205. "401": {
  7206. "description": "UnauthorizedError",
  7207. "content": {
  7208. "application/json": {
  7209. "schema": {
  7210. "$ref": "#/components/schemas/UnauthorizedError"
  7211. }
  7212. }
  7213. }
  7214. },
  7215. "404": {
  7216. "description": "SessionNotFoundError | FormNotFoundError",
  7217. "content": {
  7218. "application/json": {
  7219. "schema": {
  7220. "anyOf": [
  7221. {
  7222. "$ref": "#/components/schemas/FormNotFoundError"
  7223. },
  7224. {
  7225. "$ref": "#/components/schemas/SessionNotFoundError"
  7226. },
  7227. {
  7228. "$ref": "#/components/schemas/SessionNotFoundError"
  7229. }
  7230. ]
  7231. }
  7232. }
  7233. }
  7234. }
  7235. },
  7236. "description": "Retrieve a form for a session.",
  7237. "summary": "Get session form"
  7238. }
  7239. },
  7240. "/api/session/{sessionID}/form/{formID}/state": {
  7241. "get": {
  7242. "tags": [
  7243. "form"
  7244. ],
  7245. "operationId": "v2.session.form.state",
  7246. "parameters": [
  7247. {
  7248. "name": "sessionID",
  7249. "in": "path",
  7250. "schema": {
  7251. "type": "string"
  7252. },
  7253. "required": true
  7254. },
  7255. {
  7256. "name": "formID",
  7257. "in": "path",
  7258. "schema": {
  7259. "type": "string",
  7260. "allOf": [
  7261. {
  7262. "pattern": "^frm_"
  7263. }
  7264. ]
  7265. },
  7266. "required": true
  7267. }
  7268. ],
  7269. "security": [],
  7270. "responses": {
  7271. "200": {
  7272. "description": "Success",
  7273. "content": {
  7274. "application/json": {
  7275. "schema": {
  7276. "type": "object",
  7277. "properties": {
  7278. "data": {
  7279. "$ref": "#/components/schemas/Form.State"
  7280. }
  7281. },
  7282. "required": [
  7283. "data"
  7284. ],
  7285. "additionalProperties": false
  7286. }
  7287. }
  7288. }
  7289. },
  7290. "400": {
  7291. "description": "InvalidRequestError",
  7292. "content": {
  7293. "application/json": {
  7294. "schema": {
  7295. "$ref": "#/components/schemas/InvalidRequestError"
  7296. }
  7297. }
  7298. }
  7299. },
  7300. "401": {
  7301. "description": "UnauthorizedError",
  7302. "content": {
  7303. "application/json": {
  7304. "schema": {
  7305. "$ref": "#/components/schemas/UnauthorizedError"
  7306. }
  7307. }
  7308. }
  7309. },
  7310. "404": {
  7311. "description": "SessionNotFoundError | FormNotFoundError",
  7312. "content": {
  7313. "application/json": {
  7314. "schema": {
  7315. "anyOf": [
  7316. {
  7317. "$ref": "#/components/schemas/FormNotFoundError"
  7318. },
  7319. {
  7320. "$ref": "#/components/schemas/SessionNotFoundError"
  7321. },
  7322. {
  7323. "$ref": "#/components/schemas/SessionNotFoundError"
  7324. }
  7325. ]
  7326. }
  7327. }
  7328. }
  7329. }
  7330. },
  7331. "description": "Retrieve the current state for a form.",
  7332. "summary": "Get form state"
  7333. }
  7334. },
  7335. "/api/session/{sessionID}/form/{formID}/reply": {
  7336. "post": {
  7337. "tags": [
  7338. "form"
  7339. ],
  7340. "operationId": "v2.session.form.reply",
  7341. "parameters": [
  7342. {
  7343. "name": "sessionID",
  7344. "in": "path",
  7345. "schema": {
  7346. "type": "string"
  7347. },
  7348. "required": true
  7349. },
  7350. {
  7351. "name": "formID",
  7352. "in": "path",
  7353. "schema": {
  7354. "type": "string",
  7355. "allOf": [
  7356. {
  7357. "pattern": "^frm_"
  7358. }
  7359. ]
  7360. },
  7361. "required": true
  7362. }
  7363. ],
  7364. "security": [],
  7365. "responses": {
  7366. "204": {
  7367. "description": "<No Content>"
  7368. },
  7369. "400": {
  7370. "description": "FormInvalidAnswerError | InvalidRequestError",
  7371. "content": {
  7372. "application/json": {
  7373. "schema": {
  7374. "anyOf": [
  7375. {
  7376. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7377. },
  7378. {
  7379. "$ref": "#/components/schemas/InvalidRequestError"
  7380. }
  7381. ]
  7382. }
  7383. }
  7384. }
  7385. },
  7386. "401": {
  7387. "description": "UnauthorizedError",
  7388. "content": {
  7389. "application/json": {
  7390. "schema": {
  7391. "$ref": "#/components/schemas/UnauthorizedError"
  7392. }
  7393. }
  7394. }
  7395. },
  7396. "404": {
  7397. "description": "SessionNotFoundError | FormNotFoundError",
  7398. "content": {
  7399. "application/json": {
  7400. "schema": {
  7401. "anyOf": [
  7402. {
  7403. "$ref": "#/components/schemas/FormNotFoundError"
  7404. },
  7405. {
  7406. "$ref": "#/components/schemas/SessionNotFoundError"
  7407. },
  7408. {
  7409. "$ref": "#/components/schemas/SessionNotFoundError"
  7410. }
  7411. ]
  7412. }
  7413. }
  7414. }
  7415. },
  7416. "409": {
  7417. "description": "FormAlreadySettledError",
  7418. "content": {
  7419. "application/json": {
  7420. "schema": {
  7421. "$ref": "#/components/schemas/FormAlreadySettledError"
  7422. }
  7423. }
  7424. }
  7425. }
  7426. },
  7427. "description": "Submit an answer to a pending form.",
  7428. "summary": "Reply to form",
  7429. "requestBody": {
  7430. "content": {
  7431. "application/json": {
  7432. "schema": {
  7433. "$ref": "#/components/schemas/Form.Reply"
  7434. }
  7435. }
  7436. },
  7437. "required": true
  7438. }
  7439. }
  7440. },
  7441. "/api/session/{sessionID}/form/{formID}/cancel": {
  7442. "post": {
  7443. "tags": [
  7444. "form"
  7445. ],
  7446. "operationId": "v2.session.form.cancel",
  7447. "parameters": [
  7448. {
  7449. "name": "sessionID",
  7450. "in": "path",
  7451. "schema": {
  7452. "type": "string"
  7453. },
  7454. "required": true
  7455. },
  7456. {
  7457. "name": "formID",
  7458. "in": "path",
  7459. "schema": {
  7460. "type": "string",
  7461. "allOf": [
  7462. {
  7463. "pattern": "^frm_"
  7464. }
  7465. ]
  7466. },
  7467. "required": true
  7468. }
  7469. ],
  7470. "security": [],
  7471. "responses": {
  7472. "204": {
  7473. "description": "<No Content>"
  7474. },
  7475. "400": {
  7476. "description": "InvalidRequestError",
  7477. "content": {
  7478. "application/json": {
  7479. "schema": {
  7480. "$ref": "#/components/schemas/InvalidRequestError"
  7481. }
  7482. }
  7483. }
  7484. },
  7485. "401": {
  7486. "description": "UnauthorizedError",
  7487. "content": {
  7488. "application/json": {
  7489. "schema": {
  7490. "$ref": "#/components/schemas/UnauthorizedError"
  7491. }
  7492. }
  7493. }
  7494. },
  7495. "404": {
  7496. "description": "SessionNotFoundError | FormNotFoundError",
  7497. "content": {
  7498. "application/json": {
  7499. "schema": {
  7500. "anyOf": [
  7501. {
  7502. "$ref": "#/components/schemas/FormNotFoundError"
  7503. },
  7504. {
  7505. "$ref": "#/components/schemas/SessionNotFoundError"
  7506. },
  7507. {
  7508. "$ref": "#/components/schemas/SessionNotFoundError"
  7509. }
  7510. ]
  7511. }
  7512. }
  7513. }
  7514. },
  7515. "409": {
  7516. "description": "FormAlreadySettledError",
  7517. "content": {
  7518. "application/json": {
  7519. "schema": {
  7520. "$ref": "#/components/schemas/FormAlreadySettledError"
  7521. }
  7522. }
  7523. }
  7524. }
  7525. },
  7526. "description": "Cancel a pending form.",
  7527. "summary": "Cancel form"
  7528. }
  7529. },
  7530. "/api/permission/request": {
  7531. "get": {
  7532. "tags": [
  7533. "permission"
  7534. ],
  7535. "operationId": "v2.permission.request.list",
  7536. "parameters": [
  7537. {
  7538. "name": "location",
  7539. "in": "query",
  7540. "schema": {
  7541. "anyOf": [
  7542. {
  7543. "type": "object",
  7544. "properties": {
  7545. "directory": {
  7546. "anyOf": [
  7547. {
  7548. "type": "string"
  7549. },
  7550. {
  7551. "type": "null"
  7552. }
  7553. ]
  7554. },
  7555. "workspace": {
  7556. "anyOf": [
  7557. {
  7558. "type": "string"
  7559. },
  7560. {
  7561. "type": "null"
  7562. }
  7563. ]
  7564. }
  7565. },
  7566. "additionalProperties": false
  7567. },
  7568. {
  7569. "type": "null"
  7570. }
  7571. ]
  7572. },
  7573. "required": false,
  7574. "style": "deepObject",
  7575. "explode": true
  7576. }
  7577. ],
  7578. "security": [],
  7579. "responses": {
  7580. "200": {
  7581. "description": "Success",
  7582. "content": {
  7583. "application/json": {
  7584. "schema": {
  7585. "type": "object",
  7586. "properties": {
  7587. "location": {
  7588. "$ref": "#/components/schemas/Location.Info"
  7589. },
  7590. "data": {
  7591. "type": "array",
  7592. "items": {
  7593. "$ref": "#/components/schemas/Permission.Request"
  7594. }
  7595. }
  7596. },
  7597. "required": [
  7598. "location",
  7599. "data"
  7600. ],
  7601. "additionalProperties": false
  7602. }
  7603. }
  7604. }
  7605. },
  7606. "400": {
  7607. "description": "InvalidRequestError",
  7608. "content": {
  7609. "application/json": {
  7610. "schema": {
  7611. "$ref": "#/components/schemas/InvalidRequestError"
  7612. }
  7613. }
  7614. }
  7615. },
  7616. "401": {
  7617. "description": "UnauthorizedError",
  7618. "content": {
  7619. "application/json": {
  7620. "schema": {
  7621. "$ref": "#/components/schemas/UnauthorizedError"
  7622. }
  7623. }
  7624. }
  7625. }
  7626. },
  7627. "description": "Retrieve pending permission requests for a location.",
  7628. "summary": "List pending permission requests"
  7629. }
  7630. },
  7631. "/api/permission/saved": {
  7632. "get": {
  7633. "tags": [
  7634. "permission"
  7635. ],
  7636. "operationId": "v2.permission.saved.list",
  7637. "parameters": [
  7638. {
  7639. "name": "projectID",
  7640. "in": "query",
  7641. "schema": {
  7642. "anyOf": [
  7643. {
  7644. "type": "string"
  7645. },
  7646. {
  7647. "type": "null"
  7648. }
  7649. ]
  7650. },
  7651. "required": false
  7652. }
  7653. ],
  7654. "security": [],
  7655. "responses": {
  7656. "200": {
  7657. "description": "Success",
  7658. "content": {
  7659. "application/json": {
  7660. "schema": {
  7661. "type": "object",
  7662. "properties": {
  7663. "data": {
  7664. "type": "array",
  7665. "items": {
  7666. "$ref": "#/components/schemas/PermissionSaved.Info"
  7667. }
  7668. }
  7669. },
  7670. "required": [
  7671. "data"
  7672. ],
  7673. "additionalProperties": false
  7674. }
  7675. }
  7676. }
  7677. },
  7678. "400": {
  7679. "description": "InvalidRequestError",
  7680. "content": {
  7681. "application/json": {
  7682. "schema": {
  7683. "$ref": "#/components/schemas/InvalidRequestError"
  7684. }
  7685. }
  7686. }
  7687. },
  7688. "401": {
  7689. "description": "UnauthorizedError",
  7690. "content": {
  7691. "application/json": {
  7692. "schema": {
  7693. "$ref": "#/components/schemas/UnauthorizedError"
  7694. }
  7695. }
  7696. }
  7697. }
  7698. },
  7699. "description": "Retrieve saved permissions, optionally filtered by project.",
  7700. "summary": "List saved permissions"
  7701. }
  7702. },
  7703. "/api/permission/saved/{id}": {
  7704. "delete": {
  7705. "tags": [
  7706. "permission"
  7707. ],
  7708. "operationId": "v2.permission.saved.remove",
  7709. "parameters": [
  7710. {
  7711. "name": "id",
  7712. "in": "path",
  7713. "schema": {
  7714. "type": "string"
  7715. },
  7716. "required": true
  7717. }
  7718. ],
  7719. "security": [],
  7720. "responses": {
  7721. "204": {
  7722. "description": "<No Content>"
  7723. },
  7724. "400": {
  7725. "description": "InvalidRequestError",
  7726. "content": {
  7727. "application/json": {
  7728. "schema": {
  7729. "$ref": "#/components/schemas/InvalidRequestError"
  7730. }
  7731. }
  7732. }
  7733. },
  7734. "401": {
  7735. "description": "UnauthorizedError",
  7736. "content": {
  7737. "application/json": {
  7738. "schema": {
  7739. "$ref": "#/components/schemas/UnauthorizedError"
  7740. }
  7741. }
  7742. }
  7743. }
  7744. },
  7745. "description": "Remove a saved permission by ID.",
  7746. "summary": "Remove saved permission"
  7747. }
  7748. },
  7749. "/api/session/{sessionID}/permission": {
  7750. "post": {
  7751. "tags": [
  7752. "permission"
  7753. ],
  7754. "operationId": "v2.session.permission.create",
  7755. "parameters": [
  7756. {
  7757. "name": "sessionID",
  7758. "in": "path",
  7759. "schema": {
  7760. "type": "string",
  7761. "allOf": [
  7762. {
  7763. "pattern": "^ses"
  7764. }
  7765. ]
  7766. },
  7767. "required": true
  7768. }
  7769. ],
  7770. "security": [],
  7771. "responses": {
  7772. "200": {
  7773. "description": "Success",
  7774. "content": {
  7775. "application/json": {
  7776. "schema": {
  7777. "type": "object",
  7778. "properties": {
  7779. "data": {
  7780. "type": "object",
  7781. "properties": {
  7782. "id": {
  7783. "type": "string",
  7784. "allOf": [
  7785. {
  7786. "pattern": "^per"
  7787. }
  7788. ]
  7789. },
  7790. "effect": {
  7791. "$ref": "#/components/schemas/Permission.Effect"
  7792. }
  7793. },
  7794. "required": [
  7795. "id",
  7796. "effect"
  7797. ],
  7798. "additionalProperties": false
  7799. }
  7800. },
  7801. "required": [
  7802. "data"
  7803. ],
  7804. "additionalProperties": false
  7805. }
  7806. }
  7807. }
  7808. },
  7809. "400": {
  7810. "description": "InvalidRequestError",
  7811. "content": {
  7812. "application/json": {
  7813. "schema": {
  7814. "$ref": "#/components/schemas/InvalidRequestError"
  7815. }
  7816. }
  7817. }
  7818. },
  7819. "401": {
  7820. "description": "UnauthorizedError",
  7821. "content": {
  7822. "application/json": {
  7823. "schema": {
  7824. "$ref": "#/components/schemas/UnauthorizedError"
  7825. }
  7826. }
  7827. }
  7828. },
  7829. "404": {
  7830. "description": "SessionNotFoundError",
  7831. "content": {
  7832. "application/json": {
  7833. "schema": {
  7834. "anyOf": [
  7835. {
  7836. "$ref": "#/components/schemas/SessionNotFoundError"
  7837. },
  7838. {
  7839. "$ref": "#/components/schemas/SessionNotFoundError"
  7840. }
  7841. ]
  7842. }
  7843. }
  7844. }
  7845. }
  7846. },
  7847. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7848. "summary": "Create permission request",
  7849. "requestBody": {
  7850. "content": {
  7851. "application/json": {
  7852. "schema": {
  7853. "type": "object",
  7854. "properties": {
  7855. "id": {
  7856. "anyOf": [
  7857. {
  7858. "type": "string",
  7859. "allOf": [
  7860. {
  7861. "pattern": "^per"
  7862. }
  7863. ]
  7864. },
  7865. {
  7866. "type": "null"
  7867. }
  7868. ]
  7869. },
  7870. "action": {
  7871. "type": "string"
  7872. },
  7873. "resources": {
  7874. "type": "array",
  7875. "items": {
  7876. "type": "string"
  7877. }
  7878. },
  7879. "save": {
  7880. "type": "array",
  7881. "items": {
  7882. "type": "string"
  7883. }
  7884. },
  7885. "metadata": {
  7886. "type": "object"
  7887. },
  7888. "source": {
  7889. "$ref": "#/components/schemas/Permission.Source"
  7890. },
  7891. "agent": {
  7892. "anyOf": [
  7893. {
  7894. "type": "string"
  7895. },
  7896. {
  7897. "type": "null"
  7898. }
  7899. ]
  7900. }
  7901. },
  7902. "required": [
  7903. "action",
  7904. "resources"
  7905. ],
  7906. "additionalProperties": false
  7907. }
  7908. }
  7909. },
  7910. "required": true
  7911. }
  7912. },
  7913. "get": {
  7914. "tags": [
  7915. "permission"
  7916. ],
  7917. "operationId": "v2.session.permission.list",
  7918. "parameters": [
  7919. {
  7920. "name": "sessionID",
  7921. "in": "path",
  7922. "schema": {
  7923. "type": "string",
  7924. "allOf": [
  7925. {
  7926. "pattern": "^ses"
  7927. }
  7928. ]
  7929. },
  7930. "required": true
  7931. }
  7932. ],
  7933. "security": [],
  7934. "responses": {
  7935. "200": {
  7936. "description": "Success",
  7937. "content": {
  7938. "application/json": {
  7939. "schema": {
  7940. "type": "object",
  7941. "properties": {
  7942. "data": {
  7943. "type": "array",
  7944. "items": {
  7945. "$ref": "#/components/schemas/Permission.Request"
  7946. }
  7947. }
  7948. },
  7949. "required": [
  7950. "data"
  7951. ],
  7952. "additionalProperties": false
  7953. }
  7954. }
  7955. }
  7956. },
  7957. "400": {
  7958. "description": "InvalidRequestError",
  7959. "content": {
  7960. "application/json": {
  7961. "schema": {
  7962. "$ref": "#/components/schemas/InvalidRequestError"
  7963. }
  7964. }
  7965. }
  7966. },
  7967. "401": {
  7968. "description": "UnauthorizedError",
  7969. "content": {
  7970. "application/json": {
  7971. "schema": {
  7972. "$ref": "#/components/schemas/UnauthorizedError"
  7973. }
  7974. }
  7975. }
  7976. },
  7977. "404": {
  7978. "description": "SessionNotFoundError",
  7979. "content": {
  7980. "application/json": {
  7981. "schema": {
  7982. "anyOf": [
  7983. {
  7984. "$ref": "#/components/schemas/SessionNotFoundError"
  7985. },
  7986. {
  7987. "$ref": "#/components/schemas/SessionNotFoundError"
  7988. }
  7989. ]
  7990. }
  7991. }
  7992. }
  7993. }
  7994. },
  7995. "description": "Retrieve pending permission requests owned by a session.",
  7996. "summary": "List session permission requests"
  7997. }
  7998. },
  7999. "/api/session/{sessionID}/permission/{requestID}": {
  8000. "get": {
  8001. "tags": [
  8002. "permission"
  8003. ],
  8004. "operationId": "v2.session.permission.get",
  8005. "parameters": [
  8006. {
  8007. "name": "sessionID",
  8008. "in": "path",
  8009. "schema": {
  8010. "type": "string",
  8011. "allOf": [
  8012. {
  8013. "pattern": "^ses"
  8014. }
  8015. ]
  8016. },
  8017. "required": true
  8018. },
  8019. {
  8020. "name": "requestID",
  8021. "in": "path",
  8022. "schema": {
  8023. "type": "string",
  8024. "allOf": [
  8025. {
  8026. "pattern": "^per"
  8027. }
  8028. ]
  8029. },
  8030. "required": true
  8031. }
  8032. ],
  8033. "security": [],
  8034. "responses": {
  8035. "200": {
  8036. "description": "Success",
  8037. "content": {
  8038. "application/json": {
  8039. "schema": {
  8040. "type": "object",
  8041. "properties": {
  8042. "data": {
  8043. "$ref": "#/components/schemas/Permission.Request"
  8044. }
  8045. },
  8046. "required": [
  8047. "data"
  8048. ],
  8049. "additionalProperties": false
  8050. }
  8051. }
  8052. }
  8053. },
  8054. "400": {
  8055. "description": "InvalidRequestError",
  8056. "content": {
  8057. "application/json": {
  8058. "schema": {
  8059. "$ref": "#/components/schemas/InvalidRequestError"
  8060. }
  8061. }
  8062. }
  8063. },
  8064. "401": {
  8065. "description": "UnauthorizedError",
  8066. "content": {
  8067. "application/json": {
  8068. "schema": {
  8069. "$ref": "#/components/schemas/UnauthorizedError"
  8070. }
  8071. }
  8072. }
  8073. },
  8074. "404": {
  8075. "description": "SessionNotFoundError | PermissionNotFoundError",
  8076. "content": {
  8077. "application/json": {
  8078. "schema": {
  8079. "anyOf": [
  8080. {
  8081. "$ref": "#/components/schemas/PermissionNotFoundError"
  8082. },
  8083. {
  8084. "$ref": "#/components/schemas/SessionNotFoundError"
  8085. },
  8086. {
  8087. "$ref": "#/components/schemas/SessionNotFoundError"
  8088. }
  8089. ]
  8090. }
  8091. }
  8092. }
  8093. }
  8094. },
  8095. "description": "Retrieve a pending permission request owned by a session.",
  8096. "summary": "Get permission request"
  8097. }
  8098. },
  8099. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8100. "post": {
  8101. "tags": [
  8102. "permission"
  8103. ],
  8104. "operationId": "v2.session.permission.reply",
  8105. "parameters": [
  8106. {
  8107. "name": "sessionID",
  8108. "in": "path",
  8109. "schema": {
  8110. "type": "string",
  8111. "allOf": [
  8112. {
  8113. "pattern": "^ses"
  8114. }
  8115. ]
  8116. },
  8117. "required": true
  8118. },
  8119. {
  8120. "name": "requestID",
  8121. "in": "path",
  8122. "schema": {
  8123. "type": "string",
  8124. "allOf": [
  8125. {
  8126. "pattern": "^per"
  8127. }
  8128. ]
  8129. },
  8130. "required": true
  8131. }
  8132. ],
  8133. "security": [],
  8134. "responses": {
  8135. "204": {
  8136. "description": "<No Content>"
  8137. },
  8138. "400": {
  8139. "description": "InvalidRequestError",
  8140. "content": {
  8141. "application/json": {
  8142. "schema": {
  8143. "$ref": "#/components/schemas/InvalidRequestError"
  8144. }
  8145. }
  8146. }
  8147. },
  8148. "401": {
  8149. "description": "UnauthorizedError",
  8150. "content": {
  8151. "application/json": {
  8152. "schema": {
  8153. "$ref": "#/components/schemas/UnauthorizedError"
  8154. }
  8155. }
  8156. }
  8157. },
  8158. "404": {
  8159. "description": "SessionNotFoundError | PermissionNotFoundError",
  8160. "content": {
  8161. "application/json": {
  8162. "schema": {
  8163. "anyOf": [
  8164. {
  8165. "$ref": "#/components/schemas/PermissionNotFoundError"
  8166. },
  8167. {
  8168. "$ref": "#/components/schemas/SessionNotFoundError"
  8169. },
  8170. {
  8171. "$ref": "#/components/schemas/SessionNotFoundError"
  8172. }
  8173. ]
  8174. }
  8175. }
  8176. }
  8177. }
  8178. },
  8179. "description": "Respond to a pending permission request owned by a session.",
  8180. "summary": "Reply to pending permission request",
  8181. "requestBody": {
  8182. "content": {
  8183. "application/json": {
  8184. "schema": {
  8185. "type": "object",
  8186. "properties": {
  8187. "reply": {
  8188. "$ref": "#/components/schemas/Permission.Reply"
  8189. },
  8190. "message": {
  8191. "anyOf": [
  8192. {
  8193. "type": "string"
  8194. },
  8195. {
  8196. "type": "null"
  8197. }
  8198. ]
  8199. }
  8200. },
  8201. "required": [
  8202. "reply"
  8203. ],
  8204. "additionalProperties": false
  8205. }
  8206. }
  8207. },
  8208. "required": true
  8209. }
  8210. }
  8211. },
  8212. "/api/fs/read/*": {
  8213. "get": {
  8214. "tags": [
  8215. "filesystem"
  8216. ],
  8217. "operationId": "v2.fs.read",
  8218. "parameters": [
  8219. {
  8220. "name": "location",
  8221. "in": "query",
  8222. "schema": {
  8223. "anyOf": [
  8224. {
  8225. "type": "object",
  8226. "properties": {
  8227. "directory": {
  8228. "anyOf": [
  8229. {
  8230. "type": "string"
  8231. },
  8232. {
  8233. "type": "null"
  8234. }
  8235. ]
  8236. },
  8237. "workspace": {
  8238. "anyOf": [
  8239. {
  8240. "type": "string"
  8241. },
  8242. {
  8243. "type": "null"
  8244. }
  8245. ]
  8246. }
  8247. },
  8248. "additionalProperties": false
  8249. },
  8250. {
  8251. "type": "null"
  8252. }
  8253. ]
  8254. },
  8255. "required": false,
  8256. "style": "deepObject",
  8257. "explode": true
  8258. }
  8259. ],
  8260. "security": [],
  8261. "responses": {
  8262. "200": {
  8263. "description": "Success",
  8264. "content": {
  8265. "application/octet-stream": {
  8266. "schema": {
  8267. "type": "string",
  8268. "format": "binary"
  8269. }
  8270. }
  8271. }
  8272. },
  8273. "400": {
  8274. "description": "InvalidRequestError",
  8275. "content": {
  8276. "application/json": {
  8277. "schema": {
  8278. "$ref": "#/components/schemas/InvalidRequestError"
  8279. }
  8280. }
  8281. }
  8282. },
  8283. "401": {
  8284. "description": "UnauthorizedError",
  8285. "content": {
  8286. "application/json": {
  8287. "schema": {
  8288. "$ref": "#/components/schemas/UnauthorizedError"
  8289. }
  8290. }
  8291. }
  8292. }
  8293. },
  8294. "description": "Serve one file relative to the requested location.",
  8295. "summary": "Read file"
  8296. }
  8297. },
  8298. "/api/fs/list": {
  8299. "get": {
  8300. "tags": [
  8301. "filesystem"
  8302. ],
  8303. "operationId": "v2.fs.list",
  8304. "parameters": [
  8305. {
  8306. "name": "location",
  8307. "in": "query",
  8308. "schema": {
  8309. "anyOf": [
  8310. {
  8311. "type": "object",
  8312. "properties": {
  8313. "directory": {
  8314. "anyOf": [
  8315. {
  8316. "type": "string"
  8317. },
  8318. {
  8319. "type": "null"
  8320. }
  8321. ]
  8322. },
  8323. "workspace": {
  8324. "anyOf": [
  8325. {
  8326. "type": "string"
  8327. },
  8328. {
  8329. "type": "null"
  8330. }
  8331. ]
  8332. }
  8333. },
  8334. "additionalProperties": false
  8335. },
  8336. {
  8337. "type": "null"
  8338. }
  8339. ]
  8340. },
  8341. "required": false,
  8342. "style": "deepObject",
  8343. "explode": true
  8344. },
  8345. {
  8346. "name": "path",
  8347. "in": "query",
  8348. "schema": {
  8349. "anyOf": [
  8350. {
  8351. "type": "string"
  8352. },
  8353. {
  8354. "type": "null"
  8355. }
  8356. ]
  8357. },
  8358. "required": false
  8359. }
  8360. ],
  8361. "security": [],
  8362. "responses": {
  8363. "200": {
  8364. "description": "Success",
  8365. "content": {
  8366. "application/json": {
  8367. "schema": {
  8368. "type": "object",
  8369. "properties": {
  8370. "location": {
  8371. "$ref": "#/components/schemas/Location.Info"
  8372. },
  8373. "data": {
  8374. "type": "array",
  8375. "items": {
  8376. "$ref": "#/components/schemas/FileSystem.Entry"
  8377. }
  8378. }
  8379. },
  8380. "required": [
  8381. "location",
  8382. "data"
  8383. ],
  8384. "additionalProperties": false
  8385. }
  8386. }
  8387. }
  8388. },
  8389. "400": {
  8390. "description": "InvalidRequestError",
  8391. "content": {
  8392. "application/json": {
  8393. "schema": {
  8394. "$ref": "#/components/schemas/InvalidRequestError"
  8395. }
  8396. }
  8397. }
  8398. },
  8399. "401": {
  8400. "description": "UnauthorizedError",
  8401. "content": {
  8402. "application/json": {
  8403. "schema": {
  8404. "$ref": "#/components/schemas/UnauthorizedError"
  8405. }
  8406. }
  8407. }
  8408. }
  8409. },
  8410. "description": "List direct children of one directory relative to the requested location.",
  8411. "summary": "List directory"
  8412. }
  8413. },
  8414. "/api/fs/find": {
  8415. "get": {
  8416. "tags": [
  8417. "filesystem"
  8418. ],
  8419. "operationId": "v2.fs.find",
  8420. "parameters": [
  8421. {
  8422. "name": "location",
  8423. "in": "query",
  8424. "schema": {
  8425. "anyOf": [
  8426. {
  8427. "type": "object",
  8428. "properties": {
  8429. "directory": {
  8430. "anyOf": [
  8431. {
  8432. "type": "string"
  8433. },
  8434. {
  8435. "type": "null"
  8436. }
  8437. ]
  8438. },
  8439. "workspace": {
  8440. "anyOf": [
  8441. {
  8442. "type": "string"
  8443. },
  8444. {
  8445. "type": "null"
  8446. }
  8447. ]
  8448. }
  8449. },
  8450. "additionalProperties": false
  8451. },
  8452. {
  8453. "type": "null"
  8454. }
  8455. ]
  8456. },
  8457. "required": false,
  8458. "style": "deepObject",
  8459. "explode": true
  8460. },
  8461. {
  8462. "name": "query",
  8463. "in": "query",
  8464. "schema": {
  8465. "type": "string"
  8466. },
  8467. "required": true
  8468. },
  8469. {
  8470. "name": "type",
  8471. "in": "query",
  8472. "schema": {
  8473. "type": "string",
  8474. "enum": [
  8475. "file",
  8476. "directory"
  8477. ]
  8478. },
  8479. "required": false
  8480. },
  8481. {
  8482. "name": "limit",
  8483. "in": "query",
  8484. "schema": {
  8485. "anyOf": [
  8486. {
  8487. "type": "string"
  8488. },
  8489. {
  8490. "type": "null"
  8491. }
  8492. ]
  8493. },
  8494. "required": false
  8495. }
  8496. ],
  8497. "security": [],
  8498. "responses": {
  8499. "200": {
  8500. "description": "Success",
  8501. "content": {
  8502. "application/json": {
  8503. "schema": {
  8504. "type": "object",
  8505. "properties": {
  8506. "location": {
  8507. "$ref": "#/components/schemas/Location.Info"
  8508. },
  8509. "data": {
  8510. "type": "array",
  8511. "items": {
  8512. "$ref": "#/components/schemas/FileSystem.Entry"
  8513. }
  8514. }
  8515. },
  8516. "required": [
  8517. "location",
  8518. "data"
  8519. ],
  8520. "additionalProperties": false
  8521. }
  8522. }
  8523. }
  8524. },
  8525. "400": {
  8526. "description": "InvalidRequestError",
  8527. "content": {
  8528. "application/json": {
  8529. "schema": {
  8530. "$ref": "#/components/schemas/InvalidRequestError"
  8531. }
  8532. }
  8533. }
  8534. },
  8535. "401": {
  8536. "description": "UnauthorizedError",
  8537. "content": {
  8538. "application/json": {
  8539. "schema": {
  8540. "$ref": "#/components/schemas/UnauthorizedError"
  8541. }
  8542. }
  8543. }
  8544. }
  8545. },
  8546. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8547. "summary": "Find files"
  8548. }
  8549. },
  8550. "/api/command": {
  8551. "get": {
  8552. "tags": [
  8553. "command"
  8554. ],
  8555. "operationId": "v2.command.list",
  8556. "parameters": [
  8557. {
  8558. "name": "location",
  8559. "in": "query",
  8560. "schema": {
  8561. "anyOf": [
  8562. {
  8563. "type": "object",
  8564. "properties": {
  8565. "directory": {
  8566. "anyOf": [
  8567. {
  8568. "type": "string"
  8569. },
  8570. {
  8571. "type": "null"
  8572. }
  8573. ]
  8574. },
  8575. "workspace": {
  8576. "anyOf": [
  8577. {
  8578. "type": "string"
  8579. },
  8580. {
  8581. "type": "null"
  8582. }
  8583. ]
  8584. }
  8585. },
  8586. "additionalProperties": false
  8587. },
  8588. {
  8589. "type": "null"
  8590. }
  8591. ]
  8592. },
  8593. "required": false,
  8594. "style": "deepObject",
  8595. "explode": true
  8596. }
  8597. ],
  8598. "security": [],
  8599. "responses": {
  8600. "200": {
  8601. "description": "Success",
  8602. "content": {
  8603. "application/json": {
  8604. "schema": {
  8605. "type": "object",
  8606. "properties": {
  8607. "location": {
  8608. "$ref": "#/components/schemas/Location.Info"
  8609. },
  8610. "data": {
  8611. "type": "array",
  8612. "items": {
  8613. "$ref": "#/components/schemas/Command.Info"
  8614. }
  8615. }
  8616. },
  8617. "required": [
  8618. "location",
  8619. "data"
  8620. ],
  8621. "additionalProperties": false
  8622. }
  8623. }
  8624. }
  8625. },
  8626. "400": {
  8627. "description": "InvalidRequestError",
  8628. "content": {
  8629. "application/json": {
  8630. "schema": {
  8631. "$ref": "#/components/schemas/InvalidRequestError"
  8632. }
  8633. }
  8634. }
  8635. },
  8636. "401": {
  8637. "description": "UnauthorizedError",
  8638. "content": {
  8639. "application/json": {
  8640. "schema": {
  8641. "$ref": "#/components/schemas/UnauthorizedError"
  8642. }
  8643. }
  8644. }
  8645. }
  8646. },
  8647. "description": "Retrieve currently registered commands.",
  8648. "summary": "List commands"
  8649. }
  8650. },
  8651. "/api/skill": {
  8652. "get": {
  8653. "tags": [
  8654. "skill"
  8655. ],
  8656. "operationId": "v2.skill.list",
  8657. "parameters": [
  8658. {
  8659. "name": "location",
  8660. "in": "query",
  8661. "schema": {
  8662. "anyOf": [
  8663. {
  8664. "type": "object",
  8665. "properties": {
  8666. "directory": {
  8667. "anyOf": [
  8668. {
  8669. "type": "string"
  8670. },
  8671. {
  8672. "type": "null"
  8673. }
  8674. ]
  8675. },
  8676. "workspace": {
  8677. "anyOf": [
  8678. {
  8679. "type": "string"
  8680. },
  8681. {
  8682. "type": "null"
  8683. }
  8684. ]
  8685. }
  8686. },
  8687. "additionalProperties": false
  8688. },
  8689. {
  8690. "type": "null"
  8691. }
  8692. ]
  8693. },
  8694. "required": false,
  8695. "style": "deepObject",
  8696. "explode": true
  8697. }
  8698. ],
  8699. "security": [],
  8700. "responses": {
  8701. "200": {
  8702. "description": "Success",
  8703. "content": {
  8704. "application/json": {
  8705. "schema": {
  8706. "type": "object",
  8707. "properties": {
  8708. "location": {
  8709. "$ref": "#/components/schemas/Location.Info"
  8710. },
  8711. "data": {
  8712. "type": "array",
  8713. "items": {
  8714. "$ref": "#/components/schemas/Skill.Info"
  8715. }
  8716. }
  8717. },
  8718. "required": [
  8719. "location",
  8720. "data"
  8721. ],
  8722. "additionalProperties": false
  8723. }
  8724. }
  8725. }
  8726. },
  8727. "400": {
  8728. "description": "InvalidRequestError",
  8729. "content": {
  8730. "application/json": {
  8731. "schema": {
  8732. "$ref": "#/components/schemas/InvalidRequestError"
  8733. }
  8734. }
  8735. }
  8736. },
  8737. "401": {
  8738. "description": "UnauthorizedError",
  8739. "content": {
  8740. "application/json": {
  8741. "schema": {
  8742. "$ref": "#/components/schemas/UnauthorizedError"
  8743. }
  8744. }
  8745. }
  8746. }
  8747. },
  8748. "description": "Retrieve currently registered skills.",
  8749. "summary": "List skills"
  8750. }
  8751. },
  8752. "/api/event": {
  8753. "get": {
  8754. "tags": [
  8755. "event"
  8756. ],
  8757. "operationId": "v2.event.subscribe",
  8758. "parameters": [],
  8759. "security": [],
  8760. "responses": {
  8761. "200": {
  8762. "description": "Success",
  8763. "content": {
  8764. "text/event-stream": {
  8765. "schema": {
  8766. "type": "object",
  8767. "properties": {
  8768. "id": {
  8769. "anyOf": [
  8770. {
  8771. "type": "string"
  8772. },
  8773. {
  8774. "type": "null"
  8775. }
  8776. ]
  8777. },
  8778. "event": {
  8779. "type": "string"
  8780. },
  8781. "data": {
  8782. "$ref": "#/components/schemas/V2EventJsonString"
  8783. }
  8784. },
  8785. "required": [
  8786. "id",
  8787. "event",
  8788. "data"
  8789. ],
  8790. "additionalProperties": false
  8791. },
  8792. "x-effect-stream": {
  8793. "encoding": "sse",
  8794. "causeSchema": {
  8795. "type": "array",
  8796. "items": {
  8797. "anyOf": [
  8798. {
  8799. "type": "object",
  8800. "properties": {
  8801. "_tag": {
  8802. "type": "string",
  8803. "enum": [
  8804. "Fail"
  8805. ]
  8806. },
  8807. "error": {
  8808. "not": {}
  8809. }
  8810. },
  8811. "required": [
  8812. "_tag",
  8813. "error"
  8814. ],
  8815. "additionalProperties": false
  8816. },
  8817. {
  8818. "type": "object",
  8819. "properties": {
  8820. "_tag": {
  8821. "type": "string",
  8822. "enum": [
  8823. "Die"
  8824. ]
  8825. },
  8826. "defect": {}
  8827. },
  8828. "required": [
  8829. "_tag",
  8830. "defect"
  8831. ],
  8832. "additionalProperties": false
  8833. },
  8834. {
  8835. "type": "object",
  8836. "properties": {
  8837. "_tag": {
  8838. "type": "string",
  8839. "enum": [
  8840. "Interrupt"
  8841. ]
  8842. },
  8843. "fiberId": {
  8844. "anyOf": [
  8845. {
  8846. "type": "number"
  8847. },
  8848. {
  8849. "type": "null"
  8850. }
  8851. ]
  8852. }
  8853. },
  8854. "required": [
  8855. "_tag",
  8856. "fiberId"
  8857. ],
  8858. "additionalProperties": false
  8859. }
  8860. ]
  8861. }
  8862. },
  8863. "errorSchema": {
  8864. "not": {}
  8865. },
  8866. "failureEvent": "effect/httpapi/stream/failure"
  8867. }
  8868. }
  8869. }
  8870. },
  8871. "400": {
  8872. "description": "InvalidRequestError",
  8873. "content": {
  8874. "application/json": {
  8875. "schema": {
  8876. "$ref": "#/components/schemas/InvalidRequestError"
  8877. }
  8878. }
  8879. }
  8880. },
  8881. "401": {
  8882. "description": "UnauthorizedError",
  8883. "content": {
  8884. "application/json": {
  8885. "schema": {
  8886. "$ref": "#/components/schemas/UnauthorizedError"
  8887. }
  8888. }
  8889. }
  8890. }
  8891. },
  8892. "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.",
  8893. "summary": "Subscribe to events"
  8894. }
  8895. },
  8896. "/api/pty": {
  8897. "get": {
  8898. "tags": [
  8899. "pty"
  8900. ],
  8901. "operationId": "v2.pty.list",
  8902. "parameters": [
  8903. {
  8904. "name": "location",
  8905. "in": "query",
  8906. "schema": {
  8907. "anyOf": [
  8908. {
  8909. "type": "object",
  8910. "properties": {
  8911. "directory": {
  8912. "anyOf": [
  8913. {
  8914. "type": "string"
  8915. },
  8916. {
  8917. "type": "null"
  8918. }
  8919. ]
  8920. },
  8921. "workspace": {
  8922. "anyOf": [
  8923. {
  8924. "type": "string"
  8925. },
  8926. {
  8927. "type": "null"
  8928. }
  8929. ]
  8930. }
  8931. },
  8932. "additionalProperties": false
  8933. },
  8934. {
  8935. "type": "null"
  8936. }
  8937. ]
  8938. },
  8939. "required": false,
  8940. "style": "deepObject",
  8941. "explode": true
  8942. }
  8943. ],
  8944. "security": [],
  8945. "responses": {
  8946. "200": {
  8947. "description": "Success",
  8948. "content": {
  8949. "application/json": {
  8950. "schema": {
  8951. "type": "object",
  8952. "properties": {
  8953. "location": {
  8954. "$ref": "#/components/schemas/Location.Info"
  8955. },
  8956. "data": {
  8957. "type": "array",
  8958. "items": {
  8959. "$ref": "#/components/schemas/Pty"
  8960. }
  8961. }
  8962. },
  8963. "required": [
  8964. "location",
  8965. "data"
  8966. ],
  8967. "additionalProperties": false
  8968. }
  8969. }
  8970. }
  8971. },
  8972. "400": {
  8973. "description": "InvalidRequestError",
  8974. "content": {
  8975. "application/json": {
  8976. "schema": {
  8977. "$ref": "#/components/schemas/InvalidRequestError"
  8978. }
  8979. }
  8980. }
  8981. },
  8982. "401": {
  8983. "description": "UnauthorizedError",
  8984. "content": {
  8985. "application/json": {
  8986. "schema": {
  8987. "$ref": "#/components/schemas/UnauthorizedError"
  8988. }
  8989. }
  8990. }
  8991. }
  8992. },
  8993. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  8994. "summary": "List PTY sessions"
  8995. },
  8996. "post": {
  8997. "tags": [
  8998. "pty"
  8999. ],
  9000. "operationId": "v2.pty.create",
  9001. "parameters": [
  9002. {
  9003. "name": "location",
  9004. "in": "query",
  9005. "schema": {
  9006. "anyOf": [
  9007. {
  9008. "type": "object",
  9009. "properties": {
  9010. "directory": {
  9011. "anyOf": [
  9012. {
  9013. "type": "string"
  9014. },
  9015. {
  9016. "type": "null"
  9017. }
  9018. ]
  9019. },
  9020. "workspace": {
  9021. "anyOf": [
  9022. {
  9023. "type": "string"
  9024. },
  9025. {
  9026. "type": "null"
  9027. }
  9028. ]
  9029. }
  9030. },
  9031. "additionalProperties": false
  9032. },
  9033. {
  9034. "type": "null"
  9035. }
  9036. ]
  9037. },
  9038. "required": false,
  9039. "style": "deepObject",
  9040. "explode": true
  9041. }
  9042. ],
  9043. "security": [],
  9044. "responses": {
  9045. "200": {
  9046. "description": "Success",
  9047. "content": {
  9048. "application/json": {
  9049. "schema": {
  9050. "type": "object",
  9051. "properties": {
  9052. "location": {
  9053. "$ref": "#/components/schemas/Location.Info"
  9054. },
  9055. "data": {
  9056. "$ref": "#/components/schemas/Pty"
  9057. }
  9058. },
  9059. "required": [
  9060. "location",
  9061. "data"
  9062. ],
  9063. "additionalProperties": false
  9064. }
  9065. }
  9066. }
  9067. },
  9068. "400": {
  9069. "description": "InvalidRequestError",
  9070. "content": {
  9071. "application/json": {
  9072. "schema": {
  9073. "$ref": "#/components/schemas/InvalidRequestError"
  9074. }
  9075. }
  9076. }
  9077. },
  9078. "401": {
  9079. "description": "UnauthorizedError",
  9080. "content": {
  9081. "application/json": {
  9082. "schema": {
  9083. "$ref": "#/components/schemas/UnauthorizedError"
  9084. }
  9085. }
  9086. }
  9087. }
  9088. },
  9089. "description": "Create a pseudo-terminal session for a location.",
  9090. "summary": "Create PTY session",
  9091. "requestBody": {
  9092. "content": {
  9093. "application/json": {
  9094. "schema": {
  9095. "type": "object",
  9096. "properties": {
  9097. "command": {
  9098. "type": "string"
  9099. },
  9100. "args": {
  9101. "type": "array",
  9102. "items": {
  9103. "type": "string"
  9104. }
  9105. },
  9106. "cwd": {
  9107. "type": "string"
  9108. },
  9109. "title": {
  9110. "type": "string"
  9111. },
  9112. "env": {
  9113. "type": "object",
  9114. "additionalProperties": {
  9115. "type": "string"
  9116. }
  9117. }
  9118. },
  9119. "additionalProperties": false
  9120. }
  9121. }
  9122. },
  9123. "required": true
  9124. }
  9125. }
  9126. },
  9127. "/api/pty/{ptyID}": {
  9128. "get": {
  9129. "tags": [
  9130. "pty"
  9131. ],
  9132. "operationId": "v2.pty.get",
  9133. "parameters": [
  9134. {
  9135. "name": "ptyID",
  9136. "in": "path",
  9137. "schema": {
  9138. "type": "string",
  9139. "allOf": [
  9140. {
  9141. "pattern": "^pty"
  9142. }
  9143. ]
  9144. },
  9145. "required": true
  9146. },
  9147. {
  9148. "name": "location",
  9149. "in": "query",
  9150. "schema": {
  9151. "anyOf": [
  9152. {
  9153. "type": "object",
  9154. "properties": {
  9155. "directory": {
  9156. "anyOf": [
  9157. {
  9158. "type": "string"
  9159. },
  9160. {
  9161. "type": "null"
  9162. }
  9163. ]
  9164. },
  9165. "workspace": {
  9166. "anyOf": [
  9167. {
  9168. "type": "string"
  9169. },
  9170. {
  9171. "type": "null"
  9172. }
  9173. ]
  9174. }
  9175. },
  9176. "additionalProperties": false
  9177. },
  9178. {
  9179. "type": "null"
  9180. }
  9181. ]
  9182. },
  9183. "required": false,
  9184. "style": "deepObject",
  9185. "explode": true
  9186. }
  9187. ],
  9188. "security": [],
  9189. "responses": {
  9190. "200": {
  9191. "description": "Success",
  9192. "content": {
  9193. "application/json": {
  9194. "schema": {
  9195. "type": "object",
  9196. "properties": {
  9197. "location": {
  9198. "$ref": "#/components/schemas/Location.Info"
  9199. },
  9200. "data": {
  9201. "$ref": "#/components/schemas/Pty"
  9202. }
  9203. },
  9204. "required": [
  9205. "location",
  9206. "data"
  9207. ],
  9208. "additionalProperties": false
  9209. }
  9210. }
  9211. }
  9212. },
  9213. "400": {
  9214. "description": "InvalidRequestError",
  9215. "content": {
  9216. "application/json": {
  9217. "schema": {
  9218. "$ref": "#/components/schemas/InvalidRequestError"
  9219. }
  9220. }
  9221. }
  9222. },
  9223. "401": {
  9224. "description": "UnauthorizedError",
  9225. "content": {
  9226. "application/json": {
  9227. "schema": {
  9228. "$ref": "#/components/schemas/UnauthorizedError"
  9229. }
  9230. }
  9231. }
  9232. },
  9233. "404": {
  9234. "description": "PtyNotFoundError",
  9235. "content": {
  9236. "application/json": {
  9237. "schema": {
  9238. "$ref": "#/components/schemas/PtyNotFoundError"
  9239. }
  9240. }
  9241. }
  9242. }
  9243. },
  9244. "description": "Get one PTY session, including its exit code once exited.",
  9245. "summary": "Get PTY session"
  9246. },
  9247. "put": {
  9248. "tags": [
  9249. "pty"
  9250. ],
  9251. "operationId": "v2.pty.update",
  9252. "parameters": [
  9253. {
  9254. "name": "ptyID",
  9255. "in": "path",
  9256. "schema": {
  9257. "type": "string",
  9258. "allOf": [
  9259. {
  9260. "pattern": "^pty"
  9261. }
  9262. ]
  9263. },
  9264. "required": true
  9265. },
  9266. {
  9267. "name": "location",
  9268. "in": "query",
  9269. "schema": {
  9270. "anyOf": [
  9271. {
  9272. "type": "object",
  9273. "properties": {
  9274. "directory": {
  9275. "anyOf": [
  9276. {
  9277. "type": "string"
  9278. },
  9279. {
  9280. "type": "null"
  9281. }
  9282. ]
  9283. },
  9284. "workspace": {
  9285. "anyOf": [
  9286. {
  9287. "type": "string"
  9288. },
  9289. {
  9290. "type": "null"
  9291. }
  9292. ]
  9293. }
  9294. },
  9295. "additionalProperties": false
  9296. },
  9297. {
  9298. "type": "null"
  9299. }
  9300. ]
  9301. },
  9302. "required": false,
  9303. "style": "deepObject",
  9304. "explode": true
  9305. }
  9306. ],
  9307. "security": [],
  9308. "responses": {
  9309. "200": {
  9310. "description": "Success",
  9311. "content": {
  9312. "application/json": {
  9313. "schema": {
  9314. "type": "object",
  9315. "properties": {
  9316. "location": {
  9317. "$ref": "#/components/schemas/Location.Info"
  9318. },
  9319. "data": {
  9320. "$ref": "#/components/schemas/Pty"
  9321. }
  9322. },
  9323. "required": [
  9324. "location",
  9325. "data"
  9326. ],
  9327. "additionalProperties": false
  9328. }
  9329. }
  9330. }
  9331. },
  9332. "400": {
  9333. "description": "InvalidRequestError",
  9334. "content": {
  9335. "application/json": {
  9336. "schema": {
  9337. "$ref": "#/components/schemas/InvalidRequestError"
  9338. }
  9339. }
  9340. }
  9341. },
  9342. "401": {
  9343. "description": "UnauthorizedError",
  9344. "content": {
  9345. "application/json": {
  9346. "schema": {
  9347. "$ref": "#/components/schemas/UnauthorizedError"
  9348. }
  9349. }
  9350. }
  9351. },
  9352. "404": {
  9353. "description": "PtyNotFoundError",
  9354. "content": {
  9355. "application/json": {
  9356. "schema": {
  9357. "$ref": "#/components/schemas/PtyNotFoundError"
  9358. }
  9359. }
  9360. }
  9361. }
  9362. },
  9363. "description": "Update the title or viewport size of one PTY session.",
  9364. "summary": "Update PTY session",
  9365. "requestBody": {
  9366. "content": {
  9367. "application/json": {
  9368. "schema": {
  9369. "type": "object",
  9370. "properties": {
  9371. "title": {
  9372. "type": "string"
  9373. },
  9374. "size": {
  9375. "type": "object",
  9376. "properties": {
  9377. "rows": {
  9378. "type": "integer",
  9379. "allOf": [
  9380. {
  9381. "exclusiveMinimum": 0
  9382. }
  9383. ]
  9384. },
  9385. "cols": {
  9386. "type": "integer",
  9387. "allOf": [
  9388. {
  9389. "exclusiveMinimum": 0
  9390. }
  9391. ]
  9392. }
  9393. },
  9394. "required": [
  9395. "rows",
  9396. "cols"
  9397. ],
  9398. "additionalProperties": false
  9399. }
  9400. },
  9401. "additionalProperties": false
  9402. }
  9403. }
  9404. },
  9405. "required": true
  9406. }
  9407. },
  9408. "delete": {
  9409. "tags": [
  9410. "pty"
  9411. ],
  9412. "operationId": "v2.pty.remove",
  9413. "parameters": [
  9414. {
  9415. "name": "ptyID",
  9416. "in": "path",
  9417. "schema": {
  9418. "type": "string",
  9419. "allOf": [
  9420. {
  9421. "pattern": "^pty"
  9422. }
  9423. ]
  9424. },
  9425. "required": true
  9426. },
  9427. {
  9428. "name": "location",
  9429. "in": "query",
  9430. "schema": {
  9431. "anyOf": [
  9432. {
  9433. "type": "object",
  9434. "properties": {
  9435. "directory": {
  9436. "anyOf": [
  9437. {
  9438. "type": "string"
  9439. },
  9440. {
  9441. "type": "null"
  9442. }
  9443. ]
  9444. },
  9445. "workspace": {
  9446. "anyOf": [
  9447. {
  9448. "type": "string"
  9449. },
  9450. {
  9451. "type": "null"
  9452. }
  9453. ]
  9454. }
  9455. },
  9456. "additionalProperties": false
  9457. },
  9458. {
  9459. "type": "null"
  9460. }
  9461. ]
  9462. },
  9463. "required": false,
  9464. "style": "deepObject",
  9465. "explode": true
  9466. }
  9467. ],
  9468. "security": [],
  9469. "responses": {
  9470. "204": {
  9471. "description": "<No Content>"
  9472. },
  9473. "400": {
  9474. "description": "InvalidRequestError",
  9475. "content": {
  9476. "application/json": {
  9477. "schema": {
  9478. "$ref": "#/components/schemas/InvalidRequestError"
  9479. }
  9480. }
  9481. }
  9482. },
  9483. "401": {
  9484. "description": "UnauthorizedError",
  9485. "content": {
  9486. "application/json": {
  9487. "schema": {
  9488. "$ref": "#/components/schemas/UnauthorizedError"
  9489. }
  9490. }
  9491. }
  9492. },
  9493. "404": {
  9494. "description": "PtyNotFoundError",
  9495. "content": {
  9496. "application/json": {
  9497. "schema": {
  9498. "$ref": "#/components/schemas/PtyNotFoundError"
  9499. }
  9500. }
  9501. }
  9502. }
  9503. },
  9504. "description": "Terminate and remove one PTY session.",
  9505. "summary": "Remove PTY session"
  9506. }
  9507. },
  9508. "/api/pty/{ptyID}/connect-token": {
  9509. "post": {
  9510. "tags": [
  9511. "pty"
  9512. ],
  9513. "operationId": "v2.pty.connect.token",
  9514. "parameters": [
  9515. {
  9516. "name": "ptyID",
  9517. "in": "path",
  9518. "schema": {
  9519. "type": "string",
  9520. "allOf": [
  9521. {
  9522. "pattern": "^pty"
  9523. }
  9524. ]
  9525. },
  9526. "required": true
  9527. },
  9528. {
  9529. "name": "location",
  9530. "in": "query",
  9531. "schema": {
  9532. "anyOf": [
  9533. {
  9534. "type": "object",
  9535. "properties": {
  9536. "directory": {
  9537. "anyOf": [
  9538. {
  9539. "type": "string"
  9540. },
  9541. {
  9542. "type": "null"
  9543. }
  9544. ]
  9545. },
  9546. "workspace": {
  9547. "anyOf": [
  9548. {
  9549. "type": "string"
  9550. },
  9551. {
  9552. "type": "null"
  9553. }
  9554. ]
  9555. }
  9556. },
  9557. "additionalProperties": false
  9558. },
  9559. {
  9560. "type": "null"
  9561. }
  9562. ]
  9563. },
  9564. "required": false,
  9565. "style": "deepObject",
  9566. "explode": true
  9567. }
  9568. ],
  9569. "security": [],
  9570. "responses": {
  9571. "200": {
  9572. "description": "Success",
  9573. "content": {
  9574. "application/json": {
  9575. "schema": {
  9576. "type": "object",
  9577. "properties": {
  9578. "location": {
  9579. "$ref": "#/components/schemas/Location.Info"
  9580. },
  9581. "data": {
  9582. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9583. }
  9584. },
  9585. "required": [
  9586. "location",
  9587. "data"
  9588. ],
  9589. "additionalProperties": false
  9590. }
  9591. }
  9592. }
  9593. },
  9594. "400": {
  9595. "description": "InvalidRequestError",
  9596. "content": {
  9597. "application/json": {
  9598. "schema": {
  9599. "$ref": "#/components/schemas/InvalidRequestError"
  9600. }
  9601. }
  9602. }
  9603. },
  9604. "401": {
  9605. "description": "UnauthorizedError",
  9606. "content": {
  9607. "application/json": {
  9608. "schema": {
  9609. "$ref": "#/components/schemas/UnauthorizedError"
  9610. }
  9611. }
  9612. }
  9613. },
  9614. "403": {
  9615. "description": "ForbiddenError",
  9616. "content": {
  9617. "application/json": {
  9618. "schema": {
  9619. "$ref": "#/components/schemas/ForbiddenError"
  9620. }
  9621. }
  9622. }
  9623. },
  9624. "404": {
  9625. "description": "PtyNotFoundError",
  9626. "content": {
  9627. "application/json": {
  9628. "schema": {
  9629. "$ref": "#/components/schemas/PtyNotFoundError"
  9630. }
  9631. }
  9632. }
  9633. }
  9634. },
  9635. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9636. "summary": "Create PTY WebSocket token"
  9637. }
  9638. },
  9639. "/api/pty/{ptyID}/connect": {
  9640. "get": {
  9641. "tags": [
  9642. "pty"
  9643. ],
  9644. "operationId": "v2.pty.connect",
  9645. "parameters": [
  9646. {
  9647. "name": "ptyID",
  9648. "in": "path",
  9649. "schema": {
  9650. "type": "string",
  9651. "allOf": [
  9652. {
  9653. "pattern": "^pty"
  9654. }
  9655. ]
  9656. },
  9657. "required": true
  9658. },
  9659. {
  9660. "in": "query",
  9661. "name": "location[directory]",
  9662. "schema": {
  9663. "type": "string"
  9664. }
  9665. },
  9666. {
  9667. "in": "query",
  9668. "name": "location[workspace]",
  9669. "schema": {
  9670. "type": "string"
  9671. }
  9672. },
  9673. {
  9674. "in": "query",
  9675. "name": "cursor",
  9676. "schema": {
  9677. "type": "string"
  9678. }
  9679. },
  9680. {
  9681. "in": "query",
  9682. "name": "ticket",
  9683. "schema": {
  9684. "type": "string"
  9685. }
  9686. }
  9687. ],
  9688. "security": [],
  9689. "responses": {
  9690. "200": {
  9691. "description": "Success",
  9692. "content": {
  9693. "application/json": {
  9694. "schema": {
  9695. "type": "boolean"
  9696. }
  9697. }
  9698. }
  9699. },
  9700. "400": {
  9701. "description": "InvalidRequestError",
  9702. "content": {
  9703. "application/json": {
  9704. "schema": {
  9705. "$ref": "#/components/schemas/InvalidRequestError"
  9706. }
  9707. }
  9708. }
  9709. },
  9710. "401": {
  9711. "description": "UnauthorizedError",
  9712. "content": {
  9713. "application/json": {
  9714. "schema": {
  9715. "$ref": "#/components/schemas/UnauthorizedError"
  9716. }
  9717. }
  9718. }
  9719. },
  9720. "403": {
  9721. "description": "ForbiddenError",
  9722. "content": {
  9723. "application/json": {
  9724. "schema": {
  9725. "$ref": "#/components/schemas/ForbiddenError"
  9726. }
  9727. }
  9728. }
  9729. },
  9730. "404": {
  9731. "description": "PtyNotFoundError",
  9732. "content": {
  9733. "application/json": {
  9734. "schema": {
  9735. "$ref": "#/components/schemas/PtyNotFoundError"
  9736. }
  9737. }
  9738. }
  9739. }
  9740. },
  9741. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9742. "summary": "Connect to PTY session",
  9743. "x-websocket": true
  9744. }
  9745. },
  9746. "/api/shell": {
  9747. "get": {
  9748. "tags": [
  9749. "shell"
  9750. ],
  9751. "operationId": "v2.shell.list",
  9752. "parameters": [
  9753. {
  9754. "name": "location",
  9755. "in": "query",
  9756. "schema": {
  9757. "anyOf": [
  9758. {
  9759. "type": "object",
  9760. "properties": {
  9761. "directory": {
  9762. "anyOf": [
  9763. {
  9764. "type": "string"
  9765. },
  9766. {
  9767. "type": "null"
  9768. }
  9769. ]
  9770. },
  9771. "workspace": {
  9772. "anyOf": [
  9773. {
  9774. "type": "string"
  9775. },
  9776. {
  9777. "type": "null"
  9778. }
  9779. ]
  9780. }
  9781. },
  9782. "additionalProperties": false
  9783. },
  9784. {
  9785. "type": "null"
  9786. }
  9787. ]
  9788. },
  9789. "required": false,
  9790. "style": "deepObject",
  9791. "explode": true
  9792. }
  9793. ],
  9794. "security": [],
  9795. "responses": {
  9796. "200": {
  9797. "description": "Success",
  9798. "content": {
  9799. "application/json": {
  9800. "schema": {
  9801. "type": "object",
  9802. "properties": {
  9803. "location": {
  9804. "$ref": "#/components/schemas/Location.Info"
  9805. },
  9806. "data": {
  9807. "type": "array",
  9808. "items": {
  9809. "$ref": "#/components/schemas/Shell.Info1"
  9810. }
  9811. }
  9812. },
  9813. "required": [
  9814. "location",
  9815. "data"
  9816. ],
  9817. "additionalProperties": false
  9818. }
  9819. }
  9820. }
  9821. },
  9822. "400": {
  9823. "description": "InvalidRequestError",
  9824. "content": {
  9825. "application/json": {
  9826. "schema": {
  9827. "$ref": "#/components/schemas/InvalidRequestError"
  9828. }
  9829. }
  9830. }
  9831. },
  9832. "401": {
  9833. "description": "UnauthorizedError",
  9834. "content": {
  9835. "application/json": {
  9836. "schema": {
  9837. "$ref": "#/components/schemas/UnauthorizedError"
  9838. }
  9839. }
  9840. }
  9841. }
  9842. },
  9843. "description": "List currently running shell commands for a location. Exited commands are not included.",
  9844. "summary": "List running shell commands"
  9845. },
  9846. "post": {
  9847. "tags": [
  9848. "shell"
  9849. ],
  9850. "operationId": "v2.shell.create",
  9851. "parameters": [
  9852. {
  9853. "name": "location",
  9854. "in": "query",
  9855. "schema": {
  9856. "anyOf": [
  9857. {
  9858. "type": "object",
  9859. "properties": {
  9860. "directory": {
  9861. "anyOf": [
  9862. {
  9863. "type": "string"
  9864. },
  9865. {
  9866. "type": "null"
  9867. }
  9868. ]
  9869. },
  9870. "workspace": {
  9871. "anyOf": [
  9872. {
  9873. "type": "string"
  9874. },
  9875. {
  9876. "type": "null"
  9877. }
  9878. ]
  9879. }
  9880. },
  9881. "additionalProperties": false
  9882. },
  9883. {
  9884. "type": "null"
  9885. }
  9886. ]
  9887. },
  9888. "required": false,
  9889. "style": "deepObject",
  9890. "explode": true
  9891. }
  9892. ],
  9893. "security": [],
  9894. "responses": {
  9895. "200": {
  9896. "description": "Success",
  9897. "content": {
  9898. "application/json": {
  9899. "schema": {
  9900. "type": "object",
  9901. "properties": {
  9902. "location": {
  9903. "$ref": "#/components/schemas/Location.Info"
  9904. },
  9905. "data": {
  9906. "$ref": "#/components/schemas/Shell.Info1"
  9907. }
  9908. },
  9909. "required": [
  9910. "location",
  9911. "data"
  9912. ],
  9913. "additionalProperties": false
  9914. }
  9915. }
  9916. }
  9917. },
  9918. "400": {
  9919. "description": "InvalidRequestError",
  9920. "content": {
  9921. "application/json": {
  9922. "schema": {
  9923. "$ref": "#/components/schemas/InvalidRequestError"
  9924. }
  9925. }
  9926. }
  9927. },
  9928. "401": {
  9929. "description": "UnauthorizedError",
  9930. "content": {
  9931. "application/json": {
  9932. "schema": {
  9933. "$ref": "#/components/schemas/UnauthorizedError"
  9934. }
  9935. }
  9936. }
  9937. }
  9938. },
  9939. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9940. "summary": "Run shell command",
  9941. "requestBody": {
  9942. "content": {
  9943. "application/json": {
  9944. "schema": {
  9945. "type": "object",
  9946. "properties": {
  9947. "command": {
  9948. "type": "string"
  9949. },
  9950. "cwd": {
  9951. "type": "string"
  9952. },
  9953. "timeout": {
  9954. "type": "integer",
  9955. "allOf": [
  9956. {
  9957. "minimum": 0
  9958. }
  9959. ]
  9960. },
  9961. "metadata": {
  9962. "type": "object"
  9963. }
  9964. },
  9965. "required": [
  9966. "command",
  9967. "timeout"
  9968. ],
  9969. "additionalProperties": false
  9970. }
  9971. }
  9972. },
  9973. "required": true
  9974. }
  9975. }
  9976. },
  9977. "/api/shell/{id}": {
  9978. "get": {
  9979. "tags": [
  9980. "shell"
  9981. ],
  9982. "operationId": "v2.shell.get",
  9983. "parameters": [
  9984. {
  9985. "name": "id",
  9986. "in": "path",
  9987. "schema": {
  9988. "type": "string",
  9989. "allOf": [
  9990. {
  9991. "pattern": "^sh_"
  9992. }
  9993. ]
  9994. },
  9995. "required": true
  9996. },
  9997. {
  9998. "name": "location",
  9999. "in": "query",
  10000. "schema": {
  10001. "anyOf": [
  10002. {
  10003. "type": "object",
  10004. "properties": {
  10005. "directory": {
  10006. "anyOf": [
  10007. {
  10008. "type": "string"
  10009. },
  10010. {
  10011. "type": "null"
  10012. }
  10013. ]
  10014. },
  10015. "workspace": {
  10016. "anyOf": [
  10017. {
  10018. "type": "string"
  10019. },
  10020. {
  10021. "type": "null"
  10022. }
  10023. ]
  10024. }
  10025. },
  10026. "additionalProperties": false
  10027. },
  10028. {
  10029. "type": "null"
  10030. }
  10031. ]
  10032. },
  10033. "required": false,
  10034. "style": "deepObject",
  10035. "explode": true
  10036. }
  10037. ],
  10038. "security": [],
  10039. "responses": {
  10040. "200": {
  10041. "description": "Success",
  10042. "content": {
  10043. "application/json": {
  10044. "schema": {
  10045. "type": "object",
  10046. "properties": {
  10047. "location": {
  10048. "$ref": "#/components/schemas/Location.Info"
  10049. },
  10050. "data": {
  10051. "$ref": "#/components/schemas/Shell.Info1"
  10052. }
  10053. },
  10054. "required": [
  10055. "location",
  10056. "data"
  10057. ],
  10058. "additionalProperties": false
  10059. }
  10060. }
  10061. }
  10062. },
  10063. "400": {
  10064. "description": "InvalidRequestError",
  10065. "content": {
  10066. "application/json": {
  10067. "schema": {
  10068. "$ref": "#/components/schemas/InvalidRequestError"
  10069. }
  10070. }
  10071. }
  10072. },
  10073. "401": {
  10074. "description": "UnauthorizedError",
  10075. "content": {
  10076. "application/json": {
  10077. "schema": {
  10078. "$ref": "#/components/schemas/UnauthorizedError"
  10079. }
  10080. }
  10081. }
  10082. },
  10083. "404": {
  10084. "description": "ShellNotFoundError",
  10085. "content": {
  10086. "application/json": {
  10087. "schema": {
  10088. "$ref": "#/components/schemas/ShellNotFoundError"
  10089. }
  10090. }
  10091. }
  10092. }
  10093. },
  10094. "description": "Get one shell command, including its status and exit code once exited.",
  10095. "summary": "Get shell command"
  10096. },
  10097. "delete": {
  10098. "tags": [
  10099. "shell"
  10100. ],
  10101. "operationId": "v2.shell.remove",
  10102. "parameters": [
  10103. {
  10104. "name": "id",
  10105. "in": "path",
  10106. "schema": {
  10107. "type": "string",
  10108. "allOf": [
  10109. {
  10110. "pattern": "^sh_"
  10111. }
  10112. ]
  10113. },
  10114. "required": true
  10115. },
  10116. {
  10117. "name": "location",
  10118. "in": "query",
  10119. "schema": {
  10120. "anyOf": [
  10121. {
  10122. "type": "object",
  10123. "properties": {
  10124. "directory": {
  10125. "anyOf": [
  10126. {
  10127. "type": "string"
  10128. },
  10129. {
  10130. "type": "null"
  10131. }
  10132. ]
  10133. },
  10134. "workspace": {
  10135. "anyOf": [
  10136. {
  10137. "type": "string"
  10138. },
  10139. {
  10140. "type": "null"
  10141. }
  10142. ]
  10143. }
  10144. },
  10145. "additionalProperties": false
  10146. },
  10147. {
  10148. "type": "null"
  10149. }
  10150. ]
  10151. },
  10152. "required": false,
  10153. "style": "deepObject",
  10154. "explode": true
  10155. }
  10156. ],
  10157. "security": [],
  10158. "responses": {
  10159. "204": {
  10160. "description": "<No Content>"
  10161. },
  10162. "400": {
  10163. "description": "InvalidRequestError",
  10164. "content": {
  10165. "application/json": {
  10166. "schema": {
  10167. "$ref": "#/components/schemas/InvalidRequestError"
  10168. }
  10169. }
  10170. }
  10171. },
  10172. "401": {
  10173. "description": "UnauthorizedError",
  10174. "content": {
  10175. "application/json": {
  10176. "schema": {
  10177. "$ref": "#/components/schemas/UnauthorizedError"
  10178. }
  10179. }
  10180. }
  10181. },
  10182. "404": {
  10183. "description": "ShellNotFoundError",
  10184. "content": {
  10185. "application/json": {
  10186. "schema": {
  10187. "$ref": "#/components/schemas/ShellNotFoundError"
  10188. }
  10189. }
  10190. }
  10191. }
  10192. },
  10193. "description": "Terminate and remove one shell command and its retained output.",
  10194. "summary": "Remove shell command"
  10195. }
  10196. },
  10197. "/api/shell/{id}/timeout": {
  10198. "patch": {
  10199. "tags": [
  10200. "shell"
  10201. ],
  10202. "operationId": "v2.shell.timeout",
  10203. "parameters": [
  10204. {
  10205. "name": "id",
  10206. "in": "path",
  10207. "schema": {
  10208. "type": "string",
  10209. "allOf": [
  10210. {
  10211. "pattern": "^sh_"
  10212. }
  10213. ]
  10214. },
  10215. "required": true
  10216. },
  10217. {
  10218. "name": "location",
  10219. "in": "query",
  10220. "schema": {
  10221. "anyOf": [
  10222. {
  10223. "type": "object",
  10224. "properties": {
  10225. "directory": {
  10226. "anyOf": [
  10227. {
  10228. "type": "string"
  10229. },
  10230. {
  10231. "type": "null"
  10232. }
  10233. ]
  10234. },
  10235. "workspace": {
  10236. "anyOf": [
  10237. {
  10238. "type": "string"
  10239. },
  10240. {
  10241. "type": "null"
  10242. }
  10243. ]
  10244. }
  10245. },
  10246. "additionalProperties": false
  10247. },
  10248. {
  10249. "type": "null"
  10250. }
  10251. ]
  10252. },
  10253. "required": false,
  10254. "style": "deepObject",
  10255. "explode": true
  10256. }
  10257. ],
  10258. "security": [],
  10259. "responses": {
  10260. "200": {
  10261. "description": "Success",
  10262. "content": {
  10263. "application/json": {
  10264. "schema": {
  10265. "type": "object",
  10266. "properties": {
  10267. "location": {
  10268. "$ref": "#/components/schemas/Location.Info"
  10269. },
  10270. "data": {
  10271. "$ref": "#/components/schemas/Shell.Info1"
  10272. }
  10273. },
  10274. "required": [
  10275. "location",
  10276. "data"
  10277. ],
  10278. "additionalProperties": false
  10279. }
  10280. }
  10281. }
  10282. },
  10283. "400": {
  10284. "description": "InvalidRequestError",
  10285. "content": {
  10286. "application/json": {
  10287. "schema": {
  10288. "$ref": "#/components/schemas/InvalidRequestError"
  10289. }
  10290. }
  10291. }
  10292. },
  10293. "401": {
  10294. "description": "UnauthorizedError",
  10295. "content": {
  10296. "application/json": {
  10297. "schema": {
  10298. "$ref": "#/components/schemas/UnauthorizedError"
  10299. }
  10300. }
  10301. }
  10302. },
  10303. "404": {
  10304. "description": "ShellNotFoundError",
  10305. "content": {
  10306. "application/json": {
  10307. "schema": {
  10308. "$ref": "#/components/schemas/ShellNotFoundError"
  10309. }
  10310. }
  10311. }
  10312. }
  10313. },
  10314. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10315. "summary": "Update shell timeout",
  10316. "requestBody": {
  10317. "content": {
  10318. "application/json": {
  10319. "schema": {
  10320. "type": "object",
  10321. "properties": {
  10322. "timeout": {
  10323. "type": "integer",
  10324. "allOf": [
  10325. {
  10326. "minimum": 0
  10327. }
  10328. ]
  10329. }
  10330. },
  10331. "required": [
  10332. "timeout"
  10333. ],
  10334. "additionalProperties": false
  10335. }
  10336. }
  10337. },
  10338. "required": true
  10339. }
  10340. }
  10341. },
  10342. "/api/shell/{id}/output": {
  10343. "get": {
  10344. "tags": [
  10345. "shell"
  10346. ],
  10347. "operationId": "v2.shell.output",
  10348. "parameters": [
  10349. {
  10350. "name": "id",
  10351. "in": "path",
  10352. "schema": {
  10353. "type": "string",
  10354. "allOf": [
  10355. {
  10356. "pattern": "^sh_"
  10357. }
  10358. ]
  10359. },
  10360. "required": true
  10361. },
  10362. {
  10363. "name": "location",
  10364. "in": "query",
  10365. "schema": {
  10366. "anyOf": [
  10367. {
  10368. "type": "object",
  10369. "properties": {
  10370. "directory": {
  10371. "anyOf": [
  10372. {
  10373. "type": "string"
  10374. },
  10375. {
  10376. "type": "null"
  10377. }
  10378. ]
  10379. },
  10380. "workspace": {
  10381. "anyOf": [
  10382. {
  10383. "type": "string"
  10384. },
  10385. {
  10386. "type": "null"
  10387. }
  10388. ]
  10389. }
  10390. },
  10391. "additionalProperties": false
  10392. },
  10393. {
  10394. "type": "null"
  10395. }
  10396. ]
  10397. },
  10398. "required": false,
  10399. "style": "deepObject",
  10400. "explode": true
  10401. },
  10402. {
  10403. "name": "cursor",
  10404. "in": "query",
  10405. "schema": {
  10406. "type": "string",
  10407. "allOf": [
  10408. {
  10409. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10410. }
  10411. ]
  10412. },
  10413. "required": false
  10414. },
  10415. {
  10416. "name": "limit",
  10417. "in": "query",
  10418. "schema": {
  10419. "type": "string",
  10420. "allOf": [
  10421. {
  10422. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10423. }
  10424. ]
  10425. },
  10426. "required": false
  10427. }
  10428. ],
  10429. "security": [],
  10430. "responses": {
  10431. "200": {
  10432. "description": "Success",
  10433. "content": {
  10434. "application/json": {
  10435. "schema": {
  10436. "type": "object",
  10437. "properties": {
  10438. "location": {
  10439. "$ref": "#/components/schemas/Location.Info"
  10440. },
  10441. "data": {
  10442. "type": "object",
  10443. "properties": {
  10444. "output": {
  10445. "type": "string"
  10446. },
  10447. "cursor": {
  10448. "type": "integer",
  10449. "allOf": [
  10450. {
  10451. "minimum": 0
  10452. }
  10453. ]
  10454. },
  10455. "size": {
  10456. "type": "integer",
  10457. "allOf": [
  10458. {
  10459. "minimum": 0
  10460. }
  10461. ]
  10462. },
  10463. "truncated": {
  10464. "type": "boolean"
  10465. }
  10466. },
  10467. "required": [
  10468. "output",
  10469. "cursor",
  10470. "size",
  10471. "truncated"
  10472. ],
  10473. "additionalProperties": false
  10474. }
  10475. },
  10476. "required": [
  10477. "location",
  10478. "data"
  10479. ],
  10480. "additionalProperties": false
  10481. }
  10482. }
  10483. }
  10484. },
  10485. "400": {
  10486. "description": "InvalidRequestError",
  10487. "content": {
  10488. "application/json": {
  10489. "schema": {
  10490. "$ref": "#/components/schemas/InvalidRequestError"
  10491. }
  10492. }
  10493. }
  10494. },
  10495. "401": {
  10496. "description": "UnauthorizedError",
  10497. "content": {
  10498. "application/json": {
  10499. "schema": {
  10500. "$ref": "#/components/schemas/UnauthorizedError"
  10501. }
  10502. }
  10503. }
  10504. },
  10505. "404": {
  10506. "description": "ShellNotFoundError",
  10507. "content": {
  10508. "application/json": {
  10509. "schema": {
  10510. "$ref": "#/components/schemas/ShellNotFoundError"
  10511. }
  10512. }
  10513. }
  10514. }
  10515. },
  10516. "description": "Page through captured combined output by absolute byte cursor.",
  10517. "summary": "Read shell output"
  10518. }
  10519. },
  10520. "/api/question/request": {
  10521. "get": {
  10522. "tags": [
  10523. "question"
  10524. ],
  10525. "operationId": "v2.question.request.list",
  10526. "parameters": [
  10527. {
  10528. "name": "location",
  10529. "in": "query",
  10530. "schema": {
  10531. "anyOf": [
  10532. {
  10533. "type": "object",
  10534. "properties": {
  10535. "directory": {
  10536. "anyOf": [
  10537. {
  10538. "type": "string"
  10539. },
  10540. {
  10541. "type": "null"
  10542. }
  10543. ]
  10544. },
  10545. "workspace": {
  10546. "anyOf": [
  10547. {
  10548. "type": "string"
  10549. },
  10550. {
  10551. "type": "null"
  10552. }
  10553. ]
  10554. }
  10555. },
  10556. "additionalProperties": false
  10557. },
  10558. {
  10559. "type": "null"
  10560. }
  10561. ]
  10562. },
  10563. "required": false,
  10564. "style": "deepObject",
  10565. "explode": true
  10566. }
  10567. ],
  10568. "security": [],
  10569. "responses": {
  10570. "200": {
  10571. "description": "Success",
  10572. "content": {
  10573. "application/json": {
  10574. "schema": {
  10575. "type": "object",
  10576. "properties": {
  10577. "location": {
  10578. "$ref": "#/components/schemas/Location.Info"
  10579. },
  10580. "data": {
  10581. "type": "array",
  10582. "items": {
  10583. "$ref": "#/components/schemas/Question.Request"
  10584. }
  10585. }
  10586. },
  10587. "required": [
  10588. "location",
  10589. "data"
  10590. ],
  10591. "additionalProperties": false
  10592. }
  10593. }
  10594. }
  10595. },
  10596. "400": {
  10597. "description": "InvalidRequestError",
  10598. "content": {
  10599. "application/json": {
  10600. "schema": {
  10601. "$ref": "#/components/schemas/InvalidRequestError"
  10602. }
  10603. }
  10604. }
  10605. },
  10606. "401": {
  10607. "description": "UnauthorizedError",
  10608. "content": {
  10609. "application/json": {
  10610. "schema": {
  10611. "$ref": "#/components/schemas/UnauthorizedError"
  10612. }
  10613. }
  10614. }
  10615. }
  10616. },
  10617. "description": "Retrieve pending question requests for a location.",
  10618. "summary": "List pending question requests"
  10619. }
  10620. },
  10621. "/api/session/{sessionID}/question": {
  10622. "get": {
  10623. "tags": [
  10624. "question"
  10625. ],
  10626. "operationId": "v2.session.question.list",
  10627. "parameters": [
  10628. {
  10629. "name": "sessionID",
  10630. "in": "path",
  10631. "schema": {
  10632. "type": "string",
  10633. "allOf": [
  10634. {
  10635. "pattern": "^ses"
  10636. }
  10637. ]
  10638. },
  10639. "required": true
  10640. }
  10641. ],
  10642. "security": [],
  10643. "responses": {
  10644. "200": {
  10645. "description": "Success",
  10646. "content": {
  10647. "application/json": {
  10648. "schema": {
  10649. "type": "object",
  10650. "properties": {
  10651. "data": {
  10652. "type": "array",
  10653. "items": {
  10654. "$ref": "#/components/schemas/Question.Request"
  10655. }
  10656. }
  10657. },
  10658. "required": [
  10659. "data"
  10660. ],
  10661. "additionalProperties": false
  10662. }
  10663. }
  10664. }
  10665. },
  10666. "400": {
  10667. "description": "InvalidRequestError",
  10668. "content": {
  10669. "application/json": {
  10670. "schema": {
  10671. "$ref": "#/components/schemas/InvalidRequestError"
  10672. }
  10673. }
  10674. }
  10675. },
  10676. "401": {
  10677. "description": "UnauthorizedError",
  10678. "content": {
  10679. "application/json": {
  10680. "schema": {
  10681. "$ref": "#/components/schemas/UnauthorizedError"
  10682. }
  10683. }
  10684. }
  10685. },
  10686. "404": {
  10687. "description": "SessionNotFoundError",
  10688. "content": {
  10689. "application/json": {
  10690. "schema": {
  10691. "anyOf": [
  10692. {
  10693. "$ref": "#/components/schemas/SessionNotFoundError"
  10694. },
  10695. {
  10696. "$ref": "#/components/schemas/SessionNotFoundError"
  10697. }
  10698. ]
  10699. }
  10700. }
  10701. }
  10702. }
  10703. },
  10704. "description": "Retrieve pending question requests owned by a session.",
  10705. "summary": "List session question requests"
  10706. }
  10707. },
  10708. "/api/session/{sessionID}/question/{requestID}/reply": {
  10709. "post": {
  10710. "tags": [
  10711. "question"
  10712. ],
  10713. "operationId": "v2.session.question.reply",
  10714. "parameters": [
  10715. {
  10716. "name": "sessionID",
  10717. "in": "path",
  10718. "schema": {
  10719. "type": "string",
  10720. "allOf": [
  10721. {
  10722. "pattern": "^ses"
  10723. }
  10724. ]
  10725. },
  10726. "required": true
  10727. },
  10728. {
  10729. "name": "requestID",
  10730. "in": "path",
  10731. "schema": {
  10732. "type": "string",
  10733. "allOf": [
  10734. {
  10735. "pattern": "^que"
  10736. }
  10737. ]
  10738. },
  10739. "required": true
  10740. }
  10741. ],
  10742. "security": [],
  10743. "responses": {
  10744. "204": {
  10745. "description": "<No Content>"
  10746. },
  10747. "400": {
  10748. "description": "InvalidRequestError",
  10749. "content": {
  10750. "application/json": {
  10751. "schema": {
  10752. "$ref": "#/components/schemas/InvalidRequestError"
  10753. }
  10754. }
  10755. }
  10756. },
  10757. "401": {
  10758. "description": "UnauthorizedError",
  10759. "content": {
  10760. "application/json": {
  10761. "schema": {
  10762. "$ref": "#/components/schemas/UnauthorizedError"
  10763. }
  10764. }
  10765. }
  10766. },
  10767. "404": {
  10768. "description": "SessionNotFoundError | QuestionNotFoundError",
  10769. "content": {
  10770. "application/json": {
  10771. "schema": {
  10772. "anyOf": [
  10773. {
  10774. "$ref": "#/components/schemas/QuestionNotFoundError"
  10775. },
  10776. {
  10777. "$ref": "#/components/schemas/SessionNotFoundError"
  10778. },
  10779. {
  10780. "$ref": "#/components/schemas/SessionNotFoundError"
  10781. }
  10782. ]
  10783. }
  10784. }
  10785. }
  10786. }
  10787. },
  10788. "description": "Answer a pending question request owned by a session.",
  10789. "summary": "Reply to pending question request",
  10790. "requestBody": {
  10791. "content": {
  10792. "application/json": {
  10793. "schema": {
  10794. "$ref": "#/components/schemas/Question.Reply"
  10795. }
  10796. }
  10797. },
  10798. "required": true
  10799. }
  10800. }
  10801. },
  10802. "/api/session/{sessionID}/question/{requestID}/reject": {
  10803. "post": {
  10804. "tags": [
  10805. "question"
  10806. ],
  10807. "operationId": "v2.session.question.reject",
  10808. "parameters": [
  10809. {
  10810. "name": "sessionID",
  10811. "in": "path",
  10812. "schema": {
  10813. "type": "string",
  10814. "allOf": [
  10815. {
  10816. "pattern": "^ses"
  10817. }
  10818. ]
  10819. },
  10820. "required": true
  10821. },
  10822. {
  10823. "name": "requestID",
  10824. "in": "path",
  10825. "schema": {
  10826. "type": "string",
  10827. "allOf": [
  10828. {
  10829. "pattern": "^que"
  10830. }
  10831. ]
  10832. },
  10833. "required": true
  10834. }
  10835. ],
  10836. "security": [],
  10837. "responses": {
  10838. "204": {
  10839. "description": "<No Content>"
  10840. },
  10841. "400": {
  10842. "description": "InvalidRequestError",
  10843. "content": {
  10844. "application/json": {
  10845. "schema": {
  10846. "$ref": "#/components/schemas/InvalidRequestError"
  10847. }
  10848. }
  10849. }
  10850. },
  10851. "401": {
  10852. "description": "UnauthorizedError",
  10853. "content": {
  10854. "application/json": {
  10855. "schema": {
  10856. "$ref": "#/components/schemas/UnauthorizedError"
  10857. }
  10858. }
  10859. }
  10860. },
  10861. "404": {
  10862. "description": "SessionNotFoundError | QuestionNotFoundError",
  10863. "content": {
  10864. "application/json": {
  10865. "schema": {
  10866. "anyOf": [
  10867. {
  10868. "$ref": "#/components/schemas/QuestionNotFoundError"
  10869. },
  10870. {
  10871. "$ref": "#/components/schemas/SessionNotFoundError"
  10872. },
  10873. {
  10874. "$ref": "#/components/schemas/SessionNotFoundError"
  10875. }
  10876. ]
  10877. }
  10878. }
  10879. }
  10880. }
  10881. },
  10882. "description": "Reject a pending question request owned by a session.",
  10883. "summary": "Reject pending question request"
  10884. }
  10885. },
  10886. "/api/reference": {
  10887. "get": {
  10888. "tags": [
  10889. "reference"
  10890. ],
  10891. "operationId": "v2.reference.list",
  10892. "parameters": [
  10893. {
  10894. "name": "location",
  10895. "in": "query",
  10896. "schema": {
  10897. "anyOf": [
  10898. {
  10899. "type": "object",
  10900. "properties": {
  10901. "directory": {
  10902. "anyOf": [
  10903. {
  10904. "type": "string"
  10905. },
  10906. {
  10907. "type": "null"
  10908. }
  10909. ]
  10910. },
  10911. "workspace": {
  10912. "anyOf": [
  10913. {
  10914. "type": "string"
  10915. },
  10916. {
  10917. "type": "null"
  10918. }
  10919. ]
  10920. }
  10921. },
  10922. "additionalProperties": false
  10923. },
  10924. {
  10925. "type": "null"
  10926. }
  10927. ]
  10928. },
  10929. "required": false,
  10930. "style": "deepObject",
  10931. "explode": true
  10932. }
  10933. ],
  10934. "security": [],
  10935. "responses": {
  10936. "200": {
  10937. "description": "Success",
  10938. "content": {
  10939. "application/json": {
  10940. "schema": {
  10941. "type": "object",
  10942. "properties": {
  10943. "location": {
  10944. "$ref": "#/components/schemas/Location.Info"
  10945. },
  10946. "data": {
  10947. "type": "array",
  10948. "items": {
  10949. "$ref": "#/components/schemas/Reference.Info"
  10950. }
  10951. }
  10952. },
  10953. "required": [
  10954. "location",
  10955. "data"
  10956. ],
  10957. "additionalProperties": false
  10958. }
  10959. }
  10960. }
  10961. },
  10962. "400": {
  10963. "description": "InvalidRequestError",
  10964. "content": {
  10965. "application/json": {
  10966. "schema": {
  10967. "$ref": "#/components/schemas/InvalidRequestError"
  10968. }
  10969. }
  10970. }
  10971. },
  10972. "401": {
  10973. "description": "UnauthorizedError",
  10974. "content": {
  10975. "application/json": {
  10976. "schema": {
  10977. "$ref": "#/components/schemas/UnauthorizedError"
  10978. }
  10979. }
  10980. }
  10981. }
  10982. },
  10983. "description": "List references available in the requested location.",
  10984. "summary": "List references"
  10985. }
  10986. },
  10987. "/experimental/project/{projectID}/copy": {
  10988. "post": {
  10989. "tags": [
  10990. "projectCopy"
  10991. ],
  10992. "operationId": "v2.projectCopy.create",
  10993. "parameters": [
  10994. {
  10995. "name": "projectID",
  10996. "in": "path",
  10997. "schema": {
  10998. "type": "string"
  10999. },
  11000. "required": true
  11001. },
  11002. {
  11003. "name": "location",
  11004. "in": "query",
  11005. "schema": {
  11006. "anyOf": [
  11007. {
  11008. "type": "object",
  11009. "properties": {
  11010. "directory": {
  11011. "anyOf": [
  11012. {
  11013. "type": "string"
  11014. },
  11015. {
  11016. "type": "null"
  11017. }
  11018. ]
  11019. },
  11020. "workspace": {
  11021. "anyOf": [
  11022. {
  11023. "type": "string"
  11024. },
  11025. {
  11026. "type": "null"
  11027. }
  11028. ]
  11029. }
  11030. },
  11031. "additionalProperties": false
  11032. },
  11033. {
  11034. "type": "null"
  11035. }
  11036. ]
  11037. },
  11038. "required": false,
  11039. "style": "deepObject",
  11040. "explode": true
  11041. }
  11042. ],
  11043. "security": [],
  11044. "responses": {
  11045. "200": {
  11046. "description": "ProjectCopy.Copy",
  11047. "content": {
  11048. "application/json": {
  11049. "schema": {
  11050. "$ref": "#/components/schemas/ProjectCopy.Copy"
  11051. }
  11052. }
  11053. }
  11054. },
  11055. "400": {
  11056. "description": "ProjectCopyError | InvalidRequestError",
  11057. "content": {
  11058. "application/json": {
  11059. "schema": {
  11060. "anyOf": [
  11061. {
  11062. "$ref": "#/components/schemas/ProjectCopyError"
  11063. },
  11064. {
  11065. "$ref": "#/components/schemas/InvalidRequestError"
  11066. }
  11067. ]
  11068. }
  11069. }
  11070. }
  11071. },
  11072. "401": {
  11073. "description": "UnauthorizedError",
  11074. "content": {
  11075. "application/json": {
  11076. "schema": {
  11077. "$ref": "#/components/schemas/UnauthorizedError"
  11078. }
  11079. }
  11080. }
  11081. }
  11082. },
  11083. "requestBody": {
  11084. "content": {
  11085. "application/json": {
  11086. "schema": {
  11087. "type": "object",
  11088. "properties": {
  11089. "strategy": {
  11090. "type": "string"
  11091. },
  11092. "directory": {
  11093. "type": "string"
  11094. },
  11095. "name": {
  11096. "type": "string"
  11097. }
  11098. },
  11099. "required": [
  11100. "strategy",
  11101. "directory"
  11102. ],
  11103. "additionalProperties": false
  11104. }
  11105. }
  11106. },
  11107. "required": true
  11108. }
  11109. },
  11110. "delete": {
  11111. "tags": [
  11112. "projectCopy"
  11113. ],
  11114. "operationId": "v2.projectCopy.remove",
  11115. "parameters": [
  11116. {
  11117. "name": "projectID",
  11118. "in": "path",
  11119. "schema": {
  11120. "type": "string"
  11121. },
  11122. "required": true
  11123. },
  11124. {
  11125. "name": "location",
  11126. "in": "query",
  11127. "schema": {
  11128. "anyOf": [
  11129. {
  11130. "type": "object",
  11131. "properties": {
  11132. "directory": {
  11133. "anyOf": [
  11134. {
  11135. "type": "string"
  11136. },
  11137. {
  11138. "type": "null"
  11139. }
  11140. ]
  11141. },
  11142. "workspace": {
  11143. "anyOf": [
  11144. {
  11145. "type": "string"
  11146. },
  11147. {
  11148. "type": "null"
  11149. }
  11150. ]
  11151. }
  11152. },
  11153. "additionalProperties": false
  11154. },
  11155. {
  11156. "type": "null"
  11157. }
  11158. ]
  11159. },
  11160. "required": false,
  11161. "style": "deepObject",
  11162. "explode": true
  11163. }
  11164. ],
  11165. "security": [],
  11166. "responses": {
  11167. "204": {
  11168. "description": "<No Content>"
  11169. },
  11170. "400": {
  11171. "description": "ProjectCopyError | InvalidRequestError",
  11172. "content": {
  11173. "application/json": {
  11174. "schema": {
  11175. "anyOf": [
  11176. {
  11177. "$ref": "#/components/schemas/ProjectCopyError"
  11178. },
  11179. {
  11180. "$ref": "#/components/schemas/InvalidRequestError"
  11181. }
  11182. ]
  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. "requestBody": {
  11199. "content": {
  11200. "application/json": {
  11201. "schema": {
  11202. "type": "object",
  11203. "properties": {
  11204. "directory": {
  11205. "type": "string"
  11206. },
  11207. "force": {
  11208. "type": "boolean"
  11209. }
  11210. },
  11211. "required": [
  11212. "directory",
  11213. "force"
  11214. ],
  11215. "additionalProperties": false
  11216. }
  11217. }
  11218. },
  11219. "required": true
  11220. }
  11221. }
  11222. },
  11223. "/experimental/project/{projectID}/copy/refresh": {
  11224. "post": {
  11225. "tags": [
  11226. "projectCopy"
  11227. ],
  11228. "operationId": "v2.projectCopy.refresh",
  11229. "parameters": [
  11230. {
  11231. "name": "projectID",
  11232. "in": "path",
  11233. "schema": {
  11234. "type": "string"
  11235. },
  11236. "required": true
  11237. },
  11238. {
  11239. "name": "location",
  11240. "in": "query",
  11241. "schema": {
  11242. "anyOf": [
  11243. {
  11244. "type": "object",
  11245. "properties": {
  11246. "directory": {
  11247. "anyOf": [
  11248. {
  11249. "type": "string"
  11250. },
  11251. {
  11252. "type": "null"
  11253. }
  11254. ]
  11255. },
  11256. "workspace": {
  11257. "anyOf": [
  11258. {
  11259. "type": "string"
  11260. },
  11261. {
  11262. "type": "null"
  11263. }
  11264. ]
  11265. }
  11266. },
  11267. "additionalProperties": false
  11268. },
  11269. {
  11270. "type": "null"
  11271. }
  11272. ]
  11273. },
  11274. "required": false,
  11275. "style": "deepObject",
  11276. "explode": true
  11277. }
  11278. ],
  11279. "security": [],
  11280. "responses": {
  11281. "204": {
  11282. "description": "<No Content>"
  11283. },
  11284. "400": {
  11285. "description": "ProjectCopyError | InvalidRequestError",
  11286. "content": {
  11287. "application/json": {
  11288. "schema": {
  11289. "anyOf": [
  11290. {
  11291. "$ref": "#/components/schemas/ProjectCopyError"
  11292. },
  11293. {
  11294. "$ref": "#/components/schemas/InvalidRequestError"
  11295. }
  11296. ]
  11297. }
  11298. }
  11299. }
  11300. },
  11301. "401": {
  11302. "description": "UnauthorizedError",
  11303. "content": {
  11304. "application/json": {
  11305. "schema": {
  11306. "$ref": "#/components/schemas/UnauthorizedError"
  11307. }
  11308. }
  11309. }
  11310. }
  11311. }
  11312. }
  11313. },
  11314. "/api/vcs": {
  11315. "get": {
  11316. "tags": [
  11317. "vcs"
  11318. ],
  11319. "operationId": "v2.vcs.get",
  11320. "parameters": [
  11321. {
  11322. "name": "location",
  11323. "in": "query",
  11324. "schema": {
  11325. "anyOf": [
  11326. {
  11327. "type": "object",
  11328. "properties": {
  11329. "directory": {
  11330. "anyOf": [
  11331. {
  11332. "type": "string"
  11333. },
  11334. {
  11335. "type": "null"
  11336. }
  11337. ]
  11338. },
  11339. "workspace": {
  11340. "anyOf": [
  11341. {
  11342. "type": "string"
  11343. },
  11344. {
  11345. "type": "null"
  11346. }
  11347. ]
  11348. }
  11349. },
  11350. "additionalProperties": false
  11351. },
  11352. {
  11353. "type": "null"
  11354. }
  11355. ]
  11356. },
  11357. "required": false,
  11358. "style": "deepObject",
  11359. "explode": true
  11360. }
  11361. ],
  11362. "security": [],
  11363. "responses": {
  11364. "200": {
  11365. "description": "Success",
  11366. "content": {
  11367. "application/json": {
  11368. "schema": {
  11369. "type": "object",
  11370. "properties": {
  11371. "location": {
  11372. "$ref": "#/components/schemas/Location.Info"
  11373. },
  11374. "data": {
  11375. "$ref": "#/components/schemas/Vcs.Info"
  11376. }
  11377. },
  11378. "required": [
  11379. "location",
  11380. "data"
  11381. ],
  11382. "additionalProperties": false
  11383. }
  11384. }
  11385. }
  11386. },
  11387. "400": {
  11388. "description": "InvalidRequestError",
  11389. "content": {
  11390. "application/json": {
  11391. "schema": {
  11392. "$ref": "#/components/schemas/InvalidRequestError"
  11393. }
  11394. }
  11395. }
  11396. },
  11397. "401": {
  11398. "description": "UnauthorizedError",
  11399. "content": {
  11400. "application/json": {
  11401. "schema": {
  11402. "$ref": "#/components/schemas/UnauthorizedError"
  11403. }
  11404. }
  11405. }
  11406. }
  11407. },
  11408. "description": "Get current and default branch information for the requested location.",
  11409. "summary": "VCS info"
  11410. }
  11411. },
  11412. "/api/vcs/status": {
  11413. "get": {
  11414. "tags": [
  11415. "vcs"
  11416. ],
  11417. "operationId": "v2.vcs.status",
  11418. "parameters": [
  11419. {
  11420. "name": "location",
  11421. "in": "query",
  11422. "schema": {
  11423. "anyOf": [
  11424. {
  11425. "type": "object",
  11426. "properties": {
  11427. "directory": {
  11428. "anyOf": [
  11429. {
  11430. "type": "string"
  11431. },
  11432. {
  11433. "type": "null"
  11434. }
  11435. ]
  11436. },
  11437. "workspace": {
  11438. "anyOf": [
  11439. {
  11440. "type": "string"
  11441. },
  11442. {
  11443. "type": "null"
  11444. }
  11445. ]
  11446. }
  11447. },
  11448. "additionalProperties": false
  11449. },
  11450. {
  11451. "type": "null"
  11452. }
  11453. ]
  11454. },
  11455. "required": false,
  11456. "style": "deepObject",
  11457. "explode": true
  11458. }
  11459. ],
  11460. "security": [],
  11461. "responses": {
  11462. "200": {
  11463. "description": "Success",
  11464. "content": {
  11465. "application/json": {
  11466. "schema": {
  11467. "type": "object",
  11468. "properties": {
  11469. "location": {
  11470. "$ref": "#/components/schemas/Location.Info"
  11471. },
  11472. "data": {
  11473. "type": "array",
  11474. "items": {
  11475. "$ref": "#/components/schemas/Vcs.FileStatus"
  11476. }
  11477. }
  11478. },
  11479. "required": [
  11480. "location",
  11481. "data"
  11482. ],
  11483. "additionalProperties": false
  11484. }
  11485. }
  11486. }
  11487. },
  11488. "400": {
  11489. "description": "InvalidRequestError",
  11490. "content": {
  11491. "application/json": {
  11492. "schema": {
  11493. "$ref": "#/components/schemas/InvalidRequestError"
  11494. }
  11495. }
  11496. }
  11497. },
  11498. "401": {
  11499. "description": "UnauthorizedError",
  11500. "content": {
  11501. "application/json": {
  11502. "schema": {
  11503. "$ref": "#/components/schemas/UnauthorizedError"
  11504. }
  11505. }
  11506. }
  11507. }
  11508. },
  11509. "description": "List uncommitted working-copy changes relative to the requested location.",
  11510. "summary": "VCS status"
  11511. }
  11512. },
  11513. "/api/vcs/diff": {
  11514. "get": {
  11515. "tags": [
  11516. "vcs"
  11517. ],
  11518. "operationId": "v2.vcs.diff",
  11519. "parameters": [
  11520. {
  11521. "name": "location",
  11522. "in": "query",
  11523. "schema": {
  11524. "anyOf": [
  11525. {
  11526. "type": "object",
  11527. "properties": {
  11528. "directory": {
  11529. "anyOf": [
  11530. {
  11531. "type": "string"
  11532. },
  11533. {
  11534. "type": "null"
  11535. }
  11536. ]
  11537. },
  11538. "workspace": {
  11539. "anyOf": [
  11540. {
  11541. "type": "string"
  11542. },
  11543. {
  11544. "type": "null"
  11545. }
  11546. ]
  11547. }
  11548. },
  11549. "additionalProperties": false
  11550. },
  11551. {
  11552. "type": "null"
  11553. }
  11554. ]
  11555. },
  11556. "required": false,
  11557. "style": "deepObject",
  11558. "explode": true
  11559. },
  11560. {
  11561. "name": "mode",
  11562. "in": "query",
  11563. "schema": {
  11564. "$ref": "#/components/schemas/Vcs.Mode"
  11565. },
  11566. "required": true
  11567. },
  11568. {
  11569. "name": "context",
  11570. "in": "query",
  11571. "schema": {
  11572. "anyOf": [
  11573. {
  11574. "type": "string"
  11575. },
  11576. {
  11577. "type": "null"
  11578. }
  11579. ]
  11580. },
  11581. "required": false
  11582. }
  11583. ],
  11584. "security": [],
  11585. "responses": {
  11586. "200": {
  11587. "description": "Success",
  11588. "content": {
  11589. "application/json": {
  11590. "schema": {
  11591. "type": "object",
  11592. "properties": {
  11593. "location": {
  11594. "$ref": "#/components/schemas/Location.Info"
  11595. },
  11596. "data": {
  11597. "type": "array",
  11598. "items": {
  11599. "$ref": "#/components/schemas/FileDiff.Info"
  11600. }
  11601. }
  11602. },
  11603. "required": [
  11604. "location",
  11605. "data"
  11606. ],
  11607. "additionalProperties": false
  11608. }
  11609. }
  11610. }
  11611. },
  11612. "400": {
  11613. "description": "InvalidRequestError",
  11614. "content": {
  11615. "application/json": {
  11616. "schema": {
  11617. "$ref": "#/components/schemas/InvalidRequestError"
  11618. }
  11619. }
  11620. }
  11621. },
  11622. "401": {
  11623. "description": "UnauthorizedError",
  11624. "content": {
  11625. "application/json": {
  11626. "schema": {
  11627. "$ref": "#/components/schemas/UnauthorizedError"
  11628. }
  11629. }
  11630. }
  11631. }
  11632. },
  11633. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11634. "summary": "VCS diff"
  11635. }
  11636. },
  11637. "/api/debug/location": {
  11638. "get": {
  11639. "tags": [
  11640. "debug"
  11641. ],
  11642. "operationId": "v2.debug.location.list",
  11643. "parameters": [],
  11644. "security": [],
  11645. "responses": {
  11646. "200": {
  11647. "description": "Success",
  11648. "content": {
  11649. "application/json": {
  11650. "schema": {
  11651. "type": "array",
  11652. "items": {
  11653. "$ref": "#/components/schemas/Location.Ref"
  11654. }
  11655. }
  11656. }
  11657. }
  11658. },
  11659. "400": {
  11660. "description": "InvalidRequestError",
  11661. "content": {
  11662. "application/json": {
  11663. "schema": {
  11664. "$ref": "#/components/schemas/InvalidRequestError"
  11665. }
  11666. }
  11667. }
  11668. },
  11669. "401": {
  11670. "description": "UnauthorizedError",
  11671. "content": {
  11672. "application/json": {
  11673. "schema": {
  11674. "$ref": "#/components/schemas/UnauthorizedError"
  11675. }
  11676. }
  11677. }
  11678. }
  11679. },
  11680. "description": "List locations currently loaded by the server.",
  11681. "summary": "List loaded locations"
  11682. },
  11683. "delete": {
  11684. "tags": [
  11685. "debug"
  11686. ],
  11687. "operationId": "v2.debug.location.evict",
  11688. "parameters": [
  11689. {
  11690. "name": "location",
  11691. "in": "query",
  11692. "schema": {
  11693. "anyOf": [
  11694. {
  11695. "type": "object",
  11696. "properties": {
  11697. "directory": {
  11698. "anyOf": [
  11699. {
  11700. "type": "string"
  11701. },
  11702. {
  11703. "type": "null"
  11704. }
  11705. ]
  11706. },
  11707. "workspace": {
  11708. "anyOf": [
  11709. {
  11710. "type": "string"
  11711. },
  11712. {
  11713. "type": "null"
  11714. }
  11715. ]
  11716. }
  11717. },
  11718. "additionalProperties": false
  11719. },
  11720. {
  11721. "type": "null"
  11722. }
  11723. ]
  11724. },
  11725. "required": false,
  11726. "style": "deepObject",
  11727. "explode": true
  11728. }
  11729. ],
  11730. "security": [],
  11731. "responses": {
  11732. "204": {
  11733. "description": "<No Content>"
  11734. },
  11735. "400": {
  11736. "description": "InvalidRequestError",
  11737. "content": {
  11738. "application/json": {
  11739. "schema": {
  11740. "$ref": "#/components/schemas/InvalidRequestError"
  11741. }
  11742. }
  11743. }
  11744. },
  11745. "401": {
  11746. "description": "UnauthorizedError",
  11747. "content": {
  11748. "application/json": {
  11749. "schema": {
  11750. "$ref": "#/components/schemas/UnauthorizedError"
  11751. }
  11752. }
  11753. }
  11754. }
  11755. },
  11756. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11757. "summary": "Evict a loaded location"
  11758. }
  11759. },
  11760. "/api/websearch/provider": {
  11761. "get": {
  11762. "tags": [
  11763. "websearch"
  11764. ],
  11765. "operationId": "v2.websearch.providers",
  11766. "parameters": [
  11767. {
  11768. "name": "location",
  11769. "in": "query",
  11770. "schema": {
  11771. "anyOf": [
  11772. {
  11773. "type": "object",
  11774. "properties": {
  11775. "directory": {
  11776. "anyOf": [
  11777. {
  11778. "type": "string"
  11779. },
  11780. {
  11781. "type": "null"
  11782. }
  11783. ]
  11784. },
  11785. "workspace": {
  11786. "anyOf": [
  11787. {
  11788. "type": "string"
  11789. },
  11790. {
  11791. "type": "null"
  11792. }
  11793. ]
  11794. }
  11795. },
  11796. "additionalProperties": false
  11797. },
  11798. {
  11799. "type": "null"
  11800. }
  11801. ]
  11802. },
  11803. "required": false,
  11804. "style": "deepObject",
  11805. "explode": true
  11806. }
  11807. ],
  11808. "security": [],
  11809. "responses": {
  11810. "200": {
  11811. "description": "Success",
  11812. "content": {
  11813. "application/json": {
  11814. "schema": {
  11815. "type": "object",
  11816. "properties": {
  11817. "location": {
  11818. "$ref": "#/components/schemas/Location.Info"
  11819. },
  11820. "data": {
  11821. "type": "array",
  11822. "items": {
  11823. "$ref": "#/components/schemas/WebSearch.Provider"
  11824. }
  11825. }
  11826. },
  11827. "required": [
  11828. "location",
  11829. "data"
  11830. ],
  11831. "additionalProperties": false
  11832. }
  11833. }
  11834. }
  11835. },
  11836. "400": {
  11837. "description": "InvalidRequestError",
  11838. "content": {
  11839. "application/json": {
  11840. "schema": {
  11841. "$ref": "#/components/schemas/InvalidRequestError"
  11842. }
  11843. }
  11844. }
  11845. },
  11846. "401": {
  11847. "description": "UnauthorizedError",
  11848. "content": {
  11849. "application/json": {
  11850. "schema": {
  11851. "$ref": "#/components/schemas/UnauthorizedError"
  11852. }
  11853. }
  11854. }
  11855. },
  11856. "503": {
  11857. "description": "ServiceUnavailableError",
  11858. "content": {
  11859. "application/json": {
  11860. "schema": {
  11861. "$ref": "#/components/schemas/ServiceUnavailableError"
  11862. }
  11863. }
  11864. }
  11865. }
  11866. },
  11867. "description": "Return the registered web search providers.",
  11868. "summary": "List web search providers"
  11869. }
  11870. },
  11871. "/api/websearch": {
  11872. "post": {
  11873. "tags": [
  11874. "websearch"
  11875. ],
  11876. "operationId": "v2.websearch.query",
  11877. "parameters": [
  11878. {
  11879. "name": "location",
  11880. "in": "query",
  11881. "schema": {
  11882. "anyOf": [
  11883. {
  11884. "type": "object",
  11885. "properties": {
  11886. "directory": {
  11887. "anyOf": [
  11888. {
  11889. "type": "string"
  11890. },
  11891. {
  11892. "type": "null"
  11893. }
  11894. ]
  11895. },
  11896. "workspace": {
  11897. "anyOf": [
  11898. {
  11899. "type": "string"
  11900. },
  11901. {
  11902. "type": "null"
  11903. }
  11904. ]
  11905. }
  11906. },
  11907. "additionalProperties": false
  11908. },
  11909. {
  11910. "type": "null"
  11911. }
  11912. ]
  11913. },
  11914. "required": false,
  11915. "style": "deepObject",
  11916. "explode": true
  11917. }
  11918. ],
  11919. "security": [],
  11920. "responses": {
  11921. "200": {
  11922. "description": "Success",
  11923. "content": {
  11924. "application/json": {
  11925. "schema": {
  11926. "type": "object",
  11927. "properties": {
  11928. "location": {
  11929. "$ref": "#/components/schemas/Location.Info"
  11930. },
  11931. "data": {
  11932. "$ref": "#/components/schemas/WebSearch.Response"
  11933. }
  11934. },
  11935. "required": [
  11936. "location",
  11937. "data"
  11938. ],
  11939. "additionalProperties": false
  11940. }
  11941. }
  11942. }
  11943. },
  11944. "400": {
  11945. "description": "InvalidRequestError",
  11946. "content": {
  11947. "application/json": {
  11948. "schema": {
  11949. "anyOf": [
  11950. {
  11951. "$ref": "#/components/schemas/InvalidRequestError1"
  11952. },
  11953. {
  11954. "$ref": "#/components/schemas/InvalidRequestError"
  11955. }
  11956. ]
  11957. }
  11958. }
  11959. }
  11960. },
  11961. "401": {
  11962. "description": "UnauthorizedError",
  11963. "content": {
  11964. "application/json": {
  11965. "schema": {
  11966. "$ref": "#/components/schemas/UnauthorizedError"
  11967. }
  11968. }
  11969. }
  11970. },
  11971. "503": {
  11972. "description": "ServiceUnavailableError",
  11973. "content": {
  11974. "application/json": {
  11975. "schema": {
  11976. "$ref": "#/components/schemas/ServiceUnavailableError"
  11977. }
  11978. }
  11979. }
  11980. }
  11981. },
  11982. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  11983. "summary": "Search the web",
  11984. "requestBody": {
  11985. "content": {
  11986. "application/json": {
  11987. "schema": {
  11988. "type": "object",
  11989. "properties": {
  11990. "query": {
  11991. "type": "string"
  11992. },
  11993. "providerID": {
  11994. "type": "string"
  11995. }
  11996. },
  11997. "required": [
  11998. "query"
  11999. ],
  12000. "additionalProperties": false
  12001. }
  12002. }
  12003. },
  12004. "required": true
  12005. }
  12006. }
  12007. }
  12008. },
  12009. "components": {
  12010. "schemas": {
  12011. "ServiceHealth": {
  12012. "type": "object",
  12013. "properties": {
  12014. "healthy": {
  12015. "type": "boolean",
  12016. "enum": [
  12017. true
  12018. ]
  12019. },
  12020. "version": {
  12021. "type": "string"
  12022. },
  12023. "pid": {
  12024. "type": "integer",
  12025. "allOf": [
  12026. {
  12027. "exclusiveMinimum": 0
  12028. }
  12029. ]
  12030. }
  12031. },
  12032. "required": [
  12033. "healthy",
  12034. "version",
  12035. "pid"
  12036. ],
  12037. "additionalProperties": false
  12038. },
  12039. "UnauthorizedError": {
  12040. "type": "object",
  12041. "properties": {
  12042. "_tag": {
  12043. "type": "string",
  12044. "enum": [
  12045. "UnauthorizedError"
  12046. ]
  12047. },
  12048. "message": {
  12049. "type": "string"
  12050. }
  12051. },
  12052. "required": [
  12053. "_tag",
  12054. "message"
  12055. ],
  12056. "additionalProperties": false
  12057. },
  12058. "InvalidRequestError": {
  12059. "type": "object",
  12060. "properties": {
  12061. "_tag": {
  12062. "type": "string",
  12063. "enum": [
  12064. "InvalidRequestError"
  12065. ]
  12066. },
  12067. "message": {
  12068. "type": "string"
  12069. },
  12070. "kind": {
  12071. "anyOf": [
  12072. {
  12073. "type": "string"
  12074. },
  12075. {
  12076. "type": "null"
  12077. }
  12078. ]
  12079. },
  12080. "field": {
  12081. "anyOf": [
  12082. {
  12083. "type": "string"
  12084. },
  12085. {
  12086. "type": "null"
  12087. }
  12088. ]
  12089. }
  12090. },
  12091. "required": [
  12092. "_tag",
  12093. "message"
  12094. ],
  12095. "additionalProperties": false
  12096. },
  12097. "ServiceStopRequest": {
  12098. "type": "object",
  12099. "properties": {
  12100. "instanceID": {
  12101. "type": "string"
  12102. }
  12103. },
  12104. "required": [
  12105. "instanceID"
  12106. ],
  12107. "additionalProperties": false
  12108. },
  12109. "ServiceStopResponse": {
  12110. "type": "object",
  12111. "properties": {
  12112. "accepted": {
  12113. "type": "boolean"
  12114. }
  12115. },
  12116. "required": [
  12117. "accepted"
  12118. ],
  12119. "additionalProperties": false
  12120. },
  12121. "Location.Info": {
  12122. "type": "object",
  12123. "properties": {
  12124. "directory": {
  12125. "type": "string"
  12126. },
  12127. "workspaceID": {
  12128. "type": "string",
  12129. "allOf": [
  12130. {
  12131. "pattern": "^wrk"
  12132. }
  12133. ]
  12134. },
  12135. "project": {
  12136. "type": "object",
  12137. "properties": {
  12138. "id": {
  12139. "type": "string"
  12140. },
  12141. "directory": {
  12142. "type": "string"
  12143. },
  12144. "canonical": {
  12145. "type": "string"
  12146. }
  12147. },
  12148. "required": [
  12149. "id",
  12150. "directory",
  12151. "canonical"
  12152. ],
  12153. "additionalProperties": false
  12154. }
  12155. },
  12156. "required": [
  12157. "directory",
  12158. "project"
  12159. ],
  12160. "additionalProperties": false
  12161. },
  12162. "Model.Ref": {
  12163. "type": "object",
  12164. "properties": {
  12165. "id": {
  12166. "type": "string"
  12167. },
  12168. "providerID": {
  12169. "type": "string"
  12170. },
  12171. "variant": {
  12172. "type": "string"
  12173. }
  12174. },
  12175. "required": [
  12176. "id",
  12177. "providerID"
  12178. ],
  12179. "additionalProperties": false
  12180. },
  12181. "Provider.Settings": {
  12182. "type": "object"
  12183. },
  12184. "Provider.Request": {
  12185. "type": "object",
  12186. "properties": {
  12187. "settings": {
  12188. "$ref": "#/components/schemas/Provider.Settings"
  12189. },
  12190. "headers": {
  12191. "type": "object",
  12192. "additionalProperties": {
  12193. "type": "string"
  12194. }
  12195. },
  12196. "body": {
  12197. "type": "object"
  12198. }
  12199. },
  12200. "required": [
  12201. "settings",
  12202. "headers",
  12203. "body"
  12204. ],
  12205. "additionalProperties": false
  12206. },
  12207. "Agent.Color": {
  12208. "type": "string"
  12209. },
  12210. "Permission.Effect": {
  12211. "type": "string",
  12212. "enum": [
  12213. "allow",
  12214. "deny",
  12215. "ask"
  12216. ]
  12217. },
  12218. "Permission.Rule": {
  12219. "type": "object",
  12220. "properties": {
  12221. "action": {
  12222. "type": "string"
  12223. },
  12224. "resource": {
  12225. "type": "string"
  12226. },
  12227. "effect": {
  12228. "$ref": "#/components/schemas/Permission.Effect"
  12229. }
  12230. },
  12231. "required": [
  12232. "action",
  12233. "resource",
  12234. "effect"
  12235. ],
  12236. "additionalProperties": false
  12237. },
  12238. "Permission.Ruleset": {
  12239. "type": "array",
  12240. "items": {
  12241. "$ref": "#/components/schemas/Permission.Rule"
  12242. }
  12243. },
  12244. "Agent.Info": {
  12245. "type": "object",
  12246. "properties": {
  12247. "id": {
  12248. "type": "string"
  12249. },
  12250. "name": {
  12251. "type": "string"
  12252. },
  12253. "model": {
  12254. "$ref": "#/components/schemas/Model.Ref"
  12255. },
  12256. "request": {
  12257. "$ref": "#/components/schemas/Provider.Request"
  12258. },
  12259. "system": {
  12260. "type": "string"
  12261. },
  12262. "description": {
  12263. "type": "string"
  12264. },
  12265. "mode": {
  12266. "type": "string",
  12267. "enum": [
  12268. "subagent",
  12269. "primary",
  12270. "all"
  12271. ]
  12272. },
  12273. "hidden": {
  12274. "type": "boolean"
  12275. },
  12276. "color": {
  12277. "$ref": "#/components/schemas/Agent.Color"
  12278. },
  12279. "steps": {
  12280. "type": "integer",
  12281. "allOf": [
  12282. {
  12283. "exclusiveMinimum": 0
  12284. }
  12285. ]
  12286. },
  12287. "permissions": {
  12288. "$ref": "#/components/schemas/Permission.Ruleset"
  12289. }
  12290. },
  12291. "required": [
  12292. "id",
  12293. "name",
  12294. "request",
  12295. "mode",
  12296. "hidden",
  12297. "permissions"
  12298. ],
  12299. "additionalProperties": false
  12300. },
  12301. "AgentNotFoundError": {
  12302. "type": "object",
  12303. "properties": {
  12304. "_tag": {
  12305. "type": "string",
  12306. "enum": [
  12307. "AgentNotFoundError"
  12308. ]
  12309. },
  12310. "agentID": {
  12311. "type": "string"
  12312. },
  12313. "message": {
  12314. "type": "string"
  12315. }
  12316. },
  12317. "required": [
  12318. "_tag",
  12319. "agentID",
  12320. "message"
  12321. ],
  12322. "additionalProperties": false
  12323. },
  12324. "Plugin.Info": {
  12325. "type": "object",
  12326. "properties": {
  12327. "id": {
  12328. "type": "string"
  12329. }
  12330. },
  12331. "required": [
  12332. "id"
  12333. ],
  12334. "additionalProperties": false
  12335. },
  12336. "Session.ForkBoundary": {
  12337. "anyOf": [
  12338. {
  12339. "type": "object",
  12340. "properties": {
  12341. "type": {
  12342. "type": "string",
  12343. "enum": [
  12344. "before"
  12345. ]
  12346. },
  12347. "messageID": {
  12348. "type": "string",
  12349. "allOf": [
  12350. {
  12351. "pattern": "^msg_"
  12352. }
  12353. ]
  12354. }
  12355. },
  12356. "required": [
  12357. "type",
  12358. "messageID"
  12359. ],
  12360. "additionalProperties": false
  12361. },
  12362. {
  12363. "type": "object",
  12364. "properties": {
  12365. "type": {
  12366. "type": "string",
  12367. "enum": [
  12368. "through"
  12369. ]
  12370. },
  12371. "messageID": {
  12372. "type": "string",
  12373. "allOf": [
  12374. {
  12375. "pattern": "^msg_"
  12376. }
  12377. ]
  12378. }
  12379. },
  12380. "required": [
  12381. "type",
  12382. "messageID"
  12383. ],
  12384. "additionalProperties": false
  12385. }
  12386. ]
  12387. },
  12388. "Money.USD": {
  12389. "type": "number"
  12390. },
  12391. "TokenUsage.Info": {
  12392. "type": "object",
  12393. "properties": {
  12394. "input": {
  12395. "type": "number"
  12396. },
  12397. "output": {
  12398. "type": "number"
  12399. },
  12400. "reasoning": {
  12401. "type": "number"
  12402. },
  12403. "cache": {
  12404. "type": "object",
  12405. "properties": {
  12406. "read": {
  12407. "type": "number"
  12408. },
  12409. "write": {
  12410. "type": "number"
  12411. }
  12412. },
  12413. "required": [
  12414. "read",
  12415. "write"
  12416. ],
  12417. "additionalProperties": false
  12418. }
  12419. },
  12420. "required": [
  12421. "input",
  12422. "output",
  12423. "reasoning",
  12424. "cache"
  12425. ],
  12426. "additionalProperties": false
  12427. },
  12428. "Location.Ref": {
  12429. "type": "object",
  12430. "properties": {
  12431. "directory": {
  12432. "type": "string"
  12433. },
  12434. "workspaceID": {
  12435. "type": "string",
  12436. "allOf": [
  12437. {
  12438. "pattern": "^wrk"
  12439. }
  12440. ]
  12441. }
  12442. },
  12443. "required": [
  12444. "directory"
  12445. ],
  12446. "additionalProperties": false
  12447. },
  12448. "FileDiff.Info": {
  12449. "type": "object",
  12450. "properties": {
  12451. "file": {
  12452. "type": "string"
  12453. },
  12454. "patch": {
  12455. "type": "string"
  12456. },
  12457. "additions": {
  12458. "type": "integer",
  12459. "allOf": [
  12460. {
  12461. "minimum": 0
  12462. }
  12463. ]
  12464. },
  12465. "deletions": {
  12466. "type": "integer",
  12467. "allOf": [
  12468. {
  12469. "minimum": 0
  12470. }
  12471. ]
  12472. },
  12473. "status": {
  12474. "type": "string",
  12475. "enum": [
  12476. "added",
  12477. "deleted",
  12478. "modified"
  12479. ]
  12480. }
  12481. },
  12482. "required": [
  12483. "file",
  12484. "patch",
  12485. "additions",
  12486. "deletions",
  12487. "status"
  12488. ],
  12489. "additionalProperties": false
  12490. },
  12491. "Session.Revert": {
  12492. "type": "object",
  12493. "properties": {
  12494. "messageID": {
  12495. "type": "string",
  12496. "allOf": [
  12497. {
  12498. "pattern": "^msg_"
  12499. }
  12500. ]
  12501. },
  12502. "partID": {
  12503. "type": "string"
  12504. },
  12505. "snapshot": {
  12506. "type": "string"
  12507. },
  12508. "files": {
  12509. "type": "array",
  12510. "items": {
  12511. "$ref": "#/components/schemas/FileDiff.Info"
  12512. }
  12513. }
  12514. },
  12515. "required": [
  12516. "messageID"
  12517. ],
  12518. "additionalProperties": false
  12519. },
  12520. "Session.Info": {
  12521. "type": "object",
  12522. "properties": {
  12523. "id": {
  12524. "type": "string",
  12525. "allOf": [
  12526. {
  12527. "pattern": "^ses"
  12528. }
  12529. ]
  12530. },
  12531. "parentID": {
  12532. "type": "string",
  12533. "allOf": [
  12534. {
  12535. "pattern": "^ses"
  12536. }
  12537. ]
  12538. },
  12539. "fork": {
  12540. "type": "object",
  12541. "properties": {
  12542. "sessionID": {
  12543. "type": "string",
  12544. "allOf": [
  12545. {
  12546. "pattern": "^ses"
  12547. }
  12548. ]
  12549. },
  12550. "boundary": {
  12551. "$ref": "#/components/schemas/Session.ForkBoundary"
  12552. }
  12553. },
  12554. "required": [
  12555. "sessionID",
  12556. "boundary"
  12557. ],
  12558. "additionalProperties": false
  12559. },
  12560. "projectID": {
  12561. "type": "string"
  12562. },
  12563. "agent": {
  12564. "type": "string"
  12565. },
  12566. "model": {
  12567. "$ref": "#/components/schemas/Model.Ref"
  12568. },
  12569. "cost": {
  12570. "$ref": "#/components/schemas/Money.USD"
  12571. },
  12572. "tokens": {
  12573. "$ref": "#/components/schemas/TokenUsage.Info"
  12574. },
  12575. "time": {
  12576. "type": "object",
  12577. "properties": {
  12578. "created": {
  12579. "type": "number"
  12580. },
  12581. "updated": {
  12582. "type": "number"
  12583. },
  12584. "archived": {
  12585. "type": "number"
  12586. }
  12587. },
  12588. "required": [
  12589. "created",
  12590. "updated"
  12591. ],
  12592. "additionalProperties": false
  12593. },
  12594. "title": {
  12595. "type": "string"
  12596. },
  12597. "location": {
  12598. "$ref": "#/components/schemas/Location.Ref"
  12599. },
  12600. "subpath": {
  12601. "type": "string"
  12602. },
  12603. "revert": {
  12604. "$ref": "#/components/schemas/Session.Revert"
  12605. }
  12606. },
  12607. "required": [
  12608. "id",
  12609. "projectID",
  12610. "cost",
  12611. "tokens",
  12612. "time",
  12613. "location"
  12614. ],
  12615. "additionalProperties": false
  12616. },
  12617. "SessionsResponse": {
  12618. "type": "object",
  12619. "properties": {
  12620. "data": {
  12621. "type": "array",
  12622. "items": {
  12623. "$ref": "#/components/schemas/Session.Info"
  12624. }
  12625. },
  12626. "cursor": {
  12627. "type": "object",
  12628. "properties": {
  12629. "previous": {
  12630. "anyOf": [
  12631. {
  12632. "type": "string"
  12633. },
  12634. {
  12635. "type": "null"
  12636. }
  12637. ]
  12638. },
  12639. "next": {
  12640. "anyOf": [
  12641. {
  12642. "type": "string"
  12643. },
  12644. {
  12645. "type": "null"
  12646. }
  12647. ]
  12648. }
  12649. },
  12650. "additionalProperties": false
  12651. }
  12652. },
  12653. "required": [
  12654. "data",
  12655. "cursor"
  12656. ],
  12657. "additionalProperties": false
  12658. },
  12659. "InvalidCursorError": {
  12660. "type": "object",
  12661. "properties": {
  12662. "_tag": {
  12663. "type": "string",
  12664. "enum": [
  12665. "InvalidCursorError"
  12666. ]
  12667. },
  12668. "message": {
  12669. "type": "string"
  12670. }
  12671. },
  12672. "required": [
  12673. "_tag",
  12674. "message"
  12675. ],
  12676. "additionalProperties": false
  12677. },
  12678. "InvalidRequestError1": {
  12679. "type": "object",
  12680. "properties": {
  12681. "_tag": {
  12682. "type": "string",
  12683. "enum": [
  12684. "InvalidRequestError"
  12685. ]
  12686. },
  12687. "message": {
  12688. "type": "string"
  12689. },
  12690. "kind": {
  12691. "anyOf": [
  12692. {
  12693. "type": "string"
  12694. },
  12695. {
  12696. "type": "null"
  12697. }
  12698. ]
  12699. },
  12700. "field": {
  12701. "anyOf": [
  12702. {
  12703. "type": "string"
  12704. },
  12705. {
  12706. "type": "null"
  12707. }
  12708. ]
  12709. }
  12710. },
  12711. "required": [
  12712. "_tag",
  12713. "message"
  12714. ],
  12715. "additionalProperties": false
  12716. },
  12717. "SessionActive": {
  12718. "type": "object",
  12719. "properties": {
  12720. "type": {
  12721. "type": "string",
  12722. "enum": [
  12723. "running"
  12724. ]
  12725. }
  12726. },
  12727. "required": [
  12728. "type"
  12729. ],
  12730. "additionalProperties": false
  12731. },
  12732. "SessionNotFoundError": {
  12733. "type": "object",
  12734. "properties": {
  12735. "_tag": {
  12736. "type": "string",
  12737. "enum": [
  12738. "SessionNotFoundError"
  12739. ]
  12740. },
  12741. "sessionID": {
  12742. "type": "string"
  12743. },
  12744. "message": {
  12745. "type": "string"
  12746. }
  12747. },
  12748. "required": [
  12749. "_tag",
  12750. "sessionID",
  12751. "message"
  12752. ],
  12753. "additionalProperties": false
  12754. },
  12755. "Session.ForkRequestBoundary": {
  12756. "anyOf": [
  12757. {
  12758. "type": "object",
  12759. "properties": {
  12760. "type": {
  12761. "type": "string",
  12762. "enum": [
  12763. "before"
  12764. ]
  12765. },
  12766. "messageID": {
  12767. "type": "string",
  12768. "allOf": [
  12769. {
  12770. "pattern": "^msg_"
  12771. }
  12772. ]
  12773. }
  12774. },
  12775. "required": [
  12776. "type",
  12777. "messageID"
  12778. ],
  12779. "additionalProperties": false
  12780. },
  12781. {
  12782. "type": "object",
  12783. "properties": {
  12784. "type": {
  12785. "type": "string",
  12786. "enum": [
  12787. "through"
  12788. ]
  12789. }
  12790. },
  12791. "required": [
  12792. "type"
  12793. ],
  12794. "additionalProperties": false
  12795. }
  12796. ]
  12797. },
  12798. "MessageNotFoundError": {
  12799. "type": "object",
  12800. "properties": {
  12801. "_tag": {
  12802. "type": "string",
  12803. "enum": [
  12804. "MessageNotFoundError"
  12805. ]
  12806. },
  12807. "sessionID": {
  12808. "type": "string"
  12809. },
  12810. "messageID": {
  12811. "type": "string"
  12812. },
  12813. "message": {
  12814. "type": "string"
  12815. }
  12816. },
  12817. "required": [
  12818. "_tag",
  12819. "sessionID",
  12820. "messageID",
  12821. "message"
  12822. ],
  12823. "additionalProperties": false
  12824. },
  12825. "Prompt.Mention": {
  12826. "type": "object",
  12827. "properties": {
  12828. "start": {
  12829. "type": "number"
  12830. },
  12831. "end": {
  12832. "type": "number"
  12833. },
  12834. "text": {
  12835. "type": "string"
  12836. }
  12837. },
  12838. "required": [
  12839. "start",
  12840. "end",
  12841. "text"
  12842. ],
  12843. "additionalProperties": false
  12844. },
  12845. "PromptInput.FileAttachment": {
  12846. "type": "object",
  12847. "properties": {
  12848. "uri": {
  12849. "type": "string"
  12850. },
  12851. "name": {
  12852. "type": "string"
  12853. },
  12854. "description": {
  12855. "type": "string"
  12856. },
  12857. "mention": {
  12858. "$ref": "#/components/schemas/Prompt.Mention"
  12859. }
  12860. },
  12861. "required": [
  12862. "uri"
  12863. ],
  12864. "additionalProperties": false
  12865. },
  12866. "Prompt.AgentAttachment": {
  12867. "type": "object",
  12868. "properties": {
  12869. "name": {
  12870. "type": "string"
  12871. },
  12872. "mention": {
  12873. "$ref": "#/components/schemas/Prompt.Mention"
  12874. }
  12875. },
  12876. "required": [
  12877. "name"
  12878. ],
  12879. "additionalProperties": false
  12880. },
  12881. "Prompt.Base64": {
  12882. "type": "string",
  12883. "allOf": [
  12884. {
  12885. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  12886. }
  12887. ]
  12888. },
  12889. "Prompt.FileSource": {
  12890. "anyOf": [
  12891. {
  12892. "type": "object",
  12893. "properties": {
  12894. "type": {
  12895. "type": "string",
  12896. "enum": [
  12897. "inline"
  12898. ]
  12899. }
  12900. },
  12901. "required": [
  12902. "type"
  12903. ],
  12904. "additionalProperties": false
  12905. },
  12906. {
  12907. "type": "object",
  12908. "properties": {
  12909. "type": {
  12910. "type": "string",
  12911. "enum": [
  12912. "uri"
  12913. ]
  12914. },
  12915. "uri": {
  12916. "type": "string"
  12917. }
  12918. },
  12919. "required": [
  12920. "type",
  12921. "uri"
  12922. ],
  12923. "additionalProperties": false
  12924. }
  12925. ]
  12926. },
  12927. "Prompt.FileAttachment": {
  12928. "type": "object",
  12929. "properties": {
  12930. "data": {
  12931. "$ref": "#/components/schemas/Prompt.Base64"
  12932. },
  12933. "mime": {
  12934. "type": "string"
  12935. },
  12936. "source": {
  12937. "$ref": "#/components/schemas/Prompt.FileSource"
  12938. },
  12939. "name": {
  12940. "type": "string"
  12941. },
  12942. "description": {
  12943. "type": "string"
  12944. },
  12945. "mention": {
  12946. "$ref": "#/components/schemas/Prompt.Mention"
  12947. }
  12948. },
  12949. "required": [
  12950. "data",
  12951. "mime",
  12952. "source"
  12953. ],
  12954. "additionalProperties": false
  12955. },
  12956. "SessionPending.UserData": {
  12957. "type": "object",
  12958. "properties": {
  12959. "text": {
  12960. "type": "string"
  12961. },
  12962. "files": {
  12963. "type": "array",
  12964. "items": {
  12965. "$ref": "#/components/schemas/Prompt.FileAttachment"
  12966. }
  12967. },
  12968. "agents": {
  12969. "type": "array",
  12970. "items": {
  12971. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  12972. }
  12973. },
  12974. "metadata": {
  12975. "type": "object"
  12976. }
  12977. },
  12978. "required": [
  12979. "text"
  12980. ],
  12981. "additionalProperties": false
  12982. },
  12983. "SessionPending.User": {
  12984. "type": "object",
  12985. "properties": {
  12986. "id": {
  12987. "type": "string",
  12988. "allOf": [
  12989. {
  12990. "pattern": "^msg_"
  12991. }
  12992. ]
  12993. },
  12994. "sessionID": {
  12995. "type": "string",
  12996. "allOf": [
  12997. {
  12998. "pattern": "^ses"
  12999. }
  13000. ]
  13001. },
  13002. "timeCreated": {
  13003. "type": "number"
  13004. },
  13005. "type": {
  13006. "type": "string",
  13007. "enum": [
  13008. "user"
  13009. ]
  13010. },
  13011. "data": {
  13012. "$ref": "#/components/schemas/SessionPending.UserData"
  13013. },
  13014. "delivery": {
  13015. "type": "string",
  13016. "enum": [
  13017. "steer",
  13018. "queue"
  13019. ]
  13020. }
  13021. },
  13022. "required": [
  13023. "id",
  13024. "sessionID",
  13025. "timeCreated",
  13026. "type",
  13027. "data",
  13028. "delivery"
  13029. ],
  13030. "additionalProperties": false
  13031. },
  13032. "ConflictError": {
  13033. "type": "object",
  13034. "properties": {
  13035. "_tag": {
  13036. "type": "string",
  13037. "enum": [
  13038. "ConflictError"
  13039. ]
  13040. },
  13041. "message": {
  13042. "type": "string"
  13043. },
  13044. "resource": {
  13045. "anyOf": [
  13046. {
  13047. "type": "string"
  13048. },
  13049. {
  13050. "type": "null"
  13051. }
  13052. ]
  13053. }
  13054. },
  13055. "required": [
  13056. "_tag",
  13057. "message"
  13058. ],
  13059. "additionalProperties": false
  13060. },
  13061. "CommandNotFoundError": {
  13062. "type": "object",
  13063. "properties": {
  13064. "_tag": {
  13065. "type": "string",
  13066. "enum": [
  13067. "CommandNotFoundError"
  13068. ]
  13069. },
  13070. "command": {
  13071. "type": "string"
  13072. },
  13073. "message": {
  13074. "type": "string"
  13075. }
  13076. },
  13077. "required": [
  13078. "_tag",
  13079. "command",
  13080. "message"
  13081. ],
  13082. "additionalProperties": false
  13083. },
  13084. "CommandEvaluationError": {
  13085. "type": "object",
  13086. "properties": {
  13087. "_tag": {
  13088. "type": "string",
  13089. "enum": [
  13090. "CommandEvaluationError"
  13091. ]
  13092. },
  13093. "command": {
  13094. "type": "string"
  13095. },
  13096. "message": {
  13097. "type": "string"
  13098. }
  13099. },
  13100. "required": [
  13101. "_tag",
  13102. "command",
  13103. "message"
  13104. ],
  13105. "additionalProperties": false
  13106. },
  13107. "SkillNotFoundError": {
  13108. "type": "object",
  13109. "properties": {
  13110. "_tag": {
  13111. "type": "string",
  13112. "enum": [
  13113. "SkillNotFoundError"
  13114. ]
  13115. },
  13116. "skill": {
  13117. "type": "string"
  13118. },
  13119. "message": {
  13120. "type": "string"
  13121. }
  13122. },
  13123. "required": [
  13124. "_tag",
  13125. "skill",
  13126. "message"
  13127. ],
  13128. "additionalProperties": false
  13129. },
  13130. "SessionPending.SyntheticData": {
  13131. "type": "object",
  13132. "properties": {
  13133. "text": {
  13134. "type": "string"
  13135. },
  13136. "description": {
  13137. "type": "string"
  13138. },
  13139. "metadata": {
  13140. "type": "object"
  13141. }
  13142. },
  13143. "required": [
  13144. "text"
  13145. ],
  13146. "additionalProperties": false
  13147. },
  13148. "SessionPending.Synthetic": {
  13149. "type": "object",
  13150. "properties": {
  13151. "id": {
  13152. "type": "string",
  13153. "allOf": [
  13154. {
  13155. "pattern": "^msg_"
  13156. }
  13157. ]
  13158. },
  13159. "sessionID": {
  13160. "type": "string",
  13161. "allOf": [
  13162. {
  13163. "pattern": "^ses"
  13164. }
  13165. ]
  13166. },
  13167. "timeCreated": {
  13168. "type": "number"
  13169. },
  13170. "type": {
  13171. "type": "string",
  13172. "enum": [
  13173. "synthetic"
  13174. ]
  13175. },
  13176. "data": {
  13177. "$ref": "#/components/schemas/SessionPending.SyntheticData"
  13178. },
  13179. "delivery": {
  13180. "type": "string",
  13181. "enum": [
  13182. "steer",
  13183. "queue"
  13184. ]
  13185. }
  13186. },
  13187. "required": [
  13188. "id",
  13189. "sessionID",
  13190. "timeCreated",
  13191. "type",
  13192. "data",
  13193. "delivery"
  13194. ],
  13195. "additionalProperties": false
  13196. },
  13197. "SessionPending.Compaction": {
  13198. "type": "object",
  13199. "properties": {
  13200. "id": {
  13201. "type": "string",
  13202. "allOf": [
  13203. {
  13204. "pattern": "^msg_"
  13205. }
  13206. ]
  13207. },
  13208. "sessionID": {
  13209. "type": "string",
  13210. "allOf": [
  13211. {
  13212. "pattern": "^ses"
  13213. }
  13214. ]
  13215. },
  13216. "timeCreated": {
  13217. "type": "number"
  13218. },
  13219. "type": {
  13220. "type": "string",
  13221. "enum": [
  13222. "compaction"
  13223. ]
  13224. }
  13225. },
  13226. "required": [
  13227. "id",
  13228. "sessionID",
  13229. "timeCreated",
  13230. "type"
  13231. ],
  13232. "additionalProperties": false
  13233. },
  13234. "ServiceUnavailableError": {
  13235. "type": "object",
  13236. "properties": {
  13237. "_tag": {
  13238. "type": "string",
  13239. "enum": [
  13240. "ServiceUnavailableError"
  13241. ]
  13242. },
  13243. "message": {
  13244. "type": "string"
  13245. },
  13246. "service": {
  13247. "anyOf": [
  13248. {
  13249. "type": "string"
  13250. },
  13251. {
  13252. "type": "null"
  13253. }
  13254. ]
  13255. }
  13256. },
  13257. "required": [
  13258. "_tag",
  13259. "message"
  13260. ],
  13261. "additionalProperties": false
  13262. },
  13263. "SessionBusyError": {
  13264. "type": "object",
  13265. "properties": {
  13266. "_tag": {
  13267. "type": "string",
  13268. "enum": [
  13269. "SessionBusyError"
  13270. ]
  13271. },
  13272. "sessionID": {
  13273. "type": "string"
  13274. },
  13275. "message": {
  13276. "type": "string"
  13277. }
  13278. },
  13279. "required": [
  13280. "_tag",
  13281. "sessionID",
  13282. "message"
  13283. ],
  13284. "additionalProperties": false
  13285. },
  13286. "UnknownError": {
  13287. "type": "object",
  13288. "properties": {
  13289. "_tag": {
  13290. "type": "string",
  13291. "enum": [
  13292. "UnknownError"
  13293. ]
  13294. },
  13295. "message": {
  13296. "type": "string"
  13297. },
  13298. "ref": {
  13299. "anyOf": [
  13300. {
  13301. "type": "string"
  13302. },
  13303. {
  13304. "type": "null"
  13305. }
  13306. ]
  13307. }
  13308. },
  13309. "required": [
  13310. "_tag",
  13311. "message"
  13312. ],
  13313. "additionalProperties": false
  13314. },
  13315. "Session.Message.AgentSelected": {
  13316. "type": "object",
  13317. "properties": {
  13318. "id": {
  13319. "type": "string",
  13320. "allOf": [
  13321. {
  13322. "pattern": "^msg_"
  13323. }
  13324. ]
  13325. },
  13326. "metadata": {
  13327. "type": "object"
  13328. },
  13329. "time": {
  13330. "type": "object",
  13331. "properties": {
  13332. "created": {
  13333. "type": "number"
  13334. }
  13335. },
  13336. "required": [
  13337. "created"
  13338. ],
  13339. "additionalProperties": false
  13340. },
  13341. "type": {
  13342. "type": "string",
  13343. "enum": [
  13344. "agent-switched"
  13345. ]
  13346. },
  13347. "agent": {
  13348. "type": "string"
  13349. }
  13350. },
  13351. "required": [
  13352. "id",
  13353. "time",
  13354. "type",
  13355. "agent"
  13356. ],
  13357. "additionalProperties": false
  13358. },
  13359. "Session.Message.ModelSelected": {
  13360. "type": "object",
  13361. "properties": {
  13362. "id": {
  13363. "type": "string",
  13364. "allOf": [
  13365. {
  13366. "pattern": "^msg_"
  13367. }
  13368. ]
  13369. },
  13370. "metadata": {
  13371. "type": "object"
  13372. },
  13373. "time": {
  13374. "type": "object",
  13375. "properties": {
  13376. "created": {
  13377. "type": "number"
  13378. }
  13379. },
  13380. "required": [
  13381. "created"
  13382. ],
  13383. "additionalProperties": false
  13384. },
  13385. "type": {
  13386. "type": "string",
  13387. "enum": [
  13388. "model-switched"
  13389. ]
  13390. },
  13391. "model": {
  13392. "$ref": "#/components/schemas/Model.Ref"
  13393. },
  13394. "previous": {
  13395. "$ref": "#/components/schemas/Model.Ref"
  13396. }
  13397. },
  13398. "required": [
  13399. "id",
  13400. "time",
  13401. "type",
  13402. "model"
  13403. ],
  13404. "additionalProperties": false
  13405. },
  13406. "Session.Message.User": {
  13407. "type": "object",
  13408. "properties": {
  13409. "id": {
  13410. "type": "string",
  13411. "allOf": [
  13412. {
  13413. "pattern": "^msg_"
  13414. }
  13415. ]
  13416. },
  13417. "metadata": {
  13418. "type": "object"
  13419. },
  13420. "time": {
  13421. "type": "object",
  13422. "properties": {
  13423. "created": {
  13424. "type": "number"
  13425. }
  13426. },
  13427. "required": [
  13428. "created"
  13429. ],
  13430. "additionalProperties": false
  13431. },
  13432. "text": {
  13433. "type": "string"
  13434. },
  13435. "files": {
  13436. "type": "array",
  13437. "items": {
  13438. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13439. }
  13440. },
  13441. "agents": {
  13442. "type": "array",
  13443. "items": {
  13444. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13445. }
  13446. },
  13447. "type": {
  13448. "type": "string",
  13449. "enum": [
  13450. "user"
  13451. ]
  13452. }
  13453. },
  13454. "required": [
  13455. "id",
  13456. "time",
  13457. "text",
  13458. "type"
  13459. ],
  13460. "additionalProperties": false
  13461. },
  13462. "Session.Message.Synthetic": {
  13463. "type": "object",
  13464. "properties": {
  13465. "id": {
  13466. "type": "string",
  13467. "allOf": [
  13468. {
  13469. "pattern": "^msg_"
  13470. }
  13471. ]
  13472. },
  13473. "metadata": {
  13474. "type": "object"
  13475. },
  13476. "time": {
  13477. "type": "object",
  13478. "properties": {
  13479. "created": {
  13480. "type": "number"
  13481. }
  13482. },
  13483. "required": [
  13484. "created"
  13485. ],
  13486. "additionalProperties": false
  13487. },
  13488. "text": {
  13489. "type": "string"
  13490. },
  13491. "description": {
  13492. "type": "string"
  13493. },
  13494. "type": {
  13495. "type": "string",
  13496. "enum": [
  13497. "synthetic"
  13498. ]
  13499. }
  13500. },
  13501. "required": [
  13502. "id",
  13503. "time",
  13504. "text",
  13505. "type"
  13506. ],
  13507. "additionalProperties": false
  13508. },
  13509. "Session.Message.System": {
  13510. "type": "object",
  13511. "properties": {
  13512. "id": {
  13513. "type": "string",
  13514. "allOf": [
  13515. {
  13516. "pattern": "^msg_"
  13517. }
  13518. ]
  13519. },
  13520. "metadata": {
  13521. "type": "object"
  13522. },
  13523. "time": {
  13524. "type": "object",
  13525. "properties": {
  13526. "created": {
  13527. "type": "number"
  13528. }
  13529. },
  13530. "required": [
  13531. "created"
  13532. ],
  13533. "additionalProperties": false
  13534. },
  13535. "type": {
  13536. "type": "string",
  13537. "enum": [
  13538. "system"
  13539. ]
  13540. },
  13541. "text": {
  13542. "type": "string"
  13543. }
  13544. },
  13545. "required": [
  13546. "id",
  13547. "time",
  13548. "type",
  13549. "text"
  13550. ],
  13551. "additionalProperties": false
  13552. },
  13553. "Session.Message.Skill": {
  13554. "type": "object",
  13555. "properties": {
  13556. "id": {
  13557. "type": "string",
  13558. "allOf": [
  13559. {
  13560. "pattern": "^msg_"
  13561. }
  13562. ]
  13563. },
  13564. "metadata": {
  13565. "type": "object"
  13566. },
  13567. "time": {
  13568. "type": "object",
  13569. "properties": {
  13570. "created": {
  13571. "type": "number"
  13572. }
  13573. },
  13574. "required": [
  13575. "created"
  13576. ],
  13577. "additionalProperties": false
  13578. },
  13579. "type": {
  13580. "type": "string",
  13581. "enum": [
  13582. "skill"
  13583. ]
  13584. },
  13585. "skill": {
  13586. "type": "string"
  13587. },
  13588. "name": {
  13589. "type": "string"
  13590. },
  13591. "text": {
  13592. "type": "string"
  13593. }
  13594. },
  13595. "required": [
  13596. "id",
  13597. "time",
  13598. "type",
  13599. "skill",
  13600. "name",
  13601. "text"
  13602. ],
  13603. "additionalProperties": false
  13604. },
  13605. "Session.Message.Shell": {
  13606. "type": "object",
  13607. "properties": {
  13608. "id": {
  13609. "type": "string",
  13610. "allOf": [
  13611. {
  13612. "pattern": "^msg_"
  13613. }
  13614. ]
  13615. },
  13616. "metadata": {
  13617. "type": "object"
  13618. },
  13619. "time": {
  13620. "type": "object",
  13621. "properties": {
  13622. "created": {
  13623. "type": "number"
  13624. },
  13625. "completed": {
  13626. "type": "number"
  13627. }
  13628. },
  13629. "required": [
  13630. "created"
  13631. ],
  13632. "additionalProperties": false
  13633. },
  13634. "type": {
  13635. "type": "string",
  13636. "enum": [
  13637. "shell"
  13638. ]
  13639. },
  13640. "shellID": {
  13641. "type": "string",
  13642. "allOf": [
  13643. {
  13644. "pattern": "^sh_"
  13645. }
  13646. ]
  13647. },
  13648. "command": {
  13649. "type": "string"
  13650. },
  13651. "status": {
  13652. "type": "string",
  13653. "enum": [
  13654. "running",
  13655. "exited",
  13656. "timeout",
  13657. "killed"
  13658. ]
  13659. },
  13660. "exit": {
  13661. "anyOf": [
  13662. {
  13663. "anyOf": [
  13664. {
  13665. "type": "number"
  13666. },
  13667. {
  13668. "type": "string",
  13669. "enum": [
  13670. "NaN"
  13671. ]
  13672. },
  13673. {
  13674. "type": "string",
  13675. "enum": [
  13676. "Infinity"
  13677. ]
  13678. },
  13679. {
  13680. "type": "string",
  13681. "enum": [
  13682. "-Infinity"
  13683. ]
  13684. }
  13685. ]
  13686. },
  13687. {
  13688. "type": "string",
  13689. "enum": [
  13690. "Infinity",
  13691. "-Infinity",
  13692. "NaN"
  13693. ]
  13694. }
  13695. ]
  13696. },
  13697. "output": {
  13698. "type": "object",
  13699. "properties": {
  13700. "output": {
  13701. "type": "string"
  13702. },
  13703. "cursor": {
  13704. "type": "integer",
  13705. "allOf": [
  13706. {
  13707. "minimum": 0
  13708. }
  13709. ]
  13710. },
  13711. "size": {
  13712. "type": "integer",
  13713. "allOf": [
  13714. {
  13715. "minimum": 0
  13716. }
  13717. ]
  13718. },
  13719. "truncated": {
  13720. "type": "boolean"
  13721. }
  13722. },
  13723. "required": [
  13724. "output",
  13725. "cursor",
  13726. "size",
  13727. "truncated"
  13728. ],
  13729. "additionalProperties": false
  13730. }
  13731. },
  13732. "required": [
  13733. "id",
  13734. "time",
  13735. "type",
  13736. "shellID",
  13737. "command",
  13738. "status"
  13739. ],
  13740. "additionalProperties": false
  13741. },
  13742. "Session.Message.ProviderState": {
  13743. "type": "object"
  13744. },
  13745. "Session.Message.Assistant.Text": {
  13746. "type": "object",
  13747. "properties": {
  13748. "type": {
  13749. "type": "string",
  13750. "enum": [
  13751. "text"
  13752. ]
  13753. },
  13754. "text": {
  13755. "type": "string"
  13756. },
  13757. "state": {
  13758. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13759. }
  13760. },
  13761. "required": [
  13762. "type",
  13763. "text"
  13764. ],
  13765. "additionalProperties": false
  13766. },
  13767. "Session.Message.Assistant.Reasoning": {
  13768. "type": "object",
  13769. "properties": {
  13770. "type": {
  13771. "type": "string",
  13772. "enum": [
  13773. "reasoning"
  13774. ]
  13775. },
  13776. "text": {
  13777. "type": "string"
  13778. },
  13779. "state": {
  13780. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13781. },
  13782. "time": {
  13783. "type": "object",
  13784. "properties": {
  13785. "created": {
  13786. "type": "number"
  13787. },
  13788. "completed": {
  13789. "type": "number"
  13790. }
  13791. },
  13792. "required": [
  13793. "created"
  13794. ],
  13795. "additionalProperties": false
  13796. }
  13797. },
  13798. "required": [
  13799. "type",
  13800. "text"
  13801. ],
  13802. "additionalProperties": false
  13803. },
  13804. "Session.Message.ToolState.Streaming": {
  13805. "type": "object",
  13806. "properties": {
  13807. "status": {
  13808. "type": "string",
  13809. "enum": [
  13810. "streaming"
  13811. ]
  13812. },
  13813. "input": {
  13814. "type": "string"
  13815. }
  13816. },
  13817. "required": [
  13818. "status",
  13819. "input"
  13820. ],
  13821. "additionalProperties": false
  13822. },
  13823. "Session.Message.ToolState.Running": {
  13824. "type": "object",
  13825. "properties": {
  13826. "status": {
  13827. "type": "string",
  13828. "enum": [
  13829. "running"
  13830. ]
  13831. },
  13832. "input": {
  13833. "type": "object"
  13834. },
  13835. "metadata": {
  13836. "type": "object"
  13837. }
  13838. },
  13839. "required": [
  13840. "status",
  13841. "input",
  13842. "metadata"
  13843. ],
  13844. "additionalProperties": false
  13845. },
  13846. "Tool.TextContent": {
  13847. "type": "object",
  13848. "properties": {
  13849. "type": {
  13850. "type": "string",
  13851. "enum": [
  13852. "text"
  13853. ]
  13854. },
  13855. "text": {
  13856. "type": "string"
  13857. }
  13858. },
  13859. "required": [
  13860. "type",
  13861. "text"
  13862. ],
  13863. "additionalProperties": false
  13864. },
  13865. "Tool.FileContent": {
  13866. "type": "object",
  13867. "properties": {
  13868. "type": {
  13869. "type": "string",
  13870. "enum": [
  13871. "file"
  13872. ]
  13873. },
  13874. "uri": {
  13875. "type": "string"
  13876. },
  13877. "mime": {
  13878. "type": "string"
  13879. },
  13880. "name": {
  13881. "anyOf": [
  13882. {
  13883. "type": "string"
  13884. },
  13885. {
  13886. "type": "null"
  13887. }
  13888. ]
  13889. }
  13890. },
  13891. "required": [
  13892. "type",
  13893. "uri",
  13894. "mime"
  13895. ],
  13896. "additionalProperties": false
  13897. },
  13898. "Tool.Content": {
  13899. "anyOf": [
  13900. {
  13901. "$ref": "#/components/schemas/Tool.TextContent"
  13902. },
  13903. {
  13904. "$ref": "#/components/schemas/Tool.FileContent"
  13905. }
  13906. ]
  13907. },
  13908. "Session.Message.ToolState.Completed": {
  13909. "type": "object",
  13910. "properties": {
  13911. "status": {
  13912. "type": "string",
  13913. "enum": [
  13914. "completed"
  13915. ]
  13916. },
  13917. "input": {
  13918. "type": "object"
  13919. },
  13920. "content": {
  13921. "type": "array",
  13922. "prefixItems": [
  13923. {
  13924. "$ref": "#/components/schemas/Tool.Content"
  13925. }
  13926. ],
  13927. "minItems": 1,
  13928. "items": {
  13929. "$ref": "#/components/schemas/Tool.Content"
  13930. }
  13931. },
  13932. "metadata": {
  13933. "type": "object"
  13934. }
  13935. },
  13936. "required": [
  13937. "status",
  13938. "input",
  13939. "content"
  13940. ],
  13941. "additionalProperties": false
  13942. },
  13943. "Session.StructuredError": {
  13944. "type": "object",
  13945. "properties": {
  13946. "type": {
  13947. "type": "string"
  13948. },
  13949. "message": {
  13950. "type": "string"
  13951. },
  13952. "status": {
  13953. "type": "integer",
  13954. "allOf": [
  13955. {
  13956. "minimum": 100,
  13957. "maximum": 599
  13958. }
  13959. ]
  13960. }
  13961. },
  13962. "required": [
  13963. "type",
  13964. "message"
  13965. ],
  13966. "additionalProperties": false
  13967. },
  13968. "Session.Message.ToolState.Error": {
  13969. "type": "object",
  13970. "properties": {
  13971. "status": {
  13972. "type": "string",
  13973. "enum": [
  13974. "error"
  13975. ]
  13976. },
  13977. "input": {
  13978. "type": "object"
  13979. },
  13980. "error": {
  13981. "$ref": "#/components/schemas/Session.StructuredError"
  13982. },
  13983. "content": {
  13984. "type": "array",
  13985. "prefixItems": [
  13986. {
  13987. "$ref": "#/components/schemas/Tool.Content"
  13988. }
  13989. ],
  13990. "minItems": 1,
  13991. "items": {
  13992. "$ref": "#/components/schemas/Tool.Content"
  13993. }
  13994. },
  13995. "metadata": {
  13996. "type": "object"
  13997. }
  13998. },
  13999. "required": [
  14000. "status",
  14001. "input",
  14002. "error"
  14003. ],
  14004. "additionalProperties": false
  14005. },
  14006. "Session.Message.Assistant.Tool": {
  14007. "type": "object",
  14008. "properties": {
  14009. "type": {
  14010. "type": "string",
  14011. "enum": [
  14012. "tool"
  14013. ]
  14014. },
  14015. "id": {
  14016. "type": "string"
  14017. },
  14018. "name": {
  14019. "type": "string"
  14020. },
  14021. "executed": {
  14022. "type": "boolean"
  14023. },
  14024. "providerState": {
  14025. "$ref": "#/components/schemas/Session.Message.ProviderState"
  14026. },
  14027. "providerResultState": {
  14028. "$ref": "#/components/schemas/Session.Message.ProviderState"
  14029. },
  14030. "state": {
  14031. "anyOf": [
  14032. {
  14033. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  14034. },
  14035. {
  14036. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  14037. },
  14038. {
  14039. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  14040. },
  14041. {
  14042. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  14043. }
  14044. ]
  14045. },
  14046. "time": {
  14047. "type": "object",
  14048. "properties": {
  14049. "created": {
  14050. "type": "number"
  14051. },
  14052. "ran": {
  14053. "type": "number"
  14054. },
  14055. "completed": {
  14056. "type": "number"
  14057. }
  14058. },
  14059. "required": [
  14060. "created"
  14061. ],
  14062. "additionalProperties": false
  14063. }
  14064. },
  14065. "required": [
  14066. "type",
  14067. "id",
  14068. "name",
  14069. "state",
  14070. "time"
  14071. ],
  14072. "additionalProperties": false
  14073. },
  14074. "Session.Message.Assistant.Retry": {
  14075. "type": "object",
  14076. "properties": {
  14077. "attempt": {
  14078. "type": "integer",
  14079. "allOf": [
  14080. {
  14081. "exclusiveMinimum": 0
  14082. }
  14083. ]
  14084. },
  14085. "at": {
  14086. "type": "number"
  14087. },
  14088. "error": {
  14089. "$ref": "#/components/schemas/Session.StructuredError"
  14090. }
  14091. },
  14092. "required": [
  14093. "attempt",
  14094. "at",
  14095. "error"
  14096. ],
  14097. "additionalProperties": false
  14098. },
  14099. "Session.Message.Assistant": {
  14100. "type": "object",
  14101. "properties": {
  14102. "id": {
  14103. "type": "string",
  14104. "allOf": [
  14105. {
  14106. "pattern": "^msg_"
  14107. }
  14108. ]
  14109. },
  14110. "metadata": {
  14111. "type": "object"
  14112. },
  14113. "time": {
  14114. "type": "object",
  14115. "properties": {
  14116. "created": {
  14117. "type": "number"
  14118. },
  14119. "completed": {
  14120. "type": "number"
  14121. }
  14122. },
  14123. "required": [
  14124. "created"
  14125. ],
  14126. "additionalProperties": false
  14127. },
  14128. "type": {
  14129. "type": "string",
  14130. "enum": [
  14131. "assistant"
  14132. ]
  14133. },
  14134. "agent": {
  14135. "type": "string"
  14136. },
  14137. "model": {
  14138. "$ref": "#/components/schemas/Model.Ref"
  14139. },
  14140. "content": {
  14141. "type": "array",
  14142. "items": {
  14143. "anyOf": [
  14144. {
  14145. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  14146. },
  14147. {
  14148. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  14149. },
  14150. {
  14151. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  14152. }
  14153. ]
  14154. }
  14155. },
  14156. "snapshot": {
  14157. "type": "object",
  14158. "properties": {
  14159. "start": {
  14160. "type": "string"
  14161. },
  14162. "end": {
  14163. "type": "string"
  14164. },
  14165. "files": {
  14166. "type": "array",
  14167. "items": {
  14168. "type": "string"
  14169. }
  14170. }
  14171. },
  14172. "additionalProperties": false
  14173. },
  14174. "finish": {
  14175. "type": "string",
  14176. "enum": [
  14177. "stop",
  14178. "length",
  14179. "tool-calls",
  14180. "content-filter",
  14181. "error",
  14182. "unknown"
  14183. ]
  14184. },
  14185. "cost": {
  14186. "$ref": "#/components/schemas/Money.USD"
  14187. },
  14188. "tokens": {
  14189. "$ref": "#/components/schemas/TokenUsage.Info"
  14190. },
  14191. "error": {
  14192. "$ref": "#/components/schemas/Session.StructuredError"
  14193. },
  14194. "retry": {
  14195. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  14196. }
  14197. },
  14198. "required": [
  14199. "id",
  14200. "time",
  14201. "type",
  14202. "agent",
  14203. "model",
  14204. "content"
  14205. ],
  14206. "additionalProperties": false
  14207. },
  14208. "Session.Message.Compaction.Running": {
  14209. "type": "object",
  14210. "properties": {
  14211. "type": {
  14212. "type": "string",
  14213. "enum": [
  14214. "compaction"
  14215. ]
  14216. },
  14217. "id": {
  14218. "type": "string",
  14219. "allOf": [
  14220. {
  14221. "pattern": "^msg_"
  14222. }
  14223. ]
  14224. },
  14225. "metadata": {
  14226. "type": "object"
  14227. },
  14228. "time": {
  14229. "type": "object",
  14230. "properties": {
  14231. "created": {
  14232. "type": "number"
  14233. }
  14234. },
  14235. "required": [
  14236. "created"
  14237. ],
  14238. "additionalProperties": false
  14239. },
  14240. "status": {
  14241. "type": "string",
  14242. "enum": [
  14243. "running"
  14244. ]
  14245. },
  14246. "reason": {
  14247. "type": "string",
  14248. "enum": [
  14249. "auto",
  14250. "manual"
  14251. ]
  14252. },
  14253. "summary": {
  14254. "type": "string"
  14255. },
  14256. "recent": {
  14257. "type": "string"
  14258. }
  14259. },
  14260. "required": [
  14261. "type",
  14262. "id",
  14263. "time",
  14264. "status",
  14265. "reason",
  14266. "summary",
  14267. "recent"
  14268. ],
  14269. "additionalProperties": false
  14270. },
  14271. "Session.Message.Compaction.Completed": {
  14272. "type": "object",
  14273. "properties": {
  14274. "type": {
  14275. "type": "string",
  14276. "enum": [
  14277. "compaction"
  14278. ]
  14279. },
  14280. "id": {
  14281. "type": "string",
  14282. "allOf": [
  14283. {
  14284. "pattern": "^msg_"
  14285. }
  14286. ]
  14287. },
  14288. "metadata": {
  14289. "type": "object"
  14290. },
  14291. "time": {
  14292. "type": "object",
  14293. "properties": {
  14294. "created": {
  14295. "type": "number"
  14296. }
  14297. },
  14298. "required": [
  14299. "created"
  14300. ],
  14301. "additionalProperties": false
  14302. },
  14303. "status": {
  14304. "type": "string",
  14305. "enum": [
  14306. "completed"
  14307. ]
  14308. },
  14309. "reason": {
  14310. "type": "string",
  14311. "enum": [
  14312. "auto",
  14313. "manual"
  14314. ]
  14315. },
  14316. "summary": {
  14317. "type": "string"
  14318. },
  14319. "recent": {
  14320. "type": "string"
  14321. }
  14322. },
  14323. "required": [
  14324. "type",
  14325. "id",
  14326. "time",
  14327. "status",
  14328. "reason",
  14329. "summary",
  14330. "recent"
  14331. ],
  14332. "additionalProperties": false
  14333. },
  14334. "Session.Message.Compaction.Failed": {
  14335. "type": "object",
  14336. "properties": {
  14337. "type": {
  14338. "type": "string",
  14339. "enum": [
  14340. "compaction"
  14341. ]
  14342. },
  14343. "id": {
  14344. "type": "string",
  14345. "allOf": [
  14346. {
  14347. "pattern": "^msg_"
  14348. }
  14349. ]
  14350. },
  14351. "metadata": {
  14352. "type": "object"
  14353. },
  14354. "time": {
  14355. "type": "object",
  14356. "properties": {
  14357. "created": {
  14358. "type": "number"
  14359. }
  14360. },
  14361. "required": [
  14362. "created"
  14363. ],
  14364. "additionalProperties": false
  14365. },
  14366. "status": {
  14367. "type": "string",
  14368. "enum": [
  14369. "failed"
  14370. ]
  14371. },
  14372. "reason": {
  14373. "type": "string",
  14374. "enum": [
  14375. "auto",
  14376. "manual"
  14377. ]
  14378. },
  14379. "error": {
  14380. "$ref": "#/components/schemas/Session.StructuredError"
  14381. }
  14382. },
  14383. "required": [
  14384. "type",
  14385. "id",
  14386. "time",
  14387. "status",
  14388. "reason",
  14389. "error"
  14390. ],
  14391. "additionalProperties": false
  14392. },
  14393. "Session.Message.Compaction": {
  14394. "anyOf": [
  14395. {
  14396. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  14397. },
  14398. {
  14399. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  14400. },
  14401. {
  14402. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  14403. }
  14404. ]
  14405. },
  14406. "Session.Message.Info": {
  14407. "anyOf": [
  14408. {
  14409. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  14410. },
  14411. {
  14412. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  14413. },
  14414. {
  14415. "$ref": "#/components/schemas/Session.Message.User"
  14416. },
  14417. {
  14418. "$ref": "#/components/schemas/Session.Message.Synthetic"
  14419. },
  14420. {
  14421. "$ref": "#/components/schemas/Session.Message.System"
  14422. },
  14423. {
  14424. "$ref": "#/components/schemas/Session.Message.Skill"
  14425. },
  14426. {
  14427. "$ref": "#/components/schemas/Session.Message.Shell"
  14428. },
  14429. {
  14430. "$ref": "#/components/schemas/Session.Message.Assistant"
  14431. },
  14432. {
  14433. "$ref": "#/components/schemas/Session.Message.Compaction"
  14434. }
  14435. ]
  14436. },
  14437. "SessionPending.Info": {
  14438. "anyOf": [
  14439. {
  14440. "$ref": "#/components/schemas/SessionPending.User"
  14441. },
  14442. {
  14443. "$ref": "#/components/schemas/SessionPending.Synthetic"
  14444. },
  14445. {
  14446. "$ref": "#/components/schemas/SessionPending.Compaction"
  14447. }
  14448. ]
  14449. },
  14450. "InstructionEntry.Key": {
  14451. "type": "string",
  14452. "allOf": [
  14453. {
  14454. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  14455. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  14456. }
  14457. ]
  14458. },
  14459. "InstructionEntry.Info": {
  14460. "type": "object",
  14461. "properties": {
  14462. "key": {
  14463. "$ref": "#/components/schemas/InstructionEntry.Key"
  14464. },
  14465. "value": {}
  14466. },
  14467. "required": [
  14468. "key",
  14469. "value"
  14470. ],
  14471. "additionalProperties": false
  14472. },
  14473. "InstructionEntryValueTooLargeError": {
  14474. "type": "object",
  14475. "properties": {
  14476. "_tag": {
  14477. "type": "string",
  14478. "enum": [
  14479. "InstructionEntryValueTooLargeError"
  14480. ]
  14481. },
  14482. "actualBytes": {
  14483. "type": "integer"
  14484. },
  14485. "maxBytes": {
  14486. "type": "integer"
  14487. },
  14488. "message": {
  14489. "type": "string"
  14490. }
  14491. },
  14492. "required": [
  14493. "_tag",
  14494. "actualBytes",
  14495. "maxBytes",
  14496. "message"
  14497. ],
  14498. "additionalProperties": false
  14499. },
  14500. "SessionGenerateResponse": {
  14501. "type": "object",
  14502. "properties": {
  14503. "data": {
  14504. "type": "object",
  14505. "properties": {
  14506. "text": {
  14507. "type": "string"
  14508. }
  14509. },
  14510. "required": [
  14511. "text"
  14512. ],
  14513. "additionalProperties": false
  14514. }
  14515. },
  14516. "required": [
  14517. "data"
  14518. ],
  14519. "additionalProperties": false
  14520. },
  14521. "session.agent.selected": {
  14522. "type": "object",
  14523. "properties": {
  14524. "id": {
  14525. "type": "string",
  14526. "allOf": [
  14527. {
  14528. "pattern": "^evt_"
  14529. }
  14530. ]
  14531. },
  14532. "created": {
  14533. "type": "number"
  14534. },
  14535. "metadata": {
  14536. "type": "object"
  14537. },
  14538. "type": {
  14539. "type": "string",
  14540. "enum": [
  14541. "session.agent.selected"
  14542. ]
  14543. },
  14544. "durable": {
  14545. "type": "object",
  14546. "properties": {
  14547. "aggregateID": {
  14548. "type": "string"
  14549. },
  14550. "seq": {
  14551. "type": "integer",
  14552. "allOf": [
  14553. {
  14554. "minimum": 0
  14555. }
  14556. ]
  14557. },
  14558. "version": {
  14559. "type": "number",
  14560. "enum": [
  14561. 1
  14562. ]
  14563. }
  14564. },
  14565. "required": [
  14566. "aggregateID",
  14567. "seq",
  14568. "version"
  14569. ],
  14570. "additionalProperties": false
  14571. },
  14572. "location": {
  14573. "$ref": "#/components/schemas/Location.Ref"
  14574. },
  14575. "data": {
  14576. "type": "object",
  14577. "properties": {
  14578. "sessionID": {
  14579. "type": "string",
  14580. "allOf": [
  14581. {
  14582. "pattern": "^ses"
  14583. }
  14584. ]
  14585. },
  14586. "agent": {
  14587. "type": "string"
  14588. }
  14589. },
  14590. "required": [
  14591. "sessionID",
  14592. "agent"
  14593. ],
  14594. "additionalProperties": false
  14595. }
  14596. },
  14597. "required": [
  14598. "id",
  14599. "created",
  14600. "type",
  14601. "durable",
  14602. "data"
  14603. ],
  14604. "additionalProperties": false
  14605. },
  14606. "session.model.selected": {
  14607. "type": "object",
  14608. "properties": {
  14609. "id": {
  14610. "type": "string",
  14611. "allOf": [
  14612. {
  14613. "pattern": "^evt_"
  14614. }
  14615. ]
  14616. },
  14617. "created": {
  14618. "type": "number"
  14619. },
  14620. "metadata": {
  14621. "type": "object"
  14622. },
  14623. "type": {
  14624. "type": "string",
  14625. "enum": [
  14626. "session.model.selected"
  14627. ]
  14628. },
  14629. "durable": {
  14630. "type": "object",
  14631. "properties": {
  14632. "aggregateID": {
  14633. "type": "string"
  14634. },
  14635. "seq": {
  14636. "type": "integer",
  14637. "allOf": [
  14638. {
  14639. "minimum": 0
  14640. }
  14641. ]
  14642. },
  14643. "version": {
  14644. "type": "number",
  14645. "enum": [
  14646. 1
  14647. ]
  14648. }
  14649. },
  14650. "required": [
  14651. "aggregateID",
  14652. "seq",
  14653. "version"
  14654. ],
  14655. "additionalProperties": false
  14656. },
  14657. "location": {
  14658. "$ref": "#/components/schemas/Location.Ref"
  14659. },
  14660. "data": {
  14661. "type": "object",
  14662. "properties": {
  14663. "sessionID": {
  14664. "type": "string",
  14665. "allOf": [
  14666. {
  14667. "pattern": "^ses"
  14668. }
  14669. ]
  14670. },
  14671. "model": {
  14672. "$ref": "#/components/schemas/Model.Ref"
  14673. }
  14674. },
  14675. "required": [
  14676. "sessionID",
  14677. "model"
  14678. ],
  14679. "additionalProperties": false
  14680. }
  14681. },
  14682. "required": [
  14683. "id",
  14684. "created",
  14685. "type",
  14686. "durable",
  14687. "data"
  14688. ],
  14689. "additionalProperties": false
  14690. },
  14691. "session.moved": {
  14692. "type": "object",
  14693. "properties": {
  14694. "id": {
  14695. "type": "string",
  14696. "allOf": [
  14697. {
  14698. "pattern": "^evt_"
  14699. }
  14700. ]
  14701. },
  14702. "created": {
  14703. "type": "number"
  14704. },
  14705. "metadata": {
  14706. "type": "object"
  14707. },
  14708. "type": {
  14709. "type": "string",
  14710. "enum": [
  14711. "session.moved"
  14712. ]
  14713. },
  14714. "durable": {
  14715. "type": "object",
  14716. "properties": {
  14717. "aggregateID": {
  14718. "type": "string"
  14719. },
  14720. "seq": {
  14721. "type": "integer",
  14722. "allOf": [
  14723. {
  14724. "minimum": 0
  14725. }
  14726. ]
  14727. },
  14728. "version": {
  14729. "type": "number",
  14730. "enum": [
  14731. 1
  14732. ]
  14733. }
  14734. },
  14735. "required": [
  14736. "aggregateID",
  14737. "seq",
  14738. "version"
  14739. ],
  14740. "additionalProperties": false
  14741. },
  14742. "location": {
  14743. "$ref": "#/components/schemas/Location.Ref"
  14744. },
  14745. "data": {
  14746. "type": "object",
  14747. "properties": {
  14748. "sessionID": {
  14749. "type": "string",
  14750. "allOf": [
  14751. {
  14752. "pattern": "^ses"
  14753. }
  14754. ]
  14755. },
  14756. "location": {
  14757. "$ref": "#/components/schemas/Location.Ref"
  14758. },
  14759. "projectID": {
  14760. "type": "string"
  14761. },
  14762. "subpath": {
  14763. "type": "string"
  14764. }
  14765. },
  14766. "required": [
  14767. "sessionID",
  14768. "location"
  14769. ],
  14770. "additionalProperties": false
  14771. }
  14772. },
  14773. "required": [
  14774. "id",
  14775. "created",
  14776. "type",
  14777. "durable",
  14778. "data"
  14779. ],
  14780. "additionalProperties": false
  14781. },
  14782. "session.renamed": {
  14783. "type": "object",
  14784. "properties": {
  14785. "id": {
  14786. "type": "string",
  14787. "allOf": [
  14788. {
  14789. "pattern": "^evt_"
  14790. }
  14791. ]
  14792. },
  14793. "created": {
  14794. "type": "number"
  14795. },
  14796. "metadata": {
  14797. "type": "object"
  14798. },
  14799. "type": {
  14800. "type": "string",
  14801. "enum": [
  14802. "session.renamed"
  14803. ]
  14804. },
  14805. "durable": {
  14806. "type": "object",
  14807. "properties": {
  14808. "aggregateID": {
  14809. "type": "string"
  14810. },
  14811. "seq": {
  14812. "type": "integer",
  14813. "allOf": [
  14814. {
  14815. "minimum": 0
  14816. }
  14817. ]
  14818. },
  14819. "version": {
  14820. "type": "number",
  14821. "enum": [
  14822. 1
  14823. ]
  14824. }
  14825. },
  14826. "required": [
  14827. "aggregateID",
  14828. "seq",
  14829. "version"
  14830. ],
  14831. "additionalProperties": false
  14832. },
  14833. "location": {
  14834. "$ref": "#/components/schemas/Location.Ref"
  14835. },
  14836. "data": {
  14837. "type": "object",
  14838. "properties": {
  14839. "sessionID": {
  14840. "type": "string",
  14841. "allOf": [
  14842. {
  14843. "pattern": "^ses"
  14844. }
  14845. ]
  14846. },
  14847. "title": {
  14848. "type": "string"
  14849. }
  14850. },
  14851. "required": [
  14852. "sessionID",
  14853. "title"
  14854. ],
  14855. "additionalProperties": false
  14856. }
  14857. },
  14858. "required": [
  14859. "id",
  14860. "created",
  14861. "type",
  14862. "durable",
  14863. "data"
  14864. ],
  14865. "additionalProperties": false
  14866. },
  14867. "session.deleted": {
  14868. "type": "object",
  14869. "properties": {
  14870. "id": {
  14871. "type": "string",
  14872. "allOf": [
  14873. {
  14874. "pattern": "^evt_"
  14875. }
  14876. ]
  14877. },
  14878. "created": {
  14879. "type": "number"
  14880. },
  14881. "metadata": {
  14882. "type": "object"
  14883. },
  14884. "type": {
  14885. "type": "string",
  14886. "enum": [
  14887. "session.deleted"
  14888. ]
  14889. },
  14890. "durable": {
  14891. "type": "object",
  14892. "properties": {
  14893. "aggregateID": {
  14894. "type": "string"
  14895. },
  14896. "seq": {
  14897. "type": "integer",
  14898. "allOf": [
  14899. {
  14900. "minimum": 0
  14901. }
  14902. ]
  14903. },
  14904. "version": {
  14905. "type": "number",
  14906. "enum": [
  14907. 2
  14908. ]
  14909. }
  14910. },
  14911. "required": [
  14912. "aggregateID",
  14913. "seq",
  14914. "version"
  14915. ],
  14916. "additionalProperties": false
  14917. },
  14918. "location": {
  14919. "$ref": "#/components/schemas/Location.Ref"
  14920. },
  14921. "data": {
  14922. "type": "object",
  14923. "properties": {
  14924. "sessionID": {
  14925. "type": "string",
  14926. "allOf": [
  14927. {
  14928. "pattern": "^ses"
  14929. }
  14930. ]
  14931. }
  14932. },
  14933. "required": [
  14934. "sessionID"
  14935. ],
  14936. "additionalProperties": false
  14937. }
  14938. },
  14939. "required": [
  14940. "id",
  14941. "created",
  14942. "type",
  14943. "durable",
  14944. "data"
  14945. ],
  14946. "additionalProperties": false
  14947. },
  14948. "session.forked": {
  14949. "type": "object",
  14950. "properties": {
  14951. "id": {
  14952. "type": "string",
  14953. "allOf": [
  14954. {
  14955. "pattern": "^evt_"
  14956. }
  14957. ]
  14958. },
  14959. "created": {
  14960. "type": "number"
  14961. },
  14962. "metadata": {
  14963. "type": "object"
  14964. },
  14965. "type": {
  14966. "type": "string",
  14967. "enum": [
  14968. "session.forked"
  14969. ]
  14970. },
  14971. "durable": {
  14972. "type": "object",
  14973. "properties": {
  14974. "aggregateID": {
  14975. "type": "string"
  14976. },
  14977. "seq": {
  14978. "type": "integer",
  14979. "allOf": [
  14980. {
  14981. "minimum": 0
  14982. }
  14983. ]
  14984. },
  14985. "version": {
  14986. "type": "number",
  14987. "enum": [
  14988. 2
  14989. ]
  14990. }
  14991. },
  14992. "required": [
  14993. "aggregateID",
  14994. "seq",
  14995. "version"
  14996. ],
  14997. "additionalProperties": false
  14998. },
  14999. "location": {
  15000. "$ref": "#/components/schemas/Location.Ref"
  15001. },
  15002. "data": {
  15003. "type": "object",
  15004. "properties": {
  15005. "sessionID": {
  15006. "type": "string",
  15007. "allOf": [
  15008. {
  15009. "pattern": "^ses"
  15010. }
  15011. ]
  15012. },
  15013. "parentID": {
  15014. "type": "string",
  15015. "allOf": [
  15016. {
  15017. "pattern": "^ses"
  15018. }
  15019. ]
  15020. },
  15021. "boundary": {
  15022. "$ref": "#/components/schemas/Session.ForkBoundary"
  15023. },
  15024. "instructions": {
  15025. "type": "object",
  15026. "patternProperties": {
  15027. "^[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._/-]*$": {
  15028. "type": "string",
  15029. "allOf": [
  15030. {
  15031. "pattern": "^[a-f0-9]{64}$"
  15032. }
  15033. ]
  15034. }
  15035. }
  15036. }
  15037. },
  15038. "required": [
  15039. "sessionID",
  15040. "parentID",
  15041. "boundary"
  15042. ],
  15043. "additionalProperties": false
  15044. }
  15045. },
  15046. "required": [
  15047. "id",
  15048. "created",
  15049. "type",
  15050. "durable",
  15051. "data"
  15052. ],
  15053. "additionalProperties": false
  15054. },
  15055. "session.input.promoted": {
  15056. "type": "object",
  15057. "properties": {
  15058. "id": {
  15059. "type": "string",
  15060. "allOf": [
  15061. {
  15062. "pattern": "^evt_"
  15063. }
  15064. ]
  15065. },
  15066. "created": {
  15067. "type": "number"
  15068. },
  15069. "metadata": {
  15070. "type": "object"
  15071. },
  15072. "type": {
  15073. "type": "string",
  15074. "enum": [
  15075. "session.input.promoted"
  15076. ]
  15077. },
  15078. "durable": {
  15079. "type": "object",
  15080. "properties": {
  15081. "aggregateID": {
  15082. "type": "string"
  15083. },
  15084. "seq": {
  15085. "type": "integer",
  15086. "allOf": [
  15087. {
  15088. "minimum": 0
  15089. }
  15090. ]
  15091. },
  15092. "version": {
  15093. "type": "number",
  15094. "enum": [
  15095. 1
  15096. ]
  15097. }
  15098. },
  15099. "required": [
  15100. "aggregateID",
  15101. "seq",
  15102. "version"
  15103. ],
  15104. "additionalProperties": false
  15105. },
  15106. "location": {
  15107. "$ref": "#/components/schemas/Location.Ref"
  15108. },
  15109. "data": {
  15110. "type": "object",
  15111. "properties": {
  15112. "sessionID": {
  15113. "type": "string",
  15114. "allOf": [
  15115. {
  15116. "pattern": "^ses"
  15117. }
  15118. ]
  15119. },
  15120. "inputID": {
  15121. "type": "string",
  15122. "allOf": [
  15123. {
  15124. "pattern": "^msg_"
  15125. }
  15126. ]
  15127. }
  15128. },
  15129. "required": [
  15130. "sessionID",
  15131. "inputID"
  15132. ],
  15133. "additionalProperties": false
  15134. }
  15135. },
  15136. "required": [
  15137. "id",
  15138. "created",
  15139. "type",
  15140. "durable",
  15141. "data"
  15142. ],
  15143. "additionalProperties": false
  15144. },
  15145. "SessionPending.UserData1": {
  15146. "type": "object",
  15147. "properties": {
  15148. "text": {
  15149. "type": "string"
  15150. },
  15151. "files": {
  15152. "type": "array",
  15153. "items": {
  15154. "$ref": "#/components/schemas/Prompt.FileAttachment"
  15155. }
  15156. },
  15157. "agents": {
  15158. "type": "array",
  15159. "items": {
  15160. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  15161. }
  15162. },
  15163. "metadata": {
  15164. "type": "object"
  15165. }
  15166. },
  15167. "required": [
  15168. "text"
  15169. ],
  15170. "additionalProperties": false
  15171. },
  15172. "SessionPending.UserMessage": {
  15173. "type": "object",
  15174. "properties": {
  15175. "type": {
  15176. "type": "string",
  15177. "enum": [
  15178. "user"
  15179. ]
  15180. },
  15181. "data": {
  15182. "$ref": "#/components/schemas/SessionPending.UserData1"
  15183. },
  15184. "delivery": {
  15185. "type": "string",
  15186. "enum": [
  15187. "steer",
  15188. "queue"
  15189. ]
  15190. }
  15191. },
  15192. "required": [
  15193. "type",
  15194. "data",
  15195. "delivery"
  15196. ],
  15197. "additionalProperties": false
  15198. },
  15199. "SessionPending.SyntheticData1": {
  15200. "type": "object",
  15201. "properties": {
  15202. "text": {
  15203. "type": "string"
  15204. },
  15205. "description": {
  15206. "type": "string"
  15207. },
  15208. "metadata": {
  15209. "type": "object"
  15210. }
  15211. },
  15212. "required": [
  15213. "text"
  15214. ],
  15215. "additionalProperties": false
  15216. },
  15217. "SessionPending.SyntheticMessage": {
  15218. "type": "object",
  15219. "properties": {
  15220. "type": {
  15221. "type": "string",
  15222. "enum": [
  15223. "synthetic"
  15224. ]
  15225. },
  15226. "data": {
  15227. "$ref": "#/components/schemas/SessionPending.SyntheticData1"
  15228. },
  15229. "delivery": {
  15230. "type": "string",
  15231. "enum": [
  15232. "steer",
  15233. "queue"
  15234. ]
  15235. }
  15236. },
  15237. "required": [
  15238. "type",
  15239. "data",
  15240. "delivery"
  15241. ],
  15242. "additionalProperties": false
  15243. },
  15244. "SessionPending.Message": {
  15245. "anyOf": [
  15246. {
  15247. "$ref": "#/components/schemas/SessionPending.UserMessage"
  15248. },
  15249. {
  15250. "$ref": "#/components/schemas/SessionPending.SyntheticMessage"
  15251. }
  15252. ]
  15253. },
  15254. "session.input.admitted": {
  15255. "type": "object",
  15256. "properties": {
  15257. "id": {
  15258. "type": "string",
  15259. "allOf": [
  15260. {
  15261. "pattern": "^evt_"
  15262. }
  15263. ]
  15264. },
  15265. "created": {
  15266. "type": "number"
  15267. },
  15268. "metadata": {
  15269. "type": "object"
  15270. },
  15271. "type": {
  15272. "type": "string",
  15273. "enum": [
  15274. "session.input.admitted"
  15275. ]
  15276. },
  15277. "durable": {
  15278. "type": "object",
  15279. "properties": {
  15280. "aggregateID": {
  15281. "type": "string"
  15282. },
  15283. "seq": {
  15284. "type": "integer",
  15285. "allOf": [
  15286. {
  15287. "minimum": 0
  15288. }
  15289. ]
  15290. },
  15291. "version": {
  15292. "type": "number",
  15293. "enum": [
  15294. 1
  15295. ]
  15296. }
  15297. },
  15298. "required": [
  15299. "aggregateID",
  15300. "seq",
  15301. "version"
  15302. ],
  15303. "additionalProperties": false
  15304. },
  15305. "location": {
  15306. "$ref": "#/components/schemas/Location.Ref"
  15307. },
  15308. "data": {
  15309. "type": "object",
  15310. "properties": {
  15311. "sessionID": {
  15312. "type": "string",
  15313. "allOf": [
  15314. {
  15315. "pattern": "^ses"
  15316. }
  15317. ]
  15318. },
  15319. "inputID": {
  15320. "type": "string",
  15321. "allOf": [
  15322. {
  15323. "pattern": "^msg_"
  15324. }
  15325. ]
  15326. },
  15327. "input": {
  15328. "$ref": "#/components/schemas/SessionPending.Message"
  15329. }
  15330. },
  15331. "required": [
  15332. "sessionID",
  15333. "inputID",
  15334. "input"
  15335. ],
  15336. "additionalProperties": false
  15337. }
  15338. },
  15339. "required": [
  15340. "id",
  15341. "created",
  15342. "type",
  15343. "durable",
  15344. "data"
  15345. ],
  15346. "additionalProperties": false
  15347. },
  15348. "session.execution.started": {
  15349. "type": "object",
  15350. "properties": {
  15351. "id": {
  15352. "type": "string",
  15353. "allOf": [
  15354. {
  15355. "pattern": "^evt_"
  15356. }
  15357. ]
  15358. },
  15359. "created": {
  15360. "type": "number"
  15361. },
  15362. "metadata": {
  15363. "type": "object"
  15364. },
  15365. "type": {
  15366. "type": "string",
  15367. "enum": [
  15368. "session.execution.started"
  15369. ]
  15370. },
  15371. "durable": {
  15372. "type": "object",
  15373. "properties": {
  15374. "aggregateID": {
  15375. "type": "string"
  15376. },
  15377. "seq": {
  15378. "type": "integer",
  15379. "allOf": [
  15380. {
  15381. "minimum": 0
  15382. }
  15383. ]
  15384. },
  15385. "version": {
  15386. "type": "number",
  15387. "enum": [
  15388. 1
  15389. ]
  15390. }
  15391. },
  15392. "required": [
  15393. "aggregateID",
  15394. "seq",
  15395. "version"
  15396. ],
  15397. "additionalProperties": false
  15398. },
  15399. "location": {
  15400. "$ref": "#/components/schemas/Location.Ref"
  15401. },
  15402. "data": {
  15403. "type": "object",
  15404. "properties": {
  15405. "sessionID": {
  15406. "type": "string",
  15407. "allOf": [
  15408. {
  15409. "pattern": "^ses"
  15410. }
  15411. ]
  15412. }
  15413. },
  15414. "required": [
  15415. "sessionID"
  15416. ],
  15417. "additionalProperties": false
  15418. }
  15419. },
  15420. "required": [
  15421. "id",
  15422. "created",
  15423. "type",
  15424. "durable",
  15425. "data"
  15426. ],
  15427. "additionalProperties": false
  15428. },
  15429. "session.execution.succeeded": {
  15430. "type": "object",
  15431. "properties": {
  15432. "id": {
  15433. "type": "string",
  15434. "allOf": [
  15435. {
  15436. "pattern": "^evt_"
  15437. }
  15438. ]
  15439. },
  15440. "created": {
  15441. "type": "number"
  15442. },
  15443. "metadata": {
  15444. "type": "object"
  15445. },
  15446. "type": {
  15447. "type": "string",
  15448. "enum": [
  15449. "session.execution.succeeded"
  15450. ]
  15451. },
  15452. "durable": {
  15453. "type": "object",
  15454. "properties": {
  15455. "aggregateID": {
  15456. "type": "string"
  15457. },
  15458. "seq": {
  15459. "type": "integer",
  15460. "allOf": [
  15461. {
  15462. "minimum": 0
  15463. }
  15464. ]
  15465. },
  15466. "version": {
  15467. "type": "number",
  15468. "enum": [
  15469. 1
  15470. ]
  15471. }
  15472. },
  15473. "required": [
  15474. "aggregateID",
  15475. "seq",
  15476. "version"
  15477. ],
  15478. "additionalProperties": false
  15479. },
  15480. "location": {
  15481. "$ref": "#/components/schemas/Location.Ref"
  15482. },
  15483. "data": {
  15484. "type": "object",
  15485. "properties": {
  15486. "sessionID": {
  15487. "type": "string",
  15488. "allOf": [
  15489. {
  15490. "pattern": "^ses"
  15491. }
  15492. ]
  15493. }
  15494. },
  15495. "required": [
  15496. "sessionID"
  15497. ],
  15498. "additionalProperties": false
  15499. }
  15500. },
  15501. "required": [
  15502. "id",
  15503. "created",
  15504. "type",
  15505. "durable",
  15506. "data"
  15507. ],
  15508. "additionalProperties": false
  15509. },
  15510. "session.execution.failed": {
  15511. "type": "object",
  15512. "properties": {
  15513. "id": {
  15514. "type": "string",
  15515. "allOf": [
  15516. {
  15517. "pattern": "^evt_"
  15518. }
  15519. ]
  15520. },
  15521. "created": {
  15522. "type": "number"
  15523. },
  15524. "metadata": {
  15525. "type": "object"
  15526. },
  15527. "type": {
  15528. "type": "string",
  15529. "enum": [
  15530. "session.execution.failed"
  15531. ]
  15532. },
  15533. "durable": {
  15534. "type": "object",
  15535. "properties": {
  15536. "aggregateID": {
  15537. "type": "string"
  15538. },
  15539. "seq": {
  15540. "type": "integer",
  15541. "allOf": [
  15542. {
  15543. "minimum": 0
  15544. }
  15545. ]
  15546. },
  15547. "version": {
  15548. "type": "number",
  15549. "enum": [
  15550. 1
  15551. ]
  15552. }
  15553. },
  15554. "required": [
  15555. "aggregateID",
  15556. "seq",
  15557. "version"
  15558. ],
  15559. "additionalProperties": false
  15560. },
  15561. "location": {
  15562. "$ref": "#/components/schemas/Location.Ref"
  15563. },
  15564. "data": {
  15565. "type": "object",
  15566. "properties": {
  15567. "sessionID": {
  15568. "type": "string",
  15569. "allOf": [
  15570. {
  15571. "pattern": "^ses"
  15572. }
  15573. ]
  15574. },
  15575. "error": {
  15576. "$ref": "#/components/schemas/Session.StructuredError"
  15577. }
  15578. },
  15579. "required": [
  15580. "sessionID",
  15581. "error"
  15582. ],
  15583. "additionalProperties": false
  15584. }
  15585. },
  15586. "required": [
  15587. "id",
  15588. "created",
  15589. "type",
  15590. "durable",
  15591. "data"
  15592. ],
  15593. "additionalProperties": false
  15594. },
  15595. "session.execution.interrupted": {
  15596. "type": "object",
  15597. "properties": {
  15598. "id": {
  15599. "type": "string",
  15600. "allOf": [
  15601. {
  15602. "pattern": "^evt_"
  15603. }
  15604. ]
  15605. },
  15606. "created": {
  15607. "type": "number"
  15608. },
  15609. "metadata": {
  15610. "type": "object"
  15611. },
  15612. "type": {
  15613. "type": "string",
  15614. "enum": [
  15615. "session.execution.interrupted"
  15616. ]
  15617. },
  15618. "durable": {
  15619. "type": "object",
  15620. "properties": {
  15621. "aggregateID": {
  15622. "type": "string"
  15623. },
  15624. "seq": {
  15625. "type": "integer",
  15626. "allOf": [
  15627. {
  15628. "minimum": 0
  15629. }
  15630. ]
  15631. },
  15632. "version": {
  15633. "type": "number",
  15634. "enum": [
  15635. 1
  15636. ]
  15637. }
  15638. },
  15639. "required": [
  15640. "aggregateID",
  15641. "seq",
  15642. "version"
  15643. ],
  15644. "additionalProperties": false
  15645. },
  15646. "location": {
  15647. "$ref": "#/components/schemas/Location.Ref"
  15648. },
  15649. "data": {
  15650. "type": "object",
  15651. "properties": {
  15652. "sessionID": {
  15653. "type": "string",
  15654. "allOf": [
  15655. {
  15656. "pattern": "^ses"
  15657. }
  15658. ]
  15659. },
  15660. "reason": {
  15661. "type": "string",
  15662. "enum": [
  15663. "user",
  15664. "shutdown",
  15665. "superseded"
  15666. ]
  15667. }
  15668. },
  15669. "required": [
  15670. "sessionID",
  15671. "reason"
  15672. ],
  15673. "additionalProperties": false
  15674. }
  15675. },
  15676. "required": [
  15677. "id",
  15678. "created",
  15679. "type",
  15680. "durable",
  15681. "data"
  15682. ],
  15683. "additionalProperties": false
  15684. },
  15685. "session.instructions.updated": {
  15686. "type": "object",
  15687. "properties": {
  15688. "id": {
  15689. "type": "string",
  15690. "allOf": [
  15691. {
  15692. "pattern": "^evt_"
  15693. }
  15694. ]
  15695. },
  15696. "created": {
  15697. "type": "number"
  15698. },
  15699. "metadata": {
  15700. "type": "object"
  15701. },
  15702. "type": {
  15703. "type": "string",
  15704. "enum": [
  15705. "session.instructions.updated"
  15706. ]
  15707. },
  15708. "durable": {
  15709. "type": "object",
  15710. "properties": {
  15711. "aggregateID": {
  15712. "type": "string"
  15713. },
  15714. "seq": {
  15715. "type": "integer",
  15716. "allOf": [
  15717. {
  15718. "minimum": 0
  15719. }
  15720. ]
  15721. },
  15722. "version": {
  15723. "type": "number",
  15724. "enum": [
  15725. 2
  15726. ]
  15727. }
  15728. },
  15729. "required": [
  15730. "aggregateID",
  15731. "seq",
  15732. "version"
  15733. ],
  15734. "additionalProperties": false
  15735. },
  15736. "location": {
  15737. "$ref": "#/components/schemas/Location.Ref"
  15738. },
  15739. "data": {
  15740. "type": "object",
  15741. "properties": {
  15742. "sessionID": {
  15743. "type": "string",
  15744. "allOf": [
  15745. {
  15746. "pattern": "^ses"
  15747. }
  15748. ]
  15749. },
  15750. "delta": {
  15751. "type": "object",
  15752. "additionalProperties": {
  15753. "anyOf": [
  15754. {
  15755. "type": "string",
  15756. "allOf": [
  15757. {
  15758. "pattern": "^[a-f0-9]{64}$"
  15759. }
  15760. ]
  15761. },
  15762. {
  15763. "type": "string",
  15764. "enum": [
  15765. "removed"
  15766. ]
  15767. }
  15768. ]
  15769. }
  15770. }
  15771. },
  15772. "required": [
  15773. "sessionID",
  15774. "delta"
  15775. ],
  15776. "additionalProperties": false
  15777. }
  15778. },
  15779. "required": [
  15780. "id",
  15781. "created",
  15782. "type",
  15783. "durable",
  15784. "data"
  15785. ],
  15786. "additionalProperties": false
  15787. },
  15788. "session.synthetic": {
  15789. "type": "object",
  15790. "properties": {
  15791. "id": {
  15792. "type": "string",
  15793. "allOf": [
  15794. {
  15795. "pattern": "^evt_"
  15796. }
  15797. ]
  15798. },
  15799. "created": {
  15800. "type": "number"
  15801. },
  15802. "metadata": {
  15803. "type": "object"
  15804. },
  15805. "type": {
  15806. "type": "string",
  15807. "enum": [
  15808. "session.synthetic"
  15809. ]
  15810. },
  15811. "durable": {
  15812. "type": "object",
  15813. "properties": {
  15814. "aggregateID": {
  15815. "type": "string"
  15816. },
  15817. "seq": {
  15818. "type": "integer",
  15819. "allOf": [
  15820. {
  15821. "minimum": 0
  15822. }
  15823. ]
  15824. },
  15825. "version": {
  15826. "type": "number",
  15827. "enum": [
  15828. 1
  15829. ]
  15830. }
  15831. },
  15832. "required": [
  15833. "aggregateID",
  15834. "seq",
  15835. "version"
  15836. ],
  15837. "additionalProperties": false
  15838. },
  15839. "location": {
  15840. "$ref": "#/components/schemas/Location.Ref"
  15841. },
  15842. "data": {
  15843. "type": "object",
  15844. "properties": {
  15845. "sessionID": {
  15846. "type": "string",
  15847. "allOf": [
  15848. {
  15849. "pattern": "^ses"
  15850. }
  15851. ]
  15852. },
  15853. "text": {
  15854. "type": "string"
  15855. },
  15856. "description": {
  15857. "type": "string"
  15858. },
  15859. "metadata": {
  15860. "type": "object"
  15861. }
  15862. },
  15863. "required": [
  15864. "sessionID",
  15865. "text"
  15866. ],
  15867. "additionalProperties": false
  15868. }
  15869. },
  15870. "required": [
  15871. "id",
  15872. "created",
  15873. "type",
  15874. "durable",
  15875. "data"
  15876. ],
  15877. "additionalProperties": false
  15878. },
  15879. "session.skill.activated": {
  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": [
  15899. "session.skill.activated"
  15900. ]
  15901. },
  15902. "durable": {
  15903. "type": "object",
  15904. "properties": {
  15905. "aggregateID": {
  15906. "type": "string"
  15907. },
  15908. "seq": {
  15909. "type": "integer",
  15910. "allOf": [
  15911. {
  15912. "minimum": 0
  15913. }
  15914. ]
  15915. },
  15916. "version": {
  15917. "type": "number",
  15918. "enum": [
  15919. 1
  15920. ]
  15921. }
  15922. },
  15923. "required": [
  15924. "aggregateID",
  15925. "seq",
  15926. "version"
  15927. ],
  15928. "additionalProperties": false
  15929. },
  15930. "location": {
  15931. "$ref": "#/components/schemas/Location.Ref"
  15932. },
  15933. "data": {
  15934. "type": "object",
  15935. "properties": {
  15936. "sessionID": {
  15937. "type": "string",
  15938. "allOf": [
  15939. {
  15940. "pattern": "^ses"
  15941. }
  15942. ]
  15943. },
  15944. "id": {
  15945. "type": "string"
  15946. },
  15947. "name": {
  15948. "type": "string"
  15949. },
  15950. "text": {
  15951. "type": "string"
  15952. }
  15953. },
  15954. "required": [
  15955. "sessionID",
  15956. "id",
  15957. "name",
  15958. "text"
  15959. ],
  15960. "additionalProperties": false
  15961. }
  15962. },
  15963. "required": [
  15964. "id",
  15965. "created",
  15966. "type",
  15967. "durable",
  15968. "data"
  15969. ],
  15970. "additionalProperties": false
  15971. },
  15972. "Shell.Info": {
  15973. "type": "object",
  15974. "properties": {
  15975. "id": {
  15976. "type": "string",
  15977. "allOf": [
  15978. {
  15979. "pattern": "^sh_"
  15980. }
  15981. ]
  15982. },
  15983. "status": {
  15984. "type": "string",
  15985. "enum": [
  15986. "running",
  15987. "exited",
  15988. "timeout",
  15989. "killed"
  15990. ]
  15991. },
  15992. "command": {
  15993. "type": "string"
  15994. },
  15995. "cwd": {
  15996. "type": "string"
  15997. },
  15998. "shell": {
  15999. "type": "string"
  16000. },
  16001. "file": {
  16002. "type": "string"
  16003. },
  16004. "pid": {
  16005. "type": "integer",
  16006. "allOf": [
  16007. {
  16008. "minimum": 0
  16009. }
  16010. ]
  16011. },
  16012. "exit": {
  16013. "type": "number"
  16014. },
  16015. "metadata": {
  16016. "type": "object"
  16017. },
  16018. "time": {
  16019. "type": "object",
  16020. "properties": {
  16021. "started": {
  16022. "type": "number"
  16023. },
  16024. "completed": {
  16025. "type": "number"
  16026. }
  16027. },
  16028. "required": [
  16029. "started"
  16030. ],
  16031. "additionalProperties": false
  16032. }
  16033. },
  16034. "required": [
  16035. "id",
  16036. "status",
  16037. "command",
  16038. "cwd",
  16039. "shell",
  16040. "file",
  16041. "metadata",
  16042. "time"
  16043. ],
  16044. "additionalProperties": false
  16045. },
  16046. "session.shell.started": {
  16047. "type": "object",
  16048. "properties": {
  16049. "id": {
  16050. "type": "string",
  16051. "allOf": [
  16052. {
  16053. "pattern": "^evt_"
  16054. }
  16055. ]
  16056. },
  16057. "created": {
  16058. "type": "number"
  16059. },
  16060. "metadata": {
  16061. "type": "object"
  16062. },
  16063. "type": {
  16064. "type": "string",
  16065. "enum": [
  16066. "session.shell.started"
  16067. ]
  16068. },
  16069. "durable": {
  16070. "type": "object",
  16071. "properties": {
  16072. "aggregateID": {
  16073. "type": "string"
  16074. },
  16075. "seq": {
  16076. "type": "integer",
  16077. "allOf": [
  16078. {
  16079. "minimum": 0
  16080. }
  16081. ]
  16082. },
  16083. "version": {
  16084. "type": "number",
  16085. "enum": [
  16086. 1
  16087. ]
  16088. }
  16089. },
  16090. "required": [
  16091. "aggregateID",
  16092. "seq",
  16093. "version"
  16094. ],
  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. "shell": {
  16112. "$ref": "#/components/schemas/Shell.Info"
  16113. }
  16114. },
  16115. "required": [
  16116. "sessionID",
  16117. "shell"
  16118. ],
  16119. "additionalProperties": false
  16120. }
  16121. },
  16122. "required": [
  16123. "id",
  16124. "created",
  16125. "type",
  16126. "durable",
  16127. "data"
  16128. ],
  16129. "additionalProperties": false
  16130. },
  16131. "session.shell.ended": {
  16132. "type": "object",
  16133. "properties": {
  16134. "id": {
  16135. "type": "string",
  16136. "allOf": [
  16137. {
  16138. "pattern": "^evt_"
  16139. }
  16140. ]
  16141. },
  16142. "created": {
  16143. "type": "number"
  16144. },
  16145. "metadata": {
  16146. "type": "object"
  16147. },
  16148. "type": {
  16149. "type": "string",
  16150. "enum": [
  16151. "session.shell.ended"
  16152. ]
  16153. },
  16154. "durable": {
  16155. "type": "object",
  16156. "properties": {
  16157. "aggregateID": {
  16158. "type": "string"
  16159. },
  16160. "seq": {
  16161. "type": "integer",
  16162. "allOf": [
  16163. {
  16164. "minimum": 0
  16165. }
  16166. ]
  16167. },
  16168. "version": {
  16169. "type": "number",
  16170. "enum": [
  16171. 1
  16172. ]
  16173. }
  16174. },
  16175. "required": [
  16176. "aggregateID",
  16177. "seq",
  16178. "version"
  16179. ],
  16180. "additionalProperties": false
  16181. },
  16182. "location": {
  16183. "$ref": "#/components/schemas/Location.Ref"
  16184. },
  16185. "data": {
  16186. "type": "object",
  16187. "properties": {
  16188. "sessionID": {
  16189. "type": "string",
  16190. "allOf": [
  16191. {
  16192. "pattern": "^ses"
  16193. }
  16194. ]
  16195. },
  16196. "shell": {
  16197. "$ref": "#/components/schemas/Shell.Info"
  16198. },
  16199. "output": {
  16200. "type": "object",
  16201. "properties": {
  16202. "output": {
  16203. "type": "string"
  16204. },
  16205. "cursor": {
  16206. "type": "integer",
  16207. "allOf": [
  16208. {
  16209. "minimum": 0
  16210. }
  16211. ]
  16212. },
  16213. "size": {
  16214. "type": "integer",
  16215. "allOf": [
  16216. {
  16217. "minimum": 0
  16218. }
  16219. ]
  16220. },
  16221. "truncated": {
  16222. "type": "boolean"
  16223. }
  16224. },
  16225. "required": [
  16226. "output",
  16227. "cursor",
  16228. "size",
  16229. "truncated"
  16230. ],
  16231. "additionalProperties": false
  16232. }
  16233. },
  16234. "required": [
  16235. "sessionID",
  16236. "shell",
  16237. "output"
  16238. ],
  16239. "additionalProperties": false
  16240. }
  16241. },
  16242. "required": [
  16243. "id",
  16244. "created",
  16245. "type",
  16246. "durable",
  16247. "data"
  16248. ],
  16249. "additionalProperties": false
  16250. },
  16251. "session.step.started": {
  16252. "type": "object",
  16253. "properties": {
  16254. "id": {
  16255. "type": "string",
  16256. "allOf": [
  16257. {
  16258. "pattern": "^evt_"
  16259. }
  16260. ]
  16261. },
  16262. "created": {
  16263. "type": "number"
  16264. },
  16265. "metadata": {
  16266. "type": "object"
  16267. },
  16268. "type": {
  16269. "type": "string",
  16270. "enum": [
  16271. "session.step.started"
  16272. ]
  16273. },
  16274. "durable": {
  16275. "type": "object",
  16276. "properties": {
  16277. "aggregateID": {
  16278. "type": "string"
  16279. },
  16280. "seq": {
  16281. "type": "integer",
  16282. "allOf": [
  16283. {
  16284. "minimum": 0
  16285. }
  16286. ]
  16287. },
  16288. "version": {
  16289. "type": "number",
  16290. "enum": [
  16291. 1
  16292. ]
  16293. }
  16294. },
  16295. "required": [
  16296. "aggregateID",
  16297. "seq",
  16298. "version"
  16299. ],
  16300. "additionalProperties": false
  16301. },
  16302. "location": {
  16303. "$ref": "#/components/schemas/Location.Ref"
  16304. },
  16305. "data": {
  16306. "type": "object",
  16307. "properties": {
  16308. "sessionID": {
  16309. "type": "string",
  16310. "allOf": [
  16311. {
  16312. "pattern": "^ses"
  16313. }
  16314. ]
  16315. },
  16316. "assistantMessageID": {
  16317. "type": "string",
  16318. "allOf": [
  16319. {
  16320. "pattern": "^msg_"
  16321. }
  16322. ]
  16323. },
  16324. "agent": {
  16325. "type": "string"
  16326. },
  16327. "model": {
  16328. "$ref": "#/components/schemas/Model.Ref"
  16329. },
  16330. "snapshot": {
  16331. "type": "string"
  16332. }
  16333. },
  16334. "required": [
  16335. "sessionID",
  16336. "assistantMessageID",
  16337. "agent",
  16338. "model"
  16339. ],
  16340. "additionalProperties": false
  16341. }
  16342. },
  16343. "required": [
  16344. "id",
  16345. "created",
  16346. "type",
  16347. "durable",
  16348. "data"
  16349. ],
  16350. "additionalProperties": false
  16351. },
  16352. "session.step.ended": {
  16353. "type": "object",
  16354. "properties": {
  16355. "id": {
  16356. "type": "string",
  16357. "allOf": [
  16358. {
  16359. "pattern": "^evt_"
  16360. }
  16361. ]
  16362. },
  16363. "created": {
  16364. "type": "number"
  16365. },
  16366. "metadata": {
  16367. "type": "object"
  16368. },
  16369. "type": {
  16370. "type": "string",
  16371. "enum": [
  16372. "session.step.ended"
  16373. ]
  16374. },
  16375. "durable": {
  16376. "type": "object",
  16377. "properties": {
  16378. "aggregateID": {
  16379. "type": "string"
  16380. },
  16381. "seq": {
  16382. "type": "integer",
  16383. "allOf": [
  16384. {
  16385. "minimum": 0
  16386. }
  16387. ]
  16388. },
  16389. "version": {
  16390. "type": "number",
  16391. "enum": [
  16392. 1
  16393. ]
  16394. }
  16395. },
  16396. "required": [
  16397. "aggregateID",
  16398. "seq",
  16399. "version"
  16400. ],
  16401. "additionalProperties": false
  16402. },
  16403. "location": {
  16404. "$ref": "#/components/schemas/Location.Ref"
  16405. },
  16406. "data": {
  16407. "type": "object",
  16408. "properties": {
  16409. "sessionID": {
  16410. "type": "string",
  16411. "allOf": [
  16412. {
  16413. "pattern": "^ses"
  16414. }
  16415. ]
  16416. },
  16417. "assistantMessageID": {
  16418. "type": "string",
  16419. "allOf": [
  16420. {
  16421. "pattern": "^msg_"
  16422. }
  16423. ]
  16424. },
  16425. "finish": {
  16426. "type": "string",
  16427. "enum": [
  16428. "stop",
  16429. "length",
  16430. "tool-calls",
  16431. "content-filter",
  16432. "error",
  16433. "unknown"
  16434. ]
  16435. },
  16436. "cost": {
  16437. "$ref": "#/components/schemas/Money.USD"
  16438. },
  16439. "tokens": {
  16440. "$ref": "#/components/schemas/TokenUsage.Info"
  16441. },
  16442. "snapshot": {
  16443. "type": "string"
  16444. },
  16445. "files": {
  16446. "type": "array",
  16447. "items": {
  16448. "type": "string"
  16449. }
  16450. }
  16451. },
  16452. "required": [
  16453. "sessionID",
  16454. "assistantMessageID",
  16455. "finish",
  16456. "cost",
  16457. "tokens"
  16458. ],
  16459. "additionalProperties": false
  16460. }
  16461. },
  16462. "required": [
  16463. "id",
  16464. "created",
  16465. "type",
  16466. "durable",
  16467. "data"
  16468. ],
  16469. "additionalProperties": false
  16470. },
  16471. "session.step.failed": {
  16472. "type": "object",
  16473. "properties": {
  16474. "id": {
  16475. "type": "string",
  16476. "allOf": [
  16477. {
  16478. "pattern": "^evt_"
  16479. }
  16480. ]
  16481. },
  16482. "created": {
  16483. "type": "number"
  16484. },
  16485. "metadata": {
  16486. "type": "object"
  16487. },
  16488. "type": {
  16489. "type": "string",
  16490. "enum": [
  16491. "session.step.failed"
  16492. ]
  16493. },
  16494. "durable": {
  16495. "type": "object",
  16496. "properties": {
  16497. "aggregateID": {
  16498. "type": "string"
  16499. },
  16500. "seq": {
  16501. "type": "integer",
  16502. "allOf": [
  16503. {
  16504. "minimum": 0
  16505. }
  16506. ]
  16507. },
  16508. "version": {
  16509. "type": "number",
  16510. "enum": [
  16511. 1
  16512. ]
  16513. }
  16514. },
  16515. "required": [
  16516. "aggregateID",
  16517. "seq",
  16518. "version"
  16519. ],
  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. "error": {
  16545. "$ref": "#/components/schemas/Session.StructuredError"
  16546. },
  16547. "cost": {
  16548. "$ref": "#/components/schemas/Money.USD"
  16549. },
  16550. "tokens": {
  16551. "$ref": "#/components/schemas/TokenUsage.Info"
  16552. },
  16553. "snapshot": {
  16554. "type": "string"
  16555. },
  16556. "files": {
  16557. "type": "array",
  16558. "items": {
  16559. "type": "string"
  16560. }
  16561. }
  16562. },
  16563. "required": [
  16564. "sessionID",
  16565. "assistantMessageID",
  16566. "error"
  16567. ],
  16568. "additionalProperties": false
  16569. }
  16570. },
  16571. "required": [
  16572. "id",
  16573. "created",
  16574. "type",
  16575. "durable",
  16576. "data"
  16577. ],
  16578. "additionalProperties": false
  16579. },
  16580. "session.text.started": {
  16581. "type": "object",
  16582. "properties": {
  16583. "id": {
  16584. "type": "string",
  16585. "allOf": [
  16586. {
  16587. "pattern": "^evt_"
  16588. }
  16589. ]
  16590. },
  16591. "created": {
  16592. "type": "number"
  16593. },
  16594. "metadata": {
  16595. "type": "object"
  16596. },
  16597. "type": {
  16598. "type": "string",
  16599. "enum": [
  16600. "session.text.started"
  16601. ]
  16602. },
  16603. "durable": {
  16604. "type": "object",
  16605. "properties": {
  16606. "aggregateID": {
  16607. "type": "string"
  16608. },
  16609. "seq": {
  16610. "type": "integer",
  16611. "allOf": [
  16612. {
  16613. "minimum": 0
  16614. }
  16615. ]
  16616. },
  16617. "version": {
  16618. "type": "number",
  16619. "enum": [
  16620. 1
  16621. ]
  16622. }
  16623. },
  16624. "required": [
  16625. "aggregateID",
  16626. "seq",
  16627. "version"
  16628. ],
  16629. "additionalProperties": false
  16630. },
  16631. "location": {
  16632. "$ref": "#/components/schemas/Location.Ref"
  16633. },
  16634. "data": {
  16635. "type": "object",
  16636. "properties": {
  16637. "sessionID": {
  16638. "type": "string",
  16639. "allOf": [
  16640. {
  16641. "pattern": "^ses"
  16642. }
  16643. ]
  16644. },
  16645. "assistantMessageID": {
  16646. "type": "string",
  16647. "allOf": [
  16648. {
  16649. "pattern": "^msg_"
  16650. }
  16651. ]
  16652. },
  16653. "ordinal": {
  16654. "type": "integer",
  16655. "allOf": [
  16656. {
  16657. "minimum": 0
  16658. }
  16659. ]
  16660. }
  16661. },
  16662. "required": [
  16663. "sessionID",
  16664. "assistantMessageID",
  16665. "ordinal"
  16666. ],
  16667. "additionalProperties": false
  16668. }
  16669. },
  16670. "required": [
  16671. "id",
  16672. "created",
  16673. "type",
  16674. "durable",
  16675. "data"
  16676. ],
  16677. "additionalProperties": false
  16678. },
  16679. "Session.Message.ProviderState4": {
  16680. "type": "object"
  16681. },
  16682. "session.text.ended": {
  16683. "type": "object",
  16684. "properties": {
  16685. "id": {
  16686. "type": "string",
  16687. "allOf": [
  16688. {
  16689. "pattern": "^evt_"
  16690. }
  16691. ]
  16692. },
  16693. "created": {
  16694. "type": "number"
  16695. },
  16696. "metadata": {
  16697. "type": "object"
  16698. },
  16699. "type": {
  16700. "type": "string",
  16701. "enum": [
  16702. "session.text.ended"
  16703. ]
  16704. },
  16705. "durable": {
  16706. "type": "object",
  16707. "properties": {
  16708. "aggregateID": {
  16709. "type": "string"
  16710. },
  16711. "seq": {
  16712. "type": "integer",
  16713. "allOf": [
  16714. {
  16715. "minimum": 0
  16716. }
  16717. ]
  16718. },
  16719. "version": {
  16720. "type": "number",
  16721. "enum": [
  16722. 1
  16723. ]
  16724. }
  16725. },
  16726. "required": [
  16727. "aggregateID",
  16728. "seq",
  16729. "version"
  16730. ],
  16731. "additionalProperties": false
  16732. },
  16733. "location": {
  16734. "$ref": "#/components/schemas/Location.Ref"
  16735. },
  16736. "data": {
  16737. "type": "object",
  16738. "properties": {
  16739. "sessionID": {
  16740. "type": "string",
  16741. "allOf": [
  16742. {
  16743. "pattern": "^ses"
  16744. }
  16745. ]
  16746. },
  16747. "assistantMessageID": {
  16748. "type": "string",
  16749. "allOf": [
  16750. {
  16751. "pattern": "^msg_"
  16752. }
  16753. ]
  16754. },
  16755. "ordinal": {
  16756. "type": "integer",
  16757. "allOf": [
  16758. {
  16759. "minimum": 0
  16760. }
  16761. ]
  16762. },
  16763. "text": {
  16764. "type": "string"
  16765. },
  16766. "state": {
  16767. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  16768. }
  16769. },
  16770. "required": [
  16771. "sessionID",
  16772. "assistantMessageID",
  16773. "ordinal",
  16774. "text"
  16775. ],
  16776. "additionalProperties": false
  16777. }
  16778. },
  16779. "required": [
  16780. "id",
  16781. "created",
  16782. "type",
  16783. "durable",
  16784. "data"
  16785. ],
  16786. "additionalProperties": false
  16787. },
  16788. "Session.Message.ProviderState5": {
  16789. "type": "object"
  16790. },
  16791. "session.reasoning.started": {
  16792. "type": "object",
  16793. "properties": {
  16794. "id": {
  16795. "type": "string",
  16796. "allOf": [
  16797. {
  16798. "pattern": "^evt_"
  16799. }
  16800. ]
  16801. },
  16802. "created": {
  16803. "type": "number"
  16804. },
  16805. "metadata": {
  16806. "type": "object"
  16807. },
  16808. "type": {
  16809. "type": "string",
  16810. "enum": [
  16811. "session.reasoning.started"
  16812. ]
  16813. },
  16814. "durable": {
  16815. "type": "object",
  16816. "properties": {
  16817. "aggregateID": {
  16818. "type": "string"
  16819. },
  16820. "seq": {
  16821. "type": "integer",
  16822. "allOf": [
  16823. {
  16824. "minimum": 0
  16825. }
  16826. ]
  16827. },
  16828. "version": {
  16829. "type": "number",
  16830. "enum": [
  16831. 1
  16832. ]
  16833. }
  16834. },
  16835. "required": [
  16836. "aggregateID",
  16837. "seq",
  16838. "version"
  16839. ],
  16840. "additionalProperties": false
  16841. },
  16842. "location": {
  16843. "$ref": "#/components/schemas/Location.Ref"
  16844. },
  16845. "data": {
  16846. "type": "object",
  16847. "properties": {
  16848. "sessionID": {
  16849. "type": "string",
  16850. "allOf": [
  16851. {
  16852. "pattern": "^ses"
  16853. }
  16854. ]
  16855. },
  16856. "assistantMessageID": {
  16857. "type": "string",
  16858. "allOf": [
  16859. {
  16860. "pattern": "^msg_"
  16861. }
  16862. ]
  16863. },
  16864. "ordinal": {
  16865. "type": "integer",
  16866. "allOf": [
  16867. {
  16868. "minimum": 0
  16869. }
  16870. ]
  16871. },
  16872. "state": {
  16873. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  16874. }
  16875. },
  16876. "required": [
  16877. "sessionID",
  16878. "assistantMessageID",
  16879. "ordinal"
  16880. ],
  16881. "additionalProperties": false
  16882. }
  16883. },
  16884. "required": [
  16885. "id",
  16886. "created",
  16887. "type",
  16888. "durable",
  16889. "data"
  16890. ],
  16891. "additionalProperties": false
  16892. },
  16893. "Session.Message.ProviderState6": {
  16894. "type": "object"
  16895. },
  16896. "session.reasoning.ended": {
  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": [
  16916. "session.reasoning.ended"
  16917. ]
  16918. },
  16919. "durable": {
  16920. "type": "object",
  16921. "properties": {
  16922. "aggregateID": {
  16923. "type": "string"
  16924. },
  16925. "seq": {
  16926. "type": "integer",
  16927. "allOf": [
  16928. {
  16929. "minimum": 0
  16930. }
  16931. ]
  16932. },
  16933. "version": {
  16934. "type": "number",
  16935. "enum": [
  16936. 1
  16937. ]
  16938. }
  16939. },
  16940. "required": [
  16941. "aggregateID",
  16942. "seq",
  16943. "version"
  16944. ],
  16945. "additionalProperties": false
  16946. },
  16947. "location": {
  16948. "$ref": "#/components/schemas/Location.Ref"
  16949. },
  16950. "data": {
  16951. "type": "object",
  16952. "properties": {
  16953. "sessionID": {
  16954. "type": "string",
  16955. "allOf": [
  16956. {
  16957. "pattern": "^ses"
  16958. }
  16959. ]
  16960. },
  16961. "assistantMessageID": {
  16962. "type": "string",
  16963. "allOf": [
  16964. {
  16965. "pattern": "^msg_"
  16966. }
  16967. ]
  16968. },
  16969. "ordinal": {
  16970. "type": "integer",
  16971. "allOf": [
  16972. {
  16973. "minimum": 0
  16974. }
  16975. ]
  16976. },
  16977. "text": {
  16978. "type": "string"
  16979. },
  16980. "state": {
  16981. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  16982. }
  16983. },
  16984. "required": [
  16985. "sessionID",
  16986. "assistantMessageID",
  16987. "ordinal",
  16988. "text"
  16989. ],
  16990. "additionalProperties": false
  16991. }
  16992. },
  16993. "required": [
  16994. "id",
  16995. "created",
  16996. "type",
  16997. "durable",
  16998. "data"
  16999. ],
  17000. "additionalProperties": false
  17001. },
  17002. "session.tool.input.started": {
  17003. "type": "object",
  17004. "properties": {
  17005. "id": {
  17006. "type": "string",
  17007. "allOf": [
  17008. {
  17009. "pattern": "^evt_"
  17010. }
  17011. ]
  17012. },
  17013. "created": {
  17014. "type": "number"
  17015. },
  17016. "metadata": {
  17017. "type": "object"
  17018. },
  17019. "type": {
  17020. "type": "string",
  17021. "enum": [
  17022. "session.tool.input.started"
  17023. ]
  17024. },
  17025. "durable": {
  17026. "type": "object",
  17027. "properties": {
  17028. "aggregateID": {
  17029. "type": "string"
  17030. },
  17031. "seq": {
  17032. "type": "integer",
  17033. "allOf": [
  17034. {
  17035. "minimum": 0
  17036. }
  17037. ]
  17038. },
  17039. "version": {
  17040. "type": "number",
  17041. "enum": [
  17042. 1
  17043. ]
  17044. }
  17045. },
  17046. "required": [
  17047. "aggregateID",
  17048. "seq",
  17049. "version"
  17050. ],
  17051. "additionalProperties": false
  17052. },
  17053. "location": {
  17054. "$ref": "#/components/schemas/Location.Ref"
  17055. },
  17056. "data": {
  17057. "type": "object",
  17058. "properties": {
  17059. "sessionID": {
  17060. "type": "string",
  17061. "allOf": [
  17062. {
  17063. "pattern": "^ses"
  17064. }
  17065. ]
  17066. },
  17067. "assistantMessageID": {
  17068. "type": "string",
  17069. "allOf": [
  17070. {
  17071. "pattern": "^msg_"
  17072. }
  17073. ]
  17074. },
  17075. "callID": {
  17076. "type": "string"
  17077. },
  17078. "name": {
  17079. "type": "string"
  17080. }
  17081. },
  17082. "required": [
  17083. "sessionID",
  17084. "assistantMessageID",
  17085. "callID",
  17086. "name"
  17087. ],
  17088. "additionalProperties": false
  17089. }
  17090. },
  17091. "required": [
  17092. "id",
  17093. "created",
  17094. "type",
  17095. "durable",
  17096. "data"
  17097. ],
  17098. "additionalProperties": false
  17099. },
  17100. "session.tool.input.ended": {
  17101. "type": "object",
  17102. "properties": {
  17103. "id": {
  17104. "type": "string",
  17105. "allOf": [
  17106. {
  17107. "pattern": "^evt_"
  17108. }
  17109. ]
  17110. },
  17111. "created": {
  17112. "type": "number"
  17113. },
  17114. "metadata": {
  17115. "type": "object"
  17116. },
  17117. "type": {
  17118. "type": "string",
  17119. "enum": [
  17120. "session.tool.input.ended"
  17121. ]
  17122. },
  17123. "durable": {
  17124. "type": "object",
  17125. "properties": {
  17126. "aggregateID": {
  17127. "type": "string"
  17128. },
  17129. "seq": {
  17130. "type": "integer",
  17131. "allOf": [
  17132. {
  17133. "minimum": 0
  17134. }
  17135. ]
  17136. },
  17137. "version": {
  17138. "type": "number",
  17139. "enum": [
  17140. 1
  17141. ]
  17142. }
  17143. },
  17144. "required": [
  17145. "aggregateID",
  17146. "seq",
  17147. "version"
  17148. ],
  17149. "additionalProperties": false
  17150. },
  17151. "location": {
  17152. "$ref": "#/components/schemas/Location.Ref"
  17153. },
  17154. "data": {
  17155. "type": "object",
  17156. "properties": {
  17157. "sessionID": {
  17158. "type": "string",
  17159. "allOf": [
  17160. {
  17161. "pattern": "^ses"
  17162. }
  17163. ]
  17164. },
  17165. "assistantMessageID": {
  17166. "type": "string",
  17167. "allOf": [
  17168. {
  17169. "pattern": "^msg_"
  17170. }
  17171. ]
  17172. },
  17173. "callID": {
  17174. "type": "string"
  17175. },
  17176. "text": {
  17177. "type": "string"
  17178. }
  17179. },
  17180. "required": [
  17181. "sessionID",
  17182. "assistantMessageID",
  17183. "callID",
  17184. "text"
  17185. ],
  17186. "additionalProperties": false
  17187. }
  17188. },
  17189. "required": [
  17190. "id",
  17191. "created",
  17192. "type",
  17193. "durable",
  17194. "data"
  17195. ],
  17196. "additionalProperties": false
  17197. },
  17198. "Session.Message.ProviderState7": {
  17199. "type": "object"
  17200. },
  17201. "session.tool.called": {
  17202. "type": "object",
  17203. "properties": {
  17204. "id": {
  17205. "type": "string",
  17206. "allOf": [
  17207. {
  17208. "pattern": "^evt_"
  17209. }
  17210. ]
  17211. },
  17212. "created": {
  17213. "type": "number"
  17214. },
  17215. "metadata": {
  17216. "type": "object"
  17217. },
  17218. "type": {
  17219. "type": "string",
  17220. "enum": [
  17221. "session.tool.called"
  17222. ]
  17223. },
  17224. "durable": {
  17225. "type": "object",
  17226. "properties": {
  17227. "aggregateID": {
  17228. "type": "string"
  17229. },
  17230. "seq": {
  17231. "type": "integer",
  17232. "allOf": [
  17233. {
  17234. "minimum": 0
  17235. }
  17236. ]
  17237. },
  17238. "version": {
  17239. "type": "number",
  17240. "enum": [
  17241. 1
  17242. ]
  17243. }
  17244. },
  17245. "required": [
  17246. "aggregateID",
  17247. "seq",
  17248. "version"
  17249. ],
  17250. "additionalProperties": false
  17251. },
  17252. "location": {
  17253. "$ref": "#/components/schemas/Location.Ref"
  17254. },
  17255. "data": {
  17256. "type": "object",
  17257. "properties": {
  17258. "sessionID": {
  17259. "type": "string",
  17260. "allOf": [
  17261. {
  17262. "pattern": "^ses"
  17263. }
  17264. ]
  17265. },
  17266. "assistantMessageID": {
  17267. "type": "string",
  17268. "allOf": [
  17269. {
  17270. "pattern": "^msg_"
  17271. }
  17272. ]
  17273. },
  17274. "callID": {
  17275. "type": "string"
  17276. },
  17277. "input": {
  17278. "type": "object"
  17279. },
  17280. "executed": {
  17281. "type": "boolean"
  17282. },
  17283. "state": {
  17284. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  17285. }
  17286. },
  17287. "required": [
  17288. "sessionID",
  17289. "assistantMessageID",
  17290. "callID",
  17291. "input",
  17292. "executed"
  17293. ],
  17294. "additionalProperties": false
  17295. }
  17296. },
  17297. "required": [
  17298. "id",
  17299. "created",
  17300. "type",
  17301. "durable",
  17302. "data"
  17303. ],
  17304. "additionalProperties": false
  17305. },
  17306. "Tool.FileContent1": {
  17307. "type": "object",
  17308. "properties": {
  17309. "type": {
  17310. "type": "string",
  17311. "enum": [
  17312. "file"
  17313. ]
  17314. },
  17315. "uri": {
  17316. "type": "string"
  17317. },
  17318. "mime": {
  17319. "type": "string"
  17320. },
  17321. "name": {
  17322. "anyOf": [
  17323. {
  17324. "type": "string"
  17325. },
  17326. {
  17327. "type": "null"
  17328. }
  17329. ]
  17330. }
  17331. },
  17332. "required": [
  17333. "type",
  17334. "uri",
  17335. "mime"
  17336. ],
  17337. "additionalProperties": false
  17338. },
  17339. "Tool.Content1": {
  17340. "anyOf": [
  17341. {
  17342. "$ref": "#/components/schemas/Tool.TextContent"
  17343. },
  17344. {
  17345. "$ref": "#/components/schemas/Tool.FileContent1"
  17346. }
  17347. ]
  17348. },
  17349. "Session.Message.ProviderState8": {
  17350. "type": "object"
  17351. },
  17352. "session.tool.success": {
  17353. "type": "object",
  17354. "properties": {
  17355. "id": {
  17356. "type": "string",
  17357. "allOf": [
  17358. {
  17359. "pattern": "^evt_"
  17360. }
  17361. ]
  17362. },
  17363. "created": {
  17364. "type": "number"
  17365. },
  17366. "metadata": {
  17367. "type": "object"
  17368. },
  17369. "type": {
  17370. "type": "string",
  17371. "enum": [
  17372. "session.tool.success"
  17373. ]
  17374. },
  17375. "durable": {
  17376. "type": "object",
  17377. "properties": {
  17378. "aggregateID": {
  17379. "type": "string"
  17380. },
  17381. "seq": {
  17382. "type": "integer",
  17383. "allOf": [
  17384. {
  17385. "minimum": 0
  17386. }
  17387. ]
  17388. },
  17389. "version": {
  17390. "type": "number",
  17391. "enum": [
  17392. 2
  17393. ]
  17394. }
  17395. },
  17396. "required": [
  17397. "aggregateID",
  17398. "seq",
  17399. "version"
  17400. ],
  17401. "additionalProperties": false
  17402. },
  17403. "location": {
  17404. "$ref": "#/components/schemas/Location.Ref"
  17405. },
  17406. "data": {
  17407. "type": "object",
  17408. "properties": {
  17409. "sessionID": {
  17410. "type": "string",
  17411. "allOf": [
  17412. {
  17413. "pattern": "^ses"
  17414. }
  17415. ]
  17416. },
  17417. "assistantMessageID": {
  17418. "type": "string",
  17419. "allOf": [
  17420. {
  17421. "pattern": "^msg_"
  17422. }
  17423. ]
  17424. },
  17425. "callID": {
  17426. "type": "string"
  17427. },
  17428. "content": {
  17429. "type": "array",
  17430. "prefixItems": [
  17431. {
  17432. "$ref": "#/components/schemas/Tool.Content1"
  17433. }
  17434. ],
  17435. "minItems": 1,
  17436. "items": {
  17437. "$ref": "#/components/schemas/Tool.Content1"
  17438. }
  17439. },
  17440. "metadata": {
  17441. "type": "object"
  17442. },
  17443. "executed": {
  17444. "type": "boolean"
  17445. },
  17446. "resultState": {
  17447. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  17448. }
  17449. },
  17450. "required": [
  17451. "sessionID",
  17452. "assistantMessageID",
  17453. "callID",
  17454. "content",
  17455. "executed"
  17456. ],
  17457. "additionalProperties": false
  17458. }
  17459. },
  17460. "required": [
  17461. "id",
  17462. "created",
  17463. "type",
  17464. "durable",
  17465. "data"
  17466. ],
  17467. "additionalProperties": false
  17468. },
  17469. "Session.Message.ProviderState9": {
  17470. "type": "object"
  17471. },
  17472. "session.tool.failed": {
  17473. "type": "object",
  17474. "properties": {
  17475. "id": {
  17476. "type": "string",
  17477. "allOf": [
  17478. {
  17479. "pattern": "^evt_"
  17480. }
  17481. ]
  17482. },
  17483. "created": {
  17484. "type": "number"
  17485. },
  17486. "metadata": {
  17487. "type": "object"
  17488. },
  17489. "type": {
  17490. "type": "string",
  17491. "enum": [
  17492. "session.tool.failed"
  17493. ]
  17494. },
  17495. "durable": {
  17496. "type": "object",
  17497. "properties": {
  17498. "aggregateID": {
  17499. "type": "string"
  17500. },
  17501. "seq": {
  17502. "type": "integer",
  17503. "allOf": [
  17504. {
  17505. "minimum": 0
  17506. }
  17507. ]
  17508. },
  17509. "version": {
  17510. "type": "number",
  17511. "enum": [
  17512. 2
  17513. ]
  17514. }
  17515. },
  17516. "required": [
  17517. "aggregateID",
  17518. "seq",
  17519. "version"
  17520. ],
  17521. "additionalProperties": false
  17522. },
  17523. "location": {
  17524. "$ref": "#/components/schemas/Location.Ref"
  17525. },
  17526. "data": {
  17527. "type": "object",
  17528. "properties": {
  17529. "sessionID": {
  17530. "type": "string",
  17531. "allOf": [
  17532. {
  17533. "pattern": "^ses"
  17534. }
  17535. ]
  17536. },
  17537. "assistantMessageID": {
  17538. "type": "string",
  17539. "allOf": [
  17540. {
  17541. "pattern": "^msg_"
  17542. }
  17543. ]
  17544. },
  17545. "callID": {
  17546. "type": "string"
  17547. },
  17548. "error": {
  17549. "$ref": "#/components/schemas/Session.StructuredError"
  17550. },
  17551. "content": {
  17552. "type": "array",
  17553. "prefixItems": [
  17554. {
  17555. "$ref": "#/components/schemas/Tool.Content1"
  17556. }
  17557. ],
  17558. "minItems": 1,
  17559. "items": {
  17560. "$ref": "#/components/schemas/Tool.Content1"
  17561. }
  17562. },
  17563. "metadata": {
  17564. "type": "object"
  17565. },
  17566. "executed": {
  17567. "type": "boolean"
  17568. },
  17569. "resultState": {
  17570. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  17571. }
  17572. },
  17573. "required": [
  17574. "sessionID",
  17575. "assistantMessageID",
  17576. "callID",
  17577. "error",
  17578. "executed"
  17579. ],
  17580. "additionalProperties": false
  17581. }
  17582. },
  17583. "required": [
  17584. "id",
  17585. "created",
  17586. "type",
  17587. "durable",
  17588. "data"
  17589. ],
  17590. "additionalProperties": false
  17591. },
  17592. "session.retry.scheduled": {
  17593. "type": "object",
  17594. "properties": {
  17595. "id": {
  17596. "type": "string",
  17597. "allOf": [
  17598. {
  17599. "pattern": "^evt_"
  17600. }
  17601. ]
  17602. },
  17603. "created": {
  17604. "type": "number"
  17605. },
  17606. "metadata": {
  17607. "type": "object"
  17608. },
  17609. "type": {
  17610. "type": "string",
  17611. "enum": [
  17612. "session.retry.scheduled"
  17613. ]
  17614. },
  17615. "durable": {
  17616. "type": "object",
  17617. "properties": {
  17618. "aggregateID": {
  17619. "type": "string"
  17620. },
  17621. "seq": {
  17622. "type": "integer",
  17623. "allOf": [
  17624. {
  17625. "minimum": 0
  17626. }
  17627. ]
  17628. },
  17629. "version": {
  17630. "type": "number",
  17631. "enum": [
  17632. 1
  17633. ]
  17634. }
  17635. },
  17636. "required": [
  17637. "aggregateID",
  17638. "seq",
  17639. "version"
  17640. ],
  17641. "additionalProperties": false
  17642. },
  17643. "location": {
  17644. "$ref": "#/components/schemas/Location.Ref"
  17645. },
  17646. "data": {
  17647. "type": "object",
  17648. "properties": {
  17649. "sessionID": {
  17650. "type": "string",
  17651. "allOf": [
  17652. {
  17653. "pattern": "^ses"
  17654. }
  17655. ]
  17656. },
  17657. "assistantMessageID": {
  17658. "type": "string",
  17659. "allOf": [
  17660. {
  17661. "pattern": "^msg_"
  17662. }
  17663. ]
  17664. },
  17665. "attempt": {
  17666. "type": "integer",
  17667. "allOf": [
  17668. {
  17669. "exclusiveMinimum": 0
  17670. }
  17671. ]
  17672. },
  17673. "at": {
  17674. "type": "integer",
  17675. "allOf": [
  17676. {
  17677. "minimum": 0
  17678. }
  17679. ]
  17680. },
  17681. "error": {
  17682. "$ref": "#/components/schemas/Session.StructuredError"
  17683. }
  17684. },
  17685. "required": [
  17686. "sessionID",
  17687. "assistantMessageID",
  17688. "attempt",
  17689. "at",
  17690. "error"
  17691. ],
  17692. "additionalProperties": false
  17693. }
  17694. },
  17695. "required": [
  17696. "id",
  17697. "created",
  17698. "type",
  17699. "durable",
  17700. "data"
  17701. ],
  17702. "additionalProperties": false
  17703. },
  17704. "session.compaction.admitted": {
  17705. "type": "object",
  17706. "properties": {
  17707. "id": {
  17708. "type": "string",
  17709. "allOf": [
  17710. {
  17711. "pattern": "^evt_"
  17712. }
  17713. ]
  17714. },
  17715. "created": {
  17716. "type": "number"
  17717. },
  17718. "metadata": {
  17719. "type": "object"
  17720. },
  17721. "type": {
  17722. "type": "string",
  17723. "enum": [
  17724. "session.compaction.admitted"
  17725. ]
  17726. },
  17727. "durable": {
  17728. "type": "object",
  17729. "properties": {
  17730. "aggregateID": {
  17731. "type": "string"
  17732. },
  17733. "seq": {
  17734. "type": "integer",
  17735. "allOf": [
  17736. {
  17737. "minimum": 0
  17738. }
  17739. ]
  17740. },
  17741. "version": {
  17742. "type": "number",
  17743. "enum": [
  17744. 1
  17745. ]
  17746. }
  17747. },
  17748. "required": [
  17749. "aggregateID",
  17750. "seq",
  17751. "version"
  17752. ],
  17753. "additionalProperties": false
  17754. },
  17755. "location": {
  17756. "$ref": "#/components/schemas/Location.Ref"
  17757. },
  17758. "data": {
  17759. "type": "object",
  17760. "properties": {
  17761. "sessionID": {
  17762. "type": "string",
  17763. "allOf": [
  17764. {
  17765. "pattern": "^ses"
  17766. }
  17767. ]
  17768. },
  17769. "inputID": {
  17770. "type": "string",
  17771. "allOf": [
  17772. {
  17773. "pattern": "^msg_"
  17774. }
  17775. ]
  17776. }
  17777. },
  17778. "required": [
  17779. "sessionID",
  17780. "inputID"
  17781. ],
  17782. "additionalProperties": false
  17783. }
  17784. },
  17785. "required": [
  17786. "id",
  17787. "created",
  17788. "type",
  17789. "durable",
  17790. "data"
  17791. ],
  17792. "additionalProperties": false
  17793. },
  17794. "session.compaction.started": {
  17795. "type": "object",
  17796. "properties": {
  17797. "id": {
  17798. "type": "string",
  17799. "allOf": [
  17800. {
  17801. "pattern": "^evt_"
  17802. }
  17803. ]
  17804. },
  17805. "created": {
  17806. "type": "number"
  17807. },
  17808. "metadata": {
  17809. "type": "object"
  17810. },
  17811. "type": {
  17812. "type": "string",
  17813. "enum": [
  17814. "session.compaction.started"
  17815. ]
  17816. },
  17817. "durable": {
  17818. "type": "object",
  17819. "properties": {
  17820. "aggregateID": {
  17821. "type": "string"
  17822. },
  17823. "seq": {
  17824. "type": "integer",
  17825. "allOf": [
  17826. {
  17827. "minimum": 0
  17828. }
  17829. ]
  17830. },
  17831. "version": {
  17832. "type": "number",
  17833. "enum": [
  17834. 1
  17835. ]
  17836. }
  17837. },
  17838. "required": [
  17839. "aggregateID",
  17840. "seq",
  17841. "version"
  17842. ],
  17843. "additionalProperties": false
  17844. },
  17845. "location": {
  17846. "$ref": "#/components/schemas/Location.Ref"
  17847. },
  17848. "data": {
  17849. "type": "object",
  17850. "properties": {
  17851. "sessionID": {
  17852. "type": "string",
  17853. "allOf": [
  17854. {
  17855. "pattern": "^ses"
  17856. }
  17857. ]
  17858. },
  17859. "reason": {
  17860. "type": "string",
  17861. "enum": [
  17862. "auto",
  17863. "manual"
  17864. ]
  17865. },
  17866. "recent": {
  17867. "type": "string"
  17868. },
  17869. "inputID": {
  17870. "type": "string",
  17871. "allOf": [
  17872. {
  17873. "pattern": "^msg_"
  17874. }
  17875. ]
  17876. }
  17877. },
  17878. "required": [
  17879. "sessionID",
  17880. "reason",
  17881. "recent"
  17882. ],
  17883. "additionalProperties": false
  17884. }
  17885. },
  17886. "required": [
  17887. "id",
  17888. "created",
  17889. "type",
  17890. "durable",
  17891. "data"
  17892. ],
  17893. "additionalProperties": false
  17894. },
  17895. "session.compaction.ended": {
  17896. "type": "object",
  17897. "properties": {
  17898. "id": {
  17899. "type": "string",
  17900. "allOf": [
  17901. {
  17902. "pattern": "^evt_"
  17903. }
  17904. ]
  17905. },
  17906. "created": {
  17907. "type": "number"
  17908. },
  17909. "metadata": {
  17910. "type": "object"
  17911. },
  17912. "type": {
  17913. "type": "string",
  17914. "enum": [
  17915. "session.compaction.ended"
  17916. ]
  17917. },
  17918. "durable": {
  17919. "type": "object",
  17920. "properties": {
  17921. "aggregateID": {
  17922. "type": "string"
  17923. },
  17924. "seq": {
  17925. "type": "integer",
  17926. "allOf": [
  17927. {
  17928. "minimum": 0
  17929. }
  17930. ]
  17931. },
  17932. "version": {
  17933. "type": "number",
  17934. "enum": [
  17935. 1
  17936. ]
  17937. }
  17938. },
  17939. "required": [
  17940. "aggregateID",
  17941. "seq",
  17942. "version"
  17943. ],
  17944. "additionalProperties": false
  17945. },
  17946. "location": {
  17947. "$ref": "#/components/schemas/Location.Ref"
  17948. },
  17949. "data": {
  17950. "type": "object",
  17951. "properties": {
  17952. "sessionID": {
  17953. "type": "string",
  17954. "allOf": [
  17955. {
  17956. "pattern": "^ses"
  17957. }
  17958. ]
  17959. },
  17960. "reason": {
  17961. "type": "string",
  17962. "enum": [
  17963. "auto",
  17964. "manual"
  17965. ]
  17966. },
  17967. "text": {
  17968. "type": "string"
  17969. },
  17970. "recent": {
  17971. "type": "string"
  17972. }
  17973. },
  17974. "required": [
  17975. "sessionID",
  17976. "reason",
  17977. "text",
  17978. "recent"
  17979. ],
  17980. "additionalProperties": false
  17981. }
  17982. },
  17983. "required": [
  17984. "id",
  17985. "created",
  17986. "type",
  17987. "durable",
  17988. "data"
  17989. ],
  17990. "additionalProperties": false
  17991. },
  17992. "session.compaction.failed": {
  17993. "type": "object",
  17994. "properties": {
  17995. "id": {
  17996. "type": "string",
  17997. "allOf": [
  17998. {
  17999. "pattern": "^evt_"
  18000. }
  18001. ]
  18002. },
  18003. "created": {
  18004. "type": "number"
  18005. },
  18006. "metadata": {
  18007. "type": "object"
  18008. },
  18009. "type": {
  18010. "type": "string",
  18011. "enum": [
  18012. "session.compaction.failed"
  18013. ]
  18014. },
  18015. "durable": {
  18016. "type": "object",
  18017. "properties": {
  18018. "aggregateID": {
  18019. "type": "string"
  18020. },
  18021. "seq": {
  18022. "type": "integer",
  18023. "allOf": [
  18024. {
  18025. "minimum": 0
  18026. }
  18027. ]
  18028. },
  18029. "version": {
  18030. "type": "number",
  18031. "enum": [
  18032. 1
  18033. ]
  18034. }
  18035. },
  18036. "required": [
  18037. "aggregateID",
  18038. "seq",
  18039. "version"
  18040. ],
  18041. "additionalProperties": false
  18042. },
  18043. "location": {
  18044. "$ref": "#/components/schemas/Location.Ref"
  18045. },
  18046. "data": {
  18047. "type": "object",
  18048. "properties": {
  18049. "sessionID": {
  18050. "type": "string",
  18051. "allOf": [
  18052. {
  18053. "pattern": "^ses"
  18054. }
  18055. ]
  18056. },
  18057. "reason": {
  18058. "type": "string",
  18059. "enum": [
  18060. "auto",
  18061. "manual"
  18062. ]
  18063. },
  18064. "error": {
  18065. "$ref": "#/components/schemas/Session.StructuredError"
  18066. },
  18067. "inputID": {
  18068. "type": "string",
  18069. "allOf": [
  18070. {
  18071. "pattern": "^msg_"
  18072. }
  18073. ]
  18074. }
  18075. },
  18076. "required": [
  18077. "sessionID",
  18078. "reason",
  18079. "error"
  18080. ],
  18081. "additionalProperties": false
  18082. }
  18083. },
  18084. "required": [
  18085. "id",
  18086. "created",
  18087. "type",
  18088. "durable",
  18089. "data"
  18090. ],
  18091. "additionalProperties": false
  18092. },
  18093. "session.revert.staged": {
  18094. "type": "object",
  18095. "properties": {
  18096. "id": {
  18097. "type": "string",
  18098. "allOf": [
  18099. {
  18100. "pattern": "^evt_"
  18101. }
  18102. ]
  18103. },
  18104. "created": {
  18105. "type": "number"
  18106. },
  18107. "metadata": {
  18108. "type": "object"
  18109. },
  18110. "type": {
  18111. "type": "string",
  18112. "enum": [
  18113. "session.revert.staged"
  18114. ]
  18115. },
  18116. "durable": {
  18117. "type": "object",
  18118. "properties": {
  18119. "aggregateID": {
  18120. "type": "string"
  18121. },
  18122. "seq": {
  18123. "type": "integer",
  18124. "allOf": [
  18125. {
  18126. "minimum": 0
  18127. }
  18128. ]
  18129. },
  18130. "version": {
  18131. "type": "number",
  18132. "enum": [
  18133. 1
  18134. ]
  18135. }
  18136. },
  18137. "required": [
  18138. "aggregateID",
  18139. "seq",
  18140. "version"
  18141. ],
  18142. "additionalProperties": false
  18143. },
  18144. "location": {
  18145. "$ref": "#/components/schemas/Location.Ref"
  18146. },
  18147. "data": {
  18148. "type": "object",
  18149. "properties": {
  18150. "sessionID": {
  18151. "type": "string",
  18152. "allOf": [
  18153. {
  18154. "pattern": "^ses"
  18155. }
  18156. ]
  18157. },
  18158. "revert": {
  18159. "$ref": "#/components/schemas/Session.Revert"
  18160. }
  18161. },
  18162. "required": [
  18163. "sessionID",
  18164. "revert"
  18165. ],
  18166. "additionalProperties": false
  18167. }
  18168. },
  18169. "required": [
  18170. "id",
  18171. "created",
  18172. "type",
  18173. "durable",
  18174. "data"
  18175. ],
  18176. "additionalProperties": false
  18177. },
  18178. "session.revert.cleared": {
  18179. "type": "object",
  18180. "properties": {
  18181. "id": {
  18182. "type": "string",
  18183. "allOf": [
  18184. {
  18185. "pattern": "^evt_"
  18186. }
  18187. ]
  18188. },
  18189. "created": {
  18190. "type": "number"
  18191. },
  18192. "metadata": {
  18193. "type": "object"
  18194. },
  18195. "type": {
  18196. "type": "string",
  18197. "enum": [
  18198. "session.revert.cleared"
  18199. ]
  18200. },
  18201. "durable": {
  18202. "type": "object",
  18203. "properties": {
  18204. "aggregateID": {
  18205. "type": "string"
  18206. },
  18207. "seq": {
  18208. "type": "integer",
  18209. "allOf": [
  18210. {
  18211. "minimum": 0
  18212. }
  18213. ]
  18214. },
  18215. "version": {
  18216. "type": "number",
  18217. "enum": [
  18218. 1
  18219. ]
  18220. }
  18221. },
  18222. "required": [
  18223. "aggregateID",
  18224. "seq",
  18225. "version"
  18226. ],
  18227. "additionalProperties": false
  18228. },
  18229. "location": {
  18230. "$ref": "#/components/schemas/Location.Ref"
  18231. },
  18232. "data": {
  18233. "type": "object",
  18234. "properties": {
  18235. "sessionID": {
  18236. "type": "string",
  18237. "allOf": [
  18238. {
  18239. "pattern": "^ses"
  18240. }
  18241. ]
  18242. }
  18243. },
  18244. "required": [
  18245. "sessionID"
  18246. ],
  18247. "additionalProperties": false
  18248. }
  18249. },
  18250. "required": [
  18251. "id",
  18252. "created",
  18253. "type",
  18254. "durable",
  18255. "data"
  18256. ],
  18257. "additionalProperties": false
  18258. },
  18259. "session.revert.committed": {
  18260. "type": "object",
  18261. "properties": {
  18262. "id": {
  18263. "type": "string",
  18264. "allOf": [
  18265. {
  18266. "pattern": "^evt_"
  18267. }
  18268. ]
  18269. },
  18270. "created": {
  18271. "type": "number"
  18272. },
  18273. "metadata": {
  18274. "type": "object"
  18275. },
  18276. "type": {
  18277. "type": "string",
  18278. "enum": [
  18279. "session.revert.committed"
  18280. ]
  18281. },
  18282. "durable": {
  18283. "type": "object",
  18284. "properties": {
  18285. "aggregateID": {
  18286. "type": "string"
  18287. },
  18288. "seq": {
  18289. "type": "integer",
  18290. "allOf": [
  18291. {
  18292. "minimum": 0
  18293. }
  18294. ]
  18295. },
  18296. "version": {
  18297. "type": "number",
  18298. "enum": [
  18299. 1
  18300. ]
  18301. }
  18302. },
  18303. "required": [
  18304. "aggregateID",
  18305. "seq",
  18306. "version"
  18307. ],
  18308. "additionalProperties": false
  18309. },
  18310. "location": {
  18311. "$ref": "#/components/schemas/Location.Ref"
  18312. },
  18313. "data": {
  18314. "type": "object",
  18315. "properties": {
  18316. "sessionID": {
  18317. "type": "string",
  18318. "allOf": [
  18319. {
  18320. "pattern": "^ses"
  18321. }
  18322. ]
  18323. },
  18324. "to": {
  18325. "type": "string",
  18326. "allOf": [
  18327. {
  18328. "pattern": "^msg_"
  18329. }
  18330. ]
  18331. }
  18332. },
  18333. "required": [
  18334. "sessionID",
  18335. "to"
  18336. ],
  18337. "additionalProperties": false
  18338. }
  18339. },
  18340. "required": [
  18341. "id",
  18342. "created",
  18343. "type",
  18344. "durable",
  18345. "data"
  18346. ],
  18347. "additionalProperties": false
  18348. },
  18349. "session.usage.recorded": {
  18350. "type": "object",
  18351. "properties": {
  18352. "id": {
  18353. "type": "string",
  18354. "allOf": [
  18355. {
  18356. "pattern": "^evt_"
  18357. }
  18358. ]
  18359. },
  18360. "created": {
  18361. "type": "number"
  18362. },
  18363. "metadata": {
  18364. "type": "object"
  18365. },
  18366. "type": {
  18367. "type": "string",
  18368. "enum": [
  18369. "session.usage.recorded"
  18370. ]
  18371. },
  18372. "durable": {
  18373. "type": "object",
  18374. "properties": {
  18375. "aggregateID": {
  18376. "type": "string"
  18377. },
  18378. "seq": {
  18379. "type": "integer",
  18380. "allOf": [
  18381. {
  18382. "minimum": 0
  18383. }
  18384. ]
  18385. },
  18386. "version": {
  18387. "type": "number",
  18388. "enum": [
  18389. 1
  18390. ]
  18391. }
  18392. },
  18393. "required": [
  18394. "aggregateID",
  18395. "seq",
  18396. "version"
  18397. ],
  18398. "additionalProperties": false
  18399. },
  18400. "location": {
  18401. "$ref": "#/components/schemas/Location.Ref"
  18402. },
  18403. "data": {
  18404. "type": "object",
  18405. "properties": {
  18406. "sessionID": {
  18407. "type": "string",
  18408. "allOf": [
  18409. {
  18410. "pattern": "^ses"
  18411. }
  18412. ]
  18413. },
  18414. "source": {
  18415. "type": "string",
  18416. "enum": [
  18417. "title",
  18418. "compaction"
  18419. ]
  18420. },
  18421. "cost": {
  18422. "$ref": "#/components/schemas/Money.USD"
  18423. },
  18424. "tokens": {
  18425. "$ref": "#/components/schemas/TokenUsage.Info"
  18426. }
  18427. },
  18428. "required": [
  18429. "sessionID",
  18430. "source",
  18431. "cost",
  18432. "tokens"
  18433. ],
  18434. "additionalProperties": false
  18435. }
  18436. },
  18437. "required": [
  18438. "id",
  18439. "created",
  18440. "type",
  18441. "durable",
  18442. "data"
  18443. ],
  18444. "additionalProperties": false
  18445. },
  18446. "Session.Event.Durable": {
  18447. "oneOf": [
  18448. {
  18449. "$ref": "#/components/schemas/session.agent.selected"
  18450. },
  18451. {
  18452. "$ref": "#/components/schemas/session.model.selected"
  18453. },
  18454. {
  18455. "$ref": "#/components/schemas/session.moved"
  18456. },
  18457. {
  18458. "$ref": "#/components/schemas/session.renamed"
  18459. },
  18460. {
  18461. "$ref": "#/components/schemas/session.deleted"
  18462. },
  18463. {
  18464. "$ref": "#/components/schemas/session.forked"
  18465. },
  18466. {
  18467. "$ref": "#/components/schemas/session.input.promoted"
  18468. },
  18469. {
  18470. "$ref": "#/components/schemas/session.input.admitted"
  18471. },
  18472. {
  18473. "$ref": "#/components/schemas/session.execution.started"
  18474. },
  18475. {
  18476. "$ref": "#/components/schemas/session.execution.succeeded"
  18477. },
  18478. {
  18479. "$ref": "#/components/schemas/session.execution.failed"
  18480. },
  18481. {
  18482. "$ref": "#/components/schemas/session.execution.interrupted"
  18483. },
  18484. {
  18485. "$ref": "#/components/schemas/session.instructions.updated"
  18486. },
  18487. {
  18488. "$ref": "#/components/schemas/session.synthetic"
  18489. },
  18490. {
  18491. "$ref": "#/components/schemas/session.skill.activated"
  18492. },
  18493. {
  18494. "$ref": "#/components/schemas/session.shell.started"
  18495. },
  18496. {
  18497. "$ref": "#/components/schemas/session.shell.ended"
  18498. },
  18499. {
  18500. "$ref": "#/components/schemas/session.step.started"
  18501. },
  18502. {
  18503. "$ref": "#/components/schemas/session.step.ended"
  18504. },
  18505. {
  18506. "$ref": "#/components/schemas/session.step.failed"
  18507. },
  18508. {
  18509. "$ref": "#/components/schemas/session.text.started"
  18510. },
  18511. {
  18512. "$ref": "#/components/schemas/session.text.ended"
  18513. },
  18514. {
  18515. "$ref": "#/components/schemas/session.reasoning.started"
  18516. },
  18517. {
  18518. "$ref": "#/components/schemas/session.reasoning.ended"
  18519. },
  18520. {
  18521. "$ref": "#/components/schemas/session.tool.input.started"
  18522. },
  18523. {
  18524. "$ref": "#/components/schemas/session.tool.input.ended"
  18525. },
  18526. {
  18527. "$ref": "#/components/schemas/session.tool.called"
  18528. },
  18529. {
  18530. "$ref": "#/components/schemas/session.tool.success"
  18531. },
  18532. {
  18533. "$ref": "#/components/schemas/session.tool.failed"
  18534. },
  18535. {
  18536. "$ref": "#/components/schemas/session.retry.scheduled"
  18537. },
  18538. {
  18539. "$ref": "#/components/schemas/session.compaction.admitted"
  18540. },
  18541. {
  18542. "$ref": "#/components/schemas/session.compaction.started"
  18543. },
  18544. {
  18545. "$ref": "#/components/schemas/session.compaction.ended"
  18546. },
  18547. {
  18548. "$ref": "#/components/schemas/session.compaction.failed"
  18549. },
  18550. {
  18551. "$ref": "#/components/schemas/session.revert.staged"
  18552. },
  18553. {
  18554. "$ref": "#/components/schemas/session.revert.cleared"
  18555. },
  18556. {
  18557. "$ref": "#/components/schemas/session.revert.committed"
  18558. },
  18559. {
  18560. "$ref": "#/components/schemas/session.usage.recorded"
  18561. }
  18562. ]
  18563. },
  18564. "EventLog.Synced": {
  18565. "type": "object",
  18566. "properties": {
  18567. "type": {
  18568. "type": "string",
  18569. "enum": [
  18570. "log.synced"
  18571. ]
  18572. },
  18573. "aggregateID": {
  18574. "type": "string"
  18575. },
  18576. "seq": {
  18577. "type": "integer",
  18578. "allOf": [
  18579. {
  18580. "minimum": 0
  18581. }
  18582. ]
  18583. }
  18584. },
  18585. "required": [
  18586. "type",
  18587. "aggregateID"
  18588. ],
  18589. "additionalProperties": false,
  18590. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  18591. },
  18592. "SessionLogItem": {
  18593. "anyOf": [
  18594. {
  18595. "$ref": "#/components/schemas/Session.Event.Durable"
  18596. },
  18597. {
  18598. "$ref": "#/components/schemas/EventLog.Synced"
  18599. }
  18600. ]
  18601. },
  18602. "SessionLogItemJsonString": {
  18603. "type": "string",
  18604. "contentSchema": {
  18605. "$ref": "#/components/schemas/SessionLogItem"
  18606. },
  18607. "contentMediaType": "application/json"
  18608. },
  18609. "SessionMessagesResponse": {
  18610. "type": "object",
  18611. "properties": {
  18612. "data": {
  18613. "type": "array",
  18614. "items": {
  18615. "$ref": "#/components/schemas/Session.Message.Info"
  18616. }
  18617. },
  18618. "cursor": {
  18619. "type": "object",
  18620. "properties": {
  18621. "previous": {
  18622. "anyOf": [
  18623. {
  18624. "type": "string"
  18625. },
  18626. {
  18627. "type": "null"
  18628. }
  18629. ]
  18630. },
  18631. "next": {
  18632. "anyOf": [
  18633. {
  18634. "type": "string"
  18635. },
  18636. {
  18637. "type": "null"
  18638. }
  18639. ]
  18640. }
  18641. },
  18642. "additionalProperties": false
  18643. }
  18644. },
  18645. "required": [
  18646. "data",
  18647. "cursor"
  18648. ],
  18649. "additionalProperties": false
  18650. },
  18651. "Model.ReasoningField": {
  18652. "anyOf": [
  18653. {
  18654. "type": "string",
  18655. "enum": [
  18656. "reasoning",
  18657. "reasoning_content",
  18658. "reasoning_text"
  18659. ]
  18660. },
  18661. {
  18662. "type": "string"
  18663. }
  18664. ]
  18665. },
  18666. "Model.Compatibility": {
  18667. "type": "object",
  18668. "properties": {
  18669. "reasoningField": {
  18670. "$ref": "#/components/schemas/Model.ReasoningField"
  18671. }
  18672. },
  18673. "additionalProperties": false
  18674. },
  18675. "Model.Capabilities": {
  18676. "type": "object",
  18677. "properties": {
  18678. "tools": {
  18679. "type": "boolean"
  18680. },
  18681. "input": {
  18682. "type": "array",
  18683. "items": {
  18684. "type": "string"
  18685. }
  18686. },
  18687. "output": {
  18688. "type": "array",
  18689. "items": {
  18690. "type": "string"
  18691. }
  18692. }
  18693. },
  18694. "required": [
  18695. "tools",
  18696. "input",
  18697. "output"
  18698. ],
  18699. "additionalProperties": false
  18700. },
  18701. "Model.Variant": {
  18702. "type": "object",
  18703. "properties": {
  18704. "id": {
  18705. "type": "string"
  18706. },
  18707. "settings": {
  18708. "type": "object"
  18709. },
  18710. "headers": {
  18711. "type": "object",
  18712. "additionalProperties": {
  18713. "type": "string"
  18714. }
  18715. },
  18716. "body": {
  18717. "type": "object"
  18718. }
  18719. },
  18720. "required": [
  18721. "id"
  18722. ],
  18723. "additionalProperties": false
  18724. },
  18725. "Money.USDPerMillionTokens": {
  18726. "type": "number"
  18727. },
  18728. "Model.Cost": {
  18729. "type": "object",
  18730. "properties": {
  18731. "tier": {
  18732. "type": "object",
  18733. "properties": {
  18734. "type": {
  18735. "type": "string",
  18736. "enum": [
  18737. "context"
  18738. ]
  18739. },
  18740. "size": {
  18741. "type": "integer"
  18742. }
  18743. },
  18744. "required": [
  18745. "type",
  18746. "size"
  18747. ],
  18748. "additionalProperties": false
  18749. },
  18750. "input": {
  18751. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18752. },
  18753. "output": {
  18754. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18755. },
  18756. "cache": {
  18757. "type": "object",
  18758. "properties": {
  18759. "read": {
  18760. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18761. },
  18762. "write": {
  18763. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18764. }
  18765. },
  18766. "required": [
  18767. "read",
  18768. "write"
  18769. ],
  18770. "additionalProperties": false
  18771. }
  18772. },
  18773. "required": [
  18774. "input",
  18775. "output",
  18776. "cache"
  18777. ],
  18778. "additionalProperties": false
  18779. },
  18780. "Model.Info": {
  18781. "type": "object",
  18782. "properties": {
  18783. "id": {
  18784. "type": "string"
  18785. },
  18786. "modelID": {
  18787. "type": "string"
  18788. },
  18789. "providerID": {
  18790. "type": "string"
  18791. },
  18792. "family": {
  18793. "type": "string"
  18794. },
  18795. "name": {
  18796. "type": "string"
  18797. },
  18798. "compatibility": {
  18799. "$ref": "#/components/schemas/Model.Compatibility"
  18800. },
  18801. "package": {
  18802. "type": "string"
  18803. },
  18804. "settings": {
  18805. "type": "object"
  18806. },
  18807. "headers": {
  18808. "type": "object",
  18809. "additionalProperties": {
  18810. "type": "string"
  18811. }
  18812. },
  18813. "body": {
  18814. "type": "object"
  18815. },
  18816. "capabilities": {
  18817. "$ref": "#/components/schemas/Model.Capabilities"
  18818. },
  18819. "variants": {
  18820. "type": "array",
  18821. "items": {
  18822. "$ref": "#/components/schemas/Model.Variant"
  18823. }
  18824. },
  18825. "time": {
  18826. "type": "object",
  18827. "properties": {
  18828. "released": {
  18829. "type": "number"
  18830. }
  18831. },
  18832. "required": [
  18833. "released"
  18834. ],
  18835. "additionalProperties": false
  18836. },
  18837. "cost": {
  18838. "type": "array",
  18839. "items": {
  18840. "$ref": "#/components/schemas/Model.Cost"
  18841. }
  18842. },
  18843. "status": {
  18844. "type": "string",
  18845. "enum": [
  18846. "alpha",
  18847. "beta",
  18848. "deprecated",
  18849. "active"
  18850. ]
  18851. },
  18852. "enabled": {
  18853. "type": "boolean"
  18854. },
  18855. "limit": {
  18856. "type": "object",
  18857. "properties": {
  18858. "context": {
  18859. "type": "integer"
  18860. },
  18861. "input": {
  18862. "type": "integer"
  18863. },
  18864. "output": {
  18865. "type": "integer"
  18866. }
  18867. },
  18868. "required": [
  18869. "context",
  18870. "output"
  18871. ],
  18872. "additionalProperties": false
  18873. }
  18874. },
  18875. "required": [
  18876. "id",
  18877. "modelID",
  18878. "providerID",
  18879. "name",
  18880. "capabilities",
  18881. "variants",
  18882. "time",
  18883. "cost",
  18884. "status",
  18885. "enabled",
  18886. "limit"
  18887. ],
  18888. "additionalProperties": false
  18889. },
  18890. "GenerateTextResponse": {
  18891. "type": "object",
  18892. "properties": {
  18893. "data": {
  18894. "type": "object",
  18895. "properties": {
  18896. "text": {
  18897. "type": "string"
  18898. }
  18899. },
  18900. "required": [
  18901. "text"
  18902. ],
  18903. "additionalProperties": false
  18904. }
  18905. },
  18906. "required": [
  18907. "data"
  18908. ],
  18909. "additionalProperties": false
  18910. },
  18911. "Provider.Info": {
  18912. "type": "object",
  18913. "properties": {
  18914. "id": {
  18915. "type": "string"
  18916. },
  18917. "integrationID": {
  18918. "type": "string"
  18919. },
  18920. "name": {
  18921. "type": "string"
  18922. },
  18923. "disabled": {
  18924. "type": "boolean"
  18925. },
  18926. "package": {
  18927. "type": "string"
  18928. },
  18929. "settings": {
  18930. "type": "object"
  18931. },
  18932. "headers": {
  18933. "type": "object",
  18934. "additionalProperties": {
  18935. "type": "string"
  18936. }
  18937. },
  18938. "body": {
  18939. "type": "object"
  18940. }
  18941. },
  18942. "required": [
  18943. "id",
  18944. "name",
  18945. "package"
  18946. ],
  18947. "additionalProperties": false
  18948. },
  18949. "ProviderNotFoundError": {
  18950. "type": "object",
  18951. "properties": {
  18952. "_tag": {
  18953. "type": "string",
  18954. "enum": [
  18955. "ProviderNotFoundError"
  18956. ]
  18957. },
  18958. "providerID": {
  18959. "type": "string"
  18960. },
  18961. "message": {
  18962. "type": "string"
  18963. }
  18964. },
  18965. "required": [
  18966. "_tag",
  18967. "providerID",
  18968. "message"
  18969. ],
  18970. "additionalProperties": false
  18971. },
  18972. "Integration.When": {
  18973. "type": "object",
  18974. "properties": {
  18975. "key": {
  18976. "type": "string"
  18977. },
  18978. "op": {
  18979. "type": "string",
  18980. "enum": [
  18981. "eq",
  18982. "neq"
  18983. ]
  18984. },
  18985. "value": {
  18986. "type": "string"
  18987. }
  18988. },
  18989. "required": [
  18990. "key",
  18991. "op",
  18992. "value"
  18993. ],
  18994. "additionalProperties": false
  18995. },
  18996. "Integration.TextPrompt": {
  18997. "type": "object",
  18998. "properties": {
  18999. "type": {
  19000. "type": "string",
  19001. "enum": [
  19002. "text"
  19003. ]
  19004. },
  19005. "key": {
  19006. "type": "string"
  19007. },
  19008. "message": {
  19009. "type": "string"
  19010. },
  19011. "placeholder": {
  19012. "type": "string"
  19013. },
  19014. "when": {
  19015. "$ref": "#/components/schemas/Integration.When"
  19016. }
  19017. },
  19018. "required": [
  19019. "type",
  19020. "key",
  19021. "message"
  19022. ],
  19023. "additionalProperties": false
  19024. },
  19025. "Integration.SelectPrompt": {
  19026. "type": "object",
  19027. "properties": {
  19028. "type": {
  19029. "type": "string",
  19030. "enum": [
  19031. "select"
  19032. ]
  19033. },
  19034. "key": {
  19035. "type": "string"
  19036. },
  19037. "message": {
  19038. "type": "string"
  19039. },
  19040. "options": {
  19041. "type": "array",
  19042. "items": {
  19043. "type": "object",
  19044. "properties": {
  19045. "label": {
  19046. "type": "string"
  19047. },
  19048. "value": {
  19049. "type": "string"
  19050. },
  19051. "hint": {
  19052. "type": "string"
  19053. }
  19054. },
  19055. "required": [
  19056. "label",
  19057. "value"
  19058. ],
  19059. "additionalProperties": false
  19060. }
  19061. },
  19062. "when": {
  19063. "$ref": "#/components/schemas/Integration.When"
  19064. }
  19065. },
  19066. "required": [
  19067. "type",
  19068. "key",
  19069. "message",
  19070. "options"
  19071. ],
  19072. "additionalProperties": false
  19073. },
  19074. "Integration.OAuthMethod": {
  19075. "type": "object",
  19076. "properties": {
  19077. "id": {
  19078. "type": "string"
  19079. },
  19080. "type": {
  19081. "type": "string",
  19082. "enum": [
  19083. "oauth"
  19084. ]
  19085. },
  19086. "label": {
  19087. "type": "string"
  19088. },
  19089. "prompts": {
  19090. "type": "array",
  19091. "items": {
  19092. "anyOf": [
  19093. {
  19094. "$ref": "#/components/schemas/Integration.TextPrompt"
  19095. },
  19096. {
  19097. "$ref": "#/components/schemas/Integration.SelectPrompt"
  19098. }
  19099. ]
  19100. }
  19101. }
  19102. },
  19103. "required": [
  19104. "id",
  19105. "type",
  19106. "label"
  19107. ],
  19108. "additionalProperties": false
  19109. },
  19110. "Integration.CommandMethod": {
  19111. "type": "object",
  19112. "properties": {
  19113. "id": {
  19114. "type": "string"
  19115. },
  19116. "type": {
  19117. "type": "string",
  19118. "enum": [
  19119. "command"
  19120. ]
  19121. },
  19122. "label": {
  19123. "type": "string"
  19124. },
  19125. "command": {
  19126. "type": "array",
  19127. "items": {
  19128. "type": "string"
  19129. }
  19130. }
  19131. },
  19132. "required": [
  19133. "id",
  19134. "type",
  19135. "label",
  19136. "command"
  19137. ],
  19138. "additionalProperties": false
  19139. },
  19140. "Integration.KeyMethod": {
  19141. "type": "object",
  19142. "properties": {
  19143. "type": {
  19144. "type": "string",
  19145. "enum": [
  19146. "key"
  19147. ]
  19148. },
  19149. "label": {
  19150. "type": "string"
  19151. }
  19152. },
  19153. "required": [
  19154. "type"
  19155. ],
  19156. "additionalProperties": false
  19157. },
  19158. "Integration.EnvMethod": {
  19159. "type": "object",
  19160. "properties": {
  19161. "type": {
  19162. "type": "string",
  19163. "enum": [
  19164. "env"
  19165. ]
  19166. },
  19167. "names": {
  19168. "type": "array",
  19169. "items": {
  19170. "type": "string"
  19171. }
  19172. }
  19173. },
  19174. "required": [
  19175. "type",
  19176. "names"
  19177. ],
  19178. "additionalProperties": false
  19179. },
  19180. "Integration.Method": {
  19181. "anyOf": [
  19182. {
  19183. "$ref": "#/components/schemas/Integration.OAuthMethod"
  19184. },
  19185. {
  19186. "$ref": "#/components/schemas/Integration.CommandMethod"
  19187. },
  19188. {
  19189. "$ref": "#/components/schemas/Integration.KeyMethod"
  19190. },
  19191. {
  19192. "$ref": "#/components/schemas/Integration.EnvMethod"
  19193. }
  19194. ]
  19195. },
  19196. "Connection.CredentialInfo": {
  19197. "type": "object",
  19198. "properties": {
  19199. "type": {
  19200. "type": "string",
  19201. "enum": [
  19202. "credential"
  19203. ]
  19204. },
  19205. "id": {
  19206. "type": "string"
  19207. },
  19208. "label": {
  19209. "type": "string"
  19210. }
  19211. },
  19212. "required": [
  19213. "type",
  19214. "id",
  19215. "label"
  19216. ],
  19217. "additionalProperties": false
  19218. },
  19219. "Connection.EnvInfo": {
  19220. "type": "object",
  19221. "properties": {
  19222. "type": {
  19223. "type": "string",
  19224. "enum": [
  19225. "env"
  19226. ]
  19227. },
  19228. "name": {
  19229. "type": "string"
  19230. }
  19231. },
  19232. "required": [
  19233. "type",
  19234. "name"
  19235. ],
  19236. "additionalProperties": false
  19237. },
  19238. "Connection.Info": {
  19239. "anyOf": [
  19240. {
  19241. "$ref": "#/components/schemas/Connection.CredentialInfo"
  19242. },
  19243. {
  19244. "$ref": "#/components/schemas/Connection.EnvInfo"
  19245. }
  19246. ]
  19247. },
  19248. "Integration.Info": {
  19249. "type": "object",
  19250. "properties": {
  19251. "id": {
  19252. "type": "string"
  19253. },
  19254. "name": {
  19255. "type": "string"
  19256. },
  19257. "methods": {
  19258. "type": "array",
  19259. "items": {
  19260. "$ref": "#/components/schemas/Integration.Method"
  19261. }
  19262. },
  19263. "connections": {
  19264. "type": "array",
  19265. "items": {
  19266. "$ref": "#/components/schemas/Connection.Info"
  19267. }
  19268. }
  19269. },
  19270. "required": [
  19271. "id",
  19272. "name",
  19273. "methods",
  19274. "connections"
  19275. ],
  19276. "additionalProperties": false
  19277. },
  19278. "Integration.Attempt": {
  19279. "type": "object",
  19280. "properties": {
  19281. "attemptID": {
  19282. "type": "string"
  19283. },
  19284. "url": {
  19285. "type": "string"
  19286. },
  19287. "instructions": {
  19288. "type": "string"
  19289. },
  19290. "mode": {
  19291. "type": "string",
  19292. "enum": [
  19293. "auto",
  19294. "code"
  19295. ]
  19296. },
  19297. "time": {
  19298. "type": "object",
  19299. "properties": {
  19300. "created": {
  19301. "anyOf": [
  19302. {
  19303. "anyOf": [
  19304. {
  19305. "type": "number"
  19306. },
  19307. {
  19308. "type": "string",
  19309. "enum": [
  19310. "NaN"
  19311. ]
  19312. },
  19313. {
  19314. "type": "string",
  19315. "enum": [
  19316. "Infinity"
  19317. ]
  19318. },
  19319. {
  19320. "type": "string",
  19321. "enum": [
  19322. "-Infinity"
  19323. ]
  19324. }
  19325. ]
  19326. },
  19327. {
  19328. "type": "string",
  19329. "enum": [
  19330. "Infinity",
  19331. "-Infinity",
  19332. "NaN"
  19333. ]
  19334. }
  19335. ]
  19336. },
  19337. "expires": {
  19338. "anyOf": [
  19339. {
  19340. "anyOf": [
  19341. {
  19342. "type": "number"
  19343. },
  19344. {
  19345. "type": "string",
  19346. "enum": [
  19347. "NaN"
  19348. ]
  19349. },
  19350. {
  19351. "type": "string",
  19352. "enum": [
  19353. "Infinity"
  19354. ]
  19355. },
  19356. {
  19357. "type": "string",
  19358. "enum": [
  19359. "-Infinity"
  19360. ]
  19361. }
  19362. ]
  19363. },
  19364. {
  19365. "type": "string",
  19366. "enum": [
  19367. "Infinity",
  19368. "-Infinity",
  19369. "NaN"
  19370. ]
  19371. }
  19372. ]
  19373. }
  19374. },
  19375. "required": [
  19376. "created",
  19377. "expires"
  19378. ],
  19379. "additionalProperties": false
  19380. }
  19381. },
  19382. "required": [
  19383. "attemptID",
  19384. "url",
  19385. "instructions",
  19386. "mode",
  19387. "time"
  19388. ],
  19389. "additionalProperties": false
  19390. },
  19391. "Integration.AttemptStatus": {
  19392. "anyOf": [
  19393. {
  19394. "type": "object",
  19395. "properties": {
  19396. "status": {
  19397. "type": "string",
  19398. "enum": [
  19399. "pending"
  19400. ]
  19401. },
  19402. "time": {
  19403. "type": "object",
  19404. "properties": {
  19405. "created": {
  19406. "anyOf": [
  19407. {
  19408. "anyOf": [
  19409. {
  19410. "type": "number"
  19411. },
  19412. {
  19413. "type": "string",
  19414. "enum": [
  19415. "NaN"
  19416. ]
  19417. },
  19418. {
  19419. "type": "string",
  19420. "enum": [
  19421. "Infinity"
  19422. ]
  19423. },
  19424. {
  19425. "type": "string",
  19426. "enum": [
  19427. "-Infinity"
  19428. ]
  19429. }
  19430. ]
  19431. },
  19432. {
  19433. "type": "string",
  19434. "enum": [
  19435. "Infinity",
  19436. "-Infinity",
  19437. "NaN"
  19438. ]
  19439. }
  19440. ]
  19441. },
  19442. "expires": {
  19443. "anyOf": [
  19444. {
  19445. "anyOf": [
  19446. {
  19447. "type": "number"
  19448. },
  19449. {
  19450. "type": "string",
  19451. "enum": [
  19452. "NaN"
  19453. ]
  19454. },
  19455. {
  19456. "type": "string",
  19457. "enum": [
  19458. "Infinity"
  19459. ]
  19460. },
  19461. {
  19462. "type": "string",
  19463. "enum": [
  19464. "-Infinity"
  19465. ]
  19466. }
  19467. ]
  19468. },
  19469. {
  19470. "type": "string",
  19471. "enum": [
  19472. "Infinity",
  19473. "-Infinity",
  19474. "NaN"
  19475. ]
  19476. }
  19477. ]
  19478. }
  19479. },
  19480. "required": [
  19481. "created",
  19482. "expires"
  19483. ],
  19484. "additionalProperties": false
  19485. }
  19486. },
  19487. "required": [
  19488. "status",
  19489. "time"
  19490. ],
  19491. "additionalProperties": false
  19492. },
  19493. {
  19494. "type": "object",
  19495. "properties": {
  19496. "status": {
  19497. "type": "string",
  19498. "enum": [
  19499. "complete"
  19500. ]
  19501. },
  19502. "time": {
  19503. "type": "object",
  19504. "properties": {
  19505. "created": {
  19506. "anyOf": [
  19507. {
  19508. "anyOf": [
  19509. {
  19510. "type": "number"
  19511. },
  19512. {
  19513. "type": "string",
  19514. "enum": [
  19515. "NaN"
  19516. ]
  19517. },
  19518. {
  19519. "type": "string",
  19520. "enum": [
  19521. "Infinity"
  19522. ]
  19523. },
  19524. {
  19525. "type": "string",
  19526. "enum": [
  19527. "-Infinity"
  19528. ]
  19529. }
  19530. ]
  19531. },
  19532. {
  19533. "type": "string",
  19534. "enum": [
  19535. "Infinity",
  19536. "-Infinity",
  19537. "NaN"
  19538. ]
  19539. }
  19540. ]
  19541. },
  19542. "expires": {
  19543. "anyOf": [
  19544. {
  19545. "anyOf": [
  19546. {
  19547. "type": "number"
  19548. },
  19549. {
  19550. "type": "string",
  19551. "enum": [
  19552. "NaN"
  19553. ]
  19554. },
  19555. {
  19556. "type": "string",
  19557. "enum": [
  19558. "Infinity"
  19559. ]
  19560. },
  19561. {
  19562. "type": "string",
  19563. "enum": [
  19564. "-Infinity"
  19565. ]
  19566. }
  19567. ]
  19568. },
  19569. {
  19570. "type": "string",
  19571. "enum": [
  19572. "Infinity",
  19573. "-Infinity",
  19574. "NaN"
  19575. ]
  19576. }
  19577. ]
  19578. }
  19579. },
  19580. "required": [
  19581. "created",
  19582. "expires"
  19583. ],
  19584. "additionalProperties": false
  19585. }
  19586. },
  19587. "required": [
  19588. "status",
  19589. "time"
  19590. ],
  19591. "additionalProperties": false
  19592. },
  19593. {
  19594. "type": "object",
  19595. "properties": {
  19596. "status": {
  19597. "type": "string",
  19598. "enum": [
  19599. "failed"
  19600. ]
  19601. },
  19602. "message": {
  19603. "type": "string"
  19604. },
  19605. "time": {
  19606. "type": "object",
  19607. "properties": {
  19608. "created": {
  19609. "anyOf": [
  19610. {
  19611. "anyOf": [
  19612. {
  19613. "type": "number"
  19614. },
  19615. {
  19616. "type": "string",
  19617. "enum": [
  19618. "NaN"
  19619. ]
  19620. },
  19621. {
  19622. "type": "string",
  19623. "enum": [
  19624. "Infinity"
  19625. ]
  19626. },
  19627. {
  19628. "type": "string",
  19629. "enum": [
  19630. "-Infinity"
  19631. ]
  19632. }
  19633. ]
  19634. },
  19635. {
  19636. "type": "string",
  19637. "enum": [
  19638. "Infinity",
  19639. "-Infinity",
  19640. "NaN"
  19641. ]
  19642. }
  19643. ]
  19644. },
  19645. "expires": {
  19646. "anyOf": [
  19647. {
  19648. "anyOf": [
  19649. {
  19650. "type": "number"
  19651. },
  19652. {
  19653. "type": "string",
  19654. "enum": [
  19655. "NaN"
  19656. ]
  19657. },
  19658. {
  19659. "type": "string",
  19660. "enum": [
  19661. "Infinity"
  19662. ]
  19663. },
  19664. {
  19665. "type": "string",
  19666. "enum": [
  19667. "-Infinity"
  19668. ]
  19669. }
  19670. ]
  19671. },
  19672. {
  19673. "type": "string",
  19674. "enum": [
  19675. "Infinity",
  19676. "-Infinity",
  19677. "NaN"
  19678. ]
  19679. }
  19680. ]
  19681. }
  19682. },
  19683. "required": [
  19684. "created",
  19685. "expires"
  19686. ],
  19687. "additionalProperties": false
  19688. }
  19689. },
  19690. "required": [
  19691. "status",
  19692. "message",
  19693. "time"
  19694. ],
  19695. "additionalProperties": false
  19696. },
  19697. {
  19698. "type": "object",
  19699. "properties": {
  19700. "status": {
  19701. "type": "string",
  19702. "enum": [
  19703. "expired"
  19704. ]
  19705. },
  19706. "time": {
  19707. "type": "object",
  19708. "properties": {
  19709. "created": {
  19710. "anyOf": [
  19711. {
  19712. "anyOf": [
  19713. {
  19714. "type": "number"
  19715. },
  19716. {
  19717. "type": "string",
  19718. "enum": [
  19719. "NaN"
  19720. ]
  19721. },
  19722. {
  19723. "type": "string",
  19724. "enum": [
  19725. "Infinity"
  19726. ]
  19727. },
  19728. {
  19729. "type": "string",
  19730. "enum": [
  19731. "-Infinity"
  19732. ]
  19733. }
  19734. ]
  19735. },
  19736. {
  19737. "type": "string",
  19738. "enum": [
  19739. "Infinity",
  19740. "-Infinity",
  19741. "NaN"
  19742. ]
  19743. }
  19744. ]
  19745. },
  19746. "expires": {
  19747. "anyOf": [
  19748. {
  19749. "anyOf": [
  19750. {
  19751. "type": "number"
  19752. },
  19753. {
  19754. "type": "string",
  19755. "enum": [
  19756. "NaN"
  19757. ]
  19758. },
  19759. {
  19760. "type": "string",
  19761. "enum": [
  19762. "Infinity"
  19763. ]
  19764. },
  19765. {
  19766. "type": "string",
  19767. "enum": [
  19768. "-Infinity"
  19769. ]
  19770. }
  19771. ]
  19772. },
  19773. {
  19774. "type": "string",
  19775. "enum": [
  19776. "Infinity",
  19777. "-Infinity",
  19778. "NaN"
  19779. ]
  19780. }
  19781. ]
  19782. }
  19783. },
  19784. "required": [
  19785. "created",
  19786. "expires"
  19787. ],
  19788. "additionalProperties": false
  19789. }
  19790. },
  19791. "required": [
  19792. "status",
  19793. "time"
  19794. ],
  19795. "additionalProperties": false
  19796. }
  19797. ]
  19798. },
  19799. "Integration.CommandAttempt": {
  19800. "type": "object",
  19801. "properties": {
  19802. "attemptID": {
  19803. "type": "string"
  19804. },
  19805. "time": {
  19806. "type": "object",
  19807. "properties": {
  19808. "created": {
  19809. "anyOf": [
  19810. {
  19811. "anyOf": [
  19812. {
  19813. "type": "number"
  19814. },
  19815. {
  19816. "type": "string",
  19817. "enum": [
  19818. "NaN"
  19819. ]
  19820. },
  19821. {
  19822. "type": "string",
  19823. "enum": [
  19824. "Infinity"
  19825. ]
  19826. },
  19827. {
  19828. "type": "string",
  19829. "enum": [
  19830. "-Infinity"
  19831. ]
  19832. }
  19833. ]
  19834. },
  19835. {
  19836. "type": "string",
  19837. "enum": [
  19838. "Infinity",
  19839. "-Infinity",
  19840. "NaN"
  19841. ]
  19842. }
  19843. ]
  19844. },
  19845. "expires": {
  19846. "anyOf": [
  19847. {
  19848. "anyOf": [
  19849. {
  19850. "type": "number"
  19851. },
  19852. {
  19853. "type": "string",
  19854. "enum": [
  19855. "NaN"
  19856. ]
  19857. },
  19858. {
  19859. "type": "string",
  19860. "enum": [
  19861. "Infinity"
  19862. ]
  19863. },
  19864. {
  19865. "type": "string",
  19866. "enum": [
  19867. "-Infinity"
  19868. ]
  19869. }
  19870. ]
  19871. },
  19872. {
  19873. "type": "string",
  19874. "enum": [
  19875. "Infinity",
  19876. "-Infinity",
  19877. "NaN"
  19878. ]
  19879. }
  19880. ]
  19881. }
  19882. },
  19883. "required": [
  19884. "created",
  19885. "expires"
  19886. ],
  19887. "additionalProperties": false
  19888. }
  19889. },
  19890. "required": [
  19891. "attemptID",
  19892. "time"
  19893. ],
  19894. "additionalProperties": false
  19895. },
  19896. "Integration.CommandAttemptStatus": {
  19897. "anyOf": [
  19898. {
  19899. "type": "object",
  19900. "properties": {
  19901. "status": {
  19902. "type": "string",
  19903. "enum": [
  19904. "pending"
  19905. ]
  19906. },
  19907. "message": {
  19908. "type": "string"
  19909. },
  19910. "time": {
  19911. "type": "object",
  19912. "properties": {
  19913. "created": {
  19914. "anyOf": [
  19915. {
  19916. "anyOf": [
  19917. {
  19918. "type": "number"
  19919. },
  19920. {
  19921. "type": "string",
  19922. "enum": [
  19923. "NaN"
  19924. ]
  19925. },
  19926. {
  19927. "type": "string",
  19928. "enum": [
  19929. "Infinity"
  19930. ]
  19931. },
  19932. {
  19933. "type": "string",
  19934. "enum": [
  19935. "-Infinity"
  19936. ]
  19937. }
  19938. ]
  19939. },
  19940. {
  19941. "type": "string",
  19942. "enum": [
  19943. "Infinity",
  19944. "-Infinity",
  19945. "NaN"
  19946. ]
  19947. }
  19948. ]
  19949. },
  19950. "expires": {
  19951. "anyOf": [
  19952. {
  19953. "anyOf": [
  19954. {
  19955. "type": "number"
  19956. },
  19957. {
  19958. "type": "string",
  19959. "enum": [
  19960. "NaN"
  19961. ]
  19962. },
  19963. {
  19964. "type": "string",
  19965. "enum": [
  19966. "Infinity"
  19967. ]
  19968. },
  19969. {
  19970. "type": "string",
  19971. "enum": [
  19972. "-Infinity"
  19973. ]
  19974. }
  19975. ]
  19976. },
  19977. {
  19978. "type": "string",
  19979. "enum": [
  19980. "Infinity",
  19981. "-Infinity",
  19982. "NaN"
  19983. ]
  19984. }
  19985. ]
  19986. }
  19987. },
  19988. "required": [
  19989. "created",
  19990. "expires"
  19991. ],
  19992. "additionalProperties": false
  19993. }
  19994. },
  19995. "required": [
  19996. "status",
  19997. "time"
  19998. ],
  19999. "additionalProperties": false
  20000. },
  20001. {
  20002. "type": "object",
  20003. "properties": {
  20004. "status": {
  20005. "type": "string",
  20006. "enum": [
  20007. "complete"
  20008. ]
  20009. },
  20010. "time": {
  20011. "type": "object",
  20012. "properties": {
  20013. "created": {
  20014. "anyOf": [
  20015. {
  20016. "anyOf": [
  20017. {
  20018. "type": "number"
  20019. },
  20020. {
  20021. "type": "string",
  20022. "enum": [
  20023. "NaN"
  20024. ]
  20025. },
  20026. {
  20027. "type": "string",
  20028. "enum": [
  20029. "Infinity"
  20030. ]
  20031. },
  20032. {
  20033. "type": "string",
  20034. "enum": [
  20035. "-Infinity"
  20036. ]
  20037. }
  20038. ]
  20039. },
  20040. {
  20041. "type": "string",
  20042. "enum": [
  20043. "Infinity",
  20044. "-Infinity",
  20045. "NaN"
  20046. ]
  20047. }
  20048. ]
  20049. },
  20050. "expires": {
  20051. "anyOf": [
  20052. {
  20053. "anyOf": [
  20054. {
  20055. "type": "number"
  20056. },
  20057. {
  20058. "type": "string",
  20059. "enum": [
  20060. "NaN"
  20061. ]
  20062. },
  20063. {
  20064. "type": "string",
  20065. "enum": [
  20066. "Infinity"
  20067. ]
  20068. },
  20069. {
  20070. "type": "string",
  20071. "enum": [
  20072. "-Infinity"
  20073. ]
  20074. }
  20075. ]
  20076. },
  20077. {
  20078. "type": "string",
  20079. "enum": [
  20080. "Infinity",
  20081. "-Infinity",
  20082. "NaN"
  20083. ]
  20084. }
  20085. ]
  20086. }
  20087. },
  20088. "required": [
  20089. "created",
  20090. "expires"
  20091. ],
  20092. "additionalProperties": false
  20093. }
  20094. },
  20095. "required": [
  20096. "status",
  20097. "time"
  20098. ],
  20099. "additionalProperties": false
  20100. },
  20101. {
  20102. "type": "object",
  20103. "properties": {
  20104. "status": {
  20105. "type": "string",
  20106. "enum": [
  20107. "failed"
  20108. ]
  20109. },
  20110. "message": {
  20111. "type": "string"
  20112. },
  20113. "time": {
  20114. "type": "object",
  20115. "properties": {
  20116. "created": {
  20117. "anyOf": [
  20118. {
  20119. "anyOf": [
  20120. {
  20121. "type": "number"
  20122. },
  20123. {
  20124. "type": "string",
  20125. "enum": [
  20126. "NaN"
  20127. ]
  20128. },
  20129. {
  20130. "type": "string",
  20131. "enum": [
  20132. "Infinity"
  20133. ]
  20134. },
  20135. {
  20136. "type": "string",
  20137. "enum": [
  20138. "-Infinity"
  20139. ]
  20140. }
  20141. ]
  20142. },
  20143. {
  20144. "type": "string",
  20145. "enum": [
  20146. "Infinity",
  20147. "-Infinity",
  20148. "NaN"
  20149. ]
  20150. }
  20151. ]
  20152. },
  20153. "expires": {
  20154. "anyOf": [
  20155. {
  20156. "anyOf": [
  20157. {
  20158. "type": "number"
  20159. },
  20160. {
  20161. "type": "string",
  20162. "enum": [
  20163. "NaN"
  20164. ]
  20165. },
  20166. {
  20167. "type": "string",
  20168. "enum": [
  20169. "Infinity"
  20170. ]
  20171. },
  20172. {
  20173. "type": "string",
  20174. "enum": [
  20175. "-Infinity"
  20176. ]
  20177. }
  20178. ]
  20179. },
  20180. {
  20181. "type": "string",
  20182. "enum": [
  20183. "Infinity",
  20184. "-Infinity",
  20185. "NaN"
  20186. ]
  20187. }
  20188. ]
  20189. }
  20190. },
  20191. "required": [
  20192. "created",
  20193. "expires"
  20194. ],
  20195. "additionalProperties": false
  20196. }
  20197. },
  20198. "required": [
  20199. "status",
  20200. "message",
  20201. "time"
  20202. ],
  20203. "additionalProperties": false
  20204. },
  20205. {
  20206. "type": "object",
  20207. "properties": {
  20208. "status": {
  20209. "type": "string",
  20210. "enum": [
  20211. "expired"
  20212. ]
  20213. },
  20214. "time": {
  20215. "type": "object",
  20216. "properties": {
  20217. "created": {
  20218. "anyOf": [
  20219. {
  20220. "anyOf": [
  20221. {
  20222. "type": "number"
  20223. },
  20224. {
  20225. "type": "string",
  20226. "enum": [
  20227. "NaN"
  20228. ]
  20229. },
  20230. {
  20231. "type": "string",
  20232. "enum": [
  20233. "Infinity"
  20234. ]
  20235. },
  20236. {
  20237. "type": "string",
  20238. "enum": [
  20239. "-Infinity"
  20240. ]
  20241. }
  20242. ]
  20243. },
  20244. {
  20245. "type": "string",
  20246. "enum": [
  20247. "Infinity",
  20248. "-Infinity",
  20249. "NaN"
  20250. ]
  20251. }
  20252. ]
  20253. },
  20254. "expires": {
  20255. "anyOf": [
  20256. {
  20257. "anyOf": [
  20258. {
  20259. "type": "number"
  20260. },
  20261. {
  20262. "type": "string",
  20263. "enum": [
  20264. "NaN"
  20265. ]
  20266. },
  20267. {
  20268. "type": "string",
  20269. "enum": [
  20270. "Infinity"
  20271. ]
  20272. },
  20273. {
  20274. "type": "string",
  20275. "enum": [
  20276. "-Infinity"
  20277. ]
  20278. }
  20279. ]
  20280. },
  20281. {
  20282. "type": "string",
  20283. "enum": [
  20284. "Infinity",
  20285. "-Infinity",
  20286. "NaN"
  20287. ]
  20288. }
  20289. ]
  20290. }
  20291. },
  20292. "required": [
  20293. "created",
  20294. "expires"
  20295. ],
  20296. "additionalProperties": false
  20297. }
  20298. },
  20299. "required": [
  20300. "status",
  20301. "time"
  20302. ],
  20303. "additionalProperties": false
  20304. }
  20305. ]
  20306. },
  20307. "Mcp.Status.Connected": {
  20308. "type": "object",
  20309. "properties": {
  20310. "status": {
  20311. "type": "string",
  20312. "enum": [
  20313. "connected"
  20314. ]
  20315. }
  20316. },
  20317. "required": [
  20318. "status"
  20319. ],
  20320. "additionalProperties": false
  20321. },
  20322. "Mcp.Status.Pending": {
  20323. "type": "object",
  20324. "properties": {
  20325. "status": {
  20326. "type": "string",
  20327. "enum": [
  20328. "pending"
  20329. ]
  20330. }
  20331. },
  20332. "required": [
  20333. "status"
  20334. ],
  20335. "additionalProperties": false
  20336. },
  20337. "Mcp.Status.Disabled": {
  20338. "type": "object",
  20339. "properties": {
  20340. "status": {
  20341. "type": "string",
  20342. "enum": [
  20343. "disabled"
  20344. ]
  20345. }
  20346. },
  20347. "required": [
  20348. "status"
  20349. ],
  20350. "additionalProperties": false
  20351. },
  20352. "Mcp.Status.Failed": {
  20353. "type": "object",
  20354. "properties": {
  20355. "status": {
  20356. "type": "string",
  20357. "enum": [
  20358. "failed"
  20359. ]
  20360. },
  20361. "error": {
  20362. "type": "string"
  20363. }
  20364. },
  20365. "required": [
  20366. "status",
  20367. "error"
  20368. ],
  20369. "additionalProperties": false
  20370. },
  20371. "Mcp.Status.NeedsAuth": {
  20372. "type": "object",
  20373. "properties": {
  20374. "status": {
  20375. "type": "string",
  20376. "enum": [
  20377. "needs_auth"
  20378. ]
  20379. }
  20380. },
  20381. "required": [
  20382. "status"
  20383. ],
  20384. "additionalProperties": false
  20385. },
  20386. "Mcp.Status.NeedsClientRegistration": {
  20387. "type": "object",
  20388. "properties": {
  20389. "status": {
  20390. "type": "string",
  20391. "enum": [
  20392. "needs_client_registration"
  20393. ]
  20394. },
  20395. "error": {
  20396. "type": "string"
  20397. }
  20398. },
  20399. "required": [
  20400. "status",
  20401. "error"
  20402. ],
  20403. "additionalProperties": false
  20404. },
  20405. "Mcp.Server": {
  20406. "type": "object",
  20407. "properties": {
  20408. "name": {
  20409. "type": "string"
  20410. },
  20411. "status": {
  20412. "anyOf": [
  20413. {
  20414. "$ref": "#/components/schemas/Mcp.Status.Connected"
  20415. },
  20416. {
  20417. "$ref": "#/components/schemas/Mcp.Status.Pending"
  20418. },
  20419. {
  20420. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  20421. },
  20422. {
  20423. "$ref": "#/components/schemas/Mcp.Status.Failed"
  20424. },
  20425. {
  20426. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  20427. },
  20428. {
  20429. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  20430. }
  20431. ]
  20432. },
  20433. "integrationID": {
  20434. "type": "string"
  20435. }
  20436. },
  20437. "required": [
  20438. "name",
  20439. "status"
  20440. ],
  20441. "additionalProperties": false
  20442. },
  20443. "Mcp.TimeoutConfig": {
  20444. "type": "object",
  20445. "properties": {
  20446. "startup": {
  20447. "anyOf": [
  20448. {
  20449. "type": "integer",
  20450. "allOf": [
  20451. {
  20452. "exclusiveMinimum": 0
  20453. }
  20454. ]
  20455. },
  20456. {
  20457. "type": "null"
  20458. }
  20459. ],
  20460. "description": "Maximum time in milliseconds to establish and initialize the MCP server."
  20461. },
  20462. "catalog": {
  20463. "anyOf": [
  20464. {
  20465. "type": "integer",
  20466. "allOf": [
  20467. {
  20468. "exclusiveMinimum": 0
  20469. }
  20470. ]
  20471. },
  20472. {
  20473. "type": "null"
  20474. }
  20475. ],
  20476. "description": "Maximum time in milliseconds to wait for MCP discovery requests such as tools/list and prompts/list."
  20477. },
  20478. "execution": {
  20479. "anyOf": [
  20480. {
  20481. "type": "integer",
  20482. "allOf": [
  20483. {
  20484. "exclusiveMinimum": 0
  20485. }
  20486. ]
  20487. },
  20488. {
  20489. "type": "null"
  20490. }
  20491. ],
  20492. "description": "Maximum time in milliseconds to wait for MCP tool and prompt execution."
  20493. }
  20494. },
  20495. "additionalProperties": false
  20496. },
  20497. "Mcp.LocalConfig": {
  20498. "type": "object",
  20499. "properties": {
  20500. "type": {
  20501. "type": "string",
  20502. "enum": [
  20503. "local"
  20504. ]
  20505. },
  20506. "command": {
  20507. "type": "array",
  20508. "items": {
  20509. "type": "string"
  20510. }
  20511. },
  20512. "cwd": {
  20513. "anyOf": [
  20514. {
  20515. "type": "string"
  20516. },
  20517. {
  20518. "type": "null"
  20519. }
  20520. ],
  20521. "description": "Working directory for the MCP server process. Relative paths resolve from the workspace directory."
  20522. },
  20523. "environment": {
  20524. "anyOf": [
  20525. {
  20526. "type": "object",
  20527. "additionalProperties": {
  20528. "type": "string"
  20529. }
  20530. },
  20531. {
  20532. "type": "null"
  20533. }
  20534. ]
  20535. },
  20536. "disabled": {
  20537. "anyOf": [
  20538. {
  20539. "type": "boolean"
  20540. },
  20541. {
  20542. "type": "null"
  20543. }
  20544. ]
  20545. },
  20546. "codemode": {
  20547. "anyOf": [
  20548. {
  20549. "type": "boolean"
  20550. },
  20551. {
  20552. "type": "null"
  20553. }
  20554. ],
  20555. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20556. },
  20557. "timeout": {
  20558. "anyOf": [
  20559. {
  20560. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20561. },
  20562. {
  20563. "type": "null"
  20564. }
  20565. ]
  20566. }
  20567. },
  20568. "required": [
  20569. "type",
  20570. "command"
  20571. ],
  20572. "additionalProperties": false
  20573. },
  20574. "Mcp.OAuthConfig": {
  20575. "type": "object",
  20576. "properties": {
  20577. "client_id": {
  20578. "anyOf": [
  20579. {
  20580. "type": "string"
  20581. },
  20582. {
  20583. "type": "null"
  20584. }
  20585. ]
  20586. },
  20587. "client_secret": {
  20588. "anyOf": [
  20589. {
  20590. "type": "string"
  20591. },
  20592. {
  20593. "type": "null"
  20594. }
  20595. ]
  20596. },
  20597. "scope": {
  20598. "anyOf": [
  20599. {
  20600. "type": "string"
  20601. },
  20602. {
  20603. "type": "null"
  20604. }
  20605. ]
  20606. },
  20607. "callback_port": {
  20608. "anyOf": [
  20609. {
  20610. "type": "integer",
  20611. "allOf": [
  20612. {
  20613. "minimum": 1,
  20614. "maximum": 65535
  20615. }
  20616. ]
  20617. },
  20618. {
  20619. "type": "null"
  20620. }
  20621. ]
  20622. },
  20623. "redirect_uri": {
  20624. "anyOf": [
  20625. {
  20626. "type": "string"
  20627. },
  20628. {
  20629. "type": "null"
  20630. }
  20631. ]
  20632. }
  20633. },
  20634. "additionalProperties": false
  20635. },
  20636. "Mcp.RemoteConfig": {
  20637. "type": "object",
  20638. "properties": {
  20639. "type": {
  20640. "type": "string",
  20641. "enum": [
  20642. "remote"
  20643. ]
  20644. },
  20645. "url": {
  20646. "type": "string"
  20647. },
  20648. "headers": {
  20649. "anyOf": [
  20650. {
  20651. "type": "object",
  20652. "additionalProperties": {
  20653. "type": "string"
  20654. }
  20655. },
  20656. {
  20657. "type": "null"
  20658. }
  20659. ]
  20660. },
  20661. "oauth": {
  20662. "anyOf": [
  20663. {
  20664. "anyOf": [
  20665. {
  20666. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  20667. },
  20668. {
  20669. "type": "boolean",
  20670. "enum": [
  20671. false
  20672. ]
  20673. }
  20674. ]
  20675. },
  20676. {
  20677. "type": "null"
  20678. }
  20679. ]
  20680. },
  20681. "disabled": {
  20682. "anyOf": [
  20683. {
  20684. "type": "boolean"
  20685. },
  20686. {
  20687. "type": "null"
  20688. }
  20689. ]
  20690. },
  20691. "codemode": {
  20692. "anyOf": [
  20693. {
  20694. "type": "boolean"
  20695. },
  20696. {
  20697. "type": "null"
  20698. }
  20699. ],
  20700. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20701. },
  20702. "timeout": {
  20703. "anyOf": [
  20704. {
  20705. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20706. },
  20707. {
  20708. "type": "null"
  20709. }
  20710. ]
  20711. }
  20712. },
  20713. "required": [
  20714. "type",
  20715. "url"
  20716. ],
  20717. "additionalProperties": false
  20718. },
  20719. "McpServerNotFoundError": {
  20720. "type": "object",
  20721. "properties": {
  20722. "_tag": {
  20723. "type": "string",
  20724. "enum": [
  20725. "McpServerNotFoundError"
  20726. ]
  20727. },
  20728. "server": {
  20729. "type": "string"
  20730. },
  20731. "message": {
  20732. "type": "string"
  20733. }
  20734. },
  20735. "required": [
  20736. "_tag",
  20737. "server",
  20738. "message"
  20739. ],
  20740. "additionalProperties": false
  20741. },
  20742. "Mcp.Resource": {
  20743. "type": "object",
  20744. "properties": {
  20745. "server": {
  20746. "type": "string"
  20747. },
  20748. "name": {
  20749. "type": "string"
  20750. },
  20751. "uri": {
  20752. "type": "string"
  20753. },
  20754. "description": {
  20755. "type": "string"
  20756. },
  20757. "mimeType": {
  20758. "type": "string"
  20759. }
  20760. },
  20761. "required": [
  20762. "server",
  20763. "name",
  20764. "uri"
  20765. ],
  20766. "additionalProperties": false
  20767. },
  20768. "Mcp.ResourceTemplate": {
  20769. "type": "object",
  20770. "properties": {
  20771. "server": {
  20772. "type": "string"
  20773. },
  20774. "name": {
  20775. "type": "string"
  20776. },
  20777. "uriTemplate": {
  20778. "type": "string"
  20779. },
  20780. "description": {
  20781. "type": "string"
  20782. },
  20783. "mimeType": {
  20784. "type": "string"
  20785. }
  20786. },
  20787. "required": [
  20788. "server",
  20789. "name",
  20790. "uriTemplate"
  20791. ],
  20792. "additionalProperties": false
  20793. },
  20794. "Mcp.ResourceCatalog": {
  20795. "type": "object",
  20796. "properties": {
  20797. "resources": {
  20798. "type": "array",
  20799. "items": {
  20800. "$ref": "#/components/schemas/Mcp.Resource"
  20801. }
  20802. },
  20803. "templates": {
  20804. "type": "array",
  20805. "items": {
  20806. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  20807. }
  20808. }
  20809. },
  20810. "required": [
  20811. "resources",
  20812. "templates"
  20813. ],
  20814. "additionalProperties": false
  20815. },
  20816. "Project.Vcs": {
  20817. "type": "string",
  20818. "enum": [
  20819. "git",
  20820. "hg"
  20821. ]
  20822. },
  20823. "Project.Icon": {
  20824. "type": "object",
  20825. "properties": {
  20826. "url": {
  20827. "type": "string"
  20828. },
  20829. "override": {
  20830. "type": "string"
  20831. },
  20832. "color": {
  20833. "type": "string"
  20834. }
  20835. },
  20836. "additionalProperties": false
  20837. },
  20838. "Project.Commands": {
  20839. "type": "object",
  20840. "properties": {
  20841. "start": {
  20842. "type": "string",
  20843. "description": "Startup script to run when creating a new workspace (worktree)"
  20844. }
  20845. },
  20846. "additionalProperties": false
  20847. },
  20848. "Project.Time": {
  20849. "type": "object",
  20850. "properties": {
  20851. "created": {
  20852. "type": "integer",
  20853. "allOf": [
  20854. {
  20855. "minimum": 0
  20856. }
  20857. ]
  20858. },
  20859. "updated": {
  20860. "type": "integer",
  20861. "allOf": [
  20862. {
  20863. "minimum": 0
  20864. }
  20865. ]
  20866. },
  20867. "initialized": {
  20868. "type": "integer",
  20869. "allOf": [
  20870. {
  20871. "minimum": 0
  20872. }
  20873. ]
  20874. }
  20875. },
  20876. "required": [
  20877. "created",
  20878. "updated"
  20879. ],
  20880. "additionalProperties": false
  20881. },
  20882. "Project": {
  20883. "type": "object",
  20884. "properties": {
  20885. "id": {
  20886. "type": "string"
  20887. },
  20888. "canonical": {
  20889. "type": "string"
  20890. },
  20891. "vcs": {
  20892. "$ref": "#/components/schemas/Project.Vcs"
  20893. },
  20894. "name": {
  20895. "type": "string"
  20896. },
  20897. "icon": {
  20898. "$ref": "#/components/schemas/Project.Icon"
  20899. },
  20900. "commands": {
  20901. "$ref": "#/components/schemas/Project.Commands"
  20902. },
  20903. "time": {
  20904. "$ref": "#/components/schemas/Project.Time"
  20905. },
  20906. "sandboxes": {
  20907. "type": "array",
  20908. "items": {
  20909. "type": "string"
  20910. }
  20911. }
  20912. },
  20913. "required": [
  20914. "id",
  20915. "canonical",
  20916. "time",
  20917. "sandboxes"
  20918. ],
  20919. "additionalProperties": false
  20920. },
  20921. "Project.Current": {
  20922. "type": "object",
  20923. "properties": {
  20924. "id": {
  20925. "type": "string"
  20926. },
  20927. "directory": {
  20928. "type": "string"
  20929. },
  20930. "canonical": {
  20931. "type": "string"
  20932. }
  20933. },
  20934. "required": [
  20935. "id",
  20936. "directory",
  20937. "canonical"
  20938. ],
  20939. "additionalProperties": false
  20940. },
  20941. "Project.Directory": {
  20942. "type": "object",
  20943. "properties": {
  20944. "directory": {
  20945. "type": "string"
  20946. },
  20947. "strategy": {
  20948. "type": "string"
  20949. }
  20950. },
  20951. "required": [
  20952. "directory"
  20953. ],
  20954. "additionalProperties": false
  20955. },
  20956. "Project.Directories": {
  20957. "type": "array",
  20958. "items": {
  20959. "$ref": "#/components/schemas/Project.Directory"
  20960. }
  20961. },
  20962. "Form.Metadata": {
  20963. "type": "object"
  20964. },
  20965. "Form.When": {
  20966. "type": "object",
  20967. "properties": {
  20968. "key": {
  20969. "type": "string"
  20970. },
  20971. "op": {
  20972. "type": "string",
  20973. "enum": [
  20974. "eq",
  20975. "neq"
  20976. ]
  20977. },
  20978. "value": {
  20979. "anyOf": [
  20980. {
  20981. "type": "string"
  20982. },
  20983. {
  20984. "anyOf": [
  20985. {
  20986. "anyOf": [
  20987. {
  20988. "type": "number"
  20989. },
  20990. {
  20991. "type": "string",
  20992. "enum": [
  20993. "NaN"
  20994. ]
  20995. },
  20996. {
  20997. "type": "string",
  20998. "enum": [
  20999. "Infinity"
  21000. ]
  21001. },
  21002. {
  21003. "type": "string",
  21004. "enum": [
  21005. "-Infinity"
  21006. ]
  21007. }
  21008. ]
  21009. },
  21010. {
  21011. "type": "string",
  21012. "enum": [
  21013. "Infinity",
  21014. "-Infinity",
  21015. "NaN"
  21016. ]
  21017. }
  21018. ]
  21019. },
  21020. {
  21021. "type": "boolean"
  21022. }
  21023. ]
  21024. }
  21025. },
  21026. "required": [
  21027. "key",
  21028. "op",
  21029. "value"
  21030. ],
  21031. "additionalProperties": false
  21032. },
  21033. "Form.Option": {
  21034. "type": "object",
  21035. "properties": {
  21036. "value": {
  21037. "type": "string"
  21038. },
  21039. "label": {
  21040. "type": "string"
  21041. },
  21042. "description": {
  21043. "type": "string"
  21044. }
  21045. },
  21046. "required": [
  21047. "value",
  21048. "label"
  21049. ],
  21050. "additionalProperties": false
  21051. },
  21052. "Form.StringField": {
  21053. "type": "object",
  21054. "properties": {
  21055. "key": {
  21056. "type": "string"
  21057. },
  21058. "title": {
  21059. "type": "string"
  21060. },
  21061. "description": {
  21062. "type": "string"
  21063. },
  21064. "required": {
  21065. "type": "boolean"
  21066. },
  21067. "when": {
  21068. "type": "array",
  21069. "items": {
  21070. "$ref": "#/components/schemas/Form.When"
  21071. }
  21072. },
  21073. "type": {
  21074. "type": "string",
  21075. "enum": [
  21076. "string"
  21077. ]
  21078. },
  21079. "format": {
  21080. "type": "string",
  21081. "enum": [
  21082. "email",
  21083. "uri",
  21084. "date",
  21085. "date-time"
  21086. ]
  21087. },
  21088. "minLength": {
  21089. "type": "integer",
  21090. "allOf": [
  21091. {
  21092. "minimum": 0
  21093. }
  21094. ]
  21095. },
  21096. "maxLength": {
  21097. "type": "integer",
  21098. "allOf": [
  21099. {
  21100. "minimum": 0
  21101. }
  21102. ]
  21103. },
  21104. "pattern": {
  21105. "type": "string"
  21106. },
  21107. "placeholder": {
  21108. "type": "string"
  21109. },
  21110. "default": {
  21111. "type": "string"
  21112. },
  21113. "options": {
  21114. "type": "array",
  21115. "items": {
  21116. "$ref": "#/components/schemas/Form.Option"
  21117. }
  21118. },
  21119. "custom": {
  21120. "type": "boolean"
  21121. }
  21122. },
  21123. "required": [
  21124. "key",
  21125. "type"
  21126. ],
  21127. "additionalProperties": false
  21128. },
  21129. "Form.NumberField": {
  21130. "type": "object",
  21131. "properties": {
  21132. "key": {
  21133. "type": "string"
  21134. },
  21135. "title": {
  21136. "type": "string"
  21137. },
  21138. "description": {
  21139. "type": "string"
  21140. },
  21141. "required": {
  21142. "type": "boolean"
  21143. },
  21144. "when": {
  21145. "type": "array",
  21146. "items": {
  21147. "$ref": "#/components/schemas/Form.When"
  21148. }
  21149. },
  21150. "type": {
  21151. "type": "string",
  21152. "enum": [
  21153. "number"
  21154. ]
  21155. },
  21156. "minimum": {
  21157. "anyOf": [
  21158. {
  21159. "anyOf": [
  21160. {
  21161. "type": "number"
  21162. },
  21163. {
  21164. "type": "string",
  21165. "enum": [
  21166. "NaN"
  21167. ]
  21168. },
  21169. {
  21170. "type": "string",
  21171. "enum": [
  21172. "Infinity"
  21173. ]
  21174. },
  21175. {
  21176. "type": "string",
  21177. "enum": [
  21178. "-Infinity"
  21179. ]
  21180. }
  21181. ]
  21182. },
  21183. {
  21184. "type": "string",
  21185. "enum": [
  21186. "Infinity",
  21187. "-Infinity",
  21188. "NaN"
  21189. ]
  21190. }
  21191. ]
  21192. },
  21193. "maximum": {
  21194. "anyOf": [
  21195. {
  21196. "anyOf": [
  21197. {
  21198. "type": "number"
  21199. },
  21200. {
  21201. "type": "string",
  21202. "enum": [
  21203. "NaN"
  21204. ]
  21205. },
  21206. {
  21207. "type": "string",
  21208. "enum": [
  21209. "Infinity"
  21210. ]
  21211. },
  21212. {
  21213. "type": "string",
  21214. "enum": [
  21215. "-Infinity"
  21216. ]
  21217. }
  21218. ]
  21219. },
  21220. {
  21221. "type": "string",
  21222. "enum": [
  21223. "Infinity",
  21224. "-Infinity",
  21225. "NaN"
  21226. ]
  21227. }
  21228. ]
  21229. },
  21230. "default": {
  21231. "anyOf": [
  21232. {
  21233. "anyOf": [
  21234. {
  21235. "type": "number"
  21236. },
  21237. {
  21238. "type": "string",
  21239. "enum": [
  21240. "NaN"
  21241. ]
  21242. },
  21243. {
  21244. "type": "string",
  21245. "enum": [
  21246. "Infinity"
  21247. ]
  21248. },
  21249. {
  21250. "type": "string",
  21251. "enum": [
  21252. "-Infinity"
  21253. ]
  21254. }
  21255. ]
  21256. },
  21257. {
  21258. "type": "string",
  21259. "enum": [
  21260. "Infinity",
  21261. "-Infinity",
  21262. "NaN"
  21263. ]
  21264. }
  21265. ]
  21266. }
  21267. },
  21268. "required": [
  21269. "key",
  21270. "type"
  21271. ],
  21272. "additionalProperties": false
  21273. },
  21274. "Form.IntegerField": {
  21275. "type": "object",
  21276. "properties": {
  21277. "key": {
  21278. "type": "string"
  21279. },
  21280. "title": {
  21281. "type": "string"
  21282. },
  21283. "description": {
  21284. "type": "string"
  21285. },
  21286. "required": {
  21287. "type": "boolean"
  21288. },
  21289. "when": {
  21290. "type": "array",
  21291. "items": {
  21292. "$ref": "#/components/schemas/Form.When"
  21293. }
  21294. },
  21295. "type": {
  21296. "type": "string",
  21297. "enum": [
  21298. "integer"
  21299. ]
  21300. },
  21301. "minimum": {
  21302. "anyOf": [
  21303. {
  21304. "anyOf": [
  21305. {
  21306. "type": "number"
  21307. },
  21308. {
  21309. "type": "string",
  21310. "enum": [
  21311. "NaN"
  21312. ]
  21313. },
  21314. {
  21315. "type": "string",
  21316. "enum": [
  21317. "Infinity"
  21318. ]
  21319. },
  21320. {
  21321. "type": "string",
  21322. "enum": [
  21323. "-Infinity"
  21324. ]
  21325. }
  21326. ]
  21327. },
  21328. {
  21329. "type": "string",
  21330. "enum": [
  21331. "Infinity",
  21332. "-Infinity",
  21333. "NaN"
  21334. ]
  21335. }
  21336. ]
  21337. },
  21338. "maximum": {
  21339. "anyOf": [
  21340. {
  21341. "anyOf": [
  21342. {
  21343. "type": "number"
  21344. },
  21345. {
  21346. "type": "string",
  21347. "enum": [
  21348. "NaN"
  21349. ]
  21350. },
  21351. {
  21352. "type": "string",
  21353. "enum": [
  21354. "Infinity"
  21355. ]
  21356. },
  21357. {
  21358. "type": "string",
  21359. "enum": [
  21360. "-Infinity"
  21361. ]
  21362. }
  21363. ]
  21364. },
  21365. {
  21366. "type": "string",
  21367. "enum": [
  21368. "Infinity",
  21369. "-Infinity",
  21370. "NaN"
  21371. ]
  21372. }
  21373. ]
  21374. },
  21375. "default": {
  21376. "anyOf": [
  21377. {
  21378. "anyOf": [
  21379. {
  21380. "type": "number"
  21381. },
  21382. {
  21383. "type": "string",
  21384. "enum": [
  21385. "NaN"
  21386. ]
  21387. },
  21388. {
  21389. "type": "string",
  21390. "enum": [
  21391. "Infinity"
  21392. ]
  21393. },
  21394. {
  21395. "type": "string",
  21396. "enum": [
  21397. "-Infinity"
  21398. ]
  21399. }
  21400. ]
  21401. },
  21402. {
  21403. "type": "string",
  21404. "enum": [
  21405. "Infinity",
  21406. "-Infinity",
  21407. "NaN"
  21408. ]
  21409. }
  21410. ]
  21411. }
  21412. },
  21413. "required": [
  21414. "key",
  21415. "type"
  21416. ],
  21417. "additionalProperties": false
  21418. },
  21419. "Form.BooleanField": {
  21420. "type": "object",
  21421. "properties": {
  21422. "key": {
  21423. "type": "string"
  21424. },
  21425. "title": {
  21426. "type": "string"
  21427. },
  21428. "description": {
  21429. "type": "string"
  21430. },
  21431. "required": {
  21432. "type": "boolean"
  21433. },
  21434. "when": {
  21435. "type": "array",
  21436. "items": {
  21437. "$ref": "#/components/schemas/Form.When"
  21438. }
  21439. },
  21440. "type": {
  21441. "type": "string",
  21442. "enum": [
  21443. "boolean"
  21444. ]
  21445. },
  21446. "default": {
  21447. "type": "boolean"
  21448. }
  21449. },
  21450. "required": [
  21451. "key",
  21452. "type"
  21453. ],
  21454. "additionalProperties": false
  21455. },
  21456. "Form.MultiselectField": {
  21457. "type": "object",
  21458. "properties": {
  21459. "key": {
  21460. "type": "string"
  21461. },
  21462. "title": {
  21463. "type": "string"
  21464. },
  21465. "description": {
  21466. "type": "string"
  21467. },
  21468. "required": {
  21469. "type": "boolean"
  21470. },
  21471. "when": {
  21472. "type": "array",
  21473. "items": {
  21474. "$ref": "#/components/schemas/Form.When"
  21475. }
  21476. },
  21477. "type": {
  21478. "type": "string",
  21479. "enum": [
  21480. "multiselect"
  21481. ]
  21482. },
  21483. "options": {
  21484. "type": "array",
  21485. "items": {
  21486. "$ref": "#/components/schemas/Form.Option"
  21487. }
  21488. },
  21489. "minItems": {
  21490. "type": "integer",
  21491. "allOf": [
  21492. {
  21493. "minimum": 0
  21494. }
  21495. ]
  21496. },
  21497. "maxItems": {
  21498. "type": "integer",
  21499. "allOf": [
  21500. {
  21501. "minimum": 0
  21502. }
  21503. ]
  21504. },
  21505. "custom": {
  21506. "type": "boolean"
  21507. },
  21508. "default": {
  21509. "type": "array",
  21510. "items": {
  21511. "type": "string"
  21512. }
  21513. }
  21514. },
  21515. "required": [
  21516. "key",
  21517. "type",
  21518. "options"
  21519. ],
  21520. "additionalProperties": false
  21521. },
  21522. "Form.ExternalField": {
  21523. "type": "object",
  21524. "properties": {
  21525. "key": {
  21526. "type": "string"
  21527. },
  21528. "type": {
  21529. "type": "string",
  21530. "enum": [
  21531. "external"
  21532. ]
  21533. },
  21534. "url": {
  21535. "type": "string"
  21536. },
  21537. "title": {
  21538. "type": "string"
  21539. },
  21540. "description": {
  21541. "type": "string"
  21542. }
  21543. },
  21544. "required": [
  21545. "key",
  21546. "type",
  21547. "url"
  21548. ],
  21549. "additionalProperties": false
  21550. },
  21551. "Form.Field": {
  21552. "anyOf": [
  21553. {
  21554. "$ref": "#/components/schemas/Form.StringField"
  21555. },
  21556. {
  21557. "$ref": "#/components/schemas/Form.NumberField"
  21558. },
  21559. {
  21560. "$ref": "#/components/schemas/Form.IntegerField"
  21561. },
  21562. {
  21563. "$ref": "#/components/schemas/Form.BooleanField"
  21564. },
  21565. {
  21566. "$ref": "#/components/schemas/Form.MultiselectField"
  21567. },
  21568. {
  21569. "$ref": "#/components/schemas/Form.ExternalField"
  21570. }
  21571. ]
  21572. },
  21573. "Form.Fields": {
  21574. "type": "array",
  21575. "prefixItems": [
  21576. {
  21577. "$ref": "#/components/schemas/Form.Field"
  21578. }
  21579. ],
  21580. "minItems": 1,
  21581. "items": {
  21582. "$ref": "#/components/schemas/Form.Field"
  21583. }
  21584. },
  21585. "Form.Info": {
  21586. "type": "object",
  21587. "properties": {
  21588. "id": {
  21589. "type": "string",
  21590. "allOf": [
  21591. {
  21592. "pattern": "^frm_"
  21593. }
  21594. ]
  21595. },
  21596. "sessionID": {
  21597. "type": "string"
  21598. },
  21599. "title": {
  21600. "type": "string"
  21601. },
  21602. "metadata": {
  21603. "$ref": "#/components/schemas/Form.Metadata"
  21604. },
  21605. "fields": {
  21606. "$ref": "#/components/schemas/Form.Fields"
  21607. }
  21608. },
  21609. "required": [
  21610. "id",
  21611. "sessionID",
  21612. "title",
  21613. "fields"
  21614. ],
  21615. "additionalProperties": false
  21616. },
  21617. "Form.CreatePayload": {
  21618. "type": "object",
  21619. "properties": {
  21620. "id": {
  21621. "anyOf": [
  21622. {
  21623. "type": "string",
  21624. "allOf": [
  21625. {
  21626. "pattern": "^frm_"
  21627. }
  21628. ]
  21629. },
  21630. {
  21631. "type": "null"
  21632. }
  21633. ]
  21634. },
  21635. "title": {
  21636. "type": "string"
  21637. },
  21638. "metadata": {
  21639. "$ref": "#/components/schemas/Form.Metadata"
  21640. },
  21641. "fields": {
  21642. "$ref": "#/components/schemas/Form.Fields"
  21643. }
  21644. },
  21645. "required": [
  21646. "title",
  21647. "fields"
  21648. ],
  21649. "additionalProperties": false
  21650. },
  21651. "FormNotFoundError": {
  21652. "type": "object",
  21653. "properties": {
  21654. "_tag": {
  21655. "type": "string",
  21656. "enum": [
  21657. "FormNotFoundError"
  21658. ]
  21659. },
  21660. "id": {
  21661. "type": "string"
  21662. },
  21663. "message": {
  21664. "type": "string"
  21665. }
  21666. },
  21667. "required": [
  21668. "_tag",
  21669. "id",
  21670. "message"
  21671. ],
  21672. "additionalProperties": false
  21673. },
  21674. "Form.Value": {
  21675. "anyOf": [
  21676. {
  21677. "type": "string"
  21678. },
  21679. {
  21680. "anyOf": [
  21681. {
  21682. "anyOf": [
  21683. {
  21684. "type": "number"
  21685. },
  21686. {
  21687. "type": "string",
  21688. "enum": [
  21689. "NaN"
  21690. ]
  21691. },
  21692. {
  21693. "type": "string",
  21694. "enum": [
  21695. "Infinity"
  21696. ]
  21697. },
  21698. {
  21699. "type": "string",
  21700. "enum": [
  21701. "-Infinity"
  21702. ]
  21703. }
  21704. ]
  21705. },
  21706. {
  21707. "type": "string",
  21708. "enum": [
  21709. "Infinity",
  21710. "-Infinity",
  21711. "NaN"
  21712. ]
  21713. }
  21714. ]
  21715. },
  21716. {
  21717. "type": "boolean"
  21718. },
  21719. {
  21720. "type": "array",
  21721. "items": {
  21722. "type": "string"
  21723. }
  21724. }
  21725. ]
  21726. },
  21727. "Form.Answer": {
  21728. "type": "object",
  21729. "additionalProperties": {
  21730. "$ref": "#/components/schemas/Form.Value"
  21731. }
  21732. },
  21733. "Form.State": {
  21734. "anyOf": [
  21735. {
  21736. "type": "object",
  21737. "properties": {
  21738. "status": {
  21739. "type": "string",
  21740. "enum": [
  21741. "pending"
  21742. ]
  21743. }
  21744. },
  21745. "required": [
  21746. "status"
  21747. ],
  21748. "additionalProperties": false
  21749. },
  21750. {
  21751. "type": "object",
  21752. "properties": {
  21753. "status": {
  21754. "type": "string",
  21755. "enum": [
  21756. "answered"
  21757. ]
  21758. },
  21759. "answer": {
  21760. "$ref": "#/components/schemas/Form.Answer"
  21761. }
  21762. },
  21763. "required": [
  21764. "status",
  21765. "answer"
  21766. ],
  21767. "additionalProperties": false
  21768. },
  21769. {
  21770. "type": "object",
  21771. "properties": {
  21772. "status": {
  21773. "type": "string",
  21774. "enum": [
  21775. "cancelled"
  21776. ]
  21777. }
  21778. },
  21779. "required": [
  21780. "status"
  21781. ],
  21782. "additionalProperties": false
  21783. }
  21784. ]
  21785. },
  21786. "Form.Reply": {
  21787. "type": "object",
  21788. "properties": {
  21789. "answer": {
  21790. "$ref": "#/components/schemas/Form.Answer"
  21791. }
  21792. },
  21793. "required": [
  21794. "answer"
  21795. ],
  21796. "additionalProperties": false
  21797. },
  21798. "FormAlreadySettledError": {
  21799. "type": "object",
  21800. "properties": {
  21801. "_tag": {
  21802. "type": "string",
  21803. "enum": [
  21804. "FormAlreadySettledError"
  21805. ]
  21806. },
  21807. "id": {
  21808. "type": "string"
  21809. },
  21810. "message": {
  21811. "type": "string"
  21812. }
  21813. },
  21814. "required": [
  21815. "_tag",
  21816. "id",
  21817. "message"
  21818. ],
  21819. "additionalProperties": false
  21820. },
  21821. "FormInvalidAnswerError": {
  21822. "type": "object",
  21823. "properties": {
  21824. "_tag": {
  21825. "type": "string",
  21826. "enum": [
  21827. "FormInvalidAnswerError"
  21828. ]
  21829. },
  21830. "id": {
  21831. "type": "string"
  21832. },
  21833. "message": {
  21834. "type": "string"
  21835. }
  21836. },
  21837. "required": [
  21838. "_tag",
  21839. "id",
  21840. "message"
  21841. ],
  21842. "additionalProperties": false
  21843. },
  21844. "Permission.Source": {
  21845. "anyOf": [
  21846. {
  21847. "type": "object",
  21848. "properties": {
  21849. "type": {
  21850. "type": "string",
  21851. "enum": [
  21852. "tool"
  21853. ]
  21854. },
  21855. "messageID": {
  21856. "type": "string"
  21857. },
  21858. "callID": {
  21859. "type": "string"
  21860. }
  21861. },
  21862. "required": [
  21863. "type",
  21864. "messageID",
  21865. "callID"
  21866. ],
  21867. "additionalProperties": false
  21868. }
  21869. ]
  21870. },
  21871. "Permission.Request": {
  21872. "type": "object",
  21873. "properties": {
  21874. "id": {
  21875. "type": "string",
  21876. "allOf": [
  21877. {
  21878. "pattern": "^per"
  21879. }
  21880. ]
  21881. },
  21882. "sessionID": {
  21883. "type": "string",
  21884. "allOf": [
  21885. {
  21886. "pattern": "^ses"
  21887. }
  21888. ]
  21889. },
  21890. "action": {
  21891. "type": "string"
  21892. },
  21893. "resources": {
  21894. "type": "array",
  21895. "items": {
  21896. "type": "string"
  21897. }
  21898. },
  21899. "save": {
  21900. "type": "array",
  21901. "items": {
  21902. "type": "string"
  21903. }
  21904. },
  21905. "metadata": {
  21906. "type": "object"
  21907. },
  21908. "source": {
  21909. "$ref": "#/components/schemas/Permission.Source"
  21910. }
  21911. },
  21912. "required": [
  21913. "id",
  21914. "sessionID",
  21915. "action",
  21916. "resources"
  21917. ],
  21918. "additionalProperties": false
  21919. },
  21920. "PermissionSaved.Info": {
  21921. "type": "object",
  21922. "properties": {
  21923. "id": {
  21924. "type": "string"
  21925. },
  21926. "projectID": {
  21927. "type": "string"
  21928. },
  21929. "action": {
  21930. "type": "string"
  21931. },
  21932. "resource": {
  21933. "type": "string"
  21934. }
  21935. },
  21936. "required": [
  21937. "id",
  21938. "projectID",
  21939. "action",
  21940. "resource"
  21941. ],
  21942. "additionalProperties": false
  21943. },
  21944. "PermissionNotFoundError": {
  21945. "type": "object",
  21946. "properties": {
  21947. "_tag": {
  21948. "type": "string",
  21949. "enum": [
  21950. "PermissionNotFoundError"
  21951. ]
  21952. },
  21953. "requestID": {
  21954. "type": "string"
  21955. },
  21956. "message": {
  21957. "type": "string"
  21958. }
  21959. },
  21960. "required": [
  21961. "_tag",
  21962. "requestID",
  21963. "message"
  21964. ],
  21965. "additionalProperties": false
  21966. },
  21967. "Permission.Reply": {
  21968. "type": "string",
  21969. "enum": [
  21970. "once",
  21971. "always",
  21972. "reject"
  21973. ]
  21974. },
  21975. "FileSystem.Entry": {
  21976. "type": "object",
  21977. "properties": {
  21978. "path": {
  21979. "type": "string"
  21980. },
  21981. "type": {
  21982. "type": "string",
  21983. "enum": [
  21984. "file",
  21985. "directory"
  21986. ]
  21987. }
  21988. },
  21989. "required": [
  21990. "path",
  21991. "type"
  21992. ],
  21993. "additionalProperties": false
  21994. },
  21995. "Command.Info": {
  21996. "type": "object",
  21997. "properties": {
  21998. "name": {
  21999. "type": "string"
  22000. },
  22001. "template": {
  22002. "type": "string"
  22003. },
  22004. "description": {
  22005. "type": "string"
  22006. },
  22007. "agent": {
  22008. "type": "string"
  22009. },
  22010. "model": {
  22011. "$ref": "#/components/schemas/Model.Ref"
  22012. },
  22013. "subtask": {
  22014. "type": "boolean"
  22015. }
  22016. },
  22017. "required": [
  22018. "name",
  22019. "template"
  22020. ],
  22021. "additionalProperties": false
  22022. },
  22023. "Skill.Info": {
  22024. "type": "object",
  22025. "properties": {
  22026. "id": {
  22027. "type": "string"
  22028. },
  22029. "name": {
  22030. "type": "string"
  22031. },
  22032. "description": {
  22033. "type": "string"
  22034. },
  22035. "slash": {
  22036. "type": "boolean"
  22037. },
  22038. "autoinvoke": {
  22039. "type": "boolean"
  22040. },
  22041. "location": {
  22042. "type": "string"
  22043. },
  22044. "content": {
  22045. "type": "string"
  22046. }
  22047. },
  22048. "required": [
  22049. "id",
  22050. "name",
  22051. "location",
  22052. "content"
  22053. ],
  22054. "additionalProperties": false
  22055. },
  22056. "models-dev.refreshed": {
  22057. "type": "object",
  22058. "properties": {
  22059. "id": {
  22060. "type": "string",
  22061. "allOf": [
  22062. {
  22063. "pattern": "^evt_"
  22064. }
  22065. ]
  22066. },
  22067. "created": {
  22068. "type": "number"
  22069. },
  22070. "metadata": {
  22071. "type": "object"
  22072. },
  22073. "type": {
  22074. "type": "string",
  22075. "enum": [
  22076. "models-dev.refreshed"
  22077. ]
  22078. },
  22079. "location": {
  22080. "$ref": "#/components/schemas/Location.Ref"
  22081. },
  22082. "data": {
  22083. "anyOf": [
  22084. {
  22085. "type": "object"
  22086. },
  22087. {
  22088. "type": "array"
  22089. }
  22090. ]
  22091. }
  22092. },
  22093. "required": [
  22094. "id",
  22095. "created",
  22096. "type",
  22097. "data"
  22098. ],
  22099. "additionalProperties": false
  22100. },
  22101. "integration.updated": {
  22102. "type": "object",
  22103. "properties": {
  22104. "id": {
  22105. "type": "string",
  22106. "allOf": [
  22107. {
  22108. "pattern": "^evt_"
  22109. }
  22110. ]
  22111. },
  22112. "created": {
  22113. "type": "number"
  22114. },
  22115. "metadata": {
  22116. "type": "object"
  22117. },
  22118. "type": {
  22119. "type": "string",
  22120. "enum": [
  22121. "integration.updated"
  22122. ]
  22123. },
  22124. "location": {
  22125. "$ref": "#/components/schemas/Location.Ref"
  22126. },
  22127. "data": {
  22128. "anyOf": [
  22129. {
  22130. "type": "object"
  22131. },
  22132. {
  22133. "type": "array"
  22134. }
  22135. ]
  22136. }
  22137. },
  22138. "required": [
  22139. "id",
  22140. "created",
  22141. "type",
  22142. "data"
  22143. ],
  22144. "additionalProperties": false
  22145. },
  22146. "integration.connection.updated": {
  22147. "type": "object",
  22148. "properties": {
  22149. "id": {
  22150. "type": "string",
  22151. "allOf": [
  22152. {
  22153. "pattern": "^evt_"
  22154. }
  22155. ]
  22156. },
  22157. "created": {
  22158. "type": "number"
  22159. },
  22160. "metadata": {
  22161. "type": "object"
  22162. },
  22163. "type": {
  22164. "type": "string",
  22165. "enum": [
  22166. "integration.connection.updated"
  22167. ]
  22168. },
  22169. "location": {
  22170. "$ref": "#/components/schemas/Location.Ref"
  22171. },
  22172. "data": {
  22173. "type": "object",
  22174. "properties": {
  22175. "integrationID": {
  22176. "type": "string"
  22177. }
  22178. },
  22179. "required": [
  22180. "integrationID"
  22181. ],
  22182. "additionalProperties": false
  22183. }
  22184. },
  22185. "required": [
  22186. "id",
  22187. "created",
  22188. "type",
  22189. "data"
  22190. ],
  22191. "additionalProperties": false
  22192. },
  22193. "catalog.updated": {
  22194. "type": "object",
  22195. "properties": {
  22196. "id": {
  22197. "type": "string",
  22198. "allOf": [
  22199. {
  22200. "pattern": "^evt_"
  22201. }
  22202. ]
  22203. },
  22204. "created": {
  22205. "type": "number"
  22206. },
  22207. "metadata": {
  22208. "type": "object"
  22209. },
  22210. "type": {
  22211. "type": "string",
  22212. "enum": [
  22213. "catalog.updated"
  22214. ]
  22215. },
  22216. "location": {
  22217. "$ref": "#/components/schemas/Location.Ref"
  22218. },
  22219. "data": {
  22220. "anyOf": [
  22221. {
  22222. "type": "object"
  22223. },
  22224. {
  22225. "type": "array"
  22226. }
  22227. ]
  22228. }
  22229. },
  22230. "required": [
  22231. "id",
  22232. "created",
  22233. "type",
  22234. "data"
  22235. ],
  22236. "additionalProperties": false
  22237. },
  22238. "agent.updated": {
  22239. "type": "object",
  22240. "properties": {
  22241. "id": {
  22242. "type": "string",
  22243. "allOf": [
  22244. {
  22245. "pattern": "^evt_"
  22246. }
  22247. ]
  22248. },
  22249. "created": {
  22250. "type": "number"
  22251. },
  22252. "metadata": {
  22253. "type": "object"
  22254. },
  22255. "type": {
  22256. "type": "string",
  22257. "enum": [
  22258. "agent.updated"
  22259. ]
  22260. },
  22261. "location": {
  22262. "$ref": "#/components/schemas/Location.Ref"
  22263. },
  22264. "data": {
  22265. "anyOf": [
  22266. {
  22267. "type": "object"
  22268. },
  22269. {
  22270. "type": "array"
  22271. }
  22272. ]
  22273. }
  22274. },
  22275. "required": [
  22276. "id",
  22277. "created",
  22278. "type",
  22279. "data"
  22280. ],
  22281. "additionalProperties": false
  22282. },
  22283. "FileDiff.LegacyInfo": {
  22284. "type": "object",
  22285. "properties": {
  22286. "file": {
  22287. "type": "string"
  22288. },
  22289. "patch": {
  22290. "type": "string"
  22291. },
  22292. "additions": {
  22293. "type": "number"
  22294. },
  22295. "deletions": {
  22296. "type": "number"
  22297. },
  22298. "status": {
  22299. "type": "string",
  22300. "enum": [
  22301. "added",
  22302. "deleted",
  22303. "modified"
  22304. ]
  22305. }
  22306. },
  22307. "required": [
  22308. "additions",
  22309. "deletions"
  22310. ],
  22311. "additionalProperties": false
  22312. },
  22313. "PermissionV1.Action": {
  22314. "type": "string",
  22315. "enum": [
  22316. "allow",
  22317. "deny",
  22318. "ask"
  22319. ]
  22320. },
  22321. "PermissionV1.Rule": {
  22322. "type": "object",
  22323. "properties": {
  22324. "permission": {
  22325. "type": "string"
  22326. },
  22327. "pattern": {
  22328. "type": "string"
  22329. },
  22330. "action": {
  22331. "$ref": "#/components/schemas/PermissionV1.Action"
  22332. }
  22333. },
  22334. "required": [
  22335. "permission",
  22336. "pattern",
  22337. "action"
  22338. ],
  22339. "additionalProperties": false
  22340. },
  22341. "PermissionV1.Ruleset": {
  22342. "type": "array",
  22343. "items": {
  22344. "$ref": "#/components/schemas/PermissionV1.Rule"
  22345. }
  22346. },
  22347. "SessionV1.Info": {
  22348. "type": "object",
  22349. "properties": {
  22350. "id": {
  22351. "type": "string",
  22352. "allOf": [
  22353. {
  22354. "pattern": "^ses"
  22355. }
  22356. ]
  22357. },
  22358. "slug": {
  22359. "type": "string"
  22360. },
  22361. "projectID": {
  22362. "type": "string"
  22363. },
  22364. "workspaceID": {
  22365. "type": "string",
  22366. "allOf": [
  22367. {
  22368. "pattern": "^wrk"
  22369. }
  22370. ]
  22371. },
  22372. "directory": {
  22373. "type": "string"
  22374. },
  22375. "path": {
  22376. "type": "string"
  22377. },
  22378. "parentID": {
  22379. "type": "string",
  22380. "allOf": [
  22381. {
  22382. "pattern": "^ses"
  22383. }
  22384. ]
  22385. },
  22386. "summary": {
  22387. "type": "object",
  22388. "properties": {
  22389. "additions": {
  22390. "type": "number"
  22391. },
  22392. "deletions": {
  22393. "type": "number"
  22394. },
  22395. "files": {
  22396. "type": "number"
  22397. },
  22398. "diffs": {
  22399. "type": "array",
  22400. "items": {
  22401. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  22402. }
  22403. }
  22404. },
  22405. "required": [
  22406. "additions",
  22407. "deletions",
  22408. "files"
  22409. ],
  22410. "additionalProperties": false
  22411. },
  22412. "cost": {
  22413. "type": "number"
  22414. },
  22415. "tokens": {
  22416. "type": "object",
  22417. "properties": {
  22418. "input": {
  22419. "type": "number"
  22420. },
  22421. "output": {
  22422. "type": "number"
  22423. },
  22424. "reasoning": {
  22425. "type": "number"
  22426. },
  22427. "cache": {
  22428. "type": "object",
  22429. "properties": {
  22430. "read": {
  22431. "type": "number"
  22432. },
  22433. "write": {
  22434. "type": "number"
  22435. }
  22436. },
  22437. "required": [
  22438. "read",
  22439. "write"
  22440. ],
  22441. "additionalProperties": false
  22442. }
  22443. },
  22444. "required": [
  22445. "input",
  22446. "output",
  22447. "reasoning",
  22448. "cache"
  22449. ],
  22450. "additionalProperties": false
  22451. },
  22452. "share": {
  22453. "type": "object",
  22454. "properties": {
  22455. "url": {
  22456. "type": "string"
  22457. }
  22458. },
  22459. "required": [
  22460. "url"
  22461. ],
  22462. "additionalProperties": false
  22463. },
  22464. "title": {
  22465. "type": "string"
  22466. },
  22467. "agent": {
  22468. "type": "string"
  22469. },
  22470. "model": {
  22471. "type": "object",
  22472. "properties": {
  22473. "id": {
  22474. "type": "string"
  22475. },
  22476. "providerID": {
  22477. "type": "string"
  22478. },
  22479. "variant": {
  22480. "type": "string"
  22481. }
  22482. },
  22483. "required": [
  22484. "id",
  22485. "providerID"
  22486. ],
  22487. "additionalProperties": false
  22488. },
  22489. "version": {
  22490. "type": "string"
  22491. },
  22492. "metadata": {
  22493. "type": "object"
  22494. },
  22495. "time": {
  22496. "type": "object",
  22497. "properties": {
  22498. "created": {
  22499. "type": "integer",
  22500. "allOf": [
  22501. {
  22502. "minimum": 0
  22503. }
  22504. ]
  22505. },
  22506. "updated": {
  22507. "type": "integer",
  22508. "allOf": [
  22509. {
  22510. "minimum": 0
  22511. }
  22512. ]
  22513. },
  22514. "compacting": {
  22515. "type": "integer",
  22516. "allOf": [
  22517. {
  22518. "minimum": 0
  22519. }
  22520. ]
  22521. },
  22522. "archived": {
  22523. "type": "number"
  22524. }
  22525. },
  22526. "required": [
  22527. "created",
  22528. "updated"
  22529. ],
  22530. "additionalProperties": false
  22531. },
  22532. "permission": {
  22533. "$ref": "#/components/schemas/PermissionV1.Ruleset"
  22534. },
  22535. "revert": {
  22536. "type": "object",
  22537. "properties": {
  22538. "messageID": {
  22539. "type": "string",
  22540. "allOf": [
  22541. {
  22542. "pattern": "^msg"
  22543. }
  22544. ]
  22545. },
  22546. "partID": {
  22547. "type": "string",
  22548. "allOf": [
  22549. {
  22550. "pattern": "^prt"
  22551. }
  22552. ]
  22553. },
  22554. "snapshot": {
  22555. "type": "string"
  22556. },
  22557. "diff": {
  22558. "type": "string"
  22559. }
  22560. },
  22561. "required": [
  22562. "messageID"
  22563. ],
  22564. "additionalProperties": false
  22565. }
  22566. },
  22567. "required": [
  22568. "id",
  22569. "slug",
  22570. "projectID",
  22571. "directory",
  22572. "version",
  22573. "time"
  22574. ],
  22575. "additionalProperties": false
  22576. },
  22577. "session.created": {
  22578. "type": "object",
  22579. "properties": {
  22580. "id": {
  22581. "type": "string",
  22582. "allOf": [
  22583. {
  22584. "pattern": "^evt_"
  22585. }
  22586. ]
  22587. },
  22588. "created": {
  22589. "type": "number"
  22590. },
  22591. "metadata": {
  22592. "type": "object"
  22593. },
  22594. "type": {
  22595. "type": "string",
  22596. "enum": [
  22597. "session.created"
  22598. ]
  22599. },
  22600. "durable": {
  22601. "type": "object",
  22602. "properties": {
  22603. "aggregateID": {
  22604. "type": "string"
  22605. },
  22606. "seq": {
  22607. "type": "integer",
  22608. "allOf": [
  22609. {
  22610. "minimum": 0
  22611. }
  22612. ]
  22613. },
  22614. "version": {
  22615. "type": "number",
  22616. "enum": [
  22617. 1
  22618. ]
  22619. }
  22620. },
  22621. "required": [
  22622. "aggregateID",
  22623. "seq",
  22624. "version"
  22625. ],
  22626. "additionalProperties": false
  22627. },
  22628. "location": {
  22629. "$ref": "#/components/schemas/Location.Ref"
  22630. },
  22631. "data": {
  22632. "type": "object",
  22633. "properties": {
  22634. "sessionID": {
  22635. "type": "string",
  22636. "allOf": [
  22637. {
  22638. "pattern": "^ses"
  22639. }
  22640. ]
  22641. },
  22642. "info": {
  22643. "$ref": "#/components/schemas/SessionV1.Info"
  22644. }
  22645. },
  22646. "required": [
  22647. "sessionID",
  22648. "info"
  22649. ],
  22650. "additionalProperties": false
  22651. }
  22652. },
  22653. "required": [
  22654. "id",
  22655. "created",
  22656. "type",
  22657. "durable",
  22658. "data"
  22659. ],
  22660. "additionalProperties": false
  22661. },
  22662. "session.updated": {
  22663. "type": "object",
  22664. "properties": {
  22665. "id": {
  22666. "type": "string",
  22667. "allOf": [
  22668. {
  22669. "pattern": "^evt_"
  22670. }
  22671. ]
  22672. },
  22673. "created": {
  22674. "type": "number"
  22675. },
  22676. "metadata": {
  22677. "type": "object"
  22678. },
  22679. "type": {
  22680. "type": "string",
  22681. "enum": [
  22682. "session.updated"
  22683. ]
  22684. },
  22685. "durable": {
  22686. "type": "object",
  22687. "properties": {
  22688. "aggregateID": {
  22689. "type": "string"
  22690. },
  22691. "seq": {
  22692. "type": "integer",
  22693. "allOf": [
  22694. {
  22695. "minimum": 0
  22696. }
  22697. ]
  22698. },
  22699. "version": {
  22700. "type": "number",
  22701. "enum": [
  22702. 1
  22703. ]
  22704. }
  22705. },
  22706. "required": [
  22707. "aggregateID",
  22708. "seq",
  22709. "version"
  22710. ],
  22711. "additionalProperties": false
  22712. },
  22713. "location": {
  22714. "$ref": "#/components/schemas/Location.Ref"
  22715. },
  22716. "data": {
  22717. "type": "object",
  22718. "properties": {
  22719. "sessionID": {
  22720. "type": "string",
  22721. "allOf": [
  22722. {
  22723. "pattern": "^ses"
  22724. }
  22725. ]
  22726. },
  22727. "info": {
  22728. "$ref": "#/components/schemas/SessionV1.Info"
  22729. }
  22730. },
  22731. "required": [
  22732. "sessionID",
  22733. "info"
  22734. ],
  22735. "additionalProperties": false
  22736. }
  22737. },
  22738. "required": [
  22739. "id",
  22740. "created",
  22741. "type",
  22742. "durable",
  22743. "data"
  22744. ],
  22745. "additionalProperties": false
  22746. },
  22747. "session.deleted1": {
  22748. "type": "object",
  22749. "properties": {
  22750. "id": {
  22751. "type": "string",
  22752. "allOf": [
  22753. {
  22754. "pattern": "^evt_"
  22755. }
  22756. ]
  22757. },
  22758. "created": {
  22759. "type": "number"
  22760. },
  22761. "metadata": {
  22762. "type": "object"
  22763. },
  22764. "type": {
  22765. "type": "string",
  22766. "enum": [
  22767. "session.deleted"
  22768. ]
  22769. },
  22770. "durable": {
  22771. "type": "object",
  22772. "properties": {
  22773. "aggregateID": {
  22774. "type": "string"
  22775. },
  22776. "seq": {
  22777. "type": "integer",
  22778. "allOf": [
  22779. {
  22780. "minimum": 0
  22781. }
  22782. ]
  22783. },
  22784. "version": {
  22785. "type": "number",
  22786. "enum": [
  22787. 1
  22788. ]
  22789. }
  22790. },
  22791. "required": [
  22792. "aggregateID",
  22793. "seq",
  22794. "version"
  22795. ],
  22796. "additionalProperties": false
  22797. },
  22798. "location": {
  22799. "$ref": "#/components/schemas/Location.Ref"
  22800. },
  22801. "data": {
  22802. "type": "object",
  22803. "properties": {
  22804. "sessionID": {
  22805. "type": "string",
  22806. "allOf": [
  22807. {
  22808. "pattern": "^ses"
  22809. }
  22810. ]
  22811. },
  22812. "info": {
  22813. "$ref": "#/components/schemas/SessionV1.Info"
  22814. }
  22815. },
  22816. "required": [
  22817. "sessionID",
  22818. "info"
  22819. ],
  22820. "additionalProperties": false
  22821. }
  22822. },
  22823. "required": [
  22824. "id",
  22825. "created",
  22826. "type",
  22827. "durable",
  22828. "data"
  22829. ],
  22830. "additionalProperties": false
  22831. },
  22832. "SessionV1.JSONSchema": {
  22833. "type": "object"
  22834. },
  22835. "SessionV1.OutputFormat": {
  22836. "anyOf": [
  22837. {
  22838. "type": "object",
  22839. "properties": {
  22840. "type": {
  22841. "type": "string",
  22842. "enum": [
  22843. "text"
  22844. ]
  22845. }
  22846. },
  22847. "required": [
  22848. "type"
  22849. ],
  22850. "additionalProperties": false
  22851. },
  22852. {
  22853. "type": "object",
  22854. "properties": {
  22855. "type": {
  22856. "type": "string",
  22857. "enum": [
  22858. "json_schema"
  22859. ]
  22860. },
  22861. "schema": {
  22862. "$ref": "#/components/schemas/SessionV1.JSONSchema"
  22863. },
  22864. "retryCount": {
  22865. "anyOf": [
  22866. {
  22867. "anyOf": [
  22868. {
  22869. "type": "integer",
  22870. "allOf": [
  22871. {
  22872. "minimum": 0
  22873. }
  22874. ]
  22875. },
  22876. {
  22877. "type": "null"
  22878. }
  22879. ]
  22880. },
  22881. {
  22882. "type": "null"
  22883. }
  22884. ]
  22885. }
  22886. },
  22887. "required": [
  22888. "type",
  22889. "schema"
  22890. ],
  22891. "additionalProperties": false
  22892. }
  22893. ]
  22894. },
  22895. "SessionV1.UserMessage": {
  22896. "type": "object",
  22897. "properties": {
  22898. "id": {
  22899. "type": "string",
  22900. "allOf": [
  22901. {
  22902. "pattern": "^msg"
  22903. }
  22904. ]
  22905. },
  22906. "sessionID": {
  22907. "type": "string",
  22908. "allOf": [
  22909. {
  22910. "pattern": "^ses"
  22911. }
  22912. ]
  22913. },
  22914. "role": {
  22915. "type": "string",
  22916. "enum": [
  22917. "user"
  22918. ]
  22919. },
  22920. "time": {
  22921. "type": "object",
  22922. "properties": {
  22923. "created": {
  22924. "type": "number",
  22925. "allOf": [
  22926. {
  22927. "minimum": 0
  22928. }
  22929. ]
  22930. }
  22931. },
  22932. "required": [
  22933. "created"
  22934. ],
  22935. "additionalProperties": false
  22936. },
  22937. "format": {
  22938. "anyOf": [
  22939. {
  22940. "$ref": "#/components/schemas/SessionV1.OutputFormat"
  22941. },
  22942. {
  22943. "type": "null"
  22944. }
  22945. ]
  22946. },
  22947. "summary": {
  22948. "anyOf": [
  22949. {
  22950. "type": "object",
  22951. "properties": {
  22952. "title": {
  22953. "anyOf": [
  22954. {
  22955. "type": "string"
  22956. },
  22957. {
  22958. "type": "null"
  22959. }
  22960. ]
  22961. },
  22962. "body": {
  22963. "anyOf": [
  22964. {
  22965. "type": "string"
  22966. },
  22967. {
  22968. "type": "null"
  22969. }
  22970. ]
  22971. },
  22972. "diffs": {
  22973. "type": "array",
  22974. "items": {
  22975. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  22976. }
  22977. }
  22978. },
  22979. "required": [
  22980. "diffs"
  22981. ],
  22982. "additionalProperties": false
  22983. },
  22984. {
  22985. "type": "null"
  22986. }
  22987. ]
  22988. },
  22989. "agent": {
  22990. "type": "string"
  22991. },
  22992. "model": {
  22993. "type": "object",
  22994. "properties": {
  22995. "providerID": {
  22996. "type": "string"
  22997. },
  22998. "modelID": {
  22999. "type": "string"
  23000. },
  23001. "variant": {
  23002. "anyOf": [
  23003. {
  23004. "type": "string"
  23005. },
  23006. {
  23007. "type": "null"
  23008. }
  23009. ]
  23010. }
  23011. },
  23012. "required": [
  23013. "providerID",
  23014. "modelID"
  23015. ],
  23016. "additionalProperties": false
  23017. },
  23018. "system": {
  23019. "anyOf": [
  23020. {
  23021. "type": "string"
  23022. },
  23023. {
  23024. "type": "null"
  23025. }
  23026. ]
  23027. },
  23028. "tools": {
  23029. "anyOf": [
  23030. {
  23031. "type": "object",
  23032. "additionalProperties": {
  23033. "type": "boolean"
  23034. }
  23035. },
  23036. {
  23037. "type": "null"
  23038. }
  23039. ]
  23040. }
  23041. },
  23042. "required": [
  23043. "id",
  23044. "sessionID",
  23045. "role",
  23046. "time",
  23047. "agent",
  23048. "model"
  23049. ],
  23050. "additionalProperties": false
  23051. },
  23052. "ProviderAuthError": {
  23053. "type": "object",
  23054. "properties": {
  23055. "name": {
  23056. "type": "string",
  23057. "enum": [
  23058. "ProviderAuthError"
  23059. ]
  23060. },
  23061. "data": {
  23062. "type": "object",
  23063. "properties": {
  23064. "providerID": {
  23065. "type": "string"
  23066. },
  23067. "message": {
  23068. "type": "string"
  23069. }
  23070. },
  23071. "required": [
  23072. "providerID",
  23073. "message"
  23074. ],
  23075. "additionalProperties": false
  23076. }
  23077. },
  23078. "required": [
  23079. "name",
  23080. "data"
  23081. ],
  23082. "additionalProperties": false
  23083. },
  23084. "UnknownError1": {
  23085. "type": "object",
  23086. "properties": {
  23087. "name": {
  23088. "type": "string",
  23089. "enum": [
  23090. "UnknownError"
  23091. ]
  23092. },
  23093. "data": {
  23094. "type": "object",
  23095. "properties": {
  23096. "message": {
  23097. "type": "string"
  23098. },
  23099. "ref": {
  23100. "anyOf": [
  23101. {
  23102. "type": "string"
  23103. },
  23104. {
  23105. "type": "null"
  23106. }
  23107. ]
  23108. }
  23109. },
  23110. "required": [
  23111. "message"
  23112. ],
  23113. "additionalProperties": false
  23114. }
  23115. },
  23116. "required": [
  23117. "name",
  23118. "data"
  23119. ],
  23120. "additionalProperties": false
  23121. },
  23122. "MessageOutputLengthError": {
  23123. "type": "object",
  23124. "properties": {
  23125. "name": {
  23126. "type": "string",
  23127. "enum": [
  23128. "MessageOutputLengthError"
  23129. ]
  23130. },
  23131. "data": {
  23132. "anyOf": [
  23133. {
  23134. "type": "object"
  23135. },
  23136. {
  23137. "type": "array"
  23138. }
  23139. ]
  23140. }
  23141. },
  23142. "required": [
  23143. "name",
  23144. "data"
  23145. ],
  23146. "additionalProperties": false
  23147. },
  23148. "MessageAbortedError": {
  23149. "type": "object",
  23150. "properties": {
  23151. "name": {
  23152. "type": "string",
  23153. "enum": [
  23154. "MessageAbortedError"
  23155. ]
  23156. },
  23157. "data": {
  23158. "type": "object",
  23159. "properties": {
  23160. "message": {
  23161. "type": "string"
  23162. }
  23163. },
  23164. "required": [
  23165. "message"
  23166. ],
  23167. "additionalProperties": false
  23168. }
  23169. },
  23170. "required": [
  23171. "name",
  23172. "data"
  23173. ],
  23174. "additionalProperties": false
  23175. },
  23176. "StructuredOutputError": {
  23177. "type": "object",
  23178. "properties": {
  23179. "name": {
  23180. "type": "string",
  23181. "enum": [
  23182. "StructuredOutputError"
  23183. ]
  23184. },
  23185. "data": {
  23186. "type": "object",
  23187. "properties": {
  23188. "message": {
  23189. "type": "string"
  23190. },
  23191. "retries": {
  23192. "type": "integer",
  23193. "allOf": [
  23194. {
  23195. "minimum": 0
  23196. }
  23197. ]
  23198. }
  23199. },
  23200. "required": [
  23201. "message",
  23202. "retries"
  23203. ],
  23204. "additionalProperties": false
  23205. }
  23206. },
  23207. "required": [
  23208. "name",
  23209. "data"
  23210. ],
  23211. "additionalProperties": false
  23212. },
  23213. "ContextOverflowError": {
  23214. "type": "object",
  23215. "properties": {
  23216. "name": {
  23217. "type": "string",
  23218. "enum": [
  23219. "ContextOverflowError"
  23220. ]
  23221. },
  23222. "data": {
  23223. "type": "object",
  23224. "properties": {
  23225. "message": {
  23226. "type": "string"
  23227. },
  23228. "responseBody": {
  23229. "anyOf": [
  23230. {
  23231. "type": "string"
  23232. },
  23233. {
  23234. "type": "null"
  23235. }
  23236. ]
  23237. }
  23238. },
  23239. "required": [
  23240. "message"
  23241. ],
  23242. "additionalProperties": false
  23243. }
  23244. },
  23245. "required": [
  23246. "name",
  23247. "data"
  23248. ],
  23249. "additionalProperties": false
  23250. },
  23251. "ContentFilterError": {
  23252. "type": "object",
  23253. "properties": {
  23254. "name": {
  23255. "type": "string",
  23256. "enum": [
  23257. "ContentFilterError"
  23258. ]
  23259. },
  23260. "data": {
  23261. "type": "object",
  23262. "properties": {
  23263. "message": {
  23264. "type": "string"
  23265. }
  23266. },
  23267. "required": [
  23268. "message"
  23269. ],
  23270. "additionalProperties": false
  23271. }
  23272. },
  23273. "required": [
  23274. "name",
  23275. "data"
  23276. ],
  23277. "additionalProperties": false
  23278. },
  23279. "APIError": {
  23280. "type": "object",
  23281. "properties": {
  23282. "name": {
  23283. "type": "string",
  23284. "enum": [
  23285. "APIError"
  23286. ]
  23287. },
  23288. "data": {
  23289. "type": "object",
  23290. "properties": {
  23291. "message": {
  23292. "type": "string"
  23293. },
  23294. "statusCode": {
  23295. "anyOf": [
  23296. {
  23297. "type": "integer",
  23298. "allOf": [
  23299. {
  23300. "minimum": 0
  23301. }
  23302. ]
  23303. },
  23304. {
  23305. "type": "null"
  23306. }
  23307. ]
  23308. },
  23309. "isRetryable": {
  23310. "type": "boolean"
  23311. },
  23312. "responseHeaders": {
  23313. "anyOf": [
  23314. {
  23315. "type": "object",
  23316. "additionalProperties": {
  23317. "type": "string"
  23318. }
  23319. },
  23320. {
  23321. "type": "null"
  23322. }
  23323. ]
  23324. },
  23325. "responseBody": {
  23326. "anyOf": [
  23327. {
  23328. "type": "string"
  23329. },
  23330. {
  23331. "type": "null"
  23332. }
  23333. ]
  23334. },
  23335. "metadata": {
  23336. "anyOf": [
  23337. {
  23338. "type": "object",
  23339. "additionalProperties": {
  23340. "type": "string"
  23341. }
  23342. },
  23343. {
  23344. "type": "null"
  23345. }
  23346. ]
  23347. }
  23348. },
  23349. "required": [
  23350. "message",
  23351. "isRetryable"
  23352. ],
  23353. "additionalProperties": false
  23354. }
  23355. },
  23356. "required": [
  23357. "name",
  23358. "data"
  23359. ],
  23360. "additionalProperties": false
  23361. },
  23362. "SessionV1.AssistantMessage": {
  23363. "type": "object",
  23364. "properties": {
  23365. "id": {
  23366. "type": "string",
  23367. "allOf": [
  23368. {
  23369. "pattern": "^msg"
  23370. }
  23371. ]
  23372. },
  23373. "sessionID": {
  23374. "type": "string",
  23375. "allOf": [
  23376. {
  23377. "pattern": "^ses"
  23378. }
  23379. ]
  23380. },
  23381. "role": {
  23382. "type": "string",
  23383. "enum": [
  23384. "assistant"
  23385. ]
  23386. },
  23387. "time": {
  23388. "type": "object",
  23389. "properties": {
  23390. "created": {
  23391. "type": "integer",
  23392. "allOf": [
  23393. {
  23394. "minimum": 0
  23395. }
  23396. ]
  23397. },
  23398. "completed": {
  23399. "anyOf": [
  23400. {
  23401. "type": "integer",
  23402. "allOf": [
  23403. {
  23404. "minimum": 0
  23405. }
  23406. ]
  23407. },
  23408. {
  23409. "type": "null"
  23410. }
  23411. ]
  23412. }
  23413. },
  23414. "required": [
  23415. "created"
  23416. ],
  23417. "additionalProperties": false
  23418. },
  23419. "error": {
  23420. "anyOf": [
  23421. {
  23422. "anyOf": [
  23423. {
  23424. "$ref": "#/components/schemas/ProviderAuthError"
  23425. },
  23426. {
  23427. "$ref": "#/components/schemas/UnknownError1"
  23428. },
  23429. {
  23430. "$ref": "#/components/schemas/MessageOutputLengthError"
  23431. },
  23432. {
  23433. "$ref": "#/components/schemas/MessageAbortedError"
  23434. },
  23435. {
  23436. "$ref": "#/components/schemas/StructuredOutputError"
  23437. },
  23438. {
  23439. "$ref": "#/components/schemas/ContextOverflowError"
  23440. },
  23441. {
  23442. "$ref": "#/components/schemas/ContentFilterError"
  23443. },
  23444. {
  23445. "$ref": "#/components/schemas/APIError"
  23446. }
  23447. ]
  23448. },
  23449. {
  23450. "type": "null"
  23451. }
  23452. ]
  23453. },
  23454. "parentID": {
  23455. "type": "string",
  23456. "allOf": [
  23457. {
  23458. "pattern": "^msg"
  23459. }
  23460. ]
  23461. },
  23462. "modelID": {
  23463. "type": "string"
  23464. },
  23465. "providerID": {
  23466. "type": "string"
  23467. },
  23468. "mode": {
  23469. "type": "string"
  23470. },
  23471. "agent": {
  23472. "type": "string"
  23473. },
  23474. "path": {
  23475. "type": "object",
  23476. "properties": {
  23477. "cwd": {
  23478. "type": "string"
  23479. },
  23480. "root": {
  23481. "type": "string"
  23482. }
  23483. },
  23484. "required": [
  23485. "cwd",
  23486. "root"
  23487. ],
  23488. "additionalProperties": false
  23489. },
  23490. "summary": {
  23491. "anyOf": [
  23492. {
  23493. "type": "boolean"
  23494. },
  23495. {
  23496. "type": "null"
  23497. }
  23498. ]
  23499. },
  23500. "cost": {
  23501. "type": "number"
  23502. },
  23503. "tokens": {
  23504. "type": "object",
  23505. "properties": {
  23506. "total": {
  23507. "anyOf": [
  23508. {
  23509. "type": "number"
  23510. },
  23511. {
  23512. "type": "null"
  23513. }
  23514. ]
  23515. },
  23516. "input": {
  23517. "type": "number"
  23518. },
  23519. "output": {
  23520. "type": "number"
  23521. },
  23522. "reasoning": {
  23523. "type": "number"
  23524. },
  23525. "cache": {
  23526. "type": "object",
  23527. "properties": {
  23528. "read": {
  23529. "type": "number"
  23530. },
  23531. "write": {
  23532. "type": "number"
  23533. }
  23534. },
  23535. "required": [
  23536. "read",
  23537. "write"
  23538. ],
  23539. "additionalProperties": false
  23540. }
  23541. },
  23542. "required": [
  23543. "input",
  23544. "output",
  23545. "reasoning",
  23546. "cache"
  23547. ],
  23548. "additionalProperties": false
  23549. },
  23550. "structured": {
  23551. "anyOf": [
  23552. {},
  23553. {
  23554. "type": "null"
  23555. }
  23556. ]
  23557. },
  23558. "variant": {
  23559. "anyOf": [
  23560. {
  23561. "type": "string"
  23562. },
  23563. {
  23564. "type": "null"
  23565. }
  23566. ]
  23567. },
  23568. "finish": {
  23569. "anyOf": [
  23570. {
  23571. "type": "string"
  23572. },
  23573. {
  23574. "type": "null"
  23575. }
  23576. ]
  23577. }
  23578. },
  23579. "required": [
  23580. "id",
  23581. "sessionID",
  23582. "role",
  23583. "time",
  23584. "parentID",
  23585. "modelID",
  23586. "providerID",
  23587. "mode",
  23588. "agent",
  23589. "path",
  23590. "cost",
  23591. "tokens"
  23592. ],
  23593. "additionalProperties": false
  23594. },
  23595. "SessionV1.Message": {
  23596. "anyOf": [
  23597. {
  23598. "$ref": "#/components/schemas/SessionV1.UserMessage"
  23599. },
  23600. {
  23601. "$ref": "#/components/schemas/SessionV1.AssistantMessage"
  23602. }
  23603. ]
  23604. },
  23605. "message.updated": {
  23606. "type": "object",
  23607. "properties": {
  23608. "id": {
  23609. "type": "string",
  23610. "allOf": [
  23611. {
  23612. "pattern": "^evt_"
  23613. }
  23614. ]
  23615. },
  23616. "created": {
  23617. "type": "number"
  23618. },
  23619. "metadata": {
  23620. "type": "object"
  23621. },
  23622. "type": {
  23623. "type": "string",
  23624. "enum": [
  23625. "message.updated"
  23626. ]
  23627. },
  23628. "durable": {
  23629. "type": "object",
  23630. "properties": {
  23631. "aggregateID": {
  23632. "type": "string"
  23633. },
  23634. "seq": {
  23635. "type": "integer",
  23636. "allOf": [
  23637. {
  23638. "minimum": 0
  23639. }
  23640. ]
  23641. },
  23642. "version": {
  23643. "type": "number",
  23644. "enum": [
  23645. 1
  23646. ]
  23647. }
  23648. },
  23649. "required": [
  23650. "aggregateID",
  23651. "seq",
  23652. "version"
  23653. ],
  23654. "additionalProperties": false
  23655. },
  23656. "location": {
  23657. "$ref": "#/components/schemas/Location.Ref"
  23658. },
  23659. "data": {
  23660. "type": "object",
  23661. "properties": {
  23662. "sessionID": {
  23663. "type": "string",
  23664. "allOf": [
  23665. {
  23666. "pattern": "^ses"
  23667. }
  23668. ]
  23669. },
  23670. "info": {
  23671. "$ref": "#/components/schemas/SessionV1.Message"
  23672. }
  23673. },
  23674. "required": [
  23675. "sessionID",
  23676. "info"
  23677. ],
  23678. "additionalProperties": false
  23679. }
  23680. },
  23681. "required": [
  23682. "id",
  23683. "created",
  23684. "type",
  23685. "durable",
  23686. "data"
  23687. ],
  23688. "additionalProperties": false
  23689. },
  23690. "message.removed": {
  23691. "type": "object",
  23692. "properties": {
  23693. "id": {
  23694. "type": "string",
  23695. "allOf": [
  23696. {
  23697. "pattern": "^evt_"
  23698. }
  23699. ]
  23700. },
  23701. "created": {
  23702. "type": "number"
  23703. },
  23704. "metadata": {
  23705. "type": "object"
  23706. },
  23707. "type": {
  23708. "type": "string",
  23709. "enum": [
  23710. "message.removed"
  23711. ]
  23712. },
  23713. "durable": {
  23714. "type": "object",
  23715. "properties": {
  23716. "aggregateID": {
  23717. "type": "string"
  23718. },
  23719. "seq": {
  23720. "type": "integer",
  23721. "allOf": [
  23722. {
  23723. "minimum": 0
  23724. }
  23725. ]
  23726. },
  23727. "version": {
  23728. "type": "number",
  23729. "enum": [
  23730. 1
  23731. ]
  23732. }
  23733. },
  23734. "required": [
  23735. "aggregateID",
  23736. "seq",
  23737. "version"
  23738. ],
  23739. "additionalProperties": false
  23740. },
  23741. "location": {
  23742. "$ref": "#/components/schemas/Location.Ref"
  23743. },
  23744. "data": {
  23745. "type": "object",
  23746. "properties": {
  23747. "sessionID": {
  23748. "type": "string",
  23749. "allOf": [
  23750. {
  23751. "pattern": "^ses"
  23752. }
  23753. ]
  23754. },
  23755. "messageID": {
  23756. "type": "string",
  23757. "allOf": [
  23758. {
  23759. "pattern": "^msg"
  23760. }
  23761. ]
  23762. }
  23763. },
  23764. "required": [
  23765. "sessionID",
  23766. "messageID"
  23767. ],
  23768. "additionalProperties": false
  23769. }
  23770. },
  23771. "required": [
  23772. "id",
  23773. "created",
  23774. "type",
  23775. "durable",
  23776. "data"
  23777. ],
  23778. "additionalProperties": false
  23779. },
  23780. "SessionV1.TextPart": {
  23781. "type": "object",
  23782. "properties": {
  23783. "id": {
  23784. "type": "string",
  23785. "allOf": [
  23786. {
  23787. "pattern": "^prt"
  23788. }
  23789. ]
  23790. },
  23791. "sessionID": {
  23792. "type": "string",
  23793. "allOf": [
  23794. {
  23795. "pattern": "^ses"
  23796. }
  23797. ]
  23798. },
  23799. "messageID": {
  23800. "type": "string",
  23801. "allOf": [
  23802. {
  23803. "pattern": "^msg"
  23804. }
  23805. ]
  23806. },
  23807. "type": {
  23808. "type": "string",
  23809. "enum": [
  23810. "text"
  23811. ]
  23812. },
  23813. "text": {
  23814. "type": "string"
  23815. },
  23816. "synthetic": {
  23817. "anyOf": [
  23818. {
  23819. "type": "boolean"
  23820. },
  23821. {
  23822. "type": "null"
  23823. }
  23824. ]
  23825. },
  23826. "ignored": {
  23827. "anyOf": [
  23828. {
  23829. "type": "boolean"
  23830. },
  23831. {
  23832. "type": "null"
  23833. }
  23834. ]
  23835. },
  23836. "time": {
  23837. "anyOf": [
  23838. {
  23839. "type": "object",
  23840. "properties": {
  23841. "start": {
  23842. "type": "integer",
  23843. "allOf": [
  23844. {
  23845. "minimum": 0
  23846. }
  23847. ]
  23848. },
  23849. "end": {
  23850. "anyOf": [
  23851. {
  23852. "type": "integer",
  23853. "allOf": [
  23854. {
  23855. "minimum": 0
  23856. }
  23857. ]
  23858. },
  23859. {
  23860. "type": "null"
  23861. }
  23862. ]
  23863. }
  23864. },
  23865. "required": [
  23866. "start"
  23867. ],
  23868. "additionalProperties": false
  23869. },
  23870. {
  23871. "type": "null"
  23872. }
  23873. ]
  23874. },
  23875. "metadata": {
  23876. "anyOf": [
  23877. {
  23878. "type": "object"
  23879. },
  23880. {
  23881. "type": "null"
  23882. }
  23883. ]
  23884. }
  23885. },
  23886. "required": [
  23887. "id",
  23888. "sessionID",
  23889. "messageID",
  23890. "type",
  23891. "text"
  23892. ],
  23893. "additionalProperties": false
  23894. },
  23895. "SessionV1.SubtaskPart": {
  23896. "type": "object",
  23897. "properties": {
  23898. "id": {
  23899. "type": "string",
  23900. "allOf": [
  23901. {
  23902. "pattern": "^prt"
  23903. }
  23904. ]
  23905. },
  23906. "sessionID": {
  23907. "type": "string",
  23908. "allOf": [
  23909. {
  23910. "pattern": "^ses"
  23911. }
  23912. ]
  23913. },
  23914. "messageID": {
  23915. "type": "string",
  23916. "allOf": [
  23917. {
  23918. "pattern": "^msg"
  23919. }
  23920. ]
  23921. },
  23922. "type": {
  23923. "type": "string",
  23924. "enum": [
  23925. "subtask"
  23926. ]
  23927. },
  23928. "prompt": {
  23929. "type": "string"
  23930. },
  23931. "description": {
  23932. "type": "string"
  23933. },
  23934. "agent": {
  23935. "type": "string"
  23936. },
  23937. "model": {
  23938. "anyOf": [
  23939. {
  23940. "type": "object",
  23941. "properties": {
  23942. "providerID": {
  23943. "type": "string"
  23944. },
  23945. "modelID": {
  23946. "type": "string"
  23947. }
  23948. },
  23949. "required": [
  23950. "providerID",
  23951. "modelID"
  23952. ],
  23953. "additionalProperties": false
  23954. },
  23955. {
  23956. "type": "null"
  23957. }
  23958. ]
  23959. },
  23960. "command": {
  23961. "anyOf": [
  23962. {
  23963. "type": "string"
  23964. },
  23965. {
  23966. "type": "null"
  23967. }
  23968. ]
  23969. }
  23970. },
  23971. "required": [
  23972. "id",
  23973. "sessionID",
  23974. "messageID",
  23975. "type",
  23976. "prompt",
  23977. "description",
  23978. "agent"
  23979. ],
  23980. "additionalProperties": false
  23981. },
  23982. "SessionV1.ReasoningPart": {
  23983. "type": "object",
  23984. "properties": {
  23985. "id": {
  23986. "type": "string",
  23987. "allOf": [
  23988. {
  23989. "pattern": "^prt"
  23990. }
  23991. ]
  23992. },
  23993. "sessionID": {
  23994. "type": "string",
  23995. "allOf": [
  23996. {
  23997. "pattern": "^ses"
  23998. }
  23999. ]
  24000. },
  24001. "messageID": {
  24002. "type": "string",
  24003. "allOf": [
  24004. {
  24005. "pattern": "^msg"
  24006. }
  24007. ]
  24008. },
  24009. "type": {
  24010. "type": "string",
  24011. "enum": [
  24012. "reasoning"
  24013. ]
  24014. },
  24015. "text": {
  24016. "type": "string"
  24017. },
  24018. "metadata": {
  24019. "anyOf": [
  24020. {
  24021. "type": "object"
  24022. },
  24023. {
  24024. "type": "null"
  24025. }
  24026. ]
  24027. },
  24028. "time": {
  24029. "type": "object",
  24030. "properties": {
  24031. "start": {
  24032. "type": "integer",
  24033. "allOf": [
  24034. {
  24035. "minimum": 0
  24036. }
  24037. ]
  24038. },
  24039. "end": {
  24040. "anyOf": [
  24041. {
  24042. "type": "integer",
  24043. "allOf": [
  24044. {
  24045. "minimum": 0
  24046. }
  24047. ]
  24048. },
  24049. {
  24050. "type": "null"
  24051. }
  24052. ]
  24053. }
  24054. },
  24055. "required": [
  24056. "start"
  24057. ],
  24058. "additionalProperties": false
  24059. }
  24060. },
  24061. "required": [
  24062. "id",
  24063. "sessionID",
  24064. "messageID",
  24065. "type",
  24066. "text",
  24067. "time"
  24068. ],
  24069. "additionalProperties": false
  24070. },
  24071. "SessionV1.FilePartSourceText": {
  24072. "type": "object",
  24073. "properties": {
  24074. "value": {
  24075. "type": "string"
  24076. },
  24077. "start": {
  24078. "type": "number"
  24079. },
  24080. "end": {
  24081. "type": "number"
  24082. }
  24083. },
  24084. "required": [
  24085. "value",
  24086. "start",
  24087. "end"
  24088. ],
  24089. "additionalProperties": false
  24090. },
  24091. "SessionV1.FileSource": {
  24092. "type": "object",
  24093. "properties": {
  24094. "text": {
  24095. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  24096. },
  24097. "type": {
  24098. "type": "string",
  24099. "enum": [
  24100. "file"
  24101. ]
  24102. },
  24103. "path": {
  24104. "type": "string"
  24105. }
  24106. },
  24107. "required": [
  24108. "text",
  24109. "type",
  24110. "path"
  24111. ],
  24112. "additionalProperties": false
  24113. },
  24114. "SessionV1.Range": {
  24115. "type": "object",
  24116. "properties": {
  24117. "start": {
  24118. "type": "object",
  24119. "properties": {
  24120. "line": {
  24121. "type": "integer",
  24122. "allOf": [
  24123. {
  24124. "minimum": 0
  24125. }
  24126. ]
  24127. },
  24128. "character": {
  24129. "type": "integer",
  24130. "allOf": [
  24131. {
  24132. "minimum": 0
  24133. }
  24134. ]
  24135. }
  24136. },
  24137. "required": [
  24138. "line",
  24139. "character"
  24140. ],
  24141. "additionalProperties": false
  24142. },
  24143. "end": {
  24144. "type": "object",
  24145. "properties": {
  24146. "line": {
  24147. "type": "integer",
  24148. "allOf": [
  24149. {
  24150. "minimum": 0
  24151. }
  24152. ]
  24153. },
  24154. "character": {
  24155. "type": "integer",
  24156. "allOf": [
  24157. {
  24158. "minimum": 0
  24159. }
  24160. ]
  24161. }
  24162. },
  24163. "required": [
  24164. "line",
  24165. "character"
  24166. ],
  24167. "additionalProperties": false
  24168. }
  24169. },
  24170. "required": [
  24171. "start",
  24172. "end"
  24173. ],
  24174. "additionalProperties": false
  24175. },
  24176. "SessionV1.SymbolSource": {
  24177. "type": "object",
  24178. "properties": {
  24179. "text": {
  24180. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  24181. },
  24182. "type": {
  24183. "type": "string",
  24184. "enum": [
  24185. "symbol"
  24186. ]
  24187. },
  24188. "path": {
  24189. "type": "string"
  24190. },
  24191. "range": {
  24192. "$ref": "#/components/schemas/SessionV1.Range"
  24193. },
  24194. "name": {
  24195. "type": "string"
  24196. },
  24197. "kind": {
  24198. "type": "integer",
  24199. "allOf": [
  24200. {
  24201. "minimum": 0
  24202. }
  24203. ]
  24204. }
  24205. },
  24206. "required": [
  24207. "text",
  24208. "type",
  24209. "path",
  24210. "range",
  24211. "name",
  24212. "kind"
  24213. ],
  24214. "additionalProperties": false
  24215. },
  24216. "SessionV1.ResourceSource": {
  24217. "type": "object",
  24218. "properties": {
  24219. "text": {
  24220. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  24221. },
  24222. "type": {
  24223. "type": "string",
  24224. "enum": [
  24225. "resource"
  24226. ]
  24227. },
  24228. "clientName": {
  24229. "type": "string"
  24230. },
  24231. "uri": {
  24232. "type": "string"
  24233. }
  24234. },
  24235. "required": [
  24236. "text",
  24237. "type",
  24238. "clientName",
  24239. "uri"
  24240. ],
  24241. "additionalProperties": false
  24242. },
  24243. "SessionV1.FilePartSource": {
  24244. "anyOf": [
  24245. {
  24246. "$ref": "#/components/schemas/SessionV1.FileSource"
  24247. },
  24248. {
  24249. "$ref": "#/components/schemas/SessionV1.SymbolSource"
  24250. },
  24251. {
  24252. "$ref": "#/components/schemas/SessionV1.ResourceSource"
  24253. }
  24254. ]
  24255. },
  24256. "SessionV1.FilePart": {
  24257. "type": "object",
  24258. "properties": {
  24259. "id": {
  24260. "type": "string",
  24261. "allOf": [
  24262. {
  24263. "pattern": "^prt"
  24264. }
  24265. ]
  24266. },
  24267. "sessionID": {
  24268. "type": "string",
  24269. "allOf": [
  24270. {
  24271. "pattern": "^ses"
  24272. }
  24273. ]
  24274. },
  24275. "messageID": {
  24276. "type": "string",
  24277. "allOf": [
  24278. {
  24279. "pattern": "^msg"
  24280. }
  24281. ]
  24282. },
  24283. "type": {
  24284. "type": "string",
  24285. "enum": [
  24286. "file"
  24287. ]
  24288. },
  24289. "mime": {
  24290. "type": "string"
  24291. },
  24292. "filename": {
  24293. "anyOf": [
  24294. {
  24295. "type": "string"
  24296. },
  24297. {
  24298. "type": "null"
  24299. }
  24300. ]
  24301. },
  24302. "url": {
  24303. "type": "string"
  24304. },
  24305. "source": {
  24306. "anyOf": [
  24307. {
  24308. "$ref": "#/components/schemas/SessionV1.FilePartSource"
  24309. },
  24310. {
  24311. "type": "null"
  24312. }
  24313. ]
  24314. }
  24315. },
  24316. "required": [
  24317. "id",
  24318. "sessionID",
  24319. "messageID",
  24320. "type",
  24321. "mime",
  24322. "url"
  24323. ],
  24324. "additionalProperties": false
  24325. },
  24326. "SessionV1.ToolStatePending": {
  24327. "type": "object",
  24328. "properties": {
  24329. "status": {
  24330. "type": "string",
  24331. "enum": [
  24332. "pending"
  24333. ]
  24334. },
  24335. "input": {
  24336. "type": "object"
  24337. },
  24338. "raw": {
  24339. "type": "string"
  24340. }
  24341. },
  24342. "required": [
  24343. "status",
  24344. "input",
  24345. "raw"
  24346. ],
  24347. "additionalProperties": false
  24348. },
  24349. "SessionV1.ToolStateRunning": {
  24350. "type": "object",
  24351. "properties": {
  24352. "status": {
  24353. "type": "string",
  24354. "enum": [
  24355. "running"
  24356. ]
  24357. },
  24358. "input": {
  24359. "type": "object"
  24360. },
  24361. "title": {
  24362. "anyOf": [
  24363. {
  24364. "type": "string"
  24365. },
  24366. {
  24367. "type": "null"
  24368. }
  24369. ]
  24370. },
  24371. "metadata": {
  24372. "anyOf": [
  24373. {
  24374. "type": "object"
  24375. },
  24376. {
  24377. "type": "null"
  24378. }
  24379. ]
  24380. },
  24381. "time": {
  24382. "type": "object",
  24383. "properties": {
  24384. "start": {
  24385. "type": "integer",
  24386. "allOf": [
  24387. {
  24388. "minimum": 0
  24389. }
  24390. ]
  24391. }
  24392. },
  24393. "required": [
  24394. "start"
  24395. ],
  24396. "additionalProperties": false
  24397. }
  24398. },
  24399. "required": [
  24400. "status",
  24401. "input",
  24402. "time"
  24403. ],
  24404. "additionalProperties": false
  24405. },
  24406. "SessionV1.ToolStateCompleted": {
  24407. "type": "object",
  24408. "properties": {
  24409. "status": {
  24410. "type": "string",
  24411. "enum": [
  24412. "completed"
  24413. ]
  24414. },
  24415. "input": {
  24416. "type": "object"
  24417. },
  24418. "output": {
  24419. "type": "string"
  24420. },
  24421. "title": {
  24422. "type": "string"
  24423. },
  24424. "metadata": {
  24425. "type": "object"
  24426. },
  24427. "time": {
  24428. "type": "object",
  24429. "properties": {
  24430. "start": {
  24431. "type": "integer",
  24432. "allOf": [
  24433. {
  24434. "minimum": 0
  24435. }
  24436. ]
  24437. },
  24438. "end": {
  24439. "type": "integer",
  24440. "allOf": [
  24441. {
  24442. "minimum": 0
  24443. }
  24444. ]
  24445. },
  24446. "compacted": {
  24447. "anyOf": [
  24448. {
  24449. "type": "integer",
  24450. "allOf": [
  24451. {
  24452. "minimum": 0
  24453. }
  24454. ]
  24455. },
  24456. {
  24457. "type": "null"
  24458. }
  24459. ]
  24460. }
  24461. },
  24462. "required": [
  24463. "start",
  24464. "end"
  24465. ],
  24466. "additionalProperties": false
  24467. },
  24468. "attachments": {
  24469. "anyOf": [
  24470. {
  24471. "type": "array",
  24472. "items": {
  24473. "$ref": "#/components/schemas/SessionV1.FilePart"
  24474. }
  24475. },
  24476. {
  24477. "type": "null"
  24478. }
  24479. ]
  24480. }
  24481. },
  24482. "required": [
  24483. "status",
  24484. "input",
  24485. "output",
  24486. "title",
  24487. "metadata",
  24488. "time"
  24489. ],
  24490. "additionalProperties": false
  24491. },
  24492. "SessionV1.ToolStateError": {
  24493. "type": "object",
  24494. "properties": {
  24495. "status": {
  24496. "type": "string",
  24497. "enum": [
  24498. "error"
  24499. ]
  24500. },
  24501. "input": {
  24502. "type": "object"
  24503. },
  24504. "error": {
  24505. "type": "string"
  24506. },
  24507. "metadata": {
  24508. "anyOf": [
  24509. {
  24510. "type": "object"
  24511. },
  24512. {
  24513. "type": "null"
  24514. }
  24515. ]
  24516. },
  24517. "time": {
  24518. "type": "object",
  24519. "properties": {
  24520. "start": {
  24521. "type": "integer",
  24522. "allOf": [
  24523. {
  24524. "minimum": 0
  24525. }
  24526. ]
  24527. },
  24528. "end": {
  24529. "type": "integer",
  24530. "allOf": [
  24531. {
  24532. "minimum": 0
  24533. }
  24534. ]
  24535. }
  24536. },
  24537. "required": [
  24538. "start",
  24539. "end"
  24540. ],
  24541. "additionalProperties": false
  24542. }
  24543. },
  24544. "required": [
  24545. "status",
  24546. "input",
  24547. "error",
  24548. "time"
  24549. ],
  24550. "additionalProperties": false
  24551. },
  24552. "SessionV1.ToolState": {
  24553. "anyOf": [
  24554. {
  24555. "$ref": "#/components/schemas/SessionV1.ToolStatePending"
  24556. },
  24557. {
  24558. "$ref": "#/components/schemas/SessionV1.ToolStateRunning"
  24559. },
  24560. {
  24561. "$ref": "#/components/schemas/SessionV1.ToolStateCompleted"
  24562. },
  24563. {
  24564. "$ref": "#/components/schemas/SessionV1.ToolStateError"
  24565. }
  24566. ]
  24567. },
  24568. "SessionV1.ToolPart": {
  24569. "type": "object",
  24570. "properties": {
  24571. "id": {
  24572. "type": "string",
  24573. "allOf": [
  24574. {
  24575. "pattern": "^prt"
  24576. }
  24577. ]
  24578. },
  24579. "sessionID": {
  24580. "type": "string",
  24581. "allOf": [
  24582. {
  24583. "pattern": "^ses"
  24584. }
  24585. ]
  24586. },
  24587. "messageID": {
  24588. "type": "string",
  24589. "allOf": [
  24590. {
  24591. "pattern": "^msg"
  24592. }
  24593. ]
  24594. },
  24595. "type": {
  24596. "type": "string",
  24597. "enum": [
  24598. "tool"
  24599. ]
  24600. },
  24601. "callID": {
  24602. "type": "string"
  24603. },
  24604. "tool": {
  24605. "type": "string"
  24606. },
  24607. "state": {
  24608. "$ref": "#/components/schemas/SessionV1.ToolState"
  24609. },
  24610. "metadata": {
  24611. "anyOf": [
  24612. {
  24613. "type": "object"
  24614. },
  24615. {
  24616. "type": "null"
  24617. }
  24618. ]
  24619. }
  24620. },
  24621. "required": [
  24622. "id",
  24623. "sessionID",
  24624. "messageID",
  24625. "type",
  24626. "callID",
  24627. "tool",
  24628. "state"
  24629. ],
  24630. "additionalProperties": false
  24631. },
  24632. "SessionV1.StepStartPart": {
  24633. "type": "object",
  24634. "properties": {
  24635. "id": {
  24636. "type": "string",
  24637. "allOf": [
  24638. {
  24639. "pattern": "^prt"
  24640. }
  24641. ]
  24642. },
  24643. "sessionID": {
  24644. "type": "string",
  24645. "allOf": [
  24646. {
  24647. "pattern": "^ses"
  24648. }
  24649. ]
  24650. },
  24651. "messageID": {
  24652. "type": "string",
  24653. "allOf": [
  24654. {
  24655. "pattern": "^msg"
  24656. }
  24657. ]
  24658. },
  24659. "type": {
  24660. "type": "string",
  24661. "enum": [
  24662. "step-start"
  24663. ]
  24664. },
  24665. "snapshot": {
  24666. "anyOf": [
  24667. {
  24668. "type": "string"
  24669. },
  24670. {
  24671. "type": "null"
  24672. }
  24673. ]
  24674. }
  24675. },
  24676. "required": [
  24677. "id",
  24678. "sessionID",
  24679. "messageID",
  24680. "type"
  24681. ],
  24682. "additionalProperties": false
  24683. },
  24684. "SessionV1.StepFinishPart": {
  24685. "type": "object",
  24686. "properties": {
  24687. "id": {
  24688. "type": "string",
  24689. "allOf": [
  24690. {
  24691. "pattern": "^prt"
  24692. }
  24693. ]
  24694. },
  24695. "sessionID": {
  24696. "type": "string",
  24697. "allOf": [
  24698. {
  24699. "pattern": "^ses"
  24700. }
  24701. ]
  24702. },
  24703. "messageID": {
  24704. "type": "string",
  24705. "allOf": [
  24706. {
  24707. "pattern": "^msg"
  24708. }
  24709. ]
  24710. },
  24711. "type": {
  24712. "type": "string",
  24713. "enum": [
  24714. "step-finish"
  24715. ]
  24716. },
  24717. "reason": {
  24718. "type": "string"
  24719. },
  24720. "snapshot": {
  24721. "anyOf": [
  24722. {
  24723. "type": "string"
  24724. },
  24725. {
  24726. "type": "null"
  24727. }
  24728. ]
  24729. },
  24730. "cost": {
  24731. "type": "number"
  24732. },
  24733. "tokens": {
  24734. "type": "object",
  24735. "properties": {
  24736. "total": {
  24737. "anyOf": [
  24738. {
  24739. "type": "number"
  24740. },
  24741. {
  24742. "type": "null"
  24743. }
  24744. ]
  24745. },
  24746. "input": {
  24747. "type": "number"
  24748. },
  24749. "output": {
  24750. "type": "number"
  24751. },
  24752. "reasoning": {
  24753. "type": "number"
  24754. },
  24755. "cache": {
  24756. "type": "object",
  24757. "properties": {
  24758. "read": {
  24759. "type": "number"
  24760. },
  24761. "write": {
  24762. "type": "number"
  24763. }
  24764. },
  24765. "required": [
  24766. "read",
  24767. "write"
  24768. ],
  24769. "additionalProperties": false
  24770. }
  24771. },
  24772. "required": [
  24773. "input",
  24774. "output",
  24775. "reasoning",
  24776. "cache"
  24777. ],
  24778. "additionalProperties": false
  24779. }
  24780. },
  24781. "required": [
  24782. "id",
  24783. "sessionID",
  24784. "messageID",
  24785. "type",
  24786. "reason",
  24787. "cost",
  24788. "tokens"
  24789. ],
  24790. "additionalProperties": false
  24791. },
  24792. "SessionV1.SnapshotPart": {
  24793. "type": "object",
  24794. "properties": {
  24795. "id": {
  24796. "type": "string",
  24797. "allOf": [
  24798. {
  24799. "pattern": "^prt"
  24800. }
  24801. ]
  24802. },
  24803. "sessionID": {
  24804. "type": "string",
  24805. "allOf": [
  24806. {
  24807. "pattern": "^ses"
  24808. }
  24809. ]
  24810. },
  24811. "messageID": {
  24812. "type": "string",
  24813. "allOf": [
  24814. {
  24815. "pattern": "^msg"
  24816. }
  24817. ]
  24818. },
  24819. "type": {
  24820. "type": "string",
  24821. "enum": [
  24822. "snapshot"
  24823. ]
  24824. },
  24825. "snapshot": {
  24826. "type": "string"
  24827. }
  24828. },
  24829. "required": [
  24830. "id",
  24831. "sessionID",
  24832. "messageID",
  24833. "type",
  24834. "snapshot"
  24835. ],
  24836. "additionalProperties": false
  24837. },
  24838. "SessionV1.PatchPart": {
  24839. "type": "object",
  24840. "properties": {
  24841. "id": {
  24842. "type": "string",
  24843. "allOf": [
  24844. {
  24845. "pattern": "^prt"
  24846. }
  24847. ]
  24848. },
  24849. "sessionID": {
  24850. "type": "string",
  24851. "allOf": [
  24852. {
  24853. "pattern": "^ses"
  24854. }
  24855. ]
  24856. },
  24857. "messageID": {
  24858. "type": "string",
  24859. "allOf": [
  24860. {
  24861. "pattern": "^msg"
  24862. }
  24863. ]
  24864. },
  24865. "type": {
  24866. "type": "string",
  24867. "enum": [
  24868. "patch"
  24869. ]
  24870. },
  24871. "hash": {
  24872. "type": "string"
  24873. },
  24874. "files": {
  24875. "type": "array",
  24876. "items": {
  24877. "type": "string"
  24878. }
  24879. }
  24880. },
  24881. "required": [
  24882. "id",
  24883. "sessionID",
  24884. "messageID",
  24885. "type",
  24886. "hash",
  24887. "files"
  24888. ],
  24889. "additionalProperties": false
  24890. },
  24891. "SessionV1.AgentPart": {
  24892. "type": "object",
  24893. "properties": {
  24894. "id": {
  24895. "type": "string",
  24896. "allOf": [
  24897. {
  24898. "pattern": "^prt"
  24899. }
  24900. ]
  24901. },
  24902. "sessionID": {
  24903. "type": "string",
  24904. "allOf": [
  24905. {
  24906. "pattern": "^ses"
  24907. }
  24908. ]
  24909. },
  24910. "messageID": {
  24911. "type": "string",
  24912. "allOf": [
  24913. {
  24914. "pattern": "^msg"
  24915. }
  24916. ]
  24917. },
  24918. "type": {
  24919. "type": "string",
  24920. "enum": [
  24921. "agent"
  24922. ]
  24923. },
  24924. "name": {
  24925. "type": "string"
  24926. },
  24927. "source": {
  24928. "anyOf": [
  24929. {
  24930. "type": "object",
  24931. "properties": {
  24932. "value": {
  24933. "type": "string"
  24934. },
  24935. "start": {
  24936. "type": "integer",
  24937. "allOf": [
  24938. {
  24939. "minimum": 0
  24940. }
  24941. ]
  24942. },
  24943. "end": {
  24944. "type": "integer",
  24945. "allOf": [
  24946. {
  24947. "minimum": 0
  24948. }
  24949. ]
  24950. }
  24951. },
  24952. "required": [
  24953. "value",
  24954. "start",
  24955. "end"
  24956. ],
  24957. "additionalProperties": false
  24958. },
  24959. {
  24960. "type": "null"
  24961. }
  24962. ]
  24963. }
  24964. },
  24965. "required": [
  24966. "id",
  24967. "sessionID",
  24968. "messageID",
  24969. "type",
  24970. "name"
  24971. ],
  24972. "additionalProperties": false
  24973. },
  24974. "SessionV1.RetryPart": {
  24975. "type": "object",
  24976. "properties": {
  24977. "id": {
  24978. "type": "string",
  24979. "allOf": [
  24980. {
  24981. "pattern": "^prt"
  24982. }
  24983. ]
  24984. },
  24985. "sessionID": {
  24986. "type": "string",
  24987. "allOf": [
  24988. {
  24989. "pattern": "^ses"
  24990. }
  24991. ]
  24992. },
  24993. "messageID": {
  24994. "type": "string",
  24995. "allOf": [
  24996. {
  24997. "pattern": "^msg"
  24998. }
  24999. ]
  25000. },
  25001. "type": {
  25002. "type": "string",
  25003. "enum": [
  25004. "retry"
  25005. ]
  25006. },
  25007. "attempt": {
  25008. "type": "integer",
  25009. "allOf": [
  25010. {
  25011. "minimum": 0
  25012. }
  25013. ]
  25014. },
  25015. "error": {
  25016. "$ref": "#/components/schemas/APIError"
  25017. },
  25018. "time": {
  25019. "type": "object",
  25020. "properties": {
  25021. "created": {
  25022. "type": "integer",
  25023. "allOf": [
  25024. {
  25025. "minimum": 0
  25026. }
  25027. ]
  25028. }
  25029. },
  25030. "required": [
  25031. "created"
  25032. ],
  25033. "additionalProperties": false
  25034. }
  25035. },
  25036. "required": [
  25037. "id",
  25038. "sessionID",
  25039. "messageID",
  25040. "type",
  25041. "attempt",
  25042. "error",
  25043. "time"
  25044. ],
  25045. "additionalProperties": false
  25046. },
  25047. "SessionV1.CompactionPart": {
  25048. "type": "object",
  25049. "properties": {
  25050. "id": {
  25051. "type": "string",
  25052. "allOf": [
  25053. {
  25054. "pattern": "^prt"
  25055. }
  25056. ]
  25057. },
  25058. "sessionID": {
  25059. "type": "string",
  25060. "allOf": [
  25061. {
  25062. "pattern": "^ses"
  25063. }
  25064. ]
  25065. },
  25066. "messageID": {
  25067. "type": "string",
  25068. "allOf": [
  25069. {
  25070. "pattern": "^msg"
  25071. }
  25072. ]
  25073. },
  25074. "type": {
  25075. "type": "string",
  25076. "enum": [
  25077. "compaction"
  25078. ]
  25079. },
  25080. "auto": {
  25081. "type": "boolean"
  25082. },
  25083. "overflow": {
  25084. "anyOf": [
  25085. {
  25086. "type": "boolean"
  25087. },
  25088. {
  25089. "type": "null"
  25090. }
  25091. ]
  25092. },
  25093. "tail_start_id": {
  25094. "anyOf": [
  25095. {
  25096. "type": "string",
  25097. "allOf": [
  25098. {
  25099. "pattern": "^msg"
  25100. }
  25101. ]
  25102. },
  25103. {
  25104. "type": "null"
  25105. }
  25106. ]
  25107. }
  25108. },
  25109. "required": [
  25110. "id",
  25111. "sessionID",
  25112. "messageID",
  25113. "type",
  25114. "auto"
  25115. ],
  25116. "additionalProperties": false
  25117. },
  25118. "SessionV1.Part": {
  25119. "anyOf": [
  25120. {
  25121. "$ref": "#/components/schemas/SessionV1.TextPart"
  25122. },
  25123. {
  25124. "$ref": "#/components/schemas/SessionV1.SubtaskPart"
  25125. },
  25126. {
  25127. "$ref": "#/components/schemas/SessionV1.ReasoningPart"
  25128. },
  25129. {
  25130. "$ref": "#/components/schemas/SessionV1.FilePart"
  25131. },
  25132. {
  25133. "$ref": "#/components/schemas/SessionV1.ToolPart"
  25134. },
  25135. {
  25136. "$ref": "#/components/schemas/SessionV1.StepStartPart"
  25137. },
  25138. {
  25139. "$ref": "#/components/schemas/SessionV1.StepFinishPart"
  25140. },
  25141. {
  25142. "$ref": "#/components/schemas/SessionV1.SnapshotPart"
  25143. },
  25144. {
  25145. "$ref": "#/components/schemas/SessionV1.PatchPart"
  25146. },
  25147. {
  25148. "$ref": "#/components/schemas/SessionV1.AgentPart"
  25149. },
  25150. {
  25151. "$ref": "#/components/schemas/SessionV1.RetryPart"
  25152. },
  25153. {
  25154. "$ref": "#/components/schemas/SessionV1.CompactionPart"
  25155. }
  25156. ]
  25157. },
  25158. "message.part.updated": {
  25159. "type": "object",
  25160. "properties": {
  25161. "id": {
  25162. "type": "string",
  25163. "allOf": [
  25164. {
  25165. "pattern": "^evt_"
  25166. }
  25167. ]
  25168. },
  25169. "created": {
  25170. "type": "number"
  25171. },
  25172. "metadata": {
  25173. "type": "object"
  25174. },
  25175. "type": {
  25176. "type": "string",
  25177. "enum": [
  25178. "message.part.updated"
  25179. ]
  25180. },
  25181. "durable": {
  25182. "type": "object",
  25183. "properties": {
  25184. "aggregateID": {
  25185. "type": "string"
  25186. },
  25187. "seq": {
  25188. "type": "integer",
  25189. "allOf": [
  25190. {
  25191. "minimum": 0
  25192. }
  25193. ]
  25194. },
  25195. "version": {
  25196. "type": "number",
  25197. "enum": [
  25198. 1
  25199. ]
  25200. }
  25201. },
  25202. "required": [
  25203. "aggregateID",
  25204. "seq",
  25205. "version"
  25206. ],
  25207. "additionalProperties": false
  25208. },
  25209. "location": {
  25210. "$ref": "#/components/schemas/Location.Ref"
  25211. },
  25212. "data": {
  25213. "type": "object",
  25214. "properties": {
  25215. "sessionID": {
  25216. "type": "string",
  25217. "allOf": [
  25218. {
  25219. "pattern": "^ses"
  25220. }
  25221. ]
  25222. },
  25223. "part": {
  25224. "$ref": "#/components/schemas/SessionV1.Part"
  25225. },
  25226. "time": {
  25227. "type": "number"
  25228. }
  25229. },
  25230. "required": [
  25231. "sessionID",
  25232. "part",
  25233. "time"
  25234. ],
  25235. "additionalProperties": false
  25236. }
  25237. },
  25238. "required": [
  25239. "id",
  25240. "created",
  25241. "type",
  25242. "durable",
  25243. "data"
  25244. ],
  25245. "additionalProperties": false
  25246. },
  25247. "message.part.removed": {
  25248. "type": "object",
  25249. "properties": {
  25250. "id": {
  25251. "type": "string",
  25252. "allOf": [
  25253. {
  25254. "pattern": "^evt_"
  25255. }
  25256. ]
  25257. },
  25258. "created": {
  25259. "type": "number"
  25260. },
  25261. "metadata": {
  25262. "type": "object"
  25263. },
  25264. "type": {
  25265. "type": "string",
  25266. "enum": [
  25267. "message.part.removed"
  25268. ]
  25269. },
  25270. "durable": {
  25271. "type": "object",
  25272. "properties": {
  25273. "aggregateID": {
  25274. "type": "string"
  25275. },
  25276. "seq": {
  25277. "type": "integer",
  25278. "allOf": [
  25279. {
  25280. "minimum": 0
  25281. }
  25282. ]
  25283. },
  25284. "version": {
  25285. "type": "number",
  25286. "enum": [
  25287. 1
  25288. ]
  25289. }
  25290. },
  25291. "required": [
  25292. "aggregateID",
  25293. "seq",
  25294. "version"
  25295. ],
  25296. "additionalProperties": false
  25297. },
  25298. "location": {
  25299. "$ref": "#/components/schemas/Location.Ref"
  25300. },
  25301. "data": {
  25302. "type": "object",
  25303. "properties": {
  25304. "sessionID": {
  25305. "type": "string",
  25306. "allOf": [
  25307. {
  25308. "pattern": "^ses"
  25309. }
  25310. ]
  25311. },
  25312. "messageID": {
  25313. "type": "string",
  25314. "allOf": [
  25315. {
  25316. "pattern": "^msg"
  25317. }
  25318. ]
  25319. },
  25320. "partID": {
  25321. "type": "string",
  25322. "allOf": [
  25323. {
  25324. "pattern": "^prt"
  25325. }
  25326. ]
  25327. }
  25328. },
  25329. "required": [
  25330. "sessionID",
  25331. "messageID",
  25332. "partID"
  25333. ],
  25334. "additionalProperties": false
  25335. }
  25336. },
  25337. "required": [
  25338. "id",
  25339. "created",
  25340. "type",
  25341. "durable",
  25342. "data"
  25343. ],
  25344. "additionalProperties": false
  25345. },
  25346. "session.usage.updated": {
  25347. "type": "object",
  25348. "properties": {
  25349. "id": {
  25350. "type": "string",
  25351. "allOf": [
  25352. {
  25353. "pattern": "^evt_"
  25354. }
  25355. ]
  25356. },
  25357. "created": {
  25358. "type": "number"
  25359. },
  25360. "metadata": {
  25361. "type": "object"
  25362. },
  25363. "type": {
  25364. "type": "string",
  25365. "enum": [
  25366. "session.usage.updated"
  25367. ]
  25368. },
  25369. "location": {
  25370. "$ref": "#/components/schemas/Location.Ref"
  25371. },
  25372. "data": {
  25373. "type": "object",
  25374. "properties": {
  25375. "sessionID": {
  25376. "type": "string",
  25377. "allOf": [
  25378. {
  25379. "pattern": "^ses"
  25380. }
  25381. ]
  25382. },
  25383. "cost": {
  25384. "$ref": "#/components/schemas/Money.USD"
  25385. },
  25386. "tokens": {
  25387. "$ref": "#/components/schemas/TokenUsage.Info"
  25388. }
  25389. },
  25390. "required": [
  25391. "sessionID",
  25392. "cost",
  25393. "tokens"
  25394. ],
  25395. "additionalProperties": false
  25396. }
  25397. },
  25398. "required": [
  25399. "id",
  25400. "created",
  25401. "type",
  25402. "data"
  25403. ],
  25404. "additionalProperties": false
  25405. },
  25406. "session.text.delta": {
  25407. "type": "object",
  25408. "properties": {
  25409. "id": {
  25410. "type": "string",
  25411. "allOf": [
  25412. {
  25413. "pattern": "^evt_"
  25414. }
  25415. ]
  25416. },
  25417. "created": {
  25418. "type": "number"
  25419. },
  25420. "metadata": {
  25421. "type": "object"
  25422. },
  25423. "type": {
  25424. "type": "string",
  25425. "enum": [
  25426. "session.text.delta"
  25427. ]
  25428. },
  25429. "location": {
  25430. "$ref": "#/components/schemas/Location.Ref"
  25431. },
  25432. "data": {
  25433. "type": "object",
  25434. "properties": {
  25435. "sessionID": {
  25436. "type": "string",
  25437. "allOf": [
  25438. {
  25439. "pattern": "^ses"
  25440. }
  25441. ]
  25442. },
  25443. "assistantMessageID": {
  25444. "type": "string",
  25445. "allOf": [
  25446. {
  25447. "pattern": "^msg_"
  25448. }
  25449. ]
  25450. },
  25451. "ordinal": {
  25452. "type": "integer",
  25453. "allOf": [
  25454. {
  25455. "minimum": 0
  25456. }
  25457. ]
  25458. },
  25459. "delta": {
  25460. "type": "string"
  25461. }
  25462. },
  25463. "required": [
  25464. "sessionID",
  25465. "assistantMessageID",
  25466. "ordinal",
  25467. "delta"
  25468. ],
  25469. "additionalProperties": false
  25470. }
  25471. },
  25472. "required": [
  25473. "id",
  25474. "created",
  25475. "type",
  25476. "data"
  25477. ],
  25478. "additionalProperties": false
  25479. },
  25480. "session.reasoning.delta": {
  25481. "type": "object",
  25482. "properties": {
  25483. "id": {
  25484. "type": "string",
  25485. "allOf": [
  25486. {
  25487. "pattern": "^evt_"
  25488. }
  25489. ]
  25490. },
  25491. "created": {
  25492. "type": "number"
  25493. },
  25494. "metadata": {
  25495. "type": "object"
  25496. },
  25497. "type": {
  25498. "type": "string",
  25499. "enum": [
  25500. "session.reasoning.delta"
  25501. ]
  25502. },
  25503. "location": {
  25504. "$ref": "#/components/schemas/Location.Ref"
  25505. },
  25506. "data": {
  25507. "type": "object",
  25508. "properties": {
  25509. "sessionID": {
  25510. "type": "string",
  25511. "allOf": [
  25512. {
  25513. "pattern": "^ses"
  25514. }
  25515. ]
  25516. },
  25517. "assistantMessageID": {
  25518. "type": "string",
  25519. "allOf": [
  25520. {
  25521. "pattern": "^msg_"
  25522. }
  25523. ]
  25524. },
  25525. "ordinal": {
  25526. "type": "integer",
  25527. "allOf": [
  25528. {
  25529. "minimum": 0
  25530. }
  25531. ]
  25532. },
  25533. "delta": {
  25534. "type": "string"
  25535. }
  25536. },
  25537. "required": [
  25538. "sessionID",
  25539. "assistantMessageID",
  25540. "ordinal",
  25541. "delta"
  25542. ],
  25543. "additionalProperties": false
  25544. }
  25545. },
  25546. "required": [
  25547. "id",
  25548. "created",
  25549. "type",
  25550. "data"
  25551. ],
  25552. "additionalProperties": false
  25553. },
  25554. "session.tool.input.delta": {
  25555. "type": "object",
  25556. "properties": {
  25557. "id": {
  25558. "type": "string",
  25559. "allOf": [
  25560. {
  25561. "pattern": "^evt_"
  25562. }
  25563. ]
  25564. },
  25565. "created": {
  25566. "type": "number"
  25567. },
  25568. "metadata": {
  25569. "type": "object"
  25570. },
  25571. "type": {
  25572. "type": "string",
  25573. "enum": [
  25574. "session.tool.input.delta"
  25575. ]
  25576. },
  25577. "location": {
  25578. "$ref": "#/components/schemas/Location.Ref"
  25579. },
  25580. "data": {
  25581. "type": "object",
  25582. "properties": {
  25583. "sessionID": {
  25584. "type": "string",
  25585. "allOf": [
  25586. {
  25587. "pattern": "^ses"
  25588. }
  25589. ]
  25590. },
  25591. "assistantMessageID": {
  25592. "type": "string",
  25593. "allOf": [
  25594. {
  25595. "pattern": "^msg_"
  25596. }
  25597. ]
  25598. },
  25599. "callID": {
  25600. "type": "string"
  25601. },
  25602. "delta": {
  25603. "type": "string"
  25604. }
  25605. },
  25606. "required": [
  25607. "sessionID",
  25608. "assistantMessageID",
  25609. "callID",
  25610. "delta"
  25611. ],
  25612. "additionalProperties": false
  25613. }
  25614. },
  25615. "required": [
  25616. "id",
  25617. "created",
  25618. "type",
  25619. "data"
  25620. ],
  25621. "additionalProperties": false
  25622. },
  25623. "session.tool.progress": {
  25624. "type": "object",
  25625. "properties": {
  25626. "id": {
  25627. "type": "string",
  25628. "allOf": [
  25629. {
  25630. "pattern": "^evt_"
  25631. }
  25632. ]
  25633. },
  25634. "created": {
  25635. "type": "number"
  25636. },
  25637. "metadata": {
  25638. "type": "object"
  25639. },
  25640. "type": {
  25641. "type": "string",
  25642. "enum": [
  25643. "session.tool.progress"
  25644. ]
  25645. },
  25646. "location": {
  25647. "$ref": "#/components/schemas/Location.Ref"
  25648. },
  25649. "data": {
  25650. "type": "object",
  25651. "properties": {
  25652. "sessionID": {
  25653. "type": "string",
  25654. "allOf": [
  25655. {
  25656. "pattern": "^ses"
  25657. }
  25658. ]
  25659. },
  25660. "assistantMessageID": {
  25661. "type": "string",
  25662. "allOf": [
  25663. {
  25664. "pattern": "^msg_"
  25665. }
  25666. ]
  25667. },
  25668. "callID": {
  25669. "type": "string"
  25670. },
  25671. "metadata": {
  25672. "type": "object"
  25673. }
  25674. },
  25675. "required": [
  25676. "sessionID",
  25677. "assistantMessageID",
  25678. "callID",
  25679. "metadata"
  25680. ],
  25681. "additionalProperties": false
  25682. }
  25683. },
  25684. "required": [
  25685. "id",
  25686. "created",
  25687. "type",
  25688. "data"
  25689. ],
  25690. "additionalProperties": false
  25691. },
  25692. "session.compaction.delta": {
  25693. "type": "object",
  25694. "properties": {
  25695. "id": {
  25696. "type": "string",
  25697. "allOf": [
  25698. {
  25699. "pattern": "^evt_"
  25700. }
  25701. ]
  25702. },
  25703. "created": {
  25704. "type": "number"
  25705. },
  25706. "metadata": {
  25707. "type": "object"
  25708. },
  25709. "type": {
  25710. "type": "string",
  25711. "enum": [
  25712. "session.compaction.delta"
  25713. ]
  25714. },
  25715. "location": {
  25716. "$ref": "#/components/schemas/Location.Ref"
  25717. },
  25718. "data": {
  25719. "type": "object",
  25720. "properties": {
  25721. "sessionID": {
  25722. "type": "string",
  25723. "allOf": [
  25724. {
  25725. "pattern": "^ses"
  25726. }
  25727. ]
  25728. },
  25729. "text": {
  25730. "type": "string"
  25731. }
  25732. },
  25733. "required": [
  25734. "sessionID",
  25735. "text"
  25736. ],
  25737. "additionalProperties": false
  25738. }
  25739. },
  25740. "required": [
  25741. "id",
  25742. "created",
  25743. "type",
  25744. "data"
  25745. ],
  25746. "additionalProperties": false
  25747. },
  25748. "filesystem.changed": {
  25749. "type": "object",
  25750. "properties": {
  25751. "id": {
  25752. "type": "string",
  25753. "allOf": [
  25754. {
  25755. "pattern": "^evt_"
  25756. }
  25757. ]
  25758. },
  25759. "created": {
  25760. "type": "number"
  25761. },
  25762. "metadata": {
  25763. "type": "object"
  25764. },
  25765. "type": {
  25766. "type": "string",
  25767. "enum": [
  25768. "filesystem.changed"
  25769. ]
  25770. },
  25771. "location": {
  25772. "$ref": "#/components/schemas/Location.Ref"
  25773. },
  25774. "data": {
  25775. "type": "object",
  25776. "properties": {
  25777. "file": {
  25778. "type": "string"
  25779. },
  25780. "event": {
  25781. "type": "string",
  25782. "enum": [
  25783. "add",
  25784. "change",
  25785. "unlink"
  25786. ]
  25787. }
  25788. },
  25789. "required": [
  25790. "file",
  25791. "event"
  25792. ],
  25793. "additionalProperties": false
  25794. }
  25795. },
  25796. "required": [
  25797. "id",
  25798. "created",
  25799. "type",
  25800. "data"
  25801. ],
  25802. "additionalProperties": false
  25803. },
  25804. "reference.updated": {
  25805. "type": "object",
  25806. "properties": {
  25807. "id": {
  25808. "type": "string",
  25809. "allOf": [
  25810. {
  25811. "pattern": "^evt_"
  25812. }
  25813. ]
  25814. },
  25815. "created": {
  25816. "type": "number"
  25817. },
  25818. "metadata": {
  25819. "type": "object"
  25820. },
  25821. "type": {
  25822. "type": "string",
  25823. "enum": [
  25824. "reference.updated"
  25825. ]
  25826. },
  25827. "location": {
  25828. "$ref": "#/components/schemas/Location.Ref"
  25829. },
  25830. "data": {
  25831. "anyOf": [
  25832. {
  25833. "type": "object"
  25834. },
  25835. {
  25836. "type": "array"
  25837. }
  25838. ]
  25839. }
  25840. },
  25841. "required": [
  25842. "id",
  25843. "created",
  25844. "type",
  25845. "data"
  25846. ],
  25847. "additionalProperties": false
  25848. },
  25849. "permission.asked": {
  25850. "type": "object",
  25851. "properties": {
  25852. "id": {
  25853. "type": "string",
  25854. "allOf": [
  25855. {
  25856. "pattern": "^evt_"
  25857. }
  25858. ]
  25859. },
  25860. "created": {
  25861. "type": "number"
  25862. },
  25863. "metadata": {
  25864. "type": "object"
  25865. },
  25866. "type": {
  25867. "type": "string",
  25868. "enum": [
  25869. "permission.asked"
  25870. ]
  25871. },
  25872. "location": {
  25873. "$ref": "#/components/schemas/Location.Ref"
  25874. },
  25875. "data": {
  25876. "type": "object",
  25877. "properties": {
  25878. "id": {
  25879. "type": "string",
  25880. "allOf": [
  25881. {
  25882. "pattern": "^per"
  25883. }
  25884. ]
  25885. },
  25886. "sessionID": {
  25887. "type": "string",
  25888. "allOf": [
  25889. {
  25890. "pattern": "^ses"
  25891. }
  25892. ]
  25893. },
  25894. "action": {
  25895. "type": "string"
  25896. },
  25897. "resources": {
  25898. "type": "array",
  25899. "items": {
  25900. "type": "string"
  25901. }
  25902. },
  25903. "save": {
  25904. "type": "array",
  25905. "items": {
  25906. "type": "string"
  25907. }
  25908. },
  25909. "metadata": {
  25910. "type": "object"
  25911. },
  25912. "source": {
  25913. "$ref": "#/components/schemas/Permission.Source"
  25914. }
  25915. },
  25916. "required": [
  25917. "id",
  25918. "sessionID",
  25919. "action",
  25920. "resources"
  25921. ],
  25922. "additionalProperties": false
  25923. }
  25924. },
  25925. "required": [
  25926. "id",
  25927. "created",
  25928. "type",
  25929. "data"
  25930. ],
  25931. "additionalProperties": false
  25932. },
  25933. "permission.replied": {
  25934. "type": "object",
  25935. "properties": {
  25936. "id": {
  25937. "type": "string",
  25938. "allOf": [
  25939. {
  25940. "pattern": "^evt_"
  25941. }
  25942. ]
  25943. },
  25944. "created": {
  25945. "type": "number"
  25946. },
  25947. "metadata": {
  25948. "type": "object"
  25949. },
  25950. "type": {
  25951. "type": "string",
  25952. "enum": [
  25953. "permission.replied"
  25954. ]
  25955. },
  25956. "location": {
  25957. "$ref": "#/components/schemas/Location.Ref"
  25958. },
  25959. "data": {
  25960. "type": "object",
  25961. "properties": {
  25962. "sessionID": {
  25963. "type": "string",
  25964. "allOf": [
  25965. {
  25966. "pattern": "^ses"
  25967. }
  25968. ]
  25969. },
  25970. "requestID": {
  25971. "type": "string",
  25972. "allOf": [
  25973. {
  25974. "pattern": "^per"
  25975. }
  25976. ]
  25977. },
  25978. "reply": {
  25979. "$ref": "#/components/schemas/Permission.Reply"
  25980. }
  25981. },
  25982. "required": [
  25983. "sessionID",
  25984. "requestID",
  25985. "reply"
  25986. ],
  25987. "additionalProperties": false
  25988. }
  25989. },
  25990. "required": [
  25991. "id",
  25992. "created",
  25993. "type",
  25994. "data"
  25995. ],
  25996. "additionalProperties": false
  25997. },
  25998. "plugin.added": {
  25999. "type": "object",
  26000. "properties": {
  26001. "id": {
  26002. "type": "string",
  26003. "allOf": [
  26004. {
  26005. "pattern": "^evt_"
  26006. }
  26007. ]
  26008. },
  26009. "created": {
  26010. "type": "number"
  26011. },
  26012. "metadata": {
  26013. "type": "object"
  26014. },
  26015. "type": {
  26016. "type": "string",
  26017. "enum": [
  26018. "plugin.added"
  26019. ]
  26020. },
  26021. "location": {
  26022. "$ref": "#/components/schemas/Location.Ref"
  26023. },
  26024. "data": {
  26025. "type": "object",
  26026. "properties": {
  26027. "id": {
  26028. "type": "string"
  26029. }
  26030. },
  26031. "required": [
  26032. "id"
  26033. ],
  26034. "additionalProperties": false
  26035. }
  26036. },
  26037. "required": [
  26038. "id",
  26039. "created",
  26040. "type",
  26041. "data"
  26042. ],
  26043. "additionalProperties": false
  26044. },
  26045. "plugin.updated": {
  26046. "type": "object",
  26047. "properties": {
  26048. "id": {
  26049. "type": "string",
  26050. "allOf": [
  26051. {
  26052. "pattern": "^evt_"
  26053. }
  26054. ]
  26055. },
  26056. "created": {
  26057. "type": "number"
  26058. },
  26059. "metadata": {
  26060. "type": "object"
  26061. },
  26062. "type": {
  26063. "type": "string",
  26064. "enum": [
  26065. "plugin.updated"
  26066. ]
  26067. },
  26068. "location": {
  26069. "$ref": "#/components/schemas/Location.Ref"
  26070. },
  26071. "data": {
  26072. "anyOf": [
  26073. {
  26074. "type": "object"
  26075. },
  26076. {
  26077. "type": "array"
  26078. }
  26079. ]
  26080. }
  26081. },
  26082. "required": [
  26083. "id",
  26084. "created",
  26085. "type",
  26086. "data"
  26087. ],
  26088. "additionalProperties": false
  26089. },
  26090. "project.directories.updated": {
  26091. "type": "object",
  26092. "properties": {
  26093. "id": {
  26094. "type": "string",
  26095. "allOf": [
  26096. {
  26097. "pattern": "^evt_"
  26098. }
  26099. ]
  26100. },
  26101. "created": {
  26102. "type": "number"
  26103. },
  26104. "metadata": {
  26105. "type": "object"
  26106. },
  26107. "type": {
  26108. "type": "string",
  26109. "enum": [
  26110. "project.directories.updated"
  26111. ]
  26112. },
  26113. "location": {
  26114. "$ref": "#/components/schemas/Location.Ref"
  26115. },
  26116. "data": {
  26117. "type": "object",
  26118. "properties": {
  26119. "projectID": {
  26120. "type": "string"
  26121. }
  26122. },
  26123. "required": [
  26124. "projectID"
  26125. ],
  26126. "additionalProperties": false
  26127. }
  26128. },
  26129. "required": [
  26130. "id",
  26131. "created",
  26132. "type",
  26133. "data"
  26134. ],
  26135. "additionalProperties": false
  26136. },
  26137. "command.updated": {
  26138. "type": "object",
  26139. "properties": {
  26140. "id": {
  26141. "type": "string",
  26142. "allOf": [
  26143. {
  26144. "pattern": "^evt_"
  26145. }
  26146. ]
  26147. },
  26148. "created": {
  26149. "type": "number"
  26150. },
  26151. "metadata": {
  26152. "type": "object"
  26153. },
  26154. "type": {
  26155. "type": "string",
  26156. "enum": [
  26157. "command.updated"
  26158. ]
  26159. },
  26160. "location": {
  26161. "$ref": "#/components/schemas/Location.Ref"
  26162. },
  26163. "data": {
  26164. "anyOf": [
  26165. {
  26166. "type": "object"
  26167. },
  26168. {
  26169. "type": "array"
  26170. }
  26171. ]
  26172. }
  26173. },
  26174. "required": [
  26175. "id",
  26176. "created",
  26177. "type",
  26178. "data"
  26179. ],
  26180. "additionalProperties": false
  26181. },
  26182. "config.updated": {
  26183. "type": "object",
  26184. "properties": {
  26185. "id": {
  26186. "type": "string",
  26187. "allOf": [
  26188. {
  26189. "pattern": "^evt_"
  26190. }
  26191. ]
  26192. },
  26193. "created": {
  26194. "type": "number"
  26195. },
  26196. "metadata": {
  26197. "type": "object"
  26198. },
  26199. "type": {
  26200. "type": "string",
  26201. "enum": [
  26202. "config.updated"
  26203. ]
  26204. },
  26205. "location": {
  26206. "$ref": "#/components/schemas/Location.Ref"
  26207. },
  26208. "data": {
  26209. "anyOf": [
  26210. {
  26211. "type": "object"
  26212. },
  26213. {
  26214. "type": "array"
  26215. }
  26216. ]
  26217. }
  26218. },
  26219. "required": [
  26220. "id",
  26221. "created",
  26222. "type",
  26223. "data"
  26224. ],
  26225. "additionalProperties": false
  26226. },
  26227. "skill.updated": {
  26228. "type": "object",
  26229. "properties": {
  26230. "id": {
  26231. "type": "string",
  26232. "allOf": [
  26233. {
  26234. "pattern": "^evt_"
  26235. }
  26236. ]
  26237. },
  26238. "created": {
  26239. "type": "number"
  26240. },
  26241. "metadata": {
  26242. "type": "object"
  26243. },
  26244. "type": {
  26245. "type": "string",
  26246. "enum": [
  26247. "skill.updated"
  26248. ]
  26249. },
  26250. "location": {
  26251. "$ref": "#/components/schemas/Location.Ref"
  26252. },
  26253. "data": {
  26254. "anyOf": [
  26255. {
  26256. "type": "object"
  26257. },
  26258. {
  26259. "type": "array"
  26260. }
  26261. ]
  26262. }
  26263. },
  26264. "required": [
  26265. "id",
  26266. "created",
  26267. "type",
  26268. "data"
  26269. ],
  26270. "additionalProperties": false
  26271. },
  26272. "Pty": {
  26273. "type": "object",
  26274. "properties": {
  26275. "id": {
  26276. "type": "string",
  26277. "allOf": [
  26278. {
  26279. "pattern": "^pty"
  26280. }
  26281. ]
  26282. },
  26283. "title": {
  26284. "type": "string"
  26285. },
  26286. "command": {
  26287. "type": "string"
  26288. },
  26289. "args": {
  26290. "type": "array",
  26291. "items": {
  26292. "type": "string"
  26293. }
  26294. },
  26295. "cwd": {
  26296. "type": "string"
  26297. },
  26298. "status": {
  26299. "type": "string",
  26300. "enum": [
  26301. "running",
  26302. "exited"
  26303. ]
  26304. },
  26305. "pid": {
  26306. "type": "integer",
  26307. "allOf": [
  26308. {
  26309. "minimum": 0
  26310. }
  26311. ]
  26312. },
  26313. "exitCode": {
  26314. "type": "integer",
  26315. "allOf": [
  26316. {
  26317. "minimum": 0
  26318. }
  26319. ]
  26320. }
  26321. },
  26322. "required": [
  26323. "id",
  26324. "title",
  26325. "command",
  26326. "args",
  26327. "cwd",
  26328. "status",
  26329. "pid"
  26330. ],
  26331. "additionalProperties": false
  26332. },
  26333. "pty.created": {
  26334. "type": "object",
  26335. "properties": {
  26336. "id": {
  26337. "type": "string",
  26338. "allOf": [
  26339. {
  26340. "pattern": "^evt_"
  26341. }
  26342. ]
  26343. },
  26344. "created": {
  26345. "type": "number"
  26346. },
  26347. "metadata": {
  26348. "type": "object"
  26349. },
  26350. "type": {
  26351. "type": "string",
  26352. "enum": [
  26353. "pty.created"
  26354. ]
  26355. },
  26356. "location": {
  26357. "$ref": "#/components/schemas/Location.Ref"
  26358. },
  26359. "data": {
  26360. "type": "object",
  26361. "properties": {
  26362. "info": {
  26363. "$ref": "#/components/schemas/Pty"
  26364. }
  26365. },
  26366. "required": [
  26367. "info"
  26368. ],
  26369. "additionalProperties": false
  26370. }
  26371. },
  26372. "required": [
  26373. "id",
  26374. "created",
  26375. "type",
  26376. "data"
  26377. ],
  26378. "additionalProperties": false
  26379. },
  26380. "pty.updated": {
  26381. "type": "object",
  26382. "properties": {
  26383. "id": {
  26384. "type": "string",
  26385. "allOf": [
  26386. {
  26387. "pattern": "^evt_"
  26388. }
  26389. ]
  26390. },
  26391. "created": {
  26392. "type": "number"
  26393. },
  26394. "metadata": {
  26395. "type": "object"
  26396. },
  26397. "type": {
  26398. "type": "string",
  26399. "enum": [
  26400. "pty.updated"
  26401. ]
  26402. },
  26403. "location": {
  26404. "$ref": "#/components/schemas/Location.Ref"
  26405. },
  26406. "data": {
  26407. "type": "object",
  26408. "properties": {
  26409. "info": {
  26410. "$ref": "#/components/schemas/Pty"
  26411. }
  26412. },
  26413. "required": [
  26414. "info"
  26415. ],
  26416. "additionalProperties": false
  26417. }
  26418. },
  26419. "required": [
  26420. "id",
  26421. "created",
  26422. "type",
  26423. "data"
  26424. ],
  26425. "additionalProperties": false
  26426. },
  26427. "pty.exited": {
  26428. "type": "object",
  26429. "properties": {
  26430. "id": {
  26431. "type": "string",
  26432. "allOf": [
  26433. {
  26434. "pattern": "^evt_"
  26435. }
  26436. ]
  26437. },
  26438. "created": {
  26439. "type": "number"
  26440. },
  26441. "metadata": {
  26442. "type": "object"
  26443. },
  26444. "type": {
  26445. "type": "string",
  26446. "enum": [
  26447. "pty.exited"
  26448. ]
  26449. },
  26450. "location": {
  26451. "$ref": "#/components/schemas/Location.Ref"
  26452. },
  26453. "data": {
  26454. "type": "object",
  26455. "properties": {
  26456. "id": {
  26457. "type": "string",
  26458. "allOf": [
  26459. {
  26460. "pattern": "^pty"
  26461. }
  26462. ]
  26463. },
  26464. "exitCode": {
  26465. "type": "integer",
  26466. "allOf": [
  26467. {
  26468. "minimum": 0
  26469. }
  26470. ]
  26471. }
  26472. },
  26473. "required": [
  26474. "id",
  26475. "exitCode"
  26476. ],
  26477. "additionalProperties": false
  26478. }
  26479. },
  26480. "required": [
  26481. "id",
  26482. "created",
  26483. "type",
  26484. "data"
  26485. ],
  26486. "additionalProperties": false
  26487. },
  26488. "pty.deleted": {
  26489. "type": "object",
  26490. "properties": {
  26491. "id": {
  26492. "type": "string",
  26493. "allOf": [
  26494. {
  26495. "pattern": "^evt_"
  26496. }
  26497. ]
  26498. },
  26499. "created": {
  26500. "type": "number"
  26501. },
  26502. "metadata": {
  26503. "type": "object"
  26504. },
  26505. "type": {
  26506. "type": "string",
  26507. "enum": [
  26508. "pty.deleted"
  26509. ]
  26510. },
  26511. "location": {
  26512. "$ref": "#/components/schemas/Location.Ref"
  26513. },
  26514. "data": {
  26515. "type": "object",
  26516. "properties": {
  26517. "id": {
  26518. "type": "string",
  26519. "allOf": [
  26520. {
  26521. "pattern": "^pty"
  26522. }
  26523. ]
  26524. }
  26525. },
  26526. "required": [
  26527. "id"
  26528. ],
  26529. "additionalProperties": false
  26530. }
  26531. },
  26532. "required": [
  26533. "id",
  26534. "created",
  26535. "type",
  26536. "data"
  26537. ],
  26538. "additionalProperties": false
  26539. },
  26540. "shell.created": {
  26541. "type": "object",
  26542. "properties": {
  26543. "id": {
  26544. "type": "string",
  26545. "allOf": [
  26546. {
  26547. "pattern": "^evt_"
  26548. }
  26549. ]
  26550. },
  26551. "created": {
  26552. "type": "number"
  26553. },
  26554. "metadata": {
  26555. "type": "object"
  26556. },
  26557. "type": {
  26558. "type": "string",
  26559. "enum": [
  26560. "shell.created"
  26561. ]
  26562. },
  26563. "location": {
  26564. "$ref": "#/components/schemas/Location.Ref"
  26565. },
  26566. "data": {
  26567. "type": "object",
  26568. "properties": {
  26569. "info": {
  26570. "$ref": "#/components/schemas/Shell.Info"
  26571. }
  26572. },
  26573. "required": [
  26574. "info"
  26575. ],
  26576. "additionalProperties": false
  26577. }
  26578. },
  26579. "required": [
  26580. "id",
  26581. "created",
  26582. "type",
  26583. "data"
  26584. ],
  26585. "additionalProperties": false
  26586. },
  26587. "shell.exited": {
  26588. "type": "object",
  26589. "properties": {
  26590. "id": {
  26591. "type": "string",
  26592. "allOf": [
  26593. {
  26594. "pattern": "^evt_"
  26595. }
  26596. ]
  26597. },
  26598. "created": {
  26599. "type": "number"
  26600. },
  26601. "metadata": {
  26602. "type": "object"
  26603. },
  26604. "type": {
  26605. "type": "string",
  26606. "enum": [
  26607. "shell.exited"
  26608. ]
  26609. },
  26610. "location": {
  26611. "$ref": "#/components/schemas/Location.Ref"
  26612. },
  26613. "data": {
  26614. "type": "object",
  26615. "properties": {
  26616. "id": {
  26617. "type": "string",
  26618. "allOf": [
  26619. {
  26620. "pattern": "^sh_"
  26621. }
  26622. ]
  26623. },
  26624. "exit": {
  26625. "type": "number"
  26626. },
  26627. "status": {
  26628. "type": "string",
  26629. "enum": [
  26630. "running",
  26631. "exited",
  26632. "timeout",
  26633. "killed"
  26634. ]
  26635. }
  26636. },
  26637. "required": [
  26638. "id",
  26639. "status"
  26640. ],
  26641. "additionalProperties": false
  26642. }
  26643. },
  26644. "required": [
  26645. "id",
  26646. "created",
  26647. "type",
  26648. "data"
  26649. ],
  26650. "additionalProperties": false
  26651. },
  26652. "shell.deleted": {
  26653. "type": "object",
  26654. "properties": {
  26655. "id": {
  26656. "type": "string",
  26657. "allOf": [
  26658. {
  26659. "pattern": "^evt_"
  26660. }
  26661. ]
  26662. },
  26663. "created": {
  26664. "type": "number"
  26665. },
  26666. "metadata": {
  26667. "type": "object"
  26668. },
  26669. "type": {
  26670. "type": "string",
  26671. "enum": [
  26672. "shell.deleted"
  26673. ]
  26674. },
  26675. "location": {
  26676. "$ref": "#/components/schemas/Location.Ref"
  26677. },
  26678. "data": {
  26679. "type": "object",
  26680. "properties": {
  26681. "id": {
  26682. "type": "string",
  26683. "allOf": [
  26684. {
  26685. "pattern": "^sh_"
  26686. }
  26687. ]
  26688. }
  26689. },
  26690. "required": [
  26691. "id"
  26692. ],
  26693. "additionalProperties": false
  26694. }
  26695. },
  26696. "required": [
  26697. "id",
  26698. "created",
  26699. "type",
  26700. "data"
  26701. ],
  26702. "additionalProperties": false
  26703. },
  26704. "Question.Option": {
  26705. "type": "object",
  26706. "properties": {
  26707. "label": {
  26708. "type": "string",
  26709. "description": "Display text (1-5 words, concise)"
  26710. },
  26711. "description": {
  26712. "type": "string",
  26713. "description": "Explanation of choice"
  26714. }
  26715. },
  26716. "required": [
  26717. "label",
  26718. "description"
  26719. ],
  26720. "additionalProperties": false
  26721. },
  26722. "Question.Info": {
  26723. "type": "object",
  26724. "properties": {
  26725. "question": {
  26726. "type": "string",
  26727. "description": "Complete question"
  26728. },
  26729. "header": {
  26730. "type": "string",
  26731. "description": "Very short label (max 30 chars)"
  26732. },
  26733. "options": {
  26734. "type": "array",
  26735. "items": {
  26736. "$ref": "#/components/schemas/Question.Option"
  26737. },
  26738. "description": "Available choices"
  26739. },
  26740. "multiple": {
  26741. "type": "boolean"
  26742. },
  26743. "custom": {
  26744. "type": "boolean"
  26745. }
  26746. },
  26747. "required": [
  26748. "question",
  26749. "header",
  26750. "options"
  26751. ],
  26752. "additionalProperties": false
  26753. },
  26754. "Question.Tool": {
  26755. "type": "object",
  26756. "properties": {
  26757. "messageID": {
  26758. "type": "string"
  26759. },
  26760. "callID": {
  26761. "type": "string"
  26762. }
  26763. },
  26764. "required": [
  26765. "messageID",
  26766. "callID"
  26767. ],
  26768. "additionalProperties": false
  26769. },
  26770. "question.asked": {
  26771. "type": "object",
  26772. "properties": {
  26773. "id": {
  26774. "type": "string",
  26775. "allOf": [
  26776. {
  26777. "pattern": "^evt_"
  26778. }
  26779. ]
  26780. },
  26781. "created": {
  26782. "type": "number"
  26783. },
  26784. "metadata": {
  26785. "type": "object"
  26786. },
  26787. "type": {
  26788. "type": "string",
  26789. "enum": [
  26790. "question.asked"
  26791. ]
  26792. },
  26793. "location": {
  26794. "$ref": "#/components/schemas/Location.Ref"
  26795. },
  26796. "data": {
  26797. "type": "object",
  26798. "properties": {
  26799. "id": {
  26800. "type": "string",
  26801. "allOf": [
  26802. {
  26803. "pattern": "^que"
  26804. }
  26805. ]
  26806. },
  26807. "sessionID": {
  26808. "type": "string",
  26809. "allOf": [
  26810. {
  26811. "pattern": "^ses"
  26812. }
  26813. ]
  26814. },
  26815. "questions": {
  26816. "type": "array",
  26817. "items": {
  26818. "$ref": "#/components/schemas/Question.Info"
  26819. },
  26820. "description": "Questions to ask"
  26821. },
  26822. "tool": {
  26823. "$ref": "#/components/schemas/Question.Tool"
  26824. }
  26825. },
  26826. "required": [
  26827. "id",
  26828. "sessionID",
  26829. "questions"
  26830. ],
  26831. "additionalProperties": false
  26832. }
  26833. },
  26834. "required": [
  26835. "id",
  26836. "created",
  26837. "type",
  26838. "data"
  26839. ],
  26840. "additionalProperties": false
  26841. },
  26842. "Question.Answer": {
  26843. "type": "array",
  26844. "items": {
  26845. "type": "string"
  26846. }
  26847. },
  26848. "question.replied": {
  26849. "type": "object",
  26850. "properties": {
  26851. "id": {
  26852. "type": "string",
  26853. "allOf": [
  26854. {
  26855. "pattern": "^evt_"
  26856. }
  26857. ]
  26858. },
  26859. "created": {
  26860. "type": "number"
  26861. },
  26862. "metadata": {
  26863. "type": "object"
  26864. },
  26865. "type": {
  26866. "type": "string",
  26867. "enum": [
  26868. "question.replied"
  26869. ]
  26870. },
  26871. "location": {
  26872. "$ref": "#/components/schemas/Location.Ref"
  26873. },
  26874. "data": {
  26875. "type": "object",
  26876. "properties": {
  26877. "sessionID": {
  26878. "type": "string",
  26879. "allOf": [
  26880. {
  26881. "pattern": "^ses"
  26882. }
  26883. ]
  26884. },
  26885. "requestID": {
  26886. "type": "string",
  26887. "allOf": [
  26888. {
  26889. "pattern": "^que"
  26890. }
  26891. ]
  26892. },
  26893. "answers": {
  26894. "type": "array",
  26895. "items": {
  26896. "$ref": "#/components/schemas/Question.Answer"
  26897. }
  26898. }
  26899. },
  26900. "required": [
  26901. "sessionID",
  26902. "requestID",
  26903. "answers"
  26904. ],
  26905. "additionalProperties": false
  26906. }
  26907. },
  26908. "required": [
  26909. "id",
  26910. "created",
  26911. "type",
  26912. "data"
  26913. ],
  26914. "additionalProperties": false
  26915. },
  26916. "question.rejected": {
  26917. "type": "object",
  26918. "properties": {
  26919. "id": {
  26920. "type": "string",
  26921. "allOf": [
  26922. {
  26923. "pattern": "^evt_"
  26924. }
  26925. ]
  26926. },
  26927. "created": {
  26928. "type": "number"
  26929. },
  26930. "metadata": {
  26931. "type": "object"
  26932. },
  26933. "type": {
  26934. "type": "string",
  26935. "enum": [
  26936. "question.rejected"
  26937. ]
  26938. },
  26939. "location": {
  26940. "$ref": "#/components/schemas/Location.Ref"
  26941. },
  26942. "data": {
  26943. "type": "object",
  26944. "properties": {
  26945. "sessionID": {
  26946. "type": "string",
  26947. "allOf": [
  26948. {
  26949. "pattern": "^ses"
  26950. }
  26951. ]
  26952. },
  26953. "requestID": {
  26954. "type": "string",
  26955. "allOf": [
  26956. {
  26957. "pattern": "^que"
  26958. }
  26959. ]
  26960. }
  26961. },
  26962. "required": [
  26963. "sessionID",
  26964. "requestID"
  26965. ],
  26966. "additionalProperties": false
  26967. }
  26968. },
  26969. "required": [
  26970. "id",
  26971. "created",
  26972. "type",
  26973. "data"
  26974. ],
  26975. "additionalProperties": false
  26976. },
  26977. "Form.Metadata1": {
  26978. "type": "object"
  26979. },
  26980. "Form.When1": {
  26981. "type": "object",
  26982. "properties": {
  26983. "key": {
  26984. "type": "string"
  26985. },
  26986. "op": {
  26987. "type": "string",
  26988. "enum": [
  26989. "eq",
  26990. "neq"
  26991. ]
  26992. },
  26993. "value": {
  26994. "anyOf": [
  26995. {
  26996. "type": "string"
  26997. },
  26998. {
  26999. "anyOf": [
  27000. {
  27001. "type": "number"
  27002. },
  27003. {
  27004. "type": "string",
  27005. "enum": [
  27006. "NaN"
  27007. ]
  27008. },
  27009. {
  27010. "type": "string",
  27011. "enum": [
  27012. "Infinity"
  27013. ]
  27014. },
  27015. {
  27016. "type": "string",
  27017. "enum": [
  27018. "-Infinity"
  27019. ]
  27020. }
  27021. ]
  27022. },
  27023. {
  27024. "type": "boolean"
  27025. }
  27026. ]
  27027. }
  27028. },
  27029. "required": [
  27030. "key",
  27031. "op",
  27032. "value"
  27033. ],
  27034. "additionalProperties": false
  27035. },
  27036. "Form.StringField1": {
  27037. "type": "object",
  27038. "properties": {
  27039. "key": {
  27040. "type": "string"
  27041. },
  27042. "title": {
  27043. "type": "string"
  27044. },
  27045. "description": {
  27046. "type": "string"
  27047. },
  27048. "required": {
  27049. "type": "boolean"
  27050. },
  27051. "when": {
  27052. "type": "array",
  27053. "items": {
  27054. "$ref": "#/components/schemas/Form.When1"
  27055. }
  27056. },
  27057. "type": {
  27058. "type": "string",
  27059. "enum": [
  27060. "string"
  27061. ]
  27062. },
  27063. "format": {
  27064. "type": "string",
  27065. "enum": [
  27066. "email",
  27067. "uri",
  27068. "date",
  27069. "date-time"
  27070. ]
  27071. },
  27072. "minLength": {
  27073. "type": "integer",
  27074. "allOf": [
  27075. {
  27076. "minimum": 0
  27077. }
  27078. ]
  27079. },
  27080. "maxLength": {
  27081. "type": "integer",
  27082. "allOf": [
  27083. {
  27084. "minimum": 0
  27085. }
  27086. ]
  27087. },
  27088. "pattern": {
  27089. "type": "string"
  27090. },
  27091. "placeholder": {
  27092. "type": "string"
  27093. },
  27094. "default": {
  27095. "type": "string"
  27096. },
  27097. "options": {
  27098. "type": "array",
  27099. "items": {
  27100. "$ref": "#/components/schemas/Form.Option"
  27101. }
  27102. },
  27103. "custom": {
  27104. "type": "boolean"
  27105. }
  27106. },
  27107. "required": [
  27108. "key",
  27109. "type"
  27110. ],
  27111. "additionalProperties": false
  27112. },
  27113. "Form.NumberField1": {
  27114. "type": "object",
  27115. "properties": {
  27116. "key": {
  27117. "type": "string"
  27118. },
  27119. "title": {
  27120. "type": "string"
  27121. },
  27122. "description": {
  27123. "type": "string"
  27124. },
  27125. "required": {
  27126. "type": "boolean"
  27127. },
  27128. "when": {
  27129. "type": "array",
  27130. "items": {
  27131. "$ref": "#/components/schemas/Form.When1"
  27132. }
  27133. },
  27134. "type": {
  27135. "type": "string",
  27136. "enum": [
  27137. "number"
  27138. ]
  27139. },
  27140. "minimum": {
  27141. "anyOf": [
  27142. {
  27143. "type": "number"
  27144. },
  27145. {
  27146. "type": "string",
  27147. "enum": [
  27148. "NaN"
  27149. ]
  27150. },
  27151. {
  27152. "type": "string",
  27153. "enum": [
  27154. "Infinity"
  27155. ]
  27156. },
  27157. {
  27158. "type": "string",
  27159. "enum": [
  27160. "-Infinity"
  27161. ]
  27162. }
  27163. ]
  27164. },
  27165. "maximum": {
  27166. "anyOf": [
  27167. {
  27168. "type": "number"
  27169. },
  27170. {
  27171. "type": "string",
  27172. "enum": [
  27173. "NaN"
  27174. ]
  27175. },
  27176. {
  27177. "type": "string",
  27178. "enum": [
  27179. "Infinity"
  27180. ]
  27181. },
  27182. {
  27183. "type": "string",
  27184. "enum": [
  27185. "-Infinity"
  27186. ]
  27187. }
  27188. ]
  27189. },
  27190. "default": {
  27191. "anyOf": [
  27192. {
  27193. "type": "number"
  27194. },
  27195. {
  27196. "type": "string",
  27197. "enum": [
  27198. "NaN"
  27199. ]
  27200. },
  27201. {
  27202. "type": "string",
  27203. "enum": [
  27204. "Infinity"
  27205. ]
  27206. },
  27207. {
  27208. "type": "string",
  27209. "enum": [
  27210. "-Infinity"
  27211. ]
  27212. }
  27213. ]
  27214. }
  27215. },
  27216. "required": [
  27217. "key",
  27218. "type"
  27219. ],
  27220. "additionalProperties": false
  27221. },
  27222. "Form.IntegerField1": {
  27223. "type": "object",
  27224. "properties": {
  27225. "key": {
  27226. "type": "string"
  27227. },
  27228. "title": {
  27229. "type": "string"
  27230. },
  27231. "description": {
  27232. "type": "string"
  27233. },
  27234. "required": {
  27235. "type": "boolean"
  27236. },
  27237. "when": {
  27238. "type": "array",
  27239. "items": {
  27240. "$ref": "#/components/schemas/Form.When1"
  27241. }
  27242. },
  27243. "type": {
  27244. "type": "string",
  27245. "enum": [
  27246. "integer"
  27247. ]
  27248. },
  27249. "minimum": {
  27250. "anyOf": [
  27251. {
  27252. "type": "number"
  27253. },
  27254. {
  27255. "type": "string",
  27256. "enum": [
  27257. "NaN"
  27258. ]
  27259. },
  27260. {
  27261. "type": "string",
  27262. "enum": [
  27263. "Infinity"
  27264. ]
  27265. },
  27266. {
  27267. "type": "string",
  27268. "enum": [
  27269. "-Infinity"
  27270. ]
  27271. }
  27272. ]
  27273. },
  27274. "maximum": {
  27275. "anyOf": [
  27276. {
  27277. "type": "number"
  27278. },
  27279. {
  27280. "type": "string",
  27281. "enum": [
  27282. "NaN"
  27283. ]
  27284. },
  27285. {
  27286. "type": "string",
  27287. "enum": [
  27288. "Infinity"
  27289. ]
  27290. },
  27291. {
  27292. "type": "string",
  27293. "enum": [
  27294. "-Infinity"
  27295. ]
  27296. }
  27297. ]
  27298. },
  27299. "default": {
  27300. "anyOf": [
  27301. {
  27302. "type": "number"
  27303. },
  27304. {
  27305. "type": "string",
  27306. "enum": [
  27307. "NaN"
  27308. ]
  27309. },
  27310. {
  27311. "type": "string",
  27312. "enum": [
  27313. "Infinity"
  27314. ]
  27315. },
  27316. {
  27317. "type": "string",
  27318. "enum": [
  27319. "-Infinity"
  27320. ]
  27321. }
  27322. ]
  27323. }
  27324. },
  27325. "required": [
  27326. "key",
  27327. "type"
  27328. ],
  27329. "additionalProperties": false
  27330. },
  27331. "Form.BooleanField1": {
  27332. "type": "object",
  27333. "properties": {
  27334. "key": {
  27335. "type": "string"
  27336. },
  27337. "title": {
  27338. "type": "string"
  27339. },
  27340. "description": {
  27341. "type": "string"
  27342. },
  27343. "required": {
  27344. "type": "boolean"
  27345. },
  27346. "when": {
  27347. "type": "array",
  27348. "items": {
  27349. "$ref": "#/components/schemas/Form.When1"
  27350. }
  27351. },
  27352. "type": {
  27353. "type": "string",
  27354. "enum": [
  27355. "boolean"
  27356. ]
  27357. },
  27358. "default": {
  27359. "type": "boolean"
  27360. }
  27361. },
  27362. "required": [
  27363. "key",
  27364. "type"
  27365. ],
  27366. "additionalProperties": false
  27367. },
  27368. "Form.MultiselectField1": {
  27369. "type": "object",
  27370. "properties": {
  27371. "key": {
  27372. "type": "string"
  27373. },
  27374. "title": {
  27375. "type": "string"
  27376. },
  27377. "description": {
  27378. "type": "string"
  27379. },
  27380. "required": {
  27381. "type": "boolean"
  27382. },
  27383. "when": {
  27384. "type": "array",
  27385. "items": {
  27386. "$ref": "#/components/schemas/Form.When1"
  27387. }
  27388. },
  27389. "type": {
  27390. "type": "string",
  27391. "enum": [
  27392. "multiselect"
  27393. ]
  27394. },
  27395. "options": {
  27396. "type": "array",
  27397. "items": {
  27398. "$ref": "#/components/schemas/Form.Option"
  27399. }
  27400. },
  27401. "minItems": {
  27402. "type": "integer",
  27403. "allOf": [
  27404. {
  27405. "minimum": 0
  27406. }
  27407. ]
  27408. },
  27409. "maxItems": {
  27410. "type": "integer",
  27411. "allOf": [
  27412. {
  27413. "minimum": 0
  27414. }
  27415. ]
  27416. },
  27417. "custom": {
  27418. "type": "boolean"
  27419. },
  27420. "default": {
  27421. "type": "array",
  27422. "items": {
  27423. "type": "string"
  27424. }
  27425. }
  27426. },
  27427. "required": [
  27428. "key",
  27429. "type",
  27430. "options"
  27431. ],
  27432. "additionalProperties": false
  27433. },
  27434. "Form.Field1": {
  27435. "anyOf": [
  27436. {
  27437. "$ref": "#/components/schemas/Form.StringField1"
  27438. },
  27439. {
  27440. "$ref": "#/components/schemas/Form.NumberField1"
  27441. },
  27442. {
  27443. "$ref": "#/components/schemas/Form.IntegerField1"
  27444. },
  27445. {
  27446. "$ref": "#/components/schemas/Form.BooleanField1"
  27447. },
  27448. {
  27449. "$ref": "#/components/schemas/Form.MultiselectField1"
  27450. },
  27451. {
  27452. "$ref": "#/components/schemas/Form.ExternalField"
  27453. }
  27454. ]
  27455. },
  27456. "Form.Fields1": {
  27457. "type": "array",
  27458. "prefixItems": [
  27459. {
  27460. "$ref": "#/components/schemas/Form.Field1"
  27461. }
  27462. ],
  27463. "minItems": 1,
  27464. "items": {
  27465. "$ref": "#/components/schemas/Form.Field1"
  27466. }
  27467. },
  27468. "Form.Info1": {
  27469. "type": "object",
  27470. "properties": {
  27471. "id": {
  27472. "type": "string",
  27473. "allOf": [
  27474. {
  27475. "pattern": "^frm_"
  27476. }
  27477. ]
  27478. },
  27479. "sessionID": {
  27480. "type": "string"
  27481. },
  27482. "title": {
  27483. "type": "string"
  27484. },
  27485. "metadata": {
  27486. "$ref": "#/components/schemas/Form.Metadata1"
  27487. },
  27488. "fields": {
  27489. "$ref": "#/components/schemas/Form.Fields1"
  27490. }
  27491. },
  27492. "required": [
  27493. "id",
  27494. "sessionID",
  27495. "title",
  27496. "fields"
  27497. ],
  27498. "additionalProperties": false
  27499. },
  27500. "form.created": {
  27501. "type": "object",
  27502. "properties": {
  27503. "id": {
  27504. "type": "string",
  27505. "allOf": [
  27506. {
  27507. "pattern": "^evt_"
  27508. }
  27509. ]
  27510. },
  27511. "created": {
  27512. "type": "number"
  27513. },
  27514. "metadata": {
  27515. "type": "object"
  27516. },
  27517. "type": {
  27518. "type": "string",
  27519. "enum": [
  27520. "form.created"
  27521. ]
  27522. },
  27523. "location": {
  27524. "$ref": "#/components/schemas/Location.Ref"
  27525. },
  27526. "data": {
  27527. "type": "object",
  27528. "properties": {
  27529. "form": {
  27530. "$ref": "#/components/schemas/Form.Info1"
  27531. }
  27532. },
  27533. "required": [
  27534. "form"
  27535. ],
  27536. "additionalProperties": false
  27537. }
  27538. },
  27539. "required": [
  27540. "id",
  27541. "created",
  27542. "type",
  27543. "data"
  27544. ],
  27545. "additionalProperties": false
  27546. },
  27547. "Form.Value1": {
  27548. "anyOf": [
  27549. {
  27550. "type": "string"
  27551. },
  27552. {
  27553. "anyOf": [
  27554. {
  27555. "type": "number"
  27556. },
  27557. {
  27558. "type": "string",
  27559. "enum": [
  27560. "NaN"
  27561. ]
  27562. },
  27563. {
  27564. "type": "string",
  27565. "enum": [
  27566. "Infinity"
  27567. ]
  27568. },
  27569. {
  27570. "type": "string",
  27571. "enum": [
  27572. "-Infinity"
  27573. ]
  27574. }
  27575. ]
  27576. },
  27577. {
  27578. "type": "boolean"
  27579. },
  27580. {
  27581. "type": "array",
  27582. "items": {
  27583. "type": "string"
  27584. }
  27585. }
  27586. ]
  27587. },
  27588. "Form.Answer1": {
  27589. "type": "object",
  27590. "additionalProperties": {
  27591. "$ref": "#/components/schemas/Form.Value1"
  27592. }
  27593. },
  27594. "form.replied": {
  27595. "type": "object",
  27596. "properties": {
  27597. "id": {
  27598. "type": "string",
  27599. "allOf": [
  27600. {
  27601. "pattern": "^evt_"
  27602. }
  27603. ]
  27604. },
  27605. "created": {
  27606. "type": "number"
  27607. },
  27608. "metadata": {
  27609. "type": "object"
  27610. },
  27611. "type": {
  27612. "type": "string",
  27613. "enum": [
  27614. "form.replied"
  27615. ]
  27616. },
  27617. "location": {
  27618. "$ref": "#/components/schemas/Location.Ref"
  27619. },
  27620. "data": {
  27621. "type": "object",
  27622. "properties": {
  27623. "id": {
  27624. "type": "string",
  27625. "allOf": [
  27626. {
  27627. "pattern": "^frm_"
  27628. }
  27629. ]
  27630. },
  27631. "sessionID": {
  27632. "type": "string"
  27633. },
  27634. "answer": {
  27635. "$ref": "#/components/schemas/Form.Answer1"
  27636. }
  27637. },
  27638. "required": [
  27639. "id",
  27640. "sessionID",
  27641. "answer"
  27642. ],
  27643. "additionalProperties": false
  27644. }
  27645. },
  27646. "required": [
  27647. "id",
  27648. "created",
  27649. "type",
  27650. "data"
  27651. ],
  27652. "additionalProperties": false
  27653. },
  27654. "form.cancelled": {
  27655. "type": "object",
  27656. "properties": {
  27657. "id": {
  27658. "type": "string",
  27659. "allOf": [
  27660. {
  27661. "pattern": "^evt_"
  27662. }
  27663. ]
  27664. },
  27665. "created": {
  27666. "type": "number"
  27667. },
  27668. "metadata": {
  27669. "type": "object"
  27670. },
  27671. "type": {
  27672. "type": "string",
  27673. "enum": [
  27674. "form.cancelled"
  27675. ]
  27676. },
  27677. "location": {
  27678. "$ref": "#/components/schemas/Location.Ref"
  27679. },
  27680. "data": {
  27681. "type": "object",
  27682. "properties": {
  27683. "id": {
  27684. "type": "string",
  27685. "allOf": [
  27686. {
  27687. "pattern": "^frm_"
  27688. }
  27689. ]
  27690. },
  27691. "sessionID": {
  27692. "type": "string"
  27693. }
  27694. },
  27695. "required": [
  27696. "id",
  27697. "sessionID"
  27698. ],
  27699. "additionalProperties": false
  27700. }
  27701. },
  27702. "required": [
  27703. "id",
  27704. "created",
  27705. "type",
  27706. "data"
  27707. ],
  27708. "additionalProperties": false
  27709. },
  27710. "websearch.updated": {
  27711. "type": "object",
  27712. "properties": {
  27713. "id": {
  27714. "type": "string",
  27715. "allOf": [
  27716. {
  27717. "pattern": "^evt_"
  27718. }
  27719. ]
  27720. },
  27721. "created": {
  27722. "type": "number"
  27723. },
  27724. "metadata": {
  27725. "type": "object"
  27726. },
  27727. "type": {
  27728. "type": "string",
  27729. "enum": [
  27730. "websearch.updated"
  27731. ]
  27732. },
  27733. "location": {
  27734. "$ref": "#/components/schemas/Location.Ref"
  27735. },
  27736. "data": {
  27737. "anyOf": [
  27738. {
  27739. "type": "object"
  27740. },
  27741. {
  27742. "type": "array"
  27743. }
  27744. ]
  27745. }
  27746. },
  27747. "required": [
  27748. "id",
  27749. "created",
  27750. "type",
  27751. "data"
  27752. ],
  27753. "additionalProperties": false
  27754. },
  27755. "SessionStatus": {
  27756. "anyOf": [
  27757. {
  27758. "type": "object",
  27759. "properties": {
  27760. "type": {
  27761. "type": "string",
  27762. "enum": [
  27763. "idle"
  27764. ]
  27765. }
  27766. },
  27767. "required": [
  27768. "type"
  27769. ],
  27770. "additionalProperties": false
  27771. },
  27772. {
  27773. "type": "object",
  27774. "properties": {
  27775. "type": {
  27776. "type": "string",
  27777. "enum": [
  27778. "retry"
  27779. ]
  27780. },
  27781. "attempt": {
  27782. "type": "integer",
  27783. "allOf": [
  27784. {
  27785. "minimum": 0
  27786. }
  27787. ]
  27788. },
  27789. "message": {
  27790. "type": "string"
  27791. },
  27792. "action": {
  27793. "type": "object",
  27794. "properties": {
  27795. "reason": {
  27796. "type": "string"
  27797. },
  27798. "provider": {
  27799. "type": "string"
  27800. },
  27801. "title": {
  27802. "type": "string"
  27803. },
  27804. "message": {
  27805. "type": "string"
  27806. },
  27807. "label": {
  27808. "type": "string"
  27809. },
  27810. "link": {
  27811. "type": "string"
  27812. }
  27813. },
  27814. "required": [
  27815. "reason",
  27816. "provider",
  27817. "title",
  27818. "message",
  27819. "label"
  27820. ],
  27821. "additionalProperties": false
  27822. },
  27823. "next": {
  27824. "type": "integer",
  27825. "allOf": [
  27826. {
  27827. "minimum": 0
  27828. }
  27829. ]
  27830. }
  27831. },
  27832. "required": [
  27833. "type",
  27834. "attempt",
  27835. "message",
  27836. "next"
  27837. ],
  27838. "additionalProperties": false
  27839. },
  27840. {
  27841. "type": "object",
  27842. "properties": {
  27843. "type": {
  27844. "type": "string",
  27845. "enum": [
  27846. "busy"
  27847. ]
  27848. }
  27849. },
  27850. "required": [
  27851. "type"
  27852. ],
  27853. "additionalProperties": false
  27854. }
  27855. ]
  27856. },
  27857. "session.status": {
  27858. "type": "object",
  27859. "properties": {
  27860. "id": {
  27861. "type": "string",
  27862. "allOf": [
  27863. {
  27864. "pattern": "^evt_"
  27865. }
  27866. ]
  27867. },
  27868. "created": {
  27869. "type": "number"
  27870. },
  27871. "metadata": {
  27872. "type": "object"
  27873. },
  27874. "type": {
  27875. "type": "string",
  27876. "enum": [
  27877. "session.status"
  27878. ]
  27879. },
  27880. "location": {
  27881. "$ref": "#/components/schemas/Location.Ref"
  27882. },
  27883. "data": {
  27884. "type": "object",
  27885. "properties": {
  27886. "sessionID": {
  27887. "type": "string",
  27888. "allOf": [
  27889. {
  27890. "pattern": "^ses"
  27891. }
  27892. ]
  27893. },
  27894. "status": {
  27895. "$ref": "#/components/schemas/SessionStatus"
  27896. }
  27897. },
  27898. "required": [
  27899. "sessionID",
  27900. "status"
  27901. ],
  27902. "additionalProperties": false
  27903. }
  27904. },
  27905. "required": [
  27906. "id",
  27907. "created",
  27908. "type",
  27909. "data"
  27910. ],
  27911. "additionalProperties": false
  27912. },
  27913. "session.idle": {
  27914. "type": "object",
  27915. "properties": {
  27916. "id": {
  27917. "type": "string",
  27918. "allOf": [
  27919. {
  27920. "pattern": "^evt_"
  27921. }
  27922. ]
  27923. },
  27924. "created": {
  27925. "type": "number"
  27926. },
  27927. "metadata": {
  27928. "type": "object"
  27929. },
  27930. "type": {
  27931. "type": "string",
  27932. "enum": [
  27933. "session.idle"
  27934. ]
  27935. },
  27936. "location": {
  27937. "$ref": "#/components/schemas/Location.Ref"
  27938. },
  27939. "data": {
  27940. "type": "object",
  27941. "properties": {
  27942. "sessionID": {
  27943. "type": "string",
  27944. "allOf": [
  27945. {
  27946. "pattern": "^ses"
  27947. }
  27948. ]
  27949. }
  27950. },
  27951. "required": [
  27952. "sessionID"
  27953. ],
  27954. "additionalProperties": false
  27955. }
  27956. },
  27957. "required": [
  27958. "id",
  27959. "created",
  27960. "type",
  27961. "data"
  27962. ],
  27963. "additionalProperties": false
  27964. },
  27965. "tui.prompt.append": {
  27966. "type": "object",
  27967. "properties": {
  27968. "id": {
  27969. "type": "string",
  27970. "allOf": [
  27971. {
  27972. "pattern": "^evt_"
  27973. }
  27974. ]
  27975. },
  27976. "created": {
  27977. "type": "number"
  27978. },
  27979. "metadata": {
  27980. "type": "object"
  27981. },
  27982. "type": {
  27983. "type": "string",
  27984. "enum": [
  27985. "tui.prompt.append"
  27986. ]
  27987. },
  27988. "location": {
  27989. "$ref": "#/components/schemas/Location.Ref"
  27990. },
  27991. "data": {
  27992. "type": "object",
  27993. "properties": {
  27994. "text": {
  27995. "type": "string"
  27996. }
  27997. },
  27998. "required": [
  27999. "text"
  28000. ],
  28001. "additionalProperties": false
  28002. }
  28003. },
  28004. "required": [
  28005. "id",
  28006. "created",
  28007. "type",
  28008. "data"
  28009. ],
  28010. "additionalProperties": false
  28011. },
  28012. "tui.command.execute": {
  28013. "type": "object",
  28014. "properties": {
  28015. "id": {
  28016. "type": "string",
  28017. "allOf": [
  28018. {
  28019. "pattern": "^evt_"
  28020. }
  28021. ]
  28022. },
  28023. "created": {
  28024. "type": "number"
  28025. },
  28026. "metadata": {
  28027. "type": "object"
  28028. },
  28029. "type": {
  28030. "type": "string",
  28031. "enum": [
  28032. "tui.command.execute"
  28033. ]
  28034. },
  28035. "location": {
  28036. "$ref": "#/components/schemas/Location.Ref"
  28037. },
  28038. "data": {
  28039. "type": "object",
  28040. "properties": {
  28041. "command": {
  28042. "anyOf": [
  28043. {
  28044. "type": "string",
  28045. "enum": [
  28046. "session.list",
  28047. "session.new",
  28048. "session.share",
  28049. "session.interrupt",
  28050. "session.background",
  28051. "session.compact",
  28052. "session.page.up",
  28053. "session.page.down",
  28054. "session.line.up",
  28055. "session.line.down",
  28056. "session.half.page.up",
  28057. "session.half.page.down",
  28058. "session.first",
  28059. "session.last",
  28060. "prompt.clear",
  28061. "prompt.submit",
  28062. "agent.cycle"
  28063. ]
  28064. },
  28065. {
  28066. "type": "string"
  28067. }
  28068. ]
  28069. }
  28070. },
  28071. "required": [
  28072. "command"
  28073. ],
  28074. "additionalProperties": false
  28075. }
  28076. },
  28077. "required": [
  28078. "id",
  28079. "created",
  28080. "type",
  28081. "data"
  28082. ],
  28083. "additionalProperties": false
  28084. },
  28085. "tui.toast.show": {
  28086. "type": "object",
  28087. "properties": {
  28088. "id": {
  28089. "type": "string",
  28090. "allOf": [
  28091. {
  28092. "pattern": "^evt_"
  28093. }
  28094. ]
  28095. },
  28096. "created": {
  28097. "type": "number"
  28098. },
  28099. "metadata": {
  28100. "type": "object"
  28101. },
  28102. "type": {
  28103. "type": "string",
  28104. "enum": [
  28105. "tui.toast.show"
  28106. ]
  28107. },
  28108. "location": {
  28109. "$ref": "#/components/schemas/Location.Ref"
  28110. },
  28111. "data": {
  28112. "type": "object",
  28113. "properties": {
  28114. "title": {
  28115. "type": "string"
  28116. },
  28117. "message": {
  28118. "type": "string"
  28119. },
  28120. "variant": {
  28121. "type": "string",
  28122. "enum": [
  28123. "info",
  28124. "success",
  28125. "warning",
  28126. "error"
  28127. ]
  28128. },
  28129. "duration": {
  28130. "anyOf": [
  28131. {
  28132. "type": "integer",
  28133. "allOf": [
  28134. {
  28135. "exclusiveMinimum": 0
  28136. }
  28137. ]
  28138. },
  28139. {
  28140. "type": "null"
  28141. }
  28142. ]
  28143. }
  28144. },
  28145. "required": [
  28146. "message",
  28147. "variant"
  28148. ],
  28149. "additionalProperties": false
  28150. }
  28151. },
  28152. "required": [
  28153. "id",
  28154. "created",
  28155. "type",
  28156. "data"
  28157. ],
  28158. "additionalProperties": false
  28159. },
  28160. "tui.session.select": {
  28161. "type": "object",
  28162. "properties": {
  28163. "id": {
  28164. "type": "string",
  28165. "allOf": [
  28166. {
  28167. "pattern": "^evt_"
  28168. }
  28169. ]
  28170. },
  28171. "created": {
  28172. "type": "number"
  28173. },
  28174. "metadata": {
  28175. "type": "object"
  28176. },
  28177. "type": {
  28178. "type": "string",
  28179. "enum": [
  28180. "tui.session.select"
  28181. ]
  28182. },
  28183. "location": {
  28184. "$ref": "#/components/schemas/Location.Ref"
  28185. },
  28186. "data": {
  28187. "type": "object",
  28188. "properties": {
  28189. "sessionID": {
  28190. "type": "string",
  28191. "allOf": [
  28192. {
  28193. "pattern": "^ses",
  28194. "description": "Session ID to navigate to"
  28195. }
  28196. ]
  28197. }
  28198. },
  28199. "required": [
  28200. "sessionID"
  28201. ],
  28202. "additionalProperties": false
  28203. }
  28204. },
  28205. "required": [
  28206. "id",
  28207. "created",
  28208. "type",
  28209. "data"
  28210. ],
  28211. "additionalProperties": false
  28212. },
  28213. "installation.updated": {
  28214. "type": "object",
  28215. "properties": {
  28216. "id": {
  28217. "type": "string",
  28218. "allOf": [
  28219. {
  28220. "pattern": "^evt_"
  28221. }
  28222. ]
  28223. },
  28224. "created": {
  28225. "type": "number"
  28226. },
  28227. "metadata": {
  28228. "type": "object"
  28229. },
  28230. "type": {
  28231. "type": "string",
  28232. "enum": [
  28233. "installation.updated"
  28234. ]
  28235. },
  28236. "location": {
  28237. "$ref": "#/components/schemas/Location.Ref"
  28238. },
  28239. "data": {
  28240. "type": "object",
  28241. "properties": {
  28242. "version": {
  28243. "type": "string"
  28244. }
  28245. },
  28246. "required": [
  28247. "version"
  28248. ],
  28249. "additionalProperties": false
  28250. }
  28251. },
  28252. "required": [
  28253. "id",
  28254. "created",
  28255. "type",
  28256. "data"
  28257. ],
  28258. "additionalProperties": false
  28259. },
  28260. "installation.update-available": {
  28261. "type": "object",
  28262. "properties": {
  28263. "id": {
  28264. "type": "string",
  28265. "allOf": [
  28266. {
  28267. "pattern": "^evt_"
  28268. }
  28269. ]
  28270. },
  28271. "created": {
  28272. "type": "number"
  28273. },
  28274. "metadata": {
  28275. "type": "object"
  28276. },
  28277. "type": {
  28278. "type": "string",
  28279. "enum": [
  28280. "installation.update-available"
  28281. ]
  28282. },
  28283. "location": {
  28284. "$ref": "#/components/schemas/Location.Ref"
  28285. },
  28286. "data": {
  28287. "type": "object",
  28288. "properties": {
  28289. "version": {
  28290. "type": "string"
  28291. }
  28292. },
  28293. "required": [
  28294. "version"
  28295. ],
  28296. "additionalProperties": false
  28297. }
  28298. },
  28299. "required": [
  28300. "id",
  28301. "created",
  28302. "type",
  28303. "data"
  28304. ],
  28305. "additionalProperties": false
  28306. },
  28307. "vcs.branch.updated": {
  28308. "type": "object",
  28309. "properties": {
  28310. "id": {
  28311. "type": "string",
  28312. "allOf": [
  28313. {
  28314. "pattern": "^evt_"
  28315. }
  28316. ]
  28317. },
  28318. "created": {
  28319. "type": "number"
  28320. },
  28321. "metadata": {
  28322. "type": "object"
  28323. },
  28324. "type": {
  28325. "type": "string",
  28326. "enum": [
  28327. "vcs.branch.updated"
  28328. ]
  28329. },
  28330. "location": {
  28331. "$ref": "#/components/schemas/Location.Ref"
  28332. },
  28333. "data": {
  28334. "type": "object",
  28335. "properties": {
  28336. "branch": {
  28337. "type": "string"
  28338. }
  28339. },
  28340. "additionalProperties": false
  28341. }
  28342. },
  28343. "required": [
  28344. "id",
  28345. "created",
  28346. "type",
  28347. "data"
  28348. ],
  28349. "additionalProperties": false
  28350. },
  28351. "mcp.status.changed": {
  28352. "type": "object",
  28353. "properties": {
  28354. "id": {
  28355. "type": "string",
  28356. "allOf": [
  28357. {
  28358. "pattern": "^evt_"
  28359. }
  28360. ]
  28361. },
  28362. "created": {
  28363. "type": "number"
  28364. },
  28365. "metadata": {
  28366. "type": "object"
  28367. },
  28368. "type": {
  28369. "type": "string",
  28370. "enum": [
  28371. "mcp.status.changed"
  28372. ]
  28373. },
  28374. "location": {
  28375. "$ref": "#/components/schemas/Location.Ref"
  28376. },
  28377. "data": {
  28378. "type": "object",
  28379. "properties": {
  28380. "server": {
  28381. "type": "string"
  28382. }
  28383. },
  28384. "required": [
  28385. "server"
  28386. ],
  28387. "additionalProperties": false
  28388. }
  28389. },
  28390. "required": [
  28391. "id",
  28392. "created",
  28393. "type",
  28394. "data"
  28395. ],
  28396. "additionalProperties": false
  28397. },
  28398. "mcp.resources.changed": {
  28399. "type": "object",
  28400. "properties": {
  28401. "id": {
  28402. "type": "string",
  28403. "allOf": [
  28404. {
  28405. "pattern": "^evt_"
  28406. }
  28407. ]
  28408. },
  28409. "created": {
  28410. "type": "number"
  28411. },
  28412. "metadata": {
  28413. "type": "object"
  28414. },
  28415. "type": {
  28416. "type": "string",
  28417. "enum": [
  28418. "mcp.resources.changed"
  28419. ]
  28420. },
  28421. "location": {
  28422. "$ref": "#/components/schemas/Location.Ref"
  28423. },
  28424. "data": {
  28425. "type": "object",
  28426. "properties": {
  28427. "server": {
  28428. "type": "string"
  28429. }
  28430. },
  28431. "required": [
  28432. "server"
  28433. ],
  28434. "additionalProperties": false
  28435. }
  28436. },
  28437. "required": [
  28438. "id",
  28439. "created",
  28440. "type",
  28441. "data"
  28442. ],
  28443. "additionalProperties": false
  28444. },
  28445. "session.error": {
  28446. "type": "object",
  28447. "properties": {
  28448. "id": {
  28449. "type": "string",
  28450. "allOf": [
  28451. {
  28452. "pattern": "^evt_"
  28453. }
  28454. ]
  28455. },
  28456. "created": {
  28457. "type": "number"
  28458. },
  28459. "metadata": {
  28460. "type": "object"
  28461. },
  28462. "type": {
  28463. "type": "string",
  28464. "enum": [
  28465. "session.error"
  28466. ]
  28467. },
  28468. "location": {
  28469. "$ref": "#/components/schemas/Location.Ref"
  28470. },
  28471. "data": {
  28472. "type": "object",
  28473. "properties": {
  28474. "sessionID": {
  28475. "anyOf": [
  28476. {
  28477. "type": "string",
  28478. "allOf": [
  28479. {
  28480. "pattern": "^ses"
  28481. }
  28482. ]
  28483. },
  28484. {
  28485. "type": "null"
  28486. }
  28487. ]
  28488. },
  28489. "error": {
  28490. "anyOf": [
  28491. {
  28492. "anyOf": [
  28493. {
  28494. "$ref": "#/components/schemas/ProviderAuthError"
  28495. },
  28496. {
  28497. "$ref": "#/components/schemas/UnknownError1"
  28498. },
  28499. {
  28500. "$ref": "#/components/schemas/MessageOutputLengthError"
  28501. },
  28502. {
  28503. "$ref": "#/components/schemas/MessageAbortedError"
  28504. },
  28505. {
  28506. "$ref": "#/components/schemas/StructuredOutputError"
  28507. },
  28508. {
  28509. "$ref": "#/components/schemas/ContextOverflowError"
  28510. },
  28511. {
  28512. "$ref": "#/components/schemas/ContentFilterError"
  28513. },
  28514. {
  28515. "$ref": "#/components/schemas/APIError"
  28516. }
  28517. ]
  28518. },
  28519. {
  28520. "type": "null"
  28521. }
  28522. ]
  28523. }
  28524. },
  28525. "additionalProperties": false
  28526. }
  28527. },
  28528. "required": [
  28529. "id",
  28530. "created",
  28531. "type",
  28532. "data"
  28533. ],
  28534. "additionalProperties": false
  28535. },
  28536. "V2Event.server.connected": {
  28537. "type": "object",
  28538. "properties": {
  28539. "id": {
  28540. "type": "string",
  28541. "allOf": [
  28542. {
  28543. "pattern": "^evt_"
  28544. }
  28545. ]
  28546. },
  28547. "metadata": {
  28548. "anyOf": [
  28549. {
  28550. "type": "object"
  28551. },
  28552. {
  28553. "type": "null"
  28554. }
  28555. ]
  28556. },
  28557. "location": {
  28558. "anyOf": [
  28559. {
  28560. "$ref": "#/components/schemas/Location.Ref"
  28561. },
  28562. {
  28563. "type": "null"
  28564. }
  28565. ]
  28566. },
  28567. "type": {
  28568. "type": "string",
  28569. "enum": [
  28570. "server.connected"
  28571. ]
  28572. },
  28573. "data": {
  28574. "anyOf": [
  28575. {
  28576. "type": "object"
  28577. },
  28578. {
  28579. "type": "array"
  28580. }
  28581. ]
  28582. }
  28583. },
  28584. "required": [
  28585. "id",
  28586. "type",
  28587. "data"
  28588. ],
  28589. "additionalProperties": false
  28590. },
  28591. "V2Event": {
  28592. "anyOf": [
  28593. {
  28594. "$ref": "#/components/schemas/models-dev.refreshed"
  28595. },
  28596. {
  28597. "$ref": "#/components/schemas/integration.updated"
  28598. },
  28599. {
  28600. "$ref": "#/components/schemas/integration.connection.updated"
  28601. },
  28602. {
  28603. "$ref": "#/components/schemas/catalog.updated"
  28604. },
  28605. {
  28606. "$ref": "#/components/schemas/agent.updated"
  28607. },
  28608. {
  28609. "$ref": "#/components/schemas/session.created"
  28610. },
  28611. {
  28612. "$ref": "#/components/schemas/session.updated"
  28613. },
  28614. {
  28615. "$ref": "#/components/schemas/session.deleted1"
  28616. },
  28617. {
  28618. "$ref": "#/components/schemas/message.updated"
  28619. },
  28620. {
  28621. "$ref": "#/components/schemas/message.removed"
  28622. },
  28623. {
  28624. "$ref": "#/components/schemas/message.part.updated"
  28625. },
  28626. {
  28627. "$ref": "#/components/schemas/message.part.removed"
  28628. },
  28629. {
  28630. "$ref": "#/components/schemas/session.agent.selected"
  28631. },
  28632. {
  28633. "$ref": "#/components/schemas/session.model.selected"
  28634. },
  28635. {
  28636. "$ref": "#/components/schemas/session.moved"
  28637. },
  28638. {
  28639. "$ref": "#/components/schemas/session.renamed"
  28640. },
  28641. {
  28642. "$ref": "#/components/schemas/session.usage.updated"
  28643. },
  28644. {
  28645. "$ref": "#/components/schemas/session.deleted"
  28646. },
  28647. {
  28648. "$ref": "#/components/schemas/session.forked"
  28649. },
  28650. {
  28651. "$ref": "#/components/schemas/session.input.promoted"
  28652. },
  28653. {
  28654. "$ref": "#/components/schemas/session.input.admitted"
  28655. },
  28656. {
  28657. "$ref": "#/components/schemas/session.execution.started"
  28658. },
  28659. {
  28660. "$ref": "#/components/schemas/session.execution.succeeded"
  28661. },
  28662. {
  28663. "$ref": "#/components/schemas/session.execution.failed"
  28664. },
  28665. {
  28666. "$ref": "#/components/schemas/session.execution.interrupted"
  28667. },
  28668. {
  28669. "$ref": "#/components/schemas/session.instructions.updated"
  28670. },
  28671. {
  28672. "$ref": "#/components/schemas/session.synthetic"
  28673. },
  28674. {
  28675. "$ref": "#/components/schemas/session.skill.activated"
  28676. },
  28677. {
  28678. "$ref": "#/components/schemas/session.shell.started"
  28679. },
  28680. {
  28681. "$ref": "#/components/schemas/session.shell.ended"
  28682. },
  28683. {
  28684. "$ref": "#/components/schemas/session.step.started"
  28685. },
  28686. {
  28687. "$ref": "#/components/schemas/session.step.ended"
  28688. },
  28689. {
  28690. "$ref": "#/components/schemas/session.step.failed"
  28691. },
  28692. {
  28693. "$ref": "#/components/schemas/session.text.started"
  28694. },
  28695. {
  28696. "$ref": "#/components/schemas/session.text.delta"
  28697. },
  28698. {
  28699. "$ref": "#/components/schemas/session.text.ended"
  28700. },
  28701. {
  28702. "$ref": "#/components/schemas/session.reasoning.started"
  28703. },
  28704. {
  28705. "$ref": "#/components/schemas/session.reasoning.delta"
  28706. },
  28707. {
  28708. "$ref": "#/components/schemas/session.reasoning.ended"
  28709. },
  28710. {
  28711. "$ref": "#/components/schemas/session.tool.input.started"
  28712. },
  28713. {
  28714. "$ref": "#/components/schemas/session.tool.input.delta"
  28715. },
  28716. {
  28717. "$ref": "#/components/schemas/session.tool.input.ended"
  28718. },
  28719. {
  28720. "$ref": "#/components/schemas/session.tool.called"
  28721. },
  28722. {
  28723. "$ref": "#/components/schemas/session.tool.progress"
  28724. },
  28725. {
  28726. "$ref": "#/components/schemas/session.tool.success"
  28727. },
  28728. {
  28729. "$ref": "#/components/schemas/session.tool.failed"
  28730. },
  28731. {
  28732. "$ref": "#/components/schemas/session.retry.scheduled"
  28733. },
  28734. {
  28735. "$ref": "#/components/schemas/session.compaction.admitted"
  28736. },
  28737. {
  28738. "$ref": "#/components/schemas/session.compaction.started"
  28739. },
  28740. {
  28741. "$ref": "#/components/schemas/session.compaction.delta"
  28742. },
  28743. {
  28744. "$ref": "#/components/schemas/session.compaction.ended"
  28745. },
  28746. {
  28747. "$ref": "#/components/schemas/session.compaction.failed"
  28748. },
  28749. {
  28750. "$ref": "#/components/schemas/session.revert.staged"
  28751. },
  28752. {
  28753. "$ref": "#/components/schemas/session.revert.cleared"
  28754. },
  28755. {
  28756. "$ref": "#/components/schemas/session.revert.committed"
  28757. },
  28758. {
  28759. "$ref": "#/components/schemas/filesystem.changed"
  28760. },
  28761. {
  28762. "$ref": "#/components/schemas/reference.updated"
  28763. },
  28764. {
  28765. "$ref": "#/components/schemas/permission.asked"
  28766. },
  28767. {
  28768. "$ref": "#/components/schemas/permission.replied"
  28769. },
  28770. {
  28771. "$ref": "#/components/schemas/plugin.added"
  28772. },
  28773. {
  28774. "$ref": "#/components/schemas/plugin.updated"
  28775. },
  28776. {
  28777. "$ref": "#/components/schemas/project.directories.updated"
  28778. },
  28779. {
  28780. "$ref": "#/components/schemas/command.updated"
  28781. },
  28782. {
  28783. "$ref": "#/components/schemas/config.updated"
  28784. },
  28785. {
  28786. "$ref": "#/components/schemas/skill.updated"
  28787. },
  28788. {
  28789. "$ref": "#/components/schemas/pty.created"
  28790. },
  28791. {
  28792. "$ref": "#/components/schemas/pty.updated"
  28793. },
  28794. {
  28795. "$ref": "#/components/schemas/pty.exited"
  28796. },
  28797. {
  28798. "$ref": "#/components/schemas/pty.deleted"
  28799. },
  28800. {
  28801. "$ref": "#/components/schemas/shell.created"
  28802. },
  28803. {
  28804. "$ref": "#/components/schemas/shell.exited"
  28805. },
  28806. {
  28807. "$ref": "#/components/schemas/shell.deleted"
  28808. },
  28809. {
  28810. "$ref": "#/components/schemas/question.asked"
  28811. },
  28812. {
  28813. "$ref": "#/components/schemas/question.replied"
  28814. },
  28815. {
  28816. "$ref": "#/components/schemas/question.rejected"
  28817. },
  28818. {
  28819. "$ref": "#/components/schemas/form.created"
  28820. },
  28821. {
  28822. "$ref": "#/components/schemas/form.replied"
  28823. },
  28824. {
  28825. "$ref": "#/components/schemas/form.cancelled"
  28826. },
  28827. {
  28828. "$ref": "#/components/schemas/websearch.updated"
  28829. },
  28830. {
  28831. "$ref": "#/components/schemas/session.status"
  28832. },
  28833. {
  28834. "$ref": "#/components/schemas/session.idle"
  28835. },
  28836. {
  28837. "$ref": "#/components/schemas/tui.prompt.append"
  28838. },
  28839. {
  28840. "$ref": "#/components/schemas/tui.command.execute"
  28841. },
  28842. {
  28843. "$ref": "#/components/schemas/tui.toast.show"
  28844. },
  28845. {
  28846. "$ref": "#/components/schemas/tui.session.select"
  28847. },
  28848. {
  28849. "$ref": "#/components/schemas/installation.updated"
  28850. },
  28851. {
  28852. "$ref": "#/components/schemas/installation.update-available"
  28853. },
  28854. {
  28855. "$ref": "#/components/schemas/vcs.branch.updated"
  28856. },
  28857. {
  28858. "$ref": "#/components/schemas/mcp.status.changed"
  28859. },
  28860. {
  28861. "$ref": "#/components/schemas/mcp.resources.changed"
  28862. },
  28863. {
  28864. "$ref": "#/components/schemas/session.error"
  28865. },
  28866. {
  28867. "$ref": "#/components/schemas/V2Event.server.connected"
  28868. }
  28869. ]
  28870. },
  28871. "V2EventJsonString": {
  28872. "type": "string",
  28873. "contentSchema": {
  28874. "$ref": "#/components/schemas/V2Event"
  28875. },
  28876. "contentMediaType": "application/json"
  28877. },
  28878. "PtyNotFoundError": {
  28879. "type": "object",
  28880. "properties": {
  28881. "_tag": {
  28882. "type": "string",
  28883. "enum": [
  28884. "PtyNotFoundError"
  28885. ]
  28886. },
  28887. "ptyID": {
  28888. "type": "string"
  28889. },
  28890. "message": {
  28891. "type": "string"
  28892. }
  28893. },
  28894. "required": [
  28895. "_tag",
  28896. "ptyID",
  28897. "message"
  28898. ],
  28899. "additionalProperties": false
  28900. },
  28901. "PtyTicket.ConnectToken": {
  28902. "type": "object",
  28903. "properties": {
  28904. "ticket": {
  28905. "type": "string"
  28906. },
  28907. "expires_in": {
  28908. "type": "integer",
  28909. "allOf": [
  28910. {
  28911. "exclusiveMinimum": 0
  28912. }
  28913. ]
  28914. }
  28915. },
  28916. "required": [
  28917. "ticket",
  28918. "expires_in"
  28919. ],
  28920. "additionalProperties": false
  28921. },
  28922. "ForbiddenError": {
  28923. "type": "object",
  28924. "properties": {
  28925. "_tag": {
  28926. "type": "string",
  28927. "enum": [
  28928. "ForbiddenError"
  28929. ]
  28930. },
  28931. "message": {
  28932. "type": "string"
  28933. }
  28934. },
  28935. "required": [
  28936. "_tag",
  28937. "message"
  28938. ],
  28939. "additionalProperties": false
  28940. },
  28941. "Shell.Info1": {
  28942. "type": "object",
  28943. "properties": {
  28944. "id": {
  28945. "type": "string",
  28946. "allOf": [
  28947. {
  28948. "pattern": "^sh_"
  28949. }
  28950. ]
  28951. },
  28952. "status": {
  28953. "type": "string",
  28954. "enum": [
  28955. "running",
  28956. "exited",
  28957. "timeout",
  28958. "killed"
  28959. ]
  28960. },
  28961. "command": {
  28962. "type": "string"
  28963. },
  28964. "cwd": {
  28965. "type": "string"
  28966. },
  28967. "shell": {
  28968. "type": "string"
  28969. },
  28970. "file": {
  28971. "type": "string"
  28972. },
  28973. "pid": {
  28974. "type": "integer",
  28975. "allOf": [
  28976. {
  28977. "minimum": 0
  28978. }
  28979. ]
  28980. },
  28981. "exit": {
  28982. "type": "number"
  28983. },
  28984. "metadata": {
  28985. "type": "object"
  28986. },
  28987. "time": {
  28988. "type": "object",
  28989. "properties": {
  28990. "started": {
  28991. "type": "number"
  28992. },
  28993. "completed": {
  28994. "type": "number"
  28995. }
  28996. },
  28997. "required": [
  28998. "started"
  28999. ],
  29000. "additionalProperties": false
  29001. }
  29002. },
  29003. "required": [
  29004. "id",
  29005. "status",
  29006. "command",
  29007. "cwd",
  29008. "shell",
  29009. "file",
  29010. "metadata",
  29011. "time"
  29012. ],
  29013. "additionalProperties": false
  29014. },
  29015. "ShellNotFoundError": {
  29016. "type": "object",
  29017. "properties": {
  29018. "_tag": {
  29019. "type": "string",
  29020. "enum": [
  29021. "ShellNotFoundError"
  29022. ]
  29023. },
  29024. "id": {
  29025. "type": "string"
  29026. },
  29027. "message": {
  29028. "type": "string"
  29029. }
  29030. },
  29031. "required": [
  29032. "_tag",
  29033. "id",
  29034. "message"
  29035. ],
  29036. "additionalProperties": false
  29037. },
  29038. "Question.Request": {
  29039. "type": "object",
  29040. "properties": {
  29041. "id": {
  29042. "type": "string",
  29043. "allOf": [
  29044. {
  29045. "pattern": "^que"
  29046. }
  29047. ]
  29048. },
  29049. "sessionID": {
  29050. "type": "string",
  29051. "allOf": [
  29052. {
  29053. "pattern": "^ses"
  29054. }
  29055. ]
  29056. },
  29057. "questions": {
  29058. "type": "array",
  29059. "items": {
  29060. "$ref": "#/components/schemas/Question.Info"
  29061. },
  29062. "description": "Questions to ask"
  29063. },
  29064. "tool": {
  29065. "$ref": "#/components/schemas/Question.Tool"
  29066. }
  29067. },
  29068. "required": [
  29069. "id",
  29070. "sessionID",
  29071. "questions"
  29072. ],
  29073. "additionalProperties": false
  29074. },
  29075. "Question.Reply": {
  29076. "type": "object",
  29077. "properties": {
  29078. "answers": {
  29079. "type": "array",
  29080. "items": {
  29081. "$ref": "#/components/schemas/Question.Answer"
  29082. },
  29083. "description": "User answers in order of questions (each answer is an array of selected labels)"
  29084. }
  29085. },
  29086. "required": [
  29087. "answers"
  29088. ],
  29089. "additionalProperties": false
  29090. },
  29091. "QuestionNotFoundError": {
  29092. "type": "object",
  29093. "properties": {
  29094. "_tag": {
  29095. "type": "string",
  29096. "enum": [
  29097. "QuestionNotFoundError"
  29098. ]
  29099. },
  29100. "requestID": {
  29101. "type": "string"
  29102. },
  29103. "message": {
  29104. "type": "string"
  29105. }
  29106. },
  29107. "required": [
  29108. "_tag",
  29109. "requestID",
  29110. "message"
  29111. ],
  29112. "additionalProperties": false
  29113. },
  29114. "Reference.LocalSource": {
  29115. "type": "object",
  29116. "properties": {
  29117. "type": {
  29118. "type": "string",
  29119. "enum": [
  29120. "local"
  29121. ]
  29122. },
  29123. "path": {
  29124. "type": "string"
  29125. },
  29126. "description": {
  29127. "type": "string"
  29128. },
  29129. "hidden": {
  29130. "type": "boolean"
  29131. }
  29132. },
  29133. "required": [
  29134. "type",
  29135. "path"
  29136. ],
  29137. "additionalProperties": false
  29138. },
  29139. "Reference.GitSource": {
  29140. "type": "object",
  29141. "properties": {
  29142. "type": {
  29143. "type": "string",
  29144. "enum": [
  29145. "git"
  29146. ]
  29147. },
  29148. "repository": {
  29149. "type": "string"
  29150. },
  29151. "branch": {
  29152. "type": "string"
  29153. },
  29154. "description": {
  29155. "type": "string"
  29156. },
  29157. "hidden": {
  29158. "type": "boolean"
  29159. }
  29160. },
  29161. "required": [
  29162. "type",
  29163. "repository"
  29164. ],
  29165. "additionalProperties": false
  29166. },
  29167. "Reference.Source": {
  29168. "anyOf": [
  29169. {
  29170. "$ref": "#/components/schemas/Reference.LocalSource"
  29171. },
  29172. {
  29173. "$ref": "#/components/schemas/Reference.GitSource"
  29174. }
  29175. ]
  29176. },
  29177. "Reference.Info": {
  29178. "type": "object",
  29179. "properties": {
  29180. "name": {
  29181. "type": "string"
  29182. },
  29183. "path": {
  29184. "type": "string"
  29185. },
  29186. "description": {
  29187. "type": "string"
  29188. },
  29189. "hidden": {
  29190. "type": "boolean"
  29191. },
  29192. "source": {
  29193. "$ref": "#/components/schemas/Reference.Source"
  29194. }
  29195. },
  29196. "required": [
  29197. "name",
  29198. "path",
  29199. "source"
  29200. ],
  29201. "additionalProperties": false
  29202. },
  29203. "ProjectCopy.Copy": {
  29204. "type": "object",
  29205. "properties": {
  29206. "directory": {
  29207. "type": "string"
  29208. }
  29209. },
  29210. "required": [
  29211. "directory"
  29212. ],
  29213. "additionalProperties": false
  29214. },
  29215. "ProjectCopyError": {
  29216. "type": "object",
  29217. "properties": {
  29218. "name": {
  29219. "type": "string",
  29220. "enum": [
  29221. "ProjectCopyError"
  29222. ]
  29223. },
  29224. "data": {
  29225. "type": "object",
  29226. "properties": {
  29227. "message": {
  29228. "type": "string"
  29229. },
  29230. "forceRequired": {
  29231. "anyOf": [
  29232. {
  29233. "type": "boolean"
  29234. },
  29235. {
  29236. "type": "null"
  29237. }
  29238. ]
  29239. }
  29240. },
  29241. "required": [
  29242. "message"
  29243. ],
  29244. "additionalProperties": false
  29245. }
  29246. },
  29247. "required": [
  29248. "name",
  29249. "data"
  29250. ],
  29251. "additionalProperties": false
  29252. },
  29253. "Vcs.Branch": {
  29254. "type": "object",
  29255. "properties": {
  29256. "current": {
  29257. "type": "string"
  29258. },
  29259. "default": {
  29260. "type": "string"
  29261. }
  29262. },
  29263. "additionalProperties": false
  29264. },
  29265. "Vcs.Info": {
  29266. "type": "object",
  29267. "properties": {
  29268. "branch": {
  29269. "$ref": "#/components/schemas/Vcs.Branch"
  29270. }
  29271. },
  29272. "required": [
  29273. "branch"
  29274. ],
  29275. "additionalProperties": false
  29276. },
  29277. "Vcs.FileStatus": {
  29278. "type": "object",
  29279. "properties": {
  29280. "file": {
  29281. "type": "string"
  29282. },
  29283. "additions": {
  29284. "type": "integer",
  29285. "allOf": [
  29286. {
  29287. "minimum": 0
  29288. }
  29289. ]
  29290. },
  29291. "deletions": {
  29292. "type": "integer",
  29293. "allOf": [
  29294. {
  29295. "minimum": 0
  29296. }
  29297. ]
  29298. },
  29299. "status": {
  29300. "type": "string",
  29301. "enum": [
  29302. "added",
  29303. "deleted",
  29304. "modified"
  29305. ]
  29306. }
  29307. },
  29308. "required": [
  29309. "file",
  29310. "additions",
  29311. "deletions",
  29312. "status"
  29313. ],
  29314. "additionalProperties": false
  29315. },
  29316. "Vcs.Mode": {
  29317. "type": "string",
  29318. "enum": [
  29319. "working",
  29320. "branch"
  29321. ]
  29322. },
  29323. "WebSearch.Provider": {
  29324. "type": "object",
  29325. "properties": {
  29326. "id": {
  29327. "type": "string"
  29328. },
  29329. "name": {
  29330. "type": "string"
  29331. }
  29332. },
  29333. "required": [
  29334. "id",
  29335. "name"
  29336. ],
  29337. "additionalProperties": false
  29338. },
  29339. "WebSearch.Result": {
  29340. "type": "object",
  29341. "properties": {
  29342. "url": {
  29343. "type": "string"
  29344. },
  29345. "title": {
  29346. "type": "string"
  29347. },
  29348. "content": {
  29349. "type": "string"
  29350. },
  29351. "time": {
  29352. "type": "object",
  29353. "properties": {
  29354. "published": {
  29355. "type": "number"
  29356. }
  29357. },
  29358. "additionalProperties": false
  29359. }
  29360. },
  29361. "required": [
  29362. "url",
  29363. "time"
  29364. ],
  29365. "additionalProperties": false
  29366. },
  29367. "WebSearch.Response": {
  29368. "type": "object",
  29369. "properties": {
  29370. "providerID": {
  29371. "type": "string"
  29372. },
  29373. "results": {
  29374. "type": "array",
  29375. "items": {
  29376. "$ref": "#/components/schemas/WebSearch.Result"
  29377. }
  29378. }
  29379. },
  29380. "required": [
  29381. "providerID",
  29382. "results"
  29383. ],
  29384. "additionalProperties": false
  29385. }
  29386. },
  29387. "securitySchemes": {}
  29388. },
  29389. "security": [],
  29390. "tags": [
  29391. {
  29392. "name": "health"
  29393. },
  29394. {
  29395. "name": "server"
  29396. },
  29397. {
  29398. "name": "location"
  29399. },
  29400. {
  29401. "name": "agent"
  29402. },
  29403. {
  29404. "name": "plugin",
  29405. "description": "Experimental plugin routes."
  29406. },
  29407. {
  29408. "name": "session",
  29409. "description": "Experimental session routes."
  29410. },
  29411. {
  29412. "name": "session",
  29413. "description": "Experimental message routes."
  29414. },
  29415. {
  29416. "name": "model",
  29417. "description": "Experimental model routes."
  29418. },
  29419. {
  29420. "name": "generate",
  29421. "description": "Experimental one-shot generation routes."
  29422. },
  29423. {
  29424. "name": "provider",
  29425. "description": "Experimental provider routes."
  29426. },
  29427. {
  29428. "name": "integration",
  29429. "description": "Integration discovery and authentication routes."
  29430. },
  29431. {
  29432. "name": "mcp",
  29433. "description": "MCP server and resource routes."
  29434. },
  29435. {
  29436. "name": "credential"
  29437. },
  29438. {
  29439. "name": "project",
  29440. "description": "Location-scoped project routes."
  29441. },
  29442. {
  29443. "name": "form",
  29444. "description": "Session form routes."
  29445. },
  29446. {
  29447. "name": "permission",
  29448. "description": "Experimental permission routes."
  29449. },
  29450. {
  29451. "name": "filesystem",
  29452. "description": "Experimental location-scoped filesystem routes."
  29453. },
  29454. {
  29455. "name": "command",
  29456. "description": "Experimental command routes."
  29457. },
  29458. {
  29459. "name": "skill",
  29460. "description": "Experimental skill routes."
  29461. },
  29462. {
  29463. "name": "event",
  29464. "description": "Experimental event stream routes."
  29465. },
  29466. {
  29467. "name": "pty",
  29468. "description": "Experimental location-scoped PTY routes."
  29469. },
  29470. {
  29471. "name": "shell",
  29472. "description": "Experimental location-scoped shell command routes."
  29473. },
  29474. {
  29475. "name": "question",
  29476. "description": "Experimental session question routes."
  29477. },
  29478. {
  29479. "name": "reference",
  29480. "description": "Location-scoped project references."
  29481. },
  29482. {
  29483. "name": "projectCopy",
  29484. "description": "Project copy management routes."
  29485. },
  29486. {
  29487. "name": "vcs",
  29488. "description": "Location-scoped version control routes."
  29489. },
  29490. {
  29491. "name": "debug"
  29492. },
  29493. {
  29494. "name": "websearch",
  29495. "description": "Location-scoped web search routes."
  29496. }
  29497. ]
  29498. }