openapi.json 667 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172
  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": "Success",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "type": "object",
  24. "properties": {
  25. "healthy": {
  26. "type": "boolean",
  27. "enum": [
  28. true
  29. ]
  30. },
  31. "version": {
  32. "type": "string"
  33. },
  34. "pid": {
  35. "type": "integer",
  36. "allOf": [
  37. {
  38. "exclusiveMinimum": 0
  39. }
  40. ]
  41. }
  42. },
  43. "required": [
  44. "healthy",
  45. "version",
  46. "pid"
  47. ],
  48. "additionalProperties": false
  49. }
  50. }
  51. }
  52. },
  53. "400": {
  54. "description": "InvalidRequestError",
  55. "content": {
  56. "application/json": {
  57. "schema": {
  58. "$ref": "#/components/schemas/InvalidRequestError"
  59. }
  60. }
  61. }
  62. },
  63. "401": {
  64. "description": "UnauthorizedError",
  65. "content": {
  66. "application/json": {
  67. "schema": {
  68. "$ref": "#/components/schemas/UnauthorizedError"
  69. }
  70. }
  71. }
  72. }
  73. },
  74. "description": "Check whether the API server is ready to accept requests.",
  75. "summary": "Check server health"
  76. }
  77. },
  78. "/api/location": {
  79. "get": {
  80. "tags": [
  81. "location"
  82. ],
  83. "operationId": "v2.location.get",
  84. "parameters": [
  85. {
  86. "name": "location",
  87. "in": "query",
  88. "schema": {
  89. "anyOf": [
  90. {
  91. "type": "object",
  92. "properties": {
  93. "directory": {
  94. "anyOf": [
  95. {
  96. "type": "string"
  97. },
  98. {
  99. "type": "null"
  100. }
  101. ]
  102. },
  103. "workspace": {
  104. "anyOf": [
  105. {
  106. "type": "string"
  107. },
  108. {
  109. "type": "null"
  110. }
  111. ]
  112. }
  113. },
  114. "additionalProperties": false
  115. },
  116. {
  117. "type": "null"
  118. }
  119. ]
  120. },
  121. "required": false,
  122. "style": "deepObject",
  123. "explode": true
  124. }
  125. ],
  126. "security": [],
  127. "responses": {
  128. "200": {
  129. "description": "Location.Info",
  130. "content": {
  131. "application/json": {
  132. "schema": {
  133. "$ref": "#/components/schemas/Location.Info"
  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": "Resolve the requested location or the server default location.",
  160. "summary": "Get location"
  161. }
  162. },
  163. "/api/agent": {
  164. "get": {
  165. "tags": [
  166. "agent"
  167. ],
  168. "operationId": "v2.agent.list",
  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": "Success",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "type": "object",
  219. "properties": {
  220. "location": {
  221. "$ref": "#/components/schemas/Location.Info"
  222. },
  223. "data": {
  224. "type": "array",
  225. "items": {
  226. "$ref": "#/components/schemas/Agent.Info"
  227. }
  228. }
  229. },
  230. "required": [
  231. "location",
  232. "data"
  233. ],
  234. "additionalProperties": false
  235. }
  236. }
  237. }
  238. },
  239. "400": {
  240. "description": "InvalidRequestError",
  241. "content": {
  242. "application/json": {
  243. "schema": {
  244. "$ref": "#/components/schemas/InvalidRequestError"
  245. }
  246. }
  247. }
  248. },
  249. "401": {
  250. "description": "UnauthorizedError",
  251. "content": {
  252. "application/json": {
  253. "schema": {
  254. "$ref": "#/components/schemas/UnauthorizedError"
  255. }
  256. }
  257. }
  258. }
  259. },
  260. "description": "Retrieve currently registered agents.",
  261. "summary": "List agents"
  262. }
  263. },
  264. "/api/plugin": {
  265. "get": {
  266. "tags": [
  267. "plugin"
  268. ],
  269. "operationId": "v2.plugin.list",
  270. "parameters": [
  271. {
  272. "name": "location",
  273. "in": "query",
  274. "schema": {
  275. "anyOf": [
  276. {
  277. "type": "object",
  278. "properties": {
  279. "directory": {
  280. "anyOf": [
  281. {
  282. "type": "string"
  283. },
  284. {
  285. "type": "null"
  286. }
  287. ]
  288. },
  289. "workspace": {
  290. "anyOf": [
  291. {
  292. "type": "string"
  293. },
  294. {
  295. "type": "null"
  296. }
  297. ]
  298. }
  299. },
  300. "additionalProperties": false
  301. },
  302. {
  303. "type": "null"
  304. }
  305. ]
  306. },
  307. "required": false,
  308. "style": "deepObject",
  309. "explode": true
  310. }
  311. ],
  312. "security": [],
  313. "responses": {
  314. "200": {
  315. "description": "Success",
  316. "content": {
  317. "application/json": {
  318. "schema": {
  319. "type": "object",
  320. "properties": {
  321. "location": {
  322. "$ref": "#/components/schemas/Location.Info"
  323. },
  324. "data": {
  325. "type": "array",
  326. "items": {
  327. "$ref": "#/components/schemas/Plugin.Info"
  328. }
  329. }
  330. },
  331. "required": [
  332. "location",
  333. "data"
  334. ],
  335. "additionalProperties": false
  336. }
  337. }
  338. }
  339. },
  340. "400": {
  341. "description": "InvalidRequestError",
  342. "content": {
  343. "application/json": {
  344. "schema": {
  345. "$ref": "#/components/schemas/InvalidRequestError"
  346. }
  347. }
  348. }
  349. },
  350. "401": {
  351. "description": "UnauthorizedError",
  352. "content": {
  353. "application/json": {
  354. "schema": {
  355. "$ref": "#/components/schemas/UnauthorizedError"
  356. }
  357. }
  358. }
  359. }
  360. },
  361. "description": "Retrieve currently loaded plugins.",
  362. "summary": "List plugins"
  363. }
  364. },
  365. "/api/session": {
  366. "get": {
  367. "tags": [
  368. "session"
  369. ],
  370. "operationId": "v2.session.list",
  371. "parameters": [
  372. {
  373. "name": "workspace",
  374. "in": "query",
  375. "schema": {
  376. "anyOf": [
  377. {
  378. "type": "string",
  379. "allOf": [
  380. {
  381. "pattern": "^wrk"
  382. }
  383. ]
  384. },
  385. {
  386. "type": "null"
  387. }
  388. ]
  389. },
  390. "required": false
  391. },
  392. {
  393. "name": "limit",
  394. "in": "query",
  395. "schema": {
  396. "anyOf": [
  397. {
  398. "type": "string"
  399. },
  400. {
  401. "type": "null"
  402. }
  403. ],
  404. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  405. },
  406. "required": false
  407. },
  408. {
  409. "name": "order",
  410. "in": "query",
  411. "schema": {
  412. "anyOf": [
  413. {
  414. "type": "string",
  415. "enum": [
  416. "asc",
  417. "desc"
  418. ]
  419. },
  420. {
  421. "type": "null"
  422. }
  423. ],
  424. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  425. },
  426. "required": false
  427. },
  428. {
  429. "name": "search",
  430. "in": "query",
  431. "schema": {
  432. "anyOf": [
  433. {
  434. "type": "string"
  435. },
  436. {
  437. "type": "null"
  438. }
  439. ]
  440. },
  441. "required": false
  442. },
  443. {
  444. "name": "parentID",
  445. "in": "query",
  446. "schema": {
  447. "anyOf": [
  448. {
  449. "anyOf": [
  450. {
  451. "type": "string",
  452. "allOf": [
  453. {
  454. "pattern": "^ses"
  455. }
  456. ]
  457. },
  458. {
  459. "type": "string",
  460. "enum": [
  461. "null"
  462. ]
  463. }
  464. ],
  465. "description": "Filter by parent session. Use null to return only root sessions."
  466. },
  467. {
  468. "type": "null"
  469. }
  470. ]
  471. },
  472. "required": false
  473. },
  474. {
  475. "name": "directory",
  476. "in": "query",
  477. "schema": {
  478. "anyOf": [
  479. {
  480. "type": "string"
  481. },
  482. {
  483. "type": "null"
  484. }
  485. ]
  486. },
  487. "required": false
  488. },
  489. {
  490. "name": "project",
  491. "in": "query",
  492. "schema": {
  493. "anyOf": [
  494. {
  495. "type": "string"
  496. },
  497. {
  498. "type": "null"
  499. }
  500. ]
  501. },
  502. "required": false
  503. },
  504. {
  505. "name": "subpath",
  506. "in": "query",
  507. "schema": {
  508. "anyOf": [
  509. {
  510. "type": "string"
  511. },
  512. {
  513. "type": "null"
  514. }
  515. ]
  516. },
  517. "required": false
  518. },
  519. {
  520. "name": "cursor",
  521. "in": "query",
  522. "schema": {
  523. "anyOf": [
  524. {
  525. "type": "string",
  526. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  527. },
  528. {
  529. "type": "null"
  530. }
  531. ]
  532. },
  533. "required": false
  534. }
  535. ],
  536. "security": [],
  537. "responses": {
  538. "200": {
  539. "description": "SessionsResponse",
  540. "content": {
  541. "application/json": {
  542. "schema": {
  543. "$ref": "#/components/schemas/SessionsResponse"
  544. }
  545. }
  546. }
  547. },
  548. "400": {
  549. "description": "InvalidCursorError | InvalidRequestError",
  550. "content": {
  551. "application/json": {
  552. "schema": {
  553. "anyOf": [
  554. {
  555. "$ref": "#/components/schemas/InvalidCursorError"
  556. },
  557. {
  558. "$ref": "#/components/schemas/InvalidRequestError1"
  559. },
  560. {
  561. "$ref": "#/components/schemas/InvalidRequestError"
  562. }
  563. ]
  564. }
  565. }
  566. }
  567. },
  568. "401": {
  569. "description": "UnauthorizedError",
  570. "content": {
  571. "application/json": {
  572. "schema": {
  573. "$ref": "#/components/schemas/UnauthorizedError"
  574. }
  575. }
  576. }
  577. }
  578. },
  579. "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.",
  580. "summary": "List sessions"
  581. },
  582. "post": {
  583. "tags": [
  584. "session"
  585. ],
  586. "operationId": "v2.session.create",
  587. "parameters": [],
  588. "security": [],
  589. "responses": {
  590. "200": {
  591. "description": "Success",
  592. "content": {
  593. "application/json": {
  594. "schema": {
  595. "type": "object",
  596. "properties": {
  597. "data": {
  598. "$ref": "#/components/schemas/Session.Info"
  599. }
  600. },
  601. "required": [
  602. "data"
  603. ],
  604. "additionalProperties": false
  605. }
  606. }
  607. }
  608. },
  609. "400": {
  610. "description": "InvalidRequestError",
  611. "content": {
  612. "application/json": {
  613. "schema": {
  614. "$ref": "#/components/schemas/InvalidRequestError"
  615. }
  616. }
  617. }
  618. },
  619. "401": {
  620. "description": "UnauthorizedError",
  621. "content": {
  622. "application/json": {
  623. "schema": {
  624. "$ref": "#/components/schemas/UnauthorizedError"
  625. }
  626. }
  627. }
  628. }
  629. },
  630. "description": "Create a session at the requested location.",
  631. "summary": "Create session",
  632. "requestBody": {
  633. "content": {
  634. "application/json": {
  635. "schema": {
  636. "type": "object",
  637. "properties": {
  638. "id": {
  639. "anyOf": [
  640. {
  641. "type": "string",
  642. "allOf": [
  643. {
  644. "pattern": "^ses"
  645. }
  646. ]
  647. },
  648. {
  649. "type": "null"
  650. }
  651. ]
  652. },
  653. "agent": {
  654. "anyOf": [
  655. {
  656. "type": "string"
  657. },
  658. {
  659. "type": "null"
  660. }
  661. ]
  662. },
  663. "model": {
  664. "anyOf": [
  665. {
  666. "$ref": "#/components/schemas/Model.Ref"
  667. },
  668. {
  669. "type": "null"
  670. }
  671. ]
  672. },
  673. "location": {
  674. "anyOf": [
  675. {
  676. "$ref": "#/components/schemas/Location.Ref"
  677. },
  678. {
  679. "type": "null"
  680. }
  681. ]
  682. }
  683. },
  684. "additionalProperties": false
  685. }
  686. }
  687. },
  688. "required": true
  689. }
  690. }
  691. },
  692. "/api/session/active": {
  693. "get": {
  694. "tags": [
  695. "session"
  696. ],
  697. "operationId": "v2.session.active",
  698. "parameters": [],
  699. "security": [],
  700. "responses": {
  701. "200": {
  702. "description": "Success",
  703. "content": {
  704. "application/json": {
  705. "schema": {
  706. "type": "object",
  707. "properties": {
  708. "data": {
  709. "type": "object",
  710. "patternProperties": {
  711. "^ses": {
  712. "$ref": "#/components/schemas/SessionActive"
  713. }
  714. }
  715. }
  716. },
  717. "required": [
  718. "data"
  719. ],
  720. "additionalProperties": false
  721. }
  722. }
  723. }
  724. },
  725. "400": {
  726. "description": "InvalidRequestError",
  727. "content": {
  728. "application/json": {
  729. "schema": {
  730. "$ref": "#/components/schemas/InvalidRequestError"
  731. }
  732. }
  733. }
  734. },
  735. "401": {
  736. "description": "UnauthorizedError",
  737. "content": {
  738. "application/json": {
  739. "schema": {
  740. "$ref": "#/components/schemas/UnauthorizedError"
  741. }
  742. }
  743. }
  744. }
  745. },
  746. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  747. "summary": "List active sessions"
  748. }
  749. },
  750. "/api/session/{sessionID}": {
  751. "get": {
  752. "tags": [
  753. "session"
  754. ],
  755. "operationId": "v2.session.get",
  756. "parameters": [
  757. {
  758. "name": "sessionID",
  759. "in": "path",
  760. "schema": {
  761. "type": "string",
  762. "allOf": [
  763. {
  764. "pattern": "^ses"
  765. }
  766. ]
  767. },
  768. "required": true
  769. }
  770. ],
  771. "security": [],
  772. "responses": {
  773. "200": {
  774. "description": "Success",
  775. "content": {
  776. "application/json": {
  777. "schema": {
  778. "type": "object",
  779. "properties": {
  780. "data": {
  781. "$ref": "#/components/schemas/Session.Info"
  782. }
  783. },
  784. "required": [
  785. "data"
  786. ],
  787. "additionalProperties": false
  788. }
  789. }
  790. }
  791. },
  792. "400": {
  793. "description": "InvalidRequestError",
  794. "content": {
  795. "application/json": {
  796. "schema": {
  797. "$ref": "#/components/schemas/InvalidRequestError"
  798. }
  799. }
  800. }
  801. },
  802. "401": {
  803. "description": "UnauthorizedError",
  804. "content": {
  805. "application/json": {
  806. "schema": {
  807. "$ref": "#/components/schemas/UnauthorizedError"
  808. }
  809. }
  810. }
  811. },
  812. "404": {
  813. "description": "SessionNotFoundError",
  814. "content": {
  815. "application/json": {
  816. "schema": {
  817. "anyOf": [
  818. {
  819. "$ref": "#/components/schemas/SessionNotFoundError"
  820. },
  821. {
  822. "$ref": "#/components/schemas/SessionNotFoundError"
  823. }
  824. ]
  825. }
  826. }
  827. }
  828. }
  829. },
  830. "description": "Retrieve a session by ID.",
  831. "summary": "Get session"
  832. },
  833. "delete": {
  834. "tags": [
  835. "session"
  836. ],
  837. "operationId": "v2.session.remove",
  838. "parameters": [
  839. {
  840. "name": "sessionID",
  841. "in": "path",
  842. "schema": {
  843. "type": "string",
  844. "allOf": [
  845. {
  846. "pattern": "^ses"
  847. }
  848. ]
  849. },
  850. "required": true
  851. }
  852. ],
  853. "security": [],
  854. "responses": {
  855. "204": {
  856. "description": "<No Content>"
  857. },
  858. "400": {
  859. "description": "InvalidRequestError",
  860. "content": {
  861. "application/json": {
  862. "schema": {
  863. "$ref": "#/components/schemas/InvalidRequestError"
  864. }
  865. }
  866. }
  867. },
  868. "401": {
  869. "description": "UnauthorizedError",
  870. "content": {
  871. "application/json": {
  872. "schema": {
  873. "$ref": "#/components/schemas/UnauthorizedError"
  874. }
  875. }
  876. }
  877. },
  878. "404": {
  879. "description": "SessionNotFoundError",
  880. "content": {
  881. "application/json": {
  882. "schema": {
  883. "anyOf": [
  884. {
  885. "$ref": "#/components/schemas/SessionNotFoundError"
  886. },
  887. {
  888. "$ref": "#/components/schemas/SessionNotFoundError"
  889. }
  890. ]
  891. }
  892. }
  893. }
  894. }
  895. },
  896. "description": "Delete a session and its child sessions.",
  897. "summary": "Delete session"
  898. }
  899. },
  900. "/api/session/{sessionID}/fork": {
  901. "post": {
  902. "tags": [
  903. "session"
  904. ],
  905. "operationId": "v2.session.fork",
  906. "parameters": [
  907. {
  908. "name": "sessionID",
  909. "in": "path",
  910. "schema": {
  911. "type": "string",
  912. "allOf": [
  913. {
  914. "pattern": "^ses"
  915. }
  916. ]
  917. },
  918. "required": true
  919. }
  920. ],
  921. "security": [],
  922. "responses": {
  923. "200": {
  924. "description": "Success",
  925. "content": {
  926. "application/json": {
  927. "schema": {
  928. "type": "object",
  929. "properties": {
  930. "data": {
  931. "$ref": "#/components/schemas/Session.Info"
  932. }
  933. },
  934. "required": [
  935. "data"
  936. ],
  937. "additionalProperties": false
  938. }
  939. }
  940. }
  941. },
  942. "400": {
  943. "description": "InvalidRequestError",
  944. "content": {
  945. "application/json": {
  946. "schema": {
  947. "$ref": "#/components/schemas/InvalidRequestError"
  948. }
  949. }
  950. }
  951. },
  952. "401": {
  953. "description": "UnauthorizedError",
  954. "content": {
  955. "application/json": {
  956. "schema": {
  957. "$ref": "#/components/schemas/UnauthorizedError"
  958. }
  959. }
  960. }
  961. },
  962. "404": {
  963. "description": "SessionNotFoundError | MessageNotFoundError",
  964. "content": {
  965. "application/json": {
  966. "schema": {
  967. "anyOf": [
  968. {
  969. "$ref": "#/components/schemas/MessageNotFoundError"
  970. },
  971. {
  972. "$ref": "#/components/schemas/SessionNotFoundError"
  973. },
  974. {
  975. "$ref": "#/components/schemas/SessionNotFoundError"
  976. }
  977. ]
  978. }
  979. }
  980. }
  981. }
  982. },
  983. "description": "Create a child session by copying projected history from the parent. When messageID is supplied, copy messages before that boundary.",
  984. "summary": "Fork session",
  985. "requestBody": {
  986. "content": {
  987. "application/json": {
  988. "schema": {
  989. "type": "object",
  990. "properties": {
  991. "messageID": {
  992. "anyOf": [
  993. {
  994. "type": "string",
  995. "allOf": [
  996. {
  997. "pattern": "^msg_"
  998. }
  999. ]
  1000. },
  1001. {
  1002. "type": "null"
  1003. }
  1004. ]
  1005. }
  1006. },
  1007. "additionalProperties": false
  1008. }
  1009. }
  1010. },
  1011. "required": true
  1012. }
  1013. }
  1014. },
  1015. "/api/session/{sessionID}/agent": {
  1016. "post": {
  1017. "tags": [
  1018. "session"
  1019. ],
  1020. "operationId": "v2.session.switchAgent",
  1021. "parameters": [
  1022. {
  1023. "name": "sessionID",
  1024. "in": "path",
  1025. "schema": {
  1026. "type": "string",
  1027. "allOf": [
  1028. {
  1029. "pattern": "^ses"
  1030. }
  1031. ]
  1032. },
  1033. "required": true
  1034. }
  1035. ],
  1036. "security": [],
  1037. "responses": {
  1038. "204": {
  1039. "description": "<No Content>"
  1040. },
  1041. "400": {
  1042. "description": "InvalidRequestError",
  1043. "content": {
  1044. "application/json": {
  1045. "schema": {
  1046. "$ref": "#/components/schemas/InvalidRequestError"
  1047. }
  1048. }
  1049. }
  1050. },
  1051. "401": {
  1052. "description": "UnauthorizedError",
  1053. "content": {
  1054. "application/json": {
  1055. "schema": {
  1056. "$ref": "#/components/schemas/UnauthorizedError"
  1057. }
  1058. }
  1059. }
  1060. },
  1061. "404": {
  1062. "description": "SessionNotFoundError",
  1063. "content": {
  1064. "application/json": {
  1065. "schema": {
  1066. "anyOf": [
  1067. {
  1068. "$ref": "#/components/schemas/SessionNotFoundError"
  1069. },
  1070. {
  1071. "$ref": "#/components/schemas/SessionNotFoundError"
  1072. }
  1073. ]
  1074. }
  1075. }
  1076. }
  1077. }
  1078. },
  1079. "description": "Switch the agent used by subsequent provider turns.",
  1080. "summary": "Switch session agent",
  1081. "requestBody": {
  1082. "content": {
  1083. "application/json": {
  1084. "schema": {
  1085. "type": "object",
  1086. "properties": {
  1087. "agent": {
  1088. "type": "string"
  1089. }
  1090. },
  1091. "required": [
  1092. "agent"
  1093. ],
  1094. "additionalProperties": false
  1095. }
  1096. }
  1097. },
  1098. "required": true
  1099. }
  1100. }
  1101. },
  1102. "/api/session/{sessionID}/model": {
  1103. "post": {
  1104. "tags": [
  1105. "session"
  1106. ],
  1107. "operationId": "v2.session.switchModel",
  1108. "parameters": [
  1109. {
  1110. "name": "sessionID",
  1111. "in": "path",
  1112. "schema": {
  1113. "type": "string",
  1114. "allOf": [
  1115. {
  1116. "pattern": "^ses"
  1117. }
  1118. ]
  1119. },
  1120. "required": true
  1121. }
  1122. ],
  1123. "security": [],
  1124. "responses": {
  1125. "204": {
  1126. "description": "<No Content>"
  1127. },
  1128. "400": {
  1129. "description": "InvalidRequestError",
  1130. "content": {
  1131. "application/json": {
  1132. "schema": {
  1133. "$ref": "#/components/schemas/InvalidRequestError"
  1134. }
  1135. }
  1136. }
  1137. },
  1138. "401": {
  1139. "description": "UnauthorizedError",
  1140. "content": {
  1141. "application/json": {
  1142. "schema": {
  1143. "$ref": "#/components/schemas/UnauthorizedError"
  1144. }
  1145. }
  1146. }
  1147. },
  1148. "404": {
  1149. "description": "SessionNotFoundError",
  1150. "content": {
  1151. "application/json": {
  1152. "schema": {
  1153. "anyOf": [
  1154. {
  1155. "$ref": "#/components/schemas/SessionNotFoundError"
  1156. },
  1157. {
  1158. "$ref": "#/components/schemas/SessionNotFoundError"
  1159. }
  1160. ]
  1161. }
  1162. }
  1163. }
  1164. }
  1165. },
  1166. "description": "Switch the model used by subsequent provider turns.",
  1167. "summary": "Switch session model",
  1168. "requestBody": {
  1169. "content": {
  1170. "application/json": {
  1171. "schema": {
  1172. "type": "object",
  1173. "properties": {
  1174. "model": {
  1175. "$ref": "#/components/schemas/Model.Ref"
  1176. }
  1177. },
  1178. "required": [
  1179. "model"
  1180. ],
  1181. "additionalProperties": false
  1182. }
  1183. }
  1184. },
  1185. "required": true
  1186. }
  1187. }
  1188. },
  1189. "/api/session/{sessionID}/rename": {
  1190. "post": {
  1191. "tags": [
  1192. "session"
  1193. ],
  1194. "operationId": "v2.session.rename",
  1195. "parameters": [
  1196. {
  1197. "name": "sessionID",
  1198. "in": "path",
  1199. "schema": {
  1200. "type": "string",
  1201. "allOf": [
  1202. {
  1203. "pattern": "^ses"
  1204. }
  1205. ]
  1206. },
  1207. "required": true
  1208. }
  1209. ],
  1210. "security": [],
  1211. "responses": {
  1212. "204": {
  1213. "description": "<No Content>"
  1214. },
  1215. "400": {
  1216. "description": "InvalidRequestError",
  1217. "content": {
  1218. "application/json": {
  1219. "schema": {
  1220. "$ref": "#/components/schemas/InvalidRequestError"
  1221. }
  1222. }
  1223. }
  1224. },
  1225. "401": {
  1226. "description": "UnauthorizedError",
  1227. "content": {
  1228. "application/json": {
  1229. "schema": {
  1230. "$ref": "#/components/schemas/UnauthorizedError"
  1231. }
  1232. }
  1233. }
  1234. },
  1235. "404": {
  1236. "description": "SessionNotFoundError",
  1237. "content": {
  1238. "application/json": {
  1239. "schema": {
  1240. "anyOf": [
  1241. {
  1242. "$ref": "#/components/schemas/SessionNotFoundError"
  1243. },
  1244. {
  1245. "$ref": "#/components/schemas/SessionNotFoundError"
  1246. }
  1247. ]
  1248. }
  1249. }
  1250. }
  1251. }
  1252. },
  1253. "description": "Update the session title.",
  1254. "summary": "Rename session",
  1255. "requestBody": {
  1256. "content": {
  1257. "application/json": {
  1258. "schema": {
  1259. "type": "object",
  1260. "properties": {
  1261. "title": {
  1262. "type": "string"
  1263. }
  1264. },
  1265. "required": [
  1266. "title"
  1267. ],
  1268. "additionalProperties": false
  1269. }
  1270. }
  1271. },
  1272. "required": true
  1273. }
  1274. }
  1275. },
  1276. "/api/session/{sessionID}/move": {
  1277. "post": {
  1278. "tags": [
  1279. "session"
  1280. ],
  1281. "operationId": "v2.session.move",
  1282. "parameters": [
  1283. {
  1284. "name": "sessionID",
  1285. "in": "path",
  1286. "schema": {
  1287. "type": "string",
  1288. "allOf": [
  1289. {
  1290. "pattern": "^ses"
  1291. }
  1292. ]
  1293. },
  1294. "required": true
  1295. }
  1296. ],
  1297. "security": [],
  1298. "responses": {
  1299. "204": {
  1300. "description": "<No Content>"
  1301. },
  1302. "400": {
  1303. "description": "InvalidRequestError",
  1304. "content": {
  1305. "application/json": {
  1306. "schema": {
  1307. "anyOf": [
  1308. {
  1309. "$ref": "#/components/schemas/InvalidRequestError1"
  1310. },
  1311. {
  1312. "$ref": "#/components/schemas/InvalidRequestError"
  1313. }
  1314. ]
  1315. }
  1316. }
  1317. }
  1318. },
  1319. "401": {
  1320. "description": "UnauthorizedError",
  1321. "content": {
  1322. "application/json": {
  1323. "schema": {
  1324. "$ref": "#/components/schemas/UnauthorizedError"
  1325. }
  1326. }
  1327. }
  1328. },
  1329. "404": {
  1330. "description": "SessionNotFoundError",
  1331. "content": {
  1332. "application/json": {
  1333. "schema": {
  1334. "anyOf": [
  1335. {
  1336. "$ref": "#/components/schemas/SessionNotFoundError"
  1337. },
  1338. {
  1339. "$ref": "#/components/schemas/SessionNotFoundError"
  1340. }
  1341. ]
  1342. }
  1343. }
  1344. }
  1345. }
  1346. },
  1347. "description": "Move a session to another project directory, optionally transferring local changes.",
  1348. "summary": "Move session",
  1349. "requestBody": {
  1350. "content": {
  1351. "application/json": {
  1352. "schema": {
  1353. "type": "object",
  1354. "properties": {
  1355. "destination": {
  1356. "type": "object",
  1357. "properties": {
  1358. "directory": {
  1359. "type": "string"
  1360. }
  1361. },
  1362. "required": [
  1363. "directory"
  1364. ],
  1365. "additionalProperties": false
  1366. },
  1367. "moveChanges": {
  1368. "anyOf": [
  1369. {
  1370. "type": "boolean"
  1371. },
  1372. {
  1373. "type": "null"
  1374. }
  1375. ]
  1376. }
  1377. },
  1378. "required": [
  1379. "destination"
  1380. ],
  1381. "additionalProperties": false
  1382. }
  1383. }
  1384. },
  1385. "required": true
  1386. }
  1387. }
  1388. },
  1389. "/api/session/{sessionID}/prompt": {
  1390. "post": {
  1391. "tags": [
  1392. "session"
  1393. ],
  1394. "operationId": "v2.session.prompt",
  1395. "parameters": [
  1396. {
  1397. "name": "sessionID",
  1398. "in": "path",
  1399. "schema": {
  1400. "type": "string",
  1401. "allOf": [
  1402. {
  1403. "pattern": "^ses"
  1404. }
  1405. ]
  1406. },
  1407. "required": true
  1408. }
  1409. ],
  1410. "security": [],
  1411. "responses": {
  1412. "200": {
  1413. "description": "Success",
  1414. "content": {
  1415. "application/json": {
  1416. "schema": {
  1417. "type": "object",
  1418. "properties": {
  1419. "data": {
  1420. "$ref": "#/components/schemas/SessionInput.Admitted"
  1421. }
  1422. },
  1423. "required": [
  1424. "data"
  1425. ],
  1426. "additionalProperties": false
  1427. }
  1428. }
  1429. }
  1430. },
  1431. "400": {
  1432. "description": "InvalidRequestError",
  1433. "content": {
  1434. "application/json": {
  1435. "schema": {
  1436. "anyOf": [
  1437. {
  1438. "$ref": "#/components/schemas/InvalidRequestError1"
  1439. },
  1440. {
  1441. "$ref": "#/components/schemas/InvalidRequestError"
  1442. }
  1443. ]
  1444. }
  1445. }
  1446. }
  1447. },
  1448. "401": {
  1449. "description": "UnauthorizedError",
  1450. "content": {
  1451. "application/json": {
  1452. "schema": {
  1453. "$ref": "#/components/schemas/UnauthorizedError"
  1454. }
  1455. }
  1456. }
  1457. },
  1458. "404": {
  1459. "description": "SessionNotFoundError",
  1460. "content": {
  1461. "application/json": {
  1462. "schema": {
  1463. "anyOf": [
  1464. {
  1465. "$ref": "#/components/schemas/SessionNotFoundError"
  1466. },
  1467. {
  1468. "$ref": "#/components/schemas/SessionNotFoundError"
  1469. }
  1470. ]
  1471. }
  1472. }
  1473. }
  1474. },
  1475. "409": {
  1476. "description": "ConflictError",
  1477. "content": {
  1478. "application/json": {
  1479. "schema": {
  1480. "$ref": "#/components/schemas/ConflictError"
  1481. }
  1482. }
  1483. }
  1484. }
  1485. },
  1486. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1487. "summary": "Send message",
  1488. "requestBody": {
  1489. "content": {
  1490. "application/json": {
  1491. "schema": {
  1492. "type": "object",
  1493. "properties": {
  1494. "id": {
  1495. "anyOf": [
  1496. {
  1497. "type": "string",
  1498. "allOf": [
  1499. {
  1500. "pattern": "^msg_"
  1501. }
  1502. ]
  1503. },
  1504. {
  1505. "type": "null"
  1506. }
  1507. ]
  1508. },
  1509. "prompt": {
  1510. "$ref": "#/components/schemas/PromptInput"
  1511. },
  1512. "delivery": {
  1513. "anyOf": [
  1514. {
  1515. "type": "string",
  1516. "enum": [
  1517. "steer",
  1518. "queue"
  1519. ]
  1520. },
  1521. {
  1522. "type": "null"
  1523. }
  1524. ]
  1525. },
  1526. "resume": {
  1527. "anyOf": [
  1528. {
  1529. "type": "boolean"
  1530. },
  1531. {
  1532. "type": "null"
  1533. }
  1534. ]
  1535. }
  1536. },
  1537. "required": [
  1538. "prompt"
  1539. ],
  1540. "additionalProperties": false
  1541. }
  1542. }
  1543. },
  1544. "required": true
  1545. }
  1546. }
  1547. },
  1548. "/api/session/{sessionID}/command": {
  1549. "post": {
  1550. "tags": [
  1551. "session"
  1552. ],
  1553. "operationId": "v2.session.command",
  1554. "parameters": [
  1555. {
  1556. "name": "sessionID",
  1557. "in": "path",
  1558. "schema": {
  1559. "type": "string",
  1560. "allOf": [
  1561. {
  1562. "pattern": "^ses"
  1563. }
  1564. ]
  1565. },
  1566. "required": true
  1567. }
  1568. ],
  1569. "security": [],
  1570. "responses": {
  1571. "200": {
  1572. "description": "Success",
  1573. "content": {
  1574. "application/json": {
  1575. "schema": {
  1576. "type": "object",
  1577. "properties": {
  1578. "data": {
  1579. "$ref": "#/components/schemas/SessionInput.Admitted"
  1580. }
  1581. },
  1582. "required": [
  1583. "data"
  1584. ],
  1585. "additionalProperties": false
  1586. }
  1587. }
  1588. }
  1589. },
  1590. "400": {
  1591. "description": "InvalidRequestError",
  1592. "content": {
  1593. "application/json": {
  1594. "schema": {
  1595. "anyOf": [
  1596. {
  1597. "$ref": "#/components/schemas/InvalidRequestError1"
  1598. },
  1599. {
  1600. "$ref": "#/components/schemas/InvalidRequestError"
  1601. }
  1602. ]
  1603. }
  1604. }
  1605. }
  1606. },
  1607. "401": {
  1608. "description": "UnauthorizedError",
  1609. "content": {
  1610. "application/json": {
  1611. "schema": {
  1612. "$ref": "#/components/schemas/UnauthorizedError"
  1613. }
  1614. }
  1615. }
  1616. },
  1617. "404": {
  1618. "description": "SessionNotFoundError | CommandNotFoundError",
  1619. "content": {
  1620. "application/json": {
  1621. "schema": {
  1622. "anyOf": [
  1623. {
  1624. "$ref": "#/components/schemas/CommandNotFoundError"
  1625. },
  1626. {
  1627. "$ref": "#/components/schemas/SessionNotFoundError"
  1628. },
  1629. {
  1630. "$ref": "#/components/schemas/SessionNotFoundError"
  1631. }
  1632. ]
  1633. }
  1634. }
  1635. }
  1636. },
  1637. "409": {
  1638. "description": "ConflictError",
  1639. "content": {
  1640. "application/json": {
  1641. "schema": {
  1642. "$ref": "#/components/schemas/ConflictError"
  1643. }
  1644. }
  1645. }
  1646. },
  1647. "500": {
  1648. "description": "CommandEvaluationError",
  1649. "content": {
  1650. "application/json": {
  1651. "schema": {
  1652. "$ref": "#/components/schemas/CommandEvaluationError"
  1653. }
  1654. }
  1655. }
  1656. }
  1657. },
  1658. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1659. "summary": "Run command",
  1660. "requestBody": {
  1661. "content": {
  1662. "application/json": {
  1663. "schema": {
  1664. "type": "object",
  1665. "properties": {
  1666. "id": {
  1667. "anyOf": [
  1668. {
  1669. "type": "string",
  1670. "allOf": [
  1671. {
  1672. "pattern": "^msg_"
  1673. }
  1674. ]
  1675. },
  1676. {
  1677. "type": "null"
  1678. }
  1679. ]
  1680. },
  1681. "command": {
  1682. "type": "string"
  1683. },
  1684. "arguments": {
  1685. "anyOf": [
  1686. {
  1687. "type": "string"
  1688. },
  1689. {
  1690. "type": "null"
  1691. }
  1692. ]
  1693. },
  1694. "agent": {
  1695. "anyOf": [
  1696. {
  1697. "type": "string"
  1698. },
  1699. {
  1700. "type": "null"
  1701. }
  1702. ]
  1703. },
  1704. "model": {
  1705. "anyOf": [
  1706. {
  1707. "$ref": "#/components/schemas/Model.Ref"
  1708. },
  1709. {
  1710. "type": "null"
  1711. }
  1712. ]
  1713. },
  1714. "files": {
  1715. "type": "array",
  1716. "items": {
  1717. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1718. }
  1719. },
  1720. "agents": {
  1721. "type": "array",
  1722. "items": {
  1723. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1724. }
  1725. },
  1726. "delivery": {
  1727. "anyOf": [
  1728. {
  1729. "type": "string",
  1730. "enum": [
  1731. "steer",
  1732. "queue"
  1733. ]
  1734. },
  1735. {
  1736. "type": "null"
  1737. }
  1738. ]
  1739. },
  1740. "resume": {
  1741. "anyOf": [
  1742. {
  1743. "type": "boolean"
  1744. },
  1745. {
  1746. "type": "null"
  1747. }
  1748. ]
  1749. }
  1750. },
  1751. "required": [
  1752. "command"
  1753. ],
  1754. "additionalProperties": false
  1755. }
  1756. }
  1757. },
  1758. "required": true
  1759. }
  1760. }
  1761. },
  1762. "/api/session/{sessionID}/skill": {
  1763. "post": {
  1764. "tags": [
  1765. "session"
  1766. ],
  1767. "operationId": "v2.session.skill",
  1768. "parameters": [
  1769. {
  1770. "name": "sessionID",
  1771. "in": "path",
  1772. "schema": {
  1773. "type": "string",
  1774. "allOf": [
  1775. {
  1776. "pattern": "^ses"
  1777. }
  1778. ]
  1779. },
  1780. "required": true
  1781. }
  1782. ],
  1783. "security": [],
  1784. "responses": {
  1785. "204": {
  1786. "description": "<No Content>"
  1787. },
  1788. "400": {
  1789. "description": "InvalidRequestError",
  1790. "content": {
  1791. "application/json": {
  1792. "schema": {
  1793. "$ref": "#/components/schemas/InvalidRequestError"
  1794. }
  1795. }
  1796. }
  1797. },
  1798. "401": {
  1799. "description": "UnauthorizedError",
  1800. "content": {
  1801. "application/json": {
  1802. "schema": {
  1803. "$ref": "#/components/schemas/UnauthorizedError"
  1804. }
  1805. }
  1806. }
  1807. },
  1808. "404": {
  1809. "description": "SessionNotFoundError | SkillNotFoundError",
  1810. "content": {
  1811. "application/json": {
  1812. "schema": {
  1813. "anyOf": [
  1814. {
  1815. "$ref": "#/components/schemas/SkillNotFoundError"
  1816. },
  1817. {
  1818. "$ref": "#/components/schemas/SessionNotFoundError"
  1819. },
  1820. {
  1821. "$ref": "#/components/schemas/SessionNotFoundError"
  1822. }
  1823. ]
  1824. }
  1825. }
  1826. }
  1827. }
  1828. },
  1829. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  1830. "summary": "Activate skill",
  1831. "requestBody": {
  1832. "content": {
  1833. "application/json": {
  1834. "schema": {
  1835. "type": "object",
  1836. "properties": {
  1837. "id": {
  1838. "anyOf": [
  1839. {
  1840. "type": "string",
  1841. "allOf": [
  1842. {
  1843. "pattern": "^msg_"
  1844. }
  1845. ]
  1846. },
  1847. {
  1848. "type": "null"
  1849. }
  1850. ]
  1851. },
  1852. "skill": {
  1853. "type": "string"
  1854. },
  1855. "resume": {
  1856. "anyOf": [
  1857. {
  1858. "type": "boolean"
  1859. },
  1860. {
  1861. "type": "null"
  1862. }
  1863. ]
  1864. }
  1865. },
  1866. "required": [
  1867. "skill"
  1868. ],
  1869. "additionalProperties": false
  1870. }
  1871. }
  1872. },
  1873. "required": true
  1874. }
  1875. }
  1876. },
  1877. "/api/session/{sessionID}/synthetic": {
  1878. "post": {
  1879. "tags": [
  1880. "session"
  1881. ],
  1882. "operationId": "v2.session.synthetic",
  1883. "parameters": [
  1884. {
  1885. "name": "sessionID",
  1886. "in": "path",
  1887. "schema": {
  1888. "type": "string",
  1889. "allOf": [
  1890. {
  1891. "pattern": "^ses"
  1892. }
  1893. ]
  1894. },
  1895. "required": true
  1896. }
  1897. ],
  1898. "security": [],
  1899. "responses": {
  1900. "204": {
  1901. "description": "<No Content>"
  1902. },
  1903. "400": {
  1904. "description": "InvalidRequestError",
  1905. "content": {
  1906. "application/json": {
  1907. "schema": {
  1908. "$ref": "#/components/schemas/InvalidRequestError"
  1909. }
  1910. }
  1911. }
  1912. },
  1913. "401": {
  1914. "description": "UnauthorizedError",
  1915. "content": {
  1916. "application/json": {
  1917. "schema": {
  1918. "$ref": "#/components/schemas/UnauthorizedError"
  1919. }
  1920. }
  1921. }
  1922. },
  1923. "404": {
  1924. "description": "SessionNotFoundError",
  1925. "content": {
  1926. "application/json": {
  1927. "schema": {
  1928. "anyOf": [
  1929. {
  1930. "$ref": "#/components/schemas/SessionNotFoundError"
  1931. },
  1932. {
  1933. "$ref": "#/components/schemas/SessionNotFoundError"
  1934. }
  1935. ]
  1936. }
  1937. }
  1938. }
  1939. }
  1940. },
  1941. "description": "Append a synthetic message to a session and resume execution.",
  1942. "summary": "Add synthetic message",
  1943. "requestBody": {
  1944. "content": {
  1945. "application/json": {
  1946. "schema": {
  1947. "type": "object",
  1948. "properties": {
  1949. "text": {
  1950. "type": "string"
  1951. },
  1952. "description": {
  1953. "anyOf": [
  1954. {
  1955. "type": "string"
  1956. },
  1957. {
  1958. "type": "null"
  1959. }
  1960. ]
  1961. },
  1962. "metadata": {
  1963. "type": "object"
  1964. },
  1965. "resume": {
  1966. "anyOf": [
  1967. {
  1968. "type": "boolean"
  1969. },
  1970. {
  1971. "type": "null"
  1972. }
  1973. ]
  1974. }
  1975. },
  1976. "required": [
  1977. "text"
  1978. ],
  1979. "additionalProperties": false
  1980. }
  1981. }
  1982. },
  1983. "required": true
  1984. }
  1985. }
  1986. },
  1987. "/api/session/{sessionID}/shell": {
  1988. "post": {
  1989. "tags": [
  1990. "session"
  1991. ],
  1992. "operationId": "v2.session.shell",
  1993. "parameters": [
  1994. {
  1995. "name": "sessionID",
  1996. "in": "path",
  1997. "schema": {
  1998. "type": "string",
  1999. "allOf": [
  2000. {
  2001. "pattern": "^ses"
  2002. }
  2003. ]
  2004. },
  2005. "required": true
  2006. }
  2007. ],
  2008. "security": [],
  2009. "responses": {
  2010. "204": {
  2011. "description": "<No Content>"
  2012. },
  2013. "400": {
  2014. "description": "InvalidRequestError",
  2015. "content": {
  2016. "application/json": {
  2017. "schema": {
  2018. "$ref": "#/components/schemas/InvalidRequestError"
  2019. }
  2020. }
  2021. }
  2022. },
  2023. "401": {
  2024. "description": "UnauthorizedError",
  2025. "content": {
  2026. "application/json": {
  2027. "schema": {
  2028. "$ref": "#/components/schemas/UnauthorizedError"
  2029. }
  2030. }
  2031. }
  2032. },
  2033. "404": {
  2034. "description": "SessionNotFoundError",
  2035. "content": {
  2036. "application/json": {
  2037. "schema": {
  2038. "anyOf": [
  2039. {
  2040. "$ref": "#/components/schemas/SessionNotFoundError"
  2041. },
  2042. {
  2043. "$ref": "#/components/schemas/SessionNotFoundError"
  2044. }
  2045. ]
  2046. }
  2047. }
  2048. }
  2049. }
  2050. },
  2051. "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.",
  2052. "summary": "Run shell command",
  2053. "requestBody": {
  2054. "content": {
  2055. "application/json": {
  2056. "schema": {
  2057. "type": "object",
  2058. "properties": {
  2059. "id": {
  2060. "anyOf": [
  2061. {
  2062. "type": "string",
  2063. "allOf": [
  2064. {
  2065. "pattern": "^evt_"
  2066. }
  2067. ]
  2068. },
  2069. {
  2070. "type": "null"
  2071. }
  2072. ]
  2073. },
  2074. "command": {
  2075. "type": "string"
  2076. }
  2077. },
  2078. "required": [
  2079. "command"
  2080. ],
  2081. "additionalProperties": false
  2082. }
  2083. }
  2084. },
  2085. "required": true
  2086. }
  2087. }
  2088. },
  2089. "/api/session/{sessionID}/compact": {
  2090. "post": {
  2091. "tags": [
  2092. "session"
  2093. ],
  2094. "operationId": "v2.session.compact",
  2095. "parameters": [
  2096. {
  2097. "name": "sessionID",
  2098. "in": "path",
  2099. "schema": {
  2100. "type": "string",
  2101. "allOf": [
  2102. {
  2103. "pattern": "^ses"
  2104. }
  2105. ]
  2106. },
  2107. "required": true
  2108. }
  2109. ],
  2110. "security": [],
  2111. "responses": {
  2112. "200": {
  2113. "description": "Success",
  2114. "content": {
  2115. "application/json": {
  2116. "schema": {
  2117. "type": "object",
  2118. "properties": {
  2119. "data": {
  2120. "$ref": "#/components/schemas/SessionInput.Compaction"
  2121. }
  2122. },
  2123. "required": [
  2124. "data"
  2125. ],
  2126. "additionalProperties": false
  2127. }
  2128. }
  2129. }
  2130. },
  2131. "400": {
  2132. "description": "InvalidRequestError",
  2133. "content": {
  2134. "application/json": {
  2135. "schema": {
  2136. "$ref": "#/components/schemas/InvalidRequestError"
  2137. }
  2138. }
  2139. }
  2140. },
  2141. "401": {
  2142. "description": "UnauthorizedError",
  2143. "content": {
  2144. "application/json": {
  2145. "schema": {
  2146. "$ref": "#/components/schemas/UnauthorizedError"
  2147. }
  2148. }
  2149. }
  2150. },
  2151. "404": {
  2152. "description": "SessionNotFoundError",
  2153. "content": {
  2154. "application/json": {
  2155. "schema": {
  2156. "anyOf": [
  2157. {
  2158. "$ref": "#/components/schemas/SessionNotFoundError"
  2159. },
  2160. {
  2161. "$ref": "#/components/schemas/SessionNotFoundError"
  2162. }
  2163. ]
  2164. }
  2165. }
  2166. }
  2167. },
  2168. "409": {
  2169. "description": "ConflictError",
  2170. "content": {
  2171. "application/json": {
  2172. "schema": {
  2173. "$ref": "#/components/schemas/ConflictError"
  2174. }
  2175. }
  2176. }
  2177. }
  2178. },
  2179. "description": "Queue a durable session compaction request.",
  2180. "summary": "Compact session",
  2181. "requestBody": {
  2182. "content": {
  2183. "application/json": {
  2184. "schema": {
  2185. "type": "object",
  2186. "properties": {
  2187. "id": {
  2188. "anyOf": [
  2189. {
  2190. "type": "string",
  2191. "allOf": [
  2192. {
  2193. "pattern": "^msg_"
  2194. }
  2195. ]
  2196. },
  2197. {
  2198. "type": "null"
  2199. }
  2200. ]
  2201. }
  2202. },
  2203. "additionalProperties": false
  2204. }
  2205. }
  2206. },
  2207. "required": true
  2208. }
  2209. }
  2210. },
  2211. "/api/session/{sessionID}/wait": {
  2212. "post": {
  2213. "tags": [
  2214. "session"
  2215. ],
  2216. "operationId": "v2.session.wait",
  2217. "parameters": [
  2218. {
  2219. "name": "sessionID",
  2220. "in": "path",
  2221. "schema": {
  2222. "type": "string",
  2223. "allOf": [
  2224. {
  2225. "pattern": "^ses"
  2226. }
  2227. ]
  2228. },
  2229. "required": true
  2230. }
  2231. ],
  2232. "security": [],
  2233. "responses": {
  2234. "204": {
  2235. "description": "<No Content>"
  2236. },
  2237. "400": {
  2238. "description": "InvalidRequestError",
  2239. "content": {
  2240. "application/json": {
  2241. "schema": {
  2242. "$ref": "#/components/schemas/InvalidRequestError"
  2243. }
  2244. }
  2245. }
  2246. },
  2247. "401": {
  2248. "description": "UnauthorizedError",
  2249. "content": {
  2250. "application/json": {
  2251. "schema": {
  2252. "$ref": "#/components/schemas/UnauthorizedError"
  2253. }
  2254. }
  2255. }
  2256. },
  2257. "404": {
  2258. "description": "SessionNotFoundError",
  2259. "content": {
  2260. "application/json": {
  2261. "schema": {
  2262. "anyOf": [
  2263. {
  2264. "$ref": "#/components/schemas/SessionNotFoundError"
  2265. },
  2266. {
  2267. "$ref": "#/components/schemas/SessionNotFoundError"
  2268. }
  2269. ]
  2270. }
  2271. }
  2272. }
  2273. },
  2274. "503": {
  2275. "description": "ServiceUnavailableError",
  2276. "content": {
  2277. "application/json": {
  2278. "schema": {
  2279. "$ref": "#/components/schemas/ServiceUnavailableError"
  2280. }
  2281. }
  2282. }
  2283. }
  2284. },
  2285. "description": "Wait for a session agent loop to become idle.",
  2286. "summary": "Wait for session"
  2287. }
  2288. },
  2289. "/api/session/{sessionID}/revert/stage": {
  2290. "post": {
  2291. "tags": [
  2292. "session"
  2293. ],
  2294. "operationId": "v2.session.revert.stage",
  2295. "parameters": [
  2296. {
  2297. "name": "sessionID",
  2298. "in": "path",
  2299. "schema": {
  2300. "type": "string",
  2301. "allOf": [
  2302. {
  2303. "pattern": "^ses"
  2304. }
  2305. ]
  2306. },
  2307. "required": true
  2308. }
  2309. ],
  2310. "security": [],
  2311. "responses": {
  2312. "200": {
  2313. "description": "Success",
  2314. "content": {
  2315. "application/json": {
  2316. "schema": {
  2317. "type": "object",
  2318. "properties": {
  2319. "data": {
  2320. "$ref": "#/components/schemas/Session.Revert"
  2321. }
  2322. },
  2323. "required": [
  2324. "data"
  2325. ],
  2326. "additionalProperties": false
  2327. }
  2328. }
  2329. }
  2330. },
  2331. "400": {
  2332. "description": "InvalidRequestError",
  2333. "content": {
  2334. "application/json": {
  2335. "schema": {
  2336. "$ref": "#/components/schemas/InvalidRequestError"
  2337. }
  2338. }
  2339. }
  2340. },
  2341. "401": {
  2342. "description": "UnauthorizedError",
  2343. "content": {
  2344. "application/json": {
  2345. "schema": {
  2346. "$ref": "#/components/schemas/UnauthorizedError"
  2347. }
  2348. }
  2349. }
  2350. },
  2351. "404": {
  2352. "description": "MessageNotFoundError | SessionNotFoundError",
  2353. "content": {
  2354. "application/json": {
  2355. "schema": {
  2356. "anyOf": [
  2357. {
  2358. "$ref": "#/components/schemas/MessageNotFoundError"
  2359. },
  2360. {
  2361. "$ref": "#/components/schemas/SessionNotFoundError"
  2362. },
  2363. {
  2364. "$ref": "#/components/schemas/SessionNotFoundError"
  2365. }
  2366. ]
  2367. }
  2368. }
  2369. }
  2370. },
  2371. "409": {
  2372. "description": "SessionBusyError",
  2373. "content": {
  2374. "application/json": {
  2375. "schema": {
  2376. "$ref": "#/components/schemas/SessionBusyError"
  2377. }
  2378. }
  2379. }
  2380. },
  2381. "500": {
  2382. "description": "UnknownError",
  2383. "content": {
  2384. "application/json": {
  2385. "schema": {
  2386. "$ref": "#/components/schemas/UnknownError"
  2387. }
  2388. }
  2389. }
  2390. }
  2391. },
  2392. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2393. "summary": "Stage session revert",
  2394. "requestBody": {
  2395. "content": {
  2396. "application/json": {
  2397. "schema": {
  2398. "type": "object",
  2399. "properties": {
  2400. "messageID": {
  2401. "type": "string",
  2402. "allOf": [
  2403. {
  2404. "pattern": "^msg_"
  2405. }
  2406. ]
  2407. },
  2408. "files": {
  2409. "anyOf": [
  2410. {
  2411. "type": "boolean"
  2412. },
  2413. {
  2414. "type": "null"
  2415. }
  2416. ]
  2417. }
  2418. },
  2419. "required": [
  2420. "messageID"
  2421. ],
  2422. "additionalProperties": false
  2423. }
  2424. }
  2425. },
  2426. "required": true
  2427. }
  2428. }
  2429. },
  2430. "/api/session/{sessionID}/revert/clear": {
  2431. "post": {
  2432. "tags": [
  2433. "session"
  2434. ],
  2435. "operationId": "v2.session.revert.clear",
  2436. "parameters": [
  2437. {
  2438. "name": "sessionID",
  2439. "in": "path",
  2440. "schema": {
  2441. "type": "string",
  2442. "allOf": [
  2443. {
  2444. "pattern": "^ses"
  2445. }
  2446. ]
  2447. },
  2448. "required": true
  2449. }
  2450. ],
  2451. "security": [],
  2452. "responses": {
  2453. "204": {
  2454. "description": "<No Content>"
  2455. },
  2456. "400": {
  2457. "description": "InvalidRequestError",
  2458. "content": {
  2459. "application/json": {
  2460. "schema": {
  2461. "$ref": "#/components/schemas/InvalidRequestError"
  2462. }
  2463. }
  2464. }
  2465. },
  2466. "401": {
  2467. "description": "UnauthorizedError",
  2468. "content": {
  2469. "application/json": {
  2470. "schema": {
  2471. "$ref": "#/components/schemas/UnauthorizedError"
  2472. }
  2473. }
  2474. }
  2475. },
  2476. "404": {
  2477. "description": "SessionNotFoundError",
  2478. "content": {
  2479. "application/json": {
  2480. "schema": {
  2481. "anyOf": [
  2482. {
  2483. "$ref": "#/components/schemas/SessionNotFoundError"
  2484. },
  2485. {
  2486. "$ref": "#/components/schemas/SessionNotFoundError"
  2487. }
  2488. ]
  2489. }
  2490. }
  2491. }
  2492. },
  2493. "409": {
  2494. "description": "SessionBusyError",
  2495. "content": {
  2496. "application/json": {
  2497. "schema": {
  2498. "$ref": "#/components/schemas/SessionBusyError"
  2499. }
  2500. }
  2501. }
  2502. },
  2503. "500": {
  2504. "description": "UnknownError",
  2505. "content": {
  2506. "application/json": {
  2507. "schema": {
  2508. "$ref": "#/components/schemas/UnknownError"
  2509. }
  2510. }
  2511. }
  2512. }
  2513. },
  2514. "summary": "Clear staged revert"
  2515. }
  2516. },
  2517. "/api/session/{sessionID}/revert/commit": {
  2518. "post": {
  2519. "tags": [
  2520. "session"
  2521. ],
  2522. "operationId": "v2.session.revert.commit",
  2523. "parameters": [
  2524. {
  2525. "name": "sessionID",
  2526. "in": "path",
  2527. "schema": {
  2528. "type": "string",
  2529. "allOf": [
  2530. {
  2531. "pattern": "^ses"
  2532. }
  2533. ]
  2534. },
  2535. "required": true
  2536. }
  2537. ],
  2538. "security": [],
  2539. "responses": {
  2540. "204": {
  2541. "description": "<No Content>"
  2542. },
  2543. "400": {
  2544. "description": "InvalidRequestError",
  2545. "content": {
  2546. "application/json": {
  2547. "schema": {
  2548. "$ref": "#/components/schemas/InvalidRequestError"
  2549. }
  2550. }
  2551. }
  2552. },
  2553. "401": {
  2554. "description": "UnauthorizedError",
  2555. "content": {
  2556. "application/json": {
  2557. "schema": {
  2558. "$ref": "#/components/schemas/UnauthorizedError"
  2559. }
  2560. }
  2561. }
  2562. },
  2563. "404": {
  2564. "description": "SessionNotFoundError",
  2565. "content": {
  2566. "application/json": {
  2567. "schema": {
  2568. "anyOf": [
  2569. {
  2570. "$ref": "#/components/schemas/SessionNotFoundError"
  2571. },
  2572. {
  2573. "$ref": "#/components/schemas/SessionNotFoundError"
  2574. }
  2575. ]
  2576. }
  2577. }
  2578. }
  2579. },
  2580. "409": {
  2581. "description": "SessionBusyError",
  2582. "content": {
  2583. "application/json": {
  2584. "schema": {
  2585. "$ref": "#/components/schemas/SessionBusyError"
  2586. }
  2587. }
  2588. }
  2589. }
  2590. },
  2591. "summary": "Commit staged revert"
  2592. }
  2593. },
  2594. "/api/session/{sessionID}/context": {
  2595. "get": {
  2596. "tags": [
  2597. "session"
  2598. ],
  2599. "operationId": "v2.session.context",
  2600. "parameters": [
  2601. {
  2602. "name": "sessionID",
  2603. "in": "path",
  2604. "schema": {
  2605. "type": "string",
  2606. "allOf": [
  2607. {
  2608. "pattern": "^ses"
  2609. }
  2610. ]
  2611. },
  2612. "required": true
  2613. }
  2614. ],
  2615. "security": [],
  2616. "responses": {
  2617. "200": {
  2618. "description": "Success",
  2619. "content": {
  2620. "application/json": {
  2621. "schema": {
  2622. "type": "object",
  2623. "properties": {
  2624. "data": {
  2625. "type": "array",
  2626. "items": {
  2627. "$ref": "#/components/schemas/Session.Message.Info"
  2628. }
  2629. }
  2630. },
  2631. "required": [
  2632. "data"
  2633. ],
  2634. "additionalProperties": false
  2635. }
  2636. }
  2637. }
  2638. },
  2639. "400": {
  2640. "description": "InvalidRequestError",
  2641. "content": {
  2642. "application/json": {
  2643. "schema": {
  2644. "$ref": "#/components/schemas/InvalidRequestError"
  2645. }
  2646. }
  2647. }
  2648. },
  2649. "401": {
  2650. "description": "UnauthorizedError",
  2651. "content": {
  2652. "application/json": {
  2653. "schema": {
  2654. "$ref": "#/components/schemas/UnauthorizedError"
  2655. }
  2656. }
  2657. }
  2658. },
  2659. "404": {
  2660. "description": "SessionNotFoundError",
  2661. "content": {
  2662. "application/json": {
  2663. "schema": {
  2664. "anyOf": [
  2665. {
  2666. "$ref": "#/components/schemas/SessionNotFoundError"
  2667. },
  2668. {
  2669. "$ref": "#/components/schemas/SessionNotFoundError"
  2670. }
  2671. ]
  2672. }
  2673. }
  2674. }
  2675. },
  2676. "500": {
  2677. "description": "UnknownError",
  2678. "content": {
  2679. "application/json": {
  2680. "schema": {
  2681. "$ref": "#/components/schemas/UnknownError"
  2682. }
  2683. }
  2684. }
  2685. }
  2686. },
  2687. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2688. "summary": "Get session context"
  2689. }
  2690. },
  2691. "/api/session/{sessionID}/instructions/entries": {
  2692. "get": {
  2693. "tags": [
  2694. "session"
  2695. ],
  2696. "operationId": "v2.session.instructions.entry.list",
  2697. "parameters": [
  2698. {
  2699. "name": "sessionID",
  2700. "in": "path",
  2701. "schema": {
  2702. "type": "string",
  2703. "allOf": [
  2704. {
  2705. "pattern": "^ses"
  2706. }
  2707. ]
  2708. },
  2709. "required": true
  2710. }
  2711. ],
  2712. "security": [],
  2713. "responses": {
  2714. "200": {
  2715. "description": "Success",
  2716. "content": {
  2717. "application/json": {
  2718. "schema": {
  2719. "type": "object",
  2720. "properties": {
  2721. "data": {
  2722. "type": "array",
  2723. "items": {
  2724. "$ref": "#/components/schemas/InstructionEntry.Info"
  2725. }
  2726. }
  2727. },
  2728. "required": [
  2729. "data"
  2730. ],
  2731. "additionalProperties": false
  2732. }
  2733. }
  2734. }
  2735. },
  2736. "400": {
  2737. "description": "InvalidRequestError",
  2738. "content": {
  2739. "application/json": {
  2740. "schema": {
  2741. "$ref": "#/components/schemas/InvalidRequestError"
  2742. }
  2743. }
  2744. }
  2745. },
  2746. "401": {
  2747. "description": "UnauthorizedError",
  2748. "content": {
  2749. "application/json": {
  2750. "schema": {
  2751. "$ref": "#/components/schemas/UnauthorizedError"
  2752. }
  2753. }
  2754. }
  2755. },
  2756. "404": {
  2757. "description": "SessionNotFoundError",
  2758. "content": {
  2759. "application/json": {
  2760. "schema": {
  2761. "anyOf": [
  2762. {
  2763. "$ref": "#/components/schemas/SessionNotFoundError"
  2764. },
  2765. {
  2766. "$ref": "#/components/schemas/SessionNotFoundError"
  2767. }
  2768. ]
  2769. }
  2770. }
  2771. }
  2772. }
  2773. },
  2774. "description": "List API-managed instruction entries attached to the session.",
  2775. "summary": "List instruction entries"
  2776. }
  2777. },
  2778. "/api/session/{sessionID}/instructions/entries/{key}": {
  2779. "put": {
  2780. "tags": [
  2781. "session"
  2782. ],
  2783. "operationId": "v2.session.instructions.entry.put",
  2784. "parameters": [
  2785. {
  2786. "name": "sessionID",
  2787. "in": "path",
  2788. "schema": {
  2789. "type": "string",
  2790. "allOf": [
  2791. {
  2792. "pattern": "^ses"
  2793. }
  2794. ]
  2795. },
  2796. "required": true
  2797. },
  2798. {
  2799. "name": "key",
  2800. "in": "path",
  2801. "schema": {
  2802. "$ref": "#/components/schemas/InstructionEntry.Key"
  2803. },
  2804. "required": true
  2805. }
  2806. ],
  2807. "security": [],
  2808. "responses": {
  2809. "204": {
  2810. "description": "<No Content>"
  2811. },
  2812. "400": {
  2813. "description": "InvalidRequestError",
  2814. "content": {
  2815. "application/json": {
  2816. "schema": {
  2817. "$ref": "#/components/schemas/InvalidRequestError"
  2818. }
  2819. }
  2820. }
  2821. },
  2822. "401": {
  2823. "description": "UnauthorizedError",
  2824. "content": {
  2825. "application/json": {
  2826. "schema": {
  2827. "$ref": "#/components/schemas/UnauthorizedError"
  2828. }
  2829. }
  2830. }
  2831. },
  2832. "404": {
  2833. "description": "SessionNotFoundError",
  2834. "content": {
  2835. "application/json": {
  2836. "schema": {
  2837. "anyOf": [
  2838. {
  2839. "$ref": "#/components/schemas/SessionNotFoundError"
  2840. },
  2841. {
  2842. "$ref": "#/components/schemas/SessionNotFoundError"
  2843. }
  2844. ]
  2845. }
  2846. }
  2847. }
  2848. }
  2849. },
  2850. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  2851. "summary": "Put instruction entry",
  2852. "requestBody": {
  2853. "content": {
  2854. "application/json": {
  2855. "schema": {
  2856. "type": "object",
  2857. "properties": {
  2858. "value": {}
  2859. },
  2860. "required": [
  2861. "value"
  2862. ],
  2863. "additionalProperties": false
  2864. }
  2865. }
  2866. },
  2867. "required": true
  2868. }
  2869. },
  2870. "delete": {
  2871. "tags": [
  2872. "session"
  2873. ],
  2874. "operationId": "v2.session.instructions.entry.remove",
  2875. "parameters": [
  2876. {
  2877. "name": "sessionID",
  2878. "in": "path",
  2879. "schema": {
  2880. "type": "string",
  2881. "allOf": [
  2882. {
  2883. "pattern": "^ses"
  2884. }
  2885. ]
  2886. },
  2887. "required": true
  2888. },
  2889. {
  2890. "name": "key",
  2891. "in": "path",
  2892. "schema": {
  2893. "$ref": "#/components/schemas/InstructionEntry.Key"
  2894. },
  2895. "required": true
  2896. }
  2897. ],
  2898. "security": [],
  2899. "responses": {
  2900. "204": {
  2901. "description": "<No Content>"
  2902. },
  2903. "400": {
  2904. "description": "InvalidRequestError",
  2905. "content": {
  2906. "application/json": {
  2907. "schema": {
  2908. "$ref": "#/components/schemas/InvalidRequestError"
  2909. }
  2910. }
  2911. }
  2912. },
  2913. "401": {
  2914. "description": "UnauthorizedError",
  2915. "content": {
  2916. "application/json": {
  2917. "schema": {
  2918. "$ref": "#/components/schemas/UnauthorizedError"
  2919. }
  2920. }
  2921. }
  2922. },
  2923. "404": {
  2924. "description": "SessionNotFoundError",
  2925. "content": {
  2926. "application/json": {
  2927. "schema": {
  2928. "anyOf": [
  2929. {
  2930. "$ref": "#/components/schemas/SessionNotFoundError"
  2931. },
  2932. {
  2933. "$ref": "#/components/schemas/SessionNotFoundError"
  2934. }
  2935. ]
  2936. }
  2937. }
  2938. }
  2939. }
  2940. },
  2941. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  2942. "summary": "Remove instruction entry"
  2943. }
  2944. },
  2945. "/api/experimental/session/{sessionID}/log": {
  2946. "get": {
  2947. "tags": [
  2948. "session"
  2949. ],
  2950. "operationId": "v2.session.log",
  2951. "parameters": [
  2952. {
  2953. "name": "sessionID",
  2954. "in": "path",
  2955. "schema": {
  2956. "type": "string",
  2957. "allOf": [
  2958. {
  2959. "pattern": "^ses"
  2960. }
  2961. ]
  2962. },
  2963. "required": true
  2964. },
  2965. {
  2966. "name": "after",
  2967. "in": "query",
  2968. "schema": {
  2969. "anyOf": [
  2970. {
  2971. "type": "string"
  2972. },
  2973. {
  2974. "type": "null"
  2975. }
  2976. ]
  2977. },
  2978. "required": false
  2979. },
  2980. {
  2981. "name": "follow",
  2982. "in": "query",
  2983. "schema": {
  2984. "anyOf": [
  2985. {
  2986. "type": "string",
  2987. "enum": [
  2988. "true",
  2989. "false"
  2990. ]
  2991. },
  2992. {
  2993. "type": "null"
  2994. }
  2995. ]
  2996. },
  2997. "required": false
  2998. }
  2999. ],
  3000. "security": [],
  3001. "responses": {
  3002. "200": {
  3003. "description": "Success",
  3004. "content": {
  3005. "text/event-stream": {
  3006. "schema": {
  3007. "type": "object",
  3008. "properties": {
  3009. "id": {
  3010. "anyOf": [
  3011. {
  3012. "type": "string"
  3013. },
  3014. {
  3015. "type": "null"
  3016. }
  3017. ]
  3018. },
  3019. "event": {
  3020. "type": "string"
  3021. },
  3022. "data": {
  3023. "$ref": "#/components/schemas/SessionLogItemStream"
  3024. }
  3025. },
  3026. "required": [
  3027. "id",
  3028. "event",
  3029. "data"
  3030. ],
  3031. "additionalProperties": false
  3032. },
  3033. "x-effect-stream": {
  3034. "encoding": "sse",
  3035. "causeSchema": {
  3036. "type": "array",
  3037. "items": {
  3038. "anyOf": [
  3039. {
  3040. "type": "object",
  3041. "properties": {
  3042. "_tag": {
  3043. "type": "string",
  3044. "enum": [
  3045. "Fail"
  3046. ]
  3047. },
  3048. "error": {
  3049. "not": {}
  3050. }
  3051. },
  3052. "required": [
  3053. "_tag",
  3054. "error"
  3055. ],
  3056. "additionalProperties": false
  3057. },
  3058. {
  3059. "type": "object",
  3060. "properties": {
  3061. "_tag": {
  3062. "type": "string",
  3063. "enum": [
  3064. "Die"
  3065. ]
  3066. },
  3067. "defect": {}
  3068. },
  3069. "required": [
  3070. "_tag",
  3071. "defect"
  3072. ],
  3073. "additionalProperties": false
  3074. },
  3075. {
  3076. "type": "object",
  3077. "properties": {
  3078. "_tag": {
  3079. "type": "string",
  3080. "enum": [
  3081. "Interrupt"
  3082. ]
  3083. },
  3084. "fiberId": {
  3085. "anyOf": [
  3086. {
  3087. "type": "number"
  3088. },
  3089. {
  3090. "type": "null"
  3091. }
  3092. ]
  3093. }
  3094. },
  3095. "required": [
  3096. "_tag",
  3097. "fiberId"
  3098. ],
  3099. "additionalProperties": false
  3100. }
  3101. ]
  3102. }
  3103. },
  3104. "errorSchema": {
  3105. "not": {}
  3106. },
  3107. "failureEvent": "effect/httpapi/stream/failure"
  3108. }
  3109. }
  3110. }
  3111. },
  3112. "400": {
  3113. "description": "InvalidRequestError",
  3114. "content": {
  3115. "application/json": {
  3116. "schema": {
  3117. "$ref": "#/components/schemas/InvalidRequestError"
  3118. }
  3119. }
  3120. }
  3121. },
  3122. "401": {
  3123. "description": "UnauthorizedError",
  3124. "content": {
  3125. "application/json": {
  3126. "schema": {
  3127. "$ref": "#/components/schemas/UnauthorizedError"
  3128. }
  3129. }
  3130. }
  3131. },
  3132. "404": {
  3133. "description": "SessionNotFoundError",
  3134. "content": {
  3135. "application/json": {
  3136. "schema": {
  3137. "anyOf": [
  3138. {
  3139. "$ref": "#/components/schemas/SessionNotFoundError"
  3140. },
  3141. {
  3142. "$ref": "#/components/schemas/SessionNotFoundError"
  3143. }
  3144. ]
  3145. }
  3146. }
  3147. }
  3148. }
  3149. },
  3150. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3151. "summary": "Read the session log"
  3152. }
  3153. },
  3154. "/api/session/{sessionID}/interrupt": {
  3155. "post": {
  3156. "tags": [
  3157. "session"
  3158. ],
  3159. "operationId": "v2.session.interrupt",
  3160. "parameters": [
  3161. {
  3162. "name": "sessionID",
  3163. "in": "path",
  3164. "schema": {
  3165. "type": "string",
  3166. "allOf": [
  3167. {
  3168. "pattern": "^ses"
  3169. }
  3170. ]
  3171. },
  3172. "required": true
  3173. }
  3174. ],
  3175. "security": [],
  3176. "responses": {
  3177. "204": {
  3178. "description": "<No Content>"
  3179. },
  3180. "400": {
  3181. "description": "InvalidRequestError",
  3182. "content": {
  3183. "application/json": {
  3184. "schema": {
  3185. "$ref": "#/components/schemas/InvalidRequestError"
  3186. }
  3187. }
  3188. }
  3189. },
  3190. "401": {
  3191. "description": "UnauthorizedError",
  3192. "content": {
  3193. "application/json": {
  3194. "schema": {
  3195. "$ref": "#/components/schemas/UnauthorizedError"
  3196. }
  3197. }
  3198. }
  3199. },
  3200. "404": {
  3201. "description": "SessionNotFoundError",
  3202. "content": {
  3203. "application/json": {
  3204. "schema": {
  3205. "anyOf": [
  3206. {
  3207. "$ref": "#/components/schemas/SessionNotFoundError"
  3208. },
  3209. {
  3210. "$ref": "#/components/schemas/SessionNotFoundError"
  3211. }
  3212. ]
  3213. }
  3214. }
  3215. }
  3216. }
  3217. },
  3218. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3219. "summary": "Interrupt session execution"
  3220. }
  3221. },
  3222. "/api/session/{sessionID}/background": {
  3223. "post": {
  3224. "tags": [
  3225. "session"
  3226. ],
  3227. "operationId": "v2.session.background",
  3228. "parameters": [
  3229. {
  3230. "name": "sessionID",
  3231. "in": "path",
  3232. "schema": {
  3233. "type": "string",
  3234. "allOf": [
  3235. {
  3236. "pattern": "^ses"
  3237. }
  3238. ]
  3239. },
  3240. "required": true
  3241. }
  3242. ],
  3243. "security": [],
  3244. "responses": {
  3245. "204": {
  3246. "description": "<No Content>"
  3247. },
  3248. "400": {
  3249. "description": "InvalidRequestError",
  3250. "content": {
  3251. "application/json": {
  3252. "schema": {
  3253. "$ref": "#/components/schemas/InvalidRequestError"
  3254. }
  3255. }
  3256. }
  3257. },
  3258. "401": {
  3259. "description": "UnauthorizedError",
  3260. "content": {
  3261. "application/json": {
  3262. "schema": {
  3263. "$ref": "#/components/schemas/UnauthorizedError"
  3264. }
  3265. }
  3266. }
  3267. },
  3268. "404": {
  3269. "description": "SessionNotFoundError",
  3270. "content": {
  3271. "application/json": {
  3272. "schema": {
  3273. "anyOf": [
  3274. {
  3275. "$ref": "#/components/schemas/SessionNotFoundError"
  3276. },
  3277. {
  3278. "$ref": "#/components/schemas/SessionNotFoundError"
  3279. }
  3280. ]
  3281. }
  3282. }
  3283. }
  3284. }
  3285. },
  3286. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3287. "summary": "Background blocking session tools"
  3288. }
  3289. },
  3290. "/api/session/{sessionID}/message/{messageID}": {
  3291. "get": {
  3292. "tags": [
  3293. "session"
  3294. ],
  3295. "operationId": "v2.session.message",
  3296. "parameters": [
  3297. {
  3298. "name": "sessionID",
  3299. "in": "path",
  3300. "schema": {
  3301. "type": "string",
  3302. "allOf": [
  3303. {
  3304. "pattern": "^ses"
  3305. }
  3306. ]
  3307. },
  3308. "required": true
  3309. },
  3310. {
  3311. "name": "messageID",
  3312. "in": "path",
  3313. "schema": {
  3314. "type": "string",
  3315. "allOf": [
  3316. {
  3317. "pattern": "^msg_"
  3318. }
  3319. ]
  3320. },
  3321. "required": true
  3322. }
  3323. ],
  3324. "security": [],
  3325. "responses": {
  3326. "200": {
  3327. "description": "Success",
  3328. "content": {
  3329. "application/json": {
  3330. "schema": {
  3331. "type": "object",
  3332. "properties": {
  3333. "data": {
  3334. "$ref": "#/components/schemas/Session.Message.Info"
  3335. }
  3336. },
  3337. "required": [
  3338. "data"
  3339. ],
  3340. "additionalProperties": false
  3341. }
  3342. }
  3343. }
  3344. },
  3345. "400": {
  3346. "description": "InvalidRequestError",
  3347. "content": {
  3348. "application/json": {
  3349. "schema": {
  3350. "$ref": "#/components/schemas/InvalidRequestError"
  3351. }
  3352. }
  3353. }
  3354. },
  3355. "401": {
  3356. "description": "UnauthorizedError",
  3357. "content": {
  3358. "application/json": {
  3359. "schema": {
  3360. "$ref": "#/components/schemas/UnauthorizedError"
  3361. }
  3362. }
  3363. }
  3364. },
  3365. "404": {
  3366. "description": "SessionNotFoundError | MessageNotFoundError",
  3367. "content": {
  3368. "application/json": {
  3369. "schema": {
  3370. "anyOf": [
  3371. {
  3372. "$ref": "#/components/schemas/MessageNotFoundError"
  3373. },
  3374. {
  3375. "$ref": "#/components/schemas/SessionNotFoundError"
  3376. },
  3377. {
  3378. "$ref": "#/components/schemas/SessionNotFoundError"
  3379. }
  3380. ]
  3381. }
  3382. }
  3383. }
  3384. }
  3385. },
  3386. "description": "Retrieve one projected message owned by the Session.",
  3387. "summary": "Get session message"
  3388. }
  3389. },
  3390. "/api/session/{sessionID}/message": {
  3391. "get": {
  3392. "tags": [
  3393. "session"
  3394. ],
  3395. "operationId": "v2.message.list",
  3396. "parameters": [
  3397. {
  3398. "name": "sessionID",
  3399. "in": "path",
  3400. "schema": {
  3401. "type": "string",
  3402. "allOf": [
  3403. {
  3404. "pattern": "^ses"
  3405. }
  3406. ]
  3407. },
  3408. "required": true
  3409. },
  3410. {
  3411. "name": "limit",
  3412. "in": "query",
  3413. "schema": {
  3414. "anyOf": [
  3415. {
  3416. "type": "string"
  3417. },
  3418. {
  3419. "type": "null"
  3420. }
  3421. ],
  3422. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3423. },
  3424. "required": false
  3425. },
  3426. {
  3427. "name": "order",
  3428. "in": "query",
  3429. "schema": {
  3430. "anyOf": [
  3431. {
  3432. "type": "string",
  3433. "enum": [
  3434. "asc",
  3435. "desc"
  3436. ]
  3437. },
  3438. {
  3439. "type": "null"
  3440. }
  3441. ],
  3442. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3443. },
  3444. "required": false
  3445. },
  3446. {
  3447. "name": "cursor",
  3448. "in": "query",
  3449. "schema": {
  3450. "anyOf": [
  3451. {
  3452. "type": "string",
  3453. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3454. },
  3455. {
  3456. "type": "null"
  3457. }
  3458. ]
  3459. },
  3460. "required": false
  3461. }
  3462. ],
  3463. "security": [],
  3464. "responses": {
  3465. "200": {
  3466. "description": "SessionMessagesResponse",
  3467. "content": {
  3468. "application/json": {
  3469. "schema": {
  3470. "$ref": "#/components/schemas/SessionMessagesResponse"
  3471. }
  3472. }
  3473. }
  3474. },
  3475. "400": {
  3476. "description": "InvalidCursorError | InvalidRequestError",
  3477. "content": {
  3478. "application/json": {
  3479. "schema": {
  3480. "anyOf": [
  3481. {
  3482. "$ref": "#/components/schemas/InvalidCursorError"
  3483. },
  3484. {
  3485. "$ref": "#/components/schemas/InvalidRequestError"
  3486. }
  3487. ]
  3488. }
  3489. }
  3490. }
  3491. },
  3492. "401": {
  3493. "description": "UnauthorizedError",
  3494. "content": {
  3495. "application/json": {
  3496. "schema": {
  3497. "$ref": "#/components/schemas/UnauthorizedError"
  3498. }
  3499. }
  3500. }
  3501. },
  3502. "404": {
  3503. "description": "SessionNotFoundError",
  3504. "content": {
  3505. "application/json": {
  3506. "schema": {
  3507. "anyOf": [
  3508. {
  3509. "$ref": "#/components/schemas/SessionNotFoundError"
  3510. },
  3511. {
  3512. "$ref": "#/components/schemas/SessionNotFoundError"
  3513. }
  3514. ]
  3515. }
  3516. }
  3517. }
  3518. },
  3519. "500": {
  3520. "description": "UnknownError",
  3521. "content": {
  3522. "application/json": {
  3523. "schema": {
  3524. "$ref": "#/components/schemas/UnknownError"
  3525. }
  3526. }
  3527. }
  3528. }
  3529. },
  3530. "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.",
  3531. "summary": "Get session messages"
  3532. }
  3533. },
  3534. "/api/model": {
  3535. "get": {
  3536. "tags": [
  3537. "model"
  3538. ],
  3539. "operationId": "v2.model.list",
  3540. "parameters": [
  3541. {
  3542. "name": "location",
  3543. "in": "query",
  3544. "schema": {
  3545. "anyOf": [
  3546. {
  3547. "type": "object",
  3548. "properties": {
  3549. "directory": {
  3550. "anyOf": [
  3551. {
  3552. "type": "string"
  3553. },
  3554. {
  3555. "type": "null"
  3556. }
  3557. ]
  3558. },
  3559. "workspace": {
  3560. "anyOf": [
  3561. {
  3562. "type": "string"
  3563. },
  3564. {
  3565. "type": "null"
  3566. }
  3567. ]
  3568. }
  3569. },
  3570. "additionalProperties": false
  3571. },
  3572. {
  3573. "type": "null"
  3574. }
  3575. ]
  3576. },
  3577. "required": false,
  3578. "style": "deepObject",
  3579. "explode": true
  3580. }
  3581. ],
  3582. "security": [],
  3583. "responses": {
  3584. "200": {
  3585. "description": "Success",
  3586. "content": {
  3587. "application/json": {
  3588. "schema": {
  3589. "type": "object",
  3590. "properties": {
  3591. "location": {
  3592. "$ref": "#/components/schemas/Location.Info"
  3593. },
  3594. "data": {
  3595. "type": "array",
  3596. "items": {
  3597. "$ref": "#/components/schemas/Model.Info"
  3598. }
  3599. }
  3600. },
  3601. "required": [
  3602. "location",
  3603. "data"
  3604. ],
  3605. "additionalProperties": false
  3606. }
  3607. }
  3608. }
  3609. },
  3610. "400": {
  3611. "description": "InvalidRequestError",
  3612. "content": {
  3613. "application/json": {
  3614. "schema": {
  3615. "$ref": "#/components/schemas/InvalidRequestError"
  3616. }
  3617. }
  3618. }
  3619. },
  3620. "401": {
  3621. "description": "UnauthorizedError",
  3622. "content": {
  3623. "application/json": {
  3624. "schema": {
  3625. "$ref": "#/components/schemas/UnauthorizedError"
  3626. }
  3627. }
  3628. }
  3629. },
  3630. "503": {
  3631. "description": "ServiceUnavailableError",
  3632. "content": {
  3633. "application/json": {
  3634. "schema": {
  3635. "$ref": "#/components/schemas/ServiceUnavailableError"
  3636. }
  3637. }
  3638. }
  3639. }
  3640. },
  3641. "description": "Retrieve available models ordered by release date.",
  3642. "summary": "List models"
  3643. }
  3644. },
  3645. "/api/model/default": {
  3646. "get": {
  3647. "tags": [
  3648. "model"
  3649. ],
  3650. "operationId": "v2.model.default",
  3651. "parameters": [
  3652. {
  3653. "name": "location",
  3654. "in": "query",
  3655. "schema": {
  3656. "anyOf": [
  3657. {
  3658. "type": "object",
  3659. "properties": {
  3660. "directory": {
  3661. "anyOf": [
  3662. {
  3663. "type": "string"
  3664. },
  3665. {
  3666. "type": "null"
  3667. }
  3668. ]
  3669. },
  3670. "workspace": {
  3671. "anyOf": [
  3672. {
  3673. "type": "string"
  3674. },
  3675. {
  3676. "type": "null"
  3677. }
  3678. ]
  3679. }
  3680. },
  3681. "additionalProperties": false
  3682. },
  3683. {
  3684. "type": "null"
  3685. }
  3686. ]
  3687. },
  3688. "required": false,
  3689. "style": "deepObject",
  3690. "explode": true
  3691. }
  3692. ],
  3693. "security": [],
  3694. "responses": {
  3695. "200": {
  3696. "description": "Success",
  3697. "content": {
  3698. "application/json": {
  3699. "schema": {
  3700. "type": "object",
  3701. "properties": {
  3702. "location": {
  3703. "$ref": "#/components/schemas/Location.Info"
  3704. },
  3705. "data": {
  3706. "anyOf": [
  3707. {
  3708. "$ref": "#/components/schemas/Model.Info"
  3709. },
  3710. {
  3711. "type": "null"
  3712. }
  3713. ]
  3714. }
  3715. },
  3716. "required": [
  3717. "location",
  3718. "data"
  3719. ],
  3720. "additionalProperties": false
  3721. }
  3722. }
  3723. }
  3724. },
  3725. "400": {
  3726. "description": "InvalidRequestError",
  3727. "content": {
  3728. "application/json": {
  3729. "schema": {
  3730. "$ref": "#/components/schemas/InvalidRequestError"
  3731. }
  3732. }
  3733. }
  3734. },
  3735. "401": {
  3736. "description": "UnauthorizedError",
  3737. "content": {
  3738. "application/json": {
  3739. "schema": {
  3740. "$ref": "#/components/schemas/UnauthorizedError"
  3741. }
  3742. }
  3743. }
  3744. },
  3745. "503": {
  3746. "description": "ServiceUnavailableError",
  3747. "content": {
  3748. "application/json": {
  3749. "schema": {
  3750. "$ref": "#/components/schemas/ServiceUnavailableError"
  3751. }
  3752. }
  3753. }
  3754. }
  3755. },
  3756. "description": "Retrieve the model used when a session has no explicit model selection.",
  3757. "summary": "Get default model"
  3758. }
  3759. },
  3760. "/api/generate": {
  3761. "post": {
  3762. "tags": [
  3763. "generate"
  3764. ],
  3765. "operationId": "v2.generate.text",
  3766. "parameters": [
  3767. {
  3768. "name": "location",
  3769. "in": "query",
  3770. "schema": {
  3771. "anyOf": [
  3772. {
  3773. "type": "object",
  3774. "properties": {
  3775. "directory": {
  3776. "anyOf": [
  3777. {
  3778. "type": "string"
  3779. },
  3780. {
  3781. "type": "null"
  3782. }
  3783. ]
  3784. },
  3785. "workspace": {
  3786. "anyOf": [
  3787. {
  3788. "type": "string"
  3789. },
  3790. {
  3791. "type": "null"
  3792. }
  3793. ]
  3794. }
  3795. },
  3796. "additionalProperties": false
  3797. },
  3798. {
  3799. "type": "null"
  3800. }
  3801. ]
  3802. },
  3803. "required": false,
  3804. "style": "deepObject",
  3805. "explode": true
  3806. }
  3807. ],
  3808. "security": [],
  3809. "responses": {
  3810. "200": {
  3811. "description": "GenerateTextResponse",
  3812. "content": {
  3813. "application/json": {
  3814. "schema": {
  3815. "$ref": "#/components/schemas/GenerateTextResponse"
  3816. }
  3817. }
  3818. }
  3819. },
  3820. "400": {
  3821. "description": "InvalidRequestError",
  3822. "content": {
  3823. "application/json": {
  3824. "schema": {
  3825. "anyOf": [
  3826. {
  3827. "$ref": "#/components/schemas/InvalidRequestError1"
  3828. },
  3829. {
  3830. "$ref": "#/components/schemas/InvalidRequestError"
  3831. }
  3832. ]
  3833. }
  3834. }
  3835. }
  3836. },
  3837. "401": {
  3838. "description": "UnauthorizedError",
  3839. "content": {
  3840. "application/json": {
  3841. "schema": {
  3842. "$ref": "#/components/schemas/UnauthorizedError"
  3843. }
  3844. }
  3845. }
  3846. },
  3847. "503": {
  3848. "description": "ServiceUnavailableError",
  3849. "content": {
  3850. "application/json": {
  3851. "schema": {
  3852. "$ref": "#/components/schemas/ServiceUnavailableError"
  3853. }
  3854. }
  3855. }
  3856. }
  3857. },
  3858. "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.",
  3859. "summary": "Generate text",
  3860. "requestBody": {
  3861. "content": {
  3862. "application/json": {
  3863. "schema": {
  3864. "type": "object",
  3865. "properties": {
  3866. "prompt": {
  3867. "type": "string"
  3868. },
  3869. "model": {
  3870. "anyOf": [
  3871. {
  3872. "$ref": "#/components/schemas/Model.Ref"
  3873. },
  3874. {
  3875. "type": "null"
  3876. }
  3877. ]
  3878. }
  3879. },
  3880. "required": [
  3881. "prompt"
  3882. ],
  3883. "additionalProperties": false
  3884. }
  3885. }
  3886. },
  3887. "required": true
  3888. }
  3889. }
  3890. },
  3891. "/api/provider": {
  3892. "get": {
  3893. "tags": [
  3894. "provider"
  3895. ],
  3896. "operationId": "v2.provider.list",
  3897. "parameters": [
  3898. {
  3899. "name": "location",
  3900. "in": "query",
  3901. "schema": {
  3902. "anyOf": [
  3903. {
  3904. "type": "object",
  3905. "properties": {
  3906. "directory": {
  3907. "anyOf": [
  3908. {
  3909. "type": "string"
  3910. },
  3911. {
  3912. "type": "null"
  3913. }
  3914. ]
  3915. },
  3916. "workspace": {
  3917. "anyOf": [
  3918. {
  3919. "type": "string"
  3920. },
  3921. {
  3922. "type": "null"
  3923. }
  3924. ]
  3925. }
  3926. },
  3927. "additionalProperties": false
  3928. },
  3929. {
  3930. "type": "null"
  3931. }
  3932. ]
  3933. },
  3934. "required": false,
  3935. "style": "deepObject",
  3936. "explode": true
  3937. }
  3938. ],
  3939. "security": [],
  3940. "responses": {
  3941. "200": {
  3942. "description": "Success",
  3943. "content": {
  3944. "application/json": {
  3945. "schema": {
  3946. "type": "object",
  3947. "properties": {
  3948. "location": {
  3949. "$ref": "#/components/schemas/Location.Info"
  3950. },
  3951. "data": {
  3952. "type": "array",
  3953. "items": {
  3954. "$ref": "#/components/schemas/ProviderV2.Info"
  3955. }
  3956. }
  3957. },
  3958. "required": [
  3959. "location",
  3960. "data"
  3961. ],
  3962. "additionalProperties": false
  3963. }
  3964. }
  3965. }
  3966. },
  3967. "400": {
  3968. "description": "InvalidRequestError",
  3969. "content": {
  3970. "application/json": {
  3971. "schema": {
  3972. "$ref": "#/components/schemas/InvalidRequestError"
  3973. }
  3974. }
  3975. }
  3976. },
  3977. "401": {
  3978. "description": "UnauthorizedError",
  3979. "content": {
  3980. "application/json": {
  3981. "schema": {
  3982. "$ref": "#/components/schemas/UnauthorizedError"
  3983. }
  3984. }
  3985. }
  3986. },
  3987. "503": {
  3988. "description": "ServiceUnavailableError",
  3989. "content": {
  3990. "application/json": {
  3991. "schema": {
  3992. "$ref": "#/components/schemas/ServiceUnavailableError"
  3993. }
  3994. }
  3995. }
  3996. }
  3997. },
  3998. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  3999. "summary": "List providers"
  4000. }
  4001. },
  4002. "/api/provider/{providerID}": {
  4003. "get": {
  4004. "tags": [
  4005. "provider"
  4006. ],
  4007. "operationId": "v2.provider.get",
  4008. "parameters": [
  4009. {
  4010. "name": "providerID",
  4011. "in": "path",
  4012. "schema": {
  4013. "type": "string"
  4014. },
  4015. "required": true
  4016. },
  4017. {
  4018. "name": "location",
  4019. "in": "query",
  4020. "schema": {
  4021. "anyOf": [
  4022. {
  4023. "type": "object",
  4024. "properties": {
  4025. "directory": {
  4026. "anyOf": [
  4027. {
  4028. "type": "string"
  4029. },
  4030. {
  4031. "type": "null"
  4032. }
  4033. ]
  4034. },
  4035. "workspace": {
  4036. "anyOf": [
  4037. {
  4038. "type": "string"
  4039. },
  4040. {
  4041. "type": "null"
  4042. }
  4043. ]
  4044. }
  4045. },
  4046. "additionalProperties": false
  4047. },
  4048. {
  4049. "type": "null"
  4050. }
  4051. ]
  4052. },
  4053. "required": false,
  4054. "style": "deepObject",
  4055. "explode": true
  4056. }
  4057. ],
  4058. "security": [],
  4059. "responses": {
  4060. "200": {
  4061. "description": "Success",
  4062. "content": {
  4063. "application/json": {
  4064. "schema": {
  4065. "type": "object",
  4066. "properties": {
  4067. "location": {
  4068. "$ref": "#/components/schemas/Location.Info"
  4069. },
  4070. "data": {
  4071. "$ref": "#/components/schemas/ProviderV2.Info"
  4072. }
  4073. },
  4074. "required": [
  4075. "location",
  4076. "data"
  4077. ],
  4078. "additionalProperties": false
  4079. }
  4080. }
  4081. }
  4082. },
  4083. "400": {
  4084. "description": "InvalidRequestError",
  4085. "content": {
  4086. "application/json": {
  4087. "schema": {
  4088. "$ref": "#/components/schemas/InvalidRequestError"
  4089. }
  4090. }
  4091. }
  4092. },
  4093. "401": {
  4094. "description": "UnauthorizedError",
  4095. "content": {
  4096. "application/json": {
  4097. "schema": {
  4098. "$ref": "#/components/schemas/UnauthorizedError"
  4099. }
  4100. }
  4101. }
  4102. },
  4103. "404": {
  4104. "description": "ProviderNotFoundError",
  4105. "content": {
  4106. "application/json": {
  4107. "schema": {
  4108. "$ref": "#/components/schemas/ProviderNotFoundError"
  4109. }
  4110. }
  4111. }
  4112. },
  4113. "503": {
  4114. "description": "ServiceUnavailableError",
  4115. "content": {
  4116. "application/json": {
  4117. "schema": {
  4118. "$ref": "#/components/schemas/ServiceUnavailableError"
  4119. }
  4120. }
  4121. }
  4122. }
  4123. },
  4124. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4125. "summary": "Get provider"
  4126. }
  4127. },
  4128. "/api/integration": {
  4129. "get": {
  4130. "tags": [
  4131. "integration"
  4132. ],
  4133. "operationId": "v2.integration.list",
  4134. "parameters": [
  4135. {
  4136. "name": "location",
  4137. "in": "query",
  4138. "schema": {
  4139. "anyOf": [
  4140. {
  4141. "type": "object",
  4142. "properties": {
  4143. "directory": {
  4144. "anyOf": [
  4145. {
  4146. "type": "string"
  4147. },
  4148. {
  4149. "type": "null"
  4150. }
  4151. ]
  4152. },
  4153. "workspace": {
  4154. "anyOf": [
  4155. {
  4156. "type": "string"
  4157. },
  4158. {
  4159. "type": "null"
  4160. }
  4161. ]
  4162. }
  4163. },
  4164. "additionalProperties": false
  4165. },
  4166. {
  4167. "type": "null"
  4168. }
  4169. ]
  4170. },
  4171. "required": false,
  4172. "style": "deepObject",
  4173. "explode": true
  4174. }
  4175. ],
  4176. "security": [],
  4177. "responses": {
  4178. "200": {
  4179. "description": "Success",
  4180. "content": {
  4181. "application/json": {
  4182. "schema": {
  4183. "type": "object",
  4184. "properties": {
  4185. "location": {
  4186. "$ref": "#/components/schemas/Location.Info"
  4187. },
  4188. "data": {
  4189. "type": "array",
  4190. "items": {
  4191. "$ref": "#/components/schemas/Integration.Info"
  4192. }
  4193. }
  4194. },
  4195. "required": [
  4196. "location",
  4197. "data"
  4198. ],
  4199. "additionalProperties": false
  4200. }
  4201. }
  4202. }
  4203. },
  4204. "400": {
  4205. "description": "InvalidRequestError",
  4206. "content": {
  4207. "application/json": {
  4208. "schema": {
  4209. "$ref": "#/components/schemas/InvalidRequestError"
  4210. }
  4211. }
  4212. }
  4213. },
  4214. "401": {
  4215. "description": "UnauthorizedError",
  4216. "content": {
  4217. "application/json": {
  4218. "schema": {
  4219. "$ref": "#/components/schemas/UnauthorizedError"
  4220. }
  4221. }
  4222. }
  4223. }
  4224. },
  4225. "description": "Retrieve available integrations and their authentication methods.",
  4226. "summary": "List integrations"
  4227. }
  4228. },
  4229. "/api/integration/{integrationID}": {
  4230. "get": {
  4231. "tags": [
  4232. "integration"
  4233. ],
  4234. "operationId": "v2.integration.get",
  4235. "parameters": [
  4236. {
  4237. "name": "integrationID",
  4238. "in": "path",
  4239. "schema": {
  4240. "type": "string"
  4241. },
  4242. "required": true
  4243. },
  4244. {
  4245. "name": "location",
  4246. "in": "query",
  4247. "schema": {
  4248. "anyOf": [
  4249. {
  4250. "type": "object",
  4251. "properties": {
  4252. "directory": {
  4253. "anyOf": [
  4254. {
  4255. "type": "string"
  4256. },
  4257. {
  4258. "type": "null"
  4259. }
  4260. ]
  4261. },
  4262. "workspace": {
  4263. "anyOf": [
  4264. {
  4265. "type": "string"
  4266. },
  4267. {
  4268. "type": "null"
  4269. }
  4270. ]
  4271. }
  4272. },
  4273. "additionalProperties": false
  4274. },
  4275. {
  4276. "type": "null"
  4277. }
  4278. ]
  4279. },
  4280. "required": false,
  4281. "style": "deepObject",
  4282. "explode": true
  4283. }
  4284. ],
  4285. "security": [],
  4286. "responses": {
  4287. "200": {
  4288. "description": "Success",
  4289. "content": {
  4290. "application/json": {
  4291. "schema": {
  4292. "type": "object",
  4293. "properties": {
  4294. "location": {
  4295. "$ref": "#/components/schemas/Location.Info"
  4296. },
  4297. "data": {
  4298. "anyOf": [
  4299. {
  4300. "$ref": "#/components/schemas/Integration.Info"
  4301. },
  4302. {
  4303. "type": "null"
  4304. }
  4305. ]
  4306. }
  4307. },
  4308. "required": [
  4309. "location",
  4310. "data"
  4311. ],
  4312. "additionalProperties": false
  4313. }
  4314. }
  4315. }
  4316. },
  4317. "400": {
  4318. "description": "InvalidRequestError",
  4319. "content": {
  4320. "application/json": {
  4321. "schema": {
  4322. "$ref": "#/components/schemas/InvalidRequestError"
  4323. }
  4324. }
  4325. }
  4326. },
  4327. "401": {
  4328. "description": "UnauthorizedError",
  4329. "content": {
  4330. "application/json": {
  4331. "schema": {
  4332. "$ref": "#/components/schemas/UnauthorizedError"
  4333. }
  4334. }
  4335. }
  4336. }
  4337. },
  4338. "description": "Retrieve one integration and its authentication methods.",
  4339. "summary": "Get integration"
  4340. }
  4341. },
  4342. "/api/integration/{integrationID}/connect/key": {
  4343. "post": {
  4344. "tags": [
  4345. "integration"
  4346. ],
  4347. "operationId": "v2.integration.connect.key",
  4348. "parameters": [
  4349. {
  4350. "name": "integrationID",
  4351. "in": "path",
  4352. "schema": {
  4353. "type": "string"
  4354. },
  4355. "required": true
  4356. },
  4357. {
  4358. "name": "location",
  4359. "in": "query",
  4360. "schema": {
  4361. "anyOf": [
  4362. {
  4363. "type": "object",
  4364. "properties": {
  4365. "directory": {
  4366. "anyOf": [
  4367. {
  4368. "type": "string"
  4369. },
  4370. {
  4371. "type": "null"
  4372. }
  4373. ]
  4374. },
  4375. "workspace": {
  4376. "anyOf": [
  4377. {
  4378. "type": "string"
  4379. },
  4380. {
  4381. "type": "null"
  4382. }
  4383. ]
  4384. }
  4385. },
  4386. "additionalProperties": false
  4387. },
  4388. {
  4389. "type": "null"
  4390. }
  4391. ]
  4392. },
  4393. "required": false,
  4394. "style": "deepObject",
  4395. "explode": true
  4396. }
  4397. ],
  4398. "security": [],
  4399. "responses": {
  4400. "204": {
  4401. "description": "<No Content>"
  4402. },
  4403. "400": {
  4404. "description": "InvalidRequestError",
  4405. "content": {
  4406. "application/json": {
  4407. "schema": {
  4408. "anyOf": [
  4409. {
  4410. "$ref": "#/components/schemas/InvalidRequestError1"
  4411. },
  4412. {
  4413. "$ref": "#/components/schemas/InvalidRequestError"
  4414. }
  4415. ]
  4416. }
  4417. }
  4418. }
  4419. },
  4420. "401": {
  4421. "description": "UnauthorizedError",
  4422. "content": {
  4423. "application/json": {
  4424. "schema": {
  4425. "$ref": "#/components/schemas/UnauthorizedError"
  4426. }
  4427. }
  4428. }
  4429. }
  4430. },
  4431. "description": "Run a key authentication method and store the resulting credential.",
  4432. "summary": "Connect with key",
  4433. "requestBody": {
  4434. "content": {
  4435. "application/json": {
  4436. "schema": {
  4437. "type": "object",
  4438. "properties": {
  4439. "key": {
  4440. "type": "string"
  4441. },
  4442. "label": {
  4443. "anyOf": [
  4444. {
  4445. "type": "string"
  4446. },
  4447. {
  4448. "type": "null"
  4449. }
  4450. ]
  4451. }
  4452. },
  4453. "required": [
  4454. "key"
  4455. ],
  4456. "additionalProperties": false
  4457. }
  4458. }
  4459. },
  4460. "required": true
  4461. }
  4462. }
  4463. },
  4464. "/api/integration/{integrationID}/connect/oauth": {
  4465. "post": {
  4466. "tags": [
  4467. "integration"
  4468. ],
  4469. "operationId": "v2.integration.connect.oauth",
  4470. "parameters": [
  4471. {
  4472. "name": "integrationID",
  4473. "in": "path",
  4474. "schema": {
  4475. "type": "string"
  4476. },
  4477. "required": true
  4478. },
  4479. {
  4480. "name": "location",
  4481. "in": "query",
  4482. "schema": {
  4483. "anyOf": [
  4484. {
  4485. "type": "object",
  4486. "properties": {
  4487. "directory": {
  4488. "anyOf": [
  4489. {
  4490. "type": "string"
  4491. },
  4492. {
  4493. "type": "null"
  4494. }
  4495. ]
  4496. },
  4497. "workspace": {
  4498. "anyOf": [
  4499. {
  4500. "type": "string"
  4501. },
  4502. {
  4503. "type": "null"
  4504. }
  4505. ]
  4506. }
  4507. },
  4508. "additionalProperties": false
  4509. },
  4510. {
  4511. "type": "null"
  4512. }
  4513. ]
  4514. },
  4515. "required": false,
  4516. "style": "deepObject",
  4517. "explode": true
  4518. }
  4519. ],
  4520. "security": [],
  4521. "responses": {
  4522. "200": {
  4523. "description": "Success",
  4524. "content": {
  4525. "application/json": {
  4526. "schema": {
  4527. "type": "object",
  4528. "properties": {
  4529. "location": {
  4530. "$ref": "#/components/schemas/Location.Info"
  4531. },
  4532. "data": {
  4533. "$ref": "#/components/schemas/Integration.Attempt"
  4534. }
  4535. },
  4536. "required": [
  4537. "location",
  4538. "data"
  4539. ],
  4540. "additionalProperties": false
  4541. }
  4542. }
  4543. }
  4544. },
  4545. "400": {
  4546. "description": "InvalidRequestError",
  4547. "content": {
  4548. "application/json": {
  4549. "schema": {
  4550. "anyOf": [
  4551. {
  4552. "$ref": "#/components/schemas/InvalidRequestError1"
  4553. },
  4554. {
  4555. "$ref": "#/components/schemas/InvalidRequestError"
  4556. }
  4557. ]
  4558. }
  4559. }
  4560. }
  4561. },
  4562. "401": {
  4563. "description": "UnauthorizedError",
  4564. "content": {
  4565. "application/json": {
  4566. "schema": {
  4567. "$ref": "#/components/schemas/UnauthorizedError"
  4568. }
  4569. }
  4570. }
  4571. }
  4572. },
  4573. "description": "Start an OAuth attempt and return the authorization details.",
  4574. "summary": "Begin OAuth connection",
  4575. "requestBody": {
  4576. "content": {
  4577. "application/json": {
  4578. "schema": {
  4579. "type": "object",
  4580. "properties": {
  4581. "methodID": {
  4582. "type": "string"
  4583. },
  4584. "inputs": {
  4585. "type": "object",
  4586. "additionalProperties": {
  4587. "type": "string"
  4588. }
  4589. },
  4590. "label": {
  4591. "anyOf": [
  4592. {
  4593. "type": "string"
  4594. },
  4595. {
  4596. "type": "null"
  4597. }
  4598. ]
  4599. }
  4600. },
  4601. "required": [
  4602. "methodID",
  4603. "inputs"
  4604. ],
  4605. "additionalProperties": false
  4606. }
  4607. }
  4608. },
  4609. "required": true
  4610. }
  4611. }
  4612. },
  4613. "/api/integration/attempt/{attemptID}": {
  4614. "get": {
  4615. "tags": [
  4616. "integration"
  4617. ],
  4618. "operationId": "v2.integration.attempt.status",
  4619. "parameters": [
  4620. {
  4621. "name": "attemptID",
  4622. "in": "path",
  4623. "schema": {
  4624. "type": "string"
  4625. },
  4626. "required": true
  4627. },
  4628. {
  4629. "name": "location",
  4630. "in": "query",
  4631. "schema": {
  4632. "anyOf": [
  4633. {
  4634. "type": "object",
  4635. "properties": {
  4636. "directory": {
  4637. "anyOf": [
  4638. {
  4639. "type": "string"
  4640. },
  4641. {
  4642. "type": "null"
  4643. }
  4644. ]
  4645. },
  4646. "workspace": {
  4647. "anyOf": [
  4648. {
  4649. "type": "string"
  4650. },
  4651. {
  4652. "type": "null"
  4653. }
  4654. ]
  4655. }
  4656. },
  4657. "additionalProperties": false
  4658. },
  4659. {
  4660. "type": "null"
  4661. }
  4662. ]
  4663. },
  4664. "required": false,
  4665. "style": "deepObject",
  4666. "explode": true
  4667. }
  4668. ],
  4669. "security": [],
  4670. "responses": {
  4671. "200": {
  4672. "description": "Success",
  4673. "content": {
  4674. "application/json": {
  4675. "schema": {
  4676. "type": "object",
  4677. "properties": {
  4678. "location": {
  4679. "$ref": "#/components/schemas/Location.Info"
  4680. },
  4681. "data": {
  4682. "$ref": "#/components/schemas/Integration.AttemptStatus"
  4683. }
  4684. },
  4685. "required": [
  4686. "location",
  4687. "data"
  4688. ],
  4689. "additionalProperties": false
  4690. }
  4691. }
  4692. }
  4693. },
  4694. "400": {
  4695. "description": "InvalidRequestError",
  4696. "content": {
  4697. "application/json": {
  4698. "schema": {
  4699. "$ref": "#/components/schemas/InvalidRequestError"
  4700. }
  4701. }
  4702. }
  4703. },
  4704. "401": {
  4705. "description": "UnauthorizedError",
  4706. "content": {
  4707. "application/json": {
  4708. "schema": {
  4709. "$ref": "#/components/schemas/UnauthorizedError"
  4710. }
  4711. }
  4712. }
  4713. }
  4714. },
  4715. "description": "Poll the current status of an OAuth attempt.",
  4716. "summary": "Get OAuth attempt status"
  4717. },
  4718. "delete": {
  4719. "tags": [
  4720. "integration"
  4721. ],
  4722. "operationId": "v2.integration.attempt.cancel",
  4723. "parameters": [
  4724. {
  4725. "name": "attemptID",
  4726. "in": "path",
  4727. "schema": {
  4728. "type": "string"
  4729. },
  4730. "required": true
  4731. },
  4732. {
  4733. "name": "location",
  4734. "in": "query",
  4735. "schema": {
  4736. "anyOf": [
  4737. {
  4738. "type": "object",
  4739. "properties": {
  4740. "directory": {
  4741. "anyOf": [
  4742. {
  4743. "type": "string"
  4744. },
  4745. {
  4746. "type": "null"
  4747. }
  4748. ]
  4749. },
  4750. "workspace": {
  4751. "anyOf": [
  4752. {
  4753. "type": "string"
  4754. },
  4755. {
  4756. "type": "null"
  4757. }
  4758. ]
  4759. }
  4760. },
  4761. "additionalProperties": false
  4762. },
  4763. {
  4764. "type": "null"
  4765. }
  4766. ]
  4767. },
  4768. "required": false,
  4769. "style": "deepObject",
  4770. "explode": true
  4771. }
  4772. ],
  4773. "security": [],
  4774. "responses": {
  4775. "204": {
  4776. "description": "<No Content>"
  4777. },
  4778. "400": {
  4779. "description": "InvalidRequestError",
  4780. "content": {
  4781. "application/json": {
  4782. "schema": {
  4783. "$ref": "#/components/schemas/InvalidRequestError"
  4784. }
  4785. }
  4786. }
  4787. },
  4788. "401": {
  4789. "description": "UnauthorizedError",
  4790. "content": {
  4791. "application/json": {
  4792. "schema": {
  4793. "$ref": "#/components/schemas/UnauthorizedError"
  4794. }
  4795. }
  4796. }
  4797. }
  4798. },
  4799. "description": "Cancel an OAuth attempt and release its resources.",
  4800. "summary": "Cancel OAuth connection"
  4801. }
  4802. },
  4803. "/api/integration/attempt/{attemptID}/complete": {
  4804. "post": {
  4805. "tags": [
  4806. "integration"
  4807. ],
  4808. "operationId": "v2.integration.attempt.complete",
  4809. "parameters": [
  4810. {
  4811. "name": "attemptID",
  4812. "in": "path",
  4813. "schema": {
  4814. "type": "string"
  4815. },
  4816. "required": true
  4817. },
  4818. {
  4819. "name": "location",
  4820. "in": "query",
  4821. "schema": {
  4822. "anyOf": [
  4823. {
  4824. "type": "object",
  4825. "properties": {
  4826. "directory": {
  4827. "anyOf": [
  4828. {
  4829. "type": "string"
  4830. },
  4831. {
  4832. "type": "null"
  4833. }
  4834. ]
  4835. },
  4836. "workspace": {
  4837. "anyOf": [
  4838. {
  4839. "type": "string"
  4840. },
  4841. {
  4842. "type": "null"
  4843. }
  4844. ]
  4845. }
  4846. },
  4847. "additionalProperties": false
  4848. },
  4849. {
  4850. "type": "null"
  4851. }
  4852. ]
  4853. },
  4854. "required": false,
  4855. "style": "deepObject",
  4856. "explode": true
  4857. }
  4858. ],
  4859. "security": [],
  4860. "responses": {
  4861. "204": {
  4862. "description": "<No Content>"
  4863. },
  4864. "400": {
  4865. "description": "InvalidRequestError",
  4866. "content": {
  4867. "application/json": {
  4868. "schema": {
  4869. "anyOf": [
  4870. {
  4871. "$ref": "#/components/schemas/InvalidRequestError1"
  4872. },
  4873. {
  4874. "$ref": "#/components/schemas/InvalidRequestError"
  4875. }
  4876. ]
  4877. }
  4878. }
  4879. }
  4880. },
  4881. "401": {
  4882. "description": "UnauthorizedError",
  4883. "content": {
  4884. "application/json": {
  4885. "schema": {
  4886. "$ref": "#/components/schemas/UnauthorizedError"
  4887. }
  4888. }
  4889. }
  4890. }
  4891. },
  4892. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  4893. "summary": "Complete OAuth connection",
  4894. "requestBody": {
  4895. "content": {
  4896. "application/json": {
  4897. "schema": {
  4898. "type": "object",
  4899. "properties": {
  4900. "code": {
  4901. "anyOf": [
  4902. {
  4903. "type": "string"
  4904. },
  4905. {
  4906. "type": "null"
  4907. }
  4908. ]
  4909. }
  4910. },
  4911. "additionalProperties": false
  4912. }
  4913. }
  4914. },
  4915. "required": true
  4916. }
  4917. }
  4918. },
  4919. "/api/mcp": {
  4920. "get": {
  4921. "tags": [
  4922. "mcp"
  4923. ],
  4924. "operationId": "v2.mcp.list",
  4925. "parameters": [
  4926. {
  4927. "name": "location",
  4928. "in": "query",
  4929. "schema": {
  4930. "anyOf": [
  4931. {
  4932. "type": "object",
  4933. "properties": {
  4934. "directory": {
  4935. "anyOf": [
  4936. {
  4937. "type": "string"
  4938. },
  4939. {
  4940. "type": "null"
  4941. }
  4942. ]
  4943. },
  4944. "workspace": {
  4945. "anyOf": [
  4946. {
  4947. "type": "string"
  4948. },
  4949. {
  4950. "type": "null"
  4951. }
  4952. ]
  4953. }
  4954. },
  4955. "additionalProperties": false
  4956. },
  4957. {
  4958. "type": "null"
  4959. }
  4960. ]
  4961. },
  4962. "required": false,
  4963. "style": "deepObject",
  4964. "explode": true
  4965. }
  4966. ],
  4967. "security": [],
  4968. "responses": {
  4969. "200": {
  4970. "description": "Success",
  4971. "content": {
  4972. "application/json": {
  4973. "schema": {
  4974. "type": "object",
  4975. "properties": {
  4976. "location": {
  4977. "$ref": "#/components/schemas/Location.Info"
  4978. },
  4979. "data": {
  4980. "type": "array",
  4981. "items": {
  4982. "$ref": "#/components/schemas/Mcp.Server"
  4983. }
  4984. }
  4985. },
  4986. "required": [
  4987. "location",
  4988. "data"
  4989. ],
  4990. "additionalProperties": false
  4991. }
  4992. }
  4993. }
  4994. },
  4995. "400": {
  4996. "description": "InvalidRequestError",
  4997. "content": {
  4998. "application/json": {
  4999. "schema": {
  5000. "$ref": "#/components/schemas/InvalidRequestError"
  5001. }
  5002. }
  5003. }
  5004. },
  5005. "401": {
  5006. "description": "UnauthorizedError",
  5007. "content": {
  5008. "application/json": {
  5009. "schema": {
  5010. "$ref": "#/components/schemas/UnauthorizedError"
  5011. }
  5012. }
  5013. }
  5014. }
  5015. },
  5016. "description": "Retrieve configured MCP servers and their connection status.",
  5017. "summary": "List MCP servers"
  5018. }
  5019. },
  5020. "/api/mcp/resource": {
  5021. "get": {
  5022. "tags": [
  5023. "mcp"
  5024. ],
  5025. "operationId": "v2.mcp.resource.catalog",
  5026. "parameters": [
  5027. {
  5028. "name": "location",
  5029. "in": "query",
  5030. "schema": {
  5031. "anyOf": [
  5032. {
  5033. "type": "object",
  5034. "properties": {
  5035. "directory": {
  5036. "anyOf": [
  5037. {
  5038. "type": "string"
  5039. },
  5040. {
  5041. "type": "null"
  5042. }
  5043. ]
  5044. },
  5045. "workspace": {
  5046. "anyOf": [
  5047. {
  5048. "type": "string"
  5049. },
  5050. {
  5051. "type": "null"
  5052. }
  5053. ]
  5054. }
  5055. },
  5056. "additionalProperties": false
  5057. },
  5058. {
  5059. "type": "null"
  5060. }
  5061. ]
  5062. },
  5063. "required": false,
  5064. "style": "deepObject",
  5065. "explode": true
  5066. }
  5067. ],
  5068. "security": [],
  5069. "responses": {
  5070. "200": {
  5071. "description": "Success",
  5072. "content": {
  5073. "application/json": {
  5074. "schema": {
  5075. "type": "object",
  5076. "properties": {
  5077. "location": {
  5078. "$ref": "#/components/schemas/Location.Info"
  5079. },
  5080. "data": {
  5081. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  5082. }
  5083. },
  5084. "required": [
  5085. "location",
  5086. "data"
  5087. ],
  5088. "additionalProperties": false
  5089. }
  5090. }
  5091. }
  5092. },
  5093. "400": {
  5094. "description": "InvalidRequestError",
  5095. "content": {
  5096. "application/json": {
  5097. "schema": {
  5098. "$ref": "#/components/schemas/InvalidRequestError"
  5099. }
  5100. }
  5101. }
  5102. },
  5103. "401": {
  5104. "description": "UnauthorizedError",
  5105. "content": {
  5106. "application/json": {
  5107. "schema": {
  5108. "$ref": "#/components/schemas/UnauthorizedError"
  5109. }
  5110. }
  5111. }
  5112. }
  5113. },
  5114. "description": "Retrieve resources and resource templates from connected MCP servers.",
  5115. "summary": "List MCP resources"
  5116. }
  5117. },
  5118. "/api/credential/{credentialID}": {
  5119. "patch": {
  5120. "tags": [
  5121. "credential"
  5122. ],
  5123. "operationId": "v2.credential.update",
  5124. "parameters": [
  5125. {
  5126. "name": "credentialID",
  5127. "in": "path",
  5128. "schema": {
  5129. "type": "string"
  5130. },
  5131. "required": true
  5132. },
  5133. {
  5134. "name": "location",
  5135. "in": "query",
  5136. "schema": {
  5137. "anyOf": [
  5138. {
  5139. "type": "object",
  5140. "properties": {
  5141. "directory": {
  5142. "anyOf": [
  5143. {
  5144. "type": "string"
  5145. },
  5146. {
  5147. "type": "null"
  5148. }
  5149. ]
  5150. },
  5151. "workspace": {
  5152. "anyOf": [
  5153. {
  5154. "type": "string"
  5155. },
  5156. {
  5157. "type": "null"
  5158. }
  5159. ]
  5160. }
  5161. },
  5162. "additionalProperties": false
  5163. },
  5164. {
  5165. "type": "null"
  5166. }
  5167. ]
  5168. },
  5169. "required": false,
  5170. "style": "deepObject",
  5171. "explode": true
  5172. }
  5173. ],
  5174. "security": [],
  5175. "responses": {
  5176. "204": {
  5177. "description": "<No Content>"
  5178. },
  5179. "400": {
  5180. "description": "InvalidRequestError",
  5181. "content": {
  5182. "application/json": {
  5183. "schema": {
  5184. "$ref": "#/components/schemas/InvalidRequestError"
  5185. }
  5186. }
  5187. }
  5188. },
  5189. "401": {
  5190. "description": "UnauthorizedError",
  5191. "content": {
  5192. "application/json": {
  5193. "schema": {
  5194. "$ref": "#/components/schemas/UnauthorizedError"
  5195. }
  5196. }
  5197. }
  5198. }
  5199. },
  5200. "description": "Update a stored credential label.",
  5201. "summary": "Update credential",
  5202. "requestBody": {
  5203. "content": {
  5204. "application/json": {
  5205. "schema": {
  5206. "type": "object",
  5207. "properties": {
  5208. "label": {
  5209. "type": "string"
  5210. }
  5211. },
  5212. "required": [
  5213. "label"
  5214. ],
  5215. "additionalProperties": false
  5216. }
  5217. }
  5218. },
  5219. "required": true
  5220. }
  5221. },
  5222. "delete": {
  5223. "tags": [
  5224. "credential"
  5225. ],
  5226. "operationId": "v2.credential.remove",
  5227. "parameters": [
  5228. {
  5229. "name": "credentialID",
  5230. "in": "path",
  5231. "schema": {
  5232. "type": "string"
  5233. },
  5234. "required": true
  5235. },
  5236. {
  5237. "name": "location",
  5238. "in": "query",
  5239. "schema": {
  5240. "anyOf": [
  5241. {
  5242. "type": "object",
  5243. "properties": {
  5244. "directory": {
  5245. "anyOf": [
  5246. {
  5247. "type": "string"
  5248. },
  5249. {
  5250. "type": "null"
  5251. }
  5252. ]
  5253. },
  5254. "workspace": {
  5255. "anyOf": [
  5256. {
  5257. "type": "string"
  5258. },
  5259. {
  5260. "type": "null"
  5261. }
  5262. ]
  5263. }
  5264. },
  5265. "additionalProperties": false
  5266. },
  5267. {
  5268. "type": "null"
  5269. }
  5270. ]
  5271. },
  5272. "required": false,
  5273. "style": "deepObject",
  5274. "explode": true
  5275. }
  5276. ],
  5277. "security": [],
  5278. "responses": {
  5279. "204": {
  5280. "description": "<No Content>"
  5281. },
  5282. "400": {
  5283. "description": "InvalidRequestError",
  5284. "content": {
  5285. "application/json": {
  5286. "schema": {
  5287. "$ref": "#/components/schemas/InvalidRequestError"
  5288. }
  5289. }
  5290. }
  5291. },
  5292. "401": {
  5293. "description": "UnauthorizedError",
  5294. "content": {
  5295. "application/json": {
  5296. "schema": {
  5297. "$ref": "#/components/schemas/UnauthorizedError"
  5298. }
  5299. }
  5300. }
  5301. }
  5302. },
  5303. "description": "Remove a stored integration credential.",
  5304. "summary": "Remove credential"
  5305. }
  5306. },
  5307. "/api/project": {
  5308. "get": {
  5309. "tags": [
  5310. "project"
  5311. ],
  5312. "operationId": "v2.project.list",
  5313. "parameters": [],
  5314. "security": [],
  5315. "responses": {
  5316. "200": {
  5317. "description": "Success",
  5318. "content": {
  5319. "application/json": {
  5320. "schema": {
  5321. "type": "array",
  5322. "items": {
  5323. "$ref": "#/components/schemas/Project"
  5324. }
  5325. }
  5326. }
  5327. }
  5328. },
  5329. "400": {
  5330. "description": "InvalidRequestError",
  5331. "content": {
  5332. "application/json": {
  5333. "schema": {
  5334. "$ref": "#/components/schemas/InvalidRequestError"
  5335. }
  5336. }
  5337. }
  5338. },
  5339. "401": {
  5340. "description": "UnauthorizedError",
  5341. "content": {
  5342. "application/json": {
  5343. "schema": {
  5344. "$ref": "#/components/schemas/UnauthorizedError"
  5345. }
  5346. }
  5347. }
  5348. }
  5349. },
  5350. "description": "List known projects.",
  5351. "summary": "List projects"
  5352. }
  5353. },
  5354. "/api/project/current": {
  5355. "get": {
  5356. "tags": [
  5357. "project"
  5358. ],
  5359. "operationId": "v2.project.current",
  5360. "parameters": [
  5361. {
  5362. "name": "location",
  5363. "in": "query",
  5364. "schema": {
  5365. "anyOf": [
  5366. {
  5367. "type": "object",
  5368. "properties": {
  5369. "directory": {
  5370. "anyOf": [
  5371. {
  5372. "type": "string"
  5373. },
  5374. {
  5375. "type": "null"
  5376. }
  5377. ]
  5378. },
  5379. "workspace": {
  5380. "anyOf": [
  5381. {
  5382. "type": "string"
  5383. },
  5384. {
  5385. "type": "null"
  5386. }
  5387. ]
  5388. }
  5389. },
  5390. "additionalProperties": false
  5391. },
  5392. {
  5393. "type": "null"
  5394. }
  5395. ]
  5396. },
  5397. "required": false,
  5398. "style": "deepObject",
  5399. "explode": true
  5400. }
  5401. ],
  5402. "security": [],
  5403. "responses": {
  5404. "200": {
  5405. "description": "Project.Current",
  5406. "content": {
  5407. "application/json": {
  5408. "schema": {
  5409. "$ref": "#/components/schemas/Project.Current"
  5410. }
  5411. }
  5412. }
  5413. },
  5414. "400": {
  5415. "description": "InvalidRequestError",
  5416. "content": {
  5417. "application/json": {
  5418. "schema": {
  5419. "$ref": "#/components/schemas/InvalidRequestError"
  5420. }
  5421. }
  5422. }
  5423. },
  5424. "401": {
  5425. "description": "UnauthorizedError",
  5426. "content": {
  5427. "application/json": {
  5428. "schema": {
  5429. "$ref": "#/components/schemas/UnauthorizedError"
  5430. }
  5431. }
  5432. }
  5433. }
  5434. },
  5435. "description": "Resolve the project for the requested location.",
  5436. "summary": "Get current project"
  5437. }
  5438. },
  5439. "/api/project/{projectID}/directories": {
  5440. "get": {
  5441. "tags": [
  5442. "project"
  5443. ],
  5444. "operationId": "v2.project.directories",
  5445. "parameters": [
  5446. {
  5447. "name": "projectID",
  5448. "in": "path",
  5449. "schema": {
  5450. "type": "string"
  5451. },
  5452. "required": true
  5453. },
  5454. {
  5455. "name": "location",
  5456. "in": "query",
  5457. "schema": {
  5458. "anyOf": [
  5459. {
  5460. "type": "object",
  5461. "properties": {
  5462. "directory": {
  5463. "anyOf": [
  5464. {
  5465. "type": "string"
  5466. },
  5467. {
  5468. "type": "null"
  5469. }
  5470. ]
  5471. },
  5472. "workspace": {
  5473. "anyOf": [
  5474. {
  5475. "type": "string"
  5476. },
  5477. {
  5478. "type": "null"
  5479. }
  5480. ]
  5481. }
  5482. },
  5483. "additionalProperties": false
  5484. },
  5485. {
  5486. "type": "null"
  5487. }
  5488. ]
  5489. },
  5490. "required": false,
  5491. "style": "deepObject",
  5492. "explode": true
  5493. }
  5494. ],
  5495. "security": [],
  5496. "responses": {
  5497. "200": {
  5498. "description": "Project.Directories",
  5499. "content": {
  5500. "application/json": {
  5501. "schema": {
  5502. "$ref": "#/components/schemas/Project.Directories"
  5503. }
  5504. }
  5505. }
  5506. },
  5507. "400": {
  5508. "description": "InvalidRequestError",
  5509. "content": {
  5510. "application/json": {
  5511. "schema": {
  5512. "$ref": "#/components/schemas/InvalidRequestError"
  5513. }
  5514. }
  5515. }
  5516. },
  5517. "401": {
  5518. "description": "UnauthorizedError",
  5519. "content": {
  5520. "application/json": {
  5521. "schema": {
  5522. "$ref": "#/components/schemas/UnauthorizedError"
  5523. }
  5524. }
  5525. }
  5526. }
  5527. },
  5528. "description": "List known local absolute directories for a project.",
  5529. "summary": "List project directories"
  5530. }
  5531. },
  5532. "/api/form/request": {
  5533. "get": {
  5534. "tags": [
  5535. "form"
  5536. ],
  5537. "operationId": "v2.form.request.list",
  5538. "parameters": [
  5539. {
  5540. "name": "location",
  5541. "in": "query",
  5542. "schema": {
  5543. "anyOf": [
  5544. {
  5545. "type": "object",
  5546. "properties": {
  5547. "directory": {
  5548. "anyOf": [
  5549. {
  5550. "type": "string"
  5551. },
  5552. {
  5553. "type": "null"
  5554. }
  5555. ]
  5556. },
  5557. "workspace": {
  5558. "anyOf": [
  5559. {
  5560. "type": "string"
  5561. },
  5562. {
  5563. "type": "null"
  5564. }
  5565. ]
  5566. }
  5567. },
  5568. "additionalProperties": false
  5569. },
  5570. {
  5571. "type": "null"
  5572. }
  5573. ]
  5574. },
  5575. "required": false,
  5576. "style": "deepObject",
  5577. "explode": true
  5578. }
  5579. ],
  5580. "security": [],
  5581. "responses": {
  5582. "200": {
  5583. "description": "Success",
  5584. "content": {
  5585. "application/json": {
  5586. "schema": {
  5587. "type": "object",
  5588. "properties": {
  5589. "location": {
  5590. "$ref": "#/components/schemas/Location.Info"
  5591. },
  5592. "data": {
  5593. "type": "array",
  5594. "items": {
  5595. "anyOf": [
  5596. {
  5597. "$ref": "#/components/schemas/Form.FormInfo"
  5598. },
  5599. {
  5600. "$ref": "#/components/schemas/Form.UrlInfo"
  5601. }
  5602. ]
  5603. }
  5604. }
  5605. },
  5606. "required": [
  5607. "location",
  5608. "data"
  5609. ],
  5610. "additionalProperties": false
  5611. }
  5612. }
  5613. }
  5614. },
  5615. "400": {
  5616. "description": "InvalidRequestError",
  5617. "content": {
  5618. "application/json": {
  5619. "schema": {
  5620. "$ref": "#/components/schemas/InvalidRequestError"
  5621. }
  5622. }
  5623. }
  5624. },
  5625. "401": {
  5626. "description": "UnauthorizedError",
  5627. "content": {
  5628. "application/json": {
  5629. "schema": {
  5630. "$ref": "#/components/schemas/UnauthorizedError"
  5631. }
  5632. }
  5633. }
  5634. }
  5635. },
  5636. "description": "Retrieve pending forms for a location.",
  5637. "summary": "List pending form requests"
  5638. }
  5639. },
  5640. "/api/session/{sessionID}/form": {
  5641. "get": {
  5642. "tags": [
  5643. "form"
  5644. ],
  5645. "operationId": "v2.session.form.list",
  5646. "parameters": [
  5647. {
  5648. "name": "sessionID",
  5649. "in": "path",
  5650. "schema": {
  5651. "type": "string"
  5652. },
  5653. "required": true
  5654. }
  5655. ],
  5656. "security": [],
  5657. "responses": {
  5658. "200": {
  5659. "description": "Success",
  5660. "content": {
  5661. "application/json": {
  5662. "schema": {
  5663. "type": "object",
  5664. "properties": {
  5665. "data": {
  5666. "type": "array",
  5667. "items": {
  5668. "anyOf": [
  5669. {
  5670. "$ref": "#/components/schemas/Form.FormInfo"
  5671. },
  5672. {
  5673. "$ref": "#/components/schemas/Form.UrlInfo"
  5674. }
  5675. ]
  5676. }
  5677. }
  5678. },
  5679. "required": [
  5680. "data"
  5681. ],
  5682. "additionalProperties": false
  5683. }
  5684. }
  5685. }
  5686. },
  5687. "400": {
  5688. "description": "InvalidRequestError",
  5689. "content": {
  5690. "application/json": {
  5691. "schema": {
  5692. "$ref": "#/components/schemas/InvalidRequestError"
  5693. }
  5694. }
  5695. }
  5696. },
  5697. "401": {
  5698. "description": "UnauthorizedError",
  5699. "content": {
  5700. "application/json": {
  5701. "schema": {
  5702. "$ref": "#/components/schemas/UnauthorizedError"
  5703. }
  5704. }
  5705. }
  5706. },
  5707. "404": {
  5708. "description": "SessionNotFoundError",
  5709. "content": {
  5710. "application/json": {
  5711. "schema": {
  5712. "anyOf": [
  5713. {
  5714. "$ref": "#/components/schemas/SessionNotFoundError"
  5715. },
  5716. {
  5717. "$ref": "#/components/schemas/SessionNotFoundError"
  5718. }
  5719. ]
  5720. }
  5721. }
  5722. }
  5723. }
  5724. },
  5725. "description": "Retrieve pending forms for a session.",
  5726. "summary": "List session forms"
  5727. },
  5728. "post": {
  5729. "tags": [
  5730. "form"
  5731. ],
  5732. "operationId": "v2.session.form.create",
  5733. "parameters": [
  5734. {
  5735. "name": "sessionID",
  5736. "in": "path",
  5737. "schema": {
  5738. "type": "string"
  5739. },
  5740. "required": true
  5741. }
  5742. ],
  5743. "security": [],
  5744. "responses": {
  5745. "200": {
  5746. "description": "Success",
  5747. "content": {
  5748. "application/json": {
  5749. "schema": {
  5750. "type": "object",
  5751. "properties": {
  5752. "data": {
  5753. "anyOf": [
  5754. {
  5755. "$ref": "#/components/schemas/Form.FormInfo"
  5756. },
  5757. {
  5758. "$ref": "#/components/schemas/Form.UrlInfo"
  5759. }
  5760. ]
  5761. }
  5762. },
  5763. "required": [
  5764. "data"
  5765. ],
  5766. "additionalProperties": false
  5767. }
  5768. }
  5769. }
  5770. },
  5771. "400": {
  5772. "description": "InvalidRequestError",
  5773. "content": {
  5774. "application/json": {
  5775. "schema": {
  5776. "anyOf": [
  5777. {
  5778. "$ref": "#/components/schemas/InvalidRequestError1"
  5779. },
  5780. {
  5781. "$ref": "#/components/schemas/InvalidRequestError"
  5782. }
  5783. ]
  5784. }
  5785. }
  5786. }
  5787. },
  5788. "401": {
  5789. "description": "UnauthorizedError",
  5790. "content": {
  5791. "application/json": {
  5792. "schema": {
  5793. "$ref": "#/components/schemas/UnauthorizedError"
  5794. }
  5795. }
  5796. }
  5797. },
  5798. "404": {
  5799. "description": "SessionNotFoundError",
  5800. "content": {
  5801. "application/json": {
  5802. "schema": {
  5803. "anyOf": [
  5804. {
  5805. "$ref": "#/components/schemas/SessionNotFoundError"
  5806. },
  5807. {
  5808. "$ref": "#/components/schemas/SessionNotFoundError"
  5809. }
  5810. ]
  5811. }
  5812. }
  5813. }
  5814. },
  5815. "409": {
  5816. "description": "ConflictError",
  5817. "content": {
  5818. "application/json": {
  5819. "schema": {
  5820. "$ref": "#/components/schemas/ConflictError"
  5821. }
  5822. }
  5823. }
  5824. }
  5825. },
  5826. "description": "Create a form for a session.",
  5827. "summary": "Create session form",
  5828. "requestBody": {
  5829. "content": {
  5830. "application/json": {
  5831. "schema": {
  5832. "$ref": "#/components/schemas/Form.CreatePayload"
  5833. }
  5834. }
  5835. },
  5836. "required": true
  5837. }
  5838. }
  5839. },
  5840. "/api/session/{sessionID}/form/{formID}": {
  5841. "get": {
  5842. "tags": [
  5843. "form"
  5844. ],
  5845. "operationId": "v2.session.form.get",
  5846. "parameters": [
  5847. {
  5848. "name": "sessionID",
  5849. "in": "path",
  5850. "schema": {
  5851. "type": "string"
  5852. },
  5853. "required": true
  5854. },
  5855. {
  5856. "name": "formID",
  5857. "in": "path",
  5858. "schema": {
  5859. "type": "string",
  5860. "allOf": [
  5861. {
  5862. "pattern": "^frm_"
  5863. }
  5864. ]
  5865. },
  5866. "required": true
  5867. }
  5868. ],
  5869. "security": [],
  5870. "responses": {
  5871. "200": {
  5872. "description": "Success",
  5873. "content": {
  5874. "application/json": {
  5875. "schema": {
  5876. "type": "object",
  5877. "properties": {
  5878. "data": {
  5879. "anyOf": [
  5880. {
  5881. "$ref": "#/components/schemas/Form.FormInfo"
  5882. },
  5883. {
  5884. "$ref": "#/components/schemas/Form.UrlInfo"
  5885. }
  5886. ]
  5887. }
  5888. },
  5889. "required": [
  5890. "data"
  5891. ],
  5892. "additionalProperties": false
  5893. }
  5894. }
  5895. }
  5896. },
  5897. "400": {
  5898. "description": "InvalidRequestError",
  5899. "content": {
  5900. "application/json": {
  5901. "schema": {
  5902. "$ref": "#/components/schemas/InvalidRequestError"
  5903. }
  5904. }
  5905. }
  5906. },
  5907. "401": {
  5908. "description": "UnauthorizedError",
  5909. "content": {
  5910. "application/json": {
  5911. "schema": {
  5912. "$ref": "#/components/schemas/UnauthorizedError"
  5913. }
  5914. }
  5915. }
  5916. },
  5917. "404": {
  5918. "description": "SessionNotFoundError | FormNotFoundError",
  5919. "content": {
  5920. "application/json": {
  5921. "schema": {
  5922. "anyOf": [
  5923. {
  5924. "$ref": "#/components/schemas/FormNotFoundError"
  5925. },
  5926. {
  5927. "$ref": "#/components/schemas/SessionNotFoundError"
  5928. },
  5929. {
  5930. "$ref": "#/components/schemas/SessionNotFoundError"
  5931. }
  5932. ]
  5933. }
  5934. }
  5935. }
  5936. }
  5937. },
  5938. "description": "Retrieve a form for a session.",
  5939. "summary": "Get session form"
  5940. }
  5941. },
  5942. "/api/session/{sessionID}/form/{formID}/state": {
  5943. "get": {
  5944. "tags": [
  5945. "form"
  5946. ],
  5947. "operationId": "v2.session.form.state",
  5948. "parameters": [
  5949. {
  5950. "name": "sessionID",
  5951. "in": "path",
  5952. "schema": {
  5953. "type": "string"
  5954. },
  5955. "required": true
  5956. },
  5957. {
  5958. "name": "formID",
  5959. "in": "path",
  5960. "schema": {
  5961. "type": "string",
  5962. "allOf": [
  5963. {
  5964. "pattern": "^frm_"
  5965. }
  5966. ]
  5967. },
  5968. "required": true
  5969. }
  5970. ],
  5971. "security": [],
  5972. "responses": {
  5973. "200": {
  5974. "description": "Success",
  5975. "content": {
  5976. "application/json": {
  5977. "schema": {
  5978. "type": "object",
  5979. "properties": {
  5980. "data": {
  5981. "$ref": "#/components/schemas/Form.State"
  5982. }
  5983. },
  5984. "required": [
  5985. "data"
  5986. ],
  5987. "additionalProperties": false
  5988. }
  5989. }
  5990. }
  5991. },
  5992. "400": {
  5993. "description": "InvalidRequestError",
  5994. "content": {
  5995. "application/json": {
  5996. "schema": {
  5997. "$ref": "#/components/schemas/InvalidRequestError"
  5998. }
  5999. }
  6000. }
  6001. },
  6002. "401": {
  6003. "description": "UnauthorizedError",
  6004. "content": {
  6005. "application/json": {
  6006. "schema": {
  6007. "$ref": "#/components/schemas/UnauthorizedError"
  6008. }
  6009. }
  6010. }
  6011. },
  6012. "404": {
  6013. "description": "SessionNotFoundError | FormNotFoundError",
  6014. "content": {
  6015. "application/json": {
  6016. "schema": {
  6017. "anyOf": [
  6018. {
  6019. "$ref": "#/components/schemas/FormNotFoundError"
  6020. },
  6021. {
  6022. "$ref": "#/components/schemas/SessionNotFoundError"
  6023. },
  6024. {
  6025. "$ref": "#/components/schemas/SessionNotFoundError"
  6026. }
  6027. ]
  6028. }
  6029. }
  6030. }
  6031. }
  6032. },
  6033. "description": "Retrieve the current state for a form.",
  6034. "summary": "Get form state"
  6035. }
  6036. },
  6037. "/api/session/{sessionID}/form/{formID}/reply": {
  6038. "post": {
  6039. "tags": [
  6040. "form"
  6041. ],
  6042. "operationId": "v2.session.form.reply",
  6043. "parameters": [
  6044. {
  6045. "name": "sessionID",
  6046. "in": "path",
  6047. "schema": {
  6048. "type": "string"
  6049. },
  6050. "required": true
  6051. },
  6052. {
  6053. "name": "formID",
  6054. "in": "path",
  6055. "schema": {
  6056. "type": "string",
  6057. "allOf": [
  6058. {
  6059. "pattern": "^frm_"
  6060. }
  6061. ]
  6062. },
  6063. "required": true
  6064. }
  6065. ],
  6066. "security": [],
  6067. "responses": {
  6068. "204": {
  6069. "description": "<No Content>"
  6070. },
  6071. "400": {
  6072. "description": "FormInvalidAnswerError | InvalidRequestError",
  6073. "content": {
  6074. "application/json": {
  6075. "schema": {
  6076. "anyOf": [
  6077. {
  6078. "$ref": "#/components/schemas/FormInvalidAnswerError"
  6079. },
  6080. {
  6081. "$ref": "#/components/schemas/InvalidRequestError"
  6082. }
  6083. ]
  6084. }
  6085. }
  6086. }
  6087. },
  6088. "401": {
  6089. "description": "UnauthorizedError",
  6090. "content": {
  6091. "application/json": {
  6092. "schema": {
  6093. "$ref": "#/components/schemas/UnauthorizedError"
  6094. }
  6095. }
  6096. }
  6097. },
  6098. "404": {
  6099. "description": "SessionNotFoundError | FormNotFoundError",
  6100. "content": {
  6101. "application/json": {
  6102. "schema": {
  6103. "anyOf": [
  6104. {
  6105. "$ref": "#/components/schemas/FormNotFoundError"
  6106. },
  6107. {
  6108. "$ref": "#/components/schemas/SessionNotFoundError"
  6109. },
  6110. {
  6111. "$ref": "#/components/schemas/SessionNotFoundError"
  6112. }
  6113. ]
  6114. }
  6115. }
  6116. }
  6117. },
  6118. "409": {
  6119. "description": "FormAlreadySettledError",
  6120. "content": {
  6121. "application/json": {
  6122. "schema": {
  6123. "$ref": "#/components/schemas/FormAlreadySettledError"
  6124. }
  6125. }
  6126. }
  6127. }
  6128. },
  6129. "description": "Submit an answer to a pending form.",
  6130. "summary": "Reply to form",
  6131. "requestBody": {
  6132. "content": {
  6133. "application/json": {
  6134. "schema": {
  6135. "$ref": "#/components/schemas/Form.Reply"
  6136. }
  6137. }
  6138. },
  6139. "required": true
  6140. }
  6141. }
  6142. },
  6143. "/api/session/{sessionID}/form/{formID}/cancel": {
  6144. "post": {
  6145. "tags": [
  6146. "form"
  6147. ],
  6148. "operationId": "v2.session.form.cancel",
  6149. "parameters": [
  6150. {
  6151. "name": "sessionID",
  6152. "in": "path",
  6153. "schema": {
  6154. "type": "string"
  6155. },
  6156. "required": true
  6157. },
  6158. {
  6159. "name": "formID",
  6160. "in": "path",
  6161. "schema": {
  6162. "type": "string",
  6163. "allOf": [
  6164. {
  6165. "pattern": "^frm_"
  6166. }
  6167. ]
  6168. },
  6169. "required": true
  6170. }
  6171. ],
  6172. "security": [],
  6173. "responses": {
  6174. "204": {
  6175. "description": "<No Content>"
  6176. },
  6177. "400": {
  6178. "description": "InvalidRequestError",
  6179. "content": {
  6180. "application/json": {
  6181. "schema": {
  6182. "$ref": "#/components/schemas/InvalidRequestError"
  6183. }
  6184. }
  6185. }
  6186. },
  6187. "401": {
  6188. "description": "UnauthorizedError",
  6189. "content": {
  6190. "application/json": {
  6191. "schema": {
  6192. "$ref": "#/components/schemas/UnauthorizedError"
  6193. }
  6194. }
  6195. }
  6196. },
  6197. "404": {
  6198. "description": "SessionNotFoundError | FormNotFoundError",
  6199. "content": {
  6200. "application/json": {
  6201. "schema": {
  6202. "anyOf": [
  6203. {
  6204. "$ref": "#/components/schemas/FormNotFoundError"
  6205. },
  6206. {
  6207. "$ref": "#/components/schemas/SessionNotFoundError"
  6208. },
  6209. {
  6210. "$ref": "#/components/schemas/SessionNotFoundError"
  6211. }
  6212. ]
  6213. }
  6214. }
  6215. }
  6216. },
  6217. "409": {
  6218. "description": "FormAlreadySettledError",
  6219. "content": {
  6220. "application/json": {
  6221. "schema": {
  6222. "$ref": "#/components/schemas/FormAlreadySettledError"
  6223. }
  6224. }
  6225. }
  6226. }
  6227. },
  6228. "description": "Cancel a pending form.",
  6229. "summary": "Cancel form"
  6230. }
  6231. },
  6232. "/api/permission/request": {
  6233. "get": {
  6234. "tags": [
  6235. "permission"
  6236. ],
  6237. "operationId": "v2.permission.request.list",
  6238. "parameters": [
  6239. {
  6240. "name": "location",
  6241. "in": "query",
  6242. "schema": {
  6243. "anyOf": [
  6244. {
  6245. "type": "object",
  6246. "properties": {
  6247. "directory": {
  6248. "anyOf": [
  6249. {
  6250. "type": "string"
  6251. },
  6252. {
  6253. "type": "null"
  6254. }
  6255. ]
  6256. },
  6257. "workspace": {
  6258. "anyOf": [
  6259. {
  6260. "type": "string"
  6261. },
  6262. {
  6263. "type": "null"
  6264. }
  6265. ]
  6266. }
  6267. },
  6268. "additionalProperties": false
  6269. },
  6270. {
  6271. "type": "null"
  6272. }
  6273. ]
  6274. },
  6275. "required": false,
  6276. "style": "deepObject",
  6277. "explode": true
  6278. }
  6279. ],
  6280. "security": [],
  6281. "responses": {
  6282. "200": {
  6283. "description": "Success",
  6284. "content": {
  6285. "application/json": {
  6286. "schema": {
  6287. "type": "object",
  6288. "properties": {
  6289. "location": {
  6290. "$ref": "#/components/schemas/Location.Info"
  6291. },
  6292. "data": {
  6293. "type": "array",
  6294. "items": {
  6295. "$ref": "#/components/schemas/PermissionV2.Request"
  6296. }
  6297. }
  6298. },
  6299. "required": [
  6300. "location",
  6301. "data"
  6302. ],
  6303. "additionalProperties": false
  6304. }
  6305. }
  6306. }
  6307. },
  6308. "400": {
  6309. "description": "InvalidRequestError",
  6310. "content": {
  6311. "application/json": {
  6312. "schema": {
  6313. "$ref": "#/components/schemas/InvalidRequestError"
  6314. }
  6315. }
  6316. }
  6317. },
  6318. "401": {
  6319. "description": "UnauthorizedError",
  6320. "content": {
  6321. "application/json": {
  6322. "schema": {
  6323. "$ref": "#/components/schemas/UnauthorizedError"
  6324. }
  6325. }
  6326. }
  6327. }
  6328. },
  6329. "description": "Retrieve pending permission requests for a location.",
  6330. "summary": "List pending permission requests"
  6331. }
  6332. },
  6333. "/api/permission/saved": {
  6334. "get": {
  6335. "tags": [
  6336. "permission"
  6337. ],
  6338. "operationId": "v2.permission.saved.list",
  6339. "parameters": [
  6340. {
  6341. "name": "projectID",
  6342. "in": "query",
  6343. "schema": {
  6344. "anyOf": [
  6345. {
  6346. "type": "string"
  6347. },
  6348. {
  6349. "type": "null"
  6350. }
  6351. ]
  6352. },
  6353. "required": false
  6354. }
  6355. ],
  6356. "security": [],
  6357. "responses": {
  6358. "200": {
  6359. "description": "Success",
  6360. "content": {
  6361. "application/json": {
  6362. "schema": {
  6363. "type": "object",
  6364. "properties": {
  6365. "data": {
  6366. "type": "array",
  6367. "items": {
  6368. "$ref": "#/components/schemas/PermissionSaved.Info"
  6369. }
  6370. }
  6371. },
  6372. "required": [
  6373. "data"
  6374. ],
  6375. "additionalProperties": false
  6376. }
  6377. }
  6378. }
  6379. },
  6380. "400": {
  6381. "description": "InvalidRequestError",
  6382. "content": {
  6383. "application/json": {
  6384. "schema": {
  6385. "$ref": "#/components/schemas/InvalidRequestError"
  6386. }
  6387. }
  6388. }
  6389. },
  6390. "401": {
  6391. "description": "UnauthorizedError",
  6392. "content": {
  6393. "application/json": {
  6394. "schema": {
  6395. "$ref": "#/components/schemas/UnauthorizedError"
  6396. }
  6397. }
  6398. }
  6399. }
  6400. },
  6401. "description": "Retrieve saved permissions, optionally filtered by project.",
  6402. "summary": "List saved permissions"
  6403. }
  6404. },
  6405. "/api/permission/saved/{id}": {
  6406. "delete": {
  6407. "tags": [
  6408. "permission"
  6409. ],
  6410. "operationId": "v2.permission.saved.remove",
  6411. "parameters": [
  6412. {
  6413. "name": "id",
  6414. "in": "path",
  6415. "schema": {
  6416. "type": "string"
  6417. },
  6418. "required": true
  6419. }
  6420. ],
  6421. "security": [],
  6422. "responses": {
  6423. "204": {
  6424. "description": "<No Content>"
  6425. },
  6426. "400": {
  6427. "description": "InvalidRequestError",
  6428. "content": {
  6429. "application/json": {
  6430. "schema": {
  6431. "$ref": "#/components/schemas/InvalidRequestError"
  6432. }
  6433. }
  6434. }
  6435. },
  6436. "401": {
  6437. "description": "UnauthorizedError",
  6438. "content": {
  6439. "application/json": {
  6440. "schema": {
  6441. "$ref": "#/components/schemas/UnauthorizedError"
  6442. }
  6443. }
  6444. }
  6445. }
  6446. },
  6447. "description": "Remove a saved permission by ID.",
  6448. "summary": "Remove saved permission"
  6449. }
  6450. },
  6451. "/api/session/{sessionID}/permission": {
  6452. "post": {
  6453. "tags": [
  6454. "permission"
  6455. ],
  6456. "operationId": "v2.session.permission.create",
  6457. "parameters": [
  6458. {
  6459. "name": "sessionID",
  6460. "in": "path",
  6461. "schema": {
  6462. "type": "string",
  6463. "allOf": [
  6464. {
  6465. "pattern": "^ses"
  6466. }
  6467. ]
  6468. },
  6469. "required": true
  6470. }
  6471. ],
  6472. "security": [],
  6473. "responses": {
  6474. "200": {
  6475. "description": "Success",
  6476. "content": {
  6477. "application/json": {
  6478. "schema": {
  6479. "type": "object",
  6480. "properties": {
  6481. "data": {
  6482. "type": "object",
  6483. "properties": {
  6484. "id": {
  6485. "type": "string",
  6486. "allOf": [
  6487. {
  6488. "pattern": "^per"
  6489. }
  6490. ]
  6491. },
  6492. "effect": {
  6493. "$ref": "#/components/schemas/PermissionV2.Effect"
  6494. }
  6495. },
  6496. "required": [
  6497. "id",
  6498. "effect"
  6499. ],
  6500. "additionalProperties": false
  6501. }
  6502. },
  6503. "required": [
  6504. "data"
  6505. ],
  6506. "additionalProperties": false
  6507. }
  6508. }
  6509. }
  6510. },
  6511. "400": {
  6512. "description": "InvalidRequestError",
  6513. "content": {
  6514. "application/json": {
  6515. "schema": {
  6516. "$ref": "#/components/schemas/InvalidRequestError"
  6517. }
  6518. }
  6519. }
  6520. },
  6521. "401": {
  6522. "description": "UnauthorizedError",
  6523. "content": {
  6524. "application/json": {
  6525. "schema": {
  6526. "$ref": "#/components/schemas/UnauthorizedError"
  6527. }
  6528. }
  6529. }
  6530. },
  6531. "404": {
  6532. "description": "SessionNotFoundError",
  6533. "content": {
  6534. "application/json": {
  6535. "schema": {
  6536. "anyOf": [
  6537. {
  6538. "$ref": "#/components/schemas/SessionNotFoundError"
  6539. },
  6540. {
  6541. "$ref": "#/components/schemas/SessionNotFoundError"
  6542. }
  6543. ]
  6544. }
  6545. }
  6546. }
  6547. }
  6548. },
  6549. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  6550. "summary": "Create permission request",
  6551. "requestBody": {
  6552. "content": {
  6553. "application/json": {
  6554. "schema": {
  6555. "type": "object",
  6556. "properties": {
  6557. "id": {
  6558. "anyOf": [
  6559. {
  6560. "type": "string",
  6561. "allOf": [
  6562. {
  6563. "pattern": "^per"
  6564. }
  6565. ]
  6566. },
  6567. {
  6568. "type": "null"
  6569. }
  6570. ]
  6571. },
  6572. "action": {
  6573. "type": "string"
  6574. },
  6575. "resources": {
  6576. "type": "array",
  6577. "items": {
  6578. "type": "string"
  6579. }
  6580. },
  6581. "save": {
  6582. "type": "array",
  6583. "items": {
  6584. "type": "string"
  6585. }
  6586. },
  6587. "metadata": {
  6588. "type": "object"
  6589. },
  6590. "source": {
  6591. "$ref": "#/components/schemas/PermissionV2.Source"
  6592. },
  6593. "agent": {
  6594. "anyOf": [
  6595. {
  6596. "type": "string"
  6597. },
  6598. {
  6599. "type": "null"
  6600. }
  6601. ]
  6602. }
  6603. },
  6604. "required": [
  6605. "action",
  6606. "resources"
  6607. ],
  6608. "additionalProperties": false
  6609. }
  6610. }
  6611. },
  6612. "required": true
  6613. }
  6614. },
  6615. "get": {
  6616. "tags": [
  6617. "permission"
  6618. ],
  6619. "operationId": "v2.session.permission.list",
  6620. "parameters": [
  6621. {
  6622. "name": "sessionID",
  6623. "in": "path",
  6624. "schema": {
  6625. "type": "string",
  6626. "allOf": [
  6627. {
  6628. "pattern": "^ses"
  6629. }
  6630. ]
  6631. },
  6632. "required": true
  6633. }
  6634. ],
  6635. "security": [],
  6636. "responses": {
  6637. "200": {
  6638. "description": "Success",
  6639. "content": {
  6640. "application/json": {
  6641. "schema": {
  6642. "type": "object",
  6643. "properties": {
  6644. "data": {
  6645. "type": "array",
  6646. "items": {
  6647. "$ref": "#/components/schemas/PermissionV2.Request"
  6648. }
  6649. }
  6650. },
  6651. "required": [
  6652. "data"
  6653. ],
  6654. "additionalProperties": false
  6655. }
  6656. }
  6657. }
  6658. },
  6659. "400": {
  6660. "description": "InvalidRequestError",
  6661. "content": {
  6662. "application/json": {
  6663. "schema": {
  6664. "$ref": "#/components/schemas/InvalidRequestError"
  6665. }
  6666. }
  6667. }
  6668. },
  6669. "401": {
  6670. "description": "UnauthorizedError",
  6671. "content": {
  6672. "application/json": {
  6673. "schema": {
  6674. "$ref": "#/components/schemas/UnauthorizedError"
  6675. }
  6676. }
  6677. }
  6678. },
  6679. "404": {
  6680. "description": "SessionNotFoundError",
  6681. "content": {
  6682. "application/json": {
  6683. "schema": {
  6684. "anyOf": [
  6685. {
  6686. "$ref": "#/components/schemas/SessionNotFoundError"
  6687. },
  6688. {
  6689. "$ref": "#/components/schemas/SessionNotFoundError"
  6690. }
  6691. ]
  6692. }
  6693. }
  6694. }
  6695. }
  6696. },
  6697. "description": "Retrieve pending permission requests owned by a session.",
  6698. "summary": "List session permission requests"
  6699. }
  6700. },
  6701. "/api/session/{sessionID}/permission/{requestID}": {
  6702. "get": {
  6703. "tags": [
  6704. "permission"
  6705. ],
  6706. "operationId": "v2.session.permission.get",
  6707. "parameters": [
  6708. {
  6709. "name": "sessionID",
  6710. "in": "path",
  6711. "schema": {
  6712. "type": "string",
  6713. "allOf": [
  6714. {
  6715. "pattern": "^ses"
  6716. }
  6717. ]
  6718. },
  6719. "required": true
  6720. },
  6721. {
  6722. "name": "requestID",
  6723. "in": "path",
  6724. "schema": {
  6725. "type": "string",
  6726. "allOf": [
  6727. {
  6728. "pattern": "^per"
  6729. }
  6730. ]
  6731. },
  6732. "required": true
  6733. }
  6734. ],
  6735. "security": [],
  6736. "responses": {
  6737. "200": {
  6738. "description": "Success",
  6739. "content": {
  6740. "application/json": {
  6741. "schema": {
  6742. "type": "object",
  6743. "properties": {
  6744. "data": {
  6745. "$ref": "#/components/schemas/PermissionV2.Request"
  6746. }
  6747. },
  6748. "required": [
  6749. "data"
  6750. ],
  6751. "additionalProperties": false
  6752. }
  6753. }
  6754. }
  6755. },
  6756. "400": {
  6757. "description": "InvalidRequestError",
  6758. "content": {
  6759. "application/json": {
  6760. "schema": {
  6761. "$ref": "#/components/schemas/InvalidRequestError"
  6762. }
  6763. }
  6764. }
  6765. },
  6766. "401": {
  6767. "description": "UnauthorizedError",
  6768. "content": {
  6769. "application/json": {
  6770. "schema": {
  6771. "$ref": "#/components/schemas/UnauthorizedError"
  6772. }
  6773. }
  6774. }
  6775. },
  6776. "404": {
  6777. "description": "SessionNotFoundError | PermissionNotFoundError",
  6778. "content": {
  6779. "application/json": {
  6780. "schema": {
  6781. "anyOf": [
  6782. {
  6783. "$ref": "#/components/schemas/PermissionNotFoundError"
  6784. },
  6785. {
  6786. "$ref": "#/components/schemas/SessionNotFoundError"
  6787. },
  6788. {
  6789. "$ref": "#/components/schemas/SessionNotFoundError"
  6790. }
  6791. ]
  6792. }
  6793. }
  6794. }
  6795. }
  6796. },
  6797. "description": "Retrieve a pending permission request owned by a session.",
  6798. "summary": "Get permission request"
  6799. }
  6800. },
  6801. "/api/session/{sessionID}/permission/{requestID}/reply": {
  6802. "post": {
  6803. "tags": [
  6804. "permission"
  6805. ],
  6806. "operationId": "v2.session.permission.reply",
  6807. "parameters": [
  6808. {
  6809. "name": "sessionID",
  6810. "in": "path",
  6811. "schema": {
  6812. "type": "string",
  6813. "allOf": [
  6814. {
  6815. "pattern": "^ses"
  6816. }
  6817. ]
  6818. },
  6819. "required": true
  6820. },
  6821. {
  6822. "name": "requestID",
  6823. "in": "path",
  6824. "schema": {
  6825. "type": "string",
  6826. "allOf": [
  6827. {
  6828. "pattern": "^per"
  6829. }
  6830. ]
  6831. },
  6832. "required": true
  6833. }
  6834. ],
  6835. "security": [],
  6836. "responses": {
  6837. "204": {
  6838. "description": "<No Content>"
  6839. },
  6840. "400": {
  6841. "description": "InvalidRequestError",
  6842. "content": {
  6843. "application/json": {
  6844. "schema": {
  6845. "$ref": "#/components/schemas/InvalidRequestError"
  6846. }
  6847. }
  6848. }
  6849. },
  6850. "401": {
  6851. "description": "UnauthorizedError",
  6852. "content": {
  6853. "application/json": {
  6854. "schema": {
  6855. "$ref": "#/components/schemas/UnauthorizedError"
  6856. }
  6857. }
  6858. }
  6859. },
  6860. "404": {
  6861. "description": "SessionNotFoundError | PermissionNotFoundError",
  6862. "content": {
  6863. "application/json": {
  6864. "schema": {
  6865. "anyOf": [
  6866. {
  6867. "$ref": "#/components/schemas/PermissionNotFoundError"
  6868. },
  6869. {
  6870. "$ref": "#/components/schemas/SessionNotFoundError"
  6871. },
  6872. {
  6873. "$ref": "#/components/schemas/SessionNotFoundError"
  6874. }
  6875. ]
  6876. }
  6877. }
  6878. }
  6879. }
  6880. },
  6881. "description": "Respond to a pending permission request owned by a session.",
  6882. "summary": "Reply to pending permission request",
  6883. "requestBody": {
  6884. "content": {
  6885. "application/json": {
  6886. "schema": {
  6887. "type": "object",
  6888. "properties": {
  6889. "reply": {
  6890. "$ref": "#/components/schemas/PermissionV2.Reply"
  6891. },
  6892. "message": {
  6893. "anyOf": [
  6894. {
  6895. "type": "string"
  6896. },
  6897. {
  6898. "type": "null"
  6899. }
  6900. ]
  6901. }
  6902. },
  6903. "required": [
  6904. "reply"
  6905. ],
  6906. "additionalProperties": false
  6907. }
  6908. }
  6909. },
  6910. "required": true
  6911. }
  6912. }
  6913. },
  6914. "/api/fs/read/*": {
  6915. "get": {
  6916. "tags": [
  6917. "filesystem"
  6918. ],
  6919. "operationId": "v2.fs.read",
  6920. "parameters": [
  6921. {
  6922. "name": "location",
  6923. "in": "query",
  6924. "schema": {
  6925. "anyOf": [
  6926. {
  6927. "type": "object",
  6928. "properties": {
  6929. "directory": {
  6930. "anyOf": [
  6931. {
  6932. "type": "string"
  6933. },
  6934. {
  6935. "type": "null"
  6936. }
  6937. ]
  6938. },
  6939. "workspace": {
  6940. "anyOf": [
  6941. {
  6942. "type": "string"
  6943. },
  6944. {
  6945. "type": "null"
  6946. }
  6947. ]
  6948. }
  6949. },
  6950. "additionalProperties": false
  6951. },
  6952. {
  6953. "type": "null"
  6954. }
  6955. ]
  6956. },
  6957. "required": false,
  6958. "style": "deepObject",
  6959. "explode": true
  6960. }
  6961. ],
  6962. "security": [],
  6963. "responses": {
  6964. "200": {
  6965. "description": "Success",
  6966. "content": {
  6967. "application/octet-stream": {
  6968. "schema": {
  6969. "type": "string",
  6970. "format": "binary"
  6971. }
  6972. }
  6973. }
  6974. },
  6975. "400": {
  6976. "description": "InvalidRequestError",
  6977. "content": {
  6978. "application/json": {
  6979. "schema": {
  6980. "$ref": "#/components/schemas/InvalidRequestError"
  6981. }
  6982. }
  6983. }
  6984. },
  6985. "401": {
  6986. "description": "UnauthorizedError",
  6987. "content": {
  6988. "application/json": {
  6989. "schema": {
  6990. "$ref": "#/components/schemas/UnauthorizedError"
  6991. }
  6992. }
  6993. }
  6994. }
  6995. },
  6996. "description": "Serve one file relative to the requested location.",
  6997. "summary": "Read file"
  6998. }
  6999. },
  7000. "/api/fs/list": {
  7001. "get": {
  7002. "tags": [
  7003. "filesystem"
  7004. ],
  7005. "operationId": "v2.fs.list",
  7006. "parameters": [
  7007. {
  7008. "name": "location",
  7009. "in": "query",
  7010. "schema": {
  7011. "anyOf": [
  7012. {
  7013. "type": "object",
  7014. "properties": {
  7015. "directory": {
  7016. "anyOf": [
  7017. {
  7018. "type": "string"
  7019. },
  7020. {
  7021. "type": "null"
  7022. }
  7023. ]
  7024. },
  7025. "workspace": {
  7026. "anyOf": [
  7027. {
  7028. "type": "string"
  7029. },
  7030. {
  7031. "type": "null"
  7032. }
  7033. ]
  7034. }
  7035. },
  7036. "additionalProperties": false
  7037. },
  7038. {
  7039. "type": "null"
  7040. }
  7041. ]
  7042. },
  7043. "required": false,
  7044. "style": "deepObject",
  7045. "explode": true
  7046. },
  7047. {
  7048. "name": "path",
  7049. "in": "query",
  7050. "schema": {
  7051. "anyOf": [
  7052. {
  7053. "type": "string"
  7054. },
  7055. {
  7056. "type": "null"
  7057. }
  7058. ]
  7059. },
  7060. "required": false
  7061. }
  7062. ],
  7063. "security": [],
  7064. "responses": {
  7065. "200": {
  7066. "description": "Success",
  7067. "content": {
  7068. "application/json": {
  7069. "schema": {
  7070. "type": "object",
  7071. "properties": {
  7072. "location": {
  7073. "$ref": "#/components/schemas/Location.Info"
  7074. },
  7075. "data": {
  7076. "type": "array",
  7077. "items": {
  7078. "$ref": "#/components/schemas/FileSystem.Entry"
  7079. }
  7080. }
  7081. },
  7082. "required": [
  7083. "location",
  7084. "data"
  7085. ],
  7086. "additionalProperties": false
  7087. }
  7088. }
  7089. }
  7090. },
  7091. "400": {
  7092. "description": "InvalidRequestError",
  7093. "content": {
  7094. "application/json": {
  7095. "schema": {
  7096. "$ref": "#/components/schemas/InvalidRequestError"
  7097. }
  7098. }
  7099. }
  7100. },
  7101. "401": {
  7102. "description": "UnauthorizedError",
  7103. "content": {
  7104. "application/json": {
  7105. "schema": {
  7106. "$ref": "#/components/schemas/UnauthorizedError"
  7107. }
  7108. }
  7109. }
  7110. }
  7111. },
  7112. "description": "List direct children of one directory relative to the requested location.",
  7113. "summary": "List directory"
  7114. }
  7115. },
  7116. "/api/fs/find": {
  7117. "get": {
  7118. "tags": [
  7119. "filesystem"
  7120. ],
  7121. "operationId": "v2.fs.find",
  7122. "parameters": [
  7123. {
  7124. "name": "location",
  7125. "in": "query",
  7126. "schema": {
  7127. "anyOf": [
  7128. {
  7129. "type": "object",
  7130. "properties": {
  7131. "directory": {
  7132. "anyOf": [
  7133. {
  7134. "type": "string"
  7135. },
  7136. {
  7137. "type": "null"
  7138. }
  7139. ]
  7140. },
  7141. "workspace": {
  7142. "anyOf": [
  7143. {
  7144. "type": "string"
  7145. },
  7146. {
  7147. "type": "null"
  7148. }
  7149. ]
  7150. }
  7151. },
  7152. "additionalProperties": false
  7153. },
  7154. {
  7155. "type": "null"
  7156. }
  7157. ]
  7158. },
  7159. "required": false,
  7160. "style": "deepObject",
  7161. "explode": true
  7162. },
  7163. {
  7164. "name": "query",
  7165. "in": "query",
  7166. "schema": {
  7167. "type": "string"
  7168. },
  7169. "required": true
  7170. },
  7171. {
  7172. "name": "type",
  7173. "in": "query",
  7174. "schema": {
  7175. "type": "string",
  7176. "enum": [
  7177. "file",
  7178. "directory"
  7179. ]
  7180. },
  7181. "required": false
  7182. },
  7183. {
  7184. "name": "limit",
  7185. "in": "query",
  7186. "schema": {
  7187. "anyOf": [
  7188. {
  7189. "type": "string"
  7190. },
  7191. {
  7192. "type": "null"
  7193. }
  7194. ]
  7195. },
  7196. "required": false
  7197. }
  7198. ],
  7199. "security": [],
  7200. "responses": {
  7201. "200": {
  7202. "description": "Success",
  7203. "content": {
  7204. "application/json": {
  7205. "schema": {
  7206. "type": "object",
  7207. "properties": {
  7208. "location": {
  7209. "$ref": "#/components/schemas/Location.Info"
  7210. },
  7211. "data": {
  7212. "type": "array",
  7213. "items": {
  7214. "$ref": "#/components/schemas/FileSystem.Entry"
  7215. }
  7216. }
  7217. },
  7218. "required": [
  7219. "location",
  7220. "data"
  7221. ],
  7222. "additionalProperties": false
  7223. }
  7224. }
  7225. }
  7226. },
  7227. "400": {
  7228. "description": "InvalidRequestError",
  7229. "content": {
  7230. "application/json": {
  7231. "schema": {
  7232. "$ref": "#/components/schemas/InvalidRequestError"
  7233. }
  7234. }
  7235. }
  7236. },
  7237. "401": {
  7238. "description": "UnauthorizedError",
  7239. "content": {
  7240. "application/json": {
  7241. "schema": {
  7242. "$ref": "#/components/schemas/UnauthorizedError"
  7243. }
  7244. }
  7245. }
  7246. }
  7247. },
  7248. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  7249. "summary": "Find files"
  7250. }
  7251. },
  7252. "/api/command": {
  7253. "get": {
  7254. "tags": [
  7255. "command"
  7256. ],
  7257. "operationId": "v2.command.list",
  7258. "parameters": [
  7259. {
  7260. "name": "location",
  7261. "in": "query",
  7262. "schema": {
  7263. "anyOf": [
  7264. {
  7265. "type": "object",
  7266. "properties": {
  7267. "directory": {
  7268. "anyOf": [
  7269. {
  7270. "type": "string"
  7271. },
  7272. {
  7273. "type": "null"
  7274. }
  7275. ]
  7276. },
  7277. "workspace": {
  7278. "anyOf": [
  7279. {
  7280. "type": "string"
  7281. },
  7282. {
  7283. "type": "null"
  7284. }
  7285. ]
  7286. }
  7287. },
  7288. "additionalProperties": false
  7289. },
  7290. {
  7291. "type": "null"
  7292. }
  7293. ]
  7294. },
  7295. "required": false,
  7296. "style": "deepObject",
  7297. "explode": true
  7298. }
  7299. ],
  7300. "security": [],
  7301. "responses": {
  7302. "200": {
  7303. "description": "Success",
  7304. "content": {
  7305. "application/json": {
  7306. "schema": {
  7307. "type": "object",
  7308. "properties": {
  7309. "location": {
  7310. "$ref": "#/components/schemas/Location.Info"
  7311. },
  7312. "data": {
  7313. "type": "array",
  7314. "items": {
  7315. "$ref": "#/components/schemas/Command.Info"
  7316. }
  7317. }
  7318. },
  7319. "required": [
  7320. "location",
  7321. "data"
  7322. ],
  7323. "additionalProperties": false
  7324. }
  7325. }
  7326. }
  7327. },
  7328. "400": {
  7329. "description": "InvalidRequestError",
  7330. "content": {
  7331. "application/json": {
  7332. "schema": {
  7333. "$ref": "#/components/schemas/InvalidRequestError"
  7334. }
  7335. }
  7336. }
  7337. },
  7338. "401": {
  7339. "description": "UnauthorizedError",
  7340. "content": {
  7341. "application/json": {
  7342. "schema": {
  7343. "$ref": "#/components/schemas/UnauthorizedError"
  7344. }
  7345. }
  7346. }
  7347. }
  7348. },
  7349. "description": "Retrieve currently registered commands.",
  7350. "summary": "List commands"
  7351. }
  7352. },
  7353. "/api/skill": {
  7354. "get": {
  7355. "tags": [
  7356. "skill"
  7357. ],
  7358. "operationId": "v2.skill.list",
  7359. "parameters": [
  7360. {
  7361. "name": "location",
  7362. "in": "query",
  7363. "schema": {
  7364. "anyOf": [
  7365. {
  7366. "type": "object",
  7367. "properties": {
  7368. "directory": {
  7369. "anyOf": [
  7370. {
  7371. "type": "string"
  7372. },
  7373. {
  7374. "type": "null"
  7375. }
  7376. ]
  7377. },
  7378. "workspace": {
  7379. "anyOf": [
  7380. {
  7381. "type": "string"
  7382. },
  7383. {
  7384. "type": "null"
  7385. }
  7386. ]
  7387. }
  7388. },
  7389. "additionalProperties": false
  7390. },
  7391. {
  7392. "type": "null"
  7393. }
  7394. ]
  7395. },
  7396. "required": false,
  7397. "style": "deepObject",
  7398. "explode": true
  7399. }
  7400. ],
  7401. "security": [],
  7402. "responses": {
  7403. "200": {
  7404. "description": "Success",
  7405. "content": {
  7406. "application/json": {
  7407. "schema": {
  7408. "type": "object",
  7409. "properties": {
  7410. "location": {
  7411. "$ref": "#/components/schemas/Location.Info"
  7412. },
  7413. "data": {
  7414. "type": "array",
  7415. "items": {
  7416. "$ref": "#/components/schemas/Skill.Info"
  7417. }
  7418. }
  7419. },
  7420. "required": [
  7421. "location",
  7422. "data"
  7423. ],
  7424. "additionalProperties": false
  7425. }
  7426. }
  7427. }
  7428. },
  7429. "400": {
  7430. "description": "InvalidRequestError",
  7431. "content": {
  7432. "application/json": {
  7433. "schema": {
  7434. "$ref": "#/components/schemas/InvalidRequestError"
  7435. }
  7436. }
  7437. }
  7438. },
  7439. "401": {
  7440. "description": "UnauthorizedError",
  7441. "content": {
  7442. "application/json": {
  7443. "schema": {
  7444. "$ref": "#/components/schemas/UnauthorizedError"
  7445. }
  7446. }
  7447. }
  7448. }
  7449. },
  7450. "description": "Retrieve currently registered skills.",
  7451. "summary": "List skills"
  7452. }
  7453. },
  7454. "/api/event": {
  7455. "get": {
  7456. "tags": [
  7457. "event"
  7458. ],
  7459. "operationId": "v2.event.subscribe",
  7460. "parameters": [],
  7461. "security": [],
  7462. "responses": {
  7463. "200": {
  7464. "description": "Success",
  7465. "content": {
  7466. "text/event-stream": {
  7467. "schema": {
  7468. "type": "object",
  7469. "properties": {
  7470. "id": {
  7471. "anyOf": [
  7472. {
  7473. "type": "string"
  7474. },
  7475. {
  7476. "type": "null"
  7477. }
  7478. ]
  7479. },
  7480. "event": {
  7481. "type": "string"
  7482. },
  7483. "data": {
  7484. "$ref": "#/components/schemas/V2EventStream"
  7485. }
  7486. },
  7487. "required": [
  7488. "id",
  7489. "event",
  7490. "data"
  7491. ],
  7492. "additionalProperties": false
  7493. },
  7494. "x-effect-stream": {
  7495. "encoding": "sse",
  7496. "causeSchema": {
  7497. "type": "array",
  7498. "items": {
  7499. "anyOf": [
  7500. {
  7501. "type": "object",
  7502. "properties": {
  7503. "_tag": {
  7504. "type": "string",
  7505. "enum": [
  7506. "Fail"
  7507. ]
  7508. },
  7509. "error": {
  7510. "not": {}
  7511. }
  7512. },
  7513. "required": [
  7514. "_tag",
  7515. "error"
  7516. ],
  7517. "additionalProperties": false
  7518. },
  7519. {
  7520. "type": "object",
  7521. "properties": {
  7522. "_tag": {
  7523. "type": "string",
  7524. "enum": [
  7525. "Die"
  7526. ]
  7527. },
  7528. "defect": {}
  7529. },
  7530. "required": [
  7531. "_tag",
  7532. "defect"
  7533. ],
  7534. "additionalProperties": false
  7535. },
  7536. {
  7537. "type": "object",
  7538. "properties": {
  7539. "_tag": {
  7540. "type": "string",
  7541. "enum": [
  7542. "Interrupt"
  7543. ]
  7544. },
  7545. "fiberId": {
  7546. "anyOf": [
  7547. {
  7548. "type": "number"
  7549. },
  7550. {
  7551. "type": "null"
  7552. }
  7553. ]
  7554. }
  7555. },
  7556. "required": [
  7557. "_tag",
  7558. "fiberId"
  7559. ],
  7560. "additionalProperties": false
  7561. }
  7562. ]
  7563. }
  7564. },
  7565. "errorSchema": {
  7566. "not": {}
  7567. },
  7568. "failureEvent": "effect/httpapi/stream/failure"
  7569. }
  7570. }
  7571. }
  7572. },
  7573. "400": {
  7574. "description": "InvalidRequestError",
  7575. "content": {
  7576. "application/json": {
  7577. "schema": {
  7578. "$ref": "#/components/schemas/InvalidRequestError"
  7579. }
  7580. }
  7581. }
  7582. },
  7583. "401": {
  7584. "description": "UnauthorizedError",
  7585. "content": {
  7586. "application/json": {
  7587. "schema": {
  7588. "$ref": "#/components/schemas/UnauthorizedError"
  7589. }
  7590. }
  7591. }
  7592. }
  7593. },
  7594. "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.",
  7595. "summary": "Subscribe to events"
  7596. }
  7597. },
  7598. "/api/pty": {
  7599. "get": {
  7600. "tags": [
  7601. "pty"
  7602. ],
  7603. "operationId": "v2.pty.list",
  7604. "parameters": [
  7605. {
  7606. "name": "location",
  7607. "in": "query",
  7608. "schema": {
  7609. "anyOf": [
  7610. {
  7611. "type": "object",
  7612. "properties": {
  7613. "directory": {
  7614. "anyOf": [
  7615. {
  7616. "type": "string"
  7617. },
  7618. {
  7619. "type": "null"
  7620. }
  7621. ]
  7622. },
  7623. "workspace": {
  7624. "anyOf": [
  7625. {
  7626. "type": "string"
  7627. },
  7628. {
  7629. "type": "null"
  7630. }
  7631. ]
  7632. }
  7633. },
  7634. "additionalProperties": false
  7635. },
  7636. {
  7637. "type": "null"
  7638. }
  7639. ]
  7640. },
  7641. "required": false,
  7642. "style": "deepObject",
  7643. "explode": true
  7644. }
  7645. ],
  7646. "security": [],
  7647. "responses": {
  7648. "200": {
  7649. "description": "Success",
  7650. "content": {
  7651. "application/json": {
  7652. "schema": {
  7653. "type": "object",
  7654. "properties": {
  7655. "location": {
  7656. "$ref": "#/components/schemas/Location.Info"
  7657. },
  7658. "data": {
  7659. "type": "array",
  7660. "items": {
  7661. "$ref": "#/components/schemas/Pty"
  7662. }
  7663. }
  7664. },
  7665. "required": [
  7666. "location",
  7667. "data"
  7668. ],
  7669. "additionalProperties": false
  7670. }
  7671. }
  7672. }
  7673. },
  7674. "400": {
  7675. "description": "InvalidRequestError",
  7676. "content": {
  7677. "application/json": {
  7678. "schema": {
  7679. "$ref": "#/components/schemas/InvalidRequestError"
  7680. }
  7681. }
  7682. }
  7683. },
  7684. "401": {
  7685. "description": "UnauthorizedError",
  7686. "content": {
  7687. "application/json": {
  7688. "schema": {
  7689. "$ref": "#/components/schemas/UnauthorizedError"
  7690. }
  7691. }
  7692. }
  7693. }
  7694. },
  7695. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  7696. "summary": "List PTY sessions"
  7697. },
  7698. "post": {
  7699. "tags": [
  7700. "pty"
  7701. ],
  7702. "operationId": "v2.pty.create",
  7703. "parameters": [
  7704. {
  7705. "name": "location",
  7706. "in": "query",
  7707. "schema": {
  7708. "anyOf": [
  7709. {
  7710. "type": "object",
  7711. "properties": {
  7712. "directory": {
  7713. "anyOf": [
  7714. {
  7715. "type": "string"
  7716. },
  7717. {
  7718. "type": "null"
  7719. }
  7720. ]
  7721. },
  7722. "workspace": {
  7723. "anyOf": [
  7724. {
  7725. "type": "string"
  7726. },
  7727. {
  7728. "type": "null"
  7729. }
  7730. ]
  7731. }
  7732. },
  7733. "additionalProperties": false
  7734. },
  7735. {
  7736. "type": "null"
  7737. }
  7738. ]
  7739. },
  7740. "required": false,
  7741. "style": "deepObject",
  7742. "explode": true
  7743. }
  7744. ],
  7745. "security": [],
  7746. "responses": {
  7747. "200": {
  7748. "description": "Success",
  7749. "content": {
  7750. "application/json": {
  7751. "schema": {
  7752. "type": "object",
  7753. "properties": {
  7754. "location": {
  7755. "$ref": "#/components/schemas/Location.Info"
  7756. },
  7757. "data": {
  7758. "$ref": "#/components/schemas/Pty"
  7759. }
  7760. },
  7761. "required": [
  7762. "location",
  7763. "data"
  7764. ],
  7765. "additionalProperties": false
  7766. }
  7767. }
  7768. }
  7769. },
  7770. "400": {
  7771. "description": "InvalidRequestError",
  7772. "content": {
  7773. "application/json": {
  7774. "schema": {
  7775. "$ref": "#/components/schemas/InvalidRequestError"
  7776. }
  7777. }
  7778. }
  7779. },
  7780. "401": {
  7781. "description": "UnauthorizedError",
  7782. "content": {
  7783. "application/json": {
  7784. "schema": {
  7785. "$ref": "#/components/schemas/UnauthorizedError"
  7786. }
  7787. }
  7788. }
  7789. }
  7790. },
  7791. "description": "Create a pseudo-terminal session for a location.",
  7792. "summary": "Create PTY session",
  7793. "requestBody": {
  7794. "content": {
  7795. "application/json": {
  7796. "schema": {
  7797. "type": "object",
  7798. "properties": {
  7799. "command": {
  7800. "type": "string"
  7801. },
  7802. "args": {
  7803. "type": "array",
  7804. "items": {
  7805. "type": "string"
  7806. }
  7807. },
  7808. "cwd": {
  7809. "type": "string"
  7810. },
  7811. "title": {
  7812. "type": "string"
  7813. },
  7814. "env": {
  7815. "type": "object",
  7816. "additionalProperties": {
  7817. "type": "string"
  7818. }
  7819. }
  7820. },
  7821. "additionalProperties": false
  7822. }
  7823. }
  7824. },
  7825. "required": true
  7826. }
  7827. }
  7828. },
  7829. "/api/pty/{ptyID}": {
  7830. "get": {
  7831. "tags": [
  7832. "pty"
  7833. ],
  7834. "operationId": "v2.pty.get",
  7835. "parameters": [
  7836. {
  7837. "name": "ptyID",
  7838. "in": "path",
  7839. "schema": {
  7840. "type": "string",
  7841. "allOf": [
  7842. {
  7843. "pattern": "^pty"
  7844. }
  7845. ]
  7846. },
  7847. "required": true
  7848. },
  7849. {
  7850. "name": "location",
  7851. "in": "query",
  7852. "schema": {
  7853. "anyOf": [
  7854. {
  7855. "type": "object",
  7856. "properties": {
  7857. "directory": {
  7858. "anyOf": [
  7859. {
  7860. "type": "string"
  7861. },
  7862. {
  7863. "type": "null"
  7864. }
  7865. ]
  7866. },
  7867. "workspace": {
  7868. "anyOf": [
  7869. {
  7870. "type": "string"
  7871. },
  7872. {
  7873. "type": "null"
  7874. }
  7875. ]
  7876. }
  7877. },
  7878. "additionalProperties": false
  7879. },
  7880. {
  7881. "type": "null"
  7882. }
  7883. ]
  7884. },
  7885. "required": false,
  7886. "style": "deepObject",
  7887. "explode": true
  7888. }
  7889. ],
  7890. "security": [],
  7891. "responses": {
  7892. "200": {
  7893. "description": "Success",
  7894. "content": {
  7895. "application/json": {
  7896. "schema": {
  7897. "type": "object",
  7898. "properties": {
  7899. "location": {
  7900. "$ref": "#/components/schemas/Location.Info"
  7901. },
  7902. "data": {
  7903. "$ref": "#/components/schemas/Pty"
  7904. }
  7905. },
  7906. "required": [
  7907. "location",
  7908. "data"
  7909. ],
  7910. "additionalProperties": false
  7911. }
  7912. }
  7913. }
  7914. },
  7915. "400": {
  7916. "description": "InvalidRequestError",
  7917. "content": {
  7918. "application/json": {
  7919. "schema": {
  7920. "$ref": "#/components/schemas/InvalidRequestError"
  7921. }
  7922. }
  7923. }
  7924. },
  7925. "401": {
  7926. "description": "UnauthorizedError",
  7927. "content": {
  7928. "application/json": {
  7929. "schema": {
  7930. "$ref": "#/components/schemas/UnauthorizedError"
  7931. }
  7932. }
  7933. }
  7934. },
  7935. "404": {
  7936. "description": "PtyNotFoundError",
  7937. "content": {
  7938. "application/json": {
  7939. "schema": {
  7940. "$ref": "#/components/schemas/PtyNotFoundError"
  7941. }
  7942. }
  7943. }
  7944. }
  7945. },
  7946. "description": "Get one PTY session, including its exit code once exited.",
  7947. "summary": "Get PTY session"
  7948. },
  7949. "put": {
  7950. "tags": [
  7951. "pty"
  7952. ],
  7953. "operationId": "v2.pty.update",
  7954. "parameters": [
  7955. {
  7956. "name": "ptyID",
  7957. "in": "path",
  7958. "schema": {
  7959. "type": "string",
  7960. "allOf": [
  7961. {
  7962. "pattern": "^pty"
  7963. }
  7964. ]
  7965. },
  7966. "required": true
  7967. },
  7968. {
  7969. "name": "location",
  7970. "in": "query",
  7971. "schema": {
  7972. "anyOf": [
  7973. {
  7974. "type": "object",
  7975. "properties": {
  7976. "directory": {
  7977. "anyOf": [
  7978. {
  7979. "type": "string"
  7980. },
  7981. {
  7982. "type": "null"
  7983. }
  7984. ]
  7985. },
  7986. "workspace": {
  7987. "anyOf": [
  7988. {
  7989. "type": "string"
  7990. },
  7991. {
  7992. "type": "null"
  7993. }
  7994. ]
  7995. }
  7996. },
  7997. "additionalProperties": false
  7998. },
  7999. {
  8000. "type": "null"
  8001. }
  8002. ]
  8003. },
  8004. "required": false,
  8005. "style": "deepObject",
  8006. "explode": true
  8007. }
  8008. ],
  8009. "security": [],
  8010. "responses": {
  8011. "200": {
  8012. "description": "Success",
  8013. "content": {
  8014. "application/json": {
  8015. "schema": {
  8016. "type": "object",
  8017. "properties": {
  8018. "location": {
  8019. "$ref": "#/components/schemas/Location.Info"
  8020. },
  8021. "data": {
  8022. "$ref": "#/components/schemas/Pty"
  8023. }
  8024. },
  8025. "required": [
  8026. "location",
  8027. "data"
  8028. ],
  8029. "additionalProperties": false
  8030. }
  8031. }
  8032. }
  8033. },
  8034. "400": {
  8035. "description": "InvalidRequestError",
  8036. "content": {
  8037. "application/json": {
  8038. "schema": {
  8039. "$ref": "#/components/schemas/InvalidRequestError"
  8040. }
  8041. }
  8042. }
  8043. },
  8044. "401": {
  8045. "description": "UnauthorizedError",
  8046. "content": {
  8047. "application/json": {
  8048. "schema": {
  8049. "$ref": "#/components/schemas/UnauthorizedError"
  8050. }
  8051. }
  8052. }
  8053. },
  8054. "404": {
  8055. "description": "PtyNotFoundError",
  8056. "content": {
  8057. "application/json": {
  8058. "schema": {
  8059. "$ref": "#/components/schemas/PtyNotFoundError"
  8060. }
  8061. }
  8062. }
  8063. }
  8064. },
  8065. "description": "Update the title or viewport size of one PTY session.",
  8066. "summary": "Update PTY session",
  8067. "requestBody": {
  8068. "content": {
  8069. "application/json": {
  8070. "schema": {
  8071. "type": "object",
  8072. "properties": {
  8073. "title": {
  8074. "type": "string"
  8075. },
  8076. "size": {
  8077. "type": "object",
  8078. "properties": {
  8079. "rows": {
  8080. "type": "integer",
  8081. "allOf": [
  8082. {
  8083. "exclusiveMinimum": 0
  8084. }
  8085. ]
  8086. },
  8087. "cols": {
  8088. "type": "integer",
  8089. "allOf": [
  8090. {
  8091. "exclusiveMinimum": 0
  8092. }
  8093. ]
  8094. }
  8095. },
  8096. "required": [
  8097. "rows",
  8098. "cols"
  8099. ],
  8100. "additionalProperties": false
  8101. }
  8102. },
  8103. "additionalProperties": false
  8104. }
  8105. }
  8106. },
  8107. "required": true
  8108. }
  8109. },
  8110. "delete": {
  8111. "tags": [
  8112. "pty"
  8113. ],
  8114. "operationId": "v2.pty.remove",
  8115. "parameters": [
  8116. {
  8117. "name": "ptyID",
  8118. "in": "path",
  8119. "schema": {
  8120. "type": "string",
  8121. "allOf": [
  8122. {
  8123. "pattern": "^pty"
  8124. }
  8125. ]
  8126. },
  8127. "required": true
  8128. },
  8129. {
  8130. "name": "location",
  8131. "in": "query",
  8132. "schema": {
  8133. "anyOf": [
  8134. {
  8135. "type": "object",
  8136. "properties": {
  8137. "directory": {
  8138. "anyOf": [
  8139. {
  8140. "type": "string"
  8141. },
  8142. {
  8143. "type": "null"
  8144. }
  8145. ]
  8146. },
  8147. "workspace": {
  8148. "anyOf": [
  8149. {
  8150. "type": "string"
  8151. },
  8152. {
  8153. "type": "null"
  8154. }
  8155. ]
  8156. }
  8157. },
  8158. "additionalProperties": false
  8159. },
  8160. {
  8161. "type": "null"
  8162. }
  8163. ]
  8164. },
  8165. "required": false,
  8166. "style": "deepObject",
  8167. "explode": true
  8168. }
  8169. ],
  8170. "security": [],
  8171. "responses": {
  8172. "204": {
  8173. "description": "<No Content>"
  8174. },
  8175. "400": {
  8176. "description": "InvalidRequestError",
  8177. "content": {
  8178. "application/json": {
  8179. "schema": {
  8180. "$ref": "#/components/schemas/InvalidRequestError"
  8181. }
  8182. }
  8183. }
  8184. },
  8185. "401": {
  8186. "description": "UnauthorizedError",
  8187. "content": {
  8188. "application/json": {
  8189. "schema": {
  8190. "$ref": "#/components/schemas/UnauthorizedError"
  8191. }
  8192. }
  8193. }
  8194. },
  8195. "404": {
  8196. "description": "PtyNotFoundError",
  8197. "content": {
  8198. "application/json": {
  8199. "schema": {
  8200. "$ref": "#/components/schemas/PtyNotFoundError"
  8201. }
  8202. }
  8203. }
  8204. }
  8205. },
  8206. "description": "Terminate and remove one PTY session.",
  8207. "summary": "Remove PTY session"
  8208. }
  8209. },
  8210. "/api/pty/{ptyID}/connect-token": {
  8211. "post": {
  8212. "tags": [
  8213. "pty"
  8214. ],
  8215. "operationId": "v2.pty.connect.token",
  8216. "parameters": [
  8217. {
  8218. "name": "ptyID",
  8219. "in": "path",
  8220. "schema": {
  8221. "type": "string",
  8222. "allOf": [
  8223. {
  8224. "pattern": "^pty"
  8225. }
  8226. ]
  8227. },
  8228. "required": true
  8229. },
  8230. {
  8231. "name": "location",
  8232. "in": "query",
  8233. "schema": {
  8234. "anyOf": [
  8235. {
  8236. "type": "object",
  8237. "properties": {
  8238. "directory": {
  8239. "anyOf": [
  8240. {
  8241. "type": "string"
  8242. },
  8243. {
  8244. "type": "null"
  8245. }
  8246. ]
  8247. },
  8248. "workspace": {
  8249. "anyOf": [
  8250. {
  8251. "type": "string"
  8252. },
  8253. {
  8254. "type": "null"
  8255. }
  8256. ]
  8257. }
  8258. },
  8259. "additionalProperties": false
  8260. },
  8261. {
  8262. "type": "null"
  8263. }
  8264. ]
  8265. },
  8266. "required": false,
  8267. "style": "deepObject",
  8268. "explode": true
  8269. }
  8270. ],
  8271. "security": [],
  8272. "responses": {
  8273. "200": {
  8274. "description": "Success",
  8275. "content": {
  8276. "application/json": {
  8277. "schema": {
  8278. "type": "object",
  8279. "properties": {
  8280. "location": {
  8281. "$ref": "#/components/schemas/Location.Info"
  8282. },
  8283. "data": {
  8284. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  8285. }
  8286. },
  8287. "required": [
  8288. "location",
  8289. "data"
  8290. ],
  8291. "additionalProperties": false
  8292. }
  8293. }
  8294. }
  8295. },
  8296. "400": {
  8297. "description": "InvalidRequestError",
  8298. "content": {
  8299. "application/json": {
  8300. "schema": {
  8301. "$ref": "#/components/schemas/InvalidRequestError"
  8302. }
  8303. }
  8304. }
  8305. },
  8306. "401": {
  8307. "description": "UnauthorizedError",
  8308. "content": {
  8309. "application/json": {
  8310. "schema": {
  8311. "$ref": "#/components/schemas/UnauthorizedError"
  8312. }
  8313. }
  8314. }
  8315. },
  8316. "403": {
  8317. "description": "ForbiddenError",
  8318. "content": {
  8319. "application/json": {
  8320. "schema": {
  8321. "$ref": "#/components/schemas/ForbiddenError"
  8322. }
  8323. }
  8324. }
  8325. },
  8326. "404": {
  8327. "description": "PtyNotFoundError",
  8328. "content": {
  8329. "application/json": {
  8330. "schema": {
  8331. "$ref": "#/components/schemas/PtyNotFoundError"
  8332. }
  8333. }
  8334. }
  8335. }
  8336. },
  8337. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  8338. "summary": "Create PTY WebSocket token"
  8339. }
  8340. },
  8341. "/api/pty/{ptyID}/connect": {
  8342. "get": {
  8343. "tags": [
  8344. "pty"
  8345. ],
  8346. "operationId": "v2.pty.connect",
  8347. "parameters": [
  8348. {
  8349. "name": "ptyID",
  8350. "in": "path",
  8351. "schema": {
  8352. "type": "string",
  8353. "allOf": [
  8354. {
  8355. "pattern": "^pty"
  8356. }
  8357. ]
  8358. },
  8359. "required": true
  8360. },
  8361. {
  8362. "in": "query",
  8363. "name": "location[directory]",
  8364. "schema": {
  8365. "type": "string"
  8366. }
  8367. },
  8368. {
  8369. "in": "query",
  8370. "name": "location[workspace]",
  8371. "schema": {
  8372. "type": "string"
  8373. }
  8374. },
  8375. {
  8376. "in": "query",
  8377. "name": "cursor",
  8378. "schema": {
  8379. "type": "string"
  8380. }
  8381. },
  8382. {
  8383. "in": "query",
  8384. "name": "ticket",
  8385. "schema": {
  8386. "type": "string"
  8387. }
  8388. }
  8389. ],
  8390. "security": [],
  8391. "responses": {
  8392. "200": {
  8393. "description": "Success",
  8394. "content": {
  8395. "application/json": {
  8396. "schema": {
  8397. "type": "boolean"
  8398. }
  8399. }
  8400. }
  8401. },
  8402. "400": {
  8403. "description": "InvalidRequestError",
  8404. "content": {
  8405. "application/json": {
  8406. "schema": {
  8407. "$ref": "#/components/schemas/InvalidRequestError"
  8408. }
  8409. }
  8410. }
  8411. },
  8412. "401": {
  8413. "description": "UnauthorizedError",
  8414. "content": {
  8415. "application/json": {
  8416. "schema": {
  8417. "$ref": "#/components/schemas/UnauthorizedError"
  8418. }
  8419. }
  8420. }
  8421. },
  8422. "403": {
  8423. "description": "ForbiddenError",
  8424. "content": {
  8425. "application/json": {
  8426. "schema": {
  8427. "$ref": "#/components/schemas/ForbiddenError"
  8428. }
  8429. }
  8430. }
  8431. },
  8432. "404": {
  8433. "description": "PtyNotFoundError",
  8434. "content": {
  8435. "application/json": {
  8436. "schema": {
  8437. "$ref": "#/components/schemas/PtyNotFoundError"
  8438. }
  8439. }
  8440. }
  8441. }
  8442. },
  8443. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  8444. "summary": "Connect to PTY session",
  8445. "x-websocket": true
  8446. }
  8447. },
  8448. "/api/shell": {
  8449. "get": {
  8450. "tags": [
  8451. "shell"
  8452. ],
  8453. "operationId": "v2.shell.list",
  8454. "parameters": [
  8455. {
  8456. "name": "location",
  8457. "in": "query",
  8458. "schema": {
  8459. "anyOf": [
  8460. {
  8461. "type": "object",
  8462. "properties": {
  8463. "directory": {
  8464. "anyOf": [
  8465. {
  8466. "type": "string"
  8467. },
  8468. {
  8469. "type": "null"
  8470. }
  8471. ]
  8472. },
  8473. "workspace": {
  8474. "anyOf": [
  8475. {
  8476. "type": "string"
  8477. },
  8478. {
  8479. "type": "null"
  8480. }
  8481. ]
  8482. }
  8483. },
  8484. "additionalProperties": false
  8485. },
  8486. {
  8487. "type": "null"
  8488. }
  8489. ]
  8490. },
  8491. "required": false,
  8492. "style": "deepObject",
  8493. "explode": true
  8494. }
  8495. ],
  8496. "security": [],
  8497. "responses": {
  8498. "200": {
  8499. "description": "Success",
  8500. "content": {
  8501. "application/json": {
  8502. "schema": {
  8503. "type": "object",
  8504. "properties": {
  8505. "location": {
  8506. "$ref": "#/components/schemas/Location.Info"
  8507. },
  8508. "data": {
  8509. "type": "array",
  8510. "items": {
  8511. "$ref": "#/components/schemas/Shell1"
  8512. }
  8513. }
  8514. },
  8515. "required": [
  8516. "location",
  8517. "data"
  8518. ],
  8519. "additionalProperties": false
  8520. }
  8521. }
  8522. }
  8523. },
  8524. "400": {
  8525. "description": "InvalidRequestError",
  8526. "content": {
  8527. "application/json": {
  8528. "schema": {
  8529. "$ref": "#/components/schemas/InvalidRequestError"
  8530. }
  8531. }
  8532. }
  8533. },
  8534. "401": {
  8535. "description": "UnauthorizedError",
  8536. "content": {
  8537. "application/json": {
  8538. "schema": {
  8539. "$ref": "#/components/schemas/UnauthorizedError"
  8540. }
  8541. }
  8542. }
  8543. }
  8544. },
  8545. "description": "List currently running shell commands for a location. Exited commands are not included.",
  8546. "summary": "List running shell commands"
  8547. },
  8548. "post": {
  8549. "tags": [
  8550. "shell"
  8551. ],
  8552. "operationId": "v2.shell.create",
  8553. "parameters": [
  8554. {
  8555. "name": "location",
  8556. "in": "query",
  8557. "schema": {
  8558. "anyOf": [
  8559. {
  8560. "type": "object",
  8561. "properties": {
  8562. "directory": {
  8563. "anyOf": [
  8564. {
  8565. "type": "string"
  8566. },
  8567. {
  8568. "type": "null"
  8569. }
  8570. ]
  8571. },
  8572. "workspace": {
  8573. "anyOf": [
  8574. {
  8575. "type": "string"
  8576. },
  8577. {
  8578. "type": "null"
  8579. }
  8580. ]
  8581. }
  8582. },
  8583. "additionalProperties": false
  8584. },
  8585. {
  8586. "type": "null"
  8587. }
  8588. ]
  8589. },
  8590. "required": false,
  8591. "style": "deepObject",
  8592. "explode": true
  8593. }
  8594. ],
  8595. "security": [],
  8596. "responses": {
  8597. "200": {
  8598. "description": "Success",
  8599. "content": {
  8600. "application/json": {
  8601. "schema": {
  8602. "type": "object",
  8603. "properties": {
  8604. "location": {
  8605. "$ref": "#/components/schemas/Location.Info"
  8606. },
  8607. "data": {
  8608. "$ref": "#/components/schemas/Shell1"
  8609. }
  8610. },
  8611. "required": [
  8612. "location",
  8613. "data"
  8614. ],
  8615. "additionalProperties": false
  8616. }
  8617. }
  8618. }
  8619. },
  8620. "400": {
  8621. "description": "InvalidRequestError",
  8622. "content": {
  8623. "application/json": {
  8624. "schema": {
  8625. "$ref": "#/components/schemas/InvalidRequestError"
  8626. }
  8627. }
  8628. }
  8629. },
  8630. "401": {
  8631. "description": "UnauthorizedError",
  8632. "content": {
  8633. "application/json": {
  8634. "schema": {
  8635. "$ref": "#/components/schemas/UnauthorizedError"
  8636. }
  8637. }
  8638. }
  8639. }
  8640. },
  8641. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  8642. "summary": "Run shell command",
  8643. "requestBody": {
  8644. "content": {
  8645. "application/json": {
  8646. "schema": {
  8647. "type": "object",
  8648. "properties": {
  8649. "command": {
  8650. "type": "string"
  8651. },
  8652. "cwd": {
  8653. "type": "string"
  8654. },
  8655. "timeout": {
  8656. "type": "integer",
  8657. "allOf": [
  8658. {
  8659. "minimum": 0
  8660. }
  8661. ]
  8662. },
  8663. "metadata": {
  8664. "type": "object"
  8665. }
  8666. },
  8667. "required": [
  8668. "command",
  8669. "timeout"
  8670. ],
  8671. "additionalProperties": false
  8672. }
  8673. }
  8674. },
  8675. "required": true
  8676. }
  8677. }
  8678. },
  8679. "/api/shell/{id}": {
  8680. "get": {
  8681. "tags": [
  8682. "shell"
  8683. ],
  8684. "operationId": "v2.shell.get",
  8685. "parameters": [
  8686. {
  8687. "name": "id",
  8688. "in": "path",
  8689. "schema": {
  8690. "type": "string",
  8691. "allOf": [
  8692. {
  8693. "pattern": "^sh_"
  8694. }
  8695. ]
  8696. },
  8697. "required": true
  8698. },
  8699. {
  8700. "name": "location",
  8701. "in": "query",
  8702. "schema": {
  8703. "anyOf": [
  8704. {
  8705. "type": "object",
  8706. "properties": {
  8707. "directory": {
  8708. "anyOf": [
  8709. {
  8710. "type": "string"
  8711. },
  8712. {
  8713. "type": "null"
  8714. }
  8715. ]
  8716. },
  8717. "workspace": {
  8718. "anyOf": [
  8719. {
  8720. "type": "string"
  8721. },
  8722. {
  8723. "type": "null"
  8724. }
  8725. ]
  8726. }
  8727. },
  8728. "additionalProperties": false
  8729. },
  8730. {
  8731. "type": "null"
  8732. }
  8733. ]
  8734. },
  8735. "required": false,
  8736. "style": "deepObject",
  8737. "explode": true
  8738. }
  8739. ],
  8740. "security": [],
  8741. "responses": {
  8742. "200": {
  8743. "description": "Success",
  8744. "content": {
  8745. "application/json": {
  8746. "schema": {
  8747. "type": "object",
  8748. "properties": {
  8749. "location": {
  8750. "$ref": "#/components/schemas/Location.Info"
  8751. },
  8752. "data": {
  8753. "$ref": "#/components/schemas/Shell1"
  8754. }
  8755. },
  8756. "required": [
  8757. "location",
  8758. "data"
  8759. ],
  8760. "additionalProperties": false
  8761. }
  8762. }
  8763. }
  8764. },
  8765. "400": {
  8766. "description": "InvalidRequestError",
  8767. "content": {
  8768. "application/json": {
  8769. "schema": {
  8770. "$ref": "#/components/schemas/InvalidRequestError"
  8771. }
  8772. }
  8773. }
  8774. },
  8775. "401": {
  8776. "description": "UnauthorizedError",
  8777. "content": {
  8778. "application/json": {
  8779. "schema": {
  8780. "$ref": "#/components/schemas/UnauthorizedError"
  8781. }
  8782. }
  8783. }
  8784. },
  8785. "404": {
  8786. "description": "ShellNotFoundError",
  8787. "content": {
  8788. "application/json": {
  8789. "schema": {
  8790. "$ref": "#/components/schemas/ShellNotFoundError"
  8791. }
  8792. }
  8793. }
  8794. }
  8795. },
  8796. "description": "Get one shell command, including its status and exit code once exited.",
  8797. "summary": "Get shell command"
  8798. },
  8799. "delete": {
  8800. "tags": [
  8801. "shell"
  8802. ],
  8803. "operationId": "v2.shell.remove",
  8804. "parameters": [
  8805. {
  8806. "name": "id",
  8807. "in": "path",
  8808. "schema": {
  8809. "type": "string",
  8810. "allOf": [
  8811. {
  8812. "pattern": "^sh_"
  8813. }
  8814. ]
  8815. },
  8816. "required": true
  8817. },
  8818. {
  8819. "name": "location",
  8820. "in": "query",
  8821. "schema": {
  8822. "anyOf": [
  8823. {
  8824. "type": "object",
  8825. "properties": {
  8826. "directory": {
  8827. "anyOf": [
  8828. {
  8829. "type": "string"
  8830. },
  8831. {
  8832. "type": "null"
  8833. }
  8834. ]
  8835. },
  8836. "workspace": {
  8837. "anyOf": [
  8838. {
  8839. "type": "string"
  8840. },
  8841. {
  8842. "type": "null"
  8843. }
  8844. ]
  8845. }
  8846. },
  8847. "additionalProperties": false
  8848. },
  8849. {
  8850. "type": "null"
  8851. }
  8852. ]
  8853. },
  8854. "required": false,
  8855. "style": "deepObject",
  8856. "explode": true
  8857. }
  8858. ],
  8859. "security": [],
  8860. "responses": {
  8861. "204": {
  8862. "description": "<No Content>"
  8863. },
  8864. "400": {
  8865. "description": "InvalidRequestError",
  8866. "content": {
  8867. "application/json": {
  8868. "schema": {
  8869. "$ref": "#/components/schemas/InvalidRequestError"
  8870. }
  8871. }
  8872. }
  8873. },
  8874. "401": {
  8875. "description": "UnauthorizedError",
  8876. "content": {
  8877. "application/json": {
  8878. "schema": {
  8879. "$ref": "#/components/schemas/UnauthorizedError"
  8880. }
  8881. }
  8882. }
  8883. },
  8884. "404": {
  8885. "description": "ShellNotFoundError",
  8886. "content": {
  8887. "application/json": {
  8888. "schema": {
  8889. "$ref": "#/components/schemas/ShellNotFoundError"
  8890. }
  8891. }
  8892. }
  8893. }
  8894. },
  8895. "description": "Terminate and remove one shell command and its retained output.",
  8896. "summary": "Remove shell command"
  8897. }
  8898. },
  8899. "/api/shell/{id}/timeout": {
  8900. "patch": {
  8901. "tags": [
  8902. "shell"
  8903. ],
  8904. "operationId": "v2.shell.timeout",
  8905. "parameters": [
  8906. {
  8907. "name": "id",
  8908. "in": "path",
  8909. "schema": {
  8910. "type": "string",
  8911. "allOf": [
  8912. {
  8913. "pattern": "^sh_"
  8914. }
  8915. ]
  8916. },
  8917. "required": true
  8918. },
  8919. {
  8920. "name": "location",
  8921. "in": "query",
  8922. "schema": {
  8923. "anyOf": [
  8924. {
  8925. "type": "object",
  8926. "properties": {
  8927. "directory": {
  8928. "anyOf": [
  8929. {
  8930. "type": "string"
  8931. },
  8932. {
  8933. "type": "null"
  8934. }
  8935. ]
  8936. },
  8937. "workspace": {
  8938. "anyOf": [
  8939. {
  8940. "type": "string"
  8941. },
  8942. {
  8943. "type": "null"
  8944. }
  8945. ]
  8946. }
  8947. },
  8948. "additionalProperties": false
  8949. },
  8950. {
  8951. "type": "null"
  8952. }
  8953. ]
  8954. },
  8955. "required": false,
  8956. "style": "deepObject",
  8957. "explode": true
  8958. }
  8959. ],
  8960. "security": [],
  8961. "responses": {
  8962. "200": {
  8963. "description": "Success",
  8964. "content": {
  8965. "application/json": {
  8966. "schema": {
  8967. "type": "object",
  8968. "properties": {
  8969. "location": {
  8970. "$ref": "#/components/schemas/Location.Info"
  8971. },
  8972. "data": {
  8973. "$ref": "#/components/schemas/Shell1"
  8974. }
  8975. },
  8976. "required": [
  8977. "location",
  8978. "data"
  8979. ],
  8980. "additionalProperties": false
  8981. }
  8982. }
  8983. }
  8984. },
  8985. "400": {
  8986. "description": "InvalidRequestError",
  8987. "content": {
  8988. "application/json": {
  8989. "schema": {
  8990. "$ref": "#/components/schemas/InvalidRequestError"
  8991. }
  8992. }
  8993. }
  8994. },
  8995. "401": {
  8996. "description": "UnauthorizedError",
  8997. "content": {
  8998. "application/json": {
  8999. "schema": {
  9000. "$ref": "#/components/schemas/UnauthorizedError"
  9001. }
  9002. }
  9003. }
  9004. },
  9005. "404": {
  9006. "description": "ShellNotFoundError",
  9007. "content": {
  9008. "application/json": {
  9009. "schema": {
  9010. "$ref": "#/components/schemas/ShellNotFoundError"
  9011. }
  9012. }
  9013. }
  9014. }
  9015. },
  9016. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  9017. "summary": "Update shell timeout",
  9018. "requestBody": {
  9019. "content": {
  9020. "application/json": {
  9021. "schema": {
  9022. "type": "object",
  9023. "properties": {
  9024. "timeout": {
  9025. "type": "integer",
  9026. "allOf": [
  9027. {
  9028. "minimum": 0
  9029. }
  9030. ]
  9031. }
  9032. },
  9033. "required": [
  9034. "timeout"
  9035. ],
  9036. "additionalProperties": false
  9037. }
  9038. }
  9039. },
  9040. "required": true
  9041. }
  9042. }
  9043. },
  9044. "/api/shell/{id}/output": {
  9045. "get": {
  9046. "tags": [
  9047. "shell"
  9048. ],
  9049. "operationId": "v2.shell.output",
  9050. "parameters": [
  9051. {
  9052. "name": "id",
  9053. "in": "path",
  9054. "schema": {
  9055. "type": "string",
  9056. "allOf": [
  9057. {
  9058. "pattern": "^sh_"
  9059. }
  9060. ]
  9061. },
  9062. "required": true
  9063. },
  9064. {
  9065. "name": "location",
  9066. "in": "query",
  9067. "schema": {
  9068. "anyOf": [
  9069. {
  9070. "type": "object",
  9071. "properties": {
  9072. "directory": {
  9073. "anyOf": [
  9074. {
  9075. "type": "string"
  9076. },
  9077. {
  9078. "type": "null"
  9079. }
  9080. ]
  9081. },
  9082. "workspace": {
  9083. "anyOf": [
  9084. {
  9085. "type": "string"
  9086. },
  9087. {
  9088. "type": "null"
  9089. }
  9090. ]
  9091. }
  9092. },
  9093. "additionalProperties": false
  9094. },
  9095. {
  9096. "type": "null"
  9097. }
  9098. ]
  9099. },
  9100. "required": false,
  9101. "style": "deepObject",
  9102. "explode": true
  9103. },
  9104. {
  9105. "name": "cursor",
  9106. "in": "query",
  9107. "schema": {
  9108. "type": "string",
  9109. "allOf": [
  9110. {
  9111. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  9112. }
  9113. ]
  9114. },
  9115. "required": false
  9116. },
  9117. {
  9118. "name": "limit",
  9119. "in": "query",
  9120. "schema": {
  9121. "type": "string",
  9122. "allOf": [
  9123. {
  9124. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  9125. }
  9126. ]
  9127. },
  9128. "required": false
  9129. }
  9130. ],
  9131. "security": [],
  9132. "responses": {
  9133. "200": {
  9134. "description": "Success",
  9135. "content": {
  9136. "application/json": {
  9137. "schema": {
  9138. "type": "object",
  9139. "properties": {
  9140. "location": {
  9141. "$ref": "#/components/schemas/Location.Info"
  9142. },
  9143. "data": {
  9144. "type": "object",
  9145. "properties": {
  9146. "output": {
  9147. "type": "string"
  9148. },
  9149. "cursor": {
  9150. "type": "integer",
  9151. "allOf": [
  9152. {
  9153. "minimum": 0
  9154. }
  9155. ]
  9156. },
  9157. "size": {
  9158. "type": "integer",
  9159. "allOf": [
  9160. {
  9161. "minimum": 0
  9162. }
  9163. ]
  9164. },
  9165. "truncated": {
  9166. "type": "boolean"
  9167. }
  9168. },
  9169. "required": [
  9170. "output",
  9171. "cursor",
  9172. "size",
  9173. "truncated"
  9174. ],
  9175. "additionalProperties": false
  9176. }
  9177. },
  9178. "required": [
  9179. "location",
  9180. "data"
  9181. ],
  9182. "additionalProperties": false
  9183. }
  9184. }
  9185. }
  9186. },
  9187. "400": {
  9188. "description": "InvalidRequestError",
  9189. "content": {
  9190. "application/json": {
  9191. "schema": {
  9192. "$ref": "#/components/schemas/InvalidRequestError"
  9193. }
  9194. }
  9195. }
  9196. },
  9197. "401": {
  9198. "description": "UnauthorizedError",
  9199. "content": {
  9200. "application/json": {
  9201. "schema": {
  9202. "$ref": "#/components/schemas/UnauthorizedError"
  9203. }
  9204. }
  9205. }
  9206. },
  9207. "404": {
  9208. "description": "ShellNotFoundError",
  9209. "content": {
  9210. "application/json": {
  9211. "schema": {
  9212. "$ref": "#/components/schemas/ShellNotFoundError"
  9213. }
  9214. }
  9215. }
  9216. }
  9217. },
  9218. "description": "Page through captured combined output by absolute byte cursor.",
  9219. "summary": "Read shell output"
  9220. }
  9221. },
  9222. "/api/question/request": {
  9223. "get": {
  9224. "tags": [
  9225. "question"
  9226. ],
  9227. "operationId": "v2.question.request.list",
  9228. "parameters": [
  9229. {
  9230. "name": "location",
  9231. "in": "query",
  9232. "schema": {
  9233. "anyOf": [
  9234. {
  9235. "type": "object",
  9236. "properties": {
  9237. "directory": {
  9238. "anyOf": [
  9239. {
  9240. "type": "string"
  9241. },
  9242. {
  9243. "type": "null"
  9244. }
  9245. ]
  9246. },
  9247. "workspace": {
  9248. "anyOf": [
  9249. {
  9250. "type": "string"
  9251. },
  9252. {
  9253. "type": "null"
  9254. }
  9255. ]
  9256. }
  9257. },
  9258. "additionalProperties": false
  9259. },
  9260. {
  9261. "type": "null"
  9262. }
  9263. ]
  9264. },
  9265. "required": false,
  9266. "style": "deepObject",
  9267. "explode": true
  9268. }
  9269. ],
  9270. "security": [],
  9271. "responses": {
  9272. "200": {
  9273. "description": "Success",
  9274. "content": {
  9275. "application/json": {
  9276. "schema": {
  9277. "type": "object",
  9278. "properties": {
  9279. "location": {
  9280. "$ref": "#/components/schemas/Location.Info"
  9281. },
  9282. "data": {
  9283. "type": "array",
  9284. "items": {
  9285. "$ref": "#/components/schemas/QuestionV2.Request"
  9286. }
  9287. }
  9288. },
  9289. "required": [
  9290. "location",
  9291. "data"
  9292. ],
  9293. "additionalProperties": false
  9294. }
  9295. }
  9296. }
  9297. },
  9298. "400": {
  9299. "description": "InvalidRequestError",
  9300. "content": {
  9301. "application/json": {
  9302. "schema": {
  9303. "$ref": "#/components/schemas/InvalidRequestError"
  9304. }
  9305. }
  9306. }
  9307. },
  9308. "401": {
  9309. "description": "UnauthorizedError",
  9310. "content": {
  9311. "application/json": {
  9312. "schema": {
  9313. "$ref": "#/components/schemas/UnauthorizedError"
  9314. }
  9315. }
  9316. }
  9317. }
  9318. },
  9319. "description": "Retrieve pending question requests for a location.",
  9320. "summary": "List pending question requests"
  9321. }
  9322. },
  9323. "/api/session/{sessionID}/question": {
  9324. "get": {
  9325. "tags": [
  9326. "question"
  9327. ],
  9328. "operationId": "v2.session.question.list",
  9329. "parameters": [
  9330. {
  9331. "name": "sessionID",
  9332. "in": "path",
  9333. "schema": {
  9334. "type": "string",
  9335. "allOf": [
  9336. {
  9337. "pattern": "^ses"
  9338. }
  9339. ]
  9340. },
  9341. "required": true
  9342. }
  9343. ],
  9344. "security": [],
  9345. "responses": {
  9346. "200": {
  9347. "description": "Success",
  9348. "content": {
  9349. "application/json": {
  9350. "schema": {
  9351. "type": "object",
  9352. "properties": {
  9353. "data": {
  9354. "type": "array",
  9355. "items": {
  9356. "$ref": "#/components/schemas/QuestionV2.Request"
  9357. }
  9358. }
  9359. },
  9360. "required": [
  9361. "data"
  9362. ],
  9363. "additionalProperties": false
  9364. }
  9365. }
  9366. }
  9367. },
  9368. "400": {
  9369. "description": "InvalidRequestError",
  9370. "content": {
  9371. "application/json": {
  9372. "schema": {
  9373. "$ref": "#/components/schemas/InvalidRequestError"
  9374. }
  9375. }
  9376. }
  9377. },
  9378. "401": {
  9379. "description": "UnauthorizedError",
  9380. "content": {
  9381. "application/json": {
  9382. "schema": {
  9383. "$ref": "#/components/schemas/UnauthorizedError"
  9384. }
  9385. }
  9386. }
  9387. },
  9388. "404": {
  9389. "description": "SessionNotFoundError",
  9390. "content": {
  9391. "application/json": {
  9392. "schema": {
  9393. "anyOf": [
  9394. {
  9395. "$ref": "#/components/schemas/SessionNotFoundError"
  9396. },
  9397. {
  9398. "$ref": "#/components/schemas/SessionNotFoundError"
  9399. }
  9400. ]
  9401. }
  9402. }
  9403. }
  9404. }
  9405. },
  9406. "description": "Retrieve pending question requests owned by a session.",
  9407. "summary": "List session question requests"
  9408. }
  9409. },
  9410. "/api/session/{sessionID}/question/{requestID}/reply": {
  9411. "post": {
  9412. "tags": [
  9413. "question"
  9414. ],
  9415. "operationId": "v2.session.question.reply",
  9416. "parameters": [
  9417. {
  9418. "name": "sessionID",
  9419. "in": "path",
  9420. "schema": {
  9421. "type": "string",
  9422. "allOf": [
  9423. {
  9424. "pattern": "^ses"
  9425. }
  9426. ]
  9427. },
  9428. "required": true
  9429. },
  9430. {
  9431. "name": "requestID",
  9432. "in": "path",
  9433. "schema": {
  9434. "type": "string",
  9435. "allOf": [
  9436. {
  9437. "pattern": "^que"
  9438. }
  9439. ]
  9440. },
  9441. "required": true
  9442. }
  9443. ],
  9444. "security": [],
  9445. "responses": {
  9446. "204": {
  9447. "description": "<No Content>"
  9448. },
  9449. "400": {
  9450. "description": "InvalidRequestError",
  9451. "content": {
  9452. "application/json": {
  9453. "schema": {
  9454. "$ref": "#/components/schemas/InvalidRequestError"
  9455. }
  9456. }
  9457. }
  9458. },
  9459. "401": {
  9460. "description": "UnauthorizedError",
  9461. "content": {
  9462. "application/json": {
  9463. "schema": {
  9464. "$ref": "#/components/schemas/UnauthorizedError"
  9465. }
  9466. }
  9467. }
  9468. },
  9469. "404": {
  9470. "description": "SessionNotFoundError | QuestionNotFoundError",
  9471. "content": {
  9472. "application/json": {
  9473. "schema": {
  9474. "anyOf": [
  9475. {
  9476. "$ref": "#/components/schemas/QuestionNotFoundError"
  9477. },
  9478. {
  9479. "$ref": "#/components/schemas/SessionNotFoundError"
  9480. },
  9481. {
  9482. "$ref": "#/components/schemas/SessionNotFoundError"
  9483. }
  9484. ]
  9485. }
  9486. }
  9487. }
  9488. }
  9489. },
  9490. "description": "Answer a pending question request owned by a session.",
  9491. "summary": "Reply to pending question request",
  9492. "requestBody": {
  9493. "content": {
  9494. "application/json": {
  9495. "schema": {
  9496. "$ref": "#/components/schemas/QuestionV2.Reply"
  9497. }
  9498. }
  9499. },
  9500. "required": true
  9501. }
  9502. }
  9503. },
  9504. "/api/session/{sessionID}/question/{requestID}/reject": {
  9505. "post": {
  9506. "tags": [
  9507. "question"
  9508. ],
  9509. "operationId": "v2.session.question.reject",
  9510. "parameters": [
  9511. {
  9512. "name": "sessionID",
  9513. "in": "path",
  9514. "schema": {
  9515. "type": "string",
  9516. "allOf": [
  9517. {
  9518. "pattern": "^ses"
  9519. }
  9520. ]
  9521. },
  9522. "required": true
  9523. },
  9524. {
  9525. "name": "requestID",
  9526. "in": "path",
  9527. "schema": {
  9528. "type": "string",
  9529. "allOf": [
  9530. {
  9531. "pattern": "^que"
  9532. }
  9533. ]
  9534. },
  9535. "required": true
  9536. }
  9537. ],
  9538. "security": [],
  9539. "responses": {
  9540. "204": {
  9541. "description": "<No Content>"
  9542. },
  9543. "400": {
  9544. "description": "InvalidRequestError",
  9545. "content": {
  9546. "application/json": {
  9547. "schema": {
  9548. "$ref": "#/components/schemas/InvalidRequestError"
  9549. }
  9550. }
  9551. }
  9552. },
  9553. "401": {
  9554. "description": "UnauthorizedError",
  9555. "content": {
  9556. "application/json": {
  9557. "schema": {
  9558. "$ref": "#/components/schemas/UnauthorizedError"
  9559. }
  9560. }
  9561. }
  9562. },
  9563. "404": {
  9564. "description": "SessionNotFoundError | QuestionNotFoundError",
  9565. "content": {
  9566. "application/json": {
  9567. "schema": {
  9568. "anyOf": [
  9569. {
  9570. "$ref": "#/components/schemas/QuestionNotFoundError"
  9571. },
  9572. {
  9573. "$ref": "#/components/schemas/SessionNotFoundError"
  9574. },
  9575. {
  9576. "$ref": "#/components/schemas/SessionNotFoundError"
  9577. }
  9578. ]
  9579. }
  9580. }
  9581. }
  9582. }
  9583. },
  9584. "description": "Reject a pending question request owned by a session.",
  9585. "summary": "Reject pending question request"
  9586. }
  9587. },
  9588. "/api/reference": {
  9589. "get": {
  9590. "tags": [
  9591. "reference"
  9592. ],
  9593. "operationId": "v2.reference.list",
  9594. "parameters": [
  9595. {
  9596. "name": "location",
  9597. "in": "query",
  9598. "schema": {
  9599. "anyOf": [
  9600. {
  9601. "type": "object",
  9602. "properties": {
  9603. "directory": {
  9604. "anyOf": [
  9605. {
  9606. "type": "string"
  9607. },
  9608. {
  9609. "type": "null"
  9610. }
  9611. ]
  9612. },
  9613. "workspace": {
  9614. "anyOf": [
  9615. {
  9616. "type": "string"
  9617. },
  9618. {
  9619. "type": "null"
  9620. }
  9621. ]
  9622. }
  9623. },
  9624. "additionalProperties": false
  9625. },
  9626. {
  9627. "type": "null"
  9628. }
  9629. ]
  9630. },
  9631. "required": false,
  9632. "style": "deepObject",
  9633. "explode": true
  9634. }
  9635. ],
  9636. "security": [],
  9637. "responses": {
  9638. "200": {
  9639. "description": "Success",
  9640. "content": {
  9641. "application/json": {
  9642. "schema": {
  9643. "type": "object",
  9644. "properties": {
  9645. "location": {
  9646. "$ref": "#/components/schemas/Location.Info"
  9647. },
  9648. "data": {
  9649. "type": "array",
  9650. "items": {
  9651. "$ref": "#/components/schemas/Reference.Info"
  9652. }
  9653. }
  9654. },
  9655. "required": [
  9656. "location",
  9657. "data"
  9658. ],
  9659. "additionalProperties": false
  9660. }
  9661. }
  9662. }
  9663. },
  9664. "400": {
  9665. "description": "InvalidRequestError",
  9666. "content": {
  9667. "application/json": {
  9668. "schema": {
  9669. "$ref": "#/components/schemas/InvalidRequestError"
  9670. }
  9671. }
  9672. }
  9673. },
  9674. "401": {
  9675. "description": "UnauthorizedError",
  9676. "content": {
  9677. "application/json": {
  9678. "schema": {
  9679. "$ref": "#/components/schemas/UnauthorizedError"
  9680. }
  9681. }
  9682. }
  9683. }
  9684. },
  9685. "description": "List references available in the requested location.",
  9686. "summary": "List references"
  9687. }
  9688. },
  9689. "/experimental/project/{projectID}/copy": {
  9690. "post": {
  9691. "tags": [
  9692. "projectCopy"
  9693. ],
  9694. "operationId": "v2.projectCopy.create",
  9695. "parameters": [
  9696. {
  9697. "name": "projectID",
  9698. "in": "path",
  9699. "schema": {
  9700. "type": "string"
  9701. },
  9702. "required": true
  9703. },
  9704. {
  9705. "name": "location",
  9706. "in": "query",
  9707. "schema": {
  9708. "anyOf": [
  9709. {
  9710. "type": "object",
  9711. "properties": {
  9712. "directory": {
  9713. "anyOf": [
  9714. {
  9715. "type": "string"
  9716. },
  9717. {
  9718. "type": "null"
  9719. }
  9720. ]
  9721. },
  9722. "workspace": {
  9723. "anyOf": [
  9724. {
  9725. "type": "string"
  9726. },
  9727. {
  9728. "type": "null"
  9729. }
  9730. ]
  9731. }
  9732. },
  9733. "additionalProperties": false
  9734. },
  9735. {
  9736. "type": "null"
  9737. }
  9738. ]
  9739. },
  9740. "required": false,
  9741. "style": "deepObject",
  9742. "explode": true
  9743. }
  9744. ],
  9745. "security": [],
  9746. "responses": {
  9747. "200": {
  9748. "description": "ProjectCopy.Copy",
  9749. "content": {
  9750. "application/json": {
  9751. "schema": {
  9752. "$ref": "#/components/schemas/ProjectCopy.Copy"
  9753. }
  9754. }
  9755. }
  9756. },
  9757. "400": {
  9758. "description": "ProjectCopyError | InvalidRequestError",
  9759. "content": {
  9760. "application/json": {
  9761. "schema": {
  9762. "anyOf": [
  9763. {
  9764. "$ref": "#/components/schemas/ProjectCopyError"
  9765. },
  9766. {
  9767. "$ref": "#/components/schemas/InvalidRequestError"
  9768. }
  9769. ]
  9770. }
  9771. }
  9772. }
  9773. },
  9774. "401": {
  9775. "description": "UnauthorizedError",
  9776. "content": {
  9777. "application/json": {
  9778. "schema": {
  9779. "$ref": "#/components/schemas/UnauthorizedError"
  9780. }
  9781. }
  9782. }
  9783. }
  9784. },
  9785. "requestBody": {
  9786. "content": {
  9787. "application/json": {
  9788. "schema": {
  9789. "type": "object",
  9790. "properties": {
  9791. "strategy": {
  9792. "type": "string"
  9793. },
  9794. "directory": {
  9795. "type": "string"
  9796. },
  9797. "name": {
  9798. "type": "string"
  9799. }
  9800. },
  9801. "required": [
  9802. "strategy",
  9803. "directory"
  9804. ],
  9805. "additionalProperties": false
  9806. }
  9807. }
  9808. },
  9809. "required": true
  9810. }
  9811. },
  9812. "delete": {
  9813. "tags": [
  9814. "projectCopy"
  9815. ],
  9816. "operationId": "v2.projectCopy.remove",
  9817. "parameters": [
  9818. {
  9819. "name": "projectID",
  9820. "in": "path",
  9821. "schema": {
  9822. "type": "string"
  9823. },
  9824. "required": true
  9825. },
  9826. {
  9827. "name": "location",
  9828. "in": "query",
  9829. "schema": {
  9830. "anyOf": [
  9831. {
  9832. "type": "object",
  9833. "properties": {
  9834. "directory": {
  9835. "anyOf": [
  9836. {
  9837. "type": "string"
  9838. },
  9839. {
  9840. "type": "null"
  9841. }
  9842. ]
  9843. },
  9844. "workspace": {
  9845. "anyOf": [
  9846. {
  9847. "type": "string"
  9848. },
  9849. {
  9850. "type": "null"
  9851. }
  9852. ]
  9853. }
  9854. },
  9855. "additionalProperties": false
  9856. },
  9857. {
  9858. "type": "null"
  9859. }
  9860. ]
  9861. },
  9862. "required": false,
  9863. "style": "deepObject",
  9864. "explode": true
  9865. }
  9866. ],
  9867. "security": [],
  9868. "responses": {
  9869. "204": {
  9870. "description": "<No Content>"
  9871. },
  9872. "400": {
  9873. "description": "ProjectCopyError | InvalidRequestError",
  9874. "content": {
  9875. "application/json": {
  9876. "schema": {
  9877. "anyOf": [
  9878. {
  9879. "$ref": "#/components/schemas/ProjectCopyError"
  9880. },
  9881. {
  9882. "$ref": "#/components/schemas/InvalidRequestError"
  9883. }
  9884. ]
  9885. }
  9886. }
  9887. }
  9888. },
  9889. "401": {
  9890. "description": "UnauthorizedError",
  9891. "content": {
  9892. "application/json": {
  9893. "schema": {
  9894. "$ref": "#/components/schemas/UnauthorizedError"
  9895. }
  9896. }
  9897. }
  9898. }
  9899. },
  9900. "requestBody": {
  9901. "content": {
  9902. "application/json": {
  9903. "schema": {
  9904. "type": "object",
  9905. "properties": {
  9906. "directory": {
  9907. "type": "string"
  9908. },
  9909. "force": {
  9910. "type": "boolean"
  9911. }
  9912. },
  9913. "required": [
  9914. "directory",
  9915. "force"
  9916. ],
  9917. "additionalProperties": false
  9918. }
  9919. }
  9920. },
  9921. "required": true
  9922. }
  9923. }
  9924. },
  9925. "/experimental/project/{projectID}/copy/refresh": {
  9926. "post": {
  9927. "tags": [
  9928. "projectCopy"
  9929. ],
  9930. "operationId": "v2.projectCopy.refresh",
  9931. "parameters": [
  9932. {
  9933. "name": "projectID",
  9934. "in": "path",
  9935. "schema": {
  9936. "type": "string"
  9937. },
  9938. "required": true
  9939. },
  9940. {
  9941. "name": "location",
  9942. "in": "query",
  9943. "schema": {
  9944. "anyOf": [
  9945. {
  9946. "type": "object",
  9947. "properties": {
  9948. "directory": {
  9949. "anyOf": [
  9950. {
  9951. "type": "string"
  9952. },
  9953. {
  9954. "type": "null"
  9955. }
  9956. ]
  9957. },
  9958. "workspace": {
  9959. "anyOf": [
  9960. {
  9961. "type": "string"
  9962. },
  9963. {
  9964. "type": "null"
  9965. }
  9966. ]
  9967. }
  9968. },
  9969. "additionalProperties": false
  9970. },
  9971. {
  9972. "type": "null"
  9973. }
  9974. ]
  9975. },
  9976. "required": false,
  9977. "style": "deepObject",
  9978. "explode": true
  9979. }
  9980. ],
  9981. "security": [],
  9982. "responses": {
  9983. "204": {
  9984. "description": "<No Content>"
  9985. },
  9986. "400": {
  9987. "description": "ProjectCopyError | InvalidRequestError",
  9988. "content": {
  9989. "application/json": {
  9990. "schema": {
  9991. "anyOf": [
  9992. {
  9993. "$ref": "#/components/schemas/ProjectCopyError"
  9994. },
  9995. {
  9996. "$ref": "#/components/schemas/InvalidRequestError"
  9997. }
  9998. ]
  9999. }
  10000. }
  10001. }
  10002. },
  10003. "401": {
  10004. "description": "UnauthorizedError",
  10005. "content": {
  10006. "application/json": {
  10007. "schema": {
  10008. "$ref": "#/components/schemas/UnauthorizedError"
  10009. }
  10010. }
  10011. }
  10012. }
  10013. }
  10014. }
  10015. },
  10016. "/api/vcs/status": {
  10017. "get": {
  10018. "tags": [
  10019. "vcs"
  10020. ],
  10021. "operationId": "v2.vcs.status",
  10022. "parameters": [
  10023. {
  10024. "name": "location",
  10025. "in": "query",
  10026. "schema": {
  10027. "anyOf": [
  10028. {
  10029. "type": "object",
  10030. "properties": {
  10031. "directory": {
  10032. "anyOf": [
  10033. {
  10034. "type": "string"
  10035. },
  10036. {
  10037. "type": "null"
  10038. }
  10039. ]
  10040. },
  10041. "workspace": {
  10042. "anyOf": [
  10043. {
  10044. "type": "string"
  10045. },
  10046. {
  10047. "type": "null"
  10048. }
  10049. ]
  10050. }
  10051. },
  10052. "additionalProperties": false
  10053. },
  10054. {
  10055. "type": "null"
  10056. }
  10057. ]
  10058. },
  10059. "required": false,
  10060. "style": "deepObject",
  10061. "explode": true
  10062. }
  10063. ],
  10064. "security": [],
  10065. "responses": {
  10066. "200": {
  10067. "description": "Success",
  10068. "content": {
  10069. "application/json": {
  10070. "schema": {
  10071. "type": "object",
  10072. "properties": {
  10073. "location": {
  10074. "$ref": "#/components/schemas/Location.Info"
  10075. },
  10076. "data": {
  10077. "type": "array",
  10078. "items": {
  10079. "$ref": "#/components/schemas/Vcs.FileStatus"
  10080. }
  10081. }
  10082. },
  10083. "required": [
  10084. "location",
  10085. "data"
  10086. ],
  10087. "additionalProperties": false
  10088. }
  10089. }
  10090. }
  10091. },
  10092. "400": {
  10093. "description": "InvalidRequestError",
  10094. "content": {
  10095. "application/json": {
  10096. "schema": {
  10097. "$ref": "#/components/schemas/InvalidRequestError"
  10098. }
  10099. }
  10100. }
  10101. },
  10102. "401": {
  10103. "description": "UnauthorizedError",
  10104. "content": {
  10105. "application/json": {
  10106. "schema": {
  10107. "$ref": "#/components/schemas/UnauthorizedError"
  10108. }
  10109. }
  10110. }
  10111. }
  10112. },
  10113. "description": "List uncommitted working-copy changes relative to the requested location.",
  10114. "summary": "VCS status"
  10115. }
  10116. },
  10117. "/api/vcs/diff": {
  10118. "get": {
  10119. "tags": [
  10120. "vcs"
  10121. ],
  10122. "operationId": "v2.vcs.diff",
  10123. "parameters": [
  10124. {
  10125. "name": "location",
  10126. "in": "query",
  10127. "schema": {
  10128. "anyOf": [
  10129. {
  10130. "type": "object",
  10131. "properties": {
  10132. "directory": {
  10133. "anyOf": [
  10134. {
  10135. "type": "string"
  10136. },
  10137. {
  10138. "type": "null"
  10139. }
  10140. ]
  10141. },
  10142. "workspace": {
  10143. "anyOf": [
  10144. {
  10145. "type": "string"
  10146. },
  10147. {
  10148. "type": "null"
  10149. }
  10150. ]
  10151. }
  10152. },
  10153. "additionalProperties": false
  10154. },
  10155. {
  10156. "type": "null"
  10157. }
  10158. ]
  10159. },
  10160. "required": false,
  10161. "style": "deepObject",
  10162. "explode": true
  10163. },
  10164. {
  10165. "name": "mode",
  10166. "in": "query",
  10167. "schema": {
  10168. "$ref": "#/components/schemas/Vcs.Mode"
  10169. },
  10170. "required": true
  10171. },
  10172. {
  10173. "name": "context",
  10174. "in": "query",
  10175. "schema": {
  10176. "anyOf": [
  10177. {
  10178. "type": "string"
  10179. },
  10180. {
  10181. "type": "null"
  10182. }
  10183. ]
  10184. },
  10185. "required": false
  10186. }
  10187. ],
  10188. "security": [],
  10189. "responses": {
  10190. "200": {
  10191. "description": "Success",
  10192. "content": {
  10193. "application/json": {
  10194. "schema": {
  10195. "type": "object",
  10196. "properties": {
  10197. "location": {
  10198. "$ref": "#/components/schemas/Location.Info"
  10199. },
  10200. "data": {
  10201. "type": "array",
  10202. "items": {
  10203. "$ref": "#/components/schemas/FileDiff.Info"
  10204. }
  10205. }
  10206. },
  10207. "required": [
  10208. "location",
  10209. "data"
  10210. ],
  10211. "additionalProperties": false
  10212. }
  10213. }
  10214. }
  10215. },
  10216. "400": {
  10217. "description": "InvalidRequestError",
  10218. "content": {
  10219. "application/json": {
  10220. "schema": {
  10221. "$ref": "#/components/schemas/InvalidRequestError"
  10222. }
  10223. }
  10224. }
  10225. },
  10226. "401": {
  10227. "description": "UnauthorizedError",
  10228. "content": {
  10229. "application/json": {
  10230. "schema": {
  10231. "$ref": "#/components/schemas/UnauthorizedError"
  10232. }
  10233. }
  10234. }
  10235. }
  10236. },
  10237. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  10238. "summary": "VCS diff"
  10239. }
  10240. },
  10241. "/api/debug/location": {
  10242. "get": {
  10243. "tags": [
  10244. "debug"
  10245. ],
  10246. "operationId": "v2.debug.location.list",
  10247. "parameters": [],
  10248. "security": [],
  10249. "responses": {
  10250. "200": {
  10251. "description": "Success",
  10252. "content": {
  10253. "application/json": {
  10254. "schema": {
  10255. "type": "array",
  10256. "items": {
  10257. "$ref": "#/components/schemas/Location.Ref"
  10258. }
  10259. }
  10260. }
  10261. }
  10262. },
  10263. "400": {
  10264. "description": "InvalidRequestError",
  10265. "content": {
  10266. "application/json": {
  10267. "schema": {
  10268. "$ref": "#/components/schemas/InvalidRequestError"
  10269. }
  10270. }
  10271. }
  10272. },
  10273. "401": {
  10274. "description": "UnauthorizedError",
  10275. "content": {
  10276. "application/json": {
  10277. "schema": {
  10278. "$ref": "#/components/schemas/UnauthorizedError"
  10279. }
  10280. }
  10281. }
  10282. }
  10283. },
  10284. "description": "List locations currently loaded by the server.",
  10285. "summary": "List loaded locations"
  10286. },
  10287. "delete": {
  10288. "tags": [
  10289. "debug"
  10290. ],
  10291. "operationId": "v2.debug.location.evict",
  10292. "parameters": [
  10293. {
  10294. "name": "location",
  10295. "in": "query",
  10296. "schema": {
  10297. "anyOf": [
  10298. {
  10299. "type": "object",
  10300. "properties": {
  10301. "directory": {
  10302. "anyOf": [
  10303. {
  10304. "type": "string"
  10305. },
  10306. {
  10307. "type": "null"
  10308. }
  10309. ]
  10310. },
  10311. "workspace": {
  10312. "anyOf": [
  10313. {
  10314. "type": "string"
  10315. },
  10316. {
  10317. "type": "null"
  10318. }
  10319. ]
  10320. }
  10321. },
  10322. "additionalProperties": false
  10323. },
  10324. {
  10325. "type": "null"
  10326. }
  10327. ]
  10328. },
  10329. "required": false,
  10330. "style": "deepObject",
  10331. "explode": true
  10332. }
  10333. ],
  10334. "security": [],
  10335. "responses": {
  10336. "204": {
  10337. "description": "<No Content>"
  10338. },
  10339. "400": {
  10340. "description": "InvalidRequestError",
  10341. "content": {
  10342. "application/json": {
  10343. "schema": {
  10344. "$ref": "#/components/schemas/InvalidRequestError"
  10345. }
  10346. }
  10347. }
  10348. },
  10349. "401": {
  10350. "description": "UnauthorizedError",
  10351. "content": {
  10352. "application/json": {
  10353. "schema": {
  10354. "$ref": "#/components/schemas/UnauthorizedError"
  10355. }
  10356. }
  10357. }
  10358. }
  10359. },
  10360. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  10361. "summary": "Evict a loaded location"
  10362. }
  10363. }
  10364. },
  10365. "components": {
  10366. "schemas": {
  10367. "UnauthorizedError": {
  10368. "type": "object",
  10369. "properties": {
  10370. "_tag": {
  10371. "type": "string",
  10372. "enum": [
  10373. "UnauthorizedError"
  10374. ]
  10375. },
  10376. "message": {
  10377. "type": "string"
  10378. }
  10379. },
  10380. "required": [
  10381. "_tag",
  10382. "message"
  10383. ],
  10384. "additionalProperties": false
  10385. },
  10386. "InvalidRequestError": {
  10387. "type": "object",
  10388. "properties": {
  10389. "_tag": {
  10390. "type": "string",
  10391. "enum": [
  10392. "InvalidRequestError"
  10393. ]
  10394. },
  10395. "message": {
  10396. "type": "string"
  10397. },
  10398. "kind": {
  10399. "anyOf": [
  10400. {
  10401. "type": "string"
  10402. },
  10403. {
  10404. "type": "null"
  10405. }
  10406. ]
  10407. },
  10408. "field": {
  10409. "anyOf": [
  10410. {
  10411. "type": "string"
  10412. },
  10413. {
  10414. "type": "null"
  10415. }
  10416. ]
  10417. }
  10418. },
  10419. "required": [
  10420. "_tag",
  10421. "message"
  10422. ],
  10423. "additionalProperties": false
  10424. },
  10425. "Location.Info": {
  10426. "type": "object",
  10427. "properties": {
  10428. "directory": {
  10429. "type": "string"
  10430. },
  10431. "workspaceID": {
  10432. "type": "string",
  10433. "allOf": [
  10434. {
  10435. "pattern": "^wrk"
  10436. }
  10437. ]
  10438. },
  10439. "project": {
  10440. "type": "object",
  10441. "properties": {
  10442. "id": {
  10443. "type": "string"
  10444. },
  10445. "directory": {
  10446. "type": "string"
  10447. }
  10448. },
  10449. "required": [
  10450. "id",
  10451. "directory"
  10452. ],
  10453. "additionalProperties": false
  10454. }
  10455. },
  10456. "required": [
  10457. "directory",
  10458. "project"
  10459. ],
  10460. "additionalProperties": false
  10461. },
  10462. "Model.Ref": {
  10463. "type": "object",
  10464. "properties": {
  10465. "id": {
  10466. "type": "string"
  10467. },
  10468. "providerID": {
  10469. "type": "string"
  10470. },
  10471. "variant": {
  10472. "type": "string"
  10473. }
  10474. },
  10475. "required": [
  10476. "id",
  10477. "providerID"
  10478. ],
  10479. "additionalProperties": false
  10480. },
  10481. "Provider.Settings": {
  10482. "type": "object"
  10483. },
  10484. "Provider.Request": {
  10485. "type": "object",
  10486. "properties": {
  10487. "settings": {
  10488. "$ref": "#/components/schemas/Provider.Settings"
  10489. },
  10490. "headers": {
  10491. "type": "object",
  10492. "additionalProperties": {
  10493. "type": "string"
  10494. }
  10495. },
  10496. "body": {
  10497. "type": "object"
  10498. }
  10499. },
  10500. "required": [
  10501. "settings",
  10502. "headers",
  10503. "body"
  10504. ],
  10505. "additionalProperties": false
  10506. },
  10507. "Agent.Color": {
  10508. "anyOf": [
  10509. {
  10510. "type": "string",
  10511. "allOf": [
  10512. {
  10513. "pattern": "^#[0-9a-fA-F]{6}$"
  10514. }
  10515. ]
  10516. },
  10517. {
  10518. "type": "string",
  10519. "enum": [
  10520. "primary",
  10521. "secondary",
  10522. "accent",
  10523. "success",
  10524. "warning",
  10525. "error",
  10526. "info"
  10527. ]
  10528. }
  10529. ]
  10530. },
  10531. "PermissionV2.Effect": {
  10532. "type": "string",
  10533. "enum": [
  10534. "allow",
  10535. "deny",
  10536. "ask"
  10537. ]
  10538. },
  10539. "PermissionV2.Rule": {
  10540. "type": "object",
  10541. "properties": {
  10542. "action": {
  10543. "type": "string"
  10544. },
  10545. "resource": {
  10546. "type": "string"
  10547. },
  10548. "effect": {
  10549. "$ref": "#/components/schemas/PermissionV2.Effect"
  10550. }
  10551. },
  10552. "required": [
  10553. "action",
  10554. "resource",
  10555. "effect"
  10556. ],
  10557. "additionalProperties": false
  10558. },
  10559. "PermissionV2.Ruleset": {
  10560. "type": "array",
  10561. "items": {
  10562. "$ref": "#/components/schemas/PermissionV2.Rule"
  10563. }
  10564. },
  10565. "Agent.Info": {
  10566. "type": "object",
  10567. "properties": {
  10568. "id": {
  10569. "type": "string"
  10570. },
  10571. "name": {
  10572. "type": "string"
  10573. },
  10574. "model": {
  10575. "$ref": "#/components/schemas/Model.Ref"
  10576. },
  10577. "request": {
  10578. "$ref": "#/components/schemas/Provider.Request"
  10579. },
  10580. "system": {
  10581. "type": "string"
  10582. },
  10583. "description": {
  10584. "type": "string"
  10585. },
  10586. "mode": {
  10587. "type": "string",
  10588. "enum": [
  10589. "subagent",
  10590. "primary",
  10591. "all"
  10592. ]
  10593. },
  10594. "hidden": {
  10595. "type": "boolean"
  10596. },
  10597. "color": {
  10598. "$ref": "#/components/schemas/Agent.Color"
  10599. },
  10600. "steps": {
  10601. "type": "integer",
  10602. "allOf": [
  10603. {
  10604. "exclusiveMinimum": 0
  10605. }
  10606. ]
  10607. },
  10608. "permissions": {
  10609. "$ref": "#/components/schemas/PermissionV2.Ruleset"
  10610. }
  10611. },
  10612. "required": [
  10613. "id",
  10614. "name",
  10615. "request",
  10616. "mode",
  10617. "hidden",
  10618. "permissions"
  10619. ],
  10620. "additionalProperties": false
  10621. },
  10622. "Plugin.Info": {
  10623. "type": "object",
  10624. "properties": {
  10625. "id": {
  10626. "type": "string"
  10627. }
  10628. },
  10629. "required": [
  10630. "id"
  10631. ],
  10632. "additionalProperties": false
  10633. },
  10634. "Money.USD": {
  10635. "type": "number"
  10636. },
  10637. "TokenUsage.Info": {
  10638. "type": "object",
  10639. "properties": {
  10640. "input": {
  10641. "type": "number"
  10642. },
  10643. "output": {
  10644. "type": "number"
  10645. },
  10646. "reasoning": {
  10647. "type": "number"
  10648. },
  10649. "cache": {
  10650. "type": "object",
  10651. "properties": {
  10652. "read": {
  10653. "type": "number"
  10654. },
  10655. "write": {
  10656. "type": "number"
  10657. }
  10658. },
  10659. "required": [
  10660. "read",
  10661. "write"
  10662. ],
  10663. "additionalProperties": false
  10664. }
  10665. },
  10666. "required": [
  10667. "input",
  10668. "output",
  10669. "reasoning",
  10670. "cache"
  10671. ],
  10672. "additionalProperties": false
  10673. },
  10674. "Location.Ref": {
  10675. "type": "object",
  10676. "properties": {
  10677. "directory": {
  10678. "type": "string"
  10679. },
  10680. "workspaceID": {
  10681. "type": "string",
  10682. "allOf": [
  10683. {
  10684. "pattern": "^wrk"
  10685. }
  10686. ]
  10687. }
  10688. },
  10689. "required": [
  10690. "directory"
  10691. ],
  10692. "additionalProperties": false
  10693. },
  10694. "FileDiff.Info": {
  10695. "type": "object",
  10696. "properties": {
  10697. "file": {
  10698. "type": "string"
  10699. },
  10700. "patch": {
  10701. "type": "string"
  10702. },
  10703. "additions": {
  10704. "type": "integer",
  10705. "allOf": [
  10706. {
  10707. "minimum": 0
  10708. }
  10709. ]
  10710. },
  10711. "deletions": {
  10712. "type": "integer",
  10713. "allOf": [
  10714. {
  10715. "minimum": 0
  10716. }
  10717. ]
  10718. },
  10719. "status": {
  10720. "type": "string",
  10721. "enum": [
  10722. "added",
  10723. "deleted",
  10724. "modified"
  10725. ]
  10726. }
  10727. },
  10728. "required": [
  10729. "file",
  10730. "patch",
  10731. "additions",
  10732. "deletions",
  10733. "status"
  10734. ],
  10735. "additionalProperties": false
  10736. },
  10737. "Session.Revert": {
  10738. "type": "object",
  10739. "properties": {
  10740. "messageID": {
  10741. "type": "string",
  10742. "allOf": [
  10743. {
  10744. "pattern": "^msg_"
  10745. }
  10746. ]
  10747. },
  10748. "partID": {
  10749. "type": "string"
  10750. },
  10751. "snapshot": {
  10752. "type": "string"
  10753. },
  10754. "files": {
  10755. "type": "array",
  10756. "items": {
  10757. "$ref": "#/components/schemas/FileDiff.Info"
  10758. }
  10759. }
  10760. },
  10761. "required": [
  10762. "messageID"
  10763. ],
  10764. "additionalProperties": false
  10765. },
  10766. "Session.Info": {
  10767. "type": "object",
  10768. "properties": {
  10769. "id": {
  10770. "type": "string",
  10771. "allOf": [
  10772. {
  10773. "pattern": "^ses"
  10774. }
  10775. ]
  10776. },
  10777. "parentID": {
  10778. "type": "string",
  10779. "allOf": [
  10780. {
  10781. "pattern": "^ses"
  10782. }
  10783. ]
  10784. },
  10785. "fork": {
  10786. "type": "object",
  10787. "properties": {
  10788. "sessionID": {
  10789. "type": "string",
  10790. "allOf": [
  10791. {
  10792. "pattern": "^ses"
  10793. }
  10794. ]
  10795. },
  10796. "messageID": {
  10797. "type": "string",
  10798. "allOf": [
  10799. {
  10800. "pattern": "^msg_"
  10801. }
  10802. ]
  10803. }
  10804. },
  10805. "required": [
  10806. "sessionID"
  10807. ],
  10808. "additionalProperties": false
  10809. },
  10810. "projectID": {
  10811. "type": "string"
  10812. },
  10813. "agent": {
  10814. "type": "string"
  10815. },
  10816. "model": {
  10817. "$ref": "#/components/schemas/Model.Ref"
  10818. },
  10819. "cost": {
  10820. "$ref": "#/components/schemas/Money.USD"
  10821. },
  10822. "tokens": {
  10823. "$ref": "#/components/schemas/TokenUsage.Info"
  10824. },
  10825. "time": {
  10826. "type": "object",
  10827. "properties": {
  10828. "created": {
  10829. "type": "number"
  10830. },
  10831. "updated": {
  10832. "type": "number"
  10833. },
  10834. "archived": {
  10835. "type": "number"
  10836. }
  10837. },
  10838. "required": [
  10839. "created",
  10840. "updated"
  10841. ],
  10842. "additionalProperties": false
  10843. },
  10844. "title": {
  10845. "type": "string"
  10846. },
  10847. "location": {
  10848. "$ref": "#/components/schemas/Location.Ref"
  10849. },
  10850. "subpath": {
  10851. "type": "string"
  10852. },
  10853. "revert": {
  10854. "$ref": "#/components/schemas/Session.Revert"
  10855. }
  10856. },
  10857. "required": [
  10858. "id",
  10859. "projectID",
  10860. "cost",
  10861. "tokens",
  10862. "time",
  10863. "title",
  10864. "location"
  10865. ],
  10866. "additionalProperties": false
  10867. },
  10868. "SessionsResponse": {
  10869. "type": "object",
  10870. "properties": {
  10871. "data": {
  10872. "type": "array",
  10873. "items": {
  10874. "$ref": "#/components/schemas/Session.Info"
  10875. }
  10876. },
  10877. "cursor": {
  10878. "type": "object",
  10879. "properties": {
  10880. "previous": {
  10881. "anyOf": [
  10882. {
  10883. "type": "string"
  10884. },
  10885. {
  10886. "type": "null"
  10887. }
  10888. ]
  10889. },
  10890. "next": {
  10891. "anyOf": [
  10892. {
  10893. "type": "string"
  10894. },
  10895. {
  10896. "type": "null"
  10897. }
  10898. ]
  10899. }
  10900. },
  10901. "additionalProperties": false
  10902. }
  10903. },
  10904. "required": [
  10905. "data",
  10906. "cursor"
  10907. ],
  10908. "additionalProperties": false
  10909. },
  10910. "InvalidCursorError": {
  10911. "type": "object",
  10912. "properties": {
  10913. "_tag": {
  10914. "type": "string",
  10915. "enum": [
  10916. "InvalidCursorError"
  10917. ]
  10918. },
  10919. "message": {
  10920. "type": "string"
  10921. }
  10922. },
  10923. "required": [
  10924. "_tag",
  10925. "message"
  10926. ],
  10927. "additionalProperties": false
  10928. },
  10929. "InvalidRequestError1": {
  10930. "type": "object",
  10931. "properties": {
  10932. "_tag": {
  10933. "type": "string",
  10934. "enum": [
  10935. "InvalidRequestError"
  10936. ]
  10937. },
  10938. "message": {
  10939. "type": "string"
  10940. },
  10941. "kind": {
  10942. "anyOf": [
  10943. {
  10944. "type": "string"
  10945. },
  10946. {
  10947. "type": "null"
  10948. }
  10949. ]
  10950. },
  10951. "field": {
  10952. "anyOf": [
  10953. {
  10954. "type": "string"
  10955. },
  10956. {
  10957. "type": "null"
  10958. }
  10959. ]
  10960. }
  10961. },
  10962. "required": [
  10963. "_tag",
  10964. "message"
  10965. ],
  10966. "additionalProperties": false
  10967. },
  10968. "SessionActive": {
  10969. "type": "object",
  10970. "properties": {
  10971. "type": {
  10972. "type": "string",
  10973. "enum": [
  10974. "running"
  10975. ]
  10976. }
  10977. },
  10978. "required": [
  10979. "type"
  10980. ],
  10981. "additionalProperties": false
  10982. },
  10983. "SessionNotFoundError": {
  10984. "type": "object",
  10985. "properties": {
  10986. "_tag": {
  10987. "type": "string",
  10988. "enum": [
  10989. "SessionNotFoundError"
  10990. ]
  10991. },
  10992. "sessionID": {
  10993. "type": "string"
  10994. },
  10995. "message": {
  10996. "type": "string"
  10997. }
  10998. },
  10999. "required": [
  11000. "_tag",
  11001. "sessionID",
  11002. "message"
  11003. ],
  11004. "additionalProperties": false
  11005. },
  11006. "MessageNotFoundError": {
  11007. "type": "object",
  11008. "properties": {
  11009. "_tag": {
  11010. "type": "string",
  11011. "enum": [
  11012. "MessageNotFoundError"
  11013. ]
  11014. },
  11015. "sessionID": {
  11016. "type": "string"
  11017. },
  11018. "messageID": {
  11019. "type": "string"
  11020. },
  11021. "message": {
  11022. "type": "string"
  11023. }
  11024. },
  11025. "required": [
  11026. "_tag",
  11027. "sessionID",
  11028. "messageID",
  11029. "message"
  11030. ],
  11031. "additionalProperties": false
  11032. },
  11033. "Prompt.Mention": {
  11034. "type": "object",
  11035. "properties": {
  11036. "start": {
  11037. "type": "number"
  11038. },
  11039. "end": {
  11040. "type": "number"
  11041. },
  11042. "text": {
  11043. "type": "string"
  11044. }
  11045. },
  11046. "required": [
  11047. "start",
  11048. "end",
  11049. "text"
  11050. ],
  11051. "additionalProperties": false
  11052. },
  11053. "PromptInput.FileAttachment": {
  11054. "type": "object",
  11055. "properties": {
  11056. "uri": {
  11057. "type": "string"
  11058. },
  11059. "name": {
  11060. "type": "string"
  11061. },
  11062. "description": {
  11063. "type": "string"
  11064. },
  11065. "mention": {
  11066. "$ref": "#/components/schemas/Prompt.Mention"
  11067. }
  11068. },
  11069. "required": [
  11070. "uri"
  11071. ],
  11072. "additionalProperties": false
  11073. },
  11074. "Prompt.AgentAttachment": {
  11075. "type": "object",
  11076. "properties": {
  11077. "name": {
  11078. "type": "string"
  11079. },
  11080. "mention": {
  11081. "$ref": "#/components/schemas/Prompt.Mention"
  11082. }
  11083. },
  11084. "required": [
  11085. "name"
  11086. ],
  11087. "additionalProperties": false
  11088. },
  11089. "PromptInput": {
  11090. "type": "object",
  11091. "properties": {
  11092. "text": {
  11093. "type": "string"
  11094. },
  11095. "files": {
  11096. "type": "array",
  11097. "items": {
  11098. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  11099. }
  11100. },
  11101. "agents": {
  11102. "type": "array",
  11103. "items": {
  11104. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11105. }
  11106. }
  11107. },
  11108. "required": [
  11109. "text"
  11110. ],
  11111. "additionalProperties": false
  11112. },
  11113. "Prompt.Base64": {
  11114. "type": "string",
  11115. "allOf": [
  11116. {
  11117. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  11118. }
  11119. ]
  11120. },
  11121. "Prompt.FileSource": {
  11122. "anyOf": [
  11123. {
  11124. "type": "object",
  11125. "properties": {
  11126. "type": {
  11127. "type": "string",
  11128. "enum": [
  11129. "inline"
  11130. ]
  11131. }
  11132. },
  11133. "required": [
  11134. "type"
  11135. ],
  11136. "additionalProperties": false
  11137. },
  11138. {
  11139. "type": "object",
  11140. "properties": {
  11141. "type": {
  11142. "type": "string",
  11143. "enum": [
  11144. "uri"
  11145. ]
  11146. },
  11147. "uri": {
  11148. "type": "string"
  11149. }
  11150. },
  11151. "required": [
  11152. "type",
  11153. "uri"
  11154. ],
  11155. "additionalProperties": false
  11156. }
  11157. ]
  11158. },
  11159. "Prompt.FileAttachment": {
  11160. "type": "object",
  11161. "properties": {
  11162. "data": {
  11163. "$ref": "#/components/schemas/Prompt.Base64"
  11164. },
  11165. "mime": {
  11166. "type": "string"
  11167. },
  11168. "source": {
  11169. "$ref": "#/components/schemas/Prompt.FileSource"
  11170. },
  11171. "name": {
  11172. "type": "string"
  11173. },
  11174. "description": {
  11175. "type": "string"
  11176. },
  11177. "mention": {
  11178. "$ref": "#/components/schemas/Prompt.Mention"
  11179. }
  11180. },
  11181. "required": [
  11182. "data",
  11183. "mime",
  11184. "source"
  11185. ],
  11186. "additionalProperties": false
  11187. },
  11188. "Prompt": {
  11189. "type": "object",
  11190. "properties": {
  11191. "text": {
  11192. "type": "string"
  11193. },
  11194. "files": {
  11195. "type": "array",
  11196. "items": {
  11197. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11198. }
  11199. },
  11200. "agents": {
  11201. "type": "array",
  11202. "items": {
  11203. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11204. }
  11205. }
  11206. },
  11207. "required": [
  11208. "text"
  11209. ],
  11210. "additionalProperties": false
  11211. },
  11212. "SessionInput.Admitted": {
  11213. "type": "object",
  11214. "properties": {
  11215. "admittedSeq": {
  11216. "type": "integer",
  11217. "allOf": [
  11218. {
  11219. "minimum": 0
  11220. }
  11221. ]
  11222. },
  11223. "id": {
  11224. "type": "string",
  11225. "allOf": [
  11226. {
  11227. "pattern": "^msg_"
  11228. }
  11229. ]
  11230. },
  11231. "sessionID": {
  11232. "type": "string",
  11233. "allOf": [
  11234. {
  11235. "pattern": "^ses"
  11236. }
  11237. ]
  11238. },
  11239. "prompt": {
  11240. "$ref": "#/components/schemas/Prompt"
  11241. },
  11242. "delivery": {
  11243. "type": "string",
  11244. "enum": [
  11245. "steer",
  11246. "queue"
  11247. ]
  11248. },
  11249. "timeCreated": {
  11250. "type": "number"
  11251. },
  11252. "promotedSeq": {
  11253. "type": "integer",
  11254. "allOf": [
  11255. {
  11256. "minimum": 0
  11257. }
  11258. ]
  11259. }
  11260. },
  11261. "required": [
  11262. "admittedSeq",
  11263. "id",
  11264. "sessionID",
  11265. "prompt",
  11266. "delivery",
  11267. "timeCreated"
  11268. ],
  11269. "additionalProperties": false
  11270. },
  11271. "ConflictError": {
  11272. "type": "object",
  11273. "properties": {
  11274. "_tag": {
  11275. "type": "string",
  11276. "enum": [
  11277. "ConflictError"
  11278. ]
  11279. },
  11280. "message": {
  11281. "type": "string"
  11282. },
  11283. "resource": {
  11284. "anyOf": [
  11285. {
  11286. "type": "string"
  11287. },
  11288. {
  11289. "type": "null"
  11290. }
  11291. ]
  11292. }
  11293. },
  11294. "required": [
  11295. "_tag",
  11296. "message"
  11297. ],
  11298. "additionalProperties": false
  11299. },
  11300. "CommandNotFoundError": {
  11301. "type": "object",
  11302. "properties": {
  11303. "_tag": {
  11304. "type": "string",
  11305. "enum": [
  11306. "CommandNotFoundError"
  11307. ]
  11308. },
  11309. "command": {
  11310. "type": "string"
  11311. },
  11312. "message": {
  11313. "type": "string"
  11314. }
  11315. },
  11316. "required": [
  11317. "_tag",
  11318. "command",
  11319. "message"
  11320. ],
  11321. "additionalProperties": false
  11322. },
  11323. "CommandEvaluationError": {
  11324. "type": "object",
  11325. "properties": {
  11326. "_tag": {
  11327. "type": "string",
  11328. "enum": [
  11329. "CommandEvaluationError"
  11330. ]
  11331. },
  11332. "command": {
  11333. "type": "string"
  11334. },
  11335. "message": {
  11336. "type": "string"
  11337. }
  11338. },
  11339. "required": [
  11340. "_tag",
  11341. "command",
  11342. "message"
  11343. ],
  11344. "additionalProperties": false
  11345. },
  11346. "SkillNotFoundError": {
  11347. "type": "object",
  11348. "properties": {
  11349. "_tag": {
  11350. "type": "string",
  11351. "enum": [
  11352. "SkillNotFoundError"
  11353. ]
  11354. },
  11355. "skill": {
  11356. "type": "string"
  11357. },
  11358. "message": {
  11359. "type": "string"
  11360. }
  11361. },
  11362. "required": [
  11363. "_tag",
  11364. "skill",
  11365. "message"
  11366. ],
  11367. "additionalProperties": false
  11368. },
  11369. "SessionInput.Compaction": {
  11370. "type": "object",
  11371. "properties": {
  11372. "type": {
  11373. "type": "string",
  11374. "enum": [
  11375. "compaction"
  11376. ]
  11377. },
  11378. "admittedSeq": {
  11379. "type": "integer",
  11380. "allOf": [
  11381. {
  11382. "minimum": 0
  11383. }
  11384. ]
  11385. },
  11386. "id": {
  11387. "type": "string",
  11388. "allOf": [
  11389. {
  11390. "pattern": "^msg_"
  11391. }
  11392. ]
  11393. },
  11394. "sessionID": {
  11395. "type": "string",
  11396. "allOf": [
  11397. {
  11398. "pattern": "^ses"
  11399. }
  11400. ]
  11401. },
  11402. "timeCreated": {
  11403. "type": "number"
  11404. },
  11405. "handledSeq": {
  11406. "type": "integer",
  11407. "allOf": [
  11408. {
  11409. "minimum": 0
  11410. }
  11411. ]
  11412. }
  11413. },
  11414. "required": [
  11415. "type",
  11416. "admittedSeq",
  11417. "id",
  11418. "sessionID",
  11419. "timeCreated"
  11420. ],
  11421. "additionalProperties": false
  11422. },
  11423. "ServiceUnavailableError": {
  11424. "type": "object",
  11425. "properties": {
  11426. "_tag": {
  11427. "type": "string",
  11428. "enum": [
  11429. "ServiceUnavailableError"
  11430. ]
  11431. },
  11432. "message": {
  11433. "type": "string"
  11434. },
  11435. "service": {
  11436. "anyOf": [
  11437. {
  11438. "type": "string"
  11439. },
  11440. {
  11441. "type": "null"
  11442. }
  11443. ]
  11444. }
  11445. },
  11446. "required": [
  11447. "_tag",
  11448. "message"
  11449. ],
  11450. "additionalProperties": false
  11451. },
  11452. "SessionBusyError": {
  11453. "type": "object",
  11454. "properties": {
  11455. "_tag": {
  11456. "type": "string",
  11457. "enum": [
  11458. "SessionBusyError"
  11459. ]
  11460. },
  11461. "sessionID": {
  11462. "type": "string"
  11463. },
  11464. "message": {
  11465. "type": "string"
  11466. }
  11467. },
  11468. "required": [
  11469. "_tag",
  11470. "sessionID",
  11471. "message"
  11472. ],
  11473. "additionalProperties": false
  11474. },
  11475. "UnknownError": {
  11476. "type": "object",
  11477. "properties": {
  11478. "_tag": {
  11479. "type": "string",
  11480. "enum": [
  11481. "UnknownError"
  11482. ]
  11483. },
  11484. "message": {
  11485. "type": "string"
  11486. },
  11487. "ref": {
  11488. "anyOf": [
  11489. {
  11490. "type": "string"
  11491. },
  11492. {
  11493. "type": "null"
  11494. }
  11495. ]
  11496. }
  11497. },
  11498. "required": [
  11499. "_tag",
  11500. "message"
  11501. ],
  11502. "additionalProperties": false
  11503. },
  11504. "Session.Message.AgentSelected": {
  11505. "type": "object",
  11506. "properties": {
  11507. "id": {
  11508. "type": "string",
  11509. "allOf": [
  11510. {
  11511. "pattern": "^msg_"
  11512. }
  11513. ]
  11514. },
  11515. "metadata": {
  11516. "type": "object"
  11517. },
  11518. "time": {
  11519. "type": "object",
  11520. "properties": {
  11521. "created": {
  11522. "type": "number"
  11523. }
  11524. },
  11525. "required": [
  11526. "created"
  11527. ],
  11528. "additionalProperties": false
  11529. },
  11530. "type": {
  11531. "type": "string",
  11532. "enum": [
  11533. "agent-switched"
  11534. ]
  11535. },
  11536. "agent": {
  11537. "type": "string"
  11538. }
  11539. },
  11540. "required": [
  11541. "id",
  11542. "time",
  11543. "type",
  11544. "agent"
  11545. ],
  11546. "additionalProperties": false
  11547. },
  11548. "Session.Message.ModelSelected": {
  11549. "type": "object",
  11550. "properties": {
  11551. "id": {
  11552. "type": "string",
  11553. "allOf": [
  11554. {
  11555. "pattern": "^msg_"
  11556. }
  11557. ]
  11558. },
  11559. "metadata": {
  11560. "type": "object"
  11561. },
  11562. "time": {
  11563. "type": "object",
  11564. "properties": {
  11565. "created": {
  11566. "type": "number"
  11567. }
  11568. },
  11569. "required": [
  11570. "created"
  11571. ],
  11572. "additionalProperties": false
  11573. },
  11574. "type": {
  11575. "type": "string",
  11576. "enum": [
  11577. "model-switched"
  11578. ]
  11579. },
  11580. "model": {
  11581. "$ref": "#/components/schemas/Model.Ref"
  11582. },
  11583. "previous": {
  11584. "$ref": "#/components/schemas/Model.Ref"
  11585. }
  11586. },
  11587. "required": [
  11588. "id",
  11589. "time",
  11590. "type",
  11591. "model"
  11592. ],
  11593. "additionalProperties": false
  11594. },
  11595. "Session.Message.User": {
  11596. "type": "object",
  11597. "properties": {
  11598. "id": {
  11599. "type": "string",
  11600. "allOf": [
  11601. {
  11602. "pattern": "^msg_"
  11603. }
  11604. ]
  11605. },
  11606. "metadata": {
  11607. "type": "object"
  11608. },
  11609. "time": {
  11610. "type": "object",
  11611. "properties": {
  11612. "created": {
  11613. "type": "number"
  11614. }
  11615. },
  11616. "required": [
  11617. "created"
  11618. ],
  11619. "additionalProperties": false
  11620. },
  11621. "text": {
  11622. "type": "string"
  11623. },
  11624. "files": {
  11625. "type": "array",
  11626. "items": {
  11627. "$ref": "#/components/schemas/Prompt.FileAttachment"
  11628. }
  11629. },
  11630. "agents": {
  11631. "type": "array",
  11632. "items": {
  11633. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  11634. }
  11635. },
  11636. "type": {
  11637. "type": "string",
  11638. "enum": [
  11639. "user"
  11640. ]
  11641. }
  11642. },
  11643. "required": [
  11644. "id",
  11645. "time",
  11646. "text",
  11647. "type"
  11648. ],
  11649. "additionalProperties": false
  11650. },
  11651. "Session.Message.Synthetic": {
  11652. "type": "object",
  11653. "properties": {
  11654. "id": {
  11655. "type": "string",
  11656. "allOf": [
  11657. {
  11658. "pattern": "^msg_"
  11659. }
  11660. ]
  11661. },
  11662. "metadata": {
  11663. "type": "object"
  11664. },
  11665. "time": {
  11666. "type": "object",
  11667. "properties": {
  11668. "created": {
  11669. "type": "number"
  11670. }
  11671. },
  11672. "required": [
  11673. "created"
  11674. ],
  11675. "additionalProperties": false
  11676. },
  11677. "text": {
  11678. "type": "string"
  11679. },
  11680. "description": {
  11681. "type": "string"
  11682. },
  11683. "type": {
  11684. "type": "string",
  11685. "enum": [
  11686. "synthetic"
  11687. ]
  11688. }
  11689. },
  11690. "required": [
  11691. "id",
  11692. "time",
  11693. "text",
  11694. "type"
  11695. ],
  11696. "additionalProperties": false
  11697. },
  11698. "Session.Message.System": {
  11699. "type": "object",
  11700. "properties": {
  11701. "id": {
  11702. "type": "string",
  11703. "allOf": [
  11704. {
  11705. "pattern": "^msg_"
  11706. }
  11707. ]
  11708. },
  11709. "metadata": {
  11710. "type": "object"
  11711. },
  11712. "time": {
  11713. "type": "object",
  11714. "properties": {
  11715. "created": {
  11716. "type": "number"
  11717. }
  11718. },
  11719. "required": [
  11720. "created"
  11721. ],
  11722. "additionalProperties": false
  11723. },
  11724. "type": {
  11725. "type": "string",
  11726. "enum": [
  11727. "system"
  11728. ]
  11729. },
  11730. "text": {
  11731. "type": "string"
  11732. }
  11733. },
  11734. "required": [
  11735. "id",
  11736. "time",
  11737. "type",
  11738. "text"
  11739. ],
  11740. "additionalProperties": false
  11741. },
  11742. "Session.Message.Skill": {
  11743. "type": "object",
  11744. "properties": {
  11745. "id": {
  11746. "type": "string",
  11747. "allOf": [
  11748. {
  11749. "pattern": "^msg_"
  11750. }
  11751. ]
  11752. },
  11753. "metadata": {
  11754. "type": "object"
  11755. },
  11756. "time": {
  11757. "type": "object",
  11758. "properties": {
  11759. "created": {
  11760. "type": "number"
  11761. }
  11762. },
  11763. "required": [
  11764. "created"
  11765. ],
  11766. "additionalProperties": false
  11767. },
  11768. "type": {
  11769. "type": "string",
  11770. "enum": [
  11771. "skill"
  11772. ]
  11773. },
  11774. "skill": {
  11775. "type": "string"
  11776. },
  11777. "name": {
  11778. "type": "string"
  11779. },
  11780. "text": {
  11781. "type": "string"
  11782. }
  11783. },
  11784. "required": [
  11785. "id",
  11786. "time",
  11787. "type",
  11788. "skill",
  11789. "name",
  11790. "text"
  11791. ],
  11792. "additionalProperties": false
  11793. },
  11794. "Session.Message.Shell": {
  11795. "type": "object",
  11796. "properties": {
  11797. "id": {
  11798. "type": "string",
  11799. "allOf": [
  11800. {
  11801. "pattern": "^msg_"
  11802. }
  11803. ]
  11804. },
  11805. "metadata": {
  11806. "type": "object"
  11807. },
  11808. "time": {
  11809. "type": "object",
  11810. "properties": {
  11811. "created": {
  11812. "type": "number"
  11813. },
  11814. "completed": {
  11815. "type": "number"
  11816. }
  11817. },
  11818. "required": [
  11819. "created"
  11820. ],
  11821. "additionalProperties": false
  11822. },
  11823. "type": {
  11824. "type": "string",
  11825. "enum": [
  11826. "shell"
  11827. ]
  11828. },
  11829. "shellID": {
  11830. "type": "string",
  11831. "allOf": [
  11832. {
  11833. "pattern": "^sh_"
  11834. }
  11835. ]
  11836. },
  11837. "command": {
  11838. "type": "string"
  11839. },
  11840. "status": {
  11841. "type": "string",
  11842. "enum": [
  11843. "running",
  11844. "exited",
  11845. "timeout",
  11846. "killed"
  11847. ]
  11848. },
  11849. "exit": {
  11850. "anyOf": [
  11851. {
  11852. "anyOf": [
  11853. {
  11854. "type": "number"
  11855. },
  11856. {
  11857. "type": "string",
  11858. "enum": [
  11859. "NaN"
  11860. ]
  11861. },
  11862. {
  11863. "type": "string",
  11864. "enum": [
  11865. "Infinity"
  11866. ]
  11867. },
  11868. {
  11869. "type": "string",
  11870. "enum": [
  11871. "-Infinity"
  11872. ]
  11873. }
  11874. ]
  11875. },
  11876. {
  11877. "type": "string",
  11878. "enum": [
  11879. "Infinity",
  11880. "-Infinity",
  11881. "NaN"
  11882. ]
  11883. }
  11884. ]
  11885. },
  11886. "output": {
  11887. "type": "object",
  11888. "properties": {
  11889. "output": {
  11890. "type": "string"
  11891. },
  11892. "cursor": {
  11893. "type": "integer",
  11894. "allOf": [
  11895. {
  11896. "minimum": 0
  11897. }
  11898. ]
  11899. },
  11900. "size": {
  11901. "type": "integer",
  11902. "allOf": [
  11903. {
  11904. "minimum": 0
  11905. }
  11906. ]
  11907. },
  11908. "truncated": {
  11909. "type": "boolean"
  11910. }
  11911. },
  11912. "required": [
  11913. "output",
  11914. "cursor",
  11915. "size",
  11916. "truncated"
  11917. ],
  11918. "additionalProperties": false
  11919. }
  11920. },
  11921. "required": [
  11922. "id",
  11923. "time",
  11924. "type",
  11925. "shellID",
  11926. "command",
  11927. "status"
  11928. ],
  11929. "additionalProperties": false
  11930. },
  11931. "Session.Message.Assistant.Text": {
  11932. "type": "object",
  11933. "properties": {
  11934. "type": {
  11935. "type": "string",
  11936. "enum": [
  11937. "text"
  11938. ]
  11939. },
  11940. "text": {
  11941. "type": "string"
  11942. }
  11943. },
  11944. "required": [
  11945. "type",
  11946. "text"
  11947. ],
  11948. "additionalProperties": false
  11949. },
  11950. "Session.Message.ProviderState": {
  11951. "type": "object"
  11952. },
  11953. "Session.Message.Assistant.Reasoning": {
  11954. "type": "object",
  11955. "properties": {
  11956. "type": {
  11957. "type": "string",
  11958. "enum": [
  11959. "reasoning"
  11960. ]
  11961. },
  11962. "text": {
  11963. "type": "string"
  11964. },
  11965. "state": {
  11966. "$ref": "#/components/schemas/Session.Message.ProviderState"
  11967. },
  11968. "time": {
  11969. "type": "object",
  11970. "properties": {
  11971. "created": {
  11972. "type": "number"
  11973. },
  11974. "completed": {
  11975. "type": "number"
  11976. }
  11977. },
  11978. "required": [
  11979. "created"
  11980. ],
  11981. "additionalProperties": false
  11982. }
  11983. },
  11984. "required": [
  11985. "type",
  11986. "text"
  11987. ],
  11988. "additionalProperties": false
  11989. },
  11990. "Session.Message.ToolState.Streaming": {
  11991. "type": "object",
  11992. "properties": {
  11993. "status": {
  11994. "type": "string",
  11995. "enum": [
  11996. "streaming"
  11997. ]
  11998. },
  11999. "input": {
  12000. "type": "string"
  12001. }
  12002. },
  12003. "required": [
  12004. "status",
  12005. "input"
  12006. ],
  12007. "additionalProperties": false
  12008. },
  12009. "Tool.TextContent": {
  12010. "type": "object",
  12011. "properties": {
  12012. "type": {
  12013. "type": "string",
  12014. "enum": [
  12015. "text"
  12016. ]
  12017. },
  12018. "text": {
  12019. "type": "string"
  12020. }
  12021. },
  12022. "required": [
  12023. "type",
  12024. "text"
  12025. ],
  12026. "additionalProperties": false
  12027. },
  12028. "Tool.FileContent": {
  12029. "type": "object",
  12030. "properties": {
  12031. "type": {
  12032. "type": "string",
  12033. "enum": [
  12034. "file"
  12035. ]
  12036. },
  12037. "uri": {
  12038. "type": "string"
  12039. },
  12040. "mime": {
  12041. "type": "string"
  12042. },
  12043. "name": {
  12044. "type": "string"
  12045. }
  12046. },
  12047. "required": [
  12048. "type",
  12049. "uri",
  12050. "mime"
  12051. ],
  12052. "additionalProperties": false
  12053. },
  12054. "LLM.ToolContent": {
  12055. "anyOf": [
  12056. {
  12057. "$ref": "#/components/schemas/Tool.TextContent"
  12058. },
  12059. {
  12060. "$ref": "#/components/schemas/Tool.FileContent"
  12061. }
  12062. ]
  12063. },
  12064. "Session.Message.ToolState.Running": {
  12065. "type": "object",
  12066. "properties": {
  12067. "status": {
  12068. "type": "string",
  12069. "enum": [
  12070. "running"
  12071. ]
  12072. },
  12073. "input": {
  12074. "type": "object"
  12075. },
  12076. "structured": {
  12077. "type": "object"
  12078. },
  12079. "content": {
  12080. "type": "array",
  12081. "items": {
  12082. "$ref": "#/components/schemas/LLM.ToolContent"
  12083. }
  12084. }
  12085. },
  12086. "required": [
  12087. "status",
  12088. "input",
  12089. "structured",
  12090. "content"
  12091. ],
  12092. "additionalProperties": false
  12093. },
  12094. "Session.Message.ToolState.Completed": {
  12095. "type": "object",
  12096. "properties": {
  12097. "status": {
  12098. "type": "string",
  12099. "enum": [
  12100. "completed"
  12101. ]
  12102. },
  12103. "input": {
  12104. "type": "object"
  12105. },
  12106. "content": {
  12107. "type": "array",
  12108. "items": {
  12109. "$ref": "#/components/schemas/LLM.ToolContent"
  12110. }
  12111. },
  12112. "structured": {
  12113. "type": "object"
  12114. },
  12115. "result": {}
  12116. },
  12117. "required": [
  12118. "status",
  12119. "input",
  12120. "content",
  12121. "structured"
  12122. ],
  12123. "additionalProperties": false
  12124. },
  12125. "Session.StructuredError": {
  12126. "type": "object",
  12127. "properties": {
  12128. "type": {
  12129. "type": "string"
  12130. },
  12131. "message": {
  12132. "type": "string"
  12133. }
  12134. },
  12135. "required": [
  12136. "type",
  12137. "message"
  12138. ],
  12139. "additionalProperties": false
  12140. },
  12141. "Session.Message.ToolState.Error": {
  12142. "type": "object",
  12143. "properties": {
  12144. "status": {
  12145. "type": "string",
  12146. "enum": [
  12147. "error"
  12148. ]
  12149. },
  12150. "input": {
  12151. "type": "object"
  12152. },
  12153. "content": {
  12154. "type": "array",
  12155. "items": {
  12156. "$ref": "#/components/schemas/LLM.ToolContent"
  12157. }
  12158. },
  12159. "structured": {
  12160. "type": "object"
  12161. },
  12162. "error": {
  12163. "$ref": "#/components/schemas/Session.StructuredError"
  12164. },
  12165. "result": {}
  12166. },
  12167. "required": [
  12168. "status",
  12169. "input",
  12170. "content",
  12171. "structured",
  12172. "error"
  12173. ],
  12174. "additionalProperties": false
  12175. },
  12176. "Session.Message.Assistant.Tool": {
  12177. "type": "object",
  12178. "properties": {
  12179. "type": {
  12180. "type": "string",
  12181. "enum": [
  12182. "tool"
  12183. ]
  12184. },
  12185. "id": {
  12186. "type": "string"
  12187. },
  12188. "name": {
  12189. "type": "string"
  12190. },
  12191. "executed": {
  12192. "type": "boolean"
  12193. },
  12194. "providerState": {
  12195. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12196. },
  12197. "providerResultState": {
  12198. "$ref": "#/components/schemas/Session.Message.ProviderState"
  12199. },
  12200. "state": {
  12201. "anyOf": [
  12202. {
  12203. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  12204. },
  12205. {
  12206. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  12207. },
  12208. {
  12209. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  12210. },
  12211. {
  12212. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  12213. }
  12214. ]
  12215. },
  12216. "time": {
  12217. "type": "object",
  12218. "properties": {
  12219. "created": {
  12220. "type": "number"
  12221. },
  12222. "ran": {
  12223. "type": "number"
  12224. },
  12225. "completed": {
  12226. "type": "number"
  12227. }
  12228. },
  12229. "required": [
  12230. "created"
  12231. ],
  12232. "additionalProperties": false
  12233. }
  12234. },
  12235. "required": [
  12236. "type",
  12237. "id",
  12238. "name",
  12239. "state",
  12240. "time"
  12241. ],
  12242. "additionalProperties": false
  12243. },
  12244. "Session.Message.Assistant.Retry": {
  12245. "type": "object",
  12246. "properties": {
  12247. "attempt": {
  12248. "type": "integer",
  12249. "allOf": [
  12250. {
  12251. "exclusiveMinimum": 0
  12252. }
  12253. ]
  12254. },
  12255. "at": {
  12256. "type": "number"
  12257. },
  12258. "error": {
  12259. "$ref": "#/components/schemas/Session.StructuredError"
  12260. }
  12261. },
  12262. "required": [
  12263. "attempt",
  12264. "at",
  12265. "error"
  12266. ],
  12267. "additionalProperties": false
  12268. },
  12269. "Session.Message.Assistant": {
  12270. "type": "object",
  12271. "properties": {
  12272. "id": {
  12273. "type": "string",
  12274. "allOf": [
  12275. {
  12276. "pattern": "^msg_"
  12277. }
  12278. ]
  12279. },
  12280. "metadata": {
  12281. "type": "object"
  12282. },
  12283. "time": {
  12284. "type": "object",
  12285. "properties": {
  12286. "created": {
  12287. "type": "number"
  12288. },
  12289. "completed": {
  12290. "type": "number"
  12291. }
  12292. },
  12293. "required": [
  12294. "created"
  12295. ],
  12296. "additionalProperties": false
  12297. },
  12298. "type": {
  12299. "type": "string",
  12300. "enum": [
  12301. "assistant"
  12302. ]
  12303. },
  12304. "agent": {
  12305. "type": "string"
  12306. },
  12307. "model": {
  12308. "$ref": "#/components/schemas/Model.Ref"
  12309. },
  12310. "content": {
  12311. "type": "array",
  12312. "items": {
  12313. "anyOf": [
  12314. {
  12315. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  12316. },
  12317. {
  12318. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  12319. },
  12320. {
  12321. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  12322. }
  12323. ]
  12324. }
  12325. },
  12326. "snapshot": {
  12327. "type": "object",
  12328. "properties": {
  12329. "start": {
  12330. "type": "string"
  12331. },
  12332. "end": {
  12333. "type": "string"
  12334. },
  12335. "files": {
  12336. "type": "array",
  12337. "items": {
  12338. "type": "string"
  12339. }
  12340. }
  12341. },
  12342. "additionalProperties": false
  12343. },
  12344. "finish": {
  12345. "type": "string",
  12346. "enum": [
  12347. "stop",
  12348. "length",
  12349. "tool-calls",
  12350. "content-filter",
  12351. "error",
  12352. "unknown"
  12353. ]
  12354. },
  12355. "cost": {
  12356. "$ref": "#/components/schemas/Money.USD"
  12357. },
  12358. "tokens": {
  12359. "$ref": "#/components/schemas/TokenUsage.Info"
  12360. },
  12361. "error": {
  12362. "$ref": "#/components/schemas/Session.StructuredError"
  12363. },
  12364. "retry": {
  12365. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  12366. }
  12367. },
  12368. "required": [
  12369. "id",
  12370. "time",
  12371. "type",
  12372. "agent",
  12373. "model",
  12374. "content"
  12375. ],
  12376. "additionalProperties": false
  12377. },
  12378. "Session.Message.Compaction.Running": {
  12379. "type": "object",
  12380. "properties": {
  12381. "type": {
  12382. "type": "string",
  12383. "enum": [
  12384. "compaction"
  12385. ]
  12386. },
  12387. "id": {
  12388. "type": "string",
  12389. "allOf": [
  12390. {
  12391. "pattern": "^msg_"
  12392. }
  12393. ]
  12394. },
  12395. "metadata": {
  12396. "type": "object"
  12397. },
  12398. "time": {
  12399. "type": "object",
  12400. "properties": {
  12401. "created": {
  12402. "type": "number"
  12403. }
  12404. },
  12405. "required": [
  12406. "created"
  12407. ],
  12408. "additionalProperties": false
  12409. },
  12410. "status": {
  12411. "type": "string",
  12412. "enum": [
  12413. "running"
  12414. ]
  12415. },
  12416. "reason": {
  12417. "type": "string",
  12418. "enum": [
  12419. "auto",
  12420. "manual"
  12421. ]
  12422. },
  12423. "summary": {
  12424. "type": "string"
  12425. },
  12426. "recent": {
  12427. "type": "string"
  12428. }
  12429. },
  12430. "required": [
  12431. "type",
  12432. "id",
  12433. "time",
  12434. "status",
  12435. "reason",
  12436. "summary",
  12437. "recent"
  12438. ],
  12439. "additionalProperties": false
  12440. },
  12441. "Session.Message.Compaction.Completed": {
  12442. "type": "object",
  12443. "properties": {
  12444. "type": {
  12445. "type": "string",
  12446. "enum": [
  12447. "compaction"
  12448. ]
  12449. },
  12450. "id": {
  12451. "type": "string",
  12452. "allOf": [
  12453. {
  12454. "pattern": "^msg_"
  12455. }
  12456. ]
  12457. },
  12458. "metadata": {
  12459. "type": "object"
  12460. },
  12461. "time": {
  12462. "type": "object",
  12463. "properties": {
  12464. "created": {
  12465. "type": "number"
  12466. }
  12467. },
  12468. "required": [
  12469. "created"
  12470. ],
  12471. "additionalProperties": false
  12472. },
  12473. "status": {
  12474. "type": "string",
  12475. "enum": [
  12476. "completed"
  12477. ]
  12478. },
  12479. "reason": {
  12480. "type": "string",
  12481. "enum": [
  12482. "auto",
  12483. "manual"
  12484. ]
  12485. },
  12486. "summary": {
  12487. "type": "string"
  12488. },
  12489. "recent": {
  12490. "type": "string"
  12491. }
  12492. },
  12493. "required": [
  12494. "type",
  12495. "id",
  12496. "time",
  12497. "status",
  12498. "reason",
  12499. "summary",
  12500. "recent"
  12501. ],
  12502. "additionalProperties": false
  12503. },
  12504. "Session.Message.Compaction.Failed": {
  12505. "type": "object",
  12506. "properties": {
  12507. "type": {
  12508. "type": "string",
  12509. "enum": [
  12510. "compaction"
  12511. ]
  12512. },
  12513. "id": {
  12514. "type": "string",
  12515. "allOf": [
  12516. {
  12517. "pattern": "^msg_"
  12518. }
  12519. ]
  12520. },
  12521. "metadata": {
  12522. "type": "object"
  12523. },
  12524. "time": {
  12525. "type": "object",
  12526. "properties": {
  12527. "created": {
  12528. "type": "number"
  12529. }
  12530. },
  12531. "required": [
  12532. "created"
  12533. ],
  12534. "additionalProperties": false
  12535. },
  12536. "status": {
  12537. "type": "string",
  12538. "enum": [
  12539. "failed"
  12540. ]
  12541. },
  12542. "reason": {
  12543. "type": "string",
  12544. "enum": [
  12545. "auto",
  12546. "manual"
  12547. ]
  12548. },
  12549. "error": {
  12550. "$ref": "#/components/schemas/Session.StructuredError"
  12551. }
  12552. },
  12553. "required": [
  12554. "type",
  12555. "id",
  12556. "time",
  12557. "status",
  12558. "reason",
  12559. "error"
  12560. ],
  12561. "additionalProperties": false
  12562. },
  12563. "Session.Message.Compaction": {
  12564. "anyOf": [
  12565. {
  12566. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  12567. },
  12568. {
  12569. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  12570. },
  12571. {
  12572. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  12573. }
  12574. ]
  12575. },
  12576. "Session.Message.Info": {
  12577. "anyOf": [
  12578. {
  12579. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  12580. },
  12581. {
  12582. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  12583. },
  12584. {
  12585. "$ref": "#/components/schemas/Session.Message.User"
  12586. },
  12587. {
  12588. "$ref": "#/components/schemas/Session.Message.Synthetic"
  12589. },
  12590. {
  12591. "$ref": "#/components/schemas/Session.Message.System"
  12592. },
  12593. {
  12594. "$ref": "#/components/schemas/Session.Message.Skill"
  12595. },
  12596. {
  12597. "$ref": "#/components/schemas/Session.Message.Shell"
  12598. },
  12599. {
  12600. "$ref": "#/components/schemas/Session.Message.Assistant"
  12601. },
  12602. {
  12603. "$ref": "#/components/schemas/Session.Message.Compaction"
  12604. }
  12605. ]
  12606. },
  12607. "InstructionEntry.Key": {
  12608. "type": "string",
  12609. "allOf": [
  12610. {
  12611. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  12612. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  12613. }
  12614. ]
  12615. },
  12616. "InstructionEntry.Info": {
  12617. "type": "object",
  12618. "properties": {
  12619. "key": {
  12620. "$ref": "#/components/schemas/InstructionEntry.Key"
  12621. },
  12622. "value": {}
  12623. },
  12624. "required": [
  12625. "key",
  12626. "value"
  12627. ],
  12628. "additionalProperties": false
  12629. },
  12630. "session.agent.selected": {
  12631. "type": "object",
  12632. "properties": {
  12633. "id": {
  12634. "type": "string",
  12635. "allOf": [
  12636. {
  12637. "pattern": "^evt_"
  12638. }
  12639. ]
  12640. },
  12641. "created": {
  12642. "type": "number"
  12643. },
  12644. "metadata": {
  12645. "type": "object"
  12646. },
  12647. "type": {
  12648. "type": "string",
  12649. "enum": [
  12650. "session.agent.selected"
  12651. ]
  12652. },
  12653. "durable": {
  12654. "type": "object",
  12655. "properties": {
  12656. "aggregateID": {
  12657. "type": "string"
  12658. },
  12659. "seq": {
  12660. "type": "integer",
  12661. "allOf": [
  12662. {
  12663. "minimum": 0
  12664. }
  12665. ]
  12666. },
  12667. "version": {
  12668. "type": "number",
  12669. "enum": [
  12670. 1
  12671. ]
  12672. }
  12673. },
  12674. "required": [
  12675. "aggregateID",
  12676. "seq",
  12677. "version"
  12678. ],
  12679. "additionalProperties": false
  12680. },
  12681. "location": {
  12682. "$ref": "#/components/schemas/Location.Ref"
  12683. },
  12684. "data": {
  12685. "type": "object",
  12686. "properties": {
  12687. "sessionID": {
  12688. "type": "string",
  12689. "allOf": [
  12690. {
  12691. "pattern": "^ses"
  12692. }
  12693. ]
  12694. },
  12695. "agent": {
  12696. "type": "string"
  12697. }
  12698. },
  12699. "required": [
  12700. "sessionID",
  12701. "agent"
  12702. ],
  12703. "additionalProperties": false
  12704. }
  12705. },
  12706. "required": [
  12707. "id",
  12708. "created",
  12709. "type",
  12710. "durable",
  12711. "data"
  12712. ],
  12713. "additionalProperties": false
  12714. },
  12715. "session.model.selected": {
  12716. "type": "object",
  12717. "properties": {
  12718. "id": {
  12719. "type": "string",
  12720. "allOf": [
  12721. {
  12722. "pattern": "^evt_"
  12723. }
  12724. ]
  12725. },
  12726. "created": {
  12727. "type": "number"
  12728. },
  12729. "metadata": {
  12730. "type": "object"
  12731. },
  12732. "type": {
  12733. "type": "string",
  12734. "enum": [
  12735. "session.model.selected"
  12736. ]
  12737. },
  12738. "durable": {
  12739. "type": "object",
  12740. "properties": {
  12741. "aggregateID": {
  12742. "type": "string"
  12743. },
  12744. "seq": {
  12745. "type": "integer",
  12746. "allOf": [
  12747. {
  12748. "minimum": 0
  12749. }
  12750. ]
  12751. },
  12752. "version": {
  12753. "type": "number",
  12754. "enum": [
  12755. 1
  12756. ]
  12757. }
  12758. },
  12759. "required": [
  12760. "aggregateID",
  12761. "seq",
  12762. "version"
  12763. ],
  12764. "additionalProperties": false
  12765. },
  12766. "location": {
  12767. "$ref": "#/components/schemas/Location.Ref"
  12768. },
  12769. "data": {
  12770. "type": "object",
  12771. "properties": {
  12772. "sessionID": {
  12773. "type": "string",
  12774. "allOf": [
  12775. {
  12776. "pattern": "^ses"
  12777. }
  12778. ]
  12779. },
  12780. "model": {
  12781. "$ref": "#/components/schemas/Model.Ref"
  12782. }
  12783. },
  12784. "required": [
  12785. "sessionID",
  12786. "model"
  12787. ],
  12788. "additionalProperties": false
  12789. }
  12790. },
  12791. "required": [
  12792. "id",
  12793. "created",
  12794. "type",
  12795. "durable",
  12796. "data"
  12797. ],
  12798. "additionalProperties": false
  12799. },
  12800. "session.moved": {
  12801. "type": "object",
  12802. "properties": {
  12803. "id": {
  12804. "type": "string",
  12805. "allOf": [
  12806. {
  12807. "pattern": "^evt_"
  12808. }
  12809. ]
  12810. },
  12811. "created": {
  12812. "type": "number"
  12813. },
  12814. "metadata": {
  12815. "type": "object"
  12816. },
  12817. "type": {
  12818. "type": "string",
  12819. "enum": [
  12820. "session.moved"
  12821. ]
  12822. },
  12823. "durable": {
  12824. "type": "object",
  12825. "properties": {
  12826. "aggregateID": {
  12827. "type": "string"
  12828. },
  12829. "seq": {
  12830. "type": "integer",
  12831. "allOf": [
  12832. {
  12833. "minimum": 0
  12834. }
  12835. ]
  12836. },
  12837. "version": {
  12838. "type": "number",
  12839. "enum": [
  12840. 1
  12841. ]
  12842. }
  12843. },
  12844. "required": [
  12845. "aggregateID",
  12846. "seq",
  12847. "version"
  12848. ],
  12849. "additionalProperties": false
  12850. },
  12851. "location": {
  12852. "$ref": "#/components/schemas/Location.Ref"
  12853. },
  12854. "data": {
  12855. "type": "object",
  12856. "properties": {
  12857. "sessionID": {
  12858. "type": "string",
  12859. "allOf": [
  12860. {
  12861. "pattern": "^ses"
  12862. }
  12863. ]
  12864. },
  12865. "location": {
  12866. "$ref": "#/components/schemas/Location.Ref"
  12867. },
  12868. "subpath": {
  12869. "type": "string"
  12870. }
  12871. },
  12872. "required": [
  12873. "sessionID",
  12874. "location"
  12875. ],
  12876. "additionalProperties": false
  12877. }
  12878. },
  12879. "required": [
  12880. "id",
  12881. "created",
  12882. "type",
  12883. "durable",
  12884. "data"
  12885. ],
  12886. "additionalProperties": false
  12887. },
  12888. "session.renamed": {
  12889. "type": "object",
  12890. "properties": {
  12891. "id": {
  12892. "type": "string",
  12893. "allOf": [
  12894. {
  12895. "pattern": "^evt_"
  12896. }
  12897. ]
  12898. },
  12899. "created": {
  12900. "type": "number"
  12901. },
  12902. "metadata": {
  12903. "type": "object"
  12904. },
  12905. "type": {
  12906. "type": "string",
  12907. "enum": [
  12908. "session.renamed"
  12909. ]
  12910. },
  12911. "durable": {
  12912. "type": "object",
  12913. "properties": {
  12914. "aggregateID": {
  12915. "type": "string"
  12916. },
  12917. "seq": {
  12918. "type": "integer",
  12919. "allOf": [
  12920. {
  12921. "minimum": 0
  12922. }
  12923. ]
  12924. },
  12925. "version": {
  12926. "type": "number",
  12927. "enum": [
  12928. 1
  12929. ]
  12930. }
  12931. },
  12932. "required": [
  12933. "aggregateID",
  12934. "seq",
  12935. "version"
  12936. ],
  12937. "additionalProperties": false
  12938. },
  12939. "location": {
  12940. "$ref": "#/components/schemas/Location.Ref"
  12941. },
  12942. "data": {
  12943. "type": "object",
  12944. "properties": {
  12945. "sessionID": {
  12946. "type": "string",
  12947. "allOf": [
  12948. {
  12949. "pattern": "^ses"
  12950. }
  12951. ]
  12952. },
  12953. "title": {
  12954. "type": "string"
  12955. }
  12956. },
  12957. "required": [
  12958. "sessionID",
  12959. "title"
  12960. ],
  12961. "additionalProperties": false
  12962. }
  12963. },
  12964. "required": [
  12965. "id",
  12966. "created",
  12967. "type",
  12968. "durable",
  12969. "data"
  12970. ],
  12971. "additionalProperties": false
  12972. },
  12973. "session.deleted": {
  12974. "type": "object",
  12975. "properties": {
  12976. "id": {
  12977. "type": "string",
  12978. "allOf": [
  12979. {
  12980. "pattern": "^evt_"
  12981. }
  12982. ]
  12983. },
  12984. "created": {
  12985. "type": "number"
  12986. },
  12987. "metadata": {
  12988. "type": "object"
  12989. },
  12990. "type": {
  12991. "type": "string",
  12992. "enum": [
  12993. "session.deleted"
  12994. ]
  12995. },
  12996. "durable": {
  12997. "type": "object",
  12998. "properties": {
  12999. "aggregateID": {
  13000. "type": "string"
  13001. },
  13002. "seq": {
  13003. "type": "integer",
  13004. "allOf": [
  13005. {
  13006. "minimum": 0
  13007. }
  13008. ]
  13009. },
  13010. "version": {
  13011. "type": "number",
  13012. "enum": [
  13013. 2
  13014. ]
  13015. }
  13016. },
  13017. "required": [
  13018. "aggregateID",
  13019. "seq",
  13020. "version"
  13021. ],
  13022. "additionalProperties": false
  13023. },
  13024. "location": {
  13025. "$ref": "#/components/schemas/Location.Ref"
  13026. },
  13027. "data": {
  13028. "type": "object",
  13029. "properties": {
  13030. "sessionID": {
  13031. "type": "string",
  13032. "allOf": [
  13033. {
  13034. "pattern": "^ses"
  13035. }
  13036. ]
  13037. }
  13038. },
  13039. "required": [
  13040. "sessionID"
  13041. ],
  13042. "additionalProperties": false
  13043. }
  13044. },
  13045. "required": [
  13046. "id",
  13047. "created",
  13048. "type",
  13049. "durable",
  13050. "data"
  13051. ],
  13052. "additionalProperties": false
  13053. },
  13054. "session.forked": {
  13055. "type": "object",
  13056. "properties": {
  13057. "id": {
  13058. "type": "string",
  13059. "allOf": [
  13060. {
  13061. "pattern": "^evt_"
  13062. }
  13063. ]
  13064. },
  13065. "created": {
  13066. "type": "number"
  13067. },
  13068. "metadata": {
  13069. "type": "object"
  13070. },
  13071. "type": {
  13072. "type": "string",
  13073. "enum": [
  13074. "session.forked"
  13075. ]
  13076. },
  13077. "durable": {
  13078. "type": "object",
  13079. "properties": {
  13080. "aggregateID": {
  13081. "type": "string"
  13082. },
  13083. "seq": {
  13084. "type": "integer",
  13085. "allOf": [
  13086. {
  13087. "minimum": 0
  13088. }
  13089. ]
  13090. },
  13091. "version": {
  13092. "type": "number",
  13093. "enum": [
  13094. 1
  13095. ]
  13096. }
  13097. },
  13098. "required": [
  13099. "aggregateID",
  13100. "seq",
  13101. "version"
  13102. ],
  13103. "additionalProperties": false
  13104. },
  13105. "location": {
  13106. "$ref": "#/components/schemas/Location.Ref"
  13107. },
  13108. "data": {
  13109. "type": "object",
  13110. "properties": {
  13111. "sessionID": {
  13112. "type": "string",
  13113. "allOf": [
  13114. {
  13115. "pattern": "^ses"
  13116. }
  13117. ]
  13118. },
  13119. "parentID": {
  13120. "type": "string",
  13121. "allOf": [
  13122. {
  13123. "pattern": "^ses"
  13124. }
  13125. ]
  13126. },
  13127. "from": {
  13128. "type": "string",
  13129. "allOf": [
  13130. {
  13131. "pattern": "^msg_"
  13132. }
  13133. ]
  13134. }
  13135. },
  13136. "required": [
  13137. "sessionID",
  13138. "parentID"
  13139. ],
  13140. "additionalProperties": false
  13141. }
  13142. },
  13143. "required": [
  13144. "id",
  13145. "created",
  13146. "type",
  13147. "durable",
  13148. "data"
  13149. ],
  13150. "additionalProperties": false
  13151. },
  13152. "session.prompt.promoted": {
  13153. "type": "object",
  13154. "properties": {
  13155. "id": {
  13156. "type": "string",
  13157. "allOf": [
  13158. {
  13159. "pattern": "^evt_"
  13160. }
  13161. ]
  13162. },
  13163. "created": {
  13164. "type": "number"
  13165. },
  13166. "metadata": {
  13167. "type": "object"
  13168. },
  13169. "type": {
  13170. "type": "string",
  13171. "enum": [
  13172. "session.prompt.promoted"
  13173. ]
  13174. },
  13175. "durable": {
  13176. "type": "object",
  13177. "properties": {
  13178. "aggregateID": {
  13179. "type": "string"
  13180. },
  13181. "seq": {
  13182. "type": "integer",
  13183. "allOf": [
  13184. {
  13185. "minimum": 0
  13186. }
  13187. ]
  13188. },
  13189. "version": {
  13190. "type": "number",
  13191. "enum": [
  13192. 1
  13193. ]
  13194. }
  13195. },
  13196. "required": [
  13197. "aggregateID",
  13198. "seq",
  13199. "version"
  13200. ],
  13201. "additionalProperties": false
  13202. },
  13203. "location": {
  13204. "$ref": "#/components/schemas/Location.Ref"
  13205. },
  13206. "data": {
  13207. "type": "object",
  13208. "properties": {
  13209. "sessionID": {
  13210. "type": "string",
  13211. "allOf": [
  13212. {
  13213. "pattern": "^ses"
  13214. }
  13215. ]
  13216. },
  13217. "inputID": {
  13218. "type": "string",
  13219. "allOf": [
  13220. {
  13221. "pattern": "^msg_"
  13222. }
  13223. ]
  13224. }
  13225. },
  13226. "required": [
  13227. "sessionID",
  13228. "inputID"
  13229. ],
  13230. "additionalProperties": false
  13231. }
  13232. },
  13233. "required": [
  13234. "id",
  13235. "created",
  13236. "type",
  13237. "durable",
  13238. "data"
  13239. ],
  13240. "additionalProperties": false
  13241. },
  13242. "session.prompt.admitted": {
  13243. "type": "object",
  13244. "properties": {
  13245. "id": {
  13246. "type": "string",
  13247. "allOf": [
  13248. {
  13249. "pattern": "^evt_"
  13250. }
  13251. ]
  13252. },
  13253. "created": {
  13254. "type": "number"
  13255. },
  13256. "metadata": {
  13257. "type": "object"
  13258. },
  13259. "type": {
  13260. "type": "string",
  13261. "enum": [
  13262. "session.prompt.admitted"
  13263. ]
  13264. },
  13265. "durable": {
  13266. "type": "object",
  13267. "properties": {
  13268. "aggregateID": {
  13269. "type": "string"
  13270. },
  13271. "seq": {
  13272. "type": "integer",
  13273. "allOf": [
  13274. {
  13275. "minimum": 0
  13276. }
  13277. ]
  13278. },
  13279. "version": {
  13280. "type": "number",
  13281. "enum": [
  13282. 1
  13283. ]
  13284. }
  13285. },
  13286. "required": [
  13287. "aggregateID",
  13288. "seq",
  13289. "version"
  13290. ],
  13291. "additionalProperties": false
  13292. },
  13293. "location": {
  13294. "$ref": "#/components/schemas/Location.Ref"
  13295. },
  13296. "data": {
  13297. "type": "object",
  13298. "properties": {
  13299. "sessionID": {
  13300. "type": "string",
  13301. "allOf": [
  13302. {
  13303. "pattern": "^ses"
  13304. }
  13305. ]
  13306. },
  13307. "inputID": {
  13308. "type": "string",
  13309. "allOf": [
  13310. {
  13311. "pattern": "^msg_"
  13312. }
  13313. ]
  13314. },
  13315. "prompt": {
  13316. "$ref": "#/components/schemas/Prompt"
  13317. },
  13318. "delivery": {
  13319. "type": "string",
  13320. "enum": [
  13321. "steer",
  13322. "queue"
  13323. ]
  13324. }
  13325. },
  13326. "required": [
  13327. "sessionID",
  13328. "inputID",
  13329. "prompt",
  13330. "delivery"
  13331. ],
  13332. "additionalProperties": false
  13333. }
  13334. },
  13335. "required": [
  13336. "id",
  13337. "created",
  13338. "type",
  13339. "durable",
  13340. "data"
  13341. ],
  13342. "additionalProperties": false
  13343. },
  13344. "session.execution.started": {
  13345. "type": "object",
  13346. "properties": {
  13347. "id": {
  13348. "type": "string",
  13349. "allOf": [
  13350. {
  13351. "pattern": "^evt_"
  13352. }
  13353. ]
  13354. },
  13355. "created": {
  13356. "type": "number"
  13357. },
  13358. "metadata": {
  13359. "type": "object"
  13360. },
  13361. "type": {
  13362. "type": "string",
  13363. "enum": [
  13364. "session.execution.started"
  13365. ]
  13366. },
  13367. "durable": {
  13368. "type": "object",
  13369. "properties": {
  13370. "aggregateID": {
  13371. "type": "string"
  13372. },
  13373. "seq": {
  13374. "type": "integer",
  13375. "allOf": [
  13376. {
  13377. "minimum": 0
  13378. }
  13379. ]
  13380. },
  13381. "version": {
  13382. "type": "number",
  13383. "enum": [
  13384. 1
  13385. ]
  13386. }
  13387. },
  13388. "required": [
  13389. "aggregateID",
  13390. "seq",
  13391. "version"
  13392. ],
  13393. "additionalProperties": false
  13394. },
  13395. "location": {
  13396. "$ref": "#/components/schemas/Location.Ref"
  13397. },
  13398. "data": {
  13399. "type": "object",
  13400. "properties": {
  13401. "sessionID": {
  13402. "type": "string",
  13403. "allOf": [
  13404. {
  13405. "pattern": "^ses"
  13406. }
  13407. ]
  13408. }
  13409. },
  13410. "required": [
  13411. "sessionID"
  13412. ],
  13413. "additionalProperties": false
  13414. }
  13415. },
  13416. "required": [
  13417. "id",
  13418. "created",
  13419. "type",
  13420. "durable",
  13421. "data"
  13422. ],
  13423. "additionalProperties": false
  13424. },
  13425. "session.execution.succeeded": {
  13426. "type": "object",
  13427. "properties": {
  13428. "id": {
  13429. "type": "string",
  13430. "allOf": [
  13431. {
  13432. "pattern": "^evt_"
  13433. }
  13434. ]
  13435. },
  13436. "created": {
  13437. "type": "number"
  13438. },
  13439. "metadata": {
  13440. "type": "object"
  13441. },
  13442. "type": {
  13443. "type": "string",
  13444. "enum": [
  13445. "session.execution.succeeded"
  13446. ]
  13447. },
  13448. "durable": {
  13449. "type": "object",
  13450. "properties": {
  13451. "aggregateID": {
  13452. "type": "string"
  13453. },
  13454. "seq": {
  13455. "type": "integer",
  13456. "allOf": [
  13457. {
  13458. "minimum": 0
  13459. }
  13460. ]
  13461. },
  13462. "version": {
  13463. "type": "number",
  13464. "enum": [
  13465. 1
  13466. ]
  13467. }
  13468. },
  13469. "required": [
  13470. "aggregateID",
  13471. "seq",
  13472. "version"
  13473. ],
  13474. "additionalProperties": false
  13475. },
  13476. "location": {
  13477. "$ref": "#/components/schemas/Location.Ref"
  13478. },
  13479. "data": {
  13480. "type": "object",
  13481. "properties": {
  13482. "sessionID": {
  13483. "type": "string",
  13484. "allOf": [
  13485. {
  13486. "pattern": "^ses"
  13487. }
  13488. ]
  13489. }
  13490. },
  13491. "required": [
  13492. "sessionID"
  13493. ],
  13494. "additionalProperties": false
  13495. }
  13496. },
  13497. "required": [
  13498. "id",
  13499. "created",
  13500. "type",
  13501. "durable",
  13502. "data"
  13503. ],
  13504. "additionalProperties": false
  13505. },
  13506. "session.execution.failed": {
  13507. "type": "object",
  13508. "properties": {
  13509. "id": {
  13510. "type": "string",
  13511. "allOf": [
  13512. {
  13513. "pattern": "^evt_"
  13514. }
  13515. ]
  13516. },
  13517. "created": {
  13518. "type": "number"
  13519. },
  13520. "metadata": {
  13521. "type": "object"
  13522. },
  13523. "type": {
  13524. "type": "string",
  13525. "enum": [
  13526. "session.execution.failed"
  13527. ]
  13528. },
  13529. "durable": {
  13530. "type": "object",
  13531. "properties": {
  13532. "aggregateID": {
  13533. "type": "string"
  13534. },
  13535. "seq": {
  13536. "type": "integer",
  13537. "allOf": [
  13538. {
  13539. "minimum": 0
  13540. }
  13541. ]
  13542. },
  13543. "version": {
  13544. "type": "number",
  13545. "enum": [
  13546. 1
  13547. ]
  13548. }
  13549. },
  13550. "required": [
  13551. "aggregateID",
  13552. "seq",
  13553. "version"
  13554. ],
  13555. "additionalProperties": false
  13556. },
  13557. "location": {
  13558. "$ref": "#/components/schemas/Location.Ref"
  13559. },
  13560. "data": {
  13561. "type": "object",
  13562. "properties": {
  13563. "sessionID": {
  13564. "type": "string",
  13565. "allOf": [
  13566. {
  13567. "pattern": "^ses"
  13568. }
  13569. ]
  13570. },
  13571. "error": {
  13572. "$ref": "#/components/schemas/Session.StructuredError"
  13573. }
  13574. },
  13575. "required": [
  13576. "sessionID",
  13577. "error"
  13578. ],
  13579. "additionalProperties": false
  13580. }
  13581. },
  13582. "required": [
  13583. "id",
  13584. "created",
  13585. "type",
  13586. "durable",
  13587. "data"
  13588. ],
  13589. "additionalProperties": false
  13590. },
  13591. "session.execution.interrupted": {
  13592. "type": "object",
  13593. "properties": {
  13594. "id": {
  13595. "type": "string",
  13596. "allOf": [
  13597. {
  13598. "pattern": "^evt_"
  13599. }
  13600. ]
  13601. },
  13602. "created": {
  13603. "type": "number"
  13604. },
  13605. "metadata": {
  13606. "type": "object"
  13607. },
  13608. "type": {
  13609. "type": "string",
  13610. "enum": [
  13611. "session.execution.interrupted"
  13612. ]
  13613. },
  13614. "durable": {
  13615. "type": "object",
  13616. "properties": {
  13617. "aggregateID": {
  13618. "type": "string"
  13619. },
  13620. "seq": {
  13621. "type": "integer",
  13622. "allOf": [
  13623. {
  13624. "minimum": 0
  13625. }
  13626. ]
  13627. },
  13628. "version": {
  13629. "type": "number",
  13630. "enum": [
  13631. 1
  13632. ]
  13633. }
  13634. },
  13635. "required": [
  13636. "aggregateID",
  13637. "seq",
  13638. "version"
  13639. ],
  13640. "additionalProperties": false
  13641. },
  13642. "location": {
  13643. "$ref": "#/components/schemas/Location.Ref"
  13644. },
  13645. "data": {
  13646. "type": "object",
  13647. "properties": {
  13648. "sessionID": {
  13649. "type": "string",
  13650. "allOf": [
  13651. {
  13652. "pattern": "^ses"
  13653. }
  13654. ]
  13655. },
  13656. "reason": {
  13657. "type": "string",
  13658. "enum": [
  13659. "user",
  13660. "shutdown",
  13661. "superseded"
  13662. ]
  13663. }
  13664. },
  13665. "required": [
  13666. "sessionID",
  13667. "reason"
  13668. ],
  13669. "additionalProperties": false
  13670. }
  13671. },
  13672. "required": [
  13673. "id",
  13674. "created",
  13675. "type",
  13676. "durable",
  13677. "data"
  13678. ],
  13679. "additionalProperties": false
  13680. },
  13681. "session.instructions.updated": {
  13682. "type": "object",
  13683. "properties": {
  13684. "id": {
  13685. "type": "string",
  13686. "allOf": [
  13687. {
  13688. "pattern": "^evt_"
  13689. }
  13690. ]
  13691. },
  13692. "created": {
  13693. "type": "number"
  13694. },
  13695. "metadata": {
  13696. "type": "object"
  13697. },
  13698. "type": {
  13699. "type": "string",
  13700. "enum": [
  13701. "session.instructions.updated"
  13702. ]
  13703. },
  13704. "durable": {
  13705. "type": "object",
  13706. "properties": {
  13707. "aggregateID": {
  13708. "type": "string"
  13709. },
  13710. "seq": {
  13711. "type": "integer",
  13712. "allOf": [
  13713. {
  13714. "minimum": 0
  13715. }
  13716. ]
  13717. },
  13718. "version": {
  13719. "type": "number",
  13720. "enum": [
  13721. 1
  13722. ]
  13723. }
  13724. },
  13725. "required": [
  13726. "aggregateID",
  13727. "seq",
  13728. "version"
  13729. ],
  13730. "additionalProperties": false
  13731. },
  13732. "location": {
  13733. "$ref": "#/components/schemas/Location.Ref"
  13734. },
  13735. "data": {
  13736. "type": "object",
  13737. "properties": {
  13738. "sessionID": {
  13739. "type": "string",
  13740. "allOf": [
  13741. {
  13742. "pattern": "^ses"
  13743. }
  13744. ]
  13745. },
  13746. "text": {
  13747. "type": "string"
  13748. }
  13749. },
  13750. "required": [
  13751. "sessionID",
  13752. "text"
  13753. ],
  13754. "additionalProperties": false
  13755. }
  13756. },
  13757. "required": [
  13758. "id",
  13759. "created",
  13760. "type",
  13761. "durable",
  13762. "data"
  13763. ],
  13764. "additionalProperties": false
  13765. },
  13766. "session.synthetic": {
  13767. "type": "object",
  13768. "properties": {
  13769. "id": {
  13770. "type": "string",
  13771. "allOf": [
  13772. {
  13773. "pattern": "^evt_"
  13774. }
  13775. ]
  13776. },
  13777. "created": {
  13778. "type": "number"
  13779. },
  13780. "metadata": {
  13781. "type": "object"
  13782. },
  13783. "type": {
  13784. "type": "string",
  13785. "enum": [
  13786. "session.synthetic"
  13787. ]
  13788. },
  13789. "durable": {
  13790. "type": "object",
  13791. "properties": {
  13792. "aggregateID": {
  13793. "type": "string"
  13794. },
  13795. "seq": {
  13796. "type": "integer",
  13797. "allOf": [
  13798. {
  13799. "minimum": 0
  13800. }
  13801. ]
  13802. },
  13803. "version": {
  13804. "type": "number",
  13805. "enum": [
  13806. 1
  13807. ]
  13808. }
  13809. },
  13810. "required": [
  13811. "aggregateID",
  13812. "seq",
  13813. "version"
  13814. ],
  13815. "additionalProperties": false
  13816. },
  13817. "location": {
  13818. "$ref": "#/components/schemas/Location.Ref"
  13819. },
  13820. "data": {
  13821. "type": "object",
  13822. "properties": {
  13823. "sessionID": {
  13824. "type": "string",
  13825. "allOf": [
  13826. {
  13827. "pattern": "^ses"
  13828. }
  13829. ]
  13830. },
  13831. "text": {
  13832. "type": "string"
  13833. },
  13834. "description": {
  13835. "type": "string"
  13836. },
  13837. "metadata": {
  13838. "type": "object"
  13839. }
  13840. },
  13841. "required": [
  13842. "sessionID",
  13843. "text"
  13844. ],
  13845. "additionalProperties": false
  13846. }
  13847. },
  13848. "required": [
  13849. "id",
  13850. "created",
  13851. "type",
  13852. "durable",
  13853. "data"
  13854. ],
  13855. "additionalProperties": false
  13856. },
  13857. "session.skill.activated": {
  13858. "type": "object",
  13859. "properties": {
  13860. "id": {
  13861. "type": "string",
  13862. "allOf": [
  13863. {
  13864. "pattern": "^evt_"
  13865. }
  13866. ]
  13867. },
  13868. "created": {
  13869. "type": "number"
  13870. },
  13871. "metadata": {
  13872. "type": "object"
  13873. },
  13874. "type": {
  13875. "type": "string",
  13876. "enum": [
  13877. "session.skill.activated"
  13878. ]
  13879. },
  13880. "durable": {
  13881. "type": "object",
  13882. "properties": {
  13883. "aggregateID": {
  13884. "type": "string"
  13885. },
  13886. "seq": {
  13887. "type": "integer",
  13888. "allOf": [
  13889. {
  13890. "minimum": 0
  13891. }
  13892. ]
  13893. },
  13894. "version": {
  13895. "type": "number",
  13896. "enum": [
  13897. 1
  13898. ]
  13899. }
  13900. },
  13901. "required": [
  13902. "aggregateID",
  13903. "seq",
  13904. "version"
  13905. ],
  13906. "additionalProperties": false
  13907. },
  13908. "location": {
  13909. "$ref": "#/components/schemas/Location.Ref"
  13910. },
  13911. "data": {
  13912. "type": "object",
  13913. "properties": {
  13914. "sessionID": {
  13915. "type": "string",
  13916. "allOf": [
  13917. {
  13918. "pattern": "^ses"
  13919. }
  13920. ]
  13921. },
  13922. "id": {
  13923. "type": "string"
  13924. },
  13925. "name": {
  13926. "type": "string"
  13927. },
  13928. "text": {
  13929. "type": "string"
  13930. }
  13931. },
  13932. "required": [
  13933. "sessionID",
  13934. "id",
  13935. "name",
  13936. "text"
  13937. ],
  13938. "additionalProperties": false
  13939. }
  13940. },
  13941. "required": [
  13942. "id",
  13943. "created",
  13944. "type",
  13945. "durable",
  13946. "data"
  13947. ],
  13948. "additionalProperties": false
  13949. },
  13950. "Shell": {
  13951. "type": "object",
  13952. "properties": {
  13953. "id": {
  13954. "type": "string",
  13955. "allOf": [
  13956. {
  13957. "pattern": "^sh_"
  13958. }
  13959. ]
  13960. },
  13961. "status": {
  13962. "type": "string",
  13963. "enum": [
  13964. "running",
  13965. "exited",
  13966. "timeout",
  13967. "killed"
  13968. ]
  13969. },
  13970. "command": {
  13971. "type": "string"
  13972. },
  13973. "cwd": {
  13974. "type": "string"
  13975. },
  13976. "shell": {
  13977. "type": "string"
  13978. },
  13979. "file": {
  13980. "type": "string"
  13981. },
  13982. "pid": {
  13983. "type": "integer",
  13984. "allOf": [
  13985. {
  13986. "minimum": 0
  13987. }
  13988. ]
  13989. },
  13990. "exit": {
  13991. "anyOf": [
  13992. {
  13993. "type": "number"
  13994. },
  13995. {
  13996. "type": "string",
  13997. "enum": [
  13998. "NaN"
  13999. ]
  14000. },
  14001. {
  14002. "type": "string",
  14003. "enum": [
  14004. "Infinity"
  14005. ]
  14006. },
  14007. {
  14008. "type": "string",
  14009. "enum": [
  14010. "-Infinity"
  14011. ]
  14012. }
  14013. ]
  14014. },
  14015. "metadata": {
  14016. "type": "object"
  14017. },
  14018. "time": {
  14019. "type": "object",
  14020. "properties": {
  14021. "started": {
  14022. "anyOf": [
  14023. {
  14024. "type": "number"
  14025. },
  14026. {
  14027. "type": "string",
  14028. "enum": [
  14029. "NaN"
  14030. ]
  14031. },
  14032. {
  14033. "type": "string",
  14034. "enum": [
  14035. "Infinity"
  14036. ]
  14037. },
  14038. {
  14039. "type": "string",
  14040. "enum": [
  14041. "-Infinity"
  14042. ]
  14043. }
  14044. ]
  14045. },
  14046. "completed": {
  14047. "anyOf": [
  14048. {
  14049. "type": "number"
  14050. },
  14051. {
  14052. "type": "string",
  14053. "enum": [
  14054. "NaN"
  14055. ]
  14056. },
  14057. {
  14058. "type": "string",
  14059. "enum": [
  14060. "Infinity"
  14061. ]
  14062. },
  14063. {
  14064. "type": "string",
  14065. "enum": [
  14066. "-Infinity"
  14067. ]
  14068. }
  14069. ]
  14070. }
  14071. },
  14072. "required": [
  14073. "started"
  14074. ],
  14075. "additionalProperties": false
  14076. }
  14077. },
  14078. "required": [
  14079. "id",
  14080. "status",
  14081. "command",
  14082. "cwd",
  14083. "shell",
  14084. "file",
  14085. "metadata",
  14086. "time"
  14087. ],
  14088. "additionalProperties": false
  14089. },
  14090. "session.shell.started": {
  14091. "type": "object",
  14092. "properties": {
  14093. "id": {
  14094. "type": "string",
  14095. "allOf": [
  14096. {
  14097. "pattern": "^evt_"
  14098. }
  14099. ]
  14100. },
  14101. "created": {
  14102. "type": "number"
  14103. },
  14104. "metadata": {
  14105. "type": "object"
  14106. },
  14107. "type": {
  14108. "type": "string",
  14109. "enum": [
  14110. "session.shell.started"
  14111. ]
  14112. },
  14113. "durable": {
  14114. "type": "object",
  14115. "properties": {
  14116. "aggregateID": {
  14117. "type": "string"
  14118. },
  14119. "seq": {
  14120. "type": "integer",
  14121. "allOf": [
  14122. {
  14123. "minimum": 0
  14124. }
  14125. ]
  14126. },
  14127. "version": {
  14128. "type": "number",
  14129. "enum": [
  14130. 1
  14131. ]
  14132. }
  14133. },
  14134. "required": [
  14135. "aggregateID",
  14136. "seq",
  14137. "version"
  14138. ],
  14139. "additionalProperties": false
  14140. },
  14141. "location": {
  14142. "$ref": "#/components/schemas/Location.Ref"
  14143. },
  14144. "data": {
  14145. "type": "object",
  14146. "properties": {
  14147. "sessionID": {
  14148. "type": "string",
  14149. "allOf": [
  14150. {
  14151. "pattern": "^ses"
  14152. }
  14153. ]
  14154. },
  14155. "shell": {
  14156. "$ref": "#/components/schemas/Shell"
  14157. }
  14158. },
  14159. "required": [
  14160. "sessionID",
  14161. "shell"
  14162. ],
  14163. "additionalProperties": false
  14164. }
  14165. },
  14166. "required": [
  14167. "id",
  14168. "created",
  14169. "type",
  14170. "durable",
  14171. "data"
  14172. ],
  14173. "additionalProperties": false
  14174. },
  14175. "session.shell.ended": {
  14176. "type": "object",
  14177. "properties": {
  14178. "id": {
  14179. "type": "string",
  14180. "allOf": [
  14181. {
  14182. "pattern": "^evt_"
  14183. }
  14184. ]
  14185. },
  14186. "created": {
  14187. "type": "number"
  14188. },
  14189. "metadata": {
  14190. "type": "object"
  14191. },
  14192. "type": {
  14193. "type": "string",
  14194. "enum": [
  14195. "session.shell.ended"
  14196. ]
  14197. },
  14198. "durable": {
  14199. "type": "object",
  14200. "properties": {
  14201. "aggregateID": {
  14202. "type": "string"
  14203. },
  14204. "seq": {
  14205. "type": "integer",
  14206. "allOf": [
  14207. {
  14208. "minimum": 0
  14209. }
  14210. ]
  14211. },
  14212. "version": {
  14213. "type": "number",
  14214. "enum": [
  14215. 1
  14216. ]
  14217. }
  14218. },
  14219. "required": [
  14220. "aggregateID",
  14221. "seq",
  14222. "version"
  14223. ],
  14224. "additionalProperties": false
  14225. },
  14226. "location": {
  14227. "$ref": "#/components/schemas/Location.Ref"
  14228. },
  14229. "data": {
  14230. "type": "object",
  14231. "properties": {
  14232. "sessionID": {
  14233. "type": "string",
  14234. "allOf": [
  14235. {
  14236. "pattern": "^ses"
  14237. }
  14238. ]
  14239. },
  14240. "shell": {
  14241. "$ref": "#/components/schemas/Shell"
  14242. },
  14243. "output": {
  14244. "type": "object",
  14245. "properties": {
  14246. "output": {
  14247. "type": "string"
  14248. },
  14249. "cursor": {
  14250. "type": "integer",
  14251. "allOf": [
  14252. {
  14253. "minimum": 0
  14254. }
  14255. ]
  14256. },
  14257. "size": {
  14258. "type": "integer",
  14259. "allOf": [
  14260. {
  14261. "minimum": 0
  14262. }
  14263. ]
  14264. },
  14265. "truncated": {
  14266. "type": "boolean"
  14267. }
  14268. },
  14269. "required": [
  14270. "output",
  14271. "cursor",
  14272. "size",
  14273. "truncated"
  14274. ],
  14275. "additionalProperties": false
  14276. }
  14277. },
  14278. "required": [
  14279. "sessionID",
  14280. "shell",
  14281. "output"
  14282. ],
  14283. "additionalProperties": false
  14284. }
  14285. },
  14286. "required": [
  14287. "id",
  14288. "created",
  14289. "type",
  14290. "durable",
  14291. "data"
  14292. ],
  14293. "additionalProperties": false
  14294. },
  14295. "session.step.started": {
  14296. "type": "object",
  14297. "properties": {
  14298. "id": {
  14299. "type": "string",
  14300. "allOf": [
  14301. {
  14302. "pattern": "^evt_"
  14303. }
  14304. ]
  14305. },
  14306. "created": {
  14307. "type": "number"
  14308. },
  14309. "metadata": {
  14310. "type": "object"
  14311. },
  14312. "type": {
  14313. "type": "string",
  14314. "enum": [
  14315. "session.step.started"
  14316. ]
  14317. },
  14318. "durable": {
  14319. "type": "object",
  14320. "properties": {
  14321. "aggregateID": {
  14322. "type": "string"
  14323. },
  14324. "seq": {
  14325. "type": "integer",
  14326. "allOf": [
  14327. {
  14328. "minimum": 0
  14329. }
  14330. ]
  14331. },
  14332. "version": {
  14333. "type": "number",
  14334. "enum": [
  14335. 1
  14336. ]
  14337. }
  14338. },
  14339. "required": [
  14340. "aggregateID",
  14341. "seq",
  14342. "version"
  14343. ],
  14344. "additionalProperties": false
  14345. },
  14346. "location": {
  14347. "$ref": "#/components/schemas/Location.Ref"
  14348. },
  14349. "data": {
  14350. "type": "object",
  14351. "properties": {
  14352. "sessionID": {
  14353. "type": "string",
  14354. "allOf": [
  14355. {
  14356. "pattern": "^ses"
  14357. }
  14358. ]
  14359. },
  14360. "assistantMessageID": {
  14361. "type": "string",
  14362. "allOf": [
  14363. {
  14364. "pattern": "^msg_"
  14365. }
  14366. ]
  14367. },
  14368. "agent": {
  14369. "type": "string"
  14370. },
  14371. "model": {
  14372. "$ref": "#/components/schemas/Model.Ref"
  14373. },
  14374. "snapshot": {
  14375. "type": "string"
  14376. }
  14377. },
  14378. "required": [
  14379. "sessionID",
  14380. "assistantMessageID",
  14381. "agent",
  14382. "model"
  14383. ],
  14384. "additionalProperties": false
  14385. }
  14386. },
  14387. "required": [
  14388. "id",
  14389. "created",
  14390. "type",
  14391. "durable",
  14392. "data"
  14393. ],
  14394. "additionalProperties": false
  14395. },
  14396. "session.step.ended": {
  14397. "type": "object",
  14398. "properties": {
  14399. "id": {
  14400. "type": "string",
  14401. "allOf": [
  14402. {
  14403. "pattern": "^evt_"
  14404. }
  14405. ]
  14406. },
  14407. "created": {
  14408. "type": "number"
  14409. },
  14410. "metadata": {
  14411. "type": "object"
  14412. },
  14413. "type": {
  14414. "type": "string",
  14415. "enum": [
  14416. "session.step.ended"
  14417. ]
  14418. },
  14419. "durable": {
  14420. "type": "object",
  14421. "properties": {
  14422. "aggregateID": {
  14423. "type": "string"
  14424. },
  14425. "seq": {
  14426. "type": "integer",
  14427. "allOf": [
  14428. {
  14429. "minimum": 0
  14430. }
  14431. ]
  14432. },
  14433. "version": {
  14434. "type": "number",
  14435. "enum": [
  14436. 1
  14437. ]
  14438. }
  14439. },
  14440. "required": [
  14441. "aggregateID",
  14442. "seq",
  14443. "version"
  14444. ],
  14445. "additionalProperties": false
  14446. },
  14447. "location": {
  14448. "$ref": "#/components/schemas/Location.Ref"
  14449. },
  14450. "data": {
  14451. "type": "object",
  14452. "properties": {
  14453. "sessionID": {
  14454. "type": "string",
  14455. "allOf": [
  14456. {
  14457. "pattern": "^ses"
  14458. }
  14459. ]
  14460. },
  14461. "assistantMessageID": {
  14462. "type": "string",
  14463. "allOf": [
  14464. {
  14465. "pattern": "^msg_"
  14466. }
  14467. ]
  14468. },
  14469. "finish": {
  14470. "type": "string",
  14471. "enum": [
  14472. "stop",
  14473. "length",
  14474. "tool-calls",
  14475. "content-filter",
  14476. "error",
  14477. "unknown"
  14478. ]
  14479. },
  14480. "cost": {
  14481. "$ref": "#/components/schemas/Money.USD"
  14482. },
  14483. "tokens": {
  14484. "$ref": "#/components/schemas/TokenUsage.Info"
  14485. },
  14486. "snapshot": {
  14487. "type": "string"
  14488. },
  14489. "files": {
  14490. "type": "array",
  14491. "items": {
  14492. "type": "string"
  14493. }
  14494. }
  14495. },
  14496. "required": [
  14497. "sessionID",
  14498. "assistantMessageID",
  14499. "finish",
  14500. "cost",
  14501. "tokens"
  14502. ],
  14503. "additionalProperties": false
  14504. }
  14505. },
  14506. "required": [
  14507. "id",
  14508. "created",
  14509. "type",
  14510. "durable",
  14511. "data"
  14512. ],
  14513. "additionalProperties": false
  14514. },
  14515. "session.step.failed": {
  14516. "type": "object",
  14517. "properties": {
  14518. "id": {
  14519. "type": "string",
  14520. "allOf": [
  14521. {
  14522. "pattern": "^evt_"
  14523. }
  14524. ]
  14525. },
  14526. "created": {
  14527. "type": "number"
  14528. },
  14529. "metadata": {
  14530. "type": "object"
  14531. },
  14532. "type": {
  14533. "type": "string",
  14534. "enum": [
  14535. "session.step.failed"
  14536. ]
  14537. },
  14538. "durable": {
  14539. "type": "object",
  14540. "properties": {
  14541. "aggregateID": {
  14542. "type": "string"
  14543. },
  14544. "seq": {
  14545. "type": "integer",
  14546. "allOf": [
  14547. {
  14548. "minimum": 0
  14549. }
  14550. ]
  14551. },
  14552. "version": {
  14553. "type": "number",
  14554. "enum": [
  14555. 1
  14556. ]
  14557. }
  14558. },
  14559. "required": [
  14560. "aggregateID",
  14561. "seq",
  14562. "version"
  14563. ],
  14564. "additionalProperties": false
  14565. },
  14566. "location": {
  14567. "$ref": "#/components/schemas/Location.Ref"
  14568. },
  14569. "data": {
  14570. "type": "object",
  14571. "properties": {
  14572. "sessionID": {
  14573. "type": "string",
  14574. "allOf": [
  14575. {
  14576. "pattern": "^ses"
  14577. }
  14578. ]
  14579. },
  14580. "assistantMessageID": {
  14581. "type": "string",
  14582. "allOf": [
  14583. {
  14584. "pattern": "^msg_"
  14585. }
  14586. ]
  14587. },
  14588. "error": {
  14589. "$ref": "#/components/schemas/Session.StructuredError"
  14590. },
  14591. "cost": {
  14592. "$ref": "#/components/schemas/Money.USD"
  14593. },
  14594. "tokens": {
  14595. "$ref": "#/components/schemas/TokenUsage.Info"
  14596. }
  14597. },
  14598. "required": [
  14599. "sessionID",
  14600. "assistantMessageID",
  14601. "error"
  14602. ],
  14603. "additionalProperties": false
  14604. }
  14605. },
  14606. "required": [
  14607. "id",
  14608. "created",
  14609. "type",
  14610. "durable",
  14611. "data"
  14612. ],
  14613. "additionalProperties": false
  14614. },
  14615. "session.text.started": {
  14616. "type": "object",
  14617. "properties": {
  14618. "id": {
  14619. "type": "string",
  14620. "allOf": [
  14621. {
  14622. "pattern": "^evt_"
  14623. }
  14624. ]
  14625. },
  14626. "created": {
  14627. "type": "number"
  14628. },
  14629. "metadata": {
  14630. "type": "object"
  14631. },
  14632. "type": {
  14633. "type": "string",
  14634. "enum": [
  14635. "session.text.started"
  14636. ]
  14637. },
  14638. "durable": {
  14639. "type": "object",
  14640. "properties": {
  14641. "aggregateID": {
  14642. "type": "string"
  14643. },
  14644. "seq": {
  14645. "type": "integer",
  14646. "allOf": [
  14647. {
  14648. "minimum": 0
  14649. }
  14650. ]
  14651. },
  14652. "version": {
  14653. "type": "number",
  14654. "enum": [
  14655. 1
  14656. ]
  14657. }
  14658. },
  14659. "required": [
  14660. "aggregateID",
  14661. "seq",
  14662. "version"
  14663. ],
  14664. "additionalProperties": false
  14665. },
  14666. "location": {
  14667. "$ref": "#/components/schemas/Location.Ref"
  14668. },
  14669. "data": {
  14670. "type": "object",
  14671. "properties": {
  14672. "sessionID": {
  14673. "type": "string",
  14674. "allOf": [
  14675. {
  14676. "pattern": "^ses"
  14677. }
  14678. ]
  14679. },
  14680. "assistantMessageID": {
  14681. "type": "string",
  14682. "allOf": [
  14683. {
  14684. "pattern": "^msg_"
  14685. }
  14686. ]
  14687. },
  14688. "ordinal": {
  14689. "type": "integer",
  14690. "allOf": [
  14691. {
  14692. "minimum": 0
  14693. }
  14694. ]
  14695. }
  14696. },
  14697. "required": [
  14698. "sessionID",
  14699. "assistantMessageID",
  14700. "ordinal"
  14701. ],
  14702. "additionalProperties": false
  14703. }
  14704. },
  14705. "required": [
  14706. "id",
  14707. "created",
  14708. "type",
  14709. "durable",
  14710. "data"
  14711. ],
  14712. "additionalProperties": false
  14713. },
  14714. "session.text.ended": {
  14715. "type": "object",
  14716. "properties": {
  14717. "id": {
  14718. "type": "string",
  14719. "allOf": [
  14720. {
  14721. "pattern": "^evt_"
  14722. }
  14723. ]
  14724. },
  14725. "created": {
  14726. "type": "number"
  14727. },
  14728. "metadata": {
  14729. "type": "object"
  14730. },
  14731. "type": {
  14732. "type": "string",
  14733. "enum": [
  14734. "session.text.ended"
  14735. ]
  14736. },
  14737. "durable": {
  14738. "type": "object",
  14739. "properties": {
  14740. "aggregateID": {
  14741. "type": "string"
  14742. },
  14743. "seq": {
  14744. "type": "integer",
  14745. "allOf": [
  14746. {
  14747. "minimum": 0
  14748. }
  14749. ]
  14750. },
  14751. "version": {
  14752. "type": "number",
  14753. "enum": [
  14754. 1
  14755. ]
  14756. }
  14757. },
  14758. "required": [
  14759. "aggregateID",
  14760. "seq",
  14761. "version"
  14762. ],
  14763. "additionalProperties": false
  14764. },
  14765. "location": {
  14766. "$ref": "#/components/schemas/Location.Ref"
  14767. },
  14768. "data": {
  14769. "type": "object",
  14770. "properties": {
  14771. "sessionID": {
  14772. "type": "string",
  14773. "allOf": [
  14774. {
  14775. "pattern": "^ses"
  14776. }
  14777. ]
  14778. },
  14779. "assistantMessageID": {
  14780. "type": "string",
  14781. "allOf": [
  14782. {
  14783. "pattern": "^msg_"
  14784. }
  14785. ]
  14786. },
  14787. "ordinal": {
  14788. "type": "integer",
  14789. "allOf": [
  14790. {
  14791. "minimum": 0
  14792. }
  14793. ]
  14794. },
  14795. "text": {
  14796. "type": "string"
  14797. }
  14798. },
  14799. "required": [
  14800. "sessionID",
  14801. "assistantMessageID",
  14802. "ordinal",
  14803. "text"
  14804. ],
  14805. "additionalProperties": false
  14806. }
  14807. },
  14808. "required": [
  14809. "id",
  14810. "created",
  14811. "type",
  14812. "durable",
  14813. "data"
  14814. ],
  14815. "additionalProperties": false
  14816. },
  14817. "Session.Message.ProviderState3": {
  14818. "type": "object"
  14819. },
  14820. "session.reasoning.started": {
  14821. "type": "object",
  14822. "properties": {
  14823. "id": {
  14824. "type": "string",
  14825. "allOf": [
  14826. {
  14827. "pattern": "^evt_"
  14828. }
  14829. ]
  14830. },
  14831. "created": {
  14832. "type": "number"
  14833. },
  14834. "metadata": {
  14835. "type": "object"
  14836. },
  14837. "type": {
  14838. "type": "string",
  14839. "enum": [
  14840. "session.reasoning.started"
  14841. ]
  14842. },
  14843. "durable": {
  14844. "type": "object",
  14845. "properties": {
  14846. "aggregateID": {
  14847. "type": "string"
  14848. },
  14849. "seq": {
  14850. "type": "integer",
  14851. "allOf": [
  14852. {
  14853. "minimum": 0
  14854. }
  14855. ]
  14856. },
  14857. "version": {
  14858. "type": "number",
  14859. "enum": [
  14860. 1
  14861. ]
  14862. }
  14863. },
  14864. "required": [
  14865. "aggregateID",
  14866. "seq",
  14867. "version"
  14868. ],
  14869. "additionalProperties": false
  14870. },
  14871. "location": {
  14872. "$ref": "#/components/schemas/Location.Ref"
  14873. },
  14874. "data": {
  14875. "type": "object",
  14876. "properties": {
  14877. "sessionID": {
  14878. "type": "string",
  14879. "allOf": [
  14880. {
  14881. "pattern": "^ses"
  14882. }
  14883. ]
  14884. },
  14885. "assistantMessageID": {
  14886. "type": "string",
  14887. "allOf": [
  14888. {
  14889. "pattern": "^msg_"
  14890. }
  14891. ]
  14892. },
  14893. "ordinal": {
  14894. "type": "integer",
  14895. "allOf": [
  14896. {
  14897. "minimum": 0
  14898. }
  14899. ]
  14900. },
  14901. "state": {
  14902. "$ref": "#/components/schemas/Session.Message.ProviderState3"
  14903. }
  14904. },
  14905. "required": [
  14906. "sessionID",
  14907. "assistantMessageID",
  14908. "ordinal"
  14909. ],
  14910. "additionalProperties": false
  14911. }
  14912. },
  14913. "required": [
  14914. "id",
  14915. "created",
  14916. "type",
  14917. "durable",
  14918. "data"
  14919. ],
  14920. "additionalProperties": false
  14921. },
  14922. "Session.Message.ProviderState4": {
  14923. "type": "object"
  14924. },
  14925. "session.reasoning.ended": {
  14926. "type": "object",
  14927. "properties": {
  14928. "id": {
  14929. "type": "string",
  14930. "allOf": [
  14931. {
  14932. "pattern": "^evt_"
  14933. }
  14934. ]
  14935. },
  14936. "created": {
  14937. "type": "number"
  14938. },
  14939. "metadata": {
  14940. "type": "object"
  14941. },
  14942. "type": {
  14943. "type": "string",
  14944. "enum": [
  14945. "session.reasoning.ended"
  14946. ]
  14947. },
  14948. "durable": {
  14949. "type": "object",
  14950. "properties": {
  14951. "aggregateID": {
  14952. "type": "string"
  14953. },
  14954. "seq": {
  14955. "type": "integer",
  14956. "allOf": [
  14957. {
  14958. "minimum": 0
  14959. }
  14960. ]
  14961. },
  14962. "version": {
  14963. "type": "number",
  14964. "enum": [
  14965. 1
  14966. ]
  14967. }
  14968. },
  14969. "required": [
  14970. "aggregateID",
  14971. "seq",
  14972. "version"
  14973. ],
  14974. "additionalProperties": false
  14975. },
  14976. "location": {
  14977. "$ref": "#/components/schemas/Location.Ref"
  14978. },
  14979. "data": {
  14980. "type": "object",
  14981. "properties": {
  14982. "sessionID": {
  14983. "type": "string",
  14984. "allOf": [
  14985. {
  14986. "pattern": "^ses"
  14987. }
  14988. ]
  14989. },
  14990. "assistantMessageID": {
  14991. "type": "string",
  14992. "allOf": [
  14993. {
  14994. "pattern": "^msg_"
  14995. }
  14996. ]
  14997. },
  14998. "ordinal": {
  14999. "type": "integer",
  15000. "allOf": [
  15001. {
  15002. "minimum": 0
  15003. }
  15004. ]
  15005. },
  15006. "text": {
  15007. "type": "string"
  15008. },
  15009. "state": {
  15010. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  15011. }
  15012. },
  15013. "required": [
  15014. "sessionID",
  15015. "assistantMessageID",
  15016. "ordinal",
  15017. "text"
  15018. ],
  15019. "additionalProperties": false
  15020. }
  15021. },
  15022. "required": [
  15023. "id",
  15024. "created",
  15025. "type",
  15026. "durable",
  15027. "data"
  15028. ],
  15029. "additionalProperties": false
  15030. },
  15031. "session.tool.input.started": {
  15032. "type": "object",
  15033. "properties": {
  15034. "id": {
  15035. "type": "string",
  15036. "allOf": [
  15037. {
  15038. "pattern": "^evt_"
  15039. }
  15040. ]
  15041. },
  15042. "created": {
  15043. "type": "number"
  15044. },
  15045. "metadata": {
  15046. "type": "object"
  15047. },
  15048. "type": {
  15049. "type": "string",
  15050. "enum": [
  15051. "session.tool.input.started"
  15052. ]
  15053. },
  15054. "durable": {
  15055. "type": "object",
  15056. "properties": {
  15057. "aggregateID": {
  15058. "type": "string"
  15059. },
  15060. "seq": {
  15061. "type": "integer",
  15062. "allOf": [
  15063. {
  15064. "minimum": 0
  15065. }
  15066. ]
  15067. },
  15068. "version": {
  15069. "type": "number",
  15070. "enum": [
  15071. 1
  15072. ]
  15073. }
  15074. },
  15075. "required": [
  15076. "aggregateID",
  15077. "seq",
  15078. "version"
  15079. ],
  15080. "additionalProperties": false
  15081. },
  15082. "location": {
  15083. "$ref": "#/components/schemas/Location.Ref"
  15084. },
  15085. "data": {
  15086. "type": "object",
  15087. "properties": {
  15088. "sessionID": {
  15089. "type": "string",
  15090. "allOf": [
  15091. {
  15092. "pattern": "^ses"
  15093. }
  15094. ]
  15095. },
  15096. "assistantMessageID": {
  15097. "type": "string",
  15098. "allOf": [
  15099. {
  15100. "pattern": "^msg_"
  15101. }
  15102. ]
  15103. },
  15104. "callID": {
  15105. "type": "string"
  15106. },
  15107. "name": {
  15108. "type": "string"
  15109. }
  15110. },
  15111. "required": [
  15112. "sessionID",
  15113. "assistantMessageID",
  15114. "callID",
  15115. "name"
  15116. ],
  15117. "additionalProperties": false
  15118. }
  15119. },
  15120. "required": [
  15121. "id",
  15122. "created",
  15123. "type",
  15124. "durable",
  15125. "data"
  15126. ],
  15127. "additionalProperties": false
  15128. },
  15129. "session.tool.input.ended": {
  15130. "type": "object",
  15131. "properties": {
  15132. "id": {
  15133. "type": "string",
  15134. "allOf": [
  15135. {
  15136. "pattern": "^evt_"
  15137. }
  15138. ]
  15139. },
  15140. "created": {
  15141. "type": "number"
  15142. },
  15143. "metadata": {
  15144. "type": "object"
  15145. },
  15146. "type": {
  15147. "type": "string",
  15148. "enum": [
  15149. "session.tool.input.ended"
  15150. ]
  15151. },
  15152. "durable": {
  15153. "type": "object",
  15154. "properties": {
  15155. "aggregateID": {
  15156. "type": "string"
  15157. },
  15158. "seq": {
  15159. "type": "integer",
  15160. "allOf": [
  15161. {
  15162. "minimum": 0
  15163. }
  15164. ]
  15165. },
  15166. "version": {
  15167. "type": "number",
  15168. "enum": [
  15169. 1
  15170. ]
  15171. }
  15172. },
  15173. "required": [
  15174. "aggregateID",
  15175. "seq",
  15176. "version"
  15177. ],
  15178. "additionalProperties": false
  15179. },
  15180. "location": {
  15181. "$ref": "#/components/schemas/Location.Ref"
  15182. },
  15183. "data": {
  15184. "type": "object",
  15185. "properties": {
  15186. "sessionID": {
  15187. "type": "string",
  15188. "allOf": [
  15189. {
  15190. "pattern": "^ses"
  15191. }
  15192. ]
  15193. },
  15194. "assistantMessageID": {
  15195. "type": "string",
  15196. "allOf": [
  15197. {
  15198. "pattern": "^msg_"
  15199. }
  15200. ]
  15201. },
  15202. "callID": {
  15203. "type": "string"
  15204. },
  15205. "text": {
  15206. "type": "string"
  15207. }
  15208. },
  15209. "required": [
  15210. "sessionID",
  15211. "assistantMessageID",
  15212. "callID",
  15213. "text"
  15214. ],
  15215. "additionalProperties": false
  15216. }
  15217. },
  15218. "required": [
  15219. "id",
  15220. "created",
  15221. "type",
  15222. "durable",
  15223. "data"
  15224. ],
  15225. "additionalProperties": false
  15226. },
  15227. "Session.Message.ProviderState5": {
  15228. "type": "object"
  15229. },
  15230. "session.tool.called": {
  15231. "type": "object",
  15232. "properties": {
  15233. "id": {
  15234. "type": "string",
  15235. "allOf": [
  15236. {
  15237. "pattern": "^evt_"
  15238. }
  15239. ]
  15240. },
  15241. "created": {
  15242. "type": "number"
  15243. },
  15244. "metadata": {
  15245. "type": "object"
  15246. },
  15247. "type": {
  15248. "type": "string",
  15249. "enum": [
  15250. "session.tool.called"
  15251. ]
  15252. },
  15253. "durable": {
  15254. "type": "object",
  15255. "properties": {
  15256. "aggregateID": {
  15257. "type": "string"
  15258. },
  15259. "seq": {
  15260. "type": "integer",
  15261. "allOf": [
  15262. {
  15263. "minimum": 0
  15264. }
  15265. ]
  15266. },
  15267. "version": {
  15268. "type": "number",
  15269. "enum": [
  15270. 1
  15271. ]
  15272. }
  15273. },
  15274. "required": [
  15275. "aggregateID",
  15276. "seq",
  15277. "version"
  15278. ],
  15279. "additionalProperties": false
  15280. },
  15281. "location": {
  15282. "$ref": "#/components/schemas/Location.Ref"
  15283. },
  15284. "data": {
  15285. "type": "object",
  15286. "properties": {
  15287. "sessionID": {
  15288. "type": "string",
  15289. "allOf": [
  15290. {
  15291. "pattern": "^ses"
  15292. }
  15293. ]
  15294. },
  15295. "assistantMessageID": {
  15296. "type": "string",
  15297. "allOf": [
  15298. {
  15299. "pattern": "^msg_"
  15300. }
  15301. ]
  15302. },
  15303. "callID": {
  15304. "type": "string"
  15305. },
  15306. "input": {
  15307. "type": "object"
  15308. },
  15309. "executed": {
  15310. "type": "boolean"
  15311. },
  15312. "state": {
  15313. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  15314. }
  15315. },
  15316. "required": [
  15317. "sessionID",
  15318. "assistantMessageID",
  15319. "callID",
  15320. "input",
  15321. "executed"
  15322. ],
  15323. "additionalProperties": false
  15324. }
  15325. },
  15326. "required": [
  15327. "id",
  15328. "created",
  15329. "type",
  15330. "durable",
  15331. "data"
  15332. ],
  15333. "additionalProperties": false
  15334. },
  15335. "session.tool.progress": {
  15336. "type": "object",
  15337. "properties": {
  15338. "id": {
  15339. "type": "string",
  15340. "allOf": [
  15341. {
  15342. "pattern": "^evt_"
  15343. }
  15344. ]
  15345. },
  15346. "created": {
  15347. "type": "number"
  15348. },
  15349. "metadata": {
  15350. "type": "object"
  15351. },
  15352. "type": {
  15353. "type": "string",
  15354. "enum": [
  15355. "session.tool.progress"
  15356. ]
  15357. },
  15358. "durable": {
  15359. "type": "object",
  15360. "properties": {
  15361. "aggregateID": {
  15362. "type": "string"
  15363. },
  15364. "seq": {
  15365. "type": "integer",
  15366. "allOf": [
  15367. {
  15368. "minimum": 0
  15369. }
  15370. ]
  15371. },
  15372. "version": {
  15373. "type": "number",
  15374. "enum": [
  15375. 1
  15376. ]
  15377. }
  15378. },
  15379. "required": [
  15380. "aggregateID",
  15381. "seq",
  15382. "version"
  15383. ],
  15384. "additionalProperties": false
  15385. },
  15386. "location": {
  15387. "$ref": "#/components/schemas/Location.Ref"
  15388. },
  15389. "data": {
  15390. "type": "object",
  15391. "properties": {
  15392. "sessionID": {
  15393. "type": "string",
  15394. "allOf": [
  15395. {
  15396. "pattern": "^ses"
  15397. }
  15398. ]
  15399. },
  15400. "assistantMessageID": {
  15401. "type": "string",
  15402. "allOf": [
  15403. {
  15404. "pattern": "^msg_"
  15405. }
  15406. ]
  15407. },
  15408. "callID": {
  15409. "type": "string"
  15410. },
  15411. "structured": {
  15412. "type": "object"
  15413. },
  15414. "content": {
  15415. "type": "array",
  15416. "items": {
  15417. "$ref": "#/components/schemas/LLM.ToolContent"
  15418. }
  15419. }
  15420. },
  15421. "required": [
  15422. "sessionID",
  15423. "assistantMessageID",
  15424. "callID",
  15425. "structured",
  15426. "content"
  15427. ],
  15428. "additionalProperties": false
  15429. }
  15430. },
  15431. "required": [
  15432. "id",
  15433. "created",
  15434. "type",
  15435. "durable",
  15436. "data"
  15437. ],
  15438. "additionalProperties": false
  15439. },
  15440. "Session.Message.ProviderState6": {
  15441. "type": "object"
  15442. },
  15443. "session.tool.success": {
  15444. "type": "object",
  15445. "properties": {
  15446. "id": {
  15447. "type": "string",
  15448. "allOf": [
  15449. {
  15450. "pattern": "^evt_"
  15451. }
  15452. ]
  15453. },
  15454. "created": {
  15455. "type": "number"
  15456. },
  15457. "metadata": {
  15458. "type": "object"
  15459. },
  15460. "type": {
  15461. "type": "string",
  15462. "enum": [
  15463. "session.tool.success"
  15464. ]
  15465. },
  15466. "durable": {
  15467. "type": "object",
  15468. "properties": {
  15469. "aggregateID": {
  15470. "type": "string"
  15471. },
  15472. "seq": {
  15473. "type": "integer",
  15474. "allOf": [
  15475. {
  15476. "minimum": 0
  15477. }
  15478. ]
  15479. },
  15480. "version": {
  15481. "type": "number",
  15482. "enum": [
  15483. 1
  15484. ]
  15485. }
  15486. },
  15487. "required": [
  15488. "aggregateID",
  15489. "seq",
  15490. "version"
  15491. ],
  15492. "additionalProperties": false
  15493. },
  15494. "location": {
  15495. "$ref": "#/components/schemas/Location.Ref"
  15496. },
  15497. "data": {
  15498. "type": "object",
  15499. "properties": {
  15500. "sessionID": {
  15501. "type": "string",
  15502. "allOf": [
  15503. {
  15504. "pattern": "^ses"
  15505. }
  15506. ]
  15507. },
  15508. "assistantMessageID": {
  15509. "type": "string",
  15510. "allOf": [
  15511. {
  15512. "pattern": "^msg_"
  15513. }
  15514. ]
  15515. },
  15516. "callID": {
  15517. "type": "string"
  15518. },
  15519. "structured": {
  15520. "type": "object"
  15521. },
  15522. "content": {
  15523. "type": "array",
  15524. "items": {
  15525. "$ref": "#/components/schemas/LLM.ToolContent"
  15526. }
  15527. },
  15528. "result": {},
  15529. "executed": {
  15530. "type": "boolean"
  15531. },
  15532. "resultState": {
  15533. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  15534. }
  15535. },
  15536. "required": [
  15537. "sessionID",
  15538. "assistantMessageID",
  15539. "callID",
  15540. "structured",
  15541. "content",
  15542. "executed"
  15543. ],
  15544. "additionalProperties": false
  15545. }
  15546. },
  15547. "required": [
  15548. "id",
  15549. "created",
  15550. "type",
  15551. "durable",
  15552. "data"
  15553. ],
  15554. "additionalProperties": false
  15555. },
  15556. "Session.Message.ProviderState7": {
  15557. "type": "object"
  15558. },
  15559. "session.tool.failed": {
  15560. "type": "object",
  15561. "properties": {
  15562. "id": {
  15563. "type": "string",
  15564. "allOf": [
  15565. {
  15566. "pattern": "^evt_"
  15567. }
  15568. ]
  15569. },
  15570. "created": {
  15571. "type": "number"
  15572. },
  15573. "metadata": {
  15574. "type": "object"
  15575. },
  15576. "type": {
  15577. "type": "string",
  15578. "enum": [
  15579. "session.tool.failed"
  15580. ]
  15581. },
  15582. "durable": {
  15583. "type": "object",
  15584. "properties": {
  15585. "aggregateID": {
  15586. "type": "string"
  15587. },
  15588. "seq": {
  15589. "type": "integer",
  15590. "allOf": [
  15591. {
  15592. "minimum": 0
  15593. }
  15594. ]
  15595. },
  15596. "version": {
  15597. "type": "number",
  15598. "enum": [
  15599. 1
  15600. ]
  15601. }
  15602. },
  15603. "required": [
  15604. "aggregateID",
  15605. "seq",
  15606. "version"
  15607. ],
  15608. "additionalProperties": false
  15609. },
  15610. "location": {
  15611. "$ref": "#/components/schemas/Location.Ref"
  15612. },
  15613. "data": {
  15614. "type": "object",
  15615. "properties": {
  15616. "sessionID": {
  15617. "type": "string",
  15618. "allOf": [
  15619. {
  15620. "pattern": "^ses"
  15621. }
  15622. ]
  15623. },
  15624. "assistantMessageID": {
  15625. "type": "string",
  15626. "allOf": [
  15627. {
  15628. "pattern": "^msg_"
  15629. }
  15630. ]
  15631. },
  15632. "callID": {
  15633. "type": "string"
  15634. },
  15635. "error": {
  15636. "$ref": "#/components/schemas/Session.StructuredError"
  15637. },
  15638. "result": {},
  15639. "executed": {
  15640. "type": "boolean"
  15641. },
  15642. "resultState": {
  15643. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  15644. }
  15645. },
  15646. "required": [
  15647. "sessionID",
  15648. "assistantMessageID",
  15649. "callID",
  15650. "error",
  15651. "executed"
  15652. ],
  15653. "additionalProperties": false
  15654. }
  15655. },
  15656. "required": [
  15657. "id",
  15658. "created",
  15659. "type",
  15660. "durable",
  15661. "data"
  15662. ],
  15663. "additionalProperties": false
  15664. },
  15665. "session.retry.scheduled": {
  15666. "type": "object",
  15667. "properties": {
  15668. "id": {
  15669. "type": "string",
  15670. "allOf": [
  15671. {
  15672. "pattern": "^evt_"
  15673. }
  15674. ]
  15675. },
  15676. "created": {
  15677. "type": "number"
  15678. },
  15679. "metadata": {
  15680. "type": "object"
  15681. },
  15682. "type": {
  15683. "type": "string",
  15684. "enum": [
  15685. "session.retry.scheduled"
  15686. ]
  15687. },
  15688. "durable": {
  15689. "type": "object",
  15690. "properties": {
  15691. "aggregateID": {
  15692. "type": "string"
  15693. },
  15694. "seq": {
  15695. "type": "integer",
  15696. "allOf": [
  15697. {
  15698. "minimum": 0
  15699. }
  15700. ]
  15701. },
  15702. "version": {
  15703. "type": "number",
  15704. "enum": [
  15705. 1
  15706. ]
  15707. }
  15708. },
  15709. "required": [
  15710. "aggregateID",
  15711. "seq",
  15712. "version"
  15713. ],
  15714. "additionalProperties": false
  15715. },
  15716. "location": {
  15717. "$ref": "#/components/schemas/Location.Ref"
  15718. },
  15719. "data": {
  15720. "type": "object",
  15721. "properties": {
  15722. "sessionID": {
  15723. "type": "string",
  15724. "allOf": [
  15725. {
  15726. "pattern": "^ses"
  15727. }
  15728. ]
  15729. },
  15730. "assistantMessageID": {
  15731. "type": "string",
  15732. "allOf": [
  15733. {
  15734. "pattern": "^msg_"
  15735. }
  15736. ]
  15737. },
  15738. "attempt": {
  15739. "type": "integer",
  15740. "allOf": [
  15741. {
  15742. "exclusiveMinimum": 0
  15743. }
  15744. ]
  15745. },
  15746. "at": {
  15747. "type": "integer",
  15748. "allOf": [
  15749. {
  15750. "minimum": 0
  15751. }
  15752. ]
  15753. },
  15754. "error": {
  15755. "$ref": "#/components/schemas/Session.StructuredError"
  15756. }
  15757. },
  15758. "required": [
  15759. "sessionID",
  15760. "assistantMessageID",
  15761. "attempt",
  15762. "at",
  15763. "error"
  15764. ],
  15765. "additionalProperties": false
  15766. }
  15767. },
  15768. "required": [
  15769. "id",
  15770. "created",
  15771. "type",
  15772. "durable",
  15773. "data"
  15774. ],
  15775. "additionalProperties": false
  15776. },
  15777. "session.compaction.admitted": {
  15778. "type": "object",
  15779. "properties": {
  15780. "id": {
  15781. "type": "string",
  15782. "allOf": [
  15783. {
  15784. "pattern": "^evt_"
  15785. }
  15786. ]
  15787. },
  15788. "created": {
  15789. "type": "number"
  15790. },
  15791. "metadata": {
  15792. "type": "object"
  15793. },
  15794. "type": {
  15795. "type": "string",
  15796. "enum": [
  15797. "session.compaction.admitted"
  15798. ]
  15799. },
  15800. "durable": {
  15801. "type": "object",
  15802. "properties": {
  15803. "aggregateID": {
  15804. "type": "string"
  15805. },
  15806. "seq": {
  15807. "type": "integer",
  15808. "allOf": [
  15809. {
  15810. "minimum": 0
  15811. }
  15812. ]
  15813. },
  15814. "version": {
  15815. "type": "number",
  15816. "enum": [
  15817. 1
  15818. ]
  15819. }
  15820. },
  15821. "required": [
  15822. "aggregateID",
  15823. "seq",
  15824. "version"
  15825. ],
  15826. "additionalProperties": false
  15827. },
  15828. "location": {
  15829. "$ref": "#/components/schemas/Location.Ref"
  15830. },
  15831. "data": {
  15832. "type": "object",
  15833. "properties": {
  15834. "sessionID": {
  15835. "type": "string",
  15836. "allOf": [
  15837. {
  15838. "pattern": "^ses"
  15839. }
  15840. ]
  15841. },
  15842. "inputID": {
  15843. "type": "string",
  15844. "allOf": [
  15845. {
  15846. "pattern": "^msg_"
  15847. }
  15848. ]
  15849. }
  15850. },
  15851. "required": [
  15852. "sessionID",
  15853. "inputID"
  15854. ],
  15855. "additionalProperties": false
  15856. }
  15857. },
  15858. "required": [
  15859. "id",
  15860. "created",
  15861. "type",
  15862. "durable",
  15863. "data"
  15864. ],
  15865. "additionalProperties": false
  15866. },
  15867. "session.compaction.started": {
  15868. "type": "object",
  15869. "properties": {
  15870. "id": {
  15871. "type": "string",
  15872. "allOf": [
  15873. {
  15874. "pattern": "^evt_"
  15875. }
  15876. ]
  15877. },
  15878. "created": {
  15879. "type": "number"
  15880. },
  15881. "metadata": {
  15882. "type": "object"
  15883. },
  15884. "type": {
  15885. "type": "string",
  15886. "enum": [
  15887. "session.compaction.started"
  15888. ]
  15889. },
  15890. "durable": {
  15891. "type": "object",
  15892. "properties": {
  15893. "aggregateID": {
  15894. "type": "string"
  15895. },
  15896. "seq": {
  15897. "type": "integer",
  15898. "allOf": [
  15899. {
  15900. "minimum": 0
  15901. }
  15902. ]
  15903. },
  15904. "version": {
  15905. "type": "number",
  15906. "enum": [
  15907. 1
  15908. ]
  15909. }
  15910. },
  15911. "required": [
  15912. "aggregateID",
  15913. "seq",
  15914. "version"
  15915. ],
  15916. "additionalProperties": false
  15917. },
  15918. "location": {
  15919. "$ref": "#/components/schemas/Location.Ref"
  15920. },
  15921. "data": {
  15922. "type": "object",
  15923. "properties": {
  15924. "sessionID": {
  15925. "type": "string",
  15926. "allOf": [
  15927. {
  15928. "pattern": "^ses"
  15929. }
  15930. ]
  15931. },
  15932. "reason": {
  15933. "type": "string",
  15934. "enum": [
  15935. "auto",
  15936. "manual"
  15937. ]
  15938. },
  15939. "recent": {
  15940. "type": "string"
  15941. },
  15942. "inputID": {
  15943. "type": "string",
  15944. "allOf": [
  15945. {
  15946. "pattern": "^msg_"
  15947. }
  15948. ]
  15949. }
  15950. },
  15951. "required": [
  15952. "sessionID",
  15953. "reason",
  15954. "recent"
  15955. ],
  15956. "additionalProperties": false
  15957. }
  15958. },
  15959. "required": [
  15960. "id",
  15961. "created",
  15962. "type",
  15963. "durable",
  15964. "data"
  15965. ],
  15966. "additionalProperties": false
  15967. },
  15968. "session.compaction.ended": {
  15969. "type": "object",
  15970. "properties": {
  15971. "id": {
  15972. "type": "string",
  15973. "allOf": [
  15974. {
  15975. "pattern": "^evt_"
  15976. }
  15977. ]
  15978. },
  15979. "created": {
  15980. "type": "number"
  15981. },
  15982. "metadata": {
  15983. "type": "object"
  15984. },
  15985. "type": {
  15986. "type": "string",
  15987. "enum": [
  15988. "session.compaction.ended"
  15989. ]
  15990. },
  15991. "durable": {
  15992. "type": "object",
  15993. "properties": {
  15994. "aggregateID": {
  15995. "type": "string"
  15996. },
  15997. "seq": {
  15998. "type": "integer",
  15999. "allOf": [
  16000. {
  16001. "minimum": 0
  16002. }
  16003. ]
  16004. },
  16005. "version": {
  16006. "type": "number",
  16007. "enum": [
  16008. 1
  16009. ]
  16010. }
  16011. },
  16012. "required": [
  16013. "aggregateID",
  16014. "seq",
  16015. "version"
  16016. ],
  16017. "additionalProperties": false
  16018. },
  16019. "location": {
  16020. "$ref": "#/components/schemas/Location.Ref"
  16021. },
  16022. "data": {
  16023. "type": "object",
  16024. "properties": {
  16025. "sessionID": {
  16026. "type": "string",
  16027. "allOf": [
  16028. {
  16029. "pattern": "^ses"
  16030. }
  16031. ]
  16032. },
  16033. "reason": {
  16034. "type": "string",
  16035. "enum": [
  16036. "auto",
  16037. "manual"
  16038. ]
  16039. },
  16040. "text": {
  16041. "type": "string"
  16042. },
  16043. "recent": {
  16044. "type": "string"
  16045. }
  16046. },
  16047. "required": [
  16048. "sessionID",
  16049. "reason",
  16050. "text",
  16051. "recent"
  16052. ],
  16053. "additionalProperties": false
  16054. }
  16055. },
  16056. "required": [
  16057. "id",
  16058. "created",
  16059. "type",
  16060. "durable",
  16061. "data"
  16062. ],
  16063. "additionalProperties": false
  16064. },
  16065. "session.compaction.failed": {
  16066. "type": "object",
  16067. "properties": {
  16068. "id": {
  16069. "type": "string",
  16070. "allOf": [
  16071. {
  16072. "pattern": "^evt_"
  16073. }
  16074. ]
  16075. },
  16076. "created": {
  16077. "type": "number"
  16078. },
  16079. "metadata": {
  16080. "type": "object"
  16081. },
  16082. "type": {
  16083. "type": "string",
  16084. "enum": [
  16085. "session.compaction.failed"
  16086. ]
  16087. },
  16088. "durable": {
  16089. "type": "object",
  16090. "properties": {
  16091. "aggregateID": {
  16092. "type": "string"
  16093. },
  16094. "seq": {
  16095. "type": "integer",
  16096. "allOf": [
  16097. {
  16098. "minimum": 0
  16099. }
  16100. ]
  16101. },
  16102. "version": {
  16103. "type": "number",
  16104. "enum": [
  16105. 1
  16106. ]
  16107. }
  16108. },
  16109. "required": [
  16110. "aggregateID",
  16111. "seq",
  16112. "version"
  16113. ],
  16114. "additionalProperties": false
  16115. },
  16116. "location": {
  16117. "$ref": "#/components/schemas/Location.Ref"
  16118. },
  16119. "data": {
  16120. "type": "object",
  16121. "properties": {
  16122. "sessionID": {
  16123. "type": "string",
  16124. "allOf": [
  16125. {
  16126. "pattern": "^ses"
  16127. }
  16128. ]
  16129. },
  16130. "reason": {
  16131. "type": "string",
  16132. "enum": [
  16133. "auto",
  16134. "manual"
  16135. ]
  16136. },
  16137. "error": {
  16138. "$ref": "#/components/schemas/Session.StructuredError"
  16139. },
  16140. "inputID": {
  16141. "type": "string",
  16142. "allOf": [
  16143. {
  16144. "pattern": "^msg_"
  16145. }
  16146. ]
  16147. }
  16148. },
  16149. "required": [
  16150. "sessionID",
  16151. "reason",
  16152. "error"
  16153. ],
  16154. "additionalProperties": false
  16155. }
  16156. },
  16157. "required": [
  16158. "id",
  16159. "created",
  16160. "type",
  16161. "durable",
  16162. "data"
  16163. ],
  16164. "additionalProperties": false
  16165. },
  16166. "session.revert.staged": {
  16167. "type": "object",
  16168. "properties": {
  16169. "id": {
  16170. "type": "string",
  16171. "allOf": [
  16172. {
  16173. "pattern": "^evt_"
  16174. }
  16175. ]
  16176. },
  16177. "created": {
  16178. "type": "number"
  16179. },
  16180. "metadata": {
  16181. "type": "object"
  16182. },
  16183. "type": {
  16184. "type": "string",
  16185. "enum": [
  16186. "session.revert.staged"
  16187. ]
  16188. },
  16189. "durable": {
  16190. "type": "object",
  16191. "properties": {
  16192. "aggregateID": {
  16193. "type": "string"
  16194. },
  16195. "seq": {
  16196. "type": "integer",
  16197. "allOf": [
  16198. {
  16199. "minimum": 0
  16200. }
  16201. ]
  16202. },
  16203. "version": {
  16204. "type": "number",
  16205. "enum": [
  16206. 1
  16207. ]
  16208. }
  16209. },
  16210. "required": [
  16211. "aggregateID",
  16212. "seq",
  16213. "version"
  16214. ],
  16215. "additionalProperties": false
  16216. },
  16217. "location": {
  16218. "$ref": "#/components/schemas/Location.Ref"
  16219. },
  16220. "data": {
  16221. "type": "object",
  16222. "properties": {
  16223. "sessionID": {
  16224. "type": "string",
  16225. "allOf": [
  16226. {
  16227. "pattern": "^ses"
  16228. }
  16229. ]
  16230. },
  16231. "revert": {
  16232. "$ref": "#/components/schemas/Session.Revert"
  16233. }
  16234. },
  16235. "required": [
  16236. "sessionID",
  16237. "revert"
  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.revert.cleared": {
  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.revert.cleared"
  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. },
  16317. "required": [
  16318. "sessionID"
  16319. ],
  16320. "additionalProperties": false
  16321. }
  16322. },
  16323. "required": [
  16324. "id",
  16325. "created",
  16326. "type",
  16327. "durable",
  16328. "data"
  16329. ],
  16330. "additionalProperties": false
  16331. },
  16332. "session.revert.committed": {
  16333. "type": "object",
  16334. "properties": {
  16335. "id": {
  16336. "type": "string",
  16337. "allOf": [
  16338. {
  16339. "pattern": "^evt_"
  16340. }
  16341. ]
  16342. },
  16343. "created": {
  16344. "type": "number"
  16345. },
  16346. "metadata": {
  16347. "type": "object"
  16348. },
  16349. "type": {
  16350. "type": "string",
  16351. "enum": [
  16352. "session.revert.committed"
  16353. ]
  16354. },
  16355. "durable": {
  16356. "type": "object",
  16357. "properties": {
  16358. "aggregateID": {
  16359. "type": "string"
  16360. },
  16361. "seq": {
  16362. "type": "integer",
  16363. "allOf": [
  16364. {
  16365. "minimum": 0
  16366. }
  16367. ]
  16368. },
  16369. "version": {
  16370. "type": "number",
  16371. "enum": [
  16372. 1
  16373. ]
  16374. }
  16375. },
  16376. "required": [
  16377. "aggregateID",
  16378. "seq",
  16379. "version"
  16380. ],
  16381. "additionalProperties": false
  16382. },
  16383. "location": {
  16384. "$ref": "#/components/schemas/Location.Ref"
  16385. },
  16386. "data": {
  16387. "type": "object",
  16388. "properties": {
  16389. "sessionID": {
  16390. "type": "string",
  16391. "allOf": [
  16392. {
  16393. "pattern": "^ses"
  16394. }
  16395. ]
  16396. },
  16397. "to": {
  16398. "type": "string",
  16399. "allOf": [
  16400. {
  16401. "pattern": "^msg_"
  16402. }
  16403. ]
  16404. }
  16405. },
  16406. "required": [
  16407. "sessionID",
  16408. "to"
  16409. ],
  16410. "additionalProperties": false
  16411. }
  16412. },
  16413. "required": [
  16414. "id",
  16415. "created",
  16416. "type",
  16417. "durable",
  16418. "data"
  16419. ],
  16420. "additionalProperties": false
  16421. },
  16422. "Session.Event.Durable": {
  16423. "oneOf": [
  16424. {
  16425. "$ref": "#/components/schemas/session.agent.selected"
  16426. },
  16427. {
  16428. "$ref": "#/components/schemas/session.model.selected"
  16429. },
  16430. {
  16431. "$ref": "#/components/schemas/session.moved"
  16432. },
  16433. {
  16434. "$ref": "#/components/schemas/session.renamed"
  16435. },
  16436. {
  16437. "$ref": "#/components/schemas/session.deleted"
  16438. },
  16439. {
  16440. "$ref": "#/components/schemas/session.forked"
  16441. },
  16442. {
  16443. "$ref": "#/components/schemas/session.prompt.promoted"
  16444. },
  16445. {
  16446. "$ref": "#/components/schemas/session.prompt.admitted"
  16447. },
  16448. {
  16449. "$ref": "#/components/schemas/session.execution.started"
  16450. },
  16451. {
  16452. "$ref": "#/components/schemas/session.execution.succeeded"
  16453. },
  16454. {
  16455. "$ref": "#/components/schemas/session.execution.failed"
  16456. },
  16457. {
  16458. "$ref": "#/components/schemas/session.execution.interrupted"
  16459. },
  16460. {
  16461. "$ref": "#/components/schemas/session.instructions.updated"
  16462. },
  16463. {
  16464. "$ref": "#/components/schemas/session.synthetic"
  16465. },
  16466. {
  16467. "$ref": "#/components/schemas/session.skill.activated"
  16468. },
  16469. {
  16470. "$ref": "#/components/schemas/session.shell.started"
  16471. },
  16472. {
  16473. "$ref": "#/components/schemas/session.shell.ended"
  16474. },
  16475. {
  16476. "$ref": "#/components/schemas/session.step.started"
  16477. },
  16478. {
  16479. "$ref": "#/components/schemas/session.step.ended"
  16480. },
  16481. {
  16482. "$ref": "#/components/schemas/session.step.failed"
  16483. },
  16484. {
  16485. "$ref": "#/components/schemas/session.text.started"
  16486. },
  16487. {
  16488. "$ref": "#/components/schemas/session.text.ended"
  16489. },
  16490. {
  16491. "$ref": "#/components/schemas/session.reasoning.started"
  16492. },
  16493. {
  16494. "$ref": "#/components/schemas/session.reasoning.ended"
  16495. },
  16496. {
  16497. "$ref": "#/components/schemas/session.tool.input.started"
  16498. },
  16499. {
  16500. "$ref": "#/components/schemas/session.tool.input.ended"
  16501. },
  16502. {
  16503. "$ref": "#/components/schemas/session.tool.called"
  16504. },
  16505. {
  16506. "$ref": "#/components/schemas/session.tool.progress"
  16507. },
  16508. {
  16509. "$ref": "#/components/schemas/session.tool.success"
  16510. },
  16511. {
  16512. "$ref": "#/components/schemas/session.tool.failed"
  16513. },
  16514. {
  16515. "$ref": "#/components/schemas/session.retry.scheduled"
  16516. },
  16517. {
  16518. "$ref": "#/components/schemas/session.compaction.admitted"
  16519. },
  16520. {
  16521. "$ref": "#/components/schemas/session.compaction.started"
  16522. },
  16523. {
  16524. "$ref": "#/components/schemas/session.compaction.ended"
  16525. },
  16526. {
  16527. "$ref": "#/components/schemas/session.compaction.failed"
  16528. },
  16529. {
  16530. "$ref": "#/components/schemas/session.revert.staged"
  16531. },
  16532. {
  16533. "$ref": "#/components/schemas/session.revert.cleared"
  16534. },
  16535. {
  16536. "$ref": "#/components/schemas/session.revert.committed"
  16537. }
  16538. ]
  16539. },
  16540. "EventLog.Synced": {
  16541. "type": "object",
  16542. "properties": {
  16543. "type": {
  16544. "type": "string",
  16545. "enum": [
  16546. "log.synced"
  16547. ]
  16548. },
  16549. "aggregateID": {
  16550. "type": "string"
  16551. },
  16552. "seq": {
  16553. "type": "integer",
  16554. "allOf": [
  16555. {
  16556. "minimum": 0
  16557. }
  16558. ]
  16559. }
  16560. },
  16561. "required": [
  16562. "type",
  16563. "aggregateID"
  16564. ],
  16565. "additionalProperties": false,
  16566. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  16567. },
  16568. "SessionLogItem": {
  16569. "anyOf": [
  16570. {
  16571. "$ref": "#/components/schemas/Session.Event.Durable"
  16572. },
  16573. {
  16574. "$ref": "#/components/schemas/EventLog.Synced"
  16575. }
  16576. ]
  16577. },
  16578. "SessionLogItemStream": {
  16579. "type": "string",
  16580. "contentSchema": {
  16581. "$ref": "#/components/schemas/SessionLogItem"
  16582. },
  16583. "contentMediaType": "application/json"
  16584. },
  16585. "SessionMessagesResponse": {
  16586. "type": "object",
  16587. "properties": {
  16588. "data": {
  16589. "type": "array",
  16590. "items": {
  16591. "$ref": "#/components/schemas/Session.Message.Info"
  16592. }
  16593. },
  16594. "cursor": {
  16595. "type": "object",
  16596. "properties": {
  16597. "previous": {
  16598. "anyOf": [
  16599. {
  16600. "type": "string"
  16601. },
  16602. {
  16603. "type": "null"
  16604. }
  16605. ]
  16606. },
  16607. "next": {
  16608. "anyOf": [
  16609. {
  16610. "type": "string"
  16611. },
  16612. {
  16613. "type": "null"
  16614. }
  16615. ]
  16616. }
  16617. },
  16618. "additionalProperties": false
  16619. }
  16620. },
  16621. "required": [
  16622. "data",
  16623. "cursor"
  16624. ],
  16625. "additionalProperties": false
  16626. },
  16627. "Model.Capabilities": {
  16628. "type": "object",
  16629. "properties": {
  16630. "tools": {
  16631. "type": "boolean"
  16632. },
  16633. "input": {
  16634. "type": "array",
  16635. "items": {
  16636. "type": "string"
  16637. }
  16638. },
  16639. "output": {
  16640. "type": "array",
  16641. "items": {
  16642. "type": "string"
  16643. }
  16644. }
  16645. },
  16646. "required": [
  16647. "tools",
  16648. "input",
  16649. "output"
  16650. ],
  16651. "additionalProperties": false
  16652. },
  16653. "Model.Variant": {
  16654. "type": "object",
  16655. "properties": {
  16656. "id": {
  16657. "type": "string"
  16658. },
  16659. "settings": {
  16660. "type": "object"
  16661. },
  16662. "headers": {
  16663. "type": "object",
  16664. "additionalProperties": {
  16665. "type": "string"
  16666. }
  16667. },
  16668. "body": {
  16669. "type": "object"
  16670. }
  16671. },
  16672. "required": [
  16673. "id"
  16674. ],
  16675. "additionalProperties": false
  16676. },
  16677. "Money.USDPerMillionTokens": {
  16678. "type": "number"
  16679. },
  16680. "Model.Cost": {
  16681. "type": "object",
  16682. "properties": {
  16683. "tier": {
  16684. "type": "object",
  16685. "properties": {
  16686. "type": {
  16687. "type": "string",
  16688. "enum": [
  16689. "context"
  16690. ]
  16691. },
  16692. "size": {
  16693. "type": "integer"
  16694. }
  16695. },
  16696. "required": [
  16697. "type",
  16698. "size"
  16699. ],
  16700. "additionalProperties": false
  16701. },
  16702. "input": {
  16703. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16704. },
  16705. "output": {
  16706. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16707. },
  16708. "cache": {
  16709. "type": "object",
  16710. "properties": {
  16711. "read": {
  16712. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16713. },
  16714. "write": {
  16715. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  16716. }
  16717. },
  16718. "required": [
  16719. "read",
  16720. "write"
  16721. ],
  16722. "additionalProperties": false
  16723. }
  16724. },
  16725. "required": [
  16726. "input",
  16727. "output",
  16728. "cache"
  16729. ],
  16730. "additionalProperties": false
  16731. },
  16732. "Model.Info": {
  16733. "type": "object",
  16734. "properties": {
  16735. "id": {
  16736. "type": "string"
  16737. },
  16738. "modelID": {
  16739. "type": "string"
  16740. },
  16741. "providerID": {
  16742. "type": "string"
  16743. },
  16744. "family": {
  16745. "type": "string"
  16746. },
  16747. "name": {
  16748. "type": "string"
  16749. },
  16750. "package": {
  16751. "type": "string"
  16752. },
  16753. "settings": {
  16754. "type": "object"
  16755. },
  16756. "headers": {
  16757. "type": "object",
  16758. "additionalProperties": {
  16759. "type": "string"
  16760. }
  16761. },
  16762. "body": {
  16763. "type": "object"
  16764. },
  16765. "capabilities": {
  16766. "$ref": "#/components/schemas/Model.Capabilities"
  16767. },
  16768. "variants": {
  16769. "type": "array",
  16770. "items": {
  16771. "$ref": "#/components/schemas/Model.Variant"
  16772. }
  16773. },
  16774. "time": {
  16775. "type": "object",
  16776. "properties": {
  16777. "released": {
  16778. "type": "number"
  16779. }
  16780. },
  16781. "required": [
  16782. "released"
  16783. ],
  16784. "additionalProperties": false
  16785. },
  16786. "cost": {
  16787. "type": "array",
  16788. "items": {
  16789. "$ref": "#/components/schemas/Model.Cost"
  16790. }
  16791. },
  16792. "status": {
  16793. "type": "string",
  16794. "enum": [
  16795. "alpha",
  16796. "beta",
  16797. "deprecated",
  16798. "active"
  16799. ]
  16800. },
  16801. "enabled": {
  16802. "type": "boolean"
  16803. },
  16804. "limit": {
  16805. "type": "object",
  16806. "properties": {
  16807. "context": {
  16808. "type": "integer"
  16809. },
  16810. "input": {
  16811. "type": "integer"
  16812. },
  16813. "output": {
  16814. "type": "integer"
  16815. }
  16816. },
  16817. "required": [
  16818. "context",
  16819. "output"
  16820. ],
  16821. "additionalProperties": false
  16822. }
  16823. },
  16824. "required": [
  16825. "id",
  16826. "modelID",
  16827. "providerID",
  16828. "name",
  16829. "capabilities",
  16830. "variants",
  16831. "time",
  16832. "cost",
  16833. "status",
  16834. "enabled",
  16835. "limit"
  16836. ],
  16837. "additionalProperties": false
  16838. },
  16839. "GenerateTextResponse": {
  16840. "type": "object",
  16841. "properties": {
  16842. "data": {
  16843. "type": "object",
  16844. "properties": {
  16845. "text": {
  16846. "type": "string"
  16847. }
  16848. },
  16849. "required": [
  16850. "text"
  16851. ],
  16852. "additionalProperties": false
  16853. }
  16854. },
  16855. "required": [
  16856. "data"
  16857. ],
  16858. "additionalProperties": false
  16859. },
  16860. "ProviderV2.Info": {
  16861. "type": "object",
  16862. "properties": {
  16863. "id": {
  16864. "type": "string"
  16865. },
  16866. "integrationID": {
  16867. "type": "string"
  16868. },
  16869. "name": {
  16870. "type": "string"
  16871. },
  16872. "disabled": {
  16873. "type": "boolean"
  16874. },
  16875. "package": {
  16876. "type": "string"
  16877. },
  16878. "settings": {
  16879. "type": "object"
  16880. },
  16881. "headers": {
  16882. "type": "object",
  16883. "additionalProperties": {
  16884. "type": "string"
  16885. }
  16886. },
  16887. "body": {
  16888. "type": "object"
  16889. }
  16890. },
  16891. "required": [
  16892. "id",
  16893. "name",
  16894. "package"
  16895. ],
  16896. "additionalProperties": false
  16897. },
  16898. "ProviderNotFoundError": {
  16899. "type": "object",
  16900. "properties": {
  16901. "_tag": {
  16902. "type": "string",
  16903. "enum": [
  16904. "ProviderNotFoundError"
  16905. ]
  16906. },
  16907. "providerID": {
  16908. "type": "string"
  16909. },
  16910. "message": {
  16911. "type": "string"
  16912. }
  16913. },
  16914. "required": [
  16915. "_tag",
  16916. "providerID",
  16917. "message"
  16918. ],
  16919. "additionalProperties": false
  16920. },
  16921. "Integration.When": {
  16922. "type": "object",
  16923. "properties": {
  16924. "key": {
  16925. "type": "string"
  16926. },
  16927. "op": {
  16928. "type": "string",
  16929. "enum": [
  16930. "eq",
  16931. "neq"
  16932. ]
  16933. },
  16934. "value": {
  16935. "type": "string"
  16936. }
  16937. },
  16938. "required": [
  16939. "key",
  16940. "op",
  16941. "value"
  16942. ],
  16943. "additionalProperties": false
  16944. },
  16945. "Integration.TextPrompt": {
  16946. "type": "object",
  16947. "properties": {
  16948. "type": {
  16949. "type": "string",
  16950. "enum": [
  16951. "text"
  16952. ]
  16953. },
  16954. "key": {
  16955. "type": "string"
  16956. },
  16957. "message": {
  16958. "type": "string"
  16959. },
  16960. "placeholder": {
  16961. "type": "string"
  16962. },
  16963. "when": {
  16964. "$ref": "#/components/schemas/Integration.When"
  16965. }
  16966. },
  16967. "required": [
  16968. "type",
  16969. "key",
  16970. "message"
  16971. ],
  16972. "additionalProperties": false
  16973. },
  16974. "Integration.SelectPrompt": {
  16975. "type": "object",
  16976. "properties": {
  16977. "type": {
  16978. "type": "string",
  16979. "enum": [
  16980. "select"
  16981. ]
  16982. },
  16983. "key": {
  16984. "type": "string"
  16985. },
  16986. "message": {
  16987. "type": "string"
  16988. },
  16989. "options": {
  16990. "type": "array",
  16991. "items": {
  16992. "type": "object",
  16993. "properties": {
  16994. "label": {
  16995. "type": "string"
  16996. },
  16997. "value": {
  16998. "type": "string"
  16999. },
  17000. "hint": {
  17001. "type": "string"
  17002. }
  17003. },
  17004. "required": [
  17005. "label",
  17006. "value"
  17007. ],
  17008. "additionalProperties": false
  17009. }
  17010. },
  17011. "when": {
  17012. "$ref": "#/components/schemas/Integration.When"
  17013. }
  17014. },
  17015. "required": [
  17016. "type",
  17017. "key",
  17018. "message",
  17019. "options"
  17020. ],
  17021. "additionalProperties": false
  17022. },
  17023. "Integration.OAuthMethod": {
  17024. "type": "object",
  17025. "properties": {
  17026. "id": {
  17027. "type": "string"
  17028. },
  17029. "type": {
  17030. "type": "string",
  17031. "enum": [
  17032. "oauth"
  17033. ]
  17034. },
  17035. "label": {
  17036. "type": "string"
  17037. },
  17038. "prompts": {
  17039. "type": "array",
  17040. "items": {
  17041. "anyOf": [
  17042. {
  17043. "$ref": "#/components/schemas/Integration.TextPrompt"
  17044. },
  17045. {
  17046. "$ref": "#/components/schemas/Integration.SelectPrompt"
  17047. }
  17048. ]
  17049. }
  17050. }
  17051. },
  17052. "required": [
  17053. "id",
  17054. "type",
  17055. "label"
  17056. ],
  17057. "additionalProperties": false
  17058. },
  17059. "Integration.KeyMethod": {
  17060. "type": "object",
  17061. "properties": {
  17062. "type": {
  17063. "type": "string",
  17064. "enum": [
  17065. "key"
  17066. ]
  17067. },
  17068. "label": {
  17069. "type": "string"
  17070. }
  17071. },
  17072. "required": [
  17073. "type"
  17074. ],
  17075. "additionalProperties": false
  17076. },
  17077. "Integration.EnvMethod": {
  17078. "type": "object",
  17079. "properties": {
  17080. "type": {
  17081. "type": "string",
  17082. "enum": [
  17083. "env"
  17084. ]
  17085. },
  17086. "names": {
  17087. "type": "array",
  17088. "items": {
  17089. "type": "string"
  17090. }
  17091. }
  17092. },
  17093. "required": [
  17094. "type",
  17095. "names"
  17096. ],
  17097. "additionalProperties": false
  17098. },
  17099. "Integration.Method": {
  17100. "anyOf": [
  17101. {
  17102. "$ref": "#/components/schemas/Integration.OAuthMethod"
  17103. },
  17104. {
  17105. "$ref": "#/components/schemas/Integration.KeyMethod"
  17106. },
  17107. {
  17108. "$ref": "#/components/schemas/Integration.EnvMethod"
  17109. }
  17110. ]
  17111. },
  17112. "Connection.CredentialInfo": {
  17113. "type": "object",
  17114. "properties": {
  17115. "type": {
  17116. "type": "string",
  17117. "enum": [
  17118. "credential"
  17119. ]
  17120. },
  17121. "id": {
  17122. "type": "string"
  17123. },
  17124. "label": {
  17125. "type": "string"
  17126. }
  17127. },
  17128. "required": [
  17129. "type",
  17130. "id",
  17131. "label"
  17132. ],
  17133. "additionalProperties": false
  17134. },
  17135. "Connection.EnvInfo": {
  17136. "type": "object",
  17137. "properties": {
  17138. "type": {
  17139. "type": "string",
  17140. "enum": [
  17141. "env"
  17142. ]
  17143. },
  17144. "name": {
  17145. "type": "string"
  17146. }
  17147. },
  17148. "required": [
  17149. "type",
  17150. "name"
  17151. ],
  17152. "additionalProperties": false
  17153. },
  17154. "Connection.Info": {
  17155. "anyOf": [
  17156. {
  17157. "$ref": "#/components/schemas/Connection.CredentialInfo"
  17158. },
  17159. {
  17160. "$ref": "#/components/schemas/Connection.EnvInfo"
  17161. }
  17162. ]
  17163. },
  17164. "Integration.Info": {
  17165. "type": "object",
  17166. "properties": {
  17167. "id": {
  17168. "type": "string"
  17169. },
  17170. "name": {
  17171. "type": "string"
  17172. },
  17173. "methods": {
  17174. "type": "array",
  17175. "items": {
  17176. "$ref": "#/components/schemas/Integration.Method"
  17177. }
  17178. },
  17179. "connections": {
  17180. "type": "array",
  17181. "items": {
  17182. "$ref": "#/components/schemas/Connection.Info"
  17183. }
  17184. }
  17185. },
  17186. "required": [
  17187. "id",
  17188. "name",
  17189. "methods",
  17190. "connections"
  17191. ],
  17192. "additionalProperties": false
  17193. },
  17194. "Integration.Attempt": {
  17195. "type": "object",
  17196. "properties": {
  17197. "attemptID": {
  17198. "type": "string"
  17199. },
  17200. "url": {
  17201. "type": "string"
  17202. },
  17203. "instructions": {
  17204. "type": "string"
  17205. },
  17206. "mode": {
  17207. "type": "string",
  17208. "enum": [
  17209. "auto",
  17210. "code"
  17211. ]
  17212. },
  17213. "time": {
  17214. "type": "object",
  17215. "properties": {
  17216. "created": {
  17217. "anyOf": [
  17218. {
  17219. "anyOf": [
  17220. {
  17221. "type": "number"
  17222. },
  17223. {
  17224. "type": "string",
  17225. "enum": [
  17226. "NaN"
  17227. ]
  17228. },
  17229. {
  17230. "type": "string",
  17231. "enum": [
  17232. "Infinity"
  17233. ]
  17234. },
  17235. {
  17236. "type": "string",
  17237. "enum": [
  17238. "-Infinity"
  17239. ]
  17240. }
  17241. ]
  17242. },
  17243. {
  17244. "type": "string",
  17245. "enum": [
  17246. "Infinity",
  17247. "-Infinity",
  17248. "NaN"
  17249. ]
  17250. }
  17251. ]
  17252. },
  17253. "expires": {
  17254. "anyOf": [
  17255. {
  17256. "anyOf": [
  17257. {
  17258. "type": "number"
  17259. },
  17260. {
  17261. "type": "string",
  17262. "enum": [
  17263. "NaN"
  17264. ]
  17265. },
  17266. {
  17267. "type": "string",
  17268. "enum": [
  17269. "Infinity"
  17270. ]
  17271. },
  17272. {
  17273. "type": "string",
  17274. "enum": [
  17275. "-Infinity"
  17276. ]
  17277. }
  17278. ]
  17279. },
  17280. {
  17281. "type": "string",
  17282. "enum": [
  17283. "Infinity",
  17284. "-Infinity",
  17285. "NaN"
  17286. ]
  17287. }
  17288. ]
  17289. }
  17290. },
  17291. "required": [
  17292. "created",
  17293. "expires"
  17294. ],
  17295. "additionalProperties": false
  17296. }
  17297. },
  17298. "required": [
  17299. "attemptID",
  17300. "url",
  17301. "instructions",
  17302. "mode",
  17303. "time"
  17304. ],
  17305. "additionalProperties": false
  17306. },
  17307. "Integration.AttemptStatus": {
  17308. "anyOf": [
  17309. {
  17310. "type": "object",
  17311. "properties": {
  17312. "status": {
  17313. "type": "string",
  17314. "enum": [
  17315. "pending"
  17316. ]
  17317. },
  17318. "time": {
  17319. "type": "object",
  17320. "properties": {
  17321. "created": {
  17322. "anyOf": [
  17323. {
  17324. "anyOf": [
  17325. {
  17326. "type": "number"
  17327. },
  17328. {
  17329. "type": "string",
  17330. "enum": [
  17331. "NaN"
  17332. ]
  17333. },
  17334. {
  17335. "type": "string",
  17336. "enum": [
  17337. "Infinity"
  17338. ]
  17339. },
  17340. {
  17341. "type": "string",
  17342. "enum": [
  17343. "-Infinity"
  17344. ]
  17345. }
  17346. ]
  17347. },
  17348. {
  17349. "type": "string",
  17350. "enum": [
  17351. "Infinity",
  17352. "-Infinity",
  17353. "NaN"
  17354. ]
  17355. }
  17356. ]
  17357. },
  17358. "expires": {
  17359. "anyOf": [
  17360. {
  17361. "anyOf": [
  17362. {
  17363. "type": "number"
  17364. },
  17365. {
  17366. "type": "string",
  17367. "enum": [
  17368. "NaN"
  17369. ]
  17370. },
  17371. {
  17372. "type": "string",
  17373. "enum": [
  17374. "Infinity"
  17375. ]
  17376. },
  17377. {
  17378. "type": "string",
  17379. "enum": [
  17380. "-Infinity"
  17381. ]
  17382. }
  17383. ]
  17384. },
  17385. {
  17386. "type": "string",
  17387. "enum": [
  17388. "Infinity",
  17389. "-Infinity",
  17390. "NaN"
  17391. ]
  17392. }
  17393. ]
  17394. }
  17395. },
  17396. "required": [
  17397. "created",
  17398. "expires"
  17399. ],
  17400. "additionalProperties": false
  17401. }
  17402. },
  17403. "required": [
  17404. "status",
  17405. "time"
  17406. ],
  17407. "additionalProperties": false
  17408. },
  17409. {
  17410. "type": "object",
  17411. "properties": {
  17412. "status": {
  17413. "type": "string",
  17414. "enum": [
  17415. "complete"
  17416. ]
  17417. },
  17418. "time": {
  17419. "type": "object",
  17420. "properties": {
  17421. "created": {
  17422. "anyOf": [
  17423. {
  17424. "anyOf": [
  17425. {
  17426. "type": "number"
  17427. },
  17428. {
  17429. "type": "string",
  17430. "enum": [
  17431. "NaN"
  17432. ]
  17433. },
  17434. {
  17435. "type": "string",
  17436. "enum": [
  17437. "Infinity"
  17438. ]
  17439. },
  17440. {
  17441. "type": "string",
  17442. "enum": [
  17443. "-Infinity"
  17444. ]
  17445. }
  17446. ]
  17447. },
  17448. {
  17449. "type": "string",
  17450. "enum": [
  17451. "Infinity",
  17452. "-Infinity",
  17453. "NaN"
  17454. ]
  17455. }
  17456. ]
  17457. },
  17458. "expires": {
  17459. "anyOf": [
  17460. {
  17461. "anyOf": [
  17462. {
  17463. "type": "number"
  17464. },
  17465. {
  17466. "type": "string",
  17467. "enum": [
  17468. "NaN"
  17469. ]
  17470. },
  17471. {
  17472. "type": "string",
  17473. "enum": [
  17474. "Infinity"
  17475. ]
  17476. },
  17477. {
  17478. "type": "string",
  17479. "enum": [
  17480. "-Infinity"
  17481. ]
  17482. }
  17483. ]
  17484. },
  17485. {
  17486. "type": "string",
  17487. "enum": [
  17488. "Infinity",
  17489. "-Infinity",
  17490. "NaN"
  17491. ]
  17492. }
  17493. ]
  17494. }
  17495. },
  17496. "required": [
  17497. "created",
  17498. "expires"
  17499. ],
  17500. "additionalProperties": false
  17501. }
  17502. },
  17503. "required": [
  17504. "status",
  17505. "time"
  17506. ],
  17507. "additionalProperties": false
  17508. },
  17509. {
  17510. "type": "object",
  17511. "properties": {
  17512. "status": {
  17513. "type": "string",
  17514. "enum": [
  17515. "failed"
  17516. ]
  17517. },
  17518. "message": {
  17519. "type": "string"
  17520. },
  17521. "time": {
  17522. "type": "object",
  17523. "properties": {
  17524. "created": {
  17525. "anyOf": [
  17526. {
  17527. "anyOf": [
  17528. {
  17529. "type": "number"
  17530. },
  17531. {
  17532. "type": "string",
  17533. "enum": [
  17534. "NaN"
  17535. ]
  17536. },
  17537. {
  17538. "type": "string",
  17539. "enum": [
  17540. "Infinity"
  17541. ]
  17542. },
  17543. {
  17544. "type": "string",
  17545. "enum": [
  17546. "-Infinity"
  17547. ]
  17548. }
  17549. ]
  17550. },
  17551. {
  17552. "type": "string",
  17553. "enum": [
  17554. "Infinity",
  17555. "-Infinity",
  17556. "NaN"
  17557. ]
  17558. }
  17559. ]
  17560. },
  17561. "expires": {
  17562. "anyOf": [
  17563. {
  17564. "anyOf": [
  17565. {
  17566. "type": "number"
  17567. },
  17568. {
  17569. "type": "string",
  17570. "enum": [
  17571. "NaN"
  17572. ]
  17573. },
  17574. {
  17575. "type": "string",
  17576. "enum": [
  17577. "Infinity"
  17578. ]
  17579. },
  17580. {
  17581. "type": "string",
  17582. "enum": [
  17583. "-Infinity"
  17584. ]
  17585. }
  17586. ]
  17587. },
  17588. {
  17589. "type": "string",
  17590. "enum": [
  17591. "Infinity",
  17592. "-Infinity",
  17593. "NaN"
  17594. ]
  17595. }
  17596. ]
  17597. }
  17598. },
  17599. "required": [
  17600. "created",
  17601. "expires"
  17602. ],
  17603. "additionalProperties": false
  17604. }
  17605. },
  17606. "required": [
  17607. "status",
  17608. "message",
  17609. "time"
  17610. ],
  17611. "additionalProperties": false
  17612. },
  17613. {
  17614. "type": "object",
  17615. "properties": {
  17616. "status": {
  17617. "type": "string",
  17618. "enum": [
  17619. "expired"
  17620. ]
  17621. },
  17622. "time": {
  17623. "type": "object",
  17624. "properties": {
  17625. "created": {
  17626. "anyOf": [
  17627. {
  17628. "anyOf": [
  17629. {
  17630. "type": "number"
  17631. },
  17632. {
  17633. "type": "string",
  17634. "enum": [
  17635. "NaN"
  17636. ]
  17637. },
  17638. {
  17639. "type": "string",
  17640. "enum": [
  17641. "Infinity"
  17642. ]
  17643. },
  17644. {
  17645. "type": "string",
  17646. "enum": [
  17647. "-Infinity"
  17648. ]
  17649. }
  17650. ]
  17651. },
  17652. {
  17653. "type": "string",
  17654. "enum": [
  17655. "Infinity",
  17656. "-Infinity",
  17657. "NaN"
  17658. ]
  17659. }
  17660. ]
  17661. },
  17662. "expires": {
  17663. "anyOf": [
  17664. {
  17665. "anyOf": [
  17666. {
  17667. "type": "number"
  17668. },
  17669. {
  17670. "type": "string",
  17671. "enum": [
  17672. "NaN"
  17673. ]
  17674. },
  17675. {
  17676. "type": "string",
  17677. "enum": [
  17678. "Infinity"
  17679. ]
  17680. },
  17681. {
  17682. "type": "string",
  17683. "enum": [
  17684. "-Infinity"
  17685. ]
  17686. }
  17687. ]
  17688. },
  17689. {
  17690. "type": "string",
  17691. "enum": [
  17692. "Infinity",
  17693. "-Infinity",
  17694. "NaN"
  17695. ]
  17696. }
  17697. ]
  17698. }
  17699. },
  17700. "required": [
  17701. "created",
  17702. "expires"
  17703. ],
  17704. "additionalProperties": false
  17705. }
  17706. },
  17707. "required": [
  17708. "status",
  17709. "time"
  17710. ],
  17711. "additionalProperties": false
  17712. }
  17713. ]
  17714. },
  17715. "Mcp.Status.Connected": {
  17716. "type": "object",
  17717. "properties": {
  17718. "status": {
  17719. "type": "string",
  17720. "enum": [
  17721. "connected"
  17722. ]
  17723. }
  17724. },
  17725. "required": [
  17726. "status"
  17727. ],
  17728. "additionalProperties": false
  17729. },
  17730. "Mcp.Status.Pending": {
  17731. "type": "object",
  17732. "properties": {
  17733. "status": {
  17734. "type": "string",
  17735. "enum": [
  17736. "pending"
  17737. ]
  17738. }
  17739. },
  17740. "required": [
  17741. "status"
  17742. ],
  17743. "additionalProperties": false
  17744. },
  17745. "Mcp.Status.Disabled": {
  17746. "type": "object",
  17747. "properties": {
  17748. "status": {
  17749. "type": "string",
  17750. "enum": [
  17751. "disabled"
  17752. ]
  17753. }
  17754. },
  17755. "required": [
  17756. "status"
  17757. ],
  17758. "additionalProperties": false
  17759. },
  17760. "Mcp.Status.Failed": {
  17761. "type": "object",
  17762. "properties": {
  17763. "status": {
  17764. "type": "string",
  17765. "enum": [
  17766. "failed"
  17767. ]
  17768. },
  17769. "error": {
  17770. "type": "string"
  17771. }
  17772. },
  17773. "required": [
  17774. "status",
  17775. "error"
  17776. ],
  17777. "additionalProperties": false
  17778. },
  17779. "Mcp.Status.NeedsAuth": {
  17780. "type": "object",
  17781. "properties": {
  17782. "status": {
  17783. "type": "string",
  17784. "enum": [
  17785. "needs_auth"
  17786. ]
  17787. }
  17788. },
  17789. "required": [
  17790. "status"
  17791. ],
  17792. "additionalProperties": false
  17793. },
  17794. "Mcp.Status.NeedsClientRegistration": {
  17795. "type": "object",
  17796. "properties": {
  17797. "status": {
  17798. "type": "string",
  17799. "enum": [
  17800. "needs_client_registration"
  17801. ]
  17802. },
  17803. "error": {
  17804. "type": "string"
  17805. }
  17806. },
  17807. "required": [
  17808. "status",
  17809. "error"
  17810. ],
  17811. "additionalProperties": false
  17812. },
  17813. "Mcp.Server": {
  17814. "type": "object",
  17815. "properties": {
  17816. "name": {
  17817. "type": "string"
  17818. },
  17819. "status": {
  17820. "anyOf": [
  17821. {
  17822. "$ref": "#/components/schemas/Mcp.Status.Connected"
  17823. },
  17824. {
  17825. "$ref": "#/components/schemas/Mcp.Status.Pending"
  17826. },
  17827. {
  17828. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  17829. },
  17830. {
  17831. "$ref": "#/components/schemas/Mcp.Status.Failed"
  17832. },
  17833. {
  17834. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  17835. },
  17836. {
  17837. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  17838. }
  17839. ]
  17840. },
  17841. "integrationID": {
  17842. "type": "string"
  17843. }
  17844. },
  17845. "required": [
  17846. "name",
  17847. "status"
  17848. ],
  17849. "additionalProperties": false
  17850. },
  17851. "Mcp.Resource": {
  17852. "type": "object",
  17853. "properties": {
  17854. "server": {
  17855. "type": "string"
  17856. },
  17857. "name": {
  17858. "type": "string"
  17859. },
  17860. "uri": {
  17861. "type": "string"
  17862. },
  17863. "description": {
  17864. "type": "string"
  17865. },
  17866. "mimeType": {
  17867. "type": "string"
  17868. }
  17869. },
  17870. "required": [
  17871. "server",
  17872. "name",
  17873. "uri"
  17874. ],
  17875. "additionalProperties": false
  17876. },
  17877. "Mcp.ResourceTemplate": {
  17878. "type": "object",
  17879. "properties": {
  17880. "server": {
  17881. "type": "string"
  17882. },
  17883. "name": {
  17884. "type": "string"
  17885. },
  17886. "uriTemplate": {
  17887. "type": "string"
  17888. },
  17889. "description": {
  17890. "type": "string"
  17891. },
  17892. "mimeType": {
  17893. "type": "string"
  17894. }
  17895. },
  17896. "required": [
  17897. "server",
  17898. "name",
  17899. "uriTemplate"
  17900. ],
  17901. "additionalProperties": false
  17902. },
  17903. "Mcp.ResourceCatalog": {
  17904. "type": "object",
  17905. "properties": {
  17906. "resources": {
  17907. "type": "array",
  17908. "items": {
  17909. "$ref": "#/components/schemas/Mcp.Resource"
  17910. }
  17911. },
  17912. "templates": {
  17913. "type": "array",
  17914. "items": {
  17915. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  17916. }
  17917. }
  17918. },
  17919. "required": [
  17920. "resources",
  17921. "templates"
  17922. ],
  17923. "additionalProperties": false
  17924. },
  17925. "Project.Vcs": {
  17926. "type": "string",
  17927. "enum": [
  17928. "git",
  17929. "hg"
  17930. ]
  17931. },
  17932. "Project.Icon": {
  17933. "type": "object",
  17934. "properties": {
  17935. "url": {
  17936. "type": "string"
  17937. },
  17938. "override": {
  17939. "type": "string"
  17940. },
  17941. "color": {
  17942. "type": "string"
  17943. }
  17944. },
  17945. "additionalProperties": false
  17946. },
  17947. "Project.Commands": {
  17948. "type": "object",
  17949. "properties": {
  17950. "start": {
  17951. "type": "string",
  17952. "description": "Startup script to run when creating a new workspace (worktree)"
  17953. }
  17954. },
  17955. "additionalProperties": false
  17956. },
  17957. "Project.Time": {
  17958. "type": "object",
  17959. "properties": {
  17960. "created": {
  17961. "type": "integer",
  17962. "allOf": [
  17963. {
  17964. "minimum": 0
  17965. }
  17966. ]
  17967. },
  17968. "updated": {
  17969. "type": "integer",
  17970. "allOf": [
  17971. {
  17972. "minimum": 0
  17973. }
  17974. ]
  17975. },
  17976. "initialized": {
  17977. "type": "integer",
  17978. "allOf": [
  17979. {
  17980. "minimum": 0
  17981. }
  17982. ]
  17983. }
  17984. },
  17985. "required": [
  17986. "created",
  17987. "updated"
  17988. ],
  17989. "additionalProperties": false
  17990. },
  17991. "Project": {
  17992. "type": "object",
  17993. "properties": {
  17994. "id": {
  17995. "type": "string"
  17996. },
  17997. "worktree": {
  17998. "type": "string"
  17999. },
  18000. "vcs": {
  18001. "$ref": "#/components/schemas/Project.Vcs"
  18002. },
  18003. "name": {
  18004. "type": "string"
  18005. },
  18006. "icon": {
  18007. "$ref": "#/components/schemas/Project.Icon"
  18008. },
  18009. "commands": {
  18010. "$ref": "#/components/schemas/Project.Commands"
  18011. },
  18012. "time": {
  18013. "$ref": "#/components/schemas/Project.Time"
  18014. },
  18015. "sandboxes": {
  18016. "type": "array",
  18017. "items": {
  18018. "type": "string"
  18019. }
  18020. }
  18021. },
  18022. "required": [
  18023. "id",
  18024. "worktree",
  18025. "time",
  18026. "sandboxes"
  18027. ],
  18028. "additionalProperties": false
  18029. },
  18030. "Project.Current": {
  18031. "type": "object",
  18032. "properties": {
  18033. "id": {
  18034. "type": "string"
  18035. },
  18036. "directory": {
  18037. "type": "string"
  18038. }
  18039. },
  18040. "required": [
  18041. "id",
  18042. "directory"
  18043. ],
  18044. "additionalProperties": false
  18045. },
  18046. "Project.Directory": {
  18047. "type": "object",
  18048. "properties": {
  18049. "directory": {
  18050. "type": "string"
  18051. },
  18052. "strategy": {
  18053. "type": "string"
  18054. }
  18055. },
  18056. "required": [
  18057. "directory"
  18058. ],
  18059. "additionalProperties": false
  18060. },
  18061. "Project.Directories": {
  18062. "type": "array",
  18063. "items": {
  18064. "$ref": "#/components/schemas/Project.Directory"
  18065. }
  18066. },
  18067. "Form.Metadata": {
  18068. "type": "object"
  18069. },
  18070. "Form.When": {
  18071. "type": "object",
  18072. "properties": {
  18073. "key": {
  18074. "type": "string"
  18075. },
  18076. "op": {
  18077. "type": "string",
  18078. "enum": [
  18079. "eq",
  18080. "neq"
  18081. ]
  18082. },
  18083. "value": {
  18084. "anyOf": [
  18085. {
  18086. "type": "string"
  18087. },
  18088. {
  18089. "anyOf": [
  18090. {
  18091. "anyOf": [
  18092. {
  18093. "type": "number"
  18094. },
  18095. {
  18096. "type": "string",
  18097. "enum": [
  18098. "NaN"
  18099. ]
  18100. },
  18101. {
  18102. "type": "string",
  18103. "enum": [
  18104. "Infinity"
  18105. ]
  18106. },
  18107. {
  18108. "type": "string",
  18109. "enum": [
  18110. "-Infinity"
  18111. ]
  18112. }
  18113. ]
  18114. },
  18115. {
  18116. "type": "string",
  18117. "enum": [
  18118. "Infinity",
  18119. "-Infinity",
  18120. "NaN"
  18121. ]
  18122. }
  18123. ]
  18124. },
  18125. {
  18126. "type": "boolean"
  18127. }
  18128. ]
  18129. }
  18130. },
  18131. "required": [
  18132. "key",
  18133. "op",
  18134. "value"
  18135. ],
  18136. "additionalProperties": false
  18137. },
  18138. "Form.Option": {
  18139. "type": "object",
  18140. "properties": {
  18141. "value": {
  18142. "type": "string"
  18143. },
  18144. "label": {
  18145. "type": "string"
  18146. },
  18147. "description": {
  18148. "type": "string"
  18149. }
  18150. },
  18151. "required": [
  18152. "value",
  18153. "label"
  18154. ],
  18155. "additionalProperties": false
  18156. },
  18157. "Form.StringField": {
  18158. "type": "object",
  18159. "properties": {
  18160. "key": {
  18161. "type": "string"
  18162. },
  18163. "title": {
  18164. "type": "string"
  18165. },
  18166. "description": {
  18167. "type": "string"
  18168. },
  18169. "required": {
  18170. "type": "boolean"
  18171. },
  18172. "when": {
  18173. "type": "array",
  18174. "items": {
  18175. "$ref": "#/components/schemas/Form.When"
  18176. }
  18177. },
  18178. "type": {
  18179. "type": "string",
  18180. "enum": [
  18181. "string"
  18182. ]
  18183. },
  18184. "format": {
  18185. "type": "string",
  18186. "enum": [
  18187. "email",
  18188. "uri",
  18189. "date",
  18190. "date-time"
  18191. ]
  18192. },
  18193. "minLength": {
  18194. "type": "integer",
  18195. "allOf": [
  18196. {
  18197. "minimum": 0
  18198. }
  18199. ]
  18200. },
  18201. "maxLength": {
  18202. "type": "integer",
  18203. "allOf": [
  18204. {
  18205. "minimum": 0
  18206. }
  18207. ]
  18208. },
  18209. "pattern": {
  18210. "type": "string"
  18211. },
  18212. "placeholder": {
  18213. "type": "string"
  18214. },
  18215. "default": {
  18216. "type": "string"
  18217. },
  18218. "options": {
  18219. "type": "array",
  18220. "items": {
  18221. "$ref": "#/components/schemas/Form.Option"
  18222. }
  18223. },
  18224. "custom": {
  18225. "type": "boolean"
  18226. }
  18227. },
  18228. "required": [
  18229. "key",
  18230. "type"
  18231. ],
  18232. "additionalProperties": false
  18233. },
  18234. "Form.NumberField": {
  18235. "type": "object",
  18236. "properties": {
  18237. "key": {
  18238. "type": "string"
  18239. },
  18240. "title": {
  18241. "type": "string"
  18242. },
  18243. "description": {
  18244. "type": "string"
  18245. },
  18246. "required": {
  18247. "type": "boolean"
  18248. },
  18249. "when": {
  18250. "type": "array",
  18251. "items": {
  18252. "$ref": "#/components/schemas/Form.When"
  18253. }
  18254. },
  18255. "type": {
  18256. "type": "string",
  18257. "enum": [
  18258. "number"
  18259. ]
  18260. },
  18261. "minimum": {
  18262. "anyOf": [
  18263. {
  18264. "anyOf": [
  18265. {
  18266. "type": "number"
  18267. },
  18268. {
  18269. "type": "string",
  18270. "enum": [
  18271. "NaN"
  18272. ]
  18273. },
  18274. {
  18275. "type": "string",
  18276. "enum": [
  18277. "Infinity"
  18278. ]
  18279. },
  18280. {
  18281. "type": "string",
  18282. "enum": [
  18283. "-Infinity"
  18284. ]
  18285. }
  18286. ]
  18287. },
  18288. {
  18289. "type": "string",
  18290. "enum": [
  18291. "Infinity",
  18292. "-Infinity",
  18293. "NaN"
  18294. ]
  18295. }
  18296. ]
  18297. },
  18298. "maximum": {
  18299. "anyOf": [
  18300. {
  18301. "anyOf": [
  18302. {
  18303. "type": "number"
  18304. },
  18305. {
  18306. "type": "string",
  18307. "enum": [
  18308. "NaN"
  18309. ]
  18310. },
  18311. {
  18312. "type": "string",
  18313. "enum": [
  18314. "Infinity"
  18315. ]
  18316. },
  18317. {
  18318. "type": "string",
  18319. "enum": [
  18320. "-Infinity"
  18321. ]
  18322. }
  18323. ]
  18324. },
  18325. {
  18326. "type": "string",
  18327. "enum": [
  18328. "Infinity",
  18329. "-Infinity",
  18330. "NaN"
  18331. ]
  18332. }
  18333. ]
  18334. },
  18335. "default": {
  18336. "anyOf": [
  18337. {
  18338. "anyOf": [
  18339. {
  18340. "type": "number"
  18341. },
  18342. {
  18343. "type": "string",
  18344. "enum": [
  18345. "NaN"
  18346. ]
  18347. },
  18348. {
  18349. "type": "string",
  18350. "enum": [
  18351. "Infinity"
  18352. ]
  18353. },
  18354. {
  18355. "type": "string",
  18356. "enum": [
  18357. "-Infinity"
  18358. ]
  18359. }
  18360. ]
  18361. },
  18362. {
  18363. "type": "string",
  18364. "enum": [
  18365. "Infinity",
  18366. "-Infinity",
  18367. "NaN"
  18368. ]
  18369. }
  18370. ]
  18371. }
  18372. },
  18373. "required": [
  18374. "key",
  18375. "type"
  18376. ],
  18377. "additionalProperties": false
  18378. },
  18379. "Form.IntegerField": {
  18380. "type": "object",
  18381. "properties": {
  18382. "key": {
  18383. "type": "string"
  18384. },
  18385. "title": {
  18386. "type": "string"
  18387. },
  18388. "description": {
  18389. "type": "string"
  18390. },
  18391. "required": {
  18392. "type": "boolean"
  18393. },
  18394. "when": {
  18395. "type": "array",
  18396. "items": {
  18397. "$ref": "#/components/schemas/Form.When"
  18398. }
  18399. },
  18400. "type": {
  18401. "type": "string",
  18402. "enum": [
  18403. "integer"
  18404. ]
  18405. },
  18406. "minimum": {
  18407. "anyOf": [
  18408. {
  18409. "anyOf": [
  18410. {
  18411. "type": "number"
  18412. },
  18413. {
  18414. "type": "string",
  18415. "enum": [
  18416. "NaN"
  18417. ]
  18418. },
  18419. {
  18420. "type": "string",
  18421. "enum": [
  18422. "Infinity"
  18423. ]
  18424. },
  18425. {
  18426. "type": "string",
  18427. "enum": [
  18428. "-Infinity"
  18429. ]
  18430. }
  18431. ]
  18432. },
  18433. {
  18434. "type": "string",
  18435. "enum": [
  18436. "Infinity",
  18437. "-Infinity",
  18438. "NaN"
  18439. ]
  18440. }
  18441. ]
  18442. },
  18443. "maximum": {
  18444. "anyOf": [
  18445. {
  18446. "anyOf": [
  18447. {
  18448. "type": "number"
  18449. },
  18450. {
  18451. "type": "string",
  18452. "enum": [
  18453. "NaN"
  18454. ]
  18455. },
  18456. {
  18457. "type": "string",
  18458. "enum": [
  18459. "Infinity"
  18460. ]
  18461. },
  18462. {
  18463. "type": "string",
  18464. "enum": [
  18465. "-Infinity"
  18466. ]
  18467. }
  18468. ]
  18469. },
  18470. {
  18471. "type": "string",
  18472. "enum": [
  18473. "Infinity",
  18474. "-Infinity",
  18475. "NaN"
  18476. ]
  18477. }
  18478. ]
  18479. },
  18480. "default": {
  18481. "anyOf": [
  18482. {
  18483. "anyOf": [
  18484. {
  18485. "type": "number"
  18486. },
  18487. {
  18488. "type": "string",
  18489. "enum": [
  18490. "NaN"
  18491. ]
  18492. },
  18493. {
  18494. "type": "string",
  18495. "enum": [
  18496. "Infinity"
  18497. ]
  18498. },
  18499. {
  18500. "type": "string",
  18501. "enum": [
  18502. "-Infinity"
  18503. ]
  18504. }
  18505. ]
  18506. },
  18507. {
  18508. "type": "string",
  18509. "enum": [
  18510. "Infinity",
  18511. "-Infinity",
  18512. "NaN"
  18513. ]
  18514. }
  18515. ]
  18516. }
  18517. },
  18518. "required": [
  18519. "key",
  18520. "type"
  18521. ],
  18522. "additionalProperties": false
  18523. },
  18524. "Form.BooleanField": {
  18525. "type": "object",
  18526. "properties": {
  18527. "key": {
  18528. "type": "string"
  18529. },
  18530. "title": {
  18531. "type": "string"
  18532. },
  18533. "description": {
  18534. "type": "string"
  18535. },
  18536. "required": {
  18537. "type": "boolean"
  18538. },
  18539. "when": {
  18540. "type": "array",
  18541. "items": {
  18542. "$ref": "#/components/schemas/Form.When"
  18543. }
  18544. },
  18545. "type": {
  18546. "type": "string",
  18547. "enum": [
  18548. "boolean"
  18549. ]
  18550. },
  18551. "default": {
  18552. "type": "boolean"
  18553. }
  18554. },
  18555. "required": [
  18556. "key",
  18557. "type"
  18558. ],
  18559. "additionalProperties": false
  18560. },
  18561. "Form.MultiselectField": {
  18562. "type": "object",
  18563. "properties": {
  18564. "key": {
  18565. "type": "string"
  18566. },
  18567. "title": {
  18568. "type": "string"
  18569. },
  18570. "description": {
  18571. "type": "string"
  18572. },
  18573. "required": {
  18574. "type": "boolean"
  18575. },
  18576. "when": {
  18577. "type": "array",
  18578. "items": {
  18579. "$ref": "#/components/schemas/Form.When"
  18580. }
  18581. },
  18582. "type": {
  18583. "type": "string",
  18584. "enum": [
  18585. "multiselect"
  18586. ]
  18587. },
  18588. "options": {
  18589. "type": "array",
  18590. "items": {
  18591. "$ref": "#/components/schemas/Form.Option"
  18592. }
  18593. },
  18594. "minItems": {
  18595. "type": "integer",
  18596. "allOf": [
  18597. {
  18598. "minimum": 0
  18599. }
  18600. ]
  18601. },
  18602. "maxItems": {
  18603. "type": "integer",
  18604. "allOf": [
  18605. {
  18606. "minimum": 0
  18607. }
  18608. ]
  18609. },
  18610. "custom": {
  18611. "type": "boolean"
  18612. },
  18613. "default": {
  18614. "type": "array",
  18615. "items": {
  18616. "type": "string"
  18617. }
  18618. }
  18619. },
  18620. "required": [
  18621. "key",
  18622. "type",
  18623. "options"
  18624. ],
  18625. "additionalProperties": false
  18626. },
  18627. "Form.FormInfo": {
  18628. "type": "object",
  18629. "properties": {
  18630. "id": {
  18631. "type": "string",
  18632. "allOf": [
  18633. {
  18634. "pattern": "^frm_"
  18635. }
  18636. ]
  18637. },
  18638. "sessionID": {
  18639. "type": "string"
  18640. },
  18641. "title": {
  18642. "type": "string"
  18643. },
  18644. "metadata": {
  18645. "$ref": "#/components/schemas/Form.Metadata"
  18646. },
  18647. "mode": {
  18648. "type": "string",
  18649. "enum": [
  18650. "form"
  18651. ]
  18652. },
  18653. "fields": {
  18654. "type": "array",
  18655. "items": {
  18656. "anyOf": [
  18657. {
  18658. "$ref": "#/components/schemas/Form.StringField"
  18659. },
  18660. {
  18661. "$ref": "#/components/schemas/Form.NumberField"
  18662. },
  18663. {
  18664. "$ref": "#/components/schemas/Form.IntegerField"
  18665. },
  18666. {
  18667. "$ref": "#/components/schemas/Form.BooleanField"
  18668. },
  18669. {
  18670. "$ref": "#/components/schemas/Form.MultiselectField"
  18671. }
  18672. ]
  18673. }
  18674. }
  18675. },
  18676. "required": [
  18677. "id",
  18678. "sessionID",
  18679. "mode",
  18680. "fields"
  18681. ],
  18682. "additionalProperties": false
  18683. },
  18684. "Form.UrlInfo": {
  18685. "type": "object",
  18686. "properties": {
  18687. "id": {
  18688. "type": "string",
  18689. "allOf": [
  18690. {
  18691. "pattern": "^frm_"
  18692. }
  18693. ]
  18694. },
  18695. "sessionID": {
  18696. "type": "string"
  18697. },
  18698. "title": {
  18699. "type": "string"
  18700. },
  18701. "metadata": {
  18702. "$ref": "#/components/schemas/Form.Metadata"
  18703. },
  18704. "mode": {
  18705. "type": "string",
  18706. "enum": [
  18707. "url"
  18708. ]
  18709. },
  18710. "url": {
  18711. "type": "string"
  18712. }
  18713. },
  18714. "required": [
  18715. "id",
  18716. "sessionID",
  18717. "mode",
  18718. "url"
  18719. ],
  18720. "additionalProperties": false
  18721. },
  18722. "Form.CreatePayload": {
  18723. "type": "object",
  18724. "properties": {
  18725. "id": {
  18726. "anyOf": [
  18727. {
  18728. "type": "string",
  18729. "allOf": [
  18730. {
  18731. "pattern": "^frm_"
  18732. }
  18733. ]
  18734. },
  18735. {
  18736. "type": "null"
  18737. }
  18738. ]
  18739. },
  18740. "title": {
  18741. "type": "string"
  18742. },
  18743. "metadata": {
  18744. "$ref": "#/components/schemas/Form.Metadata"
  18745. },
  18746. "mode": {
  18747. "type": "string",
  18748. "enum": [
  18749. "form",
  18750. "url"
  18751. ]
  18752. },
  18753. "fields": {
  18754. "anyOf": [
  18755. {
  18756. "type": "array",
  18757. "items": {
  18758. "anyOf": [
  18759. {
  18760. "$ref": "#/components/schemas/Form.StringField"
  18761. },
  18762. {
  18763. "$ref": "#/components/schemas/Form.NumberField"
  18764. },
  18765. {
  18766. "$ref": "#/components/schemas/Form.IntegerField"
  18767. },
  18768. {
  18769. "$ref": "#/components/schemas/Form.BooleanField"
  18770. },
  18771. {
  18772. "$ref": "#/components/schemas/Form.MultiselectField"
  18773. }
  18774. ]
  18775. }
  18776. },
  18777. {
  18778. "type": "null"
  18779. }
  18780. ]
  18781. },
  18782. "url": {
  18783. "anyOf": [
  18784. {
  18785. "type": "string"
  18786. },
  18787. {
  18788. "type": "null"
  18789. }
  18790. ]
  18791. }
  18792. },
  18793. "required": [
  18794. "mode"
  18795. ],
  18796. "additionalProperties": false
  18797. },
  18798. "FormNotFoundError": {
  18799. "type": "object",
  18800. "properties": {
  18801. "_tag": {
  18802. "type": "string",
  18803. "enum": [
  18804. "FormNotFoundError"
  18805. ]
  18806. },
  18807. "id": {
  18808. "type": "string"
  18809. },
  18810. "message": {
  18811. "type": "string"
  18812. }
  18813. },
  18814. "required": [
  18815. "_tag",
  18816. "id",
  18817. "message"
  18818. ],
  18819. "additionalProperties": false
  18820. },
  18821. "Form.Value": {
  18822. "anyOf": [
  18823. {
  18824. "type": "string"
  18825. },
  18826. {
  18827. "anyOf": [
  18828. {
  18829. "anyOf": [
  18830. {
  18831. "type": "number"
  18832. },
  18833. {
  18834. "type": "string",
  18835. "enum": [
  18836. "NaN"
  18837. ]
  18838. },
  18839. {
  18840. "type": "string",
  18841. "enum": [
  18842. "Infinity"
  18843. ]
  18844. },
  18845. {
  18846. "type": "string",
  18847. "enum": [
  18848. "-Infinity"
  18849. ]
  18850. }
  18851. ]
  18852. },
  18853. {
  18854. "type": "string",
  18855. "enum": [
  18856. "Infinity",
  18857. "-Infinity",
  18858. "NaN"
  18859. ]
  18860. }
  18861. ]
  18862. },
  18863. {
  18864. "type": "boolean"
  18865. },
  18866. {
  18867. "type": "array",
  18868. "items": {
  18869. "type": "string"
  18870. }
  18871. }
  18872. ]
  18873. },
  18874. "Form.Answer": {
  18875. "type": "object",
  18876. "additionalProperties": {
  18877. "$ref": "#/components/schemas/Form.Value"
  18878. }
  18879. },
  18880. "Form.State": {
  18881. "anyOf": [
  18882. {
  18883. "type": "object",
  18884. "properties": {
  18885. "status": {
  18886. "type": "string",
  18887. "enum": [
  18888. "pending"
  18889. ]
  18890. }
  18891. },
  18892. "required": [
  18893. "status"
  18894. ],
  18895. "additionalProperties": false
  18896. },
  18897. {
  18898. "type": "object",
  18899. "properties": {
  18900. "status": {
  18901. "type": "string",
  18902. "enum": [
  18903. "answered"
  18904. ]
  18905. },
  18906. "answer": {
  18907. "$ref": "#/components/schemas/Form.Answer"
  18908. }
  18909. },
  18910. "required": [
  18911. "status",
  18912. "answer"
  18913. ],
  18914. "additionalProperties": false
  18915. },
  18916. {
  18917. "type": "object",
  18918. "properties": {
  18919. "status": {
  18920. "type": "string",
  18921. "enum": [
  18922. "cancelled"
  18923. ]
  18924. }
  18925. },
  18926. "required": [
  18927. "status"
  18928. ],
  18929. "additionalProperties": false
  18930. }
  18931. ]
  18932. },
  18933. "Form.Reply": {
  18934. "type": "object",
  18935. "properties": {
  18936. "answer": {
  18937. "$ref": "#/components/schemas/Form.Answer"
  18938. }
  18939. },
  18940. "required": [
  18941. "answer"
  18942. ],
  18943. "additionalProperties": false
  18944. },
  18945. "FormAlreadySettledError": {
  18946. "type": "object",
  18947. "properties": {
  18948. "_tag": {
  18949. "type": "string",
  18950. "enum": [
  18951. "FormAlreadySettledError"
  18952. ]
  18953. },
  18954. "id": {
  18955. "type": "string"
  18956. },
  18957. "message": {
  18958. "type": "string"
  18959. }
  18960. },
  18961. "required": [
  18962. "_tag",
  18963. "id",
  18964. "message"
  18965. ],
  18966. "additionalProperties": false
  18967. },
  18968. "FormInvalidAnswerError": {
  18969. "type": "object",
  18970. "properties": {
  18971. "_tag": {
  18972. "type": "string",
  18973. "enum": [
  18974. "FormInvalidAnswerError"
  18975. ]
  18976. },
  18977. "id": {
  18978. "type": "string"
  18979. },
  18980. "message": {
  18981. "type": "string"
  18982. }
  18983. },
  18984. "required": [
  18985. "_tag",
  18986. "id",
  18987. "message"
  18988. ],
  18989. "additionalProperties": false
  18990. },
  18991. "PermissionV2.Source": {
  18992. "anyOf": [
  18993. {
  18994. "type": "object",
  18995. "properties": {
  18996. "type": {
  18997. "type": "string",
  18998. "enum": [
  18999. "tool"
  19000. ]
  19001. },
  19002. "messageID": {
  19003. "type": "string"
  19004. },
  19005. "callID": {
  19006. "type": "string"
  19007. }
  19008. },
  19009. "required": [
  19010. "type",
  19011. "messageID",
  19012. "callID"
  19013. ],
  19014. "additionalProperties": false
  19015. }
  19016. ]
  19017. },
  19018. "PermissionV2.Request": {
  19019. "type": "object",
  19020. "properties": {
  19021. "id": {
  19022. "type": "string",
  19023. "allOf": [
  19024. {
  19025. "pattern": "^per"
  19026. }
  19027. ]
  19028. },
  19029. "sessionID": {
  19030. "type": "string",
  19031. "allOf": [
  19032. {
  19033. "pattern": "^ses"
  19034. }
  19035. ]
  19036. },
  19037. "action": {
  19038. "type": "string"
  19039. },
  19040. "resources": {
  19041. "type": "array",
  19042. "items": {
  19043. "type": "string"
  19044. }
  19045. },
  19046. "save": {
  19047. "type": "array",
  19048. "items": {
  19049. "type": "string"
  19050. }
  19051. },
  19052. "metadata": {
  19053. "type": "object"
  19054. },
  19055. "source": {
  19056. "$ref": "#/components/schemas/PermissionV2.Source"
  19057. }
  19058. },
  19059. "required": [
  19060. "id",
  19061. "sessionID",
  19062. "action",
  19063. "resources"
  19064. ],
  19065. "additionalProperties": false
  19066. },
  19067. "PermissionSaved.Info": {
  19068. "type": "object",
  19069. "properties": {
  19070. "id": {
  19071. "type": "string"
  19072. },
  19073. "projectID": {
  19074. "type": "string"
  19075. },
  19076. "action": {
  19077. "type": "string"
  19078. },
  19079. "resource": {
  19080. "type": "string"
  19081. }
  19082. },
  19083. "required": [
  19084. "id",
  19085. "projectID",
  19086. "action",
  19087. "resource"
  19088. ],
  19089. "additionalProperties": false
  19090. },
  19091. "PermissionNotFoundError": {
  19092. "type": "object",
  19093. "properties": {
  19094. "_tag": {
  19095. "type": "string",
  19096. "enum": [
  19097. "PermissionNotFoundError"
  19098. ]
  19099. },
  19100. "requestID": {
  19101. "type": "string"
  19102. },
  19103. "message": {
  19104. "type": "string"
  19105. }
  19106. },
  19107. "required": [
  19108. "_tag",
  19109. "requestID",
  19110. "message"
  19111. ],
  19112. "additionalProperties": false
  19113. },
  19114. "PermissionV2.Reply": {
  19115. "type": "string",
  19116. "enum": [
  19117. "once",
  19118. "always",
  19119. "reject"
  19120. ]
  19121. },
  19122. "FileSystem.Entry": {
  19123. "type": "object",
  19124. "properties": {
  19125. "path": {
  19126. "type": "string"
  19127. },
  19128. "type": {
  19129. "type": "string",
  19130. "enum": [
  19131. "file",
  19132. "directory"
  19133. ]
  19134. }
  19135. },
  19136. "required": [
  19137. "path",
  19138. "type"
  19139. ],
  19140. "additionalProperties": false
  19141. },
  19142. "Command.Info": {
  19143. "type": "object",
  19144. "properties": {
  19145. "name": {
  19146. "type": "string"
  19147. },
  19148. "template": {
  19149. "type": "string"
  19150. },
  19151. "description": {
  19152. "type": "string"
  19153. },
  19154. "agent": {
  19155. "type": "string"
  19156. },
  19157. "model": {
  19158. "$ref": "#/components/schemas/Model.Ref"
  19159. },
  19160. "subtask": {
  19161. "type": "boolean"
  19162. }
  19163. },
  19164. "required": [
  19165. "name",
  19166. "template"
  19167. ],
  19168. "additionalProperties": false
  19169. },
  19170. "Skill.Info": {
  19171. "type": "object",
  19172. "properties": {
  19173. "id": {
  19174. "type": "string"
  19175. },
  19176. "name": {
  19177. "type": "string"
  19178. },
  19179. "description": {
  19180. "type": "string"
  19181. },
  19182. "slash": {
  19183. "type": "boolean"
  19184. },
  19185. "autoinvoke": {
  19186. "type": "boolean"
  19187. },
  19188. "location": {
  19189. "type": "string"
  19190. },
  19191. "content": {
  19192. "type": "string"
  19193. }
  19194. },
  19195. "required": [
  19196. "id",
  19197. "name",
  19198. "location",
  19199. "content"
  19200. ],
  19201. "additionalProperties": false
  19202. },
  19203. "models-dev.refreshed": {
  19204. "type": "object",
  19205. "properties": {
  19206. "id": {
  19207. "type": "string",
  19208. "allOf": [
  19209. {
  19210. "pattern": "^evt_"
  19211. }
  19212. ]
  19213. },
  19214. "created": {
  19215. "type": "number"
  19216. },
  19217. "metadata": {
  19218. "type": "object"
  19219. },
  19220. "type": {
  19221. "type": "string",
  19222. "enum": [
  19223. "models-dev.refreshed"
  19224. ]
  19225. },
  19226. "location": {
  19227. "$ref": "#/components/schemas/Location.Ref"
  19228. },
  19229. "data": {
  19230. "anyOf": [
  19231. {
  19232. "type": "object"
  19233. },
  19234. {
  19235. "type": "array"
  19236. }
  19237. ]
  19238. }
  19239. },
  19240. "required": [
  19241. "id",
  19242. "created",
  19243. "type",
  19244. "data"
  19245. ],
  19246. "additionalProperties": false
  19247. },
  19248. "integration.updated": {
  19249. "type": "object",
  19250. "properties": {
  19251. "id": {
  19252. "type": "string",
  19253. "allOf": [
  19254. {
  19255. "pattern": "^evt_"
  19256. }
  19257. ]
  19258. },
  19259. "created": {
  19260. "type": "number"
  19261. },
  19262. "metadata": {
  19263. "type": "object"
  19264. },
  19265. "type": {
  19266. "type": "string",
  19267. "enum": [
  19268. "integration.updated"
  19269. ]
  19270. },
  19271. "location": {
  19272. "$ref": "#/components/schemas/Location.Ref"
  19273. },
  19274. "data": {
  19275. "anyOf": [
  19276. {
  19277. "type": "object"
  19278. },
  19279. {
  19280. "type": "array"
  19281. }
  19282. ]
  19283. }
  19284. },
  19285. "required": [
  19286. "id",
  19287. "created",
  19288. "type",
  19289. "data"
  19290. ],
  19291. "additionalProperties": false
  19292. },
  19293. "integration.connection.updated": {
  19294. "type": "object",
  19295. "properties": {
  19296. "id": {
  19297. "type": "string",
  19298. "allOf": [
  19299. {
  19300. "pattern": "^evt_"
  19301. }
  19302. ]
  19303. },
  19304. "created": {
  19305. "type": "number"
  19306. },
  19307. "metadata": {
  19308. "type": "object"
  19309. },
  19310. "type": {
  19311. "type": "string",
  19312. "enum": [
  19313. "integration.connection.updated"
  19314. ]
  19315. },
  19316. "location": {
  19317. "$ref": "#/components/schemas/Location.Ref"
  19318. },
  19319. "data": {
  19320. "type": "object",
  19321. "properties": {
  19322. "integrationID": {
  19323. "type": "string"
  19324. }
  19325. },
  19326. "required": [
  19327. "integrationID"
  19328. ],
  19329. "additionalProperties": false
  19330. }
  19331. },
  19332. "required": [
  19333. "id",
  19334. "created",
  19335. "type",
  19336. "data"
  19337. ],
  19338. "additionalProperties": false
  19339. },
  19340. "catalog.updated": {
  19341. "type": "object",
  19342. "properties": {
  19343. "id": {
  19344. "type": "string",
  19345. "allOf": [
  19346. {
  19347. "pattern": "^evt_"
  19348. }
  19349. ]
  19350. },
  19351. "created": {
  19352. "type": "number"
  19353. },
  19354. "metadata": {
  19355. "type": "object"
  19356. },
  19357. "type": {
  19358. "type": "string",
  19359. "enum": [
  19360. "catalog.updated"
  19361. ]
  19362. },
  19363. "location": {
  19364. "$ref": "#/components/schemas/Location.Ref"
  19365. },
  19366. "data": {
  19367. "anyOf": [
  19368. {
  19369. "type": "object"
  19370. },
  19371. {
  19372. "type": "array"
  19373. }
  19374. ]
  19375. }
  19376. },
  19377. "required": [
  19378. "id",
  19379. "created",
  19380. "type",
  19381. "data"
  19382. ],
  19383. "additionalProperties": false
  19384. },
  19385. "agent.updated": {
  19386. "type": "object",
  19387. "properties": {
  19388. "id": {
  19389. "type": "string",
  19390. "allOf": [
  19391. {
  19392. "pattern": "^evt_"
  19393. }
  19394. ]
  19395. },
  19396. "created": {
  19397. "type": "number"
  19398. },
  19399. "metadata": {
  19400. "type": "object"
  19401. },
  19402. "type": {
  19403. "type": "string",
  19404. "enum": [
  19405. "agent.updated"
  19406. ]
  19407. },
  19408. "location": {
  19409. "$ref": "#/components/schemas/Location.Ref"
  19410. },
  19411. "data": {
  19412. "anyOf": [
  19413. {
  19414. "type": "object"
  19415. },
  19416. {
  19417. "type": "array"
  19418. }
  19419. ]
  19420. }
  19421. },
  19422. "required": [
  19423. "id",
  19424. "created",
  19425. "type",
  19426. "data"
  19427. ],
  19428. "additionalProperties": false
  19429. },
  19430. "FileDiff.LegacyInfo": {
  19431. "type": "object",
  19432. "properties": {
  19433. "file": {
  19434. "type": "string"
  19435. },
  19436. "patch": {
  19437. "type": "string"
  19438. },
  19439. "additions": {
  19440. "type": "number"
  19441. },
  19442. "deletions": {
  19443. "type": "number"
  19444. },
  19445. "status": {
  19446. "type": "string",
  19447. "enum": [
  19448. "added",
  19449. "deleted",
  19450. "modified"
  19451. ]
  19452. }
  19453. },
  19454. "required": [
  19455. "additions",
  19456. "deletions"
  19457. ],
  19458. "additionalProperties": false
  19459. },
  19460. "PermissionAction": {
  19461. "type": "string",
  19462. "enum": [
  19463. "allow",
  19464. "deny",
  19465. "ask"
  19466. ]
  19467. },
  19468. "PermissionRule": {
  19469. "type": "object",
  19470. "properties": {
  19471. "permission": {
  19472. "type": "string"
  19473. },
  19474. "pattern": {
  19475. "type": "string"
  19476. },
  19477. "action": {
  19478. "$ref": "#/components/schemas/PermissionAction"
  19479. }
  19480. },
  19481. "required": [
  19482. "permission",
  19483. "pattern",
  19484. "action"
  19485. ],
  19486. "additionalProperties": false
  19487. },
  19488. "PermissionRuleset": {
  19489. "type": "array",
  19490. "items": {
  19491. "$ref": "#/components/schemas/PermissionRule"
  19492. }
  19493. },
  19494. "SessionV1.Info": {
  19495. "type": "object",
  19496. "properties": {
  19497. "id": {
  19498. "type": "string",
  19499. "allOf": [
  19500. {
  19501. "pattern": "^ses"
  19502. }
  19503. ]
  19504. },
  19505. "slug": {
  19506. "type": "string"
  19507. },
  19508. "projectID": {
  19509. "type": "string"
  19510. },
  19511. "workspaceID": {
  19512. "type": "string",
  19513. "allOf": [
  19514. {
  19515. "pattern": "^wrk"
  19516. }
  19517. ]
  19518. },
  19519. "directory": {
  19520. "type": "string"
  19521. },
  19522. "path": {
  19523. "type": "string"
  19524. },
  19525. "parentID": {
  19526. "type": "string",
  19527. "allOf": [
  19528. {
  19529. "pattern": "^ses"
  19530. }
  19531. ]
  19532. },
  19533. "summary": {
  19534. "type": "object",
  19535. "properties": {
  19536. "additions": {
  19537. "type": "number"
  19538. },
  19539. "deletions": {
  19540. "type": "number"
  19541. },
  19542. "files": {
  19543. "type": "number"
  19544. },
  19545. "diffs": {
  19546. "type": "array",
  19547. "items": {
  19548. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  19549. }
  19550. }
  19551. },
  19552. "required": [
  19553. "additions",
  19554. "deletions",
  19555. "files"
  19556. ],
  19557. "additionalProperties": false
  19558. },
  19559. "cost": {
  19560. "type": "number"
  19561. },
  19562. "tokens": {
  19563. "type": "object",
  19564. "properties": {
  19565. "input": {
  19566. "type": "number"
  19567. },
  19568. "output": {
  19569. "type": "number"
  19570. },
  19571. "reasoning": {
  19572. "type": "number"
  19573. },
  19574. "cache": {
  19575. "type": "object",
  19576. "properties": {
  19577. "read": {
  19578. "type": "number"
  19579. },
  19580. "write": {
  19581. "type": "number"
  19582. }
  19583. },
  19584. "required": [
  19585. "read",
  19586. "write"
  19587. ],
  19588. "additionalProperties": false
  19589. }
  19590. },
  19591. "required": [
  19592. "input",
  19593. "output",
  19594. "reasoning",
  19595. "cache"
  19596. ],
  19597. "additionalProperties": false
  19598. },
  19599. "share": {
  19600. "type": "object",
  19601. "properties": {
  19602. "url": {
  19603. "type": "string"
  19604. }
  19605. },
  19606. "required": [
  19607. "url"
  19608. ],
  19609. "additionalProperties": false
  19610. },
  19611. "title": {
  19612. "type": "string"
  19613. },
  19614. "agent": {
  19615. "type": "string"
  19616. },
  19617. "model": {
  19618. "type": "object",
  19619. "properties": {
  19620. "id": {
  19621. "type": "string"
  19622. },
  19623. "providerID": {
  19624. "type": "string"
  19625. },
  19626. "variant": {
  19627. "type": "string"
  19628. }
  19629. },
  19630. "required": [
  19631. "id",
  19632. "providerID"
  19633. ],
  19634. "additionalProperties": false
  19635. },
  19636. "version": {
  19637. "type": "string"
  19638. },
  19639. "metadata": {
  19640. "type": "object"
  19641. },
  19642. "time": {
  19643. "type": "object",
  19644. "properties": {
  19645. "created": {
  19646. "type": "integer",
  19647. "allOf": [
  19648. {
  19649. "minimum": 0
  19650. }
  19651. ]
  19652. },
  19653. "updated": {
  19654. "type": "integer",
  19655. "allOf": [
  19656. {
  19657. "minimum": 0
  19658. }
  19659. ]
  19660. },
  19661. "compacting": {
  19662. "type": "integer",
  19663. "allOf": [
  19664. {
  19665. "minimum": 0
  19666. }
  19667. ]
  19668. },
  19669. "archived": {
  19670. "type": "number"
  19671. }
  19672. },
  19673. "required": [
  19674. "created",
  19675. "updated"
  19676. ],
  19677. "additionalProperties": false
  19678. },
  19679. "permission": {
  19680. "$ref": "#/components/schemas/PermissionRuleset"
  19681. },
  19682. "revert": {
  19683. "type": "object",
  19684. "properties": {
  19685. "messageID": {
  19686. "type": "string",
  19687. "allOf": [
  19688. {
  19689. "pattern": "^msg"
  19690. }
  19691. ]
  19692. },
  19693. "partID": {
  19694. "type": "string",
  19695. "allOf": [
  19696. {
  19697. "pattern": "^prt"
  19698. }
  19699. ]
  19700. },
  19701. "snapshot": {
  19702. "type": "string"
  19703. },
  19704. "diff": {
  19705. "type": "string"
  19706. }
  19707. },
  19708. "required": [
  19709. "messageID"
  19710. ],
  19711. "additionalProperties": false
  19712. }
  19713. },
  19714. "required": [
  19715. "id",
  19716. "slug",
  19717. "projectID",
  19718. "directory",
  19719. "title",
  19720. "version",
  19721. "time"
  19722. ],
  19723. "additionalProperties": false
  19724. },
  19725. "session.created": {
  19726. "type": "object",
  19727. "properties": {
  19728. "id": {
  19729. "type": "string",
  19730. "allOf": [
  19731. {
  19732. "pattern": "^evt_"
  19733. }
  19734. ]
  19735. },
  19736. "created": {
  19737. "type": "number"
  19738. },
  19739. "metadata": {
  19740. "type": "object"
  19741. },
  19742. "type": {
  19743. "type": "string",
  19744. "enum": [
  19745. "session.created"
  19746. ]
  19747. },
  19748. "durable": {
  19749. "type": "object",
  19750. "properties": {
  19751. "aggregateID": {
  19752. "type": "string"
  19753. },
  19754. "seq": {
  19755. "type": "integer",
  19756. "allOf": [
  19757. {
  19758. "minimum": 0
  19759. }
  19760. ]
  19761. },
  19762. "version": {
  19763. "type": "number",
  19764. "enum": [
  19765. 1
  19766. ]
  19767. }
  19768. },
  19769. "required": [
  19770. "aggregateID",
  19771. "seq",
  19772. "version"
  19773. ],
  19774. "additionalProperties": false
  19775. },
  19776. "location": {
  19777. "$ref": "#/components/schemas/Location.Ref"
  19778. },
  19779. "data": {
  19780. "type": "object",
  19781. "properties": {
  19782. "sessionID": {
  19783. "type": "string",
  19784. "allOf": [
  19785. {
  19786. "pattern": "^ses"
  19787. }
  19788. ]
  19789. },
  19790. "info": {
  19791. "$ref": "#/components/schemas/SessionV1.Info"
  19792. }
  19793. },
  19794. "required": [
  19795. "sessionID",
  19796. "info"
  19797. ],
  19798. "additionalProperties": false
  19799. }
  19800. },
  19801. "required": [
  19802. "id",
  19803. "created",
  19804. "type",
  19805. "durable",
  19806. "data"
  19807. ],
  19808. "additionalProperties": false
  19809. },
  19810. "session.updated": {
  19811. "type": "object",
  19812. "properties": {
  19813. "id": {
  19814. "type": "string",
  19815. "allOf": [
  19816. {
  19817. "pattern": "^evt_"
  19818. }
  19819. ]
  19820. },
  19821. "created": {
  19822. "type": "number"
  19823. },
  19824. "metadata": {
  19825. "type": "object"
  19826. },
  19827. "type": {
  19828. "type": "string",
  19829. "enum": [
  19830. "session.updated"
  19831. ]
  19832. },
  19833. "durable": {
  19834. "type": "object",
  19835. "properties": {
  19836. "aggregateID": {
  19837. "type": "string"
  19838. },
  19839. "seq": {
  19840. "type": "integer",
  19841. "allOf": [
  19842. {
  19843. "minimum": 0
  19844. }
  19845. ]
  19846. },
  19847. "version": {
  19848. "type": "number",
  19849. "enum": [
  19850. 1
  19851. ]
  19852. }
  19853. },
  19854. "required": [
  19855. "aggregateID",
  19856. "seq",
  19857. "version"
  19858. ],
  19859. "additionalProperties": false
  19860. },
  19861. "location": {
  19862. "$ref": "#/components/schemas/Location.Ref"
  19863. },
  19864. "data": {
  19865. "type": "object",
  19866. "properties": {
  19867. "sessionID": {
  19868. "type": "string",
  19869. "allOf": [
  19870. {
  19871. "pattern": "^ses"
  19872. }
  19873. ]
  19874. },
  19875. "info": {
  19876. "$ref": "#/components/schemas/SessionV1.Info"
  19877. }
  19878. },
  19879. "required": [
  19880. "sessionID",
  19881. "info"
  19882. ],
  19883. "additionalProperties": false
  19884. }
  19885. },
  19886. "required": [
  19887. "id",
  19888. "created",
  19889. "type",
  19890. "durable",
  19891. "data"
  19892. ],
  19893. "additionalProperties": false
  19894. },
  19895. "session.deleted1": {
  19896. "type": "object",
  19897. "properties": {
  19898. "id": {
  19899. "type": "string",
  19900. "allOf": [
  19901. {
  19902. "pattern": "^evt_"
  19903. }
  19904. ]
  19905. },
  19906. "created": {
  19907. "type": "number"
  19908. },
  19909. "metadata": {
  19910. "type": "object"
  19911. },
  19912. "type": {
  19913. "type": "string",
  19914. "enum": [
  19915. "session.deleted"
  19916. ]
  19917. },
  19918. "durable": {
  19919. "type": "object",
  19920. "properties": {
  19921. "aggregateID": {
  19922. "type": "string"
  19923. },
  19924. "seq": {
  19925. "type": "integer",
  19926. "allOf": [
  19927. {
  19928. "minimum": 0
  19929. }
  19930. ]
  19931. },
  19932. "version": {
  19933. "type": "number",
  19934. "enum": [
  19935. 1
  19936. ]
  19937. }
  19938. },
  19939. "required": [
  19940. "aggregateID",
  19941. "seq",
  19942. "version"
  19943. ],
  19944. "additionalProperties": false
  19945. },
  19946. "location": {
  19947. "$ref": "#/components/schemas/Location.Ref"
  19948. },
  19949. "data": {
  19950. "type": "object",
  19951. "properties": {
  19952. "sessionID": {
  19953. "type": "string",
  19954. "allOf": [
  19955. {
  19956. "pattern": "^ses"
  19957. }
  19958. ]
  19959. },
  19960. "info": {
  19961. "$ref": "#/components/schemas/SessionV1.Info"
  19962. }
  19963. },
  19964. "required": [
  19965. "sessionID",
  19966. "info"
  19967. ],
  19968. "additionalProperties": false
  19969. }
  19970. },
  19971. "required": [
  19972. "id",
  19973. "created",
  19974. "type",
  19975. "durable",
  19976. "data"
  19977. ],
  19978. "additionalProperties": false
  19979. },
  19980. "JSONSchema": {
  19981. "type": "object"
  19982. },
  19983. "OutputFormat": {
  19984. "anyOf": [
  19985. {
  19986. "type": "object",
  19987. "properties": {
  19988. "type": {
  19989. "type": "string",
  19990. "enum": [
  19991. "text"
  19992. ]
  19993. }
  19994. },
  19995. "required": [
  19996. "type"
  19997. ],
  19998. "additionalProperties": false
  19999. },
  20000. {
  20001. "type": "object",
  20002. "properties": {
  20003. "type": {
  20004. "type": "string",
  20005. "enum": [
  20006. "json_schema"
  20007. ]
  20008. },
  20009. "schema": {
  20010. "$ref": "#/components/schemas/JSONSchema"
  20011. },
  20012. "retryCount": {
  20013. "anyOf": [
  20014. {
  20015. "anyOf": [
  20016. {
  20017. "type": "integer",
  20018. "allOf": [
  20019. {
  20020. "minimum": 0
  20021. }
  20022. ]
  20023. },
  20024. {
  20025. "type": "null"
  20026. }
  20027. ]
  20028. },
  20029. {
  20030. "type": "null"
  20031. }
  20032. ]
  20033. }
  20034. },
  20035. "required": [
  20036. "type",
  20037. "schema"
  20038. ],
  20039. "additionalProperties": false
  20040. }
  20041. ]
  20042. },
  20043. "UserMessage": {
  20044. "type": "object",
  20045. "properties": {
  20046. "id": {
  20047. "type": "string",
  20048. "allOf": [
  20049. {
  20050. "pattern": "^msg"
  20051. }
  20052. ]
  20053. },
  20054. "sessionID": {
  20055. "type": "string",
  20056. "allOf": [
  20057. {
  20058. "pattern": "^ses"
  20059. }
  20060. ]
  20061. },
  20062. "role": {
  20063. "type": "string",
  20064. "enum": [
  20065. "user"
  20066. ]
  20067. },
  20068. "time": {
  20069. "type": "object",
  20070. "properties": {
  20071. "created": {
  20072. "type": "number",
  20073. "allOf": [
  20074. {
  20075. "minimum": 0
  20076. }
  20077. ]
  20078. }
  20079. },
  20080. "required": [
  20081. "created"
  20082. ],
  20083. "additionalProperties": false
  20084. },
  20085. "format": {
  20086. "anyOf": [
  20087. {
  20088. "$ref": "#/components/schemas/OutputFormat"
  20089. },
  20090. {
  20091. "type": "null"
  20092. }
  20093. ]
  20094. },
  20095. "summary": {
  20096. "anyOf": [
  20097. {
  20098. "type": "object",
  20099. "properties": {
  20100. "title": {
  20101. "anyOf": [
  20102. {
  20103. "type": "string"
  20104. },
  20105. {
  20106. "type": "null"
  20107. }
  20108. ]
  20109. },
  20110. "body": {
  20111. "anyOf": [
  20112. {
  20113. "type": "string"
  20114. },
  20115. {
  20116. "type": "null"
  20117. }
  20118. ]
  20119. },
  20120. "diffs": {
  20121. "type": "array",
  20122. "items": {
  20123. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  20124. }
  20125. }
  20126. },
  20127. "required": [
  20128. "diffs"
  20129. ],
  20130. "additionalProperties": false
  20131. },
  20132. {
  20133. "type": "null"
  20134. }
  20135. ]
  20136. },
  20137. "agent": {
  20138. "type": "string"
  20139. },
  20140. "model": {
  20141. "type": "object",
  20142. "properties": {
  20143. "providerID": {
  20144. "type": "string"
  20145. },
  20146. "modelID": {
  20147. "type": "string"
  20148. },
  20149. "variant": {
  20150. "anyOf": [
  20151. {
  20152. "type": "string"
  20153. },
  20154. {
  20155. "type": "null"
  20156. }
  20157. ]
  20158. }
  20159. },
  20160. "required": [
  20161. "providerID",
  20162. "modelID"
  20163. ],
  20164. "additionalProperties": false
  20165. },
  20166. "system": {
  20167. "anyOf": [
  20168. {
  20169. "type": "string"
  20170. },
  20171. {
  20172. "type": "null"
  20173. }
  20174. ]
  20175. },
  20176. "tools": {
  20177. "anyOf": [
  20178. {
  20179. "type": "object",
  20180. "additionalProperties": {
  20181. "type": "boolean"
  20182. }
  20183. },
  20184. {
  20185. "type": "null"
  20186. }
  20187. ]
  20188. }
  20189. },
  20190. "required": [
  20191. "id",
  20192. "sessionID",
  20193. "role",
  20194. "time",
  20195. "agent",
  20196. "model"
  20197. ],
  20198. "additionalProperties": false
  20199. },
  20200. "ProviderAuthError": {
  20201. "type": "object",
  20202. "properties": {
  20203. "name": {
  20204. "type": "string",
  20205. "enum": [
  20206. "ProviderAuthError"
  20207. ]
  20208. },
  20209. "data": {
  20210. "type": "object",
  20211. "properties": {
  20212. "providerID": {
  20213. "type": "string"
  20214. },
  20215. "message": {
  20216. "type": "string"
  20217. }
  20218. },
  20219. "required": [
  20220. "providerID",
  20221. "message"
  20222. ],
  20223. "additionalProperties": false
  20224. }
  20225. },
  20226. "required": [
  20227. "name",
  20228. "data"
  20229. ],
  20230. "additionalProperties": false
  20231. },
  20232. "UnknownError1": {
  20233. "type": "object",
  20234. "properties": {
  20235. "name": {
  20236. "type": "string",
  20237. "enum": [
  20238. "UnknownError"
  20239. ]
  20240. },
  20241. "data": {
  20242. "type": "object",
  20243. "properties": {
  20244. "message": {
  20245. "type": "string"
  20246. },
  20247. "ref": {
  20248. "anyOf": [
  20249. {
  20250. "type": "string"
  20251. },
  20252. {
  20253. "type": "null"
  20254. }
  20255. ]
  20256. }
  20257. },
  20258. "required": [
  20259. "message"
  20260. ],
  20261. "additionalProperties": false
  20262. }
  20263. },
  20264. "required": [
  20265. "name",
  20266. "data"
  20267. ],
  20268. "additionalProperties": false
  20269. },
  20270. "MessageOutputLengthError": {
  20271. "type": "object",
  20272. "properties": {
  20273. "name": {
  20274. "type": "string",
  20275. "enum": [
  20276. "MessageOutputLengthError"
  20277. ]
  20278. },
  20279. "data": {
  20280. "anyOf": [
  20281. {
  20282. "type": "object"
  20283. },
  20284. {
  20285. "type": "array"
  20286. }
  20287. ]
  20288. }
  20289. },
  20290. "required": [
  20291. "name",
  20292. "data"
  20293. ],
  20294. "additionalProperties": false
  20295. },
  20296. "MessageAbortedError": {
  20297. "type": "object",
  20298. "properties": {
  20299. "name": {
  20300. "type": "string",
  20301. "enum": [
  20302. "MessageAbortedError"
  20303. ]
  20304. },
  20305. "data": {
  20306. "type": "object",
  20307. "properties": {
  20308. "message": {
  20309. "type": "string"
  20310. }
  20311. },
  20312. "required": [
  20313. "message"
  20314. ],
  20315. "additionalProperties": false
  20316. }
  20317. },
  20318. "required": [
  20319. "name",
  20320. "data"
  20321. ],
  20322. "additionalProperties": false
  20323. },
  20324. "StructuredOutputError": {
  20325. "type": "object",
  20326. "properties": {
  20327. "name": {
  20328. "type": "string",
  20329. "enum": [
  20330. "StructuredOutputError"
  20331. ]
  20332. },
  20333. "data": {
  20334. "type": "object",
  20335. "properties": {
  20336. "message": {
  20337. "type": "string"
  20338. },
  20339. "retries": {
  20340. "type": "integer",
  20341. "allOf": [
  20342. {
  20343. "minimum": 0
  20344. }
  20345. ]
  20346. }
  20347. },
  20348. "required": [
  20349. "message",
  20350. "retries"
  20351. ],
  20352. "additionalProperties": false
  20353. }
  20354. },
  20355. "required": [
  20356. "name",
  20357. "data"
  20358. ],
  20359. "additionalProperties": false
  20360. },
  20361. "ContextOverflowError": {
  20362. "type": "object",
  20363. "properties": {
  20364. "name": {
  20365. "type": "string",
  20366. "enum": [
  20367. "ContextOverflowError"
  20368. ]
  20369. },
  20370. "data": {
  20371. "type": "object",
  20372. "properties": {
  20373. "message": {
  20374. "type": "string"
  20375. },
  20376. "responseBody": {
  20377. "anyOf": [
  20378. {
  20379. "type": "string"
  20380. },
  20381. {
  20382. "type": "null"
  20383. }
  20384. ]
  20385. }
  20386. },
  20387. "required": [
  20388. "message"
  20389. ],
  20390. "additionalProperties": false
  20391. }
  20392. },
  20393. "required": [
  20394. "name",
  20395. "data"
  20396. ],
  20397. "additionalProperties": false
  20398. },
  20399. "ContentFilterError": {
  20400. "type": "object",
  20401. "properties": {
  20402. "name": {
  20403. "type": "string",
  20404. "enum": [
  20405. "ContentFilterError"
  20406. ]
  20407. },
  20408. "data": {
  20409. "type": "object",
  20410. "properties": {
  20411. "message": {
  20412. "type": "string"
  20413. }
  20414. },
  20415. "required": [
  20416. "message"
  20417. ],
  20418. "additionalProperties": false
  20419. }
  20420. },
  20421. "required": [
  20422. "name",
  20423. "data"
  20424. ],
  20425. "additionalProperties": false
  20426. },
  20427. "APIError": {
  20428. "type": "object",
  20429. "properties": {
  20430. "name": {
  20431. "type": "string",
  20432. "enum": [
  20433. "APIError"
  20434. ]
  20435. },
  20436. "data": {
  20437. "type": "object",
  20438. "properties": {
  20439. "message": {
  20440. "type": "string"
  20441. },
  20442. "statusCode": {
  20443. "anyOf": [
  20444. {
  20445. "type": "integer",
  20446. "allOf": [
  20447. {
  20448. "minimum": 0
  20449. }
  20450. ]
  20451. },
  20452. {
  20453. "type": "null"
  20454. }
  20455. ]
  20456. },
  20457. "isRetryable": {
  20458. "type": "boolean"
  20459. },
  20460. "responseHeaders": {
  20461. "anyOf": [
  20462. {
  20463. "type": "object",
  20464. "additionalProperties": {
  20465. "type": "string"
  20466. }
  20467. },
  20468. {
  20469. "type": "null"
  20470. }
  20471. ]
  20472. },
  20473. "responseBody": {
  20474. "anyOf": [
  20475. {
  20476. "type": "string"
  20477. },
  20478. {
  20479. "type": "null"
  20480. }
  20481. ]
  20482. },
  20483. "metadata": {
  20484. "anyOf": [
  20485. {
  20486. "type": "object",
  20487. "additionalProperties": {
  20488. "type": "string"
  20489. }
  20490. },
  20491. {
  20492. "type": "null"
  20493. }
  20494. ]
  20495. }
  20496. },
  20497. "required": [
  20498. "message",
  20499. "isRetryable"
  20500. ],
  20501. "additionalProperties": false
  20502. }
  20503. },
  20504. "required": [
  20505. "name",
  20506. "data"
  20507. ],
  20508. "additionalProperties": false
  20509. },
  20510. "AssistantMessage": {
  20511. "type": "object",
  20512. "properties": {
  20513. "id": {
  20514. "type": "string",
  20515. "allOf": [
  20516. {
  20517. "pattern": "^msg"
  20518. }
  20519. ]
  20520. },
  20521. "sessionID": {
  20522. "type": "string",
  20523. "allOf": [
  20524. {
  20525. "pattern": "^ses"
  20526. }
  20527. ]
  20528. },
  20529. "role": {
  20530. "type": "string",
  20531. "enum": [
  20532. "assistant"
  20533. ]
  20534. },
  20535. "time": {
  20536. "type": "object",
  20537. "properties": {
  20538. "created": {
  20539. "type": "integer",
  20540. "allOf": [
  20541. {
  20542. "minimum": 0
  20543. }
  20544. ]
  20545. },
  20546. "completed": {
  20547. "anyOf": [
  20548. {
  20549. "type": "integer",
  20550. "allOf": [
  20551. {
  20552. "minimum": 0
  20553. }
  20554. ]
  20555. },
  20556. {
  20557. "type": "null"
  20558. }
  20559. ]
  20560. }
  20561. },
  20562. "required": [
  20563. "created"
  20564. ],
  20565. "additionalProperties": false
  20566. },
  20567. "error": {
  20568. "anyOf": [
  20569. {
  20570. "anyOf": [
  20571. {
  20572. "$ref": "#/components/schemas/ProviderAuthError"
  20573. },
  20574. {
  20575. "$ref": "#/components/schemas/UnknownError1"
  20576. },
  20577. {
  20578. "$ref": "#/components/schemas/MessageOutputLengthError"
  20579. },
  20580. {
  20581. "$ref": "#/components/schemas/MessageAbortedError"
  20582. },
  20583. {
  20584. "$ref": "#/components/schemas/StructuredOutputError"
  20585. },
  20586. {
  20587. "$ref": "#/components/schemas/ContextOverflowError"
  20588. },
  20589. {
  20590. "$ref": "#/components/schemas/ContentFilterError"
  20591. },
  20592. {
  20593. "$ref": "#/components/schemas/APIError"
  20594. }
  20595. ]
  20596. },
  20597. {
  20598. "type": "null"
  20599. }
  20600. ]
  20601. },
  20602. "parentID": {
  20603. "type": "string",
  20604. "allOf": [
  20605. {
  20606. "pattern": "^msg"
  20607. }
  20608. ]
  20609. },
  20610. "modelID": {
  20611. "type": "string"
  20612. },
  20613. "providerID": {
  20614. "type": "string"
  20615. },
  20616. "mode": {
  20617. "type": "string"
  20618. },
  20619. "agent": {
  20620. "type": "string"
  20621. },
  20622. "path": {
  20623. "type": "object",
  20624. "properties": {
  20625. "cwd": {
  20626. "type": "string"
  20627. },
  20628. "root": {
  20629. "type": "string"
  20630. }
  20631. },
  20632. "required": [
  20633. "cwd",
  20634. "root"
  20635. ],
  20636. "additionalProperties": false
  20637. },
  20638. "summary": {
  20639. "anyOf": [
  20640. {
  20641. "type": "boolean"
  20642. },
  20643. {
  20644. "type": "null"
  20645. }
  20646. ]
  20647. },
  20648. "cost": {
  20649. "type": "number"
  20650. },
  20651. "tokens": {
  20652. "type": "object",
  20653. "properties": {
  20654. "total": {
  20655. "anyOf": [
  20656. {
  20657. "type": "number"
  20658. },
  20659. {
  20660. "type": "null"
  20661. }
  20662. ]
  20663. },
  20664. "input": {
  20665. "type": "number"
  20666. },
  20667. "output": {
  20668. "type": "number"
  20669. },
  20670. "reasoning": {
  20671. "type": "number"
  20672. },
  20673. "cache": {
  20674. "type": "object",
  20675. "properties": {
  20676. "read": {
  20677. "type": "number"
  20678. },
  20679. "write": {
  20680. "type": "number"
  20681. }
  20682. },
  20683. "required": [
  20684. "read",
  20685. "write"
  20686. ],
  20687. "additionalProperties": false
  20688. }
  20689. },
  20690. "required": [
  20691. "input",
  20692. "output",
  20693. "reasoning",
  20694. "cache"
  20695. ],
  20696. "additionalProperties": false
  20697. },
  20698. "structured": {
  20699. "anyOf": [
  20700. {},
  20701. {
  20702. "type": "null"
  20703. }
  20704. ]
  20705. },
  20706. "variant": {
  20707. "anyOf": [
  20708. {
  20709. "type": "string"
  20710. },
  20711. {
  20712. "type": "null"
  20713. }
  20714. ]
  20715. },
  20716. "finish": {
  20717. "anyOf": [
  20718. {
  20719. "type": "string"
  20720. },
  20721. {
  20722. "type": "null"
  20723. }
  20724. ]
  20725. }
  20726. },
  20727. "required": [
  20728. "id",
  20729. "sessionID",
  20730. "role",
  20731. "time",
  20732. "parentID",
  20733. "modelID",
  20734. "providerID",
  20735. "mode",
  20736. "agent",
  20737. "path",
  20738. "cost",
  20739. "tokens"
  20740. ],
  20741. "additionalProperties": false
  20742. },
  20743. "Message": {
  20744. "anyOf": [
  20745. {
  20746. "$ref": "#/components/schemas/UserMessage"
  20747. },
  20748. {
  20749. "$ref": "#/components/schemas/AssistantMessage"
  20750. }
  20751. ]
  20752. },
  20753. "message.updated": {
  20754. "type": "object",
  20755. "properties": {
  20756. "id": {
  20757. "type": "string",
  20758. "allOf": [
  20759. {
  20760. "pattern": "^evt_"
  20761. }
  20762. ]
  20763. },
  20764. "created": {
  20765. "type": "number"
  20766. },
  20767. "metadata": {
  20768. "type": "object"
  20769. },
  20770. "type": {
  20771. "type": "string",
  20772. "enum": [
  20773. "message.updated"
  20774. ]
  20775. },
  20776. "durable": {
  20777. "type": "object",
  20778. "properties": {
  20779. "aggregateID": {
  20780. "type": "string"
  20781. },
  20782. "seq": {
  20783. "type": "integer",
  20784. "allOf": [
  20785. {
  20786. "minimum": 0
  20787. }
  20788. ]
  20789. },
  20790. "version": {
  20791. "type": "number",
  20792. "enum": [
  20793. 1
  20794. ]
  20795. }
  20796. },
  20797. "required": [
  20798. "aggregateID",
  20799. "seq",
  20800. "version"
  20801. ],
  20802. "additionalProperties": false
  20803. },
  20804. "location": {
  20805. "$ref": "#/components/schemas/Location.Ref"
  20806. },
  20807. "data": {
  20808. "type": "object",
  20809. "properties": {
  20810. "sessionID": {
  20811. "type": "string",
  20812. "allOf": [
  20813. {
  20814. "pattern": "^ses"
  20815. }
  20816. ]
  20817. },
  20818. "info": {
  20819. "$ref": "#/components/schemas/Message"
  20820. }
  20821. },
  20822. "required": [
  20823. "sessionID",
  20824. "info"
  20825. ],
  20826. "additionalProperties": false
  20827. }
  20828. },
  20829. "required": [
  20830. "id",
  20831. "created",
  20832. "type",
  20833. "durable",
  20834. "data"
  20835. ],
  20836. "additionalProperties": false
  20837. },
  20838. "message.removed": {
  20839. "type": "object",
  20840. "properties": {
  20841. "id": {
  20842. "type": "string",
  20843. "allOf": [
  20844. {
  20845. "pattern": "^evt_"
  20846. }
  20847. ]
  20848. },
  20849. "created": {
  20850. "type": "number"
  20851. },
  20852. "metadata": {
  20853. "type": "object"
  20854. },
  20855. "type": {
  20856. "type": "string",
  20857. "enum": [
  20858. "message.removed"
  20859. ]
  20860. },
  20861. "durable": {
  20862. "type": "object",
  20863. "properties": {
  20864. "aggregateID": {
  20865. "type": "string"
  20866. },
  20867. "seq": {
  20868. "type": "integer",
  20869. "allOf": [
  20870. {
  20871. "minimum": 0
  20872. }
  20873. ]
  20874. },
  20875. "version": {
  20876. "type": "number",
  20877. "enum": [
  20878. 1
  20879. ]
  20880. }
  20881. },
  20882. "required": [
  20883. "aggregateID",
  20884. "seq",
  20885. "version"
  20886. ],
  20887. "additionalProperties": false
  20888. },
  20889. "location": {
  20890. "$ref": "#/components/schemas/Location.Ref"
  20891. },
  20892. "data": {
  20893. "type": "object",
  20894. "properties": {
  20895. "sessionID": {
  20896. "type": "string",
  20897. "allOf": [
  20898. {
  20899. "pattern": "^ses"
  20900. }
  20901. ]
  20902. },
  20903. "messageID": {
  20904. "type": "string",
  20905. "allOf": [
  20906. {
  20907. "pattern": "^msg"
  20908. }
  20909. ]
  20910. }
  20911. },
  20912. "required": [
  20913. "sessionID",
  20914. "messageID"
  20915. ],
  20916. "additionalProperties": false
  20917. }
  20918. },
  20919. "required": [
  20920. "id",
  20921. "created",
  20922. "type",
  20923. "durable",
  20924. "data"
  20925. ],
  20926. "additionalProperties": false
  20927. },
  20928. "TextPart": {
  20929. "type": "object",
  20930. "properties": {
  20931. "id": {
  20932. "type": "string",
  20933. "allOf": [
  20934. {
  20935. "pattern": "^prt"
  20936. }
  20937. ]
  20938. },
  20939. "sessionID": {
  20940. "type": "string",
  20941. "allOf": [
  20942. {
  20943. "pattern": "^ses"
  20944. }
  20945. ]
  20946. },
  20947. "messageID": {
  20948. "type": "string",
  20949. "allOf": [
  20950. {
  20951. "pattern": "^msg"
  20952. }
  20953. ]
  20954. },
  20955. "type": {
  20956. "type": "string",
  20957. "enum": [
  20958. "text"
  20959. ]
  20960. },
  20961. "text": {
  20962. "type": "string"
  20963. },
  20964. "synthetic": {
  20965. "anyOf": [
  20966. {
  20967. "type": "boolean"
  20968. },
  20969. {
  20970. "type": "null"
  20971. }
  20972. ]
  20973. },
  20974. "ignored": {
  20975. "anyOf": [
  20976. {
  20977. "type": "boolean"
  20978. },
  20979. {
  20980. "type": "null"
  20981. }
  20982. ]
  20983. },
  20984. "time": {
  20985. "anyOf": [
  20986. {
  20987. "type": "object",
  20988. "properties": {
  20989. "start": {
  20990. "type": "integer",
  20991. "allOf": [
  20992. {
  20993. "minimum": 0
  20994. }
  20995. ]
  20996. },
  20997. "end": {
  20998. "anyOf": [
  20999. {
  21000. "type": "integer",
  21001. "allOf": [
  21002. {
  21003. "minimum": 0
  21004. }
  21005. ]
  21006. },
  21007. {
  21008. "type": "null"
  21009. }
  21010. ]
  21011. }
  21012. },
  21013. "required": [
  21014. "start"
  21015. ],
  21016. "additionalProperties": false
  21017. },
  21018. {
  21019. "type": "null"
  21020. }
  21021. ]
  21022. },
  21023. "metadata": {
  21024. "anyOf": [
  21025. {
  21026. "type": "object"
  21027. },
  21028. {
  21029. "type": "null"
  21030. }
  21031. ]
  21032. }
  21033. },
  21034. "required": [
  21035. "id",
  21036. "sessionID",
  21037. "messageID",
  21038. "type",
  21039. "text"
  21040. ],
  21041. "additionalProperties": false
  21042. },
  21043. "SubtaskPart": {
  21044. "type": "object",
  21045. "properties": {
  21046. "id": {
  21047. "type": "string",
  21048. "allOf": [
  21049. {
  21050. "pattern": "^prt"
  21051. }
  21052. ]
  21053. },
  21054. "sessionID": {
  21055. "type": "string",
  21056. "allOf": [
  21057. {
  21058. "pattern": "^ses"
  21059. }
  21060. ]
  21061. },
  21062. "messageID": {
  21063. "type": "string",
  21064. "allOf": [
  21065. {
  21066. "pattern": "^msg"
  21067. }
  21068. ]
  21069. },
  21070. "type": {
  21071. "type": "string",
  21072. "enum": [
  21073. "subtask"
  21074. ]
  21075. },
  21076. "prompt": {
  21077. "type": "string"
  21078. },
  21079. "description": {
  21080. "type": "string"
  21081. },
  21082. "agent": {
  21083. "type": "string"
  21084. },
  21085. "model": {
  21086. "anyOf": [
  21087. {
  21088. "type": "object",
  21089. "properties": {
  21090. "providerID": {
  21091. "type": "string"
  21092. },
  21093. "modelID": {
  21094. "type": "string"
  21095. }
  21096. },
  21097. "required": [
  21098. "providerID",
  21099. "modelID"
  21100. ],
  21101. "additionalProperties": false
  21102. },
  21103. {
  21104. "type": "null"
  21105. }
  21106. ]
  21107. },
  21108. "command": {
  21109. "anyOf": [
  21110. {
  21111. "type": "string"
  21112. },
  21113. {
  21114. "type": "null"
  21115. }
  21116. ]
  21117. }
  21118. },
  21119. "required": [
  21120. "id",
  21121. "sessionID",
  21122. "messageID",
  21123. "type",
  21124. "prompt",
  21125. "description",
  21126. "agent"
  21127. ],
  21128. "additionalProperties": false
  21129. },
  21130. "ReasoningPart": {
  21131. "type": "object",
  21132. "properties": {
  21133. "id": {
  21134. "type": "string",
  21135. "allOf": [
  21136. {
  21137. "pattern": "^prt"
  21138. }
  21139. ]
  21140. },
  21141. "sessionID": {
  21142. "type": "string",
  21143. "allOf": [
  21144. {
  21145. "pattern": "^ses"
  21146. }
  21147. ]
  21148. },
  21149. "messageID": {
  21150. "type": "string",
  21151. "allOf": [
  21152. {
  21153. "pattern": "^msg"
  21154. }
  21155. ]
  21156. },
  21157. "type": {
  21158. "type": "string",
  21159. "enum": [
  21160. "reasoning"
  21161. ]
  21162. },
  21163. "text": {
  21164. "type": "string"
  21165. },
  21166. "metadata": {
  21167. "anyOf": [
  21168. {
  21169. "type": "object"
  21170. },
  21171. {
  21172. "type": "null"
  21173. }
  21174. ]
  21175. },
  21176. "time": {
  21177. "type": "object",
  21178. "properties": {
  21179. "start": {
  21180. "type": "integer",
  21181. "allOf": [
  21182. {
  21183. "minimum": 0
  21184. }
  21185. ]
  21186. },
  21187. "end": {
  21188. "anyOf": [
  21189. {
  21190. "type": "integer",
  21191. "allOf": [
  21192. {
  21193. "minimum": 0
  21194. }
  21195. ]
  21196. },
  21197. {
  21198. "type": "null"
  21199. }
  21200. ]
  21201. }
  21202. },
  21203. "required": [
  21204. "start"
  21205. ],
  21206. "additionalProperties": false
  21207. }
  21208. },
  21209. "required": [
  21210. "id",
  21211. "sessionID",
  21212. "messageID",
  21213. "type",
  21214. "text",
  21215. "time"
  21216. ],
  21217. "additionalProperties": false
  21218. },
  21219. "FilePartSourceText": {
  21220. "type": "object",
  21221. "properties": {
  21222. "value": {
  21223. "type": "string"
  21224. },
  21225. "start": {
  21226. "type": "number"
  21227. },
  21228. "end": {
  21229. "type": "number"
  21230. }
  21231. },
  21232. "required": [
  21233. "value",
  21234. "start",
  21235. "end"
  21236. ],
  21237. "additionalProperties": false
  21238. },
  21239. "FileSource": {
  21240. "type": "object",
  21241. "properties": {
  21242. "text": {
  21243. "$ref": "#/components/schemas/FilePartSourceText"
  21244. },
  21245. "type": {
  21246. "type": "string",
  21247. "enum": [
  21248. "file"
  21249. ]
  21250. },
  21251. "path": {
  21252. "type": "string"
  21253. }
  21254. },
  21255. "required": [
  21256. "text",
  21257. "type",
  21258. "path"
  21259. ],
  21260. "additionalProperties": false
  21261. },
  21262. "Range": {
  21263. "type": "object",
  21264. "properties": {
  21265. "start": {
  21266. "type": "object",
  21267. "properties": {
  21268. "line": {
  21269. "type": "integer",
  21270. "allOf": [
  21271. {
  21272. "minimum": 0
  21273. }
  21274. ]
  21275. },
  21276. "character": {
  21277. "type": "integer",
  21278. "allOf": [
  21279. {
  21280. "minimum": 0
  21281. }
  21282. ]
  21283. }
  21284. },
  21285. "required": [
  21286. "line",
  21287. "character"
  21288. ],
  21289. "additionalProperties": false
  21290. },
  21291. "end": {
  21292. "type": "object",
  21293. "properties": {
  21294. "line": {
  21295. "type": "integer",
  21296. "allOf": [
  21297. {
  21298. "minimum": 0
  21299. }
  21300. ]
  21301. },
  21302. "character": {
  21303. "type": "integer",
  21304. "allOf": [
  21305. {
  21306. "minimum": 0
  21307. }
  21308. ]
  21309. }
  21310. },
  21311. "required": [
  21312. "line",
  21313. "character"
  21314. ],
  21315. "additionalProperties": false
  21316. }
  21317. },
  21318. "required": [
  21319. "start",
  21320. "end"
  21321. ],
  21322. "additionalProperties": false
  21323. },
  21324. "SymbolSource": {
  21325. "type": "object",
  21326. "properties": {
  21327. "text": {
  21328. "$ref": "#/components/schemas/FilePartSourceText"
  21329. },
  21330. "type": {
  21331. "type": "string",
  21332. "enum": [
  21333. "symbol"
  21334. ]
  21335. },
  21336. "path": {
  21337. "type": "string"
  21338. },
  21339. "range": {
  21340. "$ref": "#/components/schemas/Range"
  21341. },
  21342. "name": {
  21343. "type": "string"
  21344. },
  21345. "kind": {
  21346. "type": "integer",
  21347. "allOf": [
  21348. {
  21349. "minimum": 0
  21350. }
  21351. ]
  21352. }
  21353. },
  21354. "required": [
  21355. "text",
  21356. "type",
  21357. "path",
  21358. "range",
  21359. "name",
  21360. "kind"
  21361. ],
  21362. "additionalProperties": false
  21363. },
  21364. "ResourceSource": {
  21365. "type": "object",
  21366. "properties": {
  21367. "text": {
  21368. "$ref": "#/components/schemas/FilePartSourceText"
  21369. },
  21370. "type": {
  21371. "type": "string",
  21372. "enum": [
  21373. "resource"
  21374. ]
  21375. },
  21376. "clientName": {
  21377. "type": "string"
  21378. },
  21379. "uri": {
  21380. "type": "string"
  21381. }
  21382. },
  21383. "required": [
  21384. "text",
  21385. "type",
  21386. "clientName",
  21387. "uri"
  21388. ],
  21389. "additionalProperties": false
  21390. },
  21391. "FilePartSource": {
  21392. "anyOf": [
  21393. {
  21394. "$ref": "#/components/schemas/FileSource"
  21395. },
  21396. {
  21397. "$ref": "#/components/schemas/SymbolSource"
  21398. },
  21399. {
  21400. "$ref": "#/components/schemas/ResourceSource"
  21401. }
  21402. ]
  21403. },
  21404. "FilePart": {
  21405. "type": "object",
  21406. "properties": {
  21407. "id": {
  21408. "type": "string",
  21409. "allOf": [
  21410. {
  21411. "pattern": "^prt"
  21412. }
  21413. ]
  21414. },
  21415. "sessionID": {
  21416. "type": "string",
  21417. "allOf": [
  21418. {
  21419. "pattern": "^ses"
  21420. }
  21421. ]
  21422. },
  21423. "messageID": {
  21424. "type": "string",
  21425. "allOf": [
  21426. {
  21427. "pattern": "^msg"
  21428. }
  21429. ]
  21430. },
  21431. "type": {
  21432. "type": "string",
  21433. "enum": [
  21434. "file"
  21435. ]
  21436. },
  21437. "mime": {
  21438. "type": "string"
  21439. },
  21440. "filename": {
  21441. "anyOf": [
  21442. {
  21443. "type": "string"
  21444. },
  21445. {
  21446. "type": "null"
  21447. }
  21448. ]
  21449. },
  21450. "url": {
  21451. "type": "string"
  21452. },
  21453. "source": {
  21454. "anyOf": [
  21455. {
  21456. "$ref": "#/components/schemas/FilePartSource"
  21457. },
  21458. {
  21459. "type": "null"
  21460. }
  21461. ]
  21462. }
  21463. },
  21464. "required": [
  21465. "id",
  21466. "sessionID",
  21467. "messageID",
  21468. "type",
  21469. "mime",
  21470. "url"
  21471. ],
  21472. "additionalProperties": false
  21473. },
  21474. "ToolStatePending": {
  21475. "type": "object",
  21476. "properties": {
  21477. "status": {
  21478. "type": "string",
  21479. "enum": [
  21480. "pending"
  21481. ]
  21482. },
  21483. "input": {
  21484. "type": "object"
  21485. },
  21486. "raw": {
  21487. "type": "string"
  21488. }
  21489. },
  21490. "required": [
  21491. "status",
  21492. "input",
  21493. "raw"
  21494. ],
  21495. "additionalProperties": false
  21496. },
  21497. "ToolStateRunning": {
  21498. "type": "object",
  21499. "properties": {
  21500. "status": {
  21501. "type": "string",
  21502. "enum": [
  21503. "running"
  21504. ]
  21505. },
  21506. "input": {
  21507. "type": "object"
  21508. },
  21509. "title": {
  21510. "anyOf": [
  21511. {
  21512. "type": "string"
  21513. },
  21514. {
  21515. "type": "null"
  21516. }
  21517. ]
  21518. },
  21519. "metadata": {
  21520. "anyOf": [
  21521. {
  21522. "type": "object"
  21523. },
  21524. {
  21525. "type": "null"
  21526. }
  21527. ]
  21528. },
  21529. "time": {
  21530. "type": "object",
  21531. "properties": {
  21532. "start": {
  21533. "type": "integer",
  21534. "allOf": [
  21535. {
  21536. "minimum": 0
  21537. }
  21538. ]
  21539. }
  21540. },
  21541. "required": [
  21542. "start"
  21543. ],
  21544. "additionalProperties": false
  21545. }
  21546. },
  21547. "required": [
  21548. "status",
  21549. "input",
  21550. "time"
  21551. ],
  21552. "additionalProperties": false
  21553. },
  21554. "ToolStateCompleted": {
  21555. "type": "object",
  21556. "properties": {
  21557. "status": {
  21558. "type": "string",
  21559. "enum": [
  21560. "completed"
  21561. ]
  21562. },
  21563. "input": {
  21564. "type": "object"
  21565. },
  21566. "output": {
  21567. "type": "string"
  21568. },
  21569. "title": {
  21570. "type": "string"
  21571. },
  21572. "metadata": {
  21573. "type": "object"
  21574. },
  21575. "time": {
  21576. "type": "object",
  21577. "properties": {
  21578. "start": {
  21579. "type": "integer",
  21580. "allOf": [
  21581. {
  21582. "minimum": 0
  21583. }
  21584. ]
  21585. },
  21586. "end": {
  21587. "type": "integer",
  21588. "allOf": [
  21589. {
  21590. "minimum": 0
  21591. }
  21592. ]
  21593. },
  21594. "compacted": {
  21595. "anyOf": [
  21596. {
  21597. "type": "integer",
  21598. "allOf": [
  21599. {
  21600. "minimum": 0
  21601. }
  21602. ]
  21603. },
  21604. {
  21605. "type": "null"
  21606. }
  21607. ]
  21608. }
  21609. },
  21610. "required": [
  21611. "start",
  21612. "end"
  21613. ],
  21614. "additionalProperties": false
  21615. },
  21616. "attachments": {
  21617. "anyOf": [
  21618. {
  21619. "type": "array",
  21620. "items": {
  21621. "$ref": "#/components/schemas/FilePart"
  21622. }
  21623. },
  21624. {
  21625. "type": "null"
  21626. }
  21627. ]
  21628. }
  21629. },
  21630. "required": [
  21631. "status",
  21632. "input",
  21633. "output",
  21634. "title",
  21635. "metadata",
  21636. "time"
  21637. ],
  21638. "additionalProperties": false
  21639. },
  21640. "ToolStateError": {
  21641. "type": "object",
  21642. "properties": {
  21643. "status": {
  21644. "type": "string",
  21645. "enum": [
  21646. "error"
  21647. ]
  21648. },
  21649. "input": {
  21650. "type": "object"
  21651. },
  21652. "error": {
  21653. "type": "string"
  21654. },
  21655. "metadata": {
  21656. "anyOf": [
  21657. {
  21658. "type": "object"
  21659. },
  21660. {
  21661. "type": "null"
  21662. }
  21663. ]
  21664. },
  21665. "time": {
  21666. "type": "object",
  21667. "properties": {
  21668. "start": {
  21669. "type": "integer",
  21670. "allOf": [
  21671. {
  21672. "minimum": 0
  21673. }
  21674. ]
  21675. },
  21676. "end": {
  21677. "type": "integer",
  21678. "allOf": [
  21679. {
  21680. "minimum": 0
  21681. }
  21682. ]
  21683. }
  21684. },
  21685. "required": [
  21686. "start",
  21687. "end"
  21688. ],
  21689. "additionalProperties": false
  21690. }
  21691. },
  21692. "required": [
  21693. "status",
  21694. "input",
  21695. "error",
  21696. "time"
  21697. ],
  21698. "additionalProperties": false
  21699. },
  21700. "ToolState": {
  21701. "anyOf": [
  21702. {
  21703. "$ref": "#/components/schemas/ToolStatePending"
  21704. },
  21705. {
  21706. "$ref": "#/components/schemas/ToolStateRunning"
  21707. },
  21708. {
  21709. "$ref": "#/components/schemas/ToolStateCompleted"
  21710. },
  21711. {
  21712. "$ref": "#/components/schemas/ToolStateError"
  21713. }
  21714. ]
  21715. },
  21716. "ToolPart": {
  21717. "type": "object",
  21718. "properties": {
  21719. "id": {
  21720. "type": "string",
  21721. "allOf": [
  21722. {
  21723. "pattern": "^prt"
  21724. }
  21725. ]
  21726. },
  21727. "sessionID": {
  21728. "type": "string",
  21729. "allOf": [
  21730. {
  21731. "pattern": "^ses"
  21732. }
  21733. ]
  21734. },
  21735. "messageID": {
  21736. "type": "string",
  21737. "allOf": [
  21738. {
  21739. "pattern": "^msg"
  21740. }
  21741. ]
  21742. },
  21743. "type": {
  21744. "type": "string",
  21745. "enum": [
  21746. "tool"
  21747. ]
  21748. },
  21749. "callID": {
  21750. "type": "string"
  21751. },
  21752. "tool": {
  21753. "type": "string"
  21754. },
  21755. "state": {
  21756. "$ref": "#/components/schemas/ToolState"
  21757. },
  21758. "metadata": {
  21759. "anyOf": [
  21760. {
  21761. "type": "object"
  21762. },
  21763. {
  21764. "type": "null"
  21765. }
  21766. ]
  21767. }
  21768. },
  21769. "required": [
  21770. "id",
  21771. "sessionID",
  21772. "messageID",
  21773. "type",
  21774. "callID",
  21775. "tool",
  21776. "state"
  21777. ],
  21778. "additionalProperties": false
  21779. },
  21780. "StepStartPart": {
  21781. "type": "object",
  21782. "properties": {
  21783. "id": {
  21784. "type": "string",
  21785. "allOf": [
  21786. {
  21787. "pattern": "^prt"
  21788. }
  21789. ]
  21790. },
  21791. "sessionID": {
  21792. "type": "string",
  21793. "allOf": [
  21794. {
  21795. "pattern": "^ses"
  21796. }
  21797. ]
  21798. },
  21799. "messageID": {
  21800. "type": "string",
  21801. "allOf": [
  21802. {
  21803. "pattern": "^msg"
  21804. }
  21805. ]
  21806. },
  21807. "type": {
  21808. "type": "string",
  21809. "enum": [
  21810. "step-start"
  21811. ]
  21812. },
  21813. "snapshot": {
  21814. "anyOf": [
  21815. {
  21816. "type": "string"
  21817. },
  21818. {
  21819. "type": "null"
  21820. }
  21821. ]
  21822. }
  21823. },
  21824. "required": [
  21825. "id",
  21826. "sessionID",
  21827. "messageID",
  21828. "type"
  21829. ],
  21830. "additionalProperties": false
  21831. },
  21832. "StepFinishPart": {
  21833. "type": "object",
  21834. "properties": {
  21835. "id": {
  21836. "type": "string",
  21837. "allOf": [
  21838. {
  21839. "pattern": "^prt"
  21840. }
  21841. ]
  21842. },
  21843. "sessionID": {
  21844. "type": "string",
  21845. "allOf": [
  21846. {
  21847. "pattern": "^ses"
  21848. }
  21849. ]
  21850. },
  21851. "messageID": {
  21852. "type": "string",
  21853. "allOf": [
  21854. {
  21855. "pattern": "^msg"
  21856. }
  21857. ]
  21858. },
  21859. "type": {
  21860. "type": "string",
  21861. "enum": [
  21862. "step-finish"
  21863. ]
  21864. },
  21865. "reason": {
  21866. "type": "string"
  21867. },
  21868. "snapshot": {
  21869. "anyOf": [
  21870. {
  21871. "type": "string"
  21872. },
  21873. {
  21874. "type": "null"
  21875. }
  21876. ]
  21877. },
  21878. "cost": {
  21879. "type": "number"
  21880. },
  21881. "tokens": {
  21882. "type": "object",
  21883. "properties": {
  21884. "total": {
  21885. "anyOf": [
  21886. {
  21887. "type": "number"
  21888. },
  21889. {
  21890. "type": "null"
  21891. }
  21892. ]
  21893. },
  21894. "input": {
  21895. "type": "number"
  21896. },
  21897. "output": {
  21898. "type": "number"
  21899. },
  21900. "reasoning": {
  21901. "type": "number"
  21902. },
  21903. "cache": {
  21904. "type": "object",
  21905. "properties": {
  21906. "read": {
  21907. "type": "number"
  21908. },
  21909. "write": {
  21910. "type": "number"
  21911. }
  21912. },
  21913. "required": [
  21914. "read",
  21915. "write"
  21916. ],
  21917. "additionalProperties": false
  21918. }
  21919. },
  21920. "required": [
  21921. "input",
  21922. "output",
  21923. "reasoning",
  21924. "cache"
  21925. ],
  21926. "additionalProperties": false
  21927. }
  21928. },
  21929. "required": [
  21930. "id",
  21931. "sessionID",
  21932. "messageID",
  21933. "type",
  21934. "reason",
  21935. "cost",
  21936. "tokens"
  21937. ],
  21938. "additionalProperties": false
  21939. },
  21940. "SnapshotPart": {
  21941. "type": "object",
  21942. "properties": {
  21943. "id": {
  21944. "type": "string",
  21945. "allOf": [
  21946. {
  21947. "pattern": "^prt"
  21948. }
  21949. ]
  21950. },
  21951. "sessionID": {
  21952. "type": "string",
  21953. "allOf": [
  21954. {
  21955. "pattern": "^ses"
  21956. }
  21957. ]
  21958. },
  21959. "messageID": {
  21960. "type": "string",
  21961. "allOf": [
  21962. {
  21963. "pattern": "^msg"
  21964. }
  21965. ]
  21966. },
  21967. "type": {
  21968. "type": "string",
  21969. "enum": [
  21970. "snapshot"
  21971. ]
  21972. },
  21973. "snapshot": {
  21974. "type": "string"
  21975. }
  21976. },
  21977. "required": [
  21978. "id",
  21979. "sessionID",
  21980. "messageID",
  21981. "type",
  21982. "snapshot"
  21983. ],
  21984. "additionalProperties": false
  21985. },
  21986. "PatchPart": {
  21987. "type": "object",
  21988. "properties": {
  21989. "id": {
  21990. "type": "string",
  21991. "allOf": [
  21992. {
  21993. "pattern": "^prt"
  21994. }
  21995. ]
  21996. },
  21997. "sessionID": {
  21998. "type": "string",
  21999. "allOf": [
  22000. {
  22001. "pattern": "^ses"
  22002. }
  22003. ]
  22004. },
  22005. "messageID": {
  22006. "type": "string",
  22007. "allOf": [
  22008. {
  22009. "pattern": "^msg"
  22010. }
  22011. ]
  22012. },
  22013. "type": {
  22014. "type": "string",
  22015. "enum": [
  22016. "patch"
  22017. ]
  22018. },
  22019. "hash": {
  22020. "type": "string"
  22021. },
  22022. "files": {
  22023. "type": "array",
  22024. "items": {
  22025. "type": "string"
  22026. }
  22027. }
  22028. },
  22029. "required": [
  22030. "id",
  22031. "sessionID",
  22032. "messageID",
  22033. "type",
  22034. "hash",
  22035. "files"
  22036. ],
  22037. "additionalProperties": false
  22038. },
  22039. "AgentPart": {
  22040. "type": "object",
  22041. "properties": {
  22042. "id": {
  22043. "type": "string",
  22044. "allOf": [
  22045. {
  22046. "pattern": "^prt"
  22047. }
  22048. ]
  22049. },
  22050. "sessionID": {
  22051. "type": "string",
  22052. "allOf": [
  22053. {
  22054. "pattern": "^ses"
  22055. }
  22056. ]
  22057. },
  22058. "messageID": {
  22059. "type": "string",
  22060. "allOf": [
  22061. {
  22062. "pattern": "^msg"
  22063. }
  22064. ]
  22065. },
  22066. "type": {
  22067. "type": "string",
  22068. "enum": [
  22069. "agent"
  22070. ]
  22071. },
  22072. "name": {
  22073. "type": "string"
  22074. },
  22075. "source": {
  22076. "anyOf": [
  22077. {
  22078. "type": "object",
  22079. "properties": {
  22080. "value": {
  22081. "type": "string"
  22082. },
  22083. "start": {
  22084. "type": "integer",
  22085. "allOf": [
  22086. {
  22087. "minimum": 0
  22088. }
  22089. ]
  22090. },
  22091. "end": {
  22092. "type": "integer",
  22093. "allOf": [
  22094. {
  22095. "minimum": 0
  22096. }
  22097. ]
  22098. }
  22099. },
  22100. "required": [
  22101. "value",
  22102. "start",
  22103. "end"
  22104. ],
  22105. "additionalProperties": false
  22106. },
  22107. {
  22108. "type": "null"
  22109. }
  22110. ]
  22111. }
  22112. },
  22113. "required": [
  22114. "id",
  22115. "sessionID",
  22116. "messageID",
  22117. "type",
  22118. "name"
  22119. ],
  22120. "additionalProperties": false
  22121. },
  22122. "RetryPart": {
  22123. "type": "object",
  22124. "properties": {
  22125. "id": {
  22126. "type": "string",
  22127. "allOf": [
  22128. {
  22129. "pattern": "^prt"
  22130. }
  22131. ]
  22132. },
  22133. "sessionID": {
  22134. "type": "string",
  22135. "allOf": [
  22136. {
  22137. "pattern": "^ses"
  22138. }
  22139. ]
  22140. },
  22141. "messageID": {
  22142. "type": "string",
  22143. "allOf": [
  22144. {
  22145. "pattern": "^msg"
  22146. }
  22147. ]
  22148. },
  22149. "type": {
  22150. "type": "string",
  22151. "enum": [
  22152. "retry"
  22153. ]
  22154. },
  22155. "attempt": {
  22156. "type": "integer",
  22157. "allOf": [
  22158. {
  22159. "minimum": 0
  22160. }
  22161. ]
  22162. },
  22163. "error": {
  22164. "$ref": "#/components/schemas/APIError"
  22165. },
  22166. "time": {
  22167. "type": "object",
  22168. "properties": {
  22169. "created": {
  22170. "type": "integer",
  22171. "allOf": [
  22172. {
  22173. "minimum": 0
  22174. }
  22175. ]
  22176. }
  22177. },
  22178. "required": [
  22179. "created"
  22180. ],
  22181. "additionalProperties": false
  22182. }
  22183. },
  22184. "required": [
  22185. "id",
  22186. "sessionID",
  22187. "messageID",
  22188. "type",
  22189. "attempt",
  22190. "error",
  22191. "time"
  22192. ],
  22193. "additionalProperties": false
  22194. },
  22195. "CompactionPart": {
  22196. "type": "object",
  22197. "properties": {
  22198. "id": {
  22199. "type": "string",
  22200. "allOf": [
  22201. {
  22202. "pattern": "^prt"
  22203. }
  22204. ]
  22205. },
  22206. "sessionID": {
  22207. "type": "string",
  22208. "allOf": [
  22209. {
  22210. "pattern": "^ses"
  22211. }
  22212. ]
  22213. },
  22214. "messageID": {
  22215. "type": "string",
  22216. "allOf": [
  22217. {
  22218. "pattern": "^msg"
  22219. }
  22220. ]
  22221. },
  22222. "type": {
  22223. "type": "string",
  22224. "enum": [
  22225. "compaction"
  22226. ]
  22227. },
  22228. "auto": {
  22229. "type": "boolean"
  22230. },
  22231. "overflow": {
  22232. "anyOf": [
  22233. {
  22234. "type": "boolean"
  22235. },
  22236. {
  22237. "type": "null"
  22238. }
  22239. ]
  22240. },
  22241. "tail_start_id": {
  22242. "anyOf": [
  22243. {
  22244. "type": "string",
  22245. "allOf": [
  22246. {
  22247. "pattern": "^msg"
  22248. }
  22249. ]
  22250. },
  22251. {
  22252. "type": "null"
  22253. }
  22254. ]
  22255. }
  22256. },
  22257. "required": [
  22258. "id",
  22259. "sessionID",
  22260. "messageID",
  22261. "type",
  22262. "auto"
  22263. ],
  22264. "additionalProperties": false
  22265. },
  22266. "Part": {
  22267. "anyOf": [
  22268. {
  22269. "$ref": "#/components/schemas/TextPart"
  22270. },
  22271. {
  22272. "$ref": "#/components/schemas/SubtaskPart"
  22273. },
  22274. {
  22275. "$ref": "#/components/schemas/ReasoningPart"
  22276. },
  22277. {
  22278. "$ref": "#/components/schemas/FilePart"
  22279. },
  22280. {
  22281. "$ref": "#/components/schemas/ToolPart"
  22282. },
  22283. {
  22284. "$ref": "#/components/schemas/StepStartPart"
  22285. },
  22286. {
  22287. "$ref": "#/components/schemas/StepFinishPart"
  22288. },
  22289. {
  22290. "$ref": "#/components/schemas/SnapshotPart"
  22291. },
  22292. {
  22293. "$ref": "#/components/schemas/PatchPart"
  22294. },
  22295. {
  22296. "$ref": "#/components/schemas/AgentPart"
  22297. },
  22298. {
  22299. "$ref": "#/components/schemas/RetryPart"
  22300. },
  22301. {
  22302. "$ref": "#/components/schemas/CompactionPart"
  22303. }
  22304. ]
  22305. },
  22306. "message.part.updated": {
  22307. "type": "object",
  22308. "properties": {
  22309. "id": {
  22310. "type": "string",
  22311. "allOf": [
  22312. {
  22313. "pattern": "^evt_"
  22314. }
  22315. ]
  22316. },
  22317. "created": {
  22318. "type": "number"
  22319. },
  22320. "metadata": {
  22321. "type": "object"
  22322. },
  22323. "type": {
  22324. "type": "string",
  22325. "enum": [
  22326. "message.part.updated"
  22327. ]
  22328. },
  22329. "durable": {
  22330. "type": "object",
  22331. "properties": {
  22332. "aggregateID": {
  22333. "type": "string"
  22334. },
  22335. "seq": {
  22336. "type": "integer",
  22337. "allOf": [
  22338. {
  22339. "minimum": 0
  22340. }
  22341. ]
  22342. },
  22343. "version": {
  22344. "type": "number",
  22345. "enum": [
  22346. 1
  22347. ]
  22348. }
  22349. },
  22350. "required": [
  22351. "aggregateID",
  22352. "seq",
  22353. "version"
  22354. ],
  22355. "additionalProperties": false
  22356. },
  22357. "location": {
  22358. "$ref": "#/components/schemas/Location.Ref"
  22359. },
  22360. "data": {
  22361. "type": "object",
  22362. "properties": {
  22363. "sessionID": {
  22364. "type": "string",
  22365. "allOf": [
  22366. {
  22367. "pattern": "^ses"
  22368. }
  22369. ]
  22370. },
  22371. "part": {
  22372. "$ref": "#/components/schemas/Part"
  22373. },
  22374. "time": {
  22375. "type": "number"
  22376. }
  22377. },
  22378. "required": [
  22379. "sessionID",
  22380. "part",
  22381. "time"
  22382. ],
  22383. "additionalProperties": false
  22384. }
  22385. },
  22386. "required": [
  22387. "id",
  22388. "created",
  22389. "type",
  22390. "durable",
  22391. "data"
  22392. ],
  22393. "additionalProperties": false
  22394. },
  22395. "message.part.removed": {
  22396. "type": "object",
  22397. "properties": {
  22398. "id": {
  22399. "type": "string",
  22400. "allOf": [
  22401. {
  22402. "pattern": "^evt_"
  22403. }
  22404. ]
  22405. },
  22406. "created": {
  22407. "type": "number"
  22408. },
  22409. "metadata": {
  22410. "type": "object"
  22411. },
  22412. "type": {
  22413. "type": "string",
  22414. "enum": [
  22415. "message.part.removed"
  22416. ]
  22417. },
  22418. "durable": {
  22419. "type": "object",
  22420. "properties": {
  22421. "aggregateID": {
  22422. "type": "string"
  22423. },
  22424. "seq": {
  22425. "type": "integer",
  22426. "allOf": [
  22427. {
  22428. "minimum": 0
  22429. }
  22430. ]
  22431. },
  22432. "version": {
  22433. "type": "number",
  22434. "enum": [
  22435. 1
  22436. ]
  22437. }
  22438. },
  22439. "required": [
  22440. "aggregateID",
  22441. "seq",
  22442. "version"
  22443. ],
  22444. "additionalProperties": false
  22445. },
  22446. "location": {
  22447. "$ref": "#/components/schemas/Location.Ref"
  22448. },
  22449. "data": {
  22450. "type": "object",
  22451. "properties": {
  22452. "sessionID": {
  22453. "type": "string",
  22454. "allOf": [
  22455. {
  22456. "pattern": "^ses"
  22457. }
  22458. ]
  22459. },
  22460. "messageID": {
  22461. "type": "string",
  22462. "allOf": [
  22463. {
  22464. "pattern": "^msg"
  22465. }
  22466. ]
  22467. },
  22468. "partID": {
  22469. "type": "string",
  22470. "allOf": [
  22471. {
  22472. "pattern": "^prt"
  22473. }
  22474. ]
  22475. }
  22476. },
  22477. "required": [
  22478. "sessionID",
  22479. "messageID",
  22480. "partID"
  22481. ],
  22482. "additionalProperties": false
  22483. }
  22484. },
  22485. "required": [
  22486. "id",
  22487. "created",
  22488. "type",
  22489. "durable",
  22490. "data"
  22491. ],
  22492. "additionalProperties": false
  22493. },
  22494. "session.usage.updated": {
  22495. "type": "object",
  22496. "properties": {
  22497. "id": {
  22498. "type": "string",
  22499. "allOf": [
  22500. {
  22501. "pattern": "^evt_"
  22502. }
  22503. ]
  22504. },
  22505. "created": {
  22506. "type": "number"
  22507. },
  22508. "metadata": {
  22509. "type": "object"
  22510. },
  22511. "type": {
  22512. "type": "string",
  22513. "enum": [
  22514. "session.usage.updated"
  22515. ]
  22516. },
  22517. "location": {
  22518. "$ref": "#/components/schemas/Location.Ref"
  22519. },
  22520. "data": {
  22521. "type": "object",
  22522. "properties": {
  22523. "sessionID": {
  22524. "type": "string",
  22525. "allOf": [
  22526. {
  22527. "pattern": "^ses"
  22528. }
  22529. ]
  22530. },
  22531. "cost": {
  22532. "$ref": "#/components/schemas/Money.USD"
  22533. },
  22534. "tokens": {
  22535. "$ref": "#/components/schemas/TokenUsage.Info"
  22536. }
  22537. },
  22538. "required": [
  22539. "sessionID",
  22540. "cost",
  22541. "tokens"
  22542. ],
  22543. "additionalProperties": false
  22544. }
  22545. },
  22546. "required": [
  22547. "id",
  22548. "created",
  22549. "type",
  22550. "data"
  22551. ],
  22552. "additionalProperties": false
  22553. },
  22554. "session.text.delta": {
  22555. "type": "object",
  22556. "properties": {
  22557. "id": {
  22558. "type": "string",
  22559. "allOf": [
  22560. {
  22561. "pattern": "^evt_"
  22562. }
  22563. ]
  22564. },
  22565. "created": {
  22566. "type": "number"
  22567. },
  22568. "metadata": {
  22569. "type": "object"
  22570. },
  22571. "type": {
  22572. "type": "string",
  22573. "enum": [
  22574. "session.text.delta"
  22575. ]
  22576. },
  22577. "location": {
  22578. "$ref": "#/components/schemas/Location.Ref"
  22579. },
  22580. "data": {
  22581. "type": "object",
  22582. "properties": {
  22583. "sessionID": {
  22584. "type": "string",
  22585. "allOf": [
  22586. {
  22587. "pattern": "^ses"
  22588. }
  22589. ]
  22590. },
  22591. "assistantMessageID": {
  22592. "type": "string",
  22593. "allOf": [
  22594. {
  22595. "pattern": "^msg_"
  22596. }
  22597. ]
  22598. },
  22599. "ordinal": {
  22600. "type": "integer",
  22601. "allOf": [
  22602. {
  22603. "minimum": 0
  22604. }
  22605. ]
  22606. },
  22607. "delta": {
  22608. "type": "string"
  22609. }
  22610. },
  22611. "required": [
  22612. "sessionID",
  22613. "assistantMessageID",
  22614. "ordinal",
  22615. "delta"
  22616. ],
  22617. "additionalProperties": false
  22618. }
  22619. },
  22620. "required": [
  22621. "id",
  22622. "created",
  22623. "type",
  22624. "data"
  22625. ],
  22626. "additionalProperties": false
  22627. },
  22628. "session.reasoning.delta": {
  22629. "type": "object",
  22630. "properties": {
  22631. "id": {
  22632. "type": "string",
  22633. "allOf": [
  22634. {
  22635. "pattern": "^evt_"
  22636. }
  22637. ]
  22638. },
  22639. "created": {
  22640. "type": "number"
  22641. },
  22642. "metadata": {
  22643. "type": "object"
  22644. },
  22645. "type": {
  22646. "type": "string",
  22647. "enum": [
  22648. "session.reasoning.delta"
  22649. ]
  22650. },
  22651. "location": {
  22652. "$ref": "#/components/schemas/Location.Ref"
  22653. },
  22654. "data": {
  22655. "type": "object",
  22656. "properties": {
  22657. "sessionID": {
  22658. "type": "string",
  22659. "allOf": [
  22660. {
  22661. "pattern": "^ses"
  22662. }
  22663. ]
  22664. },
  22665. "assistantMessageID": {
  22666. "type": "string",
  22667. "allOf": [
  22668. {
  22669. "pattern": "^msg_"
  22670. }
  22671. ]
  22672. },
  22673. "ordinal": {
  22674. "type": "integer",
  22675. "allOf": [
  22676. {
  22677. "minimum": 0
  22678. }
  22679. ]
  22680. },
  22681. "delta": {
  22682. "type": "string"
  22683. }
  22684. },
  22685. "required": [
  22686. "sessionID",
  22687. "assistantMessageID",
  22688. "ordinal",
  22689. "delta"
  22690. ],
  22691. "additionalProperties": false
  22692. }
  22693. },
  22694. "required": [
  22695. "id",
  22696. "created",
  22697. "type",
  22698. "data"
  22699. ],
  22700. "additionalProperties": false
  22701. },
  22702. "session.tool.input.delta": {
  22703. "type": "object",
  22704. "properties": {
  22705. "id": {
  22706. "type": "string",
  22707. "allOf": [
  22708. {
  22709. "pattern": "^evt_"
  22710. }
  22711. ]
  22712. },
  22713. "created": {
  22714. "type": "number"
  22715. },
  22716. "metadata": {
  22717. "type": "object"
  22718. },
  22719. "type": {
  22720. "type": "string",
  22721. "enum": [
  22722. "session.tool.input.delta"
  22723. ]
  22724. },
  22725. "location": {
  22726. "$ref": "#/components/schemas/Location.Ref"
  22727. },
  22728. "data": {
  22729. "type": "object",
  22730. "properties": {
  22731. "sessionID": {
  22732. "type": "string",
  22733. "allOf": [
  22734. {
  22735. "pattern": "^ses"
  22736. }
  22737. ]
  22738. },
  22739. "assistantMessageID": {
  22740. "type": "string",
  22741. "allOf": [
  22742. {
  22743. "pattern": "^msg_"
  22744. }
  22745. ]
  22746. },
  22747. "callID": {
  22748. "type": "string"
  22749. },
  22750. "delta": {
  22751. "type": "string"
  22752. }
  22753. },
  22754. "required": [
  22755. "sessionID",
  22756. "assistantMessageID",
  22757. "callID",
  22758. "delta"
  22759. ],
  22760. "additionalProperties": false
  22761. }
  22762. },
  22763. "required": [
  22764. "id",
  22765. "created",
  22766. "type",
  22767. "data"
  22768. ],
  22769. "additionalProperties": false
  22770. },
  22771. "session.compaction.delta": {
  22772. "type": "object",
  22773. "properties": {
  22774. "id": {
  22775. "type": "string",
  22776. "allOf": [
  22777. {
  22778. "pattern": "^evt_"
  22779. }
  22780. ]
  22781. },
  22782. "created": {
  22783. "type": "number"
  22784. },
  22785. "metadata": {
  22786. "type": "object"
  22787. },
  22788. "type": {
  22789. "type": "string",
  22790. "enum": [
  22791. "session.compaction.delta"
  22792. ]
  22793. },
  22794. "location": {
  22795. "$ref": "#/components/schemas/Location.Ref"
  22796. },
  22797. "data": {
  22798. "type": "object",
  22799. "properties": {
  22800. "sessionID": {
  22801. "type": "string",
  22802. "allOf": [
  22803. {
  22804. "pattern": "^ses"
  22805. }
  22806. ]
  22807. },
  22808. "text": {
  22809. "type": "string"
  22810. }
  22811. },
  22812. "required": [
  22813. "sessionID",
  22814. "text"
  22815. ],
  22816. "additionalProperties": false
  22817. }
  22818. },
  22819. "required": [
  22820. "id",
  22821. "created",
  22822. "type",
  22823. "data"
  22824. ],
  22825. "additionalProperties": false
  22826. },
  22827. "filesystem.changed": {
  22828. "type": "object",
  22829. "properties": {
  22830. "id": {
  22831. "type": "string",
  22832. "allOf": [
  22833. {
  22834. "pattern": "^evt_"
  22835. }
  22836. ]
  22837. },
  22838. "created": {
  22839. "type": "number"
  22840. },
  22841. "metadata": {
  22842. "type": "object"
  22843. },
  22844. "type": {
  22845. "type": "string",
  22846. "enum": [
  22847. "filesystem.changed"
  22848. ]
  22849. },
  22850. "location": {
  22851. "$ref": "#/components/schemas/Location.Ref"
  22852. },
  22853. "data": {
  22854. "type": "object",
  22855. "properties": {
  22856. "file": {
  22857. "type": "string"
  22858. },
  22859. "event": {
  22860. "type": "string",
  22861. "enum": [
  22862. "add",
  22863. "change",
  22864. "unlink"
  22865. ]
  22866. }
  22867. },
  22868. "required": [
  22869. "file",
  22870. "event"
  22871. ],
  22872. "additionalProperties": false
  22873. }
  22874. },
  22875. "required": [
  22876. "id",
  22877. "created",
  22878. "type",
  22879. "data"
  22880. ],
  22881. "additionalProperties": false
  22882. },
  22883. "reference.updated": {
  22884. "type": "object",
  22885. "properties": {
  22886. "id": {
  22887. "type": "string",
  22888. "allOf": [
  22889. {
  22890. "pattern": "^evt_"
  22891. }
  22892. ]
  22893. },
  22894. "created": {
  22895. "type": "number"
  22896. },
  22897. "metadata": {
  22898. "type": "object"
  22899. },
  22900. "type": {
  22901. "type": "string",
  22902. "enum": [
  22903. "reference.updated"
  22904. ]
  22905. },
  22906. "location": {
  22907. "$ref": "#/components/schemas/Location.Ref"
  22908. },
  22909. "data": {
  22910. "anyOf": [
  22911. {
  22912. "type": "object"
  22913. },
  22914. {
  22915. "type": "array"
  22916. }
  22917. ]
  22918. }
  22919. },
  22920. "required": [
  22921. "id",
  22922. "created",
  22923. "type",
  22924. "data"
  22925. ],
  22926. "additionalProperties": false
  22927. },
  22928. "permission.v2.asked": {
  22929. "type": "object",
  22930. "properties": {
  22931. "id": {
  22932. "type": "string",
  22933. "allOf": [
  22934. {
  22935. "pattern": "^evt_"
  22936. }
  22937. ]
  22938. },
  22939. "created": {
  22940. "type": "number"
  22941. },
  22942. "metadata": {
  22943. "type": "object"
  22944. },
  22945. "type": {
  22946. "type": "string",
  22947. "enum": [
  22948. "permission.v2.asked"
  22949. ]
  22950. },
  22951. "location": {
  22952. "$ref": "#/components/schemas/Location.Ref"
  22953. },
  22954. "data": {
  22955. "type": "object",
  22956. "properties": {
  22957. "id": {
  22958. "type": "string",
  22959. "allOf": [
  22960. {
  22961. "pattern": "^per"
  22962. }
  22963. ]
  22964. },
  22965. "sessionID": {
  22966. "type": "string",
  22967. "allOf": [
  22968. {
  22969. "pattern": "^ses"
  22970. }
  22971. ]
  22972. },
  22973. "action": {
  22974. "type": "string"
  22975. },
  22976. "resources": {
  22977. "type": "array",
  22978. "items": {
  22979. "type": "string"
  22980. }
  22981. },
  22982. "save": {
  22983. "type": "array",
  22984. "items": {
  22985. "type": "string"
  22986. }
  22987. },
  22988. "metadata": {
  22989. "type": "object"
  22990. },
  22991. "source": {
  22992. "$ref": "#/components/schemas/PermissionV2.Source"
  22993. }
  22994. },
  22995. "required": [
  22996. "id",
  22997. "sessionID",
  22998. "action",
  22999. "resources"
  23000. ],
  23001. "additionalProperties": false
  23002. }
  23003. },
  23004. "required": [
  23005. "id",
  23006. "created",
  23007. "type",
  23008. "data"
  23009. ],
  23010. "additionalProperties": false
  23011. },
  23012. "permission.v2.replied": {
  23013. "type": "object",
  23014. "properties": {
  23015. "id": {
  23016. "type": "string",
  23017. "allOf": [
  23018. {
  23019. "pattern": "^evt_"
  23020. }
  23021. ]
  23022. },
  23023. "created": {
  23024. "type": "number"
  23025. },
  23026. "metadata": {
  23027. "type": "object"
  23028. },
  23029. "type": {
  23030. "type": "string",
  23031. "enum": [
  23032. "permission.v2.replied"
  23033. ]
  23034. },
  23035. "location": {
  23036. "$ref": "#/components/schemas/Location.Ref"
  23037. },
  23038. "data": {
  23039. "type": "object",
  23040. "properties": {
  23041. "sessionID": {
  23042. "type": "string",
  23043. "allOf": [
  23044. {
  23045. "pattern": "^ses"
  23046. }
  23047. ]
  23048. },
  23049. "requestID": {
  23050. "type": "string",
  23051. "allOf": [
  23052. {
  23053. "pattern": "^per"
  23054. }
  23055. ]
  23056. },
  23057. "reply": {
  23058. "$ref": "#/components/schemas/PermissionV2.Reply"
  23059. }
  23060. },
  23061. "required": [
  23062. "sessionID",
  23063. "requestID",
  23064. "reply"
  23065. ],
  23066. "additionalProperties": false
  23067. }
  23068. },
  23069. "required": [
  23070. "id",
  23071. "created",
  23072. "type",
  23073. "data"
  23074. ],
  23075. "additionalProperties": false
  23076. },
  23077. "plugin.added": {
  23078. "type": "object",
  23079. "properties": {
  23080. "id": {
  23081. "type": "string",
  23082. "allOf": [
  23083. {
  23084. "pattern": "^evt_"
  23085. }
  23086. ]
  23087. },
  23088. "created": {
  23089. "type": "number"
  23090. },
  23091. "metadata": {
  23092. "type": "object"
  23093. },
  23094. "type": {
  23095. "type": "string",
  23096. "enum": [
  23097. "plugin.added"
  23098. ]
  23099. },
  23100. "location": {
  23101. "$ref": "#/components/schemas/Location.Ref"
  23102. },
  23103. "data": {
  23104. "type": "object",
  23105. "properties": {
  23106. "id": {
  23107. "type": "string"
  23108. }
  23109. },
  23110. "required": [
  23111. "id"
  23112. ],
  23113. "additionalProperties": false
  23114. }
  23115. },
  23116. "required": [
  23117. "id",
  23118. "created",
  23119. "type",
  23120. "data"
  23121. ],
  23122. "additionalProperties": false
  23123. },
  23124. "plugin.updated": {
  23125. "type": "object",
  23126. "properties": {
  23127. "id": {
  23128. "type": "string",
  23129. "allOf": [
  23130. {
  23131. "pattern": "^evt_"
  23132. }
  23133. ]
  23134. },
  23135. "created": {
  23136. "type": "number"
  23137. },
  23138. "metadata": {
  23139. "type": "object"
  23140. },
  23141. "type": {
  23142. "type": "string",
  23143. "enum": [
  23144. "plugin.updated"
  23145. ]
  23146. },
  23147. "location": {
  23148. "$ref": "#/components/schemas/Location.Ref"
  23149. },
  23150. "data": {
  23151. "anyOf": [
  23152. {
  23153. "type": "object"
  23154. },
  23155. {
  23156. "type": "array"
  23157. }
  23158. ]
  23159. }
  23160. },
  23161. "required": [
  23162. "id",
  23163. "created",
  23164. "type",
  23165. "data"
  23166. ],
  23167. "additionalProperties": false
  23168. },
  23169. "project.directories.updated": {
  23170. "type": "object",
  23171. "properties": {
  23172. "id": {
  23173. "type": "string",
  23174. "allOf": [
  23175. {
  23176. "pattern": "^evt_"
  23177. }
  23178. ]
  23179. },
  23180. "created": {
  23181. "type": "number"
  23182. },
  23183. "metadata": {
  23184. "type": "object"
  23185. },
  23186. "type": {
  23187. "type": "string",
  23188. "enum": [
  23189. "project.directories.updated"
  23190. ]
  23191. },
  23192. "location": {
  23193. "$ref": "#/components/schemas/Location.Ref"
  23194. },
  23195. "data": {
  23196. "type": "object",
  23197. "properties": {
  23198. "projectID": {
  23199. "type": "string"
  23200. }
  23201. },
  23202. "required": [
  23203. "projectID"
  23204. ],
  23205. "additionalProperties": false
  23206. }
  23207. },
  23208. "required": [
  23209. "id",
  23210. "created",
  23211. "type",
  23212. "data"
  23213. ],
  23214. "additionalProperties": false
  23215. },
  23216. "command.updated": {
  23217. "type": "object",
  23218. "properties": {
  23219. "id": {
  23220. "type": "string",
  23221. "allOf": [
  23222. {
  23223. "pattern": "^evt_"
  23224. }
  23225. ]
  23226. },
  23227. "created": {
  23228. "type": "number"
  23229. },
  23230. "metadata": {
  23231. "type": "object"
  23232. },
  23233. "type": {
  23234. "type": "string",
  23235. "enum": [
  23236. "command.updated"
  23237. ]
  23238. },
  23239. "location": {
  23240. "$ref": "#/components/schemas/Location.Ref"
  23241. },
  23242. "data": {
  23243. "anyOf": [
  23244. {
  23245. "type": "object"
  23246. },
  23247. {
  23248. "type": "array"
  23249. }
  23250. ]
  23251. }
  23252. },
  23253. "required": [
  23254. "id",
  23255. "created",
  23256. "type",
  23257. "data"
  23258. ],
  23259. "additionalProperties": false
  23260. },
  23261. "config.updated": {
  23262. "type": "object",
  23263. "properties": {
  23264. "id": {
  23265. "type": "string",
  23266. "allOf": [
  23267. {
  23268. "pattern": "^evt_"
  23269. }
  23270. ]
  23271. },
  23272. "created": {
  23273. "type": "number"
  23274. },
  23275. "metadata": {
  23276. "type": "object"
  23277. },
  23278. "type": {
  23279. "type": "string",
  23280. "enum": [
  23281. "config.updated"
  23282. ]
  23283. },
  23284. "location": {
  23285. "$ref": "#/components/schemas/Location.Ref"
  23286. },
  23287. "data": {
  23288. "anyOf": [
  23289. {
  23290. "type": "object"
  23291. },
  23292. {
  23293. "type": "array"
  23294. }
  23295. ]
  23296. }
  23297. },
  23298. "required": [
  23299. "id",
  23300. "created",
  23301. "type",
  23302. "data"
  23303. ],
  23304. "additionalProperties": false
  23305. },
  23306. "skill.updated": {
  23307. "type": "object",
  23308. "properties": {
  23309. "id": {
  23310. "type": "string",
  23311. "allOf": [
  23312. {
  23313. "pattern": "^evt_"
  23314. }
  23315. ]
  23316. },
  23317. "created": {
  23318. "type": "number"
  23319. },
  23320. "metadata": {
  23321. "type": "object"
  23322. },
  23323. "type": {
  23324. "type": "string",
  23325. "enum": [
  23326. "skill.updated"
  23327. ]
  23328. },
  23329. "location": {
  23330. "$ref": "#/components/schemas/Location.Ref"
  23331. },
  23332. "data": {
  23333. "anyOf": [
  23334. {
  23335. "type": "object"
  23336. },
  23337. {
  23338. "type": "array"
  23339. }
  23340. ]
  23341. }
  23342. },
  23343. "required": [
  23344. "id",
  23345. "created",
  23346. "type",
  23347. "data"
  23348. ],
  23349. "additionalProperties": false
  23350. },
  23351. "Pty": {
  23352. "type": "object",
  23353. "properties": {
  23354. "id": {
  23355. "type": "string",
  23356. "allOf": [
  23357. {
  23358. "pattern": "^pty"
  23359. }
  23360. ]
  23361. },
  23362. "title": {
  23363. "type": "string"
  23364. },
  23365. "command": {
  23366. "type": "string"
  23367. },
  23368. "args": {
  23369. "type": "array",
  23370. "items": {
  23371. "type": "string"
  23372. }
  23373. },
  23374. "cwd": {
  23375. "type": "string"
  23376. },
  23377. "status": {
  23378. "type": "string",
  23379. "enum": [
  23380. "running",
  23381. "exited"
  23382. ]
  23383. },
  23384. "pid": {
  23385. "type": "integer",
  23386. "allOf": [
  23387. {
  23388. "minimum": 0
  23389. }
  23390. ]
  23391. },
  23392. "exitCode": {
  23393. "type": "integer",
  23394. "allOf": [
  23395. {
  23396. "minimum": 0
  23397. }
  23398. ]
  23399. }
  23400. },
  23401. "required": [
  23402. "id",
  23403. "title",
  23404. "command",
  23405. "args",
  23406. "cwd",
  23407. "status",
  23408. "pid"
  23409. ],
  23410. "additionalProperties": false
  23411. },
  23412. "pty.created": {
  23413. "type": "object",
  23414. "properties": {
  23415. "id": {
  23416. "type": "string",
  23417. "allOf": [
  23418. {
  23419. "pattern": "^evt_"
  23420. }
  23421. ]
  23422. },
  23423. "created": {
  23424. "type": "number"
  23425. },
  23426. "metadata": {
  23427. "type": "object"
  23428. },
  23429. "type": {
  23430. "type": "string",
  23431. "enum": [
  23432. "pty.created"
  23433. ]
  23434. },
  23435. "location": {
  23436. "$ref": "#/components/schemas/Location.Ref"
  23437. },
  23438. "data": {
  23439. "type": "object",
  23440. "properties": {
  23441. "info": {
  23442. "$ref": "#/components/schemas/Pty"
  23443. }
  23444. },
  23445. "required": [
  23446. "info"
  23447. ],
  23448. "additionalProperties": false
  23449. }
  23450. },
  23451. "required": [
  23452. "id",
  23453. "created",
  23454. "type",
  23455. "data"
  23456. ],
  23457. "additionalProperties": false
  23458. },
  23459. "pty.updated": {
  23460. "type": "object",
  23461. "properties": {
  23462. "id": {
  23463. "type": "string",
  23464. "allOf": [
  23465. {
  23466. "pattern": "^evt_"
  23467. }
  23468. ]
  23469. },
  23470. "created": {
  23471. "type": "number"
  23472. },
  23473. "metadata": {
  23474. "type": "object"
  23475. },
  23476. "type": {
  23477. "type": "string",
  23478. "enum": [
  23479. "pty.updated"
  23480. ]
  23481. },
  23482. "location": {
  23483. "$ref": "#/components/schemas/Location.Ref"
  23484. },
  23485. "data": {
  23486. "type": "object",
  23487. "properties": {
  23488. "info": {
  23489. "$ref": "#/components/schemas/Pty"
  23490. }
  23491. },
  23492. "required": [
  23493. "info"
  23494. ],
  23495. "additionalProperties": false
  23496. }
  23497. },
  23498. "required": [
  23499. "id",
  23500. "created",
  23501. "type",
  23502. "data"
  23503. ],
  23504. "additionalProperties": false
  23505. },
  23506. "pty.exited": {
  23507. "type": "object",
  23508. "properties": {
  23509. "id": {
  23510. "type": "string",
  23511. "allOf": [
  23512. {
  23513. "pattern": "^evt_"
  23514. }
  23515. ]
  23516. },
  23517. "created": {
  23518. "type": "number"
  23519. },
  23520. "metadata": {
  23521. "type": "object"
  23522. },
  23523. "type": {
  23524. "type": "string",
  23525. "enum": [
  23526. "pty.exited"
  23527. ]
  23528. },
  23529. "location": {
  23530. "$ref": "#/components/schemas/Location.Ref"
  23531. },
  23532. "data": {
  23533. "type": "object",
  23534. "properties": {
  23535. "id": {
  23536. "type": "string",
  23537. "allOf": [
  23538. {
  23539. "pattern": "^pty"
  23540. }
  23541. ]
  23542. },
  23543. "exitCode": {
  23544. "type": "integer",
  23545. "allOf": [
  23546. {
  23547. "minimum": 0
  23548. }
  23549. ]
  23550. }
  23551. },
  23552. "required": [
  23553. "id",
  23554. "exitCode"
  23555. ],
  23556. "additionalProperties": false
  23557. }
  23558. },
  23559. "required": [
  23560. "id",
  23561. "created",
  23562. "type",
  23563. "data"
  23564. ],
  23565. "additionalProperties": false
  23566. },
  23567. "pty.deleted": {
  23568. "type": "object",
  23569. "properties": {
  23570. "id": {
  23571. "type": "string",
  23572. "allOf": [
  23573. {
  23574. "pattern": "^evt_"
  23575. }
  23576. ]
  23577. },
  23578. "created": {
  23579. "type": "number"
  23580. },
  23581. "metadata": {
  23582. "type": "object"
  23583. },
  23584. "type": {
  23585. "type": "string",
  23586. "enum": [
  23587. "pty.deleted"
  23588. ]
  23589. },
  23590. "location": {
  23591. "$ref": "#/components/schemas/Location.Ref"
  23592. },
  23593. "data": {
  23594. "type": "object",
  23595. "properties": {
  23596. "id": {
  23597. "type": "string",
  23598. "allOf": [
  23599. {
  23600. "pattern": "^pty"
  23601. }
  23602. ]
  23603. }
  23604. },
  23605. "required": [
  23606. "id"
  23607. ],
  23608. "additionalProperties": false
  23609. }
  23610. },
  23611. "required": [
  23612. "id",
  23613. "created",
  23614. "type",
  23615. "data"
  23616. ],
  23617. "additionalProperties": false
  23618. },
  23619. "shell.created": {
  23620. "type": "object",
  23621. "properties": {
  23622. "id": {
  23623. "type": "string",
  23624. "allOf": [
  23625. {
  23626. "pattern": "^evt_"
  23627. }
  23628. ]
  23629. },
  23630. "created": {
  23631. "type": "number"
  23632. },
  23633. "metadata": {
  23634. "type": "object"
  23635. },
  23636. "type": {
  23637. "type": "string",
  23638. "enum": [
  23639. "shell.created"
  23640. ]
  23641. },
  23642. "location": {
  23643. "$ref": "#/components/schemas/Location.Ref"
  23644. },
  23645. "data": {
  23646. "type": "object",
  23647. "properties": {
  23648. "info": {
  23649. "$ref": "#/components/schemas/Shell"
  23650. }
  23651. },
  23652. "required": [
  23653. "info"
  23654. ],
  23655. "additionalProperties": false
  23656. }
  23657. },
  23658. "required": [
  23659. "id",
  23660. "created",
  23661. "type",
  23662. "data"
  23663. ],
  23664. "additionalProperties": false
  23665. },
  23666. "shell.exited": {
  23667. "type": "object",
  23668. "properties": {
  23669. "id": {
  23670. "type": "string",
  23671. "allOf": [
  23672. {
  23673. "pattern": "^evt_"
  23674. }
  23675. ]
  23676. },
  23677. "created": {
  23678. "type": "number"
  23679. },
  23680. "metadata": {
  23681. "type": "object"
  23682. },
  23683. "type": {
  23684. "type": "string",
  23685. "enum": [
  23686. "shell.exited"
  23687. ]
  23688. },
  23689. "location": {
  23690. "$ref": "#/components/schemas/Location.Ref"
  23691. },
  23692. "data": {
  23693. "type": "object",
  23694. "properties": {
  23695. "id": {
  23696. "type": "string",
  23697. "allOf": [
  23698. {
  23699. "pattern": "^sh_"
  23700. }
  23701. ]
  23702. },
  23703. "exit": {
  23704. "anyOf": [
  23705. {
  23706. "type": "number"
  23707. },
  23708. {
  23709. "type": "string",
  23710. "enum": [
  23711. "NaN"
  23712. ]
  23713. },
  23714. {
  23715. "type": "string",
  23716. "enum": [
  23717. "Infinity"
  23718. ]
  23719. },
  23720. {
  23721. "type": "string",
  23722. "enum": [
  23723. "-Infinity"
  23724. ]
  23725. }
  23726. ]
  23727. },
  23728. "status": {
  23729. "type": "string",
  23730. "enum": [
  23731. "running",
  23732. "exited",
  23733. "timeout",
  23734. "killed"
  23735. ]
  23736. }
  23737. },
  23738. "required": [
  23739. "id",
  23740. "status"
  23741. ],
  23742. "additionalProperties": false
  23743. }
  23744. },
  23745. "required": [
  23746. "id",
  23747. "created",
  23748. "type",
  23749. "data"
  23750. ],
  23751. "additionalProperties": false
  23752. },
  23753. "shell.deleted": {
  23754. "type": "object",
  23755. "properties": {
  23756. "id": {
  23757. "type": "string",
  23758. "allOf": [
  23759. {
  23760. "pattern": "^evt_"
  23761. }
  23762. ]
  23763. },
  23764. "created": {
  23765. "type": "number"
  23766. },
  23767. "metadata": {
  23768. "type": "object"
  23769. },
  23770. "type": {
  23771. "type": "string",
  23772. "enum": [
  23773. "shell.deleted"
  23774. ]
  23775. },
  23776. "location": {
  23777. "$ref": "#/components/schemas/Location.Ref"
  23778. },
  23779. "data": {
  23780. "type": "object",
  23781. "properties": {
  23782. "id": {
  23783. "type": "string",
  23784. "allOf": [
  23785. {
  23786. "pattern": "^sh_"
  23787. }
  23788. ]
  23789. }
  23790. },
  23791. "required": [
  23792. "id"
  23793. ],
  23794. "additionalProperties": false
  23795. }
  23796. },
  23797. "required": [
  23798. "id",
  23799. "created",
  23800. "type",
  23801. "data"
  23802. ],
  23803. "additionalProperties": false
  23804. },
  23805. "QuestionV2.Option": {
  23806. "type": "object",
  23807. "properties": {
  23808. "label": {
  23809. "type": "string",
  23810. "description": "Display text (1-5 words, concise)"
  23811. },
  23812. "description": {
  23813. "type": "string",
  23814. "description": "Explanation of choice"
  23815. }
  23816. },
  23817. "required": [
  23818. "label",
  23819. "description"
  23820. ],
  23821. "additionalProperties": false
  23822. },
  23823. "QuestionV2.Info": {
  23824. "type": "object",
  23825. "properties": {
  23826. "question": {
  23827. "type": "string",
  23828. "description": "Complete question"
  23829. },
  23830. "header": {
  23831. "type": "string",
  23832. "description": "Very short label (max 30 chars)"
  23833. },
  23834. "options": {
  23835. "type": "array",
  23836. "items": {
  23837. "$ref": "#/components/schemas/QuestionV2.Option"
  23838. },
  23839. "description": "Available choices"
  23840. },
  23841. "multiple": {
  23842. "type": "boolean"
  23843. },
  23844. "custom": {
  23845. "type": "boolean"
  23846. }
  23847. },
  23848. "required": [
  23849. "question",
  23850. "header",
  23851. "options"
  23852. ],
  23853. "additionalProperties": false
  23854. },
  23855. "QuestionV2.Tool": {
  23856. "type": "object",
  23857. "properties": {
  23858. "messageID": {
  23859. "type": "string"
  23860. },
  23861. "callID": {
  23862. "type": "string"
  23863. }
  23864. },
  23865. "required": [
  23866. "messageID",
  23867. "callID"
  23868. ],
  23869. "additionalProperties": false
  23870. },
  23871. "question.v2.asked": {
  23872. "type": "object",
  23873. "properties": {
  23874. "id": {
  23875. "type": "string",
  23876. "allOf": [
  23877. {
  23878. "pattern": "^evt_"
  23879. }
  23880. ]
  23881. },
  23882. "created": {
  23883. "type": "number"
  23884. },
  23885. "metadata": {
  23886. "type": "object"
  23887. },
  23888. "type": {
  23889. "type": "string",
  23890. "enum": [
  23891. "question.v2.asked"
  23892. ]
  23893. },
  23894. "location": {
  23895. "$ref": "#/components/schemas/Location.Ref"
  23896. },
  23897. "data": {
  23898. "type": "object",
  23899. "properties": {
  23900. "id": {
  23901. "type": "string",
  23902. "allOf": [
  23903. {
  23904. "pattern": "^que"
  23905. }
  23906. ]
  23907. },
  23908. "sessionID": {
  23909. "type": "string",
  23910. "allOf": [
  23911. {
  23912. "pattern": "^ses"
  23913. }
  23914. ]
  23915. },
  23916. "questions": {
  23917. "type": "array",
  23918. "items": {
  23919. "$ref": "#/components/schemas/QuestionV2.Info"
  23920. },
  23921. "description": "Questions to ask"
  23922. },
  23923. "tool": {
  23924. "$ref": "#/components/schemas/QuestionV2.Tool"
  23925. }
  23926. },
  23927. "required": [
  23928. "id",
  23929. "sessionID",
  23930. "questions"
  23931. ],
  23932. "additionalProperties": false
  23933. }
  23934. },
  23935. "required": [
  23936. "id",
  23937. "created",
  23938. "type",
  23939. "data"
  23940. ],
  23941. "additionalProperties": false
  23942. },
  23943. "QuestionV2.Answer": {
  23944. "type": "array",
  23945. "items": {
  23946. "type": "string"
  23947. }
  23948. },
  23949. "question.v2.replied": {
  23950. "type": "object",
  23951. "properties": {
  23952. "id": {
  23953. "type": "string",
  23954. "allOf": [
  23955. {
  23956. "pattern": "^evt_"
  23957. }
  23958. ]
  23959. },
  23960. "created": {
  23961. "type": "number"
  23962. },
  23963. "metadata": {
  23964. "type": "object"
  23965. },
  23966. "type": {
  23967. "type": "string",
  23968. "enum": [
  23969. "question.v2.replied"
  23970. ]
  23971. },
  23972. "location": {
  23973. "$ref": "#/components/schemas/Location.Ref"
  23974. },
  23975. "data": {
  23976. "type": "object",
  23977. "properties": {
  23978. "sessionID": {
  23979. "type": "string",
  23980. "allOf": [
  23981. {
  23982. "pattern": "^ses"
  23983. }
  23984. ]
  23985. },
  23986. "requestID": {
  23987. "type": "string",
  23988. "allOf": [
  23989. {
  23990. "pattern": "^que"
  23991. }
  23992. ]
  23993. },
  23994. "answers": {
  23995. "type": "array",
  23996. "items": {
  23997. "$ref": "#/components/schemas/QuestionV2.Answer"
  23998. }
  23999. }
  24000. },
  24001. "required": [
  24002. "sessionID",
  24003. "requestID",
  24004. "answers"
  24005. ],
  24006. "additionalProperties": false
  24007. }
  24008. },
  24009. "required": [
  24010. "id",
  24011. "created",
  24012. "type",
  24013. "data"
  24014. ],
  24015. "additionalProperties": false
  24016. },
  24017. "question.v2.rejected": {
  24018. "type": "object",
  24019. "properties": {
  24020. "id": {
  24021. "type": "string",
  24022. "allOf": [
  24023. {
  24024. "pattern": "^evt_"
  24025. }
  24026. ]
  24027. },
  24028. "created": {
  24029. "type": "number"
  24030. },
  24031. "metadata": {
  24032. "type": "object"
  24033. },
  24034. "type": {
  24035. "type": "string",
  24036. "enum": [
  24037. "question.v2.rejected"
  24038. ]
  24039. },
  24040. "location": {
  24041. "$ref": "#/components/schemas/Location.Ref"
  24042. },
  24043. "data": {
  24044. "type": "object",
  24045. "properties": {
  24046. "sessionID": {
  24047. "type": "string",
  24048. "allOf": [
  24049. {
  24050. "pattern": "^ses"
  24051. }
  24052. ]
  24053. },
  24054. "requestID": {
  24055. "type": "string",
  24056. "allOf": [
  24057. {
  24058. "pattern": "^que"
  24059. }
  24060. ]
  24061. }
  24062. },
  24063. "required": [
  24064. "sessionID",
  24065. "requestID"
  24066. ],
  24067. "additionalProperties": false
  24068. }
  24069. },
  24070. "required": [
  24071. "id",
  24072. "created",
  24073. "type",
  24074. "data"
  24075. ],
  24076. "additionalProperties": false
  24077. },
  24078. "Form.Metadata1": {
  24079. "type": "object"
  24080. },
  24081. "Form.When1": {
  24082. "type": "object",
  24083. "properties": {
  24084. "key": {
  24085. "type": "string"
  24086. },
  24087. "op": {
  24088. "type": "string",
  24089. "enum": [
  24090. "eq",
  24091. "neq"
  24092. ]
  24093. },
  24094. "value": {
  24095. "anyOf": [
  24096. {
  24097. "type": "string"
  24098. },
  24099. {
  24100. "anyOf": [
  24101. {
  24102. "type": "number"
  24103. },
  24104. {
  24105. "type": "string",
  24106. "enum": [
  24107. "NaN"
  24108. ]
  24109. },
  24110. {
  24111. "type": "string",
  24112. "enum": [
  24113. "Infinity"
  24114. ]
  24115. },
  24116. {
  24117. "type": "string",
  24118. "enum": [
  24119. "-Infinity"
  24120. ]
  24121. }
  24122. ]
  24123. },
  24124. {
  24125. "type": "boolean"
  24126. }
  24127. ]
  24128. }
  24129. },
  24130. "required": [
  24131. "key",
  24132. "op",
  24133. "value"
  24134. ],
  24135. "additionalProperties": false
  24136. },
  24137. "Form.StringField1": {
  24138. "type": "object",
  24139. "properties": {
  24140. "key": {
  24141. "type": "string"
  24142. },
  24143. "title": {
  24144. "type": "string"
  24145. },
  24146. "description": {
  24147. "type": "string"
  24148. },
  24149. "required": {
  24150. "type": "boolean"
  24151. },
  24152. "when": {
  24153. "type": "array",
  24154. "items": {
  24155. "$ref": "#/components/schemas/Form.When1"
  24156. }
  24157. },
  24158. "type": {
  24159. "type": "string",
  24160. "enum": [
  24161. "string"
  24162. ]
  24163. },
  24164. "format": {
  24165. "type": "string",
  24166. "enum": [
  24167. "email",
  24168. "uri",
  24169. "date",
  24170. "date-time"
  24171. ]
  24172. },
  24173. "minLength": {
  24174. "type": "integer",
  24175. "allOf": [
  24176. {
  24177. "minimum": 0
  24178. }
  24179. ]
  24180. },
  24181. "maxLength": {
  24182. "type": "integer",
  24183. "allOf": [
  24184. {
  24185. "minimum": 0
  24186. }
  24187. ]
  24188. },
  24189. "pattern": {
  24190. "type": "string"
  24191. },
  24192. "placeholder": {
  24193. "type": "string"
  24194. },
  24195. "default": {
  24196. "type": "string"
  24197. },
  24198. "options": {
  24199. "type": "array",
  24200. "items": {
  24201. "$ref": "#/components/schemas/Form.Option"
  24202. }
  24203. },
  24204. "custom": {
  24205. "type": "boolean"
  24206. }
  24207. },
  24208. "required": [
  24209. "key",
  24210. "type"
  24211. ],
  24212. "additionalProperties": false
  24213. },
  24214. "Form.NumberField1": {
  24215. "type": "object",
  24216. "properties": {
  24217. "key": {
  24218. "type": "string"
  24219. },
  24220. "title": {
  24221. "type": "string"
  24222. },
  24223. "description": {
  24224. "type": "string"
  24225. },
  24226. "required": {
  24227. "type": "boolean"
  24228. },
  24229. "when": {
  24230. "type": "array",
  24231. "items": {
  24232. "$ref": "#/components/schemas/Form.When1"
  24233. }
  24234. },
  24235. "type": {
  24236. "type": "string",
  24237. "enum": [
  24238. "number"
  24239. ]
  24240. },
  24241. "minimum": {
  24242. "anyOf": [
  24243. {
  24244. "type": "number"
  24245. },
  24246. {
  24247. "type": "string",
  24248. "enum": [
  24249. "NaN"
  24250. ]
  24251. },
  24252. {
  24253. "type": "string",
  24254. "enum": [
  24255. "Infinity"
  24256. ]
  24257. },
  24258. {
  24259. "type": "string",
  24260. "enum": [
  24261. "-Infinity"
  24262. ]
  24263. }
  24264. ]
  24265. },
  24266. "maximum": {
  24267. "anyOf": [
  24268. {
  24269. "type": "number"
  24270. },
  24271. {
  24272. "type": "string",
  24273. "enum": [
  24274. "NaN"
  24275. ]
  24276. },
  24277. {
  24278. "type": "string",
  24279. "enum": [
  24280. "Infinity"
  24281. ]
  24282. },
  24283. {
  24284. "type": "string",
  24285. "enum": [
  24286. "-Infinity"
  24287. ]
  24288. }
  24289. ]
  24290. },
  24291. "default": {
  24292. "anyOf": [
  24293. {
  24294. "type": "number"
  24295. },
  24296. {
  24297. "type": "string",
  24298. "enum": [
  24299. "NaN"
  24300. ]
  24301. },
  24302. {
  24303. "type": "string",
  24304. "enum": [
  24305. "Infinity"
  24306. ]
  24307. },
  24308. {
  24309. "type": "string",
  24310. "enum": [
  24311. "-Infinity"
  24312. ]
  24313. }
  24314. ]
  24315. }
  24316. },
  24317. "required": [
  24318. "key",
  24319. "type"
  24320. ],
  24321. "additionalProperties": false
  24322. },
  24323. "Form.IntegerField1": {
  24324. "type": "object",
  24325. "properties": {
  24326. "key": {
  24327. "type": "string"
  24328. },
  24329. "title": {
  24330. "type": "string"
  24331. },
  24332. "description": {
  24333. "type": "string"
  24334. },
  24335. "required": {
  24336. "type": "boolean"
  24337. },
  24338. "when": {
  24339. "type": "array",
  24340. "items": {
  24341. "$ref": "#/components/schemas/Form.When1"
  24342. }
  24343. },
  24344. "type": {
  24345. "type": "string",
  24346. "enum": [
  24347. "integer"
  24348. ]
  24349. },
  24350. "minimum": {
  24351. "anyOf": [
  24352. {
  24353. "type": "number"
  24354. },
  24355. {
  24356. "type": "string",
  24357. "enum": [
  24358. "NaN"
  24359. ]
  24360. },
  24361. {
  24362. "type": "string",
  24363. "enum": [
  24364. "Infinity"
  24365. ]
  24366. },
  24367. {
  24368. "type": "string",
  24369. "enum": [
  24370. "-Infinity"
  24371. ]
  24372. }
  24373. ]
  24374. },
  24375. "maximum": {
  24376. "anyOf": [
  24377. {
  24378. "type": "number"
  24379. },
  24380. {
  24381. "type": "string",
  24382. "enum": [
  24383. "NaN"
  24384. ]
  24385. },
  24386. {
  24387. "type": "string",
  24388. "enum": [
  24389. "Infinity"
  24390. ]
  24391. },
  24392. {
  24393. "type": "string",
  24394. "enum": [
  24395. "-Infinity"
  24396. ]
  24397. }
  24398. ]
  24399. },
  24400. "default": {
  24401. "anyOf": [
  24402. {
  24403. "type": "number"
  24404. },
  24405. {
  24406. "type": "string",
  24407. "enum": [
  24408. "NaN"
  24409. ]
  24410. },
  24411. {
  24412. "type": "string",
  24413. "enum": [
  24414. "Infinity"
  24415. ]
  24416. },
  24417. {
  24418. "type": "string",
  24419. "enum": [
  24420. "-Infinity"
  24421. ]
  24422. }
  24423. ]
  24424. }
  24425. },
  24426. "required": [
  24427. "key",
  24428. "type"
  24429. ],
  24430. "additionalProperties": false
  24431. },
  24432. "Form.BooleanField1": {
  24433. "type": "object",
  24434. "properties": {
  24435. "key": {
  24436. "type": "string"
  24437. },
  24438. "title": {
  24439. "type": "string"
  24440. },
  24441. "description": {
  24442. "type": "string"
  24443. },
  24444. "required": {
  24445. "type": "boolean"
  24446. },
  24447. "when": {
  24448. "type": "array",
  24449. "items": {
  24450. "$ref": "#/components/schemas/Form.When1"
  24451. }
  24452. },
  24453. "type": {
  24454. "type": "string",
  24455. "enum": [
  24456. "boolean"
  24457. ]
  24458. },
  24459. "default": {
  24460. "type": "boolean"
  24461. }
  24462. },
  24463. "required": [
  24464. "key",
  24465. "type"
  24466. ],
  24467. "additionalProperties": false
  24468. },
  24469. "Form.MultiselectField1": {
  24470. "type": "object",
  24471. "properties": {
  24472. "key": {
  24473. "type": "string"
  24474. },
  24475. "title": {
  24476. "type": "string"
  24477. },
  24478. "description": {
  24479. "type": "string"
  24480. },
  24481. "required": {
  24482. "type": "boolean"
  24483. },
  24484. "when": {
  24485. "type": "array",
  24486. "items": {
  24487. "$ref": "#/components/schemas/Form.When1"
  24488. }
  24489. },
  24490. "type": {
  24491. "type": "string",
  24492. "enum": [
  24493. "multiselect"
  24494. ]
  24495. },
  24496. "options": {
  24497. "type": "array",
  24498. "items": {
  24499. "$ref": "#/components/schemas/Form.Option"
  24500. }
  24501. },
  24502. "minItems": {
  24503. "type": "integer",
  24504. "allOf": [
  24505. {
  24506. "minimum": 0
  24507. }
  24508. ]
  24509. },
  24510. "maxItems": {
  24511. "type": "integer",
  24512. "allOf": [
  24513. {
  24514. "minimum": 0
  24515. }
  24516. ]
  24517. },
  24518. "custom": {
  24519. "type": "boolean"
  24520. },
  24521. "default": {
  24522. "type": "array",
  24523. "items": {
  24524. "type": "string"
  24525. }
  24526. }
  24527. },
  24528. "required": [
  24529. "key",
  24530. "type",
  24531. "options"
  24532. ],
  24533. "additionalProperties": false
  24534. },
  24535. "Form.FormInfo1": {
  24536. "type": "object",
  24537. "properties": {
  24538. "id": {
  24539. "type": "string",
  24540. "allOf": [
  24541. {
  24542. "pattern": "^frm_"
  24543. }
  24544. ]
  24545. },
  24546. "sessionID": {
  24547. "type": "string"
  24548. },
  24549. "title": {
  24550. "type": "string"
  24551. },
  24552. "metadata": {
  24553. "$ref": "#/components/schemas/Form.Metadata1"
  24554. },
  24555. "mode": {
  24556. "type": "string",
  24557. "enum": [
  24558. "form"
  24559. ]
  24560. },
  24561. "fields": {
  24562. "type": "array",
  24563. "items": {
  24564. "anyOf": [
  24565. {
  24566. "$ref": "#/components/schemas/Form.StringField1"
  24567. },
  24568. {
  24569. "$ref": "#/components/schemas/Form.NumberField1"
  24570. },
  24571. {
  24572. "$ref": "#/components/schemas/Form.IntegerField1"
  24573. },
  24574. {
  24575. "$ref": "#/components/schemas/Form.BooleanField1"
  24576. },
  24577. {
  24578. "$ref": "#/components/schemas/Form.MultiselectField1"
  24579. }
  24580. ]
  24581. }
  24582. }
  24583. },
  24584. "required": [
  24585. "id",
  24586. "sessionID",
  24587. "mode",
  24588. "fields"
  24589. ],
  24590. "additionalProperties": false
  24591. },
  24592. "Form.UrlInfo1": {
  24593. "type": "object",
  24594. "properties": {
  24595. "id": {
  24596. "type": "string",
  24597. "allOf": [
  24598. {
  24599. "pattern": "^frm_"
  24600. }
  24601. ]
  24602. },
  24603. "sessionID": {
  24604. "type": "string"
  24605. },
  24606. "title": {
  24607. "type": "string"
  24608. },
  24609. "metadata": {
  24610. "$ref": "#/components/schemas/Form.Metadata1"
  24611. },
  24612. "mode": {
  24613. "type": "string",
  24614. "enum": [
  24615. "url"
  24616. ]
  24617. },
  24618. "url": {
  24619. "type": "string"
  24620. }
  24621. },
  24622. "required": [
  24623. "id",
  24624. "sessionID",
  24625. "mode",
  24626. "url"
  24627. ],
  24628. "additionalProperties": false
  24629. },
  24630. "form.created": {
  24631. "type": "object",
  24632. "properties": {
  24633. "id": {
  24634. "type": "string",
  24635. "allOf": [
  24636. {
  24637. "pattern": "^evt_"
  24638. }
  24639. ]
  24640. },
  24641. "created": {
  24642. "type": "number"
  24643. },
  24644. "metadata": {
  24645. "type": "object"
  24646. },
  24647. "type": {
  24648. "type": "string",
  24649. "enum": [
  24650. "form.created"
  24651. ]
  24652. },
  24653. "location": {
  24654. "$ref": "#/components/schemas/Location.Ref"
  24655. },
  24656. "data": {
  24657. "type": "object",
  24658. "properties": {
  24659. "form": {
  24660. "anyOf": [
  24661. {
  24662. "$ref": "#/components/schemas/Form.FormInfo1"
  24663. },
  24664. {
  24665. "$ref": "#/components/schemas/Form.UrlInfo1"
  24666. }
  24667. ]
  24668. }
  24669. },
  24670. "required": [
  24671. "form"
  24672. ],
  24673. "additionalProperties": false
  24674. }
  24675. },
  24676. "required": [
  24677. "id",
  24678. "created",
  24679. "type",
  24680. "data"
  24681. ],
  24682. "additionalProperties": false
  24683. },
  24684. "Form.Value1": {
  24685. "anyOf": [
  24686. {
  24687. "type": "string"
  24688. },
  24689. {
  24690. "anyOf": [
  24691. {
  24692. "type": "number"
  24693. },
  24694. {
  24695. "type": "string",
  24696. "enum": [
  24697. "NaN"
  24698. ]
  24699. },
  24700. {
  24701. "type": "string",
  24702. "enum": [
  24703. "Infinity"
  24704. ]
  24705. },
  24706. {
  24707. "type": "string",
  24708. "enum": [
  24709. "-Infinity"
  24710. ]
  24711. }
  24712. ]
  24713. },
  24714. {
  24715. "type": "boolean"
  24716. },
  24717. {
  24718. "type": "array",
  24719. "items": {
  24720. "type": "string"
  24721. }
  24722. }
  24723. ]
  24724. },
  24725. "Form.Answer1": {
  24726. "type": "object",
  24727. "additionalProperties": {
  24728. "$ref": "#/components/schemas/Form.Value1"
  24729. }
  24730. },
  24731. "form.replied": {
  24732. "type": "object",
  24733. "properties": {
  24734. "id": {
  24735. "type": "string",
  24736. "allOf": [
  24737. {
  24738. "pattern": "^evt_"
  24739. }
  24740. ]
  24741. },
  24742. "created": {
  24743. "type": "number"
  24744. },
  24745. "metadata": {
  24746. "type": "object"
  24747. },
  24748. "type": {
  24749. "type": "string",
  24750. "enum": [
  24751. "form.replied"
  24752. ]
  24753. },
  24754. "location": {
  24755. "$ref": "#/components/schemas/Location.Ref"
  24756. },
  24757. "data": {
  24758. "type": "object",
  24759. "properties": {
  24760. "id": {
  24761. "type": "string",
  24762. "allOf": [
  24763. {
  24764. "pattern": "^frm_"
  24765. }
  24766. ]
  24767. },
  24768. "sessionID": {
  24769. "type": "string"
  24770. },
  24771. "answer": {
  24772. "$ref": "#/components/schemas/Form.Answer1"
  24773. }
  24774. },
  24775. "required": [
  24776. "id",
  24777. "sessionID",
  24778. "answer"
  24779. ],
  24780. "additionalProperties": false
  24781. }
  24782. },
  24783. "required": [
  24784. "id",
  24785. "created",
  24786. "type",
  24787. "data"
  24788. ],
  24789. "additionalProperties": false
  24790. },
  24791. "form.cancelled": {
  24792. "type": "object",
  24793. "properties": {
  24794. "id": {
  24795. "type": "string",
  24796. "allOf": [
  24797. {
  24798. "pattern": "^evt_"
  24799. }
  24800. ]
  24801. },
  24802. "created": {
  24803. "type": "number"
  24804. },
  24805. "metadata": {
  24806. "type": "object"
  24807. },
  24808. "type": {
  24809. "type": "string",
  24810. "enum": [
  24811. "form.cancelled"
  24812. ]
  24813. },
  24814. "location": {
  24815. "$ref": "#/components/schemas/Location.Ref"
  24816. },
  24817. "data": {
  24818. "type": "object",
  24819. "properties": {
  24820. "id": {
  24821. "type": "string",
  24822. "allOf": [
  24823. {
  24824. "pattern": "^frm_"
  24825. }
  24826. ]
  24827. },
  24828. "sessionID": {
  24829. "type": "string"
  24830. }
  24831. },
  24832. "required": [
  24833. "id",
  24834. "sessionID"
  24835. ],
  24836. "additionalProperties": false
  24837. }
  24838. },
  24839. "required": [
  24840. "id",
  24841. "created",
  24842. "type",
  24843. "data"
  24844. ],
  24845. "additionalProperties": false
  24846. },
  24847. "Todo": {
  24848. "type": "object",
  24849. "properties": {
  24850. "content": {
  24851. "type": "string",
  24852. "description": "Brief description of the task"
  24853. },
  24854. "status": {
  24855. "type": "string",
  24856. "description": "Current status of the task: pending, in_progress, completed, cancelled"
  24857. },
  24858. "priority": {
  24859. "type": "string",
  24860. "description": "Priority level of the task: high, medium, low"
  24861. }
  24862. },
  24863. "required": [
  24864. "content",
  24865. "status",
  24866. "priority"
  24867. ],
  24868. "additionalProperties": false
  24869. },
  24870. "todo.updated": {
  24871. "type": "object",
  24872. "properties": {
  24873. "id": {
  24874. "type": "string",
  24875. "allOf": [
  24876. {
  24877. "pattern": "^evt_"
  24878. }
  24879. ]
  24880. },
  24881. "created": {
  24882. "type": "number"
  24883. },
  24884. "metadata": {
  24885. "type": "object"
  24886. },
  24887. "type": {
  24888. "type": "string",
  24889. "enum": [
  24890. "todo.updated"
  24891. ]
  24892. },
  24893. "location": {
  24894. "$ref": "#/components/schemas/Location.Ref"
  24895. },
  24896. "data": {
  24897. "type": "object",
  24898. "properties": {
  24899. "sessionID": {
  24900. "type": "string",
  24901. "allOf": [
  24902. {
  24903. "pattern": "^ses"
  24904. }
  24905. ]
  24906. },
  24907. "todos": {
  24908. "type": "array",
  24909. "items": {
  24910. "$ref": "#/components/schemas/Todo"
  24911. }
  24912. }
  24913. },
  24914. "required": [
  24915. "sessionID",
  24916. "todos"
  24917. ],
  24918. "additionalProperties": false
  24919. }
  24920. },
  24921. "required": [
  24922. "id",
  24923. "created",
  24924. "type",
  24925. "data"
  24926. ],
  24927. "additionalProperties": false
  24928. },
  24929. "SessionStatus": {
  24930. "anyOf": [
  24931. {
  24932. "type": "object",
  24933. "properties": {
  24934. "type": {
  24935. "type": "string",
  24936. "enum": [
  24937. "idle"
  24938. ]
  24939. }
  24940. },
  24941. "required": [
  24942. "type"
  24943. ],
  24944. "additionalProperties": false
  24945. },
  24946. {
  24947. "type": "object",
  24948. "properties": {
  24949. "type": {
  24950. "type": "string",
  24951. "enum": [
  24952. "retry"
  24953. ]
  24954. },
  24955. "attempt": {
  24956. "type": "integer",
  24957. "allOf": [
  24958. {
  24959. "minimum": 0
  24960. }
  24961. ]
  24962. },
  24963. "message": {
  24964. "type": "string"
  24965. },
  24966. "action": {
  24967. "type": "object",
  24968. "properties": {
  24969. "reason": {
  24970. "type": "string"
  24971. },
  24972. "provider": {
  24973. "type": "string"
  24974. },
  24975. "title": {
  24976. "type": "string"
  24977. },
  24978. "message": {
  24979. "type": "string"
  24980. },
  24981. "label": {
  24982. "type": "string"
  24983. },
  24984. "link": {
  24985. "type": "string"
  24986. }
  24987. },
  24988. "required": [
  24989. "reason",
  24990. "provider",
  24991. "title",
  24992. "message",
  24993. "label"
  24994. ],
  24995. "additionalProperties": false
  24996. },
  24997. "next": {
  24998. "type": "integer",
  24999. "allOf": [
  25000. {
  25001. "minimum": 0
  25002. }
  25003. ]
  25004. }
  25005. },
  25006. "required": [
  25007. "type",
  25008. "attempt",
  25009. "message",
  25010. "next"
  25011. ],
  25012. "additionalProperties": false
  25013. },
  25014. {
  25015. "type": "object",
  25016. "properties": {
  25017. "type": {
  25018. "type": "string",
  25019. "enum": [
  25020. "busy"
  25021. ]
  25022. }
  25023. },
  25024. "required": [
  25025. "type"
  25026. ],
  25027. "additionalProperties": false
  25028. }
  25029. ]
  25030. },
  25031. "session.status": {
  25032. "type": "object",
  25033. "properties": {
  25034. "id": {
  25035. "type": "string",
  25036. "allOf": [
  25037. {
  25038. "pattern": "^evt_"
  25039. }
  25040. ]
  25041. },
  25042. "created": {
  25043. "type": "number"
  25044. },
  25045. "metadata": {
  25046. "type": "object"
  25047. },
  25048. "type": {
  25049. "type": "string",
  25050. "enum": [
  25051. "session.status"
  25052. ]
  25053. },
  25054. "location": {
  25055. "$ref": "#/components/schemas/Location.Ref"
  25056. },
  25057. "data": {
  25058. "type": "object",
  25059. "properties": {
  25060. "sessionID": {
  25061. "type": "string",
  25062. "allOf": [
  25063. {
  25064. "pattern": "^ses"
  25065. }
  25066. ]
  25067. },
  25068. "status": {
  25069. "$ref": "#/components/schemas/SessionStatus"
  25070. }
  25071. },
  25072. "required": [
  25073. "sessionID",
  25074. "status"
  25075. ],
  25076. "additionalProperties": false
  25077. }
  25078. },
  25079. "required": [
  25080. "id",
  25081. "created",
  25082. "type",
  25083. "data"
  25084. ],
  25085. "additionalProperties": false
  25086. },
  25087. "session.idle": {
  25088. "type": "object",
  25089. "properties": {
  25090. "id": {
  25091. "type": "string",
  25092. "allOf": [
  25093. {
  25094. "pattern": "^evt_"
  25095. }
  25096. ]
  25097. },
  25098. "created": {
  25099. "type": "number"
  25100. },
  25101. "metadata": {
  25102. "type": "object"
  25103. },
  25104. "type": {
  25105. "type": "string",
  25106. "enum": [
  25107. "session.idle"
  25108. ]
  25109. },
  25110. "location": {
  25111. "$ref": "#/components/schemas/Location.Ref"
  25112. },
  25113. "data": {
  25114. "type": "object",
  25115. "properties": {
  25116. "sessionID": {
  25117. "type": "string",
  25118. "allOf": [
  25119. {
  25120. "pattern": "^ses"
  25121. }
  25122. ]
  25123. }
  25124. },
  25125. "required": [
  25126. "sessionID"
  25127. ],
  25128. "additionalProperties": false
  25129. }
  25130. },
  25131. "required": [
  25132. "id",
  25133. "created",
  25134. "type",
  25135. "data"
  25136. ],
  25137. "additionalProperties": false
  25138. },
  25139. "tui.prompt.append": {
  25140. "type": "object",
  25141. "properties": {
  25142. "id": {
  25143. "type": "string",
  25144. "allOf": [
  25145. {
  25146. "pattern": "^evt_"
  25147. }
  25148. ]
  25149. },
  25150. "created": {
  25151. "type": "number"
  25152. },
  25153. "metadata": {
  25154. "type": "object"
  25155. },
  25156. "type": {
  25157. "type": "string",
  25158. "enum": [
  25159. "tui.prompt.append"
  25160. ]
  25161. },
  25162. "location": {
  25163. "$ref": "#/components/schemas/Location.Ref"
  25164. },
  25165. "data": {
  25166. "type": "object",
  25167. "properties": {
  25168. "text": {
  25169. "type": "string"
  25170. }
  25171. },
  25172. "required": [
  25173. "text"
  25174. ],
  25175. "additionalProperties": false
  25176. }
  25177. },
  25178. "required": [
  25179. "id",
  25180. "created",
  25181. "type",
  25182. "data"
  25183. ],
  25184. "additionalProperties": false
  25185. },
  25186. "tui.command.execute": {
  25187. "type": "object",
  25188. "properties": {
  25189. "id": {
  25190. "type": "string",
  25191. "allOf": [
  25192. {
  25193. "pattern": "^evt_"
  25194. }
  25195. ]
  25196. },
  25197. "created": {
  25198. "type": "number"
  25199. },
  25200. "metadata": {
  25201. "type": "object"
  25202. },
  25203. "type": {
  25204. "type": "string",
  25205. "enum": [
  25206. "tui.command.execute"
  25207. ]
  25208. },
  25209. "location": {
  25210. "$ref": "#/components/schemas/Location.Ref"
  25211. },
  25212. "data": {
  25213. "type": "object",
  25214. "properties": {
  25215. "command": {
  25216. "anyOf": [
  25217. {
  25218. "type": "string",
  25219. "enum": [
  25220. "session.list",
  25221. "session.new",
  25222. "session.share",
  25223. "session.interrupt",
  25224. "session.background",
  25225. "session.compact",
  25226. "session.page.up",
  25227. "session.page.down",
  25228. "session.line.up",
  25229. "session.line.down",
  25230. "session.half.page.up",
  25231. "session.half.page.down",
  25232. "session.first",
  25233. "session.last",
  25234. "prompt.clear",
  25235. "prompt.submit",
  25236. "agent.cycle"
  25237. ]
  25238. },
  25239. {
  25240. "type": "string"
  25241. }
  25242. ]
  25243. }
  25244. },
  25245. "required": [
  25246. "command"
  25247. ],
  25248. "additionalProperties": false
  25249. }
  25250. },
  25251. "required": [
  25252. "id",
  25253. "created",
  25254. "type",
  25255. "data"
  25256. ],
  25257. "additionalProperties": false
  25258. },
  25259. "tui.toast.show": {
  25260. "type": "object",
  25261. "properties": {
  25262. "id": {
  25263. "type": "string",
  25264. "allOf": [
  25265. {
  25266. "pattern": "^evt_"
  25267. }
  25268. ]
  25269. },
  25270. "created": {
  25271. "type": "number"
  25272. },
  25273. "metadata": {
  25274. "type": "object"
  25275. },
  25276. "type": {
  25277. "type": "string",
  25278. "enum": [
  25279. "tui.toast.show"
  25280. ]
  25281. },
  25282. "location": {
  25283. "$ref": "#/components/schemas/Location.Ref"
  25284. },
  25285. "data": {
  25286. "type": "object",
  25287. "properties": {
  25288. "title": {
  25289. "type": "string"
  25290. },
  25291. "message": {
  25292. "type": "string"
  25293. },
  25294. "variant": {
  25295. "type": "string",
  25296. "enum": [
  25297. "info",
  25298. "success",
  25299. "warning",
  25300. "error"
  25301. ]
  25302. },
  25303. "duration": {
  25304. "anyOf": [
  25305. {
  25306. "type": "integer",
  25307. "allOf": [
  25308. {
  25309. "exclusiveMinimum": 0
  25310. }
  25311. ]
  25312. },
  25313. {
  25314. "type": "null"
  25315. }
  25316. ]
  25317. }
  25318. },
  25319. "required": [
  25320. "message",
  25321. "variant"
  25322. ],
  25323. "additionalProperties": false
  25324. }
  25325. },
  25326. "required": [
  25327. "id",
  25328. "created",
  25329. "type",
  25330. "data"
  25331. ],
  25332. "additionalProperties": false
  25333. },
  25334. "tui.session.select": {
  25335. "type": "object",
  25336. "properties": {
  25337. "id": {
  25338. "type": "string",
  25339. "allOf": [
  25340. {
  25341. "pattern": "^evt_"
  25342. }
  25343. ]
  25344. },
  25345. "created": {
  25346. "type": "number"
  25347. },
  25348. "metadata": {
  25349. "type": "object"
  25350. },
  25351. "type": {
  25352. "type": "string",
  25353. "enum": [
  25354. "tui.session.select"
  25355. ]
  25356. },
  25357. "location": {
  25358. "$ref": "#/components/schemas/Location.Ref"
  25359. },
  25360. "data": {
  25361. "type": "object",
  25362. "properties": {
  25363. "sessionID": {
  25364. "type": "string",
  25365. "allOf": [
  25366. {
  25367. "pattern": "^ses",
  25368. "description": "Session ID to navigate to"
  25369. }
  25370. ]
  25371. }
  25372. },
  25373. "required": [
  25374. "sessionID"
  25375. ],
  25376. "additionalProperties": false
  25377. }
  25378. },
  25379. "required": [
  25380. "id",
  25381. "created",
  25382. "type",
  25383. "data"
  25384. ],
  25385. "additionalProperties": false
  25386. },
  25387. "installation.updated": {
  25388. "type": "object",
  25389. "properties": {
  25390. "id": {
  25391. "type": "string",
  25392. "allOf": [
  25393. {
  25394. "pattern": "^evt_"
  25395. }
  25396. ]
  25397. },
  25398. "created": {
  25399. "type": "number"
  25400. },
  25401. "metadata": {
  25402. "type": "object"
  25403. },
  25404. "type": {
  25405. "type": "string",
  25406. "enum": [
  25407. "installation.updated"
  25408. ]
  25409. },
  25410. "location": {
  25411. "$ref": "#/components/schemas/Location.Ref"
  25412. },
  25413. "data": {
  25414. "type": "object",
  25415. "properties": {
  25416. "version": {
  25417. "type": "string"
  25418. }
  25419. },
  25420. "required": [
  25421. "version"
  25422. ],
  25423. "additionalProperties": false
  25424. }
  25425. },
  25426. "required": [
  25427. "id",
  25428. "created",
  25429. "type",
  25430. "data"
  25431. ],
  25432. "additionalProperties": false
  25433. },
  25434. "installation.update-available": {
  25435. "type": "object",
  25436. "properties": {
  25437. "id": {
  25438. "type": "string",
  25439. "allOf": [
  25440. {
  25441. "pattern": "^evt_"
  25442. }
  25443. ]
  25444. },
  25445. "created": {
  25446. "type": "number"
  25447. },
  25448. "metadata": {
  25449. "type": "object"
  25450. },
  25451. "type": {
  25452. "type": "string",
  25453. "enum": [
  25454. "installation.update-available"
  25455. ]
  25456. },
  25457. "location": {
  25458. "$ref": "#/components/schemas/Location.Ref"
  25459. },
  25460. "data": {
  25461. "type": "object",
  25462. "properties": {
  25463. "version": {
  25464. "type": "string"
  25465. }
  25466. },
  25467. "required": [
  25468. "version"
  25469. ],
  25470. "additionalProperties": false
  25471. }
  25472. },
  25473. "required": [
  25474. "id",
  25475. "created",
  25476. "type",
  25477. "data"
  25478. ],
  25479. "additionalProperties": false
  25480. },
  25481. "vcs.branch.updated": {
  25482. "type": "object",
  25483. "properties": {
  25484. "id": {
  25485. "type": "string",
  25486. "allOf": [
  25487. {
  25488. "pattern": "^evt_"
  25489. }
  25490. ]
  25491. },
  25492. "created": {
  25493. "type": "number"
  25494. },
  25495. "metadata": {
  25496. "type": "object"
  25497. },
  25498. "type": {
  25499. "type": "string",
  25500. "enum": [
  25501. "vcs.branch.updated"
  25502. ]
  25503. },
  25504. "location": {
  25505. "$ref": "#/components/schemas/Location.Ref"
  25506. },
  25507. "data": {
  25508. "type": "object",
  25509. "properties": {
  25510. "branch": {
  25511. "type": "string"
  25512. }
  25513. },
  25514. "additionalProperties": false
  25515. }
  25516. },
  25517. "required": [
  25518. "id",
  25519. "created",
  25520. "type",
  25521. "data"
  25522. ],
  25523. "additionalProperties": false
  25524. },
  25525. "mcp.status.changed": {
  25526. "type": "object",
  25527. "properties": {
  25528. "id": {
  25529. "type": "string",
  25530. "allOf": [
  25531. {
  25532. "pattern": "^evt_"
  25533. }
  25534. ]
  25535. },
  25536. "created": {
  25537. "type": "number"
  25538. },
  25539. "metadata": {
  25540. "type": "object"
  25541. },
  25542. "type": {
  25543. "type": "string",
  25544. "enum": [
  25545. "mcp.status.changed"
  25546. ]
  25547. },
  25548. "location": {
  25549. "$ref": "#/components/schemas/Location.Ref"
  25550. },
  25551. "data": {
  25552. "type": "object",
  25553. "properties": {
  25554. "server": {
  25555. "type": "string"
  25556. }
  25557. },
  25558. "required": [
  25559. "server"
  25560. ],
  25561. "additionalProperties": false
  25562. }
  25563. },
  25564. "required": [
  25565. "id",
  25566. "created",
  25567. "type",
  25568. "data"
  25569. ],
  25570. "additionalProperties": false
  25571. },
  25572. "mcp.resources.changed": {
  25573. "type": "object",
  25574. "properties": {
  25575. "id": {
  25576. "type": "string",
  25577. "allOf": [
  25578. {
  25579. "pattern": "^evt_"
  25580. }
  25581. ]
  25582. },
  25583. "created": {
  25584. "type": "number"
  25585. },
  25586. "metadata": {
  25587. "type": "object"
  25588. },
  25589. "type": {
  25590. "type": "string",
  25591. "enum": [
  25592. "mcp.resources.changed"
  25593. ]
  25594. },
  25595. "location": {
  25596. "$ref": "#/components/schemas/Location.Ref"
  25597. },
  25598. "data": {
  25599. "type": "object",
  25600. "properties": {
  25601. "server": {
  25602. "type": "string"
  25603. }
  25604. },
  25605. "required": [
  25606. "server"
  25607. ],
  25608. "additionalProperties": false
  25609. }
  25610. },
  25611. "required": [
  25612. "id",
  25613. "created",
  25614. "type",
  25615. "data"
  25616. ],
  25617. "additionalProperties": false
  25618. },
  25619. "permission.asked": {
  25620. "type": "object",
  25621. "properties": {
  25622. "id": {
  25623. "type": "string",
  25624. "allOf": [
  25625. {
  25626. "pattern": "^evt_"
  25627. }
  25628. ]
  25629. },
  25630. "created": {
  25631. "type": "number"
  25632. },
  25633. "metadata": {
  25634. "type": "object"
  25635. },
  25636. "type": {
  25637. "type": "string",
  25638. "enum": [
  25639. "permission.asked"
  25640. ]
  25641. },
  25642. "location": {
  25643. "$ref": "#/components/schemas/Location.Ref"
  25644. },
  25645. "data": {
  25646. "type": "object",
  25647. "properties": {
  25648. "id": {
  25649. "type": "string",
  25650. "allOf": [
  25651. {
  25652. "pattern": "^per"
  25653. }
  25654. ]
  25655. },
  25656. "sessionID": {
  25657. "type": "string",
  25658. "allOf": [
  25659. {
  25660. "pattern": "^ses"
  25661. }
  25662. ]
  25663. },
  25664. "permission": {
  25665. "type": "string"
  25666. },
  25667. "patterns": {
  25668. "type": "array",
  25669. "items": {
  25670. "type": "string"
  25671. }
  25672. },
  25673. "metadata": {
  25674. "type": "object"
  25675. },
  25676. "always": {
  25677. "type": "array",
  25678. "items": {
  25679. "type": "string"
  25680. }
  25681. },
  25682. "tool": {
  25683. "anyOf": [
  25684. {
  25685. "type": "object",
  25686. "properties": {
  25687. "messageID": {
  25688. "type": "string"
  25689. },
  25690. "callID": {
  25691. "type": "string"
  25692. }
  25693. },
  25694. "required": [
  25695. "messageID",
  25696. "callID"
  25697. ],
  25698. "additionalProperties": false
  25699. },
  25700. {
  25701. "type": "null"
  25702. }
  25703. ]
  25704. }
  25705. },
  25706. "required": [
  25707. "id",
  25708. "sessionID",
  25709. "permission",
  25710. "patterns",
  25711. "metadata",
  25712. "always"
  25713. ],
  25714. "additionalProperties": false
  25715. }
  25716. },
  25717. "required": [
  25718. "id",
  25719. "created",
  25720. "type",
  25721. "data"
  25722. ],
  25723. "additionalProperties": false
  25724. },
  25725. "permission.replied": {
  25726. "type": "object",
  25727. "properties": {
  25728. "id": {
  25729. "type": "string",
  25730. "allOf": [
  25731. {
  25732. "pattern": "^evt_"
  25733. }
  25734. ]
  25735. },
  25736. "created": {
  25737. "type": "number"
  25738. },
  25739. "metadata": {
  25740. "type": "object"
  25741. },
  25742. "type": {
  25743. "type": "string",
  25744. "enum": [
  25745. "permission.replied"
  25746. ]
  25747. },
  25748. "location": {
  25749. "$ref": "#/components/schemas/Location.Ref"
  25750. },
  25751. "data": {
  25752. "type": "object",
  25753. "properties": {
  25754. "sessionID": {
  25755. "type": "string",
  25756. "allOf": [
  25757. {
  25758. "pattern": "^ses"
  25759. }
  25760. ]
  25761. },
  25762. "requestID": {
  25763. "type": "string",
  25764. "allOf": [
  25765. {
  25766. "pattern": "^per"
  25767. }
  25768. ]
  25769. },
  25770. "reply": {
  25771. "type": "string",
  25772. "enum": [
  25773. "once",
  25774. "always",
  25775. "reject"
  25776. ]
  25777. }
  25778. },
  25779. "required": [
  25780. "sessionID",
  25781. "requestID",
  25782. "reply"
  25783. ],
  25784. "additionalProperties": false
  25785. }
  25786. },
  25787. "required": [
  25788. "id",
  25789. "created",
  25790. "type",
  25791. "data"
  25792. ],
  25793. "additionalProperties": false
  25794. },
  25795. "QuestionOption": {
  25796. "type": "object",
  25797. "properties": {
  25798. "label": {
  25799. "type": "string",
  25800. "description": "Display text (1-5 words, concise)"
  25801. },
  25802. "description": {
  25803. "type": "string",
  25804. "description": "Explanation of choice"
  25805. }
  25806. },
  25807. "required": [
  25808. "label",
  25809. "description"
  25810. ],
  25811. "additionalProperties": false
  25812. },
  25813. "QuestionInfo": {
  25814. "type": "object",
  25815. "properties": {
  25816. "question": {
  25817. "type": "string",
  25818. "description": "Complete question"
  25819. },
  25820. "header": {
  25821. "type": "string",
  25822. "description": "Very short label (max 30 chars)"
  25823. },
  25824. "options": {
  25825. "type": "array",
  25826. "items": {
  25827. "$ref": "#/components/schemas/QuestionOption"
  25828. },
  25829. "description": "Available choices"
  25830. },
  25831. "multiple": {
  25832. "anyOf": [
  25833. {
  25834. "type": "boolean"
  25835. },
  25836. {
  25837. "type": "null"
  25838. }
  25839. ],
  25840. "description": "Allow selecting multiple choices"
  25841. },
  25842. "custom": {
  25843. "anyOf": [
  25844. {
  25845. "type": "boolean"
  25846. },
  25847. {
  25848. "type": "null"
  25849. }
  25850. ],
  25851. "description": "Allow typing a custom answer (default: true)"
  25852. }
  25853. },
  25854. "required": [
  25855. "question",
  25856. "header",
  25857. "options"
  25858. ],
  25859. "additionalProperties": false
  25860. },
  25861. "QuestionTool": {
  25862. "type": "object",
  25863. "properties": {
  25864. "messageID": {
  25865. "type": "string",
  25866. "allOf": [
  25867. {
  25868. "pattern": "^msg"
  25869. }
  25870. ]
  25871. },
  25872. "callID": {
  25873. "type": "string"
  25874. }
  25875. },
  25876. "required": [
  25877. "messageID",
  25878. "callID"
  25879. ],
  25880. "additionalProperties": false
  25881. },
  25882. "question.asked": {
  25883. "type": "object",
  25884. "properties": {
  25885. "id": {
  25886. "type": "string",
  25887. "allOf": [
  25888. {
  25889. "pattern": "^evt_"
  25890. }
  25891. ]
  25892. },
  25893. "created": {
  25894. "type": "number"
  25895. },
  25896. "metadata": {
  25897. "type": "object"
  25898. },
  25899. "type": {
  25900. "type": "string",
  25901. "enum": [
  25902. "question.asked"
  25903. ]
  25904. },
  25905. "location": {
  25906. "$ref": "#/components/schemas/Location.Ref"
  25907. },
  25908. "data": {
  25909. "type": "object",
  25910. "properties": {
  25911. "id": {
  25912. "type": "string",
  25913. "allOf": [
  25914. {
  25915. "pattern": "^que"
  25916. }
  25917. ]
  25918. },
  25919. "sessionID": {
  25920. "type": "string",
  25921. "allOf": [
  25922. {
  25923. "pattern": "^ses"
  25924. }
  25925. ]
  25926. },
  25927. "questions": {
  25928. "type": "array",
  25929. "items": {
  25930. "$ref": "#/components/schemas/QuestionInfo"
  25931. },
  25932. "description": "Questions to ask"
  25933. },
  25934. "tool": {
  25935. "anyOf": [
  25936. {
  25937. "$ref": "#/components/schemas/QuestionTool"
  25938. },
  25939. {
  25940. "type": "null"
  25941. }
  25942. ]
  25943. }
  25944. },
  25945. "required": [
  25946. "id",
  25947. "sessionID",
  25948. "questions"
  25949. ],
  25950. "additionalProperties": false
  25951. }
  25952. },
  25953. "required": [
  25954. "id",
  25955. "created",
  25956. "type",
  25957. "data"
  25958. ],
  25959. "additionalProperties": false
  25960. },
  25961. "QuestionAnswer": {
  25962. "type": "array",
  25963. "items": {
  25964. "type": "string"
  25965. }
  25966. },
  25967. "question.replied": {
  25968. "type": "object",
  25969. "properties": {
  25970. "id": {
  25971. "type": "string",
  25972. "allOf": [
  25973. {
  25974. "pattern": "^evt_"
  25975. }
  25976. ]
  25977. },
  25978. "created": {
  25979. "type": "number"
  25980. },
  25981. "metadata": {
  25982. "type": "object"
  25983. },
  25984. "type": {
  25985. "type": "string",
  25986. "enum": [
  25987. "question.replied"
  25988. ]
  25989. },
  25990. "location": {
  25991. "$ref": "#/components/schemas/Location.Ref"
  25992. },
  25993. "data": {
  25994. "type": "object",
  25995. "properties": {
  25996. "sessionID": {
  25997. "type": "string",
  25998. "allOf": [
  25999. {
  26000. "pattern": "^ses"
  26001. }
  26002. ]
  26003. },
  26004. "requestID": {
  26005. "type": "string",
  26006. "allOf": [
  26007. {
  26008. "pattern": "^que"
  26009. }
  26010. ]
  26011. },
  26012. "answers": {
  26013. "type": "array",
  26014. "items": {
  26015. "$ref": "#/components/schemas/QuestionAnswer"
  26016. }
  26017. }
  26018. },
  26019. "required": [
  26020. "sessionID",
  26021. "requestID",
  26022. "answers"
  26023. ],
  26024. "additionalProperties": false
  26025. }
  26026. },
  26027. "required": [
  26028. "id",
  26029. "created",
  26030. "type",
  26031. "data"
  26032. ],
  26033. "additionalProperties": false
  26034. },
  26035. "question.rejected": {
  26036. "type": "object",
  26037. "properties": {
  26038. "id": {
  26039. "type": "string",
  26040. "allOf": [
  26041. {
  26042. "pattern": "^evt_"
  26043. }
  26044. ]
  26045. },
  26046. "created": {
  26047. "type": "number"
  26048. },
  26049. "metadata": {
  26050. "type": "object"
  26051. },
  26052. "type": {
  26053. "type": "string",
  26054. "enum": [
  26055. "question.rejected"
  26056. ]
  26057. },
  26058. "location": {
  26059. "$ref": "#/components/schemas/Location.Ref"
  26060. },
  26061. "data": {
  26062. "type": "object",
  26063. "properties": {
  26064. "sessionID": {
  26065. "type": "string",
  26066. "allOf": [
  26067. {
  26068. "pattern": "^ses"
  26069. }
  26070. ]
  26071. },
  26072. "requestID": {
  26073. "type": "string",
  26074. "allOf": [
  26075. {
  26076. "pattern": "^que"
  26077. }
  26078. ]
  26079. }
  26080. },
  26081. "required": [
  26082. "sessionID",
  26083. "requestID"
  26084. ],
  26085. "additionalProperties": false
  26086. }
  26087. },
  26088. "required": [
  26089. "id",
  26090. "created",
  26091. "type",
  26092. "data"
  26093. ],
  26094. "additionalProperties": false
  26095. },
  26096. "session.error": {
  26097. "type": "object",
  26098. "properties": {
  26099. "id": {
  26100. "type": "string",
  26101. "allOf": [
  26102. {
  26103. "pattern": "^evt_"
  26104. }
  26105. ]
  26106. },
  26107. "created": {
  26108. "type": "number"
  26109. },
  26110. "metadata": {
  26111. "type": "object"
  26112. },
  26113. "type": {
  26114. "type": "string",
  26115. "enum": [
  26116. "session.error"
  26117. ]
  26118. },
  26119. "location": {
  26120. "$ref": "#/components/schemas/Location.Ref"
  26121. },
  26122. "data": {
  26123. "type": "object",
  26124. "properties": {
  26125. "sessionID": {
  26126. "anyOf": [
  26127. {
  26128. "type": "string",
  26129. "allOf": [
  26130. {
  26131. "pattern": "^ses"
  26132. }
  26133. ]
  26134. },
  26135. {
  26136. "type": "null"
  26137. }
  26138. ]
  26139. },
  26140. "error": {
  26141. "anyOf": [
  26142. {
  26143. "anyOf": [
  26144. {
  26145. "$ref": "#/components/schemas/ProviderAuthError"
  26146. },
  26147. {
  26148. "$ref": "#/components/schemas/UnknownError1"
  26149. },
  26150. {
  26151. "$ref": "#/components/schemas/MessageOutputLengthError"
  26152. },
  26153. {
  26154. "$ref": "#/components/schemas/MessageAbortedError"
  26155. },
  26156. {
  26157. "$ref": "#/components/schemas/StructuredOutputError"
  26158. },
  26159. {
  26160. "$ref": "#/components/schemas/ContextOverflowError"
  26161. },
  26162. {
  26163. "$ref": "#/components/schemas/ContentFilterError"
  26164. },
  26165. {
  26166. "$ref": "#/components/schemas/APIError"
  26167. }
  26168. ]
  26169. },
  26170. {
  26171. "type": "null"
  26172. }
  26173. ]
  26174. }
  26175. },
  26176. "additionalProperties": false
  26177. }
  26178. },
  26179. "required": [
  26180. "id",
  26181. "created",
  26182. "type",
  26183. "data"
  26184. ],
  26185. "additionalProperties": false
  26186. },
  26187. "V2Event.server.connected": {
  26188. "type": "object",
  26189. "properties": {
  26190. "id": {
  26191. "type": "string",
  26192. "allOf": [
  26193. {
  26194. "pattern": "^evt_"
  26195. }
  26196. ]
  26197. },
  26198. "metadata": {
  26199. "anyOf": [
  26200. {
  26201. "type": "object"
  26202. },
  26203. {
  26204. "type": "null"
  26205. }
  26206. ]
  26207. },
  26208. "location": {
  26209. "anyOf": [
  26210. {
  26211. "$ref": "#/components/schemas/Location.Ref"
  26212. },
  26213. {
  26214. "type": "null"
  26215. }
  26216. ]
  26217. },
  26218. "type": {
  26219. "type": "string",
  26220. "enum": [
  26221. "server.connected"
  26222. ]
  26223. },
  26224. "data": {
  26225. "anyOf": [
  26226. {
  26227. "type": "object"
  26228. },
  26229. {
  26230. "type": "array"
  26231. }
  26232. ]
  26233. }
  26234. },
  26235. "required": [
  26236. "id",
  26237. "type",
  26238. "data"
  26239. ],
  26240. "additionalProperties": false
  26241. },
  26242. "V2Event": {
  26243. "anyOf": [
  26244. {
  26245. "$ref": "#/components/schemas/models-dev.refreshed"
  26246. },
  26247. {
  26248. "$ref": "#/components/schemas/integration.updated"
  26249. },
  26250. {
  26251. "$ref": "#/components/schemas/integration.connection.updated"
  26252. },
  26253. {
  26254. "$ref": "#/components/schemas/catalog.updated"
  26255. },
  26256. {
  26257. "$ref": "#/components/schemas/agent.updated"
  26258. },
  26259. {
  26260. "$ref": "#/components/schemas/session.created"
  26261. },
  26262. {
  26263. "$ref": "#/components/schemas/session.updated"
  26264. },
  26265. {
  26266. "$ref": "#/components/schemas/session.deleted1"
  26267. },
  26268. {
  26269. "$ref": "#/components/schemas/message.updated"
  26270. },
  26271. {
  26272. "$ref": "#/components/schemas/message.removed"
  26273. },
  26274. {
  26275. "$ref": "#/components/schemas/message.part.updated"
  26276. },
  26277. {
  26278. "$ref": "#/components/schemas/message.part.removed"
  26279. },
  26280. {
  26281. "$ref": "#/components/schemas/session.agent.selected"
  26282. },
  26283. {
  26284. "$ref": "#/components/schemas/session.model.selected"
  26285. },
  26286. {
  26287. "$ref": "#/components/schemas/session.moved"
  26288. },
  26289. {
  26290. "$ref": "#/components/schemas/session.renamed"
  26291. },
  26292. {
  26293. "$ref": "#/components/schemas/session.usage.updated"
  26294. },
  26295. {
  26296. "$ref": "#/components/schemas/session.deleted"
  26297. },
  26298. {
  26299. "$ref": "#/components/schemas/session.forked"
  26300. },
  26301. {
  26302. "$ref": "#/components/schemas/session.prompt.promoted"
  26303. },
  26304. {
  26305. "$ref": "#/components/schemas/session.prompt.admitted"
  26306. },
  26307. {
  26308. "$ref": "#/components/schemas/session.execution.started"
  26309. },
  26310. {
  26311. "$ref": "#/components/schemas/session.execution.succeeded"
  26312. },
  26313. {
  26314. "$ref": "#/components/schemas/session.execution.failed"
  26315. },
  26316. {
  26317. "$ref": "#/components/schemas/session.execution.interrupted"
  26318. },
  26319. {
  26320. "$ref": "#/components/schemas/session.instructions.updated"
  26321. },
  26322. {
  26323. "$ref": "#/components/schemas/session.synthetic"
  26324. },
  26325. {
  26326. "$ref": "#/components/schemas/session.skill.activated"
  26327. },
  26328. {
  26329. "$ref": "#/components/schemas/session.shell.started"
  26330. },
  26331. {
  26332. "$ref": "#/components/schemas/session.shell.ended"
  26333. },
  26334. {
  26335. "$ref": "#/components/schemas/session.step.started"
  26336. },
  26337. {
  26338. "$ref": "#/components/schemas/session.step.ended"
  26339. },
  26340. {
  26341. "$ref": "#/components/schemas/session.step.failed"
  26342. },
  26343. {
  26344. "$ref": "#/components/schemas/session.text.started"
  26345. },
  26346. {
  26347. "$ref": "#/components/schemas/session.text.delta"
  26348. },
  26349. {
  26350. "$ref": "#/components/schemas/session.text.ended"
  26351. },
  26352. {
  26353. "$ref": "#/components/schemas/session.reasoning.started"
  26354. },
  26355. {
  26356. "$ref": "#/components/schemas/session.reasoning.delta"
  26357. },
  26358. {
  26359. "$ref": "#/components/schemas/session.reasoning.ended"
  26360. },
  26361. {
  26362. "$ref": "#/components/schemas/session.tool.input.started"
  26363. },
  26364. {
  26365. "$ref": "#/components/schemas/session.tool.input.delta"
  26366. },
  26367. {
  26368. "$ref": "#/components/schemas/session.tool.input.ended"
  26369. },
  26370. {
  26371. "$ref": "#/components/schemas/session.tool.called"
  26372. },
  26373. {
  26374. "$ref": "#/components/schemas/session.tool.progress"
  26375. },
  26376. {
  26377. "$ref": "#/components/schemas/session.tool.success"
  26378. },
  26379. {
  26380. "$ref": "#/components/schemas/session.tool.failed"
  26381. },
  26382. {
  26383. "$ref": "#/components/schemas/session.retry.scheduled"
  26384. },
  26385. {
  26386. "$ref": "#/components/schemas/session.compaction.admitted"
  26387. },
  26388. {
  26389. "$ref": "#/components/schemas/session.compaction.started"
  26390. },
  26391. {
  26392. "$ref": "#/components/schemas/session.compaction.delta"
  26393. },
  26394. {
  26395. "$ref": "#/components/schemas/session.compaction.ended"
  26396. },
  26397. {
  26398. "$ref": "#/components/schemas/session.compaction.failed"
  26399. },
  26400. {
  26401. "$ref": "#/components/schemas/session.revert.staged"
  26402. },
  26403. {
  26404. "$ref": "#/components/schemas/session.revert.cleared"
  26405. },
  26406. {
  26407. "$ref": "#/components/schemas/session.revert.committed"
  26408. },
  26409. {
  26410. "$ref": "#/components/schemas/filesystem.changed"
  26411. },
  26412. {
  26413. "$ref": "#/components/schemas/reference.updated"
  26414. },
  26415. {
  26416. "$ref": "#/components/schemas/permission.v2.asked"
  26417. },
  26418. {
  26419. "$ref": "#/components/schemas/permission.v2.replied"
  26420. },
  26421. {
  26422. "$ref": "#/components/schemas/plugin.added"
  26423. },
  26424. {
  26425. "$ref": "#/components/schemas/plugin.updated"
  26426. },
  26427. {
  26428. "$ref": "#/components/schemas/project.directories.updated"
  26429. },
  26430. {
  26431. "$ref": "#/components/schemas/command.updated"
  26432. },
  26433. {
  26434. "$ref": "#/components/schemas/config.updated"
  26435. },
  26436. {
  26437. "$ref": "#/components/schemas/skill.updated"
  26438. },
  26439. {
  26440. "$ref": "#/components/schemas/pty.created"
  26441. },
  26442. {
  26443. "$ref": "#/components/schemas/pty.updated"
  26444. },
  26445. {
  26446. "$ref": "#/components/schemas/pty.exited"
  26447. },
  26448. {
  26449. "$ref": "#/components/schemas/pty.deleted"
  26450. },
  26451. {
  26452. "$ref": "#/components/schemas/shell.created"
  26453. },
  26454. {
  26455. "$ref": "#/components/schemas/shell.exited"
  26456. },
  26457. {
  26458. "$ref": "#/components/schemas/shell.deleted"
  26459. },
  26460. {
  26461. "$ref": "#/components/schemas/question.v2.asked"
  26462. },
  26463. {
  26464. "$ref": "#/components/schemas/question.v2.replied"
  26465. },
  26466. {
  26467. "$ref": "#/components/schemas/question.v2.rejected"
  26468. },
  26469. {
  26470. "$ref": "#/components/schemas/form.created"
  26471. },
  26472. {
  26473. "$ref": "#/components/schemas/form.replied"
  26474. },
  26475. {
  26476. "$ref": "#/components/schemas/form.cancelled"
  26477. },
  26478. {
  26479. "$ref": "#/components/schemas/todo.updated"
  26480. },
  26481. {
  26482. "$ref": "#/components/schemas/session.status"
  26483. },
  26484. {
  26485. "$ref": "#/components/schemas/session.idle"
  26486. },
  26487. {
  26488. "$ref": "#/components/schemas/tui.prompt.append"
  26489. },
  26490. {
  26491. "$ref": "#/components/schemas/tui.command.execute"
  26492. },
  26493. {
  26494. "$ref": "#/components/schemas/tui.toast.show"
  26495. },
  26496. {
  26497. "$ref": "#/components/schemas/tui.session.select"
  26498. },
  26499. {
  26500. "$ref": "#/components/schemas/installation.updated"
  26501. },
  26502. {
  26503. "$ref": "#/components/schemas/installation.update-available"
  26504. },
  26505. {
  26506. "$ref": "#/components/schemas/vcs.branch.updated"
  26507. },
  26508. {
  26509. "$ref": "#/components/schemas/mcp.status.changed"
  26510. },
  26511. {
  26512. "$ref": "#/components/schemas/mcp.resources.changed"
  26513. },
  26514. {
  26515. "$ref": "#/components/schemas/permission.asked"
  26516. },
  26517. {
  26518. "$ref": "#/components/schemas/permission.replied"
  26519. },
  26520. {
  26521. "$ref": "#/components/schemas/question.asked"
  26522. },
  26523. {
  26524. "$ref": "#/components/schemas/question.replied"
  26525. },
  26526. {
  26527. "$ref": "#/components/schemas/question.rejected"
  26528. },
  26529. {
  26530. "$ref": "#/components/schemas/session.error"
  26531. },
  26532. {
  26533. "$ref": "#/components/schemas/V2Event.server.connected"
  26534. }
  26535. ]
  26536. },
  26537. "V2EventStream": {
  26538. "type": "string",
  26539. "contentSchema": {
  26540. "$ref": "#/components/schemas/V2Event"
  26541. },
  26542. "contentMediaType": "application/json"
  26543. },
  26544. "PtyNotFoundError": {
  26545. "type": "object",
  26546. "properties": {
  26547. "_tag": {
  26548. "type": "string",
  26549. "enum": [
  26550. "PtyNotFoundError"
  26551. ]
  26552. },
  26553. "ptyID": {
  26554. "type": "string"
  26555. },
  26556. "message": {
  26557. "type": "string"
  26558. }
  26559. },
  26560. "required": [
  26561. "_tag",
  26562. "ptyID",
  26563. "message"
  26564. ],
  26565. "additionalProperties": false
  26566. },
  26567. "PtyTicket.ConnectToken": {
  26568. "type": "object",
  26569. "properties": {
  26570. "ticket": {
  26571. "type": "string"
  26572. },
  26573. "expires_in": {
  26574. "type": "integer",
  26575. "allOf": [
  26576. {
  26577. "exclusiveMinimum": 0
  26578. }
  26579. ]
  26580. }
  26581. },
  26582. "required": [
  26583. "ticket",
  26584. "expires_in"
  26585. ],
  26586. "additionalProperties": false
  26587. },
  26588. "ForbiddenError": {
  26589. "type": "object",
  26590. "properties": {
  26591. "_tag": {
  26592. "type": "string",
  26593. "enum": [
  26594. "ForbiddenError"
  26595. ]
  26596. },
  26597. "message": {
  26598. "type": "string"
  26599. }
  26600. },
  26601. "required": [
  26602. "_tag",
  26603. "message"
  26604. ],
  26605. "additionalProperties": false
  26606. },
  26607. "Shell1": {
  26608. "type": "object",
  26609. "properties": {
  26610. "id": {
  26611. "type": "string",
  26612. "allOf": [
  26613. {
  26614. "pattern": "^sh_"
  26615. }
  26616. ]
  26617. },
  26618. "status": {
  26619. "type": "string",
  26620. "enum": [
  26621. "running",
  26622. "exited",
  26623. "timeout",
  26624. "killed"
  26625. ]
  26626. },
  26627. "command": {
  26628. "type": "string"
  26629. },
  26630. "cwd": {
  26631. "type": "string"
  26632. },
  26633. "shell": {
  26634. "type": "string"
  26635. },
  26636. "file": {
  26637. "type": "string"
  26638. },
  26639. "pid": {
  26640. "type": "integer",
  26641. "allOf": [
  26642. {
  26643. "minimum": 0
  26644. }
  26645. ]
  26646. },
  26647. "exit": {
  26648. "anyOf": [
  26649. {
  26650. "anyOf": [
  26651. {
  26652. "type": "number"
  26653. },
  26654. {
  26655. "type": "string",
  26656. "enum": [
  26657. "NaN"
  26658. ]
  26659. },
  26660. {
  26661. "type": "string",
  26662. "enum": [
  26663. "Infinity"
  26664. ]
  26665. },
  26666. {
  26667. "type": "string",
  26668. "enum": [
  26669. "-Infinity"
  26670. ]
  26671. }
  26672. ]
  26673. },
  26674. {
  26675. "type": "string",
  26676. "enum": [
  26677. "Infinity",
  26678. "-Infinity",
  26679. "NaN"
  26680. ]
  26681. }
  26682. ]
  26683. },
  26684. "metadata": {
  26685. "type": "object"
  26686. },
  26687. "time": {
  26688. "type": "object",
  26689. "properties": {
  26690. "started": {
  26691. "anyOf": [
  26692. {
  26693. "anyOf": [
  26694. {
  26695. "type": "number"
  26696. },
  26697. {
  26698. "type": "string",
  26699. "enum": [
  26700. "NaN"
  26701. ]
  26702. },
  26703. {
  26704. "type": "string",
  26705. "enum": [
  26706. "Infinity"
  26707. ]
  26708. },
  26709. {
  26710. "type": "string",
  26711. "enum": [
  26712. "-Infinity"
  26713. ]
  26714. }
  26715. ]
  26716. },
  26717. {
  26718. "type": "string",
  26719. "enum": [
  26720. "Infinity",
  26721. "-Infinity",
  26722. "NaN"
  26723. ]
  26724. }
  26725. ]
  26726. },
  26727. "completed": {
  26728. "anyOf": [
  26729. {
  26730. "anyOf": [
  26731. {
  26732. "type": "number"
  26733. },
  26734. {
  26735. "type": "string",
  26736. "enum": [
  26737. "NaN"
  26738. ]
  26739. },
  26740. {
  26741. "type": "string",
  26742. "enum": [
  26743. "Infinity"
  26744. ]
  26745. },
  26746. {
  26747. "type": "string",
  26748. "enum": [
  26749. "-Infinity"
  26750. ]
  26751. }
  26752. ]
  26753. },
  26754. {
  26755. "type": "string",
  26756. "enum": [
  26757. "Infinity",
  26758. "-Infinity",
  26759. "NaN"
  26760. ]
  26761. }
  26762. ]
  26763. }
  26764. },
  26765. "required": [
  26766. "started"
  26767. ],
  26768. "additionalProperties": false
  26769. }
  26770. },
  26771. "required": [
  26772. "id",
  26773. "status",
  26774. "command",
  26775. "cwd",
  26776. "shell",
  26777. "file",
  26778. "metadata",
  26779. "time"
  26780. ],
  26781. "additionalProperties": false
  26782. },
  26783. "ShellNotFoundError": {
  26784. "type": "object",
  26785. "properties": {
  26786. "_tag": {
  26787. "type": "string",
  26788. "enum": [
  26789. "ShellNotFoundError"
  26790. ]
  26791. },
  26792. "id": {
  26793. "type": "string"
  26794. },
  26795. "message": {
  26796. "type": "string"
  26797. }
  26798. },
  26799. "required": [
  26800. "_tag",
  26801. "id",
  26802. "message"
  26803. ],
  26804. "additionalProperties": false
  26805. },
  26806. "QuestionV2.Request": {
  26807. "type": "object",
  26808. "properties": {
  26809. "id": {
  26810. "type": "string",
  26811. "allOf": [
  26812. {
  26813. "pattern": "^que"
  26814. }
  26815. ]
  26816. },
  26817. "sessionID": {
  26818. "type": "string",
  26819. "allOf": [
  26820. {
  26821. "pattern": "^ses"
  26822. }
  26823. ]
  26824. },
  26825. "questions": {
  26826. "type": "array",
  26827. "items": {
  26828. "$ref": "#/components/schemas/QuestionV2.Info"
  26829. },
  26830. "description": "Questions to ask"
  26831. },
  26832. "tool": {
  26833. "$ref": "#/components/schemas/QuestionV2.Tool"
  26834. }
  26835. },
  26836. "required": [
  26837. "id",
  26838. "sessionID",
  26839. "questions"
  26840. ],
  26841. "additionalProperties": false
  26842. },
  26843. "QuestionV2.Reply": {
  26844. "type": "object",
  26845. "properties": {
  26846. "answers": {
  26847. "type": "array",
  26848. "items": {
  26849. "$ref": "#/components/schemas/QuestionV2.Answer"
  26850. },
  26851. "description": "User answers in order of questions (each answer is an array of selected labels)"
  26852. }
  26853. },
  26854. "required": [
  26855. "answers"
  26856. ],
  26857. "additionalProperties": false
  26858. },
  26859. "QuestionNotFoundError": {
  26860. "type": "object",
  26861. "properties": {
  26862. "_tag": {
  26863. "type": "string",
  26864. "enum": [
  26865. "QuestionNotFoundError"
  26866. ]
  26867. },
  26868. "requestID": {
  26869. "type": "string"
  26870. },
  26871. "message": {
  26872. "type": "string"
  26873. }
  26874. },
  26875. "required": [
  26876. "_tag",
  26877. "requestID",
  26878. "message"
  26879. ],
  26880. "additionalProperties": false
  26881. },
  26882. "Reference.LocalSource": {
  26883. "type": "object",
  26884. "properties": {
  26885. "type": {
  26886. "type": "string",
  26887. "enum": [
  26888. "local"
  26889. ]
  26890. },
  26891. "path": {
  26892. "type": "string"
  26893. },
  26894. "description": {
  26895. "type": "string"
  26896. },
  26897. "hidden": {
  26898. "type": "boolean"
  26899. }
  26900. },
  26901. "required": [
  26902. "type",
  26903. "path"
  26904. ],
  26905. "additionalProperties": false
  26906. },
  26907. "Reference.GitSource": {
  26908. "type": "object",
  26909. "properties": {
  26910. "type": {
  26911. "type": "string",
  26912. "enum": [
  26913. "git"
  26914. ]
  26915. },
  26916. "repository": {
  26917. "type": "string"
  26918. },
  26919. "branch": {
  26920. "type": "string"
  26921. },
  26922. "description": {
  26923. "type": "string"
  26924. },
  26925. "hidden": {
  26926. "type": "boolean"
  26927. }
  26928. },
  26929. "required": [
  26930. "type",
  26931. "repository"
  26932. ],
  26933. "additionalProperties": false
  26934. },
  26935. "Reference.Source": {
  26936. "anyOf": [
  26937. {
  26938. "$ref": "#/components/schemas/Reference.LocalSource"
  26939. },
  26940. {
  26941. "$ref": "#/components/schemas/Reference.GitSource"
  26942. }
  26943. ]
  26944. },
  26945. "Reference.Info": {
  26946. "type": "object",
  26947. "properties": {
  26948. "name": {
  26949. "type": "string"
  26950. },
  26951. "path": {
  26952. "type": "string"
  26953. },
  26954. "description": {
  26955. "type": "string"
  26956. },
  26957. "hidden": {
  26958. "type": "boolean"
  26959. },
  26960. "source": {
  26961. "$ref": "#/components/schemas/Reference.Source"
  26962. }
  26963. },
  26964. "required": [
  26965. "name",
  26966. "path",
  26967. "source"
  26968. ],
  26969. "additionalProperties": false
  26970. },
  26971. "ProjectCopy.Copy": {
  26972. "type": "object",
  26973. "properties": {
  26974. "directory": {
  26975. "type": "string"
  26976. }
  26977. },
  26978. "required": [
  26979. "directory"
  26980. ],
  26981. "additionalProperties": false
  26982. },
  26983. "ProjectCopyError": {
  26984. "type": "object",
  26985. "properties": {
  26986. "name": {
  26987. "type": "string",
  26988. "enum": [
  26989. "ProjectCopyError"
  26990. ]
  26991. },
  26992. "data": {
  26993. "type": "object",
  26994. "properties": {
  26995. "message": {
  26996. "type": "string"
  26997. },
  26998. "forceRequired": {
  26999. "anyOf": [
  27000. {
  27001. "type": "boolean"
  27002. },
  27003. {
  27004. "type": "null"
  27005. }
  27006. ]
  27007. }
  27008. },
  27009. "required": [
  27010. "message"
  27011. ],
  27012. "additionalProperties": false
  27013. }
  27014. },
  27015. "required": [
  27016. "name",
  27017. "data"
  27018. ],
  27019. "additionalProperties": false
  27020. },
  27021. "Vcs.FileStatus": {
  27022. "type": "object",
  27023. "properties": {
  27024. "file": {
  27025. "type": "string"
  27026. },
  27027. "additions": {
  27028. "type": "integer",
  27029. "allOf": [
  27030. {
  27031. "minimum": 0
  27032. }
  27033. ]
  27034. },
  27035. "deletions": {
  27036. "type": "integer",
  27037. "allOf": [
  27038. {
  27039. "minimum": 0
  27040. }
  27041. ]
  27042. },
  27043. "status": {
  27044. "type": "string",
  27045. "enum": [
  27046. "added",
  27047. "deleted",
  27048. "modified"
  27049. ]
  27050. }
  27051. },
  27052. "required": [
  27053. "file",
  27054. "additions",
  27055. "deletions",
  27056. "status"
  27057. ],
  27058. "additionalProperties": false
  27059. },
  27060. "Vcs.Mode": {
  27061. "type": "string",
  27062. "enum": [
  27063. "working",
  27064. "branch"
  27065. ]
  27066. }
  27067. },
  27068. "securitySchemes": {}
  27069. },
  27070. "security": [],
  27071. "tags": [
  27072. {
  27073. "name": "health"
  27074. },
  27075. {
  27076. "name": "location"
  27077. },
  27078. {
  27079. "name": "agent"
  27080. },
  27081. {
  27082. "name": "plugin",
  27083. "description": "Experimental plugin routes."
  27084. },
  27085. {
  27086. "name": "session",
  27087. "description": "Experimental session routes."
  27088. },
  27089. {
  27090. "name": "session",
  27091. "description": "Experimental message routes."
  27092. },
  27093. {
  27094. "name": "model",
  27095. "description": "Experimental model routes."
  27096. },
  27097. {
  27098. "name": "generate",
  27099. "description": "Experimental one-shot generation routes."
  27100. },
  27101. {
  27102. "name": "provider",
  27103. "description": "Experimental provider routes."
  27104. },
  27105. {
  27106. "name": "integration",
  27107. "description": "Integration discovery and authentication routes."
  27108. },
  27109. {
  27110. "name": "mcp",
  27111. "description": "MCP server and resource routes."
  27112. },
  27113. {
  27114. "name": "credential"
  27115. },
  27116. {
  27117. "name": "project",
  27118. "description": "Location-scoped project routes."
  27119. },
  27120. {
  27121. "name": "form",
  27122. "description": "Session form routes."
  27123. },
  27124. {
  27125. "name": "permission",
  27126. "description": "Experimental permission routes."
  27127. },
  27128. {
  27129. "name": "filesystem",
  27130. "description": "Experimental location-scoped filesystem routes."
  27131. },
  27132. {
  27133. "name": "command",
  27134. "description": "Experimental command routes."
  27135. },
  27136. {
  27137. "name": "skill",
  27138. "description": "Experimental skill routes."
  27139. },
  27140. {
  27141. "name": "event",
  27142. "description": "Experimental event stream routes."
  27143. },
  27144. {
  27145. "name": "pty",
  27146. "description": "Experimental location-scoped PTY routes."
  27147. },
  27148. {
  27149. "name": "shell",
  27150. "description": "Experimental location-scoped shell command routes."
  27151. },
  27152. {
  27153. "name": "question",
  27154. "description": "Experimental session question routes."
  27155. },
  27156. {
  27157. "name": "reference",
  27158. "description": "Location-scoped project references."
  27159. },
  27160. {
  27161. "name": "projectCopy",
  27162. "description": "Project copy management routes."
  27163. },
  27164. {
  27165. "name": "vcs",
  27166. "description": "Location-scoped version control routes."
  27167. },
  27168. {
  27169. "name": "debug"
  27170. }
  27171. ]
  27172. }